Archives For jimingkui

Running Ubuntu on Apple MacBook / MacBook Pro computers?

Well, you may already know that there’s a fan control daemon which reads the temperature sensors in an Apple Macbook (or Macbook Pro) computer and throttles the fans accordingly to keep the temperature within configurable limits.

I don’t have an Apple MacBook. But I think this daemon will work good on Ubuntu because Ubuntu 14.04 Trusty has made this into its universe repository.

Apple Macbook fan control daemon in Ubuntu

Install macfanctld via PPA:

You can easily get this daemon from the developer’s PPA. So far, it supports Ubuntu 13.04 Raring, Ubuntu 12.10 Quantal, Ubuntu 12.04 Precise, and Ubuntu 10.04 Lucid.

Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run commands below one by one:

sudo add-apt-repository ppa:mactel-support/ppa

sudo apt-get update

sudo apt-get install macfanctld

For Ubuntu 13.10 Saucy, install it from an unofficial repository:

sudo add-apt-repository ppa:detly/mactel-utils

sudo apt-get update

sudo apt-get install macfanctld

For Ubuntu 14.04 Trusty, search for and install macfanctld package in Ubuntu Software Center after checking for updates.

Install Gambas 3.5 via PPA in Ubuntu & Linux Mint

Last updated: January 23, 2015

install latest gambas 3.5 ubuntu

Gambas is a free development environment aims at making a graphical development environment based on a Basic interpreter, so that we have a language as easy as Visual Basic™ under Linux™. Gambas3 is available in Ubuntu Software Center since Ubuntu 12.10 Quantal, but it’s a little old.

The latest Gambas 3.5 was released on October 22 with more than 240 bugfixes and more than 270 new features. See the official release note.

This tutorial show how to install the latest Gambas 3.5.1 in Ubuntu 14.04, Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04 and Linux Mint via PPA.

Install Gambas:

To get started, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below one by one:

For the latest development version, use the daily build PPA (it’s 3.5.99 at the moment):

sudo add-apt-repository ppa:gambas-team/gambas-daily

sudo apt-get update

sudo apt-get install gambas3

For the more stable version which is available in official download page:

sudo add-apt-repository ppa:gambas-team/gambas3

sudo apt-get update

sudo apt-get install gambas3
gambas 3.5.1 in ubuntu 13.10

gambas 3.5.1 in ubuntu 13.10

install speed dreams ubuntu 13.10

Speed Dreams, formerly known as Torcs-NG, is a free and open source 3D racing video game. This tutorial shows you how to install it in Ubuntu 13.10 or Linux Mint 16 Petra

Speed Dreams 2.0 features :

  • visually reworked menus by Brian Gavin, Eckhard M. Jäger, Andrew Sumner and Jean-Philippe Meuret,
  • 3 amazing fine tuned and balanced new car sets by Andrew Sumner and Haruna Say:Super Cars, 36 GP and LS-GT1,
  • an updated TRB1 car set (well balanced, more realistic behaviour),
  • 3 exciting new tracks and many visually improved ones,
  • smashing liveries for all these cars, by Eckhard M. Jaeger and Haruna Say,
  • 2 new TRB first-class robot for the Supercars, 36 GP and TRB1 car sets :USR by Andrew Sumner and Simplix by Wolf-Dieter Beelitz (at last real AI opponents !),
  • animated driver by Andrew Sumner on 36GP cars, 3D wheels for all cars by Eric Espie,
  • 2 new leader-board modes by Gabor Kmetyko, smoke on spinning tires by Andrew Sumner,
  • brand new gauges by Eckhard M. Jaeger, and many many other small visual improvements,
  • experimental Simu V3 physics engine by Christos Dimitrakakis,
  • many menu improvements (support for grid shifting, optimized track select load time,category filter when selecting driver, more infos in results and standings boards),

and much more …

Install Speed Dreams:

The PPA is not available for Ubuntu 13.10 so far. Here I use the Playdeb repository.

1. Press Ctrl+Alt+T on keyboard to open terminal. When it opens run commands below to add the Playdeb repository:

sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu saucy-getdeb games" >> /etc/apt/sources.list'

2. Get the key:

wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -

3. Check for updates and install the game:

sudo apt-get update; sudo apt-get install -y speed-dreams

The installing process will take a few minutes downloading the DEBs.

speed dreams in ubuntu 13.10

speed dreams in ubuntu 13.10

supertux 2 0.3.4

Supertux, a classic 2D jump’n run sidescroller game inspired by Super Mario. It’s been more than 3 years since the last development of Milestone 2.

The new release Supertux 0.3.4 has been made into Ubuntu 14.04 Trusty. It is hard to
say what the most notable changes are, but one thing players should notice is a greater wealth of levels to play through an expanded availability of add-ons. Here’s how to install it via PPA in Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04, Ubuntu 12.10 and Linux Mint.

supertux 2 0.3.4 in Ubuntu 13.10

supertux 2 0.3.4 in Ubuntu 13.10

To get started installing this game, press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run commands below one by one:

sudo add-apt-repository ppa:landronimirc/supertux-git

sudo apt-get update

sudo apt-get install supertux-git

You can also run command below to install the Supertux level editor, but it doesn’t work properly in my case:

sudo apt-get install supertux-editor-git

For old version and Supertux stable, search for and install them in Ubuntu Software Center.

supertux in ubuntu software center

supertux in ubuntu software center

clamtk 5.00, clamav gui

The GUI front-end for ClamAV virus scanner, ClamTk 5.00 has been released today with right-click file manager support. Here are the new features and how to install it in Ubuntu 13.10, 13.04, 12.04, Linux Mint.

What’s New in ClamTk 5.00:

Right-click file manager support uses nautilus-python

clamtk scanner nautilus plugin

clamtk scanner nautilus plugin

Use of Virustotal API; requires perl-JSON and perl-LWP-Protocol-https

Now using Time::Piece instead of Date::Calc. It’s a Perl built-in

Now using Digest::SHA (sha256) instead of Digest::MD5

Built-in documentation (requires yelp), currently English only…

Updated language files: German (de), Bulgarian (bg), Galician (gl), Ukrainian (uk), Russian (ru), English (en_UK), Malay (ms), Hebrew (he), Italian (it), Dutch (nl), Asturian (ast), Uzbek (uz), Chinese (zh_TW), Finnish (fi), Spanish (es), Croatian (hr), Marathi (mr), Chinese (zh_CN), Slovak (sk), Indonesian (id), Latvian (lv), Azerbaijani (az).

Download & Install ClamTk 5.00:

For ClamTk main program:

clamtk_5.00-1_all.deb

For Xfce Thunar plugin:

thunar-sendto-clamtk_0.04-1_all.deb

For KDE Dolphin plugin:

clamtk-kde_0.15-1_all.deb

Once downloaded, click to install them via Ubuntu Software Center. Run command below to fix dependency problem if any:

sudo apt-get -f install

For Fedora, CentOS and source code, download it from google code.

clamtk virus scanner 5.00 in ubuntu 13.10

clamtk virus scanner 5.00 in ubuntu 13.10

Mac OS Exposé-like window picker

Skippy-XD is a program for X which provides Mac OS Exposé-like features. It is a standalone application for providing a window picker with live previews (including live video) on Linux desktops that run an X server with composite support. Thus it is not part of the window manager, and the composite is not being used all the time.

To use Skippy-XD, you need Xfce (xfwm4) or a NetWM compliant window manager (LXDE, Openbox-based window managers, etc.).

This tutorial shows you how to install this task-switcher via PPA in (X)Ubuntu 13.10, (X)Ubuntu 13.04, (X)Ubuntu 12.10, (X)Ubuntu 12.04 and Linux Mint Xfce.

Mac OS X's Exposé windows picker in Ubuntu 13.10 Xfce 4.10

Mac OS X’s Exposé windows picker in Ubuntu 13.10 Xfce 4.10

Install Skippy-XD:

The Skippy-XD code has been released in 2004, and only slightly improved in 2011. Currently Skippy-XD is under (somewhat) active development and the latest GIT code is available in the PPA below.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below one by one to install it from PPA:

sudo add-apt-repository ppa:landronimirc/skippy-xd-daily

sudo apt-get update

sudo apt-get install skippy-xd

Once installed, start the daemon via:

skippy-xd --start-daemon &

And activate the windows picker:

skippy-xd --activate-window-picker

Add Keyboard Shortcuts for Skippy-XD

Typically, it is helpful to set up keyboard shortcuts for skippy-xd. For Xfce4:

1. Go to Settings Manager -> Settings Editor -> xfce4 keyboard shortcuts.

2. Click on New, and type in:

  • Property: /commands/custom/<Alt>1 #You may change <Alt>1 to other key combination.
  • Type: String
  • Value: skippy-xd --activate-window-picker
xfce4 add custom shortcut key

xfce4 add custom shortcut key

Auto start Skippy-XD daemon at login:

Go to Settings Manager -> Session and Startup -> Application Autostart. Click on Add button, type in name and command skippy-xd --start-daemon

capture login screen

This simple tutorial shows you how to capture screenshot of the LightDM / GDM login screen in Ubuntu, Elementary OS, or Pear OS.

Besides installing your system as Virtualbox or Vmware Guest OS, we can follow the steps below to capture and share our login screens.

1. Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run command blow to check out your display manager:

cat /etc/X11/default-display-manager
handbook@handbook-1310:~$ cat /etc/X11/default-display-manager 
/usr/sbin/lightdm

By default:

  • Ubuntu Unity and Elementary OS Luna uses LightDM
  • Pear OS 8 and Ubuntu Gnome uses GDM

2. Check out the value of $DISPLAY:

echo $DISPLAY
handbook@handbook-1310:~$ echo $DISPLAY
:0

3. Now create a simple script

echo 'sleep 20; DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/$DISPLAY xwd -root' > /tmp/shot.sh

You may change:

  • 20 : the seconds of delay.
  • :0 : the value of $DISPLAY. In my Pear OS 8, the value of $DISPLAY changes every login ($DISPLAY=$DISPAY +1).
  • lightdm : the display manager.

4. Press Ctrl+Alt+F1 and log into TTY1.

5. Run command below to start the script:

sudo bash /tmp/shot.sh >/tmp/shot.xwd

6. Return to GUI mode by pressing Ctrl+Alt+F1.

7. Logout by normal way. While you can see login screen, wait for some seconds.

8. Login by normal way. Install imagemagick if you don’t have it installed yet.

sudo apt-get install -y imagemagick

9. Run command below and finally you can check out the image under user Pictures folder.

convert /tmp/shot.xwd ~/Pictures/loginscreen.png

How to Install Pear OS 8 from USB Stick

Last updated: July 25, 2014

install pear os 8 from usb

Pear OS 8, a Linux distribution based on Ubuntu 12.04 Precise and inspired by iOS7 has been released today. It aims to be reliable, efficient and innovative.

It’s hard to run Virtualbox Guest OS on my old laptop, so I installed Pear OS 8 as a quintuple-boot. Now I have Ubuntu 13.10 Saucy, Linux Mint 15 Olivia, Elementary OS Luna, Windows 7 and Pear OS 8.

Tutorial Objectives:

  • Install Pear OS 8 from USB Stick
  • Enjoy!

Preparation:

  • Format your USB Stick (2G+) to FAT32 format without ‘Quick Format’ enabled.
  • Download Pear OS 8 from its official download page

Create bootable Pear OS USB from ISO image

The first step is going to burn the Pear OS iso into USB, so that you can boot up and start the install wizard. There are a few tools can do this job, here I used Unetbootin.

