lm-sensors
sudo apt-get install lm-sensors
sudo sensors-detect
Thinkfan
Installation
sudo apt-get install thinkfan
echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkfan.conf
Config
sudo emacs -nw /etc/thinkfan.conf
find /sys/devices -type f -name "temp*_input"
tp_fan /proc/acpi/ibm/fan
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input
(0, 0, 42)
(1, 40, 47)
(2, 45, 52)
(3, 50, 57)
(4, 55, 62)
(5, 60, 67)
(6, 65, 72)
(7, 70, 77)
(127, 75, 32767)
Start config
sudo emacs -nw /etc/default/thinkfan
#Additional startup parameters
START=yes
DAEMON_ARGS="-q -b 1 -s 3"
THINKFAN_ARGS="-c /etc/thinkfan.conf"
Enable
sudo systemctl enable thinkfan
Test
sudo thinkfan -n -b -5 -c /etc/thinkfan.conf
Fan status
cat /proc/acpi/ibm/thermal
Temperature Sensors Widget
sudo apt-get install lm-sensors plasma-scriptengine-python
sudo sensors-detect
Nvidia Optimus
sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
VDPAU VAAPI
sudo apt-get install libvdpau1 vdpau-va-driver i965-va-driver vdpauinfo vainfo libvdpau-va-gl1
echo 'export VDPAU_DRIVER=va_gl' > ~/.bash_aliases
Plasma Widgets
sudo apt-get install plasma-widget-homerun-kicker plasma-widget-redshift redshift
Emacs
sudo apt-get install emacs markdown emacs-goodies-el
Plasma Apps
sudo apt-get install konversation kwrite
Multimedia
sudo apt-get install kubuntu-restricted-extras vlc banshee easytag soundkonverter kffmpegthumbnailer kdegraphics-thumbnailers kdesdk-thumbnailers
Calibre
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
Hibernate
Create Swap
sudo dd if=/dev/zero of=/swapfile bs=1M count=20480 status=progress
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Add to fstab
sudo emacs -nw /etc/fstab
/swapfile none swap defaults 0 0
Enable hibernation for users
sudo emacs -nw /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
# Add to the above file
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes
Remove swap
sudo swapoff /swapfile
sudo rm -f /swapfile
Swap from file
# swap_device
# Get swapfile UUID
findmnt -no UUID -T /swapfile
# swap_file_offset
# Get file offset
filefrag -v /swapfile | awk '$1=="0:" {print substr($4, 1, length($4)-2)}'
sudo emacs -nw /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID= resume_offset="
sudo update-grub
sudo emacs -nw /etc/initramfs-tools/conf.d/resume
RESUXME=UUID= resume_offset=
sudo update-initramfs -u -k all
Android
Install
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
KVM
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils virtinst libvirt-daemon virt-manager
udev Rules
cd /etc/udev/rules.d
wget https://raw.githubusercontent.com/M0Rf30/android-udev-rules/master/51-android.rules
chmod a+r /etc/udev/rules.d/51-android.rules
VirtualBox
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian trusty contrib' >> /etc/apt/sources.list.d/oracle-virtualbox.list"
sudo apt-get update
sudo apt-get install virtualbox-5.0
sudo usermod -a -G vboxusers $USER
Genymotion
chmod +x genymotion-2.5.2_x64.bin
./genymotion-2.5.2_x64.bin
Qt Creater
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install qtdeclarative5-examples qtdeclarative5-dev qmlscene qtcreator
SimpleScreenReader
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder simplescreenrecorder-lib:i386
Import GPG Keys
gpg --import secretkey.asc
gpg --edit-key KEYID trust
gpg --edit-key KEYID > Chose primary uid > primary > save
Inkscape
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update
sudo apt-get install inkscape
GIMP
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp gimp-gmic gimp-plugin-registry
TLP
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms
[Source](http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html#installation)
NodeJs
sudo apt install nodejs npm
Xresources
! Xft settings ---------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: true
!Xft.rgba: rgb
Xft.rgba: none
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
VPN
sudo apt install openvpn resolvconf network-manager-openvpn
Tools
sudo apt install kwrite keepassx ksshaskpass libreoffice-style-sifr kdeconnect deja-dup skype handbrake wine htop powertop
Remove
sudo apt purge kate5-data skanlite muon kate libkf5kdegames-data ktorrent-data quassel-data brasero-common
SSH key permissions
# SSH folder
chmod 700 ~/.ssh
# private and authorized keys
cd ~/.ssh
chmod 600 *
# public keys
chmod 644 *.pub
Dell Fan
sensors
and add dell-smm-hwmon
to modules
See fans with sudo su
echo "options dell-smm-hwmon restricted=0 force=1" > /etc/modprobe.d/dell-smm-hwmon.conf
echo "dell-smm-hwmon" > /etc/modules
exit
sudo update-initramfs -u
# Actual
$ cat /etc/modprobe.d/dell-smm-hwmon.conf
# This file must be at /etc/modprobe.d/
options dell-smm-hwmon restricted=0
$ cat /etc/modules
i8k
i8kutils
Control fan via sudo apt install i8kutils
sudo su
echo "i8k" >> /etc/modules
echo "options i8k force=1" > /etc/modprobe.d/i8k.conf
exit
# Reboot
sudo modprobe i8k force=1
# Config
/etc/i8kmon.conf
dell-bios-fan-control
Disable Dell BIOS fan control via git clone https://github.com/TomFreudenberg/dell-bios-fan-control.git
cd dell-bios-fan-control
make
sudo dell-bios-fan-control 0