Augustina's Technological Blog

Technology, Perl, Linux, and a Woman's perspective on the FOSS community

Archive for the ‘Ubuntu’ Category

Installing Flex On Ubuntu

with one comment

Install Eclipse

Do not install Eclipse from the Ubuntu repositories.  Navigate to http://www.eclipse.org/downloads/ and select Europa on the left-hand menu.  Download the Eclipse for Java download. Extract the .tar.gz file and move it to the /usr/lib/ directory. Create a symbolic link in /usr/bin to launch Eclipse.   “sudo ln -s /usr/lib/eclipse eclipse”  Also you can add a menu item under Programming to your applications menu.  Launch Eclipse to make sure the installation went smoothly.

Configure Sun Java

Follow this HOWTO: http://ubuntuforums.org/showthread.php?t=201378
Or follow the instructions to use your JDK of choice here – https://help.ubuntu.com/community/EclipseIDE

Install Flex
Once you’ve configured Eclipse, install the Flex plugin for Linux – http://labs.adobe.com/technologies/flex/flexbuilder_linux/
Download the bin file and from the command line, chmod+x to make it executable.  Run it from the command line by cd’ing to the directory where it’s downloaded and run it by prefacing the downloaded bin file with ./ .  Example: sudo ./flexbuilder_linux_install_a4_081408.bin

Be sure to run this install script with root privileges because the installation will need to access folders that will require it.  During the installation you’ll be prompted for 2 different directories, one for the Flex install and another for the Eclipse root folder.  I chose the /opt directory for Flex installation.  On Ubuntu, if you installed Eclipse via apt the Eclipse root folder will be at  /usr/lib/eclipse .  Do not use the defaults the installation script is prompting.

Create a Project

Launch Eclipse and select File > New > Other…

A dialog should pop up with a list of wizards.  Expand the folder for Flex Builder and select your project type.

Note that I was unable to get this working with Eclipse 3.4 .  If you have a version of Eclipse installed from the Ubuntu repositories I highly recommend you completely remove it and use the packages provided by Eclipse.org.

Written by missaugustina

March 11, 2009 at 7:43 pm

Vmware Workstation on Ubuntu Feisty 7.04

leave a comment »

Installing VMWare workstation was somewhat painless on Ubuntu.  I only had access to an RPM package, so I had to download Alien in order to convert it to .deb.

I searched for “alien” in Synaptic and installed it through there.  Once I’d done that, I opened up my terminal, went to the location where I’d saved the RPM, and typed “sudo alien –scripts vmware….rpm” (insert the filename where the ….’s are, the suffix is .rpm).

Once I had my .deb package, I double clicked it to launch the package installer.  Everything installed properly.  Next I opened up a terminal window and typed “vmware” since I didn’t see it in the menu.  I was prompted to run a configuration Perl script.  At this point, depending on what you want to do with VMWare you might want to download the PDF manual: http://www.vmware.com/support/pubs/ws_pubs.html

After running through that (I just used the defaults for most things), I found VMWare in the Applications menu under “System Tools”.  VMWare was unable to start because it couldn’t find the EULA.  I dug around and found a link to a .gz file that must not have gotten decompressed properly.  I uncompressed it, and ran VMWare again, this time successfully.

VMWare requires you to have a copy of whatever OS it is you want to install, in my case I was installing the OEM version of Windows XP that came with my machine.  I selected to create a new Virtual Machine, Windows XP Professional, 8 gig.  I inserted my installation CD and clicked to “run” my Virtual Machine.  At this point I was prompted to enter my VMWare serial number.  I did, and the Virtual Machine started reading the CD.

The UI is very helpful and intuitive.  I didn’t have to consult the manual for anything.

Written by missaugustina

August 20, 2008 at 5:44 pm

Gutsy Gibbon.. to upgrade or not?

leave a comment »

I upgraded my home computer but I did not upgrade my work machine.

My home machine is a bare bones Asus system with a P4 processor and an Nvidia 6800 GPU.  Major changes were Compiz Fusion (I had been running Beryl and had to re-set everything up) and VMWare workstation.  VMWare workstation needed to be reconfigured and wouldn’t run properly.  The issue is addressed here.

