Windowsã§Git,Vim,Screen/tmuxã使ã - ã¨ã³ã¸ãã¢ã®ããã®Desktop Linuxå ¥é
æ°ããè·å ´ã«å
¥ã£ã¦ãã¡ãã大éã®ãµã¼ãã¼ã管çããããã®ç°å¢ãæ§ç¯ãããã¨ã«ç²¾ãã ãã¦ãã¾ãã
ãµã¼ãã¼ã®ç®¡çã®ããã«Windowsã§ãããããªãã¼ã«ã使ã£ã¦ã¿ãçµæãVirtualBoxã§Linuxãåããã¦ä½¿ãæ¹æ³ãããæãã«ãªã£ã¦ããã®ã§æ¸ãæ®ãã¦ããã¾ãã
ãããªéå»ãæã¤äººã«ãããã
- ãã¼ã«ã«ã§ãLinuxã³ãã³ãã«æ £ãããï¼ã¨æã£ã¦Cygwinãå ¥ãããçµå±ä½¿ã£ã¦ããªã
- ãµã¼ãã¼ä¸ã®ã¨ãã£ã¿ã¨æä½æãçµ±ä¸ãããï¼ã¨æã£ã¦gVimãå ¥ãããçµå±sakuraã¨ãã£ã¿ã使ã£ã¦ãã
- Git使ããã¨ã³ã¸ãã¢ãã£ãããï¼ä½¿ã£ã¦ã¿ããï¼ã¨æã£ã¦Googleã«ãGit Windowsãã¨æã¡è¾¼ãã ããæ¤ç´¢çµæããã°ããçºãããã¨ãã£ã¨éãã
- Ruby/Pythonãã£ãããï¼ä½¿ã£ã¦ã¿ããï¼ã¨æã£ã¦Googleã«ã以ä¸çç¥
- ãµã¼ãã¼ãã¨ã«SSHãPuttyã®è¨å®ãæ£ç´ããã©ã
â»ãããã§ã
ã¹ã¯ãªã¼ã³ã·ã§ãã
FirefoxãExcelããã®ä»è«¸ã
ãéããWindowsã®ä¸ã§ãã¿ã¼ããã«(tmux)ã¨kvmã®virt-managerãåãã¦ããå³ï¼ã«ãªã¹ï¼
Desktop-LinuxãWindowsã§ä½¿ãï¼
ãã¹ã¯ãããåãã®Ubuntu11.10ãFedora16ã使ãã°ãGit,Vim,Screenãªã©ä¾¿å©ãªãã¼ã«é¡ããªãã¸ããªã®è¿½å ãªã©é¢åãªä½æ¥ãªãã«ãã使ãã¾ãã
ããããVirtualBoxã®ã·ã¼ã ã¬ã¹ã¢ã¼ããå©ç¨ãã¦Windowsä¸ã§ä½¿ãã¾ããããã便å©ã§ãï¼
å©ç¨ãããã¼ã«
èªåã¯ä»¥ä¸ã®ãã®ãé¸ã³ã¾ããã
VirtualBox
å
¬å¼ï¼
Downloads – Oracle VM VirtualBox
ç¡æãGUIãã·ã³ãã«ã§ãããããããã·ã¼ã ã¬ã¹ã¢ã¼ããç´ æµã
Ubuntu 11.10
æ¥æ¬èªRemixï¼Ubuntu 11.10 Desktop 日本語 Remix CD リリース | Ubuntu Japanese Team
å
¬å¼ï¼Download | Ubuntu
ä»äºã§é¢ããã®ããChefããOpenStackã¨é¢é£ãæ·±ãã®ã§ãã§ã¤ã¹ãæ¡ãããã使ã£ã¦ã¿ãã»ããç°¡åã§ããã
Linuxã®ãã£ã¬ã¯ããªæ§é ã®ä¸ã«æ¥æ¬èªãããã¨æ°æã¡æªã人ã¯å
¬å¼ããDLã
Fedora 16
CentOSç³»ã®è¨å®ãã¡ã¤ã«ã«é¦´æã¿ãåã£ãã»ãããã人ã¯Fedoraãããã¡ãã使ã£ã¦ã¿ã¾ããããGitãtmuxãbyobuãªã©ã²ã¨éãã®ãã¼ã«ã¯Ubuntuã¨åãããã«ä½¿ãã¾ããã
Fedora Project - Fedora のデスクトップ版、形式、Spin を入手
ï¼ãã¦ã³ãã¼ãã§DVDå½¢å¼ãé¸æï¼
VirtualBoxã®ã¤ã³ã¹ãã¼ã«ã¨ãã£ã¦ããã¹ããã¨
VirtualBoxã®ã¤ã³ã¹ãã¼ã«ã¯ã¦ã£ã¶ã¼ãå½¢å¼ãªã®ã§ãç¹ã«è¿·ããã¨ã¯ãªãã¨æãã¾ãã
Oracle VM VirtualBoxを使う(前) − @IT
仮想化関連ソフト/VirtualBoxでUbuntuを動かそう - Windowsと暮らす
ã¤ã³ã¹ãã¼ã«å¾ã«ãã£ã¦ããã¹ããã¨ã¯ã¨ãããã3ã¤ã
1. [ãã¡ã¤ã«]->[ç°å¢è¨å®]->[ä¸è¬] ã§ãä»®æ³ãã·ã³ã®ä¿åç®æãå¤ããã
2. [ãã¡ã¤ã«]->[ç°å¢è¨å®]->[å
¥å] ã§ããã¹ããã¼ãå¤ããã
3. Linuxã¨ãã¼ã¿å
±æããããã®ãã©ã«ãã決ãã¦ããã
ç§ã¯ãã¹ããã¼ãå·¦Altã«ãã¦ãC:\sharedãã©ã«ããä½æãã¦ããã¾ããã
ãã¹ããã¼ãå¤ããçç±ã¯å¾è¿°ãã¾ãã
ä»®æ³ãã·ã³ã®ä½æã¨Linuxã®ã¤ã³ã¹ãã¼ã«
VirtualBoxä¸ã®ä»®æ³ãã·ã³ã®ä½æã¯ã¡ãã¥ã¼ã®æ°è¦ããè¡ãã¾ããåºæ¬çã«ãããã©ã«ãã®é¸æè¢ã§ãã¹ã¦OKã§ããæ°ã«ããã®ã¯ãã·ã³åãããã§ã
ãªãã·ã§ã³ã¯å¾ã§å¤æ´ã§ããã®ã§ããã£ãã¨èµ·åãã¦ãã¾ãã¾ãã
ãã©ã¤ãã«ãã¦ã³ãã¼ããããã¼ãã¡ãã£ã¢ãæå®ãã¦ãLinuxãã¤ã³ã¹ãã¼ã«ãã¾ããç·ã¯é»ã£ã¦æå°ã¤ã³ã¹ãã¼ã«â¦ã¨è¨ãããããã©ã«ãã®ã¾ã¾ã§è¡ãã¾ãããã
ç¡äºLinuxãã¤ã³ã¹ãã¼ã«ã§ããããã¿ã¼ããã«ã®ä½¿ãæ¹ã ããã§ãã¯ãã¦ããã¾ãã
Ubuntuã®å ´åã¯ããã·ã¥ãã¼ãããtermã¨ãæ¤ç´¢ããã°åºã¾ããã
Fedoraã§ããã°[ã·ã¹ãã ãã¼ã«]->[端æ«]ã§OKã§ãã
ã·ã¼ã ã¬ã¹ã¢ã¼ãã®è¨å®ï¼GuestAdditionsã®å°å ¥ï¼
ç¡äºLinuxãèµ·åããããGuestAdditionsãå°å
¥ãã¾ãã
1. Desktop-Linuxã®å ´åã¯ãHostãã¼(å¤æ´ããå ´åã¯Altãããã©ã«ãã¯å³Ctrl)+Dãæ¼ãããã¡ãã¥ã¼ããGuestAdditionsã®é
ç®ãé¸ã¶ãã¨ã§ãªã¼ãã©ã³ãèµ°ãã¾ãã
ã¤ã³ã¹ãã¼ã«ãçµããã°ããã¦ã¹çµ±åã¨ã·ã¼ã ã¬ã¹ã¢ã¼ãã®å®æã§ãã
Hostãã¼+Lã§ãã·ã¼ã ã¬ã¹ã¢ã¼ãã¸ã®ç§»è¡ã
ã²ã¹ãOSã®æä½ä¸ã«Hostãã¼ãæ¼ããã¨ã§ããã¹ãOS(Windows)ã¸ã®å¾©å¸°ãã§ãã¾ãã
â»å·¦Altã«ãã¹ããã¼ãå²ãå½ã¦ã¦ããã®ã§ãã¿ã¼ããã«ã®æä½ä¸ã«Alt,Alt+Tabã§Windowsã¨Linuxãã¹ã ã¼ãºã«è¡ãæ¥ã§ãã¾ãã
â»ãã¾ãåããªãå ´åãã²ã¹ãLinuxãä¸åº¦åèµ·åãã¦ãVboxãµã¼ãã¹ã®åèµ·åãããã¯åã¤ã³ã¹ãã¼ã«ããã¾ãã
ãã¨ã¯ãã使ã£ã¦ã¿ãã ãï¼
ããããªãã¼ã«ãä½é¨ãã¦ã¿ã¾ãã
â»Fedoraã§ãåãããã±ã¼ã¸åã§ãyumã«ç½®ãæãã¦ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã
- Git
# Git sudo apt-get install git # Git-svn sudo apt-get install git-svn
Windowsã§ã®å°å
¥ã«ããã¹ãã¨ããã£ããããã¦æ¶ãåºããã§ãã
Linuxãªããã¬ãã¸ã«ãäºæ¬ ããªãã§ãã:)
- ã¿ã¼ããã«ç®¡çï¼Screen/tmux/byobu
# tmux sudo apt-get install tmux # byobu sudo apt-get install byobu
ã¨ãããã使ã£ã¦ã¿ããå ´åãtmuxããããããã¾ãã解説ã¯ãã¡ãã§ã
Terminal Multiplexer(tmux)の紹介|サイバーエージェント 公式エンジニアブログ
ã«ã¹ã¿ãã¤ãºã®é
ç®ãã³ããã§OKã§ãã
Ctrl+t,vã§ç»é¢ãåå²ãããã¨ãShift+ç¢å°ãã¼ã§ãã¤ã³ã移åã§ãã¾ãã
- è¤æ°ãã¹ãã®ç®¡çï¼ClusterSSH,Parallel SSH,PDsh
# ClusterSSH sudo apt-get install clusterssh # pssh,pdsh sudo apt-get install pssh pdsh # ClusterSSHã®ä¾ cssh -l username host1 host2
å¡ãã¤ã¶ãããããããããªããªãã¾ãããããããªããã
ClusterSSHã¯è¤æ°ãã¹ãã§åæã«ã³ãã³ããå®è¡ãã¿ã¼ããã«ããããã¨ä¸¦ãã§ãªãã¬ã¼ã·ã§ã³ã§ããå
æ¯ã¯ãã£ããæåãã¾ãã
- å種è¨èªã§æ¸ããã便å©ãã¼ã«
# rubygems sudo apt-get install ruby-dev rubygems # Chefï¼æ§æ管çãã¼ã«ï¼ sudo gem install chef # Python/easy_install sudo apt-get install python python-dev python-setuptools # Sphinxï¼ããã¥ã¡ã³ããã«ãã¼ï¼ sudo easy_install sphinx
ãã®ã¸ãã¯ãã¾ãã
ãã¾ã Vboxå ±æãã©ã«ãã®è¨å®
ä»®æ³ãã·ã³ã®è¨å®ã§ãå
±æãã©ã«ããä½æãã¾ãã
sudo mkdir /shared sudo mount -t vboxsf shared /shared
ããã§ãWindowsã¨ãã¡ã¤ã«ãç°¡åã«å
±æã§ãã¾ãã
ä¾ãã°ãã®ãã©ã«ã以ä¸ã«git cloneãã¦ããã°ãæ¢åã®Windowsãã¼ã«ã§ãã®ã¾ã¾ç·¨éãããã¨ãgitã³ãã³ãã§ãã¼ã¸ã§ã³ç®¡çã§ããããã¾ãã
çµè« - VirtualBoxã¨Desktop-Linuxã¯ä½ãã¹ããã
- ï¼åæ²ï¼ãã¹ã¯ãããåãã®Ubuntu11.10ãFedora16ã使ãã°ãGit,Vim,Screenãªã©ä¾¿å©ãªãã¼ã«é¡ããªãã¸ããªã®è¿½å ãªã©é¢åãªä½æ¥ãªãã«ãã使ããã
- å½ç¶ã§ããæ¢åã®Windowsããã®ã¾ã¾ä½¿ããããã大äºã
- VirtualBoxã®ã·ã¼ã ã¬ã¹ã¢ã¼ãã§ãWindowsã¢ããªã®ããã«Linuxãæ±ããã
- ãã¹ãWindowsã¨å ±æãã©ã«ããä½ã£ã¦ããã°ããã®ãã©ã«ããå©ç¨ãã¦Windowsã§ãä½æ¥ãåºæ¥ãã
- ä»®æ³ãã·ã³ãªãã¹ãããã·ã§ãããã¨ã£ã¦ããã°ãæ°ãããã¼ã«ã試ãæ¾é¡ï¼
- SSHçµç±ã§ã¿ã¼ããã«ãå©ç¨ããã®ã«æ¯ã¹ãGNOME3çã®ææ°ã®Xãå©ç¨ãããã¹ã¯ãããã¯Windows7ã¨æ¯ã¹ã¦ãéè²ãªãããã¨æ¥æ¬èª(UTF-8)ãã°ã£ã¡ã対å¿æ¸ã¿ã
- VirtualBoxã¯ãã®ã¾ã¾ããµã¼ãã¼OSããã¹ãããç°å¢ã«ã
éããªããã©ããæ°ã«ãªã人ã¸â¦ã¿ã¼ããã«ä½æ¥ãã¡ã¤ã³ãªãã¡ã¢ãªã®å²ãå½ã¦ã384MBã¨ã256MBã§ãåååãã¦ããã¾ããFirefoxã®ã¡ã¢ãªæ¶è²»éã500MBãè¶
ããã®ãæ¥å¸¸ã«ãªã£ãä»ã¯å¤§ããåé¡ã§ã¯ãªãã¯ããHDDã¤ã¡ã¼ã¸ãã¡ã¤ã«ãããã©ã«ãã®8GBããã°ååã§ãã
æå¾ã«
ã ãã¶é·ããªãã¾ããããWindowsä¸ã§Gitã»ãå種ãã¼ã«ã使ããã人ã«ãã諸ã ã®çç±ã§èªåã®èªç±ã«ã§ãããµã¼ãã¼ããªãããããã¯ä¼ç¤¾ã®ãµã¼ãã¼ã«èªåç¨ã®ãã¼ã«ãå ¥ãã¾ããã®ã¯æ°ãå¼ãã¦ãã¾ãç¹ç´°ãªã¨ã³ã¸ãã¢ã«ããã²ãå§ããèªå® ã§åå¼·ã«ä½¿ãã®ãã¢ãªã ã¨æãã¾ãã
å種ãã¼ã«ãæé ã«ã¤ãã¦ã¯ä»å¾ã追è¨ãªãå¥éè¨äºãèµ·ããã¦ããã¾ãããã®è¨äºãå°ãã§ã誰ãã®å½¹ã«ç«ã¦ã°å¹¸ãã§ãã