Skip to content

Instantly share code, notes, and snippets.

@erikvip
erikvip / pulseaudio.md
Created June 15, 2017 09:32
Pulseaudio troubleshooting and general install notes

PulseAudio Setup

Notes on my pulseaudio installation. PA was acting screwy in 14.04, after
upgrading to 16.04, it appeared fixed, but had issues w/ my video driver. After screwing with the nvidia driver, audio was completely broken. This is a general troubleshooting guide.

Audio Setup

I use front and back outputs, which must be combined.

As usual, try restarting pulseaudio and alsa

@erikvip
erikvip / reset-display.md
Last active March 3, 2024 19:37
Reinstall default graphics driver on Ubuntu

Remove installed nvidia driver & reset to default graphics driver

On Ubuntu 15.10, after installing the nvidia proprietary driver, it didn't quite work as expected...going down to older version made it work, but graphics were slow. Run the below to reset back to the original graphics setup.

sudo apt-get purge nvidia-*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

# May not have any alternatives configured (ok to skip)

sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf

@erikvip
erikvip / raspberry-htpc.md
Last active October 19, 2015 17:21
Notes on an Raspberry PI HTPC Setup

My Pi came w/ Noobs, which handled the base Rasbian install for me.

  • Choose Rasbian
  • Also Create Ext4 extended file system
  • I don't use scratch, since that's like a kids toy...

Install may take 20-30 minutes

After install, reboot

@erikvip
erikvip / cygwinlist.md
Last active August 17, 2024 06:52
Import/Export Cygwin List of installed packages

Import & Export Cygwin List of installed Packages

If you want to go from 32 to 64 bit Cygwin but keep all the packages[1], you might find yourself in a spot where you would like to export the list of cygwin packages and also be able to install cygwin with all these packages again. I will tell you how. Open your Cygwin shell and enter

cygcheck -c -d | sed -e "1,2d" -e 's/ .*\$//' > packagelist

This will simply dump a list of installed packages. To install Cygwin 64 with these packages selected, download setup-x86_64[2] and execute it with the command line parameters

./setup-x86_64 -P `awk 'NR==1{printf \$1}{printf ",%s", \$1}' packagelist`
@erikvip
erikvip / Patch-source-apt-get-package.md
Last active September 14, 2020 08:52
Patch source manually from apt-get package

Example for manually patching an apt-get package.

(In this case, the vlc browser plugin package)

sudo apt-get source browser-plugin-vlc
sudo apt-get build-dep browser-plugin-vlc
#( Make your source changes )
dpkg-source --commit
sudo debuild -i -us -uc -b
@erikvip
erikvip / win7-force-ownership.bat
Created June 13, 2014 17:10
Win7 Take ownership of files
For Files:
takeown /f <file name> /d y
icacls<file name> /grant administrators:F
For Folders or Directories (will perform action recursively):
takeown /f <directory name> /r /d y
icacls <directory name> /grant administrators:F /t
@erikvip
erikvip / xmlstarlet example
Created June 13, 2014 16:29
Example xmlstarlet command for parsing nmap script results
xmlstarlet sel -t -m '//host/ports/port/script[@id="ssl-heartbleed"]' -m 'ancestor::port/ancestor::ports/ancestor::host/address' -v '@addr' -m 'ancestor::host/ports/port/service' -v ' @*' -n -n output-example-positive.xml