Google Ads

Linux and Software: News, Reviews, Tutorials

Showing posts with label Kubuntu. Show all posts
Showing posts with label Kubuntu. Show all posts

April 12, 2015

Do Programming on Ubuntu/Kubuntu Linux

Programming on Linux

Linux in general is great development platform where the operating system's kernel itself is free and Open Source. So there is virtually no limit of what you want to do with your Linux computer. Kubuntu, Ubuntu and Gnome Ubuntu are all great Linux Desktop distributions with bleeding edge desktops and touch pad user interfaces. You pick your Linux distribution flavor and start working on your projects in no time. All Ubuntu variant distributions have common package names for development and application support.

Programming Language support

Ubuntu Linux by default comes with GNU Compiler Collection and you will find almost all of the software build for the system uses GNU Compiler Collection (GCC). With GCC you can program for C, C++, Objective-C, Objective-C++, Fortran, Java, Ada, Go and many other programming languages. One good thing about GCC is that it is available for many different operating systems for example Microsoft Windows, Apple Mac OS. Furthermore, GCC is supported on all major CPU architectures.

Programming in C and C++ languages

GCC will give you gcc compiler and g++ compiler for C and C++ source files respectively. Both gcc and g++ compiler support almost all existing C standards for example ANSI C, ISO C, C99 and C11.

Installation of required packages

To get minimal development environment with C and C++ compilers, install the following packages under Ubuntu distributions:
  • build-essential
  • autoconf
  • automake
  • flex
  • bison
  • libtool
  • gcc-multilib
  • g++-multilib

Enter the following in the terminal to install the above packages:

sudo apt-get install build-essential autoconf automake flex bison libtool gcc-multilib g++-multilib

Then, install manual pages which will help you understand function definitions.

Enter in the terminal:

sudo apt-get install manpages-dev manpages-posix

Now, you can start writing your programs in the text editor of your choice and compile your source files easily from the terminal by putting the following command:

For C program:

gcc source_file.c

For C++ program:

g++ source_file.cpp

This will produce executable file named a.out in the current directory.

If you want to read manual of a function just type the following in the terminal:

man name_of_the_function

For example:

man printf

To exit from manual press q keyboard key. Use Up and Down arrow key to navigate through the manual.

If you prefer Integrated Development Environment (IDE) then check out the following IDEs. Here I put my experiences with different IDEs:

Netbeans
Build on Java, solid user interface, recommended for all kind of developments
https://netbeans.org/

Code::Blocks
Uses native user interface, simple and good for experimentation and start-up projects
http://www.codeblocks.org/

Eclipse
Build on Java, Extensible in nature
https://eclipse.org/

KDevelop
Native KDE development environment, good for C++ and QT projects
https://www.kdevelop.org/

Geany
Lightweight native IDE, good for simple projects
http://www.geany.org/

Finally, if you ask me which IDE I would prefer, I would definitely say Netbeans :)

Cheers!
Imam

January 8, 2015

Enrich your Kubuntu 14.10 desktop with plasma widgets

Introduction

Kubuntu operating system uses KDE desktop environment for it's default desktop shell. There are many things you can do with your KDE desktop environment. One of the cool feature of KDE is it's Plasma widgets. Moreover, KDE desktop shell is just a combination of different Plasma widgets and panels. For example, your main application launcher Kickoff is one plasma widget, System tray is another plasma widget containing icons for Wi-Fi, battery, volume etc, Task manager is another plasma widget shows the list of currently running applications. You can easily elaborate your KDE desktop shell by adding additional Plasma widgets to your desktops and panels.

To see and add a widget, right click on the desktop and select Add Widgets. This will bring up widget collection interface where can search for a particular widget as well as see widgets that are currently running on the desktop.


To add a widget to the desktop just drag the particular widget and drop it in the desktop. If you double click on any widget it will be added to the current panel.

KDE widget collection interface

Widgets are adjustable to your needs. If you place your mouse pointer over the widgets then it will bring up a control bar from where you can resize, rotate and change settings of the widgets.

Here is a selection of exciting Plasma widgets for your desktop to try out:

Folder (Installed by default)


As the name suggests, this widget will show the contents of a particular folder right on your desktop. One cool feature of this widget is, it will let you dig into different sub-folders easily just by hovering over them.


Notes (Installed by default)

This is the desktop sticky notes you have been waiting for long time!. It has all the bells and whistles you expect from a general purpose text editor including spell checking. If you constantly take notes while you are working then you will find this widget very helpful.


Analog Clock (Installed by default)

This one handy full featured clock will let you chose different Calender systems from around the world as well as different Time Zones of your interest. Once setup, you can easily see the time from different Time Zones just by scrolling your mouse over the widget.


yaWP

You will not be disappointed by this weather widget. This widget is fancy and interactive. It has all the features from an ideal weather widget including option for showing forecast in different units and changing widget theme.


