Found this article which said: open System Preferences, click Sharing and check Remote Login.
Category Archives: Sys Admin
SSH login delay on Debian
I was suffering a delay when SSHing to my Debian system. I found SSH session slow to start? It’s the DNS stupid! and solved my problem by editing /etc/ssh/sshd_config and adding:
UseDNS no
Run your own Firefox Accounts Server
Reading about how to Run your own Firefox Accounts Server…
Opening drive root on Mac OS X
Everything is easy when you know how!
Command+Shift+G
Setting svn:ignore from the command line
Today I had to lookup how to set svn:ignore from the command line:
$ svn propset svn:ignore [file|folder] [path]
MediaWiki: $wgRawHtml
Today I discovered the $wgRawHtml setting which allows for the inclusion of HTML in MediaWiki pages. Wicked! :)
New Apache SSL configuration
Today Apache complained about SSLCertificateChainFile being deprecated and it told me to use SSLCertificateFile instead.
SSLCertificateFile was already in use with the .crt file. I had to create a new ‘SSLCertificateFile’ by concatenating the .crt file with the ca-bundle, and that fixed the problem:
# cat trust.jj5.net.crt trust.jj5.net.ca-bundle.pem > trust.jj5.net.pem
Install PHP 5.4 on Ubuntu 12.04 LTS
I followed these instructions to install PHP 5.4 on Ubuntu 12.04 LTS.
Basically:
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php5 $ sudo apt-get update $ sudo apt-get dist-upgrade
Apache2 REQUEST_FILENAME requires DOCUMENT_ROOT
I had a problem with my rewrite rules, that looked like this:
DocumentRoot /var/www/trust.jj5.net
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) http://trust.jj5.net/sorry.html [L,R]
I was trying to redirect any request which didn’t match a file or directory. The !-f and !-d requirements were failing because the path to the REQUEST_FILENAME wasn’t fully qualified. I fixed the problem by including the DOCUMENT_ROOT:
DocumentRoot /var/www/trust.jj5.net
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule (.*) http://trust.jj5.net/sorry.html [L,R]
Happy days! :)
dir2ogg (no chipmunks!)
Learned about dir2ogg over here and am using it to convert MP3 to OGG.
So… I installed dir2ogg:
# apt-get install dir2ogg
And then I ran it on some MP3s, and the generated OGG files sounded like chipmunks. I read the man page for dir2ogg and saw that it had an option for mp3-decoder. I tried specifying the lame decoder but it complained that it couldn’t find it, so:
# apt-get install lame
Then I ran dir2ogg with the following command and the ouput OGG files sounded proper!
$ dir2ogg --mp3-decoder=lame --quality=10 .
Happy days!