0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linuxスタートアップルーティン

Last updated at Posted at 2025-02-14

update.sh の作成,実行

echo "sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y" > ~/update.sh
source ~/update.sh

アプデのScript1を毎回叩くのが面倒,という魂胆.

Python環境構築

わからなくなったら公式HPを確認すること

1. mise

curl https://mise.run | sh # Install Linux/MacOS
~/.local/bin/mise --version # 動作確認
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc # mise PATH
source ~/.bashrc

2. Python plugin

mise use --global python@3

他の言語

LaTeX環境構築

sudo apt install texlive \
texlive-luatex texlive-lang-japanese texlive-latex-extra \
latexmk

pandoc環境構築

sudo apt install pandoc make
SOURCES := $(wildcard *.md)
PDF := $(SOURCES:.md=.pdf)
DOCX := $(SOURCES:.md=.docx)
TEX := $(SOURCES:.md=.tex)

all: $(DOCX) $(TEX) $(PDF)

%.pdf: %.md
	pandoc $< -o $@ --pdf-engine=lualatex -V documentclass=ltjsarticle

%.docx: %.md
	pandoc $< -o $@

%.tex: %.md
	pandoc $< -o $@

clean:
	rm -f $(DOCX) $(TEX) $(PDF)

.PHONY: all clean

Git環境設定

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
  1. miseのアプデコマンドを追加するならecho "mise self-update" >> ~/update.shも実行

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?