Are You Ready for Java Application Development on Linux?

Java logoBy Adam George

Today, Linux is best recognized as the fastest-growing J2EE application development platform. It’s so popular among the developer as well as enterprise community since it contributes in saving a lot of time and money.

Java, a programming language powered by Sun Microsystems, offers a complete range of programming scope to the Java developers’ community. These seasoned Java developers are well versed in building “out-of-the-box” computer applications as well as applications for a wide array of hand-held devices.

Almost every one of us knows that Java is an object-oriented language that can be run across a number of platforms. No wonder why Java is often referred to as “Compile once, run anywhere” platform independent programming language.

Now if we talk about J2EE application development on Linux, it’s important to consider the context and environment in which the applications are being developed. It may baffle a newbie Java developer to Linux in understanding the way Java finds environment on the Linux platform.

Well, there are some pre-requisites that need to be there to get started with Java application development on Linux platform namely, current working directory, command-line parameters, current shell’s environment variables and location of data files. However, the usage of these parameters is variable as you can use the one that is in tandem with your application development requirements and the portability index you desire in your Java-based applications.

The program invocation offers the primary external information. This can be in different forms as arguments or the basic information, which can further point a program to scalability and implementation and deployment.

Let’s talk a bit about command-line arguments. In a scenario where the program is run using a command line, the program name would suffice for the purpose. The open source has encouraged Java developers to build new utilities for creating better applications in a more efficient and effective manner. This is supported by Linux and hence the trend has flourished to such a remarkable extent. Though a novice developer would find the Linux commands taxing to learn in the first place; however, once done with that, the following journey is a treat.

Further, the developer needs to learn about using Linux development tools like Ant, JUnit, GNU Compiler for Java (GCJ) etc. Then follows the development of some logic layers by making use of Java Database Connectivity (JDBC). JSPs are used to integrate a web interface, and Abstract Windows Toolkit (AWT) for integrating a GUI.

Now that you know a fair deal about Java application development on Linux, it’s time to get started with the same.

Adam George is a well known writer. He has written many articles on various topics including outsourcing, Presently writing on Software services, Software Development, JAVA Application Development and other Software testing services.

Tags: , ,

260px-GRUB_screenshotBy Eddison Sherry

Booting (booting up) in computing is the process of starting the Operating System when the computer is switched on. A boot sequence is the initial set of operations performed when the computer is switched on. Some commonly used bootloaders are GRUB, BOOTMGR, Syslinux, LILO, NTLDR. Linux booting process is much simple to understand and much things to learn.

300px-LiloFor Linux, the most common boot loaders are LILO(LInux Loader), LOADLIN (LOAD LINux) and GRUB (GRand Unified Bootloader). LILO is the most popular boot loader for those users who employ Linux as the main, or only, operating system.LILO is a very fast bootloader. LOADLIN is used by those who have multiple operating systems. LOADLIN is sometimes used as a backup boot loader for Linux in case LILO fails. GRUB is preferred by many users of Red Hat Linux.

A boot loader consists of three programs:

The boot sector program (512 bytes) is directly loaded by the BIOS at boot time.

The second stage program is loaded by the boot sector program and it can do everything you program it for.

The boot loader installer is used to install the boot loader and the second stage program onto the boot disk. These have to be stored in special locations, into the first sector of boot device. So they cannot be copied with a mere copy command.

Now we will compare the features of mostly used GRUB and LILO bootloaders.GRUB is capable of loading a variety of free and proprietary operating systems. GRUB will work well with Linux, DOS, Windows, or BSD. GRUB is dynamically configurable which means changes can be made during the boot time, which includes altering existing boot entries, adding custom entries, selecting different kernels, or modifying initrd. GRUB supports Logical Block Address mode meaning if the computer has a modern BIOS which can access more than 8GB (first 1024 cylinders) of hard disk space, GRUB will automatically be able to access it. Besides these GRUB can be run from or be installed to any device like floppy disk, hard disk, CD-ROM, USB drive, network drive and can load operating systems from just as many locations, including network drives. It can also decompress operating system images before booting them.

LILO is a sensible option for many Linux users and is a fast bootloader. LILO does not depend on a particular file system.One of up to sixteen different images can be selected at boot time. Parameters can be set independently for each kernel. LILO can be placed either in the master boot record (MBR) or the boot sector of a partition. At system start, only the BIOS drivers are available for LILO to access hard disks. So with very old BIOS, the accessible area is limited to cylinders 0 to 1023 of the first two hard disks. For later BIOS, LILO can use 32-bit logical block addressing (LBA) to access all the hard disks that the BIOS allows. LILO has some disadvantages when compared with GNU GRUB.

LILO supports only up to 16 different boot selections; GRUB supports an unlimited number of boot entries.

LILO cannot boot from network.

LILO must be written again every time you change the configuration file; GRUB does not.

LILO does not have an interactive command interface.

Finally, there are multiple choices of bootloaders which work with the Linux operating system of which the user can choose the ones best suited for the requirements.

Eddison Sherry had been working in Linux and other Unix flavours for long years. He had been writing blogs and article on the Linux Storage, Linux Commands and Linux Server Administration. If you are working on Linux or Unix Server its best to have a look on his blogs at Linux Technical Forum.

Tags: , ,

48x96-mint-xp-logosToday’s tip is once again using Disk Usage Analyzer that comes with Linux Mint and it is giving Windows XP another helping hand. You may recall a while back we Used Linux to check our Windows disk usage and found it to be quite useful.

I have XP installed on one hard drive in the computer, and I have Linux Mint 13 XFCE installed on a separate hard drive and I use Grub Super Boot Disk installed on CD when I need to boot into Mint.

Since the hard drive that has XP on it is a measly 80GB I loaded up the Disk Usage Analyzer in Mint to try to find any storage space hogs that I could eliminate.

restore-point-analyzer

As you can see in this screenshot, the System Volume Information folder used almost 10% of the entire hard drive! This simply cannot stand, I don’t care how official that folder name sounds. So, upon looking at it it was not too tough to realize those are restore points that Windows uses. I am quite well-versed in computers and I don’t think I’ve ever resorted to “rolling back” Windows to a usable state. Anyway I proceeded to investigate further and sure enough I found that Windows was set by default mind you to a max 12% hard drive cap almost 10 gigabytes!! as the image later below shows.

First, I clicked on the Start button, right-clicked on My Computer, chose Properties and got the System Properties box:

system-properties-box

Next, I clicked on the System Restore tab, and that’s what I saw that I had expected, extreme hard drive usage for something that 99.99% of the time I wouldn’t even consider having to use:

system-properties-system-restore-max

All right, that’s been confirmed. “Now how do I fix it?” you ask– Well, one way to fix it is to turn off System Restore, but honestly I’m a chicken and as much as I disparage Windows it might use that as reason to get back at me…I digress. So, I slid the slider bar down to 1%, a much more easy to swallow ~1GB of disk space.

system-properties-system-restore-min

Still a lot, but I can live much better with that. After you click OK, it will take a few seconds to adjust the space on the disk then you are done.

Where does that leave us? Now, we are going to go back to Linux Mint and check the Disk Usage Analyzer to see how much better it’s looking:

restore-point-analyzer-fixed

Much better now, we have gone from almost 20% of the entire used space on the hard drive and more than 7 gigabytes  to just 2.1% and just over 600 megabytes used.

This would not have been something I would have readily spotted without using my Linux tools to show me. This is also one more reason why someone that would ordinarily have no need for an OS besides Windows should have at least one Linux Live CD in his arsenal.

© 2012 Linux.Bihlman.com

Tags: , , , ,

MySQL for Beginners – Its Important Features and Advantages

MySQL logoBy Eric Datu Agustin

MySQL for beginners requires you to first know Structured Query Language (SQL), a general query language, through which you can extract, sort, update, delete and insert data. With SQL, you can manipulate data as you used relational database management systems (RDBMS) such as MySQL, Access, Ingres MicrosoftSQL Server, PostgresSQL, Oracle, Sybase, etc.

mysql-version-history

MySQL versions

Structured Query Language (SQL) has full support from the American National Standards Institute (ANSI), which has laid down certain rules for its use. So, when you want to build a strong foundation in SQL, you can choose from one of the aforementioned RDBMS that is specific for your use. As a caveat, you should have to consider three primary factors before you opt for a database system, as follows: the platform on which you work, what you want to achieve and your finances.

As you may know, all the important and common SQL statements are supported by any of these RDBMS; however, each RDBMS has its own set of proprietary statements and extensions. In layman’s terms, a database stores or housed your data files (such as names and emails of your friends). If you use small programs such as Perl for your database, your information is displayed and your data analyzed based on the program’s search criteria features.

Some of the important features of MySQL for beginners are, as follows:

a) It is very fast and much reliable for any type of application;

b) Its command line tool is powerful that it can run SQL queries against database;

c) It supports binary objects and indexing;

d) It allows changes to structure of table while server is running;

e) It has a wide user base with fast thread based memory allocation system;

f) Its code is tested with different compilers;

g) It is written in C and C++ language;

h) It is available as a separate program for use in a server/client network environment;

i) It is available for most Unix operating platform;

j) It is available for window operating system window 98 and 95, and window NT;

k) Its programming libraries for C, Delphi, Java, PHP, Python, etc. are available to connect to MySQL database; and,

l) A lot more.

In addition to the above, some of the advantages using MySQL are, as follows:

a) Its source code is available and can even be recompiled;

b) It supports more than twenty different platforms, which include Linux distribution Mac OS X, Microsoft Windows and Unix;

c) It is considered one of the world’s most popular open-source database system;

d) It is high performing and very reliable RDBMS where it can store many gigabytes of data; and,

e) It is a very powerful yet uncomplicated software that can handle most corporate database applications.

If you are one of the ardent supporters of open source software worldwide, you would consider “what is MySQL” for Linux, which is 100% free and that the combination of Linux, Apache, My SQL and PHP (LAMP) is incomparable.

There are other things you know more about MySQL for beginners as a RDBMS for beginners; however, suffice to say that, a good sign up and online tutorial will help you more regarding its actual use.

I am a professional SEO writer. Most of the articles that I publish have something to do with my work, hobby and studies. You can also suggest to me articles that I should write and post. To see some of my articles, please click this link: http://www.happy-niches.blogspot.com. Thanks.

Tags: , ,

By Christopher P Wakefield

64px-Virtualbox_logoHow do you manage virtual machines over a network using Oracle Virtualbox? I have been asked this a couple of times recently and today I will show you how. Most of my tutorials on Virtualbox have been along the lines of installing the software onto a system and managing the virtual machines on that system in person. This works well if you have a couple of virtual desktop machines but when you have quite a few servers involved going between each server to carry out maintenance becomes very tedious.

This is where you need a piece of software called phpvirtualbox. Phpvirtualbox is an open source web based front end for Virtualbox which allows you to manage all of your virtual machines over the internet.

linux-mint-logo-128x128So lets take a look at how we set this up. For the basis of this tutorial I will be using Linux Mint 12 and Virtualbox 4.1.4.

We first need to download and install the current version of Virtualbox from the Virtualbox website.

Once installed we need to add a user who will run Virtualbox. Open up a terminal as root and type:

adduser vbox

When asked supply a user password. Next we have to add the vbox user to the vboxusers group in the /etc/group file. So type (as root):

gedit /etc/group

Add vboxusers:x:113:vbox to the file and save.

Once we have finished with Virtualbox it is time to set up our web server. Since this is Linux we will be using Apache. Open up a terminal and install the following packages:

apache2

php5-mysql

libapache2-mod-php5

mysql-server

During the install process MySQL will ask you for a root password. Make this something complex but do not forget it!!!

Once installed open up a web browser and type your server address into the address bar and you will see the message IT WORKS! This means that you have a working web server.

Now we need to download, install and configure phpvirtualbox. The current release can be downloaded from the phpvirtualbox website.

I am assuming your downloads go to your Download folder. If not replace Downloads with the location that the file was downloaded to. Open up a terminal and type the following commands one at a time:

cd Downloads

cp -a phpvirtualbox-4.1.7 /var/www/phpvirtualbox

cd /var/www/phpvirtualbox

mv config.php-example config.php

It is now time to configure the config.php file so type:

sudo gedit config.php

———————————–

/**

* phpVirtualBox example configuration.

* [@version] $Id: config.php-example 366 2011-12-01 19:56:57Z

*

* rename to config.php and edit as needed.

*

*/

class phpVBoxConfig {

/* Username / Password for system user that runs VirtualBox */

var $username = ‘vbox’;

var $password = ‘*********’;

/* SOAP URL of vboxwebsrv (not phpVirtualBox’s URL) */

var $location = [http://127.0.0.1:18083/]

/* Default language. See languages folder for more language options.

* Can also be changed in File -> Preferences -> Language in

* phpVirtualBox.

*/

var $language = ‘en’;

————————————

Locate the username and password (BOLD above) and change the password to the one you created earlier. Once done save and exit.

Now we need to make sure that Virtualbox can start at boot time and that means configuring init scripts. Open up a terminal and type:

cd /etc/init.d

and then:

sudo touch /etc/init.d/vbox.start

Now we need to configure the file so type:

sudo gedit /etc/init.d/vbox.start

Copy /usr/bin/vboxwebsrv -b into the file. Save and exit.

That is Virtualbox configured to start at boot time but we now have to enable it so type:

chmod +x /etc/init.d/vbox.start

followed by:

update-rc.d vbox.start defaults

Now it is time to reboot the server. Once it has rebooted go to a web browser and point it to your server address/phpvirtaulbox

You will now be able to manage all the virtual machines on the network from the comfort of your own chair.

Hi I am Chris the owner of ComTech. I provide IT support to both personal and business clients from my base in Alloa, Clackmannanshire. For a list of what I can offer you why not visit my website www.comtech247.net where you will find my blog, testimonials, services and much more. Start supporting a local business today so I can start supporting you.

Tags: , , , , , , ,

gnuBy Rand Whitehall

In the Linux command line shell, moving around from directory to directory, adding new directories, and deleting old directories is easy once you know the proper commands. Again, with Linux, you are limited only by your brain! If you know all the commands, then you weild great power. But if you know only a few commands, it’s like you are standing in the airport in Tokyo and want to know where the bathroom is, but only know how to say hi and bye in Japanese.

Let’s get to it. Open a shell (or terminal) and type each line below followed by enter:

cd

pwd

You should be in your home directory, which is the same name as your username. So if your username is barney22, your home directory should be /home/barney22.

Now, let’s create a new directory to play with. (Remember, when learning the command line in Linux, always play with new directories and files you create to practice with. Never practice with important files and directories.) Type this:

mkdir doggy [enter]

ls [enter]

Now you should see your new directory called doggy in the ls output. Great! Now what? Let’s change the name. Type:

mv doggy doggyDo [enter]

ls [enter]

And you should see the directory name has been changed from doggy to doggyDo. Great! Hmmm… Now let’s go into the doggyDo directory and create a text file.

cd doggyDo [enter]

touch shibaken.txt [enter]

ls [enter]

Now, you should be in your doggyDo directory and see the new text file you created with the touch command. If for some reason you got lost somewhere along the line, go “home” by typing this:

cd [enter]

A cd command with no destination will take you home every time.

Now, let’s say you want to move the doggyDo directory into another directory. Let’s create another directory first, like this:

cd [enter]

mkdir doggyDocs [enter]

Now let’s move the doggyDo directory into the doggyDocs directory like this:

mv doggyDo doggyDocs [enter]

ls [enter]

You should see the doggyDocs directory now, but not the doggyDo directory because it is inside doggyDocs.

cd doggyDocs [enter]

ls [enter]

You should see your doggyDo directory there inside doggyDocs.

I hope you learned a lot about creating and moving directories around in the Linux command line. If this was a bit confusing, then just go through it again slowly. With a little practice your fingers will know what to do as soon as you think of it!

Rand writes about web design, Linux, men’s health and more. Please check out his DE safety razor site for shaving info and tips and the latest on the Merkur Futur safety razor. It’s a great resource for those who are passionate about a quality, close shave.

Tags: , , , , , ,

CPanel_logoBy Karim K Khan

While most of these providers offer managed data backup services for your website files and database, one of the main considerations that you have to look into is if you can restore lost files using your backup copies in a matter of minutes, instead of submitting a ticket and lose valuable time.

Shared Linux CPanel Web host packages, depending on the provider, can offer you a minimum disk space of 200 MB to a maximum of 10GB. However, it is best to check with the provider how much space would your website need so as not to under utilize or over estimate your disk space requirements. It is better to go for limited disk space than unlimited storage, since this tells you that the provider maintains well-regulated shared hardware resources.

Another important feature is the monthly bandwidth allocation that is implemented into the CPanel Web hosting plan. Most providers will give you the figures in the amount of data transferred per second (bits per second or kilobits per second). However, some providers can now give you more realistic bandwidth allocation figures, depending on your niche and industry. Monthly, these hosts can provide you a minimum bandwidth of 2GB and a maximum of 100GB, with an uptime guarantee of 99.95 percent.

Another important feature is the number of add-ons or sub domains they can offer. Most providers now offer unlimited sub domains, including a reasonable charge for the registration of your domain. Some providers also offer a price freeze, which means you don’t have to worry about your monthly service cost as this would remain the same even if the current trend in the market would recommend your host to change its pricing structure and increase their rates.

Why should you choose a shared Linux CPanel hosting plan when a lot of Web hosting providers can include all or some of these features in their Web hosting packages? The main consideration for a beginner Web developer is the experience that you can gain from using CPanel. With CPanel, you can set your preferences for running or operating your website. With the “Getting Started Wizard”, you can easily manage the various phases of the site from your website files and your company emails down to the applications embedded on your Web pages and its security specifications. Aside from these things, the wizard gives you an informative introduction to the concepts of Web hosting and can also help you configure the basic settings of your website.

Another feature of CPanel is the availability of video tutorials that will help you become a professional CPanel user. These videos can easily be viewed, fast-forwarded and paused to help you learn and be trained in navigating through the many features integrated into CPanel. The wizard includes videos about the creation and modification of a database like MySQL, the creation and management of add-ons and sub domains, the management of email and data backup sessions among others. With CPanel hosting, you can also set up and update your contact information from the preferences wizard to receive communications regarding your subscription. You will be asked to provide a secondary email address or an email address other than your hosting email to ensure that you receive notifications like messages letting you know that you are reaching your disk space limit, maximum bandwidth and email quota for your Web hosting account. You can simply put a check mark on the radio buttons provided and save your notification preferences in the wizard.

The preferences tool in your CPanel also allows you to change its style. The overall look of the CPanel interface can be changed by choosing any of the pre-installed themes to improve the convenience of navigating and controlling all the other tools found in the CPanel interface. Another function that you can use is the change language tool. Depending on the needs of the company, you may prefer to modify the language that is used for the interface. In the “Change Language” tool, you can choose from the list of languages found from the drop down menu and click on the “Change” button.

Another tool that you don’t want to miss in CPanel is the “Shortcuts” icon. With this, you can easily create cPanel links that you can access from your desktop or from an Internet browser, so you can work on your website and Web server files via CPanel using your personal computer or any secure computer anywhere.

These are just some of the tools that you can use with CPanel. Your provider can quickly and easily configure these tools for you and some other specialized tools that can be categorized, depending on its use. For example, tools or wizards are available to manage or modify email accounts. With this tool, you can create an email account, set its mailbox quota and generate a default password. With the password generator of the “Email Accounts” wizard, you will even be given an option of creating how weak or strong the password should be on a scale of 0 to 100.

There is also a tool or a shortcut in CPanel that allows you to perform a virus scan on the entire home directory or just your mailboxes. This can be done with just a click on the radio button on the options found in the wizard, then clicking the “Scan Now” button. Of course, the anti-virus software depends on what the provider chose to incorporate with their plans.

Again, there are so many easy-to-use tools in CPanel that a startup company or Web developer can benefit a lot from. With the help of your CPanel Web hosting provider, these can be made available in a plan, making it convenient to manage and operate a website of your own.

I hope you enjoyed reading my article on shared web hosting. I am a full time blogger and you can find more of my work on my website hosting blog

Tags: , , ,

logosBy Drake Q Harris

What do you think is the one upgrade that can very much help web developers in increasing their productivity, speed and their quality of work? It’s probably the simplest thing in web designing but most developers tend to overlook it.

So, what is it, you may ask? Well, it’s your text editor, of course!

No matter what language you use, only the right tools can actually make you a better programmer. All that programming needs is a clean and precise organization of information that would enable any developer, who might pick up the said file, to understand what it’s supposed to do and how to make alterations if necessary. With that, a quality text editor is a must and would probably be the single most important tool a programmer can have.

There are a lot of text editors to choose from and here are just a few of the best text editors for web designing available today.

What to Choose?

1. Text pad

This is a Windows-based editor and it’s very popular because of its easy macro recording feature. It has the standard toolbar and menu interface, just like any Windows-based tool. It also has the ability to restore its data to the last configuration used on startup. So, this is very useful because you don’t need to individually re-open your project’s file every time you start.

2. Notepad++

This is probably the most recommended text editor to upcoming developers as the most indispensable tool they can have for their line of work. It’s actually available under the GNU Public license, so what that basically means is that it can be widely shared among different developers.

3. Vim

Vim is actually the most recent execution of the Venerable VI text editor that is pretty common to UNIX systems for the past decades. It is indubitably a programmer’s editor in web designing, it is often the principal tool with which administrators install, configure and practically maintain their systems that are running UNIX or its other variants like Sun OS.

4. Textmate

Textmate is technically the only Mac-only text editor in this list. But even if this might pose a problem for programming some applications, it is actually so far exceeding most of its competition that some developers would actually want to buy a Mac just to get their hands on this top quality application. Again, this is a UNIX-based OSX so it gives users access to command line functions and all together offering some of the finest features that the Apple desktop offers.

There are still loads to choose from when it comes to text editors for web designing, but, of course, the choice is always in your hands.

Here’s the Top Four Text Editors used in Web Designing today! Check these out!

Tags: , , , ,

GNOME logoBy Marcos Aguilar

With the arrival of Gnome3 and Ubuntu 11.04 with Unity, it is necessary to clarify two concepts that are different and that tend to generate confusion: Desktop Environment and Window Manager.

DESKTOP ENVIRONMENT

(GNOME, KDE, XFCE, LXDE)

What a desktop environment does is bring together different X clients and use them to create a common graphical user environment and a development platform. These advanced desktop environments allow X clients and the applications to run and communicate with each other, allowing those applications to perform advanced tasks, such as drag and drop, eg.

WINDOW MANAGERS

(Metacity, Compiz, Mutter, Kwin)

They are X client programs that can also be independent (eg. Mwm). Its main purpose is to control the way graphical windows are displayed (position, resize, move, appearance.) and features (links to the mouse buttons, title bars, shortcuts, focus behavior).

Kwin-> Window manager for KDE. Supports interchangeable styles, which control not only its appearance but also some aspects of their behavior.

Distribution: Kubuntu

Metacity-> This is for GNOME2. It has few configuration options. But in return Gnome2 is highly configurable and allows other operators to install more advanced customizable applications like Compiz.

Distribution: Ubuntu 10.10 and above

Mutter-> This is for GNOME3 (new) not allowed to use any window manager without rewriting code, so that no window manager different than Mutter can be installed in Gnome3.

Distribution: Fedora 15

Compiz-> This is for GNOME-Unity in Ubuntu 11.04. It is the most advanced and configurable manager and can usually be installed anywhere, provided you have 3D acceleration (OpenGL).

Distribution: Ubuntu 11.04

Xfwm-> This is for Xfce. Provides its own compositing manager, the first of its kind when it was released. Supports keyboard shortcuts and its graphics are completely modifiable.

Distribution: Xubuntu

Openbox-> This is for LXDE. Was derived from Blackbox 0.65 in the beginning, but has been completely rewritten and is no longer based on Blackbox. It is designed to be fast and consume a minimum amount of resources while sacrificing some features.

Distribution: Lubuntu

Fluxbox-> It is a minimalist, light and customizable. Its visual appearance is changed from text files. It is based on Blackbox code.

IceWM-> is a lightweight and minimalist. Its main goal is to be good looking and still light. It is configured from text files. The themes IceWM can also be used with KWin (KDE), provided the kdeartwork package installed.

Motif(mwm) -> is a very basic and independent manager. Not to be used with GNOME or KDE.

Read more about KDE and GNOME.

Our blog is run and maintained by Linux & Unix fans who volunteered to share their experience with the world at no cost!! This is the power of Linux & Unix!! Visit us on http://www.linux2aix.com.

Tags: , , , , , , , , , , , ,

WINE logoBy Marcos Aguilar

It may occur that the user needs to run a Windows application or game in Ubuntu and it finds that it cannot install windows programs.

Wine is a piece of software that tricks programs to believe they are running in a Windows environment.

In addition, this article will explain how to install Winetricks libraries needed to run windows, and PlayOnLinux applications to run games.

WINE

Wine comes in the Ubuntu repositories, ready to install. All the user has to do is open a terminal (applications -> accessories -> terminal) and enter the following command:

sudo apt-get install wine

The best option is to get the latest version of wine so the user should add its repositories.

Note: Ubuntu 12.04 has the latest version of Wine (version number 1.4) so it is not need to add its repositories.

For earlier versions of Ubuntu, open a terminal and run the following command:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Press Enter, write the root password (for security reasons, not visible while the user types), we hit Enter.

Update the repository with the following command:

sudo apt-get update

Press Enter and the user would be ready for installation.

Once the repositories were added, and depending on whether there is a version of Wine already installed, do one of the following:

If Wine is not installed, issue the following command:

sudo apt-get install wine

If the user has an earlier version of Wine (the official Ubuntu repositories) installed, it can be updated with the following command:

sudo apt-get upgrade

Running Wine:

The Wine Menu already shows under Applications. It can be used to access Windows programs and Configure Wine (you can also configure it from a terminal with the winecfg command).

To install a.exe program, click the right mouse button on it and select “open with wine windows program loader”.

We can also run a program on a terminal with the following command:

sudo wine program.exe

It is a good idea that before installing a piece of software, especially if it’s powerful and complex, check the official WineHQ site, to see if the program would work well. It sometimes happens that it is necessary to install a library or dll for the program to work properly.

WINETRICKS

Often, the application the user tries to run fails because there is a required missing dynamic link library (DLL).

Winetricks is a script that will help the user in that task. With this script, the user can download and install the libraries that are required by the windows programs.

To install:

For the latest version of wine:

Those who have added the Wine repositories in Ubuntu and/or have installed the latest version of Wine, they should have winetricks with a package repository included. This is because it is automatically installed as a dependency when wine is installed.

It may also be desired to install the cabextract package:

sudo apt-get install cabextract

To launch it, press the ALT + F2 key combination and run:

winetricks

A window showing all the libraries will open, select the needed ones, press accept and install as in windows: accept, accept… end.

For other versions of wine:

Open a terminal:

Download winetricks with the following command:

wget http://www.kegel.com/wine/winetricks

This will download the script in users’ personal folder and should never be deleted.

Winetricks does not need to be installed and libraries, it can be installed directly with the following command:

sh winetricks library

Eg. to install the “corefonts” and “directx9″ libraries run:

sh winetricks directx9 corefonts

PLAYONLINUX

PlayOnLinux allows users to run games. It’s in the Ubuntu repositories and can be installed with this command:

sudo apt-get install playonlinux

To install the very last version, add the proper repositories for the Ubuntu version the user has:

Ubuntu 11.04:

wget -q “deb.playonlinux.com/public.gpg” -O- | sudo apt-key add -

sudo wget deb.playonlinux.com/playonlinux_natty.list -O /etc/apt/sources.list.d/playonlinux.list

Ubuntu 10.10:

wget -q “deb.playonlinux.com/public.gpg” -O- | sudo apt-key add -

sudo wget deb.playonlinux.com/playonlinux_maverick.list -O /etc/apt/sources.list.d/playonlinux.list

Ubuntu 10.04:

wget -q “deb.playonlinux.com/public.gpg” -O- | sudo apt-key add -

sudo wget deb.playonlinux.com/playonlinux_lucid.list -O /etc/apt/sources.list.d/playonlinux.list

Once the repositories are added, PlayOnLinux is updated and installed with:

sudo apt-get update

sudo apt-get install playonlinux

For Debian Squeeze, would be:

wget -q “deb.playonlinux.com/public.gpg” -O- | apt-key add -

wget deb.playonlinux.com/playonlinux_squeeze.list -O /etc/apt/sources.list.d/playonlinux.list

apt-get update

apt-get install playonlinux

Learn more about wine compatible software.

Our blog is run and maintained by Linux & Unix fans who volunteered to share their experience with the world at no cost!! This is the power of Linux & Unix!! Visit us on http://www.linux2aix.com.

Tags: , , , , , , ,
« Previous posts Back to top