找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 11001|回复: 19

[N1盒子] 小白说N1安装Entware(不急的等无灯大神的固件吧!到时省心省力)

[复制链接]
本帖最后由 113906217 于 2018-6-7 17:04 编辑

本人小白,首先感谢webpad做出的巨大贡献!这是我在精简版6.22下(作者rush)安装Entware时的命令与文件

安装aria2与samba命令直接集成在了alternative.sh脚本里面了(entware官网下载就自己添加了小白步骤),直接下载上传最好。

首先用winscp上传解压后的alternative.sh到N1电视盒(T1应该也适用)随意位置
在SSH下给予上传文件alternative.sh命令,随便位置 chmod 777 alternative.sh
执行sh alternative.sh
等执行完之后,应该entware环境已安装完毕,其中有一条ln -s /system/etc/resolv.conf /opt/etc/resolv.conf 命令 这个需要自己到/system/etc下建立一个同名文件 内容是nameserver 8.8.8.8

其中包括了samba与aria2直接解压后覆盖同名文件就好
aria2直接修改aria2.conf里的下载文件位置dir=与口令牌rpc-secret=XXX(后面你修改的XXX需要用到的)

上传entware.sh(我的开机脚本包括了entware环境 aria2 samba自启)到随意不会重启丢失的位置,最好和我一样放到 /data/opt安装文件夹(alternative.sh执行时候是安装在/data/opt下的)后面用的到

至此应该都没问题了,只要在开机脚本 lazy-start.sh里加上/system/bin/sh /data/opt/entware.sh 这条命令就好了。找不到开机脚本请翻rush帖子

本人小白,这个安装过程应该也是比较直白的,所以有其它问题的够呛能回答,多在本论坛搜索吧~!






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

谢谢,来的很及时。 能不能再写个 N1(webpad 2)下装entware的教程?  发表于 2018-6-7 17:26
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
本帖最后由 113906217 于 2018-6-7 15:20 编辑

登陆aria2前端 aria2c.com 修改自己成自己的登陆地址http://token:xxx@盒子IP:6800/jsonrpc


以下是alternative.sh内容

#!/bin/sh
echo "Info: 建立opt文件夹..."
/system/bin/mount -o rw,remount /
mkdir /opt
mkdir /bin
mkdir /data/opt
ln -s /system/bin/sh /bin/sh
/system/bin/mount -o ro,remount /
mount -o bind /data/opt /opt
mount -o rw,remount rootfs /
ln -s /opt/tmp /tmp
unset LD_LIBRARY_PATH
unset LD_PRELOAD

echo "Info: Checking for prerequisites and creating folders..."

if [ -d /opt ]
then
    echo "Warning: Folder /opt exists!"
else
    mkdir /opt
fi
# no need to create many folders. entware-opt package creates most
for folder in bin etc lib/opkg tmp var/lock
do
  if [ -d "/opt/$folder" ]
  then
    echo "Warning: Folder /opt/$folder exists!"
    echo "Warning: If something goes wrong please clean /opt folder and try again."
  else
    mkdir -p /opt/$folder
  fi
done

echo "Info: Opkg package manager deployment..."
DLOADER="ld-linux-aarch64.so.1"
URL=http://bin.entware.net/aarch64-k3.10/installer
wget $URL/opkg -O /opt/bin/opkg
chmod 755 /opt/bin/opkg
wget $URL/opkg.conf -O /opt/etc/opkg.conf
wget $URL/ld-2.27.so -O /opt/lib/ld-2.27.so
wget $URL/libc-2.27.so -O /opt/lib/libc-2.27.so
wget $URL/libgcc_s.so.1 -O /opt/lib/libgcc_s.so.1
wget $URL/libpthread-2.27.so -O /opt/lib/libpthread-2.27.so
cd /opt/lib
chmod 755 ld-2.27.so
ln -s ld-2.27.so $DLOADER
ln -s libc-2.27.so libc.so.6
ln -s libpthread-2.27.so libpthread.so.0
ln -s /system/etc/resolv.conf /opt/etc/resolv.conf

echo "Info: Basic packages installation..."
/opt/bin/opkg update
/opt/bin/opkg install busybox
/opt/bin/opkg install entware-opt
/opt/bin/opkg install samba36-server
/opt/bin/opkg install aria2

# Fix for multiuser environment
chmod 777 /opt/tmp

# now copy default files - it is an alternative installation
cp -f /opt/etc/passwd.1 /opt/etc/passwd
cp -f /opt/etc/passwd.1 /opt/etc/samba/smbpasswd
cp -f /opt/etc/group.1 /opt/etc/group
cp -f /opt/etc/shells.1 /opt/etc/shells

if [ -f /etc/localtime ]
then
    ln -sf /etc/localtime /opt/etc/localtime
fi

echo "Info: Congratulations!"
echo "Info: If there are no errors above then Entware was successfully initialized."
echo "Info: Add /opt/bin & /opt/sbin to your PATH variable"
echo "Info: Add '/opt/etc/init.d/rc.unslung start' to firmware startup script for Entware services to start"
echo ""
echo "This is an alternative Entware installation. We recomend to install and setup Entware version of ssh server"
echo "and use it instead of a firmware supplied one. You can install dropbear or openssh as an ssh server"


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Entware就是比optware新一点,Entware平台上的transmission新一点,2.92版吧,但是,没啥用,不支持https的种子,也许是我不会玩,反正,https种子没流量。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主,为啥附件权限是101啊,不能下载啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

标记一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

附件权限不对,我们下不了

点评

实在是抱歉 我没发过帖子……  详情 回复 发表于 2018-6-7 17:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 113906217 于 2018-6-7 17:06 编辑
asdf11048 发表于 2018-6-7 16:53
附件权限不对,我们下不了

实在是抱歉  我没发过帖子……现在试试  或者直接看2L直接复制创建文件一样的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

好了,现在能下了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

nfs服务呢?很需要谢谢。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

YYF已经有下载版专用固件了,可以参考一下。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢,来的很及时。 能不能再写个 N1(webpad 2)下装entware的教程?

点评

跟这个步骤应该是一样的。W大没开SSH adb连接后,可以开启optware的SSH /data/opt/etc/dropbear & 就可以winscp连接22端口了 开机启动文件在/system/bin/webpadinit.sh  详情 回复 发表于 2018-6-8 22:04
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

支持下!感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主,N1按照你的方法安装顺利,只是有个问题请教,盒子的环境变量文件在哪?如何把/opt/bin 添加进去?
谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 113906217 于 2018-6-8 22:20 编辑
blackantt 发表于 2018-6-7 17:25
谢谢,来的很及时。 能不能再写个 N1(webpad 2)下装entware的教程?

跟这个步骤应该是一样的。W大没开SSH

adb连接后,可以开启optware的SSH

/data/opt/etc/dropbear &

就可以winscp连接22端口了   账户root 原始密码toor

开机启动文件在/system/bin/webpadinit.sh
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

113906217 发表于 2018-6-8 22:04
跟这个步骤应该是一样的。W大没开SSH

adb连接后,可以开启optware的SSH

w大官2的不能用,安装后会出问题,w发的自带ssh,和sb,安装了就会导致原始的失效,要改下安装文件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 00:27

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表