1#刷Firefly-RK3288_Android4.4_201412290906.img
启动后刷linux-boot-miniroot.img 写到 recovery 分区,misc.img 写到 misc 分区。
2#建立TF
a,插TF到rk3288, fdisk -l
b,fdisk /dev/mmcblk1
d (选择d,w删除所有分区)
选择n 新建一个分区,
fdisk /dev/mmcblk1 -l
mkfs.ext4 -E nodiscard /dev/mmcblk1p1 //格式化此分区
mount /dev/mmcblk1 /mnt
3#设置网络
miniroot# udhcpc
4#下载ubuntu-core-armf.tar.gz
wget -P /mnt http://cdimage.ubuntu.com/ubuntu-core/releases/14.04/rele
ase/ubuntu-core-14.04-core-armhf.tar.gz
5#指定ttyFIQ0
2# 添加ubuntu1404-core 串口登录问题
$ sudo vi etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
start ttyFIQ0
exit 0
6#$ sudo vi /etc/init/ttyFIQ0.conf //内容如下:
# console - getty
#
# This service maintains a getty on console from the point the system is
# started until it is shut down again.
#add "-a root" for console root
start on stopped rc RUNLEVEL=[2345] and container CONTAINER=lxc
stop on runlevel [!2345]
respawn
exec /sbin/getty -a root -L 115200 ttyFIQ0 vt100
7##设置ubuntu_root 网络
root@rk3288:~# echo auto eth0 > /etc/network/interfaces.d/eth0
root@rk3288:~# echo iface eth0 inet dhcp >> /etc/network/interfaces.d/eth0
root@rk3288:~# ln -fs ../run/resolvconf/resolv.conf /etc/resolv.conf
root@rk3288:~# ifup eth0
8##安装lunbuntu-desktop
#apt-get install lubuntu-desktop
ERROR!
失败,修改vi /etc/apt/souces.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports multiverse universe restricted main
# deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-backports multiverse universe restricted main
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse
9#ubuntu 自动进入desktop ,
要使用root自动登录,需要修改三个地方:
vi /etc/lightdm/lightdm.conf.d/20-lubuntu.conf
[SeatDefaults]
autologin-user=root
autologin-user-timeout=0
user-session=Lubuntu
10#Ubuntu14.04 root登陆错误“Error found when loading /root/.profile
vi /root/.profile
/*最后一行modify to*/
msg n
modify to
tty -s && mesg n
ubuntu修改用户名
正确的命令为:
id user_old
usermod -m -d /home/user_new -u 1001 user_old;
或
usermod -d /home/user_new -m -u 1001 user_old;
最后,再改变用户名和组名为user2:
usermod -l user_new user_old;
groupmod -n user_new user_old
id dou
root@rk3288:~# id dou
uid=1000(dou) gid=1000(dou) groups=1000(dou),27(sudo)
12#