Update README.md
This commit is contained in:
parent
14305423b3
commit
fce87bf519
18
README.md
18
README.md
@ -31,28 +31,16 @@ Running
|
|||||||
```
|
```
|
||||||
|
|
||||||
- Automatically login on a Raspberry Pi:
|
- Automatically login on a Raspberry Pi:
|
||||||
|
- `sudo nano /etc/inittab`
|
||||||
```
|
|
||||||
sudo nano /etc/inittab
|
|
||||||
```
|
|
||||||
|
|
||||||
- Navigate to the following line in inittab
|
- Navigate to the following line in inittab
|
||||||
- `1:2345:respawn:/sbin/getty 115200 tty1`
|
- `1:2345:respawn:/sbin/getty 115200 tty1`
|
||||||
- Add a # at the beginning of the line to comment it out
|
- Add a # at the beginning of the line to comment it out
|
||||||
- `#1:2345:respawn:/sbin/getty 115200 tty1`
|
- `#1:2345:respawn:/sbin/getty 115200 tty1`
|
||||||
- Add the following line just below the commented line
|
- Add the following line just below the commented line
|
||||||
|
- `1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1`
|
||||||
```
|
|
||||||
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
|
|
||||||
```
|
|
||||||
|
|
||||||
- This will run the login program with pi user and without any authentication
|
- This will run the login program with pi user and without any authentication
|
||||||
- Save and Exit.
|
- Save and Exit.
|
||||||
- Press Ctrl+X to exit nano editor followed by Y to save the file and then press Enter to confirm the filename.
|
- Press Ctrl+X to exit nano editor followed by Y to save the file and then press Enter to confirm the filename.
|
||||||
- Reboot the pi and it will boot straight on to the shell prompt pi@raspberrypi without prompting you to enter username or password.
|
- Reboot the pi and it will boot straight on to the shell prompt pi@raspberrypi without prompting you to enter username or password.
|
||||||
|
|
||||||
- Run automatically after login:
|
- Run automatically after login:
|
||||||
|
- `echo '~/netwatch.py/netwatch.py' > ~/.bash_profile`
|
||||||
```
|
|
||||||
echo '~/netwatch.py/netwatch.py' > ~/.bash_profile
|
|
||||||
```
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user