Thursday, October 2, 2014

The Cent OS Workstation

Recently, I would like to use Eclipse to develop python Client for Hadoop usage such as HDFS and HBase. However, I found there is no way to build up a "pydoop" client on Windows Machine. Hence we have to use CentOS as our regular based workstation. Although I have the experience on Mac for daily usage (email, browser, documentation) but the stuff related to workstation are totally different from Sever Management and Office Work. The Distribution Config is Software Developement.
For better transition, I have to left some work still on windows workstation. Therefore, the interaction between new CentOS Workstation and original windows machine take its matter:
1. Install the RDP Client on CentOS
[root@new]# yum install xfreerdp
Then you can use below command to connect to your original window workstation:
[root@new]# xfreerdp --plugin cliprdr -d [domain] -u [username] -g [w]x[h] 192.x.x.x
2. Install xrdp as RDP Server for Window client. This part would require the Extra Software Repository - EPEL for yum-ing the xrdp package
[root@new]# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@new]# rpm -ivh epel-release-6-8.noarch.rpm
Then you should refresh your yum repository:
[root@new]# yum repolist
================
epel             Extra Packages for Enterprise Linux 6 - x86_64           11,105
================
Now you can install the xrdp and vnc server:
[root@new]# yum install xrdp tigervnc-server
[root@new]# service xrdp start
Final, you should make those service auto-started after reboot:
[root@new]# chkconfig xrdp on

3. After EPEL, you should be able to install ntfs-3g for NTFS disk access.
[root@new]# yum install ntfs-3g
[root@new]# vim /etc/fstab
/dev/sda2               /mnt/win_d      ntfs-3g rw,umask=0000,defaults 0 0

4. Install Samba to enhance the file transfer for your document

5. Change the mouse scroll like Mac's nature. This would be more convenient for your daily work.
[root@new]#xmodmap -e "pointer = 1 2 3 5 4 7 6 8 9 10"