Created
October 5, 2018 07:07
-
-
Save ParkNoBreak/5c8a44e7d1b1949790ba4c0b8cf4e96e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "qwe123\nqwe123" | sudo passwd root | |
sudo apt-get update | |
sudo apt-get -y install lxde tightvncserver xrdp chromium-browser | |
echo lxsession -s LXDE -e LXDE > ~/.xsession | |
sudo sh -c 'echo "CHROMIUM_FLAGS=\" --user-data-dir --no-sandbox\"" > /etc/chromium-browser/default' | |
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
wget https://dl.google.com/linux/linux_signing_key.pub | |
sudo apt-key add linux_signing_key.pub | |
sudo apt update | |
sudo apt -y install google-chrome-stable | |
echo 'alias google-chrome="/usr/bin/google-chrome --user-data-dir --no-sandbox"' | sudo tee /root/.bashrc | |
sudo sed -ie 's/Exec\=\/usr\/bin\/google-chrome-stable/Exec\=\/usr\/bin\/google-chrome-stable\ --no-sandbox/g' /usr/share/applications/google-chrome.desktop | |
echo '@/usr/bin/google-chrome-stable --no-sandbox' | sudo tee /etc/xdg/lxsession/LXDE/autostart | |
echo sudo /etc/init.d/xrdp restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment