Category Archives: Programming and Scripting

DNS and DHCP on Synology NAS

Synology documentation sucks big time! It usually only states the blindingly obvious missing off any useful or helpful information.

This post will run through the harder parts of setting up DNS and DHCP on Synology NAS. It is a little tricky the first time you do this especially if you have not come across bind or bind9 before. It seems a little over the top or just plain weird. You will only really need this if you have some local servers, computers or other devices that need to be accessed.

Updated for DSM 6.0, because Synology buggered about with stuff! 
This may not work on earlier versions.

Continue reading

Installing and Configuring ssh

I install openssh server and sort out the configuration of ssh so I can login to other machines locally without a password. This is a security risk! I also want to use Xwindows programs installed and run on one machine while actually running on another, hence the ForwardX11 bit. Also considered a security risk by some.

Continue reading

Split Large Files and Rebuild Them

The other day I needed to transfer a 3.8G file over ftp. The problem was that the ftp server timed out and logged me out when only around a third of the file was transferred.

So I needed to split the file into small chunks and send those. Then you have the problem of sticking all the fragments back together again. Thankfully I’m not on Windows 🙂 I use Linux so this was all done with standard Linux commands.

First I split the file into 500Mb fragments.

Continue reading

Setting Up History in Bash Shell

When you type a command on in a bash shell, it will be added to a history list. You can use the up and down cursor keys to see each command one at a time. There are also lots of other things you can setup and use to aid you when using the command line.

You can type ‘history’ and the list will be displayed. The numbers at the beginning of the line can be use to execute the command. Quick and simple ways to use the command line history.

Continue reading

HOWTO: setup a PXE Server with dnsmasq

To setup a PXE server with dnsmasq is really simple the second time 🙂 This is how I did mine on Ubuntu 12.04, but it should be similar on most Linux distros and versions.

Setup dnsmasq so it is providing DNS and DHCP first. See my How to setup dnsmasq for DNS and DHCP.

Continue reading