Raspberry Pi Notes-initialization and system Setup (3)

Source: Internet
Author: User
Tags tightvnc raspi

Then the previous chapter, the system has been installed.

First, connect the Raspberry Pi

Preparation Tool: Putty, network cable

Plug the Raspberry Pi into the power and SD card and plug in the network cable, and the other end of the network cable to the router. At the same time, the laptop (computer) is attached to the router.

Laptop (computer) Open putty, enter the Raspberry Pi IP address in the host name (or IP address).

    

    

Login screen appears:

Enter user name: Pi Password: Raspberry (password is not visible during password entry)

Enter to confirm, connected to the Raspberry Pi.

Second, replace the software source

(1) Backup

Cd/etc/apt

CP Sources.list Sources.list_bak

(2) Replacement

sudo nano sources.list

Add the following content:

Deb Http://mirrors.ustc.edu.cn/raspbian/raspbian/wheezy main Non-free contrib

DEB-SRC Http://mirrors.ustc.edu.cn/raspbian/raspbian/wheezy main Non-free contrib

(3) Proceed with the update:

Update the software source

sudo apt-get update

Update Software

sudo apt-get upgrade

Ps:

Domestic main software Source:

Zhongshan university

Raspbian http://mirror.sysu.edu.cn/raspbian/raspbian/

China University of Science and Technology

Raspbian http://mirrors.ustc.edu.cn/raspbian/raspbian/

Tsinghua university

Raspbian http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/

Hust

Raspbian http://mirrors.hustunique.com/raspbian/raspbian/

Dalian Neusoft Information Institute

      Raspbian http://mirrors.neusoft.edu.cn/raspbian/raspbian/

Chongqing University Source (Midwest users)

Raspbian http://mirrors.cqu.edu.cn/Raspbian/raspbian/

    

Reference: Http://www.raspbian.org/RaspbianMirrors

Third, initialize the configuration

Terminal input: sudo raspi-config

The following is the interface of the new system, the older version of the slightly different.

    

1.Expand Filesystem: Extended File system

2.Change User Password: Change Password

The first time you enter the system recommends modifying the default password.

3.Boot options:boot settings. The environment to enter at startup.

B1 Console text console, requiring user to login text console, requires users to log in.

      B2 console autologin text console, automatically logged in as ' pi ' user automatic login text console

      B3 Desktop Desktop GUI, requiring user to login GUI, requires login

      The B4 desktop Autologin desktop GUI, automatically logged in as ' pi ' user automatically logs in to the GUI

4.Wait for networking at boot: Waiting for network connection on boot

      Would you like boot to wait until a network connection is established?

Fast boot without waiting for network connection Quick Start does not need to wait for the Internet connection

      Slow wait for network connection before completing boot slow waits to finish starting the networking connection

5.Internationalisation Options: Internationalization settings, language settings

I1 change locale changes language and region

I2 change Timezone changing time zone

I3 change Keyboard layout changing keyboard layouts

6.Enable Camera: Webcam module enable

Activate the camera enable; Disable Disable

7.Add to Rastrack: Add a Raspberry Pi map trail

Add your pi location to a world-wide map that opens this option and is not recommended.

8.Overclock: overclocking

None overclocking, running at 700Mhz, core frequency 250Mhz, Memory frequency 400Mhz, no increase in voltage

Modest moderate overclocking, running at 800Mhz, core frequency 250Mhz, Memory frequency 400Mhz, no increase in voltage

Medium Medium overclocking, running at 900Mhz, core frequency 250Mhz, memory frequency 450Mhz, increased voltage 2

High-height overclocking, running at 950Mhz, core frequency 250Mhz, memory frequency 450Mhz, increased voltage 6

Turbo Ultimate Overclocking, running at 1000Mhz, core frequency 500Mhz, memory frequency 600Mhz, increased voltage 6

9.Advance Options: Advanced Settings

A1 Overscan whether to make screen content display full screen

A2 Hostname host name that can be seen on the network neighbor or router

A3 Memories Split Memory allocation, select how much memory to GPU

A4 ssh is running SSH login, it is recommended to always turn on this option.

A5 SPI Core driver is enabled by default.

A6 if the I²c kernel driver is enabled by default.

A7 Serial serial port is started.

A8 Audio Select whether the sound is output to the analog or HDMI ports by default

0 Auto Selection

1 Force 3.5mm (' headphone ') Jack forces output to 3.5mm analog port

2 Force HDMI forced output to HDMI

A9 1-wire whether to start the One-wire bus

Whether the AA GPIO Server allows remote connection pin

AB GL Dirver Whether to start the lab desktop GL Drive.

A0 Update automatically upgrades the Raspi-config tool to the latest version

0.About Raspi-config

First configuration:

1) Select expand Filesystem to extend the file system.

2) Select the change User Password, changing the pi password.

3) Select Change Timezone, changing the time zone. Select Asia–chongqing (or Shanghai)

4) Select the change locale, modify the language settings, and select en_US. UTF-8 and ZH_CN. UTF-8

This is the first configuration that needs to be done and is subsequently configured as needed. After the configuration is complete, the restart takes effect.

Third, VNC Remote Desktop

(1) Installing VNC on the Raspberry Pi

sudo apt-get install Tightvncserver

(2) Installing the VNC client on the PC

Under Windows, download TightVNC

Under Ubuntu, install the VNC client

sudo apt-get install Xtightvncviewer

(3) Modify the VNC password

vncpasswd

Enter the password as prompted.

(4) VNC configuration file

Set boot up

sudo nano/etc/init.d/tightvncserver

Enter the following (the content is longer and can be pasted in putty):

# # BEGIN INIT info# provides:          tightvncserver# required-start:    $local _fs# required-stop:     $local _fs# Default-start:     2 3 4 AA Default-stop:      0 1 6# short-description:start/stop tightvncserver### END INIT info# more D Etails see:# http://www.penguintutor.com/linux/tightvnc### Customize This entry# Set the USER variable to the name of the User to start tightvncserver underexport user= ' pi ' # # # END Customization requiredeval CD ~ $USERcase "$" in  start)    # Start the command line. Customize the resolution, console number, or other parameters here.    su $USER-C '/usr/bin/tightvncserver-depth 16-geometry 800x600:1 '    echo "starting TightVNC server for $USER" 
   ;;  Stop)    # terminates the command line. Here the console number is consistent with the start.    su $USER-C '/usr/bin/tightvncserver-kill:1 '    echo "Tightvncserver stopped"    ;  *)    echo "Usage:/etc/init.d/tightvncserver {start|stop}"    exit 1    ;; Esacexit 0

Press Ctrl+o, and then enter to save.

Then press Ctrl+x to exit the Nano editor.

(5) Change permissions and launch list

Change permissions

sudo chmod 755/etc/init.d/tightvncserver

Change the startup list

sudo update-rc.d tightvncserver defaults

(6) Start TightVNC server

Vncserver:1-geometry 800x600

The following parameter is the resolution, or you can set the

Vncserver:1

Stop the VNC window

Vncserver-kill:1

Restart Service

Service Vncserver Restart

(7) Remote connection

Open the VNC client under Windows, connect to the Raspberry Pi IP and specify the port.

Raspberry Pi Notes-initialization and system Setup (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.