/gpio$1/direction
echo setting pi high
echo 1 >/sys/clas S/gpio/gpio$1/value
A few notes"1" If you write a shell script on windows (and then transfer to the Raspberry Pi using the FTP tool), you must save it in UNIX format. The shell script ends with \ n per line, not \
Today toss the next Raspberry Pi Thunder firmware, Thunderbolt installation is smooth, decompression directly run the portal is done, but since the start of the problem, due to the new version of the archlinux switch to SYSTEMD, Not only rc.conf province, and even Rc.local has not, so Google, after several attempts, with the following to determine the script can
The Raspberry Pi does not have a battery, so the system time stops after the power outage, until you start the timer again.Because the project needs to use local time, the accuracy requirements are not high do not want to toss (if you need high precision, need to install NTP), so consider using Python script synchronization Baidu time, accuracy error is small in
enter the new password sudo passwd root twice // enable the root account to log on to sudo passwd -- unlock root
4. Expand the available space
Execute the prompt script
Sudo raspi-config
Select the first Expand Filesystem to Expand the available space on the SD card. Otherwise, there will be a lot of software and cannot be installed (the prompt is insufficient space, such as mysql ).
After expansion, you must execute the restart command.
sudo re
0 PrefaceThis article uses Python file I/O operations to obtain Raspberry Pi CPU temperature information. The Python request library periodically uploads temperature information to the yeelink platform and modifies RC. the local script enables the Python script to run in the background at startup, and reports the tempe
PST 2013Sat Mar 9 13:19:07 PST 2013Sat Mar 9 13:19:08 PST 2013
I found that this script occasionally skips 1 second, probably because the date command is not exactly printed every second, so sometimes the output time is not used.
When I run this script, I log on to a Raspberry Pi and enter "sudo reboot" to restart the
center> change adapter settings, right-click Local Connection> Properties> share ],
Select these two options. Select network> TCP/IPv4> properties, set the IP address to 192.168.23.1, and click OK to exit.
3. Insert the TF card into Raspberry Pi, connect the network cable to the notebook, and turn on the power. Then open the Windows command line tool and enter arp-;
When two interface ip addresses are di
Raspberry Pi backup and Raspberry Pi backup
We strongly recommend that you regularly back up important files. Backup is usually not limited to user files, but also configuration files, databases, installed software, settings, and even system snapshots.
Here we will guide you through some backup technologies to back up
0 PrefaceThis article reads Raspberry Pi CPU temperature through file operations. In Linux, any device operations are abstracted as file read/write, read the content in the/sys/class/thermal/thermal_zone0/Temp File to get the Raspberry Pi CPU temperature. This article describes how to read and apply the temperature par
using a PIN, the user needs to find the corresponding rule between the channel number and the physical PIN number. For different Raspberry Pi versions, the script files you write may not be generic.For example, the "GPIO 16" and "36" pins refer to the same, while the corresponding ones are defined by BCM, which is defined by "BOARD".V. Application and Practice1.
that prompts the errorThe reason is that the new version of SSH default shutdown root Login You can modify the SSH configuration file[Email protected]:~$ sudo nano/etc/ssh/sshd_configCtrl + W shortcut Search permitrootlogin Without-passwordModify permitrootlogin Without-password to permitrootlogin YesCtrl + O shortcut keys SaveCtrl + O Shortcut exits the Nano editorAfter execution, restart with the Reboot command so you can unlock the root account.
operation password two times, then ask whether to set a view (view-only) password, as you like, generally not necessary. )Boot Auto-start Setup method (I have not set the success, first to use SecureCRT, Login to Raspberry Pi, enter in command line mode Tightvncserver Run Manually VNC server-side, continuing research)To set up boot, you need to create a file in/etc/init.d/. For example Tightvncserver:(Note
/ Agetty tty4 96005:2345:respawn:/sbin/agetty tty5 96,006:2,345 :respawn:/sbin/agetty tty6 9600# end/etc/inittabeof View Code5. Installing pilfs-bootscripts-20160219Package contains a collection of scripts, as well as some fixes for the Raspberry Pi hardwareCD/sourcestar-jxf Pilfs-bootscripts-20160219.tar. XZcd pilfs-bootscripts-20160219 makeinstall-networkfix install-swapfix install-fake-hwcl
In my previous article, I talked about how to build a high-availability system: Two Raspberry Pi deploy the GlusterFS cluster file system, and it becomes a fault-tolerant file server. In this article, we will build another Fault-Tolerant Service Based on this high-availability system: Build a simple Web server cluster.
Maybe you have not read my previous article, so here I will briefly review the previous
Tag: Dial get Sha file network div reg NULL implementationWant to know how the Raspberry Pi through the 4G Network module communication How to achieve, see this article (http://www.lxway.com/95811506.htm), ready to next have the opportunity to practice, first retained learning;One, 4G Luci configuration1. Create a new Wwan interface;2, the Internet mode for automatic access to DHCP;3, the physical setting c
[Raspberry Pi] install the node environment and Raspberry Pi node Environment
This article is not about node compilation and installation. It is said that it takes a long time, so at first I refused. This article shows how to deploy ndoe compiled execution files.
The download directory on the node official website con
Raspberry Pi (Raspberry Pi) builds a Linux system (PiLFS) from scratch (II), raspberrypilfs
7. Build a temporary system
1. General Compilation Guide
A. Check whether the settings are correct.LFSEnvironment Variable
echo $LFS
B. Assume that you have correctly set the host system requirements and symbolic links.
C. For e
continue to run the START process.
In addition, make sure that the file name uses an absolute path instead of a relative path relative to your home directory. For example/Home/pi/myscript. pyInstead of usingMyscript. py.
Address: http://www.raspberrypi.org/documentation/linux/usage/rc-local.md
How can Raspberry Pi execute a command when it is started?
The simp
Securi-Pi: Uses Raspberry Pi as a stepping stone for securityGuideLike many readers of LinuxJournal, I have also lived a very common "technology nomadic" life today, from one access point to another between networks, we are in different places in the real world, but we are always connected to the Internet and other networks that are commonly used.
Recently, I hav
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.