AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1471

Tim's questions

Martin Hope
Tim
Asked: 2023-10-25 18:34:41 +0800 CST

如何退出 Evince 中的搜索框?

  • 5

在Evince 42.3中,当我在evince窗口顶部的搜索框中搜索某些内容后,我无法退出搜索框,因此用于显示搜索结果的左侧面板可以返回显示pdf的轮廓文件。我怎样才能退出它?谢谢。

在此输入图像描述

evince
  • 1 个回答
  • 34 Views
Martin Hope
Tim
Asked: 2020-03-30 13:09:54 +0800 CST

我是否必须为安装 R 的存储库添加公钥?

  • 2

我按照https://cloud.r-project.org/bin/linux/ubuntu/README.html安装 R

$ echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" | sudo tee -a /etc/apt/sources.list
$ sudo apt-get update
...
Err:14 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
Reading package lists... Done 
E: The repository 'http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'https://download.virtualbox.org/virtualbox/debian bionic InRelease' doesn't support architecture 'i386'
W: GPG error: https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
E: The repository 'https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
...
$ sudo apt-get install r-base

错误消息是否apt-get update意味着我必须为存储库添加公钥?

如果我离开它会有什么后果?

为什么我还能跑apt-get install r-base?

为什么以下失败?

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
Executing: /tmp/apt-key-gpghome.Z9eYn6e4zV/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
gpg: keyserver receive failed: Server indicated a failure

谢谢。

r apt
  • 4 个回答
  • 10688 Views
Martin Hope
Tim
Asked: 2019-05-23 04:29:43 +0800 CST

Lubuntu 18.04 上的 Google Chrome 浏览器变得无色

  • 1

在我的 Lubuntu 18.04 上的 Google Chrome 浏览器中,整个窗口和选项卡的色调经常变成灰色,即无色。我想知道问题是什么以及如何解决问题?谢谢

在此处输入图像描述

扩展是:

在此处输入图像描述

google-chrome
  • 1 个回答
  • 661 Views
Martin Hope
Tim
Asked: 2019-04-03 05:35:05 +0800 CST

我怎样才能找到可以与笔记本电脑一起使用的 RAM 的要求?

  • 0

我有一台笔记本电脑(型号名称:SATELLITE C55DT-A5244),想找一个 16GB 的内存来替换里面的 4GB 内存。

我如何从 Lubuntu 18.04 中找出可与笔记本电脑配合使用的 RAM 规格的要求?下面的输出是否lshw足够?

新 RAM 必须满足哪些规格?容量、频率、延迟等等?

谢谢。

$ sudo lshw

lubuntu
    description: Notebook
    product: Satellite C55Dt-A (PSCFWU)
    vendor: TOSHIBA
    version: PSCFWU-00X005
    serial:  
    width: 64 bits
    capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
    configuration: boot=normal chassis=notebook family=Durban Curiosity 10AN sku=PSCFWU uuid=CD932420-D25D-11E2-B47A-008CFA609299
  *-core
       description: Motherboard
       product: Portable PC
       vendor: TOSHIBA
       physical id: 0
       version: MP
       serial: 1
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: Insyde Corp.
          physical id: 0
          version: 1.80
          date: 01/27/2014
          size: 128KiB
          capacity: 4032KiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int9keyboard int10video acpi usb agp smartbattery biosbootspecification netboot uefi
     *-cpu
          description: CPU
          product: AMD A4-5000 APU with Radeon(TM) HD Graphics
          vendor: Advanced Micro Devices [AMD]
          physical id: 4
          bus info: cpu@0
          version: AMD A4-5000 APU with Radeon(TM) HD Graphics
          serial: NotSupport
          slot: Socket FT1
          size: 874MHz
          capacity: 1500MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt topoext perfctr_nb bpext perfctr_llc hw_pstate proc_feedback vmmcall bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale flushbyasid decodeassists pausefilter pfthreshold overflow_recov cpufreq
          configuration: cores=4 enabledcores=4 threads=4
        *-cache:0
             description: L1 cache
             physical id: 8
             slot: L1 Cache
             size: 256KiB
             capacity: 256KiB
             clock: 1GHz (1.0ns)
             capabilities: pipeline-burst internal write-back unified
             configuration: level=1
        *-cache:1
             description: L2 cache
             physical id: 9
             slot: L2 Cache
             size: 2MiB
             capacity: 2MiB
             clock: 1GHz (1.0ns)
             capabilities: pipeline-burst internal write-back unified
             configuration: level=2
     *-memory
          description: System Memory
          physical id: d
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous Unbuffered (Unregistered) 533 MHz (1.9 ns)
             product: M471B5673FH0-CF8
             vendor: Samsung
             physical id: 0
             serial:  
             slot: DIMM 0
             size: 2GiB
             width: 64 bits
             clock: 533MHz (1.9ns)
        *-bank:1
             description: SODIMM DDR3 Synchronous Unbuffered (Unregistered) 800 MHz (1.2 ns)
             product: M471B5773CHS-CK0
             vendor: Samsung
             physical id: 1
             serial: 
             slot: DIMM 1
             size: 2GiB
             width: 64 bits
             clock: 800MHz (1.2ns)
     *-pci:0
          description: Host bridge
          product: Family 16h Processor Root Complex
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 00
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: Kabini [Radeon HD 8330]
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
             configuration: driver=radeon latency=0
             resources: irq:35 memory:e0000000-efffffff memory:f2000000-f27fffff ioport:4000(size=256) memory:f2900000-f293ffff memory:c0000-dffff
        *-multimedia:0
             description: Audio device
             product: Kabini HDMI/DP Audio
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1.1
             bus info: pci@0000:00:01.1
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm pciexpress msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:37 memory:f2940000-f2943fff
        *-pci:0
             description: PCI bridge
             product: Family 16h Processor Functions 5:1
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 2.2
             bus info: pci@0000:00:02.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:24 ioport:3000(size=4096) memory:f1000000-f1ffffff ioport:f0000000(size=16777216)
           *-network
                description: Ethernet interface
                product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: enp1s0
                version: 07
                serial: 
                size: 10Mbit/s
                capacity: 100Mbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
                resources: irq:32 ioport:3000(size=256) memory:f1000000-f1000fff memory:f0000000-f0003fff
        *-pci:1
             description: PCI bridge
             product: Family 16h Processor Functions 5:1
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 2.3
             bus info: pci@0000:00:02.3
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:25 ioport:2000(size=4096) memory:f2800000-f28fffff
           *-network
                description: Wireless interface
                product: RTL8188EE Wireless Network Adapter
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:05:00.0
                logical name: wlp5s0
                version: 01
                serial: 
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=rtl8188ee driverversion=4.15.0-20-generic firmware=N/A ip=192.168.1.95 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:40 ioport:2000(size=256) memory:f2800000-f2803fff
        *-usb:0
             description: USB controller
             product: FCH USB XHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi msix pciexpress xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:18 memory:f2948000-f2949fff
        *-storage
             description: SATA controller
             product: FCH SATA Controller [AHCI mode]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 11
             bus info: pci@0000:00:11.0
             version: 00
             width: 32 bits
             clock: 66MHz
             capabilities: storage pm msi ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=64
             resources: irq:33 ioport:4118(size=8) ioport:4124(size=4) ioport:4110(size=8) ioport:4120(size=4) ioport:4100(size=16) memory:f294e000-f294e3ff
        *-usb:1
             description: USB controller
             product: FCH USB OHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 12
             bus info: pci@0000:00:12.0
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: ohci bus_master
             configuration: driver=ohci-pci latency=32
             resources: irq:18 memory:f294d000-f294dfff
        *-usb:2
             description: USB controller
             product: FCH USB EHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 12.2
             bus info: pci@0000:00:12.2
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=32
             resources: irq:17 memory:f294c000-f294c0ff
        *-usb:3
             description: USB controller
             product: FCH USB OHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 13
             bus info: pci@0000:00:13.0
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: ohci bus_master
             configuration: driver=ohci-pci latency=32
             resources: irq:18 memory:f294b000-f294bfff
        *-usb:4
             description: USB controller
             product: FCH USB EHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 13.2
             bus info: pci@0000:00:13.2
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=32
             resources: irq:17 memory:f294a000-f294a0ff
        *-serial UNCLAIMED
             description: SMBus
             product: FCH SMBus Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 3a
             width: 32 bits
             clock: 66MHz
             configuration: latency=0
        *-multimedia:1
             description: Audio device
             product: FCH Azalia Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.2
             bus info: pci@0000:00:14.2
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:38 memory:f2944000-f2947fff
        *-isa
             description: ISA bridge
             product: FCH LPC Bridge
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.3
             bus info: pci@0000:00:14.3
             version: 11
             width: 32 bits
             clock: 66MHz
             capabilities: isa bus_master
             configuration: latency=0
     *-pci:1
          description: Host bridge
          product: Family 16h Processor Function 0
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 101
          bus info: pci@0000:00:02.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:2
          description: Host bridge
          product: Family 16h Processor Function 0
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 102
          bus info: pci@0000:00:18.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:3
          description: Host bridge
          product: Family 16h Processor Function 1
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 103
          bus info: pci@0000:00:18.1
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:4
          description: Host bridge
          product: Family 16h Processor Function 2
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 104
          bus info: pci@0000:00:18.2
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:5
          description: Host bridge
          product: Family 16h Processor Function 3
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 105
          bus info: pci@0000:00:18.3
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=k10temp
          resources: irq:0
     *-pci:6
          description: Host bridge
          product: Family 16h Processor Function 4
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 106
          bus info: pci@0000:00:18.4
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=fam15h_power
          resources: irq:0
     *-pci:7
          description: Host bridge
          product: Family 16h Processor Function 5
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 107
          bus info: pci@0000:00:18.5
          version: 00
          width: 32 bits
          clock: 33MHz
     *-scsi:0
          physical id: 1
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: TOSHIBA MQ01ABF0
             vendor: Toshiba
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 3M
             serial: 
             size: 465GiB (500GB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=b3b8c372-58cc-4b4f-8586-b1ccd8d87fc4 logicalsectorsize=512 sectorsize=512
           *-volume:0
                description: Windows NTFS volume
                vendor: Windows
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                version: 3.1
                serial: 
                size: 1022MiB
                capacity: 1023MiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-05-02 21:30:19 filesystem=ntfs label=System modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:1
                description: Windows FAT volume
                vendor: MSDOS5.0
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                version: FAT32
                serial: 
                size: 255MiB
                capacity: 259MiB
                capabilities: boot precious readonly hidden nomount fat initialized
                configuration: FATs=2 filesystem=fat name=Basic data partition
           *-volume:2
                description: Windows NTFS volume
                vendor: Windows
                physical id: 3
                bus info: scsi@0:0.0.0,3
                logical name: /dev/sda3
                version: 3.1
                serial: 
                size: 122MiB
                capacity: 127MiB
                capabilities: nofs precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-05-02 21:30:23 filesystem=ntfs modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:3
                description: Windows NTFS volume
                vendor: Windows
                physical id: 4
                bus info: scsi@0:0.0.0,4
                logical name: /dev/sda4
                logical name: /media/lubuntu/TI10664800G
                version: 3.1
                serial: 
                size: 226GiB
                capacity: 226GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2013-05-02 21:30:26 filesystem=ntfs label=TI10664800G mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 name=Basic data partition state=mounted
           *-volume:4
                description: Windows NTFS volume
                vendor: Windows
                physical id: 5
                bus info: scsi@0:0.0.0,5
                logical name: /dev/sda5
                version: 3.1
                serial: 
                size: 325MiB
                capacity: 349MiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-11-05 08:04:12 filesystem=ntfs modified_by_chkdsk=true mounted_on_nt4=true resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:5
                description: Windows NTFS volume
                vendor: Windows
                physical id: 6
                bus info: scsi@0:0.0.0,6
                logical name: /dev/sda6
                logical name: /media/lubuntu/New Volume
                version: 3.1
                serial: 
                size: 226GiB
                capacity: 226GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2013-08-25 01:12:31 filesystem=ntfs label=New Volume modified_by_chkdsk=true mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 mounted_on_nt4=true name=Basic data partition resize_log_file=true state=mounted upgrade_on_mount=true
           *-volume:6
                description: Windows NTFS volume
                vendor: Windows
                physical id: 7
                bus info: scsi@0:0.0.0,7
                logical name: /dev/sda7
                version: 3.1
                serial: 
                size: 11GiB
                capacity: 11GiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-06-15 07:37:53 filesystem=ntfs label=Recovery name=Basic data partition state=clean
     *-scsi:1
          physical id: 2
          logical name: scsi1
          capabilities: emulated
        *-cdrom
             description: DVD-RAM writer
             product: CDDVDW SU-208DB
             vendor: TSSTcorp
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/cdrw
             logical name: /dev/dvd
             logical name: /dev/dvdrw
             logical name: /dev/sr0
             version: TF01
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc
     *-scsi:2
          physical id: 3
          bus info: usb@5:1
          logical name: scsi2
          capabilities: emulated scsi-host
          configuration: driver=usb-storage
        *-disk
             description: SCSI Disk
             product: UDisk
             vendor: General
             physical id: 0.0.0
             bus info: scsi@2:0.0.0
             logical name: /dev/sdb
             logical name: /cdrom
             version: 5.00
             size: 3840MiB (4026MB)
             capabilities: removable
             configuration: ansiversion=2 logicalsectorsize=512 mount.fstype=iso9660 mount.options=ro,noatime,nojoliet,check=s,map=n,blocksize=2048 sectorsize=512 state=mounted
           *-medium
                physical id: 0
                logical name: /dev/sdb
                logical name: /cdrom
                size: 3840MiB (4026MB)
                capabilities: partitioned partitioned:dos
                configuration: mount.fstype=iso9660 mount.options=ro,noatime,nojoliet,check=s,map=n,blocksize=2048 signature=67e97428 state=mounted
              *-volume
                   description: Windows FAT volume
                   vendor: mkfs.fat
                   physical id: 2
                   logical name: /dev/sdb2
                   version: FAT12
                   serial: 
                   size: 15EiB
                   capabilities: primary boot fat initialized
                   configuration: FATs=2 filesystem=fat
laptop ram motherboard
  • 1 个回答
  • 133 Views
Martin Hope
Tim
Asked: 2019-02-16 21:14:26 +0800 CST

这台笔记本电脑支持的型号、当前内存大小和最大内存大小是多少?[复制]

  • -1
这个问题在这里已经有了答案:
如何找到我的硬件详细信息? (19 个回答)
我可以在特定硬件上使用的最大 RAM 量是多少 6 个答案
3年前关闭。

我在笔记本电脑上启动了一个实时的 Lubuntu usb,然后运行lshw如下所示。(如果我错过了,请帮我删除输出中的私人信息。我只删除了序列号。还有什么我想删除的吗?)

它目前有 4GB RAM 是否正确?

笔记本电脑可以支持的最大 RAM 是多少?

  • 笔记本电脑的型号是“C55Dt-A (PSCFWU)”吗?之后,我在 https://www.crucial.com/usa/en/compatible-upgrade-for/Toshiba/satellite-c55dt-a-(pscfwu-03p005)找到了“最大内存:8GB”。

  • 如果我改为搜索“C55Dt-A”,我会在https://www.cnet.com/products/toshiba-satellite-c55dt-a5305-15-6-a6-5200-4-gb-ram找到最大 16GB RAM 支持-750-gb-hdd-us/和https://support.toshiba.com/supportmodel/PSCFWU-02000D ( https://support.toshiba.com/support/staticContentDetail?contentId=4004241&isFromTOCLink=false )

笔记本电脑支持的正确最大内存是多少?笔记本电脑的型号是什么?谢谢。

$ sudo lshw

lubuntu
    description: Notebook
    product: Satellite C55Dt-A (PSCFWU)
    vendor: TOSHIBA
    version: PSCFWU-00X005
    serial:  
    width: 64 bits
    capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
    configuration: boot=normal chassis=notebook family=Durban Curiosity 10AN sku=PSCFWU uuid=CD932420-D25D-11E2-B47A-008CFA609299
  *-core
       description: Motherboard
       product: Portable PC
       vendor: TOSHIBA
       physical id: 0
       version: MP
       serial: 1
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: Insyde Corp.
          physical id: 0
          version: 1.80
          date: 01/27/2014
          size: 128KiB
          capacity: 4032KiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int9keyboard int10video acpi usb agp smartbattery biosbootspecification netboot uefi
     *-cpu
          description: CPU
          product: AMD A4-5000 APU with Radeon(TM) HD Graphics
          vendor: Advanced Micro Devices [AMD]
          physical id: 4
          bus info: cpu@0
          version: AMD A4-5000 APU with Radeon(TM) HD Graphics
          serial: NotSupport
          slot: Socket FT1
          size: 874MHz
          capacity: 1500MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt topoext perfctr_nb bpext perfctr_llc hw_pstate proc_feedback vmmcall bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale flushbyasid decodeassists pausefilter pfthreshold overflow_recov cpufreq
          configuration: cores=4 enabledcores=4 threads=4
        *-cache:0
             description: L1 cache
             physical id: 8
             slot: L1 Cache
             size: 256KiB
             capacity: 256KiB
             clock: 1GHz (1.0ns)
             capabilities: pipeline-burst internal write-back unified
             configuration: level=1
        *-cache:1
             description: L2 cache
             physical id: 9
             slot: L2 Cache
             size: 2MiB
             capacity: 2MiB
             clock: 1GHz (1.0ns)
             capabilities: pipeline-burst internal write-back unified
             configuration: level=2
     *-memory
          description: System Memory
          physical id: d
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous Unbuffered (Unregistered) 533 MHz (1.9 ns)
             product: M471B5673FH0-CF8
             vendor: Samsung
             physical id: 0
             serial:  
             slot: DIMM 0
             size: 2GiB
             width: 64 bits
             clock: 533MHz (1.9ns)
        *-bank:1
             description: SODIMM DDR3 Synchronous Unbuffered (Unregistered) 800 MHz (1.2 ns)
             product: M471B5773CHS-CK0
             vendor: Samsung
             physical id: 1
             serial: 
             slot: DIMM 1
             size: 2GiB
             width: 64 bits
             clock: 800MHz (1.2ns)
     *-pci:0
          description: Host bridge
          product: Family 16h Processor Root Complex
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 00
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: Kabini [Radeon HD 8330]
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
             configuration: driver=radeon latency=0
             resources: irq:35 memory:e0000000-efffffff memory:f2000000-f27fffff ioport:4000(size=256) memory:f2900000-f293ffff memory:c0000-dffff
        *-multimedia:0
             description: Audio device
             product: Kabini HDMI/DP Audio
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1.1
             bus info: pci@0000:00:01.1
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm pciexpress msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:37 memory:f2940000-f2943fff
        *-pci:0
             description: PCI bridge
             product: Family 16h Processor Functions 5:1
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 2.2
             bus info: pci@0000:00:02.2
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:24 ioport:3000(size=4096) memory:f1000000-f1ffffff ioport:f0000000(size=16777216)
           *-network
                description: Ethernet interface
                product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: enp1s0
                version: 07
                serial: 
                size: 10Mbit/s
                capacity: 100Mbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
                resources: irq:32 ioport:3000(size=256) memory:f1000000-f1000fff memory:f0000000-f0003fff
        *-pci:1
             description: PCI bridge
             product: Family 16h Processor Functions 5:1
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 2.3
             bus info: pci@0000:00:02.3
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:25 ioport:2000(size=4096) memory:f2800000-f28fffff
           *-network
                description: Wireless interface
                product: RTL8188EE Wireless Network Adapter
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:05:00.0
                logical name: wlp5s0
                version: 01
                serial: 
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=rtl8188ee driverversion=4.15.0-20-generic firmware=N/A ip=192.168.1.95 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:40 ioport:2000(size=256) memory:f2800000-f2803fff
        *-usb:0
             description: USB controller
             product: FCH USB XHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi msix pciexpress xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:18 memory:f2948000-f2949fff
        *-storage
             description: SATA controller
             product: FCH SATA Controller [AHCI mode]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 11
             bus info: pci@0000:00:11.0
             version: 00
             width: 32 bits
             clock: 66MHz
             capabilities: storage pm msi ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=64
             resources: irq:33 ioport:4118(size=8) ioport:4124(size=4) ioport:4110(size=8) ioport:4120(size=4) ioport:4100(size=16) memory:f294e000-f294e3ff
        *-usb:1
             description: USB controller
             product: FCH USB OHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 12
             bus info: pci@0000:00:12.0
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: ohci bus_master
             configuration: driver=ohci-pci latency=32
             resources: irq:18 memory:f294d000-f294dfff
        *-usb:2
             description: USB controller
             product: FCH USB EHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 12.2
             bus info: pci@0000:00:12.2
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=32
             resources: irq:17 memory:f294c000-f294c0ff
        *-usb:3
             description: USB controller
             product: FCH USB OHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 13
             bus info: pci@0000:00:13.0
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: ohci bus_master
             configuration: driver=ohci-pci latency=32
             resources: irq:18 memory:f294b000-f294bfff
        *-usb:4
             description: USB controller
             product: FCH USB EHCI Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 13.2
             bus info: pci@0000:00:13.2
             version: 39
             width: 32 bits
             clock: 66MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci-pci latency=32
             resources: irq:17 memory:f294a000-f294a0ff
        *-serial UNCLAIMED
             description: SMBus
             product: FCH SMBus Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 3a
             width: 32 bits
             clock: 66MHz
             configuration: latency=0
        *-multimedia:1
             description: Audio device
             product: FCH Azalia Controller
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.2
             bus info: pci@0000:00:14.2
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:38 memory:f2944000-f2947fff
        *-isa
             description: ISA bridge
             product: FCH LPC Bridge
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: 14.3
             bus info: pci@0000:00:14.3
             version: 11
             width: 32 bits
             clock: 66MHz
             capabilities: isa bus_master
             configuration: latency=0
     *-pci:1
          description: Host bridge
          product: Family 16h Processor Function 0
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 101
          bus info: pci@0000:00:02.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:2
          description: Host bridge
          product: Family 16h Processor Function 0
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 102
          bus info: pci@0000:00:18.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:3
          description: Host bridge
          product: Family 16h Processor Function 1
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 103
          bus info: pci@0000:00:18.1
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:4
          description: Host bridge
          product: Family 16h Processor Function 2
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 104
          bus info: pci@0000:00:18.2
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:5
          description: Host bridge
          product: Family 16h Processor Function 3
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 105
          bus info: pci@0000:00:18.3
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=k10temp
          resources: irq:0
     *-pci:6
          description: Host bridge
          product: Family 16h Processor Function 4
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 106
          bus info: pci@0000:00:18.4
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=fam15h_power
          resources: irq:0
     *-pci:7
          description: Host bridge
          product: Family 16h Processor Function 5
          vendor: Advanced Micro Devices, Inc. [AMD]
          physical id: 107
          bus info: pci@0000:00:18.5
          version: 00
          width: 32 bits
          clock: 33MHz
     *-scsi:0
          physical id: 1
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: TOSHIBA MQ01ABF0
             vendor: Toshiba
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 3M
             serial: 
             size: 465GiB (500GB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=b3b8c372-58cc-4b4f-8586-b1ccd8d87fc4 logicalsectorsize=512 sectorsize=512
           *-volume:0
                description: Windows NTFS volume
                vendor: Windows
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                version: 3.1
                serial: 
                size: 1022MiB
                capacity: 1023MiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-05-02 21:30:19 filesystem=ntfs label=System modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:1
                description: Windows FAT volume
                vendor: MSDOS5.0
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                version: FAT32
                serial: 
                size: 255MiB
                capacity: 259MiB
                capabilities: boot precious readonly hidden nomount fat initialized
                configuration: FATs=2 filesystem=fat name=Basic data partition
           *-volume:2
                description: Windows NTFS volume
                vendor: Windows
                physical id: 3
                bus info: scsi@0:0.0.0,3
                logical name: /dev/sda3
                version: 3.1
                serial: 
                size: 122MiB
                capacity: 127MiB
                capabilities: nofs precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-05-02 21:30:23 filesystem=ntfs modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:3
                description: Windows NTFS volume
                vendor: Windows
                physical id: 4
                bus info: scsi@0:0.0.0,4
                logical name: /dev/sda4
                logical name: /media/lubuntu/TI10664800G
                version: 3.1
                serial: 
                size: 226GiB
                capacity: 226GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2013-05-02 21:30:26 filesystem=ntfs label=TI10664800G mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 name=Basic data partition state=mounted
           *-volume:4
                description: Windows NTFS volume
                vendor: Windows
                physical id: 5
                bus info: scsi@0:0.0.0,5
                logical name: /dev/sda5
                version: 3.1
                serial: 
                size: 325MiB
                capacity: 349MiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-11-05 08:04:12 filesystem=ntfs modified_by_chkdsk=true mounted_on_nt4=true resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:5
                description: Windows NTFS volume
                vendor: Windows
                physical id: 6
                bus info: scsi@0:0.0.0,6
                logical name: /dev/sda6
                logical name: /media/lubuntu/New Volume
                version: 3.1
                serial: 
                size: 226GiB
                capacity: 226GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2013-08-25 01:12:31 filesystem=ntfs label=New Volume modified_by_chkdsk=true mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 mounted_on_nt4=true name=Basic data partition resize_log_file=true state=mounted upgrade_on_mount=true
           *-volume:6
                description: Windows NTFS volume
                vendor: Windows
                physical id: 7
                bus info: scsi@0:0.0.0,7
                logical name: /dev/sda7
                version: 3.1
                serial: 
                size: 11GiB
                capacity: 11GiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2013-06-15 07:37:53 filesystem=ntfs label=Recovery name=Basic data partition state=clean
     *-scsi:1
          physical id: 2
          logical name: scsi1
          capabilities: emulated
        *-cdrom
             description: DVD-RAM writer
             product: CDDVDW SU-208DB
             vendor: TSSTcorp
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/cdrw
             logical name: /dev/dvd
             logical name: /dev/dvdrw
             logical name: /dev/sr0
             version: TF01
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc
     *-scsi:2
          physical id: 3
          bus info: usb@5:1
          logical name: scsi2
          capabilities: emulated scsi-host
          configuration: driver=usb-storage
        *-disk
             description: SCSI Disk
             product: UDisk
             vendor: General
             physical id: 0.0.0
             bus info: scsi@2:0.0.0
             logical name: /dev/sdb
             logical name: /cdrom
             version: 5.00
             size: 3840MiB (4026MB)
             capabilities: removable
             configuration: ansiversion=2 logicalsectorsize=512 mount.fstype=iso9660 mount.options=ro,noatime,nojoliet,check=s,map=n,blocksize=2048 sectorsize=512 state=mounted
           *-medium
                physical id: 0
                logical name: /dev/sdb
                logical name: /cdrom
                size: 3840MiB (4026MB)
                capabilities: partitioned partitioned:dos
                configuration: mount.fstype=iso9660 mount.options=ro,noatime,nojoliet,check=s,map=n,blocksize=2048 signature=67e97428 state=mounted
              *-volume
                   description: Windows FAT volume
                   vendor: mkfs.fat
                   physical id: 2
                   logical name: /dev/sdb2
                   version: FAT12
                   serial: 
                   size: 15EiB
                   capabilities: primary boot fat initialized
                   configuration: FATs=2 filesystem=fat
hardware laptop ram
  • 1 个回答
  • 204 Views
Martin Hope
Tim
Asked: 2019-02-16 19:37:54 +0800 CST

如果我需要一些不是实时安装的程序,我可以在不实际安装 Lubuntu 的情况下安装程序吗?[复制]

  • 1
这个问题在这里已经有了答案:
如何使实时 USB 持久化 [重复] 1 个答案
在 Lubuntu 中从可启动闪存驱动器启动某些程序时出现输入/输出错误
3年前关闭。

我将 Lubuntu 18.04 iso 文件下载到我的闪存驱动器中,并将闪存驱动器变成可启动设备。

我将闪存驱动器插入笔记本电脑并在没有实际安装的情况下启动了 Lubuntu。

如果我需要一些 Lubuntu 18.04 iso 文件中没有的程序,我是否需要在笔记本电脑上实际安装 Lubuntu?是否可以在笔记本电脑上不实际安装 Lubuntu 的情况下安装一些程序,如 google chrome 浏览器?

谢谢。

下面哪一项是我可以安装的程序总大小的限制?

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.7G     0  1.7G   0% /dev
tmpfs           340M  1.4M  338M   1% /run
/dev/sdb        1.1G  1.1G     0 100% /cdrom
/dev/loop0      968M  968M     0 100% /rofs
/cow            1.7G  367M  1.3G  22% /
tmpfs           1.7G   32M  1.7G   2% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.7G     0  1.7G   0% /sys/fs/cgroup
tmpfs           1.7G  4.0K  1.7G   1% /tmp
tmpfs           340M   20K  340M   1% /run/user/999
boot live-usb lubuntu
  • 1 个回答
  • 73 Views
Martin Hope
Tim
Asked: 2018-12-06 12:45:24 +0800 CST

xdotool 的 `key` 和 `type` 命令有什么区别?

  • 1

xdotool手册页说:

键:键入给定的击键。

类型:类型就像你已经键入它一样。

这超出了我的理解。你能解释一下它们有何不同吗?

xdotool
  • 1 个回答
  • 731 Views
Martin Hope
Tim
Asked: 2018-10-30 16:22:31 +0800 CST

rar支持的密码格式是什么?

  • 0

rar支持的密码格式是什么?

更具体地说,rarcrack具有用于搜索加密 rar 文件密码的默认字符集。

0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

加密的 rar 文件的密码可以包含上述字符以外的字符吗?

rar 是否支持最大密码长度?

谢谢。

rar rarcrack
  • 1 个回答
  • 1579 Views
Martin Hope
Tim
Asked: 2018-10-29 06:57:51 +0800 CST

我应该在 Ubuntu 的 VirtualBox 上安装哪个 Android 文件?

  • 0

我想在 Ubuntu 18.04 的 VirtualBox 5.2 中安装 Android。

我正在使用本教程,它指向Android x86.org 下载页面,但我不确定我需要该页面中的哪个文件。

我应该下载哪个 Android 文件?

谢谢。

android virtualbox 18.04
  • 1 个回答
  • 893 Views
Martin Hope
Tim
Asked: 2018-08-21 13:56:53 +0800 CST

我的 Vino 服务器是否受到攻击?

  • 1

我在 LUbuntu 18.04 上安装了 vino,并根据https://askubuntu.com/a/530196/1471配置并启动了我的 vino 服务器,但不了解这些命令的含义:

$ export DISPLAY=:0
$ gsettings set org.gnome.Vino enabled true # although fails, it doesn't matter
No such key “enabled”
$ gsettings set org.gnome.Vino prompt-enabled false
$ gsettings set org.gnome.Vino require-encryption false    
$ /usr/lib/vino/vino-server

从和启动服务器的输出消息中,我发现服务器的内部ip是192.168.1.3,端口是5900。我在同一个WIFI网络内从我的Android手机上的RealVNC的VNC查看器ifconfig连接到服务器,并且认证我只是要求提供的是登录我的 Ubuntu 的密码。我们的wifi网络是前一个租户搭建的,ISP是Verizon FIOS,没有特别设置。

在服务器的监控输出信息中(见下图),我只能猜到android-c28b29b650f6548c.home是我安卓手机上的客户端,但我不知道客户端、、、46.101.184.149和属于谁,除了发现以下内容zg-0817a-64.stretchoid.com: 196.52.43.118scan-06.shadowserver.org

  • https://www.abuseipdb.com/check/46.101.184.149
  • https://www.abuseipdb.com/check/107.170.227.141
  • https://www.abuseipdb.com/check/196.52.43.118
  • https://www.abuseipdb.com/whois/216.218.206.67

问题:

  • 我的vino服务器正在从我的android手机上的客户端以外的一些危险客户端访问是否正确?

  • 我没有尝试明确地做任何事情来使我的 vino 服务器可用于 Internet(或者我不知道我这样做了),那么这些客户端如何从 Internet 找到并连接我的服务器?

  • 我如何检查我的 Ubuntu 以查看它们是否造成了一些损坏?

  • 如有必要,我可以做些什么来安全地使用我的 VNC 服务器?

谢谢。

$ /usr/lib/vino/vino-server

(vino-server:32529): dbind-WARNING **: 19:44:12.185: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
19/08/2018 07:44:12 PM Autoprobing TCP port in (all) network interface
19/08/2018 07:44:12 PM Listening IPv6://[::]:5900
19/08/2018 07:44:12 PM Listening IPv4://0.0.0.0:5900
19/08/2018 07:44:12 PM Autoprobing selected port 5900
19/08/2018 07:44:12 PM Advertising security type: 'TLS' (18)
19/08/2018 07:44:12 PM Re-binding socket to listen for VNC connections on TCP port 5900 in (all) interface
19/08/2018 07:44:12 PM Listening IPv6://[::]:5900
19/08/2018 07:44:12 PM Listening IPv4://0.0.0.0:5900
19/08/2018 07:44:12 PM Clearing securityTypes
19/08/2018 07:44:12 PM Advertising security type: 'TLS' (18)
19/08/2018 07:44:12 PM Clearing securityTypes
19/08/2018 07:44:12 PM Advertising security type: 'TLS' (18)
19/08/2018 07:44:12 PM Advertising authentication type: 'No Authentication' (1)
19/08/2018 07:44:12 PM Re-binding socket to listen for VNC connections on TCP port 5900 in (all) interface
19/08/2018 07:44:12 PM Listening IPv6://[::]:5900
19/08/2018 07:44:12 PM Listening IPv4://0.0.0.0:5900
19/08/2018 07:44:12 PM Clearing securityTypes
19/08/2018 07:44:12 PM Clearing authTypes
19/08/2018 07:44:12 PM Advertising security type: 'TLS' (18)
19/08/2018 07:44:12 PM Advertising authentication type: 'VNC Authentication' (2)
19/08/2018 07:44:12 PM Clearing securityTypes
19/08/2018 07:44:12 PM Clearing authTypes
19/08/2018 07:44:12 PM Advertising security type: 'TLS' (18)
19/08/2018 07:44:12 PM Advertising authentication type: 'VNC Authentication' (2)
19/08/2018 07:44:12 PM Advertising security type: 'VNC Authentication' (2)
19/08/2018 07:44:17 PM [IPv4] Got connection from client android-c28b29b650f6548c.home
19/08/2018 07:44:17 PM   other clients:
19/08/2018 07:44:17 PM Client Protocol Version 3.7
19/08/2018 07:44:17 PM Advertising security type 18
19/08/2018 07:44:17 PM Advertising security type 2
19/08/2018 07:44:17 PM Client returned security type 2

** (vino-server:32529): WARNING **: 19:44:28.888: VNC authentication failure from 'android-c28b29b650f6548c.home'

19/08/2018 07:44:28 PM rfbAuthPasswordChecked: password check failed
19/08/2018 07:44:28 PM Client android-c28b29b650f6548c.home gone
19/08/2018 07:44:28 PM Statistics:
19/08/2018 07:44:28 PM   framebuffer updates 0, rectangles 0, bytes 0
19/08/2018 07:44:30 PM [IPv4] Got connection from client android-c28b29b650f6548c.home
19/08/2018 07:44:30 PM   other clients:
19/08/2018 07:44:30 PM Client Protocol Version 3.7
19/08/2018 07:44:30 PM Advertising security type 18
19/08/2018 07:44:30 PM Advertising security type 2
19/08/2018 07:44:30 PM Client returned security type 2

** (vino-server:32529): WARNING **: 19:44:40.531: Deferring authentication of 'android-c28b29b650f6548c.home' for 5 seconds

19/08/2018 07:44:45 PM rfbProcessClientNormalMessage: ignoring unknown encoding type 22
19/08/2018 07:44:45 PM rfbProcessClientNormalMessage: ignoring unknown encoding type 21
19/08/2018 07:44:45 PM rfbProcessClientNormalMessage: ignoring unknown encoding type 15
19/08/2018 07:44:45 PM rfbProcessClientNormalMessage: ignoring unknown encoding type -314
19/08/2018 07:44:45 PM Enabling NewFBSize protocol extension for client android-c28b29b650f6548c.home
19/08/2018 07:44:45 PM Pixel format for client android-c28b29b650f6548c.home:
19/08/2018 07:44:45 PM   8 bpp, depth 6
19/08/2018 07:44:45 PM   true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
19/08/2018 07:44:45 PM Pixel format for client android-c28b29b650f6548c.home:
19/08/2018 07:44:45 PM   32 bpp, depth 24, little endian
19/08/2018 07:44:45 PM   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
19/08/2018 07:44:45 PM no translation needed

Gtk-Message: 20:43:41.511: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: 20:43:44.339: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: 20:43:52.072: GtkDialog mapped without a transient parent. This is discouraged.
19/08/2018 10:39:57 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 10:39:57 PM   other clients:
19/08/2018 10:39:57 PM      android-c28b29b650f6548c.home
19/08/2018 10:39:57 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 22:39:57.238: VNC authentication failure from '46.101.184.149'

19/08/2018 10:39:57 PM rfbAuthPasswordChecked: password check failed
19/08/2018 10:39:57 PM Client 46.101.184.149 gone
19/08/2018 10:39:57 PM Statistics:
19/08/2018 10:39:57 PM   framebuffer updates 0, rectangles 0, bytes 0
19/08/2018 10:43:41 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 10:43:41 PM   other clients:
19/08/2018 10:43:41 PM      android-c28b29b650f6548c.home
19/08/2018 10:43:41 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 22:43:41.812: Deferring authentication of '46.101.184.149' for 5 seconds


** (vino-server:32529): WARNING **: 22:43:47.449: VNC authentication failure from '46.101.184.149'

19/08/2018 10:43:47 PM rfbAuthPasswordChecked: password check failed
19/08/2018 10:47:27 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 10:47:27 PM   other clients:
19/08/2018 10:47:27 PM      46.101.184.149
19/08/2018 10:47:27 PM      android-c28b29b650f6548c.home
19/08/2018 10:47:27 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 22:47:27.692: Deferring authentication of '46.101.184.149' for 5 seconds


** (vino-server:32529): WARNING **: 22:47:32.452: VNC authentication failure from '46.101.184.149'

19/08/2018 10:47:32 PM rfbAuthPasswordChecked: password check failed
19/08/2018 10:51:12 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 10:51:12 PM   other clients:
19/08/2018 10:51:12 PM      46.101.184.149
19/08/2018 10:51:12 PM      46.101.184.149
19/08/2018 10:51:12 PM      android-c28b29b650f6548c.home
19/08/2018 10:51:12 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 22:51:12.833: Deferring authentication of '46.101.184.149' for 5 seconds


** (vino-server:32529): WARNING **: 22:51:18.448: VNC authentication failure from '46.101.184.149'

19/08/2018 10:51:18 PM rfbAuthPasswordChecked: password check failed
19/08/2018 10:54:58 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 10:54:58 PM   other clients:
19/08/2018 10:54:58 PM      46.101.184.149
19/08/2018 10:54:58 PM      46.101.184.149
19/08/2018 10:54:58 PM      46.101.184.149
19/08/2018 10:54:58 PM      android-c28b29b650f6548c.home
19/08/2018 10:54:58 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 22:54:58.339: Deferring authentication of '46.101.184.149' for 5 seconds


** (vino-server:32529): WARNING **: 22:55:03.449: VNC authentication failure from '46.101.184.149'

19/08/2018 10:55:03 PM rfbAuthPasswordChecked: password check failed
19/08/2018 10:58:43 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 10:58:43 PM   other clients:
19/08/2018 10:58:43 PM      46.101.184.149
19/08/2018 10:58:43 PM      46.101.184.149
19/08/2018 10:58:43 PM      46.101.184.149
19/08/2018 10:58:43 PM      46.101.184.149
19/08/2018 10:58:43 PM      android-c28b29b650f6548c.home
19/08/2018 10:58:43 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 22:58:43.756: Deferring authentication of '46.101.184.149' for 5 seconds


** (vino-server:32529): WARNING **: 22:58:49.448: VNC authentication failure from '46.101.184.149'

19/08/2018 10:58:49 PM rfbAuthPasswordChecked: password check failed

19/08/2018 11:02:28 PM [IPv4] Got connection from client 46.101.184.149
19/08/2018 11:02:28 PM   other clients:
19/08/2018 11:02:28 PM      46.101.184.149
19/08/2018 11:02:28 PM      46.101.184.149
19/08/2018 11:02:28 PM      46.101.184.149
19/08/2018 11:02:28 PM      46.101.184.149
19/08/2018 11:02:28 PM      46.101.184.149
19/08/2018 11:02:28 PM      android-c28b29b650f6548c.home
19/08/2018 11:02:28 PM Client Protocol Version 3.3

** (vino-server:32529): WARNING **: 23:02:28.345: Deferring authentication of '46.101.184.149' for 5 seconds


** (vino-server:32529): WARNING **: 23:02:33.449: VNC authentication failure from '46.101.184.149'

19/08/2018 11:02:33 PM rfbAuthPasswordChecked: password check failed
19/08/2018 11:30:51 PM [IPv4] Got connection from client zg-0817a-64.stretchoid.com
19/08/2018 11:30:51 PM   other clients:
19/08/2018 11:30:51 PM      46.101.184.149
19/08/2018 11:30:51 PM      46.101.184.149
19/08/2018 11:30:51 PM      46.101.184.149
19/08/2018 11:30:51 PM      46.101.184.149
19/08/2018 11:30:51 PM      46.101.184.149
19/08/2018 11:30:51 PM      46.101.184.149
19/08/2018 11:30:51 PM      android-c28b29b650f6548c.home
19/08/2018 11:31:01 PM rfbProcessClientProtocolVersion: client gone
19/08/2018 11:31:01 PM Client zg-0817a-64.stretchoid.com gone
19/08/2018 11:31:01 PM Statistics:
19/08/2018 11:31:01 PM   framebuffer updates 0, rectangles 0, bytes 0
sendto: Network is unreachable
sendto: Network is unreachable
20/08/2018 10:37:54 AM rfbProcessClientNormalMessage: read: Connection reset by peer
20/08/2018 10:37:54 AM Client android-c28b29b650f6548c.home gone
20/08/2018 10:37:54 AM Statistics:
20/08/2018 10:37:54 AM   key events received 32, pointer events 3932
20/08/2018 10:37:54 AM   framebuffer updates 7016, rectangles 13714, bytes 270216867
20/08/2018 10:37:54 AM     ZRLE rectangles 13714, bytes 270216867
20/08/2018 10:37:54 AM   raw bytes equivalent 538553044, compression ratio 1.993040
20/08/2018 02:15:10 PM [IPv4] Got connection from client 196.52.43.118
20/08/2018 02:15:10 PM   other clients:
20/08/2018 02:15:10 PM      46.101.184.149
20/08/2018 02:15:10 PM      46.101.184.149
20/08/2018 02:15:10 PM      46.101.184.149
20/08/2018 02:15:10 PM      46.101.184.149
20/08/2018 02:15:10 PM      46.101.184.149
20/08/2018 02:15:10 PM      46.101.184.149
20/08/2018 02:15:10 PM Client Protocol Version 3.7
20/08/2018 02:15:10 PM Advertising security type 18
20/08/2018 02:15:10 PM Advertising security type 2
20/08/2018 02:15:10 PM Client returned security type 1
20/08/2018 02:15:10 PM rfbAuthProcessSecurityTypeMessage: client returned unadvertised security type 1
20/08/2018 02:15:10 PM Client 196.52.43.118 gone
20/08/2018 02:15:10 PM Statistics:
20/08/2018 02:15:10 PM   framebuffer updates 0, rectangles 0, bytes 0
20/08/2018 02:31:26 PM [IPv4] Got connection from client scan-06.shadowserver.org
20/08/2018 02:31:26 PM   other clients:
20/08/2018 02:31:26 PM      46.101.184.149
20/08/2018 02:31:26 PM      46.101.184.149
20/08/2018 02:31:26 PM      46.101.184.149
20/08/2018 02:31:26 PM      46.101.184.149
20/08/2018 02:31:26 PM      46.101.184.149
20/08/2018 02:31:26 PM      46.101.184.149
20/08/2018 02:31:28 PM rfbProcessClientProtocolVersion: client gone
20/08/2018 02:31:28 PM Client scan-06.shadowserver.org gone
20/08/2018 02:31:28 PM Statistics:
20/08/2018 02:31:28 PM   framebuffer updates 0, rectangles 0, bytes 0
security vnc vino 18.04
  • 1 个回答
  • 1922 Views
Martin Hope
Tim
Asked: 2018-07-28 14:44:47 +0800 CST

xdotool:窗口的“类”和“类名”是什么?

  • 30

根据https://unix.stackexchange.com/a/254854/674和https://unix.stackexchange.com/questions/458895/how-can-i-bring-a-background-gui-job-to -the-front-of-my-desktop,有一个来自 xdotool 手册页的示例

# Activate google-chrome when you move the mouse to the bottom-left corner: 
xdotool behave_screen_edge bottom-left search --class google-chrome windowactivate

手册页说

--class 与窗口类匹配。

--classname 与窗口类名匹配。

什么是“类”和“类名”?

它们有哪些可能的值?

如何找出窗口的类和类名?

谢谢。

xorg xdotool
  • 1 个回答
  • 31892 Views
Martin Hope
Tim
Asked: 2018-07-18 14:03:41 +0800 CST

我是否需要更改在 Ubuntu 18.04 中为 xenial 添加存储库的命令?

  • 0

我正在关注https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition在 Lubuntu 18.04 上安装 mongodb

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

第二个命令有xenial,我需要将其更改为bionic吗?

为什么在我的以下更改实验中,它不起作用?

$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse

$ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:2 http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic InRelease                                                                                                           
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                     
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                       
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                                                     
Err:6 http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic Release                                                                                                             
  404  Not Found [IP: 91.189.95.83 80]
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                                                                                                                       
Hit:8 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                                                                                                  
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                          
Hit:10 http://repo.mysql.com/apt/ubuntu bionic InRelease                                                                              
Ign:11 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease                        
Err:12 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release    
  404  Not Found [IP: 54.230.36.150 443]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2,452 B]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [138 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [31.4 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [53.7 kB]      
Get:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [125 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [126 kB]  
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [212 kB]   
Get:22 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:23 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,100 B]

Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

为什么在我的以下实验中没有更改,它可以工作?

$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mongodb-org

$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse

$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                     
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                                               
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                                             
Ign:5 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 InRelease                                                                                                       
Ign:6 http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic InRelease                                                                                                           
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                                                                                                 
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                                                                
Hit:9 http://repo.mysql.com/apt/ubuntu bionic InRelease                                                                                                                          
Get:10 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 Release [3,457 B]                                                                                              
Hit:11 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                                                                 
Get:12 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 Release.gpg [801 B]           
Err:13 http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic Release               
  404  Not Found [IP: 91.189.95.83 80]
Get:15 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0/multiverse arm64 Packages [2,146 B]
Get:16 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0/multiverse amd64 Packages [2,143 B]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/adrozdoff/emacs/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

$ sudo apt-get install -y mongodb-org
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 to resolve the situation:

The following packages have unmet dependencies:
 mongodb-org : Depends: mongodb-org-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
repository apt mongodb 18.04
  • 1 个回答
  • 605 Views
Martin Hope
Tim
Asked: 2018-06-14 15:55:12 +0800 CST

我怎样才能找到 mysql 包的版本?

  • 0

在 Lubuntu 18.04 中,我mysql-client-core-5.7在默认存储库中找到了。我想知道它提供了哪个版本的mysql?我在https://packages.ubuntu.com/xenial/mysql-client-core-5.7中没有找到任何此类信息,我在哪里可以找到它?

最新的mysql是8.0.11版本。5.7 似乎太旧而不能成为真正的版本。

谢谢。

package-management mysql versions
  • 1 个回答
  • 2421 Views
Martin Hope
Tim
Asked: 2018-05-20 12:56:27 +0800 CST

用`sudo垃圾`删除的文件到哪里去了?

  • 0
$ pwd
/tmp/test
$ trash mfile 
trash: cannot trash regular file `mfile'
$ sudo trash mfile 
$

但是我在下面找不到文件/home/t/.local/share/Trash/*

那么文件在哪里被删除sudo trash了呢?谢谢。

trash
  • 1 个回答
  • 459 Views
Martin Hope
Tim
Asked: 2018-04-04 08:26:28 +0800 CST

apt-file 和 apt-cache 是 apt 的一部分吗?[复制]

  • 9
这个问题在这里已经有了答案:
如何找到提供文件的包? (10 个回答)
4年前关闭。

是apt-file一部分apt?我已经apt默认安装了,但是没有apt-file。

怎么样apt-cache?我不记得我是默认安装的还是我安装的。

package-management apt apt-file
  • 1 个回答
  • 849 Views
Martin Hope
Tim
Asked: 2018-04-04 05:21:29 +0800 CST

如何搜索提供卸载命令的包?[复制]

  • 8
这个问题在这里已经有了答案:
如何找到提供文件的包? (10 个回答)
3年前关闭。

我想搜索哪个包提供了卸载的命令。

apt-cache search keyword

很好,但是搜索关键字可以是包名的全部或部分,或者是描述中使用的任何单词,而不是程序/命令的名称。

有没有更好的办法?

例如,我不知道哪个包包含程序xlock:

$ apt-cache search xlock
away - Terminal locking program
devrplay3 - rplay network audio system - basic library
librplay-perl - rplay network audio system - perl modules
librplay3 - rplay network audio system - shared libraries
librplay3-dev - rplay network audio system - development libraries
rplay-client - rplay network audio system - basic clients
rplay-contrib - rplay network audio system - contributed binaries
rplay-server - rplay network audio system - server
xautolock - Program launcher for idle X sessions

谢谢。

package-management repository apt
  • 3 个回答
  • 9497 Views
Martin Hope
Tim
Asked: 2018-04-03 14:21:13 +0800 CST

从 Ubuntu 暂停恢复后如何配置 cpu 频率?

  • 0

问题:

在 Ubuntu 16.04 中,我运行我的 shell 脚本来将我的 cpu 频率缩减为 1600000,并且它的调控器是“用户空间”:

sudo /home/t/program_files/hardware/cpu/cpuFreq/changeCpuFreq.sh 1600000

分别写入 1600000 和“用户空间/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed” /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor。

但是,在我的Ubuntu挂起然后唤醒后,cpu频率又回到了2667000,因为/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed被一些未知的程序重写为2667000。我希望从挂起恢复后cpu频率保持在1600000。

暂定解决方案:

我尝试了https://superuser.com/a/733336/9265(见下文)的一种解决方案,并添加了一个文件/etc/pm/sleep.d/20_cpu_freq,其内容为:

#!/bin/sh
# upon resume from suspension, scale down the cpu freq
case "$1" in
   thaw|resume)
     /home/t/program_files/hardware/cpu/cpuFreq/changeCpuFreq.sh 1600000
     ;;
esac

并使其可执行chmod a+x *,使其权限为-rwxrwxr-x. 但它不会在从暂停中恢复后将 cpu 频率降低到 1600000。

是/etc/pm/sleep.d/20_cpu_freq从暂停中恢复时实际运行的吗?我该如何验证呢?

是否/etc/pm/sleep.d/20_cpu_freq被其他配置文件覆盖?

没有其他脚本/etc/pm/sleep.d/可以处理 CPU 频率。

有一个系统默认脚本/usr/lib/pm-utils/sleep.d/94cpufreq,它处理 CPU 频率(其内容见下文)。有人知道脚本的作用吗?它是覆盖还是被覆盖/etc/pm/sleep.d/20_cpu_freq?(请注意,如果我重命名/etc/pm/sleep.d/20_cpu_freq为 /etc/pm/sleep.d/95cpufreqor /etc/pm/sleep.d/93cpufreq,为了更改它和 之间的顺序/usr/lib/pm-utils/sleep.d/94cpufreq,`两者仍然不会在暂停恢复后将 cpu 频率缩减到 1600000。)

在中,如果我在 case之后/usr/lib/pm-utils/sleep.d/94cpufreq添加,它也不起作用。/home/t/program_files/hardware/cpu/cpuFreq/changeCpuFreq.sh 1600000thaw_cpufreqresume|thaw)

/home/t/program_files/hardware/cpu/cpuFreq/changeCpuFreq.sh 1600000如果不在,我应该跑到哪里去/etc/pm/sleep.d/20_cpu_freq?


内容/usr/lib/pm-utils/sleep.d/94cpufreq

#!/bin/sh                                                                                                                                                                          
# Ensure cpu governor is set to something sane.                                                                                                                                    
# TODO: Which of the cpu governors is still insane?  File bugs against                                                                                                             
#       those that are.                                                                                                                                                            

. "${PM_FUNCTIONS}"

[ -d /sys/devices/system/cpu/ ] || exit $NA

hibernate_cpufreq()
{
  ( cd /sys/devices/system/cpu/
  for x in cpu[0-9]*; do
    # if cpufreq is a symlink, it is handled by another cpu. Skip.                                                                                                                 
    [ -L "$x/cpufreq" ] && continue
    gov="$x/cpufreq/scaling_governor"
    # if we do not have a scaling_governor file, skip.                                                                                                                             
    [ -f "$gov" ] || continue
    # if our temporary governor is not available, skip.                                                                                                                            
    grep -q "$TEMPORARY_CPUFREQ_GOVERNOR" \
            "$x/cpufreq/scaling_available_governors" || continue
    savestate "${x}_governor" < "$gov"
    echo "$TEMPORARY_CPUFREQ_GOVERNOR" > "$gov"
  done )
}

thaw_cpufreq()
{
  ( cd /sys/devices/system/cpu/
  for x in cpu[0-9]*/cpufreq/scaling_governor ; do
    [ -f "$x" ] || continue
    state_exists "${x%%/*}_governor" || continue
    restorestate "${x%%/*}_governor" > "$x"
  done )
}

case "$1" in
  suspend|hibernate)
    hibernate_cpufreq
    ;;
  resume|thaw)
    thaw_cpufreq
    ;;
  *) exit $NA
    ;;
esac

复制自https://superuser.com/a/733336/9265

从手册页pm-action(8):

/etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d
     Programs in these directories (called hooks) are combined
     and executed in C sort order before suspend and hibernate
     with as argument ´suspend´ or ´hibernate´. Afterwards they
     are called in reverse order with argument ´resume´ and
     ´thaw´ respectively. **If both directories contain a similar
     named file, the one in /etc/pm/sleep.d will get preference.**
     It is possible to disable a hook in the distribution
     directory by putting a non-executable file in
     /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST
     configuration variable.

因此,您可以简单地放置一个这样的 shell 脚本:

#!/bin/bash

case "$1" in
suspend|hibernate)
    actions to
    take
    on suspend
    or hibernate
    ;;
resume|thaw)
    other actions
    to trigger
    on resume
    ;;
esac

进入例如99-myhooks.sh并使其可执行。

Enter~.Enter顺便说一句,您可以通过进入SSH 会话来终止陈旧的 SSH 连接 。

power-management suspend hibernate cpufreq
  • 1 个回答
  • 176 Views
Martin Hope
Tim
Asked: 2018-03-23 16:09:46 +0800 CST

什么时候使用基于 wine 的 Linux 路径?

  • 1

在上一篇文章中,我只看到纯 Linux 路径和纯 Windows 路径在 wine 下运行 Windows 可执行文件时使用。

什么时候使用基于 wine 的 Linux 路径/home/t/.wine/dosdevices/z:/tmp/test/O.pdf?

winepath将纯 Linux 路径转换为基于 wine 的 Linux 路径。例如,

$ echo "$(winepath /tmp/test/O.pdf)"
/home/t/.wine/dosdevices/z:/tmp/test/O.pdf

什么时候使用的输出winepath?

谢谢。

wine
  • 1 个回答
  • 3277 Views
Martin Hope
Tim
Asked: 2018-03-22 14:05:48 +0800 CST

这个在 Wine 下运行的 Windows 程序是否无法识别其参数的绝对路径名?

  • 0

我在 wine-3.1 下的 Ubuntu 16.04 中使用PDFXCview.exe。

当我将 pdf 文件指定为 的参数时PDFXCview.exe,pdf 文件的绝对路径名不会PDFXCview.exe找到 pdf 文件,而 pdf 文件的相对路径名可以。

例如:

wine /path/to/PDFXCView.exe my.pdf

将my.pdf在 PDFXCView.exe, 而

wine /path/to/PDFXCView.exe "$PWD"/my.pdf

没有。

  1. 绝对路径参数PDFXCView.exe仅由使用,而不是由 使用wine,因此将绝对路径转换为可识别的葡萄酒路径没有帮助。例如,wine /path/to/PDFXCview.exe "$(winepath /tmp/test/O.pdf)"不PDFXCview.exe查找并打开 pdf 文件,其中 .the wine-recognizable path 是:

    $ echo wine /path/to/PDFXCview.exe "$(winepath /tmp/test/O.pdf)"
    wine /tmp/test/PDFXCview.exe /home/t/.wine/dosdevices/z:/tmp/test/O.pdf
    
  2. 相反,当我将文本文件指定为 的参数时 notepad.exe,我可以指定文本文件的绝对路径名或相对路径名,并且notepad.exe可以找到要打开的文本文件。例如,两者都wine notepad "$PWD"/note可以 wine notepad note让记事本找到并打开文本文件 note。

以上情况是否也适用于其他人?

PDFXCview.exe无法识别其参数的绝对路径名,而只能识别相对路径名的原因是什么?

我想知道上述问题PDFXCview.exe是因为程序本身还是因为酒?我没有要测试的 Windows,也想知道PDFXCview.exe在 Windows 中的行为是否与在 Wine 中相同。

谢谢。


Drive 标签的屏幕截图winecfg

在此处输入图像描述

wine pdf
  • 1 个回答
  • 684 Views
Martin Hope
Tim
Asked: 2017-10-05 07:30:35 +0800 CST

我应该如何为 Python3 安装和调用 IDLE?

  • 4

在 Ubuntu 中,我尝试调用 IDLE

$ python3 -m idlelib
** IDLE can't import Tkinter.
Your Python may not be configured for Tk. **

我该如何解决这个问题?

我试图通过 安装idle,sudo apt-get install idle但在那之后,运行idle将调用 Python2.7 的 shell,而不是 Python3。

谢谢。

python3
  • 1 个回答
  • 9190 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve