zoukankan      html  css  js  c++  java
  • debian8.4系统安装后的一些设置

    1、添加软件源  su到root用户
    vi  /etc/apt/sources.list      也可用gedit  /etc/apt/sources.list   (gnome下用,如果kde下则用 kdesudo kate /etc/apt/sources.list  在非root用户下用才能打开。)

    #阿里云源(debian 8.x (jessie))

    deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
    deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib

    #中科大源(debian 8.x (jessie))

    deb http://mirrors.ustc.edu.cn/debian jessie main contrib non-free 
    deb-src http://mirrors.ustc.edu.cn/debian jessie main contrib non-free
    deb http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
    deb-src http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
    deb http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free
    deb-src http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free

    2、更新系统
    $ sudo aptitude update 
    $ sudo aptitude upgrade 
    $ sudo aptitude dist-upgrade 
    会提示没有安装sudo,那就不用sudo,直接在root#下输入sudo后面的就行了。

    3、安装sudo 使普通用户有系统管理的权利
    root# aptitude install sudo
    root# chmod +w /etc/sudoers       授予sudoers 写的权限,否则为只读。
    Root# vi etc/sudoers  或者gedit /etc/sudoers         编辑  etc/sudoers
    找到root 行并在下行输入你的账户,在账户后面把root后面的复制下来就行了。然后保存。vi编译器输入:wq
    root# chmod 0440 /etc/sudoers     去掉sudoers 写的权限改为只读。
    root# exit  退到普通账户。

    4、安装编译环境 apt-get install build-essential 即可解决make问题 

  • 相关阅读:
    对REST的理解
    longest-repeating-character-replacement(难)
    reconstruct-original-digits-from-english(好)
    third-maximum-number
    【好】strong-password-checker,我自己做出来的:)
    arithmetic-slices
    [poj 3159]Candies[差分约束详解][朴素的考虑法]
    POJ 2773 Happy 2006
    MySql安装(rpm)和启动配置
    [51daifan]来吧,一起书写51daifan的成长史吧-让一部分人先安全起来
  • 原文地址:https://www.cnblogs.com/rhjeans/p/5474202.html
Copyright © 2011-2022 走看看