bottleneck
Choose style:

Author Topic: Editing files, updating busybox, adding opkg  (Read 8870 times)

0 Members and 1 Guest are viewing this topic.

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Editing files, updating busybox, adding opkg
« on: May 20, 2016, 12:53:32 pm »
I'd like to reorder my static leases, which isn't possible in the UI.

This is fine, I'd like to do it over SSH by editing /etc/config/dhcp, but the 'vi' provided by the onboard busybox is terrible, doesn't implement cut and paste, and only provides 'ash' as the shell which prevents me from using WinSCP to edit the file from my computer.

As such, I'm planning on updating busybox with the latest arm7l binary so I can have nano and bash, and thus edit over SSH using nano and remotely using WinSCP.

https://www.busybox.net/downloads/binaries/latest/

If this works out, this seems like an ideal use case for an optional opkg that others could install, too.

Any helpful tips, cautions, or others that would like this as well?

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #1 on: May 20, 2016, 01:37:51 pm »
With the caveat that I might not know what I am talking about. The releases show last modified date of 2013. Aren't these included in Securifi already?

Also, do you know if it is possible to get wget with https support added in?

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #2 on: May 20, 2016, 03:51:32 pm »
The busybox that is included is very minimal (even if it is newer), and doesn't have nano or bash included.

Thanks for the heads up though; I may need to cross compile busybox myself.

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #3 on: May 31, 2016, 06:01:56 am »
The busybox vi does support copy pasting, just not visual mode (you can do 5dd, then p for instance). But I understand the frustration. I have vim-tiny (just called vim) and vim-full in my repo, if you want to use it (information available at https://wiki.securifi.com/index.php/X10_Integration#Installation). As usual, I can't make guarantees about it working or not breaking things, but I do use it (vim-full is ~1.2MB though), nor guarantees about it working with future versions of their OS. You can build it yourself with the buildroot/toolchain (I removed the dep on ncurses, since A+ has ncurses already and it was failing to build).

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #4 on: June 02, 2016, 01:28:19 am »
Awesome, thanks Matt!

I installed vim-full and that helps immensely. Do you have any interest in compiling nano for the almond+ and adding it to your opkg source? Could I help in some way?

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #5 on: June 02, 2016, 01:49:09 am »
Nano should be there too already. In general, I'm happy to try compiling things, but many don't work without tweaks. You can try to make your own build environment too though, although it's unfortunately not a trivial procedure (not terribly hard, just non-trivial).

Offline Ehryk

  • Backer
  • *
  • Posts: 19
  • Thanks: 0
  • Registered : 06/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #6 on: June 03, 2016, 03:19:16 am »
Indeed it was! Now I feel right at home editing files!!!

Are there docs out there for setting up an Almond+ build environment?

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #7 on: June 03, 2016, 12:01:31 pm »
Indeed it was! Now I feel right at home editing files!!!

Are there docs out there for setting up an Almond+ build environment?

There are sticky topics (and other threads) of some help in the software developers section (you may have to request access if you don't have it? I can't remember anymore). I dumped some of that information into the wiki a while back:

https://wiki.securifi.com/index.php/Using_GPL_Code

I have updated it with some of the recent thread information, but not sure if I got it all. I was recently running into errors that made me think compilation would work better on 32bit OS, so I would probably recommend that (my guess is Ubuntu 12.04LTS 32bit would be your best bet, I currently use 14.04LTS 64bit), or at least a 32bit chroot (e.g. https://wiki.ubuntu.com/DebootstrapChroot).

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #8 on: June 03, 2016, 12:04:27 pm »
@matt - Is there an utility in your repository that would allow me to download files from https sites? The wget included in almond does not work and I am not able to get busybox 1.17 to install.

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #9 on: June 03, 2016, 01:07:47 pm »
@matt - Is there an utility in your repository that would allow me to download files from https sites? The wget included in almond does not work and I am not able to get busybox 1.17 to install.

I got wget-ssl (just called wget in the repo) to compile after a bit of work. Feel free to try it, although I can't guarantee it will keep compiling/working if/when they update the OS.

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Editing files, updating busybox, adding opkg
« Reply #10 on: June 03, 2016, 07:36:56 pm »
Awesome.. Just got it working. Thanks.

 

Page created in 0.04 seconds with 17 queries.

bottleneck