JetCracker

Life-time learner's blog

Tag Archives: ubuntu

[Ubuntu] [Solved] Locale problem

After installing Ubuntu server, you might encounter some problems with linux locale configuration. Usually you can see the following warning messages:

Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"

The output of the command “locale” may contain the following lines:

user@server$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Here is the solution that worked for me.

  1. Run command sudo apt-get install language-pack-en
  2. sudo dpkg-reconfigure locales
  3. Log out / log in.

If you want more details, see http://stackoverflow.com/questions/2527192/linux-locale-unset

Ctrl+Space doesn’t work in NetBeans [Ubuntu 12.04] [Solved]

I reinstalled Ubuntu on my laptop recently. Now I am using Ubuntu 12.04 LTS with Gnome 3 environment. Everything worked fine except one problem: the hot key Ctrl+Space (auto code completion) stopped working in Netbeans and other IDE. Of course, there was an alternative key combination Ctrl+’\’, but it is absolutely inconvenient! I’d prefer to kill myself looking for the solution on the Internet rather than to give in and use Ctrl+’\’. I’ve surfed the net for a while and found a solution to my problem!

The key combination didn’t work because some other program used it. To fix this I used gconf-editor.

  1. Open gconf-editor.
  2. Choose desktop -> ibus -> general -> hotkey.
  3. Open trigger parameter.
  4. Remove Ctrl+Space key combination from the list and press OK.

Now we can use Ctrl+Space without any problems. Let me know if you have any problems or/and better ideas. Good luck!
UPD: I returned to Ubuntu 11.10, cuz’ 12.04 turned out to be a total rubbish. I’m just wondering if Ubuntu 12.10 is any better…

What’s wrong with my PC?

Whats wrong with my PC?

The activity of my CPU cores are in antiphase…

PHP: Syntax highlighting with GeSHi

One day I needed to add some source code examples to the web-site. But there was no features for highlighting syntax. I decided to create my own tool for highlighting source code. Here I will show you how to do it using PHP with GeSHi. Read more of this post

How to install MPI in Ubuntu

I am starting a series of articles devoted to distributed computing that we are now studying at MIPT. For programming we will use MPI.

Message Passing Interface (MPI) is a standardized and portable message-passing system designed by a group of researchers from academia and industry to function on a wide variety of parallel computers. The standard defines the syntax and semantics of a core of library routines useful to a wide range of users writing portable message-passing programs. We can use it for creating programmes for distributed computing systems (parallel computing).

MPI is a standard. There are different implementations of MPI for different platforms and programming languages. This article is about how to install MPI platform to your Ubuntu.

Read more of this post

FAIL

 Не удалось установить обновления

Обновление было отменено. Ваша система может оказаться в непригодном для использования состоянии. Сейчас будет запущен процесс восстановления (dpkg –configure -a). OK?

Вот такое сообщение мне выдала Ubuntu… Аж мороз по коже…
Жмакаю ОК.

Installation finished. No error reported.

The question is, what the fuck???