You are not logged in.

#1 2011-09-06 11:57:03

rg_arc
Member
Registered: 2011-03-20
Posts: 507

I can only shutdown arch linux using the terminal.

Recently I started using SLIM to log into Arch Linux. I was having trouble with the gnome-keyring window popping up everytime I logged in while using GDM. I downloaded SLIM and changed some settings so that gnome-keyring wouldn't pop up everytime.

Here are the changes I made:

~/.xinitrc using this article https://bugs.archlinux.org/task/18930

exec ck-launch-session gnome-session

eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh)

And /etc/pam.d/slim

#%PAM-1.0
auth            requisite       pam_nologin.so
auth            required        pam_env.so
auth            required        pam_unix.so
account         required        pam_unix.so
password        required        pam_unix.so
session         required        pam_limits.so
session         required        pam_unix.so
session         optional        pam_loginuid.so
session         optional        pam_ck_connector.so
auth            optional        pam_gnome_keyring.so*
session         optional        pam_gnome_keyring.so auto_start*

*= the changes I made to the file.

I was hoping to just stop gnome-keyring from popping up everytime I log into Arch Linux (ideally I wanted to auto log in) and now I can't shutdown unless I use the $ sudo shutdown -h now command in the terminal. When I click on the "Power Off" button in Gnome 3 it basically logs me out to the SLIM log in screen. I was able to shutdown the computer before by shutting the laptop screen/lid but that doesn't do anything now for some reason. Is there a way for me to auto log into arch without the gnome-keyring popping up everytime?

Additionally, with the gnome keyring dialog I wasn't able to click the "Automatically log in....." radio button because it was grayed out for some reason.

Last edited by rg_arc (2011-09-06 19:45:05)

Offline

#2 2011-09-06 12:41:24

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: I can only shutdown arch linux using the terminal.

Sounds like a consolekit issue.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2011-09-06 12:57:17

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: I can only shutdown arch linux using the terminal.

What would you recommend? ConsoleKit Arch Wiki mentions appending "startxfce4" for xfce in ~/.xinitrc... of course... I am using Gnome 3.

Offline

#4 2011-09-06 13:05:07

justl
Member
From: The Netherlands
Registered: 2011-08-26
Posts: 19

Re: I can only shutdown arch linux using the terminal.

it is very important that you add

eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh)

before

exec ck-launch-session gnome-session

edit: Also your problem seems very related to this: https://bbs.archlinux.org/viewtopic.php?id=125929 give it a try!

Last edited by justl (2011-09-06 13:20:32)

Offline

#5 2011-09-06 15:05:01

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: I can only shutdown arch linux using the terminal.

Thanks for the very helpful info justl!

I switched the ~/.xinitrc commands like you said and also just have exec gnome-session.

now.. I looked at the link and I see that they mention using the ck-launch-session command in the /etc/slim.conf file. What about this command in my file? Would this cause any trouble?

login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1

rgedit_ *dbus-launch

Last edited by rg_arc (2011-09-06 15:08:36)

Offline

#6 2011-09-06 15:31:51

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: I can only shutdown arch linux using the terminal.

post the output of ck-list-sessions in code tags, Run it as your user in a terminal in your X session.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2011-09-06 15:36:18

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: I can only shutdown arch linux using the terminal.

$ ck-list-sessions
Session2:
	unix-user = '1000'
	realname = 'Ricky ******'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0.0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-09-06T10:32:31.899610Z'
	login-session-id = '1'
Session1:
	unix-user = '1000'
	realname = 'Ricky *******'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0.0'
	x11-display-device = ''
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-09-06T10:32:31.706583Z'
	login-session-id = '1'
$

I believe everything is working smoothly after I rebooted... I think this is solved... but its good measure to double check.

thanks for the input guys

Last edited by rg_arc (2011-09-06 15:37:05)

Offline

#8 2011-09-06 19:48:52

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: I can only shutdown arch linux using the terminal.

Ok now the gnome keyring is popping up again when I choose the auto login option in /etc/slim.conf. I remember when I was using Arch about a year ago before I reinstalled I was using the auto login option with slim and the keyring never popped up... I believe it was because I clicked the "automatically unlock this keyring whenever I am logged in" and it never came up again. Gnome keyring is really frustrating, is this some sort of bug?

Offline

#9 2011-09-07 10:28:22

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: I can only shutdown arch linux using the terminal.

Thanks to the advice above, plus adding "gnome-session" to the sessions line in /etc/slim.conf, I also now have shutdown and restart available again in SLiM.

Great stuff!


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#10 2011-09-07 19:52:38

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: I can only shutdown arch linux using the terminal.

I've removed gnome-keyring.. what a frustrating package.. I don't have any use for it

Offline

Board footer

Powered by FluxBB