In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to implement a monitor-free installation system for raspberry pie. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
1. The selection and installation of the operating system LZ is officially provided by Raspbian and officially provided by Raspberry Pi dedicated Debian. After opening the download page, select Zip download for Raspbian "wheezy".
Download page:
Http://www.raspberrypi.org/downloads
After unzipping, we get an .img file. two。 Download Win32DiskImager
Http://pan.baidu.com/share/link?shareid=444807&uk=3305410977
3. Write
4. After starting the burning and writing, insert the card into the board and you can start. Connect the network cable, the power supply (of course, the other end of the network cable also needs to be routed), and then start.
Wait for more than 20 seconds, if nothing happens, the three small lights on the board are on, indicating that the system has been started. At this point, log in to the routing page (generally 192.168.1.1) to see if any device called Raspberrypi has been assigned an IP address, and if so, make a note that is the raspberry pie's local area network IP.
Tags: if you don't have a router or don't know your password, you can use ipscan to scan.
Http://pan.baidu.com/s/1hqvoepu
5. Landing
There are two ways to use no monitor: SSH and VNC. The former is the command line, and the latter is the graphical interface. If you are familiar with the Linux command, SSH is enough.
Let's start with SSH, which relies on a lot of things, including installing VNC. Raspberry pie automatically turns on SSH by default, so after connecting to the local area network, we can log in remotely. First of all, we have to have a putty. It's easy to use and easy to use.
Download page: http://pan.baidu.com/share/link?shareid=444800&uk=3305410977
Enter the IP of the raspberry pie and open it, where the route assigned to the raspberry pie is 192.168.1.102.
The default account for login is pi, and the password is raspberry. The first login may be a bit slow.
6. Configuration
After logging in to SSH, you need to enable the configuration, enter
Sudo raspi-config
Select expand_rootfs, and then expand the free space of the entire system to the size of the memory card. Personally, before there is no expand, SSH login is very unstable. If the RP is not good and gets stuck, unplug the power supply and start over.
Then type sudo reboot to restart and then connect.
General automatic route assignment IP can be directly connected to the Internet later, you can enter the command to check:
Ping www.qq.com
7. Install remote Desktop
After you can surf the Internet, you can install all kinds of software. The software installation command is sudo apt-get install xxx, which should be familiar to friends who have played ubuntu. Then we need to install vncserver.
Sudo apt-get install tightvncserver
After the installation is successful, enter the command to set a password. Enter it twice, and then ask if you want to set a view-only password, which is generally not required:
Vncpasswd
At this point, you can start the graphical interface service:
Vncserver: 1-geometry 800x600
The command: 1 represents Desktop 1, or we can enter: 2 to create Desktop 2. And then-geometry 800x600 is, of course, setting the resolution. According to your own needs.
Note: vnc desktops opened as root are different from desktops opened as pi users. It is recommended that you just turn it on as pi, that is, when the last symbol on the command line is $.
Open the vnc client on the PC and download it from the official home page:
Http://www.realvnc.com/download/viewer/
Then enter the IP of the raspberry pie and the connect of the desktop, and then enter the password to log in. For example, the effect is as follows
You can use the command vncserver-kill: 1 to kill Desktop 1, but this command is not commonly used either. Boot the vnc Desktop
You can also let Desktop 1 start at boot time, set it to boot, and create a file in / etc/init.d/, such as tightvncserver. The setup steps are as follows:
a. Input
Sudo nano / etc/init.d/tightvncserver
b. Write the following content, you can first copy, and then putty inside the right mouse button is to paste.
#! / bin/sh### BEGIN INIT INFO# Provides: tightvncserver# Required-Start: $local_fs# Required-Stop: $local_fs# Default-Start: 2 34 "Default-Stop: 0 1" Short-Description: Start/stop tightvncserver### END INIT INFO# More details 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 "$1" in start) # start the command line. Customize the resolution, console number, or other parameters here. Su $USER-c'/ usr/bin/tightvncserver-geometry 800x600: 1 'echo "Starting TightVNC server for $USER";; stop) # terminate the command line. Here the console number is the same as the startup. Su $USER-c'/ usr/bin/tightvncserver-kill: 1 'echo "Tightvncserver stopped"; *) echo "Usage: / etc/init.d/tightvncserver {start | stop}" exit 1;; esacexit 0
C.ctrl+x, save and exit
d. Configure:
This is the end of the sudo chmod 755 / etc/init.d/tightvncserversudo update-rc.d tightvncserver defaults article on "how to implement a monitor-less installation system for raspberry pie". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.