Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: building custom extended firmware for GauntletNode

  1. #11

    Default Progress!

    I first followed/adjusted the directions here:
    https://wiki.debian.org/EmDebian/CrossDebootstrap

    Code:
    sudo apt-get install binfmt-support qemu qemu-user-static debootstrap
    sudo debootstrap --foreign --arch mipsel --include build-essential,openssh-server,rsync,sudo squeeze debian-mipsel-squeeze/ http://ftp.debian.org/debian/
    
    sudo cp /usr/bin/qemu-mipsel-static debian-mipsel-squeeze/usr/bin
    
    DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true  LC_ALL=C LANGUAGE=C LANG=C sudo chroot debian-mipsel-squeeze/ /debootstrap/debootstrap --second-stage
    
    DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C sudo chroot debian-mipsel-squeeze dpkg --configure -a
    add some sources to debian-mipsel-squeeze/etc/apt/sources.list

    Code:
    sudo chroot debian-mipsel-squeeze apt-get update
    sudo chroot debian-mipsel-squeeze apt-get upgrade
    sudo chroot debian-mipsel-squeeze apt-get install <packages you want>
    It's important to install packages now, things don't work properly on debian quite yet for installing things.

    after this, I copied everything over onto an hfsplus partition that is case-sensitive. Either repartition your hard drive, or do it with another hard drive via USB hook up:

    Code:
    sudo gparted /dev/sdX
    mkfs.hfsplus -s -v gauntletNode /dev/sdX1
    sudo rsync -avH --progress --inplace debian-mipsel-squeeze /media/gauntletNode/
    The scripts require it to be sdX1 for now, but you can open a text editor and change the location.

    also checkout or download the scripts from my github repo for helping you chroot:
    https://github.com/ClashTheBunny/gauntletNodeChroot

    Start the telnet server on the node:
    Code:
    wget -O /dev/null http://10.10.10.254/cgi-bin/killprocess.cgi?service
    telnet in admin/admin (or to the address your router gave the node! Everything is insecure this way!):
    Code:
    telnet 10.10.10.254
    run:
    Code:
    /media/sda1/mountDebian.sh
    you are now in debian. add users, start ssh, change passwords.
    Code:
    adduser -m clashthebunny; passwd clashthebunny; service ssh start
    Lots of things need work, such as being able to install packages on the node itself, but I finally have ssh access to my little wifi NAS!

  2. #12
    Join Date
    Sep 2014
    Posts
    4

    Default

    I am a newbie at this, but i have a simple question. The whole point of this is bc SSH is more secure than WEP/WPA/WPA2, right? SSH will encrypt the transmission whereas the others just setup passwords to connect, right?

    edit: read more on this, i can see the biggest problem with my question is answered in the OP. Other than that, SSH does seem to be sweet. However, is there a way to hide the plain text display of the username/password for WEP/WPA/WPA2?

    edit #2:
    might be useful

    https://systemoverlord.com/blog/2013...t-node-part-1/

    edit #3:
    clashthebunny --
    were you able to get debian on the flash portion of the node without overwriting the linux 2.6.21? it seems that you just installed debian (with update, upgrade, and packages) onto a separate hfsplus partition on the enclosed HDD. Am I correct in thinking you have debian runnning on the HDD (part of the squeeze command to /media/gauntletNode/) and the native linux 2.6.21 still running on the flash? I'm super new to linux syntax, but I'm picking up on some here and there....

    edit #4
    i figured out why the BASH files/packages will not install. The BusyBox linux on the node will only support sh and ash packages, not bash. That is why the linux dist on the node can fit on such a small flash of around 64MB, but there is a swap portion as well. total size is around 126MB.
    Last edited by robazefa; 10-06-2014 at 07:22 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •