| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
sleepycat Не надо мне читать, мне надо выдергивать из ленты нужные (подходящие под шаблон) торренты и закачивать, без моего участи в процессе.
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
rnqlover Мне просто надо работать с RSS, а кто будет собирать и как - всё равно. На винде именно utorrent прекрасно работал с RSS, думал что и тут тот же функционал остался, но увы. Gineaser Торрент-клиент, умеющий работать с RSS, сам выбирает и скачивает торренты с RSS-ленты трекера (например, Лостфильма) по указанному пользователем шаблону. Очень удобно качать сериалы, т.к. новые серии автоматически добавляются в закачку.
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
RiD Подскажи, пожалуйста, как ставил и как настраивал. Запуск через “sudo /etc/rc.d/rtorrentd start” - не идет, а если запустить в терминале "sudo screen -d -m -S rtorrent rtorrent" (взял из /etc/rc.d/rtorrentd), то вроде как запускается rtorrent, и sudo screen -r выдаёт окно rtorrenta и надписи внизу: (13:47:44) Using 'epoll' based polling. (13:47:44) Could not read resource file: ~/.rtorrent.rc bobart Благодарю, уже читал.
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
rnqlover Поставил utserver, запустил. Но как работать с RSS? Получается очень урезаный функционал. Таких програм и родных под Линукс много. Мне нужна именно возможность работы с RSS.
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
2rnqlover utorrent-server такой же легкий и быстрый как rtorrent? Насколько стабилен, ведь он еще альфа? Я на арч с dwm только из-за минимализма, быстроты и легкости переходил. 2Gineaser Пробовал Deluge. Отказался из-за невозможности нормально работать с RSS. Лучше всего по функционалу был ktorrent, но после перехода на Arch+dwm - не вижу смысла грузить кучу библиотек и запускать в фоне ненужные процессы.
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
Хочу перейти на rtorrent. Не получается запустить. Установку и настройку поизводил по статье: http://habrahabr.ru/post/120167/. Вроде и руки не особо кривые, и с головой дружу, и даже на Убунте в свое время поставил rtorrent (только с lighttpd). Но в этом случає не получается запустить rtorrent. Согласно статье можно поставить ВМЕСТЕ rtorrent-color и libtorrent-extended. Но rtorrent-color у меня во время сборки выдал ошибку, взамен ему поставил простой rtorrent, который, в свою очередь, вступил в конфликт с libtorrent-extended, который пришлось удалить. В итоге, у меня стоит только rtorrent с основного репозитория. По ходу вопрос: Какой лучше ставить rtorrent, расчитывая его круглосуточное использование и управление через web-интерфейс (rutorrent)? Вот мои конфиги, выложенные по порядку исправления, согласно статье http://habrahabr.ru/post/120167/ (пользователь = “z”, система = “notebook”): /etc/php/php-fpm.conf ;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
... вырезал всё, что не раскомментировано ...
;;;;;;;;;;;;;;;;;;
; Global Options ;
;;;;;;;;;;;;;;;;;;
[global]
; Pid file
; Note: the default prefix is /var
; Default Value: none
pid = run/php-fpm/php-fpm.pid
;;;;;;;;;;;;;;;;;;;;
; Pool Definitions ;
;;;;;;;;;;;;;;;;;;;;
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = http
group = http
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000
;listen = /var/run/php-fpm/php-fpm.sock
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0666
listen.owner = http
listen.group = http
listen.mode = 0660
; Choose how the process manager will control the number of child processes.
; Possible Values:
; static - a fixed number (pm.max_children) of child processes;
; dynamic - the number of child processes are set dynamically based on the
; following directives. With this process management, there will be
; always at least 1 children.
; pm.max_children - the maximum number of children that can
; be alive at the same time.
; pm.start_servers - the number of children created on startup.
; pm.min_spare_servers - the minimum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is less than this
; number then some children will be created.
; pm.max_spare_servers - the maximum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; ondemand - no children are created at startup. Children will be forked when
; new requests will connect. The following parameter are used:
; pm.max_children - the maximum number of children that
; can be alive at the same time.
; pm.process_idle_timeout - The number of seconds after which
; an idle process will be killed.
; Note: This value is mandatory.
pm = static
; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI. The below defaults are based on a server without much resources. Don't
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 2
; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 2
; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 1
; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 3#
# #user http;
# worker_processes 2;
#
# #error_log logs/error.log;
# error_log /var/log/nginx/error.log;
# #error_log logs/error.log notice;
# #error_log logs/error.log info;
#
# #pid logs/nginx.pid;
# pid /var/run/nginx.pid;
#
# events {
# worker_connections 1024;
# use epoll;
# }
#
#
# http {
# include mime.types;
# default_type application/octet-stream;
#
# #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# # '$status $body_bytes_sent "$http_referer" '
# # '"$http_user_agent" "$http_x_forwarded_for"';
#
# #access_log logs/access.log main;
#
# sendfile on;
# #tcp_nopush on;
#
# #keepalive_timeout 0;
# keepalive_timeout 65;
#
# #gzip on;
#
# server {
# listen 80;
# server_name localhost;
#
# #charset koi8-r;
#
# #access_log logs/host.access.log main;
#
# location / {
# root html;
# index index.html index.htm;
# }
#
# #error_page 404 /404.html;
#
# # redirect server error pages to the static page /50x.html
# #
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# root html;
# }
#
# # proxy the PHP scripts to Apache listening on 127.0.0.1:80
# #
# #location ~ \.php$ {
# # proxy_pass http://127.0.0.1;
# #}
#
# # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
# #
# #location ~ \.php$ {
# # root html;
# # fastcgi_pass 127.0.0.1:9000;
# # fastcgi_index index.php;
# # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# # include fastcgi_params;
# #}
#
# # deny access to .htaccess files, if Apache's document root
# # concurs with nginx's one
# #
# #location ~ /\.ht {
# # deny all;
# #}
# }
#
#
# # another virtual host using mix of IP-, name-, and port-based configuration
# #
# #server {
# # listen 8000;
# # listen somename:8080;
# # server_name somename alias another.alias;
#
# # location / {
# # root html;
# # index index.html index.htm;
# # }
# #}
#
#
# # HTTPS server
# #
# #server {
# # listen 443;
# # server_name localhost;
#
# # ssl on;
# # ssl_certificate cert.pem;
# # ssl_certificate_key cert.key;
#
# # ssl_session_timeout 5m;
#
# # ssl_protocols SSLv2 SSLv3 TLSv1;
# # ssl_ciphers HIGH:!aNULL:!MD5;
# # ssl_prefer_server_ciphers on;
#
# # location / {
# # root html;
# # index index.html index.htm;
# # }
# #}
#
# }
worker_processes 2;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
http {
include /etc/nginx/conf/mime.types;
default_type application/octet-stream;
upstream backend {
server 127.0.0.1:9000;
}
upstream backendrtorrent {
server unix:/home/z/.rtorrent.sock;
}
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf/sites-enabled/*;
include /etc/nginx/conf/conf.d/*;
}server {Каталоги /srv/http/nginx/rutorrent.notebook/logs и /srv/http/nginx/rutorrent.notebook/htdocs - существуют. /etc/hosts #~/.rtorrent.rc scgi_local = /home/z/.rtorrent.sock/etc/rc.d/rtorrentd #!/usr/bin/env bashЗапуск rtorrent. sudo /etc/rc.d/rtorrentd start sudo screen -rWeb-интерфейс пишет: Нет связи с rTorrent. Проверьте, запущен ли он. Проверьте, что параметры $scgi_port и $scgi_host в файле config.php совпадают со значением переменной scgi_port в файле конфигурации rTorrent./srv/http/nginx/rutorrent.notebook/htdocs/conf/config.php <?phpВопросы: 1. Что у меня неправильно в конфигах? 2. Как сделать запуск от юзера, а не от рута? 3. Может лучше поставить lighttpd вместо nginx?
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
работает в особых действияхРаботает, я знаю. Вот как сделать, чтобы имя создаваемого файла md5 было “старый_файл.md5” и файл создавался в той же директории, где и проверяемый?
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
Пробовал. Не работает.
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
2 Leonardo19 Благодарю, но не помогло. Похожий вариант у меня есть zenity --info --title="Check md5 for %n" --text="$(md5sum %f)" | zenity --progress --percentage="40" --auto-kill --auto-close --title="Checksum utility" --text="Calculating md5sum for %n" Нашел еще интересный вариант, но только в командной строке: find . -type f -exec md5sum '{}' \; > ~/md5sums md5sum -c ~/md5sums
Нужно умереть молодым и сделать это как можно позже.
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
Как можно приспособить скрипты от Nautilus к Thunar? Пробовал просто копировать скрипты в папку ~/.config/Thunar/scripts Потом прописал в “Особых действиях” (к примеру, вычисление и запись MD5 в файл вида “старый_файл.md5”): Команда: /home/z/.config/Thunar/scripts/Security/Mkmd5 %NНо скрипт не сработал. Вот код скрипта: #!/bin/bash
#########################################################
# #
# This are NScripts v3.5 #
# #
# Licensed under the GNU GENERAL PUBLIC LICENSE 3 #
# #
# Copyright 2007 - 2008 Christopher Bratusek #
# #
#########################################################
echo $NAUTILUS_SCRIPT_SELECTED_URIS > ~/.config/Thunar/temp_mkmd5_list
filesamount=$(wc -l ~/.config/Thunar/temp_mkmd5_list | awk '{print $1}')
step=$(($((100))/$(($filesamount))))
for file in $(cat ~/.config/Thunar/temp_mkmd5_list); do
if [[ -d "$file" ]]; then
exit
fi
percent=$(($(($percent))+$(($step))))
file_name=$(echo $file | sed -e 's/file:\/\///g' -e 's/\%20/\ /g')
filename=$(echo $file | sed -e 's/.*\///g' -e 's/\%20/\ /g')
(md5sum "$file_name" > "$filename.md5") | zenity --progress --percentage $percent --auto-close
if [[ -a $filename.md5 ]]; then
echo -e "\n========================================================" >> ~/.config/Thunar/mkmd5_result
echo "MD5-Sum for $filename successfully created" >> ~/.config/Thunar/mkmd5_result;
else echo -e "\n========================================================" >> ~/.config/Thunar/mkmd5_result
echo "MD5-Sum for $filename not created" >> ~/.config/Thunar/mkmd5_result;
fi
done
zenity --text-info --title "Result" --width640 --height=480 --filename=$HOME/.config/Thunar/mkmd5_result
rm -f ~/.config/Thunar/temp_mkmd5_list ~/.config/Thunar/mkmd5_result
Нужно умереть молодым и сделать это как можно позже.
|