4471 views|1 replies

1w

Posts

25

Resources
The OP
 

New uses for old mobile phones (7) - Automatically start the server when the phone is turned on [Copy link]

By default, termux will not run automatically, so the programs in termux will not run either. You need to run them manually, which is very inconvenient. In order to run the server automatically after the phone is turned on or restarted, we also need to install Termux:boot. This app can be installed through F-Droid as mentioned above.

The usage of Termux:boot is very simple. Write the command line of the program to be automatically run into a script file, and then save it to the ~/.termux/boot directory. The file name is not limited. For example, we install Kodexplorer to the ~/server/kodexplorer directory. In order to automatically run Kodexplorer when booting, you can follow the steps below:

  1. Create a new file with the following content:
    php -S 0.0.0.0:8001 -t ~/server/kodexplorer
  2. Save the file to the ~/.termux/boot directory with any file name, such as start-kod. If the directory does not exist, create one.

If you are not familiar with Linux commands, you can follow the steps below:

mkdir ~/.termux/boot
echo "php -S 0.0.0.0:8001 -t ~/server/kodexplorer" >~/.termux/boot/start-kod

If the operation is correct, after turning on the phone, you can access KeDao Cloud on your mobile phone through the browser.

This post is from DIY/Open Source Hardware
 

1w

Posts

25

Resources
2
 

unnecessary

This post is from DIY/Open Source Hardware
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
One week's evaluation information, delivered on time!

Hello, everyone~ My computer crashed this weekend, and I finally fixed it before Monday. ε=(ο`*))) Alas~ But because ...

Relationship between PN conduction voltage drop and current and temperature

*) , the E junction is affected by temperature, and the change in on-state voltage drop is related to Is and Ic The cond ...

[Development and application based on NUCLEO-F746ZG motor] 12. Parameter configuration - timer TIM1 configuration

In the process of controlling the servo motor, in order to make the motor rotate as you want, PWM output control must b ...

【i.MX6ULL】Driver Development 7——Key Input Capture

This post was last edited by DDZZ669 on 2021-11-9 00:04 In the previous articles, we have gradually learned about the ...

【Topmicro Intelligent Display Module】V. Interact with the screen via the network

This post was last edited by Digital Leaf on 2021-11-21 13:31 Topmicro intelligent display module supports network func ...

Embedded Qt-Realize switching between two windows

In the previous article, we introduced how to use Qt program to realize a clock and a stopwatch. In this article, we w ...

Help the national competition, read good books for free! The basic knowledge that must be mastered in preparation for the national competition is in these books~

Attention! To help the national competition, EEWorld is giving away good books for free! The basic knowledge you must ma ...

How to measure current during the SOC chip verification phase?

I used to work on ARM projects such as Rockchip and Xilinx. These solutions were all reference solutions provided by chi ...

Tesla's inventory backlog is revealed: the parking lot is full of new cars, which can be seen from space!

I just saw a piece of news saying that Tesla has a serious inventory backlog. Below are the details. What do you think a ...

Does anyone know the error problem of Pspice for ti?

I want to simulate TI's power supply, but the following error is reported. I can't find it online. Has anyone used TI's ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list