Command for determining my public IP on linux PC

Finding external IP using external services The easiest way is to use an external service via a commandline browser or download tool. Since wget is available by default in Ubuntu, we can use that. To find your ip, use- wget -qO- http://ipecho.net/plain ; echo

How can I download an entire website?

wget –mirror -p –convert-links -P ./LOCAL-DIR WEBSITE-URL –mirror : turn on options suitable for mirroring. -p : download all files that are necessary to properly display a given HTML page. –convert-links : after the download, convert the links in document for local viewing. -P ./LOCAL-DIR : save all the files and directories to the specified directory.

Linux IP Commands

Display Current Config for all NIC’s: ifconfig Display Current Config for eth0: ifconfig eth0 Assign IP: ifconfig eth0 192.168.1.2 Ping: ping -c 3 192.168.1.1 Assign multiple IP’s: ifconfig eth0:0 192.168.1.2 Assign second IP: ifconfig eth0:1 192.168.1.3 Disable network card: ifconfig eth0 down Enable network card: ifconfig eth0 up View current routing table: route “or” route … Read more

Linux Gateway / Router IP Address

How Do I Find Out My Linux Gateway / Router IP Address? need to use route command. This command can manipulates the kernel’s IP routing tables. It can be also use to print gateway / router IP address. Type the following command to see default gateway: $ route -n Output: Kernel IP routing table Destination … Read more

cgi-bin folder in a subdomain

Should I delete the cgi-bin folder in a subdomain A cgi-bin folder was automatically created in the directory for clothing.mysite.com. Do I need it? I’m only using the subdomain to install wordpress on it. I don’t really understand what the cgi-bin folder is for and I’m happy to leave it if it doesn’t harm anything. … Read more

Clear Memory Cache on Linux centos

By default, every Linux OS has an efficient memory management system used to clear the buffer cache periodically. You can manually free up the memory cache with the following simple command: linux:~$ sudo sh -c “sync; echo 3 > /proc/sys/vm/drop_caches” However, if you want to force the Linux OS to do clearing memory cache on … Read more

unmount a Linux disk partition centos

To unmount a Linux disk partition centos # umount /dev/sda1 Type the command to unmount /mnt forcefully: # fuser -km /mnt Where, -k : Kill processes accessing the file. -m : Name specifies a file on a mounted file system or a block device that is mounted. In above example you are using /mnt Linux … Read more

what you need to know, before you deploy the VoIP in your organization : QoS (Quality of Service) for VoIP

The organization(s) that migrate from legacy PABX system (traditional phone system) to IP based PBX (Private Branch eXchange), they require a very carefully planning before they deploy the VoIP. They need to ensure the QoS (Quality of Service) for VoIP in your organization. Step 1 Analyze your existing LAN (Local Area Network) and find if … Read more

Asterisk Server Consultant

Sample DAHDI installation After compiling and installing of dahdi and asterisk, you have to perform some further steps to use your hardware. This example will show you a few steps how to get asterisk and two Digium cards enabled: 1.) Detect your hardware   # (this will generate /etc/dahdi/system.conf and  /etc/asterisk/dahdi-channels.conf)  linux:~# dahdi_genconf 2.) Read … Read more

phpMyAdmin + CentOS 6.0 – Forbidden : phpmyadmin allow remote access centos

To remove and add access to phpmyadmin in asterisk : Add your IP as follow: vi /etc/httpd/conf.d/phpmyadmin.conf <Directory “/usr/share/phpmyadmin”> Order allow,deny Allow from all </Directory> Here in Allow from all and Allow from 192.168.0.10 Then issue the following command: # service httpd restart Now All done.