Postingan

Menampilkan postingan dari Juni, 2019

Cara menguplod file ke github

Buat account github Buat repository Gunakan alamat repository yang akan dipakai, contoh:  git remote add origin https://github.com/username/new_repo Ke direktori file file yang akan di uplod Misalnya cd /home/myproject git init git add nama_file atau nama_direktori atau . (tanda titik untuk semua file) git commit -m "My first project"  (pesan untuk catatan) git push origin master Cek git status

Cara konfigurasi Web Server IIS di Windows Server Core dengan PowerShell

Gambar
Di Linux biasa menggunakan Bash Shell kini di Windows akan mencoba untuk menggunakan PowerShell, pada post ini akan melakukan konfigurasi Web Server IIS, secara konsep sama kalau biasanya yang mulai belajar dari Linux menggunakan Apache dengan menginstall paket apache2, mengupload/mengedit file di /var/www, mengaktifkan modul, mencopy/mengedit file virtualhost di /etc/apache2/sites-available, sekarang akan mencoba melakukan hal-hal tersebut dengan menggunakan Windows Server Core, semua konfigurasi akan dilakukan dengan mode CLI melalui PowerShell. Oh ya sebelumnya pastikan Windows Server Core sudah mempunyai Hostname, IP, DNS bisa dikonfigurasi dengan perintah sconfig kemudian ikuti menu yang ada. Di DNS Server (bisa pakai Windows DNS Server/Linux Bind9/software lainnya) buat record untuk www.nusantara.cloud dan www.winskill.com  ke IP Windows Server Core. Disini DNS Server dengan IP: 192.168.1.189 Web Server dengan IP: 192.168.1.111 akan melayani 2 web yaitu ww

Dasar konfigurasi NFS Server di Debian

fileserver IP = 192.168.1.1 Konfigurasi di fileserver fileserver#apt-get install nfs-kernel-server fileserver#mkdir -p /data/marketing fileserver#nano /etc/exports edit/tambahkan /data/marketing 192.168.1.0/24(rw,no_root_squash) fileserver#/etc/init.d/nfs-kernel-server restart client1#apt-get install nfs-common client1#mkdir /mnt/marketing client1#mount -t nfs 192.168.1.1:/data/marketing /mnt/marketing Kini NFS server sudah dimount di lokal /mnt/marketing, file yang tersimpan di /mnt/marketing folder akan tersimpan di server juga.  Untuk NFS options lainnya bisa dilihat disini  https://www.server-world.info/en/note?os=Debian_9&p=nfs&f=1 Agar saat reboot mount tidak hilang bisa disimpan di file /etc/fstab seperti berikut edit/tambahkan 192.168.1.1:/data/marketing  /mnt/marketing  nfs  defaults  0   0

How to configure freeradius with local users

Gambar
OS: Debian9 Package: Freeradius 3.0 Hostname: srv1 This is step by step how to configure freeradius with local users (/etc/passwd) In this scenario, I want to create 100 users with a password and no shell login to the system capability that can be done with the following commands: for i in `seq 1 1 100` do useradd user$i echo -e "P@ssw0rd\nP@ssw0rd" | passwd user$i done common-auth-radius  is for radius users Edit like below: And then configure no login with PAM pam_list_file in the /etc/pam.d/common-auth to limit login to the system Only users in the /etc/loginusers can login to the system Create a file loginusers in the /etc/ Because FreeRADIUS 3 no longer accepts "Auth-Type := System". It's by default use unix pasword so we want to just configure for client use like belo w: /etc/init.d/freeradius restart Testing in srv2, we need to install freeradius-utils for testing purpose, use radtest