Category Archives: Linux

Symlink, ln

Common synlink’s you do. ln -s /usr/bin/svnlite /usr/bin/svn ln -s /usr/local/share/munin/plugins/scs_directory_size_v3_ /usr/local/etc/munin/plugins/scs_directory_size_v3___var___db___mysql ln -s [SOURCE FILE / DIR] [CREATE SYM LINK HERE]

perl cpan

To gain access to cpan type perl -MCPAN -e shell To update cpan type install CPAN reload cpan To install a module via cpan type cpan> install HTML::Template

Munin plugins

Example, trying to get portaudit plugin working… Download to /usr/local/share/munin/plugins/portaudit. chmod a+x /usr/local/share/munin/plugins/portaudit. running “munin-run portaudit” results in the following error # Unknown service ‘portaudit’ running “munin-node-configure –shell” tells me to run the following o create the symbolic link. ln -s ‘/usr/local/share/munin/plugins/portaudit’ ‘/usr/local/etc/munin/plugins/portaudit’ running “munin-run portaudit” now works.

htaccess surpress / display PHP errors

# supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0 # display php errors php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on php_value docref_root 1 php_value docref_ext 1

My linux personalisations

.bashrc # .bashrc # User specific aliases and functions alias rm=’rm -i’ alias cp=’cp -i’ alias mv=’mv -i’ # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi .bashrc_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup… Read More »

Linux Filesystem Backup

tar cvzpf /tmp/Backup.tgz –same-owner –exclude=/proc/* –exclude=/media/* –exclude=/dev/* –exclude=/mnt/* –exclude=/sys/* –exclude=/tmp/* / 2>/tmp/error.log

Putty / Puttygen / SSH Keys

Run Putty Key Generator (puttygen.exe) and create and save keys (private as .ppk, public as .public). Copy the text in the window labelled “Public key for pasting into OpenSSH authorized_keys file:” Log onto server and past the key into a users authorized_keys file and save Open putty and navigate to Connection -> SSH -> Auth.… Read More »