Ubuntu24.04 install BrowserBox

BrowserBox是一个用于在远程服务器上运行的 Web 浏览器。他可以嵌入到任何地方。它也是多人游戏,允许许多客户端屏幕同时共享相同的浏览会话。它轻巧且快速, 消耗最少的系统资源,同时调整其流质量以利用 AS 尽可能多的带宽可用于提供低延迟、响应迅速的体验。

提前自己准备域名解析到VPS的IP 

准备工作

更新源并安装   

ubuntu@10:~$ sudo apt update -y && sudo apt install -y git

创建目录 

ubuntu@10:~$ mkdir ~/sslcerts && cd ~/sslcerts

将域名的ssl证书复制到该目录下(将xxx改成自己的域名)
bb.xxx.top.pem改名为fullchain.pem
bb.xxx.top.key改名为privkey.pem  

ubuntu@10:~/sslcerts$ mv xxx.top.pem fullchain.pem && mv xxx.top.key privkey.pem

  开始安装

切换到根目录,克隆BrowserBox项目,开始安装(将xxx改成自己的域名,邮箱用自己的) 

ubuntu@10:~/sslcerts$ cd ~ && git clone https://github.com/BrowserBox/BrowserBox.git  
ubuntu@10:~$ cd ~/BrowserBox/  
ubuntu@10:~/BrowserBox$ ./deploy-scripts/wait_for_hostname.sh bb.xxx.top  
ubuntu@10:~/BrowserBox$ yes | ./deploy-scripts/global_install.sh bb.xxx.top xxx@163.com  

 将~/sslcerts目录下的fullchain.pem、privkey.pem复制到/usr/local/share/dosyago/sslcerts

ubuntu@10:~/BrowserBox$ cd ~/sslcerts
ubuntu@10:~/sslcerts$ sudo cp fullchain.pem  /usr/local/share/dosyago/sslcerts/
ubuntu@10:~/sslcerts$ sudo cp privkey.pem  /usr/local/share/dosyago/sslcerts/

将设置 BrowserBox 绑定到端口 9999,并且将加密链接写入my.login.link.txt

ubuntu@10:~/sslcerts$ setup_bbpro --port 9999 > my.login.link.txt

安装完毕

bbpro将启动 BrowserBox  

ubuntu@10:~/sslcerts$ bbpro 
v20.16.0 is already installed.
Now using node v20.16.0 (npm v10.8.1)
Passwordless sudo is available.
Finding bbpro installation...
Found bbpro at: /usr/local/share/dosyago/BrowserBox
Tuning system performance for realtime...Tuned!
Running bbpro for user ubuntu...
Install dir:  /usr/local/share/dosyago/BrowserBox
The user ubuntu is NOT a member of the renice group.
This user (ubuntu) cannot run renice.
The ability to run renice (by belonging to the renice group created by BBPRO) is necessary for proper audio functioning.
Trying to add renice capability for ubuntu...
The user has sudo -n access.
You may need to log out and log in again, or restart your shell/terminal, for renice capability take effect.
Shutting down PA
E: [pulseaudio] main.c: Failed to kill daemon: No such process
/usr/sbin/tuned-adm
Tuning for low latency high performance...
/home/ubuntu/.nvm/versions/node/v20.16.0/bin/pm2
Finding bbpro config...
Found bbpro at: /home/ubuntu/.config/dosyago/bbpro
bbpro has been setup. Starting...
E: [pulseaudio] main.c: Failed to kill daemon: No such process
Starting viewfinder service cluster as ubuntu
Using /home/ubuntu/.nvm/versions/node/v20.16.0/bin/node
Starting audio service...

                        -------------

