Instalasi Debian di NSLU2 Linksys
Requirements and Preparation Persyaratan dan Persiapan
In order to install Debian on a Linksys NSLU2, you need the following: Untuk menginstal Debian pada NSLU2 Linksys, Anda memerlukan berikut ini:
A Linksys NSLU2, obviously. Sebuah Linksys NSLU2, jelas.
An external USB disk (or a big USB stick). Sebuah USB disk eksternal (atau stik USB yang besar).
A network connection. Koneksi jaringan.
Another machine on which you have an SSH client. mesin lain di mana Anda memiliki klien SSH. Every Linux distribution includes an OpenSSH client and there is
PuTTY for Windows. Setiap distribusi Linux termasuk klien OpenSSH dan ada
PuTTY untuk Windows.
There is one complication: the Ethernet drivers require a proprietary microcode that cannot be included in the official images from Debian. There are basically two ways around this: Ada satu komplikasi: driver Ethernet membutuhkan microcode eksklusif yang tidak dapat dimasukkan dalam gambar resmi dari Debian ini. Pada dasarnya ada dua cara:
Use an USB Ethernet adapter which has an open source driver. Gunakan adaptor USB Ethernet yang memiliki driver open source. Note that if you choose this option, you will have to change the network cable a number of times. Catatan bahwa jika Anda memilih opsi ini, Anda harus mengubah kabel jaringan beberapa kali. When you flash debian-installer, you have to use the internal Ethernet device whereas debian-installer itself needs the USB gadget. Ketika Anda flash debian-installer, Anda harus menggunakan perangkat Ethernet internal sedangkan debian-installer sendiri kebutuhan gadget USB.
Use an
unofficial image which consists of the official Debian image plus the proprietary IXP4xx microcode. Gunakan
gambar tidak resmi yang terdiri dari gambar resmi Debian ditambah dengan microcode IXP4xx berpemilik.
Regardless of which image you intend to use, you should configure your network settings (IP address, DNS, hostname) using the web interface before flashing the debian-installer image in case you do not want to use DHCP. Debian's installer will use those settings to bring up the network. Terlepas dari gambar mana yang ingin Anda gunakan, Anda harus mengkonfigurasi pengaturan jaringan Anda (alamat IP, DNS, nama host) menggunakan antarmuka web sebelum berkedip-installer image debian jika anda tidak ingin menggunakan DHCP.'s Installer Debian akan menggunakan pengaturan tersebut untuk membuka jaringan.
Please note that if you use a static IP configuration, you have to specify all information, including netmask, gateway (if you have one) and DNS. Perlu diketahui bahwa jika Anda menggunakan konfigurasi IP statis, Anda harus menentukan semua informasi, termasuk netmask, gateway (jika Anda memilikinya) dan DNS. If you specify an incomplete IP configuration, Debian installer will request an IP address through DHCP instead. Jika Anda menentukan konfigurasi IP yang tidak lengkap, Debian installer akan meminta alamat IP melalui DHCP gantinya.
Starting the Installer Mulai Installer yang
First, you need to download a debian-installer firmware image which you can then flash to your NSLU2. Pertama, Anda perlu mendownload firmware image-installer debian yang kemudian dapat flash NSLU2 Anda. As mentioned above, the Intel IXP4xx chip used in the Linksys NSLU2 needs some proprietary microcode for the Ethernet driver. Seperti disebutkan di atas, IXP4xx Intel chip yang digunakan dalam NSLU2 Linksys membutuhkan microcode driver proprietary untuk Ethernet. As such, it cannot be distributed by the Debian project since we believe in free software and the advantages it offers to our users. Dengan demikian, tidak dapat didistribusikan oleh proyek Debian karena kita percaya pada perangkat lunak bebas dan keuntungan itu menawarkan kepada pengguna kami. While you can download an NSLU2 image
directly from Debian this is probably
not what you are looking for. Meskipun Anda dapat men-download gambar NSLU2
langsung dari Debian ini mungkin
bukan apa yang Anda cari. It will only work if you use a USB Ethernet adapter. Ini hanya akan bekerja jika Anda menggunakan Ethernet adapter USB. If you wish to use the Ethernet port of your NSLU2, you have to use the
unofficial image which consists of copy of the Debian images plus the proprietary Ethernet microcode. Jika Anda ingin menggunakan port Ethernet pada NSLU2 Anda, Anda harus menggunakan
gambar tidak resmi yang terdiri dari salinan gambar Debian ditambah dengan microcode Ethernet berpemilik.
You can choose between one of the following methods to write the installer image di-nslu2.bin to flash: Anda dapat memilih antara salah satu metode berikut untuk menulis gambar installer di-nslu2.bin ke flash:
Using the web interface from the original NSLU2 firmware. Menggunakan antarmuka web dari NSLU2 firmware asli. Go to the administration section, choose Upgrade , browse your disk for the debian-installer image you have just downloaded. Pergi ke bagian administrasi, pilih Upgrade, isi disk anda untuk gambar debian-installer yang baru saja Anda download. Then press the Start Upgrade button, confirm, wait for a few minutes and confirm again. Kemudian tekan tombol Start Upgrade, konfirmasi, tunggu beberapa menit dan konfirmasi lagi.
Using
upslug2 from any Linux or Unix machine to upgrade the machine via the network (the software is packaged for Debian). Menggunakan
upslug2 dari Linux atau mesin Unix untuk meng-upgrade mesin melalui jaringan (perangkat lunak dikemas untuk Debian).
First, you have to put your NSLU2 in upgrade mode: Pertama, anda harus meletakkan NSLU2 Anda dalam modus upgrade:
Disconnect any disks and/or devices from the USB ports. Lepaskan setiap disk dan / atau perangkat dari port USB.
Power off the NSLU2 Matikan NSLU2
Press and hold the reset button (accessible through the small hole on the back just above the power input). Tekan dan tahan tombol reset (dapat diakses melalui lubang kecil di bagian belakang tepat di atas masukan daya).
Press and release the power button to power on the NSLU2. Tekan dan lepaskan tombol daya untuk menghidupkan NSLU2 tersebut.
Wait for 10 seconds watching the ready/status LED. Tunggu selama 10 detik menonton status / LED siap. After 10 seconds it will change from amber to red (old older NSLU2) or dark orange (on newer machines). Setelah 10 detik itu akan berubah dari kuning menjadi merah (NSLU2 tua tua) atau oranye gelap (pada mesin baru). Immediately release the reset button. Segera lepaskan tombol reset.
The NSLU2 ready/status LED will flash alternately dark orange and green (there is a 1 second delay before the first green). Siap NSLU2 / status LED akan berkedip bergantian oranye gelap dan hijau (ada 1 detik delay sebelum hijau pertama). The NSLU2 is now in upgrade mode. NSLU2 sekarang dalam mode upgrade.
See the
NSLU2-Linux pages if you have problems with this. Lihat
NSLU2-Linux halaman jika Anda memiliki masalah dengan ini.
Once your NSLU2 is in upgrade mode, you can flash the new image: Setelah NSLU2 Anda dalam modus upgrade, Anda dapat flash gambar baru:
$ sudo upslug2 -i di-nslu2.bin $ Sudo upslug2-i di-nslu2.bin
Password: Password:
NSLU2 00:13:10:d6:1e:a7 Product ID: 1 [...] NSLU2 00:13:10: D6: 1e: a7 Produk ID: 1 [...]
Upgrading LKGD61EA7 00:13:10:d6:1e:a7 Upgrade LKGD61EA7 00:13:10: D6: 1e: a7
. . original flash contents * packet timed out flash isi paket * asli timed out
! ! being erased - erased yang terhapus - terhapus
u being upgraded U upgraded u sedang ditingkatkan U ditingkatkan
v being verified V verified v diverifikasi V diverifikasi
Display: Tampilan:
+ completed> +
Status: Status:
* timeout occurred + sequence error detected * Timeout terjadi + kesalahan urutan terdeteksi
2a013f+000000 ...UUUUUUUUUUUUUUUUUUu--------------------[...] 2a013f 000000 ... UUUUUUUUUUUUUUUUUUu -------------------- [...]
By default, upslug2 will look for the NSLU2 on the network connected to the eth0 interface of your machine. Secara default, upslug2 akan mencari NSLU2 di jaringan yang terhubung dengan interface eth0 mesin Anda. If you have multiple network interfaces and the NSLU2 is not connected to eth0 , you have to specify the network interface with the -d option (for example, -d eth1 ). Jika anda memiliki beberapa antarmuka jaringan dan NSLU2 tidak terhubung ke eth0, Anda harus menentukan antarmuka jaringan dengan opsi-d (misalnya,-d eth1).
Note that the tool also shows the MAC address of your NSLU2, which may come in handy to configure your DHCP server. Perhatikan bahwa alat ini juga menunjukkan alamat MAC NSLU2 Anda, yang mungkin berguna untuk mengkonfigurasi server DHCP.
After the whole image has been written and verified, the system will automatically reboot: Setelah seluruh gambar telah ditulis dan diverifikasi, sistem akan secara otomatis reboot:
[...] [...]
7fffff+000000 ...VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV[...] 7fffff 000000 ... VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV [...]
Rebooting... Reboot ... done dilakukan
Make sure you connect and turn on your USB disk again, otherwise debian-installer won't be able to find it. Pastikan Anda terhubung dan mengaktifkan disk USB Anda lagi, dinyatakan debian-installer tidak akan dapat menemukannya.
Using
a tool for Windows to upgrade via the network. Menggunakan
alat untuk Windows untuk meng-upgrade melalui jaringan.
After you have flashed the debian-installer image, your NSLU2 will boot and start the Debian installer. Setelah Anda melintas di gambar debian-installer, NSLU2 Anda akan boot dan mulai installer Debian. Since the NSLU2 does not have any IO device, SSH will be used for the installation. Sejak NSLU2 tidak memiliki perangkat IO, SSH akan digunakan untuk instalasi. The installer will bring up the network, start the OpenSSH server and allow you to connect to the device using SSH. Installer akan memunculkan jaringan, jalankan server OpenSSH dan memungkinkan Anda untuk terhubung ke perangkat menggunakan SSH. You have to wait approximately five minutes after the debian-installer firmware has been flashed before you can connect, but please be patient as it can sometimes take slightly longer, say 10-15 minutes. Anda harus menunggu sekitar lima menit setelah firmware debian-installer telah melintas sebelum Anda bisa terhubung, tetapi harap bersabar karena kadang-kadang dapat mengambil sedikit lebih lama, misalnya 10-15 menit. When the installer is ready, the status LED will become green and the NSLU2 will beep three times to indicate that you can now login via SSH. Ketika installer siap, status LED akan menjadi hijau dan NSLU2 akan berbunyi tiga kali untuk menunjukkan bahwa Anda sekarang dapat login melalui SSH.
Since the NSLU2 does not have an LCD, the installer cannot tell you which IP address to connect to or which password to use. Sejak NSLU2 tidak memiliki LCD, installer tidak bisa mengatakan anda yang alamat IP dapat terhubung ke atau yang password untuk digunakan. With regards to the IP address, the following strategy is used: Sehubungan dengan alamat IP, strategi berikut digunakan:
If you have configured your network settings through the Linksys web interface to use a static IP address, these values will be used (including the hostname and domain). Jika Anda telah mengkonfigurasi pengaturan jaringan Anda melalui antarmuka web Linksys untuk menggunakan alamat IP statis, nilai-nilai ini akan digunakan (termasuk nama host dan domain).
If you configured the NSLU2 to use DHCP, the Debian installer will use DHCP. Jika Anda mengkonfigurasi NSLU2 untuk menggunakan DHCP, installer Debian akan menggunakan DHCP. You can use the MAC address of your NSLU2 to tell your DHCP server to give out a specific IP address to your machine. Anda dapat menggunakan alamat MAC NSLU2 Anda untuk memberitahu server DHCP untuk memberikan alamat IP khusus untuk mesin Anda.
If you configured a static IP address but some values (eg DNS) are missing, the installer will try to request an IP address via DHCP. Jika Anda mengkonfigurasikan alamat IP statis tetapi beberapa nilai (misalnya DNS) yang hilang, installer akan mencoba untuk meminta alamat IP melalui DHCP.
If DHCP is used but no address can be found via DHCP, the default IP address which Linksys uses will be used: 192.168.1.77 Jika DHCP digunakan tapi tak ada alamat yang dapat ditemukan melalui DHCP, alamat IP default yang menggunakan Linksys akan digunakan: 192.168.1.77
If you're not able to connect to your NSLU2 after flashing the Debian installer, please use upslug2 to restore the original firmware from Linksys and check the network settings. Jika Anda tidak dapat terhubung ke NSLU2 Anda setelah flashing installer Debian, silahkan gunakan upslug2 untuk mengembalikan firmware asli dari Linksys dan periksa pengaturan jaringan.
Please make sure that the NSLU2 is on a local network to which only you have access since the password from the NSLU2 firmware is not used for the installer but rather the the very generic password install . Pastikan NSLU2 adalah pada jaringan lokal yang hanya Anda yang memiliki akses sejak password dari firmware NSLU2 tidak digunakan untuk installer melainkan generik password yang sangat install. The user is installer . Pengguna installer. Connect to the installer: Hubungkan ke installer:
ssh installer@ 192.168.1.77 ssh installer@192.168.1.77
The Installation Instalasi
The installation itself should be pretty standard and you can follow the
installation guide . It knows about the NSLU2 and at the end of the installation it will flash a kernel and ramdisk that will automatically boot into Debian. Instalasi itu sendiri harus cukup standar dan Anda dapat mengikuti
panduan instalasi . Ini tahu tentang NSLU2 dan pada akhir instalasi akan flash kernel dan ramdisk yang akan secara otomatis boot ke Debian.
Since the NSLU2 doesn't have much memory, the installer won't automatically load all installer modules that are available and will give you a list of additional modules to load. Sejak NSLU2 tidak memiliki banyak memori, installer tidak akan secara otomatis memuat semua modul installer yang tersedia dan akan memberi Anda daftar modul tambahan untuk beban. With previous versions of the installer, you had to specify some modules from the list for the installation to work. However, this is no longer necessary with the new installer for Debian 5.0 (lenny). Dengan versi sebelumnya installer, Anda harus menentukan beberapa modul dari daftar instalasi untuk bekerja. Namun, ini tidak lagi perlu dengan installer baru untuk Debian 5.0 (lenny). The required modules are loaded automatically and not shown in the list. Modul yang diperlukan di-load secara otomatis dan tidak ditampilkan dalam daftar. You can therefore continue without loading any additional installer modules. Oleh karena itu Anda dapat melanjutkan tanpa memuat modul apapun installer tambahan.
The installation will take roughly 4 hours (or slightly more if you have a slow Internet connection). Instalasi akan memakan waktu sekitar 4 jam (atau sedikit lebih jika Anda memiliki koneksi internet yang lambat). At the end of the installation, the installer will write the new kernel to flash. Pada akhir instalasi, installer akan menulis kernel baru ke flash. Afterwards you will get a confirmation that the installation is complete. Setelah itu Anda akan mendapatkan konfirmasi bahwa instalasi selesai. Confirm, wait for the installer to finish and once your SSH session terminates, wait a few minutes before you can connect to your newly installed system vis SSH. Konfirmasi, menunggu installer selesai dan sekali sesi SSH Anda berakhir, tunggu beberapa menit sebelum Anda dapat terhubung ke sistem Anda yang baru diinstal vis SSH. You will be able to log in via SSH as root or your newly created user. Anda akan dapat log in melalui SSH sebagai root atau baru dibuat pengguna Anda.
When you first login to your new system, it is recommended that you install the ntpdate (or ntp ) package to make sure the clock is always up-to-date. Ketika Anda pertama kali login ke sistem baru Anda, dianjurkan bahwa Anda menginstal ntpdate (atau ntp) paket untuk membuat jam pastikan selalu up-to-date.
Success Sukses
You should now have a complete Debian system running on your NSLU2. Anda sekarang harus memiliki sebuah sistem Debian yang lengkap berjalan pada NSLU2 Anda. You can use
apt-get and other tools to install additional software. The NSLU2 is an ARM based device and the ARM architecture (called
armel in Debian) is fully supported by Debian. Anda dapat menggunakan
apt-get dan alat-alat lain untuk menginstal perangkat lunak tambahan. NSLU2 ini adalah perangkat berbasis ARM dan arsitektur ARM
(armel disebut dalam Debian) didukung sepenuhnya oleh Debian. Unlike the original firmware, the Debian port runs in little-endian mode. Berbeda dengan firmware asli, pelabuhan Debian-endian berjalan dalam modus sedikit. In case you faced any problems with the installer that couldn't be resolved, it's also possible to install Debian on your NSLU2 by
manually unpacking a tar ball which I've prepared. Jika Anda menghadapi masalah dengan installer yang tidak dapat diselesaikan, hal itu juga memungkinkan untuk menginstal Debian pada NSLU2 Anda dengan
manual membongkar bola tar yang saya sudah siap.
There are a number of resources where you can find more information about running Debian on your NSLU2. The README file from the
nslu2-utils package (
/usr/share/doc/nslu2-utils/README.Debian on your newly installed system) includes some important information you should definitely read. Also, there are some tips for running
Linux on a flash device (in case you didn't install Debian on a hard drive but a USB flash stick) and for
reducing memory usage . Ada sejumlah sumber daya di mana Anda dapat menemukan informasi lebih lanjut tentang menjalankan Debian di NSLU2 Anda. File README dari
paket-utils nslu2 (/ usr/share/doc/nslu2-utils/README.Debian pada sistem anda yang baru dipasang) meliputi beberapa informasi penting yang Anda pasti harus dibaca. Selain itu, ada beberapa tips untuk menjalankan
Linux pada perangkat flash (dalam kasus Anda tidak menginstal Debian pada hard drive tetapi stick USB flash) dan untuk
mengurangi penggunaan memori .
Troubleshooting Mengatasi Masalah
If you run into any problems installing or running Debian on your Linksys NSLU2, please read the
troubleshooting page . Jika Anda mengalami masalah menginstal atau menjalankan Debian di NSLU2 Linksys anda, silahkan baca
halaman pemecahan masalah .