Tuesday, May 20, 2008

Minimal Debian install with Fluxbox

Basic Installation

Install only the base system (w/ networking) of the latest Debian (I don't select any of the package bundles when given the option).

$ su -
$ nano /etc/apt/sources.list

Comment out the line with the CD in it with a #.

Add these lines (adjust for the version of debian you're installing):

deb http://ftp.debian.org/debian etch main contrib non-free
deb-src http://ftp.debian.org/debian etch main contrib non-free

Now is generally a good time to update your system with any security patches:

# apt-get update
# apt-get upgrade

Installing sudo

I have gotten really used to using sudo, so the first thing I do is:

$ su -
# aptitude install sudo

Then I edit /etc/sudoers
# export VISUAL="nano"
# visudo

Add the following line:

username ALL=(ALL) ALL

(Note ganked from somewhere: So the first part is the user, the second is the terminal from where the user can use sudo, the third is as which user he may act, and the last one, is which commands he may run.)

Installing X and Fluxbox

$ sudo aptitude install fluxbox
$ sudo aptitude install xserver-xorg
$ sudo aptitude install xdm

To run Fluxbox from xdm you should create a .xsession file in your home_directory. Insert the line:

exec startfluxbox

$ sudo reboot

Installing Xterm

sudo aptitude install xterm

Installing other Useful Apps

Install your preferred editor, browser and any other programs you want:

sudo aptitude install geany [full featured editor, though there are lighter ones out there]
sudo aptitude install firefox
sudo aptitude install gentoo [useful graphical file manager]

Other Tweaks

One program I generally like to install is Conky, which gives me all the stats about my system resources and whatnot. Here's the installation I've use. Recently, though, I've had a problem with it flickering on my screen (and I've tried the suggested fixes), so I've started using the curses based Saidar.

$ sudo aptitude install saidar

Next, in order to easily switch between keymaps edit ~/.bashrc by adding

alias aoeu="setxkbmap us"
alias asdf="setxkbmap dvorak"
Technorati Tags: ,

11 comments:

MadJawa said...

Thanks, that helped me :)

Anonymous said...

It is best to install xterm before the reboot. Just a suggestion. Also I did not need to create the .xsession file. Thanks for all the tips though!

Anonymous said...

Hi there, just became alert to your blog through Google, and found that it's truly informative. I'm gonna watch out for brussels.
I'll be grateful if you continue this in future. A lot of people will be benefited from your writing. Cheers!

Review my web blog: Garmin gpsmap 60csx Color

Anonymous said...

My partner and I stumbled over here different web page and thought I may as well check things out.
I like what I see so now i'm following you. Look forward to exploring your web page for a second time.

My homepage 18726

Anonymous said...

I like the valuable info you supply to your articles. I'll bookmark your blog and test once more right here regularly. I am fairly sure I will learn a lot of new stuff right here! Best of luck for the next!

Here is my web page; 20322

Anonymous said...

May I simply just say what a relief to discover someone that truly understands what they are discussing over the internet.
You certainly know how to bring an issue to light and make it important.

A lot more people must check this out and understand this side of the story.
It's surprising you are not more popular given that you surely have the gift.

my site; http://chestfatburner.com/cabbage-soup-diet-for-your-moobs/

Anonymous said...

wonderful submit, very informative. I wonder why the other specialists of this sector do not realize this.
You should proceed your writing. I'm confident, you've a huge readers' base already!

my site: How does Gynemax aid treat man boobs

Anonymous said...

What's Happening i am new to this, I stumbled upon this I have found It positively useful and it has helped me out loads. I'm
hoping to give a contribution & aid other users like its aided me.
Good job.

Here is my web-site "amino acid"

Anonymous said...

I know thіs if off topic but I'm looking into starting my own weblog and was curious what all is needed to get set up? I'm аssuming havіng a blog
lіke yours would сost a pгetty рenny?
I'm not very internet savvy so I'm not 100% surе.
Аny tips or advice wοulԁ bе grеatly apprecіated.

Manу thаnκs

Mу blog post - hgh supplements

Anonymous said...

Just dеsiгe to ѕay yοur аrticle is
as aѕtonіshing. Thе clаritу on your put up iѕ ϳuѕt greаt and i cаn think you're a professional on this subject. Well along with your permission let me to clutch your feed to keep up to date with approaching post. Thanks 1,000,000 and please keep up the enjoyable work.

Feel free to visit my weblog: bulk Shampoo

Anonymous said...

Ιt's the best time to make a few plans for the longer term and it's time
to bе hаpρy. I've learn this put up and if I may just I wish to recommend you some attention-grabbing issues or suggestions. Maybe you can write next articles referring to this article. I wish to learn more things about it!

Also visit my homepage; pure green coffee extract