- Linux-ã¯ã©ã€ã¢ã³ããã·ã³äžã®ããŒã¹ã·ã¹ãã ã
- ç°ãªãããŒããŠã§ã¢äžã®åãã¿ã€ãã®ã·ã³/ã·ãã¯ã¯ã©ã€ã¢ã³ãã
- ã¯ã©ã€ã¢ã³ãããŒã¿ã®ãããã¯ãŒã¯ã¹ãã¬ãŒãžã
- äºå調æŽããããœãããŠã§ã¢ã
- Openvpn /ã¢ããªã±ãŒã·ã§ã³ãµãŒããŒãžã®rdpã
- Nagiosã®ãããªLinuxã¯ã©ã€ã¢ã³ãã®è±ªè¯ãªïŒãœããã§ãµããµãïŒã¢ãã¿ãªã³ã°ã
ãŠãŒã¶ãŒãŸãã¯éåžžã®ãenikeyshikãã®åŽã§æå°éã®åŽåã§ããŠãŒã¶ãŒã®ã³ã³ãã¥ãŒã¿ãŒã«äžé£ã®ãœãããŠã§ã¢ãæ§ææžã¿ãããã¯ãŒã¯ãµãŒãã¹ãå®çŸ©æžã¿æ§æãªã©ãåããæ¢è£œã®ã·ã¹ãã ãã€ã³ã¹ããŒã«ããæ¹æ³ã«ã€ããŠã§ãã ãã®èšäºã¯äž»ã«æ奜家ãšåå¿è ã®Linuxoidã察象ãšããŠããŸãããæ¯æ¥äœåå°ãã®è»ã®ã°ã«ãŒãã®æŠéå±éã«ããªãã¯ãšã¹ã¯ãªããã䜿çšãããå¯èœæ§ããããŸãã
ãŸããååžã決ããŸãããã ãã¡ãããããã¯äž»ã«ã¿ã¹ã¯ã«äŸåããŸãã xubuntu 14.04ãéžãã ã®ã¯ã次ã®3ã€ã®ç°¡åãªçç±ããã§ãã
1. ubuntu-å¹ åºããµããŒããšèšå€§ãªæ°ã®ãã©ãŒã©ã ãåããdebããŒã¹ã®ã·ã¹ãã ã
2. xubuntu-ã©ããã«ãèŠæ ãã®ãªã軜éããŒãžã§ã³ã512MBã®RAMã®ãã·ã³ã§ã¯é床ãäœäžããŸããïŒç§ã®å ¬åã«ã¯ãã®ãããªæç«ãããŸãïŒã
3. 14.04ã¯2019幎ãŸã§ãµããŒããããLTSïŒé·æãµããŒãïŒãªãã·ã§ã³ã§ãã
ãã¡ããããªãã·ã§ã³ã¯ããéããããå°ãããªããŸãããå€ãã®ããŸããŸãªçç±ã«ãããéžæãè¡ãããæ®å¿µãªãã1幎åŸæããããšã¯ãããŸããã
å ãèŠæ®ããŠãç§ã¯æ³šæããŸããäžèšãç¹°ãè¿ãã«ã¯ãããŒã«ã«ãããã¯ãŒã¯ã§èšå®ãããvpnãµãŒããŒãŸãã¯ãconfig-monitoring-serverãã2ã3å°ã®ä»®æ³ãŸãã¯å®ãã·ã³ã2ã3æéã®ç©ºãæéãããã³çŽ°éšãžã®æ³šæãå¿ èŠã§ãã
ãã®ãããæåã«ç»åãæºåããŸãã ãã¹ãŠã®æ®µéãéèŠã§ãããæåã®æ®µéã¯åºç€ã§ãã cd / dvd / usb / networkã§ã·ã¹ãã ãã€ã³ã¹ããŒã«ãããã£ã¹ã¯ã¬ã€ã¢ãŠããéžæããŸãã ã€ã¡ãŒãžã¯ãå±éåã«åçãªãµã€ãºå€æŽããµããŒãããªãããšãç解ããããšãéèŠã§ãã ãããŠãããããããã®ãããªãµã€ãºå€æŽã¯å¿ èŠãããŸããã ã«ãŒãã®äžã§ã¯ã6ã10 GBãå²ãåœãŠãã®ãçã«ããªã£ãŠããŸãã
aïŒã¯ã©ã€ã¢ã³ããã·ã³ã®ãã£ã¹ã¯ããã®ããªã¥ãŒã ããå°ãããªããbïŒå®éã«å€ãã®ç°ãªãå¿ èŠãªããã±ãŒãžãã€ã³ã¹ããŒã«ãããããšãããã£ãŠããå Žåããã倧ããªããªã¥ãŒã ãæ£åœåãããŸãã
/ homeãããŒã¯ããŠãæåŸã«ããŒãã£ã·ã§ã³ã亀æããŸãããã åèšã§ãäœæè ã®3ã€ã®ã»ã¯ã·ã§ã³ãã¹ãŠã30 GBãã¯ããŒã«ããŸããïŒ30 GBã®ssdã«éãã«åãŸãããã«ãããã¯ç§ã®ã¯ã©ã€ã¢ã³ãã®æå°ãã£ã¹ã¯æ§æã§ãïŒã ã¬ã·ãŒããŒãã£ã¹ã¯ã®æå°ãµã€ãºãäºåã«ããã£ãŠããå Žåããã®ããŒãã£ã·ã§ã³ã調æŽããããšã¯çã«ããªã£ãŠããŸãã ãã£ã¹ã¯ã®ã«ãŒãã®çŽåŸã/ã¹ã¯ããã®çŽåŸã®ããŒã ã«ã¹ã¯ãããããŒã¯ããããšããå§ãããŸããããã«ããããµã€ãºå€æŽãçºçããå Žåã«ãã³ã³ãœãŒã«ã§ãã£ã¹ã¯äžã§ããããéã¶ãã®ã§ã¯ãªãã1ã€ã®ã³ãã³ãã§ãšã¬ã¬ã³ãã«ã§ããŸãã ãã±ãŒã«ããŠãŒã¶ãŒåããã¹ã¯ãŒãããã¹ãåãèšå®ããæ°ããLinuxã«å ¥ããŸãã ç¶è¡ããã«ã¯ãx11vncãsshãrsyncãopenvpnãmcã®ããã±ãŒãžãå¿ èŠã«ãªããŸãïŒmceditã倧奜ãã§ãã90幎代ã®ããŒãã³ã®ããã«ããã€ãã£ãã§ãïŒã
sudo apt-get install x11vnc ssh rsync openvpn mc ntp
SkypeãIcedoveïŒThunderbirdïŒãIceweaselïŒfirefoxïŒãCrrom-browserãrdesktop calculatorããªãœãŒã¹ã¢ãã¿ãŒãviberãlibre officeãã¯ã€ã³ãããã³ããã€ãã®Windowsã¢ããªã±ãŒã·ã§ã³ã奜ã¿ã«åãããŠè¿œå ããŸããããããé¡äŒŒäœã¯ãªããæåŸ ãããŠããŸããïŒã ãã®ãã¹ãŠããã£ãããšãã£ãããšã»ããã¢ããããŠããŸãã ãã¹ãŠãéå§ããŠåäœããããšã確èªããŸãã
VPNãæ§æããŸãã åæ£ãããã¯ãŒã¯ããžãªãã±ãŒã·ã§ã³ããšã«2å°ãŸãã¯3å°ã®ã³ã³ãã¥ãŒã¿ãŒããã·ã¢ã§ã¯50ãè¶ ããå ŽæããããŸãã ãµãŒããŒãžã®sshããŒãšã¯ã©ã€ã¢ã³ããžã®ãµãŒããŒäžã§sshããŒãäœæããŸãïŒã¯ã©ã€ã¢ã³ãã¯ãããã®ãã¹ã¯ãŒãã詳现ãããšãã°ããã«å ¥åããå¿ èŠããããŸã ïŒã ãµãŒããŒäžã«ç¡æ¡ä»¶ã®åæãã£ã¬ã¯ããªãäœæããŸãïŒç§ã«ãšã£ãŠã¯ããããã¯äœæ¥ã¹ã¯ãªãããopenvpnããŒãã¯ã©ã€ã¢ã³ãcronãPythonã®ãŠãŒãã£ãªãã£ã¹ã¯ãªãããC ++ãã€ããªã§ãïŒã å®éã®äŸã§ã¯ãããã¯/ var / sync / inã/ var / sync / in / cronã/ var / sync / outã§ãã ããã«ã¯ããã°ãšã顧客ããå¿ èŠãªæ å ±ïŒã¹ã¯ãªãŒã³ã·ã§ãããããã»ã¹ã¬ããŒããªã©ïŒããããŸãã åæã¹ã¯ãªãããcronãžã§ããç£èŠçšã®ããŒãããŒãã¹ã¯ãªãããã·ã¹ãã ãµãŒãã¹ã®å€æ°ã®æ§æïŒåãcupsãŸãã¯openvpnïŒããããŸãã
è€è£œã®ããã«å šäœãæºåããããšã¯ã1人ã®ãŠãŒã¶ãŒã«ã·ã¹ãã ãã€ã³ã¹ããŒã«ãããããæé
- Khint1ïŒãã¹ãåãopenvpnã®IPãããã³ãŠãŒã¶ãŒèšŒææžã«äžæã®IDãå«ãŸããŠããå ŽåïŒããšãã°ããã¹ãåãšããŠuser10.keyãxyz10ãvladivostok_10ïŒã
- Khint2ïŒããŠããããã®ãã¡ã€ã«ã®ã³ããŒãæå ã«ãããšããããšãã°/ var / sync / hostnameã/ var / sync / idã/ var / sync / location;
- ãã³ã3ïŒæªç»é²ã®ãŠãŒã¶ãŒçšã«5ã10åã®ã¢ãã¬ã¹ãäºçŽããããšã圹ç«ã¡ãŸãã
Hint2ããæèçã«ãã¡ã€ã«ãäœæããããšã¯ãããŸãããããããååšããªãããšã«ããããæ°ããããã¡ã€ã«ããã€vpnã«æ¥ç¶ããããæ確ã«ãªããŸãã
ã ããããã¹ãŠãã«ãµã«ãµãããªãã£ã¹ãæ©èœããèšç®æ©ãèµ·åããŸããã¢ããªã±ãŒã·ã§ã³ãµãŒããŒã䜿çšããrdpã«ã¯ããã¹ã¯ãããã«æ¢ã«ã·ã§ãŒãã«ããããããŸãã
ç»åãäœæããæéã§ãã
æ°ãæ£ãããŸãã å®æããæµéã·ã¹ãã ã§ç»åãäœæããå€ãã®æ¹æ³ãè©ŠããŸããã ãã®èšäºã¯æè¯ã®æ¹æ³ã§ãããšäž»åŒµãããã®ã§ã¯ãããŸããããã®æ¹æ³ãç§ã«ãšã£ãŠæé©ã§ãããšããèšããŸãããä»ã®æ¹æ³ãšãã®çæã«ã€ããŠç°¡åã«ã³ã¡ã³ãããŸãã
Clonezillaã¯çŽ æŽãããããšã§ãããã€ã³ã¿ã©ã¯ãã£ãã¢ãŒãã§ã¯ã管çè ãã300ãã€ã«é¢ããå Žæã§enikeyshchikãstè¿·ããŸãã
dd if = / dev / sda of = img.imgã¯éæ³ã®ãããªãã®ã§ãããããŒã¿ãšäžç·ã«ãã£ã¹ã¯ã®ç©ºã®éšåããã¬ããŒãžãååŸãããšãã¡ãœããã®ããªã¥ãŒã ãšé床ãæããããªããŸãã
ããŒãã³ãŽãŒã¹ã-ext4ããµããŒãããŠããŸããã
gpartedããã®ããŒãã£ã·ã§ã³ã³ããŒã¯ã¯ãŒã«ãªãã®ã§ãããæ²ããããªãåå¿è åãã§ããããŸããã
ç§ã¯é·ãéãå®ç§ãªå±éãã©ã®ããã«èŠãŠããããèªåããŠããŸããã ããã§ãç§ãã¡ã¯ãã§ã«ç§©åºã«æ°ãåãããŠããèšäºã®ãããã¯ã«è¡ããŸãã
- ç»åã¯å°ããªïŒç§ã®å Žåã¯2GBïŒãã©ãã·ã¥ãã©ã€ãã«åãŸãã¯ãã§ãã
- 1ã€ãŸãã¯2ã€ã®ãã¿ã³ãæŒããŠç»åãèšå®ããå¿ èŠããããŸãã
- å±éåŸãã€ã¡ãŒãžèªäœãåæãã管çè ã«æ°ãããã·ã³ããæ£åžžãã§ããããšããå ±åãããå¿ èŠããããŸãã
- æ°ãããã·ã³ã®ç»é²ã«ã¯ããã»ã©æéã¯ããããŸããã
- ïŒéèŠïŒïŒç»åã¯ãæ瀺ã«åŸã£ãŠã¢ããã¥ã¢ãçªã®äžããUSBãã©ãã·ã¥ãã©ã€ãã«èšé²ããå¯èœæ§ããããŸãã
- ïŒã¢ãŒã«ã€ãã¯éèŠã§ãïŒïŒã€ã¡ãŒãžã¯ããŒãžã§ã³ä»ãã§éçºãããå¯èœæ§ãé«ããããå®æçã«æŽæ°ããè¿ éã«é åžããå¿ èŠããããŸãã
å°ããªèªè»¢è»ãçºæããããå±éã¹ã¯ãªãããäœæããå¿ èŠããããŸããã PartedMagicã¯ãäžèšã®ã¿ã¹ã¯ã®ããã«éžæãããŸããã ã€ã¡ãŒãžãã©ããããã«ã¯ãunetbootin + partedmagicãŸãã¯Linuxãštar + b [g] zipãæèŒããã©ã€ãCDïŒusbïŒãå¿ èŠã§ãã ããŠã³ããŒãããã€ã¡ãŒãžã¯PartedMagicã®ãramããå®è¡ãã§ããããã©ãã·ã¥ãã©ã€ãã¯/ media / sdb1ïŒFAT32ïŒã«ããŠã³ããããŠãããšæ³å®ããŠããŸãã
ãã©ãã·ã¥ãã©ã€ãã®fat / ntfsã«é¢ãã泚æäºé
- Akhtung1 fat32ã®ãã¡ã€ã«ã»ã¯ã·ã§ã³ã¯4GBãè¶ ããŠã¯ãªãããã€ã¡ãŒãžã®ããªã¥ãŒã ãç£èŠããããext4ããŒãã£ã·ã§ã³ãéžæããŠãã ããã
- Linuxçšã®Akhtung2 NTFSãã©ãã·ã¥ãã©ã€ãã»ã¯ã·ã§ã³ãåäœããŸãããèšå€§ãªCPUæéãèŠããŸãã
ããŒãåŸããã£ã¹ã¯ïŒã»ãšãã©ã®å Žå/ dev / sda1ïŒãããŠã³ãããã·ã¹ãã å šäœããçŽæ¥ã¯ãªãã¯ããŸãã/homeã»ã¯ã·ã§ã³ãå¿ããªãã§ãã ããïŒ
mount /dev/sda1 /media/sda1
次ã«ããã£ã¹ã¯ã®ãã¹ãŠã®ã³ã³ãã³ããå«ãã¢ãŒã«ã€ããäœæããŸãã
tar -czvpf /media/sdb1/image.tgz /media/sda1
åãããšã/ homeã»ã¯ã·ã§ã³ã«ãåœãŠã¯ãŸããŸãã
mount /dev/sda5 /media/sda5 tar -czvpf /media/sdb1/home.tgz /media/sda5
次ã«ãããŒãã£ã·ã§ã³ããŒãã«ãã¹ãŒããŒãã©ãã·ã¥ãã©ã€ãã®ãã¡ã€ã«ã«ãã³ãããŸãã
sfdisk /dev/sda1 -d >parts.txt
ãããã£ãŠããã©ãã·ã¥ãã©ã€ãã«ã¯ãã¢ãŒã«ã€ããšåç §ã€ã¡ãŒãžã®ããŒãã£ã·ã§ã³ããŒãã«ãå«ããã¡ã€ã«ããããŸãã
ããŠããã¶ãŒãã«ã 以äžã¯ãã€ã³ã¿ãŒãããã®ããŸããŸãªéšåããæåéãäžåã«éããããããããã¹ããªååã®ã¹ã¯ãªããã§ãã
ã¹ã¯ãªããã®ããã¹ãå ã®èè ã®ã³ã¡ã³ãã ã³ã³ãã¥ãŒã¿ãµã€ãšã³ã¹ã®ã¬ãã¹ã³ã®ããã«è¶ èªç¶çãªããšã¯äœããããŸããã§ããããè¡ãŸã¿ãã®æ¶ã§ãããã°ãããšããã®ã¹ã¯ãªããã䜿çšããŠãã©ãã·ã¥ãã©ã€ãã§ããŒã ã·ã¹ãã ã殺ãããšãããããŸããã ãã®ãŸãŸã«ããŠããããšã¯ãå§ãããŸããã ããã¯åœŒã®ç¡æ¡ä»¶ã®é察話åããŒãžã§ã³ã§ãã
cat /pmagic/pmodules/scripts/kill_your_hdd_data.shïŒPartedMagicã®èµ·åã¹ã¯ãªããã®ãã¹ïŒ
!#/bin/bash # , , , " " . # // PartedMagic . # / , .. home # , (, ) # , #2014 (c) Urban Software LLC under GPLv3 urbansoftware.ru, usrbb.ru dd if=/dev/zero of=/dev/sda bs=512 count=1 # sleep 1s sfdisk /dev/sda < /media/sdb1/parts.txt # sleep 1s mkfs.ext4 -L "" /dev/sda1 -F # sleep 1s mkdir /media/sda1 fsck.ext4 /dev/sda1 # ( home) sleep 5s mount /dev/sda1 /media/sda1 #mount /dev/sdb1 /media/sdb1 sleep 1s mkdir /media/sda1/tmp tar -xzvpf /media/sdb1/image.tgz -C / # sleep 5s echo "This script damn work!" # , mount --bind /dev /media/sda1/dev mount --bind /sys /media/sda1/sys mount --bind /proc /media/sda1/proc chroot /media/sda1/ /bin/bash -c 'grub-install /dev/sda' # chroot /media/sda1/ /bin/bash -c 'update-grub2' sleep 5s umount /dev/sda1 umount /dev/sdb1 echo 'done, remove media, system will reboot in 30s' sleep 30s reboot exit 0
ãšãããŒã°ã®ä»£ããã«ïŒ
ãã®æ¹æ³ã¯ãLinuxããŒã¹ã®Webã¢ããªã±ãŒã·ã§ã³ã§æ å ±ããªã¹ã¯ãåããããã«Urban Softwareã§äœ¿çšãããŸãã ã»ãšãã©ã®å Žåããããã¯åœç€Ÿã®æè¡ãµããŒãã®
PSèšäºã¯å€§ããããšãå€æããŸããã 2çªç®ã®éšåã¯ããã¡ãããæåã«ãµã³ãããã¯ã¹ããã¯ããŒã«ããªãéããæ°ãããããã€ãããã³ã³ãã¥ãŒã¿ãŒã«ã察å¿ããããªã¢ãŒãcronã管çããã¹ã¯ãªãããåæããç£èŠçšã®ããŒãããŒããåä¿¡ããæ¹æ³ã«ã€ããŠèª¬æããŸãã