Open main menu

CDOT Wiki β

Changes

Pidora-Headless-Mode

3,466 bytes added, 15:50, 29 April 2014
Known Bugs and Features
== What is headless mode? =={{Pidora}}[[Category:Pidora 18 (Raspberry Pi Fedora Remix)]]
Headless mode is a system configuration in which the display device, keyboard, or mouse = What is lacking.{{Admon/important| Warning if you are going to use headless mode it is advised that you change the root password, because Pidora nis set with a default root password that is publicized.}}? =
== Enabling {{Admon/important| Security Warning! | If you are going to use headless mode on it is critical that you change the root password as soon as possible, because Pidora ==is set with a default root password that is publicized.}}
If you would like Headless mode is a system configuration which enables access to enable headless a raspberry pi, through ssh on a network, without the use of a monitor or keyboard plugged into the raspberry pi. This mode, you will need does require another computer to create a file named "headless" in ssh into the following directory on your SD cardraspberry pi. When this feature is enabled, [[Pidora 18 Firstboot|firstboot]] is bypassed and disabled.
/bootAdditionally, Headless Mode will enable services to read your IP Address through plugged in speakers or headphones. It will also flash the IP Address to you on the Raspberry Pi LEDs.
{{Admon/important| Note If you are using a Windows OS you will need to remove the .txt file extension = Enabling Headless Mode on the headless file.More information on removing file extensions:Pidora =
http://www.ehowTo enable Headless Mode, create a file named "headless" inside the boot file system on the Raspberry Pi's SD card.com/how_6394953_create-Create this "headless" file-extensionbefore you boot your Raspberry Pi.html}}
There are two possible configurations for headless-mode "DHCP" configuration and "Static" configuration.== Enable Headless Mode On Linux ==
=== DHCP Configuration ===If you would like to obtain an ip address dynamically via DHCPcreate an empty file in the boot directory named "headless"Tutorial Video: http://youtu.be/ALUAmw6Mz_o
=== Static Configuration ===If you would like to specify a specific IP address you will need to include Insert the IP AddressSD card into your system, Netmask and Gateway.Create create a file called named "headless" and include in the following informationfilesystem labelled "boot".
==Enable Headless Mode On Windows = Sample ={{Admon/important| Note | If you are using a Windows OS you will need to remove the .txt file extension on the headless file Static Configuration ===.[http://www.ehow.com/how_6394953_create-file-extension.html More information on removing file extensions on eHow]}}Insert the SD card into your system. Only the boot filesystem will be made available, because Windows will not be able to read other partitions on the card. Create a file named "headless" on that partition
There are two possible configurations for Headless Mode "DHCP" configuration and "Static" configuration.
 
== DHCP Configuration ==
 
If you would like to configure the Raspberry Pi to use DHCP, ''leave the "headless" file empty'', and the Raspberry Pi should be assigned an IP Address dynamically.
 
====Optional Configuration====
If "RESIZE" is in the "headless" file, the root filesystem will be expanded to the maximum size of the sd card via the service rootfs-resize. If "SWAP"(requires the value in megabytes) exists in the "headless" file, a swap file will be created of the specified size, and then activated.
 
RESIZE
SWAP=[Size of swap in megabytes]
 
====How do I find my IP Address? ====
 
Once Headless Mode has been Enabled, and the Raspberry Pi has finished booting, the IP Address of the Raspberry Pi will be read out through the speakers or headphones that are connected to the Raspberry Pi. Additionally, the IP Address will be flashed through the LED on the Raspberry Pi soon after the IP Address is read through the speakers.
 
1 - 9 short flashes indicate the digits 1 - 9
10 short flashes indicate the digit 0
a long flash indicates an octet separator (dot)
a brief pause separates digits
 
[https://github.com/ctyler/ip-info/blob/master/README.md For more information about IP Address reading and IP Address flashing, click here]
 
== Static Configuration ==
 
If you would like to set a static, non-changing, IP Address on your Raspberry Pi, you will need to modify the "headless" file, adding an IP Address, Gateway, and Netmask, to the file for the configurations to work properly(see samples configs below).
 
====Required Configuration====
 
IPADDR=[IP Address of Raspberry Pi]
NETMASK=[Mask to define network subnet]
GATEWAY=[IP Address of router/gateway]
 
====Optional Configuration====
If "RESIZE" is in the "headless" file, the root filesystem will be expanded to the maximum size of the sd card via the service rootfs-resize. If "SWAP"(requires the value in megabytes) exists in the "headless" file, a swap file will be created of the specified size, and then activated.
 
RESIZE
SWAP=[Size of swap in megabytes]
 
= Sample Headless Mode Configurations =
 
Below are sample configurations, they may require you to enter valid ip information specific to the network you are running it on.
 
====Static Configuration(without rootfs resizing or swap creation)====
IPADDR=192.168.1.105
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
== ==Static Configuration(with rootfs resizing and swap creation)==== IPADDR=192.168.1.105 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 RESIZE SWAP=512 ====Dynamic Configuration(with rootfs resizing and swap creation)==== RESIZE SWAP=512 = SSH to The Headless Mode is enable how do I find out what my ip-address? Pi =  Default User: root Default Password: raspberrypi ssh root@{ip_address} =Known Bugs and Features =After you have enabled headless mode with either the DHCP configuration or Static ====Two IP configurationAddresses====When switching in between Headless Mode Configuration states, static ip to dynamic ip, the or dynamic ip address that has been assigned to Raspberry Pi static ip, both IP Addresses from each configuration will be played through active for the speakers "'''2 minutes'''" after single boot, until a reboot takes place. ====Graphical Mode Not Disabled====Headless Mode does not disable X, and can run in both Run Level 3 or 5. This means that if you have powered the Raspberry Piare not planning on using X while in Headless Mode, "'''30 seconds'''" after the ip information has been played it will also flash your ip address through Pi's LED lightsyou should switch to Run Level 3 to save memory.
More [https://fedoraproject.org/wiki/Systemd#How_do_I_change_the_target_.28runlevel.29_.3F For more information about ip-read and ip-flash:changing Run Levels on Pidora, click here.]
https://github====Slower Boot====When running headless mode, the speed of the boot is slowed down, this is due to a network change during boot.com/ctyler/ip-info/blob/master/README.md
198
edits