Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, OpenVZ - Virtual Machine host - Ubuntu 8.04 guest - Ubuntu 8.10 with wine running On host; $ ssh -2 -c blowfish -X satimis@192.168.0.103 Code: satimis@192.168.0.103's password: Linux ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    About syntax


    Hi folks,


    OpenVZ - Virtual Machine
    host - Ubuntu 8.04
    guest - Ubuntu 8.10 with wine running


    On host;

    $ ssh -2 -c blowfish -X satimis@192.168.0.103
    Code:
    satimis@192.168.0.103's password: 
    Linux vz3.satimis.com 2.6.24-24-openvz #1 SMP Wed Apr 15 19:41:36 UTC 2009 i686
    
    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.
    
    To access official Ubuntu documentation, please visit:
    http://help.ubuntu.com/
    No complaint and login guest

    X forwarded to guest.

    On guest

    $ wineconsole cmd
    Code:
    Application tried to create a window, but no driver could be loaded.
    Make sure that your X server is running and that $DISPLAY is set correctly.
    Application tried to create a window, but no driver could be loaded.
    Make sure that your X server is running and that $DISPLAY is set correctly.
    err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting

    $ echo $DISPLAY
    only a blank line displayed.

    $ export $DISPLAY=":0.0"
    Code:
    -bash: export: `=:0.0': not a valid identifier

    $ export $DISPLAY=:0.0
    Code:
    -bash: export: `=:0.0': not a valid identifier

    $ export $DISPLAY=0
    Code:
    -bash: export: `=0': not a valid identifier
    None of them can work.

    Please advise what will be the correct syntax to run "export $DISPLAY"

    TIA

    B.R.
    satimis

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Just remove the '$', since it's really a variable declaration.

    If you use the $, then $DISPLAY is expanded to its value, which is an empty string, and the resulting line is this:

    Code:
    export "=:0.0"
    Hence that error message that you get, since neither of '=' nor '.' are valid characters for an identifier.

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by i92guboj View Post
    Just remove the '$', since it's really a variable declaration.

    If you use the $, then $DISPLAY is expanded to its value, which is an empty string, and the resulting line is this:

    Code:
    export "=:0.0"
    Hence that error message that you get, since neither of '=' nor '.' are valid characters for an identifier.
    Hi i92guboj,

    I got it. Exec the command without $ before DISPLAY

    Thanks


    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •