Skip to content

Commit

Permalink
add mount dir spec, fix lomo-frame doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Aug 25, 2021
1 parent 5e44e56 commit 5e0fa37
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 8 deletions.
29 changes: 27 additions & 2 deletions content.zh/docs/Installation/lomo-frame/_index.md
Expand Up @@ -32,7 +32,32 @@ sudo apt install lomo-frame

如果您已经安装了Lomo-frame程序,它会在开机后自动启动。

如果树莓派没有连上网络,您需要先将其连上网络,如果您使用WiFi,先连上HDMI和键盘,然后重启设备,按照屏幕上的提示进入命令行并登陆,接下来可以使用命令`wifi_switch client [wifi-ssid] [wifi-password]`, 用您自己的配置替换"[wifi-ssid]"和"[wifi-password]"。
如果树莓派没有连上网络,您需要先将其连上网络,如果您使用WiFi,先连上HDMI和键盘,然后重启设备,按照屏幕上的提示进入命令行并登陆,接下来可以使用命令`wifi_switch.sh client [wifi-ssid] [wifi-password]`, 用您自己的配置替换"[wifi-ssid]"和"[wifi-password]"。

{{< hint warning >}}
您有可能会碰到"Wi-Fi is currently blocked by rfkill"的问题,可以执行下面的命令检查一下WiFi是否被禁用:

```
pi@raspberrypi:~ $ sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
```

您可以使用下面的命令来启用WiFi:

```
sudo rfkill unblock 0
```

这里“0”是上面Wireless LAN的序号。

启用之后您可以再尝试`wifi_switch.sh`

{{< /hint >}}

网络设置完成后,重启,会显示QRCode,您可以到Lomorage iOS APP的设置页面,注册相框,然后您就可以使用手机应用程序来分享照片给数码相框。

Expand Down Expand Up @@ -145,7 +170,7 @@ sudo sed -i "s/media_type =.*/media_type = all/" /opt/lomorage/var/video_looper.

- 2. 设置WiFi连接

键盘连接到Raspberry Pi zero W并登陆, 如果您是Lomorage的树莓派镜像,可以使用命令`wifi_switch client [wifi-ssid] [wifi-password]`, 用您自己的配置替换"[wifi-ssid]"和"[wifi-password]"。如果使用其他系统,您可以参考网上其他资料来设置WiFi连接。
键盘连接到Raspberry Pi zero W并登陆, 如果您是Lomorage的树莓派镜像,可以使用命令`wifi_switch.sh client [wifi-ssid] [wifi-password]`, 用您自己的配置替换"[wifi-ssid]"和"[wifi-password]"。如果使用其他系统,您可以参考网上其他资料来设置WiFi连接。

- 3. 检查主树莓派的IP地址

Expand Down
Expand Up @@ -143,7 +143,7 @@ sudo apt install lomo-base lomo-vips lomo-backend lomo-web lomo-frame -y
ExecStart=/opt/lomorage/bin/lomod -b /opt/lomorage/var --mount-dir /media/pi --max-upload 1 --max-fetch-preview 3
```

**请确保您的用户有上面设置的"mount-dir"的读写权限**
**请确保您的用户有上面设置的"mount-dir"的读写权限, 另外改参数必须是mount的父目录,比如mount到"/media/pi/disk0"下面,就必须指定为"/media/pi"**

### 4. 运行

Expand Down
29 changes: 27 additions & 2 deletions content/docs/Installation/lomo-frame/_index.md
Expand Up @@ -36,7 +36,32 @@ Once you have Lomo-frame running, it will show a QRCode on the screen, and you c

If you have Lomo-frame installed, it will launch on boot.

If the Raspberry Pi is not connected to the network, you need to connect it first, if you prefer to use WiFi, connect HDMI and keyboard with Raspberry Pi and reboot, follow the instruction on screen to enter in terminal and login Raspberry Pi, then you can use the command `wifi_switch client [wifi-ssid] [wifi-password]`, replace "[wifi-ssid]" and "[wifi-password]" with those of your wifi network.
If the Raspberry Pi is not connected to the network, you need to connect it first, if you prefer to use WiFi, connect HDMI and keyboard with Raspberry Pi and reboot, follow the instruction on screen to enter in terminal and login Raspberry Pi, then you can use the command `wifi_switch.sh client [wifi-ssid] [wifi-password]`, replace "[wifi-ssid]" and "[wifi-password]" with those of your wifi network.

{{< hint warning >}}
You probably will have the problem that "Wi-Fi is currently blocked by rfkill". You can confirm this by running:

```
pi@raspberrypi:~ $ sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
```

And you can enable WiFi by running:

```
sudo rfkill unblock 0
```

assuming 0 is the index of Wireless LAN.

After this, you can try `wifi_switch.sh` again.

{{< /hint >}}

Once setup network, reboot and it will show a QRCode, you can go to "Settings" Tab in Lomorage iOS APP to register the frame, then you can use either Lomorage iOS APP or Lomorage Android APP to share photos with the digital frame.

Expand Down Expand Up @@ -149,7 +174,7 @@ You can follow the instructions on the top of the page.

- 2. Setup WiFi connection

Connect keyboard with Raspberry Pi zero W and login, if you installed Lomorage Raspberry Pi OS image, the default user name is "lomoware" and password is "lomorage", you can use the command `wifi_switch client [wifi-ssid] [wifi-password]`, replace "[wifi-ssid]" and "[wifi-password]" with those of your wifi network; otherwise, you can refer to other docs online to set the WiFi connection.
Connect keyboard with Raspberry Pi zero W and login, if you installed Lomorage Raspberry Pi OS image, the default user name is "lomoware" and password is "lomorage", you can use the command `wifi_switch.sh client [wifi-ssid] [wifi-password]`, replace "[wifi-ssid]" and "[wifi-password]" with those of your wifi network; otherwise, you can refer to other docs online to set the WiFi connection.

- 3. Check IP address of primary Raspberry Pi

Expand Down
Expand Up @@ -137,13 +137,13 @@ sudo apt install lomo-base lomo-vips lomo-backend lomo-web lomo-frame -y

You may need to specify the mount directory if the USB drive is not mounted in "/media" directory.

For example if you are using PCManFM, then the mount directory will be "/media/pi". To specify the mount directory to be "/media/pi", modify `ExecStart` in "/lib/systemd/system/lomod.service", and add parameter "--mount-dir" as below
For example if you are using PCManFM, then the mount directory will be "/media/pi". To specify the mount directory to be "/media/pi", modify `ExecStart` in "/lib/systemd/system/lomod.service", and add parameter "--mount-dir" as below, **this parameter should be the directory mount, not the sub-directory**

```bash
ExecStart=/opt/lomorage/bin/lomod -b /opt/lomorage/var --mount-dir /media/pi --max-upload 1 --max-fetch-preview 3
```

**Make sure the user has the r/w permission for the "mount-dir" set above**
**Make sure the user has the r/w permission for the "mount-dir" set above, this parameter should be the parent directory mounted, for example if it's mounted as "/media/pi/disk0", then you should use "/media/pi/".**

### 4. Run

Expand Down
2 changes: 1 addition & 1 deletion public
Submodule public updated 55 files
+1 −1 404.html
+1 −1 categories/index.html
+1 −1 docs/Highlight/index.html
+1 −1 docs/Installation/external-access/index.html
+1 −1 docs/Installation/index.html
+13 −5 docs/Installation/lomo-frame/index.html
+1 −1 docs/Installation/lomorage-client/index.html
+1 −1 docs/Installation/lomorage-client/installation-andriod/index.html
+1 −1 docs/Installation/lomorage-client/installation-ios/index.html
+1 −1 docs/Installation/lomorage-client/installation-web/index.html
+1 −1 docs/Installation/lomorage-importer/index.html
+1 −1 docs/Installation/lomorage-service/index.html
+1 −1 docs/Installation/lomorage-service/installation-armbian/index.html
+1 −1 docs/Installation/lomorage-service/installation-docker/index.html
+1 −1 docs/Installation/lomorage-service/installation-osx/index.html
+5 −5 docs/Installation/lomorage-service/installation-raspbian/index.html
+1 −1 docs/Installation/lomorage-service/installation-ubuntu/index.html
+1 −1 docs/Installation/lomorage-service/installation-win/index.html
+1 −1 docs/Roadmap/index.html
+1 −1 docs/index.html
+1 −0 en.search-data.min.3898f69b6735f186e4dc8445dffc88b2e1e830989de155e28c3f6d3588fe13f7.js
+1 −0 en.search-data.min.c3008842980de5c69b7aa5f83cc1f99406f605f75c2ddedf10effc44ffc33969.js
+11 −0 en.search.min.ed58d618d8d80ce767e0702772a59ea96d7994527c754320e9c3b36440ef48e1.js
+11 −0 en.search.min.fab0348188e5376e2cb9dfe4ee13d86726c90e6d2f147f9cecff0c1a572d026a.js
+1 −1 en/sitemap.xml
+1 −1 index.html
+1 −1 sitemap.xml
+1 −1 tags/index.html
+1 −0 zh.search-data.min.247766c28ddb860f9929c5ec1b2f6ab920c71324ad1041742c6b6683675ecf35.js
+1 −0 zh.search-data.min.8df3d49ce6d7d6490edb326dd905ef50b1f7c64f5670eed91f1ba1da385c8cbb.js
+11 −0 zh.search.min.e3df5705a7e7a620980acbdeff02837c19c08d6a026e9c856488012fca8b2738.js
+11 −0 zh.search.min.f95b2bfdf1fb17410c92bfc1107d2b055d8e0a322e51523891440e2b7e9c0de7.js
+1 −1 zh/404.html
+1 −1 zh/categories/index.html
+1 −1 zh/docs/Highlight/index.html
+1 −1 zh/docs/Installation/external-access/index.html
+1 −1 zh/docs/Installation/index.html
+15 −12 zh/docs/Installation/lomo-frame/index.html
+1 −1 zh/docs/Installation/lomorage-client/index.html
+1 −1 zh/docs/Installation/lomorage-client/installation-andriod/index.html
+1 −1 zh/docs/Installation/lomorage-client/installation-ios/index.html
+1 −1 zh/docs/Installation/lomorage-client/installation-web/index.html
+1 −1 zh/docs/Installation/lomorage-importer/index.html
+1 −1 zh/docs/Installation/lomorage-service/index.html
+1 −1 zh/docs/Installation/lomorage-service/installation-armbian/index.html
+1 −1 zh/docs/Installation/lomorage-service/installation-docker/index.html
+1 −1 zh/docs/Installation/lomorage-service/installation-osx/index.html
+4 −4 zh/docs/Installation/lomorage-service/installation-raspbian/index.html
+1 −1 zh/docs/Installation/lomorage-service/installation-ubuntu/index.html
+1 −1 zh/docs/Installation/lomorage-service/installation-win/index.html
+1 −1 zh/docs/Roadmap/index.html
+1 −1 zh/docs/index.html
+1 −1 zh/index.html
+1 −1 zh/sitemap.xml
+1 −1 zh/tags/index.html

0 comments on commit 5e0fa37

Please sign in to comment.