≡ Menu


How To SSH Run Multiple Command On Remote Machine And Exit Safely

I have a backup sync program on local server. I have an ssh password less login set up, and I can run commands on an external server in bash script doing:

ssh root@server2 "sync; sync; /sbin/shutdown -h now"

How do I run multiple commands in bash on a remote Unix or Linux server? What is the best Way to SSH in and Run various unix commands in bash?
[click to continue…]

How To Use apt-get with IPv4 or IPv6 Transport on a Ubuntu or Debian or Mint Linux

It is possible that I can forces my apt-get command command only use IPv6 or Ipv4 transport on a Debian or Ubuntu Linux server?
[click to continue…]

How To Install Speedtest-cli On a CentOS / RHEL / Scientific / Fedora Linux To Check Internet Speed

I do not want to use Adobe flash based speed testing site due to security concern on my desktop. How do I install Speedtest-cli on a CentOS Linux or Fedora Linux or Red Hat Enterise Linux (RHEL) for checking the Internet speed?
[click to continue…]

How To: Restart Apple Mac OS X Airport Networking From the Bash Terminal

How do I enable and/or disable networking (AirPort) Ethernet and Wireless from the bash command Line in Apple Mac OS X? How can I restart Wi-Fi via command Line in OS X?
[click to continue…]

How To Find My Public IP Address From Command Line On a Linux

How do I find out my public IP address on the Linux and OS X Unix command line to use with my own bash shell script without using third party web site? Is there command-line option which will show my dynamic IP address on a Ubuntu or Fedora Linux?
[click to continue…]

RHEL / CentOS Linux 7 Enable Ping Access In Docker Container

I'm using RHEL 7.1-4 container on a RHEL /CentOS Linux 7.x server. However, I'm unable to ping external site/IP address using the ping command. I'm getting the following error on screen:

ping: Operation not permitted

How do I fix this problem?
[click to continue…]

How To Mount a Remote Directory With SSHFS on a Linux

How can I mount a remote directory with ssh on a Linux bases system? How do I use SSHFS to mount remote file systems over SSH on a Ubuntu or Debian/RHEL/CentOS/Arch Linux system?
[click to continue…]

FreeBSD Unix Find Out Which Programs Are Listing On a Given Port Number

I'm a new FreeBSD Unix system user. How can I find out the process/programs names listing on a certain port on a FreeBSD Unix systems using command line? How do I lookup the process which is currently bound to the given network port on a FreeBSD server?
[click to continue…]

Howto Configure PFSense Site-to-Site IPSec VPN Tunnel For Remote Access

I work from a small office/home office and I need to set up an IPSec site-to-site VPN between a Cisco/OpeNBSD IPSec-enabled gateway and firewall running PFSense. How do I configure the VPN tunnel so that I can access remote subnet and servers behiend a Cisco firewall/router securely? How do I setup a tunnel mode configuration which will provide you with an encrypted site-to-site network, allowing networks at multiple remote locations to be able to securely communicate using my PFSense located in my SOHO?
[click to continue…]

FreeBSD Force DHCP Client (dhclient) to Renew IP Address To Get A New Lease

I have a Linux DD-WRT router DHCP server running on my network. How can I force my FreeBSD based dhcp client to get a new lease from this Linux based router? What is the command in FreeBSD equivalent to Windows' "ipconfig /renew" command?
[click to continue…]