mirror of
https://github.com/York-Labs/OneClickDesktop.git
synced 2026-02-21 16:47:24 +08:00
Update OneClickDesktop_zh-CN.sh
This commit is contained in:
parent
1bdea77fc9
commit
ebd241f0e4
@ -273,11 +273,6 @@ ExecStop=/usr/bin/vncserver -kill :%i
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
END
|
||||
cat > $HomeDir/Desktop/EnableCopyPaste.sh <<END
|
||||
#!/bin/bash
|
||||
/usr/bin/vncconfig -display :1 &
|
||||
END
|
||||
chmod +x $HomeDir/Desktop/EnableCopyPaste.sh
|
||||
vncpassbinpath=/usr/bin/vncpasswd
|
||||
/usr/bin/expect <<END
|
||||
spawn "$vncpassbinpath"
|
||||
@ -296,6 +291,11 @@ END
|
||||
systemctl start vncserver@1.service
|
||||
systemctl enable vncserver@1.service
|
||||
/usr/bin/vncconfig -display :1 &
|
||||
cat > $HomeDir/Desktop/EnableCopyPaste.sh <<END
|
||||
#!/bin/bash
|
||||
/usr/bin/vncconfig -display :1 &
|
||||
END
|
||||
chmod +x $HomeDir/Desktop/EnableCopyPaste.sh
|
||||
echo
|
||||
ss -lnpt | grep vnc > /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user