diff --git a/README.md b/README.md index 7974ad1..37f5ce4 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,31 @@ # tgcloud ## UNDER DEVELOPMENT -## Opensourсe Virtual Filesystem for Telegram -Synchronizes and structures files downloaded to Telegram. -- Stores only metadata, accessing raw data only when loading files. -- Loading speed is up to 240Mbit/s per session -- Multiplatform: provides standard volumes which can be mounted on linux/win/mac... -- Opensource -### Project structure: -**tgcloud:** linux based docker container -* **redis** - updates, rpc, communication -* **tfs:** FUSE based VFS module - * [python-fuse](https://github.com/SlavikMIPT/tfs) - interface to linux kernel FS - * redis storage - FS struct, meta, telegram file_id,settings - * rq communication interface - * docker -* **file_telegram_rxtx** - telegram read/write driver - * [telethon(sync)](https://github.com/SlavikMIPT/Telethon) by [@Lonami](https://github.com/Lonami) - telegram access, multithreaded downloading/uploading - * improved and tested by [@SlavikMIPT](https://github.com/SlavikMIPT) - load speed 240Mb/s - * rq communication interface - * docker -* **polling daemon** - * [telethon(asyncio)](https://github.com/SlavikMIPT/Telethon) - updates from telegram, synchronization, hashtags - * rq communication interface - * docker -* **client** - * telegram authorization interface - * [filebrowser](https://github.com/SlavikMIPT/filebrowser) - opensource golang filebrowser - * windows service - * telegram desktop client with filebrowser - * settings, statistics, monitoring... - * rq communication interface - * docker -![Diagram](/img/ProjectDiagram.png) +- Необходимо получить api_hash и api_id на my.telegram.org и вставить эти данные вместе с номером телефона вашего аккаунта в tg_access.py + +- Создать сессию запустив из папки с проектом и введя код подтверждения + +```python3.6 download_service.py``` + +- Установить fuse bindings + +```sudo yum install python-fuse``` + +- Создать папку для монтирования + +```mkdir storage``` + +- Запустить VFS: + +с отладкой + +```python dedupfs/dedupfs.py -df --block-size 10240000 storage/``` + +в фоне + +```python dedupfs/dedupfs.py --block-size 10240000 storage/``` + +- Можно, например указать эту папку как источник для [filebrowser](https://github.com/filebrowser/filebrowser) You are welcome to collaborate - contact Telegram: [@SlavikMIPT](t.me/SlavikMIPT) -Channel: [@MediaTube_stream](t.me/MediaTube_stream) \ No newline at end of file +Channel: [@MediaTube_stream](t.me/MediaTube_stream)