Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

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)
Post Reply 
[200] Alternative Linux Terminal Utils package with Telnet/SSH/MC/Transmission
11-12-2010, 04:44 PM (This post was last modified: 12-13-2011 06:20 PM by Roman_V_M.)
Post: #1
Alternative Linux Terminal Utils package with Telnet/SSH/MC/Transmission
This topic is dedicated to the alternative Linux Terminal Utils Package for PCH C-200/A-200 developed by a Russian guy known as Padavan.

According to the feedback of Russian users the package works OK on C-200 and A-2x0 with the latest firmware.

The package includes:
- busybox-1.17.3 (only additional applets not included in the original busybox)
- dropbear-0.52 (lightweight ssh-server)
- mc-4.7.0.10 (a powerful filemanager Midnight Commander)
- nano-2.2.5 (a powerful text editor)
- e2fsprogs-1.41.12 (utilities for managing ext2/3 file systems)
- util-linux-ng-2.17.2 (fdisk, blkid)
- parted-2.3 (an alternative utility for HDD partitioning with GPT support)
- smartmontools-5.40 (HDD SMART control)
- hdparm-9.35 (HDD management)
- sdparm-1.05 (HDD and CD/DVD/BD drive management)
- usbutils-0.86 (lsusb applet)
- screen-4.0.3 (terminal extension)
- nut-2.4.3 (Network UPS Tools)
- aria2-1.10.8 (multiprotocol download utility)
- microdc2-0.15.6 (DC++ client)
- paragon ntfs/hfs tools (chkntfs, chkhfs).

The known bugs of Midnight Commander:
- Running in background (Ctrl+z) doesn't work.
- You cannot launch commands with panels hidden (Ctrl+O).

Changes history:
v 0.2
- the initial public release.
v 0.3
- Added GNU screen v4.0.3.
- Fixed calling the shell script "dropbearkeynew" under telnet.
- PTY module loads much faster (up to 25x).
- The package is now compatible with NMT CSI format and can be installed via menu: File > Install from file.
v 0.4
- Fixed a terminal bug in GNU screen.
- SSH dropbear is installed into rootfs for SSH to be able to run after unmounting the HDD with apps.
- Added the ability to run the terminal under nmt user.
- Added the utilities (fsck) for checking FAT, FAT32, NTFS, HFS, and HFS+ file systems.
- Added the setting for syslog path.
- Added the script "copy_to_roofs.sh" which allows to copy the utils into rootfs temporarily.
- Fixed the conflict with PCH GUI when an attempt to perform a clean install of NMT apps led to the error message about inability to perform formatting.
v 0.5
- Fixed compatibility issue with the latest firmware for C-200 and A-2x0 which includes its own PTY. Now the package detects the presence of the native PTY in firmware at startup.
v.0.6x
- Added Transmission v 2.13 cross-compiled for PCH x200.
- Added TCP window fix which prevents payer's hang up when downloading torrents at high speeds >2MiB/s (read this post).
- Fixed SSH keys reset after upgrading the LTU package.
v 0.7
- The pachage moved into the new dir /share/Apps/LTU in Linux rootfs format.
- User scripts are moved to the dir: /share/Apps/LTU/user.scripts/
- Added NMT FTP pure-ftpd server upgrade to v1.0.29 (from v1.0.21).
- Added Network UPS Tools (NUT) v2.4.3 package.
- Added aria2 v1.10.8 (multi-protocol download utility).
- Added microdc2 v0.15.6 utility (DC++ client).
- Added a direct TCP window fix - patched setups.cgi no longer needed.
- Setting the option FIX_TCP_RMEM=1 allows to increase tcp_rmem buffer by 4 times which increases reading speed from NFS-TCP network shares (from 72 to 94 Mb/s).
- The socket read buffer size (rmem_max and rmem_default) increased by 4 times (to 0.5 MiB) for smother TCP stream playback (IPTV, Radio, YouTube).
- transmission-daemon now runs under nmt user.
- Added loading the spindown timer (after 20 min idle by default), setting AAM to quiet and disabling APM to prevent a HDD from parking its heads too often (LCC workaround) - for any HDD. When a new HDD is hot-plugged the settings will be loaded into it automatically.
- Forced HDD spindown on pressing the Power button is disabled to prevent the "spindown-spinup-spindown" issue when a player goes into sleep mode.
- Added support for firmwares based on Linux kernel v.2.6.22.19-19-4.
v. 0.7.1
- Added support for locale and nls.
- ncurses lib replaced with ncursesw.
- Added utf-8 support for nano editor.
- Adder ru-RU and uk-UA locales for mc, nano, aria2, and microdc2.
- Fixed the issue with non-Latin charecters in microdc2 and added microdc2-slave-mode.patch and microdc2-ru.patch.
v.0.7.2
- Added scripts for running microdc2 in background.
- Added automatic creation of settings.json when upgrading Transmission.
v.0.7.3
- Added configuration for starting aria2 as XML-RPC server (allows using remote GUIs like Aria2c Remote Control).
- Set environment value "HOME=/usr/ltu/home" for application settings to be stored after reboot.
v.0.7.4.
- Transmission torrent-client updated to v. 2.31.
- Aria2 download manager updated to v. 1.11.1 which supports a list of incomplete downloads.
- Midnight Commander updated to v. 4.7.5.2.
- Added automatic applying of TCP fix when starting Transmission, Aria2, MicroDC2. FIX_TCP_RMEM option in configure has been removed.
- configure file is automatically converted to Unix format.
- Added a fix to the bug which prevents from changing Samba workgroup other than default "WORKGROUP" introduced in recent firmware.
- Added force start of telnetd to fix the issue when the process of upgrading player's firmware freezes if using SSH instead of telnet.
- Added "sendmail" command to busybox.
v.0.7.5.
- Transmission torrent-client updated to v. 2.32
- util-linux-ng updated to v. 2.19.1
- GNU Parted updated to v. 3.0
- Added SFTP (SSH FTP) protocol support for Dropbear
- Added automated creation of XENV backup
- added "backup_nand" for manual creation of full NAND flash backup
- Transmission RPC management port moved to standard 9091 (Gaya interface should work)
v.0.7.6.
- Transmission torrent-client updated to v. 2.33
- hdparm updated to v. 9.37
v. 0.7.7.
- Transmission torrent-client updated to v. 2.42
- Midnight Commander updated to v. 4.7.5.5
- smartmontools updated to v. 5.41
- Fixed starting PTY on older firmwares
Important note: In Transmission v. 2.40+ RPC protocol for external control interfaces has been updated and is not fully compatible with some of the existing remote control tools. Check for updates for your favorite RC tools or you can use the great cross-platform RC interface - Transmission Remote GUI - which has been updated to support Transmission 2.40+. I'd recommend to replace the program EXE with the one from here - it has some more features, including queue control.

v.0.7.x can be installed over previous versions. Be sure to remove any custom strings (patching setups.cgi, setting hddparm, settings any kernel options etc) from user.script.sh before upgrading to this version.

*WARNING!!!*
1. The package comes with absolutely no guarantees and you use it at your own risk.
2. I'm not a developer nor have I any connection whatsoever to developing this package. All credit belongs to Padavan. I've just posted the info that, I think, might interest other PCH 200 users. So it's no use asking me any package-specific questions.
3. Please uninstall any other shell/telnet/SSH software and reboot your player before installing this package.
4. If you use dropbear ssh server, switch back to telnet before upgrading player's firmware (or simply type "telnet" in terminal session). Otherwise you won't be able to install new firmware properly. (Installer tries to shut down telnet and hangs if doesn't find any. Why they haven't used killall for that purpose is a mystery.Huh )

Just to be clear: LTU does not write anything into player's internal NAND flash. It changes some files in /nmt/apps which is located on the 1-st partition of the system disk and also some files in initramfs (RAM disk) but that's all.
However, please follow instructions regarding LTU when installing 03-04-110530-21-POP-408 firmware for C-200.

Check and modify /share/Apps/LTU/configure file to set up necessary options (the type of terminal server, mc locale, etc.) before using the package. Don't forget to use a text editor which supports Unix line endings, e.g. notepad2. By default the telnet login is "root" and the password is blank. Password is mandatory for SSH access.

Current releases:

The latest pack with terminal utilities only (use if you have doubts about other changes and want to have only telnet/ssh with busybox, MC, and utilities):
http://nmt200.ru/wp-content/uploads/util...00_v05.zip

The latest pack with terminal utilities + Transmission 2.42 + TCP window fix + some other tweaks and fixes (v0.7.7):
http://nmt200.ru/wp-content/uploads/util...0_v077.zip

The full article in Russian.

The full article in English via Google Translate (weird but readable).
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 14 users say Thank You to Roman_V_M for this post
11-16-2010, 02:13 AM (This post was last modified: 11-16-2010 02:15 AM by viktor_73.)
Post: #2
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
Works smooth on A200 - followed the instructions.
Small comment: for SSH key generation script a symlink has to be created with name 'dropbearkey' to 'dropbearkeymulti'. (I still have to figure out how to change from password auth to rsa keyfile - it worked on A110)

Many Thanx for this package, Padavan!
Find all posts by this user
Add Thank You Quote this message in a reply
11-18-2010, 06:00 PM
Post: #3
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
Padavan has released an update for his utils package:
http://www.mediafire.com/file/gur3ndkjrg...00_v03.zip
Major changes:
- Added GNU screen v4.0.3.
- Fixed calling the shell script "dropbearkeynew" under telnet.
- PTY module loads much faster (up to 25x).
- The package is now compatible with NMT CSI format and can be installed via menu: File > Install from file.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 3 users say Thank You to Roman_V_M for this post
11-21-2010, 12:04 PM
Post: #4
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
Thanx again Padavan.

With GNU Screen i can unpack rar files in the background without remaining logged in to NMT. (or hardcores can run rtorrent Smile )

Regarding the RSA key file based SSH log in with Putty still needs some workaround. (dropebear key format has to be converted to openssh and then to putty PPK file with puttygen) This script worked in the dropbear CSI packet on A110 - unfortunately my old box is not on me any more, i can not check how it worked.
Find all posts by this user
Add Thank You Quote this message in a reply
11-25-2010, 09:17 PM (This post was last modified: 11-26-2010 08:31 PM by RedHat.)
Post: #5
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
Nice package. Going to try it.

C-200 + A-410 + Samsung 46F8500 +SONY STR-DB 870 QS

C-200 Dutch manual: download it here.
Find all posts by this user
Add Thank You Quote this message in a reply
11-26-2010, 08:31 PM
Post: #6
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
This is really the package I need, all tools included. Thanks.

Is this the page to check for updates? Or does the maker has a website?

C-200 + A-410 + Samsung 46F8500 +SONY STR-DB 870 QS

C-200 Dutch manual: download it here.
Find all posts by this user
Add Thank You Quote this message in a reply
11-26-2010, 10:36 PM
Post: #7
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
(11-26-2010 08:31 PM)RedHat Wrote:  This is really the package I need, all tools included. Thanks.

Is this the page to check for updates? Or does the maker has a website?

Updates are usually posted in the PCH C-200 topic of the Russian IXBT.com forum. I simply translate info into English and repost here. I will try to post any updates to this package if they are available.
AFAIK Padavan doesn't have his own web-site and is not very fluent in English. But you can try to talk to him in Russian in appropriate topics in the IXBT.com forum - he is a regular there.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Roman_V_M for this post
11-29-2010, 08:51 PM
Post: #8
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
Thanks a lot; works like a charm ;-)
Find all posts by this user
Add Thank You Quote this message in a reply
11-30-2010, 08:49 PM
Post: #9
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
Padavan has released another update to his package - v0.4. Direct link: http://nmt200.ru/wp-content/uploads/util...00_v04.zip

Major changes:
- Fixed a terminal bug in GNU screen.
- SSH dropbear is installed into rootfs for SSH to be able to run after unmounting the HDD with apps.
- Added the ability to run the terminal under nmt user.
- Added the utilities (fsck) for checking FAT, FAT32, NTFS, HFS, and HFS+ file systems.
- Added the setting for syslog path.
- Added the script "copy_to_roofs.sh" which allows to copy the utils into rootfs temporarily.
- Fixed the conflict with PCH GUI when an attempt to perform a clean install of NMT apps led to the error message about inability to perform formatting.

Now Padavan has also become an author on the Russian PCH-200 site where he has posted the latest version: http://nmt200.ru/hand/wildflexy/linux-term-utils-v0-4
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Roman_V_M for this post
12-09-2010, 07:26 AM
Post: #10
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
The new version v 0.5 has been released:
http://nmt200.ru/wp-content/uploads/util...00_v05.zip

Major changes:
- Fixed compatibility issue with the latest firmware "02-04-101206-21-POP-408-000" for C-200 which includes its own PTY. Now the package detects the presence of PTY in firmware at startup.
The full article (in Russian): http://nmt200.ru/hand/padavan/linux-term-utils-v0-5
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Roman_V_M for this post
12-16-2010, 06:46 PM (This post was last modified: 12-17-2010 11:21 AM by Roman_V_M.)
Post: #11
RE: Alternative lightweight utils package with Telnet/SSH/Midnight Commander.
V 0.6 has been released:
http://nmt200.ru/wp-content/uploads/util...0_v061.zip

Major changes:
- Added Transmission v 2.13 cross-compiled for PCH x200. This version replaces either the built-in client or a CSI Transmission and automatically imports their settings, downloads and seeds (without re-check). Transmission was added to the LTU package because Padavan thinks that the CSI version has a major flaw - it writes to player's flash every time it starts which may affect NAND flash longevity. Also in the CSI Transmission you cannot change a default download folder directly. Please note that if you replace the built-in Transmission the access port 8077 will remain the same.
- Added TCP window fix which prevents payer's hang up when downloading torrents at high speeds >2MiB/s. According to the feedback of Russian users the fix ensures stable torrent downloads even at maximum possible speeds via LAN. Please note that the default fix is meant for C200 model. A200/210 users should go to the folder /Apps/LinuxUtils/tcp_rmem/, replace the file setups.cgi with the one from /A2x0/ folder and restart the player. Also please note that this fix is firmware dependent and works only with the current latest firmware for PCH C200/A2x0. You will need the new patched setups.cgi if you upgrade your player's firmware to later versions.
- Fixed SSH keys reset after upgrading the LTU package.

The full article (in Russian): http://nmt200.ru/hand/padavan/linux-term-utils-v0-6
English via Google Translate (quite weird but still readable Smile):
http://translate.google.com/translate?hl...utils-v0-6

PS. If you don't like these changes you can still use v 0.5 from the link in the previous post.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 3 users say Thank You to Roman_V_M for this post
12-17-2010, 11:53 AM (This post was last modified: 12-23-2010 06:16 AM by pchuser_rf.)
Post: #12
RE: Alternative Linux Terminal Utils package with Telnet/SSH/Midnight Commander.
I installed this package on my c200. Everything works fine! I've forgotten now about the problem with hanging popcorn while working transmission!
If you are migrating from CSI Transmission and want to use Popcorn Hour own interface Gaya from Syabas(the icon with the green eye in web applications).
You need to:
1.Install LTU package.
2. Edit file /share/.transmission/settings.json to replace ' "rpc-port": 9091,' to ' "rpc-port": 8077,' .
3. Remove old CSI Transmission with NMT Installer.
(Do not worry: all the settings of the old Transmission is automatically copied to the new working directory "/share/.transmission". This occurred during the installation package LTU)
4. Start Transmission 2.13 by PopcornHour OSD menu or by using the telnet command
#transmission-start
5.If you use the remote clients "Transmission Remote GUI" or "Transmission-remote-dotnet", in clients is also necessary to change the RPC port number from 9091 to 8077.
Now:
You can access the transmission a webbrowser via:"http://your_popcorn:8077/transmission/web/"
Working directory for Transmission will now be changed to "/share/.transmission"
You can access Transmission through the OSD media player. To do this, select the icon with a green eye in the Web services.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to pchuser_rf for this post
12-17-2010, 11:05 PM
Post: #13
RE: Alternative Linux Terminal Utils package with Telnet/SSH/Midnight Commander.
Service release v0.62:
http://nmt200.ru/wp-content/uploads/util...0_v062.zip

Please note that the TCP fix is incompatible with the latest firmware for A2x0 released yesterday. It simply won't work. Waiting for the patched file setups.cgi from the new firmware.
Find all posts by this user
Add Thank You Quote this message in a reply
12-18-2010, 05:06 AM
Post: #14
RE: Alternative Linux Terminal Utils package with Telnet/SSH/Midnight Commander.
Service release v0.63:
http://nmt200.ru/wp-content/uploads/util...0_v063.zip
Find all posts by this user
Add Thank You Quote this message in a reply
12-18-2010, 04:36 PM
Post: #15
RE: Alternative Linux Terminal Utils package with Telnet/SSH/Midnight Commander.
The archive with patched files setups.cgi for TCP fix from different firmware:
http://nmt200.ru/wp-content/uploads/util...em.tar.bz2
You need to pick the right file for your current firmware, put it into the folder /Apps/LinuxUtils/tcp_rmem, replacing an existing file, and reboot your player. On Windows the archive can be opened with WinRAR or 7zip software.
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [200] Compile Kernel linux-2.6.22.19 JerryLutor 6 3,173 01-07-2014 11:46 AM
Last Post: romanr
Question [200] Any hints how to package software for C.S.I/opkg? marmotamarmota 5 1,748 07-17-2013 07:24 PM
Last Post: PedroDelCargo
  [400] Control PCH via telnet commands usernames_are_hard 1 1,016 07-07-2013 10:56 AM
Last Post: usernames_are_hard
  [400] Cross compiled aria2c for A-400 with mips-linux-gnu-gcc henryleelee0326 3 1,395 05-21-2013 08:16 AM
Last Post: vaidyasr
  [100/200/300/400] Shellinabox v2.10 - Web based AJAX terminal emulator vaidyasr 15 5,128 12-14-2012 11:51 AM
Last Post: vaidyasr
  [200] Telnet shell commands not consistent andym2009 0 770 12-05-2012 11:56 PM
Last Post: andym2009
  [200] lundftpd installation, configuration and setup package dc11ab 110 30,502 11-19-2012 09:24 PM
Last Post: Roob
  [300] [C300] How to install Transmission client pieter532 0 1,392 07-06-2012 10:30 PM
Last Post: pieter532
  [300] Alternative Jukebox? Flash3d 7 4,263 06-01-2012 11:21 AM
Last Post: accident
  [200] Transmission and external harddisk Aursis 0 700 04-12-2012 08:18 AM
Last Post: Aursis

Forum Jump: