Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enter Fluxbox without "startx"?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Sep 12, 2012 5:24 am    Post subject: Enter Fluxbox without "startx"? Reply with quote

I decided to only keep my Fluxbox session and delete Gnome. I made the changes, emerging slim and all the rest but I can enter my Desktop only by typing "startx" in a xterm or twm console or something like this!
The same way I can shutdown my system.
How can I enter my Desktop right after giving my name/password to Slim DM and shutdown by a simple menu choice, without annoying consoles?
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Wed Sep 12, 2012 5:53 am    Post subject: Reply with quote

Edit /etc/slim.conf (or thats what it was when I fiddled with slim)

I no longer use slim, at the time, it didn't play well with multiple monitors, so I reverted to gdm.

My /etc/slim.conf looks like the following, be warned, it may be very out of date, but may give some inspiration.

Code:

# 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 -br -deferglyphs 16

# 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 /bin/bash -login ~/.xinitrc %session
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %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:
# The current chosen session name replaces %session in the login_cmd
# above, so your login command can handle different sessions.
# If no session is chosen (via F1), %session will be an empty string.
# see the xinitrc.sample file shipped with slim sources
sessions            fluxbox,kde,gnome
sessiondir           /etc/X11/Sessions

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /tmp/SlimScreenShot.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        simone

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

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

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

_________________
...Lyall
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Sep 12, 2012 7:53 pm    Post subject: Reply with quote

I've got almost the same.
Code:
# 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 -br -deferglyphs 16

# 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 /bin/bash -login ~/.xinitrc %session
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %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:
# The current chosen session name replaces %session in the login_cmd
# above, so your login command can handle different sessions.
# If no session is chosen (via F1), %session will be an empty string.
# see the xinitrc.sample file shipped with slim sources
sessions            fluxbox,gnome
#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

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

# 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       slim-gentoo-simple

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

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


The only difference was that the field "sessions" was marked and there was no Fluxbox and Gnome between the sessions.
Code:
#sessions            xfce4,icewm,wmaker,blackbox

So I unmarked it:
Code:
sessions            fluxbox,gnome
#xfce4,icewm,wmaker,blackbox

Let's see now... :wink:
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Sep 12, 2012 8:11 pm    Post subject: Reply with quote

Unfortunately, I had the same result (xterm) and worst off all, didn't started the fluxbox session with "startx"! So I typed "fluxbox" and I saw a desktop without window borders and buttons! So, I changed the file as it was and now I'm in a normal fluxbox session.
My problem remains. I just want to put my name & password in the Slim field and see my fluxbox without the ugly xterm terminal!
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Thu Sep 13, 2012 10:20 am    Post subject: Reply with quote

You also need a file called 'fluxbox' in /etc/X11/Sessions

or, at least a filename which matches what you have coded in your slim config.

My /etc/X11/Sessions/fluxbox belongs to package x11-wm/fluxbox-1.3.2

So, if it's not there, re-emerge fluxbox.

My Fluxbox use flags are :-
Code:
[I] x11-wm/fluxbox
     Available versions:  1.1.1-r3 1.3.1 1.3.2 **9999 {{bidi gnome +imlib -newmousefocus nls +slit +toolbar (+)truetype vim-syntax xinerama}}
     Installed versions:  1.3.2(15:11:01 30/11/11)(imlib nls slit toolbar truetype xinerama -bidi -vim-syntax)
     Homepage:            http://www.fluxbox.org
     Description:         Fluxbox is an X11 window manager featuring tabs and an iconbar

_________________
...Lyall
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Thu Sep 13, 2012 10:53 am    Post subject: Reply with quote

In /etc/X11/Sessions, I have:
Code:
fluxbox
Gnome
xsession


In my slim.conf says:
Code:
# Alternatively, read available sessions from a directory:
sessiondir           /etc/X11/Sessions

Isn't the same?

My fluxbox edition is:
Code:
[I] x11-wm/fluxbox
     Available versions:  1.1.1-r3 1.3.1 1.3.2 **9999 {bidi gnome +imlib -newmousefocus nls +slit +toolbar (+)truetype vim-syntax xinerama}
     Installed versions:  1.3.2(08:58:40 AM 05/06/2012)(imlib nls slit toolbar truetype vim-syntax -bidi -xinerama)
     Homepage:            http://www.fluxbox.org


Do you think that I must re-emerge it?
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Thu Sep 13, 2012 11:04 am    Post subject: Reply with quote

Permissions in your /etc/X11/Sessions directory?
Mine are
Code:
  /etc/X11/Sessions:
  total used in directory 12 available 386168
  drwxr-xr-x 2 root root   47 Sep  4 20:46 .
  drwxr-xr-x 8 root root  125 Jun 24 12:06 ..
  -rwxr-xr-x 1 root root 1975 Sep  4 20:46 KDE-4
  -rwxr-xr-x 1 root root 2187 Jun 24 12:06 Xsession
  -rwxr-xr-x 1 root root 2004 Nov 30  2011 fluxbox

_________________
...Lyall
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Thu Sep 13, 2012 11:10 am    Post subject: Reply with quote

Maybe you should look in this post
You may have the same problem?
_________________
...Lyall
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Fri Sep 14, 2012 7:30 am    Post subject: Reply with quote

Do you have working .xinitrc file? Maybe it shall be simpler to change the login_cmd in slim.conf to call that one instead of Xsession?

Something like

Code:
login_cmd           exec /bin/bash -login ~/.xinitrc


The .xinitrc would have

Code:
exec startfluxbox
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Tue Sep 18, 2012 10:27 am    Post subject: Reply with quote

No progress updates?
I am interested to hear what the solution is.
_________________
...Lyall
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum