General :: Dynamically Change Display Of An Xterm Or Program?
Jul 27, 2010
If I do setenv DISPLAY other_machine:0 and launch a gui application I can send this application to my other_machine Is there any mean (utility or whatever) to send an OPEN application to another machine (by its pid eventually) So if I have an nedit open, and its pid is 13245, I could do something like send_to_display pid=13245 machine=other_machine:0
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 tried to connect to remote server ,which is installed Centos 5.4 x86, through Xmanager on windows 7, and got this error.
Quote:
/usr/bin/xterm Xt error: Can't open display: %s
At the remote server, I turned on firewall and after this I got the above-mentioned error message. I do this accrding to instruction on remote server.
Quote:
2. Firewall (TCP/UDP Ports) Configuration Open UDP port 177 from the PC to the remote host direction. Open incoming TCP ports 6000~6010 from the remote host to your PC. After adding these ports "/etc/sysconfig/iptable" as the enoder mentioned, /etc/init.d/iptables restart
3. Reboot the remote host and start Xmanager <- I could not restart remote server.
Is it possible to change the GNOME desktop background during some period of time by just a random phrase from the list on black screen? Will is seriously load the CPU and consume battery life?
I was wondering how to change the xterm font size and may be the font itself. Also we go to tty1 when we press Ctrl+Alt+f1 , f3 and so on. Is there any way I can change that too and maybe change the colour of the font and the size of it. I did change the resolution once in ubuntu with startup manager. I'm using fedora 14.
I have a Word document that I want to read from and format the text dynamically to send to another program. The document is about 12 pages long, and I need to preserve CR or EOL's, but the rest of the text will need be formatted according to variables such as characters per line and lines per page. I will need to read and print characters like %, ;, and : too.
I use Putty from my machine (named host1) to ssh into an OpenSUSE box (named box1) and would like to have a gui to use. I am trying to issue xterm and am getting the following error:
xterm Xt error: Can't open display: xterm: DISPLAY is not set
I want to change parameters of a RED queue during the simulation but it seems that some parameters can be modified only before starting the simulation, not dynamically, while the simulation is in progress. For example the following subroutines works before $ns run command but it do not change the behavior of the queue during the simulation( I want to change maxthresh_ and thresh_ after $ns
run command): Code: proc setREDParameters { redQueue MINth MAXth PER_MaxP Wq } { $redQueue set thresh_ $MINth $redQueue set maxthresh_ $MAXth
I am running hummingbird exceed on Workstation with an ip address of a.b.c.d, and connecting to a sun machine with IP address x.y.z.w running Solaris with XDMCP. From the sun machine, we commonly telnet to other sun and linux machines and run X applications.
We have just installed ubuntu 10.04, and I can telnet into that machine no problem.
However, running xterm on the ubuntu machine fails:
When I run xterm from the command line, there seems to be some errors:
Code: $ xterm & $ Warning: Cannot convert string "nil2" to type FontStruct xterm: cannot load font -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 Then I press both the Ctrl and right mouse key, options are popup with font sizes of 'Default',
Is it possible for me to SSH to another server in Linux (Ubuntu), run a program there but display it locally?And is it possible for me to SSH to another server in my terminal,and configure it so that all graphical programs (Firefox, Emacs) run in that SSH session will be displayed locally?
I am connecting to remote Linux PCs via ssh, to update software and do other tasks. I want to send a notification to the remote PCs screen (eg, "Do not run program X, it is being updated now"), so the users do know what is happening.
Is there a reverse way for ssh -X host so I can connect to a remote Linux machine and run notify-send and it appears on the other display?
I'm having a problem with vim and xterm. When I open a file and press any key, the colour scheme changes slightly. This doesn't happen if I run a 256-colour xterm (export TERM='xterm-256color') but if TERM is set to 'xterm' (the default) I see the colour change. Setting TERM='xterm-256color' in my ~/.bashrc is a "solution", but I'd rather not have to do that since it's never been necessary in the past (e.g., on 13.1) and I don't use any 256-color schemes for vim (usually just the default or possibly "delek"). It doesn't happen with rxvt or with Xfce's terminal. I've tried compiling some other versions of xterm but they either exhibit the same behaviour or don't build. I have tried running without any ~/.vimrc file just to be sure it wasn't one of my settings and I've also tried the sample file at /usr/share/vim/vimrc; the effect is the same.
How to change light green text color to dark green of xterm? The xterm background is white. Light green texts are not good for white background. I don't want to change the xterm background.
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 have debian squeeze installed on an old computer to use as a file/web server. i had an extra monitor laying around and wanted to use it with the server. after about half an hour or so, it turns off and i have to press a key on the keyboard to get it to turn back on. i'm not sure how to keep it from doing this without installing a gui. does anyone know how to do this?
i was using GDE in my ubuntu system. But yesterday i did some thing so my ubuntu system has changed as debian. My login screen changed and i cant access "system->administration->Login window"when i do this i am getting this error message"GDM (GNOME Display Manager) is not running.You might be using a different display manager, such as KDM (KDE Display Manager), CDE login (dtlogin), or xdm. If you wish to use this feature, then your system will need to be configured to use GDM instead." How to come back to my normal original ubuntu with GNOME.
I am looking for a tool that can resize images and display them on the root window of an X11 display at a specific coordinates. I can use display from iagemagick like so display -window root -geometry '-0-0' -resize '1920x1080>' IMG.png But cannot use it since it does not display on the right root window -- pseudo transparency in urxvt shows the wrong image as shown here. Ideally, I would like to resize any image bigger than my display. Does anyone know of a too that can do the following: Resize the image if it is bigger than some size (aka the display size). Set the images top appear at specific screen coordinates.
I'm newbie linux user and I want to ask a question about my laptop display is too big i think its because of my screen resolution, how can I change my monitor resolution?
I'm using OpenSUSE as a guest OS in VMware. Display settings are 1400x1050@60Hz but I want to change them for 1440x900. Using root account I go to Configure Desktop -> Display -> 1440x900. The first problem is that I can't choose 60Hz, only "Auto" or "0.0". I click Apply and the resolution changes, but if I reboot the computer or just logoff... resolution goes back to 1400x1050. My card and monitor properties: [URL]. Another strange thing is that if I click Ok on the Card and Monitor properties (changing from one resolution to another), I can choose to "Test" it, and xfine2 appears but... it ALWAYS says "1400x1050". An screenshoot of xfine2: [URL].
I know this is somewhat lame, but I remember back in college the MOTD on some of the systems was a random quote. I always wanted to do that. It seemed really trivial, but still neat and clever.
I searched a bit and don't see anything built-in for CentOS, so I was considering writing a Perl script to parse the RSS feed from a quotes site, then update /etc/motd with a random quote from the feed. This would nearly guarantee I could have this on any distro with identical results. Does anyone know of anything that already exists? Is anyone interested in using a script that I write to have the MOTD updated with random quotes themselves, or am I the only one? I'm perfectly willing to share the result when I'm finished.
I'm looking for a way to dynamically modify a fied in the SQL file.
Example,
INSERT INTO `TABLE` VALUES(1AADFDF,DFF33D,10023,SOMEDATA, SOMEDATA); INSERT INTO `TABLE` VALUES(1AADFDF,DFF33D,10098,SOMEDATA, SOMEDATA);
[code]....
The third field in this SQL file is what needs to change to n+1
"10023" needs to change to "1" "10098" needs to change to "2" "10123" needs to change to "3" "10983" needs to change to "4" etc...
I tried with awk and sed, but since both require the usage of ' (single quote), my variable fails to get updated. I know i can use cut and recreate the sql statememnt, but i believe there should be easier way using sed or awk. Would anyone know of any creative way to get this to work in one-liner? This needs to be a part of the script preferable without making call to external file.
Libraries have always been ambiguous to me. I would love to have a clear understanding of them. Here's what I know so far... Ok I know that libraries are a bunch of functions and definitions in C that binaries use. I also understand that static libraries are used by the binaries in /sbin:/usr/sbin:/usr/local/sbin and dynamically linked libraries are used by the binaries in /bin:/usr/bin:/usr/local/bin So why have statically linked and dynamically linked libraries? I know that dynamically linked libraries are used to save space. Otherwise each binary would need its own private copy of a library. So dynamically libraries are used to save space.
1. Where are the static libraries and the dynamically linked libraries located in the file structure?
2. Where does ldconfig fit into all of this?
3. Would a rootkit affect both statically and dynamically linked libraries? I would think yes unless the libraries only have read permissions.
4. If the above is true, is there any reason for your libraries to have write permission other than when you want to edit them?