ãã®è¨äºã¯GMOãããã¨ã³ã¸ã㢠Advent Calendar 2021ã®5æ¥ç®ã¨Linux Advent Calendar 2021ã®10æ¥ç®*1ã®è¨äºã§ãã æ¨æ¥ã¯ã¯ãã¡ããã®ããã°ããã£ã¨ããæãã«ããã§ããã å·®å転éãããã¨ã§ã¢ãããã¼ããé«éåããã®ã¯ç®ããé±ã§ãããã ãã¼ã¿ã®ã¢ãããã¼ããé ãã¨æ´æ°ã®ã¢ããã¼ã·ã§ã³ãä¸ãã£ã¦ãã¾ããã¨ãããã®ã§ãããã°ãé·ãç¶ããããã«ãé«éåã¯éè¦ã§ããï¼
2018å¹´ã®ã¢ãã«ã¬ã§æ¥åã§ä½¿ã£ã¦ããPCãLinuxãã¹ã¯ãããã«ãã¦ããåå¹´ãçµã£ãã¨ããè¨äºãæ¸ããã®ã§ããããããã3å¹´çµã£ã¦ä»ã¯ã©ããªã£ããã¨ããè¨äºãæ¸ãã¦ããããã¨æãã¾ã*2ã
ç¾ç¶ã¯ã©ããªã®ãï¼
ç¸å¤ãããUbuntuãã¹ã¯ããããã¤ã³ã¹ãã¼ã«ãã¦éçºç°å¢ã¨ãã¦å©ç¨ãã¦ããã ååã®è¨äºã§ã¯ãUbuntu18.04ã§ãã£ããé å½ã«ãã¼ã¸ã§ã³ã¢ãããç¹°ãè¿ãä»ã¯Ubuntu21.10ã使ã£ã¦ãããLTSã§ã¯ãªãçç±ã¯å¾è¿°ã Ubuntu18.04ã®ããã¯ãããªããããã©ãããå¤ãç¹ã«ãã«ããã£ã¹ãã¬ã¤ç°å¢ã§ã¯æåãããããã¨ãããã¨ãå¤ã ãã£ãã ããããªãããUbuntu20.10ãããããï¼(ããè¦ã)ããªãæ¹åããä»ã§ã¯ãã®ãããªåé¡ã¯èµ·ãã£ã¦ããªãã ãã¹ã¯ãããã¾ããã¯ãã®3å¹´ã§ããªãæ¹åãããã¨è¨ããã
ãªãLTSã使ããªãã®ãï¼
ååã®è¨äºã®ãã³ã¡ã«LTSã使ããªããã¨ã«ã¤ãã¦ã®è¨åããã£ãã Ubuntuã§ã¯LTSã10å¹´ãµãã¼ãããããã¨ããããLTSãé¸ã¶ãã¨ãéæ¿ã ããã ç¹ã«ãããã¯ã·ã§ã³ç°å¢ãªã©é·æçã«å©ç¨ãè¦è¾¼ã¾ããé¨åã«ããã¦ã¯ã10å¹´éãµãã¼ããããã®éãã¤ã§ãåãç°å¢ãæ§ç¯ã§ããã®ã¯ããªãé åçã ã
ããããéçºç°å¢ã ã¨LTSã使ãããæ°ãããã¼ã¸ã§ã³ã使ã£ãã»ããã¡ãªããã大ããã å ·ä½çã«ã¯æ°ãããã¼ã¸ã§ã³ã®ã½ããã¦ã§ã¢ãã«ã¼ãã«ã使ãããã¨ã ã åè¿°ãããã¹ã¯ãããç°å¢ã®ä¸å ·åä¿®æ£ãªã©ãããã«å½ããããæ°ããLinuxã«ã¼ãã«ã§è¿½å ãããæ©è½ããã(eBPFãªã©ãªã©)ã ãããã享åããããã«LTSã使ããé½åº¦ææ°ã®ãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ãã¦ããã¨ããã®ãç§ã®çç±ã§ãã*3ã
使ç¨æ©ç¨®ã«ã¤ãã¦
ååã¾ã§ã¯Dell New XPS13(9370)ã使ã£ã¦ãããã2å¹´çµã£ããããã«PCã®ã¢ãããã¼ãã¨ãããã¨ã§ãDellã®Latitude 7310ã«å¤æ´ããã ãã®æ©ç¨®ã¯ãXPS13ã®ãã¸ãã¹ã¢ãã«ã¨ãããã¸ã·ã§ã³ã®æ©ç¨®ã§ãã¤ã¨ã³ãã¢ãã«ã«ãªã£ã¦ããã XPSããLatitudeã«å¤ããã®ã¯ä¼ç¤¾ã®PC調éã®å ¼ãåãã«ãããã®ã§ãããããã¸ãã¹ã¢ãã«ã ããããHDMIã¨USB-Aãã¼ãããã£ãããã¦å°å³ã«ä¾¿å©ã§ãã*4ã ãã®ãããã給é»ã§ããUSB-Cãã¼ããå·¦ã«ãããªãããã¯ä¸ä¾¿ãªã¨ããã§ããâ¦ã
Linuxãã¹ã¯ããããé¸ã¶å©ç¹
ä»æ¹ãã¦Linuxãã¹ã¯ããããé¸ã¶å©ç¹ãèããã Windowsã§ã¯WSLãããªãå®å®ãã¦åãããã«ãªããã¦ãã¦ãèç©ããã¦ãã¦ããããMacã®ãããããã¼ãã¼ãã3å¹´åã«ããã¹ã¦ããªãæ¹åããã(ã¨èãã¦ãã)ã ã¾ããç§ã®é¢ãã£ã¦ããç¯å²ã§ã¯ãDockerãk8sãªã©ã®ã³ã³ããæè¡ããµã¼ãã¹ã§å©ç¨ãã¦ãã¦ããããã®ç°å¢ãããã°ã©ã®OSãé¸ãã§ãå·®ç°ããªããªã£ã¦ããã 3å¹´åã«Linuxãã¹ã¯ããããé¸ãã æã¯ãããã¾ã§ç°å¢ãæ´åããã¦ããªãã£ãã®ã§ãã¤ãã£ãLinuxãéçºç°å¢ã¨ãã¦æ®æ®µä½¿ãããã¨ããã¡ãªããããã£ããã®ã®ä»ã¨ãªã£ã¦ã¯ãã®ã¡ãªããã¯å°ãªããããããªãã Dockerã ãã«ã¤ãã¦ããã¨ãDocker Desktopã®ã©ã¤ã»ã³ã¹å¤æ´ããã£ããLinuxç°å¢ã§ã¯ããããDocker Desktopãæä¾ããã¦ããªãã£ãããCLIãã使ããã¨ãå¤ãããã«å½±é¿ããªãã£ãã®ã¯ã¡ãªãããããããªãã
ããã§ãç§ãLinuxãã¹ã¯ãããã使ãç¶ãã¦ããã®ã¯ãæ £ããã¾ã£ããã移è¡ãããã©ãããã¨ããä¼ç¤¾ã®è¨åãæ´æ°ããã¦ç©æ¥µçã«WindowsãMacã«ããå¿ è¦ããªããªã£ã(å¾è¿°)ã¨ãããµã¼ãç°å¢ã§ã使ã£ã¦ããUbuntuãæ®æ®µãã使ããã¨ã§ãããããªæ©è½ã«ãªãã¦ããã¨ãããããçç±ã主ã«ãªã£ã¦ããã
æ¥åã¸ã®å½±é¿
åè¿°ããã¨ãããæ®æ®µã®æ¥åã§ã¯Linuxãµã¼ãã¸ã¢ã¯ã»ã¹ããã®ã§åé¡ã¯èµ·ãã£ã¦ããªãã Officeãã¼ã«ã¯3å¹´åã¨å¤ãããGoogle Workspace(æ§G suite)ããããã§ã¯ä½¿ã£ã¦ããã®ã§åé¡ã¯ãªãã MS Officeã使ããããªã£ã¦ãä»ã§ã¯Office360ãããã®ã§ç¹ã«åé¡ã¯çºçããªãã¨æã*5ã ãã©ã¦ã¶ã§ä½¿ããã¢ããªã¯ããã©ã¦ã¶ãããã°åãã®ã§ã¨ã¦ã便å©ã ã ãã ã ãªãã Chrome/Firefoxã§ã¢ã¯ã»ã¹ãã¦ããã®ã«UAã®OSæ å ±ã ãã¿ã¦å¼¾ããµã¤ãããã¾ã«åå¨ãã¦ãã¦(Yahoo!ãã¥ã¼ã¹ã¨ã)å°ã£ãããããã¨ãããã ããããæã¯ãUAãè©ç§°ããã°è¦ãããã®ã§Twitterã§æç´ãã¤ã¶ããã¦ããã¢ã¯ã»ã¹ãã¦ããã
ååã®è¨äºã§ã¯ãLinuxãã¹ã¯ãããã¨Windowsã®ãã¥ã¢ã«ãã¼ãã«ãã¦ããã ããã¯ãå¤æ ãä¸é¨ã®æ¥åãè¡ãããã«SSL-VPNã使ãå¿ è¦ããããã®ã¯ã©ã¤ã¢ã³ããWindows/Macã«ãããªãã£ãããã ã£ãã ãããããããã®æ å ±ã·ã¹ãã é¨*6ã®é å¼µãã«ããã¢ãããã¼ããããSSL-VPNãLinux対å¿ããï¼ï¼ï¼æé«ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
ãããªãã£ãããã¼ã«ã«ã¤ãã¦
ZoomãGoogle Meetã¯åé¡ãªã使ããã ZoomãGoogle Meetãä»®æ³èæ¯ã使ãã*7ã®ã§ä»ã®OSã¨æ¯ã¹ã¦éè²ãªã使ããã ããããWaylandã«ãªã£ããããZoomã®ç»é¢å ±æã§ç¹å®ã®ã¦ã¤ã³ãã¦ãé¸ã¹ãªããªã£ãã®ã¯å°ãä¸ä¾¿ã ã ç§ã¯ããã¾ã§Zoomã使ããªãã®ã§å½±é¿ã¯ãªãããã¡ã¤ã³ã§Zoomã使ã£ã¦ãããå°ãæ©ãã§ãããããããªãã
å©ç¨ãã¦ããã¢ããªã±ã¼ã·ã§ã³ã«ã¤ãã¦
ããããã¯ç§ãæ®æ®µä½¿ã£ã¦ããã¢ããªã±ã¼ã·ã§ã³ãç´¹ä»ããã ç¢å°(->)ããããã®ã¯3å¹´åããã©ãå¤ãã£ããã¨ããã®ã示ãã¦ããã
- ã¿ã¼ããã«: Alacrittyã«ããããå½ã¦ãã㤠-> Alacritty
- ã¨ãã£ã¿: GVim ->Visual Studio Code
- ã©ã³ãã£ã¼: Ulauncher -> ãªã(GNOMEæ¨æº)
- ã·ã§ã«: bash -> fish shell
- ãã¼ã¸ã§ã³ç®¡ç: **env -> asdf
- ã¢ããªä¸å 管çãã¼ã«: ãªã -> Rambox -> Ferdi
- ã¹ã¯ãªã¼ã³ã·ã§ãã: Flameshot
- å ¥åã¡ã½ãã: fcitx-mozc
- ãã©ã¦ã¶: Firefox, Chrome
- ã³ã³ãã: Docker Engine
- ä»®æ³å: Vagrant, Multipath
- ã»ãã¥ãªãã£: ClamAV, CROWDSTRIKE Falcon
ã¿ã¼ããã«: Alacritty
å¤ãããAlacrittyã使ã£ã¦ããã 以åã¾ã§ã¯OSC52ã§éãããããã¡ã®ãµã¤ãºãã¨ã¦ãå°ããããããå¢ããç¬èªããããå½ã¦ã¦ãããv0.5.0ãããï¼(ããè¦ã)ãããããã¡ãããªãå¢ããã®ã§ä»ã¯ããããå½ã¦ã¦ããªãã ããããªãããä»åº¦ã¯debããã±ã¼ã¸ãå ¬å¼ã§ã¯é å¸ããªããªã£ã¦ãã¾ã£ãã®ã§ãèªåã§ããã±ã¼ã¸ã³ã°ãã¦ããã
ã©ã³ãã£ã¼: ãªã(GNOMEæ¨æº)
Ulauncherã使ã£ã¦ããã®ã ãã©ãç§ã®ä½¿ãæ¹ã ã¨GNOMEæ¨æºã®ã©ã³ãã£ã¼(Superãã¼æ¼ãã¨åºã¦ããç»é¢)ã§ååãªã®ã§æ¶ãã¦ãã¾ã£ãã
ã¢ããªä¸å 管çãã¼ã«: Ferdi
ãã¨ãã¨ãã®æã®ãã¼ã«ã¯ä½¿ããã«ãã©ã¦ã¶ã§ç®¡çãã¦ããã®ã ããã¿ããå¢ãã¦è¾ããªã£ã¦ããã®ã§ä¸å 管çãã¼ã«ã使ããã¨ã«ããã ããã§ãRamboxã¨ããã¢ããªã使ã£ã¦ããã®ã ããæè¿ãã¾ãéçºããã¦ããªãããã«ã¿ããã®ã§Ferdiã«ä¹ãæããã Ferdiã¯Franzããã¼ããã©ã¼ã¯ããOSSã Franzã§ãããã£ãã®ã ããé¢ç½ããã ããFerdiã使ã£ã¦ããã Franzã¨éããµãã¼ããã¦ãããµã¤ããå°ãªãã£ããããããèªåã§æ¡å¼µãæ¸ãã°å¯¾å¿ã§ããã®ã§ä¾¿å©ã èªä½ããFerdiã®1Passwordãã©ã°ã¤ã³ -> https://github.com/buty4649/ferdi-1password-plugin/
ã¹ã¯ãªã¼ã³ã·ã§ãã: Flameshot
Macãå©ç¨ããéã«Skitchãæç¨ãã¦ããã ããã¨åçã®æ©è½ãããã¹ã¯ãªã¼ã³ã·ã§ããã¢ããªã欲ããFlameshotã使ã£ã¦ããã ãããããããã¤ã³ã¹ãã¼ã«ããã ãã§ã¯Printãã¼ãæ¼ãã¦ãGNOMEã®Screenshotãèµ·åãã¦ãã¾ããããã«ã¹ã¿ã ãã¼ãã¤ã³ãã§Frameshotãèµ·åããããã«ãã¦ããã
ã³ãã³ãã§è¨å®ããå ´åã¯ä»¥ä¸ã®ãããªæãã
$ gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" $ gsettings set 'org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/' command 'flameshot gui' $ gsettings set 'org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/' name 'screenshot' $ gsettings set 'org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/' binding 'Print'
å ¥åã¡ã½ãã: fcitx-mozc
Ubuntuã§ã¯iBusãæ¨æºã ãFcitxã®ã»ããå®å®ãã¦ããã¨èããã®ã¨ãWayland/mozcãå©ç¨ããå ´åã¯Fcitxã®ã»ãã使ãåæããããããã®ã§å¤æ´ãã¦ããã åãæ¿ãèªä½ã¯ç°¡åãªã®ã§ããªã³ã¯å ã®è¨äºãåç §ã®ãã¨ã
ä»®æ³å: Vagrant, Multipath
ä»ã¾ã§ãã¾ãä»®æ³åç°å¢ã使ã£ã¦ããªãã£ãã å¿ è¦ãããã°ãä¼ç¤¾ã®ãã©ã¤ãã¼ãã¯ã©ã¦ãã«å»ºã¦ããvirt-managerãé½åº¦ã¤ã³ã¹ãã¼ã«ãã¦ä½¿ã£ã¦ããã ããããä¹ ãã¶ãã«Vagrantã使ã£ã¦ã¿ããVagrant Libvirt Providerãããªãæ¹åããã¦ãããVirtualBoxãããã¤ããå©ç¨ããã¨ãã¨éè²ãªã使ããããã«ãªã£ã¦ããã ã¾ããVagrant Cloudã§ãlibvirtåãã®ã¤ã¡ã¼ã¸ãå å®ãã¦ãã¦ã¹ã ã¼ãºã«å©ç¨ã§ããããã«ãªã£ã¦ãããç¸å¤ãããã¤ã¡ã¼ã¸ã®ãã¦ã³ãã¼ãã¯é ããâ¦.ã
æè¿Windows対å¿ãããã¨ã§è©±é¡ã«ãªã£ãCanonicalã®Multipath*8ãææ使ã£ã¦ããã ãã¡ãã¯ãsnapã§ã¤ã³ã¹ãã¼ã«ã§ããæ軽ãããããã£ããå©ç¨ã§ããã¾ãä»®æ³ãã·ã³ã®ãã¼ããããããéãã®ã§ã¡ãã£ã¨ããæ¤è¨¼ã«ä½¿ãã¦ä¾¿å©ã ã
ã»ãã¥ãªãã£: ClamAV, CROWDSTRIKE Falcon
ã»ãã¥ãªãã£é¢é£ã®ã½ããã¦ã§ã¢ã«ã¤ãã¦ã¯ä¼ç¤¾ã®æ¹éã¨ãã¦ããããå ¥ãã¦ããã¨ããæãã ã¢ã³ãã¦ã£ã«ã¹ã½ããã¨ãã¦ClamAVããã¨ã³ããã¤ã³ã対çã¨ãã¦CROWDSTRIKE Flaconãã¤ã³ã¹ãã¼ã«ãã¦ããã
ãããã«
ååã®è¨äºãã3å¹´çµã£ãã®ã§æ¹ãã¦æ¯ãè¿ã£ã¦ã¿ãã 3å¹´åã«æ¯ã¹ä¸å ·åãæ¸ã£ã¦ãã¦æ¥åPCã¨ãã¦æ®æ®µä½¿ããã¦ãã¦ãç¹ã«å°ããã¨ããªããªã£ãã UbuntuãGNOMEãªã©éçºããã¦ãã人ãã¡ã«ã¯æè¬ãããªã ð
æ¥å¹´4æã«ã¯æ°ããLTSã§ãã22.04(Jammy Jellyfish)ããªãªã¼ã¹ãããã ç§ãLinuxãã¹ã¯ãããç°å¢ã«ç§»è¡ãã¦ãã3ã¤ç®ã®LTSã§ããã ã ãã¶é·ã使ã£ã¦ãããªããã¨æãã¨ã¨ãã«ã許ãããéãã¯ãã®ã¾ã¾Linuxãã¹ã¯ãããç°å¢ã使ã£ã¦ããããã
*1:空ãã¦ããã®ã§ãã£ãããªã®ã§è¿½å
*2:èªä½ã·ã§ã«ã®ãã¨ã«ã¤ãã¦æ¸ããã¨æã£ã¦ãããã©ãã ãã ãã¨ç¹ã«å 容ããªããã¨ãæ¸ãã¦ãã¾ã£ãã®ã§ãã®å 容ã«å¤æ´ãããããããæ©ä¼ã§ããªãã¨æ¯ãè¿ãããªãã¨æãã®ã§ãèªä½ã·ã§ã«ã®è©±ã«ã¤ãã¦ã¯ãå¥ã®è¨äºã§æ¸ãäºå®ãã¶ã
*3:åå¹´ãã¨ã«ã¢ãããã¼ããããã¨ãç¥ãæ°åã§ãã³ã·ã§ã³ããããã¨ããçç±ãããï½
*4:ã¡ãªã¿ã«ãä»ã®XPS13ã¯USB-Cã2ãã¼ãã«æ¸ã£ã¦ãããã¦å°å³ã«ä¸ä¾¿ã§ãã
*5:使ã£ããã¨ã¯ãªããããã©ã¦ã¶ã§å©ç¨ã§ããã®ã§åé¡ã¯ãªãã ããã¨æã£ã¦ãã
*6:ãããã§ã¯ã³ã¼ãã¬ã¼ãã¨ã³ã¸ãã¢ãªã³ã°ã°ã«ã¼ã(CEG)ã¨å¼ã°ãã¦ãã
*7:Zoomã¯æè¿å¯¾å¿ãã
*8:ã°ã°ãããªãã£ãã¨ã¦ãä½ãâ¦