Privacy extensions im Linux Kernel aktivieren (falls nicht eh an):
echo "2" > /proc/sys/net/ipv6/conf/eth0/use_tempaddr
24h IPv6 Addresse in Sekunden:
sysctl net.ipv6.conf.eth0.temp_prefered_lft=86400
Privacy extensions im Linux Kernel aktivieren (falls nicht eh an):
echo "2" > /proc/sys/net/ipv6/conf/eth0/use_tempaddr
24h IPv6 Addresse in Sekunden:
sysctl net.ipv6.conf.eth0.temp_prefered_lft=86400
Install tinc
aptitude install tinc
tinc client create script
#!/bin/bash # Version="0.0.8" # # automated Tinc configuration of one participant of a static IP VPN ############################################ echo "tinc config configurator" VPNName="yourtincvpnname123" # Once set stays the same VPNSubnet="10.9.8.0/24" # Once set stays the same ServerName="Server0123" # Name of one or more Clients (space separated) ThisClientName="Client0123" # Each Client must have a unique Name (Server is created the same way as every other Client) ThisClientAddress="name.dyndns.tld" # DNS or IP of this Client ThisClientPort="655" # Port of this Client ThisClientUniqueVpnIp="10.9.8.123" # Each Client must have a unique static IP # make needed directories echo "creating directories ..." mkdir -v "/etc/tinc/$VPNName/" mkdir -v "/etc/tinc/$VPNName/hosts/" touch "/etc/tinc/$VPNName/hosts/tinc.conf" echo "creating tinc config ..." echo "Name = $ThisClientName ConnectTo = $ServerName Device = /dev/net/tun Interface = VPN DeviceType = tap Mode = switch" > "/etc/tinc/$VPNName/tinc.conf" #Device = /dev/net/tun // for Linux #Interface = VPN // for Windows cat "/etc/tinc/$VPNName/tinc.conf" chmod 640 "/etc/tinc/$VPNName/tinc.conf" echo "creating tinc client file" echo "Address = $ThisClientAddress Subnet = $VPNSubnet Port = $ThisClientPort" > "/etc/tinc/$VPNName/hosts/$ThisClientName" #Subnet = $VPNSubnet // virtual subnet echo "creating ip config file" echo "#!/bin/sh ifconfig \$INTERFACE $ThisClientUniqueVpnIp netmask 255.255.0.0" > "/etc/tinc/$VPNName/tinc-up" chmod +x "/etc/tinc/$VPNName/tinc-up" # Auto activate This VPN echo "activating this vpn" cat /etc/tinc/nets.boot echo "$VPNName" >> /etc/tinc/nets.boot cat /etc/tinc/nets.boot # generate vpn keys echo "generating public and private vpn keys" # tincd -n "$VPNName" -K[=BITS] tincd -n "$VPNName" -K4096 #############!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 echo "Exchange all hosts files (can be done over insecure connections without security flaws)" #############!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 echo "Debuging:" echo 'tincd -n "$VPNName" -D -d'
mutt -f /var/mail/root
In der Console einfach folgendes eingeben:
gnome-session-properties
abhängigkeiten installieren:
aptitude install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
Neuesten Kernel herunterladen:
cd /usr/src wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.xz wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.sign
Kernel auspacken und verifizieren:
unxz linux-3.13.tar.xz gpg --verify linux-3.13.tar.sign tar xvf linux-3.13.tar cd linux-3.13
Debian config kopieren
make clean && make mrproper cp /boot/config-`uname -r` ./.config
Debian config laden
make menuconfig hier "Load an Alternate Configuration File" und dann speichern
Kernel kompilieren
make-kpkg clean fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
Kernel installieren
dpkg -i /usr/src/linux-image-3.13-custom_3.13-custom-10.00.Custom_amd64.deb dpkg -i /usr/src/linux-headers-3.13-custom_3.13-custom-10.00.Custom_amd64.deb
Neustarten und genießen 😀
Siehe auch:
Wie man einen Kernel kompiliert – Debian Etch
Erstellen eines Kernels auf traditionelle Art und Weise
install dependencies
apt-get install make g++ zlib1g-dev cvs
get and compile opentracker
cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 co libowfat cd libowfat make cd .. cvs -d:pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot co opentracker cd opentracker make
Let it start at bootup:
crontab -e @reboot /path/to/what/ever/opentracker
Generate the authentication public key on the Client
User@Client:~# ssh-keygen
Install the public key on the server
User@Client:~# ssh-copy-id -i /path/to/what/ever/id_rsa.pub user@server.tld
Or
User@Client:~# ssh-keygen -t rsa
Copy the public key to the server
User@Client:~# scp .ssh/id_rsa.pub user@server:/path/to/what/ever
Install the public key on the server
User@Server:~# cat /path/to/what/ever/id_rsa.pub >> .ssh/authorized_keys
server configuration (should not be needed today)
nano /etc/ssh/sshd_config
PubkeyAuthentication yes
to disable password login
PasswordAuthentication no
further info
SSH with authentication key instead of password
SSH
disable GUI boot
update-rc.d -f gdm3 remove
gdm3 alternativen: kdm, xdm, …
start GUI after bootup:
startx
enable GUI:
update-rc.d -f gdm3 defaults
convert the .VDI into a raw image
VBoxManage clonehd --format RAW VirtualMachine.vdi VirtualMachine.img
mount and copy data
mount -t ext3 -o loop,r VirtualMachine.img /mnt/
Abhängigkeiten
build-essentials cmake
VLC Compilen
(make auf 2kernen laufen lassen: make -j 2 ) (make auf 3kernen laufen lassen: make -j 3 ) (make auf 4kernen laufen lassen: make -j 4 )
cd /usr/local/src/ wget http://download.videolan.org/pub/videolan/vlc/2.0.3/vlc-2.0.3.tar.xz tar xvJf vlc-2.0.3.tar.xz
cd /usr/local/src/vlc-2.0.3/contrib/src/ ../bootstrap make
cd /usr/local/src/vlc-2.0.3/
./configure --enable-run-as-root --enable-x264 \ --enable-merge-ffmpeg --enable-live555 \ --enable-dvbpsi \ --with-contrib=/usr/local/src/vlc-2.0.3/contrib/x86_64-linux-gnu
make make install
SAT Empfang und per HTTP bereitstellen auf Port 8000
/usr/local/bin/cvlc -vvvv dvb-s:// --dvb-frequency $FREQUENZ --dvb-srate 27500000 --dvb-satno 1 --dvb-polarization=H --dvb-adapter 2 --dvb-caching=20000 --ttl 100 --program=$PROGRAMM --sout #transcode{}:std{access=http,mux=ts,dst=:8000}
Per HTTP Holen, nach h264 konvertieren und wieder per HTTP auf Port
8001 bereitstellen
cvlc -vvv http://127.0.0.1:8000 --http-reconnect --sout #transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=1500,acodec=mp4a,ab=96,channels=2,samplerate=48000}:std{access=http,mux=ts,dst=:8001}
Geht auch in einem Schritt
/usr/local/bin/cvlc -vvvv dvb-s:// --dvb-frequency $FREQUENZ --dvb-srate 27500000 --dvb-satno 1 --dvb-polarization=H --dvb-adapter 2 --dvb-caching=20000 --ttl 100 --program=$PROGRAMM --sout #transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=1500,acodec=mp4a,ab=96,channels=2,samplerate=48000}:std{access=http,mux=ts,dst=:8000}