19.41 Edit This 0 Comments »
Debian Server Setup
This section explains how to set up your server machine to be an install server for Debian. Bagian ini menjelaskan cara mengatur mesin server anda menjadi server untuk menginstal Debian. You can set up any Linux distribution to be a Debian install server, this machine does not necessarily have to be running Debian. Anda dapat mengatur semua distribusi Linux menjadi menginstal Debian server, mesin ini tidak perlu harus menjalankan Debian. Don't forget that there are already plenty of Debian mirrors out there that provide free access to the Debian archive so unless you really need your own archive it might be best just to use one that already exists. Jangan lupa bahwa sudah ada banyak mirror Debian di luar sana yang menyediakan akses bebas ke arsip Debian jadi kecuali anda benar-benar membutuhkan arsip Anda sendiri mungkin akan lebih baik hanya untuk menggunakan salah satu yang sudah ada.
This guide starts from the point where you have a machine installed with Linux which is already up and running and connected to your network. Panduan ini dimulai dari titik di mana Anda memiliki mesin diinstal dengan Linux yang sudah bangun dan berjalan dan terhubung ke jaringan anda. If you require help with installing Linux on your server then please consult the Further Information section of this HOWTO in Appendix A . Jika Anda memerlukan bantuan dengan menginstal Linux di server Anda maka silakan membaca bagian Informasi lebih lanjut HOWTO ini dalam Lampiran A.
8.1 Setting Up Filespace Menyiapkan 8,1 filespace
In order for your server to act as a Debian network install server you will need to set up your machine to be a mirror of the Debian archives. Agar server Anda untuk bertindak sebagai server menginstal jaringan Debian Anda perlu menyiapkan mesin menjadi cermin dari arsip Debian. Unlike most Linux distributions, Debian is commonly installed over the network, so you are not likely to have obtained a set of CD images containing Debian. Tidak seperti kebanyakan distribusi Linux, Debian biasanya diinstal melalui jaringan, sehingga Anda tidak mungkin telah memperoleh satu set yang berisi gambar CD Debian. A mirror system is provided that enables you to copy all the required data to your own server machine, for free. Sebuah sistem cermin disediakan yang memungkinkan Anda untuk menyalin semua data yang dibutuhkan untuk mesin server Anda sendiri, secara gratis.
Before you even think about setting up your machine as an install server, you must check that you have the required space available. Bahkan sebelum Anda berpikir tentang pengaturan mesin anda sebagai server menginstal, Anda harus memeriksa bahwa Anda memiliki ruang yang dibutuhkan tersedia. This sounds like a trivial thing to check but it is very important and easily forgotten when you're setting up. Ini kedengarannya seperti hal yang sepele untuk memeriksa tapi sangat penting dan mudah terlupakan ketika Anda sedang menyiapkan.
How much space will you need? Berapa banyak ruang yang akan Anda butuhkan?
The entire Debian archives are roughly around 40Gb at the time of writing but if you are going to set up a full mirror then bear in mind that this will grow. Seluruh arsip Debian kira-kira sekitar 40Gb pada saat menulis, tapi jika Anda akan mendirikan sebuah cermin penuh kemudian diingat bahwa hal ini akan tumbuh. It is possible for you to mirror only parts of the Debian archive and you can obviously mirror just the parts that you think you will require. Adalah mungkin bagi Anda untuk hanya cermin bagian arsip Debian dan Anda dapat jelas cermin hanya bagian-bagian yang Anda pikir Anda akan membutuhkan. For example, if you do not use a certain machine architecture then there may be little point in your mirroring this part of the archive. Sebagai contoh, jika Anda tidak menggunakan arsitektur mesin tertentu maka mungkin ada gunanya mirroring ini Anda bagian dari arsip.
The latest information about the size of the Debian archive is available from their website at http://www.debian.org/mirror/size . Informasi terbaru tentang ukuran arsip Debian tersedia dari situs web mereka di http://www.debian.org/mirror/size.
How much space do you have? Berapa banyak ruang yang Anda miliki?
You will need the appropriate amount of space available to your system on some local filesystem. Anda akan memerlukan jumlah yang sesuai ruang yang tersedia untuk sistem Anda pada beberapa filesystem lokal. It does not matter what form this takes, whether it's a RAID device, local disk (either SCSI or IDE), etc. Ensure that the space you intend to use is formatted with your chosen filesystem and is mounted. Tidak peduli bentuk apa yang diperlukan, entah itu sebuah perangkat RAID, disk lokal (baik SCSI atau IDE), dll ruang Pastikan bahwa Anda berniat untuk menggunakan diformat dengan filesystem yang dipilih dan di-mount.
You can check this space with the command: Anda dapat memeriksa ruang ini dengan perintah:
df -h df-h
If this output shows you have enough space then great, you can continue. If not then it's time to think about an upgrade to your intended server machine! Jika output ini menunjukkan Anda memiliki cukup ruang kemudian besar, Anda dapat melanjutkan. Jika tidak maka sudah saatnya untuk berpikir tentang upgrade ke mesin server yang Anda maksudkan!
8.2 Mirror the Debian Archive 8,2 Mirror Debian Arsip
When you are confident that you have enough space for the data you want to mirror then you can move on to this step. Bila Anda yakin bahwa Anda memiliki cukup ruang untuk data yang ingin Anda cermin maka anda dapat melanjutkan ke langkah ini. If you are not sure you have enough space to mirror all the parts of the Debian archive that you want then you can always try this method, then if you run out of space, remove some parts of the archive from the mirror and try again. Jika Anda tidak yakin Anda punya cukup ruang untuk cermin semua bagian arsip Debian yang Anda inginkan maka Anda dapat selalu mencoba metode ini, maka jika Anda kehabisan ruang, hapus beberapa bagian arsip dari cermin dan coba lagi.
Debian maintain their own guide on how to set up your own Debian mirror. Debian mempertahankan panduan mereka sendiri tentang cara mengatur mirror Debian Anda sendiri. You are welcome to view this at http://www.debian.org/mirror/ftpmirror . The list of steps below is based on the Debian instructions but is my own interpretation of them, designed to be easy to use and understand. Anda dipersilakan untuk melihat ini di http://www.debian.org/mirror/ftpmirror. Daftar langkah-langkah di bawah ini berdasarkan pada petunjuk Debian tetapi interpretasi saya sendiri dari mereka, dirancang untuk mudah digunakan dan dimengerti.
Where to Mirror From? Dimana Mirror Dari?
There are an awful lot of Debian sites out there that you could mirror from. Ada banyak sekali situs-situs Debian luar sana yang bisa cermin dari. It is best for you to choose one that is near your location or one that you know will have a good bandwidth to your location. Yang terbaik bagi Anda untuk memilih satu yang dekat lokasi Anda atau yang Anda tahu akan memiliki bandwidth yang baik untuk lokasi Anda. Please remember, that if everybody uses the same sites for their own mirrors then things will get rather slow, so choose carefully. Harap diingat, bahwa jika semua orang menggunakan situs yang sama untuk mereka sendiri maka hal-hal yang akan otomatis jadi agak lambat, jadi pilihlah dengan hati-hati.
A list of sites that you can choose to mirror from can be found at http://www.debian.org/misc/README.mirrors Daftar situs yang Anda dapat memilih untuk cermin dari dapat ditemukan di http://www.debian.org/misc/README.mirrors
How to Mirror? Bagaimana Mirror?
I would recommend using a program called rsync to copy the data from your chosen server to your own server. Saya akan merekomendasikan menggunakan program yang disebut rsync untuk menyalin data dari server pilihan Anda ke server Anda sendiri. This is a program that is ideally suited to mirroring data from one system to another. Ini adalah sebuah program yang ideal untuk mirroring data dari satu sistem yang lain. If you want to find out more information about rsync itself then see the webpages or the man pages for it. Jika Anda ingin mengetahui informasi lebih lanjut tentang rsync sendiri kemudian melihat halaman Web atau halaman manual untuk itu.
Debian provide a well commented script at http://www.debian.org/mirror/anonftpsync that will perform the mirroring for you. Debian memberikan komentar baik script di http://www.debian.org/mirror/anonftpsync yang akan melakukan pencerminan untuk Anda. Go to this site and download the script to your server machine, we will then need to set up the script to mirror the archive as you want it. Pergi ke situs ini dan download script untuk mesin server anda, kami akan perlu menyiapkan script untuk cermin arsip seperti yang Anda inginkan.
Now go through the entire script (it's not very long) and look at each line. Decide whether you want the line to be active in your script or not. Sekarang pergi melalui seluruh naskah (dengan cara yang tidak terlalu lama) dan melihat setiap baris. Putuskan apakah Anda ingin agar baris untuk aktif dalam skrip atau tidak. If you don't know what a line does then it is probably best to leave it at it's default setting. Jika Anda tidak tahu apa garis tidak maka mungkin lebih baik meninggalkannya di pengaturan default ini. However, you must set up the script with some minimal settings in order for it to work at all. Namun, Anda harus mengatur naskah dengan beberapa pengaturan yang minimal untuk itu agar bekerja sama sekali. These will include your chosen server, the location to put the archive on your machine, etc. Ini termasuk Anda pilih server, lokasi untuk menempatkan arsip pada mesin Anda, dll
Once you have set up the script with all the required information requested in it then you are ready to run it and it will start copying data from the server you have chosen to your own server machine. Sekali Anda telah menyiapkan script yang diperlukan dengan semua informasi yang diminta di dalamnya maka anda sudah siap untuk menjalankan dan ia akan mulai menyalin data dari server yang Anda telah memilih untuk mesin server Anda sendiri. Don't forget to change the permissions of the script so that it is executable and then run it from the command line. Jangan lupa untuk mengubah hak akses script sehingga dapat dieksekusi dan kemudian menjalankannya dari baris perintah.
The Debian archive is regularly updated and in order to maintain your own archive and make sure it is up to date, you will need to periodically run the script again to copy any changes made. NOTE: the script uses rsync which is a one-way transaction, you can never copy from your machine to your chosen server (as you don't have permission to do so!) . Arsip Debian secara teratur diperbarui dan dalam rangka untuk menjaga arsip Anda sendiri dan pastikan itu adalah up to date, Anda akan perlu untuk secara periodik menjalankan skrip lagi untuk menyalin setiap perubahan yang dibuat. CATATAN: rsync menggunakan script yang merupakan satu-arah transaksi, Anda tidak pernah menyalin dari mesin anda ke server pilihan Anda (karena Anda tidak memiliki izin untuk melakukannya!). It is probably best to run the script daily, so you can edit your crontab to do this or put the script in /etc/cron.d/cron.daily if your Linux distribution has this set up. Mungkin ini yang terbaik untuk menjalankan skrip setiap hari, sehingga Anda dapat mengedit crontab Anda untuk melakukan hal ini atau menaruh skrip pada /etc/cron.d/cron.daily jika distribusi Linux anda telah menyiapkan ini.
8.3 Enable Remote Access 8,3 Aktifkan Remote Access
Time to make your install data available to other machines on the network. Debian can be installed using NFS, HTTP and FTP protocols. Waktu untuk membuat data yang tersedia untuk menginstal komputer lain pada jaringan. Debian dapat diinstal dengan menggunakan NFS, HTTP dan protokol FTP. You can select which of these will be used at install time on the client. Anda dapat memilih mana yang akan digunakan pada waktu menginstal di klien. If one of the services is not setup on the machine then it will still be available for selection by the client but the install will not work. Jika salah satu layanan ini tidak setup pada mesin maka akan tetap tersedia untuk seleksi oleh klien tetapi instalasi tidak akan bekerja. Therefore, it is either best to enable all three services on your server (so they all work on each client machine) or if you don't enable all three then advertise the fact very well and say which service should be used for your particular install server. Oleh karena itu, baik yang terbaik untuk mengaktifkan layanan ketiga pada server Anda (sehingga mereka semua bekerja pada setiap mesin klien) atau jika anda tidak mengaktifkan ketiga kemudian mengiklankan sebenarnya sangat baik dan mengatakan layanan mana yang harus digunakan untuk menginstal khusus Anda server.
NFS NFS
To install over NFS you need to meet certain conditions on the server: Untuk menginstal melalui NFS, Anda harus memenuhi syarat-syarat tertentu pada server:
• Your install directory is exported Direktori menginstal Anda diekspor
• NFS is installed and running NFS terinstal dan dijalankan
• Portmap is running Portmap berjalan
To export your install directory edit the /etc/exports file and add an entry for directory you have copied your Debian archive to. Untuk mengekspor direktori menginstal mengedit /etc/exports file dan tambahkan entri untuk direktori Anda telah menyalin arsip Debian untuk Anda. In our examples throughout this HOWTO, we would use the folowing line: Dalam contoh kita sepanjang HOWTO ini, kita akan menggunakan baris folowing:
/install *(ro) / install * (ro)
When you have saved your exports file you must then get your NFS daemon to read its configuration file again in order to export the directory you just added. Do this by running the command: Bila Anda telah menyimpan file ekspor Anda harus kemudian mendapatkan daemon NFS Anda baca lagi file konfigurasi untuk mengekspor direktori saja anda tambahkan. Lakukan ini dengan menjalankan perintah:
exportfs -r exportfs-r
This gives us the most simple read-only export to all hosts on our network. Ini memberi kita yang paling sederhana hanya-baca ekspor ke semua host di jaringan kami. If you want to include more advanced options in your export eg only exporting to certain hosts on the network or a certain subnet, etc then see your man page for the exports file at exports (5). Jika Anda ingin memasukkan lebih banyak pilihan lanjutan dalam misalnya ekspor hanya mengekspor ke host tertentu pada jaringan atau subnet tertentu, dll kemudian melihat halaman manual untuk exports di ekspor (5).
FTP FTP
To install over FTP you need to allow FTP access to the directory that you have setup on the server as the installation directory. Untuk menginstal melalui FTP Anda perlu untuk memungkinkan akses FTP ke direktori yang telah Anda setup pada server sebagai direktori instalasi. This can be either anonymous FTP access or access through a named account with a password. Hal ini dapat berupa akses FTP anonim atau akses melalui account bernama sandi. Anonymous access is probably best unless you have a reason to protect your install server via a password. Akses anonim mungkin terbaik kecuali jika Anda memiliki alasan untuk melindungi Anda menginstal server melalui sebuah password.
If you want anonymous FTP to point to a different directory then you can use sym links to point to the directory that you have set up as the install directory on the server. Jika Anda ingin anonymous FTP untuk menunjuk pada sebuah direktori yang berbeda maka anda dapat menggunakan link sym untuk menunjuk ke direktori yang telah ditetapkan sebagai direktori install pada server. This will allow FTP into a chrooted environment but still give you access to the install images in a different location. Ini akan memungkinkan FTP ke lingkungan chroot tetapi masih memberikan Anda akses ke gambar instalasi di lokasi yang berbeda.
HTTP HTTP
If you have a web server running and want to enable HTTP access to your install server then add sym links from your document root to the install server directory and this will grant access. Jika Anda memiliki web server berjalan dan ingin mengaktifkan akses ke HTTP server instal sym kemudian menambahkan link dari akar dokumen Anda ke direktori server menginstal dan ini akan memberikan akses. If you are not familiar with web servers or are not comfortable with this approach then leave out HTTP access from your install server as it provides no benefits over NFS or FTP installs which may be simpler to set up. Jika Anda tidak terbiasa dengan web server atau tidak nyaman dengan pendekatan ini kemudian pergi keluar HTTP akses dari server instalasi Anda tidak memberikan manfaat atas menginstall NFS atau FTP yang dapat mudah untuk mengatur.
If you do choose to use HTTP then basically all you have to do is make the install directory visible to your web server by making it appear under the document root by some means. Jika Anda memilih untuk menggunakan HTTP maka pada dasarnya semua yang harus Anda lakukan adalah membuat direktori instalasi terlihat ke server web Anda dengan membuatnya muncul di bawah akar dokumen dengan beberapa cara. If you are using the Apache webserver then Debian recommend adding the following to your http.conf file Jika Anda menggunakan server Web Apache kemudian Debian sarankan untuk menambahkan baris berikut ke file http.conf
IndexOptions NameWidth=* +SuppressDescription IndexOptions NameWidth =* + SuppressDescription
DirectoryIndex . DirectoryIndex.
You have now completed the basic setup of your install server. Anda sekarang telah menyelesaikan konfigurasi dasar menginstal server Anda.
This section explains how to set up your server machine to be an install server for Debian. Bagian ini menjelaskan cara mengatur mesin server anda menjadi server untuk menginstal Debian. You can set up any Linux distribution to be a Debian install server, this machine does not necessarily have to be running Debian. Anda dapat mengatur semua distribusi Linux menjadi menginstal Debian server, mesin ini tidak perlu harus menjalankan Debian. Don't forget that there are already plenty of Debian mirrors out there that provide free access to the Debian archive so unless you really need your own archive it might be best just to use one that already exists. Jangan lupa bahwa sudah ada banyak mirror Debian di luar sana yang menyediakan akses bebas ke arsip Debian jadi kecuali anda benar-benar membutuhkan arsip Anda sendiri mungkin akan lebih baik hanya untuk menggunakan salah satu yang sudah ada.
This guide starts from the point where you have a machine installed with Linux which is already up and running and connected to your network. Panduan ini dimulai dari titik di mana Anda memiliki mesin diinstal dengan Linux yang sudah bangun dan berjalan dan terhubung ke jaringan anda. If you require help with installing Linux on your server then please consult the Further Information section of this HOWTO in Appendix A . Jika Anda memerlukan bantuan dengan menginstal Linux di server Anda maka silakan membaca bagian Informasi lebih lanjut HOWTO ini dalam Lampiran A.
8.1 Setting Up Filespace Menyiapkan 8,1 filespace
In order for your server to act as a Debian network install server you will need to set up your machine to be a mirror of the Debian archives. Agar server Anda untuk bertindak sebagai server menginstal jaringan Debian Anda perlu menyiapkan mesin menjadi cermin dari arsip Debian. Unlike most Linux distributions, Debian is commonly installed over the network, so you are not likely to have obtained a set of CD images containing Debian. Tidak seperti kebanyakan distribusi Linux, Debian biasanya diinstal melalui jaringan, sehingga Anda tidak mungkin telah memperoleh satu set yang berisi gambar CD Debian. A mirror system is provided that enables you to copy all the required data to your own server machine, for free. Sebuah sistem cermin disediakan yang memungkinkan Anda untuk menyalin semua data yang dibutuhkan untuk mesin server Anda sendiri, secara gratis.
Before you even think about setting up your machine as an install server, you must check that you have the required space available. Bahkan sebelum Anda berpikir tentang pengaturan mesin anda sebagai server menginstal, Anda harus memeriksa bahwa Anda memiliki ruang yang dibutuhkan tersedia. This sounds like a trivial thing to check but it is very important and easily forgotten when you're setting up. Ini kedengarannya seperti hal yang sepele untuk memeriksa tapi sangat penting dan mudah terlupakan ketika Anda sedang menyiapkan.
How much space will you need? Berapa banyak ruang yang akan Anda butuhkan?
The entire Debian archives are roughly around 40Gb at the time of writing but if you are going to set up a full mirror then bear in mind that this will grow. Seluruh arsip Debian kira-kira sekitar 40Gb pada saat menulis, tapi jika Anda akan mendirikan sebuah cermin penuh kemudian diingat bahwa hal ini akan tumbuh. It is possible for you to mirror only parts of the Debian archive and you can obviously mirror just the parts that you think you will require. Adalah mungkin bagi Anda untuk hanya cermin bagian arsip Debian dan Anda dapat jelas cermin hanya bagian-bagian yang Anda pikir Anda akan membutuhkan. For example, if you do not use a certain machine architecture then there may be little point in your mirroring this part of the archive. Sebagai contoh, jika Anda tidak menggunakan arsitektur mesin tertentu maka mungkin ada gunanya mirroring ini Anda bagian dari arsip.
The latest information about the size of the Debian archive is available from their website at http://www.debian.org/mirror/size . Informasi terbaru tentang ukuran arsip Debian tersedia dari situs web mereka di http://www.debian.org/mirror/size.
How much space do you have? Berapa banyak ruang yang Anda miliki?
You will need the appropriate amount of space available to your system on some local filesystem. Anda akan memerlukan jumlah yang sesuai ruang yang tersedia untuk sistem Anda pada beberapa filesystem lokal. It does not matter what form this takes, whether it's a RAID device, local disk (either SCSI or IDE), etc. Ensure that the space you intend to use is formatted with your chosen filesystem and is mounted. Tidak peduli bentuk apa yang diperlukan, entah itu sebuah perangkat RAID, disk lokal (baik SCSI atau IDE), dll ruang Pastikan bahwa Anda berniat untuk menggunakan diformat dengan filesystem yang dipilih dan di-mount.
You can check this space with the command: Anda dapat memeriksa ruang ini dengan perintah:
df -h df-h
If this output shows you have enough space then great, you can continue. If not then it's time to think about an upgrade to your intended server machine! Jika output ini menunjukkan Anda memiliki cukup ruang kemudian besar, Anda dapat melanjutkan. Jika tidak maka sudah saatnya untuk berpikir tentang upgrade ke mesin server yang Anda maksudkan!
8.2 Mirror the Debian Archive 8,2 Mirror Debian Arsip
When you are confident that you have enough space for the data you want to mirror then you can move on to this step. Bila Anda yakin bahwa Anda memiliki cukup ruang untuk data yang ingin Anda cermin maka anda dapat melanjutkan ke langkah ini. If you are not sure you have enough space to mirror all the parts of the Debian archive that you want then you can always try this method, then if you run out of space, remove some parts of the archive from the mirror and try again. Jika Anda tidak yakin Anda punya cukup ruang untuk cermin semua bagian arsip Debian yang Anda inginkan maka Anda dapat selalu mencoba metode ini, maka jika Anda kehabisan ruang, hapus beberapa bagian arsip dari cermin dan coba lagi.
Debian maintain their own guide on how to set up your own Debian mirror. Debian mempertahankan panduan mereka sendiri tentang cara mengatur mirror Debian Anda sendiri. You are welcome to view this at http://www.debian.org/mirror/ftpmirror . The list of steps below is based on the Debian instructions but is my own interpretation of them, designed to be easy to use and understand. Anda dipersilakan untuk melihat ini di http://www.debian.org/mirror/ftpmirror. Daftar langkah-langkah di bawah ini berdasarkan pada petunjuk Debian tetapi interpretasi saya sendiri dari mereka, dirancang untuk mudah digunakan dan dimengerti.
Where to Mirror From? Dimana Mirror Dari?
There are an awful lot of Debian sites out there that you could mirror from. Ada banyak sekali situs-situs Debian luar sana yang bisa cermin dari. It is best for you to choose one that is near your location or one that you know will have a good bandwidth to your location. Yang terbaik bagi Anda untuk memilih satu yang dekat lokasi Anda atau yang Anda tahu akan memiliki bandwidth yang baik untuk lokasi Anda. Please remember, that if everybody uses the same sites for their own mirrors then things will get rather slow, so choose carefully. Harap diingat, bahwa jika semua orang menggunakan situs yang sama untuk mereka sendiri maka hal-hal yang akan otomatis jadi agak lambat, jadi pilihlah dengan hati-hati.
A list of sites that you can choose to mirror from can be found at http://www.debian.org/misc/README.mirrors Daftar situs yang Anda dapat memilih untuk cermin dari dapat ditemukan di http://www.debian.org/misc/README.mirrors
How to Mirror? Bagaimana Mirror?
I would recommend using a program called rsync to copy the data from your chosen server to your own server. Saya akan merekomendasikan menggunakan program yang disebut rsync untuk menyalin data dari server pilihan Anda ke server Anda sendiri. This is a program that is ideally suited to mirroring data from one system to another. Ini adalah sebuah program yang ideal untuk mirroring data dari satu sistem yang lain. If you want to find out more information about rsync itself then see the webpages or the man pages for it. Jika Anda ingin mengetahui informasi lebih lanjut tentang rsync sendiri kemudian melihat halaman Web atau halaman manual untuk itu.
Debian provide a well commented script at http://www.debian.org/mirror/anonftpsync that will perform the mirroring for you. Debian memberikan komentar baik script di http://www.debian.org/mirror/anonftpsync yang akan melakukan pencerminan untuk Anda. Go to this site and download the script to your server machine, we will then need to set up the script to mirror the archive as you want it. Pergi ke situs ini dan download script untuk mesin server anda, kami akan perlu menyiapkan script untuk cermin arsip seperti yang Anda inginkan.
Now go through the entire script (it's not very long) and look at each line. Decide whether you want the line to be active in your script or not. Sekarang pergi melalui seluruh naskah (dengan cara yang tidak terlalu lama) dan melihat setiap baris. Putuskan apakah Anda ingin agar baris untuk aktif dalam skrip atau tidak. If you don't know what a line does then it is probably best to leave it at it's default setting. Jika Anda tidak tahu apa garis tidak maka mungkin lebih baik meninggalkannya di pengaturan default ini. However, you must set up the script with some minimal settings in order for it to work at all. Namun, Anda harus mengatur naskah dengan beberapa pengaturan yang minimal untuk itu agar bekerja sama sekali. These will include your chosen server, the location to put the archive on your machine, etc. Ini termasuk Anda pilih server, lokasi untuk menempatkan arsip pada mesin Anda, dll
Once you have set up the script with all the required information requested in it then you are ready to run it and it will start copying data from the server you have chosen to your own server machine. Sekali Anda telah menyiapkan script yang diperlukan dengan semua informasi yang diminta di dalamnya maka anda sudah siap untuk menjalankan dan ia akan mulai menyalin data dari server yang Anda telah memilih untuk mesin server Anda sendiri. Don't forget to change the permissions of the script so that it is executable and then run it from the command line. Jangan lupa untuk mengubah hak akses script sehingga dapat dieksekusi dan kemudian menjalankannya dari baris perintah.
The Debian archive is regularly updated and in order to maintain your own archive and make sure it is up to date, you will need to periodically run the script again to copy any changes made. NOTE: the script uses rsync which is a one-way transaction, you can never copy from your machine to your chosen server (as you don't have permission to do so!) . Arsip Debian secara teratur diperbarui dan dalam rangka untuk menjaga arsip Anda sendiri dan pastikan itu adalah up to date, Anda akan perlu untuk secara periodik menjalankan skrip lagi untuk menyalin setiap perubahan yang dibuat. CATATAN: rsync menggunakan script yang merupakan satu-arah transaksi, Anda tidak pernah menyalin dari mesin anda ke server pilihan Anda (karena Anda tidak memiliki izin untuk melakukannya!). It is probably best to run the script daily, so you can edit your crontab to do this or put the script in /etc/cron.d/cron.daily if your Linux distribution has this set up. Mungkin ini yang terbaik untuk menjalankan skrip setiap hari, sehingga Anda dapat mengedit crontab Anda untuk melakukan hal ini atau menaruh skrip pada /etc/cron.d/cron.daily jika distribusi Linux anda telah menyiapkan ini.
8.3 Enable Remote Access 8,3 Aktifkan Remote Access
Time to make your install data available to other machines on the network. Debian can be installed using NFS, HTTP and FTP protocols. Waktu untuk membuat data yang tersedia untuk menginstal komputer lain pada jaringan. Debian dapat diinstal dengan menggunakan NFS, HTTP dan protokol FTP. You can select which of these will be used at install time on the client. Anda dapat memilih mana yang akan digunakan pada waktu menginstal di klien. If one of the services is not setup on the machine then it will still be available for selection by the client but the install will not work. Jika salah satu layanan ini tidak setup pada mesin maka akan tetap tersedia untuk seleksi oleh klien tetapi instalasi tidak akan bekerja. Therefore, it is either best to enable all three services on your server (so they all work on each client machine) or if you don't enable all three then advertise the fact very well and say which service should be used for your particular install server. Oleh karena itu, baik yang terbaik untuk mengaktifkan layanan ketiga pada server Anda (sehingga mereka semua bekerja pada setiap mesin klien) atau jika anda tidak mengaktifkan ketiga kemudian mengiklankan sebenarnya sangat baik dan mengatakan layanan mana yang harus digunakan untuk menginstal khusus Anda server.
NFS NFS
To install over NFS you need to meet certain conditions on the server: Untuk menginstal melalui NFS, Anda harus memenuhi syarat-syarat tertentu pada server:
• Your install directory is exported Direktori menginstal Anda diekspor
• NFS is installed and running NFS terinstal dan dijalankan
• Portmap is running Portmap berjalan
To export your install directory edit the /etc/exports file and add an entry for directory you have copied your Debian archive to. Untuk mengekspor direktori menginstal mengedit /etc/exports file dan tambahkan entri untuk direktori Anda telah menyalin arsip Debian untuk Anda. In our examples throughout this HOWTO, we would use the folowing line: Dalam contoh kita sepanjang HOWTO ini, kita akan menggunakan baris folowing:
/install *(ro) / install * (ro)
When you have saved your exports file you must then get your NFS daemon to read its configuration file again in order to export the directory you just added. Do this by running the command: Bila Anda telah menyimpan file ekspor Anda harus kemudian mendapatkan daemon NFS Anda baca lagi file konfigurasi untuk mengekspor direktori saja anda tambahkan. Lakukan ini dengan menjalankan perintah:
exportfs -r exportfs-r
This gives us the most simple read-only export to all hosts on our network. Ini memberi kita yang paling sederhana hanya-baca ekspor ke semua host di jaringan kami. If you want to include more advanced options in your export eg only exporting to certain hosts on the network or a certain subnet, etc then see your man page for the exports file at exports (5). Jika Anda ingin memasukkan lebih banyak pilihan lanjutan dalam misalnya ekspor hanya mengekspor ke host tertentu pada jaringan atau subnet tertentu, dll kemudian melihat halaman manual untuk exports di ekspor (5).
FTP FTP
To install over FTP you need to allow FTP access to the directory that you have setup on the server as the installation directory. Untuk menginstal melalui FTP Anda perlu untuk memungkinkan akses FTP ke direktori yang telah Anda setup pada server sebagai direktori instalasi. This can be either anonymous FTP access or access through a named account with a password. Hal ini dapat berupa akses FTP anonim atau akses melalui account bernama sandi. Anonymous access is probably best unless you have a reason to protect your install server via a password. Akses anonim mungkin terbaik kecuali jika Anda memiliki alasan untuk melindungi Anda menginstal server melalui sebuah password.
If you want anonymous FTP to point to a different directory then you can use sym links to point to the directory that you have set up as the install directory on the server. Jika Anda ingin anonymous FTP untuk menunjuk pada sebuah direktori yang berbeda maka anda dapat menggunakan link sym untuk menunjuk ke direktori yang telah ditetapkan sebagai direktori install pada server. This will allow FTP into a chrooted environment but still give you access to the install images in a different location. Ini akan memungkinkan FTP ke lingkungan chroot tetapi masih memberikan Anda akses ke gambar instalasi di lokasi yang berbeda.
HTTP HTTP
If you have a web server running and want to enable HTTP access to your install server then add sym links from your document root to the install server directory and this will grant access. Jika Anda memiliki web server berjalan dan ingin mengaktifkan akses ke HTTP server instal sym kemudian menambahkan link dari akar dokumen Anda ke direktori server menginstal dan ini akan memberikan akses. If you are not familiar with web servers or are not comfortable with this approach then leave out HTTP access from your install server as it provides no benefits over NFS or FTP installs which may be simpler to set up. Jika Anda tidak terbiasa dengan web server atau tidak nyaman dengan pendekatan ini kemudian pergi keluar HTTP akses dari server instalasi Anda tidak memberikan manfaat atas menginstall NFS atau FTP yang dapat mudah untuk mengatur.
If you do choose to use HTTP then basically all you have to do is make the install directory visible to your web server by making it appear under the document root by some means. Jika Anda memilih untuk menggunakan HTTP maka pada dasarnya semua yang harus Anda lakukan adalah membuat direktori instalasi terlihat ke server web Anda dengan membuatnya muncul di bawah akar dokumen dengan beberapa cara. If you are using the Apache webserver then Debian recommend adding the following to your http.conf file Jika Anda menggunakan server Web Apache kemudian Debian sarankan untuk menambahkan baris berikut ke file http.conf
IndexOptions NameWidth=* +SuppressDescription IndexOptions NameWidth =* + SuppressDescription
DirectoryIndex . DirectoryIndex.
You have now completed the basic setup of your install server. Anda sekarang telah menyelesaikan konfigurasi dasar menginstal server Anda.

0 komentar:
Posting Komentar