Tales of a GeekTrotter Binary Logbook


Run Django from a VM and access it from the host

If you try to run Django development mode from a Virtual Machine and access the website from the host, you need to specify the global IP address in the "runserver" command.

For example if your VM IP address is (in NAT mode):

You should run the server by calling (you can change the port):

python manage.py runserver


Now you need to connect to the website specifying the IP address like that:

Both from the VM:

And the Host:

The server running on Linux is much faster than the one running on Windows 🙂
Filed under: IT, Linux, Programming No Comments

Install Google Chrome Web Browser in Ubuntu 11.10 Oneiric Ocelot

Ubuntu 11.10 final is here!

But some of you might be having troubles to install the nonfree google chrome web browser.
To install it, just follow the following steps:

1. Download the deb package on http://www.google.com/chrome
2. Open a command prompt and try to install it: sudo dpkg -i google-chrome-stable_current_amd64.deb

You will have the following normal errors:
Selecting previously deselected package google-chrome-stable.
(Reading database ... 127754 files and directories currently installed.)
Unpacking google-chrome-stable (from .../google-chrome-stable_current_amd64.deb) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on libnspr4-0d (>= 4.7.3-0ubuntu1~); however:
Package libnspr4-0d is not installed.
google-chrome-stable depends on libxss1; however:
Package libxss1 is not installed.
google-chrome-stable depends on libcurl3; however:
Package libcurl3 is not installed.
dpkg: error processing google-chrome-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for man-db ...
Errors were encountered while processing:

3. Now just type the following command: sudo apt-get install -f

And Google Chrome will install!

Filed under: IT, Linux 5 Comments

20 years of Linux

Let celebrate the 20 years of Linux!

Filed under: IT, Linux No Comments

Could not find /etc/localtime, unable to determine host timezone

If you ever had a "localtime" problem such as:

### WARNING: could not find /etc/localtime or /usr/share/zoneinfo/localtime. unable to determine host timezone

It can be fixed simply by copying your timezone localtime file into /etc/localtime.

For example in my case, my timezone is Asia/Tokyo, so I copy the /usr/share/zoneinfo/Asia/Tokyo file into /etc/localtime:

sudo cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

And that's it!

PS: In my case, it was preventing me to start the Android Device Emulator from Rhodes (Rhomobile) on ArchLinux i686. Works as a charm after the previous command!

Filed under: Linux No Comments

x264, FFMpeg, wxWidgets et Aegisub RPMs pour Fedora 13

Aegisub is a powerful subtitle editor.
However, there is no official deb or rpm to install it easily on Debian and Red Hat based OS so we have to install it from the sources.

Many people have problems installing from the sources and getting everything to work as they want.
I recently compiled a working version of Aegisub on Linux Fedora Core 13 x86_64 and wanted to share the generated rpm.

This version is meant to work with a custom version of x264 and ffmpeg (built on today's snapshot, Aug. 22nd 2010) that decodes/encodes a wide range of audio and video codecs, including both free and non-free codecs.

The configure used during the compilation of ffmpeg and the codecs available from this build are shown here: ffmpeg-formats.txt
As you can see, this build is able to en/decode most of the video/audio formats.

To install Aegisub with this build of ffmpeg (and x264), just install the following rpms from the web browser:

Or with these command lines (as root or sudo):

su -
wget http://rpms.dallagnese.fr/x264-0.27-1.fc13.x86_64.rpm \
     http://rpms.dallagnese.fr/libnut-0.0.0-1_r661.fc13.x86_64.rpm \
     http://rpms.dallagnese.fr/ffmpeg-0.6-3.fc13.x86_64.rpm \
     http://rpms.dallagnese.fr/wxWidgets-2.9.0-1.fc13.x86_64.rpm \
     http://rpms.dallagnese.fr/aegisub-2.1.8-4749.fc13.x86_64.rpm \

yum -y install --nogpgcheck x264-0.27-1.fc13.x86_64.rpm \
               libnut-0.0.0-1_r661.fc13.x86_64.rpm \
               ffmpeg-0.6-3.fc13.x86_64.rpm \
               wxWidgets-2.9.0-1.fc13.x86_64.rpm \

If you want more details about these packages, you can check the packages installations step by step:

1. x264

Directly from the web browser: x264-0.27-1.fc13.x86_64.rpm

Or through command lines (as root or sudo):

wget http://rpms.dallagnese.fr/x264-0.27-1.fc13.x86_64.rpm
yum -y install --nogpgcheck x264-0.27-1.fc13.x86_64.rpm

2. FFMpeg

Directly from the web browser:
libnut-0.0.0-1_r661.fc13.x86_64.rpm (required by this ffmpeg build)

Or through command lines (as root or sudo):

wget http://rpms.dallagnese.fr/ffmpeg-0.6-3.fc13.x86_64.rpm \
     http://rpms.dallagnese.fr/libnut-0.0.0-1_r661.fc13.x86_64.rpm \

yum -y install --nogpgcheck ffmpeg-0.6-3.fc13.x86_64.rpm \

3. wxWidgets

Before installing Aegisub, we need to install a recent version of wxWidgets.
Aegisub final version 2.1.8 (rev 4749) works only with wxWidgets 2.9+ and the last officially supported version of wxWidgets on Fedora is (as today) is 2.8.11.

Directly from the web browser: wxWidgets-2.9.0-1.fc13.x86_64.rpm

Or through command lines (as root or sudo):

wget http://rpms.dallagnese.fr/wxWidgets-2.9.0-1.fc13.x86_64.rpm
yum -y install --nogpgcheck wxWidgets-2.9.0-1.fc13.x86_64.rpm

Now it's time to install Aegisub!

4 Aegisub

Directly from the web browser: aegisub-2.1.8-4749.fc13.x86_64.rpm

Or through command lines (as root or sudo):

wget http://rpms.dallagnese.fr/aegisub-2.1.8-4749.fc13.x86_64.rpm
yum -y install --nogpgcheck aegisub-2.1.8-4749.fc13.x86_64.rpm


This is my first time making RPMs from my compilations, so this is not guaranteed to work!
If you try, please give me some feedback on how it works.

And please give me any comments, suggestions or critics you have!

Source: [ EroGaKi - Tutos ] Aegisub sous Fedora 13 (linux)

Filed under: Linux 4 Comments
Page 1 sur 212