You are not logged in.
Greetings,
I've been installing archlinuxes for a while now, using the same script over and over to install the packages, create my users, and so on... and weirdly enough, this is the first time I have this issue: my user cannot do anything.
When I'm using NetworkManager, I cannot add or connect to a network on my own.
For the NetworkManager, I went with the Option 3 from this section of the wiki: https://wiki.archlinux.org/index.php/Ne … ermissions
Unfortunately, it didn't work. And I'm already in the wheel group, so Option 2 doesn't work.
I could go with Option 1, but I'm using KF5 and I'd like to avoid any KDE4 packages.
Can I get any advice on how to fix this ?
EDIT: removed issues with audio, actually adding myself to the audio group did work, I just forgot I had to relaunch the session for the groups to be updated. Although I still don't have sound, it doesn't seem to be a permission issue anymore.
REDIT:
Here's an example of what's happening:
myuser@mymachine ~ % nmcli device connect wlp3s0
Error: Device activation failed: No session found for uid 1000 (unknown)I can disable the network, I can see the available wifi networks around me, but trying to add a configuration will display the same error.
Last edited by Plaristote (2015-11-21 13:43:08)
Offline
Don't use scripts to install things, follow the installation guide. You don't need to be the member of such groups to get audio or network access.
Offline
My bad, my first post was very misleading.
I do use the Installation Guide, and I used it to write the script myself. It goes over the steps that I repeat everytime (prompt for hostname, prompt for root password, install vim, sddm, kf5, and create a completely blank user... nothing more). I'm writing this from the Archlinux itself, everything works except for my NetworkManager widget.
I should also add that it does actually work (somewhat). I can, for instance, enable/disable the wifi from there, which will successfully disconnect from the network, or trigger the automatic connection to any wifi configuration that's been setup for that.
The only thing that I can't do is add/remove configurations.
The widget also knows when I'm connected to a wifi network, but it doesn't know which one.
The setting interface can't display any configured network unless I run it using sudo.
The issue is a post-installation thing, it's something between NetworkManager, dbus and polkit.
EDIT: I found that I have a polkit agent already installed, as it turns out.
So now I have to understand why `loginctl show-session $XDG_SESSION_ID` doesn't print `Active=yes`, despite the fact that the authentication agent is launched.
RE-EDIT: From some OpenSuSE topic (https://forums.opensuse.org/showthread. … esn-t-work), I gathered that there should be a systemd instance running under the current user. This isn't the case for me, unfortunately I have no idea how to configure that.
Last edited by Plaristote (2015-11-20 19:29:40)
Offline
Please edit your first post and choose a title that actually reflects your issue: https://wiki.archlinux.org/index.php/Fo … ow_to_post
Offline
OK, so how are you logging in?
Offline
The title and original post have been modified.
I haven't done much for logging in. It boils down to that:
During the installation:
pacman -S xorg-server xorg-server-utils sddm plasma-metaWhen the machine starts, I login as root, start sddm, and open a plasma session using my user.
Since my last post, I've used this:
loginctl enable-linger myuserAnd now there's always an instance of systemd running with my user. It didn't change anything, but I've read somewhere that it was needed.
Offline
If you log in to console 2.
Start the ssdm service.
Log out
Log in using ssdm as a normal user, is the normal user then correctly registered with loginctl?
Offline
When the machine starts, I login as root, start sddm
Why do you do this?
Just enable the display-manager.service and boot to graphical.target
Jin, Jîyan, Azadî
Offline
@loqs:
I see, so the proper way to launch sddm is to use a systemd thingy then ? I'll see what I can do.
Quick question though, in the tty2, should I log in as root, as myuser, or does it not matter at all ?
EDIT: It worked like a charm. Everything is okay now, thanks a lot !
@Head_on_a_Stick:
Since I never reboot unless something has gone wrong, I'd rather end up directly with a tty, than waiting for sddm to launch. If I just rebooted, then I'm probably looking for a console rather than a GUI.
Plus, it's safer for when X11 is broken. It's my most common problem, it happens every once in a while, and this keeps me from having to keep a failsafe menu entry in grub to solve the issue.
I do agree that it's a security issue, since it means I always have a tty open with a logged in root user, but what loqs told me would probably solve this problem, without making me launch sddm directly after boot.
Last edited by Plaristote (2015-11-21 13:42:27)
Offline