个人工具

UbuntuHelp:qingy

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:30的版本 (New page: {{From|https://help.ubuntu.com/community/qingy}} {{Languages|php5}} === Overview === [http://qingy.sourceforge.net/ qingy] is a replacement for getty. Written in C, it uses [http://www.d...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


Overview

qingy is a replacement for getty. Written in C, it uses DirectFB to provide a fast, nice GUI without the overhead of the X Windows System. It allows the user to log in and start the session of his choice (text console, gnome, kde, wmaker, ...).

Installation

Needed tools and DirectFB

First off we need to get all the packages that will be needed.

sudo apt-get install build-essential pkg-config libncurses5-dev libssl-dev libx11-dev x11proto-scrnsaver-dev libxss-dev libdirectfb-dev libdirectfb-extra
</code> 

==== DirectFB Setup ====
Ok so now we need to tell the framebuffer about your system, it needs to know your resolution and color depth. Fortunately there is a nice little tool for this called fbset.
<code> sudo apt-get install fbset </code> should do the trick. Once apt has installed fbset, you can run it with the command
<code>fbset</code>
It will give you an output something like;
<pre>
andy@Tatties:~$ fbset 

mode "1024x768-76"
    # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz
    geometry 1024 768 1024 768 16
    timings 12714 128 32 16 4 128 4
    rgba 5/11,6/5,5/0,0/0
endmode  
</code>
The output is needed to put in a configuration file called <code>/etc/fb.modes</code> .

==== Install Qingy ====


[http://qingy.sourceforge.net/images/start_small.jpg]

Given that all downloads correctly you can now go [http://sourceforge.net/project/showfiles.php?group_id=82854 download qingy](582K).
Once you have downloaded it put it in your home directory ~ .
Untar the tar.bz2 and compile;
<pre> 
tar -xjf ./qingy-0.9.5.tar.bz2
cd ./qingy-0.9.5/
./configure
make
sudo make install
</code>


Now you need to edit a few files to stop agetty spawning like normal during boot.
You will need to edit /etc/event.d/tty* where * is 1 to 5
For example
<pre>
sudo nano -w /etc/event.d/tty1

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5

stop on shutdown

respawn /sbin/getty 38400 tty1
</code>
The bottom line <code>respawn /sbin/getty 38400 tty1</code> will need to be '''commented''' out and a line below reading <code>respawn /usr/local/sbin/qingy tty1</code>
So now the file will read;
<pre>
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5

stop on shutdown

#respawn /sbin/getty 38400 tty1
respawn /usr/local/sbin/qingy tty1 '''#This line will become tty2 or 3 or 4 etc'''
</code>
Do this for each <code>/etc/event.d/tty</code>. Replacing the numbers relatively.  

'''Leave <code>/etc/event.d/tty6 </code> as is. This is our emergency terminal, if you change it you are going to have ALOT to fix!''' 


==== Remove GDM from login ====
It is now safe for you to remove GDM from the default runlevel. I would advise using a nice GTK application called <code>bum</code>, which can be installed with the usual <code>sudo apt-get install bum</code>. Once you have installed it, run it as root from a terminal <code>gksudo bum</code> and click the check box next to "GDM Login Screen". So that it is an 'off' state. Apply Changes and you will be dumpped to a Virtual Terminal. 

You could also use a number of other applications for example rcconf.

=== Running/Cross fingers ===
Ok it is time to restart, so log in to the virtual terminal as your user the use the command <code>sudo init 6</code>.
After the restart you will ''hopefully'' be presented with a nice FrameBuffer login. 

If you are not, and there is something wrong you can get back to a terminal by pressing [ctrl + alt+ F6].

[[category:UbuntuHelp]]