Re: asking help about installing xephyr

2009-06-18 Thread Cornelius Hald
Hi Liu!

On Thu, 2009-06-18 at 00:09 +0300, liuyp wrote:
 Hi Conny,
 
 when i try the first command you suggested, an err happened, and no
 windows opened. 

Not good, it should work ;)

 s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96
 -ac -extension Composite
 Fatal server error:
 Could not create server lock file: /tmp/.X2-lock

Ok, for some reasons your user cannot write to /tmp/ which should be
possible without problems. It looks like there is something wrong with
your ubuntu installation. Or maybe you're out of disk space? Is the
sbox user your normal user? I mean do you login into the graphical
session using this user?
What does df -h tells you? How do the permissions of /tmp look like?
Should be something like:
drwxrwxrwt  17 root root 4.0K 2009-06-18 08:07 tmp

Conny


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-18 Thread Amit Sethi
I don't know if it helps exactly but if you are planning on installing
maemo-sdk within vista you could try getting a maemo SDK virtual image from
here http://maemovmware.garage.maemo.org/ . I infact use it within my ubuntu
intrepid using virtual box because i was not able to configure the ui on my
armel target.




 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers




-- 
A-M-I-T S|S
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-18 Thread liuyp
Hi Conny and Amit,

when I open 2 terminals to run commands seperately, and change /tmp
permission, i got something like this
drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp,
 then a  GTK window come out, however there are many warnings at the same
time
you can see details as followings.

Anyway, this UI has appeared the first time since i have tried to get it
almost one week.

if you have further hints, please help a bit.

Thank you very much.

Br, liu

at  sbox terminal window

s...@liuyp-laptop:~$ df -h
FilesystemSize  Used Avail Use% Mounted on
/host/ubuntu/disks/root.disk
  8.4G  5.5G  2.5G  70% /
varrun755M  108K  755M   1% /var/run
varlock   755M 0  755M   0% /var/lock
udev  755M   56K  755M   1% /dev
devshm755M   24K  755M   1% /dev/shm
lrm   755M   40M  716M   6%
/lib/modules/2.6.24-24-generic/volatile
gvfs-fuse-daemon  8.4G  5.5G  2.5G  70% /home/sbox/.gvfs

s...@liuyp-laptop:~$ ls -l /tmp/
total 60
drwxrwxrwx 2 sbox  sbox  4096 2009-06-17 16:47 af-piddir
-rw-r--r-- 1 sbox  sbox  7203 2009-06-17 15:10 cputransp_sbox.log
drwx-- 2 liuyp liuyp 4096 2009-06-18 14:30 gconfd-liuyp
drwx-- 3 sbox  sbox  4096 2009-06-17 14:57 gconfd-sbox
srwxr-xr-x 1 sbox  sbox 0 2009-06-18 14:40 gedit-svn.sbox.880355535
drwx-- 2 sbox  sbox  4096 2009-06-17 14:57 keyring-nJALAT
-rw-r--r-- 1 sbox  sbox 5 2009-06-17 16:47 maemo-launcher.pid
drwx-- 2 liuyp liuyp 4096 2009-06-18 14:30 orbit-liuyp
drwx-- 2 sbox  sbox  4096 2009-06-18 14:40 orbit-sbox
drwxrwxr-x 2 sbox  sbox  4096 2009-06-17 16:47 osso-appl-states
drwx-- 2 sbox  sbox  4096 2009-06-17 14:57 pulse-sbox
drwx-- 2 sbox  sbox  4096 2009-06-17 14:57 seahorse-EkyRWl
-rw-rw-r-- 1 sbox  sbox33 2009-06-17 16:54 session_bus_address.sbox
srwxrwxrwx 1 sbox  sbox 0 2009-06-17 16:47 session_bus_socket
-rw--- 1 root  root 0 2009-06-17 14:55 tmp.QkxhLZ5622
drwx-- 3 sbox  sbox  4096 2009-06-17 14:58 Tracker-sbox.5969
drwx-- 2 sbox  sbox  4096 2009-06-17 14:58 virtual-sbox.EZvZnB

 s...@liuyp-laptop:/$ sudo chmod 777 -R /tmp
s...@liuyp-laptop:/$ ls -l
total 84
drwxr-xr-x   2 root root  4096 2009-06-16 12:28 bin
drwxrwxrwx   1 root root  4096 2009-06-14 14:46 boot
lrwxrwxrwx   1 root root11 2009-06-14 15:25 cdrom - media/cdrom
drwxr-xr-x  13 root root 14000 2009-06-18 14:24 dev
drwxr-xr-x 122 root root  4096 2009-06-18 14:51 etc
drwxr-xr-x   4 root root  4096 2009-06-15 14:04 home
drwxrwxrwx   1 root root  4096 2009-06-14 12:16 host
drwxr-xr-x   2 root root  4096 2009-01-20 12:01 initrd
lrwxrwxrwx   1 root root33 2009-06-14 14:44 initrd.img -
boot/initrd.img-2.6.24-24-generic
lrwxrwxrwx   1 root root33 2009-06-14 16:32 initrd.img.old -
boot/initrd.img-2.6.24-23-generic
drwxr-xr-x  16 root root  4096 2009-06-16 12:28 lib
drwx--   2 root root 16384 2009-06-14 15:25 lost+found
drwxr-xr-x   3 root root  4096 2009-01-20 12:01 media
drwxr-xr-x   2 root root  4096 2008-04-15 08:53 mnt
drwxr-xr-x   2 root root  4096 2009-01-20 12:01 opt
dr-xr-xr-x 142 root root 0 2009-06-17 17:54 proc
drwxr-xr-x   8 root root  4096 2009-06-16 01:05 root
drwxr-xr-x   2 root root  4096 2009-06-16 12:28 sbin
drwxr-xr-x  14 root root  4096 2009-06-15 14:42 scratchbox
drwxr-xr-x   2 root root  4096 2009-01-20 12:01 srv
drwxr-xr-x  12 root root 0 2009-06-17 17:54 sys
drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp
drwxr-xr-x  11 root root  4096 2009-01-20 12:05 usr
drwxr-xr-x  15 root root  4096 2009-01-20 12:21 var
lrwxrwxrwx   1 root root30 2009-06-14 14:44 vmlinuz -
boot/vmlinuz-2.6.24-24-generic
lrwxrwxrwx   1 root root30 2009-06-14 16:32 vmlinuz.old -
boot/vmlinuz-2.6.24-23-generic

s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac
-extension Composite
_XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 1777
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!

at another scratchbox terminal
[sbox-DIABLO_X86: ~]  export DISPLAY=:2
[sbox-DIABLO_X86: ~]  af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
DBUS system bus is already running, doing nothing
D-BUS session bus daemon is already running, doing nothing
Starting Maemo Launcher: maemo-launcher start failed.
Starting Sapwood image server
Starting Matchbox window manager
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting Hildon Desktop
maemo-launcher: invoking '/usr/bin/hildon-desktop.launch'
sapwood-server[10644]: GLIB INFO 

Re: asking help about installing xephyr

2009-06-18 Thread Jeremiah Foster


On Jun 18, 2009, at 14:50, liuyp wrote:


Hi Conny and Amit,

when I open 2 terminals to run commands seperately, and change /tmp   
permission, i got something like this

drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp,


This is a bit suspect. On the debian machines that I checked, /tmp  
looks like:


 drwxrwxrwt  7 root root 3391488 2009-06-18 16:10 tmp

Note the t at the end, the is the sticky bit, or rather the modern  
sticky bit for directories. From `man chmod`:


 When the sticky bit is set on a directory, files in that directory  
may be unlinked or renamed only by root or their owner.  Without the  
sticky bit, anyone able to write to the directory can delete or rename  
files.  The sticky bit is commonly found on directories, such as /tmp,  
that are world-writable.


You want to make sure this is the case it your case, it seems to point  
to a fix for some of your problems. It is a bad idea in general to  
change the perms of /tmp.


 then a  GTK window come out, however there are many warnings at the  
same time

you can see details as followings.


A lot of that you can ignore.

Anyway, this UI has appeared the first time since i have tried to  
get it almost one week.


Yay!


if you have further hints, please help a bit.


Post specific questions about specific error messages you have  
received based on specific commands. That usually helps to get answers  
faster.


Jeremiah___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-18 Thread Cornelius Hald
On Thu, 2009-06-18 at 15:50 +0300, liuyp wrote:
 Hi Conny and Amit,
 
 when I open 2 terminals to run commands seperately, and change /tmp
 permission, i got something like this
 drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp,
  then a  GTK window come out, however there are many warnings at the
 same time
 you can see details as followings.
 
 Anyway, this UI has appeared the first time since i have tried to get 
 it almost one week.

It's normal to get some warnings there. If the rest is working, just
ignore them for now. Try to install an application an run it. If that
works everything should be ok. 
 
  s...@liuyp-laptop:/$ sudo chmod 777 -R /tmp

I think the -R was a bit too much and you're missing the
directory-sticky-big t. 

 drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp

See above. Should be drwxrwxrwt.

 s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96
 -ac -extension Composite
 _XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 1777

Has to do with permissions again.

 expected keysym, got XF86KbdLightOnOff: line 70 of pc
 expected keysym, got XF86KbdBrightnessDown: line 71 of pc
 expected keysym, got XF86KbdBrightnessUp: line 72 of pc
 expected keysym, got XF86KbdLightOnOff: line 70 of pc
 expected keysym, got XF86KbdBrightnessDown: line 71 of pc
 expected keysym, got XF86KbdBrightnessUp: line 72 of pc

I don't know these.

 Could not init font path element /usr/share/fonts/X11/cyrillic,
 removing from list!

