http://linux.vbird.org/linux_basic/0540kernel.php
http://elrepo.org/tiki/tiki-index.php
http://elrepo.org/tiki/kernel-ml
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org (external link)
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml
個人在學習Linux過程當中的個人筆記,提供個人及有需要的人查閱,若有錯誤歡迎提供指正,謝謝。 This Blog recorded notes about my learning Linux and provides myself and others reference. If there are any incorrect information, welcome to leave a message to correct me, Thanks.
2017年4月12日 星期三
UEFI多重開機
http://www.rodsbooks.com/refind/
UEFI不支持MBR開機 (只能用GPT)
GPT也不能再Legacy BIOS下開機了
GPT可支持2TB以上
UEFI firmware有boot manager
可在linux下用efibootmgr編輯
windows下用bcdedit編輯
windows下可用diskpart切換MBR & GPT
https://zh.wikipedia.org/wiki/%E4%B8%BB%E5%BC%95%E5%AF%BC%E8%AE%B0%E5%BD%95/
安裝時是UEFI mode就會被用GPT切割硬碟
安裝時是Legacy就是用MBR
UEFI mode安裝完Ubuntu或是RHEL,grub會安裝到 UEFI SYSTEM PARTITION的/boot/efi
Legacy mode安裝完Ubuntu或是RHEL,會安裝grub到MBR (會scan可開機partition在menu)
UEFI不支持MBR開機 (只能用GPT)
GPT也不能再Legacy BIOS下開機了
GPT可支持2TB以上
UEFI firmware有boot manager
可在linux下用efibootmgr編輯
windows下用bcdedit編輯
windows下可用diskpart切換MBR & GPT
https://zh.wikipedia.org/wiki/%E4%B8%BB%E5%BC%95%E5%AF%BC%E8%AE%B0%E5%BD%95/
安裝時是UEFI mode就會被用GPT切割硬碟
安裝時是Legacy就是用MBR
UEFI mode安裝完Ubuntu或是RHEL,grub會安裝到 UEFI SYSTEM PARTITION的/boot/efi
Legacy mode安裝完Ubuntu或是RHEL,會安裝grub到MBR (會scan可開機partition在menu)
Edit EFI boot entries in Linux
The utility name is efibootmgr
https://wiki.gentoo.org/wiki/Efibootmgr
https://wiki.gentoo.org/wiki/Efibootmgr
2017年4月10日 星期一
Install fio in Ubuntu 16.04
Download the fio from https://github.com/axboe/fio
unzip the fio-master.zip
# apt install gcc
# apt install zlib1g-dev
# apt install libaio1 libaio-dev
goto the unzipped fio-master folder
# ./configure
# make
# sudo make install
unzip the fio-master.zip
# apt install gcc
# apt install zlib1g-dev
# apt install libaio1 libaio-dev
goto the unzipped fio-master folder
# ./configure
# make
# sudo make install
2017年3月24日 星期五
ipmi on ubuntu
step1) 安裝OpenIPMI與ipmitool
# sudo apt-get install openipmi
# sudo apt-get install ipmitool
# sudo apt-get install openipmi
# sudo apt-get install ipmitool
step2) 載入IPMI
# modprobe ipmi_msghandler
# modprobe ipmi_devintf
# modprobe ipmi_si
# modprobe ipmi_msghandler
# modprobe ipmi_devintf
# modprobe ipmi_si
step3) 看自己local端的BMC資訊
# ipmitool lan print
# ipmitool lan print
2017年3月23日 星期四
ubuntu server 16.04.02 install ubuntu-desktop
Add cdrom as a package source (ubuntu-desktop is not included, just add a note)
(Insert the cdrom into system)
# sudo -i
# mount /dev/cdrom /media/cdrom
# apt-cdrom -m -d=/media/cdrom add
Set the LAN setting
# ifconfig -a
Remember the interface name you want to config (enp24s0 for example)
Edit the file /etc/network/interfaces
Add following two line
auto enp24s0
iface enp24s0 inet dhcp
restart the networking service
# systemctl restart networking.service
Add Proxy setting to apt
Add a line in /etc/apt/apt.conf (if the file not exist, create a new one)
Acquire::http::Proxy "http://username:password@proxy.hinet.net:80";
# apt-get update
# apt install --no-install-recommends ubuntu-desktop
# apt-get install gnome-terminal
Allow root login through remote ssh
Edit the file /etc/ssh/sshd_config
PermitRootLogin prohibit-password
to
PermitRootLogin yes
Then restart the sshd service
# systemctl restart sshd.service
Enable sshd
# sysv-rc-conf sshd on
(Insert the cdrom into system)
# sudo -i
# mount /dev/cdrom /media/cdrom
# apt-cdrom -m -d=/media/cdrom add
Set the LAN setting
# ifconfig -a
Remember the interface name you want to config (enp24s0 for example)
Edit the file /etc/network/interfaces
Add following two line
auto enp24s0
iface enp24s0 inet dhcp
restart the networking service
# systemctl restart networking.service
Add Proxy setting to apt
Add a line in /etc/apt/apt.conf (if the file not exist, create a new one)
Acquire::http::Proxy "http://username:password@proxy.hinet.net:80";
# apt-get update
# apt install --no-install-recommends ubuntu-desktop
# apt-get install gnome-terminal
Allow root login through remote ssh
Edit the file /etc/ssh/sshd_config
PermitRootLogin prohibit-password
to
PermitRootLogin yes
Then restart the sshd service
# systemctl restart sshd.service
Enable sshd
# sysv-rc-conf sshd on
訂閱:
文章 (Atom)