We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
13 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
18 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) -...
2
votes
1answer
2k views

Is the number of tty the maximum number of simultaneous sessions?

When running who I can see two "sessions" (it is the correct wording ?) from two remote servers: pts/0 pts/1 I went to /dev/pts and I can see 0 1 Does that mean that I can have two simultaneous ...
9
votes
5answers
15k views

.ssh/config to start remote session in zsh

I would like to start a remote session without typing the following command ssh user@remoteserverip -t zsh I know that I can change the host names in the ~/.ssh/config to simply use something like ...
0
votes
3answers
42 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....
2
votes
1answer
7k views

Automatically open a remote desktop connection upon login

I have installed Linux Mint to one of my desktop PCs. I have downloaded and installed Freerdp-x11 for me to connect into my Windows Terminal Server. I want the terminal command line to connect ...
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
1k 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
805 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
251 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
215 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
77 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
32 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
527 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
21 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
471 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
35 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
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
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 ...
36
votes
7answers
57k 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
214 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
114 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
473 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
51 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
50 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
124 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
80 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
177 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
538 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
51 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
52 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 ...
12
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 ...
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
434 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
91 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:...
4
votes
2answers
214 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
367 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
4k 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
219 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
292 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
160 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
179 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 ...