The $PATH environment variable is a list of directories that tells the shell which directories to search for executable files.
To check what directories are in your $PATH list use command:
echo $PATH
To add new directory ~/.local/bin/ to $PATH use command:
export PATH="$HOME/.local/bin:$PATH"
But this change is only temporary and valid only in the current shell session.
To make the change permanent, you need to define the $PATH variable in the shell configuration files. In most Linux distributions when you start a new session, environment variables are read from the following files:
Global shell specific configuration files such as /etc/environment and /etc/profile. Use this file if you want the new directory to be added to all system users $PATH.
Per-user shell specific configuration files. For example, if you are using Bash, you can set the $PATH variable in the ~/.bashrc file. If you are using Zsh the file name is ~/.zshrc.
In this example, we’ll set the variable in the ~/.bashrc file. Open the file with your text editor and add the following line at the end of it:
yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. The main focus of this project is adding new features and patches while also keeping up to date with the original project.
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg chmod +r /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg # optional, if you have a non-default umask
Update packages list and upgrade your system:
apt update && apt full-upgrade
Install Proxmox VE packages:
apt install proxmox-ve postfix open-iscsi
Reboot your system
reboot
After reboot open your web borwser and go to https://192.168.1.2:8006, where 192.168.1.2 – is a IP address of your Proxmox computer, and 8006 – default Proxmox port.
That’s all, Proxmox VE successfully installed on your PC. Now you can create new Virtual machines…
Don’t forget to update your Mikrotik firmware to 6.41.1 or higher! Current stable and secure firmware is 6.47.10. Simple Mikrotik Firewall configuration:
In Mikrotik terminal go to Firewall Filter:
/ip firewall filter
For increase the speed of router fist rule should be:
In IP -> Firewall -> Address List create new address list width name AccessList and add there all IP addresses you want to use for remote connection to your router.
In IP -> Services menu enable only SSH and Winbox services, for more security you can change default Winbox and SSH ports:
It is all you need to secure your home or office router and network.
Don’t forget to update your Mikrotik firmware to 6.41.1 or higher! Current stable and secure firmware is 6.48.6. For more stability use firmware from “long term” channel.
Python is completely object oriented, and not “statically typed”. You do not need to declare variables before using them, or declare their type. Every variable in Python is an object.
Numbers
Python supports two types of numbers – integers(whole numbers) and floating point numbers(decimals).
Python is a very simple language, and has a very straightforward syntax. The simplest directive in Python is the “print” directive. In our first lesson we create script hello.py that write phrase “Hello World“.
print("Hello World\n")
Symbol \n used to set cursor on new line. That’s all it is let’s start our script:
python3 hello.py
And we will see phrase “Hello World” on our display.