Ubuntu 16 04 modifications
From RobotinoWiki
Contents
Disable Apport
echo "enabled=0" > /etc/default/apport
lighttpd
apt-get install lighttpd php php-cgi lighty-enable-mod cgi lighty-enable-mod fastcgi-php
allow root to run X11 apps
echo "export XAUTHORITY=/home/robotino/.Xauthority" >> /etc/profile
VNC
apt-get install x11vnc
/etc/systemd/system/x11vnc.service
[Unit] Description="x11vnc" [Service] ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbport 5900 -shared Restart=on-failure [Install] WantedBy=display-manager.service
systemctl enable x11vnc.service
Web interface
sudo
www-data ALL=(ALL) NOPASSWD: ALL
Grub
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0 i8042.noaux=1"
/etc/grub.d/00_header
# insmod efi_gop # insmod efi_uga # insmod ieee1275_fb
update-grub
/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x1501 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # USB device 0x:0x (ath9k_htc) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
hostapd
apt-get install hostapd hostap-utils isc-dhcp-server
/etc/init.d/hostapd
DAEMON_CONF=/etc/hostapd.conf
/etc/default/rcS
FSCKFIX=yes automatic repair of filesystem errors
gvfsd-smb-browse
chmod -x /usr/lib/gvfs/gvfsd-smb-browse
Prevent shutdown without monitor attached
Gnome
System Setting -> Power -> Lid closed: Do nothing
/etc/systemd/logind.conf
HandleLidSwitch=ignore HandleLidSwitchDocked=ignore
Qt 5.7
sudo add-apt-repository ppa:beineri/opt-qt571-xenial sudo apt-get update sudo apt-get install qt57base qt57imageformats qt57quickcontrols qt57quickcontrols2
Remove with
add-apt-repository --remove ppa:beineri/opt-qt571-xenial
Qt 5.8
sudo add-apt-repository ppa:beineri/opt-qt58-xenial sudo apt-get update sudo apt-get install qt57base qt57imageformats qt57quickcontrols qt57quickcontrols2
Remove with
add-apt-repository --remove ppa:beineri/opt-qt58-xenial
Unattended upgrades
sudo apt-get remove unattended-upgrades update-manager update-notifier-common