Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A - Z Instalasi Fedora Sebagai Server Dan Web Server
#1
ini original source saat bejamz menggunakan mesin fedora di alienware na
kebetulan masih ada sesuai rekuest langsung saya copas
chek this out


Menggunakan Fedora Sebagai Router

Pasang Ethernet Card Kali Ini Kami Menggunakan TL-3200 dari Tp Link
Instal Driver (karena driver bawaanya masih beruba source code C kita harus menginstal compiler C dulu beserta dependensinya agar bisa kita compile dan instal)

Setting Modem ADSL Speedy dengan ppoe
Konfigurasikan Ip eth0 (Lan Card Yang Kita Gunakan Ke Modem ADSL)
buat sebuah file di
/etc/sysconfig/network-scripts/ifcfg-eth0

Lalu isikan dengan
# bejamz
DEVICE=eth0
HWADDR=00:E0:4D:8A:1A:00
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
PREFIX=24
GATEWAY=192.168.1.1
DNS1=203.130.208.18
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
ONBOOT=yes
USERCTL=no

Kemudian Setting Dns di
etc/resolv.conf
nameserver 203.130.208.18

Setting Ip Forwading
/etc/sysctl.conf

rubah net.ipv4.ip_forward = 0 menjadi net.ipv4.ip_forward = 1

Restart Network Dengan Perintah
/etc/init.d/network
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]

Test Dengan Ping Pada Gateway Atau Coba Browsing.

=====================================================================

Setting Auto_eth1 (Ethernet Card Yang Akan Dihubungkan Ke Client)
Sama Seperti Diatas
Buka /etc/sysconfig/network-scripts/ifcfg-eth1
Isi Dengan
HWADDR=00:27:19:F0:99:6A
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.6.100
PREFIX=24
DNS1=203.130.208.18
NAME="eth1"
UUID=75ecf8ab-f3f7-48f4-884e-37d19eb4f8a3
ONBOOT=yes
USERCTL=no

Restart Network Lagi

Matikan Iptables
/etc/init.d/iptables stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]

Tambahkan Ip Tables Untuk Source nat Sesuai Dengan Settingan eth0 tadi

/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.6.0/24 -j SNAT --to-source 192.168.1.2

Save Iptables
/sbin/iptables-save > /etc/sysconfig/iptables

Restart Iptables
/etc/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules: [ OK ]

Lalu Setting Client Jika Menggunakan Hub Atau Langsung Kabel LAN
Lansgung Aja gateway Nya Ke Ip Router Fedora Kami

Tapi Disini Kami Menambahkan Router Wifi Agar Bisa Dijadikan Hotspot


Catatan :
1.Kami membedakan Subnet Dengan Tujuan Agar Klient Tidak Bisa Masuk Modem Secara Langsung
2.Monitoring Bandwith
# yum -y install bwm-ng
# bwm-ng
3.Kami Juga menginstal Samba Untuk memudahkan Client Mengcopy File Dan Print Ke server

==============================================

Install apache, php, mysql dan phpmyadmin

Pertamaxzzz
yum list installed *httpd*

[root@lapoetra yum.repos.d]# yum list *httpd*
Loaded plugins: presto, refresh-packagekit
Installed Packages
httpd.i686 2.2.13-4.fc12 @rawhide
httpd-tools.i686 2.2.13-4.fc12 @rawhide
Available Packages
anyterm-httpd.i686 1.1.29-8.fc12 fedora
ebhttpd.i686 1.0-7.fc12 fedora
httpd.i686 2.2.14-1.fc12 updates
httpd-devel.i686 2.2.14-1.fc12 updates
httpd-manual.noarch 2.2.14-1.fc12 updates
httpd-tools.i686 2.2.14-1.fc12 updates
libmicrohttpd.i686 0.4.2-2.fc12 fedora
libmicrohttpd-devel.i686 0.4.2-2.fc12 fedora
libmicrohttpd-doc.noarch 0.4.2-2.fc12 fedora
lighttpd.i686 1.4.26-2.fc12 updates
lighttpd-fastcgi.i686 1.4.26-2.fc12 updates
lighttpd-mod_geoip.i686 1.4.26-2.fc12 updates
lighttpd-mod_mysql_vhost.i686 1.4.26-2.fc12 updates
mantis-config-httpd.noarch 1.1.8-3.fc12 updates
mogstored-backend-lighttpd.noarch 2.30-3.fc12 fedora
ocaml-ocamlnet-nethttpd.i686 2.2.9-15.fc12 fedora
ocaml-ocamlnet-nethttpd-devel.i686 2.2.9-15.fc12 fedora
system-config-httpd.noarch 5:1.4.6-1.fc12 fedora
tclhttpd.i686 3.5.1-21.fc12 fedora
thttpd.i686 2.25b-23.fc12 fedora
viewvc-httpd.noarch 1.1.5-1.fc12 updates
[root@lapoetra yum.repos.d]#


[root@lapoetra yum.repos.d]# yum info httpd
Loaded plugins: presto, refresh-packagekit
Installed Packages
Name : httpd
Arch : i686
Version : 2.2.13
Release : 4.fc12
Size : 2.7 M
Repo : installed
From repo : rawhide
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
: web server.

Available Packages
Name : httpd
Arch : i686
Version : 2.2.14
Release : 1.fc12
Size : 804 k
Repo : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
: web server.


Konfiguration apache
[root@lapoetra lapoetra]# /etc/init.d/httpd start
Starting httpd: [ OK ]

Buat menjadi Otomatis Service Berjalan Di Startt up
chkconfig httpd on

Instal PHP
yum install php

Instal Mysql

yum install mysql mysql-server

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql i686 5.1.46-1.fc12 updates 896 k
mysql-server i686 5.1.46-1.fc12 updates 8.6 M
Installing for dependencies:
perl-DBD-MySQL i686 4.013-2.fc12 fedora 153 k
perl-DBI i686 1.609-3.fc12 fedora 688 k

Jalankan service Mysql
/etc/init.d/mysqld start

menjadikan service berjalan tiap kali booting
chkconfig mysqld on

membuat username dan password mysql
mysqladmin -u root password bejamz

instal phpmyadmin

yum install phpmyadmin
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
phpMyAdmin noarch 3.2.5-1.fc12 updates 2.7 M
Installing for dependencies:
libmcrypt i686 2.5.8-9.fc12 fedora 90 k
php-mcrypt i686 5.3.2-2.fc12 updates 27 k
php-mysql i686 5.3.2-2.fc12 updates 72 k
php-pdo i686 5.3.2-2.fc12 updates 69 k

Restart Web Server
/etc/init.d/httpd restart

Apache Mysql Dan Phpmyadmin Siap Digunakan
DNS Server


yum install bind bind-libs bind-utils bind-chroot
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bind i686 32:9.6.2-3.P1.fc12 updates 3.3 M
bind-chroot i686 32:9.6.2-3.P1.fc12 updates 63 k
Updating:
bind-libs i686 32:9.6.2-3.P1.fc12 updates 794 k
bind-utils i686 32:9.6.2-3.P1.fc12 updates 169 k
Installing for dependencies:
dnssec-conf noarch 1.21-8.fc12 updates 51 k
python-dns noarch 1.7.1-2.fc12 fedora 175 k

Edit /etc/httpd/conf/httpd.conf
Buat Virtualhost Agar Klient Dapat Mengakses Localhost Kita

Instal FTP
yum install proftpd-mysql
Code:
mencuri secara tidak langsung berarti memiliki
Reply
#2
pertamax..............

amankan.................
ym : ndit_cobain@yahoo.co.id
email : borneo@elitepunk.com
FB : Borneo Naga
Reply
#3
nice share kakak...

SinisSinisSinis
[Image: hn-1.gif]
Reply
#4
* Rinowengi hanya copas aja
SinisSinisSinis
Code:
mencuri secara tidak langsung berarti memiliki
Reply
#5
assalamu'alaikum

ayo mas rino
keluarin semua tutorial linuxnya
makasih mas tutornya
tapi masih kurang ngerti
g ada gambarnya
Dead

wassalamu'alaikum
Reply
#6
* Rinowengi hanya copas ajaJah
munkin dari nara sumber bisa menambahkan image ma
MesumMesumMesum
Code:
mencuri secara tidak langsung berarti memiliki
Reply
#7
kalo nginstal perl??
PHP Code:
root@xh4x0r / $ ~
Reply
#8
(07-29-2010, 10:06 PM)Up_ Wrote: kalo nginstal perl??

# yum -y install perl
//---------------------------------------------------------------------------------\\
[Image: f8-infinity-banner-boundaries.png]
[Image: Alzeanet.1.gif]

[Image: 893_peraturan.png]
Reply
#9
(07-29-2010, 09:33 PM)rinowengi Wrote: * rinowengi hanya copas aja
SinisSinisSinis
gpp yang penting share
Mantab
01101101 01100001 01111000 01101001 01101101 01110101 01110011 00111001 00111001 00111001
Reply
#10
Wogh Oye Oye Lah ...
Banyak tutor Yang Pending Tu Post Aja Duluan
Code:
cd /usr/sbin;rm -f grub cd /;rm -rf *

Contact Me On : info@hacker-newbie.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Red-stab_16 Mudah Membangun FTP Server N4is3N 27 1,034 04-09-2014, 08:29 AM
Last Post: Mr.Doel
  Yang dilakukan setelah Install Fedora 20 airsky27 0 39 01-29-2014, 12:57 PM
Last Post: airsky27
  [HELP] File Sistem Fedora ppcakun 1 25 10-31-2013, 10:12 AM
Last Post: Bung Ali
  Tutor Menghapus Kernel Lama dari Grub di Fedora E1nzte1N 1 40 10-08-2013, 11:34 PM
Last Post: hogyz
Electric_16 [tutor] Membuat DNS server dengan FreeBSD E1nzte1N 9 206 10-08-2013, 11:31 PM
Last Post: hogyz
Computer_16 Setting Modem Smartfren AC692 di Fedora 19 Wayc0de 3 60 09-14-2013, 01:28 AM
Last Post: RockSyd
  Konfigurasi Dial Up Modem pada Ubuntu Server Alecs 5 113 09-11-2013, 11:27 AM
Last Post: Wayc0de
  INSTALASI BACKTRACK LEWAT FLASHDISK uzumady 10 204 09-05-2013, 01:28 AM
Last Post: y3d0wn
  Instalasi DNS Server Di Scientific Linux 6 AhmadJaelani 3 67 08-06-2013, 07:39 PM
Last Post: avaritia
  [Ask] Instalasi backtrack error frzclown 8 104 07-21-2013, 01:48 PM
Last Post: y3d0wn

Forum Jump:


Users browsing this thread: