General :: SSH Shell - No Screen To Be Resumed

Sep 3, 2010

I occasionally use screen within linux. Every now and then my connection plays up and I lose access to the ssh shell, when I try to reattach myself to the screen instance this is what I get:
There is a screen on:
2690.pts-0.localhost (09/03/10 12:56:08) (Attached)
There is no screen to be resumed. What I could do in this case? I guess screen believes I'm still attached, while I'm not.

View 2 Replies


ADVERTISEMENT

Software :: Way To Configure Screen / When Session Is Resumed It Inherits DISPLAY?

Jun 22, 2011

At work, we have a linux machine which is shared among the members of my team. Each of us runs an XServer on our desktop, which allows us to launch XClients (xterm, debuggers, etc) on the linux machine.We all are using X11 forwarding feature with SSH. I personally run all shell sessions behind screen because I like to be able to detach if needed. We've seen issues when the $DISPLAY variable gets crossed between different users. Let me outline a series of events:

1. user1 logs in and $DISPLAY = localhost:10.0
2. user1 launches a screen
3. user1 loses connection to linux machine (eg. desktop reboot)
4. user2 logs in and $DISPLAY = localhost:10.0
5. user1 logs in and $DISPLAY = localhost:11.0
6. user1 resumes screen from previous login, but in this screen $DISPLAY=localhost:10.0.
7. user1's X apps get displayed on user2's desktop!

I assume someone must of encountered this before. Are there any known solutions? Is there a way to configure screen, so that when a session is resumed it inherits the $DISPLAY?

View 1 Replies View Related

General :: Clear Screen Command For BASH Shell

Jan 21, 2010

I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.

I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'

This is how i defined other aliases e.g.

And they work. Hence I assume cls will work too but this is what I get when I try to give cls on command prompt. Am i missing something? Is there a way to do this?

Then someone suggested, You cannot alias keystrokes to commands or vice versa. You could just alias cls to an echo command: echo -en "x0c"

And I added the following to .bashrc,

Sourced the .bashrc file. No errors but cls still does not clear the screen. Infact when I typed the echo -en "x0c on command prompt as well, nothing happened. What does this command do?

View 3 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

Fedora :: Commands On Shell - Locking The Screen

Nov 26, 2009

what is the command for:

locking the screen

creating a new folder

log out

on the shell?

View 3 Replies View Related

Fedora :: Nvidia - Change Screen Setup In Shell?

Jul 25, 2011

I have an NVIDIA graphics card and use the proprietary Nvidia driver for Fedora (13).Usually when I connect another monitor/screen - I change the setup through the nvidia-settings GUI. However, I find this a little bit cumbersome, and would like to do it with a simple click on a button or something like that.Hence:Can I somehow change my screen configuration through a bash script.

View 3 Replies View Related

Fedora :: No Shell After Upgrade - Screen Flashes On Login

Sep 29, 2009

I upgraded from fedora 6 to fc10 using a net-inst iso. Everything went great however when I rebooted gnome wouldn't start up and there were other error messages, however thats not my current question. I figured id login as root, I put my pw in and the screen briefly flashes and then back to login prompt. The flash is a message saying something about no shell. Same occurs when trying to logon to my main user account. I can boot to single user and see that all my partitions are there and the data is there. My password file has the shell at the end of the entries.

View 1 Replies View Related

Slackware :: Determine Native Screen Resolution From Shell?

Sep 17, 2010

Is there a way to determine the native resolution of the current console display device from the shell?

I know I can get the current console settings, but I'm looking for the native screen size of the display hardware, whether or not it conflicts with settings.

View 6 Replies View Related

Fedora :: Kernel Panic During FC 11 Update / Cannot Get Even To Shell From Boot Screen

Nov 26, 2009

It appears that I have really messed up my machine. I was trying to get matlab working on FC 11 and I ran into libc.so.6 issues, so I put an older file libc.2.3.1.so in /lib/tls/ directory and created a symbolic link libc.so.6 to see if the application would work. Unfortunately at the same time the system did some updates and the system hung, so I ended up rebooting, but now it gets stuck at boot screen (after grub) with a kernel panic - not syncing: attempted to kill init.I just need a way to get to the directror /lib/tls and delete the link and the older .so file I threw in there. How do I get this accomplished. I cannot get even to a shell from the boot screen.

View 3 Replies View Related

Ubuntu Installation :: Screen Shell Goes Into An Infinite Loop After Upgrading To 10.10?

Oct 20, 2010

I have just upgraded from 10.4 to 10.10 (x64), and now when I run gnu screen the new shell session goes into an infinite loop displaying:

Quote: Linux dave-desktop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.10

Welcome to Ubuntu! * Documentation: [URL]...

0 packages can be updated.
0 updates are security updates.

repeatedly until I hit CTRL-C and break out of screen. I tried tmux and that did the same thing, so it is a problem with the shell initialisation rather than with the screen program. However I can start bash, zsh or sh directly in a terminal with no problem.

View 1 Replies View Related

Software :: GNU Screen Doesn't Start Shells As A Login Shell?

Mar 22, 2010

I want to have an ls' output colorization in gnu screen. Colorization in my system (Slackware 13) is realized by aliasing of ls in /etc/profile.d/coreutils-dircolors.sh:

Code:
$ alias ls
alias ls='/bin/ls $LS_OPTIONS'
where $LS_OPTIONS is
Code:
$ echo $LS_OPTIONS
-F -T 0 --color=auto

But in screen this alias isn't defined. It seems like /etc/profile script isn't executed at shell starting in screen. I think it happens because screen starts a shell not as a login shell. I tried to correct it by adding to ~/.screenrc or to /etc/screenrc. The problem is the same. By the way when I start screen as a root I haven't this problem. What's wrong?

View 3 Replies View Related

Slackware :: Unclear Screen - Move Aside All Shell Startup Scripts?

Mar 18, 2010

using any sort of rxvt-based terminal with TERM set to rxvt (or rxvt-unicode) then ^L will not clear the screen, only act as newline. This is not the behavior I see on Debian or CentOS. I have the same user environment at each site. Using urxvt on centos, ^L will clear the screen like readline(3) says it should. If I then ssh to slackware, it won't. exporting TERM=xterm will cause the correct behavior after having logged in to slackware, but I'd rather understand why this is happening. I've tried moving aside all the shell startup scripts, setting clear-screen explicitly in .inputrc, setting stty sane nothing doing. Am I missing something?

View 10 Replies View Related

Debian Multimedia :: Too Much Delay For Opening Lock Screen In Gnome-shell 3.14

Dec 17, 2014

when i want to opening lock screen and after entering password take too long time to open lock scrren and i can not find what is the problem.i can not find any clue in my logs, so this is some of syslog :

Code: Select allDec 17 21:19:34 ali-deb gnome-session[2274]: (gnome-shell:2421): Gtk-WARNING **: Symbolic icon /home/ali/.local/share/gnome-shell/extensions/lockkeys@vaina.lt/icons/numlock-disabled-symbolic.svg is not in an icon theme directory
Dec 17 21:19:34 ali-deb gnome-session[2274]: (gnome-shell:2421): Gtk-WARNING **: Symbolic icon /home/ali/.local/share/gnome-shell/extensions/lockkeys@vaina.lt/icons/capslock-disabled-symbolic.svg is not in an icon theme directory
Dec 17 21:19:34 ali-deb gnome-session[2274]: (gnome-shell:2421): GLib-GObject-WARNING **: /tmp/buildd/glib2.0-2.42.1/./gobject/gsignal.c:2579:

[code]...

View 1 Replies View Related

Ubuntu Servers :: No Colors In "screen" Shell?

Mar 4, 2010

For some reason whenever I use the "screen" command I lose all of the colors on the command line.

For example when I SSH into my server the user@servername turns green, as soon as I launch screen everything is just a simple white with black background. How can I fix this? Does it have to do with .screenrc?

View 6 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

Mar 14, 2010

I want to change my default shell to tcsh. I used

Code:
usermod -s /bin/tcsh username
command as given at url

But if I open a new shell, it is still a bash shell.

How do I make my default shell as tcsh?

View 6 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.

(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)

View 2 Replies View Related

Software :: Export A Variable To Parent Shell In Shell Scripting?

May 21, 2009

Is there a way to export a variable to parent shell in shell scripting ?

View 3 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.

Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....

View 10 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

General :: 10.10 Booting To Terminal - Black Screen Instead Of The Normal Purple Screen

Dec 8, 2010

