Just showing this off…
Disclaimer:
This walkthrough is provided as a complete lab, that means i’lll be installing Windows, Linux, Installing an AD, a webserver and all of that stuff. If you already have that infrastructure in place (or bits & pieces of it), just skip the corresponding parts.
Here’s the table of contents:
Duh. obviously. I use Windows Server 2016, you might use a different version on your own risk, or you already have it in place, whatever.
So you need at least one domain contoller running, obviously. Just for this example lab, i’ll set one up named dc01.testdomain.local.
Head over to the Server Manager, add the “Active Directory Domain Services” Role, install it and configure your domain, then reboot. You should have a working Acrive Directory with one domain now. Just for reference i added some screenshots here, in case this REALLY is your first time setting up a domain. Good luck, in that case… 🙂 Continue reading →
(08-15 example) srv01 ~ # cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: ens160: addresses: [1.2.3.4/30, "2a02:708:xx:xx::2/64"] gateway4: 1.2.3.4 gateway6: 2a02:708:xx:xx::1 nameservers: addresses: [8.8.8.8, "2001:4860:4860::8888"] ens192: addresses: [192.168.0.10/24] to apply the settings, use netplan apply to list your network interfaces (and their names) use ip addr
Long story short:
https://raw.githubusercontent.com/AdnanHodzic/displaylink-debian/master/displaylink-debian.sh
local mirror here (dated 2018/03/13)
See it in Action:
root@nb-fpanzer:~# ./displaylink-debian.sh
————————— displaylink-debian —————————-
DisplayLink driver installer for Debian based Linux distributions:
* Debian GNU/Linux
* Ubuntu
* Elementary OS
* Linux Mint
* Kali Linux
* DeepinOptions:
[I]nstall
[U]ninstall
[R]e-install
[Q]uitSelect a key: [i/u/r/q]: I
——————————————————————-
Checking dependencies
unzip is installed
linux-headers-4.15.0-10-generic is installed
dkms is installed
lsb-release is installed
dpkg-query: Paket »linux-source« ist nicht installiert und es ist keine Information verfügbar
Verwenden Sie dpkg –info (= dpkg-deb –info) zum Untersuchen von Archiven
und dpkg –contents (= dpkg-deb –contents) zum Auflisten ihres Inhalts.
linux-source not found! Install? [Y/n] Y
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen…. Fertig
Die folgenden zusätzlichen Pakete werden installiert:
linux-source-4.15.0
Vorgeschlagene Pakete:
libncurses-dev | ncurses-dev kernel-package libqt3-dev
Die folgenden NEUEN Pakete werden installiert:
linux-source linux-source-4.15.0
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 129 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 144 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] J
Holen:1 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 linux-source-4.15.0 all 4.15.0-10.11 [129 MB]
Holen:2 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 linux-source all 4.15.0.10.11 [2.272 B]
Es wurden 129 MB in 30 s geholt (4.278 kB/s).
Vormals nicht ausgewähltes Paket linux-source-4.15.0 wird gewählt.
(Lese Datenbank … 288228 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von …/linux-source-4.15.0_4.15.0-10.11_all.deb …
Entpacken von linux-source-4.15.0 (4.15.0-10.11) …
Vormals nicht ausgewähltes Paket linux-source wird gewählt.
Vorbereitung zum Entpacken von …/linux-source_4.15.0.10.11_all.deb …
Entpacken von linux-source (4.15.0.10.11) …
linux-source-4.15.0 (4.15.0-10.11) wird eingerichtet …
linux-source (4.15.0.10.11) wird eingerichtet …Platform requirements satisfied, proceeding …
——————————————————————-
Please read the Software License Agreement
available at http://www.displaylink.com/downloads/file?id=1123
and accept here: [Y]es or [N]o: YDownloading DisplayLink Ubuntu driver:
–2018-03-13 15:55:17– http://www.displaylink.com/downloads/file?id=1123
Auflösen des Hostnamens www.displaylink.com (www.displaylink.com)… 54.229.186.74, 52.208.143.240, 34.252.223.12, …
Verbindungsaufbau zu www.displaylink.com (www.displaylink.com)|54.229.186.74|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 303 See Other
Platz: http://assets.displaylink.com/live/downloads/software/f1123_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.2.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1520953530&Signature=NCBPWabnNZOkbSctW5sv5a4ksAE%3D [folgend]
–2018-03-13 15:55:17– http://assets.displaylink.com/live/downloads/software/f1123_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.2.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1520953530&Signature=NCBPWabnNZOkbSctW5sv5a4ksAE%3D
Auflösen des Hostnamens assets.displaylink.com (assets.displaylink.com)… 54.231.141.36
Verbindungsaufbau zu assets.displaylink.com (assets.displaylink.com)|54.231.141.36|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 14112877 (13M) [application/octet-stream]
Wird in »DisplayLink_Ubuntu_4.2.zip« gespeichert.DisplayLink_Ubuntu_4.2.zip 100%[===================================================================================================================================>] 13,46M 3,70MB/s in 3,7s
2018-03-13 15:55:21 (3,62 MB/s) – »DisplayLink_Ubuntu_4.2.zip« gespeichert [14112877/14112877]
——————————————————————-
Preparing for install
Archive: DisplayLink_Ubuntu_4.2.zip
inflating: 4.2/displaylink-driver-4.2.29.run
inflating: 4.2/LICENSE
creating: 4.2/__MACOSX/
inflating: 4.2/__MACOSX/._LICENSE
Creating directory displaylink-driver-4.2.29
Verifying archive integrity… 100% All good.
Uncompressing DisplayLink Linux Driver 4.2.29 100%## NO suitable EVDI source found ##
——————————————————————-
Installing driver version: 4.2
DisplayLink Linux Software 4.2.29 install script called: install
Distribution discovered: Ubuntu Bionic Beaver (development branch)
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
Installing EVDI kernel module to kernel tree
EVDI kernel module built successfully
Installing x64-ubuntu-1604/DisplayLinkManager
Installing libraries
Installing firmware packages
Installing licence file
Adding udev rule for DisplayLink DL-3xxx/5xxx devicesPlease read the FAQ
http://support.displaylink.com/knowledgebase/topics/103927-troubleshooting-ubuntu——————————————————————-
Performing post install steps
Created symlink /etc/systemd/system/multi-user.target.wants/dlm.service → /lib/systemd/system/dlm.service.
——————————————————————-
Performing clean-up
Removing redundant: “DisplayLink_Ubuntu_4.2.zip” file
Removing redundant: “4.2” directory——————————————————————-
Install complete, please reboot to apply the changes
——————————————————————-
In case your Magento database import fails with errno 150, here’s a quick solution:
Put the following statements on top of your import script:
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT; SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS; SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION; SET NAMES utf8; SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'; SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0;
Put the following statements at the end of your import script:
SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT; SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS; SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION; SET SQL_NOTES=@OLD_SQL_NOTES;
VBR=”3500k” # bitrate
FPS=”30″ # framerate
KEYFRAMEINT=”40″ # keyframe interval
QUAL=”medium” # ffpmeg quality preset
YOUTUBE_URL=”rtmp://a.rtmp.youtube.com/live2″ # youtube rtmp url
KEY=”XXXX-XXXX-XXXX-XXXX”sudo modprobe snd_aloop
alsactl restore
while true
doffmpeg -err_detect explode -thread_queue_size 16384 \
-f alsa -ac 2 -i pulse \
-f v4l2 -video_size 864×480 -thread_queue_size 16384 -i /dev/video1 -deinterlace \
\
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $KEYFRAMEINT -b:v $VBR \
-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \
-f flv “$YOUTUBE_URL/$KEY”sleep 5
done
If you ever encounter this error, add the line
KexAlgorithms=+diffie-hellman-group1-sha1
at the end of your /etc/ssh/ssh_config file.
Bonus: One-Liner for the impatient
sudo echo “KexAlgorithms=+diffie-hellman-group1-sha1” >> /etc/ssh/ssh_config
googlesay-de(){ curl -A RG translate\.google\.com/translate_tts -d "tl=de&q=$@" |mpg123 -; }; googlesay-en(){ curl -A RG translate\.google\.com/translate_tts -d "tl=en&q=$@" |mpg123 -; }; googlesay-de "das ist ein test" googlesay-en "this is a test"
Es gibt diverse halsbrecherische Methoden, um unter Linux einen USB-Stick (oder noch schlimmer: eine USB-Festplatte) so mit dem Windows 7/8 Installationsmedium zu beschreiben, dass das Gerät bootfähig wird und damit Windows auf einem beliebigen Gerät installiert werden kann.
Der Königsweg war unetbootin 494, das auch NTFS formatierte MEdien anzeigen konnte. Das Problem ist, dassmoderne Distributionen die Abhängigkeiten deralten Version nicht merh erfüllen können und solche Dinge tun:
./unetbootin-linux-494: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Werft die Lösungen mit gparted, unetbootin oder unetbootin 494 weg. Nehmt WinUSB [Link].
Ich empfehle, das Binärpaket (.deb) direkt herunterzuladen statt das PPA hinzuzüfgen. Unter Ubuntu 14.04 (Trusty Tahr) habe ich das .deb für
heruntergeladen und installiert, das funktioniert tadellos. Wichtig ist es, nach dem Start im Hauptmenü File -> Show all drives zu aktivieren.
ifconfig -a | grep -v “^ ” | sed -e ‘/^$/d’ | awk ‘{ print $1 }’
Der Fehler
Fehler: launchpad error (Error code = 2):
== STDERR ====================
Failed to execute scout.
The return code is 9
The output on STDERR is
Unable to determine block size in df output. First line looks like ‘Dateisystem 512‐Blöcke Benutzt Verfügbar Kapazit. Eingehängt auf
‘ at – line 560.==============================
lässt sich relativ simpel beheben. Ursächlich ist die Tatsache, dass auf dem Quellsystem – SuSE Linux – deutsch als Standardsprache hinterlegt ist. Diese muss auf englisch umgestellt werden.
Zunächst wird in yast unter System -> Sprache die systemweite Standardsprache auf Englisch (US) umgestellt.
Danach noch mit einem Texteditor die Datei /etc/profile.local abändern:
export LANG=”en_US.utf8″
export LANGUAGE=”en_US.utf8″
export LC_ALL=”en_US.utf8″
Nun sollte dem Transfer von Inhalten auf das neue Plesk-System nichts mehr im Wege stehen.