Outils pour utilisateurs

Outils du site


issue71:labo_linux

Table des matières

1

Several years ago, netbooks were all the rage. I got my Dell Inspiron Mini 10 (1012) at the height of the netbook boom. For two days I tried to use the Windows 7 Starter Edition that came with the netbook, but, after removing all the junkware and making a backup to an external DVD burner, I still found the netbook extremely slow. I gave Windows a shot, it didn’t work out, so I tried Ubuntu 10.04 from USB, and the experience was magical. Not only was Ubuntu 10.04 significantly faster, it came with software I actually use. It was an easy decision to erase Windows 7 and install Ubuntu. I already had a notebook, so I found myself not really using the netbook. The small keyboard made it somewhat difficult to type (long fingers), and looking down isn’t great for the neck. So I decided to put the netbook to another use: it became our family media center after I added a remote control, receiver, a couple of drives attached via USB and XBMC (formerly known as XBox Media Center). It served that purpose for a couple of years until I recently replaced it with a desktop machine. As much as I don’t like craning my neck down to look at the netbook, I’d been missing it at the local Ubuntu hour meetings I hold each month. My notebook is a bit big for the cramped desk space where we have the meetings (the desk is usually covered with food).

Il y a plusieurs années, les netbooks ont fait fureur. J'ai acheté mon Dell Inspiron Mini 10 (1012) au plus fort du boom des netbooks. Pendant deux jours, j'ai essayé d'utiliser le Windows 7 Starter Edition livré avec le netbook, mais, après avoir enlevé tous les programmes dont je n'avais que faire et fait une sauvegarde vers un graveur de DVD externe, le netbook me semblait toujours extrêmement lent. J'ai donné sa chance à Windows, mais cela n'a pas marché ; j'ai donc essayé Ubuntu 10.04 à partir d'une clé USB et l'expérience était magique. Ubuntu 10.04 était non seulement nettement plus rapide, mais il était livré avec des logiciels que je pouvais réellement utiliser. La décision de supprimer Windows 7 et installer Ubuntu fut facile.

Puisque j'avais déjà un ordinateur portable, je n'utilisais pas vraiment le netbook et je m'en suis rendu compte. Le petit clavier rendait la dactylographie un peu difficile à cause de mes longs doigts et devoir regarder vers le bas n'est pas très bon pour le cou. J'ai donc décidé d'utiliser le netbook pour autre chose : il est devenu le centre multimédia de la maison après l'ajout d'une télécommande, un récepteur, deux disques branchés sur USB et XBMC (anciennement connu sous le nom de XBox Media Center). Il a bien fonctionné ainsi pendant deux ou trois ans, jusqu'à son remplacement récent par une machine de bureau. Autant je n'aimais pas tendre le cou pour regarder le netbook, autant il me manquait aux Ubuntu Hour Meetings que j'organise chaque mois. Le portable est un chouïa trop grand pour l'espace réduit du bureau où ces réunions ont lieu (car il y a généralement beaucoup de nourriture sur celui-ci).

2

Initially I tried Ubuntu 12.10 on the netbook. Ubuntu ran on it, but just barely. Performance was as bad as, if not worse than, Windows 7 Starter Edition. I could have tried Xubuntu or Lubuntu, both of which run lighter than Ubuntu 12.10, but a friend suggested I give Crunchbang a try. Crunchbang is Debian-based so it shares some of the roots of Ubuntu. Installing it to USB key wasn’t as simple as other Ubuntu-based distributions I’ve installed. Normally, I use the usb-creator-gtk application to install distributions to a USB key, but Crunchbang kept failing at the bootloader install stage. I ended up unmounting the USB key, running mkfs.vfat to format the key, pulling it out and installing using unetbootin. The Inspiron Mini 10 uses a 64-bit Atom processor so I installed the 64-bit version of Crunchbang. Once I figured out how to get Crunchbang to the USB key, the rest of the installation was very similar to a graphical Ubuntu install. Crunchbang uses the Openbox window manager, so it’s very lightweight. The initial installation installs a handful of desktop programs: Abiword, Gnumeric, Gimp, VLC, XFBurn, gFTP, Transmission and XChat are among the more common programs.

Au départ, j'ai mis Ubuntu 12.10 sur le netbook. Ubuntu y fonctionnait, mais pas bien du tout. Les performances étaient aussi mauvaises, sinon pires que celles de Windows 7 Starter Edition. J'aurais pu essayer Xubuntu ou Lubuntu, les deux étant plus légers qu'Ubuntu 12.10, mais un ami m'a suggéré d'essayer Crunchbang.

Crunchbang est basé sur Debian et partage ainsi certaines des racines d'Ubuntu. L'installer sur une clé USB n'était pas aussi simple que pour d'autres distributions basées sur Ubuntu que j'ai installées. Généralement, j'utilise l'application usb-creator-gtk pour installer des distributions sur une clé USB, mais Crunchbang ne cessait d'échouer à l'étape de l'installation du bootloader. J'ai fini par démonter la clé USB, exécuter mkfs.vfat pour la formater, l'éjecter, puis faire l'installation avec unetbootin. L'Inspiron Mini 10 a un processeur Atom 64-bit et j'ai donc installé la version 64-bit de Crunchbang.

Une fois que j'avais compris comment mettre Crunchbang sur la clé USB, le reste de l'installation était très similaire à une installation graphique d'Ubuntu. Crunchbang se sert du gestionnaire de fenêtres Openbox et est donc extrêmement léger. L'installation initiale comprend une poignée de programmes de bureau : Abiword, Gnumeric, Gimp, VLC, XFBurn, gFTP, Transmission et XChat sont parmi les programmes les plus connus.

3

To keep things lean and mean, Crunchbang doesn’t include LibreOffice, but installing LibreOffice is one of the options of the firstboot program that loads in a terminal when Crunchbang boots for the first time. The firstboot program asks if you want to update the system, install development packages, install OpenSSH server, install a LAMP (Linux Apache MySQL PHP) stack, and install LibreOffice. Though it seems very developer-oriented, I still like Crunchbang for the speed. One of the Openbox claims is that it’s infinitely configurable. This does appear to be true, but configuration isn’t quite as easy as the days when Gnome 2 was actively developed. Part of the Openbox configuration can be found in Settings > Openbox > GUI Config Tool the other part in Settings > User Interface Settings. If you want to set the background you need to use a third menu option Settings > Choose Wallpaper, and, if you want your own wallpaper, you’ll need to click the Preferences button in Nitrogen’s (the wallpaper program) UI to add the path to the wallpapers you want to add. I suppose this could be following the UNIX philosophy – one tool doing one thing really well, but a single tool to do all three activities would be nice for new Linux users. I found Nitrogen to be buggy; it seemed to forget the path added the next time I launched it. The path remained in the preferences, but the images didn’t show in the Nitrogen wallpaper selection. Looking through the various Settings, you’ll see there are a large number of configuration options, almost all of which require knowing the format of some configuration file. While the configuration files are well documented (and somewhat obvious), it might be a bit much for someone new to Linux.

Pour que tout reste épuré, LibreOffice n'est pas inclus dans Crunchbang, mais installer LibreOffice est l'une des options du programme « firstboot » qui se charge dans un terminal au premier démarrage de Crunchbang. Le programme de premier démarrage vous demande si vous voulez mettre le système à jour, installer les paquets de développement, installer le serveur OpenSSH, installer une pile LAMP (Linux Apache MySQL PHP) et installer LibreOffice. Bien qu'il semble très orienté vers les développeurs, j'aime Crunchbang pour sa rapidité.

