LINUX.ORG.RU

Сообщения superuser

 

Помогите отсоединить шлейф

 

Как отсоединить шлейф матрицы такого типа как тут https://pikabu.ru/story/skaz_o_pochinke_netbuka_irbis_5229187
Вот фотка с подсоединённым шлейфом https://cs6.pikabu.ru/post_img/big/2017/07/30/11/1501438043192247365.jpg
а вот уже с отсоединённым https://cs6.pikabu.ru/post_img/big/2017/07/30/11/1501437981174711158.jpg
сам разъём в длину всего 19 мм., боюсь сломать.

superuser
()

Вопрос по «make LSMOD=xxx localmodconfig»

 , ,

Хочу собрать custom ядро для некоторого targetPC. На targetPC пакеты для сборки и т.п. ставить не хочу.
В инструкции https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/READM... есть пример:

"make localmodconfig" Create a config based on current config and
                      loaded modules (lsmod). Disables any module
                      option that is not needed for the loaded modules.

                      To create a localmodconfig for another machine,
                      store the lsmod of that machine into a file
                      and pass it in as a LSMOD parameter.

              target$ lsmod > /tmp/mylsmod
              target$ scp /tmp/mylsmod host:/tmp

              host$ make LSMOD=/tmp/mylsmod localmodconfig
Копирую mylsmod на ПК где буду собирать, делаю как написано и получаю такое:
$ make LSMOD="/tmp/mylsmod" localmodconfig
using config: '/boot/config-4.19.80-pc'
WARNING: ACPI_THERMAL_REL is required, but nothing in the
  current config selects it.
WARNING: BT_QCA is required, but nothing in the
  current config selects it.
WARNING: BT_INTEL is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5640 is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5670 is required, but nothing in the
  current config selects it.
WARNING: SND_SST_IPC is required, but nothing in the
  current config selects it.
WARNING: SND_DMAENGINE_PCM is required, but nothing in the
  current config selects it.
WARNING: MFD_AXP20X is required, but nothing in the
  current config selects it.
WARNING: INTEL_SOC_DTS_IOSF_CORE is required, but nothing in the
  current config selects it.
WARNING: SND_COMPRESS_OFFLOAD is required, but nothing in the
  current config selects it.
WARNING: SND_SST_IPC_ACPI is required, but nothing in the
  current config selects it.
WARNING: BT_BCM is required, but nothing in the
  current config selects it.
WARNING: DW_DMAC_CORE is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5645 is required, but nothing in the
  current config selects it.
WARNING: BT_RTL is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_ACPI_INTEL_MATCH is required, but nothing in the
  current config selects it.
WARNING: SND_SST_ATOM_HIFI2_PLATFORM is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_ACPI is required, but nothing in the
  current config selects it.
WARNING: BT_RTL is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5645 is required, but nothing in the
  current config selects it.
WARNING: DW_DMAC_CORE is required, but nothing in the
  current config selects it.
WARNING: BT_BCM is required, but nothing in the
  current config selects it.
WARNING: SND_SST_IPC_ACPI is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_ACPI is required, but nothing in the
  current config selects it.
WARNING: SND_SST_ATOM_HIFI2_PLATFORM is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_ACPI_INTEL_MATCH is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5670 is required, but nothing in the
  current config selects it.
WARNING: SND_SST_IPC is required, but nothing in the
  current config selects it.
WARNING: BT_INTEL is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5640 is required, but nothing in the
  current config selects it.
WARNING: BT_QCA is required, but nothing in the
  current config selects it.
WARNING: ACPI_THERMAL_REL is required, but nothing in the
  current config selects it.
WARNING: INTEL_SOC_DTS_IOSF_CORE is required, but nothing in the
  current config selects it.
WARNING: SND_COMPRESS_OFFLOAD is required, but nothing in the
  current config selects it.
WARNING: MFD_AXP20X is required, but nothing in the
  current config selects it.
WARNING: SND_DMAENGINE_PCM is required, but nothing in the
  current config selects it.
