Giter Site home page Giter Site logo

commanderpi's Introduction

CommanderPi


Easy Raspberry Pi 4 GUI system manager.

Included in TwisterOS!

Requirements

Nothing, every Linux distribution has a Python interpreter!

Features

-Check your system information (CPU temperature, CPU usage, Kernel version,etc) with an user friendly menu.
-Easy overclocking!
-Checks the actual bootloader configuration and setup your own!
-Switch between the 64bit and 32bit Linux Kernel! (EXPERIMENTAL)


To download the software.

Open a terminal and type: cd ~; git clone https://github.com/Jack477/CommanderPi

Steps to update the software.

-CommanderPi must be version 0.4.5+ to update. ( If your version of CommanderPi doesn't fulfill those requirements, you should download the newest version and reinstall it.)

-Press the Update application button in the About window.

USAGE:

First open a terminal and type cd CommanderPi
(Then make install.sh executable! sudo chmod +x install.sh )
Finally install it with ./install.sh

  • OVERCLOCKING
  1. Go to the Overclocking menu.
  2. Set the arm_freq.
  3. Set the gpu_freq.
  4. Set the over_voltage.
  5. CLICK BOTTOM BUTTON TO RESTART RPI!
  6. Enjoy your new overclock!
  • EEPROM/BOOTLOADER
  1. Go to the Bootloader menu.
  2. Select "Set all values."
  3. Click 'Apply and save' to apply your own configuration.
  4. Restart your Raspberry Pi.

Version history

To see the version history, click here.

TODO

  • Basic system informations.
  • Overclock.
  • EEPROM.
  • Network.
  • Automatic updater.

Support me

All my work is provided for free, I'm doing stuff from fans for fans and learning by this too, improving TwisterOS.
I'm a student, Next year, I'm going to the Institute of Technology. If you like my work, you can support me. Thanks you! https://www.paypal.com/paypalme/jack47legos

commanderpi's People

Contributors

arelyx avatar botspot avatar jack477 avatar paulwratt avatar queenpew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commanderpi's Issues

Download link no longer available

When I try to download the link from Google Drive it says that the zip file is in the user's trash and is no longer available for download. Is there any other way to download these files?

Doesn't launch on Debian Bullseye

When launching from the icon, the cursor spins for a while then nothing.
When launched from the terminal I get the following.

raceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 9, in
import gui as g
File "/home/pi/CommanderPi/src/gui.py", line 4, in
import resources as rs
File "/home/pi/CommanderPi/src/resources.py", line 16, in
home_path = sys.argv[1]
NameError: name 'sys' is not defined

Unable to start program

Hello!
I'm unable to start your program after installing it. If I try to run it from the desktop nothing happens, and if I try to run it from the terminal sudo ./start.sh, the following error message appears: "ModuleNotFoundError: no module named 'psutil'.

Thank you in advance for your time.

No able to run on raspberry pi OS 64 bit

Python 3.7.3 (/usr/bin/python3)

%cd /tmp/xa-9B31T0
%Run c_desktop.py
Traceback (most recent call last):
File "/tmp/xa-9B31T0/c_desktop.py", line 7, in
user = sys.argv[1]
IndexError: list index out of range

Latest version on berryboot causing error

Upgraded to the latest version now get the following trace back running from terminal
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 9, in
import gui as g
File "/home/pi/CommanderPi/src/gui.py", line 5, in
import bootloader as btl
File "/home/pi/CommanderPi/src/bootloader.py", line 21, in
ad = get_actual_version()
File "/home/pi/CommanderPi/src/bootloader.py", line 12, in get_actual_version
month = MONTHS[x_version_split[0]]
KeyError: 'unknown'

It would appear that vcgencmd bootloader_version is returning unknown, changed to vcgencmd version and all works ok.

I am using latest raspberry os but booting from berryboot.

Overclock not applied

I tried using the overclock option, and then checked the bottom of config.txt. It added my overvoltage and gpu_freq, but the arm_freq was nowhere to be seen! I checked on commander pi, and the frequency was 1.2 GHz instead of the 1.3 GHz I set. Maybe you forgot some code? I am running turbo mode, which I believe won't affect the frequency.

Commander Pi only runs with the following command

Hi all. I use Commander Pi but recently it stopped working on my PI4. I looked up the issues page here and found this command: sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}
It only seems to run with that command. Otherwise it will not load when I click the shortcut on my desktop. What can I do?

BUG: Unable to run from different directory

Hello all!

If you'll run installation code from different directory - it'll fail. I offer some improvements for the running scripts

diff --git a/c_desktop.py b/c_desktop.py
old mode 100644
new mode 100755
index b7e8e31..27490ee
--- a/c_desktop.py
+++ b/c_desktop.py
@@ -1,16 +1,27 @@
-#!/usr/bin/python
-import sys
-import os 
-import subprocess as sp
-home_path = sys.argv[1]
-dir_path = os.path.dirname(os.path.realpath(__file__))
-f_content = "[Desktop Entry]\nName=CommanderPi\nComment=System info and overclocking\nExec="+home_path+"/CommanderPi/src/start.sh\nIcon="+home_path+"/CommanderPi/src/icon.png\nCategories=Utility;\nVersion=1.0\nType=Application\nTerminal=false\nStartupNotify=true"
-d_dir = home_path+"/Desktop/commanderpi.desktop"
-x_dir = "/usr/share/applications/commanderpi.desktop"
-print(d_dir)
-f = open(d_dir, "w+")
-f.write(f_content)
-f.close
-f2 = open(x_dir, "w+")
-f2.write(f_content)
-f2.close
+#!/usr/bin/python
+import sys
+import os
+import subprocess as sp
+from os.path import expanduser
+
+user = sys.argv[1]
+home_path = expanduser("~%s" % user)
+
+dir_path = os.path.dirname(os.path.realpath(__file__))
+
+print(dir_path)
+f_content = "[Desktop Entry]\nName=CommanderPi\nComment=System info and overclocking\nExec="+dir_path+"/src/start.sh\nIcon="+dir_path+"/src/icon.png\nCategories=Utility;\nVersion=1.0\nType=Application\nTerminal=false\nStartupNotify=true"
+print(f_content)
+
+d_dir = home_path+"/Desktop/commanderpi.desktop"
+x_dir = "/usr/share/applications/commanderpi.desktop"
+
+print("Save desktop shortcut to %s" % d_dir)
+f = open(d_dir, "w+")
+f.write(f_content)
+f.close
+
+print("Save menu shortcut to %s" % x_dir)
+f2 = open(x_dir, "w+")
+f2.write(f_content)
+f2.close
diff --git a/install.sh b/install.sh
old mode 100644
new mode 100755
index 9a596bd..9f4a57a
--- a/install.sh
+++ b/install.sh
@@ -7,6 +7,6 @@ if [ "" == "$problem" ]; then
 	sudo apt-get install python3-tk
 fi
 sudo apt-get install python3-pil python3-pil.imagetk
-sudo python3 c_desktop.py ${HOME}
-sudo chmod +x ${HOME}/CommanderPi/src/start.sh
+sudo python3 c_desktop.py $USER
+sudo chmod +x ${path}/src/start.sh
 sudo chmod +x ${HOME}/Desktop/commanderpi.desktop
diff --git a/src/start.sh b/src/start.sh
old mode 100644
new mode 100755

Error message on Raspbian

I installed the program on raspbian, and when I ran the program or ran test.desktop, I got the error message : Invalid desktop entry file: '/home/pi/Desktop/test.desktop'

crash with interface connection but without internet

(EDIT: I actually think this is a python bug, but the PR work-around avoids the crash)
I use a portal often, that means I have an interface connection, but until I login through the portal, I dont actually have an internet connection. The auto check fails at startup, way down deep inside a python library.
NOTE: this does not happen when I dont have an interface connection (eg if I disconnect wifi or ethernet).

Traceback (most recent call last):
  File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3.7/http/client.py", line 1407, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python3.7/ssl.py", line 412, in wrap_socket
    session=session
  File "/usr/lib/python3.7/ssl.py", line 853, in _create
    self.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/CommanderPi/src/main.py", line 22, in <module>
    main()
  File "/home/pi/CommanderPi/src/main.py", line 18, in main
    start = g.Window()
  File "/home/pi/CommanderPi/src/gui.py", line 710, in __init__
    up.check_update()
  File "/home/pi/CommanderPi/src/update.py", line 50, in check_update
    with urllib.request.urlopen(url) as f:
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 1367, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 0] Error>

I have patched the startup to accept a auto_check = false setting in the cpi.config file as a work-around. I believe this to be a useful setting on some systems/situations. However, looking at the code, and the TODO lists in the code, I would prefer to move all config stuff to a seperate config_cpi.py and use import config_cpi as cf (if thats acceptable). I will submit a PR so you can see why I think it should be split off into a seperate file. (Also there is a issue with version in the cpi.config)

wrong instructions in readme.txt

in readme.txt:

Run sudo ./install.sh

should be:

Run ./install.sh

according to README.md

also note that is the old way to install, and should "fail gracefully" or (better) adapt

IP addresses are truncated by 1 digit

Minor cosmetic issue: on TwisterOS, at least, the IP addresses, both v4 and v6, are truncated by 1 digit in the network view. Here's a comparison on CommanderPi and ifconfig:

Screenshot_2020-08-07_16-44-55

Note that both IPs are truncated but the MAC is not.

Uninstall

Hello! How can I uninstall Commander Pi?

Monjaro arm raspberry pi4 problem

I install thinter(tk in arch linux), but have a problem
Traceback (most recent call last):
File "/home/heeloff/CommanderPi/src/main.py", line 9, in
import gui as g
File "/home/heeloff/CommanderPi/src/gui.py", line 4, in
import resources as rs
File "/home/heeloff/CommanderPi/src/resources.py", line 16, in
home_path = sys.argv[1]
NameError: name 'sys' is not defined

Not working

I am using kali linux in rasberry pi 4 model B . I downloaded commander pi unzip it in home directory and all the logos shown up but it was not starting so i thought the commanderpi folder should be in the root directory.. i don't know how to uninstall so i just deleted the folder and created a new one in root directory, and once again i did ./install.sh and i got the same problem .
Screenshot_2020-12-14_13-29-01

also can anyone tell me how to completely uninstall this CommanderPi?

Small bug in 1.0

Just installed 1.0 and it wouldn't start, ran from terminal and didn't like cpu_thermal in reftemp()
I think it should be cpu-thermal. I changed resources.py and now works like a charm.
Love the new look keep up the great work.

CommanderPI doesn't have permissions to change config file

I previously had an issue where I couldn't launch CommanderPi from Desktop (still can't) however I was able to get CommanderPi to launch by running:
python3 ${HOME}/CommanderPi/src/main.py ${HOME}

However, when CommanderPi runs, it is unable to Overclock because it doesn't have permissions to modify /boot/config.txt
This is the error: PermissionError: [Errno 13] Permission denied: '/boot/config.txt'

How can I grant CommanderPi this access? I'm sure it's something really simple that I'm missing.
FYI: I'm running a RPI4 with Raspbian.

Thanks for any help! This tool is really cool!

Install broken

Install not working as it did before.

Fresh install of Raspberry Pi OS 32-bit, updated.

Here's the install output:

pi@raspberrypi:/CommanderPi-master $ sudo chmod +x install.sh
pi@raspberrypi:
/CommanderPi-master $ sudo ./install.sh
/home/pi/CommanderPi-master
Checking for tkinter: Status: install ok installed
./install.sh: 6: [: unexpected operator
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pil is already the newest version (5.4.1-2+deb10u2).
python3-pil set to manually installed.
Suggested packages:
python-pil-doc python3-pil.imagetk-dbg
The following NEW packages will be installed:
python3-pil.imagetk
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 65.0 kB of archives.
After this operation, 92.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.heanet.ie/mirrors/raspbian/raspbian buster/main armhf python3-pil.imagetk armhf 5.4.1-2+deb10u2 [65.0 kB]
Fetched 65.0 kB in 1s (92.1 kB/s)
Selecting previously unselected package python3-pil.imagetk:armhf.
(Reading database ... 95104 files and directories currently installed.)
Preparing to unpack .../python3-pil.imagetk_5.4.1-2+deb10u2_armhf.deb ...
Unpacking python3-pil.imagetk:armhf (5.4.1-2+deb10u2) ...
Setting up python3-pil.imagetk:armhf (5.4.1-2+deb10u2) ...
/home/pi/CommanderPi-master
[Desktop Entry]
Name=CommanderPi
Comment=System info and overclocking
Exec=/home/pi/CommanderPi-master/src/start.sh
Icon=/home/pi/CommanderPi-master/src/icon.png
Categories=Utility;
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Save desktop shortcut to /root/Desktop/commanderpi.desktop
Traceback (most recent call last):
File "c_desktop.py", line 20, in
f = open(d_dir, "w+")
FileNotFoundError: [Errno 2] No such file or directory: '/root/Desktop/commanderpi.desktop'
chmod: cannot access '/root/Desktop/commanderpi.desktop': No such file or directory

Same issue when I tried ./install (without sudo). Re-imaged SD Card and tried the process all over again using sudo ./install and have the same issue

Two different version in code

in the config.cpi, (when it gets created) there is a version that does not match the app_version which is used to compare when doing an update.

Should they actually be the same. Only app_version is used to compare when updating, ie only color_mode ever get read from the config file.

Both versions should be the same, and it should be read from the config after the config has been created (see PR for config read changes)

NOTE:
cpi.config version is a number
rs.app_version is a text string (including EOL character)

Along with the other issue (#29) , they should be moved to the separated config_cpi.py. The number version can be injected into the app_version text at startup. This will make it easier when it comes time for multi-language interface changes.

pi@raspberrypi:~/fix-repos/CommanderPi $ grep -nr "app_version" *
src/resources.py:62:app_version = "Version 0.7.2\n" # this version number should come from the config
src/resources.py:63:print("Here is app-1 "+app_version[:-1])
src/resources.py:64:def get_app_version():
src/resources.py:65:	return app_version
src/gui.py:535:		version_label = tk.Label( content_frame, text=rs.get_app_version(), font=("TkDefaultFont", 11, "bold"), justify=CENTER)
src/update.py:29:			if "app_version =" in line:
src/update.py:31:		if rs.app_version[:-1] in xversion:
src/update.py:55:				if "app_version =" in line:
src/update.py:57:			if rs.app_version[:-1] in xversion:
src/update.py:61:			print(rs.app_version)

won't start

commanderpi won't start from menu or desktop shortcut, so I reinstalled, and then the desktop shortcut was owned by 'root' so I opened the file manager as root and changed it, but it still won't run.
I tried running start.sh from the terminal and I got some errors:

Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 9, in
import gui as g
File "/home/pi/CommanderPi/src/gui.py", line 4, in
import resources as rs
File "/home/pi/CommanderPi/src/resources.py", line 188, in
f = open(config_path)
FileNotFoundError: [Errno 2] No such file or directory: ''

Doesn't start

Hello! I installed it I can see the icons, no error code but when I try to start it, it does't start. Just loading, but nothing happens.

Cannot run ./install.sh

I sucessfully installed commanderPi the first time but I was unable to run so I had to reinstall, I accidently deleted commanderpi.desktop from /usr/share/applications. After that I moved CommanderPi directory from /Downloads to /home/pi, now running sudo ./install.sh returns this error message:

Save desktop shortcut to /root/Desktop/commanderpi.desktop
Traceback (most recent call last):
  File "c_desktop.py", line 20, in <module>
    f = open(d_dir, "w+")
FileNotFoundError: [Errno 2] No such file or directory: '/root/Desktop/commanderpi.desktop'
chmod: cannot access '/root/Desktop/commanderpi.desktop': No such file or directory

How do I fix it?

Paths should be changed to CommanderPi

I cloned this repo with this command:

git clone https://github.com/Jack477/CommanderPi

It cloned to /home/pi/CommanderPi.
For some reason, all the scripts and the .desktop file expects the cloned directory to be Commander_Pi. (<-- with an underscore, "_")
Therefore all the scripts are broken.

CommanderPi won't boot from desktop or from Terminal on RPI4 with Raspbian

When I attempt to boot from Desktop, nothing happens.
if I run sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}
I see:
Exist and read
Here is app-1 Version 0.7.2
Country code is:
country US: DFS-FCC
94.6
Total: 14.29
Used: 12.9
Free: 0.73
1.5GHz
/boot/config.txt
Here is ad: pieeprom-2021-03-18.bin
Sep 3 2020
/home/pi/CommanderPi/src
File is exist!
No protocol specified
No protocol specified
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 22, in
main()
File "/home/pi/CommanderPi/src/main.py", line 18, in main
start = g.Window()
File "/home/pi/CommanderPi/src/gui.py", line 567, in init
master = tk.Tk()
File "/usr/lib/python3.7/tkinter/init.py", line 2023, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":10.0"

Thanks for any help!

CommanderPi installs but doesn't run on RaspberryPi OS using a RaspberryPi 4 64bit

Hello,

I just found this program and I installed it but nothing seems to work when trying to get it to run. I have a Raspberry Pi 4 8GB 64bit system and I currently run Raspberry Pi OS. I get the following error :

pi@pi-desktop:~/Desktop $ /home/pi/CommanderPi/src/start.sh
No protocol specified
No protocol specified
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 22, in
main()
File "/home/pi/CommanderPi/src/main.py", line 18, in main
start = g.Window()
File "/home/pi/CommanderPi/src/gui.py", line 567, in init
master = tk.Tk()
File "/usr/lib/python3.7/tkinter/init.py", line 2023, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":0"

Any ideas or help in getting this running please.

I also get this error when installing it as well:

Traceback (most recent call last):
File "c_desktop.py", line 20, in
f = open(d_dir, "w+")
FileNotFoundError: [Errno 2] No such file or directory: '/root/Desktop/commanderpi.desktop'
chmod: cannot access '/root/Desktop/commanderpi.desktop': No such file or directory

Icon request

I am developing a RPi app store and I plan to include this software.
When users click "install", the app store will then clone your repository and run the recommended install commands.

Only thing missing is the icon: I need a 24x24 icon and a 64x64 icon.
Now I could crop your icon into a square and scale it, but that doesn't look that crisp after scaling. So if you could provide me with some native-size icons, that would be great.

CommanderPi can not run for Raspberry Ubuntu20.1

Hello sir:

I download the install zip,and installed app.
but i run this app ,this app is no reaction.
use the terminal run the start.sh not run and show some error information (pic 1)
pic1
I read some issues
used sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME} ,(pic2)
pic2
and i surety installed psutil (pic3)
pic3
How to fix ,Please help me!
Thank you!

