ubuntu一键安装vnc脚本
来源:互联网 发布:公路基础数据库系统 编辑:程序博客网 时间:2024/06/09 20:36
在Ubuntu16.04上测试过,其它机器请自行测试
* 注意: 此脚本默认会重启机器,如果不想重启请注释或删除掉最后一步 *
# ################################################################## 脚本名称 : ubuntu1604VNC# 脚本描述 : 自动安装配置和自动启动X11Vnc # 软件版本 : 0.1# 注意事项: 运行完5秒内会重启# 免责声明 : 使用自由,后果自付 # ################################################################## 步骤 1 - 安装 X11VNC # ################################################################# sudo apt-get install x11vnc -y# 步骤 2 - 配置访问密码# ################################################################# sudo x11vnc -storepasswd /etc/x11vnc.pass # 步骤 3 - 创建服务# ################################################################# cat > /lib/systemd/system/x11vnc.service << EOF[Unit]Description=Start x11vnc at startup.After=multi-user.target[Service]Type=simpleExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared[Install]WantedBy=multi-user.targetEOF# 步骤 4 - 配配置防火墙端口,配置和启动服务# ################################################################ echo "Configure firewall"sudo ufw allow 5900echo "Configure Services"sudo systemctl enable x11vnc.servicesudo systemctl daemon-reload# 步骤 5 - 重启# ################################################################ sleep 5ssudo shutdown -r now
阅读全文
0 0
- ubuntu一键安装vnc脚本
- Ubuntu 16.04 LTS 一键安装VNC
- Ubuntu 16.04 LTS 一键安装VNC
- Ubuntu一键安装BBR脚本
- ubuntu安装vnc
- ubuntu下 vnc安装
- Ubuntu 10.04 安装VNC
- ubuntu+kvm+vnc安装
- Ubuntu 16.04安装VNC
- ubuntu 安装VNC 服务
- Ubuntu安装vpn pptp一键安装脚本
- Ubuntu下安装VNC server & 【VNC】修改VNC分辨率大小
- Ubuntu安装编译OpenCV一键脚本(带ffmpeg)
- Ubuntu安装编译OpenCV一键脚本(带FFMpeg)
- Ubuntu/Debian L2TP IPSec一键安装脚本(转载)
- 在Ubuntu上安装VNC
- Ubuntu下安装VNC server
- Ubuntu下安装VNC server
- 文件操作
- HUD 6035 Colorful Tree dfs序||树形dp
- MySQL的常用函数
- 最全面的Java多线程用法解析
- unity简单封装的网络请求
- ubuntu一键安装vnc脚本
- 获取版本信息(名称+版本号等)
- poj 3666 Making the Grade (动态规划)
- LeNet网络详解
- JavaScript运行机制之事件循环(Event Loop)详解
- 使用AIDL跨APP进行通信
- tftp配置
- 欢迎使用CSDN-markdown编辑器
- android ble 的各种坑