← All posts tagged nix

Radjah
soft nix minidlna 1.1.3 уже есть оказывается. Но патч на тумбы на нее не накладывается. Собираю пока так. Разбираться и адаптировать влом. :(
Radjah
nix ? Как сделать, чтобы при ребуте сервера, с которого монтируется nfs-шара, не пропадал доступ к файлам на этой шаре после подъема сервера?
Radjah
nix Ага, нагуглил
That just means that the interior nodes in the HTREE were corrupt. If you give permission to clear the htree index, e2fsck put the inode on the list of directories that need to have their HTREE indexes rebuilt, and a "Pass 3A" will rebuild the directory's (or directories') HTREE indexes. This is similar to what "e2fsck -fD" does, except it only rebuilds directories whose HTREE indexes were corrupted, instead of rebuilding and optimize all of the directories in the system.
Radjah
code nix ?
Problem in HTREE directory inode 6283293: block #2 has bad min hash
Problem in HTREE directory inode 6283293: block #4 has bad min hash
Problem in HTREE directory inode 6283293: block #5 has bad max hash
Problem in HTREE directory inode 6283293: block #8 has bad max hash
Invalid HTREE directory inode 6283293 (/dlna/.db/art_cache/tmp/mnt/data/music).  Clear HTree index? yes

Что такое там fsck начистил?
Radjah
nix ? Вот нашел такой материал по редиректу трафика на прокси, если прокси-сервер не является шлюзом. eddnet.org
Никак не могу адаптировать для домашнего роутера, ибо там кроме ethernet есть еще два wifi
iptables -t nat -A PREROUTING -i eth0 -s ! squid-box -p tcp --dport 80 -j DNAT --to squid-box:3128
Я так понимаю, что "-i eth0" можно заменить на "-s 192.168.1.0./24"
iptables -t nat -A POSTROUTING -o eth0 -s local-network -d squid-box -j SNAT --to iptables-box
-o eth0 опять же тут упомянается
iptables -A FORWARD -s local-network -d squid-box -i eth0 -o eth0 -p tcp --dport 3128 -j ACCEPT
Вообще не понимат, что тут переделать.
Radjah
nix ? Как правильно find указать, что возраст файла должен быть не больше 1 дня? Я так понимаю, что с помощью mtime