انجمن‌های فارسی اوبونتو

تازه کار => انجمن تازه‌کاران => نویسنده: Daniel در 15 تیر 1387، 07:14 ب‌ظ

عنوان: من و اوبون‌تو (حل شد)
ارسال شده توسط: Daniel در 15 تیر 1387، 07:14 ب‌ظ
با سلام و عرض ادب
من کمتر از یک هفته هست که اوبون‌تو نصب کردم و سعی دارم زودتر را بیافتم و این ویندوز رو کاملا از روی لب‌تاپم پاک کنم.
فکر می‌کنم اگه همه سوالاتم رو توی همین تاپیک مطرح کنم باعث بشه یک تاپیک مفیدی باشه برای دوستانی که در آینده تازه وارد این دنیای آزاد و دوست داشتنی شدن.
قبل از هر چیز مشخصات لب‌تاپم رو اینجا می‌نویسم که اگه بعدا لازم شد هی تکرار سوال و جواب نشه:
Acer Aspire3000
CPU: Mobile AMD Sempron 2800+ 1800 MHz
Ram: 1GB DDR
Graphic: SIS M760gx 128MB Share
فکر می‌کنم که این مشخصات کافی باشه.
ورژن ابون‌تو هم که نصب کردم 8.04 هست که در صورت وجود آپدیت جدید آپدیت می‌کنم.
عنوان: سوال اول: نصب PPTP
ارسال شده توسط: Daniel در 15 تیر 1387، 07:26 ب‌ظ
من برای اینکه بتونم از VPN استفاده کنم با این دستور PPTP رو نصب کردم:
sudo apt-get install pptp-linux
از قسمت Add/Remove هم برنامه VPN Connectin Manager رو نصب کردم و کار را افتاد اما:
ورژن PPTP که نصب شد 1.7.0 هست ولی تا اونجا که من دیدم آخرین ورژن PPTP 1.7.2 هست٬ یه سرچی کردم ولی نتونستم فایل deb این رو پیدا کنم. از اونجایی که PPTP ضعف‌های زیادی داره فکر می‌کنم که باید همیشه از آخرین ورژن استفاده کنیم در این مورد.
البته یک فایل tar.gz از آخرین نسخه دانلود کردم ولی متاسفانه هرچی کشتی گرفتم نتونستم نصب کنم. اگر دوستان فرمت deb از آخرین ورژن سراغ دارن ممنون می‌شم لینک دانلودش رو اینجا بگن. :oops:

با ســـــــــــــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 15 تیر 1387، 07:31 ب‌ظ
http://forum.ubuntu.ir/index.php?topic=5414.msg40171#msg40171
ی نگاهی به این بنداز! روش عمومی ی راه اندازی ی برنامه از سورس
هم باز کردن اش از حالت فشرده! و همن کامپایل
عنوان: پاسخ به: سوال اول: نصب PPTP
ارسال شده توسط: Daniel در 15 تیر 1387، 07:52 ب‌ظ
با تشکر از جواب شما
فایل آرشیو که من دانلود کردم http://quozl.netrek.org/pptp/pptp-1.7.2.tar.gz (http://quozl.netrek.org/pptp/pptp-1.7.2.tar.gz) هست که توی دسک‌تاپ سیو کردم. بعد از اینکه از حالت آرشیو خارج کردم توی دسک‌تاپ داخل فولدری به اسم pptp-1.7.2 هست. رفتم توی ترمینال و این دستورها رو اجرا کردم:
~$ cd Desktop
~/Desktop$ cd pptp-1.7.2/
~/Desktop/pptp-1.7.2$ make
بعد از اجرای دستور make خروجی که داد این بود:
echo "/* text added by Makefile target config.h */" > config.h
echo "#define PPTP_LINUX_VERSION \"1.7.2\"" >> config.h
echo "#define PPPD_BINARY \"/usr/sbin/pppd\"" >> config.h
gcc -Wall -O0 -g    -c -o pptp.o pptp.c
pptp.c:23:23: error: sys/types.h: No such file or directory
pptp.c:24:24: error: sys/socket.h: No such file or directory
pptp.c:33:17: error: pty.h: No such file or directory
pptp.c:38:24: error: netinet/in.h: No such file or directory
pptp.c:39:23: error: arpa/inet.h: No such file or directory
pptp.c:40:20: error: sys/un.h: No such file or directory
pptp.c:41:19: error: netdb.h: No such file or directory
pptp.c:42:19: error: stdio.h: No such file or directory
pptp.c:43:20: error: string.h: No such file or directory
pptp.c:44:20: error: stdlib.h: No such file or directory
pptp.c:45:20: error: syslog.h: No such file or directory
pptp.c:46:20: error: unistd.h: No such file or directory
pptp.c:47:20: error: signal.h: No such file or directory
pptp.c:48:20: error: setjmp.h: No such file or directory
pptp.c:49:19: error: errno.h: No such file or directory
pptp.c:50:22: error: sys/wait.h: No such file or directory
pptp.c:51:23: error: sys/param.h: No such file or directory
pptp.c:55:20: error: getopt.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
                 from pptp.c:57:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory
In file included from pptp.c:59:
pptp_callmgr.h:13: warning: ‘struct in_addr’ declared inside parameter list
pptp_callmgr.h:13: warning: its scope is only this definition or declaration, which is probably not what you want
pptp_callmgr.h:13: warning: ‘struct sockaddr_un’ declared inside parameter list
In file included from pptp.c:60:
pptp_gre.h:10: warning: ‘struct in_addr’ declared inside parameter list
pptp_gre.h:11: error: expected ‘)’ before ‘call_id’
pptp_gre.h:18: error: expected specifier-qualifier-list before ‘uint32_t’
pptp_gre.h:25: error: expected specifier-qualifier-list before ‘uint32_t’
pptp.c:63:23: error: sys/prctl.h: No such file or directory
In file included from pptp_quirks.h:23,
                 from pptp.c:68:
pptp_msg.h:85: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:95: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:111: error: expected specifier-qualifier-list before ‘u_int8_t’
pptp_msg.h:118: error: expected specifier-qualifier-list before ‘u_int32_t’
pptp_msg.h:124: error: expected specifier-qualifier-list before ‘u_int32_t’
pptp_msg.h:132: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:148: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:161: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:174: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:185: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:195: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:201: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:211: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:223: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:294: error: expected specifier-qualifier-list before ‘u_int8_t’
In file included from pptp_quirks.h:24,
                 from pptp.c:68:
