XBMC Community Forum  

Go Back   XBMC Community Forum > Development > XBMC Feature Suggestions

XBMC Feature Suggestions Please, add platform prefix for suggestions that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]"
Note! Post a copy of all formal feature requests as a ticket on trac (see FAQ)!

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 2003-10-19, 16:06   #1
markjrey
Junior Member
 
Join Date: Oct 2003
Posts: 9
markjrey is on a distinguished road
Default

lo,

i am trying to get xbox media centre to run and ftp in the previous release (01-10-03) there was a filezilla ftp but this appears to have gone in the latest release (18-10-03) is it possible to run an ftp on the latest realese? (do i need to use the python scripts, if so how?) any help would be a preciated as i'm trying to get it so as i can use it as a dashboard but if i cannot upload files to it its not of much us in that function.

thanks

mark

xbox v.1.3 /w xecuter 2.2, 120gig samsung, evox m7 bios, evox 3921
__________________
xbox v.1.3 /w xecuter 2.2, 160gig samsung, ind bios, evox 3935
markjrey is offline  
Old 2003-10-19, 16:52   #2
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
Gamester17 will become famous soon enough
Default

xbmc don't have a build-in ftp server yet
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Gamester17 is offline  
Old 2003-10-19, 16:56   #3
markjrey
Junior Member
 
Join Date: Oct 2003
Posts: 9
markjrey is on a distinguished road
Default

i am aware it doesn'y have a built in one but the python scripting allows an ftp server to be run but i cannot work out how to get it to link into the xbox folders (if this is posible at all)
__________________
xbox v.1.3 /w xecuter 2.2, 160gig samsung, ind bios, evox 3935
markjrey is offline  
Old 2003-10-19, 17:43   #4
markjrey
Junior Member
 
Join Date: Oct 2003
Posts: 9
markjrey is on a distinguished road
Question

ok after a bit of mucking about with the supplied start_medusa.py i came up with the following which creates an ftp server on separate ports for c,e and f (c=8021, e=8022, f=8023) using the anon account which has full write rights for some reason. does anyone know how to get it to link to the root of the xbox so that it can have one ftp serve for the whole box?

oh and does anyone know if i can remove any of the bits that the start medusa starts (i can't be aresed to try removing them in turn until it fails)

# -*- mode: python; tab-width: 4 -*-

#
# sample/template medusa startup script.
#
# this file acts as a configuration file and startup script for medusa.
#
# you should make a copy of this file, then add, change or comment out
# appropriately. *then you can start up the server by simply typing
#
# $ python myscript.py
#

import os
import sys

import ftp_server
import monitor
import filesys
import default_handler
import status_handler
import resolver
import logger
import asyncore

#if len(sys.argv) > 1:
# process a few convenient arguments
#[hostname, ip_address, publishing_root] = sys.argv[1:]
#else:
hostname = 'xbox'
# this is the ip address of the network interface you want
# your servers to be visible from. *this can be changed to ''
# to listen on all interfaces.
ip_address = ''

# root of the http and ftp server's published filesystems.
publishing_root = 'q:\\'
c_root = 'c:\\'
e_root = 'e:\\'
f_root = 'f:\\'

ftp_port_c = 8021 # the standard port is 21
ftp_port_e = 8022 # the standard port is 21
ftp_port_f = 8023 # the standard port is 21

# ================================================== =========================
# caching dns resolver
# ================================================== =========================
# the resolver is used to resolve incoming ip address (for logging),
# and also to resolve hostnames for http proxy requests. *i recommend
# using a nameserver running on the local machine, but you can also
# use a remote nameserver.

rs = resolver.caching_resolver ('192.168.0.1')

# ================================================== =========================
# logging.
# ================================================== =========================

# there are several types of logging objects. multiple loggers may be combined,
# see 'logger.py' for more details.

# this will log to stdout:
lg = logger.file_logger (sys.stdout)

# this will log to syslog:
#lg = logger.syslog_logger ('/dev/log')

# this will wrap the logger so that it will
# *1) keep track of the last 500 entries
# *2) display an entry in the status report with a hyperlink
# * * to view these log entries.
#
# *if you decide to comment this out, be sure to remove the
# *logger object from the list of status objects below.
#

lg = status_handler.logger_for_status (lg)

# ================================================== =========================
# filesystem object.
# ================================================== =========================
# an abstraction for the file system. *filesystem objects can be
# combined and implemented in interesting ways. *the default type
# simply remaps a directory to root.

fs = filesys.os_filesystem (publishing_root)

# ================================================== =========================
# unix user `public_html' directory support
# ================================================== =========================
if os.name == 'posix':
import unix_user_handler
uh = unix_user_handler.unix_user_handler ('public_html')
hs.install_handler (uh)

# ================================================== =========================
# ftp server
# ================================================== =========================

# here we create an 'anonymous' ftp server.
# note: the ftp server is read-only by default. [in this mode, all
# 'write-capable' commands are unavailable]

#c partition
ftp = ftp_server.ftp_server (
ftp_server.anon_authorizer (
c_root
),
ip=ip_address,
port=ftp_port_c,
resolver=rs,
logger_object=lg
)

#e partition
ftp = ftp_server.ftp_server (
ftp_server.anon_authorizer (
e_root
),
ip=ip_address,
port=ftp_port_e,
resolver=rs,
logger_object=lg
)

#f partition
ftp = ftp_server.ftp_server (
ftp_server.anon_authorizer (
f_root
),
ip=ip_address,
port=ftp_port_f,
resolver=rs,
logger_object=lg
)


# finally, start up the server loop! *this loop will not exit until
# all clients and servers are closed. *you may cleanly shut the system
# down by sending sigint (a.k.a. keyboardinterrupt).
asyncore.loop()
__________________
xbox v.1.3 /w xecuter 2.2, 160gig samsung, ind bios, evox 3935
markjrey is offline  
Old 2003-10-19, 17:58   #5
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

Quote:
does anyone know how to get it to link to the root of the xbox so that it can have one ftp serve for the whole box?
you will have to create something like a virtual directory, which contains all the xbox drive letters. but i don't know if that will work with medusa.

about the anonymouse account. it's a modification i made just for testing. wanted to see if it was possible to upload a file to the xbox.
you could open up ftp_server.py and have a look at line 961
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


darkie is offline  
Old 2003-10-19, 19:08   #6
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
Gamester17 will become famous soon enough
Default

why didn't you ay it was a python ftp-server then i wouldn't have moved it to suggestions forum, now chaning topic to be clear & moving back
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Gamester17 is offline  
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python MP3 Server fultotop Plugin/Script (Python) Help and Support 0 2006-08-14 22:07
Python Script to ping a server ziggycat Plugin/Script (Python) Help and Support 1 2006-06-16 17:12
Python Samba Server Chinny Plugin/Script (Python) Help and Support 0 2005-10-30 08:53
Possible to write a server via the python api? tharvey Plugin/Script (Python) Development 7 2005-02-08 07:21
Python script FTP-Server markjrey XBMC for Xbox Specific Support 5 2003-10-19 19:08


All times are GMT +2. The time now is 16:57.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project