Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
4k views

How to restore window manager to default?

I wanted to create a kiosk Ubuntu, then I followed this instruction: https://web.archive.org/web/20131210161955/http://phunehehe.is-great.org/2010/run-linux-with-a-bare-window-manager/ Add a custom ...
1
vote
1answer
891 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 ...
0
votes
1answer
3k 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 ...
0
votes
1answer
48 views

How can I connect to remote session and get the server output on my local

So I have a remote server in cloud running my application, when I need to test / soak test I run ./gradlew- on my local. which runs a script > connect to vm - my application > and start the test on my ...
0
votes
1answer
28 views

Desktop not being picked up [closed]

I wanted to configure a Cinnamon desktop that used optirun so I created a new .desktop file in /usr/share/xsessions. However, this option is not being shown as a desktop on the login screen. I've ...
4
votes
1answer
990 views

How to see what's in a session

I'm seeing a lot of messages like this in syslog Aug 31 16:28:38 server systemd[1]: Started Session c924093 of user buntu. Aug 31 16:28:40 server systemd[1]: Started ...
1
vote
1answer
30 views

How to apply usergroup changes without having to end session / logging out / closing programs?

I'd like to remove myself from usergroups via deluser username group-to-get-removed-from without having to log out and back in as most programs get closed when doing so. Is there a way to apply ...
0
votes
1answer
133 views

Do all the jobs in a bash shell exactly form a session?

Process, process group, and (process group) session are concepts of Linux. If I am correct, in a bash shell, the process groups started in it are called jobs. Do all the jobs started in a bash shell ...
0
votes
1answer
1k views

How to Set MaxSessions parmeter in sshd_config

When I set MaxSessions flag to 1, I can have multiple sessions via ssh connection and set it to 2 or more has no effect as well then. If i set MaxSessions flag as 1, there should be allow only one ...
0
votes
2answers
479 views

Apache won't start

I'm using CentOS 7 and I migrated website from php4 to php5 and I have in configuration file of Apache this between virtualhost: Options Indexes FollowSymLinks MultiViews AllowOverride all Order ...
0
votes
2answers
3k views

exit ssh and still have a command running? [duplicate]

I am running a command on a server. It comes with this library http://www.graphicsmagick.org/. Basically I have a for loop that does image procession on a lot of files. Command runs for hours and ...
2
votes
1answer
132 views

How to automate desktop setup when starting up?

I've set up my Linux laptop (running Pixel for x86, based on Debian) to have three 'desktops'. I can access these with ctrl-alt-left and right. Main - a blank desktop CLI - a full screen, with no ...
1
vote
1answer
270 views

How can I print output whilst detached from controlling terminal?

The obvious answer is that I cannot print output to the terminal if I have detached from it. The problem is that I actually can send characters to a terminal from which I detached and these ...
-1
votes
1answer
197 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....
1
vote
1answer
588 views

How to account for shell-session env vars, contexts with chroot

So I'm working a script let's call it chroot-session-builder that mounts a file-system with a separate OS, and then logs me into a chrooted shell in the other file system. It works, but I'm a jerk and ...
0
votes
0answers
205 views

Kill ssh session in screen from client side

I connected to an SSH server and left a script running using screen. After that, I logged out. Now, about 10 hours later and after a reboot of the client, I can't connect to the server anymore. After ...
1
vote
1answer
90 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 ...
1
vote
1answer
2k views

In which file does Chromium store session storage data of the HTML5 webstorage

I am trying to find the file where Chromium stores the session storage. In ~/.config/chromium/Default/Session Storage there are a few files which seem promising: user@desktop-04:~/.config/chromium/...
2
votes
0answers
37 views

How can I set different sessions to be used for different users?

Is it possible to write a script that runs at login which will automatically run a custom session for a given user? I would like to have my personal user account login to my normal, entire KDE desktop,...
1
vote
1answer
4k views

Detach all other terminals except current one from a tmux session

Is there a way to detach all terminals from a running tmux session, except the one i'm actually using? It seems a little weird, but the meaning of doing this is to keep some "persistency" layer to ...
1
vote
0answers
99 views

KDE: kwallet error after relogin

Every time I log out of KDE session and log back in, a window pops up asking me to provide password for kwallet. And then it won't accept the password at all. So I need to reboot to make it right ...
1
vote
1answer
21 views

Open specific terminals on login

I always have a ton of terminals opened doing certain things so when I have reboot it always takes me a decent amount of time to go back through and set them all back up. Is there any way for me to ...
3
votes
1answer
2k views

How to close XServer session via command

I have a debian 8.5 computer. In order to create new session I run command startx. With this command a new session is created. How can I via command close this session and to return to previous one?
5
votes
1answer
347 views

Key passphrases and sshd — cached authentication?

Asking a more precise question: It appears that I can complete an rsync-over-ssh, using a key that requires a passphrase, without entering the passphrase. For example, I can run the rsync from the ...
3
votes
2answers
445 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 ~/...
1
vote
0answers
471 views

Why is there a difference between the last and lastlog command records, and why is there no recent login record for user in lastlog records?

While testing the last command on my system I got the following result and could not make sense of the lines with down and crash at their ends, as all seem to be connected to a tty7 login: george ...
1
vote
1answer
117 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
15 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
3answers
108 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 ...
2
votes
1answer
284 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
524 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 ...
4
votes
3answers
511 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
567 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
3answers
7k views

Linux Mint 18 with Cinnamon Session Save and Restore

Is there any way to save the position / workspace and possibly state of all of my open programs so that when I restart I can restore everything to exactly where it was before without having to reopen ...
2
votes
1answer
594 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 ...
2
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?
7
votes
1answer
11k 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 ...
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
0answers
67 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
582 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://...
2
votes
1answer
390 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 ...
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 ...
8
votes
1answer
5k views

Reopen Terminal windows after restarting

In Mac, if I have a few Terminal windows open and I restart the computer or quit Terminal, the windows that were open last are opened again with their working directories and command histories ...
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
878 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 ...
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 ...