- preface commands with "sudo" for super user, or use "sudo -s" to login as super user
- "ls" is list
- "cd" change directory
- "cd\" and then press enter at the prompt takes you back to the root
- "vi" is the text editor, be sure to use "sudo" to be able to make edits "sudo vi etc/apt/sources.list"
- in the vi program, press insert to start editing, press escape to get out of insert
- to save in vi, press the colon, then a command prompt appears in the lower left, "q" is quit and "wq" is write and quit
To solve the problem of Ubuntu server not finding the deb pakages (apt-get install vsftpd not working, E: could not locate), I included this at the top of the /etc/apt/sources.list file:
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
Then setup an ftp server (vsftpd - very secure ftp dameon):
Here are my install notes. Not exactly sure what order this has to be done in or if this is entirely correct. FTP user permissions is a complicated issue and needs to be correct. I'm not getting it right yet, but I did get an A/B box for my arcade/server computers so I can mess with it easily now. Here are the images:
I had to setup my comcast static ip address to the ubuntu box today. The "address" field there needs to be the static ip address. I also forwarded the static ip on the modem to the local address of the machine.
Enable port forwarding on your router. Route each port you want to the same ip, but different port.
Edit /etc/apache2/sites-enabled/000-default -- Add "Listen 80" for each port at the top. Then add a line like this for each virtual host:
ServerName http://dottrombone.com **you can forward the port to the same machine and just change this. Use *:80, port 80 and then switch on this server name and you'll have virtual hosts
- curl - sudo apt-get install php5-curl
- gd (graphics) - sudo apt-get install php5-gd