[9 June 2010] C-200/A-200 NMJ UI PREVIEW (under development) | 18. Jan 2010 Popcornhour C-200 Manual

Firmware Updates C-200 [26 Aug 2010] | A-200 [14 May 2010] | A-100 [13 Aug. 2010] | A-110 [18 Aug. 2010] | B-110 [23 Apr. 2010]

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


0 users browsing this thread: (0 members, and 0 guests).

Thread Closed 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How-to: Install and Configure Dropbear on the PCH
04-09-2009, 01:09 PM (This post was last modified: 04-09-2009 01:22 PM by meskaya.)
Post: #46
RE: How-to: Install and Configure Dropbear on the PCH
(04-08-2009 06:59 PM)projectmayhem Wrote:  meskaya.......


I LOVE YOU!! Heart Heart Heart


Tongue


Code:
BusyBox v1.5.0 (2008-07-10 18:07:27 MYT) Built-in shell (ash)


Thank you very very much for your help...

You are welcome Smile


Quote: meskaya Wrote:

Quote:Dropbear sshd v0.52

Are you have compiled it for pch? Share it?
I can't compile this right now case i need it from scratch: install linux, install sdk, find right option, compile.
I try it soon.

Best regards

Yes I have compiled it for pch and of course I share it Download

As I said on hddtemp topic (I have also compiled hddtemp Wink) I haven't a premium rapidshare account so it should be better if someone can host it elsewhere.
Find all posts by this user
04-09-2009, 06:27 PM
Post: #47
RE: How-to: Install and Configure Dropbear on the PCH
(04-09-2009 01:09 PM)meskaya Wrote:  Yes I have compiled it for pch and of course I share it Download

As I said on hddtemp topic (I have also compiled hddtemp Wink) I haven't a premium rapidshare account so it should be better if someone can host it elsewhere.
i've posted your file:
http://sites.google.com/a/etux.ath.cx/nm...edirects=0
Find all posts by this user
04-09-2009, 08:32 PM
Post: #48
RE: How-to: Install and Configure Dropbear on the PCH
Thanks T0nik Smile

Can you also host hdparm and hddtemp ?

Thanks
Find all posts by this user
04-10-2009, 08:46 AM
Post: #49
RE: How-to: Install and Configure Dropbear on the PCH
If you ever need a hosting site for NMT apps etc then there's is this one:-
http://omertron.com/pch/node

A200 [No fan-metal case]: 3.5" HDD, HDMI, WN150
C200: USB (Apps), 2.5" HDD, BD iHOS104.37, HDMI, CAT6
Network: A100, W7, HP ProCurve 1400-8G, Netgear GS-605, Synology CS407 4Tb, Thompson 780v5, CAT6
Find all posts by this user
04-10-2009, 11:36 AM
Post: #50
RE: How-to: Install and Configure Dropbear on the PCH
(04-09-2009 08:32 PM)meskaya Wrote:  Thanks T0nik Smile

Can you also host hdparm and hddtemp ?

Thanks
ok hdparm.rar & hddtemp.rar
Find all posts by this user
04-19-2009, 09:00 AM
Post: #51
RE: How-to: Install and Configure Dropbear on the PCH
(04-10-2009 11:36 AM)t0nik Wrote:  ok hdparm.rar & hddtemp.rar

@t0nik
People are asking for the dropbear a lot to add it to the CSI.
As you might expect I am way to busy with CSI to maintain every package in it. Could you help me out here and create a package for CSI?
It isn't hard, I will guide you through the process.

Please contact me.

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
04-19-2009, 11:42 AM
Post: #52
RE: How-to: Install and Configure Dropbear on the PCH
I forget to post something I think interesting.

It's the script I launch after each reboot (the start_app.sh script launched by the ftp server will launch it)

So I put in the /share/.ssh folder:

- the authorized_keys file with my public key
- a .profile file with alias and environment variables
- a etc/dropbear folder with public and private keys of the ssh server

Code:
#!/bin/sh
#
#
#Dropbear SSH server
#

#Copy Host keys
/bin/cp -r /share/.ssh/etc/dropbear /etc
/bin/chown -R root /etc/dropbear
/bin/chmod 700 /etc/dropbear
/bin/chmod 600 /etc/dropbear/*

#Give shell for root
/bin/mkdir -p /root/
/bin/sed -e 's/^\(root:.*\)true$/\1sh/' -i /etc/passwd
/bin/cp /share/.ssh/.profile /root/.profile

#Give shell for nmt
/bin/mkdir -p /home/nmt
/bin/sed -e 's/^\(nmt:.*\)true$/\1sh/' -i /etc/passwd
/bin/cp /share/.ssh/.profile /home/nmt/.profile

#Give keys for root
/bin/mkdir -p /root/.ssh  
/bin/cp /share/.ssh/authorized_keys /root/.ssh
/bin/chown -R root:root /root
/bin/chmod 700 /root
/bin/chmod 700 /root/.ssh
/bin/chmod 600 /root/.ssh/authorized_keys

#Give keys for nmt
/bin/mkdir -p /home/nmt/.ssh
/bin/cp /share/.ssh/authorized_keys /home/nmt/.ssh
/bin/chown -R nmt:nmt /home/nmt
/bin/chmod 700 /home/nmt
/bin/chmod 700 /home/nmt/.ssh
/bin/chmod 600 /home/nmt/.ssh/authorized_keys

#Launch Dropbear (-s disable password logins)
/share/.bin/dropbear -s &

exit 0

Hope it helps Smile
Find all posts by this user
04-26-2009, 09:19 AM
Post: #53
RE: How-to: Install and Configure Dropbear on the PCH
Okay, since nobody want to actively help me to get this in CSI I just started it myself.
I got dropbear up and running, changed the path to /share/Apps/DropBear (for new package format).

I've created a new public-private keypair using PuttyKeyGen.
Saved the public key in the authorized_keys (the one with content: ssh-rsa AAAAB3Nxxxxxx/AMgow== rsa-key-20090426)
Ultimately ending up in /root/.ssh/autorized_keys
and am using the private key for putty.

When I connect using putty I get an "Server refused our key" after entering the "root" username.
Anyone able to help me out here?

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
04-27-2009, 11:50 AM
Post: #54
RE: How-to: Install and Configure Dropbear on the PCH
(04-26-2009 09:19 AM)Ger Teunis Wrote:  Okay, since nobody want to actively help me to get this in CSI I just started it myself.
I got dropbear up and running, changed the path to /share/Apps/DropBear (for new package format).

I've created a new public-private keypair using PuttyKeyGen.
Saved the public key in the authorized_keys (the one with content: ssh-rsa AAAAB3Nxxxxxx/AMgow== rsa-key-20090426)
Ultimately ending up in /root/.ssh/autorized_keys
and am using the private key for putty.

When I connect using putty I get an "Server refused our key" after entering the "root" username.
Anyone able to help me out here?

Sorry for no answerSad
Got many task at my work.
You have trouble with dos carriage return, i think.
For this package, imho, it need create a "default keypaire" and strongly recommend to user change it to his own.
I've compiled again dropbear, now version 0.52, but not write any script for CSI yet. I've package dropbear-0.51 long ago and forget some details.
I've been change some source code for correct work on popcorn with deal with its firmware.
Find all posts by this user
04-29-2009, 10:24 AM
Post: #55
RE: How-to: Install and Configure Dropbear on the PCH
(04-26-2009 09:19 AM)Ger Teunis Wrote:  Okay, since nobody want to actively help me to get this in CSI I just started it myself.
I got dropbear up and running, changed the path to /share/Apps/DropBear (for new package format).

I've created a new public-private keypair using PuttyKeyGen.
Saved the public key in the authorized_keys (the one with content: ssh-rsa AAAAB3Nxxxxxx/AMgow== rsa-key-20090426)
Ultimately ending up in /root/.ssh/autorized_keys
and am using the private key for putty.

When I connect using putty I get an "Server refused our key" after entering the "root" username.
Anyone able to help me out here?

Hi Ger Teunis,

You should have a look on my previous post http://www.networkedmediatank.com/showth...#pid172634
Find all posts by this user
05-13-2009, 03:14 PM
Post: #56
RE: How-to: Install and Configure Dropbear on the PCH
Hello

I have compiled cksfv for popcorn hour
here is the link:
http://rapidshare.com/files/232492587/cksfv.rar.html
MD5: 4B6DC9613932A7E7C3650F7FD4F90682
Find all posts by this user
05-18-2009, 07:33 PM (This post was last modified: 05-18-2009 07:34 PM by Ger Teunis.)
Post: #57
RE: How-to: Install and Configure Dropbear on the PCH
Finally, here it is thanks to t0nik (Dmitry Antonov)!
Dropbear SSH server has been added to the CSI.

Installing will take a few minutes to complete
Dropbear will generate a new keypair for optimal security during install.
It will make copies of the keys (the id_rsa_ files) to the root of your harddisk on the nmt, move them to a save location.

Use you perferred ssh client and use the ppk file mentioning root to login as root, nmt file to login as nmt.
This dropbear includes a very complete busybox and midnight commander.

Enjoy!

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
07-25-2009, 07:20 PM (This post was last modified: 07-25-2009 07:50 PM by ernstblaauw.)
Post: #58
RE: How-to: Install and Configure Dropbear on the PCH
(05-18-2009 07:33 PM)Ger Teunis Wrote:  Finally, here it is thanks to t0nik (Dmitry Antonov)!
Dropbear SSH server has been added to the CSI.

Installing will take a few minutes to complete
Dropbear will generate a new keypair for optimal security during install.
It will make copies of the keys (the id_rsa_ files) to the root of your harddisk on the nmt, move them to a save location.

Use you perferred ssh client and use the ppk file mentioning root to login as root, nmt file to login as nmt.
This dropbear includes a very complete busybox and midnight commander.

Enjoy!

Is it possible to add sftp support? Inside options.h, there is an option called SFTPSERVER_PATH which should point to the sftp-server from OpenSSH (which can be downloaded at http://packages.debian.org/sid/mipsel/op...download). I would love to have sftp access, but I don't know how to compile this one with the same options as your build (and I do not have any experience in compiling programs for my NMT). It would be great to have sftp-server enabled. Is this possible? Can I help you to achieve this?

Edit:
If you do not have time, I'm also happy with your compile settings - than I can add sftp myself hopefully.
Find all posts by this user
11-18-2009, 10:24 PM (This post was last modified: 11-18-2009 10:24 PM by mannchou.)
Post: #59
RE: How-to: Install and Configure Dropbear on the PCH
Hi,
I've installed DropBear through CSI (great !) but I encounter a connection problem :
- connection possible with WinSCP (root & nmt users)
- authentication successed but connection failed with different Mac clients :
Code:
subsystem request failed on channel 0

Dropbear logs don't notice any problem.

Anyone's already got that ?

Thx
Find all posts by this user
11-19-2009, 12:26 AM
Post: #60
RE: How-to: Install and Configure Dropbear on the PCH
Hi,

I Did figure out how to use rsync, dropbear with my centos server.
So now I can do a backup of the HDD installed in my Popcorn and store the data/files/movies on my Linux centos 5.2 box.

I have installed "rsync 3.0.4" and "Dropbear 0.52-3" with the help of NMT Community Software Installer (thanx!)

I had to make adjustments etc on howto get rsync to work on the popcorn and also how to get ssh to work from centos to the popcorn.
(thought I may post a separate instructions/howto for this)

what I do;
I run the rsync command on my centos box.
This copies from Popcorn and down to my centos box..
but the rsync (but really it is the ssh login process) takes a very loong time to login to the popcorn.

Is there already a way to speed up this login ? or
Is there a sshd deamon we can tweak on the popcorn, file ?

Thank you all for contributing!! both developers and you other posters! Wink
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Playing music with Winamp from PC to PCH alvoryx 30 12,136 07-31-2010 08:46 AM
Last Post: Skanda007
  NZBGet on the PCH/NMT Manual and F.A.Q. Philos 120 113,287 03-30-2010 04:29 AM
Last Post: sprogger
  Web browser access to the PCH from your PC cheaper_popcorn 67 88,196 10-02-2009 12:31 PM
Last Post: gretrick
Game Tutorial: How to use the Xbox360 to play files off the PCH? victorakkersdijk 0 2,270 08-01-2009 10:04 PM
Last Post: victorakkersdijk
Thumbsup How-To: Convert Apple HD Trailers to PCH friendly luckyy 2 2,342 07-11-2009 05:32 AM
Last Post: BuddyBoy
  Optimising memory on your PCH Delphy 16 12,700 05-29-2009 11:46 AM
Last Post: Funksoldier
  What can the PCH do for me - Popcornhour FAQ Philos 38 80,399 05-25-2009 12:46 AM
Last Post: landoncube
  [DOC] UPnP PCH-A100 Media Server A/V controlled by Nokia N95 8GB Kasimodo 7 10,824 04-21-2009 10:39 PM
Last Post: javierPopCorn
  HowTo Setup Harmony Remote for use with PCH-A100 journey4712 62 34,496 04-20-2009 08:34 PM
Last Post: woutersa
  success: mlb.tv playing off the PCH! (in ubuntu) eliotw 1 5,631 04-05-2009 07:33 PM
Last Post: tracerhand

Forum Jump: