Fedora 操作系统

双系统

uefi+gpt下win10/fedora双系统实现方案

https://blog.csdn.net/sinat_35821976/article/details/79824711

UEFI模式下Win10+Fedora25双系统安装

https://blog.csdn.net/sinat_32079337/article/details/70197454

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源RPMFusion

rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

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缓存

    # yum clean all
    # yum makecache
    

参考:https://www.jianshu.com/p/9d84e0c56731

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值