Senin, 02 November 2015

Cara Mengatasi (FIX) Public Key Linux Debian

biasanya terjadi:
"Reading package lists... Done
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs
7638D0442B90D010
The easiest way i’ve found to solve this problem is to do the following"


Cara Mengatasi (FIX)



Rabu, 21 Oktober 2015

Koneksikan Debian Ke Internet dan Sharingkan Internetnya

MEMBUAT SERVER GATEWAY DI DEBIAN

  1. Interface minimal harus dua, ex: wlan0 untuk ke iternet, eth0 untuk ke LAN.
  2. Setting ip address, di
nano /etc/network/interfaces dengan konfigurasi :
 # This file describes the network interfaces available on your system
 # and how to activate them. For more information, see interfaces(5).
 # The loopback network interface
 auto lo
 iface lo inet loopback
auto wlan0
iface wlan0 inet static
       address 192.168.1.200
       netmask 255.255.255.0
       gateway 192.168.1.1
       dns-nameservers 202.134.0.155
auto eth0
iface eth0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
  1. Kemudian koneksikan wlan0 ke internet dengan cara bisa melalui dektop atau melalui console, melalui console ketiikan :
Ketahui ssid dengan :
#iwlist wlan0 scan
Koneksikan ke akses point sesuai ssid, misal ssidnya ibnu,
ketiikan           :
#iwconfig wlan0 essid ibnu
cek koneksi, ping ke gateway dan ke google
  1. aktifkan NAT dengan langkah :
a. buka /etc/sysctl.conf hapus tanda pagar pada net.ipv4.ip_forward=1 (aktifkan ip forwarding)
b. aktifkan postrouting dengan perintah :
#iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o wlan0 -j MASQUERADE
c. Simpan konfigurasi iptables ke /etc/network/iptables.conf
dengan cara : iptables-save > /etc/network/iptable.conf
d. Kemudian agar iptables jalan ketika reboot dan otomatis mengambil konfigurasi di /etc/network/iptables.conf  maka lakukan perintah
#echo "iptables-restore < /etc/network/iptables.conf" >> /etc/network/if-up.d/iptables
e. Jadikan file /etc/network/if-up.d/iptables sebagai file executable dengan perintah
#chmod +x /etc/network/if-up.d/iptables 
  1. setting ip client dan aktifkan forwardnya juga, misal di windows xp, setting ip addres misal 192.168.0.34 gateway 192.168.0.1, dns 202.134.0.155, untuk mengaktifkan ip forwadnya biasanya di regedit-hkey local machine-system-current control set-services-tcpip-parameters-ipenablerouter ubah 0 menjadi 1

Sources List Linux Debian

 Sources List Linux Debian


deb-src http://security.debian.org/ wheezy/updates main
deb http://ftp.au.debian.org/debian stable main non-free
deb-src http://ftp.au.debian.org/debian stable main non-free

deb http://ftp.debian.org/debian/ wheezy-updates main non-free
deb-src http://ftp.debian.org/debian/ wheezy-updates main non-free

deb http://security.debian.org/ wheezy/updates main non-free
deb-src http://security.debian.org/ wheezy/updates main non-free