Archive for October 2013

Installing VMware Tools for Arch based distros

by in , , 0

  1. Login as root
     su 
  2. Update your system
     pacman -Syu 
  3. Install VMware tools
     pacman -S open-vm-tools open-vm-tools-modules 
  4. Enable VMware tools
    systemctl start vmtoolsd
    systemctl enable vmtoolsd
    cat /proc/version > /etc/arch-release 
  5. Install Mouse and Display Integration
    pacman -S xf86-input-vmmouse xf86-video-vmware svga-dri 
  6. Open following file to configure it
     vim /etc/X11/xorg.conf.d/20-gpudriver.conf 
    Insert following line
    Section "Device"
            Identifier "Card0"
            Driver     "vmware"
    EndSection
    
  7. Get Enabled Copy & Paste between Host and Guest
     
    pacman -S gtkmm 
  8. Exit from root and then enable the VMware-Tools Integration
    exit 
    vmware-user-suid-wrapper
    

Ref:

Set hardware clock to UTC on Windows

by in , 0

မေ့သွားတဲ့အခါ ကွကို ပြန်ဖတ်ဖို့ ရေးထားတာပါ။ တကယ်လို့ vmware မှာပဲဖြစ်ဖြစ် dual boot မှာ ဖြစ်ဖြစ် linux တို့ mac osx တို့ တင်တဲ့အခါ တခါမဟုတ်တခါတော့ vm တွေထဲမှာ အချိန်လွဲနေတတ်ပါတယ်။ linux os တော်တော်များများက bios ကအချိန်ကို UTC အနေနဲ့ ယူပြီး time zone နဲ့ ပြန်ပြောင်းပါတယ်။ ဝင်းဒိုးတခုပဲ ကပေါက်တိကပေါက်ချာနဲ့ RTS ကို local time ထားတာဆိုတော့ ရှိသမျှ vm တွေ မှာ လိုက်မချိန်းပဲ၊ ဝင်းဒိုးမှာပဲ ချိန်းလိုက်တာ ခေါင်းကိုက်သက်သာပါတယ်။ window registry ထဲမှာ

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001 


အဲဒါ သွားထည့်လိုက်ရုံပါပဲ။
မူရင်း ပို့စ်က ဒီကပါ

How to use Putty with Console 2

by in , 0

This post is meant for me to remember when I change my laptop again. 
I love GNULinux but as I am currently working in 100% window only environment, I can’t let go of window yet. I love to do stuffs in Terminal. My choice of terminal in window is Console 2. I don’t want to use CygWin for no reason. I set up a folder for batch scripts and put in window’s path, so that from Console 2, I can do many common tasks. Such as poweroff, vim,curl, nmap, clear, ls, nc, etc.. . When It comes to ssh, I like Putty. Here is how to use putty in Console 2 via @jimueller

The following is as it written in his blog


Instructions
  1. Download ANSICON (Github Repo) and extract the contents from the x86 or x64 folders to your Console2 installation folder.

    I now have the following files in my C:\Program Files\Console2\ directory:
    • ANSI32.dll
    • ANSI64.dll
    • ansicon.exe
    • ANSI-LLW.exe
       
  2. Open Console2 and create a new tab with the command line:
    C:\Program Files\Console2\ansicon.exe "C:\Program Files (x86)\PuTTY\plink.exe" -load aPuttyProfileName


But I don't want to make new tab just for each ssh profile, I make ssh.bat inside my batch folder and put this one in ssh.bat instead.
@C:\Program Files\Console2\ansicon.exe "C:\Program Files (x86)\PuTTY\plink.exe" -load %*

So whenever i type
 ssh myserver 
it will load my server instantly inside Console 2. Awesome!.