Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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
1answer
111 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 ...
2
votes
0answers
466 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
1answer
1k views

Get current memory usage of a tmux session

I need a way to the used memory of a current tmux session. I am not sure if that is even possible. I am using tmux to start multiple minecraft servers I'd like to know each servers memory usage.
0
votes
1answer
1k views

tmux reEnter to a session and save a session

Using ubuntu (terminal) I could open tmux session and open my R program then run the script, the script prints text on the scree. my question(s) are: how to re enter the session and re follow what is ...
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
159 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
1answer
640 views

Is it possible to style tmux on a per-session basis?

I set up 2 tmux sessions to work on different parts of a project (switching back and forth frequently). As their layout are pretty similar, I would like to set different status-bar color to help me ...
4
votes
2answers
563 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
682 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. ...
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 ...
1
vote
1answer
970 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
705 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 ...
0
votes
1answer
201 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 ...
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
354 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, ...
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
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 ?
5
votes
2answers
6k 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
190 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
495 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 ...
4
votes
3answers
8k views

Determine the owner of the session of a process

I am trying to implement a way to determine which user is owner of some process's session, in a way that's as cross-platform as possible. In Linux I can trace the process's pty by following the link /...
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 ...
0
votes
0answers
53 views

Directly start an application in a new screen/tmux session [duplicate]

Is there a way to start a new screen or tmux session, which directly executes a given command/application then detaches again? In pseudo-code something like tmux new -s ft_session --execute python ...
3
votes
1answer
174 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, ...
4
votes
5answers
10k views

Linux Mint 17, your session lasted less than 10 seconds?

I get this message when I try to log in. /etc/mdm/Xsession: Beginning session setup... /etc/mdm/Xsession: 1: /etc/profile: id: not found /etc/mdm/Xsession: 12: [: Illegal number: /etc/mdm/Xsession: ...
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 --...
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 ...
2
votes
3answers
1k views

Load X resources when KDE starts on Linux Mint

I previously was using MATE and XTerm always starts with a black background. I'm not sure why, but when I start XTerm in KDE, I get a white background. This is terrible for me so I want to change this ...
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/...
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
196 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 ...
0
votes
0answers
311 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 ...
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/> ...
2
votes
1answer
723 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
2answers
319 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 ...
2
votes
1answer
445 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 ...
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 ...
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
541 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 ...