Synology Entware 설치

python에서 pyCurl 모듈 을 사용하기 위해 설치하던 중 dependency 오류가 발생해서 몇 개의 라이브러리를 설치해야하는 데, 이를 위해서 Entware 를 설치하기로 했다.

참고한 블로그는 https://keestalkstech.com/2018/03/install-nano-with-entware-on-synology-nas-dsm6/ 를 참고하였다. 거의 블로그 그대로 따라 복붙하고 하면 잘 되는 것 같다.

먼저, Entware 설치 디렉토리를 세팅한다.

# create a home for Entware
mkdir -p /volume1/@Entware/opt
# go on as root
sudo -i
# remove a previous install
rm -rf /opt
# link the folders
ln -sf /volume1/@Entware/opt /opt
echo "Done!"

맞는 아키텍쳐에 맞게 설치하는 스크립트를 다운로드 한다. 나는 xpenology라 x64를 다운로드 했다.

  • armv5: wget -O - http://bin.entware.net/armv5sf-k3.2/installer/generic.sh | /bin/sh
  • armv7: wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | /bin/sh
  • armv8: wget -O - http://bin.entware.net/aarch64-k3.10/installer/generic.sh | /bin/sh
  • x64: wget -O - http://bin.entware.net/x64-k3.2/installer/generic.sh | /bin/sh

설치 스크립트 실행하는 아래 코드를 바로 복붙한다.

# leave root
exit;
# remove previous file
rm entware-startup.sh 2> /dev/null
# write the startup file
printf "#!" >> entware-startup.sh
echo "/bin/sh" >> entware-startup.sh
echo "" >> entware-startup.sh
echo "case $1 in" >> entware-startup.sh
echo "    start)" >> entware-startup.sh
echo "    mkdir -p /opt" >> entware-startup.sh
echo "    mount -o bind /volume1/@Entware/opt /opt" >> entware-startup.sh
echo "    /opt/etc/init.d/rc.unslung start" >> entware-startup.sh
echo "    ;;" >> entware-startup.sh
echo "    stop)" >> entware-startup.sh
echo "    ;;" >> entware-startup.sh
echo "esac" >> entware-startup.sh
# copy the startup file
sudo mv entware-startup.sh /usr/local/etc/rc.d/entware-startup.sh
echo "Done!"

설치후엔 profile에 entware 등록하고 재부팅. 참고로 xpenology 는 reboot해도 재부팅이 안되므로 물리적으로 재부팅해줘야한다.

sudo -i
echo "" >> /etc/profile;
echo ". /opt/etc/profile" >> /etc/profile
reboot

이후에 패키지 설치는 아래와 같이 한다.

sudo opkg install nano


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *