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
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 ...
0
votes
1answer
17 views

Can detached screens by “imported” inti active session?

I have a few screen sessions that I started from the native shell. Now, in order to switch from one to another, I always detach the current and re-attach the one I want to switch to which works fine ...
1
vote
2answers
3k views

gnome-classic as default session for all users?

How to set gnome-classic as default session for all users in gdm3 (system-wide setting)? I'm using Debian Jessie with GNOME 3.12. I've tried creating fake gnome.session in /etc/xdg/gnome-session/...
1
vote
3answers
117 views

Can a sudo session be reused after logging out?

The sudo command remembers for a while that I entered my password, so that I don't need to re-enter it every time. I know that I can delete this "session" using sudo -k. Now, if I was logged in via ...
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 ...
2
votes
1answer
298 views

Start Tmux with specific applications on each pane?

I want to start tmux on startup with four panes (two horizontal, two vertical) and cmus, ranger in two, and vim and urxvt terminal in the other two. I tried to configure ~/.tmux.conf myself but ...
1
vote
0answers
557 views

Check for user activity in a Bash script

I'm writing a script (to be run on a multipurpose desktop machine) in which I want to check that there is no user activity. The non-activity would be defined as: Any user using GUI has not been ...
2
votes
1answer
412 views

Dbus: Logout other user

I'm new with dbus. I know how to logout current user from terminal using dbus messages dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager ...
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 ...
4
votes
3answers
571 views

SSH-like session that survives physical network disconnection

I want my SSH login session to remain connected after the computer goes to sleep and wakes up. From what I understand TCP can survive intermittent network problems, so can I change settings so that it ...
0
votes
1answer
569 views

Enable history in gnome terminal in apricity os

I can't make gnome terminal or any other terminal remember the commands history. Every time I close the terminal and reopen it I can't access previous commands (usually done with the up arrow key).
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 ...
2
votes
1answer
632 views

override session for a user (without user list)

I have a machine that will be shared among few users and me. The other users come from Windows environment; I think Xfce is great for them but for myself, I always want to use i3. So the behavior I'...
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 ...
3
votes
2answers
2k views

Xscreensaver on startup, i3wm

How do I set up xscreensaver to run in the background on login? Will a simple xscreensaver & do the trick?
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 ...
4
votes
1answer
7k views

How to set an expired authentication in Apache?

Using a simple virtual host, I want to set a timeout of X minutes (same of set an expired authentication) to force the user to re-insert its credentials. [...] <Directory /home/user1/> ...
7
votes
1answer
12k views

what are gnome-session and gnome-settings-daemon?

Can someone explain to me exactly what gnome-session and gnome-settings-daemon do and how they might be useful to me, as someone who doesn't use GNOME or any of its relatives as a DM (i use i3)? I've ...
1
vote
0answers
71 views

Dbus: Terminate not working on other user

I'm new with dbus(Using Ubuntu 14.04, Unity). So I'm logged with user A, create process as user B and that process creates session for user B, now I want to use dbus messages to shut down session from ...
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 ...
1
vote
0answers
621 views

Login loop when trying Awesome with Gnome

I am trying to use the Awesome window manager with Gnome 3.16 in Ubuntu 16.04. Doing this is documented in several places: https://scaron.info/blog/awesome-with-gnome-on-ubuntu-14.04.html, https://...
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, ...
3
votes
2answers
2k views

How can I auto-close dropped SSH connections?

When I work on my server remotely, sometimes my SSH connections get dropped due to network issues. When I re-connect to my server, the dropped sessions remain open. I can see them when I run w. I'm ...
2
votes
0answers
94 views

Is there a terminal emulator which remembers the output from its last run?

While modern desktop environments usually start all the applications which were open in the previous session and some terminal emulators may even open as many tabs as before, I've never seen a ...
0
votes
1answer
1k views

Script to gracefully kill X server and drop to tty?

I use the terminal to do the majority of my day-to-day computing, so I have the default runlevel set to 3 in /etc/inittab and I only start the X server when I need to. I currently have the following ...
0
votes
3answers
1k views

How to find an ssh session a process was started from

How can I find a process which was started from some ssh session. For instance, I gave same ssh cridentials (aka. userzxc/passwordzxc) for my several friends which IPs i already know. My goal is to ...
4
votes
0answers
4k views

sshd error: no more sessions

I see many lines in /var/log/auth.log about sshd sessions, like below Mar 25 11:04:47 hosting-prd sshd[7882]: error: no more sessions Mar 25 11:04:47 hosting-prd sshd[7882]: error: no more sessions ...
2
votes
3answers
929 views

Is .zshrc read on X session open? / How to execute a script on X session open?

