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

  • 相关阅读:
    35 个手机和Web应用开发图标集
    20个创意404错误页面设计的启示
    31个不同种类的网站免费滑块巨大集合(PSD文件)
    18个伟大的搜索引擎设计者能够找到高品质的免费图标
    50 个独家免费图标集下载
    C语言对结构体何时用> , 何时用.
    GNU make manual 翻译(一)
    PostgreSQL 的 语法分析调用关系
    GNU make manual 翻译(二)
    PostgreSQL 的 target_list分析(七)
  • 原文地址:https://www.cnblogs.com/rhjeans/p/5474202.html
Copyright © 2011-2022 走看看