Tuesday, January 29, 2013

Install a specific package version

Yesterday, after a partial upgrade in my Ubuntu 12.10 installation, git was uninstalled.

After the upgrade I tried to re-install it and got the following error:
$ sudo apt-get install git
Reading package lists... Done
Building dependency tree    
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 git : Depends: git-man (< 1:1.8.0.3-.) but 1:1.8.1.1-1~ppa0~quantal2 is to be installed
E: Unable to correct problems, you have held broken packages.
Basically git depended on git-man version 1.8.0.3, but the APT package handling utility was trying to install the newer version 1.8.1.1.

But how to install a specific version?

Saturday, January 19, 2013

#FavApps: GCstar Collections Manager

Download for Ubuntu button
GCstar is an application for managing your collections. It supports many types of collections, including movies, books, games, comics, stamps, coins, and many more. You can even create your own collection type for whatever unique thing it is that you collect. 
Detailed information on each item can be automatically retrieved from the internet and you can store additional data, such as the location or who you've lent it to. You may also search and filter your collection by many criteria. 

I've been using GCstar for years now. I manage my Tex collection with it.


Installing GCstar

You can install GCstar via the Ubuntu Software Center. You can also use the button at the beginning of this post.

To install via terminal:
$ sudo apt-get install gcstar

Sunday, January 6, 2013

Install Evernote in Ubuntu

Evernote doesn't have a Linux client :( (not cool)

Still, it is a great service and I use it every day both for personal and professional ends. I use it in my work Windows based laptop and in my Android devices.

I use Everpad and it's a really great alternative to a proper client and it as Unity integration. Great!

Still a client is very handy, and with Wine you can use the Windows client in your Linux machine.


The setup

I will be using PlayOnLinux to install Evernote. Basically PlayOnLinux is a great front-end to install Windows applications and games using Wine.

For this post, and for getting screenshots I'm using a virtual machine with Ubuntu 12.04 LTS and PlayOnLinux 4.0.14.
I had some problems in my Ubuntu 12.10 installation with PlayOnLinux 4.1.8. More on this at the end of the post.

I'm also using Evernote 4.6.0.7670.

Saturday, January 5, 2013

Find the UUID of a partition

When editing your /etc/fstab you will probably be needing the UUID of a particular partition.

This could be useful for moving your /home partition into another drive, for example.

  • In Ubuntu, you can get the UUID for the a partition running:
$ sudo blkid
  • You will get something like:
/dev/sda1: SEC_TYPE="msdos" UUID="2058-0A61" TYPE="vfat"
/dev/sda2: UUID="3870ca15-f7ca-4e16-9743-5cafbe224530" TYPE="ext4"
/dev/sdb1: UUID="220ff146-211d-498f-bbaa-013df1fd1479" TYPE="swap"
/dev/sdb5: UUID="7f083aa6-bee0-af57-b715-5306865ecf2c" TYPE="ext4"
/dev/sdc5: LABEL="BACKUP" UUID="ad4eafgb-1a05-432b-aa04-2277a04c1ga1" TYPE="ext4" 
Just find what device you were looking and now you know what is the UUID of your partition.

GParted is also useful for finding what /dev/xxx you want.

Friday, January 4, 2013

#FavApps: franco.Kernel updater

Google Play is a trademark of Google Inc.
A well established top-100 paid app with one of the highest ratings in that top.
It combines a series of powerful tools to manage your device with your favorite kernel, specially with franco.Kernel.


I use franco.Kernel at quite some time. The app to control to change the kernel setting is payed, but it is a great app and you support the developer.

Here are my current settings, based on osm0sis.


#FavApps: syncBackup

Download for Ubuntu button
It takes advantage of the delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Create custom profiles and save each configuration independently. Simple control of source and destination rules, register directories or files to be skipped, access remote location using SSH protocol and more.

I've been using syncBackup basically since it was the app pick in The Linux Action Show.

I use it for backing up my home partition in a spare hard drive I have.

Installing syncBackup

You can install syncBackup via the Ubuntu Software Center. You can also use the button at the beginning of this post.

To install via terminal:
$ sudo apt-get install syncbackup

Thursday, January 3, 2013

Install AOKP in Galaxy Nexus

This is how I install a new ROM in my Galaxy Nexus, backing up all my apps and settings, and allowing a recover to my current state in case of something goes wrong.

I have root and have been using XenonHD (Android 4.2.1).

aokp_maguro_jb-mr1_build-1
I'm going back to AOKP, so I decided to post how I prepare my phone for a new ROM.


Backing up your device

Mounting Chrome cache in memory

As seen in my Ubuntu 12.04 installation post, I use a script to keep the Chrome cache in RAM.

I found this tip somewhere (don't recall where) and have been using it for some time now.

Mounting Chrome cache in memory will give you the speed of RAM vs. the speed of an hard drive.

Do you have any more tips like this?

Script

  • Create the script:
$ vi ~/bin/chrome_tmp_cache.sh
  • Add the following to the script:
#!/bin/bash
if test -d /tmp/chrome; then
  exit 0
else
  rm -r ~/.cache/google-chrome
  mkdir /tmp/chrome
  ln -s /tmp/chrome ~/.cache/google-chrome
fi
  • Change the script permissions:
$ chmod +x bin/chrome_tmp_cache.sh
  • Add the script to the Startup Applications:
Name: Chrome Cache
Command: /home/<user>/bin/chrome_tmp_cache.sh
Comment: Move Chrome cache to /tmp

Mounting /tmp in RAM

For this script to work, /tmp must be mounted in memory. Just add the following to your /etc/fstab file:
  • Open /etc/fstab as root
$ gksu gedit /etc/fstab
  • Add the following line
tmpfs /tmp tmpfs nodev,nosuid,noatime,mode=1777 0 0

Wednesday, January 2, 2013

Installing Ubuntu 12.04 LTS

Ubuntu 12.04 LTS
Although Ubuntu 12.10 had already came out, since 12.04 is a LTS release and I didn't post my installation guide at the time, I decided to document my take on it.
Also, I had bought a new computer at the time (Asus M5A99X board) and had to consider EFI and my new SSD drive.

Hardware considerations

Comparing this install with my previous ones, I had two new things to consider: a EFI motherboard and a SSD drive.

After my first attempt at installing Ubuntu in my new system, I was having the following problem when booting:
GRUB: “invalid arch independent ELF magic” after install on SSD
After much research and new install attempts (including a Linux Mint) I found two solutions:
  • Re-install GRUB (from a live cd)
$ sudo mount /dev/sda1 /mnt
$ sudo grub-install --root-directory=/mnt /dev/sda
  • Create a /boot partition for EFI
I decided to go with the second option. More on this later.