Archive

Posts Tagged ‘Ubuntu’

Awesome collection of software on Ubuntu

March 27, 2012 Leave a comment
Categories: Reviews, Tutorials Tags: ,

Install Picasa 3 on Ubuntu

March 27, 2012 Leave a comment
I cannot see picasa in Ubuntu software repository, so here is how to install Picasa 3 from terminal:

sudo sh -c "echo 'deb http://dl.google.com/linux/deb/ testing non-free' >> /etc/apt/sources.list";
wget --quiet http://dl.google.com/linux/linux_signing_key.pub -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install picasa

Alternatively, you can download the file from Google download website

32-bit Ubuntu:
wget http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_i386.deb && sudo dpkg -i picasa_3.0-current_i386.deb

64-bit Ubuntu:
wget http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_amd64.deb && sudo dpkg -i picasa_3.0-current_amd64.deb
Categories: iDo Tags: ,

MATLAB on Ubuntu: From Install, Make launching Icon,… to Uninstall

February 12, 2012 1 comment

Here are the steps to install MATLAB + some possible problems:

  1. Extract/mount the zipped/iso installer file. For me I extract the iso to /home/bot/Downloads/Software/ml2011bu
  2. Open the terminal (Ctrl+Alt+T), type sudo sh install
    1. You might run into the problem say:Preparing installation files …
      Installing …
      eval: 1: /tmp/mathworks_2931/sys/java/jre/glnx86/jre/bin/java: Permission denied
      Finished
      bot@bot-laptop:~/Downloads/Software/ml2011bu$ cd sys

      What you need to do is to make the file “java” executable by
      from your installer folder, type

      cd sys/java/jre/glnx86/jre/bin/
      chmod +x java

      you will see that the file permission is changed from
      -rw-r–r– 1 bot bot  47308 2010-10-20 04:41 java
      to
      drwx–x–x 4 bot bot    4096 2012-02-11 17:55 java

      Now go back to the installer folder and install it with sudo sh install, and it should work

    For more details on installation, please visit
    https://help.ubuntu.com/community/MATLAB

Once the installation is finished, you may want to create a script to run the MATLAB. Here is how

  1. Go to desktop (where else is fine too)
  2. Create an empty document, let’s name it runmatlab.sh
  3. Open runmatlab.sh with gedit, and type the following
    cd /usr/share/matlabr2010a/bin/
    sudo sh matlab -desktop
  4. Open the terminal, go to desktop by typing in the terminal cd ~/Desktop
  5. make the script executable by typing in the terminal chmod +x runmatlab.sh
  6. Now you can run MATLAB by running the script by typing ./runmatlab.sh

Now, if you want to add a launching icon on the menu bar, here is how:

  1. Right click on the menu bar
  2. Edit menus>Go to Programming in the left panel
  3. Click new item and add all the information
  4. In the command, type /home/bot/Desktop/runmatlab.sh
  5. You can also change the icon by clicking at the icon on the top-left corner and choose where the icon is
    1. Here is an easy command line to download the icon
      sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png
    2. The icon will be downloaded to /usr/share/icons/matlab.png
  6. That’s it!

And, if you are bored with MATLAB and want to uninstall it, please follow the steps here

  1. Locate the matlab dir, mine is /usr/local/MATLAB
  2. Remove the matlab dir by
    >cd /usr/local
    >sudo rm -r MATLAB
  3. bye bye MATLAB, and you get 5GB more space hahahaha!
Categories: Tutorials Tags: ,

How to fix “sticky” wacom stylus click in Ubuntu 10.04

January 21, 2012 Leave a comment

The problem is described very well by stephanecharette “I don’t know when it started, but my Wacom stylus clicks haven’t been working right. It seems to do the “click down” correctly, but hasn’t always been doing the “click up” when I release the pressure on my stylus. This leads to a bunch of problems when Ubuntu thinks I’m holding down the mouse button, when in reality I’m not holding anything down.”  from http://ubuntuforums.org/showthread.php?t=1588459

Although the post focuses on Ubuntu 10.10, but I think the solution is applicable to 10.04 too. It seems to me there are two solutions to solve the problem, which is posted by cnr_roxx:

  1. Compile a new driver for 10.04
  2. Upgrade to 10.10 and install 2 packages from Irie’s private repository, please see the post#5 in here

Somehow, I don’t want to upgrade to Ubuntu 10.10, so I will stick with the option 1, that is, to compile a new driver. The instruction is very well documented in
http://ubuntuforums.org/showpost.php?p=9496609&postcount=1

The URL links to another post, which seems to be more compact.
http://ubuntuforums.org/showpost.php?p=6546012&postcount=1

Just follow the steps; download, compile and install.

I also found an overview link to explain all these in just a few paragraph and it is pretty easy to follow.
http://www.ubuntugeek.com/wacom-bamboo-ctl-460-in-ubuntu-10-04-lucid-lynx.html

For 64-bit Ubuntu 10.04, I found this the following posts are the best:

  1. The last paragraph of post#14 http://ubuntuforums.org/showthread.php?t=1729780&page=2
  2. Which links to PartIII of the post http://ubuntuforums.org/showthread.php?t=1515562
  3. Bug report website is very helpful https://bugs.launchpad.net/ubuntu/+source/xf86-input-wacom/+bug/770082
  4. Setup pressure support in GIMP http://www.ubuntugeek.com/wacom-control-panel-easily-configure-wacom-tablet.html

 

[Solved] The following works!

Here is the summary on how to solve the problem from http://ubuntuforums.org/showthread.php?t=1515562. Just read the PART III “III. Configure the Wacom Bamboo P&T tablet“, and follow the instruction.

  1. type in the terminal
    gksudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf
  2. Copy the following content to the file 10-wacom.conf and save the file
    Section "InputClass"
    	Identifier "Wacom class"
    # WALTOP needs a patched kernel driver, that isn't in mainline lk yet,
    # so for now just let it fall through and be picked up by evdev instead.
    #	MatchProduct "Wacom|WACOM|WALTOP|Hanwang"
    	MatchProduct "Wacom|WACOM|Hanwang"
    	MatchDevicePath "/dev/input/event*"
    	Driver "wacom"
    EndSection
    
    Section "InputClass"
    	Identifier "Wacom serial class"
    	MatchProduct "Serial Wacom Tablet"
    	Driver "wacom"
    #	Option "ForceDevice" "ISDV4"  # deprecated starting with
    #        xf86-input-wacom-0.10.8
    EndSection
    
    Section "InputClass"
            Identifier "Wacom serial class identifiers"
            MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
            Driver "wacom"
    EndSection
    
    # N-Trig Duosense Electromagnetic Digitizer
    Section "InputClass"
    	Identifier "Wacom N-Trig class"
    	MatchProduct "HID 1b96:0001|N-Trig Pen"
    	MatchDevicePath "/dev/input/event*"
    	Driver "wacom"
    	Option "Button2" "3"
    EndSection
  3. close the file, reboot the machine, and it will work.

 

Categories: iDo, Tutorials Tags:

How to Install Eclipse and Android SDK on Ubuntu 10.04 LTS

January 17, 2012 1 comment

Before walking you through the installation process in details, it’s good to know a big picture:

  1. Since Android development needs Java, so we are going to need Java installed on Ubuntu
    • If you are using 64-bit Linux machine (e.g. 64-bit Ubuntu), you may need to install ia32-libs.
  2. You will also need Java Development Tools (JDK), and Eclipse is recommended
  3. The last thing is to install Android Development Tools (ADT) on Eclipse

All the information regarding the installation can be found at the Android developer website

http://developer.android.com

