• 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问题 

  • 相关阅读:
    VS2005使用AjaxPro.2
    一步步教你实现富文本编辑器(第三部分)
    Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
    一步步教你实现跨游览器的JS日历
    2009年中国10大网络公司业绩比较
    Beautiful smile and love
    NGINX 配置404错误页面转向
    wget使用范例
    mcrypt以及mhash扩展的安装!
    linux下常用压缩格式的压缩与解压方法
  • 原文地址:https://www.cnblogs.com/rhjeans/p/5474202.html
Copyright © 2020-2023  润新知