__/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
 _\/\\\/\\\_\/\\\\\\________/\\\\\\__/\\\///\\\___
  _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
   _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
    _\/\\\/____\/\\\__\///\\\/___\/\\\________/\\\//_____
     _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
      _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
       _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
        _\///______________\///______________\///__\///__


                          Runtime Edition

        PM2 is a Production Process Manager for Node.js applications
                     with a built-in Load Balancer.

                Start and Daemonize any application:
                $ pm2 start app.js

                Load Balance 4 instances of api.js:
                $ pm2 start api.js -i 4

                Monitor in production:
                $ pm2 monitor

                Make pm2 auto-boot at server restart:
                $ pm2 startup

                To go further checkout:
                http://pm2.io/


                        -------------

[PM2] Spawning PM2 daemon with pm2_home=/home/ubuntu/.pm2
[PM2] PM2 Successfully daemonized
[PM2] Starting /usr/local/share/dosyago/BrowserBox/scripts/global/start_audio.sh in fork_mode (1 instance)
[PM2] Done.
┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0  │ start_audio    │ default     │ 9.1.0   │ fork    │ 29477    │ 0s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
└────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Starting main bbpro service...
Install dir: /usr/local/share/dosyago/BrowserBox
[PM2] Starting /usr/local/share/dosyago/BrowserBox/scripts/basic-bb-main-service.sh in fork_mode (1 instance)
[PM2] Done.
┌────┬──────────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name                     │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├────┼──────────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 1  │ basic-bb-main-service    │ default     │ 9.1.0   │ fork    │ 29530    │ 0s     │ 0    │ online    │ 0%       │ 3.5mb    │ ubuntu   │ disabled │
│ 0  │ start_audio              │ default     │ 9.1.0   │ fork    │ 29477    │ 0s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
└────┴──────────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Starting secure remote devtools service...
[PM2] Starting /usr/local/share/dosyago/BrowserBox/src/services/pool/crdp-secure-proxy-server/devtools-server.sh in fork_mode (1 instance)
[PM2] Done.
┌────┬──────────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name                     │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├────┼──────────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 1  │ basic-bb-main-service    │ default     │ 9.1.0   │ fork    │ 29530    │ 0s     │ 0    │ online    │ 0%       │ 3.5mb    │ ubuntu   │ disabled │
│ 2  │ devtools-server          │ default     │ 8.1.0   │ fork    │ 29675    │ 0s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
│ 0  │ start_audio              │ default     │ 9.1.0   │ fork    │ 29477    │ 0s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
└────┴──────────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Starting secure document viewer service...
Finding bbpro installation...
Found bbpro at: /usr/local/share/dosyago/BrowserBox
Install dir: /usr/local/share/dosyago/BrowserBox
Install dir: /usr/local/share/dosyago/BrowserBox
Hostname: bb.xxx.top
cat: /home/ubuntu/.config/dosyago/bbpro/chai/chai-pid.txt: No such file or directory
Could not notify process of restart. Perhaps it is not running?
[PM2][ERROR] Process or Namespace run-docspark not found
[PM2] Starting /usr/local/share/dosyago/BrowserBox/src/services/pool/chai/scripts/run-docspark.sh in fork_mode (1 instance)
[PM2] Done.
┌────┬──────────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name                     │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├────┼──────────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 1  │ basic-bb-main-service    │ default     │ 9.1.0   │ fork    │ 29530    │ 1s     │ 0    │ online    │ 0%       │ 3.5mb    │ ubuntu   │ disabled │
│ 2  │ devtools-server          │ default     │ 8.1.0   │ fork    │ 29675    │ 1s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
│ 3  │ run-docspark             │ default     │ 8.1.0   │ fork    │ 29945    │ 0s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
│ 0  │ start_audio              │ default     │ 9.1.0   │ fork    │ 29477    │ 2s     │ 0    │ online    │ 0%       │ 3.4mb    │ ubuntu   │ disabled │
└────┴──────────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

 获取链接浏览器,并访问

ubuntu@10:~/sslcerts$ cat my.login.link.txt
https://bb.xxx.top:9999/login?token=***

 stop_bbpro将停止 BrowserBox  

ubuntu@10:~/sslcerts$ stop_bbpro  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Gristle_egg

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值