Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork132
Tools and living docs 🧬 for Debian-based servers and Web Applications
License
szepeviktor/debian-server-tools
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
You find all my knowledge on GitHub in form of Bash and PHP scripts and Markdown documents.
Updated daily as I work.
- Too much of a website
- Web application development
- Setting up your infrastructure and your application
- All things WordPress
- WordPress Security
- Running Laravel
- Running Drupal
- Monitoring on paranoid level
- Continuous Integration and Continuous Delivery
- Debian setup on UpCloud serverincludingResize root filesystem during boot
- Live list of Hostile networks
- Bulk mail sending
- Csapatának tagja szeretnék lenni
- Ismerkedés Új ügyfelekkel
- Teljesítménycentrikus webhely tervezése
- Honlap jogi dolgai + GDPR
- Kézi Tesztelési Kézikönyv
- Képek életciklusa
- Magyar email szolgáltatók
(direct) / (none)Google Analytics-ben
Please consider supporting my work.
Thank you!
Install Debian onUpCloud
How UpCloud was chosen? Readhttps://github.com/szepeviktor/wordpress-speedtest/blob/master/README.md#how-to-choose-vps-provider
Richard Cook at Velocity NY 2013
- /debian-setup - Debian installation scripts includingdebian-setup.sh
- /backup - Tools related to archiving
- /image - Tools related to image optimization
- /input - Tools related to the terminal
- /mail - Tools related to email account management
- /monitoring - Tools related to server monitoring, alert and statistics emails
- /mysql - Tools related to database management
- /package - Tools related to Debian packages and general packaging
- /security - Security and SSL certificate related tools
- /tools - Various small tools
- /virtualization - Docker containers
- /webserver - Tools related to building webservers
Select Expert install.
- Check shell scripts:http://www.shellcheck.net/
- Code styling:https://github.com/git/git/blob/master/Documentation/CodingGuidelines
- Bashism:https://wiki.ubuntu.com/DashAsBinSh
checkbashisms -f bash-script.sh
S="${HOME}/.ssh";mkdir --mode 0700"$S";editor"${S}/authorized_keys"ssh-keygen -v -l -f"${S}/authorized_keys"
authorized_keys parameters:
# restrict == no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty,no-user-rcrestrict,command="echo 'Please login as the user \"debian\" rather than the user \"root\".';echo;sleep 10" ssh-rsa AAAA...u bash -c'S="${HOME}/.ssh";mkdir --mode 0700 "$S";editor "${S}/authorized_keys"'U="$(stat -c %U .)";S="$(getent passwd$U|cut -d: -f6)/.ssh";mkdir -m 0700"$S";editor"${S}/authorized_keys";chown -R$U:$U"$S"
ssh-keygen -y -f~/.ssh/id_ecdsaprintf'host: %s\nport: %s\nuser: %s\n'"$(hostname)""$(/usr/sbin/sshd -T -C user=root -C host=localhost -C addr=localhost|sed -n -e's/^port \([0-9]\+\)$/\1/p')""$(ls -tr /home/|tail -n1)"
ls /etc/ssh/ssh_host_*_key.pub| xargs -n 1 ssh-keygen -l -f
script --timing=NAME.time --append NAME.scriptscriptreplay --maxdelay 1 NAME.time NAME.script
cat$SCRIPT|xz -9|base64 -w$((COLUMNS-1))# alias: cat $SCRIPT | transit
cat$PASTED_FILE|base64 -d|xz -d>$SCRIPT# alias: cat $PASTED_FILE | transit-receive
git init --separate-git-dir=/home/user/gitdir
Produces:
/home/user/work-dir/.git:gitdir: /home/user/git
/home/user/gitdir/config:worktree = /home/user/work-dir
echo"- - -"> /sys/class/scsi_host/host0/scan
https://google-public-dns.appspot.com/cache
whois -h whois.iana.org $TLDhttps://www.iana.org/domains/root/dbdig _nicname._tcp.$TLD SRVhttps://tools.ietf.org/html/draft-sanz-whois-srv-01- https://github.com/rfc1036/whois/blob/next/tld_serv_list
whois -h whois.radb.net -- "-i origin AS202053"
whois -h whois.bgpmon.net 94.237.81.0
.---------------- minute (0 - 59)| .-------------- hour (0 - 23)| | .----------- day of month (1 - 31)| | | .--------- month (1 - 12)| | | | .------- day of week (0 - 6)| | | | |* * * * * USER COMMANDcrontab -e -u USER.---------------- minute (0 - 59)| .-------------- hour (0 - 23)| | .----------- day of month (1 - 31)| | | .--------- month (1 - 12)| | | | .------- day of week (0 - 6)| | | | |* * * * * COMMAND# Well before the actual execution time!0006***echo "/bin/ls -l" | at "$(date --date='TZ="Europe/Budapest" 10:30' "+\%H:\%M")" 2>/dev/null
Contact me:viktor@szepe.net
About
Tools and living docs 🧬 for Debian-based servers and Web Applications
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.