diff --git a/drafts/code-installation.md b/drafts/code-installation.md new file mode 100644 index 0000000..0080377 --- /dev/null +++ b/drafts/code-installation.md @@ -0,0 +1,63 @@ +# Introduction. +What's VS Code Server. + +Research and compare Two options for deployment: self-managed versus cloud instance. + +Installing VS Code in your Build instance is the easiest way to access VS Code in your iPad while keeping all the control you are used to in your desktop. Although these instructions are tailored for Blink Build, the installation process should be similar in any other Cloud instance or to your private computer. Your own code server under your own control. + +Different brands of Code Server to choose from. All easy to install and easy to access, a matter of preference. + +## VS Code Server from Microsoft +Make an emphasis that Microsoft version is Open but it is subject to a more restricted license for some functionality +Advantage is having the full marketplace available. +Other things to note? + +### Instructions for installation: +1 - create binary directory +``` +mkdir ~/bin +``` +Add to PATH on .bashrc so binaries are available system-wide +``` +export PATH="$HOME/bin:$PATH" +``` +(Check https://docs.blink.sh/build/cloud_disk#binaries as reference) + +2 - Install +``` +curl --output vscode.tar.gz -L -X GET "https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64" +tar -zxf vscode.tar.gz && mv code ~/bin/ +``` +3- running +``` +code tunnel +``` +Running. Tunnel managed by Microsoft. Copy the URL from running the command and on a new blink shell, run: +``` +code +``` + +### Open VS Code Server from GitPod +https://github.com/gitpod-io/openvscode-server link for reference +Advantage, fully open license. +Disadvantage, an alternative marketplace + +Installation +1 - create binary directory (same as before) +2- Install +Download latest release from https://github.com/gitpod-io/openvscode-server/releases/latest +``` +tar -xzf openvscode-server-v${OPENVSCODE_SERVER_VERSION}.tar.gz + cd openvscode-server-v${OPENVSCODE_SERVER_VERSION} + +``` +3 - Running +First start the code server +``` + ./bin/openvscode-server # you can add arguments here, use --help to list all of the possible options +``` +In a new Blink shell, use code with the provided URL +``` +code +``` + diff --git a/drafts/tailscale+mosh.md b/drafts/tailscale+mosh.md new file mode 100644 index 0000000..12f680c --- /dev/null +++ b/drafts/tailscale+mosh.md @@ -0,0 +1,53 @@ +# Tailscale + Mosh + +## Intro +Tailscale presentation, effortless VPNs. + +Why pairing Blink with Tailscale? Connecting your mobile devices (iPhone or iPad) to your Tailscale network, will leverage Blink’s mosh connections to the rest of the machines in the network, so you can easily do development from your computer, manage your servers or check on other services, from your mobile devices with optimal performance. (Need to make this sound cooler). + +Blink can automatically upgrade the connection to mosh instead of ssh (this is a big deal and the whole point of the article). With a mosh connection on your mobile device, paired with Tailscale, you can connect to any machine in your Tailscale network and stay connected everywhere you go. + +## Installing Tailscale +### Step 1: Installing Tailscale in your computers +Follow instructions for your platform +-Link to linux- https://tailscale.com/kb/1031/install-linux/ +-Link to macOS- https://tailscale.com/kb/1016/install-mac/ + +To initialize Tailscale SSH in the hosts, run: +`tailscale up —ssh` +More information: Advertise SSH on the host + +### Step 2: Installing Tailscale in your devices +The last step is to install and sign in to Tailscale on your iPad. You can find Tailscale in the App Store. Make sure you log in with the same account as on your server, so the two devices can see each other. +-download Tailscale button- + +## Mosh to your Tailscale Node +Copy the IP or the Hostname from the Tailscale app +To connect, do: +`mosh @hostname` + +You can also create a host following the instructions in the next step and then connect doing: +`mosh host` + +Blink will request permission to handle the installation of mosh-server automatically as the user wherever you connect to. This makes it easier to setup things wherever you connect to. (Again, this is a big deal) + +## File Access +Tailscale also offers File Access. You can browse the remote file system with Blink, which is useful for . + +To connect to the remote file system using Blink, first we need to setup a host: +- Going to config > Hosts > Create host. +- Introduce an Alias for the host. under hostname, use the Tailscale provided IP. Enter the user name. +- To enable Files.app access, go down to the Files.app and just tap on Add Location. + +(Image similar to...) +![img](https://docs.blink.sh/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcreate-access-host-image2.25929bee.png&w=1920&q=75) + +Opening the Files.app on your mobile device, you should now see a Blink icon for your Tailscale node. Tapping on it, you can browse the remote file system. +(Image TBD) + +For more performant operations, like downloading big files or big directories, Blink can use the sftp command to transfer files from the remote to your device and vice versa. Ie: +`sftp :~/Documents/big_file.pdf ~/` + +--- +Examples of similar articles to base this one: +https://tailscale.com/kb/1166/vscode-ipad/