Skip to content

Install XX Net (lazy script) on Merlin firmware routers with USB ports

Michael-X-Net edited this page Feb 3, 2023 · 1 revision

I wrote a lazy script that includes XX-Net and Entware-Ng together, the tutorial is as follows. The lazy script will automatically modify the XX-Net automatic boot and other configurations of the router. After the installation is complete, users only need to directly open the configuration page and continue to configure according to XX-Net Wiki. Please make sure to format Jffs and U disk as ext2/3/4, otherwise, the script cannot be guaranteed to run smoothly.

  1. Prepare a U disk with a capacity of at least 64M. If there is a tool, you can format the file system in Ext3 or Ext2 on the PC first, and then clear the U disk. Insert it into any USB port of R6300V2. If you still use the router as a NAS, it is best not to plug it into the USB3.0 port. After inserting, the router's system should automatically mount the U disk.
  2. Go to the advanced system settings of the router and open "Enable JFFS Partition", "Enable JFFS custom scripts and configs" and "Enable SSH", and restart after applying the settings.
  3. After the reboot is complete, connect to the R6300V2 via Telenet or putty. First enter the mount command to check the status of the U disk Mount. If the U disk has been formatted as ext3 or ext2, then skip this step directly: if the U disk is displayed as non-ext3 or ext2, first enter umount /dev/sda1 or sdb1 (see which system assigns your U disk to) Then enter mkfs.ext3 /dev/sda1 or sdb1, and then please wait for the command to finish, it may take a long time. Finally mount /dev/sda1 /mnt/sda1
  4. Download the XX-Net+Entware-NG two-in-one installation script Intstall_xxnet (recommended manual Modify software download address to [stable version or test version](https://github.com/XX-net /XX-Net/blob/master/code/default/update_version.txt),). Then use WINSCP to upload to the /tmp/ directory of the router
  5. Enter the command sh /tmp/install_xxnet.sh If it is normal, the screen for selecting a partition will appear, select the partition code you want to install, and press Enter.

After downloading and installing Entware-ng (the time will be longer, depending on the network speed and DNS, it is recommended to change the DNS to 114.114.114.114 during installation. I have encountered that the DNS of the operator cannot resolve entware- ng download address), there will be a screen suggesting that you create a swap partition. If the memory is too small, less than or equal to 64M, it is recommended to create a swap partition. You can choose 1G 512M and 256M. The script will automatically download the latest XX-Net and install it to the U disk. The script will automatically generate manual.ini and open the remote configuration page. After the script is executed, you can visit http://routerIP:8085 to further configure XX-Net.

Clone this wiki locally