lsblk
Category Archives: Ubuntu
linux swap file
dd if=/dev/zero of=/path/to/file.swap bs=1G count=4
chown root:root /path/to/file.swap chmod 0600 /path/to/file.swap
mkswap /path/to/file.swap
swapon /path/to/file.swap
edit /etc/fstab
/path/to/file.swap none swap sw 0 0
sysctl vm.swappiness
HTTPS-Übertragung bei Downloads für APT
HTTPS-Übertragung bei Downloads für APT
apt install apt-transport-https
Offline Wikipedia on Debian 7 Wheezy
install
aptitude install apache2 phpmyadmin mysql-server
cd /var/www/ wget -c http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz
download wikipedia dump
wget -c http://dumps.wikimedia.org/dewiki/20140511/dewiki-20140511-pages-articles.xml.bz2
unpack to /var/www/
tar xvf mediawiki-1.20.6.tar.gz
bzip2 -kd dewiki-20130422-pages-articles.xml.bz2
browse to the local mediawiki and configure it
import Data
cd /var/www/mediawiki-1.20.6/maintenance/ php importDump.php < ../../dewiki-20060803-pages-articles.xml
else
php importDump.php --conf ../LocalSettings.php /path_to/dumpfile.xml.gz wikidb
set date and time on Debian / Ubuntu
install
aptitude install ntpdate
update
ntpdate ptbtime1.ptb.de
Server:
http://www.ptb.de/cms/fachabteilungen/abtq/fb-q4/ag-q42/zeitsynchronisation-von-rechnern-mit-hilfe-des-network-time-protocol-ntp.html
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
http://www.pool.ntp.org/zone/de
0.de.pool.ntp.org
1.de.pool.ntp.org
2.de.pool.ntp.org
3.de.pool.ntp.org
update hardware clock
hwclock --systohc
Telekom Cloud unter Ubuntu 14.04 mounten
Installieren
sudo aptitude install davfs2 encfs
/etc/fstab editieren
sudo nano /etc/fstab
https://webdav.mediencenter.t-online.de /mnt/what/ever/u/like davfs rw,noauto,user 0 0
mounten und dann natürlich nur mit encfs nutzen!
sudo mount /mnt/what/ever/u/like encfs /mnt/what/ever/u/like /home/user/where/ever/
davfs Profile anlegen in ~/.davfs2/secrets
https://webdav.mediencenter.t-online.de/ xxxxx@t-online.de Passwort
bzw. 1&1
https://sd2dav.1und1.de/ xxxxx@online.de Passwort
make typescript of terminal session
script
How to find non-free software on your Debian / Ubuntu system
install virtual Richard Matthew Stallman
aptitude install vrms
run
vrms
SSH over SOCKS Proxy
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 .
mop: a fancy stock terminal program
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