SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-546191

Karlom's questions

Martin Hope
Karlom
Asked: 2021-06-17 22:34:05 +0800 CST

How can I change playback speed of mpv video player?

  • 3

I love mpv player for its modern minimalist look, easy moving along a video simply with mouse scroll and robust rendering of .mp4 videos.

However, I could not figure out how to change the playback speed as I can do easily in VLC's playback menu. I simply can not see any GUI option to do so. Nor could I find a relevant configuration trick in the wiki.

So I appreciate your hints if there is a hidden button or a configuration tweak to define a shortcut key to do so. I'm using mpv on Ubuntu 18.04.

video-player
  • 1 Answers
  • 13362 Views
Martin Hope
Karlom
Asked: 2020-06-06 15:51:14 +0800 CST

sudoers can not edit network settings

  • 0

I have two users which I have defined as sudoers in /etc/sudoers which looks like this:

Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL
bob      ALL=(ALL:ALL) ALL
mary      ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

However after entering their password, none of them can change Network Settings to add manual DNS IP addresses. Instead I get this annoying message:

System policy pervents modification of network settings for all users.

enter image description here

I have no difficulty switching to root using sudo su in the terminal.

So how can I fix this?

networking sudo dns 18.04
  • 0 Answers
  • 147 Views
Martin Hope
Karlom
Asked: 2019-12-12 02:52:29 +0800 CST

How to remove /dev/loops [duplicate]

  • 8
This question already has answers here:
Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core (3 answers)
Closed 2 years ago.

On my Ubuntu desktop, the command fdisk -l shows /dev/loopX up to /dev/loop23. I'm using gnome-fallback on Ubuntu 18.04 LTS.

I'm wondering what possible effects these could have on performance and stabilty of the OS, and if they are just superfluous, how can I remove them?

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

output of 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
disk-management fdisk loop-device
  • 2 Answers
  • 30163 Views
Martin Hope
Karlom
Asked: 2019-09-10 19:48:06 +0800 CST

Pencil does not install on Ubuntu 18.04

  • 0

I was looking for a UX design tool on Linux, so tried to install Pencil .

 dpkg -i Pencil_3.0.4_amd64.deb 
Selecting previously unselected package pencil.
(Reading database ... 291107 files and directories currently installed.)
Preparing to unpack Pencil_3.0.4_amd64.deb ...
Unpacking pencil (3.0.4-49) ...
Setting up pencil (3.0.4-49) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

I don't see any error, or it appear anywhere on the programs. It does not appear on the installed software either.

 dpkg -L pencil
/.
/opt
/opt/Pencil
/opt/Pencil/content_resources_200_percent.pak
/opt/Pencil/pencil
/opt/Pencil/views_resources_200_percent.pak
/opt/Pencil/icudtl.dat
/opt/Pencil/LICENSE.electron.txt
/opt/Pencil/blink_image_resources_200_percent.pak
/opt/Pencil/locales
/opt/Pencil/locales/sl.pak
/opt/Pencil/locales/cs.pak
/opt/Pencil/locales/fa.pak
/opt/Pencil/locales/ta.pak
/opt/Pencil/locales/gu.pak
/opt/Pencil/locales/nl.pak
/opt/Pencil/locales/id.pak
/opt/Pencil/locales/et.pak
/opt/Pencil/locales/ar.pak
/opt/Pencil/locales/am.pak
/opt/Pencil/locales/da.pak
/opt/Pencil/locales/fi.pak
/opt/Pencil/locales/lt.pak
/opt/Pencil/locales/en-GB.pak
/opt/Pencil/locales/it.pak
/opt/Pencil/locales/nb.pak
/opt/Pencil/locales/th.pak
/opt/Pencil/locales/sk.pak
/opt/Pencil/locales/ro.pak
/opt/Pencil/locales/hu.pak
/opt/Pencil/locales/sr.pak
/opt/Pencil/locales/mr.pak
/opt/Pencil/locales/fake-bidi.pak
/opt/Pencil/locales/zh-CN.pak
/opt/Pencil/locales/ko.pak
/opt/Pencil/locales/kn.pak
/opt/Pencil/locales/pl.pak
/opt/Pencil/locales/es.pak
/opt/Pencil/locales/ca.pak
/opt/Pencil/locales/vi.pak
/opt/Pencil/locales/he.pak
/opt/Pencil/locales/te.pak
/opt/Pencil/locales/pt-BR.pak
/opt/Pencil/locales/bn.pak
/opt/Pencil/locales/es-419.pak
/opt/Pencil/locales/en-US.pak
/opt/Pencil/locales/uk.pak
/opt/Pencil/locales/ml.pak
/opt/Pencil/locales/hr.pak
/opt/Pencil/locales/lv.pak
/opt/Pencil/locales/el.pak
/opt/Pencil/locales/ru.pak
/opt/Pencil/locales/hi.pak
/opt/Pencil/locales/de.pak
/opt/Pencil/locales/pt-PT.pak
/opt/Pencil/locales/ja.pak
/opt/Pencil/locales/ms.pak
/opt/Pencil/locales/sv.pak
/opt/Pencil/locales/fil.pak
/opt/Pencil/locales/zh-TW.pak
/opt/Pencil/locales/tr.pak
/opt/Pencil/locales/bg.pak
/opt/Pencil/locales/sw.pak
/opt/Pencil/locales/fr.pak
/opt/Pencil/snapshot_blob.bin
/opt/Pencil/libffmpeg.so
/opt/Pencil/resources
/opt/Pencil/resources/app.asar
/opt/Pencil/resources/app.asar.unpacked
/opt/Pencil/resources/app.asar.unpacked/node_modules
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/Typings
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/Typings/xelement.d.ts
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/LICENSE
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/package.json
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/xelement.sln
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/.vs
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/.vs/xelement
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/.vs/xelement/v14
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/.vs/xelement/v14/.suo
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/sampledata.xml
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/.npmignore
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/Index.js
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/lib
/opt/Pencil/resources/app.asar.unpacked/node_modules/xelement/lib/xelement.js
/opt/Pencil/resources/electron.asar
/opt/Pencil/content_shell.pak
/opt/Pencil/natives_blob.bin
/opt/Pencil/ui_resources_200_percent.pak
/opt/Pencil/libnode.so
/opt/Pencil/LICENSES.chromium.html
/usr
/usr/share
/usr/share/applications
/usr/share/applications/pencil.desktop
/usr/share/doc
/usr/share/doc/pencil
/usr/share/doc/pencil/changelog.gz
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/pencil.png
/usr/share/icons/hicolor/32x32
/usr/share/icons/hicolor/32x32/apps
/usr/share/icons/hicolor/32x32/apps/pencil.png
/usr/share/icons/hicolor/64x64
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/64x64/apps/pencil.png
/usr/share/icons/hicolor/24x24
/usr/share/icons/hicolor/24x24/apps
/usr/share/icons/hicolor/24x24/apps/pencil.png
/usr/share/icons/hicolor/16x16
/usr/share/icons/hicolor/16x16/apps
/usr/share/icons/hicolor/16x16/apps/pencil.png
/usr/share/icons/hicolor/96x96
/usr/share/icons/hicolor/96x96/apps
/usr/share/icons/hicolor/96x96/apps/pencil.png
/usr/share/icons/hicolor/128x128
/usr/share/icons/hicolor/128x128/apps
/usr/share/icons/hicolor/128x128/apps/pencil.png
/usr/share/icons/hicolor/256x256
/usr/share/icons/hicolor/256x256/apps
/usr/share/icons/hicolor/256x256/apps/pencil.png

What could be wrong here and how to fix it?

18.04 pencil
  • 1 Answers
  • 1746 Views
Martin Hope
Karlom
Asked: 2019-06-24 22:41:54 +0800 CST

No sound after installing dconf-editor

  • 1

On my Ubuntu 18.04 machine running gnome-flashback was working fine before I installed dconf-editor and tweaked some layout change settings. Afterwards, I hear no sound.

lsmod | grep snd_hda_intel

Resutls in:

snd_hda_intel          40960  15
snd_hda_codec         126976  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_ca0132
snd_hda_core           81920  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_ca0132
snd_pcm                98304  7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_ca0132
snd                    81920  38 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_hda_codec_ca0132,snd_rawmidi

Where snd_hda_intel is red colored.

I have removed dconf-editor and rebooted but still no sound.

I have also run dconf reset -f /org/gnome/ to reset the configs to the default but to avail

UPDATE More info:

# ps -ef | grep pulse
gdm       1580  1491  0 16:09 ?        00:00:00 /usr/bin/pulseaudio --daemonize=no
me        2015  1740  0 16:09 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
root      6057  6046  0 16:55 pts/2    00:00:00 grep --color=auto pulse

And

# pactl list short sinks
0   alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1 module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED
1   alsa_output.pci-0000_00_1b.0.analog-stereo  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED

And

# snap list
Name                  Version                     Rev   Tracking  Publisher   Notes
chromium              75.0.3770.90                762   stable    canonical✓  -
core                  16-2.39.2                   7169  stable    canonical✓  core
core18                20190611                    1013  stable    canonical✓  base
gnome-3-26-1604       3.26.0.20190621             88    stable/…  canonical✓  -
gnome-3-28-1804       3.28.0-10-gaa70833.aa70833  59    stable    canonical✓  -
gnome-calculator      3.32.1                      406   stable/…  canonical✓  -
gnome-characters      v3.32.1+git2.3367201        288   stable/…  canonical✓  -
gnome-logs            3.32.0-4-ge8f3f37ca8        61    stable/…  canonical✓  -
gnome-system-monitor  3.32.1-2-ga7c19eaeff        91    stable/…  canonical✓  -
gtk-common-themes     0.1-16-g2287c87             1198  stable/…  canonical✓  -

