Install & Configurate ubuntu 16.04 LTS for VMware Horizon 7 Linux Desktop @ 資訊維誌 :: 隨意窩 Xuite日誌
  • 關鍵字
  • 相關資訊
    1. 沒有新回應!
  • 平均分數:0 顆星
    投票人數:0
    我要評分:
  • 沒有新引用
    201801092230Install & Configurate ubuntu 16.04 LTS for VMware Horizon 7 Linux Desktop

    $ sudo vi /etc/hosts
       ip_address_1    dc1.yourdomain.local
       ip_address_2    dc2.yourdomain.local
    $ sudo apt-get update
    $ sudo apt-get upgrade
    $ sudo apt-get dist-upgrade
    $ sudo reboot
    $ sudo apt-get install open-vm-tools-desktop
    $ sudo apt-get install openssh-server
    $ sudo apt-get install python-dbus python-gobject openssh-server
    $ sudo apt-get install ntp vim ntpdate winbind samba libnss-winbind libpam-winbind krb5-config krb5-locales krb5-user gnome-session-flashback
       default_realm = YOURDOMAIN.LOCAL
    $ sudo vi /etc/ntp.conf
       pool dc1.yourdomain.local iburst
       pool dc2.yourdomain.local iburst
    $ sudo service ntp restart
    $ sudo service ssh restart
    $ sudo mv /etc/krb5.conf /etc/krb5.conf.backup
    $ sudo vi /etc/krb5.conf
       [libdefaults]
       ticket_lifetime = 24000
       default_realm = YOURDOMAIN.LOCAL
       default_tgs_entypes = rc4-hmac des-cbc-md5
       default_tkt__enctypes = rc4-hmac des-cbc-md5
       permitted_enctypes = rc4-hmac des-cbc-md5
       dns_lookup_realm = true
       dns_lookup_kdc = true
       dns_fallback = yes

       [realms]
       YOURDOMAIN.LOCAL = {
                 kdc = DC1.YOURDOMAIN.LOCAL
                 kdc = DC2.YOURDOMAIN.LOCAL
                 default_domain = DC1.YOURDOMAIN.LOCAL
       }

       [domain_realm]
        .yourdomain.local = DC1.YOURDOMAIN.LOCAL
        yourdomain.local = DC1.YOURDOMAIN.LOCAL

       [appdefaults]
       pam = {
               debug = false
               ticket_lifetime = 36000
               renew_lifetime = 36000
               forwardable = true
               krb4_convert = false
       }

       [logging]
       default = FILE:/var/log/krb5libs.log
       kdc = FILE:/var/log/krb5kdc.log
       admin_server = FILE:/var/log/kadmind.log
    $ sudo klist
    $ sudo vi /etc/samba/smb.conf
       workgroup = YOURDOMAIN
       security = ADS
       realm = YOURDOMAIN.LOCAL
       encrypt passwords = yes
       idmap config *:backend = rid
       idmap config *:range = 5000-100000
       winbind use default domain = yes
       winbind enum users = yes
       winbind enum groups = yes
       winbind refresh tickets = yes
       winbind allow trusted domains = no
       winbind trusted domains only = no

       template shell = /bin/bash
    $ sudo vi /etc/nsswitch.conf
       passwd: compat winbind
       group: compat winbind
    * logout and login again & select GNOME Flashback (Metacity) for default desktop env.

    --------------------------------------------------------------------------------------------------
    * Install VMware Horizon Agent for Linux
       $ sudo ./install_viewagent.sh
    $ sudo hostnamectl set-hostname this_vdi_host_name
    $ sudo vi /etc/hosts
       127.0.0.1 this_vdi_host_name
    $ sudo vi /etc/vmware/viewagent-custom.conf
       SSODesktopType=UseGnomeFlashback
    $ sudo kinit domain_admin
    $ sudo net ads join –k
    $ sudo pam-auth-update
       [*] Winbind NT/Active Directory authentication
       [*] Create home directory on login
    $ sudo service smbd restart
    $ sudo service nmbd restart
    $ sudo service winbind restart
    * Confirm Active Directory User Information
       $ wbinfo -u
       $ wbinfo -g
       $ wbinfo -i domain_admin
       $ getent passwd
       $ getent group 
    $ sudo adduser domain_admin sudo
    ------------------------------------------------------------------
    Login by Domain_admin accout from another server,
    to trigger Domain_admin listed on login screen.
    Then could delete useless account!

    沒有上一則|日誌首頁|沒有下一則
    回應