Update (Nov 9, 2011): As noted in the comments below, Windows Services for UNIX Version (SFU) is no longer supported on Windows 7 and 2008. For these versions, try installing Cygwin with the optional nfs-server component. If you’re using Windows 2008, you can use the Server for NFS that comes built-in instead – in this case, most of the steps below should apply. A few days ago, I needed to share a large folder present on a Windows server to access it from my local Ubuntu workstation. I initially used Samba, but my build script refused to recognize paths present in that share. The solution was to use an NFS share – but this required a special setup on Windows.[…]

There are just three simple steps needed to automate your SSH/SFTP logins to remote Unix/Unix-like servers from your Ubuntu/Linux distribution, or an emulator on Windows like Cygwin. 1) Run ssh-keygen abdullah@desktop:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/abdullah/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/abdullah/.ssh/id_rsa. Your public key has been saved in /home/abdullah/.ssh/id_rsa.pub. The key fingerprint is: 06:23:fc:34:0f:12:40:b2:5e:7c:41:eb:4f:a2:ab:24 abdullah@desktop The key’s randomart image is: 2) Run ssh-copy-id <username>@<server-name> abdullah@desktop:~$ ssh-copy-id login@myserver.com login@myserver.com’s password: Now try logging into the machine, with “ssh ‘login@myserver.com'”, and check in: ~/.ssh/authorized_keys to make sure we haven’t added extra keys that you weren’t expecting. 3) Login to your server using ssh[…]

To delete or remove a directory in Linux, use the “-r” flag to the “rm” command. “r” stands for recursive. rm -r <directory_name> On some Linux systems, you might be prompted before each file is deleted. This means that the rm command has been aliased to “rm -i”, which turns on interactive mode. To run the original rm command and avoid the prompts, use “\rm”: \rm -r <directory_name> In the bash shell, just as the backslash is used to escape special characters, it is also used to escape aliases. Caution! Be careful to double check the directory name you provide, and be extra careful when using wildcards. There have been many stories of grief because of users ending up deleting important files[…]

Flipkart is often called the Amazon of India. Set up by two ex-Amazon employees as a startup in 2007, it brings Indians the best of the online shopping world knocking at their doors. I’ve been a regular buyer of stuff from Flipkart, and my experience with them has been simply amazing. So here’s my review on Flipkart, and what I believe has been helping them to be highly successful. 1) They provide an estimated delivery time – and keep their promises Flipkart does not think short term by providing overly optimistic delivery times. Online stores will ensure returning customers only if they keep their promises, and Flipkart seems to keep that in mind with their fairly accurate delivery time estimates.[…]

I was asked to look into this problem at my alma mater where the administrators wanted to have access to their Tomcat web application, without specifying the port number, or the application name. That is, visiting www.myecampus.info should open the application in Tomcat, and not serve Apache’s home page that displays the Fedora logo. At the same time, they needed access to applications running on Apache itself, such as phpMyAdmin, which cannot be ported to Tomcat. Initial attempt My initial attempt was to make Tomcat run on port 80, and change the port for Apache to 85. This worked flawlessly, but there were two important issues with this setup: Tomcat needed to be run as root in order to allow[…]