Fedora 操做系統

雙系統

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 yum源配置

  1. 下載網易yum源       

到[網易鏡像服務網站,在其首頁上找到並點擊「Fedora使用幫助「,下載repo文件並拷貝到/etc/yum.repos.d/目錄下,進入下載的目錄網站

# cp fedora-updates-163.repo /etc/yum.repos.d/
# cp fedora-163.repo /etc/yum.repos.d/ 
  1. 下載開源軟件庫

下載著名的第三方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
  1. 創建yum緩存code

    # yum clean all
    # yum makecache

參考:https://www.jianshu.com/p/9d84e0c56731htm

fedora普通用戶修改root密碼

fedora的workstation版本的默認密碼是一串亂碼,因此咱們若是須要root權限的話就須要重置root的密碼。

  1. 經過sudo命令得到權限

    sudo su
  2. 輸入咱們當前用戶的密碼

  3. 經過passwd更改root的密碼

    passwd root
  4. 輸入兩次root的密碼

  5. 經過exit退出su界面

原文:https://blog.csdn.net/zmz971751504/article/details/80433767

開機啓動

  1. 查看/usr/lib/systemd/system/rc-local.service

其中ExecStart=/etc/rc.d/rc.local start指向服務文件

  1. 建立/etc/rc.d/rc.local 文件
#!/bin/bash
    sh /usr/share/xx-net/code/default/xx_net.sh
    exit 0
  1. 賦以可執行權限

    #chmod +x /etc/rc.d/rc.local
  2. 而後使用systemd開機自啓動

    #systemctl enable rc-local.service
  3. 設置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
  1. 再使用systemd開機自啓動

    #systemctl enable rc-local.service
  2. 查看狀態

    #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/

設置Fedora合蓋不睡眠

文件 / etc / systemd / logind . conf

HandlePowerKey:按下電源鍵後的動做
HandleSleepKey:按下掛起鍵後的動做
HandleHibernateKey: 按下休眠鍵後的動做
HandleLidSwitch:合上筆記本蓋後待機 

poweroff 關閉
suspend 待機
hibernate 休眠

參考:

http://www.tuicool.com/articles/ZvQRF3

相關文章
相關標籤/搜索