Logo
ShareX¶
ShareX is a program that makes it easy to upload screenshots and share them with your friends. If you follow these instructions, you will end up with fully functional screenshot automation.
License¶
ShareX is licensed under the GNU General Public License v3.0 All relevant legal information can be found here
Prerequisites¶
Step 1¶
Firstly we need to add a domain(in this case a subdomain).
[isabell@stardust ~] uberspace web domain add cdn.uberspace.de
The webserver's configuration has been adpated.
Now you can use the following records for your dns:
A -> 185.26.156.55
AAAA -> 2a00:d0c0:200:0:b9:1a:9c:37
Step 2¶
Now we need to create the corresponding directory for our subdomain.
[isabell@stardust ~] mkdir /var/www/virtual/$user/cdn.uberspace.de && cd "$_"
[isabell@stardust cdn.uberspace.de]
Installing and configuring the Windows client¶
Go to your Windows PC and download the ShareX software from the ShareX Website.
Step 1¶
Start the installer and follow the instructions.
Step 2¶
Open ShareX and navigate to “Destinations settings ‣ FTP / FTPS / SFTP” Now click “Add” to create a new destination for our pictures.
Step 3¶
Now write the following in the corresponding fields.
Name: IMG Uberspace
Protocol: SFTP
Host: stardust.uberspace.de
Username: $ssh_user
Password: $ssh_password
Remote directory: /var/www/virtual/$user/cdn.uberspace.de/img/%y/%mo/%d
URL path: https:// cdn.uberspace.de
The two checkboxes should be unchecked! You can now close the “Destination settings” window.
Step 4¶
To setup your Workflow do the following:
Navigate to “Destinations ‣ Image Uploader” and check FTP.
Navigate to “After Capture tasks” and be sure to activate “Open in image editor”, “Save image to file” and finally “Upload image to host”.
Navigate to “After upload tasks” and be sure to activate “Copy URL to clipboard”.
Step 5¶
Now it’s time to setup your Hotkeys:
Navigate to “Destinations ‣ Hotkeys” then do the following:
Remove all Hotkeys.
Click “Add”
Select “Task: None” and navigate to: “Screen capture ‣ capture region”
Close the Task settings window and click on None and press your Hotkey (for example “PRINT SCREEN”)
Step 6 (Optional)¶
Optional you can change the filename to something fancier. To do so, navigate to “Task settings ‣ File nameing” and change the two text fields to:
%y-%mo-%d_%h-%mi-%s
Usage¶
Step 1¶
Press your Hotkey.
Step 2¶
Make a screenshot.
Step 3¶
If needed edit your screenshot in the popup window.
Then press “enter” to upload your screenshot and copy the corresponding URL to your clipboard.
That’s it, you have successfully configured an automatically uploading screenshot tool with your own domain!
Written by: Spacelord <iamroot@uber.space>