Journaling on estrip is easy and free. sign up here

Tinypliny's Journal

tinypliny
My Podcast Link

08/07/2011 10:19 #54892

Learning about linux by dissecting packages
Category: linux
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.
tinypliny - 08/07/11 19:38
I hope not. Seems like an insanely crazy job which might make me tear my hair out by the roots.
jim - 08/07/11 18:46
Pretty soon you'll be looking for work as a linux sysadmin :)
tinypliny - 08/07/11 12:25
LOL, yeah. I think this is where the "crazy" comes out. If I am really at some absolutely unconnected event "enjoying", the guilt is enough to drown me in it. But this is something connected (even it VERY tangentially and quite blatantly avoidable) to what I deal with daily at work. It sounds silly, but that's me. Someday, I might grow out of this and attempt to be "normal' but for now, I am sticking to the insanity of it all!
heidi - 08/07/11 12:15
(e:paul)!!! hahaha!!! She won't go do something that might actually relieve stress and anxiety...
uncutsaniflush - 08/07/11 11:49
(e:tinypliny) - remember that debian unstable and debian experimental are called that for a reason. Don't be surprised if apps you pull from those repositories crash (especially experimental) or don't work properly. Debian is only stable when you use debian stable.
paul - 08/07/11 11:44
Wow,you are procrastinating so hardcore.

08/07/2011 09:44 #54891

Learn the method. The method.
Category: eating in


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.
tinypliny - 08/07/11 11:25
Hey! not fair. That was 10 minutes and I was coding on the other screen as I heard him speak. You can't see much anyway.
heidi - 08/07/11 11:24
You have time to find, watch and analyse this but not enough time to go watch firedancing? *hrmph*
metalpeter - 08/07/11 10:38
Hey'! I' like this guy...... He does give a good presentation... I kinda liken this to Dancing a bit.... I think that yes you need to learn the steps and what you are doing but then at some point you have to not think about those and just go kinda naturally (I suck at both so this is how I know....HA)... I admit don't watch any of the Kitchen shows by the time I found out two Buffalo people where on Hell's Kitchen or what ever show it was it was to late.... Everyone has different tastes so something could be cooked well and not liked but I do think cooking is an art form kinda....

08/06/2011 21:09 #54887

Pringles Cantenna
Category: i-tech
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).

08/06/2011 20:46 #54886

Secondary Fuel
Category: eating in
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.
metalpeter - 08/07/11 10:25
Not that I cook but I guess you know what stuff you like so just use that stuff.... I use the word spices and seasonings as the same word by the way.... so ad what ever spices you like.... One thing that I have noticed that some foods (can't think of a good example maybe meet stuff) is in multiple cultures but just with slightly different seasoning..... For example when one eats Chinese food they aren't eating it for "The Chicken" ;) or not they are eating it because of how it is spiced {that caused a nice debate at work}... Hunan or sweet and sour or what ever... I assume this is true also of those veggies you like enjoy...

08/06/2011 17:29 #54884

Primary Fuel
Category: eating out
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.
metalpeter - 08/06/11 19:18
Fire Dancing at Days Park.... Might have to try and see what the camera gets we shall see......
tinypliny - 08/06/11 17:42
  • lame smile coupled with same old excuse* The level of chocolate in above is proportional to the level of nervousness and uncertainty I am dealing with right now... You will have to forgive me once more.
heidi - 08/06/11 17:35
So, you'll be joining me at 9:30 at Day's Park for fire dancing? *arched eyebrow*