【组件安装】Ubuntu 22.04.5 desktop 安装 Anyware Agent

系统初始化

bash 复制代码
sudo -i 
Passwd
apt-get update
apt-get install openssh-server
/etc/init.d/ssh start
vim  /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
Service ssh restart

配置防火墙

bash 复制代码
sudo ufw status
sudo ufw allow 443/tcp
sudo ufw allow 4172/tcp
sudo ufw allow 4172/udp
sudo ufw allow 60443/tcp
sudo ufw allow ssh  
sudo ufw enable 
sudo ufw status
sudo ufw status verbose

Chrome浏览器安装

bash 复制代码
sudo apt update 
sudo apt install wget
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
google-chrome --version

加域工具安装

bash 复制代码
apt install -y net-tools && ifconfig
resolvectl --no-pager | grep -i server
apt update -y
sudo apt install -y realmd libnss-sss libpam-sss sssd sssd-tools adcli samba-common-bin oddjob oddjob-mkhomedir packagekit krb5-user samba-libs samba-dsdb-modules policykit-1
realm discover ca.XXXX.com

Ubuntu加域

Using the AD domain controlled administrator account, add the Ubuntu virtual machine to the domain:

bash 复制代码
realm join --help
realm join -U administrator ca.xxxx.com
sudo realm list

Log in to Ubuntu virtual machine with a domain account and verify if domain control information can be queried

bash 复制代码
su [email protected]
realm list 
id [email protected]
getent passwd [email protected]
Exit

Edite the sssd.conf file to avoid PCoIP login failed issue:

In /etc/sssd/sssd.conf, add the following line to the domain section:

bash 复制代码
ad_gpo_map_permit = +pcoip-session

Example:

bash 复制代码
[domain\mydomain.com]
ad_domain = mydomain.com
ad_gpo_map_permit = +pcoip-session

If the above fails, try adding the following:

bash 复制代码
ad_gpo_access_control = permissive

设置域用户为本地管理员

add user home folder when login

bash 复制代码
sudo pam-auth-update

Add the following to the last line of the configuration file, so that domain users can log in as local administrators

bash 复制代码
sudo visudo
%domain\ [email protected] ALL=(ALL:ALL) ALL
cat /etc/sudoers
reboot

Test logging into a domain user as follows to see if it becomes a local root account on Ubuntu:

bash 复制代码
su [email protected]
sudo whoami   //this will be root 
exit

Anyware Agent服务安装

bash 复制代码
apt install curl
curl -1sLf https://dl.anyware.hp.com/rWKgtJyfBFzPIPkd/pcoip-agent/cfg/setup/bash.deb.sh | sudo -E distro=ubuntu codename=jammy bash
sudo apt update  
sudo apt install pcoip-agent-standard 
vim /etc/pcoip-agent/pcoip-agent.conf  //add below sentences into the conf file
pcoip.license_server_path = http://192.168.100.55:7070/request 
pcoip.event_filter_mode = 3
pcoip-list-licenses
reboot

安装Anyware Monitor

Manager打开Connector的monitor功能,复制安装脚本在Ubuntu系统安装

相关推荐
年轮不改4 小时前
Ubuntu 配置 ffmpeg 开发环境
linux·ubuntu·ffmpeg
编程小小白白5 小时前
Jetson Orin NX jupyter lab的安装和使用
linux·ubuntu·jupyter
乙龙5 小时前
在麒麟系统(基于Ubuntu或Debuntu)的离线环境中创建本地APT仓库
linux·运维·ubuntu·kylin
程序员黄同学7 小时前
解释 TypeScript 中的枚举(enum),如何使用枚举定义一组常量?
javascript·ubuntu·typescript
upDiff9 小时前
ubuntu测试指定文件夹的读写速度
linux·ubuntu
急速前行Klein10 小时前
Ubuntu零基础学习---基础指令
linux·学习·ubuntu
厂里英才11 小时前
“Ubuntu禁止root用户通过SSH直接登录”问题的解决
linux·ubuntu·ssh
AINLPer11 小时前
最新!Ubuntu Docker 安装教程
linux·ubuntu·docker
獨枭1 天前
Ubuntu 优化 Vim 指南
linux·ubuntu·vim