no-ip.com

Archiwalne, stare wpisy FAQ i HowTo Użytkowników
velmafia
Member
Posty: 1820
Rejestracja: 01 września 2006, 00:56
Lokalizacja: Las

no-ip.com

Post autor: velmafia »

Witam

Opiszę tu krótko jak przypisać domenę do dynamicznego adresu IP. Opis jest uwzględniany pod witrynę http://www.no-ip.com/ która udostępnia nam taką usługę.

Przydaje to się gdy np. mamy neostradę i chcemy postawić jakiś serwer ftp, www, itp...
Dzięki temu mimo że mamy zmienny IP, to będziemy mieli stałą domenę, która będzie wskazywała nasz komputer.


Koniec owijania w bawełnę i zaczynamy :)

1. Wchodzimy na stronę

Kod: Zaznacz cały

http://www.no-ip.com/
i dokonujemy rejestracji (przycisk "Sign-up Now!").
Myślę że opisu rejestracji nie muszę opisywać ;)

2. Po zarejestrowaniu się, logujemy się na nasze konto poprzez stronę główną (adres e-mail podany podczas rejestracji jest naszym loginem).

3. Gdy już się zarejestrujemy przechodzimy do Hosts / Redirects a następnie Add. Teraz dodajemy sobie adres pod jakim będzie widoczny nasz komputer.

W polu Hostname: wpisujemy nazwę naszego komputera, pod jaką ma być widoczny w sieci, a następnie wybieramy domenę z dostępnych. Np. ja sam mam nazwę 'velmafia' a domenę 'no-ip.org', co w efekcie powoduje że mój PC'et jest dostępny w necie pod adresem 'velmafia.no-ip.org'.

Przy Host Type: zostawiamy wartość domyślną (DNS Host (A))

I to wszystko, co tu zmieniamy, reszty nie ruszamy i potwierdzamy założenie adresu naszego hosta przyciskiem Create Host

Następnie możemy przejść do zakładki Manage gdzie mamy wypisane wszystkie stworzone przez sam hosty (jak na razie masz tylko jeden, ale potem możesz dodać kolejne). Gdy klikniesz na Modify przy nazwie hosta, możesz go tam zmodyfikować i np. dodać adres strony jaka ma być wyświetlana, gdy Twój komputer jest niedostępny.

4. Gdy juz stworzysz sobie swój adres, czas przystąpić do instalacji oprogramowania, które będzie powiadamiało witrynę http://www.no-ip.com o tym że zmienił nam się adres IP.
Aby ściągnąć program potrzebny program, klikamy na górze w zakładkę DOWNLOADS, potem wybieramy kategorię Linux / BSD / Unix i ściągamy program na dysk.
UWAGA - w chwili gdy to piszę, najnowszą wersją jest wersja z 2006-07-27, i to do niej napiszę proces instalacji, (w innych wersjach najprawdopodobniej instalacja będzie się tylko różniła nazwą katalogu.

5. Teraz przystępujemy do instalacji ściągniętego programu, w tym celu przechodzimy do katalogu w którym znajduje się ściągnięte źródło naszego programu.Następnie rozpakowujemy te źródło poleceniem:

Kod: Zaznacz cały

tar xvzf noip-duc-linux.tar.gz
a potem przechodzimy do nowo powstałego katalogu:

Kod: Zaznacz cały

cd noip-2.1.3/
potem kompilujemy program:

Kod: Zaznacz cały

make
i instalujemy:

Kod: Zaznacz cały

make install
po zainstalowaniu powinniśmy zobaczyć okno konfiguracji no-ip, wpisujemy tam swoje dane (login, hasło), oraz wybieramy z jakiego interfejsu sieciowego mamy dostęp do neta, pytania są proste, więc nie będę ich opisywał.

6. Teraz pora na ustawienie aby no-ip startował razem z systemem, w tym celu tworzymy w katalogu /etc/init.d plik o nazwie noip o takiej zawartości.

Kod: Zaznacz cały

#! /bin/sh
# . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc
case "$1" in
    start)
        echo "Starting noip2."
        /usr/local/bin/noip2
    ;;
    stop)
        echo -n "Shutting down noip2."
        killproc -TERM /usr/local/bin/noip2
    ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
esac
exit 0
a następnie dajemy temu plikowi prawa wykonywania:

Kod: Zaznacz cały

