How do I configure to use X windows apps like "ssh -X" or Tk?

I am trying to configure my machine as an X windows server so that I can use X programs remotely via "ssh -X" or run local Python scripts that use Tk. I'm currently unable to do this an am not sure what I'm doing wrong.
I have set my DISPLAY=".0". If I run xterm in a shell I get the following error:
$ xterm
xterm Xt error: Can't open display: .0
Similarly, if I run a simple Python script that tries to create a Tk app I get the following error:
$ ./tk.py
Traceback (most recent call last):
File "./tk.py", line 6, in ?
root = Tk()
File "/sw/lib/python2.4/lib-tk/Tkinter.py", line 1569, in _init_
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: this isn't a Tk applicationcouldn't connect to display ".0"
If I try to run X-windows apps remotely via "ssh -X" it doesn't work (e.g. emacs still shows up in the terminal window).
What do I have to do to set this up?
Does anyone have a pointer to a detailed tutorial about setting the DISPLAY variable on UNIX. For example, one saying what the format of the value is. (You'd think this would be all over the internet, but I'm having a hard time Googling one up.)
Thanks.
MacBook   Mac OS X (10.4.8)  

"ssh -X" into a remote machine still
doesn't work though.
Because you need to use -Y (as someone already mentioned)
Please don't be upset at a blunt comment, but you can't get XDarwin without installing it.
However, you mention having fink. I would guess that you used fink to install something else that needed X Windows, and fink installed XDarwin for you. It would have asked you if you wanted to install dependencies and you would have said yes. If this is what happened, it happened because you hadn't first installed the X11 user package from your installation CD.
If it were my machine I would do the following: (1) remove any fink packages that require X windows, including XDarwin. (2) install X windows from the Apple CD. Install the X windows development package also. (3) reinstall the fink packages. fink should notice you have Apple's X Windows, and use it.
Then, when you start up Apple's X11 (which is in the Utilities folder, as someone else mentioned), you are starting up an X server, which is what you wanted in the first place. It will bring up a xterm window or two, as did XDarwin. In one of those use ssh -Y. Not -X. Use -Y. A while back, Apple upgraded to a more recent version of ssh, and everyone who had been using -X had to change to -Y.
You should not have to set DISPLAY. Not on the local machine, not on the remote machine. The ssh -Y command takes care of it for you on the remote machine. On the local machine it's already set for you when you start up X11. (Maybe if you run Terminal, and try to start X windows client apps from there you need to, but I never do it that way, so I can't say for sure. Some people prefer it that way.)
What's in Apple's X11 is essentially the same as what's in XDarwin. There may be some subtle differences, but I don't know what they are. The main thing is that it's confusing to have both installed.

