VirtualBoxã§ä»®æ³ç°å¢ãã¤ããã¡ã¢
éçºç°å¢ã¯å¿ è¦ã
ããã°ã©ãã³ã°åå¿è
ããªã«ããã¤ãããã¨æããã¾ãæè¡è
ãéçºç°å¢ããµã³ãããã¯ã¹çã«ç¨æãããã¨æãããããªãã¨ã¯ããªããéãéã ãMacã使ã£ããHomeBrewã§å°ãã¯æ¥½ã«ãªããã©ãããã§ãæ¬çªç°å¢ã«åããã¦ãã¼ã«ã«ã®ãã·ã³ã«VM(Virtual Machieãä»®æ³ç°å¢)ãç«ã¦ããã¨ãããã¨ã¯å¤ãã ãããã¤ã¼ãMacã¤ãã£ã¦ã¦ãå¾®å¦ã«DebianãUbuntuãCentOSã¨ãã§å·®ç°ããã£ããããããå¿
è¦ã«ãªã£ããããã
ã¨ãããã¨ã§èªåç¨ã«前にメモったã®ã ãã©ãããã°ã©ãã³ã°ãããï¼ã£ã¦ããåå¿è
ã¨ãããããä»®æ³ç°å¢ãç«ã¦ããã¨ããªã人ã£ã¦ããã¨æãããããã¡ãã£ã¨ä¸å¯§ã«æ¸ãã¦ã¿ããã¨æã£ãã
çµå±Linuxãµã¼ãã¼ãããã¨æ¥½ã ããããããããããªè©±ãLinuxåæã§æ¸ããã¦ãããããã
ã¾ããããªã ãããç°å¢ã¨ããã®ãã¤ãããªãã¨ãããªãã®ã ã
大ã¾ããªç®æ¬¡
- VirtualBoxã«Ubuntuãã¤ã³ã¹ãã¼ã«ãã
- ãã¹ãOSããã²ã¹ãOSã«æ¥ç¶ãã
- å ±æãã©ã«ããã¤ãã
åæã¨ãã¦å¿ è¦ãªãã®
- ããã«å¹ççã«å¤§éã«ãã£ã±ãç»åãå ¥æããããã«æ¨¡ç´¢ããã§ãããä¸å¦çãã¤ã³ã
- ããããªããã¨ã¯ã¨ããããã¾ãã°ã°ã£ã¦èª¿ã¹ãç¨åº¦ã®ã°ã°ãããªãã£
ãã¨ããããä»®æ³ç°å¢ãã¤ããã®ã§ããããããªãã«PCã®ã¹ããã¯ãå¿ è¦ã§ããã¨ããããã¡ã¢ãª2GBãHDDã¯60GBã¯ãªãã¨ä¸å®ã ã¨æããã¾ããã®2,3å¹´ã®éãããã«çºå£²ãããPCãªããããã大ä¸å¤«ã ãããã©ããã¾ãã«å¤ã(ã¬ã¬ã·ã¼ãª)ãã½ã³ã³ã ã¨ãããã«ãããã£ããç¯ç´ããæ¹æ³ãããã¾ãããããããã¯æ°ãããã½ã³ã³ãè²·ã£ãã»ããæ©ãã§ãããã
VirtualBoxã®è¨å®
VMWareã¨VirutalBox
ä»ããä»®æ³ç°å¢ãã¤ããããã ãã©ãä»åã¯VirtualBoxã使ããä¼¼ããããªã½ããã«ã¯VMWareã£ã¦ã®ãããããã£ã¡ãããããããã ãã©å¾®å¦ã«ç¡æã ã£ããå¾®å¦ã«è±èªã ã£ããããããããããããããã£ã¦ãªãã®ã§ä½¿ã£ã¦ãªãã§ãã
ä»åã¯VirtualBoxãåæã«ç°å¢ãæ§ç¯ãã¾ãããã¡ããWindowsçãMacçãããã¾ããèªåã¯ä¸¡æ¹å
±ä½¿ã£ã¦ã¾ãã
ãã¹ãOSã¨ã²ã¹ãOS
ä»®æ³ç°å¢ãä½ãã¨ãã«åºã¦ããç¨èªã§ãããã¹ãOSã£ã¦ã®ã¯æå ã®ãã¤ãè²·ã£ã¦ãããã®WindowsãMacã§ããã§ãã²ã¹ãOSã£ã¦ã®ãããããã¤ã³ã¹ãã¼ã«ãã¦ç°å¢ãæ§ç¯ããOSã§ããä»®æ³ç°å¢ã«ã¯ãã¹ãOSâã²ã¹ãOSã¨ããå½¢ã§æ¥ç¶ãã¾ãã
VirtualBoxã®ãã¦ã³ãã¼ãã¨ã¤ã³ã¹ãã¼ã«
ãããããã¦ã³ãã¼ããã¾ãããããã®ãããã®è±èªã¯èªã¿ã¾ããããã¨ãããèªããªãã¦ããªãã¨ãªããããã¯ããä¸å¦çãªãåå¼·ãã¦ãã ãããDownloadã£ã¦ãªã³ã¯ãé£ãã§ãèªåã®OSã«åããããã®ããã¦ã³ãã¼ããã¾ããããWindowsãªãVirtualBox 4.1.8 for Windows hosts, Mac ãªãVirtualBox 4.1.8 for OS X hostsã£ã¦ãã¤ã§ããã
ã¤ã³ã¹ãã¼ã«ã¯èªå·±è²¬ä»»ã§è¡ãªã£ã¦ãã ãããå½ããåã§ãããã¾ãåé¡ã¯ãªãã¨æããã©ã
ç¾å¨èªåã使ã£ã¦ããã®ã¯Macçã®VirtualBox 4.1ã§ãã
Ubuntuã®ãã¦ã³ãã¼ã
Linuxã§ããã°ã©ãã³ã°ï¼ã¯ãããã©ãWindowsãMacã¨éã£ã¦ããããããã¾ãã大éæã«è¨ãã¨Linuxã®å
¥ã£ããããããã¾ã¨ãã¦ä½¿ããããããã±ã¼ã¸ã³ã°ãããã®ããã£ã¹ããªãã¥ã¼ã·ã§ã³ã¨å¼ã³ã¾ãã
ä»åã¯Ubuntu Sererã使ãã¾ããUbuntuã£ã¦ã®ã¯ããã¨åå¿è
ã«ããããæãã§ãã¨ãä»æ§ã§ã©ã¯ã ããã§ããã¨ãããèªåãåºæ¬çã«ãã¨ããªã®ã§Ubuntuã°ã£ããã¤ãã£ã¦ã¾ãã*1
ãã¦ã³ãã¼ãã¯ä»¥ä¸ãããã©ã£ã¦ãã ããã
The world's most popular free OS | Ubuntu
ãGet Ubuntu Nowããããããé£ãã§ããDownload and Installãããããã¯ãªãã¯ãã¦ããDowonload Ubuntuããããããè½ã¨ãã¾ãããã¹ã¯ãããçããã®ã¾ã¾ãã¦ã³ãã¼ããããªãããã§ãããã§ãããä»åã¯ãµã¼ãã¼çãåæã«ããã®ã§ãUbuntu Serverãã£ã¦ã¨ããããã¯ãªãã¯ãã¦Serverçããã¦ã³ãã¼ããã¾ãããã
ã§ããã®ãã¡ã¤ã«(.isoã£ã¦ããã¤ã¡ã¼ã¸ãã¡ã¤ã«)ã¯600MBã¨ããã®ããããã大ããªãã®ãªã®ã§å°ãæéããããã¾ãããããããã®ãªã®ã§ãã
ç¾å¨èªåã使ã£ã¦ããã®ã¯Ubuntu 10.10 64bit Serverã§ã
Ubuntuã®ã¤ã³ã¹ãã¼ã«
VirtualBoxãèµ·åãããæ°è¦ä½æãã¾ããã ãããããã©ã«ãã£ã½ãæãã®ãã®ãè¨å®ãã¦ããã°å¤§ä¸å¤«ã§ãããã®ã¨ãã«å
ã»ã©ãã¦ã³ãã¼ãããUbuntu.isoããã¦ã³ã(æ¿å
¥)ãã¦ã¤ã³ã¹ãã¼ã«ãå§ãã¾ãããªã«ãé»ãç»é¢ãããä¸åéãã¯ãã§ãã
Ubuntuã®ã¤ã³ã¹ãã¼ã«ã¯ãããªã«é£ãããªãã¯ãã§ããã¨ããããæ¥æ¬èªã®è¨å®ã«ãã¦ããã¦*2ãããã©ã«ãã£ã½ãæãã®ãé¸ã¹ã°ããã§ããããããªãã£ããã¨ããããã©ãã©ãEnteræ¼ãã¦ãã°ç´ ç´ã«å
¥ã£ã¦ããã¾ããubuntuã®ååãusernameããã¹ã¯ã¼ããããã¯ã¡ããã¨è¨å®ãã¾ãããããã¼ãã£ã·ã§ã³ã£ã¦ã®ãä½ãã¨ãã ãç´ ç´ã«Enteræ¼ãã¦ãé²ãã¾ãããã¡ããã¨èªãã§ããã£ã½ãæãã§ã¤ã³ã¹ãã¼ã«ãã¾ãããã
ãã®ãã¨ä½¿ãã®ã§OpenSSHã ãã¯ãã®ã¤ã³ã¹ãã¼ã«ã®æ®µéã§ããã¦ããã¨ããã§ãããã
CUIã«æ £ããæå³ã¨ããã°ã©ãã³ã°
ä»åã¯Ubuntu Serverçãåæã«ãã¦ãã¾ããããã¯èªåã®ããã®ã¡ã¢ã¨ããã®ãããã¾ãããããããããã°ã©ãã³ã°ããããã¨æã£ããçµå±ã¯Serverçã®ãããªCUIã«æ
£ãããããªãã®ã§ã*3ãçµå±ããã°ã©ãã³ã°ããã¨ããã®ã¯ã²ãããã«æåãæã¡è¾¼ãã§ãããã®ãªã®ã§ãã
æåã¯è¥å¹²(ã©ããããªã人ããããã©ããããã人ã¯æ«æãã¦ãã ãã)é£ããããããã¾ããããæ
£ããã¨å¿«é©ã§ãããå°æ¥ããã°ã©ãã¼ãç®æã人ã«ã¨ã£ã¦ã¯ãªã«ãã¨å½¹ã«ç«ã¤ããããªãã§ãããã*4ã
VirtualBoxã§ã®ãããã¯ã¼ã¯è¨å®
ãã¡ã¤ã«âç°å¢è¨å®âãããã¯ã¼ã¯âãã¹ããªã³ãªã¼ãããã¯ã¼ã¯ã追å
(é¸æããVMã®)è¨å®âãããã¯ã¼ã¯âã¢ããã¿2ãæå¹ã«ããâãã¹ããªã³ãªã¼ã¢ããã¿ãvboxnet0ã追å
ã²ã¹ãOSã§ã®ãããã¯ã¼ã¯è¨å®è¨å®
ãã®ãã¡ã¤ã«ãç·¨éãããå ã»ã©è¨å®ãããã¹ã¯ã¼ããæ±ãããã¾ãã
sudo vi /etc/network/interfaces
ä¸è¨ã追å ãã
auto eth1 iface eth1 inet dhcp
以ä¸ãå®è¡ãã*5
sudo /etc/init.d/networking stop sudo /etc/init.d/networking start
åè
ethã¨ããã®ã¯LANãã¼ãã®ãããªãã®ã§ããLANãã¼ãã¨ããã®ã¯ãã®ã¤ã³ã¿ã¼ãããããã¨ãã«æ¿ãã¦ãããã®ã±ã¼ãã«ã§ãï¼ã¾ãæè¿ã¯ç¡ç·LANãªãã¨ãå¤ããã©ã
ãã¹ããªã³ãªã¼ã¢ããã¿ãè¨å®ãã㨠VM<->ãã¼ã«ã«ãã·ã³(ã«ã¼ã¿ã¼)<->ã¤ã³ã¿ã¼ããã ã¨ã¤ãªãããã¨ãã§ããã
ãããããã¨ã§VMèªä½ã¯ç´æ¥ã¤ã³ã¿ã¼ãããã«ã¤ãªãããã¨ã¯ãªããªãã
æ®æ®µã¯NATã§DHCPã§ãã¦ãã ããããNATè¨å®ã¨ä½µç¨ãããã¨ã®ãã¨ã
ããªãã¸ãããã¯ã¼ã¯ã«ãã㨠VM(ã«ã¼ã¿ã¼)<->ç´æ¥ã¤ã³ã¿ã¼ããã ã«ã¤ãªãããã¨ãã§ãã(ãã¡ããDHCPãªã½ã¼ã¹ãé£ã)
> ä»®æ³ãã·ã³ã®ethã¢ããã¿
> bridge = ãã¹ããã·ã³ã«ethã¢ããã¿ãå¢ããã®ã¨ä¸ç·
> NAT = ãã¹ããã·ã³ã®ä»®æ³ethã¢ããã¿ãçµç±ãã¦LANã«æ¥ç¶ï¼ã«ã¼ãã£ã³ã°ãããã¢ãã¬ã¹å¤æï¼
> host only = ãã¹ããã·ã³ã®ä»®æ³ethã¢ããã¿ã¾ã§æ¥ç¶ï¼ã«ã¼ãã£ã³ã°ãªã
ã¨ãã£ã¿ã«ã¤ãã¦
æåã¯vi(vim)ã¨ããã¨ãã£ã¿ã«å°ãã¨æãã¾ã*6ãã§ãè¦ããã¨å°æ¥ãµã¼ãã¼ç®¡çè ã¨ãã¦ãããã°ã©ãã³ã°ããã«ãã¦ããããå¿«é©ã«ãªãã¾ã*7ãä»ã«ã nano ã¨ããã¨ãã£ã¿ãUbuntuã§ã¯ä»å±ãã¦ããã®ã§ãã¡ããã¤ãã£ã¦ãããããããã¾ããã
sudo nano /etc/network/interfaces
åã¯nanoã®ä½¿ãæ¹ã¯ãã£ã±ããªã®ã§ããã°ã£ã¦èª¿ã¹ã¦ãã ããã
ã¡ãªã¿ã«CUIã®ã¨ãã£ã¿ã§æåãªã®ã¯ãã®Vimã¨ããä¸ã¤Emacsã¨ããã®ãããã¾ããVimã¨Emacsã§å®ææ¦äºãèµ·ããç¨ã®ã¢ã¬ã§ãããçµå±ã¯å¥½ã¿ã§ä½¿ãã°ããã§ããèªåã¯Vimãã使ããªãã®ã§Vimãåæã«é²ãã¾ãã
vimã¯ç¬ç¹ãªã¨ãã£ã¿ã§ãããªã«ããç¢å°ãããããã¦ãæåã¯ãªã«ãå
¥åã§ããªããããã§ããæä½æ¹æ³ã¯èªåã§ã°ã°ã£ã¦ãã ããâ¦â¦ã¨ããã®ããã¤ã¦ã®èªåã«ãããããªãã®ã§ãä¸è¨ã«å°ãåèã®URLãè²¼ã£ã¦ããã¾ãã
Vimの使い方備忘録(チラシの裏) - Seesaa Wiki(ウィキ)
ã¾ããæä½éããã ãç¥ã£ã¦ããã°ã§ããã§ããããã³ããåæãã¾ã
- vimã¯ã¨ãã£ã¿ã§ãã
- ãã¼ãã«ã¢ã¼ã(移åãããé©å®ç·¨éããããã)ã¨ã¤ã³ãµã¼ãã¢ã¼ã(å®éã«å
¥åãã)ããã
- vimã¯ã¢ã¼ããåãæ¿ãã¦ä½¿ãã¨ãã£ã¿ã§ãã
- ãã¼ãã«ã¢ã¼ãã§ã®åããæ¹
- h, j, k, l ã§ããããå·¦ãä¸ãä¸ãå³ã«åããj, kã®ä¸ä¸ã®åããéè¦ãªã®ã§ãããªã£ã¦ããã®ã§ã(ãã¶ã)ãh, lã¯ããããå·¦å³ã§ã
- x ã§æåã®æ¶å»
- a, i ãæ¼ããã¨ã§ã¤ã³ãµã¼ãã¢ã¼ãã«ãªã
- ã¤ã³ãµã¼ãã¢ã¼ãã§ã¯ç¢å°ãã¤ãã£ã¦ç§»åãã§ãã
- æ®éã«å
¥åã§ãã
- ããã§ããã»ã©ã®è¿½è¨ãå¯è½ã«ãªã
- ãã¼ãã«ã¢ã¼ã㧠:w ã¨æ¼ããã¨ã§ä¿åã§ãã
- ãªã«ã失æããã£ã½ãï¼ã£ã¦ãªã£ãã¨ã㯠:q! ã¨æ¼ãã°ã¨ããããç·¨éããã£ã³ã»ã«ãã¦æ»ããã¨ãã§ãã
æ¥ç¶ããããã®IPã¢ãã¬ã¹ã®ç¢ºèª
èªåã®IPã¢ãã¬ã¹ã確èªãã¾ãããã
ifconfig
使ãããã¤ã¹ã¯eth1ã§ããèªåã®å ´åã¯eth1ã®ã¢ãã¬ã¹ãã192.168.56.101ã«ãªã£ããã§ããã®ã¢ãã¬ã¹ã使ç¨ãã¾ãã
OpenSSHã®ã¤ã³ã¹ãã¼ã«
æ¢ã«Ubuntuã®ã¤ã³ã¹ãã¼ã«æ®µéã§ã¤ã³ã¹ãã¼ã«ããå ´åã¯ä¸è¦ã§ãã
sudo apt-get install openssl #ãããã¯ãã£ã¡ #sudo apt-get install ssh
ãã¹ãOSããã²ã¹ãOSã«æ¥ç¶ãã
Windowsã®å ´åã¯PuTTYããããæåã§ããã*8 *9ãMacã®å ´åã¯å²æãã¾ã(ããã©ã«ãã§sshã使ããã¯ãã§ã $ ssh [email protected])ã
PuTTY ごった煮版
ããããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ãã¾ãããã¹ãåã«å
ã»ã©ç¢ºèªããIPã¢ãã¬ã¹ãããã¦å®è¡ãã¦ã¿ã¾ããããlogin as ã« usernameãEnterãæ¼ããããã¹ã¯ã¼ããæ±ããããã¯ãã§ããããã§ãã¹ãOSããã²ã¹ãOSã«æ¥ç¶ãããã¨ãã§ãã¾ããï¼
PuTTYã®è¨å®
æ¯åãã¡ãã¡æåã§å
¥åããã®ã¯é¢åãªã®ã§ããããã¯è¨å®ãä¿åãã¾ãããããã¹ãåãæ¥ç¶âãã¼ã¿âèªåãã°ã¤ã³ã®ã¦ã¼ã¶åãèªåã§è¨å®ããã¨ããã«å
¥åããã¨ã¦ã£ã³ãã¦âå¤æâæåã³ã¼ã㧠UTF-8 ãé¸æãããã§æååãããã«è¡¨ç¤ºã§ãã¾ãããã¨ãã¡ãã¡ãã¼ãé³ãããããã£ãã 端æ«âãã« ã§ãã¥ã¼ãã§ãã¾ããããããå
¥åãããã»ãã·ã§ã³âã»ãã·ã§ã³ä¸è¦§ã§ã¦ãã¨ã¼ãªååãã¤ãã¦ä¿åãããã§æ¯åãã¡ãã¡æåã§è¨å®ããªãã¦ãããã«ã¯ãªãã¯ããã ãã§æ¥ç¶ã§ãã¾ãã
ãã¨ãã©ã³ããã¦ã£ã³ãã¦ã®å¤§ãããè²ã¨ããè¨å®ãããã£ããèªåã§ä½ã¨ããã¦ãã ããã
å ¬ééµèªè¨¼ãã
æ¯åãã¹ã¯ã¼ããæ±ããããã®ãå«ãªäººããã£ã¨ã»ãã¥ã¢ã«ä½¿ããã人ã ã*10ããã®é ã¯åãã人ã ãããã°ããã§ãã
ãã¹ãOSãMacãCygwinã®ã¨ã交æéµèªè¨¼ããããã®ã³ãã³ã
ssh-keygen
ãã㧠.ssh ã« id_rsa(ç§å¯éµ)㨠id_rsa.pub ãä½ãããããã¨ã¯~/.ssh/authorized_keysã«å ¬ééµãç»é²ããªãã£ããã¤ããã
PuTTYããæ¥ç¶ããå ´å
PuTTYãã¤ã³ã¹ãã¼ã«ãããã©ã«ãã«ãã puttygen.exe ãèµ·åãçæãããç§å¯éµãã©ãããã¼ã«ã«ã«ä¿åãå
¬ééµããã¼ã«ã«ã«ä¿åâ¦â¦ãªãã ãã©ãå
¬ééµã«é¢ãã¦ã¯ãã®ã¾ã¾ä¿å(çæããéµã®ä¿å)ã㦠authorized_keys ã«ç»é²ãããã¨ãã¦ãã¨ã©ã¼ã«ãªãã
ãã¡ã¤ã«ã§ã¯ãªããOpenSSHã®authorized_keysãã¡ã¤ã«ã«ãã¼ã¹ãããããã®å
¬ééµãã¨ãã表示ããã¦ããé¨åãç»é²ããããã¡ã¤ã«ã«ä¿åããããã°å¥éèªåã§ä¿åã
PuTTYã«ä¿åããã»ãã·ã§ã³ããç§å¯éµãç»é²ããã«ã¯ æ¥ç¶âSSHâèªè¨¼âèªè¨¼ã®ããã®ãã©ã¤ãã¼ããã¼ãã¡ã¤ã« ã«å
ã»ã©çæããç§å¯éµ.ppkãé¸æããå¿
è¦ãããã
sshdã®è¨å®
ãããæåã¯ç¡çã«ã¯è¨å®ããªãã¦ããããã¡ããã»ãã¥ã¢ã«éå¶ãããªãå¿ é ã
sudo vi /etc/ssh/sshd_config
ã§é©å®ç·¨é
ãã¹ã¯ã¼ãèªè¨¼ãä¸å¯ã«ãã PasswordAuthentication no ã«ã¼ãã§ãã°ã¤ã³ããã®ãä¸å¯ã«ãã PermitRootLogin no
åæ
sudo /etc/init.d/sshd restart
èªåç¨è¨å®ã¹ã¯ãªãã
ãªã¬ãªã¬ç¨ã¡ã¢ã
sudo apt-get install git git clone [email protected]:atasatamatara/dotfiles.git cd dotfiles bash bash_setup.sh cd cat .bashrc.dot >> .bashrc bash apt_setup.sh vi #NeoBundleInstall
githubã§è¨å®ãã¡ã¤ã«ãåæããããã«ãããããããã¨æããï¼åèã«ã©ãã
atasatamatara/dotfiles · GitHub
å ±æãã©ã«ãã®è¨å®
(VMã®)è¨å®âå ±æãã©ã«ã ããã¢ã¤ã³ã³ã¯ãªãã¯ã§è¿½å ãå ±æããããã©ã«ããé¸æããã©ã«ãåãé©å®ç·¨éãèªåãã¦ã³ããªã³ãæ°¸ç¶åããããªã³ãèªã¿è¾¼ã¿å°ç¨ãã¯é©å®ã
Guest Additionã®ã¤ã³ã¹ãã¼ã«
å ±æãã©ã«ãã使ç¨ããã«ã¯Guest Additionsãã¤ã³ã¹ãã¼ã«ããªããã°ãªããªãããªã®ã§å®éã«åããã¦ããVMã®ã¦ã£ã³ãã¦ãé¸æã㦠ããã¤ã¹âGuest Additionsã®ã¤ã³ã¹ãã¼ã«ãããã§isoã¤ã¡ã¼ã¸ããã¦ã³ããããâ¦â¦ã®ã¯ããã®ã ãã©ã /mnt ã /media/cdrom ã«ã¯ã¿ããããªãã£ãããªã®ã§æ¢ããã
sudo find / -name '*VBOX*'
ã©ããã /dev/disk/by-id ã®ãªãã«ã·ã³ããªãã¯ãªã³ã¯ãããããããã¿ããã§(cd /dev/disk/by-id, ls -l ãã)ãå®éã®ãã¦ã³ãã¹ã¹ããªã®ã¯ /dev/sr0 ãããã£ã½ã
sudo mount /dev/sr0 /mnt
ããã§ãã¦ã³ããããããã¨ã¯ã¹ã¯ãªããèµ°ãããã°ããã®ã ãã© make 㨠gcc ãå¿ è¦ãããã£ã*11
cd /mnt sudo apt-get install make sudo apt-get install gcc sudo sh VBoxLinuxAddtions.run
ããã§Guest Additionã¯ã¯ãã£ããåèµ·åããã¨åæ ãããã
sudo reboot
追è¨
ç¹ã«Ubuntuãªããã 㨠apt-get upgrade ãããããã¨ãã®å ±æãã©ã«ãã使ããªããªããã¨ãããããã¶ã linux ã®ã«ã¼ãã«èªä½ãã¢ãããã¼ããããããªããã®é¢ä¿ã ã¨æã£ã¦ããã対å¦æ³ã¨ãã¦ã¯ãã¨ãããããããã¡ã©Guest Additionsãåã¤ã³ã¹ãã¼ã«ãããããã¨ãããã¾ããã¤ã¾ããmountãã¦ãsh ããã£ã¦ãã¨ã§ããã
æå±ã°ã«ã¼ããå¤ãã
ãã®ã¾ã¾ã§ã¯å
±æãã©ã«ãã®ãã¼ããã·ã§ã³ãããã£ã¦ã¦å
¥ããªãããªã®ã§æå±ã°ã«ã¼ããå¤ãã
èªåã®æå±ã°ã«ã¼ãã確èª
#!/bin/bash groups # atasatamatara adm dialout cdrom plugdev lpadmin sambashare admin
èªåãã°ã«ã¼ãã«å ãããä»å㯠atasatamatara ã¦ã¼ã¶ã¼
#!/bin/bash sudo gpasswd -a atasatamatara vboxsf # atasatamatara adm dialout cdrom plugdev lpadmin sambashare admin vboxsf
åæ ãããã«ã¯ä¸åº¦ãã°ã¢ã¦ããå¿ è¦ããã°ã¢ã¦ãâãã°ã¤ã³ãã¦ããä¸åº¦ã°ã«ã¼ãã確èªããã°çµæãããã¯ã
NOTE::å±ãªãããæ¹ï¼
sudo usermod -G vboxsf ãã¦åæ ãããã vboxsf ã°ã«ã¼ãã«ãããªããªãã¦sudoããã§ããªããªã£ããã¹ãããã·ã§ãããã¨ã£ã¦ãªãã£ãããã«åæ§ç¯ãå¿ è¦ã§ãçµå±ããã§ãããã¦ãã®ã¨ã³ããªã¼ãæ¸ãã«è³ã£ãã
便å©ãªä½ç½®ã«ç½®ã
ãããã調ã¹ã¦ãã㨠sudo mount -t vboxsf /media/HogeFolder ~ ã¨ããããã©ãmountã§ããªãããããããã°ã«ã¼ãã«ãããã®ã§ã·ã³ããªãã¯ãªã³ã¯ãã¯ãã ãã§ãã
ln -s /media/Hoge_Folder ~/HogeFolder
ããã§ã·ã³ããªãã¯ãªã³ã¯ãã¯ããï¼ã¹ããã¼ã¼ã¼ã
以ä¸
é·ãã£ãã§ãããããã§ã²ã¨éãéçºç°å¢ãæ§ç¯ãã¦ãå
±æãã©ã«ããè¨å®ããã¨ããã¾ã§ã§ãã¾ããã
ãã¨ã¯å¥½ããªã ããã£ã±ãç»åããã¦ã³ãã¼ããã¦ãã¾ãã°ããããããªãããªï¼ï¼ï¼ï¼
ãã£ã±ãç»åãå
±æãã©ã«ãã«ä¿åããããã«ã§ããã°ç°¡åã«ãã¹ãOSããç»åãè¦ããããã«ãªããï¼ï¼ï¼ï¼
*1:å®ã¯é«æ ¡çã®é ãã½ã¼ã¹ãã¯ã¹ãã4000åã§è²©å£²ãã¦ããTurbo Linxã使ã£ã¦ããã¨ããã®ããã£ããªâ¦â¦ãWindowsãè²·ããã°ããã£ããã ãããããªéããªãã£ãã®ã ã
*2:å®ã¯æ¥æ¬èªã§ãããã¨å¾ã§æååãããããã«è¦ããã®ã§ãããå¾ãã端æ«ã®è¨å®ã§ã©ãã«ããã¾ãã
*3:ãã¡ããJavaãObj-CãC#ãªã©ä»IDEãããç°å¢ã¯ããã¯ããã§ã
*4:èªåãé«æ ¡çã®ããã«ã³ãããã¦ãµã¼ãã¼ç«ã¦ããªãã[http://centossrv.com/:title]ããã®é ã¯ãããããããªãã¦ã»ãã¨ã³ããã ã£ããã©ãããã°ã£ã¦æå³ãæ±²ãã§ãã£ã¦ã¿ããã©ãã«ãã§ãã
*5:åèµ·å
*6:Emacsã¯çµäºã§ããªãã¦ãã¤ãããã»ã¹ããkillã£ã¦ãããããªã®ã§ã
*7:ä¿¡è
*8:ã¨ãããèªåã¯ããããã¤ãã£ã¦ãªã
*9:TeraTermã¨ãã¯ã¤ãã£ããã¨ãªã
*10:ã£ã¦ãããå¤é¨ããæ¥ç¶ãããªããããæ®éã ãã©ãèªåã®ãã¼ã«ã«ã ãããã¤ãããªãã£ããã¨ããããåããã¨ãã段éã®äººã«ã¯ä¸è¦ãã¨æãã¾ãã
*11:ä¸åº¦å®è¡ãããããã¦logãã¿ã