chmod u+x /etc/init.d/noip
a potem dodajemy go do skryptów uruchamianych podczas startu systemu, robimy to poleceniem:

Kod: Zaznacz cały

update-rc.d noip defaults 95
Teraz tylko ponownie uruchomić PC'ta (ale nie jest wymagane) i gotowe ;)

Dodam tylko że podstawowe usługi (czyli np. to co właśnie zrobiliśmy) w serwisie http://www.no-ip.com/ są darmowe, a płatne są te bardziej zawansowane.

Teraz masz już adres swojego komputera i możesz postawić jakiś serwer (ftp, www, itd), lub jeśli potrzebujesz zalogować się na swój PC, a nie znasz adresu IP (np. neo się rozłączyło, i teraz ma inny IP), to po prostu jako adres wpisujesz twoją nowo wybraną nazwę hosta i nie musisz się martwić jakie masz aktualnie IP.

aloha

--------------------------------------------------------------------------------------------
Powered by GNU/Linux, and some fun
Artykuł na licencji: GNU Free Documentation License
F.E.O.S
Posty: 19
Rejestracja: 14 października 2007, 20:18
Lokalizacja: Kielce

Post autor: F.E.O.S »

jak to włączyć bo u mnie nic zadne okno się nie pokazało a chyba coś jest zle jak wpisuje make jest takie coś może mi ktoś pomóc

make :

Kod: Zaznacz cały

