The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
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 ...
2
votes
2answers
8k views

Start terminal on Debian login

I am able to login automatically into Debian. I changed the /etc/gdm3daemon.conf file to do so. What I'm having trouble doing now is getting the terminal window to appear after the login. I need to ...
20
votes
3answers
2k views

Documentation: Architecture of Linux Session

I'm looking for a good overview documentation describing the the stack of daemons and services involved in a modern Linux session. Although having read various documentation about dbus, and systemd, ...
2
votes
1answer
620 views

How do I run this C program after starting X server?

The source for a program that automatically scales my laptop's keyboard brightness to its screen's brightness is given on the Arch wiki page for my laptop. I can compile it and when I run the program ...
1
vote
1answer
121 views

Get current output

This just crossed my mind. Let's say that I'm operating a remote machine via SSH and I executed a make command to, e.g. build a new kernel for my machine. While I'm logged in that session, I can see ...
6
votes
2answers
3k views

What effects does restarting sshd have on existing ssh sessions?

I've made some changes to the sshd_config. As I understand it, now I need to restart the sshd service. What happens to existing ssh sessions for the users? Any pointers to documentation I need to ...
2
votes
1answer
2k views

how can we know which pts in /dev/pts mapping to which ip address?

Can anyone explain , how can we detect which ssh session belong to which ip address using /dev/pts directory ?
2
votes
0answers
884 views

Configuring what commands xfce4-session-logout runs

The suspend command run when selecting ‘suspend’ from xfce4-session-logout does not work on my machine. I need it to run s2ram -f -a 1. Where do I change what is being run to suspend the system?
1
vote
1answer
4k views

Opening session via XDMCP to GDM

I have a RHEL6 server which we connect via XDMCP. If I start xdm (xdm &) it works but the login screen is the old xdm simple login and not gdm. Our RHEL5 servers connect to gdm just fine. The ...
9
votes
4answers
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 ...
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 ...
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 ...
1
vote
2answers
476 views

How to check which client is accessing Unix? [duplicate]

I am accessing a Unix server using SSH client from my Windows machine (M/C name: MyComp). I have logged in as user id: MyID. Is there any way I can determine what are the active session in Unix? e.g ...
1
vote
3answers
136 views

Get the name of the physically (on front of pc) logged in user, reliably!

w, who, id and whoami are excluded, because they only give information about users using a tty. Is there a way to extract the name reliably from KDM?
1
vote
1answer
1k views

how to add shortcut keys to custom.desktop in RHEL6?

i have created custom.desktop in the /usr/share/xsession directory for launching single application. i want to add one or two desktop shortcuts along with the single application.
3
votes
0answers
409 views

Best way to view scripted session logs

I have aliases set up for SSH and minicom to call simple wrapper scripts which just ensure that I get a log of the session. The logs are stored in a specified directory, and named with a tag and a ...
0
votes
1answer
841 views

How to start tmux so that it won't get killed on exit in last windows? [duplicate]

I want to start tmux so that it won't quit when last pane/window is killed. As for now I do it this way : tmux new -d -s my_session_name I can add a windows name as such: tmux new -d -s ...
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 ...
2
votes
4answers
1k views

Open program as root, close root session but still program is running

When I run my backup script, first I switch to root, mount a truecrypt partition and then run the script. I've noticed that after run truecrypt as root, I can exit the root session and truecrypt ...
3
votes
2answers
693 views

Share background jobs between shells

I use Screen with a lot (more than 10) of local Bash sessions inside. I send some processes (like vi file) to the background and switch between sessions very often and sometimes it's very annoying to ...
7
votes
2answers
3k views

Kill user processess on logout

I have a Ubuntu server that handles remote X sessions from users. However, I don't want to allow users to run any kind of background processes - so here is my question: How do I prevent users from ...
2
votes
0answers
138 views

How to set up remote graphical sessions on CentOs?

