Orange Pi Manual
Copy right by Shenzhen Xunlong Software Co., Ltd
www.orangepi.org
www.xunlong.tv
25
b. $ usermod -l zhangsan orangepi
Change orangepi account into
Zhangsan
c. $ groupmod -n zhangsan orangepi Change group
d. $ mv /home/ornagepi /home/zhangsan Change directory of original
orangepi
e. $ usermod -d /home/orangepi orangepi
Set this directory to orangepi
user's home directory
f. $ cat /etc/passwd
It should be shown as below:
After the modification of the above iterms, it can be used the new
account Zhangsan to land.
2) U Disk Automatic Mounted Configuration
a. sudo apt-get install usbmount
b. sudo vim /etc/udev/rules.d/automount.rules
ACTION=="add",KERNEL=="sdb*",
RUN+="/usr/bin/pmount
--sync
--umask 000 %k"
ACTION=="remove", KERNEL=="sdb*", RUN+="/usr/bin/pumount %k"
ACTION=="add",KERNEL=="sdc*",
RUN+="/usr/bin/pmount
--sync
--umask 000 %k"
ACTION=="remove", KERNEL=="sdc*", RUN+="/usr/bin/pumount %k"
c. udevadm control –reload-rules
It could refer to this:
http://unix.stackexchange.com/questions/134797/how-to-automatically-mou
nt-an-usb-de
vice-on-plugin-time-on-an-already-running-sy
3) System Source Configuration
Take Ubuntu as an example:
a. Open the source file
$ sudo vi /etc/apt/sources.list