ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: PEPE on Mar 01, 2025, 07:29 PM

Title: Get internet codes inside the computer
Post by: PEPE on Mar 01, 2025, 07:29 PM
How can i "install programs" from a pastebin(https) in internet in the advanced turtle?
Title: Get internet codes inside the computer
Post by: Purrcival on Mar 06, 2025, 12:09 AM
Quote from: PEPE on Mar 01, 2025, 07:29 PMHow can i "install programs" from a pastebin(https) in internet in the advanced turtle?

There are several commands you can use to download files, even pastebin. However you'll need to ensure HTTP is enabled in mod settings or the commands won't work.

Here's some commands that can be utilized, including their usages:

wget - Grabs contents via URL

- Usages: -
[To run from URL]
wget run <url>
[To download from URL]
wget <url> <file>

pastebin - Utilizes Pastebin for downloading, and uploading code anonymously

- Usage: -
[To upload as guest]
pastebin upload <file>
[To download to file]
pastebin get <code> <file>
[To run from file]
pastebin run <code>

If you want to code your own HTTP installer, try studying the programs located in the rom at /rom/programs/http/ and see how they utilize the HTTP API for grabbing files/content from the net.

Hopes this helps!