个人工具
登录
查看“UbuntuHelp:Qingy”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Qingy”的源代码
来自Ubuntu中文
←
UbuntuHelp:Qingy
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/qingy}} {{Languages|UbuntuHelp:qingy}} === Overview === [http://qingy.sourceforge.net/ qingy] is a replacement for getty. Written in C, it uses [http://www.directfb.org/ 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. <pre><nowiki> sudo apt-get install build-essential pkg-config libncurses5-dev libssl-dev libx11-dev x11proto-scrnsaver-dev libxss-dev libdirectfb-dev libdirectfb-extra </nowiki></pre> ==== 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><nowiki> sudo apt-get install fbset </nowiki></code> should do the trick. Once apt has installed fbset, you can run it with the command <code><nowiki>fbset</nowiki></code> It will give you an output something like; <pre><nowiki> 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 </nowiki></pre> The output is needed to put in a configuration file called <code><nowiki>/etc/fb.modes</nowiki></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><nowiki> tar -xjf ./qingy-0.9.5.tar.bz2 cd ./qingy-0.9.5/ ./configure make sudo make install </nowiki></pre> 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><nowiki> 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 </nowiki></pre> The bottom line <code><nowiki>respawn /sbin/getty 38400 tty1</nowiki></code> will need to be '''commented''' out and a line below reading <code><nowiki>respawn /usr/local/sbin/qingy tty1</nowiki></code> So now the file will read; <pre><nowiki> # 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''' </nowiki></pre> Do this for each <code><nowiki>/etc/event.d/tty</nowiki></code>. Replacing the numbers relatively. '''Leave <code><nowiki>/etc/event.d/tty6 </nowiki></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><nowiki>bum</nowiki></code>, which can be installed with the usual <code><nowiki>sudo apt-get install bum</nowiki></code>. Once you have installed it, run it as root from a terminal <code><nowiki>gksudo bum</nowiki></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><nowiki>sudo init 6</nowiki></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]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Qingy
。