分类目录归档:未分类

设置树莓派显示器作为Fluidd的屏幕

1、启用树莓派的auto login,启用console auto login

2、安装openbox

sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit xinput x11-utils openbox -y

3、安装chrome浏览器

sudo apt-get install --no-install-recommends chromium-browser -y

4、修改/etc/xdg/openbox/autostart,添加以下内容

# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms

# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp

# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'http://127.0.0.1'

5、修改~/.bash_profile,增加以下内容

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor

DCS里面增加可以绑定的轴控制

I find that the A-10C lua files (like those of the KA-50) do not work with the mnemomic device and command ID. You have to use the numerical ones.

The code below creates an axis command for the UHF radio volume knob:
Code:

{action = 3011, cockpit_device_id = 54, name = _('UHF Radio Volume')},

The device ID for the UHF Radio is 54 as you can see in “devices.lua”. The command ID is 3011. You find the command as “device_commands.Button_11” in “clickabledata.lua”. So it’s button 11 of device 54. However, as you see in “command_defs.lua”, all device command numbers are defined as 3000 + Button-Number.
Note: The axis uses only half of the slider movement. You have to define parameters in Axis Tune to use the full slider movement or pot rotation. That’s a common problem in custom axis definitions.
Have fun!

https://forums.eagle.ru/forum/english/dcs-world-topics/input-and-output/home-cockpits/268923-adding-custom-axes-a-10c-to-default-lua

制作 macOS Catalina ISO镜像

❶:hdiutil create -o /tmp/Catalina -size 9000m -volname Catalina -layout SPUD -fs JHFS+

❷:hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina

❸:sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia –volume /Volumes/Catalina –nointeraction

❹:hdiutil detach /volumes/Install\ macOS\ Catalina

❺:hdiutil convert /tmp/Catalina.dmg -format UDTO -o ~/Desktop/Catalina.cdr

❻:mv ~/Desktop/Catalina.cdr ~/Desktop/Catalina.iso

❼:rm /tmp/Catalina.dmg