Category Archives: Ubuntu

Kept back packages in apt-get

I faced the following error/message in Ubuntu 14.04 LTS while updating my softwares through apt-get command:

The following packages have been kept back:
libglib2.0-0:i386 libhwloc-plugins
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

After some googling and reading some posts which were either inappropriate or risky/dangerous, I came up with the following solution that works every time and is safe.
Continue reading Kept back packages in apt-get

Run Java applications on Linux

There are still some companies out there that are trying to have a GUI (Graphical User Interface) for their web services specially in scientific society. Most of these application are written in Java and requires user to have a Java enabled machine to run on. All these companies support OSX and Windows but they don’t want to provide support for Linux (for some reason that is not clear for me!). So in this brief tutorial I’m going to answer the question in an easy way:

The question is, how should we run .jlnp file on Linux?
Continue reading Run Java applications on Linux

Remote logout user through SSH

I had an issue with my Ubuntu recently that the computer was not stopping screesaver and didn’t show me the login page after a screenlock. Most people usually try to forcefully shutdown by pressing and holding the power button for about 10 seconds. This is not a good choice specially when you have some services on that machine or having some other users logged in through SSH to that computer.

In this article I will briefly explain how to logout a specific user remotely through SSH without touching or terminating any service or any other user.

Continue reading Remote logout user through SSH

Have spotlight search in KDE

The first few sentences are just my personal experience, so you can skip it and move on to the next part (Starting the configurations).

Some small complains about Ubuntu 14.04 LTS !

I Started using KDE for my Ubuntu system (since Unity was causing lot’s of system crash and reboots). Everything about KDE is OK and smooth, with 32GB RAM and Intel core i7 vPro 3.4GHz 8MB, and I’m having lots of fun working around and it increases my productivity, but I also missed the spotlight search of my MacBook. also KDE does not have good shortcuts for their plasma system and for example you can not use a windows key on your keyboard to open the application launcher! so I tried to find an easy way not to use mouse for opening my application. So here is a way to have spotlight search in KDE:

Start the configuration

Before everything I should say that I’m not going to install any application or write some weird shell, I’m going to sue the KDE settings in few clicks.
So let’s get to business:

Continue reading Have spotlight search in KDE

Install and enable SSH in Ubuntu 14.04

I was setting up a service on a local computer with Ubuntu 14.04 Trusty Tahr OS which I realized there is no SSH server daemon what so ever on Ubuntu, so I thought installation and enabling SSH in Ubuntu 14.04 can be a issue for some beginners, so here is the solution:

First you should install the OpenSSH server:

sudo apt-get install openssh-server

Continue reading Install and enable SSH in Ubuntu 14.04

Add user or group to sudoers file

I had this issue for my Ubuntu and Pidora, so in this article you can have both solutions:

In Ubuntu

The problem I had was to add a user on an Ubuntu 14.04 at my work, so that someone else from the company can help me do some basic maintenance of the system (it was requested by my employee!), so this is how I did it after creating a user (new_user):

 gpasswd -a new_user sudo

This command will add the user new_user to the group sudo.

In Pidora

I was working with Pidora (which is a Fedora remix for Raspberry Pi) and I was about to run a command using sudo that I faced the following error:

[NixSOS@pidora ~]$ sudo iptables -L -n
[sudo] password for NixSOS:
NixSOS is not in the sudoers file. This incident will be reported.

and I was confused for a while and then I searched for a way to add my user in the “sudoers file” and I’m going to explain how to add a user or a group to sudoers file. This should work all major linux distributions.

Continue reading Add user or group to sudoers file

Add custom icon in Ubuntu launcher

Ubuntu uses Unity GUI (Graphical User Interface) and it has a great feature which is handy for running the application which you frequently use. While working with Linux, you may want to run your scripts (shell, Perl, Python, etc.) and you want to add your script to your launcher menu.

There are two ways to add your own icon in Ubuntu launcher (sidebar), you can write the icon script your self or you can use wizard. In the following post I have described how to add your custom icon (to run your custom script) to your application list and also your launcher menu.

Continue reading Add custom icon in Ubuntu launcher

“ubi-partman failed with exit code 10” error during Ubuntu 12.04.* resolution

During installing Ubuntu 12.04.2 LTS on an Acer laptop I got the following error:

ubi-partman failed with exit code 10

the error message had three buttons and the “continue” button was letting me proceed the installation progress to select date and other stuff, but before selecting the partition I was stock ! After few hours searching and reading blogs I found a clue but there was no specific solution for it, so I decided to write this article.

The problem occurs when the Ubuntu installer wants to check the HDD (Hard Drive Disk) but it was failing each and every time. The solution I found was in configuring the live disk before loading. Follow the following steps:

Continue reading “ubi-partman failed with exit code 10” error during Ubuntu 12.04.* resolution