Install yaWP by putting the following command in the terminal:

sudo apt-get install plasma-widget-yawp

Unit Converter (Installed by default)

If you are a person who needs to convert between units regularly then this widget is for you!


SearchMoid

SearchMoid is for searching web right from your desktop. Basically, you type the web address such as www.google.com in SearchMoid and it will open the address in a web browser


Install SearchMoid by putting the following command in the terminal:

sudo apt-get install plasma-widget-searchmoid

Shelf (Installed by default)

This widget will let you open different things such as applications, system devices, system tools, etc of your desktop all from one place. This widget is definitely a must have if you want to increase your desktop productivity.


There are many more useful widgets for your comfort installed by default and easily install-able by putting the following command in the terminal:

sudo apt-get install plasma-widget-*

Cheers!
Imam

December 20, 2014

Use CDEmu CD/DVD device emulator on Linux

Introduction

If you have CD/DVD disk image files such as files with .mds, .cue, .iso extensions then you can use CDEmu daemon from CDEmu suite http://cdemu.sourceforge.net/about/ to mount them on your Linux without burning to physical disks. CDEmu suite is a collection of programs to facilitate virtual optical drive on the Linux operative systems. CDEmu suite provides the following components:
  • VHBA module; a linux kernel module which exposes a virtual SCSI Host bus adapter
  • libMirage; a library which can be used access data stored in different image files
  • CDEmu daemon; a daemon which implements the virtual devices by passing the data between VHBA kernel module and CDEmu client back and forth.
  • CDEmu client; a command line application for controlling CDEmu daemon which can be used to actually perform tasks on the virtual devices such as mounting, unmounting image files as well as checking status of virtual devices.
  • gCDEmu; a graphical version of command line CDEmu client.
We will be using CDEmu client to utilize the CDEmu virtual devices.

Installation on Kubuntu and Ubuntu 14.10 64-bit distribution

Install the following five deb files in order:
Usage on Kubuntu: command line client (use similar approach for Ubuntu)

Mounting image files

I have two image files for two different Linux games: Creatures_3_Internet_Edition.iso and majesty.iso

Now I am going to mount them in two different virtual devices

Steps:

Navigate to the folder containing the iso files


Open a terminal in the current folder by pressing keyboard Shift and F4 keys together.

To mount majesty.iso, enter:

cdemu load 0 majesty.iso

On the terminal and press enter. This will load majesty.iso on the first virtual device and you can navigate to the mounted device by clicking on the Majesty_Linux just showed up on the Places panel.


Now, to mount Creatures_3_Internet_Edition.iso, put the following command first:

cdemu add-device

This will create one more virtual device. Now, just put the same command as with mounting majesty.iso but with different load number, type:

cdemu load 1 Creatures_3_Internet_Edition.iso

The number followed by load parameter indicates the virtual device you are going to use for mounting purposes. Now, you should see both devices showed up on the file manager's device panel.


And finally you can check the virtual devices status by putting the following command:

cdemu status

Unmounting image files

To unmount the iso files just put the following commands:

cdemu unload 0
cdemu unload 1

You can know more usage of cdemu command by putting the following command in the terminal:

man cdemu

Scroll the manual window using Up and Down arrow keys and press q to exit from the manual. Type exit and press enter in the terminal to close the terminal window.


Usage of Graphical client (gCDEmu)

Follow the similar procedure for the graphical client.

Find and run gCDEmu from the application launcher; Kickoff->Applications->System->gCDEmu


Right click on the on the System Tray gCDEmu icon and click New device from the pop-up menu.


And now select Device #00 from the pop-up menu and this will give Device properties dialog window.


From the Status tab click Load button and select your image from the file browser.

Now check the file manager for image loaded device to mount and browse it. Use device properties dialog to unload and remove devices.

Cheers!
Imam

November 30, 2014

Install Kubuntu Linux

Introduction

Kubuntu is a complete general purpose operating system for personal computers and corporate systems. Kubuntu is a Linux based operating system with Debian and Ubuntu specific package management system and distribution architecture. Kubuntu is suitable for you if you want to try out Linux, want a complete desktop user interface, want to play Linux games, want to use Linux for general purpose computing. Kubuntu desktop interface is based on famous KDE desktop environment.

Features

Kubuntu comes with it's own software store Muon Discover, which features a slick method for installing available online repositories software. You can also easily remove existing programs by just going Installed near the top of the program.

Muon Discover

Kubuntu desktop has an easy to use main menu Kickoff for launching your favorite applications and programs. One can easily search for an application in the search box. And finding, new installed application is a breeze by going Applications->Recently Installed.

Kickoff represented by a K over a gear icon

Kickoff when opened

Kubuntu desktop can be fully configured to your needs from the System Settings window, which can be found under Kickoff->Computer->System Settings.

System Settings window

Kubuntu's powerful Dragon Player will play all of your multimedia files easily.

