Tuesday, July 7, 2015

Installing Epson Inkjet L Series and M Series on Debian Wheezy

Download your printer driver from http://www.epson.co.id/sites/epson_indonesia/support/support.page and select suitable Distro.
Before you install the driver, install its dependency by running this:
# apt-get install lsb
After its completed, you can install your printer driver by running this:
# dpkg -i epson-inkjet-printer-201207w_1.0.0-1lsb3.2_amd64.deb 
For my case, I install L110 driver on Debian Wheezy.
Configure your Printer from your browser or from Applications -> System Tools -> Preferences -> System Settings -> Printers.
NOTE: Driver L100/L200 not compatible with Driver L110/L210 
For L100 use Epson Stylus NX115 (CUPS + Gutenprint v5.2.9) or

Debian 7.1 x64 installing firmware

Debian need firmware installed to make hardware can operated perfectly. During boot time, it informs the user that the system may required particular firmware installed. Here is the steps to install particular firmware:
  1. add this line into /etc/apt/sources.list
    # non free
    deb http://ftp.de.debian.org/debian wheezy main non-free
  2. run update by issuing
    # apt-get update
  3. list available firmware
    # aptitude search firmware
  4. install your firmware
    # apt-get install firmware-realtek  firmware-atheros

Installing Openerp 6.1 on Debian 7.1 x64 (old)

Follow these simple step to install and configure Openerp on Debian
1. update your debian
# apt-get update
# apt-get upgrade

2. install gedit
# apt-get install gedit
3. install postgresql 23.9M (version 9.1.9-1)
# apt-get install postgresql

optional install pgadmin3 if use desktop
# apt-get install pgadmin3
4. configure openerp user
# sudo su postgres
$ createuser openerp
as superuser n
create database y
create new roles y
$ psql -l
$ psql template1
# alter role openerp with password 'openerp';
quit from psql and back to root user (\q enter)
5. install python library
apt-get install python-dateutil python-feedparser python-gdata python-ldap \
    python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \
    python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \
    python-simplejson python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-zsi


6. download packaged deb and install by issuing this
# dpkg -i openerp_6.1-latest-1_all.deb
it may take sometimes to install pyhton library required by openerp, wait until it finish.

7. edit file /etc/openerp/openerp-server.conf (password in stap 4)
db_password = openerp

8. run openerp service by issuing
# service openerp start

# service openerp restart

9. run openerp client using browser http://localhost:8069

Note:
Default Installation located at
  • /usr/lib/pymodules/python2.7/openerp/
  • /usr/share/pyshared/openerp

  • /usr/lib/pymodules/python2.7/openerp/addons
  • /usr/share/pyshared/openerp/html_view

Installing LAMP on Debian 7.1 (Wheezy)

Here are steps to install LAMP on Debian 7.1 Wheezy:
1. Open your terminal as a root (Super User)
2. Installing MySQL
# apt-get install mysql-server mysql-client
set password for root (super user)
3. Installing Apache
# apt-get install apache2
4. Install PHP
# apt-get install php5 libapache2-mod-php5
5. Restart your apache2
# /etc/init.d/apache2 restart
6. Search module
# apt-cache search php5
7. Install other modules
# apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
8. Restart your apache2 using step 5, and test your installation using browser with URL http://localhost

Repairing GRUB UEFI Dual Boot Debian 7.1 x64 and Windows 8 x64

Accidentally I failed to install AMD Catalyst 13.6 beta on my Debian 7.1 x64, and I lost my GNOME. For short, I can't recover my GNOME and I reinstall my Debian 7.1 without EFI mood  (my mistake). The Installer can not detect EFI and the only option to install bootstrap loader is MBR.
I can not start both my Debian and Windows. From Bios, I start boot via EFI DVD to start Debian CD Installer. I choose Advanced Option to fix bootstrap location from MBR to EFI Partition (System Reserved), and follow these step:

  1. Update your Debian and run
    # apt-get install grub-efi-amd64
    This command will remove grub package, and choose yes
  2. Configure your GRUB using this command
    # modprobe dm-mod
    # grub-install
  3. Apply your new grub into EFI Partition
    # update-grub
  4. This procedure only fix boot into Debian. To create boot option to load Windows 8 boot manager you need UUID for EFI partition by running
    # blkid
    write down UUID for EFI Partition (it may be label as "System Reserved") with size about 100M-130M.
    for my case UUID is 4842-E4F1
  5. edit file /etc/grub.d/40_custom and at the end of file add
         menuentry "Microsoft Windows 8" {
           insmod part_gpt
           insmod fat
           insmod search_fs_uuid
           insmod chain
           search --fs-uuid --no-floppy --set=root 4842-E4F1
           chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
         }
    the file becomes like this:
         #!/bin/sh
         exec tail -n +3 $0
         # This file provides an easy way to add custom menu entries.  Simply type the
         # menu entries you want to add after this comment.  Be careful not to change
         # the 'exec tail' line above.
         menuentry "Microsoft Windows 8" {
           insmod part_gpt
           insmod fat
           insmod search_fs_uuid
           insmod chain
           search --fs-uuid --no-floppy --set=root 4842-E4F1
           chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
         }
  6. reinstall and reconfigure your grub by issuing :
    # grub-install
    # update-grub
Done, now I have GRUB to my Debian and option to load Windows 8 Boot Manager