Testiranje swap-a na USB-u

Poznajemo performanse računara, ali i USB-a u verziji 2. Ne očekujem da će se nešto revolucionarno desiti, posebno što koristim 4GB memorije, a sistem ponekad tek ponekad pređe 3gb, ali hajde da probamo.

Za početak postavimo konfiguraciju:

If you don’t have time to change an existing system, than at least, make sure that you use a USB stick for your swap space. It increases performance because

  1. swap is on a different device. It does not block the access to your harddisk to operate.
  2. swap performance is much faster on USB stick. Continue reading “Testiranje swap-a na USB-u”

Kopiranje VPN konekcije Windows 7

Ukoliko imate potrebu da kopirate VPN konekcije sa računara na računar, postojeće konekcije ćete naći u fajlu:

C:\Users\%USER%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk

Fajl je običan tekst koji se može editovati. Struktura je ista kao i kod prethodnih verzija vindouza, samo što je lokacija fajla promenjena.

Ukoliko koristite XP ova lokacija je:

C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk

JavaScript Module Pattern

Smanjivanje broja globalnih promenljivih i njihovo premeštanje u lokalne (privatne) promenljive donosi više reda u svim jezicima, pa tako i u JavaScript kodu. Ako znamo da se na stranicama često nalazi više različitih skripti ovakvo označavanje ima više smisla.

Continue reading “JavaScript Module Pattern”

Linux Kernel 3.0 is out (with KVM and Xen included)

Last week, Linux kernel father Linus Torvalds announced the release of version 3.0 of the Linux Kernel. This release does not introduce any binary incompatibility neither major changes.

Virtualization.info already covered the 3.0 release with regards to the integration of both KVM and Xen in the mainline tree of the kernel sources.

 

For Xen, this release means no more patches to the Linux kernel in order to make Linux virtual machines run as guests. In fact, Xen is a Type-1 hypervisor, so hosted operating systems need to have proper support built-in to run smoothly on virtualized hardware. Until now, a substantial Linux kernel patch had to be applied in order to add this support in the linux guest.

KVM, instead, is a Type-2 hypervisor, which runs itself on top of and operating system.

A full list of Xen related changes in the Linux kernel can be found here on the Xen wiki.

http://virtualization.info

Configure linux for windows users

0 Install general software for linux ubuntu

http://tips-linux.net/en/linux-ubuntu/linux-distribution/install-ubuntu

 

1 Theme Windows 7

Download Here

Extract and execute

$ ./GUIInstall.sh

 

2 Software

3 Enable windows button

Press ALT+F2

gconftool-2 –set /apps/metacity/global_keybindings/panel_main_menu –type string “Super_L”

Now you can lauch the main menu with the windows button

 

If you really miss windows install a virus XD. After all this configurations your linux will be like this:

windows linux

 

Problem sa nedostajućim “apache parent” procesom

Ukoliko dobijate status da apači server nije startovan, a start ne uspeva jer:

apache port 80 already in use

problem je zbog nepostojećeg osnovnog-roditeljskog (parent) procesa apači servera. U slučaju problema sa konfigurisanjem servera (najverovatnije zbog memorije) prvo će pući osnovni proces, a zatim jedan po jedan i ostali (child) procesi sve do momenta kada ne ostane ni jedan. Napomena – tekst se odnosi na linuks servere, tako da eliminišemo desktop probleme tipa: skajp je zauzeo port 80 i slično.

Continue reading “Problem sa nedostajućim “apache parent” procesom”

XenServer – Adding a local Iso Storage

Login to your Xenserver with ssh and create a iso folder

mkdir -p /var/opt/xen/iso_import

Then, create the ISO store like this

xe sr-create name-label=”Local ISO” type=iso device-config:location=/var/opt/xen/iso_import/ device-config:legacy_mode=true content-type=iso

If You want to install Debian Lenny, as defined VM, maybe is better to use Remote URL:

http://ftp.de.debian.org/debian/