Różności …

Różności …

14 listopada 2021

github token

Zaszufladkowany do: Bez kategorii — Jacek @ 17:21
git remote set-url origin https://<TOKEN>@github.com/<user_name>/<repo_name>.git

5 listopada 2021

KERAS ubuntu 20 installation

Zaszufladkowany do: ML — Jacek @ 20:55

Keras installation



29 października 2021

How to Install Jupyter Notebook on Ubuntu 20.04 / 18.04

Zaszufladkowany do: Bez kategorii — Jacek @ 21:22

How to Install Jupyter Notebook on Ubuntu 20.04 / 18.04

26 września 2021

Docker – Ubuntu install

Zaszufladkowany do: Bez kategorii — Jacek @ 14:54


13 września 2021

ubunto 20.04 docker install

Zaszufladkowany do: Bez kategorii — Jacek @ 21:34


MongoDB install

Zaszufladkowany do: Bez kategorii — Jacek @ 12:24



sudo apt update
sudo apt upgrade
sudo apt install mongodb
sudo systemctl status mongodb
sudo systemctl start mongodb
sudo systemctl stop mongodb
sudo systemctl restart mongodb
sudo systemctl enable mongodb
sudo systemctl stop mongodb

This command will stop the service.
sudo apt purge mongodb
sudo apt autoremove

10 września 2021

Linux One Drive

Zaszufladkowany do: Bez kategorii — Jacek @ 22:22

żródło: https://gist.github.com/starlinq/0f98c6d9339497bb8ac42d67f66f60eb

There are many instructions to syncronize your files with OneDrive cloud-based storage in Linux. However they typically address multiple Linux distributions that often causes a confusion or an use of some commands which have not been actually tested before publishing. This instruction is for Ubuntu 18.04 and 20.04 (64 bit) only.

In order to install onedrive, first you need to install some dependencies and set up git.

Let us open the Terminal application and enter the following:

sudo apt install build-essential
sudo apt install libcurl4-openssl-dev
sudo apt install libsqlite3-dev
sudo apt install pkg-config
sudo apt install git

Lets us move to Downloads directory

cd ~/Downloads

DMD compiler installation

Ubuntu 18.04

Some instructions recommend using snap to install some dependencies, for example here:

If you are using Ubuntu 18.04 or newer, use snap to install dmd

I tried that and found that after such installation some dependencies are not met!

So I recommend you to install those dependencies using classical method like this:

sudo wget https://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
sudo apt-get update --allow-insecure-repositories
sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
sudo apt-get update && sudo apt-get install dmd-compiler dub

Ubuntu 20.04

We download the 64-bit package from

wget http://downloads.dlang.org/releases/2.x/2.093.1/dmd_2.093.1-0_amd64.deb

and install it at system level

sudo dpkg -i dmd_2.093.1-0_amd64.deb

Then we clone the required repository files with git:

git clone https://github.com/abraunegg/onedrive.git

Then compile and install it:

cd onedrive
sudo make install

The next step, you need to authorize onedrive with Microsoft so it can access your account:


Copy the web address appeared in the terminal window right after Authorize this app visiting:, then open any web browser and paste it into the web browser address line.

Log in into your account and grant the application permission to acess your account.

Wait for response …

Then copy and paste the web address of response into corresponding part of the terminal window with prompt Enter the response uri:.

Now the installation has been done.

Before syncronization, let us create a onedrive directory for current user

mkdir -p ~/OneDrive

and copy a configuration file into default directory

cp config ~/.config/onedrive/config

Now we can leave the installation directory


It is a time to check our current configuration

onedrive --display-config

You will see something like this

onedrive version                       = v2.4.0-25-g7f267a5
Config path                            = /home/yourcurrentusername/.config/onedrive
Config file found in config path       = true
Config option 'check_nosync'           = false
Config option 'sync_dir'               = /home/yourcurrentusername/OneDrive
Config option 'skip_dir'               =
Config option 'skip_file'              = ~*|.~*|*.tmp
Config option 'skip_dotfiles'          = false
Config option 'skip_symlinks'          = false
Config option 'monitor_interval'       = 45
Config option 'min_notify_changes'     = 5
Config option 'log_dir'                = /var/log/onedrive/
Config option 'classify_as_big_delete' = 1000
Config option 'sync_root_files'        = false
Selective sync configured              = false

For one time sync, run

onedrive --synchronize

or if you want to monitor your OneDrive storage for changes

onedrive --monitor

Do not forget that onedrive doesn’t start when the user logs in. To run automatically when you log in, you can add onedrive --monitor command to your startup application.

1 lipca 2021

systemctl apachectl apache disable service

Zaszufladkowany do: Linux — Jacek @ 15:43

sudo systemctl status apache2
sudo systemctl is-enabled apache2
sudo systemctl disable apache2
sudo systemctl stop apache2
sudo systemctl mask apache2

sudo apt remove apache2

4 czerwca 2021

Zaszufladkowany do: Bez kategorii — Jacek @ 10:29
Switch Display Manager in Ubuntu 20.04
cat /etc/X11/default-display-manager

for GDM3 –

for LightDM –


and SDDM –

systemctl status display-manager
sudo dpkg-reconfigure <Default_Display_Manager>
sudo dpkg-reconfigure gdm3
sudo dpkg-reconfigure lightdm
sudo dpkg-reconfigure sddm
source: https://techpiezo.com/linux/switch-display-manager-in-ubuntu-20-04/

ssh -L 5900:localhost:5900 username@
vncviewer localhost

25 marca 2021

Angular tuple type, arrays

Zaszufladkowany do: Angular — Jacek @ 09:06

I’m really confused about this now. I’m pretty sure that

let x:SomeType[] = []

is equivalent to

let x: Array<SomeType> = []

but is

let x:[SomeType] = []

also equivalent and correct?

asked Aug 28 ’20 at 0:13
Michael Dausmann

3,41822 gold badges2626 silver badges3838 bronze badges

2 Answers


No. [SomeType] represents a tuple type, i.e., an array with exactly one element of SomeType

[string, number], for example, would match an array like ["test", 0]



8 stycznia 2021

MongoDB, Node.js – install

Zaszufladkowany do: JS,Linux,Programowanie — Jacek @ 11:21

sudo systemctl start mongod

sudo systemctl status mongod
sudo systemctl enable mongod
sudo systemctl stop mongod
sudo systemctl restart mongod
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash source ~/.bashrc
nvm list-remote
nvm install v13.6.0 nvm use v13.6.0 nvm current
node -v

7 stycznia 2021

PHP Ubuntu 20

Zaszufladkowany do: Programowanie — Jacek @ 15:54

Jakby ktoś musiał jeszcze coś w tym PHP zrobić … (choć po co???? przecież jest JS)

Installing PHP 7.4 with Apache

If you’re using Apache as your web server, run the following commands to install PHP and Apache PHP module:

sudo apt updatesudo apt install php libapache2-mod-php

Once the packages are installed, restart Apache for the PHP module to get loaded:

sudo systemctl restart apache2

Installing PHP 7.4 with Apache

If you’re using Apache as your web server, run the following commands to install PHP and Apache PHP module:
sudo apt updatesudo apt install php libapache2-mod-php

Once the packages are installed, restart Apache for the PHP module to get loaded:

sudo systemctl restart apache2


29 grudnia 2020

Ubuntu post install

Zaszufladkowany do: Angular,JavaScript,Linux,Programowanie,React — Jacek @ 08:23
sudo apt-get update
sudo apt-get install build-essential

17 grudnia 2020

Ubuntu application icon favourities ulubione

Zaszufladkowany do: Linux — Jacek @ 17:25


[Desktop Entry]

1 grudnia 2020

Ubuntu – disable history of files

Zaszufladkowany do: Linux — Jacek @ 10:17
$ rm ~/.local/share/recently-used.xbel # clear current file history
$ touch ~/.local/share/recently-used.xbel # create a 0-byte history file
$ sudo chattr +i ~/.local/share/recently-used.xbel # make it readonly

25 listopada 2020

Ubunutu 20 workspace shortcuts

Zaszufladkowany do: Linux — Jacek @ 13:46

install gnome-tweaks

jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 ‘["<Alt>5"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 ‘["<Alt>6"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 ‘["<Alt>7"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 ‘["<Alt>8"]‘
jacek@comp:~$ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 ‘["<Alt>9"]‘

14 listopada 2020

ubuntu no working init found

Zaszufladkowany do: Linux — Jacek @ 11:36
update-initramfs -u -k 5.4.0-53-generic

26 lipca 2020

ubuntu display problems

Zaszufladkowany do: Linux — Jacek @ 12:24

sudo apt update

sudo apt upgrade

ubuntu-drivers devices

sudo ubuntu-drivers autoinstall


sudo apt install nvidia-420

28 lipca 2019

Node.JS: Getting error : [nodemon] Internal watch failed: watch ENOSPC

Zaszufladkowany do: Bez kategorii — Jacek @ 14:59
sudo sysctl fs.inotify.max_user_watches=582222 && sudo sysctl -p

16 lipca 2019

gnome system monitor

Zaszufladkowany do: Linux — Jacek @ 16:33



Starsze wpisy »

Strona startowa: www.jaceksen.pl