Fulltext results:
- 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:**... mat /dev/mdX [/path/to/keyfile] If you add a key file, leave out "-y" **ciphers:** * aes-cbc-essiv:s... tsetup luksOpen /dev/mdX cryptname Open with key file: cryptsetup --key-file /path/to/keyfile luksOp
- 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
- 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 ====
- 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
- 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
- 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
- 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/apache2/ssl/chain.crt
- PHP @linux:webserver
- stcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; ... che php-zip php-dom php-mbstring php-imagick php-fileinfo php-json php-xml php-simplexml ===== Apache ... tall libfcgi0ldbl SCRIPT_NAME=/status SCRIPT_FILENAME=/status QUERY_STRING= REQUEST_METHOD=GET cgi-... memory_consumption=1024 opcache.max_accelerated_files=50000 ; php script changes will appear afte
- Replication @linux:databases:mysql
- = /var/log/mysql/relay-bin.index relay_log_info_file = /var/log/mysql/relay-bin.info expire_l... xyxyxyxyxyxyxyxyxy', MASTER_PORT=3306, MASTER_LOG_FILE='mysql-bin.000002', MASTER_LOG_POS=9235331, MASTE... the log position show master status\G; .. File: mysql-bin.000052 Position: 597 .. **On Serv... xyxyxyxyxyxyxyxyxy', MASTER_PORT=3306, MASTER_LOG_FILE='mysql-bin.000052', MASTER_LOG_POS=597, MASTER_SS
- Synergy @linux:network
- n. mcedit /etc/gdm/PostLogin/Default If the file doesn't exist, create it and write the synergyc c... e way: **put the following line in a startup hook-file of gdm/kdm/xdm:** Just replace username with your... ace scripts in ~/.kde/Autostart/ directory**. The file must be executable and the first line must contai... OSTNAME> == LXDE autostart: == Put a .desktop file in here: **~/.config/autostart/** [Desktop Ent
- Shell Commands & Oneliner
- 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... fault :(** it enables a lot of auto complete for file paths, commands, command parameters(!) and more ... add-bash-completion-in-debian ==== Create Random File ==== count is in KiB dd bs=1024 count=1000 </
- Saltstack
- one it somewhere and add your states: git clone file:///srv/repos/salt/states # ... git add . gi... commit git push Salt master configuration: fileserver_backend: - git gitfs_remotes: - file:///root/salt/states * https://salt-private.r
- Bootloader @linux:filesystems
- nd boot new system ==== **To transfer all system files,** it's best to get a live USB-stick or CD and b... is is required to boot debian - unfortunately the filenames contain versionnumbers :( set root=(hd0,3... Generating grub configuration file ... WARNING: Device /dev/ram0 not initialized i
- Courier @linux:emailserver
- == SSL Certificates ===== ...tricky! All config files use these two variables, so I set them to the same cert files in all configs: Private Key and Cert and intermediate-cert and root-cert(s) combined in one file. The order is unclear. I had the private key firs