-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
2 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,15 @@ yum install tigervnc-server | |
run command as user in case root, or vncpasswd directly from user: | ||
``` | ||
runuser -l username -c "vncpasswd" | ||
# Password: | ||
# Verify: | ||
# Would you like to enter a view-only password (y/n)? n | ||
``` | ||
|
||
Configure service: | ||
``` | ||
cp -fv "/lib/systemd/system/[email protected]" "/etc/systemd/system/vncserver_username@:1.service" # :1 - x server number, :1, :2, :3, :5 ... | ||
sed -i 's/<USER>/username/g' "/etc/systemd/system/vncserver_username@:1.service" | ||
sed -i 's|"/usr/bin/vncserver ${INSTANCE}"|"/usr/bin/vncserver ${INSTANCE} -geometry 1200x675"|g' /usr/bin/vncserver_wrapper | ||
# -geometry 1200x675 - virtual desktop resolution !!! GLOBAL ATTRIBUTE !!! | ||
# refresh systemctl unit files | ||
systemctl daemon-reload | ||
# enable service at startup | ||
systemctl enable vncserver_username@:1.service | ||
# run service | ||
systemctl start vncserver_username@:1.service | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Перепаковка DEB пакета # | ||
# Перепаковка DEB пакета | ||
|
||
Extract: | ||
``` | ||
|