syslog Protocol

RFC – Request for Comments

RFC 3164 – The BSD syslog Protocol, August 2001
RFC 3195 – Reliable Delivery for syslog
RFC 5424 – The Syslog Protocol, March 2009
RFC 5425 – TLS Transport Mapping for Syslog
RFC 5426 – Transmission of Syslog Messages over UDP
RFC 5427 – Textual Conventions for Syslog Management
RFC 5848 – Signed Syslog Messages
RFC 6012 – Datagram Transport Layer Security (DTLS) Transport Mapping for Syslog
RFC 6587 – Transmission of Syslog Messages over TCP, April 2012

glibc

openlog
syslog

#include <stdio.h>
#include <unistd.h>
#include <syslog.h>

int
main(void)
{
   openlog("slog", LOG_PID | LOG_CONS, LOG_USER);
   syslog(LOG_INFO, "A different kind of Hello world ... ");
   closelog();

   return 0;
}

rsyslog

Rsyslog mit MySQL als zentraler Logserver
Fedora: Viewing and Managing Log Files
Centralized RSYSLOG Server Monitoring
How to Setup Centralized Logging Server using Rsyslog
Advanced Unix logging tips
RSyslog on FreeBSD
Rsyslog + MySQL on FreeBSD
gentoo Linux: rsyslog

BSD-Style blocks will go away in rsyslog v7
Filtering by program name

!prog1
 *.* /var/log/prog1.log
 *.* /var/log/prog1again.log
!prog2
 *.* /var/log/prog2.log
 *.* /var/log/prog2again.log
 if $programname == 'prog1' then {
   /var/log/prog1.log
   /var/log/prog1again.log
}
if $programname == 'prog2' then {
   /var/log/prog2.log
   /var/log/prog2again.log
}
<43>1 2015-11-10T17:27:18.354950+01:00 bsd rsyslogd-2304 - - - BSD-style blocks are no longer supported in rsyslog, see http://www.rsyslog.com/g/BSD for details and a solution (Block '!-devd') [try http://www.rsyslog.com/e/2304 ]
<43>1 2015-11-10T17:27:18.356323+01:00 bsd rsyslogd-2184 - - - action '*' treated as ':omusrmsg:*' - please change syntax, '*' will not be supported in the future [try http://www.rsyslog.com/e/2184 ]
<43>1 2015-11-10T17:27:18.356426+01:00 bsd rsyslogd-2207 - - - error during parsing file /usr/local/etc/rsyslog.conf, on or before line 27: warnings occured in file '/usr/local/etc/rsyslog.conf' around line 27 [try http://www.rsyslog.com/e/2207 ]
<43>1 2015-11-10T17:27:18.356455+01:00 bsd rsyslogd-2207 - - - error during parsing file /usr/local/etc/rsyslog.conf, on or before line 27: invalid character ';' - is there an invalid escape sequence somewhere? [try http://www.rsyslog.com/e/2207 ]
<43>1 2015-11-10T17:27:18.356496+01:00 bsd rsyslogd-2184 - - - action 'RSYSLOG_SyslogProtocol23Format' treated as ':omusrmsg:RSYSLOG_SyslogProtocol23Format' - please change syntax, 'RSYSLOG_SyslogProtocol23Format' will not be supported in the future [try http://www.rsyslog.com/e/2184 ]
<43>1 2015-11-10T17:27:18.356512+01:00 bsd rsyslogd-3000 - - - user name 'RSYSLOG_...' too long - ignored
<43>1 2015-11-10T17:27:18.356562+01:00 bsd rsyslogd-2207 - - - error during parsing file /usr/local/etc/rsyslog.conf, on or before line 27: warnings occured in file '/usr/local/etc/rsyslog.conf' around line 27 [try http://www.rsyslog.com/e/2207 ]
<43>1 2015-11-10T17:27:18.356653+01:00 bsd rsyslogd-2304 - - - BSD-style blocks are no longer supported in rsyslog, see http://www.rsyslog.com/g/BSD for details and a solution (Block '!ppp') [try http://www.rsyslog.com/e/2304 ]
<43>1 2015-11-10T17:27:18.356703+01:00 bsd rsyslogd-2304 - - - BSD-style blocks are no longer supported in rsyslog, see http://www.rsyslog.com/g/BSD for details and a solution (Block '!*') [try http://www.rsyslog.com/e/2304 ]

<27>1 2015-11-10T17:27:19.482482+01:00 bsd nmbd 1737 - -  [2015/11/10 17:27:19.481957,  0] ../lib/util/become_daemon.c:136(daemon_ready)
<27>1 2015-11-10T17:27:21.750548+01:00 bsd smbd 1740 - -  [2015/11/10 17:27:21.749661,  0] ../lib/util/become_daemon.c:136(daemon_ready)
<27>1 2015-11-10T17:27:21.760813+01:00 bsd smbd 1740 - -    STATUS=daemon 'smbd' finished starting up and ready to serve connectionsFailed to fetch record!
<27>1 2015-11-10T17:27:21.819782+01:00 bsd winbindd 1744 - -  [2015/11/10 17:27:21.819054,  0] ../source3/winbindd/winbindd_cache.c:3196(initialize_winbindd_cache)
<27>1 2015-11-10T17:27:21.820014+01:00 bsd winbindd 1744 - -    initialize_winbindd_cache: clearing cache and re-creating with version number 2
<27>1 2015-11-10T17:27:21.838248+01:00 bsd winbindd 1744 - -  [2015/11/10 17:27:21.838055,  0] ../lib/util/become_daemon.c:136(daemon_ready)

<11>1 2015-11-10T17:27:22.099952+01:00 bsd freevrrpd 1796 - -  cannot create a netgraph socket: No such file or directory
<10>1 2015-11-10T17:27:22.100123+01:00 bsd freevrrpd 1796 - -  cannot create a bridge device: No such file or directory
<10>1 2015-11-10T17:27:22.100257+01:00 bsd freevrrpd 1796 - -  aborting...

Protocol

Wikipedia Syslog Facility Levels
Unix – System Logging

#define LOG_EMERG       0       /* system is unusable */
#define LOG_ALERT       1       /* action must be taken immediately */
#define LOG_CRIT        2       /* critical conditions */
#define LOG_ERR         3       /* error conditions */
#define LOG_WARNING     4       /* warning conditions */
#define LOG_NOTICE      5       /* normal but significant condition */
#define LOG_INFO        6       /* informational */
#define LOG_DEBUG       7       /* debug-level messages */
#define LOG_KERN        (0<<3)  /* kernel messages */
#define LOG_USER        (1<<3)  /* random user-level messages */
#define LOG_MAIL        (2<<3)  /* mail system */
#define LOG_DAEMON      (3<<3)  /* system daemons */
#define LOG_AUTH        (4<<3)  /* security/authorization messages */
#define LOG_SYSLOG      (5<<3)  /* messages generated internally by syslogd */
#define LOG_LPR         (6<<3)  /* line printer subsystem */
#define LOG_NEWS        (7<<3)  /* network news subsystem */
#define LOG_UUCP        (8<<3)  /* UUCP subsystem */
#define LOG_CRON        (9<<3)  /* clock daemon */
#define LOG_AUTHPRIV    (10<<3) /* security/authorization messages (private) */
#define LOG_FTP         (11<<3) /* ftp daemon */
#define LOG_LOCAL0      (16<<3) /* reserved for local use */
#define LOG_LOCAL1      (17<<3) /* reserved for local use */
#define LOG_LOCAL2      (18<<3) /* reserved for local use */
#define LOG_LOCAL3      (19<<3) /* reserved for local use */
#define LOG_LOCAL4      (20<<3) /* reserved for local use */
#define LOG_LOCAL5      (21<<3) /* reserved for local use */
#define LOG_LOCAL6      (22<<3) /* reserved for local use */
#define LOG_LOCAL7      (23<<3) /* reserved for local use */
#define LOG_FAC_INVLD   24
#define LOG_INVLD       (LOG_FAC_INVLD<<3)      /* invalid facility/PRI code */
syslogName_t    syslogFacNames[] = {
        {"auth",         LOG_AUTH},
        {"authpriv",     LOG_AUTHPRIV},
        {"cron",         LOG_CRON},
        {"daemon",       LOG_DAEMON},
        {"kern",         LOG_KERN},
        {"lpr",          LOG_LPR},
        {"mail",         LOG_MAIL},
        {"mark",         LOG_MARK},             /* INTERNAL */
        {"news",         LOG_NEWS},
        {"security",     LOG_AUTH},             /* DEPRECATED */
        {"bsd_security", (13<<3) },             /* BSD-specific, unfortunatly with duplicate name... */
        {"syslog",       LOG_SYSLOG},
        {"user",         LOG_USER},
        {"uucp",         LOG_UUCP},
        {"ftp",          LOG_FTP},
        {"audit",        LOG_AUDIT},
        {"console",      (14 << 3)},            /* BSD-specific priority */
        {"local0",       LOG_LOCAL0},
        {"local1",       LOG_LOCAL1},
        {"local2",       LOG_LOCAL2},
        {"local3",       LOG_LOCAL3},
        {"local4",       LOG_LOCAL4},
        {"local5",       LOG_LOCAL5},
        {"local6",       LOG_LOCAL6},
        {"local7",       LOG_LOCAL7},
        {"invld",        LOG_INVLD},
        {NULL,           -1},
};

Wikipedia

Syslog (de)
Syslog (en)

Other Resources

RFC Base: The Syslog Protocol
Introduction to Syslog Protocol

Other implementations

loggy

FreeBSD as a Wireless Access Point (WAP)

FreeBSD Handbook: 30.3. Wireless Networking
FreeBSD Handbuch: 32.3. Drahtlose Netzwerke

FreeBSD 10.0-RELEASE Hardware Notes

Quick Wireless Setup On FreeBSD
Howto create a FreeBSD wireless router/access point
How To Set Up A FreeBSD Wireless Access Point
My home firewall router with FreeBSD—A year retrospective
Building my own wireless point

hostapd

hostapd(8) – authenticator for IEEE 802.11 networks
hostapd.conf(5) – configuration file for hostapd(8) utility

interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=Test Wifi
hw_mode=g
macaddr_acl=0
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=*****
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP

802.11n

ath(4) = Atheros Cardbus and PCI cards (AR5416, AR5418, AR9130,AR9160, AR9220, AR9280, AR9285, AR9227, AR9287
ipw(4) = Intel PRO/Wireless 2100 MiniPCI network adapter
iwi(4) = Intel PRO/Wireless 2200BG/2915ABG MiniPCI and 2225BG PCI network adapters
iwn(4) = Intel Wireless WiFi Link 4965AGN IEEE 802.11n PCI network adapters
wpi(4) = Intel 3945ABG Wireless LAN IEEE 802.11 driver

802.11n support for the ath(4) NICs
iwn(4) Intel 802.11n series NICs
ath and 802.11n on FreeBSD 10.0
WiFi configuration in FreeBSD (including WPA/WPA2)

# wlandebug
net.wlan.0.debug: 0x0

# wlandebug +11n 
net.wlan.0.debug: 0x0 => 0x80000000<11n>
wlan0: Ethernet address: 04:f0:21:0c:2b:a6
wlan0: [f8:01:13:05:ef:1f] ieee80211_ht_node_init: called
wlan0: [f8:01:13:05:ef:1f] switch station to HT20 channel 2412/0x10480
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
wlan0: [f8:01:13:05:ef:1f] recv ADDBA request: dialogtoken 98 baparamset 0x402 (tid 0 bufsiz 16) batimeout 0 baseqctl 5:0
wlan0: [f8:01:13:05:ef:1f] send ADDBA response: dialogtoken 98 status 0 baparamset 0x402 (tid 0) batimeout 0x0 baseqctl 0x0
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 0 sta, 0 ht, 0 ht40, HT protmode now 0x0
wlan0: [f8:01:13:05:ef:1f] ieee80211_ht_node_cleanup: called
wlan0: [f8:01:13:05:ef:1f] ieee80211_ht_node_init: called
wlan0: [f8:01:13:05:ef:1f] switch station to HT20 channel 2412/0x10480
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
wlan0: [f8:01:13:05:ef:1f] recv ADDBA request: dialogtoken 173 baparamset 0x402 (tid 0 bufsiz 16) batimeout 0 baseqctl 5:0
wlan0: [f8:01:13:05:ef:1f] send ADDBA response: dialogtoken 173 status 0 baparamset 0x402 (tid 0) batimeout 0x0 baseqctl 0x0
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 0 sta, 0 ht, 0 ht40, HT protmode now 0x0
wlan0: [f8:01:13:05:ef:1f] ieee80211_ht_node_cleanup: called
wlan0: [f8:01:13:05:ef:1f] ieee80211_ht_node_init: called
wlan0: [f8:01:13:05:ef:1f] switch station to HT20 channel 2412/0x10480
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
wlan0: [f8:01:13:05:ef:1f] recv ADDBA request: dialogtoken 248 baparamset 0x402 (tid 0 bufsiz 16) batimeout 0 baseqctl 5:0
wlan0: [f8:01:13:05:ef:1f] send ADDBA response: dialogtoken 248 status 0 baparamset 0x402 (tid 0) batimeout 0x0 baseqctl 0x0
wlan0: [f8:01:13:05:ef:1f] discard MPDU frame, BA win <6:21> (0 frames) rxseq 5 tid 0 (retransmit)
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 0 sta, 0 ht, 0 ht40, HT protmode now 0x0
wlan0: [f8:01:13:05:ef:1f] ieee80211_ht_node_cleanup: called
wlan0: [38:0b:40:23:88:53] ieee80211_ht_node_init: called
wlan0: [38:0b:40:23:88:53] switch station to HT20 channel 2412/0x10480
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
wlan0: [38:0b:40:23:88:53] recv ADDBA request: dialogtoken 120 baparamset 0x802 (tid 0 bufsiz 32) batimeout 0 baseqctl 0:0
wlan0: [38:0b:40:23:88:53] send ADDBA response: dialogtoken 120 status 0 baparamset 0x802 (tid 0) batimeout 0x0 baseqctl 0x0
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 0 sta, 0 ht, 0 ht40, HT protmode now 0x0
wlan0: [38:0b:40:23:88:53] ieee80211_ht_node_cleanup: called
wlan0: [38:0b:40:23:88:53] ieee80211_ht_node_init: called
wlan0: [38:0b:40:23:88:53] switch station to HT20 channel 2412/0x10480
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
wlan0: [38:0b:40:23:88:53] recv ADDBA request: dialogtoken 203 baparamset 0x802 (tid 0 bufsiz 32) batimeout 0 baseqctl 0:0
wlan0: [38:0b:40:23:88:53] send ADDBA response: dialogtoken 203 status 0 baparamset 0x802 (tid 0) batimeout 0x0 baseqctl 0x0
wlan0: [38:0b:40:23:88:53] discard MPDU frame, BA win <7:38> (0 frames) rxseq 6 tid 0 (retransmit)
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 0 sta, 0 ht, 0 ht40, HT protmode now 0x0
wlan0: [38:0b:40:23:88:53] ieee80211_ht_node_cleanup: called
wlan0: [38:0b:40:23:88:53] ieee80211_ht_node_init: called
wlan0: [38:0b:40:23:88:53] switch station to HT20 channel 2412/0x10480
wlan0: [04:f0:21:0c:2b:a6] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
wlan0: [38:0b:40:23:88:53] recv ADDBA request: dialogtoken 26 baparamset 0x802 (tid 0 bufsiz 32) batimeout 0 baseqctl 0:0
wlan0: [38:0b:40:23:88:53] send ADDBA response: dialogtoken 26 status 0 baparamset 0x802 (tid 0) batimeout 0x0 baseqctl 0x0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
	ether 04:f0:21:0c:2b:a6
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
	status: running
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 04:f0:21:0c:2b:a6
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
	status: running

Open:	ssid BACHI.NET channel 1 (2412 MHz 11g ht/40+) bssid 04:f0:21:0c:2b:a6
	country US ecm authmode OPEN privacy OFF txpower 27 scanvalid 60
	protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst
	dtimperiod 1 -dfs

WPA US: ssid BACHI.NET channel 1 (2412 MHz 11g ht/40+) bssid 04:f0:21:0c:2b:a6
        country US ecm authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit
        txpower 27 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8
        shortgi wme burst dtimperiod 1 -dfs

WPA CH: ssid BACHI.NET channel 1 (2412 MHz 11g ht/40+) bssid 04:f0:21:0c:2b:a6
        regdomain ETSI country CH ecm authmode WPA privacy MIXED deftxkey 3
        TKIP 2:128-bit TKIP 3:128-bit txpower 30 scanvalid 60 protmode CTS
        ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs
# ifconfig wlan0 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
f8:01:13:05:ef:1f    1    1  21M 17.0    0     24  27152 EPS  AQEPHTR HTCAP WME WPA
38:0b:40:23:88:53    2    1  43M 12.5    0      6  12336 EPS  AQEHTR  HTCAP WPA WME
# bsd-airtools
# wicontrol

Multi-SSID

FreeBSDAccessPoint
FreeBSDOnEmbeddedDevice

# Eudoroam internal wired and wireless
ifconfig_sis0="up"
create_args_wlan0="wlanmode hostap mode 11g ssid eduroam.test up"
ifconfig_bridge0="addm wlan0 addm sis0 up"
ipv4_addrs_bridge0="192.168.42.1/24 192.168.1.2/24"

# Wireless Leiden Hub
ifconfig_sis2="up"
create_args_wlan1="wlanmode hostap bssid mode 11g ssid
ap-raam.snuit.wleiden.net up"
ifconfig_bridge1="addm wlan1 addm sis2 DHCP"

# Authentication enabled on my personal access point (wlan0)
hostapd_enable="YES"
interface=wlan0
driver=bsd

logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

macaddr_acl=0
auth_algs=1

wpa=1
wpa_passphrase=FooBarPass
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
EOF

multi vap Multi-SSID with ath on FreeBSD 10-current
multiple ssid’s over a single physical wireless interface
Trouble setting up multi SSID and 802.1X
Multiple SSIDs with hostapd (Linux)

$ ifconfig wlan0 create wlandev ath0 wlanmode monitor
$ ifconfig wlan0 channel 6
$ ifconfig wlan0 up
$ tcpdump -ni wlan0 -y IEEE802_11_RADIO
$ tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w output.pcap

WPA-EAP

FreeBSD + Freeradius2 + EAP-TLS + ssl-admin, a WPA2 Enterprise Guide
WPA2 Enterprise using DD-WRT and FreeBSD
hostapd: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Wpa/WPA2-Radius+EAP-TLS/EAP-PEAP
Setting up WLAN network with EAP-TLS using only PC hardware and free software

Snort

Snort

Erster Eindruck: Die stark überarbeitete Snort-Version 2.0, 06/2003
Intrusion Detection mit Snort, Snorby, Open FPC und Pulled Pork, 04/2011
OpenBSD: Snort Intrusion Detection System, July 23 2011
Understanding the Snort architecture
Design of a multimedia traffic classifier for Snort

Snort2Pf

Snort2Pf
Snort2Pf is a small Perl daemon which greps Snort’s alertfile and blocks the “naughty” hosts for a given amount of time using pfctl.

VirtualBox

VirtualBox 6 on Ubuntu

$ sudo dpkg -i virtualbox-6.0_6.0.12-133076~Ubuntu~bionic_amd64.deb 
[sudo] password for andreas:         
Selecting previously unselected package virtualbox-6.0.
(Reading database ... 253319 files and directories currently installed.)
Preparing to unpack virtualbox-6.0_6.0.12-133076~Ubuntu~bionic_amd64.deb ...
Unpacking virtualbox-6.0 (6.0.12-133076~Ubuntu~bionic) ...
dpkg: dependency problems prevent configuration of virtualbox-6.0:
 virtualbox-6.0 depends on libqt5opengl5 (>= 5.0.2); however:
  Package libqt5opengl5 is not installed.
 virtualbox-6.0 depends on libqt5printsupport5 (>= 5.0.2); however:
  Package libqt5printsupport5 is not installed.
 virtualbox-6.0 depends on libqt5x11extras5 (>= 5.6.0); however:
  Package libqt5x11extras5 is not installed.

dpkg: error processing package virtualbox-6.0 (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (237-3ubuntu10.23) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint6) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...
Errors were encountered while processing:
 virtualbox-6.0

$ sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libqt5opengl5 libqt5printsupport5 libqt5x11extras5
The following NEW packages will be installed:
  libqt5opengl5 libqt5printsupport5 libqt5x11extras5
0 upgraded, 3 newly installed, 0 to remove and 269 not upgraded.
1 not fully installed or removed.
Need to get 318 kB of archives.
After this operation, 1'316 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5opengl5 amd64 5.9.5+dfsg-0ubuntu2.3 [132 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5printsupport5 amd64 5.9.5+dfsg-0ubuntu2.3 [178 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libqt5x11extras5 amd64 5.9.5-0ubuntu1 [8'596 B]
Fetched 318 kB in 1s (528 kB/s)              
Selecting previously unselected package libqt5opengl5:amd64.
(Reading database ... 254250 files and directories currently installed.)
Preparing to unpack .../libqt5opengl5_5.9.5+dfsg-0ubuntu2.3_amd64.deb ...
Unpacking libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu2.3) ...
Selecting previously unselected package libqt5printsupport5:amd64.
Preparing to unpack .../libqt5printsupport5_5.9.5+dfsg-0ubuntu2.3_amd64.deb ...
Unpacking libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu2.3) ...
Selecting previously unselected package libqt5x11extras5:amd64.
Preparing to unpack .../libqt5x11extras5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking libqt5x11extras5:amd64 (5.9.5-0ubuntu1) ...
Setting up libqt5x11extras5:amd64 (5.9.5-0ubuntu1) ...
Setting up libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu2.3) ...
Setting up libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu2.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up virtualbox-6.0 (6.0.12-133076~Ubuntu~bionic) ...
Adding group `vboxusers' (GID 129) ...
Done.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Your system has UEFI Secure Boot enabled.                                                                                                                                                                                              

UEFI Secure Boot requires additional configuration to work with third-party drivers.                                                                                                                                                     

The system will assist you in configuring UEFI Secure Boot. To permit the use of
third-party drivers, a new Machine-Owner Key (MOK) has been generated.
This key now needs to be enrolled in your system's firmware.

To ensure that this change is being made by you as an authorized user, and not by
an attacker, you must choose a password now and then confirm the change after
reboot using the same password, in both the "Enroll MOK" and "Change Secure Boot
state" menus that will be presented to you when this system reboots.   

If you proceed but do not confirm the password upon reboot, Ubuntu will still be
able to boot on your system but any hardware that requires third-party drivers to
work correctly may not be usable.    

$ reboot

Enroll MOK

$ lsmod | grep vb
vboxpci                24576  0
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               487424  3 vboxpci,vboxnetadp,vboxnetflt


$ dpkg -l | grep virtualbox
ii  virtualbox-6.0  6.0.12-133076~Ubuntu~bionic  amd64  Oracle VM VirtualBox

$ sudo vi /etc/apt/sources.list
deb https://download.virtualbox.org/virtualbox/debian bionic contrib

Host: Linux, VM: FreeBSD

VirtualBox vboxnet0-Adapter hinzufügen

SRF Videoplayer + Adobe Flash Pepper Plugin

Videos auf Webseite www.srf.ch aufgrund veralteter Adobe flash
Xubuntu 13.04 – SRF funktioniert nicht
SF Video-Portal unter Linux Ubuntu nutzen
Use Pepper Flash Player From Google Chrome In Chromium Browser

Install under Ubuntu 14.04/14.10

How to Install Pepper Flash in Ubuntu 14.04

$ sudo apt-get install pepperflashplugin-nonfree
$ sudo update-pepperflashplugin-nonfree --install
$ sudo update-pepperflashplugin-nonfree --status
Flash Player version installed on this system  : 15.0.0.239
Flash Player version available on upstream site: 15.0.0.223

Check Flash Plugin

Flash About
Install Flash Player in 5 easy steps

Linux as a Wireless Access Point (WAP)

WLAN Accesspoint einrichten
WLAN Router

sudo nmcli nm wifi off
sudo rfkill unblock wlan

hostapd Linux documentation page
Hostapd : The Linux Way to create Virtual Wifi Access Point
hostapd error “nl80211: Could not configure driver mode”
Can’t connect to my access point
“WPA: EAPOL-Key timeout” for certain devices
hostapd, rtl8192se and wpa not working: EAPOL-Key Timeout
WLAN AP Geht wieder nicht
Wifi Problem
WPA/WPA2 Authentication failure – EAPOL-Key timeout

nl80211: New station f8:01:13:05:ef:1f
wlan0: Event EAPOL_TX_STATUS (40) received
IEEE 802.1X: f8:01:13:05:ef:1f TX status - version=2 type=3 length=95 - ack=1
WPA: EAPOL-Key TX status for STA f8:01:13:05:ef:1f ack=1
WPA: Increase initial EAPOL-Key 1/4 timeout by 1000 ms because of acknowledged frame
wlan0: STA f8:01:13:05:ef:1f WPA: EAPOL-Key timeout
WPA: f8:01:13:05:ef:1f WPA_PTK entering state PTKSTART
wlan0: STA f8:01:13:05:ef:1f WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
### Wireless network name ###
interface=wlan0
### Set your bridge name ###
bridge=br0

#driver=iwlwifi
country_code=UA
ssid=BACHI.NET Wireless
channel=6
hw_mode=g

ieee80211d=1
ieee80211n=1
wmm_enabled=1

macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=**********
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
andreas@samsung-notebook:~$ iw list
Wiphy phy0
	Band 1:
		Capabilities: 0x1072
			HT20/HT40
			Static SM Power Save
			RX Greenfield
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT TX/RX MCS rate indexes supported: 0-7, 32
		Frequencies:
			* 2412 MHz [1] (15.0 dBm)
			* 2417 MHz [2] (15.0 dBm)
			* 2422 MHz [3] (15.0 dBm)
			* 2427 MHz [4] (15.0 dBm)
			* 2432 MHz [5] (15.0 dBm)
			* 2437 MHz [6] (15.0 dBm)
			* 2442 MHz [7] (15.0 dBm)
			* 2447 MHz [8] (15.0 dBm)
			* 2452 MHz [9] (15.0 dBm)
			* 2457 MHz [10] (15.0 dBm)
			* 2462 MHz [11] (15.0 dBm)
			* 2467 MHz [12] (15.0 dBm) (passive scanning, no IBSS)
			* 2472 MHz [13] (15.0 dBm) (passive scanning, no IBSS)
		Bitrates (non-HT):
			* 1.0 Mbps
			* 2.0 Mbps (short preamble supported)
			* 5.5 Mbps (short preamble supported)
			* 11.0 Mbps (short preamble supported)
			* 6.0 Mbps
			* 9.0 Mbps
			* 12.0 Mbps
			* 18.0 Mbps
			* 24.0 Mbps
			* 36.0 Mbps
			* 48.0 Mbps
			* 54.0 Mbps
	max # scan SSIDs: 20
	max scan IEs length: 195 bytes
	Coverage class: 0 (up to 0m)
	Supported Ciphers:
		* WEP40 (00-0f-ac:1)
		* WEP104 (00-0f-ac:5)
		* TKIP (00-0f-ac:2)
		* CCMP (00-0f-ac:4)
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
	software interface modes (can always be added):
		 * AP/VLAN
		 * monitor
	valid interface combinations:
		 * #{ managed } <= 1, #{ AP } <= 1,
		   total <= 2, #channels <= 1, STA/AP BI must match
		 * #{ managed } <= 2,
		   total <= 2, #channels <= 1
	Supported commands:
		 * new_interface
		 * set_interface
		 * new_key
		 * new_beacon
		 * new_station
		 * new_mpath
		 * set_mesh_params
		 * set_bss
		 * authenticate
		 * associate
		 * deauthenticate
		 * disassociate
		 * join_ibss
		 * join_mesh
		 * set_tx_bitrate_mask
		 * action
		 * frame_wait_cancel
		 * set_wiphy_netns
		 * set_channel
		 * set_wds_peer
		 * Unknown command (84)
		 * Unknown command (87)
		 * Unknown command (85)
		 * Unknown command (89)
		 * Unknown command (92)
		 * connect
		 * disconnect
	Supported TX frame types:
		 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * Unknown mode (10): 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
	Supported RX frame types:
		 * IBSS: 0x40 0xb0 0xc0 0xd0
		 * managed: 0x40 0xd0
		 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * mesh point: 0xb0 0xc0 0xd0
		 * P2P-client: 0x40 0xd0
		 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * Unknown mode (10): 0x40 0xd0
	Device supports RSN-IBSS.
	WoWLAN support:
		 * wake up on disconnect
		 * wake up on magic packet
		 * wake up on pattern match, up to 20 patterns of 16-128 bytes
		 * can do GTK rekeying
		 * wake up on GTK rekey failure
		 * wake up on EAP identity request
		 * wake up on rfkill release
	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
	Device supports TX status socket option.
	Device supports HT-IBSS.

Linux KVM vs. ioctl

Linux KVM

Kernel Virtual Machine
KVM Documents
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko.

Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.

Kernel

The Definitive KVM (Kernel-based Virtual Machine) API Documentation
The Definitive KVM (Kernel-based Virtual Machine) API Documentation (broken link)

The kvm API is a set of ioctls that are issued to control various aspects of a virtual machine.