Archive for the ‘Linux’ Category

 

How not to use Kill Command on Linux – 22. November, 2009

A few months ago I installed Debian GNU/Linux on an old Sony Vaio Laptop of a friend of mine. The laptop is really nice with slim case and a 15″ screen. She was really happy she could write her thesis on this nice machine again because Windows XP could not function properly on this machine. Installation was a breeze and  the non technical friend of mine was working on it happily for 4 months now.

Three weeks ago she called me and asked how she can watch DVD’s with. I figured out I forgot to install libdvdcss2 on her Debian. So I dropped by her place to fix it. I opened Synaptics and searched for it. But somehow it got stuck. So I had a terminal open and I typed

ps aux | grep synaptic.

At this point she mad a remark on “oh, what is this magic and all those words…”

I murmured something about this is the linux terminal while reading the pid of synaptic, and then I typed:

kill -9 5322

At this moment she stopped breathing and then yelled “Oh, what’s going on… don’t kill my computer…”.

Trying to explain what is the meaning of the command kill where non-useful. She was really astound by this.

So my conclusion is for next type – to save panic from your non technical friends, avoid using the command kill in front of them. It sound scary I guess. If you really have to kill a process, to it from gnome-system-monitor or ask them to bring you a glass of water before you type kill on their computer !

Posted in Debian, Linux

Wicd ROCK on the roads ! – 27. August, 2009

Been traveling in the USA for a couple of weeks now. I was prepared for bitter timetime with my Debian and wireless roaming. So I’ve mastered the use of commands ifconfig and iwlist and such. The reason is that I’ve had my share already with network-manager.

I always found gnome-network-manager resource hog, and non reliable. And when I tried it two weeks ago after one and a half years I discovered it’s developed so much I can’t recognize it anymore. It has too many options, and it’s more suitable to a network engineer than a simple user. What happened to the GNOME simplicity I don’t know, some one in Red Hat really screwed up with the development of it.

Anyways, I decided to give WICD a shot. Hearing only warm words of it I downloaded the version from Debian repos, and after a minute I was already connected and running wireless.

What makes WICD awesome ?

It’s reliable, It’s easy to use because the user interface is clear and simple. And most importantly it stays out of my way, unlike gnome-network-manager.

The latter needed to many mouse clicks and dialogs to configure, whereas wicd just needs one click.

Here’s a screenshot of the simple wicd notification:

Screenshot

I really like the simplicity. Just for the nostalgia I keep also on the panel the gnome-netstatus-applet…

P.S I forgot to mention, I really think this should be the default network application in Debian/Ubuntu and other gnome based distros.

Posted in Debian, Linux

Making Octave ploting nicer – 21. May, 2009

Personally I prefer python over Octave/Matlab. But since I’m being forced to write Matlab code for one of my course, I started playing around with octave.
By default octave makes ugly ugly plots because it uses the X11 terminal. But there’s a solution, you can switch to wxt terminal. In order to do that, add in the bottom of your .bashrc the following line:
export GNUTERM=wxt

And a magic will happen:
Before:

UGLY !!!

UGLY !!!

After:

NICE !!!

NICE !!!

That’s all folks.

Posted in Debian, Linux, science

Top 10 linux blog posts you should avoid reading – 29. April, 2009

As a frequent reader of Linux related news, I’ve come to the conclusion the sometimes reading posts about Linux is a complete waste of time. With time I’ve noticed that there are some repeating patterns to what I skip, so I’ve compiled this list to those who want to save some time, and a reminder to myself.

1. “The year of the Linux desktop” post type – <”YEAR”> won’t be the Linux Desktop
Two many words are typed on this subject. Really, and most of them are just concluding with the fact (usually with a sad tone) that this year will not be the year of the Linux desktop. Well, who cares ? I was introduced to Linux in 2004 – that was my Linux year. And that’s what’s important. The fact is Linux is quietly and steadily growing. If someone expect a sudden massive adoption of Linux… well keep waiting it’s not gonna happen. Mountains are built very slowly, so does Linux adoption. So don’t waste your time reading that type of posts.

2. “Are there too many Linux distros\Linux Desktop is too fragmented…”
Earlier I used the mountain building example. Here’s another example from earth’s history: Evolution. Without natural mutation forking and change, we’d all still be bacteria. So in short – diversity is good ! Imagine we just had red hat – where would be the Linux community then ? We’d still be installing from floppies without KNOPPIX and UBUNTU. BSD’s are good too, just in case.

3. Is “<insert distro here>” dead ?

Pessimists are all the place man. So Gentoo has some issues with it’s management (this is why I don’t use it), but can you expect a project with ~1000 dev’s and hundreds of users to just die ?
Debian too has lot’s of dev’s and it’s full of bureaucracy, and flame wars but it’s kicking. My point is any distro which is not managed by one man, or an elitist group (for example ARCH Linux. ), and has a foundation is not supposed to die. Organizations have their own DNA and they tend to survive and adopt them selves to new situations. This is true for distro’s like SuSE, Red Hat Ubuntu and Mandriva (the biggest commercial Linux distro’s I think of). My point: No is not dead and won’t die. It might just evolve into something else (i.e gentoo-sabayon path).

(more…)

Posted in Debian, Linux

Broken USB in OpenSUSE 11.1 – 16. March, 2009

Last week I upgraded one of my workstations at work to version 11.1 from 11.0 only to discover this week that automount of usb disks has ceased to work.
Morons in Novell managed to break this somehow. I remeber how a similar bug which was not adressed by canonical drove me away from Ubuntu to Debian.
I always warn people against this terrible bloated distro called OpenSUSE. Here is another evidence…
This is probably a solvable bug, but the fact that there has not been a centralized patch indicated where this company put it’s users.
To be honest I keep working with OpenSUSE only in the frame of ‘get to know the enemy’.

Be warned, if you install opensuse you are expected to have similar problems. Instead you should probably opt for Debian.

Posted in Debian, Linux

Custom Lists in Latex – 16. November, 2008

I found my self looking for a solution how to make a custom list in latex. I found many solutions, but I didn’t really find what I wanted: custom lists which are chapter aware. Let me explain better what I mean. Let’s say you write a book and at the end of each chapter you want to give questions, which are numbered x.y, where x is the number of chapter, and y is the number of question.
Here is how to do it:

\documentclass[12]{book}
\newcounter{question}

\begin{document}
\chapter{beginning}
\section{hello}
hello world
\begin{list}{Question \arabic{chapter}.\arabic{question}}{\usecounter{question}}

\item  one
\item  two
\item  three
\end{list}

\chapter{More into your book}
\section{hello}
hello world
\begin{list}{Exercise \arabic{chapter}.\arabic{question}}{\usecounter{question}}

\item  one
\item  two
\item  three
\end{list}

This will result in out put of two chapters, having in the end of each chapter list of questions numbered 1.1, 1.2, 1.3 and 2.1, 2.2, 2.3.

Further customization can be done with more complex numbering such as:

\begin{list}{Exercise \arabic{chapter}.\arabic{section}
.\arabic{question}}{\usecounter{question}}

which will yield numbering like 1.1.2 and so on.

That’s it. A quick one this time…

P.S more on lists can be found here.

Posted in Linux, latex