Archive for the ‘HowTo’ Category

SVN setup in Linux

Tuesday, December 16th, 2008

Because I spend a lot of time by programming exercises with other students in a group, I thought after a year of study about how to improve the efficiency of the work. Because we can’t always sitting together in one place, we work most “remote” and that’s why we have a board based on PHPBB 3. It is very convenient, because we can place our source codes there and exchange ideas and ask if someone of us have a problem, we can describe those problem on board and discuss it. After the exercises steadily gained in complexity, we found unfortunately that the publication of several source codes of Java or C+ + classes, no longer so feasible as before.
That is why I wanted to try a system like subversion. My choice was SVN, because CVS compared to SVN is technically much better.
The installation and use of SVN is very well documented. There are many HowTo’s, as well as tutorials which explain how Subversion works. The most important of all this documentations is the book “Version Control with Subversion”. The book is available on the Internet for free and explains pretty much everything what you could need to know about setup and use of SVN.
If someone use Eclipse development environment, I can give you a tip about the SVN plug-in for Eclipse. The plug-in is called Subversion. This plug-in is much better then Subclipse and it is integrated in the Eclipse project. The only thing that you need to get from an external source is a connector for subversion. But those connectors are free and you can download them from the web page of the developer.

Search for traces of the attack

Thursday, June 26th, 2008

in the era of globalization and technological progress, it often happen that Linux computer will be selected as the target of an attack by black hackers. Although the Linux operating system (right configuration required) very safe, but if the system is not properly maintained by the installation of updates and/or incorrectly configured, it can happen that hackers misuse the system for their own mostly illegal aims.
Unfortunately, I could feel those attack on my own skin. It is very important to understand how the attacker got an acces to the system. For this reason, you will need to analyse the logs after the attack. But I must mention here that really good hackers will hide their tracks and it is damned difficult to detect them. Anyway, if you realize that you own system works somehow strange (high traffic externally and internally, hard drives are working constantly, resulting in the slowdown of the computer) it would be the best to isolate temporary your system and examine it.
The first focal points are the log files from /var/log and /root. But you should not forget that you need root privileges to see these log files. It is very important, to analyse the messages of Syslog. For example, you will find these by the iptables blocked connections or who and when logged in the system. The system logs such applications how Samba, Telnet or SSH.
With help of the /etc/passwd / file you can see all existing users in the system. You can verify that an attacker could create an additional user to log in the system later (backdoor). In the file /root/bash_history you will find all commands entered by root in the console. In addition, some hackers try to delete their tracks by deleting log files completely or by editing them and removing their actions from the log files. So you have to make sure whether the log files exist or whether they have large time gaps.
With help of commands such as “who” or “last” you are able to check who is logged into the system, or worked at the system at last.
As a small tip, I would recommend the programm “logwatch”. This software can combine logs and send them to your e-mail address

Vi (but not Wii ;))

Tuesday, March 27th, 2007

Some time ago I choose Linux as my general operating system and that’s why I don’t have much experience with bash. I needed it not so often, because I’m simply a home user and not a developer. Yesterday, I updated the Emeranld Theme Manager and after that I could not load the GUI.
The reason of this problem was an update for Emerald Theme Manager, after that Beryl was unable to work properly.
To solve this problem I needed to edit the auto-start file.
But it was for me not so simply, because I’m a n00bi
I could use gEdit or Kate, but now I needed to work with vim.
With help of lynx I found a lot of different HowTos. With help of them I learned some useful commands and now I use vim more often than Kate or gEdit.

Here are some of important and useful commands:

Create or edit a file:
vi Filename (if the file exist, it will be opened, otherwise it will be created)

Editor-Mode: Insert
Command-Mode: Esc

Quit:
:q (if file was not edited)

:wq (save changes and exit)
:q! (ignore changes and exit)

Save a file:
:w

Delete line:
yy

Insert line:
p

Search:
/search-word – the document will be searched from the cursor position until end of the document

Search and replace:
:%s/search-word/replace-word – search-word will be replaced to replace-word

Syntax highlighting
:syntax on – activating of syntax highlighting
:syntax off deactivating of syntax highlighting

Line numbers:
:set number – activating of line numbers
:no number – deactivating of line numbers

Samba

Monday, January 22nd, 2007

Many of not very experienced Linux users have often problems with network configuration with Linux and windows clients.
In Spite of user-friendly interface of modern Linux it is needed to have some general theoretical and practical knowledge about Linux and internet protocols to be able to establish the network connection with samba.
The Unofficial Samba HowTo :

http://hr.uoregon.edu/davidrl/samba.html will be a big help for those users.