Happy New Year!!!
At home I have an old PC PII@350Mhz 384MB sdram. Well my phone is by far more powerful. :-D
Even openbox is a very light WM, I use icewm at work and extremely light and in my opinion faster.
Slitaz is one of the few distro's who make this PC usable and able to run few modern applications- google-chrome, openoffice etc.
I think that below procedure can be used for other WM's as well.
Please note that "user" is my home directory and you should chamge with yours.
I'm just a linux fan, so please correct me if something can be corrected or better made.
login as root
user@userx:~$ su -
Password:
root@userx:~#
tazpkg recharge
Install icewm from repo
tazpkg get-install icewm
Edit
nano /home/user/.config/slitaz/aplications.conf
and change
WINDOW_MANAGER="openbox-session"
to
WINDOW_MANAGER="icewm-session"
My file looks like this
# File manager.
FILE_MANAGER="pcmanfm"
# Web browser.
BROWSER="google-chrome"
# Text editor.
EDITOR="leafpad"
# X terminal.
TERMINAL="xterm"
# Window manager.
WINDOW_MANAGER="icewm-session"
edit $HOME/.xinitrc and add below lines
icewm|ICEWM)
exec icewm-session ;;
nano $HOME/.xinitrc
Finally the file should look like this:
. $HOME/.config/slitaz/applications.conf
case $1 in
icewm|ICEWM)
exec icewm-session ;;
openbox|openbox-session|ob)
exec openbox-session ;;
fluxbox|startfluxbox)
exec startfluxbox ;;
awesome)
exec awesome ;;
karmen|karmen-session)
exec karmen-session ;;
jwm)
lxpanel &
exec jwm ;;
xfce|xfce4|xfce4-session)
xfce4-session ;;
*)
exec $WINDOW_MANAGER ;;
esac
Edit slim.conf
nano /etc/slim.conf
look for the sessions line and change the look like:
sessions icewm,openbox
A this time you can reboot or restart slim
Ctrl+Alt+F1 log as root and type:
root@userx:~# /etc/init.d/slim restart
At this time you should see icewm gui.
Login as root again.
Now you may want to copy icewm configuration file to your home directory, otherwise at next icewm upgrade all config files will be overwritten and you will loose configuration.
First make .icewm directory
mkdir /home/user/.icewm
Now copy the files
cp -R /usr/share/icewm/* /home/user/.icewm/
Change owner to your user
chown -R user:user /home/user/.icewm/
In order to get desktop icons, now I want pcmanfm to start automatically and also resolution changed to 1280x720
To get resolutions supported by your video card, open a new terminal and run
user@userx:~$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 1280 x 720, maximum 1920 x 1080
default connected 1280x720+0+0 0mm x 0mm
1920x1080 60.0
1680x1050 60.0
1400x1050 75.0 60.0
1600x900 60.0
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
1280x720 60.0*
1152x720 60.0
1024x768 75.0 60.0 70.0
896x672 60.0
832x624 75.0
800x600 75.0 60.0 72.0 65.0 56.0
700x525 75.0 60.0
640x512 75.0 60.0
640x480 75.0 60.0 73.0
720x400 70.0
576x432 75.0
512x384 75.0 70.0 60.0
416x312 75.0
400x300 75.0 72.0 60.0 56.0
320x240 75.0 73.0 60.0
Count from top to bottom starting from 0 (0,1,2 ... ) to get the number for your resolution.
For example, if you want 1920x1080 resolution than run "xrandr -s 0"
Im my case I want 1280x720 and I had to run "xrandr -s 7"
Or for a 1024x768 resolution and refresh rate 70Hz you may run "xrandr -s 1024x768 -r 70"
Under /home/user/.icewm directory, create a file named "startup"
cat>/home/user/.icewm/startup
#!/bin/sh
pcmanfm&
(xrandr -s 7)&
Now press Ctrl+D
Make this file executable and change owner
cd /home/user/.icewm/
chmod +x startup
chown user:user startup
For further icewm configuration please read http://www.icewm.org/manual/
Enjoy !