How to create debian init.d startup script

Screenshot of sysv-rc-conf

From time to time I need to create an init.d startup script for a program that is not part of the default debian distribution. I’ve always found it unnecessarily fiddly to create a new script. The other day I came across naholyr’s gist, a script to make init.d scripts. There were a few problems with… Continue reading How to create debian init.d startup script

Pull a backup from a remote host with ssh and tar

Sometimes you might need to copy a whole directory from a remote host, but the remote host does not have enough space to tar the whole thing up and then sftp it off. The solution is to tar/bzip the directory and stream it directly to your local host: ssh root@remotehost ‘tar cjf – /path/to/somedirectory’ |… Continue reading Pull a backup from a remote host with ssh and tar

Tips on installing FreeSWITCH and FusionPBX in debian

I’ve been testing out FreeSWITCH and FusionPBX. I found it non trivial to install in debian. Here are my tips for installing. Don’t bother with the install script. I found it to be broken. And when it breaks during install, it leaves you in a state that’s very hard to understand and fix. In the… Continue reading Tips on installing FreeSWITCH and FusionPBX in debian

Preserve file permissions 664 under subdirectories in linux with ACLs

Have you ever wanted to give several users permission to work on files within a directory, but then struggled with what permissions and user:group ownership to set them to so users can always edit the files? You might think the solution is to make the parent directory owned by a common group, lets say dev,… Continue reading Preserve file permissions 664 under subdirectories in linux with ACLs

How to make a bootable usb stick in Windows 7 of a debian iso

Every so often I need to make a bootable USB stick in Windows 7 (64 bit) of a debian installer iso. For some reason my googling usually does not reveal a simple solution for this. I asked on #debian on the OFTC network and got various suggestions. The first suggestions were to use win32 compiled… Continue reading How to make a bootable usb stick in Windows 7 of a debian iso