windows宿主机下的Vbox 虚拟linux机安装增强

自家的2023版笔记本电脑时间长了,电池只有顶半个小时,公司就给我配了台联想E15,可是装的是win11。很不习惯用啊,不是自己的,轻易不会改linux,于是先用wsl安装Debian,却发现其实不好用,于是借助vbox初装Debian试试。

  1. 安装vbox扩展时出现问题
1
2
3
4
./VBoxLinuxAdditions.run
bash: ./VBoxLinuxAdditions.run: /bin/sh: bad interpreter: Permission denied
还以为是没有用sudo,于是
sudo ./VBoxLinuxAdditions.run #还是不行

查看文件的执行权限是555,可以执行.

改为:

1
sudo sh ./VBoxLinuxAdditions.run

运行正常.
问题的原因是挂载分区时,没有指定参数exec的缘故。可以把装载参数改为defaults或者在执行脚本前添加sh即:sh ./+脚本名称。

hugo 中的文章添加时间线1. hugo-shortcode-timeline

一. 在github上下载 hugo-shortcode-timeline
二. 把 hugo-shortcode-timeline目录下的文件,copyg到当前hugo blog的themes目录下对应的theme目录中。

比如当前场景是serif, 则把 hugo-shorcode-timeline下

assets目录中的文件 copy 到 hugo-serif-theme/assets下
layout/shortcodes/ 目录下的文件 copy 到 hugo-serif-theme/layout/shorcodes/目录下

三. 在 markdown文件中语法如下
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
{{< timeline >}}

{{% event title="催客户试产" from="2023-06-20" to="2023-07-24" %}}
_工作描述:_ 蓝总有意初步试定一吨,但临时变卦想用更高倔强的钢,暂时我们还做不到,项目终止
{{% /event %}}

{{% event title="客户自己的结构状况" from="2023-05-29" to="2023-06-20" %}}
_工作描述:_ 蓝总自己的结构己完成,参数可以,但什么时候生产还得看情况
{{% /event %}}

{{% event title="客户检测确认" from="2023-05-17" to="2023-05-29" %}}
_工作描述:_ 客户测试完成,表示与我们的报告性能一致,这0.5米长样品做为质检留底。
{{% /event %}}

{{% event title="样品确认到达并确认测试" from="2023-05-12" to="2023-05-17" %}}
_工作描述:_ 检测报告送达,并附上0.5米长的样品供客户测试
{{% /event %}}

{{% event title="客户拜访" from="2023-05-11" to="2023-05-12" %}}
客户蓝总需要一个三百吨的螺纹钢才,但是需要我们提供检测报告

{{% /event %}}

{{< /timeline >}}

电机驱动的两种波形

一 方波控制

  1. 通过霍尔传感器获得电机转子的位置,然后跟据转子的位置在360度的电气周期内,进行六次转向(每60度换向一次)。每个换向位置电机输出物定方向的力,因此可以说方波控制的位置精度是电气60度。由于在这种方式控制下,电机的相电流波形接近方波,所以叫方波控制
    无刷电机方波控制
  2. 特点
    价格便宜,驱动器算法简单,开发难度低,开发成本低,硬件成本相对较低
    加减速简单粗暴,类似于猛踩油门,但也容易过冲
    匹配电机简单,对电机的相位,相电感,相电阻要求低

二 正统波控制

  1. 使用的是SVPWM波形,输出的是三相正弦波电压,电机相电流为正弦波电流,可以认为在一个电气周期内进行了多次的连续变化换向,无换相电流突变。显然,正弦波与方波相比,其转矩波动较小,电流谐波小,控制起来感觉较“细腻”。
    无刷电机正弦波控制
  2. 特点
    运行平稳,转矩波动小,运行效果顺畅,不易受负载变动而波动
    稳定可靠,使用寿命长(正弦波控制避免了产生尖峰电流的冲击,而方波控制易产生尖峰电流,对MOS管及电机进行竞击,影响了寿命。)
    安静,噪音小。电机运行时,方波控制可明显听到“吱吱吱”的电流声,弦波控制电流声极小。
    效率高。正弦波控制比方波控制电机的使用效率高,输出同等功率所需的电流更低。
    算法难度高,成本比方波控制相对高一点。

三 如何选择

  1. 对运行效果,性能,稳定可靠性没有太高要求,追求低成本的。选方波驱动器
  2. 要求运行效果好,稳定可靠,静音,耗电低,效率高的。选正弦波驱动器

github上,对电脑虚拟机的辅助项目

一 Bottles:一款可轻松实现 Linux 上运行 Windows 软件的工具。

该项目由python写成,提供了清爽易用的 GUI 界面,用户就算不懂任何编程技巧,也可通过wine,轻而易举地在 Linux 系统上,运行 Windows 的游戏和软件。
地址:github.com/bottlesdevs/Bottles

二 使用 WinApps 在 Linux 桌面上无缝运行 Windows 应用程序

WinApps for Linux 使运行 Windows 应用程序变得容易 https://github.com/Fmstrat/winapps
这个东东严格来说不算是虚拟机,只是如果你装了Vmware, 这个东东的作用就是把Vmware中的windows应用无缝地放在linux下,看起来你没有安装虚拟机一样,但是呢,不是神马windows应用都支持的,得到网站上去查。 安装说明在https://nowsci.com/winapps/

New blink 是一款虚拟机可用来跑静态编译的 x86-64 Linux,它适用于不同的操作系统和硬件架构。它和 qemu-x86_64 实现类似功能,除了 blink 不是一个 4 mb 的二进制而是一个约 158 kb 的小东西之外,在某些基准测试中,比如:gcc 模拟,blink 比 Qemu 更快。由于体积小,作为折中的方案,blink 在系统集成方面不如 Qemu 丰富。
GitHub 地址→github.com/jart/blink

四 winlator 模拟器

winlator模拟器一款可将手机变身成为一部真实的pc,可畅玩各种电脑端游戏,兼容性强大,并且对于手机的性能没有过高的要求

https://github.com/dockur/windows

简介:Docker 容器中的 Windows

六 轻量级虚拟机新宠——Multipass

Multipass的底层技术基于Hypervisor,支持KVM、Hyper-V和VirtualBox等虚拟化技术。这意味着无论你的操作系统是Ubuntu、macOS还是Windows,Multipass都能提供稳定而高效的服务。虽然Multipass在功能上可能不及VMware那样全面,但它在轻量化和易用性上展现出独特优势。VMware拥有强大的虚拟化功能,非常适合企业级环境和生产环境的复杂需求。但如果你的需求倾向于轻量级的开发和测试,Multipass则是一个理想的选择。

七 Docker-OSX — 在Docker中运行macOS

Docker-OSX是一个开源项目,而且支持多个版本的MacOS,比如说Catalina、Big Sur等。使用Docker部署Docker-OSX毕竟是运行一个系统,所以硬件上不能太差
Docker-OSX 借助 OSX-KVM 和 OpenCorePkg 在 Docker 容器内创建高度实用的 macOS 环境。该项目支持多个 macOS 版本,包括 Catalina、Big Sur、Monterey 和 Ventura。

八 WebVM https://github.com/leaningtech/webvm

浏览器中的linux虚拟机

九 xoureldeen/Vectras-VM-Android

Vectras VM是一款基于QEMU的Android虚拟机应用,支持模拟Windows、macOS、Linux和Android等操作系统。https://github.com/xoureldeen/Vectras-VM-Android

被初中男孩子唱红的that girl

That girl

