Tuesday, January 12, 2010

Installing Windows in Linux


Uninstalling Wine / Windows Applications from Ubuntu.

Note that Wine does not fully implement everything required to cleanly uninstall all applications. Some uninstallers might not function at all. To remove all programs installed under Wine, remove the ~/.wine directory:

Please note that in the following commands there should be no spaces in the path, particularly between $HOME/ and .whatever.

rm -rf $HOME/.wine

Also the uninstaller does not remove menu and desktop entries. To remove all Wine-created menu entries run the following commands

rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm


Restart panel:
killall gnome-panel

User Experience of Mobile Internet: Analysis and Recommendations

Mobile access to the Internet with handheld devices has been technically possible for quite a while and consumers are aware of the services but not so ready to use them. A central reason for the low usage is that user experience of the mobile Internet is not yet sufficiently good. This paper analyses the mobile Internet from the end-user perspective, identifying factors and solutions that would make Internet usage on a mobile device an enjoyable experience. User experience can be improved by a better understanding of users and usage contexts, by developing mobile services that better serve the needs of mobile users, easing service discovery and by developing the infrastructure needed for the mobile Internet. This paper discusses all these aspects and gives development recommendations. Multidisciplinary and multicultural cooperation between the various actors in the field is needed to improve user experience.

User Experience of Mobile Internet: Analysis and Recommendations
by Kaasinen, Eija; Roto, Virpi; Roloff, Kristin; Väänänen-Vainio-Mattila, Kaisa; Vainio, Teija; Maehr, Wolfgang; Joshi, Dhaval; Shrestha, Sujan

http://www.infosci-on-demand.com/content/details.asp?ID=34977

State of the Mobile Web, November 2009

Very interesting report about opera mini growth in africa (issues december 2009)
http://www.opera.com/smw/2009/11/

"... The number of Opera Mini users more than doubled — from about 16.4 million in November 2008 to 41.7 million in November 2009. This increase shows that our prediction of accelerated growth of the mobile Web has come true. Rapid growth is evident, not only in developed countries, but also (and especially) in developing parts of the world such as Africa, which is the focus of this month’s geographic spotlight..."

Sunday, January 10, 2010

Setting JAVA_HOME in ubuntu

export JAVA_HOME=/usr/lib/jvm/java-(your-version)


You can find your JAVA_HOME using the locate command for a file belonging to the JDK.

locate /rt.jar

Installing Tomcat in Ubuntu

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
This command downloads and install the following packages: -
tomcat6 : Servlet and JSP engine
tomcat6-admin : Admin web applications
tomcat6-common : Common files
tomcat6-user : Tools to create user instances
tomcat6-docs : Example web applications
tomcat6-examples : Example web applications

To start, stop, restart and get the server status: -
Start tomcat server:
sudo /etc/init.d/tomcat6 start

Stop tomcat server:
sudo /etc/init.d/tomcat6 stop

Restart tomcat server:
sudo /etc/init.d/tomcat6 restart

Get tomcat server status:
sudo /etc/init.d/tomcat6 status

After installation type http://localhost:8080 or http://serverip:8080/examples/servlets/ in your browser.Now you should see tomcat welcome page:

* To enable admin web based features add the following lines to your /etc/tomcat6/tomcat-user.xml



* you should be able to see your manage page here http://your_ip_goes_here:8080/manager/html
* log in with the name and password you just set in /etc/tomcat6/tomcat-users.xml
* ls /var/lib/tomcat6 directory.
* you should see these directories conf, logs, webapps, work
* webapps is where your servlets will go ( or at least a xml file that points to them )
* as a test download this war file http://simple.souther.us/SimpleServlet.war
* then use the tomcat management page and select war file to deploy ( in teh deploy section) to upload this file to your server
* optionally just wget http://simple.souther.us/SimpleServlet.war directly to the webapps folder
* tomcat should recognize the war file and expand it with everything you need
* browse to http://serverip:8080/SimpleServlet/

Change tomcat server to run on port 80
If you want to Change tomcat server to run on port 80 follow this procedure
You need to edit the /etc/tomcat6/server.xml file

nano /etc/tomcat6/server.xml

Now replace the part that says Connector port=”8080? with Connector port=”80?
Save and exit the file

Restart tomcat server with the following command
sudo /etc/init.d/tomcat6 restart

Ubuntu: Can't locate the file you are looking for?

Very easy!

Open the terminal and then issue the command as below:

sudo updatedb
locate filename

Wednesday, January 06, 2010

Offline: Google Gears, Mozilla Prism

Gears is a plug-in that extends your browser to create a richer platform for web applications. For example, webmasters can use Gears on their websites to let users access information offline or provide you with content based on your geographical location.

A number of web applications currently make use of Gears, including: Google Reader, Google Docs, Zoho and Remember the Milk.

But to use Gears, you'll need one of the following:

* Microsoft Windows XP or Vista with Firefox 1.5+ or Internet Explorer 6+
* Apple Mac OS X 10.4+ with Firefox 1.5+
* Apple Mac OS X 10.4.11 (or higher) or 10.5.3 (or higher) with Safari 3.1.1
* Linux with Firefox 1.5+
* Microsoft Windows Mobile 5 or higher, with Internet Explorer 4.01+

Prism: - Split web applications out of the browser and run them directly on the desktop.
Prism, previously called WebRunner, is a simple XULRunner based browser that hosts web applications without the normal web browser user interface. It is based on a concept called Site Specific Browsers (SSB).

XULRunner is a single "gecko runtime" that can be used to bootstrap multiple XUL + XPCOM applications that are as rich as Firefox and Thunderbird.

You can easily install both in Ubuntu by running sudo apt-get install command or by using synaptic package manager.

I installed both in my Ubuntu. There was an incompatibility issue....
"Google Gears" could not be installed because it is not compatible with your Prism build type (Linux_x86-gcc3). Please contact the author of this item about the problem.