Termux Ubuntu/Debian Install memo
Termux Ubuntu/Debian Install memo
0.概要
Termux-Ubuntu/Debianについて、まとめた。
Ubuntuのほうは、参考URLのとおりでインストールできたが、Debianのほうは、そのままではインストールできず、以下の方法でインストールした。
1.Termux-Ubuntu
pkg install wget proot
mkdir -p ~/jails/ubuntu
cd ~/jails/ubuntu
wget https://raw.githubusercontent.com/Neo-Oli/termux-ubuntu/master/ubuntu.shls
bash ubuntu.sh
./start-ubuntu
cat /etc/lsb-release
apt-get install tzdata
#dpkg-reconfigure tzdata
apt-get install net-tools
apt-get install wget git
apt-get install build-essential
2.Termux-Debian
mkdir jails
cd jails
mkdir debian
cd debian
pkg install debootstrap proot wget
# Check your architecture with:
uname -m
aarch64
debootstrap --arch=arm64 stable stable http://ftp.debian.org/debian/
# ARCH is arm64 for aarch64, etc.
# uname-m が以下の場合:
#x86_64
#sudo debootstrap --arch=amd64 stable stable http://ftp.debian.org/debian/
mkdir binds
nano start-debian.sh
# 以下のスクリプトを、start-debian.shとして作成する:
<-------------------------------------------------------
#!/data/data/com.termux/files/usr/bin/bash
cd $(dirname $0)
## unset LD_PRELOAD in case termux-exec is installed
unset LD_PRELOAD
command="proot"
command+=" --link2symlink"
command+=" -0"
command+=" -r stable"
if [ -n "$(ls -A binds)" ]; then
for f in binds/* ;do
. $f
done
fi
command+=" -b /dev"
command+=" -b /proc"
## uncomment the following line to have access to the home directory of termux
#command+=" -b /data/data/com.termux/files/home:/root"
## uncomment the following line to mount /sdcard directly to /
#command+=" -b /sdcard"
command+=" -w /root"
command+=" /usr/bin/env -i"
command+=" HOME=/root"
command+=" PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games"
command+=" TERM=$TERM"
command+=" LANG=C.UTF-8"
command+=" /bin/bash --login"
com="$@"
if [ -z "$1" ];then
exec $command
else
$command -c "$com"
fi
>-------------------------------------------------------
chmod a+x start-debian.sh
./start-debian.sh
# 以下からDebianを動作する
apt-get update
apt-get upgrade
cat /etc/lsb-release
apt-get install tzdata
#dpkg-reconfigure tzdata
apt-get install net-tools
apt-get install wget git
apt-get install build-essential
# 以下、任意のものをインストールする:
apt-get install pulseaudio
apt-get install xorg gnome vnc4server
vnc4server
3.参考URL
https://wiki.termux.com/wiki/Debian
Debian
https://wiki.termux.com/wiki/Ubuntu
Ubuntu
以上
| 固定リンク
「linux」カテゴリの記事
- platfomioを使ってnaitive(linux/windows)のプログラムをビルドする方法(2021.03.10)
- micro:bit Yotta開発ツール(linux版)(2021.01.09)
- PlatformIOをRaspberryPi4で動かしてみる(実験)(2020.10.20)
- headless RaspberryPiインストール方法(v2)(2020.10.20)
- wio-terminalのファームウェア・アップデートについて(linux版)(2020.10.15)
「Termux」カテゴリの記事
- nodeのcanvasでのエラー(Canvas is not a constructor)解消方法(2019.01.06)
- Termux-ubuntu Unixbench(2018.12.01)
- prootでubuntuを動かす(2018.11.17)
- Termux-Ubuntu Trouble Shoot#1(groups: cannot find name for group ID xxxxx)(2018.11.11)
- LinuxBrew install memo(2018.11.11)
この記事へのコメントは終了しました。
コメント