Speed up your Linux – the whole story

January 14, 2010 by \dev\null · Leave a Comment
Filed under: HowTo, Tips & Tricks, linux 

Then I was lead developer of .NET Linux Distribution, we have implemented very good technologies to it. Two of them was Brain Fuck Scheduler and pre-linked binaries. Future of this distribution development was freezed and now i want to share these two ideas to open source world, on how to speed up your linux distribution to actual speed  it deserves. CFS implementation to the kernel did big fail on desktop computers era. The Brain Fuck Scheduler is replacement for this, to correct it. The whole speed boost will be increased by the 40-60% (percent). The patchset for the kernel made by Con Kolivas, he was a kernel developer before. Lately he quit kernel mainstream development. On Apc magazine interview title is written “Linux is  burdened with enterprise crap that makes it run poorly on desktop PCs, says kernel developer Con Kolivas who recently walked away from years of work on it“.

Read more

GTA San Andreas Multiplayer on Linux

January 14, 2010 by \dev\null · Leave a Comment
Filed under: Games, HowTo, Tips & Tricks 

Hi, there!

I was wondering how to write a good HowTo about running GTA San Andreas Multiplayer (SA-MP) on linux using wine, because other commercial solutions from CodeWeavers, Bordeaux, TransGaming simply SUCKS! EofNET is starting new service for gamers called “Unlimited Gaming Zone” its retro style games for enthusiasts, n00bs and no-lifers. The goal of this service is to test and improve Linux emulation on FreeBSD by running various game servers etc…  There are few people who want to play games on linux too, so now I’m responsible for this. I have to write good guides on running such stuff. The first game server EofNET is testing is SA:MP (GTA San Andreas Multiplayer).

I think people who reading this shit have good enough skills on how to install wine and winetricks. I will write simple HowTo on how compile it and configure on generic linux distribution it means “universal install”. By the way everything is tested on the latest wine development version 1.1.33. Make sure you have all required development files and build tools. Install development tools on ubuntu/debian apt-get install build-essential.

NOTE! If your distribution are not configured to use sudo, then do these commands as super user (root).

Downloading and installing wine [section 1]

# sudo wget http://ibiblio.org/pub/linux/system/emulators/wine/wine-1.1.33.tar.bz2
# sudo tar xjf wine-1.1.33.tar.bz2
# cd wine-1.1.33
# ./configure && make && make install

If everything is installed, we need to run winecfg and configure some points of wine, also it creates wine prefix.

Tweaking Wine [section 2]

Run as normal user:

# WINEPREFIX=$HOME/.wine winecfg

On the applications tab set Windows version to XP, on the graphics tab turn off emulate desktop, set Vertex Shader Support to None also set off Allow Pixel Shader. On the audio tab, select alsa and turn off others, set hardware acceleration to emulation, Press Apply and OK. That’s all we have configured a basic wine requirements to run GTA San Andreas Multiplayer. But now we need to install necessary native libraries, we will do this using winetricks tool.

# sudo wget http://www.kegel.com/wine/winetricks -O /usr/local/bin/winetricks && chmod +x /usr/local/bin/winetricks

Now we need to run winetricks with the following parameters as normal user, to install required libraries, fonts and other stuff also set some opengl parameters. Also be sure if you have cabextract tool on your distribution.

# /usr/local/bin/winetricks d3dx9 fontfix gdiplus mfc42 msi2 msxml6 riched30 tahoma vb6run vcrun6 vcrun6sp6 allfonts glsl-enable orm=fbo winxp

Apply this registry tweak for opengl:

WINEPREFIX=$HOME/.wine wine regedit opengl-tweak.reg

GTA Configuration

Install GTA San Andreas if its not already installed, if installed then download and install SA:MP client if its not installed, if installed you will need just select GTA directory after you launch it. Okay now we need to download and overwrite some SAMP files.

Go to GTA directory where gta_sa.exe is and do the following things:

