ELE409 SPRING2018 LAB0

Similar documents
Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

Adafruit's Raspberry Pi Lesson 6. Using SSH

PiCloud. Building owncloud on a Raspberry PI

LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

The Microdrive and CF card are electrically compatible this means that a CF card reader can be used to program a Microdrive.

Lab E2: bypassing authentication and resetting passwords

Labs instructions for Enabling BeagleBone with TI SDK 5.x

Manually Mount Usb Flash Drive Ubuntu Server 12.04

Lab: Setting up PL-App with a Raspberry Pi

StampA5D3x/PortuxA5/PanelA5. Quickstart Guide

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

LAN Setup Reflection

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

Lab 3a Using the vi editor

Digital Free Library. Created by Kirby Griese. Last updated on :35:15 PM UTC

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

The TinyHPC Cluster. Mukarram Ahmad. Abstract

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

By: Yushi Wang Partners: Shen Yue and Yubing Xu Group 6. How to Setup Pandaboard ES Software Environment for UAV Project

SAMA5D3x-CM Instruction to program images with PEEDI

WA2342 NoSQL Systems Comparison. Lab Server VM Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Getting Started with PetaLinux SDK

CIS 76 Ethical Hacking Building an open source Pentest Sandbox, carrying out a Remote Code Execution exploit, and Remediating the RCE vulnerability.

CS CS Tutorial 2 2 Winter 2018

3. Click on the Download ZIP button under Raspbian Jessie, and select a folder to save it to.

XLink Kai Raspberry Pi Beginners Tutorial

Appliance Guide. Version 1.0

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on a Virtual Machine

Networks Lab Pod Diagram

Hawk Server for Linux. Installation Guide. Beta Version MHInvent Limited. All rights reserved.

Disk Imaging with Knoppix

Setting up a Chaincoin Masternode

How to Install a DHCP Server in Ubuntu and Debian

Linux Systems Administration Getting Started with Linux

Idea6410 Ubuntu User Manual V 0.19

Asus_TFTP_Flash. tftp client is enabled in the default installation of WinXP

Parallel Programming Pre-Assignment. Setting up the Software Environment

Pengwyn Documentation

Lab Working with Linux Command Line

How to Back-Up a fit-pc2 Using Only a USB Stick (and some creative partitioning)

IT Essentials v6.0 Windows 10 Software Labs

Quick Installation Guide for RHV/Ovirt

Setting up my Dev Environment ECS 030

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

Lab Zero: A First Experiment Using GENI and Jacks Tool

Installation Manual InfraManage.NET Installation Instructions for Ubuntu

IT341 Introduction to System Administration Project II Setting up our LAN

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

SANOG VI IP Services Workshop: FreeBSD Install

Experiments 1 How to set up Raspberry Pi B+ The little computer you can cook into DIY tech projects

CyberP3i Hands-on Lab Series

= Session-(1.4) Preparing the Workstation for the Lab / OS Installation = Session-(1.4) Preparing the Workstation for the Lab / OS Installation

Setting Up a Linux Operating System

Access Server: User's and Developer's Guide <<< Previous Next >>>

Preparing SD card for Pi

VIRTUAL MACHINES. By Seth Lemanek

Configuring the BeagleBone Black s Ethernet Port for SSH Access

Installation of the OS

Table of Contents 1 V3 & V4 Appliance Quick Start V4 Appliance Reference...3

1. Conventions in this tutorial Introduction Check and change configuration settings as needed Start Digi ESP...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Development Environment Embedded Linux Primer Ch 1&2

OpenROV. Update Software Image From SD Card

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

Lab Zero: A First Experiment Using GENI and Jacks Tool

How to Recover Data with Linux

VisibleThread - Server Configuration Help

CHAPTER III PLANNING

Installing Archivematica v0.7 On A Custom-Sized Xubuntu v Virtual Machine Hosted in VirtualBox v4.0.4

RETROPIE INSTALLATION GUIDE

Different ways to use Kon-Boot

14. Configuring Telnet in Knoppix

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Lab4 Embedded Linux. Introduction

Comodo Dome Data Protection Software Version 3.8

Partitioning and Formatting Guide

CIS 192 Linux Lab Exercise

IT 341 Introduction to System Administration Project I Installing Ubuntu Server on an Virtual Machine

Dell IoT Gateway 5500 Edge MicroServer Setup Guide

15-122: Principles of Imperative Computation

Microprocessor-Based Systems (E155)

cpouta exercises

Controller Installation

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Build your own NAS with OpenMediaVault

INSTALLATION. Security of Information and Communication Systems. Table of contents

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Jackson State University Department of Computer Science CSC 437/539 Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

Post Ubuntu Install Exercises

Sun VirtualBox Installation Tutorial

Spreedbox Getting Started Guide

OPENSTACK CLOUD RUNNING IN A VIRTUAL MACHINE. In Preferences, add 3 Host-only Ethernet Adapters with the following IP Addresses:

Quick Guide. Full Install on Hog 4 OS Consoles Jan 4, 2017

BeagleBone Black: Installing Operating Systems

John the Ripper on a Ubuntu MPI Cluster

Installing MediaWiki using VirtualBox

GIGABYTE. Software Reference Guide for MP30 (APM) Platform R01. Document Version:


Transcription:

ELE409 SPRING2018 LAB0 Getting familiar with the LXDE system Objectives: Pre-Lab: 1. Burn the linux system onto a micro-sd card 2. Get familiar with basic linux commands 3. Be able to communicate with and send files from the linux systems that will be used Obtain a micro-sd card that is at least 8 GB. You will also need an appropriate reader so that you can interface with the lab computers. Obtain the DE1_SoC_MTL2_LXDE.img from the Terasic website. Burn Micro-SD card 1. Open up a terminal window. 2. First we need to delete all the partitions on the sd card that came from the factory. We are going to use the fdisk command to do this. First plug in your SD card and type: >> fdisk -l 3. Find your SD card. It should be something like sdb or sdc. Check the sizes to find which drive is yours. Remember how many partitions the drive has. This will be indicated by the number after the sd. So you might see DEVICE BOOT START END SECTORS TYPE /dev/sdb1 /dev/sdb2 /dev/sdb3 FAT16 FAT32 NTFS This means that the b device has 3 partitions 4. Now open up the program called disks. 5. Select the partitions and hit the - minus button to delete all the partitions until there is only 1 with free space on it. 6. Navigate to the folder containing the LXDE.img file using the cd command: >> cd path/of/de1_soc_mtl2_lxde.img

7. Use the dd command to burn the image file onto the sd card. 8. Now type: >> dd if=de1_soc_mtl2_lxde.img of=/dev/sdb bs=1m 9. Where sdb is sdb or sdc depending on your drive. 10. dd stands for data dump, if stands for input file, of stands for output file, bs stands for block size. 11. Wait. This might take a while. Load FPGA with sd card image 1. Put SD card into FPGA. 2. Make sure Mode Select is set to all zeros MSEL = 00000. 3. Press the power button. 4. If everything was done correctly the seven seg displays will all show 8 s after about 15 seconds. Two penguins will appear on the screen after about 30 seconds. Serial Monitoring of LXDE system 1. Open up a terminal window. 2. Type: >> screen /dev/ttyusb0 115200 3. You should then be inside shell window for the LXDE system. 4. To exit the shell press CTRL-a then \ then type yes and enter. 5. If there is ever an error about a detached screen. Find the screen session you want to end: >> screen -ls 6. Then end it. >> screen -X -S session# kill Using the LXDE system 1. Using this LXDE system should be very similar to the Ubuntu that you have in the lab. 2. The biggest difference is that you are the root user on the LXDE system. 3. Username: root 4. We need to add a password in order to use certain commands. Type: >> passwd 5. Then enter in your password twice. I suggest something short and easy to remember like rhody

