Quantcast
Channel: User Martin Vegter - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 46 View Live

Comment by Martin Vegter on log out from slim, or slim restart results in...

@tukan - here is my slim.conf: ctxt.io/2/AABQfYQ6EA

View Article



Comment by Martin Vegter on zsh: check exit code of pipeline of commands

@Kusalananda - I think this works in zsh when you enable the multios option

View Article

Comment by Martin Vegter on zsh: check exit code of pipeline of commands

this does not seem to work. Could you please look at my updated question?

View Article

Comment by Martin Vegter on cups: Unable to open listen socket for address...

@Bib - you are right! I did not have lo interface up. ifup lo fixed the problem

View Article

Comment by Martin Vegter on start multiple terminal windows in a "process...

@meuh - sorry, but I am not using systemd. I am using sysvinit. I did not specify this in my question, because I did not anticipate it would be relevant.

View Article


Comment by Martin Vegter on start multiple terminal windows in a "process...

@meuh - I do have bash installed, but I am using zsh

View Article

Comment by Martin Vegter on start multiple terminal windows in a "process...

@MC68020 - thank you, but it does not work!. I get: Maximum function recursion depth (1000) reached

View Article

GUI volume indicator in Openbox

I am using plain openbox as my window manager.I have configured keyboard special keys, such as XF86AudioMute, XF86AudioLowerVolume and XF86AudioRaiseVolume.But how can I get the gui indicator, when I...

View Article


lilo: Fatal: raid_setup: stat("/dev/nvme0n1")

I have booted Debian Live CD, and I am trying to create lilo boot record on my diskThe disk partition is mounted as /mnt/root and has the linux kernel and...

View Article


ath11k_pci: failed to connect to HTT: -110

I have Qualcomm QCNFA765 wifi card.I am using custom-compiled kernel 6.1.55 and I have ath11k_pci in the kernel, and all firmware files are loaded successfully. Yet, when booting, I see on the...

View Article

Image may be NSFW.
Clik here to view.

wifi terribly slow and unreliable, then works fine after few restarts

I have a bizarre wifi problem on my new lenovo laptop (Qualcomm QCNFA765 / ath11k_pci).Most of the time, the wifi connection is terribly slow and unreliable. One ping might me 3 ms, and next might me...

View Article

system clock is off by one hour after every reboot

Every time I start my laptop, the clock is off by exactly one hour. I have to run ntpdate to fix it. Next time I restart the laptop, it will be off again.I have timezone set up correctly.I am using...

View Article

default gateway not set when using bond0 interface

This is my /etc/network/interfaces file:auto bond0iface bond0 inet manual address 10.66.7.11/24 gateway 10.66.7.1 bond-mode 802.3ad bond-slaves eth2 eth3 bond-miimon 100 bond-downdelay 200 bond-updelay...

View Article


when I put laptop to sleep, and close the lid, it immediately wakes up

I have new ThinkPad T14s Gen 4, AMD.when I put the laptop to sleep:echo mem > /sys/power/stateit goes to sleep, but as soon as I close thew lid, it wakes up.When I boot Debian Live CD, then sleep...

View Article

check md5sum from pipe

I am confused how md5sum --check is supposed to work:$ man md5sum-c, --check read MD5 sums from the FILEs and check themI have a file, I can pipe it to md5sum:$ cat file |...

View Article


Using empty line as context "group-separator" for grep

I need grep output with context, in color, and blank lines as group separator. In this question, I learned how to define custom group-separator, and I have constructed my grep command like this:grep...

View Article

sshd: error: connect_to ff00::: unknown host

when I connect to server with ssh with SOCKS proxy tunnel, ie:ssh myserver -D2345and then on the cleint start firefox and configure SOKS proxy to use my tunnel, then on the server, I get flood of...

View Article


cat: /dev/ttyS0: Input/output error

I am unable to write to or read from /dev/ttyS0# cat /dev/ttyS0 cat: /dev/ttyS0: Input/output errorthe device exists, and root has permissions.# ls -lAhF /dev/ttyS0crw------- 1 root root 4, 64 Nov 18...

View Article

specify mount option in /etc/fstab (mode=1777)

I have following line in my /etc/fstab:/dev/mapper/tmp /tmp ext4 noexec,nodev,nosuid,mode=1777 0 0When I try to mount /tmp, I get following error in dmesg: EXT4-fs (dm-1): Unrecognized mount option...

