未分類

個人的バッシュ

#FingerPrint(参考)

#標準fprintdのアンインストール
sudo apt remove fprintd
sudo apt autoremove
#aptリポジトリの追加
sudo add-apt-repository ppa:uunicorn/open-fprintd
sudo apt update
#open-fprintd, python3-validityのインストール
sudo apt install open-fprintd fprintd-clients python3-validity
#コンソールから指紋を登録
fprintd-enroll
#PAMの設定(Fingerprint authenticationをONにします。)
sudo pam-auth-update

#Ubuntu-JPN

wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -
wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add -
sudo wget https://www.ubuntulinux.jp/sources.list.d/focal.list -O /etc/apt/sources.list.d/ubuntu-ja.list
sudo apt update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install ubuntu-defaults-ja
sudo update-locale LANG=ja_JP.UTF-8
timedatectl set-timezone Asia/Tokyo

#Arduino

wget https://downloads.arduino.cc/arduino-1.8.13-linux64.tar.xz
tar -xvf arduino-1.8.13-linux64.tar.xz
sudo mv arduino-1.8.13 /opt
cd /opt/arduino-1.8.13
sudo ./install.sh
sudo usermod -a -G dialout $USER

#Google-Chrome

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update && sudo apt install google-chrome-stable -y
ailias chrome = google-chrome
echo "ailias chrome = google-chrome">> ~/.bashrc

#VSCode

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo apt install curl -y
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt install apt-transport-https
sudo apt update && sudo apt install code -y

#At-Coder-Cli

sudo apt-get install python3
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install node
npm install -g npm
npm install -g atcoder-cli
pip3 install online-judge-tools
export PATH=$PATH:/.local/bin
echo "export PATH=$PATH:~/.local/bin" >> ~/.bashrc
acc -h
oj -h

#ROS2-Foxy

sudo apt update && sudo apt install curl gnupg2 lsb-release -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt install ros-foxy-desktop -y

 

#Micro-XRCE-DDS

cd ~
git clone https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
cd Micro-XRCE-DDS-Agent/
git checkout v1.3.0
mkdir build
cd build
cmake ..
make
echo "MicroXRCEAgent='$(pwd)/MicroXRCEAgent'" >> ~/.bashrc

#Ar-Ray-code/ros2arduino

cd ~/Arduino/libraries/
git clone https://github.com/Ar-Ray-code/ros2arduino.git
git checkout 0.2.1_foxy

 

cd ~
mkdir ~/ros2_ws/src -p
cd ~/ros2_ws/src
git clone https://github.com/Ar-Ray-code/M5AtomMatrix_playground.git
cd M5AtomMatrix_playground/
git checkout foxy-devel
cd ../../
colcon build --symlink-install

 

 

sudo apt install python3-colcon-common-extensions
sudo apt install python3-argcomplete
sudo apt install python3-rosdep2
rosdep update
rosdep install -q -y -r --from-paths src --ignore-src

 

 

Screen Recorder

sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder

 

 

-未分類