Skip to content

Commit

Permalink
better nextcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlcocerT committed Jul 7, 2024
1 parent bedc801 commit 0d6cc53
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Raspberry Pi and IoT 101

[![image](https://img.shields.io/badge/YouTube-Channel-red)](https://youtube.com/@JAlcocerTech)

Start your journey with Raspberry Pi and explore its role in IoT, embedded computing, and data analytics, all on one compact board.

You can also [get started with Linux](https://jalcocert.github.io/Linux/) with a RPi.
Expand Down
33 changes: 32 additions & 1 deletion Z_OtherProjects/2024-12-31-rpi-llm-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,35 @@ https://github.com/tensorchord/Awesome-LLMOps?tab=readme-ov-file#llmops

* Open-source tools for prompt testing and experimentation, with support for both LLMs (e.g. OpenAI, LLaMA) and vector databases (e.g. Chroma, Weaviate, LanceDB).

https://github.com/hegelai/prompttools
https://github.com/hegelai/prompttools

---

## FAQ

### How to Enhance a Raspberry Pi for AI

* Edge TPU on RPi - Coral Edge TPU (Tensor Processing Unit - an USB acccelerator )

TPU (Tensor Processing Unit):

Focus: TPUs are specifically **designed for running Google's TensorFlow** machine learning framework. They are optimized for high-performance matrix multiplication, a fundamental operation in many deep learning algorithms.
Architecture: TPUs are custom-designed by Google with a focus on maximizing performance for TensorFlow workloads. They prioritize speed and efficiency for specific tasks within the TensorFlow ecosystem.

> You will hear more and more about NPU - Neural Processing Units

While both are designed to **handle AI workloads**, they have distinct differences in their focus, architecture, and availability.

NPUs are designed to mimic the structure and function of the human brain, excelling at tasks that involve large-scale parallel processing.

They are particularly well-suited for **various AI applications**, including:

- 🖼️ Image recognition
- 💬 Natural language processing
- 🗣️ Speech recognition


NPUs typically utilize a manycore architecture with specialized instructions and data formats optimized for AI algorithms. This allows them to handle complex neural networks efficiently.

NPUs are often integrated into mobile processors from companies like Apple, Huawei, and Samsung. They are also available as standalone chips from some manufacturers.
16 changes: 16 additions & 0 deletions Z_OtherProjects/DRON.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
* Haga un PEQUEÑO dron Arduino con cámara FPV: ¿volará?

https://www.youtube.com/watch?v=Sa6EslOHsI0

* Haga un avión de papel FPV RC que vuele | ESP32


https://www.youtube.com/watch?v=hDjBi0ErDdw

* Open Source Motion Capture for Autonomous Drones

https://www.youtube.com/watch?v=0ql20JKrscQ
https://github.com/jyjblrd/Low-Cost-Mocap
https://github.com/jyjblrd/Low-Cost-Mocap?tab=MIT-1-ov-file#readme
> Low cost motion capture system for room scale tracking
41 changes: 39 additions & 2 deletions _posts/2022-09-01-selfhosting-nextcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
# networks: ["nginx_nginx_network"] #optional

app:
image: nextcloud #latest
image: nextcloud #latest #27.0.0
container_name: nextcloud
restart: always
ports:
Expand Down Expand Up @@ -99,4 +99,41 @@ davs://nextcloud.yourgreatname.duckdns.org/nextcloud/remote.php/dav/files/USERNA

> If your server connection is not HTTPS-secured, use dav:// instead of davs://.
Alternatively - you can [try FileBrowser](https://fossengineer.com/selfhosting-filebrowser-docker/)
Alternatively - you can [try FileBrowser](https://fossengineer.com/selfhosting-filebrowser-docker/)

### How to use a External Drive with NextCloud

```sh
lsblk
lsblk -a
lsblk -f
sudo fdisk -l

```

Once you have identify the drive, format it (for example) with NTFS:

```sh
#sudo mkfs.ntfs /dev/sda1 #make sure it is /dev/sda1 as well for you
#sudo mkfs.ntfs -Q /dev/sda1 #quick version
```

```sh
sudo mkdir /usbdrive
sudo mount /dev/sda1 /usbdrive
```

If you `df -h` - you will see the drive mounted.

And you can always copy the data with:

```sh
#sudo cp -R ./files/* /mnt/mydrive/
sudo rsync -avh --progress ./files/* /mnt/mydrive/ #with progress
```

And you can check the full size of the copied folder

```sh
du -sh ./files
```

0 comments on commit 0d6cc53

Please sign in to comment.