2019-06-14 09:47:18 +00:00
|
|
|
# tgcloud
|
2019-07-08 05:01:07 +00:00
|
|
|
## UNDER DEVELOPMENT v1.1
|
2019-07-09 21:29:10 +00:00
|
|
|
!()[demo.gif]
|
|
|
|
- `secret.py` : rename `secret.py.template`, insert `api_hash` and `api_id` obtained with https://my.telegram.org
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
- Install Python2.7 and Python3.6
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
- Clone the repository
|
2019-07-08 05:01:07 +00:00
|
|
|
```
|
|
|
|
cd ~
|
|
|
|
git clone https://github.com/SlavikMIPT/tgcloud.git
|
|
|
|
```
|
2019-07-09 21:29:10 +00:00
|
|
|
- Install requirements for Python3.6
|
2019-07-08 05:01:07 +00:00
|
|
|
|
|
|
|
`sudo pip3 install -r requirements.txt`
|
2019-07-09 21:29:10 +00:00
|
|
|
- Create a session by running **from the project folder**
|
2019-07-08 05:01:07 +00:00
|
|
|
|
|
|
|
`python3.6 telegram_create_session.py`
|
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
- Install fuse bindings
|
2019-07-08 05:01:07 +00:00
|
|
|
|
|
|
|
`sudo yum install python-fuse`
|
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
- Create Mount Folder
|
2019-07-08 05:01:07 +00:00
|
|
|
|
|
|
|
`mkdir storage`
|
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
- Run VFS **from the project folder**:
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
#### debug:
|
2019-07-08 05:01:07 +00:00
|
|
|
|
|
|
|
`python2.7 dedupfs/dedupfs.py -df --block-size 20971520 -o auto_unmount -o hard_remove storage/`
|
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
#### as a service:
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
replace `<username>` in `tgcloud.service`
|
2019-07-08 05:01:07 +00:00
|
|
|
```
|
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
Version 1.1
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
It works more vigorously, but still a raw prototype - just POC
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
Can crash, it is unstable and slow in some cases .
|
2019-07-08 05:01:07 +00:00
|
|
|
|
2019-07-09 21:29:10 +00:00
|
|
|
For tests, it is better to use a separate telegram profile.
|
|
|
|
|
|
|
|
If banned - mail `recover@telegram.org`
|
2019-06-14 09:47:18 +00:00
|
|
|
|
|
|
|
You are welcome to collaborate - contact
|
|
|
|
Telegram: [@SlavikMIPT](t.me/SlavikMIPT)
|
2019-07-08 05:01:07 +00:00
|
|
|
Channel: [@MediaTube_stream](t.me/MediaTube_stream)
|