apt-get Chrome mysql_如何在ubuntu16上安装google chrome浏览器

这篇博客详细介绍了如何在Ubuntu系统中使用`apt-get`命令更新和升级系统,安装XFCE4桌面环境及附件,设置Google Chrome源并安装浏览器。接着,它演示了创建和管理VNC服务器的步骤,包括编写启动脚本和Systemd服务文件,以及如何启动、停止和重启VNC服务。此外,还指导了如何在VNC会话中启用自动剪贴板同步。
摘要由CSDN通过智能技术生成

apt-get update & apt-get -y upgrade

apt-get install xfce4 xfce4-goodies gnome-icon-theme tightvncserver

adduser vnc

apt-get install sudo

gpasswd -a vnc sudo

su - vnc

vncserver

vi /usr/local/bin/myvncserver

#!/bin/bash

PATH="$PATH:/usr/bin/"

DISPLAY="1"

DEPTH="16"

GEOMETRY="1024x768"

OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"

case "$1" in

start)

/usr/bin/vncserver ${OPTIONS}

;;

stop)

/usr/bin/vncserver -kill :${DISPLAY}

;;

restart)

$0 stop

$0 start

;;

esac

exit 0

vi /lib/systemd/system/myvncserver.service

[Unit]

Description=Manage VNC Server on this droplet

[Service]

Type=forking

ExecStart=/usr/local/bin/myvncserver start

ExecStop=/usr/local/bin/myvncserver stop

ExecReload=/usr/local/bin/myvncserver restart

User=vnc

[Install]

WantedBy=multi-user.target

systemctl daemon-reload

systemctl enable myvncserver.service

google chrome:

vi /etc/apt/sources.list 最下增加:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

wget https://dl.google.com/linux/linux_signing_key.pub

apt-key add linux_signing_key.pub

apt update

apt install google-chrome-stable

copy and paste

apt-get install autocutsel

vi .vnc/xstartup

在 xsetroot -solid grey 后面加:

autocutsel -fork

参考:https://www.linuxbabe.com/ubuntu/install-google-chrome-ubuntu-16-04-lts

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值