General :: Know Which Display Number For The Variable DISPLAY To Be Exported When Ssh To Server?

Dec 26, 2010

When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only

export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock

[code]....

View 1 Replies


ADVERTISEMENT

General :: Display Server Serial Number

Mar 18, 2011

How to display server serial number, type of os for that server and kernel version for that server. with seperate way.

View 8 Replies View Related

General :: Commands To Display Running Processor Number Id?

Jan 24, 2011

I have 8 cores system, but I only want to use 4 cores of it. Are there any commands to show which cores are running tasks?

View 1 Replies View Related

General :: Trying To Display Count Of Number Of Subdirectories In Directory

Feb 7, 2011

I am a noob and I am trying to display a count of the number of subdirectories in a directory. I have been able to use find -type d to list directories and subdirs but I want a numerical value of dirs and subdirs. I know ls -l gives a count but when I try ls -l -d all it shows is "." I also have tried a combination with the -R option but nothing seems to be working for me.Please forgive my ignorance but I am working on a script for class and this is the first step.

View 3 Replies View Related

General :: Maximum Number Of Clients ReachedThunar: Cannot Open Display

Jul 4, 2011

I with one problem to open files on terminal. By example, I open the thunar on terminal, see the error:

gustavo@universe /media/montagem $ thunar
(process:7902): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Maximum number of clients reachedThunar: Cannot open display:
gustavo@universe /media/montagem $ ^C

View 1 Replies View Related

General :: Ubuntu 9.10 - Java Error When Starting Scripts - No X11 DISPLAY Variable Was Set

Dec 25, 2009

my java version is this

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)

And when i am trying to run my gameserver scripts i get this error.

root:~# /home/l2jserver/login # ./L2JConfig.sh Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:431)
at java.awt.Frame.<init>(Frame.java:403)

[code]....

This is not my desktop computer but my remote server.

View 1 Replies View Related

General :: Ubuntu Etc/profile: Environmental Variable Doesn't Display Content?

Jul 28, 2011

i am trying to declare an environmental variable in the /etc/profile' (as per the tutorial i'm following) but when i declare it and do an echo i get nothing.Here's what i've done so far..nside /etc/profile:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ -d /etc/profile.d ]; then

[code]...

View 12 Replies View Related

General :: X11 Forwarding - Error: Can't Open Display: <ip Of Display>

Jun 28, 2011

I have the following scenario that doesn't seem to work normally. I have a windows 7 pc from which I am using putty to connect to my other linux servers (all running redhat 5 and 6). So here is the scenario that works and one that does not work. And I'm trying to figure out the one that does not work. Scenario that works:

From windows 7 (putty) I ssh into Linux_Server_1.
echo $DISPLAY
localhost:10.0

I run xclock and I see it pop up on my windows 7 pc. I am using xming on windows 7 to help me populate the display from linux to windows. One that does not work:

From windows 7 (putty) I ssh into Linux_Server_1. Then from Linux_Server_1 I ssh into Linux_Server_2.
echo $DISPLAY
<no output>

I try to setup $DISPLAY with localhost:10.0 or 0.0 or even my windows 7 pc ip address:0.0 ....etc Then when I try to run xclock I doesn't work.

I get these error messages: Error: Can't open display: <ip of display>

Also as a side note all our Linux servers are sitting on one subnet. My pc is sitting on another subnet. I use vpn to connect to the subnet where the servers sit from my pc.

View 4 Replies View Related

Programming :: Dereferencing Exported Variable?

Jul 6, 2010

This is probably a very easy thing to do, but I don't know how: I'd like to export an env't variable, and then use its reference in a Bash script

Code:

View 5 Replies View Related

Software :: [bash] Exported Variable Gone After End Of Script?

Apr 22, 2011

I'm using a simple Bash script to export an environment variable, eg.

Code:
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/my/own/dir

[code]....

View 2 Replies View Related

OpenSUSE Network :: DISPLAY Variable Setting Over VPN?

Jun 9, 2010

I am connected to work via a VPN. I am logging into a Solaris box at work from OpenSuse 11, using ssh -X. I would like to start a GUI on the solaris box. The problem is that I don't know what value to give the DISPLAY variable. Is it the local internal LAN ip address, for my machine? I did try that, and I tested it using, xterm on the solaris machine. It says it can't open the display. I have enabled remote connections on my machine using xhost +.I have to run a performance test on the Solaris box at 7am in the morning... so need to find out how to start the GUI

View 6 Replies View Related

Ubuntu :: Getting A Conky Variable That Display The Version (ex 10.04)

Sep 26, 2010

Is there a conky variable that displays the Ubuntu version (ex 10.04)?

View 9 Replies View Related

Programming :: Use Echo To Display The Content Of A Variable?

Jan 4, 2010

I have a problem to use echo to display the content of a variable.

This is what I do:

Code:
#!/bin/bash
USAGE="Usage: name [OPTIONS] [DIRECTORIES]"
echo $USAGE

