Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2007, 04:28 PM   #1
Mythago
Member
Mythago began at the beginning.
 
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
Mythago is offline   Reply With Quote
Old 03-27-2007, 04:55 PM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
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".
Adam B. is offline   Reply With Quote
Advert
Old 03-28-2007, 01:27 PM   #3
Mythago
Member
Mythago began at the beginning.
 
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!
Mythago is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:13 AM.


MobileRead.com is a privately owned, operated and funded community.