View Article

don't log cron events in auth.log

In my /etc/rsyslog.conf, I have the following line to log the auth facility into /var/log/auth.log:auth,authpriv.* /var/log/auth.logbut the file is flooded with cron logs, such as these:CRON[18620]:...

View Article

server does not retry dhcp after previously getting no dhcp offer

My server gets IP address from dhcp. Sometimes the dhcp server does not respond, and my server times out (no dhcp offer, sleeping)I thought, my server would re-try dhcp, but that does not happen.Also,...

View Article


chromium: specify file association, instead of opening file in xdg-open

When I click on a file in chromium, it calls xdg-open to open the file based on its mime type.For example, if I click on a file with a .torrent extension, it opens it in my torrent client.Is it...

View Article


convert markdown to pdf in commandline

what is the simplest tool to convert markdown to pdf in commandline?I have found howtos where people suggest to use pandoc, but the required packages need gigabytes of dependencies:apt-get install...

View Article

set multiple environment variables in .desktop file

I can add env in .desktop file in /usr/share/applications/Exec=env FOO=bar /usr/bin/my_progbut I need to set 2 environment variables and no approach that I tried works (using env twice, appending...

View Article

bash: no job control in this shell

I have a minimal Linux system.init is /bin/bash, only bare minimum of libraries in /lib/, /dev/ is populated statically, no daemons running (no udev, ..) When bash starts, I get following error:bash:...

View Article


Disable webcam at boot time, by appending a boot parameter

I have an internal webcam on my Dell laptop. I don't see it listed with lspci, but it works.I am using a self-compiled kernel, and here are the options I have enabled:# zcat /proc/config.gz | grep -v...

View Article

Comment by Martin Vegter on syslinux UEFI boot: automatically select boot...

I need to boot these laptops from external USB media. I need one master USB media, that works on multiple devices. The devices will have different boot options, such as different kernel and different...

View Article

Comment by Martin Vegter on syslinux UEFI boot: automatically select boot...

@Bertrand125 - thank you for the effort. But this will not work. The solution cannot depend on the laptop's boot partition. The whole point in booting from external USB media is to be able to boot the...

View Article

zsh completion: complete from predefined list

My zsh script takes following arguments:./script --connect server --foo 3 --bar 5 name--foo and --bar take integers, name is the only non-option argument, and --connect should complete from predefinded...

View Article



Using export in .bashrc

I have noticed in my .bashrc that some lines have export in front of them, such asexport HISTTIMEFORMAT="%b-%d %H:%M "...export MYSQL_HISTFILE="/root/.mysql_history"whereas others don't, such as...

View Article

Comment by Martin Vegter on alsa: decrease volume for specific application

@MC68020 - I actually installed firefox 115 as standard debian package (both on Debian 10 and Debian 12). Would your suggested solution still work ? So to clarify, the Firefox I am using probably has...

View Article

Comment by Martin Vegter on zsh completion for umount: limit completion to...

thank you. But it still wants to suggest options, when I press TAB after the mountpoint: umount /mnt/tmp <TAB>, will complete to umount /mnt/tmp -, and list all -options. Is it possible to stop...

View Article

zsh completion for umount: limit completion to one argument

when I use zsh completion for the umount command:umount /mnt/t<TAB>it completes the mounted filesystem /mnt/tmp.But when I accidentally press tab too many times, it tries to be too helpful, and...

View Article


Comment by Martin Vegter on zsh completion for cssh: complete hosts from...

I have applied your changes, but it does not work and I get: _cssh:2: unmatched " error. Here is the complete _cssh file: ctxt.io/2/AABISTd9Fg

View Article

zsh completion for cssh: complete hosts from /etc/hosts as well as ~/.ssh/config

my zsh completion file _cssh has this line, which completes hosts only from /etc/hosts:'*:userhostport: _alternative hosts:host:_hosts usersathosts:userathost:_user_at_host'how do I make it complete...

View Article

zsh completion for custom script: URL + optional parameters

I have zsh completion for custom script, where one parameter must be URL (ie, string) and then there are several optional parameters: --AAA --BBB --CCC:_arguments -S : \'--AAA' \'--BBB' \'--CCC' \'1:...

View Article

Browsing latest articles
Browse All 46 View Live


Latest Images