New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Howto install Debian packages

A collection of tips on howto tweak your Bubba.
Post Reply
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Howto install Debian packages

Post by tor »

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:

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
You have to remove the initial # from the first three lines that makes the Debian sources disabled. You should end up with 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
Save the changes and exit the editor.

Tell the package manager that the sources have changed:

Code: Select all

apt-get update
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:

Code: Select all

apt-get install python
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.
tomas
Posts: 3
Joined: 29 Aug 2007, 15:30

rTorrent

Post by tomas »

I tried "apt-get install rtorrent", but got "E: couldn't find package rtorrent" back. If I understand correctly rtorrent can be found in "unstable". How do I install from unstable without messing up ftd and ssh (I read about this in http://www.excito.org/forum/viewtopic.php?t=213)?

Thanks![/url]
rodrigo
Posts: 16
Joined: 16 Feb 2008, 10:28

Re: Howto install Debian packages

Post by rodrigo »

How do i save the changes and exit the editor?

i am brand new to linux, so this is relally new for me, thanks in advanced, rodrigo.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Post by 6feet5 »

You should find a brief help text at the bottom of the editor. The caret symbol (^) means control key, so CTRL-O will save the file and CTRL-X will exit. CTRL-G will give you some more information.

/Johan
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

rodrigo,

THis depends on which editor.

If you use nano. You save by press ctrl and o and exit the editor by pressing ctrl and x

If using Vi, press esc to leave edit mode and then press :wq to save and exit.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Post Reply