Akhirnya, setelah menimbang beberapa lama, tergoda juga buat install slackware. Orang bilang, kalau mau belajar linux pakailah slackware. Berhubung, saya menginstall slackware 12.0, kayaknya anggapan seperti itu sudah nggak relevan lagi. Tidak jauh berbeda dengan distro lainnya, Slackware menurut saya sudah cukup user friendly (asal mau kotak-katik sedikit).

Dukungan multimedia bukan prioritas saya dalam memilih sistem operasi, tapi namanya juga orang, butuh hiburan kan ? Saat mencoba menjalankan file .mp3 dari Amarok, ternyata…suara nihil. Dari hasil googling, saya peroleh 3 langkah mudah untuk “mengeleminasi” masalah ini :

  1. Sebagai root, jalankan perintah : alsaconf. Biarkan ALSA melakukan deteksi otomatis kartu suara yang terpasang di komputer. (Jika, tidak terdeteksi, jangan lanjutkan membaca tip ini !)
  2. Jalankan perintah alsamixer. Atur tingkat suara untuk setiap tipe output. Gunakan panah atas-bawah untuk mengatur tingkat suara, dan panah kanan-kiri untuk memilih tipe output yang akan diatur. Tekan ESC setelah selesai.
  3. Jalankan perintah alsactl store untuk menyimpan konfigurasi.

Setelah melakukan ketiga langkah tersebut, saya segera mencoba Amarok. Hasilnya, cukup memuaskan !

Sebelum menginstall netbeans 6, saya memastikan di sistem telah terdapat jdk-6. Oleh karena itu, terlebih dulu saya menginsall jdk-6, dengan mengikuti langkah-langkah berikut :

  1. Mendownload jdk-6 untuk Linux dari java.sun.com
  2. Menginstall jdk-6u3-linux-i586.bin di direktori /opt dengan perintah :

    sudo ./jdk-6*bin

    dan menjawab pertanyaan-pertanyaan standar yang diajukan. Hapus file *bin bila tidak diperlukan lagi. Pastikan bahwa direktori /jdk-1.6.0_03 ada di dalam direktori /opt setelah melakukan instalasi.

  3. Java telah terinstall pada sistem saya. Selanjutnya, saya perlu memberitahu sistem mengenai letaknya, yaitu dengan membuat file java.sh di direktori /etc/profile.d.

    cd /etc/profile.d

    sudo nano java.sh

    Berikut adalah isi dari file java.sh :

    export J2RE_HOME=/opt/jdk1.6.0_03
    export PATH=$J2RE_HOME/bin:$PATH

    Ubah mode file java.sh agar dapat dieksekusi dengan mengetikkan perintah :

    chmod +x java.sh

    Lanjutkan dengan mengeksekusi file ini :

    sudo ./java.sh

    Kemudian hilangkan kembali mode eksekusi file java.sh :

    chmod -x java.sh

    Test hasil instalasi dengan mengetikkan perintah :

    java -version

    Jika instalasi benar, pesan yang muncul kurang lebih seperti berikut :

    java version “1.6.0_03″
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

  4. selanjutnya, saya mendownload program netbeans-6.0.1-ml-javaee-linux.sh dari http://java.sun.com dan menyimpannya di direktori /home/sistemku/Download
  5. Menurut petunjuk umum, seharusnya untuk menginstall program ini cukup mengetikkan perintah :

    sudo /home/sistemku/Download/netbeans*

    Ternyata saya malah menemukan pesan error seperti berikut :

    Configuring the installer…
    Searching for JVM on the system…Extracting installation data…
    Running the installer wizard…
    java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock’ failed../netbeans-6.0.1-ml-javaee-linux.sh: line 1360: 4946 Aborted /opt/jdk1.6.0_03/bin/java -Xmx256m -Xms64m -Djava.io.tmpdir=/tmp -classpath /tmp/.nbi-6011521.tmp/bundle.jar org.netbeans.installer.Installer

  6. Jawaban untuk mengatasi masalah ini, saya temukan di http://www.fedoraforum.org/forum/showthread.php?t=171763&page=1 Tentunya dengan sedikit penyesuaian.
  7. Berikut adalah deretan perintah yang saya gunakan untuk memperbaiki dan mengatasi masalah instalasi :

    sed -i ’s/XINERAMA/FAKEEXTN/g’ /opt/jdk1.6.0_03/jre/lib/i386/xawt/libmawt.so sudo /home/sistemku/Download/netbeans*

  8. Lanjutkan dengan menjawab pertanyaan-pertanyaan yang diajukan sesuai dengan kebutuhan.

Kemarin malam saya baru saja menginstall linux di PC rumah. Awalnya pilihan jatuh ke Ubuntu. Setelah beberapa kali percobaan, saya selalu gagal menginstall distro ini di PC saya. Akhirnya, saya sampai pada kesimpulan bahwa, PC saya dirumah tidak dapat menerima Ubuntu karena VGA card saya yang NVidia, terbukti setiap berusaha menginstall, ditengah jalan koneksi VGA card ke monitor selalu ‘menghilang’.

Setelah sekian kali percobaan gagal, akhirnya saya memutuskan untuk menggunakan distro Fedora Core 8. Instalasi berjalan mulus. Berhubung saya memiliki koneksi internet dengan provider Telkomspeedy, langkah selanjutnya setelah instalasi adalah men-setup koneksi ke speedy yang menggunakan modem ADSL.

Jika di Ubuntu ada ‘pppoeconf’, padanannya di Fedora Core adalah pppoe-setup. Hanya saja pada distro hasil instalasi saya, letak pppoe-setup tidak dalam default PATH, file ini terletak di direktori /sbin. Jadi untuk mulai mengkonfigurasi, saya ketikkan :

/sbin/pppoe-setup

Perintah ini saya jalankan sebagai administrator. Selanjutnya, saya tinggal menjawab pertanyaan-pertanyaan seperti :

  • Perangkat (device) yang digunakan. Diisi dengan eth0, yaitu perangkat dimana modem ADSL terhubung ke PC.
  • Login name. Diisi dengan username untuk speedy (xxxxxxx@telkom.net)
  • Primary DNS. Diisi dengan primary DNS yang diperoleh dari provider (202.134.xxx.xxx)
  • Secondary DNS. Diisi dengan secondary DNS dari provider (202.134.xxx.xxx)
  • Password. Diisi dengan password untuk koneksi speedy.

Selanjutnya, program ini akan membuat file konfigurasi secara otomatis. Perhatikan dan ingat baik-baik file konfigurasi ini.

Setelah proses setup selesai, koneksi dapat dilakukan dengan perintah :

/sbin/ifup ppp0

dan untuk memutuskan koneksi, gunakan perintah :

/sbin/ifdown ppp0

Sampai tahap ini, saya telah berhasil melakukan koneksi internet menggunakan Fedora Core 8 dan modem ADSL.

Kutipan berikut merupakan cara-cara yang dapat digunakan untuk meningkatkan performasi Ubuntu. Maaf, saya tidak sempat menterjemahkannya. Artikel ini saya peroleh dari http://ubuntulinux.or.id/forum/viewtopic.php?t=908 :

lets start first with the kernel:apt-get install build-essential libncurses-dev kernel-package
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2

This will download the latest sources available, in my case linux-2.6.20.tar.bz2

cd /usr/src
tar -xjf linux-2.6.20.tar.bz2
cd linux-2.6.20

Now lets apply the Con Kolivas patches, these are patches designed to improve system responsiveness with specific emphasis on the desktop, but suitable to any workload.

wget www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/2.6.20/2.6.20-ck1/patch-2.6.20-ck1.bz2
bzcat patch-2.6.20-ck1.bz2 |patch -p1

Copy the current kernel config and configuring the kernel

cp /boot/config-`uname -r` .config
make menuconfig

In “General Setup” activate:
- Support for paging of anonymous memory (swap)
- Support for prefetching swapped memory

In “Processor type and features“:
- processor family Choose the model of your processor.
- set Preemption Model to Voluntary Kernel Preemption (Desktop)
- High Memory Support
- off - if you have less than 1 GB of RAM
- 1GB Low Memory Support - if you have 1GB of RAM
- 4GB - if you have more than 1GB of RAM
- set Timer frequency to 1000 Hz

In “Kernel hacking” uncheck “Kernel debugging“.

Now exit and save the configuration.

Making the new kernel package:
make-kpkg -initrd –revision=LinuxMonitor1 kernel_image kernel_headers modules_image

Installing the new kernel
cd ..
dpkg -i *.deb

HDParm

sudo gedit /etc/hdparm.conf

at the bottom add:

/dev/hda {
dma = on
io32_support = 1
}

/dev/cdroms/cdrom0 {
dma = on
interrupt_unmask = on
io32_support = 0
}

Concurrent Booting

Concurrent booting allows Ubuntu to take advantage of dual-core processors, as well as processors that hyperthread or multithread
or what ever the different companies call it now.

sudo gedit /etc/init.d/rc

Look through the file and you will find CONCURRENCY=none.
You must change it to: CONCURRENCY=shell

Prelink

Disclaimer: Prelinking might break your system! Only consider for use if you can risk the chance that your install might mess up. Most of all make sure that it gets to run the whole thing through the first time you prelink. Stopping in the middle can lead to system failure. Prelinking is a powerful device and needs to be used with care.

Prelink is no longer necessary in Feisty. Feisty uses a new linking mechanism called DT_GNU_HASH which dramatically speeds up the linking process without the need for continuously running this prelink program. Again, prelink is NOT useful starting from Feisty

How to enable prelink

1. Activate Ubuntu universe sources
2. Put this command into terminal to install Prelink:

sudo apt-get install prelink

3. Now put this command into the terminal:

sudo gedit /etc/default/prelink

4. Change where it says “PRELINKING=unknown” from unknown to “yes”
5. Adjust the other options if you know what the heck you’re doing. If it looks foreign to you, the defaults work well.
6. To start the first prelink (the longest one!), put this in terminal:

sudo /etc/cron.daily/prelink

Automatic Prelinking After Program Are Installed

One problem with prelinking in that when you install new programs those programs are not prelinked. So to avoid this problem when installing programs with apt-get or synaptic, use the directions below.

1. Put this in terminal:

sudo gedit /etc/apt/apt.conf

2. When the file opens in Gedit, put this line at the end of the file and save (even if the file has no content before you add the line):

DPkg::Post-Invoke {”echo Running prelink, please wait…;/etc/cron.daily/prelink”;}

General Notes About Prelinking

In the future, prelink performs a quick prelink (a less-than-1-minute procedure on most systems) daily, usually at midnight. Every 14 days, or whatever you changed it to be, a full prelink will run.

If you just did a major apt-get upgrade that changed systemwide libraries (i.e. libc6, glibc, major gnome/X libs, etc etc etc) and experience cryptic errors about libs, rerun step 6.

To undo prelink, change step 4 from yes to no, then rerun step 6.

Prelinking will make the binaries it prelinks change, so it’s not appropriate if you have tripwire or another checksum-based IDS system, or if you do incremental or differential backups to save on space.

To enable/disable services go to System -> Administration -> Services

1. acpi-support - leave it on.
2. acpid - The acpi daemon. These two are for power management, quite important for laptop and desktop computers, so leave them on.
3. alsa - If you use alsa sound subsystem, yes leave it on. But if you have the service below, its safe to be off. The default is off when alsa-utils is on.
4. alsa-utils - On my system, this service supercedes the alsa, so I turn off the alsa and turn this on at S level.
5. anacron - A cron subsystem that executes any cron jobs not being executed when the time is on. Most likely you’ve probably turned your computer off when a certain cron job time is ready. For example, updatedb is scheduled at 2am everyday, but at that moment, you computer is off, then if anacron service is on, it will try to catch up that updatedb cron.
6. apmd - If you computer is not that old which can’t even support acpi, then you may try to turn this off.
7. atd - like cron, a job scheduler. I turned it off.
8. binfmt-support - Kernel supports other format of binary files. I left it on.
9. bluez-utiles - I turned it off. I don’t have any bluetooth devices.
10. bootlogd - Leave it on.
11. cron - Leave it on.
12. cupsys - subsystem to manager your printer. I don’t have one so I turned it off, but if you do, just leave it on.
13. dbus - Message bus system. Very important, leave it on.
14. dns-clean - Mainly for cleaning up the dns info when using dial-up connection. I don’t use dial up, so I turn it off.
15. evms - Enterprise Volumn Management system. I turned it off.
16. fetchmail - A mail receving daemon. I turned it off.
17. gdm - The gnome desktop manager. I turned it off anyway since I get use to boot to console first. This is up to you if you want to boot directly to GUI.
18. gdomap - You can turn it off.
19. gpm - Mouse support for console. If you feel you’d better have a mouse on console, go turn it on.
20. halt - Don’t change it.
21. hdparm - tuning harddisk script, should be on.
22. hibernate - If your system support hibernate, leave it on. Otherwise, its useless for you.
23. hotkey-setup - This daemon setup some hotkey mappings for Laptop. Manufacturers supported are: HP, Acer, ASUS, Sony, Dell, and IBM. If you have a laptop in those brands, you can leave it on, otherwise, this might not have any benefits for you.
24. hotplug and hotplug-net - activating hotplug subsystems takes time. I’d consider to turn them off.
25. hplip - HP printing and Image subsystem. I turned it off.
26. ifrename - network interface rename script. Sounds pretty neat but I turned it off. Mainly for managing multiple network interfaces names. Since I have a wireless card and an ethernet card, they all assigned eth0 and ath0 from kernel, so its not really useful for me.
27. ifupdown and ifupdown-clean - Leave it on. They are network interfaces activation scripts for the boot time.
28. inetd or inetd.real - take a look your /etc/inetd.conf file and comment out any services that you don’t need.
29. klogd - Leave it on.
30. laptop-mode - A service to tweak the battery utilization when using laptops. You can leave it on.
31. linux-restricted-modules-common - You need to see if you really have any restricted modules loaded on your system. I’d leave it on.
32. lvm - I don’t use it so I turned it off. Leave it on if you *DO* have lvm.
33. makedev - Leave it on.
34. mdamd - Raid management tool. I don’t use it so I turned it off.
35. mdamd-raid - Raid tool. If you don’t have Raid devices, turn it off.
36. module-init-tools - Load extra modules from /etc/modules file. You can investigate your /etc/modules file and see if there is any modules that you don’t need. Normally, this is turned on.
37. mountvirtfs - mount virtual filesystems. Leave it on.
38. networking - bring up network interfaces and config dns info during boot time by scaning /etc/network/interfaces file. Leave it on.
39. ntpdate - Sync time with the ubuntu time server. Leave it on if you want.
40. nvidia-kernel - I compiled the nvidia driver by myself, so its useless for me now. If you use the ubuntu nvidia driver from the restrict modules, just leave it on. 41. pcmcia - pcmcia device - useless if you are using desktop which doesn’t have pcmcia card. So in that case, turn it off please.
42. portmap - daemon for managing services like nis, nfs, etc. If your laptop or desktop is a pure client, then turn it off.
43. powernowd - client to manage cpufreq. Mainly for laptops that support CPU speed stepping technology. Normally, you should leave it on if you are configuring a laptop, but for desktop, it might be useless.
44. ppp and ppp-dns - Useless to me. I don’t have dial-up.
45. readahead - It seems readahead is a kind of “preloader”. It loads at startup some libs on memory, so that some programs will start faster. But it increases startup time for about 3-4 seconds. So, you can keep it… or not. I tested and I just didn’t feel difference loading programs. So I decided to turn it off. If you have a reason to keep it on, please do so.
46. reboot - Don’t change it.
47. resolvconf - Automatically configuring DNS info according to your network status. I left it on.
48. rmnologin - Remove nologin if it finds it. It wouldn’t happen on my laptop, so I got rid of it.
49. rsync - rsync daemon. I don’t use it on my laptop, so turned it off.
50. sendsigs - send signals during reboot or shutdown. Leave it as it is.
51. single - Active single user mode. Leave it as it is.
52. ssh - ssh daemon. I need this so I turned it on.
53. stop-bootlogd - stop bootlogd from 2,3,4,5 runlevel. Leave it as it is.
54. sudo - check sudo stauts. I don’t see any good to run it everytime on a laptop or desktop client, so I turned it off.
55. sysklogd - Leave it as it is.
56. udev and udev-mab - Userspace dev filesystem. Good stuff, I left them on.
57. umountfs - Leave it as it is.
58. urandom - Random number generator. Might not useful but I left it on.
59. usplash - Well, if you really want to see the nice boot up screen, leave it as it is.
60. vbesave - video card BIOS configuration tool. Its able to save your video card status. I left it on.
61. xorg-common - setup X server ICE socket. Leave it as it is.
62. adjtimex - This is a kernel hw clock time adjusting too. Normally, you shouldn’t see this on your boot up list. In very rare case if you do see its on your boot up process, then there might be a reason why it is on, so better leave it that way. In my case, it is off.
63. dirmngr - A certification lists management tool. Work with gnupg. You will have to see if you need it or not. In my case, I turned it off.
64. hwtools - A tool to optimize irqs. Not sure what’s the benefits of turning it on. In my case, I turned it off.
65. libpam-devperm - A daemon to fix device files permissions after a system crash. Sounds pretty good, so I left it on.
66. lm-sensors - If you matherboard has builtin some sensor chips, it might be helpful to see hw status via userspace. I ran it and it said “No sensors found”, so I turned it off.
67. screen-cleanup - A script to cleanup the boot up screen. Well, turn on or off is up to you. In my case, I left it on.
68. xinetd - A inetd super daemon to manage other damons. In my system, the xinetd is managing chargen, daytime, echo and time (find them from /etc/xinetd.d dir), I care none of them, so I turned it off. If you do have some important services configured under xinetd, then leave it on.

The end! Special thanks to i3dmaster, xXx 0wn3d xXx, poofyhairguy and the rest of the ubuntuforums.org people

Selamat mencoba !

Kawan saya, seorang dosen, mengajar matakuliah pemrograman basis data. Adapun basis data yang digunakan adalah MySQL. Saat ini, MySQL ter-install pada server yang merupakan wewenang saya. Sebagai gambaran, server ini tidak didedikasikan khusus untuk MySQL saja, tetapi juga file server praktikum dan lain sebagainya.

Sebagai dosen matakuliah ini, saya rasa sudah sepantasnya ia memiliki akses untuk paling tidak menyalakan dan mematikan server. Kebutuhkan ini terutama dirasakan saat mengadakan quiz atau ujian praktek. Untungnya, Ubuntu memiliki sudo, tools yang dapat digunakan untuk berbagi dan membatasi wewenang.

Bagi para pengguna Ubuntu, khususnya mereka yang sering bekerja dengan terminal tentunya mengenal sudo. Perintah ini seringkali digunakan untuk mengeksekusi perintah lain yang membutuhkan otentifikasi sebagai administrator atau user lain.

Wewenang untuk melakukan sudo terletak pada file /etc/sudoers. Tentunya untuk mengedit file ini sebelumnya kita juga harus memiliki wewenang melakukan sudo sebagai administrator. Selanjutnya saya akan membahas sedikit mengenai /etc/sudoers yang saya edit untuk membagi wewenang pada kawan saya.

Pertama-tama saya perlu menambahkan user agar kawan saya dapat melakukan login ke server.Username dan groupname yang saya berikan adalah badat.

Selanjutnya, sayang membuka file /etc/sudoers dengan perintah

sudo nano /etc/sudoers

Berikut adalah isi dari file tersebut :

# /etc/sudoers
#
# This file MUST be edited with the ‘visudo’ command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification

# User alias specification
User_Alias DOSEN = badat
# Host alias specification
Host_Alias INTERNAL = 10.10.10.0/255.255.255.0
# Cmnd alias specification
Cmnd_Alias MYSQL = /etc/init.d/mysql, /usr/bin/mysql*
Cmnd_Alias SAMBA = /etc/init.d/samba, /usr/sbin/smbd, /usr/sbin/nmbd

# Defaults

Defaults !lecture,tty_tickets,!fqdn

# User privilege specification
root ALL=(ALL) ALL
badat INTERNAL=NOPASSWD: MYSQL,SAMBA

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Perhatikan, tulisan yang berwarna merah adalah bagian yang saya tambahkan pada file tersebut, sedangkan yang berwarna hitam adalah default.

Bagian User alias spesification digunakan untuk membuat alias untuk satu atau beberapa user. Contoh saya menunjukkan bahwa user badat memiliki alias, yaitu DOSEN. Artinya, selanjutnya pada file ini, kata DOSEN akan mengacu pada user badat. Satu nama alias dapat menampung beberapa user, sehingga nama alias ini seolah-olah berperan sebagai nama group.

User_Alias DOSEN = badat