WARNING: BT_RTL is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5645 is required, but nothing in the
  current config selects it.
WARNING: DW_DMAC_CORE is required, but nothing in the
  current config selects it.
WARNING: BT_BCM is required, but nothing in the
  current config selects it.
WARNING: SND_SST_IPC_ACPI is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_ACPI is required, but nothing in the
  current config selects it.
WARNING: SND_SST_ATOM_HIFI2_PLATFORM is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_ACPI_INTEL_MATCH is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5670 is required, but nothing in the
  current config selects it.
WARNING: SND_SST_IPC is required, but nothing in the
  current config selects it.
WARNING: BT_INTEL is required, but nothing in the
  current config selects it.
WARNING: SND_SOC_RT5640 is required, but nothing in the
  current config selects it.
WARNING: BT_QCA is required, but nothing in the
  current config selects it.
WARNING: ACPI_THERMAL_REL is required, but nothing in the
  current config selects it.
WARNING: INTEL_SOC_DTS_IOSF_CORE is required, but nothing in the
  current config selects it.
WARNING: SND_COMPRESS_OFFLOAD is required, but nothing in the
  current config selects it.
WARNING: MFD_AXP20X is required, but nothing in the
  current config selects it.
WARNING: SND_DMAENGINE_PCM is required, but nothing in the
  current config selects it.
module snd_soc_acpi_intel_match did not have configs CONFIG_SND_SOC_ACPI_INTEL_MATCH
module bluetooth did not have configs CONFIG_BT
module intel_soc_dts_iosf did not have configs CONFIG_INTEL_SOC_DTS_IOSF_CORE
module 8250_dw did not have configs CONFIG_SERIAL_8250_DW
module snd_pcm_dmaengine did not have configs CONFIG_SND_DMAENGINE_PCM
module axp20x did not have configs CONFIG_MFD_AXP20X
module dw_dmac did not have configs CONFIG_DW_DMAC
module punit_atom_debug did not have configs CONFIG_PUNIT_ATOM_DEBUG
module input_leds did not have configs CONFIG_INPUT_LEDS
module axp288_adc did not have configs CONFIG_AXP288_ADC
module sdhci did not have configs CONFIG_MMC_SDHCI
module ip_tables did not have configs CONFIG_IP_NF_IPTABLES
module intel_cht_int33fe did not have configs CONFIG_INTEL_CHT_INT33FE
module snd_soc_rt5670 did not have configs CONFIG_SND_SOC_RT5670
module snd_soc_sst_atom_hifi2_platform did not have configs CONFIG_SND_SST_ATOM_HIFI2_PLATFORM
module snd_soc_acpi did not have configs CONFIG_SND_SOC_ACPI
module snd_soc_rt5640 did not have configs CONFIG_SND_SOC_RT5640
module roles did not have configs CONFIG_USB_ROLE_SWITCH
module int3406_thermal did not have configs CONFIG_INT3406_THERMAL
module joydev did not have configs CONFIG_INPUT_JOYDEV
module int3403_thermal did not have configs CONFIG_INT340X_THERMAL
module snd_compress did not have configs CONFIG_SND_COMPRESS_OFFLOAD
module btrtl did not have configs CONFIG_BT_RTL
module axp20x_pek did not have configs CONFIG_INPUT_AXP20X_PEK
module aes_i586 did not have configs CONFIG_CRYPTO_AES_586
module snd_hdmi_lpe_audio did not have configs CONFIG_HDMI_LPE_AUDIO
module btintel did not have configs CONFIG_BT_INTEL
module btbcm did not have configs CONFIG_BT_BCM
module axp20x_i2c did not have configs CONFIG_MFD_AXP20X_I2C
module snd_soc_core did not have configs CONFIG_SND_SOC
module dw_dmac_core did not have configs CONFIG_DW_DMAC_CORE
module mac_hid did not have configs CONFIG_MAC_EMUMOUSEBTN
module sdhci_acpi did not have configs CONFIG_MMC_SDHCI_ACPI
module snd_intel_sst_core did not have configs CONFIG_SND_SST_IPC
module int340x_thermal_zone did not have configs CONFIG_INT340X_THERMAL
module gpio_keys did not have configs CONFIG_KEYBOARD_GPIO
module acpi_thermal_rel did not have configs CONFIG_ACPI_THERMAL_REL
module mmc_block did not have configs CONFIG_MMC_BLOCK
module axp288_fuel_gauge did not have configs CONFIG_AXP288_FUEL_GAUGE
module rfcomm did not have configs CONFIG_BT_RFCOMM
module mei_txe did not have configs CONFIG_INTEL_MEI_TXE
module extcon_axp288 did not have configs CONFIG_EXTCON_AXP288
module lpc_ich did not have configs CONFIG_LPC_ICH
module processor_thermal_device did not have configs CONFIG_INT340X_THERMAL
module cfg80211 did not have configs CONFIG_CFG80211
module x_tables did not have configs CONFIG_NETFILTER_XTABLES
module sch_fq_codel did not have configs CONFIG_NET_SCH_FQ_CODEL
module snd_soc_rt5645 did not have configs CONFIG_SND_SOC_RT5645
module intel_soc_dts_thermal did not have configs CONFIG_INTEL_SOC_DTS_THERMAL
module r8723bs did not have configs CONFIG_RTL8723BS
module intel_int0002_vgpio did not have configs CONFIG_INTEL_INT0002_VGPIO
module int3400_thermal did not have configs CONFIG_INT340X_THERMAL
module snd_soc_sst_bytcr_rt5640 did not have configs CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH
module dptf_power did not have configs CONFIG_DPTF_POWER
module soc_button_array did not have configs CONFIG_INPUT_SOC_BUTTON_ARRAY
module snd_intel_sst_acpi did not have configs CONFIG_SND_SST_IPC_ACPI
module btqca did not have configs CONFIG_BT_QCA
module bnep did not have configs CONFIG_BT_BNEP
module snd_soc_rl6231 did not have configs CONFIG_SND_SOC_RL6231
module hci_uart did not have configs CONFIG_BT_HCIUART
module axp288_charger did not have configs CONFIG_AXP288_CHARGER
#
# configuration written to .config
#
По выхлопу видно, что make берёт почему-то текущий конфиг ядра системы /boot/config-4.19.80-pc и всё делает не так как задумывалось, в результирующем .config отсутствуют все нужные модули (axp288_charger и т.д.).

