echo 'deb http://download.opensuse.org/repositories/home:/AsamK:/RetroShare/Debian_7.0/ /' >> /etc/apt/sources.list.d/retroshare.list wget http://download.opensuse.org/repositories/home:/AsamK:/RetroShare/Debian_7.0/Release.key -O - | sudo apt-key add - aptitude update aptitude install retroshare
PHPInfo in Bootstrap Style
Einfach in den Body der Bootstrap Seite reinkopieren.
<?php
ob_start();
phpinfo();
$phpinfo = ob_get_clean();
# Body-Content rausholen
$phpinfo = preg_replace('#^.*<body>(.*)</body>.*$#s', '$1', $phpinfo);
# XHTML-Fehler korrigieren
$phpinfo = str_replace('module_Zend Optimizer', 'module_Zend_Optimizer', $phpinfo);
# <font> durch <span> ersetzen
$phpinfo = str_replace('<font', '<span', $phpinfo);
$phpinfo = str_replace('</font>', '</span>', $phpinfo);
#Table
$phpinfo = str_replace( 'border="0" cellpadding="3"', 'class="table table-bordered table-striped" style="table-layout: fixed;word-wrap: break-word;"', $phpinfo );
$phpinfo = str_replace('<tr class="h"><th>', '<thead><tr><th>', $phpinfo);
$phpinfo = str_replace('</th></tr>', '</th></tr></thead><tbody>', $phpinfo);
$phpinfo = str_replace('</table>', '</tbody></table>', $phpinfo);
# Schlüsselwörter grün oder rot einfärben
$phpinfo = preg_replace('#>(on|enabled|active)#i', '><span class="text-success">$1</span>', $phpinfo);
$phpinfo = preg_replace('#>(off|disabled)#i', '><span class="text-error">$1</span>', $phpinfo);
echo '<div id="phpinfo">';
echo $phpinfo;
echo '</div>';
?>
Copy Image via netcat
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
- listen on port 19000 for connections.
- decompress the datapackages.
- pv displays a status bar.
- and wirte them into a file.
Source:
dd bs=16M if=/root/bar.img | lzop -3 -c | nc -v 10.0.01 19000
- dd reads the file in 16MB Blocks.
- each block will be compressed with lzo.
- nc connects 10.0.01 on port 19000 and pushes data.
Asterisk under Debian Wheezy with SIP Softphone Ekiga or Jitsi
install asterisk
aptitude install asterisk
edit /etc/asterisk/sip.conf
[general] context = default bindport = 5060 bindaddr = 0.0.0.0 tcpbindaddr = 0.0.0.0 tcpenable = yes [1001] type = friend callerid = User 1001 <1001> secret = 1001 host = dynamic canreinvite = no dtmfmode = rfc2833 mailbox = 1001 disallow = all allow = ulaw transport = udp [1002] type = friend callerid = User 1002 <1002> secret = 1002 host = dynamic canreinvite = no dtmfmode = rfc2833 mailbox = 1002 disallow = all allow = ulaw transport = udp
edit /etc/asterisk/extensions.conf
[general] static=yes writeprotect=no [default] exten => 1001,1,Answer() exten => 1001,n,Dial(SIP/1001,20,tr) exten => 1001,n,Hangup exten => 1002,1,Answer() exten => 1002,n,Dial(SIP/1002,20,tr) exten => 1002,n,Hangup.
EncFS under Ubuntu 13.04 Raring Ringtail
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
Skipfish on Debian Wheezy
install dependencies
aptitude install libidn11-dev zlib1g-dev libpcre3-dev
download skipfish
wget https://skipfish.googlecode.com/files/skipfish-2.10b.tgz
unpack
tar xvf skipfish-2.10b.tgz
compile
cd skipfish-2.10b make
run e.g.
./skipfish -W dictionaries/complete.wl -o ../superskipfish/ http://domain.tdl/
Debian Linux IPv6 Privacy extensions
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
Static IP Tinc VPN on Debian Wheezy
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'
Mails auf der Konsole/SSH lesen
mutt -f /var/mail/root
Startprogramme unter Gnome 3
In der Console einfach folgendes eingeben:
gnome-session-properties