Debian9安裝後的一些配置

 第一步   修改源html

          su root 
      vi /etc/apt/sources.list #建議先備份,不過系統好像有已經備份好的
      加入國內源,保存
      apt-get update   #更新源
         apt-get upgrade  #更新系統

 apt --fix-broken install  解決依賴python

 第二步  安裝sudo 
mysql

 //就是不能動的地方就不要動   
1、安裝sudo
   #  apt-get install sudo
2、修改 /etc/sudoers 文件屬性爲可寫
   # chmod u+w /etc/sudoers
3、編輯 /etc/sudoers ,添加以下行 
            <用戶名>  ALL=(ALL) ALL     #表示你要添加須要執行 root 某些權限的用戶
        或
              <用戶名>  ALL=NOPASSWD:/etc/init.d/mysql bill    #表示你要添加須要執行 root 某些權限的用戶        
4、修改/etc/sudoers 文件屬性不可寫
   # chmod u-w /etc/sudoers      
#好像要重啓下才會生效
五、而後退出root
  # su <用戶名>

第三步  安裝拼音輸入法linux

1、添加中文環境,若是不是中文安裝須要添加
    $  sudo dpkg-reconfigure locales   
2、執行 
    $ sudo apt update 
3、 安裝fctix中文輸入法
    $  sudo apt install fcitx
    $  sudo apt install fcitx-googlepinyin
4、運行命令
    $   fcitx
若是沒生效的話就重啓吧

第四步 安裝VIMgit

若是出現以下報錯  這個是不要編譯的下面的那個是要編譯的版本   連接
~$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vim : Depends: vim-common (= 2:7.4.488-7+deb8u3) but 2:8.0.0197-4+deb9u1 is to be installed
E: Unable to correct problems, you have held broken packages.

執行命令:github

$ sudo apt-get remove vim-commonsql

而後執行vim

$ sudo apt-get install vimruby

安裝vim 的連接:網站

https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source 

// 這個是在我機器上能用的若是不能請到上面的網站看
安裝一些依賴
 apt install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev git
刪除已有的vim apt remove vim-tiny vim-common vim-gui-common vim-nox cd ~ git clone https://github.com/vim/vim.git cd vim ./configure --with-features=huge \ --enable-multibyte \ --enable-rubyinterp=yes \ --enable-pythoninterp=yes \ --with-python-config-dir=/usr/lib/python2.7/config \ # pay attention here check directory correct --enable-python3interp=yes \ --with-python3-config-dir=/usr/lib/python3.5/config \ --enable-perlinterp=yes \ --enable-luainterp=yes \ --enable-gui=gtk2 \ --enable-cscope \ --prefix=/usr/local make VIMRUNTIMEDIR=/usr/local/share/vim/vim81 cd ~ / vim sudo make install

安裝virtualbox 

 

相關文章
相關標籤/搜索