Archive Page 2

21
Oct

Tajči

?!

Click.

21
Oct

backports as default, stable as fallback

Add to /etc/apt/sources.list:
deb http://www.backports.org/debian etch-backports main contrib non-free

Add to /etc/apt/preferences:
Package: *
Pin: release a=etch-backports
Pin-Priority: 750
Package: *
Pin: release a=stable
Pin-Priority: 700

Add to /etc/apt/apt.conf.d/00Cache:
APT::Cache-Limit "33554432";
APT::Default-Release "etch-backports";

Do:

apt-get update
apt-get dist-upgrade

19
Oct

Dogs for adoption

I’m just watching an Animal planet show about some dogs who are about to get adopted and one of the tests they do on them to see are they viable for adoption is to give them food and try to take it away from them, to see what’s the dog’s reaction. Of course, the dog reacts with barking, and the woman says “he reacts violently when you take his resources…” Damn, don’t take the food from the dog then?! And then she tags this dog as unsuitable for adoption… I’m so apalled at the criteria they push upon the dogs. It’s completely normal in my opinion that a dog reacts like that. Hey, even my perfectly calm and snuggly dog, Spikey, reacts like that when you try to take the food away from him, because he has character and it seems that that’s not a wanted feat in a dog?

11
Oct

htmldoc

htmldoc --size a4 --linkstyle plain --webpage --no-jpeg --tocheader ... --tocfooter ... --top 0 --bottom 20 --right 20 --left 20 -f book.pdf *.html

11
Oct

Nice webserver uptime

Just checked:

imp@extweb:~> uptime
2:34pm up 674 days 3:03, 1 user, load average: 0.02, 0.11, 0.09

20
Jul

Apt pinning: installing unstable packages on stable Debian

Minimal sources.list configuration.

/etc/apt/sources.list:
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
deb http://ftp.de.debian.org/debian stable main non-free contrib
deb http://ftp.de.debian.org/debian testing main non-free contrib
deb http://ftp.de.debian.org/debian unstable main non-free contrib

When updgrading, stable versions of packages need to stay on stable. unstable versions are usually newer, so they overwrite stable versions if this is not properly handled with using Pin-Priority as stated below. If not explicitly requested, “apt-get install” installs stable version of a package.

/etc/apt/preferences:
Package: *
Pin: release a=stable
Pin-Priority: 700
Package: *
Pin: release a=testing
Pin-Priority: 650
Package: *
Pin: release a=unstable
Pin-Priority: 600

To install f.e. unstable version of a package with dependencies from unstable as well (preferred method, AFAIK), do the following:
apt-get install package -t unstable

To install the same package, but to resolve it’s deps from stable:
apt-get install package/unstable

20
Jul

Razorani Beograd

Juče sam baš komentarisao kako je za skoro sve (moglo bi se reći vođene od strane vlasti) radove potrebno neobjašnjivo puno vremena, bez obzira na lokaciju radova. Te poslove verovatno obavljaju privatne firme, ali rok od vlasti dožive krajnje fleksibilno i sa radovima kasne danima, češće mesecima, a ponekad i godinama. Doduše, kad privatna firma koja se bavi nekretninama uzme da gradi nekretninu, to razumljivo ide brzo, jer ljudima zavisi plata od prodaje tog prostora.

Tako smo, na primer, imali Svetogorsku ulicu. Skoro cela razorana, čekala je nekog da joj sredi trotoare i asfalt. Kad god sam prolazio tom ulicom, jako, ali jako retko sam uopšte video radnike, a kamoli da nešto i rade. Novi izgovor za to im je verovatno vrućina… A to što je jedna od najprometnijih ulica u centru mesecima van funkcije, to je ipak… viša sila?

Autobusi i trolejbusi koji prolaze tom ulicom su za vreme trajanja radova imali promenjenu trasu. Na stanicama je bilo najavljeno da će promenjena trasa važiti do 20. jula. Pošto sam video kako je ulica izgledala pre samo nedelju dana, slatko sam se nasmejao kad sam pomislio na taj deadline. U Srbiji nešto da bude na vreme? Hah!

