3rd project web site
トップページ活動報告運用規則活動履歴参加者名簿勉強会

ホームページ更新の方法

[発表者:山崎徹]


山崎さんがメーリングリストに投稿したドキュメントを使用しています。(2002/8月)

1.ファイルをWWWサーバーに転送する

マッキントッシュでNifty telnet SSHを使用する場合は "Scp"と書かれたボ タンを押してwwwサーバー(orange.ep.sci.hokudai.ac.jpあるいは www.ep.sci.hokudai.ac.jp)へ転送する.

2.wwwサーバー内における作業

Last login: Fri Aug 9 18:41:42 2002 from applen.sci.hokudai.ac.jp on pts/1
Linux orange 2.4.18 #1 SMP Mon Mar 11 15:08:30 JST 2002 i686 unknown

Most of the programs included with the Debian GNU/Linux system are freely redistributable; the exact distribution terms for each program are described in the individual files in /usr/doc/*/copyright

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by appli cable law.

(1)まずはじめにアップロードしたファイルがきちんとあるか確認.(xxxはアカウント名)

xxx@orange:~$ ls index.html ←アップロードしたファイルの名前

(2)グループ全員が変更できるようにパーミッションを変更

xxx@orange:~$ chmod 664 index.html

(3)thirdproのグループユーザーになる

xxx@orange:~$ sudo -u thirdpro -s ←このコマンドでthirdproのグループユーザーになる

We trust you have received the usual lecture from the local System Administrator. It usually boils down to these two things:

        #1) Respect the privacy of others.
        #2) Think before you type.

Password: XXXXX←自分のWWWパスワードを入力
thirdpro@orange:~$ ←これでグループユーザーになれた.ただし,現在地は /home/xxxのまま.

(4)「index.html」という名前のファイルをthirdproのディレクトリにコピー(もとのファイルを残す必要がなければmvコマンドでも可)

thirdpro@orange:~$ cp index.html /home/thirdpro/

thirdpro@orange:~$ cd /home/thirdpro/ ←thirdproのディレクトリに移動
thirdpro@orange:/home/thirdpro$ ls ←無事コピーされたか確認
index.html

(5)thirdproのディレクトリに「public_html」ディレクトリを作る

(一度作成したら次回からはcpもしくはmvコマンドでthirdpro@orange:/home/thirdpro$ mkdir public_html/home/thirdpro/public_htmlを指定してやれば良い).

thirdpro@orange:/home/thirdpro$ ls ←ディレクトリができたか確認
index.html public_html

(6)「index.html」を「public_html」ディレクトリに移動

thirdpro@orange:/home/thirdpro$ mv index.html /home/thirdpro/public_html

thirdpro@orange:/home/thirdpro$ ls
public_html

public_html内に入ったので,一応これで終わり.Webブラウザできちんと表示されるか確認する

(7)終了ステップ

thirdpro@orange:/home/thirdpro$ cd /home/toru ←自分のホームディレクトリに戻る

thirdpro@orange:~$ exit ←グループユーザから抜ける
exit

xxx@orange:~$ 終了.

(補足とページ作成は高橋亮平が行いました)


トップページ活動報告運用規則活動履歴参加者名簿勉強会

更新日 2002/09/13(高橋亮平)