我正在运行复选框,我经历了一个声音部分,感到无聊并终止了测试。问题是我的声音因此而发生了变化。听起来真的很沙哑,好像对扬声器来说太大声了。发生了什么,我该如何解决?有任何想法吗?也许我可以运行一些东西来重新初始化声音?请注意,重新启动没有帮助,这是最令人担忧的。
...好吧,这很奇怪。更改音量似乎已修复它。我应该把它留在这里让其他人找到吗?
我正在运行复选框,我经历了一个声音部分,感到无聊并终止了测试。问题是我的声音因此而发生了变化。听起来真的很沙哑,好像对扬声器来说太大声了。发生了什么,我该如何解决?有任何想法吗?也许我可以运行一些东西来重新初始化声音?请注意,重新启动没有帮助,这是最令人担忧的。
...好吧,这很奇怪。更改音量似乎已修复它。我应该把它留在这里让其他人找到吗?
鉴于此: Duplicity error has to do with python?
...和版本 16.04 LTS
如何安装更新版本?如果没有系统备份,我们就处于不合规状态,如果我们无法修复它,将被迫放弃 Ubuntu 平台。有问题的错误似乎已修复。什么是搁置?LTS 是“稳定”版本,对吧??
因此,您想尝试使用 PPA 中的应用程序,因此您可以像这样添加 PPA:
sudo add-apt-repository [some PPA]
然后你决定你不喜欢它,或者它是越野车或诸如此类的东西。删除一个的命令是什么?
所以我刚玩了几场战网游戏(特别是星际争霸),因为它讨厌协同作用。原因很明显,因为它是一款真正的鼠标密集型游戏,当你启动它时会控制一切。我有启动和停止协同的别名,但问题是我一直忘记在开始游戏之前使用它们,之后我已经投入使用。这真的让我很紧张。
该游戏是使用 PlayOnLinux 安装的。我要编辑什么脚本来插入会杀死协同作用的东西?PlayOnLinux 是否有一个标准的位置来放置用户脚本,或者是否有一些标准化的方法来做这种事情?
新信息 - 发现这个:
/usr/share/playonlinux/playonlinux --run "Battle.Net" %F
这是合适的还是有更好的地方?
所以我遇到了这个错误,这显然是一个已知问题。我正在寻找一种解决方法,直到它被修复,因为没有系统备份我无法承受。
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1380, in main
do_backup(action)
File "/usr/bin/duplicity", line 1401, in do_backup
sync_archive(decrypt)
File "/usr/bin/duplicity", line 1139, in sync_archive
remote_metafiles, ignored, rem_needpass = get_metafiles(remlist)
File "/usr/bin/duplicity", line 1029, in get_metafiles
pr = file_naming.parse(fn)
File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 400, in parse
pr = check_inc()
File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 340, in check_inc
t1 = str2time((m1 or m2).group("start_time"), short)
File "/usr/lib/python2.7/dist-packages/duplicity/file_naming.py", line 290, in str2time
t = dup_time.genstrtotime(timestr.upper())
File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 295, in genstrtotime
return override_curtime - intstringtoseconds(timestr)
File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 203, in intstringtoseconds
error()
File "/usr/lib/python2.7/dist-packages/duplicity/dup_time.py", line 194, in error
raise TimeException(bad_interval_string % interval_string)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
相关问题:
问题陈述:我有一个无法挂载的外部 USB 驱动器。
语境:
错误看起来像:
Error mounting /dev/sdc1 at /media/dude/External HD: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdc1" "/media/dude/External HD"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdc1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
(udisks-error-quark, 0)
所以我注意到通过蓝牙听音乐很不稳定。我偶尔会跳过。有想法该怎么解决这个吗?我已经尝试过设置它,/etc/pulse/default.pa
但这会导致我的所有设备(包括蓝牙耳机)从音频窗口中消失。
#load-module module-udev-detect
module-udev-detect tsched=0
其次是:
pulseaudio -k
作为记录,这对我来说似乎是一个日程安排问题,但 IDK 如何解决。想法?
进一步要求的信息:
lspci -knn | grep Net -A3; lsusb
0a:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)
Subsystem: ASUSTeK Computer Inc. BCM4352 802.11ac Wireless Network Adapter [1043:855c]
Kernel driver in use: wl
Kernel modules: bcma, wl
0c:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 01)
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 1f75:0917 Innostor Technology Corporation
Bus 004 Device 003: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 004 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 007: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 005: ID 1b1c:0c04 Corsair
Bus 003 Device 003: ID 0b05:17cf ASUSTek Computer, Inc.
Bus 003 Device 008: ID 1e7d:3264 ROCCAT
Bus 003 Device 006: ID 1e7d:2d51 ROCCAT Kone+ Mouse
Bus 003 Device 004: ID 1058:0740 Western Digital Technologies, Inc. My Passport Essential (WDBACY)
Bus 003 Device 002: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 003 Device 009: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
所以我想弄清楚的是如何创建一个可以运行 Ubuntu 的加密 USB 驱动器。
这将允许我将所有文件和我自己的操作系统放在口袋里。如果我松开它,什么都不会受到影响,我可以在大多数 PC 机器上运行它。我想一种方法可能是使用我当前的启动 U 盘。
我可以暂时拔掉我的硬盘驱动器并使用第二根棒作为安装目标。我错过了什么吗?有没有更好的办法?
我还想知道启动棒是否很特殊,以至于它们比常规安装更有可能在大多数机器上运行。这可能会让我感到美中不足。
安装它对于我们从 Mint 17 迁移到 Ubuntu 至关重要。
所以我看到了这个:
https://github.com/docker/docker/issues/20698libsystemd-journal0
..引用此页面:
http://packages.ubuntu.com/trusty/i386/libsystemd-journal0/download
...但是 xenial 没有类似的信息:
http://packages.ubuntu.com/xenial/i386/libsystemd-journal0/download
我尝试将此行添加到源文件中:
deb http://mirrors.kernel.org/ubuntu xenial main
我也尝试过手动下载和安装
libsystemd-journal0_204-5ubuntu20_i386.deb
...但是系统不会默默地安装它。
我刚刚升级到 xenial xerus。
没有 ~/.local/share/icons... 我必须创建它吗?它住在别的地方吗?
它不存在,搜索结果一无所获。我在这些地方保留了书签,这样我就可以轻松地创建自己的 *.desktop 文件。
https://wiki.ubuntu.com/Releases
Trusty Tahr (14.04) 的 EOL 日期为空白。什么时候结束生命?
我真的需要一些帮助来解决这个问题。
我已经来过这里:
如何在 Ubuntu 14.04 LTS 上安装 Juniper VPN?
http://mad-scientist.us/juniper.html
客户端打开然后关闭。它从命令行运行良好,但没有连接到任何东西。
防火墙已关闭:
user@box:~$ firewall
Chain INPUT (policy ACCEPT 21770 packets, 3492K bytes)
num pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 22171 packets, 1501K bytes)
num pkts bytes target prot opt in out source destination
user@box:~$
据我所知,所有 32 位软件包都已安装。我没有看到任何提示可能丢失的异常或警告。我知道寻找这些的所有地方吗?不,可能不是,但我有:
user@box ~ $ sudo apt-get install libc6:i386 zlib1g:i386 libgtk2-perl libwww-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
libwww-perl is already the newest version.
libgtk2-perl is already the newest version.
zlib1g:i386 is already the newest version.
libc6:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
...并且:
sudo update-alternatives --config java
[sudo] password for user:
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
2 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1070 manual mode
Press enter to keep the current choice[*], or type selection number:
从 CLI 启动时:
user@box:~$ sudo msjnc --connect --root
Enter your password or PID+SecureID:
Connecting to vpn.company.com (company) ................................. failed
The Juniper Network Connect VPN session did not start.
还:
/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java -classpath /home/user/.juniper_networks/network_connect/NC.jar NC ncui -h vpn.company.com -n -t -x
上面的命令弹出窗口,它确实提示输入密码,但是当我输入它时它就死了。我害怕的是可能有一个我不知道的额外密码,类似于 Cisco VPN 网络。
该update-alternatives
链接已在 中创建/usr/sbin
。
如何将 bluez-alsa 连接到音频设备?
我认为这台机器上的蓝牙可以工作,至少硬件可以。我已经看到它短暂地运行过一次,这意味着它可能运行的时间不止几秒钟。
我遇到了这个问题,但能够让它消失: https ://askubuntu.com/questions/690863/sound-fluctuates-wildly-back-and-forth-as-sound-device-rapidly-appears-and-disap
我有这个硬件:
sudo bluez-test-adapter list
[ /org/bluez/599/hci0 ]
Name = warmachine-0
Powered = 1
Devices = dbus.Array([], signature=dbus.Signature('o'), variant_level=1)
DiscoverableTimeout = 0
PairableTimeout = 0
Discoverable = 1
Address = 24:0A:64:03:BF:94
Discovering = 0
Pairable = 1
Class = 0x000000
UUIDs = dbus.Array([dbus.String(u'00001000-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001001-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000112d-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001112-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111f-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110c-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110a-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110b-0000-1000-8000-00805f9b34fb')], signature=dbus.Signature('s'), variant_level=1)
从启动时的 DMesg:
[ 9.342995] Bluetooth: Core ver 2.17
[ 9.343006] NET: Registered protocol family 31
[ 9.343007] Bluetooth: HCI device and connection manager initialized
[ 9.343013] Bluetooth: HCI socket layer initialized
[ 9.343015] Bluetooth: L2CAP socket layer initialized
[ 9.343017] Bluetooth: SCO socket layer initialized
[ 9.344379] [drm] Initialized drm 1.1.0 20060810
[ 9.350125] Bluetooth: RFCOMM TTY layer initialized
[ 9.350134] Bluetooth: RFCOMM socket layer initialized
[ 9.350139] Bluetooth: RFCOMM ver 1.11
[ 9.351624] cfg80211: Calling CRDA to update world regulatory domain
[ 9.354582] init: avahi-cups-reload main process (626) terminated with status 1
[ 9.354598] ata2.00: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 9.354615] ata2.00: irq_stat 0x08000002, interface fatal error
[ 9.354628] ata2.00: failed command: IDENTIFY PACKET DEVICE
[ 9.354643] ata2.00: cmd a1/00:01:00:00:00/00:00:00:00:00/00 tag 7 pio 512 in
[ 9.354643] res 50/00:03:00:24:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[ 9.354669] ata2.00: status: { DRDY }
[ 9.354680] ata2: hard resetting link
[ 9.356030] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 9.356032] Bluetooth: BNEP filters: protocol multicast
[ 9.356037] Bluetooth: BNEP socket layer initialized
还
sudo bluez-simple-agent hci0 24:0A:64:03:BF:94 Creating device failed: org.bluez.Error.ConnectionAttemptFailed: Page Timeout
...最后。
lsusb; lspci -nnk | grep -iA2net; uname -a; dmesg | egrep -i 'blue|firm'; rfkill list all; hciconfig -a
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 174c:3074 ASMedia Technology Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 1b1c:0c04 Corsair
Bus 003 Device 003: ID 0b05:17cf ASUSTek Computer, Inc.
Bus 003 Device 008: ID 1e7d:3264 ROCCAT
Bus 003 Device 007: ID 1e7d:2d51 ROCCAT Kone+ Mouse
Bus 003 Device 002: ID 174c:2074 ASMedia Technology Inc.
Bus 003 Device 006: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 003 Device 005: ID 046d:0994 Logitech, Inc. QuickCam Orbit/Sphere AF
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
grep: 2net: invalid context length argument
Linux warmachine 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[ 0.189642] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[ 9.342995] Bluetooth: Core ver 2.17
[ 9.343007] Bluetooth: HCI device and connection manager initialized
[ 9.343013] Bluetooth: HCI socket layer initialized
[ 9.343015] Bluetooth: L2CAP socket layer initialized
[ 9.343017] Bluetooth: SCO socket layer initialized
[ 9.350125] Bluetooth: RFCOMM TTY layer initialized
[ 9.350134] Bluetooth: RFCOMM socket layer initialized
[ 9.350139] Bluetooth: RFCOMM ver 1.11
[ 9.356030] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 9.356032] Bluetooth: BNEP filters: protocol multicast
[ 9.356037] Bluetooth: BNEP socket layer initialized
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: brcmwl-0: Wireless LAN
Soft blocked: yes
Hard blocked: no
hci0: Type: BR/EDR Bus: USB
BD Address: 24:0A:64:03:BF:94 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN ISCAN
RX bytes:934 acl:0 sco:0 events:88 errors:0
TX bytes:1739 acl:0 sco:0 commands:80 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'warmachine-0'
Class: 0x6c0100
Service Classes: Rendering, Capturing, Audio, Telephony
Device Class: Computer, Uncategorized
HCI Version: 4.0 (0x6) Revision: 0x1000
LMP Version: 4.0 (0x6) Subversion: 0x220e
Manufacturer: Broadcom Corporation (15)
我这里有几个蓝牙设备,我的手机和耳机,但它们根本不扫描。...但我已经看到这台机器注册了蓝牙设备,它们只是不会保持这种状态,之后您根本无法扫描任何东西。
dmesg | egrep -i 'blue|firm'
[ 0.199286] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[ 9.554021] Bluetooth: Core ver 2.17
[ 9.554038] Bluetooth: HCI device and connection manager initialized
[ 9.554045] Bluetooth: HCI socket layer initialized
[ 9.554047] Bluetooth: L2CAP socket layer initialized
[ 9.554051] Bluetooth: SCO socket layer initialized
[ 9.556384] Bluetooth: RFCOMM TTY layer initialized
[ 9.556389] Bluetooth: RFCOMM socket layer initialized
[ 9.556392] Bluetooth: RFCOMM ver 1.11
[ 9.556650] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 9.556652] Bluetooth: BNEP filters: protocol multicast
[ 9.556655] Bluetooth: BNEP socket layer initialized
我有一个 Windows 分区,我将其更改为支持 VirtualBox VM。现在我可以使用它占用的额外空间了。LVM2 正在 Linux 端使用,但此后已删除的 Windows 分区早于 LVM 设置。有问题的空间将被添加到/home
分区中。我创建了一个管理员用户,该用户的主目录不在其中,/home
这样我就可以以他的身份登录并完成此操作。程序?我需要弄乱卷组吗?我需要先使用fdisk
还是可以使用pv*
命令?这种情况似乎比 gparted 或 lvm(GUI 工具)可以处理的更复杂。
附加信息:
dude@machine:~$ sudo lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
home ubuntu-vg -wi-ao--- 214.87g
root ubuntu-vg -wi-ao--- 191.39g
swap_1 ubuntu-vg -wi-a---- 31.94g
dude@machine:~$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976771055 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
Disk identifier: 0xca18e148
Note: Below sdb3 is physical and sdb5 logical but it's the same space.
Device Boot Start End Blocks Id System
/dev/sdb3 526147582 976769023 225310721 5 Extended
/dev/sdb5 526147584 976769023 225310720 8e Linux LVM
dude@machine:~$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root ext4 197401876 13355496 173995820 8% /
none tmpfs 4 0 4 0% /sys/fs/cgroup
udev devtmpfs 16428232 4 16428228 1% /dev
tmpfs tmpfs 3288660 1580 3287080 1% /run
none tmpfs 5120 0 5120 0% /run/lock
none tmpfs 16443284 19692 16423592 1% /run/shm
none tmpfs 102400 44 102356 1% /run/user
/dev/sda1 ext2 240972 51593 176938 23% /boot
/dev/mapper/ubuntu--vg-home ext4 221638340 24327232 186029496 12% /home
/home/dude/.Private ecryptfs 221638340 24327232 186029496 12% /home/dude
因此,我在桌面的固定区域看到了大量透明日志或运行日志或 htop 实例的显示。我认为这类似于 root-tail,但我无法让 root-tail 工作。这让我怀疑它要么是以另一种方式完成的,要么如果你知道如何解决它,这个问题就微不足道了。两种情况都可能是这样。
所以我尝试了一些例子:
sudo root-tail -g 800x250+100+50 /var/log/syslog,green
上面的示例显示没有错误,但也没有显示。
user@machine:/home/user/scripts# sudo root-tail -g 800x250+100+50 -font fixed /var/log/syslog,green /var/log/auth.log,red,'ALERT'
Missing charsets in String to FontSet conversion (ISO8859-2)
Missing charsets in String to FontSet conversion (ISO8859-2)
没有。又出击了。
线索?
在我们深入之前,我的问题是:
如果这是错误的方法,或者我做错了,那么正确的方法是什么?
根据这个方法: https ://help.ubuntu.com/community/EncryptedHome
所以我在上面的 howto 中看到了这一点:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/362427/comments/12
问题是如果没有本地登录,它是行不通的。怀疑作者忘记注销所有本地用户并从远程进行测试。可能有一个本地 tty 在某处的隐藏屏幕上登录。
注意:密码验证被禁用,只有公钥。
从远程机器我得到:
myuser@remotemachine:~$ ssh oh
Permission denied (publickey).
通过以下测试程序验证:
从相关机器上的 GUI 登录屏幕:
[CTRL][ALT][F1]
Ubuntu 14.04.2 LTS otherhost tty1
otherhost login: myuser
Password: #######
Last login: Thu Apr ...
... etc. etc.
myuser@otherhost:~$ w
17:00:57 up 2:05, 1 user, load average: 0.00, 0.01, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
myuser tty1 16:40 1.00s 0.22s 0.00s w
好的,所以没有其他用户登录。只有这个本地 tty。然后:
myuser@otherhost:~$ cd ..
myuser@otherhost:/home$ cp ~/.ssh/authorized_keys /tmp/myuser.authorized_keys
myuser@otherhost:/home$ umount.ecryptfs_private;cd $HOME
myuser@otherhost:~$ mkdir -m 700 .ssh
myuser@otherhost:~$ chmod 500 .
myuser@otherhost:~$ cat /tmp/myuser.authorized_keys > .ssh/authorized_keys
myuser@otherhost:~$ /sbin/mount.ecryptfs_private
Signature not found in user keyring
Perhaps try the interactive 'ecryptfs-mount-private'
好的,那是第一个问题。
myuser@otherhost:~$ ecryptfs-mount-private
Enter your login passphrase:
Inserted auth tok with sig [XXXXXXXXXXXXXXXX] into the user session keyring
INFO: Your private directory has been mounted.
INFO: To see this change in your current shell:
cd /home/jim
myuser@otherhost:~$ ls
Access-Your-Private-Data.desktop README.txt
myuser@otherhost:~$ cd /home/jim
检查以确保我仍然是唯一的用户,然后退出并切换机器:
myuser@otherhost:~$ w
17:00:57 up 2:05, 1 user, load average: 0.00, 0.01, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
myuser tty1 16:40 1.00s 0.22s 0.00s w
myuser@otherhost:~$ exit
现在可以从没有用户登录到具有加密主目录的框的远程计算机:
myuser@otherhost:~$ ssh oh
Permission denied (publickey).
myuser@otherhost:~$
调高冗长:
myuser@otherhost:~$ ssh -v oh
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to oh [192.168.1.111] port 22.
debug1: Connection established.
debug1: identity file /home/myuser/.ssh/id_rsa type 1
debug1: identity file /home/myuser/.ssh/id_rsa-cert type -1
debug1: identity file /home/myuser/.ssh/id_dsa type -1
debug1: identity file /home/myuser/.ssh/id_dsa-cert type -1
debug1: identity file /home/myuser/.ssh/id_ecdsa type -1
debug1: identity file /home/myuser/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/myuser/.ssh/id_ed25519 type -1
debug1: identity file /home/myuser/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA *********************************************
debug1: Host 'oh' is known and matches the ECDSA host key.
debug1: Found key in /home/myuser/.ssh/known_hosts:2
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/myuser/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/myuser/.ssh/id_dsa
debug1: Trying private key: /home/myuser/.ssh/id_*******
debug1: Trying private key: /home/myuser/.ssh/id_*******
debug1: No more authentication methods to try.
Permission denied (publickey).
上下文:我有一台大显示器、一台台式机和一台笔记本电脑。我在家时使用大型显示器和 HDMI 开关。这给协同带来了一个问题,因为如果屏幕发生变化,它无法识别屏幕的各个部分。如果是这种情况,您必须重新启动笔记本电脑上的协同客户端才能访问整个屏幕。
当我更改屏幕时,如何使用脚本自动重启 synergy?我知道如何编写脚本,但我不知道从哪里启动它,或者是否有这样的地方。请注意,我指的是物理屏幕而不是协同屏幕。
所以我正在编写别名,以便我可以启动/停止 pulseaudio 以运行某些 Wine 应用程序。我的别名目前看起来像:
# Reload pulse audio devices
alias rldpulsdev='sudo service avahi-daemon restart'
#Wine needs to use ALSA directly. PulseAudio interferes with it.
#kill pulseaudio
alias kpa='echo "autospawn = no" > ~/.config/pulse/client.conf;sudo service pulseaudio stop'
#start pulseaudio
alias spa='echo "autospawn = yes" > ~/.config/pulse/client.conf;sudo service pulseaudio start;rldpulsdev'
问题:如果我使用上述别名终止 pulseaudio,所有设备都会从声音管理小部件中消失,扬声器图标也会从托盘中消失。当脉冲关闭时这没关系,但我希望启动别名来解决这个问题。上面的“rldpulsdev”别名是谜题的一部分,但我肯定还遗漏了一些东西。请提供线索?如果我摆弄它并可能重新启动或重新登录,它最终会自行修复,但这本身就意味着我可以通过别名修复它。