Документация устарела? Как правильно это сделать?

superuser
()

Linux в опасности!

 , , , ,

Всем известно, что для запуска любого приложения в Linux требуется одно из условий - на файле приложения должен быть установлен execute permissions флаг.
Благодаря лишь одному этому условию, невозможно случайно запустить вирус скаченный из интернета или полученный на флешке, он просто не запустится, надо вручную устанавливать флаг.
Пользователи Linux оказались под простой и надёжной защитой.

Но такая ситуация не даёт покоя рептилоидам и прочим мошенникам.
«Что-же делать? ...» - думают они - "... Как нам зарабатывать деньги, заражать компьютеры, продавать антивирусы и прочую, оказавшуюся ненужной, херню?"
И решили: «Надо внедрить диверсантов и потихоньку всё испортить!»

Итак, заметил, что с каких-то пор, эти пидиверсанты внесли изменения дефолтных прав доступа при монтировании ntfs, vfat и прочих ф.с. - все файлы по умолчанию стали исполняемыми, установлен execute permissions флаг.
Теперь если скачать файл с вирусом и поместить его на диск с файловой системой ntfs или fat32, или воткнуть флешку с вирусом, то он сразу будет исполняемым и его можно случайно или преднамеренно запустить.
Такие вот дела.

Я конечно сразу это исправил себе вот таким патчем:

--- a/src/udiskslinuxfilesystem.c
+++ b/src/udiskslinuxfilesystem.c
@@ -331,7 +331,7 @@
 
 /* ---------------------- vfat -------------------- */
 
