How to create a black console background in your blog

Hi there,

Recently, one of the blog readers asked me about how do I create a black console background to illustrate command-line in some of my posts (ie : 1, 2 , 3)

You just need to include these line, just after the tag in your blog template.


save your template, and republish your blog in it’s entirely (if you’re using blogger).

To use the black console background, you just need to put <div class=”terminal”> and </div> in between of your desired text. For example :

Linux 2.6.17 - login #

will produce

Linux 2.6.17 – login #

That’s all, happy hacking !

Ubuntu 6.06 Dapper Drake Guide

Ubuntu Dapper Drake is around the corner, what could be more great than reading some how to guide to use this GNU/Linux based operating system?

The guide i’m talking about is created in the form of wiki and hosted by krazypenguin.net. Overally, the guide tends to be a comprehensive book written for Ubuntu Dapper Drake.

It started off by explaining the objective of the guide, getting started with Ubuntu, how to add repositories, how to update Ubuntu and the usual misc “how to enable xxx feature” (such as mp3, dvd playing capabilities, installing Windows application, user administration, cd/dvd burning, networking, rescue mode, administrating server and many more.

As I said before, the guide is quite comprehensive, you can read it all here : http://www.krazypenguin.net/Ubuntu_Dapper_Drake_6.06_Guide

And by the way, have you ordered your Ubuntu CD?

How to install software/applications in Ubuntu Linux

If you are new in using Ubuntu or GNU/Linux and still have no idea on how to install software in your Ubuntu PC, then you might find this link helpful to you, How to install ANYTHING in Ubuntu!

The link consist of several basic graphical guide specially made for users with Windows background with the main aim is to guide users to install software for Ubuntu Linux. The guide answers common questions such as “Where’s the EXE?”, “Where do I need to extract this to?”,”How do I run it?” and “Where did it go?”.

The guide also includes Appendix that contains additional information on how to enable extra repositories, how to use terminal and creating an application launcher (application shortcut icon in Windows).

So hope that you enjoy reading it ! – How to install ANYTHING in Ubuntu!

p/s : for serious people who prefer to read a book about Ubuntu Linux, then I suggest you get one of these book from Amazon at a low price :

Burn DVD RW in Ubuntu or Debian GNU/Linux

I know some of you might already familiar with k3b, gcombust or xcdroast for burning DVD in GNU/Linux. But this time i’m going to show you how to burn a DVD using command-line tool in Linux using Ubuntu or Debian GNU/Linux as reference.

Why use command-line tool to burn DVD RW ?

  • Because you might want to save space by not installing unnecessary gui application that takes up a lot of libraries.
  • You don’t have Xwindows installed
  • You just want to impress your friends (and enemies), you surely look 1337 infront of them.

What do you need ?

  • A GNU/Linux distro (preferably Debian GNU/Linux or Ubuntu)
  • dvd+rw-tools package
  • DVD Writer drive is highly recommended though not required
  • Some positive attitude

Getting the required tools to burn DVD

Install dvd+rw-tools. As root (in Debian or Ubuntu) execute this command,

#apt-get install dvd+rw-tools

Initialise the DVD+RW

Do this only when you want to clear out all contents.

#dvd+rw-format /dev/scd1

Copy some files/director from local directory to DVD RW

#growisofs -Z /dev/scd1 -R -J /home/mypapit/somestuffs

Write some more stuff to an initialized DVD+RW

#growisofs -M /dev/scd1 -R -J /home/mypapit/books

There you go, how to burn DVD RW under GNU/Linux.

Final question, I don’t run Linux. What are my options?

dvd+rw-tools is also available in OpenBSD/NetBSD and FreeBSD from port contributed by Matthew Dillon.

[Source]

Solution to libctiny and wcrt – LNK2001 unresolved external symbol __chkstk

I’m not sure if any of you ever use libctiny or wcrt, they are both meant to be use with Microsoft Visual Studio so that your resulting binary won’t use the default Microsoft run-time library which slightly bloats the exe.

By using one of these libraries, you can greatly reduce your resulting binary from an average of 20KB to 7KB, depending on your application.

The chkstk problem

The problem arises when the application you just compiled fails to link with an error message: “LNK2001 : unresolved external symbol __chkstk” .


libctiny wcrt chkstk link error

This got to do with the “Ignore all default libraries” option which you’ve to check when using this library. Apparently one library which is required by a routine inserted by the Microsoft tools (chkstk) was excluded from linking as well.

Solution to the problem

Manually include the library! The routine/function is included in an object file named “chkstk.obj”, just put it in the link dialog box beside libctiny/wcrt, and the problem will be settled.

wga fakap #2 chkstk libctiny

I hope that this will solve your problem !