home / blog

Tag Archives: linux

45 second DHCP server setup

Install. sudo apt-get install dhcp3-server Edit /etc/dhcp3/dhcpd.conf option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.254; option domain-name-servers 192.168.1.1; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.100; } Make sure the address of eth0 is in the 192.168.1.* subnet. Restart … Continue reading

Posted in geek | Tagged , | Leave a comment

45 second anonymous ftp server setup

Setup of ftp server on debian/ubuntu… First install it. sudo apt-get install vsftpd Next edit /etc/vsftpd.conf. There are tonnes of options, but this is pretty much the bare minimum. listen=YES local_enable=NO anonymous_enable=YES anon_root=/var/ftp Now provide access to directory “Music” in … Continue reading

Posted in geek | Tagged , | Leave a comment

Ubuntu VPN server setup

Want to use VPN to circumvent geo-IP detection on channel 4OD, BBC iPlayer etc whilst abroad? Here’s a quick checklist. Make sure your UK home network isn’t using a standard IP subnet (192.168.0.*, 192.168.1.* or 10.0.0.*). This is important as … Continue reading

Posted in geek | Tagged , , | Leave a comment

LAMP hello world

Quick start/refresher cheat-sheet on setup of fresh LAMP test server on Ubuntu 9.10. Intended for local development only, no security concerns addressed. Installation apt-get install apache2 libapache2-mod-php5 php5 mysql-server php5-mysql Login as root user to create a dedicated user and … Continue reading

Posted in geek | Tagged , , , | Leave a comment

Obscure command line switch of the day

-max-procs n switch to xargs allows easy “parallel” processing in scripts. cat file.txt | xargs -i{} -max-procs 10 something {}

Posted in geek | Tagged , | Leave a comment

Samba follow symlinks vs wide links

Samba can be configured to allow symlinks, however by default the symlinks allowed with “follow symlinks = yes” can only be within the path of the share (for very good security reasons!). If you need to link outside that path … Continue reading

Posted in geek | Tagged , | Comments Off on Samba follow symlinks vs wide links

Mounting filesystems over SSH

If you’re using a web host that supports SSH login, then you can mount the filesystem over SSH with Linux. # install the package (debian/ubuntu) sudo apt-get install sshfs # Create a mount point in current directory mkdir example.com # … Continue reading

Posted in geek | Tagged , , , | Comments Off on Mounting filesystems over SSH

xmltv manip timezone fail [solved]

Fail When trying to use xmltv with mythtv, specifically tv_grab_uk_rt, with Ubuntu 10.4 the following error is seen. XMLTV requires a Date::Manip timezone of +0000 to work properly. Current Date::Manip timezone is 1. Fix Use the latest version and dependencies … Continue reading

Posted in geek | Tagged , , | Comments Off on xmltv manip timezone fail [solved]