Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

lxsession-logout vs lxde-logout

I'm new with lxde, I installed it on ubuntu 14.04 using sudo apt-get install lxde. But the problem I have is that I want to logout without a prompt. I've read some articles about this and they ...
1
vote
2answers
985 views

tmux and screen sessions disappearing when connection is lost abruptly

I have used both screen and tmux to be able to resume my work in the server. I have encountered this problem with both tmux and screen where the active sessions disappear when I lose the internet ...
5
votes
2answers
748 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
174 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
119 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
49 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
29 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
31 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 ...
4
votes
1answer
4k views

How do I get Debian to use systemd-logind for user session control?

I have one Debian Sid system that uses logind for its user sessions. It is odd that that system is not even running systemd. The logind sessions are independent of X and are in effect for the tty ...
3
votes
2answers
484 views

Make X11 source my ~/.Xkbmap

I want to remap capslock to ctrl, I found the answer online: setxkbmap -option ctrl:nocaps I tried in shell, it works. Now I want to persist it, I found some online post says that I need to create ~/...
5
votes
2answers
13k views

How to get the list of all active X sessions and owners of them

I'm implementing USB plug/unplug notification (here's related question), and I need to execute something like notify-send "device plugged" "My Device Title". The problem is that to make this command ...
0
votes
1answer
18 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 ...
2
votes
3answers
463 views

Open running KVM in separate session

I have a KVM session running on my host. If I login as someone else on my host machine, is it possible to access that running KVM session (not through the network)? I am not using the virtual ...
0
votes
1answer
30 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
1answer
1k views

tmux reEnter to a session and save a session

Using ubuntu (terminal) I could open tmux session and open my R program then run the script, the script prints text on the scree. my question(s) are: how to re enter the session and re follow what is ...
5
votes
1answer
1k views

Save xfce4 session from the command-line

I usually save the session with the graphical app xfce4-session-settings (Session -> Save Session). Can this be also done from the command-line? How?
0
votes
0answers
31 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
60 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 ...
35
votes
7answers
54k views

How to recover a shell after a disconnection

Am doing some work on a remote CentOS 5.6 machine and my network keeps dropping. Is there a way that I can recover my hung sessions after I reconnect? EDIT: am doing some updating and installing with ...
0
votes
0answers
9 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 ...
0
votes
1answer
189 views

.xsession exec not recognise $HOME or arguments?

The basic scenario is that I'm sharing my dot files across multiple machines and want to have my session definitons synced as well. Since I use different laptops and monitors with significantly ...
1
vote
0answers
87 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
352 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
47 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)...
2
votes
3answers
1k views

Load X resources when KDE starts on Linux Mint

I previously was using MATE and XTerm always starts with a black background. I'm not sure why, but when I start XTerm in KDE, I get a white background. This is terrible for me so I want to change this ...
0
votes
0answers
48 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 ...
0
votes
1answer
104 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
76 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
134 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
399 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
47 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
50 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 ...
11
votes
1answer
1k 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 ...
2
votes
1answer
1k views

Get current memory usage of a tmux session

I need a way to the used memory of a current tmux session. I am not sure if that is even possible. I am using tmux to start multiple minecraft servers I'd like to know each servers memory usage.
2
votes
1answer
396 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
86 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
2answers
192 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 ...
1
vote
1answer
338 views

SSH session and ClientAlive problem

I have a question about ssh configuration. In a test machine I've set: # TCPKeepAlive yes Protocol 2 ClientAliveInterval 60 ClientAliveCountMax 0 And if I wait a minute, session does not close. I'...
0
votes
1answer
3k views

reconnect to disconnected putty session or connect to idle session in linux

I need to reconnecting the putty session, I will tell you one example, I'm installing the python manually in my centos os machine, while I run command make, phyton is compiling to makefile suddenly I ...
-1
votes
1answer
210 views

tmux script works only inside /dev/shm

I have the following tmux script which is executed successfully only when I navigate to /dev/shm (that is, after I do cd /dev/shm): ( cat > /dev/shm/script.sh && chmod +x /dev/shm/script....
3
votes
0answers
271 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
135 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
154 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 ...
1
vote
0answers
492 views

Why is there a difference between the last and lastlog command records, and why is there no recent login record for user in lastlog records?

While testing the last command on my system I got the following result and could not make sense of the lines with down and crash at their ends, as all seem to be connected to a tty7 login: george ...
3
votes
1answer
581 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
51 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
2answers
390 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 ...
0
votes
1answer
332 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
247 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 ...