Python Install: Python IDLE (IDLE = Integrated DeveLopment Environment for Python): idle3 Command line package installer for Python: python3-pip Command line tool for showing installed Python packages in the form of a dependency tree: python3-pipdeptree Examples, demos, & tools, for Python: python3-examples Python documentation: python3-doc Python IDLE (Menu > Programming > IDLE): Configure IDLE from Options menu > select Configure IDLE: Fonts tab: adjust fonts Highlights tab: choose theme/colors Shell/Ed tab: Shell Preferences: set Auto-Squeeze Min. Lines to 5000 Editor Preferences: Check box next to Show line numbers in new windows Ok button to apply changes & close Settings. Create file & execute it in Python shell: File menu > select New File File menu > select Save Run menu > select Run Module to run code in Python shell (Module = file containing Python code) Examples: Help menu > select Turtle Demo > Examples menu > select an example > click START button Shortcut Keys: New File = Ctrl+N Save File = Ctrl+S Run Module = Search+5 Go To Line = Ctrl+G Find = Ctrl+F Find & Replace = Ctrl+R Python Help & Documentation: Interactive help from Python shell (quit to exit): help() Python IDLE Documentation: Help menu > select IDLE Doc Official Python Documentation: From a browser enter in file:///usr/share/devhelp/books Select version of Python you are using Add index.html to end of file path Bookmark page for convienience Tutorials located in Tutorial > scroll down to contents 1st code example in Using the Python Interpreter next/previous buttons located at top right and bottom right of each page Python website: python.org Tensoflow (machine learning with Python): tensorflow.org Crash course on machine learning with Python & Tensorflow: developers.google.com/machine-learning/crash-course Terminal Help: python3 --help man python3 idle --help man idle AlphaGo KZitem video (fun video about AI): kzitem.info/news/bejne/uI6rsWqdnp2GZI4 Python Workflow Tips: Pin Python IDLE to taskbar for convienience: Right click Application Launch Bar > select "Application Launch Bar" Settings Select Python IDLE from list of Installed Applications Click Add button Switch between desktops by doing Ctrl + Alt + < OR > Helpful when referencing tutorials, documentation, notes, etc. Questions are welcome and encouraged. Due to the design of KZitem's comment section, posting questions under the pinned comment or under another user's comment makes it difficult for me to find and answer questions. Please do not post your questions under the pinned comment or under other user's questions. Please create a new comment.
@hosniahmed-qc7bh
2 ай бұрын
Thank you for the distinguished explanation The movement of the left eye is very beautiful
@user-ye4mz7ni5g
5 ай бұрын
Thank you Ruth...This is awesome. I ran the Kali Linux install you did on a chromebook. I was wondering if I am still able to install the Python procedure you just did on my Kali Linux Chromebook?
@ruthake
5 ай бұрын
The procedure should be the same.
@user-ye4mz7ni5g
5 ай бұрын
@@ruthake Awesome! Thank you Ruth!
@quangtuan202
12 күн бұрын
Is running Linux in ChromeOS is like runing Linux in a Virtual Machine? Does it make battery drain faster?
@ruthake
9 сағат бұрын
That is correct, Linux is running inside of a virtual machine. I'm not aware of any significant battery draining.
@brauliovazquez1951
4 ай бұрын
Will this allow me to run python scripts ?
@ruthake
4 ай бұрын
Yes, you should be able to run Python scripts. If you are attempting to run the scripts from the command line, you will need to make the script executable, include a shebang "#!", and if your script is not in the $PATH you will either need the full path or a "./". "which python3" returns the file path to Python which is needed for the shebang, which returns /usr/bin/python3 . For example from a terminal: cd ~ echo $PATH pwd which python3 nano hello #!/usr/bin/python3 print("Hello World!") Ctrl+O, Enter, and Ctrl+X to save the file and exit nano. chmod +x hello ./hello -------------------------------------- You may also be interested in An HTML ebook for BASH scripting available on any Debian system at no cost!: kzitem.info/rock/QRRvDc1JV7v-NmQKS9uZIwcommunity?lb=UgkxU8WevvaD6FYpDzgFj7ymwogdTqFUmkcr
@ectonomics
5 ай бұрын
i want to learn to install gnome-desktop and replace xfce4 on kali will zephyr allow me to run gnome
@ruthake
5 ай бұрын
GNOME uses it's own compositor which doesn't play well with ChromeOS, you may prefer this solution from a Ubuntu user. Configuring XFCE to look like GNOME: askubuntu.com/questions/1370627/can-i-configure-xfce-or-lxde-to-look-like-this-gnome-panel We were able to run GNOME with Debian 11, however there is a large top bar that we have not been able to remove. Some Desktops can peacefully coexist and even run at the same time, use a different DISPLAY id if you intend to run them at the same time. is your user id. The following desktops were tested with Debian 11. KDE Desktop: Install: task-kde-desktop Create the file: /usr/bin/gok Xephyr -br -fullscreen -resizeable :40 & sleep 5 DISPLAY=:40 startplasma-x11 & XFCE Desktop: Install: task-xfce-desktop Create the file: /usr/bin/gox Xephyr -br -fullscreen -resizeable :40 & sleep 5 pkexec --user env DISPLAY=:40 startxfce4 &> /dev/null & GNOME Desktop: Install: task-gnome-desktop, mutter In the script below, the ChromeOS display size is 1518x853. 33 has been subtracted from the height to compensate for the top bar. You may have to experiment with the height. The display size can be found in Chromebook Settings > Device > Displays > Display size. Create the file: /usr/bin/gog export MUTTER_DEBUG_DUMMY_MODE_SPECS=1518x820 sleep 5 gnome-shell --nested --wayland &> /dev/null & IceWM Desktop: Install: icewm Create the file: /usr/bin/goice Xephyr -br -fullscreen -resizeable :40 & sleep 5 DISPLAY=:40 icewm-session & Menu → Settings → Themes → NanoBlue TWM Desktop: Install: twm, suckless-tools, nitrogen Create the file: /usr/bin/got Xephyr -br -fullscreen -resizeable :40 & sleep 5 DISPLAY=:40 twm &> /dev/null & DISPLAY=:40 nitrogen --restore &> /dev/null & Create the run command file TWMRC for TWM configuration: ~/.twmrc ShowIconManager IconifyByUnmapping Button3 = : root : ! “dmenu_run -fn ‘Mono-20’ &> /dev/null &” Mouse is invisible until first app opens. Right click the desktop to run Dmenu. Run Nitrogen first to setup the wallpaper. To shut down TWM, do killall Xephyr in Chromebook Terminal and then do a regular Linux shutdown
Пікірлер: 13