pptp_ctrl.h:37: error: expected declaration specifiers or ‘...’ before ‘u_int8_t’
pptp_ctrl.h:42: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:42: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:44: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:44: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:48: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp_ctrl.h:48: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
In file included from pptp.c:69:
pqueue.h:4:18: error: time.h: No such file or directory
pqueue.h:5:22: error: sys/time.h: No such file or directory
In file included from pptp.c:69:
pqueue.h:19: error: field ‘expires’ has incomplete type
pptp.c:86: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:86: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:87: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c:87: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c: In function ‘usage’:
pptp.c:93: warning: implicit declaration of function ‘fprintf’
pptp.c:93: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:93: error: ‘stderr’ undeclared (first use in this function)
pptp.c:93: error: (Each undeclared identifier is reported only once
pptp.c:93: error: for each function it appears in.)
pptp.c:128: warning: implicit declaration of function ‘exit’
pptp.c:128: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c: At top level:
pptp.c:134: error: variable ‘localbind’ has initializer but incomplete type
pptp.c:134: error: ‘INADDR_NONE’ undeclared here (not in a function)
pptp.c:134: warning: excess elements in struct initializer
pptp.c:134: warning: (near initialization for ‘localbind’)
pptp.c:145: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘env’
pptp.c: In function ‘sighandler’:
pptp.c:150: warning: implicit declaration of function ‘siglongjmp’
pptp.c:150: error: ‘env’ undeclared (first use in this function)
pptp.c: In function ‘sigstats’:
pptp.c:156: warning: implicit declaration of function ‘syslog’
pptp.c:156: error: ‘LOG_NOTICE’ undeclared (first use in this function)
pptp.c:158: error: ‘gre_stats_t’ has no member named ‘rx_accepted’
pptp.c:159: error: ‘gre_stats_t’ has no member named ‘rx_lost’
pptp.c:160: error: ‘gre_stats_t’ has no member named ‘rx_underwin’
pptp.c:161: error: ‘gre_stats_t’ has no member named ‘rx_overwin’
pptp.c:162: error: ‘gre_stats_t’ has no member named ‘rx_buffered’
pptp.c:163: error: ‘gre_stats_t’ has no member named ‘rx_errors’
pptp.c:164: error: ‘gre_stats_t’ has no member named ‘rx_truncated’
pptp.c:165: error: ‘gre_stats_t’ has no member named ‘rx_invalid’
pptp.c:166: error: ‘gre_stats_t’ has no member named ‘rx_acks’
pptp.c:167: error: ‘gre_stats_t’ has no member named ‘tx_sent’
pptp.c:168: error: ‘gre_stats_t’ has no member named ‘tx_failed’
pptp.c:169: error: ‘gre_stats_t’ has no member named ‘tx_short’
pptp.c:170: error: ‘gre_stats_t’ has no member named ‘tx_acks’
pptp.c:171: error: ‘gre_stats_t’ has no member named ‘tx_oversize’
pptp.c:172: error: ‘gre_stats_t’ has no member named ‘rtt’
pptp.c: In function ‘main’:
pptp.c:183: error: storage size of ‘inetaddr’ isn’t known
pptp.c:185: error: ‘PATH_MAX’ undeclared (first use in this function)
pptp.c:187: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parent_pid’
pptp.c:187: error: ‘parent_pid’ undeclared (first use in this function)
pptp.c:187: error: ‘child_pid’ undeclared (first use in this function)
pptp.c:187: warning: left-hand operand of comma expression has no effect
pptp.c:188: error: ‘u_int16_t’ undeclared (first use in this function)
pptp.c:188: error: expected ‘;’ before ‘call_id’
pptp.c:194: error: ‘NULL’ undeclared (first use in this function)
pptp.c:199: error: array type has incomplete element type
pptp.c:219: warning: implicit declaration of function ‘getopt_long’
pptp.c:226: warning: implicit declaration of function ‘strncpy’
pptp.c:226: warning: incompatible implicit declaration of built-in function ‘strncpy’
pptp.c:226: error: ‘optarg’ undeclared (first use in this function)
pptp.c:239: warning: implicit declaration of function ‘atof’
pptp.c:242: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:242: error: ‘stderr’ undeclared (first use in this function)
pptp.c:248: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:253: warning: implicit declaration of function ‘strdup’
pptp.c:253: warning: incompatible implicit declaration of built-in function ‘strdup’
pptp.c:255: warning: implicit declaration of function ‘inet_pton’
pptp.c:255: error: ‘AF_INET’ undeclared (first use in this function)
pptp.c:256: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:259: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:262: warning: implicit declaration of function ‘atoi’
pptp.c:270: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:272: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:279: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:281: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:285: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:287: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:287: error: ‘stdout’ undeclared (first use in this function)
pptp.c:288: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:199: warning: unused variable ‘long_options’
pptp.c:304: error: ‘optind’ undeclared (first use in this function)
pptp.c:308: error: invalid use of undefined type ‘struct in_addr’
pptp.c:319: error: type of formal parameter 1 is incomplete
pptp.c:321: warning: implicit declaration of function ‘close’
pptp.c:327: warning: implicit declaration of function ‘openpty’
pptp.c:334: warning: implicit declaration of function ‘signal’
pptp.c:334: error: ‘SIGUSR1’ undeclared (first use in this function)
pptp.c:335: error: ‘SIGCHLD’ undeclared (first use in this function)
pptp.c:336: warning: implicit declaration of function ‘getpid’
pptp.c:337: warning: implicit declaration of function ‘fork’
pptp.c:342: error: ‘SIG_DFL’ undeclared (first use in this function)
pptp.c:353: warning: implicit declaration of function ‘pause’
pptp.c:360: warning: implicit declaration of function ‘perror’
pptp.c:364: error: ‘STDIN_FILENO’ undeclared (first use in this function)
pptp.c:366: error: ‘STDOUT_FILENO’ undeclared (first use in this function)
pptp.c:376: error: type of formal parameter 1 is incomplete
pptp.c:379: error: ‘call_id’ undeclared (first use in this function)
pptp.c:379: error: ‘peer_call_id’ undeclared (first use in this function)
pptp.c:379: error: too many arguments to function ‘get_call_id’
pptp.c:383: warning: implicit declaration of function ‘kill’
pptp.c:384: warning: implicit declaration of function ‘sleep’
pptp.c:386: warning: implicit declaration of function ‘daemon’
pptp.c:391: error: ‘STDERR_FILENO’ undeclared (first use in this function)
pptp.c:394: warning: implicit declaration of function ‘ttyname’
pptp.c:394: warning: initialization makes pointer from integer without a cast
pptp.c:395: warning: implicit declaration of function ‘snprintf’
pptp.c:395: warning: incompatible implicit declaration of built-in function ‘snprintf’
pptp.c:401: warning: implicit declaration of function ‘inststr’
pptp.c:403: warning: implicit declaration of function ‘sigsetjmp’
pptp.c:403: error: ‘env’ undeclared (first use in this function)
pptp.c:405: error: ‘SIGINT’ undeclared (first use in this function)
pptp.c:406: error: ‘SIGTERM’ undeclared (first use in this function)
pptp.c:407: error: ‘SIGKILL’ undeclared (first use in this function)
pptp.c:412: warning: implicit declaration of function ‘pptp_gre_copy’
pptp.c:420: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:185: warning: unused variable ‘ttydev’
pptp.c:183: warning: unused variable ‘inetaddr’
pptp.c: At top level:
pptp.c:425: error: return type is an incomplete type
pptp.c:425: error: conflicting types for ‘get_ip_address’
pptp.c:83: error: previous declaration of ‘get_ip_address’ was here
pptp.c: In function ‘get_ip_address’:
pptp.c:426: error: storage size of ‘retval’ isn’t known
pptp.c:427: warning: implicit declaration of function ‘gethostbyname’
pptp.c:427: warning: initialization makes pointer from integer without a cast
pptp.c:428: error: ‘NULL’ undeclared (first use in this function)
pptp.c:429: error: ‘h_errno’ undeclared (first use in this function)
pptp.c:429: error: ‘HOST_NOT_FOUND’ undeclared (first use in this function)
pptp.c:431: error: ‘NO_ADDRESS’ undeclared (first use in this function)
pptp.c:436: error: dereferencing pointer to incomplete type
pptp.c:436: error: ‘AF_INET’ undeclared (first use in this function)
pptp.c:438: warning: implicit declaration of function ‘memcpy’
pptp.c:438: warning: incompatible implicit declaration of built-in function ‘memcpy’
pptp.c:438: error: dereferencing pointer to incomplete type
pptp.c:439: warning: ‘return’ with a value, in function returning void
pptp.c:426: warning: unused variable ‘retval’
pptp.c: At top level:
pptp.c:443: error: parameter 1 (‘inetaddr’) has incomplete type
pptp.c: In function ‘open_callmgr’:
pptp.c:447: error: storage size of ‘where’ isn’t known
pptp.c:450: error: ‘pid_t’ undeclared (first use in this function)
pptp.c:450: error: expected ‘;’ before ‘pid’
pptp.c:453: warning: implicit declaration of function ‘socket’
pptp.c:453: error: ‘AF_UNIX’ undeclared (first use in this function)
pptp.c:453: error: ‘SOCK_STREAM’ undeclared (first use in this function)
pptp.c:454: warning: implicit declaration of function ‘strerror’
pptp.c:454: error: ‘errno’ undeclared (first use in this function)
pptp.c:454: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
pptp.c:457: error: type of formal parameter 2 is incomplete
pptp.c:457: error: ‘localbind’ has an incomplete type
pptp.c:457: error: type of formal parameter 3 is incomplete
pptp.c:459: warning: implicit declaration of function ‘connect’
pptp.c:462: warning: implicit declaration of function ‘unlink’
pptp.c:465: error: ‘pid’ undeclared (first use in this function)
pptp.c:474: error: type of formal parameter 1 is incomplete
pptp.c:477: warning: implicit declaration of function ‘waitpid’
pptp.c:447: warning: unused variable ‘where’
pptp.c: At top level:
pptp.c:492: error: parameter 1 (‘inetaddr’) has incomplete type
pptp.c: In function ‘launch_callmgr’:
pptp.c:495: warning: implicit declaration of function ‘inet_ntoa’
pptp.c:495: warning: initialization makes pointer from integer without a cast
pptp.c:497: warning: incompatible implicit declaration of built-in function ‘snprintf’
pptp.c:505: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c: At top level:
pptp.c:510: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:510: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:511: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c:511: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c: In function ‘get_call_id’:
pptp.c:513: error: ‘u_int16_t’ undeclared (first use in this function)
pptp.c:513: error: expected ‘;’ before ‘m_call_id’
pptp.c:519: warning: implicit declaration of function ‘write’
pptp.c:519: error: ‘gre’ undeclared (first use in this function)
pptp.c:522: error: ‘pppd’ undeclared (first use in this function)
pptp.c:525: warning: implicit declaration of function ‘read’
pptp.c:525: error: ‘m_call_id’ undeclared (first use in this function)
pptp.c:528: error: ‘m_peer_call_id’ undeclared (first use in this function)
pptp.c:540: error: ‘call_id’ undeclared (first use in this function)
pptp.c:541: error: ‘peer_call_id’ undeclared (first use in this function)
pptp.c: In function ‘launch_pppd’:
pptp.c:565: error: ‘NULL’ undeclared (first use in this function)
pptp.c:566: warning: implicit declaration of function ‘execvp’
make: *** [pptp.o] Error 1
چون اجرای دستور make با اررور مواجه شده نمی‌شه دستور بعدی که make install هست رو اجرا کنم.

با ســـــــــــــــــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 15 تیر 1387، 08:21 ب‌ظ
$ ./configure
این رو قبل از make باید صادر کنی!
همچنین gcc رو هم نصب کن
$ sudo apt-get install gcc
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 15 تیر 1387، 09:01 ب‌ظ
gcc نصب بود٬ ولی وقتی این کامند که دادین رو اجرا می‌کنم خروجی این رو می‌ده:
bash: ./configure: No such file or directory

با ســــ‍ـــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 15 تیر 1387، 09:11 ب‌ظ
داخل اون بسته ای که دانلوذ کردی ! باید ی Readme باشه که روش دقیق نصب رو گفته! و یا در خود سایت pptp!  ی بررسی کن!‌ممکنه روش دیگه داشته باشه!
اگه گیر نیاوردی! بگو تا بگردم راه اش رو برات پیدا کنم!
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 15 تیر 1387، 09:30 ب‌ظ
داخل اون بسته ای که دانلوذ کردی ! باید ی Readme باشه که روش دقیق نصب رو گفته! و یا در خود سایت pptp!  ی بررسی کن!‌ممکنه روش دیگه داشته باشه!
اگه گیر نیاوردی! بگو تا بگردم راه اش رو برات پیدا کنم!
یک فایل هست به اسم install:
Installation Instructions - Brief

    1.  install pppd (with MPPE if you require it),
    2.  if pppd is not in /usr/sbin, edit Makefile, variable PPPD,
    3.  'make'
    4.  'make install'


Installation Instructions - Detailed

    1.  install PPP, and make sure it is working.

        On most distributions, use the package called ppp or pppd.

        If your PPTP server requires MPPE, make sure the pppd program
        has been built with MPPE and MS-CHAP support.  PPP from
        version 2.4.2 onwards has this support.  PPP may require
        kernel support for MPPE, which may require patching your
        kernel.

    2.  verify that the pppd program is in the /usr/sbin/ directory.

        On some distributions, it is in /usr/bin, or somewhere else.
        If it isn't in the default directory, edit the Makefile, and
        change the PPPD variable to point at the pppd program.

        You may even want to run a separate pppd program with MPPE
        support.

    3.  compile

        Type 'make'.  This should generate the 'pptp' executable.

    4.  install binaries

Type 'make install' to have the program and the manual page
installed.


Further information

    http://pptpclient.sourceforge.net/


$Id: INSTALL,v 1.2 2003/01/15 05:29:20 quozl Exp $

فایل pppd در مسیر گفته شده هم موجود هست ](*,)

با ســــــــــــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 15 تیر 1387، 10:01 ب‌ظ
خب پس!‌ نصب هستش!‌ (البته نسخه اش قدیمی ی) ;)
می تونی قبلی رو با دستور
$ sudo apt-get remove --purge pptpd pptp-linux
حذف کنی و بعد بر اساس همون فایل install عمل کنی!    sudo make و sudo make install  براش کافیت میکنه و نیازی به configure نداره!
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: HardyLaity در 15 تیر 1387، 10:15 ب‌ظ
به گمانم شما مشکلتون بایستی از user باشه یه user جدید بسازید و آزمایش کنید
عنوان: پاسخ به: سوال اول: نصب PPTP
ارسال شده توسط: Daniel در 16 تیر 1387، 12:59 ق‌ظ
خب پس!‌ نصب هستش!‌ (البته نسخه اش قدیمی ی) ;)
می تونی قبلی رو با دستور
$ sudo apt-get remove --purge pptpd pptp-linux
حذف کنی و بعد بر اساس همون فایل install عمل کنی!    sudo make و sudo make install  براش کافیت میکنه و نیازی به configure نداره!


مشکل همینجاست٬ قبل از اینکه من ورژن قدیمی‌تر رو نصب کنم کلی با این پک کشتی گرفتم ولی نصب نشد برای همین رفتم سراغ این ورژن. باز هم با دستوری که لطف کردین پاک کردم و زمانی‌که sudo make رو اجرا می‌کنم این خروجی رو می‌ده و در نهایت بازم نصب نمی‌شه! ](*,) ](*,)
~$ cd Desktop
~/Desktop$ cd pptp-1.7.2/
~/Desktop/pptp-1.7.2$ sudo make
gcc -Wall -O0 -g    -c -o pptp.o pptp.c
pptp.c:23:23: error: sys/types.h: No such file or directory
pptp.c:24:24: error: sys/socket.h: No such file or directory
pptp.c:33:17: error: pty.h: No such file or directory
pptp.c:38:24: error: netinet/in.h: No such file or directory
pptp.c:39:23: error: arpa/inet.h: No such file or directory
pptp.c:40:20: error: sys/un.h: No such file or directory
pptp.c:41:19: error: netdb.h: No such file or directory
pptp.c:42:19: error: stdio.h: No such file or directory
pptp.c:43:20: error: string.h: No such file or directory
pptp.c:44:20: error: stdlib.h: No such file or directory
pptp.c:45:20: error: syslog.h: No such file or directory
pptp.c:46:20: error: unistd.h: No such file or directory
pptp.c:47:20: error: signal.h: No such file or directory
pptp.c:48:20: error: setjmp.h: No such file or directory
pptp.c:49:19: error: errno.h: No such file or directory
pptp.c:50:22: error: sys/wait.h: No such file or directory
pptp.c:51:23: error: sys/param.h: No such file or directory
pptp.c:55:20: error: getopt.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
                 from pptp.c:57:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory
In file included from pptp.c:59:
pptp_callmgr.h:13: warning: ‘struct in_addr’ declared inside parameter list
pptp_callmgr.h:13: warning: its scope is only this definition or declaration, which is probably not what you want
pptp_callmgr.h:13: warning: ‘struct sockaddr_un’ declared inside parameter list
In file included from pptp.c:60:
pptp_gre.h:10: warning: ‘struct in_addr’ declared inside parameter list
pptp_gre.h:11: error: expected ‘)’ before ‘call_id’
pptp_gre.h:18: error: expected specifier-qualifier-list before ‘uint32_t’
pptp_gre.h:25: error: expected specifier-qualifier-list before ‘uint32_t’
pptp.c:63:23: error: sys/prctl.h: No such file or directory
In file included from pptp_quirks.h:23,
                 from pptp.c:68:
pptp_msg.h:85: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:95: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:111: error: expected specifier-qualifier-list before ‘u_int8_t’
pptp_msg.h:118: error: expected specifier-qualifier-list before ‘u_int32_t’
pptp_msg.h:124: error: expected specifier-qualifier-list before ‘u_int32_t’
pptp_msg.h:132: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:148: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:161: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:174: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:185: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:195: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:201: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:211: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:223: error: expected specifier-qualifier-list before ‘u_int16_t’
pptp_msg.h:294: error: expected specifier-qualifier-list before ‘u_int8_t’
In file included from pptp_quirks.h:24,
                 from pptp.c:68:
pptp_ctrl.h:37: error: expected declaration specifiers or ‘...’ before ‘u_int8_t’
pptp_ctrl.h:42: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:42: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:44: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:44: error: expected declaration specifiers or ‘...’ before ‘fd_set’
pptp_ctrl.h:48: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp_ctrl.h:48: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
In file included from pptp.c:69:
pqueue.h:4:18: error: time.h: No such file or directory
pqueue.h:5:22: error: sys/time.h: No such file or directory
In file included from pptp.c:69:
pqueue.h:19: error: field ‘expires’ has incomplete type
pptp.c:86: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:86: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:87: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c:87: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c: In function ‘usage’:
pptp.c:93: warning: implicit declaration of function ‘fprintf’
pptp.c:93: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:93: error: ‘stderr’ undeclared (first use in this function)
pptp.c:93: error: (Each undeclared identifier is reported only once
pptp.c:93: error: for each function it appears in.)
pptp.c:128: warning: implicit declaration of function ‘exit’
pptp.c:128: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c: At top level:
pptp.c:134: error: variable ‘localbind’ has initializer but incomplete type
pptp.c:134: error: ‘INADDR_NONE’ undeclared here (not in a function)
pptp.c:134: warning: excess elements in struct initializer
pptp.c:134: warning: (near initialization for ‘localbind’)
pptp.c:145: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘env’
pptp.c: In function ‘sighandler’:
pptp.c:150: warning: implicit declaration of function ‘siglongjmp’
pptp.c:150: error: ‘env’ undeclared (first use in this function)
pptp.c: In function ‘sigstats’:
pptp.c:156: warning: implicit declaration of function ‘syslog’
pptp.c:156: error: ‘LOG_NOTICE’ undeclared (first use in this function)
pptp.c:158: error: ‘gre_stats_t’ has no member named ‘rx_accepted’
pptp.c:159: error: ‘gre_stats_t’ has no member named ‘rx_lost’
pptp.c:160: error: ‘gre_stats_t’ has no member named ‘rx_underwin’
pptp.c:161: error: ‘gre_stats_t’ has no member named ‘rx_overwin’
pptp.c:162: error: ‘gre_stats_t’ has no member named ‘rx_buffered’
pptp.c:163: error: ‘gre_stats_t’ has no member named ‘rx_errors’
pptp.c:164: error: ‘gre_stats_t’ has no member named ‘rx_truncated’
pptp.c:165: error: ‘gre_stats_t’ has no member named ‘rx_invalid’
pptp.c:166: error: ‘gre_stats_t’ has no member named ‘rx_acks’
pptp.c:167: error: ‘gre_stats_t’ has no member named ‘tx_sent’
pptp.c:168: error: ‘gre_stats_t’ has no member named ‘tx_failed’
pptp.c:169: error: ‘gre_stats_t’ has no member named ‘tx_short’
pptp.c:170: error: ‘gre_stats_t’ has no member named ‘tx_acks’
pptp.c:171: error: ‘gre_stats_t’ has no member named ‘tx_oversize’
pptp.c:172: error: ‘gre_stats_t’ has no member named ‘rtt’
pptp.c: In function ‘main’:
pptp.c:183: error: storage size of ‘inetaddr’ isn’t known
pptp.c:185: error: ‘PATH_MAX’ undeclared (first use in this function)
pptp.c:187: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parent_pid’
pptp.c:187: error: ‘parent_pid’ undeclared (first use in this function)
pptp.c:187: error: ‘child_pid’ undeclared (first use in this function)
pptp.c:187: warning: left-hand operand of comma expression has no effect
pptp.c:188: error: ‘u_int16_t’ undeclared (first use in this function)
pptp.c:188: error: expected ‘;’ before ‘call_id’
pptp.c:194: error: ‘NULL’ undeclared (first use in this function)
pptp.c:199: error: array type has incomplete element type
pptp.c:219: warning: implicit declaration of function ‘getopt_long’
pptp.c:226: warning: implicit declaration of function ‘strncpy’
pptp.c:226: warning: incompatible implicit declaration of built-in function ‘strncpy’
pptp.c:226: error: ‘optarg’ undeclared (first use in this function)
pptp.c:239: warning: implicit declaration of function ‘atof’
pptp.c:242: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:242: error: ‘stderr’ undeclared (first use in this function)
pptp.c:248: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:253: warning: implicit declaration of function ‘strdup’
pptp.c:253: warning: incompatible implicit declaration of built-in function ‘strdup’
pptp.c:255: warning: implicit declaration of function ‘inet_pton’
pptp.c:255: error: ‘AF_INET’ undeclared (first use in this function)
pptp.c:256: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:259: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:262: warning: implicit declaration of function ‘atoi’
pptp.c:270: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:272: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:279: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:281: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:285: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:287: warning: incompatible implicit declaration of built-in function ‘fprintf’
pptp.c:287: error: ‘stdout’ undeclared (first use in this function)
pptp.c:288: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:199: warning: unused variable ‘long_options’
pptp.c:304: error: ‘optind’ undeclared (first use in this function)
pptp.c:308: error: invalid use of undefined type ‘struct in_addr’
pptp.c:319: error: type of formal parameter 1 is incomplete
pptp.c:321: warning: implicit declaration of function ‘close’
pptp.c:327: warning: implicit declaration of function ‘openpty’
pptp.c:334: warning: implicit declaration of function ‘signal’
pptp.c:334: error: ‘SIGUSR1’ undeclared (first use in this function)
pptp.c:335: error: ‘SIGCHLD’ undeclared (first use in this function)
pptp.c:336: warning: implicit declaration of function ‘getpid’
pptp.c:337: warning: implicit declaration of function ‘fork’
pptp.c:342: error: ‘SIG_DFL’ undeclared (first use in this function)
pptp.c:353: warning: implicit declaration of function ‘pause’
pptp.c:360: warning: implicit declaration of function ‘perror’
pptp.c:364: error: ‘STDIN_FILENO’ undeclared (first use in this function)
pptp.c:366: error: ‘STDOUT_FILENO’ undeclared (first use in this function)
pptp.c:376: error: type of formal parameter 1 is incomplete
pptp.c:379: error: ‘call_id’ undeclared (first use in this function)
pptp.c:379: error: ‘peer_call_id’ undeclared (first use in this function)
pptp.c:379: error: too many arguments to function ‘get_call_id’
pptp.c:383: warning: implicit declaration of function ‘kill’
pptp.c:384: warning: implicit declaration of function ‘sleep’
pptp.c:386: warning: implicit declaration of function ‘daemon’
pptp.c:391: error: ‘STDERR_FILENO’ undeclared (first use in this function)
pptp.c:394: warning: implicit declaration of function ‘ttyname’
pptp.c:394: warning: initialization makes pointer from integer without a cast
pptp.c:395: warning: implicit declaration of function ‘snprintf’
pptp.c:395: warning: incompatible implicit declaration of built-in function ‘snprintf’
pptp.c:401: warning: implicit declaration of function ‘inststr’
pptp.c:403: warning: implicit declaration of function ‘sigsetjmp’
pptp.c:403: error: ‘env’ undeclared (first use in this function)
pptp.c:405: error: ‘SIGINT’ undeclared (first use in this function)
pptp.c:406: error: ‘SIGTERM’ undeclared (first use in this function)
pptp.c:407: error: ‘SIGKILL’ undeclared (first use in this function)
pptp.c:412: warning: implicit declaration of function ‘pptp_gre_copy’
pptp.c:420: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c:185: warning: unused variable ‘ttydev’
pptp.c:183: warning: unused variable ‘inetaddr’
pptp.c: At top level:
pptp.c:425: error: return type is an incomplete type
pptp.c:425: error: conflicting types for ‘get_ip_address’
pptp.c:83: error: previous declaration of ‘get_ip_address’ was here
pptp.c: In function ‘get_ip_address’:
pptp.c:426: error: storage size of ‘retval’ isn’t known
pptp.c:427: warning: implicit declaration of function ‘gethostbyname’
pptp.c:427: warning: initialization makes pointer from integer without a cast
pptp.c:428: error: ‘NULL’ undeclared (first use in this function)
pptp.c:429: error: ‘h_errno’ undeclared (first use in this function)
pptp.c:429: error: ‘HOST_NOT_FOUND’ undeclared (first use in this function)
pptp.c:431: error: ‘NO_ADDRESS’ undeclared (first use in this function)
pptp.c:436: error: dereferencing pointer to incomplete type
pptp.c:436: error: ‘AF_INET’ undeclared (first use in this function)
pptp.c:438: warning: implicit declaration of function ‘memcpy’
pptp.c:438: warning: incompatible implicit declaration of built-in function ‘memcpy’
pptp.c:438: error: dereferencing pointer to incomplete type
pptp.c:439: warning: ‘return’ with a value, in function returning void
pptp.c:426: warning: unused variable ‘retval’
pptp.c: At top level:
pptp.c:443: error: parameter 1 (‘inetaddr’) has incomplete type
pptp.c: In function ‘open_callmgr’:
pptp.c:447: error: storage size of ‘where’ isn’t known
pptp.c:450: error: ‘pid_t’ undeclared (first use in this function)
pptp.c:450: error: expected ‘;’ before ‘pid’
pptp.c:453: warning: implicit declaration of function ‘socket’
pptp.c:453: error: ‘AF_UNIX’ undeclared (first use in this function)
pptp.c:453: error: ‘SOCK_STREAM’ undeclared (first use in this function)
pptp.c:454: warning: implicit declaration of function ‘strerror’
pptp.c:454: error: ‘errno’ undeclared (first use in this function)
pptp.c:454: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
pptp.c:457: error: type of formal parameter 2 is incomplete
pptp.c:457: error: ‘localbind’ has an incomplete type
pptp.c:457: error: type of formal parameter 3 is incomplete
pptp.c:459: warning: implicit declaration of function ‘connect’
pptp.c:462: warning: implicit declaration of function ‘unlink’
pptp.c:465: error: ‘pid’ undeclared (first use in this function)
pptp.c:474: error: type of formal parameter 1 is incomplete
pptp.c:477: warning: implicit declaration of function ‘waitpid’
pptp.c:447: warning: unused variable ‘where’
pptp.c: At top level:
pptp.c:492: error: parameter 1 (‘inetaddr’) has incomplete type
pptp.c: In function ‘launch_callmgr’:
pptp.c:495: warning: implicit declaration of function ‘inet_ntoa’
pptp.c:495: warning: initialization makes pointer from integer without a cast
pptp.c:497: warning: incompatible implicit declaration of built-in function ‘snprintf’
pptp.c:505: warning: incompatible implicit declaration of built-in function ‘exit’
pptp.c: At top level:
pptp.c:510: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:510: error: expected declaration specifiers or ‘...’ before ‘pid_t’
pptp.c:511: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c:511: error: expected declaration specifiers or ‘...’ before ‘u_int16_t’
pptp.c: In function ‘get_call_id’:
pptp.c:513: error: ‘u_int16_t’ undeclared (first use in this function)
pptp.c:513: error: expected ‘;’ before ‘m_call_id’
pptp.c:519: warning: implicit declaration of function ‘write’
pptp.c:519: error: ‘gre’ undeclared (first use in this function)
pptp.c:522: error: ‘pppd’ undeclared (first use in this function)
pptp.c:525: warning: implicit declaration of function ‘read’
pptp.c:525: error: ‘m_call_id’ undeclared (first use in this function)
pptp.c:528: error: ‘m_peer_call_id’ undeclared (first use in this function)
pptp.c:540: error: ‘call_id’ undeclared (first use in this function)
pptp.c:541: error: ‘peer_call_id’ undeclared (first use in this function)
pptp.c: In function ‘launch_pppd’:
pptp.c:565: error: ‘NULL’ undeclared (first use in this function)
pptp.c:566: warning: implicit declaration of function ‘execvp’
make: *** [pptp.o] Error 1

با ســــــــــ‍پاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 16 تیر 1387، 01:01 ق‌ظ
به گمانم شما مشکلتون بایستی از user باشه یه user جدید بسازید و آزمایش کنید

پیشنهاد شما رو هم تست کردم ولی بازهم این ورژن نصب نشد! ](*,) ](*,)
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: HardyLaity در 16 تیر 1387، 01:23 ب‌ظ
به گمانم شما مشکلتون بایستی از user باشه یه user جدید بسازید و آزمایش کنید

پیشنهاد شما رو هم تست کردم ولی بازهم این ورژن نصب نشد! ](*,) ](*,)

از طریق rpm هم آزمایش کنید 

http://sourceforge.net/project/showfiles.php?group_id=33063
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 16 تیر 1387، 01:33 ب‌ظ
به گمانم شما مشکلتون بایستی از user باشه یه user جدید بسازید و آزمایش کنید

پیشنهاد شما رو هم تست کردم ولی بازهم این ورژن نصب نشد! ](*,) ](*,)

از طریق rpm هم آزمایش کنید 

http://sourceforge.net/project/showfiles.php?group_id=33063

سلام
من فایل رو دانلود کردم٬ اگه امکان داره نحوه نصب از طریق rpm رو توضیح بدید.

با ســــــــــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 16 تیر 1387، 01:38 ب‌ظ
???
من که متوجه ارور اش نشدم!  شاید از هدر ها باشه! یکمی صبر کنید تا دوستان دیگه هم ببرسی کنند.
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 16 تیر 1387، 01:40 ب‌ظ
به گمانم شما مشکلتون بایستی از user باشه یه user جدید بسازید و آزمایش کنید
پیشنهاد شما رو هم تست کردم ولی بازهم این ورژن نصب نشد! ](*,) ](*,)

از طریق rpm هم آزمایش کنید 

http://sourceforge.net/project/showfiles.php?group_id=33063

سلام
من فایل رو دانلود کردم٬ اگه امکان داره نحوه نصب از طریق rpm رو توضیح بدید.

با ســــــــــپاس

http://forum.ubuntu.ir/index.php?topic=260.0
این روش تنبدیل بسته ی rpm به deb هستش و فایل خروجی هم که با دابل-کلیک قابل نصب هستش! ;)
عنوان: پاسخ به: سوال اول: نصب PPTP
ارسال شده توسط: Daniel در 16 تیر 1387، 03:53 ب‌ظ
سلام
آقا دست گل همگی درد نکنه مخصوصا جناب طالقانی عزیز٬ با این روش آخر که فایل rpm رو به deb تبدیل کردم و مثل آب خوردن نصبید :)
عنوان: سوال دوم: چرا swap of می‌شه؟
ارسال شده توسط: Daniel در 16 تیر 1387، 04:13 ب‌ظ
خوب با اجازه می‌خوام برم سراغ سوال بعدی.
من وقتی اوبون‌تو رو نصب کردم خودش برام یک پارتیشن Swap درست کرد که البته 200mb بیشتر نبود. به توصیه دوستان من این پارتیشن رو ری‌سایز کردم به دو برابر رم. حالا مشکلی که هست هر موقع سیستم رو روشن می‌کنم و یا هر موقع ری‌استارت می‌کنم این پارتیشن می‌ره تو حالت Swapof. توی System Monitor هم کاملا نشون می‌ده که اصلا پارتیشن Swap خبری نیست. برای اینکه Swapon کنم باید وارد پارتیشن ادیتور بشم.
حالا دو تا سوال اینجا هست:
۱. چه چیزی باعث شده که این از حالت اتوماتیک دربیاد؟
۲. چطوری می‌تونم دوباره برگردونم به حالت اتومات تا ابون‌تو که بالا میاد Swapon باشه؟

با ســـــــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: علیرضا طالقانی در 16 تیر 1387، 08:24 ب‌ظ
سلام
آقا دست گل همگی درد نکنه مخصوصا جناب طالقانی عزیز٬ با این روش آخر که فایل rpm رو به deb تبدیل کردم و مثل آب خوردن نصبید :)
خواهش میشه!‌به نظرم آقای ریاضی زحمت اون مورد رو کشیده بودند! من فقط لینک دادم!  ;)

سوال دوم ات رو هم!‌  نمی دونم! :P  ;)
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 17 تیر 1387، 01:08 ق‌ظ
سلام
آقا دست گل همگی درد نکنه مخصوصا جناب طالقانی عزیز٬ با این روش آخر که فایل rpm رو به deb تبدیل کردم و مثل آب خوردن نصبید :)
خواهش میشه!‌به نظرم آقای ریاضی زحمت اون مورد رو کشیده بودند! من فقط لینک دادم!  ;)

سوال دوم ات رو هم!‌  نمی دونم! :P  ;)
از آقای ریاضی بابت زجمتی که کشیدن سپاس‌گذارم و مجددا از آقای طالقانی عزیز بخاطری همراهی من از آغاز این تاپیک ممنون هستم.

امیدوارم دوستان با تجربه در مورد این سوال همراهی کنن:
خوب با اجازه می‌خوام برم سراغ سوال بعدی.
من وقتی اوبون‌تو رو نصب کردم خودش برام یک پارتیشن Swap درست کرد که البته 200mb بیشتر نبود. به توصیه دوستان من این پارتیشن رو ری‌سایز کردم به دو برابر رم. حالا مشکلی که هست هر موقع سیستم رو روشن می‌کنم و یا هر موقع ری‌استارت می‌کنم این پارتیشن می‌ره تو حالت Swapof. توی System Monitor هم کاملا نشون می‌ده که اصلا پارتیشن Swap خبری نیست. برای اینکه Swapon کنم باید وارد پارتیشن ادیتور بشم.
حالا دو تا سوال اینجا هست:
۱. چه چیزی باعث شده که این از حالت اتوماتیک دربیاد؟
۲. چطوری می‌تونم دوباره برگردونم به حالت اتومات تا ابون‌تو که بالا میاد Swapon باشه؟


با ســـــــــــپاس
عنوان: پاسخ به: سوال دوم: چرا swap of می‌شه؟
ارسال شده توسط: HardyLaity در 17 تیر 1387، 01:19 ق‌ظ
خوب با اجازه می‌خوام برم سراغ سوال بعدی.
من وقتی اوبون‌تو رو نصب کردم خودش برام یک پارتیشن Swap درست کرد که البته 200mb بیشتر نبود. به توصیه دوستان من این پارتیشن رو ری‌سایز کردم به دو برابر رم. حالا مشکلی که هست هر موقع سیستم رو روشن می‌کنم و یا هر موقع ری‌استارت می‌کنم این پارتیشن می‌ره تو حالت Swapof. توی System Monitor هم کاملا نشون می‌ده که اصلا پارتیشن Swap خبری نیست. برای اینکه Swapon کنم باید وارد پارتیشن ادیتور بشم.
حالا دو تا سوال اینجا هست:
۱. چه چیزی باعث شده که این از حالت اتوماتیک دربیاد؟
۲. چطوری می‌تونم دوباره برگردونم به حالت اتومات تا ابون‌تو که بالا میاد Swapon باشه؟

با ســـــــپاس


خوشحالم که مشکلتون حل شده

۱- شما احتمالا از خارج از لینوکس این پارتیشن رو ریسایز کردین و uuid به هم ریخته

۲ - به لینک زیر مراجعه کنید

http://forum.ubuntu.ir/index.php?topic=5038.0

دوست گرامی این که شما سوال میپرسید بسیار خوبه بخصوص برای من تازه وارد چون از سوالات شما خیلی چیز یاد میگیرم ولی دوستان قدیمی مثل جناب طالقانی و سید مهدی واقعا به همه ما لطف دارن و پیگیری میکنند ولی ما هم یکم باید مراعات حالشون رو بکنیم من این لینک بالا رو میدونید چگونه پیدا کردم ؟ در جستجو تایپ کردم swapon همان چیزی که شما نوشته بودید . اگر که شما لطف کنید در مورد سوالاتون یه سرچ تو فروم بکنید فکر میکنم اکثر جوابهاتون رو پیدا میکنید . اگر پیدا نشد لطف میکنید و سوال میکنید چون مطلبی به دانسته های ما میافزائید
عنوان: پاسخ به: سوال دوم: چرا swap of می‌شه؟
ارسال شده توسط: Daniel در 17 تیر 1387، 01:26 ق‌ظ
خوب با اجازه می‌خوام برم سراغ سوال بعدی.
من وقتی اوبون‌تو رو نصب کردم خودش برام یک پارتیشن Swap درست کرد که البته 200mb بیشتر نبود. به توصیه دوستان من این پارتیشن رو ری‌سایز کردم به دو برابر رم. حالا مشکلی که هست هر موقع سیستم رو روشن می‌کنم و یا هر موقع ری‌استارت می‌کنم این پارتیشن می‌ره تو حالت Swapof. توی System Monitor هم کاملا نشون می‌ده که اصلا پارتیشن Swap خبری نیست. برای اینکه Swapon کنم باید وارد پارتیشن ادیتور بشم.
حالا دو تا سوال اینجا هست:
۱. چه چیزی باعث شده که این از حالت اتوماتیک دربیاد؟
۲. چطوری می‌تونم دوباره برگردونم به حالت اتومات تا ابون‌تو که بالا میاد Swapon باشه؟

با ســـــــپاس


خوشحالم که مشکلتون حل شده

۱- شما احتمالا از خارج از لینوکس این پارتیشن رو ریسایز کردین و uuid به هم ریخته

۲ - به لینک زیر مراجعه کنید

http://forum.ubuntu.ir/index.php?topic=5038.0

دوست گرامی این که شما سوال میپرسید بسیار خوبه بخصوص برای من تازه وارد چون از سوالات شما خیلی چیز یاد میگیرم ولی دوستان قدیمی مثل جناب طالقانی و سید مهدی واقعا به همه ما لطف دارن و پیگیری میکنند ولی ما هم یکم باید مراعات حالشون رو بکنیم من این لینک بالا رو میدونید چگونه پیدا کردم ؟ در جستجو تایپ کردم swapon همان چیزی که شما نوشته بودید . اگر که شما لطف کنید در مورد سوالاتون یه سرچ تو فروم بکنید فکر میکنم اکثر جوابهاتون رو پیدا میکنید . اگر پیدا نشد لطف میکنید و سوال میکنید چون مطلبی به دانسته های ما میافزائید

از لطف و محبت شما سپاس‌گذارم٬ ولی لازم به توضیح هست که متاسفانه من با سرچ نتونستم به نتیجه برسم٬ برای همین خاطر اینجا مطرح کردم. درسته از تولد من در ابون‌تو کمتر از یک هفته می‌گذره و در راه‌اندازی و مدیریت و... فروم تقریبا ۷ سالی تجربه دارم و صد البته تلاش بی وقفه تمامی مدیران عزیز از دید بنده پنهان نیست. حتی با تجربه کمی که دارم اگر سوالی در انجمن ببینم که شاید با جواب بنده مشکل حل بشه٬ حتما جواب می‌دم تا در حد توان فشار کاری هرچند ناچیز از دوش مدیران گرامی کم کنم.

با ســــــپاس
عنوان: پاسخ به: پاسخ به: سوال دوم: چرا swap of می‌شه؟
ارسال شده توسط: HardyLaity در 17 تیر 1387، 01:38 ق‌ظ
خوب با اجازه می‌خوام برم سراغ سوال بعدی.
من وقتی اوبون‌تو رو نصب کردم خودش برام یک پارتیشن Swap درست کرد که البته 200mb بیشتر نبود. به توصیه دوستان من این پارتیشن رو ری‌سایز کردم به دو برابر رم. حالا مشکلی که هست هر موقع سیستم رو روشن می‌کنم و یا هر موقع ری‌استارت می‌کنم این پارتیشن می‌ره تو حالت Swapof. توی System Monitor هم کاملا نشون می‌ده که اصلا پارتیشن Swap خبری نیست. برای اینکه Swapon کنم باید وارد پارتیشن ادیتور بشم.
حالا دو تا سوال اینجا هست:
۱. چه چیزی باعث شده که این از حالت اتوماتیک دربیاد؟
۲. چطوری می‌تونم دوباره برگردونم به حالت اتومات تا ابون‌تو که بالا میاد Swapon باشه؟

با ســـــــپاس


خوشحالم که مشکلتون حل شده

۱- شما احتمالا از خارج از لینوکس این پارتیشن رو ریسایز کردین و uuid به هم ریخته

۲ - به لینک زیر مراجعه کنید

http://forum.ubuntu.ir/index.php?topic=5038.0

دوست گرامی این که شما سوال میپرسید بسیار خوبه بخصوص برای من تازه وارد چون از سوالات شما خیلی چیز یاد میگیرم ولی دوستان قدیمی مثل جناب طالقانی و سید مهدی واقعا به همه ما لطف دارن و پیگیری میکنند ولی ما هم یکم باید مراعات حالشون رو بکنیم من این لینک بالا رو میدونید چگونه پیدا کردم ؟ در جستجو تایپ کردم swapon همان چیزی که شما نوشته بودید . اگر که شما لطف کنید در مورد سوالاتون یه سرچ تو فروم بکنید فکر میکنم اکثر جوابهاتون رو پیدا میکنید . اگر پیدا نشد لطف میکنید و سوال میکنید چون مطلبی به دانسته های ما میافزائید

از لطف و محبت شما سپاس‌گذارم٬ ولی لازم به توضیح هست که متاسفانه من با سرچ نتونستم به نتیجه برسم٬ برای همین خاطر اینجا مطرح کردم. درسته از تولد من در ابون‌تو کمتر از یک هفته می‌گذره و در راه‌اندازی و مدیریت و... فروم تقریبا ۷ سالی تجربه دارم و صد البته تلاش بی وقفه تمامی مدیران عزیز از دید بنده پنهان نیست. حتی با تجربه کمی که دارم اگر سوالی در انجمن ببینم که شاید با جواب بنده مشکل حل بشه٬ حتما جواب می‌دم تا در حد توان فشار کاری هرچند ناچیز از دوش مدیران گرامی کم کنم.

با ســــــپاس

گرامی من قصد توهین و ناراحت کردن شما رو نداشتم .

اگر از نوشته های من رنجیدید پوزش میخوام . من هم مانند شما در این محیط تازه وارد هستم . اینجا ما همه با هم دوستیم و از یکدیگر نمیرنجیم و امیدوارم که شما هم جسارت بنده رو ببخشید

موفق باشید
عنوان: پاسخ به: پاسخ به: سوال دوم: چرا swap of می‌شه؟
ارسال شده توسط: Daniel در 17 تیر 1387، 01:45 ق‌ظ
خوب با اجازه می‌خوام برم سراغ سوال بعدی.
من وقتی اوبون‌تو رو نصب کردم خودش برام یک پارتیشن Swap درست کرد که البته 200mb بیشتر نبود. به توصیه دوستان من این پارتیشن رو ری‌سایز کردم به دو برابر رم. حالا مشکلی که هست هر موقع سیستم رو روشن می‌کنم و یا هر موقع ری‌استارت می‌کنم این پارتیشن می‌ره تو حالت Swapof. توی System Monitor هم کاملا نشون می‌ده که اصلا پارتیشن Swap خبری نیست. برای اینکه Swapon کنم باید وارد پارتیشن ادیتور بشم.
حالا دو تا سوال اینجا هست:
۱. چه چیزی باعث شده که این از حالت اتوماتیک دربیاد؟
۲. چطوری می‌تونم دوباره برگردونم به حالت اتومات تا ابون‌تو که بالا میاد Swapon باشه؟

با ســـــــپاس


خوشحالم که مشکلتون حل شده

۱- شما احتمالا از خارج از لینوکس این پارتیشن رو ریسایز کردین و uuid به هم ریخته

۲ - به لینک زیر مراجعه کنید

http://forum.ubuntu.ir/index.php?topic=5038.0

دوست گرامی این که شما سوال میپرسید بسیار خوبه بخصوص برای من تازه وارد چون از سوالات شما خیلی چیز یاد میگیرم ولی دوستان قدیمی مثل جناب طالقانی و سید مهدی واقعا به همه ما لطف دارن و پیگیری میکنند ولی ما هم یکم باید مراعات حالشون رو بکنیم من این لینک بالا رو میدونید چگونه پیدا کردم ؟ در جستجو تایپ کردم swapon همان چیزی که شما نوشته بودید . اگر که شما لطف کنید در مورد سوالاتون یه سرچ تو فروم بکنید فکر میکنم اکثر جوابهاتون رو پیدا میکنید . اگر پیدا نشد لطف میکنید و سوال میکنید چون مطلبی به دانسته های ما میافزائید

از لطف و محبت شما سپاس‌گذارم٬ ولی لازم به توضیح هست که متاسفانه من با سرچ نتونستم به نتیجه برسم٬ برای همین خاطر اینجا مطرح کردم. درسته از تولد من در ابون‌تو کمتر از یک هفته می‌گذره و در راه‌اندازی و مدیریت و... فروم تقریبا ۷ سالی تجربه دارم و صد البته تلاش بی وقفه تمامی مدیران عزیز از دید بنده پنهان نیست. حتی با تجربه کمی که دارم اگر سوالی در انجمن ببینم که شاید با جواب بنده مشکل حل بشه٬ حتما جواب می‌دم تا در حد توان فشار کاری هرچند ناچیز از دوش مدیران گرامی کم کنم.

با ســــــپاس

گرامی من قصد توهین و ناراحت کردن شما رو نداشتم .

اگر از نوشته های من رنجیدید پوزش میخوام . من هم مانند شما در این محیط تازه وارد هستم . اینجا ما همه با هم دوستیم و از یکدیگر نمیرنجیم و امیدوارم که شما هم جسارت بنده رو ببخشید

موفق باشید

نه عزیز من به هیچ وجه ناراحت نشدم! اصل کانورسیشن اینه٬ برای یاد گرفتن باید بحث کرد. این توضیحی که در کامنت قبلی عرض کردم فقط جهت آشنایی و جلوگیری از سوء تفاهم بود.

خیلی خوشحالم از اینکه در جمع شما دوستان گل هستم O:)
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 19 تیر 1387، 08:07 ب‌ظ
سوال و مشکل دوم با راهنمایی دوست عزیز HardyLaity حل شد.

شرمنده این سوال‌ها تمومی نداره  :oops:
LAMP نصب کردم و ظاهرا مشکلی در کار کرد عادی نیست. ولی نمی‌دونم چرا وقتی از این کد در یک اسکری‍ت PHP استفاده می‌کنم کار نمی‌کنه ](*,)
$SERVER["QUERY_STRING"]

احتمالا چیزی رو نصب نکردم یا درست کانفیق نکردم.

با ســــــــپاس
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: dalton1 در 23 تیر 1387، 11:51 ق‌ظ
با سلام
من نتونستم یک vpn درست کنم  نتونستم     VPN Connectin Manager  رو پیدا نکردم  لطفا راهنمایی کنید در ضمن این روش
گرافیکی هست یا نه
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 23 تیر 1387، 01:31 ب‌ظ
با سلام
من نتونستم یک vpn درست کنم  نتونستم     VPN Connectin Manager  رو پیدا نکردم  لطفا راهنمایی کنید در ضمن این روش
گرافیکی هست یا نه

سلام
از اینکه دیر جواب می‌دم شرمنده کاری پیش اومده بود و No Responds بودم :oops: :)
این روش که مرحله به مرحله می‌خوام بگم حالت گرافیکی داره و برای کانکت یا دیس‌کانکت کردن نیاز به ترمینال نیست.
برای استفاده از سرویس‌های VPN مراحل زیر رو دنبال کنید:
1. وارد قسمت Add/Remove بشین
2. گزینه Show رو روی All Available Application قرار بدید
3. در قسمت سرچ VPN Connection Manager (PPP generic) جستجو کنید.
4. با اطمینان از اینکه به اینترنت وصل هستید این مورد را تیک بزنید و روی Apply changes کلیک کنید. بسته‌های مورد نیاز از اینترنت دانلود و نصب می‌شه.
5. پس از اتمام نصب در مرحله قبلی حالا بر روی آیکون نتورک که کنار ساعت هست کلیک کنید. توی لیستی که نشون می‌ده روی VPN Connection رفته و در منوی زیر مجموعه اون Configure VPN رو اجرا کنید.
6. یک پنجره باز می‌شه روی گزینه Add کلیک کنید. بعد از این مراحل رو دنبال کنید و تنظیماتی که از طرف سرویس دهنده وی‌پی‌ان به شما داده شده رو اعمال کنید. پس از اتمام کار برای کانکت شدن به vpn کافی هست که شما روی آیکون نتورک کلیک کنید و روی VPN Connection رفته و در منوی زیر مجموعه اون روی اسم vpn که قبلا مشخص کردید کلیک کنید و بعد از چند لحظه ارتباط شما برقرار می‌شود. به این نکته توجه کنین که اگر کانکتشن vpn برقرار بشه عکس یک قفل کوچولو روی آیکون نتورک اضافه می‌شه و این نشون دهنده این هست که شما با vpn وصل هستید.
برای قطع کردن ارتباط vpn هم دوباره روی آیکون نتورک کلیک کنید و روی VPN Connection رفته و در منوی زیر مجموعه اون روی Disconnect VPN کلیک کنید. با قطع شدن اتصال vpn علامت قفل هم از روی آیکون نتورک حذف می‌شه.

موفق باشید.
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: dalton1 در 23 تیر 1387، 03:35 ب‌ظ
با سلام
ممنون از راهنمای قدم به قدم شما برای من که تازه کارم
اما دقیقا  سه تا گزینه مربوط به vpn هست  Username  و Password  وHost  اینها رو کجا باید در vpn connection  قرار داد  من پیداشون نکردم
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 23 تیر 1387، 03:39 ب‌ظ
با سلام
ممنون از راهنمای قدم به قدم شما برای من که تازه کارم
اما دقیقا  سه تا گزینه مربوط به vpn هست  Username  و Password  وHost  اینها رو کجا باید در vpn connection  قرار داد  من پیداشون نکردم
شما مرحله 5 و 6 رو انجام دادین؟
یوزر و پسورد رو زمان کانکت شدن می‌خواهد.
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: dalton1 در 23 تیر 1387، 04:28 ب‌ظ
من که نتونستم فقط آیکن vpn connection میاد که چند تا گزینه داره  واسه ادیت و پاک کردن فایل ساخته شده
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 23 تیر 1387، 06:18 ب‌ظ
من که نتونستم فقط آیکن vpn connection میاد که چند تا گزینه داره  واسه ادیت و پاک کردن فایل ساخته شده
خب توی همین صفحه شما باید روی Add کلیک کنید تا بتونید کانکشن رو بسازید.
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: dalton1 در 24 تیر 1387، 10:13 ق‌ظ
من کانکشن رو ساختم ولی نمی دونم چرا فعال نمی شه یعنی کم رنگه رنگش مثل اینکه فعال نیست
عنوان: پاسخ به: من و اوبون‌تو
ارسال شده توسط: Daniel در 24 تیر 1387، 01:51 ب‌ظ
من کانکشن رو ساختم ولی نمی دونم چرا فعال نمی شه یعنی کم رنگه رنگش مثل اینکه فعال نیست

یعنی چی کم رنگه؟ اگه عکسی چیزی می‌تونین بذارین بهتر می‌شه متوجه شد چه خبره
عنوان: پاسخ به: من و اوبون‌تو (حل شد)
ارسال شده توسط: dalton1 در 03 امرداد 1387، 03:00 ب‌ظ
با سلام
من  این دستور رو دادم    sudo apt-get install pptp-linux     و خبری نشد آیا همین دستور واسه نصبش کافی یا نه   

Reading package lists... Done
Building dependency tree       
Reading state information... Done
pptp-linux is already the newest version.
The following packages were automatically installed and are no longer required:
  clamav-freshclam libevent1 clamav-base tsocks libclamav3 libgmp3c2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
عنوان: پاسخ به: من و اوبون‌تو (حل شد)
ارسال شده توسط: Daniel در 03 امرداد 1387، 05:33 ب‌ظ
با سلام
من  این دستور رو دادم    sudo apt-get install pptp-linux     و خبری نشد آیا همین دستور واسه نصبش کافی یا نه   

Reading package lists... Done
Building dependency tree       
Reading state information... Done
pptp-linux is already the newest version.
The following packages were automatically installed and are no longer required:
  clamav-freshclam libevent1 clamav-base tsocks libclamav3 libgmp3c2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


بهترین راه برای نصب رو در پست قبلی توضیح دادم ولی باز هم اینجا توضیح می‌دم:
1. وارد قسمت Add/Remove بشین
2. گزینه Show رو روی All Available Application قرار بدید
3. در قسمت سرچ VPN Connection Manager (PPP generic) جستجو کنید.
4. با اطمینان از اینکه به اینترنت وصل هستید این مورد را تیک بزنید و روی Apply changes کلیک کنید. بسته‌های مورد نیاز از اینترنت دانلود و نصب می‌شه.
5. پس از اتمام نصب در مرحله قبلی حالا بر روی آیکون نتورک که کنار ساعت هست کلیک کنید. توی لیستی که نشون می‌ده روی VPN Connection رفته و در منوی زیر مجموعه اون Configure VPN رو اجرا کنید.
6. یک پنجره باز می‌شه روی گزینه Add کلیک کنید. بعد از این مراحل رو دنبال کنید و تنظیماتی که از طرف سرویس دهنده وی‌پی‌ان به شما داده شده رو اعمال کنید. پس از اتمام کار برای کانکت شدن به vpn کافی هست که شما روی آیکون نتورک کلیک کنید و روی VPN Connection رفته و در منوی زیر مجموعه اون روی اسم vpn که قبلا مشخص کردید کلیک کنید و بعد از چند لحظه ارتباط شما برقرار می‌شود. به این نکته توجه کنین که اگر کانکتشن vpn برقرار بشه عکس یک قفل کوچولو روی آیکون نتورک اضافه می‌شه و این نشون دهنده این هست که شما با vpn وصل هستید.
برای قطع کردن ارتباط vpn هم دوباره روی آیکون نتورک کلیک کنید و روی VPN Connection رفته و در منوی زیر مجموعه اون روی Disconnect VPN کلیک کنید. با قطع شدن اتصال vpn علامت قفل هم از روی آیکون نتورک حذف می‌شه.

موفق باشید.
عنوان: پاسخ به: من و اوبون‌تو (حل شد)
ارسال شده توسط: dalton1 در 03 امرداد 1387، 06:55 ب‌ظ
ممنون اینجا یکسری آپشن داره  connection  /  routing  /  ppp option /   و چند آپشن دیگه  اونها چی ؟ آیا اونها هم نیاز به یک سری تنظیم خاصی داره
عنوان: پاسخ به: من و اوبون‌تو (حل شد)
ارسال شده توسط: Daniel در 03 امرداد 1387، 07:09 ب‌ظ
ممنون اینجا یکسری آپشن داره  connection  /  routing  /  ppp option /   و چند آپشن دیگه  اونها چی ؟ آیا اونها هم نیاز به یک سری تنظیم خاصی داره

خواهش می‌کنم شکر حق که نصب شد. این تنظیمات کلا برمی‌گرده به سرویس دهنده ی VPN. برای من تا زمانی‌که تمامی تیک‌ها رو برنداشته بودم کانکت نمی‌کرد. هم می‌تونید از سرویس دهنده سوال کنید و هم اینکه خودتون دستی تست کنید (البته کمی حوصله می‌خواد)

موفق باشید
عنوان: پاسخ به: من و اوبون‌تو (حل شد)
ارسال شده توسط: nimafire در 13 مهر 1387، 07:08 ب‌ظ
سلام.من نصب کردم روی ADD کلیک کردم.تو پنجره ای که اومد یه سری تب هست که در تب اول من آی پی دادم و همین.
کجا باید یوزر و پس بزنم؟