Here is something useful I learned a couple of weeks ago. To cut a hanging SSH connection loose and to free the terminal only requires the following characters/keystrokes:
[Enter]~.
However on some keyboard layouts e.g. sv/fi, the tilde needs an space so the keystrokes are:
[Enter][AltGr]~[Space].
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Monday, October 24, 2011
Friday, May 7, 2010
Ubuntu 10.04, Thunderbird and a 24-hour clock
I'll cut straight to the point and spare the philosophical pondering to the end.
To make Thunderbird in Ubuntu display dates (and time) in ISO 8601 you need to do is:
sudo nano /etc/default/locale
on the command line and add the following line to the file:
LC_TIME="en_DK.utf8"
That's it.
Now to my rant.
Why is this so difficult, it shouldn't be needed to touch the command line to make this change?
Why can't the locale en_DK.utf8 (English as they speak in Denmark) be named something better?
Why can't you Americans use a 24 hour day(and night)? You don't even have a word for it like e.g. Swedish dygn or Finnish vuorokausi which both mean a 24-hour period.
Don't even get me started on the dates, 4/5/2010 and 4/5/2010 is it April 5:th or May 4:th, how about trying to update the date Blogger displayed, 5/5/10, from the fifth to the seventh!?
And don't forget Letter vs. A4, but I'll save that for another time.
To make Thunderbird in Ubuntu display dates (and time) in ISO 8601 you need to do is:
sudo nano /etc/default/locale
on the command line and add the following line to the file:
LC_TIME="en_DK.utf8"
That's it.
Now to my rant.
Why is this so difficult, it shouldn't be needed to touch the command line to make this change?
Why can't the locale en_DK.utf8 (English as they speak in Denmark) be named something better?
Why can't you Americans use a 24 hour day(and night)? You don't even have a word for it like e.g. Swedish dygn or Finnish vuorokausi which both mean a 24-hour period.
Don't even get me started on the dates, 4/5/2010 and 4/5/2010 is it April 5:th or May 4:th, how about trying to update the date Blogger displayed, 5/5/10, from the fifth to the seventh!?
And don't forget Letter vs. A4, but I'll save that for another time.
Friday, September 4, 2009
Making MPlayer really-quiet
MPlayer must be one of the best media players to support both obscure, nonstandard and broken video formats on any platform. I use it regularly on Linux.
However, by default, MPlayer has the annoying habit of displaying (and hiding) error dialog boxes, sometimes even in very rapid succession. Usually there is not even anything visually wrong with the video, there are just some errors (nonstandard things) in the stream. Luckily, there is a solution for this:
Tell it to be really-quiet.
From the command line:
mplayer -really-quiet myFile.mpg
or, to make it more permanent, add the line
really-quiet=yes
to
~/.mplayer/config
Thats it.
However, by default, MPlayer has the annoying habit of displaying (and hiding) error dialog boxes, sometimes even in very rapid succession. Usually there is not even anything visually wrong with the video, there are just some errors (nonstandard things) in the stream. Luckily, there is a solution for this:
Tell it to be really-quiet.
From the command line:
mplayer -really-quiet myFile.mpg
or, to make it more permanent, add the line
really-quiet=yes
to
~/.mplayer/config
Thats it.
Thursday, July 23, 2009
distcc made easy
The easiest way to set up a simple two machine distcc environment in Ubuntu 9.04.
Quick and dirty
install distcc on both client and server:
sudo apt-get install distcc
On server:
distccd --daemon --allow your_client_ip_address
On client:
export DISTCC_HOSTS='localhost your_server_ip_address'
make -j4 CC=distcc CXX=distcc
Please note the CXX=distc for projects using C++ e.g. Qt ;)
That's all it takes.
Permanent in project
To make distcc more permanent in your Qt project add the following two lines to yous .pro file:
QMAKE_CC = distcc
QMAKE_CXX = distcc
Which qmake will then generate to:
CC = distcc
CXX = distcc
in the make file.
export DISTCC_HOSTS='localhost your_server_ip_address'
make -j4
Visualize progress
To get visual response of what is happening use distccmon-gnome
(sudo apt-get install distccmon-gnome)
Quick and dirty
install distcc on both client and server:
sudo apt-get install distcc
On server:
distccd --daemon --allow your_client_ip_address
On client:
export DISTCC_HOSTS='localhost your_server_ip_address'
make -j4 CC=distcc CXX=distcc
Please note the CXX=distc for projects using C++ e.g. Qt ;)
That's all it takes.
Permanent in project
To make distcc more permanent in your Qt project add the following two lines to yous .pro file:
QMAKE_CC = distcc
QMAKE_CXX = distcc
Which qmake will then generate to:
CC = distcc
CXX = distcc
in the make file.
export DISTCC_HOSTS='localhost your_server_ip_address'
make -j4
Visualize progress
To get visual response of what is happening use distccmon-gnome
(sudo apt-get install distccmon-gnome)
Subscribe to:
Posts (Atom)