• [原]debian lenny安装配置笔记, 未完成...


    //===========================================================================
    启动
    //---------------------------------------------------------------------------
    debian-503-i386-netinst.iso最小化安装
    修改了/boot/grub/menu.lst中root为hda, sda等, 使用UUID(没起作用)
    修改了/etc/fstab挂载分区为UUID


    //===========================================================================

    //---------------------------------------------------------------------------
    deb http://ftp.debian.org/debian/ lenny main contrib non-free
    deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
    deb http://www.debian-multimedia.org/ lenny main
    deb-src http://www.debian-multimedia.org/ lenny main

    下载http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb
    dpkg -i debian-multimedia-keyring_2008.10.16_all.deb


    //===========================================================================
    Xorg
    //---------------------------------------------------------------------------
    aptitude update
    aptitude install xorg xserver-xorg
    aptitude install slim

    adduser sunny powerdev

    //修改startx时启动gnome, kde或其它
    update-alternatives --config x-session-manager

    openbox
    obconf
    gtk2-engines //不安装界面像win98
    lxappearance / gtk-chtheme //更换gtk theme使用
    gnome-icon-theme
    fbpanel

    libsmbios-bin radeontool uswsusp vbetool
    pcmanfm --without-recommends
    markauto libsmbios-bin radeontool uswsusp vbetool //with recommend gksu not installed

    sunny用户登陆tty1时自动startx, 在~sunny/.profile后添加
    if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
        startx
        logout
    fi


    //===========================================================================
    //中文配置
    //---------------------------------------------------------------------------
    aptitude install locales
    dpkg-reconfigure locales

    选择了下面的locale:
    en_US.ISO-8859-1
    en_US.UTF-8
    zh_CN.GB2312
    zh_CN.GB18030
    zh_CN.UTF-8
    zh_CN.GBK
    zh_TW.BIG5
    zh_TW.UTF-8
    缺省local仍设为en_US.utf8
    可使用locale -a查看

    字体:
    ttf-arphic-ukai
    ttf-arphic-uming
    xfonts-wqy
    ttf-bitstream-vera
    将.fonts.conf放到~/下

    echo "set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936" >> /etc/vim/vimrc

    aptitude install fcitx
    vi /etc/X11/Xsession.d/95fcitx
    export LANG="en_US.UTF-8"
    export LC_CTYPE="zh_CN.UTF-8"
    export XMODIFIERS="@im=fcitx"
    fcitx &
    编辑~/.fcitx/config配置

    将微软字体拷贝到/usr/local/share/fonts/msfonts/
    chmod a+r /usr/local/share/fonts/msfonts/*
    fc-cache /usr/local/share/fonts/msfonts/
    fc-list可查看安装的字体

    //~/.xinitrc "exec startlxde"前加入:
    //export LC_ALL=zh_CN.UTF-8
    //export LANGUAGE=zh_CN.UTF-8
    //export LANG=zh_CN.UTF-8


    //===========================================================================
    //驱动
    //---------------------------------------------------------------------------
    声卡
    //---------------------------------------------------------------------------
    aptitude install alsa-base alsa-utils alsa-oss
    alsaconf在出现的界面里选择第一个snd-ens1371(AudioPCI-97),一路回车。
    alsamixer调节音量。
    alsactl store保存设置。
    cat /dev/urandom > /dev/dsp。如果有声音,则表示声卡已经正确的驱动起来了。

    //---------------------------------------------------------------------------
    摄像头 ??? 待验证
    //---------------------------------------------------------------------------
    aptitude install gspca-modules-`uname -r` -y
    手动加载模块:modprobe gspca
    可在文件 /etc/modules中加入一行:gspca


    //===========================================================================
    禁用pc喇叭
    //---------------------------------------------------------------------------
    控制台 echo "set bell-style none">> ~/.inputrc
    rxvt ~/.bashrc中添加xset b off
    关闭vim的响铃, 在/etc/vim/vimrc最后添加: set vb t_vb=


    //===========================================================================
    "Starting MTA..."造成启动慢的问题
    //---------------------------------------------------------------------------
    编辑/etc/exim4/update-exim4.conf.conf, dc_minimaldns='true'
    dpkg-reconfigure exim4-config


    //===========================================================================
    JAVA
    //---------------------------------------------------------------------------
    aptitude install sun-java6-jre
    update-alternatives --config java
    编辑/etc/environment, 在其中添加如下两行:
    CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib
    JAVA_HOME=/usr/lib/jvm/java-6-sun
    新建/etc/jvm,将文件中的/usr/lib/jvm/java-6-sun这一行填入到配置块的顶部


    安装JDK(可选)
    aptitude install sun-java6-jdk -y
    安装浏览器的JAVA Plugin(可选):
    aptitude install sun-java6-plugin -y

    fedora java显示中文
    update-alternatives --config java 获取java安装路径
    cd /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib
    mkdir -p fonts/fallback
    cd fonts/fallback
    ln -s /usr/share/fonts/microsoft/msyh.ttf


    //===========================================================================
    开发工具
    //---------------------------------------------------------------------------
    build-essential
    glibc-doc
    gdb
    libtool
    autoconf
    automake
    subversion
    cvs
    git
    qrfcview //testing rfc阅读工具
    minicom
    //todo: tftp工具
    docbook

    vim-gtk
    ctags
    cscope

    ddd
    //可选Insight, 与ddd类似的工具

    splint
    flawfinder

    调用跟踪器:
    strace:系统调用跟踪器,能够跟踪您的程式所调用的系统调用
    ltrace:动态库调用跟踪器,能够跟踪您的程式所调用的动态库接口

    内存管理检查器:
    valgrind //52.9M, 很优秀的内存检查器,能够帮助您检测您程式中的内存错误。另外还能够对cache的使用和堆(也能够包括栈)的使用进行分析,让您能够优化您的代码

    性能分析器:
    gprof:binutils中带的性能分析器,能够帮助您优化您的代码,提高程式速度
    qprof:另一个性能分析器,支持动态库的性能分析和多线程、多进程性能分析
    oprofile:一个系统范围的性能分析器,使用内核模块和一个后台进程进行数据采集,他不但能够获得某个进程的性能分析数据还能够获得内核的性能分析数据

    //todo Bison 是替代yacc的语法解析器
    //todo cmake
    //todo SourceNavigator, 没有直接可安装的版本


    //===========================================================================
    多媒体
    //---------------------------------------------------------------------------
    mplayer
    w32codecs //35.2M
    smplayer //testing, --without-recommends, smplayer-themes qt4-qtconfig not installed
    //todo mozilla-mplayer
    //todo vlc

    //===========================================================================
    电源管理
    //---------------------------------------------------------------------------
    //todo


    //===========================================================================
    显卡
    //---------------------------------------------------------------------------
    mesa-utils for glxinfo


    修改/etc/inittab, 注释掉tty4, tty5, tty6。只留下tty1, tty2, tty3

    /root/.bashrc中增加:
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
    alias vi='vim'



    将firefox-3.5.3.tar.bz2解压到/opt
    cd /usr/local/bin
    ln -s /opt/firefox/firefox firefox
    地址栏输入about:config
    general.useragent.locale 由en-US改为zh-CN
    安装http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.5.3/linux-i686/xpi/zh-CN.xpi
    启用退格键: browser.backspace_action,从 2 改成 0
    禁用IPv6: network.dns.disableIPv6, 将值改为 true
    启动时为脱机工作: toolkit.networkmanager.disable由false改为true
    有时狂读硬盘: urlclassifier.updatecachemax改为1024000, Edit->Preference->Security选项页中去掉tell me ...attack site的两项
    browser.cache.disk.enable 由true改为false, 禁用磁盘缓存 //??????
    //mms播放: network.protocol-handler.app.mms, network.protocol-handler.external.mms
    //rpm -ivh http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm
    //flash-plugin
    /home/sunny/.mozilla/firefox/hn07vff4.default/urlclassifier3.sqlite 改为urlclassifier3.sqlite.bak
    到adobe网站下载install_flash_player_10_linux.tar.gz,将解压的 libflashplayer.so放到/home/sunny/.mozilla/plugins/


    tor //testing
    vidalia //testing
    给firefox安装FoxyProxy插件
    /etc/init.d/tor
    /etc/tor/torrc, 代理的端口, 地址默认为:
    SocksPort 9050
    SocksListenAddress 127.0.0.1


    将thunderbird-2.0.0.23.tar.gz解压到/opt
    cd /usr/local/bin
    ln -s /opt/thunderbird/thunderbird
    ln -s /opt/thunderbird/icons/mozicon50.xpm /usr/share/icons/thunderbird.xpm
    修改字体,新建文件/home/sunny/.thunderbird/je989feq.default/chrome/userChrome.css
    * {
    font-family: 微软雅黑 !important;
    font-size: 10pt !important;
    }


    gmrun
    leafpad
    gpicview
    gqview
    gftp-gtk
    lftp
    xarchiver, unrar, p7zip-full, cabextract
    localepurge
    parcellite
    hardinfo
    xpad //桌面便签
    epdfview
    emesene --without-recommends
    rxvt-unicode //###############################
    osmo --without-recommends //日历和日程管理
    mtpaint //图像编辑, 抓图
    scrot //抓图
    enca
    lshw-gtk //硬件检测工具
    lunar //农历查询, 命令行
    ntpdate //ntpdate clock.isc.org校正时间
    xtrlock //锁定桌面(保留显示, 有个小锁), 还有slock(黑屏)
    screen
    rdesktop
    conky //http://conky.sourceforge.net/screenshots.html
    rtorrent
    Gcolor2,一个小巧的屏幕取色软件

    ntfs-3g
    sysv-rc-conf
    wireshark --without-recommends //gksu not installed
    stardict
    gimp gimp-python --without-recommends //gimp-gnomevfs, gimp-libcurl not installed

    --without-recommends
    openoffice.org-writer
    openoffice.org-calc
    openoffice.org-math
    openoffice.org-impress
    openoffice.org-gtk
    //openoffice.org-help-en-us
    openoffice.org-l10n-zh-cn
    //openoffice.org-help-zh-cn
    //openoffice.org-writer2latex
    //openoffice.org-style-crystal


    telnetd, /etc/init.d/openbsd-inetd
    openssh-server --without-recommends, /etc/init.d/ssh restart //openssh-blacklist-extra未被安装

    vsftpd, /etc/init.d/vsftpd
    编辑/etc/vsftpd.conf, 激活local_enable=YES, write_enable=YES
    //todo: 其它详细配置?


    卸载不需要的软件
    aptitude purge vim-tiny nano tasksel tasksel-data
    //todo: aptitude purge im-switch


    xterm的配置文件为/etc/X11/app-defaults/XTerm
    光驱开合eject, eject -t


    virtualbox-ose //testing, --without-recommends
    se-modules-2.6.26-2-486  virtualbox-ose-modules-2.6.26-2-686
      virtualbox-ose-modules-2.6.26-2-686-bigmem
      virtualbox-ose-modules-2.6.26-2-amd64
      virtualbox-ose-modules-2.6.26-2-openvz-686
      virtualbox-ose-modules-2.6.26-2-vserver-686
      virtualbox-ose-modules-2.6.26-2-vserver-686-bigmem
      virtualbox-ose-modules-2.6.30-2-486  virtualbox-ose-modules-2.6.30-2-686
      virtualbox-ose-modules-2.6.30-2-686-bigmem
      virtualbox-ose-modules-2.6.30-2-amd64  virtualbox-ose-qt


    tiger:/data/softsetup# aptitude install libgtk2.0-dev
    正在读取软件包列表... 完成
    正在分析软件包的依赖关系树       
    正在读取状态信息... 完成       
    正在读取扩展状态文件      
    正在初始化软件包状态... 完成
    下列“新”软件包将被安装。
      debhelper{a} gettext{a} html2text{a} intltool-debian{a} liba52-0.7.4{a} libatk1.0-dev{a} libcairo2-dev{a}
      libcompress-raw-zlib-perl{a} libcompress-zlib-perl{a} libdigest-hmac-perl{a} libdigest-sha1-perl{a} libdirectfb-dev{a}
      libexpat1-dev{a} libfile-remove-perl{a} libfontconfig1-dev{a} libfreetype6-dev{a} libglib2.0-dev{a} libgtk2.0-dev libice-dev{a}
      libio-compress-base-perl{a} libio-compress-zlib-perl{a} libio-stringy-perl{a} libjpeg62-dev{a} libmail-box-perl{a}
      libmail-sendmail-perl{a} libmailtools-perl{a} libmime-types-perl{a} libmpeg3-1{a} libmpeg3-dev{a} libobject-realize-later-perl{a}
      libpango1.0-dev{a} libpixman-1-dev{a} libpng12-dev{a} libpthread-stubs0{a} libpthread-stubs0-dev{a} libsm-dev{a}
      libsys-hostname-long-perl{a} libsysfs-dev{a} liburi-perl{a} libuser-identity-perl{a} libx11-dev{a} libxau-dev{a}
      libxcb-render-util0-dev{a} libxcb-render0-dev{a} libxcb-xlib0-dev{a} libxcb1-dev{a} libxcomposite-dev{a} libxcursor-dev{a}
      libxdamage-dev{a} libxdmcp-dev{a} libxext-dev{a} libxfixes-dev{a} libxft-dev{a} libxi-dev{a} libxinerama-dev{a} libxml2-utils{a}
      libxrandr-dev{a} libxrender-dev{a} pkg-config{a} po-debconf{a} x11proto-composite-dev{a} x11proto-core-dev{a} x11proto-damage-dev{a}
      x11proto-fixes-dev{a} x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-randr-dev{a} x11proto-render-dev{a} x11proto-xext-dev{a}
      x11proto-xinerama-dev{a} xtrans-dev{a} zlib1g-dev{a}
    0 个软件包被升级,新安装 72 个,0 个将被删除, 同时 12 个将不升级。
    需要获取 16.2MB/16.3MB 的存档。解包后将要使用 56.7MB


    dpkg -i linuxqq_v1.0.2-beta1_i386.deb
    http://www.lamaresh.net/binary.php dpkg -i wine_1.1.31~winehq1-1_i386.deb

    dpkg -i libzen0_0.4.7-1_i386.Debian_5.deb
    dpkg -i libmediainfo0_0.7.23-1_i386.Debian_5.deb
    dpkg -i mediainfo_0.7.23-1_i386.Debian_5.deb
  • 相关阅读:
    CF1270H
    CF1305G
    LeetCode-Sqrt(x)
    LeetCode-Plus One
    LeetCode-Integer to Roman
    LeetCode-Roman to Integer
    LeetCode-String to Integer (atoi)
    LeetCode-Reverse Integer
    C++
    LeetCode-Gray Code
  • 原文地址:https://www.cnblogs.com/techsunny/p/1601380.html
Copyright © 2020-2023  润新知