Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#142566 - 11/02/2003 16:31 Two hijack questions...
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
Question 1:

If I'm using CharcoalGray99's XML web interface, most of it resides in a folder on /drive0 so that I don't have to replace it each time I upgrade the player software. However, I still do have to put "index.html" into the root directory if I want to access http://empeg/ and have CharcoalGray99's pages to come up.

Is there an option somewhere in config.ini that allows me to move even index.html to someplace on /drive0?

I know there is khttpd_style=xxxxxx.xsl, but that's not for index.html, is it?


Question 2:

I know this isn't Mark's fault, it's Microsoft's. But I still can't get those "extra" files to stop appearing in the Microsoft web browser extensions for IE:



The extra file is a random file name, sometimes blank, sometimes garbage characters, sometimes the same as another file name in the existing directory.

Did anyone ever figure out how to make those stop appearing?


Attachments
140346-extra.gif (113 downloads)

_________________________
Tony Fabris

Top
#142567 - 11/02/2003 17:11 Re: Two hijack questions... [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Does the web interface work if you just put the index.html in the same /drive0 subdir as everything else, and then use THAT as your URL in the browser?
Or is that not the way you want it?

And have you tried the dotdir config.ini options for Hijack?
[hijack]
rootdir_dotdot=0
kftpd_show_dotfiles=0



Cheers

Top
#142568 - 11/02/2003 17:44 Re: Two hijack questions... [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
Does the web interface work if you just put the index.html in the same /drive0 subdir as everything else, and then use THAT as your URL in the browser?
Or is that not the way you want it?


You're right, I can get CharcoalGray's interface on a freshly-upgraded player by going to
http://empeg/?fid=101&ext=.xml&style=/drive0/opt/khttpd/charcoalgray99/xsl/default.xsl (for example), and that works.

I was just hoping there was a way I could spec it so that I get his page as the default HTML page when I go to http://empeg without having to spec any more subdirectories.

And have you tried the dotdir config.ini options for Hijack?

Yes, I've tried them with both a zero and a 1, and I still get those extra entries:



Attachments
140376-extra.gif (92 downloads)

_________________________
Tony Fabris

Top
#142569 - 11/02/2003 17:46 Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Bah.. just for the heck of it.. Hijack v313 is out.

-- New [hijack] section option: khttpd_root_index=pathname

Eg. khttpd_root_index=/drive0/webinterface.html

Cheers

Top
#142570 - 11/02/2003 17:48 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
You are the man, Mark.
_________________________
Tony Fabris

Top
#142571 - 11/02/2003 17:49 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: mlord]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
damn man... gimme a chance to catch up on the faq before you keep adding stuff!

that's a cool one.
_________________________
|| loren ||

Top
#142572 - 11/02/2003 17:59 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
Yup, works like a charm! Thanks!

That's really a big help in whittling down the number of things I need to re-install when an upgrade is applied.

I think I'm down to just this list:

- Upgrade player.
- Reinstall Hijack.
- New image pan file.
- New Tux Much image.

Cool...
_________________________
Tony Fabris

Top
#142573 - 11/02/2003 18:19 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
...rerun mkprgpt to recreate mountpoints /programs0 and /programs1

If we could get the sync issue sorted so that using /dev/hda2 and /dev/hdc2 were no longer neccessary then I'd depreciate this too in favor of using the music partitions.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#142574 - 11/02/2003 18:22 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: genixia]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
What about the idea of using hda2? It's not doing much else in life..
_________________________
- Tony C
my empeg stuff

Top
#142575 - 11/02/2003 18:23 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
...rerun mkprgpt to recreate mountpoints /programs0 and /programs1

I don't have to do that any more since I no longer need to put anything on /programs0.

Question. Would there be a way to write "mkprgpt" in such a way that it can be placed on drive0, called harmlessly from an EXEC command, and wouldn't do anything bad (like mounting the hard disks readwrite, using up any Bash memory, or locking a file open on the hard disks preventing a RW/RO operation) if the mount points already existed?
_________________________
Tony Fabris

Top
#142576 - 11/02/2003 18:31 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411

I don't have to do that any more since I no longer need to put anything on /programs0.


Don't you? Can you still sync with stuff running out of the music paritions. (eg emphatic, or ttsd)

Is there something in beta14/RC1/whatever that makes this possible?
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#142577 - 11/02/2003 18:33 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: genixia]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
Nah, it's just that all my EXEC commands are @DC and I never sync in DC mode.
_________________________
Tony Fabris

Top
#142578 - 11/02/2003 19:01 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: tonyc]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411

What about the idea of using hda2? It's not doing much else in life..


Benefits of /dev/hda2:
Doesn't get wiped during upgrade (although not guaranteed.)
Distinct location.
Doesn't cause sync issues.

Benefits of /drive0/somewhere:
Huge. (Useful for emptris, or holding many apps)
/dev/hda2 could conceivably be wiped on upgrade (although I'd expect we would be warned beforehand)
Easier to deal with wrt Point&Click installs.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#142579 - 11/02/2003 20:23 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
-- New [hijack] section option: khttpd_root_index=pathname

Thanks Mark!

Tom

Top
#142580 - 11/02/2003 20:55 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Keep in mind that one can also now do stuff like:

;@EXEC_ONCE mkdir /mountpoint
;@EXEC_ONCE mount /dev/hda2 /mountpoint

Cheers

-ml

Top
#142581 - 18/02/2003 19:49 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: mlord]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
I assume this would actually be:

;@EXEC_ONCE /bin/mkdir /mountpoint
;@EXEC_ONCE /bin/mount /dev/hda2 /mountpoint

Top
#142582 - 18/02/2003 19:56 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: Yang]
suomi35
enthusiast

Registered: 16/02/2002
Posts: 290
Loc: Denver, CO
Yep


Edited by suomi35 (18/02/2003 20:00)
_________________________
-Jason

Top
#142583 - 18/02/2003 19:59 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: suomi35]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
You don't need to call the full pathnames of the bins in /bin, so Mark's example stands.


Negative on that, Houston.

Unless he was starting a shell which employed the PATH environment variable, that's not how it works.
_________________________
- Tony C
my empeg stuff

Top
#142584 - 27/06/2003 14:24 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: loren]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Not to be a pest or anything, but the khttpd_root_index option still isn't in the FAQ.

I was going crazy because I KNEW Mark added it, but I couldn't remember exactly what it was named, and I couldn't find it in the FAQ.
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#142585 - 27/06/2003 16:10 Re: Hijack v313: khttpd_root_index=xxxxxxxxxx [Re: ricin]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
That would be my fault. I need to get off my ass and just take a couple of hours to add all the new stuff. Sorry fellas. busy busy.
_________________________
|| loren ||

Top