码迷,mamicode.com
首页 > 系统相关 > 详细

【Ubuntu16.04.4】常用配置

时间:2018-09-18 22:52:06      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:anon   sof   space   update   can   文件   pen   bcd   错误信息   

1、为root用户设置密码

sudo passwd root

2、设置用户登陆界面

sudo gedit  /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

技术分享图片
  1 user-session=ubuntu
  2 greeter-show-manual-login=true
  3 all-guest=false
View Code

3、修改登陆root用户错误信息

sudo gedit /root/.profile 

技术分享图片
  1 修改为 mesg n || true 为 tty -s && mesg n || true
View Code

4、修改系统源文件

技术分享图片
  1 cd /etc/apt
  2 cp source.list source.list.bak
  3 gedit source.list
View Code

东北大学

技术分享图片
  1 deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties
  2 deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted
  3 deb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-properties
  4 deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted
  5 deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
  6 deb http://mirror.neu.edu.cn/ubuntu/ xenial universe
  7 deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe
  8 deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse
  9 deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse
 10 deb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
 11 deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
 12 deb http://archive.canonical.com/ubuntu xenial partner
 13 deb-src http://archive.canonical.com/ubuntu xenial partner
 14 deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted
 15 deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
 16 deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe
 17 deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse
 18 
View Code

 

清华大学

技术分享图片
  1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
  2 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
  3 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
  4 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
  5 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
  6 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
  7 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
  8 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
  9 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
 10 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
 11 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
View Code

 

阿里云

技术分享图片
  1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
  2 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
  3 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
  4 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
  5 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
  6 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
  7 deb http://mirrors.aliyun.com/ubuntu/ xenial universe
  8 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
  9 deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
 10 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
 11 deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
 12 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
 13 deb http://archive.canonical.com/ubuntu xenial partner
 14 deb-src http://archive.canonical.com/ubuntu xenial partner
 15 deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
 16 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
 17 deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
 18 deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
View Code

5、更新源和软件

技术分享图片
  1 sudo apt-get update
  2 sudo apt-get upgrade
View Code

6、修改主机名

sudo gedit /etc/hostname

【Ubuntu16.04.4】常用配置

标签:anon   sof   space   update   can   文件   pen   bcd   错误信息   

原文地址:https://www.cnblogs.com/wziu/p/9671193.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!