Setup Linux workspace [ Archived ]

Xubuntu 20.04 for lightweight purpose

  • Update after installed
sudo apt update && sudo apt -y upgrade

sudo apt -y install software-properties-common

sudo apt -y install curl git unzip perl libnet-ssleay-perl openssl openssh-server libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
sudo apt install -y mysql-client mysql-sandbox mysql-server mysql-testsuite
sudo /etc/init.d/mysql restart
sudo mysql -u root

Use legacy Authentication

alter user 'username'@'localhost' identified with mysql_native_password by 'password';

This install still not allow remote connections

wget -qO - | sudo apt-key add -

echo "deb [ arch=amd64,arm64 ] focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

sudo apt-get update

sudo apt-get install -y mongodb-org


sudo add-apt-repository ppa:ondrej/php && sudo apt update
sudo apt -y install php-imagick php-gd php-cli php-mbstringphp-pecl-http php-uploadprogress imagemagick \
php8.0-apcu php8.0-cli php8.0-curl php8.0-dev php8.0-gd php8.0-http php8.0-igbinary php8.0-imagick php8.0-intl php8.0-mbstring php8.0-mcrypt php8.0-memcache php8.0-memcached php8.0-mongodb php8.0-mysql php8.0-oauth php8.0-opcache php8.0-pcov php8.0-raphf php8.0-soap php8.0-sqlite3php8.0-xml php8.0-xmlrpc php8.0-xsl php8.0-yaml php8.0-zip 
sudo apt -y install php-xdebug php8.0-xdebug

sudo apt -y install php-memcache php-memcached memcached
sudo pecl install raphf
sudo pecl install propro
sudo pear install http
sudo pear install http2
sudo pecl install mongodb


# Using Ubuntu
curl -fsSL | sudo -E bash -
sudo apt-get install -y nodejs
curl -sS | sudo apt-key add -

echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt update && sudo apt install yarn


sudo apt -y install redis-server memcached


curl -sS -o composer-setup.php

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer


sudo apt -y install supervisor

Laravel development


sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \

curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli


Visual Studio Code

sudo snap install --classic code # or code-insiders




sudo apt -y install qbittorrent

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Up ↑

%d bloggers like this: