Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Install BT (aaPanel) in Oracle ARM-based Virtual Instance with Oracle Linux 8

7/24/2021

0 Comments

 
Install BT (aaPanel) in Oracle ARM-based Virtual Instance with Oracle Linux 8

Oracle’s newly exited ARM can actually have up to 4 cores, 24G memory, 4G bandwidth, and 200G storage instances. But the CPU is an arm architecture, so in actual use, when installing the pagoda panel, we encountered some problems and could not complete the installation. Actually, it was caused by associated software.


Many people will install Debian through DD, but this is risky. Many people are deleted by Oracle because they are detected to be idle by the system. The DD system will cause some detection functions to fail, so this is not recommended. The following is the default installation under Oracle Linux 8.


Update System


First update the system software package:


Update Oracle Linux 8 system to latest:

 [root@arm1 ~]# yum upgrade -y && yum update -y


Download & Install aaPanel (BT)

For aaPanel:

InstallationView detailed tutorial >>
Centos / Oracle Linux:yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel
Ubuntu/Deepin:wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel
Debian:wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel
For BT: (Chinese Version of aaPanel)
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh



Install all dependencies


To install LNMP software, you will need some dependencies installed first. 

For example, to Install LNMP (Nginx2.2.4 ,PHP 8.0, Mysql 5.7)


  • yum install gcc build-essential
  • yum install gcc gcc-c++ autoconf automake
  • yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel


If you got a message to say:
No match for argument: build-essential
Error: Unable to find a match: build-essential


We can try :
  • yum install gcc gcc-c++ make

This works equivalent of build-essential in CentOS.




You might also need following package, Libiconv

  • wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
  • tar zxvf libiconv-1.13.1.tar.gz
  • cd libiconv-1.13.1
Configure libiconv:

  • ./configure -prefix=/usr/local --build arm-pc-linux
Compile and install:

  • make
  • make install

Create a link to Libiconv (创建文件链接到Libiconv库)

  • ln -s /usr/local/lib/libiconv.so /usr/lib
  • ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2



If install Nginx 1.21 through aaPanel or BT panel, no matter using compiled method or fast method, you will meet Error: The HTTP image filter module requires the GD library, the easy fix is to install gd and gd-devel packages.
  • yum install gd gd-devel





Install LNMP


Log in to aaPanel using the link and credentials showing in the command line:


[root@ocp3arm1oracle ~]# bt
===============aaPanel CLI==================
(1) Restart panel                           (8) Change panel port
(2) Stop panel                              (9) Clear panel cache
(3) Start panel                             (10) Clear login limit
(4) Reload panel                            (11) Cancel entrance limit
(5) Change panel password                   (12) Cancel domain binding limit
(6) Change panel username                   (13) Cacel IP access limit
(7) Forcibly change MySQL root password     (14) View panel default info
(22) Display panel error log                (15) Clear system rubbish
(23) Turn off BasicAuth authentication      (16) Repair panel (check for errors and update panel files to the latest version)
(24) Turn off Google Authenticator          (17) Set log cutting on/off compression
(25) Set whether to back up the panel automatically  (18) Set whether to save a historical copy of the file
(26) Keep/Remove local backup when backing up to cloud storage
(0) Cancel
===============================================
Pls enter command number:14
===============================================
EXECUTING
===============================================
==================================================================
aaPanel default info!
==================================================================
aaPanel Internet Address: http://120.28.16.109:8888/2e939bb
aaPanel Internal Address: http://10.0.0.243:8888/2e939bb
username: nkbrpcr
password: a211621
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
==================================================================
[root@ocp3arm1oracle ~]#


After you logged in Web Gui, it will prompt you for recommended software packages, either LNMP or LAMP.

If there is any installation for LNMP not completed, you will need to install dependencies following the previous section's instruction. 




Eventually, you will have folloing packages installed. 





Install LNMP



















Enable BBR

Google developed a TCP Congestion Control Algorithm (CCA) called TCP Bottleneck Bandwidth and RRT (BBR) that overcomes many of the issues found in both Reno and CUBIC (the default CCAs). This new algorithm not only achieves significant bandwidth improvements, but also lower latency. TCP BBR is already employed with google.com servers, and now you can make it happen--so long as your Linux machine is running kernel 4.9 or newer.

BBR is a new TCP congestion control algorithm that uses estimated congestion rather than loss to determine when to back off.

wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh

Check if BBR has been installed and started:


sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
sysctl net.core.default_qdisc
lsmod | grep bbr
ps -ef | grep bbr



References

  • 甲骨文ORACLE CLOUD ARM实例宝塔下NGINX+ PHP+MYSQL的安装





via Blogger https://ift.tt/3BB0eVp
July 24, 2021 at 07:07PM Cloud
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org