Showing posts with label Arch Linux. Show all posts
Showing posts with label Arch Linux. 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 change brightness of display on Linux terminal
To change brightness of display on Linux terminal,
1. find the display name as follows. That is "DP-2" in my case.
$ xrandr --verbose2. Execute the following command.
xrandr --output (the display name) --brightness (the number between 0 and 1)For example,
xrandr --output DP-2 --brightness 0.5If the last number is close to 0 [1], then the display will be dark [bright].
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{}内に数式モードが含まれるとエラーが発生するようだ.
科研費LaTeX('24年夏応募分)
皆様,今年もタイトルの季節でございます.こちらからどうぞ.
Labels:
Arch Linux,
Debian,
Emacs,
Fedora,
Linux Mint,
Lubuntu,
TeX,
Ubuntu,
UNIX,
Vine Linux,
xubuntu
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,
ソフトウェア,
マニュアル
確率論的野鳥(2023/10/9現在)
自分の.emacsの野鳥設定部分のうち数学記号部分のみを記しておく.ただし,多分に確率論風.
(setq YaTeX-math-sign-alist-private
'(
;;; ("q" "Q" "(Q)")
;;; ("z" "Z" "ZZ")
;;; ("t" "text" "text")
("bb" "mathbb" "\mathbb{}")
("mb" "mathbf" "\mathbf{}")
("mc" "mathcal" "\mathcal{}")
("qu" "quad" "__")
("qq" "qquad" "____")
("ls" "varlimsup" "___\nlim")
("li" "varliminf" "lim\n---")
("il" "varinjlim" "lim\n-->")
("pl" "varprojlim" "lim\n<--")
("ae" "textrm{ a.e. }" "a.e.")
("as" "textrm{ a.s. }" "a.s.")
("qe" "textrm{ q.e. }" "q.e.")
("st" "textrm{ s.t. }" "s.t.")
("capa" "textrm{Cap}" "Cap")
("supp" "textrm{supp }" "supp ")
("Li" "lim" "lim")
("limi" "liminf" "liminf")
("lims" "limsup" "limsup")
("pi" "prod" "Π")
("U" "bigcup" "∪")
("UU" "bigcap" "∩")
("/o" "emptyset" "Φ")
("bigop" "bigoplus" "_\n(+)~")
("bigot" "bigotimes" "_\n(x)\n ~")
))
Xfce@Archlinux@ThinkPadX220iで外部接続キーボード(HHKB for Mac)のキーアサインがずれる件について
1. 左上のメニューから,設定>キーボード>レイアウト
2. 「システムのデフォルトを使用する」をオフにし,
3. 自分が外部接続したキーボードを選ぶ.
Arch Linux
今年度も無事に科研費がハズレだったので,8号機(lenovo, ThinkPad X220i)にArch Linuxをこちらを参照してインストールした(勿論,Fedoraでのファイルなどをバックアップした後で).今後,FreeBSDもインストールしたいので,ディスクスペースなどは少なめにしておいた:Swapに 4GiB, Arch Linuxに156GiB. wifi-menuなどのコマンドが使えないようなので,LANケーブルでルーターとマシンを直につないでインストールした.日本語関係はこれとこれを参照した.大半のアプリケーションはpacmanコマンドでインストールできて良かったのだが,画面が時々ティアリングするのと,インストールメディアを外付けドライブに入れてからでないと起動できないのが少し面倒臭い.
※追記:いつものことですが,インストールはご自分の判断でお願いします(私も詳細はよく分かりません).
Subscribe to:
Posts (Atom)