Skip navigation.

Log in | Sign up

unBlogged

Click here, click there, click everywhere

Posts tagged with "linux"

Ubuntu Edgy

, ,

Hello!

Some time ago I upgraded to Ubuntu Edgy. Due to many complaints about failed upgrades, I've decided to upgrade as safely as possible.

My definition of safe upgrade meant doing it "sandboxed" once, and if there no serious problems, I do it on my live/real system. Therefore, I copied all my current system to a secondary HDD, I created a new virtual machine in VMWare Server which uses the physical HDD to boot. Once the system booted I ran the normal upgrade procedure. Doing this I've learned that the same Linux installation can boot on completely different machines (different drives/hardware, same architecture).

Of course this didn't work as easy & quick as wanted.

I used the Damn Small Linux distribution (LiveDistro) to install GRUB within the virtual machine. I didn't use Ubuntu itself as a LiveDistro - too graphical for administration purposes :smile:, and rather slow in VM.

I used tar to create a big uncompressed file of the entire root. From /home I excluded some big files & folders manually.

Before booting the snapshot of my system in VMWare I had to edit /etc/fstab and /boot/grub/menu.lst to manually remap the mount points.

The system booted properly without any problems. I just had to run sudo dpkg-reconfigure xserver-xorg because VMWare has a different video card. Then xorg also worked. It's really interesting to see your entire system running sandboxed, in the same system :smile:.

As a measure of protection I edited /etc/hostname and /etc/hosts. In the first file I changed the host name of the virtual machine, to avoid conflicts with mine. In the second file I made the host name of the host system to point to localhost (127.0.0.1). I didn't need network access to the host from the guest. Also, this change still allowed me to access the host, by IP.

I mounted the alternate CD image of Ubuntu 6.10 and I started the upgrade. I had very bad luck since for no specific reasons xorg crashed in the host OS, taking VMWare down. That was my first xorg crash :smile:. I rebooted the host, I rebooted the guest and resumed the upgrade. Xorg crashed again. And again. And again. After several restarts, after several crashes upgrade finished. WOW :smile:.

I edited the /boot/grub/menu.lst on the host system, and I edited /etc/fstab on the guest system for the purpose of booting the newly upgraded system natively. It worked properly :smile: - after reconfiguring xorg, of course.

Due to the crashes keyboard layouts were completely damaged (almost unusable keyboard in Xorg). Other than this and several small issues, not worth reminding, everything was "fine".

I was pretty much surprised Xorg crashed due to VMWare. I have used VMWare with Windows in my Ubuntu installation for quite long. I had no problems. I noticed my xorg crashes when I start xorg in the guest OS.

I have tested Beryl+XGL. Quite nice :smile:, but slow. I couldn't install compiz (problems with their packages in that day), neither AIXGL (my Nvidia Geforce 4 is too old).

Being glad the upgrade went "smooth" overall, given Xorg crashes, I decided to upgrade my real system.

So I did. No crashes. Everything went rather well. No keyboard layout problems, maybe because I did switch my system back to english, english keyboard, before I started, so the upgrade tool won't be confused. I also did set LC_ALL environment variable manually (in VMware dpkg complained about missing LC_ALL for many packages).

First thing I didn't like about Edgy was the boot splash. It looks good, but it hides all information - quite annoying. The solution was to uninstall usplash, and remove "quiet" from the kernel arguments list in my GRUB menu.lst.

Another problem I had was Firefox 2: no extension wanted to install. The solution was to remove my profile folder, eh. Then the DOM Inspector disappeared :smile:. I had to manually add the extension to some INI files.

Another thing I disliked is that GRUB menu.lst now uses UUIDs instead of the human-readable /dev/hd*. Why?...

I don't know why, but Xorg in Ubuntu Edgy is less stable. I got several crashes - I didn't notice what's causing them.

Quanta doesn't want to start in french. It's always english, and I have all the french language support packages. I've been told I should have quanta.mo somewhere in my root - I don't. Yet, I have kdewebdev.mo which contains the Quanta french language strings.

The new apt-index-watcher package used 100% of my CPU every 10 seconds, until I removed it :smile:.

Was the upgrade worth it? The answer is almost no. I don't like they don't include the latest gaim 2 beta. There's beta 5 now and they still have beta 3.1 (you can't convince me beta 3.1 is somehow better than beta 5).

Maybe I'll do a clean install next time. Debian...

IE and Linux

, , , ...

Hello!

Doing web development under Linux requires to no longer use Internet Explorer. For web site testing the only available solutions are dual-boot, virtualization or WINE.

I have the feeling that picking to use dual-boot is like not actually switching to Linux. That's because you'd code everything in Windows, test everything in Windows, with all Windows browser: IE, Firefox and Opera. Not a true switch. You can't code everything in Linux then do a quick boot in Windows to see if the cool CSS layout renders properly in IE 6. You still need to have all your web development tools (your IDE, your FTP/SSH client, etc) in Windows.

Virtualization is a nicer solution: you can do all coding and testing in Linux. Once you've booted Windows in VMWare Server (insert your favourite virtualization software) you can simply load the page and refresh it when you need to test something. Quite nice. I use this for "complex web applications" and for final testing of any web site. You only need a clean install of Windows.

For occasional and quick web development testing I mostly like WINE. Yes, installing IE 6 in WINE is (very) annoying.

However, there's IEs4Linux - a script which automatically installs IE 6, IE 5.5 and IE 5. It's very easy to use and quick to install.

Also, very recently there's beta support for IE 7 installation - which is quite awesome.

Why is this better than virtualization *and* dual-boot? You can have a context menu item in Opera which opens your page in IE 6 and IE 7 in just a few seconds after clicking (I do, hehe). Nothing to boot, and it's faster than virtualization.

I even use WINE with Opera 9 + Voice enabled for web development. Installing Opera 9 in WINE is only a matter of running the installer in WINE :smile: - easy.

Bottom line is: are you a web developer who would like to switch to Linux but believes he can no longer test his web sites with IE? The complete answer is: you can test your sites in IE, quick and easy. There's no long answer. You do not have to drop compatibility with IE. You can make the switch™ :smile:.

The themes of (k)Ubuntu

, , , ...

Hello!

One of the first steps, and most likely the easiest, in making KDE and GNOME seem consistent is getting both of them have the same themes.

I simply don't understand (somebody explain to me please) why is Kubuntu required to have a completely different theme than Ubuntu?

Seriously, guys, if you really want that, then no problem: Kubuntu blue and Ubuntu orange. BUT at least take the time and provide both of the themes so we can select the one we want in the theme managers of both DEs.

I personally favour Ubuntu's theme. I can't get get KDE apps to look exactly as those in GNOME. I switched to polyester, I applied my own color theme (the Ubuntu colors available on kde-look suck, and that's nicely said - I had to make mine). The biggest problem is changing the icons. I believed this should be easy: in kcontrol I find the icon set named Human. Yes, it changes most of the icons, but the most obvious ones are still the blue KDE Crystal: file icons - and some others :smile:. Again, KDE-Look provides amateurish Human iconsets for KDE which don't even properly work.

Oh and for those wondering: somebody cannot live in a GNOME-only box, or KDE-only box. It's not going to happen, not today, not tomorrow.

Hint: this is not a "job" that needs to be done by neither of the DE teams. It's the "job" of the distro guys.

Making the orange theme the default in Kubuntu would be awesome, not because of the theme itself - I'd say the same if Ubuntu would use by default the Kubuntu theme.

Bonus suggestion: while they are at it, they should configure the default behaviour of KDE to match the one of GNOME (or vice-versa).

Summary of the post: get the GNOME theme on KDE, and get the KDE theme on GNOME. It's easy, it's doable, both DEs are capable of it.

Good luck!

P.S. I don't like the purple theme in Kubuntu Edgy Eft.

Linux şi open-source

, , , ...

This is the Linux and open-source article I previously wrote in english. Translated to romanian, on request.

Când eşti un utilizator al Windowsului, fiecare din prietenii tăi care folosesc Linux îţi sugerează să treci la Linux: "nu mai fi sclavul Microsoftului" sau alte formule.

Alegerea unei distribuţii de Linux este un pas greu de sine stătător. Acest pas este greu chiar şi pentru "experţii" Windows.

După ce în sfârşit ai ales şi instalat distribuţia, urmează o etapă pe care eu o consider amuzantă: prietenii tăi care folosesc o altă distribuţie încep să glumească pe seama alegerii făcute. Asta se întâmplă indiferent dacă ai avut sau nu cunoştinţele necesare să alegi exact distribuţia de care ai nevoie (deobicei nu ai). Dacă întâmpini probleme şi le ceri ajutor răspunsurile pot fi de genul "ha, asta nu păţeşti cu distribuţia X".

După ce eu mi-am instalat Ubuntu, un utilizator de Gentoo mi-a spus în glumă "ah, Ubuntu e aproape Linux, dar bine că ai trecut pe Linux". Asta e încurajare! Alt utilizator de Fedora Core 4 mi-a spus foarte simplu "Ubuntu merge prea bine, e prea grafic". Interesant, deoarece lui nu-i place că unele distribuţii Linux ajung la un nivel la care utilizatorul poate să treacă direct la Linux, fără să întâmpine problemele foarte cunoscute: linia de comandă şi editarea manuală a fişierelor de configurare. El a spus acest lucru deoarece a văzut că am avut Samba funcţionând perfect şi v4l (Video for Linux) era deja funcţional (el a avut aceste două probleme pe FC 4). Cauza acestor probleme poate fi dată de faptul că FC este o distribuţie ce introduce pachete de ultimă oră, fără foarte multă testare.

Trebuie specificat că nu doresc să las impresia că distribuţia Ubuntu este cea mai bună. Nici pe departe. Am întâmpinat şi eu tot felul de "bucurii", dar multe din ele sunt foarte uşor de rezolvat.

Contrar părerilor unora, eu nu am trecut la Linux doar pentru a fi în pas cu moda (aş fi putut face acest lucru ani în urmă). Trecerea mea la Linux a fost datorată necesităţilor în domeniul programării web: am nevoie să experimentez cu tehnologii mai noi care în mod "natural" sunt făcute pentru Linux.

Nereuşita Linuxului de a creşte în popularitate pe desktopuri este cauzată de lipsa acordului între membrii comunităţilor de programatori Linux şi utilizatorii Linux, diversitatea fiind foarte mare. Comunitatea Linux este probabil prea diversă prin definiţia open-source-ului. Foarte bine (din punctul meu de vedere) este că acum se mobilizează tot mai multe grupuri de utilizatori şi dezvoltatori pentru a face Linuxul pentru desktopuri mai bun şi mai uşor pentru începători.

După ce te obişnuieşti cu Linux, poţi ajunge să-ţi chiar place puterea oferită de scripturile Perl/Python sau orice altceva din consolă. Acestea-ţi oferă într-adevăr libertatea de care ai nevoie după ce foloseşti mult timp abordarea WIMP pentru a interacţiona cu calculatorul. Window, Icon, Menu, Pointing device (fereastră, iconiţă, meniu, dispozitiv de indicare) sunt metaforele cele mai bine cunoscute în interfeţele actuale ale programelor de calculator (pe Windows, Mac OS X, Gnome şi KDE). Pe Windows aceste capabilităţi lipsesc. Distribuţiile de Linux destinate utilizatorilori începători nu dezactivează accesul la consolă, ci doar adaugă capabilităţile necesare în modul grafic. Asta este foarte bine, deoarece după un timp ţi se permite să experimentezi, să înveţi şi altceva.

Nu ar trebui să existe "războiul distribuţiilor" Linux. Fiecare distribuţie este bună în felul ei. Trebuie să o foloseşti cea care-ţi place, cea care-i pe gustul tău. Nu vei ştii care-i până nu le încerci pe fiecare. Când ai găsit una care-ţi place, nu o mai schimba.

În legătură cu diferenţele între distribuţii: Claudio Santambrogio a punctat foarte bine spunând că Ubuntu este doar o simplă distribuţie, nefiind specială, şi mi-a dat o legătură spre un articol scris de el despre laptopul de $100, din care citez:

Pentru un începător Linux este confuz să înveţe că există mai multe aplicaţii care fac acelaşi lucru. Răspunsul la cea mai evidentă întrebare («care program să-l folosesc?») este de multe ori, îndrâznesc să spun, o problemă cvasi-religioasă decât ceva raţional ce poate fi înţeles de începători.



Exact aceeaşi problemă este reflectată şi în alegerea unei distribuţii Linux.

Am instalat KDE pe Ubuntu doar să-l încerc. Acum am mii de pachete care nu le folosesc niciodată şi nici nu ştiu cu ce se ocupă toate. Am vreo 10 vizualizatoare de imagini, câteva navigatoare web, managere de fişiere, managere de pachete, playere video/audio, joculeţe, şi multe altele.

În general, distribuţiile foarte cunoscute (Fedora Core, Ubuntu, Debian, SUSE, etc) sunt şi foarte bune, chiar mai bune decât Windows. Asta se datorează stabilităţi, a vitezei şi a programelor disponibile. Cea mai serioasă problemă este că programe importante pentru Windows (gen Photoshop sau Flash) nu există pentru Linux şi nici multe drivere pentru imprimante, scannere şi alte accesorii la calculator. Parcă nu ar fi de ajuns, librăriile necesare pentru vizionarea filmelor şi ascultarea muzicii nu sunt permise în distribuţii Linux open-source (este ilegală integrarea acestora). Pentru un simplu utilizator asta este ceva foarte neplăcut, făcându-l să refuze Linuxul şi să nu mai vadă părţile bune.

Din unele puncte de vedere KDE şi Gnome sunt mai bune decât Windows. Ceea ce afectează KDE-ul este incorecta organizare a meniurilor, a interfeţei din fiecare pachet ce îl are. Gnome urmează standarde mai stricte şi din acest motiv îl folosesc.

Proiectele open-source sunt exemple extraodinare de lucru voluntar şi de organizare, fiind produse realizate de programatori începători pasionaţi şi de experţi angajaţi la diferite firme.

Trei dintre cele mai populare proiecte open-source (OpenOffice, Firefox şi Wikipedia), au tot felul de "probleme". Nu trece o săptămână să nu apară un articol negativ despre Wikipedia în care se arată proasta calitate a unor articole. Cu toate că exemplele oferite în aceste articole "bine intenţionate" sunt reale, nu se poate spune că Wikipedia este un proiect nereuşit. Wikipedia este, în general, o sursă bună de informare. Însă nu trebuie să crezi tot ce citeşti pe orice site. Avantajul pe Wikipedia este că ştii înainte că informaţiile ce le citeşti sunt probabil greşite. Dacă e ceva important întotdeauna trebuie verificat. La fel trebuie făcut şi cu orice alt site. Oricine doreşte să se documenteze la modul serios despre ceva nu trebuie să-şi bazeze cunoaşterea pe un singur site.

OpenOffice este un pachet foarte mare care probabil are scopul să ajungă la fel de greoi ca Microsoft Office. La ora actuală este bun şi-l folosesc, dar ar trebui să fie mai rapid, mai bun şi mai mic. Personal nu sunt prea mulţumit de el, deşi îl recomand în locul lui Microsoft Office.

Firefox este un produs realizat într-un mod inteligent. Corporaţia Mozilla este mult mai bine organizată şi se menţine pe o linie dreaptă. Nu e bine că Gecko (motorul din Firefox) introduce tehnologii proprietare, care nu sunt bine departajate de celelalte. Mă refer la adăugarea de proprietăţi noi în DOM care sunt specifice Gecko. Aceeaşi metodă este folosită de Microsoft, în Internet Explorer. Probabil cei de la Mozilla vor să obţină un Firefox similar cu Internet Explorer-ul actual (nu numai să domine piaţa navigatoarelor). Să sperăm că asta nu se va întâmpla şi că Gecko nu va rămâne în urmă la suportul standardelor web.

Pachetele Linux nu ar trebui să încerce să copieze programe Windows. Acum este nevoie de abordări diferite, de îmbunătăţiri pe desktop care să conecteze calculatorul la web (noua tendinţă). Mulţi ar trece la Linux dacă ar oferi ceva cu mult mai bun, uşor de utilizat, uşor de învăţat. La ora actuală pe Linux găseşti aproximativ aceleaşi lucruri, dar unele nu sunt la fel de bune. De ce să treci? Doar pentru a fi altfel? Există acele lucruri care chiar lipsesc pe Windows, gen opţiuni pentru customizare, stabilitate, viteză, control mai bun asupra sistemului, şi bineînţeles manager de pachete/programe, dar nimic nu sare în ochi.

Nu e necesară revoluţia, deoarece asta sperie un utilizator fiind vorba de schimbări prea mari. E vorba doar de evoluţie.

Foarte interesant e dacă va fi cândva o distribuţie Linux care încearcă să fie "mama" tuturor. Una care poate fi recomandată începătorilor de către toţi utilizatorii actuali Linux (indiferent de experienţă). O singură distribuţie care să aibă baza de date de pachete întotdeauna cu ultima versiune, unde găseşti aproape orice doreşti, cu drivere, cu instalare semi-automată de librării pentru ascultarea muzicii şi vizionarea filmelor, etc. Această distribuţie trebuie să fie stabilă dar nici veche precum Debian Stable.

O asemenea distribuţie, cu interoperabilitate între KDE şi Gnome, cu WINE preconfigurat foarte bine, ar aduce mulţi utilizatori pe Linux. WINE este un pachet ce poate rula aplicaţii Windows pe Linux la o viteză aproape nativă, dacă-l ştii configura. Acesta poate fi bine integrat în sistem. Nu trebuie uitat că este necesar să poţi să rulezi programele Windows, pentru că multe nu sunt disponibile pe Linux, sau la multe nu se doreşte renunţarea (de exemplu, a plătit mult pentru Adobe Photoshop).

Discuţiile generale despre Linux ar trebui să fie despre Distribuţia Distribuţiilor.

KDE and Gnome

, ,

Yet another blog post about KDE and Gnome. You've all been waiting for this one :smile:.

First of all, I use Gnome 2.14 and I have some parts of KDE 3.5.3 installed too. Why? Gnome seems to be better glued together and more professional, feels less bloated and it also feels faster. I say it only feels so, because I haven't done any real tests.

KDE got some real goodies like Quanta Plus which is probably the best web programmers editor I've used. Given it's free ... I'd say it's amazing. I've seen loads of shareware editors that have far less features (for Windows of course).

KDE TV was also my favourite TV application since it's really good for all my TV viewing needs (it does have the deinterlace filter :smile: ). However, since then I switched to tvtime, because I find it faster and better in some ways (too bad I can't configure it too much, it's very minimalistic).

I was pleasantly surprised by Konqueror (as a web browser). I've never knew it's so powerful. Much better than IE. Too bad it's very little known. I am aware it's not a browser as capable as Opera or Firefox, but it's very good (it can properly render all the CSS layout sites I have).

Nicest surprise to KDE was KTTS :smile:. Nice stuff guys. Just one suggestion: add a global shortcut for reading the clipboard.

KolourPaint is my choice for simple image editing (GIMP is too advanced/different for me ... even if I am used to Photoshop).

Kig and Kseg are two educational packages worth the time spent by their respective authors on development. Meaning Kseg is a very cool dynamic geometry software, but it's not as complete as Kig. Kig, IMHO, will become my primary tool for dynamic geometry. It's very, very good and advanced. Yet, I still need to learn some of its capabilities :smile:.

Amarok is the music player. Much better than Winamp and all others. I've tested Rythmbox, Banshee, juK and other music players. None comes close to Amarok, which is feature packed and nonetheless it's fast enough. Don't expect it to be as fast as XMMS, but it's faster than Banshee and Rythmbox which are the two music players receiving most attention. Amarok has a very good collection, tagging with online database, automatic scoring of songs you listen most, it also picks similar songs recommended by Last.fm. You can automatically search for lyrics, for artist information, similar artists, etc. The context browser is very nice, because it automatically shows songs you are most likely to be interested of (favourites, new additions, songs from the same album, same artist, etc). Other goodies includes are cover management (automatically finds the cover online), Python extensions (web control and more), nice customizable OSD and lots more :smile:. Simply, amarok is the best player. It doesn't crash, it got a very fast collection search and analizer. Rythmbox and Banshee both crashed when scanning my songs, LOL.

The funniest part in KDE is ... guess what? Image viewers. Amusing, huh? Most KDE image viewers suck big time. They are even worse than the worst image viewer I've ever seen on Windows. There you go, I've said it. Shocking statement? I'd say it's a shocking fact on my Ubuntu 6.06 install (and Ubuntu 5.10): just loading an image of lets say 800x600 in Kview (or KuickShow, whatever) and zooming to 400% sends the system to hell :smile:. Memory usage increases a lot and the virtual memory is required, so the HDD activity raises like I'm copying several files on the network at once (it even slows down mouse movements). I suppose it's because the 400% zoomed image is way too big to hold it all in the memory :smile:. Veeery efficient code. If this caused by the Ubuntu distro, then ... this is the worst thing Ubuntu has :smile:.

Worth noting is the problem doesn't apply to KolourPaint, which most likely uses a different library.

Here comes the irony: KDE image viewers have better support for image formats. I wasn't able to view some BMP images with any of the Gnome image viewer (GQView, Gthumb and EOG). Also, I wasn't able to see any PSD image, only KDE supports them :smile:.

So, my default image viewer is Gthumb and besides it I also have Kview. I removed all the other image viewers.

The latest Kopete seems to be a very attractive alternative to Gaim. I simply enjoyed "hacking" into the XSLT files to change the display of the conversation. I also like it has notifications, and more options. What made me not to use Kopete: it's underdeveloped. Anyway, Kopete is still in its infancy.

Both desktop environments are not professional and fast enough. They should also follow stricter guidelines, making them look more professional.

I like the panels, the applets, menus editing, the multiple desktops/workspaces environment, the keyboard configuration (accessibility, layouts and variants). These are things Windows should get too, just like it should get proper permissions per file and symbolic links. Windows is actually a very weak desktop environment compared to KDE and Gnome.

Gnome 2.14 has noticeable speed improvements. As far as I know, it's going to get more speed improvements for version 2.16. I like that. KDE 4 is going to be interesting, but I have a "hunch": it's going to be buggy, since they make big changes.

I like the idea of KDE: having a single keyboard shortcuts editor in all applications, a single toolbar editor, menu editor, etc. I also seem to like the idea of KNotify with it's integration with KTTS.

As for customization, KDE is the clear "winner". I like I can easily customize the themes and everything I want in a single place: KDE Control Center. Yes, I know it's hatable, but it's also good. The themes in KDE seems to be more flexible than the ones in Gnome.

What I dislike when I am in Gnome, if I start KDE applications, I'm seeing KDE, not Gnome. I know it's normal, because they depend upon the KDE packages, but there should be more interoperability. Why not use the Gnome keyboard shortcuts editor when in Gnome? Why not use the Gnome widgets (and more stuff)? Same goes for when I am in KDE: I see Gnome stuff.

It's all about consistency. Is that too much to ask for? :smile:

Projects like Tango Desktop Project, LSB and Portland are very good because they help with consistency. I'm glad the latest Ubuntu uses the Tango icons.

KDE and Gnome also play the "catch-up with Windows" game Windows functionality, just like OpenOffice seems to do with Microsoft Office. Microsoft will always be one step ahead, because they are currently modifying the rules of the game with Microsoft Office, Windows Vista and more.

Why not be a bit different? Why not bring something new and better?

Thanks to Microsoft, alternative web browsers (Opera, Firefox, Safari, Konqueror) had enough time to go miles ahead of Internet Explorer.

KDE and Gnome had the same amount of time... and the heads of these desktop environments decided upon using the allocated time to catch-up with Windows. They almost did :smile:.

KDE 4 received some good press, mostly hype currently (IMHO), about bringing new stuff to the table, about innovation (Plasma, whatever). That's nice. I'd be glad if they'll succeed.

Another thing I do not like, specially in regards to KDE: they include a huge amount of packages. Come on, keep the desktop environment only. Gnome is sticking to Epiphany, which is, with all due respect, yet-another Gecko browser. Seriously, why would I switch to Epiphany? Both desktop environments should be bare bones. The other packages should only be optional, just like screen is.

Konqueror, as a file manager this time, is more feature packed than Nautilius. However, I'm in favour for the simplicity offered by Nautilius.

The overall conclusion is both desktop environments are powerful, each having its own strengths and weaknesses. I am very well aware most of the ideas have already been expressed before by others, yet I think the more people voice their opinions the closer we'll get to this happening (consistency, blah, blah). Those in charge of the development of these two great desktop environments will take into consideration what the majority says.

Customize your Linux terminal

, , , ...

Hello!

How many like the terminal/console in Linux?

I myself like it, even if I do not use it too much. I use much of the X-based "bling bling": Gnome, Opera, Gaim, Xchat, Quanta, XMMS, etc. However, I particularly enjoy the power the console gives you: the one who says you're somehow limited in the terminal is very wrong. That's because you do almost everything you want: you can play music, you can play browse the web, use any Internet protocol (ftp, bittorent, pop3/imap/smtp mail, etc), you can do programming (of course), etc.

Simply forget about the MS-DOS console you know. That's limited (flame bait). Linux console, even if it looks the same, is not the same :smile:.

One thing missing in the GUI approach (KDE, Gnome, Windows, Mac OS X, etc) is consistency. The terminal is always consistent, it's the same on Linux, on Windows and Macs. The commands differ between operating systems, but the basics are the same.

I did 4 things to customize my terminals on Ubuntu Linux:

1. Console font. I picked a font which includes the most-used non-english characters in the documents I usually view (romanian and french).

To do this after you booted use:

consolechars -f /usr/share/consolefonts/font-file-name

This is handy for testing because the changes will be lost after you restart, plus the changes are applied only to the current terminal.

You shall pick the font-file-name you want. Just take a look at the console fonts you have installed. The ones I have are named based on the character set they can display: iso01, iso02, latin1, koi, etc. I use iso-8859-2 (for Central European).

To make the change permanent just edit /etc/console-tools/config. Change SCREEN_FONT value to the font file name you found to like.

2. Keyboard layout. I changed the keyboard layout to a custom keyboard layout I made, based upon the romanian programmers keyboard layout provided by default in Ubuntu, plus the American international keyboard layout with dead keys. Last, but not least, I also looked into the french keyboard layouts :smile:. My purpose was to have a normal english keyboard layout, but greatly enhanced for Level 3 (activated with the Right Alt key).

To make your own custom keyboard just go to /etc/X11/xkb/symbols and pick the keyboard language you want to start from. Edit it, look into other files to learn what needs to be changed, have fun :smile:.

Things to know about those files: they contain the symbols associated to each key on the layout. Therefore, they are not exactly keyboard layouts. The files are named based on the country code, and they contain all the keyboard variants belonging to the country. You should be able to add your own, but you need to learn how to do that (you need to edit other files aswell). My file does not add a new variant for two simple reasons: lack of knowledge (caused by lack of spare time to learn how), lack of motivation (caused by the fact I don't want to backup another file). I just modified the basic variant.

XKB is very advanced and complex: you can change the geometry, the rules, the symbols, everything. You can make a single key do wonderful things. Yet, don't ask me how LOL (I am still learning myself). All I know is enough to make my own nice keyboard layout :smile:.

To learn more:
- The XKB Configuration Guide
- An Unreliable Guide to XKB Configuration

It is important to note all changes also apply to the X server. You can use the keyboard layout in Gnome, KDE and what else you wish.

To change the keyboard layout in the terminal just run kbd-config or
sudo dpkg-reconfigure console-data

In Gnome you must know how to do it, same goes for KDE.

Download:xkbd-ro
If you are a romanian, you'll most likely want this layout :smile:. Save the file as /etc/X11/xkb/symbols/ro (overwrite!).

For maximum fun I edited my xorg.conf to use the custom keyboard layout.
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "ro"
        Option          "XkbVariant"    "basic"
EndSection

For an unknown reason, the keyboard layout does not work exactly in the same way as in X. In the console, the keyboard map is a bit "screwed" and dead keys are out of the discussion, since they are not supported by the font. I'll probably have to make a new variant specialized for the console. Based on what I learned, the difference might be caused by the fact I do not have the same XkbdRules as xorg. I'll see :smile:.

Suggestion by csant: To edit the keyboard layout, you can also use a GUI-based tool:
sudo apt-get install xkeycaps

3. Sticky keys. I use sticky keys in X, so I wanted to use them in the terminal aswell. The above two guides also provide tips in regards to how to enable sticky keys. Based on other tutorials, there are several ways one can achieve this goal. I picked the "loadkeys method".

The file is:
keymaps 0-6,8-9,12
keycode 29 = SCtrl
keycode 42 = SShift
keycode 56 = SAlt
keycode 54 = SShift
keycode 97 = SCtrl

Keymaps differ from a configuration to another. So, you need to learn which ones are on your system:
dumpkeys | head -1

Save the above file, after you update it and execute:
sudo loadkeys your-file

Warning: Providing a wrong keymap can render your keyboard unusable (I actually needed to do a forced reset :smile: ).

Warning 2: Your system might use different keycodes for the same keys. If this is the case, use showkey. Generally, if you have a PC which is "mainstream" (like mine), this should be safe.

If you take a close look at the above, you'll notice the missing second SAlt. That's because the second one (Right Alt = keycode 100) does provide access to level 3, used for inputting special chars. Making it sticky, loses the "special" attribute. I don't know currently how to make the it a sticky without losing the capability of switching to level 3.

The behaviour is: you press Shift then a = A. Pressing again a = a. This means that pressing shift will not lock it. For locking-type of sticky keys, read the above two guides.

To make the change permanent, just add the call to loadkeys into your /etc/rc.local.

4. Higher resolution. To do this edit /boot/grub/menu.lst by adding vga=792 to the kernel you use. Something like this:
title           Ubuntu, kernel 2.6.15-25-386
root            (hd0,0)
kernel          /vmlinuz-2.6.15-25-386 root=/dev/hda3 ro quiet splash vga=792
initrd          /initrd.img-2.6.15-25-386
savedefault
boot

Tips and tricks:

1. VNC for the console. If you like VNC, you can also share your console :smile:. Install the linuxvnc package (use apt-get).

Yet, it's recommended that you use the screen package, which is better. VNC is generally meant for graphical stuff :smile:.

2. To capture the screen of your terminal, as a text file, use:
sudo setterm -dump

What I want to do next is enable beep for sticky keys, same as in X. Also, I'd add the "locking-type" of sticky keys, exactly as in X: press Shift twice to lock it.

Ubuntu 6.06 (Dapper Drake)

, ,

Hello!

I have upgraded to the latest Ubuntu version about a week ago. I have chosen the "alternate" upgrade method: I downloaded the ubuntu-6.06-alternate-i386.iso and mounted the image. I also added the CDROM, as pointed by the Ubuntu Dapper upgrade guide on their wiki. Of course, I also downloaded all the upgrades which are not available on the CD, so I won't have any surprises.

Problems:

1. Logout procedure crashed: gnome-session had some problems.

2. After reboot Xorg failed to start. I found out GLcore module was removed. To my surprise, no nvidia-glx either. Reason: nvidia-xconfig and nvidia-settings were previously installed. In the new Ubuntu Dapper you are not allowed to install those two packages alongside nvidia-glx. So, the automatic upgrade procedure picked the "best" option: no nvidia driver at all. LOL.

I reinstalled the nvidia-glx package and removed nvidia-settings and nvidia-xconfig. Back in business.

3. Keyboard preferences were lost. It also lost which keyboard layouts I have, which accessiblity features I have enabled. Not a big deal.

4. VMWare Workstation 5.5 fails to start with some errors regarding libcairo, libpng and libbonobo. Problem not yet solved. Anyone has some suggestions? I of course recompiled the module for the new kernel. I even tried complete VMware reinstall.

5. Because of the first problem, it also removed the ubuntu-desktop metapackage, therefore I missed a few new packages (funny). Problem solved.

For unexperienced users these kinds of problems are a real turn off. This has been said before.

Overall, the upgrade was worth it. Congrats guys! I like the updated interface for Gnome, the speed improvements (now I'm back to Gedit instead of Mousepad, hehe), etc.

The new Deskbar applet is very cool, I like it much. However it's unusable due to the fact each time I type an address of a site starting with www. then continuing to .whatever ... the deskbar popup. That's silly and annoying. I've disabled the "web" plugin in the deskbar preferences. I still can't type www.google.com :smile:. Therefore, I won't use the deskbar applet. Otherwise I would've liked using it.

That's about all.

Update 2006-06-16: Ubuntu team updated the kernel and many other packages in the repositories. After applying all updates, VMWare works again! Plus the deskbar does no longer show when writing web address. Kudos to the Ubuntu team :smile:.

Microsoft Internet Explorer 7, the Web and Windows

, , , ...

Internet Explorer 7. What is this in essence? Is it an Opera and Firefox killer? Microsoft would like us to believe the latter, but I don't, even if I wanted to believe they'll bring IE to a decent level.

Almost all the CSS-based layouts look almost the same in IE 7 beta 2 as in IE 6. No big difference. I still can't drop *any* of those hacks I have in my layouts. I know they fixed *some* bugs, I know some pages render perfectly, or even better, but it's not enough. Why urge developers to drop the hacks when they are still needed?

The Internet has become the central part of computing. To me, the computer is almost useless without the Internet. When I boot I also start my favourite browser. I generally don't close it unless it crashes (which doesn't happen more than once a month or so), or I upgrade it :smile:.

The web and communication capabilities of the Internet are invaluable. Microsoft seems to get the trend, since there was some buzz around Windows Live and other Microsoft Fluffy products.

Having that in mind: why does IE 7 suck? Is it on purpose? Is it because they don't have the time to make it much better? Take your pick. I'd go for the latter option, since ... Microsoft initially didn't plan to have any updates for Internet Explorer, except updates bundled together with Windows. A huge mistake that even Bill regrets.

One thing's for sure (IMHO): if they would like a much better browser (comparable to Opera and/or Firefox) they do have to start by asking the cleaning lady to clean their hard drives where they've stored the current IE engine. They should do this without blinking and without looking back. Look at what Netscape got after they did that: Firefox :smile:. Yes, I know, that was very stupid what Netscape Corp. did: rewriting code is a big mistake. Nonetheless ... they now have a much better product (erm, Mozilla Corp. does :smile: ).

Five years since IE 6, Microsoft should have had the time to do what Netscape did. But, if they did't want to screw-up like Netscape did, they could have taken on the daunting task of improving the rendering engine, every minute, every second, every night and day, sundays and saturdays too.

They didn't do so. They actually started working on IE 7 last summer or so. That's because if they would've worked on improving IE since 2001, then ... IE 7 would simply be much better than Opera and Firefox combined. Microsoft has the resources to do that, they did it with IE 4, 5 and even 6. At that time, IE was really better than Netscape 4. Microsoft really had a better product. It was even better than the Gecko engine which was in its infancy at the end of 90's and the beginning of 2000. Opera was better only as a browser (features-wise) and better at CSS rendering, but it was not coping with the tag-soup affecting the majority of web pages (hence it didn't gain much popularity).

Once all the vaporware, buzz and fuzz surrounding the release of this cutting-edge browser (IE 7), users who switched back from Opera/Firefox (IMHO quite many) will start missing the features they've got used to in the alternative browser, and probably most of them will feel disappointed by IE (after the "wow" factor dries). Plus, they'll continue seeing "too cool for IE" and similar "campaigns".

The main point of this post is actually to propose a new way of looking at Microsoft failing to deliver a good browser. It's not just on purpose (because things have changed since then and Microsoft seems to realize the importance of the Internet and the Web). It's also about the possiblity of MS losing the entire market share dominance in respect to operating systems. Will this ever happen? Yes, no doubt. The only question is "when?".

Losing the web browsers market share dominance is not that hard as some think so. It's not impossible. Lets take the example of MP3 players: Winamp versus Windows Media Player. Winamp is not integrated into Windows, but WMP is. Guess which one dominates? Everybody I know uses Winamp (including myself, actually I use Ubuntu now, but the point is I used Winamp with Windows). WMP is simply not good enough: it's slower and it's a resource hog compared to Winamp. Yes, I've tried WMP and yes, it has some nice features, but that's all.

The same can happen in the browsers world. I know it's very hard, but not impossible (nothing is impossible :smile: ). If browsers like Opera and Firefox start providing extremely advanced new features and capabilities that will render IE simply obsolete, out-dated, developers and corporations might actually make Opera/Firefox-only web applications (unless MS pays them enough not to do so). Users will switch, because the alternatives are better. Microsoft can't pay all companies, all developers to make IE-only sites because it cannot afford to so and it's not something anybody can do (not even Bill Gates).

Firefox is already being installed on new computers by geeks for friends and families who don't know much about computing. I also install Opera browser on all computers I have to setup and configure, I even try to remove IE shortcuts, so the user can't start it by mistake. This is the same approach used with Winamp. It's just standard procedure: stop useless services, install Opera and Winamp.

That's the first step to losing the operating systems market dominance. Why? Once users realize the benefits of alternatives, the fact alternatives are better, they are more and more interested in alternative operating systems too. That's what happend to me as well.

Browsers are probably even more important than any piece of software on any OS. If you no longer use IE, you can already make the switch easier. Many web applications also make it easier to make the switch. Does Jane use Gmail? No problem, that one works under GNU/Linux too. Does she use Firefox, Thunderbird or Opera? All function under Linux better and faster.

A good move by Microsoft would be to release IE 7 ASAP, but make it stable and with enough "wow" factor for gullible users. Then, in one year develop IE 8, which has the "wow" factor for developers too.

I don't ignore the improvements in IE 7. Quite good ones, except the interface which is worse than what IE 6 looks like. IE 6 actually has an acceptable interface.

If anything's going to be "blamed" for the fall of Windows market dominace, that's the Web. It's not Google, and no other startup nor corporation, because they'll all make use of the Internet and the Web.

P.S. Comments are very welcome and I am actually interested in your personal opinions regarding matters expressed in this post.

Linux and open-source

, , , ...

This post is about what I think in general about Linux (not strictly about Ubuntu) and open-source.

When you are a Windows user you are bothered by friends who use Linux, each of them suggesting you to switch to Linux: "stop being a Microsoft slave" or whatever.

Picking a distro is a "daunting" task for a Linux newbie, even if he's an expert or "expert" in the Windows world.

When you finally decide upon which distro to install, and you install it, the funny part comes: your friends who are using a different distro mock you for picking another one, no matter how experienced you are. If you need help when you run into a problem, answers can be along the line "ha, that doesn't happen in my distribution!".

After I got Ubuntu, one Gentoo guy said to me "ah, Ubuntu, uhm that's almost Linux, nonetheless good you made the switch". That's encouraging! Some guy from Fedora Core 4 simply said: "Ubuntu works too good, it's too graphical". Interesting, since he seems to dislike the fact some Linux distros are reaching a level which allows the user to simply just use Linux, without the problems most Windows fear of: going to CLI, and manually editing configuration files. He said that because he was a bit amazed by the fact I got Samba perfectly working very easily and v4l was already working (he had these two specific problems with FC 4). That's probably because FC is a more of a "cutting-edge" distro than a working/stable distro :smile:.

Worth noting Ubuntu isn't a perfect distro either. I did have some problems with it too. However, many of the solutions were very easy.

Contrary to what some might think... I haven't switched to Linux just to be hip & cool (I could've done so long time ago). I switched because there's a real need ... me being a web developer, also requires experimenting and developing with a lot of technologies - most of all being available only for Linux (or working better and faster on Linux).

The failure of Linux still being a niche desktop OS is caused by the simple fact that the entire community doesn't agree on the purposes, being too diverse. Gladly (from my perspective), groups of users and developers who want an easy-to-use Linux desktop are mobilizing to build very good distros.

Once you get used to Linux, you really like the power of scripts, the power of CLI and whatever. These really give you the kind of freedom you need after spending all day using the WIMP approach for computer interaction. The CLI stuff would be quite a big improvement to Windows, if they'll ever decide to actually make it useful. The graphical Linux distros don't "disable" access to the CLI, they just make it unnecessary for general configuration purposes. That's very good.

There shouldn't be this "distro war". Each distro is good in it's own way. Use the one that suits your taste. If you haven't yet found one, keep on trying. When you find a distro you like, don't change it just for the sake of change.

Regarding the differences between distros: Claudio Santambrogio made a very good point saying Ubuntu is yet another distro and offered me a link to one of his blog posts about the $100 laptop.

It is one of the more confusing points for a Linux beginner to have to learn that there are several applications for one and the same job, and answering the most obvious question ("so - which one should I use?") is often more an issue of, shall I dare saying, quasi-religious belief than anything the new user could grasp rationally.



It's exactly the same problem as picking a distro.

I found myself installing KDE on my Ubuntu just to give it a try. Now I have a gazillion of packages that I never use, nor I know what they do :smile:. I have about 10 image viewers, several web browsers, file managers, package managers, video/audio players, TV applications and what-not.

In general the most popular Linux distributions (Ubuntu, Fedora Core, SUSE, Debian, etc.) are very good, even better than Windows. This is because they are stable, fast, and provide good packages. A big "downer" for a new Linux user are missing hardware support (drivers), missing capabilities for audio/video playback (patents...) and missing Windows-only software (like Photoshop, Flash, etc.). These are problems which are not caused directly by any distro, yet they make new comers forget about the good things in the Linux world.

In some way KDE and Gnome are better desktoper environments than Windows is. The organization of the menus, of the GUI in each package from KDE is problematic. The reason I am using Gnome is it's better organized, following stricter guidelines.

Open source projects are both an amazing example of volunteer work and organization, products built by begginers with passion and experts working for big companies, and an example of diversity.

Three of the best open-source projects (OpenOffice, Firefox and Wikipedia) have varying levels of "problems". Wikipedia is having quite a big share of articles dedicated to show readers the bad quality of some articles from Wikipedia (bad/vandalised articles full of lies). While the examples provided by these well-intended writers from very well-intended news agencies are right, it's still not entirely true. Wikipedia is quite a very good source information. It's affected by the "too open-source" factor. I am not saying Wikipedia is perfect and everything you read there shall be trusted. Yet, the same fact applies to any other site. The good thing on Wikipedia is you know before there might be trouble ahead. Anybody who's serious about documenting him/herself about something won't base all his/her opinions and knowledge on just one site or two. He/she must do some research and make-up his/her own impressions and opinions on the matter.

OpenOffice is a huge package which probably has the purpose of becoming as bloated as Microsoft Office 11. It's currently in a good state, I use it myself, but it should be better.

Firefox is intelligently made. Mozilla Corporation heads seem to be better organized and focused on what they want. It's not good they add proprietary extensions (no, not those extensions). I mean DOM extensions that have no vendor specific prefix like non-standard CSS properties have. There are some DOM stuff in Gecko which are available only on Gecko, yet there's no indication they are proprietary. That's the same problem IE has. Maybe Mozilla Corp. wants Firefox to be the next IE (in every aspect, not just market share domination). Or shall I say the next Netscape 4? From one perspective, this might be very unlikely, because (I hope) Gecko won't fall behind on implementing cutting-edge web standards.

Linux packages shouldn't try to just copy Windows counter-parts. This goes specially to KDE, Gnome and OpenOffice. Microsoft Office 12 might be quite good because it changed the user interface quite a lot (or so they say, we'll have to see when it's released). There's the need of new and better approaches. If desktop environments on Linux would really bring users something amazingly good with a great usability factor, ease-of-use, ease-of-learning, I am sure many users would try Linux and make the switch. Why? Because currently they see on Linux only the same old stuff they got used to on Windows, but worse in some ways (not professional, a bit bloated, lost compatibility with Windows executables, etc). Why really switch to Linux? Just to be hip? What do Linux distros provide users truely amazing the instant they boot the CD? Yes, I know there are many cool stuff (package management, stability, speed, better control over the system, etc), but nothing truely amazing.

I am not talking about something revolutionary, because that's not what users want, even if it might be better. They won't want to learn anything too different. I am only talking about evolution.

I am interested if there will ever be a distro that actually tries to be the "mother" of all of them. One that any Linux user can suggest to any Windows user (be it an expert or a newbie). A single distro supported by all distros, where the repository is always up-to-date, where you can find almost all packages you'll ever need. A distro that offers the almost perfect balance between cutting-edge and stability (this is what Ubuntu comes close to, IMHO).

One such distro, with a very good interoperability between KDE applications and Gnome applications (yes, they should unite their forces), with a very well configured WINE could be a big booster to Linux. WINE is quite good if you have the knowledge of properly configuring it. It can also be seamlessly integrated into the desktop environment. Any Windows user wants to be able to run its own Windows applications for which s/he doesn't have counter-parts (like Adobe Photoshop, Macromedia Flash, etc). Sometimes users want to run their Windows applications (like Microsoft Office) just because they like them more or they got used to them, or simply put they paid a truck-load of money for them and ... switching to Linux would make those payments worthless :smile:. WINE is the package for this (quite a good one too).

General talk about Linux should actually be about the distro.

Article updated on 2006-06-22, making it similar to the newly published Romanian translation.

Ubuntu 5.10

, , ,

Hello!

I decided to try the latest Ubuntu Linux.

I have previously tried Fedora Core 2 and before that I had some very old Red Hat, but that's all very long time ago and ... I always switched back to Windows for various reasons, such as, but not limited to: networking with Windows (Samba-fun), TV tuner configuration (I never got this close to "working"), slow Internet connection (couldn't download a gazillion of packages), getting video/audio playback and what-not. With FC 2 there were some really cool advancements: easier to configure, better package management and seriously stable Gnome (compared to what I tested on the very old Red Hat).

Installing Ubuntu was easy, but I have to say it took more time than Windows XP Professional installation (don't flame me, it's true on my system).

I had the pleasure of finding the local area connection almost working properly. I was able to access shared folders from other Windows machines in just a few minutes. Configuration wasn't a hassle at all. I said it worked almost perfect because I still had to manually edit a file, so I can share my own files on the Windows network.

Ubuntu Wiki is a great resource of information and documentation. Very easy to follow tutorials.

I haven't had big problems with Ubuntu. Everything seems to work just fine. I have removed my Windows installation and now I got only Ubuntu (one month ago). I am actually writing this blog post in Gedit :smile: - it's safer to have a local file.

I've got everything working properly without too much hassle (actually very little ... if I read Ubuntu Wiki, which I don't always do, because I sometimes forget :smile: ).

TV tuner configuration was uhm ... lets say piece of cake. Yet, I got my TV tuner working on Ubuntu after a few weeks P:. Why? I was busy configuring other more important stuff and ... TV tuner configuration was a bit "hard": I had to search on Yahoo for some documentation about bttv. The problem: I had v4l and v4l2 working perfectly from the start, but no TV application was able to search for the channels. Why? The driver didn't detect the exact tuner type/card I have (Mentor TV). Solving the problem was piece of cake: modprobe bttv card=78.

On Windows I was using DScaler for viewing the TV (I have no need for PVR software). It was quite a CPU intensive application (100% constantly), because it has some very good deinterlacing filters. Gladly, the Linux couter-part is much better :smile:. I use KDE TV 3.5. It's faster than Dscaler, features-packed and very good.

The minor annoyances that affect Ubuntu a bit were:

1. I had to install gcc-3.4 to be able to install kernel modules.
2. Firefox 1.5 was not available in the repositories: manual install is required (not a big hassle once you read the wiki).
3. Ubuntu boots slower than Windows XP. Why? Even after I removed all the unnecessary boot services. Guess what? The slow part is not the graphical boot (actually gdm and gnome start-up faster than the graphical system of Windows). The loading section until gdm starts takes the most time.
4. Opera wasn't available in the repositories P:.

Movie and audio playback wasn't hard to install at all. Movie playback is actually much faster than on Windows using Mplayer with XV output. Very fast player and good one :wink:. I use VLC only for heavy duty stuff :smile:.

The part that I liked the most was installing PHP 5, MySQL 4.1, PHPMyAdmin and Apache 2. Much faster and easier than on Windows (of course).

Unexpected goodies of Linux: WINE, accessiblity support (magnifier, TTS, on-screen keyboard display and screen readers) and more I'm forgetting.

I've switched to Linux. Nothing more to add.

P.S. I like the Human theme :D.
Download Opera, the fastest and most secure browser