Monthly Archives: November 2008

How to View a Specific Page or Section of Manpage

For example, the “kill” manpage shows: SEE ALSO bash(1), tcsh(1), kill(2), sigvec(2), signal(7) This is how to view section 7 of the “signal” manpage: man 7 signal

Posted in Bash, Linux | Leave a comment

How to keep SSH sessions alive

Edit your ssh_config file like this: /etc/ssh/ssh_config: ServerAliveInterval 30 This will cause your SSH client to send a keep alive ping every 30 seconds to the server.

Posted in Linux, SSH | Leave a comment

Extract parts of string into array using Perl regular expression

How to go directly from string to an array using Perl Regex extraction: my ($first, $second, $third) = ( $string =~ /not(.*?)this(.*?)stuff(.*?)/ );

Posted in Perl | Leave a comment

Disable auto commenting in VIM using the .vimrc file

Combined some tips together to figure this one out. Put this into your .vimrc file: au FileType * setl fo=cql I’m using VIM version 7.1.12

Posted in Linux, VIM | 1 Comment

Minimal PhpMyAdmin new server config

Besides the boilerplate at the top, here’s the least you need to add another database server to the dropdown list in PhpMyAdmin: $i++; $cfg['Servers'][$i]['auth_type'] = ‘cookie’; $cfg['Servers'][$i]['host'] = ‘my.host.com’;

Posted in Linux, PhpMyAdmin | Leave a comment

Munin MySQL plugin not working or blank graphs

Add a user “nobody” only accessible via “localhost” with no password and only “usage” privileges. If you look at the MySQL log, you will see the munin client accessing MySQL via the “nobody” user. To test the munin client, connect … Continue reading

Posted in Linux, Munin, MySQL | Leave a comment

How to fix sshfs "Connection reset by peer"

Clear out the /etc/hosts.deny file on the destination server Also, make sure these lines are uncommented in your sshd_config file on the destination server: /etc/ssh/sshd_config: Subsystem       sftp    /usr/libexec/openssh/sftp-server DenyGroups nossh Restart sshd.

Posted in Linux, SSHFS | Leave a comment