vineri, 26 noiembrie 2010

Savage Server and Selinux under Fedora 14

If you want to install fedora Savage Game Server 14, you will have problems with SELinux.
Use this commands to fix it.
$ chcon -t execmem_exec_t '/home/mythcat/SavageSer/silverback.bin'

joi, 25 noiembrie 2010

Fun with F-Spot 0.8.0 and sqlite3

Today I focused on the F-Spot 0.8.0. I knew that contains a database that keeps information about the pictures.
I found the database and tried a few commands:
$ cd .config/
$ cd f-spot/
$ ls
addin-db-001  photos.db
Once I found database, I started SQLite3. See the example below:
$ sqlite3  photos.db 
SQLite version 3.7.2
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
exports         meta            photo_versions  rolls         
jobs            photo_tags      photos          tags          
sqlite> .schema photos
 base_uri  STRING NOT NULL, 
 filename  STRING NOT NULL, 
 description  TEXT NOT NULL, 
 roll_id   INTEGER NOT NULL, 
 default_version_id INTEGER NOT NULL, 
 rating   INTEGER NULL 
CREATE INDEX idx_photos_roll_id ON photos(roll_id);
sqlite> select * from photos;
It is easy to use and implemented various python scripts.

duminică, 21 noiembrie 2010

Linux and denial of service - DoS

A denial-of-service attack (DoS attack) or distributed denial-of-service attack (DDoS attack) is an attempt to make a computer resource unavailable to its intended users.
We can see more on wiki

On Linux we can see if an attack is attempted with this:

netstat -ant | grep SYN_RECV | wc -l
This is an indication of a denial of service (DoS) attack against your system's X port .

It is likely one atack against a public service such as a web server or mail server .

luni, 15 noiembrie 2010

Is evil gok !?

I tried to use Fedora 14 Gok to login after I logged with gokand selinux warned me about: gok trying to access /var/games, gok using NIS (yp), preventing /usr/bin/gok "read" access on /var/account and preventing /usr/bin/gok "read" access on /var/www. Is it Gok evil or not !?

joi, 11 noiembrie 2010

Notifications in Fedora 14

We use the following command
$ notify-send  "This is some text"
$zenity --info --text "This is some text"
This will display a text balloon "This is some text".
The problem appears when we want to display the output of a command.
For this I used a python script. Here's the source code:
#!/usr/bin/env python
import os
import sys
import pynotify
pynotify.init("Output comand")
print arg
s = os.popen(arg).read()
n = pynotify.Notification("Output",s)
If you wish to use a compound command, then you will need to use quotes.
For example, we use the command "ls-a 'as follows:
$python "ls -a"
This is just a small example, you can create more complex applications.

sâmbătă, 6 noiembrie 2010

How Install Firefox 4 on Fedora 14.

Firefox is one of the latest versions of the Mozilla .

It is currently available in two repositories - Remi and Spot.

See the next steps if you want install Firefox 4.

First , go on super user shell.

# wget -O /etc/yum.repos.d/fedora-firefox4.repo

Now, you can install Firefox 4

# yum --enablerepo fedora-firefox4 install firefox4

That is all.

Fedora 14 and Blender 3D

It is a great disappointment to me that Fedora 14 comes with Blender 3D version 2.49b-10.
I expected a pleasant surprise to see version 2.5.
Here is the result:

# yum search blender
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
updates/pkgtags                                                   |  10 kB     00:00     
============= Matched: blender =====================
blenderplayer.i686 : Standalone blender player
LuxRender-blender.i686 : Blender export plugin to LuxRender
blender.i686 : 3D modeling, animation, rendering and post-production
spe.noarch : Python IDE with UML,PyChecker,Debugger,GUI design,Blender & more
libpano13-tools.i686 : Tools that use the libpano13 library
yofrankie-bge.noarch : 3D Game with characters from Big Buck Bunny movie
Of course, you can use version 2.5 from the official site.