1. Download unetbootin executable from unetbootin.sourceforge.net. For Ubuntu, you can also install it in Ubuntu Software Center.

2. Plug-in your USB stick, then open Unetbootin. Choose Diskimage and browser to select the iso image.

create bootable bear os 8 usb

create bootable bear os 8 usb

3. Click on OK button and wait a few minutes for the burning process.

Install Pear OS 8 from the bootable USB

Insert the USB stick into the target computer. Start the machine and choose to boot up via USB in BIOS. You’ll see a blue background with a few options, choose to boot with ‘Start the installer directly’.

bootable pear os usb

bootable pear os usb

When you’re in the live system, you can totally follow this Ubuntu step by step installation guide to install Pear OS 8 on your machine.

NOTE: If you have Ubuntu based system previously installed as dual or triple boot, you may choose to install boot loader to local partition rather than whole hard disk.

Pear OS 8 Screenshots:

pear os 8 gdm login screen

pear os 8 gdm login screen


pear os 8 app launcher

pear os 8 app launcher


pear os 8 my pear 6 & contacts

pear os 8 my pear 6 & contacts


pear os 8 nautilus file manager 3.4

pear os 8 nautilus file manager 3.4


pear os 8 ppa manager & synapse indicator

pear os 8 ppa manager & synapse indicator

Yarock, a Qt4 Modern Music Player designed to provide an easy and pretty music collection browser based on cover art now reached a new version with new features and improvements. One interesting feature is add support to drag from playqueue to file browser in order to copie music file to folder.

What’s New in Yarock 0.9.64:

  • New : add support for multiset album (grouping or not)
  • New : add support to drag from playqueue to file browser (in order to copie music file to folder)
  • New : add standalone vlc audio engine (without phonon layer)
  • New : add option to choose color scheme
  • BugFix : fix multithreading issue when populating playqueue
  • BugFix : fix cover searcher threadmanager
  • BugFix : fix crash on media item context menu access
  • BugFix : fix lyricsmania extraction rule
  • BugFix : fix echonest artist image download
  • BugFix : fix context view item layout update
  • BugFix : fix seek bar and time label widget spacing
  • Change : reorganise code structure
  • Change : rewrite file dialogs
  • Change : replace navigator bar by a menu icon bar
  • Change : lot of minor ui improvement
  • yarock 0.9.64

    Install Yarock:

    There’s a PPA repository contains yarock packages for Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04 and their derivatives. The new release will be available soon in this PPA.

    To add the PPA, press Ctrl+Alt+T and run command in terminal:

    sudo add-apt-repository ppa:samrog131/ppa

    Then install the player:

    sudo apt-get update; sudo apt-get install yarock

    Yarock source code: launchpad.net/yarock

    qr code google.com

    This tutorial shows you a graphical tool for generating and reading QR codes in Ubuntu Linux. It’s QtQR, a GUI front-end of qrencode made in Python & Qt, which provides a simple and easy to user interface to encode text, url, bookmark, Email, telephone number, phonebook, SMS, MMS, Geolocalization and decode from image file or webcam.

    QtQR QR code generator & reader in Ubuntu 13.10

    QtQR QR code generator & reader in Ubuntu 13.10

    What is QR code?

    A Quick Response code is a two-dimensional pictographic code used for its fast readability and comparatively large storage capacity. The code consists of black modules arranged in a square pattern on a white background. The information encoded can be made up of any kind of data (e.g., binary, alphanumeric, or Kanji symbols)

    Install QtQR

    This simple application is available in Ubuntu universe repository since Ubuntu 12.10. Just search for and install qtqr in Ubuntu Software Center (Works for Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.10, Linux Mint 14/15/16).

    For Ubuntu 12.04, Ubuntu 10.04, Elementary OS Luna, run commands below one by one in terminal (Ctrl+Alt+T) to install this tool from PPA:

    sudo add-apt-repository ppa:qr-tools-developers/qr-tools-stable
    
    sudo apt-get update
    
    sudo apt-get install qtqr