linux guru's please help - UkCvs.org
 

Go Back   UkCvs.org > HD Digital Tv Section > HD General

Reply
 
LinkBack Thread Tools Display Modes
Old 09-01-2010, 07:34 AM   #1 (permalink)
Donated Member
UkCvs Member
 
Join Date: Sep 2008

Posts: 83
iTrader: (0)
Casino cash: $39595
Thanks: 37
Thanked 56 Times in 19 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Groans: 0
Groaned at 0 Times in 0 Posts
Default linux guru's please help

I recently purchased a Sumvision Cyclone MKV Media Enclosure/Player, Full 1080p with DTS. basically its a open source HD media player.

Its comes with a samba client to transfer files over network. I've just installed a FTP package that I found onto it.

To start the FTP server I have to telnet into it with this command: -

PHP Code:
/tmp/hdd/root/bftpd/bftpd_start 
Is there a way off adding a script in the linux file system to do this automatically on every reboot?

I've tried creating the following script & placing it in various place's, but not had any joy: -

PHP Code:
#!/bin/sh 
/tmp/hdd/root/bftpd/bftpd_start 
exit 
If anyone is interested this is the mediaplayer: -

Sicilian is offline   Reply With Quote
Old 09-01-2010, 10:13 AM   #2 (permalink)
Northern Git Admin
Team-UkCvs Senior Member
 
renwich's Avatar
 
Join Date: Aug 2008
1 Highscore

Posts: 5,079
iTrader: (0)
Casino cash: $312374
Thanks: 1,095
Thanked 1,242 Times in 532 Posts
Nominated 8 Times in 6 Posts
Nominated TOTW/F/M Award(s): 4
Groans: 1
Groaned at 0 Times in 0 Posts
Default
you could try
Code:
/etc/init.d/rc.local
renwich is offline   Reply With Quote
The Following User Says Thank You to renwich For This Useful Post:
Sicilian (09-01-2010)
Old 09-01-2010, 10:50 AM   #3 (permalink)
Donated Member
UkCvs Member
 
Join Date: Sep 2008

Posts: 83
iTrader: (0)
Casino cash: $39595
Thanks: 37
Thanked 56 Times in 19 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Groans: 0
Groaned at 0 Times in 0 Posts
Default
Quote:
Originally Posted by renwich View Post
you could try
Code:
/etc/init.d/rc.local
Thanks for the reply rennie

I've attached a screenshot of whats in my /etc/init.d/ directory.

Should I try creating a file called rc.local and add the following?

PHP Code:
#!/bin/sh 
/tmp/hdd/root/bftpd/bftpd_start 
exit 
Attached Images - Who Downloaded?
File Type: jpg Capture.jpg (62.4 KB, 12 views)
Sicilian is offline   Reply With Quote
Old 09-01-2010, 10:52 AM   #4 (permalink)
Northern Git Admin
Team-UkCvs Senior Member
 
renwich's Avatar
 
Join Date: Aug 2008
1 Highscore

Posts: 5,079
iTrader: (0)
Casino cash: $312374
Thanks: 1,095
Thanked 1,242 Times in 532 Posts
Nominated 8 Times in 6 Posts
Nominated TOTW/F/M Award(s): 4
Groans: 1
Groaned at 0 Times in 0 Posts
Default
can you upload the rcS file from /etc/init.d
renwich is offline   Reply With Quote
The Following User Says Thank You to renwich For This Useful Post:
Sicilian (10-01-2010)
Old 10-01-2010, 07:18 AM   #5 (permalink)
Donated Member
UkCvs Member
 
Join Date: Sep 2008

Posts: 83
iTrader: (0)
Casino cash: $39595
Thanks: 37
Thanked 56 Times in 19 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Groans: 0
Groaned at 0 Times in 0 Posts
Default
Thank you for looking at this rennie, I've had a look through some of the files, so i've attached all that might be relevant.

Here's part of the code in rcS1: -

PHP Code:
# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/init.d/S??* ;do
     
# Ignore dangling symlinks (if any).
     
[ ! -"$i" ] && continue 
After seeing that I created a script called S51inetd containing this, but still no joy: -

PHP Code:
#!/bin/sh 
/tmp/hdd/root/bftpd/bftpd_start 
exit 
Attached Files - Who Downloaded?
File Type: rar files.rar (1.3 KB, 1 views)

Last edited by Sicilian; 10-01-2010 at 09:51 AM..
Sicilian is offline   Reply With Quote
Old 10-01-2010, 10:05 AM   #6 (permalink)
Developer
UkCvs Senior Member
 
