After installing Sublime Text 4 , write in the terminal whereis subl My result /usr/bin/subl Next export EDITOR=/usr/bin/subl update-alternatives --install /usr/bin/editor editor /usr/bin/subl 5 Next select-editor Select the desired number and press enter. Start Sublime Text4 from the launcher as root Enter as a normal user in the terminal sudo subl Enter your password If you see an error Username is not in the sudoers...
Day: 12.01.2025
Install the GPG key: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null Select stable version echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list And install apt-get update apt-get install sublime-text