修改linux内核加入gui,bash on win10 升级内核 kernel,设置运行GUI

1. 升级 Linux kernel

Step 1: #sudo apt-get update

Step 2: #apt-cache search linux-image

Note: after this command, we could see all the available kernel resources, saying: linux-image- 4.2.0-27-generic linux-image-extra- 4.2.0-27-generic

Step 3: #apt-cache search linux-headers

Note: with this command, we could see corresponding headers resource, saying: linux-headers- 4.2.0-27-generic

Step 4: #sudo apt-get install linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic linux-headers-4.2.0-27-generic

Note: be sure to install all the three updates. When linux-image-extra is not installed, some drivers may not be updated correctly, such as USB ;

Step 5: after installation, reboot

Step 6: after re-entering Ubuntu, check kernel with "uname -r" to find the kernel has been upgraded;

实验:

在bash on windows 上执行失败(内核装好了,grub安装报错),选择了4.8.0-32 版本的内核

sudo apt-get install linux-image-4.8.0-32-generic linux-image-extra-4.8.0-32-generic linux-headers-4.8.0-32-generic

2. 升级 ubuntu version

Below are steps to upgrade your Ubuntu version, such as 14.04, to newest version (14.04.4).

1、do-release-upgrade

2、sudo apt-get update

3、sudo apt-get dist-upgrade

4、sudo reboot

3.设置运行GUI

1 、bash>>: echo "export DISPLAY=:0.0" >> ~/.bashrc

2、bash>>: sudo sed -i 's$.*$tcp:host=localhost,port=0$' /etc/dbus-1/session.conf

(如果第二步报错说找不到dbus-1/session.conf , 则重装dbus:sudo apt --reinstall install dbus)

3、安装Xming X Server for Windows(x-windows的东西),并打开

4、bash>>: source ~/.bashrc  , 或重启以加载启动文件

5、在bash中运行gui程序,(比如nautilus,没有就安装)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值