Editing Pi Setup Dec 2018 - Stretch

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 48: Line 48:
 
And I found this as a complete update: '''[https://askubuntu.com/questions/196768/how-to-install-updates-via-command-line apt - How to install updates via command line? - Ask Ubuntu ]'''
 
And I found this as a complete update: '''[https://askubuntu.com/questions/196768/how-to-install-updates-via-command-line apt - How to install updates via command line? - Ask Ubuntu ]'''
 
<pre>
 
<pre>
sudo apt-get update
+
apt-get update
sudo apt-get upgrade -y
+
apt-get upgrade -y
sudo apt-get dist-upgrade -y
+
apt-get dist-upgrade -y
sudo apt-get autoremove -y
+
apt-get autoremove -y
sudo apt-get autoclean -y
+
apt-get autoclean -y
 
</pre>
 
</pre>
  
Line 274: Line 274:
  
 
* Reboot
 
* Reboot
* Identify the old dirve: f -Bm  will show it and its disk usage
+
* Identify the new drive how? Plug and unplug and look at .....
* Identify the new drive how? Plug in and it will ask to open a file manager that goes to the mounted card at: media/pi/xxxxxx
 
 
 
* Run utility. Menu -> Accessories -> SD Card Copier
 
  
 +
* Run utility.
 
* Put new os in a RPi ( can even use the one used for cloning )
 
* Put new os in a RPi ( can even use the one used for cloning )
  
 
* Fix the tcp ip address so it does not conflict.
 
* Fix the tcp ip address so it does not conflict.
  
= Get Python 3.6 =
 
  
* Why 3.6?  Well it is almost up to date, and I love f-strings  "print the str of an expression {some_expression}"  I do not want to program without it.
 
  
* Most methods I have tried are not very satisfactory.  Including building from source.  Problems include lack of software distribution command like pip to upgrade it.
 
  
* What did work?: berryconda which also gave me conda and pip useful install tools.  Link:  *'''[https://github.com/jjhelmus/berryconda jjhelmus/berryconda: Conda based Python distribution for the Raspberry Pi ]'''  After install pretty much typing '''python joe.py''' worked.  But in some cases it did not.  So in some files I used the command more explicitly: 
 
  
<pre>
 
  
# -------------- smart_terminal:run ------------
 
  
proc = Popen( [r"cd  /home/pi/SmartTerminal/; /home/pi/berryconda3/bin/python smart_terminal.py"], shell=True )
 
  
# -------------- smart_plug_graph:run ------------
 
  
proc = Popen( [r"cd /home/pi/smart_plug/  ; /home/pi/berryconda3/bin/python smart_plug_graph.py"], shell=True ) 
 
 
# -------------- smart_plug:run ------------
 
 
proc = Popen( [r"cd /home/pi/smart_plug/  ; /home/pi/berryconda3/bin/python smart_plug.py"], shell=True ) 
 
 
#proc = Popen( [ "leafpad /home/pi/smart_plug/smart_plug.py"], shell=True ) #
 
 
print( " autoexec.py all done " )
 
 
 
</pre>
 
 
And conda  install ...... works.  I cannot remember if pip was in place, if not install with conda.  Then the conda and pip installs go into your 3.6 install.
 
 
= Change Terminal Colors =
 
 
* Still need to figure this out, but default colors can be really hard to read over VNC viewer.
 
 
* sudo leafpad  .bashrc
 
* setvtrgb
 
 
 
== Links ==
 
 
 
*'''[https://www.raspberrypi.org/forums/viewtopic.php?p=584429 Terminal COlor change - Raspberry Pi Forums ]'''
 
*'''[https://raspberrypi.stackexchange.com/questions/96210/how-do-i-set-the-terminal-colors settings - How do I set the terminal colorS - Raspberry Pi Stack Exchange ]'''
 
*'''[https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/ How to Customize Bash Colors and Content in Linux Terminal Prompt ]'''
 
*'''[https://misc.flogisoft.com/bash/tip_colors_and_formatting bash:tip_colors_and_formatting - FLOZz' MISC ]'''
 
*'''[https://www.raspberrypi.org/forums/viewtopic.php?p=453328 Changing terminal colors - Raspberry Pi Forums ]'''
 
*'''[https://scottlinux.com/wp-content/gallery/terminal_colors/01_color_prompt.png 01_color_prompt.png (737×515) ]'''
 
*'''[http://www.opencircuits.com/index.php?title=Pi_Setup_Dec_2018_-_Stretch&action=edit&section=15 Editing Pi Setup Dec 2018 - Stretch (section) - OpenCircuits ]'''
 
  
[[Category:Arduino/RaspberryPi]][[Category:Pi Setup]]
+
[[Category:Arduino/RaspberryPi]]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)