Berikutnya adalah bagian host alias spesification. Pada bagian ini, kita dapat menspesifikasikan dari host/komputer mana seseorang yang memiliki remote akses dapat melakukan sudo. Saya memberikan kawan saya akses untuk melakukan sudo dari semua komputer yang terdapat dalam internal network, yaitu komputer dengan IP 10.10.10.* dan netmask 255.255.255.0. Jaringan internal ini saya beri nama alias INTERNAL.

Host_Alias INTERNAL = 10.10.10.0/255.255.255.0

Cmnd alias spesification adalah bagian dimana kita mendefinisikan file-file mana saja yang dapat dieksekusi saat seorang user menggunakan sudo. Kepada file-file tersebut, kita juga memberikan nama alias. Sebagai contoh, karena ingin memberikan akses untuk men-start dan men-shutdown mysql, maka saya membuat baris berikut :

Cmnd_Alias MYSQL = /etc/init.d/mysql, /usr/bin/mysql*

Artinya, kawan saya dapat menjalankan file /etc/init.d/mysql dan file-file executable lain pada folder /usr/bin yang berawalan mysql, misalnya : mysqldump.

User privilege spesification adalah bagian yang terpenting menurut saya. Di bagian ini, kita akan menggunakan semua spesifikasi yang telah kita tuliskan sebelumnya.

root ALL=(ALL) ALL

Kutipan di atas dapat diterjemahkan sebagai “user root dapat melakukan sudo di host manapun (kata ALL pertama), dan berperan sebagai user siapapun (kata ALL kedua, dalam kurung) untuk menjalankan perintah apapun (kata ALL ketiga). Contoh lain adalah sebagai berikut :

badat INTERNAL=NOPASSWD: MYSQL,SAMBA

Berarti user badat dapat melakukan sudo di semua host dalam network internal (INTERNAL, 10.10.10.*/255.255.255.0), secara default berperan sebagai root (karena tidak didefinisikan setelah tanda =), tanpa memerlukan password (NOPASSWD), dan hanya dapat menjalankan perintah yang terdaftar pada alias MYSQL dan SAMBA.

Sekian sharing pengalaman saya dalam menggunakan sudo. Untuk lebih jelas dan lengkap mengenai sudo, silakan manfaatkan fasilitas man.

man sudoers

Sejak awal menggunakan Ubuntu, saat itu Ubuntu 6.06, saya mulai mengenal dan mengerti konsep repository secara praktis. Repository saya umpamakan sebagai gudang penyimpanan. Apa yang disimpan ? Tentu saja berbagai software yang dapat digunakan dalam Ubuntu, termasuk update-annya. Dimanakah letak repository ini ? Tentu saja pada suatu server yang saya pun tidak tahu persis dimana letaknya, bisa di dalam atau di luar negeri.

Daftar repository yang dapat digunakan oleh Ubuntu kita terletak pada file /etc/apt/sources.list. Berikut ini adalah contoh isi file tersebut :

#
# deb cdrom:[Edubuntu 7.04 _Feisty Fawn_ - Release i386 Binary-1 (20070415)]/ feisty main restricted

deb cdrom:[Edubuntu 7.04 _Feisty Fawn_ - Release i386 Binary-2 (20070415)]/ feisty main restricted
deb cdrom:[Edubuntu 7.04 _Feisty Fawn_ - Release i386 Binary-1 (20070415)]/ feisty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse

## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse

Bagian-bagian yang diawali oleh tanda ‘#’ adalah komentar yang memberikan keterangan mengenai repository yang bersangkutan, yang terletak dibawahnya.

Pada masing-masing repository, terdapat suatu daftar software yang dimiliki. Jadi file /etc/apt/sources.list hanya memuat lokasi saja, tidak memberitahukan software yang tersimpan di dalamnya. Agar Ubuntu yang kita miliki dapat mengetahui daftar software pada suatu repository, gunakan perintah berikut :

sudo apt-get update

Bila koneksi internet yang dimiliki cepat, proses update daftar software ini mungkin tidak terasa. Sebaliknya, jika koneksi internet lambat, proses ini cukup menjengkelkan. Perlu diingat, sampai tahap ini, kita baru meng-update daftar software belum men-download software-nya sendiri, yang notabene jauh lebih besar ukurannya.

Mengapa proses ini bisa berlangsung lama ? Salah satu faktornya adalah letak repository server. Ingat ! Ini hanya salah satu faktor. Untuk mengatasi hal ini, kita bisa mengganti daftar repository dengan repository yang terdapat di server ‘lokal’. Server lokal yang biasa saya gunakan adalah kambing.vlsm.org. Sekarang lihat isi file /etc/apt/sources.list milik saya :

## REPOSITORY UTAMA
deb http://kambing.ui.edu/ubuntu feisty main restricted universe multiverse
deb-src http://kambing.ui.edu/ubuntu feisty main restricted universe multiverse

## MAJOR BUG FIX UPDATES
deb http://kambing.ui.edu/ubuntu feisty-updates main restricted universe multiverse
deb-src http://kambing.ui.edu/ubuntu feisty-updates main restricted universe multiverse

##SECURITY UPDATES
deb http://kambing.ui.edu/ubuntu feisty-security main restricted universe multiverse
deb-src http://kambing.ui.edu/ubuntu feisty-security main restricted universe multiverse

Selanjutnya, kita tinggal meng-update ulang daftar software. Sekian pembahasan mengenai repository dan local repository di Ubuntu. Mengenai download software nya sendiri, kita dapat memanfaatkan synaptic package manager.

Tips berikut diperoleh dari salah satu majalah langganan saya. Menurut saya ini penting untuk dibagikan, karena saya pribadi beberapa kali menemukan masalah ini ketika melakukan uninstall/install sistem operasi. Saat melakukan uninstall/instalasi sistem operasi pada PC terutama yang memiliki dual boot, seringkali saya lupa bahwa ada yang namanya MBR (Master Boot Record) yang mengatur sistem operasi mana yang akan digunakan untuk boot.
Grub adalah software bawaan linux (selain LILO) yang digunakan untuk mengelola pilihan-pilihan sistem operasi dalam melakukan booting. Tidak jarang proses booting mengalami kegagalan karena Grub tidak dapat berjalan secara semestinya. Saat Anda mengalami hal ini, berikut adalah langkah-langkah yang dapat Anda lakukan :

  1. Siapkan live CD distro untuk dapat masuk ke terminal (distro bebas, asal memiliki Grub)
  2. Masuk ke terminal, kemudian ketik : grub <ENTER>, Anda akan segera memasuki konsole Grub.
  3. Grub membutuhkan file stage1 untuk men-setup dirinya. Pastikan Anda mengetahui letak file ini. Jika Anda bingung, cobalah perintah ini : find /boot/grub/stage1 (mencari file stage1). Lokasi file stage1 dinyatakan berupa (hd?,?). Sebaiknya, jika PC saat ini dalam keadaan baik-baik saja, segera check keberadaan file stage1 untuk kemudahan disaat diperlukan.
  4. Lanjutkan dengan menginstal ulang Grub ke mbr dengan perintah : setup (hd?,?).
  5. Keluar dari Grub dengan perintah : quit

Selanjutnya, tinggal me-restart PC.

Powered by ScribeFire.

Sebelum mulai ke sisi teknis, saya akan menjelaskan sedikit mengapa saya mencoba teknik bernama “bonding” ini. Laboratorium tempat saya mengutak-atik komputer memiliki sebuah file server yang biasa digunakan untuk kegiatan praktikum. Saat kegiatan praktikum berlangsung,koneksi ke server ini sangat padat sehingga terkadang user membutuhkan waktu yang lama saat menyimpan file.

Kasus ini tidak lantas membuat saya berkesimpulan bahwa saya solusinya adalah bonding. Ada beberapa hal lain yang mungkin menyebabkan hal ini, diantaranya adalah : memory kurang, processor yang tidak memadai dan hub (ya, hub ! karena switch di lab ini sedang rusak terpaksa saya menggantinya dengan hub).

Lalu mengapa saya memilih bonding ? Tidak ada alasan lain selain karena Laboratorium ini memiliki sisa NIC yang cukup banyak. Ok, lalu apa sebenarnya kegunaan bonding ? Banyak ! Tapi saya hanya mengambil salah satunya, yaitu membagi beban koneksi ke beberapa NIC dalam satu komputer.

Server ini kini memiliki 2 NIC. Linux mengenalinya sebagai eth0 dan eth1. Eth0 adalah NIC yang sejak awal telah ada di server dan eth1 adalah NIC yang baru di pasang. Terhadap NIC yang baru terpasang (eth1) saya tidak melakukan konfigurasi apapun.

Langkah pertama yang saya lakukan adalah menginstall perangkat lunak ifenslave. Dengan Ubuntu saya cukup menjalankan perintah :

sudo apt-get update && apt-get install ifenslave

Selanjutnya saya menambahkan baris-baris berikut ke dalam file /etc/modprobe.d/aliases

alias bond0 bonding
options bonding mode=0 miimon=100 downdelay=200 updelay=200

Langkah selanjutnya adalah mengedit file /etc/network/interfaces dengan menambahkan baris-baris berikut :

iface bond0 inet static
address 10.100.60.31
netmask 255.255.255.0
network 10.100.60.0
gateway 10.100.60.1
dns-nameservers 10.100.100.1
hwaddress ether 00:05:5D:7C:FD:96
post-up ifenslave bond0 eth0 eth1

auto bond0

Perhatikan, hwaddress ether ……. saya dengan alamat hardware dari NIC (eth0 dengan MAC 00:05:5D:7C:FD:96).

Kemudian saya memeriksa apakah dalam file ini terdapat baris-baris pernyataan yang melibatkan eth1 (selain dari baris pernyataan yang saya masukkan sebelumnya), ternyata ada ! Dan pernyataan ini saya commented out dengan memberikan tanra ‘#’ di depannya.

Setelah semua kegiatan ini, saya akhiri dengan merestart server ’shutdown -r now’

Whoalla….sukses deh bonding kali ini !

Bulan ini saya baru saja berlangganan Telkom Speedy, memilih paket time based dengan quota 50 jam per bulan. Saat mendaftar saya memperoleh sebuah modem ADSL merk TP-Link seri TD-8811. Modem ini memiliki satu port WAN, satu port USB, dan satu port LAN (RJ-45).
Secara default, modem di set pada mode bridge, artinya untuk melakukan koneksi saya memerlukan aplikasi dial-up PPPoE pada sisi client. Tentu saja hal ini dapat diubah jika saya mengetahui Connection Type, VCI dan VPI dari TelkomSpeedy, sayangnya saat ini saya tidak memilikinya.
Koneksi speedy menggunakan Windows sangatlah mudah, karena secara default Windows memiliki software dial-up untuk PPPoE, bagaimana dengan Ubuntu ?
Awalnya saya mengalami kesulitan, karena saya menggunakan Ubuntu 6.06 versi desktop yang secara default menggunakan Gnome sebagai desktop manager. Kebingungan terjadi ketika mencari-cari aplikasi untuk dial-up di Gnome dan saya tidak menemukannya, terpaksa Windows beraksi. Hasil browsing menunjukkan bahwa koneksi PPPoE dapat dilakukan melalui terminal, inilah langkah-langkah yang saya lakukan :

  1. Hubungkan modem ADSL ke komputer dengan menggunakan koneksi LAN (RJ-45), pastikan modem ADSL dalam keadaan menyala (tidak perlu terkoneksi ke internet)
  2. Buka terminal, ketikkan :

    sudo pppoeconf

  3. Masukkan password
  4. Aplikasi akan memeriksa perangkat-perangkat yang ada pada PC yang dapat digunakan untuk melakukan koneksi (misalnya : internet card, wireless card, dsb)
  5. Aplikasi akan memeriksa perangkat mana yang memiliki koneksi ke modem ADSL
  6. Selanjutnya pilih “yes” untuk setiap option yang ditawarkan, jangan lupa memasukkan username dan password untuk koneksi speedy saat diminta.

Sampai tahap ini, Ubuntu telah selesai melakukan konfigurasi speedy. Untuk melihat hasil konfigurasi, gunakan perintah :

sudo nano /etc/ppp/peers/dsl-default

Untuk mulai melakukan koneksi, ketik :

sudo pon dsl-default

, untuk lebih memudahkan, kita dapat mengganti nama file dsl-default misalnya menjadi speedy, sehingga untuk melakukan koneksi ketik

sudo pon speedy

Memutuskan koneksi dapat dilakukan dengan perintah “sudo poff”.

Ya, sekian pengalaman saya melakukan koneksi menggunakan Ubuntu Linux dan Telkom Speedy.

Powered by ScribeFire.