Sep 20 2011

postfix admin alias dla całej domeny

Dodajemy domenę przez  “Nowa domena”

Dodajemy alias, jako alias wpisujemy *

W pole do wpisujemy *@docelowa.domena.com

 

Sep 2 2011

mysql cluster

Pokaż zajętą pamięć: ndb_mgm , ALL REPORT MEMORY

Pierwsze uruchomienie clastra lub zmiana parametrów:

  • na managerze /etc/rc.d/rc.ndb_mgmd reload
  • na datanode po zmianie parametrów: ndbd –initial
  • na mysqlnode (API): /etc/rc.d/rc.mysqld restart

 

May 16 2011

Jedi Academy Tweaks

Useful Player Settings
helpusobi 1 – enable cheats

god – god mode

/bind MOUSE2 “+movedown” – Binds the right mouse button to crouch, useful for many things. In Particular aiming is made easier.

/rate “25000” – Helps game stability, don’t attempt something like 999999 it will just ruin it, stick to 25000.

/com_maxfps “125” – Helps the general game’s performance. (Try not to go over around 220 with it, because the game ends up running faster than the server and you will get a ”connection interrupted”.

/cg_fov “97” – Zooms out of your character more and so provides you with more view to easily see and so hit your opponents.

/cg_crosshairsize “8” smaller crosshair, better.

/cg_hudfiles “1” – Most people won’t like this at the start, but it makes the game far better imo, better view. It removes the hud with simple text.

/cg_drawTimer “1” – The amount of the time the map has been running.

/cg_drawfps “1” – Draws your fps (frames per second )

/cg_drawteamoverlay “1” – Let’s you see your team-mates hp during tffas.

/cg_saberTrail “0” – Removes the Trail left by your saber which also allows you to hit your opponent a bit more easily. This makes kata’s not look as good but that’s mostly the only downside.

FPS GUIDE

Note: You do not need to use all of the following commands they are mainly only for improving your fps. Need to warn you that some of these commands will make you game look somewhat dull so please read the description of a command before using it.

/cg_drawfps 1 – Enter this before starting.

/r_OverBrightBits “0” – This command defines the brightness level of the map. The higher the number, the brighter the map becomes (0 being the lowest possible value). For some reason this command eats up a shit load of frames. I had it set to 16 and when I tried changing it to 0, I gained about 20-30 fps (on an AMD XP 1600+ / GeForce 3 Ti200 combo). So if you need the fps boost, set this to 0. Your game will appear extremely dark at first, but don’t worry, you can brighten it up again with r_intensity and r_gamma which are explained next.

/r_intensity “1.8” – This command increases the brightness of texture colors. With a low r_OverBrightBits, you may have to boost this to around 2 (default is 1). Keep experimenting until you find a brightness level you are comfortable with.

/r_gamma “2” – This is the master command that adjusts the brightness level of everything in the entire game. All splash screens and menus, along with the actual game play is affected. The default value is 1, but you should usually make this higher, depending on the brightness of your monitor (and to compensate for a low r_OverBrightBits setting). Try 1.4, 1.6, 1.8, 2 etc until you find a good setting. When setting r_OverBrightBits to 0, you’ll have to juggle around between r_intensity and r_gamma until you find something you are comfortable with.

/r_vertexLight “1” – This is the command to enable vertex lightning. It removes many of the special effects and makes the map look somewhat dull. You should experience a decent fps boost with vertex lighting enabled.

/r_picmip “3” – This is the texture detail command found in Setup / Video. The higher the number, the less detail you will have. 5 is a good value, because it blurs out the textures so you can see your enemies clearer, but if that’s too much for you, try 3 or 4. The command defaults to 1 and can go up to 16. If you have simple items enabled (explained next), you’ll want to set picmip to 3. Anything higher and some items become blurred beyond recognition.

/cg_simpleItems “1” – This command makes the items on the map “simple” by changing them into 2d icons from 3d models. Set this to 1 to gain fps. If your r_picmip setting is above 3, some of the items will appear blurry with simpleitems enabled.

/com_maxfps “120” – This caps your frames (can be seen with cg_drawFPS 1) at 120 fps. A strange physics algorithm in the q3 engine makes it so your characters will have the best possible movement/gravity at a constant 120 fps. Strafe jumps, for example, go the longest and highest when fps is capped at this magic number. The default value is 85.

/r_displayRefresh “120”
– Sets the display refresh rate of your monitor. You’ll have to find out what refresh rates your monitor supports for each resolution, and use the highest refresh rate you can. Many monitors use 120 for 640×480 resolution, which works out perfectly with a com_maxfps setting of 120. The default setting is 0.

/r_subdivisions “80” – The higher number, the less curves there will be in the map, with values ranging from 0-80. If you need fps try 80. If you can spare some, stick with default 4 or 20.

/r_texturebits “16”

/r_colorbits “16”

/r_depthbits “16” – Makes the color depth of the game 16 bits. Change these values to 32 for a smoother picture. If you need the fps, stick with 16.

/r_lodbias “2” – This is the Geometric detail setting found in Setup/Video. Keep it at 0 if you don’t like square models. 1 is default and 2 is the lowest quality (more fps).

/r_fastsky “1” – When set to 1, This command disables the sky, giving you better fps.

/r_textureMode “GL_LINEAR_MIPMAP_NEAREST” – Uses Bilinear filtering which will give you better fps.

/r_mode “3” – Sets your resolution to 640×480, a suggested setting if you need the fps. 4 = 800×600, 5 = 1024×768, 2 = 400×300 etc.

/cg_shadows “0” – Shadows underneath the models take up FPS and they will look ugly anyway with a picmip of 3-5.

/com_hunkmegs “128” – This is the command that tells the game how much RAM to reserve. It should generally be about 1/2 or 1/3 of your total ram. The default is 56.

/cg_drawcrosshair “-6” – This command will select your crosshair, -6 being a red dot. The dot doesn’t work on all maps and will appear as a grey box sometimes. To select the crosshairs, you can choose from 1 through 9, or even experiment with some random negative values.

/cg_crosshairsize “8” – The size of the crosshair. I use 8 with the red dot… default is 24.

/cg_fov “97” – This is the command for your field of vision. The default setting is 80. Higher values will give you a larger perspective of your surroundings. You can go all the way up to 300 or something in q3, but 97 is the max in jk2/ja for reasons unknown.

/cg_marks “0” – Disable splash damage/projectile marks on walls (can save fps). This can be set in Setup/More Video. This well known q3 command doesn’t seem to work in ja.. god knows why. I set it to 0 yet the marks still show up.

/cg_gibs “0” – “Gibs” refers to the body parts and blood that splash all over when someone explodes (in q3). Gibing someone takes up fps and clouds up the view. I’m not exactly sure what special effects this command applies to in jk2/ja (since there are no bloody explosions), but the command is present, so set it to 0.

/cg_noprojectiletrail “1” – Disables rocket smoke trails. Smoke trails eat up valuable fps and can be an annoyance.

/cg_thirdperson “1”
– Setting this to 0 will put your perspective in 1st person.

/cg_drawGun “0” – Clears the gun drawings on the screen (can only be noticed in 1st person). This setting allows for a small fps boost. Some people like to see the guns, others find them distracting. It’s up to you.

/cg_hudfiles “1” – The default is 0 which will display a graphical mana and health hud. I highly recommend switching this setting to 1 for a simple text hud. It takes up less space on the screen and is easier to read.

/cg_drawTimer “1”
– The timer is displayed in the upper-right corner of the screen. Enable it, you need to be able to see the elapsed time in the game.

/cg_drawAttacker “0” – Disables the 2d picture of the person who’s shooting you from popping up. Some people like to leave this option on 1 but I find it to be distracting.

The following commands will disable screen bobbing when you move, which can be a detriment to your aim/be distracting. Set them all to 0 for a smooth ride (can only be noticed in 1st person).

/g_bobup “0”

/cg_bobpitch “0” and /cg_bobroll “0”

/cg_runroll “0”

/cg_runpitch “0”

/cg_forcemodel “1” – This command will change all players’ skins in the game to the current model you’re using. Along with making it easier on the game’s memory, this will give a nice fps boost to a slow computer.

/model “reelo” – This is the command to change your model. You can choose any model you want by their name. Reelo is the fat ass guy so he may seem easier to see/hit.

/cg_drawteamoverlay “1” – Tells your teammates’ health in the upper-right color of the screen. Use values of 2 or 3 to change its position.

/cg_autoswitch “0” – I’ve noticed some people keep auto weapon switch on. They are newbies.

/cg_aurashell “1” – This defaults to 1 but make sure you don’t turn it off (like I did before) or force seeing won’t work. Wall hackers pay no attention to this.

/cg_speedtrail “0” – Setting this handy command to 0 disables the annoying speed trails that appear when force_speed is enabled. Along with a small fps increase, I find it a lot easier to speed with the trails turned off. It almost seems less lagged.

/cg_repeaterorb “1” – This setting changes the repeater projectile into a shinny sphere.

/cg_drawRadar “0” – Set this to 0 to clear the useless/distracting radar which is on by default.

/s_volume “0.1” – Sound effects volume level found in Setup/Sound. Alter from 0 to 1.

/r_dynamicglow “0” – Setting this to 1 creates a fancy glowing lightsaber effect at the cost of fps. Keep it at 0 to save frames.

/cg_rendertotexturefx “0” – Setting this command to 0 takes off the faggoty “bubble effect” that appears with force push/pull. Some users (cards) have this set to 0 by default for some reason, but if you see the effect and want it gone, here is your fix. The fps boost is small, but the stupid effect gets annoying after a while, especially in push/pull newbie infested servers.

/s_musicvolume “0”
– Music volume level found in Setup/Sound. Set this to 0 for obvious reasons.

PING GUIDE

/rate “25000” – Optimal setting for a high speed internet connection. Use 3000 if you’re on dial up. If your high speed connect sucks, you might want to experiment with values lower than 25000.

/snaps “40” – Any server admin who knows what he/she is doing will set the sv_fps to 30 for a smoother ride. You’ll need to set your snaps to 30 or higher to take full advantage of this. The default snaps/sv_fps settings is 20. If you play with 20 snaps on an optimized server with 30 sv_fps, your ping will be much higher (possibly 20-30ms higher) than it would be if your snaps setting is equal to or greater than 30. Go with 40 just be safe.

/cl_timenudge “0” – This command compensates for lag and will make your ping feel lower at the expense of choppy enemies. Values are always in the negatives, with 0 (off) being the default. Experiment with this setting depending on your ping/connection. -20 is a good setting for a 60-70 ping, -30 for 100 ping, etc. If the enemies are too choppy for you, keep this at 0.

/cl_maxpackets “100”
– If you have a low ping go with 100. If you’re struggling for a decent ping, you might want to try 30 – 50.

Mouse Settings

The mouse settings are different from person to person depending on your particular mouse so you will need to play about with these commands until you get settings you are comfortable with

/sens – Regulation frequency movement of mouse

/m_yaw – Regulation frequency movement horizontal of mouse

/m_pitch
– Regulation frequency movement vertical of mouse

Apr 12 2011

Import bazy Teryt do MSQL

Baza danych teryt jest dostępna publicznie na tej stronie.

Ściągamy i rozpakowujemy pliki do jakiegoś katalogu dostępnego także z poziomu przeglądarki www.

Ściągamy plik Unserializer.php

Pliki php do importu simc.php terc.php ulic.php wmrodz.php
Tworzymy bazę teryt w mysql-u:teryt.create.sql_.
Dodajemy użytkownika z uprawnieniami (przynajmniej INSERT) do bazy teryt.
Po kolei uruchamiamy skrypty simc.php terc.php ulic.php wmrodz.php z przeglądarki.
Skrypty wykonują się dość długo i zajmują sporo pamięci, ja musiałem na czas impotu zmienić wpisy w php.ini (i zrestartować apache’a)
max_execution_time = 240 ; Maximum execution time of each script, in seconds
memory_limit = 1024M ; Maximum amount of memory a script may consume (128MB)

Dla leniwych: Baza danych teryt w formacie MYSQL (stan na 2011.04.12.)

Mar 26 2011

How to permit case-insensitive URLs with Apache

When mod_speling is installed, it may be turned on for a particular scope (such as a directory, virtual host, or the entire server) by setting the CheckSpelling directive to On.

Mar 23 2011

samba windows7 i “NT_STATUS_ACCESS_DENIED”

Control Panel - Administrative Tools - Local Security Policy 
Local Policies - Security Options
Network security: LAN Manager authentication level 
Send LM & NTLM responses 

Minimum session security for NTLM SSP 
Disable Require 128-bit encryption
Mar 18 2011

Instalacja Windows7 z USB (wersja 2)

Pobierz usługę  Image Mastering API v2.0

Pobierz Windows7-USB-DVD-tool.exe

Mar 18 2011

Instalacja Windows7 z USB

Potrzeba:

obraz Windows 7

USB Pen Drive (>=4GB)

MBRwiz do pobrania stąd.

1. Sformatuj PenDrive

2. Otwórz command Prompt ( Start Menu -> run -> cmd ) i  wpisz  convert e: /fs:ntfs (gdzie e: to litera dysku USB)

3. Podmontuj obraz dysku Windows 7

4. w command prompt wpisz:

mbrwiz /list (zanotuj numer twojego PenDrive’a)

mbrwiz /disk=X /active=1 (X to numer dysku USB)

exit

5. Otwórz drugi command prompt i wpisz

y: (litera dysku na którym jest podmontowany Windows 7)

cd boot

bootsect /nt60 E: (gdzie E: to litera dysku USB) -jeśli robisz to na komputerze z Windows Vista lub nowszym

bootsect /nt52 E: (gdzie E: to litera dysku USB) -jeśli robisz to na komputerze z XP

6. Skopiuj wszystkie pliki z Windows7 na USB

7. Uruchom ponownie komputer z dysku USB

Mar 17 2011

File does not exist: … favicon.ico

# Don’t bother looking for favicon.ico

Redirect 404 /favicon.ico

# Don’t bother sending the custom error page for favicon.ico

<Location /favicon.ico>

ErrorDocument 404 “No favicon

</Location>

 

Mar 16 2011

Virtual PC na Windows7

Zainstalować Windows Virtual PC.

Zainstalować Windows XP Mode (pl).

Przejdź do folderu C:\Program Files\Windows XP Mode\

Zmień właściciela i pełne prawa do tego pliku na swojego użytkownika.

Uruchom  Windows Virtual PC

Kliknij na Utwórz Maszynę Wirtualną.

Nadaj nazwę i wybierz lokalizację (dowolne).

Wybierz “Użyj istniejacego wirtualnego dysku twardego”

i wybierz “C:\Program files\Windows XP Mode\Windows XP Mode base.vhd”