Skip to main content

Posts

CÀI ĐẶT OPEN PROJECT

  Cài trên Ubuntu 22.04 https://www.openproject.org/docs/installation-and-operations/installation/packaged/ Ubuntu 22.04 Update the  apt  package index and install packages to allow  apt  to use a repository over HTTPS: sudo apt-get update sudo apt-get install apt-transport-https ca-certificates wget Import the PGP key used to sign our packages: sudo wget -O /etc/apt/trusted.gpg.d/openproject.asc https://dl.packager.io/srv/opf/openproject/key Add the OpenProject package source: sudo wget -O /etc/apt/sources.list.d/openproject.list \ https://dl.packager.io/srv/opf/openproject/stable/16/installer/ubuntu/22.04.repo Download the OpenProject package: sudo apt-get update sudo apt-get install openproject Cài xong qua tiếp bước Configure: To start the configuration wizard, please run the following command with  sudo , or as root: sudo openproject reconfigure #interactive - manual choices are stored in /etc/openproject/installer.dat sudo openproject configure ...
Recent posts

RESET PASSWORD PORTAL

 https://github.com/ltb-project/self-service-password

CÀI ĐẶT NGINX PROXY MANAGER TRÊN UBUNTU 22

  CÀI ĐẶT NGINX PROXY MANAGER TRÊN UBUNTU 22 Link: https://azdigi.com/blog/en/linux-server-en/web-server/how-to-install-nginx-proxy-manager-with-docker-compose-on-ubuntu-22-04/ First, you need to create a directory containing the project and create a  docker-compose.yml  file for Nginx Proxy Manager with the following commands in turn:     AZDIGI Tutorial mkdir /home/nginxproxymanager cd /home/nginxproxymanager nano docker-compose.yml Enter the content below and save it. version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' environment: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "npm" DB_MYSQL_PASSWORD: "npm" DB_MYSQL_NAME: "npm" volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt db: image: 'jc21/mariadb-aria:latest...

CÀI ĐẶT DOCKER TRÊN UBUNTU 22

  CÀI ĐẶT DOCKER TRÊN UBUNTU 22 Gói cài đặt Docker hiện có sẵn trên Repo chính thức của Ubuntu, tuy nhiên đây có thể không phải là phiên bản mới nhất. Để chắc chắn thiết bị của bạn có thể cài đặt phiên bản mới nhất, chúng ta sẽ thực hiện cài đặt từ Docker Repository. Để làm được điều này, chúng ta cần thêm mới package source, GPG Key của Docker để chắc chắn rằng có thể tải về gói cài đặt rồi sau đó mới cài đặt Docker. Các bước thực hiện như sau: Cập nhật package source của hệ thống: sudo apt update Cài đặt một số gói cần thiết nhằm giúp apt có thể sử dụng package qua HTTPS: sudo apt install apt-transport-https ca-certificates curl software-properties-common Thêm mới GPG Key của Docker: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - Thêm mới Docker Repository vào APT: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" Bước này sẽ cũng thêm mới các Repo vào package database của hệ thống. Kiể...

CÀI ĐẶT HORILLA

CHUẨN BỊ Cài bằng script: https://www.horilla.com/docs/installation-using-shell-script/ Ubuntu 22 Filezilla để upload file script:     Tạo thư mục usr     Up file script lên: Set quyền: chmod +x horilla_install_ubuntu.sh Chạy script: ./horilla_install_ubuntu.sh CHẠY VỚI BẤT KỲ IP Cài xong Horilla chỉ chạy với địa chỉ localhost: http://127.0.0.1:8000 Để chạy được với IP hoặc tên miền cần chỉnh sửa file setting.py, cụ thể là add thêm IP và tên miền vào mục ALLOWED_HOST và CSRF_TRUSTED_ORIGINS như minh họa bên dưới: Sau đó khởi động lại Horilla bằng lệnh python manage.py runserver 0.0.0.0:8000 CÀI ĐẶT LDAP cd /path/to/horilla source venv/bin/activate pip install django-auth-ldap LỖI GỬI MAIL Nguyên nhân do chưa copy static files vào cache Chạy lệnh: python3 manage.py collectstatic LỖI TẠO COMPANY BỊ ĐƠ: Kiểm tra log trong Django (https://ipaddress:8000/admin) thì thấy thiếu quyền ghi dữ liệu: Chạy lệnh kiểm tra user nào đang dùng: ps aux | grep gunicorn Sẽ thấy us...

CÀI REMOTE DESKTOP TRÊN UBUNTU

  STEP 1 - CÀI MÔI TRƯỜNG DESKTOP Nếu đã có cài môi trường desktop ubuntu rồi bỏ qua bước này $ sudo apt update $ sudo apt install xfce4 xfce4-goodies -y STEP 2 - Cài module xrdp $ sudo apt install xrdp -y Kiểm tra xrdp đã chạy chưa $ sudo systemctl status xrdp

GIA HẠN SSL CHO EXCHANGE SERVER 2019

LINK: https://www.alitajran.com/create-certificate-exchange-server/#h-step-2-generate-exchange-certificate-request  ==Create request SSL New-ExchangeCertificate -Server "EXIDC1" -GenerateRequest -FriendlyName "EXCERT2025" -PrivateKeyExportable $true -SubjectName "c=VN, s=HCM, l=HCM, o=TTT, ou=IT, cn=mail.ttt.vn" -DomainName mail.ttt.vn,autodiscover.ttt.vn,autodiscover.saigonxanh.com,autodiscover.mpu.edu.vn ==Complete SSL Import-ExchangeCertificate -FileData ([System.IO.File]::ReadAllBytes('\\exidc1\Cert$\2378696128.crt')) -PrivateKeyExportable:$true -Password (ConvertTo-SecureString -String 'tttcompany' -AsPlainText -Force)