Ubuntu下安装snap包
我想在Ubuntu上⽤Mathpix Snipping Tool,上提⽰在Ubuntu中⽤以下命令安装.
sudo snap install mathpix-snipping-tool
但是⼀直卡在如下命令.
Download snap "core"(6673) from channel "stable"
于是去这个下了mathpix-snipping-tool的.snap⽂件,想直接安装.snap⽂件.⼜报错.
snap install mathpix-snipping-tool.snap
error: cannot find signatures with metadata for snap "mathpix-snipping-tool.snap"
在中,说是要
snap ack snipping-tool.assert
但是我在第三⽅平台中只能下.snap包,没有.assert⽂件.
If you don’t care about the assertion, you can run snap install --dangerous <the darktable snap you downloaded>, but then you won’t receive updates.
但是可以⽤ --dangerous参数.不管更新.
snap install --dangerous mathpix-snipping-tool.snap
半⼩时后,终于安装好了(泪).
常⽤命令
snap changes 查看正在进⾏的change
sudo snap abort ID 杀死某个进程
效果
我⼀般在Ubuntu下写代码,所以想在Ubuntu下写笔记,同时⽤公式来解释代码⾮常直观.这是我在Ubuntu下安装Mathpix Snipping Tool的初衷.下⾯的公式就是⽤ ctr+alt+M组合键得到的公式.
R= i(cosθ(i)
sinθ(i)
−sinθ(i)
cosθ(i))
对应代码
Eigen ::Matrix2d Rij_inv = (Zij .topLeftCorner (2,2)).transpose ();
Eigen ::Matrix2d Ri_inv = (Xi .topLeftCorner (2,2)).transpose ();
Eigen ::Matrix2d JR_theta ;
ubuntu安装教程JR_theta << -Xi (1,0), Xi (0,0),
-Xi (0,0), -Xi (1,0);
Ai .setZero ();
Ai .topLeftCorner (2,2) = -Rij_inv * Ri_inv ;
Ai .topRightCorner (2,1) = Rij_inv * JR_theta * (Xj .topRightCorner (2,1) - Xi .topRightCorner (2,1));Ai (2,2) = -1;
Bi .setZero ();
Bi .topLeftCorner (2,2) = Rij_inv * Ri_inv ;
Bi (2,2) = 1; 参考
snap教程itsfoss/use-snap-packages-ubuntu-16-04/A =ij =∂x i ∂e (x )
ij (−R R ij ⊤i
⊤0⊤R t −t ij ⊤∂θi ∂R i ⊤
(j i )
−1)
发布评论