Ubuntu VNC Server

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии •

  • @davidbombal
    @davidbombal  4 года назад +2

    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!

  • @veredictum4503
    @veredictum4503 Год назад +9

    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!

  • @Helleynea
    @Helleynea 4 года назад +20

    Thank you for the no frills instruction. Short intro,good explanation during the video,notes in description.
    Really, thanks.

  • @CarlosBronze
    @CarlosBronze 3 года назад +6

    "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!

  • @parthagarwal
    @parthagarwal 3 года назад +5

    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!

  • @hyeonilcho6285
    @hyeonilcho6285 2 года назад +4

    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!!!!!!!!

    • @ocnah
      @ocnah 6 месяцев назад

      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!

  • @EbaleyTheRogue
    @EbaleyTheRogue 3 года назад +5

    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.

  • @TasManiatis-u7e
    @TasManiatis-u7e 3 месяца назад

    Awesome video simple and easy to follow and it just worked. Also the fact that you also included the steps with all commands made it all that much easier. Love your work David.

  • @KevinPawlak-g8f
    @KevinPawlak-g8f 2 месяца назад

    Thank You David. These commands also work with Linux. I had a hard time finding the correct process. I now have it working with Guacamole. Thank you for adding the scripts in the notes, always makes it easier.

  • @wizkidd06
    @wizkidd06 2 года назад

    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!

  • @Zenobia992
    @Zenobia992 4 года назад +9

    i'd like to see OPENVPN server and client tutorial.
    Keep up the good work

    • @davidbombal
      @davidbombal  4 года назад +1

      Great suggestion! Thank you.

  • @yadavramahemmady1059
    @yadavramahemmady1059 Год назад

    Superbly explained.
    Followed your steps and now I can connect successfully to my Ubuntu 23.04 PC from Windows 11 PC

  • @sthill12
    @sthill12 2 года назад +1

    FINALLY got it working, thanks to your instructions! Thank you so much!

  • @mridulranjan1069
    @mridulranjan1069 2 года назад +12

    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!!!

  • @MarkFobert
    @MarkFobert 3 года назад +6

    Warning: I was following this tutorial and when I started the lightdm service and tried to login to ubuntu afterwards, it wasn't letting me. You can resolve this by opening a terminal on the login screen (ctrl - alt - F3) and running the following commands:
    sudo service lightdm stop
    sudo service gdm start

    • @That_G
      @That_G 2 года назад

      yes i ran into this problem too. don't know why he didn't cover this black screen

    • @Pizzarous
      @Pizzarous 11 месяцев назад

      thank you!

  • @wolframdanielh.4132
    @wolframdanielh.4132 3 года назад +2

    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!

  • @frantsyzof
    @frantsyzof 5 месяцев назад

    Short and sweet, as always! Tks for you work😊

  • @aaronboyd2464
    @aaronboyd2464 8 месяцев назад

    Thank you David for the detailed tutorial. Worked like a charm!

  • @godu1111
    @godu1111 3 года назад +4

    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.

    • @godfather7339
      @godfather7339 3 года назад

      It's just one time, also if you are complaining about this, pls leave tech, lazy dumb people like you will ruin everything.

    • @DM-rc4yu
      @DM-rc4yu Год назад

      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.

  • @chandlerbing7570
    @chandlerbing7570 9 месяцев назад

    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

  • @matthewcb1970
    @matthewcb1970 Месяц назад +1

    Thank you so much for this!

  • @peterdijkman2556
    @peterdijkman2556 4 года назад +5

    Thank you so much David. Chaging my life here

  • @HitokiriKinchou
    @HitokiriKinchou 2 года назад

    out of like 15ish tutorials I found on youtube, this is the only one that worked. Have a like and thanks.

  • @denizsevinc9334
    @denizsevinc9334 4 года назад +1

    Everything was very clean and well explained, congratulation, great job.
    Thank you very much David !

    • @bido2050
      @bido2050 3 года назад

      sudo apt update

    • @bido2050
      @bido2050 3 года назад

      $ sudo apt install anydesk

  • @arunsaha890
    @arunsaha890 Год назад +1

    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!

  • @SriniVaith
    @SriniVaith 3 месяца назад

    Was able to enable vnc connection at last. Thanks. You also may have to disable firewall or create a rule to allow the vnc port

  • @yasserboudahdir6866
    @yasserboudahdir6866 9 месяцев назад

    you literally saved my graduations project thnks sir !!

  • @kayosud
    @kayosud 3 года назад

    You are amazing David!!!!!! Thanks a lot for the step by step tutorial!

  • @kosak46
    @kosak46 2 года назад

    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😊

  • @alexisel.6974
    @alexisel.6974 2 года назад +1

    respect super video )

  • @mhnav
    @mhnav 3 года назад

    Works perfectly, thank you so much David, you're the best!

  • @alexstarciuc8832
    @alexstarciuc8832 4 года назад

    Very helpful video ,regards from Republic of Moldova )

  • @NanookFieryArcticSkyy
    @NanookFieryArcticSkyy Год назад

    Thank you I spent a few hours trying to get this working. The key for me was replacing gnome with the lightdm.

  • @Mrmagnodsb
    @Mrmagnodsb 4 года назад

    Great video David. You're the best.
    Waiting for more videos about CCNP Encore

  • @GeorgeWMays
    @GeorgeWMays 3 года назад +1

    Excellent video. Very useful. You saved me a lot of time. It is appreciated. Thank you very much.

  • @ibtissam4165
    @ibtissam4165 4 года назад

    As always ... so clear and so easy to understand ...The best 👏👏👏👏

  • @schaskosrooney
    @schaskosrooney 3 года назад

    Nice, nice, nice! Thanks a lot! Best Regards from Brazil.

  • @ShopperPlug
    @ShopperPlug 3 года назад

    1:50 - Is it not possible to use the built-in "GDM" display manager? Why two display managers is needed? Thanks, this worked perfectly for Ubuntu Mate on Raspberry Pi 3B+, I did not install "lightDM" since it is already the distro's default desktop display manager.

    • @trayjobe6995
      @trayjobe6995 Год назад

      Im curious to as I like GDM better than lightdm

  • @SinandLerd
    @SinandLerd 2 года назад +1

    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.

  • @seanseames3768
    @seanseames3768 Год назад

    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

  • @herreradimas
    @herreradimas 3 года назад

    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.

  • @Cinderz88
    @Cinderz88 2 года назад

    Awesome, thank you. Just scared the crap out my users on a display board using Ubuntu by taking remote command :)

  • @workl6417
    @workl6417 2 года назад

    For those who want to enable keys autorepeat, add ... _ExecStart=/usr/bin/x11vnc -repeat_ ..., in the video at 2:50, may help.

  • @gunchag
    @gunchag 6 месяцев назад

    You saved me a lot of time! Thank you!

  • @3d-illusions
    @3d-illusions 2 месяца назад

    will this work if there's no monitor connected to the ubuntu? Also, will the ubuntu use the gpu? I'm on 24.04 using the built in rdp, and the only way I can get the nvidia gpu to be used on the host is if I use remote sharing instead of remote login, but it will only work if I have a monitor connected.

  • @AjvarRelish
    @AjvarRelish Месяц назад

    Loved this! Worked immediately! Do you have a guide for how to use vnc in "headless"? Im running an old mac mini with ubuntu as a home server, I currently have it hooked up to my tv, but i want to move it to a bookcase. I've googled a bit but haven't found anything that works.

  • @engrkn
    @engrkn 6 месяцев назад

    Thanks David...nice tutorial

  • @charles5077
    @charles5077 4 года назад +4

    just what I was looking for

  • @enzrmedia79
    @enzrmedia79 2 года назад

    very very good tutorial...
    thank you very much..
    from indonesia

  • @myrwon
    @myrwon 2 года назад

    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.

  • @hiavi96
    @hiavi96 2 года назад +1

    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?

  • @timhiggins4939
    @timhiggins4939 3 года назад

    Thanks so much I had been googling for what seems like years, this video did the trick. THANK YOU......

  • @qweargs123
    @qweargs123 Год назад +1

    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! :)

  • @AdmMusicc
    @AdmMusicc 7 месяцев назад

    "SSH connection should be encrypted". Is there a way to be able to do this?

  • @captainobvious7898
    @captainobvious7898 Год назад

    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?

  • @YQLF
    @YQLF 5 месяцев назад

    Easy and clear .. Respect ..

  • @niekschouten186
    @niekschouten186 3 года назад +1

    Hi David, video works nicely. But when connecting from my windows pc I can't copy and paste to the ubuntu pc. Is there anything that I have to change for that?

  • @Hasse-swe
    @Hasse-swe 8 месяцев назад

    Thanks for the guide. A question. Can you add an followup video on how to add encryption.

    • @Hasse-swe
      @Hasse-swe 8 месяцев назад

      I used this goude and disconnected tha monitor to the computer and now i just get a black screen. Any tips that could help?

  • @jugglelulz
    @jugglelulz Год назад

    Exactly what I needed!

  • @russfreelancer
    @russfreelancer 11 месяцев назад

    works great on ubuntu 23.04!! thanks a lot!

  • @achhatkumargupta2954
    @achhatkumargupta2954 4 года назад

    Yes sir you great love you 😍😍🔥🔥🔥🔥 love from India

  • @alparslanmetehan9678
    @alparslanmetehan9678 Год назад

    In addition to this, you need to install firewalld in the server then do this:
    sudo firewall-cmd --add-service vnc-server

  • @AndreasBodin
    @AndreasBodin 2 года назад

    Thank you for this tutorial David!
    Is the procedure the same for Kali Linux?

  • @ozgedurgut
    @ozgedurgut 9 месяцев назад

    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.

  • @djawedbenslimane536
    @djawedbenslimane536 4 года назад +1

    Thanks for sharing your knowledge

  • @bmerfan
    @bmerfan 3 года назад

    Superb video, thank you.

  • @nguyennhat364
    @nguyennhat364 Месяц назад

    Hello, thank you for your video. I did successfully. I am curious that why with x11vnc on server, I do not need "ssh" to be as tunnel for tightvncviewer/tigervncviewer on client to login ?

  • @fredzaphod9833
    @fredzaphod9833 5 месяцев назад

    Hey David, do you have any videos on SSH encryption for VNC? Options are bit scarce for some use cases, like VNC into linux pc from an iphone but it would be extremely useful to do if it were secure.

  • @alexanders2654
    @alexanders2654 4 месяца назад

    How can you have the Ubuntu server initiate a desktop session when only logging in remotely? I feel that is a core usecase that wasn't covered here.

  • @nitinchandna3016
    @nitinchandna3016 2 года назад

    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?

  • @ashishashish-di3cg
    @ashishashish-di3cg 4 года назад +1

    Hi David in your Wireshark course you said that if you want more knowledge about networking so you will mail me then I mail(that you say In your course) but there is no response from your team please help🥺🥺🥺

  • @CooperateMind
    @CooperateMind 3 года назад

    Thanks for the tutorial .
    Can this method being used to run an ubuntu machine headlessly? In other word does it start automatically during startup on linux side?

  • @CPurdiePlays
    @CPurdiePlays 4 года назад

    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.

  • @lechsiz1642
    @lechsiz1642 3 года назад

    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.

  • @macster1457
    @macster1457 2 года назад

    Do you have a video on Apache Guacamole remote desktop? - It uses the browser to connect to devices. Seems pretty cool.

  • @kevinwong57
    @kevinwong57 3 года назад

    Wonderful great works!

  • @Peter-ew1ip
    @Peter-ew1ip 10 месяцев назад

    Unfortunally, i have some trouble to use signs like "@" from my mac keyboard in writing or controling a headless ubuntu server.

  • @darylmorse
    @darylmorse Год назад

    Great video. Thanks for sharing. I tried to get the tightvnc vnc server working on ubuntu 22.10 with gnome, but was not successful. Have you tried it with gnome?

  • @taifunov
    @taifunov 3 года назад

    Thank you, it's very useful!
    But anyway, it's good idea to show how to setup secure connection with ssh also ;)

  • @grantckerr
    @grantckerr 2 года назад

    Hi David. This video was really helpful. I successfully setup the remote access to a Raspberry Pi (Ubuntu 22.04) from a Windows 10 computer on my network. I have a monitor connected to the RPi as well in case needed via HDMI. However if I unplug the monitor HDMI cable (either from the monitor or from the RPi), this doesn't work. The VNC link is recognised from the computer and I can login via VNC to show the RPi login screen. After logging in on the RPi, the connect closes and there is a VNC error "Oh no! Something has gone wrong. A problem has occurred and the system can't recover. Please log out and try again." Logging out and retrying makes no difference. Any ideas why the unplugged HDMI cable prevents the remote access?

  • @catalinalb1722
    @catalinalb1722 4 года назад

    Great Video! I hope this will work with the Jetson Nano since it dosen´t have the vnc preinstalled as the raspberry pi dose!

  • @ahmadqawariq7212
    @ahmadqawariq7212 3 года назад

    Thank you that was very helpful.

  • @hariscoralic858
    @hariscoralic858 Год назад

    Sorry for dumb question but this is for all network or only LOCAL network ?

  • @rhodium4535
    @rhodium4535 3 года назад +3

    Would love see a quick tutorial on how to make it a secure connection for use outside the LAN:-)

  • @ion_gredinar
    @ion_gredinar 3 года назад

    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.

  • @tuxsoftwares
    @tuxsoftwares 4 года назад +2

    Your one of the best teachers ever ❤ I also understand u dad ❤

  • @bhargavdasgupta6580
    @bhargavdasgupta6580 4 года назад

    Another great tutorial !

  • @niveditha3825
    @niveditha3825 4 года назад

    @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?

  • @leodwivedi
    @leodwivedi 2 года назад

    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.

  • @erenmeric4891
    @erenmeric4891 4 года назад

    Thank you again for an educational video

  • @РоманИванов-ъ8з
    @РоманИванов-ъ8з 6 месяцев назад

    Nice! Thank YOU!

  • @sadisticnepal9567
    @sadisticnepal9567 2 года назад

    I love you sir...!!! I am interested in IT from non-IT background. Your guide is immemorial to me..!!! Love u sir..!!!

  • @okaudi
    @okaudi 3 года назад

    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?

  • @giggsl5011
    @giggsl5011 2 года назад

    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?

  • @Cinnamon_Shaey
    @Cinnamon_Shaey 9 месяцев назад

    this does not seem to work for a headless installation, when connecting i just get a blank screen

  • @mr-retronym
    @mr-retronym 3 года назад

    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

  • @DM-rc4yu
    @DM-rc4yu Год назад

    Sort of works but is a terrible experience. After reboot all I got was black screen and I had to recover through terminal. When VNC works it is very laggy, basically only really usable for text anyway.

  • @ramonortega8200
    @ramonortega8200 2 года назад

    Con esto pude resolver mi problema en ubuntu 22.04 MUCHAS GRACIAS!!!!!

  • @StambaughDesignsBellingham
    @StambaughDesignsBellingham 2 года назад

    I can’t seem to connect via guacamole. IP, port, username and password are all correct it’s just always trying to make the connection

  • @umrana5946
    @umrana5946 4 года назад

    You are a Legend )