Use own MIRRORS for bitbake in Yocto

Hello everybody,
today I’ll quickly show how to replace the default MIRRORS defined in the bitbake configuration (meta/conf/bitbake.conf)ย without touching it. This can be useful if you have for example no ftp access and you don’t want to change the default bitbake configuration.

Therefore we choose the GNU_MIRROR (which is by default ftp://ftp.gnu.org/gnu) and change it to a non-ftp URL.

To change/replace the MIRROR URL just add and export another definition to conf/local.conf in your build directory. So the change to a non-ftp GNU_MIRROR would look like this:

export GNU_MIRROR = "http://ftp.gnu.org/gnu"

Thanks for reading!

Advertisements
Posted in development, linux, yocto | Leave a comment

Properly add a List of Listings in LaTeX

Hi folks,
today I’d like to show you how to properly add a “List of Listings” using the listings package to your LaTeX document. Before we start you have to include the listings package:
\usepackage{listings}

Then you can (if you like to) change the title of the section. By default it is named “Listings”. Here I change it to “List of Listings”:
\renewcommand{\lstlistlistingname}{List of Listings}

These two commands were outside the begin{document}, so the following ones will be inside.

Now we have to add a listing
\begin{lstlisting}[caption={ANSI C Hello World},label={lst:c_helloworld}]
#include <stdio.h>

int main(void) {
printf("Hello World\n");
return 0;
}
\end{lstlisting}

And finally here is the code which properly adds the List of Listings (also to the ToC)
% List of Listings
\newpage
\phantomsection
\addcontentsline{toc}{section}{\lstlistlistingname} % Add it to the ToC
\lstlistoflistings % The list itself

Hope this helps ๐Ÿ˜‰

gr33z,
g0hl1n

Posted in LaTeX | Tagged , , , , | Leave a comment

Nagios-Plugin-Perl: my first bugfix was merged

Hey,
a few hours ago my first pull request on Github for the nagios-plugin-perl was merged. *Wohooo*
It contained a patch for the rt.cpan.org bug #77399 which prevented using spaces in section names.

Just wanted to mention it ๐Ÿ˜›

see you,
g0hl1n

Posted in programming | Tagged , , , , , , | Leave a comment

Nagios-Plugins: Three more of my patches accepted

Hey,
last Weekend three more commits of mine got merged into the Nagios-Plugins master branch at Github and will therefore be published with the next version of the Nagios-Plugins. *Wohooo*
With these commits I’ve fixed bugs in check_http & check_apt and added a new feature to check_procs.

The commits I’m talking about are listed (and linked to Github) below.

For more details about my commits to the Nagios-Plugins see the history on Github: https://github.com/nagios-plugins/nagios-plugins/commits?author=g0hl1n

regards,
g0hl1n

Posted in programming | Tagged , , , , , , , , | Leave a comment

Two new repositories on Github

Hello you,
I’ve just added two brand new public repositories to my Github account.

The LaTeX repository will host some of my LaTeX stuff (templates, macros, etc.).
The second repo dotfiles will contain most of my Linux configuration files like vimrc, screenrc and so on.

So check them out at https://github.com/g0hl1n and if you like the repositories give them a star ๐Ÿ˜‰

See you later!
g0hl1n

Posted in announcements | Tagged , , , , , | Leave a comment

New blog at wordpress

Hi,
like you see I’ve just started a new blog on wordpress.com.
Here I’ll be posting the stuff previously found on http://blog.g0hl1n.net (which is now a link to this blog).
I hope you’ll like it.

regards,
g0hl1n

Posted in announcements | Tagged , , , | Leave a comment