The problem exists when I switch to another user.

Any tips?

sound gnome 18.04
  • 0 Answers
  • 123 Views
Martin Hope
Karlom
Asked: 2018-12-25 03:54:08 +0800 CST

How reset gnome-fallback settings to defaults?

  • 1

On Ubuntu 16.04 and using gnome-fallback, I have messed the settings with gnome-tweak-tool. I'm wondering if there is a way to return the configs to default?

If it is not possible, I'd like to know what are these parameters as Default:

enter image description here

gnome gnome-classic gnome-tweak-tool
  • 1 Answers
  • 409 Views
Martin Hope
Karlom
Asked: 2018-12-22 09:39:05 +0800 CST

How to reduce browser tab size in gnome-fallback?

  • 1

I'm on Ubuntu 16.04 using gnome-fallback. The tab size of both Chrome and Firefox are annoyingly large. How can I reduce the size? I've installed gnome-tweak-tool but could not figure out what are the relevant settings.

gnome google-chrome gnome-classic gnome-tweak-tool
  • 0 Answers
  • 163 Views
Martin Hope
Karlom
Asked: 2017-06-27 06:56:10 +0800 CST

How to define localhost IP as 10.0.2.2?

  • 1

On my Ubuntu PC, I need to use 10.0.2.2 instead of 127.0.0.1 to be able to let Android emulator to connect to web server running on localhost. So wondering how can I define the new IP?

I edited /etc/hosts and added

10.0.2.2    localhost
10.0.2.2    subdomain.localhost

Instead and restarted the hosts using /etc/init.d/hostname.sh. But ifconfig still does not show the new ip. How can I fix this?

networking
  • 1 Answers
  • 4669 Views
Martin Hope
Karlom
Asked: 2016-12-22 10:26:24 +0800 CST

/dev/kvm is not found on Ubuntu 14.04

  • 8

After I installed Android studio 2.2.3 on Ubuntu 14.04 LTS this problem bugs me for hours:

Error message

I've checked the bios and it shows that vt-x is supported but I receive

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

in my terminal. I have also installed kvm follwing this tutorial and I can see:

me@pc:~$ egrep -c '(vmx|svm)' /proc/cpuinfo
8


me@pc:~$ virsh -c qemu:///system list
 Id    Name                           State
----------------------------------------------------

But emulator still refused to load.

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

I get this error on the studio's console:

Error while waiting for device: Could not start AVD

I'm really ran out of ideas. I appreciate your help.

UPDATE:

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
android
  • 3 Answers
  • 25343 Views
Martin Hope
Karlom
Asked: 2016-05-20 10:00:28 +0800 CST

Youtube videos stopped being displayed in Chromium

  • 2

I'm using Ubuntu 14.04 64 bit with The HTML5 player is currently used when possible being enabled. Suddenly, youtube videos stopped showing but I still can hear videos' sounds. I don't have such problem in Firefox.

I looked at similar answers but none solved my problem. So appreciate your hints.

google-chrome
  • 0 Answers
  • 139 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    How to install Google Chrome

    • 8 Answers
  • Marko Smith

    Is there a command to list all users? Also to add, delete, modify users, in the terminal?

    • 9 Answers
  • Marko Smith

    How to delete a non-empty directory in Terminal?

    • 4 Answers
  • Marko Smith

    How to unzip a zip file from the Terminal?

    • 9 Answers
  • Marko Smith

    How can I copy the contents of a folder to another folder in a different directory using terminal?

    • 8 Answers
  • Marko Smith

    How do I install a .deb file via the command line?

    • 11 Answers
  • Marko Smith

    How do I run .sh scripts?

    • 16 Answers
  • Marko Smith

    How do I install a .tar.gz (or .tar.bz2) file?

    • 14 Answers
  • Marko Smith

    How to list all installed packages

    • 24 Answers
  • Marko Smith

    Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    • 25 Answers
  • Martin Hope
    Flimm How can I use docker without sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp How do I save terminal output to a file? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd How to unzip a zip file from the Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    pandisvezia How can I copy the contents of a folder to another folder in a different directory using terminal? 2011-12-11 17:19:37 +0800 CST
  • Martin Hope
    TheXed How do I install a .deb file via the command line? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan How to list all installed packages 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry How do I determine the total size of a directory (folder) from the command line? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "The following packages have been kept back:" Why and how do I solve it? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford How can PPAs be removed? 2010-07-30 01:09:42 +0800 CST

Related Questions

Trending Tags

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

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve