Linux
â¾ï¸ã¯ããã« https://dk521123.hatenablog.com/entry/2024/12/31/184145 ã§ãï¼ï¼è¦å ãSelf-hosted runnerä¸ã®Runnerãµã¼ãã¹ãèµ·åãã¦ããªããã«ã¤ãã¦ã ã調æ»ããéã«ãjournalctlã«ã¤ãã¦è§¦ãããã ä»åã¯ãjournalctlãæ·±æãããã ç®æ¬¡ ãï¼ãjourâ¦
â ã¯ããã« ãã¡ããã¡ããã¾ãããªãã Linuxã®ä»£è¡¨çãªãã£ã¬ã¯ããªã«é¢ã㦠ã¡ã¢ã£ã¦ãã ãï¼ã代表çãªãã£ã¬ã¯ã㪠ãã£ã¬ã¯ã㪠説æ /bin åºæ¬ã³ãã³ããæ ¼ç´ /etc ã³ãã³ããã¢ããªã±ã¼ã·ã§ã³ã®è¨å®ãã¡ã¤ã«ãé ç½® /usr å ±æã§ãã¦èªã¿è¾¼ã¿å¯è½ãªãâ¦
â ã¯ããã« Linux ä¸ã§ã® Proxy è¨å®ãã¡ã¢ãã¦ãã ç®æ¬¡ ãï¼ãåºæ¬ï¼ç°å¢å¤æ°ã§è¨å® ãï¼ãæä¹ çã«è¨å®ããã«ã¯ ãï¼ãapt ã®å ´å ãï¼ãåºæ¬ï¼ç°å¢å¤æ°ã§è¨å® ï¼ï¼æ§æ export http_proxy="http://ãã¦ã¼ã¶IDã:ããã¹ã¯ã¼ãã@ããããã·ã»ãã¹ãåã:â¦
â ã¯ããã« å°ãã¿ã Linuxä¸ã§Windowsã§ãã ã¿ã¹ã¯ããã¼ã¸ã£ã¼ãèµ·åããæ¹æ³ãã¡ã¢ How to open task manager in Linux? https://candid.technology/linux-task-manager/ Just type... gnome-system-monitor
â ã¯ããã« å°ãã¿ã ã ãã©ã調ã¹ã¦ãæå¤ã¨ä»ã®ãµã¤ãã§ã¯æ¸ãã¦ãªãç¹ã ãã£ãã®ã§ã¡ã¢ã https://dk521123.hatenablog.com/entry/2023/08/24/002539 ã§ãIntelliJ ã Linux/Ubuntu ä¸ã«ã¤ã³ã¹ãã¼ã«ããã ä½æ¥ããä¸ã§ã·ã§ã¼ãã«ããã¢ã¤ã³ã³çãªã®ãâ¦
â ã¯ããã« Linux ã®ãã¼ããã·ã§ã³å¨ããã¡ã¢ã ç®æ¬¡ ãï¼ããã¼ããã·ã§ã³ã®ç¢ºèª ï¼ï¼ã¢ã¯ã»ã¹æ¨©éã®è¦æ¹ ãï¼ãã¢ã¯ã»ã¹æ¨©ã®å¤æ´ ï¼ï¼ã³ãã³ãä¾ ãï¼ããã¼ããã·ã§ã³ä¾ ï¼ï¼777 ï¼ï¼755 ï¼ï¼764 ï¼ï¼666 ï¼ï¼644 ãï¼ããã¡ã¤ã«/ãã£ã¬ã¯ããªã®ææè ãâ¦
â ã¯ããã« æè¿ãUbuntu ã使ã£ã¦ããããçµæ§éãã ã§ãLinux Mint ãããã£ã¦è©±ãèããã®ã§è©¦ãã¦ã¿ãã ç®æ¬¡ ãï¼ãLinux Mint ï¼ï¼ãã¹ã¯ãããç°å¢ç ï¼ï¼æ¯è¼ ãï¼ãæ§ç¯ç°å¢ ï¼ï¼åææ¡ä»¶ ãï¼ãè¨å®æé ï¼ï¼isoãã¡ã¤ã«ããã¦ã³ãã¼ã ï¼ï¼Virtuâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/09/11/000000 https://dk521123.hatenablog.com/entry/2021/09/12/000000 https://dk521123.hatenablog.com/entry/2021/09/23/223401 ã§ããã¤ãã©ã¤ã³ã«é¢ãã¦ãå°ã触ãããã ä»åã¯ãæãä¸ãã¦â¦
â ã¯ãã㫠調æ»ã§ã pigz (ãã°ãºï¼) ã£ã¦ã®ããã£ãã®ã§èª¿ã¹ã¦ã¿ãã ç®æ¬¡ ãï¼ãpigz ãï¼ãå ¬å¼ãµã¤ã ãï¼ãã¤ã³ã¹ãã¼ã«ããã¦ãããç¢ºèª ãï¼ãã³ãã³ãä¾ ãï¼ã使ç¨ä¸ã®æ³¨æ ãï¼ãpigz * 並åï¼ãã«ãã³ã¢ï¼ã§ åãå§ç¸®ã»è§£åãã¼ã« => æ¨æºã®å ´åâ¦
â ã¯ããã« Linuxç³»ã®Webã»ããã¼ãåå ããéã«ã å¦ç¿ç¨ã¯ã©ã¦ããµã¼ãã¹ãkatacoda ï¼ã«ã¿ã³ãï¼ã ã«ã¤ãã¦ãæ±ã£ã¦ãã®ã§ãã¡ã¢ãã¦ãã ç®æ¬¡ ãï¼ãkatacoda ï¼ã«ã¿ã³ãï¼ ï¼ï¼ä½¿ç¨ä¸ã®æ³¨æ ï¼ï¼è©³ç´°ï¼ãã®ä»åèãµã¤ãï¼ ãï¼ãã¡ã¢ï¼å人çãªææ³ãªâ¦
â ã¯ããã« Ubuntu ã«é¢ãããã©ãã«ãçºãã ãï¼ãsudo apt upgrade ãããã¨ã©ã¼ sudo apt upgrade ãã¦ãã 以ä¸ã®ã¨ã©ã¼ã§æ´æ°ã§ããªãã sudo apt update ãã§ããªãã ã¨ã©ã¼å 容 E: Could not get lock /var/lib/dpkg/lock - open (11 Resource tempâ¦
â å ¬ééµèªè¨¼ã¨ã¯ * ç§å¯éµã¨å ¬ééµã¨ããéµãã¢ã使ç¨ããèªè¨¼æ¹å¼ * å ¬ééµèªè¨¼ã§ã¯ããã¹ã¯ã¼ããå ¥åããªãããããã¹ã¯ã¼ãããããã¯ã¼ã¯ä¸ãæµãããã¨ããªãããã ãã¹ã¯ã¼ãã®çé£ãæ¨æ¸¬ãªã©ã®æ»æãé²ããã¨ãã§ãã => éã«éµãçã¾ãããã¢ã¦ãâ¦
â ç°å¢ * Windwoså´ï¼Windows10 * Linuxå´ ï¼CentOS7 â æé / ä¸æç æåãã¦ã³ã [1] cifs-utils ãã¤ã³ã¹ãã¼ã«ãã(以ä¸ã®ãâ ãã©ãã«ããåç §) [2] ãã¦ã³ããã ï½ï½ï½ï½ sudo mount -t cifs -o user=ãWindowsã®ã¦ã¼ã¶åã,password=ãWindowsã®ãâ¦
â ãã°ä¸ä»£ç®¡çï¼ãã°ã®ãã¼ãã¼ã·ã§ã³ï¼ãè¡ãã«ã¯... * logrotate ã使ç¨ãã â logrotateã®åææ¡ä»¶ ãã°ãã¼ãã¼ã·ã§ã³ã¯cronã§åãã¦ããã®ã§ãcrondãç¢ºèª sudo systemctl status crond => åãã¦ããªãã£ããããsudo systemctl start crondã â ã©ãâ¦
â ã¯ããã« * è² è·ãã¹ããè¡ã£ã¦ããæã«ãnetstatã³ãã³ããå ¥åãããã 大éã« TIME_WAIT ã表示ãããã ï¼ä»åã¯ããã¼ã¿ãã¼ã¹ã¨ã®æ¥ç¶ã§å¤§éã«çºçãã¦ããï¼ â ã©ããªäºã«ãªãã®ãï¼ OSã§ã¯ä½¿ç¨ã§ãããã¼ãï¼ãã¨ãã§ã¡ã©ã« ãã¼ã / åç ãã¼ãâ¦
â ç¨èªæ´ç ã¹ã¯ããé å * å®ã¡ã¢ãªãæ¯æ¸ããå ´åãä¸æçã«ãã¼ããã£ã¹ã¯ã«éé¿ããããã®é å => ãã ããå®ã¡ã¢ãªã¨æ¯è¼ããã¨ãæ ¼æ®µã«é ã ã¹ã¯ããã¢ã¦ã(swap-out) * ã¡ã¢ãªãããã¼ããã£ã¹ã¯ã«éé¿ããåä½ ã¹ã¯ããã¤ã³(swap-in) * ã¡ã¢ãªãããâ¦
â ãã° * root権éãé²è¦§ã§ããªã * /var/log/ é ä¸ã«æ§ã ãªãã°ãæ ¼ç´ããã¦ãã /var/log/ é ä¸ã®ãã°ä¸è¦§ `#`ãã°`説æ`åè 1secureèªè¨¼é¢é£ãã°ãsshã®èªè¨¼æåã»å¤±æãªã©ã»ãã¥ãªãã£ä¸å¤§åãªæ å ±ãæ ¼ç´ããã¦ãã 2lastlogã¦ã¼ã¶æçµãã°ã¤ã³æ å ±ããâ¦
â ã¯ããã« SELinux ã«ã¤ãã¦ã¡ã¢ã ç®æ¬¡ ãï¼ãSELinux è£è¶³ï¼ä»»æã¢ã¯ã»ã¹å¶å¾¡ã¨å¼·å¶ã¢ã¯ã»ã¹å¶å¾¡ ãï¼ãå©ç¹ ãï¼ãæ©è½ ãï¼ãåä½ã¢ã¼ã ãï¼ãè¨å®å¤æ´æ¹æ³ ãï¼ãé¢é£ã³ãã³ã ï¼ï¼sestatusã³ãã³ã ï¼ï¼chconã³ãã³ã ï¼ï¼restoreconã³ãã³ã ï¼ï¼seâ¦
â Sophos Anti-Virus for Linux Sophos : ã½ãã©ã¹ * å人å©ç¨ã§ããã°ãç¡æã§ä½¿ç¨å¯è½ * ãã¤ãã«ããç¬ç«ç³»ã®ã»ãã¥ãªãã£è£½åã®è©ä¾¡ãè¡ã第ä¸è ãã¹ãæ©é¢ã§ãã AV-Test ã§ã®çµæ(å¤ããã©)ã§ã¯ãClamAVããåªãã¦ãã(以ä¸ã®é¢é£è¨äºãåç §ã®ãã¨) htâ¦
ãLinuxããã»ãã¥ãªãã£ãã¢ã³ãã¦ã¤ã«ã¹ã½ãã ï½ Clam AntiVirus / åºæ¬ç·¨ ï½
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37031641.html ã®ç¶ãã â åºæ¬ã³ãã³ã ãã¿ã¼ã³ãã¡ã¤ã«æ´æ° sudo freshclam freshclam ã«ã¤ã㦠* ã¦ã¤ã«ã¹ãã¼ã¿ãã¼ã¹ãHTTPçµç±ã§ææ°ã®ç¶æ ã«æ´æ° https://clamav-jp.osdn.jp/jdoc/clamav.html ã¹ãã£â¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37253842.html ã§ããInstalling fail2banãã¨ãã£ãã®ã§ã調ã¹ã¦ã¿ã â fail2ban ã«ã¤ã㦠Fail To banã ban = ãç¦æ¢ããå·®ãæ¢ãããã * ãã«ã¼ããã©ã¼ã¹æ»æ / ä¸æ£ã¢ã¯ã»ã¹ãæ¤ç¥ããèªåçã«ãã®IPâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37031641.html ã§æ±ã£ãã¢ã³ãã¦ã¤ã«ã¹ã½ããã«ã¤ãã¦ãããå°ãæ·±å ãããã â ãã«ã¹ãã£ã³ãè¡ãã«ã¯... sudo clamscan / --recursive # ãsudo clamscan / -rãã§ãOK åèæç® http://sasurahi.seesaa.nâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2014/11/28/162708 ã§ãaptã³ãã³ããæ±ã£ããã ä»åã¯ããããã·çµç±ã§aptç³»ã³ãã³ããå®è¡ããã«ã¯ ã©ãããããèãã ãï¼ããããã·çµç±ã§aptç³»ã³ãã³ããå®è¡ããã«ã¯ æ¹æ³ã¯ã以ä¸ã®2éã ï¼ï¼ç°â¦
ãLinuxããã»ãã¥ãªãã£ãã¢ã³ãã¦ã¤ã«ã¹ã½ãã ï½ Clam AntiVirus / å°å ¥ç·¨ ï½
â Clam AntiVirus Clam AntiVirus(Clam AV) : ã¯ã©ã ã¢ã³ãã¦ã¤ã«ã¹ * Linuxç¨ã®ããªã¼ã®ã¦ã¤ã«ã¹ã½ãã ï¼Windowsçããããããï¼ ä»ã®ã¦ã£ã«ã¹ã¹ãã£ã³ã½ããã¨ã®æ¯è¼ (2017/12/01追è¨) https://blogs.yahoo.co.jp/dk521123/37259281.html ãã 2015å¹´ã®â¦
â ã¯ããã« * Hello Worldçãªãã®ãä½æãããããã¤/å®è¡ãã => ä»çµã¿èªä½ã¯ã¨ã£ã¦ãã·ã³ãã«ã§ç°¡åã«ã§ãã ç®æ¬¡ ãï¼ãsystemdã§ã®ãµã¼ãã¹ä½æã«ã¤ã㦠ãï¼ãåä½ç°å¢ ãï¼ããµã³ãã« ãï¼ãããã㤠ãï¼ããã©ãã«ã·ã¥ã¼ãæ¹æ³ ãï¼ãè¨å®ãã¡ã¤ã«â¦
â ã¯ããã« * ãããã¯ã¼ã¯ã®ãã£ããã£ãã¨ã => æã£ã¦ããããæ§ç¯ã使ãæ¹ãç°¡åã ã£ãã â ç°å¢æ§ç¯ * ä»åã®æ³å®ç°å¢ã¯ã以ä¸ã®éãã * OS : CentOS7 ã¤ã³ã¹ãã¼ã« # ã¤ã³ã¹ãã¼ã« sudo yum install tcpdump # ãã¼ã¸ã§ã³ç¢ºèª tcpdump --help Debianâ¦
â ã¯ããã« sshãªã©ã§ãã°ã¤ã³ããéã«ã éçºç¨ãµã¼ããªã®ããæ¬çªç¨ãµã¼ããªã®ãåºå¥ãã¤ãã«ããã®ã§ Amazon Linuxã®ããã«ãã°ã¤ã³ãããã以ä¸ã®ãããªAsciiã¢ã¼ãã表示ããã æåè²ãå¤ããããããªã©ããã°ãè¦è¦çã«ãåºå¥ãæãã¨æã£ãã®ã§èª¿ã¹â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/36559479 ã§ãWebãµã¼ãã¹ã®ã¢ã¯ã»ã¹ããéã«ã¿ã¤ã ã¢ã¦ãå¤ãè¨ãããã å ´åã«ãã£ã¦ãæéããããå ´åããã£ãã ã©ããããDNSã®åå解決ã«æéãæãã£ã¦ããããªã®ã§ã OSå´ã®è¨å®ã§ãDNSã®ã¿ã¤ã â¦
åæç¥è ã»ããID * ä¸æçã«åãæ¿ãã¦ããã°ã©ã ãå®è¡ã§ããä»çµã¿ â SUID * SUID : Set User ID * å®è¡ãã¡ã¤ã«ã«è¨å®ãããå±æ§ * å®è¡ãã¡ã¤ã«ã®ææè ã®æ¨©éã§å®è¡ï¼ã©ã®ã¦ã¼ã¶ããã¡ã¤ã«ãå®è¡ãã¦ããã»ãããããã¦ã¼ã¶ã§å®è¡ï¼ 確èªã®ä»æ¹ ls -lâ¦
ã¯ããã« http://blogs.yahoo.co.jp/dk521123/36252928.html ã§ãCentOSãã¤ã³ã¹ãã¼ã«ããããRAIDãæèãã¦ã¤ã³ã¹ãã¼ã«ãã RAIDã«ã¤ãã¦ã¯ã以ä¸ã®é¢é£è¨äºãåç §ã®ãã¨ã http://blogs.yahoo.co.jp/dk521123/34557792.html æ§ç¯ä¾ ç°å¢ * ä»®æ³ç°å¢ : Vâ¦