New answers tagged

0 votes

Why does my HP printer keep getting stuck on the last page when printing on Linux?

You don't have to remove and readd the printer, it would sufficient to change the driver to hplip. I had the same problem on a HP Envy 4504, where the last page of a job (duplex or not, independend ...
Solon's user avatar
  • 1
1 vote

USB with Kali Linux 2024.1 (not live) installed not visible in boot menu

Firstly, Kali Linux is a distro designed for professionals, or at least very experienced Linux users. Personally, I use Kali myself but when I first got into Linux, I started off with it too. However, ...
Hman66's user avatar
  • 126
0 votes

Installing epson scanner in Kubuntu and non free plugin

The Epson Scan 2 Manual has this information in section 5.1.2. Installation in command: Installing plug-in package (When network scanning or optional image processing function is required) Some more ...
harrymc's user avatar
  • 482k
0 votes

terminal automatically shows user@dhcp instead of user@fedora

The part after @ in your shell prompt is the system hostname (i.e. your own computer's name as set through "Settings > About"). The DHCP server is probably set up to provide a new ...
u1686_grawity's user avatar
0 votes

How to rip Audio-CD to mp3 in Linux console?

Use ripit package, from Debian, for example: package Debian 12 ripit ripit - Textbased audio CD ripper -c 1 for oggenc $ ripit -e -u -o ~/Documents/music -c 1 -b 192 Work fine for me!
whiteshark's user avatar
0 votes

How can I configure OpenSSH to forward SFTP-Requests?

Yes, it needs to be some form of ForceCommand ssh <actual_host>, so you must get the "second step" authentication dealt with first. The error message you're getting is normal at this ...
u1686_grawity's user avatar
1 vote

How do I jump to the beginning of a command in Windows Terminal?

Assuming you've typed in a command (or used command history to bring it in as the current command), Home and End should get the cursor to the start or end, respectively, of the command line. (And Ctrl+...
RobH's user avatar
  • 394
0 votes

how to delete all files that are old then X days and ended with number/s

Please help me to build the right syntax. What you used: find . -type f -mtime +6 -name '*[0-9]' -print -delete is the right syntax, with few caveats: -delete is not portable. In general, ...
Kamil Maciorowski's user avatar
1 vote
Accepted

How to stop ufw-firewall preventing me to ssh into another server?

It's not a weird issue; you just literally do not have a rule that would allow port 22 outbound – your list only has an ALLOW IN rule but not an ALLOW OUT one, and since it's set to deny by default, ...
u1686_grawity's user avatar
0 votes

Brother HL-L2325DW Printer on Arch Linux Will Not Print, Despite Showing That the Job Has Completed

It looks like your printer is supported for IPP everywhere or Airprint - which means you don't need to provide explicit ppd files, as the printer can provide them by initiating the printer setup with ...
Mike Cloaked's user avatar
0 votes

File transfer: Windows WinSCP orders-of-magnitude faster than Linux scp/rsync

Since 9.0, OpenSSH scp is actually an SFTP client. See Using sftp like scp. For speeding up OpenSSH SFTP see, Speed up SFTP uploads on high latency network? Though with scp, the sftp -R x maps to -X ...
Martin Prikryl's user avatar
1 vote

What drivers do I need to install for an Epson in Kubuntu?

The driver you need to install, for all Debian/Ubuntu and derivatives is the first one in your screenshot. After following the link and accepting the license you should arrive at: https://support....
ChanganAuto's user avatar
  • 1,526
-1 votes

What is the Windows analog of the Linux watch command?

Here is the idiomatic PowerShell version of the excellent solution by @Wesley: function Watch-Command { [CmdletBinding(ConfirmImpact = 'High')] param ( [Parameter(Mandatory = $true, ...
Adam Erickson's user avatar
0 votes

How to make bash keep most frequently used history entries for ever?

Another answer that doesn't answer this exact question but may give a viable solution to the root problem: I have a couple of settings/scripts triggered from my .bashrc/.bash_profile that I use to ...
millebi's user avatar
  • 101
0 votes
Accepted

Access remote SSH tunnel from inside docker container

After a 2 week deep dive into networks in general, docker networking in particular and how docker interacts with iptables, I now feel confident to answer my own question: First of all, this has ...
henk's user avatar
  • 101
1 vote

File transfer: Windows WinSCP orders-of-magnitude faster than Linux scp/rsync

If WinSCP works better on your network, then try using WinSCP on Fedora in wine. In the wine compatibility database, WinSCP v.5.x has a "silver" rating, and v. 6 and later are "gold&...
DrMoishe Pippik's user avatar
0 votes

wireguard client to client communication does not work

TLDR: iptables -I FORWARD -i wg0 -o wg0 -j ACCEPT I have never tried Rocky Linux. Here is what I used on Ubuntu and wg-easy docker. Hope it works for you too. sudo docker run -d \ --name=wg-easy \ ...
BrilliantPHAL's user avatar
0 votes

How to force GPG to use console-mode pinentry to prompt for passwords?

I am a tmux user and usually GPG asks for the password in a different pane (I think the first one that interacted with GPG) when using pinentry-*. Whatever pinentry I set, the result was the same, and ...
mrbolichi's user avatar
  • 123
0 votes

Stop a systemd service and clear all persistent data

You can use systemctl clean: $ systemctl clean unit-name
Iizuki's user avatar
  • 111
2 votes
Accepted

Ubuntu 22.04 dies all of a sudden after some time, yet the PC is still running

I have 2 Ubuntu 22.04 machines running 24x7. The problem with spontaneous freezing began several weeks ago forcing me to restart the machines. Ubuntu updates from April 12 to April 14-15 (2024) have ...
John's user avatar
  • 50.1k
0 votes
Accepted

Rsync Compare-Dest not Recognizing Wildcard

Here's what's happening: Your command contains a wildcard. Normally such things will be processed and expanded by the shell before rsync even gets to run. However, in this instance what the shell ...
Chris Davies's user avatar
  • 3,883
0 votes

What's the relationship of /bin and /usr/bin?

TO ANSWER YOUR QUESTION: The relationship between /bin and /usr/bin is very often (as in your case) a symbolic link. The arrow on the folders indicates that /bin is a symbolic link for /usr/bin on ...
Harvey Williams's user avatar
0 votes

How can I set up an access point on Linux and still be connected to the internet?

However, now the laptop cannot connect to the net, as all of its interfaces are used by other devices With Linux bridges, the br0 interface itself acts as not only the bridge, but also as the host OS ...
u1686_grawity's user avatar
0 votes

tmux doesn't instantly update pane's title

Instant updates based on the command are impossible in the automatic-rename mechanism that's being used here, because tmux itself does not know what is being executed and when. It is not told by the ...
u1686_grawity's user avatar
0 votes

How can I view .HEIC photos on Linux?

For support on Gwenview (default KDE image viewer) install the optional dependencies: kimageformats libheif
Ben Mordecai's user avatar
0 votes

Cannot Expand Datastore in ESXi 6.7 of a 4TB RAID1 Drive Configuration

I went into the configuration for storage devices and see what partitions were on the disk. I saw that there was still a VMDK despite me deleting what I did. So I deleted that partition. This also ...
Dynamic Orchid's user avatar
1 vote

Is it possible to automatically take zfs snapshots on boot or shutdown?

I considered the same issue for my own filesystem setup, and decided that the "logically consistent" property you suggest is less important than it sounds. Any program that is critically ...
Ben Millwood's user avatar
0 votes

PAM SSSD Allow Local Users

I booted up into recovery mode, managed to run pam-auth-update which noticed that something had been wrongly edited in the pam.d directory. (This was after a failed Duo/MFA install) Once I had ...
jamboNum5's user avatar
  • 101
0 votes

How to bring X11/Xorg/X Server back from the dead on Debian 12?

Checking the log at /var/lib/dkms/nvidia-current/525.147.05/build/make.log, I learn that having a colon in the actual path is not too well received, even though Linux will allow it. I had symlinked /...
Joshua E. Vines's user avatar
0 votes

How do I find files by last day in a month? (or how to copy the latest file per month)

Solution With GNU toolset: find . -type f -exec sh -c 'LC_ALL=C stat --printf="%.Y|%y|%n\0" -- "$@"' find-sh {} + \ | LC_ALL=C sort -zr -t '|' -k 1,1 \ | LC_ALL=C sort -zsu -t '|' ...
Kamil Maciorowski's user avatar
0 votes

Stop rsync from deleting large amounts of data when disk accidentally umounted

DYI solution. You can run the desired rsync with the --dry-run first, watch/count word 'deleting' and decide if proceeding with the rsync without --dry-run based on the count assesment. Example with ...
wwk's user avatar
  • 21
0 votes

Why am I getting blurred fonts in Linux apps in ChromeOS?

I also run into this with my external 4K monitor but there's a trick I've learned to work around the problem. If I close the lid of my Chromebook and use only the LG HDR 4K (3840x2160) by itself when ...
Neil C. Obremski's user avatar
0 votes

How do I copy command output in vim?

I'm so late to the party... I've been looking for a way to pipe that list to my fzf-powered shell goodies for some time, and today this post allowed me to finish! I got this nice one-liner, it could ...
mrArias's user avatar
  • 101
0 votes
Accepted

lftp for sftp is not working; stuck on `ls' at 0 [Connecting...]

I was able to get it to work by using set sftp:connect-program "ssh -oPreferredAuthentications=password -a -x"
user3152289's user avatar
0 votes

rootless podman container needs access to host's SSL cert and key - what's the correct thing to do here?

Taken from this tutorial Create a directory to store the SSL cert and key in the host machine. Copy the SSL cert and key to the directory created in step 1. Create a Podman container with the ...
Silbee's user avatar
  • 1,120
0 votes
Accepted

iptables not dropping udp port for exact ip address

I fixed the problem by replacing DROP with REJECT, i don't know why this works but here is the result: -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -N f2b -A INPUT -p tcp -m multiport --dports ...
user9503's user avatar
0 votes

ProtonVPN removed from Linux but kill switch stuck on; how can I disable it?

Sharing the answer I found here: https://discussion.fedoraproject.org/t/how-to-proton-vpn-killswitch-stuck-on-a-solution/75457 The command nmcli c down pvpn-killswitch-perm should do the job! If for ...
Nick C's user avatar
  • 36
0 votes

NTFS external hard drive formatted on Linux is not recognized by Windows

The problem is likely that the partition table type is "Linux filesystem", which you can verify in fdisk with the p command to print the partition table. The partition table can easily be ...
Taylor Kline's user avatar
0 votes

All GTK/VTE-based terminal emulators are showing a significant input lag

For any users looking for a quick fix to this issue, I have found that Konsole is not GTK/mutter-based and is not suffering from this issue. Konsole can be installed on Gnome through the software ...
db 1070's user avatar
0 votes
Accepted

How can I fix app after having to pkill it and nowt crashes when starting

It complains about OpenGL. It might be caused by video drivers. Do other OpenGL apps work (for example, another browser)? If not, then most likely you have a problem with video drivers. Although ...
Anonymous148087's user avatar
0 votes

How can I open a file read-only from command line with emacs/vi/vim

I use emacsclient to speed up opening my files in Emacs. But emacsclient does not have a dedicated flag for read-only mode, nor is it possible to combine a filename with eval string. So I use an eval ...
Philip's user avatar
  • 1,595
0 votes

Bought an X220 Lenovo in a good shape. Used it for a couple of weeks. But for two days I can't load the battery

I have an X230 in my basement that works fine. I got a proper (FRU) battery from Dr Battery on Amazon. This works great. So you will need to (very most likely) get a specific battery replacement for ...
John's user avatar
  • 50.1k
0 votes

Hard time understanding LUKS encryption

As others said, your files will be exposed when the luks container is open. In order to prevent access to those files, you need other security mechanisms, such as proper firewall rules, proper access ...
CarriMegrabyan's user avatar
4 votes
Accepted

Is there a Windows equivalent of Linux `.desktop` file to execute various commands (like as many custom "apps")

Don't you notice all the icons to apps on Windows desktop are *.lnk files? Exactly the same as desktop icons on Ubuntu representing by *.desktop. Just open the console on desktop and run dir and you'...
phuclv's user avatar
  • 27.9k
0 votes

How can I find out how long my slurm job took to execute?

Adding on previous answers, if you didn't save the JobID, you can use: sacct --format=JobID,JobName,State,Elapsed This will give you the last jobs, its state (RUNNING, FAILED, COMPLETE...) and the ...
Núria Fàbrega's user avatar
0 votes
Accepted

linux zsh forge alias for clear that prints executed commandline

I was able to achive it with the history variable of zsh. the variable $history[$HISTCMD] contains the last executed command line that in this case is always the commandline executed just now. So ...
vlad_tepesch's user avatar
0 votes

GPT PMBR Size Mismatch will be corrected by w(rite)

Does this mean that Linux will (attempt to) resize the GPT partition boundaries if I mount and try to write to the disk? No. It means write as in @Maze s answer. The tool parted offers to apply a ...
Jonas Äppelgran's user avatar
0 votes

linux zsh forge alias for clear that prints executed commandline

You can try enabling debugging mode through set command. Here is a demonstration to do the same. clear; date; set -x; echo "Hello"; set +x The first clear and date command are part of your ...
Amartya Sinha's user avatar
0 votes

How can I view .HEIC photos on Linux?

Viewing .HEIC, .WebP, and .AVIF photos on Linux Option 1 (preferred): Shotwell v0.32.0 or later now works to view .HEIC, .Webp, and .AVIF images! Install (via Flatpak) and use the latest version of ...
Gabriel Staples's user avatar
1 vote
Accepted

Shell prompt colored outside of tmux, but not in tmux; how can I get colored prompt in tmux?

I assume the shell is Bash. In Ubuntu the skeletal (default) .bashrc contains this or similar snippet: # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" ...
Kamil Maciorowski's user avatar

Top 50 recent answers are included