💾 Archived View for bbs.geminispace.org › u › zorg › 14644 captured on 2024-05-26 at 16:16:56. 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

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

Comment by 🚀 zorg

Re: "How do I use gophers:// on Lagrange?"

In: s/Lagrange

@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 ------------------------------------------

🚀 zorg [OP]

Feb 04 · 4 months ago

Original Post

🌒 s/Lagrange

How do I use gophers:// on Lagrange?

💬 zorg · 3 comments · Feb 03 · 4 months ago