How to install Qingy on Fedora 8, 9, or 10

How to install Qingy on Fedora. This will work on Fedora 8, Fedora 9, or Fedora 10. It’s all the same, so this will apply to all Fedora versions with directfb and directfb-devel in the repository. If you don’t find them in the repos, just build them from source too.

If you try to configure the Qingy source without directfb AND directfb-devel installed, it will bail. It doesn’t need anywhere the latest version of directfb, so just grab it from the standard fedora repositories.

This is the message you’ll see if you’re missing directfb-devel (or missing both directfb and directfb-devel)

checking for X11/extensions/scrnsaver.h… yes
checking for XOpenDisplay in -lX11… yes
checking for XCloseDisplay in -lX11… yes
checking for XScreenSaverQueryExtension in -lXss… yes
checking for XScreenSaverAllocInfo in -lXss… yes
checking for XScreenSaverQueryInfo in -lXss… yes
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for DIRECTFB… no
configure: error: No package ‘directfb’ found
*** DirectFB 0.9.24 or newer is required. The latest version
*** of DirectFB is available from http://www.directfb.org/.

So start by installing Directfb and the development package with YUM
$ sudo yum search directfb

========== Matched: directfb ==========
directfb.i386 : Graphics abstraction library for the Linux Framebuffer Device
directfb.x86_64 : Graphics abstraction library for the Linux Framebuffer Device
directfb-devel.i386 : Development files for DirectFB
directfb-devel.x86_64 : Development files for DirectFB
mplayer.x86_64 : Movie player playing most video formats and DVDs
xine-lib.i386 : Xine library
xine-lib.x86_64 : Xine library
xine-lib-extras.x86_64 : Additional plugins for xine-lib

$ sudo yum install directfb


Resolving Dependencies
–> Running transaction check
—> Package directfb.x86_64 0:1.0.0-3.fc8 set to be updated
—> Package directfb.i386 0:1.0.0-3.fc8 set to be updated

–> Finished Dependency Resolution

Total download size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): directfb-1.0.0-3.fc8.i386.rpm
(2/2): directfb-1.0.0-3.fc8.x86_64.rpm

Installed:
directfb.x86_64 0:1.0.0-3.fc8
directfb.i386 0:1.0.0-3.fc8
Complete!

$ sudo yum install directfb


Resolving Dependencies
–> Running transaction check
—> Package directfb-devel.x86_64 0:1.0.0-3.fc8 set to be updated
–> Processing Dependency: libsysfs-devel for package: directfb-devel
—> Package directfb-devel.i386 0:1.0.0-3.fc8 set to be updated
–> Running transaction check
—> Package libsysfs-devel.x86_64 0:2.1.0-4.fc8 set to be updated
–> Finished Dependency Resolution

Installed:
directfb-devel.i386 0:1.0.0-3.fc8
directfb-devel.x86_64 0:1.0.0-3.fc8
Dependency Installed:
libsysfs-devel.x86_64 0:2.1.0-4.fc8
Complete!

Download the Qingy source and unpack it
$ tar -xjvf qingy-0.9.7.tar.bz2

qingy-0.9.7/
qingy-0.9.7/doc/
qingy-0.9.7/doc/version.texi

qingy-0.9.7/qingy.spec
qingy-0.9.7/ChangeLog
qingy-0.9.7/COPYING

cd into qingy and run the configuration script

$ cd qingy-0.9.7
$ ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes

config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands

Configuration:

Source code location: .
Target distribution: fedora
Compiler: gcc
Compiler flags: -pipe -W -Wall -Os -fomit-frame-pointer

Password library: pam
Screen savers support: yes
gpm locking support: yes
Crypto support: openssl
X support: yes
DirectFB support: yes
Libs: -lpthread -ldl -lcrypt

Install qingy as root…
$ sudo make install

Making install in src
make[1]: Entering directory `/home/ninja/Download/qingy-0.9.7/src’
Making install in libraries
make[2]: Entering directory `/home/ninja/Download/qingy-0.9.7/src/libraries’
make install-am

make[2]: Nothing to be done for `install-data-am’.
make[2]: Leaving directory `/home/ninja/Download/qingy-0.9.7′
make[1]: Leaving directory `/home/ninja/Download/qingy-0.9.7′

Now edit the /etc/inittab file. and change the terminals from mingetty to qingy. Change:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

to

1:12345:respawn:/usr/local/sbin/qingy tty1
2:12345:respawn:/usr/local/sbin/qingy tty2
3:12345:respawn:/usr/local/sbin/qingy tty3
4:12345:respawn:/usr/local/sbin/qingy tty4
5:12345:respawn:/usr/local/sbin/qingy tty5
6:12345:respawn:/sbin/mingetty tty6

Fedora starts the gdm login manager in run level 5 by default. You can’t run them both, so if you want qingy, edit /etc/inittab and change the line:

id:5:initdefault:

to

id:3:initdefault:

If you want qingy to pop up automatically at boot you will have to configure it to run in tty1.

Here’s the options for the qingy binary:

$ ./qingy

qingy version 0.9.7

usage: qinqy [options]
Options:
-t, –text-mode
Perform a text-mode login prompt (no graphics).

-f , –fb-device
Use as framebuffer device.

-p, –hide-password
Do not show password asterisks.

-l, –hide-lastuser
Do not display last user name.

-d, –disable-lastuser
Do not remember last user name.

-n, –no-shutdown-screen
Close DirectFB mode before shutting down.
This way you will see system shutdown messages.

-r x, –resolution x
Do not detect framebuffer resolution, use this one instead.

-h, –help
Print this help message.

Posted by admica   @   26 January 2009

Related Posts

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« How to Encrypt a device using dm-crypt
Next Post
Operating Systems Analogy to cars and car dealerships »
Powered by Wordpress   |   Lunated designed by ZenVerse