Skip to content

Instantly share code, notes, and snippets.

@ammgws
ammgws / alx_wol.md
Created July 23, 2017 16:32
re-enable WOL for atheros (alx) driver

Use the script from here.

automatic dkms module installer for patched alx

This is a quick and dirty setup that will automatically setup the dkms module for your specific kernel version.
This will only work on debian/ubuntu and other derivates and requires dkms and patch to be setup already.

The setup uses sudo and thus you are asked for your password once.
It will then attempt to download your kernels source, copy and patch the alx related files and place a "alx-" in your /usr/src directory, enable and compile the module and finally rebuild your initrd.
Currently the the very first compilation somehow fails, thats why it's run twice.

@ammgws
ammgws / FMVS54GR_ubuntu_touchpad_fix.md
Last active September 4, 2017 14:06
Fujitsu Lifebook FMVS54GR - fix unresponsive touchpad after suspend on Ubuntu 17.04

Problem

  • Touchpad unresponsive after suspend (and probably hibernate too).
  • Still shows up in xinput and mouse cursor can be moved but clicks are not registered.

Workaround

  • sudoedit /etc/default/grub and add i8042.notimeout i8042.nomux to GRUB_CMDLINE_LINUX entry.
  • sudo grub-mkconfig -o /boot/grub/grub.cfg
@ammgws
ammgws / FMVS54GR_ubuntu_brightness_hotkeys_fix.md
Last active September 4, 2017 15:07
Fujitsu Lifebook FMVS54GR - fix brightness function keys not working in Ubuntu 17.04

Problem

  • Brightness function keys (Fn+F5,F6) do not work (however others such as volume do work)
  • Tried xbacklight but it did not work.
  • No response whatsoever when checking with acpi_listen, xev, evtest.
  • However able to change brighness in Ubuntu "Brightness and Lock" control panel applet.

Workaround

  • sudoedit /etc/default/grub and add acpi_osi= to GRUB_CMDLINE_LINUX entry.
  • sudo grub-mkconfig -o /boot/grub/grub.cfg
@ammgws
ammgws / FMVS54GR_ubuntu_enable_fingerprint_reader.md
Last active November 17, 2019 04:08
Fujitsu Lifebook FMVS54GR - enable fingerprint sensor in Ubuntu 17.04
  1. Add fingerprint-gui PPA, check that fingerprint sensor is listed as supported:
    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
user@laptop ~> sudo add-apt-repository ppa:fingerprint/fingerprint-gui
Packages for Fingerprint GUI (http://www.ullrich-online.cc/fingerprint/) for Ubuntu 14.04, 16.04, 16.10, 17.04 and any distribution based thereupon

Supported readers (run command lsusb to find out the ID of your reader)
============
     045e:00bb    08ff:1683    08ff:2580    08ff:268d    147e:1000
... etc
@ammgws
ammgws / edgerouter_lite_openvpn.md
Last active April 16, 2023 05:04
Notes on setting up OpenVPN on Edgerouter Lite

My notes on how I setup OpenVPN server on Edgerouter Lite. Based mostly on this guide from openVPN wiki. This guide assumes easyrsa3 is being used, otherwise substitute whatever the easyrsa2 versions are for the commands below.

This guide will use 3 different machines.

A Public Key Infrastructure (PKI) will be created on each machine:

    1. Server - openVPN server (Edgerouter in this case).
    1. Client(s) - the device(s) you will be connecting from.
    1. CA Server - used to generate and sign certificates for server and clients to use.
@ammgws
ammgws / setup_fulldisk_encryption_rpi.md
Last active December 9, 2023 08:46
Notes on how to setup full disk encryption on an already setup Raspbian system

Setup full disk encryption using LVM on LUKS (single drive) with remote SSH for an already setup/running Raspbian stretch system. Using this guide there is no need to connect a screen or keyboard to the rpi at any stage since we will setup remote SSH at the same time (at present no other guides available tell you that this is possible).

1. Backup SD card

To be safe, backup SD card (using another computer is easiest in my case): sudo dd bs=4M if=/dev/<rpi_sdcard> | gzip > rpibackup.img.gz or use my fish shell function.

2. Install LUKS dependencies and reboot

@ammgws
ammgws / letsencrypt-acme-guide.md
Last active July 23, 2023 17:19
Using acme.sh script to renew LetsEncrypt certs using non-standard SSL port

1. Install acme.sh shell script

git clone https://github.com/Neilpang/acme.sh.git
cd acme.sh
./acme.sh --install

Optionally, set the home dir and/or account info (if already have one).
If was previously using LetsEncrypt's certbot, can probably get account info from /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/*/regr.json.

@ammgws
ammgws / unifi_ubuntu_lxc_install.md
Last active January 23, 2019 11:15
Steps to install Unifi 5.6.29 in a Ubuntu 16.04 unpriveleged LXC
@ammgws
ammgws / proxmox_CT_distupgrade_fix.md
Last active November 16, 2023 14:54
Fix for Proxmox container failing to start after dist-upgrade
  • Upgraded from Ubuntu 16.04 LTS to 18.04 (pre-release) using dist-upgade
  • Upon restart CT would not start
  • Error displayed in Web GUI: command 'systemctl start pve-container@101' failed: exit code 1
  • SSHd in and manually ran CT with pct start 101:
>root@server:~# pct start 101
Job for pve-container@101.service failed because the control process exited with error code.
See "systemctl status pve-container@101.service" and "journalctl -xe" for details.
command 'systemctl start pve-container@101' failed: exit code 1
@ammgws
ammgws / python3.6_ubuntu16.04_install_notes.md
Last active April 24, 2019 11:58
Install Python 3.6 on Ubuntu 16.04

Using pyenv seems to be the easiest way apart from a random PPA or finding/downloading/compilign the source myself.

Build dependencies:

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev

Install Pyenv (as the user who will use it, not root):

curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash