Menjalankan NFS di Fedora 19

>> Senin, 28 Oktober 2013

[root@dlp ~]# yum -y install nfs-utils
[root@dlp ~]# vi /etc/idmapd.conf
# line 5: uncomment and change to your domain name
Domain = server.world
[root@dlp ~]# vi /etc/exports
# write like below *note
/home 10.0.0.0/24(rw,sync,no_root_squash,no_all_squash)
# *note
/home ⇒ shared directory
10.0.0.0/24 ⇒ range of networks NFS permits accesses
rw ⇒ writable
sync ⇒ synchronize
no_root_squash ⇒ enable root privilege
no_all_squash ⇒ enable users' authority
[root@dlp ~]# systemctl start rpcbind.service
[root@dlp ~]# systemctl start nfs-server.service
[root@dlp ~]# systemctl start nfs-lock.service
[root@dlp ~]# systemctl start nfs-idmap.service
[root@dlp ~]# systemctl enable rpcbind.service
[root@dlp ~]# systemctl enable nfs-server.service
[root@dlp ~]# systemctl enable nfs-lock.service
[root@dlp ~]# systemctl enable nfs-idmap.service 

Read more...

Disable IPV6 pada ubuntu

edit file sysctl.conf

sudo gedit /etc/sysctl.conf
Tambahkan baris berikut pada bagian akhir

# IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
restart sysctl

sudo sysctl -p

Read more...

Mematikan netfilter dan firewall di Ubuntu 12.04

>> Rabu, 16 Januari 2013

Secara tiba-tiba, semua port di ubuntu 12.04 menutup semua. Coba cek aplikasi semua running, coba nmap localhost semua port aplikasi terbuka, netstat -ltn juga menunjukkan semua port open dan listening di 0.0.0.0 lalu kenapa tidak bisa diakses dari network?

Kecurigaan terarah pada setting firwall dan menggunakan perintah

$ sudo ufw disable

untuk mematikan settingan netfilter dan firewall, semua port aplikasi terbuka kembali

Read more...

Membuka fungsi ssh pada Buffalo LinkStation Pro

>> Senin, 07 Januari 2013

secara default service ssh pada buffalo linkstation Pro sudah jalan, tetapi  root tidak memiliki hak akses ke servis ssh. Berikut trik agar kita dapat melakukan ssh ke linkstation pro.


Enabling ssh login - Tested in FW 1.34 and 1.37
Assuming that your NAS IP is static 192.168.0.10

Using only acp_commander:
First you can test if your nas will accept the following comands, just do a "ls /" and see the result. If you see your "/" folders, its ok:
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "ls /"

change root password:
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "(echo newrootpass;echo newrootpass)|passwd"


allow root to login on ssh - (this is one way to do it, the other way i know is to remove root from /etc/ftpusers)
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"


Only for fw 1.37 - execute this additional command to enable root login on ssh
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"


restart ssh service
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"

Read more...

  © Blogger templates Sunset by Ourblogtemplates.com 2008

Back to TOP