[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
[200] How to run Shell command on the NMT
11-28-2010, 01:01 AM
Post: #1
How to run Shell command on the NMT
Hi,
How can I use shell command on my NMT, I just need to change the permissions on a directory???

Thank you
Find all posts by this user
11-28-2010, 01:36 AM (This post was last modified: 11-28-2010 01:53 AM by dc11ab.)
Post: #2
RE: How to run Shell command on the NMT
The 101 basic version:
Install telnet or LundmanShell package from CSI (nmtinstaller.com)
Once you have shell:
# chmod [permission] /share/[directory]
Read all about it:
http://ss64.com/bash/chmod.html

If you are looking for a way to keep this persistent after boot, you need to add your chmod command to the community start_app.sh script.
If you install something with the CSI the start_app.sh script will be put automagically at /share.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
11-28-2010, 06:57 PM
Post: #3
RE: How to run Shell command on the NMT
Why isn't telnet access (or ssh) default on NMT?

I tried telnet using the Terminal on my Macbook (after installing it with CSI) but it disconnected because it was trying to load some kind of profile file called 'macbook' which it couldn't find.
Find all posts by this user
11-28-2010, 07:09 PM
Post: #4
RE: How to run Shell command on the NMT
There is no 'macbook' file on the NMT. I use Mac OSX10.6.4/Terminal with telnet to a C200 pretty much on a daily basis, works fine for me.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
11-28-2010, 08:12 PM
Post: #5
RE: How to run Shell command on the NMT
Just installed telnet 1.8-mnt1 and tried it again. I get the following error:

Code:
macbook:~ joran$ telnet 192.168.178.21
Trying 192.168.178.21...
Connected to 192.168.178.21.
Escape character is '^]'.

Linux 2.6.22.19-27-4 (macbook) (ttyp0)

telnetd: /bin/login -p -h macbook : No such file or directory.
Connection closed by foreign host.
macbook:~ joran$

What am I doing wrong?
Find all posts by this user
11-28-2010, 08:29 PM (This post was last modified: 11-28-2010 08:30 PM by nuke12.)
Post: #6
RE: How to run Shell command on the NMT
Hmmm, it's like your Mac telnet client is sending the credentials of who ever your logged in on as on the macbook. So if your "james" on the macbook, the PCH is looking for the home directory of "james" on the PCH.

Just a wild guess but look at your telnet client switches and try to force a "root" logon.

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
11-28-2010, 08:34 PM
Post: #7
RE: How to run Shell command on the NMT
Seems I needed to install Busybox as well. It was searching for /bin/login which didn't exist (discovered it using LundamShell). Works like a charm now.
Find all posts by this user
11-28-2010, 09:26 PM
Post: #8
RE: How to run Shell command on the NMT
Your issue seemed to be somewhat different but we figured out the "busybox" problem in the telnet thread;
http://www.networkedmediatank.com/showth...?tid=45975

C-200, A-110 both playing from a DIY Linux Raid 5 server.

Remuxes, Captures and Transcodes done on a desktop running;
Win7, Intel i7 hexacore processor with 24 GB ram, WD VR OS drive and a WD Black 2 TB data drive.
Find all posts by this user
11-29-2010, 12:48 AM
Post: #9
RE: How to run Shell command on the NMT
Thank you all.

It is working for me. I have installed busybox and telnetd from CSI and loggin as root without password.
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [100/200/300/400] Cross Compile Request Thread - For all NMT Series vaidyasr 30 6,411 05-19-2013 02:59 AM
Last Post: studlee2
  [100/200/300/400] How to install remote syslog server on NMT A-200 jwalczak 0 225 05-10-2013 05:00 PM
Last Post: jwalczak
Heart [200] NMT remote iPhone native app for C-200 vise_guy 237 74,105 05-10-2013 09:57 AM
Last Post: DAVE1971
  [100/200/300/400] Do NMT devices reply to M-SEARCH SSDP requisitions? pflynn 0 288 02-28-2013 04:05 PM
Last Post: pflynn
  [200] [Apps] NMT CSI IPTV Player romanr 34 12,089 12-31-2012 07:57 PM
Last Post: romanr
  [200/300/400] Qt 5.0.0-rc1 for NMT - GUI Apps/Games/Utilities vaidyasr 2 912 12-23-2012 06:03 PM
Last Post: vaidyasr
  [200/300] Cross compile JAVA 6 (to run YAMJ) vaidyasr 35 7,261 12-11-2012 09:39 AM
Last Post: vaidyasr
  [100/200/300/400] List of Compilers and Interpreters - For NMT vaidyasr 0 500 12-10-2012 08:48 AM
Last Post: vaidyasr
  [100/200/300/400] List of UPnP/DLNA Server Applications - For NMT vaidyasr 0 1,062 12-10-2012 08:37 AM
Last Post: vaidyasr
  [200] Telnet shell commands not consistent andym2009 0 366 12-05-2012 11:56 PM
Last Post: andym2009

Forum Jump: