我是靠谱客的博主 无辜石头,这篇文章主要介绍装了BT5后要做的几件事,现在分享给大家,希望可以做个参考。

装了BT5后要做的几件事

由于是在虚拟机上装的,vmware,所以,第一件事当然是装vmware-tools啦。

但是安装的过程中会提示~说内核头文件找不到。

然后我先查了内核版本:

复制代码
1
2
root@lk:~# uname -a Linux lk 2.6.39.4 #1 SMP Wed Aug 17 21:42:30 EDT 2011 x86_64 GNU/Linux



再查一下包包:

复制代码
1
2
root@lk:~# apt-cache search linux-header | grep 2.6.39 linux-headers-2.6.39.4 - Header files related to Linux kernel, specifically,



然后就安装拉:

复制代码
1
root@lk:~# apt-get install linux-headers-2.6.39.4



但是装完还是说找不到,然后我就凭感觉,进入了/usr目录,看到里面有个src目录,一般src是源代码的意思,进入,里面有内核版本的文件夹:

复制代码
1
2
3
4
5
root@bt:~# ls /usr/src/ linux/ linux-source-2.6.39.4/ linux-headers-2.6.39.4/ truecrypt-7.0a-setup-x64



但是我在安装的过程中指定了路径/usr/src/linux-headers-2.6.39.4/也还是不行,之后我发现要指定/usr/src/linux-headers-2.6.39.4/include才可以。

第二件事就是自动登录进gnome啦。

BT5默认装的是gnome-core,每次登录都是进入文本界面的,然后要输入用户名,密码,登录之后再命令startx开启图形。

很麻烦。

之后我随便敲了下命令,却说没有gdm这个服务:

复制代码
1
2
root@bt:~# service gdm restart gdm: unrecognized service



然后我检查了一下,确实没有:

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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



最后谷歌查找是没找到什么有价值的,因为我不知到怎么用关键词查找。

然后我想,或许某个包包有这个东西,于是抱着试一下的心态,结果找到了:

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)



上面那堆输出当中就有个gdm的包包,于是就装上了:

复制代码
1
root@lk:~# apt-get install gdm -y



好了,有了这个服务,那么就设置开机启动吧。

装了我一贯使用的软件chkconfig,查看了一下启动级别:

复制代码
1
2
3
4
5
6
7
8
9
root@lk:~# chkconfig --list gdm gdm 0:off 1:off 2:off 3:off 4:off 5:off 6:off



然后设置启动却出错了:

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
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



然后谷歌了一下,发现要这样,再查看,就可以了:



但是重启验证,却依旧没起来,我就不想再去弄它了,之后我在/etc/rc.local直接添加了service gdm start,这样就可以了。

好吧,开机自动起来了,但是怎么自动登录呢。

要这样改:

复制代码
1
2
3
4
5
6
7
8
root@lk:~# cat /etc/gdm/custom.conf [daemon] TimedLoginEnable=false AutomaticLoginEnable=true TimedLogin=root AutomaticLogin=root TimedLoginDelay=30 DefaultSession=gnome



就可以了。

接下去,第三件事就是装拼音输入法啦,很简单:

复制代码
1
root@lk:~# apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase



装完之后,终端输入ibus-setup设置该设置的,之后自动启动的话可以在System--->Preferences--->Startup Applications这里设置。

 

http://www.cclove.me/read_journal.php?id=258

 

转载于:https://www.cnblogs.com/keepfocus/archive/2012/03/16/2400089.html

最后

以上就是无辜石头最近收集整理的关于装了BT5后要做的几件事的全部内容,更多相关装了BT5后要做内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(111)

评论列表共有 0 条评论

立即
投稿
返回
顶部