No Image

install pptpd on linux (centos)

2016-02-25 KENNETH 0

리눅스에서 PPTP 구성 하기 (아직 작업중.. 문제가 있으므로 완전한 내용이 아님.. -_-;;;)   개요   VPN 사용 IP 대역 : 10.100.200.0/24 리눅스서버(PPTP 설치 서버) IP : 10.100.200.1 VPN 접속 클라이언트들의 IP 할당 범위 : 10.100.200.101 ~ 10.100.200.200 (뭐 사실 의미는 없다만, 설정법이 있다는 것을 같이 설명 하기 위해… )   환경   OS : LINUX (CentOS-6.X) 설치방식 : yum 을 이용함…   패키지 설치   1. epel-release 설치 yum install epel-release ppp의 경우 centos설치시 기본 으로 제공 되는 repository 로 설치 가능 pptpd의 경우 기본 repository에 없기 때문에 epel-release를 설치해야함 pptpd 외에도, 기본 repository에서 제공하지 않는 패키지중 필요한 것이 종종 있음 (되도록 설치 할 것) 2. ppp, pptpd 설치 yum install ppp pptpd   설정   1. /etc/pptpd.conf option /etc/ppp/options.pptpd connections 200 localip 10.100.200.1 remoteip 10.100.200.101-200   2. /etc/ppp/options.pptpd ms-dns 8.8.8.8 ms-dns 8.8.4.4 lock name pptpd require-mschap-v2 require-mppe-128   3. Controls IP [ more… ]

No Image

How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on Centos7

2016-02-05 KENNETH 0

  리눅스에서 안드로이드 스튜디오 설치&실행 시 “Unable to run mksdcard SDK tool” 오류   환경 OS : LINUX(CentOS-7.2.1511) / 64bit JAVA : jdk-1.7.0_80 (JAVA_HOME=/usr/local/java) AndroidStudio : android-studio-ide-141.2456560-linux.zip   터미널 콘솔 에러 studio.sh 실행시 [ 6301] WARN – dea.updater.SdkComponentSource – Couldn’t find existing SDK [ 16543] ERROR – ard.ConsolidatedProgressStep$1 – Unable to run mksdcard SDK tool. com.android.tools.idea.welcome.install.WizardException: Unable to run mksdcard SDK tool. at com.android.tools.idea.welcome.install.CheckSdkOperation.perform(CheckSdkOperation.java:128) at com.android.tools.idea.welcome.install.CheckSdkOperation.perform(CheckSdkOperation.java:40) at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68) at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:151) at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68) at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:149) at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68) at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:149) at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68) at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:149) at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68) at com.android.tools.idea.welcome.wizard.InstallComponentsPath.runLongOperation(InstallComponentsPath.java:297) at com.android.tools.idea.welcome.wizard.ConsolidatedProgressStep.doLongRunningOperation(ConsolidatedProgressStep.java:78) at com.android.tools.idea.welcome.wizard.ConsolidatedProgressStep.access$000(ConsolidatedProgressStep.java:32) at com.android.tools.idea.welcome.wizard.ConsolidatedProgressStep$1.run(ConsolidatedProgressStep.java:58) at com.android.tools.idea.welcome.wizard.FirstRunWizardHost$LongRunningOperationWrapper.run(FirstRunWizardHost.java:434) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137) at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56) [ 16545] ERROR – ard.ConsolidatedProgressStep$1 – Android Studio 1.5.1 Build #AI-141.2456560 [ 16545] ERROR – ard.ConsolidatedProgressStep$1 – JDK: 1.7.0_80 [ more… ]

No Image

samba failing to start after centos7.2(rhel7.2) update

2016-01-04 KENNETH 0

samba failing to start after centos7.2(rhel7.2) update 환경 : CentOS-7.2 (64bit)   증상 얼마전 제공된 centos-7.2 업데이트 이후 갑자기 samba 구동이 되지 않음 # systemctl start smb Job for smb.service failed because the control process exited with error code. See “systemctl status smb.service” and “journalctl -xe” for details. ???? 사실 이 때 까지만 해도 7.2업데이트(정확히는 samba 업데이트) 때문에 발생한 문제 라는 것을 몰랐음.   서비스 확인 # systemctl status smb ● smb.service – Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 월 2016-01-04 12:35:20 KST; 39s ago Main PID: 19226 (code=exited, status=1/FAILURE) 1월 04 12:35:20 lvs1 systemd[1]: Starting Samba SMB Daemon… 1월 04 12:35:20 lvs1 systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE 1월 04 12:35:20 lvs1 systemd[1]: Failed to start Samba SMB Daemon. 1월 04 12:35:20 lvs1 systemd[1]: Unit smb.service entered failed state. [ more… ]

No Image

iptables port redirection

2015-12-29 KENNETH 1

iptables 를 이용한 포트 리다이렉션   원하는 내용 OS : linux 기본 smtp 포트는 25번을 사용하되, 587에서의 접근을 허용하고자 함 다만, 메일엔진에서 설정하지 않고 리눅스의 iptables만을 가지고 처리 하고 싶다면…   설정 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A PREROUTING -p tcp –dport 587 -j REDIRECT –to-port 25 기존에 작동하는 25번 포트는 변동 사항이 없으며 추가로 587 포트에 대해서 접근을 요청시 25포트로 리다이렉션 해줌   테스트 사용툴 : terminal & telnet # telnet 192.168.0.111 587 Trying 192.168.0.111… Connected to 192.168.0.111. Escape character is ‘^]’. 220 office.ilaya.com ESMTP Sendmail 8.14.7/8.14.7; Tue, 29 Dec 2015 11:39:37 +0900