View Single Post
Old 04-05-2013, 03:12 PM   #16
Rob Williams
Editor-in-Chief
 
Rob Williams's Avatar
 
Join Date: Jan 2005
Location: Atlantic Canada
Posts: 13,352
Default

Quote:
Originally Posted by RainMotorsports View Post
Not sure how it could be a major exaggeration.
I admit that I was off-the-mark when I thought I configured the entire server in 250 characters. It's more like 800; more if you count the edits I had to make to certain files. I logged into the server and viewed the command history to see what I used to setup the server.

apt-get update
apt-get upgrade
useradd techgage
apt-get install apache2 mysql-server php5 rsync phpmyadmin logwatch jpegtran libjpeg-progs imagemagick htop memcached
df -BMB
cd /home
nano -w site_import.sh (wrote a script to import the server, including automatic SQL import)
chown techgage:techgage site_import.sh
rsync -av -e ssh root@oldserver:/etc/apache2 /etc/apache2
mysql -u root -p (created database user, and databases).
sh site_import.sh
echo "I wonder if Brett will notice this."
cd /etc/apache2/
(Double-checked some configuration stuffs here)
/etc/init.d/apache2 restart
nano -w /etc/crontab
nmap -sS 127.0.0.1
watch "echo stats | nc 127.0.0.1 11211"
date +%T -s "17:48:00"
cd /home/SQL ; sh SQL_backup.sh
chown techgage:techgage -R /home/techgage/public_html/wp-content/


At the end of the day, command-line is super quick if you know how to use it. I prefer it over a GUI any day of the week when dealing with low-level stuffs like this. I don't like GUIs, because they can slow you down (mostly if you are a fast typer), especially when tapping in remotely. I can still understand why people would prefer the GUI... it's easier. I wouldn't call it quicker.
__________________
Intel Core i7-3960X, GIGABYTE G1.Assassin 2, Kingston 16GB DDR3-2133, NVIDIA GeForce GTX 770 2GB
Kingston HyperX 3K 240GB SSD (OS, Apps), WD VR 1TB (Games), Corsair 1000HX, Corsair H70 Cooler
Corsair 800D, Dell 2408WFP 24", ASUS Xonar Essence STX, Gentoo (KDE 4.11. 3.12 Kernel)

"Take care to get what you like, or you will be forced to like what you get!" - H.P. Baxxter
<Toad772> I don't always drink alcohol, but when I do, I take it too far.


Rob Williams is offline   Reply With Quote