【组件安装】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 zhang.san@ca.xxxx.com
realm list 
id ryan.yu@ca.xxxx.com
getent passwd ryan.yu@ca.xxxx.com
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\ users@ca.xxxx.com 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 zhang.san@ca.xxxx.com
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系统安装

相关推荐
Saniffer_SH12 小时前
搭载高性能GPU的英伟达Nvidia DGX Spark桌面性能小怪兽国内首台开箱视频!
人工智能·深度学习·神经网络·ubuntu·机器学习·语言模型·边缘计算
你喜欢喝可乐吗?13 小时前
Ubuntu服务器无法显示命令行登录提示
linux·运维·服务器·ubuntu
fruge14 小时前
TypeScript 基础类型与接口详解
javascript·ubuntu·typescript
skywalk816316 小时前
在Ubuntu Linux安装brew 使用brew安装llama.cpp 运行文心Ernie大模型
人工智能·ubuntu·llama·ernie·brew·1024程序员节
冲上云霄的Jayden17 小时前
Ubuntu 22.04 中查看指定进程 ID(PID)状态的五种方法
运维·ubuntu·ps·top·pid·htop·proc
搬砖的小码农_Sky17 小时前
如何从Windows 操作系统登录Linux(Ubuntu)操作系统
linux·windows·ubuntu·远程工作
搬砖的小码农_Sky17 小时前
如何在Linux(Ubuntu)操作系统上查看文件的MD5,SHA256等校验码
linux·运维·ubuntu
洛克大航海1 天前
虚拟机 Ubuntu 中安装 Google Chrome 浏览器
linux·chrome·ubuntu
csdn_aspnet1 天前
如何在 Ubuntu 24.04/22.04/20.04 上安装 MySQL 8.0
linux·mysql·ubuntu
北城笑笑1 天前
Server 15 ,VMware ESXi 实战指南:Ubuntu 20.04.6 版本虚拟机静态 IP 配置、分辨率固定及远程访问实践
linux·运维·ubuntu·1024程序员节