Showing posts with label UNIX コマンド. Show all posts
Showing posts with label UNIX コマンド. Show all posts
Fedora 44でXcasが使えない?
最近,デスクトップ(Fedora Linux)を43から44にアップグレードしたら何故かXcasが起動しなくなった.AI Chatに相談して,その通りにしても駄目で,挙句「ソースから再度インストールをすれば・・・」みたいな話だったので一旦諦めた.代替措置として仕方なくCUIで動くicasで対応し,icasも駄目になった場合に備えて,AI Chatで計算用途別にPythonプログラムをいくつか作らせた.
Labels:
Arch Linux,
Debian,
Emacs,
Fedora,
Linux Mint,
Lubuntu,
Python,
Ubuntu,
UNIX,
UNIX コマンド,
Vine Linux,
xubuntu,
アプリケーション,
ソフトウェア,
メモ,
数学,
数学教育
How to copy all files into a directory and zip that directory in the Linux terminal
For example, please suppose that there are three files in the home directory: a.pdf, b.xlsx, and c.docx, and you would like to create a zip file 'abc.zip' containing the directory 'abc' with those three files.
1. Make a directory 'abc'.
$ mkdir abc
2. Copy the above three files into the directory 'abc'.
$ cp a.pdf abc
$ cp b.xlsx abc
$ cp c.docx abc
3. Zip the directory 'abc'.
$ zip -r abc.zip ./abc/
Labels:
Arch Linux,
Debian,
Fedora,
Linux Mint,
Lubuntu,
Mac,
Ubuntu,
UNIX,
UNIX コマンド,
Vine Linux,
xubuntu,
ソフトウェア,
メモ
How to display the updated files within the specific period of date by "ls" command on Linux terminal
Note that your environment may differ from my environment(lubuntu). For example, if you want to find the updated files from Aug 15 to Aug 20 in 2024, then
1. move to that directory (e.g. "abcde" directory) by "cd" command.
$ cd abcde2. Execute the next "ls" command.
$ ls -ltr | awk '$6 == "8月" && ($7 >=15 && $7 <= 20) && $8 = 2024 {print $6"-"$7"-"$8,$9}'
If you want to find the updated files before Aug 5 or after Aug 25 in 2024, then
3. execute the next "ls" command.
$ ls -ltr | awk '$6 == "8月" && ($7 <=5 || $7 >= 25) && $8 = 2024 {print $6"-"$7"-"$8,$9}'
See also,
How to get only files created after a date with ls? - Stack Exchange
Confusing use of && and || operators - Stack Exchange.
How to enable scrolling in xterm (Lubuntu 24)
Please see here.
1. Make a file XTerm in your home directory.
$ cd ~ $ touch XTerm2. For example, edit the file XTerm and let it be as follows:
XTerm*Background: DarkViolet
XTerm*Foreground: white
XTerm*SaveLines: 2000
XTerm*faceName: courier
XTerm*faceSize: 18
XTerm*rightScrollBar: true
XTerm*ScrollBar: true
XTerm*scrollTtyOutput: false
XTerm*VT100.Translations: #override \
Shift CtrlV: insert-selection(CLIPBOARD) \n\
Shift CtrlV: insert-selection(PRIMARY) \n\
Shift: select-start() \n\
Shift: select-extend() \n\
Shift: select-end(CLIPBOARD) \n\
How to check the speed of your CPU on Linux terminal
Please see here for further details.
If you want to watch every 0.1 seconds, then execute the following command.
$ watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"If you want to watch every second, then execute the following command.
$ watch -n1 "grep \"^[c]pu MHz\" /proc/cpuinfo"
jumoline.sty
LaTeX文書で複数行にわたって下線を引きたい場合はjumoline.styを使うべし.GitHubにソースもある(https://github.com/kmuto/pandoc2review/blob/main/samples/reviewsample/sty/jumoline.sty)し,ダウンロードもできる.これをスタイルファイルの入ったディレクトリへコピーしてコマンドmktexlsrを実行する.以下はホームディレクトリ~にjumoline.styがあった場合のdebian 12の例.
$ sudo cp -i ~/jumoline.sty /usr/share/texlive/texmf-di st/tex/latex/tools/ $ sudo mktexlsrこれでプリアンブルに
\usepackage{jumoline}
を追記すれば,地の文で
\Underline{下線を引く.下線を引く.下線を引く.下線を引く.
下線を引く.下線を引く.下線を引く.下線を引く.下線を引く.
下線を引く.下線を引く.下線を引く.下線を引く.下線を引く.
下線を引く.下線を引く.}
としても,複数行にまたがった下線が引かれる.
2024.9.22追記:\Underline{}内に数式モードが含まれるとエラーが発生するようだ.
HEICファイルをJPGファイルまたはPNGファイルにするには?
ubuntu系であればheif-convertを使うらしい.詳しくは以下を参照.
https://virment.com/install-libheif-to-convert-heic-to-jpg/
TikZ(「ティクス」と読む?)
TeX文書内でグラフや図形を描画するためのパッケージです.プリアンブルにて
\usepackage{tikz}とすると使えます.基本的な使い方は
\begin{tikzpicture}[環境オプション]
コマンド;
コマンド;
…;
\end{tikzpicture}です.使い方やサンプルなどは
https://texwiki.texjp.org/?TikZ
を見て下さい.また,TikZiTというGUIエディタもあるようです.
Labels:
Arch Linux,
Debian,
Emacs,
Fedora,
Linux Mint,
Lubuntu,
TeX,
Ubuntu,
UNIX,
UNIX コマンド,
Vine Linux,
xubuntu,
アプリケーション,
インストール,
ソフトウェア
How to rotate a pdf file 90 degrees
If you use a Linux OS, I recommend that you use the application pdfjam on terminal. Please see the following page for further details.
https://unix.stackexchange.com/questions/394065/command-line-how-do-you-rotate-a-pdf-file-90-degrees
Labels:
Arch Linux,
Debian,
Fedora,
Linux Mint,
Lubuntu,
TeX,
Ubuntu,
UNIX,
UNIX コマンド,
Vine Linux,
ソフトウェア,
マニュアル
Simplescreenrecorder
Simplescreenrecorderは端末画面を録画しながら音声を録音できるソフト.Linux用もある.自分の場合(Dell Vostro)はAudio input内のBackendをALSAにした.映像のトリミングはVLCで可能だからLinuxでも端末画面を使ったビデオチュートリアル的な動画作成が可能だ.
grepコマンド
init.elの位置が・・・
8号機(lenovo, ThinkPad X220i, OS:Fedora30+Windows10)のEmacsでYaTeXを使おうと思い,ホームディレクトリ内に.init.elを作成しても作動しなかった.Emacs自体は起動していたことから別の.init.elがあるのかと思って
https://texwiki.texjp.org/?YaTeX#e2cbcccd
を参考に無事起動.色などの変更も今後ぼちぼちやりたい.
$ sudo find / -name *.init.elで探したら /usr/share/emacs/site-lisp/site-start.d/ にあった.chmodで書き込めるようにした上で
https://texwiki.texjp.org/?YaTeX#e2cbcccd
を参考に無事起動.色などの変更も今後ぼちぼちやりたい.
パスワード付きのPDFファイルを作るとき
Linuxではpdftkが使えるようだ.使い方はこちらをどうぞ.
emath@6号機
6号機(Ubuntu16側)にemath(emathf051107c.zip)をインストールした.各スタイルファイル(*.styと*.fd)の置き場所についてはここを参照した.自分の場合は
/usr/local/share/texmf/tex/platex/misc/emath/に置けば良いらしい.その後,
$ sudo mktexlsrとする.ただ,この状態でemathを使ったtexファイルをコンパイルすると
! LaTeX Error: File `eclarith.sty' not found.とか言われるので,こちらからダウンロード.
さよならXEmacs
3号機 (OS: Max OS X 10.11.6, El Capitan) のMacPortsがエラーを頻発していたので,アンインストールの上Homebrewをインストールした.XEmacsが使えなくなったのは名残惜しいが・・・.
xdviの文字化け解消(6号機)
6号機にUbuntu16をインストール(Windows10とデュアルブート)し終えたものの,xdviとevinceの日本語の文字化けに苦慮していた(日本語は現在Mozcで入力).evinceの方は何故かYaTeXの設定が完了した途端に直った.xdviは
xdvi.bin: Warning: Character 14883 not defined in font rml的なエラーメッセージが40-50行程出てきた.そこで,ここを参考にpxdviをインストールした.但し,Arch LinuxとUbuntu16ではディレクトリの構造が異なるので次のように読み替える:
"/usr/share/texmf-dist/pxdvi" -> /usr/share/texlive/texmf-dist/pxdvi "/usr/share/texmf-dist/fonts/map/pxdvi" -> /usr/share/texlive/texmf-dist/fonts/map/pxdvi "/usr/share/texmf-local/web2c" -> /usr/share/texlive/texmf-local/web2cそして,/usr/share/texlive/texmf-dist/web2c/texmf.cnfの末尾に次の通り加筆:
%pxdvi XDVIINPUTS = /usr/share/texlive/texmf-dist/pxdvi/xdviあとはSKKの設定+メールアカウントの設定をして2号機から主要ファイルをコピーすれば移行完了かな.
Subscribe to:
Posts (Atom)