HowTo
Bash Shell Scripting Tutorial
by Samet Kilictas on Apr.30, 2010, under General, HowTo, Linux
Basics
This tutorial assumes that you already know how to log in to your UNIX machine, bring up the bash shell, and run basic commands such as ls and cat. Getting to this point is fairly easy, but unfortunately this is the level that most users stay at indefinitely. This tutorial is intended to help you start to learn the more advanced features of using a shell, and specifically bash, one of the most powerful shells available.
Please note that most of the command themselves are not explained; you can examine their functionality yourself by either reading their man page, or just experimenting with them to see what they do.
Redirection
Normally programs take input from our keyboard, and display the output to our screens. However, these are just the defaults – UNIX has the ability to redirect the input (commonly referred to as stdin, short for standard input) and output (commonly referred to as stdout, short for standard output).
Here is a simple example: the cat command displays the contents of a file to the screen. But we can redirect those contents to a file using the redirection operator ‘>’, like so:
$ cat myfile.txt This is the contents of the file myfile.txt $ cat myfile.txt > newfile.txt $ cat newfile.txt This is the contents of the file myfile.txt $
In effect, we’ve made cat do the same thing as cp, by redirecting the output from the screen to a file. This isn’t terribly useful, but consider another, similar, scenario: cat can take multiple arguments, and it will display the files one after the other. This can be used to append one file onto another and create a new, combined file.
$ cat file1.txt The quick brown fox... $ cat file2.txt ...jumped over the lazy dog. $ cat file1.txt file2.txt > combined.txt $ cat combined.txt The quick brown fox... ...jumped over the lazy dog.
Neat, eh?
We can also redirect the input, so that a program takes the contents of a file as if it were typed at your keyboard. cat doesn’t take any input, so let’s use bc, a command line calculator. Normally, you run the program, and it lets you type in calculations such as “2+2″, and then displays the result. But if you have a file which already contains the calculations, you can send it straight to bc – faster and more powerful than cutting-and-pasting the text in with your mouse.
$ cat calc.txt 2+2 $ bc < calc.txt 4 $
A final note: you can use two output redirect symbols together – >> – to indicate that you want to append the file, not overwrite it. Hence:
$ cat file1.txt Contents of file1. $ cat file2.txt Contents of file2.txt. $ cat file2.txt >> file1.txt $ cat file1.txt Contents of file1. Contents of file2.txt. $
IBM RAD 7.5 on Ubuntu Karmic 32 Bit
by Samet Kilictas on Dec.08, 2009, under HowTo

Lets assume you were using ubuntu 9.04 jaunty and now you have upgraded your distribution to 9.10 karmic. Before i get into 9.10 version i had my RAD 7.5 installed and running. Then decided to upgrade my distro. I’ve read an article and futures of karmic distro, that says plenty of packages getting updated. After getting done with upgrade process i tried to run my RAD 7.5 , it was ok for the first time but there were plenty of errors on screen.
First of all when you upgrade your distro, the gcc++ package gets upgareded so libstdc++.so.5 file to libstdc++.so.6 .Unfortunately RAD 7.5 version looks for libstdc++.5.so file on your system. You have to download this file. Download it by using link below;
http://packages.debian.org/stable/base/libstdc++5
Then install this deb package (If you are running on another linux distro you have to place it just next to where your libstdc++.6.so file, you can use “locate libstdc++.so.6″ command to see where your file is). Then copy below bash script and paste it any of your text editor, save it as “run.sh”. From now on, you can use this script to run your RAD 7.5.
#!/bin/bash export GTK_NATIVE_WINDOWS=1 /where/your/RADis &
After this process your problem should be gone. Have fun.
Generate ER diagram by appliying reverse enginnering technique
by Samet Kilictas on Jun.06, 2009, under HowTo

Yesterday, i needed to generate an ER diagram for one of my databases that i am working on. Well, i didn’t meet with Mysql Workbench visual database tool before. It made my day. MySQL Workbench is a visual database design application that can be used to efficiently design, manage and document database schemata. And it is available under GPL license. This application is allowing you to generate a diagram for a database using its reverse engineering tool. And the good thing is after generating process you may modify it anyway. I think i am going to use this application in future. For detailed information go in this link below :
http://dev.mysql.com/downloads/workbench/5.1.html
Keep in touch foxes ( :
How to install Nvidia Driver 180.29 on your ubuntu
by Samet Kilictas on Mar.06, 2009, under HowTo, Linux, Tips, Ubuntu
If you are using older drivers then 180.29 version you should* install new drivers so you will have better performence with 180.29 version. Don’t worry it is piece of cake to install it on your ubuntu.
Firstly, go on ( System->Administration->Software Sources ) then click on “Third-Party software” tab. Now you should see a button “+Add” shows on it.
deb http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu intrepid main
As you see above there is two lines of address. You should add them one-by-one by clicking this “+Add” button. when you are done with that it is time to get PPA keys for this repository.
Now use there commands
cd ~/Desktop
gedit temp.key
Subversion (SVN) Server Nasıl Kurulur (Turkish)
by Samet Kilictas on Dec.19, 2008, under HowTo, Linux, Ubuntu
Merhaba arkadaşlar subversion hakkında türkçe yazılmış çok fazla kaynak olmamasından dolayı bu yazımı türkçe yazdığımı belirtmek istiyorum. Halen ingilizce dilinin artık global bir dil olduğunun bazı kişiler tarafından kabul edilmeyişide ayrı bir tartışma konusu bence.
Neyse hemen anlatmaya başlıyorum. Aslında kişisel olarak bir projeyi tek başıma yapıyorsam bunda daha başarılı olabildiğimi düşünüyordum ancak bazı nedenlerden dolayı anladım ki atasözümüz olan “Bir elin nesi var iki elin sesi” var sözü gerçekten yerinde ve mantıklı söylenmiş bir söz.
. Geçenlerde üniversitede grup çalışması yaptıgım samimi arkadaşlar ile bir projeye başlama kararı aldık ve ortak bir çalışma ortamı oluşturmam gerekiyordu. Ortak çalışma ortamı çok şekilde yaratılabilir aslında;
- Subversion
- CVS
- SourceSafe
- Team Foundation Server
- Birkaç duyulmamış sistem daha
Bu sistemler arasında en mantıklı ve uygulanabilirliği açısından rahat olan sistemin subversion olduğunu düşünüyorum. Linux altında çalışmışlığınız var ise bir Subversion (SVN) server kurmak yanlızca 30 saniyenizi alacaktır. Subversion sistemini windows işletim sistemilerinde de kurabiliyoruz ancak tabiki biz linuxumuza kurup rahat ve hızlı çalışmanın tadına varacağız
Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the 