Skip to content

Instantly share code, notes, and snippets.

@M66B
M66B / gist:3e976ef1dbe0fe4429f6
Last active November 28, 2018 16:41
fstab: mount samba
sudo apt-get install cifs-utils --no-install-recommends
sudo mkdir -p /media/share
sudo nano /etc/mysmbpass
username=somebody
password=secret
sudo nano /etc/fstab
@M66B
M66B / gist:a9bbd30bfe4032233ea9
Last active August 29, 2015 14:03
Acer C720 external monitor
xrandr --output HDMI1 --auto --output eDP1 --auto --below HDMI1
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2#Now_automate_it_on_login
EXTERNAL_OUTPUT="HDMI1"
INTERNAL_OUTPUT="eDP1"
EXTERNAL_LOCATION="above"
Alternative command
@M66B
M66B / gist:e1a47246d9e1ee6c2f1e
Last active August 29, 2015 14:03
Acer C720 restart/shutdown without password
sudo nano /etc/sudoers
ALL ALL=(root) NOPASSWD: /usr/lib/x86_64-linux-gnu/xfce4/session/xfsm-shutdown-helper
@M66B
M66B / gist:400d79ba8429251469d9
Created June 29, 2014 07:10
Acer C720 audio
sudo nano /etc/modprobe.d/alsa.conf
options snd_hda_intel index=1
@M66B
M66B / gist:58f660348d01d87de2e6
Last active August 29, 2015 14:03
Acer C720 wireless
sudo nano /etc/modprobe.d/ath9k.conf
options ath9k btcoex_enable=1 ps_enable=1 bt_ant_diversity=1
#performance: nohwcrypt=1
@M66B
M66B / gist:62793616a6359886d4c8
Last active April 1, 2017 04:37
Acer C720 fix tearing
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection
Settings > Window Manager Tweaks > Enable display compositing
@M66B
M66B / gist:e88f4d0a2bb75c1a2683
Last active August 29, 2015 14:03
Acer C720 bluetooth audio
sudo apt-get install firmware-atheros blueman bluez-alsa
sudo apt-get purge pulseaudio
sudo apt-get autoremove --purge
sudo nano /etc/pm/sleep.d/05_Sound
#!/bin/bash
mods=( btusb bnep ath3k rfcomm bluetooth )
case "${1}" in
hibernate|suspend)
@M66B
M66B / gist:f6bed355dbd88e01c5e0
Last active August 29, 2015 14:03
Acer C720 SSD
sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="... elevator=noop"
sudo nano /etc/fstab
UUID=... / ext4 errors=remount-ro,noatime 0 1
su root
crontab -e
@M66B
M66B / gist:1784789ae3f3c79048a5
Last active August 29, 2015 14:03
Acer C720 touchpad
https://wiki.archlinux.org/index.php/Acer_C720_Chromebook#Touchpad_Kernel_Modules
http://blog.mdosch.de/
Setting -> Window Manager Tweaks -> Workspaces -> User the mouse wheel on the desktop to switch workspaces -> Off
@M66B
M66B / gist:da8a69bd2550419d693e
Last active August 29, 2015 14:03
Acer C720 installed packages
sudo dpkg --get-selections > installed.conf
sudo dpkg --set-selections < installed.conf
acl install
acpi install
acpi-support-base install
acpid install
adduser install
aircrack-ng install
alsa-base install