Computer/Linux (44) 썸네일형 리스트형 Samba #Installation sudo apt-get install samba samba-common-bin #setting sudo nano /etc/samba/smb.conf #restart samba server, run this after config setting sudo systemctl restart smbd or sudo systemctl restart smbd.service #add user before create samba user sudo adduser ID sudo userdel ID #add samba user which user ID,the user name should be registered in linux in advance sudo smbpasswd -a ID sudo sys.. Ubuntu instaillation Installation 1. Write image to SD card, and mount it to Odroid 2. connect to power and wait 10~15 minutes until blue LED turns off, when LED is off, then reboot 3. check ip address ID : root password : odroid 4. change password sudo passwd root sudo apt update && sudo apt full-upgrade PiVPN installation $ curl -L https://install.pivpn.io | bash #Create new account ID and Password, ROOT account is not recommended(or available) $ pivpn add #list all certificates $ pivpn list # Revoke a client ovpn profile $ pivpn revoke # Remove PiVPN $ pivpn uninstall #pivpn add 시 순서 DNS 사용 현재ip를 고정으로 사용 또는 DDNS사용 >> DDNS 사용 DDNS 업체는 맨 밑 Customs 선택 포트는 임의 지정 → 나중에 포트포워드 열어둬야함 WinSCP로 home/pi/ovpns/ID.ovpns파일을 다운.. Agenti - web admin http://ajenti.org/ http://docs.ajenti.org/en/latest/man/install.html curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s - Ajenti will be listening at HTTP port 8000 Log in with your root password or another OS user http://ipaddress:8000 Xiaomi Mijia Hygrothermo V2 read data from Python3 샤오미 온습도계V2 파이썬으로 읽기 Reference : https://zsiti.eu/xiaomi-mijia-hygrothermo-v2-sensor-data-on-raspberry-pi/ #Bluetooth backend program install - $sudo apt-get install python3-pip libglib2.0-dev $sudo pip3 install bluepy $sudo git clone https://github.com/ratcashdev/mitemp.git $git clone https://github.com/ChristianKuehnel/btlewrap.git $sudo git clone https://github.com/ChristianKuehnel/btlewrap.git btlewrap-git $mv ... Wifi password setting/change sudo nano /etc/network/interfaces auto lo iface lo inet loopbackiface eth0 inet dhcp allow-hotplug wlan0auto wlan0 iface wlan0 inet dhcp wpa-ssid "ssid" wpa-psk "password" 라즈베리파이 블루투스 활용 #스캔hcitool scansudo hcitool lescan bluetoothctlconnect AA:BB:CC:DD:EE 라즈베리파이 Servo motor SG90 import RPi.GPIO as GPIOimport time GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) p = GPIO.PWM(12, 50) p.start(7.5) try: while True: p.ChangeDutyCycle(7.5) # turn towards 90 degree time.sleep(1) # sleep 1 second p.ChangeDutyCycle(2.5) # turn towards 0 degree time.sleep(1) # sleep 1 second p.ChangeDutyCycle(12.5) # turn towards 180 degree time.sleep(1) # sleep 1 secondexcept KeyboardInterrupt:.. 이전 1 2 3 4 5 6 다음