How to Manually Migrate a VZ Container

Have a tricky VPS that vzmigrate just can’t move? Luckily, Virtuozzo (and OpenVZ for that matter) are pretty simple in terms of how the containers are set up. You’re mainly dealing with two locations that data for the container is stored:

/vz/private/$VEID
/etc/vz/conf/$VEID.conf

To manually move a container to another node, all you need to do is copy those folders:

rsync -av /vz/private/$VEID $newserver:/vz/private
rsync -av /etc/vz/conf/$VEID $newserver:/etc/vz/conf

Then on the server server, just start it right up. You do need to have the container’s OS template installed on the new node, as referenced in the container’s config file.
This same process also applies to cloning a VPS, which is particularly useful on an OpenVZ server where the vzmlocal command isn’t available. All you have to do is use similar commands to rsync the container’s private folder to a new VEID:

rsync -av /vz/private/$VEID /vz/private/$NEWVEID
rsync -av /etc/vz/conf/$VEID /etc/vz/conf/$NEWVEID

Then just change the hostname and ip variables in the new container’s config file.

surce: http://www.thevirtuozzoadmin.com/how-to-manually-migrate-a-vz-container/

WordPress 3.3.2 Security Release

It’s time to upgrade all your WordPress installs. WordPress 3.3.2 is available now and is a security update for all previous versions.Three external libraries included in WordPress received security updates:

  • Plupload (version 1.5.4), which WordPress uses for uploading media.
  • SWFUpload, which WordPress previously used for uploading media, and may still be in use by plugins.
  • SWFObject, which WordPress previously used to embed Flash content, and may still be in use by plugins and themes.

Here are a few other bugs addressed in WordPress 3.3.2:

  • Limited privilege escalation where a site administrator could deactivate network-wide plugins when running a WordPress network under particular circumstances, disclosed by Jon Cave of our WordPress core security team, and Adam Backstrom.
  • Cross-site scripting vulnerability when making URLs clickable, by Jon Cave.
  • Cross-site scripting vulnerabilities in redirects after posting comments in older browsers, and when filtering URLs. Thanks to Mauro Gentile for responsibly disclosing these issues to the security team.

These issues were fixed by the WordPress core security team. Five other bugs were also fixed in version 3.3.2. Consult the change log for more details.

Download WordPress 3.3.2 or update now from the Dashboard ? Updates menu in your site’s admin area.

Posted in News. No Comments »

Metatrader on CentOS using wine

1) Enable EPEL Repository

## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

2) install gnome desktop

# yum groupinstall Desktop
# yum groupinstall Fonts
# yum groupinstall Xfce

3) install wine

# yum install wine -y

4) buat vncuser (bisa menggunakan nama anda) untuk menjalankan vnc

# useradd vncuser
# passwd vncuser

ketik password sesuai keinginan (harap dicatat penting)

login (-l diambil huruf awal) vncuser tadi dengan mengetik perintah:

# su -l vncuser

kemudian buat password vnc environtment dengan mengetik:

# vncpasswd

ketikkan password dan konfirmasi password

kemudian pindah ke directory user dengan mengetik:

# cd .vnc
# ls

akan terlihat file passwd
Keluar dari vncuser dengan ketik perintah :

# exit

5) edit vnc server configuration

# nano /etc/sysconfig/vncservers

tambahkan tulisan ini pada bagian paling bawah tampilan halaman Bitvise xterm

VNCSERVERS=”1:vncuser”
VNCSERVERARGS[1]=”-geometry 1024×600″

tekan tombol ctrl+ x untuk keluar dan menyimpan vnc server configuration
tekan y untuk konfirmasi

kemudian mulai aktifkan vnc server dengan mengetik:

# service vncserver start
# /sbin/chkconfig vncserver on

6) Buka VNC Viewer dan login menggunakan VNC server dengan menambahkan :1 dibelakang Main IP, contoh 104.231.111.222:1 dan masukkan password vncuser yang sudah kita buat pada proses sebelumnya.

7) Setelah tampilan GUI VPS terbuka jalankan program firefox, download metatrader dari broker.

8) Buka program Wine File, cari file metatrader yang telah di download, kemudian klik 2x untuk menginstallnya.

9) Buka program firefox, download expert advisors, indicator yang diperlukan, copy ke folder MQL
10) Jalankan Metatrader, login, attach expert advisor.
11) Jangan pernah tutup program Metatradernya supaya EA berjalan 24 jam Nonstop, yang ditutup VNC Viewernya jika ingin keluar dari VPS.