顯示具有 Linux Operation 標籤的文章。 顯示所有文章
顯示具有 Linux Operation 標籤的文章。 顯示所有文章

2018年2月5日

ubuntu 執行 apt full-upgrade 後出現錯誤訊息的處理方法

執行apt full-upgrade後出現以下的訊息,雖然不影響系統,但是每次有image install時都會出現,覺得有點礙眼,所以就找了一下解決的辦法。
WARNING: missing /lib/modules/4.4.0-87-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-87-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_BSmOjQ/lib/modules/4.4.0-87-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_BSmOjQ/lib/modules/4.4.0-87-generic/modules.builtin: No such file or directory
解決的方法有以下兩種:
  1. 直接去刪除 /var/lib/initramfs-tools 目錄下出問題的initramfs腳本,本例是4.4.0-87-generic,所以就直接刪除4.4.0-87-generic這個檔案。
  2. 執行update-initramfs指令,例如: update-initramfs -d -k 4.4.0-87-generic

2010年10月13日

收到附件檔名為winmail.dat檔時的處理方法

我想有在收信的網友們應該對 "winmail.dat" 檔案不陌生吧?當對方是使用outlook寄信時,往往會收到這個附加檔案,但是這個檔案應該怎麼轉換成Linux能處理的檔案類型呢?Linux裡面有一隻小程式名叫 "tnef",利用這隻小程式就可以把原始的附加檔案給還原回來了。
原來winmail.dat的檔案格式是 Transport Neutral Encapsulation Format 。

2008年12月8日

DHCP OPTION 43 for Lightweight Cisco Aironet Access Points Configuration Example

authoritative;
ddns-update-style none;

option time-offset 28800;
option domain-name-servers 140.127.198.1;

#Define Space
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 43 = string;

class "Vendor-Identifier" {
match option vendor-class-identifier;
}

subnet 172.17.0.0 netmask 255.255.255.0 {

option routers 172.17.0.254;
option subnet-mask 255.255.255.0;
option domain-name "AP.Example.com";
option broadcast-address 172.17.0.255;

#Wireless Controler IP Address Configure Option
subclass "Vendor-Identifier" "Airespace.AP1200" {
option vendor-class-identifier "Airespace 1200";
vendor-option-space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address "172.17.10.1";
}

subclass "Vendor-Identifier" "Cisco AP c1500" {
option vendor-class-identifier "Cisco AP c1500";
vendor-option-space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address "172.17.10.2";
}

subclass "Vendor-Identifier" "Cisco AP c1200" {
option vendor-class-identifier "Cisco AP c1200";
vendor-option-space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address "172.17.10.3";
}

range dynamic-bootp 172.17.0.1 172.17.0.200;

default-lease-time 43200;
max-lease-time 86400;
}

2007年7月20日

$ setterm -dump 3 -----> 錄 tty3 的東東 , 產生 screen.dump
$ setterm -append -----> 錄 目前 tty 加在 screen.dump 的尾巴
$ setterm -h | less -----> 看看 它的功能

我們為別人也為自己找到解決問題的方法,真的好高興,沒有白努力!
下面是我自己找到的方法:原來在Linux下拍下tty畫面也很簡單
因為我預設的畫面是25X80

dd if=/dev/tty1 of=capture_filename bs=2000 count=1
vi capture_filename 即可看到剛才tty1上的螢幕內容

如果是
dd if=/dev/tty1 of=capture_filename bs=4004 count=1
vi capture_filename 可看到剛才tty1上的螢幕內容及色彩編碼
結構是
前四個字元值 列數 每列字元數 游標位置列 游標水平位置
後面則是色彩字元前文字字元後的雙字元結構
只要 cat capture_filename > /dev/tty3
就可把剛才抓下的畫面秀在tty3上面,好玩吧!


精選文章

Ubuntu 20.04 LTS VM syslog 出現 multipathd 錯誤時的處置措施

在 VM 上安裝完 Ubuntu 20.04 LTS 版本後在一次例行性檢查中發現 syslog 中發現一直跳出 multipathd 的錯誤,如下圖 這問題產生的原因是 ESXi 不會產生 udev 必要的資訊,所以 udev 就無法產生出相對應的 /dev/disk/by-i...