zoukankan      html  css  js  c++  java
  • Debian9安装后的一些配置

     第一步   修改源

              su root 
          vi /etc/apt/sources.list #建议先备份,不过系统好像有已经备份好的
          加入国内源,保存
          apt-get update   #更新源
             apt-get upgrade  #更新系统

     apt --fix-broken install  解决依赖

     第二步  安装sudo 

     //就是不能動的地方就不要動   
    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      
    #好像要重启下才会生效
    5、然后退出root
      # su <用户名>

    第三步  安装拼音输入法

    1、添加中文环境,如果不是中文安装需要添加
        $  sudo dpkg-reconfigure locales   
    2、执行 
        $ sudo apt update 
    3、 安装fctix中文输入法
        $  sudo apt install fcitx
        $  sudo apt install fcitx-googlepinyin
    4、运行命令
        $   fcitx
    如果没生效的话就重启吧

    第四步 安装VIM

    如果出现如下报错  这个是不要编译的下面的那个是要编译的版本   链接
    ~$ 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.

    执行命令:

    $ sudo apt-get remove vim-common

    然后执行

    $ sudo apt-get install vim

    安装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 

  • 相关阅读:
    实验6 多态性
    js实现图片轮播
    xcode 4.6 使用NSURLConnection 获取网页内容(iOS6.1,纯手工编码,无xib,无storyboard)
    蓝牙API
    php使用microtime(true)查看代码执行时间
    clover无缘无故隐藏书签栏原因
    RedisGEO
    mysql 新特性之geometry
    mysql中geometry类型的简单使用
    微软Windows Phone 7新特性详解 狼人:
  • 原文地址:https://www.cnblogs.com/pbblogs/p/10269861.html
Copyright © 2011-2022 走看看