Friday, June 29, 2012

Communicate with Multiple USB / Serial Port


When requirement will come to listen more than one USB / Serial Port in Java, make some changes in Java/jdk/jre/lib/javax.comm.properties file. By default the Application will listen only one port at a time but after make the changes simultaneously it'll listen multiple ports. changes need to be done: open the above mentioned file add the following line in particular section # Paths to server-side serial port devices serpath0 = /dev/ttyS0 #added.... serpath1 = /dev/ttyS1 serpath2 = /dev/ttyACM0 serpath3 = /dev/ttyACM1

Friday, May 18, 2012

Low Graphic Mode Error in Ubuntu



If the low graphic mode error comes in Ubuntu:
sudo apt-get update
sudo apt-get -d install --reinstall gdm
sudo apt-get remove --purge gdm
sudo apt-get install gdm
sudo apt-get install Ubuntu-desktop
sudo dpkg-reconfigure -phigh xserver-xorg
sudo reboot

how to start the wireless internet if the machine run in low graphic mode
when the GUI is unable to load press ALT+F2 key and open other terminal
login with credentials
type startx
type iwlist scan (for searching the network, if wireless is down then type sudo ifconfig up)
for registering with network type iwconfig essid (like interface=>ra0  essid=>“MyNetwork”).
If the above command not work then type nm-applet

Sunday, April 15, 2012

Set the Java_Home and Maven M2_HOME

Write the below line in /etc/bash.bashrc

// user jdk path
JAVA_HOME=/home/test/java/jdk1.6.0_30
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
PATH=$PATH:JAVA_HOME

//user maven path (expecting extract in /usr/local/apache-maven/)
M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4
export M2_HOME
M2=$M2_HOME/bin
export PATH=$M2:$PATH