zoukankan      html  css  js  c++  java
  • 在ubuntu 18.04上配置vncserver

    sudo vi /etc/apt/sources.list

    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse


    sudo apt-get update

    sudo apt-get upgrade -y

    sudo apt-get install tasksel -y

    sudo tasksel

    choose Ubuntu desktop and install

    sudo apt install xfce4 xfce4-goodies

    sudo apt install tightvncserver

    vncserver -geometry 1600x900

    VNC Password :

    vncserver -kill :1

    vi  ~/.vnc/xstartup
    --------------------------------------------------------------------
    #!/bin/sh
    unset SESSION_MANAGER
    unset DBUS_SESSION_BUS_ADDRESS
    sudo startxfce4 &
    sudo xhost +
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    --------------------------------------------------------------------

    sudo chmod +x ~/.vnc/xstartup
    vncserver -geometry 1600x900


    sudo apt-get install firefox

    sudo apt-get install language-pack-zh-han*

    vim /etc/default/locale



  • 相关阅读:
    我到 vim 配置文件---------修改从---http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
    Bayer图像处理
    Ubuntu 12.04下安装OpenCV 2.4.2
    vim寄存器与复制粘贴的实现
    window 驱动
    js 面试题
    angular 写的一个分页功能
    angular scope 方法
    avalon 框架
    贴几个常用的基础函数
  • 原文地址:https://www.cnblogs.com/cloudrivers/p/11695862.html
Copyright © 2011-2022 走看看