Sedam u 65-icu danas i idem na posao… Očekujem da kod Palilulske pijace samo produži pravo ka Džordža Vašingtona… Kad bus skrenuo ka Svetogorskoj! Nisam mogao da verujem: ulica potpuno sređena, nov asfalt, novi trotoar, sve! Ipak u ovom gradu postoji nešto… normalno.

Druga priča je Bulevar Mihajla Pupina (ulica koja se nastavlja na Brankov most, novobeogradska strana): tamo je razoran trotoar dobrih kilometar-dva, a ne vidim da iko radi. Dajte ljudi. Trotoar. Nije raketa. Što ne završe to za nedelju dana? Ovako, već par nedelja unazad i po svemu sudeći, i ubuduće, ovi trotoari neće imati radnike koji bi ih završili, umesto da poslodavci uzmu dve smene radnika i završe to očas posla.

12
Jul

Ubuntu 7.04: first thoughts

So, I am about to replace the Linux distro on my desktops, on my laptop and desktop machine, so I’m considering my choices… Debian-based is the way to go, so it’s either Debian or Ubuntu.

I wouldn’t go pure, vanilla Debian because of it’s “correctness” (ok ok, I can add other repositories to the system, but it simply doesn’t feel… “native” enough?). I’ve tried Kubuntu, but it simply didn’t feel polished enough; it felt like Ubuntu’s bastard child, management wise (Adept, KDE based apt frontend, crashed on me several times, dist-upgrade from 6.10 depended on some GTK stuff which wasn’t installed automagically, so I had to figure out “by hand” what to install — more info on that on my Launchpad bug report, etc).

That lead me to try Gnome-based, good ol’ Ubuntu, and I have to say that so far, few glitches aside, it looks good. I haven’t used Gnome for some time now and it seems really nice. Gnome itself and Nautilus, as a file manager, really feel snappy and stable. Gnome Terminal looks nicer than before and more usable.

Anyway, as a regular nitpicker, few downsides. First, LILO didn’t install properly (Grub was complaining about residing on XFS, which is a no-no, eh?), so I had to manually edit lilo.conf, only to find out that some vital options are left out, such as “prompt”, “lba32″ and “compact”, framebuffer “vga” line, too, and I had to add the timeout… Hmm, some really pretty much expected stuff? Why are they left out? Beats me. Then, in fstab, vfat partition had fs_passno = 1, so it was checked on every boot. Onward to Gnome itself. Ugly, anti-aliased fonts? Unlike KDE, Gnome Font preferences don’t include an option to exclude some font size ranges from anti-aliasing, so everything is anti-aliased. Ok, I edited it by hand only to find out that the fonts that came with Ubuntu look terrible when not anti-aliased. I installed MS fonts and… what? They look ugly, too? Hmmm… I remember that Freetype has some bytecode interpreter option that makes those fonts look just like in Windows, but it is, to quote Freetype site, “potentially patent infringing”, so it’s disabled by default in Ubuntu… Damn that correctness. I found on Ubuntu forums a source for bytecode interpreter-enabled version of Freetype, so I installed that and FINALLY fonts looked BEARABLE. Then, the system doesn’t have Adobe Flash player installed as default. Ok, I can understand that, that perhaps in the licence it doesn’t allow automatic installation, or even inclusion in some other form like a Linux distro, but SuSE somehow managed to pull it off: the installer asks you whether you want to install that plugin nicely.

That’s it for the first thoughts, more on Ubuntu later (perhaps) heh.

06
Jul

Casual workday + a tidbit of FreeBSD

Ah, casual Friday. Weekend buzz. Experimenting a bit with FreeBSD, after a several year break. Will try to get back to blogging.

07
Jun

Linux 2.6.20

Oooooh, WHAT THE FUCK?

Used the config file from 2.6.17, did a “make oldconfig”, answered to 20-sh questions (about new stuff), only to find out that it panics because it can’t find root FS..!? Hmm, booted the old kernel, did menuconfig, only to find out that CONFIG_BLK_DEV_PIIX was moved to another option tree and wasn’t properly selected as “Y” from the old config, so SATA wasn’t available. When I fixed that, I found out that NAT and most of previous iptables functionality (from the previous kernel) simply.. wasn’t there. After some Googling, I found out that the kernel devs made a major reorganization of the option trees, for some unknown reason (to me at least). The jump was almost like from 2.4 -> 2.6..

Crazyness! Lunacy!





Mail