User:Mawcomw/Personal Tips & Tricks
OpenVPN
Setting Key password in the configuration file
# nano /etc/openvpn/client.conf
... askpass /etc/openvpn/client.pass ca /etc/openvpn/ca.crt cert /etc/openvpn/client.crt key /etc/openvpn/client.key ...
The file /etc/openvpn/client.pass
just contains the password. And you should chmod this file to 600.
PHP
First, find out which files are trying to load the above extensions:
# grep -Hrv ";" /etc/php5 | grep -E "extension(\s+)?=="
An example output: /etc/php5/mods-available/gd.ini:extension=gd.so /etc/php5/mods-available/pdo_sqlite.ini:extension=pdo_sqlite.so /etc/php5/mods-available/pdo.ini:extension=pdo.so /etc/php5/mods-available/pdo_mysql.ini:extension=pdo_mysql.so /etc/php5/mods-available/mysqli.ini:extension=mysqli.so /etc/php5/mods-available/mysql.ini:extension=mysql.so /etc/php5/mods-available/curl.ini:extension=curl.so /etc/php5/mods-available/sqlite3.ini:extension=sqlite3.so /etc/php5/conf.d/mcrypt.ini:extension=mcrypt.so /etc/php5/conf.d/imagick.ini:extension=imagick.so /etc/php5/apache2/php.ini:extension=http.so
Now just find the files that are loading the extensions that are causing the errors and comment out those lines with a ;. For some reason this happened to me with the default install of Ubuntu, so hopefully this helps someone else.
Microsoft Natural Keyboard 4000
Edit section # Microsoft Natural Ergonomic Keyboard 4000 as you like
# sudo vim /usr/lib/udev/hwdb.d/60-keyboard.hwdb
Update the hardware DB:
# sudo udevadm hwdb --update
Unplug and plug back in the keyboard.
Enabling tap-to-click in GDM
You have to export $(dbus-launch) and set the gsettings backend (tested on archlinux with gdm 3.18.2 and 3.26.2.1-1):
Switch to a VT (e.g. Ctrl+Alt+F3), login as root and then switch user to gdm:
# su - gdm -s /bin/sh
Then run:
# export $(dbus-launch)
And finally:
# GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
Run exit or hit Ctrl+D to return to root account. And restart the display manager:
# systemctl restart gdm
Reverting is pretty much the same, just change true to false @ step 2.