Author Topic: Graphical Login For Pdaxrom  (Read 21418 times)

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« on: May 08, 2006, 02:27:55 am »
Hi all,

I managed to get xdm working on boot, so now I have a graphical login.

I'd like to use another login manager (such as gdm or "entrance"). I know entrance(d) has been compiled, but it's not usable as such because it calls the xserver with the option "-quiet" (hardcoded) which isn't recognized by the pdaX Xserver.

Has somebody already been playing with gdm ? Most (if not all) of the dependencies are in the feed. If anybody could provide an ipk, then I could test it.
I don't have a zgcc installed myself for the moment as it's not available for beta3 (I think) and I don't really want to go back to beta2 or 1. (btw : the files are not on the pdaX site any longer)

@ scoutme : ctrl - alt - bs brings me back to the login screen, so if you combine this with the screensaver-with-password, your Z is safe.

Chero.
« Last Edit: May 12, 2006, 01:46:10 am by 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.

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Graphical Login For Pdaxrom
« Reply #1 on: May 08, 2006, 02:30:18 am »
I suppose if you really want entrance, you could rename the X server to a different filename, then create a script that just strips '-quiet' out of the parameters and calls the original.
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« Reply #2 on: May 08, 2006, 02:45:18 am »
I'd prefer gdm, since most of the deps are in the main feed. It would use less disk-space and it's easier to configure.

Thanks for the tip anyway, I might try this on my own Z.

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.

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Graphical Login For Pdaxrom
« Reply #3 on: May 08, 2006, 07:48:18 am »
Quote
I don't have a zgcc installed myself for the moment as it's not available for beta3 (I think)
Here it is:

http://mail.pdaxrom.org/contrib/1.1.0beta3/Zaurus-7x0-860/

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« Reply #4 on: May 08, 2006, 08:21:28 am »
Quote
Quote
I don't have a zgcc installed myself for the moment as it's not available for beta3 (I think)
Here it is:

http://mail.pdaxrom.org/contrib/1.1.0beta3/Zaurus-7x0-860/

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

Thanks, I'll try to compile gdm this evening.

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.

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Graphical Login For Pdaxrom
« Reply #5 on: May 08, 2006, 02:27:21 pm »
Quote
Hi all,

I managed to get xdm working on boot, so now I have a graphical login.

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

Chero:
How'd you get xdm to work? I gave up after trying for several days. Either way, I'm very excited about the possibility of either or xdm/gdm. Security at work is a big issue and until I can lock my Z down, there's a limit to how I can use it.

The Login daemon in OZ/GPE was looking promising but still buggy. One of the great features it has is a screen pickboard (although when rotated not all characters are available).

Good luck with your compilation of gdm, I'd be happy to test it for you.

Cheers,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Graphical Login For Pdaxrom
« Reply #6 on: May 08, 2006, 02:59:55 pm »
gdm!  if it works, please package it!
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

gromituk

  • Full Member
  • ***
  • Posts: 207
    • View Profile
Graphical Login For Pdaxrom
« Reply #7 on: May 08, 2006, 04:34:23 pm »
I think it's a significant step forward that you've managed to get a graphical log-in, Chero - well done.  It's always struck me as odd and rather messy that you had to start X yourself.  I hope this enhancement is included in the ROM.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« Reply #8 on: May 08, 2006, 04:48:56 pm »
Graphical login with xdm works.
It had an orientation problem, I could solve this.
Down-side : it is really ugly.

gdm also works !!!
Still have to figure out the orientation problem here, but I managed to get it running and launching matchbox/openbox.
Up-side : it's much more beautiful.

Still some testing to do, i'm off to bed now.

Goodnight,
Have fun
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.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« Reply #9 on: May 09, 2006, 02:42:06 am »
Status update :

I can't launch the gdm-setup wizard - it segfault and I don't know why.
I compiled everything in "/usr", I think it doesn't like being there. Maybe I should try "/" instead.

I found a workaround for the rotation.

This is the screen I get after reboot or after ctrl-alt-bs :

 [ Invalid Attachment ]

I've got to work now, maybe more news this evening.

Have fun,
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.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« Reply #10 on: May 09, 2006, 04:39:10 pm »
Hello,

Need some help to get rid of a few annoying things.

step 1 : BACKUP your Z

step 2 : Take a 2nd BACKUP

step 3 : make sure your BACKUPS are stored in a safe place.

step 4 : read on and prepare to reflash over and over again

step 5 : make sure you really want to experiment.

Warning 1 : read steps 1 to 5 again

Warning 2 : I can't run package-manager any longer, it starts but then X drops and falls back to login screen. Command-line ipkg works. This is one of the issues.

There are a few tar.gz files over here.
- xdm-try.tar.gz
- gdm-try.tar.gz

The first one : xdm
- it's ugly, but everything is basically installed on the zaurus when flashing.
- it's dangerous to try - if something goes wrong, there's no way to log in any longer.
- there are a few modified files in the tar.gz, just replace the ones on the zaurus and reboot.
- the file "inittab" should be placed in "/etc"
- the files in the xdm-dir in the archive should be copied in "/etc/X11/xdm"
- once this is done : reboot and pray and hope you get an ugly login screen.
What I had to to : I put xdm in run-level 5 and copied the matchbox-session in the xdm-dir. Then I had to change a few settings in the Xsetup-0 and xdm-config files.
I added "xrandr" in some of the files to get a decent orientation.

The second one : gdm
- it's more beautiful.
- you can try it before changing "inittab"
- it can be used to choose WMs (I can choose xfce4 or matchbox for now)
- the file contains :
  . data.tar.gz : the executables and libs, untar this one in "/" - then run "ldconfig"
  . /etc /inittab : read "xdm" (the last line calls gdm now instead of xdm)
  . /usr/etc/dm/Sessions : .desktop files that call the X-sessions (very simple to add)
  . /usr/etc/gdm : gdm specific files
  . /usr/local/bin/xinitrc.xfce : xfce4-init-script
- dependencies : gnome-vfs, orbit2, libglade, libgsf, librsvg, (libiconv), ...?
- if you don't know where to put all these files, wait until all bugs are out !!
- WAIT BEFORE YOU COPY THE inittab FILE OVER THE EXISTING ONE !!!!!
- copy all files where they belong
- create a user "gdm"
- try to launch gdm from command line
- if it works, copy inittab to /etc and reboot (and pray)

Don't blame me if something goes wrong, I just need some crash test dummies.
It doesn't really work yet, if you're not a test-dummy, WAIT.

Have fun,
Chero.
« Last Edit: May 09, 2006, 04:44:09 pm by 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.

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Graphical Login For Pdaxrom
« Reply #11 on: May 09, 2006, 04:48:01 pm »
incredible, excellent work.

I don't really want to be a crash test dummy, but I'll probably not be able to resist the temptaion to get gdm going on my Z.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Graphical Login For Pdaxrom
« Reply #12 on: May 09, 2006, 05:03:54 pm »
Quote
Status update :

I can't launch the gdm-setup wizard - it segfault and I don't know why.
I compiled everything in "/usr", I think it doesn't like being there. Maybe I should try "/" instead.

I found a workaround for the rotation.

This is the screen I get after reboot or after ctrl-alt-bs :

 [ Invalid Attachment ]

I've got to work now, maybe more news this evening.

Have fun,
Chero.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Chero? Whats CFLAGS are you using?

On a first look at gdm meta packge on Gentoo (gdm-2.8.0.7-r1.ebuild), give me some info:
1- This apply 4 patchs
Code: [Select]
* Applying gdm-2.4.4-selinux_remove_attr.patch ...                                 [ ok ]
 * Applying gdm-2.13.0.4-esperanto.patch ...                                        [ ok ]
 * Applying gdm-2.8-CVE-2006-1057.patch ...                                         [ ok ]
 * Fixing OMF Makefiles ...                                                         [ ok ]