there’s a girl but i let her get away
it’s all my fault cause pride got in the way
and i’d be lying if i said i was ok
about that girl the one i let get away
i keep saying no
this can’t be the way it was supposed to be
i keep saying no
there’s gotta be a way to get you close to me
now i know you gotta
speak up if you want somebody
can’t let them get away oh no
you don’t wanna end up sorry
the way that i’m feeling every day
don’t you know
no no no no
there’s no hope for the broken heart
don’t you know
no no no no
there’s no hope for the broken
there’s a girl but i let her get away
it’s my fault cause i said i needed space
i’ve been torturing myself night and day
about that girl the one i let get away
i keep saying no
this can’t be the way it was supposed to be
i keep saying no
there’s gotta be a way to get you
gotta be a way
to get you close to me
you gotta
speak up if you want somebody
can’t let them get away oh no
you don’t wanna end up sorry
the way that i’m feeling every day
don’t you know
no no no no
there’s no hope for the broken heart
don’t you know
no no no no
there’s no hope for the broken
no home for me
no home cause i’m broken
no room to breathe
and i got no one to blame
no home for me
no home cause i’m broken
about that girl
the one i let get away
so you better
speak up if you want somebody
you can’t let him get away no no
you don’t wanna end up sorry
the way that i’m feeling every day
don’t you know
no no no no
there’s no home for the broken heart
don’t you know
no no no no
there’s no home for the broken
oh
you don’t wanna lose at love
it’s only gonna hurt too much
i’m telling you
you don’t wanna lose at love
it’s only gonna hurt too much
i’m telling you
you don’t wanna lose that love
cause there’s no home for the broken heart
that girl
the one i let get away

春暖花开,不要问我过得好不好

1. 春暖花开

如果你渴求一滴水
我愿意倾其一片海
如果你要摘一片红叶
我给你整个枫林和云彩
如果你要一个微笑
我敞开火热的胸怀
如果你需要有人同行
我陪你走到未来
春暖花开 这是我的世界
每次怒放
都是心中喷发的爱
风儿吹来
是我和天空的对白
其实幸福
一直与我们同在
如果你要一个微笑
我敞开火热的胸怀
如果你需要有人同行
我陪你走到未来
春暖花开
这是我的世界
每次怒放
都是心中喷发的爱
风儿吹来
是我和天空的对白
其实幸福
一直与我们同在
春暖花开
这是我的世界
生命如水
有时平静
也有时澎湃
穿越阴霾
阳光洒满你窗台
其实幸福
一直与我们同在
我的世界
春暖花开

2 不要问我过得好不好

词:周治平 曲:周治平

我不是你想象中的那样坚强
可以一个人独自面对悲伤
其实我也希望有个温暖的地方
让我可以挡风遮雨
那些许多年不见的朋友啊
再次相遇的时候都已成对成双
是否他们已经
找到快乐的天堂
可不可以
让我也靠在你的肩上
不要问我过的好不好
我的心事你应该知道
当寂寞越来越多
骄傲越来越少
只希望有你白头到老
不要问我过的好不好
我的心事你应该知道
当黑夜越来越长
梦想越来越小
我的春天 该到那里去找
那些许多年不见的朋友啊
再次相遇的时候都已成对成双
是否他们已经
找到快乐的天堂
可不可以
让我也靠在你的肩上
不要问我过的好不好
我的心事你应该知道
当寂寞越来越多
骄傲越来越少
只希望有你白头到老
不要问我过的好不好
我的心事你应该知道
当黑夜越来越长
梦想越来越小
我的春天 该到那里去找
不要问我过的好不好
我的心事你应该知道
当寂寞越来越多
骄傲越来越少
只希望有你白头到老
不要问我过的好不好
我的心事你应该知道
当黑夜越来越长
梦想越来越小
我的春天 该到那里去找

加拿大歌手布莱恩.亚当斯的经典歌曲

1. everthing I do , I do for you

Look into my eyes

You will see what you mean to me

Search your heart search your soul

And when you find me there you’ll search no more

Don’t tell me it’s not worth trying for

You can’t tell me it’s not worth dying for

You know it’s true

Everything I do

I do it for you

Look into your heart

You will find there’s nothing there to hide

Take me as I am take my life

I would give it all I would sacrifice

Don’t tell me it’s not worth fighting for

I can’t help it there’s nothing I want more

You know it’s true

Everything I do

I do it for you

There’s no love

Like your love

And no other

Could give more love

There’s no where

Unless you’re there

All the time all the way

Ah you can’t tell me it’s not worth trying for

I can’t help it there’s nothing I want more

Yeah I would fight for you

I’d lie for you

Walk the wire for you

Yeah I’d die for you

You know it’s true

Everything I do

I do it for you

2 Here I Am (我就在这) - Bryan Adams (布莱恩·亚当斯)

作词 : Bryan Adams/Gretchen Peters/Hans Zimmer
作曲 : Bryan Adams/Gretchen Peters/Hans Zimmer

Here I am this is me
There’s no where else on earth I’d rather be
Here I am it’s just me and you
And tonight we make our dreams come true
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
Here I am
Here we are we’ve just begun
And after all this time our time has come
Ya here we are still going strong
Right here in the place where we belong
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
Here I am
Here I am this is me
There’s no where else on earth I’d rather be
Here I am it’s just me and you
And tonight we make our dreams come true
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
Here I am
Here I am next to you
And suddenly the world is all brand new
Here I am where I’m gonna stay
Now there’s nothin standin in our way
Here I am this is me

齐秦-花祭

1. 花祭

作词 : 齐秦/黄大军,作曲 : 齐秦

(music)
你是不是不愿意留下来陪我
你是不是春天一过 就要走开
真心的花才开 你却要随候鸟飞走
留下来 留下来
你为什么不愿意留下来陪我
你是不是就这样轻易放弃
花开的时候 就这样悄悄离开我
离开我 离开我
太多太多的话我还没有说
太多太多牵挂值得你留下
花开的时候 你却离开我
离开我 离开我
你是不是不愿意留下来陪我
你是不是春天一过 一定要走
真心的花才开 你却要随候鸟飞走
留下来 留下来
你为什么不愿意留下来陪我
你是不是就这样轻易放弃
花开的时候 就这样悄悄离开我
离开我 离开我
太多太多的话我还没有说
太多太多理由值得你留下
花开的时候 你却离开我
离开我 离开我
(music)
太多太多的话我还没有说
太多太多牵挂值得你留下
花开的时候 你却离开我
离开我 离开我
太多太多的话我还没有说
太多太多理由值得你留下
在花开的时候 你却离开我
离开我 离开我 离开我 哦

李健--传奇

1. 传奇 中文版

作词:刘兵 作曲:李键
演唱:李健

只因为在人群中多看了你一眼
再也没能忘掉你的容颜
梦想着偶然能有一天再相见
从此我开始孤单地思念
想你时你在天边
想你时你在眼前
想你时你在脑海
想你时你在心田
宁愿相信我们前世有约
今生的爱情故事不会再改变
宁愿用这一生等你发现
我一直在你身旁
从未走远

只因为在人群中多看了你一眼
再也没能忘掉你的容颜
梦想着偶然能有一天再相见
从此我开始孤单地思念
想你时你在天边
想你时你在眼前
想你时你在脑海
想你时你在心田
宁愿相信我们前世有约
今生的爱情故事不会再改变
宁愿用这一生等你发现
我一直在你身旁
从未走远
宁愿相信我们前世有约
今生的爱情故事不会再改变
宁愿用这一生等你发现
我一直在你身旁
从未走远
只是因为在人群中多看了你一眼

2. Fairy Tale(传奇英文版) - Michael Learns To Rock

In that misty morning when I saw your smiling face

You only looked at me and I was yours

But when I turned around you were nowhere to be seen

You had walked away and closed the door

When will I see you again

When will the sky start to rain

When will the stars start to shine

When will I know that you are mine

Did I ever meet you in the sunshine?

And when we were both a thousand years away

Did I ever hold you in the moonlight?

Did we make every minute last another day?

On a cold december night I gave my heart to you

and by the summer you were gone

Now as the days grow older and the stars will start to dim

All I have is our memory and this song

When will I see you again

When will the sky start to rain

When will the stars start to shine

When will I know that you are mine

Did I ever meet you in the sunshine

And when we were both a thousand years away

Did I ever hold you in the moonlight

Did we make every minute last another day

When will I see you again (again)

When will the sky stop to rain(When will the sky stop to rain)

When will the stars start to shine

When will I know that you are mine

In that misty morning I saw your smiling face~