[feature] aarch64 support and bugfix
This commit is contained in:
parent
390b1b1e1d
commit
b1c271c0e4
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
sudo apt update
|
||||
sudo apt upgrade --fix-missing
|
||||
sudo apt install build-essential automake pkg-config software-properties-common curl -y
|
||||
sudo apt upgrade --fix-missing -y -q
|
||||
sudo apt install build-essential automake pkg-config software-properties-common curl -y -q
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
sudo add-apt-repository ppa:fish-shell/release-3 -y
|
||||
sudo apt update
|
||||
sudo apt install fish -y
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
ARCH=$(lscpu | head -n 1 | awk '{print $2}')
|
||||
if [ ! -e /etc/apt/sources.bak ]; then
|
||||
sudo mv /etc/apt/sources.list /etc/apt/sources.bak
|
||||
|
||||
CURRENT_CODENAME=$(lsb_release -c | cut -f2)
|
||||
SOURCE_CODENAME=$(head -n 1 $DIR/sources.list | cut -d' ' -f3)
|
||||
if [ "$CURRENT_CODENAME" != "$SOURCE_CODENAME" ]; then
|
||||
sudo bash -c "cat $DIR/sources.list | sed s/$SOURCE_CODENAME/$CURRENT_CODENAME/g > /etc/apt/sources.list"
|
||||
else
|
||||
sudo cp $DIR/sources.list /etc/apt/
|
||||
fi
|
||||
SOURCE_CODENAME=$(head -n 1 $DIR/sources.$ARCH.list | cut -d' ' -f3)
|
||||
sudo bash -c "sed s/$SOURCE_CODENAME/$CURRENT_CODENAME/g $DIR/sources.$ARCH.list > /etc/apt/sources.list"
|
||||
fi
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
sudo apt install libevent-dev libncurses5-dev -y
|
||||
|
||||
TMUX_VER=3.1b
|
||||
curl -L https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz -o /tmp/tmux.tar.gz
|
||||
cd /tmp/
|
||||
tar zxvf tmux.tar.gz
|
||||
cd tmux-$TMUX_VER
|
||||
#curl -L https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz -o /tmp/tmux.tar.gz
|
||||
curl -L https://gitee.com/klesh/tmux/repository/archive/$TMUX_VER?format=tar.gz -o /tmp/tmux.tar.gz
|
||||
mkdir -p /tmp/tmux
|
||||
tar zxvf /tmp/tmux.tar.gz -C /tmp/tmux
|
||||
pushd /tmp/tmux
|
||||
[ -f autogen.sh ] && sh autogen.sh
|
||||
./configure && make
|
||||
sudo make install
|
||||
cd
|
||||
rm -rf /tmp/tmux-$TMUX_VER
|
||||
rm -rf /tmp/tmux
|
||||
rm -rf /tmp/tmux.tar.gz
|
||||
popd
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
sudo add-apt-repository ppa:jonathonf/vim -y
|
||||
sudo apt update
|
||||
sudo apt install -y vim
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
|
||||
echo '=================== Replace sources.list ===================='
|
||||
$DIR/install-sources.sh
|
||||
echo '=================== Installing basic packages ===================='
|
||||
$DIR/install-base.sh
|
||||
echo '=================== Installing fish shell ===================='
|
||||
$DIR/install-fish.sh
|
||||
echo '=================== Installing vim ===================='
|
||||
$DIR/install-vim.sh
|
||||
echo '=================== Installing tmux ===================='
|
||||
$DIR/install-tmux.sh
|
||||
|
|
8
ubuntu/sources.aarch64.list
Normal file
8
ubuntu/sources.aarch64.list
Normal file
|
@ -0,0 +1,8 @@
|
|||
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
|
||||
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
|
||||
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
|
||||
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
|
||||
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
|
||||
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
|
||||
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
|
||||
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
|
Loading…
Reference in New Issue
Block a user