This tweet has to have been the most popular thing I have ever said. At time of posting it has gained 80 retweets, 25 favourites and many replies/questions. Work recently bought me a new workstation, so the 1st thing I always do is to dual boot with Ubuntu. Some might consider me an edge case user. [...]
Archive for the ‘Linux’ Category
Chroot SFTP home dir
Example user ‘iain’ sudo mkdir -p /chroot/iain/home/iain sudo useradd -M -d /home/iain iain sudo passwd iain sudo chwon iain: /chroot/iain/home/iain sudo nano -w /etc/ssh/sshd_config # At the end of the file, add: Match User paypoint ChrootDirectory /chroot/iain AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp sudo /etc/init.d/ssh restart
Ubuntu 12.04 LTS on Bytemark VM
If, like me, you can’t wait for Ubuntu 12.04.1 to be released, you can force an upgrade of your favourite OS OS. sudo apt-get update; sudo do-release-upgrade -d If you are going from the previous LTS 10.04, then the -d is important. Otherwise there would be no upgrade to offer. The upgrade process should go smoothly [...]
PPTP tunnels and if-up.d
Current project requires a couple of VPN tunnels to be set up. An IPsec and a PPTP. The IPsec will wait for another day, the PPTP is set up and ready to go. One thing that wasn’t quite right with the tunnel though, is the static route created by PPTP missed out a large chunk [...]
Symfony 1.4 Doctrine 1.2 MS SQL Server
Web server: Linux (Ubuntu on my dev setup), Apache, PHP 5.3, Symfony 1.4, Doctrine 1.2. Database server: Microsoft Windows 2008 Server, MS SQL Server Trying to get Symfony to talk to the database server has been a painful experience for the last few days. But perseverance has paid off. Lots of Googling with trial & [...]
Google calendar in Mozilla Thunderbird on Ubuntu 11.10
Via the Ubuntu Software Centre: Search for thunderbird Click on the search result “Thunderbird Email” and then on the “More Info” button Enable at least the “Calendar Extension for Thunderbird – Google Calendar support (xul-ext-gdata-provider)” Install the add-ons Open your Google Calendar in your web browser In the left-hand column, under “My calendars”, hover over [...]
upstart failing to manage mysqld on Ubuntu 10.04
Installed Ubuntu 10.04 from ISO onto a blank virtual box machine. All worked well for a while, until I recently did an aptitude safe-upgrade. The next time I booted the system, mysql failed to start and refused to do so when I issued: sudo service mysql start It would just hang there. Tracked the issue [...]

