装了BT5后要做的几件事
裝了BT5后要做的幾件事
由于是在虛擬機(jī)上裝的,vmware,所以,第一件事當(dāng)然是裝vmware-tools啦。
但是安裝的過(guò)程中會(huì)提示~說(shuō)內(nèi)核頭文件找不到。
然后我先查了內(nèi)核版本:
| root@lk:~# uname -a Linux lk 2.6.39.4 #1 SMP Wed Aug 17 21:42:30 EDT 2011 x86_64 GNU/Linux |
再查一下包包:
| root@lk:~# apt-cache search linux-header | grep 2.6.39 linux-headers-2.6.39.4 - Header files related to Linux kernel, specifically, |
然后就安裝拉:
| root@lk:~# apt-get install linux-headers-2.6.39.4 |
但是裝完還是說(shuō)找不到,然后我就憑感覺(jué),進(jìn)入了/usr目錄,看到里面有個(gè)src目錄,一般src是源代碼的意思,進(jìn)入,里面有內(nèi)核版本的文件夾:
| root@bt:~# ls /usr/src/ linux/ linux-source-2.6.39.4/ linux-headers-2.6.39.4/ truecrypt-7.0a-setup-x64 |
但是我在安裝的過(guò)程中指定了路徑/usr/src/linux-headers-2.6.39.4/也還是不行,之后我發(fā)現(xiàn)要指定/usr/src/linux-headers-2.6.39.4/include才可以。
第二件事就是自動(dòng)登錄進(jìn)gnome啦。
BT5默認(rèn)裝的是gnome-core,每次登錄都是進(jìn)入文本界面的,然后要輸入用戶名,密碼,登錄之后再命令startx開(kāi)啟圖形。
很麻煩。
之后我隨便敲了下命令,卻說(shuō)沒(méi)有g(shù)dm這個(gè)服務(wù):
| root@bt:~# service gdm restart gdm: unrecognized service |
然后我檢查了一下,確實(shí)沒(méi)有:
| root@lk:~# chkconfig --list | grep dm dmesg 0:off 1:off 2:off 3:off 4:off 5:off 6:off idmapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off |
最后谷歌查找是沒(méi)找到什么有價(jià)值的,因?yàn)槲也恢皆趺从藐P(guān)鍵詞查找。
然后我想,或許某個(gè)包包有這個(gè)東西,于是抱著試一下的心態(tài),結(jié)果找到了:
| root@lk:~# apt-cache search gdm gdm-guest-session - gdm extension for guest session peace-gdm-theme - Peace look - GDM theme ldm-server - LTSP display manager (server component) ubuntustudio-gdm-theme - Ubuntu Studio - GDM theme auth2db-filters - Auth2db defaults filters pack kdm-gdmcompat - Provide basic gdm functionality to systems running kdm mythbuntu-gdm-theme - Mythbuntu GDM theme mythbuntu-default-settings - default settings for Mythbuntu runit-services - a UNIX init scheme with service supervision (services) xubuntu-gdm-theme - Xubuntu GDM & Xsplash greeter themes xubuntu-default-settings - default settings for Xubuntu ubuntume-gdm-themes - Sabily GDM themes (transitional package) sabily-gdm-themes - Sabily GDM themes sdm - Secure Display Manager - secure remote access to X11 sdm-terminal - Secure Display Manager - terminal files tropic-gdm-theme - Tropic look - GDM theme gnome-session-bin - The GNOME Session Manager - Minimal runtime gdmap - Tool to visualize diskspace gdm - GNOME Display Manager libpam-gnome-keyring - PAM module to unlock the GNOME keyring upon login ldm - LTSP display manager lxdm - LXDE display manager liblcgdm1 - LCG Data Management common libraries liblcgdm-dev - LCG Data Management common development files lxsession - a lightweight X11 session manager libpam-usb - PAM module for authentication with removable USB block devices milkytracker - Music creation tool inspired by Fast Tracker 2 xbanner - Beautify your X login screen timidity - Software sound renderer (MIDI sequencer, MOD player) |
上面那堆輸出當(dāng)中就有個(gè)gdm的包包,于是就裝上了:
| root@lk:~# apt-get install gdm -y |
好了,有了這個(gè)服務(wù),那么就設(shè)置開(kāi)機(jī)啟動(dòng)吧。
裝了我一貫使用的軟件chkconfig,查看了一下啟動(dòng)級(jí)別:
| root@lk:~# chkconfig --list gdm gdm 0:off 1:off 2:off 3:off 4:off 5:off 6:off |
然后設(shè)置啟動(dòng)卻出錯(cuò)了:
| root@lk:~# chkconfig gdm on insserv: warning: script 'K30framework-postgres' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'K20gdm' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'gdm' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'ufw' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'portmap-wait' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'dbus' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth-stop' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'gssd' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'ecryptfs-utils-restore' missing LSB tags and overrides insserv: warning: script 'framework-postgres' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'ecryptfs-utils-save' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'idmapd' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'portmap-boot' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'module-init-tools' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'cryptdisks-enable' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'hwclock-save' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'statd' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'portmap' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'dmesg' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udev' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'rsyslog' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth-log' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udevmonitor' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'cryptdisks-udev' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'network-interface' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'statd-mounting' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'avahi-daemon' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'network-interface-security' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth-splash' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'hostname' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'procps' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'mysql' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'irqbalance' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udevtrigger' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'hwclock' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'failsafe-x' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'alsa-mixer-save' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'console-setup' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udev-finish' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'rpc_pipefs' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'screen-cleanup' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'atd' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'bridge-network-interface' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'apport' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'cron' missing LSB tags and overrides insserv: There is a loop between service umountnfs and portmap if stopped insserv: loop involving service portmap at depth 3 insserv: loop involving service umountnfs at depth 2 insserv: loop involving service udev at depth 1 insserv: loop involving service networking at depth 4 insserv: loop involving service sendsigs at depth 2 insserv: There is a loop between service rsyslog and pulseaudio if stopped insserv: loop involving service pulseaudio at depth 3 insserv: loop involving service rsyslog at depth 2 insserv: loop involving service console-setup at depth 1 insserv: There is a loop between service umountnfs and portmap if stopped insserv: loop involving service umountfs at depth 9 insserv: There is a loop between service rsyslog and pulseaudio if stopped insserv: exiting now without changing boot order! /sbin/insserv failed, exit code 1 |
然后谷歌了一下,發(fā)現(xiàn)要這樣,再查看,就可以了:
但是重啟驗(yàn)證,卻依舊沒(méi)起來(lái),我就不想再去弄它了,之后我在/etc/rc.local直接添加了service gdm start,這樣就可以了。
好吧,開(kāi)機(jī)自動(dòng)起來(lái)了,但是怎么自動(dòng)登錄呢。
要這樣改:
| root@lk:~# cat /etc/gdm/custom.conf [daemon] TimedLoginEnable=false AutomaticLoginEnable=true TimedLogin=root AutomaticLogin=root TimedLoginDelay=30 DefaultSession=gnome |
就可以了。
接下去,第三件事就是裝拼音輸入法啦,很簡(jiǎn)單:
| root@lk:~# apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase |
裝完之后,終端輸入ibus-setup設(shè)置該設(shè)置的,之后自動(dòng)啟動(dòng)的話可以在System--->Preferences--->Startup Applications這里設(shè)置。
?
http://www.cclove.me/read_journal.php?id=258
?
轉(zhuǎn)載于:https://www.cnblogs.com/keepfocus/archive/2012/03/16/2400089.html
總結(jié)
以上是生活随笔為你收集整理的装了BT5后要做的几件事的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: hdu1720
- 下一篇: weka中文乱码解决办法