Display IP address in bash shell prompt

I have seen some other methods but this is my technique using the relatively lightweight sed:

export PS1=`/sbin/ifconfig eth0 | sed -n ‘0,/^s+inet addr:([0-9]+[.][0-9]+[.][0-9]+[.][0-9]+).*$/s//1/p’`’:w$ ‘

Or you can use whatever interface you want instead of eth0. If left blank then it will display the first interface.

Manually add theme to Firefox without a file manager

If you have a locally downloaded theme it can be installed by dragging it into the Add-ons Themes window. Seems simple enough but if you don’t have a graphical file manager on the machine then you may not have an obvious way to drag the file. All hope is not lost though.

Firefox’s own open-file […]