<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Companion live broadcast on LEl_FENG Blog</title><link>https://blog.xpdbk.com/en/tags/companion-live-broadcast/</link><description>Recent content in Companion live broadcast on LEl_FENG Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>LEl_FENG Copyright</copyright><lastBuildDate>Sat, 25 Mar 2023 00:00:00 +0700</lastBuildDate><atom:link href="https://blog.xpdbk.com/en/tags/companion-live-broadcast/index.xml" rel="self" type="application/rss+xml"/><item><title>24-hour live broadcast using Linux</title><link>https://blog.xpdbk.com/en/posts/zhibo-24h/</link><pubDate>Sat, 25 Mar 2023 00:00:00 +0700</pubDate><guid>https://blog.xpdbk.com/en/posts/zhibo-24h/</guid><description>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/FEWF4.webp" alt="Featured image of post 24-hour live broadcast using Linux" />&lt;h1 id="24-hour-live-broadcast-using-linux">
&lt;a href="#24-hour-live-broadcast-using-linux" class="heading-anchor" aria-label="Anchor for 24-hour live broadcast using Linux">#&lt;/a>
24-hour live broadcast using Linux
&lt;/h1>
&lt;blockquote>
&lt;p>&lt;strong>TL;DR / [Geek Summary]:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Compute Democracy: Repurpose old Android phones into 24/7 streaming servers using Linux Deploy or Termux.&lt;/li>
&lt;li>Core Engine: Deploy FFmpeg as the stream pusher combined with Screen for background persistence and crash recovery.&lt;/li>
&lt;li>Traffic Optimization: Tailor RTMP scripts for platforms like Bilibili and YouTube for low-power, &amp;ldquo;digital life&amp;rdquo; style continuous broadcasting.&lt;/li>
&lt;/ul>
&lt;/blockquote>
&lt;blockquote>
&lt;p>The methods in this article
are prohibited from being abused.&lt;/p>
&lt;p>Please read the video website TOS before use, and do not violate the video website discipline.&lt;/p>
&lt;/blockquote>
&lt;h2 id="24-hour-live-broadcast-using-linux-1">
&lt;a href="#24-hour-live-broadcast-using-linux-1" class="heading-anchor" aria-label="Anchor for 24-hour live broadcast using Linux">#&lt;/a>
24-hour live broadcast using Linux
&lt;/h2>
&lt;blockquote>
&lt;p>Materials:&lt;/p>
&lt;p>A mobile phone and an unlimited network&lt;/p>
&lt;p>If you have any questions, please ask in the comment area&lt;/p>
&lt;/blockquote>
&lt;h2 id="install-ubuntu-required">
&lt;a href="#install-ubuntu-required" class="heading-anchor" aria-label="Anchor for Install Ubuntu (required)">#&lt;/a>
Install Ubuntu (required)
&lt;/h2>
&lt;h3 id="24-hour-live-broadcast-on-mobile-phone">
&lt;a href="#24-hour-live-broadcast-on-mobile-phone" class="heading-anchor" aria-label="Anchor for 24-hour live broadcast on mobile phone">#&lt;/a>
24-hour live broadcast on mobile phone
&lt;/h3>
&lt;p>Power saving and quietness are lower cost than cloud servers&lt;/p>
&lt;h3 id="linuxdeploy-root-permission-required">
&lt;a href="#linuxdeploy-root-permission-required" class="heading-anchor" aria-label="Anchor for LinuxDeploy (root permission required)">#&lt;/a>
LinuxDeploy (root permission required)
&lt;/h3>
&lt;p>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/awa.webp"
width="1280"
height="960"
srcset="https://blog.xpdbk.com/en/posts/zhibo-24h/awa_hu220ae6b7c1f01da558f818f9f531184c_271550_480x0_resize_q75_h2_box_2.webp 480w, https://blog.xpdbk.com/en/posts/zhibo-24h/awa_hu220ae6b7c1f01da558f818f9f531184c_271550_1024x0_resize_q75_h2_box_2.webp 1024w"
loading="lazy"
alt="Scenery"
class="gallery-image"
data-flex-grow="133"
data-flex-basis="320px"
>&lt;/p>
&lt;p>&lt;strong>linux deploy&lt;/strong> When setting up the environment, I consulted a lot of information on the Internet and felt that the performance of the mobile phone as a Linux server was unsatisfactory. (But it is enough for live broadcast)&lt;/p>
&lt;p>If you are a beginner in Linux, using a mobile phone as a server to learn is a good choice (encounter problems and then solve them).
There are very few phones on the market that can be rooted (if your phone is OnePlus or Xiaomi, you can try rooting)&lt;/p>
&lt;h4 id="rootable-phones">
&lt;a href="#rootable-phones" class="heading-anchor" aria-label="Anchor for Rootable phones">#&lt;/a>
Rootable phones
&lt;/h4>
&lt;p>All Xiaomi Redmi models:
Xiaomi Redmi phones have always supported the official unlock BL (usually unlocked in 7 days). After unlocking BL, you can flash the phone to get
&lt;strong>root&lt;/strong> operations, etc. Xiaomi&amp;rsquo;s unlock BL is also the most magical, supporting WeChat Alipay fingerprint payment, which is perfect.&lt;/p>
&lt;p>Samsung/OnePlus/Realme/Lenovo/Asus ROG models
These 5 major models also support the official unlock BL. Generally, the official provides unlocking methods, which are the fastest and do not require
waiting. Some are unlocked by unlocking commands, and some are unlocked by official unlocking tools. After unlocking BL, it still supports playing with the phone and flashing
operations, but after the above models unlock BL, the system no longer supports WeChat fingerprint payment, and must rely on the mask fingerprint module, or
lock BL&lt;/p>
&lt;p>Nubia Red Magic/Meizu/Black Shark/LG models
The above 5 models do not support official unlock BL, so unlocking BL and flashing the phone depends entirely on developers. Fortunately, the above models can basically be unlocked and flashed by the official BL, and then get perfect root, etc. Unofficial unlocking of BL may cause the phone to lose its warranty function. Friends who hope to get warranty need to flash back to the official system before warranty, and then re-lock BL. OPPO models that can be deeply tested. There are not many OPPO models that can be rooted at present, and they all need to pass the official &lt;strong>deep test&lt;/strong>. There is currently no unlocking and rooting method for models that are not officially open for deep testing. It is known that only these models can apply for testing, and the application time is the 1st or 15th of each month. Users who need to unlock root should apply in time. Unlocking BL will cause data to be cleared. Please back up your data before flashing. Fingerprint payment will also become invalid, the same plus model&lt;/p>
&lt;p>Support Find X/R17 Pro/Reno/Reno Ace/Find X2 series/Ace2/Reno3 series/R17 full network/K1/K3
/K5/R15x official version/Reno4, Reno4 Pro, Reno4 SE 5G/Reno5 Pro+, Reno5 Pro, Reno5&lt;/p>
&lt;blockquote>
&lt;p>Root is not standardized and becomes bricked two lines of tears&lt;/p>
&lt;/blockquote>
&lt;p>Issues and summary to pay attention to when using:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>~~ In the Linux Deploy settings, the BusyBox installation path needs to be set in Path (default /system/xbin)~~ &lt;strong>BusyBox&lt;/strong> can&amp;rsquo;t be opened after installation&lt;/p>
&lt;/li>
&lt;li>
&lt;p>When enabling the permission to mount resources on Android, pay attention to the mount point name. The name in the document is inconsistent with the name used by your own mobile phone (you can view it through the file management tool)&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Download network speed is a hard flaw. When installing the system, the foreign server connected may time out for download&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Do not download apk from the app store, go directly to github and download the latest apk&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>The above problems may cause ssh and other services to fail to start and cannot be used normally.&lt;/p>
&lt;p>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/FEWF4.webp"
width="1500"
height="504"
srcset="https://blog.xpdbk.com/en/posts/zhibo-24h/FEWF4_hu643da3caccb972df7b06a1f911bb3443_31180_480x0_resize_q75_h2_box_2.webp 480w, https://blog.xpdbk.com/en/posts/zhibo-24h/FEWF4_hu643da3caccb972df7b06a1f911bb3443_31180_1024x0_resize_q75_h2_box_2.webp 1024w"
loading="lazy"
alt="Mount SD card"
class="gallery-image"
data-flex-grow="297"
data-flex-basis="714px"
>&lt;/p>
&lt;p>SD card mounting example&lt;/p>
&lt;hr>
&lt;h4 id="use-environment">
&lt;a href="#use-environment" class="heading-anchor" aria-label="Anchor for Use environment">#&lt;/a>
Use environment
&lt;/h4>
&lt;p>Download Xshell&lt;/p>
&lt;p>A rooted mobile phone&lt;/p>
&lt;p>A computer&lt;/p>
&lt;p>Use ssh to access linux deploy&lt;/p>
&lt;hr>
&lt;h4 id="front-end-server-installation-instructions">
&lt;a href="#front-end-server-installation-instructions" class="heading-anchor" aria-label="Anchor for Front-end server installation instructions">#&lt;/a>
Front-end server installation instructions
&lt;/h4>
&lt;h5 id="install-busybox-app-on-mobile-phone">
&lt;a href="#install-busybox-app-on-mobile-phone" class="heading-anchor" aria-label="Anchor for Install BusyBox app on mobile phone">#&lt;/a>
Install BusyBox app on mobile phone
&lt;/h5>
&lt;p>&lt;a class="link" href="https://github.com/meefik/busybox/releases" target="_blank" rel="noopener"
>https://github.com/meefik/busybox/releases&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
&lt;/p>
&lt;p>&lt;del>Application interface, select install (use default configuration/system/xbin)&lt;/del> Please try it yourself. If it fails, reinstall Linux Deploy&lt;/p>
&lt;h5 id="install-linux-deploy-on-mobile-phone">
&lt;a href="#install-linux-deploy-on-mobile-phone" class="heading-anchor" aria-label="Anchor for Install linux deploy on mobile phone">#&lt;/a>
Install linux deploy on mobile phone
&lt;/h5>
&lt;p>&lt;a class="link" href="https://github.com/meefik/linuxdeploy/releases" target="_blank" rel="noopener"
>Releases · meefik/linuxdeploy · GitHub&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
&lt;/p>
&lt;h4 id="modify-linux-deploy-configuration">
&lt;a href="#modify-linux-deploy-configuration" class="heading-anchor" aria-label="Anchor for Modify linux deploy configuration">#&lt;/a>
Modify linux deploy configuration
&lt;/h4>
&lt;p>linux In the deploy interface, select the icon in the upper left corner - Configuration:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Properties&lt;/th>
&lt;th>Configuration&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Screen always on&lt;/td>
&lt;td>Select&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Lock Wi-Fi&lt;/td>
&lt;td>Select&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>CPU wake-up&lt;/td>
&lt;td>Select&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>PATH variable&lt;/td>
&lt;td>Same as the configuration in BusyBox /system/xbin&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>After modification, select &amp;ldquo;Update environment&amp;rdquo; and save the configuration.&lt;/p>
&lt;h4 id="modify-linux-installation-properties">
&lt;a href="#modify-linux-installation-properties" class="heading-anchor" aria-label="Anchor for Modify Linux installation properties">#&lt;/a>
Modify Linux installation properties
&lt;/h4>
&lt;p>Linux deploy interface, select the icon in the lower right corner:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Properties&lt;/th>
&lt;th>Configuration&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Release version GNU/Linux&lt;/td>
&lt;td>Ubuntu&lt;/td>
&lt;td>Ubuntu is the easiest to install&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Architecture&lt;/td>
&lt;td>arm64&lt;/td>
&lt;td>You can view the mobile phone CPU architecture through the icon-status in the upper right corner of Linux deploy&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Release version&lt;/td>
&lt;td>Default&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Image size&lt;/td>
&lt;td>4096&lt;/td>
&lt;td>Supports up to 4096MB&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>File system&lt;/td>
&lt;td>ext4&lt;/td>
&lt;td>Keep default&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>User name&lt;/td>
&lt;td>root&lt;/td>
&lt;td>Used when logging in with ssh&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>User password&lt;/td>
&lt;td>Set it yourself&lt;/td>
&lt;td>English uppercase and lowercase letters and numbers&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Localization&lt;/td>
&lt;td>zh_CN.UTF-8&lt;/td>
&lt;td>Chinese package is enough&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enable Allow the use of initialization system&lt;/td>
&lt;td>Disable&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enable and allow resources on Android to be mounted&lt;/td>
&lt;td>Select&lt;/td>
&lt;td>Mount it yourself according to the above method&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Mount point list&lt;/td>
&lt;td>/mnt/sdcard:/mnt&lt;/td>
&lt;td>Source name: mount point name&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Note: The name may be different for different phones, you can view it through the MT file viewer&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enable SSH server&lt;/td>
&lt;td>Select&lt;/td>
&lt;td>Default&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h4 id="install-ubuntu">
&lt;a href="#install-ubuntu" class="heading-anchor" aria-label="Anchor for Install Ubuntu">#&lt;/a>
Install Ubuntu
&lt;/h4>
&lt;p>linux deploy icon in the upper right corner-install&lt;/p>
&lt;h4 id="install-dependencies">
&lt;a href="#install-dependencies" class="heading-anchor" aria-label="Anchor for Install dependencies">#&lt;/a>
Install dependencies
&lt;/h4>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">sudo apt install ffmpeg screen
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Just press &lt;code>Y&lt;/code>&lt;/p>
&lt;h2 id="termux-universal-method-without-root">
&lt;a href="#termux-universal-method-without-root" class="heading-anchor" aria-label="Anchor for Termux (universal method without root)">#&lt;/a>
Termux (universal method without root)
&lt;/h2>
&lt;blockquote>
&lt;p>Note in advance that this method has weaker performance&lt;/p>
&lt;/blockquote>
&lt;p>Run FFmpeg on Android with Termux and Ubuntu 22. However, it requires setting up a lot of commands manually, be careful not to skip any steps. Note that this may take 10 to 20 minutes or more, depending on your technical knowledge level. Internet speed and CPU speed.&lt;/p>
&lt;h3 id="installation">
&lt;a href="#installation" class="heading-anchor" aria-label="Anchor for Installation">#&lt;/a>
Installation
&lt;/h3>
&lt;h4 id="termux">
&lt;a href="#termux" class="heading-anchor" aria-label="Anchor for Termux">#&lt;/a>
Termux
&lt;/h4>
&lt;blockquote>
&lt;p>Warning&lt;/p>
&lt;p>&lt;strong>The Play Store version of Termux is outdated and unsupported, do not use it, use the &lt;a class="link" href="https://github.com/termux/termux-app/releases/latest/" target="_blank" rel="noopener"
>Github one opens in a new window&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;p>Go to the &lt;a class="link" href="https://github.com/termux/termux-app/releases/latest/" target="_blank" rel="noopener"
>Termux Github latest version opens in a new window&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
, download &lt;code>debug_universal.apk&lt;/code>, unzip it and run it.&lt;/p>
&lt;blockquote>
&lt;p>Tips&lt;/p>
&lt;p>**If your file manager does not allow you to run APK files, install and use &lt;code>MT File Manager&lt;/code> and allow it to install third-party apps when requested. **&lt;/p>
&lt;/blockquote>
&lt;blockquote>
&lt;p>IMPORTANT WARNING&lt;/p>
&lt;p>**Once you have Termux installed, open it, pull down the Android menu to notifications, in the Termux notification, drag down until you see the following option: &lt;code>Exit | Acquire wakelock&lt;/code>, click &lt;code>Acquire wakelock&lt;/code> and allow Termux to have battery optimization exclusion permissions when asked. If you don&amp;rsquo;t do this, your performance will be much worse and Termux may be killed by Android while running in the background! **&lt;/p>
&lt;/blockquote>
&lt;h4 id="install-ubuntu-2204">
&lt;a href="#install-ubuntu-2204" class="heading-anchor" aria-label="Anchor for Install Ubuntu 22.04">#&lt;/a>
Install Ubuntu 22.04
&lt;/h4>
&lt;p>For installing Ubuntu 22. In Termux, you will need &lt;code>wget&lt;/code> and &lt;code>proot&lt;/code>, we will install them in the next step.&lt;/p>
&lt;p>Once you have Termux installed open and run the following commands (in order):&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;code>pkg update&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;code>pkg upgrade&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;code>pkg install proot wget&lt;/code>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;blockquote>
&lt;p>Tips&lt;/p>
&lt;p>&lt;strong>If you are asked to press Y/N during the update/upgrade command, just type Y and press Enter&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;p>You will then need to download the installation script using the following command:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">wget https://raw.githubusercontent.com/MFDGaming/ubuntu-in-termux/master/ubuntu.sh
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Once the script has downloaded run it:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">bash ubuntu.sh
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>You will then be asked a question, type &lt;code>Y&lt;/code> and press &lt;code>Enter&lt;/code>.&lt;/p>
&lt;p>Once the installation is complete, you can start Ubuntu with:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">./startubuntu.sh
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h4 id="install-dependencies-1">
&lt;a href="#install-dependencies-1" class="heading-anchor" aria-label="Anchor for Install dependencies">#&lt;/a>
Install dependencies
&lt;/h4>
&lt;p>First, we need to update the APT package manager repository and install dependencies.&lt;/p>
&lt;p>To update the APT repository, runRun the following command:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">apt update -y &lt;span class="o">&amp;amp;&amp;amp;&lt;/span> apt upgrade -y
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>After completion, we need to install the dependencies, the command is as follows:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">sudo apt install ffmpeg screen
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="introduction-to-ffmpeg">
&lt;a href="#introduction-to-ffmpeg" class="heading-anchor" aria-label="Anchor for Introduction to FFmpeg">#&lt;/a>
Introduction to FFmpeg
&lt;/h2>
&lt;p>&lt;a class="link" href="https://ffmpeg.org/" target="_blank" rel="noopener"
>FFmpeg&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
is a very powerful command line utility that can run on Linux distributions, Windows, and macOS, and supports multiple architectures. FFmpeg is written in C and assembly language, with powerful performance and cross-platform support.&lt;/p>
&lt;h3 id="ffmpeg-installation">
&lt;a href="#ffmpeg-installation" class="heading-anchor" aria-label="Anchor for FFmpeg Installation">#&lt;/a>
FFmpeg Installation
&lt;/h3>
&lt;p>On Linux distributions such as Ubuntu, FFmpeg is relatively simple to install. Open the terminal and run the following command to install it.&lt;/p>
&lt;h4 id="ubuntu-and-similar-distributions">
&lt;a href="#ubuntu-and-similar-distributions" class="heading-anchor" aria-label="Anchor for Ubuntu and similar distributions">#&lt;/a>
Ubuntu and similar distributions
&lt;/h4>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">sudo apt install FFmpeg
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>After FFmpeg is installed, you can enter the following command to check whether the installation is successful.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">ffmpeg --version
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/yee.webp"
width="1365"
height="767"
srcset="https://blog.xpdbk.com/en/posts/zhibo-24h/yee_hu24ae815761c94d567c243390ee0fb84e_120996_480x0_resize_q75_h2_box_2.webp 480w, https://blog.xpdbk.com/en/posts/zhibo-24h/yee_hu24ae815761c94d567c243390ee0fb84e_120996_1024x0_resize_q75_h2_box_2.webp 1024w"
loading="lazy"
alt="Test installation"
class="gallery-image"
data-flex-grow="177"
data-flex-basis="427px"
>&lt;/p>
&lt;h2 id="file-transfer">
&lt;a href="#file-transfer" class="heading-anchor" aria-label="Anchor for File transfer">#&lt;/a>
File transfer
&lt;/h2>
&lt;blockquote>
&lt;p>This is very important for whether your live broadcast can be opened&lt;/p>
&lt;p>You need to install Xftp&lt;/p>
&lt;/blockquote>
&lt;p>Then you will find an Xftp button on the far right. Click it (you must connect to SSH to use it)&lt;/p>
&lt;p>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/ffm.webp"
width="368"
height="83"
srcset="https://blog.xpdbk.com/en/posts/zhibo-24h/ffm_hu1e5964b7bee829bb947ca408bab1b339_7314_480x0_resize_q75_h2_box_2.webp 480w, https://blog.xpdbk.com/en/posts/zhibo-24h/ffm_hu1e5964b7bee829bb947ca408bab1b339_7314_1024x0_resize_q75_h2_box_2.webp 1024w"
loading="lazy"
alt="Demonstration file transfer"
class="gallery-image"
data-flex-grow="443"
data-flex-basis="1064px"
>&lt;/p>
&lt;p>&lt;strong>linuxdeploy&lt;/strong> The path is like this&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">/root
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>And &lt;strong>Termux&lt;/strong> needs to install SSHD to use SFTP&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">pkg install sshd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Run after installation&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">sshd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Set password&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">passwd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Query the mobile phone ip, based on the actual mobile phone ip&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ifconfig
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Query the current user&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">whoami
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Confirm the listening port of the ssh service&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">netstat -ntlp &lt;span class="p">|&lt;/span> grep sshd
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>The default SSH port is the &lt;code>8022&lt;/code> port of this phone&lt;/p>
&lt;p>The default path is here&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">/data/data/com.termux/files/home/ubuntu-fs/root
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="preparation-before-starting-the-live-broadcast">
&lt;a href="#preparation-before-starting-the-live-broadcast" class="heading-anchor" aria-label="Anchor for Preparation before starting the live broadcast">#&lt;/a>
Preparation before starting the live broadcast
&lt;/h2>
&lt;p>Youtube preparation&lt;/p>
&lt;p>You cannot broadcast copyrighted content on Youtube live broadcast (in simple terms, it means things that are popular on Youtube)&lt;/p>
&lt;p>For example, the content of my live broadcast is Ding Zhen, so it’s okay&lt;/p>
&lt;p>Those who are capable can click on the link to watch Snow Leopard live broadcast doge&lt;/p>
&lt;p>&lt;a class="link" href="https://www.youtube.com/watch?v=xwTnSvGj4iw" target="_blank" rel="noopener"
>I Got Smoke Ding Zhen Infinite Loop 24H*7Days - YouTube&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
&lt;/p>
&lt;p>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/tlyt.webp"
width="1365"
height="696"
srcset="https://blog.xpdbk.com/en/posts/zhibo-24h/tlyt_huf2e322d0dbffd099c39a563829b7d909_32878_480x0_resize_q75_h2_box_2.webp 480w, https://blog.xpdbk.com/en/posts/zhibo-24h/tlyt_huf2e322d0dbffd099c39a563829b7d909_32878_1024x0_resize_q75_h2_box_2.webp 1024w"
loading="lazy"
alt="Live broadcast example"
class="gallery-image"
data-flex-grow="196"
data-flex-basis="470px"
>&lt;/p>
&lt;p>Youtube live broadcast is too difficult for you&lt;/p>
&lt;h3 id="bilibili-live">
&lt;a href="#bilibili-live" class="heading-anchor" aria-label="Anchor for Bilibili Live">#&lt;/a>
Bilibili Live
&lt;/h3>
&lt;p>Account requires real name (18 years or older)&lt;/p>
&lt;p>IP address needs to be in mainland China&lt;/p>
&lt;p>Those not in mainland China can use Guiyan Accelerator (Search by yourself)&lt;/p>
&lt;p>&lt;a class="link" href="https://live.bilibili.com/24595202" target="_blank" rel="noopener"
>https://live.bilibili.com/24595202&lt;/a>
&lt;span style="white-space: nowrap;">&lt;svg width=".7em"
height=".7em" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
&lt;path d="m13 3l3.293 3.293l-7 7l1.414 1.414l7-7L21 11V3z" fill="currentColor" />
&lt;path d="M19 19H5V5h7l-2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-5l-2-2v7z"
fill="currentColor">
&lt;/svg>&lt;/span>
&lt;/p>
&lt;p>&lt;img src="https://blog.xpdbk.com/en/posts/zhibo-24h/114514.webp"
width="1364"
height="695"
srcset="https://blog.xpdbk.com/en/posts/zhibo-24h/114514_hubfcf48762608b87e66854326cb982dc1_82206_480x0_resize_q75_h2_box_2.webp 480w, https://blog.xpdbk.com/en/posts/zhibo-24h/114514_hubfcf48762608b87e66854326cb982dc1_82206_1024x0_resize_q75_h2_box_2.webp 1024w"
loading="lazy"
alt="bili Live"
class="gallery-image"
data-flex-grow="196"
data-flex-basis="471px"
>&lt;/p>
&lt;p>If you meet these conditions, please continue reading&lt;/p>
&lt;h2 id="live-script">
&lt;a href="#live-script" class="heading-anchor" aria-label="Anchor for Live script">#&lt;/a>
Live script
&lt;/h2>
&lt;blockquote>
&lt;p>Please encapsulate the following content into .sh format For example: &lt;code>535ir.sh&lt;/code>&lt;/p>
&lt;/blockquote>
&lt;p>Create a folder&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">mkdir zhibo
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Enter the folder&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">cd&lt;/span> zhibo
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Add script&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">nano zhibo.sh
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>If you don&amp;rsquo;t have NANO, install it&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">apt install nano
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="youtube-live-script">
&lt;a href="#youtube-live-script" class="heading-anchor" aria-label="Anchor for Youtube live script">#&lt;/a>
Youtube live script
&lt;/h3>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">&lt;span class="cp">#!/bin/bash
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cp">&lt;/span>&lt;span class="k">while&lt;/span> &lt;span class="nb">true&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">do&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ffmpeg -re -i &lt;span class="s2">&amp;#34;Video.mp4&amp;#34;&lt;/span> -vcodec copy -acodec copy -f flv &lt;span class="s2">&amp;#34;Server address/live code&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">done&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="bilibili-live-script">
&lt;a href="#bilibili-live-script" class="heading-anchor" aria-label="Anchor for Bilibili live script">#&lt;/a>
Bilibili live script
&lt;/h3>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">&lt;span class="cp">#!/bin/bash
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cp">&lt;/span>&lt;span class="k">while&lt;/span> &lt;span class="nb">true&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">do&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ffmpeg -re -i &lt;span class="s2">&amp;#34;Video.mp4&amp;#34;&lt;/span> -vcodec copy -acodec copy -f flv &lt;span class="s2">&amp;#34;Server address/live code&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">done&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h2 id="run-live">
&lt;a href="#run-live" class="heading-anchor" aria-label="Anchor for Run live">#&lt;/a>
Run live
&lt;/h2>
&lt;p>Add a virtual terminal&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">screen -S custom name
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">Run ./script name.sh
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Return to the virtual terminal&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">screen -r the name you just customized
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Exit from the virtual terminal&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-Bash" data-lang="Bash">&lt;span class="line">&lt;span class="cl">Press Ctrl+a d in the screen terminal
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;blockquote>
&lt;p>If you encounter any problems, please search for related issues on Bing&lt;/p>
&lt;p>Or ask questions in the comment section&lt;/p>
&lt;/blockquote></description></item></channel></rss>