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
1
vote
0answers
52 views

How do processes, jobs and session relate to each other ? [duplicate]

Could you deliver an answer in a way that does not require too much special knowledge in advance, yet also deliver some deeper insight to a lesser advanced Linux User ?
7
votes
2answers
7k views

vim: how to trace back all changes done to file during the day

Does anybody know how to setup vim (the text editor) in such a way to make it possible to trace back all the changes done to a file within a day? I need it for the cases when I have accidentially ...
0
votes
1answer
38 views

User session connected

When i connect to ssh directly via terminal on unix machine how can i know how many session has been escalated ? i mean Fisrt i connect as root # and su bryan # and su tony # and su emilie # ...
2
votes
1answer
197 views

Show shell greeter only on initial login

Is there any way to show a greeter (motd kind of thing) only on initial login, and not when you do sudo su? Here's my current .bashrc: #!/bin/bash # # ~/.bashrc # # If not running interactively, ...
1
vote
2answers
508 views

How to view a daemon's output in a session on Raspbian/Debian?

Okay I'm pretty new to Linux and I have setup a Raspberry Pi 2 with Raspbian and it's running a bunch of things for tracking aircraft as well as a receiver (RTL-SDR). It's all working great and I'm ...
1
vote
0answers
71 views

Check if logged in remotely

I don't know how to check in a .bashrc script if I am currently on a Unix computer with the GUI. Then, I should launch the browser. If I am on Putty, I am not supposed to launch the web. Therefore, I ...
1
vote
1answer
1k views

xset not having any effect in my .xsessionrc file

I need to set some trackpoint settings automatically. I don't know the best file in which to place these commands, but I used .xsessionrc. The commands are properly executed (I can verify that by ...
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 ...
3
votes
1answer
176 views

SSH session chain

Suppose I do a SSH session chain within one single unique terminal window (RHEL6) open terminal on localMachine, SSH remote login to server1 from server1, SSH remote login to server2 from server2, ...
2
votes
1answer
1k views

Launch web browser on Gnome startup

I have come to find out that there are many ways to run scripts on user log in In a terminal I can run this command: iceweasel -private bgp.he.net And that'll do exactly what I want But how would I ...
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:~$ ...
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.
0
votes
1answer
1k views

How to login to same session with same user using xrdp and tigervnc-server?

I have Centos 6.4 with Gnome2, I'm accessing it through its xrdp (Version 0.5.0) and Xvnc TigerVNC 1.1.0 services. The clients machine are an Android tablet and a Windows 7 PC, these are using ...
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 ...
0
votes
2answers
2k views

moving a process to fg and bg [duplicate]

Suppose I run a process in the background likw ./script &, I can bring it to foreground by running fg. However, is there a way to move it back to background without stopping it (as in ctrl+z) or ...
2
votes
2answers
329 views

is there a way to keep a session alive even when logging out? [duplicate]

While I am always logging into a CentOS server for simulations it got me thinking: why can't I keep running the simulations even if my session is closed? I know that when a session is ended or a ...
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,...
0
votes
0answers
314 views

Spawn login prompt in an X terminal

I have a system that runs a bash script when it starts (I use /etc/init.d/rc.local to execute it without needing to log in). For reasons I won't go in to here, I need to launch a graphical terminal ...
2
votes
1answer
776 views

How can I investigate what other users are currently logged in?

Since the last few days I get an error message when I try to shut my laptop down: System policy prevents stopping the system when other users are logged in This error message includes a prompt for ...
2
votes
1answer
461 views

Who started xterm in my debian xterm+lightdm kiosk system?

I have stripped my full desktop debian 7 x64 to the bare, leaving just xorg and lightdm for a kiosk application. I have changed the lighdm configuration to auto-login a user. When I boot, this works ...
1
vote
0answers
70 views

Change the HOME of a user during a graphical session

The other day I had the idea to create display manager independent guest session. My basic idea was to change the login shell to a custom program that creates a temporary home on the fly (f.e. /tmp/...
1
vote
0answers
547 views

Firefox 29 default Accept-Language bug

Since I upgraded Firefox to version 29 it is sending the wrong Accept-Language header en-US,en;q=0.5 which should be pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3, it was right on previous version. I managed ...
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
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 ...
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
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 ...
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?
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 ...
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 ...
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 ...
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-...
0
votes
1answer
842 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 ...
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 ...
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 ...
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/...
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 (...
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 "...
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 ...
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 ...
4
votes
1answer
2k views

Remember applications on logout from LXDE

When I start my computer I want that remember my applications opened before close the last session such as Ubuntu, and other distros do normally. Googling, I see that I can run apps when I start ...
5
votes
3answers
2k views

How to set an xmodmap file for the session manager (or at least SLiM) because of a broken physical key

I've got my laptop set up to boot directly into SLiM as the X session manager. However, the "M" key on my laptop is broken. I've gotten around this when logged in by using xmodmap to remap my ...
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 ...
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 ...
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 ...
9
votes
1answer
1k views

Save sessions to file in xmonad

Is it possible to save an xmonad session to a file and reload it on the fly? I don't want to save only the last session but to be able to save different sessions to different files and reload it if I ...