Author Topic: Mini Opie-x11 Howto  (Read 12119 times)

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Mini Opie-x11 Howto
« on: May 15, 2006, 02:54:19 pm »
Here is my mini Opie-X11 howto if you can't wait for a proper ipk. The benefits of this method is that X11 will only start on demand, and not automatically at startup (thus saving memory when not needed). Also it features a minimal X11 install, not the full GPE environment (this saving memory one more time).
Please give feedbacks as this howto was written after I have set up everything. This means I may have forgotten some dependencies.

---------------------------
OPIE-X11
---------------------------

Enable X11 feeds in /etc/ipkg.conf

ipkg install xserver-kdrive-fbdev
ipkg install xserver-common
ipkg install xbase-clients
ipkg install libcairo1
ipkg install gpe-session-scripts

ipkg remove -force-depends gpe-dm
ipkg remove -force-depends gpe-login

Copy the files from the zip file at the good location and chmod 755 where needed
/usr/bin/start-x11 && chmod 755
/usr/bin/goto-opie &&  && chmod 755
/usr/share/application/opie.desktop
/usr/share/application/quit.desktop

Optional: if you have font problems, edit /etc/X11/Xserver and remove dpi=200 on your model

Todo:
- fix the screen power off under X11
- find a nice OPIE startx icon!
- make an ipk of this and test it

wylbur

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #1 on: May 16, 2006, 01:42:27 am »
very nifty, I look forward to trying it out tomorrow. My hope is to get OO.o running under Opie, with as minimal additions as necessary. This might be the  route ...

-- wylbur.
SL-C3200 running Cacko 1.23 (today, at least)
Hitachi 6G microdisk replaced with SanDisk 133x 4G CF
socketcom.com CF ethernet adapter
Ambicom WL1100C-CF WiFi
Corsair 1G SD card

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Mini Opie-x11 Howto
« Reply #2 on: May 16, 2006, 03:05:31 am »
so this would be an equivallent of a rootless mode?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Mini Opie-x11 Howto
« Reply #3 on: May 16, 2006, 03:10:06 am »
Quote
so this would be an equivallent of a rootless mode?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127233\"][{POST_SNAPBACK}][/a][/div]

No, it starts the X11 server on another virtual terminal, ie fullscreen. But it lets you switch between x11 and opie with one click (or even a keyboard shorcut if you configure it).

McChubby

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #4 on: July 03, 2006, 03:29:28 pm »
Quote
Quote
so this would be an equivallent of a rootless mode?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127233\"][{POST_SNAPBACK}][/a][/div]

No, it starts the X11 server on another virtual terminal, ie fullscreen. But it lets you switch between x11 and opie with one click (or even a keyboard shorcut if you configure it).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127235\"][{POST_SNAPBACK}][/a][/div]
Hi there, thanks for the info.  I like the concept you are proposing, so thought I'd try it out...

However (I'm very new to all of this) so need further info...  I'm using a C3200 with OPIE 3.5.4.1, followed your mini-howto, and also installed gnumeric to test the setup, but I'm a bit stuck:

If I try running gnumeric from the (OPIE) console I get "Gtk-Warning **: cannot open display:", if I run start-x11 from the OPIE console which starts X in VT3, nothing else happens, and I cannot switch back to other VTs (eg Ctrl-Alt-2), unless I kill X (Ctrl-Alt-BS).

I think my problem is lack of knowledge here; can anyone fill the gaps?     I'm just getting to the point where I might become dangerous    !!

Thanks in advance.

M

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #5 on: July 12, 2006, 11:59:47 am »
Quote
Here is my mini Opie-X11 howto if you can't wait for a proper ipk. The benefits of this method is that X11 will only start on demand, and not automatically at startup (thus saving memory when not needed). Also it features a minimal X11 install, not the full GPE environment (this saving memory one more time).
Please give feedbacks as this howto was written after I have set up everything. This means I may have forgotten some dependencies.

---------------------------
OPIE-X11
---------------------------

Enable X11 feeds in /etc/ipkg.conf

ipkg install xserver-kdrive-fbdev
ipkg install xserver-common
ipkg install xbase-clients
ipkg install libcairo1
ipkg install gpe-session-scripts

ipkg remove -force-depends gpe-dm
ipkg remove -force-depends gpe-login

Copy the files from the zip file at the good location and chmod 755 where needed
/usr/bin/start-x11 && chmod 755
/usr/bin/goto-opie &&  && chmod 755
/usr/share/application/opie.desktop
/usr/share/application/quit.desktop

Optional: if you have font problems, edit /etc/X11/Xserver and remove dpi=200 on your model

Todo:
- fix the screen power off under X11
- find a nice OPIE startx icon!
- make an ipk of this and test it
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127163\"][{POST_SNAPBACK}][/a][/div]


Hello,

I have followed your instructions on my C3100.

After running your your "start-x11" script I get a black screen, with a cursor marker (x mark).

The cursor marker works: I can drag it with my pen.

Nothing else is visible, and my only way out is a reboot.

Would you have any ideas to what is happening?

Thank you...
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

tesla_cubed

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #6 on: July 19, 2006, 12:55:14 pm »
Same thing happning on my 5500   .

ssh-ing in and then chvt lets me switch between opie and X though , however on the X side of things all I get is a black screen and the X  nothing else

runing wpa_gui from the command line gave me a clue it errored with "wpa_gui: cannot connect to X server"

on further nosing around I found no apps can conect to the Xserver this is as far as I have got though

Code: [Select]
root@David-PDA:~# echo $DISPLAY
:0.0
root@David-PDA:~# wpa_gui
wpa_gui: cannot connect to X server
root@David-PDA:~# //etc/X11/Xinit
Can't open display (null)
run-parts: /etc/X11/Xinit.d/01xrandr exited with return code 1: Success
xmodmap:  unable to open display ''
run-parts: /etc/X11/Xinit.d/12keymap exited with return code 1: Success
DISPLAY is not set, aborting...
xset:  unable to open display ""
xset:  unable to open display ""
run-parts: /etc/X11/Xinit.d/55xScreenSaver exited with return code 1: Success
xrdb: Can't open display ''
run-parts: /etc/X11/Xinit.d/60xXDefaults exited with return code 1: Success
root@David-PDA:~#
this may be that I am missing some peice of setup for X beyond just the DISPLAY var
all the wihle on the Z there is just the blank screen with the X
hope this helps I am not sure where to go form here most of my linux expernce is on the Z under opie.
SL-C3200 (pdaXii)
AmbiCom Wifi
Belkin Palmtop ir keybord

sl-5500 (runing opie whatever.latest.release.is) -touchpanel
1gb SanDisk sd

tesla_cubed

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #7 on: July 20, 2006, 11:33:09 am »
Welll I got some time to play with X last evening. I found that it is working after all X apps dont just pick there display automagicly    they need to be told by AppYouWantToRun -display :display.screen so when I did

Code: [Select]
wpa_gui -display :0.0
It worked   ,  sort of the font is huge so I only see the upper left corner of the window.

GadgetGuy try from a termnal or added to the end of your Start-X11 scriprt

Code: [Select]
//usr/bin/matchbox-desktop -display :0.0
or whatever window manager for x that you like matchbox happens to be the one that is installed by default, if you add it to Start-X11 you can leave of the -display :0.0 it knows as long as its inside the script.

This gave me two questions 1st where to add
Code: [Select]
export DISPLAY=:0.0so my X apps know where to display when I start them
and 2nd how do I get a smaller font installed and tell my apps to use it so I can see them?

endor thanks for a easy way to have X on my Z I have wanted to learn it for a long time but usualy didnt have a linux box when I had time to play except the Z.  
SL-C3200 (pdaXii)
AmbiCom Wifi
Belkin Palmtop ir keybord

sl-5500 (runing opie whatever.latest.release.is) -touchpanel
1gb SanDisk sd

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #8 on: July 20, 2006, 12:14:39 pm »
Thank you for the advice.

I followed the Wiki (with some differences), and have now a complete Opie / GPE system...
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

rambold

  • Newbie
  • *
  • Posts: 1
    • View Profile
Mini Opie-x11 Howto
« Reply #9 on: August 11, 2006, 08:26:59 pm »
Quote
Hello,

I have followed your instructions on my C3100.

After running your your "start-x11" script I get a black screen, with a cursor marker (x mark).

The cursor marker works: I can drag it with my pen.

Nothing else is visible, and my only way out is a reboot.

Would you have any ideas to what is happening?

Thank you...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134845\"][{POST_SNAPBACK}][/a][/div]

I'm facing the same problem can any one advice...?
It seems that X has started running, but no application was launched
thx
C3100 OZ opie
Asus Space Link WL-110

Fushnchupsh

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #10 on: August 14, 2006, 07:52:47 am »
First off, thanks!

Any update on this?  I am having similar problems.  The enviroment loads, I see the desktop, but the folders don't seem to be populated.  I got out of x11 and checked the folders and everything seems to be correct.  How do we make the programs point in the direction of the x11 enviro?

--fish
C3200 (Conics) Pdaxrom r198
Symbol cf wifi
GE USB host "cable"
Nokia 770 (Woot!)

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Mini Opie-x11 Howto
« Reply #11 on: August 16, 2006, 08:51:01 am »
Quote
First off, thanks!

Any update on this?  I am having similar problems.  The enviroment loads, I see the desktop, but the folders don't seem to be populated.  I got out of x11 and checked the folders and everything seems to be correct.  How do we make the programs point in the direction of the x11 enviro?

--fish
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138582\"][{POST_SNAPBACK}][/a][/div]

I will install the latest OZ before the end of the week, so I will make an update to this howto. From the feedbacks it seems this is only a problem with the VT screen switching. I keep you informed through this thread.

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Mini Opie-x11 Howto
« Reply #12 on: August 16, 2006, 04:09:21 pm »
Quote
Quote
Hello,

I have followed your instructions on my C3100.

After running your your "start-x11" script I get a black screen, with a cursor marker (x mark).

The cursor marker works: I can drag it with my pen.

Nothing else is visible, and my only way out is a reboot.

Would you have any ideas to what is happening?

Thank you...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134845\"][{POST_SNAPBACK}][/a][/div]

I'm facing the same problem can any one advice...?
It seems that X has started running, but no application was launched
thx
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138315\"][{POST_SNAPBACK}][/a][/div]

Ok, I have checked. The start-x11 script is missing one line:

after /etc/X11/Xinit
add /etc/X11/Xsession

I will post an updated .zip file with all the files and a shorcut with icon to launch X11 from OPIE.

chrisl

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://web.mac.com/iepfreaks/iWeb/Site/Main%20Page.html
Mini Opie-x11 Howto
« Reply #13 on: August 27, 2006, 09:15:26 pm »
Quote
Quote
Quote
Hello,

I have followed your instructions on my C3100.

After running your your "start-x11" script I get a black screen, with a cursor marker (x mark).

The cursor marker works: I can drag it with my pen.

Nothing else is visible, and my only way out is a reboot.

Would you have any ideas to what is happening?

Thank you...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134845\"][{POST_SNAPBACK}][/a][/div]

I'm facing the same problem can any one advice...?
It seems that X has started running, but no application was launched
thx
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138315\"][{POST_SNAPBACK}][/a][/div]

Ok, I have checked. The start-x11 script is missing one line:

after /etc/X11/Xinit
add /etc/X11/Xsession

I will post an updated .zip file with all the files and a shorcut with icon to launch X11 from OPIE.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138844\"][{POST_SNAPBACK}][/a][/div]

Would you happen to have that updated .zip file anywhere around? I had thought the current one was the updated and fell into that black screen trap like the others.

By the way, I made the changes to the start-x11 script and I still fell into that black screen. Is there something else missing that I should know?
Zaurus SL-5500, Kodak CF 32 & 256 MB, generic (pqi) 1 GB SD & polaroid 1 GB SD, tkc 2a3 with home on SD, Belkin F5D6060 CF WiFi Card, MacBook Pro 1.8 GHz Core Duo, OS X 10.4.10

McChubby

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
Mini Opie-x11 Howto
« Reply #14 on: May 21, 2007, 02:09:11 pm »
Hey all,

Did anyone ever get this working or come-up with an alternative that gives a "light" X environment under OPIE?

Mc