i am fairly new to Ubuntu. i was using it fine for a month, but today, when i booted my computer up, it came up with a black screen instead of the normal purple ubuntu screen. the black screen had white text on it, and asked for my username and password. from there, it was a terminal prompt. i have been google searching for a while, and have tried typing "startx", "sudo apt-get install ubuntu-desktop", "sudo gdm", and i have also tryed uninstalling xorg, and reinstalling, and none of these things wanted to do anything for me.

View 4 Replies View Related

General :: Dell Studio 1535 Screen Resolution - System Won't Get Past The Loading Screen Anymore

Aug 4, 2010

Unfortunately my experience in the Unix* based world up to this point has only been using web servers and administrating them, no GUI experience of any kind so I am completely unfamiliar with the setup and entire usage of Xorg or any other Window manager at this point. The issue I am having is with the screen resolutions I am being allowed to chose for my Dell Studio 1535 running Fedora Core 13 and the KDE 4 desktop GUI, thus my issue since I am not really familiar with how to run a Unix* based GUI in the first place.

The basic information, if there is more needed just advise what and what command gathers that info (or what conf/log I should look into in order to find it). Laptop is a Dell Studio 1535 Video is the Mobile Intel GMA X3100 ATI Radeon HD 3200 Graphics. LCD interface is the LVDS.

So far it seems to give me modes for 1024x768 and on down, nothing above this. I believe I am supposed to use the radeon driver being that is the type of card it is but every time I change the xorg.conf file to use this instead of vesa the system wont get past the loading screen anymore upon reboot and nor can I seem to find a way to bring up a command line so I can hit up the Xorg.0.log to see what is wrong or change the xorg.conf file back to the original driver it had listed.

I am going to assume this is a missing driver or something else it hangs on but without being able to get access back to the system and having to rebuild it again (re-install via live CD) I am basically out of luck at this time. Sorry for the rather poor post but I do hope to receive some basic directions on where to go from here with this issue

View 12 Replies View Related

General :: Ubuntu : Decouple The VNC Server's Screen From The Physical Screen?

Sep 22, 2010

I'd like to have my VNC sessions to a server use a separate display from the physical screen. So that e.g. I could have the physical screen locked in screensaver while the VNC display is unlocked.

View 2 Replies View Related

General :: GNU Screen - Unable To Reattach To Screen After Lost Connection?

Jan 1, 2011

I was using irssi in screen but lost connection. After I ssh'd back in to the server, I can no longer attach to that screen. screen -ls shows that the screen is already attached. I tried screen -D to force detach it, and it said detach but screen -ls still says it's attached. I tried screen -x and it just hangs there.

[sub@server ~]$ screen -ls
There are screens on:
4033.poe (Detached)
7728.irssi (Attached)
2 Sockets in /var/run/screen/S-sub.What can I do now?

View 4 Replies View Related

General :: Using Emacs Under GNU Screen If Call C-x C-s Screen Hangs And Does Not Respond

Feb 28, 2011

When I am using emacs under GNU Screen, if I call C-x C-s screen hangs and does not respond to any keyboard input.

I can't reproduce this, but at least one time per day I have to kill my screen session and restart it.

View 1 Replies View Related

General :: Arch Over Time Screen Jitter Then Black Screen?

Jan 15, 2010

I've been a happy Arch Linux user for years now. Recently, on my eee 1000he (an Atom netbook with intel GMA graphics) I've been seeing strange things. After it has been on for some time (usually hours), the screen starts to jitter, just for a fraction of a second, every now and then. After this has happened some times, the screen goes black (one time it went red). The backlight is still on and I can still ssh to the machine which reacts normal appart from the black screen. I can only regain the screen when rebooting. What could this mean? Is it hardware or software? X logs don't shown anything weird, where should I look? I haven't found anyone with the same problem on the net.

View 4 Replies View Related

General :: Screen Of Ubuntu Appears Bigger Than Screen Dimension?

Jan 19, 2011

when insert ubuntu 10.04 cd to laptop [xp] this run ok [run from cd], but when in desktop vista the screen of ubuntu appears bigger than screen dimension so menu does not seem, what is the solution?

View 6 Replies View Related

General :: Screen Is Blinking And A Dark Screen Background?

Dec 20, 2010

i recently update my linux ubuntu 10.10 when i update it and restarded it my os doesnt work anymore , my screen is also blinking and a dark screen background , what happen to my os ?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved