А как танцуете вы?
Поцаны, подскажите название стиля (или как его там) под что тащатся тут: https://www.youtube.com/shorts/2RqIVJkd28I
Поцаны, подскажите название стиля (или как его там) под что тащатся тут: https://www.youtube.com/shorts/2RqIVJkd28I
Почему команда выдает ошибку если все предусмотрено её параметрами?
0 $ pushd /tmp
/tmp ~
0 $ echo 111 > 111
0 $ echo 222 > 222
0 $ mv -n 111 222
mv: not replacing '222'
1 $ # WTF
0 $ man mv
...
-n, --no-clobber
do not overwrite an existing file
If you specify more than one of -i, -f, -n, only the final one takes
effect.
...
на одном и том-же наборе файлов на разных ПК.
Вероятно это нормально и надо добавлять ... | sort.
Или есть нюанс?
При этом в dmesg:
[ 2853.507915] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 2853.510098] ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[ 2853.510110] ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[ 2853.513166] ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[ 2853.513178] ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[ 2853.514046] ata1.00: configured for UDMA/133
[ 2893.485021] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 2893.487183] ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[ 2893.487195] ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[ 2893.490195] ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
[ 2893.490206] ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
[ 2893.491062] ata1.00: configured for UDMA/133
Подскажите регулярку пж:
# Надо из
aaa-bbb-ccc=aaa-bbb-ccc
# получить
aaa_bbb_ccc=aaa-bbb-ccc
Сначала схема (стеклянного шара) к теме:
A=https://github.com/void-linux/void-packages
# master-------------------------------------------------|------>
# |
B=https://github.com/onlylunix/void-packages (FORK) |
# master 25277 commits behind |>
# firebird3upd 1 commit ahead of, 25277 commits behind |->
C=localhost
$ git config --get remote.origin.url
git@github.com:onlylunix/void-packages.git
WEB), т.к. всё ломается и PR-ы приходится закрывать и создавать новые.WEB кнопкой [Sync fork] обновляю ветку B:firebird3upd до A:master. При этом будет конфликт. В WEB редактирую конфликтный файл (Есть такой функционал?).git pull, что загрузит изменения Sync-нутые и сделанные в WEB при решении конфликта.WEB кнопкой [Sync fork] обновляю ветку B:firebird3upd до A:master. При этом будет конфликт. Ничего не редактирую.git checkout firebird3upd
git fetch
nano 'конфликтный файл' # редактирую 'конфликтный файл'
git add 'конфликтный файл'
git commit --amend --no-edit
git push --force
git checkout firebird3upd
git pull --rebase upstream master
nano 'конфликтный файл' # редактирую 'конфликтный файл'
git add 'конфликтный файл'
git commit
git push --force
PISHU IZ GORIASHEGO TANKA! Viruchayte, nado spasti mnogo chego! Sistema bila k.m.k na /dev/sda6
# fdisk -l
Disk /dev/loop0: 1.16 GiB, 1243377664 bytes, 2428472 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/loop1: 5.3 GiB, 5695864832 bytes, 11124736 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/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM010-2EP1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1874C5A5-01C2-A449-BEFF-5E061BA03007
Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G EFI System
/dev/sda2 2099200 35653631 33554432 16G Linux swap
/dev/sda3 35653632 69208063 33554432 16G Linux filesystem
/dev/sda4 69208064 236980223 167772160 80G Linux filesystem
/dev/sda6 236980224 320866303 83886080 40G Linux filesystem
/dev/sda7 320866304 404752383 83886080 40G Microsoft basic data
/dev/sda8 404752384 1075841023 671088640 320G Linux filesystem
/dev/sda10 1075841024 1411385343 335544320 160G Linux filesystem
/dev/sda11 1411385344 1746929663 335544320 160G Microsoft basic data
/dev/sda12 1746929664 1953525134 206595471 98.5G Linux filesystem
Disk /dev/sdb: 7.23 GiB, 7767851008 bytes, 15171584 sectors
Disk model: Silicon-Power8G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x51b3017a
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 2825759 2825760 1.3G 0 Empty
/dev/sdb2 156 65691 65536 32M ef EFI (FAT-12/16/32)
# e2fsck -f -y /dev/sda6
e2fsck 1.47.2 (1-Jan-2025)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sda6
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
# smartctl -a /dev/sda
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.12.11_1] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate BarraCuda 3.5 (CMR)
Device Model: ST1000DM010-2EP102
Serial Number: ZN1B7GB1
LU WWN Device Id: 5 000c50 0c39fc983
Firmware Version: CC43
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.5/5706
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri May 30 02:39:47 2025 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 109) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1085) SCT Status supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 078 063 006 Pre-fail Always - 60315713
3 Spin_Up_Time 0x0003 097 096 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 098 098 020 Old_age Always - 2954
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 083 060 045 Pre-fail Always - 211324354
9 Power_On_Hours 0x0032 070 070 000 Old_age Always - 26565
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 098 098 020 Old_age Always - 2951
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 065 053 040 Old_age Always - 35 (Min/Max 34/36)
193 Load_Cycle_Count 0x0032 099 099 000 Old_age Always - 2969
194 Temperature_Celsius 0x0022 035 007 000 Old_age Always - 35 (0 7 0 0 0)
195 Hardware_ECC_Recovered 0x001a 001 001 000 Old_age Always - 60315713
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 26526h+07m+48.151s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 18248507762
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 26058776194
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
The above only provides legacy SMART information - try 'smartctl -x' for more
Стали часто появляться темы как многие пользуются результатами всяких ChatGPT, но почему-то мне ни разу не попала даже реклама подобного сервиса :( ...
Где вы берёте эти ChatGPT и что сейчас мощнее?
Есть такой вопрос https://github.com/void-linux/void-packages/issues/54230
Там рекомендуют использовать xbps-src chroot с дальнейшим ручным вводом.
Если использовать xbps-src chroot foo, то команда foo игнорируется.
Если делать:
./xbps-src chroot << EOF
cd /builddir/linux6.14-sky-6.14.0
make menuconfig
EOF
Хочу клонировать лепрозиторий, но есть подозрение что места на диске не хватит.
Есть ли в git опция, которая покажет необходимый размер?
Какой ты линуксоид, если не соберёшь себе это сам
Вендузятник ты, иди отсюда
Давным давно на CD диске была игра про Марс. Подскажите пожалуйста если кто помнит такую.
Схема сети:
Роутер
192.168.0.1 ------ 192.168.0.2
|
|
|
wlp1s0
192.168.0.4 enp2s0 ------ 192.168.0.10
В роутере:
# ip route add 192.168.0.10 via 192.168.0.4
# ip route
default via 100.XXX.XXX.X dev pppoe-wan
100.XXX.XXX.X dev pppoe-wan scope link src 100.YYY.YYY.YYY
192.168.0.0/24 dev br-lan scope link src 192.168.0.1
192.168.0.10 via 192.168.0.4 dev br-lan
На 192.168.0.4:
# ip -4 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
inet 192.168.0.4/32 scope global noprefixroute enp2s0
valid_lft forever preferred_lft forever
3: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 192.168.0.4/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp1s0
valid_lft 35309sec preferred_lft 35309sec
# ip route
default via 192.168.0.1 dev wlp1s0 proto dhcp src 192.168.0.4 metric 600
192.168.0.0/24 dev wlp1s0 proto kernel scope link src 192.168.0.4 metric 600
192.168.0.10 dev enp2s0 proto static scope link metric 700
# echo 1 > /proc/sys/net/ipv4/ip_forward
Но достучаться до 192.168.0.10 не могу ни с роутера, ни с 192.168.0.2 разумеется.
Чего не хватает?
Решение: Помогите с сетью пж (комментарий)
Хорошо было бы хранить некоторые настройки отображения на клиенте в cookies-ах, особенно «Старый вид трекера и форума»,
ибо дюже заколебало его переключать каждый раз, когда меняю смартфон на ПК или обратно.
Наверняка это просто сделать тем кто умеет.
Также предлагаю доработать новую тему трекера согласно рисунку https://ibb.co/4FTfH6F
Попытался было оформить ОСАГО на vsk.ru, ввожу значит необходимые данные, всё хорошо, жму оплатить и vsk.ru перекидывает на pay.alfabank.ru (картина маслом https://ibb.co/n0G2B2H), а у меня не alfabank же, а другой банк вообще.
Я правильно понял что вводить номер своей карты категорически нельзя и это попытка обмана?
Что-то сломало звуковую подсистему.
Пытаюсь менять громкость, но она меняется обратно и регулятор в трее дергается с частотой 1Гц
Снял на видео https://disk.yandex.ru/i/GsqRh2cOE4wnWg
Куда смотреть? /Pulseaudio и pipewire не предлагать./
Подскажите команду в линуксах или простое решение без лишних зависимостей, перлов и пистонов.
#!/bin/bash
dir1=/tmp/000/111/1/1/1
dir2=/tmp/000/111/1/1/2
dir3=/tmp/000/112/1/1/1
mkdir -p "$dir1"
mkdir -p "$dir2"
mkdir -p "$dir3"
cmd=???
result=$($cmd "$dir1" "$dir2" "$dir3")
echo $result # надо получить /tmp/000/
cmndir(){
local eop=$(($#+1))
local result=''
local tmps=''
for (( i = 0; i < ${#1}; ++i)); do
local a=${1:$i:1}
for (( n = 2; n < ${eop}; ++n)); do
local x="x=\${$n:$i:1}"
eval $x
[ "x$a" == "x$x" ] || { echo $result; return 0; }
done
tmps=$tmps$a
[ "x$a" == "x/" ] && result=$tmps
done
echo $result
}
Оформил недавно PR https://github.com/void-linux/void-packages/pull/42755
В процессе проверок были выявлены проблемы. Решил их и опять сделал коммиты. После чего контрибьютер abenson написал: «Please squash these into a single commit.»
Безуспешно попытавшись обьединить коммиты в 1, я решил закрыть PR и сделать новый, т.к. с git я только со вчера.
$ git clone git@github.com:onlylunix/void-packages.git
$ git remote add upstream https://github.com/void-linux/void-packages.git
$ git pull
$ git checkout master -b firebird3upd3.0.10-1
$ git add srcpkgs/firebird3/files/firebird-fix-perm-fdb
$ git add srcpkgs/firebird3/files/firebird.xinetd
# git add ...
$ commit -m "firebird3: update to 3.0.10"
$ git push --set-upstream origin firebird3upd3.0.10-1
$ git add srcpkgs/firebird3/files/firebird-fix-perm-fdb
$ git commit -m "Ololo"
$ git push --set-upstream origin firebird3upd3.0.10-1
In the future, please make the changes by amending and squashing the existing commits and then force pushing to the same branch.»
Как продавить PR для voidlinux? Надо ли приглашать ментейнера пакета и как это делать и где его найти? Где-то читал, что надо приглашать мейнтейнера привязанного к пакету, но немогу сейчас найти где.
PR -> https://github.com/void-linux/void-packages/pull/42755
Upd.: нужна помощь зрительного зала Pull request voidlinux на github (комментарий)
PR -> https://github.com/void-linux/void-packages/pull/42789
VoidLinux, systemd отсутствует совсем.
Звук у пользователя есть, но нет у root-а, а надо.
Pipewire и pipewire-pulse запускаются пользователем.
Доступ настроил как в теме Доступ к pipewire-pulse из разных юзеров? , спасибо
dimgel.
Выхлопы команд:
# alsamixer
cannot open mixer: Узел выключен
# mpg123 alarm.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.30.2; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
[src/libout123/modules/alsa.c:open_alsa():181] error: cannot open device default
[src/libout123/libout123.c:check_output_module():984] error: Module 'alsa' device open failed.
[src/libout123/libout123.c:out123_open():482] error: Found no driver out of [alsa] working with device <default>.
main: [src/mpg123.c:check_fatal_output():333] error: out123 error 3: failure loading driver module
# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pipewire
PipeWire Sound Server
default
Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, X2483/2481
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
| следующие → |