mutt -f /var/mail/root
Author Archives: bild
Startprogramme unter Gnome 3
In der Console einfach folgendes eingeben:
gnome-session-properties
Compile own Linux Kernel on Debian Wheezy
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
Torrent Opentracker on Debian
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
OpenSSH with authentication key instead of password on Debian Squeeze/Wheezy/Derivatives
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
Howto disable graphical mode (GUI) boot in Debian Wheezy
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
Recover Files from .vdi File
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/
VLC compile on Debian/-derivat
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}
using Qemu KVM virtualization on Debian 7 Weezy
Einfach folgende Pakete installieren:
aptitude install qemu-kvm libvirt-bin virtinst libvirt-clients virt-manager virsh
aptitude install qemu-kvm libvirt-bin virt-manager virsh virtinst
Den/Die Benutzer der Gruppe libvirt hinzufügen, welche qemu-kvm verwenden dürfen sollen
adduser <Benutzername> libvirt
in der Gui virt-manager starten oder in der Konsole (z.B. über SSH) virsh/virtinst verwenden
default Ordner für ISO images:
/var/lib/libvirt/images/
System erstellen auf der Console
virt-install --hvm --name VirtualMachineName --ram 512 --nodisks --livecd --vnc --cdrom /path/to/iso/debian-7.0.0-kfreebsd-amd64-netinst.iso --network network:default
linux loop device verwenden
dd if=/dev/zero of=/mnt/myloopfile.img bs=1G count=40 # 40 GB File losetup /dev/loop0 /mnt/myloopfile.img mkfs.ext4 /dev/loop0 mount /dev/loop0 /mnt/loopverzeichnis