Une des affirmations d'Openbox est qu'il est configurable à l'infini. J'ai l'impression que cela est vrai, mais la configuration n'est pas tout à fait aussi facile que lors de l'époque où Gnome 2 était développé activement. Une partie de la configuration d'Openbox se trouve dans Settings (Paramètres) > Openbox > GUI Config Tool (outil graphique de configuration) et l'autre partie dans Settings > User Interface Settings. Si vous voulez régler le fond d'écran, vous aurez besoin d'utiliser une troisième option du menu Settings > Choose Wallpaper et si vous voulez votre propre fond d'écran, vous devrez cliquer sur le bouton Preferences dans l'interface de Nitrogen (le programme des fonds d'écran) pour y saisir le chemin vers les fonds d'écran que vous voulez ajouter. Je suppose que ceci peut être dû à la philosophie d'UNIX - un outil qui accomplit très bien une seule tâche, mais un seul outil pour faire les trois activités serait bien pour les nouveaux utilisateurs de Linux. J'ai trouvé Nitrogen plein de bogues ; il avait l'air d'avoir oublié le chemin ajouté à son prochain lancement. Le chemin était toujours dans les préférences, mais les images ne s'affichaient pas dans la sélection des fonds d'écran de Nitrogen. Si vous parcourez les divers paramètres, vous verrez qu'il y a de très nombreuses options de configuration, dont presque toutes nécessitent de connaître le format d'un fichier de configuration quelconque. Bien que les fichiers de configuration soient bien documentés (et plus ou moins explicites), cela pourrait décourager quelqu'un qui découvre Linux.

4

Many of the hot keys that work in Gnome 2, such as Ctrl+Alt+arrow to switch workspaces, work in the Openbox window manager. When Crunchbang first loads, it also loads a Conky file that shows some common hotkeys to do things like launch VLC, control volume, open the Geany text editor, or launch the run dialog. The super key (Windows key) based programs are generally commonly used programs like the web browser, a terminal, VLC, and text editor, in addition to Logout and a couple of menus. From the perspective of someone who doesn’t mind editing a .config file, I really like Crunchbang. Crunchbang is fast, the super hotkeys make doing the most common tasks easy, it’s based on Debian, and everything worked out of the box for me after the install (including the wireless). I’m not quite sure Crunchbang will appeal to everyone, but, if you don’t mind doing a bit of editing, and love your system fast, Crunchbang might just be for you. P.S. if you like conky, the .conkyrc I’m using can be found here: http://charlesmccolm.com/2011/07/10/conky-modded-for-my-notebook/

Beaucoup des raccourcis clavier qui fonctionnent dans Gnome 2, tels que Ctrl+Alt+flèche pour changer d'espace de travail, fonctionnent dans le gestionnaire de fenêtres Openbox. Au départ, quand Crunchbang se charge, il charge également un fichier Conky qui affiche quelques raccourcis clavier usuels pour faire des trucs comme lancer VLC, contrôler le volume, ouvrir l'éditeur de texte Geany ou lancer le dialogue « run » (Exécuter). Les programmes basés sur la touche super (touche Windows) sont, en général, des programmes d'usage courant, tels le navigateur web, un terminal, VLC et l'éditeur de texte en plus de « Logout » (se déconnecter) et deux ou trois menus.

Du point de vue de quelqu'un qui ne voit aucun inconvénient à modifier un fichier de configuration, j'aime vraiment beaucoup Crunchbang. Crunchbang est rapide, les raccourcis clavier avec la touche super rendent facile la plupart des tâches ordinaires, il est basé sur Debian et tout fonctionnait chez moi dès l'installation (wifi compris).

Je ne suis pas certain que Crunchbang plaise à tout le monde, mais, si cela vous est égal de faire quelques modifications et que vous aimez que votre système soit vraiment rapide, il se peut que Crunchbang soit juste ce qu'il vous faut.

P.S. Si vous aimez conky, vous trouverez le .conkyrc que j'utilise ici : http://charlesmccolm.com/2011/07/10/conky-modded-for-my-notebook/

issue71/labo_linux.txt · Dernière modification : 2013/06/23 22:15 de tiboo