2018-06-04 02:18:02 +00:00
|
|
|
---
|
|
|
|
author: ~ben
|
2018-06-04 06:18:28 +00:00
|
|
|
published: true
|
2018-06-09 00:36:52 +00:00
|
|
|
title: getting started
|
2018-06-09 14:42:02 +00:00
|
|
|
description: tilde.team getting started guide
|
2019-01-25 18:29:10 +00:00
|
|
|
category:
|
|
|
|
- main
|
2018-06-04 02:18:02 +00:00
|
|
|
---
|
|
|
|
|
2018-07-02 22:35:56 +00:00
|
|
|
# getting started
|
2018-06-04 02:18:02 +00:00
|
|
|
|
2019-07-18 01:20:31 +00:00
|
|
|
this guide is not very thorough or complete. if you want something nicer, try [our cli for beginners article](cli-for-beginners).
|
2018-08-09 14:28:14 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-06-04 02:18:02 +00:00
|
|
|
Welcome
|
|
|
|
New to the command line and all this webby cowfoolery? You're in luck! Here's a basic HELLO WORLD tutorial.
|
|
|
|
|
2018-06-05 05:03:27 +00:00
|
|
|
```
|
|
|
|
_______________________________________
|
|
|
|
/ WELCOME TO TILDE.TEAM A PLACE FOR WEB \
|
|
|
|
\ PAGES /
|
|
|
|
---------------------------------------
|
|
|
|
\ ^__^
|
|
|
|
\ (oo)\_______
|
|
|
|
(__)\ )\/\
|
|
|
|
||----w |
|
|
|
|
|| ||
|
|
|
|
```
|
|
|
|
|
|
|
|
## Logging in
|
|
|
|
|
2020-01-15 00:33:43 +00:00
|
|
|
### Windows 10
|
|
|
|
|
|
|
|
- Launch PowerShell (or press win+x, and click "Windows PowerShell")
|
|
|
|
- `ssh your_username@tilde.team`
|
|
|
|
- Enter your password.
|
|
|
|
|
|
|
|
|
|
|
|
### Legacy Windows
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
- [git bash](https://gitforwindows.org) included with a standard git install
|
|
|
|
- [msys2](https://msys2.github.io) is quite nice and has support for [mosh](https://mosh.org)
|
|
|
|
- another option is to use [WSL (windows subsystem for linux)](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
|
2018-06-05 05:03:27 +00:00
|
|
|
|
|
|
|
### Linux
|
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
- Open a terminal. Try ctrl + alt + t.
|
|
|
|
- `ssh your_username@tilde.team`
|
|
|
|
- Enter your password.
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2020-01-15 00:33:43 +00:00
|
|
|
### MacOS
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
- Browse to Applications/Utilities/Terminal and launch Terminal (or press cmd+space, start typing Terminal, and press return)
|
|
|
|
- `ssh your_username@tilde.team`
|
|
|
|
- Enter your password.
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
## Finding your index.php file
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 02:18:02 +00:00
|
|
|
There are some basic command line commands you'll want to Google and learn, but for this tutorial you only need a few:
|
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
- `ls` = list files and folders in current directory
|
|
|
|
- `cd` = change directories
|
|
|
|
- `nano` = a command line text editor
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 06:18:28 +00:00
|
|
|
Type: `ls` to see where you are. You should see a directory called "public_html"
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 06:18:28 +00:00
|
|
|
Type: `cd public_html` to move into that folder. (cd stands for change directory.)
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
Type: `ls` to see where you are. You should see your index.php file
|
|
|
|
Editing your index.php file
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2019-01-25 18:29:10 +00:00
|
|
|
Type: `nano index.php` to open your index.php file and begin editing
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 02:18:02 +00:00
|
|
|
Edit your file, willy nilly
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 06:18:28 +00:00
|
|
|
When done editing, use `ctrl + x` to close the file
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 02:18:02 +00:00
|
|
|
You'll be asked if you want to save; say y and to return to the command line
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 02:18:02 +00:00
|
|
|
Refresh your tilde page in your browser to see your new website
|
2018-06-05 05:03:27 +00:00
|
|
|
|
2018-06-04 02:18:02 +00:00
|
|
|
Note: If at any time you feel you made a mistake in editing, you can exit and n to not save.
|
|
|
|
|
2019-07-18 01:20:31 +00:00
|
|
|
see the [advanced ssh key guide](advanced-ssh) for more information and cool tips :)
|