FAQ | Contact Us  |  Register  |  Login

UC Davis Center for Integrated Computing and STEM Education (C-STEM) --- Research and Outreach
Home > C-STEMbian > Access from Windows

Access from Windows

A Raspberry Pi microcomputer can run stand alone, connected with a monitor, keyboard, and mouse. However, C-STEM Studio on Raspberry Pi can also be  accessed through Windows, Mac, or Chromebook computers  using existing peripheral devices through Virtual Network Computing.

In order to set up your Raspberry Pi for remote access, follow these steps

1. Connect your Raspberry Pi to your laptop using an Ethernet Cable for network access and Micro-USB for power. Make sure your laptop is connected to the internet.

2. Set up your Internet to Share through Host Computer

  1. Internet sharing needs hardware support. Therefore, it is worthy to check the availability before we go further.
    1. Open a Windows command shell by search “cmd” in a global search bar
    2. Execute the command “netsh wlan show drivers | grep “Hosted network”” in the shell
    3. The result “Hosted network supported: Yes” means that the Wifi module is able to share. It’s not supported otherwise.
  2. On Windows 10 the feature is disabled by default, even though it is supported. Hence, extra steps are needed to enable the feature.
    1. Open a Windows command shell as administrator.
    2. Execute the command “netsh wlan set hostednetwork mode=allow” (You should see the result: The hosted network mode has been set to allow.)
    3. Execute the command “netsh wlan start hostednetwork” (You should see the result: The hosted network started.)
  3. Now, you can follow the instruction below to share your WIFI network with Ethernet port.
    1. Search “view network connections” in a general search bar in Windows
    2. Click the best match option in the results and a dialog will pop up
    3. Right click the icon that represents the wireless connection
    4. Click “Property” in the context menu and a property dialog will pop up
    5. Switch to “Sharing” tab and check the first box
    6. Select “Local Area Connection” or “Ethernet” in the pull-down menu
    7. Click “OK” to finish
    8. Right click the icon that represents the ethernet connection
    9. Click “Property” in the context menu and a property dialog will pop up
    10. Double-click the entry “Internet Protocol Version 4” and a new dialog will pop up
    11. Write down the IP address in the new dialog for later use (Don’t forget the dots between numbers)
    12. Connect the Raspberry Pi to the host computer with a ethernet cable
    13. Power the Raspberry Pi on with a micro usb cable
    14. Search “cmd” in a general search bar in your host computer
    15. Open the command prompt by clicking the first item in the results
    16. Type the command “arp -a -N ip_addr” (replace the ip_addr with the IP address you wrote down in the previous step)
    17. Write down the first IP address which is the key to access the Raspberry Pi


3a. Access the Raspberry Pi through the Command Line Interface (CLI)

  1. Launch Putty and type in the IP address from step 17 in the previous instruction and hit the “Open” button
  2. A terminal window will pop up and log in as “pi” with the password “raspberry”
  3. You may change the password by typing the command “passwd” in the terminal window.
  4. If you would like to connect your Raspberry Pi to a remote window, continue on to section 2b.


3b. Access the Raspberry Pi through Graphical User Interface (GUI)

  1. Access the Raspberry Pi through the Command Line (3a steps 1-3).
  2. Run the command “sudo raspi-config” (without quotation marks), by typing in the terminal window that opened in 3a step 2. You should see a blue screen with options in a grey box in the center
  3. Select “Interfacing Options” (Use up and down arrow keys to navigate between vertical options and use the enter key to select)
  4. Select “VNC” in the submenu and select “Yes” (Use right and left arrow keys to navigate between horizontal options)
  5. Hit “OK” in the confirmation page and it will return back to the main menu
  6. Use Tab key to switch to horizontal options and use the right key to select “Finish”
  7. Download and install VNC software, such as realvnc and tightvnc, from the internet
  8. Launch a VNC viewer and type the IP address you used in step 17 of section 2 and hit connect
  9. Use the same user name and password to login