Skip to content

Instantly share code, notes, and snippets.

View sofijacom's full-sized avatar
🟣
Working

Sofiya sofijacom

🟣
Working
View GitHub Profile
@sofijacom
sofijacom / void_gnome.md
Created November 25, 2024 01:49 — forked from nerdyslacker/void_gnome.md
[Void Linux + GNOME] void linux configuration from scrath with gnome de #linux #void #gnome
@sofijacom
sofijacom / archlinux-qemu-kvm.md
Created November 6, 2024 05:12 — forked from tatumroaquin/archlinux-qemu-kvm.md
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

Check CPU has VM capabilities

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD
@sofijacom
sofijacom / void_linux_ovh_vps.md
Created October 19, 2024 20:32 — forked from c0m4r/void_linux_ovh_vps.md
Void Linux installation on OVH VPS
@sofijacom
sofijacom / hdd-temp.sh-tint2
Created October 16, 2024 12:49
hdd-temp.sh
#!/bin/bash
# hddtemp=`sudo hddtemp -n /dev/sd?`
hddtemp=`for i in /dev/sd? ; do sudo hddtemp -n sata:$i; done`
echo /root/.config/tint2/tint2-executors/icons/drive-harddisk-root.svg
echo "$hddtemp°C"
SCRIPT_PATH=$(dirname $0)
handle_error(){
echo $@
exit 2;
}
#flash images
fastboot $* erase boot || handle_error erase boot error
fastboot $* erase metadata || handle_error erase metadata error
@sofijacom
sofijacom / deploy-ubuntu-rootfs.md
Created October 14, 2024 16:15 — forked from mmtrt/deploy-ubuntu-rootfs.md
Deploy Ubuntu Core Image.

Note

This guide installs KDE Neon like minimal setup with custom stuff on Ubuntu 23.10 (mantic) Dev rootfs tarball with Grub bootloader as MBR partition install which can be changed by user.

Requirements

For this guide you will need to livebooted debain based linux.
Ubuntu Core rootfs tarball file.
Some patience.

Download rootfs tar of your choice version from here

https://partner-images.canonical.com/core

@sofijacom
sofijacom / How to check USB HDD temperature?
Created October 9, 2024 20:54
How to check USB HDD temperature?
for i in /dev/sd? ; do sudo hddtemp sata:$i; done
for i in /dev/sd? ; do sudo hddtemp -n sata:$i; done
@sofijacom
sofijacom / grub-playtune
Last active September 27, 2024 16:14
grub-playtune
#!/bin/dash
# If you want to test the melody: Install sox and use the script grub-playtune
# grub-playtune 2000 400 4 0 1 500 4 0 1 600 4 0 1 800 6
if [ $# -lt 3 ]; then
echo "Usage: $0 tempo freq dur [freq dur freq dur...]" >&2
exit 1
fi
tempo=$1; shift