Questions tagged [session]
The session tag has no usage guidance.
251
questions
3
votes
1
answer
742
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
44
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
60
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 ...
0
votes
0
answers
32
views
Stop Bluetooth headphones from disconnecting when switching to the console
In Fedora 35 whenever I switch from my X.org session (XFCE) to the console, e.g. tty1, my Bluetooth headphones get automatically disconnected.
How can this "feature" be disabled?
Also, I'm ...
0
votes
0
answers
93
views
Restricting available xsession for a specific user (linux, gnome-session)?
I have a cluster of linux servers accessed using a front-end server which users can remote into. The front-end is running CentOS 8. What I want to do is to restrict some users to only a type of kiosk-...
1
vote
0
answers
220
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
158
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
28
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),...
0
votes
1
answer
91
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
21
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....
1
vote
1
answer
2k
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
773
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
0
answers
50
views
How to emulate an X session in a window in the current X session?
How to emulate an X session in a window in the current X session? For example, I'm in the GNOME X session, and I want to emulate the Ubuntu X session, but I don't want to switch to the Ubuntu X ...
0
votes
1
answer
598
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
207
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 ...
0
votes
0
answers
229
views
What causes "stop job is running for session 2 of user: xxxx"
I'm facing this horrible issue that roughly 50% of the times when I shutdown/reboot my system the message "Stop job is running for session 2 of user: <my_username>" appears. It takes 1 ...
2
votes
1
answer
86
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
126
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
90
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:
### ...
6
votes
1
answer
192
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 ...
1
vote
0
answers
76
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
1k
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
54
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
231
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 ?
...
1
vote
1
answer
741
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
172
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
3k
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
...
1
vote
3
answers
869
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
269
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 ...
2
votes
0
answers
123
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 ...
2
votes
1
answer
315
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?
1
vote
1
answer
96
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
107
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
1k
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
1k
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 ...
4
votes
1
answer
250
views
How do I run a command in a different, already existing, systemd scope or session?
How do I run a command in a different already existing systemd session or scope?
As far as I can tell there is no difference between a session and the session's scope unit, as far as processes being ...
1
vote
2
answers
556
views
What exactly does it mean for a session to be "running in the background?"
I'm currently using an SSH client to connect with a server that my lab is using. I had a question regarding the concept of a "session running in the background." I took a look at a question on this ...
0
votes
1
answer
21
views
Closing/Restarting ssh session kills programs running on that session?
I am using the web console to ssh to an aws instance. I then start an xrdp session BUT the session does not go over ssh.
However, when I restart or stop this ssh session everything I have run within ...
0
votes
1
answer
109
views
Entire graphical session over ssh on Ubuntu 18.04
I sucessully connect on my ubuntu 18.04 (guest), on my host Ubuntu 18.04 (host). And I have used -X param on ssh connection to open graphical applications. But now I want to open an entire session ...
2
votes
1
answer
550
views
Can BusyBox do something similar to tmux/dtach?
I need to establish a persistent disconnection-proof terminal session similar to what the dtach, abduco or tmux tools provide, but with a big constraint: I cannot install any software and the only ...
0
votes
1
answer
203
views
tmux reattach to session automatically after kill and restart
I have a tmux session, in which i have a running node.js server. Because i'd like to watch the colored console outputs as they are printed, i always attach myself to the session. So far, so good. It ...
0
votes
1
answer
355
views
xfce4 + i3 are not properly restoring saved sessions?
I'm using manjaro with xfce4 and i3 as my wm. So far so good, the problem that I'm usually facing is that whenever I logout from my current session and log back in all my apps are closed and the ...
3
votes
0
answers
912
views
Why does other user stay logged in on seat0 and prevent me to hibernate?
Using openSUSE Leap 15.1 with KDE.
I log in as user1 then switch to user2 and log that on off again.
Hibernating as user1 was until recently no problem (if I logged off user2).
But now I get this:
...
2
votes
1
answer
605
views
How to get the previous applications launched automatically after a reboot?
In the past, after a reboot, I used to get the same applications I had running launched automatically, with the same files opened.
With Manjaro/Arch I cannot get the same behaviour. Is there any ...
2
votes
1
answer
111
views
How to enable both Passphrase *and* Password+Yubikey as authentication method for a given user account?
Context
I am lazy. But I am also (a bit) concerned with security.
So on my machine (running Fedora), I want to be able to both:
log into my session using a strong passphrase,
log into my session ...
0
votes
3
answers
71
views
Start command remotely and then close connection
I'm trying to start a trim command on a bunch of servers remotely since these are appliances and we lose support if you change anything like cron jobs locally.
I'm trying to do this:
ssh root@192....
6
votes
3
answers
4k
views
'dos2unix' is unable to convert a `typescript` file to Unix format
I recorded my current session using the script command, and all information was saved in a typescript file, but when I opened it using Vim there were a lot of ^Ms due to carriage returns.
I tried to ...
4
votes
1
answer
1k
views
Processes in a session in an interactive shell vs in a script
If I run this command in a script it doesn't produce output except header from the ps:
# Taken from Advanced Bash Usage on youtube:
echo "$(echo "$(echo "$(echo "$(ps wwf -s $$)")")")"
This is ...
1
vote
0
answers
287
views
XFCE Session & Startup Application terminal command to turn on and off
In XFCE4 I can create my own custom start-up commands at Settings Manager > Session & Startup > Application Startup and turn them on or off by clicking on the command's check-box.
Is there a ...
0
votes
0
answers
49
views
Logout button reboots the machine
On CentOS 7.4 running XFCE, most of the time if I click the Logout button, it will reboot/poweroff the machine.
It does the same thing if I use the Logout button in the xfce panel or in the ...