You are not logged in.

#1 2013-04-07 17:24:34

Senryu
Member
Registered: 2013-03-30
Posts: 25

[SOLVED] Configure Slim to run multiple environments

Hi, I have followed the guide on the wiki for setting up Slim to run multiple DE at login (switching them by pressing F1)

This because I have installed a crappy applet on cinnamon, and now it crash every time I login, so I installed another DE, mate and now I'm trying to login in that environment to solve the cinnamon problem with the applet.

This is my /etc/slim.conf

# 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

# 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            cinnamon,mate

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window 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       default

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

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

# Adapted from: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

case $1 in
cinnamon)
        exec gnome-session-cinnamon
        ;;
mate)
        exec mate-session
        ;;
esac

And this my xinitrc file:

exec gnome-session-cinnamon
exec mate-session

When I login I press F1 and select mate, but every time Iogin into cinnamon and it crash :-\

Please help

Last edited by Senryu (2013-04-07 19:46:32)

Offline

#2 2013-04-07 17:41:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,901
Website

Re: [SOLVED] Configure Slim to run multiple environments

You installed a DE to fix a problem with another DE? Why not just use a TTY?

In any case, you'll need to post your .xinitrc if you want help diagnosing this.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-04-07 17:56:19

sano
Member
Registered: 2012-02-11
Posts: 114

Re: [SOLVED] Configure Slim to run multiple environments

# Adapted from: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

case $1 in
cinnamon)
        exec gnome-session-cinnamon
        ;;
mate)
        exec mate-session
        ;;
esac

This belongs in .xinitrc, not slim.conf. Replace your two lines in .xinitrc with it and you should be good to go.
I was about to just post a link to the wiki, but it is actually explained in a way that is prone to misunderstandings.

Offline

#4 2013-04-07 18:08:16

Senryu
Member
Registered: 2013-03-30
Posts: 25

Re: [SOLVED] Configure Slim to run multiple environments

sano wrote:
# Adapted from: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

case $1 in
cinnamon)
        exec gnome-session-cinnamon
        ;;
mate)
        exec mate-session
        ;;
esac

This belongs in .xinitrc, not slim.conf. Replace your two lines in .xinitrc with it and you should be good to go.
I was about to just post a link to the wiki, but it is actually explained in a way that is prone to misunderstandings.


Thanks! then edit the wiki smile

I solved the problem with slim, but I'm stuck with the same problem (the DE crash) when I login with my user (now I'm in the root), I think because both those DE are based on gnome and the same software used to manage applets work for both the DEs?... I'll try to install another DE more different...

@WorMzy yes, because I don't know how to erase that buggy applet, I don't know where it is stored, I have searched about it, but I got no answers from google. So I think it's a good idea to run the applet manager of cinnamon from another DE

Last edited by Senryu (2013-04-07 18:08:48)

Offline

#5 2013-04-07 19:27:31

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Configure Slim to run multiple environments

Senryu wrote:

Thanks! then edit the wiki smile

You are able to edit the Wiki yourself if you think it is wrong or confusing.  It does say to put the case statement in .xinitrc although I can see why the order may trip people up.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2013-04-07 19:46:07

Senryu
Member
Registered: 2013-03-30
Posts: 25

Re: [SOLVED] Configure Slim to run multiple environments

loafer wrote:
Senryu wrote:

Thanks! then edit the wiki smile

You are able to edit the Wiki yourself if you think it is wrong or confusing.  It does say to put the case statement in .xinitrc although I can see why the order may trip people up.

Sure I know but I'm not english mothertongue, I'm afraid to making mistakes smile but If you think that I wrote in correct english language in this thread maybe I will ^^

thx all guys, this community rocks!

Last edited by Senryu (2013-04-07 19:47:46)

Offline

Board footer

Powered by FluxBB