When I run this little script I get the following output:

Usage: name [OPTIONS] R

So I think that [DI might be some sort of escape sequence. But I do not know how to unescape it. Does anyone have a hint for me?

View 14 Replies View Related

Fedora :: Finding A Free X Display Number?

Mar 9, 2010

how to find a free X display number?

I am using Xephyr to create a windowed session for logging in as another user. It needs its own X display, though. Obviously I can just give it :1.0 and hope for the best, that it would be better to identify the first free display and use that.

But I don't know how...

View 2 Replies View Related

OpenSUSE :: Vi Editor Ctrl-g Does Not Display Cursor Line Number

Aug 5, 2010

On Solaris UNIX, pressing Ctrl-g displays the line number for the cursor position.

i.e. line 1 0f n* --0%--

But, on suse Ctrl-g on displays the percentage only, not the hard line number

i.e. n* lines --8%--

Anyway I can make vi display hard line just like Solaris?

View 6 Replies View Related

OpenSUSE Install :: Maximum Number Of X Display Failures Reached?

May 4, 2009

I tried ubuntu for a few weeks, but I couldn't get the nvidia drivers to work, I tried everything. So, I got sick of that, and went to download OpenSuse, which seems to be even nicer (..... ) I downloaded the 11.1 liveCD (gnome) from here. I nicley got the welcome screen, and the option screen (liveCD, check errors etc.). I chose LiveCD and it started booting, I got the splash screen with the loading bar, and after it completely loaded, the screen turns black with a lot of messages and at the end:

Code:
GdmLocalDisplayFactory: Maximum number of X display failures reached: Check X server log for errors.
Great, I hoped for better luck after Ubuntu..
My sys. specs:
Asus F3Sc 32bit
Intel CentrinoDuo

[Code]...

View 2 Replies View Related

Programming :: Write A Script To Display Permission On Each Folders In $PATH Variable

Nov 26, 2010

Code:

# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

How would i write a script to display permission on each folders in $PATH variable below format.

drwxr-xr-x 2 0 root 4096 Nov 24 14:51 /usr/kerberos/sbin
drwxr-xr-x 2 0 root 4096 Nov 24 14:51 /usr/kerberos/bin

This is what i did but since it require awk programming i m stuck.

Code:

ls -ld <directoryinpath>

Code:

# echo $PATH | awk -F ":" '{ print $1 }'
/usr/kerberos/sbin

View 4 Replies View Related

Slackware :: Display The Full $PROMPT_COMMAND Environment Variable In The Konsole Title Bar?

Mar 18, 2011

IN 3.5.10 I am able to display the full $PROMPT_COMMAND environment variable in the Konsole title bar. Kind of handy and I did not need to display that information in the $PROMPT variable.

In 4.5.5 I am having trouble figuring out how to make that work correctly. The title bar displays only the directory name rather than the full path and user name.

This is my $PROMPT_COMMAND:

history -a;echo -ne "33]0;${USER}@`uname -n`: ${PWD}07"

All I see in the title bar is:

dirname: bash

I should see:

username@hostname: full path to present working directory

View 5 Replies View Related

Fedora :: 14-Maximum Number Of Clients Reached - Unable To Open Display ?

Nov 6, 2010

Ever since upgrading to Fedora 14, my system has been almost unusable. I can only have a few windows of anything open before I start getting messages about:

Maximum number of clients reachedMaximum number of clients reachedMaximum number of clients reachedMaximum number of clients reachedxwininfo: unable to open display ':0.0'

I am unable to open any new windows then and lots of programs crash.

When things are still running correctly.

A few minutes later:

View 3 Replies View Related

Programming :: Change Complex Number Display Mode (like -123.45e67 In To Real)?

May 9, 2011

How to change the complex number like -123.45e67 in to real number.
with command of awk print

View 1 Replies View Related

Software :: Failed To Install Oracle - Command To View Current DISPLAY Environment Variable Setting

Jun 28, 2010

How to install oracle? I have been tried many times but seems can't resolve the DISPLAY issues.

All installer requirements met.

Use the following command to view the current DISPLAY environment variable setting:

View 2 Replies View Related

OpenSUSE :: 11.4 Gnome 2.3 Display - CRTC Error That The Display Is Over The Maximum - 1920x1920

Apr 16, 2011

I have a fresh install of OpenSUSE 11.4 64bit and I have installed the AMD Display drivers for my Radeon HD 5970. Everything seems to be working quite well. I have a multiple monitor setup (1280x1024 monitor and a 1920x1080 monitor).

I have my primary display set to 1920x1080, however when I try to enable the second display, I get a CRTC error that the display is over the maximum (1920x1920). If I enable both monitors at lower resolutions, there is no problem.

I have done a fair bit of reading and have been unable to determine where this maximum is set, or how to change it. I'd like to be able to run both monitors at their native resolutions.

View 3 Replies View Related

Ubuntu :: HD4870 Dual Display - Cannot Seem To Swap My Primary Display

Jan 8, 2010

Hi I am new to ubuntu and am having major problems setting my displays up. my setup is a hd TV to the Left of my pc monitor, i have managed to configure catalyst to let me have a main display with the second display being an extension of the first, the problem is i cannot seem to swap my primary display, at the minute my HDTV has all the taskbars and everything on it while my pc monitor is just a blank background, i would like it so i could start a film playing for my children, then drag it across to the HDTV while i can still use my pc in the background.

View 1 Replies View Related

Fedora :: System-config-display Just Ruined Display?

Jun 29, 2010

I did not have any /etc/X11/xorg.conf, so I read on these forums that system-config-display would create one for me. I ran system-config-display and it created an xorg.conf. But now my display is all messed up!! So, I deleted the xorg.conf and nothing changed. Why on earth would the display still be messed up if I deleted the file that was causing it?? Does system-config-display change somethign else?

View 14 Replies View Related

Ubuntu :: Display Driver - Cannot Get Display Settings Nvidia7600GS?

Jan 28, 2010

I am using GeForce 7600 GSNot using the Nvidia X driver message you know... I searched all over, and seen this problem on many searches but no resolve issues.I want to be able to connect my tv, I use to be able to when I first installed Ubuntu and now IdK.

View 3 Replies View Related

Fedora :: Display All Disks And Partitions Available In A GUI Display

Dec 1, 2010

I have installed Fedora 14 Security Spin, and want to display all disks & partitions available in a GUI display. How can I achieve that?

View 1 Replies View Related

General :: Embed "DISPLAY" Variable In "su" Command?

Sep 8, 2010

I'm trying to create mozilla profile for another user from command line using su. When I'm trying from X, this will work. su myuser -c 'mozilla -CreateProfile newprofile' But my goal is to embed this to a script and it will execute only in command line mode. If I try this, from a command line, It also works: ISPLAY=1.0 mozilla -CreateProfile newprofile how to embed "DISPLAY" variable in "su" command, cause this fails: su myuser -c 'DISPLAY=1.0 mozilla -CreateProfile newprofile'

View 5 Replies View Related

Security :: Display Of Number Of Failed Logon Attempt At Logon?

Jan 26, 2010

Our system is based on RH4 and is using pam_tally and faillog to record failed attempts and to lock users out after 5 attempts. We have a requirement to provide a normal (non-root) user logging onto our system, with information regarding the number of failed logon attempts made on their account before the current successful logon (similar to the functionality provided by HP Protect Tools on Windows). My first idea was to add 'faillog -u $USER' to the bashrc, however by the time the bashrc is run - the user has been successfully authenticated and the faillog has been reset back to zero.

View 5 Replies View Related

Programming :: HTML5 "details" Tag Display - Inline - Display - Hidden CSS Ignored - Firefox - Seamonkey

Jan 11, 2011

I'm testing HTML5 for the first time, using Firefox (beta) 4.0b8 and SeaMonkey (beta) 2.1b1, and its ignoring some CSS. Specifically, I have problems with the <details> tag. (It is nested in a paragraph...I am using it to provide an in-paragraph definition in hopes it can be toggled.)

Firefox only partly supports <details>. It's not supposed to show anything except the content of <summary>, unless you click on <summary>'s content. Instead, it puts a line break before the content of <details>, splitting the paragraph in two peices (which looks silly), without the "closed/open" functionality.

So I tried using "display:inline" in my CSS, but that gets ignored. Just for fun, I also tried "display:hidden" (also ignored) and "display:none" (obeyed).

SeaMonkey doesn't doesn't do anything special with the content of <display>...but it also ignores the same CSS as Firefox.

The only thing I can do to support semantic design is apply "font-style:italic" to all <details> elements.

Granted, you might ask, "why bother using <details> at all. then?" Well, I would like to have <details> for the browsers that support it, with the "font-style:italic" to degrade the page nicely for those that don't (such as for SeaMonkey).

Does anyone know why "display:inline" and "display:hidden" get ignored?

View 1 Replies View Related

Ubuntu Networking :: Set Display And Xhost: Unable To Open Display "XXX.XXX.X.XXX:0.0"

Jul 20, 2011

I have configured an instance in AWS EC2. I am trying to set the display back so I can run x apps. I login using ssh -xy -i...

export DISPLAY=XXX.XXX.X.XXX:0.0
echo $DISPLAY to verify
xhost +
xhost: unable to open display "XXX.XXX.X.XXX:0.0"

I have commented out nolisten tcp as suggested HERE I have modified /etc/gdm/custom.conf as suggested HERE Actually, the last suggested modifying /etc/gdm/gdm.conf, but that file didn't exist, so I added the line: DisallowTCP=false to /etc/gdm/custom.conf I rebooted, and still I get: xhost: unable to open display "XXX.XXX.X.XXX:0.0"

View 2 Replies View Related







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