A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 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
19 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 ...
1
vote
0answers
15 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: ...
1
vote
0answers
26 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 ...
1
vote
0answers
22 views

Terminate the session when exiting recording with “script” command [duplicate]

I use session recording with the script command for every new session. The script is invoked in .bashrc like this: test "$(ps -ocommand= -p $PPID | awk '{print $1}')" == 'script' || (script -q -f $...
0
votes
0answers
8 views

how to figure out the lag between logging into a mate-session and guake coming on?

There is considerable time delay between when I enter into a mate-session and guake starts. I am not sure whom to blame, lightdm (desktop-manager), mate-desktop or something else ? While there is ...
0
votes
0answers
12 views

Linux: find out user GUI session time (excluding time with screen lock)

I would like to compute the time users spent connected to their session, which I define as both logged in and with their screen not locked. I found suggestions to use the last command, or the ac ...
1
vote
0answers
14 views

Allow Passphrase only **and** Password+Yubikey for single user login

Context I am lazy. But I am also (a bit) concerned with security. So on my machine (running Fedora 31), I want to be able to both: log into my session usign a strong passphrase, log into my session ...
0
votes
0answers
19 views

Disconnect desktop apps output from going to journald/syslog

At our university/department we run a bunch of Debian 10 labs. When people start applications from their desktop environment, some output goes to systemd journal + syslog (+ remote syslog collection) -...
0
votes
3answers
43 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....
5
votes
2answers
902 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
335 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 ...
0
votes
0answers
294 views

How to prevent $TMOUT from timing out interactive shell session when it's set as readonly and exec or env trick won't work

Linux Redhat 7 platform, with bash-4.1.2-48.el6.x86_64. The interactive shell timeout value on my servers is ridiculous. $ echo $TMOUT 900 So I've read the great post below, but unfortunately it ...
1
vote
0answers
138 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
31 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
0answers
37 views

Problem starting session Debian 9

I'm working with Debian 9. My computer has two partitions, so I have Debian alongside W10. I needed to install a Windows program (STAMP), so I decided to install Wine instead to do it in the Windows ...
0
votes
1answer
25 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
50 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 ...
0
votes
0answers
40 views

New session freeze after internet disconnected during a session

When I am forgetting a X2go session opened and the internet is disconnecting then X2go closes automatically and when opening X2go session it is stuck and not working. I tried to reboot X2go server ...
12
votes
2answers
1k 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
64 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 ...
0
votes
0answers
11 views

How to open just one app and block any other thing on session opened via xrdp

I'm using linux mint 19. I'm trying to config a computer to some people will be able to connect to it and use only one app. I mean, I'd like that when any people that connects to this computer via ...
2
votes
0answers
141 views

Manually restore saved session files on KDE using qdbus command

At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the ...
0
votes
1answer
625 views

How to attach to a tmux session after deleting it's session file? [duplicate]

tmux keeps track of active sessions in a file, on my system this is in /tmp/tmux-1000/default. Recently I manually cleared everything in the /tmp directory, removing this session file. Normally, you ...
0
votes
0answers
58 views

How to login and Download the file in the same session in R language?

I am trying to do login and download the file with using a package httr and jsonlite in R language. I write the following code : library(data.table) library(jsonlite) library(httr) library(properties)...
0
votes
1answer
144 views

How can start multiple tmux autoscript?

This is in my TmuxHome.sh Script with I can start One Only Tmux Session: # tmux Start Script Need To Work!! if which tmux >/dev/null 2>&1; then #if not inside a tmux session, and ...
1
vote
1answer
81 views

Can a (non-)controlling process detach its controlling terminal by closing its file descriptor?

In a process session with a controlling terminal, if the controlling process closes the file descriptor of the controlling terminal, does the process session become detached from the controlling ...
1
vote
1answer
244 views

Exporting $PULSE_SERVER at start up

In order to run flatpak applications (like Discord or Spotify) I currently have to export the $PUSLE_SERVER in my ~/.zshrc or ~/.bashrc like so: export PULSE_SERVER=unix:/tmp/pulse-PKdhtXMmr18n/...
0
votes
1answer
692 views

Can attaching to tmux sessions be password protected, similar to gnu screen?

I've been using gnu screen for many years, and I've been looking into switching to tmux. I can't figure out how to make tmux require a password when attaching to a session. In gnu screen, I use ...
0
votes
0answers
52 views

What is the “login session” of a process? [duplicate]

In the manpage of ps lsession SESSION displays login session identifier of a process. What does the "login session" of a process mean? ps has other fields cgname and cgroup for the cgroup ...
0
votes
1answer
54 views

Why do some programs' processes exist after forking a child, without the child starting a new process session?

Here are some of the steps for creating a daemon process from a given process, the given process exists soon after forking a child, the child calls start a new session and also a new group, by ...
13
votes
1answer
2k views

Prevent Logoff from Killing tmux Session

I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did ...
0
votes
2answers
115 views

Get time of the last session in seconds

I'm getting the time of the last session of an specific user using the last command like below: last -aiF -n 1 fakeuser The output of this command is something like: fakeuser pts/0 Tue Nov 27 11:...
3
votes
0answers
338 views

Fedora 28: Generate kerberos ticket on login

I'm trying to generate kerberos ticket when I login on my computer(Fedora 28). I want to achieve it using PAM. my /etc/pam.d/system-auth looks like this: auth required ...
2
votes
3answers
189 views

Are there any practical reasons for setting a maxlogins limit for users in limits.conf? What are the benefits?

Why should I set a maxlogins limit in /etc/security/limits.conf? In other words, are there any performance-related and security-related benefits to be gained? I have only three users on my machine, ...
1
vote
1answer
204 views

linux/xfce4: How to get rid of “choose session name”?

I've been running xcfe4 for a long time with no problems under linux. Today I was making some changes to grub and doing some reboots to test it. Now, every time I enter my login password via the ...
3
votes
1answer
920 views

Is there a way to change the process group of a running process?

Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure.
1
vote
1answer
60 views

Is it possible to log into all 6 terminal sessions at once?

If I press Ctrl+Alt+F1 to switch to the 1st terminal session, I have to give my username and password to log in. If I press Ctrl+Alt+F2, I have to repeat this process. Same for F3, F4, F5, and F6. Is ...
0
votes
1answer
413 views

How can I launch a new session of tmux in iTerm2 on a separate window?

I would like to start a tmux session on a separate window in iTerm2. Now I'm writing my own configuration script to launch the session. tmux new-session -s dev -n main -d tmux send-keys -t dev "cd $...
3
votes
1answer
319 views

Execute script prior to cinnamon logout (unsing MDM or other display manager)

I'm using cinnamon as desktop environment on my Linux Mint system. I want to automate a backup using unison: Unison shall be executed prior to each logout off my session. So I was looking for a ...
0
votes
0answers
53 views

Viewing history of echo'd text on terminal

I detached gits head using git checkout 4037ec1702bd2fa6a5a15f7413f4ccccb59d356e . and lost all my work. I still have the terminal open. Not that long ago, I did a git diff, so my changes were all ...
1
vote
1answer
991 views

Is it possible to automate clicks with xdotool to control a different GUI session from the one being currently used?

The xdotool command allows us to create scripts controlling the graphical user interface of the system very easily. I can e.g. open my Chrome browser in the following desktop by executing xdotool ...
18
votes
5answers
2k views

Screen, or similar, for automatically resuming a flaky ssh connection

I often have to connect to a server over ssh in an unreliable wifi environment. On the server, I run screen, so if I get disconnected, I can reconnect and resume the screen session, and pick up where ...
0
votes
1answer
125 views

When a session leader acquires a controlling terminal, how would the other existing processes in the session also acquire the controlling terminal?

Suppose there is a session with multiple processes in it and without a controlling terminal. When the session leader creates a connection to a controlling terminal, how would the other processes ...
1
vote
2answers
926 views

How to write a systemd user service that requires an active session

I've created a systemd user service to run a duplicity backup job once a day at 17:00 broadly based on an article in Fedora Magazine. I'm running Fedora 28 with the Gnome desktop. My systemd timer ...
4
votes
2answers
232 views

Is a session leader the only process in its group?

The following diagram from APUE leads me to wonder: in a process session, does the process group of the session leader contain only the session leader and no other process? Any process created by ...
2
votes
1answer
477 views

Switching user with gdmflexiserver from i3

Apparently, when using gdm3 (the default of Ubuntu 18.04) we should be able to run gdmflexiserver to get a new greeter and log in with resp. switch to another user. When running the command in my i3 ...
0
votes
2answers
545 views

w command doesn't show all pseudo-terminal sessions

If I open terminal and execute w command then it will show: user tty7 :0 12:04 39:56 36.87s 0.06s /sbin/upstart - Now if open terminator or xterm and execute w command then ...
1
vote
0answers
83 views

Unable to find tmux session but it shows up as a file?

Yesterday I had started a tmux session, but when I logged into the computer today, I cannot find it, i.e. tmux ls cannot find the session. But when I run top I can see that the following tmux ...
0
votes
1answer
757 views

Save/restore desktop session [closed]

My Linux session got saved somehow and every time I restart, it's restoring the same saved session (a terminal and a particular program). I am not able to find the setting or the saved file to ...