Raspberry Pi Study

Source: Internet
Author: User

A Raspberry Pi configuration

2 Raspberry Pi (raspberry) enable root account

The Linux used by the Raspberry Pi is the Debian system, so the Raspberry Pi enable root and Debian are the same. The root account in Debian does not have a default password, but the account is locked.
When Root is required, the default account is executed via sudo, and the Raspbian Default user in the Raspberry Pi system is the pi password of Raspberry.

Re-open the root account, can be logged by the Pi user, the command line execution

sudo passwd root

After executing this command, you will be prompted to enter the root password two times, enter the password you want to set, and then perform the

sudo passwd--unlock root

This will allow you to unlock the root account. Use SU root to switch to the root account.

3 Raspberry Pi Wireless Card configuration

By configuring the/etc/network/interfaces file implementation

sudo nano/etc/network/interfaces

The contents of the modified file are as follows:

Auto loiface lo inet loopbackiface eth0 inet dhcpauto wlan0allow-hotplug wlan0iface wlan0 inet dhcpwpa-< C2>ssid "Your WiFi name" WPA-PSK "Your WiFi password"

The specific line configuration means the following:

// indicates the use of localhost // If there is a network card ech0, then use DHCP to obtain the IP address (this network card is the local network card, not the WiFi network card) // indicates that if there is a WLAN device, use the WLAN0 device name // indicates that the WLAN device can be hot-swappable // If you have a WLAN NIC Wlan0 (which is the WiFi network card), use DHCP to obtain the IP address wpa-ssid "Your WiFi name"// indicates the connection SSID name WPA-PSK " Your WiFi password "// means when connecting WiFi network, using WPA-PSK authentication, authentication password

After the above definition, if there is a network cable connection, then take the DHCP automatic connection to obtain the address, using the command

sudo/etc/init.d/networking restart

or use the following command

After success, you can see the wlan0 device with the ifconfig command and have an IP address.

Update the source test, wired or wireless network connection through, we later on the software update is, we need to first update the list of updates, execute the following command:

sudo apt-get update

Go to the Configuration menu

If the current Raspberry Pi is already logged into the Graphics desktop system, open the terminal and enter the configuration menu.

sudo raspi-config

Raspberry Pi Study

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.