LraiZer's Avatar
 
Join Date: Oct 2008

Posts: 876
iTrader: (0)
Casino cash: $283340
Thanks: 328
Thanked 1,464 Times in 657 Posts
Nominated 16 Times in 5 Posts
Nominated TOTW/F/M Award(s): 5
Groans: 0
Groaned at 0 Times in 0 Posts
Default
maybe try putting a line in your /etc/inetd.conf to let inetd handle starting

your bftpd location
Code:
ftp stream tcp nowait root /usr/sbin/bftpd bftpd
LraiZer is offline   Reply With Quote
The Following 3 Users Say Thank You to LraiZer For This Useful Post:
nj2006 (10-01-2010), renwich (10-01-2010), Sicilian (10-01-2010)
Old 10-01-2010, 10:25 AM   #7 (permalink)
Donated Member
UkCvs Member
 
Join Date: Sep 2008

Posts: 83
iTrader: (0)
Casino cash: $39595
Thanks: 37
Thanked 56 Times in 19 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Groans: 0
Groaned at 0 Times in 0 Posts
Default
Quote:
Originally Posted by LraiZer View Post
maybe try putting a line in your /etc/inetd.conf to let inetd handle starting

your bftpd location
Code:
ftp stream tcp nowait root /usr/sbin/bftpd bftpd
Just took a looks at my inetd.conf, there is a similar line, but its hashed out. Should I just remove the '#'?

I've attached the file.

Just to re-cap, the ftp server I installed works fine if I manually start it via telnet using: -


PHP Code:
/tmp/hdd/root/bftpd/bftpd_start 





Attached Files - Who Downloaded?
File Type: rar inetd.rar (358 Bytes, 2 views)
Sicilian is offline   Reply With Quote
Old 10-01-2010, 11:06 AM   #8 (permalink)
Developer
UkCvs Senior Member
 
LraiZer's Avatar
 
Join Date: Oct 2008

Posts: 876
iTrader: (0)
Casino cash: $283340
Thanks: 328
Thanked 1,464 Times in 657 Posts
Nominated 16 Times in 5 Posts
Nominated TOTW/F/M Award(s): 5
Groans: 0
Groaned at 0 Times in 0 Posts
Default
if you already have /sbin/ftpd installed then just try removing the hash and reboot, otherwise add the line from previous post with no hash to try to use bftpd instead.
LraiZer is offline   Reply With Quote
The Following User Says Thank You to LraiZer For This Useful Post:
Sicilian (10-01-2010)
Old 10-01-2010, 11:27 AM   #9 (permalink)
Donated Member
UkCvs Member
 
Join Date: Sep 2008

Posts: 83
iTrader: (0)
Casino cash: $39595
Thanks: 37
Thanked 56 Times in 19 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Groans: 0
Groaned at 0 Times in 0 Posts
Default
Ok right. This is what I've done so far with no joy. Thank for all the help so far

1. Edited inetd.conf to look like this: -

PHP Code:
#
# /etc/inetd.conf       A simple inetd.conf
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
#
ftp     stream  tcp     nowait  root    /usr/sbin/bftpd bftpd
telnet  stream  tcp     nowait  root    
/usr/sbin/telnetd  telnetd
#auth   stream  tcp     nowait  nobody  /usr/sbin/nullidentd nullidentd
www     stream  tcp     nowait  www-data        /usr/sbin/httpd httpd -/var/www
#
# End of inetd.conf 
Transfered to /etc/ then chmod 664.

2. Created S51inetd and put into /etc/init.d/ Its looks like this, is this actually correct even? : -

PHP Code:
#!/bin/sh

/tmp/hdd/root/bftpd/bftpd_start

exit 
Once transferred I chmod 775 the above file.

Basically what i'm trying to achieve here is starting the ftp server I installed automatically on each re-boot instead of manually starting via telnet.
Sicilian is offline   Reply With Quote
Old 10-01-2010, 11:31 AM   #10 (permalink)
Donated Member
UkCvs Member
 
Join Date: Sep 2008

Posts: 83
iTrader: (0)
Casino cash: $39595
Thanks: 37
Thanked 56 Times in 19 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Groans: 0
Groaned at 0 Times in 0 Posts
Default
This might be relevant. I've just looked in /usr/sbin/ there no files that mention bftpd. See attached screenshot.
Attached Images - Who Downloaded?
File Type: jpg Capture2.jpg (61.0 KB, 4 views)
Sicilian is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:23 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Any information provided on this site is not guaranteed in any way. Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, use at your own risk !! Ukcvs.org cannot be held responsible for the content of any post on this forum.