Canon LBP3050 dengan Ubuntu Xenial 16.04LTS

Published by:

canondriver.net

Lagi-lagi saya bersinggungan dengan instalasi printer ini. Printer legendaris (menurut saya) karena sudah bercokol di kantor saya selama kurang lebih 8 tahun. Kalau rusak cuma ringan-ringan saja, paling ganti toner gitu aja. Cuma masalahnya memang di saya, selalu pengen ganti OS. Terutama di dunia per-linuxan. Sudah kadung jatuh hati. Tapi ya itu, kesusahan lagi dengan instalasinya.

Beberapa minggu lalu, saya pasang OS Kali dan Backbox, kedua OS ini berlatar Ubuntu. Dan saya sudah berhasil menjalankan printer ini untuk nge-print. Yang backbox adalah versi 64bit. Kali ini saya mengganti laptop, karena laptop yang lalu itu bad sector HDD nya sudah buanyak. Kesehatan HDD menurut HDSentinel hanya sekitar 24-30% saja. Daripada nunggu mati tentu saja lebih baik sedia payung sebelum ngojek.

Nah di laptop (pinjaman) ini saya pasang Ubuntu terbaru, 16.04LTS 64bit. Langkah-langkah coba diikuti seperti pada OS Blackbox. Dan hasilnya gagal. Memang sewaktu terakhir install di Blackbox itu juga ada proses yang tidak saya mengerti. Tahu-tahu setelah putus asa, si printer pun nge-print. Nah di Ubuntu Xenial tidak terjadi seperti itu. Alamak, bingung saya. Ya begitu saja dulu. Belum ketemu solusinya.

Ubuntu Dengan Mate

Published by:

Mate is … bukan mati tapi mate (benar-benar dibaca mate). Adalah salah satu jenis desktop environment dalam dunia linux berbasis gnome 2 (info).  Desktop ini terlahir karena adanya ketidaksetujuan dari perubahan yang terdapat pada gnome 3. Saya sendiri tidak paham apanya. Karena saya menyukai perubahan apalagi perubahan ke arah positif. Tapi tak apalah, akhirnya lahirlah Mate. Yaitu dengan meneruskan pengembangan interface gnome 2. Tentu dengan banyak perubahan juga. Nah itu berubah. Tapi kok dulu ga setuju? Ya sudahlah.

Menurut wikipedia inilah jenis-jenis aplikasi dasar yang terdapat pada mate :

  • caja (box) – file manager (from Nautilus)
  • pluma (quill/feather/pen) – text editor (from Gedit)
  • atril (lectern) – document viewer (from Evince)
  • engrampa (staple) – archive manager (from Archive Manager)
  • mate-terminal – terminal emulator (from GNOME Terminal)
  • marco (frame) – window manager (from Metacity)
  • mozo (waiter) – menu-item editor (from Alacarte)

Saya tertarik sama mate karena ingin  mencoba ‘keringanannya’. Ya karena saya punya notebook/ cpu yang old punya. Jika dipaksakan install desktop jenis terbaru semisal gnome 3, ya jelas gak kuat. Alhasil komputer saya pasti bengong. Dan saya keburu lapar menunggu proses loading-nya selesai. Apa kata dunia kalau saya kurus.

Cara paling mudah untuk menginstalnya adalah melalui command console dan menginput ppa seperti dalam sumber berikut.

sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install –no-install-recommends ubuntu-mate-core ubuntu-mate-desktop

Sudah begitu saja. Tunggu sampai semua selesai, lalu logout dan pilih desktop Mate, login kembali.

Zoneminder Filter Crash

Published by:

My filter won’t run. I wonder why, until today, I found out about the crash of the zmfilter.pl the command to execute the filter. After blogwalking a while I found out about the crash in Arc system. The solution is to create a file called /etc/timezone. The file must contain the location of the timezone. Mine is Asia/Jakarta.
I also do the forum said, I re-link the /etc/localtime to /usr/share/zoneinfo/Etc/GMT+7

Re-make Windows 7 installation to choose the version

Published by:

jalantikus.com

Borrow a friends Genuine Windows 7 32 bit DVD disc if you know someone who has one.

Make an image of the DVD, you can use a program such as ISO Recorder to do that.
http://alexfeinman.com/

If you don’t have a Windows 7 DVD to borrow, try downloading an image:

32 bit
http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65732/X15-65732.iso

You are going to edit the contents of the .ISO file and remove the ei.cfg file. After editing burn it to a blank DVD disk or put it on a thumb drive. Boot from it, this will reveal all editions of Windows 7, select the Starter edition. More information in the following article about how to edit the ei.cfg file

Ei.cfg Removal Utility Lets You Use Any Product Key
http://lifehacker.com/#%215438005/eicfg-removal-utility-lets-you-use-any-product-key-with-your-windows-7-disc

You can create a bootable thumb drive with the following:
Windows 7 USB/DVD Download Tool
http://store.microsoft.com/Help/ISO-Tool

Skip entering your Windows 7 product key and complete the installation.

Once you reach the desktop, click Start, right click Computer

Click Properties

Scroll down to Windows Activation

Click the link x days until activation.

Click the link that says ‘Show me other ways to activate’

Enter product key (this is Windows 7 Starter key which would be located on the COA sticker at the bottom of your laptop)

Click Next

Select Phone Activation

Click Next when Enter your key page displayed

Select your country

Click Next, call the number listed

Remember to explain to the call agent your situation.

They will give you a confirmation ID, enter it

Click Next to complete the activation.

Embed rtsp IP Camera to html Code

Published by:

source :

Code :

<!DOCTYPE html>
<html>
<title>Net Surveilance</title>
<body>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
       width="550"
       height="400"
       id="vlc" />

<script type="text/javascript">
<!--
var vlc = document.getElementById("vlc");
var options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc.playlist.add("rtsp://192.168.1.55:554/user=USER&password=PWD&channel=1&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc.playlist.play();
//-->
</script>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
       width="550"
       height="400"
       id="vlc2" />

<script type="text/javascript">
<!--
var vlc2 = document.getElementById("vlc2");
var options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc2.playlist.add("rtsp://192.168.1.55:554/user=USER&password=PWD&channel=2&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc2.playlist.play();
//-->
</script>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
       width="550"
       height="400"
       id="vlc3" />

<script type="text/javascript">
<!--
var vlc3 = document.getElementById("vlc3");
var options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc3.playlist.add("rtsp://192.168.1.2:554/user=USER&password=PWD&channel=3&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc3.playlist.play();
//-->
</script>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
       width="550"
       height="400"
       id="vlc4" />

<script type="text/javascript">
<!--
var vlc4 = document.getElementById("vlc4");
var options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc4.playlist.add("rtsp://192.168.1.2:554/user=USER&password=PWD&channel=4&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc4.playlist.play();
//-->
</script>

</body>
</html>

The cctv in my example is located  in 192.168.1.2 port 554 which is a standard port for rtsp protocol.

BackBox Linux Ubuntu 16.04 with sis671 VGA Chipset

Published by:

I had a broken hdd in my laptop 2 days ago. It made me to decide to find another hdd and install my Linux Backbox into it. Something made me worry, I forgot how to set the monitor to the appropriate setting. Then I had to browse the google once more. Here is what I looked for : sis671 driver for my 64bit Backbox.

I manage to find them. Cause I still keep those two in my own repo driver. I copy them to

#sudo cp sis671.la  /usr/lib/xorg/modules/driver
#sudo cp sis671.so  /usr/lib/xorg/modules/driver

Then Everything not goin right. I still have the 480×600 resolution. Then I went to grub setting at boot. I put vga=791 to force the display resolution up. It worked. But I didn’t satisfied, it should not be stop at 1024×768. Before this I manage to have 1280×768. Just I forgot how.

Then Googling again and find out about edid.bin. Actually just a blind guess, cause the source said it was used for nvida driver not my sis671. But what the hell. And sorry source, I forgot to write down your address. I tried to search you again in my history chrome but hell, that’s a lot of them so naaaaaaaa I’ll find you later.

According to the source I copied the edid.bin file to /root. Cause it goes to a reference in xorg.conf. And I also copied the xorg.conf but I modified myself cause it is not nvidia but sis. I will use sis671 driver that I copied earlier.

 

Here is my xorg.conf

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

Section “Files”
RgbPath “/usr/X11R6/lib/X11/rgb”
FontPath “/usr/share/fonts/default/Type1”
EndSection

Section “Module”
Load “dbe”
Load “extmod”
Load “type1”
Load “freetype”
Load “glx”
EndSection

Section “ServerFlags”
Option “Xinerama” “0”
EndSection

Section “InputDevice”
# generated from default
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/psaux”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”
EndSection

Section “InputDevice”
# generated from default
Identifier “Keyboard0”
Driver “kbd”
option “AutoRepeat” “250 50”
option “CoreKeyboard”
option “XkbRules” “xorg”
option “XkbModel” “microsoftnek4k”
option “XkbOptions” “caps:internal_nocancel+lv3(switch)+compose(me nu)”
EndSection

Section “Monitor”
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier “Monitor0”
VendorName “Unknown”
ModelName “DFP-0”
HorizSync 28.0 – 80
VertRefresh 43.0 – 120
#ModeLine “1440x900_60.00” 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
Modeline “1280x768_60.00” 79.50 1280 1344 1472 1664 768 771 781 798 -hsync +vsync
Option “DPMS”
EndSection

Section “Device”
Identifier “Videocard0”
Driver “sis671”
VendorName “”
BoardName “”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Videocard0”
Monitor “Monitor0”
DefaultDepth 24
Option “TwinView” “1”
Option “TwinViewXineramaInfoOrder” “DFP-0”
Option “metamodes” “DFP-0: 1440x900_60.00 +0+0, DFP-1: 1440x900_60.00 +1440+0”
Option “MonitorLayout” “TDMS”
Option “CustomEDID” “DFP-0:/root/edid.bin; DFP-1:/root/edid.bin”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Then Reboot.

Oh pay attention to the modeline line in the xorg. I change the original one to my setting. The how to get the modeline is through this command.

#cvt 1280 768

The result will be like this :

# 1280×768 59.87 Hz (CVT) hsync: 47.78 kHz; pclk: 79.50 MHz
Modeline “1280x768_60.00” 79.50 1280 1344 1472 1664 768 771 781 798 -hsync +vsync

Copy and put the result into the xorg.conf. Then reboot again. And my laptop is fine now.

Oh just for the record, not for publishing reason, I didn’t get paid anyway from the manufacturer, I use Axioo Neon MNC 215p.

IP Modification Through Command Line

Published by:

Here is the way to change or modification ip address through command line. Do all the command in root privileged.

To set a static ip

#ip addr add 192.168.xxx.xxx dev eth0

to delete a static ip

#ip addr del 192.168.xxx.xxx dev eth0

to set dynamic ip

#dhclient eth0

to set route for static ip

#route add default gw xxx.xxx.xxx.xxx

to clear all ip setting

#ip addr flush dev eth0