Files and Downloads:
Nginx Documentation: http://nginx.org/en/docs/http/load_balancing.html
If you are looking to gain some experience as a Linux system administrator, check out the list of ideas below. For each project on the list you could do it on multiple Linux distributions. You could also start about by learning the bare minimum necessary to complete one of these projects, then take it to the next level by making it fault tolerant or learning how to scale it. Create a virtual machine for your projects or try them on your own server hosted at Digital Ocean.
Find a real need you have and fill it using a Linux based solution. This is one of the most rewarding ways to learn Linux. For example,
The next time you have a technical need and want to get some extra Linux practice, see if you can solve your problem with Linux.
LAMP stands for Linux Apache MySQL and PHP. It’s a very common architecture for web applications. If you think about the LAMP stack in broad terms you have an operating system (Linux), a web server (Apache), a database tier (MySQL), and a programming language (PHP). You can substitue different solutions for each component. Try configuring the LAMP stack on CentOS, then Ubuntu. Instead of using Apache you could use NGINX or lighttpd. For the database you could use PostgreSQL, MariaDB, or MongoDB. Instead of using PHP, why not try Python?
If you want to take it a step further and learn how to set up a highly available and scalable LAMP Stack, check out the High Availability for the LAMP Stack Course.
Find an application that you would be interested in using and deploy it. Even if you don’t end up using the application you’ll have gained the experience of setting it up.
Below you will find links to over one thousand computer programming project ideas. Use this list to hone your coding skills or start building your online portfolio.
If you find yourself typing the same command over and over again, you can create a shortcut for it called an alias. An alias can be thought of as a text expander. Creating aliases for commands that are really long is also a common practice. For example, if you type `ls -l` frequently, you may want to abbreviate it to `ll.` As a matter of fact, this alias often comes predefined on many Linux distributions.
The alias command lists or create aliases. If no arguments are provided the current list of aliases is displayed. Use name=value to create a new alias.
# Colordiff may not be installed by default. (sudo apt-get -y colordiff to install on Ubuntu systems.) alias diff='colordiff' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias ls='ls --color=auto'
alias ..='cd ..' alias ...='cd ../../../' alias ....='cd ../../../../'
# Use the column command to create pretty tables. alias ct='column -t' alias dfc='df -hPT | column -t' alias mount='mount | column -t'
alias d='date +%F' alias now='date +"%T"' alias nowtime=now alias nowdate='date +"%m-%d-%Y"'
alias cp='cp -i' alias ln='ln -i' alias mv='mv -i'
# Debian / Ubuntu: alias apt-get="sudo apt-get" alias updatey="sudo apt-get -y" alias update='sudo apt-get update && sudo apt-get upgrade'
# RHEL, CentOS, Fedora alias update='yum update' alias updatey='yum -y update'
If you ever forget to run a command with root privileges, you can simply repeat it by using sudo !! or su -c “!!”.
$ adduser sam -bash: /usr/sbin/adduser: Permission denied $ sudo !! sudo adduser sam $ id sam uid=1007(sam) gid=1007(sam) groups=1007(sam) $ usedel -r sam -bash: /usr/sbin/userdel: Permission denied $ sudo !! sudo userdel -r sam $ id sam id: sam: No such user $ useradd jim -bash: /usr/sbin/useradd: Permission denied $ su -c "!!" su -c "useradd jim" Password: $ id jim uid=1007(jim) gid=1007(jim) groups=1007(jim)
This exclamation mark syntax is called an event designator. An event designator references a command in your shell history. Bang-Bang (!!) repeats the most recent command, but one of my favorite uses of the event designator is to run the most recent command that starts with a given string. Here’s an example.
$ whoami jason $ uptime 12:33:15 up 35 min, 1 user, load average: 0.00, 0.00, 0.00 $ df -hT /boot Filesystem Type Size Used Avail Use% Mounted on /dev/vda1 ext4 485M 55M 406M 12% /boot $ !u uptime 12:33:29 up 35 min, 1 user, load average: 0.00, 0.00, 0.00 $ sudo !w sudo whoami root