【屌丝日记】 Debian安装配置

2015-10-23  本文已影响1248人  qbmiller

1.安装debian系统,只安装最基本系统

  不要桌面,不要print server,具体不会看网上图文并茂的

2.安装完成配置源 /etc/apt/source.list

sid表示最新的,每天都更新 ;
testing表示测试版本,
wheezy (2014年)不想用测试,换成稳定版,

如下:

前2个是更新软件用
后2个更新系统用

deb http://ftp.cn.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ sid main contrib non-free
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib

3.配置完成后,

apt-get update

更新这个apt参考的数据库,把源里软件乱七八糟名及版本等信息保存下来,以后apt安装参考用

apt-get dist-upgrade

更新系统到最新版tesing (apt-get upgrade只有更新系统本身安装的软件,系统不更)

4.安装相应软件(自取)

* 别用apt-get autoremove,牛人就无所谓了)  
* 时不时用下命令apt-get update不和centos样自动执行)
apt-get install zenhei* 安装字体 文泉驿 wenquanyi就是zenhei*

apt-get install xfce4 桌面(apt-get install xorg已经包含安装了)

apt-get install lightdm开机启动管理,轻量级的

apt-get install terminator 安装终端,能分屏的

apt-get install synaptic 新力得界面安装软件用 挺好的

apt-get install vim

apt-get install build-essential  cmake  gcc linux-headers-`uname -r`

该重启了 呵呵
1)打开新力得,安装vim插件youcompleteme,安装完后,执行vam install youcompleteme
2) 或者命令行
sudo apt-get install vim ;
sudo apt-get install vim-youcompleteme ;
sudo apt-get install vim-addon-manager ;
vam install youcompleteme .

拷贝字体后,注册字体用下面3命令
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv

设置字体时注意权限,和系统一致即可

For 32 bit:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
For 64 bit:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./google-chrome*.deb 安装

sudo apt-get -f install

There is a dependencies issue with the Google Chrome deb that needs to be resolved - that is what the sudo apt-get -f install is for.安装chrome浏览器需要的类库

5.系统配置文件

syntax on
set tabstop=4
set softtabstop=4
set autoindent
set cindent
set nu
set ruler
" change the interprise color 修改vim的注释颜色
highlight Comment ctermfg=green guifg=green

PS:::::如果以后折腾了vim,导致上下左右键不好使,退格不好使。

set nocompletable (不以vi的上下左右用)

set backspace=2

编辑~/.inputrc,在里面加一行 /etc/inputrc最后添加即可
set completion-ignore-case on

# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
#eval "`dircolors -b`"
eval "`dircolors ~/.dircolors`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi

* $dircolors -p > ~/.dircolors  (root和普通用户都来一份)
* 修改~/.dircolors中的:" DIR 01;34 # directory " 为自己喜欢的颜色(共有8种颜色可选,具体请看.dircolors注释),我一般33,黄色即可

6.杂七杂八

alt+F2管理菜单

lspci显示ATI显卡,然后安装显卡驱动

7. 现在整理来看这文章整理的都是些最普通不过的东西,不过那时候对于刚学的自己,还是意义挺大的,没舍得删,贴出来得了

上一篇 下一篇

猜你喜欢

热点阅读