如何从其内部获取bash
终端或控制台Eclipse
?
但没有提示:
我只看到:
no consoles to display at this time
“窗口->显示视图->其他”。搜索终端并选择“打开”。单击此处所示的“打开终端”图标,然后选择本地终端。
但我只看到“控制台”:
这给了我一些没有bash
控制台的东西。
先看:
https://tor.stackexchange.com/q/318/857
尝试启动时tor
,我会收到安装提示,apt
而我正在使用snap
:
thufir@dur:~$
thufir@dur:~$ tor
Command 'tor' not found, but can be installed with:
sudo apt install tor
thufir@dur:~$
thufir@dur:~$ torbrowser-launcher
Command 'torbrowser-launcher' not found, but can be installed with:
sudo apt install torbrowser-launcher
thufir@dur:~$
这是刚刚tor
通过安装后snap
,如下所示。浏览器是如何启动的?
thufir@dur:~$
thufir@dur:~$ sudo snap install tor
snap "tor" is already installed, see 'snap help refresh'
thufir@dur:~$
thufir@dur:~$ snap info tor
name: tor
summary: Anonymising TCP overlay network
publisher: Iain R. Learmonth (irl)
license: unset
description: |
Tor is free software and an open network that helps you defend against
traffic analysis, a form of network surveillance that threatens personal
freedom and privacy, confidential business activities and relationships,
and state security.
Tor will accept connections from other applications on your computer on TCP
port 9050. If you would just like to browse the web with Tor, see Tor
Browser instead. This client is configured with defaults that will work for
most use cases. For advanced use, install tor from your distribution's
package manager.
services:
tor: simple, enabled, active
snap-id: GZm8Xr8BoWoe4y5pN1QJp3OGWyKGbDqc
tracking: stable
refresh-date: today at 01:10 PDT
channels:
stable: 0.2.9.17 2018-11-07 (2) 6MB -
candidate: ↑
beta: ↑
edge: ↑
installed: 0.2.9.17 (2) 6MB -
thufir@dur:~$
我天真地希望snap
安装tor
包括浏览器启动器。运行宇宙:
thufir@dur:~$
thufir@dur:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~$
WinRAR
和Linux一样吗rar
?附加的功能?缺少功能?处理文件的特殊方式?
软件可用于 Microsoft Windows(名为 WinRAR)、Linux...
-维基百科
上下文是拆分的文件:
有时您会下载一个大文件,然后发现您的文件夹不是您想要的单个文件,而是充满了 .001 .002 .003 或 .r01 .r02 .r03 文件。这些文件是拆分 RAR 存档的一部分。与 zip 文件非常相似,RAR 文件是您下载的文件的压缩版本。它不是在单个文件中传输,而是分布在这几个文件中——通常是为了加快下载速度或适应商业文件存储主机的文件大小限制。
我不是在问如何unrar
归档。我在问:为什么这些文件这样命名?这是 Windows 约定,还是 Linux?这只是一个“拆分”文件吗?
不倾向于WINE
单独安装。QuickPar
这些特定文件以这种模式命名:
foo bar - baz.rar.001
在 foo、bar、baz 之间加上空格和连字符。
未命名为 .r01,仅命名为 001。如果这有所作为。(?)
智能关键字是直接从 Firefox 位置栏搜索特定网站的简便方法。无需前往目标网站、查找搜索功能并执行搜索,您可以在任何网站上使用 Firefox 搜索该网站。
听起来不错。 方向是:
要创建智能关键字:
- 访问目标网站上具有您通常用于搜索该网站的搜索字段的页面。
- 右键单击搜索字段。选择为此搜索添加关键字...。
这些方向是什么意思?
搜索字段是什么或在哪里?
它曾经是这样的:
我能适应。或者可能不是。想不通这个新方法。我的系统:
thufir@dur:~$
thufir@dur:~$ firefox -v
Mozilla Firefox 64.0
thufir@dur:~$
thufir@dur:~$ lsb_release -irc
Distributor ID: Ubuntu
Release: 18.10
Codename: cosmic
thufir@dur:~$
我没有看到http://www.onelook.com/的选项
必须是我的系统或我使用它的方式。
使用Java
for ,对firefoxdriver包Selenium
很好奇。有几个特定的包,但是否可能以一种易于基于项目找到的方式将其安装到系统中?python
firefoxdriver
geckodriver
Java
Selenium
我一直在使用属性文件:
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>selenium config and vehicle type</comment>
<entry key="gecko">/home/thufir/.gecko/geckodriver</entry>
<entry key="url">http://books.toscrape.com/</entry>
<entry key="driver">webdriver.gecko.driver</entry>
<entry key="usr">admin</entry>
<entry key="pwd">12345</entry>
<entry key="option01">--headless</entry>
</properties>
如果它指向系统上的某个标准位置,它会稍微不那么脆弱。(我想也可以将它捆绑在JAR
, 中。)
thufir@dur:~$
thufir@dur:~$ sudo apt install firefoxdriver
Reading package lists... Done
Building dependency tree
Reading state information... Done
firefoxdriver is already the newest version (3.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 98 not upgraded.
thufir@dur:~$
对于外部硬盘驱动器,我收到一条消息说我没有权限。
递归chmod
或chown
会涉及太多文件。此外,虽然不是问题,但至少为了争论,我想保持文件不变。
图形用户界面显示:
我想挂载,以便我可以完全访问,root
或者sudo
,通过 GUI 访问驱动器。
磁盘:
thufir@dur:~$
thufir@dur:~$ sudo fdisk -l /dev/sdb1
Disk /dev/sdb1: 465.8 GiB, 500105740288 bytes, 976769024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
thufir@dur:~$
- - - - - - - - - - - - - - 更新 - - - - - - - - - - - ----
我的身份证是:
thufir@dur:~$
thufir@dur:~$ id thufir
uid=1000(thufir) gid=1000(thufir) groups=1000(thufir),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),118(lpadmin),129(sambashare),1001(rvm)
thufir@dur:~$
磁盘:
thufir@dur:~$
thufir@dur:~$ ll /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 100 Dec 26 03:17 ./
drwxr-xr-x 6 root root 120 Dec 26 02:05 ../
lrwxrwxrwx 1 root root 10 Dec 26 02:05 16c6c72f-9f1f-40cb-9486-9ac586d12aa3 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 26 02:05 50d61402-72c1-4d74-b6c1-39cccc8ec6ef -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 26 03:17 8785d7ff-2f9c-4b0c-a581-59a5611758a8 -> ../../sdb1
thufir@dur:~$
我有的:
mount -t ext4 -o umask=0022,gid=1000,uid=1000 /dev/sdb1 /yourMountPoint
如何安装 fishlim
?
thufir@dur:~$
thufir@dur:~$ sudo apt install build-essential libglib2.0-dev libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libglib2.0-doc libssl-doc
The following NEW packages will be installed:
build-essential libglib2.0-dev libssl-dev
0 upgraded, 3 newly installed, 0 to remove and 92 not upgraded.
Need to get 2,962 kB/2,967 kB of archives.
After this operation, 17.1 MB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu cosmic/main amd64 libglib2.0-dev amd64 2.58.1-2 [1,394 kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 libssl-dev amd64 1.1.1-1ubuntu2.1 [1,568 kB]
Fetched 2,962 kB in 6s (536 kB/s)
Selecting previously unselected package build-essential.
(Reading database ... 189033 files and directories currently installed.)
Preparing to unpack .../build-essential_12.5ubuntu2_amd64.deb ...
Unpacking build-essential (12.5ubuntu2) ...
Selecting previously unselected package libglib2.0-dev:amd64.
Preparing to unpack .../libglib2.0-dev_2.58.1-2_amd64.deb ...
Unpacking libglib2.0-dev:amd64 (2.58.1-2) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../libssl-dev_1.1.1-1ubuntu2.1_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1-1ubuntu2.1) ...
Setting up build-essential (12.5ubuntu2) ...
Setting up libssl-dev:amd64 (1.1.1-1ubuntu2.1) ...
Processing triggers for libglib2.0-0:amd64 (2.58.1-2) ...
Setting up libglib2.0-dev:amd64 (2.58.1-2) ...
thufir@dur:~$
thufir@dur:~$ git clone git://git.fishlim.kodafritt.se/fishlim.git
Cloning into 'fishlim'...
remote: Counting objects: 234, done.
remote: Compressing objects: 100% (233/233), done.
remote: Total 234 (delta 158), reused 0 (delta 0)
Receiving objects: 100% (234/234), 48.65 KiB | 119.00 KiB/s, done.
Resolving deltas: 100% (158/158), done.
thufir@dur:~$
thufir@dur:~$ cd fishlim/
thufir@dur:~/fishlim$
thufir@dur:~/fishlim$ make
cc -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic -g `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC -c irc.c -o irc.o
cc -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic -g `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC -c fish.c -o fish.o
fish.c: In function ‘fish_encrypt_cbc’:
fish.c:140:5: warning: ‘RAND_pseudo_bytes’ is deprecated [-Wdeprecated-declarations]
RAND_pseudo_bytes(iv, 8);
^~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/blowfish.h:13,
from fish.c:27:
/usr/include/openssl/rand.h:44:1: note: declared here
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^~~~~~~~~~~~~~~~~~
cc -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic -g `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC -c keystore.c -o keystore.o
cc -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic -g `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC -c misc.c -o misc.o
misc.c: In function ‘import_glib_string’:
misc.c:43:5: warning: ‘g_mem_is_system_malloc’ is deprecated [-Wdeprecated-declarations]
if (g_mem_is_system_malloc()) return gstr;
^~
In file included from /usr/include/glib-2.0/glib/glist.h:32,
from /usr/include/glib-2.0/glib/ghash.h:33,
from /usr/include/glib-2.0/glib.h:50,
from misc.c:25:
/usr/include/glib-2.0/glib/gmem.h:378:10: note: declared here
gboolean g_mem_is_system_malloc (void);
^~~~~~~~~~~~~~~~~~~~~~
cc -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic -g `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC -c plugin_xchat.c -o plugin_xchat.o
plugin_xchat.c:33:14: fatal error: hexchat-plugin.h: No such file or directory
#include <hexchat-plugin.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:27: plugin_xchat.o] Error 1
thufir@dur:~/fishlim$
thufir@dur:~/fishlim$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~/fishlim$
加密包最后一次更新是 2015 年。
上下文:与其手动下载 IDE 和 SDK,在可能的情况下,我更喜欢使用自动化,例如:rVM、SDKman、snap 和 umake 或 ubuntu make。此问题的范围仅限于此类工具,例如 apt,而不是手动下载。
如何Netbeans
使用 9+安装umake
?
我安装umake
了,apt
因为. _snap
umake
Java 11 与 一起安装SDKman
,尽管我也安装了8.0.192-zulu
and 9.0.7-zulu
。
Ubuntu make 只安装Netbeans
8.2。
如何umake
下载 Netbeans 9?
Ubuntu 制作
Ubuntu Make 是一个命令行工具,允许您在安装时下载最新版本的流行开发工具,将其与所有必需的依赖项一起安装(如果您没有安装所有必需的依赖项,则只会要求 root 访问权限已经),如果您使用的是 64 位计算机,请在您的系统上启用多架构,将其与 Unity 启动器集成。基本上,一个命令可以让您的系统准备好进行开发!
由于我使用的是 8.2 版本Netbeans
,因此大概有更好的方法来利用umake
.
thufir@dur:~$
thufir@dur:~$ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/home/thufir/.local/share/umake/ide/netbeans/platform/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
^C
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
thufir@dur:~$
thufir@dur:~$ javac -version
javac 11.0.1
thufir@dur:~$
thufir@dur:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~$
也许我应该降级 Java:
https://askubuntu.com/a/1093681/45156
然后重新安装NB
。但是,我看不出这将如何更新netbeans。
脚注:实际上, 8.2 可以从orNetbeans
的 snap 版本中正常安装。ubuntu-make
umake
如何创建 ISOunetbootin
以然后刻录 DVD?
文件已经在那里看起来很方便。它们可以打包为 ISO 而不是重新下载吗?(这是来自普通的 Ubuntu,使用unetbootin
.)
也可以看看:
https://superuser.com/questions/777339/where-does-unetbootin-put-the-downloaded-iso-files
所以,也许 ISO 文件可以拿来拿。嗯....我会看:
thufir@dur:~$
thufir@dur:~$ locate -i "*.iso"
/home/thufir/Desktop/ubuntu-18.04-live-server-amd64.iso
/home/thufir/Downloads/lubuntu-18.04-desktop-amd64.iso
/home/thufir/Downloads/ubuntu-18.04-desktop-amd64.iso
/home/thufir/Downloads/xenialpup64-7.5-uefi.iso
/usr/lib/memtest86+/memtest86+.iso
thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ /opt/pt/bin/./PacketTracer7
/opt/pt/bin/./PacketTracer7: error while loading shared libraries: libQt5ScriptTools.so.5: cannot open shared object file: No such file or directory
thufir@dur:~$
thufir@dur:~$ LD_LIBRARY_PATH=/opt/pt/lib /opt/pt/bin/./PacketTracer7
/opt/pt/bin/./PacketTracer7: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
thufir@dur:~$
thufir@dur:~$ locate libpng12.so.0
/snap/core/4650/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/4650/lib/x86_64-linux-gnu/libpng12.so.0.54.0
/snap/core/4650/usr/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/4830/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/4830/lib/x86_64-linux-gnu/libpng12.so.0.54.0
/snap/core/4830/usr/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/4917/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/4917/lib/x86_64-linux-gnu/libpng12.so.0.54.0
/snap/core/4917/usr/lib/x86_64-linux-gnu/libpng12.so.0
/snap/gnome-3-26-1604/59/lib/x86_64-linux-gnu/libpng12.so.0
/snap/gnome-3-26-1604/59/lib/x86_64-linux-gnu/libpng12.so.0.54.0
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/libpng12.so.0
/snap/gnome-3-26-1604/64/lib/x86_64-linux-gnu/libpng12.so.0
/snap/gnome-3-26-1604/64/lib/x86_64-linux-gnu/libpng12.so.0.54.0
/snap/gnome-3-26-1604/64/usr/lib/x86_64-linux-gnu/libpng12.so.0
/snap/vuze-vs/3/lib/x86_64-linux-gnu/libpng12.so.0
/snap/vuze-vs/3/lib/x86_64-linux-gnu/libpng12.so.0.54.0
/snap/vuze-vs/3/usr/lib/x86_64-linux-gnu/libpng12.so.0
thufir@dur:~$
显然,因为:
似乎安装了正确的库,但 CPT 需要旧版本 - 52 而不是 55。包含旧版本 libicui18n 的 Debian 软件包可在 http://security.ubuntu.com/ubuntu/pool/main/i/获得icu/libicu52_52.1-3ubuntu0.8_amd64.deb。
手动安装旧包:
thufir@dur:~/deb$
thufir@dur:~/deb$ wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.8_amd64.deb
--2018-07-07 04:30:57-- http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.8_amd64.deb
Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.91.26, 91.189.91.23, 91.189.88.152, ...
Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.91.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6751362 (6.4M) [application/x-debian-package]
Saving to: ‘libicu52_52.1-3ubuntu0.8_amd64.deb’
libicu52_52.1-3ubuntu0.8_amd64.de 100%[==========================================================>] 6.44M 658KB/s in 10s
2018-07-07 04:31:07 (637 KB/s) - ‘libicu52_52.1-3ubuntu0.8_amd64.deb’ saved [6751362/6751362]
thufir@dur:~/deb$
thufir@dur:~/deb$ sudo dpkg -i libicu52_52.1-3ubuntu0.8_amd64.deb
[sudo] password for thufir:
Selecting previously unselected package libicu52:amd64.
(Reading database ... 186168 files and directories currently installed.)
Preparing to unpack libicu52_52.1-3ubuntu0.8_amd64.deb ...
Unpacking libicu52:amd64 (52.1-3ubuntu0.8) ...
Setting up libicu52:amd64 (52.1-3ubuntu0.8) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
thufir@dur:~/deb$
thufir@dur:~/deb$ packettracer
Starting Packet Tracer 7.1.1
thufir@dur:~/deb$
结果相同。已安装的软件包包括:
sudo apt install libqt5webkit5 libqt5multimedia5 libqt5xml5 libqt5script5 libqt5scripttools5
运行更新时出错:
thufir@bot:~$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:2 http://ca.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Hit:4 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease
Fetched 166 kB in 1s (138 kB/s)
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 8, in <module>
from CommandNotFound.db.creator import DbCreator
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module>
import apt_pkg
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: symbol _ZN13debListParser12ParseDependsEPKcS1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RjRKbSB_SB_RKS7_ version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: symbol _ZN13debListParser12ParseDependsEPKcS1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RjRKbSB_SB_RKS7_ version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
Original exception was:
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 8, in <module>
from CommandNotFound.db.creator import DbCreator
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module>
import apt_pkg
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: symbol _ZN13debListParser12ParseDependsEPKcS1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RjRKbSB_SB_RKS7_ version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
Reading package lists... Done
W: Problem unlinking the file auxfiles - Clean (21: Is a directory)
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
thufir@bot:~$
尝试为 bodhi添加repos可能会引入此错误。sources.list
文件:
thufir@bot:~$ cat /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic universe
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
#deb [trusted=yes] http://packages.bodhilinux.com/bodhi xenial b4main
thufir@bot:~$
请注意bodhi
,最后一行被注释掉了。 操作系统:
thufir@bot:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
合适的版本:
thufir@bot:~$ apt-cache policy apt
apt:
Installed: 2.2.12~bodhi2
Candidate: 2.2.12~bodhi2
Version table:
*** 2.2.12~bodhi2 100
100 /var/lib/dpkg/status
1.6.1 500
500 http://ca.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
也许问题是更新失败?
如何从 安装netbeans umake
?
thufir@dur:~$
thufir@dur:~$ umake ide netbeans
Choose installation path: /home/thufir/.local/share/umake/ide/netbeans
thufir@dur:~$
系统信息:
thufir@dur:~$
thufir@dur:~$ netbeans
Command 'netbeans' not found, but can be installed with:
sudo apt install netbeans
thufir@dur:~$
thufir@dur:~$ snap info ubuntu-make
name: ubuntu-make
summary: Setup your development environment on ubuntu easily
publisher: didrocks
license: unknown
description: |
Ubuntu Make provides a set of functionality to setup,
maintain and personalize your developer environment easily. It will handle
all dependencies, even those which aren't in Ubuntu itself, and install
latest versions of the desired and recommended tools.
.
This is the latest master from ubuntu make, freshly built from
https://github.com/ubuntu/ubuntu-make. It may contain even unreleased
features!
commands:
- ubuntu-make.umake
snap-id: GFBbjr1cRDoT3KSiuwGirj83ReKSSd1J
tracking: stable
refreshed: 2018-05-22T02:03:51-07:00
installed: master (367) 13MB classic
channels:
stable: master (367) 13MB classic
candidate: ↑
beta: ↑
edge: master (363) 13MB classic
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
9.0.7-zulu
9.0.4-openjdk
> * 8.0.172-zulu
8.0.171-oracle
7.0.181-zulu
6.0.107-zulu
10.0.1-zulu
10.0.1-oracle
10.0.0-openjdk
1.0.0-rc1-graal
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (Zulu 8.30.0.1-linux64) (build 1.8.0_172-b01)
OpenJDK 64-Bit Server VM (Zulu 8.30.0.1-linux64) (build 25.172-b01, mixed mode)
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_172
thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ umake ide netbeans
Choose installation path: /home/thufir/.local/share/umake/ide/netbeans
thufir@dur:~$
thufir@dur:~$ netbeans
Command 'netbeans' not found, but can be installed with:
sudo apt install netbeans
thufir@dur:~$
thufir@dur:~$ snap info ubuntu-make
name: ubuntu-make
summary: Setup your development environment on ubuntu easily
publisher: didrocks
license: unknown
description: |
Ubuntu Make provides a set of functionality to setup,
maintain and personalize your developer environment easily. It will handle
all dependencies, even those which aren't in Ubuntu itself, and install
latest versions of the desired and recommended tools.
.
This is the latest master from ubuntu make, freshly built from
https://github.com/ubuntu/ubuntu-make. It may contain even unreleased
features!
commands:
- ubuntu-make.umake
snap-id: GFBbjr1cRDoT3KSiuwGirj83ReKSSd1J
tracking: stable
refreshed: 2018-05-22T02:03:51-07:00
installed: master (367) 13MB classic
channels:
stable: master (367) 13MB classic
candidate: ↑
beta: ↑
edge: master (363) 13MB classic
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
9.0.7-zulu
9.0.4-openjdk
> * 8.0.172-zulu
8.0.171-oracle
7.0.181-zulu
6.0.107-zulu
10.0.1-zulu
10.0.1-oracle
10.0.0-openjdk
1.0.0-rc1-graal
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$
thufir@dur:~$ java -v
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
thufir@dur:~$
thufir@dur:~$ java -version
openjdk version "1.8.0_172"
OpenJDK Runtime Environment (Zulu 8.30.0.1-linux64) (build 1.8.0_172-b01)
OpenJDK 64-Bit Server VM (Zulu 8.30.0.1-linux64) (build 25.172-b01, mixed mode)
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --verbose --config java
update-alternatives: error: no alternatives for java
thufir@dur:~$
thufir@dur:~$ umake --version
18.05+snap367
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_172
thufir@dur:~$
一个powershell
“hello world”脚本正在生成并使系统陷入困境:
Tasks: 413 total, 2 running, 411 sleeping, 0 stopped, 0 zombie
%Cpu(s): 42.8 us, 5.9 sy, 0.0 ni, 51.2 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8126688 total, 1785632 free, 4862820 used, 1478236 buff/cache
KiB Swap: 8343036 total, 8343036 free, 0 used. 2875400 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11915 thufir 20 0 3199524 76936 54220 S 19.2 0.9 0:00.58 b.sh
11858 thufir 20 0 3068456 76988 54276 S 18.9 0.9 0:00.57 b.sh
11820 thufir 20 0 3199516 77008 54292 S 18.5 0.9 0:00.56 b.sh
11877 thufir 20 0 3330588 76796 54040 S 18.2 0.9 0:00.55 b.sh
11896 thufir 20 0 3199532 76984 54232 S 18.2 0.9 0:00.55 b.sh
11839 thufir 20 0 3199524 76808 54036 S 17.9 0.9 0:00.54 b.sh
11934 thufir 20 0 3199520 77152 54360 S 17.9 0.9 0:00.54 b.sh
10265 thufir 20 0 3609528 167556 83332 S 6.3 2.1 0:06.27 gnome-shell
10002 thufir 20 0 3447780 86904 61024 S 4.6 1.1 0:00.72 b.sh
9965 thufir 20 0 3447764 86904 61036 S 4.3 1.1 0:00.69 b.sh
9982 thufir 20 0 3316688 86380 60528 S 4.3 1.1 0:00.71 b.sh
10021 thufir 20 0 3447760 86548 60628 S 4.3 1.1 0:00.70 b.sh
10040 thufir 20 0 3316696 86316 60524 S 4.0 1.1 0:00.71 b.sh
10060 thufir 20 0 3316692 86680 60860 S 4.0 1.1 0:00.68 b.sh
10080 thufir 20 0 3447768 85824 60020 S 3.3 1.1 0:00.66 b.sh
9948 thufir 20 0 3447768 86788 60792 S 3.0 1.1 0:00.66 b.sh
11799 thufir 20 0 3068444 77012 54192 S 1.7 0.9 0:00.56 b.sh
剧本:
thufir@dur:~$
thufir@dur:~$ cat powershell/weather/b.sh
#!/usr/bin/pwsh -Command
echo "hello world"
"done"
thufir@dur:~$
不能让它成为一个可执行的脚本吗?也许这不是正确的第一行?
详细信息powershell
:
thufir@dur:~$
thufir@dur:~$ pwsh
PowerShell v6.0.1
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS /home/thufir>
PS /home/thufir> $PSVersionTable.PSVersion
Major Minor Patch PreReleas BuildLabel
eLabel
----- ----- ----- --------- ----------
6 0 1
PS /home/thufir>
PS /home/thufir> get-host
Name : ConsoleHost
Version : 6.0.1
InstanceId : 38ca179a-1605-49d3-8af2-15985d6c0536
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-CA
CurrentUICulture : en-CA
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
PS /home/thufir>
PS /home/thufir> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.1
PSEdition Core
GitCommitId v6.0.1
OS Linux 4.13.0-32-generic #35-Ubuntu SMP Thu Jan 25 09:13:46 UTC 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS /home/thufir>
由于此错误,无法从 apt 为较新的Ubuntu版本安装 powershell吗?
$ cat /etc/apt/sources.list.d/microsoft.list
deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main
$ sudo apt install -y powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:
The following packages have unmet dependencies:
powershell : Depends: libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.
实际上,经过仔细检查,文档清楚地指出:
支持 Ubuntu 14.04、Ubuntu 16.04、Ubuntu 17.04
我在 17.10,系统中的microsoft.list
文件应该是什么样的artful
?
无线网络是否可以通过以下方式更好地处理/etc/network/interfaces
:
thufir@doge:~$
thufir@doge:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
address 192.168.1.102
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 192.168.1.1, 8.8.8.8, 8.8.4.4
wpa-ssid 6^&*(%&$4
wpa-psk (^&*%^&$%#&#%^&
thufir@doge:~$
或通过网络计划?在 CLI 的上下文中。
其次,我如何确定/etc/network/interfaces
正在使用它?可能路由器只是简单地使用 DHCP 分配该特定 IP 地址network-manager
。
thufir@doge:~$
thufir@doge:~$ nmcli connection show
NAME UUID TYPE DEVICE
Wi-Fi connection 1 be9517ab-aadf-4a89-bbe5-1ea846a543d3 802-11-wireless wlp12s0
Wired connection 1 3f6263c6-cd4b-3e0d-b402-11b6c64fd5d1 802-3-ethernet --
thufir@doge:~$
thufir@doge:~$ nmcli device show
GENERAL.DEVICE: wlp12s0
GENERAL.TYPE: wifi
GENERAL.HWADDR: 00:1F:3C:CD:E6:AD
GENERAL.MTU: 0
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wi-Fi connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/0
IP4.ADDRESS[1]: 192.168.1.102/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.1.1
IP6.ADDRESS[1]: fe80::339d:b8d2:ab1b:3e07/64
IP6.GATEWAY:
GENERAL.DEVICE: enp9s0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 00:22:19:D1:9C:0B
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
WIRED-PROPERTIES.CARRIER: off
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY:
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY:
thufir@doge:~$