Compdigitec Labs

Linux

Linking a shared assembly in the Mono C# compiler

Tuesday, December 23rd, 2008

If you wrote a class in C++ and wanted to use it in many applications, you could simple #include it in each application you wanted to use it in. But if you wrote a class in C# and wanted to use it in many applications, you cannot just #include it, because there is no #include [...]

Fixing MonoDevelop’s translation functions

Sunday, December 21st, 2008

When you install MonoDevelop in Linux, you will find that you cannot open a translation file. The error given is “CodePage 37 not supported”. A workaround for this is to install the libmono-i18n2.0-cil package.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for [...]

How to fix GCC 4.3’s removal of old headers

Monday, December 15th, 2008

GCC 4.3 has many new feautures. But unfortunately, it may break many of your application as it removes legacy and backwards compactible headers. Compiling in this case may result in errors such as “error: iostream.h: No such file or directory“. This article will describe how to fix it in 3 easy steps:

Go to http://gcc.gnu.org/gcc-4.3/porting_to.html’s “Removal [...]

Mount a FTP share in Ubuntu as a folder

Sunday, December 7th, 2008

There are several GUI interfaces for FTP on Linux, such as gFTP and FileZilla. But what if you need to use the powerful Linux command lines on an FTP share? This article will help you mount a FTP share as a folder so you can use your regular Linux tools (grep,nano,mv,rm,ls,etc.) on a FTP share. [...]

Setting up a samba share in Ubuntu 8.04 and above

Sunday, November 30th, 2008

After the “Network Shares” option was removed in Ubuntu 8.04, there was no longer a unified process to manipulate samba shares. Below is a step by step guide to setting up shares in Ubuntu 8.04 and above.

Open Nautilus in root: Type gksudo nautilus in the terminal or Alt-F2 (run dialog). This is due to the [...]

A few gFTP user interface oddities

Saturday, November 29th, 2008

gFTP is a very good and lightweight FTP client on Linux. However, a few oddities of the gFTP user interface have been noticed. They are listed below.

Control-A adds a gFTP bookmark instead of select all. This seems a bit weird because usually Control-A means select all.
Control-Z does not undo. Again, Control-U generally means to Undo.
Control-Y [...]

Switching page orientation in OpenOffice.org

Thursday, November 6th, 2008

If you need to switch the page orientation (from portarit to landscape, or vise versa), here is how to do it (OpenOffice 2.x and plus):

Start by opening your document in OpenOffice.
Open the “Format” menu and click “Page…“.
Go to the “Page” tab and choose “Portrait” or “Landscape“.
You’re done! Save the document if you wish.

If you found [...]

Using apt-get in Ubuntu Linux

Sunday, September 21st, 2008

If you ever need to install packages (built-in), but cannot use Synaptic, then here are some useful tips on using apt-get in Ubuntu:

sudo apt-get install package - Installs package and it’s dependencies
sudo apt-get remove package - Removes package, but you need to use #4 to remove unused dependencies
sudo apt-get update - Updates the package list [...]

How to get the initial help on sudo to reappear in Ubuntu

Thursday, September 4th, 2008

If you’ve used a new, fresh Ubuntu install, you’ll notice that the first time you open the terminal, you would get the following message before your first sudo (or su):

To run a command as administrator (user “root”), use “sudo “.
See “man sudo_root” for details.

However, after your first sudo or su, this message disappears when you [...]

How to force mkdir to create a directory if there isn’t already one

Wednesday, September 3rd, 2008

If you’ve ever tried to make a directory if there isn’t one existing, you probably have bumped into the following error:
mkdir: cannot create directory `the_directory‘: File exists
To fix this, use this instead to suppress error and create parent directories if needed:
mkdir -p your_directory
For more information, see the mkdir page at Wikipedia.
If you found this article [...]

« Previous Entries