Howto install Debian packages
Posted: 25 May 2007, 02:50
This howto tells you howto install packages from the Debian repositories.
To do this you first have to log on to Bubba as root. This is done via ssh. If you run Linux or MacOSX ssh should most likely be available, on windows you can use Putty or Cygwin.
Root is not allowed to log in directly to Bubba so one has to do a trick here. Make sure you have a user with "shell login" equal to yes. If not edit the user and set Allow SSH login to yes and save these settings.
SSH into Bubba with the ordinary user. Then when logged in to Bubba you can become root by issuing the command su the password for root is excito if you have not changed it.
You now have to enable the Debian sources for the package manager to be able to use them.
Edit the file /etc/apt/sources.list You could use nano to do this ie nano /etc/apt/sources.list
The file should look something like:
You have to remove the initial # from the first three lines that makes the Debian sources disabled. You should end up with something like:Save the changes and exit the editor.
Tell the package manager that the sources have changed:
Now you are ready to install the packages you want. This is also done via the apt-get command. So for example to install python on bubba do:
Available packages can be found here: http://packages.debian.org/oldstable/
When done installing you should always restore the sources file to its original state. Otherwise future upgrades via web-admin will most likely fail.
To do this you first have to log on to Bubba as root. This is done via ssh. If you run Linux or MacOSX ssh should most likely be available, on windows you can use Putty or Cygwin.
Root is not allowed to log in directly to Bubba so one has to do a trick here. Make sure you have a user with "shell login" equal to yes. If not edit the user and set Allow SSH login to yes and save these settings.
SSH into Bubba with the ordinary user. Then when logged in to Bubba you can become root by issuing the command su the password for root is excito if you have not changed it.
You now have to enable the Debian sources for the package manager to be able to use them.
Edit the file /etc/apt/sources.list You could use nano to do this ie nano /etc/apt/sources.list
The file should look something like:
Code: Select all
#deb http://ftp.se.debian.org/debian/ sarge main
#deb http://security.debian.org/ sarge/updates main
#deb http://ftp.se.debian.org/debian/ sarge non-free
deb http://update.excito.net/ bubba main
Code: Select all
deb http://ftp.se.debian.org/debian/ sarge main
deb http://security.debian.org/ sarge/updates main
deb http://ftp.se.debian.org/debian/ sarge non-free
deb http://update.excito.net/ bubba main
Tell the package manager that the sources have changed:
Code: Select all
apt-get update
Code: Select all
apt-get install python
When done installing you should always restore the sources file to its original state. Otherwise future upgrades via web-admin will most likely fail.