You are here

4- LXDE start up configuration

Some configurations need to be set at LXDE start-up by running commands at boot, next is how I did it.

In your chroot, first create a script STARTUP.sh for example and give it execute permission.
> ~/STARTUP.sh
chmod 755 ~/STARTUP.sh

 

write in the file the commands you want to run
----------------------------
#!/bin/bash
brightness 30 # lower brightness to 30
setxkbmap -layout fr # map the french keyboard
xscreensaver-command -lock # lock the screen
xmodmap -e "keycode 49 = Delete" # map Delete key on the square key "²"
xmodmap -e "keycode 71 = F3" # map F5 key on F3
xmodmap -e "keycode 69 = F5" # map F3 key on F5
----------------------------

 

then execute the script when the X session opens:
add a line into ~/.config/lxsession/LXDE/autostart
----------------------------
/home/<user>/STARTUP.sh
----------------------------

 

One more thing:

Each time I install chroot with LXDE, the font size is too small.
Not so easy for me to read commands when I open LXterm.
to enlarge the font size, add the option "-dpi 103" on "exec Xephyr" line in /etc/X11/xinit/xserverrc:
----------------------------
exec /usr/bin/Xephyr $XARGS "$@" -dpi 97
----------------------------
you can adjust the font size with more than 97 or less.