Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. Burn to SD Card
  2. Either hookup monitor to pi or set the ip address on the sd card so you can login remotely
  3. Boot
  4. ****
  5. If you have a monitor on your pi, it will show you a default ip address and username/pw
  6. Open putty on your computer (if you don’t have it, get it from ninite.com)
  7. Enter the ip address in putty and connect.
  8. ****
  9. Login with root / dietpi
  10. nano /etc/apt/sources.list
  11. That will take you to a text editor.
  12. Copy these lines…
  13. deb http://security.debian.org jessie/updates main contrib non-free
  14. deb http://ftp.debian.org/debian jessie main contrib non-free
  15. deb http://ftp.debian.org/debian jessie-updates main contrib non-free
  16. deb http://ftp.debian.org/debian jessie-backports main contrib non-free
  17. Paste them in that text editor (Right click pastes in Putty)
  18. Click Ctrl-x
  19. Hit Enter for Y
  20. type
  21. sudo apt-get update
  22. This will take a while...
  23. sudo apt-get upgrade
  24.  
  25. dietpi-config
  26. Security Options ->Change root password
  27. You can also set a static IP if you know what you’re doing.
  28. Go to Language and Regional options
  29. Set your timezone
  30. Exit dietpi-config. When the pi reboots. Log back in with your new pw.
  31. At the command prompt, type
  32. sudo date -s "Sun Jan 21 19:44:11 UTC 2018"
  33. (with the current date/time - You can google “What time is it UTC” to get your utc time )
  34. echo 0 > /etc/dietpi/.ntpd_exit_status
  35. //The first run will take a while
  36. dietpi-software
  37. Go down to software optimized
  38. Select the following packages (space bar)
  39. LLMP (80)
  40. Hit Tab to get to Ok
  41. Hit Ok Again
  42. Go down to Install
  43. Hit OK.
  44. dietpi-software
  45. Go down to software optimized
  46. Select the following packages (space bar)
  47. Node-Red
  48. Mosquitto
  49. ProFTP
  50. Hit Tab to get to Ok
  51. Hit Ok Again
  52. Go down to Install
  53. Hit OK.
  54. Reset your mysql password
  55. sudo /etc/init.d/mysql stop
  56. sudo /etc/init.d/mysqld stop
  57. sudo mysqld_safe --skip-grant-tables &
  58. mysql -uroot
  59. use mysql;
  60. update user set password=PASSWORD("mynewpassword") where User='root';
  61. flush privileges;
  62. quit
  63. sudo /etc/init.d/mysql stop
  64. sudo /etc/init.d/mysql start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement