转自http://tieba.baidu.com/p/4893323353
贝尔I-120EM,可以直接使用
第一步:登陆光猫后台192.168.1.1
1.用光猫(机器)背面阉割帐号登陆,能登陆的直接下跳第二步开启Telnet!
2.如果无法登陆,别管什么原因,直接桶光猫菊花(开关附近有个洞)20秒左右,指示灯会有明显变化,然后可以用默认超级管理员帐号:CMCCAdmin密码:aDm8H%MdA恢复出厂,记住一定要先拔掉光纤线,不然会被自动修改密码!
3.最好记一下Password认证码,光猫注册必须要用,如果没记可以打客服或者维护人员电话。
第二步:开启Telnet
http://192.168.1.1/system.cgi?telnet
复制到地址栏回车,后台必须是登陆状态才能开启哦!
WIN7需要去“控制面板” 一〉“程序” 一〉“打开或关闭windows功能”,在里面可以看到许多服务项,选择“telnet服务器”和“telnet客户端”确定即可。
第三步:插入光纤注册设备
阉割帐号能登陆的略过本步骤。恢复出厂的开启Telnet后,登陆后台点击注册设备,只有一个Password认证码,输入就搞定,然后就什么都不用管了,等几分钟显示100%注册成功即可!
第四步:运行cmd,输入命令
1.telnet 192.168.1.1(回车)
2.cfgcli -e X_CT-COM_TeleComAccount.(回车)(回车前面有一个点.不知道有没有用,反正我是直接全部复制下来的,就只有2步命令)
第五步:获取密码
找到CMCCAdmin下面就是被修改后的密码,不出意外应该是cmccadminxxxxxxxx这个格式
2016年11月29日星期二
linux使用axel多线程yum
安装axel
yum install axel
下载配置文件axelget.conf与axelget.py到yum里:
cd /etc/yum/pluginconf.d/
wget http://www.ha97.com/code/axelget.conf
cd /usr/lib/yum-plugins/
wget http://www.ha97.com/code/axelget.py
必须安装yum-fastestmirror
2016年4月7日星期四
sclinux添加第三方源
CENTOS常用源官方指引
https://wiki.centos.org/AdditionalResources/Repositories
scientific linux常用源官方指引
https://www.scientificlinux.org/community/unofficial-resources/
1:安装YUM优先级插件
yum install yum-priorities.noarh
2:安装EPEL
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5[67].noarch.rpm
5:对于scientific linux
yum search yum-conf 列出源
https://wiki.centos.org/AdditionalResources/Repositories
scientific linux常用源官方指引
https://www.scientificlinux.org/community/unofficial-resources/
1:安装YUM优先级插件
yum install yum-priorities.noarh
2:安装EPEL
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5[67].noarch.rpm
rpm -Uvh epel-release-latest-5.noarch.rpm
3:安装REMI,依赖于EPEL源,主要用于PHP,Mysql安装
wget http://rpms.remirepo.net/enterprise/remi-release-5[67].rpm
rpm -Uvh remi-release-5[67].rpm
4:安装rpmforge
在此处选择正确的版本下载
rpm -Uvh XXX.rpm
5:对于scientific linux
yum search yum-conf 列出源
yum install yum-conf-XXX
yum repolist 查看使用了哪些源2016年4月6日星期三
Atutor安装
1:安装Apache,开启httpd服务,开启防火墙
yum install httpdn
chkconfig httpd on
yum install httpdn
chkconfig httpd on
iptables -I RH-Firewall-1-INPUT -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
-------------------------------------------------
-I 插入第一行
RH-Firewall-1-INPUT子链名
-p协议
--dport 80目标端口
-m模块
--state状态检测,NEW,ESTABLISHED,RELATED,INVALID
-j 跳转
ACCEPT同意
------------------------------------------------
service iptables save
2:修改hostname,hosts
vi /etc/sysconfig/network
3:安装Mysql,开启Mysql服务,配置
yum install mysql-server
chkconfig mysqld onmysqladmin -u root password 'new-password' 设置root密码
mysql_secure_installation 初次配置
mysql -u root -p连接数据库
create database atutor;建立数据库atutor
create user 'atutor'@'localhost' identified by 'atutor123';建立数据
grant all on atutor.* to atutor@localhost;建立授权
-------------------------------------------------
-I 插入第一行
RH-Firewall-1-INPUT子链名
-p协议
--dport 80目标端口
-m模块
--state状态检测,NEW,ESTABLISHED,RELATED,INVALID
-j 跳转
ACCEPT同意
------------------------------------------------
service iptables save
2:修改hostname,hosts
vi /etc/sysconfig/network
HOSTNAME=lams.cqdlt.com
vi /etc/hosts
XXX.XXX.XXX.XXX lams.XXX.com
3:安装Mysql,开启Mysql服务,配置
yum install mysql-server
chkconfig mysqld onmysqladmin -u root password 'new-password' 设置root密码
mysql_secure_installation 初次配置
mysql -u root -p连接数据库
create database atutor;建立数据库atutor
create user 'atutor'@'localhost' identified by 'atutor123';建立数据
grant all on atutor.* to atutor@localhost;建立授权
flush privileges 使配置生效
4:安装PHP等包
yum install php php-mysql php-gd php-mbstring
vi /var/www/html/info.php
<?php
phpinfo();
?>
service httpd restart
通过客户端可以查看PHP信息
5:安装Atutor
cd /var/www/html
wget http://downloads.sourceforge.net/project/atutor/ATutor%202/ATutor-2.2.1.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fatutor%2Ffiles%2FATutor%25202%2F&ts=1459915090&use_mirror=jaist
tar -zxvf ATutor-2.2.1.tar.gz 解压包
chown -R apache:apache ATutor 修改目录用户
mkdir -p /var/www/ATutor/content建立文件存放目录
chown apache:apache content更改所有者
chmod 2777 content/修改权限
客户端访问开始安装
http://192.168.30.222/ATutor/
6:修改语言翻译
vi /var/www/html/ATutor/include/
修改为define ('AT_DEVEL_TRANSLATE',1);
Scientific Linux 虚拟机模板建立
1:将网卡设置为E1000,安装scientific linux5
![]() |
| linux text选择字符届面安装 |
![]() |
| 选择跳过CD检查 |
![]() |
| Unselect所有安装选项
2:配置IP地址(参数明细)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
IPADDR=192.168.30.222
NETWORK=192.168.30.0
NETMASK=255.255.255.0
GATEWAY=192.168.30.1
使配置生效,/etc/init.d/network restart
配置DNS服务器
VI /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
3:使用setup程序进行配置
|
![]() |
| Setup配置验证网络服务等
4:更新
yum update
|
5:作为模板分发后IP地址失效解决(针对centos6)
在虚拟机配置文件中找到MAC地址,在下面两个文件中修改
编辑/etc/sysconfig/network-script/ifcfg-ethp
HWADDR
编辑/etc/udev/rules.d/70-persistant-net.rules
ATTR{address}==
重启网络
在虚拟机配置文件中找到MAC地址,在下面两个文件中修改
编辑/etc/sysconfig/network-script/ifcfg-ethp
HWADDR
编辑/etc/udev/rules.d/70-persistant-net.rules
ATTR{address}==
重启网络
2014年12月11日星期四
Linux下执行脚本导出mysql表数据
mysql -uroot -ppassword asteriskcdrdb -e "select * from cdr" > b.txt
连接上mysql,使用root,password登录 asteriskcdrdb数据库,
执行select *from cdr并将数据内容输出至b.txt
2014年2月8日星期六
ubuntu 13.04 linphone enable g729
My HP 8540W installed Ubuntu 13.04, I want to install voip softphone, the first choice is Ekiga. After installed Ekiga, There was not G729 codec, so I give up.
The second choice is linphone, serach in google, somebody saies install the linphone use ppa, g729 can use.
Now, this is the step by step
1.add linphone source
sudo add-apt-repository ppa:linphone/release
2.updae the source
sudo apt-get update
3.install linphone
sudo apt-get install linphone
4.config the linphone
Open the Option menu - preferences - codecs, G729 was not in the codecs list, but AMR in the list.
5.find out the difference between G729 and AMR
dpkg -L linphone-plugin-amr
the libmsamr.so model in this directory /usr/lib/mediastreamer/plugins
dpkg -L linphone-plugin-g729
the libmsbcg729.so model in this directory /usr/lib/x86_64-linux-gnu/mediastreamer/plugins/
6.copy the model to /usr/lib/mediastreamer/plugins
sudo cp -d /usr/lib/x86_64-linux-gnu/mediastreamer/plugins/libmsbcg729.* usr/lib/mediastreamer/plugins
that's right! Now G729 in the codecs list, enjoy it
The second choice is linphone, serach in google, somebody saies install the linphone use ppa, g729 can use.
Now, this is the step by step
1.add linphone source
sudo add-apt-repository ppa:linphone/release
2.updae the source
sudo apt-get update
3.install linphone
sudo apt-get install linphone
4.config the linphone
Open the Option menu - preferences - codecs, G729 was not in the codecs list, but AMR in the list.
5.find out the difference between G729 and AMR
dpkg -L linphone-plugin-amr
the libmsamr.so model in this directory /usr/lib/mediastreamer/plugins
dpkg -L linphone-plugin-g729
the libmsbcg729.so model in this directory /usr/lib/x86_64-linux-gnu/mediastreamer/plugins/
6.copy the model to /usr/lib/mediastreamer/plugins
sudo cp -d /usr/lib/x86_64-linux-gnu/mediastreamer/plugins/libmsbcg729.* usr/lib/mediastreamer/plugins
that's right! Now G729 in the codecs list, enjoy it
订阅:
博文 (Atom)



