분류 전체보기(192)
-
ubuntu teamviewer install
우분투 데스크탑에 팀뷰어 설치 root#> apt-get install wget root#> wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb root#> apt install gdebi-core root#> gdebi teamviewer_amd64.deb root#> teamviewer (명령 터미널에서 입력시 팀뷰어 실행)
2018.09.19 -
포인터 계산기
#include #include #include #include #define SIZE_4K 4096 int main(int argc, char *argv[]) { int trim; double num1, num2, result; char str[SIZE_4K] = {0,}; char oper; char *data, *data_tmp; printf("계산할 값을 입력해주세요.(예: 1+3, 2*5 ... 종료: exit)\n"); do { trim = 0; num1 = 0; num2 = 0; result = 0; oper = '\0'; data = NULL; data_tmp = NULL; printf("수식: "); fgets(str, sizeof(str), stdin); data_tmp = (char*..
2018.04.11 -
linux libpcap.h documentation
#define HAVE_REMOTE#include main(){ pcap_if_t *alldevs; pcap_if_t *d; int i=0; char errbuf[PCAP_ERRBUF_SIZE]; /* Retrieve the device list from the local machine */ if (pcap_findalldevs(&alldevs, errbuf) == -1) { fprintf(stderr,"Error in pcap_findalldevs(&alldevs, errbuf: %s\n", errbuf); exit(1); } /* Print the list */ for(d= alldevs; d != NULL; d= d->next) { printf("%d. %s", ++i, d->name); if (d..
2018.04.11 -
기본형
#include int main(void){ printf("Hello World!\n"); return 0; }
2018.03.18 -
클라우드 솔루션 ceph를 구축해보자
centos7 64bit 환경의 서버 두대 node0 메인node1 슬레이브 #> root사용자$> ceph사용자 cpeh 계정생성 #> useradd ceph#> passwd ceph패스워드 입력 생성된 ceph 계정이 root 권한을 사용할수 있도록 설정 #> echo -e 'Defaults:ceph !requiretty\nceph ALL = (root) NOPASSWD:ALL' | tee /etc/sudoers.d/ceph #> chmod 440 /etc/sudoers.d/ceph #> yum install -y centos-release-ceph-hammer epel-release yum-plugin-priorities #> sed -i -e "s/enabled=1/enabled=1\npriori..
2017.12.30 -
php while 문 무한출력
$i = 1;while (1) {echo "$i";"$i++";}?>
2017.09.18 -
php if문
$a = 10;$b = "";if(!$b) {echo "true ";} else {echo "false ";}if($a==10 or $b==10) {echo "true ";} else {echo "false ";}if($a==10 and $b==10) {echo "true";} else {echo "false";}?>
2017.09.18 -
php 2차원 배열
$alpha = array (array ("a","b","c"), array("A","B","C"));echo $alpha[0][0];echo $alpha[0][1];echo $alpha[0][2];echo $alpha[1][0];echo $alpha[1][1];echo $alpha[1][2];?>
2017.09.18 -
php for문
$numbering = array ("1","2","3","4","5","6","7","8","9","10");$size = sizeof($numbering);for ($i=0;$i { echo "$numbering[$i] ";}?>
2017.09.18 -
php 배열
$fruit[0] = "1";$fruit[1] = "2";$fruit[2] = "3";$fruit[3] = "4";echo "first $fruit[0] ";echo "second $fruit[1] ";echo "third $fruit[2] ";echo "fourth $fruit[3] ";?>
2017.09.18