Similar Messages

  • How many times can I use a Windows 7 disc in Bootcamp?

    Hello,
    I want to install Windows 7 on my Macbook Pro via Bootcamp, but I am wondering how many times I can use the Windows Install disc. Currently, I have one MacBook Pro, and in the near future, I will be getting an iMac. Now I want to be able to create a Windows partition for each of these computers, but I am wondering if I will be able to use the same Windows Install disc, or activation keys, or whatever. So can I use a single Windows Install disc on two different computers to create two fully-functioning Bootcamp partitions?
    Thanks for any help.

    yes an activation pair the serial nr with a guid from the hardware one install it on so it can only be activated 1 time
    (if ones computer dies then one have to call ms to be able to use the serial on a new computer)
    if one does not activate windows it will stop working after 30 days or so

  • How can I configure ang use JNDI datasource on Tomcat 4.0.x ?

    How can I configure ang use JNDI datasource on Tomcat 4.0.x ?
    Please help me , Thanks !

    Hello ,
    You need to go through the JNDI tutorial which you can access at the sun's site. It will explain all the things you need.
    By the way all you want to use JNDI datasource is JNDI class library and some naming or directory service provider, which also you can download from sun.
    Good Luck.

  • How to change to sound of notifications for apps like whatsapp, viber,

    How to change to sound of notifications for apps like whatsapp, viber?

    Use either the settings section within the app or the Sounds area of the Settings app. It all depends on how the app is programmed.
    Settings > Sounds > select the app and change the sound.

  • How is it possible to use Index Seek for LIKE %search-string% case?

    Hello,
    I have the following SP:
    CREATE PROCEDURE dbo.USP_SAMPLE_PROCEDURE(@Beginning nvarchar(15))
    AS
    SELECT * FROM HumanResources.Employee
    WHERE NationalIDNumber LIKE @Beginning + N'%';
    GO
    If I run the sp first time with param: N'94', then the following plan is generated and added to the cache:
    SQL Server "sniffs" the input value (94) when compiling the query. So for this param using Index Seek for AK_Employee_NationalIDNumber index will be the best option. On the other hand, the query plan should be generic enough to be able to handle
    any values specified in the @Beginning param.
    If I call the sp with @Beginning =N'%94':
    EXEC dbo.USP_SAMPLE_PROCEDURE N'%94'
    I see the same execution plan as above. The question is how is it possible to reuse this execution plan in this case? To be more precise, how
    Index Seek can be used in case LIKE %search-string% case. I expected that
    ONLY Index Scan operation can be used here.
    Alexey

    The key is that the index seek operator includes both seek (greater than and less than) and a predicate (LIKE).  With the leading wildcard, the seek is effectively returning all rows just like a scan and the filter returns only rows matching
    the LIKE expression.
    Do you want to say that in case of leading wildcard, expressions Expr1007 and Expr1008 (see image below) calculated such a way that
    Seek Predicates retrieve all rows from the index. And only
    Predicate does the real job by taking only rows matching the Like expression? If this is the case, then it explains how
    Index Seek can be used to resolve such queries: LIKE N'%94'.
    However, it leads me to another question: Since
    Index Seek in
    this particular case scans
    all the rows, what is the difference between
    Index Seek and Index Scan?
    According to
    MSDN:
    The Index Seek operator uses the seeking ability of indexes to retrieve rows from a nonclustered index.
    The storage engine uses the index to process
    only those rows that satisfy the SEEK:() predicate. It optionally may include a WHERE:() predicate, which the storage engine will evaluate against all rows that satisfy the SEEK:() predicate (it does not use the indexes to do this).
    The Index Scan operator retrieves
    all rows from the nonclustered index specified in the Argument column. If an optional WHERE:() predicate appears in the Argument column, only those rows that satisfy the predicate are returned.
    It seems like Index Scan is a special case of Index Seek,
    which means that when we see Index Seek in the execution plan, it does NOT mean that storage engine does NOT scan all rows. Right?
    Alexey

  • Can I use the Podcast app like the older iOS 6 Music Player?

    I've updated to iOS 7 and iTunes 11.1 and found that things seem drastically different.
    How i used to do podcasts:
    Subscribe to a podcast in iTunes on my Mac
    Sync to iPhone using a cable
    What used to happen:
    Podcasts that were selected to sync did if there were unplayed episodes
    The Music player would list only those podcasts where there were unplayed episodes
    Now things have changed.  I immediately was told that none of my podcasts were playable without the Podcast app.  I downloaded it and installed it.
    What is happening now:
    Still subscribing to a podcast in iTunes on my Mac
    Sync to iPhone using a cable
    Podcasts showing unplayed in iTunes on my Mac = 46
    Podcasts showing unplayed in the Podcast app = 57 - the difference appears to be that the podcast app is showing non-downloaded podcasts
    Podcast app showing all podcasts whether or not there are any to play.  The list includes podcasts that are not supposed to sync to my phone.
    The Podcast listing appears to be in a random order (actual list shown)-
    Apple Keynotes (no episodes)
    This week in Photo (8 episodes)
    Jake and Amir (no episodes)
    Podcast Beyond (no episodes)
    Accidental Tech Podcast (no episodes)
    Vector (1 episode)
    Podcasts with no new episodes now show a new episode though it looks like the episode is not downloaded
    I'm not sure why what is being shown in iTunes is not being shown in the Podcast app.
    Is there anyway to get the old behavior using the Podcast app?

    Additional information.   Can this be right?
    I spoke to Apple support who said that the settings for podcast syncing in iTunes are no longer being used since Apple moved to their Podcast app. 
    This may explain why I see all 45 podcasts on my iphone when I only have 15 of them set to sync.
    She also said that I would need to manually sync listened/unlistened podcasts between my Mac and my mobile devices since podcasts were no longer being synced from iTunes.
    Can anyone verify?

  • IPhone 5 unable to connect to internet or use web-based apps like Facebook or Tumblr

    About two days ago, shortly after using my iPhone 5 to upload a picture of my son eating a donut to Facebook, I seem to have lost all ability to connect to the internet or update content on web-based apps like Facebook or Tumblr.  I tried to restore my iPhone in iTunes on my computer but could not do that without first turning of "Find My iPhone," in the iCloud section of my settings.  When asked to enter my password to turn off this feature the phone is "unable to connect to iCloud."  It doesn't seem to matter if I'm connected to WiFi or using my cell data - I'm getting a strong signal in either case, but the phone is unable to connect to anything.  I CAN make phone calls and send texts but that's just about it.
    I recently updated to IOS 8.1.1 but it worked fine for several days before this problem started.  Any ideas?

    I reset my network settings (Settings > General > Reset > Reset Network Settings) and rejoined my network, and that seemed to fix it. Apps are working on wifi and on data, and I can once again send imessages. Since I couldn't find a similar post very easily, I wanted to post this for whoever needs help with this problem ;D

  • How many times can i use a  Windows XP CD?

    Just asking around here cause my Aunt would like to get windows too. How many times can a Legal,Official,Original,Windows XP SP2 Home Edition bought in Singapore be used?
    Message was edited by: iMissedMac

    Hi,
    a Windows License can be used exactly one time on one computer.
    The activation process Microsoft has established with XP prevents the usage of one license on more than one computer.
    Regards
    Stefan

  • I'd like to alter my Airport Extreme/Airport Express wireless network so that the 3 Expresses connect to the Extreme via Ethernet. I've been told this will create a more stable wifi signal. How do I configure this using Airport Utility? Thanks.

    I currently have an Airport Extreme Base Station connected to my DSL router by Ethernet. Because I have a long, sprawling home, I have 3 Airport Expresses configured to "Extend the Wireless Network" I've established. Because of my home environment--thick walls encompassaing wire mesh, sprawling rooms, etc., it is hard to maintain a continuously-strong, stable WiFi signal. I've been told that I can create a much more stable network by connecting the Express units to the AEBS via Ethernet cable. Since my home is already wired for Ethernet, I'm considering making this change. If I proceed to establish the Ethernet connections, how do I then set up Airport Utility to accomodate this switch from a Wireless-based WiFi network to an Ethernet-based WiFi network?
    Thanks in advance for any help.
    Phyllis

    I don't see anyplace in the Utility to designate HOW the Express units are connected, only how they relate on the network to the Extreme,
    As I mentioned in the previous post, when you click the Internet icon in AirPort Utility:
    Connect Using = Ethernet  (This tells each Express to connect to the Extreme using the ethernet connection)
    Connection Sharing = Off (Bridge Mode)  (This setting allows your AirPort Extreme to function as the "main" router on the network, as it must for the setup to work correctly.
    You do not need to configure anything differently on the AirPort Extreme (as long as it is working correctly now) to connect the AirPort Express devices.
    The only other question I have is the following: I'm currently already using one of the Ethernet ports on the back of the Extreme-- for my husband's iMac. I really don't think he gains much in performance over how the iMac would run through wifi, so I could disconnect the iMac. If you think the iMac would do better to stay on the Ethernet connection, should I use a switch/splitter to add an extra connection?
    Since each AirPort Express must connect using ethernet, you will need to use the 3 LAN <-> ports on the AirPort Extreme for the AirPort Express devices.
    I would suggest that you try connecting the iMac using wireless to see if that will work. If the wireless connection is not satisfactory, then you can add a 5 port ethernet switch to one of the LAN ports on the Extreme and then plug all the devices connecting using ethernet....the iMac and the 3 AirPort Express devices...into the remaining 4 ports on the switch. That will leave you with 2 open ports on the AirPort Extreme for any future devices that may need to connect.
    When you test out the system, here is a trick to find out which device your computer is actually connecting to at any given time as it "roams" around the house.
    When you have AirPort Utility open to configure each AirPort Express, jot down the AirPort ID for each Express. You can do the same for the AirPort Extreme.
    As you move around with your laptop, hold down the option key on your Mac keyboard while you click on the fan shaped AirPort icon at the top of the screen. Look for the BSSID. That is the AirPort ID of the device that the laptop is connected to at that time. it should also be the ID of the closest AirPort Express (or AirPort Extreme if the laptop is close to the Extreme at the time).
    Let us know how things are working when everything is up and running.

  • How to connect to database using sqlplusW (windows based  sqlPlus)

    Hi
    Thank you for reading my post
    I did some search and i find that i should use some kind of SYSTEM/SYSTEM@ORCLE
    to connect to database using windows based sqlplus.
    in the above SYSTEM is username and password and ORCLE is SID.
    but sqlplusw says that
    could not resolve the connect identifier specified.
    where i can find complete information about HOST string ?
    thanks

    You can look inside yours tnsnames.ora file it can be found in %ORACLE_HOME%\network\admin
    MOB92 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MOB92.world)
    Here my network service name in MOB92 so in sqlplus I would use:
    system
    password
    mob92
    and it should work. If you have no such entry in tnsnames.ora file you can use for example Network Configuration Assistant to configure your network service name.
    Best Regards
    Krystian Zieja / mob

  • How do you configure wmii using c++?

    Hi, sorry for this newb question, but I searched online on google and I get nothing about this. I only see things about wmii and configuring it with Ruby.
    According to this: https://wiki.archlinux.org/index.php/Co … w_Managers wmii can be configured by almost anything, and since it's written in C, I should be able to write the configuration file in c++, right? If not, please kindly say no and if possible, direct me to a tiling window manager that CAN be configured using c++. I don't have the time to learn a new language.
    Thanks.

    Look at the wmii topic in the wiki: https://wiki.archlinux.org/index.php/Wmii. At the end you will see a bunch of "See Also" entries. One of them is the wmii user guide, and another is the wmii web site, with a link to their user group.

  • How can I configure to use a HP Laserjet 4000 network printer on Solaris 8?

    Hi,
    I have to configure a Solaris 8 machines to print some doc on a network HP Laserjet printer. However, I have no idea how to configure it. Do anyone have some suggestion how to do it?
    Do I need JetDirect to do so?
    If yes, how can I get it?
    Thx a lot!

    Easiest and quickest way is with Jetdirect or the later HPPI - both available from HP.

  • How do you configure an ipod in Windows format if you don't have a dirty PC

    Bear with me on this one! We've just got a new Fiat 500 and it says, to play the ipod through the in car system, that you have to configure the ipod as an external disc - done. Then it says:
    'if the configuration has been made on an Apple, make the configuration in Windows format; memorize the music tracks as mp3 files not protected from copying'
    Does anyone know if this is even possible on a macbook with no windows pc anywhere to be seen (thank god!)??
    Message was edited by: Redtembo

    If you are in a country where you can re-download films then they might show in the Purchased tab in the iTunes store app on it for re-downloading. Otherwise, if you don't have a copy of them anywhere (and if they are still in the store) then you can try contacting iTunes support and see if they will grant you a re-download : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    On your laptop, what you can re-download will show under the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage :

  • How do I configure JNDI using Tomcat5.5 and Microsoft SQLServer

    Dear All,
    I wish to know about the advantages of using JNDI concepts over the normal Database connectivity using DriverManager class.
    Can anyone explain me about the advantages of using JNDI over other technology and how it would be helpful in the Web Development environment in Apache Tomcat 5.5

    check this
    http://java.sun.com/docs/books/tutorial/jndi/index.html

  • How to make Adobe Plugin use the windows print menu

    I am having the following Problem:
    I open a PDF in Firefox with the Adobe Reader Plugin. ( Everything is up to date )
    Now, when i press "print", the firefox print menu shows up, which does not contain any options
    like printing multiple pages on 1 page, which is the functionality that i require.
    ( also multiple page ranges for page selection is not available in the firefox print menu )
    Downloading the file and opening with Adobe on the computer ( and then pressing print ), however, gives me access to the complete print menu with all needed options.
    Printing directly from the browser would be more comfortable, however.
    Is there a way that i can change the print menu?

    Please provide a screenshot of the Print dialog box that is appearing under that circumstance.
    https://support.mozilla.org/en-US/kb/how-do-i-create-screenshot-my-problem <br />
    It is best to use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed a maximum file size of 1 MB.
    Then use the '''Browse ....''' button below the '''''Post a Reply''''' text box to upload the screenshot.

