03-27-2007, 04:28 PM | #1 |
Member
Posts: 17
Karma: 10
Join Date: Jan 2007
|
Scratchbox and app testing
Whenever I try to run an app in scratchbox (ie. DISPLAY=:0 ./xpyraminx/xpyraminx) I get the message:
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Is there an X11 config setting that would disallow connections to the X server? -Mythago |
03-27-2007, 04:55 PM | #2 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
How are you running scratchbox? Is it inside a virtual machine, or in a regular desktop linux install (Ubuntu?)?
By default, most linux distros don't allow remote X connections. You'll have to enable it in your display manager. For Ubuntu using GDM, edit /etc/gdm/gdm.conf. Change DisallowTCP=true to DisallowTCP=false. Then you'll need to restart you X session (Ctrl + Alt + Backspace or full restart). Then, you'll need to allow remote connections. You can allow all remote connections by entering "xhost +" in the command line, or "xhost + ipaddress" for a specific host. If you're still having problems connecting to your xsession, make sure the port is open. Install nmap "sudo apt-get install nmap", and then test your computer "nmap -v -A localhost". If everything is setup correctly, you should see: "Discovered open port 6000/tcp on 127.0.0.1". |
03-28-2007, 01:27 PM | #3 |
Member
Posts: 17
Karma: 10
Join Date: Jan 2007
|
I'm running Debian via vmware as described in the wiki.
Your first solution worked fine. I can now run the apps locally. Thanks! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad Scratchbox VNC Server Usage | BTolputt | iRex Developer's Corner | 2 | 02-02-2009 01:57 AM |
iLiad colinux + scratchbox ? | ericshliao | iRex Developer's Corner | 2 | 01-28-2009 09:18 AM |
iLiad Integration of ScratchBox and iRex Official SDK | ericshliao | iRex Developer's Corner | 3 | 10-09-2008 03:51 PM |
iLiad Howto create a crosscompiler for iliad27 using softfloat, with scratchbox integration | Antartica | iRex Developer's Corner | 7 | 10-26-2006 09:16 AM |
iLiad Using scratchbox with iliad binaries | Antartica | iRex Developer's Corner | 9 | 07-24-2006 07:40 AM |