[Cubieboard] install lubuntu server for sdcard

Source: Internet
Author: User

Hardware: cubieboard2

System: Ubuntu 14.04 Based on VMware Virtual Machine

Image: cb2-lubuntu-server-tsd-tfcard-v2.0.img.gz [1] (base on Ubuntu 14.04 optimized by lubuntu)

 

Connect the TF cartoon to the Ubuntu virtual machine through the USB interface, and the system automatically mounts it to the/Media/<username> directory.

 

1. Prepare the TF card

 

Run the fdisk command to view the device list:

$ sudo fdisk -l...Disk /dev/sdb: 15.9 GB, 15926820864 bytes64 heads, 32 sectors/track, 15189 cylinders, total 31107072 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000   Device Boot      Start         End      Blocks   Id  System/dev/sdb1            2048       26623       12288   83  Linux/dev/sdb2           26624     7744511     3858944   83  Linux

 

First, ensure that the TF card is not mounted to other nodes in the system (the automatic mount point is/Media/Username/Directory ).

$ sudo umount /dev/sdb1$ sudo umount /dev/sdb2

 

2. Clear the TF card

 

$ export card=/dev/sdb$ sudo dd if=/dev/zero of=${card} bs=1024 seek=544 count=128128+0 records in128+0 records out131072 bytes (131 kB) copied, 0.101418 s, 1.3 MB/s

 

3. Copy the image to the TF card

 

The replication process takes several minutes (about 6 minutes this time). wait patiently.

$ sudo dd if=cb2-lubuntu-server-tsd-tfcard-v2.0.img of=/dev/sdb1662976+0 records in1662976+0 records out851443712 bytes (851 MB) copied, 389.627 s, 2.2 MB/s

 

4. Change the Default User Password

 

The first thing to do when entering the system is to change the default account password. The password settings should be as robust as possible [2].

Note:

[1] The uenv.txt file of the image file is incorrectly configured, which will cause the system to fail to start normally. The solution is as follows:

After the image file is copied, run the fdisk command to view the device:

$ sudo fdisk -l...Disk /dev/sdb: 15.9 GB, 15926820864 bytes64 heads, 32 sectors/track, 15189 cylinders, total 31107072 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000   Device Boot      Start         End      Blocks   Id  System/dev/sdb1            2048       26623       12288   83  Linux/dev/sdb2           26624     1625199      799288   83  Linux...

 

Mount/dev/sdb1 to the system, for example,/Media/Username/Sdb1:

$ sudo mount /dev/sdb1 /media/username/sdb1

 

Go to the mount point, edit the uenv.txt file, and change line 1 mmcblk1p2 to mmcblk0p2:

$ sudo vi uEnv.txt root=/dev/mmcblk0p2extraargs=console=tty0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard

 

[2] for setting static IP addresses, this version of linaro can only set DNS-nameservers 192.168.1.1 and cannot use 8.8.8.8.8. Otherwise, the system cannot start.

[Cubieboard] install lubuntu server for sdcard

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.