Monday, May 27, 2013

Realy good linux reading

http://www.thegeekstuff.com/2010/11/50-linux-commands/
http://www.thegeekstuff.com/2010/12/50-unix-linux-sysadmin-tutorials/
http://www.thegeekstuff.com/2011/12/linux-performance-monitoring-tools/

htop - linux process viewer

htop

A terminal based real time process viewer. Better than the basic linux top command.

To install:

$  sudo apt-get install htop

To run:

$ htop

Read More:

http://www.thegeekstuff.com/2011/09/linux-htop-examples/

http://www.howtogeek.com/howto/ubuntu/using-htop-to-monitor-system-processes-on-linux/





Terminator - Terminal Emulator

Terminator is a very flexible terminal emulator for linux.

Installation of latest version: (taken from here)

$ sudo add-apt-repository ppa:gnome-terminator
$ sudo apt-get update
$ sudo apt-get install terminator

Note: by adding in the gnome-terminator repository (above) you will ensure you get the latest version.

Read more:


Thanks to Kuldeep for the pointer to this tool!


Sunday, May 26, 2013

Meld - a graphical DIFF tool

How to install Meld

$ sudo apt-get update
$ sudo apt-get install meld

Stay tuned for how to configure Meld in Pycharm

Using Bitbucket with Pycharm

Pycharm (the python IDE) has built in support for Github. That's nice as I want to use git for source code management. Codeschool by the way has a nice free git intro course in their electives area. Enough to get one going with git.

The free Github plan however is restrictive compared to Bitbucket's free plan.

Github: no private repos, limited to just yourself.
Bitbucket: unlimited private repos, up to 5 team members

So how does one configure Pycharm to use Bitbucket?

  1. Create a free bitbucket account
  2. Launch Pycharm and go to Settings->Plugins
  3. Click on Browse Repositories
  4. Enter Bitbucket into the search field
  5. Highlight the Bitbucket pluging and click on the "dowload & install" icon
  6. Close all windows and re-start Pycharm (required after a plug-in installation)
  7. Relauch Pycharm
  8. Return to settings and select the new Bitbucket option in the IDE section
  9. Enter Bitbucket userID and password.
  10. Click on Add SSH Key button and navigate to the SSH key you used for Bitbucket




Friday, May 17, 2013

How to install Software on Linux Mint

Read this:
http://forums.linuxmint.com/viewtopic.php?f=90&t=97158

Carefully follow the advice for : checkinstall

$ sudo apt-get install checkinstall

and then use it when building packages from source code.

https://help.ubuntu.com/community/CheckInstall

Linux Mint Update Manager no longer runs

Update Manager asks for SU passwork but fails to run when launched from the start menu. $ sudo mintupdate results in the following: (gksudo:5105): GConf-CRITICAL **: gconf_value_free: assertion `value != NULL' failed No module named gtk No module named pygtk Traceback (most recent call last): File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 59, in gettext.install("mintupdate", "/usr/share/linuxmint/locale") NameError: name 'gettext' is not defined Is the resent installation of Python 2.7.4 to blame? 2.7.4 is in /usr/local/bin and is the default to current user. /usr/bin/python is the old 2.7.3 $ python Python 2.7.4 (default, May 15 2013, 21:25:05) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Traceback (most recent call last): File "", line 1, in ImportError: No module named gtk >>> import pygtk Traceback (most recent call last): File "", line 1, in ImportError: No module named pygtk >>> $ /usr/bin/python Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> import pygtk >>>


mucking with python (adding a newer version into /usr/local/bin) broke mintupdate as it requires a python with pygtk access. I will update this posting once that is resolved......