CTKArch · Forums
You are not logged in. Please Register or Login.  |  Search
Posted: Feb 01, 2011 9:17:57 pm
Eupythal
icon



Hello,

Since I upgrade on Saturday, I can't Shutdown the system or mount my removable devices.
I searched on French or English forum but I can't find the solution.
I found this topic https://bbs.archlinux.org/viewtopic.php?id=112637&p=1 but CTKarch doesn't use SLIM and I can't find any /etc/pam.d/login.pacnew.

I checked some point and the result of
Quote:
ck-list-session

seems strange as there is two session but I don't know what it means.
[see below]

Does someone had the same problem and could help me?
________________________

Bonsoir,

Depuis la mise à jour de samedi, je ne peux plus éteindre mon ordinateur depuis le menu ou monter de disque externe depuis Pcmanfm.
Après recherche sur les forum Arch j'ai trouvé ce topic qui semblait correspondre https://bbs.archlinux.org/viewtopic.php?id=112637&p=1 mais CTKarch ne semble pas utiliser SLIM et je n'ai pas de trace d'un fichier /etc/pam.d/login.pacnew.

En vérifiant certains points indiqués, le résultat de
Quote:
ck-list-session

me semble étrange car il y a deux sessions mais je ne sais pas ce que cela signifie :

Quelqu'un aurait-il eu le même problème et pourrait m'aider à le résoudre ?
D'avance merci pour votre aide.

Quote:
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/console'
remote-host-name = ''
is-local = TRUE
on-since = '2011-02-01T17:02:40.596380Z'
login-session-id = ''
idle-since-hint = '2011-02-01T17:03:11.012512Z'
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty4'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-02-01T17:02:45.929190Z'
login-session-id = ''


Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 02, 2011 12:37:15 am
Calimero
icon



Sorry, I don't have the same problem, but I can help you though ! :)
I can already tell you it's normal to have two consolekit sessions.
(it may be confusing, but it's impossible to have only one… I really wanted to.)

Of course, the command is ck-list-sessions.

I'll try to reproduce the problem tomorrow and will keep you informed.
____________________

Désolé, je n'ai pas le même problème, mais je peux quand-même t'aider ! :)
Je peux déjà dire que c'est normal d'avoir deux sessions consolekit.
(même si c'est un peu bizarre, il est impossible de n'en avoir qu'une… j'aurais voulu.)

Bien sûr, la commande est ck-list-sessions.

J'essaie de reproduire le problème demain et je te tiens au courant.
____
EDIT : Est-ce que la mise à jour de consolekit a résolu le problème ?
Posted: Feb 03, 2011 8:47:39 pm
Eupythal
icon



Hello Calimero,

Unfortunatly the upgrade didn't solve the problem. I have dual boot with CTKarch 0.5 this is the result of
Quote:
ck-list-sessions

