amuck-landowner

SFTP Screenshot Uploader

splitice

Just a little bit crazy...
Verified Provider
How to replace puush.sh and similar services with a self hosted (via SFTP) variant

Requirements / Software::

  • WinSCP
  • Greenshot
  • A VPS/server with a SSH server (and SFTP support)
  • nginx to serve the images

Steps:

  1. On your server create the /var/www/image directory (mkdir /var/www/), ensure that the www-data has permission to write to this directory (chown www-data:www-data /var/www/image). Also ensure that the www-data has a login password (passwd www-data)
  2. Download winscpupload.txt from https://gist.github.com/splitice/9563002. Install this on your filesystem. Note the path as you will need to provide it in the bat file. Replace the connection details in this script to match your server.
  3. Download winscp.bat from https://gist.github.com/splitice/9562983. Install this to your system, ensure all the values are set including the path to both WinSCP and the upload script.
  4. Select configure external commands from the Greenshot context menu
    19_34_05_.png
  5. Add a new External command - 
    Command: {PATH_TO}\winscp.bat
    Argument: "{0}"
    19_36_40_Posting_New_Topic_vpsBoard.png
  6. On your server install nginx. nginx can be found in most distribution repositories.
  7. Download the contents of https://gist.github.com/splitice/9564538 into /etc/nginx/conf.d/image-hosting.conf or a sites-available directory as appropriate,

You should now be able to take screenshots using Greenshot, uploaded to your server and with the links available in your clipboard. Enjoy :)
 
Last edited by a moderator:

nunim

VPS Junkie
http://getsharex.com/ <-- Sharex will make this a LOT easier, and you don't even need to use 4 different applets to do it.

Been using it for ages, etc.
Does it allow you to use your own hosting or just one of their supported services?  

I'm quite happy with my Gyazo clone, it's tiny, easy to build and works well enough for my usage/a few friends.  Building your own clone is fairly easy, my only issue with it is that it doesn't support SSL for uploading, I looked at including it myself but it's more than a trivial tweak.
 

Wintereise

New Member
Does it allow you to use your own hosting or just one of their supported services?  

I'm quite happy with my Gyazo clone, it's tiny, easy to build and works well enough for my usage/a few friends.  Building your own clone is fairly easy, my only issue with it is that it doesn't support SSL for uploading, I looked at including it myself but it's more than a trivial tweak.
You can use a lot of combinations.

Image specific,

20140316141253.png

File specific,

20140316141253.png

File ones can be used for images/text too.

I've got my image upload API integrated with it, and those two links were created using it.
 
Last edited by a moderator:

splitice

Just a little bit crazy...
Verified Provider
As far as I can tell ShareX does not have working SFTP support.

I tried pretty much every combination of configuration I could think of, closest thing to a URL in my clipboard I can get was - 
21_17_46_SFTP.cs_sharex_ShareX_Sharing_has_never_been_easier_Google_Project_Hosti.png


Feel free to prove me wrong with working SFTP support.
 
Last edited by a moderator:

HostHoarders-Mike

New Member
As far as I can tell ShareX does not have working SFTP support.

I tried pretty much every combination of configuration I could think of, closest thing to a URL in my clipboard I can get was - 
21_17_46_SFTP.cs_sharex_ShareX_Sharing_has_never_been_easier_Google_Project_Hosti.png


Feel free to prove me wrong with working SFTP support.
ShareX has SFTP support. My settings are below. ShareX is a great screenshot program.

222i33.png
 
Last edited by a moderator:

splitice

Just a little bit crazy...
Verified Provider
Unfortunately I still end up missing the host part of the URL.

23_38_31_SFTP_Screenshot_Uploader_Tutorials_and_Guides_vpsBoard.png


 

Honestly I am not all that impressed with ShareX, certainly it claims to have many features but it doesnt seem to be very reliable. Today I did the update as prompted and now all uploads via FTP are error'ing with no information (http://img.x4b.org/03-21-2014/23_40_07_ShareX_8.6.1.png)

 

Incase you want to see, my settings - 

23_42_30_ShareX_Outputs_Configuration_C_Users_splitice_Documents_ShareX_UploadersConf.png
 
Last edited by a moderator:

WebSearchingPro

VPS Peddler
Verified Provider
Honestly I am not all that impressed with ShareX, certainly it claims to have many features but it doesnt seem to be very reliable. 

I've been using ShareX for probably 6 months, across multiple windows installs. Great product, yes it is a bit funky to configure but its always possible to get it working with lots of tinkering and viewing the auth logs on the sftp host for errors.

You can do some seriously cool configurations with it, each key on my numberpad + ctrl + alt uploads to a different domain with extension.

Alt+Ctrl+3 = Upload text to https://txt.website.com

Alt+Ctrl+5 = Upload image to https://img.website.com/wiki/ for long term storage

PrintScr = Upload image to https://img.website.com/ for short term storage

ect...
 
Top
amuck-landowner