Win10中Ubuntu优化配置
来源:互联网 发布:insert into多个数据 编辑:程序博客网 时间:2024/05/20 23:39
今年的微软创意者更新允许在Win10中直接运行Ubuntu,而且还是最新版的16.04。为了用起来更方便,还需要进行以下配置。
1. 修改APT源
内置的APT源是国外的,奇慢无比。为此将其修改为国内的源,例如163的源。vim /etc/apt/sources.list
,注释掉原来的并改为如下配置:
deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
然后执行apt-get update
。
2. 配置SSH登录
Win10的bash用起来不是很习惯,尤其是复制粘贴不方便。为此我们使用如SecureCRT之类的进行操作。
- 安装OpenSSH服务:
apt install openssh-server
修改配置:
vim /etc/ssh/sshd_config
ListenAddress 0.0.0.0 # 取消注释
#StrictModes yes # 注释
PermitRootLogin yes # 允许root登录
PasswordAuthentication yes # 允许密码登录启动服务:
service ssh start
- 如果提示
sshd error: could not load host key
,则用下面的命令重新生成:dpkg-reconfigure openssh-server
- 最后SecureCRT登录到127.0.0.1:22即可
3. 文件共享
Win10的文件系统挂载于Ubuntu的/mnt
下,Ubuntu的文件系统挂载于 Win10的C:\Users\mvpboss1004\AppData\Local\lxss
下。注意,要以管理员权限运行Ubuntu,否则无法读取Win10的文件。
- Win10中Ubuntu优化配置
- win10+ubuntu双系统配置
- win10+ubuntu双系统中ubuntu根目录扩容
- win10中maven的配置
- vbox 下面 ubuntu win10 samba服务配置
- sqlite在win10 和ubuntu 中使用
- win10 优化
- WIN10优化
- Win10优化
- 优化win10
- win10优化
- Win10 中git的配置及使用
- 在Win10,VS2013 中配置CGAL库
- Win10 中VS2015 配置opencv3.2
- win10 下使用安装 Ubuntu 的 Hyper-V 配置 Ceph
- Ubuntu Win10 Sublime 3 主题插件配置折腾笔记
- 【Ubuntu】Ubuntu16.04+VMware+Win10安装及配置教程
- Ubuntu 14.10中连接Win10的smb共享文件
- 关于arcgis版本问题的讲解例如CPG
- windows下检测软件运行状态。脚本
- |BZOJ 1633|字符串DP|[Usaco2007 Feb]The Cow Lexicon 牛的词典
- JVM相关文章聚合
- Kotlin-07.返回和跳转(return/break/continue)
- Win10中Ubuntu优化配置
- Scala基础—Trait使用示例
- Android开发-多线程
- Retrofit + RxJava + OkHttp 让网络请求变的简单-封装篇
- javaScript系列之事件处理器以(三)
- Hadoop之HDFS(二)
- [Web] MVC模型
- 友元
- mysql+php+ajax实现点赞 浏览量