Escolar Documentos
Profissional Documentos
Cultura Documentos
# echo $HOSTNAME
# vi /etc/hostname
$ echo $HOSTNAME
Update or Upgrade CentOS Minimal Install
Install PHP
# SSH –V
Or
# SSHD –V
Use Secure Protocol over the default SSH Protocol and change port
number also for extra Security. Edit the SSH configuration file
‘/etc/ssh/sshd_config‘.
Uncomment the line below line or delete 1 from the Protocol string, so
the line seems like:
Disable SSH ‘root login‘ and allow to connect to root only after login to
normal user account for added additional Security. For this, open and
edit configuration file ‘/etc/ssh/sshd_config‘ and change
Install Java
Add service tomcat and default port (8080) through firewall and reload
settings.
Now it’s time to secure tomcat server, create a user and a password to
access and manage. We need to edit file ‘/etc/tomcat/tomcat-
users.xml‘. See the section which looks like:
<tomcat-users>
....
</tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<user username="username" password="username" roles="manager-
gui,manager-script,manager-jmx,manager-status,admin-gui,admin-
script"/>
</tomcat-users>
# systemctl stop tomcat
# systemctl start tomcat
# systemctl enable tomcat.service
FirewallD Configuration
Installing Wget
Installing Telnet
# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.740-
1.noarch.rpm
# rpm -ivh webmin-*.rpm
Edit a few fields and leave other as it is, unless you know what you are
doing.
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
# firewall-cmd --add-port=21/tcp
# firewall-cmd –reload
# systemctl restart vsftpd
# systemctl enable vsftpd
# visudo
Install and Use Linux Malware Detect (LMD) with ClamAV as Antivirus
Engine
# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
# tar -xvf maldetect-current.tar.gz
# ls -l | grep maldetect
# ./install.sh
Summing up, the lines with these variables should look as follows in
/usr/local/maldetect/conf.maldet:
email_alert=1
email_addr=gacanepa@localhost
email_subj="Malware alerts for $HOSTNAME - $(date +%Y-%m-%d)"
quar_hits=1
quar_clean=1
quar_susp=1
clam_av=1
# cd /var/www/html
# wget http://www.eicar.org/download/eicar.com
# wget http://www.eicar.org/download/eicar.com.txt
# wget http://www.eicar.org/download/eicar_com.zip
# wget http://www.eicar.org/download/eicarcom2.zip
# maldet --scan-all /var/www/
# maldet --scan-all /var/www/*.zip
# maldet --report 021015-1051.3559
# ls –l
# rm -rf /usr/local/maldetect/quarantine/*
In case that,
# maldet --clean SCANID
Final Considerations
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
SHELL=/bin/bash
END
$ playonlinux
2. wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-
latest.tar.gz
4. # ls
# ./ies4linux
It will list all installed mysql packages on your system. Eg: mysql-libs-
5.1.73-3.el6_5.x86_64
mariadb-server-5.5.56-2.el7.x86_64
mariadb-libs-5.5.56-2.el7.x86_64
mariadb-5.5.56-2.el7.x86_64
subscription-manager identity
Confgure subscription
subscription-manager
rhn_register
View system profile
sosreport
dmidecode
lstopo
lscp
/etc/redhat-release
sosreport
dmidecode
lstopo
lscp
BASIC CONFIGURATION
Graphical confguration tools
gnome-control-center
Confgure network
nmcli
nmtui
nm-connection-editor
Confgure keyboard
Localectl
Confgure printer
system-confg-printer
Confgure SSH
/etc/ssh/ssh_confg
/etc/ssh/sshd_confg
~/.ssh/confg ssh-keygen
SOFTWARE MANAGEMENT
Install software
yum install
yum group install
Update software
yum update
Upgrade software
yum upgrade
View software
version