Diary/2024-8-10
開発PCセットアップ
手元に十徳ナイフ的なPCが欲しくなったので,
N100なBeelinkのWindowsをバッサリ削除してxubuntu 22.04に.
- aptであれこれ
$ sudo apt install openssh-server \ build-essential git tig \ screen sshfs \ xserver-xorg-core xorgxrdp xrdp fonts-migmix \ fcitx5-mozc \ libusb-0.1-4 libusb-1.0-0 libusb-1.0-0-dev libusb-dev \ libftdi1 libftdi1-2 libftdi1-dev libftdi-dev \ emacs vim gnuplot zsh lv \ graphviz libgraphviz-dev \ iverilog gtkwave verilator ghdl \ ruby ruby-dev \ python3-pip python3-tk \ samba \ w3m \ libbz2-dev libncurses-dev libffi-dev libssl-dev \ libreadline-dev libsqlite3-dev liblzma-dev \ libtinfo5 libncurses5 \ openjdk-17-jdk \ thunderbird \ $ pip3 install --user pipenv pyserial matplotlib numpy scipy jupyter pillow $ sudo systemctl set-default multi-user.target $ sudo systemctl enable xrdp; sudo systemctl restart xrdp $ sudo systemctl enable smbd; sudo systemctl restart smbd
- ssh鍵の生成
$ ssh-keygen -t ed25519
- Sambaユーザ設定
$ sudo pdbedit -a miyo
- pyenv https://github.com/pyenv/pyenv のセットアップ
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
- その他
- sbt https://github.com/sbt/sbt/releases/download/
- Go https://go.dev/dl/
- VScode https://code.visualstudio.com/Download
- Google Chrome
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- apt install ./google-chrome-stable_current_amd64.deb
- Vivado
まずはインストーラでセットアップ.
で,ドライバ関連のセットアップ.
$ sudo -s $ (cd /tools/Xilinx/Vivado/2024.1/data/xicom/cable_drivers/lin64/install_script/install_drivers/; ./install_drivers) $ echo 'KERNEL=="ttyUSB*", MODE="0666"' >> /etc/udev/rules.d/90-local.rules
必要なボードファイルを /tools/Xilinx/Vivado/2024.1/data/xhub/boards/XilinxBoardStore/ におく
- xrdp用権限設定
次の内容で /etc/polkit-1/localauthority/50-local.d/xrdp-color-manager.pkla を作成
[Allow Colord all Users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=no ResultInactive=no ResultActive=yes