特殊:Badtitle/NS100:Qingy:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第26行: | 第26行: | ||
The output is needed to put in a configuration file called <code><nowiki>/etc/fb.modes</nowiki></code> . | The output is needed to put in a configuration file called <code><nowiki>/etc/fb.modes</nowiki></code> . | ||
==== Install Qingy ==== | ==== 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). | 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 ~ . | Once you have downloaded it put it in your home directory ~ . |
2008年10月20日 (一) 00:25的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/qingy }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/af | • {{#if: UbuntuHelp:qingy|Afrikaans| [[::Qingy/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ar | • {{#if: UbuntuHelp:qingy|العربية| [[::Qingy/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/az | • {{#if: UbuntuHelp:qingy|azərbaycanca| [[::Qingy/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/bcc | • {{#if: UbuntuHelp:qingy|جهلسری بلوچی| [[::Qingy/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/bg | • {{#if: UbuntuHelp:qingy|български| [[::Qingy/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/br | • {{#if: UbuntuHelp:qingy|brezhoneg| [[::Qingy/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ca | • {{#if: UbuntuHelp:qingy|català| [[::Qingy/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/cs | • {{#if: UbuntuHelp:qingy|čeština| [[::Qingy/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/de | • {{#if: UbuntuHelp:qingy|Deutsch| [[::Qingy/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/el | • {{#if: UbuntuHelp:qingy|Ελληνικά| [[::Qingy/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/es | • {{#if: UbuntuHelp:qingy|español| [[::Qingy/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/fa | • {{#if: UbuntuHelp:qingy|فارسی| [[::Qingy/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/fi | • {{#if: UbuntuHelp:qingy|suomi| [[::Qingy/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/fr | • {{#if: UbuntuHelp:qingy|français| [[::Qingy/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/gu | • {{#if: UbuntuHelp:qingy|ગુજરાતી| [[::Qingy/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/he | • {{#if: UbuntuHelp:qingy|עברית| [[::Qingy/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/hu | • {{#if: UbuntuHelp:qingy|magyar| [[::Qingy/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/id | • {{#if: UbuntuHelp:qingy|Bahasa Indonesia| [[::Qingy/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/it | • {{#if: UbuntuHelp:qingy|italiano| [[::Qingy/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ja | • {{#if: UbuntuHelp:qingy|日本語| [[::Qingy/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ko | • {{#if: UbuntuHelp:qingy|한국어| [[::Qingy/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ksh | • {{#if: UbuntuHelp:qingy|Ripoarisch| [[::Qingy/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/mr | • {{#if: UbuntuHelp:qingy|मराठी| [[::Qingy/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ms | • {{#if: UbuntuHelp:qingy|Bahasa Melayu| [[::Qingy/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/nl | • {{#if: UbuntuHelp:qingy|Nederlands| [[::Qingy/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/no | • {{#if: UbuntuHelp:qingy|norsk| [[::Qingy/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/oc | • {{#if: UbuntuHelp:qingy|occitan| [[::Qingy/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/pl | • {{#if: UbuntuHelp:qingy|polski| [[::Qingy/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/pt | • {{#if: UbuntuHelp:qingy|português| [[::Qingy/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ro | • {{#if: UbuntuHelp:qingy|română| [[::Qingy/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/ru | • {{#if: UbuntuHelp:qingy|русский| [[::Qingy/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/si | • {{#if: UbuntuHelp:qingy|සිංහල| [[::Qingy/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/sq | • {{#if: UbuntuHelp:qingy|shqip| [[::Qingy/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/sr | • {{#if: UbuntuHelp:qingy|српски / srpski| [[::Qingy/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/sv | • {{#if: UbuntuHelp:qingy|svenska| [[::Qingy/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/th | • {{#if: UbuntuHelp:qingy|ไทย| [[::Qingy/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/tr | • {{#if: UbuntuHelp:qingy|Türkçe| [[::Qingy/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/vi | • {{#if: UbuntuHelp:qingy|Tiếng Việt| [[::Qingy/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/yue | • {{#if: UbuntuHelp:qingy|粵語| [[::Qingy/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/zh | • {{#if: UbuntuHelp:qingy|中文| [[::Qingy/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/zh-hans | • {{#if: UbuntuHelp:qingy|中文(简体)| [[::Qingy/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:qingy | UbuntuHelp:qingy | {{#if: | :}}Qingy}}/zh-hant | • {{#if: UbuntuHelp:qingy|中文(繁體)| [[::Qingy/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:qingy|:Qingy|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Qingy/zh | | {{#ifexist: Qingy/zh | | {{#ifeq: {{#titleparts:Qingy|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Qingy|1|-1|}} | zh | | }}
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
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.
sudo apt-get install fbset
should do the trick. Once apt has installed fbset, you can run it with the command
fbset
It will give you an output something like;
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
The output is needed to put in a configuration file called /etc/fb.modes
.
Install Qingy
[1] Given that all downloads correctly you can now go download qingy(582K). Once you have downloaded it put it in your home directory ~ . Untar the tar.bz2 and compile;
tar -xjf ./qingy-0.9.5.tar.bz2 cd ./qingy-0.9.5/ ./configure make sudo make install
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
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
The bottom line respawn /sbin/getty 38400 tty1
will need to be commented out and a line below reading respawn /usr/local/sbin/qingy tty1
So now the file will read;
# 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'''
Do this for each /etc/event.d/tty
. Replacing the numbers relatively.
Leave /etc/event.d/tty6
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 bum
, which can be installed with the usual sudo apt-get install bum
. Once you have installed it, run it as root from a terminal gksudo bum
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 sudo init 6
.
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].