Page 1 of 1

ubuntu 20 setup

Posted: Sat Jan 08, 2022 1:14 pm
by Stevyn
https://nielsendigital.com/2021/07/03-u ... ity-setup/

fail2ban:

Code: Select all

apt install fail2ban
set TZ

Code: Select all

dpkg-reconfigure tzdata

Re: ubuntu 20 setup

Posted: Sat Jan 08, 2022 1:43 pm
by Stevyn
disable cloud init

Code: Select all

touch /etc/cloud/cloud-init.disabled

Re: ubuntu 20 setup

Posted: Sun Jan 09, 2022 11:54 am
by Stevyn
Smartmontools is a set of applications that can test hard drives and read their hardware SMART statistics. Note: SMART data may not accurately predict future drive failure, however abnormal error rates may be an indication of possible hardware failure or data inconsistency.

Code: Select all

apt-get install smartmontools

Re: ubuntu 20 setup

Posted: Sun Jan 09, 2022 1:07 pm
by Stevyn

Code: Select all

apt install lm-sensors
sensors-detect
sensors

Re: ubuntu 20 setup

Posted: Mon Jan 10, 2022 11:20 am
by Stevyn
netstat

Code: Select all

apt install net-tools
use:

Code: Select all

netstat -tlpn

Re: ubuntu 20 setup

Posted: Sat Jan 15, 2022 2:05 pm
by Stevyn
https://github.com/ytdl-org/youtube-dl/ ... stallation

youtube-dl
happy4: music8:

Code: Select all

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

Re: ubuntu 20 setup

Posted: Sun Jan 16, 2022 5:13 pm
by Stevyn
HowTo: Configure Linux To Track and Log Failed Login Attempt Records

https://www.cyberciti.biz/tips/rhel-cen ... login.html

lock user account to 180 seconds after failed login, enter:

Code: Select all

# faillog -l 180 -u name
Set Maximum Number of Login Failures

Code: Select all

faillog -m 10 -u name