You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
3.1 KiB
94 lines
3.1 KiB
<!doctype html> |
|
<html> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<title>My Learning Website</title> |
|
<link href="/styles/styles.css" rel="stylesheet" type="text/css"> |
|
<link href="/raspberrypi/styles/styles.css" rel="stylesheet" type="text/css"> |
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
|
<!--[if lt IE 9]> |
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
|
<![endif]--> |
|
</head> |
|
<body> |
|
|
|
<div class="banner"> |
|
<h1 class="courselink">Raspberry Pi Setup</h1> |
|
<h2 class="lecturer">Personal Project</h2> |
|
<h2 class="episodetitle">Useful Links</h2> |
|
</div> |
|
|
|
<article> |
|
<h2 class="sectiontitle">Basic Pi Setup</h2> |
|
<table> |
|
<tr> |
|
<th>Command</th> |
|
<th>What does it do?</th> |
|
</tr> |
|
<tr> |
|
<td>sudo deluser --remove-home pi</td> |
|
<td>Remove the pi user to give better security.</td> |
|
</tr> |
|
</table> |
|
<h2 class="sectiontitle">Useful Aliases</h2> |
|
<p>There are a couple of aliases I set up to make some simple Web Developments tasks a little bit quicker and easier.</p> |
|
<table> |
|
<tr> |
|
<th>Command</th> |
|
<th>Alias</th> |
|
<th>What does it do?</th> |
|
</tr> |
|
<tr> |
|
<td>cd /var/www/html</td> |
|
<td>html</td> |
|
<td>Takes the user directly to the folder containing the files for the website.</td> |
|
</tr> |
|
<tr> |
|
<td>sudo cp -Rf /home/philip/FTP/website/* /var/www/html/</td> |
|
<td>webcopy</td> |
|
<td>Copies all of the files that have been copied over from the development machine over to the live site.</td> |
|
</tr> |
|
<tr> |
|
<td>ps aux | grep cp</td> |
|
<td>copy_status</td> |
|
<td>Not really used anymore but can quickly check if the files are currently being copied to the website so I can avoid two copy jobs running simultaneously.</td> |
|
</tr> |
|
<tr> |
|
<td>tail -f /var/log/syslog</td> |
|
<td>logtail</td> |
|
<td>Quick way to check the end of the syslog file and to check for new entries.</td> |
|
</tr> |
|
<tr> |
|
<td>rsync -azvh /home/philip/FTP/website/* /var/www/html/</td> |
|
<td>mysync</td> |
|
<td>Similar to webcopy but syncs rather than copies the file so is much faster and removes the need to monitor to see if the job is currently running (Tales 2 or three seconds).</td> |
|
</tr> |
|
</table> |
|
</article> |
|
<div class="btngroup"> |
|
<button class="button" onclick="window.location.href='gettingstarted.html';"> |
|
Getting Started |
|
</button> |
|
<button class="button" onclick="window.location.href='apache.html';"> |
|
Apache |
|
</button> |
|
<button class="button" onclick="window.location.href='usefullinks.html';"> |
|
Useful Links |
|
</button> |
|
<button class="button" onclick="window.location.href='setup.html'"> |
|
Course Contents |
|
</button> |
|
<button class="button" onclick="window.location.href='/linux/linux.html'"> |
|
Raspberry Pi Page |
|
</button> |
|
<button class="button" onclick="window.location.href='/index.html'"> |
|
Home |
|
</button> |
|
</div> |
|
|
|
</body> |
|
</html>
|
|
|