Difference between revisions of "Ubuntu 16 04 modifications"

From RobotinoWiki
(/etc/init.d/hostapd)
(WLAN starten mit /etc/rc.local)
Line 67: Line 67:
 
</pre>
 
</pre>
  
==WLAN starten mit /etc/rc.local==
+
==wpasupplicant==
<pre>
+
xenial ships with wpasupplicant version 2.4 which has a bug preventing the wireless to start on boot. [http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wpa_supplicant.html Read here how to compile wpasupplicant from source].
ifdown wlan0
+
 
ifup wlan0
+
Replace /sbin/wpa_supplicant with the wpa_supplicant from your build.
</pre>
 

Revision as of 09:43, 29 July 2016

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
x11vnc -storepasswd KENNWORT /etc/x11vnc.pass 

/etc/systemd/system/x11vnc.service

[Unit]
Description="x11vnc"

[Service]
ExecStart=/usr/bin/x11vnc -auth /home/robotino/.Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
Restart=on-failure

[Install]
WantedBy=display-manager.service

systemctl enable x11vnc.service

Web interface

sudo

www-data ALL=(ALL) NOPASSWD: ALL

/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0 i8042.noaux=1"

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"

Disable Network Manager

apt-get remove network-manager

/etc/init.d/hostapd

DAEMON_CONF=/etc/hostapd.conf

wpasupplicant

xenial ships with wpasupplicant version 2.4 which has a bug preventing the wireless to start on boot. Read here how to compile wpasupplicant from source.

Replace /sbin/wpa_supplicant with the wpa_supplicant from your build.