
Code: Select all
source /etc/profile

Code: Select all
#!/bin/bash
sudo /etc/init.d/autostartx stop
sudo reboot
Code: Select all
#!/sbin/runscript
depend() {
need local
use xfs
}
start() {
ebegin "Starting X11 as ${X11USER}"
start-stop-daemon --start --background --quiet --pidfile ${PIDFILE} --make-pidfile --chdir ${X11HOME} --exec /bin/su -- ${X11USER} -lc "startx"
eend $?
}
stop() {
ebegin "Stopping X11 as ${X11USER}"
start-stop-daemon --stop --quiet --oknodo --user ${X11USER} --pidfile ${PIDFILE}
eend $?
}Code: Select all
# /etc/conf.d/startx
# Set to the user you want auto-logged-in.
# Remember, this is terribly insecure.
# Only use this if you know what you're doing.
X11USER="username"
# Set this to your homedir. Probably /home/youruser.
X11HOME="/home/username"
# Pid file location. Probably don't need to touch this.
PIDFILE="/var/run/startx.pid"Code: Select all
setenv("LANG", "fr_FR.UTF-8", 1);OK, i do so complicated... I've fixed it. Just add "env-update" in xinitrc file before running my DE.Fenril wrote:Hello guys,
Sorry to up this old thread, but i would use this code to have an autologin on one of my computers. X is well launched but my locales aren't set correctly. I modified the code and put a line in autostartx-bin.c like this :
Then i recompile it, but it doesn't help anymore. Any clue please ?Code: Select all
setenv("LANG", "fr_FR.UTF-8", 1);
Code: Select all
#c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c1:12345:respawn:/sbin/agetty -n -l /root/bin/autologin 38400 tty1
Code: Select all
#!/bin/bash
exec login -f eniac
Code: Select all
if [[ $(expr index "$(tty)" y) -ne 0 ]];
then
startx
fi