2022-09-01ãã1ã¶æéã®è¨äºä¸è¦§
ubuntu 㧠network-manager ãåæ¢ã㦠networkdã使ãã OSãã¤ã³ã¹ãã¼ã«ãããnetwork-manager ãããã©ã«ãã§nmcli / nmtui ãªã©ã§ãããã¯ã¼ã¯ãè¨å®ããããmacvlan ãªã©ã¡ãã£ã¨ç´°ããè¨å®ããããã¨ãã㨠ãnetwork-manager ãããã¾ã«ãªã£ãã®ã§ãâ¦
WSLã®php ãvs code(win)ã§ä½¿ã wsl ä¸ã§ vs code èµ·åããã£ã¦è©±ã ãã©ã ã³ãã³ãããã³ããã§wsl ã®python php ã ruby ãå¼ã³åºã @echo off C:\Windows\System32\bash.exe -c "php '%*'" å®è¡ãã C:\Users\takuya\misc-app\wsl-to-win\php.cmd -i vscoâ¦
multipass 㧠cpu/memory å²å½ã®å®¹éãå¤ããã multipass get local.sample01.cpus=4 multipass set local.sample01.memory=4GiB ãã£ã¹ã¯ãå¤ããããããããï¼è©¦ãã¦ãªãï¼ multipass set local.sample01.disk=10GiB ãã£ã¹ã¯ã¯ä½ææã«æå®ããã»ãã楽â¦
tar ããã¤ãçµç±ã§ãssh çµç±ã§è¡ãããµã¼ãã®ãã¡ã¤ã«ãä¸æ°ã«è»¢éãã ssh çµç±ã§ tar ssh srv1 'sudo tar cpvf - /var/opt ' | cat - > var-opt.tar ãããªå¤§èãªãã¨ãããã¨ãã¯ããµã¼ãã¼ã®ãã¡ã¤ã«ãã¾ãã£ã¨åãåºãããã¨ããªã®ã§ã p ãã¤ãã¦ãpâ¦
lvm ã®USB-HDDã®åãå¤ãã»åãåºãï¼è§£æ¾ï¼ usb æ¥ç¶ãããlinux ã®ã·ã¹ãã HDDã§ããã¯ã¢ãããåã£ããã¨ããã®ã¾ã¾æãããLVMãæ®ãã®ã§ãã¡ããã¨LVMããã¿ãããã¦ãããUSBãåãå¤ã lv ãåãå¤ã sudo lvchange -an /dev/mapper/mydisk-root vg â¦
ãã°ããã¼ãã¼ã·ã§ã³ãã rsyslog 㧠ãªã¢ã¼ãããã®ãã°ï¼ãªã¢ã¼ãã»ãã°ï¼ããã¼ãã¼ã·ã§ã³ãã /etc/logrotate.d/xxx-takuya.conf ãªã¢ã¼ãç¨ã«ä½ã£ãè¨å®ã¯ãã /var/log/remote/*.log { rotate 4 daily missingok notifempty compress compresscmd /usâ¦
rsyslog ã®éä¿¡ãæå·åããã rsyslog ã®ãã±ããã¯ãå¹³æã§æµãããå¹³æã§ãããã¯ã¼ã¯ãæ¼ãã£ã¦ã®ã¯æãã ç¾ä»£ã§ã¯ã家åºå ã«GoogleHome ãAmazon Alex/FireTVããããTP-link製åãããµãã¦ãããä¸æãããã¨ä¸è¯ä¸çã¨ã¤ãªãã£ã¦ãã¦ãã°ã»ãã±ããâ¦
æ éããSSDã交æãã¦ããã£ãã Amazonã§è³¼å ¥ããSSDãªã®ã ããæ°ã¥ããã«ãã±ãã¬ååãè²·ã£ã¦ããã æ éããã®ã§ä¿è¨¼ç³è«ããããã¨æã£ããããã±ãã¬ã§ããè² ããã¬ã¤ã§ããã Crucial ã®SSDãæ éãã æ éããã®ã§æ³£ãããä¿è¨¼ç³è«ãã§ããªãã£ããâ¦
gitlab ã®ååã¤ã³ã¹ãã¼ã« ãã¼ã¿ã®æ¸ãæ»ãï¼ãªã¹ãã¢ï¼ãããã¯ã¢ããï¼åå¾ï¼ã®ç·´ç¿ç¨ã»å®é¨ç¨ã«ããµã¯ãã¨Gitlabãç«ã¡ä¸ããã docker 使ããã楽ã ã¨æãã multipass ä¸ã«ä½ã£ã¦ã¿ãã multipass ã§ã¤ã³ã¹ã¿ã³ã¹çæ multipass launch --name sampleâ¦
gitlab ã®ããã¯ã¢ããã»ãªã¹ãã¢ï¼ãã¦ã³ã°ã¬ã¼ãã»å¤±æãªã«ã㪠gitlab ã®ããã¯ã¢ãã sudo gitlab-ctl backup-etc sudo gitlab-backup create gitlab ã®ãã¼ã¿ omnibus gitlab ã¯æ¬¡ã®å ´æã«ãã¼ã¿ãæã£ã¦ããã - /var/opt/gitlab - /var/log/gitlab - â¦
rsyslog 㧠and , not , or ãªã©å¦å®ããåéåï¼ORï¼ç©éåï¼ANDï¼ã¯ã©ãæ¸ãã®ã rsyslog ã§å¦å® AÌ / not A / å¦å® if not ( $msg contains "moby" ) then { *.* action(type="omfwd" ... ) } A ⪠B / not ( A or B ) if not ( $msg contains "moby" or $â¦
rsyslog 㧠rainerscript ã¨legacy ãªæ¸ãæ¹ãæ··ãã 以åããã® syslog ã®æ¸ãæ¹ã ## legacy syntax $template RemoteHost, "/var/log/rsyslog/%hostname%.log" :fromhost-ip, !isequal, "127.0.0.1" -?RemoteHost ãã³ãã¬ã¼ãã¯ãrainerscript ã§ããã°â¦
ããã°ã©ã åã§è»¢éãã if ( $programname == "docker-compose" ) ä¾ if ( $programname == "docker-compose" ) then { *.* action(type="omfwd" target="192.168.112.11" Port="514" Protocol="tcp" ) } æååã§ä»åãã if ( msg contains "docker" ) thâ¦
rsyslog ã§ãã°ãåä¿¡ãã TCPãUDPã§åä¿¡ãã§ãã TCP ã§åä¿¡ãã module(load="imtcp") input(type="imtcp" port="514") UDPã§åä¿¡ãã module(load="imudp") input(type="imudp" port="514") TCPã¨UDPã®ä¸¡æ¹ã§åä¿¡ããã module(load="imtcp") input(typeâ¦
rsyslog ã§è»¢éããè¨å® rsyslog ã§è»¢éè¨å®ã *.* action(type="omfwd" ... ) 転éè¨å®ã®ä¾ ## legacy / compatible #*.* @@192.168.1.11:514 ## TCP 㯠@@ #*.* @192.168.1.11:514 ## UDP 㯠@ ## RasinerScript with queue *.* action(type="omfwd" queueâ¦
armbianmonitorã¨ããã³ãã³ããarmbianã«ç¨æããã¦ããã ãããã¤ããã¨ã温度ã»CPUã»ã¡ã¢ãªãã¢ãã¿ãªã³ã°åºæ¥ãã armbianmonitor -m ãã°æ¸ãããããã®ã«ä¾¿å©ããã åèè³æ http://www.d0wn.com/orange-pi-zero-how-to-get-the-cpu-temperature/