PS:I am from china, english is not good.

Commander Pi not running or Opening at all?

Followed full tutorial on ETA primes youtube channel. Have the Commander Pi app on my desktop now. When I click on it and say execute in terminal the hourglass appears on my cursor and then nothing happens at all?

Tried whole process again and same issue. I am running a Pi 4 booting from and SSD

The program does not start

I encountered a problem after updating the program, it stopped starting with the following error:
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 9, in
import gui as g
File "/home/pi/CommanderPi/src/gui.py", line 8, in
import theme as th
File "/usr/local/lib/python3.7/dist-packages/theme.py", line 3
print ('This is suroegin's package - theme')
^
SyntaxError: invalid syntax

change start.sh to use SH instead of BASH

(I have other PR's and since this is a one liner ..)
The shell startup line in ~/CommanderPi/src/start.sh should be change from:

#!/bin/bash
sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}> log.txt

to:

#!/bin/sh
sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}> log.txt

This way it will work on any setup, not just ones that have bash installed.

NOTE: the same should be done with ~/CommanderPi/install.shtoo, as there is nothing BASH specific in that file either. SH is always preferable of BASH for scripts, unless there an explicit need for BASH specific command usage (which there are always known workarounds for anyway)

App opens and then crashes immediately

I am new to Raspberry Pi and have a Pi4. I downloaded the app and followed the directions. The link is on my desktop, but when I open the file it will pop up the Commander Pi and then it goes away. Suggestions? Thank you!

ENHANCEMENT REQUEST: A few suggestions

First off, thank you for this! Great little app!!!

I just installed on an RPI3B+ with Raspberry Pi OS and it works without issues.
A few things I noticed though that are worth fixing:

  1. I would suggest renaming test.desktop to commander-pi.desktop. This will just make it simpler and prevent any potential future conflict because of using the name test.
  2. The desktop file is has a link for the icon as logo.png. The file does not exist. I manually updated it to icon.png and it works without any issues. A quick update to the c_desktop.py file to point to the right file will solve that.
  3. After the creation of the file desktop file in /usr/share/applications/ there is no need to leave the file on the desktop. It can be deleted in the script to keep things clean.

With that, I would also suggest a few enhancements, if I may:

  • You can easily identify which RPi board and revision this is being installed on with the following command: cat /proc/device-tree/model.
    • In my specific example it is: Raspberry Pi 3 Model B Plus Rev 1.3
    • By doing that you can present the relevant recommended overclock options compatible with each board type. There are plenty of online references to recommended overclocking per board type.
    • You could also present the recommended and extreme options in text based on board type.
  • Most tech savvy people will know how to edit the config.txt file to make this happen. I would assume this app would greatly assist the less techie people. With that, I would suggest having a few simple one click button for all 3 parameters. Like; Basic, Recommended, Extreme.
    • Clicking on one of these will set all parameters in a single click with a warning prompt.
    • I would still leave the manual entry options for the more advanced users. It is awesome to have it!
  • Having the app present the currently set overclocking values would be very beneficial.
  • Potential future enhancements: have a few additional much used capabilities, like;
    • Change boot configuration (boot from SD, USB, PXE).
    • Update OS with a single click instead of CLI.
    • Updating Swap file size as today's SD card sizes are usually enough to include a larger size.
    • If on Pi4 with 4MB/8NB ram, create a RAM drive to increase performance as well.

Again, really great small app!!!
Just throwing it out there for a few potential enhancements to help others :)

Commander Pi won't start when using xrdp to remote in to Pi

pi@raspberrypi:~/CommanderPi/src $ sudo python3 /home/pi/CommanderPi/src/main.py > a.txt
No protocol specified
No protocol specified
Traceback (most recent call last):
  File "/home/pi/CommanderPi/src/main.py", line 22, in <module>
    main()
  File "/home/pi/CommanderPi/src/main.py", line 18, in main
    start = g.Window()
  File "/home/pi/CommanderPi/src/gui.py", line 193, in __init__
    master = tk.Tk()
  File "/usr/lib/python3.7/tkinter/__init__.py", line 2023, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":10.0"

When remoting in and trying to run the program I get the above error. I solved it using THIS post.

Run sudo cp ~pi/.Xauthority ~root/ in the terminal. Then CommanderPi starts as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.