Difference between revisions of "SchoolOnffLine: Memastikan Semua Server Beroperasi saat nyala"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Edit file | Edit file | ||
− | + | vi /etc/rc.local | |
− | Isi sebelum kata-kata exit0 | + | |
+ | ==Versi IP address Statik== | ||
+ | |||
+ | Edit | ||
+ | |||
+ | cp /etc/rc.local /etc/rc.local.ip.statik | ||
+ | vi /etc/rc.local.ip.statik | ||
+ | |||
+ | Isi sebelum kata-kata exit0. | ||
+ | |||
+ | Biasanya jika jaringan [[LAN]] terdapat [[DHCP server]] akan mengubah [[IP address]] eth0. | ||
+ | Untuk menjamin bahwa [[IP address]] 192.168.0.254 digunakan ada baiknya di paksa menggunakan perintah berikut. | ||
+ | |||
+ | ifconfig eth0 192.168.0.254 | ||
+ | route add default gw 192.168.0.1 | ||
+ | |||
+ | cp /etc/resolv.conf.nawala /etc/resolv.conf | ||
+ | mount --bind /var/data/repo /var/www/ubuntu | ||
+ | mount --bind /var/data/repo /home/ftp/pub/repo | ||
+ | mount --bind /var/data/ /var/www/library | ||
/etc/init.d/networking restart | /etc/init.d/networking restart | ||
Line 20: | Line 39: | ||
/etc/init.d/samba restart | /etc/init.d/samba restart | ||
/etc/init.d/webmin restart | /etc/init.d/webmin restart | ||
+ | /etc/init.d/postgresql-8.4 stop | ||
+ | |||
+ | ==Versi IP address dynamic== | ||
+ | |||
+ | Edit | ||
+ | |||
+ | cp /etc/rc.local /etc/rc.local.ip.dinamik | ||
+ | vi /etc/rc.local.ip.dinamik | ||
+ | |||
+ | Isi sebelum kata-kata exit0. | ||
Biasanya jika jaringan [[LAN]] terdapat [[DHCP server]] akan mengubah [[IP address]] eth0. | Biasanya jika jaringan [[LAN]] terdapat [[DHCP server]] akan mengubah [[IP address]] eth0. | ||
− | Untuk menjamin bahwa [[IP address]] 192.168.0.254 digunakan ada baiknya di | + | Untuk menjamin bahwa [[IP address]] 192.168.0.254 digunakan ada baiknya di paksa menggunakan perintah berikut. |
+ | |||
+ | # ifconfig eth0 192.168.0.254 | ||
+ | # route add default gw 192.168.0.1 | ||
− | |||
− | |||
− | |||
cp /etc/resolv.conf.nawala /etc/resolv.conf | cp /etc/resolv.conf.nawala /etc/resolv.conf | ||
mount --bind /var/data/repo /var/www/ubuntu | mount --bind /var/data/repo /var/www/ubuntu | ||
mount --bind /var/data/repo /home/ftp/pub/repo | mount --bind /var/data/repo /home/ftp/pub/repo | ||
+ | mount --bind /var/data/ /var/www/library | ||
+ | /etc/init.d/networking restart | ||
+ | /etc/init.d/dovecot restart | ||
+ | /etc/init.d/postfix restart | ||
+ | /etc/init.d/vsftpd restart | ||
+ | /etc/init.d/apache2 restart | ||
+ | /etc/init.d/mysql restart | ||
+ | /etc/init.d/webmin restart | ||
+ | /etc/init.d/dhcp3-server stop | ||
+ | /etc/init.d/ejabberd start | ||
+ | /etc/init.d/bind9 restart | ||
+ | /etc/init.d/ntp restart | ||
+ | /etc/init.d/tinyproxy restart | ||
+ | /etc/init.d/dansguardian restart | ||
+ | /etc/init.d/samba restart | ||
+ | /etc/init.d/webmin restart | ||
+ | /etc/init.d/postgresql-8.4 stop | ||
+ | ==Copy rc.local IP dynamic ke rc.local== | ||
− | + | cp /etc/rc.local.ip.dinamik /etc/rc.local | |
− | |||
==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 12:49, 14 August 2011
Edit file
vi /etc/rc.local
Versi IP address Statik
Edit
cp /etc/rc.local /etc/rc.local.ip.statik vi /etc/rc.local.ip.statik
Isi sebelum kata-kata exit0.
Biasanya jika jaringan LAN terdapat DHCP server akan mengubah IP address eth0. Untuk menjamin bahwa IP address 192.168.0.254 digunakan ada baiknya di paksa menggunakan perintah berikut.
ifconfig eth0 192.168.0.254 route add default gw 192.168.0.1
cp /etc/resolv.conf.nawala /etc/resolv.conf mount --bind /var/data/repo /var/www/ubuntu mount --bind /var/data/repo /home/ftp/pub/repo mount --bind /var/data/ /var/www/library
/etc/init.d/networking restart /etc/init.d/dovecot restart /etc/init.d/postfix restart /etc/init.d/vsftpd restart /etc/init.d/apache2 restart /etc/init.d/mysql restart /etc/init.d/webmin restart /etc/init.d/dhcp3-server restart /etc/init.d/ejabberd start /etc/init.d/bind9 restart /etc/init.d/ntp restart /etc/init.d/tinyproxy restart /etc/init.d/dansguardian restart /etc/init.d/samba restart /etc/init.d/webmin restart /etc/init.d/postgresql-8.4 stop
Versi IP address dynamic
Edit
cp /etc/rc.local /etc/rc.local.ip.dinamik vi /etc/rc.local.ip.dinamik
Isi sebelum kata-kata exit0.
Biasanya jika jaringan LAN terdapat DHCP server akan mengubah IP address eth0. Untuk menjamin bahwa IP address 192.168.0.254 digunakan ada baiknya di paksa menggunakan perintah berikut.
# ifconfig eth0 192.168.0.254 # route add default gw 192.168.0.1
cp /etc/resolv.conf.nawala /etc/resolv.conf mount --bind /var/data/repo /var/www/ubuntu mount --bind /var/data/repo /home/ftp/pub/repo mount --bind /var/data/ /var/www/library
/etc/init.d/networking restart /etc/init.d/dovecot restart /etc/init.d/postfix restart /etc/init.d/vsftpd restart /etc/init.d/apache2 restart /etc/init.d/mysql restart /etc/init.d/webmin restart /etc/init.d/dhcp3-server stop /etc/init.d/ejabberd start /etc/init.d/bind9 restart /etc/init.d/ntp restart /etc/init.d/tinyproxy restart /etc/init.d/dansguardian restart /etc/init.d/samba restart /etc/init.d/webmin restart /etc/init.d/postgresql-8.4 stop
Copy rc.local IP dynamic ke rc.local
cp /etc/rc.local.ip.dinamik /etc/rc.local
Pranala Menarik
- SchoolOnffLine: Desktop Berbasis Ubuntu menggunakan Remastersys
- Remaster Ubuntu untuk SchoolOnffLine Menggunakan UCK
- SchoolOnffLine: Server Berbasis Sabily 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 Server
- SchoolOnffLine: Server Wikipedia for School
- Remastering Ubuntu