Journaling on estrip is free and easy. get started today

Last Visit 2024-11-20 13:02:24 |Start Date 2007-04-01 15:09:25 |Comments 9,863 |Entries 1,011 |Images 1,430 |Sounds 30 |SWF 1 |Videos 219 |Mobl 27 |Theme |

Category: linux

08/07/11 10:19 - ID#54892

Learning about linux by dissecting packages

What makes a flawless efficient productive system? What goes into all those small things that make sticking to one OS easier than the other? What is behind those simple little tricks that you get used to in one OS that helps you work so much more faster than in another new system?

I want a system that will just stay out of my way and not make me think about it. But to not force people to think about anything requires careful thought into what works in the background silently and smoothly. There is of course the universal kernel and the efficiency of code of all bits and pieces of software. But an easier and more non-technical "everyone" way to dissect why one distro offers better productivity than the other is to look at the packages.

I am going to take a look at Crunchbang's packages and list them so that I can understand why that distro comes close to being one of the most perfect distros I have worked on. As usual, the easiest way is to just dissect the hard work already done by the experts. Omns (or Grant Galbraith) in his omns project blog puts together Debian systems all the time and writes post-install scripts for them. I am just going to extract commands from these scripts and put them down here. The difference will be I want to write my own descriptions for each package, why they are essential to the system and what they bring to the table in terms of making that distro a bit more "intuitive", all based on my limited understanding of linux systems.

I guess the goal is to learn not by building linux from scratch but by pulling apart a system that works well. And since I am working backwards, I am hoping to go from the superficial layers to the deep, first looking at the packages that form and work with the graphical interface and immediate enduser functions going down to what comprises the system itself. I probably won't be done in one day or even one year, but hopefully, this will be a useful exercise in understanding a bit more about linux systems that are better than others.

From part II: XFCE 4.8 on Debian Squeeze


  1. Set Repositories

wget
mv /etc/apt/sources.list /etc/apt/sources.list.bak
cp sources.list /etc/apt/sources.list



I usually do:
sudo gedit /etc/apt/sources.list

