Archives For jimingkui

Want to draw PCB, Perfboard or Stripboard layouts on your Ubuntu or Linux Mint machine? Well, there is a free, open source application called DIY Layout Creator which works on Linux, Windows, and Mac OS X.

DIY Layout Creator (DIYLC in short) is freeware drawing tool developed with help of a large online community of DIY electronics enthusiasts.

The goal is to provide a simple interface and enough power to let the user draw schematics, board/chassis layouts and guitar wiring diagrams quickly and without a steep learning curve. Also, it is build around the flexible open source framework that may be used to draw pretty much anything.

Below is a sample board layout drawn in DIYLC3 (Click to enlarge).

diy layout creator sample

Features:

  • platform independence, will run on any machine having Java JRE/JDK 1.6.0_10 or newer
  • easy to use interface, most of the operations can be done using mouse
  • draws schematics, board layouts and chassis layouts
  • high flexibility, has the API to allow plug-ins and new components to be added without much trouble
  • improved performance and reduced memory consumption compared to the previous versions
  • save default values for each property of a component individually
  • group components together and treat them as one, e.g. move, edit or delete
  • export the output to image, PDF or printer
  • export PCB trace mask suitable for toner transfer
  • create a Bill of Materials as a part of the project or export it to few different file formats
  • zoom in/out feature
  • configurable grid spacing on the project level
  • auto update checks for new versions
  • import files created with older versions of the application
  • create and load project templates
  • [pending] integration with online project library, sharing your drawings with ease

Install DIY Layout Creator in Ubuntu:

We can easily install DIYLC in Ubuntu 14.04, Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04, Linux Mint from its repository.

To get started, press Ctrl+Alt+T on keyboard to open terminal. When it open, copy and paste the code below and run to add the repository:

sudo sh -c 'echo "deb http://www.diy-fever.com/diylc_repository binary/">/etc/apt/sources.list.d/diylc.list'

Then you can install the app after checking for updates. To do so, run:

sudo apt-get update; sudo apt-get install diylc

Once installed, open it from Unity Dash or Menu.

DIY Layout Creator Main window

The free and reliable P2P bittorrent client qBittorrent released 3.1.3 with speed improvements, new key shortcut, and more bug fixes. This tutorial shows how to upgrade in Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04. and Linux Mint.

Changes in qBittorrent 3.1.3:

  • Add a key shortcut to “Add link to torrent…”
  • Make all columns and headers use the same text alignment in the transferlist.
  • Fix build system for Unix/Linux.
  • Case insensitive sort in Peers list. Closes #1066.
  • Small optimization of WebUI responses when there isn’t a data payload.
  • Hide empty folders after filtering. Closes #74.
  • Expand folders when filtering files. Closes #1076.
  • Updated search plugin’s URL
  • Strip some png to fix incorrect sRGB profiles.
  • Fixed font issues on OSX Mavericks
  • Improve text in the About dialog
  • Always show a peer IP address as a tool tip
  • Fix inhibit system functionality. Closes #766.
  • WebUI: Don’t gzip too small payloads.
  • Correctly detect if the browser supports gzip compression.
  • Fix WebUI link to ‘Anonymous mode’ explanation. Closes #1093.
  • Correctly update tracker tier number in the trackers tab. Closes #1075.
  • Speed improvements.
  • Updated translations.

To get started upgrading process, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command below to add the qBittorrent PPA:

sudo add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable

NOTE: I found that the PPA failed to build the packages for Ubuntu 13.10 Saucy. It may be fixed soon, check out at the launchpad page.

After added the PPA, check for updates and install or upgrade qBittorrent from Ubuntu Software Center. Or run below commands instead:

sudo apt-get update; sudo apt-get install -y qbittorrent

The latest Linux Kernel LTS 3.10.20 has been released recently. All users of the 3.10 kernel series must upgrade. This tutorial shows how to upgrade it in Ubuntu 13.04, Ubuntu 12.04, and Linux Mint.

Kernel 3.10.20 LTS contains mostly USB, AlSA, Network fixes and drivers updates. For details, read the official announcement.

Install / Upgrade kernel 3.10.20

First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below one by one to Download the DEBs from kernel.ubuntu.com/~kernel-ppa:

For 32 bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.20-saucy/linux-headers-3.10.20-031020-generic_3.10.20-031020.201311201536_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.20-saucy/linux-headers-3.10.20-031020_3.10.20-031020.201311201536_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.20-saucy/linux-image-3.10.20-031020-generic_3.10.20-031020.201311201536_i386.deb

For 64 bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.20-saucy/linux-headers-3.10.20-031020-generic_3.10.20-031020.201311201536_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.20-saucy/linux-headers-3.10.20-031020_3.10.20-031020.201311201536_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.20-saucy/linux-image-3.10.20-031020-generic_3.10.20-031020.201311201536_amd64.deb

After that, install them via:

sudo dpkg -i linux-headers-3.10.20-*.deb linux-image-3.10.20-*.deb

