Saturday, January 18, 2014

Making a basic website on a school computer science account

Assuming you already have an account with your school's computer science department, running linux,
1. Open Terminal

2. In terminal execute the following commands:
chmod 711 ~
mkdir public_html
chmod 711 public_html
cd public_html
 
3. Now, you are in you public_html folder, while in there make a new index.html file:
option 1:
vi index.html
press the i key
type "Hello World"
press esc then :wq
proceed onto step 4
option 2:
go to your regular file system and create a index.html doc with your favorite basic editor then save it into public_html
 
option 3:
cat > index.html
type "Hello World"
press ctrl+D
proceed onto step 4
 
4. In terminal
chmod 744 index.html
Now you have your first empty webpage!

5. For more webpages, repeat steps 3 and 4 but with a name other than index