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



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

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


tex03final1.dvi


X Window System X X &

unix.dvi

GNU Emacs GNU Emacs

untitled

UNIX

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

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

tebiki00.dvi

help gem gem gem my help

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

数学論文の書き方 - 第1回:入門編

LaTeX実践講座 - これから TeXを使って文書を書きまくる人のために

1 L A TEX

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

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

273? C

リファレンス

JSIAM URL TEX Web jsjsiam.cls jsiammacrover

1 ログインとログアウト 1.1 ログイン ログイン画面で [ password ] 欄にパスワードを入力します (図 1) 図 1 ログイン画面 正しくログインができると Ubuntu のデスクトップ画面 図2 が表示されます 図2 Ubuntu デスクトップ画面 2

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

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

LeapMotion JINS MEME 2019

UNIX

インターネット入門

tex02.dvi

図 1: 場所をクリックし ホームフォルダーをクリックすると (上図) ホーム フォルダー下にあるファイルやディレクトリの一覧を見ることができる 下図 2

PowerPoint プレゼンテーション - 物理学情報処理演習

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

untitled

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

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

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

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

bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows bash on Ubuntu on Windows ˆ Windows10 64bit Wi

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

6 Tgif William Chia-Wei Chang tgif 3.0 pixmap URL Tgif 6.1: Tgif

<4D F736F F F696E74202D E3F FC96E55F F554E CC8AEE D8EAF2E B8CDD8AB B83685D>

情報処理概論(第二日目)

Microsoft PowerPoint - InfPro_I6.pptx

atama.dvi

dvi

iNotes_PDF.ps

1.2 L A TEX 2ε Unicode L A TEX 2ε L A TEX 2ε Windows, Linux, Macintosh L A TEX 2ε 1.3 L A TEX 2ε L A TEX 2ε 1. L A TEX 2ε 2. L A TEX 2ε L A TEX 2ε WYS

book

AMT機能セットアップガイド

Microsoft Word - D JP.docx

L A L A TEX UTF-8 Makefile \begin{jabstract} \end{jabstract} \begin{eabstract} \end{eabstract} main.tex L A TEX i

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

目次 1. ログイン ログアウト デスクトップ ( 例 :Word Excel 起動中 ) Dock( 例 :Word Excel 起動中 ) Finder ウィンドウ メニューバー ( 例 :Word 起動中 )...

( )!?

johokiso-char.pdf.pdf

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

PowerPoint Presentation

Microsoft Word - macマニュアル【 】.doc

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

WebClass

sin log lim Deutsch Hello, TEX World! 1.1 T

JP1/Integrated Management - Service Support 操作ガイド

情報処理概論(第二日目)

untitled

MYWORDⅤ Pro 操作マニュアル

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

AuthorManual_JSTP.ppt

DVIOUT-マスタ-


ohp.mgp

Transcription:

2016

1 coins-admin 10 http://www.coins.tsukuba.ac.jp/ce/ PDF URL http://www.coins.tsukuba.ac.jp/tebiki/2016/ tebiki2016.pdf PDF Dropbox Dropbox Dropbox Dropbox COINS Dropbox

I 28 3 1.1 ( ) ( ),,.,.,,. 1.2 1.2.1 1. 2. 3. ( ), 4. 1.2.2,,,.

II 1.2.3,, ( ). 1.3, 1.4,,IC IC IC 1.5 1. AUP(Acceptable Use Policy). AUP, 1.1. 2.,. 3., (, )., (,,, ) (,USB ),,.,,. 4.,.,.

III 5., (, ). 6.,., ( ).,.,.,. 7.,.,.,,. 1.6 1.,,. 2.,. 3..,,. Web

IV,.,. http://www.u.tsukuba.ac.jp/document/ja/ UnivGuideline.pdf

V 3C113 3C205 3C206 3 Felica IC Suica Pasmo Felica 1.1: 3C113 3C205 3C206 OS MacOSX MacOSX Windows/Linux abelia01 abelia50 crocus01 dahlia01 borage01 borage50 crocus40 dahlia30 abelia-pr1 abelia-pr2 crocus-pr1 dahlia-pr1 borage-pr1 borage-pr2 crocus-pr2 color-c113( ) color-c205( ) LAN 1.2 1.2: LAN LAN SSID pentas-comp[a-f] pentas-compx.coins.tsukuba.ac.jp viola-calc[1-6] viola-calcx.coins.tsukuba.ac.jp VPN vpn.coins.tsukuba.ac.jp WWW www.coins.tsukuba.ac.jp violet-nwh.coins.tsukuba.ac.jp, violet-nwe.coins.tsukuba.ac.jp AP-C113BGN AP-C113AN AP-C206BGN imac 1 Windows Linux 5

VI 1.8

VII 1. 1.3 CPU 1 1GBytes 1.3: www violet pentas imac boot abelia borage crocus dahlia pentas-comp[a-f] viola-calc[1-6] 18:00 8:00 2. 1 3. (1) coins-admin@coins.tsukuba.ac.jp 1 Shibboleth

VIII CPU c-comp@cs.tsukuba.ac.jp 2014 3 10 imac Linux nice nice n 19 $ nice -n 19 n -20( ) 19 10

IX Web Active!mail Web (http://www.u.tsukuba.ac.jp/) 1. http://www.tsukuba.ac.jp/ 2. facebook http://www.facebook.com/univ.tsukuba.ja 3. WEB https://anpi.tsukuba.ac.jp Web Active!Mail:https://wmail.u.tsukuba.ac.jp/ Active!mail ID 209912345 ID s9912345

X 1.1:

I 1.1........................................... I 1.2..................................... I 1.2.1................................. I 1.2.2................................... I 1.2.3................................... II 1.3,.................................... II 1.4,,IC....................... II 1.5..................................... II 1.6......................................... III 1 imac 1 1.1 imac....................................... 1 1.2............................... 3 1.2.1..................................... 3 1.2.2................................... 5 1.3............................ 6 1.3.1................................ 6 1.3.2............................ 6 1.3.3 Shibboleth................................... 9 1.4...................................... 9 1.4.1 Finder............................ 10 1.4.2 Dock................................ 11 1.4.3...................................... 12 1.4.4............................... 12 1.5......................................... 13 1.5.1................................... 13 1.5.2................................. 14 1.6.................................. 14 1.6.1................................ 14 1.6.2............................ 16 1.6.3......................... 17 1.7................................ 18 i

1.7.1 iterm.app.................................... 18 1.7.2 Microsoft Office................................. 20 1.7.3 Preview.app................................... 21 1.7.4 LibreOffice................................... 21 1.8........................................... 21 1.8.1....................................... 21 1.8.2.............................. 23 1.8.3.............................. 24 2 25 2.1.................................. 25 2.1.1 Hello, world................................... 25 2.1.2................................. 25 2.1.3................................. 26 2.2.................................... 26 2.2.1 Windows......................... 28 2.2.2 UNIX........................... 28 2.3......................... 29 2.3.1 ls -..................... 29 2.3.2 -............... 29 2.3.3................................ 30 2.3.4................................... 31 2.3.5................................. 31 2.4....................................... 31 2.4.1 (home directory)............... 33 2.4.2 (permission)................... 33 2.5............................... 33 2.5.1 ls................................... 33 2.5.2 mkdir................................. 34 2.5.3 rmdir................................. 35 2.5.4 cp................................... 35 2.5.5 mv.................................. 36 2.5.6 rm................................... 36 2.5.7 cd................................... 37 2.5.8 pwd.................................. 37 2.6........................... 37 2.6.1 cat.................................. 37 2.6.2 lv................................... 38 2.6.3 head................................. 38 2.6.4 tail.................................. 39 ii

2.6.5 grep.................................. 39 2.6.6 sort.................................. 39 2.6.7 chmod................................ 39 2.6.8 open................................. 41 2.7............................... 41 2.7.1 man.................................. 41 2.7.2 quota................................. 42 2.7.3 du................................... 42 2.8................................. 43 2.8.1 convert................................ 43 2.9.............................. 43 2.9.1 ps................................... 43 2.9.2 kill.................................. 44 2.10..................................... 44 2.11 tab................................... 45 2.12 (remote login)........................... 45 2.12.1 ssh................................... 46 2.13.............................. 46 2.13.1.............................. 46 2.14................................. 47 2.14.1 alias.................................. 47 2.14.2 nkf.................................. 48 2.14.3 xclock xcalc............................. 49 2.15..................................... 49 3 Emacs 52 3.1 Emacs..................................... 52 3.1.1..................................... 52 3.1.2................................. 53 3.1.3...................................... 53 3.1.4................................. 54 3.1.5 Spotlight............................... 54 3.2....................................... 55 3.2.1....................................... 55 3.2.2....................................... 56 3.3........................................... 57 3.3.1................................... 57 3.3.2.................................. 57 3.3.3................................. 58 3.3.4................................. 59 iii

3.3.5........................... 60 3.3.6................................. 61 3.3.7................................... 61 3.3.8.................................. 63 3.4 Tips........................................... 63 3.4.1................................... 63 3.4.2 Emacs............................ 65 3.4.3...................................... 65 3.4.4 package.el.................................... 66 3.5 Mew........................................... 66 3.5.1.............................. 66 3.5.2.................................. 67 3.5.3.................................. 67 3.5.4................................ 69 3.5.5..................................... 69 3.5.6....................... 70 3.5.7................................. 71 3.5.8 Mew............................... 73 4 74 4.1 Firefox Web........................... 74 4.1.1..................................... 74 4.1.2......................... 75 4.1.3 Firefox............................. 76 4.1.4........................... 77 4.1.5....................................... 78 4.1.6..................................... 78 4.1.7.............................. 79 4.1.8.............................. 79 4.1.9.............................. 80 4.1.10................................ 81 4.2 Thunderbird...................... 82 4.2.1........................... 83 4.2.2 COINS.................... 83 4.2.3.................................. 86 4.2.4.............................. 86 4.2.5................................ 90 4.2.6 SquirrelMail................................... 93 iv

5 Windows Linux 95 5.1............................... 95 5.1.1....................... 95 5.1.2....................... 95 5.1.3........................ 98 5.2 UI UI............................ 100 5.2.1........................ 101 5.2.2................... 102 5.2.3........................ 103 5.3 UI..................... 104 5.3.1 UI.......................... 106 5.4......................................... 107 5.5..................................... 108 5.5.1 UI...................... 108 5.5.2.................................. 109 5.5.3........................... 110 5.5.4............................. 110 5.5.5.............................. 111 5.5.6 /......................... 112 5.5.7............................. 112 5.5.8........................... 116 5.6............................... 117 5.6.1.................... 117 5.6.2......................... 117 5.7 Windows.................................. 117 5.7.1 Windows........................... 118 5.8 Windows............................... 119 5.8.1................. 120 5.8.2................................... 123 5.9 Linux...................................... 124 6 L A TEX 126 6.1 L A TEX...................................... 126 6.1.1 TEX L A TEX.................................. 126 6.1.2 ε-ptex dvipdfmx.............................. 128 6.2 L A TEX................................ 129 6.3 L A TEX.............................. 130 6.4 L A TEX........................... 130 6.5 Hello L A TEX!....................................... 131 v

6.5.1............................ 132 6.6 L A TEX................................ 133 6.6.1..................................... 133 6.6.2....................................... 134 6.7................................. 135 6.7.1.............................. 135 6.7.2 jsarticle............................ 135 6.8........................................... 136 6.9....................................... 136 6.10.......................................... 137 6.11.................................... 141 6.11.1................................... 141 6.11.2................................... 142 6.12..................................... 142 6.12.1....................................... 143 6.12.2..................................... 143 6.13......................................... 143 6.13.1................................ 143 6.13.2................................ 144 6.13.3................................... 144 6.14............................................ 144 6.14.1 graphicx.............................. 145 6.14.2............................ 145 6.14.3................................... 146 6.15............................................ 148 6.15.1 tabular.................................. 149 6.16........................................... 151 6.17........................................... 151 6.17.1.................................. 152 6.17.2................................... 152 6.18........................................... 153 6.18.1 AMS-L A TEX................................... 153 6.18.2................................ 154 6.18.3................................. 157 6.19...................................... 157 6.19.1 listings....................... 157 6.19.2....................................... 157 6.19.3 listings......................... 159 6.20 BibTEX............................... 161 6.20.1 BibTEX.............................. 161 vi

6.20.2 BibTEX................................ 163 6.20.3................................. 163 6.20.4 L A TEX............................ 164 6.20.5 BibTEX L A TEX............... 165 6.21....................................... 165 6.22....................................... 166 6.23 TEX.................................. 166 6.23.1 L A TEX........................... 166 6.23.2 ε-ptex TEX........................... 166 6.23.3 ConTEXt.................................... 168 6.23.4 TikZ................................. 169 7 172 7.1..................................... 172 7.2 Java..................................... 172 7.2.1 Java..................... 173 7.2.2 Java..................... 173 7.3 C............................................ 175 7.3.1 C.................................. 175 7.3.2......................... 176 7.3.3................................. 177 7.3.4.................................... 178 7.3.5 printf........................ 178 7.3.6................................. 179 7.3.7................................. 181 7.3.8 make........................... 182 7.3.9...................................... 182 7.3.10................................... 183 7.4 C++.................................... 183 7.4.1 C++..................... 183 7.4.2................................. 184 7.5 FORTRAN................................. 184 7.5.1 FORTRAN95................ 184 7.5.2................................. 185 7.6 MATLAB........................................ 185 7.6.1....................................... 185 7.6.2................................... 186 7.6.3................................... 188 7.6.4........................ 189 vii

8 VMware Fusion 190 8.1.................................... 190 8.2 OS...................... 191 8.2.1 OS............ 191 8.2.2.............................. 192 8.3 OS............................... 198 8.3.1........................... 198 8.3.2............................. 199 8.3.3................................ 199 8.4 VMware Fusion........................... 200 8.4.1................ 200 8.4.2 OS CD/DVD....... 201 8.4.3 VMware OS.................. 201 8.5...................................... 202 8.5.1......................... 202 8.5.2 OS Ctrl+Alt+Del.............. 202 9 203 9.1................................. 203 9.1.1................................ 203 9.1.2....................... 203 9.1.3 Linux Server/........................ 207 9.2 LAN................................... 207 9.2.1 LAN.......................... 208 9.2.2................................... 208 9.2.3 LAN............................ 208 9.2.4 LAN................................ 209 9.2.5 MacOS LAN................... 209 9.3 VPN.................................. 211 9.3.1 VPN............................... 211 9.3.2 Windows VPN............... 211 9.3.3 Linux VPN........................... 216 9.3.4 OS X VPN........................... 217 9.4...................... 218 9.4.1 Mac............................. 219 9.4.2 Linux............................ 219 10 222 10.1.............................. 222 10.2.................................. 222 10.3............................ 224 viii

10.4 Web................................ 225 10.5 COINS....................... 225 10.6 Firefox Thunderbird.................. 225 10.7 COINS............. 226 10.8................ 226 10.8.1.................... 227 10.9........................... 228 10.10quota.............................. 231 10.11.......................... 231 10.12.................................... 232 ix

1 第1章 imac の基本的な使い方 本章では 情報科学類 COINS1 の計算機である imac Apple OS X Mavericks を利用す る上で覚えておく必要がある操作方法について 簡単に説明します 1.1 imac の構成 imac 図 1.1 は本体とマウス 図 1.2 とキーボード 図 1.3 から構成されています 図 1.1: imac の本体 図 1.2 はマウスです ボタンが無いように見えますが それに相当する場所 ホイールの左右 をクリックすると反応します 初期状態では マウスの左側をクリックしても右側をクリックして も 同じクリックとして扱われます Mac で右クリックをする場合には control を押しながらク リックをします また 1.4.4 節ではマウスの右クリックを有効にする方法を紹介しているので 使 いづらい方は設定を変更しましょう ホイールは真ん中にある小さな丸い部分で 画面をスクロールするためのものです スクロール 可能な画面でここを上下に動かすことで 画面が上下にスクロールします 1 College Of INformation Science

第1章 imac の基本的な使い方 2 図 1.2: マウス 図 1.3: キーボード 図 1.3 はキーボードです レポートを作成するときやコマンドを打つときなど キーボードを通 して操作することが多いです 普段からキーボードに慣れておくと 打つ速度 タイピング速度 が速くなり効率も良くなります 是非覚えてみてください また よく使うキーの場所を図 1.4 に その説明を表 1.1 に記します 今後の説明で使っていく のでよく覚えておくようにしましょう 図 1.4: キーボードの配置

1 imac 3 1.1: esc 1 2 tab 3 return 4 delete 5 alt, option 6 7 control 8 shift 9 1.2 1.2.1 imac login 1.5 shift 1.5 TA 2 3 1.5 X OS X Mavericks Windows 8.1 CentOS 6.5 OS X 1.6 s+ 7 209912345 s9912345 return return 2 Teaching Assistant= 3 3E108

第1章 imac の基本的な使い方 4 図 1.5: ブートメニュー 図 1.6: ログイン 認証画面

1 imac 5 tab 4 1.3 Caps Lock 1.2.2 logout 5 shift + + Q 1.7 1.7: 4 Cursor I 5

1 imac 6 1.5 1.3 1.3.1 6 TWINS. COINS COINS 1.8 1.8: 1.2 3 209912345 s+ 7 s9912345 13 1.2: s+ 7 13 COINS Active!mail LAN utwlan TWINS 1.3.2 6 https://account.tsukuba.ac.jp/list.html

1 imac 7 8 aaaaaaaa 12345678 7 qwert asdfg 7 COINS 6 8 Web Web COINS https://account.tsukuba.ac. jp/ 1.10 1.11 8 7 8 UNIX passwd COINS

1 imac 8 imac Mac ( ) 1.9: 1.9 [ ] 1.10:

1 imac 9 1.11: 1.3.3 Shibboleth Shibboleth Web COINS Web Shibboleth Web (https://www.coins.tsukuba.ac.jp/ce/) Shibboleth (https://idp.account.tsukuba.ac.jp/idp/ Authn/UserPassword) login Web Shibboleth Shibboleth Web Shibboleth (https://idp-test.account.tsukuba.ac.jp/ Shibboleth/) 1.4 1.12

1 imac 10 1.12: imac 1.4.1 Finder 1.13 Finder Dock Finder

1 imac 11 1.13: Finder 1.4.2 Dock Dock 1.14 Finder 1.14: Dock Dock 1.15 Dock Dock Dock Dock 1.16 Dock 1.15: Dock

1 imac 12 1.16: Dock 1.4.3 Dock CD-ROM 9 1.17 1.17: 1.4.4 imac 9 imac

1 imac 13 [H] 1.5 1.5.1 1.12 jouhoukagakurui shift shift return

1 imac 14 1.5.2 imac 1.3 1.3: + A shift + control + H control + K control + L control + : alt + I alt + K alt + J alt + L shift + shift + alt + J shift + shift + alt + L 1.6 Aqua window system Mac Dock Dock 1.6.1

1 imac 15 mouse pointer I click imac control imac 1.1 10 double click 2 drag wheel up / wheel down 10 3

1 imac 16 1.6.2 1.18 1.18: iterm 11 Dock + Q 11

1 imac 17 Dock 12 1.6.3 1.4 + c c 1.4: + c + v + x + z + a + q + s + f 1.4 Mac 12 [F11]

1 imac 18 shift 4 1.7 imac /Applications/ 1.13 Finder 1.7.1 iterm.app iterm ( 1.18) iterm Preferences... Profiles ( 1.19) 13 Profiles 1.19: Profile 13

1 imac 19 + Terminal Character Encoding utf-8 euc-jp ($TERM) Terminal Report Terminal Type xterm-256color Text Regular Font Non-ASCII Font Change Font ASCII Colors Colors Load Presets... iterm iterm

1 imac 20 1.7.2 Microsoft Office 1.20: Microsoft Excel Microsoft Office Microsoft Word Microsoft Excel Microsoft PowerPoint Microsoft Office Excel Word Word Excel ( ) Web http://www.u.tsukuba.ac.jp/

1 imac 21 1.7.3 Preview.app Preview.app PDF Word Excel 1.7.4 LibreOffice LibreOffice Microsoft Office 14 1.8 imac Windows 5.7 1.8.1 Preview.app Preview.app 2 1.21 1.22 1.21 14

1 imac 22 1.21:

1 imac 23 1.22:. COINS A4 1.1 3C113, 3C205, 3C206 15 1.8.2 1 200 3E108 15 3C113 3C205 3C206

1 imac 24 1 2 1 1.8.3 https://violet-nwm.coins.tsukuba.ac.jp:9192/user http https 1. ID 2. 1.23:

25 2 OS X UNIX 2.1 2.1.1 Hello, world Dock iterm 1.7.1 abelia36:~ s1611xxx 1 $ e e echo Hello, world OK $ echo Hello, world $ e $ echo Hello, world Hello, world $ 2.1.2 $ echo echo Hello bye Stand up Workers 1 $ $.

2 26 2.1.3 iterm 1000 200 100 ZIP 50% 1 ZIP 1 echo 2.2 PDF. UNIX ( ) (directory) 2 2

2 27 America Sierra Nevada Ohio Cambridge Springfield Greenville Massachusetts Cambridge Springfield Greenville Europe Sierra Nevada England Cambridge Springfield Greenville 2.1: UNIX 2.2 2.2: 2.2

2 28 2.2 / 3 2.2.1 Windows C: Program Files Program Files (64bit) Users Brezhnev Honecker Document and Settings Z: Pictures Fonts Bitcoins Transactions Users boot.ini Latex Accounts 2.3: Windows Windows C:\, USB Z:\ 4. C: Z: 2.2.2 UNIX UNIX 1 Windows Windows UNIX. 3 ( root/ ) Mac Windows tree ( ) 4 2. A:, B: C:.

2 29 2.2 bin usr User 3 bin ls rm. 2.3 2.3.1 ls - ls / $ $ ls / Applications Pictures Volumes etc net sbin usr Library System bin home opt tmp var Network Users dev mach_kernel private traces.log $ / 2.2 / 2 ls $ ls 2.3.2 - mkdir erste 5. 6 $ mkdir erste $ Listing 2.1: 5 MaKe DIRectory 6 mkdir zweite

2 30 Listing 2.2: $ mkdir erste mkdir: erste: File exists $ ls ls. 7 2.4: 2.3.3.. pwd $ pwd /home/ugrad/s1611xxx 7. UNIX

2 31 2.3.4 $ cd erste $ Listing 2.3: erste cd 8 pwd 2.3.5 ls. $ touch test $ ls test 2.4 (command). UNIX ( iterm ) (argument) 8 Change the working Directory

2 32.. (directory delimiter) / bin ls /bin/ls (2.2 ) / / UNIX /. (current directory) 2.2 bin /bin (path) /bin/ls UNIX bin ls $ /bin/ls 2.2 bin bin ls $./ls. / 9 / ( ) (extention) ( ). Java.java.mp3.ogg 9 0

2 33 2.4.1 (home directory) ( ) Report /Report/ 2.4.2 (permission) (permission) ls 2.5.1 chmod 2.6.7 UNIX Super Text UNIX 2.5 2.5.1 ls ( ) $ ls dir1 file1 file2 $ 3 ls -l ( L) $ ls -l total 245 drwxr -xr-x 2 johotaro ugrad 48 1 25 00:45 dir1 -rw-r--r-- 1 johotaro ugrad 7377 1 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 1 25 00:44 file2 $ file1 -rw-r--r-- 1 johotaro ugrad 7377 1 25 00:44 file1

2 34 -rw-r--r-- 10 1 - d l 10 9 9 2.1 2.1: 9 3 3 3 3 ( 2.2) 11 2.2: r w x - ( ) 12 -a 13 -F / -v 14 ls man ls ls 2.5.2 mkdir mkdir mkdir 10 Windows man 11 Windows.COM.EXE UNIX 12. 13. 14 ( )

2 35 $ ls -l total 10 drwxr -xr-x 2 johotaro ugrad 4096 2 15 00:10 dir1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file2 $ mkdir dir2 $ ls -l total 18 drwxr -xr-x 2 johotaro ugrad 4096 2 15 00:10 dir1 drwxr -xr-x 2 johotaro ugrad 4096 2 15 10:44 dir2 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file2 $ 2.5.3 rmdir rmdir rmdir $ ls -l total 18 drwxr -xr-x 2 johotaro ugrad 4096 2 15 00:10 dir1 drwxr -xr-x 2 johotaro ugrad 4096 2 15 10:44 dir2 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file2 $ rmdir dir2 $ ls -l total 245 drwxr -xr-x 2 johotaro ugrad 4096 2 15 00:10 dir1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file2 $ 2.5.4 cp cp cp $ ls -l file1 $ cp file1 file2 $ ls file1 file2 $ cp file2 file3 $ ls file1 file2 file3 $

2 36 $ mkdir dir1 $ ls dir1 $ ls -F dir1/ file1 file2 $ cp file1 file2 dir1 $ ls dir1 file1 file2 $ 2.5.5 mv mv cp mv ( ) mv $ 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.5.6 rm rm rm ( ) rm -r [ ] -i y (yes) n(no) $ ls -F dir1/ file1 1 1 $ ls dir1 file2 1 $ rm -r dir1 $ ls file1 $ rm -i file1 remove file1? y

2 37 $ ls $ rm rm -r * 2.5.7 cd cd cd - 2.5.8 pwd cd pwd $ pwd / home/ ugrad/99/ s99xxxxx $ 2.6 2.6.1 cat cat ( ) $ cat file1 This is test 1. $ cat file2 This is test 2. $ cat file1 file2 > file3 $ cat file3 This is test 1. file1 file2 file3 This is test 2. $

2 38 2.6.2 lv cat 1 1 lv 15 lv 2.3 2.3: lv q lv j 1 ( ) k 1 (j ) f,(space) 1 b 1 (f ) g,> G,> /? n N lv ( ) cat 2.6.3 head head 10 -n $cat file1 line 1. line 2. line 3. line 4. line 5. line 6. $ head file1 -n 3 line 1. line 2. line 3. $ 15

2 39 2.6.4 tail tail 10 head -n $ tail file1 -n 4 line 3. line 4. line 5. line 6. $ 2.6.5 grep grep $cat file2 tsukuba kenkyugakuen bampakukinenkoen midorino miraidaira moriya $ grep ba file2 tsukuba bampakukinenkoen $ 2.6.6 sort sort $ sort file2 bampakukinenkoen kenkyugakuen midorino miraidaira moriya tsukuba $ 2.6.7 chmod chmod 16 2.4.2 chmod 16 CHange MODe

2 40 (u,g,o a ) (+,- = ) (r,w x ) 3 2.4 2.4: 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 1 25 00:45 dir1 -rw-r--r-- 1 johotaro ugrad 7377 1 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 1 25 00:44 file2 $ chmod u-r file1 $ ls -l total 245 drwxr -xr-x 2 johotaro ugrad 48 1 25 00:45 dir1 --w-r--r-- 1 johotaro ugrad 7377 1 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 1 25 00:44 file2 $ touch file1 file1: Permission denied $ r = 4, w = 2, x = 1 2.5 $ ls -l total 245 drwxr -xr-x 2 johotaro ugrad 48 1 25 00:45 dir1 -rw-r--r-- 1 johotaro ugrad 7377 1 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 1 25 00:44 file2 $ chmod 666 file1 $ ls -l total 245 drwxr -xr-x 2 johotaro ugrad 48 1 25 00:45 dir1 -rw-rw-rw- 1 johotaro ugrad 7377 1 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 1 25 00:44 file2 $

2 41 file1 6 666 4 2 1 6 4+2 + 666 2.5 2.5: 4 2 1 7 (4+2+1) 6 (4+2) 5 (4+1) 3 (2+1) 2.6.8 open open URL Finder GUI $ open file1 $( file1 ) $ open. $( Finder ) 2.7 2.7.1 man man $ man ls 2.6 2

2 42 2.6: 1 2 3 4 5 6 7 8 9 10 (2) man 17 man -k (manual) man $ man man UNIX man 18 2.7.2 quota $ quota -v Disk quotas for user s1311350 (uid 5621): Filesystem 1K blocks quota limit grace files quota limit grace / home 2456883 3072000 3584000 84863 0 0 (blocks) 2456883 (quota) 3072000 2.7.3 du 17 ls(1) ( 1 ls ) 18

2 43 -h -s $ du -h -s * # * 12K dir1 44M dir2 200M dir3 $ 2.8 2.8.1 convert convert $ convert piture1.png picture2.eps # PNG EPS $ convert -resize 50% piture1.png picture3.png # 50% $ convert -resize 512 x512 piture1.png picture4.png # 512x512 $ convert -resize 512 x512! piture1.png picture5.png # 512x512 $ 2.9 Unix 2.9.1 ps ( ) $ ps PID TTY TIME CMD 5978 pts/8 00:00:00 bash 29522 pts/8 00:00:00 ps $ ps -U ID UNIX ID ps a

2 44 ps l ps u ps x 2.9.2 kill kill ID kill -KILL $ ps PID TTY TIME CMD 5978 pts/1 00:00:00 bash 29621 pts/1 00:00:00 sleep 29522 pts/1 00:00:00 ps $ kill 29621 $ ps PID TTY TIME CMD 5978 pts/8 00:00:00 bash 29522 pts/8 00:00:00 ps $ ID 2.10 19 $ ls a.c b.c c.c d.c a. java b. java c. java d. java report.tex $ ls?.c a.c b.c c.c d.c $ ls a.* a.c a. java $ ls [ab].c a.c b.c $ ls [^ab]. java c. java d. java $ ls [^ab].* c.c d.c c. java d. java $ ls [c-z]*.[d-z]* d. java report.tex * 0 19

2 45? [pat] pat 1 ˆ pat pat 2.7: pat abc a b c a-c a-z 1 A-Z 1 0-9 1 a-za-z 1 0-9a-zA-Z ˆ 0-9a-zA-Z 2.11 tab tab gatherheaderdoc gather tab $ gather tab $ gatherheaderdoc ls b tab b $ ls b tab bin/ bitbucket/ bookmarks/ b.xx 2.12 (remote login)

2 46 2.12.1 ssh 9.1.2 ssh ssh Are you sure you want to continue connecting (yes/no)? https://www.coins.tsukuba.ac.jp/ce/pukiwiki.php coins MD5 yes ssh ssh $ ssh crocus01.coins.tsukuba.ac.jp 20 The authenticity of host crocus01. coins. tsukuba.ac.jp (130.158.86.193) can t be established. RSA key fingerprint is 2e:de:68:32:7a:86:bc:65:f5:ba:37:04:be:6f:e1:35. MD5 Are you sure you want to continue connecting (yes/no)? yes Password: crocus01:~ $ crocus01:~ $ logout Connection to crocus01 closed. $ ssh -l @ $ ssh s1411xxx@crocus01. coins. tsukuba.ac.jp 2.13 2.13.1 > < 20 imac OS X ssh MD5 ssh SHA256 URL MD5 ssh -o FingerprintHash =md5 /.ssh/known hosts

2 47 $ ls -l > file1 $ cat file1 total 9 drwxr -xr-x 2 johotaro ugrad 4096 2 15 00:10 dir1 -rw-r--r-- 1 johotaro ugrad 0 2 17 01:13 file1 -rw-r--r-- 1 johotaro ugrad 12 2 15 00:10 file2 $ ls -l file1 $ ls -l head -n 3 total 9 drwxr -xr-x 2 johotaro ugrad 4096 2 15 00:10 dir1 -rw-r--r-- 1 johotaro ugrad 0 2 17 01:13 file1 $ ls -l head -n 3 3 ls -l head -n 3 3 2.14 2.14.1 alias alias $ ls dir1 file1 file2 $ alias lls= ls -l -F $ lls total 245 drwxr -xr-x 2 johotaro ugrad 48 1 25 00:45 dir1 -rw-rw-rw- 1 johotaro ugrad 7377 1 25 00:44 file1 -rw------- 1 johotaro ugrad 239914 1 25 00:44 file2 $ alias iterm 1 iterm.bashrc.zshrc

2 48.bashrc iterm alias alias ll= ls -l alias lla= ls -al alias lat= ls -tal alias lt= ls -tl alias la= ls -A alias l= ls -CF alias u= cd.. alias uu= cd../../ alias uuu= cd../../../ 2.14.2 nkf Windows UNIX Web nkf nkf > 21 -e EUC -j JIS -s JIS -w UTF-8 -Lu (UNIX) -Lw (Windows) -Lm (Mac OS 9 Macintosh) Windows UTF-8 22 $ ls file1 $ locale LANG=" ja_jp.utf -8" LC_COLLATE =" ja_jp.utf -8" LC_CTYPE =" ja_jp.utf -8" LC_MESSAGES =" ja_jp.utf -8" LC_MONETARY =" ja_jp.utf -8" LC_NUMERIC =" ja_jp.utf -8" LC_TIME =" ja_jp.utf -8" LC_ALL= $ cat file1 e yh ]B uav @ewuaba uana v @ tv 21 22 5 1993 http://www.aozora.gr.jp/cards/000076/ card50618.html

2 49 u Ox v @ $ nkf -w file1 > file2 $ ls file1 file2 $ cat file2 $ UNIX 2.14.3 xclock xcalc 23 2.15 UNIX 2.8 man 2.8: ( ) cd chmod cp du ln ls 23

2 50 2.8: mkdir rmdir mv rm pwd tar ( ) cat more lv date cal ssh scp time xwd gnuplot tgif xpaint gimp convert, sips ( ) grep egrep head tail sort ( ) kill ps top pstree ( ) lp cancel lpstat ( ) who finger whoami ID ID id ID groups w last chgrp

2 51 2.8: arch

52 3 Emacs UNIX Linux Emacs 1 (Editor MACroS ) GNU Emacs Manuals Online 2 3 20.6 (editor) Emacs (The GNU Emacs Manual) Emacs the extensible, customizable, self-documenting, real-time display editor Emacs 4 Emacs 3.1 Emacs Emacs, Emacs. Emacs,,. 3.1.1 Emacs Emacs Meta Meta Meta Emacs MIT LISP 5 1 COINS GNU Emacs 24.3 2 http://www.gnu.org/software/emacs/manual/ 3 http://www.geocities.co.jp/siliconvalley-bay/9285/emacs-ja/emacs.html 4 Emacs 5

3 Emacs 53 3.1: Emacs C-c ctrl c M-x Meta (option ) x ESC Esc (Escape ) C-[ ESC x Esc x SPC TAB RET Space (Tab ) C-i (Return ) C-m DEL (Delete ) LISP Meta Alt ESC M-x ESC x ESC Meta 3.1.2 Emacs C-g 1 C-g 3.1.3 C-h? Emacs 6 C-g C-h m. C-h b. C-h a.. 6

3 Emacs 54 C-h c.. 3.1.4 Emacs,Emacs. Emacs Emacs Emacs, Emacs M-x help-with-tutorial Emacs Emacs,. 3.1.5 Spotlight imac C-SPC Spotlight 1. Dock 2. 3. 4. Spotlight

3 Emacs 55 3.2 3.2.1 3.1: Dock Emacs Dock Emacs Emacs 3.1 3.2 3.2: Emacs GUI Emacs emacs -nw

3 Emacs 56 -nw no-window Emacs 3.3 3.3: Emacs CUI 3.3 (title bar) *GNU Emacs* (scroll bar) 2 (mode line) (echo area) Emacs GUI (tool bar). 3.2.2 Emacs C-x C-c 3.1.1 ctrl x, ctrl c Emacs y

3 Emacs 57 3.3 Emacs 3.3.1 Emacs hello emacs Emacs hello emacs 7 at a t bou about 3.3.2 8 C-x C-f C-x C-f Find File:~/ C-x C-s 1. Emacs 2. C-x C-f 3. 4. C-x C-s 5. C-x C-c Emacs 7 M-x overwrite-mode Ovwrt M-x overwrite-mode 8

3 Emacs 58 emacs foo.txt Emacs C-x C-f foo.txt *scratch* 9 C-x C-w C-x i (completion) TAB Emacs Emacs M-x 10 11 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 3.3.3 Emacs Emacs 3.2 9 EmacsLisp 10 M-/ 11 UNIX bash Emacs TAB

3 Emacs 59 3.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 C-l 3.3.4 C-d DEL C-d about abut o C-d DEL about aout b DEL Emacs C-d DEL 1 C-k goto fail; goto fail; goto fail; g C-k

3 Emacs 60 goto fail; goto fail; C-k C-y (paste) 12 goto fail; goto fail; C-y goto fail; goto fail; goto fail; 3.3 3.3: C-d DEL C-k C-y 3.3.5 & (cut & paste) C-k C-y & & Emacs C-SPC C-@ ( (mark) ) 13 C-SPC Emacs (region) L C-SPC A LispAlien Lisp A C-w 12 Emacs (Kill) (Yank) 13 SPC 3.1.1

3 Emacs 61 (kill ring) C-y & (copy & paste) M-w C-y 1. C-SPC C-@ 2. 3. C-w M-w 4. C-y 3.4 3.4: C-SPC C-@ C-w M-w C-x C-x 3.3.6 Emacs 3.5 C-x u C- (Undo) 3.5: C-g C-x u C- 3.3.7 (search) Emacs (incremental search)

3 Emacs 62 C-s C-r C-s I- search: C-s 14 DEL RET 15 C-g C-s ( C-r ) RET I- search: Search: RET C-s ( C-r ) (replace) M-% SPC y n DEL q C-g y! 3.6 14 C-s ( C-r ) M-c case sensitive M-c 15 RET 3.1.1

3 Emacs 63 3.6: C-s C-r C-s RET C-r RET M-% M-x replace-string 3.3.8 Emacs L A TEX ( 6 ) 3.4 3.4 Tips Emacs 3.4.1 Emacs 3.4 3.7

3 Emacs 64 3.4: Emacs 3.7: 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

3 Emacs 65 C-x C-b C-x b Buffers 3.4.2 Emacs shell shell Emacs M-x shell 3.4.3 Emacs Java java-mode Java (major-mode) (minor-mode) 16 Emacs 17 / 3.8 3.8: c-mode perl-mode cperl-mode java-mode html-helper-mode whitespace-mode tex-mode C Perl Java HTML TAB Space TEX( 6 ) 3.8 16 17

3 Emacs 66 M-x [mode - name] [ ] mode enabled( disabled) Emacs 3.4.4 package.el Emacs24.3 18 Package.el Linux Emacs. M-x package-install M-x package-list-packages auto-complete 19 undo-tree 20 Emacs 3.5 Mew Mew 3.5.1 Emacs M-x mew emacs -f mew Mew Type C-uZ to collect IMAP folders! C-u Z IMAP password ( s9912345@violet -nwh. coins. tsukuba.ac.jp): Mew q 18 imac 24.3 19 Emacs 20

3 Emacs 67 3.9: 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 3.5.2 Mew Summary i SPC DEL RET - 3.9 3.5.3 Summary w Write w

3 Emacs 68 To: Subject: From: s9912345@coins. tsukuba.ac.jp Fcc: %backup X- Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 ( HANACHIRUSATO) ---- Draft Draft ---- To: TAB Subject: ---- 35 M-q (Subject:) M-> DEL.signature C-c TAB signature 4 C-c Really send this message? (y or n) C-c y C-c C-q a A Answer a a A > 21 A Subject Re: re response 21.mew.el

3 Emacs 69 a C-c C-y C-c C-y Message Emacs C-k 3.5.4 d D x D x 3.5.5 Summary g Folder name (%inbox): % TAB *Mew completions* backup RET Fcc: %backup Fcc Folder carbon copy %backup g RET Mew %inbox Mew %inbox o Folder name (% from. s9912345):% Mew %from.s9912345 RET \% from. s9912345 does not exist. Create it? (y or n) y o x

3 Emacs 70 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 To: Cc: user : to=user cc=user To: Cc: user From: user : cc=user) & from=user (to=user? from=spam * m d From: spam D x head= C-u? 3.5.6 Draft C-c C-a ------------------------------ attachments ------------------------------ Multipart/Mixed 3/ 1 Text/Plain(guess) *Cover.txt 2. --------0-1-2-3-4-5-6-7-8-9---------------------------------------------- attachments c.emacs

3 Emacs 71 ------------------------------ attachments ------------------------------ Multipart/Mixed 3/ 1 Text/Plain(guess) *Cover.txt 2 Text/Plain(guess).emacs 3. --------0-1-2-3-4-5-6-7-8-9---------------------------------------------- d Delete. emacs? (y or n) y C-b d Delete entire attachments? (y or n) n y 3/ d SPC M SPC y 3.5.7 - Summary g - Folder name (%inbox): - TAB *Mew completions* fj.mail.reader.mew RET Range (update): RET s RET SPC TAB No matching newsgroup C-g 2 Z NNTP case value ( default): RET

3 Emacs 72 Collecting newsgroup list... done. /Mail/.nntp/@orchid-news nntp.mewfolder-alist2 Summary y w Newsgroups: Subject: 35 Newsgroups: fj.comp.mobile,fj.net.phones.phs campus tsukuba (summary) C-c C-c

3 Emacs 73 coins.test a A C-u a C-u A 3.5.8 Mew Mew Info( C-h i ) Mew-J Info Mew Mew-J C-h i M-x set-languageenvironment RET Japanese RET

74 4 Web Web Firefox Thunderbird Mozilla Foundation Windows Mac OS Linux OS 4.1 Firefox Web Firefox Web World Wide Web WWW WWW Web Firefox Web 4.1.1 Dock 4.1 Firefox 4.2 4.1: Dock Firefox

第4章 ブラウザとメーラの使い方 75 図 4.2: Firefox のウィンドウ 4.1.2 ブラウジングの基本的な操作 本小節では基本的なブラウジングの操作を解説します WWW 上の Web ページの場所は URL と呼ばれる いわば地番の役割を持つ文字列で一意に定 められます 例えば筑波大学の Web サイトの URL は http://www.tsukuba.ac.jp となります URL がわかれば Web ブラウザを使ってその場所のコンテンツを得ることができます また ある Web ページに記述された別の Web ページの URL をたどることで 新しい Web ページへ移動でき ます 本節では これらの 2 つの方法で Web ページを閲覧する方法を 順を追って解説します

4 76 URL URL Firefox 1 4.2 URL 1. Delete URL 2. URL 3. return Web URL Web Web Web 4.1.3 Firefox 4.3 Web 4.3: Firefox / 4.3 Firefox 1

4 77 URL 4.3 shift 4.3 4.1.6 Firefox 2 4.3 4.4 4.4: 4.1.4 1.6.3 4.1 + 2 Web

4 78 4.1: / + / + f + r F5 + p Firefox + n Firefox + shift + w Firefox + q + d + b Esc + t + w + Alt + + Alt + 4.1.5 Firefox 4.5 URL 4.5: Firefox 4.1.6 Firefox

4 79 4.1.7 : URL Web 4.6: 4.1.8 4.7 Firefox 4.7 Cookie Web Cookie Cookie Web Web Cookie Web Cookie

4 80 4.7: 4.1.9 4.8 4 Firefox Firefox

4 81 4.8: 4.1.10 Web Web Firefox Firefox 4.9 Web

4 82 4.9: [ja] 4.2 Thunderbird Thunderbird Microsoft Windows Mail Thunderbird

4 83 4.2.1 4.2.2 COINS imac Thunderbird COINS 4.2 Thunderbird 4.2: COINS @coins.tsukuba.ac.jp IMAP POP IMAP violet-nwh.coins.tsukuba.ac.jp violet-nwe.coins.tsukuba.ac.jp Thunderbird Dock 4.10 Thunderbird

4 84 4.10: Dock Thunderbird 4.11 3 4.11: 4.12 3 2

4 85 COINS + @coins.tsukuba.ac.jp : s9912345@coins.tsukuba.ac.jp COINS 4.12: 4.13 4.2 violet-nwh.coins.tsukuba.ac.jp violet-nwe.coins.tsukuba.ac.jp POP IMAP IMAP IMAP SSL/TLS 4 SSL/TLS 4

4 86 4.13: COINS Thunderbird 4.2.3 Thunderbird 10 Thunderbird 4.2.4 Thunderbird HTML HTML HTML

4 87 4.14: HTML 4.15 4.15:

4 88 5 4.15 OK Thunderbird Thunderbird COINS COINS task 4.16 4.16: 4.17 5 XX N XX

4 89 4.17: 4.18 tulips.tsukuba.ac.jp 6 6???@tulips.tsukuba.ac.jp

4 90 4.18: 4.2.5 Thunderbird [ ] [ ] [ ] 4.19 4.3

4 91 4.19: 4.3: (NNTP) news.coins.tsukuba.ac.jp (COINS ) violet-nwe.coins.tsukuba.ac.jp COINS

4 92 4.20 OK 4.20: 4.21

4 93 4.21: 4.2.6 SquirrelMail COINS SquirrelMail https://www.coins.tsukuba.ac.jp/ webmail SquirrelMail COINS COINS

4 94 4.22: SquirrelMail SquirrelMail SquirrelMail 1. https://www.coins.tsukuba.ac.jp/webmail/ 2. 3. ASCII 4. 4.23 4.23:

95 5 Windows Linux imac COINS Windows Linux OS Windows 5.1 imac DELL Windows Windows Windows Windows 5.1.1 Windows COINS imac : s9912345 Mac Windows Windows 3C113 3C205 3C206 Windows COINS Windows 5.1.2 Windows 5.1 Windows

第5章 Windows と Linux の使い方 96 に関する操作をはじめとする各種操作の拠点となるもので 多くのアプリケーションはこの画面で 操作することになります 図 5.1: デスクトップ画面 Windows には画面が 2 種類存在し デスクトップ画面のほかに スタート画面 図 5.2 と呼 ばれるものが存在します デスクトップ画面からスタート画面に切り替える際は 画面左下隅に存 在する窓が描かれた スタートティップ と呼ばれるボタンをクリックします

5 Windows Linux 97 5.2: Windows8 WindowsVista Windows7 UI

5 Windows Linux 98 5.3: 5.1.3 Windows Windows8.1 5.4

5 Windows Linux 99 5.4: 5.5

第5章 Windows と Linux の使い方 100 図 5.5: チャームバー また スタートティップを右クリックして表示されるメニュー1 から シャットダウンまたはサ インアウト を選ぶことで両方の操作を選択して行えます 5.2 デスクトップ ユーザーインターフェース デスクトップ UI とモダン ユーザーインターフェース モダン UI Windows でソフトウェアを利用する際は ディスプレイに表示されるグラフィカルユーザーイ ンターフェース GUI で操作することが多くなります Windows8.1 では後述する ウィンドウ と呼ばれる領域を扱う デスクトップユーザーインターフェース デスクトップ UI 図 5.6a タイル と呼ばれるパネルを利用して操作を行う モダン ユーザーインターフェース モダン UI 図 5.6b の 2 種類のデザインが存在します (a) デスクトップ ユーザーインターフェース 1 このデザインのメニューをコンテキストメニューと呼びます (b) モダン ユーザーインターフェース

5 Windows Linux 101 UI Windows8 UI UI UI 5.2.1 2 5.7 5.7: UI 2

5 Windows Linux 102 3 Windows Windows 5.2.2 UI UI 5.8 5.8: 3 1

5 Windows Linux 103 Alt + F4 5.2.3 5.9

5 Windows Linux 104 5.9: Windows 5.3 UI 5.10a UI 5.10b

5 Windows Linux 105 (a) (b) 5.11 5.11:

第5章 Windows と Linux の使い方 5.3.1 モダン UI アプリケーション 106 スタート画面では メール や 天気 といったタイルをクリックすることで モダン UI アプ リケーションを起動することができます 図 5.12 モダン UI アプリケーションはデスクトップ 画面で扱ったようなウィンドウ単位では作業を行わず 基本的にはひとつのアプリで画面全体 も しくは一部を占有した形で作業を行います 図 5.12: モダン UI のアプリ例 天気 アプリ スタート画面に戻る際はマウスカーソルを左下隅へ移動させると表示されるスタートティップを クリックします モダン UI アプリケーションは一度起動すれば終了するまで常に実行され続けま す 終了 もしくは他のモダン UI アプリケーションに切り替える際はスタートティップにマウス カーソルをあわせると実行中のアプリケーションの一覧が縮小表示されるので クリックすればそ のアプリへ切り替えることができ 右クリックして 閉じる を選択すれば終了させることができ ます モダン UI アプリケーションを実行しながらデスクトップ画面を表示したり 複数のモダン UI アプリケーションを同時に表示させる場合はスタートティップにマウスカーソルをあわせ 縮小表 示されたアプリケーションをドラッグして画面の左端もしくは右端にドロップすることで画面を分 割して表示することができます 図 5.13 この表示領域は中央のバーをドラッグすることで調整 可能です

第5章 Windows と Linux の使い方 107 図 5.13: モダン UI の画面分割 分割表示を解除する場合は まず解除したいアプリケーションの上端にマウスカーソルを移動さ せ ドラッグして左端の縮小表示されていた場所へドロップします これにより片側の表示領域に アプリケーションがない状態にでき この状態で領域を分割しているバーをダブルクリックするこ とで分割表示を解除できます 5.4 チャーム デスクトップ画面とスタート画面の両方で利用できる機能に チャーム があります これは シャットダウンの方法の解説中にも利用しましたが 画面右上端もしくは右下端にマウスカーソルを 移動させることで呼び出すことができます 正しくはこの時に呼び出されるバーの部分を チャー ムバー と呼び 図 5.14 チャームバーに表示されたアイコンの部分を チャーム と呼びます

5 Windows Linux 108 5.14: Web 5.5 5.5.1 UI Windows Mac Finder UI Windows 5.15

5 Windows Linux 109 5.15: Windows explorer explorer.exe 5.5.2 Windows Mac Mac Windows Windows

5 Windows Linux 110 Windows H test H: test Windows 4 Windows.docx Microsoft Word 5 Windows.exe 6 5.5.3 Ctrl Shift 5.5.4 Windows 5.16 4 H: H 5 6.COM.BAT.CMD

5 Windows Linux 111 5.16: OSX Windows.LNK Windows 7 5.5.5 Windows 7

5 Windows Linux 112 5.5.6 / F2 5.17 5.17: 5.5.7 Mac ps kill Windows 1 Ctrl + Alt + Delete Windows8.1 5.18

5 Windows Linux 113 5.18: Windows 5.19

5 Windows Linux 114 5.19: CPU CPU

5 Windows Linux 115 PID 5.20

5 Windows Linux 116 5.20: 5.5.8 Windows Mac Windows

5 Windows Linux 117 5.6 5.6.1 COINS imac Windows COINS Windows 5.7.2 1 H H imac H COINS Mac Windows H Mac Windows / 5.6.2 imac Windows COINS WinFiles Windows Windows 5.7 Windows Windows Word Excel

5 Windows Linux 118 5.1: 3C113 abelia-pr1 3C113 abelia-pr2 3C113 borage-pr1 3C113 borage-pr1 3C113 color-c113 3C205 crocus-pr1 3C205 crocus-pr2 3C205 color-c205 3C206 dahlia-pr1 5.7.1 Windows COINS Windows Microsoft IME Input Method Editor MS-IME 8 MS-IME Space Space 5.21 Enter Shift 8 Mac /

5 Windows Linux 119 5.21: MS-IME A 5.22 5.22: MS-IME 5.8 Windows Mac/Linux Windows Mac 5.23

5 Windows Linux 120 5.23: Windows Mac/Linux Windows Mac 5.8.1 Mac Windows cmd cmd.exe Microsoft Windows [Version 6.3.9600] c 2013 Microsoft Corporation All rights reserved H: >

5 Windows Linux 121 H: dir Mac ls H: test > dir H: test 2014/03/08 13:59 <DIR >. 2014/03/08 13:59 <DIR >. 2014/03/08 13:59 0 data.txt 2014/03/08 13:58 <DIR > hello - / dir dir /? Windows /? cd Mac... cd Mac pwd H: test >cd hello H: test hello >cd H: test hello H: test hello >cd. H: test > copy UNIX cp hoge.txt H: test > copy hoge.txt. 1

5 Windows Linux 122 *? * 0? 1 copy H: test > copy *.txt. 2 txt jpg.jpg move Mac mv copy H: test > move atad.txt hello datadata.txt 1 ren rename H: test > ren data.txt dat.txt del /S /F Mac rm /Q H: test > del hello /S /Q - H: test hello datadata.txt rmdir del /S

5 Windows Linux 123 cls 5.8.2 Windows8.1 UI Windows8.1 Microsoft Microsoft Microsoft 5.24: Microsoft Microsoft Microsoft Microsoft

5 Windows Linux 124 5.25: Microsoft Microsoft Microsoft OneDrive OneDrive 3 5.9 Linux COINS PC Linux Linux 1 CentOS 5.26 Mac Linux Linux Mac Windows COINS

5 Windows Linux 125 5.26: CentOS Linux Mac 2 open Linux

126 6 L A TEX L A TEX L A TEX 6.1 L A TEX L A TEX 1 Microsoft Word Just System L A TEX L A TEX 2 MS Word L A TEX OS Windows Mac Linux OS L A TEX 6.1.1 TEX L A TEX L A TEX TEX 3 TEX L A TEX Web 1 2 3

6 L A TEX 127 TEX TEX Donald Knuth 1978 Java C 6.3 TEX ε-ptex TEX DVI Java javac TEX Knuth ε-ptex ε-uptex 4 TEX Knuth L A TEX TEX Knuth L A TEX TEX 1980 Leslie Lamport L A TEX TEX Java TEX 5 TEX L A TEX 6.1 6 L A TEX TEX DVI 6.1: TEX L A TEX Emacs L A TEX ε-ptex TEX ε-ptex TEX L A TEX 7 L A TEX L A TEX L A TEX L A TEX TEX L A TEX TEX 4 6.10 5 6 LATEX LATEX TEX 7 6 LATEX LATEX TEX

6 L A TEX 128 TEX L A TEX TEX 8 L A TEX L A TEX L A TEX TEX L A TEX2.09 L A TEX 2ε L A TEX TEX Windows 8.1 OS X 10.9 Mavericks OS L A TEX L A TEX 2ε L A TEX L A TEX 2ε 1993 L A TEX L A TEX 2ε L A TEX 2ε L A TEX L A TEX2.09 6.1.2 ε-ptex dvipdfmx TEX PDF 6.3 ε-ptex L A TEX DVI dvipdfmx DVI PDF ε-ptex Knuth TEX ptex NTS team ε-tex ε-ptex Unicode 9 Web L A TEX ε-ptex ε-ptex ε-ptex OS X platex 10 $ platex This is e-ptex, Version 3.1415926- p3.4-110825-2.6 ( utf8.euc) (TeX Live 2013) restricted \ write18 enabled. ** ε-ptex e-ptex ctrl + ε-ptex c ptex ε-ptex ptex L A TEX 6.23.1 L A TEX 8 LATEX TEX plain TEX 9 UTF-8 nkf EUC 10 OS TEX Live OS X

6 L A TEX 129 dvipdfmx dvipdfmx DVI PDF dvipdfm dvipdfmx TEX Live dvipdfm TEX Live 11 6.2 L A TEX L A TEX \ Mac \ A... \ 6.2 6.2: \ 11 dvipdfm dvipdfmx

6 L A TEX 130 option + \ 6.3 L A TEX L A TEX L A TEX DVI PDF 6.3 PS dvips ps2pdf L A TEX ε-ptex DVI dvipdfmx PDF 6.3: L A TEX L A TEX Emacs 3 ε-ptex 12 DVI dvipdfmx PDF PDF L A TEX DVI DVI PDF 6.4 L A TEX L A TEX DVI L A TEX L A TEX L A TEX DVI DVI DVI Device-Independent L A TEX DVI 12

6 L A TEX 131 6.5 Hello L A TEX! 6.1 test.tex 1 \ documentclass[a4j]{ jsarticle} 2 3 \ begin{ document} 4 Listing 6.1: Hello L A TEX! 5 % 6 % 7 \ section{ Hello \ LaTeX!} 8 \LaTeX 9 10 \ begin{ itemize} 11 \ item platex 12 \ item dvipdfmx 13 \end{ itemize} 14 15 \subsection{ } 16 17 18 \ begin{ verbatim} 19 platex -kanji=utf8 test.tex 20 dvipdfmx test.dvi 21 \end{ verbatim} 22 23 \end{ document} test.tex 13 $ platex -kanji=utf8 test.tex $ dvipdfmx test $ L A TEX 6.1 ε-ptex dvipdfmx test.pdf PDF 6.4 13 -kanji=utf8 LATEX EUC-JP euc Shift-JIS sjis

6 L A TEX 132 1 Hello L A TEX! L A TEX platex dvipdfmx 1.1 platex -kanji=utf8 test.tex dvipdfmx test.dvi 6.4: test.pdf L A TEX 6.5.1 Java javac TEX! Undefined control sequence. l.362 \ LATEX? x return TEX! Undefined control sequence. l.362 \ LATEX? x TEX!! Undefined control sequence. l.362 \LATEX 362 \LATEX L A TEX TEX

6 L A TEX 133 Wiki 14 6.6 L A TEX L A TEX PDF L A TEX 6.6.1 6.1 \ \ documentclass \section L A TEX Control Sequence, CS \ TEX L A TEX MS Word L A TEX 14 https://texwiki.texjp.org/?tex%20%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82% BB%E3%83%BC%E3%82%B8

6 L A TEX 134 6.1: \# # \$ $ \% % \& & \_ \{ { \} } \S \P \dag \ddag \copyright c \pounds \oe œ \OE Œ \ae æ \AE Æ \aa å \AA Å \o ø \O Ø?! $\sim$ -- \LaTeX L A TEX \TeX TEX --- \textasciicircum ˆ \textbar \textless < \textgreater > \textregistered R \texttrademark TM \textvisiblespace \textbackslash \ \textasciitilde L A TEX [] {} [] \ documentclass a4j jsarticle a4j 6.6.2 L A TEX 15 \begin \end 6.1 3 23 \ begin{ document}... \end{ document} {} \begin \end \begin{document} document \end{document} document 15 TEX LATEX

6 L A TEX 135 6.7 L A TEX \ documentclass 6.1 \ documentclass[a4j]{ jsarticle} 6.7.1 jsarticle jsbook 6.2: jsarticle jsbook jsarticle 6.7.2 jsarticle 6.1 a4j a4j A4 jsarticle a4paper A4 10pt b5paper B5 10pt a4j A4 11pt b5j B5 12pt

6 L A TEX 136 onecolumn twocolumn 2 oneside twoside draft final jsarticle jsclasses 16 6.8 document document document \begin{document} \end{document} 6.9 \title{ } \author{ } \and \date {2011/3/11} \date{} \date\today \maketitle 6.2 16 http://www.ctan.org/pkg/jsclasses

6 L A TEX 137 1 \ documentclass[a4j]{ jsarticle} 2 3 \title{ SKK } 4 \author{ \and Yukiyoshi KAGAKU} 5 \ date\ today 6 7 \ begin{ document} 8 10 9 \ maketitle 11 SKK 12 13 \end{ document} Listing 6.2: 6.5 SKK Yukiyoshi KAGAKU 2014 3 16 SKK 6.5: 6.10 L A TEX \part 17 \section 6.3 17 \chapter \subsection

6 L A TEX 138 6.3: \part \chapter 18 \section \subsection \ subsubsection \paragraph \ subparagraph 6.3 18 \chapter jsarticle jsbook

139 Listing 6.3: 1 \part{ } 2 3 4 \chapter{ } 5 6 7 \section{ } 8 9 10 \subsection{ } 11 12 13 \subsubsection{ } 14 15 16 \paragraph{ } 17 18 19 \ subparagraph{1-1-1} 20 6.6

6 L A TEX 140 1 1 1.1 1.1.1 1-1-1 6.6:

6 L A TEX 141 6.11 6.10 6.11.1 \textgt \textmc \textbf \emph \textbf \underline \textbf Bold \textit Italic 19 \texttt Typewriter \textsc Small Capital \textbf 19 \texttt \emph

6 L A TEX 142 6.11.2 6.4: \tiny tiny \ scriptsize scriptsize \ footnotesize footnotesize \small small \ normalsize normalsize \large \Large \LARGE \huge large Large LARGE huge \large{large text} { } {\large large text} 6.10 6.15 6.12 L A TEX TEX L A TEX 1 2

6 L A TEX 143 TEX 6.12.1 \\ 1 \\ 2 TEX 6.12.2 \newpage \clearpage \newpage \clearpage 6.13 L A TEX 3 6.13.1 itemize 1 \ begin{ itemize} 2 \item 3 \item 4 \end{ itemize}

6 L A TEX 144 6.13.2 enumerate 1 \ begin{ enumerate} 2 \item 3 \item 4 \end{ enumerate} 1. 2. 6.13.3 L A TEX description 1 \ begin{ description} 2 \item[ ] 3 4 5 \item[ ] 6 7 \end{ description} 6.14

6 L A TEX 145 6.14.1 graphicx \ documentclass \begin{documnet} 20 \usepackage[dvipdfmx]{graphicx} graphicx 21 graphicx L A TEX 21 URL graphicx \ includegraphics 6.14.2 L A TEX L A TEX L A TEX TEX PNG JPEG 22 PNG JPEG 2 TEX \ includegraphics bb extractbb bb L A TEX Web bb \ includegraphics mol 1mol 6.022 10 23 20 21 http://ctan.org/pkg/graphicx 22 EPS

6 L A TEX 146 bb extractbb extractbb PNG JPEG extractbb example.png $ extractbb example.png $ example.xbb \ includegraphics xbb xbb PNG JPEG extractbb 6.14.3 \ includegraphics 6.4 1 \ documentclass[a4j]{ jsarticle} 2 \ usepackage[ dvipdfmx]{ graphicx} 3 \ usepackage{ float} 4 5 \ begin{ document} 6 Listing 6.4: 7 \ begin{ figure}[h] 8 \ centering 9 \ includegraphics[ width=5cm]{ example -image -a.png} 10 \caption{ } 11 \ label{fig: testpicture} 12 \end{ figure} 13 14 \end{ document} 6.7

6 L A TEX 147 A 6.7: float 3 float figure figure \begin{figure}[h] [H] H float L A TEX 6.5: figure h t b p [htbp] [htbp] h TEX t float H \centering \centering

6 L A TEX 148 \includegraphics 9 [width=5cm] 5cm example-image-a.png 23 L A TEX \caption \caption \label \label 6.17 6.15 L A TEX tabular table 24 6.5 1 \ begin{ table}[h] 2 \caption{25 } 3 \ label{ table: tableexample} 4 Listing 6.5: 5 \ centering 6 \ begin{ tabular}{ r c c c c c } 7 \hline 8 & 2 & 3 & 5 & 7 & 1 \\ \hline \hline 9 1 & 2 & 3 & 5 & 7 & 1 \\ \hline 10 4 & 8 & 12 & 20 & 28 & 4 \\ \ hline 11 9 & 18 & 27 & 45 & 63 & 9 \\ \ hline 12 3 & 6 & 9 & 15 & 21 & 3 \\ \ hline 13 8 & 16 & 24 & 40 & 56 & 8 \\ \ hline 14 \end{ tabular} 15 \end{ table} 6.6 23 example-image-a.png 24 figure H float

6 L A TEX 149 6.6: 25 2 3 5 7 1 1 2 3 5 7 1 4 8 12 20 28 4 9 18 27 45 63 9 3 6 9 15 21 3 8 16 24 40 56 8 \begin{table} [H] figure 6.5 [H] table figure \caption \label 6.4 6.5 6.15.1 tabular tabular tabular L A TEX L A TEX \begin{tabular} r c c c c c r c 6.7: l c r

6 L A TEX 150 tabular & \\ \hline 6.6 1 \ begin{ table}[h] 2 \caption{ } 3 \ label{ table: multicolumn} 4 Listing 6.6: 5 \ centering 6 \ begin{ tabular}{ l c r r } 7 \hline 8 \multicolumn {4}{ c }{ } \\ \hline \hline 9 & A & B & C \\ \cline{2-3} 10 & D & E & F \\ \hline 11 & G & F & G \\ \cline{3-4} 12 & H & I & J \\ \hline 13 & \multicolumn {3}{ c }{ }\\ \hline 14 \end{ tabular} 15 \end{ table} 6.8 6.8: A B C D E F G F G H I J \ multicolumn \cline 2 3 2

6 L A TEX 151 3 \cline {} 2 3 4 5 3 4 6.16 \footnote L A TEX \footnote \TeX\footnote{Knuth } 6.8 25 TEX a a Knuth 6.8: \footnotemark footnotetext \ footnotemark \ footnotetext 1 \TeX\footnotemark 2 3 \footnotetext{knuth } \ footnotemark \ footnotetext 6.8 \footnote 6.17 L A TEX 25 a

6 L A TEX 152 L A TEX L A TEX \ref figure 6.14 \label 6.14 6.15 \ref{fig:testpicture} \ref{table:tableexample} 26 6.7 6.6 \ref \label fig: table: 6.17.1 \label \section 1 \section{ } 2 \ label{sec: reference} 1 \ref{sec:reference} 6.17.2 \footnote \label 1 \LaTeX\footnote{\label{fn:latex}Lamport }... \\ 2... \\ 3 \LaTeX \ref{fn:latex} 26 PDF hyperref hyperref https://texwiki.texjp.org/?hyperref

6 L A TEX 153 L A TEX a...... L A TEX a a Lamport 6.18 MS Word L A TEX 1 x 2 1 dx = 1 2 log x 1 x + 1 + C L A TEX L A TEX L A TEX L A TEX L A TEX L A TEX L A TEX 6.18.1 AMS-L A TEX AMS-L A TEX AMS-L A TEX American Mathematical Society 27 L A TEX amsmath American Mathematical Society amscls jsarticle 6.7 American Mathematical Society American Mathematical Society amsmath 28 L A TEX amsmath amsmath 27 http://www.ams.org/home/page 28 http://www.ctan.org/pkg/amsmath

6 L A TEX 154 amsmath graphicx 6.14 \usepackage \usepackage{amsmath} AMS-L A TEX 6.7 1 \ documentclass[a4j]{ jsarticle} 2 \ usepackage{ amsmath} 3 4 \ begin{ document} 5 6 \ begin{ align} 7 \left( 8 \ begin{ array}{ cc} 9 2 & -1\\ 10-3 & 4 \\ 11 \end{ array} 12 \right) 13 \left( 14 \ begin{ array}{c} 15 1 \\ 16 2 \\ 17 \end{ array} 18 \ right) = \ left( 19 \ begin{ array}{c} 20 0 \\ 21 5 \\ 22 \end{ array} 23 \right) 24 \end{ align} 25 26 \end{ document} 6.1 Listing 6.7: Hello AMS-L A TEX! ( 2 1 3 4 ) ( 1 2 ) = ( 0 5 ) (6.1) 2 6.18.2 29 align 29 equation equarray $$ LATEX AMS-LATEX align

6 L A TEX 155 align* \[ \] align 6.7 align 6.7 6.1 Listing 6.8: 1 \ begin{ align} 2 \ overrightarrow{dd} &= \ overrightarrow{rd} + \ left(\ vec{d} \ cdot \vec{n}\ right)\vec{n} \ label{eq: vectordd 1} \\ 3 &= \vec{d} - \ left(\ vec{d} \ cdot \vec{n}\ right)\vec{n} \ label{eq: vectordd 2} 4 \end{ align} 30 dd = ( ) rd + d n n (6.2) = d ( ) d n n (6.3) \\ TEX 6.2 6.3 = & 6.8 6.17 \ref \nonumber 1 \ begin{ align} 2 \ left(\ lambda r.r\ right)\ left(\ lambda x.\ lambda y.x~y\ right) & \rightarrow_{\eta} 3 \ left(\ lambda r.r\ right)\ left(\ lambda x.x\ right)\ nonumber \\ 4 & \rightarrow_{\beta} \lambda x.x 5 \end{ align} 30 6.2 6.1 1

6 L A TEX 156 (λr.r) (λx.λy.x y) η (λr.r) (λx.x) β λx.x (6.4) align* align align align* \label align 1 \begin{align*} 2 \tau &::= \alpha\, \, int\, \, bool\, \, \tau_1 \rightarrow \tau_2 \\ 3 \sigma &::= \tau\, \, \forall \alpha. \sigma 4 \end{ align*} τ ::= α int bool τ 1 τ 2 σ ::= τ α.σ 1 \[ \[ \] \[ \] align align* \\ 2 Fun\ left(x, \ protect\ underbrace{let% 3 \ left(f, \ protect\ overbrace{fun\ left(y, x\ right)}^{\ forall\ alpha_2.\ alpha_2 \ rightarrow \ alpha_1}, f\ right)}_% 4 {\ forall\ alpha_2.\ alpha_2 \ rightarrow \ alpha_1}\ right) 5 : \ forall\ alpha_2.\ alpha_1 \ rightarrow \ left(\ alpha_2 \ rightarrow \alpha_1\right) 6 \] α 2.α 2 α 1 F un { }} { x, Let f, F un (y, x), f : α 2.α 1 (α 2 α 1 ) } {{ } α 2.α 2 α 1

6 L A TEX 157 L A TEX 6.18.3 6.18.2 $ $X_k\left(k = 0, 1, \dots, N - 1\right)$ $X_k = \sum^{n-1}_{n=0}x_n\mathrm{e}^{-i\frac{2\pi kn}{n}}$ $\mathcal{o}\left(n^2\right)$ X k (k = 0, 1,..., N 1) X k = N 1 n=0 x ne O ( N 2) $ 2πkn i N 6.19 L A TEX listings 31 6.19.1 listings graphicx 6.14 \usepackage \usepackage{listings} 6.19.2 listings \ lstdefinestyle \lstset 31 http://www.ctan.org/pkg/listings

6 L A TEX 158 Java C Java C \ lstdefinestyle 1 \ lstdefinestyle{ java}{ 2 language=java, 3 morekeywords ={ lambda} 4 } 5 6 \ lstdefinestyle{c}{ 7 language=c, 8 numbers=left 9 } java c \lstset 32 Listing 6.9: listings 1 \ definecolor{ solarized@base 03}{ HTML}{002B36} 2 \ definecolor{ solarized@base 02}{ HTML}{073642} 3 \ definecolor{ solarized@base 01}{ HTML}{586e75} 4 \ definecolor{ solarized@base 00}{ HTML}{657b83} 5 \ definecolor{ solarized@base 0}{ HTML}{839496} 6 \ definecolor{ solarized@base 1}{ HTML}{93a1a1} 7 \ definecolor{ solarized@base 2}{ HTML}{ EEE8D5} 8 \ definecolor{ solarized@base 3}{ HTML}{ FDF6E3} 9 \ definecolor{ solarized@yellow}{ HTML}{B58900} 10 \ definecolor{ solarized@orange}{ HTML}{ CB4B16} 11 \ definecolor{ solarized@red}{ HTML}{ DC322F} 12 \ definecolor{ solarized@magenta}{ HTML}{D33682} 13 \ definecolor{ solarized@violet}{ HTML}{6C71C4} 14 \ definecolor{ solarized@blue}{ HTML}{268BD2} 15 \ definecolor{ solarized@cyan}{ HTML}{2AA198} 16 \ definecolor{ solarized@green}{ HTML}{859900} 17 18 \lstset{ 19 basicstyle =\ small\ ttfamily\ color{ solarized@base 00}, 20 rulesepcolor =\ color{ solarized@base 03}, 21 numberstyle =\ scriptsize\ color{ solarized@base 01}, 22 keywordstyle =\ color{ solarized@blue}, 23 stringstyle =\ color{ solarized@cyan}\ ttfamily, 32 color http://www.ctan.org/pkg/color

6 L A TEX 159 24 commentstyle =\ color{ solarized@base 01}, 25 emphstyle =\ color{ solarized@red}, 26 backgroundcolor =\ color{ solarized@base 3}, 27 sensitive=true, 28 breaklines=true, 29 breakatwhitespace=true, 30 framerule =0pt, 31 frame=l 32 showstringspaces=false, 33 tabsize=2, 34 basewidth ={0.57em, 0.52em}, 35 } \ lstdefinestyle \lstset 31 language 33 style \ lstdefinestyle basicstyle keywordstyle breaklines breaklines=true listings numbers none left right firstnumber auto frame tbrl tabsize xleftmargin, xrightmargin 6.19.3 listings listings 3 33 listings 31

6 L A TEX 160 L A TEX lstlisting \ lstinputlisting \lstinline lstlisting L A TEX lstlisting 1 \ begin{ lstlisting}[ language=java, numbers=left] 2 public class HelloWorld { 3 public static void main ( String[] args) { 4 System.out. println(" Hello World!!"); 5 } 6 } 7 \end{ lstlisting} 6.9 1 public class HelloWorld { 2 public static void main ( String[] args) { 3 System.out. println(" Hello World!!"); 4 } 5 } \lstinputlisting \ lstinputlisting \ lstinputlisting[ style=java]{ src/ example. java} [style=java] \ lstdefinestyle 6.19.2 src/example.java \lstinline 1 \lstinline[language=java] x 2 \lstinline[language=java] int

6 L A TEX 161 x int listings 6.20 BibTEX 6.20.1 BibTEX BibTEX 34 BibTEX 6.10 L A TEX [ 6 ] L A TEX 2ε Listing 6.10: nobib.tex 1 \ documentclass[a4j]{ jsarticle} 2 \ begin{ document} 3 \cite{ _ 201310} 4 \ begin{ thebibliography}{10} 5 \bibitem{ 201310},.[ 6 ]\LaTeXe., 6, 102013. 6 \end{ thebibliography} 7 \end{ document} $ platex -kanji=utf -8 nobib.tex $ platex -kanji=utf -8 nobib.tex $ dvipdfmx nobib $ 2 platex 1 \cite 2 PDF 34 http://ctan.org/pkg/bibtex

6 L A TEX 162 6.9: nobib.pdf [1] [1],. [ 6 ] L A TEX 2ε., 6,10 2013. thebibliography 6.10 4 6 thebibliography \begin{ thebibliography }{LONGEST LABEL} \end{ thebibliography } \bibitem[label]{key} ENTRY LABEL 6.10 [1] [2] [3]...... 1 KEY 6.10 \cite ENTRY 6.10 L A TEX LONGEST-LABEL LABEL 6.10 LABEL 2 22 00 72 2 2 LABEL changed label \bibitem[ changed label ]{ }...... 15 2 12 1 123456789012345 15

6 L A TEX 163 \cite \cite 6.10 201310 \label \ref 6.17 6.20.2 BibTEX thebibliography L A TEX BibTEX BibTEX BibTEX L A TEX L A TEX 6.20.3 Web BibTEX Web TEX Wiki BibTEX 35 CiNii 36 Web BibTEX [ 6 ] L A TEX 2ε BibTEX 37 BibTEX Listing 6.11: bibunsho.bib 1 @BOOK{ _ 201310, 2 title={[ 6 ] LaTeX2 }, 3 author={ and }, 4 publisher={ }, 5 year ={2013}, 6 month ={10}, 7 edition={ 6}, 8 isbn ={9784774160450}, 9 url={ http:// amazon.co.jp/o/ ASIN/4774160458/}, 10 price={ 3,360}, 11 totalpages ={432}, 12 timestamp ={2014.03.13}, 13 } 35 https://texwiki.texjp.org/?bibtex%e9%96%a2%e9%80%a3%e3%83%84%e3%83%bc%e3%83%ab 36 http://ci.nii.ac.jp/ 37 Lead2Amazon http://lead.to/amazon/jp/

6 L A TEX 164 bibunsho.bib 6.20.4 L A TEX BibTEX L A TEX 6.12 1 \ documentclass[a4j]{ jsarticle} 2 3 \ bibliographystyle{ junsrt} 4 5 \ begin{ document} 6 Listing 6.12: bibunsho.tex 7 \cite{ _ 201310 } 8 9 \ bibliography{ bibunsho} 10 \end{ document} 6.12 \ bibliographystyle \cite \ bibliography 3 \bibliographystyle 38 6.9 6.9: jplain jalpha jabbrv junsrt \cite 6.12 201310 BibTEX bibunsho.bib 6.11 1 38 BibTEX TEX http://tug.ctan.org/info/bibtex/ tamethebeast/ttb_en.pdf

6 L A TEX 165 \bibliography \ bibliography 6.12 \ bibliography bibunsho BibTEX bibunsho.bib bibunsho 6.20.5 BibTEX L A TEX BibTEX bibunsho.tex $ platex -kanji=utf8 bibunsho.tex $ pbibtex -kanji=utf8 bibunsho $ platex -kanji=utf8 bibunsho.tex $ dvipdfmx bibunsho $ pbibtex BibTEX thebibliography platex 2 [1] [1],. [ 6 ] L A TEX 2ε., 6,10 2013. 6.21 geometry 39 1 \ usepackage{ geometry} 2 \ geometry{ left =25mm, right =25mm, top=30mm, bottom =30mm} 25mm 30mm geometry 39 URL 39 http://www.ctan.org/pkg/geometry

6 L A TEX 166 6.22 \section 6.10 \ tableofcontents 6.23 TEX TEX 6.23.1 L A TEX L A TEX Mac Windows Linux OS L A TEX TEX Live L A TEX Windows http://www.tug.org/texlive/acquire-netinstall.html install-tl.exe EXE Mac http://tug.org/mactex/ MacTeX.pkg pkg Linux texlive Ubuntu sudo apt-get install texlive-full TEX Live 6.14 graphicx TEX Live TEX Live 6.23.2 ε-ptex TEX TEX 6.10 ε-ptex ptex ε-tex Web

6 L A TEX 167 ptex uptex TEX ε-ptex ε-uptex ε-tex X TEX E pdftex LuaTEX 6.10: TEX ε-uptex ε-ptex ε-uptex 40 Unicode pdftex TEX pdftex 41 DVI PDF DVI dvipdfmx PDF pdftex ε-ptex L A TEX pdftex ε-ptex X TEX E X TEX E TEX X TEX E 40 http://sourceforge.jp/projects/eptex/ 41 http://ctan.org/pkg/pdftex

6 L A TEX 168 LuaTEX pdftex LuaTEX 42 LuaTEX L A TEX Lua 43 Lua X TEX E LuaTEX-ja 44 ε-ptex LuaTEX 6.23.3 ConTEXt L A TEX TEX ConTEXt 45 L A TEX L A TEX Listing 6.13: ConTEXt 46 1 \ setuphead[ title][ style ={\ ss\bfd}, 2 before ={\ begingroup}, 3 after={ John Doe, the author\ smallskip% 4 \ currentdate\ bigskip\ endgroup}] 5 6 \ starttext 7 8 \ title{\ CONTEXT} 9 10 \ section{ Text} 11 \ CONTEXT\ is a document preparation system for the 12 \TEX\ typesetting program. It offers programmable 13 desktop publishing features and extensive 14 facilities for automating most aspects of 15 typesetting and desktop publishing, including 16 numbering and cross - referencing (for example to 17 equation \in[eqn:famous -emc]), tables and figures, 18 page layout, bibliographies, and much more. 19 20 It was originally written around 1990 by Hans 21 Hagen. It could be an alternative or complement 22 to \ LATEX. 23 24 \ section{ Maths} 25 With \ CONTEXT\ we could write maths. Equations 26 can be automatically numbered. 27 28 \ placeformula[eqn:famous -emc] 29 \ startformula 42 http://ctan.org/pkg/luatex 43 44 http://sourceforge.jp/projects/luatex-ja/ 45 http://wiki.contextgarden.net/

6 L A TEX 169 30 E = mc^2 31 \ stopformula 32 with 33 \ placeformula[eqn:def -m] 34 \ startformula 35 m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} 36 \ stopformula 37 38 \ stoptext 6.23.4 TikZ TikZ 47 PGF TEX TikZ 6.3 6.1 TikZ 6.3 1 \ begin{ tikzpicture}[ scale =1.5, 2 block/. style = { rectangle, draw=black, thick, text width=6em, align=center, rounded corners, minimum height =2em}, 3 textblock/. style = { rectangle, text width=6em, align=center, minimum height =2em}] 4 5 \draw (-1, -1) node[block] (A) { }; 6 \draw (2, -1) node[block] (B) {DVI }; 7 8 \draw[->, very thick, blue] (A) -- (B); 9 \ draw (0.5, -1.2) node (Bd) {\ eptex}; 10 11 \draw (5, -1) node[block] (C) {PDF }; 12 \draw (5, 0.2) node[block] (D) {PS }; 13 14 \draw[->, very thick, blue] (B) -- (C); 15 \ draw (3.5, -1.2) node (Cd) {\ dvipdfmx}; 16 17 \draw[->, very thick, blue] (B) -- (D); 18 \ draw (3.25, -0.3) node (Dd) {\ texttt{ dvips}}; 19 20 \draw[->, very thick, blue] (D) -- (C); 21 \ draw (5.45, -0.4) node (Dd) {\ texttt{ ps2pdf}}; 22 \end{ tikzpicture} TikZ TikZ TEXample.net 48 48 46 http://en.wikipedia.org/wiki/context#example_of_code 47 http://www.ctan.org/pkg/pgf 48 http://www.texample.net/tikz/examples/

6 L A TEX 170 Bθ Sm Br Nm Bθ Br Schematic Earth dipolar magnetic field. The field lines placed in the page plane are drawn as thick lines, those back with dashed lines and the field lines in front of the page with thin lines. 6.11: http://www.texample.net/tikz/ examples/dipolar-magnetic-field/ 6.13: http://www.texample.net/tikz/ examples/membrane-surface/ F2 P1 2 2 F1 s 3 replacement of the capacity by two places s s P P2 2 2 6.12: http://www.texample.net/tikz/ examples/nodetutorial/ 6.14: http://www.texample.net/tikz/ examples/dandelin-spheres/ TikZ Illustrator TEX - L A TEX Stack Exchange 49 Web 50 TikZ TEXample.net 49 http://tex.stackexchange.com/ 50 Nice scientific pictures show off http://tex.stackexchange.com/questions/158668/ nice-scientific-pictures-show-off

171 [1],. [ 6 ] L A TEX 2ε., 6, 10 2013. [2]. L A TEX 2ε &., 8 2002. [3] TEX Wiki. http://oku.edu.mie-u.ac.jp/~okumura/texwiki/. Accessed: 2014-03-14. [4] TEX - L A TEX Stack Exchange. http://tex.stackexchange.com/. Accessed: 2014-03-14. [5]. http://d.hatena.ne.jp/zrbabbler/. Accessed: 2014-03-14. [6] LuaTEX-ja. http://sourceforge.jp/projects/luatex-ja/. Accessed: 2014-03-14. [7] TEX by Topic. http://www.ctan.org/pkg/texbytopic. Accessed: 2014-03-14. [8] Tame the BeaST. http://tug.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf. Accessed: 2014-03-14.

172 7 COINS Java C C++ FORTRAN MATLAB 7.1 CPU C CPU Compiler Interpreter Source File Execution File Source Code Compile 7.2 Java A,B 2013 C Java Java Java (Object Oriented Language) Java Java Java Mac, Windows, Linux 1 Java 1 Android Java

7 173 Web 7.2.1 Java Java.java MyTest MyTest.java Hello, Java World! Listing 7.1: MyTest.java 1 public class MyTest { 2 public static void main( String args[]) { 3 System.out. println("hello, Java world!"); 4 } 5 } javac $ javac MyTest. java MyTest.class (Class File) Java Java Runtime Environment JRE Java java main MyTest $ java MyTest Hello, Java world! $ 7.2.2 Java Java Web HTML Hello, Java World Java 1 import java. applet. Applet; Listing 7.2: MyTestApl.java

7 174 2 import java.awt. Graphics; 3 4 public class MyTestApl extends Applet { 5 public void init() { 6 resize(150,30); 7 } 8 public void paint( Graphics g) { 9 g. drawstring("hello, Java world!",50,25); 10 } 11 } javac $ javac MyTestApl. java HTML Listing 7.3: MyTestApl.html 1 <html> 2 <head> 3 <title>mytestapl Applet </ title> 4 </ head> 5 <body> 6 MyTestApl Applet 7 <hr> 8 <applet code=" MyTestApl. class" width =150 height =30></ applet > 9 <hr> 10 <a href=" MyTestApl. java">source </a> 11 </ body> 12 </ html> appletviewer 7.1 $ appletviewer MyApplet. html 7.1: Java

7 175 7.3 C C C 7.3.1 C C C Compiler C C C.c sample.c Emacs vi Hello, C world! test.c 1 # include <stdio.h> 2 3 int main() 4 { 5 printf("hello, C world!\n"); 6 return 0; 7 } Listing 7.4: test.c \ ASCII 0x5C 2 + gcc gcc GNU Compiler Collection gcc 3 gcc Free Software Foundation gcc test.c $ gcc test.c a.out $./a.out Hello, C world! $ 2 Shift JIS, EUC-JP UTF-* 3 OS X GNU Compiler Collection LLVM

7 176 Hello, C world! gcc a.out gcc -o hello $ gcc -o hello test.c 7.3.2 printf printf stdio.h (Header File) (Library File) (Link) 7.3.10 man man ( ) sqrt man

7 177 sqrt man SQRT(3) BSD Library Functions Manual SQRT(3) NAME sqrt -- square root function SYNOPSIS #include <math.h> double sqrt(double x); long double sqrtl(long double x); float sqrtf(float x); DESCRIPTION The sqrt() function compute the non-negative square root of x. SPECIAL VALUES sqrt(-0) returns -0. sqrt(x) returns a NaN and generates a domain error for x < 0. SEE ALSO math(3) STANDARDS The sqrt() function conforms to ISO/IEC 9899:1999(E). BSD December 11, 2006 BSD 7.3.3 man gcc C

7 178 B.W. /D.M. C 2 ANSI 7.3.4 7.3.5 printf C Debug printf printf #ifdef #ifdef 1 # include <stdio.h> 2 3 int main() 4 { 5 printf("hello, C world!\n"); 6 # ifdef DEBUG 7 printf(" This is debug.\n"); 8 #endif 9 return 0; 10 } Listing 7.5: test debug.c test debug.c test.c 6 8 #ifdef #ifdef ( ) #endif ( ) #define -D( ) $ gcc -o test\_debug test\_debug.c -DDEBUG $./test\_debug Hello, C world! This is debug. $ gcc -o test\_debug test\_debug.c $./test\_debug

7 179 Hello, C world! 7.3.6 (Debugger) 2 printf 1 gdb GNU 1 # include <stdio.h> 2 3 int mymod(int i, int j) { 4 while(i >= j) 5 i -= j; 6 return i; 7 } 8 Listing 7.6: test gdb.c 9 int main() { 10 int x = 20,y = 3; 11 printf("%d (mod %d) = %d\n",x,y, mymod(x,y)); 12 return 0; 13 } gcc -g $ gcc -o test_gdb test_gdb.c -g gdb gdb gdb $ gdb test_gdb

7 180 gdb $ gdb test gdb GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009) Copyright 2004 Free Software Foundation, Inc. ( ) (gdb) break break break ( ):( or ) (gdb) break mymod Breakpoint 1 at 0x100000e96: file test_gdb.c, line 4. run run (gdb) run Starting program: / home/ gikan/ tebiki/ tebiki01/ compiler/ test_gdb Breakpoint 1, mymod (i=20, j=3) at test_gdb.c:4 4 while(i >= j) gdb print i (gdb) print i $1 = 20 ( ) = ( ) 1 next 1 next gdb

7 181 clear clear break continue quit gdb man gdb help 7.3.7 gcc -c gcc 2 1 extern void myfunc(); 2 int main() { 3 myfunc("hello, make world.\n"); 4 return 0; 5 } Listing 7.7: test main.c 1 # include <stdio.h> 2 # include <string.h> 3 Listing 7.8: test main.c 4 void myfunc( char *s) { 5 printf("(%d) %s",(int)strlen(s),s); 6 } $ gcc -c test_main.c $ gcc -c test_lib.c -o test

7 182 $ gcc -o test test\_main.o test\_lib.o $./test} (19) Hello, make world. 7.3.8 make make make Makefile Makefile Makefile CC = gcc SRC = test_main.c test_lib.c OBJ = test_main.o test_lib.o TARGET = test $(TARGET): $(OBJ) $(CC) -o $(TARGET) $(OBJ) make Makefile make $ make gcc -o test test_main.o test_lib.o $./test (19) Hello, make world. 7.3.9 Optimization -O -O1, -O2, -O3 -O2 $ gcc -O2 -o test test.c

7 183 7.3.10 (Library) libm.a math.h sqrt 1 # include <stdio.h> 2 # include <math.h> 3 int main() { 4 double x = 2.0; 5 double y = sqrt(x); 6 printf("%f\n",y); 7 return 0; 8 } Listing 7.9: test math.c libm.a -l lib.a libm.a -lm $ gcc test_math.c -lm /lib /usr/lib gcc 2 -L 7.4 C++ C++ 7.4.1 C++ C++.c++.cc.cpp.c C.c C gcc C++ g++ C C++ gcc g++ test.cpp

7 184 1 # include <iostream > 2 Listing 7.10: test.cpp 3 int main() { 4 std:: cout << "Hello, C++ world!" << std:: endl; 5 return 0; 6 } $ g++ test.cpp $./a.out Hello, C++ world! a.out C -o C gdb C 7.4.2 man g++ C++ B. C++ 3 M. A. B. C++ 7.5 FORTRAN FORTRAN 7.5.1 FORTRAN95 viola FORTRAN GNU FORTRAN95 gfortran GNU FORTRAN Free Software Foundation viola GNU FORTRAN viola01 viola06 SSH SSH 9.1 FORTRAN.f.F test.f

7 185 1 PROGRAM TEST 2 REAL X,Y 3 X = 3.0 4 Y = SQRT(X) 5 WRITE(*,*) Y 6 END Listing 7.11: test.f $ gfortran test.f a.out C C++ -o 7.5.2 man gfortran FORTRAN 7.6 MATLAB MATLAB MathWorks C C++ Java 4 MATLAB Engine C C++ MATLAB MATLAB Windows MacOSX Linux ios Android OS Windows 7.6.1 MATLAB GUI MATLAB 4

7 186 7.2: MATLAB MATLAB GUI Simulink MathWork GUI 7.6.2 MATLAB a=10 Enter a = 10 MATLAB int float a, ; 2 2 ; ; A=[10,10;20,20];

7 187 ; A A A = 10 10 20 20 7.3: MATLAB A*[1;2] ans = 30 60 C C++ for MATLAB *

7 188 a A ans ans ans Answer=A*[1;2]; MATLAB MATLAB 7.6.3 MATLAB MATLAB.m edit filename.m 2 function[ value]=twice( Parameter) value =2* Parameter; endfunction 1 value twice Parameter, 3 x=twice(a) x = 20.m filename2.m % filename2.m a=10;

7 189 A=[10,10;20,20]; A*[1;2] Answer=A*[1;2]; 1 MATLAB % filename2.m 7.6.4 MATLAB MATLAB MathWorks MATLAB http://www.mathworks.co.jp/jp/help/matlab/functionlist.html MATLAB engine http://www.mathworks.co.jp/jp/help/matlab/ calling-matlab-engine-from-c-c-and-fortran-programs.html MATLAB MATLAB GNU Octave (https://www.gnu.org/software/octave/) GUI MATLAB C C MATLAB Octave

190 第8章 VMware Fusion ディスク容量に関する注意 本章で説明する操作の一部は 大量のディスク容量を要求します 各個人に割り当てられた ディスクの容量の割り当て quota が不足した場合 メールが受信できなくなったりログイ ンできなくなったりする場合があります このような問題を回避するために 10.10 節を参考 に quota の上限の引き上げの申請を行ってください 本章では仮想計算機の概要と 仮想化ソフトウェアのひとつである VMware Fusion の使い方を 説明します 使い方の具体的な例として imac 上に仮想計算機を作成し Linux ディストリビュー ションのひとつである CentOS をインストールします 8.1 仮想計算機の概要 仮想計算機 Virtual Machine とは 普段私たちが利用している計算機の上で あたかも複数 の計算機が動作しているかのような環境を作ることができる仕組みです 仮想計算機を利用するこ とで 例えば計算機室の imac の上で 図 8.1 のようにあたかも Mac のアプリケーションのひとつ であるかのように Windows や Linux といった他の OS を起動して 利用できるようになります 図 8.1: 仮想計算機の使用例

8 VMware Fusion 191 Host Machine Guest Machine OS OS Host OS OS OS Guest OS OS X Windows Linux OS OS Windows Linux FreeBSD OpenSolaris Plan 9 OS OS OS OS 8.2 OS VMware Fusion OS Linux CentOS 1. OS 2. 3. OS 8.2.1 OS OS Windows Linux OS CentOS http://www.centos.org/download/

8 VMware Fusion 192 8.2.2 VMware Fusion 8.2 8.3 8.2: VMware Fusion

8 VMware Fusion 193 8.3: VMware Fusion 8.3 8.4 OS

8 VMware Fusion 194 8.4: CentOS 8.5 VMware Fusion OS

8 VMware Fusion 195 8.5: OS 8.6 8.7 8.8

8 VMware Fusion 196 8.6: 8.7:

8 VMware Fusion 197 8.8: OS CPU 1 1024MB 1 OS 1 quota

8 VMware Fusion 198 OS OS VMware Fusion 8.9 OS 8.9: OS 8.3 OS OS VMware Fusion 8.3.1 VMware Fusion 8.10 OS

8 VMware Fusion 199 8.10: Windows Linux shutdown -h now OS OS 2 8.3.2 OS ctrl + 8.3.3 Snapshot 2 OS

8 VMware Fusion 200 OS OK 8.4 VMware Fusion VMware Fusion OS OS OS CD/DVD OS 8.4.1 OS 8.11 + OS OS OS 8.11:

8 VMware Fusion 201 8.4.2 OS CD/DVD CD-ROM CD/DVD 8.4.3 VMware OS VMware OS Linux Linux vmlinux Linux Kernel hacking -> Compile the kernel with debug info vmlinux vmlinux VMware VMware.vmx debugstub.listen.guest32 = "TRUE" netstat 8832

8 VMware Fusion 202 $ gdb (gdb) file /path/to/your/vmlinux (gdb) target remote localhost:8832 gdb OS continue 8.5 8.5.1 ctrl + 8.5.2 OS Ctrl+Alt+Del Ctrl+Alt+Del OS

203 9 9.1 COINS imac 9.1.1 COINS 9.1: abelia01 abelia50 imac 3C113 borage01 borage50 imac 3C113 crocus01 crocus40 imac 3C205 pentas-compa pentas-compf viola01 viola06 violet-nwa violet-nwk https (nwa) (nwe) (nwh) www WWW HP COINS,, abelia15 imac abelia15.coins.tsukuba.ac.jp 1 9.1.2 imac, 1 FQDN, Full Qualified Domain Name

9 204, 2 SSH Secure SHell, imac, pentas SSH COINS Windows, MacOS/Linux COINS Windows SSH Windows SSH, Windows SSH COINS Windows Tera Term 3 Windows SSH PuTTY 4 Poderosa 5 Tera Term Tera Term Tera Term 9.1 Tera Term: SSH N COINS [ ] IP [ ] SSH, [TCP ] 22, [SSH ] SSH2 9.2 OK, 9.3, viola02.coins.tsukuba.ac.jp COINS, 6, 2 3 http://sourceforge.jp/projects/ttssh2/ 4 PuTTY: A Free Telnet/SSH Client, http://www.chiark.greenend.org.uk/~sgtatham/putty/ 5 http://ja.poderosa.org/ 6

9 205 9.1: Tera Term,,, abelia imac, 7 crocus10:~ s9991399$ ssh-keygen -l -f /etc/ssh_host_rsa_key.pub 2048 8a:cb:69:57:b0:fa:fc:70:e7:55:2e:b4:06:3d:f9:63 (RSA),, known hosts,, 8,, [ known hosts ] /, 9.4, [ ] COINS, [ ], [RSA/DSA ] [ ] OK, 7 2014 3, 8,,

9 206 9.2: COINS COINS imac Tera Term,, 9.5 Mac/Linux SSH Windows OS X Linux SSH Mac iterm X11, Linux, s9912345 2.12.1 [coins - tarou@mypc ~]$ ssh crocus15.coins.tsukuba.ac.jp -l s9912345 -o FingerprintHash=md5 The authenticity of host crocus15. coins. tsukuba.ac.jp (130.158.86.213) can t be established. RSA key fingerprint is MD5:ea:40:99: be:63: f3:c7:16: b5:3f:fa:3a:19:05: b6:14. Are you sure you want to continue connecting (yes/no)? password: Last login: Thu Feb 16 04:15:00 2014 from

9 207 9.3: 9.4: [ s9912345@crocus15 ~]$ COINS -l COINS COINS 9.1.3 Linux Server/ imac pentas, imac OS CentOS SSH VPN, imac, 9 9.2 LAN COINS, LAN,, COINS 9 http://www.coins.tsukuba.ac.jp/ce/

9 208 9.5: Tera Term 9.2.1 LAN COINS LAN, 3 A,C 3 LAN, COINS 9.2.2 LAN IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, IEEE 802.11n LAN,,, IEEE 802.1X, OS Windows WindowsXP OS X 9.2.3 LAN LAN,, LAN, SSH, VPN

9 209 9.2.4 LAN LAN COINS Web 10 LAN 9.2.5 MacOS LAN Windows LAN MacOS X LAN 9.6 LAN 9.7 WI-FI + WI-Fi 9.6: 9.7: WI-FI 9.8 WI-Fi + 9.9 AP-C113AN AP-C113AN WPA2 9.9 COINS COINS 9.10 10 http://www.coins.tsukuba.ac.jp/ce/

9 210 9.8: 9.9: WPA2 9.10:

9 211 9.3 VPN COINS COINS VPN VPN Virtual Private Network COINS VPN COINS LAN Web, VPN VPN PPTP L2TP/IPsec, SoftEther Protocol, SOCKS COINS PPTP VPN COINS VPN, COINS CiNii https://ci.nii.ac.jp Web VPN 9.3.1 VPN COINS VPN PPTP, PPTP Windows NT4.0, XP, Vista, 7, 8, 8.1 OS X Linux PPTP 9.3.2 Windows VPN Windows VPN Windows Vista 9.2: VPN vpn.coins.tsukuba.ac.jp COINS COINS MS-CHAPv2 MPPE-128 Windows Vista VPN, 9.11,, 9.12 VPN

9 212 9.11: 9.13 VPN 9.2 COINS COINS VPN VPN COINS 9.14, COINS COINS VPN PPTP VPN NAT,

9 213 9.12:, coins-admin@coins.tsukuba.ac.jp, 9.15 VPN, COINS COINS VPN 128bit, COINS VPN Windows PPTP, VPN WAN COINS VPN, COINS Web

9 214 9.13: IP, http://taruo.net/e/ VPN Web, VPN,, COINS VPN,, 4 TCP/IPv4, 9.16,

9 215 9.14: VPN 9.15: VPN 9.16:

9 216 9.3.3 Linux VPN VPN Linux root # pptpsetup -- create coins_tunnel --server vpn. coins. tsukuba.ac.jp -- username s1511xxx -- password your\_password -- encrypt # pon coins_tunnel # ip route add default dev ppp0 coins tunnel s1511xxx your password ppp0 # ip addr show 1: lo: <LOOPBACK,UP, LOWER_UP > mtu 65536 qdisc noqueue state UNKNOWN group default link/ loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth1: <NO- CARRIER, BROADCAST, MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 link/ ether 3c:97:0e:85:86:1a brd ff:ff:ff:ff:ff:ff 3: wlp3s0: <BROADCAST, MULTICAST,UP, LOWER_UP > mtu 1500 qdisc mq state UP group default qlen 1000 : : : 4: ppp0: <POINTOPOINT, MULTICAST,NOARP,UP, LOWER_UP > mtu 1496 qdisc fq_codel state UNKNOWN group default qlen 3 link/ppp inet 130.158.87.163 peer 130.158.87.160/32 scope global ppp0 valid_lft forever preferred_lft forever ppp0 VPN ppp0 ip route add default... # ip route del default 130.158.x.x IP # ip route add 130.158.0.0/16 dev ppp0 pentas-compa ssh

9 217 9.3.4 OS X VPN VPN OS X 9.17 Wi-Fi VPN + 9.18 VPN VPN PPTP VPN 9.17: 9.18: VPN VPN 9.19 COINS-VPN 9.20 vpn.coins.tsukuba.ac.jp VPN 9.21 9.22

9 218 9.19: VPN 9.20: VPN 9.21: 9.22: VPN MTU; Maximum Transmission Unit MTU $ sudo ifconfig ppp0 mtu 1300 9.4 pentas-fs.coins.tsukuba.ac.jp imac samba

9 219 VPN 9.4.1 Mac Mac Finder.. 9.23: smb://pentas-fs.coins.tsukuba.ac.jp smb://130.158.87.15 home 9.4.2 Linux Linux samba sshfs ssh COINS VPN root $ sshfs s1211402@abelia01. coins. tsukuba.ac.jp:. /mnt Password:

9 220 9.24: ssh RSA /mnt nonempty $ sshfs s1211402@abelia01. coins. tsukuba.ac.jp:. /mnt -o nonempty root umount /mnt $ fusermount -u /mnt

9 221 9.25:

222 10 10.1 \ Option \ 6.2 10.2 3 1 + alt + esc 10.1

10 223 10.1: 2 10.2 Mac Dock

10 224 10.2: Dock 3 ps kill kill Firefox kill $ ps aux grep firefox tebiki01 839 0.0 1.8 632144 75172?? S 5:36PM 0:15.93 /Applications/Firefox.app/Contents/MacOS/firefox-bin -psn_0_249917 tebiki01 896 0.0 0.0 2425708 284 s002 R+ 5:41PM 0:00.00 grep firefox $ kill 839 10.3

10 225 coins-trouble@coins.tsukuba.ac.jp 1.8 10.4 Web Web /public html 711 rwx--x--x Web URL http://www.coins.tsukuba.ac.jp/~ http://www.coins.tsukuba.ac.jp/ce/ 10.5 COINS COINS COINS COINS 3E108 coins-trouble@cs.tsukuba.ac.jp 10.6 Firefox Thunderbird Firefox Thunderbird Firefox Firefox $ rm ~/ Library/ Application\ Support/ Firefox/ Profiles/*/. parentlock $ rm ~/ Library/ Thunderbird/ Profiles/*/. parentlock Safari http://www.coins.tsukuba.ac.jp/ce/

10 226 10.7 COINS COINS.forward s9912345@coins.tsukuba.ac.jp hoge@example.com hoge@example.com.forward COINS \s9912345, hoge@example.com.forward.forward 1 10.8 COINS COINS 3GByte COINS 10.8.1 1 A B

10 227 [coins-quota] s9912345 coins-admin 3338 MByte 3072 MByte 108 % http://www.coins.tsukuba.ac.jp/ce/quota.html coins-admin@coins.tsukuba.ac.jp s9912345 coins-admin 10.8.1 2.7.3 du d 2 1 1 cosmos02:~ s0711460$ du -h -d 1. 1.0G./ backupfiles2010 303M./ Library 639M./ Maildir 956K./. Spotlight - V100 10.0K./.ssh 2 pentas-comp d --max-depth=

10 228 718M./ WinFiles 4.0K./ Desktop 4.0K./.Trash 4.0K./.Xcode 1.4G./ Downloads 248M./ development 5.3M./ Documents 197M./ public_html 21M./.netbeans 8.5K./. netbeans - registration 5.3M./.eclipse 81M./temp 600K./.matlab 26K./lib 37K./ ssh_watch 45K./. subversion 5.0K./.w3m 4.6G./ 4.6GByte Downloads backupfiles2010 rm 10.9 Firefox Google Chrome Library Firefox Firefox 10.3 0MB

10 229 10.3: Firefox Google Chrome Chrome 10.4

10 230 10.4: Chrome Safari Safari 10.5

10 231 10.5: Safari 10.10 quota 10.8.1 10.9 quota 10.12 10.11 COINS snapshot 2.ckpt yyyy mm dd hh.mm.ss timezone. cp $ cd $ cd.ckpt $ls abelia03 / home/ ugrad/12/ s1211402/. ckpt 16:12% ls 2015_02_13_00.15.25 _Asia_Tokyo 2015_02_17_00.15.01 _Asia_Tokyo 2015 _02_21_00.15.01 _Asia_Tokyo 2015_02_25_00.15.01 _Asia_Tokyo

10 232 2015_02_14_00.15.27 _Asia_Tokyo 2015_02_18_00.15.00 _Asia_Tokyo 2015 _02_22_00.15.01 _Asia_Tokyo 2015_02_26_00.15.00 _Asia_Tokyo 2015_02_15_00.15.29 _Asia_Tokyo 2015_02_19_00.15.01 _Asia_Tokyo 2015 _02_23_00.15.01 _Asia_Tokyo 2015_02_26_15.54.10 _Asia_Tokyo 2015_02_16_00.15.30 _Asia_Tokyo 2015_02_20_00.15.01 _Asia_Tokyo 2015 _02_24_00.15.01 _Asia_Tokyo 2015_02_26_16.03.50 _Asia_Tokyo 10.12 TA coins-trouble@coins.tsukuba.ac.jp 3E108 COINS coins-admin@coins.tsukuba.ac.jp

233 A alias........................... 47 appletviewer........................... 174 B break point............................ 180 C C...................................... 175 C++.................................. 183 cat............................ 37 cd............................. 37 chmod......................... 39 compile................................ 172 compiler............................... 172 convert........................ 43 cp............................. 35 D debug..................................178 du............................. 42 E Emacs.................................. 52 Mew............................... 66 Package.el.......................... 66 Undo............................... 61............ 61....................... 56................................ 62......................... 63........................... 53................................ 61......................... 58..................... 56....................... 56..................... 54......................... 56..............................53..................... 53........................... 58..................... 65..................... 65..............................65 F Firefox.................................. 74 FORTRAN............................ 184 Free Software Foundation.............. 175 G gcc.................................... 175 gdb............................... 179, 202 gfortran................................184 GNU Compiler Collection.............. 175 GNU Octave........................... 189 GNU......................... 179 grep........................... 39 Guest Machine.........................191 Guest OS.............................. 191 H head........................... 38 Host Machine.......................... 191 Host OS............................... 191 I include.................................176 interpreter............................. 172

J Java................................... 172 javac...................................173 K kill............................ 44 L L A TEX.................................. 127 L A TEX $.................................. 157 \[ \]............................... 156 \\................................. 143 align........................ 155 align*........................156 AMS-L A TEX....................... 153 amsmath............... 153 \and.............................. 136 \author........................... 136 \bibliography....................165 \bibliographystyle..............164 BibTEX........................... 161 \caption..........................148 \centering....................... 147 \chapter..........................137 \cite............................. 163 \clearpage....................... 143 color..................158 ConTEXt.......................... 168 \date............................. 136 description................. 144 document.....................136 \documentclass.................. 135 dvipdfmx................ 129 DVI......................130 \emph............................. 141 enumerate................... 144 ε-ptex............................ 128 ε-uptex.......................... 167 extractbb............... 146 figure....................... 147 float..................147 \footnote........................ 151 \footnotemark....................151 \footnotesize....................142 \footnotetext....................151 geometry.............. 165 \geometry........................ 165 graphicx.............. 145 \hline............................ 150 \huge............................. 142 \includegraphics................ 148 itemize...................... 143 jsarticle........................ 135 jsbook............................ 135 \label....................... 148, 151 \LARGE............................ 142 \Large............................ 142 \large............................ 142 L A TEX 2ε...........................128 listings.............. 157 \lstdefinestyle................. 158 \lstinline....................... 160 \lstinputlisting................ 160 lstlisting.................. 160 \lstset........................... 158 LuaTEX........................... 168 \maketitle....................... 136 \multicolumn..................... 150 \newpage..........................143 \normalsize...................... 142 \paragraph....................... 137 \part............................. 137 pbibtex................. 165 pdftex............................167 platex...................128 \ref.............................. 151 \scriptsize...................... 142 \section..........................137 \small............................ 142 \subparagraph....................137

\subsection...................... 137 \subsubsection.................. 137 table........................ 148 \tableofcontents................ 166 tabular...................... 149 TEX............................... 127 TEX Live.......................... 166 \textbf........................... 141 \textgt........................... 141 \textit........................... 141 \textmc........................... 141 \textsc........................... 141 \texttt........................... 141 thebibliography............ 162 TikZ.............................. 169 \tiny............................. 142 \title............................ 136 \underline....................... 141 \usepackage...................... 145 X TEX............................ 167 E...............................134.......................... 142.......................... 133......... 133.............................133........... 145...................... 145.............................133.............................137 Linux Server........................... 207 ls.............................. 33 lv..............................38 M make.................................. 182 Makefile............................... 182 man........................... 41 MATLAB..............................185 Microsoft IME......................... 118 mkdir..........................34 MTU.................................. 218 mv............................ 36 N nkf............................ 48 O open...........................41 P Poderosa...............................204 printf............................. 176 ps............................. 43 PuTTY................................ 204 pwd........................... 37 Q quota.......................... 42 R rm.............................36 rmdir.......................... 35 S Shibboleth............................... 9 Simulink............................... 186 Snapshot...............................199 snapshot........................... 36 sort............................39 source code............................ 172 SSH................................... 204 ssh............................ 46 SSH.............................. 204 T tail............................ 39 Tera Term............................. 204 thunderbird............................. 82 TWINS.................................. 6 V Virtual Machine....................... 190 VMware Fusion........................ 191

VPN...................................211 W World Wide Web........................74 WWW.................................. 74 X xcalc.......................... 49 xclock......................... 49.............................. 33.............................173...................... 117.......................... 176.................................... 21.......................... 172......................... 74.......................... 172.............................101..................... 14 Web........................... 74.................. 172...................... 201................................. 110.................................. 32.............................190................... 32............................... 3................................. 172.............................. 17.......................... 200................................ 79.......................... 172........................ 173 OS............................. 191.......................... 191.............................172............................ 31, 41.................... 186....................... 49.................... 119.................................. 12.............................172.............................172................................. 182............................98.............................. 95....................... 12.......................... 172 Windows........... 110.......... 17............ 77................................. 172...................... 104........................ 103...................... 199..................... 80................................ 32................................ 32

.......................... 172........................ 172.......................... 102................................. 104.................... 112.................................... 78............................... 107............................26................... 32............................. 9 100............................... 179............................... 178........................ 6.................................. 11......................... 90......................... 33................................... 178.................................... 32............................... 6.................................... 31....................27, 28......................... 36............................10............................... 109............................77..................... 79.................. 199...................... 180.................... 172........................ 181........................ 176................33..................... 79 OS............................. 191.......................... 191............................14 LAN.............................. 207............................83..................... 88.............................. 81................................ 81.....100.......................... 104.............................183............... 176, 183................................. 103...................... 204....................... 45................................. 176............................... 5................................. 3

........................ 187

27 26 2016.4 Copyright c 2016 All Rights Reserved.