Archive for the ‘Linux / Unix’ Category

by @ 19:42   Linux / Unix | Tech   Permalink

Citrix ICA Client install on Ubuntu (Feisty and Gutsy)

Monday, March 10th, 2008

Citrix is a system that allows you to run applications you have at work/home from anywhere in the world or on your local area network (LAN) from a remote workstation.

You have real time access to run your applications as fast as if you are in the office. It does not matter if you’re using a dialup modem, DSL, ISDN, or T1 to access citrix remotely. Connection speeds become even less of an issue with high speed broadband connections pretty much the norm around the world now.

Citrix was built for virtualisation in mind, and obvioulsy owing to the fact that Microsoft is pretty much everywhere these days the main applications are easy to install on a windows machine, I am not going to cover that in the slightest.

To install Citrix ICA presentation client on your Ubuntu PC then follow the steps below.

Open a Terminal session

The three links below are using the new AptURL command which is installed by default on Ubuntu Gutsy and allows people like myself and any other tutorial writer to make it easier for you to install the packages you need. Just click the link and it will install the package for you. If this does not work, type the following command into the terminal window.

  1. sudo apt-get install apturl

Now that is out of the way, continue on.

  1. Click here to install libxaw6
  2. Click here to install libmotif3
  3. Click here to install alien (used to convert RPM to DEB packages)

You will now need to download the RPM file from Citrix. NOTE: It is version 10.6 (at time of writing) and is the second download icon (again, at time of writing). As the file names will change with new releases you will need to modify the tutorial to reflect this. You can however just grab the file from me.

Grab the file from here. I believe it is version 10.0 which is slightly out of date but works solidly so I recommend using it.

  1. http://www.citrix.com/site/SS/downloads/details.asp?dID=2755&downloadID=3323#top

Save the file to your desktop (this tutorial assumes you save it to your desktop, if not please change commands accordingly)

In your terminal window you now need to change to the directory where you saved the file, then we will begin converting and installing.

  1. cd Desktop

Now that you are on the desktop we now need to convert the file into a .Deb package that Ubuntu can handle.

  1. sudo alien ICAClient-10.0-2.i386.rpm

Once the file is converted we now need to install it.

  1. sudo dpkg -i icaclient_10.0-3_i386.deb

Now need to make this work through Firefox web-browser. We will create some symbolic links for Firefox so that it knows how to open the Citrix application file when you attempt to login.

  1. sudo ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla/plugins/npica.so
  2. sudo ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla-firefox/plugins/npica.so

Restart Firefox

Navigate to your Citrix server and login. Click on the application you want to launch. If it asks you to save/open with you will need to choose “open with” and navigate to the following folder:

  1. /usr/lib/ICAClient

and choose to open with the following application.

  1. wfica

You should now be good to go.

Edit

I am aware that some people get Font errors with the Citrix Client, it is safe to ignore but if you wish to fix them you can drop me a line in the comments and I will write up the fix.

Page 3 of 41234

mod_rewrite on Apache(2) Server

Monday, March 10th, 2008

Mod_Rewrite uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, for instance server variables, environment variables, HTTP headers, time stamps and even external database lookups in various formats can be used to achieve a really granular URL matching.

In most Apache servers the mod_rewrite module is not activated by default. If you wish to have your URL’s changed on the fly and rewritten into nice, human readable format then you will need to enable this module. Follow the steps below to enable mod_rewrite.

Open a Terminal window and type:

  1. sudo a2enmod

You will be presented with the following, but you can safely ignore what is in front of you and just follow the next steps.

  1. Which module would you like to enable?
  2. Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic mod_python negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status suexec unique_id userdir usertrack version vhost_alias
  3. Module name?

Enter the module name “rewrite” and press enter. Now you need to open the default file with sudo rights and change the “AllowOverride” option from “None” to “All” in the first 2 Blocks.

  1. sudo pico /etc/apache2/sites-enabled/000-default

Below is what it should look like when you are finished.

  1. <VirtualHost *>
  2. ServerAdmin root@xpheas.com
  3. DocumentRoot /var/www
  4. <Directory />
  5. Options FollowSymLinks
  6. AllowOverride All
  7. </Directory>
  8. <Directory /var/www>
  9. Options Indexes FollowSymLinks MultiViews
  10. AllowOverride All
  11. Order allow,deny
  12. allow from all
  13. </Directory>

Restart the webserver.

  1. sudo /etc/init.d/apache2 force-reload

Now the module is enabled, all that is left is to rewrite your .htaccess for URL changing.

Now that you have mod_rewrite enabled you are going to want to use it. In my next tutorial I will show you how to rewrite your .htaccess file to change ugly URLS into nice URLS. An exmaple of each is below so you can understand what I mean.

Ugly URL

  1. http://example.com/blog/?p=17

Nice URL, which of course is more search engine friendly and will provide much better SEO.

  1. http://example.com/blog/index.php/2007/09/17/dont-tase-me-bro/
Page 3 of 41234

Install Lexmark Printers (Ubuntu)

Thursday, September 28th, 2006

This tutorial will guide you through installing Lexmark printers on Ubuntu. The tutorial was taken from the Ubuntu forums. I decided to post it here as it did not work exactly like it was supposed to for me and I had to modify the procedure.

I have ammended the tutorial to my needs and probably the needs of most and I have pointed out where it went wrong for me and how I solved it. It was not difficult to solve, but you will be required to be the ROOT user which is dangerous and destructive. Use at your own risk, I take NO responsibility for you damaging your system.

You will of course need to download the correct drivers for this, the Z600 driver. I have the correct link for the file as Lexmarks website is not the easiest to navigate around and find what you need.

The Z600 driver has been confirmed to work with the following printers:

Lexmark 5700 (black & white only)
Lexmark X1100
Lexmark X1110
Lexmark X1130
Lexmark X1140
Lexmark X1150
Lexmark X1180
Lexmark X1185
Lexmark Z513
Lexmark Z515
Lexmark Z715
Lexmark Z55
Lexmark Z615
Lexmark Z705
Lexmark Z605
Lexmark Z600
Lexmark Z25
Dell A920
Z65 (z65 driver)
Lexmark Z33 (z35 driver)
Lexmark Z33 (z35 driver)

First of all you need to download the correct driver to a folder of it’s own to save confusion.

Open a terminal window and type the following

sudo mkdir lexmark

This will create a folder called “lexmark” in your home directory.

Ok, again in your terminal window, type the following commands one after another, waiting for each command to execute first before starting the next one.

cd lexmark

wget http://www.downloaddelivery.com/srfilecache/CJLZ600LE-CUPS-1.0-1.TAR.gz

tar -xvzf CJLZ600LE-CUPS-1.0-1.TAR.gz

tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz

tar -xvzf install.tar.gz

sudo apt-get install alien

alien -t z600cups-1.0-1.i386.rpm

alien -t z600llpddk-2.0-1.i386.rpm

sudo tar xvzf z600llpddk-2.0.tgz -C /

sudo tar xvzf z600cups-1.0.tgz -C /

sudo ldconfig

cd /usr/share/cups/model

sudo gunzip Lexmark-Z600-lxz600cj-cups.ppd.gz

The driver is now installed. Restart the cups daemon:

sudo /etc/rc2.d/S19cupsys restart

Check to make sure the printer back-end works:

cd /usr/lib/cups/backend

./z600

The output of the above command should be similar to this:

direct z600:/dev/usb/lp0 “Lexmark Lexmark Z600 Series” “Lexmark Printer”

If you get no output, mount the usb filesystem. To do this type the following:

sudo gedit /etc/fstab

and add the following code to the end of the file

#USB Lexmark Printer
usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0

Save the file and close. Then just type the following in the terminal:

sudo mount usbfs

That should fix it.

Now simply set up your printer. Go to:

  • System
  • Administration
  • Printing

Make sure you select the z600 driver, and you’re done. Print out a test page to make sure it all works.

I hope this has helped you.

Page 3 of 41234

Have Xampp run at boot time

Wednesday, September 27th, 2006

“”Many people know from their own experience that it’s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.“”

Quoted from Apache Friends. Home of the Xampp project.

It took me some time to find the information I need to get Xampp to start when the computer boots up. Apache Friends has a small How To to get the process going everytime, but it failed to work for me. So Borntwisted and myself had a natter about it and decided to add the Xampp start command into the startup programs and voila, it works a treat.

If the Apache Friends info does not work for you, and you are using Ubuntu Dapper then follow these simple instructions.

  • System
  • Preferences
  • Sessions
  • Startup Programs (tab)
  • Add

Enter the following command:

sudo /opt/lampp/lampp start

When your computer reboots you should now have Xampp start as a process.

Page 3 of 41234

Fix Firefox sound issues (Ubuntu Dapper)

Wednesday, September 27th, 2006

I am using the pre-installed version of Mozilla Firefox for Linux, some of you I know are not. This fix defiantly works on the pre-installed version, it is a little flaky on a manual install of Firefox and has been known not to work.

Please do try it if you have the manual install and hopefully it will work for you.

Open a new terminal window and type the following command:

sudo aptitude install alsa-oss

Once completed, enter the following command:

sudo gedit /etc/firefox/firefoxrc

Find and replace:

FIREFOX_DSP=”none”

With:

FIREFOX_DSP=”aoss”

Close and restart Firefox. In some cases a full reboot is required.

Page 3 of 41234

Contact