Титла: Dns2go
Публикувано от: Darks в Aug 17, 2007, 02:42
Примерен код | Постоянен поддомейн за dial-up с динамичен IP-адрес... от Никола Антонов(31-01-2002)
рейтинг (19) [ добре ] [ зле ]
Printer Friendly Вариант за отпечатване
Постоянен поддомейн за dial-up с динамичен IP-адрес... и то безплатно!
Никола Антонов, [EMAIL=pcradio@netbg.com]pcradio@netbg.com[/EMAIL]
Интересно хрумване, нали? Кому би притрябвало? Но, да започнем отначало. Все пак, не всеки е длъжен да знае какво е динамичен IP-адрес и за какво може да служи постоянният поддомейн. Ето за какво става дума. Както може би знаете, всеки компютър, който работи в мрежа, има уникален идентификационен номер, по който бива разпознат от останалите компютри. Така например, щом се “логнете” в Internet, вашият доставчик - или по-точно сървърът на вашия доставчик - ви дава специален номер, който превръща машината ви в част от Мрежата. Щом прекъснете връзката, този номер се освобождава. Сървърът ще го даде на следващия, който поиска връзка с него. И баба знае, че уникалният номер се нарича IP-адрес или адрес по интернет-протокол и изглежда приблизително така: 193.193.162.205. Всеки, който има текущия IP-адрес на вашето PC, може да ви открие в морето от компютри, наречено Internet. Именно за този тип компютри, които влизат в Мрежата чат-пат и получават всеки път различни номера, се казва, че имат динамични IP-адреси. Дотук с общообразователното въведение.
Излишно е може би, но все пак да си кажа, че - за улеснение на потребителите - на сървърите, които имат статични IP-адреси и хостват сайтовете в Мрежата, се присвояват домейни - имена, по които ги търсим и намираме. Да, да, стига обяснения за децата! Но, нали в крайна сметка пред Linux всички сме малко или много деца :-)
И така, да преминем по същество. Интересно би било, ако беше възможно вие да си регистрираме интернет-домейн, който да се прикачи към нашето PC независимо от факта, че имаме динамичен IP-адрес. Така ни се откриват доста възможности за комуникации с нашите приятели. Например, ако предоставяме някакви файлове, които да бъдат достъпни за тях, бихме могли да пуснем един FTP-сървър или дори Telnet връзка. Въобще, каквото си решите, Linux поне има неограничени възможности за консумиране на мрежови ресурси и начини за комуникация между близики и далечни компютри. По този начин ще избегнете използуването на съмнителни по отошение на сигурността програми за P2P-достъп от рода на Kazaa. И независимо от факта, че при всяко влизане ва Мрежата получавате от своя доставчик различен IP-адрес, вашите приятели ще ви откриват по домейна. Ето как можете да постигенете това, и то напълно безплатно.
На следния сайт, www.deerfield.com, се предлагат доста интересни програмки и услуги. Тук ще обърна внимание обаче само на една, най-важната - DNS2Go. Това е малък DNS-клиент. Преди да я изтеглите - има версии за Windows 95/98/NT/2000/XP и Linux - ще трябва да си изберете поддомейн и да се регистрирате. Регистрацията е проста - давате име и валиден адрес, на който да ви изпратят важен идентификационен номер за активиране на услугата. Изборът на поддомейни и е много богат и не е непременно свързан с името на компанията или на програмата. Моят например е nikola.linux-site.net. След регистрирането, проверете си пощата. Изтеглете и програмата. Има я на сорс или в rpm-пакет. Инсталира се съвсем стандратно. След инсталацията, се пуска от името на обикновен потребител с командата:
/usr/local/bin/dns2go
При първото пускане трябва да сте root, защото програмата трябва да получи право да запише в директорията '/etc' файл, наречен 'dns2go.conf'. От съображения за сигурност, може да не сте в Мрежата. Това, че dns2go няма да успее да се съврже със сървъра, да не ви притеснява. Важното е да си създаде '/etc/dns2go.conf'.Първо ще ви попита някои неща и ще трябва да въведете номерчето, което сте получили по пощата. Когато сте вече в Internet и я пуснете като обикновен потребител, програмата ще се свърже с сървъра на компанията, ще го извести за вашия IP-адрес и от този момент компютърът ви ще е откриваем на избрания от вас домейн.поддомейн.com и т.н. Щом прекъснете връзката, сървърът ще извести вашите посетители, че сте offline. Ако искате, във файла '/etc/dns2go.conf' можете да инструктирате сървъра да препраща (redirect) посетителя на избран от вас адрес, когато сте offline. При следващато свързване dns2go ще извести сървъра за тези промени. Например, когато съм online, компютърът ми е токриваем на адрес nikola.linux-site.net, където ще ви посрещнат гостоприемните Apache и Proftpd. А когато съм offline, ще бъдете автоматично прехвърлени на www.pcradio.netbg.com - сайта на предаването, чиито редактор съм аз.
Оттук-нататък, какво ще правите, зависи изцяло от вашата фантазия. Сами разбирате, че това е метод, който в еднаква сила може да се използува както от обикновените dial-up потребители, така и от бизнес-потребителите, които поддържат малък корпоративен сайт и разполагат с широколентова връзка, но не могат да инвестират в нещо по-скъпо. Освен че е безплатна, тази програма, комбинирана със сигурността на Linux, може да се окаже много полезна за всеки, който се опитва да използува пълноценно Мрежата.
А специално за ползуващите dial-up мога да предложа един простичък трик. Вместо да пускат програмата ръчно или автоматично при всяко стартиране на системата, могат да укажат на kppp или инструмента, който ползуват за свързване, при всяко “логване” да пуска '/usr/local/bin/dns2go' и при всяко изключване - '/usr/local/bin/dns2go -k'. Така dns2go ще се пуска при всяко влизане в Мрежата и ще се “убива” при всяко изключване.
Никола Антонов, [EMAIL=pcradio@netbg.com]pcradio@netbg.com[/EMAIL], nikola.linux-site.net
|
Имам някой друг въпрос за тая програма как да янаправя да се включва автоматично ? Когато я включа през конзолата трябва ли да оставям конзолата да не я затварям ? На
Примерен код | # log file (optional, default: stdout) #log = |
Какво да напиша ?
Титла: Dns2go
Публикувано от: Gaara в Aug 17, 2007, 08:05
/офтопик
Какво да напиша? Какво да направя? Как така не мога да видя разликата м/у install.sh и INSTALL.sh? Кой ще ми избърше устата?
Човеко, време е да се научиш малко да четеш. Това не е час по диктовка.
Титла: Dns2go
Публикувано от: senser в Aug 17, 2007, 08:56
Препоръчвам ти това. Ползвам го от доста време заради динамчните адреси на БТК и съм доста доволен. Получаваш поддомейн от рода на senser.no-ip.info и всичко което трябва да направиш е да сложиш един скрипт да се изпълнява при стартиране на системата за да обнови DNS записа ти.
Титла: Dns2go
Публикувано от: the_real_maniac в Aug 17, 2007, 10:47
Darks - ПОЧНИ ДА ЧЕТЕШ Цитат | Вместо да пускат програмата ръчно или автоматично при всяко стартиране на системата, могат да укажат на kppp или инструмента, който ползуват за свързване, при всяко “логване” да пуска '/usr/local/bin/dns2go' и при всяко изключване - '/usr/local/bin/dns2go -k'. Така dns2go ще се пуска при всяко влизане в Мрежата и ще се “убива” при всяко изключване.
|
Моля те използвай търсачката
runlevel ( Или runlevels ) , след това startup може да пробваш като дума-ключ или директно на БГ: автоматично AND стартиране
Това , че имаш желание да знаеш и да можеш е хубаво ! Като цяло е много хубаво че искаш да се развиваш и че мако/много се бориш вече за кой ден , Но !!! трябва да почнеш и да се бориш повече сам и да разбираш кое как и ЗАЩО (! Иначе ще можеш само определени неща по определен начин, защото знаеш само това, което са тиказали (макар че като гледам ти дават по всички теми хубави линкове и инфото е доста добро
Титла: Dns2go
Публикувано от: Darks в Aug 17, 2007, 15:52
Ами прекарвам часове "борейки" се но ми е много трудно защото до сегаа бях на windows xp и даже си мислех да се отказвам ама кат се откажа какво ще постигна. За no - ip го знам само не знам какъв скрипт.
Титла: Dns2go
Публикувано от: bnight в Aug 17, 2007, 16:20
Darks примерно под debian no-ip имат много хубав пакет който се инсталира и настроива елементарно. По същият начин на сайт-а им има подробни howto`s как да стане номера. Ползвам ги вече 6-7 месеца и съм много доволен ако не вярваш виж http://bnight.sytes.net/ Айде успех.
Титла: Dns2go
Публикувано от: Darks в Aug 19, 2007, 00:40
Като изтеглих програмата ся пък не мога да я инсталирам пълен ноб съм 
Титла: Dns2go
Публикувано от: the_real_maniac в Aug 19, 2007, 11:02
Намери README-то или txt файловете в линукс това са файловете общо взето без разширение :?
тАка де ще го намериш
readme, install, release-notes, все нещо такова. арее
или е архив хух
потърси разширението на файла, който си изтеглил в гугъл
tar tar.gz tgz bz2 tar.bz И т.. :-P :-)
Титла: Dns2go
Публикувано от: Darks в Aug 19, 2007, 14:02
Има README.FIRST но като правя каквото ми пише ми дава ерори 
Титла: Dns2go
Публикувано от: the_real_maniac в Aug 19, 2007, 18:37
охх ... Прочети статията на сайата "Как да задаваме правилно въпроси !" и не моля те , ами наистина ;-) 1. Какво (искаш да на)правиш  2. Как го правиш ;-) 3. Какви грешки - еррори ти дава ? Е толкова ли е сложно ? нямаме телепатия ! ВСЕ ОЩЕ ! 
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 00:19
Примерен код | HOW TO BUILD AN EXECUTABLE FOR YOUR SYSTEM
The command make will build a binary of the noip2 client that will run on your system.
If you do not have 'make' installed and you have an i686 Linux machine with libc6, a binary for i686 systems is located in the binaries directory called noip2-Linux. Copy that binary to the build directory 'cp binaries/noip2-Linux noip2'
The command make install (which must be run as root) will install the various pieces to their appropriate places. This will ask questions and build a configuration data file. See below if you can't become root or can't write in /usr/local/*.
|
Какво ще рече това че не мога да си го преведа 
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 00:48
Това пък къде го намери  ?
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 00:54
В файла README.FIRST
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 01:06
http://www.no-ip.com/client/linux/noip-duc-linux.tar.gzДа ,видях , извинявам се , не бях в "час". Зачи да дадеш "make" , и после "make install". Та да ти компилира файла.Ако не става , са сложили в "noip-2.1.6/binaries" компилирани вече файлове ,трябва да си избереш "noip2-Linux-32bit" или другия. Аз бих ти прпоручал да направиш така , ако не може да се компилират ( но се компилират , пробвах ): cd до_където_си_разархивирал//noip-2.1.6/binaries ldd noip2-Linux-32bit дава : linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib32/libc.so.6 (0xf7e5e000) /lib/ld-linux.so.2 (0xf7fb9000) това ти е проверка , дали ги има необходимите библиотеки ( например открило е libc.so.6 => /lib32/libc.so.6 (0xf7e5e000))
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 01:11
Веднага ще пробвам ако имам проблем пиша
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 01:15
Ами не можах да ги компилирам и дадох ldd noip2-Linux-32bit излезе ми root@ubuntu:~/Desktop/noip-2.1.6/binaries# ldd noip2-Linux-32bit linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e11000) /lib/ld-linux.so.2 (0xb7f61000) root@ubuntu:~/Desktop/noip-2.1.6/binaries# Сега какво да направя че изобщо нищо не схващам 
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 01:27
Начи гледам , на UBUNTU си , каква е пречината ,та да не се компилира ? Какво дава ?
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 01:35
Можеш ли да ми напишеш какви команди трябв да напиша в какъв ред може аз нещо да бъркам отново 
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 01:42
Най-добрия вариант е ,да си го компилираш ( ако разбира се ,в дистрибуцията няма такъв пакет ...). Гледам , изкарал си знака "#" , т.е. като напишеш командата: whoami отговора трябва да ти е "root". Пърбо ,трябва да отидеш в директорията ,която си разархивирал: cd /root/Desktop/noip-2.1.6/ ( ако е там ,разбира се ) и след това да изпълниш: make като свърши , пишеш: make install
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 01:48
Примерен код | rrchr’ noip2.c:542: warning: implicit declaration of function ‘openlog’ noip2.c:542: error: ‘LOG_PID’ undeclared (first use in this function) noip2.c:542: error: ‘LOG_DAEMON’ undeclared (first use in this function) noip2.c:544: warning: implicit declaration of function ‘realpath’ noip2.c:544: warning: assignment makes pointer from integer without a cast noip2.c:547: warning: implicit declaration of function ‘sprintf’ noip2.c:547: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:554: warning: implicit declaration of function ‘exit’ noip2.c:554: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:560: warning: implicit declaration of function ‘geteuid’ noip2.c:561: warning: implicit declaration of function ‘getpwnam’ noip2.c:561: warning: assignment makes pointer from integer without a cast noip2.c:562: warning: implicit declaration of function ‘setgid’ noip2.c:562: error: dereferencing pointer to incomplete type noip2.c:563: warning: implicit declaration of function ‘setegid’ noip2.c:563: error: dereferencing pointer to incomplete type noip2.c:564: warning: implicit declaration of function ‘setuid’ noip2.c:564: error: dereferencing pointer to incomplete type noip2.c:565: warning: implicit declaration of function ‘seteuid’ noip2.c:565: error: dereferencing pointer to incomplete type noip2.c:579: error: invalid use of undefined type ‘struct sigaction’ noip2.c:581: error: invalid use of undefined type ‘struct sigaction’ noip2.c:582: error: ‘SIGINT’ undeclared (first use in this function) noip2.c:583: error: ‘SIGTERM’ undeclared (first use in this function) noip2.c:584: error: ‘SIGQUIT’ undeclared (first use in this function) noip2.c:585: error: invalid use of undefined type ‘struct sigaction’ noip2.c:586: error: ‘SIGCHLD’ undeclared (first use in this function) noip2.c:602: warning: implicit declaration of function ‘shmdt’ noip2.c:610: warning: implicit declaration of function ‘strcpy’ noip2.c:610: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:613: warning: implicit declaration of function ‘free’ noip2.c: In function ‘process_options’: noip2.c:624: warning: implicit declaration of function ‘getopt’ noip2.c:624: error: ‘EOF’ undeclared (first use in this function) noip2.c:640: warning: implicit declaration of function ‘atoi’ noip2.c:645: warning: implicit declaration of function ‘strcat’ noip2.c:645: warning: incompatible implicit declaration of built-in function ‘strcat’ noip2.c:674: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:689: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:710: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:715: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:721: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:727: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:731: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:735: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:739: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:620: warning: unused variable ‘opterr’ noip2.c: In function ‘sigchld_handler’: noip2.c:753: warning: implicit declaration of function ‘waitpid’ noip2.c:753: error: ‘WNOHANG’ undeclared (first use in this function) noip2.c:753: error: ‘WUNTRACED’ undeclared (first use in this function) noip2.c: In function ‘save_IP’: noip2.c:770: warning: implicit declaration of function ‘access’ noip2.c:770: error: ‘W_OK’ undeclared (first use in this function) noip2.c:771: warning: implicit declaration of function ‘lseek’ noip2.c:771: error: ‘SEEK_SET’ undeclared (first use in this function) noip2.c:772: warning: implicit declaration of function ‘write’ noip2.c:773: warning: implicit declaration of function ‘strlen’ noip2.c:773: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:783: warning: implicit declaration of function ‘close’ noip2.c:786: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c: In function ‘getip’: noip2.c:793: error: storage size of ‘ifr’ isn’t known noip2.c:794: error: storage size of ‘z’ isn’t known noip2.c:797: warning: implicit declaration of function ‘socket’ noip2.c:797: error: ‘AF_INET’ undeclared (first use in this function) noip2.c:797: error: ‘SOCK_DGRAM’ undeclared (first use in this function) noip2.c:798: error: ‘errno’ undeclared (first use in this function) noip2.c:801: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:802: warning: implicit declaration of function ‘ioctl’ noip2.c:802: error: ‘SIOCGIFFLAGS’ undeclared (first use in this function) noip2.c:807: error: ‘IFF_UP’ undeclared (first use in this function) noip2.c:813: error: ‘SIOCGIFADDR’ undeclared (first use in this function) noip2.c:820: error: dereferencing pointer to incomplete type noip2.c:821: warning: implicit declaration of function ‘inet_ntoa’ noip2.c:821: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast noip2.c:824: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:824: error: ‘stderr’ undeclared (first use in this function) noip2.c:794: warning: unused variable ‘z’ noip2.c:793: warning: unused variable ‘ifr’ noip2.c: In function ‘config_file_inuse’: noip2.c:835: warning: implicit declaration of function ‘shmget’ noip2.c:837: warning: implicit declaration of function ‘shmat’ noip2.c:837: warning: assignment makes pointer from integer without a cast noip2.c:844: warning: implicit declaration of function ‘strcmp’ noip2.c:845: warning: implicit declaration of function ‘kill’ noip2.c: At top level: noip2.c:856: warning: ‘struct shmid_ds’ declared inside parameter list noip2.c:857: error: conflicting types for ‘dump_shm’ noip2.c:451: error: previous declaration of ‘dump_shm’ was here noip2.c: In function ‘dump_shm’: noip2.c:859: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:859: error: ‘stderr’ undeclared (first use in this function) noip2.c:860: error: invalid application of ‘sizeof’ to incomplete type ‘struct shmid_ds’ noip2.c:861: error: dereferencing pointer to incomplete type noip2.c:863: error: dereferencing pointer to incomplete type noip2.c:863: error: dereferencing pointer to incomplete type noip2.c:865: error: dereferencing pointer to incomplete type noip2.c:865: error: dereferencing pointer to incomplete type noip2.c:866: error: dereferencing pointer to incomplete type noip2.c:867: warning: implicit declaration of function ‘ctime’ noip2.c:867: error: dereferencing pointer to incomplete type noip2.c:867: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ noip2.c:868: error: dereferencing pointer to incomplete type noip2.c:868: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ noip2.c:869: error: dereferencing pointer to incomplete type noip2.c:869: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ noip2.c:870: error: dereferencing pointer to incomplete type noip2.c:871: error: dereferencing pointer to incomplete type noip2.c:872: error: dereferencing pointer to incomplete type noip2.c: In function ‘get_shm_info’: noip2.c:879: error: storage size of ‘ds’ isn’t known noip2.c:882: error: ‘IPC_CREAT’ undeclared (first use in this function) noip2.c:884: warning: implicit declaration of function ‘strerror’ noip2.c:884: error: ‘errno’ undeclared (first use in this function) noip2.c:887: warning: implicit declaration of function ‘shmctl’ noip2.c:887: error: ‘IPC_STAT’ undeclared (first use in this function) noip2.c:902: warning: assignment makes pointer from integer without a cast noip2.c:920: error: ‘ESRCH’ undeclared (first use in this function) noip2.c:927: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:941: warning: implicit declaration of function ‘getpid’ noip2.c:944: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:879: warning: unused variable ‘ds’ noip2.c: In function ‘run_as_background’: noip2.c:956: warning: implicit declaration of function ‘fork’ noip2.c:959: error: ‘errno’ undeclared (first use in this function) noip2.c:959: warning: assignment makes pointer from integer without a cast noip2.c:963: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:965: warning: implicit declaration of function ‘fclose’ noip2.c:965: error: ‘stderr’ undeclared (first use in this function) noip2.c:966: error: ‘stdout’ undeclared (first use in this function) noip2.c:967: error: ‘stdin’ undeclared (first use in this function) noip2.c:968: warning: implicit declaration of function ‘setsid’ noip2.c:972: warning: implicit declaration of function ‘syslog’ noip2.c:972: error: ‘LOG_INFO’ undeclared (first use in this function) noip2.c:997: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c: In function ‘Sleep’: noip2.c:1023: error: storage size of ‘timeout’ isn’t known noip2.c:1027: warning: implicit declaration of function ‘select’ noip2.c:1023: warning: unused variable ‘timeout’ noip2.c: At top level: noip2.c:1031: error: expected declaration specifiers or ‘...’ before ‘size_t’ noip2.c: In function ‘Read’: noip2.c:1033: error: ‘size_t’ undeclared (first use in this function) noip2.c:1033: error: expected ‘;’ before ‘bytes_read’ noip2.c:1037: error: ‘bytes_read’ undeclared (first use in this function) noip2.c:1037: error: ‘count’ undeclared (first use in this function) noip2.c:1038: warning: implicit declaration of function ‘alarm’ noip2.c:1039: warning: implicit declaration of function ‘read’ noip2.c:1043: error: ‘LOG_WARNING’ undeclared (first use in this function) noip2.c: At top level: noip2.c:1058: error: expected declaration specifiers or ‘...’ before ‘size_t’ noip2.c: In function ‘Write’: noip2.c:1060: error: ‘size_t’ undeclared (first use in this function) noip2.c:1060: error: expected ‘;’ before ‘bytes_sent’ noip2.c:1064: error: ‘bytes_sent’ undeclared (first use in this function) noip2.c:1064: error: ‘count’ undeclared (first use in this function) noip2.c: In function ‘Connect’: noip2.c:1081: error: storage size of ‘saddr’ isn’t known noip2.c:1082: error: storage size of ‘addr’ isn’t known noip2.c:1085: warning: implicit declaration of function ‘gethostbyname’ noip2.c:1085: warning: assignment makes pointer from integer without a cast noip2.c:1088: warning: implicit declaration of function ‘memcpy’ noip2.c:1088: warning: incompatible implicit declaration of built-in function ‘memcpy’ noip2.c:1088: error: dereferencing pointer to incomplete type noip2.c:1089: warning: implicit declaration of function ‘memset’ noip2.c:1089: warning: incompatible implicit declaration of built-in function ‘memset’ noip2.c:1090: error: ‘AF_INET’ undeclared (first use in this function) noip2.c:1091: warning: implicit declaration of function ‘htons’ noip2.c:1093: error: ‘SOCK_STREAM’ undeclared (first use in this function) noip2.c:1098: warning: implicit declaration of function ‘connect’ noip2.c:1082: warning: unused variable ‘addr’ noip2.c:1081: warning: unused variable ‘saddr’ noip2.c: In function ‘converse_with_web_server’: noip2.c:1122: warning: implicit declaration of function ‘strchr’ noip2.c:1122: warning: incompatible implicit declaration of built-in function ‘strchr’ noip2.c:1124: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1124: error: ‘stderr’ undeclared (first use in this function) noip2.c:1129: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1132: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:1132: error: too many arguments to function ‘Write’ noip2.c:1136: error: too many arguments to function ‘Read’ noip2.c:1145: warning: incompatible implicit declaration of built-in function ‘strchr’ noip2.c:1147: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1152: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c: At top level: noip2.c:1165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘’ before ‘chksum’ noip2.c: In function ‘url_decode’: noip2.c:1186: warning: implicit declaration of function ‘isdigit’ noip2.c: In function ‘get_one_config’: noip2.c:1201: warning: implicit declaration of function ‘open’ noip2.c:1201: error: ‘O_RDONLY’ undeclared (first use in this function) noip2.c:1205: error: ‘struct CONFIG’ has no member named ‘rlength’ noip2.c:1206: error: ‘struct CONFIG’ has no member named ‘interval’ noip2.c:1207: error: ‘struct CONFIG’ has no member named ‘nat’ noip2.c:1208: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:1208: error: ‘struct CONFIG’ has no member named ‘device’ noip2.c:1212: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c: In function ‘display_one_config’: noip2.c:1231: warning: incompatible implicit declaration of built-in function ‘strcat’ noip2.c:1233: warning: incompatible implicit declaration of built-in function ‘strchr’ noip2.c: In function ‘display_current_config’: noip2.c:1284: error: ‘SHM_RDONLY’ undeclared (first use in this function) noip2.c:1285: warning: assignment makes pointer from integer without a cast noip2.c:1292: error: ‘SIGTERM’ undeclared (first use in this function) noip2.c:1293: error: ‘errno’ undeclared (first use in this function) noip2.c:1293: error: ‘ESRCH’ undeclared (first use in this function) noip2.c:1321: error: ‘SIGUSR1’ undeclared (first use in this function) noip2.c:1339: error: ‘SEEK_SET’ undeclared (first use in this function) noip2.c:1383: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c: In function ‘parse_config’: noip2.c:1391: error: ‘O_RDWR’ undeclared (first use in this function) noip2.c:1393: error: ‘errno’ undeclared (first use in this function) noip2.c:1393: error: ‘EACCES’ undeclared (first use in this function) noip2.c:1394: error: ‘O_RDONLY’ undeclared (first use in this function) noip2.c:1410: error: ‘struct CONFIG’ has no member named ‘magic’ noip2.c:1412: error: ‘struct CONFIG’ has no member named ‘rlength’ noip2.c:1417: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:1424: warning: implicit declaration of function ‘chksum’ noip2.c:1424: error: ‘struct CONFIG’ has no member named ‘rlength’ noip2.c:1425: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:1426: error: ‘struct CONFIG’ has no member named ‘magic’ noip2.c:1427: error: ‘ushort’ undeclared (first use in this function) noip2.c:1428: error: ‘struct CONFIG’ has no member named ‘chksum’ noip2.c:1431: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:1433: error: ‘struct CONFIG’ has no member named ‘device’ noip2.c:1434: error: ‘struct CONFIG’ has no member named ‘interval’ noip2.c:1435: error: ‘struct CONFIG’ has no member named ‘nat’ noip2.c:1436: error: ‘struct CONFIG’ has no member named ‘count’ noip2.c:1441: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:1443: error: ‘struct CONFIG’ has no member named ‘count’ noip2.c: In function ‘get_our_visible_IPaddr’: noip2.c:1459: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:1465: warning: incompatible implicit declaration of built-in function ‘strrchr’ noip2.c:1466: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:1469: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1469: error: ‘stderr’ undeclared (first use in this function) noip2.c: In function ‘dump_buffer’: noip2.c:1483: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:1484: warning: implicit declaration of function ‘mkstemp’ noip2.c: In function ‘dynamic_update’: noip2.c:1502: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:1503: warning: incompatible implicit declaration of built-in function ‘strcat’ noip2.c:1560: error: ‘errno’ undeclared (first use in this function) noip2.c:1561: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:1564: warning: incompatible implicit declaration of built-in function ‘strrchr’ noip2.c:1573: warning: implicit declaration of function ‘execl’ noip2.c:1573: warning: incompatible implicit declaration of built-in function ‘execl’ noip2.c: In function ‘handle_dynup_error’: noip2.c:1588: error: ‘LOG_INFO’ undeclared (first use in this function) noip2.c:1591: error: ‘errno’ undeclared (first use in this function) noip2.c:1591: warning: assignment makes pointer from integer without a cast noip2.c:1638: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:1639: error: ‘SIGTERM’ undeclared (first use in this function) noip2.c: In function ‘Malloc’: noip2.c:1709: warning: implicit declaration of function ‘malloc’ noip2.c:1709: warning: incompatible implicit declaration of built-in function ‘malloc’ noip2.c:1712: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1712: error: ‘stderr’ undeclared (first use in this function) noip2.c:1713: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c: In function ‘hosts’: noip2.c:1745: warning: incompatible implicit declaration of built-in function ‘memcpy’ noip2.c:1747: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:1748: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:1754: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1754: error: ‘stderr’ undeclared (first use in this function) noip2.c: In function ‘xmlerr’: noip2.c:1761: warning: implicit declaration of function ‘strncmp’ noip2.c:1773: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1773: error: ‘stderr’ undeclared (first use in this function) noip2.c: In function ‘get_xml_field’: noip2.c:1787: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:1791: warning: incompatible implicit declaration of built-in function ‘strchr’ noip2.c:1795: warning: implicit declaration of function ‘strncasecmp’ noip2.c:1806: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1806: error: ‘stderr’ undeclared (first use in this function) noip2.c: In function ‘add_to_list’: noip2.c:1817: warning: implicit declaration of function ‘assert’ noip2.c:1828: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:1829: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c: In function ‘yesno’: noip2.c:1857: warning: implicit declaration of function ‘vsnprintf’ noip2.c:1860: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1860: error: ‘stderr’ undeclared (first use in this function) noip2.c:1861: warning: implicit declaration of function ‘tcgetattr’ noip2.c:1862: error: ‘argout’ has an incomplete type noip2.c:1863: error: invalid use of undefined type ‘struct termios’ noip2.c:1863: error: ‘ICANON’ undeclared (first use in this function) noip2.c:1864: error: invalid use of undefined type ‘struct termios’ noip2.c:1864: error: ‘ICRNL’ undeclared (first use in this function) noip2.c:1865: error: invalid use of undefined type ‘struct termios’ noip2.c:1865: error: ‘OPOST’ undeclared (first use in this function) noip2.c:1866: error: invalid use of undefined type ‘struct termios’ noip2.c:1866: error: ‘VMIN’ undeclared (first use in this function) noip2.c:1867: error: invalid use of undefined type ‘struct termios’ noip2.c:1867: error: ‘VTIME’ undeclared (first use in this function) noip2.c:1868: warning: implicit declaration of function ‘tcsetattr’ noip2.c:1868: error: ‘TCSADRAIN’ undeclared (first use in this function) noip2.c:1871: warning: implicit declaration of function ‘puts’ noip2.c: In function ‘add_to_request’: noip2.c:1882: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:1883: warning: incompatible implicit declaration of built-in function ‘strcat’ noip2.c:1885: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c: In function ‘get_update_selection’: noip2.c:1895: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:1913: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:1913: error: ‘stderr’ undeclared (first use in this function) noip2.c: In function ‘url_encode’: noip2.c:2009: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c: In function ‘get_credentials’: noip2.c:2035: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:2035: error: ‘stderr’ undeclared (first use in this function) noip2.c:2036: warning: implicit declaration of function ‘fgets’ noip2.c:2036: error: ‘stdin’ undeclared (first use in this function) noip2.c:2037: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:2043: error: ‘argout’ has an incomplete type noip2.c:2044: error: invalid use of undefined type ‘struct termios’ noip2.c:2044: error: ‘ICANON’ undeclared (first use in this function) noip2.c:2044: error: ‘ECHO’ undeclared (first use in this function) noip2.c:2045: error: invalid use of undefined type ‘struct termios’ noip2.c:2045: error: ‘ICRNL’ undeclared (first use in this function) noip2.c:2046: error: invalid use of undefined type ‘struct termios’ noip2.c:2046: error: ‘OPOST’ undeclared (first use in this function) noip2.c:2047: error: invalid use of undefined type ‘struct termios’ noip2.c:2047: error: ‘VMIN’ undeclared (first use in this function) noip2.c:2048: error: invalid use of undefined type ‘struct termios’ noip2.c:2048: error: ‘VTIME’ undeclared (first use in this function) noip2.c:2049: error: ‘TCSADRAIN’ undeclared (first use in this function) noip2.c:2056: warning: implicit declaration of function ‘putchar’ noip2.c:2064: warning: implicit declaration of function ‘fflush’ noip2.c:2064: error: ‘stdout’ undeclared (first use in this function) noip2.c: In function ‘get_all_device_names’: noip2.c:2161: error: storage size of ‘Ifc’ isn’t known noip2.c:2162: error: array type has incomplete element type noip2.c:2167: error: ‘AF_INET’ undeclared (first use in this function) noip2.c:2167: error: ‘SOCK_DGRAM’ undeclared (first use in this function) noip2.c:2168: warning: implicit declaration of function ‘perror’ noip2.c:2169: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:2171: error: ‘SIOCGIFCONF’ undeclared (first use in this function) noip2.c:2173: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:2175: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’ noip2.c:2177: warning: left-hand operand of comma expression has no effect noip2.c:2177: error: increment of pointer to unknown structure noip2.c:2177: error: arithmetic on pointer to an incomplete type noip2.c:2179: error: dereferencing pointer to incomplete type noip2.c:2182: warning: incompatible implicit declaration of built-in function ‘strchr’ noip2.c:2190: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:2162: warning: unused variable ‘IfcBuf’ noip2.c:2161: warning: unused variable ‘Ifc’ noip2.c: In function ‘get_device_name’: noip2.c:2209: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:2211: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:2220: error: ‘stdin’ undeclared (first use in this function) noip2.c: In function ‘autoconf’: noip2.c:2232: error: ‘FILE’ undeclared (first use in this function) noip2.c:2232: error: ‘fd’ undeclared (first use in this function) noip2.c:2240: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:2243: warning: incompatible implicit declaration of built-in function ‘strcpy’ noip2.c:2244: warning: incompatible implicit declaration of built-in function ‘strrchr’ noip2.c:2254: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c:2256: warning: implicit declaration of function ‘fdopen’ noip2.c:2258: error: ‘struct CONFIG’ has no member named ‘magic’ noip2.c:2259: warning: incompatible implicit declaration of built-in function ‘memset’ noip2.c:2260: warning: incompatible implicit declaration of built-in function ‘memcpy’ noip2.c:2273: warning: incompatible implicit declaration of built-in function ‘sprintf’ noip2.c:2287: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:2287: error: ‘stderr’ undeclared (first use in this function) noip2.c:2335: error: ‘struct CONFIG’ has no member named ‘rlength’ noip2.c:2336: error: ‘struct CONFIG’ has no member named ‘nat’ noip2.c:2337: error: ‘struct CONFIG’ has no member named ‘device’ noip2.c:2341: error: ‘stdin’ undeclared (first use in this function) noip2.c:2349: error: ‘struct CONFIG’ has no member named ‘interval’ noip2.c:2355: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:2355: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:2360: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c:2363: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:2365: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:2368: error: ‘struct CONFIG’ has no member named ‘encrypt’ noip2.c:2369: error: ‘struct CONFIG’ has no member named ‘count’ noip2.c:2370: error: ‘struct CONFIG’ has no member named ‘magic’ noip2.c:2370: error: ‘ushort’ undeclared (first use in this function) noip2.c:2371: error: ‘struct CONFIG’ has no member named ‘rlength’ noip2.c:2372: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:2373: error: ‘struct CONFIG’ has no member named ‘chksum’ noip2.c:2374: warning: implicit declaration of function ‘fwrite’ noip2.c:2374: warning: incompatible implicit declaration of built-in function ‘fwrite’ noip2.c:2375: error: ‘struct CONFIG’ has no member named ‘rlength’ noip2.c:2377: error: ‘struct CONFIG’ has no member named ‘elength’ noip2.c:2380: warning: implicit declaration of function ‘rename’ noip2.c:2384: warning: implicit declaration of function ‘unlink’ noip2.c:2385: warning: incompatible implicit declaration of built-in function ‘exit’ noip2.c: In function ‘bencode’: noip2.c:2399: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c: In function ‘bdecode’: noip2.c:2444: warning: incompatible implicit declaration of built-in function ‘strlen’ noip2.c: In function ‘Msg’: noip2.c:2483: error: ‘LOG_ERR’ undeclared (first use in this function) noip2.c:2485: warning: incompatible implicit declaration of built-in function ‘fprintf’ noip2.c:2485: error: ‘stderr’ undeclared (first use in this function) make: *** [noip2] Error 1
|
Титла: Dns2go
Публикувано от: the_real_maniac в Aug 20, 2007, 01:52
Нещо тук яко не е в ред ... я версия на gcc, я нещо Make-a се е побъркал или по-точно Makefila-a не е в ред, не ми харесва сякаш на грешно място (а именно подиректория , а не главната на сорса) пускаш make-a :-) ;-) :-) аз сега лягам , така че лека и да се надяваме че ivo ще има желанието да ти види точно какъв е проблема, успех  пп: и английски , руски или поне немски ще ти трябва (1 от 3-те) няма как , поне един техн. език ти трябва ;-)  едит: сеаг като се замисля 100% не е липставаща библиотека или хедър, защото щеше да изпищи, но може нещо версията да има нещо различно с деклариранята иии абе с една идея да имаш не която трябва версия на някоя либ, но най-вероятно е както вече казах gcc (3/4ver) make или Makefile-а нещо да не е в ред ;-) :-) случва се :-) айде , успех 
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 01:55
По всяка вероятност , намаш инсталирани всички необходими програми , за да компилираш. Изпулни командата ( ako не си "root" , използвай "sudo" пред всяка команда ) apt-get update apt-get upgrade apt-get install build-essential и apt-get install libc6-dev Опитай пак да компилираш , но първо дай: make clean за да изчистиш от предишното компилиране.
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 01:59
ами аз знам английски ама кат ми ставаха ерорите и се чудя дали си го превеждах правилно за това питах как се превежда. Аз сега си седя root
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 02:00
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 02:08
Я дай тука файла: /etc/apt/sources.list
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 02:17
Оправих го сега е така root@ubuntu:~# make clean make: *** No rule to make target `clean'. Stop. root@ubuntu:~# cd /root/Desktop/noip-2.1.6 root@ubuntu:~/Desktop/noip-2.1.6# make clean rm -f *o rm -f noip2 rm -f binaries/* root@ubuntu:~/Desktop/noip-2.1.6# make gcc -Wall -g -O2 -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2 root@ubuntu:~/Desktop/noip-2.1.6# make install if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi cp noip2 /usr/local/bin/noip2 /usr/local/bin/noip2 -C -c /tmp/no-ip2.conf
Auto configuration for Linux client of no-ip.com.
Please enter the login/email string for no-ip.com
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 02:22
тай пита ме за емаила дето пиша и за паса а след това Only one group [Games] is registered to this account. It will be used. Please enter an update interval:[30] Какво ще рече ?
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 02:22
Е ,сега вече по README.FIRST
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 02:26
Е нищо не намирам ще ми помогнеш ли ?
Титла: Dns2go
Публикувано от: ivo1204 в Aug 20, 2007, 02:39
Аз си нямам и идея за какво служи тази програма и какво ще правиш с нея , за да ти помогна трябва да прочета. Начи това ,което виждам ,трябва конфигурационнен файл , тия въпроси са за него. Но предполагам ,много хора знаят за какво става дума , та да се надяваме ,че ще помагат.Успех!
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 02:43
Програмата служи за да упдайтва IP то ми в сайта http://www.no-ip.com/ защото съм на бтк и това е единствения начин да си направя сайт 
Титла: Dns2go
Публикувано от: Darks в Aug 20, 2007, 04:02
Трябва ми някой който ена бтк и ползва no-ip
Титла: Dns2go
Публикувано от: bnight в Aug 20, 2007, 18:55
Здравей, Нямам Ubuntu да пробвам но предполагам и в неговите репозитори ще има пакета no-ip. Цялата работа е следната. #apt-get install no-ip
По време на инсталацията ще ти зададе няколко въпроса. Като им отговаряш и нямаш проблеми това. За което си питал е интервала на който no-ip да се връзва със сайта си и да проверява твоето външно IP след което си ъпдейтва DNS-a и така. Тоест 30 минути е добра стойност но принципно е добре да е по-малко защото при евентуална промяна на IP-то може да се наложи да чакаш до 30 минути докато се обнови информацията. Това е на кратко. Успех.
Титла: Dns2go
Публикувано от: n00b в Aug 20, 2007, 22:00
Аз съм на БТК и използвам но-ип.орг.
Титла: Dns2go
Публикувано от: the_real_maniac в Aug 20, 2007, 22:55
Цитат (Darks @ Авг. 20 2007,05:02) | Трябва ми някой който ена бтк и ползва no-ip |
едит:опаа виждам , че си успял да компилираш, браво , все пак, а за после след инсталацията, имаш статията на Н.антонов , която си постнал в началото, чети нея 
|