-static const gchar *vfat_defaults[] = { "uid=", "gid=", "shortname=mixed", "utf8=1", "showexec", "flush", NULL };
+static const gchar *vfat_defaults[] = { "uid=", "gid=", "shortname=mixed", "utf8=1", "showexec", "flush", "dmask=022", "fmask=133", NULL };
 static const gchar *vfat_allow[] = { "flush", "utf8", "shortname", "umask", "dmask", "fmask", "codepage", "iocharset", "usefree", "showexec", NULL };
 static const gchar *vfat_allow_uid_self[] = { "uid", NULL };
 static const gchar *vfat_allow_gid_self[] = { "gid", NULL };
@@ -339,7 +339,7 @@
 /* ---------------------- ntfs -------------------- */
 /* this is assuming that ntfs-3g is used */
 
-static const gchar *ntfs_defaults[] = { "uid=", "gid=", NULL };
+static const gchar *ntfs_defaults[] = { "uid=", "gid=", "dmask=022", "fmask=133", NULL };
 static const gchar *ntfs_allow[] = { "umask", "dmask", "fmask", "locale", "norecover", "ignore_case", "windows_names", "compression", "nocompression", "big_writes", NULL };
 static const gchar *ntfs_allow_uid_self[] = { "uid", NULL };
 static const gchar *ntfs_allow_gid_self[] = { "gid", NULL };

Upd.: https://yadi.sk/d/g0gL_MY_N6I1Kw

А что сделал ты, линупсоид?

superuser
()

XFCE 4.14 - баги

 , , , ,

Господа!
Давайте поможем улучшить самую лучшую DE - XFCE 14.4 !

Предлагаю в этой теме сообщать о лютых (и не очень) багах, которые мы обнаружили.
Я не владею так хорошо english language :( что-бы зарепортить самым главным там, поэтому прошу - зарепорте им сами.

Итак, обнаружил баги (Xubuntu 18.04):

  1. Panel: Notification Area panel plugin - некорректно отображает иконки при отключенном композитинге. Видео: https://yadi.sk/i/OSjY5-Hoq4l4kg
  2. Panel: Window Buttons panel plugin - иногда не отображаются кнопки окон.
    Заметил что каждый раз в одном из окон xfce4-terminal был залогинен под root-ом (возможно это как-то влияет).
    Видео: https://yadi.sk/i/x2GE2-ZRyRj9wA , ещё https://yadi.sk/i/RsdjPJe_aCmvtQ
    Обратите внимание на количество окон и сколько кнопок отражено внизу на панели.

    Upd.: post обновился.
superuser
()

linux.org.ru открывается только после ping

 , , ,

Сегодня, что-то такой глюк ловлю.
https://yadi.sk/i/Md_0ISfYqTb44g
Из-за чего такое может быть?
Из изменений - сменил самосборное ядро с 4.19.66 на 4.19.67 ну и

$ tail /var/log/apt/history.log 
...
Start-Date: 2019-08-16  15:38:48
Commandline: apt-get dist-upgrade
Requested-By: barin (1000)
Upgrade: libthunarx-3-0:amd64 (1.8.9-0ubuntu1~18.04, 1.8.9-1~18.04), thunar-data:amd64 (1.8.9-0ubuntu1~18.04, 1.8.9-1~18.04), libegl1-mesa-dev:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libegl-mesa0:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libegl-mesa0:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libtumbler-1-0:amd64 (0.2.7-0ubuntu1~18.04, 0.2.7-1~18.04), libglapi-mesa:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libglapi-mesa:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), mesa-common-dev:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), mesa-common-dev:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libxatracker2:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libegl1-mesa:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), thunar-volman:amd64 (0.9.5-0ubuntu1~18.04, 0.9.5-1~18.04), xfce4-dev-tools:amd64 (4.14.0-0ubuntu1~18.04, 4.14.0-1~18.04), libgbm1:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgbm1:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), tumbler:amd64 (0.2.7-0ubuntu1~18.04, 0.2.7-1~18.04), libwayland-egl1-mesa:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgles2-mesa-dev:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), thunar:amd64 (1.8.9-0ubuntu1~18.04, 1.8.9-1~18.04), tumbler-common:amd64 (0.2.7-0ubuntu1~18.04, 0.2.7-1~18.04), libgl1-mesa-dev:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgl1-mesa-dev:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgl1-mesa-dri:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgl1-mesa-dri:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libosmesa6:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libosmesa6:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), catfish:amd64 (1.4.8-1~18.04, 1.4.8-2~18.04), libgl1-mesa-glx:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgl1-mesa-glx:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libgbm-dev:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), mesa-vdpau-drivers:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), mesa-vulkan-drivers:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), mesa-va-drivers:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libglx-mesa0:amd64 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), libglx-mesa0:i386 (19.2~git1908151930.ceeaf9~oibaf~b, 19.2~git1908160730.861c2b~oibaf~b), xfce4-power-manager-data:amd64 (1.6.5-0ubuntu1~18.04, 1.6.5-1~18.04)
End-Date: 2019-08-16  15:39:39
но тут вроде ничего относящегося к проблеме

