Project

[RPi] 树莓派添加samba文件共享服务

1. 安装Samba sudo apt-get install samba samba-common-bin 2. 为samba添加用户,可以使用现有账户,也可以创建专属账户 添加专属账户(如果你只想要添加已存在的账户,可以跳过这一步) # 添加账户,username即你想要添加的账户名 sudo useradd username # 建立共享文件夹即修改用户组 sudo mkdir -p /home/username sudo chown -R username:username /home/username/ 为samba添加账户 # 添加账户,username是你想要添加到samba的账户,该步骤会要求设置密码,需要注意的是如果你samba下的用户名的密码区别于树莓派系统下的用户名的密码 sudo smbpasswd -a username 3. 修改配置文件 # 对原配置文件做一备份 sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak # 创建一个新的配置文件 sudo nano /etc/samba/smb.conf 配置文件可以照如下修改,然后按 Ctrl+o 保存,Ctrl+x退出 [pi] Read more…

Project

[12864/SSD1306] Play Snake on Raspberry Pi

System Monitor for Raspberry Pi with 12864/SSD1306, and you can download all the files from GitHub. Demo Setting Up Configure your 128464 by following this tutorial: https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/usage?view=all # Ports used for the Display. You may have to change them to yours RST = 25 DC = 24 # Configurations of Read more…

Project

[12864/SSD1306] System Monitor for Raspberry Pi

System Monitor for Raspberry Pi with 12864/SSD1306, and you can download all the files from GitHub. Demo Modules Adafruit_GPIO.SPI Adafruit_SSD1306 psutil Setting Up Configure your 128464 by following this tutorial: https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/usage?view=all sudo apt-get install python-pip sudo pip install psutil # Ports used for fthe Display. You may have to change Read more…

Project

[12864/SSD1306] Video Player

It is a python script for playing videos on 12864 over SPI sockets, and you can download all the files from GitHub. Demo Modules Adafruit_GPIO.SPI Adafruit_SSD1306 Setting Up Configure your 128464 by following this tutorial sudo apt-get install python-pip sudo apt-get install python-pygame sudo pip install opencv-python # Ports used Read more…

Others

[TicFirm] a tool for sniffing Ticwatch Firmware (Python script updated)!

The tool is still in its alpha stage as some functions may not work as expected, such as the alpha firmware discovery. 这是一个可以用来为Ticwatch 抓取 Ticwear 刷机包的工具,当前还在测试阶段,很多功能尚未实现,比如Alpha版的固件不能很好的获取。 Warning: this tool is only used for test purpose. Be aware of what you are doing with your watch, and I will not be Read more…

Others

[Tricks] Enable immersive mode with ADB command

//Turn on immersive mode (hide both status and navigation bars) adb shell settings put global policy_control immersive.full=* //Hide the navigation bar only adb shell settings put global policy_control immersive.navigation=* //These commands could be applied to specific apps, just replace the “*” with package names //For example, if we want to Read more…

Android

[Toturial] Enable 'None' option in screen lock for xperia devices running MM

This toturial is tested on Xperia Z2 running MM(291). 1. Decompile Settings.apk 2. Open ‘Settings\smali\com\android\settings\ChooseLockGeneric$ChooseLockGenericFragment.smali’ 3. search key words ‘Lcom/android/settings/ChooseLockGeneric$ChooseLockGenericFragment;->disableUnusablePreferences(IZ)V’ to navigate an delete the following lines: .line 289 invoke-virtual {p0, v3, v0}, Lcom/android/settings/ChooseLockGeneric$ChooseLockGenericFragment;->disableUnusablePreferences(IZ)V

Translate »