Site icon moneyslow.com

如何在ubuntu16上安装google chrome浏览器

google chrome浏览器

google chrome浏览器

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

Exit mobile version