Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Burn to SD Card
- Either hookup monitor to pi or set the ip address on the sd card so you can login remotely
- Boot
- ****
- If you have a monitor on your pi, it will show you a default ip address and username/pw
- Open putty on your computer (if you don’t have it, get it from ninite.com)
- Enter the ip address in putty and connect.
- ****
- Login with root / dietpi
- nano /etc/apt/sources.list
- That will take you to a text editor.
- Copy these lines…
- deb http://security.debian.org jessie/updates main contrib non-free
- deb http://ftp.debian.org/debian jessie main contrib non-free
- deb http://ftp.debian.org/debian jessie-updates main contrib non-free
- deb http://ftp.debian.org/debian jessie-backports main contrib non-free
- Paste them in that text editor (Right click pastes in Putty)
- Click Ctrl-x
- Hit Enter for Y
- type
- sudo apt-get update
- This will take a while...
- sudo apt-get upgrade
- dietpi-config
- Security Options ->Change root password
- You can also set a static IP if you know what you’re doing.
- Go to Language and Regional options
- Set your timezone
- Exit dietpi-config. When the pi reboots. Log back in with your new pw.
- At the command prompt, type
- sudo date -s "Sun Jan 21 19:44:11 UTC 2018"
- (with the current date/time - You can google “What time is it UTC” to get your utc time )
- echo 0 > /etc/dietpi/.ntpd_exit_status
- //The first run will take a while
- dietpi-software
- Go down to software optimized
- Select the following packages (space bar)
- LLMP (80)
- Hit Tab to get to Ok
- Hit Ok Again
- Go down to Install
- Hit OK.
- dietpi-software
- Go down to software optimized
- Select the following packages (space bar)
- Node-Red
- Mosquitto
- ProFTP
- Hit Tab to get to Ok
- Hit Ok Again
- Go down to Install
- Hit OK.
- Reset your mysql password
- sudo /etc/init.d/mysql stop
- sudo /etc/init.d/mysqld stop
- sudo mysqld_safe --skip-grant-tables &
- mysql -uroot
- use mysql;
- update user set password=PASSWORD("mynewpassword") where User='root';
- flush privileges;
- quit
- sudo /etc/init.d/mysql stop
- sudo /etc/init.d/mysql start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement