• 装了BT5后要做的几件事


    装了BT5后要做的几件事

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

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

    然后我先查了内核版本:

    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



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

    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这个服务:

    root@bt:~# service gdm restart
    gdm: unrecognized service



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

    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



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

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

    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的包包,于是就装上了:

    root@lk:~# apt-get install gdm -y



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

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

    root@lk:~# chkconfig --list gdm
    gdm                       0:off  1:off  2:off   3:off   4:off   5:off   6:off



    然后设置启动却出错了:

    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,这样就可以了。

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

    要这样改:

    root@lk:~# cat /etc/gdm/custom.conf 
    
    [daemon]
    TimedLoginEnable=false
    AutomaticLoginEnable=true
    TimedLogin=root
    AutomaticLogin=root
    TimedLoginDelay=30
    DefaultSession=gnome



    就可以了。

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

    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

  • 相关阅读:
    Java 正则表达式的总结和一些小例子
    jquery用div模拟一个下拉列表框
    jquery点击div以外的区域触发事件
    Jackson 框架,轻易转换JSON
    Java Json API:Gson使用简单入门
    linux必学
    Python2 long() 函数
    Python int() 函数
    PyCharm快捷键大全
    PyCharm常用设置
  • 原文地址:https://www.cnblogs.com/keepfocus/p/2400089.html
Copyright © 2020-2023  润新知