Archive for the ‘ssh’ Tag

COMMAND LINE ADVENTURES: Debian Lenny Base Install Setup

Debian 5 (Lenny)
Linux kernel: 2.6.26-2-486

I was given and old Compaq Presario and I wasn’t sure what I should do with it. I mean old. The CPU is a 500mhz AMD K6 and it’s also sporting about 256MB of ram. Nice. First I installed Debian 5 (Lenny) with Gnome, but it was impossibly slow. I even installed the LXDE desktop. Still miserable. Puppy linux ran ok but it wasn’t quit what I was looking for. I’ve always wanted to use the command line more so I figured that this was my chance. What better distro to learn on than Debian. I’ve heard of the irssi, screen and ssh combo but I’ve never done or even seen it. So I figured I’d set up a base install of Debian Lenny, Install irssi and screen and ssh into it from my other machines. That way I can stay logged into IRC at all times. Lets give it a shot.
I used the same net install cd that I have used on the other install. Only thing is, I’m not installing a desktop.
That’s right, no GUI.
First thing I did was install sudo
I need super user rights first.
$ su
# aptitude install sudo
Then I added myself to the sudoers list:
Still with super user rights I typed:
# visudo
I added myself so it looks like this:
user_name ALL=(ALL) ALL
Then ctrl+x and press Y when prompted to save.
Then press enter.

My sources.list looks like this:

deb lenny main
deb-src lenny main

deb lenny/updates main
deb-src lenny/updates main

deb lenny/volatile main
deb-src lenny/volatile main

I’m still not sure what the volatile repo’s are for.
I’ll leave my sources list as they are for now.

Next I installed a weather utility
$ sudo aptitude install weather-util
the command for my area would be:
$ weather -f -i kvpz -c valparaiso -s in
This gives me the current conditions and a 2 day forcast.
(kvpz is the code for the weather station near me. Find yours here)
Don’t forget to checkout the man page:
$ man weather

Next I installed screen
$ sudo aptitude install screen
It works well with irssi and ssh.
Start screen by typing :
$ screen

Next I installed the IRC Client irssi
$ sudo aptitude install irssi
A solid configurable IRC client. It took me some getting used to.

Next I installed Open SSH Server
$ sudo aptitude install openssh-server
Still trying to figure this whole thing out. I think ssh was installed,
but not the server.
From client to server:
$ ssh -l [username] [ssh server ip]
To end session type: logout