Maybe you are looking for

  • Call to WS from abap program

    Hi, I Create WS in BE1 (Server ) and i want to call it explicitly via Code from other backend BE2 (Client) . I followed  this procedure 1. Create WS on the Target system (in the Server). 2. Generate proxy on the client (in the client). 3. Create logi

  • ML on SSD - clone or download?

    Hi, I ordered a new Mac Mini, and I am considering to put a SSD drive in it, as described here: -->http://eshop.macsales.com/item/OWC/DIYIMM11D2/ Obviously, I want the SSD to be the boot drive, what is the best way to get OSX on it: * Download it fro

  • How can I compile an AIR app from the Flex-OEM Compiler?

    Hi all. As i've read in http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_1.html, you should run amxmlc or pass +configname=air param to mxmlc in order to compile an air application. Is there a way to do this with the OEM Compi

  • HT3805 Why does Aperture keep crashing? Thread 18. I have reinstalled Aperture 3 about 3 times since upgrading from iPhoto. Not a stable application.

    Thread 18 Crashed: 0   libsystem_c.dylib                       0x00007fff8c16e2cc memmove$VARIANT$sse3x + 1039 1   com.apple.ImageIO.framework             0x00007fff8dc2446f CGImageReadGetBytesAtOffset + 613 2   com.apple.ImageIO.framework           

  • Help in if

    hallow i wont to now how i can do if statment in this logic if a and b and c and d is not initial. end if. regards