# wget http://null.people.bsdnet.net/stuff/samp/asiloader.rar
# rar x asiloader.rar (press y to overwrite files)
# mv samp.dll samp.asi

That’s All! Now you can run your GTA San Andreas Multiplayer with this command from GTA directory:

# WINEPREFIX=$HOME/.wine wine samp.exe

Add new server gta.games.eofnet.lt and press run!

Other Notes! GTA San Andreas must be version 1.0 to work with SA:MP if you have version 2.0 downgrade it with this tool.

FreeBSD critical security patch arrived

December 5, 2009 by \dev\null · Leave a Comment
Filed under: FreeBSD, Patches, Security 
I.   Background

The run-time link-editor, rtld, links dynamic executable with their
needed libraries at run-time.  It also allows users to explicitly
load libraries via various LD_ environmental variables.

II.  Problem Description

When running setuid programs rtld will normally remove potentially
dangerous environment variables.  Due to recent changes in FreeBSD
environment variable handling code, a corrupt environment may
result in attempts to unset environment variables failing.

III. Impact

An unprivileged user who can execute programs on a system can gain
the privileges of any setuid program which he can run.  On most
systems configurations, this will allow a local attacker to execute
code as the root user.

Of course there is no workaround is available.
But finnaly the official patch for FreeBSD is arrived!
[FreeBSD 7.x]
# fetch http://security.FreeBSD.org/patches/SA-09:16/rtld7.patch
# fetch http://security.FreeBSD.org/patches/SA-09:16/rtld7.patch.asc

[FreeBSD 8.0]
# fetch http://security.FreeBSD.org/patches/SA-09:16/rtld.patch
# fetch http://security.FreeBSD.org/patches/SA-09:16/rtld.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/libexec/rtld-elf
# make obj && make depend && make && make install

There are few exploits circulating on the net that uses such vulnerability to gain access to local root on most FreeBSD systems.

Some fun photos

November 7, 2009 by \dev\null · Leave a Comment
Filed under: Fun 

There are some cute photos of the day ;-)

Also i’ve found a very good open source tool for creating flash based statistics its called Open Flash Chart a php class is already included in the package.

EofNET status 2009 Q4

November 6, 2009 by \dev\null · Leave a Comment
Filed under: News, Projects 

We have moved EofNET’s main site and its web resources to hetzner datacenter, Germany for better performance. Because Lithuanian ISPs sucks ass. So it’s open again. Now needs to move LAB06 subversion repository to this new server, and thats all.

Free Shells service is prepared for new users and its open again for new registrations. Feel free to register your shell account at cost $10 LOL its FREE AGAIN! :-) . For this quarter of the year we will try to finish almost every project planned for this year including long waited BSDNet re-born and release of .NET Linux as open source variant. We are also planning some major upgrades to mp3talpykla.com project. Also it-forumas.lt is growing too, getting more and more users every day. Now my job is to rewrite EofNET Unix systems moderation board for Free Shells project, the old one was written simply with bash+cdialog. The new one i expect to write with PERL and Ncurses module.

As of the IRC reconstruction i’m planning to fully reconstruct #ubuntu @ aitvaras staff, and some channel privilegies including some gnome bot improvements.

By the way, then EofNET become a commercial organization we got more and more requests for the enterprises so it consumes a lot of time. I’ve don’t have a lot of time now for open source projects and for community, because I’m very busy with other commercial projects and jobs that I’m working on the past days.

It was a small introduction to the jobs i’m working on, thanks for reading.

EofNET is closing down

October 20, 2009 by \dev\null · Leave a Comment
Filed under: News 

EofNET Networks main web site and it’s internal laboratory is closing down soon. No no, no and no it’s not a bancrupcy file, it’s a big fail ! We are waiting to see it in a fresh view in next month! ;-)

Opera 10 QT4 for linux

September 4, 2009 by \dev\null · Leave a Comment
Filed under: Tips & Tricks 

As we know Opera Software recently have released its browser’s new major version. By default Linux distribution vendors offers opera 10 only based on trolltech QT3 toolkit. So if you want to use Final release of opera 10 based on trolltech qt4 you need to download these files directly, as they are not officially published (even on opera’s main page). Who knows why ?

Download links bellow are for your Linux distribution…

Debian/Ubuntu .deb package:
ftp://ftp.opera.com/pub/opera/linux/1000/final/en/i386/opera_10.00.4585.gcc4.qt4_i386.deb

Red-hat/Fedora/Centos or other RPM based distributions:
ftp://ftp.opera.com/pub/opera/linux/1000/final/en/i386/opera-10.00.gcc4.qt4.i386.rpm

Bundled with QT4, archives for other Linux distributions:
ftp://ftp.opera.com/pub/opera/linux/1000/final/en/i386/opera-10.00.gcc4-bundled-qt4.i386.tar.bz2

Without QT4, archives for other Linux distributions:
ftp://ftp.opera.com/pub/opera/linux/1000/final/en/i386/opera-10.00.gcc4-qt4.i386.tar.bz2

I think users will know how to install it, else write a comment so i can make a guide for you. ;-)

New project arrived

September 3, 2009 by \dev\null · Leave a Comment
Filed under: News, Projects 

I’ve have been working few days on the new project named “IT Forumas“. It will be dedicated for Lithuanian people community. They can discuss, ask or more about Information Technologies related things and so on. The forum is based on the well known phpBB version 3 forum board. I hacked it for SEO optimizations also added ability to log-in via “face-book connect” based application. Users can easily connect to it and start discussing about the problems they have or help another people to solve them. By now the project is officially open!

Also i’ve also updated radio-show.lt project with new videos, etc…

In this week we are starting new project “Web hosting panel and automated services” for our professional hosting company, more details will come soon.

Also i’m planning to re-born EofNET Free Shells service for everyone, i just need to get some time for it.

Thats all for now! :-)

r8169 – RTL8111/8168B Linux driver

August 22, 2009 by \dev\null · Leave a Comment
Filed under: Servers 

I’ve got some problems yesterday with the new server that runs CentOS 5.3 release, as it uses the old r8169 kernel module driver, i think I’m not only one who discovered this kind of bug. The default driver works very bad as it lacks new chipsets support. It have very big problems with simultaneously connections and drops lots of packets. The ifconfig shows RX packets:273938499 errors:0 dropped:43234159811128 overruns:0 frame:0. After transmitting more and more data it become more and more unstable, after transmitting ~300gb it became terrible unstable. Debugging also showed a huge IRQ interrupts sharing problem. So I’ve got the solution of manually upgrading this driver to the official realtek source, that have been updated recently (2009.07.30). After the kernel module driver update everything works fine.

This is a small guide how to upgrade it on CentOS 5.3:

First download the kernel module driver source code from here to /usr/src then install kernel headers required for module build:

# yum install kernel-devel
Install new kernel module from source
# cd /usr/src&&tar xjf r8168-8.013.00.tar.bz2&&cd r8168-8.013.00&&make install
Reload module driver
# rmmod r8169 &&modprobe r8169

Thats all.

I think it will help someone too ;-)

Upgraded ebaze.lt server

August 21, 2009 by \dev\null · Leave a Comment
Filed under: News, Projects, Servers 

Today we have finished upgrading ebaze.lt corporate hosting server.

New hardware specifications are:

8X Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz CPU
12GB DDRIII RAM
2 x 1500 GB SATA-II HDD
1 GBit OnBoard Lan
Server is hosted in Hetzner datacenter, Germany.

New software specifications are:

CentOS 5.3
Apache 2.2.13
PHP 5.2.10 (fastcgi) + suPHP + per user php.ini
ProFTPD Version 1.3.2a
Dovecot 1.2.4

And many more…

Of course it lacks optimizations/improvements that i will do this or next week. All web projects are moved to this new server. Now our projects runs perfectly than was on old server, cpu load was terrible, hanging around ~70, lol. Now need to move other services/applications/data and everything will be finished.

Server System information

Next Page »