Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: perry on October 27, 2010, 05:10:05 PM

Title: Graphical login screen.
Post by: perry on October 27, 2010, 05:10:05 PM
Hi,

I don't want to use auto login, but login screen like xdm.
So that a user has to login.

Is this possible and how ?

I use tiny core linux version 3.2.

Greeting Perry
Title: Re: Graphical login screen.
Post by: gerald_clark on October 27, 2010, 05:17:19 PM
Use the noautologin boot option.
You will get a console login prompt.
Login as tc and X will start.

There is no x/k/gdm.
Title: Re: Graphical login screen.
Post by: perry on October 27, 2010, 05:42:39 PM
Is it possible to add something like x/k/gdm ?

Perry

Use the noautologin boot option.
You will get a console login prompt.
Login as tc and X will start.

There is no x/k/gdm.
Title: Re: Graphical login screen.
Post by: gerald_clark on October 27, 2010, 05:50:00 PM
Install it from appbrowser.
Title: Re: Graphical login screen.
Post by: perry on October 27, 2010, 05:52:49 PM
I tried to install xdm, but it wil not start after boot.

tc@box:~$ cat /opt/bootlocal.sh
#!/bin/sh
# put other system startup commands here
xdm &

Perry

Install it from appbrowser.

Title: Re: Graphical login screen.
Post by: maro on October 27, 2010, 07:40:27 PM
@perry: If you would have done a search for 'xdm' in this forum you would have encountered what I wrote several month ago (http://forum.tinycorelinux.net/index.php?topic=1858.msg32052#msg32052).

I've now done a quick re-test on TC 3.2 and I don't think that anything is different. So IMHO this particular extention is "broken" and should either get repaired or removed from the repository.
Title: Re: Graphical login screen.
Post by: Jason W on October 27, 2010, 08:53:48 PM
I will mark xdm.tcz as "broken" and keep it up for reference purposes.  I have also tried it to no avail.  I will mark this in the info file, as it also uses a user.tar.gz which is long deprecated.
Title: Re: Graphical login screen.
Post by: perry on October 29, 2010, 05:37:40 PM
Is there a build script for the xdm package ?

Perry

I will mark xdm.tcz as "broken" and keep it up for reference purposes.  I have also tried it to no avail.  I will mark this in the info file, as it also uses a user.tar.gz which is long deprecated.
Title: Re: Graphical login screen.
Post by: robc on October 29, 2010, 05:51:40 PM
It doesn't look like a script (or source) is in TC's source directories. The source for xdm can be found here: http://xorg.freedesktop.org/releases/individual/app/ (http://xorg.freedesktop.org/releases/individual/app/)

Looks like the xdm extension was built for TC 1.x and never updated...and the source for that build may be from ubuntu...
Title: Re: Graphical login screen.
Post by: Jason W on October 29, 2010, 09:29:23 PM
I can't find a source for it here, perhaps was overlooked. 
Title: Re: Graphical login screen.
Post by: perry on November 03, 2010, 06:56:36 PM
Hi,

I created a compile script for xdm.

Perry

#!/bin/sh

# Check if mksquashfs is installed.
if [ ! -f /usr/local/bin/mksquashfs ]
then
        echo "error: command mksquashfs is not installed."
fi

export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"

#
# Compile and install wxgtk.
#
touch /tmp/mark-xdm
sleep 5
tar -xzvf xdm-1.1.10.tar.gz
cd xdm-1.1.10
find -type f|xargs touch
./configure --with-pam --prefix=/usr/local --with-xft=/usr/local
make

# Strip binaries.
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null

make install
ldconfig

sleep 5
find /usr/local -newer /tmp/mark-xdm -not -type d > /tmp/new-xdm.lst

cd ..

# Create the package.
for package in xdm
do
        echo $package

        # Here we create the packages.
        tar -T /tmp/new-$package.lst -czvf /tmp/nerdbox-$package.tar.gz

        mkdir -p /tmp/pkg/$package
        cd /tmp/pkg/$package
        tar -xf /tmp/nerdbox-$package.tar.gz
        cd /tmp/pkg
        mksquashfs $package nerdbox-$package.tcz

        # Create checksum file.
        md5sum nerdbox-$package.tcz > nerdbox-$package.tcz.md5.txt

        # Create info file.
        echo $package > nerdbox-$package.tcz.info
done
#
## Create depencies files.
echo ""  > nerdbox-xdm.tcz.dep