Engineers Garage

  • Electronics Projects and Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to Get GUI on Raspberry Pi – (Part 04/38)

By Ajish Alfred October 13, 2013

The Raspberry pi is a single board minicomputer which comes without input and output units, but with connectors for them. The board is designed to be easy to use and available at the least possible price. The main intention of releasing such a board is to provide computer education to the remote schools where the PCs are not very commonly used. The idea is to use the TV screen as the display unit for the Raspberry pi board and hence converting the TV into a computer.   

The board is hence provided with a RCA connector which can be used to connect it directly to a TV screen which is based on PAL and NTSC standard. The board also has a HDMI connector output which can be used to connect the board to a HD TV, but there is no VGA connector. There are situations in which the person using the Raspberry pi has a PC screen but not a HD display device. In such situations one can use remote login to access the Raspberry pi and view the TUI (Text User Interface) on the PC screen.

The TUI has its own limitations when accessing a powerful operating system like Ubuntu can be loaded into the Raspberrypi. The limitations are felt by users especially when they need to browse around the filesystem and when it is required to run graphical applications like web browser etc. This article explains step by step procedure for accessing the Graphical User Interface (GUI) of the Raspberrypi on the PC screen when the board is connected directly through the Ethernet port of the PC or both the PC and the raspberry board are connected through a LAN router.


 

In this project the Raspberrypi board is booted with the Ubuntu OS and is connected to the Ethernet port of a Windows7 PC. The board is connected to the internet connection as explained in the project how to connect the Raspberrypi to the internet. The IP address of the Raspberrypi board has been obtained and remote login in the TUI is done using the PUTTY.

The remote access of the GUI can be done using software called VNC viewer. Virtual Network Computing (VNC) is a graphical desktop sharing system that can be used to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network. VNC viewer on one operating system can be connected to a VNC server on the same or any other operating system.

After login using the PUTTY one has to download and install the VNC server software for Ubuntu running on the Raspberrypi. The VNC server version that can be installed in the Ubuntu is called “tightvncserver”. The software can be installed in the Ubuntu operating system using the following command. Make sure that the Raspberrypi is still connected to the internet.

sudo apt-get install tightvncserver

Once typing this command and press enter the Ubuntu will download the software and do all the required steps to install it properly. After installation is done run the application using the following command;

sudo tightvncserver

This command will start the VNC server in the Ubuntu. On the first run it will ask to set a password that will be required when somebody tries to remotely access the GUI of the Raspberry pi. The password should be eight characters long. Once the password and the confirmation password have been entered there will appear a question whether to allow the remote user to access the GUI in view only mode or not. Answer no to this question by entering ‘N’.  After that has been done the VNC server start running in the background of other applications and the following dialogues appear in the command line:

Running GUI on Raspberry Pi

Fig. 2: Remotely access the GUI of the Raspberry Pi

Note that number for the New ‘X’ desktop which will be required when doing the remote access. If the command is entered once again the a new ‘X’ desktop number will be displayed as shown below:

Raspberry Pi Configuration

Fig. 3: New ‘X’ Desktop Number Displayed Of Raspberry Pi

That’s all is required at the Ubuntu side and now one has to run the VNC software in the PC. The VNC version “TightVNC” can also be downloaded for the Windows operating system. Install the downloaded VNC viewer and run it. The TightVNC viewer’s home window will appear like shown in the following image:

VNC Connection

Fig. 4: TightVNC Viewer’s Home Window Of Raspberry Pi

There is a text box where the IP of the remote computer need to be entered. Enter the IP of the Raspberrypi board there.  The IP should be followed by a port number which starts from 5901. If the New ‘X’ desktop number that has appeared in the Ubuntu is ‘1’ the port number entered should be 5901 and if the New ‘X’ desktop was ‘2’ the port number should be 5902 and so on.

Now click on the connect button and if the connection is possible to establish the following window will appear asking the password which has been set it the VNC server of the Ubuntu.

VnC Authentication

Fig. 5: VNC Authentication Pasword Set In VNC Server Of Ubuntu

Type the same password without mistake and it will open up the Desktop of the Raspberrypi.

Raspberry Pi Desktop

Fig. 6: Desktop Of The Raspberry Pi

The full screen mode can be enabled using one of the tool bar buttons of the VNC which is highlighted in the following image:

Root X

Fig. 7: Select Full Screen Mode From VNC’s Tool Bar

The user can go back to the normal window by pressing ALT + CNTRL + SHFT + F.

Once the done using the Raspberrypi shutdown the OS as normally does in the PC and then only close the VNC viewer. The power button can be found at the lower right corner of the desktop. 

VNC Viewer

Fig. 8: Power Button On Raspberry Pi Window


Filed Under: Raspberry pi
Tagged With: Raspberry Pi
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Colpitts oscillator
  • RF-DC rectifier impedance matching
  • GanFet power switch starts burning after 20 sec
  • Four-MOSFET Synchronous Rectification for High-Efficiency LLC Converter
  • How to solve this electronic problem?

RSS Electro-Tech-Online.com Discussions

  • Need Help Figuring Out the Schematics Of Circuit Board
  • Wish to buy Battery, Charger and Buck converter for 12V , 2A router
  • applying solder paste from a jar
  • Question i-nears headphones magnetic drivers
  • An Update On Tarrifs

Featured – Designing of Audio Amplifiers part 9 series

  • Basics of Audio Amplifier – 1/9
  • Designing 250 Milli Watt Audio Power Amplifier – 2/9
  • Designing 1 Watt Audio Power Amplifier – 3/9
  • Designing a Bass Boost Amplifier – 4/9
  • Designing a 6 Watt Car Audio Amplifier – 5/9
  • Design a low power amplifier for headphones- 6/9

Recent Articles

  • Sienna Semiconductor data converters feature sample rates from 20 to 250 Msps
  • Delta’s 5,500 W power supplies achieve 97.5% energy efficiency for AI servers
  • Novosense Microelectronics releases digital isolators with capacitive-based design
  • MIPI C-PHY adds encoding option to support next-gen image sensor applications
  • Littelfuse gate driver delivers 1.9 A source and 2.3 A sink output current

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronics Projects and Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe