install virtual Richard Matthew Stallman
aptitude install vrms
run
vrms
install virtual Richard Matthew Stallman
aptitude install vrms
run
vrms
show avalible devices
tcpdump -D
listen on $device
tcpdump -i $device
ignore port 22
tcpdump -n not dst port 22 and not src port 22
sed '/^$/d' /path/to/input/file.txt > output.txt grep -v '^$' /path/to/input/file.txt > output.txt
#!/bin/bash files="/path/to/input/files/*.txt" for i in $files do sed '/^$/d' $i > $i.out mv $i.out $i done
#!/bin/bash files="/path/to/input/files/*.txt" for i in $files do sed '/^ *$/d' $i > $i.out mv $i.out $i done
ssh server.tld -o ProxyCommand='nc -x proxy.tld:1234 %h %p'
makes use of ‘netcat-openbsd’
ssh server.tld -lBenutzer -p2210 -o ProxyCommand='nc -x proxy.tld:1234 %h %p'
sftp -P2210 -o "ProxyCommand nc -x proxy.tld:1234 %h %p" Benutzer@server.tld:/path/to/file.ext .
rsync -e "ssh -lBenutzer -p2210 -o ProxyCommand='nc -x proxy.tld:1234 %h %p'" server.tld:/path/to/file .
list guests:
virsh list --all
Show guests info:
virsh dominfo $vmname
Start guest:
virsh start $vmname
Shutdown guest:
virsh shutdown $vmname
Poweroff guest:
virsh destroy $vmname
Suspend guest:
virsh suspend $vmname
Resume guest:
virsh resume $vmname
Create guest from XML:
virsh create xml_file.xml
Dump guest XML:
virsh dumpxml $vmname
Modify guest:
virsh edit $vmname
Remove guest definition:
virsh undefine $vmname
Save guest state:
virsh save $vmname $state_file
Restore guest state:
virsh restore $state_file
Create guest:
virt-install --name=$vmname --arch=x86_64 --vcpus=1 --ram=1024 --os-type=linux --os-variant=generic26 --hvm --connect=qemu:///system --network bridge:virbr0 --cdrom=/where/ever/u/store/isos/arch.iso --disk path=/where/ever/u/wish/guest.img,size=20 --accelerate --vnc --noautoconsole --keymap=de
Migrate guest:
virsh migrate --live --copy-storage-inc --verbose $vmname qemu+ssh://destination/system
install dependencies (on Debian/Ubuntu)
aptitude install gccgo gccgo-4.9 golang-go git
set environment variable e.g.
export GOPATH=/home/user/gocode/ mkdir $GOPATH
get and compile
go get github.com/mop-tracker/mop cd $GOPATH/src/github.com/mop-tracker/mop make
enjoy 😀
go run $GOPATH/src/github.com/mop-tracker/mop/cmd/mop/main.go
on e.g. Debian you have to install
aptitude install sshfs
edit /etc/fstab and add the line
sshfs#user@123.123.123.123:/what/ever/remote/ /where/you/wish/local/ fuse uid=1003,gid=100,umask=0,allow_other,_netdev,ro 0 0
or directly in shell:
sshfs user@123.123.123.123:/what/ever/remote/ /where/you/wish/local/ -o idmap=user -o uid=1000 -o gid=100 -o umask=0 -o allow_other -o ro
This is for a High-Bandwidth Network. If you have a Low-Bandwidth Network you can try to switch lzo with bzip2.
Target:
nc -v -l -p 19000 | lzop -c -d | pv -s 70G | dd bs=16M of=/root/foo.img
Source:
dd bs=16M if=/root/bar.img | lzop -3 -c | nc -v 10.0.01 19000
install
sudo aptitude install encfs
use (mount)
encfs ~/Ubuntu\ One/Encrypted/ ~/Ubuntu\ One\ Decrypted/
get info (optional)
encfsctl info ~/Ubuntu\ One/Encrypted/
Var for Config def (optional)
ENCFS6_CONFIG=/path/to/what/ever/.encfs6.xml
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