2012-10-29

How to share a folder on VirtualBox between Host and Guest


Host Debian 6 <> Guest Debian 5



Host:
#nano /etc/rc.local
add line
mount -t vboxsf SHARED /home/user/SHARED


Guest:
You need to add the user name to the vboxsf group on the guest. (the user name that you use to login to the guest).



A minimum of log off and back in is required when permissions are changed.



Host Windows 7 <> Guest Linux Mint 17


Add shared folder




On guest you have to add your user to vboxsf group, otherwise shared folder will be accessible only by root.

# adduser {user} vboxsf




Reboot guest.






2012-10-26

How to NAT eth0 to eth1 on Debian squeeze?





echo "1" > /proc/sys/net/ipv4/ip_forward

You will need to edit /etc/sysctl.conf and change the line that says net.ipv4.ip_forward = 0 to net.ipv4.ip_forward = 1.


#!/bin/sh
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT


/etc/init.d/isc-dhcp-server restart


cat /etc/resolv.conf
namservers


static ip on eth1 192.168.0.254 (option routers 192.168.0.254)
/etc/resolv.conf (option domain-name-servers 172.29.129.214;)



/etc/dhcp/dhcpd.conf

subnet 192.168.0.0 netmask 255.255.255.0 {
    interface eth1;
    range 192.168.0.15 192.168.0.50;
    default-lease-time 6000;
    max-lease-time 7200;
    option subnet-mask 255.255.255.0;
    option time-offset -3600;
    option routers 192.168.0.254;
    option domain-name-servers 172.29.129.214;
}


/etc/init.d/isc-dhcp-server restart

2012-10-24

StarCraft II: Wings of Liberty on Ubuntu

Hardware:

   Intel Core 2 Duo CPU E7500 @ 2.93 GHz x 2
   RAM  8 GB
   GeForce GT 630 PCI-E 2.0  2048MB

OS:

    Ubuntu amd64 12.10  Kernel Linux 3.5.0-17-generic
    Gnome 3.6.0


Back to simple panel Desktop meniu:
sudo apt-get install gnome-panel
Before login, click circle and select "Gnome Classic , No effects"

Set custom time format for the clock in the right top corner,
 Default is just not right!
gsettings set com.canonical.indicator.datetime time-format custom
gsettings set com.canonical.indicator.datetime custom-time-format "%Y-%m-%d  %A <b>%H:%M</b>"


Install Nvidia driver:

Nvidia module should be build during installation, so it needs:

sudo apt-get linux-source-3.5.0
sudo apt-get linux-headers-3.5.0-17-generic
sudo apt-get build-essential

If this part is skipped (install driver without building tools), it result (poor resolution) and nevidia-settings:




sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current


Install wine:
sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine
(wine-1.5.15)

Set graphic memory size, to prevent, related crashes:

run regedit
got to
 HKEY_CURRENT_USERS create a "Direct3D" key under "HKEY_CURRENT_USER/Software/Wine".
 Within "Direct3D", create a string value "VideoMemorySize" and set the value, in my case 2048 (2 gb)

And Now! The Most Important part Install StarCraft-II-Setup-enGB.exe :)


Summary:

Unfortunately It not perform as well as I would want...
At the beginning of the game it works almost perfect, problem begins at the fight moments!
Generally You can not properly organize Your army during The fight, cause the view is freezing.
I like everything else on Linux better, bud for this game a have to use Windows XP .
From time to time I will check performance with software updates...
The day when the Issue will be resolved, it will be the same day when Windows XP no longer on my PC... =)
P.S. graphics settings on both systems was equal 

StarCraft II: Wings of Liberty on Ubuntu **UPDATED**


Terran techtree...

2012-10-23

post number 1 

no usefull info ...