Tes Kecepatan Baca USB Drive

Saat membaca tulisan di sini tentang cara membuat Ubuntu dalam USB drive, saya baru tahu command untuk mencoba kecepatan baca USB drive. Berikut ini adalah hasil tes kecepatan baca USB drive saya :

tedy@tedy:~$ sudo hdparm -tT /dev/sdb1

/dev/sdb1:
Timing cached reads: 1756 MB in 2.00 seconds = 878.23 MB/sec
Timing buffered disk reads: 38 MB in 3.01 seconds =
12.63 MB/sec

tedy@tedy:~$ sudo hdparm -tT /dev/sdb1

/dev/sdb1:
Timing cached reads: 1788 MB in 2.00 seconds = 894.19 MB/sec
Timing buffered disk reads: 40 MB in 3.14 seconds =
12.73 MB/sec

Lalu bagaimana ya cara tahu kecepatan tulis sebuah USB drive? Bagaimana juga ya cara memeriksa kecepatan baca tulis USB di lingkungan Windows? Apakah ada software benchmarking khusus yang bisa dipakai?

Network Printer on OpenSUSE 10.3 (part 2)

In the last post, I’ve explained about installing network printer on OpenSUSE 10.3. The next step must be configured is configure Windows on client PC. See the following illustration :

Driver for Epson Stylus Photo R230 can be downloaded here. The steps to using network printer over Samba protocol already written in this document.

Network Printer on OpenSUSE 10.3

Today I tried to configure my friend’s server to have network printer attached on it. It’s a PC server powered by OpenSUSE 10.3. The printer that must be configure as network printer is Epson Stylus Photo R230, see the photo of that :

I got some difficulties to configure Samba so that printer can be accessed by all Samba user in the network. So here is the conclusion that I’ve got after several hours tweaking OpenSUSE to provide network printer services :

  1. Connected the printer to the server. OpenSUSE recognized Epson Stylus Photo R230 directly as soon as I connected the USB connector to the server. I didn’t need to install or do anything….it’s just work when connected to OpenSUSE. Using lpstat we can know all the printer connected to the operating system. To see installed printer, I use this command :

    # lpstat -v
    device for EPSON_Stylus_Photo_R230: usb://EPSON/Stylus%20Photo%20R230

  2. I must configure /etc/samba/smb.conf. In the existing smb.conf file, I put some codes like this :

    load printers = yes
    printcap name = /etc/printcap
    printing = cups
    printcap name = cups
    [printers]
    path = /var/spool/samba
    browseable = yes
    guest ok = no
    writable = yes
    printable = yes
    printer name = EpsonStylusR230
    valid users = edi, tedy

    [print$]
    comment = printer driver
    path = /etc/samba/drivers
    browseable = yes
    guest ok = yes
    read only = yes

    To be honest, I still don’t know what is /etc/printcap and several other lines stands for. I just know that the path of the printer will announce to all Samba user that there is a network printer which can be used.

  3. The other file that must be configured is /etc/cups/cupsd.conf. This file will make server to provide network printer service to all Samba user. Network printer that use cups will used port 631 to listens printing request from all client. So I must defined that all server network interface that will used for network printer is 192.168.0.4:631 I also add some access control list using Allow From 192.168.0.* to guarantee that only client inside the network can access the printer. In the existing file, I put several lines like these :

    listen 192.168.0.4:631
    Browsing On
    BrowseOrder Allow,Deny
    BrowseAllow @LOCAL
    <Location />
    Order Deny,Allow
    Allow From localhost
    Allow From 127.0.0.2
    Allow From 192.168.0.*
    </Location>

  4. The other file must be edited is /etc/cups/mime.convs Just add this line :

    application/octet-stream application/vnd.cups-raw 0 -

  5. The last file must be edited is /etc/cups/mime.types Just comment out this line :

    application/octet-stream

  6. After edit those files, I must restart cups and samba services using this commands :

    # /etc/init.d/smb restart
    # /etc/init.d/cupsd restart