You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to share my tutorial on how to run snap-camera-server on Linux instead of Windows via docker.
Why? I don't like the idea of running docker on my Windows machine just to have some server running so I've setup a Linux server where I host my other applications as well.
Make sure you have some Linux distro running. I will use Ubuntu for this.
Install OpenSSL if not already (should be installed with latest Ubuntu)
Download Snap-camera-server to some directory using git git clone https://github.com/ptrumpis/snap-camera-server.git
Navigate to the snap-camera-server directory
Rename the example environment file to .env mv example.env .env
Change permission to have gencert.sh executable chmod +x gencert.sh
Run the file to generate certificates
(Not needed if you created SSL certificate previously and stored it somewhere. Valid for 10 years upon creation) ./gencert.sh
Move the generated certificate to system location in Linux sudo cp ./ssl/studio-app.snapchat.com.crt /usr/local/share/ca-certificates && sudo update-ca-certificates
Download the certificate file studio-app.snapchat.com.crt to your Windows machine e.g using SFTP
Import the certificate to your Windows machine according to the setup instructions
Run snap-camera-server on Linux via docker compose docker compose up
If it throws some errors due to already allocated ports, adjust the config in .env file. For me I had to change both adminer ports (changed to 8181)
Modify the %SYSTEMROOT%\System32\drivers\etc\hosts in Windows according to the setup instructions to the IP of the server where you are running the application from. In my case, the server is locally hosted on IP: 192.168.1.11
E.g. 192.168.1.11 studio-app.snapchat.com
Run Snap Camera on your Windows
Profit
Note: If you used snap-camera-server on your Windows PC before, you need to remove all previous studio-app.snapchat.com certificates and reinstall the app. After reinstall, it should work as expected :)
I would appreciate if such setup instructions could be also implemented to the official instructions as it was not hard at all to figure this by myself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I wanted to share my tutorial on how to run snap-camera-server on Linux instead of Windows via docker.
Why? I don't like the idea of running docker on my Windows machine just to have some server running so I've setup a Linux server where I host my other applications as well.
OpenSSL
if not already (should be installed with latest Ubuntu)git clone https://github.com/ptrumpis/snap-camera-server.git
mv example.env .env
chmod +x gencert.sh
(Not needed if you created SSL certificate previously and stored it somewhere. Valid for 10 years upon creation)
./gencert.sh
sudo cp ./ssl/studio-app.snapchat.com.crt /usr/local/share/ca-certificates && sudo update-ca-certificates
studio-app.snapchat.com.crt
to your Windows machine e.g using SFTPdocker compose up
If it throws some errors due to already allocated ports, adjust the config in
.env
file. For me I had to change both adminer ports (changed to 8181)%SYSTEMROOT%\System32\drivers\etc\hosts
in Windows according to the setup instructions to the IP of the server where you are running the application from. In my case, the server is locally hosted on IP: 192.168.1.11E.g.
192.168.1.11 studio-app.snapchat.com
Note: If you used snap-camera-server on your Windows PC before, you need to remove all previous
studio-app.snapchat.com
certificates and reinstall the app. After reinstall, it should work as expected :)I would appreciate if such setup instructions could be also implemented to the official instructions as it was not hard at all to figure this by myself.
Beta Was this translation helpful? Give feedback.
All reactions