@JS's Notes

Site with notes from my work.

Jenkins on Ubuntu 20.04

2020-09-06 System Programing @JS

My test platform: Ubuntu Server 20.04.1

Requirements: user with root privileges or non-root user with sudo privileges.

Jenkins installation
$ sudo apt update; sudo apt upgrade -y              # Reboot if required
$ sudo apt install openjdk-11-jre-headless -y
$ java --version
$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
$ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
$ sudo apt update; sudo apt install jenkins -y
$ sudo systemctl is-enabled jenkins.service
$ sudo systemctl status jenkins.service
Continue reading

Gitea with sqlite3 on Ubuntu 20.04

2020-07-16 System Programing @JS

My test platform: Ubuntu Server 20.04

Requirements: user with root privileges or non-root user with sudo privileges.

Gitea installation
$ sudo apt update; sudo apt upgrade -y
$ sudo apt install git wget tree sqlite3 -y
$ sudo adduser --system --shell /bin/bash --gecos 'User for Gitea' --group --disabled-password --home /home/gitea gitea
$ mkdir download; cd download
$ wget -O gitea https://dl.gitea.io/gitea/1.12.1/gitea-1.12.1-linux-amd64
$ chmod +x gitea
$ sudo mkdir -p /var/lib/gitea/{custom,data,log}
$ sudo chown -R gitea: /var/lib/gitea/
$ sudo chmod -R 750 /var/lib/gitea/
$ sudo mkdir /etc/gitea
$ sudo chown root:gitea /etc/gitea
$ sudo chmod 770 /etc/gitea
$ sudo cp gitea /usr/local/bin/gitea
Continue reading

Installing node.js in Linux - Update 1

2020-07-14 System Programing @JS

Update for : Installing Node.js in Linux.

Requirements: user with root privileges or non-root user with sudo privileges.

Repository installation

CentOS and Fedora:

$ curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -          ## nodejs 14.x
$ curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -          ## nodejs 12.x
$ curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -          ## nodejs 10.x
Continue reading

Angular CLI on Ubuntu 18.10

2019-10-05 System Programing @JS

Requirements: user with root privileges or non-root user with sudo privileges.

$ sudo curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt install nodejs build-essential -y
$ node -v
$ npm -v
$ sudo npm install -g @angular/cli
$ ng --version
     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 8.1.2
Node: 12.7.0
OS: linux x64
Angular:
[...]

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.801.2
@angular-devkit/core         8.1.2
@angular-devkit/schematics   8.1.2
@schematics/angular          8.1.2
@schematics/update           0.801.2
rxjs                         6.4.0
Continue reading

Installing node.js in Linux

2019-10-05 System Programing @JS

Requirements: user with root privileges or non-root user with sudo privileges.

# Ubuntu/Debian
$ sudo curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
$ sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt install nodejs -y

# Centos/Fedora/RHEL
$ sudo curl -sL https://rpm.nodesource.com/setup_12.x | bash -
$ sudo curl -sL https://rpm.nodesource.com/setup_11.x | bash -
$ sudo curl -sL https://rpm.nodesource.com/setup_10.x | bash -
# Centos
$ sudo yum install nodejs -y
# Fedora/RHEL
$ sudo dnf -y install nodejs