Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 54

Thread: F1 box and usb flashing

  1. #16
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    I can download the url in post #8, so maybe your cut and paste isn't quite right, or your box hasn't internet access.

    Does telnet ping 8.8.8.8 work on the box?

  2. #17

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    I can download the url in post #8, so maybe your cut and paste isn't quite right, or your box hasn't internet access.

    Does telnet ping 8.8.8.8 work on the box?
    tried the script again both copied and retyped. get the same error and yes telnet ping 8.8.8.8 works

  3. #18
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    I've just coded your post to see what it looks like without url's in blue.

    Quote Originally Posted by eattheliving View Post
    see message below when I try to use the wget command.


    Code:
    root@formuler1:~# wget --no-check-certificate -O install_vix.sh https://www.drop
    box.com/s/hc2cdr116l...ll_vix.sh?dl=1 && bash install_vix.sh
    wget: not an http or ftp url: https://www.dropbox.com/s/hc2cdr116l...ll_vix.sh?d
    oh I now have the boxes factory image back on it.
    Last edited by ccs; 06-09-20 at 12:48.

  4. #19
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Worked it out. This is what you want.....

    Quote Originally Posted by Willo3092 View Post
    This is Grog's script to flash using putty. You will need to have storage mounted as /media/hdd

    Code:
    wget --no-check-certificate -O install_vix.sh https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1 && bash install_vix.sh

  5. #20

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    Worked it out. This is what you want.....
    still get the same error message mate n yepp have a usb formatted in the back as a hdd.

    root@formuler1:~# wget --no-check-certificate -O install_vix.sh https://www.drop
    box.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1 && bash install_vix.sh
    wget: not an http or ftp url: https://www.dropbox.com/s/hc2cdr116lvx3dj/install_ vix.sh?dl=1
    root@formuler1:~#

  6. #21
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by eattheliving View Post
    still get the same error message mate n yepp have a usb formatted in the back as a hdd.

    root@formuler1:~# wget --no-check-certificate -O install_vix.sh https://www.drop
    box.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1 && bash install_vix.sh
    wget: not an http or ftp url: https://www.dropbox.com/s/hc2cdr116lvx3dj/install_ vix.sh?dl=1
    root@formuler1:~#
    The link in #19 creates a download dialogue (in ms windows)....

    Code:
    https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1
    The link in your last post displays the contents of the file (in ms windows), not what you want.

    The url is getting truncated to...

    Code:
    https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh
    Last edited by ccs; 06-09-20 at 13:47.

  7. #22

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    The link in #19 creates a download dialogue (in ms windows)....

    Code:
    https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1
    The link in your last post displays the contents of the file (in ms windows), not what you want.

    The url is getting truncated to...

    Code:
    https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh
    a little bit over my head with that one ccs
    can I put the image file directly onto the box in a folder using ftp and then install from the box itself?

  8. #23
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Yes, but someone else needs to advise.
    Last edited by ccs; 06-09-20 at 13:59.

  9. #24

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    Yes, but someone else needs to advise.
    I thought so. I did read it somewhere but as per usual can't find the webpage now. I thought it went into something like media/hdd folder or something

  10. #25
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    If I was guessing I'd say store the Grog script in /tmp/filename.sh, and then bash /tmp/filename.sh

    This is the script

    Code:
    rm -rf /media/hdd/viximage && mkdir -p /media/hdd/viximage && cd /media/hdd/viximage/
    options=$(wget -O -  https://www.openvix.co.uk/index.php/downloads/ |grep index.php\/downloads|grep img|grep -Eoi '<a [^>]+>'|sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp" | sed -E 's#https://www.openvix.co.uk/index.php/(.*/)?.*$#\1#'|sed -E "s#downloads/(.*?)#\1#"|sed -E "s#(.*?)-images#\1#"|sed -E 's#/$##' )
    PS3="Please select the brand of your box"
    select opt in $options; do 
    
        case "$REPLY" in
    
        [1-9] ) echo "You picked $opt which is option $REPLY";break;;
        [1-3][0-9] ) echo "You picked $opt which is option $REPLY";break;;
    
        *) echo "Invalid option. rerun the script to Try another one.";break;;
    
        esac
    
    done
    imageurl="https://www.openvix.co.uk/index.php/downloads/$opt-images";
    echo "now getting list of $opt boxes from $imageurl";
    options1=$(wget -O - $imageurl|grep index.php\/|grep $opt|grep -Eoi '<a [^>]+>'|sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp" |sed -E 's#downloads##g'| sed -E 's#https://www.openvix.co.uk/index.php//'$opt'(.*/)?.*$#\1#'|sed -E "s#/$opt-images/(.*?)#\1#"|sed -E "s#(.*?)-images#\1#"|sed -E 's#/$##'|sed -E 's#^/##' )
    PS3="Please select model of your box"
    select opt1 in $options1; do
    
        case "$REPLY" in
    
        [1-9] ) echo "You picked $opt1 which is option $REPLY";break;;
        [1-3][0-9] ) echo "You picked $opt1 which is option $REPLY";break;;
    
        *) echo "Invalid option. rerun the script to Try another one.";break;;
    
        esac
    
    done
    imageurl1="$imageurl/$opt1"
    read -p "If using multiboot box please enter partition to flash: " MULTIBOOT
    wget -O latestvix.zip $(wget -O - $imageurl1|grep http|sed 's/http/\nhttp/g'|grep openvix\-builds| sed 's/\(^http[^ <]*\)\(.*\)/\1/g'|sed -n 1p|sed "s#\"##g") && unzip latestvix.zip && cd $(find /media/hdd/viximage/  -type d  -maxdepth 4 2> /dev/null|sed '$!d') && ofgwrite  -r -k $( [[ ! -z "$MULTIBOOT" ]] && printf %s '-m'$MULTIBOOT' ')./
    Last edited by ccs; 06-09-20 at 14:03.

  11. #26

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    If I was guessing I'd say store the Grog script in /tmp/filename.sh, and then bash /tmp/filename.sh

    This is the script

    Code:
    rm -rf /media/hdd/viximage && mkdir -p /media/hdd/viximage && cd /media/hdd/viximage/
    options=$(wget -O -  https://www.openvix.co.uk/index.php/downloads/ |grep index.php\/downloads|grep img|grep -Eoi '<a [^>]+>'|sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp" | sed -E 's#https://www.openvix.co.uk/index.php/(.*/)?.*$#\1#'|sed -E "s#downloads/(.*?)#\1#"|sed -E "s#(.*?)-images#\1#"|sed -E 's#/$##' )
    PS3="Please select the brand of your box"
    select opt in $options; do 
    
        case "$REPLY" in
    
        [1-9] ) echo "You picked $opt which is option $REPLY";break;;
        [1-3][0-9] ) echo "You picked $opt which is option $REPLY";break;;
    
        *) echo "Invalid option. rerun the script to Try another one.";break;;
    
        esac
    
    done
    imageurl="https://www.openvix.co.uk/index.php/downloads/$opt-images";
    echo "now getting list of $opt boxes from $imageurl";
    options1=$(wget -O - $imageurl|grep index.php\/|grep $opt|grep -Eoi '<a [^>]+>'|sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp" |sed -E 's#downloads##g'| sed -E 's#https://www.openvix.co.uk/index.php//'$opt'(.*/)?.*$#\1#'|sed -E "s#/$opt-images/(.*?)#\1#"|sed -E "s#(.*?)-images#\1#"|sed -E 's#/$##'|sed -E 's#^/##' )
    PS3="Please select model of your box"
    select opt1 in $options1; do
    
        case "$REPLY" in
    
        [1-9] ) echo "You picked $opt1 which is option $REPLY";break;;
        [1-3][0-9] ) echo "You picked $opt1 which is option $REPLY";break;;
    
        *) echo "Invalid option. rerun the script to Try another one.";break;;
    
        esac
    
    done
    imageurl1="$imageurl/$opt1"
    read -p "If using multiboot box please enter partition to flash: " MULTIBOOT
    wget -O latestvix.zip $(wget -O - $imageurl1|grep http|sed 's/http/\nhttp/g'|grep openvix\-builds| sed 's/\(^http[^ <]*\)\(.*\)/\1/g'|sed -n 1p|sed "s#\"##g") && unzip latestvix.zip && cd $(find /media/hdd/viximage/  -type d  -maxdepth 4 2> /dev/null|sed '$!d') && ofgwrite  -r -k $( [[ ! -z "$MULTIBOOT" ]] && printf %s '-m'$MULTIBOOT' ')./
    Can I copy this and try it? Which bit pal ?

  12. #27
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    This link should allow you to download it in windows...

    Code:
    https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1
    Then ftp it to your box and then bash filename.sh. It does everything including flashing the image.

    Another way is to download the image yourself ...

    Quote Originally Posted by twol View Post
    You can try this:
    Download latest image, unzip and then copy the main folder containing the root and kernel to /tmp
    Then in telnet session:- ofgwrite -r -k /tmp/mainfolder ———> obviously replace mainfolder with the folder name!

  13. #28

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    This link should allow you to download it in windows...

    Code:
    https://www.dropbox.com/s/hc2cdr116lvx3dj/install_vix.sh?dl=1
    Then ftp it to your box and then bash filename.sh. It does everything including flashing the image.

    Another way is to download the image yourself ...
    tried with the image in the tmp folder and code got the below error mate.

    root@formuler1:~# ofgwrite -r -k /tmp/formuler1 ———>
    -sh: syntax error: unexpected newline
    root@formuler1:~#


    what do I do with the .sh download please?

  14. #29
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    It should be ofgwrite -r -k /tmp/formuler1 not ofgwrite -r -k /tmp/formuler1 ———>

  15. #30

    Title
    Senior Member
    Join Date
    Dec 2010
    Posts
    241
    Thanks
    19
    Thanked 22 Times in 20 Posts
    Quote Originally Posted by ccs View Post
    It should be ofgwrite -r -k /tmp/formuler1 not ofgwrite -r -k /tmp/formuler1 ———>
    tried it and still no joy pal

    root@formuler1:~# ofgwrite -r -k /tmp/formuler1
    -sh: ofgwrite: not found
    root@formuler1:~#


    what do I do with the bash filename.sh?

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.