Openwrt开发环境搭建
开发环境:Ubuntu 18.04.2 LTS amd64
openwrt官网:https://openwrt.org/
1.设置root密码 sudo passwd root "123456"
2.安装net-tools,openssh-server,vim,samba
sudo apt-get install -y net-tools openssh-server vim samba
2.1 配置服务文件、修改/etc/samba/smb.conf 文件,添加 smb用户 sudo vim /etc/samba/smb.conf
在smb.conf后面添加下面内容:
[work] path = /home/work
available = yes
browseable = yes
publie = yes
writable = yes
valid users = ubuntu
2.2、添加 smb 用户(ubuntu)和密码 smbpasswd -a ly "123456"
3.更换apt-get软件源
https://git.openwrt.org/?p=openwrt/openwrt.git
git clone git://git.openwrt.org/openwrt/openwrt.git
apt-get install -y gcc g++ binutils bzip2 flex python perl make grep unzip gawk subversion zlib1g-dev libncurses5-dev bison git autoconf asciidoc gettext openssl libtext-unidecode-perl sharutils texinfo
./scripts/feeds update -a
./scripts/feeds install -a

浙公网安备 33010602011771号