Skip to content

Instantly share code, notes, and snippets.

View idvoretskyi's full-sized avatar
💭
🇺🇦

Ihor Dvoretskyi idvoretskyi

💭
🇺🇦
View GitHub Profile
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)
@idvoretskyi
idvoretskyi / realvnc_deb.sh
Last active November 11, 2021 03:13
RealVNC Scripting deployment and start-up on Ubuntu/Debian
# 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):
@idvoretskyi
idvoretskyi / chrome-remote-desktop.txt
Created April 12, 2018 10:13
Setting up Chrome Remote Desktop on Ubuntu
# 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
@idvoretskyi
idvoretskyi / linux_tips&tricks.sh
Last active April 1, 2021 11:46
Linux Tips&tricks.sh
########### Benchmark
wget -qO- bench.sh | bash
curl -Lso- bench.sh | bash
########### User management
# allow superuser access without password
# 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 && \

Keybase proof

I hereby claim:

  • I am idvoretskyi on github.
  • I am ihordvoretskyi (https://keybase.io/ihordvoretskyi) on keybase.
  • I have a public key ASCdVOggYIpCxzVD4dQjUD6BGrhUQAHe6ZJ1LqKcVfT5ago

To claim this, I am signing this object:

@idvoretskyi
idvoretskyi / .tmux.conf
Last active April 1, 2019 10:35
Powerline setup for tmux
set -g default-terminal "xterm-256color"
run-shell "powerline-daemon -q"
source "/usr/share/powerline/bindings/tmux/powerline.conf"
@idvoretskyi
idvoretskyi / chromeos_hterm_reset.txt
Last active February 25, 2019 15:41
hterm: How to reset host authentication key for known_hosts on ChromeOS?
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

Keybase proof

I hereby claim:

  • I am idvoretskyi on github.
  • I am idvoretskyi (https://keybase.io/idvoretskyi) on keybase.
  • I have a public key ASBTg2rJONjk4YdciOQJxnJXi7CznVVUK6nTZQ7WKggNhgo

To claim this, I am signing this object:

@idvoretskyi
idvoretskyi / .bashrc
Created January 31, 2019 13:01
Powerline for bash
# Powerline setup
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh