我喜欢 mpv 播放器,因为它具有现代简约的外观、只需鼠标滚动即可轻松移动视频以及强大的.mp4
视频渲染。
但是,我无法弄清楚如何更改播放速度,因为我可以在 VLC 的播放菜单中轻松做到这一点。我根本看不到任何 GUI 选项可以这样做。我也无法在wiki中找到相关的配置技巧。
因此,如果有隐藏按钮或配置调整来定义快捷键,我很感激你的提示。我在 Ubuntu 18.04 上使用 mpv。
在我的 Ubuntu 桌面上,该命令fdisk -l
显示 /dev/loopX up to /dev/loop23
. 我在 Ubuntu 18.04 LTS 上使用 gnome-fallback。
我想知道这些可能对操作系统的性能和稳定性产生什么影响,如果它们只是多余的,我该如何删除它们?
root@pc5:~# fdisk -l
...
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop15: 3.7 MiB, 3821568 bytes, 7464 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 /dev/loop16: 54.6 MiB, 57274368 bytes, 111864 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 /dev/loop17: 140.7 MiB, 147501056 bytes, 288088 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 /dev/loop18: 14.8 MiB, 15462400 bytes, 30200 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 /dev/loop19: 42.8 MiB, 44879872 bytes, 87656 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 /dev/loop20: 54.5 MiB, 57151488 bytes, 111624 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 /dev/loop21: 4.2 MiB, 4403200 bytes, 8600 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 /dev/loop22: 153.5 MiB, 160935936 bytes, 314328 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 /dev/loop23: 140.7 MiB, 147501056 bytes, 288088 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
输出df
:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 8128184 0 8128184 0% /dev
tmpfs 1630464 3716 1626748 1% /run
/dev/sda2 229184876 63255488 154217748 30% /
tmpfs 8152300 142672 8009628 2% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 8152300 0 8152300 0% /sys/fs/cgroup
/dev/loop2 160512 160512 0 100% /snap/gnome-3-28-1804/110
/dev/loop3 4352 4352 0 100% /snap/gnome-calculator/544
/dev/loop0 3840 3840 0 100% /snap/gnome-system-monitor/111
/dev/loop4 91264 91264 0 100% /snap/core/8039
/dev/loop1 1024 1024 0 100% /snap/gnome-logs/81
/dev/loop6 87936 87936 0 100% /snap/shotcut/55
/dev/loop5 406528 406528 0 100% /snap/redis-desktop-manager/332
/dev/loop8 91264 91264 0 100% /snap/core/8213
/dev/loop7 406656 406656 0 100% /snap/redis-desktop-manager/335
/dev/loop9 15104 15104 0 100% /snap/gnome-characters/367
/dev/loop11 157184 157184 0 100% /snap/chromium/949
/dev/loop12 87808 87808 0 100% /snap/shotcut/53
/dev/loop13 1024 1024 0 100% /snap/gnome-logs/73
/dev/loop14 45312 45312 0 100% /snap/gtk-common-themes/1353
/dev/loop16 55936 55936 0 100% /snap/core18/1279
/dev/loop15 3840 3840 0 100% /snap/gnome-system-monitor/107
/dev/loop10 159872 159872 0 100% /snap/gnome-3-28-1804/91
/dev/loop17 144128 144128 0 100% /snap/gnome-3-26-1604/97
/dev/sda1 523248 6232 517016 2% /boot/efi
/dev/loop18 15104 15104 0 100% /snap/gnome-characters/359
/dev/loop19 43904 43904 0 100% /snap/gtk-common-themes/1313
/dev/loop20 55936 55936 0 100% /snap/core18/1265
/dev/loop21 4352 4352 0 100% /snap/gnome-calculator/536
/dev/loop22 157184 157184 0 100% /snap/chromium/958
/dev/loop23 144128 144128 0 100% /snap/gnome-3-26-1604/98
/dev/sdb1 492127240 409174612 57930932 88% /home
tmpfs 1630460 16 1630444 1% /run/user/121
tmpfs 1630460 140 1630320 1% /run/user/1001
tmpfs 1630460 0 1630460 0% /run/user/0
在我的 Ubuntu PC 上,我需要使用10.0.2.2
而不是127.0.0.1
能够让 Android 模拟器连接到运行在localhost
. 所以想知道如何定义新IP?
我编辑了 /etc/hosts 并添加了
10.0.2.2 localhost
10.0.2.2 subdomain.localhost
而是使用/etc/init.d/hostname.sh
. 但是 ifconfig 仍然没有显示新的 ip。我怎样才能解决这个问题?
2.2.3
在我为这个问题安装 Android Studio 之后,我Ubuntu 14.04 LTS
困扰了几个小时:
我检查了bios,它显示支持vt-x,但我收到了
me@pc:~$ kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: For more detailed results, you should run this as root
HINT: sudo /usr/sbin/kvm-ok
在我的终端。我还按照本教程安装了 kvm ,我可以看到:
me@pc:~$ egrep -c '(vmx|svm)' /proc/cpuinfo
8
me@pc:~$ virsh -c qemu:///system list
Id Name State
----------------------------------------------------
但模拟器仍然拒绝加载。
me@pc:~$ uname -a
Linux pc 3.13.0-98-generic #145-Ubuntu SMP Sat Oct 8 20:13:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
我在工作室的控制台上收到此错误:
等待设备时出错:无法启动 AVD
我真的没有想法了。我感谢您的帮助。
更新:
root@pc:/home/me# sudo /usr/sbin/kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
INFO: KVM (vmx) is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
and then hard poweroff/poweron your system
KVM acceleration can NOT be used