Download files from a http authenticated directory using wget

How to, Linux, OpenSource, Resources, Thoughts, Tips and Tricks, Tutorials, Ubuntu
I wanted to download something off a sub-domain using wget that I have password protected using .htaccess so the following command was NOT working [code lang="plain"]wget [/code] Luckily, we can pass two arguments to the same command and tell wget what the username and password is [code lang="plain"]wget --http-user=myuser --http-password=mypass [/code] Works Great!! If you are using Ubuntu 8.10, have not enabled root user and trying to download to a directory that has "nobody" or "root" as owner then try pre-pending it with sudo [code lang="plain"]sudo wget --http-user=myuser --http-password=mypass [/code]
Read More

How to Install Webmin in Ubuntu

How to, Linux, OpenSource, Resources, Reviews, Tips and Tricks, Tutorials, Ubuntu
From the little help that I can get over the internet, I found out that you need to install the following packages to prepare the system for Webmin installation. Run the following command over SSH or Ubuntu Desktop's terminal window (Applications -> Accessories -> Terminal). [code lang="plain"]sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl [/code] (Learn how to configure SSH on Ubuntu 8.10 if you want to have a remote access to your Ubuntu box). Download the latest version of Webmin by running the following command (visit webmin download section for newer versions) [code lang="plain"]wget [/code] Downloading Webmin After the package has been downloaded, run the following command to install it [code lang="plain"]sudo dpkg -i webmin_1.500_all.deb [/code] You should now be able to login to Webmin at…
Read More

Ubuntu 8.10, Perfect Linux distro for PHP development

Linux, OpenSource, Resources, Reviews, Thoughts, Ubuntu
I recently felt the urge to have a development testing environment on Linux (LAMP). I tried CentOS first since it is one of the leading industry standard Linux server. I was disappointed to see that CentOS does not have a 5.2.x series of PHP that I could install via "yum" (am not a very advance user so does not wanted to build it by typing long queries in SSH just to find out that I left some core thing in the first place). I did a bit of research and found out that Ubuntu could be a better choice. Luckily I had the latest version of Ubuntu already shipped via Postal Mail (aka Snail Mail) and this time the CDs DID get through the customs. For those new to Ubuntu,…
Read More

How to create a tar file using SSH on Linux

Linux, Tips and Tricks, Tutorials
To create a tar from a directory using SSH on Linux punch in the following command [code lang="plain"]tar -vcf backup.tar mystuff/[/code] Where "mystuff" is a directory and backup.tar is the target compressed file. You can also create a file called archive.tar of all the files and subdirectories in the current directory with the following command [code lang="plain"]tar -vcf backup.tar *[/code] Note: "v" flag is for verbose mode.
Read More