mirror of
https://github.com/SlavikMIPT/tgcloud.git
synced 2025-03-09 15:40:14 +00:00
commit
efc882715f
3 changed files with 21 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ __pycache__
|
||||||
*.session
|
*.session
|
||||||
/secret.py.bk.py
|
/secret.py.bk.py
|
||||||
/test.py
|
/test.py
|
||||||
|
/secret.py
|
||||||
|
|
35
README.md
35
README.md
|
@ -1,38 +1,39 @@
|
||||||
# tgcloud
|
# tgcloud
|
||||||
## UNDER DEVELOPMENT v1.1
|
## UNDER DEVELOPMENT v1.1
|
||||||
- `secret.py` : переименовать`secret.py.template`, вставить `api_hash` и `api_id` полученные с https://my.telegram.org
|

|
||||||
|
- `secret.py` : rename `secret.py.template`, insert `api_hash` and `api_id` obtained with https://my.telegram.org
|
||||||
|
|
||||||
- Установить Python2.7 и Python3.6
|
- Install Python2.7 and Python3.6
|
||||||
|
|
||||||
- Скачать исходный код
|
- Clone the repository
|
||||||
```
|
```
|
||||||
cd ~
|
cd ~
|
||||||
git clone https://github.com/SlavikMIPT/tgcloud.git
|
git clone https://github.com/SlavikMIPT/tgcloud.git
|
||||||
```
|
```
|
||||||
- Установить зависимости
|
- Install requirements for Python3.6
|
||||||
|
|
||||||
`sudo pip3 install -r requirements.txt`
|
`sudo pip3 install -r requirements.txt`
|
||||||
- Создать сессию запустив **из папки с проектом**
|
- Create a session by running **from the project folder**
|
||||||
|
|
||||||
`python3.6 telegram_create_session.py`
|
`python3.6 telegram_create_session.py`
|
||||||
|
|
||||||
- Установить fuse bindings
|
- Install fuse bindings
|
||||||
|
|
||||||
`sudo yum install python-fuse`
|
`sudo yum install python-fuse`
|
||||||
|
|
||||||
- Создать папку для монтирования
|
- Create Mount Folder
|
||||||
|
|
||||||
`mkdir storage`
|
`mkdir storage`
|
||||||
|
|
||||||
- Запустить VFS **из папки с проектом**:
|
- Run VFS **from the project folder**:
|
||||||
|
|
||||||
с отладкой
|
#### debug:
|
||||||
|
|
||||||
`python2.7 dedupfs/dedupfs.py -df --block-size 20971520 -o auto_unmount -o hard_remove storage/`
|
`python2.7 dedupfs/dedupfs.py -df --block-size 20971520 -o auto_unmount -o hard_remove storage/`
|
||||||
|
|
||||||
в фоне
|
#### as a service:
|
||||||
|
|
||||||
отредактировать `<username>` в `tgcloud.service`
|
replace `<username>` in `tgcloud.service`
|
||||||
```
|
```
|
||||||
sudo cp tgcloud.service /ect/systemd/system/
|
sudo cp tgcloud.service /ect/systemd/system/
|
||||||
sudo systemctl enable tgcloud.service
|
sudo systemctl enable tgcloud.service
|
||||||
|
@ -41,13 +42,17 @@ sudo systemctl start tgcloud.service
|
||||||
sudo systemctl status tgcloud.service -l
|
sudo systemctl status tgcloud.service -l
|
||||||
```
|
```
|
||||||
|
|
||||||
Версия 1.1
|
Version 1.1
|
||||||
|
|
||||||
Работает пободрее, но все еще сырой прототип - может падать.
|
It works more vigorously, but still a raw prototype - just POC
|
||||||
|
|
||||||
Для тестов лучше использовать отдельный профиль.
|
Can crash, it is unstable and slow in some cases .
|
||||||
|
|
||||||
Если забанят - пишите `recover@telegram.org` - разбанят
|
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](https://github.com/filebrowser/filebrowser) or SFTP
|
||||||
|
|
||||||
You are welcome to collaborate - contact
|
You are welcome to collaborate - contact
|
||||||
Telegram: [@SlavikMIPT](t.me/SlavikMIPT)
|
Telegram: [@SlavikMIPT](t.me/SlavikMIPT)
|
||||||
|
|
BIN
img/demo.gif
Normal file
BIN
img/demo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
Loading…
Add table
Add a link
Reference in a new issue