Author Archives: admimin

Canon LBP3050 in slackware 13.37

Published by:

After I upgrade my slackware from 13.1 to 13.37 the canon LBP3050 printer works just fine. Nothing change in the configuration. The already wrote the installation method here. Until today, I made a mistake by changing the usb cable into another usb port and I delete the printer in cups browser, the printer won’t connect anymore.

I don’t know what happen. I repeated the action from the beginning. I suspect this is happen because I installed cnij 3.30 the common and the 2700 printer for canon ip2770. I removed them and expect the LBP3050 will work again but nothing.

I delete the LBP3050 from cups browser (localhost:631) and re put it again by typing in the console
#lpadmin -P LBP3050 -m CNCUPSLBP3050CAPTK.ppd -c ccp:/var/ccpd/fifo0 -E
The printer appears in the cups browser but when I test it to print, still nothing happen.
I check the capstatusui from terminal in user privileged,
#captstatusui -p LBP3050
The box show up and show the printer error, check the /etc/ccpd.conf for the connection.
I check /etc/ccpd.conf and find out that the setting still the same

DevicePath /dev/usb/lp0

Then I check dmesg in root privileged. And I found out something else…
root#dmesg | grep lp0
It show the printer assigned to usblp0 not usb/lp0
I find the usblp0
root#ls -lh /dev/ | grep usblp0
And yes there is usblp0

Now I try to change the conection to usblp0, I remove the printer from cups browser and repeat the next action in the terminal.
root#lpadmin -P LBP3050 -m CNCUPSLBP3050CAPTK.ppd -v ccp:/var/ccp/fifo0 -E
root#ccpadmin -p LBP3050 -o /dev/usblp0

I check the captstatusui -p LBP3050 it show the printer is on.
I try to print and it works again. fuih….

using scanner from network

Published by:

Source : makasar-slacker.org

Dengan menggunakan OS Slackwarekita bisa mengakses scanner yang terhubung pada komputer lain, atau katakanlah terhubung di CPU server.

Di  server
Buat service untuk sane-port tersedia di PC yang langsung terhubung dengan device scanner itu (yang terinstall sane-backend). Caranya edit file “/etc/services”, tambahkan baris…

sane-port 6566/tcp #SANE Network Scanner Daemon

Masukkan juga layanan streaming via inetd, caranya edit file “/etc/inetd.conf” dan tambahkan baris…

sane-port stream tcp nowait saned.saned /usr/sbin/saned saned

Restart service inetd, caranya sh /etc/rc.d/rc.inetd restart

Edit file “/etc/sane.d/saned.conf”, tambahkan baris …

localhost
192.168.100.0/24 #sesuaikan sendiri dengan range ip masing-masing

Supaya user biasa bisa melakukan scan, tanpa bantuan privilege root, tambahkan user dan group saned, caranya lakukan perintah ini dari cli…

if ! id saned; then groupadd saned; useradd -g saned -G scanner -s /bin/false -d /dev/null saned; fi

Nah sampai di sini konfigurasi servernya udah selesai, semoga tidak ada masalah nantinya.

Di Komputer Klien, edit konfigurasi sane untuk mengenali device scanner dari jaringan, yaitu file “/etc/sane.d/net.conf” tambahkan baris yang berisi alamat ip yang menjadi server scanner, contoh 192.168.100.23

Pastikan di file “/etc/sane.d/dll.conf” berisi baris net, slackware 12.2 defaultku telah menulisnya di bagian paling atas.

Lakukan scanning dengan perintah ini

scanimage -d net:192.168.100.23:pixma:04A9172B_D38C81 > ~/test.pnm

Anda sudah bisa mendapatkan hasil scanning yang diharapkan.

Itulah sedikit pengalaman saya tentang kerjaan nyeken (scan) dari PC menggunakan device scanner yang ada di PC lain. Dari hasil itu, kita bisa berimprovisasi lagi hehe

find the total of files in the directory

Published by:

There is a command in linux console to count total files in the directory.

ls | wc -l

The result will show a number.

Actually the wc command is to print newline, word, and byte counts for each file. Here are the option for wc command

-c, –bytes print the byte counts
-m, –chars print the character counts
-l, –lines print the newline counts
–files0-from=F read input from the files specified by
NUL-terminated names in file F;
If F is – then read names from standard input
-L, –max-line-length print the length of the longest line
-w, –words print the word counts
–help display this help and exit
–version output version information and exit

slackware 14.0 use wifi with wicd

Published by:

The first time in my slackware experience, this is the first time I succeeded using wifi configuration. I always tried to use wpa_supplicant, which is I failed. I don’t understand how to manage the setting, and also by manual iwconfig command. I success using iwconfig when the wifi is not secured or open. No wpa or wpa2 encryption key. But that’s not what I want. I need some secure key.

Finally tonight I read again the manual in doc.slackware.org about this and find something about how difficult the wpa or iwconfig setting for newbie like me. The one thing is easy is using wicd.

wicd is an extra command need to be downloaded. So I downloaded for my slackware 14.0 which is 1.7.2.4 version. I install it using installpkg. And run the command in console or F2 command executor.

The command to run it is wicd-client, and run it as a normal user.

Wait a moment, wait until it pops up a dialog box asking the root user (which is necessary to handle the wlan0 interface) then the wicd network manager appears.

Click on the properties button to fill the wpa2 and click connect. That’s it.

firefox (in ubuntu) libavcodec error

Published by:

The error I meant is the message displayed at the top of the firefox, said libavcodec is vulnerable and expired (for some reason). After googling and find the article in http://askubuntu.com/questions/851190/how-to-update-libavcodec-on-ubuntu-14-04, the problem is libavcodec is disabled as default.

Libavcodec is needed to play the streaming in the website. Except for youtube. I still can play youtube with libavcodec disabled. I wonder why.

Anyway the solution is make the libavcodec enable.

Here is how

type about:config in the address bar, enter
click “I accept the risk” search libavcodec
change media.libavcodec.allow-obsolete;false to true

askubuntu.com

Canon ip2770 hasil print table bengkok tidak calibrate

Published by:

Awalnya dari pengaduan seseorang di kantor, kalau printer baru yang ada di sana hasil print nya aneh. Bengkok-bengkok. Termasuk ketika nge-print table. Yang mestine lurus. Alhasil sesudah cleaning-cleaning tidak berhasil lalu  intip-intip ke dalam, pita putihnya yang berada di belakang catridge ternyata agak hitam. Setelah baca disini

source : http://isniaceh.blogspot.co.id/2014/06/cara-memperbaiki-hasil-print-tabel.html

memang pita itu harusnya bersih. So akhirnya minta tissue sama temen dan dibersihkan. Setelah itu masalah pun berlalu.

virtualbox shared folder – another way mounting shared folder using samba

Published by:

my host is slackware.
the virtual machine is windows xp.
I am going to add the folder in my slackware into the windows using samba in the slackware.

first setting the samba in the slackware. I think I have another post about samba in this blog. Then in the virtualbox, set the network setting into two nic. The first nic as bridge adapter and the other as nat.

Later in the virtual machine, we will see the lan address of the bridge. Then set it manually to the same network address as host. If the host is 192.168.1.1 then the bridge is 192.168.1.2

Next, through the network browser file manager in windows, browse to 192.168.1.1, we will see the samba share right over there.

github – free repository – free safety box for your code

Published by:

Saya sudah mengenal github cukup lama, tapi karena awalnya bukan programer, jadi tidak terlalu tertarik menggunakannya. Nah sekarang saya nyemplung jadi programer, web programmer tepatnya. Jadi rasa-rasanya jiwa ini sudah tergelitik untuk menyimpan code-code hasil karya saya dan share ke orang yang membutuhkan. Github bisa menjadi salah satu sarananya.

Pertama, buat akun di github. jreng-jreng. Beres.
Di dashboard github buatlah New Repository. Berikan ‘nama” apa saja sesuai projek kita.Maka github akan memprint di layar komputer kita tentang bagaimana kita mengupload file-file code kita.

Nah disini pembelajaran di mulai. Saya menggunakan linux ubuntu untuk pekerjaan saya sehari-hari. Otomatis code saya ditulis di notebook ini. Dan kebetulan proyek pertama saya adalah proyek web programming, menggunakan engine xampp. File-filenya berada di /opt/lampp/htdocs/

Jadi saya akan meng-clone proyek saya disana ke github langsung. Kurang wise sih. Tapi menghemat space harddisk saya kalau saya buat direktori baru. Oke untuk caranya, setelah googling, saya menggunakan terminal/console.

cd /opt/lampp/htdocs/proyek
git init
git add *git commit -m “pesan atau keterangan tentang versi proyek saya”
git remote add origin https://github.com/sugi76/nama
git push -u origin master

Sewaktu proses push, maka akan tampil pertanyaan tentang username github dan passwordnya. Isikan saja. Jika berhasil, di github dashboard sudah terpampang list file dan directory proyek kita.

Nah pembelajaran satu lagi, setting git di /opt/lampp/htdocs/proyek sebaiknya jangan dihapus. Ini bermanfaat jika kita akan update file/ proyek kita ini. Saya nyesel juga karena saya menghapusnya. Jadi error.

Saya ulang lagi dari awal, tapi ketika hendak push, tetep error. Jadi harus menggunakan parameter force (-f)

git push -f origin master

Nah sekian.