miller
发布于

[屌丝日记]debian安装使用

2014年刚实习时,头是玩debian的,然后自己就一直用了
安装debian 的学习笔记,虽然很古老,但是当初自己折腾了好久,一直没舍得删掉,再好几个地方都有过cnblog.简书...

  • 1.安装debian系统,只安装最基本系统
    不要桌面,不要print server,具体不会看网上图文并茂的

直接装英文系统,后期改中文

  • 设置支持中文:dpkg-reconfigure locales(如果没有就安装locales)

选择最后的 zh_CN GB2312 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 f 最后默认locales还是英文(英文系统的意思)
直接装中文,就ok了

  • 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

PS:这里目前配置时,只有vi 还没装vim(上下左右不能用(HJKL),只有x 退格键也不能用,后续都会有配置)

  • 3.配置完成后,

apt-get update

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

  • apt-get dist-upgrade

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

PS:时间较长

  • 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
    1. 或者命令行
      sudo apt-get install vim ;
      sudo apt-get install vim-youcompleteme ;
      sudo apt-get install vim-addon-manager ;
      vam install youcompleteme .
  • apt-get install fcitx 输入法
  • apt-get install fcitx-googlepinyin(或者通过新力得安装),嫌这拼音不好用,可下载安装搜狗输入法for linux,下下来,安装时,提示缺少依赖包

就apt-get -f install (===解决依赖===)

编辑c,c++就codeblocks 调试方便,不太大printf也成(synaptic)

  • 新力得安装rabbitvcs,再安装thunar-vcs-plugin

(关于svn中文档有无svn标示这点,是thunar和Nautilus 问题,自己google搜)

  • 字体不好看,安装ttf-wqy-microhei或者consoles和微软雅黑杂交体,google搜
  • 拷贝字体后,注册字体用下面3命令

sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv

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

  • 安装wps,下载deb包,安装试下,提示不能安装32位。linux不和windows样64包容32
  • 想做到,就要开启混合架构

dpkg --add-architecture i386

  • apt-get update

直接apt-get dist-upgrade

  • sudo apt-get install ia32-libs ia32-libs-gtk 我这个安装没反应,后来dist-upgrade就好了

重启下吧,再次安装wps包

查看pdf 用evince (简单的,浏览器也可以,但是那些论文类很多公式的,乱码)

  • To install Google Chrome, run the following:

For 32 bit:

wget https://dl.google.com/linux/direct/google-chrome-stable%5Fcurrent%5Fi386.deb
For 64 bit:

wget https://dl.google.com/linux/direct/google-chrome-stable%5Fcurrent%5Famd64.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浏览器需要的类库

  • screenfetch 一个查看系统配置的命令

5.系统配置文件

  • 1.vimrc 直接修改/etc/vim/vimrc

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

  • 2.忽略tab键大小写:

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

  • 3.alias和color
修改~/.bashrc中:
# 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显卡,然后安装显卡驱动

    1. 现在整理来看这文章整理的都是些最普通不过的东西,不过那时候对于刚学的自己,还是意义挺大的,没舍得删,贴出来得了
浏览 (1541)
点赞
收藏
2条评论
miller
miller
14年没毕业那会实习整理到了evernote上,后来就各种放
点赞
评论
miller
miller
历史意义文章,开始搭建博客,或者在博客园 开写的第一个。 一直没舍得删...
点赞
评论