Skip to content

Instantly share code, notes, and snippets.

View bspguy's full-sized avatar
🧙

Roy Cohen bspguy

🧙
View GitHub Profile
@bspguy
bspguy / fix nvidia drivers for old gtx-730.txt
Last active April 3, 2023 06:46
fix nvidia drivers for old gtx-730
#remove new driver and install version 390.
sudo apt-get purge '*nvidia*'
sudo apt install nvidia-driver-390
sudo apt-mark hold nvidia-driver-390
@bspguy
bspguy / qemu-debian-powerpc32.md
Created September 8, 2022 13:54 — forked from nstarke/qemu-debian-powerpc32.md
Create Debian PowerPC32 VM Under QEMU

Create Debian PowerPC32 VM Under QEMU

I have a collection of QEMU VMs for different CPU Architectures. In an attempt to fill in some gaps on architectures I lacked VMs for, I decided to spin up a PowerPC32 VM under QEMU. I chose Debian-PowerPC as the OS.

Gathering Resources

Install the prerequisite PowerPC packages:

# apt-get install qemu-system-ppc openbios-ppc
@bspguy
bspguy / QEMU PPC Setup for Debian
Created September 5, 2022 14:35 — forked from ross-newman/QEMU PPC Setup for Debian
Building PPC Linux code using QEMU on Ubuntu 18.04 LTS
#!/bin/bash
echo "Building Debina 10 QEMU instance..."
wget https://cdimage.debian.org/cdimage/ports/10.0/powerpc/iso-cd/debian-10.0-powerpc-NETINST-1.iso
sudo apt install qemu
# Create new disk for install
qemu-img create -f qcow2 debian10.qcow2 2000M
# Boot the install image
qemu-system-ppc -L pc-bios -boot d -M mac99 -m 1024 -net nic,model=sungem -net user -hda debian10.qcow2 -cdrom ./debian-10.0-powerpc-NETINST-1.iso -g 1024x768x8
# Run the image
qemu-system-ppc -L pc-bios -boot c -prom-env "boot-device=hd:,\yaboot" -prom-env "boot-args=conf=hd:,\yaboot.conf" \