I have a custom command I need to execute on X session open (mouse config). I made a script out of it, now I'd like to make sure it gets executed on session open. There are distribution-dependent ...
2
votes
1answer
113 views

How do permissions work with the GUI

There are several things that you must have superuser privileges to do from a terminal that can be done from a normal user account via the gui. e.g. Poweroff/reboot mount/unmount media I understand ...
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 ...
2
votes
0answers
478 views

Is it possible to persist linux session between reboots?

I use Linux Mint 17.3 x64. Is it possible to make linux remember state of all opened applications and terminals so after shutdown/restart of my machine, all mentioned would open in same position and ...
1
vote
0answers
1k views

Autostart program in Xfce

After installing Skype and the Jabber client Psi, I set both programs to start within Session and Startup, Application Autostart. The first time I boot the computer, the programs launch as expected. ...
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 ...
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 ...
4
votes
1answer
4k views

.xsession and .xinitrc not executed at login

This is the content of my ~/.xsession: #!/bin/bash # Tray for skype, keyboard layout, ... trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --...
1
vote
1answer
2k views

XUbuntu 14.04 - Why does my XFCE panel (xfce4-panel) become corrupted after sleep/suspend is resumed?

I am having a problem with my laptop (HP Elitebook 8570w) -- whenever I close the screen and it goes into sleep/suspend/hibernation mode (take your pick on the name of this feature). When I reopen ...
1
vote
1answer
41 views

Check that mashine was rebooted

A GUI application is started by the normal user. It's doing stuff with the bootloader and then asks for reboot. The question is how to implement the second part: after reboot and login into the ...
0
votes
0answers
47 views

java frameworks ( tomcat, jboss ), tcpip, session expiration

We have in house linux servers from different vendors, so each server has a different distro ( rhel, centos, debian, ubuntu ) and tomcat or jboss. With some web application, if the logged user ( ...
1
vote
0answers
162 views

Keeping a process running after closing shell spawned by ide

This is similar to the other questions involving keeping a process open, but with a twist. The ssh shell containing the desired process is spawned by the ide instead of by me in an interactive shell. ...
1
vote
0answers
1k views

Your session only lasted less than 10 seconds

I'm running Linux Mint 17 and recently installed Torch7. Now, after restarting, I get a dialog that says my session only lasted less than 10 seconds and there's an installation error and to use a ...
4
votes
2answers
567 views

Run an app with a window manager behind in a separate X server

I want to launch an app in a separate X server. It needs a window manager behind it, though. I created a script #!/bin/sh x-window-manager & my-gui-app and launched it with xinit myscript....
1
vote
1answer
702 views

Run a command when logging in with xmonad

I have a simple script that I want to run every time x starts up. #! /bin/sh /home/kevin/.dropbox-dist/dropboxd & I have run chmod 755 on it, so it's fully executable. And it just will. not. ...
0
votes
1answer
211 views

Quick jump to tmux session

Is there actually any way / plugin to be able to quickly jump to a session? Currently I <leader>s to open the session-list page and then I select the one I want. And if I have a session that ...
1
vote
1answer
1k views

How To Logout and Apply New Group Settings [duplicate]

Can someone please tell me how to logout and log back in again via the command line so that I can apply a new group's settings to a user. To put this in perspective, assume that I am currently logged ...
2
votes
1answer
35 views

Does sharing SID by processes *always* imply their shared PGID?

If not, then when does it diverge? (I couldn't make them diverge.) And what other traits do SID-sharing processes always share?
3
votes
1answer
908 views

screen: ‘-S sessionname’ vs. ‘-t name’

What's the difference between screen -S <sessionname> and screen -t <name>? It seems that both assign a name to the newly created screen, which can be reattached using this name.
0
votes
0answers
154 views

I cannot remove two programs from Gnome tray

I started two programs: Glipper 2.4 and ClipIt 1.4.2 in my Gnome 3.12.0 desktop on Debian Linux 8. They are in Gnome tray. Now I click ClipIt menu and choose "Quit". I also kill Python process ...
11
votes
4answers
2k views

Is there a way to set permissions so a process could use a specific device?

As you can read, for instance here, logind, which is a part of systemd, can set permissions to some devices for user sessions. There's also a vid showing how this kind of behavior works in practice. ...
1
vote
0answers
447 views

Changing dwm keyboard in linux [duplicate]

I can't get dwm to set the keyboard layout. I have tried changing the file /usr/share/xsessions/dwm.desktop. I have changed the line Exec=dwm by Exec=/home/atc/dwm-init with this /home/atc/dwm-...
5
votes
3answers
7k views

bash: Saving aliases beyond one session

Recently, I've been fiddling around with Linux's terminal commands to try and get a better feel for the system. I was happy to know that I could give commands a different name in order to call them, ...