Setup a telnet chat server with STChat.

Setup a telnet chat server with STChat.

STChat is a simple telnet chat server that runs on Linux, Windows and MAC. I’ve only tested this on Linux so i can’t speak for the other OS’s. The chat system is really simple, supports colors, multiple terminal types (vt100 etc), usernames and admin mode. Putty, Linux telnet, and Windows telnet seem to work just fine when [...]

Linux: cut – divide file into columns.

cut
Divide a file into several parts (columns)
Writes to standard output selected parts of each line of each input file, or standard input if no files are given or for a file name of `-’.

Syntax
cut [OPTION]… [FILE]…
In the options below, BYTE-LIST, CHARACTER-LIST, and FIELD-LIST are one or more [...]

Bash and Shell Dialog Examples

Bash and Shell Dialog Examples

Below are some basic examples of how to create Dialog based Bash scripts for the Linux console. Dialog provides a method of displaying several different types of dialog boxes from shell scripts. The bash dialog example below walks you through a basic “Hello World” shell script using Dialog.

#!/bin/sh
rm /tmp/h.out
while [ 0 ]; [...]

Easily write ISO files to USB drives in Linux.

Easily write ISO files to USB drives in Linux.

Writing an ISO file to a USB drive just got super easy for me. I found this program called UNetbootin which lets me select and ISO drive, select the /device I want to write to, and BAM, bootable USB drive. One thing to note, when selecting your /device (e.g. /dev/sdb1) make sure it’s mounted. When [...]

Setting up a firewall in Linux with iptables.

Setting up a firewall in Linux with iptables.

Setting up a firewall in Linux is actually surprisingly easy. With Ubuntu you may want to make sure the iptables package is installed. If you run Slackware, the best Distro on Earth, you’ve already got it. Iptables is the heart of most firewall scripts in Linux.

I’m going to assume that you are [...]

Cool desktop widgets for Linux with Screenlets.

Cool desktop widgets for Linux with Screenlets.

If you’re looking to pretty up your Linux desktop with some cool widgets take a look at the screenlets package. Screenlets is availible as a Debian or Ubuntu package so installing is just a matter of going to your package manager and searching for “screenlets”. Once installed you can access the screenlets from the applicatons [...]

3D Linux Desktop switcher with Compiz.

3D Linux Desktop switcher with Compiz.

If you’re looking for a really cool 3D Linux desktop do a search for Compiz. You’ll want the Compiz and CompizConfig packages from your distributions package system. In Ubuntu you can use the Synaptic Package Manager to download and install the necessary software.

Once installed you’ll want to open up the CompizConfig Settings [...]

Spy on MSN, AIM and Yahoo chats with ChatSniff.

Spy on MSN, AIM and Yahoo chats with ChatSniff.

Everyday I am impressed at what I find for Linux software, especially security related software such as sniffers. I wanted to see what was availible for instant messenger sniffers and sure enough I found a cool looking program called ChatSniff. For all you Ubuntu users, they’ve got a debian package for you to install on [...]

Desktop Video Recording in Linux (Like Fraps).

Desktop Video Recording in Linux (Like Fraps).

RecordMyDesktop is an open source tool for recording your desktop into a the OGV open source video format. You can then use a video editing program such as In the near future I am going to be making some video tutorials on programming and Linux which requires me to have a desktop video recording [...]

Which Linux desktop for Netbooks?

Which Linux desktop for Netbooks?

Recently I’ve acquired an Asus eeePC 4gb Netbook. The Netbook had some funky version of Linux preinstalled which ran everything as the root user with no authentication. Talk about a disaster ready to happen! After installing Ubuntu Netbook Remix I noticed some lag in the Remix user interface which brought up the question, which Linux [...]

Making a simple ListBox with GTK and Glade3.

Adding a simple ListBox widget in your GTK application is easier than you think. This tutorial will show you how to create ListBox-like functionality in GTK using Glade3. GTK uses the TreeView control as their do-all list control. You can create simple lists, tree-like lists and all sorts of various list views. What is really [...]

Read More »

Glade 3 + GtkBuilder + Anjuta Example.

Today I whipped up a simple GTK application using the Anjuta IDE, Glade 3, and the new GtkBuilder system. As some of you know, Glade 3 and GTK changed things up. First Glade stopped using generated code which required you to use libglade. Now the GTK developers created their own interface interpretor called GtkBuilder. [...]

Read More »

Get Windows Service info in C#.

This code will show you how to search for Windows Services. The ServiceController class handles almost everything service related. You can also check if services are running by checking the service.Status property and you can search for installed services using the sample code below. The services we are talking about are the services that run [...]

Read More »

Visual Basic comes to Linux.

Visual Basic for Linux is here, sort of. In my search for the perfect RAD environment for Linux I came across a project called Gambas. Gambas is a Visual Basic like development environment for Linux which is very much like Microsoft’s drag and drop Visual Basic but it is not a clone. For an Open [...]

Read More »

Add background color to PNG files in C#.

This code snippet will let you force a background color into a PNG file with C#. When working with PNG files in Visual Studio sometimes you’ll run into situations where the background of a PNG shows up as grey or even blue. This is because of the PNG files transparency and Windows can sometimes [...]

Read More »

C#: A multi-threaded UDP server with BackgroundWorker.

The following code shows you how to build a UDP server in C# using the UUdpClient class for the networking and BackgroundWorker class for reporting data back to the application. This particular UDP server class is designed to be used with a Windows Forms or GUI. When using the UDP server you pass a BackgroundWorker [...]

Read More »