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 yait...

Dasar konfigurasi NFS Server di Debian

Kon figurasi NFS Server dan Client di Linux Contoh: IP Fileserver: 192.168.1.1 1. Konfigurasi di Fileserver (NFS Server) Install layanan NFS Server: apt-get install nfs-kernel-server Buat direktori yang akan di-share: mkdir -p /data/marketing Edit file konfigurasi export: nano /etc/exports Tambahkan baris berikut: /data/marketing 192.168.1.0/24(rw,no_root_squash) Penjelasan: rw → Client bisa read & write no_root_squash → User root di client tetap dianggap root di server Restart layanan NFS: /etc/init.d/nfs-kernel-server restart 2. Konfigurasi di Client Install NFS client: apt-get install nfs-common Buat mount point: mkdir /mnt/marketing Mount NFS share: mount -t nfs 192.168.1.1:/data/marketing /mnt/marketing 3. Hasil Sekarang NFS server sudah berhasil di-mount pada: /mnt/marketing Semua file yang disimpan di folder tersebut akan otomatis tersimpan di server NFS. 4. Mount Otomatis Saat Boot Agar mount tidak hilang setelah reboot, tambahkan di: n...

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 ...