Fixing Chrubuntu C7 touchpad

The C7 Chromebook is awesome! Except for the fact that it’s touchpad isn’t that responsive.

That’s because of it’s low sensitivity set on Synaptics.

To solve that a few actions must be taken:

# vim /usr/share/X11/xorg.conf.d/50-synaptics.conf

Look for the line MatchDevicePath “/dev/input/event*”

And add this after

Option   “FingerHigh”    “10”
Option   “FingerLow”     “5”
Option   “HorizHysteresis” “12”
Option   “VertHysteresis” “12”

Then reboot!

Source: http://www.instructables.com/id/Fix-Chrubuntu-C7-Touchpad/

Bash Killer Shortcuts

Command editing shortcuts.

  •  Ctrl + a – go to the start of the command line
  • Ctrl + e – go to the end of the command line
  • Ctrl + k – delete from cursor to the end of the command line
  • Ctrl + u – delete from cursor to the start of the command line
  • Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
  • Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
  • Ctrl + xx – move between start of command line and current cursor position (and back again)

Command editing shortcuts.

  • Ctrl + l – clear the screen
  • Ctrl + s – stops the output to the screen (for long running verbose command)
  • Ctrl + q – allow output to the screen (if previously stopped using command above)
  • Ctrl + c – terminate the command
  • Ctrl + z – suspend/stop the command
  • Ctrl + x + e – Edit current command on your prefered editor.

Source: http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/

Ubuntu DNS Issue

Sometimes you end up having some trouble with ubuntu’s dns even if you actually edit properly /etc/resolv.conf.

That’s because resolvconf actually writes the file on /run/resolvconf/resolv.conf.

As a solution here’s what you can do:

$ sudo dpkg-reconfigure resolvconf

or

$ mv /etc/resolv.conf /run/resolvconf/resolv.conf

$ ln -s /run/resolvconf/resolv.conf /etc/resolv.conf

Source: http://askubuntu.com/questions/368435/how-do-i-fix-dns-resolving-which-doesnt-work-after-upgrading-to-ubuntu-13-10-s#comment471817_368935

Solve screen error – “Cannot open your terminal ‘/dev/pts/\d+’ – please check”

Sometimes when you are trying to open a screen you might face the following error message:

Cannot open your terminal ‘/dev/pts/\d+’ – please check

There are 2 options to solve this:

  • Sign out and properly connect / sign in as the user you wish to use.
  • Run script /dev/null to own the shell (more info over at Server Fault); then try screen again.

Source:  http://makandracards.com/makandra/2533-solve-screen-error-cannot-open-your-terminal-dev-pts-0-please-check.

Rocks Commands

Adding new packages:

Copy the new .rpm to your rocks’ RPMS directory.

In my case: /export/rocks/install/contrib/5.4.3/x86_64/RPMS/

Go to this directory /export/rocks/install/ and execute the following command hence you can only do it from there:

$ rocks create distro

Then go to any node and run the commands below:

$ yum clean metadata

$ yum install <your package>

To be continued…