- Download Thony from Thonny Website (https://thonny.org) manually or
Binary bundle for PC (Thonny+Python):
$ cd ~/Documents
$ bash <(wget -O - https://thonny.org/installer-for-linux)
-
Extract the thonny-3.2.1-x86_64.tar.gz
-
change directory into thonny folder
$ cd thonny
- run the install file
$ ./install
Copying files to /sysroot/home/khairul/apps/thonny …
/sysroot/home/khairul/apps/thonny already exists. I need to clear it. Is it OK? [Y/n]: Y
Done!
Creating start menu item (/usr/share/applications/Thonny.desktop) …
[Errno 30] Read-only file system: ‘/usr/share/applications/Thonny.desktop’
- go to folder
cd ~/.local/share/applications/
- Create file Thonny.desktop with content below:
[Desktop Entry]
Type=Application
Name=Thonny
GenericName=Python IDE
Exec=/sysroot/home/khairul/apps/thonny/bin/thonny %F
Comment=Python IDE for beginners
Icon=/sysroot/home/khairul/apps/thonny/res/thonny.png
StartupWMClass=Thonny
Terminal=false
Categories=Development;IDE
Keywords=programming;education
MimeType=text/x-python;
Actions=Edit;[Desktop Action Edit]
Exec=/sysroot/home/khairul/apps/thonny/bin/thonny %F
Name=Edit with Thonny
*Please change the home directory into yours
- Copy the thonny.png
$ cp ~/Documents/thonny/lib/python3.7/site-packages/thonny/res/thonny.png /sysroot/home/khairul/apps/thonny/res/thonny.png
*Please change the home directory into yours
- Validate the desktop file
$ desktop-file-validate ~/.local/share/applications/Thonny.desktop
Remain in ~/.local/share/applications/ directory
- Add the Thony to desktop
$ eos-add-to-desktop Thonny
You may upgrade to the latest Thony via Open “Tools => Manage plug-ins” and look for “thonny” in the list then click “Upgrade”
D0n3 !!