發表文章

Install JDK on RHEL5/6/7

Prepare : Download JDK from Java and upload to Linux cd /opt/jdk1.7.0_79 alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2 alternatives --config java alternatives --install /usr/bin/jar jar /opt/jdk1.7.0_79/bin/jar 2 alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 2 alternatives --set jar /opt/jdk1.7.0_79/bin/jar alternatives --set javac /opt/jdk1.7.0_79/bin/javac  java -version export JAVA_HOME=/opt/jdk1.7.0_79

實作Horizon View for Linux VDI

千呼萬喚的Linux VDI終於在6/4/2015 release了,這幾天下來實測後做些整理,希望可以幫到有需要的IT同伴. 環境介紹 vSphere platform : 6.0 Powershell 6.x 並安裝在vCenter上 Horizon environment : 6.1.1 Horizon Client : 3.4 (Windows/Mac OS X) Windows AD : 2008 R2 DNS解析須可以解析View broker 位置 Linux OS for VDI CentOS 6.6 x64 with jre-7u79 RHEL6.6 x64 with jre-7u79 ubuntu 12.04 with jre-7u80 RHEL5.8 x64安裝設定皆正常,但無法連線 有搭配過jre7u75, jre7u76,jreu79 Protocol 並非PCoIP,也不是RDP,是 Blast ( port 5443 必須要跟security srv或是connection srv 之間的防火牆開通) View Agent 與Connection Srv 須開通4001:4002:LDAP Linux VDI 與vCenter 要開通 SSH:22,在透過powershell deploy view agent時會用到 Horizon 6 for Linux VDI的功能 不支援HTML Access 不支援Client裝置(USB,Printer, Copy/Paste)對應的Linux VDI 不支援Single Sign-On - 連線上Linux VDI後須再輸入Linux 的帳號密碼 支援單向Audio (Linux VDI to Client) 支援兩個螢幕以上 - 需要在虛擬顯示卡上作相對應的設定,一般我會建議雙螢幕+32MB 記憶體 KDE桌面沒有經過View Agent 認證,所以不建議使用 Bug 當在全螢幕輸入完帳號密碼登入桌面後,畫面會並不會AutoFit, 需要手動將畫面縮小或是放大使其重新AutoFit. 實作流程 創建guest customization specification, 名稱為linuxagent ...

How to install open VM tools on Ubuntu 14.04

VMware KB https://kb.vmware.com/s/article/2075048 To obtain and import the VMware Packaging Public Keys:   Create a directory on the virtual machine to store the VMware Packaging Public Keys. Download all the VMware Public Packaging Public Key files from the https://packages.vmware.com/tools/keys directory. Save the files to the directory you created. For each key that you download, run this command to import the key: $ sudo apt-key add / key_path / key_name Where key_path is the directory in which you saved the keys and key_name is the file name of a key. Create the file /etc/apt/sources.list.d/vmware-tools.list with this content: deb https://packages.vmware.com/packages/ubuntu precise main   To install the package, run this command: $ sudo apt-get update $ sudo apt-get install open-vm-tools-deploypkg

VMware App Volume components and requirements

App Volumes Components and Requirements App Volumes Manager Windows Server 2008 R2/ Windows Server 2012 R2 Microsoft .Net Framework 3.5 feature enabled 4GB RAM 1GB free disk space SQL Server 2008 R2 or SQL 2008 R2 Express App Volume Agent Windows 7 (32-bit or 64-bit) or Windows 2008 R2/ Windows 2012 R2 Windows must be vanilla View Agent installed App Volume Agent installed 1GB RAM 5MB free disk space App Volumes environment ESXi5 or above vCenter 5 or above Active Directory Horizon View 6 or above or XenDesktop/XenApp 5.5 or above On-demand delivery of application in a non-persistent desktop .

Linux vi replace command

%s/\.jpg/\.jpg\"/g %s/old/new/g

Windows 2008 R2 event forward XML sample

      *[System[(EventID=4662)]]and *[EventData[Data[@Name='ObjectServer'] and (Data='DS')]] and *[EventData[Data[@Name='AccessMask'] and (Data= '0x20')]] and *[EventData[Data[@Name='ObjectType'] and (Data= '%{e0fa1e8c-9b45-11d0-afdd-00c04fd930c9}')]]  

Upgrade VMware Hroizon View 6.0.1 Composer to 6.1

圖片
Pre-note *If you had upgrade vCetner, please reboot vCenter before installation. 1. Run Horizon View Composer installation wizard and click "Next" 2. Accept license agreement and click "Next" 3. System will detect previous installation path, make sure it is correct and click "Next" 4. Verify Composer ODBC DSN is correct and enter username and password for this database connection. 5. Verify Composer SOAP port is 18443 (if you have change it before,please change it to your customize port else leave it to default), another hand is about certificate, by default it will create default SSL certificate, in my case - I change it to "Use an existing SSL certificate" 6. Ready to install the program, if everything is fine, click "Install" 7. Click "Finish" to close Installation windows ...