/programy$ cd noip-2.1.7
asotteam@asotteam-laptop:~/programy/noip-2.1.7$ make
gcc -Wall -g -O2 -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2 
noip2.c:118:19: error: stdio.h: No such file or directory
noip2.c:119:20: error: stdlib.h: No such file or directory
noip2.c:121:20: error: unistd.h: No such file or directory
noip2.c:122:23: error: sys/types.h: No such file or directory
noip2.c:123:23: error: sys/ioctl.h: No such file or directory
noip2.c:124:22: error: sys/time.h: No such file or directory
noip2.c:125:20: error: string.h: No such file or directory
noip2.c:126:19: error: ctype.h: No such file or directory
noip2.c:127:19: error: errno.h: No such file or directory
noip2.c:128:20: error: signal.h: No such file or directory
noip2.c:129:20: error: assert.h: No such file or directory
noip2.c:130:21: error: termios.h: No such file or directory
noip2.c:131:24: error: sys/socket.h: No such file or directory
noip2.c:132:24: error: netinet/in.h: No such file or directory
noip2.c:133:19: error: netdb.h: No such file or directory
noip2.c:134:20: error: syslog.h: No such file or directory
noip2.c:135:19: error: fcntl.h: No such file or directory
noip2.c:136:22: error: sys/stat.h: No such file or directory
noip2.c:137:22: error: sys/wait.h: No such file or directory
noip2.c:139:23: error: arpa/inet.h: No such file or directory
noip2.c:140:20: error: net/if.h: No such file or directory
noip2.c:141:21: error: sys/ipc.h: No such file or directory
noip2.c:142:21: error: sys/shm.h: No such file or directory
noip2.c:143:17: error: pwd.h: No such file or directory
noip2.c:144:18: error: time.h: No such file or directory
noip2.c:158:29: error: linux/sockios.h: No such file or directory
noip2.c:347: error: ‘NULL’ undeclared here (not in a function)
noip2.c:373: error: expected specifier-qualifier-list before ‘ushort’
noip2.c:457: warning: ‘struct shmid_ds’ declared inside parameter list
noip2.c:457: warning: its scope is only this definition or declaration, which is probably not what you want
noip2.c:463: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c:464: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c:474: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chksum’
noip2.c: In function ‘Usage’:
noip2.c:497: warning: implicit declaration of function ‘fprintf’
noip2.c:497: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:497: error: ‘stderr’ undeclared (first use in this function)
noip2.c:497: error: (Each undeclared identifier is reported only once
noip2.c:497: error: for each function it appears in.)
noip2.c: In function ‘main’:
noip2.c:534: error: invalid use of undefined type ‘struct sigaction’
noip2.c:535: warning: implicit declaration of function ‘sigemptyset’
noip2.c:535: error: invalid use of undefined type ‘struct sigaction’
noip2.c:536: error: invalid use of undefined type ‘struct sigaction’
noip2.c:536: error: ‘SIG_IGN’ undeclared (first use in this function)
noip2.c:537: warning: implicit declaration of function ‘sigaction’
noip2.c:537: error: ‘SIGHUP’ undeclared (first use in this function)
noip2.c:538: error: ‘SIGPIPE’ undeclared (first use in this function)
noip2.c:539: error: ‘SIGUSR1’ undeclared (first use in this function)
noip2.c:540: error: ‘SIGUSR2’ undeclared (first use in this function)
noip2.c:541: error: invalid use of undefined type ‘struct sigaction’
noip2.c:542: error: ‘SIGALRM’ undeclared (first use in this function)
noip2.c:543: warning: implicit declaration of function ‘strrchr’
noip2.c:543: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:548: warning: implicit declaration of function ‘openlog’
noip2.c:548: error: ‘LOG_PID’ undeclared (first use in this function)
noip2.c:548: error: ‘LOG_DAEMON’ undeclared (first use in this function)
noip2.c:550: warning: implicit declaration of function ‘realpath’
noip2.c:550: warning: assignment makes pointer from integer without a cast
noip2.c:553: warning: implicit declaration of function ‘sprintf’
noip2.c:553: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:560: warning: implicit declaration of function ‘exit’
noip2.c:560: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:566: warning: implicit declaration of function ‘geteuid’
noip2.c:567: warning: implicit declaration of function ‘getpwnam’
noip2.c:567: warning: assignment makes pointer from integer without a cast
noip2.c:568: warning: implicit declaration of function ‘setgid’
noip2.c:568: error: dereferencing pointer to incomplete type
noip2.c:569: warning: implicit declaration of function ‘setegid’
noip2.c:569: error: dereferencing pointer to incomplete type
noip2.c:570: warning: implicit declaration of function ‘setuid’
noip2.c:570: error: dereferencing pointer to incomplete type
noip2.c:571: warning: implicit declaration of function ‘seteuid’
noip2.c:571: error: dereferencing pointer to incomplete type
noip2.c:585: error: invalid use of undefined type ‘struct sigaction’
noip2.c:587: error: invalid use of undefined type ‘struct sigaction’
noip2.c:588: error: ‘SIGINT’ undeclared (first use in this function)
noip2.c:589: error: ‘SIGTERM’ undeclared (first use in this function)
noip2.c:590: error: ‘SIGQUIT’ undeclared (first use in this function)
noip2.c:591: error: invalid use of undefined type ‘struct sigaction’
noip2.c:592: error: ‘SIGCHLD’ undeclared (first use in this function)
noip2.c:608: warning: implicit declaration of function ‘shmdt’
noip2.c:616: warning: implicit declaration of function ‘strcpy’
noip2.c:616: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:619: warning: implicit declaration of function ‘free’
noip2.c: In function ‘process_options’:
noip2.c:630: warning: implicit declaration of function ‘getopt’
noip2.c:630: error: ‘EOF’ undeclared (first use in this function)
noip2.c:646: warning: implicit declaration of function ‘atoi’
noip2.c:651: warning: implicit declaration of function ‘strcat’
noip2.c:651: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:680: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:695: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:716: 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:733: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:737: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:741: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:745: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:626: warning: unused variable ‘opterr’
noip2.c: In function ‘sigchld_handler’:
noip2.c:759: warning: implicit declaration of function ‘waitpid’
noip2.c:759: error: ‘WNOHANG’ undeclared (first use in this function)
noip2.c:759: error: ‘WUNTRACED’ undeclared (first use in this function)
noip2.c: In function ‘get_version’:
noip2.c:792: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:794: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c: In function ‘save_IP’:
noip2.c:802: warning: implicit declaration of function ‘access’
noip2.c:802: error: ‘W_OK’ undeclared (first use in this function)
noip2.c:803: warning: implicit declaration of function ‘lseek’
noip2.c:803: error: ‘SEEK_SET’ undeclared (first use in this function)
noip2.c:804: warning: implicit declaration of function ‘write’
noip2.c:805: warning: implicit declaration of function ‘strlen’
noip2.c:805: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:815: warning: implicit declaration of function ‘close’
noip2.c:818: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘getip’:
noip2.c:825: error: storage size of ‘ifr’ isn’t known
noip2.c:826: error: storage size of ‘z’ isn’t known
noip2.c:829: warning: implicit declaration of function ‘socket’
noip2.c:829: error: ‘AF_INET’ undeclared (first use in this function)
noip2.c:829: error: ‘SOCK_DGRAM’ undeclared (first use in this function)
noip2.c:830: error: ‘errno’ undeclared (first use in this function)
noip2.c:833: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:834: warning: implicit declaration of function ‘ioctl’
noip2.c:834: error: ‘SIOCGIFFLAGS’ undeclared (first use in this function)
noip2.c:839: error: ‘IFF_UP’ undeclared (first use in this function)
noip2.c:845: error: ‘SIOCGIFADDR’ undeclared (first use in this function)
noip2.c:852: error: dereferencing pointer to incomplete type
noip2.c:853: warning: implicit declaration of function ‘inet_ntoa’
noip2.c:853: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast
noip2.c:856: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:856: error: ‘stderr’ undeclared (first use in this function)
noip2.c:826: warning: unused variable ‘z’
noip2.c:825: warning: unused variable ‘ifr’
noip2.c: In function ‘config_file_inuse’:
noip2.c:867: warning: implicit declaration of function ‘shmget’
noip2.c:869: warning: implicit declaration of function ‘shmat’
noip2.c:869: warning: assignment makes pointer from integer without a cast
noip2.c:876: warning: implicit declaration of function ‘strcmp’
noip2.c:877: warning: implicit declaration of function ‘kill’
noip2.c: At top level:
noip2.c:888: warning: ‘struct shmid_ds’ declared inside parameter list
noip2.c:889: error: conflicting types for ‘dump_shm’
noip2.c:457: error: previous declaration of ‘dump_shm’ was here
noip2.c: In function ‘dump_shm’:
noip2.c:891: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:891: error: ‘stderr’ undeclared (first use in this function)
noip2.c:892: error: invalid application of ‘sizeof’ to incomplete type ‘struct shmid_ds’ 
noip2.c:893: error: dereferencing pointer to incomplete type
noip2.c:895: error: dereferencing pointer to incomplete type
noip2.c:895: error: dereferencing pointer to incomplete type
noip2.c:897: error: dereferencing pointer to incomplete type
noip2.c:897: error: dereferencing pointer to incomplete type
noip2.c:898: error: dereferencing pointer to incomplete type
noip2.c:899: warning: implicit declaration of function ‘ctime’
noip2.c:899: error: dereferencing pointer to incomplete type
noip2.c:899: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
noip2.c:900: error: dereferencing pointer to incomplete type
noip2.c:900: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
noip2.c:901: error: dereferencing pointer to incomplete type
noip2.c:901: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
noip2.c:902: error: dereferencing pointer to incomplete type
noip2.c:903: error: dereferencing pointer to incomplete type
noip2.c:904: error: dereferencing pointer to incomplete type
noip2.c: In function ‘get_shm_info’:
noip2.c:911: error: storage size of ‘ds’ isn’t known
noip2.c:914: error: ‘IPC_CREAT’ undeclared (first use in this function)
noip2.c:916: warning: implicit declaration of function ‘strerror’
noip2.c:916: error: ‘errno’ undeclared (first use in this function)
noip2.c:919: warning: implicit declaration of function ‘shmctl’
noip2.c:919: error: ‘IPC_STAT’ undeclared (first use in this function)
noip2.c:934: warning: assignment makes pointer from integer without a cast
noip2.c:952: error: ‘ESRCH’ undeclared (first use in this function)
noip2.c:959: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:973: warning: implicit declaration of function ‘getpid’
noip2.c:977: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:911: warning: unused variable ‘ds’
noip2.c: In function ‘run_as_background’:
noip2.c:989: warning: implicit declaration of function ‘fork’
noip2.c:992: error: ‘errno’ undeclared (first use in this function)
noip2.c:992: warning: assignment makes pointer from integer without a cast
noip2.c:996: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:998: warning: implicit declaration of function ‘setsid’
noip2.c:1002: warning: implicit declaration of function ‘fclose’
noip2.c:1002: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1003: error: ‘stdout’ undeclared (first use in this function)
noip2.c:1004: error: ‘stdin’ undeclared (first use in this function)
noip2.c:1005: warning: implicit declaration of function ‘syslog’
noip2.c:1005: error: ‘LOG_INFO’ undeclared (first use in this function)
noip2.c:1030: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c: In function ‘Sleep’:
noip2.c:1056: error: storage size of ‘timeout’ isn’t known
noip2.c:1060: warning: implicit declaration of function ‘select’
noip2.c:1056: warning: unused variable ‘timeout’
noip2.c: At top level:
noip2.c:1064: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c: In function ‘Read’:
noip2.c:1066: error: ‘size_t’ undeclared (first use in this function)
noip2.c:1066: error: expected ‘;’ before ‘bytes_read’
noip2.c:1070: error: ‘bytes_read’ undeclared (first use in this function)
noip2.c:1070: error: ‘count’ undeclared (first use in this function)
noip2.c:1071: warning: implicit declaration of function ‘alarm’
noip2.c:1072: warning: implicit declaration of function ‘read’
noip2.c:1076: error: ‘LOG_WARNING’ undeclared (first use in this function)
noip2.c: At top level:
noip2.c:1091: error: expected declaration specifiers or ‘...’ before ‘size_t’
noip2.c: In function ‘Write’:
noip2.c:1093: error: ‘size_t’ undeclared (first use in this function)
noip2.c:1093: error: expected ‘;’ before ‘bytes_sent’
noip2.c:1097: error: ‘bytes_sent’ undeclared (first use in this function)
noip2.c:1097: error: ‘count’ undeclared (first use in this function)
noip2.c: In function ‘Connect’:
noip2.c:1114: error: storage size of ‘saddr’ isn’t known
noip2.c:1115: error: storage size of ‘addr’ isn’t known
noip2.c:1118: warning: implicit declaration of function ‘gethostbyname’
noip2.c:1118: warning: assignment makes pointer from integer without a cast
noip2.c:1121: warning: implicit declaration of function ‘memcpy’
noip2.c:1121: warning: incompatible implicit declaration of built-in function ‘memcpy’
noip2.c:1121: error: dereferencing pointer to incomplete type
noip2.c:1122: warning: implicit declaration of function ‘memset’
noip2.c:1122: warning: incompatible implicit declaration of built-in function ‘memset’
noip2.c:1123: error: ‘AF_INET’ undeclared (first use in this function)
noip2.c:1124: warning: implicit declaration of function ‘htons’
noip2.c:1126: error: ‘SOCK_STREAM’ undeclared (first use in this function)
noip2.c:1131: warning: implicit declaration of function ‘connect’
noip2.c:1115: warning: unused variable ‘addr’
noip2.c:1114: warning: unused variable ‘saddr’
noip2.c: In function ‘converse_with_web_server’:
noip2.c:1155: warning: implicit declaration of function ‘strchr’
noip2.c:1155: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:1157: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1157: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1162: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1165: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1165: error: too many arguments to function ‘Write’
noip2.c:1169: error: too many arguments to function ‘Read’
noip2.c:1178: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:1180: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1185: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c: At top level:
noip2.c:1198: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chksum’
noip2.c: In function ‘url_decode’:
noip2.c:1219: warning: implicit declaration of function ‘isdigit’
noip2.c: In function ‘get_one_config’:
noip2.c:1234: warning: implicit declaration of function ‘open’
noip2.c:1234: error: ‘O_RDONLY’ undeclared (first use in this function)
noip2.c:1238: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:1239: error: ‘struct CONFIG’ has no member named ‘interval’
noip2.c:1240: error: ‘struct CONFIG’ has no member named ‘nat’
noip2.c:1241: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1241: error: ‘struct CONFIG’ has no member named ‘device’
noip2.c:1245: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c: In function ‘display_one_config’:
noip2.c:1264: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:1266: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c: In function ‘display_current_config’:
noip2.c:1317: error: ‘SHM_RDONLY’ undeclared (first use in this function)
noip2.c:1318: warning: assignment makes pointer from integer without a cast
noip2.c:1325: error: ‘SIGTERM’ undeclared (first use in this function)
noip2.c:1326: error: ‘errno’ undeclared (first use in this function)
noip2.c:1326: error: ‘ESRCH’ undeclared (first use in this function)
noip2.c:1354: error: ‘SIGUSR1’ undeclared (first use in this function)
noip2.c:1372: error: ‘SEEK_SET’ undeclared (first use in this function)
noip2.c:1417: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘parse_config’:
noip2.c:1425: error: ‘O_RDWR’ undeclared (first use in this function)
noip2.c:1427: error: ‘errno’ undeclared (first use in this function)
noip2.c:1427: error: ‘EACCES’ undeclared (first use in this function)
noip2.c:1428: error: ‘O_RDONLY’ undeclared (first use in this function)
noip2.c:1444: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:1446: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:1451: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:1458: warning: implicit declaration of function ‘chksum’
noip2.c:1458: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:1459: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:1460: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:1461: error: ‘ushort’ undeclared (first use in this function)
noip2.c:1462: error: ‘struct CONFIG’ has no member named ‘chksum’
noip2.c:1465: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1467: error: ‘struct CONFIG’ has no member named ‘device’
noip2.c:1468: error: ‘struct CONFIG’ has no member named ‘interval’
noip2.c:1469: error: ‘struct CONFIG’ has no member named ‘nat’
noip2.c:1470: error: ‘struct CONFIG’ has no member named ‘count’
noip2.c:1475: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:1477: error: ‘struct CONFIG’ has no member named ‘count’
noip2.c: In function ‘get_our_visible_IPaddr’:
noip2.c:1493: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1499: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:1500: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1503: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1503: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘dump_buffer’:
noip2.c:1517: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1518: warning: implicit declaration of function ‘mkstemp’
noip2.c: In function ‘dynamic_update’:
noip2.c:1536: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1537: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:1594: error: ‘errno’ undeclared (first use in this function)
noip2.c:1595: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:1598: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:1607: warning: implicit declaration of function ‘execl’
noip2.c:1607: warning: incompatible implicit declaration of built-in function ‘execl’
noip2.c: In function ‘handle_dynup_error’:
noip2.c:1622: error: ‘LOG_INFO’ undeclared (first use in this function)
noip2.c:1625: error: ‘errno’ undeclared (first use in this function)
noip2.c:1625: warning: assignment makes pointer from integer without a cast
noip2.c:1672: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1673: error: ‘SIGTERM’ undeclared (first use in this function)
noip2.c: In function ‘Malloc’:
noip2.c:1743: warning: implicit declaration of function ‘malloc’
noip2.c:1743: warning: incompatible implicit declaration of built-in function ‘malloc’
noip2.c:1746: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1746: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1747: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘hosts’:
noip2.c:1779: warning: incompatible implicit declaration of built-in function ‘memcpy’
noip2.c:1781: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1782: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:1788: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1788: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘xmlerr’:
noip2.c:1795: warning: implicit declaration of function ‘strncmp’
noip2.c:1807: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1807: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘get_xml_field’:
noip2.c:1821: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1825: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:1829: warning: implicit declaration of function ‘strncasecmp’
noip2.c:1840: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1840: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘add_to_list’:
noip2.c:1851: warning: implicit declaration of function ‘assert’
noip2.c:1862: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:1863: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c: In function ‘yesno’:
noip2.c:1891: warning: implicit declaration of function ‘vsnprintf’
noip2.c:1894: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1894: error: ‘stderr’ undeclared (first use in this function)
noip2.c:1895: warning: implicit declaration of function ‘tcgetattr’
noip2.c:1896: error: ‘argout’ has an incomplete type
noip2.c:1897: error: invalid use of undefined type ‘struct termios’
noip2.c:1897: error: ‘ICANON’ undeclared (first use in this function)
noip2.c:1898: error: invalid use of undefined type ‘struct termios’
noip2.c:1898: error: ‘ICRNL’ undeclared (first use in this function)
noip2.c:1899: error: invalid use of undefined type ‘struct termios’
noip2.c:1899: error: ‘OPOST’ undeclared (first use in this function)
noip2.c:1900: error: invalid use of undefined type ‘struct termios’
noip2.c:1900: error: ‘VMIN’ undeclared (first use in this function)
noip2.c:1901: error: invalid use of undefined type ‘struct termios’
noip2.c:1901: error: ‘VTIME’ undeclared (first use in this function)
noip2.c:1902: warning: implicit declaration of function ‘tcsetattr’
noip2.c:1902: error: ‘TCSADRAIN’ undeclared (first use in this function)
noip2.c:1905: warning: implicit declaration of function ‘puts’
noip2.c: In function ‘add_to_request’:
noip2.c:1916: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1917: warning: incompatible implicit declaration of built-in function ‘strcat’
noip2.c:1919: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c: In function ‘get_update_selection’:
noip2.c:1929: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:1947: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:1947: error: ‘stderr’ undeclared (first use in this function)
noip2.c: In function ‘url_encode’:
noip2.c:2043: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c: In function ‘get_credentials’:
noip2.c:2069: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:2069: error: ‘stderr’ undeclared (first use in this function)
noip2.c:2070: warning: implicit declaration of function ‘fgets’
noip2.c:2070: error: ‘stdin’ undeclared (first use in this function)
noip2.c:2071: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:2077: error: ‘argout’ has an incomplete type
noip2.c:2078: error: invalid use of undefined type ‘struct termios’
noip2.c:2078: error: ‘ICANON’ undeclared (first use in this function)
noip2.c:2078: error: ‘ECHO’ undeclared (first use in this function)
noip2.c:2079: error: invalid use of undefined type ‘struct termios’
noip2.c:2079: error: ‘ICRNL’ undeclared (first use in this function)
noip2.c:2080: error: invalid use of undefined type ‘struct termios’
noip2.c:2080: error: ‘OPOST’ undeclared (first use in this function)
noip2.c:2081: error: invalid use of undefined type ‘struct termios’
noip2.c:2081: error: ‘VMIN’ undeclared (first use in this function)
noip2.c:2082: error: invalid use of undefined type ‘struct termios’
noip2.c:2082: error: ‘VTIME’ undeclared (first use in this function)
noip2.c:2083: error: ‘TCSADRAIN’ undeclared (first use in this function)
noip2.c:2090: warning: implicit declaration of function ‘putchar’
noip2.c:2098: warning: implicit declaration of function ‘fflush’
noip2.c:2098: error: ‘stdout’ undeclared (first use in this function)
noip2.c: In function ‘get_all_device_names’:
noip2.c:2195: error: storage size of ‘Ifc’ isn’t known
noip2.c:2196: error: array type has incomplete element type
noip2.c:2201: error: ‘AF_INET’ undeclared (first use in this function)
noip2.c:2201: error: ‘SOCK_DGRAM’ undeclared (first use in this function)
noip2.c:2202: warning: implicit declaration of function ‘perror’
noip2.c:2203: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2205: error: ‘SIOCGIFCONF’ undeclared (first use in this function)
noip2.c:2207: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2209: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’ 
noip2.c:2211: warning: left-hand operand of comma expression has no effect
noip2.c:2211: error: increment of pointer to unknown structure
noip2.c:2211: error: arithmetic on pointer to an incomplete type
noip2.c:2213: error: dereferencing pointer to incomplete type
noip2.c:2216: warning: incompatible implicit declaration of built-in function ‘strchr’
noip2.c:2224: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2196: warning: unused variable ‘IfcBuf’
noip2.c:2195: warning: unused variable ‘Ifc’
noip2.c: In function ‘get_device_name’:
noip2.c:2243: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2245: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:2254: error: ‘stdin’ undeclared (first use in this function)
noip2.c: In function ‘autoconf’:
noip2.c:2266: error: ‘FILE’ undeclared (first use in this function)
noip2.c:2266: error: ‘fd’ undeclared (first use in this function)
noip2.c:2274: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2277: warning: incompatible implicit declaration of built-in function ‘strcpy’
noip2.c:2278: warning: incompatible implicit declaration of built-in function ‘strrchr’
noip2.c:2288: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c:2290: warning: implicit declaration of function ‘fdopen’
noip2.c:2292: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:2293: warning: incompatible implicit declaration of built-in function ‘memset’
noip2.c:2294: warning: incompatible implicit declaration of built-in function ‘memcpy’
noip2.c:2307: warning: incompatible implicit declaration of built-in function ‘sprintf’
noip2.c:2321: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:2321: error: ‘stderr’ undeclared (first use in this function)
noip2.c:2369: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:2370: error: ‘struct CONFIG’ has no member named ‘nat’
noip2.c:2371: error: ‘struct CONFIG’ has no member named ‘device’
noip2.c:2375: error: ‘stdin’ undeclared (first use in this function)
noip2.c:2383: error: ‘struct CONFIG’ has no member named ‘interval’
noip2.c:2389: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2389: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:2394: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c:2397: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2399: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2402: error: ‘struct CONFIG’ has no member named ‘encrypt’
noip2.c:2403: error: ‘struct CONFIG’ has no member named ‘count’
noip2.c:2404: error: ‘struct CONFIG’ has no member named ‘magic’
noip2.c:2404: error: ‘ushort’ undeclared (first use in this function)
noip2.c:2405: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:2406: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2407: error: ‘struct CONFIG’ has no member named ‘chksum’
noip2.c:2408: warning: implicit declaration of function ‘fwrite’
noip2.c:2408: warning: incompatible implicit declaration of built-in function ‘fwrite’
noip2.c:2409: error: ‘struct CONFIG’ has no member named ‘rlength’
noip2.c:2411: error: ‘struct CONFIG’ has no member named ‘elength’
noip2.c:2414: warning: implicit declaration of function ‘rename’
noip2.c:2418: warning: implicit declaration of function ‘unlink’
noip2.c:2419: warning: incompatible implicit declaration of built-in function ‘exit’
noip2.c: In function ‘bencode’:
noip2.c:2433: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c: In function ‘bdecode’:
noip2.c:2478: warning: incompatible implicit declaration of built-in function ‘strlen’
noip2.c: In function ‘Msg’:
noip2.c:2517: error: ‘LOG_ERR’ undeclared (first use in this function)
noip2.c:2519: warning: incompatible implicit declaration of built-in function ‘fprintf’
noip2.c:2519: error: ‘stderr’ undeclared (first use in this function)
make: *** [noip2] Błąd 1
asotteam@asotteam-laptop:~/programy/noip-2.1.7$ 


czemu tak się dzieję proszę o pomoc
salmon
Beginner
Posty: 296
Rejestracja: 12 października 2007, 23:28
Lokalizacja: Gliwice/Bielsko-Biała

Post autor: salmon »

Kod: Zaznacz cały

apt-get install libc6-dev linux-libc-dev
localh0st
Beginner
Posty: 190
Rejestracja: 05 września 2007, 16:45
Lokalizacja: Warka

Post autor: localh0st »

Jest też polski portal z tym samym(no-ip.pl).

Wczoraj akurat zrobiłem jego opis (a raczej uproszczoną wersję opisu konfiguracji):

http://localh0st.ovh.org/?p=57

Później można wszystko dopisać do np. corna, i dać do startu systemu. Może kogoś zainsteresuje polski dynamiczny dns, końcówka krótsza (no-ip.pl / no-ip.eu). :-P
Awatar użytkownika
qbsiu
Beginner
Posty: 491
Rejestracja: 19 marca 2007, 19:47
Lokalizacja: £DZ

Post autor: qbsiu »

Polecam też http://www.dynDNS.com - do tego jest programik ddclient, który znajduje się w repo Debiana.
Pozdrawiam!
macias
Posty: 20
Rejestracja: 03 grudnia 2007, 22:17

Post autor: macias »

salmon,

Po wpisaniu

Kod: Zaznacz cały

apt-get install libc6-dev linux-libc-dev  
Otrzymałem

Kod: Zaznacz cały

E: Nie udało się odnaleźć pakietu linux-libc-dev
salmon
Beginner
Posty: 296
Rejestracja: 12 października 2007, 23:28
Lokalizacja: Gliwice/Bielsko-Biała

Post autor: salmon »

Pewnie używasz wersji stabilnej. Zainstalowanie samego libc6-dev nie pomogło?
Dogmen
Posty: 96
Rejestracja: 08 lipca 2007, 07:41
Lokalizacja: Ma³opolska

Post autor: Dogmen »

A jak zaktualizować no-ip jak restartuje neostrade bez wyłanczania kompa
P.S Mam zainstalowany programik z NO-Ip
Awatar użytkownika
qbsiu
Beginner
Posty: 491
Rejestracja: 19 marca 2007, 19:47
Lokalizacja: £DZ

Post autor: qbsiu »

Dogmen pisze:A jak zaktualizować no-ip jak restartuje neostrade bez wyłanczania kompa
P.S Mam zainstalowany programik z NO-Ip

Kod: Zaznacz cały

/etc/init.d/noip2 restart
Jeżeli się mylę, to

Kod: Zaznacz cały

noip2 --help
jarpas
Posty: 1
Rejestracja: 04 stycznia 2008, 22:27

Post autor: jarpas »

mam pytanie... czy no-ip spowalnia pracę internetu??
Zablokowany