1
0
Fork 0
mirror of https://github.com/SlavikMIPT/tgcloud.git synced 2025-02-12 11:12:09 +00:00
tgcloud/README.md

60 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2019-06-14 09:47:18 +00:00
# tgcloud
## UNDER DEVELOPMENT v1.1
2019-07-09 21:37:38 +00:00
![](img/demo.gif)
2019-07-09 21:29:10 +00:00
- `secret.py` : rename `secret.py.template`, insert `api_hash` and `api_id` obtained with https://my.telegram.org
2019-07-09 21:29:10 +00:00
- Install Python2.7 and Python3.6
2019-07-09 21:29:10 +00:00
- Clone the repository
```
cd ~
git clone https://github.com/SlavikMIPT/tgcloud.git
```
2019-07-09 21:29:10 +00:00
- Install requirements for Python3.6
`sudo pip3 install -r requirements.txt`
2019-07-09 21:29:10 +00:00
- Create a session by running **from the project folder**
`python3.6 telegram_create_session.py`
2019-07-09 21:29:10 +00:00
- Install fuse bindings
`sudo yum install python-fuse`
2019-07-09 21:29:10 +00:00
- Create Mount Folder
`mkdir storage`
2019-07-09 21:29:10 +00:00
- Run VFS **from the project folder**:
2019-07-09 21:29:10 +00:00
#### debug:
`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-09 21:29:10 +00:00
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
```
2019-07-09 21:29:10 +00:00
Version 1.1
2019-07-09 21:29:10 +00:00
It works more vigorously, but still a raw prototype - just POC
2019-07-09 21:29:10 +00:00
Can crash, it is unstable and slow in some cases .
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
2019-07-09 21:39:11 +00:00
You can try to use web based [filebrowser](https://github.com/filebrowser/filebrowser) or SFTP
2019-07-09 21:37:38 +00:00
2019-06-14 09:47:18 +00:00
You are welcome to collaborate - contact
Telegram: [@SlavikMIPT](t.me/SlavikMIPT)
Channel: [@MediaTube_stream](t.me/MediaTube_stream)