Install sun-java6-jdk in debian wheezy

January 12, 2012

Install sun-java6-jdk in debian wheezy

sun-java6-jdk no longer available in debian wheezy due to some licencing issues.

Download the binary called Java SE 6 Update 30 at

http://www.oracle.com/technetwork/java/javase/downloads/index.html

unpack it to /opt/jvm/

#update-alternatives --install /usr/bin/java java  /opt/jvm/jdk1.6.0_30/jre/bin/java 3
#update-alternatives --config java

select the option 3 and you are done

common openerp beginner error

January 12, 2012

This code <field name="type"> form</field> produce the error below


The value " form " for the field "type" is not in the selection

make sure no space between “form”


the field(s) res_model,src_model: Invalid model name in the action definition.

if the code seem rights. restart the openerp-server.

Add menu on fbpanel

January 9, 2012

If you install binary manually eg: eclipse. Most likely you end up without entries in FBpanel the start menu.

Just create a file appname.desktop in then ~/.local/share/applications

[Desktop Entry]
Type=Application
Name=Eclipse
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
NoDisplay=false
Categories=Development

Clearlooks configuration option “sunkenmenu” is not supported and will be ignored.

January 7, 2012


$android
/usr/share/themes/Taqua/gtk-2.0/gtkrc:55: Clearlooks configuration option "sunkenmenubar" is not supported and will be ignored.
/usr/share/themes/Taqua/gtk-2.0/gtkrc:56: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
/usr/share/themes/Taqua/gtk-2.0/gtkrc:57: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored

To fix it, uncomment the sunkenmenubar, menuitemstyle and lastviewitemstyle in the /usr/share/themes/Taqua/gtk-2.0/gtkrc

engine "clearlooks"
{
#sunkenmenubar = 0
#menuitemstyle = 0
#listviewitemstyle =0
}

e220 digi broadband in linux debian wheezy

October 2, 2011

I am using debian Wheezy
Linux 2.6.32-5-686


#aptitude install usb-modeswitch
#aptitude install wvdial

edit the /etc/wvdial.conf

[Dialer defaults]
Phone=*99#
Stupid Mode=1
Dial Command=ATDT
Modem=/dev/ttyUSB0
Baud=230400
Init2=AT+CGDCONT=1, "IP", 3gdgnet"
Init3=
Username=digi
Password=digi
AskPassword=0
ISDN=0
Compuserve=0
Force Address =0
Idle Seconds=0
Auto DNS=1
Check Def dRoute=1

plug in the Huawei E220

#wvdial

resume transfer of large ssh file

October 2, 2011

you need to install rsync on both client and server


apt-get install rsync
rsync -P -r -e ssh username@server: <serverfile> <localfile>

PHP pitfall

August 27, 2011

a very interesting articles for PHP programmers

PCManfm Not Authorized

August 22, 2011

create a file /etc/polkit-1/localauthority/50-local.d/55-storage.pkla

with the content

[Storage Permissions]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no

more info

postgresql 8.4 could not create listen socket for localhost

August 22, 2011

fixed this error by adding the


auto lo
iface lo inet loopback

in /etc/network/interfaces

©

April 4, 2011

It happen when the page is in UTF8 but the browser display in iso-8859-1.
Add this meta on the head to fix this.


Follow

Get every new post delivered to your Inbox.