顯示具有 Debian 標籤的文章。 顯示所有文章
顯示具有 Debian 標籤的文章。 顯示所有文章

2021-09-30

lsblk - 列出 Block 設備

 lsblk

2021-09-29

lsblk - 列出 Block 設備 ( list block devices )


指令及參數 說明
lsblk 列出 Block 設備
lsblk -a Also list empty devices and RAM disk devices.
lsblk -f 列出 Block 設備的 Nane,FSType,Label,UUID,MountPoint 欄
lsblk -m 列出 Block 設備的 Name,Size,Owner,Group,Mode 欄
lsblk -o +UUID 增加 UUID 欄(屬性)
lsblk -O 全部可能欄
lsblk -S SCSI devices only
lsblk -t topology

2021-09-29

Debian 版本代號 / Code Name

 Debian 版本代號 / Code Name

2021-09-29

Debian 的版本及開發代號
版本 代號 釋出日期
unstable Sid
錫德 ( 隔壁男孩,玩具終結者 )
testing bookworm
書蟲 ( 內建手電筒,愛看書的綠書蟲 )
11 bullseye 2021-08-14 靶心(胡迪騎的木馬)(支援到 June, 2026 )
10 buster 2019-07-06 Andy 的寵物狗 (支援到 June, 2024 )
9 stretch 2017-06-17 紫色橡膠章魚 (支援到 June, 2022 )
8 Jessie 2014-04-25 牛女仔翠絲
7 Wheezy 2013-05-04 企鵝哨子
6.0 Squeeze 2011-02-06 三眼外星人 ( Toy Aliens )
5.0 Lenny 2009-02-14 望遠鏡 ( binoculars )
4.0 Etch 2007-04-08 玩具白板 (Etch-a-Sketch)
3.1 Sarge 2005-06-06 綠色塑膠玩具士兵的首領
3.0 Woody 2002-07-19 胡迪牛仔
2.2 Potato 2000-08-15 蛋頭先生 ( Mr. Potato Head )
2.1 Slink 1999-03-09 玩具狗 (彈簧狗) (Slinky Dog)
2.0 Hamm 1998-07-24 火腿(小豬撲滿)
1.3 Bo 1997-07-02 牧羊女(Bo Peep)
1.2 Rex 1996-12-12 暴龍
1.1 Buzz 1996-06-17 太空人 (巴斯光年) (Buzz Lightyear)
 

2021-06-10

dir_colors - 終端機下檔案目錄顯示顏色

2021-06-09 

  • Debian 系的 Linux (Ubuntu、MintLinux、AntiX、MX Linux..) 都没 /etc/DIR_COLORS 這個檔,可以自行建立,或是建立 ~/.dircolors ( Centos 是在 ~/.dir_colors )
  • 輸出預設值可以導入到 ~/.dircolors (注意會覆蓋 ~/.dircolors)
    dircolors --print-database > ~/.dircolors
    
    dircolors -p > ~/.dircolors 

2016-08-07

sudoers

2016-08-07 不能偷懶, 十年了, 還是要記下 Memo.

sudo 權限管理

  • 檔案 - /etc/sudoers
  • 編輯
     sudo visudo 
    • Host alias specification
    • User alias specification
    • Cmnd alias specification(在命令別名加入命令)
       Cmnd_Alias SHUTDOWN_CMDS = /sbin/poweroff, /sbin/halt, /sbin/reboot 
    • User privilege specification
      • 預設 sudo 群組
         %sudo   ALL=(ALL:ALL) ALL 

2016-01-31

Debian jessie mount iPhone

Debian 8.3 jessie mount iPhone

2016-01-31

為了取出照片(Photo) , 只好用 USB 線, 掛載 iPhone.

Step-by-step :
  • Debian 安裝套件
    sudo aptitude install libimobiledevice-utils gvfs-backends
        gvfs-bin gvfs-fuse
    
  • 將 /etc/fuse.conf 內最後一行 #user_allow_other 的註解(#)拿掉
    sudo vim /etc/fuse.conf 
    改成
    user_allow_other

2015-10-22

Debian chromium 安全性更新

Debian chromium 安全性更新

2015-10-22

Debian chromium 安全性更新 -

[20 Oct 2015] DSA-3376 chromium-browser - security update


2015-10-20

瀏覽器(Web Browser) - midori

瀏覽器(Web Browser) - midori

2015-10-20

midori - 可以看 YouTube 影片

----

2015-04-28

debian GDM3 / LightDM 登入後的語系環境

debian GDM3 / LightDM 登入後的語系環境

2015-04-28

GDM3 及 LightDM 1.10.3-3 登入後的語系環境設定改在
~/.xsessionrc
export LANG=zh_TW.utf8
export LANGUAGE=zh_TW 

GDM2 是在 ~/.dmrc, 且有語系選單可選.

----
 

2015-04-23

用 ADSL 網路安裝 debian

用 ADSL 網路安裝 debian


2015-04-23

參數老是忘了, 記錄一下...

下載 ISO 檔, 製作安裝 USB


安裝
  • 加入 pppoe 模組
  • Installer boot menu 畫面按 tab 鍵, 加入 boot args :
    modules=ppp-udeb

參考 - Debian 純淨安裝(一)


2014-11-20

Debian 清除 MBR

2014-11-2

  • 清除硬碟 MBR (只清除程式區域) (bs=446)
    sudo dd if=/dev/zero of=/dev/sdx bs=446 count=1
    
  • 清除硬碟 MBR 及 磁碟分割表 (bs=512)
    dd if=/dev/zero of=/dev/sdx bs=512 count=1
  • /dev/zero 等同於 /dev/null

2012-07-28

OpenMPI 在 debian 區網(LAN)上的安裝設定

2012-07-28

R.J' Wiki : OpenMPI 在 debian 區網(LAN)上的安裝設定

  • 需求
    • host mpislave 名稱寫在 /etc/hosts 中
    • mpislave 這台電腦最好要裝相同版本的 openmpi
    • 要設定 ssh 登入 mpislave 時不需輸入 passwd ( Password-less logins with OpenSSH / SSH 加密遠端登入 )
    • 程式要 copy 到可執行的路徑下, 或設定好路徑
  • 環境
    • 兩台 PC (localhost,mpislave) 都是雙核電腦
    • 兩台都是 debian GNU/Linux 6.0 stable
    • openmpi-bin 版本 1.4.2-4 ( 兩台都要裝 openmpi )
  • 安裝(install)
    sudo aptitude install libopenmpi-dev openmpi-bin openmpi-doc
    

OpenMPI 在 debian 單機上的安裝設定 (OpenMPI On PC)


2012-07-27 - R.J' Wiki : OpenMPI 在 debian 單機上的安裝設定
  • 環境
    • debian GNU/Linux 6.0 stable
    • openmpi-bin 版本 1.4.2-4
    • CPU ( lscpu )
      Architecture:          i686
      CPU op-mode(s):        32-bit, 64-bit
      CPU(s):                2
      Thread(s) per core:    1
      Core(s) per socket:    2
      CPU socket(s):         1
      Vendor ID:             GenuineIntel
      CPU family:            6
      Model:                 23
      Stepping:              10
      
  • 安裝(install)
    sudo aptitude install libopenmpi-dev openmpi-bin openmpi-doc
    

Linux Command : Sort

2012-07-20  R.J' Wiki : Debian (Linux) Command : Sort

sort:排序(對檔案的每一列排序)
用法 : sort [參數] 檔案
參數 	說明
-r 	大→小
-n 	數字
-k n 	依欄位n 

例:

Debian 工具軟體 agave 及 xaos

2012-07-28

agave 配色工具(Colorscheme Designer)
xaos 碎形軟體

agave 配色工具, 在 dokuwiki 改版面是會用到‧


----

2011-09-12

rsnapshot - 簡單備份

rsnapshot - 簡單備份



2011-09-11 modify

A filesystem snapshot utility for making backups of local and remote systems

(rsnapshot is a filesystem snapshot utility.)
(本地端 / 遠端的檔案系統備份工具 。)
  • 安裝
    sudo aptitude install rsnapshot
    
  • 設定配置檔 - /etc/rsnapshot.conf

2011-09-06

Squeeze Xorg 設定

Squeeze Xorg 設定

2011-09-06
  • 先檢查否有xorg.conf設定檔(/etc/X11/xorg.conf)(Squeeze不會自行產生)
    ls -l /etc/X11/xorg.conf
    
  • 檢查 VGA 卡是否找到
    lspci
    
    lspci -v
    
    會出現
    01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 420] (rev a3)
    
  • 不要起動X, 先產生xorg.conf設定檔(/root/xorg.conf.new), copy 到 /etc/X11/xorg.conf

2011-08-23

新安裝 TeamViewer

2011-08-23

前一篇TeamViewer 終於有 linux 版了是在 debian lenny (stable) 環境下安裝, 舊腦電新裝 debian 6.0.2.1 (stable)(squeeze), 看到網頁上的版本TeamViewer deb v5.0.8888 還是與 debian 5.x 同版本, 試一下, 可以在debian stable (squeeze 6.0.2.1)下安裝及正常工作, 記錄一下。


  • 下載 :
    wget http://www.teamviewer.com/download/version_5x/teamviewer_linux.deb
  • 安裝 :
    sudo dpkg -i teamviewer_linux.deb



-

-

2011-06-17

debian apache2 2.2.16 使用者目錄下的 PHP5 關了

2011-06-08

更新到 Squeeze, apache2 的版本 2.2.16-6+squeeze1

使用者目錄下的 PHP5 是改成關閉的, 要改設定來打開,

  • 在 /etc/apache2/mods-available/php5.conf
<ifmodule c="">
<directory home="" public_html="">
php_admin_value engine Off
</directory>
</ifmodule>

  • 讓 user dir 可以使用 php5, 註解如下, 改成
# 2011-06-07 註解後, 讓 user dir 可以使用 php5
# <ifmodule c="">
# <directory home="" public_html="">
# php_admin_value engine Off
# </directory>
# </ifmodule>



最後重起動 apache2
sudo /etc/init.d/apache2 restart



-
-


2010-09-21

debian mount virtaulbox 分享資料夾

2010-09-21

1. 要先裝 build-essential

sudo aptitude install build-essential

2. 下載 VBoxLinuxAdditions

mount VBoxLinuxAdditions 的 iso 檔, 其中有個 VBoxLinuxAdditions.run

3. 用 root 執行 VBoxLinuxAdditions.run

sudo ./VBoxLinuxAdditions.run

4. 重開 guest (debian)

5. 手動掛上分享資料夾 share_vbx 在 /mnt/vbx 掛載點上 (指定uid及gid)

sudo mount.vboxsf -o uid=1000,gid=1000 share_vbx /mnt/vbx


或寫在 /etc/fstab

share_vbx /mnt/vbx vboxsf rw,gid=1000,uid=1000,auto 0 0

注意: 分享資料夾名稱和掛載點不可同名

---

ref - Sharing Folders with VirtualBox

-

2010-07-25

lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking

2010-07-25

Debian Lenny
套件 : lighttpd 1.4.19-5+lenny

安裝完後啟動 lighttpd, 出現錯誤

Starting web server: lighttpd/usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking

在 google 上找到, 要安裝 libfam0 ,
安裝 : $ sudo aptitude install libfam0


再啟動 lighttpd
sudo /etc/init.d/lighttpd force-reload


參考 - lighttpd: Symbol `FamErrlist’ has different size in shared object, consider re-linking

---