logIt Log Around The Clock

Posts Tagged ‘local bin’

Script to Override Current DNS with OpenDNS


I added the following script (named use-opendns) which basically copies current DNS used to a backup file and then override it with another file already containing OpenDNS resolver. #! /bin/bash cp -f /etc/resolv.conf /etc/resolv.assigned.conf cp -f /etc/opendns.resolv.conf /etc/resolv.conf I put this in local bin and add a launcher to the panel as Application in Terminal [...]

Launcher for Java GUI

Launcher for java GUI in local bin (named ovo-java-gui). #! /bin/bash   export JAVA_DIR=/usr/ /opt/OV/www/htdocs/ito_op/ito_op exit 0

Add Script to Local Bin for Default Path


By adding script to /usr/local/bin, it will become reachable. What reachable means is that it’ll be part of the default PATH echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games It supposed to be in executable permission (chmod +rx).