Restart your computer and done.

If for some reason this kernel does not work properly, boot into previous kernel and run command to remove Linux Kernel 3.10.20:

sudo apt-get purge linux-headers-3.10.20-* linux-image-3.10.20-*

Are you running Kernel 3.11 series on Ubuntu? Well, the latest Linux Kernel 3.11.9 has released and you may upgrade this kernel in Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04, Linux Mint by following this tutorial.

Linux Kernel 3.11.9 brings lots of driver updates (USB, wireless, etc), as well as ALSA fix, USB fix, and ipv6 network fix. For more details, see the official announcement.

Install / Upgrade Kernel 3.11.9

The DEB packages for Ubuntu and its diratives has made into Ubuntu kernel download page. Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below one by one to download and install them.

1. Download the DEBs:

For 32 bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.9-saucy/linux-headers-3.11.9-031109-generic_3.11.9-031109.201311201635_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.9-saucy/linux-headers-3.11.9-031109_3.11.9-031109.201311201635_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.9-saucy/linux-image-3.11.9-031109-generic_3.11.9-031109.201311201635_i386.deb

For 64 bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.9-saucy/linux-headers-3.11.9-031109-generic_3.11.9-031109.201311201635_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.9-saucy/linux-headers-3.11.9-031109_3.11.9-031109.201311201635_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.11.9-saucy/linux-image-3.11.9-031109-generic_3.11.9-031109.201311201635_amd64.deb

2. Install this Kernel:

sudo dpkg -i linux-headers-3.11.9-*.deb linux-image-3.11.9-*.deb

Once done, restart your computer.

If for some reason this new kernel does not work properly. Boot into the previous kernel and run command below to remove Linux Kernel 3.11.9:

sudo apt-get purge linux-headers-3.11.9-* linux-image-3.11.9-*

Kernel 3.11.9 DEBs can be also downloaded at kernel.ubuntu.com

The latest Linux Kernel 3.12.1 has been released recently. If you’re using Kernel 3.12 series, here’s how to install or upgrade it in Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04, Linux Mint and their derivatives.

Linux kernel 3.12.1 is a small release that contains mostly updated drivers (networking, USB and video), as well as an ALSA fix, and a few networking fixes for IPv4 and IPv6. In numbers, Linux kernel 3.12.1 changes 22 files, with 135 insertions and 50 deletions.

For details of this kernel release, see the official announcement.

Install / Upgrade Kernel 3.12.1:

The Ubuntu Kernel team has made the DEB packages for this kernel. We can download & install them by running commands (Ctrl+Alt+T) below one by one:

1. Download the Kernel DEBs:

For 32 bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.1-trusty/linux-headers-3.12.1-031201-generic_3.12.1-031201.201311201654_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.1-trusty/linux-headers-3.12.1-031201_3.12.1-031201.201311201654_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.1-trusty/linux-image-3.12.1-031201-generic_3.12.1-031201.201311201654_i386.deb

For 64 bit system:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.1-trusty/linux-headers-3.12.1-031201-generic_3.12.1-031201.201311201654_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.1-trusty/linux-headers-3.12.1-031201_3.12.1-031201.201311201654_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.1-trusty/linux-image-3.12.1-031201-generic_3.12.1-031201.201311201654_amd64.deb

2. Install the kernel DEB:

sudo dpkg -i linux-headers-3.12.1-*.deb linux-image-3.12.1-*.deb

Once done, restart your computer.

If for some reason this kernel does not work properly for you. Reboot and select to boot with previous kernel from Grub boot loader (Advance). Then remove Linux Kernel 3.12.1 via:

sudo apt-get purge linux-headers-3.12.1-* linux-image-3.12.1-*

The Whisker Menu for Xfce recently released version 1.2.1 with bug fixes and improvements.

As you may know, Whisker Menu is an alternate application launcher for Xfce. With it, you can browser, search, and marked as favorites through all of your installed applications. Changes in version 1.2.1:

  • Fix incorrect comparison for checking icon sizes
  • Add window title to allow identifying menu window
  • Add tips to README for popup script and compiz workaround
  • Improve build system files
  • Translation updates: Asturian, Catalan, Chinese (Taiwan), Czech, German, Estonian, French, Hungarian, Indonesian, Persian, Russian, Spanish, Turkish

whisker menu in Ubuntu 13.10 Xfce4

For Ubuntu 14.04, Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04, Linux Mint and their derivatives you can easily install or upgrade to this release by running commands below one by one in terminal (Ctrl+Alt+T):

sudo add-apt-repository ppa:gottcode/gcppa

sudo apt-get update

sudo apt-get install xfce4-whiskermenu-plugin

For Arch Linux, OpenSUSE, Debian, Fedora, and other Linux, get the Whisker Menu from its website

Shotwell 0.15.1 has been released recently with important bug fixes. Here are the details and how to install or upgrade it in Ubuntu 13.04, Ubuntu 12.10, Linux Mint 15, 14.

