개발+공부
-
Python에서 USBError 가 발생했다. 접근 권한이 없어서 발생하는 에러였다. USBError: [Errno 13] Access denied (insufficient permissions) 스택오버플로우 참고하여 해결했다. sudo vi /etc/udev/rules.d/garmin-ant2.rules 파일을 생성하여, (.rules 파일명은 원하는 대로 지정해도 된다.) SUBSYSTEM=="usb", ATTRS{idVendor}=="0fcf", MODE="0666" 입력 후, 저장한다. ATTRS에 해당하는 값은 lsusb 커맨드로 확인할 수 있다. lsusb ---- output ----- Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, ..
Python USB 사용 시, Access Denied 해결방법Python에서 USBError 가 발생했다. 접근 권한이 없어서 발생하는 에러였다. USBError: [Errno 13] Access denied (insufficient permissions) 스택오버플로우 참고하여 해결했다. sudo vi /etc/udev/rules.d/garmin-ant2.rules 파일을 생성하여, (.rules 파일명은 원하는 대로 지정해도 된다.) SUBSYSTEM=="usb", ATTRS{idVendor}=="0fcf", MODE="0666" 입력 후, 저장한다. ATTRS에 해당하는 값은 lsusb 커맨드로 확인할 수 있다. lsusb ---- output ----- Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, ..
2023.05.22 -
안드로이드 스튜디오에서 AVD manager를 통해 emulator를 실행해봤다면, 다음 경로에 "emulator.exe" 파일이 있을 것이다. C:\Users\{user}\AppData\Local\Android\Sdk\emulator 해당 경로에서 터미널을 통해 안드로이드 스튜디오 실행없이 에뮬레이터만 실행할 수 있다. 아래 명령어를 입력하면, 현재 존재하는 emulator 목록이 출력된다. (skin 목록 아님. 생성했던 emulator들의 목록이 나타난다.) .\emulator.exe -list-avds 목록 중 원하는 에뮬레이터를 다음 명령어로 실행한다. .\emulator.exe -avd "에뮬레이터_이름" 그럼 이렇게 에뮬레이터만 정상적으로 실행되는 것을 확인할 수 있다. 참고 안드로이드 에뮬..
안드로이드 스튜디오 실행없이 에뮬레이터 실행하기안드로이드 스튜디오에서 AVD manager를 통해 emulator를 실행해봤다면, 다음 경로에 "emulator.exe" 파일이 있을 것이다. C:\Users\{user}\AppData\Local\Android\Sdk\emulator 해당 경로에서 터미널을 통해 안드로이드 스튜디오 실행없이 에뮬레이터만 실행할 수 있다. 아래 명령어를 입력하면, 현재 존재하는 emulator 목록이 출력된다. (skin 목록 아님. 생성했던 emulator들의 목록이 나타난다.) .\emulator.exe -list-avds 목록 중 원하는 에뮬레이터를 다음 명령어로 실행한다. .\emulator.exe -avd "에뮬레이터_이름" 그럼 이렇게 에뮬레이터만 정상적으로 실행되는 것을 확인할 수 있다. 참고 안드로이드 에뮬..
2022.08.10 -
InstallCert를 사용해 SSL/TLS Server 인증서 생성 javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to re..
[JAVA] https Error: PKIX path building failed 해결 방법InstallCert를 사용해 SSL/TLS Server 인증서 생성 javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to re..
2022.07.27 -
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver) : mysql-connector-java를 사용하면서 다음과 같은 에러가 발생했다. 이는 mysql과 java가 제대로 연동되지 않았음을 의미한다. 어떻게 해결할 수 있을까? 인프런의 JSP 강의에서도 해당 내용을 다루고 있다. 하지만 mysql 버전이 5.X로 내가 사용하는 8.0과는 다르다. MySQL 8.0 버전은 mysql-connector-java 5.X버전으로는 해결이 안 된다. 여기서 8.0버전의 connect파일을 다운받아 프로젝트의 src/main/webapp/WEB-INF/lib에..
[MySQL] java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver | MySQL JDBC Driver Not Foundjava.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver) : mysql-connector-java를 사용하면서 다음과 같은 에러가 발생했다. 이는 mysql과 java가 제대로 연동되지 않았음을 의미한다. 어떻게 해결할 수 있을까? 인프런의 JSP 강의에서도 해당 내용을 다루고 있다. 하지만 mysql 버전이 5.X로 내가 사용하는 8.0과는 다르다. MySQL 8.0 버전은 mysql-connector-java 5.X버전으로는 해결이 안 된다. 여기서 8.0버전의 connect파일을 다운받아 프로젝트의 src/main/webapp/WEB-INF/lib에..
2022.07.18 -
드디어 Gentoo 설치의 마지막입니다! User administration Adding a user for daily use reboot가 완료되면, Login하라고 뜬다. Login: root Password: (Enter the root password) root # useradd -m -G users,wheel,audio -s /bin/bash newUser root # passwd newUser Password: (Enter the password for newUser) Re-enter password: (Re-enter the password to verify) Disk cleanup Removing tarballs 이제 쓸모를 다한 stage tarball을 제거한다. root # rm /s..
[Gentoo] Gentoo Handbook: Installation (9) Finalizing드디어 Gentoo 설치의 마지막입니다! User administration Adding a user for daily use reboot가 완료되면, Login하라고 뜬다. Login: root Password: (Enter the root password) root # useradd -m -G users,wheel,audio -s /bin/bash newUser root # passwd newUser Password: (Enter the password for newUser) Re-enter password: (Re-enter the password to verify) Disk cleanup Removing tarballs 이제 쓸모를 다한 stage tarball을 제거한다. root # rm /s..
2022.07.12 -
Selecting a boot loader 나는 GRUB2를 사용할 것이다. Default: GRUB2 Emerge 먼저 grub을 설치한다. (chroot) root # echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf (chroot) root # emerge --ask sys-boot/grub Install grub-install: 필수 GRUB2 파일을 /boot/grub 디렉토리에 설치한다. (chroot) root # grub-install --target=x86_64-efi --efi-directory=/boot Configure grub-mkconfig: GRUB2 configuration을 생성한다. (chroot) root #grub-m..
[Gentoo] Gentoo Handbook: Installation (8) Configuring the bootloaderSelecting a boot loader 나는 GRUB2를 사용할 것이다. Default: GRUB2 Emerge 먼저 grub을 설치한다. (chroot) root # echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf (chroot) root # emerge --ask sys-boot/grub Install grub-install: 필수 GRUB2 파일을 /boot/grub 디렉토리에 설치한다. (chroot) root # grub-install --target=x86_64-efi --efi-directory=/boot Configure grub-mkconfig: GRUB2 configuration을 생성한다. (chroot) root #grub-m..
2022.07.12