Software :: Set Xterm Title To Gnu Screen Session Name?
May 5, 2009
I usually have several xterms open, with each one running a different gnu screen session. It would be useful if--at a glance--I could see the session name in the xterm title bar. That way I would be able to quickly tell which screen sessions are running in which xterms. This would be very useful when alt-tabbing.
I know that there are termcap, terminfo, and termcapinfo commands available, but I don't know how to use these. I also know that there's an $STY environment variable that stores the session name. Also, I do not want to lose my current "hardstatus alwayslastline" bar. It seems like this should be independent from the xterm title, anyways.
So when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.
This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt
That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt
changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.
The usual operations in starting the xterm app don't seem to apply in Fedora 12. I usually prefer to put my own title and other attributes when starting an xterm. But the operation: xterm -T 'Some Title' does not do anything. Instead, the current directory is always displayed in the title bar of the window (on kde). Where is the resource file to disable this default behavior?
running Xubuntu 10.04 here. After installing and removing some packages in package manager I'm finding after reboot I cannot logon to the computer. When the correct password is entered the screen goes to black briefly then returns to the logon screen. It appears I can only logon to an xterm session. how to proceed next?
I have X Window running on one of RHEL Machine 192.168.2.2.I have logined through putty from remote Windows Machine 192.168.2.5. Now What I need to open the xterm (if I run the command through putty it should open xterm in the linux Machine).
In the past, when I open a gvim session on a remote machine, the title bar of gvim would show the machine name in brackets. I am not sure if this was done by the remote gvim itself, or the local window manager. In the past I have used gnome2, although I am currently using unity (and finding it rather frustrating). Is there some setting I can change to always force remote windows to display the source machine?
my when i boot my ubuntu 8.10 i get only xterm failsafe ,however failsafe Gnome does open , i have tried several solutions from the web such as deleting .profile file and some other solutions but none works.here's my .xsession-errors file
Code: /etc/gdm/Xsessin: beginning session setup... /etc/gdm/Xsession: Executing default failed ,will try to run x-terminal-emulator
I just performed a clean install of CentOS 5.4 on a Dell PowerEdge 1950III server. When I booted up for the first time, I begin seeing problems with the following error:There was an error loading the theme TreeFlowerFailed to open file'/usr/share/gdm/themes/TreeFlower/background.png': No such file or directoryOnce I hit OK there I get this:There was an error loading the theme, and the default theme could not be loaded. Attempting to start the standard greeterI then get the standard greeter, and I am able to log in as root. However, once logged in I can open neither Firefox nor a terminal. I can use some programs such as OpenOffice.org, but I cannot use a terminal or a web browser.The next thing I try is to log in to a failsafe terminal session. When I try this I get perhaps the most worrisome error so far:Cannot find "xterm" to start a failsafe session.
I just recently installed 10.1 on a new system. I'm going to use it basically for development since the kernel bug affects my other systems, still using 9.1. when I loaded firefox - 3.6.x - i noticed the title bar is missing. It appears to be somehow over the top menu bar. (How did that get up there? I usually had it on the bottom.)
I looked and found [URL].. one thread that mentioned this. However, pushing F11 and back does nothing. The menu simply stays at the top. In fact, I can't even expand it. What's with the goofy colors, too?
Start xpdf or gv. Click an xterm to be active and slide it over xpdf/gv. Vertical lines from xpdf/gv under the xterm stick to the xterm window above and make it unreadable.
The problem does NOT show with KDE default settings with display effects on but does show in fvwm, xfce etc, and in KDE without effects.
On a system with a Sandy Bridge integrated graphics (i5-2400) the problem went away by downgrading to xf86-video-intel-2.13.0. But it was not enough for another system with 945G which needed downgrading to xf86-video-intel-2.12.0.
I use xterm with a particular font size and type. But every time I start xterm I have to give them in arguments
Code:
xterm -fa terminus -fs 12
Is there some configuration file where I can out the above parameters and xterm will pick them itself. But I don't want these properties to be set globally. Every user should be able to set it for himself. I have searched all the hidden folders and rc files in my home folder, but didn't find anyone related to xterm. What should I do? Similarly every time I start screen, I have to issue
Quote:
:caption always :caption string %w
Can I make it automatic by editing some configuration file? Is there any way through which every xterm I start will have a screen session already open in it?
I had installed Ubuntu And Kubuntu Dual-Boot, at the Boot-screen i see the following two OS to enter....but i want to change their title names(Which is displayed at Boot-Screen). My Boot-screen picture is attached herewith. I want to change these names to Ubuntu & Kubuntu Respectively.
I have also checked menu.list but their i am unable to find Following titles(Which i have showed in picture, exceptMemtest 86+)
Our Fedora 15 linux box have the following requirements:
1. Runlevel 3 1. Autologin as root for convenience 2. Run Xorg 3. Run xterm on display :0.0 4. Lauch our program on display :0.0
So we simply put step 2 ~ step 4 in the .bash_profile of root user:
# .bash_profile if [ -f "/.bahsrc ]; then .~/.bashrc fi export DISPLAY=:0.0 Xorg & sleep 3 # for some reason, we need this three seconds to make sure that xterm start up successfully xterm &
The problem is, if I issue "kill xterm", it flashes out some messages disappearing so quick that I can't even read, and then leave me with a black screen with a cross cursor at the center. The system seems to be crashed, even the numlock doesn't work. Since we execute xterm & during logging in, now I can crash my system simply by pressing ctrl + C ! That's disaster!
I cannot access xterm or an tty using ctrl alt fn getting just a blank screen. Even in booting to repair mode or logging into Xterm, I get the same blank screen.
Lucid with nVidia X at 1900 x 1200 - Had this setup for the last year so Karmic and Jaunty had no issues with xterm. Needing to resolve this to be able to load nVidia drivers.
Everything worked 100% great untill I change color depth to 16 bits.I do not want 24 Bits, I want 16 Bits. I have good reasons. Never had this problem in Gutsy 7.10 ...I deeply regret in upgrading to 9.10 ...
My video card:
Gforce 7950 GX2
Changes to xorg.conf file: Firstly, I saved it at 16 color depth with the sudo nvidia-settings and by clicking on the save to xorg.conf file Button. Rebooted computer....... It worked, saved file, and I got the following bugs:
*Cannot move windows by dragging their title bars. *Cannot see close "X" Button in the title bar. *Cannot see Minimize Button in the title bar. *Cannot see Maximize Button in the title bar.
Went back to 24 bits and problem got resolved. Then i tryed: I did sudo gedit xorg.conf I changed all the 24's with 16's ... Rebooted computer....... It works GOOD... BUT: I got the same bugs from before. I will retype them below
*Cannot move windows by dragging their title bars. *Cannot see close "X" Button in the title bar. *Cannot see Minimize Button in the title bar. *Cannot see Maximize Button in the title bar.
My xorg.conf file:
# nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009 Section "ServerLayout"
I've just installed xterm, ant trying to run it from my windows machine using ssh. I have X11Forwarding yes on /etc/ssh/sshd_config when I use, MobaXterm, np, I can use xterm after I log ssh -X xxx
but when I use Cygwin, and do ssh -X xxx, and then xterm, I have: xterm XT error : Can't open display: xterm: Display is not set
I'm starting the first command in screen like this: screen -d -m -S testen -t lalala watch df -h Now I have a screen session running in background and I can reconnect at a later time. But how can I run a second command (in a new window) in the same screen session?
I'm connecting via ssh to an Ubuntu server that has a physical display attached.I'd like the physical display of the server to remain locked while I'm connected remotely.Is this possible? How? Also, is there a way to automatically unlock the screen for the VNC session, which is made from localhost via an ssh tunnel?
I need a way to have screen (or dbus, whatever) to spit out a list of windows (title and number) that are active in a screen session.I'm writing a wrapper for common work tasks. Part of the functionality will check if a certain window exists, and if so let me know. The idea here is to prevent accessing the same machine twice. (although, and override option would probably be needed, just in case, but I digress...) I've searched through the screen man page and don't see anything that'll work. I'm not beyond forking screen and ending up with a custom version. However, I'd like to avoid that if I can.
Edit: I'd like to see something like "screen -S screen_name -window-list" or similar.
This is regarding the 'screen' utility. I use an utility called 'HummingBird Exceed' to get the XSession of a linux client on my windows desktop (basically it uses XDMCP). But the pain is that at the end of the day, when I close Exceed, the session gets destroyed. I did lot of searching on the web to know how the save and restore session in Exceed, but failed. However, I found that 'screen' is the utility which keeps the session intact even when you logout. So, I did the following:
a. Logged into the machine using Putty (terminal emulator).
b. Started 'screen'.
c. Issued the command: /usr/bin/gnome-session
I got the XSession on the Exceed and started working. I opened three or four gnome-terminals. But when I logout of exceed(and detach from the screen), the screen displayed a message saying that 'Connection to XServer was lost". Hence I could not restore to this session when I reattached to the screen. how do I use 'screen' so that when I attach to the screen on which I had started gnome-session, it attempts to connect to the Xserver and open the session as it was before detaching?
I have several screen sessions running, one of them named 'test'. I want to send a simple command to there without attaching the screen, so I do:
screen -S test -X ls
But when I attach the screen to see if it has done something, nothing is different... How can I send commands then? Of course the 'ls' command is not what I want to do, but it's just an example in how this is not working.
I have 2 servers, I set the first one up so that I can remote to it and connect with VNC over ssh by following:[URL]ServerThe 2nd server I did the same, but I cannot connect! When I do, vncviewer prompts for a password and then opens a window of the correct size, but it is all white and then my ssh session is locked! I can't enter any more commands, I have to kill the session.
I'd like to use screen to execute a file with a certain session name instead of just numbers... or at least have a more permanent name, I'd like to be able to use it all in one command though. So I can put it into a script.Also: is there a way I can remove or change what comes up at the debian login screen so instead of debain 5.0 I can make it say something else? Also when I login the message that comes up is a little annoying, is there a way I could remove or change that too?
I like very much the Guest Session feature of Karmic, it comes very handy when someone needs to use your computer. However, it's only available if I'm already logged in, it won't show this option at login screen. Is there any way to make this possible? Also, I once tried the guest session and configured its appearance to my taste. The next time I entered, though, the default desktop reappeared. I know this happens because no setting is permanently stored for this session, so the only solution I can think of is to change the default configuration it is loaded from.
Installed Unity from the ppa, restarted the session and got a blank screen.Now I can't figure out how to get back to GDM and reselect Gnome as my default session.