Using the linked utility I was able to get things up and running on the home system, but without official VMWare support for 7.10 I’m not going to be upgrading my work computer just yet.

Reconfiguring Compiz Fusion was a hassle.  I don’t have my cool splashy water effects anymore 😦  However, now I can add more sides to my cube, and I did finally figure out how to make my firey windows multi-colored again.

The upgrade process itself was SUPER EASY.  Just click the upgrade button on the software updates screen.  You’ll want to hang around for about the first 10-15 minutes to take care of any dialogues.  Also be sure to update everything in 7.04 before running the upgrade.

Written by missaugustina

October 31, 2007 at 7:44 pm

Posted in Ubuntu

Upgrading Ubuntu Server via CLI

leave a comment »

I needed to upgrade my 6.10 Edgy Ubuntu server to 7.04 Feisty.  It was pretty easy to do, the trick is knowing the right commands.

First, update the sources.list file and change each occurrence of “edgy” to “feisty” (without the quotes):

<code>sudo nano /etc/apt/sources.list</code>

Then, for example, change
deb http://archive.ubuntu.com/ubuntu/ edgy main restricted
to
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted

Now update package list:

<code>sudo apt-get update</code>

Install the update manager:

<code>sudo apt-get install update-manager-core</code>

Start the upgrade tool:

<code>sudo do-release-upgrade</code>

The update can take several hours as it has to download a lot of stuff.  I did mine unattended for the most part, just peeking in to make sure there weren’t any dialogues holding things up.

Written by missaugustina

September 13, 2007 at 5:54 pm

Posted in Server, Ubuntu

NXServer for Remote Desktop Access

leave a comment »

I had set up NX Server awhile ago for remote desktop access to my Linux machine and recently had to re-set it up again, so I thought I’d document what I did so that I don’t forget ;D

NXServer is an alternative to VNC.  It’s faster and served over a secure channel, which is important if you need to manage machines without a VPN.  Generally it’s easier to use VNC, but I thought it would be fun to play around with a different system.

It’s important to know that you need a GUI, preferably Gnome in order to do this.  Otherwise you might as well SSH.  Speaking of SSH you’ll need to install openSSH if you don’t have it already.  You can do that by going to your terminal and typing the following:
<code>sudo apt-get install ssh</code>

once you have that installed, you’re ready to get NXServer, et al..

NX Server is made by NoMachine.  You’ll need to go to their <a href=”http://www.nomachine.com/select-package.php?os=linux&id=1″>Linux downloads page</a> to get a copy.  Select “NX Free Edition for Linux DEB – i386 ” to get .deb packages that can be automagically launched from Firefox.  You’ll need to download the Client and install it, then the Node, then Server.

Once you have installed those, you’ll need to set up a user for your connection.  I recommend using whatever user you already log in with.  If you need to create an additional user specifically for remote access, use the “useradd” command to do it within Ubuntu first.  In the terminal type the following:
<code>/usr/NX/bin/nxserver –useradd yourusernamehere</code>

You’ll need to install nxclient on any machine you want to be able to connect to your Linux machine.  There are both Mac and Windows versions available (Mac requires X11).  Also if you want more than 2 concurrent connections you’ll need to buy a license.

Written by missaugustina

August 28, 2007 at 5:56 pm

Posted in Applications, Server, Ubuntu

Firefox and Proprietary Codecs

leave a comment »

Yes you *can* play embedded proprietary codecs in Linux, thanks to Mplayer!

First, get the plug-ins!

1) Install Mplayer.
In Ubuntu, make sure you have extra repositories enabled. Open synaptic and type “mplayer”. Install the media player and the Mozilla plug-in.

2) Disable Totem’s plugins
I found a great HOWTO: HOWTO: Replace Totem as Mozilla Plugin.

Go to the terminal and type “cd /usr/lib/mozilla-firefox/plugins”.

In the HOWTO they suggest deleting or renaming the old Codecs. I created a directory called “totem-old” and moved all the totem plugins to that directory, just in case something was in there that I needed later.

Type “sudo mkdir totem-old” then type “sudo mv libtotem*.* totem-old”. You’ll get an error message but it will move the files.

Now make sure you quit all instances of Firefox (or whatever Firefox derivative you might be using). Reopen Firefox and visit a page that streams Quicktime – like www.apple.com/quicktime/trailers and see if you can play movies! It should load Mplayer rather than totem.

Written by missaugustina

March 30, 2007 at 6:05 pm

Setting Up Ubuntu Server

leave a comment »

The Ubuntu LAMP Server installation is pretty straightforward and there are a lot of HOWTO’s on the web that walk you through how to do it. What you do after that however is pretty dated in most of the resources I had found. I struggled to find up to date information that pertained to 6.10 Edgy and have logged it here for reference.

Update Repositories
After installing the LAMP server, you’ll want to update your sources.list file.

sudo nano /etc/apt/sources.list

Uncomment the extra repositories.

Update apt:

sudo apt-get update

While you’re in apt, be sure to install build-essential and ssh:

sudo apt-get install package-you-want-to-install

Static IP Address
By default your server will be set up to acquire an IP address via DHCP. If your server needs a static IP, you’ll need to configure it as follows:

sudo nano /etc/network/interfaces

Type the following into the file, replace eth0 with your Network Card’s interface if it’s not eth0 (type “ifconfig” in the bash shell if you’re uncertain). Be sure to comment out anything you see in your config that’s different rather than deleting it, just in case something stops working. Alternatively you can create a backup of the interfaces file by typing “sudo cp interfaces interfaces.bak”

auto eth0
iface eth0 inet static
address your.ip.address.here
netmask your.netmask.goes.here
network ipfirstfour.ipsecondfour.0.0
broadcast ipfirstfour.ipsecondfour.ipthirdfour.255
gateway your.gatewayorproxy.goes.here

example:

iface eth0 static
address 192.168.1.34
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.1.0

finally, restart network services.

sudo /etc/init.d/networking restart

Resolving your Host Name
If you assigned a host name to your machine it might not show up in the DNS servers right away. you can check that your DNS servers are correctly entered by opening the resolv.conf file:
sudo nano /etc/resolv.conf

check that it says something like this:
search host.com
nameserver 123.456.789.1

If you are doing this on an internal network, you may have to send a request to the IT department to update their DNS entry for your server.

If you want to change your host name you’ll need to edit the file /etc/hostname and change the name of the system:

sudo nano /etc/hostname

Edit the file with your desired host name and Ctl-X to write out the changes and exit.

Then run

/etc/init.d/hostname.sh start

to make the change active, or restart your system.

Webmin
Webmin is an awesome tool for remote server administration. I don’t have a desktop environment installed on my servers and now I don’t need a keyboard or mouse either. To install webmin you’ll need to go to webmin.com and get the url of their latest distribution. The online HOWTO’s I read were all very out of date with regards to acquiring this or else I was just typing the wrong package to install in apt. Once you have the url you can download the .deb package! You can access the Webmin website from you bash shell by installing Lynx via apt. Lynx is an old school text based web browser.


wget http://url.of.webmin/install/.deb

Install it using dpkg

sudo dpkg --install webmin

If you get errors during the install about missing libraries, get them in apt

sudo apt-get -f install

You can log in by going to https://your.host.ip.address:1000 to access the Webmin interface. If your domain name is resolving (try “nslookup yourdomainname”) then you can replace the IP address with your domain name.

MySQL
You’ll need to set up a root user in mySQL before you do anything else, even access it from Webmin.


mysqladmin -u root password yournewpasswordhere

After you do that you’ll get the bash prompt again. Now set your super user.

mysqladmin -h yourmachinename -u root password anotherpasswordhere

You’ll get a prompt…

Password:

Type in the “root” password you set in the first command.

Restart mySQL…

sudo /etc/init.d/mysql restart

And that’s all she wrote…! Feel free to correct me if I’ve made any mistakes.. I’m just recording what i did in order to set it up on my machine…

Written by missaugustina

March 13, 2007 at 6:07 pm

Posted in Applications, Server, Ubuntu