Fulltext results:
- PHP @linux:webserver
- o separate the domains and run scripts as separte user. This works well with ssh-sftp setup.because scripts are owned by the same user as the sftp user - not www-data. **Pool per domain config:** cd /etc/php5/fpm/pool.d/ cp www.conf {user1.conf,user2.conf} replace all appearances of "ww
- Bootloader @linux:filesystems
- ns and transfer the data anyway you like (as root user): 1. **rsync** needs params and data must be ex
- Backup
- dd bs=4M if=/dev/sdX | gzip -c9 > /home/your_username/image`date +%d%m%y`.gz 2. terminal: watch progress Restore: gzip -dc /home/your_username/image....gz | dd bs=4M of=/dev/sdX
- Streaming -Server und Cam -Software
- ingserver. Almost as good as nginx, but much more userfriedly In a docker container its up and running
- LXC @linux:virtualization
- ntainer to another machine, .. - take care of the user/group IDs: pack: tar --numeric-owner -czvf con... - than its the same as running the containers as user. for best security, each container should have i... c/subgid, root:100000:65536 **vs config - map user ids:** put this in /etc/lxc/default.conf too! ... change.com/questions/127554/building-unprivileged-userns-lxc-container-from-scratch-by-migrating-a-privi
- Debug
- which processes are in R or D state: ps -eo s,user,cmd | grep ^[RD] | sort | uniq -c | sort -nbr | h
- SSH @linux:network
- remote machine: ssh-copy-id -i .ssh/id_rsa.pub user@remoteserver \\ ===== Key authentication - restr... lesystem ===== Mount remote directories (for all users and reconnect, if network is interrupted) Insta... s chroot-dir: ChrootDirectory %h add group and user: groupadd sftp useradd -g sftp -d /var/www/user/ -s /sbin/nologin user passwd user set permiss
- Nginx @linux:webserver
- cache ""; # If non GET/HEAD, don't cache & mark user as uncacheable for 1 second via cookie if ($req... extensive List: server { ... if ($http_user_agent ~* (AspiegelBot|MegaIndex|heritrix|panscien... ://www.howtoforge.com/nginx-how-to-block-exploits-sql-injections-file-injections-spam-user-agents-etc
- Shell Commands & Oneliner
- r.gz archiv** tar -czvf myfiles.tar.gz /home/username/myfiles/ **create tar.gz archiv of full sys... this to /etc/profile to enable completion for all users: if [ -f /etc/bash_completion ]; then .
- BIOS Upgrade @linux:debian_install
- ebian OS does not allow IO memory map by default. User needs to add "iomem=relaxed" to grub boot option
- Debian Server Install
- ier-authdaemon courier-authlib courier-authlib-userdb courier-base courier-imap courier-imap-ssl cour
- Apache @linux:webserver
- his line in apache2.conf // httpd.conf blocks the User-Agent EvilBotName: SetEnvIfNoCase User-Agent "EvilBotName" BlockedAgent
- Synergy @linux:network
- aux|grep synergy') :-) == Client: == Change **username** and **name** and **IP** to the values of your box: su username -c "/usr/bin/synergyc --name viso 192.168.42.... startup hook-file of gdm/kdm/xdm:** Just replace username with your login and use the config created by quicksynergy-GUI: su username -c "/usr/bin/synergys --config /home/username
- Replication @linux:databases:mysql
- ysql -u root --password=xxxx **Add a replication user on both nodes:** GRANT REPLICATION SLAVE ON ... CHANGE MASTER TO MASTER_HOST='1.2.3.4', MASTER_USER='replicator', MASTER_PASSWORD='xyxyxyxyxyxyxyxyxy... CHANGE MASTER TO MASTER_HOST='1.2.3.4', MASTER_USER='replicator', MASTER_PASSWORD='xyxyxyxyxyxyxyxyxy
- Courier @linux:emailserver
- mailq - **cancelmsg sends an an error mail to the user!**: cancelmsg msgID Delete ALL messages from m... rsion - **cancelmsg sends an an error mail to the user!** for i in `mailq | egrep '^[0-9]' | awk ' {pr... ist * spamassassin --remove-addr-from-whitelist=user@example.com * check: sa-awl root/.spamassassin/auto-whitelist | grep user@example.com * copy /root/.spamassassin/auto-whi