Questions tagged [session]
The session tag has no usage guidance.
266
questions
0
votes
2
answers
46
views
Anyone know what these all these user sessions (see post) might be?
Any time I login to my laptop, including after freshly booting my laptop there are four user sessions already. Only the "who" command can see all four, the "w" command can only ...
0
votes
1
answer
13
views
How to determine the graphical tty in loginctl
Loginctl lists a lot of sessions, and I want programmatically to know which one is a graphical session (e.g. GNOME desktop).
In the example below, I have a GNome desktop session open, an ssh ...
0
votes
0
answers
12
views
How to invert colors on wayland (sway) ? xcalib -invert -alter equivalent
I have been using xcalib -invert -alter on X sessions to invert screen colors.
What can I use on wayland to achieve same result ?
Thank you for help
0
votes
0
answers
39
views
pam_unix error when attempting to setup rdxp with AD integration
Issue: Installed Realm, SSSD and SSH works with all users, but trying to remote desktop using xrdp fails with the following errors
Aug 30 00:00:00 PC-NAME xrdp-sesman[220997]: pam_unix(xrdp-sesman:...
0
votes
1
answer
26
views
Recovery factory of a blind computer. No user interaction
We have a PC with Lubuntu, without monitor, keyboard and mouse. We can only restart it with a button.
We need that when we insert a USB stick and reboot it will automatically start and restore the ...
3
votes
1
answer
244
views
Surprise: Interactive Bash runs commands in a separate Process Group
I am surprised that at least from Bash 4.4.19, Interactive Bash runs commands in a separate session, see following process list after I run sleep 8888:
PGID PID PPID
3150071 3150071 252603 ...
0
votes
0
answers
26
views
How to open PDF file in .Xsession custom desktop?
I am new to .xsession concept and my aim is to create a custom desktop where I can use only my GUI. So, I have created the below .xsession file and it is working good for me.
#! /bin/bash
gnome-wm &...
1
vote
0
answers
116
views
Start kodi from the terminal of another user
I'm trying to work around an issue I have with hidden fuse files locked by kodi.bin. Please note that I'm already trying to resolve the root cause for the actual issue through other threads but havn't ...
0
votes
0
answers
81
views
Systemd on Kali - session-3.scope hangs, how to debug?
How do you debug this?
When I try to turn off my VM the session 3 of the user kali (session-3.scope) hangs, which contains basically the whole process tree of the GUI.
It waits for 90s and then it ...
3
votes
0
answers
89
views
How to understand the following quote from termios description
I'm using Mac, following quote is from man termios:
When a controlling terminal becomes associated with a session, its foreground process group is set to the process group of the session leader.
To ...
1
vote
0
answers
389
views
KDE Wayland session crashing when waking from standby or the screenlocker - how to find out why?
I'm running Debian 11 with KDE and Wayland. This is a problem of Wayland instead of X11 with the version of KDE of Debian11.
When I wake from standby I usually have that other login screen that also ...
1
vote
1
answer
653
views
gnome: how to lock session on suspend
I'd like to enter my password when I open the lid to access my laptop;
I use GNOME 43 and currently when I close the lid, it goes into suspend state; then when I open the lid, the laptop resumes and ...
0
votes
0
answers
34
views
Force greeter and session to share xserver
I am using LightDM 1.30.0 and I see the xserver-share variable in the lightdm.conf which I have set to true. However, on screen lock, the greeter still occupies VT8 and the session VT7. How can I ...
1
vote
1
answer
268
views
How to limit the concurrent GUI login, but allow multiple SSH login?
On an Ubuntu desktop, contains several accounts, I want to limit the GUI login number.
At anytime, there should be only one account can login by using local GUI. (The first account must logout before ...
1
vote
0
answers
20
views
Session disconnected loading a wep page
On Ubuntu 22.04LTS, with dwm as window manager and lightdm as
session manager i get disconnected from my session when loading this web page https://github.com/philippnormann/xrandr-brightness-script
...
1
vote
0
answers
104
views
How to configure OpenBSD for multiple X Window sessions of different users?
I want to configure an OpenBSD (7.2 amd64) system to support multiple users logged in and each having separate X Window sessions, but being able to easily switch whose session is on the terminal.
...
0
votes
1
answer
95
views
How does Linux Manage the Termination of Sessions?
I understand that maxlogins can be configured to limit the number of concurrent sessions in /etc/security/limits.conf or /etc/security/limits.d/*.conf.
Example:
hard maxlogins 10
Let's say I want to ...
2
votes
2
answers
3k
views
Connection to github.com closed by remote host
Problem is exactly as reported in
HPC ssh "connection closed by remote host"
Connection to host closed by remote host. Exit status -1
But it is not the "ssh_exchange_identification:&...
1
vote
2
answers
240
views
Logout of tty but save session for next login
5.18.9-arch1-1
Dell XPS 15 9510
I am running arch linux on xmonad. I do not have a login manager. On boot, I simply login via the tty and run startx to start my x session. This behavior is exactly ...
3
votes
1
answer
807
views
Can you rescue a shell from an accidental "yes" command?
Scenario: I'm running a bunch of commands, some of which prompt for "yes/no" answers. I accidentally type yes as a command instead of as a response to a prompt. OOPS. Now my shell looks ...
2
votes
1
answer
327
views
How to log out all inactive terminal sessions in GNU/Linux?
Since I switched to Wayland on Debian11/KDE starting the computer from standby in around 90% of cases shows a black screen and one needs to use ctrl+alt+f{id} and run loginctl unlock-session {id2} to ...
3
votes
1
answer
529
views
xsession for own built KDE
What I'm trying to do : I'm trying to build my own full KDE from source and run it as my regular user, without changing the one from the system.
The problem : I can't seem to run the software I built ...
2
votes
0
answers
1k
views
Close tmux Session After Script Ends
The remote Python script is executed by a local script using ssh so this is not an interactive session.
The tmux session is only useful while the script runs and want it to end after the script is ...
0
votes
0
answers
484
views
Why are sessions breaking when starting from standby on Debian with Wayland? It shows a black screen with "the screen locker is broken"
Since I switched to Wayland on Debian11/KDE starting the computer from standby often shows a black screen with the notice that one should use ctrl+alt+f2 and loginctl unlock-session {id} (this text ...
0
votes
0
answers
105
views
RHEL8 - cannot set the default session for root; config file resets after reboot
On my RHEL8.5 server I am trying to set the default session for root from gnome-classic to gnome.
Following Redhat's documentation (this guide is for RHEL7 but I haven't found an equivalent for RHEL8),...
1
vote
1
answer
1k
views
How to kill chrome under Linux so that it'll resume next time
How to kill chrome under Linux so that it'll resume/restore the sessions when it is started next time?
It's a trivial thing to do under Windows, but under Linux, no matter how I tried to kill chrome, ...
2
votes
0
answers
43
views
What is responsible for starting the session bus in gdm3?
I'm trying to get gdm3 working on Alpine Linux, but it fails on finding the session bus. Specifically, this assertion fails: https://gitlab.gnome.org/GNOME/mutter/-/blob/40.4/src/wayland/meta-wayland....
5
votes
1
answer
11k
views
XFCE4 - Session and Startup: where are autostart items saved?
In XFCE4, there is a list of items to be started when an XFCE4-session is started
(XFCE4 Settings xfce4-settings-manager → Tab "Application Autostart"):
I'm wondering where this list is ...
1
vote
0
answers
2k
views
How to use curl to access a webpage behind a login form?
There is this webpage I'm trying to scrape but it is behind a login form that needs user/password.
I used Firefox debug mode to find HTTP requests. Upon entering the credentials, there is a POST ...
0
votes
1
answer
2k
views
Failed to open a session for the virtual machine Kali-Linux-2021.1-vbox-amd64. Callee RC: RPC_E_SERVERFAULT (0x80010105)
I have installed Kali Linux on VirtualBox but I had not been open for the last 1 month. Now I am trying to start Kali on VB but it gives me an error.
Error:
After closing this dialog box, it is ...
0
votes
1
answer
1k
views
Cron job terminates session immediately
I have this entry in cronjob:
$ cronjob -l
* * * * * $(cd /home/fedor/Documents/mecab_natto && bash run_mecab.sh >> /home/fedor/Documents/mecab_natto/log.txt)
when I run the script ...
3
votes
1
answer
378
views
Restore open windows after restart/shutdown on Scientific Linux?
Is there a way in Scientific Linux to restore all open applications upon the last restart/shut down?
1
vote
0
answers
312
views
Linux xfce4 with login user command
I have a Linux Ubuntu 20.04 computer running Xubuntu. I am in the process of writing a c ++ program that consists of a completely new login screen. This login screen also works and I can check whether ...
4
votes
2
answers
408
views
How to launch a command at the startup of only the very first shell of an X session?
I am running Gnome on Pop-OS! 20.04.
I am using terminator and zsh shell. I want to launch fortune only the first time I use zsh shell in a X session.
I have tried those kind of things in .zshrc:
### ...
8
votes
2
answers
670
views
Does the "reboot" command log me out of the shell or does it forcefully terminate it?
Under Linux, if I issue a reboot command from the shell, what is the sequence of events that lead to the shell (e.g. bash) disconnecting?
I think it's one of the following, but not sure which:
It log ...
3
votes
0
answers
221
views
What does it mean "new session has no controlling terminal"?
This reference says about creating a new session: The calling process is the leader of the new session, the process group leader of the new process group, and has no controlling terminal
So I expected ...
0
votes
2
answers
4k
views
How to delete default session (Xfce4) from Debian?
I want to delete default session (Xfce4) from Debian.
I don't want to damage Debian.
0
votes
0
answers
93
views
Why does the history command show few commands and the .bash_history file is short even if HISTFILESIZE and HISTSIZE are ridiculously high?
I've read these two questions and the accepted answers on StackOverflow:
Unlimited Bash History
bash HISTSIZE vs. HISTFILESIZE?
However, I still don't understand why in any bash session I can see ...
0
votes
1
answer
526
views
Arch linux: restore session with running programs after running out of battery
I have Lenovo notebook with Arch linux. When I run out of battery and my notebook dies, after starting it. It freshly boots new session. Is there a way to restore previous session and continue in it ?
...
2
votes
2
answers
2k
views
dwm - session polkit
I am really struggling to get the session polkit to work.
I am not really familiar with how it works, but I have been using gnome before switching to dwm and in gnome it worked perfectly, so I wanted ...
0
votes
1
answer
318
views
Using Remote Desktop on my private VM, I enter another existing session than the previous one, depending on... my screen resolution?
At work, we are developing programs, each developer having his own private VM under CentOS.
I disconnect my session at the end of the day, then the next morning I start Remote Desktop under Windows ...
2
votes
1
answer
4k
views
Choose lightdm login screen location in multi monitor setup
I am running Fedora XFCE with an NVIDIA RTX 2080 Ti that is connected via 3 cables to 2 monitors.
Display port is connected twice to the same monitor (for PBP)
HDMI is connected to another monitor
...
3
votes
3
answers
2k
views
If I run tmux and then `kill` the tmux process, I see two bash processes. How does this second bash relate to the first and how do I kill it?
As stated in the question, I'm trying to better understand sessions, processes, process groups, etc. A few questions that I came across while playing around with tmux.
If I open tmux and run ps, I ...
0
votes
1
answer
411
views
Ubuntu 14.04 getting log in auth.log
I am getting error in /var/log/auth.log
CRON: pam_unix(cron:session): session opened for user root by (uid=0)
CRON: pam_unix(cron:session): session closed for user root
Even I logged in with xyz user ...
3
votes
0
answers
215
views
Full featured session manager for (any) tiling window manager
looking for a full featured session manager that would store running programs with their running context and their window position.
Short version
In short, I am looking for a functionality that would ...
3
votes
1
answer
770
views
Checking if tmux session is still busy from outside the session itself
How can I check if a tmux session is still busy (is running some process) from outside the session itself?
2
votes
1
answer
238
views
How can I check from bash whether my desktop is locked?
For use in shell scripts and ssh. I need something to tell me whether my desktop screen/session is locked.
I'm using KDE, Xorg and systemd.
1
vote
0
answers
323
views
Xubuntu: Cannot unlock/wakeup when lid is closed
My laptop is docked with the lid closed. If I lock the session, it is impossible to wake up the system with mouse or keyboard. I must open the lid to wake it up.
How to unlock without opening the lid ?...
1
vote
2
answers
3k
views
Tmux: How can I create "session > window > pane" and run a command in the pane?
I'd like to do the next from a bash script:
Create a session named "my_session".
Create a window named "my_window" inside of that session.
Create two pans named "my_pan1"...
3
votes
1
answer
3k
views
Running systemd service synchronously / in foreground
I would like to replace my Xsession with my custom program (kiosk-like setup), previously I was just setting STARTUP variable in my .xsessionrc file like:
STARTUP='/path/to/my/program'
Now I want to ...