ubuntu

Configure eclipse and subversive under Ubuntu

Problem:

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib

Solution
#install libsvn-java
sudo  apt-get install libsvn-java

#add following linies to eclipse.ini

Enable IP forwarding under Ubuntu

To enable ip forwarding from one interface to another you can use following commands:

iptables -A FORWARD -i ppp0 -o eth0 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -A POSTROUTING -t nat -j MASQUERADE 
sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

This code anables ip forwarding from eth0 to ppp0 interface-> ie from local network to private network

Adding Java support to firefox under ubuntu

To add java support for Ubuntu you need install java plugin

sudo apt-get install sun-java6-plugin

X11 forwarding over SSH under Linux(Ubuntu)

Sometimes is usefull to run same GUI application from remote server. You can use same program like VNC, but i preferrer SSH X11 forwarding.

    To get i working you need
  • Enable it's on remote station
    sudo vim /etc/ssh/ssh_config
    change #ForwardX11 no
    ForwardX11 yes
  • Connect to remote station using following command
    #ssh -X  maksim@192.168.1.168
    ssh -X  <user-name>@<host-address>

Using this I can run application on my 24' screen from my laptop which have 14'screen :-)

Installation mozilla thunderbird 3.0 mail client on Ubuntu 9.10(Karmic Koala)

    For installation mozilla thunderbird 3.0 mail client on Ubuntu you need to do following steps
  • Add mozilla daily repository to you sources list
    gksudo gedit /etc/apt/sources.list
    #and add following lines
    deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main
    deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main

    If you use another dist of ubuntu, change karmic to jaunty, hardy, karmic and intrepid
  • Import GPG key
     

Connect to openvpn server using Linux Ubuntu 9.10(Karmic Koala)

    Here steps for conection to vpn server
  • Ininitialy install open vpn client for ubuntu
    sudo apt-get install openvpn
  • Then run following command from terminal
    sudo openvpn openvpn-config.ovpn

    Have fun!

Mount ftp share under Ubuntu linux

    To mount a ftp share under ubuntu linux, you need perfom following actions
  • install ftp file system support
    sudo apt-get install curlftpfs
  • run mount command
    sudo curlftpfs -o allow_other,iocharset=utf8,codepage=cp1251  ftp://hudson.eltegra.by/common /home/mareshkau/Desktop/Share/ftp/

How to enable compiz fusion desktop extra effects in ubuntu 9.10 karmic koala

To enable extra effects for ubuntu you first should install following packages

sudo apt-get install compizconfig-settings-manager compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-plugins emerald

Then go to Preferences->CompizSettings Manager and enable effects that you want.

Installation google chrome browser on Ubuntu 9.10(Karmic Koala)

    To install google chrome browser on Ubuntu 9.10 you need to do following:
  • Add repository with chromium browser
    sudo gedit /etc/apt/sources.list
    #add following lines
    deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
    deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
  • Import GPG key
    sudo add-apt-repository ppa:chromium-daily/ppa
  • Update sources list and install chrome browser
    sudo apt-get update
    sudo apt-get install chromium-browser

Ubuntu 9.10(Karmic Koala) x32 bit Ram Limitation solution

By default ubuntu 9.10 can use only 2989MB(3GB) memmory. If you have more than 3GB, you should install x64 version of ubuntu or add PAE support in kernel;
To add PAE support you can recompile kernel or
install kernel from server version of ubuntu. It's easiest way.

sudo apt-get update
sudo apt-get install linux-headers-server linux-image-server linux-server

To see amount of available memory you can use a following comand
mareshkau@mareshkau:~$ free -m
             total       used       free     shared    buffers     cached

Syndicate content