debian 屌丝日记

  好几年前,刚开始学习linux时,写的笔记,现在看来还挺有意思的,发出来 纪念下

 

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

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

     1)装英文,后期改中文

设置支持中文:dpkg-reconfigure locales(如果没有就安装locales)
选择最后的  zh_CN GB2312 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 f 最后默认locales还是英文(英文系统的意思)
     2)装中文,就ok了

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

    sid表示最新的,每天都更新  testing表示测试的一些,不想用测试,换成稳定版,wheezy(目前的)

     前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(上下左右不能用,只有x 退格键也不能用,后续都会有配置)

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`

该重启了 呵呵


打开新力得,安装vim插件youcompleteme,安装完后,执行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

  1. 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_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浏览器需要的类库


screenfetch

 
5.系统配置文件  适用于debian  centos

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 nocompatible  (不以vi的上下左右用)

set backspace=2

2)忽略tab键大小写:

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

3) alias和color

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

centos中: cp /etc/DIR_COLORS ~/.dir_colors

6.杂七杂八

alt+F2管理菜单

lspci显示ATI显卡,然后安装显卡驱动
7.无声音 系统无声音问题
我们先安装下这些东西
sudo apt-get install alsa-utils
sudo apt-get install alsa-oos
sudo apt-get install esound
sudo apt-get install gnome-audio
我们现在初始化下声卡看下有什么效果(前提你已经安装好alsa)
alsactl init 
原文地址:https://www.cnblogs.com/qbmiller/p/6830587.html