Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
40 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
0answers
60 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
0answers
14 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
1answer
39 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, ...
0
votes
0answers
16 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....
0
votes
1answer
320 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
0answers
358 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
0answers
28 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
1answer
218 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
1answer
62 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
0answers
84 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 ...
1
vote
1answer
41 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
0answers
44 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
2answers
68 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
1answer
118 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 ...
0
votes
0answers
54 views

How to list all previous sessions of ssh forwarding "ssh -N"

How to list all ssh forwarding sessions if there was used this parameters: ssh user@ipaddr -N -f -R $port1:localhost:$port2 When I login to this server as regular session and write command last, it ...
1
vote
0answers
50 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
2answers
600 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
0answers
46 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
1answer
142 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
1answer
526 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
1answer
121 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
1answer
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
3answers
605 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
1answer
224 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
0answers
97 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 ...
1
vote
1answer
175 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
1answer
70 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
0answers
70 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
2answers
688 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
1answer
703 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
0answers
174 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
2answers
394 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
1answer
19 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
1answer
63 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
1answer
467 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
1answer
140 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
1answer
298 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 ...
2
votes
0answers
729 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
1answer
552 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
1answer
79 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
3answers
61 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
3answers
3k 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
1answer
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
0answers
248 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
0answers
42 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 ...
0
votes
1answer
32 views

Unable to login for graphical session on Mint + Not available space on filesystem

I've been trying to start a graphical session with all users on my system but I've been always reverted to the login screen. After initiating a terminal with (Ctrl+Alt+F1) from there, I've been able ...
0
votes
1answer
304 views

logname / who -u / how to get the pid of the current session

The command "logname" gives me the name of the login user irrespective of subsequent "su"-calls. E.g. in current mint, the command "logname" is broken und gives no logname. I want to get its ...
13
votes
2answers
2k views

Exit shell with shortcut (not typing exit) that closes session properly

I use a ProxyJump command for a number of ssh sessions I use daily, and also switch users a lot on these sessions and having to type exit 3 or 4 times in a row isn't too fun. I am aware of newline + ~...
0
votes
3answers
152 views

Seeing user two times

Consider I have created a user 'test' during Installation which I use to login to my system. My root user is 'root'. I further open two terminal sessions for each of the users respectively. Now the ...

1
2 3 4 5