That's normal. I also get a lot of errors about config/hal and stuff,
but it's still working :)

 at another scratchbox terminal
 [sbox-DIABLO_X86: ~]  export DISPLAY=:2
 [sbox-DIABLO_X86: ~]  af-sb-init.sh start
 Note: For remote X connections DISPLAY should contain hostname!
 Sample files present.
 DBUS system bus is already running, doing nothing
 D-BUS session bus daemon is already running, doing nothing
 Starting Maemo Launcher: maemo-launcher start failed.
 Starting Sapwood image server
 Starting Matchbox window manager
 Starting clipboard-manager
 Starting Keyboard
 maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
 Starting Hildon Desktop
[...]

I didn't check that line by line, but it looks quite familiar to me. If
you have any concrete problems - write again.

Cheers!
Conny


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-17 Thread liuyp

come on... buddy..:confused::confused:
-- 
View this message in context: 
http://n2.nabble.com/asking-help-about-installing-xephyr-tp3089295p3093252.html
Sent from the maemo-developers mailing list archive at Nabble.com.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-17 Thread Cornelius Hald
Hi,

liuyp wrote:
 Hi maemo and linux  experts,
 I am quite new to linux and maemo. I can\t install xephyr of maemo 4.1.2 
 diablo in my ubuntu 8.04 (Wubi within vista), and some errs happened as 
 following.  I have been struggling for it long time. please give your 
 hands kindly.
 
  
 s...@liuyp-laptop:~$ DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac -br :1 

Try this one please (one line):

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite

If it´s opening a window you´re done. After that log into scratchbox and 
execute:
export DISPLAY=:2
af-sb-init.sh start

Cheers!
Conny

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


asking help about installing xephyr

2009-06-16 Thread liuyp
Hi maemo and linux  experts,
I am quite new to linux and maemo. I can\t install xephyr of maemo 4.1.2
diablo in my ubuntu 8.04 (Wubi within vista), and some errs happened as
following.  I have been struggling for it long time. please give your hands
kindly.


s...@liuyp-laptop:~$ DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac -br :1 
[1] 8356
s...@liuyp-laptop:~$ expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!

s...@liuyp-laptop:~$ DISPLAY=:2 Xephyr -screen 480x640 -dpi 283 -ac -br :1 

Fatal server error:
Server is already active for display 1
If this server is no longer running, remove /tmp/.X1-lock
and start again.

[2] 8362
[2]+  Exit 1  DISPLAY=:2 Xephyr -screen 480x640 -dpi 283 -ac
-br :1
s...@liuyp-laptop:~$ DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac -br :1
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server
:0.0
  after 579 requests (579 known processed) with 0 events remaining.

[2] 8416
[1]   Exit 1  DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac
-br :1
s...@liuyp-laptop:~$ expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!

s...@liuyp-laptop:~$ XIO:  fatal IO error 11 (Resource temporarily
unavailable) on X server :0.0
  after 324 requests (324 known processed) with 0 events remaining.

[2]+  Exit 1  DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac
-br :1
s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac
-extension Composite

Xephyr cannot open host display. Is DISPLAY set?
s...@liuyp-laptop:~$ scratchbox

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-DIABLO_X86: ~]  export DISPLAY=:2
[sbox-DIABLO_X86: ~]  af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
Starting DBUS system bus
Starting D-BUS session bus daemon
Starting Maemo Launcher: maemo-launcher.
maemo-launcher: warning rising the oom shield for pid=8526 status=5632
Starting Sapwood image server
Starting Matchbox window manager
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting Hildon Desktop
maemo-launcher: invoking '/usr/bin/hildon-desktop.launch'
[sbox-DIABLO_X86: ~]  _X11TransSocketINETConnect() can't get address for
localhost:6002: Temporary failure in name resolution
sapwood-server[8537]: GLIB WARNING ** Gdk - cannot open display:
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
matchbox-wm: can't open display! check your DISPLAY variable.
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
Could not open display. Is the DISPLAY environment variable set?
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
hildon-input-method[8569]: GLIB WARNING ** Gtk - cannot open display:
maemo-launcher: child (pid=8569) terminated due to exit()=1
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
hildon-desktop[8584]: GLIB WARNING ** Gtk - cannot open display:
maemo-launcher: child (pid=8584) terminated due to exit()=1

[sbox-DIABLO_X86: ~]  logout
s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -fp
/usr/share/fonts/X11/cyrillic  -dpi 96 -ac -extension Composite

Xephyr cannot open host display. Is DISPLAY set?

s...@liuyp-laptop:~$ scratchbox

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-DIABLO_X86: ~]  export DISPLAY=:2
[sbox-DIABLO_X86: ~]  af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
DBUS system bus is already running, doing nothing
D-BUS session bus daemon is already running, doing nothing
Starting Maemo Launcher: maemo-launcher start failed.
Starting Sapwood image server
Starting Matchbox window manager
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting Hildon Desktop
maemo-launcher: invoking '/usr/bin/hildon-desktop.launch'