مدیریت سرورها

آموزش مدیریت سرورهای لینوکس و ویندوز

مدیریت سرورها

آموزش مدیریت سرورهای لینوکس و ویندوز

سایت در باره انواع آموزشها در زمینه IT می باشد.
مانند: لینوکس، ویندوز، سیسکو، میکروتیک، طراحی وب
به دلیل شخصی بودن وبلاگ ارائه مطالب متفرقه در آن بلامانع است.
با تشکر

طبقه بندی موضوعی

۵ مطلب در شهریور ۱۳۹۴ ثبت شده است

۲۷
شهریور

شکل خطا:

> # make setup check 

> ( cat warn-auto.sh; \ 

> echo CC=\'`head -1 conf-cc`\'; \ 

> echo LD=\'`head -1 conf-ld`\' \ 

> ) > auto-ccld.sh 

> cat auto-ccld.sh make-load.sh > make-load 

> chmod 755 make-load 

> cat auto-ccld.sh find-systype.sh > find-systype 

> chmod 755 find-systype 

> ./find-systype > systype 

> ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load 

> chmod 755 load 

> cat auto-ccld.sh make-compile.sh > make-compile 

> chmod 755 make-compile 

> ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \ 

> compile 

> chmod 755 compile 

> ( ( ./compile tryulong32.c && ./load tryulong32 && \ 

> ./tryulong32 ) >/dev/null 2>&1 \ 

> && cat uint32.h2 || cat uint32.h1 ) > uint32.h 

> rm -f tryulong32.o tryulong32 

> ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \ 

> 2>&1 \ 

> && cat fork.h2 || cat fork.h1 ) > fork.h 

> rm -f tryvfork.o tryvfork 

> ./compile fastforward.c 

> fastforward.c: In function âmainâ: 

> fastforward.c:287: warning: return type of âmainâ is not âintâ 

> ./compile slurpclose.c 

> ./compile coe.c 

> ./compile strset.c 

> ./compile qmail.c 

> ./compile auto-str.c 

> auto-str.c:9: warning: conflicting types for built-in function âputsâ 

> auto-str.c: In function âmainâ: 

> auto-str.c:17: warning: return type of âmainâ is not âintâ 

> cat auto-ccld.sh make-makelib.sh > make-makelib 

> chmod 755 make-makelib 

> ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \ 

> makelib 

> chmod 755 makelib 

> ./compile substdio.c 

> ./compile substdi.c 

> ./compile substdo.c 

> ./compile subfderr.c 

> ./compile subfdouts.c 

> ./compile subfdins.c 

> ./compile substdio_copy.c 

> ./makelib substdio.a substdio.o substdi.o substdo.o \ 

> subfderr.o subfdouts.o subfdins.o substdio_copy.o 

> ./compile error.c 

> ./compile error_str.c 

> ./makelib error.a error.o error_str.o 

> ./compile str_len.c 

> ./compile str_diff.c 

> ./compile str_diffn.c 

> ./compile str_cpy.c 

> ./compile str_chr.c 

> ./compile str_rchr.c 

> ./compile byte_chr.c 

> ./compile byte_diff.c 

> ./compile byte_copy.c 

> ./compile byte_cr.c 

> ./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \ 

> str_chr.o str_rchr.o byte_chr.o byte_diff.o byte_copy.o \ 

> byte_cr.o 

> ./load auto-str substdio.a error.a str.a 

> /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss 

> mismatches non-TLS reference in substdio.a(substdo.o) 

> /lib/libc.so.6: could not read symbols: Bad value 

> collect2: ld returned 1 exit status 

> make: *** [auto-str] Error 1 

نکته:  در ابتدا توجه داشته باشید که حتما باید gcc نصب شده باشد تا به این خطا برسید.


راه حل:

This is "errno.h" problem! 

Please edit 

conf-cc 

like follows:


gcc -O2 -include /usr/include/errno.h 

This will be used to compile .c files. 

  • طاهر ضیائی
۲۳
شهریور

Open N windows stacked.

vim -o file1 file2 [file...]


Open N windows side by side.

vim -O file1 file2 [file...]


How does one switch between windows on VIM?

Ctrl + Shift + w

  • طاهر ضیائی
۲۱
شهریور

We had a requirement of creating bulk users in Active directory for Test users. Initially i thought of wrtting .NET code which will communicate to LDAP and creates the users. 
but i was not aware of that it can be done very-2 quickly using the Powershell with 3-4 line of scripts.

we had a csv file which had all the users with AD information in it. The Format of that csv is some thing like the below one:

Please change the {Domain Name} with your Environment Domain name.

  • طاهر ضیائی
۱۷
شهریور

  1. Use Ctrl+Shift+v to select the first column of text in the lines you want to comment.
  2. Then hit Shift+i and type the text you want to insert.
  3. Then hit Esc, wait 1 second and the inserted text will appear on every line.
  • طاهر ضیائی
۰۳
شهریور

سایت CloudFlare از سایت شما در مقابل حمله های مختلف یا همون اتک ها محافظت می کنه.

خودش ادعا می کنه که سایت شما رو speed up می کنه.

مکانیزمش بطور کلی به این شکله که:

به عنوان مثال شما یه وب سایت یا مجموعه از وب سایت ها رو دارین که به یک یا چند آی پی پوینت شدن که داخل ایران هستند.

داستان اینه که شما بر روی DNS تعریف می کنین که آی پی وب سایت من سمت CloudFlare هست. لذا تمام ترافیک های سمت شما به سوی سرورهای CloudFlare میرن و پس از فیلتر شدن و Clear شدن، بدون هیچ اتکی به سمت سرور شما در ایران می آید.

ظاهرا برای پلسک نیز ماژول CloudFlare وجود دارد.

همچنین می گویند سایت هایی در ایران مانند سایت احمدی نژاد از این مکانیزم استفاده می کند.

وقتی به خود سایت به آدرس ذیل مراجعه کنید پنل های مختلفی رو برای انتخاب می بینید. لازم به ذکر است که یه پنل free هم داره که می تونین ازش استفاده کنید و اگه خوشتون اومد مایه تیله خرج کنین و یه پنل پولیشو بخرین.

www.cloudflare.com

چیزه خوبیست...


  • طاهر ضیائی