Due to our load-balancing router being a little “harsh” on closing connections that appear to be unused, ssh often sits and hangs. Using a standard ssh config option though we can set a server keep-alive (on the ssh client, which also keeps sshfs alive) In the “~/.ssh/config” file, simply adding the following keeps the connection [...]
Archive: linux
If you use Linux on a regular basis, you’ll probably know just how useful a symlink is. This makes things extremely annoying when a program refuses to work with them – treats them as a file or just refuses to work. Enter: mount –bind mount –bind is a special type of mount that will mount [...]
If you need to test your code against the (ahem) interesting interpretations of the various iterations of Internet Explorer then this is a great resource for you. Turns out Microsoft have thrown web devs a bone by offering free virtual machine images with the various IE/OS flavours for you to test on. You can download [...]
The for command The for command is extremely useful for working with a group of files, it can be used with a glob (e.g. "*.jpg"), the output of a command (e.g. grep) or an internal command such as expr. Two examples :- Combining with imagemagic's convert command to convert a directory's png files to jpegs [...]
If you are using an ATI graphics card with Linux then you might be struggling with the fact they have helpfully decided to only use two thirds of your screen. They actually do the same thing with windows but give you a nice tick box to disable this "feature" In linux though we are not [...]
If you are trying to get your computer and TV talking to each other over your home network so you can directly play files on the TV over the network then this is for you. Windows 7 has DLNA built in and initially I was booting into that for DLNA services, but the behaviour is [...]
I've recently had to upgrade a shop that lists products on amazon. They wanted to automatically add new products and keep their inventory up to date, so I set up a feed generating system and installed AMTU to send the data through to amazon. After putting together a test run I saw that the Inventory [...]
Bash provides many powerful functions but how can you use these easily? If you spend any time using the command line, either to manage a server or on the desktop, you have to quickly become proficient with bash. You will also find the you carry out many of the same tasks time after time. This [...]
If you get the error: Got error 28 from storage engine query When you are trying to access your web site, database or phpMyAdmin then the problem is likely to be that you have run out of hard disk space. If you have command line access you can quickly check this by running PLAIN TEXT [...]
Want to browse your man pages but not in the console? You can of course hit the search engines but its got to be better to be looking at your own man pages so you know the instructions are for your machine, version etc. For this just PLAIN TEXT CODE: sudo apt-get install tkman And [...]