Find your LAN/WAN/DHCP addresses

Most often, if you’d like to know what your router IP address is, you need to have access to its interface via a browser, or similar such gadgets. Here’s a few convenient one-liners which will give you that info more easily/conveniently… #get WAN address dig +short myip.opendns.com @resolver1.opendns.com #get DHCP server address(es)… cat /var/lib/dhcp/dhclient*leases \…

minimalist *nix GUI

On the topic of minimalist… I like a small footprint…and I stumbled upon some numbers and according to the “internet”… Plain Openbox only: 58 MB XFCE: 89 MB (with default configuration of Debian) LXDE (gtk+ 2 version): 78 MB (add 20 MB to openbox) On my “fully loaded” desktop station, including/running LibreOffice and a bunch…

*nix script snippets that are useful/clever

For the record – these are lookups – NOT my creations. I will add more as I go #Backup & clear history DATE=`date +%Y%m%d-%H%M` mv ~/.zsh_history{,.$DATE} cat /dev/null > ~/.zsh_history #HDD space (without clutter) df -h | grep -v “tmp\|udev” #send contents into a file (you need to \escape any \$variables within the CONTENTS+COMMANDS) cat

Best *nix (Server)

CentOS VERY solid and stable. I have several servers that have uptime of >500days (the very few incidences of downtime were from power issues, not OS). I did get hacked a couple of times before I learned how to use iptables adequately.   Debian SOMETIMES, compatibility calls for non-CentOS. I am not a fan of…

Best *nix (Desktop/Workstation)

My objective when I started experimenting with Desktop linux, was to mimic a WinX station. I would hazard a guess that this is the most likely scenario for anyone switching away from M$-windows. If they can’t keep doing their work “productively” – they are NOT going to be interested in whether the propellor heads think…