Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
39
votes
5answers
22k views

Can I launch a graphical program on another user's desktop as root?

Following are other questions which I think I need to know: From a non X Session? (meaning root isn't logged into X) If multiple people were logged in on X, could I auto-detect who was on which ...
78
votes
3answers
35k views

What are “session leaders” in `ps`?

What are session leaders, as in ps -d which selects all processes except session leaders?
17
votes
2answers
5k views

Concept of controlling terminal in Unix

Can some one please explain in an easy to understand way the concept of controlling terminal in unix and unix like systems ? Is it related to a session ? If yes, then how ?
12
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 ...
4
votes
1answer
318 views

What is the purpose of abstractions, session, session leader and process groups?

I understand from Informit article that sessions and process groups are used to terminate descendant processes on exit and send signals to related processes with job control. I believe this ...
27
votes
2answers
12k views

tmux session lost in unknown pts, cause and possible solution?

I was trying to re-attach to a long-running tmux session to check up on a python web-application. However tmux attach claims that there is no running session, and ps shows a tmux process (first line), ...
36
votes
7answers
56k 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 ...
20
votes
1answer
5k views

Reuse D-Bus sessions across login sessions

I access a machine through multiple login sessions. The sessions' lifetimes may or may not overlap. In my case, these login sessions are currently always over SSH, but I would prefer to handle local ...
6
votes
3answers
27k views

How does the path environment variable work in Linux?

I'm confused how the PATH environment variable works under Linux. I'm a Linux Mint 15 user. First, I read about editing the /home/.bashrc file and doing a PATH=$PATH:/directory, but I also knew ...
16
votes
4answers
29k views

How can I run a script that starts before my login screen?

I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should ...
4
votes
1answer
2k views

Universal way to logout from terminal via dbus

I'm new with dbus, and saw different ways to log out from terminal depending on desktop env. But I'm curious is there any way to log out from any desktop env using dbus messages? On GNOME: dbus-send ...
4
votes
3answers
7k views

How to find the machine from which a user logged into current machine using ssh?

In a multi server architecture, is it possible to find out from which machine a user logged into current machine using ssh? For example, user1 logged into host1. From there, the user logged into ...
0
votes
2answers
443 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
1answer
126 views

Must every process group belong to one process session?

Must every process group belong to one process session? In other words, is process group a concept which exists only within a process session? Is there a process group which doesn't belong to any ...
64
votes
4answers
264k views

Keeping a process running after PuTTY or terminal has been closed [duplicate]

I'm running a Node.js server off of a Raspbian (Debian) machine, and I'd like to start and stop the server remotely. This for me means using PuTTY to access the shell, except when I close out of the ...
1
vote
1answer
198 views

Distinguish between Desktop session and desktop environment

I heard/observed following words and want to distinguish information. Desktop Environment Desktop Session GDM Session Shell Window Manager So I can understand exact difference and working relation ...
7
votes
2answers
5k views

My .xsession and .xinitrc files are not executing

I have installed xmobar, xmonad on ubuntu 11.04. #!/bin/bash trayer --edge top --align right --SetDockType true --SetPartialStrut true \ --expand true --width 10 --transparent true --tint ...
6
votes
2answers
8k views

Linux Mint 18.3 Cinnamon cannot start a session

As of today, I cannot login into my account. I start the computer, get to the login screen, login and then this following error appears: Your session only lasted less than 10 seconds, if you... And ...
3
votes
2answers
205 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
514 views

What is the proper use of the term 'session'?

[I hesitated whether to post this in meta or here. But although this involves terminology, it is of general use, not only on this website.] It looks like at least in Xfce 4.10 (with the session ...
2
votes
4answers
4k views

Session don't initializing

I'd tried to install .Net Core on my linux mint and when I restarted my PC, I couldn't log in, my session don't initialize. It shows this message (original language): Sua sessão durou menos de 10 ...
1
vote
1answer
1k views

Why is my second tmux session not shown in ps aux or htop but in tmux list-sessions it is?

I start two new tmux sessions, the session name is variably build from a timestamp. (the commands create a new, detached tmux session, which first changes the directory, lists the content and then ...
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 + ~...
5
votes
1answer
470 views

Remove alias from current session

How to remove a alias from current session without closing that session?
4
votes
2answers
3k views

run xmodmap commands after login

I created a file ~/.Xmodmap with my mapping commands. I thought that it will be automatically launched after login (and restart) but it's not. So I have to always run after login the command $ ...
3
votes
0answers
77 views

Use command line to download file which is accessible only in a given session [duplicate]

Possible Duplicate: Does anybody here have experience in automating some tasks in web applications using curl? Sorry for the lengthy title. I am trying use command line to download a file,which ...
2
votes
1answer
415 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 ...
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
3k views

Xfce initialization script

In an attempt to disable the bell in Xfce, I have created a ~/.config/xfce4/xinitrc with this content: #!/bin/sh # Disable bell xset b off But now, the system bounces back to the login screen at ...
1
vote
1answer
102 views

Opening terminal tabs through SSH

I am connecting to a linux machine exclusively over SSH. Recently I noticed that no matter what process is running in terminal, every time I close and reconnect through SSH the process may or may not ...
0
votes
1answer
97 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 ...