putty
under it or
maybe putty Extra
.
OR
click on the search window at the bottom of the screen. Type in
putty
. If putty
is on the PC, the search
window will display putty
.
cs.indstate.edu
for the "Host Name (or IP address)"
Open
at the bottom of the window.
Yes
.
username:
type in and enter your user name. Then it asks for your password:
password:
type in and enter your password. The password is NOT displayed on
the screen.
/u1/h0/class/cs170dd>
where the d
's above are your user name digits
then you have successfully logged onto the cs server.
OR
exit
to end your session on the terminal.
OR
finder
to locate the
terminal application
. It is in utilities
sub-directory of applications. Double click on the terminal application
to start it. You will get a terminal window. Enter the command:
ssh cs170dd@cs.indstate.eduwhere you replace the
d
's with your user name digits.
This connects you to the cs server. It will ask for your
password. Type enter it. Again the password will NOT be displayed.
exitThat is type exit and press the return or enter key.
The simplest way of doing this is to enter the command
cd
We are going to make a file named summer.txt
This will be our first Webpage!
We start our work by entering the command:
pico summer.txt
This command starts the pico
editor program
which will let you write or change file summer.txt
.pico
does not immediately finish. It waits until we tell it we are done
writing.
The upper part of the pico
screen is where you type
in the file content. The lower two lines list several pico
commands you can use.
-----------------The two important pico
commands------
The caret (^) in front of each command means hold down the ctrl (or control) key when typing the letter that follows.^O Write Out ^X Exit
^O: To SAVE your work
(Write Out) you hold down the ctrl key when you type the O key. When you
do this, pico
responds with the line:
File name to Write: pg1.htmlThe file name that appears is the name you typed in the when you started
pico
.
Mostly you will just press enter to accept the name,
^X: To EXIT pico
,
you hold down the ctrl
key and type the X key. If you do this after you have done the ^O
command, pico
will return you to the unix command line.
But if you have not saved all that you have typed, pico
gives you the option of saving your recent changes before returning to
the unix command line.
In the pico
window type:
<!DOCTYPE html> <html> <head> <title>Actual First Page </title> </head> <body> <h1 style="color:red; text-align:center;">Hello, World!</h1> <p> This is a first line that is short.<br> This is the second line of the paragraph and it is longer; in fact it keeps going and going. Finally the third and final line, good bye. </p> </body> </html>
Once all of the above has been typed, type
the command ^O then press the enter key to save your work to
the file pg1.html. Finally type ^X to exit
pico
.
cs.indstate.edu/~cs170dd/pg1.html
.d
's
in cs170dd
.
You should see a web page with a red centered
Hello, Worldand a three sentence paragraph.