Fulltext results:
- Formatting Syntax @wiki
- mple markup language, which tries to make the datafiles to be as readable as possible. This page contain... is behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. ... ?php /** * Customization of the english language file * Copy only the strings that needs to be modifie... ning the syntax for links and [[#images_and_other_files|images]] (see below) like this: [[http://php.
- mySQL @linux:databases
- ---- == mysqldump == dump a database to a .sql file. there are many parameters. check 'man mysqldump'... ter-set=utf8 --user=root --password=${PWD} $DB > $FILE If you get "error 34 too many open files".. increase open_files_limit in /etc/mysql/my.cnf open_files_limit = 50000 Restart mysql and chec
- Crypto @linux:filesystems
- pen the contäner mkfs.ext4 -j -m 1 -O dir_index,filetype -L binaryblob /dev/mapper/cryptname # Forma... nd install bootlaoder from a chroot, see: [[linux:filesystems:boot|]] ---- \\ **Create the RAID array:**... --hash sha512 -y luksFormat /dev/mdX [/path/to/keyfile] If you add a key file, leave out "-y" **ciphers:** * aes-cbc-essiv:sha256 is deprecated: http://ww
- Apache @linux:webserver
- rsions of apache2 require a chain of certs in one file, not anymore separate files: cat /etc/apache2/ssl/cert.crt /etc/apache2/ssl/intermediate.crt > /etc... t config for all vhosts in 000-default: # cert-file: # SSLCertificateFile /etc/apache2/ssl/cert.crt # replaced by chain-file: SSLCertificateFile /etc
- Shell Commands & Oneliner @linux
- ===== **create tar.gz archiv** tar -czvf myfiles.tar.gz /home/username/myfiles/ **create tar.gz archiv of full system without ** tar cvpzf /mnt/s... ev / \\ ---- ===== compressed dump of complete filesystems ===== **backup raw data of a disc (as ro... "normalize" by id3 tag** mp3gain analyses sound files and saves an id3 volume metatag to them. many mu
- Filesystems @linux
- ====== Filesystems ====== && Crypto,..: check subpages ===== swap ===== **create and use a swapfile** dd if=/dev/zero of=/swapfile bs=1024 count=1000000 # = 1000mb mkswap /swapfile edit /etc/fstab -- add a swap-line for auto a
- Nginx @linux:webserver
- # Cache information about frequently accessed files open_file_cache max=2000 inactive=20s; open_file_cache_valid 60s; open_file_cache_min_uses 5; open_file_cache_errors off; # buffers optimzed: c
- btrfs @linux:filesystems
- ===== optimize ===== COW is not good for small files like database files: disable it for a directory: chattr -R +C /var/lib/mysql check: lsattr /va... df /home/ see, if the device was full: btrfs filesystem show for example: here only 2.67TiB are *... lins.org/perso/btrfs/post_2014-05-04_Fixing-Btrfs-Filesystem-Full-Problems.html ===== btrfs RAID ====
- dirvish @linux:backup
- ps of directories trees up to 100GB of small mail files. Usually we mirror the data from a remote server... ory tree to find if there are other copies of the files. This can even cause database servers to hang, because they don't get a lock on a file for too long. Fix: Avoid to overload dirvish. Th... around: change the expires-at date in the summary file of the first image to Never or some distant futur
- PXE netboot @linux:debian_install
- tftp server, you just need to serve the pxe boot files from there. For debian, you can use: * an un... s the pxelinux.cfg directory and debian-installer files. * a debian live cd: you can mount an iso and... an automated installer, which downloads a preseed file: label Install Automat MENU DEFAULT kernel ... everything :) Add a download url for the preseed file to the bootmenu in pxelinux.cfg/default. This can
- Multiboot Stick @linux:filesystems
- v/sdX * edit grub.cfg config to match your iso files - edit /mnt/usb/boot/grub/grub.cfg * exam... ry "ubuntustudio-12.04-dvd-amd64" { set isofile="/iso/ubuntustudio-12.04-dvd-amd64.iso" loopback loop $isofile linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt -- initrd (l
- LXC @linux:virtualization
- s on host or in vs - only in the container config file!** **Move eth0 to br0 in /etc/network/interfaces... 000 /vservers/<containername>/rootfs If you copy files from outside into the container, they have wrong uid/gid. if the file should belong to root, just run this from the roo... 000 /vservers/<containername>/rootfs/<path to the file in container> **Links:** * https://unix.stac
- duplicity @linux:backup
- ug-Fixes ===== ==== restore error 'too many open files' ==== increase open file limits in /etc/security/limits.conf add: root soft nofile 4096 root hard nofile 8192 re-login and check: ulimit -Hn
- SSH @linux:network
- t password, you need to add the public key to the file **~/.ssh/authorized_keys** on that box. less ~... -get install keychain add keychain to ~/.bash_profile eval `keychain --eval --agents ssh --clear id_... nd re-use it for all logins: source ~/.bash_profile \\ ===== setup a tunnel ===== this creates a ... PermitOpen 127.0.0.1:3306 \\ ===== SSHFS - SSH Filesystem ===== Mount remote directories (for all us