Add Font in Debian Lenny
by Newbie on May.25, 2009, under Debian
Install using :
# apt-get install x-ttcidfont-conf msttcorefonts ttf-xfree86-nonfree
If you have TrueType font files (.ttf), it is easiest to install fonts via KDE Control Center: Control Center -> System Administration -> Font Installer.
Running Eclipse 3.4 on Debian Linux
by Newbie on May.19, 2009, under Debian, Java
Eclipse is my favorite IDE, I use in almost my project. Installing Eclipse is easy. We just need JDK installed in our PC. In Debian repository there are Eclipse 3.2, to get the newest version download from Eclipse site.
First we need to install JDK
# apt-get install sun-java6-jdk
When download finishes, we’ll uncompress the archive. Here I suppose that archive is saved in user’s home directory. If file name changed since moment of writing, modify command line accordingly.
tar -xzvf eclipse-jee-ganymede-SR2-linux-gtk.tar.gz
This will create directory /home/[USER_NAME]/eclipse
switch to the eclipse directory:
cd ~/eclipse
and start eclipse:
./eclipse
Java “Hello World!’ in Linux
by Newbie on May.17, 2009, under Java SE
To write my first program i need:
1. The Java SE Development Kit 6 (JDK 6)
Type “apt-get install sun-java6-jdk” to install
2. Text Editor, i use vim in this case. You can use other text editor
My first application, HelloWorld, will simply display the greeting “Hello world!”. Why “Hello world!” (taken from wikimedia)
A “Hello World” program is a computer program which prints out “Hello, world!” on a display device. It is used in many introductory tutorials for teaching a programming language. Such a program is typically one of the simplest programs possible in a computer language. Some are surprisingly complex, especially in some graphical user interface (GUI) contexts, but most are very simple, especially those which rely heavily on a particular command line interpreter (”shell”) to perform the actual output. In an embedded system, the text may be sent to a liquid crystal display (LCD), or the message may be substituted by some other appropriate signal, such as a LED being turned on.
To create this program, you will:
Play MP3, Video Player and open NTFS partition in Debian
by Newbie on May.17, 2009, under Debian
As proprietary multimedia format, Mp3 not include in standart installation of Debian. We can install by type
# apt-get install gstreamer0.10*
as audio player beside Rhythmbox, we can install XMMS2 and Banshee
# apt-get install xmms2* banshee
We can watch our video collection by installing video player and codecs in debian
# apt-get install w32codecs libdvdcss2 mplayer kmplayer vlc
To open ntfs partition we must install
# apt-get install ntfs-3g
Wine, “Wine is Not Emulator”
by Newbie on May.17, 2009, under Debian
Wine is a translation layer (a program loader) capable of running Windows applications on Linux and other POSIX compatible operating systems. Windows programs running in Wine act as native programs would, running without the performance or memory usage penalties of an emulator, with a similar look and feel to other applications on your desktop(WineHQ Website).
To install wine “apt-get install wine”
By default the virtual Windows drive created by Wine, at ~/.wine/drive_c.
I want to install TextPad in my Lenny (TextPad can download in this link). To install TextPad just click TextPad setup application or type “wine txpeng520.exe” in the directory where the file exist.