Trying to set up a Centos 6 server configuration where we can automate the running of an application that uses Selenium. In this case, ideally, we should be able to: Create a graphical session (...
10
votes
5answers
2k views

How to detect from script when the user's desktop is loaded?

I have a daemon, implemented in bash and running by means of cron and the @reboot option, that shows the desktop in inactivity. The script is as following (timings are short for testing purposes): #!/...
3
votes
1answer
795 views

How to prevent killing the X server with CTRL+C using bash traps?

On my Debian Wheezy system, I used to start my X session with the startx command. My .xinitrc file is: exec /usr/bin/awesome --config /home/cscs/.config/awesome/rc.lua >> ~/.cache/awesome/...
1
vote
0answers
52 views

Create a browser only session (Ubuntu) [duplicate]

I was recently in a Virgin media shop and was interested to see that they had laptops running Ubuntu for customers to browse the web on. The setup itself was interesting and I'm wondering if anyone ...
5
votes
3answers
9k views

xterm warning: Tried to connect to session manager

I am writing a quick script to read user input and put into commands of a couple different programs. I'm using xterm -e to open a terminal for each separate program. The script is working fine, but ...
2
votes
1answer
513 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 ...
3
votes
1answer
333 views

Modifying $HOME variable on a session startup script: Gnome ignores it?

I'm modifying the $HOME variable on a /etc/profile.d script. This seems to be OK for console sessions. There are some caveats on graphical sessions, though: Gnome won't load my desktop configuration,...
1
vote
1answer
693 views

how to setarch for each bash session

I am using bash as my default shell. I don't have root access. But I would like to customize my bash by setarch. So the question is how to do this automatically? Currently, I have to manually run "...
3
votes
2answers
1k views

Upon login, session crashes and returns me to greeter

I'm running Elementary Luna Beta 1 and I'm running into some pretty difficult problems. Whenever I try logging in with the greeter (either pantheon-greeter or even lightdm-gtk-greeter), it immediately ...
5
votes
2answers
5k views

How is ssh-agent being autostarted?

I am currently running Crunchbang Linux with Openbox, and as soon as I log in I have an ssh-agent process running and I can't for the life of me figure why it is being autostarted. Here is the ssh-...
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 ?
4
votes
0answers
144 views

gnu screen: automatic session on split

Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region. Is it possible to make new ...
3
votes
2answers
19k views

Lightdm user session settings on Ubuntu

Lightdm is displayed properly but after entering a password and clicking login, I see the screen blink and lightdm window re-appears and asks to log in as if nothing happened. Configs user@laptop:~$ ...
16
votes
2answers
39k views

Clear Xfce4 session

How to reset Xfce session? When I start Xfce4, it always opens 2 windows of Evince, Emacs and one terminal emulator. I remember I used this configuration once a week ago, but now it starts every time ...
3
votes
1answer
177 views

Identifying local and remote sessions

I would like to write a startup script that would perform it's task if it was run on the local machine, but not if it was called from a remote xrdp session. If Local { do something } If remote { do ...
2
votes
1answer
2k views

export PATH only once per login in zsh

I need to alter my PATH variable so I put export PATH=$PATH:somedir in my $HOME/.profile which is sourced by my $HOME/.zshrc. This works, yet whenever I open a new terminal (urxvt in X11), .zshrc ...
0
votes
1answer
2k views

Debian 6 xsession hangs after login

Debian 6 amd64, Gnome desktop. The logon screen appears regularly. After logon, the desktop background and mousecursor appears. Nothing else happens even after a lengthy wait (hours). Same happens ...
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 ...
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 ...
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 ...
3
votes
1answer
2k views

What are the commands to logout and shutdown with a session manager?

I decided to write my own DE using these instructions here it worked and I can login however I didn't use a panel so I don't have a logout button or a session manager. I've decided to write my own ...
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), ...
7
votes
1answer
5k views

Is it possible to find times of past user sessions?

Using the who command, I can find which users are currently logged into a machine. I would like to determine which users have logged into my machine in the past, and the length of those sessions. Is ...
12
votes
1answer
5k views

How to save a session in Yakuake

I use the Yakuake drop-down terminal and would love if it could save my session of tabs somehow. When I have 6-7 tabs open, all named and everything, it is a giant pita having to re-create that on ...
1
vote
1answer
390 views

How to keep LiveCD settings?

As I am now only able to run my machine from liveCD (Fedora XFCE 16 or Xubuntu 11.10), I would like to know if there is a way to keep the current session's settings (keyboard, wifi etc.) for a later ...
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
105 views

skill on your own session

So I kind of (read: did) run skill -STOP -u <username> on my own session... and I don't have root privileges on the machine. Short of getting the sysadmin to restore things (he's away), is ...
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 ...