superuser
()

fias.nalog.ru

 , , , ,

Есть тут кто там работает?
Что за недопогроммистов туда понабирали?

$ sqlite3-dbf NORDOC16.DBF | iconv -f cp866 -t utf8 | grep 38b6e884-fda8-41a4-a155-015824968a09
INSERT INTO nordoc16 VALUES('38b6e884-fda8-41a4-a155-015824968a09','Об утверждении Перечня адресов объектов адресации, необходимых изменений и дополнений для внесения сведений в Федеральную информационную адресную систему по результатам инвентаризации объектов адресации, расположенных на территории Зеленорощинского с','2019-08-01','44','8','');

$ cat AS_NORMDOC_20190805_8414c6f1-d8d2-4a28-bd17-09054235185e.XML | tr '\>' '\n' | grep 38b6e884-fda8-41a4-a155-015824968a09
<NormativeDocument NORMDOCID="38b6e884-fda8-41a4-a155-015824968a09" DOCNAME="Об утверждении Перечня адресов объектов адресации, необходимых изменений и дополнений для внесения сведений в Федеральную информационную адресную систему по результатам инвентаризации объектов адресации, расположенных на территории Зеленорощинского сельского поселения Бугульминского муниципального района Республики Татарстан" DOCDATE="2019-08-01" DOCNUM="44" DOCTYPE="8" /

superuser
()

Origin

 , , , ,

Дарю инструкцию для интересующихся:

$ mkdir -p ${HOME}/Origin

В директории Origin создаём файл hchmod.c с содержимым:

#include <dlfcn.h>
#include <sys/stat.h>
#include <unistd.h>

int (*mkdir_real)(const char *pathname, mode_t mode) = NULL;
int (*chmod_real)(const char *pathname, mode_t mode) = NULL;
int (*fchmod_real)(int fd, mode_t mode) = NULL;

int mkdir(const char *pathname, mode_t mode){
  if ( mkdir_real == NULL ){
        mkdir_real = dlsym(RTLD_NEXT,"mkdir");
  }
return (mkdir_real(pathname, mode | S_IWUSR ));
}

int chmod(const char *pathname, mode_t mode){
  if ( chmod_real == NULL ){
        chmod_real = dlsym(RTLD_NEXT,"chmod");
  }
return (chmod_real(pathname, mode | S_IWUSR ));
}

int fchmod(int fd, mode_t mode){
  if ( fchmod_real == NULL ){
        fchmod_real = dlsym(RTLD_NEXT,"fchmod");
  }
return (fchmod_real(fd, mode | S_IWUSR ));
}
Собираем:
$ cd ${HOME}/Origin
$ gcc -shared -fPIC -D_GNU_SOURCE -o hchmod.so hchmod.c -ldl
Если вы уже безуспешно пытались установить Origin, то надо поправить права на папку:
$ chmod 755 "${HOME}/.wine/drive_c/Program Files (x86)/Origin"
или удалить её:
$ rm -R "${HOME}/.wine/drive_c/Program Files (x86)/Origin"
Качаем и устанавливаем Origin
$ wget https://download.dm.origin.com/origin/live/OriginSetup.exe
...
$ export LD_PRELOAD=${HOME}/Origin/hchmod.so 
$ wine OriginSetup.exe