Dragon Player

Download and Installation

Just head over to http://www.kubuntu.org/ to download the operating system iso file. You may download 32-bit or 64-bit file depending on your system and then burn the iso file on a DVD and then boot your computer from the DVD and then install Kubuntu by following the online instructions.

First Boot

After you finished installation of Kubuntu and boot your computer into Kubuntu, the first thing you should do getting the Internet connection on the Kubuntu. Because, the system as with it's default state does not come with enough software installed to run all different files and programs. So, you need working Internet connection for downloading all necessary additional packages to the system. To make life easier I have created a package which will install all the necessary files and also configure the system with necessary permissions. Just download the package from the following link

SConfiguration1410.tar.gz

This package is designed for just installed Kubuntu 14.10 system with Internet connection.
But you can also use this package if you want to make sure everything is installed.

After downloading the package, extract the package by right clicking on the file->Extract->Extract Archive Here, Autodetect Subfolder. This will create a SConfiguration folder. Into the SConfiguration folder just follow the instructions from ReadMe.txt file to start the setup. If everything went well you should see the following message.


Now, you have a fully working Kubuntu 14.10 system!

Cheers,
Imam

November 21, 2014

How to install programs under Kubuntu/Ubuntu Linux from binary setup file

Some software from different vendors target different Linux Distribution, Linux distributions such as Ubuntu, Fedora, Suse, Arch Linux and so forth. To make their software compatible among all the different Linux distributions, software vendors distribute their software in Binary file form.

Binary files are files which can be executed without any particular package managers provided by different Linux Distributions, so that the same binary file can be used for installing software on many distributions. A majority of the games software on Linux come in binary form. To install software from vendor provided binary file, one has to first get the file from the Internet or some other sources. After then, one has to make the file executable (files can be opened by some other programs or files can be run by itself). Making a file executable makes it to be able to run by itself. And finally by opening the file the particular software that come with the file can be installed by following on screen instructions.

In some cases, the binary files are designed for running from the terminal environment (command line) instead of running graphically. In that case, one has to open a terminal and run the file from the terminal. Any files can be run from terminal by putting ./ followed by the file name in the terminal. For example, ./binary [Press Enter key]. Here . means current folder and / is folder separator. In the terminal you will have to navigate to binary file folder by using cd command. For example, if the file is in Download folder, you would put cd Download [Press Enter key].

Sometimes, the binary file may need access to system folders. In this case, you have to use sudo command to give access. For example, sudo ./binary [Press Enter key].

Now let's go through an example in Kubuntu 14.10 Linux,

Open up Firefox web browser:


Kickoff -> Applications -> Firefox web browser

Download Ayam (A free 3D modelling software):

 

http://sourceforge.net/projects/ayam/files/Ayam/1.20/ ->

Download Ayam-1.20-Linux-x86-Install into Home or Download folder

Open Home folder (suppose I have download the file in home folder)


Kickoff -> Computer -> Home

Make the file executable

 

Right click on the Ayam-1.20-Linux-x86-Install -> Properties


Click on the Permissions tab


Check the Is executable -> click on the OK button to exit

Now, you can just open the file normally to run the program.

Now, lets run the file from terminal

Open up terminal application


Kickoff -> Applications -> System -> Konsole

Run the program (suppose the file in Home folder)

 

Type: ./Ayam-1.20-Linux-x86-Install and punch ENTER key

Now, you can try other applications if you want to :)

Cheers,
Imam


How to install programs in Kubuntu via deb file

There are several ways one can install software under Ubuntu Linux operating systems. Ubuntu has a built-in package (software) management system where one has to get the package file from the Internet or any other sources and then upon opening the package file with the package manager software, the particular package (software) will be installed.

These package files are known as deb file since they have a .deb file name extension to them. For example, to install Google Chrome web browser under Ubuntu, one would go to https://www.google.com/chrome/browser/ and download the deb file. After downloading the file completely, one just opens the file by double clicking on the file and the file will be opened by the default Ubuntu package manager to install. Afterwards, one just follows the on screen instructions from the package manager to install the software.

For example for installing Google Chrome under Kubuntu (Kubuntu is a Ubuntu variant with KDE plasma desktop environment) , simply follow the following steps:

Open up Firefox web browser

\

Kickoff -> Applications -> Firefox web browser

Download Chrome Deb file

 

https://www.google.com/chrome/browser/ ->

Accept and Install -> Save in the download or Home folder

Open Home folder (suppose I have download deb file in home folder)


Kickoff -> Computer -> Home

Open Chrome deb file

 

Find google-chrome-stable_current_amd64.deb in Home folder and open it

Install Chrome


Click Install Packages -> Make sure you have Internet connection for downloading dependency packages.

Run Chrome


Kickoff -> Applications -> Internet -> Google Chrome

Now, there you have it!

Cheers,
Imam