Site perso : Emmanuel Branlard

Subsections

20. Fluxbox

20.1 Install Debian with Fluxbox

#############################
###Installation du serveur X, a revoir
#############################
# bourrin x-window-system-core xterm
# dpkg-reconfigure xserver-xorg
# apt-get install fluxbox
# startx
# voir details des paquets dans aptitude 
#      x-window-system-core  xserver-xorg-intel, x11-session-utils xfonts-100dpi xfonts-scalable
# pour sur il faut minimum xinit (startx), xauth, xserver-xorg-video-nv des inputs, les x11-apps
aptitude install x-window-system-core xinit xauth xserver-xorg-video-nv xserver-xorg-input-mouse xserver-xorg-input-kbd x11-apps

#installation de l'emulation du terminal
aptitude install xterm



#installation de nvidia proprement
m-a prepare
m-a a-i nvidia
aptitude install nvidia-glx

# configuration de X, choisir nvidia comme driver!!!
dpkg-reconfigure xserver-xorg
#installation du windows manager
aptitude install fluxbox
#on peut lancer x
startx

20.2 Notes on Fluxbox

\section{Fluxbox et power manager
dans le .fluxbox de home,rajouter :
gnome-power-manager &

20.3 Tuning Fluxbox Appearence

D'apres le wiki de debian-facile.org


###################################################
##Startup : le fichier .fluxbox/startup
###################################################
If you have network manager, just stick "nm-applet &" in the startup file (but make sure its before the "exec /usr/local/bin/fluxbox.... " line). It works for me.

I had to add "gnome-keyring-daemon &" along with "nm-applet &" in order to get wifi with WEP to work and not constantly ask for the WEP key to be re-entered.

xscreensaver -nosplash &
idesk &
nm-applet&
wmlaptop&
numlockx&


Now I have to get the front audio keys on my laptop to start working...

I used a combination of xmodmap and keybindings, in conjunction with alsamixer.
my .xmodmaprc contains

! vol up
keycode 176 = XF86AudioRaiseVolume
! vol down
keycode 174 = XF86AudioLowerVolume
! vol mute
keycode 160 = XF86AudioMute
(check the keycodes for your buttons using xev) and then I have

XF86AudioMute :ExecCommand amixer set Master toggle
XF86AudioLowerVolume :ExecCommand amixer set Master 5%-
XF86AudioRaiseVolume :ExecCommand amixer set Master 5%+
in .fluxbox/keys. Hope this helps; check the xmodmap man page for more.



###################################################
##Mettre son fond d'écran sous fluxbox
###################################################
#fbsetbg necessite eterm
#sinon aller voir le fichier .fluxbox/startup

fbsetbg -f /chemin/de/votre/fond d'ecran

#sauvegarder les infos  Editer ~/.fluxbox/init et lui ajouter cette ligne:
session.screen0.rootCommand: fbsetbg -l



###################################################
## Icones sur le bureaux
###################################################
#Installation de idesk
apt-get install idesk

#Créer le dossier .idesktop, pour contenir les .lnk.
mkdir ~/.idesktop


table Icon
  Caption: xchat
  Icon: /home/syb/.idesktop/icones/xchat.xpm
  X: 32
  Y: 66
  Command: xchat
end


#Lancer idesk à chaque démarrage de fluxbox editer ~/.fluxbox/startup et decommenter ou ajouter la ligne idesk
idesk








###################################################
## Tunning de thunar
###################################################
Telecharger un theme :
http://www.gnome-look.org/content/show.php/Vista-Inspirate?content=28352

bzip2 + tar -xvf
Copier "Vista-Inspirate_1.0" dans =====>/usr/share/icons
Dans ce repertoire il y a un fichier " index.theme " dans lequel ce trouve le nom du théme "Name=Vista-Inspirate_1.0"
J'ouvre avec un éditeur le fichier .gtkrc-2.0 situer dans /home/user/
Je rajoute > gtk-icon-theme-name = "Vista-Inspirate_1.0"


Ce qui me permet de garder le théme qui gére les boutons , les onglets , les barre de défilement ,
mais de changer les iconnes des fichiers et répertoires dans thunar.

Il est possible que ce message :
bad image index

(thunar:chiffre quelconque(ou PID)): Gtk-WARNING **: Icon cache '/usr/share/icons/hicolor/icon-theme.cache' is invalid

Et/ou quelque chose dans le genre de :

(thunar:chiffre quelconque(ou PID)): Gtk-WARNING **: Error loading theme icon for stock; Icon 'gnome-fs-home' not present in theme
Apparait
On peu le corrigé par un :
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/








Emmanuel Branlard