Upgrade the packages existing on the machine
pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get upgrade
Reference:
What does “sudo apt-get update” do?
http://askubuntu.com/questions/222348/what-does-sudo-apt-get-update-do
Configure the Raspbian system.
Reference: http://elinux.org/RPi_raspi-config
pi@raspberrypi:~ $ sudo raspi-config
Set local time
Select region, then select city to set the local time.
Expand the Filesystem
Note, make sure to reboot the system for the expanded filesystem to take effect!!
Enable peripherals
Select the peripherals to be enabled.
Change GPU memory allocation
If the Pi will be used as a headless device (without using monitor), you could set the memory allocated to GPU to zero.
That's all for my typical application. The section below is rarely used..
--------------------------------------------------------------------------------------------------------------------------
Install Screen
pi@raspberrypi:/ $ sudo apt-get update
For more on how to use Screen, refer to the link below:
https://youtu.be/CywxGbA-zXw?list=PL-x6E_rBMvai4l2akwY-VaQOto5rm7p7Q
Fix the dependencies after a failed install - if any.
sudo apt-get update
sudo apt-get install -f
Download and install TightVNC on the computer that will be used to remotely view and operate X-Window.
http://www.tightvnc.com/download.php
Install X-Term and Download Manager
sudo apt-get install xterm
sudo apt-get install uget
sudo apt-get install tint2
Install tightvncserver
sudo apt-get update
sudo apt-get install tightvncserver
This is needed for accessing the X-window remotely (headlessly).
Reference:
http://www.instructables.com/id/Setting-up-a-VNC-Server-on-your-Raspberry-Pi/?ALLSTEPS
Note, there is a mistake in the command for installing tightvncserver on the Pi.
How to start tightvncserver on Raspberry Pi
VNC (VIRTUAL NETWORK COMPUTING)
https://www.raspberrypi.org/documentation/remote-access/vnc/
Setting up the programming environment
Python & C
Sparkfun has a great tutorial on programming with Python and C on Raspberry Pi.
https://learn.sparkfun.com/tutorials/raspberry-gpio
Python
How to Write and Run a Python Program on the Raspberry Pi
http://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/
Installing the Google API client library
https://developers.google.com/api-client-library/python/start/installation
Node-RED
Launch it from the x-window desktop.
Following the instruction in the console by issuing "sudo apt-get install npm" in PuTTY to install npm.
Once the installation is completed, launch the Epiphany browser and enter the IP address given in the Node-RED console (see above, in my case it's 192.168.1.24:1880).
The Node-RED is up and running.
Install applications
How to Turn a Raspberry Pi into an Always-On BitTorrent Box
http://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/
How to Turn a Raspberry Pi into a Low-Power Network Storage Device
http://www.howtogeek.com/139433/how-to-turn-a-raspberry-pi-into-a-low-power-network-storage-device/
Guide: Chromium 51 on Raspbian Jessie
https://www.raspberrypi.org/forums/viewtopic.php?t=121195
Install the Luakit browser
Command: sudo apt-get install luakit
http://www.makeuseof.com/tag/how-to-choose-and-optimise-your-raspberry-pi-browser/
Check the time and set the correct date and time
Because the Pi has no real time clock (RTC) it's already configured as an NTP client using the Debian NTP servers. As long as the Pi is connected to the internet, it should display the correct time. However, if the date and time are incorrect, it's possible that the Pi is configured for a different time zone other than your current one (https://www.raspberrypi.org/forums/viewtopic.php?f=26&t=10291).
Use the "date" command to show the current date and time.
If the date and time are incorrect, use "sudo dpkg-reconfigure tzdata" to select the correct time zone.
Reboot and issue the "date" command again to check the date and time again.
Configure the system to reboot at 04:00 every morning.
Reference: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=118069
Issue "crontab -e" to launch the crontab configuration file and enter "0 4 * * * sudo /sbin/shutdown -r now" to set the system to auto reboot at 04:00 every morning.
Note,
Issue "uptime -s" to check the time when the system is up. Or, issue "uptime" to check how long has the system been up.
Install ssmtp and mailutils to send emails in command line.
ssmtp to send emails
http://www.raspberry-projects.com/pi/software_utilities/email/ssmtp-to-send-emails
Note,
Need to create a seperate Gmail account for this as the username and password are stored in the SD card in plain text.
PuTTY Network Error: Software caused connection abort
http://superuser.com/questions/294824/putty-network-error-software-caused-connection-abort
Note,
At first, I changed the netsh setting as instructed below, but it didn't solve the problem.
Then I change the Seconds between keepalives to 5 seconds and it solved the problem.
-----------------------------------------------------------------------------------------------------------------------
References:
Things to do after installing Debian Jessie 8
No comments:
Post a Comment