uefi+gpt下win10/fedora雙系統實現方案html
https://blog.csdn.net/sinat_35821976/article/details/79824711redis
UEFI模式下Win10+Fedora25雙系統安裝緩存
https://blog.csdn.net/sinat_32079337/article/details/70197454bash
到[網易鏡像服務網站,在其首頁上找到並點擊「Fedora使用幫助「,下載repo文件並拷貝到/etc/yum.repos.d/目錄下,進入下載的目錄網站
# cp fedora-updates-163.repo /etc/yum.repos.d/ # cp fedora-163.repo /etc/yum.repos.d/
下載著名的第三方yum源RPMFusionui
rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm.net
rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpmhibernate
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
創建yum緩存code
# yum clean all # yum makecache
參考:https://www.jianshu.com/p/9d84e0c56731htm
fedora的workstation版本的默認密碼是一串亂碼,因此咱們若是須要root權限的話就須要重置root的密碼。
經過sudo命令得到權限
sudo su
輸入咱們當前用戶的密碼
經過passwd更改root的密碼
passwd root
輸入兩次root的密碼
經過exit退出su界面
原文:https://blog.csdn.net/zmz971751504/article/details/80433767
其中ExecStart=/etc/rc.d/rc.local start指向服務文件
#!/bin/bash sh /usr/share/xx-net/code/default/xx_net.sh exit 0
賦以可執行權限
#chmod +x /etc/rc.d/rc.local
而後使用systemd開機自啓動
#systemctl enable rc-local.service
設置systemd須要在多用戶啓動時仍是圖形啓動時自啓動這個腳本
編輯/usr/lib/systemd/system/rc-local.service,加入Install部分
# This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # This unit gets pulled automatically into multi-user.target by # systemd-rc-local-generator if /etc/rc.d/rc.local is executable. [Unit] Description=/etc/rc.d/rc.local Compatibility ConditionFileIsExecutable=/etc/rc.d/rc.local After=network.target [Service] Type=forking ExecStart=/etc/rc.d/rc.local start TimeoutSec=0 RemainAfterExit=yes [Install] WantedBy=multi-user.target
再使用systemd開機自啓動
#systemctl enable rc-local.service
查看狀態
#systemctl status rc-local.service
參考:
http://blog.csdn.net/ztguang/article/details/52176067 http://www.edward-han.com/341.html https://semsevens.com/2016/03/08/make-startup-script-in-fedora/ https://www.m00nie.com/2012/07/check-service-is-running-with-systemctl-and-start-it-if-stopped-mail/
文件 / etc / systemd / logind . conf
HandlePowerKey:按下電源鍵後的動做 HandleSleepKey:按下掛起鍵後的動做 HandleHibernateKey: 按下休眠鍵後的動做 HandleLidSwitch:合上筆記本蓋後待機 poweroff 關閉 suspend 待機 hibernate 休眠
參考: