2014年12月23日火曜日

arch コンソール で 日本語 ; arch backup

http://d.hatena.ne.jp/devm33/20120903/1346688956
に ほぼ準拠してます。


jfbterm-git ははいらないので
yaourt -S jfbterm-freebsd

それから
uim
bdf-unifont (いらないかも)
pcf-unifont
をいれます。


cat .uim
(define-key generic-on-key? '("<Shift> " "<Control> " "<Control>\\"))
(define-key generic-off-key? '("<Shift> " "<Control> " "<Control>\\"))


loginしたら
jfbterm -q -e uim-fep -u anthy
をします。

すると 日本語表示となります。
もう 文字化けしません。
ctrl + space で日本語入力ができます。

お手軽です。







https://sudopacman.wordpress.com/2014/12/02/backup-and-restore-arch-linux/
に準拠してます。


バックアップ
cd archのあるところ
tar  -czvpf  /バックアップ先/backup.tar.gz  --exclude=proc --exclude=sys --exclude=dev --exclude=tmp --exclude=XXXXX  --exclude=mnt   .

http://www.aboutdebian.com/tar-backup.htm

tar -zcvpf /backups/fullbackup.tar.gz --directory=/ 
--exclude=proc
--exclude=sys --exclude=dev/pts --exclude=backups .

Likewise, our untar-ing command becomes:


tar -zxvpf /fullbackup.tar.gz


レストア
mkdir /mnt/arch
$
sudo mount /dev/sda2 /mnt/arch  (arcをいれるところ)
$

Then let’s extract the tar file.

$ sudo tar -zxvpf /バックアップ先/data/backup.tar.gz -C /mnt/arch



Mount dev, proc and sys
Mount them into the target restoring point, since you need the machine relevant information from the session.

$ sudo cp /etc/resolve.conf /mnt/arch/etc
$ sudo mount -t proc none /mnt/arch/proc
$ sudo mount -t sysfs none /mnt/arch/sys
$ sudo mount -o bind /dev/ /mnt/arch/dev

Now already to go. Then change the root to the extracted backup.

$ sudo chroot /mnt/arch
$ source ~/.bashrc

Use the last command if you need to reload the environment parameters (such as environment variables).

0 件のコメント:

コメントを投稿