新装ubuntu常用配置

本次新装的版本是Ubuntu 18.04.1 LTS,与ubuntu 16的设置没有什么区别。

设置term为彩色

打开文件~/.bashrc,将force_color_prompt=yes前面的注释取消,强制显示彩色。可以执行如下语句自动修改文件:

sed -i "s/#force_color_prompt=yes/force_color_prompt=yes/g" ~/.bashrc

设置sudo免密码

sudo vi /etc/sudoers

在文件最后加上这一句, 其中XXXXX是自己的用户名

XXXXX ALL=(ALL) NOPASSWD:ALL

设置国内源

参考链接:https://blog.csdn.net/xiangxianghehe/article/details/80112149,我选的阿里云。

配置samba

参考链接:ubuntu16 samba快速配置

设置git

# 记住密码
git config --global credential.helper store
# 邮箱和用户名,提交代码名需要
git config --global user.email "yufei_email@163.com"
git config --global user.name "ferrisyu"
# 默认使用vim编辑提交记录
git config --global core.editor "vim"
# 设置代理
 git config --global http.proxy socks5://192.168.1.103:1080
 git config --global https.proxy socks5://192.168.1.103:1080
# 如果要访问国内的,可以取消代理
# git config --global --unset http.proxy
# git config --global --unset https.proxy
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值