dsh – distributed shell

DSH is Distributed Shell. It allows you to run shell commands on multiple servers at once and gather see their output in local terminal. Install Install  On Debian/Ubuntu apt-get install dsh Mac brew install dsh Config You can use default config but we always add following to dsh config file: Global config => /etc/dsh.conf Local config =>  ~/.dsh/dsh.conf remoteshell = ssh showmachinenames =… Continue reading dsh – distributed shell

GeoIP

Install/Setup GeoIP: wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gunzip GeoLiteCity.dat.gz sudo mkdir -v /usr/share/GeoIP sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat For PHP5: sudo apt-get install php5-geoip For PHP7: sudo apt-get install php-geoip Let’s test GeoIP: Add following lines in php print_r (geoip_db_get_all_info()); var_dump(geoip_record_by_name($_SERVER[‘REMOTE_ADDR’])); var_dump(geoip_record_by_name(‘www.example.com’));

Setup sftp

On cross platforms, Secure FTP allows transfer to and from server. This Tutorial Explain SFTP configuration. User setup: To access the server first step is to setup authenticate user. Lets set password for www-data user sudo passwd www-data Sample Output: ^_^[root@example.com:~]# sudo passwd www-data Enter new UNIX password: Retype new UNIX password: passwd: password updated… Continue reading Setup sftp