1
| |
提示错误:
1 2 3 4 5 | |
Error running ‘__rvm_make -j4’ ruby 2.6.9 Ubuntu 22.04
解决:
1 2 3 | |
g
1
| |
提示错误:
1 2 3 4 5 | |
Error running ‘__rvm_make -j4’ ruby 2.6.9 Ubuntu 22.04
解决:
1 2 3 | |
Ubuntu24.04安装
以后重装系统,记得把octopress、haydnyau、ssh2、ssh3文件夹、.gitconfig,打包备份,并上传网盘。
依赖:python2,ruby2.6.9
1 2 | |
然后配置git,把之前的octopress-haydnyau和ssh2-ssh3文件夹和.gitconfig文件复制到主目录,改ssh文件夹名
1
| |
ok
1 2 3 4 | |
没有
到rvm官网(下面的命令可能有更新,看官网)
1
| |
提示:
1 2 | |
1 2 3 4 | |
提示:
1 2 | |
1 2 3 4 5 6 7 8 | |
1 2 | |
提示:
1
| |
解决:
Failed to connect to raw.githubusercontent.com
到这个网址:https://www.ipaddress.com/,输入:raw.githubusercontent.com,查询,得到IP地址,选择其中一个或多个,修改本地HOSTS:Ubuntu下打开/etc/hosts,添加 IP地址:185.199.108.133 raw.githubusercontent.com,重试,不行就重启再试。
1
| |
提示:
1 2 3 | |
1
| |
重启命令行
1 2 | |
提示错误:
1 2 3 4 5 | |
解决:
Error running ‘__rvm_make -j4’ ruby 2.6.9 Ubuntu 22.04
1 2 3 | |
1
| |
1
| |
把 /octopress/Gemfile 文件里的源改回最初的:source "https://rubygems.org/"
1 2 | |
更改:You can use the sass-convert command to automatically fix most cases.
1 2 | |
之后就都是常规操作。
1
| |
1 2 | |
1
| |
确保安装正确
安装好Octopress 2.0之后,其他的依赖都安装好了,只需要:
1
| |
确保安装正确,成功,曾试过因为系统自带了ruby3.0,导致ruby版本不对,失败的
好了。
看到张朝阳的物理课,查了下。
张朝阳,清华物理系,麻省理工博士,创立搜狐,中国互联网教父,位列中国富豪榜。
年少得志,生活潇洒风流,商海浮沉,抑郁过几年。
2021年末,57岁,讲授物理课,各种深奥晦涩的知识。
很多人三十来岁,已经连初中数学都不记得了。
他还能讲授深奥的物理和数学知识,在讲台上意气风发。
抑郁时,他从佛学明白: 心有所依处。
原文
列出可用的ruby版本以安装类型:
1
| |
然后从已知的列表中安装,输入:
1
| |
然后使用你已经安装的ruby版本:
1
| |
你可以使一个特定的ruby版本成为你的默认系统版本:
1
| |
要删除gem版本,保持gemsets:
1
| |
删除ruby等:
1
| |
要了解你的ruby环境以及它们的安装位置/别名:
1
| |
octopress-2.0,ruby-2.3.1,ubuntu20.04,可以运行(修改这里后)
octopress-2.0,ruby-2.5.9,ubuntu20.04,可以运行(修改这里后)
octopress-2.0,ruby-2.6.9,ubuntu20.04,可以运行(修改这里后)
octopress-3.0,ruby-2.5.9,ubuntu20.04,可以运行(無需修改)
octopress-3.0,ruby-2.6.9,ubuntu20.04,可以运行(無需修改)
換了版本要重新安裝octopress3.0:
1
| |
octopress-2.0-3.0,ruby-3.1.1,ubuntu20.04,都無法运行。
I just installed and Compass & Sass as described here.
I got the following warning when I ran compass watch for the first time. What exactly does it mean? What should I do to fix it, do I need to do anything?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
To fix the error message, just change the line 87 from your “_deprecated-support.scss” file to this:
1 2 3 4 5 6 7 8 9 10 11 | |
The file can be found at your /home/dong/.rvm/gems/ruby-2.3.1/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss
2022年3月21日下午,一架飞机在广西梧州滕县失事,132人,惨烈。
飞行数据显示,MU5735航班从昆明机场起飞后,一直在约8869米高度进行巡航。下午2点19分,飞机突然从巡航高度下降,同时飞行速度从约每小时845公里开始下降。机头垂直向下,2点21分,MU5735航班丢失ADS-B雷达信号,同地面失联。
人生无常,真的是,你永远不知道明天和意外谁先到来。
生死面前,都是小事。
珍惜。
有時會出現標題的錯誤,ssh無法連接服務器,試過網上的幾種方法都不行,其實是國內網絡經常封鎖github,過段時間就好了。
update:
GitGuardian检测到您的GitHub帐户中暴露了以下OpenSSH私钥。
GitGuardian has detected the following OpenSSH Private Key exposed within your GitHub account.
新建key即可。
1 2 3 4 5 6 7 8 9 10 11 | |
首先创建source/javascripts/top.js,添加如下代码实现滑动返回顶部效果:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
创建source/_includes/custom/totop.html,设置返回顶部按钮样式和位置
其中的width、height、right、bottom为图片在网页中的位置,可根据图片大小自行设定,示例代码如下:
1 2 3 4 5 6 | |
找到自己喜爱的返回按钮图片,命名为top.png后添加到source/images目录中(或修改totop.html中图片的路径),文件名和totop.html中的一致就可以了,可以自己命名。
然后把totop.html 引入到文件中,考虑到进到具体每一篇blog里面也有这个功能,我们把这个文件在foot.html中引入,修改:octopress/source/_includes/custom/footer.html,添加一行:
1
| |
bug提醒:如果post文件中有上面这一行代码(没有\号),blog网站首页和这篇博文页,会有返回按钮图片错误