2- The configure line is:
Code: [Select]
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/X11 --localstatedir=/var --with-xdmcp --with-pam-prefix=/etc --disable-ipv6 --with-tcp-wrappers --without-xinerama --without-selinux --enable-authentication-scheme=pam --disable-gtk-doc --build=i686-pc-linux-gnu
3- This use sources from:
[a href=\"http://distfiles.gentoo.org/distfiles/gdm-2.8-gentoo-files-r2.tar.bz2]http://distfiles.gentoo.org/distfiles/gdm-...iles-r2.tar.bz2[/url]
http://distfiles.gentoo.org/distfiles/gdm-2.8.0.7.tar.bz2
« Last Edit: May 09, 2006, 05:05:07 pm by anunakin »
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Graphical Login For Pdaxrom
« Reply #13 on: May 10, 2006, 01:57:15 am »
Quote
Chero? Whats CFLAGS are you using?

On a first look at gdm meta packge on Gentoo (gdm-2.8.0.7-r1.ebuild), give me some info:
1- This apply 4 patchs
Code: [Select]
* Applying gdm-2.4.4-selinux_remove_attr.patch ...                                 [ ok ]
 * Applying gdm-2.13.0.4-esperanto.patch ...                                        [ ok ]
 * Applying gdm-2.8-CVE-2006-1057.patch ...                                         [ ok ]
 * Fixing OMF Makefiles ...                                                         [ ok ]

2- The configure line is:
Code: [Select]
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/X11 --localstatedir=/var --with-xdmcp --with-pam-prefix=/etc --disable-ipv6 --with-tcp-wrappers --without-xinerama --without-selinux --enable-authentication-scheme=pam --disable-gtk-doc --build=i686-pc-linux-gnu
3- This use sources from:
http://distfiles.gentoo.org/distfiles/gdm-...iles-r2.tar.bz2
http://distfiles.gentoo.org/distfiles/gdm-2.8.0.7.tar.bz2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126315\"][{POST_SNAPBACK}][/a][/div]

I'm using gdm-2.14.5, it should have the mentioned patches in the code already.
I'll check this.

Maybe I could try the 2.8.0.7 gentoo sources.

I did a native compile, so my configure-command is shorter (most of the mentioned things are defaults anyway).

What I found out : it should be installed to /usr (prefix). So there is a chance the uploaded tarball of gdm doesn't work, unless you symlink /share/gdm to /usr/share/gdm.

Anyone risked to freeze his Z ?  

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.

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Graphical Login For Pdaxrom
« Reply #14 on: May 11, 2006, 07:02:10 am »
Quote
Quote
Chero? Whats CFLAGS are you using?

On a first look at gdm meta packge on Gentoo (gdm-2.8.0.7-r1.ebuild), give me some info:
1- This apply 4 patchs
Code: [Select]
* Applying gdm-2.4.4-selinux_remove_attr.patch ...                                 [ ok ]
 * Applying gdm-2.13.0.4-esperanto.patch ...                                        [ ok ]
 * Applying gdm-2.8-CVE-2006-1057.patch ...                                         [ ok ]
 * Fixing OMF Makefiles ...                                                         [ ok ]

2- The configure line is:
Code: [Select]
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/X11 --localstatedir=/var --with-xdmcp --with-pam-prefix=/etc --disable-ipv6 --with-tcp-wrappers --without-xinerama --without-selinux --enable-authentication-scheme=pam --disable-gtk-doc --build=i686-pc-linux-gnu
3- This use sources from:
http://distfiles.gentoo.org/distfiles/gdm-...iles-r2.tar.bz2
http://distfiles.gentoo.org/distfiles/gdm-2.8.0.7.tar.bz2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126315\"][{POST_SNAPBACK}][/a][/div]

I'm using gdm-2.14.5, it should have the mentioned patches in the code already.
I'll check this.

Maybe I could try the 2.8.0.7 gentoo sources.

I did a native compile, so my configure-command is shorter (most of the mentioned things are defaults anyway).

What I found out : it should be installed to /usr (prefix). So there is a chance the uploaded tarball of gdm doesn't work, unless you symlink /share/gdm to /usr/share/gdm.

Anyone risked to freeze his Z ?  

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

On Gentoo 2.14.x is masked like unstable and unsecury, here comments from Gentoo Testers:
Code: [Select]
# John N. Laliberte (12 Mar 2006)
# GNOME 2.14 mask. You must follow instructions here:
# http://d.g.o/~allanonjl/gnome/2.13/adding.from.overlay.txt
# for adding files from our overlay.
#Most of these packages will break/not compile because of eclass
#changes that won't be made until every package is in the tree.
#Don't unmask these and don't file bugs for them
# Start GNOME 2.14 mask
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)