Upd.: когда-то была ошибка входа, помогало это:

$ export LC_TIME=en_US.UTF-8
$ cd "$HOME/.wine/drive_c/Program Files (x86)/Origin/" 
$ wine Origin.exe

superuser
()

Нубашский (или нет?) вопрос про bash

 , , ,

$ app1 && app2

Если app1 валится с ошибкой, то app2 почему-то не запускается.
Как правильно напейсать, что-бы app2 запускалась в любом случае?

superuser
()

ALSA запись звука

 , ,

Помогите понять как захватывать с помощью ALSA звук тот что идёт в наушники. C pulseaudio проблем нет, звук захватывается так

$ ffmpeg -y -f pulse -i alsa_output.pci-0000_00_1f.5.analog-stereo.monitor -c:a copy out.wav
Отключаю pulseaudio:
$ pulseaudio -k
$ cat /etc/pulse/client.conf
...
autospawn = no
...
Пытаюсь записать звук с alsa:
$ ffmpeg -y -f alsa -i hw:0 -c:a copy out2.wav
звук не захватывается (в out2.wav тишина)
$ aplay -l
**** Список PLAYBACK устройств ****
карта 0: PCH [HDA Intel PCH], устройство 0: ALC887-VD Analog [ALC887-VD Analog]
  Подустройства: 1/1
  Подустройство №0: subdevice #0
карта 0: PCH [HDA Intel PCH], устройство 1: ALC887-VD Digital [ALC887-VD Digital]
  Подустройства: 1/1
  Подустройство №0: subdevice #0
карта 0: PCH [HDA Intel PCH], устройство 3: HDMI 0 [HDMI 0]
  Подустройства: 1/1
  Подустройство №0: subdevice #0
карта 0: PCH [HDA Intel PCH], устройство 7: HDMI 1 [HDMI 1]
  Подустройства: 1/1
  Подустройство №0: subdevice #0
карта 0: PCH [HDA Intel PCH], устройство 8: HDMI 2 [HDMI 2]
  Подустройства: 1/1
  Подустройство №0: subdevice #0

$ arecord -l
**** Список CAPTURE устройств ****
карта 0: PCH [HDA Intel PCH], устройство 0: ALC887-VD Analog [ALC887-VD Analog]
  Подустройства: 1/1
  Подустройство №0: subdevice #0
карта 0: PCH [HDA Intel PCH], устройство 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
  Подустройства: 1/1
  Подустройство №0: subdevice #0

superuser
()

Как монтировать initrd.img ?

 , , , ,

Вот такая проблема:

# mount -o loop initrd.img-4.18.0-16-generic /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
#

superuser
()

Параметр ядра «recovery»

 , , ,

Поскажите как обрабатывается параметр recovery.
Этот параметр ядро обрабатывает или init/systemd? И если он присутствует, то что запускает?

superuser
()

Chromium, артефакты в yandex|google картах

 , , , ,

Установил chromium (версия 74.0.3729.6) из ppa https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-dev
Аппаратное декодирование видео работает.
Но, наблюдаю (уже давно) такие баги https://yadi.sk/i/ZKucqFHryZ2veg в yandex/google картах.
С версией не из ppa таких багов нет, но и нет аппаратного декодирования.
GPU - Intel HD 630
В выхлопе есть ошибки:

( читать дальше... )

В chrome://flags ничего не менял.
В chrome://gpu это:

( читать дальше... )

Как исправить?

superuser
()

Эпоха Debian.

 , , ,

Товарищи я зол. Хотел собрать всё для этой темы Завести рабочий ffmpeg с h264_qsv в Ubuntu
Всё собрал, но ffmpeg * ubuntu. Как указать версию, чтобы ubuntu/debian не считала что версия ниже?

