¶µ°éÍÑ·×»»µ¡¥·¥¹¥Æ¥à»ÈÍѤμê°ú¤�



Similar documents

X Window System X X &

tebiki00.dvi

UNIX

unix.dvi

GNU Emacs GNU Emacs

本 日 の 授 業 内 容 最 低 限 覚 えるべきUNIXコマンド pwd, ls, mkdir, cd, cp, rm, mv テキストエディタの 簡 単 な 使 い 方 テキストエディット, Jedit X,Emacs C 言 語 プログラミングの 初 歩 hello, world を 画 面

Windows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2

電気通信大学 コンピュータリテラシー 文書整形 --- LaTeX ---

教育用計算機システム使用の手引き 2012 年度版

help gem gem gem my help

1 L A TEX

untitled

tex03final1.dvi

I #2 : ( 8-13), () URL : j inoue/prog2007/prog2007.html

SR-X526R1 サーバ収容スイッチ ご利用にあたって

Microsoft Word - C.....u.K...doc

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware

LAN Copyright c Daikoku Manabu This tutorial is licensed under a Creative Commons Attribution 2.1 Japan License

dvi

273? C

XFree XFree86 2. Kterm 3. Canna 4. Vi Vi VIM 5. Emacs Emacs 21 XEmacs XFree Mac OS X XDarwin Aqua XFree ( X L

UNIX


untitled

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

LeapMotion JINS MEME 2019

SR-X324T1/316T1 サーバ収容スイッチ ご利用にあたって

スパコンに通じる並列プログラミングの基礎

1 1.1 PC PC PC PC PC workstation PC hardsoft PC PC CPU 1 Gustavb, Wikimedia Commons.

28 Docker Design and Implementation of Program Evaluation System Using Docker Virtualized Environment

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

Microsoft Word - D JP.docx

スパコンに通じる並列プログラミングの基礎

TeraTerm Pro V.2.32の利用法

スパコンに通じる並列プログラミングの基礎

SR-X324T2/316T2 サーバ収容スイッチ ご利用にあたって

book

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

Java updated

programmingII2019-v01

ohp07.dvi

Si-R180 ご利用にあたって

Quickstart Guide 3rd Edition

RouteMagic Controller( RMC ) 3.6 RMC RouteMagic RouteMagic Controller RouteMagic Controller MP1200 / MP200 Version 3.6 RouteMagic Controller Version 3

konicaminolta.co.jp PageScope Net Care

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

r07.dvi

etrust Access Control etrust Access Control UNIX(Linux, Windows) 2

情報の分析 1. Linux ツールの活用

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

RouteMagic Controller RMC-MP200 / MP Version

Adobe LiveCycle Workbench 11 のインストール

Report Template


iNotes_PDF.ps

RouteMagic Controller RMC-MP200 / MP Version

SR-X340TR1 サーバ収容スイッチ ご利用にあたって

MathLibre KNOPPIX (next generation) 2012 KNOPPIX/Math MathLibre KNOPPIX , KNOPPIX 6.0, next generation. KNOPPIX/Math KDE,

( )!?

-2 gnuplot( ) j ( ) gnuplot /shell/myscript 1

Microsoft Word - マニュアル4.1J

FileMaker Server Getting Started Guide

,,,,., C Java,,.,,.,., ,,.,, i

FileMaker Server 9 Getting Started Guide

LiveCode初心者開発入門サンプル

リファレンス

たのしいプログラミング Pythonではじめよう!

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

DCL intro Manual for Ubuntu11.10

<Documents Title Here>

syspro-0405.ppt

新・明解Java入門

iNotes_PDF.ps

FUJITSU Network SR-M SR-M20AP1 ご利用にあたって

Transcription:

2009

Copyright c 2009 All Rights Reserved.

2006 3 Mac OS (E108 5383) Web Site: http://www.coins.tsukuba.ac.jp/ce/ E-mail: coins-admin@coins.tsukuba.ac.jp ( ) coins-trouble@coins.tsukuba.ac.jp ( ) 2009 4

I 18 3 16 1. 2. ID ID ID 3. 4. (Acceptable Use Policy) 5. 6.

7. 8. 9. (IETF:Internet Engineering Task Force ) RUN RFC(Request for Comments)1855 http://www.ipe.tsukuba.ac.jp/doc/netiquette/

III 2007 4 1. 2. 3. 4.

(Acceptable Use Policy) 5. ( ) 6. 7. 8.

V 1. 2. 3.

VII Mac (imac G5) 1 1: Finder( ) 2 Finder( ) Finder

2: Finder Dock( ) Dock 3 3: Dock

Dock Finder CD-ROM Mac ATOK17 for Mac OS X ATOK17 1 1 A 23 4: (ATOK) 1,ATOK 1. Dock. 2.. 3.,ATOK2005,. 4.. 2 control + Shift + c control + Shift + z control + Shift + x control + Shift + v control + Shift + b 3 control + Shift + j control + Shift + k control + Shift + :.

onakasuitaokasinai /

XI TTSSH.cshrc.xsession Mac su - [ ].cshrc.xsession TA (3E108) 4 Mac command + option + esc 4 coins-trouble@coins.tsukuba.ac.jp

% top % ps aux % kill [ ID] kill command + command + option + ESC Mac 5 TA Mac command + option + eject 5

Mac Mac command + option + 6 Mac Mac PRAM PRAM Mac PRAM command + option + P + R coins-trouble@coins.tsukuba.ac.jp web CGI web ( /public html) 711(rwx x x) 711(rwx x x) 755(rwxr-xr-x) ls 711 ls web URL http://www.coins.tsukuba.ac.jp/~johotaro/ 7 6 Mac 7 http://www.coins.tsukuba.ac.jp/ce/

TA coins-trouble@coins.tsukuba.ac.jp ( ),,,, 8 9 (3E108) Apple (http://www.apple.com/jp/support/) (http://www.coins.tsukuba.ac.jp/ce/). 8 9

XV web http://www.coins.tsukuba.ac.jp/ http://www.coins.tsukuba.ac.jp/ce/ http://www.cs.tsukuba.ac.jp/ http://www.risk.tsukuba.ac.jp/ http://www.sie.tsukuba.ac.jp/ http://www.tsukuba.ac.jp/

1 1 1.1........................... 1 1.1.1................................. 1 1.1.2 iterm........................ 3 1.1.3 iterm............... 4 1.1.4........................ 4 1.1.5............................... 6 1.2.............................. 7 1.2.1............................ 7 1.2.2........................ 9 2 11 2.1........................... 11 2.1.1..................... 12 2.1.2.................. 13 2.2................................ 14 2.2.1 ls............................... 15 2.2.2 cp............................... 17 2.2.3 mv............................... 17 2.2.4 rm............................... 18 2.2.5 coinsquota.......................... 19 2.2.6 du............................... 19 2.2.7 cd............................... 19 2.2.8 pwd.............................. 20 2.2.9 cat............................... 20 2.2.10 lv............................... 20 2.2.11 chmod............................. 22 2.3.......................... 23 2.3.1 ps............................... 23 2.3.2 kill............................... 23 2.3.3 w............................... 24 2.4................... 24 i

2.5................................ 26 2.5.1 slogin,ssh........................... 26 2.6............................. 27 2.6.1 alias.............................. 27 2.6.2 tar............................... 27 2.6.3 nkf.............................. 28 2.6.4 xclock xcalc.............................. 29 2.6.5................................. 29 2.7........................... 29 3 : Emacs 31 3.1................................... 31 3.1.1................................... 31 3.1.2................................... 32 3.1.3................... 34 3.1.4............................. 35 3.2..................................... 35 3.2.1............................... 35 3.2.2.............................. 36 3.2.3............................. 36 3.2.4 & &................. 38 3.2.5............................... 39 3.2.6.......................... 40 3.2.7......................... 42 3.3.............................. 43 3.3.1................................. 43 3.3.2.................................. 43 3.3.3............................. 44 3.3.4.................................. 46 3.3.5............................... 47 3.3.6.emacs.el................................ 48 3.4 Mew....................................... 48 3.4.1.......................... 48 3.4.2.............................. 50 3.4.3.............................. 52 3.4.4............................ 54 3.4.5................................. 54 3.4.6................... 58 3.4.7............................. 60 ii

3.4.8 Mew........................... 62 3.5 Gnus....................................... 62 3.5.1.......................... 62 3.5.2........................ 63 3.5.3............................... 63 3.5.4............................. 65 3.5.5............................ 66 3.6 Wanderlust................................... 66 3.6.1.......................... 67 3.6.2.............................. 69 3.6.3.............................. 70 3.6.4............................ 71 3.6.5............................. 71 3.6.6............................ 74 3.7....................................... 74 3.7.1......... 74 3.7.2.............................. 74 4 77 4.1.................................. 77 4.1.1 lprint............................. 77 4.1.2 lcancel............................ 78 4.1.3 lpq.............................. 78 4.2................................... 79 4.2.1................................. 79 4.2.2 a2ps................................... 79 4.3........................... 80 5 83 5.1 Firefox.................................. 83 5.1.1 Dock........................ 83 5.1.2............................ 84 5.1.3................................... 87 5.1.4................................... 87 5.1.5................................. 88 5.2 Thunderbird............................... 91 5.2.1 Dock........................ 91 5.2.2................................... 92 5.2.3........................ 95 iii

5.2.4 Thuderbird.......... 100 6 TEX 103 6.1 TEX................................... 103 6.2 TEX......................... 103 6.2.1................................. 104 6.2.2 TEX.......................... 117 6.3 TEX....................... 118 7 123 7.1................................. 123 7.2 C.................................. 123 7.2.1 C.................. 123 7.2.2................ 125 7.3 C............................... 125 7.3.1................................. 125 7.3.2............................. 129 7.4............................. 129 7.4.1............................. 129 7.4.2.................................. 131 7.4.3............................... 131 7.5 C++................................ 133 7.5.1 C++................ 133 7.5.2.................. 134 7.6 FORTRAN............................. 135 7.6.1 GNU FORTRAN95.................... 135 8 Java Developers Kit 137 8.1 Java................................... 137 8.2 Java....................... 138 8.2.1............................... 138 8.2.2................................... 138 8.3..................................... 139 8.3.1........................ 139 8.3.2............................... 139 8.4...................................... 141 9 Windows 143 9.1.............................. 143 9.1.1................................. 143 iv

9.1.2................... 144 9.1.3............................. 144 9.1.4................................. 144 9.2............................. 145 9.2.1.......................... 145 9.2.2............ 146 9.2.3.................... 147 9.2.4........................ 147 9.3................................. 149 9.3.1 Windows..................... 149 9.3.2.............................. 149 9.3.3 Windows Mac...................... 149 9.3.4....................... 151 9.3.5 Windows...... 151 9.3.6.......................... 152 9.3.7........................ 153 9.3.8......................... 153 9.3.9.......................... 155 9.3.10.......................... 155 9.3.11 /.................... 155 9.4........ 155 9.4.1................ 155 9.4.2.......................... 156 9.4.3............... 157 9.4.4.................... 157 9.4.5......................... 158 9.4.6 D: work....................... 158 9.5.............................. 160 9.5.1.......................... 160 9.5.2............................ 160 9.5.3................ 161 9.6 Windows...................... 162 9.6.1............................ 162 9.6.2 Windows.......................... 162 9.6.3............................ 163 9.7 Windows........................... 164 9.7.1 Windows...................... 164 9.7.2....................... 164 9.7.3 dir............................... 165 v

9.7.4 copy.............................. 166 9.7.5 move............................. 166 9.7.6 ren.............................. 166 9.7.7 xcopy............................. 167 9.7.8 del.............................. 167 9.7.9 rmdir............................. 168 9.7.10 cd............................... 168 9.7.11 cls............................... 168 9.8............................. 168 9.8.1......................... 168 9.8.2 ping................................... 168 9.8.3 ftp.................................... 169 9.8.4 telnet.................................. 169 9.9 Microsoft Visual C++............................. 169 9.9.1 Windows.................. 169 9.9.2 Microsoft Visual C++......................... 169 9.9.3 VC++....................... 170 9.9.4....................... 170 9.9.5 C..................... 171 9.9.6................... 171 9.9.7 Debug Release.................... 173 9.9.8.......................... 174 9.9.9 VC++......................... 174 9.10 Java....................................... 176 9.10.1 Java.......................... 176 9.10.2................................. 176 9.10.3............................. 176 9.10.4 Java......................... 177 9.11................................... 177 9.11.1 Windows................. 177 9.11.2 Outlook............................. 178 9.11.3....................... 178 9.12 SSH Mac..................... 179 9.12.1............................ 179 9.12.2 Tera Term + ttssh........................... 179 9.12.3 ttssh............................... 179 9.13 Windows XP.......................... 181 9.13.1....................... 181 9.13.2..................... 181 vi

9.13.3..................... 181 9.13.4....................... 181 10 Linux Server 183 10.1..................................... 183 10.1.1 Mac........................ 183 10.1.2............................... 184 10.2....................................... 184 10.2.1.................... 184 10.2.2 Mac.................... 184 11 185 11.1....................... 185 11.1.1............................... 185 11.1.2................................. 187 11.1.3................................. 187 11.1.4........................ 187 11.2..................................... 188 12 COINS 189 12.1 LAN............................. 189 12.1.1 LAN...................... 189 12.1.2............................... 189 12.1.3 LAN............................ 189 12.1.4 LAN............................ 190 12.1.5 LAN........................ 190 12.2 VPN........................... 190 12.2.1 COINS VPN......................... 190 12.2.2 VPN........................... 190 12.2.3.................... 191 12.2.4 VPN................................ 192 12.2.5 VPN............. 193 12.2.6 VPN......... 193 12.2.7 VPN........................ 194 12.3 COINS.......................... 194 12.3.1 SFTP.................................. 194 vii

1 1 (COINS 1 ) Apple imac G5 MacOS X 10.4 ( Mac ) 1.1 1.1.1 (Login) 1.1 TA 2 3 s+ ( )+ 4 2008-0-0001 s0800001 ( return ) 1 College Of INformation Science 2 Teaching Assistant= 3 (3E108)/ (3E110). 4 2004, i+ ( )+

2 1 1.1:

1.1. 3 5 1.1.4 1.1.2 iterm iterm,. iterm ( ) (EUC). OK. 80x24 80x40 14. iterm 24 40 5 [ (Cursor)]

4 1 ASCII Monaco Regular 14 ASCII Monaco Regular 14. 1.1.3 iterm Dock iterm iterm 2 3 OK iterm OS command c command + v 1.1.4 1.2: Dock iterm ( Xterm ) iterm Dock( 1.2 ) 6 iterm passwd 6 [ (click)] 1.2.1

1.1. 5 % passwd Changing password for johotaro. Old password: Old password New password: 2 Retype new password: % 8 8 ( ) (aaaaaaaa 12345678 )

6 1 7 (qwert asdfg ) 1-3 1-3 7 I like Unix very much il3u\%vm! 8 8 9. ( ), 1.1.5 (logout) (command ) iterm emacs 10 1.3 7 8 9 Mac OS X 255 10 Finder Dock

1.2. 7 1.3: 1.1 1.2 Aqua( ) 11.Mac Mac Dock 1.2.1 I I 11 X11 Aqua X Window System

8 1 Mac 12 2 12

1.2. 9 1.2.2 1.4 1.4 1.4: (iterm)

10 1 ( ) ( ) Dock ( ) ( ) Dock 13 ( ) ( ) 13 [F11]

11 2 UNIX Mac OS X UNIX 2.1 UNIX (file) ( ) (directory) UNIX 2.1 (tree-structure) / bin irix core ls cp 2.1: 2.1 ( / ) irix core 2 bin bin ls cp... 2...

12 2 / (current-directory) 2.1 bin /bin / 2.1 bin cp /bin/cp ( / ) / 1 2.1 /( ) bin cp bin/cp /bin cp cp (./cp ) / ( ) ( ). C.c 2.txt 2.1.1 ~ ~ johotaro ( cd ) cd ~johotaro Report ~/Report/ 1 0 2

2.1. 13 ( ) emacs web # emacs emacs a.out 3.ps.dvi.aux TEX coinsquota (2.2.5) 2.1.2 (permission) ls chmod UNIX 3 7

14 2 2.2 man % man [ ] % 4 5 ( Enter ) 1 2 3 4 5 6 7 8 9 2 man [ ] [ ] 6 man -k [ ] man % man man 4 COINS tcsh 5 6 ls(1) ( 1 ls )

2.2. 15 UNIX man 7 [ ] [ (argument) ] ( ) 1 2 (ls -l -a ) -( ) man 2.2.1 ls ( ) % ls dir1 file1 file2 % 3 ls -l ( L ) % ls -l total 245 drwxr-xr-x 2 johotaro ugrad 48 Feb 25 00:45 dir1 -rw-r--r-- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 Feb 25 00:44 file2 % 7 :-)

16 2 file1 -rwxr--r-- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rwxr--r-- 10 1 - d l 8 9 9 3 3 3 3 9 r w x - ( ) 10 11 12 -a -F / -v 13 ls man ls ls 8 Windows man 9 Windows.COM.EXE UNIX 10 coins 11 web 12. 13 ( )

2.2. 17 2.2.2 cp cp cp [ ] [ ] % ls file1 file1 % cp file1 file2 cp % ls file1 file2 file2 % % ls -F dir1/ file1 file2 2 1 % cp file1 file2 dir1 cp % ls dir1 dir1 file1 file2 % 2.2.3 mv mv cp mv [ ( )] [ ] mv [ ] [ ]

18 2 % ls -F dir1/ file1 1 1 % ls dir1 dir1 % mv file1 file2 % ls -F dir1/ file2 % mv file2 dir1 % ls -F dir1/ % ls dir1 file2 % 2.2.4 rm rm rm [ ( )] rm -r [ ] -i y n % ls -F dir1/ file1 1 1 % ls dir1 file2 1 % rm -r dir1 rm % ls file1 % rm -i file1 -i rm rm: remove file1? y y % ls % 1

2.2. 19 2 rm -r * 14 2.2.5 coinsquota % coinsquota Disk quotas for user johotaro (uid 40856): Filesystem blocks quota limit grace files quota limit grace orchid-serv:/home 25572 524288 655360 3643 0 0 % 524288 25572 2.2.6 du % du 1./dir1 245. % 2.2.7 cd cd [ ] cd - ( 2.2 dir2 cd ) 14

20 2 2.2: cd 2.2.8 pwd cd pwd % pwd /home1/ugrad/08/s08xxxxx % 2.2.9 cat cat [ ] ( ) ( ) 2.2.10 lv cat 1

2.2. 21 1 lv 15 lv q lv j 1 ( ) k 1 (j ) f,(space) 1 b 1 (f ) g,< G,> /? n N lv ( ) cat % cat file1 file1 This is test 1. % cat file2 file2 This is test 2. % cat file1 file2 > file3 cat file1 file2 file3 % cat file3 This is test 1. file1 file2 file3 This is test 2. % cat 15

22 2 2.2.11 chmod chmod 16 chmod [ ] [ ] (u,g,o a ) (+, = ) (r,w x ) 3 chmod u+w file1 chmod g+r file2 chmod o-x file3 chmod a+rx file4 chmod u=rw file5 file1 file2 file3 file4 file5 ( ) % ls -l total 245 drwxr-xr-x 2 johotaro ugrad 48 Feb 25 00:45 dir1 -rw-r--r-- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 Feb 25 00:44 file2 % chmod u-r file1 % ls -l total 245 drwxr-xr-x 2 johotaro ugrad 48 Feb 25 00:45 dir1 --w-r--r-- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 Feb 25 00:44 file2 % less file1 file1: Permission denied % r=4,w=2,x=1 16 CHange MODe

2.3. 23 % ls -l total 245 drwxr-xr-x 2 johotaro ugrad 48 Feb 25 00:45 dir1 -rw-r--r-- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 Feb 25 00:44 file2 % chmod 666 file1 % ls -l total 245 drwxr-xr-x 2 johotaro ugrad 48 Feb 25 00:45 dir1 -rw-rw-rw- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 Feb 25 00:44 file2 % file1 2.3 Unix 2.3.1 ps ( ) ps -U [ ] ID UNIX ID ps -lu [ ] 2.3.2 kill

24 2 kill [ ID] 17 DrScheme xkill 2.3.3 w load average 3 1 5 15 18 top 2.4 UNIX ( ) & %./program1 > result file & & [1] 6809 job ID % [1] Done program1 > result_file % 17 kill -KILL [ ID] 18 1.0

2.4. 25 Ctrl + Z 19 jobs fg bg kill jobs fg %[job ] bg %[job ] kill %[job ] job job job job job job job job % xclock ^Z Ctrl + Z Suspended % jobs [1] + Suspended xclock 1 job job 1 % bg %1 [1] xclock job % jobs [1] Running xclock 1 job % kill %1 [1] Terminated xclock % job Emacs 19

26 2 20 2.5 2.5.1 slogin,ssh login slogin [login ] slogin slogin logout % slogin azalea7 ( ) Are you sure you want to continue connecting (yes/no)? yes Password: % login ( ) % logout logout Connection to azalea7 closed. % slogin -l [ ] login ( ) ssh slogin -Y X 20

2.6. 27 2.6 2.6.1 alias alias [ ] [ ] % ls dir1 file1 file2 % alias lls "ls -l -F" % lls total 245 drwxr-xr-x 2 johotaro ugrad 48 Feb 25 00:45 dir1/ -rw-rw-rw- 1 johotaro ugrad 7377 Feb 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 Feb 25 00:44 file2 % 21 2.6.2 tar Windows LHA ZIP UNIX.tgz.tar.gz.tar tar zcvf [filename.tgz] [file] [file]... tar zxvf [filename.tgz or.tar.gz] 21.cshrc kterm alias

28 2 % ls dir1 file1 file2 % tar zcvf test.tgz dir1 file1 file2 dir1/ file1 file2 % ls dir1 file1 file2 test.tgz % test.tgz % ls dir1 file1 file2 test.tgz % rm -r dir1 file1 file2 % ls test.tgz % tar zxvf test.tgz dir1/ file1 file2 % ls dir1 file1 file2 test.tgz %.zip unzip.lzh lha man 2.6.3 nkf Windows UNIX web nkf

2.7. 29 nkf [ ] [ ] > [ ] 22 -e EUC -j JIS -s JIS -w UTF-8 -Lu (UNIX) -Lw (Windows) -Lm (Macintosh) UNIX Windows % ls dir1 file1 file2 test.tgz % nkf -s -Lw file1 > file1-sjis % ls dir1 file1 file1-sjis file2 test.tgz % UNIX 2.6.4 xclock xcalc 23 2.6.5 Tab Ctrl + D Ctrl + D % appletv Tab % appletviewer 2.7 UNIX 22 23

30 2 ( ) cd chmod cp du ln ls mkdir mv rm rmdir pwd ( ) cat lv, more less date cal ssh login slogin scp time xv xwd gnuplot tgif xpaint gimp ( ) grep egrep ( ) kill ps ( ) who w hostname passwd

31 3 : Emacs Emacs ; Editor MACroS editor Emacs Emacs 3.1 3.1.1 % emacs Emacs 1 % emacs -nw Aqua (Mac OS X GUI) Emacs % open /Applications/Emacs.app Aqua Emacs 3.1 1 X emacs -nw XEmacs X COINS Emacs

32 3 : Emacs 3.1: Emacs title bar Emacs@azalea42... scroll bar 2 mode line echo area Emacs 3.1.2 Emacs File 3.2 Exit Emacs Emacs Yes Emacs

3.1. 33 3.2: Files emacs -nw Emacs C-x C-c control x control c Emacs

34 3 : Emacs C-c control c M-x meta x ESC esc C-[ ESC x ESC x SPC TAB tab C-i RET return C-m DEL delete return delete ESC x M-x meta meta ESC M-x meta command ( ) 3.2 C-x C-f C-x C-c C-x C-c Emacs 3.1.3 Emacs C-g 1 C-g Emacs C-x u C-_

3.2. 35 C-g C-x u C-_ 3.1.4 Emacs Emacs Emacs Emacs Emacs Emacs F1 t ( help t) Emacs 2 Emacs F1 t (help t) 3.2 3.2.1 Emacs hello emacs Emacs hello emacs 3 at bou 2 C-h COINS Mac F1 help 3 M-x overwrite-mode Ovwrt

36 3 : Emacs about 3.2.2 C-n next-line C-p previous-line C-f forward-char C-b backword-char C-a home C-e end C-v pagedown M-v pageup M-< C- home M-> C- end M-x goto-line M-g g M-g M-g C-l clear 3.2.3 C-d DEL about C-d abut

3.2. 37 about DEL aout Emacs C-d DEL 1 C-k This is the first line. This is the second line. This is the third line. C-k This is the first line. This is the third line. C-k C-y paste This is the first line. This is the third line. C-y This is the first line. This is the third line. This is the second line.

38 3 : Emacs C-d DEL C-k C-y 3.2.4 & & & cut & paste C-k C-y & & Emacs C-SPC C-@ mark 4. C-SPC Emacs region p C-SPC a unprofitable profit a C-w kill ring C-y & copy & paste M-w C-y (i) C-SPC C-@ (ii) (iii) C-w M-w (iv) C-y 4, C-SPC Sportlight.. 1. Dock 2. 3., Spotlight

3.2. 39 & unprofitable profit p a p 5 a Edit C-SPC C-@ C-w M-w C-x C-x 3.2.5 search Emacs incremental search C-s C-r C-s I-search: C-s 6 DEL RET C-g C-s (C-r) RET 5 6 C-s (C-r) M-c case sensitive M-c

40 3 : Emacs I-search: Search: RET C-s C-r replace M-% SPC y n DEL q C-g y! C-s C-r C-s RET C-r RET M-% M-x replace-string 3.2.6 7 C-x C-f C-x C-f Find File: ~/ C-x C-s 7

3.2. 41 (i) emacs emacs -nw Emacs (ii) C-x C-f (iii) (iv) C-x C-s (v) C-x C-c Emacs emacs foo.txt Emacs C-x C-f foo.txt *scratch* C-x C-w C-x i completion TAB Emacs SPC 1 TAB Emacs M-x 8 Unix 9 8 M-/ 9 tcsh Emacs TAB

42 3 : Emacs C-x C-f C-x C-s C-x C-w C-x s C-x i M-x recover-file 10 3.2.7 buffer C-x k RET default mini buffer Emacs 10 3.3.5

3.3. 43 C-x 0 C-x 1 C-x 2 C-x 3 C-x o C-x b C-x C-b C-x k Emacs f Buffers 3.3 3.3.1 Emacs info F1 i Help More Manuals All Other Manuals q SPC DEL RET n p m u 1 d? 3.3.2 F1 F1 Emacs C-g

44 3 : Emacs 3.3: Emacs F1 m F1 b F1 a 3.3.3 Emacs shell-mode shell-mode Emacs shell-mode M-x shell

3.3. 45 Emacs shell-mode 11 % % ls Desktop Mail News bin public_html report tmp % exit % ls Desktop Mail News bin public_html report tmp % exit % exit Process shell finished & exit Emacs Active processes exist; kill them and exit anyway? (yes or no) Emacs? yes no C-g Emacs compile 1 compile 11 BREAK Ctrl + C shell-mode C-c C-c STOP Ctrl + Z shell-mode C-c C-z

46 3 : Emacs M-x compile make compile Compile command: make -k DEL Compile command: ls *compilation* -*- mode: compilation; default-directory: "~/" -* ls Desktop Mail News bin public_html report tmp Compilation finished at Sun Feb 29 12:34:56 3.3.4 3.1 Lisp Interaction *scratch* Lisp Interaction Lisp Interaction Emacs Lisp *scratch* M-x text-mode Text *scratch* fundamental-mode:

3.3. 47 text-mode: c-mode: C latex-mode: L A TEX 1 1 1 auto-fill-mode: 12 auto-fill-mode M-x auto-fill-mode Fill Text Fill 3.3.5 Emacs # Emacs Auto save file is newer; consider M-x recover-file M-x recover-file C-x C-f C-x C-f Emacs M-x recover-file 12 M-q

48 3 : Emacs 3.3.6.emacs.el ~/.emacs.el Emacs 13 ~/.emacs.el ; display-time (setq display-time-string-forms (month "/" day " " dayname " " 24-hours ":" minutes " " (if mail " Mail" "") )) (display-time) C-k C-k (setq kill-whole-line t) 3.3.1 Emacs 3.4 Mew Mew 3.4.1 Emacs M-x mew % emacs -f mew Mew 3.4 Summary 13 ~/.emacs.el ~/.emacs Emacs ~/.emacs.el ~/.emacs

3.4. Mew 49 3.4: Mew

50 3 : Emacs Mew % POP password (s08xxxxx@mail.coins.tsukuba.ac.jp): Mew q 3.4.2 Mew Summary i 3.5: SPC DEL RET - 3.1

3.4. Mew 51 3.1: Summary SPC C-u SPC DEL RET M-RET - C-p C-n p n C-u p C-u n j i g y w a A d D o o x D? * C-u? * m d * D m o * o Q Mew

52 3 : Emacs 3.4.3 Summary w Write w To: Subject: From: s08xxxxx@coins.tsukuba.ac.jp Fcc: +backup X-Mailer: Mew version 4.1 on Emacs 22.0.50 / Mule 5.0 (SASAKI) - Draft Draft ---- To: TAB Subject: ---- 35 M-q Subject: M-> DEL.signature C-c TAB signature 4 C-c C-c Really send this message? (y or n)

3.4. Mew 53 3.6:

54 3 : Emacs y C-c C-q a A Answer a a A > 14 A Subject Re: re response a C-c C-y C-c C-y Message Emacs C-k 3.4.4 d D x D x +trash +trash D 3.4.5 Summary g Folder name (+inbox): + TAB *Mew completions* backup RET 14.mew.el

3.4. Mew 55 3.7:

56 3 : Emacs Fcc: +backup Fcc Folder carbon copy +backup g RET Mew +inbox Mew +inbox o Folder name (+from/user): + Mew +from/user RET +from/user does not exist. Create it? (y or n) y o x Mew.mew.el Mew Info (setq mew-refile-guess-alist (("To:" ("staff@mew.org". "+net/mew/staff") ("staff@iijlab.net". "+net/iijlab/staff"))))? * * m d m o D o From: user : from=user

3.4. Mew 57 To: user Cc: user : to=user cc=user To: user Cc: user From: user : (to=user cc=user) & from=user? from=spam * m d From: spam D x +trash head= C-u?

58 3 : Emacs 3.4.6 Draft C-c C-a ------------------------------ attachments ------------------------------ Multipart/Mixed 1/ 1 Text/Plain(guess) *Cover.txt 2. --------0-1-2-3-4-5-6-7-8-9---------------------------------------------- attachments c map.jpeg ------------------------------ attachments ------------------------------ Multipart/Mixed 1/ 1 Text/Plain(guess) *Cover.txt B 2 Image/Jpeg map.jpeg 3. --------0-1-2-3-4-5-6-7-8-9---------------------------------------------- d d SPC M SPC y

3.4. Mew 59 3.8:

60 3 : Emacs 3.4.7 - Summary g - Folder name (+inbox): - TAB *Mew completions* campus.chat RET Range (update): RET s RET SPC TAB No matching newsgroup,c-g 2 Z NNTP case value (default): RET Collecting newsgroup list... done. /Mail/.nntp/@orchid-news nntp.mew-folder-alist2, y w Newsgroups:

3.4. Mew 61 Subject: 35 Newsgroups: fj.comp.mobile,fj.net.phones.phs campus tsukuba summary C-c C-c coins.test a A

62 3 : Emacs C-u a C-u A 3.4.8 Mew Mew Info(M-? i) Mew-J Info Mew Mew-J, (M-? i) (C-x RET 1 Japanese) 3.5 Gnus Gnus 3.5.1 Emacs M-x gnus % emacs -f gnus Gnus 3.9 Group Buffer 3.9: Gnus news.groups.questions

3.5. Gnus 63 3.5.2 Group Buffer Group Buffer Group Buffer ^ Server Buffer {nntp:news.coins.tsukuba.ac.jp} (opened) (agent) RET u q Server Buffer {nntp:news J a q Group Buffer 3.5.3 Group Buffer SPC RET Summary Buffer article Article Buffer SPC DEL Group Buffer q Group Buffer SPC Summary Buffer Group Buffer C-u SPC u Gnus u L 15 o o Save this article in rmail file: 15

64 3 : Emacs 3.10: u

3.5. Gnus 65 3.5.4 a Article a Newsgroups: coins.test Subject: text follows this line --text follows this line-- --text follows this line-- Subject: 35 Newsgroups: fj.comp.mobile,fj.net.phones.mobile campus tsukuba

66 3 : Emacs summary C-c C-c C-c C-k coins.test f F Follow up f r r R 3.5.5 C Cancel C 3.6 Wanderlust Wanderlust

3.6. Wanderlust 67 3.6.1 Emacs M-x wl % emacs -f wl Wanderlust Wanderlust [-]Desktop:0/0/0 C-n ma Folder name to add(%inbox): % DEL % &s08xxxxx@mail.coins.tsukuba.ac.jp +inbox s08xxxxx [-]Desktop:0/0/0 &s08xxxxx@mail.coins.tsukuba.ac.jp +inbox:*/*/* ma DEL +trash +draft + Group: -/ +/ MH + 3.11 q Wanderlust

68 3 : Emacs Folder view was modified. Save current folders? (y or n) y Wanderlust Wanderlust 3.11 3.11: Wanderlust +inbox +trash 16 Password for POP3:s08xxxxx/user@mail.coins.tsukuba.ac.jp:110: Linux 16.folders

3.6. Wanderlust 69 q Quit Wanderlust? (y or n) y 3.6.2 &s08xxxxx@mail.coins.tsukuba.ac.jp +inbox:1/1/1 SPC +inbox 3.12 3.12: +inbox SPC DEL RET - 3.2

70 3 : Emacs SPC DEL RET M-RET - C-p C-n p n P N 3.2: 3.6.3 w Write w From: s08xxxxx@coins.tsukuba.ac.jp To: Subject: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (powerpc-appledarwin8.1.0) MULE/5.0 (SASAKI) text follows this line --text follows this line-- --text follows this line-- To: TAB Subject: --text follows this line-- 35 M-q Subject:

3.6. Wanderlust 71 M-> DEL.signature C-c C-w signature 4 To: Cc: Subject: C-c C-c Sending...done C-c C-k a A Answer a a A > 17 A Subject Re: C-k 3.6.4 d D x D x +trash +trash 3.6.5 [+]- SPC [+] [-] RET SPC 17.wl

72 3 : Emacs - campus.chat SPC N U u 3.13 Wanderlust u 3.13: u m L # u y e

3.6. Wanderlust 73 W Newsgroups: Subject: 35 Newsgroups: fj.comp.mobile,fj.net.phones.mobile campus tsukuba summary C-c C-c coins.test

74 3 : Emacs a A To: a A Newsgroups: 3.6.6 C Cancel C 3.7 3.7.1 Mew Gnus Wanderlust Thunderbird Thunderbird GUI 18 3.7.2 18 Graphical User Interface

3.7. 75 Shift core Mew Summary Mew Wanderlust Mew Wanderlust s Range (update): all RET Emacs C-h m Info Emacs C-h i Info coins.commands.emacs coins.commands.gnus % ls -ld /Mail drwxr-xr-x 20 s08xxxxx ugrad 680 Mar 21 17:32 /home1/ugrad/08/s08xxxxx/mail

76 3 : Emacs drwxr-xr-x % chmod 700 /Mail drwx------ 20 s08xxxxx ugrad 680 Mar 21 17:32 /home1/ugrad/08/s08xxxxx/mail drwx------

77 4 Mac PC COINS 200 COINS balsam-pr1 3C113 balsam-pr2 3C113 balsam-pr3 3C113 canna-pr1 3C113 canna-pr2 3C113 c113-color 3C113 azalea-pr1 3C205 azalea-pr2 3C205 c205-color 3C205 winfmvpr1 3C206 winfmvpr2 3C206 4.1 lprint lcancel 1 2 4.1.1 lprint lprint % lprint [ ] 1 UNIX UNIX lpr lprm

78 4 hoge.ps balsam-pr1 % lprint -balsam-pr1 hoge.ps lprint.ps.dvi dvi.report.rep.c.cc.f FORTRAN.pdf PDF.report 4.1.2 lcancel lcancel % lcancel 4.1.3 lpq lpq lprint lpq % lpq

4.2. 79 -P [ ] 4.2 4.2.1 COINS (balsam-pr1 balsam-pr2 balsam-pr3 canna-pr1 canna-pr2 azalea-pr1 azalea-pr2 winprecpr1@orchidprint.coins.tsukuba.ac.jp winprecpr2@orchid-print.coins.tsukuba.ac.jp) 2 % lprint -dup portrait [ ] -dup portrait -dup landscape 4.2.2 a2ps a2ps % a2ps -4 sides=2 [ ] 4 % a2ps -2 [ ]

80 4 4.3 lprint lcancel TEX

4.3. 81 coins-trouble@coins.tsukuba.ac.jp 2 2

83 5 WEB Firefox Thunderbird 5.1 Firefox 5.1.1 Dock Dock Firefox 5.1 1 2 5.2 URL Firefox 3 ( 5.2 ) URL 1. Delete URL 2. URL 3. Return 1 Firefox iterm % rm /Library/Application\ Support/Firefox/Profiles/*/.parentlock 2 Firefox 2.0 3

84 5 5.1: Firefox 5.1.2 Firefox Firefox Firefox

5.1. Firefox 85 5.2: Firefox (5.1.5 ) Shift Firefox Firefox (5.1.5 ) Firefox 5.1.4

86 5 Firefox 5.1.3 Firefox cmd+f cmd 4 F 4

5.1. Firefox 87 cmd+ cmd+f cmd+r F5 cmd+p cmd+n cmd+shift+w cmd+q cmd+d cmd+b ESC cmd+t cmd+alt+ cmd+alt+ Firefox Firefox Firefox ( Firefox ) 5.1.3 Firefox URL 5.1.4 : :

88 5 5.3: : : PDF: PDF : 5.1.5 Firefox Firefox : URL

5.1. Firefox 89 5.4:

90 5 (Cache) web 5.5: 5.5 50M Firefox 3 Firefox Firefox

5.2. Thunderbird 91 5.6: Thunderbird (Shift_JIS) (EUC-JP) (ISO-2022-JP) 5.2 Thunderbird Thunderbird 5.2.1 Dock Dock Firefox 5.6 5 5 Thunderbird iterm % rm /Library/Thunderbird/Profiles/*/.parentlock

92 5 5.2.2 5.7 5.7: 5.8 Thunderbird

5.2. Thunderbird 93 5.8: 1. 5.8 2. 5.9 3. 5.10 IMAP POP IMAP POP IMAP, POP mail.coins.tsukuba.ac.jp. IMAP mail.coins.tsukuba.ac.jp 4. ID 5.11

94 5 5. 5.12 6 6. 5.13 5.14 7. 5.7 HTML 8 HTML Firefox HTML 5.7, HTML Thunderbird 5.7 Thunderbird 1. 2. 6 7 8 HTML

5.2. Thunderbird 95 3. NNTP news.coins.tsukuba.ac.jp 4. 5. Thunderbird 5.2.3 Thunderbird 5.16 5.16 5.16 5.17 5.17 5.17 5.17 5.17 Thunderbird 5.18

96 5 5.19 CC 9 BCC 10 subject 5.19 9 CC: Carbon Copy 10 BCC: Blind Carbon Copy

5.2. Thunderbird 97 5.9: 5.12: 5.10: 5.13: 5.14: 5.11: ID 5.15: POP

98 5 5.16: 5.17:

5.2. Thunderbird 99 5.18: 5.19:

100 5 5.2.4 Thuderbird Thunderbird 5.20: 5.20 5.21 OK 5.22 Web Web URL https://www.coins.tsukuba.ac.jp/webmail/

5.2. Thunderbird 101 5.21: 5.22:

103 6 TEX TEX 6.1 TEX TEX TEX 1 Windows Microsoft Word TEX TEX L A TEX 6.2 TEX TEX 6.3 TEX 1 HTML web

104 6 TEX 6.2.1 \ TEX \begin{foo}...\end{foo} \begin \end TEX \begin{foo}...\end{foo} foo foo : documentclass,begin{document},end{document} documentclass documentclass \documentclass[a4j]{jarticle} document document document \end{document} \documentclass \begin{document} TEX \documentclass \begin{document} \end{document} : chapter,section,subsection TEX

6.2. TEX 105 6.1: TEX part chapter section subsection subsubsection paragraph subparagraph ( ) ( ) 6.1 * jarticle section \documentclass[a4j]{jarticle} \begin{document} \section{\tex } \TeX \subsection{ \TeX } \TeX Donald E. Knuth \section{ } \subsection{ } section \subsection*{ } * \end{document}

106 6 TEX 1 TEX TEX 1.1 TEX TEX Donald E. Knuth 2 2.1 section * : vspace,vspace*,hspace,hspace* \vspace{ } vspace hspace vspace hspace vspace* hspace*

6.2. TEX 107 \documentclass[a4j]{jarticle} \begin{document} 10mm \vspace{10mm} \hspace{10mm} 10mm \end{document} 10mm 10mm : \\,clearpage \\ \clearpage : huge,large,normalsize,small TEX begin end ( ) {}

108 6 TEX documentclass[a4j]{jarticle} begin{document} \Huge Huge \huge huge \LARGE LARGE \Large Large \large large \normalsize normalsize \small small \footnotesize footnotesize \scriptsize scriptsize \tiny tiny \normalsize 10 \Large {\small } \end{document} Huge huge LARGE Large large normalsize small footnotesize scriptsize tiny 10 : flushright,flushleft,center

6.2. TEX 109 \documentclass[a4j]{jarticle} \begin{document} \begin{flushleft} \end{flushleft} \begin{center} \end{center} \begin{flushright} \end{flushright} \end{document} : figure figure \begin{figure}[ ] : : \caption{ } \end{figure}

110 6 TEX figure here top bottom page \begin{figure}[hbtp] tbp caption : includegraphics.ps.eps web xv xpaint.ps \includegraphics[scale= ]{ } [ ] \usepackage{graphicx}

6.2. TEX 111 \documentclass[a4j]{jarticle} \usepackage{graphicx} \begin{document} \begin{figure} \begin{center} \includegraphics[scale=0.5]{test.ps} \end{center} \caption{ \label{nazo}} \end{figure} \ref{nazo} \end{document} 1: 1 figure includegraphics : label,ref,refpage \label{nazo} \ref{nazo} 1 \caption \section TEX

112 6 TEX \documentclass[a4j]{jarticle} \begin{document} \section{\tex \label{tex} } \TeX \subsection{ \TeX \label{history} } \TeX Donald E. Knuth \subsection{ } \ref{tex} \ref{history} \pageref{history} \end{document} 1 TEX TEX 1.1 TEX TEX Donald E. Knuth 1.2 1 1.1 1 : table,tabular figure table tabular tabular \begin{tabular}{ } :

6.2. TEX 113 \end{tabular} l r c p 5 tabular a & b & c \\ & \\ hline cline cline \cline{i-j} i j multicolumn \multicolumn{n}{ }{ } n

114 6 TEX \documentclass[a4j]{jarticle} \begin{document} \begin{table} \begin{center} \begin{tabular}{ r l c p{3cm} } \hline aaa & bbb & ccc & ddd \\ \hline a & b & c & d \\ \hline a & b & c & d \\ \hline a & b & c & \multicolumn{1}{ l }{d} \\ \cline{1-2} aa & bb & cc & \multicolumn{1}{ c }{dd} \\ \cline{1-2} \multicolumn{2}{ c }{abc} & c & \multicolumn{1}{ r }{d}\\ \hline \hline \end{tabular} \end{center} \caption{tabular } \end{table} \end{document} 1: tabular aaa bbb ccc ddd a b c d a b c d a b c d aa bb cc dd abc c d table tabular label

6.2. TEX 115 : footnote \footnote{ } \documentclass[a4j]{jarticle} \begin{document} \footnote{ } \end{document} a a : verbatim verbatim \documentclass[a4j]{jarticle} \begin{document} \begin{verbatim} #include <stdio.h> main() { printf("hello,world!\n"); printf(".\n"); } \end{verbatim} \end{document}

116 6 TEX #include <stdio.h> main() { printf("hello,world!\n"); printf(".\n"); } : displaymath n TEX L A TEX \documentclass[a4j]{jarticle} \begin{document} \begin{displaymath} \sum_{i=1}^{n} \frac{t^{2}}{3} \end{displaymath} \end{document} n t 2 3 i=1 TEX TEX TEX 6.2 6.3

6.2. TEX 117 6.2: TEX pt cm mm 1pt = 0.3514mm 1cm = 10mm = 28.34pt 1mm = 0.1cm = 2.83pt 6.3: TEX em ex zw zh M x ( ) ( ) 6.2.2 TEX TEX \ TEX \ \ TEX \TeX \TeX ( )

118 6 TEX 6.4: # \# # $ \$ $ % \% % & \& & _ \_ { \{ { } \} } \ \textbackslash \ < \textless < > \textgreater > \textbar ^ \textasciicircum ˆ ~ \textasciitilde TEX 6.4 % % TEX TEX \documentclass,\begin{document} \end{document} 6.3 TEX TEX TEX report.tex

6.3. TEX 119 \documentclass[a4j]{jarticle} \begin{document} \section{ } \section{ } \begin{verbatim} #include <stdio.h> main(int argc,char* argv[]) { printf("%s\n",argv[1]); } \end{verbatim} \section{ }, printf \section{ } \begin{varbatim} %./a.out 12345 12345 % \end{verbatim} \section{ } \end{document} TEX kterm % platex filename

120 6 TEX This is ptex, Version 3.14159-p3.1.5 (euc) (Web2C 7.4.5) (./test.tex platex2e <2005/01/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (/usr/local/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2002/04/09 v1.4 Standard platex class (/usr/local/share/texmf/ptex/platex/base/jsize10.clo)) No file test.aux.! LaTeX Error: Environment varbatim undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help.... l.18 \begin{varbatim}?? TEX varbatim verbatim x x? x No pages of output. Transcript written on test.log. apple01:~/tebiki-test-latex tebiki-kan$

6.3. TEX 121 apple01: /tebiki-test-latex tebiki-kan$ emacs -nw report.tex apple01: /tebiki-test-latex tebiki-kan$ platex text.tex This is ptex, Version 3.14159-p3.1.5 (euc) (Web2C 7.4.5) (./test.tex platex2e <2005/01/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (/usr/local/share/texmf/ptex/platex/base/jarticle.cls Document Class: jarticle 2002/04/09 v1.4 Standard platex class (/usr/local/share/texmf/ptex/platex/base/jsize10.clo)) (./test.aux) [1] (./test.aux) ) Output written on test.dvi (1 page, 996 bytes). Transcript written on test.log. apple01: /tebiki-test-latex tebiki-kan$ % xdvi report.dvi % lprint report.dvi MS Windows Linux PDF % dvipdfmx report.dvi report.pdf PDF open Adobe Acrobat Reader % open report.pdf

123 7 Mac OS X C C++ FORTRAN 7.1 7.2 C C C C C 7.2.1 C C.c test.c Emacs/Vi Hello, C world! test.c

124 7 1 1 /* This is a test program. */ 2 #include <stdio.h> 3 4 int main() 5 { test.c 6 printf ("Hello, C world!\n"); 7 return 0; 8 } (\) % gcc test.c a.out %./a.out Hello, C world! % Hello, C world! gcc GNU C (GCC) GCC Free Software Foundation gcc a.out -o % gcc -o hello test.c 1

7.3. C 125 a.out hello 7.2.2 test.c printf stdio.h printf 2 man C /usr/include C /usr/lib man gcc B.W. /D.M. C ( 2 ) ANSI ( ) 7.3 C C 7.3.1 ( ) ( ) printf

126 7 test debug.c 1 /* This is a debug test program. */ 2 #include <stdio.h> 3 4 int main() 5 { 6 printf ("Hello, C world!\n"); 7 #ifdef DEBUG 8 printf("this is debug.\n"); 9 #endif 10 return 0; 11 } test_debug.c test.c 7 9 DEBUG #ifdef #endif DEBUG % gcc -o test debug test debug.c -DDEBUG %./test debug Hello, C world! This is debug. % -D[ ]

7.3. C 127 test gdb.c 1 #include <stdio.h> 2 3 int mymod(int i, int j); 4 int mymod(int i, int j) 5 { 6 while( i >= j ) 7 i -= j; 8 return i; 9 } 10 int main() 11 { 12 int x = 20; 13 int y = 3; 14 15 printf("%d (mod %d) = %d\n",x,y,mymod(x,y)); 16 return 1; 17 } gcc -g % gcc -o test gdb test gdb.c -g test_gdb GNU (gdb) test_gdb gdb

128 7 [apple01~]i041184 % gdb test_gdb ------( )-------- (gdb) break mymod Breakpoint 1 at 0x2a80: file test_gdb.c, line 6. (gdb) run Starting program: /coins\_old/home/ugrad/04/i041184/test_gdb Reading symbols for shared libraries. done Breakpoint 1, mymod (i=20, j=3) at test_gdb.c:6 6 while(i >= j) (gdb) next 7 i-=j; (gdb) print i $1 = 20 (gdb) next 6 while(i >= j) (gdb) next 7 i-=j; (gdb) print i $2 = 17 (gdb) continue Continuing. 20 (mod 3) = 2 Program exited with code 01. (gdb) quit break ( ) mymod run mymod (test_gdb.c 6 ) next 6

7.4. 129 while( i >= j ) 7 i -= j; print i next 6 while next 7 print i (7 i 17 ) continue quit gdb set backtrace 2 man gdb help 7.3.2 C C indent ( ) ctags -x 7.4 C 7.4.1 ( ) -c test.c test.o 2 2

130 7 1 /* test_main.c */ 2 3 extern void myfunc(); 4 int main() 5 { test main.c 6 myfunc("hello, make world.\n"); 7 return 0; 8 } test lib.c 1 /* test_lib.c */ 2 #include <stdio.h> 3 #include <string.h> 4 5 void myfunc(char *s) 6 { 7 printf("(%d) %s",strlen(s),s); 8 } % gcc -c test main.c % gcc -c test lib.c % gcc -o test test main.o test lib.o %./test (19) Hello, Make World % make Makefile Makefile 1 CC = gcc 2 SRC = test_main.c test_lib.c 3 OBJ = test_main.o test_lib.o 4 TARGET = test 5 6 $(TARGET): $(OBJ) 7 $(CC) -o $(TARGET) $(OBJ)

7.4. 131 Makefile make % make gcc -c -o test main.o test main.c gcc -c -o test lib.o test lib.c gcc -o test test main.o test lib.o % test Makefile test_lib.c make % make gcc -c -o test lib.o test lib.c gcc -o test test main.o test lib.o % test_lib.c 7.4.2 -O -O1 -O2 -O3 7.4.1 Makefile ( -O2) CFLAGS = -O2 7.4.3,COINS Mac, (Linux Unix OS ),. COINS Mac. libc.a C sqrt() libm.a

132 7 1 /* mathtest.c */ 2 #include <stdio.h> 3 #include <math.h> 4 int main() 5 { 6 double x,y; 7 x = 2.0; 8 y = sqrt(x); 9 printf("%f\n", y); 10 return 0; 11 } mathtest.c % gcc mathtest.c -lm 3 libm.a lib.a /lib /usr/lib gcc 2 -L /usr/x11r6/lib libx11.a libxaw.a, % setenv MACOSX DEPLOYMENT TARGET 10.4 a % gcc xtest.c /usr/x11r6/lib/libx11.a /usr/x11r6/lib/libxaw.a a setenv,coins Mac,. % setenv MACOSX DEPLOYMENT TARGET 10.4 % gcc xtest.c -L/usr/X11R6/lib -lx11 -lxaw 3,COINS -lm

7.5. C++ 133 7.5 C++ C++( ) 7.5.1 C++ C++.C,.c,.c++,.cc,.cpp C.c test.cpp test.cpp 1 /* This is a C++ test program. */ 2 #include <iostream.h> 3 4 int main() 5 { 6 cout << "Hello, C++ world!" << endl; 7 return 0; 8 } % g++ test.cpp a.out C -o

134 7 [apple01: /second-grade/work/test for tebiki] i041184% g++ -o hello test.cpp In file included from /usr/include/gcc/darwin/4.0/c++ /backward/iostream.h:31,from test.cpp:1: /usr/include/gcc/darwin/4.0/c++/backward/ backward_warning.h:32:2: warning: \#warning This file includes at least one deprecated or antiquated header.please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-de precated. % g++ -o hello test.cpp %./hello Hello, C++ world! g++ GNU C++ GCC Free Software Foundation C++ 7.5.2 C++ /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/ C++ /usr/lib/gcc/powerpc-apple-darwing/4.0.1/ man g++ B. C++( 3 ) ( ) M. A. B. C++ ( )

7.6. FORTRAN 135 7.6 FORTRAN FORTRAN Mac FORTRAN GNU FORTRAN95 (gfortran) 7.6.1 GNU FORTRAN95 GNU FORTRAN Free Software Foundation FOR- TRAN95 FORTRAN.f.F test.f test.f 1 * THIS IS A TEST PROGRAM 2 PROGRAM TEST 3 REAL X,Y 4 X=3.0 5 Y=SQRT(X) 6 WRITE(*,*) Y 7 END apple01: tebiki-kan$ gfortran test.f a.out C C++ -o apple01: tebiki-kan$ gfortran -o test test.f apple01: tebiki-kan$./test 1.732051 man gfortran FORTRAN ( )

137 8 Java Developers Kit Java Java Developers Kit(JDK) 8.1 Java Java Java Java ( ) Java ( ) Java ( ) Java Virtual Machine (JavaVM) Java Java Java

138 8 Java Developers Kit Java Java Java Web Web Web 8.2 Java 8.2.1 Java public.java MyTest MyTest.java Java javac 1 % javac MyTest.java MyTest.class 8.2.2 Java java MyTest % java MyTest.class 1 java 1.4 -target 1.4

8.3. 139 appletviewer appletviewer HTML MyApplet MyApplet.html % appletviewer MyApplet.html.html 8.3 8.3.1 1 HelloWorld.java 1 public class HelloWorld { HelloWorld.java 2 public static void main(string args[]) { 3 System.out.println("Hello, Java world!"); 4 } 5 } Hello, Java world! % javac HelloWorld.java % java HelloWorld Hello, Java world! % 8.3.2 2 HelloWorldApl.java Hello World!

140 8 Java Developers Kit 1 import java.applet.applet; 2 import java.awt.graphics; 3 HelloWorldApl.java 4 public class HelloWorldApl extends Applet { 5 public void init() { 6 resize(150, 30); 7 } 8 public void paint(graphics g) { 9 g.drawstring("hello, World!",50,25); 10 } 11 } % javac HelloWorldApl.java appletviewer HTML HelloWorld.html HTML HelloWorld.html 1 <HTML> 2 <HEAD> 3 <TITLE>HelloWorldApl Applet</TITLE> 4 </HEAD> 5 <BODY> 6 HelloWorldApl Applet 7 <HR> 8 <APPLET CODE="HelloWorldApl.class" WIDTH=150 HEIGHT=30> 9 </APPLET> 10 <HR> 11 <A HREF="HelloWorldApl.java">Source</A> 12 </BODY> 13 </HTML>

8.4. 141 8.1: HelloWorldApp % appletviewer HelloWorld.html 8.1 8.4 java Java javac appletviewer Java javac Java Java appletviewer HTML Java jdb(java debugger) jar(java archive tool) man /Developer/Examples/Java/Applets

143 9 Windows (COINS) Windows XP ( Windows ) Windows 3C206 60 Window XP 9.1 9.1.1 Microsoft Windows 2000 Professional 40, Microsoft Windows XP Professional 40 1 COINS ( 9.1) 9.1: COINS Windows Mac COINS Windows Windows Windows 1 2006

144 9 Windows Windows Mac Windows Ctrl + Alt + Del Ctrl Alt Delete 3 ( 9.2) OK Enter Windows 9.2: 9.1.2 Windows COINS (Mac ) ( : i080001) Mac Windows 9.1.3 Windows Windows Ctrl + Alt + Delete [ ] 2 9.1.4 Mac Windows

9.2. 145 [ ] Ctrl + Alt + Delete Enter OK Windows Windows 9.2 9.2.1 Windows Windows ( ) ( 9.3) 9.3: Windows 2 Windows Windows 2 1

146 9 Windows ( ) 9.4: 9.2.2 Windows Windows ( 9.5) 9.5: ( )

9.2. 147 Windows 9.2.3 Windows XP ( 9.6) 9.6: Windows ( 9.7) 9.2.4 Alt + F4 ( 9.8)

148 9 Windows 9.7: 9.8:

9.3. 149 9.3 9.3.1 Windows Mac Windows Windows ( ) 9.9: Windows 9.3.2 Windows Mac ( ) Mac Windows Windows 9.3.3 Windows Mac Windows Mac (1) Windows Ethernet ETHERNET

150 9 Windows 3 (2) Mac Windows.DOC Microsoft Word 4 (3) EXE Mac Windows ( ).EXE ( 9.10).EXE Windows Mac a.out.com.bat.cmd (4) ( ) Mac 3 3 Windows ( ) 5 9.10: 3 4 5

9.3. 151 9.3.4 Windows ( ) [ ] [ ] OK ( 9.11) 9.11: 9.3.5 Windows Mac / CD-ROM / Windows Mac 1 ( ) ( 9.12) Windows CD-ROM 1 Windows C (A ) CD-ROM 6 ( 9.13) 6 A Z 26

152 9 Windows 9.12: Windows C C 9.13: 9.3.6 Mac /home/ugrad/08/s080001/ Mac / / Windows ( )

9.3. 153 (1 ) : A Ethernet Tunnel.txt A: Ethernet Tunnel.txt Windows SMB (Server Message Block) Windows server-name share-name filename.txt Windows 9.3.7 Ctrl Shift ( 9.14) 9.3.8 Windows

154 9 Windows 9.14: ( ) ( 9.15) Mac Windows.LNK ( ) Windows 7 9.15: 7 ( )

9.4. 155 9.3.9 Mac mkdir Windows [ ] [ ] 9.3.10 Windows [ ] 9.3.11 / F2 [ ] ( 9.16) 9.16: 9.4 9.4.1 Mac ( ) Windows Windows ( ) COINS Windows Windows H: H:

156 9 Windows Mac (orchid-serv) 8 ( 9.17) 9.17: H: Windows H: Mac Windows Mac ( ) Mac Windows Mac 9.4.2 Mac Windows ( ) 20 2 GB Windows Windows H: ( 9.18) 8 Windows Mac Mac Samba Windows SMB H: orchid-serv username (UNC )

9.4. 157 9.18: 9.4.3 Windows ( 9.19) 9.19: 9.4.4 Windows ( )

158 9 Windows 9 WinFiles Mac. 9.4.5 COINS Windows IntelliMirror Windows.. ( 9.20).. H:\WinFiles\MyDocuments. OK ( 9.21)..... 9.4.6 D: work Mac /work Windows D: work 9 winedge-serv 5 MB 2003 9 orchid-serv 512 MB

9.4. 159 9.20: 1 9.21: 2

160 9 Windows 9.5 9.5.1 Mac Windows ( ) Mac Windows Windows 1 Windows 1 9.5.2 Mac ps kill Windows 1 Ctrl + Alt + Delete [ ] ( 9.22) 9.22:

9.5. 161 Windows XP [ ] [ ] Windows ( 9.23) Delete 9.23: 10 [ ] [ ] ( 9.24) Mac ps aux CPU 9.5.3 Windows Mac 10

162 9 Windows 9.24: Windows ( ) 9.6 Windows 9.6.1 COINS Windows 9.6.2 Windows Windows ( 9.25) Windows COINS Windows (3C205) winprecpr1 winprecpr2 (3C206) winfmvpr1 winmfvpr2 4

9.6. Windows 163 Windows print-serv Windows 9.25: Windows 9.6.3 COINS Windows MS-IME 2003 (Word ) / MS-IME 2003 MS-IME 2003 ( 9.26) Enter Shift / MS-IME 2003 IME [ ]

164 9 Windows 9.26: 9.7 Windows 9.7.1 Windows Mac Windows ( 9.27) Mac Windows 9.7.2 Mac ( ) Windows 11 [ ] [ ] [ ] H: > 11 MS-DOS

9.7. Windows 165 9.27: ( ) Windows Mac ( ) 9.7.3 dir

166 9 Windows H: >dir H: 2004/01/28 22:37 <DIR>. 2004/01/15 15:43 <DIR>.. 2003/05/22 14:21 <DIR> TeraTerm 2003/06/30 21:04 <DIR> winprofiles 2003/11/08 20:42 <DIR> public_html dir dir /? Windows /? 9.7.4 copy H: >copy a.txt neko.txt 1 9.7.5 move H: >move win32.c softhub unix.c 9.7.6 ren

9.7. Windows 167 H: >ren hello.txt hello.tx_ 9.7.7 xcopy copy xcopy /? H: >xcopy srcdir destdir destdir (F= D= )? D srcdir readme.txt srcdir softether.exe srcdir win.ini 3 9.7.8 del /S /F H: >del debian /s /f /q - H: debian Cicada_in_ThinkPad_X40.txt - H: debian source_tree tree.c - H: debian source_tree kernel init.c - H: debian source_tree kernel signal.c

168 9 Windows 9.7.9 rmdir /S 9.7.10 cd ( ) Mac... cd Mac pwd H: test>cd coins H: test coins>cd winprec H: test coins winprec>cd.. H: test coins>cd.. esys H: test esys> 9.7.11 cls 9.8 9.8.1 Windows XP 9.8.2 ping ping (ICMP Echo Request) Response Mac ping ( )

9.9. Microsoft Visual C++ 169 9.8.3 ftp FTP COINS FTP H: >ftp ftp1.coins.tsukuba.ac.jp Connected to orchid-b.coins.tsukuba.ac.jp. 220 orchid-b.coins.tsukuba.ac.jp FTP server ready. User (orchid-b.coins.tsukuba.ac.jp:(none)): s080001 331 Password required for ikenie. Password:******** 230 User s080001 logged in. 9.8.4 telnet Telnet COINS Mac Telnet SSH 9.9 Microsoft Visual C++ 9.9.1 Windows COINS Windows 9.9.2 Microsoft Visual C++ Windows Microsoft Visual Studio 6.0 12 Visual C++ 6.0 (VC++) Visual Basic 6.0 Visual C++ C C++ Windows Visual C++ C/C++ C 12 VC++ VB VJ++ VID

170 9 Windows C Mac Windows VC++ 9.9.3 VC++ VC++ Microsoft Visual Studio 6.0 Microsoft Visual C++ 6.0 VC++ 9 [ ] [ ] ( 9.28) 9.28: 9.9.4 VC++ (IDE) [ ] [ ] [ ] ( 9.29) C (main ) Win32 Console Application main C Console Application

9.9. Microsoft Visual C++ 171 9.29: Hello C: Program Files ( : H: Dev Hello) 9.9.5 C 1 C 1 [ ] [ ] [C++ ] Hello.c OK ( 9.30) VC++.C C.CPP C++ C.C 9.9.6 VC++ VC++ Hello.c

172 9 Windows 9.30: C #include <stdio.h> int main() { printf("hello, World n"); return 0; } VC++ C/C++ printf VC++ ( 9.31) 9.31: VC++ [ ] [ ]

9.9. Microsoft Visual C++ 173 VC++...... Hello.c... Hello.exe - 0, 0 Hello.c Hello.exe Windows ( ) [ ] [ Hello.exe] Hello.exe Hello World 9.9.7 Debug Release VC++ Debug Release EXE [ ] [ ] ( 9.32) 9.32:

174 9 Windows 9.9.8 VC++ (struct) C++ ( 9.33) (API) 9.33: 9.9.9 VC++ VC++ (EXE) VC++ VC++ VC++ / VC++ ( 9.34) printf( Hello world! + %d n, i ); [F5] CPU ( ) 16

9.9. Microsoft Visual C++ 175 9.34:

176 9 Windows 9.10 Java 9.10.1 Java COINS Windows Java2 SDK Java Java (javac) 9.10.2 Windows Java2 SDK 13 C: Progarm Files Java jdk1.5.0_06 bin C: Progarm Files Java jdk1.5.0 06 bin Java javac J2SDK Java 9.10.3 [ ] [ ] [ ] TEMP TMP [ ] ( 9.35) OK : PATH : C: Progarm Files Java jdk1.5.0 06 bin 13 Java2 SDK

9.11. 177 9.35: Java 9.10.4 Java Java javac H: >cd java H: java>javac hello.java H: java>java hello Hello, Java World!! 9.11 9.11.1 Windows Windows XP Outlook Express 14 COINS Windows Outlook Express Microsoft Outlook Outlook Outlook 14 Windows

178 9 Windows 9.11.2 Outlook Microsoft Outlook POP3 ( : s0800001@coins.tsukuba.ac.jp) COINS ( : s0811212) POP3 / SMTP mail.coins.tsukuba.ac.jp ( 9.36) Outlook 9.36: 9.11.3 Outlook [ ] [ ] - [ ] - [ ] [Outlook ] - [ ] Outlook ] OK H: ( ).pst [ ] OK OK Outlook [ ] [ ] - [ ] [ ]

9.12. SSH Mac 179 [ ] [ ] ( ) [ ] Microsoft Outlook Windows http://www.coins.tsukuba.ac.jp/ce/windows-set.pdf 9.12 SSH Mac 9.12.1 Windows COINS Mac Windows Mac Telnet Telnet SSH SSH SSL (Secure Socket Layer) UNIX / Mac SSH Mac 9.12.2 Tera Term + ttssh Windows SSH Tera Term ttssh putty Terminal Emulator Guevara 9.12.3 ttssh ttssh ttssh ( 9.37) [Service] [SSH] [Host] Mac IP rei 9.37 adonis1.coins.tsukuba.ac.jp OK SSH 15 OK 15 Tera Term.

180 9 Windows 9.37: ( 9.38) COINS Mac 9.38: Tera Term emacs Tera Term ( 9.39). = ( ) ( ) EUC.

9.13. Windows XP 181 9.39: Tera Term 9.13 Windows XP 9.13.1 1 Windows + R 9.13.2 Windows + R cmd Enter 9.13.3 Windows + M 9.13.4 Windows XP Professional Windows Server Windows

182 9 Windows ( 9.40) 9.40: Windows XP mstsc.exe mstscax.dll COINS

183 10 Linux Server COINS Linux Linux Server Linux Server RedHat Linux 10.1 Mac SSH Linux IP IP orchid-calc1 130.158.87.211 orchid-calc2 130.158.87.212 orchid-calc3 130.158.87.213 orchid-calc4 130.158.87.214 orchid-calc5 130.158.87.215 orchid-calc6 130.158.87.216 10.1.1 Mac X11 % ssh orchid-calc1.coins.tsukuba.ac.jp ( ) Are you sure you want to continue connecting (yes/no)? yes password: % login Mac

184 10 Linux Server 10.1.2 % logout logout Connection closed. % logout exit 10.2 10.2.1 :i0800000 % ssh i0800000@orchid-calc1.coins.tsukuba.ac.jp 10.2.2 Mac open Linux Server

185 11 11.1 RDC Windows 2003 Server Mac Windows 11.1.1 - Microsoft Office 2004 - - Remote Desktop Connection - Remote Desktop Connection ( 11.1) 1 11.1: RDC coins-term 1152 870 1670 ( 11.2) LAN ( 11.3). 1 RDC,

186 11 11.2: RDC 11.3: RDC

11.1. 187 H: >remote-desktop-connection 11.1.2 JOHOPC OK Enter 2 JOHOPC 3 Windows 2003 4 11.1.3 username username? Mac 11.1.4 Mac Mac 2 3 username@johopc username 4, / IME,IME EN JP

188 11 Mac Windows Mac Web Windows 11.2 Windows H CD-ROM Windows Mac Windows

189 12 COINS (COINS) LAN PPTP VPN 12.1 LAN 12.1.1 LAN COINS LAN C LAN COINS 12.1.2 LAN IEEE802.11b,IEEE802.11g LAN Windows XP 12.1.3 LAN LAN LAN LAN 3E108 MAC. MAC. Windows Windows XP LAN ESS-ID.

190 12 COINS 12.1: LAN ESS-ID WEP coins-ap 12.1.4 LAN COINS LAN DHCP IP orchid-nwb NAT 12.1.5 LAN LAN LAN SSH VPN 12.2 VPN 12.2.1 COINS VPN COINS COINS VPN VPN Virtual Private Network ( ) COINS VPN COINS LAN VPN PPTP L2TP/IPsec SoftEther Protocol SOCKS COINS PPTP VPN VPN 12.2.2 VPN PPTP COINS VPN PPTP Windows NT 4.0, 98, 2000, ME, XP, 2003 MacOS X Linux PPTP

12.2. VPN 191 12.2: VPN vpn.coins.tsukuba.ac.jp COINS Mac COINS Mac MS-CHAPv2 MPPE-128 ( ) Windows XP 12.2.3 Windows XP [ ] ( 12.1) [ ] [ ] ( 12.2) [ ] ( ) 12.1: [ IP ] vpn.coins.tsukuba.ac.jp

192 12 COINS 12.2: 12.2.4 VPN COINS COINS VPN PPTP VPN NAT coins-admin@coins.tsukuba.ac.jp ( 12.3) VPN COINS COINS VPN 128bit COINS POP3/SMTP FTP

12.2. VPN 193 12.3: 12.2.5 VPN Windows PPTP VPN WAN COINS VPN TCP/IP COINS Web IP 12.2.6 VPN VPN VPN VPN [ ] [ (TCP/IP)] [ ] [ ] ( 12.4) 12.4: VPN VPN

194 12 COINS 12.2.7 VPN COINS VPN POP3 Web TWINS (https://twins.tsukuba.ac.jp/) VPN SSH VPN 12.3 COINS 12.3.1 SFTP COINS SFTP SFTP SSH

20 yas@is.tsukuba.ac.jp amagasa@cs.tsukuba.ac.jp tatebe@cs.tsukuba.ac.jp itoh@risk.tsukuba.ac.jp sawamu@cs.tsukuba.ac.jp yamazaki@cs.tsukuba.ac.jp yamagata@cs.tsukuba.ac.jp 2005 1 amagai@cs.tsukuba.ac.jp 2 3 i041219@coins.tsukuba.ac.jp 4 10, 11, 12,2007 kuma@coins.tsukuba.ac.jp 5, 6, 7, 8,2007 i041184@coins.tsukuba.ac.jp 9,,2007,2008 tyouiifan@coins.tsukuba.ac.jp 2009 taka-coma@kde.cs.tsukuba.ac.jp c-tebiki@cs.tsukuba.ac.jp coins-admin@coins.tsukbua.ac.jp 2009 4 Copyright c 2009. All Rights Reserved.