So what is his sources list...
(% means commented out since the # means something else on (e:strip))
-- DEBIAN SQUEEZE
deb squeeze main contrib non-free
% deb-src squeeze main contrib non-free

-- DEBIAN SQUEEZE UPDATES
deb squeeze-updates main contrib non-free
% deb-src squeeze-updates main contrib non-free

-- DEBIAN TESTING
deb testing main contrib non-free
% deb-src testing main contrib non-free

-- DEBIAN UNSTABLE
deb unstable main contrib non-free
% deb-src unstable main contrib non-free

-- DEBIAN EXPERIMENTAL
% deb experimental main contrib non-free
% deb-src experimental main contrib non-free

-- MOZILLA
% deb squeeze-backports iceweasel-4.0

-- DEBIAN SECURITY
deb squeeze/updates main non-free
% deb-src squeeze/updates main non-free

-- DEBIAN MULTIMEDIA
deb stable main non-free

-- DEBIAN BACKPORTS
deb squeeze-backports main contrib non-free

So I don't like firefox. Never have. I have always been an Opera or currently a Chrome fan. The Mozilla-ice-weasel needs to go in my set up.
  1. Setting up preferences

wget
mv /etc/apt/preferences /etc/apt/preferences.bak
cp preferences /etc/apt/preferences



This is something I don't know about. Something called apt-pinning. Omns has done a post about it that I need to read about. For now these are the preferences in the file we just copied:

Package: *
Pin: release n=squeeze-backports
Pin-Priority: 1001

Package: *
Pin: release n=squeeze-updates
Pin-Priority: 950

Package: *
Pin: release n=squeeze
Pin-Priority: 900

Package: *
Pin: release n=stable
Pin-Priority: 800

Package: *
Pin: release a=testing
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin-Priority: 600

Package: *
Pin: release a=experimental
Pin-Priority: 200

  1. Add Keyrings
This is to prevent the system from whining about "uncertified" and "untrustworthy" sources.

wget
dpkg -i debian-multimedia-keyring_2010.12.26_all.deb



  1. Update Repositories and Upgrade packages

sudo apt-get update
sudo apt-get dist-upgrade



I have noticed that an upgrade always breaks stuff in Crunchbang Statler. Probably an indication that that exact package collection only works with some older Debian components and not with the newer updates. I still haven't learnt how to pinpoint the source of the break.

  1. Base packages and applications.
sudo apt-get install
xorg --> the graphical interface.
gksu --> launches programs in graphical interface
gdebi --> enables double-click *.deb and install ability
file-roller --> an unzip/unrar/untar utility (does not play well with evince)
% why do I need all the compression programs under the sun?
lha --> lzh archiver
lzop --> fast compression program
rzip --> compression program for large files
unalz --> De-archiver for .alz files
zoo --> zoo archive extractor
xz-utils --> XZ-format compression utilities
p7zip-full --> extract 7zip archives
alsa-base --> sound server. Maybe replace with pulseaudio
vlc --> video lan player
audacity --> audio player. vlc is fine really.
libdvdcss2 --> ?
lame --> mp3 codec
gimp --> high end graphics program similar to Photoshop
ttf-freefont --> better fonts rendering. Absolutely essential!
ttf-mscorefonts-installer --> M$shit fonts that are not so shit.
gcolor2 --> ?
agave --> ?
gedit --> The "linux notepad" I like so much!
fortunes --> ?
fortune-mod --> ? (I have read this is important as a notification machine but I am not really sure.)
gedit-plugins --> ? Not sure which plugins these are, the ons that bring along different code highlighting and syntax highlighting maybe. I just need some eye-popping bright ones that may not necessarily belong to R but make error-spotting easier.
evince --> pdf reader. ver 3.0 has annotation support but still ages behind wine + pdf xchange viewer.
gcalctool --> ? calculator?
iceweasel --> weasel I hate (firefox).
gftp -->?
xchat --> irc client. useful for naggy questions in realtime.
transmission-gtk --> torrent client.
wicd --> I think network manager is better in terms of offering a bigger variety of connections. 3G, VPN etc
cups --> something to do with the printer?
cups-pdf --> pdf printing?
system-config-printer --> ?
hpijs --> ?
hplip --> ?
dmz-cursor-theme --> ?
gtk2-engines-murrine -- ?
tango-icon-theme -- ? do I need this eye candy?
gnome-colors --> ?
bash-completion -- ?
screen -- ?
cowsay -- ?
figlet -- ?
scrot -- ?
whois -- ?
rpl -- ?
conky-all --> system monitor. Don´t need this as I only use the clock, that xfce can provide.
zenity -- ?
gparted --> partition disks. Do I really need this?
xfsprogs --> ?
reiserfsprogs --> ?
reiser4progs --> ?
jfsutils --> ?
synaptic --> package installer. Useful sometimes when you don't want to mess around with command line.
ttf-bitstream-vera --> font
ttf-dejavu --> font
ntfs-3g --> ?
pcmciautils --> ?
parcellite --> clipboard manager. I this messes up gnumeric.
fontconfig-config --> ?
libcairo2 --> ?
firmware-linux --> drivers but not sure which ones
firmware-iwlwifi --> I need to compile and install my dear realtek here, this won't help. Atleast not in the current kernel where my wireless has not been integrated.
libreoffice --> current openoffice avatar. I don't need all of it. Maybe only writer, impress and math
libreoffice-gtk --> ?libreoffice related

  1. Clean up downloaded packages

sudo apt-get clean


  1. Install Xfce 4.8

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -t testing install
xfce4
xfdesktop4
xfce4-power-manager
xfce4-screenshooter
xfce4-notifyd
thunar
thunar-archive-plugin
thunar-media-tags-plugin
thunar-thumbnailers
gvfs-backends
gvfs-bin
gvfs-fuse
xfce4-mixer
xfburn
terminator


  1. Clean up downloaded packages

sudo apt-get clean
reboot



Hmm.. quite a few question marks I need to fill out there.
print add/read comments

Permalink: Learning_about_linux_by_dissecting_packages.html
Words: 1359
Location: Buffalo, NY
Last Modified: 08/08/11 11:08


Category: eating in

08/07/11 09:44 - ID#54891

Learn the method. The method.



His closing words are perhaps the best words of advice in any scenario. Once you have the method down, endless variations and innovations are possible.
print add/read comments

Permalink: Learn_the_method_The_method_.html
Words: 27
Location: Buffalo, NY
Last Modified: 08/07/11 09:44


Category: i-tech

08/06/11 09:09 - ID#54887

Pringles Cantenna

What I really want to do is to be able to work from my building's rooftop. Unfortunately, my router's wireless signal is weak and pathetic. I am thinking...

Pringles Cantenna!




image

Now, I only have to pick the flavour of choice and mooch some copper wire from (e:paul).

print addComment

Permalink: Pringles_Cantenna.html
Words: 70
Location: Buffalo, NY
Last Modified: 08/06/11 09:11


Category: eating in

08/06/11 08:46 - ID#54886

Secondary Fuel

I am trying to learn how to cook with just 3 - 4 ingredients as opposed to throwing the whole fridge in.

image

It's a tough ordeal for me because I am constantly tempted to throw in everything I spot. In the end, everything I make starts to resemble everything else. It's not good for the cooking soul.
print add/read comments

Permalink: Secondary_Fuel.html
Words: 57
Location: Buffalo, NY
Last Modified: 08/06/11 08:51


Category: eating out

08/06/11 05:29 - ID#54884

Primary Fuel

Considering I just wiped off the entire shelf of the Lindt 85% at the store, I probably have the biggest stash in a mile radius now.
image

Wonder how many hours these will now drive me.
print add/read comments

Permalink: Primary_Fuel.html
Words: 36
Location: Buffalo, NY
Last Modified: 08/06/11 08:48


Category: i-tech

08/06/11 10:24 - ID#54877

Keyboards

I am always looking for quieter keyboards that don't sound like the train is rattling through my flat as I type. I type a lot and keyboard rackets really bother me. So I recently bought this unbranded chiclet-keys-type keyboard:
image
I reviewed it on Amazon. In short, I like how the keyboard feels and sounds (not quiet but tolerable). But I mistype on this keyboard often because the spacing is somewhat non-standard.

I tried out this Azio keyboard and hated it.
image
The noise factor was okay but the keyboard was too hard to type on and fatiguing. Plus it was glossy and retained fingerprints.

Then I got this logitech K120 yesterday.
image
It is just a classic keyboard with well spaced out keys so that mistakes are minimum and you get everthing right at the very first type. But it is not quiet as they say. Its not quiet at all. All the clackety clatter is very much there. I think it has got noisier from yesterday. That is exactly what happened to my earlier M$shit keyboard. The racket steadily increased over the years till I had to drown the sound out with heavy metal or full orchestras. Chopin was completely out of the question. I am afraid this keyboard might be headed the same way.

I am pretty torn. Do I care more about precision or do I care more about the sound. Or should I just hold on to the noisier but more precise keyboard and just suffer through the noise?
Both keyboards are a pleasure to type on though. They hardly require any effort. Both are not entirely quiet but I prefer the sound of the chiclet keyboard rather than the clackety noise of the logitech k120 (I wonder what the people who think this is quiet were smoking!).

For now, I have two of the unbranded silky chiclet keyboards and the classic logitech k120. I returned the Azio. I think I am holding on to the chiclet keyboard but I am not sure what to do with the logitech keyboard yet. I am typing on it now, hardly making any mistakes but I am not liking the noise at all.

print add/read comments

Permalink: Keyboards.html
Words: 419
Location: Buffalo, NY
Last Modified: 08/06/11 10:39


Category: the odes

08/05/11 09:45 - ID#54873

Mayor abducted by aliens...

Multiple eyewitness accounts confirm that the beam-me-up-scotty-mobile was spotted hovering menacingly over his office just after nightfall.

image

The hostile mothership was last seen speeding over the Erie lake towards the Canadian side of Niagara Falls.
print add/read comments

Permalink: Mayor_abducted_by_aliens_.html
Words: 37
Location: Buffalo, NY
Last Modified: 08/05/11 09:58


Category: the odes

08/05/11 09:12 - ID#54872

Cue "The X-Files" tune!

I am having way too much fun with this blimp.

image

The truth is OUT THERE!


It's some vodka called Hangar One and it's on a multi-city tour. Today was its Buffalo day. Seems like you will get a chance to see it eerily floating over Erie tomorrow as well as Sunday.
print add/read comments

Permalink: Cue_The_X_Files_tune_.html
Words: 73
Location: Buffalo, NY
Last Modified: 08/05/11 10:34


Category: the odes

08/05/11 08:59 - ID#54871 pmobl

UFO over city hall!!

Probably the shot that will make the alternative freaky tabloids alongside how the dingo ate the baby.

image
print addComment

Permalink: UFO_over_city_hall_.html
Words: 19
Location: Buffalo, NY
Last Modified: 08/05/11 08:59


Category: the odes

08/05/11 08:47 - ID#54870 pmobl

They lighted the blimp.

I am fascinated.

image
print addComment

Permalink: They_lighted_the_blimp_.html
Words: 5
Location: Buffalo, NY
Last Modified: 08/05/11 08:47


Search

Chatter

New Site Wide Comments

joe said to joe
Never send a man to do a grandma's job...

sina said to sina
yes thank you!
Well, since 2018 I am living in France, I have finished my second master of science,...

paul said to sina
Nice to hear from you!! Hope everything is going great....

paul said to twisted
Hello from the east coast! It took me so long to see this, it might as well have arrived in a lette...