...
dpkg: предупреждение: снижение версии libavutil55:amd64 с 7:3.4.4-0ubuntu0.18.04.1 до 4.1-1
Подготовка к распаковке libavutil55_20181210.4.1-1_amd64.deb …
...
Подскажи как правильно, а то 5 раз уже пересобрал.

Перемещено leave из development

superuser
()

Мой ПК взломали?

 , , , ,

Захожу на ЛОР и вижу такое
https://i106.fastpic.ru/big/2018/1207/7b/_38de9982bd63e319dced41b302b8b37b.png
Особого значения не придал (но скрин сделал). Жму ютубе - нифига не качает. Что за...
Перезагрузил роутер (TP-Link 841) - всё заработало как должно быть. Вопрос как всегда - как дальше жить куда копать?

P.s.: Из репозиториев только эти

$ for X in /etc/apt/sources.list.d/*; do echo "** $X:"; cat $X; done | uniq
** /etc/apt/sources.list.d/mc3man-ubuntu-mpv-tests-bionic.list:
deb http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic main
... много ...
** /etc/apt/sources.list.d/skype-stable.list.save:
deb [arch=amd64] https://repo.skype.com/deb stable main

Upd 1: Почистил

$ for X in /etc/apt/sources.list.d/*; do cat $X; done
deb http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu bionic main
# deb-src http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu bionic main
но паранойя не проходит

superuser
()

Ошибка rtc

 , , ,

В dmesg имеется сообщение rtc с неправильным временем 2018-11-24 25:65:58

[    0.558477] rtc_cmos 00:05: RTC can wake from S4
[    0.558794] rtc rtc0: invalid alarm value: 2018-11-24 25:65:58
[    0.558807] rtc_cmos 00:05: registered as rtc0
[    0.558815] rtc_cmos 00:05: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
Подскажите пожалуйста, в чём причина?

superuser
()

Git. Как стянуть патчи с Github?

 , , ,

Сравниваю 2 git-a

https://github.com/torvalds/linux/compare/master...jwrdegoede:master

Поскажите как получить разницу в виде патчей на некоторые коммиты (интересуют только затрагивающие bluetooth) ? И желательно не выкачивая весь git.

superuser
()

Репозиторий поменял Label

 , ,

Вот такая ошибка

# apt-get update
Сущ:1 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic InRelease
Сущ:2 ...
...                                           
Пол:5 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic InRelease [15,4 kB] 
Чтение списков пакетов… Готово                               
E: Репозиторий «http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic InRelease» изменил значение поля «Label» с «Updated and Optimized Open Graphics Drivers» на «Updated Open Graphics Drivers»
N: Требуется явное подтверждение, прежде чем можно будет обновить данный репозиторий. Дополнительную информацию смотрите в справочной странице apt-secure(8).
Как правильно исправить без ppa-purge и повторного add-apt-repository?

superuser
()

Transmissions: Element 120

 , ,

Я один про эту игру не знал? http://store.steampowered.com/app/365300/Transmissions_Element_120/ Шедевр же.

superuser
()

Ubuntu обновляет пакеты как-то странно.

 , ,

Кто-нибудь заметил в Ubuntu такое странное поведение, когда обновляешь пакеты через командную строку:

# apt-get update && apt-get upgrade
, пакеты обновляются, но, сразу после обновления, появляется гуёвое окно с сообщением, что есть обновления и предлагает опять обновить, просит пароль и т.д. Вот пример из лога по последнему такому случаю, где запись с временем 13:23:41 это обновление из командной строки, а 13:30:12 это всплыло гуёвое окно.
$ cat /var/log/apt/history.log
...
Start-Date: 2018-01-17  13:23:01
Commandline: apt-get upgrade
Requested-By: barin (1000)
Upgrade: poppler-utils:amd64 (0.41.0-0ubuntu1.5, 0.41.0-0ubuntu1.6), intel-microcode:amd64 (3.20170707.1, 3.20180108.0~ubuntu16.04.2), transmission-common:amd64 (2.84-3ubuntu3, 2.84-3ubuntu3.1), linux-libc-dev:amd64 (4.4.0-104.127, 4.4.0-109.132), ruby2.3:amd64 (2.3.1-2~16.04.4, 2.3.1-2~16.04.5), gir1.2-gdkpixbuf-2.0:amd64 (2.32.2-1ubuntu1.3, 2.32.2-1ubuntu1.4), libgdk-pixbuf2.0-0:amd64 (2.32.2-1ubuntu1.3, 2.32.2-1ubuntu1.4), skypeforlinux:amd64 (8.11.0.4, 8.13.0.2), smplayer:amd64 (17.12.0-1~xenial1, 18.1.0-1~xenial1), libruby2.3:amd64 (2.3.1-2~16.04.4, 2.3.1-2~16.04.5), smtube:amd64 (17.5.0-1~xenial1, 18.1.0-1~xenial1), distro-info-data:amd64 (0.28ubuntu0.6, 0.28ubuntu0.7), libwebkit2gtk-4.0-37:amd64 (2.18.4-0ubuntu0.16.04.1, 2.18.5-0ubuntu0.16.04.1), libgdk-pixbuf2.0-common:amd64 (2.32.2-1ubuntu1.3, 2.32.2-1ubuntu1.4), libgdk-pixbuf2.0-dev:amd64 (2.32.2-1ubuntu1.3, 2.32.2-1ubuntu1.4), gir1.2-webkit2-4.0:amd64 (2.18.4-0ubuntu0.16.04.1, 2.18.5-0ubuntu0.16.04.1), transmission-gtk:amd64 (2.84-3ubuntu3, 2.84-3ubuntu3.1), linux-tools-common:amd64 (4.4.0-104.127, 4.4.0-109.132), libpoppler-glib8:amd64 (0.41.0-0ubuntu1.5, 0.41.0-0ubuntu1.6), libpoppler58:amd64 (0.41.0-0ubuntu1.5, 0.41.0-0ubuntu1.6), libjavascriptcoregtk-4.0-18:amd64 (2.18.4-0ubuntu0.16.04.1, 2.18.5-0ubuntu0.16.04.1), ubuntu-mono:amd64 (14.04+16.04.20161024-0ubuntu1, 14.04+16.04.20171116-0ubuntu1), libwebkit2gtk-4.0-37-gtk2:amd64 (2.18.4-0ubuntu0.16.04.1, 2.18.5-0ubuntu0.16.04.1), gir1.2-javascriptcoregtk-4.0:amd64 (2.18.4-0ubuntu0.16.04.1, 2.18.5-0ubuntu0.16.04.1)
End-Date: 2018-01-17  13:23:41

Start-Date: 2018-01-17  13:28:58
Commandline: aptdaemon role='role-commit-packages' sender=':1.53'
Install: linux-image-4.13.0-25-generic:amd64 (4.13.0-25.29~16.04.2, automatic), linux-headers-4.13.0-25:amd64 (4.13.0-25.29~16.04.2, automatic), linux-image-extra-4.13.0-25-generic:amd64 (4.13.0-25.29~16.04.2, automatic), linux-headers-4.13.0-25-generic:amd64 (4.13.0-25.29~16.04.2, automatic)
Upgrade: linux-generic-hwe-16.04-edge:amd64 (4.13.0.21.27, 4.13.0.25.31), linux-headers-generic-hwe-16.04-edge:amd64 (4.13.0.21.27, 4.13.0.25.31), linux-image-generic-hwe-16.04-edge:amd64 (4.13.0.21.27, 4.13.0.25.31)
End-Date: 2018-01-17  13:30:12
...
Подскажите о Гуру, какого х** это я где-то галочку поставил или это новшество Ubuntu и как его отключить?
Почему команда apt-get upgrade обновила не все установленные пакеты, а часть оставила обновлять какому-то aptdaemon-у?
P.s.: раньше такого не было!

superuser
()

ffmpeg запись окна

 ,

Есть ли у кого рабочий вариант записи не всего экрана, а окна с титулом meldown например?

superuser
()