Ubuntu 14.04 LTS installation experience

Source: Internet
Author: User
Tags ssh access ssh server

Ubuntu 14.04 LTS installation experience

I. About Raspberry Pi

Motivation

As I wrote at the end of an article, I found that ipv6 can be used as a reverse proxy, and Raspberry Pi can install Ubuntu 14.04, raspberry Pi, which was originally of interest, was immediately put on the purchase agenda.

Purchase

Raspberry Pi, housing and Heat Sink

I bought Raspberry Pi 2B and a shell and a heat sink.

HDMI to DVI conversion interface

Because the display does not support HDMI, and the popular conversion from HDMI to VGA is converted from digital signal to analog signal, the conversion interface is implemented by using a chip, for Raspberry Pi, there is endless debate about whether to choose passive or active sources for HDMI to VGA ports. Therefore, converting HDMI to DVI directly does not require chip conversion, which is more reliable and convenient. Note that the DVI port also has multiple models. Pay attention to the display support.

Power Supply

I have a SONY 1.5A power adapter for power supply. However, the Raspberry Pi statement says that the power supply is greater than 1.8A, but since I don't use USB ports very much, the Raspberry Pi of 1.5A works well.

MicroSD card

The microSD card is pitfall. What kind of memory card does Raspberry Pi need at first? I plan to directly use the idle SD card when I see someone saying it is a full-size SD card, class 10 should be able to meet the requirements. When the goods are received, the system will find that the microSD card is needed. I really don't know who is talking about the full-size SD card. So I placed an order and waited for a day to receive the microSD card and card reader.

USB HUB

Because it is used as a mini server, we bought a usb hub with power supply to drive the mobile hard drive.

Ii. Install Ubuntu 14.04 LTS

Install Ubuntu14.04 in full compliance with the steps in Ubuntu wiki.

Download and write

The image is downloaded according to the address provided in the wiki. After downloading the image, decompress. img for writing.

Write to the microSD card to install the software and steps officially provided by Raspberry Pi. Insert the microSD card into the card reader, and then insert it into the computer. Open Win32DiskImager, select the. img image you just decompressed, select the disk Letter of The microSD card, and then write.

Install and set Ubuntu

Note that this Ubuntu image does not contain openssh, so it must be directly connected to Raspberry Pi.

Plug in the keyboard, connect the monitor, and connect the power to Raspberry Pi. After Ubuntu is started, the user name and password are all ubuntu.

Enable root Account

For Ubuntu, it is much easier to directly use the root account.

Sudo passwd root

Enter the current user's password, which is ubuntu, and then enter the new root password twice.

Su root

Enter the root password to enter the root account.

Use all partition Spaces

At this time, Ubuntu does not use all SD card space. You need to manually set it.

1

Fdisk/dev/mmcblk0

Delete the second partition: press d and then press 2

Re-create the second partition: Press n, p, 2, enter, enter, and then press w

Then restart Ubuntu

1

Reboot

Input

Resize2fs/dev/mmcblk0p2

In this way, Ubuntu uses all SD card space.

Update Source

This is a required step.

Apt-get update

Apt-get upgrade

Set SWAP

This Ubuntu does not have a SWAP and needs to be created manually. However, there is a software that automatically completes SWAP settings. This software sets a SWAP partition with twice the RAM size by default, therefore, SWAP partitions of 2 GB are generated in Raspberry Pi.

Apt-get install dphys-swapfile

After the installation and configuration are complete, the SWAP configuration is complete.

Install an SSH server

This is required and allows SSH access.

Apt-get install openssh-server

In this case, even if the initialization settings are complete, because this image is equivalent to the minimal Ubuntu image, many software or dependencies are not installed, so many apt-get install may install a lot of dependencies along with it.

How to run Ubuntu Snappy Core in Raspberry Pi 2

Install NodeJS on the (Raspberry Pi) Raspberry Pi

Install Weston on Raspberry Pi

Linux OS for Raspberry Pi is available

Raspberry Pi (Raspberry Pi) trial note

Introduction to Raspberry Pi (Raspberry Pi) installation, IP configuration, and software source

Refer:
ARM/RaspberryPi-Ubuntu Wiki
INSTALLING OPERATING SYSTEM IMAGES USING WINDOWS

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.