2015年4月25日 星期六

[Xournal] 編輯 PDF 檔工具

檔案下載
編輯 PDF 工具 (Xournal)

開啟檔案



文字字型選擇
工具 -> 文字字型
選擇字型:
在預覽看到中文字,表示這個字型支援中文字



打上中文




輸出成新的PDF檔

2015年2月9日 星期一

[ArchLinux] How to install archlinux

Prepare :
1. Download image
archlinux-2015.02.01-dual.iso

2. dd into usb flash
dd bs=4M if=/path/to/archlinux-2015.02.01-dual.iso of=/dev/sdx && sync



1. Design the partition of disk
Type: gdisk /dev/sda
Type: o //This will create a new empty GUID partition table and destroy all your data and overwrite existing partitions

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          104447   50.0 MiB    EF00  EFI System
   2          104448       125933567   60.0 GiB    8300  Linux filesystem
   3       125933568       142710783   8.0 GiB     8200  Linux swap
   4       142710784      1953525134   863.5 GiB   8300  Linux filesystem

Explain:
sda2 (/mnt/)
mkfs -t ext4 /dev/sda2

sda1 (/mnt/boot)
mkfs -t fat /dev/sda1

sda4 (/mnt/data)
mkfs -t ext4 /dev/sda4

mkswap /dev/sda3
swapon /dev/sda3

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/data

2. Install base package into /mnt
pacstrap -i /mnt base net-tools

3. Create fstab into /mnt/
genfstab -U -p /mnt >> /mnt/etc/fstab

4. Install and configure a bootloader
pacman -S gummiboot
gummiboot install
nano /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdaX rw

5. reboot


1. Update the database
pacman -Syu

2. Install X Window System
sudo pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils mesa

3. Install video driver for intel
a. pacman -Ss | grep intel
extra/intel-tbb 4.3_20141204-1
extra/intel-ucode 20140913-1
extra/libva-intel-driver 1.5.0-1
extra/xf86-video-intel 2.99.917-1 (xorg-drivers xorg) [installed]

b. pacman  -S  xf86-video-intel

4. Test x window
startx





1. Install desktop environment of cinnamon
sudo pacman -S cinnamon

2. Display manager (a graphical login program)
sudo pacman –S gdm
sudo systemctl start gdm

Reference:
1. How to Install Arch Linux with UEFI
2. Installing GUI (Cinnamon Desktop) and Basic Softwares in Arch Linux
3. Arch Linux Downloads
4. USB flash installation media