Simple PS1 – bash prompt in linux
SIMPLE PS1 ############ # Setting PS1 to this (these are the defaults for distros like Red Hat): [\u@\h \W]\$ # To set it: echo PS1='[\u@\h \W]\$' # Example: [user@hostname workingdir]# # SoRead More…
SIMPLE PS1 ############ # Setting PS1 to this (these are the defaults for distros like Red Hat): [\u@\h \W]\$ # To set it: echo PS1='[\u@\h \W]\$' # Example: [user@hostname workingdir]# # SoRead More…
DD NOTRUNC OPTION #################### When writing a file to another file, you have the option to write 2 ways with dd, with notrunc or without notrunc(default) Easiest thing to remember is noRead More…
ZFS – Dealing with Failed Drives, using spares and new drives – and autoreplace Links/Citations: *http://www.firstalt.co.uk/sample/s10up.pdf *http://www.bolsondigital.com/2013/06/01/replacing-an-hdd-in-a-zfs-pool-on-nas4free/ *http://www.packetmischief.ca/2013/06/10/how-i-replace-a-failedfailing-hdd-in-a-zfs-storage-pool/ *http://docs.oracle.com/cd/E19253-01/819-5461/gbcet/ *http://docs.oracle.com/cd/E19120-01/open.solaris/817-2271/gbbxi/index.html *https://blogs.oracle.com/eschrock/entry/zfs_hot_spares REPLACING FAILED DRIVE WITH SPARE Spares usually auto fall a failedRead More…
HOW TO CHANGE EVERYONES PASSWORD IN SQL WITH PHPMYADMIN (including roots) NOTE: if you only want to change roots password, log in as another user. If you logged in as another allRead More…
VIMs SUDO SAVE ################### Started writing a file and forgot to sudo, thus cant save it because missing permissions? Well here is the command to sudo the save: :w !sudo tee %Read More…
Latest .tmux.conf configs (1) default key binds config (prefix “b” with default keys) and hotkey mappings are below Here is the same config (prefix “b” w/ default keys) but works for olderRead More…
SQUID PROXY SETUP FOR REMOTE COMPUTERS TO ACCESS ################################################## If you read my article/notes on Proxys: HERE. Realize that we are setting up a Forward Proxy here. Reverse Proxys are used forRead More…
EASIEST BEST WAY ################# This has the positive of just giving you the IP on 1 line, no other garbage and it has worked for year (2 for me and counting, imRead More…
HOW TO INSTALL IPYTHON FROM SCRATCH ON DEBIAN 7 ################################################ Links that I used to get this information and install ipython with: Installation and uninstallation: http://www.installion.co.uk/debian/wheezy/main/i/ipython-notebook/install.html http://www.installion.co.uk/debian/wheezy/main/i/ipython-notebook/uninstall.html Configuration & General: http://askubuntu.com/questions/335883/how-to-use-the-newest-ipython-in-ubuntu12-04 http://ipython.org/ipython-doc/rel-1.1.0/interactive/public_server.htmlRead More…
One great solution is download the package that contains the missing file (usually a header file, .h extension). First look for the file with link below, note the package name and apt-getRead More…