View previous topic :: View next topic |
Author |
Message |
gr4c3r n00b
Joined: 21 Sep 2013 Posts: 3
|
Posted: Sun Sep 22, 2013 12:59 pm Post subject: AwesomeWM setup |
|
|
Hi,
finally I've managed to setup awesome wm, start it automatically and autologin, without an display manger.
As single user on this system, I prefer autologin.
Since I had different problems to find right ways, I wanted to share the way how I did this and which is working fine for me.
Maybe someone have an better way to do this.
I followed this Wiki entry to install and configure awesome.
http://wiki.gentoo.org/wiki/Awesome
Now in /etc/inittab have append the line:
Code: | c1:12345:respawn:/sbin/agetty 38400 tty1 linux |
with "-a <user>" (<user> as my username) that my user logs in automatically on tty1.
Code: | c1:12345:respawn:/sbin/agetty 38400 tty1 linux -a <user> |
Add bellow into ~/.bashrc to run XServer when I log in.
In bellow script I check if there's already an DISPLAY defined and if current tty is /dev/tty1 to avoid to start an xServer again and again everytime when I start a shell.
Code: | if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then
while true
do
startx --
sleep 10
done
fi
|
Add awesome to ~/.xinitrc
Code: | exec ck-launch-session dbus-launch --sh-syntax --exit-with-session awesome
|
Regards Julian |
|
Back to top |
|
|
gienah Developer
Joined: 24 Nov 2010 Posts: 212 Location: AU
|
Posted: Mon Sep 23, 2013 3:17 pm Post subject: |
|
|
Another bash way to start it is x11-misc/cdm |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Mon Sep 23, 2013 4:27 pm Post subject: |
|
|
Here is my way of starting Awesome at login:
(Using .zprofile)
Code: | [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 |
It allows the chance to change to another tty if I need/want to do something as root or normal user before starting an X session. |
|
Back to top |
|
|
|