Skip to content

Instantly share code, notes, and snippets.

View rama982's full-sized avatar
💤
zzzz

Rama Bondan Prakoso rama982

💤
zzzz
  • Indonesia
View GitHub Profile
@ravish0007
ravish0007 / novnc_deploy.sh
Last active August 4, 2023 12:54
google cloud shell novnc setup
#!/bin/bash
if [ -f /usr/bin/chromium ]; then echo "Previous session running..." ; exit 0 ; fi
vnc_password=123456
mkdir ~/.cloudshell
touch ~/.cloudshell/no-apt-get-warning
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install xfce4 xfce4-goodies vnc4server novnc websockify python-numpy chromium
@zakkak
zakkak / gist:ab08672ff9d137bbc0b2d0792a73b7d2
Created March 24, 2020 23:25
Resizing a filesystem using qemu-img and fdisk

Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:

  • You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
  • The partition you need to resize is the last partition on the disk.

This process will work with either a qcow2 or raw disk image. For