Orange Pi PC2 User Manual page 22

Table of Contents

Advertisement

Orange Pi Manual
c. $ groupmod -n zhangsan orangepi
d. $ mv /home/ornagepi /home/zhangsan
orangepi
e. $ usermod -d /home/orangepi orangepi
user's home directory
f. $ cat /etc/passwd
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*",
--umask 000 %k"
ACTION=="remove", KERNEL=="sdb*", RUN+="/usr/bin/pumount %k"
ACTION=="add",KERNEL=="sdc*",
--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
www.orangepi.org
Copy right by Shenzhen Xunlong Software Co., Ltd
Change group
It should be shown as below:
RUN+="/usr/bin/pmount
RUN+="/usr/bin/pmount
20
Change directory of original
Set this directory to orangepi
www.xunlong.tv
--sync
--sync

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents