💾 Archived View for bbs.geminispace.org › s › Lagrange › 14638 captured on 2024-05-26 at 15:17:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

➡️ Next capture (2024-07-09)

🚧 View Differences

-=-=-=-=-=-=-

How do I use gophers:// on Lagrange?

Posted in: s/Lagrange

🚀 zorg

Feb 03 · 4 months ago

3 Comments ↓

🕹️ skyjake [mod...] · Feb 03 at 19:51:

Unfortunately that is not supported in Lagrange.

🚂 MrSVCD · Feb 03 at 21:11:

Is that gopher with tls?

🚀 zorg [OP] · Feb 04 at 00:08:

@MrSVCD Yes. Here's an example gophers server:

@MrSVCD Yes. Here's an example gophers server:

---------------------------------- FILE: s8 ------------------------------------------
#!/bin/bash
#To use, name this file s8 and make it executable with chmod +x s8, then type: ncat --ssl -l -k -p 7000 -c "./s8"
#You can connect to it with: ncat --ssl localhost 7000
#or by using curl --insecure gophers://localhost:7000/ if your curl supports gophers. Use --insecure because it's a self-signed certificate.

read userInput
userInput=$(echo "$userInput" | tr -d '[:space:]')
if [ "${userInput:0:1}" == "/" ]; then
	userInput="${userInput:1}"
fi
if [ "$userInput" == "file1.txt" ]; then
	echo "This is file1.txt"
elif [ "$userInput" == "file2.txt" ]; then
        echo "This is file2.txt"
else
	echo -e  "iMain menu	0	0	0\r\n"
	echo -e "0File1	file1.txt	localhost	7000\r\n"
	echo -e "0File2	file2.txt	localhost	7000\r\n"
	echo .
fi
---------------------------------- END FILE ------------------------------------------
---------------------------------- FILE: disclaimers.txt -----------------------------
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
---------------------------------- END FILE ------------------------------------------