SLiM v Gentoo mě nepřihlásí

rado3105

SLiM v Gentoo mě nepřihlásí
« kdy: 26. 04. 2011, 16:29:47 »
1. Nastavils som 
Kód: [Vybrat]
evdev ako USE in /etc/make.conf

2. Do /etc/make.conf som pridal:

     
Kód: [Vybrat]
INPUT_DEVICES="evdev"

     VIDEO_CARDS="radeon
"

3. Pouzil som tento prikaz:

Kód: [Vybrat]
echo "x11-base/xorg-server udev" >> /etc/portage/package.use
4.

Kód: [Vybrat]
emerge xorg-server
5.

Kód: [Vybrat]
# env-update

# source /etc/profile

6. pridal som slit a  toolbar ido USE v /etc/make.conf

7.
Kód: [Vybrat]
echo "x11-wm/fluxbox -gnome -kde truetype vim-syntax" >> /etc/portage/package.use
8.
Kód: [Vybrat]
emerge fluxbox xlockmore eterm
9.
Kód: [Vybrat]
echo "exec startfluxbox" > ~/.xinitrc
10.

Kód: [Vybrat]
# emerge slim

# rc-update add xdm default

11. edit: /etc/conf.d/xdm:

Kód: [Vybrat]
DISPLAYMANAGER="slim"
12.
Kód: [Vybrat]
emerge commonbox-styles commonbox-styles-extra \

  fluxbox-styles-fluxmod gentoo-artwork

13. startx

14. reboot



Po restarte sa zobrazi slim, ale ked napisem meno: root alebo uzivatelske meno ukaze sa: execution command failed. Prepnutim do terminalu(ctrl+alt+f1) a zadanim startx fluxbox, fluxbox nabehne.
« Poslední změna: 26. 04. 2011, 21:43:02 od Petr Krčmář »


tyctor

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #1 kdy: 26. 04. 2011, 16:55:32 »
aky mas login_cmd v /etc/slim.conf ?

rado3105

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #2 kdy: 26. 04. 2011, 17:09:22 »
prikaz na spustenie v /etc/slim.conf je defaultny:
Kód: [Vybrat]
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session

tyctor

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #3 kdy: 26. 04. 2011, 17:26:43 »
ja tam mam toto:

login_cmd           exec /bin/bash -login /etc/X11/xinit/xinitrc

tyctor

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #4 kdy: 26. 04. 2011, 17:30:56 »
a ja pouzivam xfce a v subore  /etc/env.d/90xsession mam este

 XSESSION="Xfce4"



gentoo

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #5 kdy: 26. 04. 2011, 17:53:29 »
Zkus to nastavit takto a prihlas se jako uzivatel pod kterym jsi instaloval (pravdepodobone root).

Kód: [Vybrat]
login_cmd           exec /bin/bash -login ~/.xinitrc %session

Pokud nepomuze, ukaz co pise SLIM do /var/log/messages.

rado3105

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #6 kdy: 26. 04. 2011, 18:44:04 »
Zmenil som to ako si pisal a prihlasi ma to automaticky do fluxboxu. Bez toho aby som si vybral uzivatela a heslo.
Tebe to tiez tak robi?

gentoo

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #7 kdy: 26. 04. 2011, 20:02:26 »
Zmenil som to ako si pisal a prihlasi ma to automaticky do fluxboxu. Bez toho aby som si vybral uzivatela a heslo.
Tebe to tiez tak robi?

login_cmd se provadi az v pripade, ze ses spravne prihlasil. Nech to tak jak jsem Ti psal a podivej se jeste na sessionstart_cmd, jestli je vporadku - to je prikaz, ktery se vola jako prvni.

Kód: [Vybrat]
sessionstart_cmd    /usr/bin/sessreg -a -l :0.0 %user

rado3105

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #8 kdy: 26. 04. 2011, 20:24:11 »
Citace
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
# login_cmd           exec /bin/bash -login ~/.xinitrc %session
login_cmd            exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd      some command
# sessionstop_cmd       some command
sessionstart_cmd        /usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
daemon  yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
#sessions            xfce4,icewm,wmaker,blackbox
# Alternatively, read available sessions from a directory:
sessiondir           /etc/X11/Sessions

# Executed when pressing F11 (requires media-gfx/imagemagick for import)
# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
screenshot_cmd      import -window root /slim.png
#screenshot_cmd      scrot /root/slim.png

# Executed when pressing F11 (requires media-gfx/imagemagick for import)
# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
screenshot_cmd      import -window root /slim.png
#screenshot_cmd      scrot /root/slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session:

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user        r-c

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login         yes

# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme       slim-gentoo-simple

# Lock file, /etc/init.d/xdm expects slim.pid
lockfile            /var/run/slim.pid

# Log file
logfile             /var/log/slim.log

Zda sa ze to sposobuje autologin yes - to ze ma prihlasi bez zadania hesla. Teraz kompilujem ked sa dorobi to otestujem.

gentoo

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #9 kdy: 26. 04. 2011, 20:36:37 »
Ano, to by melo byt tim - je to tam i napsano :-D.

Kód: [Vybrat]
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login         yes

rado3105

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #10 kdy: 26. 04. 2011, 21:14:49 »
Vdaka gentoo. Pomohol si mi dost.
Este som sa chcel spytat, ako ti vyzera fluxbox ked sa prihlasis bez nastaveni? Cierne pozadie a jedna dolna lista? Neni som si isty ale samizda som mal defaultne nejake pozadie ked som to pred dlhsou dobou instaloval.

gentoo

Re: SLIM v gentoo ukazuje chybu: cant execute login command
« Odpověď #11 kdy: 26. 04. 2011, 21:40:30 »
Pouzivam OpenBox, ale je to velice podobne. Ano, plocha je prazdna - pokud chces mit listu, musis si ji nainstalovat :). Ostatne, skoro vse co chces si musis nainstalovat, protoze fluxbox/openbox jsou jen okenni manazery. Pak si musis upravit rc skript pro tohoto okenniho manazera a spoustet si tam co chces (napr.: lista, pidgin atd...)

Dobry seznam je zde (dole):
http://www.gentoo.org/doc/en/openbox.xml

Ja osobne pouzivam lxterminal, xfce4-panel, xfce4-power-manager, nitrogen (pozadi), wicd-client (wifi atd...).