Here is the installation in details:

  1. Install Java
    1. If you are using 64-bit Ubuntu, you will need to install ia32-libs package:
      sudo apt-get ia32-libs
    2. Next, install Javasudo apt-get install sun-java6-jdk

      A tricky part is that when the Java installation almost done, you will need to click <Ok>, which can be done by click in the terminal and press Tab until the <Ok> is highlighted.

  2. Next, you will need to install Java Development Tools (JDK). Eclipse is recommended because there is an Android Development Tools (ADT) plugin available.
    1. Go to http://www.eclipse.org/downloads/
    2. I download Eclipse IDE for Java Developers (both 32- and 64-bit are available)
    3. Extract the downloaded file eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz, and you will get the folder called eclipse, containing all necessary files
    4. Since Eclipse is built to be portable, you can move the extracted eclipse folder to any location you want. It is recommended to move the file to your home directory /home/yourusername/
    5. You might want to add the launch icon on the menu, please follow the process here.
  3. Launch Eclipse, we will now install the ADT plugin
    1. go to Help>Install New Software..
    2. According to the ADT plugin page, we will put the URL
      https://dl-ssl.google.com/android/eclipse/
      and click Add
    3. Tick the newly added plugin, and click Next until done
  4. Next, we will install Android software development kit (Android SDK)
    1. Download the Android SDK from
      http://developer.android.com/sdk/index.html
      For (both 32- and 64-bit) Ubuntu, you will download android-sdk_r16-linux.tgz
    2. Extract android-sdk_r16-linux.tgz in the home folder (/home/yourusername/)
    3. The extracted folder is android-sdk-linux
    4. Now go back to Windows>Preferences
    5. On the left panel, click Android
    6. In the SDK Location, select your extracted SDK location, which is
      /home/yourusername/android-sdk-linux
    7. Click Apply and OK, wait a few minutes for the program to update
  5. Retrieve all necessary files for SDK
    1. Go to Window>Android SDK Manager
    2. Tick all the Android versions that apply, and click Install packages
  6. Done, So now you may proceed to build a new project!!!

Additional reading can be found from http://developer.android.com/sdk/installing.html#troubleshooting

Install MATLAB r2010a on Ubuntu 10.04

January 13, 2012 Leave a comment

Here is the step by step how to install MATLAB on Ubuntu

  1. Mount the matlab iso file. Let’s say the matlab installation files are in directory /tmp/mat2010a
  2. First, install using
    $ sudo sh install
    However, you might get the error, which looks like this
    ——————————————————————-    An error status was returned by the program ‘xsetup’,
        the X Window System version of ‘install’. The following
        messages were written to standard error:

            /home/bot/tmp/matu20Xa/update/install/main.sh: 178: /home/bot/tmp/mat2010a/update/bin/glnxa64/xsetup: Permission denied

        Attempt to fix the problem and try again. If X is not available
        or ‘xsetup’ cannot be made to work then try the terminal
        version of ‘install’ using the command:

                install* -t    or    INSTALL* -t

    ——————————————————————-
    The problem occurs because of the permission of the file …/xsetup is not set properly. So, the easy way is to go to the directory and change the permission by using the command

    ../glnxa64$ chmod 777 xsetup

    Now, you can go back to the normal installation

  3. Next step, create a root matlab folder, and it is suggested that you create the folder in/usr/local/matlabR2010a

    by using the command line

    sudo mkdir /usr/local/matlabR2010a
  4. The rest is easy..you can do it yourself

Additional reading:
https://help.ubuntu.com/community/MATLAB/R2010a

Categories: Research, Tutorials Tags: ,

Solved: pdfExpress verification gives some errors

August 5, 2011 Leave a comment

My paper did not pass the pdfExpress verification due to the error:

Error Font Helvetica is not embedded (111x)

Here we follow the process from the submission homepage:

If you are using the conference template in its Winword version and still get errors (or no answers) from pdfExpress, try this procedure:
1) Please check the top margin of the the first page. it MUST be 2.5 cm; for OTHER pages it must be 1.9 (cm)
2) Generate the pdf file
3) Then you have to embed the fonts. You can do that either
3.1) by using acrobat professional or
3.2) using the line command

gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=OUTPUT.pdf -f INPUT.pdf

where INPUT.pdf is the pdf source file, OUTPUT.pdf is the output file to be submitted with the fonts embedded and gs is the ghost-script executable command.
If this does not work, or you have other pdfExpress problems, please contact Dr. Romolo Camplani at camplani@elet.polimi.it

However, after trying such a method, the pdf is rejected from the submission website. So, we still have to put the output file to pdfExpress to verify again, and of course you can now expect no error. Then you can proceed to submit the pdfExpress-verified pdf to IJCNN, and the file is PID1839743.pdf whose content is identically the same as ClosedFormDcsGMM_IJCNN_final_added2.tex.