Pages

Thursday, September 2, 2010

My linux counter machine

The Linux Counter website is a good site to share your machine's info.

At Sep 02 2010 16:22:56 GMT, there are
125104
users registered
133701
machines registered
My guess at the number of Linux users:
Twenty-nine million 
 
My number machine is :

We can use a script to registers or updates a machine's info in the counter.
The script allows here.
We can use add, update and send mail with info about your Linux machine.
We can add a crontab job with -c arg.
The user ID must only be able to send mail and write to its own home directory.

Sunday, August 22, 2010

Create html file with bash script using awk

We will present a more special method of using the Linux command line.
This method comes in helping those who need to text or HTML content.
In fact, a combination of Linux commands to get an output.
Suppose we have a list of jpeg files in folder image.
They should exist into HTML to be displayed.
As we know an image has the form:
<img src="image/name_of_jpeg.jpg" alt="" /> 
The list of file is :
11.jpg,12.jpg,13.jpg,14.jpg,15.jpg
My method uses two commands: ll and awk.
First, I will display files:
$ ll | awk '/jpg/ {print $9}'
11.jpg
12.jpg
13.jpg
14.jpg
15.jpg 
I created one variable f1.
In these variables put the beginning of each line:
f1=‘<img src="image‘; 
We add two sed commands.
First, remove the space before the file name.
The second will add the rest to complete the link.
The xargs command is used with echo and print the first part of the link.
Finally we use <<< aaaa.html to output the HTML file.
The full script is here .

Friday, August 13, 2010

OpenGL - OpenGL Utility Toolkit (GLUT) on Fedora 13

The freeglut allows the user to create and manage windows containing OpenGL contexts.
This library allows the user to use mouse, keyboard and joystick functions.

#yum install freeglut-devel
...
Dependencies Resolved
================================================================================
 Package                   Arch        Version               Repository    Size
================================================================================
Installing:
 freeglut-devel            i686        2.6.0-5.fc13          updates      112 k
Installing for dependencies:
 libX11-devel              i686        1.3.1-3.fc13          fedora       1.0 M
 libXau-devel              i686        1.0.5-1.fc12          fedora        13 k
 libXdamage-devel          i686        1.1.2-2.fc13          fedora       8.8 k
 libXext-devel             i686        1.1.2-2.fc13          updates       77 k
 libXfixes-devel           i686        4.0.4-2.fc13          fedora        11 k
 libXxf86vm-devel          i686        1.1.0-1.fc13          fedora        17 k
 libdrm-devel              i686        2.4.21-2.fc13         updates       64 k
 libxcb-devel              i686        1.5-1.fc13            fedora       139 k
 mesa-libGL-devel          i686        7.8.1-8.fc13          updates      486 k
 mesa-libGLU-devel         i686        7.8.1-8.fc13          updates      111 k
 xorg-x11-proto-devel      noarch      7.4-36.fc13           fedora       250 k
Transaction Summary
================================================================================
Install      12 Package(s)
Some tutorials about glut on C programming language: Glut and C tutorial

Sunday, August 1, 2010

Frogatto new game crossplatform...

A new game is very nice and interesting. Named "Frogatto", this game should replace some older games from gnome.
Frogatto is freely available for Mac, Windows, and Linux.
Download it.

Monday, July 19, 2010

Sunflow rendering on Fedora 13

How to install Sunflow ?
It's pretty simple. Download the zip archive from here.
Unzip and edit the sh script sunflow.sh
from the sunflow folder.
By default the script is :

#/bin/sh

mem=1G

java -Xmx$mem -server -jar sunflow.jar $*
If we run this script will have this error :

$ sh sunflow.sh 
Invalid maximum heap size: -Xmx1G
Could not create the Java virtual machine.
The solution is:

$ whereis java
java: /usr/bin/java ...
Now change the script :

#!/bin/bash
/usr/bin/java -Xmx1024M -server -jar sunflow.jar $*
And run it ...

$ sh sunflow.sh 
The result is :

Makehuman 3D on Fedora

Makehuman software installation is simple. You must be superuser, and then use yum:
$su
#yum search mhgui
#yum install mhgui.i686
#yum search makehuman
#yum install makehuman.i686  
It will automatically install animorph-0.3-6.fc12.i686.
A negative aspect of Fedora 13 is the lack of 3D software: Moonlight, Sunflow, Blender 2.5 or Loki Render
It looks like 3D graphics programs are not a priority.

Sunday, July 18, 2010

Fedora 13, FX 5200 and Yo Frankie!

Today I tried to run game "Yo Frankie."
The computer used in this case is older.
It has an FX 5200 video card with 1Gb RAM and processor ASUS motherboard.
I was not expecting a success but he did seem somewhat.
Here are some pictures:



In the "Options" I set no shaders
I must say that without activating the button "Maximize" will not be able to get to the "Back" from "Option".
The operating system is undoubtedly Fedora 13 with default graphics drivers.
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Mesa Project
OpenGL version string: 2.1 Mesa 7.8.1