Skip to content

Instantly share code, notes, and snippets.

View vladbat00's full-sized avatar
πŸ¦€
Rusting

Vladyslav Batyrenko vladbat00

πŸ¦€
Rusting
View GitHub Profile
@vladbat00
vladbat00 / qemu run
Created April 1, 2016 15:30
Qemu run
SPICE_PORT=5924
qemu-system-x86_64 \
-daemonize \
-localtime \
-cpu host \
-enable-kvm \
-hda /home/mvlabat/qemu/WindowsVM.img \
-hdb /dev/sda3 \
-net nic -net user,hostname=windowsvm \
@vladbat00
vladbat00 / Linux mount ISO
Last active April 6, 2016 09:30
Mount ISO
mount -o loop disk1.iso /mnt/iso
@vladbat00
vladbat00 / Gentoo chroot
Created March 31, 2016 20:38
Chrooting in gentoo from any another Gentoo installation (+liveCD)
mount /dev/sdb3 /mnt/gentoo # Use your system root device
mount -t proc proc /mnt/gentoo/proc/
mount --rbind /sys /mnt/gentoo/sys/
mount --rbind /dev /mnt/gentoo/dev/
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
@vladbat00
vladbat00 / Gentoo kernel update
Last active March 31, 2016 19:42
Updating kernel on Gentoo
# Rebuild only
make modules_prepare
make -j8 # Threads count
make modules_install
make install
#make modules_prepare && make -j8 && make modules_install && make install