前段時間一直在折騰一臺很老的筆記本電腦,SonyVGN-S38GP。
DebianStretch安裝inkscape
Inkscape是一個開源的繪圖和繪畫工具,類似于CorelDraw、Illustrator、XaraX和Photoshop。它被廣泛用于所有形式的操作系統。它包含了許多特性,比如Cairo渲染顯示和PNG導出、c++代碼轉換、跨平臺的WMF和EMF導入導出等。
默認情況下Debian9安裝過程中會默認安裝inkscape0.92版本,但因為一些特殊原因,我在安裝完后將它卸載了,只好重新安裝了。在開始安裝之前,使用nano命令打開sources.list來添加repo,輸入以下內容后保存。
root@debian:~# nano /etc/apt/sources.list
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main
然后運行apt update更新源元件。
root@debian:~# apt update
Ign:1 http://deb.debian.org/debian stable InRelease
Get:2 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:3 http://deb.debian.org/debian stable-updates InRelease
Get:4 http://deb.debian.org/debian-security stable/updates InRelease [62.9 kB]
Get:5 http://ftp.debian.org/debian stretch-backports/main Sources [86.5 kB]
Get:6 http://ftp.debian.org/debian stretch-backports/main amd64 Packages [137 kB]
Hit:7 http://deb.debian.org/debian stable Release
Get:8 http://ftp.debian.org/debian stretch-backports/main Translation-en [71.9 kB]
Get:10 http://deb.debian.org/debian-security stable/updates/main Sources [60.9 kB]
Get:11 http://deb.debian.org/debian-security stable/updates/main amd64 Packages [155 kB]
Get:12 http://deb.debian.org/debian-security stable/updates/main Translation-en [70.1 kB]
Fetched 736 kB in 2s (337 kB/s)
Reading package lists... Done
root@debian:~#
接下來,通過運行命令來安裝Inkscape包。
root@debian:~# apt-get install inkscape
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
dia | dia-gnome libsvg-perl libxml-xql-perl pstoedit python-uniconvertor
The following NEW packages will be installed:
inkscape
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 0 B/17.2 MB of archives.
After this operation, 133 MB of additional disk space will be used.
Selecting previously unselected package inkscape.
(Reading database ... 197745 files and directories currently installed.)
Preparing to unpack .../inkscape_0.92.1-1_amd64.deb ...
Unpacking inkscape (0.92.1-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up inkscape (0.92.1-1) ...
root@debian:~#
Inkscape的安裝就完成了。
為inkscape添加Axidraw擴展
要讓inkscap支持Axidraw繪圖機器人,需要添加相應的擴展插件。
插件地址: https://github.com/evil-mad/axidraw ,我們需要的擴展文件如下圖:
inkscape Axidraw插件
在下載使用前,我們還需要選擇對應的正式發行版本才行。
inkscape Axidraw插件 發行版
進入正式發行版本列表后,我們可以看到最新發行版為
最新發行版
仔細閱讀相關的安裝說明,你會發現在Debian下使用應下載哪個包,同時應該怎么去安裝的具體說明。
linux axidraw 安裝方法
從說明可以知道,在Debian中使用我們需要的是axidraw_v253r3.zip這個包,我們需要做的是:
1、下載 axidraw_v253r3.zip解壓;
2、打開inkscape,在“Edit”菜單下,選擇“Preferences”,找到“System”,再定位到“User extensions”,這里的路徑就是inkscape的擴展插件目錄;
3、使用cp命令將解壓的文件全部復制到找到的擴展插件目錄即可;
4、為了當前用戶能使用USB端口,需要添加當前debian用戶到 dialout 用戶組,命令“ sudo usermod -a -G dialout 《當前用戶名》 ” 。
5、重啟inkscape,在“擴展”菜單就可以看到Axidraw的選項了。
-
機器人
+關注
關注
211文章
28638瀏覽量
208392 -
Stretch
+關注
關注
0文章
2瀏覽量
5679 -
Debian
+關注
關注
0文章
75瀏覽量
1237
發布評論請先 登錄
相關推薦
評論