Shotwell 0.15.1 fixes:

  • Install Tumblr plugin resources (Tumblr plugin failed to work without them)
  • Fix crash when video thumbnails are being inspected and created

Yorba strongly recommends all users upgrade to this release.

For Ubuntu 13.04 Raring, Ubuntu 12.10 Quantal and their derivatives, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below one by one to upgrade from Yorba PPA:

sudo add-apt-repository -y ppa:yorba/ppa

sudo apt-get update

sudo apt-get install -y shotwell

The tarball for Shotwell 0.15.1 is available at github page.

For Ubuntu 13.10 Saucy, due to the dependencies has updated to libgphoto2-6 while the Shotwell required version libgphoto2-2. Yorba team wrote in the announcement:

We hope that a version for Saucy will be available soon in Ubuntu’s repositories.

shotwell 0.15.1 in pear os 8

How to Convert VCD to mp3 in Ubuntu Linux

Last updated: November 20, 2013

This simple tutorial shows how to rip your Video CD to mp3 in Ubuntu, it also works on other Linux include Debian, OpenSUSE, Fedora.

Here I use the K3b burning tool to rip VCD to video files and SoundConverter to convert video files to mp3 files.

1. Rip Video CD to mpeg videos

First install K3b CD/DVD burning tool which is available in most Linux distributions. For Ubuntu, install K3b from Ubuntu Software Center.

Insert your VCD and then open K3b, double click on the Video CD listed in the burning tool and click Start Ripping

ripping VCD to mpeg in Ubuntu

Once done, you’ll see video files in the target folder:

mpg videos from VCD

2. Convert mpeg to mp3

Install SoundConverter, which is available in Debian repository. For Ubuntu and its derivatives, we can install SoundConverter from getdeb repository, see this tutorial for details.

Once installed, start the app and click on Add file button. Press Ctrl+A to select all videos and click Open to add them.

Click Preferences to choose the result folder and result format, quality, etc.

Finally click on Convert to start the process:

When done, you’ll see all music files in result folder:

SuperTuxKart is a Free 3D kart racing game with many tracks and characters. The latest SuperTuxKart 0.8.1 RC1 has been released and here are the new features and how to install it in Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04 and Linux Mint.

What’s New in SuperTuxKart 0.8.1 RC1:

  • A new track called the “STK Enterprise” has been added;
  • The tracks “The Old Mines,” “Lighthouse,” and “Zen Garden” have been updated;
  • A new Soccer mode has been added;
  • A new Egg Hunt mode has been added;
  • Two new karts, Xue and Sara, have been implemented.

SuperTuxKart 0.8.1 new karts

SuperTuxKart 0.8.1 egg hunt

SuperTuxKart 0.8.1 Ubuntu 13.10

Download & Install SuperTuxKart 0.8.1:

1. Download the package from sourceforge page. Choose to download:

supertuxkart-0.8.1-rc1-linux-glibc2.7-i386.tar.bz2 for 32 bit system and supertuxkart-0.8.1-rc1-linux-glibc2.11-x86-64.tar.bz2 for 64 bit system

2. Uncompress the packages in Nautilus file browser by right-clicking on the package and select ‘Extract Here’.

3. Rename the result folder name to SuperTuxKart. You can move this folder to /opt/ for global use.

4. Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands below one by one to create a launcher for SuperTuxKart:

sudo apt-get install gnome-panel --no-install-recommends

sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

in pop up window, type:

  • Name: SuperTuxKart-portable
  • Command: /home/YOURUSERNAME/Downloads/SuperTuxKart/bin/supertuxkart ### The path to extracted folder executabe file
  • Icon: choose from /home/YOURUSERNAME/Downloads/SuperTuxKart/data/ folder.

Once done, you can launcher the game from Unity Dash.

As you may know, DraftSight is a professional-grade 2D CAD software, it lets users create, edit and view .dwg and AutoCAD DXF files.

DraftSight website only provides 32 bit version installer for Ubuntu users and this quick tutorial show how to easily install it on 64 bit Ubuntu 13.10 (Also works on Ubuntu 14.04, Ubuntu 13.04, Ubuntu 12.04).

Tutorial Objectives:

  • Install DraftSight CAD on 64 bit Ubuntu
  • Enjoy!

To get started, frist install Gdebi from Ubuntu Software Center. Gdebi is a lightweight DEB package installer which was the default in Ubuntu, it will automatically resolve and install the package dependencies.

Gdebi DEB installer in Ubuntu

Download the DraftSight from its webpage or from the official link below:

Download DraftSight

Right click on the package and select to “open with Gdebi package installer”.

Click Install Package button. Once done, you can open DraftSight from Unity Dash. Enjoy!

UPDATE: Thanks to Quazaban and isabag, press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the command below if your DraftSight CAD does not work after this tutorial.

sudo apt-get install libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libglu1-mesa:i386