Changing the MAC address 1. Because the hardware on the boards are uploaded from identical designs, the boards all have the same ip addresses. When the boards attempt to lease ip addresses they end up receiving the same one. 2. To fix this we are going to permanently change the mac address on the board. 3. Use the screen command to connect to the board. 4. type: vi /etc/network/interfaces 5. This will open up the interfaces configuration file. 6. In order to insert text press i then to save hit escape to get to the command line and type :wq and press enter. w is for write and q is for quit. 7. add the following lines underneath the existing 2 lines where XX corresponds to the mac address assigned to you: auto eth0 iface eth0 inet dhcp hwaddress ether 02:00:00:00:00:XX 8. save and quit the text editor. 9. reboot the device. 10. Use the ifconfig command to check that the mac address matches your assigned address: >> ifconfig grep HWaddr Checking for internet 1. Make sure the DE1SOC ethernet port is connected. 2. From terminal window on your desktop use the screen command to get a command line interface for the LXDE. 3. Use the ifconfig command to see if the LXDE system has an ip address. 4. Open up a terminal window and type: >> ifconfig grep inet addr: 5. The board s ip address should be the first result that comes up. Remember that address. Adding packages 1. In order to get certain functionality it is necessary to add packages to the LXDE system.

2. To do this we use the apt-get command which will look at your sources list for the package specified. Unfortunately the sources list is outdated and incorrect so we have to go in and amend the sources list. 3. First we will want to make a backup of the current sources list just in case something happens and we need it. It is good practice to do this when editing system files. Type: >> cd /etc/apt >> cp sources.list sources.list.bak 4. Now we want to edit the file. Type: >> vi sources.list 5. Change the deb and deb-src sources to look like this: deb http://old-releases.ubuntu.com/ubuntu quantal main universe deb-src http://old-releases.ubuntu.com/ubuntu quantal main universe 6. Now save and return to the command line using the same controls as in step 6 of Changing the MAC Address. 7. We must now update all the packages. Type: >> sudo apt-get update 8. Now we need to install a new package. For the next section we will need an openssh server so type: >> sudo apt-get install openssh-server --fix-missing 9. This will take a little while to finish. Connecting via ssh 1. Open a terminal window on your desktop and type: >> ssh root@ipaddress 2. You will be prompted for a password. Type it in and press enter 3. You should now see the same shell that you had using the screen command. 4. This will be very important for sending files to and from the board. 5. To exit the connection type: >> exit 6. If you get a warning that says that the remote host identification has changed remove the offending host key. This usually happens because you changed the OS or the ssh installation on the board (which is very possible given that we are messing around with that frequently). >> ssh-keygen -R desired.ip.address i. Where desired.ip.address is the address that you wish to connect to.

Install lighttpd and run demos 1. Install lighttpd on the board. >> sudo apt-get install lighttpd 2. We will be using CGI (common gateway interface). 3. Copy the cgi-bin folder from the lab0 folder to this path: /var/www/ this folder should contain some demo files >> scp -r path/of/cgi-bin root@ip.address:/var/www/ 4. Run the following commands. They have to do with permissions of the files: >> chmod u+s LEDMonitoringDemo.cgi >> chmod u+s bubbleleveldemo.cgi >> chmod u+s hardwarecontroldemo.cgi 5. Make a copy of the lighttpd.conf file on the board >> cd /etc/lighttpd >> cp lighttpd.conf lighttpd.conf.old 6. Copy lighttpd.conf from the lab0 folder to /etc/lighttpd/ 7. Restart the lighttpd server >> /etc/init.d/lighttpd restart 8. Using a web browser on a machine that is running on the same network, navigate to the address: http://board.ip/cgi-bin where board.ip is the ip address you found with ifconfig command. 9. Try using some of the demos.