Use the command line to set the Raspberry Pi wifi network and the command line Raspberry Pi wifi
If you have not logged on to the Common graphic user interface, This method is suitable for setting Raspberry Pi's wifi. Especially w
is running.usb\vid_045epid_0745mi_01\***Name:usb Input DeviceDriver is running.Acpi\bcm2849\0Name:rpiq DriverDriver is running.storage\volume\{***volume_guid***} #00000000F6000000Name:generic VolumeDriver is running.storage\volume\{***volume_guid***} #0000000004800000Name:generic VolumeDriver is running.usb\vid_045epid_0745mi_00\***Name:usb Input DeviceDriver is running.hid\vid_046dpid_c31cmi_01col01\***Name:hid-compliant DeviceDriver is running.hid\vid_045epid_0745mi_02col03\***Name:hid-compli
Remove the comment symbol and change the following behavior to our configuration file path:daemon_conf= "/etc/hostapd/hostapd.conf"4.10 Launch the appropriate software and join the startup item
sudo service hostapd startsudo service udhcpd startenable Enable
December 12, 2013 updateRecently often found that the wireless network adapter configuration of the DHCP does not work, after the discovery to the wireless network card specified static IP failed, th
Rc. local file of Raspberry Pi (set startup), raspberry rc. local
To run a command or program when Raspberry Pi is started, you need to add the commandRc. localFile. This is useful when you want to run the program directly without
This article is based on the purchase of a East USB wireless network card (Rtl8188cus chip) to make wireless hotspot. Originally wanted to make a one-click script. Just record the implementation process first.
ReferencesTurn Your Raspberry Pi into a WiFi Hotspot with Edimax Nano USB Ew-7811un (Rtl8188cus chipset)Why won ' t DNSMASQ's DHCP server work when using HOSTAPD?
1, update the system, i
temporarily affect our use.
Supplement:
I directly checked the USB to the laptop USB3, 0 power supply, there has been a yellow icon, but so far there has not been a short black screen phenomenon, it is estimated that as long as you change the 2A header, the Raspberry Pi of the author will not suffer from insufficient power supply (only keyboard mouse + hdmi to vga ).Install
Use Raspberry Pi to build your own web server (2) set up Apache and raspberry apache
1. Obtain the Server IP Address:
1 ifconfig
2. Change the local hosts file
If you want to enter a domain name in your browser to access your server, you need to change the hosts file in your computer.
Linux:
1 sudo vim /etc/hosts
Wind
Use the command line to set Raspberry Pi's Wi-Fi network
If you have not logged on to the Common graphic user interface, This method is suitable for setting Raspberry Pi's wifi. Especially when you do not have a screen or wired network, you only use the serial control line. In addition, this method does not require additional software, and everything is included
details to the rassberry Pi (add the network to Raspberry Pi)
Open with nano EditorWPA-supplicanT configuration file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add the following content at the bottom of the file:
network={ ssid="The_ESSID_from_earlier" psk="Your_wifi_password"}
In this example, we should add:
network={ ssid="testing" psk="t
Use the command line to set Raspberry Pi's Wi-Fi network
If you have not logged on to the Common graphic user interface, This method is suitable for setting Raspberry Pi's wifi. Especially when you do not have a screen or wired network, you only use the serial control line. In addition, this method does not require additional software, and everything is included
: sudo vi/etc/init.d/tightvncserver, enter the following in this file:
### BEGIN INIT INFO # provides:tightvncserver # Required-start: $local _fs # required-stop: $local _fs # D Efault-start:2 3 4 5 # default-stop:0 1 6 # short-description:start/stop Tightvncserver ### end INIT INFO # M Ore details: # HTTP://WWW.PENGUINTUTOR.COM/LINUX/TIGHTVNC ### Customize This entry # Set the USER variable to the NAM
E of the user to start Tightvncserver under Exp
To run a command or program when Raspberry Pi is started, you need to add the commandRC. LocalFile. This is useful when you want to run the program directly without configuring it after Raspberry Pi is powered on, or do not want to start the program manually every time.
Another method to replace a scheduled task is to
DHCP.Auto Wlan0Iface Wlan0 inet DHCPPre-up Wpa_supplicant-b-dwext-iwlan0-c/etc/wpa_supplicant/wpa_supplicant.confPost-down Killall-q Wpa_supplicantAfter the modification is complete, restart the network using the following commandsudo/etc/init.d/networking restartAfter success, you can see the wlan0 device with the Ifconfig command, and have the IP address (connected)Note: Both of these methods we are using DHCP dynamic IP, if you want to set the sta
Update sourceThe default Raspberry Pi update source uses the British source, the speed is very slow; change to the domestic Raspberry Pi Update source method, see below:
Backing Up source list files
sudo cp/etc/apt/sources.list/etc/apt/sources.list.oldHere to f
1, install the required packagesudo apt-get install Hostpad UHDCPD2. Configuring the/etc/network/interfaces FileConfigure Wlan0 as static addressThe format is as follows:Iface wlan0 inet StaticAddress 192.168.10.1Netmask 255.255.255.0Save, exit3. Configuring the/etc/udhcpd.conf FileSet up automatic assignment of address ranges for DNS gateways, etc.Specific as follows: (according to individual needs to configure)Start 192.168.10.2 # This is the range of IPs that the Hostspot would give to client
# 1. The ssh,11 version released on Raspberry 15th is not turned on by default. # 2. Start the root user, after executing this command, you will be prompted to enter the root password two times, enter the password you want to set, and then execute sudo passwd root# Unlock root account sudo passwd--unlock root# 3. Update software sudo apt-get update-ysudo apt-get upgrade-y# 4. Installing CPUs and related se
sudo ifconfig eth0 192.168.1.212 netmask 255.255.255.0 (192 .... 212 is your bound ip,netmask is the subnet mask)sudo route add default GW 192.168.1.1 (this is your router, this is called Gateway)sudo ifconfig eth0 up (makes setup successful)Exception in your WordPress dashboard in the general settings in the regular URL to your domain name, as if it will be faster, I do not understand why, just know that this will be fast, you like this memory, changed to your domain name, close to the point is
. Use GCC for compilation and execution, as shown in:
If there is no problem with the hardware, you should see that the LED lights are flashing.
2Serial Communication Between Raspberry Pi and lingxiao Development Board
2.1 disable the serial port debugging Function
The serial port cannot be used directly yet, because it is bound to the debug port by default, so we must disable this function first.
Enter t
' * ' in these fields (for ' any '). ## Notice that tasks would be started based on the Cron ' s system# daemon ' s notion of time and timezones.## Output of the crontab jobs (including errors) is sent through# Email to the user of the crontab file belongs to (unless redirected).## For example, you can run a backup of all your user accounts# at 5 a.m. every week with:# 0 5 * * 1 tar-zcf/var/backups/home.tgz/home/## For more information see the manual pages of crontab (5) and cron (8)## m H Dom
the board, but requires a USB-to-TTL module. This module can be bought on the internet and a few dollars cheaper.The following is a Raspberry Pi B + version of Gpio PIN definition:USB to TTL used to 4 pins for 3.3V, GND, TXD, RXD (note official online said must use 3.3V)The pin used for Raspberry Pi is 1 (3.3V), (GND)
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.