首页 > 其他分享 >Termux - Debian

Termux - Debian

时间:2022-11-12 13:23:39浏览次数:35  
标签:superupdate Termux apt etc install https Debian filebrowser

基础配置

1,termux换源
	termux-change-repo	# 选择清华源

2,更新源
	apt update && apt upgrade -y

3,安装
	apt install openssh -y
    # 远程连接,执行sshd,可以putty连接,便于操作(IP:8022)
    # whoami	查看用户ming
    # passwd	设置该用户密码
	apt install proot proot-distro -y
    proot-distro list	# 查看可安装的linux
    proot-distro install debian	# 登陆debian

4,debian换源
	cp /etc/apt/sources.list /etc/apt/sources.list.bak	# 备份
	sed -i "s@http://deb.debian.org@https://mirrors.163.com@g" /etc/apt/sources.list
	使用的https源,则需要安装 apt install apt-transport-https

5,更新源
	apt update
	apt upgrade

文件服务器

1,下载文件服务器
wget https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-arm64-filebrowser.tar.gz

2,解压,移动
	tar -xvf linux-arm64-filebrowser.tar.gz
	mv filebrowser /usr/sbin

3,创建文件夹和配置文件
	mkdir /etc/filebrowser/
	touch /etc/filebrowser/config.json
	# 配置
	cat > /etc/filebrowser/config.json << EOF
	{
		"address":"0.0.0.0",
		"database":"/etc/filebrowser/filebrowser.db",
		"log":"/var/log/filebrowser.log",
		"port":8800,
		"root":"/",
		"username":"admin"
	}
	EOF
	# 可视块编辑 ctrl + v

# 参数
	address:监听地址
	database:数据库地址
	log:日志文件路径
	port:需要监听的端口
	root:需要读取哪个目录下的文件
	username:用户名	# 默认密码admin

4,运行
	1,常规运行
	filebrowser -c /etc/filebrowser/config.json
	2,后台运行
	nohup filebrowser -c /etc/filebrowser/config.json &
	nohup filebrowser -c /etc/filebrowser/config.json  >>/home/nohup-log/filebrowser.log 2>&1 &

5,访问
	IP:8800

换源脚本

安装前置
apt-get install -y wget && apt-get install -y ca-certificates

脚本下载
	海外下载
	wget https://raw.githubusercontent.com/oooldking/script/master/superupdate.sh
	国内加速下载
	wget https://ghproxy.com/https://raw.githubusercontent.com/oooldking/script/master/superupdate.sh

运行换源脚本(任选一个)
	bash superupdate.sh cn
	bash superupdate.sh 163
	bash superupdate.sh aliyun
还原
	bash superupdate.sh restore

标签:superupdate,Termux,apt,etc,install,https,Debian,filebrowser
From: https://www.cnblogs.com/yhh5319/p/16883542.html

相关文章

  • Debian上安装java
    1.root@VM-12-7-debian:~#aptupdate2.root@VM-12-7-debian:~#apt-getinstalldefault-jdk,出现needrestartisbeingskippedsincedpkghasfailed报错,使用 sys......
  • 阿里云经典网络Debian 11 启动非常慢
    有一台阿里云经典网络的实例。系统太老了,重装了Debian11,但是启动非常慢,要5分钟才能开机,简直离谱。root@AliYun:~#systemd-analyzeblame5min3.954scloud-init.servi......
  • debian 默认使用命令行启动
    打开defaultgrub配置$sudovi/etc/default/grub修改以下3处内容找到行GRUB_CMDLINE_LINUX_DEFAULT="quiet",加#注释掉这一行配置,修改为#GRUB_CMDLINE_LINUX_DEFAU......
  • 使用SSH登录Debian报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
    [email protected],提示出下报错信息@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED!@@......
  • Debian 11 安装snap(snapd)之后使用apt(apt-get)安装软件报错"E:Sub-process /usr/bin
    1问题描述与分析为了安装notepad++,安装先安装了snap,貌似失败了,又安装了snapd,sudoaptinstallsnapd#sudoaptinstallsnap然后再用aptinstall时就报错:dpkg-dev......
  • 【个人笔记】VBox7安装Debian网络下载慢问题处理
    使用镜像安装Debian的过程中,会安装一些常用的软件包。但在安装软件包的阶段,默认情况下会通过网络进行下载。即使配置了国内的镜像,但是由于网络问题依然很慢。这个时候需要......
  • Termux-连接xshell
    1、安装ssh即可termux的安装命令为:"pkginstallopenssh"2、termux的ssh默认端口是8022,shell中也要设置端口为80223、安装好ssh后设置密码,命令行直接输入:"passw......
  • Linux(Debian11 Ubuntu20.04 Gnome) 4k 60hz 显示器 闪屏
    显示器没问题,线没问题,是CPU驱动的bug。困扰了我好几年的问题,只要是4k@60Hz,就随机频繁的闪屏,因此一直无法在4k@60Hz下使用Linux桌面。直到我发现了这样一个帖子:帖子中......
  • Debian玩红警2
    Debian玩红警21.安装winesudoaptupdatesudoaptinstallwinewine--versionwine-5.0.3(Debian5.0.3-3)2.安装wine-mono和wine-geckowine在初次安装并在终端......
  • Debian安装 WineHQ 安装包
    https://wiki.winehq.org/Debian_zhcnWineHQ源仓库的密钥于2018-12-19改变过。如果您在此之前下载添加过该密钥,您需要重新下载和添加新的密钥并运行sudoaptupdate......