Author Topic: Debian On Pdaxrom  (Read 48440 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian On Pdaxrom
« Reply #75 on: November 01, 2005, 08:49:45 am »
Quote
Did you do this?
Code: [Select]
Remove the "-nolisten tcp" from /usr/X11R6/bin/startx (better, copy the line, comment the old one and change the copy)[div align=\"right\"][a href=\"index.php?act=findpost&pid=101638\"][{POST_SNAPBACK}][/a][/div]

Thanks.  I have already commented out these two lines as this:

Code: [Select]
#defaultserverargs=" -nolisten tcp -kb"
#defaultserverargs=" -nolisten tcp"

But "Crd xx" still get the same error.  How could I get around this?  Thanks.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian On Pdaxrom
« Reply #76 on: November 01, 2005, 08:50:41 am »
Quote
Hi,

I clean up debian on my SD and unpack it again, following every step in the first post, but still to no avail. 

I run the postinstall script and say "Yes" to all except the last two asking for starting VNCserver and fbvnc,

Then I did some changes to /etc/debroot.conf:
-- comment out DEB_RUN_SERVICES="ssh"
(coz chroot keeps looking for /etc/ssh upon booting up pdaX but I never manage to find /etc/ssh)
-- make sure the line is added at the end of of the file:
DEB_DISPLAY=127.0.0.1:0

Then in /usr/local/bin/Crd, I put DISPLAY=$DEB_DISPLAY at the end of the line PATH.

Next I copy .Xauthority to /mnt/card/debroot/root

Run /etc/rc.d/init.d/zdebian start, no error and back to prompt.

Then when I run Crd aterm, an error prints:
aterm: can't open display 127:0.0.1:0

So am I missing something here?  Did I do wrong in any of these steps?  I have tried over and over again but never get Debian run on top of pdaX.  Any help would be much appreciated.  Thanks!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101633\"][{POST_SNAPBACK}][/a][/div]

Maybe it's just X-apps that aren't running.

Try :
# Crd bash

Does this change your prompt ? Then you are running debian.

To make sure, do :
# apt-get update

Does it do something, or is apt-get unknown. If it does something, you are running debian.

The error you give has to do with the display settings.
- Make sure you copied .Xauthority (to ...../debroot/root and to be sure to ..../debroot/home/root)
- look over the file changes again
- make sure to leave and restart X before trying "Crd dillo"
- if you're running xfce, do the same to the startxfce4 script as to the startx script.

Good Luck
Chero

Good luck.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Debian On Pdaxrom
« Reply #77 on: November 01, 2005, 09:03:15 am »
Quote
Thanks.  I have already commented out these two lines as this:

Code: [Select]
#defaultserverargs=" -nolisten tcp -kb"
#defaultserverargs=" -nolisten tcp"

But "Crd xx" still get the same error.  How could I get around this?  Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101643\"][{POST_SNAPBACK}][/a][/div]
Don't comment out
Code: [Select]
defaultserverargs=" -nolisten tcp -kb"
Instead, change it to
Code: [Select]
defaultserverargs=" -kb"
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian On Pdaxrom
« Reply #78 on: November 01, 2005, 09:26:56 am »
Quote
Maybe it's just X-apps that aren't running.

Try :
# Crd bash

Does this change your prompt ? Then you are running debian.

To make sure, do :
# apt-get update

Does it do something, or is apt-get unknown. If it does something, you are running debian.

The error you give has to do with the display settings.
- Make sure you copied .Xauthority (to ...../debroot/root and to be sure to ..../debroot/home/root)
- look over the file changes again
- make sure to leave and restart X before trying "Crd dillo"
- if you're running xfce, do the same to the startxfce4 script as to the startx script.

Good Luck
Chero

Good luck.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101644\"][{POST_SNAPBACK}][/a][/div]

Thank you, Chero.
"Crd bash" does bring me to /#
"apt-get update" shows errors saying "Failed to fetch ..." etc.  So I guess debian is working.

But I get stuck here.  Could you tell me where to look for the startxfce4 script?  I can only find /usr/X11R6/bin/startx, not /usr/X11R6/bin/startxfce4, or do you mean xinitrc.xfce4?

Even in matchbox, running "Crd aterm" will give:
Code: [Select]
Xlib: connection to "127.0.0.1:0,0" refused by the server
Xlib: No protocol specified

aterm: can't open display 127.0.0.1:0

Also I only have /mnt/card/debroot/root, but not /mnt/card/debroot/home/root.  Do I have to add it manually?  I got confused again as to where .Xauthority should be copied to.

Sorry for these dumb questions.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian On Pdaxrom
« Reply #79 on: November 01, 2005, 09:28:43 am »
Thanks again, rehorrericha!

Actually I commented out the two lines and create a third with exactly what you are suggesting here.  Still no luck.  So what should I do then?  Thanks.

Quote
Quote
Thanks.  I have already commented out these two lines as this:

Code: [Select]
#defaultserverargs=" -nolisten tcp -kb"
#defaultserverargs=" -nolisten tcp"

But "Crd xx" still get the same error.  How could I get around this?  Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101643\"][{POST_SNAPBACK}][/a][/div]
Don't comment out
Code: [Select]
defaultserverargs=" -nolisten tcp -kb"
Instead, change it to
Code: [Select]
defaultserverargs=" -kb"[div align=\"right\"][a href=\"index.php?act=findpost&pid=101645\"][{POST_SNAPBACK}][/a][/div]

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Debian On Pdaxrom
« Reply #80 on: November 01, 2005, 09:51:12 am »
Quote
Thanks again, rehorrericha!

Actually I commented out the two lines and create a third with exactly what you are suggesting here.  Still no luck.  So what should I do then?  Thanks.
OK, I think I figured out what you did wrong:
Code: [Select]
Next I copy .Xauthority to /mnt/card/debroot/root
Copy the file to /mnt/card/debroot/home/root assuming /mnt/card/debroot is the correct path to your debroot.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian On Pdaxrom
« Reply #81 on: November 01, 2005, 11:13:05 am »
Quote
Quote
Thanks again, rehorrericha!

Actually I commented out the two lines and create a third with exactly what you are suggesting here.  Still no luck.  So what should I do then?  Thanks.
OK, I think I figured out what you did wrong:
Code: [Select]
Next I copy .Xauthority to /mnt/card/debroot/root
Copy the file to /mnt/card/debroot/home/root assuming /mnt/card/debroot is the correct path to your debroot.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101657\"][{POST_SNAPBACK}][/a][/div]

Thanks.  I corrected the path of .Xauthority and this time Crd aterm opens up a white terminal window in Matchbox.  So does it mean it's successful?  

But in Xfce4 there is still the "can't open display 127.0.0.1:0" error.  Chero mentions that I have to edit startxfce4, but I can only find startx but not startxfce4.  Any more guidance to this dummy is much appreciated.
[EDITED: Problem solved.  I am so forgetful that it is in /usr/local/bin.  After copying .Xauthority again, I get Crd aterm executed!  Thanks to all for your patience and big help.  In return if people don't mind I would like to write a step-by-step idiot summary of the whole setup process.    ]

Again did I miss something during installing Debian, because I got the root directory under /mnt/card/debroot, not /mnt/card/debroot/home/.  In fact it is empty under /mnt/card/debroot/home/  ?
« Last Edit: November 01, 2005, 11:21:57 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian On Pdaxrom
« Reply #82 on: November 01, 2005, 03:13:23 pm »
Quote
.... Chero mentions that I have to edit startxfce4, but I can only find startx but not startxfce4.  Any more guidance to this dummy is much appreciated.

Again did I miss something during installing Debian, because I got the root directory under /mnt/card/debroot, not /mnt/card/debroot/home/.  In fact it is empty under /mnt/card/debroot/home/  ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101674\"][{POST_SNAPBACK}][/a][/div]

A useful tool to install : "locate"

It's in unstable feed, it's very small, it's a must have !!!

When installed :
# updatedb.sh
This creates a database of all the file-names on the system

# locate startxfce4
This will give you :
/usr/local/bin/startxfce4

# locate startx
This will give you :
/usr/local/bin/startxfce4
/usr/X11/bin/startx

About debian : you didn't miss something, that's why I have a copy of .Xauthority in /mnt/card/debroot/home/root and in /mnt/card/debroot/root
All settings will be in the last dir.

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

whit

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Debian On Pdaxrom
« Reply #83 on: December 12, 2005, 01:02:15 am »
Quote
Otherwise, try a brutal "xhost +localhost" from the pdaxrom enviroment (this should open the X server to any connection originated from your own machine, which isn't good as an Xauthority file but for testing purposes it should do...).

Still "connot open display" (this on a 3100 with rc12)

whit

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Debian On Pdaxrom
« Reply #84 on: December 12, 2005, 01:26:01 am »
Quote
when you get to the bash prompt inside the chroot do:

export DISPLAY=127.0.0.1:0

Now that's useful. Get's it to where I can at least invoke an aterm (after a manual chroot). Firefox bombs on an "Illegal instruction," but this is progress - and that step isn't in the instructions elsewhere in this thread and another.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian On Pdaxrom
« Reply #85 on: December 12, 2005, 02:19:18 am »
Quote
Quote
when you get to the bash prompt inside the chroot do:

export DISPLAY=127.0.0.1:0

Now that's useful. Get's it to where I can at least invoke an aterm (after a manual chroot). Firefox bombs on an "Illegal instruction," but this is progress - and that step isn't in the instructions elsewhere in this thread and another.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106814\"][{POST_SNAPBACK}][/a][/div]

Did you make the changes as in the first post of this thread ?
Obviously, if you are using another window manager, make sure you change the correct files (it's the most obvious things that people are likely to forget).

I did some additional things :
1) linked ..../debroot/home/root to ..../debroot/root (debians homedir seems to be the last one)

2) created a script to start debian :
# .Xauthority changes when restarting X so :
cp /home/root/.Xauthority ..../debroot/home/root/.Xauthority
# I want access to file systems outside chroot :
mount -o bind /mnt/ide2 ...../debroot/mnt/ide2
mount -o bind /mnt/card ..../debroot/mnt/card
# I want my wifi to work :
cp /etc/reslov.conf ..../debroot/etc/resolv.conf
# initialize
/etc/rc.d/init.d/zdebian start

Start debian commands with Crd :
# Crd command (e.g. Crd aterm)
Works like a charm every time.

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

whit

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Debian On Pdaxrom
« Reply #86 on: December 12, 2005, 10:52:27 am »
Quote
Did you make the changes as in the first post of this thread ?
Yes.

Quote
Obviously, if you are using another window manager, make sure you change the correct files (it's the most obvious things that people are likely to forget).
Nope. I'm using the stock pdaXrom window manager.
Quote
I did some additional things :
1) linked ..../debroot/home/root to ..../debroot/root (debians homedir seems to be the last one)
Well, I created /debroot/home/root and copied .Xauthority to both of them - your solution is obviously better.

Quote
2) created a script to start debian :
# .Xauthority changes when restarting X so :
cp /home/root/.Xauthority ..../debroot/home/root/.Xauthority
# I want access to file systems outside chroot :
mount -o bind /mnt/ide2 ...../debroot/mnt/ide2
mount -o bind /mnt/card ..../debroot/mnt/card
# I want my wifi to work :
cp /etc/reslov.conf ..../debroot/etc/resolv.conf
# initialize
/etc/rc.d/init.d/zdebian start

The copying of resolv.conf shouldn't be necessary, if /etc/debroot.conf is being used right, since it has

Code: [Select]
DEB_COPY_INTO_CHROOT="etc/resolv.conf"
Wonder what's going wrong there?

I see that the install has also linked S99zdebian in rc.5 to zdebian, although in the context of the initialization sequence it actually throws an error (which I can't get to right now because I'm waiting to see if Synaptic will actually finish a dist-upgrade begun about 8 hours ago). I suppose if the initialization doesn't work in the startup sequence, it might as well be removed from there since in practice we're running it manually anyway.

Quote
Start debian commands with Crd :
# Crd command (e.g. Crd aterm)
Works like a charm every time.

Well, as I noted in another thread, if I:

Code: [Select]
chroot /mnt/ide2/debroot
export DEB_DISPLAY=127.0.0.1:0
aterm

then I'm in (an "xhost +localhost" may have been required before chroot'ing too). But Crd doesn't work, and on initially chroot'ing into debroot DEB_DISPLAY isn't set right, despite DEB_DISPLAY=127.0.0.1:0 being added at the end of /etc/debroot.conf.

Since a lot of other people are running into the same

Code: [Select]
aterm: can't open display 127.0.0.1:0
as I do just following the stock instructions, I have to guess that there's some factor those don't cover, perhaps a small difference between different pdaXrom revisions or platforms or little tweaks users have incidentally given their systems.
« Last Edit: December 12, 2005, 10:59:22 am by whit »

Wildherb

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Debian On Pdaxrom
« Reply #87 on: January 26, 2006, 07:13:01 pm »
I've just got the pdaXrom beta running on my C3000 and installed debian, which appears to work fine, many thanks for helping sort out the display problems. However, some of my application require the network card to 'promiscuous', for example, Driftnet which gathers all image files floating in the wireless ether. Although it will catch any image files generated while browsing on the Zaurus, I'd like to see whatever is in the air. This application did work using the same wireless card (Ambicom) on a C3100 using the Sharp Rom and debian under X/qt. Any ideas what the problem might be?
C3000 running OpenBSD 4.4
C3100 running OpenZaurus

Wildherb

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Debian On Pdaxrom
« Reply #88 on: September 11, 2006, 04:40:44 pm »
Quote
I've just got the pdaXrom beta running on my C3000 and installed debian, which appears to work fine, many thanks for helping sort out the display problems. However, some of my application require the network card to 'promiscuous', for example, Driftnet which gathers all image files floating in the wireless ether. Although it will catch any image files generated while browsing on the Zaurus, I'd like to see whatever is in the air. This application did work using the same wireless card (Ambicom) on a C3100 using the Sharp Rom and debian under X/qt. Any ideas what the problem might be?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]


To answer my own question, a Spectrum24 wireless card supports promiscuous mode and allows these apps to run as I wanted. This card runs fine under beta2 on the C3000 and can be made to work on the C3100 using the patched driver that can be found here

[a href=\"http://www.neonbox.org/zaurus/]http://www.neonbox.org/zaurus/[/url]
https://www.oesf.org/forums/index.php?showt...t=&#entry117251
C3000 running OpenBSD 4.4
C3100 running OpenZaurus

VirtusRex

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Debian On Pdaxrom
« Reply #89 on: September 30, 2006, 11:50:53 am »
Quote
Quote
Xlib: connection to "127.0.0.1:0.0" refused by server
Xlib: No protocol specifiied

Error: Can't open display!
Hi,

it seems the X server refuses to accept your chrooted Debian X client...

Try to copy again the .Xauthority file from your pdaXrom home to your chrooted debian home and see if it changes something...

Otherwise, try a brutal "xhost +localhost" from the pdaxrom enviroment (this should open the X server to any connection originated from your own machine, which isn't good as an Xauthority file but for testing purposes it should do...).

Hope this can help!

Bye,

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


Hello,

I'm trying to get debian working on my pdaxrom. So far, I can chroot to the /#. Everytime I run Aterm I get the following Error:

Xlib: connection to "127.0.0.1:0.0" refused by server
Xlib: No protocol specified

GTK-WARNING **: cannot open display: 127.0.0.1:0


I've following the guides that have been posted as best as possible, but the only one I haven't tried is try a brutal "xhost +localhost" from the pdaxrom enviroment, not sure how to do this. Can someone explain the steps required to do a brutal "xhost +localhost".

Thanks,

VirtusRex