1
0
Fork 0
mirror of https://github.com/SlavikMIPT/tgcloud.git synced 2025-02-12 11:12:09 +00:00
No description
Find a file
2019-07-10 00:39:11 +03:00
.github/ISSUE_TEMPLATE Update issue templates 2018-09-02 22:10:34 +03:00
dedupfs hotfix - problem with download switched from pipe to NamedTemporaryFile 2019-07-08 12:01:30 +03:00
doc Добавление документации 2018-08-12 19:33:33 +03:00
img ignore secret.py 2019-07-10 00:34:16 +03:00
.gitignore ignore secret.py 2019-07-10 00:34:16 +03:00
__init__.py working prototype(slow) 2019-06-14 12:41:57 +03:00
_config.yml Set theme jekyll-theme-slate 2018-09-02 09:00:19 +03:00
CNAME Create CNAME 2018-09-02 12:06:23 +03:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-09-02 22:09:10 +03:00
download_service.py Update download_service.py 2019-07-08 12:51:01 +03:00
LICENSE working prototype(slow) 2019-06-14 12:41:57 +03:00
README.md Update README.md 2019-07-10 00:39:11 +03:00
requirements.txt telethon==0.19.1 2019-06-16 18:38:44 +03:00
secret.py.template secret.py.template has been added 2019-07-09 17:21:10 +03:00
telegram_client_x.py #version 1.1 2019-07-08 08:01:07 +03:00
telegram_create_session.py #version 1.1 2019-07-08 08:01:07 +03:00
tgcloud-schematics.xml Added tgcloud-schematics.xml 2018-09-03 02:43:06 +03:00
tgcloud.service #version 1.1 2019-07-08 08:01:07 +03:00
Untitled Diagram.png project-block-sheme.png 2018-09-03 02:39:09 +03:00
Untitled Diagram.xml ModulesDiagram.xml 2018-09-03 02:34:57 +03:00

tgcloud

UNDER DEVELOPMENT v1.1

  • secret.py : rename secret.py.template, insert api_hash and api_id obtained with https://my.telegram.org

  • Install Python2.7 and Python3.6

  • Clone the repository

cd ~
git clone https://github.com/SlavikMIPT/tgcloud.git
  • Install requirements for Python3.6

sudo pip3 install -r requirements.txt

  • Create a session by running from the project folder

python3.6 telegram_create_session.py

  • Install fuse bindings

sudo yum install python-fuse

  • Create Mount Folder

mkdir storage

  • Run VFS from the project folder:

debug:

python2.7 dedupfs/dedupfs.py -df --block-size 20971520 -o auto_unmount -o hard_remove storage/

as a service:

replace <username> in tgcloud.service

sudo cp tgcloud.service /ect/systemd/system/
sudo systemctl enable tgcloud.service
sudo systemctl daemon-reload
sudo systemctl start tgcloud.service
sudo systemctl status tgcloud.service -l

Version 1.1

It works more vigorously, but still a raw prototype - just POC

Can crash, it is unstable and slow in some cases .

For tests, it is better to use a separate telegram profile.

If banned - mail recover@telegram.org

You can try to use web based filebrowser or SFTP

You are welcome to collaborate - contact Telegram: @SlavikMIPT Channel: @MediaTube_stream