Page 1 of 1

Read online files [Solved]

Posted: 10 Jul 2019, 17:32
by Ed_P
I seem to remember encountering a posting that someone's script was able to read the contents of online files, zips and isos, without downloading them first. Now I can't find it. I'm not even sure it wasn't a Windows app/capability. Did I dream this or is it possible? :crazy:

Read online files

Posted: 13 Jul 2019, 17:06
by babam
httpfs2

Read online files

Posted: 14 Jul 2019, 02:17
by Ed_P
Ok! :Yahoo!: Thank you. :beer:

Now if Porteus had it...

Read online files

Posted: 14 Jul 2019, 07:47
by Kulle
Hi ED_P,
via slackyd:

Code: Select all

Searching httpfs2: found 1 package.
httpfs2-0.1.4-x86_64-1dj.txz [from Slackel]
...
guest@porteus:~$ slackyd -g httpfs2-0.1.4-x86_64-1dj.txz
...
*** httpfs2-0.1.4-x86_64-1dj.txz: already installed (httpfs2-0.1.5-x86_64-1jay).
All packages available are installed.
Already installed!
and how do you use it?

Read online files

Posted: 14 Jul 2019, 07:56
by babam
Pre-installed on Porteus.

Read online files

Posted: 14 Jul 2019, 10:59
by Kulle
Now I have realized the meaning:
e.g.
sudo httpfs2 http://....xyz.iso ~/tmp
(mount xyz.iso via httpfs2 in folder tmp)
and then
sudo dd if=~/tmp of=/dev/cdrom

Read online files

Posted: 14 Jul 2019, 13:40
by Ed_P
:Yahoo!:

Thank you guys. :friends: :beer:

And I found where I had seen this concept before. :good: Re: Script Extracting Desktop Module Offline/Online from ISO (Post by brokenman #53193)

Read online files

Posted: 14 Jul 2019, 20:16
by Ed_P
:( It almost worked.

Ubuntu.sh

Code: Select all

#!/bin/bash 
# https://forum.porteus.org/viewtopic.php?f=140&t=8588&p=72861#p72861
# https://forum.porteus.org/viewtopic.php?p=53193#p53193

iso=http://mirrors.rit.edu/ubuntu-releases/19.04/ubuntu-19.04-desktop-amd64.iso

# set -x;  # Diagnostic output on!!  http://man.cx/bash
mkdir /tmp/Ubuntu
httpfs2 $iso /tmp
mount /tmp/ubuntu-19.04-desktop-amd64.iso/ /tmp/Ubuntu            
ls /tmp/Ubuntu

Code: Select all

guest@porteus:~$ su
Password:
root@porteus:/home/guest# ./Ubuntu.sh
file name: 	ubuntu-19.04-desktop-amd64.iso
host name: 	mirrors.rit.edu
port number: 	80
protocol: 	http
request path: 	/ubuntu-releases/19.04/ubuntu-19.04-desktop-amd64.iso
auth data: 	(null)
file size: 	2097152000
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
ntfs-3g: Failed to access volume '/tmp/Ubuntu/ubuntu-19.04-desktop-amd64.iso/': No such file or directory

ntfs-3g 2017.3.23 integrated FUSE 27 - Third Generation NTFS Driver
		Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2017 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), windows_names, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information:  http://tuxera.com 
root@porteus:/home/guest# 
My /tmp folder is not on my hard drive so why is the mount referencing NTFS??? :%)

-update-

This worked. :good:

Code: Select all

#!/bin/bash 
# https://forum.porteus.org/viewtopic.php?f=140&t=8588&p=72861#p72861
# https://forum.porteus.org/viewtopic.php?p=53193#p53193

iso=http://mirrors.rit.edu/ubuntu-releases/19.04/ubuntu-19.04-desktop-amd64.iso

# set -x;  # Diagnostic output on!!  http://man.cx/bash
mkdir /tmp/{iso,Ubuntu}
httpfs2 $iso /tmp/iso
mount /tmp/iso/ubuntu-19.04-desktop-amd64.iso  /tmp/Ubuntu

echo
ls /tmp/Ubuntu
:happy62:

Read online files

Posted: 15 Jul 2019, 18:12
by M. Eerie
Ed_P wrote:
10 Jul 2019, 17:32
I seem to remember encountering a posting that someone's script was able to read the contents of online files, zips and isos, without downloading them first. Now I can't find it. I'm not even sure it wasn't a Windows app/capability. Did I dream this or is it possible? :crazy:
Maybe you mean this post by brokenman...

It was recently pointed out by ncmprhnsbl here.

:)

Cheers!

Read online files

Posted: 15 Jul 2019, 20:54
by Ed_P
M. Eerie wrote:
15 Jul 2019, 18:12
Maybe you mean this post by brokenman...
Yup, that's the one.
Ed_P wrote:
14 Jul 2019, 13:40
And I found where I had seen this concept before. :good: Re: Script Extracting Desktop Module Offline/Online from ISO (Post by brokenman #53193)
:)