GNU GRUB(GRUB)是一个来自 GNU 项目的启动引导程序。它允许用户在计算机内同时拥有多个操作系统,并在计算机启动时选择希望运行的操作系统。
今年 6 月,由于上游 GRUB 引导程序在发布 2.06 版本时禁用 OS_Prober 后所带来的一些变化,Ubuntu 的开发者正在考虑如何在 Ubuntu 22.04 LTS 中管理双引导/多引导方案。
Ubuntu 依靠 OS-Prober 来检查其他已安装的操作系统,以便能够方便地在 GRUB 引导程序中显示它们。这意味着随着 Ubuntu 22.04 转向 GRUB 2.06,非 UEFI BIOS 用户不能再启动任何其他操作系统,而基于 UEFI 的系统如果通过 UEFI 引导程序,则仍然可以启动其他操作系统。这个问题主要是会阻碍那些仍然运行传统 BIOS 启动程序的用户使用已安装的系统。
默认禁用OS-Prober旨在通过操作系统检测功能解决潜在的安全问题,因为它在检查其他操作系统时,会检查并挂载系统上的所有分区,如果利用文件系统的漏洞,启用该功能会引发一个能被黑客利用的安全问题。
因此,面对安全和用户体验这个两难的选择下,Ubuntu 开发者也不得不考虑是否要重新启用 OS-Prober。
因为 OS_Prober 存在潜在安全风险,所以重新启用它并不是一个理想的解决方案,目前 Ubuntu 团队内部也在仔细思考这个问题,但不排除这个可能性。
Ubuntu 团队考虑的其他解决方案包括:创建一个新的 GRUB 模块,该模块只在用户查找系统时才执行 OS-Prober 的一些功能,用于增加一个链式启动选项专门处理用户需要启动 Windows 的需求;亦或是仅在安装系统时运行 OS-Prober,然后依靠该信息进行后续启动;最后一种可能性是,从以前的 Ubuntu 版本升级到 Ubuntu 22.04 时启用 OS-Prober。
我们还不清楚 Ubuntu 团队在上述选择中最终会如何进行抉择,在 Ubuntu 22.04 正式推出之前还有充足的考虑时间,可以访问 ubuntu-devel 了解更多详情。我们也将关注 GRUB 上游在此期间是否也会推出相应的解决方案。
layout: post
title: 
date: 
tags: 
author: 丘海东
comments: 
categories:
怎么都不行
用octopress3.0创建theme blog,可能因为
一直卡在那里,一动不动
bundle 和 bundle install 也是一动不动
这是没有成功的,后面会报错
重复,直到ok
正常来说,rvm安装ruby就行了,如果还不行,再用apt ubuntu官方源安装一次
sudo apt install ruby
强迫症发作
Ubuntu:20.04  21.10  12.04  16.04  18.04
Ocotpress:2.0  3.0  , jekyll:theme
折腾了好几天,没日没夜,不眠不休,吃喝不管,性格使然
好了,好好吃个早餐,睡觉
买票,回家  过年  又一年
rvm use 2.7.0  
_config.yml
gemfile
gemfile.lock
一些问题看手机图片,在空间
原博内容:
rvm安装低版本ruby报错Error running ‘requirements_debian_libs_install libssl1.0-dev’,Requirements installation failed with status: 100.
由于参与的一个项目在用2.3.1版本的ruby,所以想用rvm来安装ruby2.3.1。运行报错,需要libssl1.0-dev.
解决办法:
sudo gedit /etc/apt/sources.list
在/etc/apt/sources.list 中添加下载源 deb http://security.ubuntu.com/ubuntu bionic-security main。保存退出。
sudo apt update
apt-cache policy libssl1.0-dev  #(这步我没有做,先不做)
然后再安装rvm install 2.2.6
————————————————
版权声明:本文为CSDN博主「会打滚的咸鱼」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_41988167/article/details/106202868
很多以前做过的事,细节步骤都不记得了,多写字吧,详细地记录下来,以后也有个回忆。
rake new_post["file name"] 后自动打开博客文件
编辑Rakefile文件,上面位置,添加定义:
	editor = "gedit"
然后在new_post命令后面添加:
if #{editor}
  system "#{editor} #{filename}"
end
将图片放到octopress/source/images/下,然后在Markdown文件中可直接引用,用法:


c++
int main()
{
	cout<<"hello world"<<endl;
};
rvm install 2.3.1  
失败
.
cd octopress
.
ruby --version
.
rvm use 2.7.0
 	Required ruby-2.7.0 is not installed.
 	To install do: 'rvm install "ruby-2.7.0"'  
.
dong@Ubuntu:~/octopress$ rvm install "ruby-2.7.0"  
.
dong@Ubuntu:~/octopress$ ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
.
dong@Ubuntu:~/octopress$ rake generate
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
.
dong@Ubuntu:~/octopress$ bundle install
Traceback (most recent call last):
4: from /home/dong/.rvm/rubies/ruby-2.7.0/bin/ruby_executable_hooks:22:in `<main>'
3: from /home/dong/.rvm/rubies/ruby-2.7.0/bin/ruby_executable_hooks:22:in `eval'
2: from /home/dong/.rvm/rubies/ruby-2.7.0/bin/bundle:23:in `<main>'
1: from /home/dong/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems.rb:294:in `activate_bin_path'
/home/dong/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/dong/octopress/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
.
dong@Ubuntu:~/octopress$ gem install bundler:1.17.3
Fetching bundler-1.17.3.gem
Successfully installed bundler-1.17.3
Parsing documentation for bundler-1.17.3
Installing ri documentation for bundler-1.17.3
Done installing documentation for bundler after 3 seconds
1 gem installed
.
dong@Ubuntu:~/octopress$ rake generate
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
.
dong@Ubuntu:~/octopress$ bundle install
.
dong@Ubuntu:~/octopress$ rake generate
rake aborted!
Gem::LoadError: You have already activated rake 13.0.1, but your Gemfile requires rake 10.5.0. Prepending `bundle exec` to your command may solve this.
/home/dong/octopress/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)
提示失败,
但是可以加上bundle exec
dong@Ubuntu:~/octopress$bundle exec rake generate
很多警告,但是成了,
下面也一样:
bundle exec rake preview