change server hostname on linux/centos
> check the current hostname login on server as root user run the command: hostname > change the hostname: hostname newname
> check the current hostname login on server as root user run the command: hostname > change the hostname: hostname newname
> login on server through putty with current username & password > type: passwd root it will ask to put the new password…thats it
Change your system host-name mail.linuxsolutions.org.in vi /etc/hosts 192.168.1.14 mail.linuxsolutions.org.in save&exit vi /etc/sysconfig/network mail.linuxsolutions.org.in save&exit ======================================================================================================= yum install bind bind-chroot caching-nameserver bind-utils ======================================================================================================= ======================CONFIGURE DNS=============================== cp /etc/named.rfc1912.zones /etc/named.conf vim /etc/named.conf // named.rfc1914.zones: // // Provided by Red Hat caching-nameserver package // // ISC BIND named zone configuration for zones recommended by // RFC 1912 section 4.1 … Read more
MySql export schema without data Login to DB server Run the below command to take backup of schema of database without data. # mysqldump -u root –p -d olddb > backup.sql OR # mysqldump -u root -p –no-data dbname > schema.sql
Problem: Unrecognized prilocaldialplan TON modifier: D Solution: Set caller id into dialplan. Dialplan Example: exten => _55550XXXXXXXXXX,1,set(CALLERID(num)=4425100) exten => _55550XXXXXXXXXX,n,Set(currenttime=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}) exten => _55550XXXXXXXXXX,n,Set(CALLFILENAME=${CHANNEL}-${CDR(accountcode)}-${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) exten => _55550XXXXXXXXXX,n,MixMonitor(${CALLFILENAME}.wav) exten => _55550XXXXXXXXXX,n,Dial(DAHDI/g0/0${EXTEN:5},,Ttg) exten => _55550XXXXXXXXXX,n,NoOp( Dial Status: ${DIALSTATUS}) exten => _55550XXXXXXXXXX,n,Hungup()
The lscpu command is CPU architecture information helper and can be found under Fedora Linux / RHEL / CentOS v6+ / Debian Linux v6+ and many other latest distro includes this command. Warning : lscput command has bug and sometimes in Xen Dom0 kernel reports wrong data. So please use /proc/cpuinfo for verification purpose. # lscpu … Read more
Most of you are already familiar with SQL database, and have a good knowledge on either MySQL, Oracle, or other SQL databases. In the last several years, NoSQL database is getting widely adopted to solve various business problems. It is helpful to understand the difference between SQL and NoSQL database, and some of available NoSQL … Read more
Solution 1. Try to run it with this command : asterisk -vvvvvvc You’ll enter into the Asterisk CLI and if something goes wrong you’ll see it. After that you can quit the CLI by entering the exit command. Then you can reconnect to the CLI by typing asterisk -r. All this commands assumed you’re the root user. If … Read more
Technology Plays Big Role in Small Business An important, but often overlooked, role many small business owners play is chief technology officer. And that’s no small role, a new survey from the National Small Business Association (NSBA) shows. Despite the many challenges posed by keeping up with the rapid pace of change in technology , … Read more