LiveJournal.com Создать аккаунт или войти через OpenID Google Mail.ru В Контакте Запомнить Забыли логин/пароль? Создать аккаунт Интересное Поиск по интересам Поиск по школе Рейтинги Трансляции Вопрос дня Фрэнк-радио Магазин Платный аккаунт в подарок Виртуальные подарки Ещё Мобильный LJ Talk Загрузки Карты Объявления LJ.ru Сюжеты Фото Деньги ЖЖЖ Путешествия Технологии Еда Кино LJTimes Игры Пример: Блоги Везде Записи Комментарии Журналы Справка Мобильная версия Мобильные возможности Вся статистика ЖЖ Пишет kosot ( kosot 2008 11 18 17:26:00 Microdc2 debian Hi everyone. I noticed there were no tutorials on the forums explaining how to do this, so I'll go through the steps I used to make this work here. Introduction Microdc2 is an excellent command line based directconnect client, just like dc++ for windows, linuxdc++ for linux or shakespeer for mac. Now linuxdc++ is a very nice, fairly stable (later versions anyway) full featured client, so you might think why would you need something else. Answer: Command line apps are great because a) They take very little resources so you can run them as server daemons on older hardware b) You can control them from anywhere in the world over an ssh connection c) They are generally much much more stable and reliable than their graphical counterpart. d) They're often (but not always) more configurable than their graphical alternatives. This makes them excellent for things like running as daemons on unattended servers. There are only two command line direct connect clients for linux. Microdc2 is one, and another one is nanodc. Nanodc appears to be under heavy development, whereas I think microdc2 may be stagnant now (correct me if I'm wrong here!). However, nanodc seems to be in pretty early beta from what I could see and although it uses a prettier ncurses interface that microdc2, its not actually as easy to use. Maybe in a little while nanodc will be a better choice, but for now, microdc2 is much better in my opinion. Installing First you need to download the source tarball. Go to the microdc2 website and download the latest version of the tarball. When I downloaded it, it was version 15.6, available here. So go into a command line, change to a suitable directory and download/unzip the tarball: Code: cd ~ mkdir microdc2 cd microdc2 wget http://corsair626.no-ip.org/microdc/mic rodc2-0.15.6.tar.gz tar xvfz microdc2-0.15.6.tar.gz cd microdc2-0.15.6 Ok, there's the source, but before we can compile it we need to download some libraries that the program needs: Code: sudo aptitude install build-essential libreadline5-dev checkinstall libxml2-dev libbz2-dev Now you can start making the program. I like to use checkinstall instead of make install because it installs the program as a normal debian package so you can easily remove it later. Code: ./configure make sudo checkinstall Checkinstall will ask you some questions. You don't actually have to answer any of them, just say 'y' and press enter and it will automatically create a set of package docs for you. Ok, now microdc2 is installed! If you used the default set of package docs in checkinstall, it will be called microdc2 in synaptic, and you can treat it like a normal package. Usage You can start microdc2 by just typing Code: microdc2 at the command line. As with most command line applications, it looks a bit empty and threatening at first, but don't worry! It really is extremely easy to use: Code: user@users-pc:~$ microdc2 Loading local FileList...done Sharing 0 bytes (0B) totally microdc2> You can type help and press enter to get a list of commands, or type help and then a command to get detailed information about what the command does. Code: microdc2> help alias [NAME[=VALUE] ...] browse [USER] cancel CONNECTION ... cd [DIRECTORY] connect HOST[:PORT] disconnect exit find [FILE ...] get FILE ... grantslot [USER ...] help [COMMAND ...] lookup HOST ... ls [OPTION...] [FILE...] msg USER MESSAGE... pwd queue [USER ...] raw DATA... results [INDEX ...] retry USER ... say MESSAGE... search WORD... set [NAME [VALUE...]] share DIR shell [COMMAND [ARGUMENTS...]] status transfers unalias NAME ... unqueue USER [RANGE] unsearch INDEX ... unshare DIR who [USER ...] microdc2> help set set: set [NAME [VALUE...]] Without arguments, display a list of variables and their current values. With only NAME argument, display the value of that variable. With NAME and VALUE arguments, change the value of a variable. microdc2>
kosot: Microdc2 debian
Материал перенесён из старой базы знаний ATC-IP и оформлен в едином стиле нового сайта.