2014年4月1日 星期二

3/28

忘記密碼解決法

下面介紹一個在所有版本 linux的grub上均可以使用的方法:
1、在Grub的引導裝載程序菜單上,選擇你要進入的條目,鍵入"e"來進入編輯模式。
2、在第二行(類似於kernel /vmlinuz-2.6.15 ro root=/dev/hda2 ),鍵入"e"進入編輯模式;
3、在句末加上"init=/bin/bash",回車;
 4、按“b”啟動系統。 這樣我們即可獲得一個bash的shell。
進入shell後,根分區的掛載模式默認是只讀,我們要將其改為可寫,否則不能更改root密碼:

mount -no remount,rw /
passwd root
sync
mount -no remount,ro /

reboot



多媒體

Adobe Flash Player

在 /etc/apt/sources.list 新增一列:

    # nano /etc/apt/sources.list

內容為:

    deb ftp://ftp.debian.org/debian stable main contrib non-free

然後,
    # sudo apt-get update

    # apt-get install flashplugin-nonfree

 "apt-get update" 更新最新的套件資訊
 "apt-get upgrade" 更新所有有新版本的套件




排版

Scribus, http://www.scribus.net

維基百科條目 教學文章 Scribus數位排版(pdf 48 面)

在 /etc/apt/sources.list 新增

    #  nano /etc/apt/sources.list

deb http://debian.scribus.net/debian/ stable main non-free contrib
deb http://debian.tagancha.org/debian/ stable main non-free contrib
先加入識別碼

    # gpg --keyserver wwwkeys.pgp.net --recv-keys EEF818CF
    # gpg --armor --export EEF818CF | sudo apt-key add -

然後,從終端機安裝

    #  apt-get update

    #  apt-get install scribus scribus-doc

沒有留言:

張貼留言