Ubuntu 16 04 modifications

From RobotinoWiki
Jump to: navigation, search

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 qt57webengine

Remove with

add-apt-repository --remove ppa:beineri/opt-qt571-xenial

Qt 5.9

sudo add-apt-repository ppa:beineri/opt-qt59-xenial
sudo apt-get update
sudo apt-get install qt59base qt59imageformats qt59quickcontrols qt59quickcontrols2 qt59webengine qt59creator

Remove with

add-apt-repository --remove ppa:beineri/opt-qt59-xenial

Qt 5.10

sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-xenial
sudo apt-get update
sudo apt-get install qt510-meta-minimal

Unattended upgrades

sudo apt-get remove unattended-upgrades update-manager update-notifier-common

Disable autoopen mdeia

gsettings set org.gnome.desktop.media-handling automount-open false

Get TP-Link WN722N v2 to work

apt install --install-recommends linux-image-generic-hwe-16.04
apt-get install linux-source-4.10.0
apt-get install libssl-dev
apt-get install libncurses5-dev
cd /usr/src/linux-source-4.10.0/linux-source-4.10.0
make drivers/staging/rtl8188eu/rtl8188.ko
sudo apt-get update
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git
git clone https://github.com/lwfinger/rtl8188eu
cd rtl8188eu
make all
sudo make install
sudo modprobe 8188eu.ko


git clone https://github.com/jenssegers/RTL8188-hostapd.git

Java

apt-get install openjdk-8-jdk openjdk-8-jre-headless

Realsense

echo 'deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 6F3EFCDE
sudo apt-get update
sudo apt-get install librealsense2-utils librealsense2-dev librealsense2-dbg
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox