Installing Citrix ICA client

Posted in Guides, Linux by aliencam | 2 Comments »

Wow, this is an old post that somehow got put in drafts instead of posted… oops. Original write date was September 04, 2008. This guide should be similar for intrepid, but I will be rewriting it specifically for intrepid soon enough anyway.

This is installing Citrix client on ubuntu 8.04 i386

first, go to citrix.com, click download, and download citrix XenApp, for operating system select Linux, then click Linux ICA Clients below.  Then download the tar.bz file for English (currently version 10.6).

right-click, extract here for the file you downloaded, and then right-click on it, change permissions to create and delte files, read and write, and then click apply permissions to enclosed files.

Then open the setupwfc file in a terminal, and go through the options.

After this is installed, you probably already have firefox installed, but the ASU certificate (equifax) will not be accepted.

go to www.geotrust.com/resources/root_certificates/index.asp#WireLineandWireless  and download Equifax Secure Certificate Authority.  (I downloaded both the Base-64 encoded X.509 and the DER encoded X.509 versions because I wasn’t sure which were needed) to /home/$USERNAME/ICAClient/linuxx86/keystore/cacerts and change the file extensions to .crt instead of .cer.

Once those certificates are installed, restart firefox, and citrix should work.

-aliencam

Ubuntu Setup Guide -Tilt Control and Automatic Rotation

Posted in Life in General by aliencam | 1 Comment »

*this section has been added to the “aliencam’s Customized Ubuntu Setup Guide” page. Visit the articles page to read that article.

I just now got around to setting up automatic rotation and the accelerometer, thanks to Karol Krizka at www.krizka.net. This section of the guide is mostly copied from a few entries on this blog, as I was unable to figure out all of this stuff on my own (yes I know, I’m being lazy.)

Accelerometer

The first thing you need to do is set up the accelerometer. Doing this in Ubnutu Hardy no longer requires recompiling a kernel, which is pretty awesome.

just to make sure everything will work, in a terminal do:
sudo modprobe hdaps_ec
sudo modprobe tp_smapi

If those commands don’t return any errors, then you are in good shape.

you should then edit the kernel modules loaded on startup (if you want this to always work) to include those two.

sudo gedit /etc/modules

and add the two lines:
hdaps_ec
tp_smapi

then save and close gedit.

Test everything to make sure it is working properly

install hdaps-utils in synaptic or in the terminal with:
sudo apt-get install hdaps-utils

then run the accelerometer test by either pressing alt-F2, or running “hdaps-gl” in a terminal. Then make sure that the image reflects the actual rotation of the laptop (for example, does tilting it forward make the picture of the laptop tilt forward?). If not, go HERE and follow the troubleshooting section. Hopefully though, everything will work and you can continue on to the screen rotation.

If you don’t want automatic screen rotation, or you just want to play around with this some more, you can do things like play Neverball which is like super monkey balls (install it from the add/remove programs program, or synaptic). But I don’t know of much else (I believe the hard drive protection is not working without a recompiled kernel at the moment).

Screen Rotation

Add the python-xrandr PPA repo by opening up the “Software Sources” program and adding the following line to the “Third Party Sources” list, or by adding the line to the bottom of /etc/apt/sources.list
deb ppa.launchpad.net/displayconfig-gtk/ubuntu gutsy main

Then do:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wacom-tools python-xrandr

Next download the atorotate.py script written by Krizka from here (sorry for posting someone else’s script, but I don’t know how to write python anyway, that’s a project for another day) and move it to /usr/local/bin. For example, if you downloaded it to your desktop the code would be:
sudo mv /home/$USERNAME/Desktop/autorotate.py /usr/local/bin replacing “$USERNAME” with your username.

Then make sure it is executable:
sudo chmod +x /usr/local/bin/autorotate.py

create a file for “tabletmode” with the command:
sudo touch /etc/tabletmode

To create files that make an acpi event for putting the tablet up and down, first do:
sudo gedit /etc/acpi/events/swivel-down
and enter into that file:
# called when tablet screen swivels down (into tablet mode)
event=ibm/hotkey HKEY 00000080 00005009
action=echo tablet > /etc/tabletmode

Then,
sudo gedit /etc/acpi/events/swivel-up

and enter:
# called when tablet screen swivels up (into laptop mode)
event=ibm/hotkey HKEY 00000080 0000500a
action=echo laptop > /etc/tabletmode

Once this is finished, you have to restart ACPI (this does not restart your computer)
sudo /etc/init.d/acpid restart

< --! Then edit /etc/gdm/Init/Default in order to get the python script to run on startup (including before login)
sudo gedit /etc/gdm/Init/Default
then before the line that reads “exit0” add:
/usr/local/bin/autorotate.py& –>
Then add /usr/local/bin/autorotate.py to your “sessions” startup menu (System > Preferences > Sessions). This will make the autorotate startup script run at login. I previously had instructions to run this before the login, but this means that it runs even in a failsafe gnome session, and it caused me many problems starting up after a crash.

Save all of your work and then run the following to restart GDM (this does log you out of your computer):
sudo /etc/init.d/gdm restart

Many thanks to the following posts on krizka.net for this information. I did not know how to do the accelerometer or screen rotation before reading these.

www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/

www.krizka.net/2008/01/23/thinkpad-x61-tablet-tilt-detection-and-ubuntu-hardy-heron/

The only issue I have found so far is that with automatic screen rotation, you must first disable compiz graphics. If you have the CompizFusion Icon in your system tray (as I recommend below), all you need to do before you flop your screen is right-click on the CompizFusion Icon, choose “select window manager” and choose “metacity”. Then when you are through with your rotated shenanigans, simply change the window manager back to Compiz.

–aliencam

aliencam’s Customized Ubuntu Setup. Part I

Posted in Linux, Lists, Ubuntu by aliencam | No Comments »

So, now that you’ve finally gotten Ubuntu 8.04 Hardy Heron installed, all the guides stop here. Well, now what? Most people won’t be happy forever with the default desktop settings, so here is my guide to customizing and setting up Ubuntu 8.04 the way I like it. Each of these tips can be done independently, or pick and choose the ones you like. I’ll be using a fresh installation of Ubuntu 8.04 x86_64, but everything should be the same for both the 32-bit and 64-bit versions. I’ll also be using a Lenovo x61 Tablet laptop, and a few of these customizations will be hardware specific, so don’t do them if you have different hardware from me, but they should work on the majority of Thinkpad laptops. (I will note where things should and shouldn’t work, and for whom)

I will start this off with a screenshot of the default desktop. Up at the top is the Applicatoins, Places, and the System menu, along with a few program shortcuts, the clock, power button, and the notification area. At the bottom is the “show desktop” button, the window list, virtual desktops list, and the trash. (yes, I still call it trash and not recycle bin. Nothing I put in there ever gets re-used. Ubuntu calls it trash too.)
Hardy Heron Default Desktop

Enabling Repositories and Installing Basic Codecs
The first thing I always do when I have a new installation of Ubuntu is to enable more repositories. Essentially, the repositories are servers where many Ubuntu software packages are held. However, when you have a fresh install, only a few of these are enabled, meaning that you can’t see all of the programs or software packages available to you. Change these settings by going to the System menu on the top, then Administration, then Software Sources. You will have to enter your account password here. (see note on “Sudo and the Administrator Password”) I go through all the tabs, and I check nearly every option. Check both under “Third Party Software”, under “Updates” it is your choice to check “Pre-released updates” and “Unsupported Updates” those are both repositories that will send programs that may have updated in the repositories since the distribution became available, but are not nearly beta updates, as they are generally just stable updates that have not yet been completely accepted by the Ubuntu community. And on the “Statistics” tab, it is nice to check the “submit statistical information” box just to help out find which programs are most popular. When you are through, select “Close” and an alert will pop up telling you that your information is out of date. Click reload, and then it should close. (if not, just click cancel the second time)

Now, to install the “Ubuntu Restricted Extras” package, go to Applications, then Add/Remove. At the top, under “Show:” change the option to “All Available Applications” then search for “Ubuntu Restricted Extras”. Check the box next to it, and click apply. This allows you to play MP3s, watch DVDs, view Microsoft Core Fonts, and a few other things. I would also suggest using the media player “VLC” instead of the default totem movie player, as VLC can handle many more formats than the other video players, and I believe it fetches codecies as you need them. More media compatibility is available by following this guide: https://help.ubuntu.com/community/Medibuntu

Note: This is only the first part of the guide, I decided to split it into smaller posts. I will be making a page with the consolidated guide though.

Creative Commons License