Skip to content

Instantly share code, notes, and snippets.

View skarr's full-sized avatar

Willem Dreyer skarr

View GitHub Profile
@skarr
skarr / Nvidia-PITA-710.md
Created December 16, 2021 22:08
Use nouveau for modesetting and llvmpipe for rendering on Ubuntu 20.04 LTS

Fixing GeForce GT 710 for Ubuntu 20.04 LTS

Problem: My NVIDIA GeForce GT 710 is utterly broken under nouveau (artifacts so bad text does not render). Most forum posts that I found wanted to change llvmpipe to nvidia driver... That was the opposite of what I wanted. I don't want to install proprietary drivers. My display-server does not start without modesetting support.

Solution: Disable nouveau acceleration. You can test it by using the kernel parameter nouveau.noaccel=1.

Configure Kernel Options

Keybase proof

I hereby claim:

  • I am skarr on github.
  • I am willemd (https://keybase.io/willemd) on keybase.
  • I have a public key ASAXm4TI5INKAB-CqgTQOfb1PzNVmFFaXGBxCnBIhtELoAo

To claim this, I am signing this object:

@skarr
skarr / pacaur_install.sh
Created March 13, 2017 13:15 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
#!/bin/bash
# history_of_file
#
# Outputs the full history of a given file as a sequence of
# logentry/diff pairs. The first revision of the file is emitted as
# full text since there's not previous version to compare it to.
function history_of_file() {
url=$1 # current url of file
@skarr
skarr / ubuntu_rm_kernels.sh
Last active August 29, 2015 14:16
ubuntu_rm_kernels.sh
#!/usr/bin/env bash
# Removes old kernels (free space on /boot)
# Run after reboot with new kernel
apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
@skarr
skarr / env.sh
Created March 14, 2014 06:38
Node.js Project Environment Setup
#!/usr/bin/env bash
# Vars
BASH_BIN=`which bash`
SCRIPT_DIR=$(dirname "$(readlink -f $0)")
# Interpolated variables
read -r -d '' SOURCE_A << EOF
#!/bin/env bash
SCRIPT_DIR=$SCRIPT_DIR