Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › About to give up on Linux as a server
New Posts  All Forums:Forum Nav:

About to give up on Linux as a server - Page 3

post #21 of 37
Quote:
Originally Posted by Fullinator View Post

@Plan9: My final aim is to allow people to log in and access archives of files. I tend to keep a very detailed account of video projects that I have worked on in the past/ folders of movies, etc. I was creating the server to allow them to log in to an account and download it. Eventually I want to set up a way for them to stream files that are to0 large to download.
You're probably better off with a HTTP autoindex on that directory (using HTTP auth if needs be). Then users can right-click (save as) to download or left click (managed by browser plug in) to stream.

FTP is an archaic protocol and isn't really much good for anything these days.
post #22 of 37
Quote:
Originally Posted by Plan9 View Post

You're probably better off with a HTTP autoindex on that directory (using HTTP auth if needs be). Then users can right-click (save as) to download or left click (managed by browser plug in) to stream.
FTP is an archaic protocol and isn't really much good for anything these days.

Or just set up anonymous access rooted to a specific directory. That gets rid of users if all he wants is download, though I agree http is probably the easiest thing he could do. Could also set up a simple site with auth and torrent it all, that way if users want to help you with bandwidth they can. =)
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #23 of 37

there are plenty of directory listing php scripts he could use, that would be far easier to maintain in the long run, than a ftp server, he could even setup a basic http authentication, so it would require a username and password. eventually he has said he wants to be able to stream vs download on the larger files, ftp wouldn't be the proper way to do it, and if you build it up around a php directory listing script, it would just be a matter of changing a few lines of code in the future for it to out put to a video player, vs downloading.

 

ftp is really only useful imho to get files onto a remote server, http would be far faster and better to serve out those files once uploaded. but html5 is rendering even that use for ftp almost useless.

Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
post #24 of 37
+1 to http index ( + auth, if you /need/ them to log in )
post #25 of 37
Thread Starter 
Is there any open source software to help make the process of creating an http autoindex? I won't have a terrible amount of time until the summer months roll around. That's why I wanted to get ftp set up so people could access their files and I could wait until I had some time to look into something like your talking. I know that I would run the web server off of Apache.

Thanks to all who took the time to help by the way! I really appreciate it!
The Rig of Power
(18 items)
 
First Build
(13 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3930k Asus P9X79 Pro nVidia 9800 GT nVidia 9800 GT 
RAMHard DriveHard DriveHard Drive
Corsair XMS3 WD Black WD Blue WD Raptor 10,000 RPM 
Hard DriveHard DriveCoolingOS
Corsair Force 3 SSD Seagate Corsiar H80 Windows 7 Ultimate 64-bit 
MonitorKeyboardPowerCase
Dell U2311H Logitech G19 Corsair TX750 Corsair 650D 
MouseAudio
Logitech G500 Logitech G51 
CPUMotherboardGraphicsRAM
Amd Phenom II X3 Asus M4a785TD-V EVO NVIDIA 9800GTX 4 GB G.skill DDR3 @ 1333 mhz 
Hard DriveOSMonitorKeyboard
WD blue250,350(boot,games) WD 1TB black(storage) windows 7 Ultimate 64-bit Dell U2311h Logitech G19 
PowerCaseMouse
500 Watt smilidon Logitech G500 
  hide details  
Reply
The Rig of Power
(18 items)
 
First Build
(13 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3930k Asus P9X79 Pro nVidia 9800 GT nVidia 9800 GT 
RAMHard DriveHard DriveHard Drive
Corsair XMS3 WD Black WD Blue WD Raptor 10,000 RPM 
Hard DriveHard DriveCoolingOS
Corsair Force 3 SSD Seagate Corsiar H80 Windows 7 Ultimate 64-bit 
MonitorKeyboardPowerCase
Dell U2311H Logitech G19 Corsair TX750 Corsair 650D 
MouseAudio
Logitech G500 Logitech G51 
CPUMotherboardGraphicsRAM
Amd Phenom II X3 Asus M4a785TD-V EVO NVIDIA 9800GTX 4 GB G.skill DDR3 @ 1333 mhz 
Hard DriveOSMonitorKeyboard
WD blue250,350(boot,games) WD 1TB black(storage) windows 7 Ultimate 64-bit Dell U2311h Logitech G19 
PowerCaseMouse
500 Watt smilidon Logitech G500 
  hide details  
Reply
post #26 of 37
Quote:
Originally Posted by Fullinator View Post

Is there any open source software to help make the process of creating an http autoindex? I won't have a terrible amount of time until the summer months roll around. That's why I wanted to get ftp set up so people could access their files and I could wait until I had some time to look into something like your talking. I know that I would run the web server off of Apache.
Thanks to all who took the time to help by the way! I really appreciate it!

Apache has it built in. (apt-get install apache2)

just add the following to the end of /etc/apache2/sites-enabled/000-default
Code:
Alias /videos "/path/to/videos"
<Directory "/videos">
    Options +Indexes
</Directory>
changing /path/to/videos to the actual path you're wanting to share.

Then whenever anyone navigates to http://yourserver.com/videos they'll have a basic directory index like they would in FTP
post #27 of 37
Thread Starter 
I never knew that that could be done so easily. Does this allow the file to be streamed if they left click on it and download it if they right click on it? Also, would it be possible to have a login screen come up that would then take them to the index?
The Rig of Power
(18 items)
 
First Build
(13 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3930k Asus P9X79 Pro nVidia 9800 GT nVidia 9800 GT 
RAMHard DriveHard DriveHard Drive
Corsair XMS3 WD Black WD Blue WD Raptor 10,000 RPM 
Hard DriveHard DriveCoolingOS
Corsair Force 3 SSD Seagate Corsiar H80 Windows 7 Ultimate 64-bit 
MonitorKeyboardPowerCase
Dell U2311H Logitech G19 Corsair TX750 Corsair 650D 
MouseAudio
Logitech G500 Logitech G51 
CPUMotherboardGraphicsRAM
Amd Phenom II X3 Asus M4a785TD-V EVO NVIDIA 9800GTX 4 GB G.skill DDR3 @ 1333 mhz 
Hard DriveOSMonitorKeyboard
WD blue250,350(boot,games) WD 1TB black(storage) windows 7 Ultimate 64-bit Dell U2311h Logitech G19 
PowerCaseMouse
500 Watt smilidon Logitech G500 
  hide details  
Reply
The Rig of Power
(18 items)
 
First Build
(13 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3930k Asus P9X79 Pro nVidia 9800 GT nVidia 9800 GT 
RAMHard DriveHard DriveHard Drive
Corsair XMS3 WD Black WD Blue WD Raptor 10,000 RPM 
Hard DriveHard DriveCoolingOS
Corsair Force 3 SSD Seagate Corsiar H80 Windows 7 Ultimate 64-bit 
MonitorKeyboardPowerCase
Dell U2311H Logitech G19 Corsair TX750 Corsair 650D 
MouseAudio
Logitech G500 Logitech G51 
CPUMotherboardGraphicsRAM
Amd Phenom II X3 Asus M4a785TD-V EVO NVIDIA 9800GTX 4 GB G.skill DDR3 @ 1333 mhz 
Hard DriveOSMonitorKeyboard
WD blue250,350(boot,games) WD 1TB black(storage) windows 7 Ultimate 64-bit Dell U2311h Logitech G19 
PowerCaseMouse
500 Watt smilidon Logitech G500 
  hide details  
Reply
post #28 of 37
Quote:
Originally Posted by Fullinator View Post

I never knew that that could be done so easily. Does this allow the file to be streamed if they left click on it and download it if they right click on it? Also, would it be possible to have a login screen come up that would then take them to the index?

If the file is a picture or other known file type recognized by your browser then left clicking will simply open the file, If it's an ISO or otherwise compressed folder or similar, then it will download. Right clicking will allow to download the link no matter what though.

And yes, you can enable http authentication and authorization. ( you can look it up in Apache and it will show you how ).

And you could even go further, and make your own Index ( quite easy ).

Default Index page;


My Index page;

Edited by Shrak - 12/3/12 at 6:53pm
post #29 of 37
Just to expand on what Shrak said, some browsers have built in support for some multiumedia file formates. So left clicking in those browsers will kick off the internal file handler.

However this is a platform and browser specific thing and if you want guaranteed support for streaming across the board, then you'd need to build in a little more specific web site. However that should be enough to get you going for the immediate problem smile.gif
post #30 of 37
Thread Starter 
Alright, thanks for all of the information! I'll attempt to build my own http index page but until then sftp will work.
The Rig of Power
(18 items)
 
First Build
(13 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3930k Asus P9X79 Pro nVidia 9800 GT nVidia 9800 GT 
RAMHard DriveHard DriveHard Drive
Corsair XMS3 WD Black WD Blue WD Raptor 10,000 RPM 
Hard DriveHard DriveCoolingOS
Corsair Force 3 SSD Seagate Corsiar H80 Windows 7 Ultimate 64-bit 
MonitorKeyboardPowerCase
Dell U2311H Logitech G19 Corsair TX750 Corsair 650D 
MouseAudio
Logitech G500 Logitech G51 
CPUMotherboardGraphicsRAM
Amd Phenom II X3 Asus M4a785TD-V EVO NVIDIA 9800GTX 4 GB G.skill DDR3 @ 1333 mhz 
Hard DriveOSMonitorKeyboard
WD blue250,350(boot,games) WD 1TB black(storage) windows 7 Ultimate 64-bit Dell U2311h Logitech G19 
PowerCaseMouse
500 Watt smilidon Logitech G500 
  hide details  
Reply
The Rig of Power
(18 items)
 
First Build
(13 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3930k Asus P9X79 Pro nVidia 9800 GT nVidia 9800 GT 
RAMHard DriveHard DriveHard Drive
Corsair XMS3 WD Black WD Blue WD Raptor 10,000 RPM 
Hard DriveHard DriveCoolingOS
Corsair Force 3 SSD Seagate Corsiar H80 Windows 7 Ultimate 64-bit 
MonitorKeyboardPowerCase
Dell U2311H Logitech G19 Corsair TX750 Corsair 650D 
MouseAudio
Logitech G500 Logitech G51 
CPUMotherboardGraphicsRAM
Amd Phenom II X3 Asus M4a785TD-V EVO NVIDIA 9800GTX 4 GB G.skill DDR3 @ 1333 mhz 
Hard DriveOSMonitorKeyboard
WD blue250,350(boot,games) WD 1TB black(storage) windows 7 Ultimate 64-bit Dell U2311h Logitech G19 
PowerCaseMouse
500 Watt smilidon Logitech G500 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › About to give up on Linux as a server