This file contains hidden or 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
| #!/bin/sh -e | |
| trap '' 2 | |
| # Stop shill and restart it with a nicer attitude towards tun0 | |
| sudo stop shill | |
| sudo start shill BLACKLISTED_DEVICES=tun0 | |
| # Sleep 10 seconds to allow chromebook to reconnect to the network | |
| sudo sleep 10 | |
| sudo openvpn --mktun --dev tun0 | |
| sudo sleep 3 | |
| # Add google DNS on top of current ones, since openvpn command does not do it |
This file contains hidden or 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
| # Tips&trics for ChromeOS shell | |
| echo 'cd $HOME' >> ~/.bashrc | |
| # enable Ubuntu crouton stuff | |
| echo "alias ubuntu='sudo enter-chroot -n ubuntu'" >> ~/.bashrc | |
| echo "alias debian='sudo enter-chroot -n debian'" >> ~/.bashrc | |
| echo "alias gnome='sudo startgnome -X xorg -b -n debian'" >> ~/.bashrc | |
| echo "alias xubuntu='sudo startxfce4 -X xorg -b -n ubuntu'" >> ~/.bashrc | |
| echo "alias unity='sudo startunity -X xorg -b -n ubuntu'" >> ~/.bashrc | |
| echo "alias xfce4='sudo startxfce4 -X xorg -b -n ubuntu'" >> ~/.bashrc |
This file contains hidden or 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
| virt-install \ | |
| --name template \ | |
| --ram 4096 \ | |
| --disk path=/var/lib/libvirt/ubuntu1604.img,size=30 \ | |
| --vcpus 2 \ | |
| --os-type linux \ | |
| --os-variant ubuntu16.04 \ | |
| --network bridge=virbr0 \ | |
| --graphics none \ | |
| --console pty,target_type=serial \ |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| not_root() { | |
| echo "ERROR: You have to be root to execute this script" | |
| exit 1 | |
| } | |
| zram_exists() { | |
| echo "ERROR: /etc/init.d/zram already exists" |
This file contains hidden or 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
| # Install Dropbox daemon | |
| cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - && ~/.dropbox-dist/dropboxd | |
| # Install `dropbox` script to control Dropbox | |
| sudo wget https://www.dropbox.com/download?dl=packages/dropbox.py -O /usr/local/bin/dropbox && sudo chmod +x /usr/local/bin/dropbox |
This file contains hidden or 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
| Load up your secure shell. | |
| Attempt to connect to your remote host (this step may not be necessary, but it doesn't hurt) | |
| Press <ctrl>+<shift>+j to bring up the javascript console. | |
| Type: | |
| term_.command.removeAllKnownHosts() | |
| Reconnect to host |
This file contains hidden or 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
| # Originally posted by `scode` at http://scode.github.io/docs/chrome_remote_desktop_ubuntu; no longer available. | |
| Setting up Chrome Remote Desktop on Ubuntu | |
| This was written in September of 2015. Not sure whether it still applies. | |
| The upstream documentation is a little bit scattered, not always entirely complete, and the Ubuntu package provided needs some poking to work. Hence this summary. | |
| The two main sources of information I found are: | |
| An old product forum post: https://productforums.google.com/forum/#!topic/chrome/8PMxG69VJ6o |
This file contains hidden or 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
| # Download and unpack the latest binary on a 64-bit Debian-compatible system: | |
| curl -L -o VNC https://www.realvnc.com/connect/download/binary/latest/debian/64-bit/ | |
| # Install VNC Server on a Debian-compatible system (assuming download file named as above): | |
| sudo dpkg -i VNC | |
| # Apply your license key, available from the Deployment page of your RealVNC account: | |
| sudo vnclicense -add XXXXX-XXXXX-XXXXX-XXXXX-XXXXX | |
| # Optionally enable cloud connectivity for VNC Server in Service Mode (token available with key): |
This file contains hidden or 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
| # Let's go to the temporary directory | |
| cd /tmp | |
| # Google Chrome browser installation | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ | |
| sudo dpkg -i google-chrome-stable_current_amd64.deb && \ | |
| sudo apt install -f -y | |
| # Chrome remote desktop installation | |
| wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb && \ |
This file contains hidden or 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
| set -g default-terminal "xterm-256color" | |
| run-shell "powerline-daemon -q" | |
| source "/usr/share/powerline/bindings/tmux/powerline.conf" |