You have attached a new EBS volume Use ‘fdisk -l’ to find. first disk is the boot disk of your EC2 subsequent disks are the ones you have attached. root@host ]# fdisk -l WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own Disk /dev/xvda: 8589 MB, 8589934592 bytes, 16777216 sectors Units = […]
Adding a partition – AWS EBS
Google cloud debian – nslookup is missing
nslookup missing Have to install it. user @iowa_f1:~$ sudo apt-get install dnsutils -y Reading package lists… Done Building dependency tree Reading state information… Done dnsutils is already the newest version (1:9.11.5.P4+dfsg-5.1+deb10u3). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. This will install nslookup and dig. Dig is a dns inquire program, that is a bit more […]
The story of a domain hijacking
Interesting story. https://www.perl.com/article/the-hijacking-of-perl-com/
Large .cache directory – Linux
[user@myhost .cache]$ du -sh 72M . So what is this? Pip cache ‘pip cache dir’ [user@myhost ~]$ pip cache dir /home/user/.cache/pip [user@myhost ~]$ to clean – ‘pip cache purge’ [user@myhost ~]$ pip cache purge Files removed: 155 check the space [user@myhost .cache]$ du -sh 2.5M . [user@jibsheet .cache]$ 95% or more reduction of space.
Some sendmail tips with AWS and Debian
Configuration strings use left tick – hex 60 on left, hex 27 at the end. PAY attention error – DNS Host unknown (Name server: ‘some-smtp.server.com’) This error is caused by using python/bash like single ticks on both sides `SMART_HOST’, `email-smtp.eu1.amazonaws.com’ AWS uses port 587 – don’t even bother trying to use port 22. it will not respond. this will appear […]
xz extension – what is it?
I was playing around with SuSE distribution and found the messages archived with xz extension. It appears to work with zgrep. Here is the documentation https://github.com/xz-mirror/xz 0. Overview ———– XZ Utils provide a general-purpose data-compression library plus command-line tools. The native file format is the .xz format, but also the legacy .lzma format is supported. The .xz format supports […]
Crontab – tips and reference
Crontab tips edit – “contrab -e” to list “crontab -l” Link to Manpage online – https://man7.org/linux/man-pages/man5/crontab.5.html // shamelessly stolen from stackoverflow crontab does not understand “intervals”, it only understands “schedule” valid hours: 0-23 — valid minutes: 0-59 example #1 30 * * * * your_command this means “run when the minute of each hour is 30” (would run at: 1:30, […]
Time testing for Python – Linux
This has always been a hot topic. Especially since Y2k. How to test those monthly, yearly transitions. Here is a blog that explains the tools available https://adamj.eu/tech/2020/06/03/introducing-time-machine/ freezegun – https://github.com/spulec/freezegun