Questions tagged [session]

The tag has no usage guidance.

51 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
4
votes
0answers
142 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
0answers
254 views

Fedora 28: Generate kerberos ticket on login

I'm trying to generate kerberos ticket when I login on my computer(Fedora 28). I want to achieve it using PAM. my /etc/pam.d/system-auth looks like this: auth required ...
3
votes
1answer
221 views

Execute script prior to cinnamon logout (unsing MDM or other display manager)

I'm using cinnamon as desktop environment on my Linux Mint system. I want to automate a backup using unison: Unison shall be executed prior to each logout off my session. So I was looking for a ...
3
votes
0answers
276 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
3
votes
0answers
393 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 ...
3
votes
1answer
332 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,...
2
votes
3answers
108 views

Are there any practical reasons for setting a maxlogins limit for users in limits.conf? What are the benefits?

Why should I set a maxlogins limit in /etc/security/limits.conf? In other words, are there any performance-related and security-related benefits to be gained? I have only three users on my machine, ...
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,...
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 ...
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 ...
2
votes
0answers
458 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 ...
2
votes
1answer
699 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
0answers
137 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
0answers
21 views

XFCE Session & Startup Application terminal command to turn on and off

In XFCE4 I can create my own custom start-up commands at Settings Manager > Session & Startup > Application Startup and turn them on or off by clicking on the command's check-box. Is there a ...
1
vote
0answers
72 views

Manually restore saved session files on KDE using qdbus command

At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the ...
1
vote
1answer
91 views

Exporting $PULSE_SERVER at start up

In order to run flatpak applications (like Discord or Spotify) I currently have to export the $PUSLE_SERVER in my ~/.zshrc or ~/.bashrc like so: export PULSE_SERVER=unix:/tmp/pulse-PKdhtXMmr18n/...
1
vote
0answers
53 views

Unable to find tmux session but it shows up as a file?

Yesterday I had started a tmux session, but when I logged into the computer today, I cannot find it, i.e. tmux ls cannot find the session. But when I run top I can see that the following tmux ...
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 ...
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
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
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 ...
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 ...
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://...
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. ...
1
vote
0answers
157 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 ...
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
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
540 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 ...
1
vote
0answers
859 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?
0
votes
0answers
43 views

How to prevent $TMOUT from timing out interactive shell session when it's set as readonly and exec or env trick won't work

Linux Redhat 7 platform, with bash-4.1.2-48.el6.x86_64. The interactive shell timeout value on my servers is ridiculous. $ echo $TMOUT 900 So I've read the great post below, but unfortunately it ...
0
votes
0answers
28 views

Logout button reboots the machine

On CentOS 7.4 running XFCE, most of the time if I click the Logout button, it will reboot/poweroff the machine. It does the same thing if I use the Logout button in the xfce panel or in the ...
0
votes
0answers
28 views

Problem starting session Debian 9

I'm working with Debian 9. My computer has two partitions, so I have Debian alongside W10. I needed to install a Windows program (STAMP), so I decided to install Wine instead to do it in the Windows ...
0
votes
1answer
15 views

Unable to login for graphical session on Mint + Not available space on filesystem

I've been trying to start a graphical session with all users on my system but I've been always reverted to the login screen. After initiating a terminal with (Ctrl+Alt+F1) from there, I've been able ...
0
votes
0answers
24 views

New session freeze after internet disconnected during a session

When I am forgetting a X2go session opened and the internet is disconnecting then X2go closes automatically and when opening X2go session it is stuck and not working. I tried to reboot X2go server ...
0
votes
0answers
8 views

How to open just one app and block any other thing on session opened via xrdp

I'm using linux mint 19. I'm trying to config a computer to some people will be able to connect to it and use only one app. I mean, I'd like that when any people that connects to this computer via ...
0
votes
0answers
32 views

How to login and Download the file in the same session in R language?

I am trying to do login and download the file with using a package httr and jsonlite in R language. I write the following code : library(data.table) library(jsonlite) library(httr) library(properties)...
0
votes
1answer
74 views

How can start multiple tmux autoscript?

This is in my TmuxHome.sh Script with I can start One Only Tmux Session: # tmux Start Script Need To Work!! if which tmux >/dev/null 2>&1; then #if not inside a tmux session, and ...
0
votes
1answer
50 views

Why do some programs' processes exist after forking a child, without the child starting a new process session?

Here are some of the steps for creating a daemon process from a given process, the given process exists soon after forking a child, the child calls start a new session and also a new group, by ...
0
votes
1answer
307 views

How can I launch a new session of tmux in iTerm2 on a separate window?

I would like to start a tmux session on a separate window in iTerm2. Now I'm writing my own configuration script to launch the session. tmux new-session -s dev -n main -d tmux send-keys -t dev "cd $...
0
votes
0answers
46 views

Viewing history of echo'd text on terminal

I detached gits head using git checkout 4037ec1702bd2fa6a5a15f7413f4ccccb59d356e . and lost all my work. I still have the terminal open. Not that long ago, I did a git diff, so my changes were all ...
0
votes
1answer
80 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 ...
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
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
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 ...
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 ...
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 ...
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 ( ...
0
votes
0answers
152 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 ...