You are not logged in.

#1 2010-09-01 19:22:54

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

[solved] slim can't start openbox

hi to all

i want to start openbox through slim

i've setup slim.conf and .xinitrc as below:


# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# Commands for halt, login, etc.
#halt_cmd            /sbin/shutdown -h now
#reboot_cmd          /sbin/shutdown -r now
#console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# 
numlock             on

# 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 /home/mattia/.xinitrc

# 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

# 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            openbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /home/mattia/slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Benvenuto in %host

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

# shutdown / reboot messages
shutdown_msg       Il sistema si spegnerà...
reboot_msg         Il sistema si riavvierà...

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

# 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          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       archlinux-soft-grey

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

exec ck-launch-session dbus-launch openbox-session

but when i try to log in it return: error

what i do wrong ?

thanks

Last edited by nTia89 (2010-09-02 12:14:10)


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2010-09-01 19:33:12

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: [solved] slim can't start openbox

It looks like you're missing the shell option after exec. I use bash, and this is what my login_cmd looks like

login_cmd exec /bin/bash - ~/.xinitrc %session

openbox is defined as part of the session variable

Also, double check that your .xinitrc is executable.

Offline

#3 2010-09-01 22:24:56

codycarey
Member
Registered: 2009-08-21
Posts: 154

Re: [solved] slim can't start openbox

Tenken wrote:

It looks like you're missing the shell option after exec. I use bash, and this is what my login_cmd looks like

login_cmd exec /bin/bash - ~/.xinitrc %session

openbox is defined as part of the session variable

Also, double check that your .xinitrc is executable.

It looks like nTia89 purposefully tried to bypass the use of the session variable. I think the problem is his/her use of 'exec', to which they are passing a file and not a command, even though .xinitrc is a shell script. 'Exec' is likely just looking at that and saying, "wtf, buhbye".

nTia89, even though you've hardcoded the session to start in your .xinitrc, there's no reason you need to modify the login_cmd line in the SLiM config. Remove what you've done and uncomment the default login_cmd line and I think that should fix it.

Last edited by codycarey (2010-09-01 22:27:09)

Offline

#4 2010-09-02 08:34:15

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved] slim can't start openbox

ok, with default login_cmd , same error

then, i will check if .xinitr is executable. if not, i'll change it


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2010-09-02 12:27:56

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [solved] slim can't start openbox

solved: my slim.conf is right

the error was in .xinitrc permission: it wasn't executable.....

and thanks to all

PS: now i have other but related problems, i open a new thread: https://bbs.archlinux.org/viewtopic.php … 58#p819958


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB