Active Topics

 


Reply
Thread Tools
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#201
Originally Posted by offensivebias View Post
Xfce is the first you got working, that's right (forgot it). I couldn't get openwindow.py working, is it one of your other script ? (I quickly reread the thread but couldn't find it, I'm really not good at coming in the middle of a thread), I wasn't able to find it either with a <sudo find / -iname 'openwindow.py'> so it isn't in my system.
From what you outputted to me in the above post.. I think it was working it was just failing to execute the right bin.. since it failed to execute it finished the script which kills the Xephyr window manager and takes you back to the white screen...

Change the wmxfce to execute xfce4-session instead of startxfce4..

Also change the two wmctrl lines that have IceWM in them to the name that you are passing to debwm.. then launch debwm the way you were doing it earlier from inside an OS2008 terminal..

debwm xfce4 wmxfce
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#202
Originally Posted by offensivebias View Post
Xfce is the first you got working, that's right (forgot it). I couldn't get openwindow.py working, is it one of your other script ? (I quickly reread the thread but couldn't find it, I'm really not good at coming in the middle of a thread), I wasn't able to find it either with a <sudo find / -iname 'openwindow.py'> so it isn't in my system.
Sorry, as you can see from fatalsaint's posts, it is actually "openhostwin.py"

Also, fatalsaint, I don't understand why you don't just use the first parameter for the window title on "both sides"...

Code:
debwm IceWM xfce4 startwm xfce4-session
then, in debwm:
Code:
openhostwin.py $1 &
sleep 5
sudo debian $2 $1 $3 &
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#203
Originally Posted by qole View Post
Sorry, as you can see from fatalsaint's posts, it is actually "openhostwin.py"

Also, fatalsaint, I don't understand why you don't just use the first parameter for the window title on "both sides"...

Code:
debwm IceWM xfce4 startwm xfce4-session
then, in debwm:
Code:
openhostwin.py $1 &
sleep 5
sudo debian $2 $1 $3 &
AH.. I knew there'd be a way .. like i said in my very first post.. somehow using the 1st for both.. just didn't see a way off hand.. what you said should work fine.. I'll try it..

ETA: It worked beautifully... I like this way of doing it; extremely easy to boot into alternate WM's - tonight I am going to install Window Maker, Open Box, XFCE, and just make different icons in my Personal Menu to launch each different one.. Just to be able to launch one.. play around in it for a bit.. logout.. launch the next..

See if I can tell which one seems to run the smoothest .
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!

Last edited by fatalsaint; 2008-07-15 at 23:04.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#204
Update if anyone cares:
I love the more dynamic method.. I now have a functional XFCE, OpenBox, Window Maker, and IceWM... all with their own Menu Launch buttons in Personal Menu. Only problems I experienced is OpenBox, with a lack of right click, is extremely difficult to work with.. and something is fubar'd that is causing Window Maker's configuration applet to seg fault when I try and change the mouse left click from Select Window, to open Application Menu... this worked fine when I did the manual chroot with untar'ing of the bootable debian.. so something in this new debian is disagreeing with wmaker. Wmaker still functions fine, and the keyboard page works great, so a simple map of Ctrl+A gives me my app menu.. not a show stopper for Wmaker.

IceWM and XFCE are, so far, flawless... and all of these I didn't have to make any changes to the scripts after the initial changes explained earlier.. just a simple apt-get install, and a Menu Creation away and you've got a new desktop waiting for you.

very cool.

Offensivebias - I can confirm that it is xfce4-session that will launch XFCE.

Qole - I did notice something funny.. the way you do the grep to find the window ID .. I named my window ID OpenBox; and also had MicroB open to a page that had OpenBox in the title.. So it maximized my Browser and tried using it .. Definitely need to use unique names in that..
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 12 | Thanked: 2 times | Joined on Jul 2008
#205
Hello,

Thanks to you both, qole and fatalsaint, it looks like with your advices I almost have a working xfce!
I made two attempts, in the 1st I just changed the line qole told me to modify. In the second I also
changed "IceWM" to "xfce4" as fatalsaint told me. This is the output of the first attempt (I couldn't get the 2nd try output because the host window was maximized and I have to reboot my n810, so the output of the terminals are lost, sorry):

OS2008 terminal output
Code:
BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)

Enter 'help' for a list of built-in commands.

~ $ openhostwin.py xfce4
Debian chroot terminal output
Code:
Setting up the chroot...

ls: /media/mmc2/debian*.img*: No such file or directory

using image file: /media/mmc1/debian.img.ext2

Using ext2 file system

.

..

...

mount: mounting /media/usb on /debian/media/usb failed

....

Everything set up, running chroot...

[root@Debian: /]nano /usr/bin/wmxfce

[root@Debian: /]wmxfce

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6

_XSERVTransOpen: transport open failed for inet6/Nokia-N810-23-14:1

_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

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

xfce4-session: Unable to access file /home/user/.ICEauthority: Permission non accordée

FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

[root@Debian: /]Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!

FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

Last edited by offensivebias; 2008-07-16 at 09:44.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#206
yeah.. that all looks normal.. make a menu item to launch it and you'll never see it. You are just seeing all the font directories Xephyr's X server is trying to find, not finding them, and so it's skipping the directory.

As long as XFCE is loading - you're good.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#207
offensivebias, I'm not clear: is xfce4 loading? If not, what, exactly is happening instead? Are you seeing the black screen with the X cursor? If so, is it starting in the xfce4 window? Are you getting xfce4 to start?

Remember that you can hit the "home" key to get a menu of open apps, even if the xfce4 window is fullscreen.

Also, you probably ran xfce4 as root, and so you probably need to fix your permissions like so:


From the Debian chroot prompt:
Code:
chown user:users /home/user/.ICEauthority
chown user:users /home/user/.cache
chown user:users /home/user/.dbus/session-bus
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 12 | Thanked: 2 times | Joined on Jul 2008
#208
No it still doesn't launch. I tried both of your solutions. Sorry, I'll explain more clearly than my last post. I was also able (thanks qole) to get the output of the terminals with the 2nd wmxfce configuration.

1st (qole's):
->the wmxfce file:
Code:
#!/bin/sh
export DISPLAY=:0
wmctrl -r IceWM -b toggle,fullscreen
Xephyr :1 -br -screen 800x480x16 -dpi 96 -parent `wmctrl -l | grep -i xfce4 | awk '{print $1}'` -ac &
sleep 3
su user -c 'export DISPLAY=:1; xfce4-session'
export DISPLAY=:0
killall Xephyr
wmctrl -r IceWM -b toggle,fullscreen
->OS2008 terminal output:
Code:
BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)

Enter 'help' for a list of built-in commands.

~ $ openhostwin.py xfce4
->debian chroot terminal output:
Code:
chroot set up already!

Everything set up, running chroot...

[root@Debian: /]wmxfce

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6

_XSERVTransOpen: transport open failed for inet6/Nokia-N810-23-14:1

_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

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

xfce4-session: Unable to access file /home/user/.ICEauthority: Permission non accordée

FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

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

FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

[root@Debian: /]
->what I do and happens on the screen:
-I type in the OS2008 terminal "openhostwin.py xfce4"
-the host window is created
-I type in the debian chroot terminal "wmxfce"

2nd (fatalsaint's):
->the wmxfce file:
Code:
#!/bin/sh
export DISPLAY=:0
wmctrl -r xfce4 -b toggle,fullscreen
Xephyr :1 -br -screen 800x480x16 -dpi 96 -parent `wmctrl -l | grep -i xfce4 | awk '{print $1}'` -ac &
sleep 3
su user -c 'export DISPLAY=:1; xfce4-session'
export DISPLAY=:0
killall Xephyr
wmctrl -r IceWM -b toggle,fullscreen
->OS2008 terminal output:
Code:
BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) Built-in shell (ash)

Enter 'help' for a list of built-in commands.

~ $ openhostwin.py xfce4
->debian chroot terminal output:
Code:
chroot set up already!

Everything set up, running chroot...

[root@Debian: /]wmxfce

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6

_XSERVTransOpen: transport open failed for inet6/Nokia-N810-23-14:1

_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

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

xfce4-session: Unable to access file /home/user/.ICEauthority: Permission non accordée

FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

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

FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

[root@Debian: /]
->what I do and happens on the screen:
-I type in the OS2008 terminal "openhostwin.py xfce4"
-the host window is created
-I type in the debian chroot terminal "wmxfce"
-the host window is put in front and maximized
-a fullscreen black screen with an x in the center briefly appears and disappears
-the maximized host window is seen again

Last edited by offensivebias; 2008-07-16 at 20:04.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#209
That second is the way it's supposed to be.. a big black screen with an X is the Xephyr X window.. for some reason or another your xfce4-session is not launching.

In the Debian terminal type in xfce and press tab twice.. see if you have an xfce4-session available.

(have you already run apt-get install xfce4??)
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 12 | Thanked: 2 times | Joined on Jul 2008
#210
HIHAAAAAA IT WORKS!

qole:I did what you said about chown files in the "/home/user", in fact there was a bunch a files (even ".Xauthority" and the bash history file) who where root:root when I "ls -l -a"ed the repertory) and now it's slow, wrong keyboard, but IT WORKS ! I am so happy!

thank you so much guys!
 

The Following User Says Thank You to offensivebias For This Useful Post:
Reply

Tags
chroot, debian, easy debian


 
Forum Jump


All times are GMT. The time now is 01:15.