Користувальницькькі налаштування

Налаштування сайту


software:os:linux:kde:setup

Це стара версія документу!


Install packages

sudo apt install ncurses-term tree wget curl bash-completion git \
htop whois bzip2 mlocate pv unrar unzip anacron mc vim-nox apt-file \
net-tools chromium-browser ubuntu-restricted-extras pavucontrol \
vlc vlc-plugin-access-extra libbluray-bdj libdvd-pkg safeeyes xprintidle

Create additional directories

mkdir -v ~/{.ssh,temp,scripts,backup,.vim,bin}
chmod 700 ~/{.ssh,temp,scripts,backup,.vim,bin}

Bash configuration

Sudo configuration

Create new file /etc/sudoers.d/local:

/etc/sudoers.d/local
User_Alias              SUPERADMINS = peter
 
Defaults:SUPERADMINS    !env_reset, !secure_path, !always_set_home, ignore_dot, !targetpw
 
SUPERADMINS             ALL=(ALL)       NOPASSWD: ALL

Firefox extensions

Konsole configuration

Використати стандартну кольорову гамму:

Settings -> Edit Current Profile.. -> Appearance tab ->
Color Scheme & Background: Linux Colors
Text Size: 12
Select Font: DejaVu Sans Mono, Bold, 12, Cyrillic

Можна обрати й інший шрифт.

Увімкнути підтримку 256 кольорів в терміналі:

Settings -> Edit Current Profile.. -> General tab
Command: /usr/bin/tcsh
Environment: TERM=konsole-256color

Generate SSH keys

Do not forget to add passphrase!

ssh-keygen -t rsa -b 4096 -C "peter@compname"
ssh-keygen -t ed25519 -C "peter@compname"

Store SSH keys passphrases in KWallet

Create autostart script ~/.config/autostart-scripts/ssh-add.sh:

ssh-add.sh
#!/bin/bash
ssh-add $HOME/.ssh/id_rsa $HOME/.ssh/id_ed25519 </dev/null
chmod +x ~/.config/autostart-scripts/ssh-add.sh

The only thing left is to save the passphrase in the KWallet. This can be done either by executing the script from the terminal or logging out and then back in. A prompt will appear. Enter the passphrase, opt to remember it, and click OK.

Now the passphrase will be read from KWallet at each login and added to the SSH Agent, no passphrase re-entry required.

Install MEGA client

Just go to https://mega.nz/sync!linux and follow instructions

Flatpak

Configure Git

# configure the user which will be used by git
# Of course you should use your name
git config --global user.name "Example Surname"
 
# Same for the email address
git config --global user.email "your.email@example.com" 
 
# set default so that all changes are always pushed to the repository
git config --global push.default nothing
 
# colors
git config --global color.ui true
git config --global color.status auto
git config --global color.branch auto
 
# set editor
git config --global core.editor vim
 
# add aliases
git config --global alias.ci commit
git config --global alias.co checkout

Install AWS CLI

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i ~/.local/lib/awscli -b ~/.local/bin

See also https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

Additional Snaps

sudo snap install pycharm-professional --classic

Install Pinta

software/os/linux/kde/setup.1589365427.txt.gz · Востаннє змінено: 2020/05/13 13:23 повз charon