Network

Allow NFS through iptables on a RedHat system

This post describes how you can configure your RedHat Enterprise WS 4 NFS system behind a iptables firewall to be available for clients outside the firewall on a permanent basis. Symptom NFS relies on portmap to assign the ports on which it will listen. One side effect of this is that the ports are randomly […]

Read More
Photo etc

Rename image files according to EXIF date

This rename trick can be run in Windows, Linux and even Mac since the commandline program I’m going to use, exiv2, is available in all three platforms. Rename all image files in current folder to the format YYYYMMDDHHMM_Filename.EXT This has been tested on my Nikon D80 JPEG and NEF image files. Linux exiv2 -r’%Y%m%d-%H%M_:basename:’ rename […]

Read More
Windows

Delete print queue in Windows 2003 Server manually

It is sometimes necessary to delete the print queue when a printjob won’t be deleted from Printers and Faxes. To delete print jobs manually you should stop the Print Spooler service from and then delete all the files in the C:\Windows\System32\Spool\Printers\ folder. Remember to start the Print Spool service afterwards, otherwise nowone can print. Please […]

Read More
Linux

SFTP in batch mode

This post describes how you use sftp in batch mode. If you don’t want to type in your password read my SSH without a password post.Create a file named myCommands.sftp that contains the commands you want to run. My file looks like this # Change to your desired directory locallylcd /data/Hattori# Change to the desired […]

Read More
Linux

SSH Without a Password

The following steps can be used to ssh from one system to another without specifying a password. Notes: The system from which the ssh session is started via the ssh command is the client. The system that the ssh session connects to is the server. These steps seem to work on systems running OpenSSH. The […]

Read More