dd if=/dev/zero of=/var/swapfile bs=1k count=1048
dd if=/dev/zero of=/var/swapfile bs=1M count=1048
chmod 600 /var/swapfile
mkswap /var/swapfile
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab
swapon -aSemoga bermanfaat
Layanan Konsultasi
resumedini@gmail.com
Senin s/d Jum'at : 19:00 - 21:00
Sabtu : 8:30 - 14:00
dd if=/dev/zero of=/var/swapfile bs=1k count=1048
dd if=/dev/zero of=/var/swapfile bs=1M count=1048
chmod 600 /var/swapfile
mkswap /var/swapfile
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab
swapon -aSemoga bermanfaat
## RHEL/CentOS 6 32-Bit ## # wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm ## RHEL/CentOS 6 64-Bit ## # wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
# yum repolist
Loaded plugins: downloadonly, fastestmirror, priorities Loading mirror speeds from cached hostfile * base: centos.aol.in * epel: ftp.cuhk.edu.hk * extras: centos.aol.in ....
## Sebagai contoh akan mendapatkan informasi mengenai zabbix, sebagai awal instalasi zabbix
# yum --enablerepo=epel info zabbix
Available Packages Name : zabbix Arch : i386 Version : 1.4.7 Release : 1.el5 Size : 1.7 M Repo : epel Summary : Open-source monitoring solution for your IT infrastructure URL : http://www.zabbix.com/ License : GPL Description: ZABBIX is software that monitors numerous parameters of a network.
## Instalasi paket zabbix menggunakan Repo EPEL
# yum --enablerepo=epel install zabbix
Semoga Bermanfaat.
wget -q -O - http://www.atomicorp.com/installers/atomic |sh
yum install openvas
openvas-setup
openvas-certdata-sync
openvasmd --rebuild
openvasmdSetelah selesai dalam hal instalasi dan konfigurasi, buka :
http://localhost:9392Jika terjadi error seperti berikut :
error: openvasmd: undefined symbol: sqlite3_errstrSolusinya ialah :
vi /etc/init.d/openvas-manager
start() {
echo "Starting $progname:"
#daemon --pidfile=/var/run/$prog.pid $prog $OPTIONS
$prog --listen=127.0.0.1
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
return $RETVAL
}
yum install atomic-sqlite-sqlite-devel.x86_64
yum remove epel-release
rm -rf /var/cache/yum/x86_64/6/epel
yum -y install epel-release
sudo adduser newuser
sudo passwd newuser
sudo /etc/sudoers4. Meambahkan dan mematika akses root
#root ALL=(ALL) ALL
newuser ALL=(ALL) ALL
sudo userdel -r olduser6. Mengaktifkan permited root dan pembatasan akses user ke root
vi /etc/sshd/sshd_config
# Authentication:
PermitRootLogin no
StrictModes yes
MaxAuthTries4
MaxSessions 2Semoga bermanfaat
sudo adduser newuser
sudo passwd newuser
sudo /etc/sudoers
nano /usr/local/etc/sudoers ==> untuk FreeNAS
#root ALL=(ALL) ALL
newuser ALL=(ALL) ALL
sudo userdel -r olduser6. Mengaktifkan permited root dan pembatasan akses user ke root
vi /etc/sshd/sshd_config
# Authentication:
PermitRootLogin yes
StrictModes yes
MaxAuthTries 6
MaxSessions 4Semoga bermanfaat
Konten blog ini adalah ekspresi kami dalam proses pembelajaran menulis suatu artikel dari hasil pemikiran dan kajian, sudah selayaknya konten blog ini dibagikan kepada masyarakat indonesia pada khususnya dan pengguna internet di seluruh dunia pada umumnya.