Conversation

Notices

  1. how does one do "administration" in SSH on the NAS when there is no editor (that I can find)? # #

    Sunday, 14-Sep-14 09:13:54 UTC from oracle.skilledtests.com
    1. @mk is there no busybox vi? If not remote editing might be done remotely using sshfs.

      Sunday, 14-Sep-14 09:25:49 UTC from micro.fragdev.com
      1. @mcnalu I don't see it listed in /usr/bin (where most common commands are just a link to /bin/busybox); trying to use find+grep doesn't bring it up either. but I don't know how busybox actually works (except that it provides stripped commands for embedded linuxes - which is what the NAS is, of course)

        Sunday, 14-Sep-14 09:40:45 UTC from oracle.skilledtests.com
        1. @mk iirc you just type busybox vi - ie vi is the argument to busybox.

          Sunday, 14-Sep-14 09:45:28 UTC from micro.fragdev.com
          1. @mcnalu see http://en.m.wikipedia.org/wiki/BusyBox#Examples and bewarned busybox vi is pretty basic compared to, say, vim

            Sunday, 14-Sep-14 09:47:12 UTC from micro.fragdev.com
            1. Meant for @mk ♻ see http://en.m.wikipedia.org/wiki/BusyBox#Examples and bewarned busybox vi is pretty basic compared to, say, vim

              Sunday, 14-Sep-14 09:47:44 UTC from micro.fragdev.com
              1. @mcnalu yes, I've worked with both vi and vim - but for occasional config file changes vi will do just fins - it's not as though I'm going to develop software on the NAS from a SSH terminal :D Interesting that the commands listed on that page include vi but it's not a link from /usr/bin - maybe it's in one of the other binaries directories, I'll poke around some more. One complication is that there is a /volume0 tree as well as a / tree with (some) similar directories. (there's also /volume1 but that is where the shared folders live.)

                Sunday, 14-Sep-14 09:58:46 UTC from oracle.skilledtests.com
                1. @mk what happens if you type busybox vi somefile

                  Sunday, 14-Sep-14 10:01:24 UTC from micro.fragdev.com
                  1. @mcnalu it opens the file :) but without the 'busybox' it works as well 'vi somefile' #

                    Sunday, 14-Sep-14 10:05:21 UTC from oracle.skilledtests.com
                    1. @mk oh, that's good. So you can edit now but you just want to understand where vi is - must be a link in your path somewhere.

                      Sunday, 14-Sep-14 10:09:01 UTC from micro.fragdev.com
                      1. @mcnalu yes, I'm guessing it's not in /usr/bin but some other directory. I'm also staring at the current sshd_config file where root login is allowed but I don't see how admin login is also allowed... oh, and no man pages on this box, of course #

                        Sunday, 14-Sep-14 10:14:14 UTC from oracle.skilledtests.com
                        1. @mk working on a NAS to me was like wondering around a forest in twilight with my shoelaces tied together!

                          Sunday, 14-Sep-14 10:17:02 UTC from micro.fragdev.com
                          1. @mcnalu *chuckle* yes, very much like that - especially since I'm not all that experienced with Linux either (though I'm learning pretty fast) :D #

                            Sunday, 14-Sep-14 10:22:36 UTC from oracle.skilledtests.com
                      2. @mcnalu as one of my next steps, I also want to figure out if (and how) I can install perl - which should enable running rsnapshot (if busybox doesn't get in the way of its other requirements, that is). plain rsync is enabled, that's no problem. #

                        Sunday, 14-Sep-14 10:18:53 UTC from oracle.skilledtests.com
                      3. @mcnalu ah, I found it: together ith another load of links to busybox it's in /bin. easy. :) #

                        Sunday, 14-Sep-14 10:20:17 UTC from oracle.skilledtests.com
          2. @mcnalu I just typed 'vi' and that worked. doing the same with nano or pico resulted in a "not found" error. I just don't unerstand yet *why* that works ;-) # #

            Sunday, 14-Sep-14 09:49:23 UTC from oracle.skilledtests.com
      2. @mcnalu I've yet to try sshfs... the problem I'm trying to solve is that (now) SSH login is only for users root and admin - I want it the other way round with special SSH user only login (who can then su to become super user if needed). At least SSH setup did allow me to set a non-standard port. #

        Sunday, 14-Sep-14 09:43:15 UTC from oracle.skilledtests.com
    2. @mk theoretically I could change the SSH server config - if only I had an editor. caot ind vi*, nano o pico - now what? #

      Sunday, 14-Sep-14 09:34:32 UTC from oracle.skilledtests.com
      1. @mk trial and error... although I cannot find (yet) where it's hiding, 'vi' does seem to live on the NAS (just 'vi' gives me an empty edit screen) (but nano and pico cannot be found) #! #

        Sunday, 14-Sep-14 09:37:21 UTC from oracle.skilledtests.com