美文网首页
wsl unbut 更新源 安装连接图形界面 vnc

wsl unbut 更新源 安装连接图形界面 vnc

作者: e0c52543163a | 来源:发表于2019-05-08 19:45 被阅读0次

    设置root用户密码
    sudo passwd root

    输入密码, 再重复确认输入一次

    1. 允许root远程登录
      sudo vi /etc/ssh/sshd_config

    将PermitRootLogin 置为yes

    Authentication:

    LoginGraceTime 120

    PermitRootLogin prohibit-password

    PermitRootLogin yes
    StrictModes yes

    保存退出.

    1. 重启ssh服务
      sudo service ssh restart

    原文:https://blog.csdn.net/m0_37422289/article/details/82017242

    安装图形界面
    https://blog.csdn.net/buaajzg/article/details/80141553

    更换数据源 https://www.jianshu.com/p/bc38ed12da1d

    切换源之后 sudo apt-get update 才起作用 否则出错

    1.备份原来的数据源配置文件

    sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

    2.编辑数据源配置文件

    sudo vi /etc/apt/sources.list
    deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

    备用源

    deb https://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

    切换源之后 sudo apt-get update 才起作用 否则出错

    使用 VNC

    进行远程桌面控制(安装方法)

    第一种
    https://www.jianshu.com/p/344185d97476?tdsourcetag=s_pcqq_aiomsg
    第二种

    使用 [VNC] 进行远程桌面控制([安装方法]

    一 开启允许远程
    二安装 xrdp vnc xbase-clients
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install xrdp vnc4server xbase-clients

    w !sudo tee %
    linux vi不能保存文件 https://zhidao.baidu.com/question/197780620.html

    解决Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    第一种:

    sudo vim /etc/resolv.conf

    添加nameserver 8.8.8.8

    第二种:

    /etc/apt/sources.list 的内容换成

    deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse

    deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse

    deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse

    deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse

    deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse

    deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse

    deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

    deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

    deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse

    deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse

    </article>

    xrdp TigerVNC Server安装
    https://blog.csdn.net/liuxiabing150/article/details/50825596

    https://www.linuxidc.com/Linux/2017-09/147112.htm
    安装gnome图形界面 gnome安装太久太大 需要gnome-panel就行
    sudo apt-get install gnome-panel

    相关文章

      网友评论

          本文标题:wsl unbut 更新源 安装连接图形界面 vnc

          本文链接:https://www.haomeiwen.com/subject/lgnmoqtx.html