Difference between revisions of "SchoolOnffLine: Instalasi dan Konfigurasi Server Standard"

From OnnoWiki
Jump to navigation Jump to search
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
su -
+
su -
 
  cp /etc/resolv.conf /etc/resolv.conf.nawala
 
  cp /etc/resolv.conf /etc/resolv.conf.nawala
 +
ifconfig eth0:254 192.168.0.254
 +
vi /etc/hosts
 +
 +
  192.168.0.254  sekolah.sch.id sekolah www.sekolah.sch.id
 +
 +
Entah kenapa Instalasi mysql-server agak tricky. Sebaiknya dilakukan manual
 +
 +
apt-get install mysql-server
 +
 +
Sampai "hang". Melalui terminal lain cek
 +
 +
ps ax
 +
 +
4912 pts/4    S+    0:00 /bin/bash -e /var/lib/dpkg/info/mysql-server-5.1.pos...
 +
 +
$ sudo kill 4912
 +
 +
 +
Lakukan instalasi Server lainnya menggunakan perintah
 +
 
  apt-get install dhcp3-server postfix apache2 mysql-server libmysqlclient15-dev libphp-adodb \
 
  apt-get install dhcp3-server postfix apache2 mysql-server libmysqlclient15-dev libphp-adodb \
 
  libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear unzip php5-xmlrpc vsftpd \
 
  libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear unzip php5-xmlrpc vsftpd \
 
  libnet-ssleay-perl openssh-server catdoc dnsutils bind9 ntp tinyproxy dansguardian smbfs \
 
  libnet-ssleay-perl openssh-server catdoc dnsutils bind9 ntp tinyproxy dansguardian smbfs \
 
  samba vsftpd ubiquity ubiquity-frontend-gtk ubiquity-ubuntu-artwork ubiquity-casper \
 
  samba vsftpd ubiquity ubiquity-frontend-gtk ubiquity-ubuntu-artwork ubiquity-casper \
  dovecot-common dovecot-imapd dovecot-pop3d postfix squirrelmail squirrelmail-decode
+
  dovecot-common dovecot-imapd dovecot-pop3d postfix squirrelmail squirrelmail-decode unrar \
 
+
debmirror php-pear php5-gd php5-imap php5-odbc  php5-pgsql apache2 \
 +
mysql-server libmysqlclient15-dev libphp-adodb libgd2-xpm libgd2-xpm-dev php5-mysql \
 +
php5-gd php5-curl php-pear  php5-xmlrpc libnet-ssleay-perl libsyncml-dev libsyncml-utils \
 +
rsync nfs-common nfs-kernel-server
  
 
----
 
----
Line 18: Line 41:
  
 
  cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
 
  cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
 +
