윈도우 화면 방향에 따라 바탕화면 바꾸는 프로그램 - 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:
imuz 컨버터11 윈도우 태블릿에 윈도우11 설치하기
사실 윈도우 태블릿의 강자라면 MS의 서피스가 답인데, 서피스는 아무리 사양이 낮은 제품도 가격이 그렇게 착하진 않다보니 저렴하게 사용할 윈도우 태블릿으로 imuz 컨버터11을 구입하게 되었다. 물론, 새것으로 구입하지 못하고 다른 사람으로 부터 얼마 사용하지 않은 제품을 저렴하게 양도 받았는데, 셀러론CPU에 4GB RAM 까지는 그런대로 괜찮은데 이 태블릿에 내장된 삼성 CJNB4R 64GB eMMC SSD의 성능이 아주 지랄인지라 체감속도에서는 좀 실망한 모델이긴 하다. 사실 필기를 주로 사용하려고 구입했는데 필기도 광고에서만큼 깔끔하게 써지지 않은 것은 물론이고 동봉되어 있던 도킹 키보드도 내구성이 좋지 않아 오타가 작렬하고 터치패드 마우스도 자기 멋대로 동작하는 등 불만이 많은 제품이긴 한데 도킹키보드는 아예 박스에 다시 싸서 집에 놔두고, 펜은 그냥 가볍게 쓰는 정도로 사용하고 있다.
최근 윈도우11이 나오면서 노트북에 설치해보니 UI와 UX가 나름 마음에 드는지라 태블릿에도 설치하고 싶어서 이 컨버터11에도 설치하려고 했는데 그냥은 설치가 안되는 것이, TPM 1.2로 인식하는데다가 64GB 스토리지지만 스토리지 뒤편에 10GB정도의 복구 파티션이 존재해서 부족한 용량으로 인식하여 업그레이드 설치가 되지 않는다.
이에 컨버터11에다가 윈도우11의 설치를 성공하여 이 블로그에 공개한다.
1. 윈도우11 설치에서 포기해야 할 것이 있다.
1) imuz 출고시에 만들어진 복구 파티션 (복구파티션에는 Win10 Home 20H2가 들어있다)
2) SSD 포맷
2. TPM 1.2 --> TPM 2.0으로 BIOS 변경
저렴한 태블릿이라 TPM 2.0이 되는가 했는데, BIOS 옵션에 있기는 있다.
도킹키보드를 연결한 상태에서 전원을 완전히 껐다가 켜면서 F1과 DEL을 번갈아 누르다 보면 CMOS 화면이 표시된다.
Advanced 메뉴에 Trusted Platform 메뉴에 들어가면 아래 그림과 같은 메뉴가 나오는데, 맨 아래 Device Select가
Auto로 세팅되어 있다. 이렇게 되면 TPM 1.2로 인식한다. 수동으로 TPM 2.0으로 고정 변경해 주고 BIOS 설정을
저장한다.
3. 윈도우11 설치
윈도우11 ISO를 다운로드 받고, USB에 굽는다. 그리고 CMOS 화면에서 바로 USB로 부팅하는 것이 좋다.
컨버터 11은 부팅 디바이스 선택 단축키가 없다.
TPM 2.0으로 변경했지만, CPU가 설치가 불가능한 CPU이다. 그리고 64GB SSD 라고 하지만 eMMC다 보니
사양체크에서 설치를 거부할 것이다.
윈도우11 부팅USB를 만들면서 아래 가이드에 있는 REG 파일을 넣어두고, 윈도우 설치를 시작하면서 우회 레지스트리
를 적용한다.
https://extrememanual.net/38862
설치하면서, 기존에 SSD에 있는 파티션을 모두 제거하고 설치한다.
파티션은 알아서 만들어 낸다.
그리고, 설치 시작.
설치가 잘 완료된다.
윈도우11 설치가 잘 완료되면, 드라이버는 반드시 설치해야 한다.
아래 imuz 자료실에 있는 통합 드라이버로 설치한다. 모든 드라이버가 잘 설치될 것이다.
https://shop.imuz.com/board/view.php?&bdId=data&sno=508
이게 실제 설치된 화면이다.
컨버터11 자체가 Win10 Home이 제공된 제품이다 보니 정품인증도 자동으로 되어 있다.
윈도우11을 컨버터11에서 사용하고자 한다면, 이와 같은 방법으로 도전해 보기를 바란다.
Azure Storage Account에서 NFSv3 활성화
기본적으로 Azure Storage Account 생성 후, Storage 생성할 때 NFSv3는 활성화 되어 있지 않음.
기본적인 Bulb storage는 SMB 프로토콜을 사용함. SAMBA로 마운트할 수 있으나 속도가 느림.
Azure CLI에서 아래와 같이 현재 사용하는 Subscription(구독)에 Enable 해주어야 NFSv3 스토리지 사용이 가능함.
Windows Server 20H2 Feature List
20H2 설치 후 커맨드 라인으로 기능설치시 활용바람.
Get-WindowsFeature -Name *gui*
Display Name Name Install State
------------ ---- -------------
[ ] Active Directory Certificate Services AD-Certificate Available
[ ] Certification Authority ADCS-Cert-Authority Available
[ ] Certificate Enrollment Policy Web Service ADCS-Enroll-Web-Pol Available
[ ] Certificate Enrollment Web Service ADCS-Enroll-Web-Svc Available
[ ] Certification Authority Web Enrollment ADCS-Web-Enrollment Available
[ ] Network Device Enrollment Service ADCS-Device-Enrollment Available
[ ] Online Responder ADCS-Online-Cert Available
[ ] Active Directory Domain Services AD-Domain-Services Available
[ ] Active Directory Federation Services ADFS-Federation Available
[ ] Active Directory Lightweight Directory Services ADLDS Available
[ ] Active Directory Rights Management Services ADRMS Available
[ ] Active Directory Rights Management Server ADRMS-Server Available
[ ] Identity Federation Support ADRMS-Identity Available
[ ] Device Health Attestation DeviceHealthAttestat... Available
[ ] DHCP Server DHCP Available
[ ] DNS Server DNS Available
[X] File and Storage Services FileAndStorage-Services Installed
[ ] File and iSCSI Services File-Services Available
[ ] File Server FS-FileServer Available
[ ] BranchCache for Network Files FS-BranchCache Available
[ ] Data Deduplication FS-Data-Deduplication Available
[ ] DFS Namespaces FS-DFS-Namespace Available
[ ] DFS Replication FS-DFS-Replication Available
[ ] File Server Resource Manager FS-Resource-Manager Available
[ ] File Server VSS Agent Service FS-VSS-Agent Available
[ ] iSCSI Target Server FS-iSCSITarget-Server Available
[ ] iSCSI Target Storage Provider (VDS and V... iSCSITarget-VSS-VDS Available
[ ] Server for NFS FS-NFS-Service Available
[ ] Work Folders FS-SyncShareService Available
[X] Storage Services Storage-Services Installed
[ ] Host Guardian Service HostGuardianServiceRole Available
[ ] Hyper-V Hyper-V Available
[ ] Print and Document Services Print-Services Available
[ ] Print Server Print-Server Available
[ ] LPD Service Print-LPD-Service Available
[ ] Remote Access RemoteAccess Available
[ ] DirectAccess and VPN (RAS) DirectAccess-VPN Available
[ ] Routing Routing Available
[ ] Web Application Proxy Web-Application-Proxy Available
[ ] Remote Desktop Services Remote-Desktop-Services Available
[ ] Remote Desktop Licensing RDS-Licensing Available
[ ] Volume Activation Services VolumeActivation Available
[ ] Web Server (IIS) Web-Server Available
[ ] Web Server Web-WebServer Available
[ ] Common HTTP Features Web-Common-Http Available
[ ] Default Document Web-Default-Doc Available
[ ] Directory Browsing Web-Dir-Browsing Available
[ ] HTTP Errors Web-Http-Errors Available
[ ] Static Content Web-Static-Content Available
[ ] HTTP Redirection Web-Http-Redirect Available
[ ] WebDAV Publishing Web-DAV-Publishing Available
[ ] Health and Diagnostics Web-Health Available
[ ] HTTP Logging Web-Http-Logging Available
[ ] Custom Logging Web-Custom-Logging Available
[ ] Logging Tools Web-Log-Libraries Available
[ ] ODBC Logging Web-ODBC-Logging Available
[ ] Request Monitor Web-Request-Monitor Available
[ ] Tracing Web-Http-Tracing Available
[ ] Performance Web-Performance Available
[ ] Static Content Compression Web-Stat-Compression Available
[ ] Dynamic Content Compression Web-Dyn-Compression Available
[ ] Security Web-Security Available
[ ] Request Filtering Web-Filtering Available
[ ] Basic Authentication Web-Basic-Auth Available
[ ] Centralized SSL Certificate Support Web-CertProvider Available
[ ] Client Certificate Mapping Authentic... Web-Client-Auth Available
[ ] Digest Authentication Web-Digest-Auth Available
[ ] IIS Client Certificate Mapping Authe... Web-Cert-Auth Available
[ ] IP and Domain Restrictions Web-IP-Security Available
[ ] URL Authorization Web-Url-Auth Available
[ ] Windows Authentication Web-Windows-Auth Available
[ ] Application Development Web-App-Dev Available
[ ] .NET Extensibility 3.5 Web-Net-Ext Available
[ ] .NET Extensibility 4.8 Web-Net-Ext45 Available
[ ] Application Initialization Web-AppInit Available
[ ] ASP Web-ASP Available
[ ] ASP.NET 3.5 Web-Asp-Net Available
[ ] ASP.NET 4.8 Web-Asp-Net45 Available
[ ] CGI Web-CGI Available
[ ] ISAPI Extensions Web-ISAPI-Ext Available
[ ] ISAPI Filters Web-ISAPI-Filter Available
[ ] Server Side Includes Web-Includes Available
[ ] WebSocket Protocol Web-WebSockets Available
[ ] FTP Server Web-Ftp-Server Available
[ ] FTP Service Web-Ftp-Service Available
[ ] FTP Extensibility Web-Ftp-Ext Available
[ ] Management Tools Web-Mgmt-Tools Available
[ ] IIS Management Console Web-Mgmt-Console Available
[ ] IIS 6 Management Compatibility Web-Mgmt-Compat Available
[ ] IIS 6 Metabase Compatibility Web-Metabase Available
[ ] IIS 6 Scripting Tools Web-Lgcy-Scripting Available
[ ] IIS 6 WMI Compatibility Web-WMI Available
[ ] IIS Management Scripts and Tools Web-Scripting-Tools Available
[ ] Management Service Web-Mgmt-Service Available
[ ] Windows Deployment Services WDS Available
[ ] Transport Server WDS-Transport Available
[ ] Windows Server Update Services UpdateServices Available
[ ] WID Connectivity UpdateServices-WidDB Available
[ ] WSUS Services UpdateServices-Services Available
[ ] SQL Server Connectivity UpdateServices-DB Available
[ ] .NET Framework 3.5 Features NET-Framework-Features Available
[ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Removed
[ ] HTTP Activation NET-HTTP-Activation Available
[ ] Non-HTTP Activation NET-Non-HTTP-Activ Available
[X] .NET Framework 4.8 Features NET-Framework-45-Fea... Installed
[X] .NET Framework 4.8 NET-Framework-45-Core Installed
[ ] ASP.NET 4.8 NET-Framework-45-ASPNET Available
[X] WCF Services NET-WCF-Services45 Installed
[ ] HTTP Activation NET-WCF-HTTP-Activat... Available
[ ] Message Queuing (MSMQ) Activation NET-WCF-MSMQ-Activat... Available
[ ] Named Pipe Activation NET-WCF-Pipe-Activat... Available
[ ] TCP Activation NET-WCF-TCP-Activati... Available
[X] TCP Port Sharing NET-WCF-TCP-PortShar... Installed
[ ] Background Intelligent Transfer Service (BITS) BITS Available
[ ] IIS Server Extension BITS-IIS-Ext Available
[ ] Compact Server BITS-Compact-Server Available
[ ] BitLocker Drive Encryption BitLocker Available
[ ] BranchCache BranchCache Available
[ ] Client for NFS NFS-Client Available
[ ] Containers Containers Available
[ ] Data Center Bridging Data-Center-Bridging Available
[ ] Enhanced Storage EnhancedStorage Available
[ ] Failover Clustering Failover-Clustering Available
[ ] Group Policy Management GPMC Available
[ ] Host Guardian Hyper-V Support HostGuardian Available
[ ] I/O Quality of Service DiskIo-QoS Available
[ ] IIS Hostable Web Core Web-WHC Available
[ ] IP Address Management (IPAM) Server IPAM Available
[ ] iSNS Server service ISNS Available
[ ] Management OData IIS Extension ManagementOdata Available
[ ] Media Foundation Server-Media-Foundation Available
[ ] Message Queuing MSMQ Available
[ ] Message Queuing Services MSMQ-Services Available
[ ] Message Queuing Server MSMQ-Server Available
[ ] Directory Service Integration MSMQ-Directory Available
[ ] HTTP Support MSMQ-HTTP-Support Available
[ ] Message Queuing Triggers MSMQ-Triggers Available
[ ] Routing Service MSMQ-Routing Available
[ ] Message Queuing DCOM Proxy MSMQ-DCOM Available
[ ] Multipath I/O Multipath-IO Available
[ ] Network Load Balancing NLB Available
[ ] Network Virtualization NetworkVirtualization Available
[ ] Peer Name Resolution Protocol PNRP Available
[ ] Quality Windows Audio Video Experience qWave Available
[ ] Remote Differential Compression RDC Available
[ ] Remote Server Administration Tools RSAT Available
[ ] Feature Administration Tools RSAT-Feature-Tools Available
[ ] BitLocker Drive Encryption Administratio... RSAT-Feature-Tools-B... Available
[ ] DataCenterBridging LLDP Tools RSAT-DataCenterBridg... Available
[ ] Failover Clustering Tools RSAT-Clustering Available
[ ] Failover Cluster Module for Windows ... RSAT-Clustering-Powe... Available
[ ] Failover Cluster Automation Server RSAT-Clustering-Auto... Available
[ ] Failover Cluster Command Interface RSAT-Clustering-CmdI... Available
[ ] IP Address Management (IPAM) Client IPAM-Client-Feature Available
[ ] Shielded VM Tools RSAT-Shielded-VM-Tools Available
[ ] Storage Migration Service Tools RSAT-SMS Available
[ ] Storage Replica Module for Windows Power... RSAT-Storage-Replica Available
[ ] System Insights Module for Windows Power... RSAT-System-Insights Available
[ ] Role Administration Tools RSAT-Role-Tools Available
[ ] AD DS and AD LDS Tools RSAT-AD-Tools Available
[ ] Active Directory module for Windows ... RSAT-AD-PowerShell Available
[ ] AD DS Tools RSAT-ADDS Available
[ ] Active Directory Administrative ... RSAT-AD-AdminCenter Available
[ ] AD DS Snap-Ins and Command-Line ... RSAT-ADDS-Tools Available
[ ] AD LDS Snap-Ins and Command-Line Tools RSAT-ADLDS Available
[ ] Hyper-V Management Tools RSAT-Hyper-V-Tools Available
[ ] Hyper-V Module for Windows PowerShell Hyper-V-PowerShell Available
[ ] Windows Server Update Services Tools UpdateServices-RSAT Available
[ ] API and PowerShell cmdlets UpdateServices-API Available
[ ] DHCP Server Tools RSAT-DHCP Available
[ ] DNS Server Tools RSAT-DNS-Server Available
[ ] Remote Access Management Tools RSAT-RemoteAccess Available
[ ] Remote Access module for Windows Pow... RSAT-RemoteAccess-Po... Available
[ ] RPC over HTTP Proxy RPC-over-HTTP-Proxy Available
[ ] Setup and Boot Event Collection Setup-and-Boot-Event... Available
[ ] Simple TCP/IP Services Simple-TCPIP Available
[ ] SMB 1.0/CIFS File Sharing Support FS-SMB1 Available
[ ] SMB 1.0/CIFS Client FS-SMB1-CLIENT Available
[ ] SMB 1.0/CIFS Server FS-SMB1-SERVER Available
[ ] SMB Bandwidth Limit FS-SMBBW Available
[ ] SNMP Service SNMP-Service Available
[ ] SNMP WMI Provider SNMP-WMI-Provider Available
[ ] Storage Migration Service SMS Available
[ ] Storage Migration Service Proxy SMS-Proxy Available
[ ] Storage Replica Storage-Replica Available
[X] System Data Archiver System-DataArchiver Installed
[ ] System Insights System-Insights Available
[ ] Telnet Client Telnet-Client Available
[ ] VM Shielding Tools for Fabric Management FabricShieldedTools Available
[X] Windows Defender Antivirus Windows-Defender Installed
[ ] Windows Internal Database Windows-Internal-Dat... Available
[X] Windows PowerShell PowerShellRoot Installed
[X] Windows PowerShell 5.1 PowerShell Installed
[ ] Windows PowerShell 2.0 Engine PowerShell-V2 Removed
[ ] Windows PowerShell Desired State Configurati... DSC-Service Available
[ ] Windows PowerShell Web Access WindowsPowerShellWeb... Available
[ ] Windows Process Activation Service WAS Available
[ ] Process Model WAS-Process-Model Available
[ ] .NET Environment 3.5 WAS-NET-Environment Available
[ ] Configuration APIs WAS-Config-APIs Available
[ ] Windows Server Backup Windows-Server-Backup Available
[ ] Windows Server Migration Tools Migration Available
[ ] Windows Standards-Based Storage Management WindowsStorageManage... Available
[ ] Windows Subsystem for Linux Microsoft-Windows-Su... Available
[ ] WinRM IIS Extension WinRM-IIS-Ext Available
[ ] WINS Server WINS Available
[X] WoW64 Support WoW64-Support Installed
PS C:\Users\Administrator>
Install Asterisk 16 and FreePBX 15 on Raspberry PI 4
데비안 기준이라 수정할게 좀 있음. 확인하면서 적용하기 바람.
Step-by-step guide
All commands are to be run as the root user, either by directly logging in as root or by using sudo su - .
Start from a base Debian 10 installation. All necessary packages will be installed through the following commands.
Prerequisite recommended OS update
Add the backports repo specifically so that the odbc-mariadb package is available. Then update the OS to current.
- 사전에 타이프 할것
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
- echo deb http://ftp.us.debian.org/debian/ buster-backports main > /etc/apt/sources.list.d/backports.list
- echo deb-src http://ftp.us.debian.org/debian/ buster-backports main >> /etc/apt/sources.list.d/backports.list
- apt-get update
- apt-get upgrade
Install all the necessary packages (취소선 그어진 것은 raspbian 10에서 설치 안됨. 삭제하고 실행
- apt-get install -y build-essential linux-headers-*
`uname -r`openssh-server apache2 mariadb-server mariadb-client bison flex php php-curl php-cliphp-pdophp-mysql php-pear php-gd php-mbstring php-intl php-bcmath curl sox libncurses5-dev libssl-dev mpg123 libxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git unixodbc-dev uuid uuid-dev libasound2-dev libogg-dev libvorbis-dev libicu-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp2-dev libspandsp-dev sudo subversion libtool-bin python-dev unixodbc dirmngr sendmail-bin sendmail asterisk debhelper-compat cmake libmariadb-devodbc-mariadbphp-ldap
Install Node.js (setup_11.x --> setup_12.x 로 바꿀것)
- curl -sL https://deb.nodesource.com/
setup_11.xsetup_12.x | sudo -E bash - - apt-get install -y nodejs
Install this required Pear module
- pear install Console_Getopt
Prepare Asterisk
- systemctl stop asterisk
- systemctl disable asterisk
- cd /etc/asterisk
- mkdir DIST
- mv * DIST
- cp DIST/asterisk.conf .
- sed -i 's/(!)//' asterisk.conf
- touch modules.conf
- touch cdr.conf
Configure Apache web server
- sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php/7.3/apache2/php.ini
- sed -i 's/\(^memory_limit = \).*/\1256M/' /etc/php/7.3/apache2/php.ini
- sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/apache2/apache2.conf
- sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
- a2enmod rewrite
- service apache2 restart
- rm /var/www/html/index.html
Configure ODBC
- cat <<EOF > /etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL (MariaDB)
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so
FileUsage = 1
EOF - cat <<EOF > /etc/odbc.ini
[MySQL-asteriskcdrdb]
Description = MySQL connection to ‘asteriskcdrdb’ database
Driver = MySQL
Server = localhost
Database = asteriskcdrdb
Port = 3306
Socket = /var/run/mysqld/mysqld.sock
Option = 3
EOF
Download FFMPEG static build for sound file manipulation
- cd /usr/local/src
- wget "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz"
- tar xf ffmpeg-release-amd64-static.tar.xz
- cd ffmpeg-4*
- mv ffmpeg /usr/local/bin
Install FreePBX
- cd /usr/local/src
- wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz
- tar zxvf freepbx-15.0-latest.tgz
- cd /usr/local/src/freepbx/
- ./start_asterisk start
- ./install -n
Get the rest of the modules
Only a very basic system is installed at this point. You will probably want to install all the modules on Debian 10 . Alternatively, you can skip this and pick-and-choose the individual modules you want later.
- fwconsole ma installall
Uninstall digium_phones
Broken with PHP 7.3 (April 2020).
- fwconsole ma uninstall digium_phones
Apply the current configuration
- fwconsole reload
Set symlinks to the correct sound files
- cd /usr/share/asterisk
- mv sounds sounds-DIST
- ln -s /var/lib/asterisk/sounds sounds
Perform a restart to load all Asterisk modules that had not yet been configured
- fwconsole restart
Set up systemd (startup script)
- cat <<EOF > /etc/systemd/system/freepbx.service
[Unit]
Description=FreePBX VoIP Server
After=mariadb.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/fwconsole start -q
ExecStop=/usr/sbin/fwconsole stop -q
[Install]
WantedBy=multi-user.target
EOF - systemctl daemon-reload
- systemctl enable freepbx
Asterisk and FreePBX 15 are installed on Debian 10 ! Go to the web interface at http://YOUR-IP to finish setup
라즈베리파이4(Raspberry 4) HDMI 모니터 연결하고 화면 안나오는 경우
라즈베리파이4와 집에 있는 4K 모니터와 4K TV에서 아무리 연결해도 화면이 표시되지 않는 현상이 보였다.
raspbian을 넣어도, Libreelec에서도 동일증상이었다.
다음의 설정으로 해결했다.
메모리 --> boot 드라이브 --> config.txt
hdmi_force_hotplug=1
config_hdmi_boost=4
hdmi_group=1
저장 후, 메모리를 기기에 다시 꽂고 전원을 켜면 화면이 표시될 것이다.
raspbian 및 libreelec 모두 적용된다.
Tomcat 의 경로를 ln으로 링크를 만들었을 때 조치 방법
File DB를 쓰던 원래의 솔루션이 이중화 조치를 하면서 DB까 꼬일 가능성이 농후해졌다.
그래서 두 서버의 중간에 공유스토리지를 두고, 두 서버간 공유가 필요한 파일과 경로는
ln으로 링크를 주어 조치하였으나 톰캣에서 링크를 먹지 않음;;;
며칠을 쥐싸매다가 이거 한줄로 해결했다.
/conf/context.xml
<Context>
<Resources allowLinking="true" />
</Context>
Disable spanning tree of Cisco 2960 switch
- 스위치를 콘솔로 연결한다.
- Putty 띄워서 COM포트로 붙인다.
- sh run(엔터)을 실행해서 spanning-tree 설정을 확인한다.
- 이전설정은 spanning-tree mode rapid-pvst, spanning-tree extend system-id 만 존재. - enable (엔터)
- 패스워드입력 (엔터)
- config terminal (엔터)
- spanning-tree portfast default (엔터)
- end(엔터)
- 다시 sh run(엔터)를 실행해서 spanning-tree portfast default 또는 사진처럼 spanning-tree portfast edge default 가 표기되나 확인
- exit(엔터)
- 콘솔케이블 뽑는다