Wednesday, October 14, 2015

A simple LaTeX editor in iOS: MMD

LaTeX with MMD or Org-mode with MathJax

LaTeX with MMD or Org-mode with MathJax


This post is written with e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.5)
  • Sub- : Debian GNU/Linux Wheezy (7.9)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 9.0.2

$$ \newcommand{\dd}{\mathrm{d}} $$


A brief comment on MultiMarkdown

MultiMarkDown(MMD) with LaTeX, particularly mathematical formulae, isn't hard in any text editor supporting markdown preview. All we need is adding the following code probably on the beginning of your MMD file.

<script type="text/javascript"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

It's gonna automatically render a mathematical formula written in LaTeX into HTML by means of MathJax engine. List of softwares I've tested is

Remember that an equation has to be enclosed by $ and $, \( and \), \\[ and \\], or etc. as suggested by MathJax or Fletcher T. Penney. For the others, you can follow the usual Markdown or Multi-markdown syntaxes.

Rendering MMD with LaTeX to HTML may not work properly as expected. Sadly, usage of LaTeX in MMD is not recommendable (yet) by comparison with Org-mode working perfectly. For example, an HTML output rendered from any of above first three would be seen appropriately in Safari (or Mobile Safari), but might not in the others like Firefox(or even not in Safari sometimes).

Nevertheless, it is worth mentioning that an MMD editor supporting MD preview would be a great alternative to use LaTeX in iOS, such as Nebulous Notes.

22154811262_9daab98c1e_o.gif

Figure 1: LaTeX and its rendering in Nebulous Notes


LaTeX example and a tip

In order to use a manual command you want, it can be easily done by putting the following code somewhere in your MMD file or Emacs Org-mode file. It works in both.

$$
\newcommand{\dd}{\mathrm{d}}
$$

I here present the almost same output from the one LaTeX expression w/ two different markup languages: MMD and Emacs Org-mode.

Output

The famous Euler formula is $${e}^{i\pi }+1=0\,.$$

……………………………………………………

The Wigner function \(d^{(J)}_{mn}(\theta)\) satisfy the orthogonality and the completeness relation respectively as follows

\begin{align} (2\,J+1) \, \int_{-1}^{1}\frac{\dd\cos\theta}{2}\,d^{(J)}_{mn}(\theta)\,d^{(J')}_{mn}(\theta) = \delta_{JJ'} \,,\\ \sum_{J}(2J+1)\,d^{(J)}_{mn}(\theta)\,d^{(J)}_{mn}(\theta') = 2\,\delta(\cos\theta - \cos\theta') \,. \end{align}

It relates to the Legendre polynomial as

\begin{align} d^{(l)}_{00}(\theta) & = {} P_l(\cos\theta) \,, \qquad d^{(l)}_{10}(\theta) = - \frac{\sin\theta}{\sqrt{l(l+1)}}\,P_l'(\cos\theta) \,, \end{align}

where \(P_l'(z) = \dd P_l(z)/\dd z\). Using these altogether, we can recover the orthogonality and the completeness relation of the Legendre polynomials.

Source for MMD

<script type="text/javascript"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

$$
\newcommand{\dd}{\mathrm{d}}
$$

The famous Euler formula is $${e}^{i\pi }+1=0\,.$$

***............................................................***

The Wigner function \\(d^{(J)}_{mn}(\theta)\\) satisfy the orthogonality and the completeness relation respectively as follows
\\[
\begin{align}
  (2\,J+1) \, \int_{-1}^{1}\frac{\dd\cos\theta}{2}\,d^{(J)}_{mn}(\theta)\,d^{(J')}_{mn}(\theta) = \delta_{JJ'}
  \,,\\
  \sum_{J}(2J+1)\,d^{(J)}_{mn}(\theta)\,d^{(J)}_{mn}(\theta') = 2\,\delta(\cos\theta - \cos\theta')
  \,.
\end{align}
\\]
It relates to the Legendre polynomial as
\\[
\begin{align}
  d^{(l)}_{00}(\theta)
  & = {}
  P_l(\cos\theta)
  \,, \qquad 
  d^{(l)}_{10}(\theta)
  = 
  - \frac{\sin\theta}{\sqrt{l(l+1)}}\,P_l'(\cos\theta)
  \,,
\end{align}
\\]
where \\(P_l'(z) = \dd P_l(z)/\dd z\\). Using these altogether, we can recover the orthogonality and the completeness relation of the Legendre polynomials.

Source for Emacs Org-mode

#+HTML_HEAD: <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>

$$
\newcommand{\dd}{\mathrm{d}}
$$

The famous Euler formula is $${e}^{i\pi }+1=0\,.$$

*............................................................*

The Wigner function $d^{(J)}_{mn}(\theta)$ satisfy the orthogonality and the completeness relation respectively as follows
\begin{align}
  (2\,J+1) \, \int_{-1}^{1}\frac{\dd\cos\theta}{2}\,d^{(J)}_{mn}(\theta)\,d^{(J')}_{mn}(\theta) = \delta_{JJ'}
  \,,\\
  \sum_{J}(2J+1)\,d^{(J)}_{mn}(\theta)\,d^{(J)}_{mn}(\theta') = 2\,\delta(\cos\theta - \cos\theta')
  \,.
\end{align}
It relates to the Legendre polynomial as
\begin{align}
  d^{(l)}_{00}(\theta)
  & = {}
  P_l(\cos\theta)
  \,, \qquad 
  d^{(l)}_{10}(\theta)
  = 
  - \frac{\sin\theta}{\sqrt{l(l+1)}}\,P_l'(\cos\theta)
  \,,
\end{align}
where $P_l'(z) = \dd P_l(z)/\dd z$. Using these altogether, we can recover the orthogonality and the completeness relation of the Legendre polynomials.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-10-14 Wed 18:16

Emacs 24.3.1 (Org mode 8.2.10)

Thursday, August 27, 2015

Sound issue in HandBrake

Sound breaking in HandBrake

Sound breaking in HandBrake


This post is written with e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode.


Operating System Environments

  • Main- : OS X Yosemite (10.10.5)
  • Sub- : Debian GNU/Linux Wheezy (7.8)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 7.1.2

HandBrake is a GNU Licensed free-/open-source for transcoding videos. It is the one and only software to me for the purpose of converting movies w/ or w/o subtitles. Main features are

  • Pros :
    • Free-/open-source
    • Cross-platform meaning available in OS X, Linux, and Windows
    • Supporting most common containers for input sources, such as .avi, .mkv, .mov, etc
    • Particularly useful for making a subtitled video
    • Queue for pending jobs
  • Cons :
    • .srt works only for a subtitle file
    • Too many options, so that could be unclear for beginners

The last disadvantage would not be a big deal, since HandBrake's built-in presets could be mostly enough. But, the inconvenience of subtitle files requires some efforts, which may be a next post. It has been installed on my two operating systems for last five years. The most frequent job of mine is to get a .m4v movie containing multi-lingual subtitles. Never fails so far.

I don't want to describe its technical details or steps how to use in this post, because there are plenty of them. Instead, fixing a sound problem probably caused during converting procedure is what I try to show here.

Sound missing after transcoding

There was a sound problem occurring for the first time. I tried to transcode a source to a .m4v movie with English/Korean subtitles. After transcoding was done, output's sound broke. Precisely, the first 2/3 part was of stereo as intended, but the remainder became mono, so that it played without any sound on my poor linux machine. Everything else was fine. Details of the input source was

  • Input source
    • Container: mp4
    • Video codec: H264 MPEG-4 AVC
    • Audio codec: MPEG AAC Audio
    • Resolution: 1920x1080
    • Size: about 1.5 GB

I attempt to use other softwares for fixing it, for example, ffmpegX, Adapter, MPEG Streamclip, QuickTime Player, even iMovie with various different configurations. However, none of them was working. (FYI, it is neither to be expected getting a subtitled .m4v output directly from any, nor even possible. I got suspicious of the input source, so that made a detour as a mid-step.)

There are lots of options we can set up in HandBrake. It turns out that one of them is the key to resolving the sound issue. The audio setup that Auto Passthru is chosen as the following figure can bypass the issue, so that provides a proper stereo sound smoothly.

20290925573_8d42ac8f3c_o.png


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-08-27 Thu 02:53

Emacs 24.3.1 (Org mode 8.2.10)

Friday, August 21, 2015

Incognito

Chrome Incognito by default

Chrome Incognito by default


이 문서는 e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode로 작성된 글입니다.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.5)
  • Sub- : Debian GNU/Linux Wheezy (7.8)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 7.1.2


Google Chrome의 Incognito mode는 Privacy Mode의 다른 말로써, 이용 내역을 저장하지 않고 브라우저를 사용하는 기능이다. 방문한 페이지의 내역(history), http 정보(cookie), 프록시 서버 저장된 정보(web cache) 등이 저장되지 않아서 개인 정보 노출에 민감한 경우에도 유용하게 쓸 수 있다.

in‧cog‧ni‧to |inkɑ́ɡnitòu┃-kɔ́ɡ-|

[형용사][부사] 《라틴어》 익명의[으로], 가명의[으로]; 암행의[으로]

> an incognito traveler 신분을 숨긴 여행자.

[명사] (『복수』 incognitos |-z| )

1.익명자; 미행자. 2.[불]미행. 3.익명, 가명.

from OSX 내장 뉴에이스 영한사전

Private Mode를 쓰는 방법은 간단하다. Chrome(or Chromium)에서는 주소창 맨 오른쪽에 위치한 20549413899_b021ba717f_o.png를 클릭한 후, New Incognito Window 에서 사용할 수 있고, Firefox(or Iceweasel)에서도 역시 주소창 맨 오른쪽의 20549413899_b021ba717f_o.png를 클릭, New Private Window 에서 할 수 있다.

20710485986_6d901c96bb_o.gif

Figure 1: Mozilla Firefox Private Mode in OSX

최근에 보안상의 이유로 메인컴인 OSX Yosemite에서 Adobe Flash를 완전히 삭제하면서, 부득이하게 가끔 Flash가 필요할 때가 생겼다. 때문에, Flash가 브라우저에 내장된 Google Chrome을 설치해서 종종 쓰는데, 여기에서는 어떤 extensions도 설치하지 않고 순정으로 쓰고 있다. 그래서 쓸 때마다 Incognito Mode를 활성화하는 데, 너무 귀찮아서 "항상 incognito로 켤 순 없을까?"하는 고민을 하게 되었다. 이 포스팅에서는 Chrome을 열 때 항상 Incognito Mode를 활성화 하는 방법을 기술하려 한다. 기술적으로는 Bash(Terminal.app in OSX, Terminal emulator, etc in Linux)에서 --args --incognito 옵션으로 Chrome을 실행하는 것과 다름없는데, 이를 OS 마다 적당히 적용해서 사용을 더 간단하게 하는 것이 목적이다.

Open Google Chrome always with Incognito mode

테스트에 사용한 Google Chrome 버전과 OS는 아래와 같다.1

  • 44.x (64-bit) in OSX Yosemite
  • 44.x (64-bit) in Debian GNU/Linux Wheezy with XFCE

Google Chrome은 이미 설치했다고 가정한다.

OSX Yosemite

여기서 사용한 방법을 간단히 기술하면, Bash(Terminal.app)에서 open -a /Applications/Google\\ Chrome.app --args --incognito 를 실행하는 Apple Script를 만들어 Application으로 등록하는 것이다.

Instruction

  1. /Applications/Utilities 아래에 있는 Script Editor.app 을 연다.
  2. 아래를 적어 넣는다.
    do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito"
    
  3. 메뉴에서 Export 를 클릭해서, [Export As:]에서 적당한 이름을 적고, [Where:]에서 /Applications 을 선택한 후, [File Format:]을 Application 으로 해서 저장한다.

이제, /Applications 아래에 새롭게 만든 Application이 등록된 것을 확인할 수 있다. 원한다면 Get Info (단축키 ⌘i)에서 아이콘도 바꿀 수 있다. 이제 원래 있는 Google Chrome이 아니라, 본인이 직접 이름 지은 새 Application을 쓰면 된다.

20744281801_54d04f59e6_o.gif

Figure 2: Workflow of Script Editor for making the application

Debian GNU/Linux

Google Chrome을 설치했다면 Bash(Terminal Emulator or etc)에서 google-chrome --args --incognito 명령을 실행하는 것으로 바로 Incognito Mode로 Chrome을 열 수 있다. 여기서는 /opt/google/chrome 아래에 있는 Shell Script인 google-chrome 을 수정하려 한다. 당연히, 사용자는 root 권한이 있어서 sudo 명령어를 쓸 수 있어야 한다.

Instruction

  1. Bash(Terminal Emulator or etc)를 열어 /opt/google/chrome/ 로 이동한다.
    $ cd /opt/google/chrome
    
  2. sudo 와 함께 적당한 에디터로 google-chrome 을 연다. 아래는 mousepad 로 실행한 예이다.
    $ sudo mousepad google-chrome
    
  3. 아래와 같이 적힌 부분을 찾자. 다른 부분은 건드리지 않게 주의한다!
    # Make sure that the profile directory specified in the environment, if any,
    # overrides the default.
    if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
      # Note: exec -a below is a bashism.
      exec -a "$0" "$HERE/chrome"  \
        --user-data-dir="$CHROME_USER_DATA_DIR" "$@"
    else
      exec -a "$0" "$HERE/chrome"  "$@"
    fi
    
  4. 여기서 중요한 부분은 두 군데 있는 exec -a "$0" "$HERE/chrome" 이다. 아래와 같이, 두 곳 모두 exec -a "$0" "$HERE/chrome" --args --incognito 로 고친 후 저장하자.
    # Make sure that the profile directory specified in the environment, if any,
    # overrides the default.
    if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
      # Note: exec -a below is a bashism.
      exec -a "$0" "$HERE/chrome" --args --incognito  \
        --user-data-dir="$CHROME_USER_DATA_DIR" "$@"
    else
      exec -a "$0" "$HERE/chrome" --args --incognito  "$@"
    fi
    

이제, Bash에서 google-chrome 명령어로 직접 열든, 어딘가 이미 등록되어 있는(보통 Applications Menu 아래) Google Chrome을 클릭하던, 항상 --args --incognito 옵션으로 실행되어 Incognito Mode로 열릴 것이다.


Created: 2015-08-21 Fri 22:53

Emacs 24.3.1 (Org mode 8.2.10)

Sunday, July 12, 2015

wine for x86_64

Wine

Wine


이 문서는 e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode로 작성된 글입니다.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.4)
  • Sub- : Debian GNU/Linux Wheezy (7.8):amd64
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 7.1.2

지난 글들에서 볼 수 있듯이, 최근에 Debian이 설치된 2nd 컴을 날렸다.

이 blog를 참고하는 것 만으로, 웬만한 설치 관련 문제를 해결할 수 있기를 바랐기에, 다시 Debian을 설치하며 알게 된 이 blog에서 빠진 몇 가지 간단한 것들을 추가하려 한다.

Wine for Debian GNU/Linux: amd64

Debian을 64비트(a.k.a. amd64, x86-64, or x86_64)로 설치해서 사용하고 있다. 믿기 어렵지만, 2015년이 반이나 지났는데도 아직 32비트가 확장성이 더 좋다. 이를테면, steam을 Debian 64비트에서 설치하는 것은 많이 까다롭거나 거의 불가능하다. 그럼에도 불구하고 이를 쓰는 이유는, 전적으로 내 경험 상 동영상 변환 및 시청에서 약간의 성능 향상을 경험했기 때문이다. 즉, 같은 환경에서 32비트보다 64비트에서 동영상 변환이 조금 더 빠르고 HD급 동영상 시청 시 덜 버벅였다. 사용하고 있는 컴의 아키텍처를 알고 싶으면 아래의 명령어를 Bash(or Terminal Emulator)에서 실행하면 된다.

$ dpkg --print-architecture

32비트면 i386 를 출력할 것이고, 64비트면 amd64 를 볼 수 있을 것이다.

Linux를 쓰다 보면 Wine이 필요할 때가 있다. 일반적으로 Linux 용 소프트웨어가 Windows는 물론 OS X 보다도 적다. 이를 다소 해결해 줄 수 있는 것이 Wine이다. Wine은 Windows 용 프로그램을 Linux에서 간단히 구동 시켜주는 emulator 중 하나이다. 대표적으로 MS Office나 iTunes 같은 프로그램을 쓸 수 있게 해주며, 게임을 즐기는 사람들에게 특히 유용하게 쓰인다. 내 경우에 Linux로 사용하는 컴이 너무 구식이라 어차피 게임을 돌릴 수는 없고, 2nd으로 쓰는 지라 웬만한 것들은 Linux 안에서 해결 수 있었다. 딱 하나 필요해서 쓰는 데, 그게 반디집이다. Linux에서 한글명으로 된 압축 파일을 풀 때 쓴다.

문제는, Wine은 32비트 아키텍처 기반이라 64비트에서 쓰려면, 32비트로 구동 되는 소프트웨어를 64비트에 이식하는 과정 이 필요하다는 점이다. 글로 쓰니 거창해 보이지만 간단히 말해서, 아래와 같이 foreign-architectures 에 32비트를 추가하면 된다.

  1. Bash(or Terminal Emulator)를 열어 다음 명령어를 수행한다.
    $ sudo dpkg --add-architecture i386
    
  2. 그러면, 다음 명령어로 foreign-architectures 에 32비트가 추가된 것을 확인할 수 있다.
    $ dpkg --print-foreign-architectures
    
  3. 마지막으로 apt 를 업그레이드 하면 된다.
    $ sudo apt-get update
    $ sudo apt-get upgrade
    

이제, Wine을 쓸 준비는 다됐다. 설치는 언제나 그렇듯 sudo apt-get install wine 으로 하면 된다.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-07-12 Sun 00:19

Emacs 24.3.1 (Org mode 8.2.10)

Sunday, July 5, 2015

XFCE: auto-login

Debian GNU/Linux: Auto-login

Debian GNU/Linux: Auto-login


이 문서는 e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode로 작성된 글입니다.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.4)
  • Sub- : Debian GNU/Linux Wheezy (7.8)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 7.1.2

지난 글들에서 볼 수 있듯이, 최근에 Debian이 설치된 \(2^{nd}\) 컴을 날렸다.

이 blog를 참고하는 것 만으로, 웬만한 설치 관련 문제를 해결할 수 있기를 바랐기에, 다시 Debian을 설치하며 알게 된 이 blog에서 빠진 몇 가지 간단한 것들을 추가하려 한다.

Auto-login in Debian GNU/Linux with XFCE

KDE를 쓰면 [System settings]에서 auto-login을 간단하게 설정할 수 있다. XFCE는 가볍고 빠른 만큼 GUI(Graphic User Interface)로 간단히 접근할 수 있는 많은 것들이 누락되어있다. Auto-login도 그 중 하나로 사용자가 직접 Bash(Terminal emulator)에서 설정해야 한다. 내 \(2^{nd}\) 컴에는 개인적인 것들이 거의 없어서, 한 번 이라도 키보드를 덜 쓰려, 아래의 방법으로 auto-login on 상태로 사용하고 있다.

  1. 우선 lightdm package가 필요하다.
    $ sudo apt-get install lightdm
    
  2. 설치가 끝나면, /etc/lightdm/lightdm.conf 파일을 mousepad 같은 적당한 에디터로 열자.
  3. 아래와 같이 쓰여진 부분을 찾아서(⌃Ctrl+f)
    [SeatDefaults]
    #autologin-user=
    #autologin-user-timeout=0
    

    아래처럼 주석 처리 기호인 # 을 지우고, autologin-user= 오른쪽에 사용자의 ID(아래서 Your_ID 로 표한 부분)을 적으면 된다.

    [SeatDefaults]
    autologin-user=Your_ID
    autologin-user-timeout=0
    

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-07-05 Sun 12:41

Emacs 24.3.1 (Org mode 8.2.10)

XFCE: font installation

Debian GNU/Linux: Font installation

Debian GNU/Linux: Font installation


이 문서는 e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode로 작성된 글입니다.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.4)
  • Sub- : Debian GNU/Linux Wheezy (7.8)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 7.1.2

지난 글들에서 볼 수 있듯이, 최근에 Debian이 설치된 \(2^{nd}\) 컴을 날렸다.

이 blog를 참고하는 것 만으로, 웬만한 설치 관련 문제를 해결할 수 있기를 바랐기에, 다시 Debian을 설치하며 알게 된 이 blog에서 빠진 몇 가지 간단한 것들을 추가하려 한다.

Installation of fonts in Debian GNU/Linux with XFCE

폰트 설치 시, Debian repository에 있어서 apt 명령어로 바로 설치할 수 있는 경우가 있다. 대표적으로 은폰트(ttf-unfonts-core 와 ttf-unfonts-extra)가 있다.

그렇지 않은 경우로는, 사용자가 직접 폰트나 폰트 패밀리를 다운로드해서 설치하고 싶을 때가 있다. KDE나 Gnome과는 다르게, XFCE는 가볍고 빠른 만큼 GUI(Graphic User Interface)로 간단히 접근할 수 있는 많은 것들이 누락되어있어서 폰트도 사용자가 직접 몇 가지 명령어를 실행해야 한다. 이는 또 두 가지 경우로 나눌 수 있는데, 시스템에 설치해서 전체 사용자가 쓸 수 있는 방법과, 한 사용자(혹은 지금 로그인 중인 사용자)에만 설치하는 방법이 있다. 전자는 당연히 sudoer에 등록된 사용자만이 할 수 있고, 후자는 로그인만 할 수 있으면 가능하며 내가 선호하는 방법이다.1

  • Systemwidely:

    다운로드한 폰트나 폰트 패밀리를 /usr/local/share/fonts/ 디렉터리로 복사한 후, sudo fc-cache -fv 명령어를 실행하면 된다. 아래는 ~/Downloads/ 디렉터리에 받은 TrueType 폰트 전체를 /usr/local/share/fonts/ 디렉터리로 복사한 후, 해당 명령어를 Bash(Terminal emulator)에서 실행하는 예이다.

    $ sudo cp ~/Downdloads/*.ttf /usr/local/share/fonts/
    $ sudo fc-cache -fv
    
  • For an user:

    우선 다운로드한 폰트나 폰트 패밀리를 ~/.fonts/ 디렉터리로 복사한다. 이 디렉터리가 없으면 mkdir ~/.fonts 명령으로 하나 만들면 된다. 그리고 fc-cache -fv 명령어를 실행하면 된다. 아래는 ~/Downloads/ 디렉터리에 받은 TrueType 폰트 전체를 ~/.fonts/ 디렉터리로 복사한 후, 해당 명령어를 Bash(Terminal emulator)에서 실행하는 예이다.

    $ cp ~/Downdloads/*.ttf ~/.fonts/
    $ fc-cache -fv
    

FYI) .ttf 형식의 TrueType 폰트는 물론, .otf 의 OpenType 폰트 모두 쓸 수 있다. 현재 각광 받는 폰트 중 하나인 Noto Sans CJK KR은 .otf 형식으로 배포되고 있다. -> 다운로드 바로가기


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Footnotes:

Created: 2015-07-05 Sun 12:42

Emacs 24.3.1 (Org mode 8.2.10)

Installation of Debian GNU/Linux with XFCE

Debian GNU/Linux: XFCE default

Debian GNU/Linux: XFCE default


이 문서는 e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode로 작성된 글입니다.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.4)
  • Sub- : Debian GNU/Linux Wheezy (7.8)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 7.1.2

지난 글들에서 볼 수 있듯이, 최근에 Debian이 설치된 \(2^{nd}\) 컴을 날렸다.

이 blog를 참고하는 것 만으로, 웬만한 설치 관련 문제를 해결할 수 있기를 바랐기에, 다시 Debian을 설치하며 알게 된 이 blog에서 빠진 몇 가지 간단한 것들을 추가하려 한다.

Installation of Debian GNU/Linux with XFCE

Debian GNU/Linux Wheezy (7.x)의 기본 Desktop Environment는 Gnome이다. OS 설치 시, Gnome, KDE, XFCE, LXDE 중 선택할 수 있지만, 어떻게 bootable usb를 만들었냐에 따라 Desktop Environment 선택 화면이 없이 그냥 지나갈 수도 있다. 보통 그냥 하라는 데로 설치하면 열이면 열 Gnome이 설치된다. 나는 Gnome을 좋아하지 않는다. KDE는 너무 무겁다. 내가 원하는 것은 XFCE. OS 설치 시 수동으로 XFCE를 Desktop Environment로 선택하는 방법은 간단하다.1

  • Bootable usb로 부팅한 후 바로 보이는 boot prompt에서, ↹Tab 키를 누른 후, desktop=xfce 를 타이핑한 후 ↩Return 키를 누르면 된다.

FYI) 내 경우, unetbootin 을 통해서 bootable usb를 주로 만드는데, 설치 시 Desktop Environment 선택 화면이 보이지 않는다. 다른 프로그램을 통해서 bootable usb를 만들면 이 화면이 보일 수도 있다. 이를테면, KDE에서 Startup Disk Creator 를 이용해서 만들면, boot prompt에서 [Advanced Options] 아래 Desktop Environment를 선택할 수 있다.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Footnotes:

Created: 2015-07-05 Sun 12:41

Emacs 24.3.1 (Org mode 8.2.10)