sorry, the first line is commented. My config is that:
➜ ~ git:(master) ✗ cat /etc/inittab # # /etc/inittab: This file describes how the INIT process should set up # the system in a certain run-level. # # Author: Miquel van Smoorenburg, <miqu...@cistron.nl> # Modified by: Patrick J. Volkerding, <volke...@ftp.cdrom.com> # Modified by: Daniel Robbins, <drobb...@gentoo.org> # Modified by: Martin Schlemmer, <aza...@gentoo.org> # Modified by: Mike Frysinger, <vap...@gentoo.org> # Modified by: Robin H. Johnson, <robb...@gentoo.org> # # $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab-2.87,v 1.1 2010/01/08 16:55:07 williamh Exp $ # Default runlevel. id:3:initdefault: # System initialization, mount local filesystems, etc. si::sysinit:/sbin/rc sysinit # Further system initialization, brings up the boot runlevel. rc::bootwait:/sbin/rc boot l0:0:wait:/sbin/rc shutdown l0s:0:wait:/sbin/halt -dhp l1:1:wait:/sbin/rc single l2:2:wait:/sbin/rc nonetwork l3:3:wait:/sbin/rc default l4:4:wait:/sbin/rc default l5:5:wait:/sbin/rc default l6:6:wait:/sbin/rc reboot l6r:6:wait:/sbin/reboot -dk #z6:6:respawn:/sbin/sulogin # new-style single-user su0:S:wait:/sbin/rc single su1:S:wait:/sbin/sulogin # TERMINALS #c1:12345:respawn:/sbin/agetty 38400 tty1 linux c1:5:respawn:/sbin/agetty -a jinleileiking -8 -s 38400 tty1 linux c2:2345:respawn:/sbin/agetty 38400 tty2 linux c3:2345:respawn:/sbin/agetty 38400 tty3 linux c4:2345:respawn:/sbin/agetty 38400 tty4 linux c5:2345:respawn:/sbin/agetty 38400 tty5 linux c6:2345:respawn:/sbin/agetty 38400 tty6 linux # SERIAL CONSOLES #s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100 #s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100 # What to do at the "Three Finger Salute". ca:12345:ctrlaltdel:/sbin/shutdown -r now # Used by /etc/init.d/xdm to control DM startup. # Read the comments in /etc/init.d/xdm for more # info. Do NOT remove, as this will start nothing # extra at boot if /etc/init.d/xdm is not added # to the "default" runlevel. x:a:once:/etc/X11/startDM.sh #x1:5:once:/bin/su - -- jinleileiking -l -c '/usr/bin/startx </dev/null >/dev/null 2>&1' ➜ ~ git:(master) ✗ ➜ ~ git:(master) ✗ cat .xinitrc #!/bin/sh #export XMODIFIERS="@im=ibus" #export GTK_IM_MODULE="ibus" #export QT_IM_MODULE="xim" xrdb ~/.Xresources export XMODIFIERS=@im=fcitx export GTK_IM_MODULE=fcitx # 或者是xim,取决于你是否编译了对应的输入法模块 export QT_IM_MODULE=fcitx # 或者是xim,取决于你是否编译了对应的输入法模块 #eval `dbus-launch --sh-syntax --exit-with-session` #xrandr --output LVDS1 --primary #xrandr --output VGA1 --mode 1280x1024 --right-of LVDS1 xrandr --output LVDS1 --primary --mode 1366x768 --output VGA1 --mode 1280x1024 --right-of LVDS1 #exec ck-launch-session dbus-launch --sh-syntax --exit-with-session awesome >> ~/.awesome_stdout 2>> ~/.awesome_stderr #exec ck-launch-session awesome >> ~/.awesome_stdout 2>> ~/.awesome_stderr exec ck-launch-session dbus-launch --sh-syntax --exit-with-session awesome >> ~/.awesome_stdout 2>> ~/.awesome_stderr #exec awesome >> ~/.awesome_stdout 2>> ~/.awesome_stderr ➜ ~ git:(master) ✗ cat .zprofile # New environment setting added by Sourcery CodeBench Lite for ARM EABI on Thu Jul 05 17:04:19 CST 2012 1. # The unmodified version of this file is saved in /home/jinleileiking/.zprofile2131715756. # Do NOT modify these lines; they are used to uninstall. PATH="/home/jinleileiking/crosstools/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin:${PATH}" export PATH # End comments by InstallAnywhere on Thu Jul 05 17:04:19 CST 2012 1. if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx # Could use xinit instead of startx #exec xinit -- /usr/bin/X -nolisten tcp vt7 fi In grub menu, I chose 5. Then ---> inittab 5 (loggin as jinleileiking)---> .zprofile ---> startx But, in awesome: ➜ ~ git:(master) ✗ ck-list-sessions Session1: unix-user = '1000' realname = '(null)' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2012-07-14T09:19:58.527229Z' login-session-id = '' Session2: unix-user = '1000' realname = '(null)' seat = 'Seat2' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = FALSE on-since = '2012-07-14T09:20:09.346425Z' login-session-id = '' Session2 is not active 2012/7/14 Gregor Best <g...@ring0.de>: > On Sat, Jul 14, 2012 at 04:22:00PM +0800, Leiking wrote: >> [...] >> awesome >> ~/.awesome_stdout 2>> ~/.awesome_stderr >> exec ck-launch-session awesome >> ~/.awesome_stdout 2>> ~/.awesome_stderr >> [...] > > What do you expect? You start awesome, which then runs. And only after that > instance > of awesome exits, you use ck-launch-session to start awesome within a > consolekit > session. Simply remove the first call to awesome and that should be it. > > -- > Gregor Best -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.