cp -Rf /usr/local/src/etc/* /etc
 +
cp -Rf /usr/local/src/var/* /var
 +
cp -Rf /usr/local/src/usr/* /usr
 
  cp /etc/resolv.conf /etc/resolv.conf.nawala
 
  cp /etc/resolv.conf /etc/resolv.conf.nawala
 
+
 
  mkdir /var/data
 
  mkdir /var/data
 
  mkdir /var/data/public
 
  mkdir /var/data/public
 
  mkdir /var/data/repo
 
  mkdir /var/data/repo
 
  mkdir /var/www/ubuntu
 
  mkdir /var/www/ubuntu
  chown -Rf nobody.nogroup /var/data
+
mkdir /var/www/library
  chmod -Rf 777 /var/data
+
  chown -Rf nobody.nogroup /var/data &
  chown -Rf www-data.www-data /var/www/ubuntu
+
  chmod -Rf 777 /var/data &
  chmod -Rf 777 /var/www/ubuntu
+
  chown -Rf www-data.www-data /var/www/library &
  mv /usr/local/src/tik /var/data
+
  chown -Rf www-data.www-data /var/www/ubuntu &
  mv /usr/local/src/internetsehat /var/data
+
  chown -Rf www-data.www-data /var/www/ &
 +
chmod -Rf 777 /var/www/library &
 +
  chmod -Rf 777 /var/www/ubuntu &
 +
chmod -Rf 777 /var/www/ &
 
  rm /var/www/index.*
 
  rm /var/www/index.*
 
+
 
  mkdir /home/ftp
 
  mkdir /home/ftp
 
  chown -Rf root.root /home/ftp
 
  chown -Rf root.root /home/ftp
Line 38: Line 67:
 
  mkdir /home/ftp/pub/repo
 
  mkdir /home/ftp/pub/repo
 
  chown -Rf ftp.nogroup /home/ftp/pub
 
  chown -Rf ftp.nogroup /home/ftp/pub
 
+
 
 +
mkdir /var/data
 +
mkdir /var/data/public
 +
mkdir /var/data/repo
 +
chown -Rf nobody.nogroup /var/data &
 +
chmod -Rf 777 /var/data &
 +
 +
chown -Rf root.root /var/data/repo &
 +
chmod -Rf 571 /var/data/repo  &
 +
mkdir /var/data/mirrorkeyring
 +
gpg --no-default-keyring --keyring /var/data/mirrorkeyring/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg
 +
 
  cd /usr/local/src/
 
  cd /usr/local/src/
  tar zxvf webmin-1.490.tar.gz  
+
  tar zxvf webmin-1.550.tar.gz  
 +
/usr/sbin/squirrelmail-configure
 +
  2 -> 1 -> sekolah.sch.id  -> S -> Q
  
  
 
----
 
----
  
  /usr/sbin/squirrelmail-configure
+
  vi /etc/dovecot/dovecot.conf
  2 -> 1 -> sekolah.sch.id  -> S -> Q
 
  
 +
mail_location = mbox:~/mail:INBOX=/var/mail/%u
  
 
----
 
----
  
  vi /etc/dhcp3/dhcpd.conf
+
  vi /etc/dhcp/dhcpd.conf
  
 
  ddns-update-style none;
 
  ddns-update-style none;
 
  option domain-name "sekolah.sch.id"
 
  option domain-name "sekolah.sch.id"
  option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220;
+
  option domain-name-servers 192.168.0.254;
 
  default-lease-time  86400; # 24 jam
 
  default-lease-time  86400; # 24 jam
 
  max-lease-time      172800; # 48 jam
 
  max-lease-time      172800; # 48 jam
Line 88: Line 130:
 
----
 
----
  
  vi /etc/tinyproxy/tinyproxy.conf
+
  vi /etc/tinyproxy.conf
  
 
  # User nobody
 
  # User nobody
Line 141: Line 183:
  
  
==Restart Apache Web Server==
+
----
 +
 
 +
vi /etc/export.contoh
 +
 
 +
/home/backup *(ro,sync,subtree_check)
 +
/home/backup/public *(rw,sync,subtree_check)
 +
/home/library *(ro,sync,subtree_check)
 +
/home/media *(ro,sync,subtree_check)
 +
 
 +
----
 +
 
 +
vi /etc/rsyncd.conf
  
  # /etc/init.d/apache2 restart
+
  pid file = /var/run/rsyncd.pid
 +
max connections = 5
 +
use chroot = yes
 +
uid = nobody
 +
gid = nogroup
 +
[backup]
 +
path=/folder/tempat/backup
  
 +
==Restart Apache Web Server==
  
 +
/etc/init.d/apache2 restart
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 +
* [[SchoolOnffLine: Desktop Berbasis Ubuntu menggunakan Remastersys]]
 
* [[Remaster Ubuntu untuk SchoolOnffLine Menggunakan UCK]]
 
* [[Remaster Ubuntu untuk SchoolOnffLine Menggunakan UCK]]
 
* [[SchoolOnffLine: Server Berbasis Sabily 9.04]]
 
* [[SchoolOnffLine: Server Berbasis Sabily 9.04]]
 
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04]]
 
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04]]
 +
* [[SchoolOnffLine: Server Berbasis Ubuntu]]
 
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04 Alternate]]
 
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04 Alternate]]
 
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04 Server]]
 
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04 Server]]
 
* [[SchoolOnffLine: Server Wikipedia for School]]
 
* [[SchoolOnffLine: Server Wikipedia for School]]
 
* [[Remastering Ubuntu]]
 
* [[Remastering Ubuntu]]
 +
 +
[[Category: Linux]]
 +
[[Category: Distro Linux]]
 +
[[Category: SchoolOnffLine]]

Latest revision as of 13:20, 14 August 2011

su -

cp /etc/resolv.conf /etc/resolv.conf.nawala
ifconfig eth0:254 192.168.0.254
vi /etc/hosts
  192.168.0.254  sekolah.sch.id sekolah www.sekolah.sch.id

Entah kenapa Instalasi mysql-server agak tricky. Sebaiknya dilakukan manual

apt-get install mysql-server

Sampai "hang". Melalui terminal lain cek

ps ax
4912 pts/4    S+     0:00 /bin/bash -e /var/lib/dpkg/info/mysql-server-5.1.pos...
$ sudo kill 4912


Lakukan instalasi Server lainnya menggunakan perintah

apt-get install dhcp3-server postfix apache2 mysql-server libmysqlclient15-dev libphp-adodb \
libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear unzip php5-xmlrpc vsftpd \
libnet-ssleay-perl openssh-server catdoc dnsutils bind9 ntp tinyproxy dansguardian smbfs \
samba vsftpd ubiquity ubiquity-frontend-gtk ubiquity-ubuntu-artwork ubiquity-casper \
dovecot-common dovecot-imapd dovecot-pop3d postfix squirrelmail squirrelmail-decode unrar \
debmirror php-pear php5-gd php5-imap php5-odbc  php5-pgsql apache2 \
mysql-server libmysqlclient15-dev libphp-adodb libgd2-xpm libgd2-xpm-dev php5-mysql \
php5-gd php5-curl php-pear  php5-xmlrpc libnet-ssleay-perl libsyncml-dev libsyncml-utils \
rsync nfs-common nfs-kernel-server

MySQL Root: <123456> <123456>
Internet with Smarthost
sekolah.sch.id
smtp.telkom.net

cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
cp -Rf /usr/local/src/etc/* /etc
cp -Rf /usr/local/src/var/* /var
cp -Rf /usr/local/src/usr/* /usr
cp /etc/resolv.conf /etc/resolv.conf.nawala

mkdir /var/data
mkdir /var/data/public
mkdir /var/data/repo
mkdir /var/www/ubuntu
mkdir /var/www/library
chown -Rf nobody.nogroup /var/data &
chmod -Rf 777 /var/data &
chown -Rf www-data.www-data /var/www/library &
chown -Rf www-data.www-data /var/www/ubuntu &
chown -Rf www-data.www-data /var/www/ &
chmod -Rf 777 /var/www/library &
chmod -Rf 777 /var/www/ubuntu &
chmod -Rf 777 /var/www/ &
rm /var/www/index.*

mkdir /home/ftp
chown -Rf root.root /home/ftp
/etc/init.d/vsftpd restart
mkdir /home/ftp/pub
mkdir /home/ftp/pub/repo
chown -Rf ftp.nogroup /home/ftp/pub
 
mkdir /var/data
mkdir /var/data/public
mkdir /var/data/repo
chown -Rf nobody.nogroup /var/data &
chmod -Rf 777 /var/data &

chown -Rf root.root /var/data/repo &
chmod -Rf 571 /var/data/repo  &
mkdir /var/data/mirrorkeyring
gpg --no-default-keyring --keyring /var/data/mirrorkeyring/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg

cd /usr/local/src/
tar zxvf webmin-1.550.tar.gz 
/usr/sbin/squirrelmail-configure
  2 -> 1 -> sekolah.sch.id  -> S -> Q



vi /etc/dovecot/dovecot.conf
mail_location = mbox:~/mail:INBOX=/var/mail/%u

vi /etc/dhcp/dhcpd.conf
ddns-update-style none;
option domain-name "sekolah.sch.id"
option domain-name-servers 192.168.0.254;
default-lease-time   86400; # 24 jam
max-lease-time      172800; # 48 jam
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
       range 192.168.0.30 192.168.0.70;
       option routers 192.168.0.1;
       }

vi /etc/postfix/main.cf
myhostname = sekolah.sch.id
mydestination = sekolah.sch.id, sekolah, localhost.localdomain, localhost
relayhost = smtp.telkom.net
# relayhost = mail.fast.net.id
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16
inet_interfaces = all 



vi /etc/ntp.conf 
server ntp.ubuntu.com
server pool.ntp.org
restrict 192.168.0.0 mask 255.255.255.0 trust
broadcast 192.168.0.255

vi /etc/tinyproxy.conf
# User nobody
# Group nogroup
User root
Group root
# Port 8888
Port 3128
Allow 127.0.0.1
Allow 192.168.0.0/16
Allow 172.16.0.0/12
Allow 10.0.0.0/8

vi /etc/dansguardian/dansguardian.conf
# UNCONFIGURED - Please remove this line after configuration
# accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl'
accessdeniedaddress = 'http://192.168.0.254/cgi-bin/dansguardian.pl'

vi /etc/samba/smb.conf
workgroup = SEKOLAHNET
netbios name = SERVER
security = share
[public]
path = /var/data/public
available = yes
browsable = yes
public = yes
writable = yes
[library]
path = /var/data
available = yes
browsable = yes
public = yes
writable = no

vi /etc/apache2/conf.d/squirrelmail.conf
Alias /webmail /usr/share/squirrelmail



vi /etc/export.contoh
/home/backup *(ro,sync,subtree_check)
/home/backup/public *(rw,sync,subtree_check)
/home/library *(ro,sync,subtree_check)
/home/media *(ro,sync,subtree_check)

vi /etc/rsyncd.conf
pid file = /var/run/rsyncd.pid
max connections = 5
use chroot = yes
uid = nobody
gid = nogroup
[backup]
path=/folder/tempat/backup

Restart Apache Web Server

/etc/init.d/apache2 restart

Pranala Menarik