Сегодня утром родилась мысль собрать Tor для Nokia N800. Попробовал.
В результате собрана libevent-1.1a, tsocks-1.8beta5 и tor-0.1.2.14 (пакеты взяты из Etch+Lenny вроде). После танцев с бубном, это даже было водружено на саму железку.
Но не заработало.
Tor пытается запуститься, но падает с ошибкой в логе при включенном дебаге. Далее кусок лога:
Jun 25 23:06:44.877 [notice] Tor 0.1.2.14 opening log file.
Jun 25 23:06:44.878 [debug] parse_dir_server_line(): Trusted dirserver at 128.31.0.34:9031 (46DB)
Jun 25 23:06:44.880 [debug] parse_dir_server_line(): Trusted dirserver at 128.31.0.34:9032 (E45D)
Jun 25 23:06:44.881 [debug] parse_dir_server_line(): Trusted dirserver at 86.59.21.38:80 (1F85)
Jun 25 23:06:44.882 [debug] parse_dir_server_line(): Trusted dirserver at 140.247.60.64:80 (F5FC)
Jun 25 23:06:44.884 [debug] parse_dir_server_line(): Trusted dirserver at 194.109.206.212:80 (EAD6)
Jun 25 23:06:44.885 [info] or_state_load(): Loaded state from “/var/lib/tor/state”
Jun 25 23:06:44.893 [warn] You are running Tor as root. You don’t need to, and you probably shouldn’t. Maybe you are looking for the init script? ‘/etc/init.d/tor start’
Jun 25 23:06:44.899 [info] crypto_seed_rng(): Seeding RNG from “/dev/urandom”
Jun 25 23:06:55.768 [info] tor_mmap_file(): Could not open “/var/lib/tor/cached-routers” for mmap(): No such file or directory
Jun 25 23:06:55.770 [info] update_router_have_minimum_dir_info(): We have 0 of 5 network statuses, and we want more than 2.
Jun 25 23:06:55.772 [notice] I learned some more directory information, but not enough to build a circuit.
Jun 25 23:06:55.774 [info] update_router_descriptor_client_downloads(): Not enough networkstatus documents to launch requests.
Jun 25 23:06:55.775 [info] update_router_descriptor_client_downloads(): Not enough networkstatus documents to launch requests.
Jun 25 23:06:55.776 [info] update_networkstatus_client_downloads(): For 5/5 running directory servers, we have 0 live network-status documents. Downloading 5.
Jun 25 23:06:55.778 [info] router_pick_directory_server(): No reachable router entries for dirservers. Trying them all again.
Jun 25 23:06:55.779 [info] router_pick_directory_server(): Still no reachable router entries. Reloading and trying again.
Jun 25 23:06:55.780 [info] tor_mmap_file(): Could not open “/var/lib/tor/cached-routers” for mmap(): No such file or directory
Jun 25 23:06:55.782 [info] directory_get_from_dirserver(): No router found for network status; falling back to dirserver list
Jun 25 23:06:55.784 [debug] directory_initiate_command(): private 0, want_to_tunnel 0.
Jun 25 23:06:55.785 [debug] directory_initiate_command(): initiating network-status fetch
Jun 25 23:06:55.786 [debug] connection_connect(): Connecting to [scrubbed]:80.
Jun 25 23:06:55.802 [debug] connection_connect(): Connection to [scrubbed]:80 in progress (sock 9).
Jun 25 23:06:55.804 [debug] connection_add(): new conn type Directory, socket 9, n_conns 2.
Jun 25 23:06:55.805 [debug] write_to_buf(): added 4 bytes to buf (now 4 total).
Jun 25 23:06:55.806 [debug] write_to_buf(): added 221 bytes to buf (now 225 total).
Jun 25 23:06:55.807 [debug] write_to_buf(): added 34 bytes to buf (now 259 total).
Jun 25 23:06:55.808 [info] update_router_have_minimum_dir_info(): We have 0 of 5 network statuses, and we want more than 2.
Jun 25 23:06:55.814 [info] or_state_save(): Saved state to “/var/lib/tor/state”
Jun 25 23:06:55.815 [warn] Warning from libevent: epoll_wait: Cannot allocate memory
Jun 25 23:06:55.817 [err] libevent call with epoll failed: Cannot allocate memory [12]
Jun 25 23:06:55.822 [info] or_state_save(): Saved state to “/var/lib/tor/state”
Jun 25 23:06:55.823 [debug] _connection_free(): closing fd 6.
Jun 25 23:06:55.824 [debug] _connection_free(): closing fd 9.
На ошибки про “не найден файл” можно не обращать внимание, все таки первый запуск. Взволновала строчка про невозможность выделить память для epoll_wait. Почему не может? Хз. Установлены максимальные лимиты через /proc/sys/fs/files-max и ulimit -n, но все то же самое. Как оторвать использование этого epoll - неизвестно. При инициализации libevent, никаких параметров нет.
Сейчас собирается libevent-1.3b и соответственно пересобирается tor. Авось заработает.
P.S. И еще нет нормального find! Собирать что ли?


11:05 - 6-26-2007
А privoxy для n800 вроде есть пакет ?
P.S. Хорошие мысли приходят к тебе в голову утром.
11:11 - 6-26-2007
Privoxy есть уже. В репозитарии валяется. Трабла пока в том, что бы использовать проксю. Но судя по gconf-editor, настройки есть такие. Только пока фиг знает - используются или нет.