Archive for the ‘Linux / Unix’ Category
Citrix ICA Client install on Ubuntu (Feisty and Gutsy)
Monday, March 10th, 2008Citrix 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.
- sudo apt-get install apturl
Now that is out of the way, continue on.
- Click here to install libxaw6
- Click here to install libmotif3
- 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.
- 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.
- cd Desktop
Now that you are on the desktop we now need to convert the file into a .Deb package that Ubuntu can handle.
- sudo alien ICAClient-10.0-2.i386.rpm
Once the file is converted we now need to install it.
- 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.
- sudo ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla/plugins/npica.so
- 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:
- /usr/lib/ICAClient
and choose to open with the following application.
- 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.
mod_rewrite on Apache(2) Server
Monday, March 10th, 2008Mod_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:
- 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.
- Which module would you like to enable?
- 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
- 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
- sudo pico /etc/apache2/sites-enabled/000-default
Below is what it should look like when you are finished.
<VirtualHost*>- ServerAdmin root@xpheas.com
- DocumentRoot /var/www
<Directory/>- Options FollowSymLinks
- AllowOverride All
</Directory><Directory /var/www>- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
</Directory>
Restart the webserver.
- 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
- http://example.com/blog/?p=17
Nice URL, which of course is more search engine friendly and will provide much better SEO.
- http://example.com/blog/index.php/2007/09/17/dont-tase-me-bro/
Install Lexmark Printers (Ubuntu)
Thursday, September 28th, 2006This 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.
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.
Fix Firefox sound issues (Ubuntu Dapper)
Wednesday, September 27th, 2006I 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.
Search
Previous Posts
- Building Your Own GIT Server – Part 1 Posted by Soddengecko February 3, 2012
- Enable Airprint on Ubuntu Posted by Soddengecko June 27, 2011
- Ubuntu Install Screenshots Posted by Soddengecko February 7, 2010
- HOW TO: Move Ubuntu Home folder to another drive Posted by Soddengecko February 7, 2010
- HOW TO: Random password generator on Ubuntu and other Linux systems Posted by Soddengecko February 7, 2010
- HOW TO: Perform system backup in Ubuntu – Part 2 – Restore Posted by Soddengecko February 7, 2010
- HOW TO: Perform system backup in Ubuntu – Part 1 – Backup Posted by Soddengecko February 7, 2010
- SBS 2003: Mapping network drives for users at logon Posted by Soddengecko February 7, 2010
- Sharepoint Services not configured for use with ASP.NET 2.xxxxx Posted by Soddengecko November 26, 2009
- Customising Firefox 3 Posted by Soddengecko May 13, 2008
Recently Updated
Archives
People
Linkies
- Matthew Moore This blog belongs to an associate of mine. He likes to jibber jabber on a bit, and he has decided to document his exercising habits lately, but look back and check out some of the good stuff. Added on March 22nd, 2008 @ 12:08
- Fight for Kisses Probably the best shaving advert I have seen. Not much by the way of pretentious bullshit and it actually has a couple of funny moments. Worth a watch. Added on October 25th, 2007 @ 09:52
- Speedtest.net Speedtest.net is a broadband connection analysis tool with a huge selection of geographically dispersed testing servers. Ookla provides this service free to hundreds of thousands of people every day. If you are experiencing slowness with your Internet connection or are simply interested in testing your speed, Speedtest.net is for you. Added on October 15th, 2007 @ 22:09
- Sadikhov Forums A forum of like minded people helping others achieve the coveted CCNA qualification. The site is aimed at helping those understand the complex issues presented in the exams and making sure you understand them before wasting your money. Added on October 15th, 2007 @ 22:09
- RouterSim.com RouterSim has been the leader in IT simulation training since 1999. RouterSim’s Industry expert Todd Lammle offers you the best learning tools available. We have expanded our offerings to match your budget and needs. RouterSim offers simulators, computer-based training videos, online CCNA simulation testing, and exam preparation software. Added on October 15th, 2007 @ 22:08
- Generic Linux rules of thumb for security The only secure box is turned off and locked in the back room — but it’s also not much use to anyone Added on October 15th, 2007 @ 22:06




by @ 19:42