ホームページ更新の方法[発表者:山崎徹]山崎さんがメーリングリストに投稿したドキュメントを使用しています。(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 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パスワードを入力 (4)「index.html」という名前のファイルをthirdproのディレクトリにコピー(もとのファイルを残す必要がなければmvコマンドでも可)thirdpro@orange:~$ cp index.html /home/thirdpro/
thirdpro@orange:~$ cd /home/thirdpro/ ←thirdproのディレクトリに移動 (5)thirdproのディレクトリに「public_html」ディレクトリを作る(一度作成したら次回からはcpもしくはmvコマンドでthirdpro@orange:/home/thirdpro$ mkdir public_html/home/thirdpro/public_htmlを指定してやれば良い).
thirdpro@orange:/home/thirdpro$ ls ←ディレクトリができたか確認 (6)「index.html」を「public_html」ディレクトリに移動thirdpro@orange:/home/thirdpro$ mv index.html /home/thirdpro/public_html thirdpro@orange:/home/thirdpro$ ls public_html内に入ったので,一応これで終わり.Webブラウザできちんと表示されるか確認する (7)終了ステップthirdpro@orange:/home/thirdpro$ cd /home/toru ←自分のホームディレクトリに戻る thirdpro@orange:~$ exit ←グループユーザから抜ける xxx@orange:~$ 終了. |
(補足とページ作成は高橋亮平が行いました)
更新日 2002/09/13(高橋亮平)