Wiki.js Install
https://docs.requarks.io/install/linux
Install
Download the latest version of Wiki.js:
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz
Extract the package to the final destination of your choice:
mkdir wiki
tar xzf wiki-js.tar.gz -C ./wiki
cd ./wiki
Rename the sample config file to config.yml:
mv config.sample.yml config.yml
Edit the config file and fill in your database and port settings (Configuration Reference):
nano config.yml
For SQLite installations only: (skip this step otherwise) Fetch native bindings for SQLite3:
npm rebuild sqlite3
Run Wiki.js
node server
Wait until you are invited to open to the setup page in your browser.
Complete the setup wizard to finish the installation.
Run as service
There are several solutions to run Wiki.js as a background service. We'll focus on systemd in this guide as it's available in nearly all linux distributions.
Create a new file named wiki.service inside directory /etc/systemd/system.
nano /etc/systemd/system/wiki.service
Paste the following contents (assuming your wiki is installed at /var/wiki):
[Unit]
Description=Wiki.js
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/node server
Restart=always
# Consider creating a dedicated user for Wiki.js here:
User=nobody
Environment=NODE_ENV=production
WorkingDirectory=/var/wiki
[Install]
WantedBy=multi-user.target
Save the service file (CTRL+X, followed by Y).
Reload systemd:
systemctl daemon-reload
Run the service:
systemctl start wiki
Enable the service on system boot.
systemctl enable wiki
Note: You can see the logs of the service using journalctl -u wiki
Intel 11세대 CPU 탑재 노트북에서 Win10/Win11 인식 안될 때
인텔 11세대 CPU 탑재 노트북이나 PC에서 Win10/Win11 등 Windows OS 설치시 디스크 표시가 안됨.
드라이버 로드가 반드시 필요함.
첨부의 파일을 압축풀고 설치 화면에서 드라이버 로드를 실시해서 디스크를 띄워줘야 한다.
Zabbix 6.0 with VMWare ESXi 8.0
1. Zabbix 6.0에는 VMWare Templete가 내장되어 있다.
2. Zabbix 6.0에서 VMWare ESXi를 모니터링 하기 위해서 다음의 세가지 매크로가 필요하다.
{$VMWARE.HV.UUID} {$VMWARE.PASSWORD} {$VMWARE.URL} {$VMWARE.USERNAME}
3. 기존 Zabbix 5.0에서는 {$VMWARE.HV.UUID} 가 없어도 모니터링이 됬으나, Zabbix 6.0에서는 필요하다.
4. 그리고 {$VMWARE.HV.UUID} 를 구하는 방법은 ESXi 7.0.3 이하와 8.0.0이 다르다.
- 7.0 이하 esxcli system uuid get
- 8.0 이상 vim-cmd hostsvc/hostsummary | grep uuid
5. 그리고 Zabbix에 호스트 등록시, Templeate는 VMWare 로.
- 이것으로 하면 하위 VM도 모두 디스커버리 등록된다.
6. 그리고, zabbix_server.conf에서 아래의 것 Enable 하고 서비스 재기동
StartVMwareCollectors=5
VMwareFrequency=60
VMwarePerfFrequency=60
VMwareCacheSize=8M
VMwareTimeout=10
TVHeadend on Ubuntu 22.04
TVHeadend install on ubuntu 22.04 server.
Repository에서 설치하는 방법으로 진행한다.
일반적인 검색에서는 snapd를 사용한 설치나 Docker 설치방법이 대부분 이지만, snapd를 사용하는 경우 DTV 사용시 Mux를 사용할 수 없다.
1) 리포지토리 등록
curl -1sLf \
'https://dl.cloudsmith.io/public/tvheadend/tvheadend/setup.deb.sh' \
| sudo -E bash
2) sudo apt-get update
3) sudo apt-get install tvheadend
Ubuntu의 18.04, 20.04, 22.04 LTS 버전에서는 모두 통용됨.
1. This way is stable on installed Ubuntu 22.04 Server Core
이 방법은 Ubuntu 22.04 Server Core가 설치된 상태를 기준으로 합니다. (Desktop 버전은 모름)
1) Asterisk 설치
sudo apt-get install unzip git gnupg2 curl libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev build-essential libjansson-dev libxml2-dev uuid-dev subversion
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-19-current.tar.gz
tar zxf asterisk-19-current.tar.gz
cd asterisk-19.*/
sudo ./contrib/scripts/get_mp3_source.sh
sudo ./contrib/scripts/install_prereq install
sudo ./configure
sudo make menuselect
(설치할 코덱 및 애드인 설치 요망)
sudo make -j2
sudo make install
sudo make samples
sudo make config
sudo ldconfig
sudo groupadd asterisk
sudo useradd -r -d /var/lib/asterisk -g asterisk asterisk
sudo usermod -aG audio,dialout asterisk
sudo chown -R asterisk.asterisk /etc/asterisk
sudo chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
sudo chown -R asterisk.asterisk /usr/lib/asterisk
sudo nano /etc/default/asterisk
(아래 내용 추가 또는 주석 해제)
AST_USER="asterisk"
AST_GROUP="asterisk"
sudo systemctl restart asterisk
sudo nano /etc/asterisk/cdr.conf
(아래 내용 수정)
[radius]
radiuscfg => /etc/radcli/radiusclient.conf
sudo nano /etc/asterisk/cel.conf
(아래 내용 수정)
[radius]
radiuscfg => /etc/radcli/radiusclient.conf
2) FreePBX 16 (사전에 apache, mariadb, php 7.4, nodejs 설치과정 포함)
sudo apt-get install apt-transport-https curl
sudo curl -o /etc/apt/trusted.gpg.d/mariadb_release_signing_key.asc 'https://mariadb.org/mariadb_release_signing_key.asc'
sudo sh -c "echo 'deb https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/repo/10.10/ubuntu jammy main' >>/etc/apt/sources.list"
sudo apt-get update
sudo apt-get install mariadb-server
sudo mysql_secure_installation
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install apache2
sudo apt-get install php7.4 libapache2-mod-php7.4
sudo apt-get install php7.4-cgi php7.4-common php7.4-curl php7.4-mbstring php7.4-gd
sudo apt-get install php7.4-mysql php7.4-bcmath php7.4-zip php7.4-xml php7.4-imap php7.4-json php7.4-snmp
sudo apt-get install php-pear
sudo apt-get install nodejs npm
sudo apt-get install python3-certbot-apache
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-16.0-latest.tgz
tar -xvzf freepbx-16.0-latest.tgz
cd freepbx
sudo ./install -n
sudo fwconsole ma downloadinstall certman
sudo fwconsole ma install pm2
sudo sed -i 's/^(User|Group).*/ asterisk/' /etc/apache2/apache2.conf
sudo sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
sudo sed -i 's/(^upload_max_filesize = )./2000M/' /etc/php/7.4/apache2/php.ini
sudo sed -i 's/(^upload_max_filesize = )./2000M/' /etc/php/7.4/cli/php.ini
sudo a2enmod rewrite
sudo apt-get install sox
sudo systemctl restart apache2
VMWare ESXi 6.0 → 7.0 업그레이드 방안
Dell EMC 서버를 기준으로 작업 사항을 정한다.
ESXi 7.0의 2022.09.30 기준 최신버전은 Update 3g (20328353) 이다.
그러나, Dell EMC Customizing Version은 Update 3f (20036589) 이다.
1. 신규설치
1) ESXI 7.0 (VMware-VMvisor-Installer-7.0.0.update03-20036589.x86_64-DellEMC_Customized-A06.iso) 으로 설치한다.
2) ESXI를 유지보수모드로 전환한다.
2) SSH를 Enable 한다.
3) Putty로 SSH에 접속한다.
4) Filezilla 등 SFTP로 VMware-ESXi-7.0U3g-20328353-depot.zip 을 Datastore에 업로드 한다.
4) 아래 명령으로 업그레이드를 실시한다.
esxcli software profile update -p ESXi-7.0U3g-20328353-standard -d /vmfs/volumes/datastore1/VMware-ESXi-7.0U3g-20328353-depot.zip
# 만약, 7.0.3 설치 하드웨어가 4세대 Xeon 이전 CPU라면, 이후 릴리즈에서 지원하지 않을 수 있다는 경고가 표시되며 중지된다. 아래와 같이 옵션 추가를 한다.
esxcli software profile update -p ESXi-7.0U3g-20328353-standard -d /vmfs/volumes/datastore1/VMware-ESXi-7.0U3g-20328353-depot.zip --no-hardware-warning --no-sig-check
2. 기존서버 설치
1) ESXI 6.5로 업그레이드 설치한다. (VMware-VMvisor-Installer-201908001-14320405.x86_64.iso)
- MBR(BIOS) Boot로 설치한다.
2) ESXI 7.0 (VMware-VMvisor-Installer-7.0.0.update03-20036589.x86_64-DellEMC_Customized-A06.iso) 으로 설치한다.
- UEFI Boot로 설치한다. BIOS에서 UEFI Boot로 변경해야 한다.
- 7.0.3 버전은 TPM 및 Secure Boot를 지원하므로 Secure Boot를 켜주어야 한다.
3) ESXI를 유지보수모드로 전환한다.
4) SSH를 Enable 한다.
5) Putty로 SSH에 접속한다.
6) Filezilla 등 SFTP로 VMware-ESXi-7.0U3g-20328353-depot.zip 을 Datastore에 업로드 한다.
7) 아래 명령으로 업그레이드를 실시한다.
esxcli software profile update -p ESXi-7.0U3g-20328353-standard -d /vmfs/volumes/datastore1/VMware-ESXi-7.0U3g-20328353-depot.zip
esxcli software profile update -p ESXi-7.0U3g-20328353-standard -d /vmfs/volumes/datastore1/VMware-ESXi-7.0U3g-20328353-depot.zip --no-sig-check
Win10에서 Intel TSX-NI 활성화/비활성화 (Active and deactive Intel TSX-NI on Win10)
인텔 TSX-NI 는 엔터프라이즈급 멀티쓰레드 성능 확장에 초점을 맞춘 명령어 세트로서 소프트웨어 쓰레드(threads) 및 락(lock)에 대한 향상된 제어를 통해 병렬 운영(parallel operations)의 효율성을 증가시켜준다.
1) Active
CMD 열고 실행
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Kernel" /v DisableTsx /t REG_DWORD /d 1 /f
2) Deactive
CMD 열고 실행
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Kernel" /v DisableTsx /t REG_DWORD /d 0 /f
윈도우 화면 방향에 따라 바탕화면 바꾸는 프로그램 - Auto Wallpaper
https://www.mediafire.com/file/r84rkrw1dq43hvi/auto_wallpaper-1.0.0.zip/file
윈도우OS에서 화면 방향에 따라 바탕화면 배경 바꿔주는 프로그램
윈도우 태블릿에 편하다.
SSL Keystore JKS file to Nginx CERT File Format Output
keytool을 이용하여 jks파일에서 pkcs12 포맷형태로 키파일 추출
keytool -importkeystore -srckeystore keystore.jks -destkeystore output_file.p12 -deststoretype PKCS12
cert 파일 추출
openssl pkcs12 -in outputed_file.p12 -out cert_file.pem -clcerts -nokeys
key파일 추출
openssl pkcs12 -in output_file.p12 -out key_file.key -nocerts -des
VTiger CRM 설치방법 (Ubuntu 20.04, MariaDB)
https://sourceforge.net/projects/vtigercrm/
https://websiteforstudents.com/install-vtiger-crm-on-ubuntu-16-04-lts-with-apache2-mariadb-and-php-7-1-support/
Step 1: Install Apache2
Vtiger CRM requires a webserver and the most popular webserver in use today is Apache2. So, go and install Apache2 on Ubuntu by running the commands below:
sudo apt update
sudo apt install apache2
After installing Apache2, run the commands below to disable directory listing.
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
Next, run the commands below to stop, start and enable Apache2 service to always start up with the server boots.
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
Step 2: Install MariaDB
Vtiger also requires a database server. and MariaDB database server is a great place to start. To install it run the commands below.
sudo apt-get install mariadb-server mariadb-client
After installing, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
sudo systemctl enable mysql.service
After that, run the commands below to secure MariaDB server.
sudo mysql_secure_installation
When prompted, answer the questions below by following the guide.
- Enter current password for root (enter for none): Just press the Enter
- Set root password? [Y/n]: Y
- New password: Enter password
- Re-enter new password: Repeat password
- Remove anonymous users? [Y/n]: Y
- Disallow root login remotely? [Y/n]: Y
- Remove test database and access to it? [Y/n]: Y
- Reload privilege tables now? [Y/n]: Y
Restart MariaDB server
sudo systemctl restart mysql.service
Step 3: Install PHP and Related Modules
PHP 7.1 isn’t available on Ubuntu default repositories… in order to install it, you will have to get it from third-party repositories.
Run the commands below to add the below third party repository to upgrade to PHP 7.1
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
Then update and upgrade to PHP 7.1
sudo apt update
Run the commands below to install PHP 7.1 and related modules.
sudo apt install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-gd php7.1-xml php7.1-intl php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-ldap php7.1-zip php7.1-curl
After install PHP, run the commands below to open Apache2 PHP default file.
sudo nano /etc/php/7.1/apache2/php.ini
Then make the change the following lines below in the file and save.
file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_filesize = 64M
max_execution_time = 30
display_errors = Off
max_input_vars = 1500
date.timezone = America/Chicago
Step 4: Create Vtiger Database
Now that you’ve install all the packages that are required, continue below to start configuring the servers. First run the commands below to create Vtiger database.
Run the commands below to logon to the database server. When prompted for a password, type the root password you created above.
sudo mysql -u root -p
Then create a database called vtigercrmdb
CREATE DATABASE vtigercrmdb;
Create a database user called vtigercrmuser with new password
CREATE USER 'vtigercrmuser'@'localhost' IDENTIFIED BY 'new_password_here';
Then grant the user full access to the database.
GRANT ALL ON vtigercrmdb.* TO 'vtigercrmuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
Finally, save your changes and exit.
FLUSH PRIVILEGES;
EXIT;
Step 5: Download Vtiger Latest Release
Next, visit Vtiger site and download the latest version.
After downloading, run the commands below to extract the download file into Apache2 root directory.
cd /tmp && wget https://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%207.0.1/Core%20Product/vtigercrm7.0.1.tar.gz
tar xzf vtigercrm7.0.1.tar.gz
sudo mv vtigercrm /var/www/html/vtigercrm
Then run the commands below to set the correct permissions for Concrete5 to function.
sudo chown -R www-data:www-data /var/www/html/vtigercrm/
sudo chmod -R 755 /var/www/html/vtigercrm/
Step 6: Configure Apache2
Finally, configure Apahce2 site configuration file for Vtiger. This file will control how users access Vtiger content. Run the commands below to create a new configuration file called vtigercrm.conf
sudo nano /etc/apache2/sites-available/vtigercrm.conf
Then copy and paste the content below into the file and save it. Replace the highlighted line with your own domain name and directory root location.
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/vtigercrm/
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/vtigercrm/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Save the file and exit.
Step 7: Enable the Vtiger and Rewrite Module
After configuring the VirtualHost above, enable it by running the commands below
sudo a2ensite vtigercrm.conf
sudo a2enmod rewrite
Step 8 : Restart Apache2
To load all the settings above, restart Apache2 by running the commands below.
sudo systemctl restart apache2.service
Then open your browser and browse to the server domain name followed by install. You should see Concrete5 setup wizard to complete. Please follow the wizard carefully.
Then follow the on-screen instructions until you’ve successfully installed Vtiger.
Type the database info and create an admin account for the portal.
After a brief time, the installation should complete and the platform ready to be used.
Enjoy!
You may also like the post below: