-
Notifications
You must be signed in to change notification settings - Fork 235
/
Copy pathChromeBrowser.sh
22 lines (18 loc) · 907 Bytes
/
ChromeBrowser.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#This script installs Chrome browser on your desktop.
#Simply run "wget https://raw.githubusercontent.com/Har-Kuun/OneClickDesktop/master/plugins/ChromeBrowser.sh && sudo bash ChromeBrowser.sh"
#After installation, Chrome browser can be launched by double-clicking the "StartChrome.sh" file on your Desktop.
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
wget https://dl.google.com/linux/linux_signing_key.pub
apt-key add linux_signing_key.pub
apt-get update -y
apt-get install google-chrome-stable -y
rm -f linux_signing_key.pub
cat > $HOME/Desktop/StartChrome.sh <<END
#!/bin/bash
google-chrome-stable --no-sandbox
END
chmod +x $HOME/Desktop/StartChrome.sh
echo "Google Chrome installed successfully!"
echo "Please double-click \"StartChrome.sh\" on your Desktop to run Chrome."
echo "Thank you! -- https://qing.su"