PIXNET Logo登入

Mint Fans

跳到主文

歡迎光臨 Mint Fans 的小天地

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 1月 02 週二 201807:15
  • Kali Linux 2016.2 / 2018.2 (2020 重製版)

undefined
live-boot 參數添 locale 可修改 Live 系統語言:
日文 locale=ja_JP.UTF-8
英文 locale=en_US.UTF-8
繁中 locale=zh_TW.UTF-8
簡中 locale=zh_CN.UTF-8
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(149)

  • 個人分類:Ubuntu/Debian
▲top
  • 7月 03 週日 201606:54
  • Debian / LMDE 安裝 compiz

undefined
Ubuntu 的安裝方法
# apt-get install compiz compizconfig-settings-manager compiz-plugins
分析依賴:
===============================
compiz
===============================
........compiz-core
........compiz-plugins-default
................libpng12-0
................compiz-core
................libdecoration0
........compiz-gnome
................libdecoration0
................libcompizconfig0
........................libprotobuf9v5
................compiz-plugins-default
........................libpng12-0
........................compiz-core
........................libdecoration0
................gnome-settings-daemon-schemas
................libmetacity-private3a
........................metacity-common
................session-migration
===============================
compizconfig-settings-manager
===============================
........python-compizconfig
................libcompizconfig0
........................libprotobuf9v5
===============================
compiz-plugins
===============================
........compiz-core
........compiz-plugins-default
................libdecoration0
................compiz-core
........libdecoration0
Debian / LMDE 安裝順序「以基於sid為例」:
# compiz-core
wget http://mirrors.kernel.org/ubuntu/pool/main/c/compiz/compiz-core_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i compiz-core_*.deb
# libdecoration0
wget http://mirrors.kernel.org/ubuntu/pool/main/c/compiz/libdecoration0_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i libdecoration0_*.deb
# libpng12-0
wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
dpkg -i libpng12-0_*.deb
# compiz-plugins-default
wget http://mirrors.kernel.org/ubuntu/pool/main/c/compiz/compiz-plugins-default_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i compiz-plugins-default_*.deb
# libprotobuf9v5
# wget http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf/libprotobuf9v5_2.6.1-1.3_amd64.deb
# dpkg -i libprotobuf9v5_*.deb
apt-get install libprotobuf9v5
# libcompizconfig0
wget http://mirrors.kernel.org/ubuntu/pool/main/c/compiz/libcompizconfig0_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i libcompizconfig0_*.deb
# metacity-common
wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/m/metacity/metacity-common_3.18.4-3_all.deb
dpkg -i metacity-common_*.deb
apt-get -f install -y
# libmetacity-private3a
wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/m/metacity/libmetacity-private3a_3.18.4-3_amd64.deb
dpkg -i libmetacity-private3a_*.deb
# session-migration
wget http://mirrors.kernel.org/ubuntu/pool/main/s/session-migration/session-migration_0.2.3_amd64.deb
dpkg -i session-migration_*.deb
# gnome-settings-daemon-schemas
wget http://mirrors.kernel.org/ubuntu/pool/main/g/gnome-settings-daemon/gnome-settings-daemon-schemas_3.18.2-0ubuntu3_all.deb
dpkg -i gnome-settings-daemon-schemas_*.deb
# compiz-gnome
wget http://mirrors.kernel.org/ubuntu/pool/main/c/compiz/compiz-gnome_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i compiz-gnome_*.deb
apt-get -f install -y
# compiz
wget http://mirrors.kernel.org/ubuntu/pool/main/c/compiz/compiz_0.9.12.2+16.04.20160415-0ubuntu1_all.deb
dpkg -i compiz_*.deb
# python-compizconfig
wget http://mirrors.kernel.org/ubuntu/pool/universe/c/compiz/python-compizconfig_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i python-compizconfig_*.deb
# compizconfig-settings-manager
wget http://mirrors.kernel.org/ubuntu/pool/universe/c/compiz/compizconfig-settings-manager_0.9.12.2+16.04.20160415-0ubuntu1_all.deb
dpkg -i compizconfig-settings-manager_*.deb
# compiz-plugins
wget http://mirrors.kernel.org/ubuntu/pool/universe/c/compiz/compiz-plugins_0.9.12.2+16.04.20160415-0ubuntu1_amd64.deb
dpkg -i compiz-plugins_*.deb
### LMDE 設定腳本
wget https://github.com/Mint-Fans/linux-package/raw/debian/compiz-settings.tar.gz
tar -zxvf compiz-settings.tar.gz
./compiz-settings
###################################
Compiz 自動安裝腳本
###################################
$ sudo su
# wget https://github.com/Mint-Fans/linux-package/raw/debian/compiz-install
# chmod +x
# ./compiz-install
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(30)

  • 個人分類:Ubuntu/Debian
▲top
  • 5月 22 週日 201620:47
  • Debian / Ubuntu 編譯官方版核心

====================
編譯 Ubuntu 官方版核心
====================
Linux Mint 18 (Ubuntu xenial)
編譯Linux核心安裝所需的套件
$ sudo apt-get install git fakeroot build-essential libncurses5-dev xz-utils kernel-package libssl-dev zlib1g-dev debhelper kernel-wedge gawk
下載原始碼與補丁
$ wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_4.4.0.orig.tar.gz
$ wget http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_4.4.0-21.37.diff.gz
解壓縮
$ tar xvf linux_4.4.0.orig.tar.gz
$ gunzip linux_4.4.0-21.37.diff.gz
Ubuntu 官方版原始碼補丁
$ mv linux-4.4 linux-4.4.0
$ patch -p0 -i linux_4.4.0-21.37.diff
設定檔案權限
$ cd linux-4.4.0
$ chmod a+x debian/rules
$ chmod a+x debian/scripts/*
$ chmod a+x debian/scripts/misc/*
設定核心功能與驅動程式
設定方法同前
$ fakeroot debian/rules clean
$ fakeroot debian/rules editconfigs
編譯核心
$ fakeroot debian/rules clean
$ fakeroot debian/rules binary-headers binary-generic
只須保留 linux-image-4.4.0-21-generic 和 linux-image-extra-4.4.0-21-generic 套件
如系統核心版號與編譯核心的版號一樣,必須使用Live系統或電腦上其他Linux以chroot方式替換.
替換核心
# apt-get --purge remove linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
將套件複製到 chroot系統/tmp
# cd /tmp
# dpkg -i linux-image-4.4.0-21-generic_4.4.0-21.37_amd64.deb
# dpkg -i linux-image-extra-4.4.0-21-generic_4.4.0-21.37_amd64.deb
編譯全部套件
$ debuild -e DEBIAN_KERNEL_JOBS=$(nproc)
====================
編譯 Debian 官方版核心
====================
LMDE (Debian sid)
編譯Linux核心安裝所需的套件
$ sudo apt-get install git fakeroot build-essential libncurses5-dev xz-utils kernel-package libssl-dev zlib1g-dev debhelper kernel-wedge gawk rsync quilt devscripts
下載Debian官方版原始碼
$ wget http://http.debian.net/debian/pool/main/l/linux/linux_4.4.6.orig.tar.xz
解壓縮原始碼
$ tar Jxvf linux_4.4.6.orig.tar.xz
$ cd linux-4.4.6
下載Debian官版補丁
$ wget http://http.debian.net/debian/pool/main/l/linux/linux_4.4.6-1.debian.tar.xz
$ tar Jxvf linux_4.4.6-1.debian.tar.xz
---- 編譯全部套件
$ make -f debian/rules clean
$ debuild -e DEBIAN_KERNEL_JOBS=$(nproc)
---- 編譯核心套件
套用Debian原始碼補丁
$ make -f debian/rules clean
$ make -f debian/rules orig
建立原始碼編譯目錄
$ make -f debian/rules source
編譯Linux核心並打包deb
$ fakeroot make -j2 -f debian/rules.gen binary-arch_amd64_none_amd64
保留 linux-image-4.4.0-1-amd64_4.4.6-1_amd64.deb 即可
替換核心
$ sudo apt-get --purge remove linux-image-4.4.0-1-amd64
將套件複製到 chroot系統/tmp
$ cd /tmp
$ sudo dpkg -i linux-image-4.4.0-1-amd64_4.4.6-1_amd64.deb
編譯錯誤處理
錯誤訊息: recipe for target 'debian/stamps/build_amd64_none_amd64' failed
$ ln -s 原始碼路徑/linux-4.4.6/debian/build/build_amd64_none_amd64 原始碼路徑/linux-4.4.6/debian/stamps/build_amd64_none_amd64
手動修改自訂核心功能
------------------------------------
linux-4.5.1/debian/config/kernelarch-x86/config-arch-64
多核心支援
# CONFIG_MAXSMP is not set 改為 CONFIG_MAXSMP=y
CONFIG_NR_CPUS=512 改為 CONFIG_NR_CPUS=8192
file: arch/x86/Kconfig 項目底下添加
CONFIG_CPUMASK_OFFSTACK=y
linux-4.5.1/debian/config/kernelarch-x86/config
### 筆電使用CONSERVATIVE 桌上型不用改
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y 改為 # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set 改為 CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y
VT-X 支援
# CONFIG_KVM_MMU_AUDIT is not set 改為 CONFIG_KVM_MMU_AUDIT=y
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set 改為 CONFIG_PARAVIRT_TIME_ACCOUNTING=y
CONFIG_NODES_SHIFT=6 改為 CONFIG_NODES_SHIFT=10
linux-4.5.1/debian/config/config
### CPU 頻率 250Hz To 1000Hz
CONFIG_HZ_250=y 改為 # CONFIG_HZ_250 is not set
# CONFIG_HZ_1000 is not set 改為 CONFIG_HZ_1000=y
### CPU 變頻功能
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y 改為 # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_STAT=m 改為 CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m 改為 CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=m 改為 CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m 改為 CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
### 檔案格式支援
CONFIG_EXT4_FS=m 改為 CONFIG_EXT4_FS=y
CONFIG_VFAT_FS=m 改為 CONFIG_VFAT_FS=y
找尋 file: fs/fat/Kconfig
底下添加
CONFIG_FAT_FS=y
找尋 file: fs/jbd2/Kconfig
底下添加
CONFIG_JBD2=y
找尋 file: fs/Kconfig
底下添加
CONFIG_FS_MBCACHE=y
# CONFIG_NTFS_RW is not set 改為 CONFIG_NTFS_RW=y
# CONFIG_IKCONFIG is not set 改為 CONFIG_IKCONFIG=m
CONFIG_LOG_BUF_SHIFT=17 改為 CONFIG_LOG_BUF_SHIFT=15
CONFIG_CRC16=m 改為 CONFIG_CRC16=y
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(170)

  • 個人分類:Ubuntu/Debian
▲top
  • 4月 02 週六 201613:09
  • 開機不啟動桌面環境直接執行遊戲或程式

測試環境: Linux Mint 18 (Ubuntu 16.04) / LMDE sid+Sarah (Debian sid)
顯示管理器 MDM
開機不啟動桌面, 直接啟動 WINE 世紀帝國2 HD
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(394)

  • 個人分類:Ubuntu/Debian
▲top
  • 3月 30 週三 201621:35
  • 不安裝顯示管理器自動登入桌面

不安裝顯示管理器自動登入桌面
Ubuntu / Debian / Arch Linux 通用
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(460)

  • 個人分類:Ubuntu/Debian
▲top
  • 3月 30 週三 201620:56
  • Linux 終端機提示字元色彩與修改

Ubuntu / Debian / Arch linux 通用
$ sudo leafpad /etc/bash.bashrc
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(2,743)

  • 個人分類:Ubuntu/Debian
▲top
  • 3月 30 週三 201620:52
  • Mint Plymouth 主題

undefined
Mint Plymouth 主題
Maya loga 改 (進度條版本)
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(13)

  • 個人分類:Ubuntu/Debian
▲top
  • 3月 30 週三 201615:55
  • WINE安裝[Ubuntu/Debian]

#######################
安裝 wine
#######################
如果有關閉自動安裝推薦套件,先移除設定檔
sudo rm /etc/apt/apt.conf
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(475)

  • 個人分類:Ubuntu/Debian
▲top
  • 3月 30 週三 201615:41
  • 該死Ubuntu之NV大黃蜂沒一版能用

該死Ubuntu之NV大黃蜂沒一版能用
Ubuntu 16.04 / Linux Mint 18
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(93)

  • 個人分類:Ubuntu/Debian
▲top
  • 3月 30 週三 201615:36
  • USB/掛載裝置卸載與斷電

查看裝置掛載
$ df
/dev/sdb1        999500   929012    70488   93% /media/mint/USB
(繼續閱讀...)
文章標籤

Mint Fans 發表在 痞客邦 留言(0) 人氣(115)

  • 個人分類:Ubuntu/Debian
▲top
123»

個人資訊

Mint Fans
暱稱:
Mint Fans
分類:
不設分類
好友:
累積中
地區:

文章分類

  • KALI (1)
  • ALL (3)
  • MATE (1)
  • Cinnamon (1)
  • XFCE (2)
  • Arch Linux (3)
  • Ubuntu/Debian (21)
  • 未分類文章 (1)

最新文章

  • Kali Linux 2020.2
  • NVIDIA LTS Driver
  • Fedora 31 Mint Style
  • openSUSE Tumbleweed / Fedora 27 Mint Style
  • Kali Linux 2016.2 / 2018.2 (2020 重製版)
  • Debian / LMDE 安裝 compiz
  • 「Adobe Flash Player 官方版」更新腳本
  • 「Mozilla Firefox 官方版」更新腳本
  • Debian / Ubuntu 編譯官方版核心
  • 開機不啟動桌面環境直接執行遊戲或程式

文章精選

文章搜尋

熱門文章

  • (118)使用Debootstrap 建立 LMDE XFCE
  • (110)使用Debootstrap 建立 LMDE Mate
  • (354)手工打造自己的 Debian/Ubuntu LiveCD
  • (3,956)fcitx 精簡安裝

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣:

動態訂閱