ã¨ãã¨ããªã話ã§ãããä»ã©ãã®Linuxã®ããã±ã¼ã¸ã³ã°ã®ç¨®é¡ã¨SteamDeckããä¸æ°ã«æ¹åãããDirectX å¨ãã®è©±ã§ãã社å ã®åå¼·ä¼ã§å ±æããè³æ
èªå·±ç´¹ä» æ¬è·ã®ã¨ã³ã¸ãã¢ã§ã¯ããã¾ããããã¡ãã£ã¨ICTç³»ã«è©³ããããªãã¤ã£ã¦æãã§ãé¨ç½²ã®ãµã¼ã管çãä»»ããããããã¦ãã¾ãã èæ¯ ç§ã®ï¼å½ææå±ãã¦ããï¼é¨ç½²ã§ã¯ãæ¯å¹´ãæ°é±éããã¦åå¹´ã®å人ã®æ¥åå®ç¸¾ãã¨ãã¾ã¨ãã¦ä¸ã¤ã®ååï¼PDFï¼ã«ããã¨ããä»äºãããããã®ä½æ¥ãå°ãã§ãèªååãããããWebãµã¼ãã¹ãå 製ããã¾ãããå½åã¯åç´ã«åã¦ã¼ã¶ãèªåã®æ¥åå®ç¸¾ä¸è¦§ãããã¹ãã§ç¨æãã¦ã¢ãããã¼ãããã¨ãããã®ã§ããããç§ä¼ã®ã¿ã¬ã®ããã«æ¯å¹´å°ããã¤æ¹è¯ãããããå¤§å¹ ã«ä½ãç´ããã¦å¥ã·ã¹ãã ããæ¥åãã¼ã¿ãåãè¾¼ãã§ãããã©ã¦ã¶ä¸ã§ç·¨éã§ããããã«ãªã£ãããã¤ã¤ããªããããããã£ã¦ç§ãå¼ãç¶ãã¾ããä»ã«ãããã人ããªããã²ã¨ãé¯ç®¡ã§ããOSã¯CentOS6ã§ããã ãã®ã·ã¹ãã ã§ã¯ãæ¯å¹´æ°ãããã¼ã¿ãç·¨éããããããã®ä½æ¥éå§æã«ãã¼ã¿ãåæåããå¿ è¦ãããã¾ãããã®ä½æ¥ãèªååãã
ãè©«ã³ã¨è¨æ£ ãã¾ãï¼ ã®å 容ã«é¢ãã¦èª¤ãã®æ å ±ãè¨è¼ãã¦ããã®ã§ãä¿®æ£ãããã¾ããã(2020/6/6 22:55) ã¾ãã³ã¡ã³ãã§å¤§å¤ä¸å¯§ã«ãææ&ã¢ããã¤ã¹ããã ãã£ã@souchi00ããããããã¨ããããã¾ãðââï¸ è¿½è¨(ã³ã³ããã«ã¤ãã¦)(2020/6/8 11:10) @inductorãããã³ã³ããã«é¢ããããããããè³æãç´¹ä»ãã¦ãã ããã¾ããï¼ https://www.slideshare.net/zembutsu/what-isdockerdoing ã³ã³ããã«ã¤ãã¦ãã詳細ãç¥ãããæ¹ã¯æ¯éã覧ã«ãªã£ã¦ãã ãã ###ã追追è¨(2020/6/8 12:30) æ¬è¨äºã§ä½ç¹ã誤ã£ã表è¨ããã£ãã®ã§ãã³ã¡ã³ãã§ææãã ãã£ãæ¹ã ã®ã¢ããã¤ã¹ã®å ä¿®æ£ãã¦ããã¾ãã(æ¬æä¸ã§ãä¿®æ£ãã¦ããã¾ãããã³ã¡ã³ãæ¬ãè¦ã¦ããã ããã°ãã詳細ããããã¨æãã¾ãã) 以å¾ãã®ãããª
Node.js ã®éçºã§ã¯ Docker for Mac ã便å©ã§ãããä»çµã¿çã«ãã£ã¹ã¯ã¢ã¯ã»ã¹ãé ããªãã®ã§ãå¦çæ§è½ãååã¨ã¾ã§ã¯ãããªããã®ã®ãï¼å²ãããé ãã§ãããã㧠Docker for Mac ã®ãæ軽ç°å¢ã諦ãã¦ã代ããã« VirtualBox ä¸ã§ Docker ã使ãã¨ãã»ã¨ãã©æ§è½å£åãªãåãããã§ãã VirtualBox ä¸ã§åãã VM ã¯ä½ã§ãè¯ãã®ã§ããããããã¯ã·ã§ã³ç°å¢ã¯ AWS ãå¤ãã®ã§ãä»å㯠VM ã«ã Amazon Linux 2 ã使ããã¨ã«ãã¾ããåãã¡ã¤ã«ã VirtualBox ä¸ã® VM å´ã«ç½®ãã¦ãMac ãã NFS ã§ã¢ã¯ã»ã¹ãã¾ãã (1) VirtualBox ãã¤ã³ã¹ãã¼ã«ããã https://www.virtualbox.org/wiki/Downloads ã®ãOS X hostsããããVirtualBox ãã
ããã«ã¡ã¯ãhachi8833ã§ãã社å Slackã§è¦ãããmorimorihogeããã®ä»¥ä¸ã®æ¸ãè¾¼ã¿ã§ç®ããé±ãè½ã¡ã¾ããã ~/.bashrcã§ä½ããåºåãã¦ãã¾ãã¨ãrsyncãªã©ã®sshãã¤ãã§åé¡ãçãããã¨ãããããã§ãã åè: ç¥ããªãã¨rsyncã§ããããã·ã§ã«åæå - Qiita ããããã£ããã«ãã§ãããããä¸æ¬¡æ å ±ãå ã«ãªãã¹ãä¸è¬çã«ãªãããã«ã¾ã¨ãã¦ã¿ã¾ããã ã·ã§ã«ã¹ã¯ãªããï¼.bashrcã.bash_profileãªã©ãå«ãï¼ã¯ãã¾ãã«èªç±ã«æ¸ãã¦ãã¾ããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ãmacOSã«ãã£ã¦ä½æ³ãã¾ã¡ã¾ã¡ã ã£ããããã®ã§ãå¤ãã¦ã¯ãããªããã¤ã³ããã©ãããç¥ãããã£ãã®ã§ããã 対象ã¯bashã¨shï¼Bourne Shellï¼ã«éå®ãã¾ããã¾ãããã¹ã¯ãããGUIã®è¨å®ãã¡ã¤ã«ã«ã¤ãã¦ã¯æå°éã«ã¨ã©ãã¾ãã bashã®manãã¼ã¸ å è¨
ã³ãã³ãã©ã¤ã³ãã¼ã«ã«ã¤ãã¦èªãã¨ãã«åã®èªãã㨠- YAPC::Asia Tokyo 2014 ã³ãã³ãã©ã¤ã³ãã¼ã«ã好ãã§æããã¤ãã£ã¦ããï¼ ä»å¹´ã®YAPCã§ï¼ãã®ã³ãã³ãã©ã¤ã³ãã¼ã«ãã¤ããã¨ãã«ã©ããããã¨ãæèãã¦ä½ã£ã¦ããã®ãï¼ã©ã®ãããªæµãã§éçºãã¦ããã®ãï¼ã¨ãã£ããã¨ãèªãæ©ä¼ãããããï¼ å ·ä½çãªå 容ã«ã¤ãã¦ã¯ï¼æ¯éãã¼ã¯ãè´ãã«æ¥ã¦ãããã¨ãã¦ï¼ ã¹ã©ã¤ããã¤ããã«ãã£ãã£ã¦éå»ã«èªãã è³æãï¼ããåèã«ãã¦ããè¨äºãéãç´ããã®ã§ï¼ãã®ä¸é¨ãåèè³æã¨ãã¦ã¾ã¨ãã¦ããï¼ UNIXã¨ããèãæ¹ UNIXã¨ããèãæ¹ Mike Gancarzã«ããUNIXã®ææ³ãå²å¦ãã¾ã¨ããæ¬ï¼å¤ããå ¨ç¶è²ããã¦ãªãï¼ ã³ãã³ãã©ã¤ã³ãã¼ã«ã®ä½ãæ¹ãæ¸ããæ¬ã§ã¯ãªããï¼ãããã®ææ³ã®ä¸ã§åããã¼ã«ã¯ãã®ææ³ã«æºæ ãã¦ä½ãããã¹ãã ã¨æãï¼ä½åº¦ãèªãã§èãæ¹ãæã¿ä»ãããï¼ å°ãã
κeenã§ããé°å²æ°ã§ã·ã§ã«ã使ã£ã¦ã人ãå¤ãã¨ã®ãã¨ã ã£ãã®ã§å°ãã°ããè¾¼ã¿å ¥ã£ãç¥èãã ãã¨ä¸å¿POSIXæºæ ãã©ãããæ°ã«ããªãããã£ã¦ããã¾ãã åºç¤ç¥èç·¨ ã·ã§ã«ã®ç¨®é¡ ã¾ããPOSIXã«ã·ã§ã«ãå®ç¾©ããã¦ãã¾ãã ããã«æä½éã®æ©è½ã§æºæ ãã¦ãããã®ãPOSIXã·ã§ã«ã¨å¼ã¶ãã¨ã«ãã¾ãããããã/bin/shã§ããå ·ä½çãªå®è£ ã¯bshãashãdashãããã§ããããã æä½éã®æ©è½ä»¥ä¸ã«è²ã æ¡å¼µããã¦ããã·ã§ã«ãæ¡å¼µPOSIXã·ã§ã«ã¨å¼ã¶ãã¨ã«ãã¾ããå ·ä½çãªå®è£ ã¯bashãzshãkshãªã©ã§ããããã ããã§ã¯è§¦ãã¾ãããPOSIXæºæ ã§ãªãã·ã§ã«ãåå¨ãã¦cshãtcshãªã©ã®ã·ã§ã«ãããã¾ãããã¨ç¢ºãæè¿è©±é¡ã®fishãéã£ããããªã ãã¦ã1ã¤åé¡ã«ãªãã®ã¯æ®æ®µä½¿ãã®ã³ãã³ãã©ã¤ã³ã¯ããããæ¡å¼µPOSIXã·ã§ã«ã§ããããããµã¼ãã§ä½¿ãã·ã§ã«ããããã¤ã¹ã¯ãªããã§å¼
ãµâãçã«ä½¿ã£ã¦ããPC ã®ã¡ã¢ãªãååãã©ããæ°ã«ãªãäºã¯å¤ãã¨æã. 調ã¹åºã㨠ããªã¼ã¡ã¢ãªã¼ã®ä¸è¶³ã SWAP ã«ã¡ã¢ãªã¼ãã¯ã¿ã ãã¦ããæ§åãªã© å¿é ãªäºãããããã§ã¦æ¥ã. PC ã®åä½ãé ããªãåå ã¯æ§ã ãªè¦å ã絡ã¿åã£ã¦ããã®ã§, 表é¢ã«ç¾ããçç¶ã ãã§ã¯å¹æçãªå¯¾çãåãããªãäºããã. 以ä¸ã§ã¯, ã¡ã¢ãªâé¢é£ã«ãã¼ã£ã¦è§£èª¬ãã. ã¡ã¢ãªã®ç¶æ³ã調ã¹ã ã¡ã¢ãªâã¯ååãªã¯ããªã®ã« ä½è£ãç¡ãï¼ ã©ã®ããã»ã¹ãã¡ã¢ãªãæ¶è²»ãã¦ããã®ãï¼ ã¡ã¢ãªã¼ã®ãªã¼ã¯ãæ¤åºããæ¹æ³ï¼ é²æ¢ããæ¹æ³ï¼ ã¡ã¢ãªâã¯ååãªã¯ããªã®ã« SWAP ã使ã£ã¦ãï¼ ãã, æ¬å½ã®ã¡ã¢ãªâä¸è¶³ã¯ã©ããããåããã®ï¼ ã¡ã¢ãªã¼ã¨ SWAP é åã¯ã©ã®ããã確ä¿ããã¨è¯ãã®ã ã¡ã¢ãªã®ç¶æ³ã調ã¹ã ã¡ã¢ãªã®å©ç¨ç¶æ³ã調ã¹ãæ¹æ³ã¯, free, top, ps, vmstat, /proc/meminfo
ãã·ã§ã«ã¹ã¯ãªããã£ã¦åªçæ§ãªããããªãã§ããã ãããªãã¨ãããè³ã«ãã¾ããããããifæãå ¥ããã ãã§ç°¡åã«åªçæ§ãæ ä¿ããã·ã§ã«ã¹ã¯ãªãããæ¸ããã¨ãã§ãã¾ãã ä»åã¯ãç§ã使ãæ¡ä»¶å¼ãç´¹ä»ãã¾ããåºæ¬çãªå½¢å¼ãªãã®ãªã®ã§ãçµã¿åãããã¨å¹ ãåºããã¾ããã£ï¼ ãã¡ã¤ã«/ãã©ã«ãé¢ä¿ ãã¡ã¤ã«ã®åå¨ç¢ºèª -e 'ãã¡ã¤ã«å'ã§ããã¡ã¤ã«åããåå¨ãã¦ããããã§ãã¯ãã¾ãã if [ -e 'ãã¡ã¤ã«å' ]; then # ãã¡ã¤ã«/ãã©ã«ããåå¨ãã¦ããã°ããã¡ã¤ã«/ãã©ã«ããåé¤ãããªã© rm ãã¡ã¤ã«å fi
ãã¼ã¢ãSREãã¼ã ã®æ¹¯è°·(@yutannihilation)ã§ããæè¿æ°ã«ãªãã¢ã¸ã¥ã©ã¼ã·ã³ã»ã¯Intellijelã§ãã ä¸å¸ãããæãã®ã³ãã³ããã¤ããã¨ããè¨äºãæ¸ãã¦ãã¾ããããããæãã®ã³ãã³ãã«ã¯ããæãã®ã¿ãè£å®ãä»ããããªãã¾ãããã®è¨äºã§ã¯Bashã®ã¿ãè£å®ãèªä½ããæ¹æ³ãç´¹ä»ãã¾ãã ã¿ãè£å®ã®ä»çµã¿ Bashã®ã¿ãè£å®èªä½ã¯Bashã«çµã¿è¾¼ã¾ãã¦ããä»çµã¿ã§ãï¼åèï¼Bash Reference Manual - 8.6 Programmable Completionï¼ãcompleteã¨ããBashã®çµã¿è¾¼ã¿é¢æ°ã«ãã£ã¦è£å®æ¹æ³ï¼compspec(completion specification)ã¨è¨ããããã§ãï¼ãè¦å®ããã¦ãã¦ããããã¿ããªã©ã«ãã£ã¦èµ·åããã¾ãã ã¿ãè£å®ã¯ãlsãªããã¡ã¤ã«åãcdãªããã£ã¬ã¯ããªåãã¨ããããã«ã³ãã³ãã«å¿ãããã®ãè¨å®ã
2016/04/21 Alpine Linux Meetup #1
æ¦è¦ æãåãããªãã docker ã³ãã³ãã®åºç¤ãå¦ã³ã¾ãã Docker ã¤ã¡ã¼ã¸ã使ããã©ã®ããã«ã³ã³ãããåããããç解ãã¾ãã ã¤ã¡ã¼ã¸ãèªåæ§ç¯ããDocker Hub ã«ã¢ãããã¼ããã¾ãã Dockerfile ã®åºæ¬ã¨ãCMD 㨠ENTRYPOINT ã®éããç解ãã¾ãã æè¦æéã¯ç´15ï½30åã§ãã çºè¡¨è³æï¼Dockerã©ã¤ããµã¤ã¯ã«ã®åºç¤ï¼ã®ä¸ãããã³ãºãªã³é¨åã ããæ½åºãããã®ã§ãï¼ã³ãã¼ï¼ãã¼ã¹ãã®ç¢ºèªç¨ï¼ããã¡ããå¯èªè³æã¨ãã¦ããããã¦ã覧ãã ããã Dockerã©ã¤ããµã¤ã¯ã«ã®åºç¤ãå°é·ãè¸ã¿æããï¼ http://www.slideshare.net/zembutsu/docker-underlying-and-containers-lifecycle ãã³ãºãªã³å 容 ããã¥ã¡ã³ãã® Get Started with Docker ã®å 容ããã¼ã¹ã«
ã¯ããã« ããã«ã¡ã¯ãä¸å±±ã§ãã åçªã§ããã¿ãªããtmuxã¯ä½¿ããã¦ãã¾ããããããæåãªã¿ã¼ããã«ã®æ©è½ãæ¡å¼µãããã¼ã«ã§ããã ãã®ç¨®ã®ãã¼ã«ã使ã£ã¦ããªãæ¹ã®ä¸ã«ã¯ãè·å ´ã®å 輩ãªã©ã«ãã¡ãï½ã¿ã¼ããã«éãããï½ãã©ã¯ã©ããï½ããªã©ã¨ãã¤é¡ã§è¨ããããã¨ãããæ¹ãããã£ãããã®ã§ã¯ãªãã§ãããããããè¨ãç§ããã¤é¡ã§ãã®ç¨®ã®çºè¨ãç¹°ãè¿ãã¦ãã¾ããã tmuxã¯ããã©ã«ãã®æ©è½ãããªãè±å¯ãªã®ã§ãããtpmã¨ãããã©ã°ã¤ã³ããã¼ã¸ã£ã使ãã¨ããã«æ©è½ãæ¡å¼µãããã¨ãã§ãã¾ããèãããã¨ãããæ¹ãå¤ãã®ã§ã¯ãªãã§ãããããã°ã°ãã¨æ¤ç´¢çµæã«çµæ§è¡¨ç¤ºããã¾ãããGitHubã®tmux-pluginsã¨ããorganizationã«ã¯ãã¾ãã¾ãªãã©ã°ã¤ã³ãããã¾ãã便å©ãªãã©ã°ã¤ã³ãç´¹ä»ãã¦ããããã°ã¨ã³ããªãçµæ§ããã¾ãã ç§ã¯ãã®ãã©ã°ã¤ã³ãä»ã¾ã§çµæ§ä½ã£ã¦ãã¾ãããå°ãã·ã§ã«ã¹ã¯ãªã
åãã¾ãã¦ãæ°åå ¥ç¤¾ã®æ¡æ(@2k0ri)ã¨ç³ãã¾ãã å ¥ç¤¾ããä»æ¥ã¾ã§ç´ï¼ã¶æéãç ä¿®ããã³OJTãåãããã¦é ãã¦ããã¾ããã ãã®åOJTã®ã¹ãã¼ã¸ã³ã°ç°å¢ã§ããããã¤å ãã£ã¬ã¯ããªã®ã·ã³ããªãã¯ãªã³ã¯ãæ¶ãã¤ããã ãããã¤ãã£ã¬ã¯ããªãä¸èº«ãã¨rm -rfãã ã¨ããé度ã®ããããããã§ããã¾ããã 30ç§ãã¡ã²ããããå¾ãã°ã°ã£ã¦ extundeleteã¨ããã³ãã³ããè¦ã¤ãã¦ããã® èªåãè¡ã£ããªã«ããªã¼ã®æé ãæ®ãã¾ãã ãªãããã®ã³ãã³ãã¯ext3/ext4ãã©ã¼ãããå°ç¨ã«ãªãã¾ãã 1. ãµã¼ãã¼ã¸ã®ã¢ã¯ã»ã¹ãåºæ¥ãéãæããããã«å¨ç¥ æè¿ã®Linuxã®ããã¡ã¯ãFSã§ããext4ãã©ã¼ãããã¯ãrmããããã¼ã¿ã®è·¡å°ã« å¾ ã£ããªãã§å®¹èµ¦ãªãæ°ãããã¼ã¿ãæ¸ãè¾¼ã¾ãã¦ããã¾ãã ãã®ãããä½ãããã¾ã失ããããã¼ã¿ãä¸æ¸ããããªãããã«ã 該å½ãµã¼ãã¼ã§ãããããã
-e å ¨ã¦ã®ããã»ã¹ãé¸æããã-Aã¨çããã -f å®å ¨ãªãã©ã¼ãããã§ãªã¹ããã -F ç¹å¥ã«å®å ¨ãªãã©ã¼ããã -l é·ããã©ã¼ããã -y ï¼ï¼ps -e ã»åºåé ç®ï¼åºåé ç®ã®èª¬æã¯ï¼ï¼ï¼åç §ï¼ PID,TTY,TIME,CMD ã»åºåä¾ $ ps -e | grep init 1 ? 00:00:00 init ï¼ï¼ps -ef ã»åºåé ç® UID,PID,PPID,C,STIME,TTY,TIME,CMD ã»åºåä¾ $ ps -ef | grep init root 1 0 0 Aug10 ? 00:00:00 /sbin/init ï¼ï¼ps -eF ã»åºåé ç® UID,PID,PPID,C,SZ,RSS,PSR,STIME,TTY,TIME,CMD ã»åºåä¾ $ ps -eF | grep init root 1 0 0 4835 820 0 Aug10 ? 00:00:0
主ã«ã¢ããªã±ã¼ã·ã§ã³éçºè åãã«ãLinuxãµã¼ãä¸ã®åé¡ã調æ»ããããã«ãã¦ã§ããªãã¬ã¼ã·ã§ã³ã¨ã³ã¸ãã¢ã¨ãã¦æ¥å¸¸çã«ãã£ã¦ãããã¨ãç´¹ä»ãã¾ãã ã¨ãããã調ã¹ããã¨ãç¾ åãã¦ããã®ã§ã¯ãªããæ¬å½ã«èªåãç¾å ´ã§ä½¿ã£ã¦ãããã®ã ãã«æ å ±ãçµã£ã¦ãã¾ãã æ®æ®µä½¿ã£ã¦ããããã©ããã¢ããªã±ã¼ã·ã§ã³éçºè åãã§ã¯ãªããã®ã¯ããã¦çãã¦ãã¾ãã MySQLãNginxãªã©ãåå¥ã®ããã«ã¦ã§ã¢ã«éå®ãããã¦ãã¦ã«ã¤ãã¦ã¯æ¸ãã¦ãã¾ããã ãã°ã¤ã³ãããã¾ã確èªããã㨠ä»ã«ãã°ã¤ã³ãã¦ãã人ãããã確èªï¼wï¼ ãµã¼ãã®ç¨¼åæéã®ç¢ºèª (uptime) ããã»ã¹ããªã¼ãã¿ã (ps) NICãIPã¢ãã¬ã¹ã®ç¢ºèª (ip) ãã¡ã¤ã«ã·ã¹ãã ã®ç¢ºèªï¼dfï¼ è² è·ç¶æ³ç¢ºèª top iostat netstat / ss ãã°èª¿æ» /var/log/messages or /var/log/syslog /
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}