piątek, 15 maja 2020

Virtualbox / Kubuntu / docker

Installation

Install docker and docker-compose:
$ sudo apt install docker docker-compose

Add your user to docker group:
$ sudo usermod -aG docker [username]

Start and stop docker

Manually start:
$ sudo systemctl start docker

Manually stop:
$ sudo systemctl stop docker

Configure start on boot:
$ sudo systemctl enable docker

Disable start on boot:
$ sudo systemctl disable docker

Proxy configuration

Create a systemd drop-in directory for the docker service:
$ sudo mkdir -p /etc/systemd/system/docker.service.d

Create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:
[Service]
Environment="HTTP_PROXY=http://proxy.hostname:proxy_port/" Environment="HTTPS_PROXY=https://proxy.hostname:proxy_port/" Environment="NO_PROXY="localhost,127.0.0.1,::1"

środa, 13 maja 2020

Kubuntu / powerline


sudo apt install powerline powerline-doc powerline-gitstatus

For VIM add the following lines to your ~/.vimrc file:
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set laststatus=2
set showtabline=2
set noshowmode
set t_Co=256

Virtualbox / Kubuntu / proxy

Virtualbox:

Network / Karta 1: Intel PRO/1000 MT Desktop (NAT)

Kubuntu:

At the end of the file /etc/environment add lines:

http_proxy=http://IP:port/
https_proxy=https://IP:port/
ftp_proxy=http://IP:port/
tcp_proxy=http://IP:port/

Content of file http-proxy.conf:

[Service]
Environment="http_proxy=http://IP:port/"

Content of file https-proxy.conf:

[Service]
Environment="https_proxy=http://IP:port/"

From file /lib/systemd/system/snapd.service you have to comment line starts with: EnvironmentFile

NOTE
Look at the places marked as bold. In the second file with the proxy configuration for HTTPS we provide the HTTP protocol.

After all the only thing to do is to restart out system.