로그인
Sign in

yum install epel-release

yum install tigervnc-server tigervnc xorg-x11-fonts-Type1 xterm

 

yum install glances

yum groups install "mate Desktop"

 

vi /etc/sysconfig/selinux

 

systemctl set-default graphical.target

 

useradd id_12331

useradd id_11469

useradd id_09434

useradd id_09943

useradd id_11148

useradd id_10786

useradd id_11991

useradd id_12357

useradd id_11660

useradd id_10607

useradd id_09736

useradd azure01

useradd azure02

useradd azure03

useradd azure04

useradd azure05

 

로그인 후 vncserver 실행하여 패스워드 설정

su -  id_12331

su -  id_11469

su -  id_09434

su -  id_09943

su -  id_11148

su -  id_10786

su -  id_11991

su -  id_12357

su -  id_11660

su -  id_10607

su -  id_09736

su -  azure01

su -  azure02

su -  azure03

su -  azure04

su -  azure05

 

 

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:3.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:4.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:5.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:6.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:7.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:8.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:9.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:10.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:11.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:12.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:13.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:14.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:15.service

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:16.service

 

sed -i 's/<USER>/id_12331/g' /etc/systemd/system/vncserver@:1.service

sed -i 's/<USER>/id_11469/g' /etc/systemd/system/vncserver@:2.service

sed -i 's/<USER>/id_09434/g' /etc/systemd/system/vncserver@:3.service

sed -i 's/<USER>/id_09943/g' /etc/systemd/system/vncserver@:4.service

sed -i 's/<USER>/id_11148/g' /etc/systemd/system/vncserver@:5.service

sed -i 's/<USER>/id_10786/g' /etc/systemd/system/vncserver@:6.service

sed -i 's/<USER>/id_11991/g' /etc/systemd/system/vncserver@:7.service

sed -i 's/<USER>/id_12357/g' /etc/systemd/system/vncserver@:8.service

sed -i 's/<USER>/id_11660/g' /etc/systemd/system/vncserver@:9.service

sed -i 's/<USER>/id_10607/g' /etc/systemd/system/vncserver@:10.service

sed -i 's/<USER>/id_09736/g' /etc/systemd/system/vncserver@:11.service

sed -i 's/<USER>/azure01/g' /etc/systemd/system/vncserver@:12.service

sed -i 's/<USER>/azure02/g' /etc/systemd/system/vncserver@:13.service

sed -i 's/<USER>/azure03/g' /etc/systemd/system/vncserver@:14.service

sed -i 's/<USER>/azure04/g' /etc/systemd/system/vncserver@:15.service

sed -i 's/<USER>/azure05/g' /etc/systemd/system/vncserver@:16.service

 

echo "geometry=1440x900" >>/home/id_12331/.vnc/config

echo "geometry=1440x900" >>/home/id_11469/.vnc/config

echo "geometry=1440x900" >>/home/id_09434/.vnc/config

echo "geometry=1440x900" >>/home/id_09943/.vnc/config

echo "geometry=1440x900" >>/home/id_11148/.vnc/config

echo "geometry=1440x900" >>/home/id_10786/.vnc/config

echo "geometry=1440x900" >>/home/id_11991/.vnc/config

echo "geometry=1440x900" >>/home/id_12357/.vnc/config

echo "geometry=1440x900" >>/home/id_11660/.vnc/config

echo "geometry=1440x900" >>/home/id_10607/.vnc/config

echo "geometry=1440x900" >>/home/id_09736/.vnc/config

echo "geometry=1440x900" >>/home/azure01/.vnc/config

echo "geometry=1440x900" >>/home/azure02/.vnc/config

echo "geometry=1440x900" >>/home/azure03/.vnc/config

echo "geometry=1440x900" >>/home/azure04/.vnc/config

echo "geometry=1440x900" >>/home/azure05/.vnc/config

 

systemctl enable vncserver@:1.service

systemctl enable vncserver@:2.service

systemctl enable vncserver@:3.service

systemctl enable vncserver@:4.service

systemctl enable vncserver@:5.service

systemctl enable vncserver@:6.service

systemctl enable vncserver@:7.service

systemctl enable vncserver@:8.service

systemctl enable vncserver@:9.service

systemctl enable vncserver@:10.service

systemctl enable vncserver@:11.service

systemctl enable vncserver@:12.service

systemctl enable vncserver@:13.service

systemctl enable vncserver@:14.service

systemctl enable vncserver@:15.service

systemctl enable vncserver@:16.service

 
List of Articles
공지 자주 사용하는 명령어
제비게릴라
179     2019-06-27 2023-09-20 14:11