Ubuntu VNC Server
HTML-код
- Опубликовано: 30 июл 2024
- Want to control your Mac from a Windows PC? Or Windows from a Mac? Or Ubuntu from Windows? Or Ubuntu from Windows? This is how. (Part 2).
Previous Video: • Linux, Apple, Windows ...
Need help? Join my Discord: / discord
Menu:
Overview: 0:00
VNC Installation: 1:19
Mac to Ubuntu Testing: 4:19
Windows to Ubuntu VNC: 5:01
================
Commands:
================
sudo apt update
sudo apt install lightdm
sudo reboot
sudo apt install x11vnc
sudo nano /lib/systemd/system/x11vnc.service
!Copy and paste these commands - change the password
[Unit]
Description=x11vnc service
After=display-manager.service network.target syslog.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
[Install]
WantedBy=multi-user.target
!Save file and run these commands:
systemctl daemon-reload
systemctl enable x11vnc.service
systemctl start x11vnc.service
systemctl status x11vnc.service
================
Great website:
================
Website: bit.ly/2IOJUd8
================
Connect with me:
================
Discord: discord.davidbombal.com
Twitter: / davidbombal
Instagram: / davidbombal
LinkedIn: / davidbombal
Facebook: / davidbombal.co
TikTok: / davidbombal
RUclips: / davidbombal
================
Support me:
================
Join thisisIT: bit.ly/thisisitccna
Or, buy my CCNA course and support me:
DavidBombal.com: CCNA ($10): bit.ly/yt999ccna
Udemy CCNA Course: bit.ly/ccnafor10dollars
GNS3 CCNA Course: CCNA ($10): bit.ly/gns3ccna10
======================
Special Offers:
======================
Cisco Press: Up to 50% discount
Save every day on Cisco Press learning products! Use discount code BOMBAL during checkout to save 35% on print books (plus free shipping in the U.S.), 45% on eBooks, and 50% on video courses and simulator software. Offer expires December 31, 2020. Shop now.
Link: bit.ly/ciscopress50
ITPro.TV:
itpro.tv/davidbombal
30% discount off all plans Code: DAVIDBOMBAL
Boson software: 15% discount
Link: bit.ly/boson15
Code: DBAF15P
vnc
remote desktop
ubuntu
ubuntu 20.04
ubuntu vnc
vnc ubuntu
windows vnc
macos screen sharing
windows
macos
apple mac
linux
ubuntu
Please note that links listed may be affiliate links and provide me with a small percentage/kickback should you use them to purchase any of the items listed or recommended. Thank you for supporting me and this channel!
#vnc #ubuntu #linux Наука
This is one of the best "how to" instructions on VNC / remote desktops. I cannot believe how many other videos there are, that show the VNC "client" install, then show connection, WITHOUT mentioning that the target / server machine needs to be configured!!!! Thanks so much!
Thank you for the no frills instruction. Short intro,good explanation during the video,notes in description.
Really, thanks.
Thank you!
Menu:
Overview: 0:00
VNC Installation: 1:19
Mac to Ubuntu Testing: 4:19
Windows to Ubuntu VNC: 5:01
Previous Video: ruclips.net/video/mIdF7K3Nmlw/видео.html
Need help? Join my Discord: discord.com/invite/usKSyzb
================
Commands:
================
sudo apt update
sudo apt install lightdm
sudo reboot
sudo apt install x11vnc
sudo nano /lib/systemd/system/x11vnc.service
!Copy and paste these commands - change the password
[Unit]
Description=x11vnc service
After=display-manager.service network.target syslog.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
[Install]
WantedBy=multi-user.target
!Save file and run these commands:
systemctl daemon-reload
systemctl enable x11vnc.service
systemctl start x11vnc.service
systemctl status x11vnc.service
================
Great website:
================
Website: bit.ly/2IOJUd8
================
Connect with me:
================
Discord: discord.davidbombal.com
Twitter: twitter.com/davidbombal
Instagram: instagram.com/davidbombal
LinkedIn: www.linkedin.com/in/davidbombal
Facebook: facebook.com/davidbombal.co
TikTok: tiktok.com/@davidbombal
RUclips: ruclips.net/user/davidbombal
================
Support me:
================
Join thisisIT: bit.ly/thisisitccna
Or, buy my CCNA course and support me:
DavidBombal.com: CCNA ($10): bit.ly/yt999ccna
Udemy CCNA Course: bit.ly/ccnafor10dollars
GNS3 CCNA Course: CCNA ($10): bit.ly/gns3ccna10
======================
Special Offers:
======================
Cisco Press: Up to 50% discount
Save every day on Cisco Press learning products! Use discount code BOMBAL during checkout to save 35% on print books (plus free shipping in the U.S.), 45% on eBooks, and 50% on video courses and simulator software. Offer expires December 31, 2020. Shop now.
Link: bit.ly/ciscopress50
ITPro.TV:
itpro.tv/davidbombal
30% discount off all plans Code: DAVIDBOMBAL
Boson software: 15% discount
Link: bit.ly/boson15
Code: DBAF15P
Please note that links listed may be affiliate links and provide me with a small percentage/kickback should you use them to purchase any of the items listed or recommended. Thank you for supporting me and this channel!
This did it! Was stuck for days on getting realvnc and tightvnc to work with my Mac M1, but X11vnc as a service did the trick! Very simple and responsive, thanks for the tutorial!
Great stuff! I hadn't played with Linux, in earnest, for a few years, but I needed to throw up a server and then screen record a demo, on my Windows PC, in short order. Thanks to your vid I was able to get the VNC server up and running in a few minutes, take it over, and record everything. Much obliged! SUBSCRIBED.
Glad it helped Dan!
This worked like a charm. I struggle trying to get VNC server service going for hours searching google and trying different guides. Thank you sir!
Works perfectly, thank you so much David, you're the best!
What an insane tutorial!!!!!
I had trouble installing VNC Server on Ubuntu Desktop.
Many guides that I googled didn't work (Tight VNC, Tiger VNC and so on…)
However, I finally made it with your way.
Thanks!!!!!!!!
Same for me! I spent all sunday afternoon on trying to get this working, for me it was probably x11vnc as a service and the lightdm part that did the trick. 5 star tutorial!
You are amazing David!!!!!! Thanks a lot for the step by step tutorial!
Short and sweet, as always! Tks for you work😊
Thank you David for the detailed tutorial. Worked like a charm!
Everything was very clean and well explained, congratulation, great job.
Thank you very much David !
sudo apt update
$ sudo apt install anydesk
Excellent video. Very useful. You saved me a lot of time. It is appreciated. Thank you very much.
As always ... so clear and so easy to understand ...The best 👏👏👏👏
Thank you Ibti
Superbly explained.
Followed your steps and now I can connect successfully to my Ubuntu 23.04 PC from Windows 11 PC
Thank you @David for this tutorial. It worked for me. I have been looking for a VNC solution on Ubuntu for a while and this one is the first complete working solution that I found. Ideally, I was looking for a solution where the VNC session is not necessarily a mirror of the Ubuntu console (head), something where I can have multiple VNC (headless) sessions at :1, :2 etc. If you have any suggestions on that, that will be great too. Thank you again!
FINALLY got it working, thanks to your instructions! Thank you so much!
Great video David. You're the best.
Waiting for more videos about CCNP Encore
Thank you Magno!
Thanks a lot! Earlier I have tried some manuals, I did all that was written thereb, but it was still not working. Now, I am enjoing of that what I've learnt from you😊
Thank you so much David. Chaging my life here
You're welcome Peter
This has got to be one of the best videos ever. Why? No dramatic BS as most users do. No unwanted boasting of your own technical knowledge. To the point, precise, clear commands and description. Absolutely loved it. I hope people knew how to make tech videos like you did. Hats off!!! Great job buddy!!!
out of like 15ish tutorials I found on youtube, this is the only one that worked. Have a like and thanks.
Very helpful video ,regards from Republic of Moldova )
Thanks so much I had been googling for what seems like years, this video did the trick. THANK YOU......
Great tutorial, remember x11vnc is a mirror of host and this make more bandwidth over Ethernet wire or wifi so I will need your help David for use TigerVnc may be a few forums this more efficient . Thanks for your video.
Exactly what I needed!
Nice, nice, nice! Thanks a lot! Best Regards from Brazil.
Superb video, thank you.
Thank you that was very helpful.
Thanks David...nice tutorial
Thanks for sharing your knowledge
You saved me a lot of time! Thank you!
Wonderful great works!
Thank you for this. i went from not being able to VNC into my ubuntu PC to not being able to VNC into my ubuntu PC and not being able to SSH into my ubuntu PC forcing me to reinstall. So yes thank you so much for that
Awesome explanation !
that was very helpful thank you!!!
Thank you again for an educational video
You're welcome Eren!
Thanks for sharing. I appreciate you
You're welcome Oludayo
When you are starting out with a new OS it is important that you get clear precise instruction that is easy to understand and has everything needed to succeed. Absolutely brilliant video, clear, easy to understand and works - Thank You I might make progress now towards portainer and docker
Really helpful! Thx!!
just what I was looking for
Glad to hear that!
Thank you I spent a few hours trying to get this working. The key for me was replacing gnome with the lightdm.
Another great tutorial !
Thank you Bhargav
Thanks. Really helped me
respect super video )
Awesome, thank you. Just scared the crap out my users on a display board using Ubuntu by taking remote command :)
very very good tutorial...
thank you very much..
from indonesia
Thank you, it's very useful!
But anyway, it's good idea to show how to setup secure connection with ssh also ;)
Nice! Thank YOU!
you literally saved my graduations project thnks sir !!
Great Video! I hope this will work with the Jetson Nano since it dosen´t have the vnc preinstalled as the raspberry pi dose!
As many have mentioned...Great Video and to the point....plus still works on 22.04 & 22.10 but with an annoying issue (or it could be just me) - something so simple. copy & paste stops working.
"And notice I'm controlling the Ubuntu computer from my WIndows laptop. I'm actually jumping from one computer to another; I'm controlling the Windows laptop from my Mac using VNC and then I'm using VNC on the Windows laptop to control the Ubuntu virtual machine (back on the Mac)."
This is textbook "Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."
Loved it!
i'd like to see OPENVPN server and client tutorial.
Keep up the good work
Great suggestion! Thank you.
Thank you my friend!
Thank you very much. it done in my PC
Thank you David!
works great on ubuntu 23.04!! thanks a lot!
Yes sir you great love you 😍😍🔥🔥🔥🔥 love from India
Thank you Achhat!
Thank you very much!!!
no extra talk and directly into the point, plus commands in description. many thanks friend. I wish all RUclips tutorials same as this. 😁
Glad the video helped you :)
Great video (Inception)
Thank you! Agreed - how many levels can we go? :)
Con esto pude resolver mi problema en ubuntu 22.04 MUCHAS GRACIAS!!!!!
I just wanna say I followed this and tried it on Ubuntu 22 and its works great. Only Issue I ran into was my screen was all red after changing the desktop environment, I had to add a the Standard Space -sRGB profile under settings->Color->(my monitor). Overall it works just great
such a nice one 👍
I've always had to fight with VNC to get it to allow me to connect without a user already logged in. Saving these instructions to my NAS, for the next time I have to install Ubuntu.
Awesome tutorial, very helpful!
You are a Legend )
Thank you Umran!
Thank you so much
I love you sir...!!! I am interested in IT from non-IT background. Your guide is immemorial to me..!!! Love u sir..!!!
Thank you!
You're welcome Marius
Awesome u saved me today
What I love about linux is that everything is so simple !
Such a trivial operation takes just a dozen of text commands, editing a file, 2 reboots and bam, you`re done.
It's just one time, also if you are complaining about this, pls leave tech, lazy dumb people like you will ruin everything.
lmao so true. I'm using Ubuntu for the last month or so and this is nowhere near ready for significant adoption on desktop. Not much has changed in a decade really.
I can't get the keyboard to work correctly. I have a german keyboard at both ends. I have tried every combination of -xkb/noxkb -modtweak/nomodtweak. At vanilla "Alt Gr" doesn't work. With -noxkb it starts working but "Shift" stops working for most keys....
I don't understand the Man-Page to debug this any further.
Thank you David
You're welcome!
Waiting for many Linux server tutorials
thanks for condensing the video in the notes above
very useful
thank you very much, it runs also on debian 12
Nice video! I'm curious what the equivalent command for the Restart=on-failure would be on Fedora? Having several machines were the x11vnc server fails on work machines. I can manually get it going again but it would be better to have it Restart on my own.
that's great
Thank you very much
You're welcome Yaser!
Thanks sir.
You're welcome
Thank you for this tutorial! I got it working when a display is connected to my Linux machine, but not when it's running without a display. My vnc viewer just stays black then.
Any idea how to solve this?
I'm running ubuntu 22.04lts on a Fujitsu thinclient, where setting up a display is very tricky and not my preferred way. Still I don't wanna switch to ubuntu server as desktop is still way easier for me to handle
Hope you can help me! :)
@David Bombal can you suggest which course we can take to pursue MS in networking or security field so we can have hands on theory practice knowledge?
Hello David. I have it working fine on my Ubuntu 20.04 server with Lightdm but cannot adjust the screen size regardless of what I set the display dimensions to. Any clues?
Hello David, I ran into an error, it showed as "The connection closed unexpectedly.", I installed x11vnc on Debian 10, I think it's not the configuration error, because every time I type "x11vnc" through the TERMINAL then having the remote login, it is worked. However, after I finish and exit remote login. If I have the remote login again, it will fail and show the error. Can you help me to fix this issue?
Would love see a quick tutorial on how to make it a secure connection for use outside the LAN:-)
Thanks David
You're welcome Kebe
David - great video - thank you.
While this works great when a physical monitor is connected to the linux device, it doesn't seem to be working when is no screen connected to the linux device.
Any suggestions?
I tried on my ubuntu 20.04 armhf raspberry pi 4 it is working fine but every time i start my pi without hdmi cable it won't start vnc server although tis
How do i make the VNC server not runing on startup but only before I want it to start by a command?
grate. it work on ubuntu on Raspberry pi4 .
Thanks for the vid, I am running ubuntu 20.04LTS, VNC, lightdm, virtual display with intel graphics, in my 20-intel.conf when I set DRI to false, when trying to log in to VNC I see the ubuntu log in window, but after logging in it disconnects , ubuntu is set to auto log in, when I remove the line DRI false from 20-intel.conf then it works fine, I set DRI false to remove the vertical green lines that comes with ubuntu 20 using intel graphics, any ideas?
Can I transfer the screen to the local port of the computer using vnc server? So there won't be any internet connection. Like I will transfer this image to USB or any hardware port.
Hi David, I do every method you said on the video, and it works well, but their issue is if I remove the monitor wire and it displays the entire black, nothing shows.
As I put back on the monitor cable, it vnc start the show again as if that issue never happened.
Please help to fix that issue. Thanks in advance.
I have ssh on phone, and 2 PCs, but am still terrified of getting locked out - mainly by losing my key gen. Is VNC a good backup plan to get into my files to change them - in my scenario? Also, I hope to use micro terminal so I can cut and paste or drag and drop (not sure what is possible yet) and that may require VNC (GUI). This is for a Pi4 set up as a server for what I hope will be a small business website.
Can't understand why I have to install lightdm - I'm using 3-rd party software (choosed it when I was installing Ubuntu) and now I have NVIDIA drivers installed. I'm afraid to get into troubles after installing lightdm while using another display manager - I guess so.
Spent hours trying to get TigerVNC running per multiple web sites. None worked. Did this in 5 minutes and boom! working! The only issue I have is remote Ubuntu system has dual monitors, and when I VNC from the Mac using screensharing app, I get both screens beside each other fit onto my one local screen. How to configure it to only show the primary screen or even possibly have both those screens show up appropriately on my local computer, since it has dual monitors also?
Hi David, I can't get this make work. My Linux is a Zorin OS 16, (I guess based on latest Ubuntu).
Error I receive:
Active: failed (Result: exit-code) since Sun 2021-12-12 09:57:15 CET; 3min 7s ago
Process: 2779 ExecStart=/usr/bin/x11vnc -forever -display :0 -auth uVNCUser -passwd uVNCUser (code=exited, status=1/FAILURE)
Any ideas? Thank you in advance!
Same problem
Many thanks for this video. It really helped me in a business project. I have a quick question, what if I don't want username/password prompt. What changes I should do to get a direct login?