and this is the result (I don't know how to edit my first message to correct):

Quote:
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty4'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-01-31T19:14:12.566413Z'
login-session-id = ''



In this case I have active = TRUE. I think it's the problem. I will try to find how to change it.

Salut Calimero,

Je l'espérais mais la mise à jour n'a rien changé. Comme j'ai gardé CTKarch 0.5 en dual boot j'ai vérifié et tu peux voir le résultat de
Quote:
ck-list-sessions


Je pense que le problème vient du fait que maintenant j'ai active = FALSE. Je vais faire des recherches de ce côté pour essayer de le modifier.
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 03, 2011 9:05:40 pm
Calimero
icon



The penultimate version of consolekit caused this problem, but the latest update (today, or yesterday evening) solved it.
You aren't the only one who experienced that problem!

Now, if you run pacman -Syu and if you didn't hack anything related to consolekit, it must work again.
_________________________

L'avant-dernière mise à jour de consolekit a causé ce problème, mais la toute dernière d'aujourd'hui (ou hier tard), l'a résolu.
Tu n'es pas le seul à avoir eu le problème!

Normalement, si maintenant tu lances pacman -Syu et que tu n'as rien bricolé rapport à consolekit, ça doit fonctionner à nouveau.
Posted: Feb 04, 2011 9:11:26 pm
Eupythal
icon



It was on wednesday I have now version 0.4.3-2 but the same problem. I didn't hack anything since I didn't know exactly what to do.
I will continue to search.

J'ai bien eu la mise à jour vers la version 0.4.3-2 mais malheureusement cela n'a pas résolu le problème. Comme je ne savais pas quoi faire, je n'ai rien touché à la configuration.
Je vais continuer de chercher.
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 07, 2011 12:16:26 pm
Calimero
icon



Okay ! I think I've found.
Edit /etc/pam.d/su and add nox11 at the end of the last line.

Presently, it looks like:
PAM Code:
session        optional        pam_ck_connector.so

Change it to:
PAM Code:
session        optional        pam_ck_connector.so nox11
Posted: Feb 08, 2011 9:16:27 pm
Eupythal
icon



Unfortunatly, it doesn't work for me.
Here is my /etc/pam.d/su if you can see something else :
Quote:

#%PAM-1.0
auth            sufficient      pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth          sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth          required        pam_wheel.so use_uid
auth            required        pam_unix.so
account        required        pam_unix.so
session        required        pam_unix.so
#allow users to have an active session with su
session        optional        pam_ck_connector.so nox11



I have to say I'm lost with all these permission.

Thanks for your help.
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 11, 2011 9:10:31 am
Calimero
icon



I forgot to ask : which architecture are you using?
i686 or x64?
Posted: Feb 11, 2011 8:20:29 pm
Eupythal
icon



I686. Since I have another problem, I will try to reinstall. I can't start X now and I can't find what I changed to have this. Everything is "blocked" at the "CTKarch login". I tried startX as root but it told me that some package were missing. With this new installation I will see if it will solve the problem of authorization.
Will keep you inform.
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 12, 2011 8:31:32 pm
Eupythal
icon



As I said, I made a new install. But after upgrading, I have the same problem of authorization.

Here is the extract of pacman.log
http://pastebin.com/xUUF5H4e

As I saw that gshadow have a link with users group, I tied to copy /etc/gshadow.pacnew to /etc/gshadow but it didn't solve the problem.
Here is my /etc/gshadow if it can be interesting :
http://pastebin.com/SwmDYT3Y

I will continue to search

[edit Calimero] : use pastebin
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 13, 2011 12:00:48 pm
Calimero
icon



Don't search, just rollback consolekit until I can find out what's wrong.

Use the ARM repo in mirrorlist just to reinstall consolekit. (pacman -Syy consolekit after uncommenting it)
Then uncomment an "IgnorePkg =" line in /etc/pacman.conf and use it this way : "IgnorePkg = consolekit"

This is *not* a solution but will allow it to work. Until solved.
Posted: Feb 13, 2011 5:30:31 pm
Eupythal
icon



Hello Calimero,

I downgrade consolekit as you said and it works now.
We can find this bug on different website and it seems it depends how the session is launched.

https://bugs.freedesktop.org/show_bug.cgi?id=31374
bugs.debian.org/cgi-bin/bugreport.cgi?bug=598150

Unfortunatly I don't know how to use these informations.

If you need more information about my system, tell me.

Thanks for your help.
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 14, 2011 8:10:36 am
Calimero
icon



Yep. Don't worry, I was on it.
The fix is as follows:

Create /etc/autostartx containing (change user="arch" to your username):
BASH Code:
#!/bin/sh
#Runs an X session for the user defined here:
user="arch"
 
echo 'Starting X session for '"$USER"
login -f "${user}" STARTX=1

Don't forget to chmod +x /etc/autostartx

Logged as your user, run:
BASH Code:
echo 'if [ "$STARTX" == "1" ];then
unset STARTX ; startx &>/dev/null
exit 0
fi'
>> ~/.bash_profile


And in /etc/inittab, change:

BASH Code:
x:5:once:/bin/su arch -l -c "/bin/bash --login -c startx &>/dev/null" &>/dev/null

to

BASH Code:
c4:5:respawn:/sbin/agetty -n -l /etc/autostartx 38400 tty4 linux


Enjoy!
X starts faster and consolekit gives you the auth. :P
Posted: Feb 16, 2011 9:14:29 pm
Eupythal
icon



Thanks Calimero, it works perfectly.
For sure, I would never find this. I don't understand what I made.

Offtopic:
What could be great and helpful for users is something in the documentation as "How is build CTKArch" where we can see which choice you made, and why; for the configuration.


P.S. Perhaps this topic should be in the "Bugs" category and not in "User support".
Toshiba Satellite 2410-515 : P4-M, 512Mo DDR RAM, Chipset nVIDIA Geforce 4
Posted: Feb 17, 2011 10:02:56 pm
Calimero
icon



It is user support but it's duplicated in bugs. In fact it's both, for a lot of people could need help on this.
So this topic will remain there.

We can have conferences on #ctkarch on Freenode, with people asking on the chan, and me answering through an audio stream. (I'll make a topic in Community)
Writing a page explaining all the config details and the 'why' for every single one would be a lot of work, and maintaining it would be even worse!

All of my config choices are in the sources, and there is nothing else in them. It's easy for me to upload them, maybe not as easy to read, but…
Powered by myUPB v2.2.7  ·   Creative Commons License PHP Outburst