Debain 7.2安裝配置

一 下載安裝Debian 7.2php

     安裝debian CD1,在最後一步,使用網絡安裝基本界面。html

二 修改源python

    cd /etc/aptlinux

    mv sources.list sources.list.bakweb

    gedit /sources.listshell

    添加:ubuntu

 
 
#####################主要,開源,閉源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib

###################wheezy-proposed-updates建議更新
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free

###################wheezy-updates推薦更新
deb http://mirrors.163.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-updates main contrib non-free


#################wheezy/updates安全更新
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free 

deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free

deb http://ftp.cn.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.cn.debian.org/debian wheezy main contrib non-free

deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
#firefox
deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

 

sudo apt-get update 刷新一下。瀏覽器

三 安裝firefox安全

由於debian自帶的瀏覽器有些我要的插件不兼容如,fireftp firebug,雖然也是firefox社區版。網絡

1 卸載iceweasel

sudo apt-get remove iceweasel

2 添加源(見上),安裝firefox

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29

apt-get install firefox-mozilla-build

當時在這裏遇到了一些問題,firefox處於half-installed狀態。

就使用:

sudo apt-get --reinstall install firefox-mozilla-build

完成重裝。參考: http://www.cnblogs.com/ibgo/archive/2013/09/15/3322457.html

四 安裝輸入法

http://code.google.com/p/ibus/wiki/Debian

The default input method for Debian is SCIM. To install iBus, use the following command.

The default input method for Debian is SCIM. To install iBus, use the following command.

sudo apt-get install ibus im-switch
sudo apt-get install ibus-pinyin # or other engine(s) you want
sudo apt-get install ibus-table ibus-table-wubi # wubi im-switch -s ibus # logout and re-login ibus-setup # add input methods you want

 五 安裝emacs,配置emacs 輸入法(ibus-el)

      sudo apt-get install emacs ibus-el

      ~/.emacs配置

;;http://v.youku.com/v_show/id_XNDE0MjkxOTM2.html
;;ibus-mode
;;(add-to-list 'load-path "~/.emacs.d/ibus-el-0.3.2")
(require 'ibus)
;; Turn on ibus-mode automatically after loading .emacs
(add-hook 'after-init-hook 'ibus-mode-on)
;; Choose your key to toggle input status:
(ibus-define-common-key ?\C-\s nil)
(global-set-key (kbd "C-\\") 'ibus-toggle) ;;經過Ctrl+\切換輸入法
(setq ibus-cursor-color '("red" "blue"))
(custom-set-variables '(ibus-python-shell-command-name "python2"))

 六 安裝apt-fast,多線程的apt-get

http://wiki.ubuntu.org.cn/index.php?title=Apt-fast&variant=zh-hans

    sudo apt-get install axel aria2
    sudo add-apt-repository ppa:apt-fast/stable
    sudo apt-get update
    sudo apt-get install apt-fast 

 由於這裏是debian系統安裝ubuntu PPA軟件

在apt-get update以後,要修改/etc/apt/sources.list.d/下的文件

 將wheezy改爲 precise即ubuntu的版本號

root@debian:/home/kevin# cat /etc/apt/sources.list.d/apt-fast-stable-wheezy.list 
deb http://ppa.launchpad.net/apt-fast/stable/ubuntu precise  main
deb-src http://ppa.launchpad.net/apt-fast/stable/ubuntu precise main

七 打印機安裝hplip

http://hplipopensource.com/hplip-web/install_wizard/index.html

按嚮導,下載文件,安裝。

其餘打印機方案,http://www.linuxfoundation.org/collaborate/workgroups/openprinting

頁邊距太寬了,浪費

lpoptions -p HP_LaserJet_Professional_M1213nf_MFP -o page-left=3 -o page-right=3 -o page-top=3 -o page-bottom=3

參考 http://127.0.0.1:631/help/options.html#OPTIONS 

Setting the Page Margins

The value argument is the margin in points; each point is 1/72 inch or 0.35mm.

相關文章
相關標籤/搜索