pxkw.hatenadiary.com

めもめも

linux

How to create .mobi after scanning images

Requirements convert # by imagemagic pdftk ebook-convert # by calibre Convert each image into pdf for file in `ls *.jpg`; do convert $file ${file%jpg}pdf; done; Integrate the pdfs pdftk *.pdf cat output integ.pdf Convert pdf to mobi ebook-…

How to remap CapsLock to Ctrl or swap them.

(Tried and successful on Ubuntu 13.10) [1/2] Edit option in a configuration file. Edit XKBOPTIONS in the file /etc/default/keyboard. SU permission will be required. To remap CAPS to CTRL, add the following option. ctrl:nocapse.g. XKBOPTION…

gtkのキーバインドテーマをEmacs化

端末で下記を叩く. gsettings set org.gnome.desktop.interface gtk-key-theme Emacsこれがないと生きた心地がしない。 参考文献 UbuntuSaucy

symlinkをchownする

オプションhを付与する。 chown -h owner:group symlinkchownのマニュアル: -h, --no-dereference affect each symbolic link instead of any referenced file (useful only on systems that can change the ownership of a symlink)なので、 -h を付与しな…

SymLinkとHardLinkの使い分けどころ

Linuxのシンボリックリンクとハードリンクはどう使い分けますか.. - 人力検索はてな 私が知っている中で、ハードリンクを最も効果的に使っているのは Cyrus IMAP Server と呼ばれる IMAP サーバのソフトで、このソフトの場合、基本的にはメール1通が1ファ…