Questions tagged [linux]

A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

smartctl: Confusing attributes and selftest results

The server where I keep old photos, videos and the like contains a bunch of spinning 3TB disks (WD Caviar Green). I rarely switch it on. One of the disks seems to have two flaky sectors. The OS here ...
1 vote
0 answers
37 views

How can I convert a BIN and a CUE file to an ISO image on Linux?

I downloaded two disk images files on the Internet Archive that contain operating systems installation files. I have a .BIN and a .CUE, and I want to convert them to a single ISO. I tried using bchunk ...
  • 11
1 vote
0 answers
19 views

in linux, prevent processes to go for sleep

in linux (bullseye 11, kde ), prevent processes to go for sleep. Problem: When I am away for couple hours and return to computer, I need 10-20 minutes to bring even my mouse in a state that I can use. ...
0 votes
0 answers
16 views

How to update OpenWrt to kernel 5.10.165 if I have already manually updated the kernel to 5.10.162?

I use OpenWrt and I applied a patch about kernel update, 5.10.162 but now in the master, they updated to .165. But they were at .161, so now they did .161 to .165 so when I try to update my build I ...
0 votes
1 answer
21 views

Accessing WSL2 from my LAN (Static IP?)

I want to access, from my LAN, services provided by the linux distribution installed into WSL2. Ok, I know how to remap ports on the host. My problem is that the Windows11 host assigns a different IP ...
  • 185
-2 votes
0 answers
41 views

How to program a computer to launch a specific program when the computer starts up? [closed]

I want to connect a small computer to my grandpa's TV with an HDMI cable. The computer should run a program that goes directly to, for example, a streaming service when the computer starts. My grandpa ...
0 votes
2 answers
34 views

Moving all pwd contents to pwd's parent directory?

Another user asked about this and I'm looking for clarification because apparently I can't comment until I have 50 pts. One of the given answers for moving everything(including hidden items) up a ...
0 votes
0 answers
17 views

Debian Loding Linux 701... error: invalid magic number

Yesterday before going to bed debian wanted make an update when I tried to close my computer. When I about to do the update the computers battery died, and I went to sleep. Today when I tried to boot ...
  • 103
-2 votes
0 answers
50 views

Why are there so many commands in the Linux (Ubuntu) default commands that are named with hyphens instead of underscores? [closed]

Some discuss like this seems about file name in some project, not single file script (shell/python). using-underscore-in-file-names & why-are-underscores-better-than-hyphens-for-file-names Q: Why ...
  • 1
0 votes
0 answers
18 views

How to deny access to shared folder from a specific user on Linux ubuntu

i have 3 machines on my virtual box, Server, Host 1 and Host 2 i shared a directory from the server to both the hosts using the scp command but now i need to deny the access to the shared folder from ...
  • 1
0 votes
0 answers
11 views

flush the boot journal log after every line

My old hp laptop (Celeron N3060) won't boot with a 6.1.* kernel. The 6.0.18 kernel still boots fine. The boot log (journalctl -b-1) for a failed boot ends after about a 1000 lines with Jan 27 17:42:...
2 votes
1 answer
34 views

Sort files into folders by file name according to a spreadsheet of names

I am a teacher and use Canvas-LMS for my course. The course is broken into smaller groups led by individual teaching assistants, who grade student assignments in their own section. Canvas only ...
  • 123
0 votes
1 answer
9 views

cannot type registers with shift (specially + and *) on vim

I'm using vim 9.0.1182-1 (the -1 is for arch packages, not sure about patches, reading up on them still), both on kde (both X11 and wayland) and the native TTY. On all those environments, i cannot ...
  • 4,616
0 votes
0 answers
8 views

How to disable IPv6 on a logical/vlan/sub interface?

On Linux CentOS7, sysctl fails disabling IPv6 on a logical/vlan/sub interface : $ ip -6 -o a show dev bond0.53 20: bond0.53 inet6 fe80::b283:feff:fee6:ba1/64 scope link \ valid_lft forever ...
  • 1,387
0 votes
0 answers
20 views

Ran fdisk on wrong disk which was part of an LVM

I wanted to add space to an LVM so added a Virtual disk to my Ubuntu 20.04 Virtual Machine. The VM already had 3 disks /dev/sda 32.2GB # OS Disk /dev/sdb 537GB # Data Disk, part of the LVM: ...
  • 131
0 votes
1 answer
23 views

Systemd service keeps stopping

I have several systemd user services, but after a while they all stop (and restart), with little information. Here's one of the services, a Go web server: [Unit] Description=App [Service] ...
  • 3
0 votes
0 answers
18 views

(Bodhi Linux) can't connect to the internet?

Installed Bodhi Linux yesterday on an old computer (ran windows 7 before). Hooked up a lan cable that works on my main (laptop, Windows 11) and it shows that they can't connect to reddit. They can (i ...
0 votes
0 answers
30 views

Configure Linux to run Python 3 web application with Flask [closed]

How do I configure my hosted Linux VPS instance to run Python 3 web applications? I've done numerous searches over the last couple days with limited success. Most of the documentation I've found ...
0 votes
0 answers
19 views

ldap_bind: Invalid Credentials (49) How can I solve it?

When I try to use the command ldapadd -x -D cn=admin,dc=jonaserver,dc=com -W -f ou.ldif it asks me for a password which I'm supposed to put right. But it always says invalid credentials ( 49) What can ...
user avatar
0 votes
0 answers
23 views

every time i open my parrot OS terminal i get bash: ‘export: command not found

I prefer Linux. I accidentally executed a misspelled command in terminal. sudo echo 'export PATH=/home/grump/miniconda3/bin:$PATH' >> /.bashrc What can I do now that it is constantly executing ...
1 vote
1 answer
33 views

Is it possible to halt xterm scrolling while the program is running

I am trying to make xterm to meet my criteria for a terminal emulator. Most of the features I want are built into xterm but there is one that I can not get working. I'd like to ask if someone knows if ...
  • 11
0 votes
0 answers
7 views

run command in a new window of a separate tmux detached session

What is the tmux command to open a video file (with mpv) with its terminal output opened in a new window of another session called media (create the session if it doesn't exist)
1 vote
0 answers
16 views

Preseed late_command

I am trying to add a late_command to my preseed.cfg file but I get following error. command: d-i preseed/late_command string \ no_proxy=0,1,2,3,4,5,6,7,8,9 preseed_fetch /scripts/...
  • 11
1 vote
0 answers
27 views

Why does bash sometimes not start properly when i SSH into my raspberry pi from my computer (but works when SSH'ing from my phone)?

Usually, I can ssh into my raspberry pi (running Raspbian 11) just fine. But sometimes, every few days, ssh will timeout. This will last about a day (independent of restarts of my computer), until ...
0 votes
0 answers
14 views

Is it possible to send packets to network interface in an android device from host computer by network interface name and MAC address?

Recently I saw a demonstration to fuzz IPv6 network interface of an android device The tool in use was fuzz_ip6 from https://github.com/vanhauser-thc/thc-ipv6 And the tool was executed in the form of ...
1 vote
1 answer
22 views

Vim - create numbered backup files?

I find myself wanting Vim to create numbered backup files, so every time I save there's some ordinal number in the back-file name. My current impetus is that I make changes in C code that have un-...
  • 113
0 votes
0 answers
3 views

GNU screen "No screen session found." when using -X parameter

I have two users I want to share screens with. first_user starts screen session: screen -dmSL session_name sh start_server.sh second_user wants to attach to the session: screen -x first_user/...
0 votes
0 answers
14 views

Unable to inject errors with Einj (mce-test, ras-tools)

I want to inject memory errors on my system to check whether RAS/EDAC system really works and logs errors on my memory (during boot or any runtime). I came across with many tools but I don't know ...
0 votes
1 answer
20 views

Am I able to hide the Gnome title bar for applications?

I've forgotten if this is even possible. I have been using another OS and it's gotten me use to not seeing the OS's titlebar on applications. Is it possible to hide it when using Gnome? (I am on ...
  • 3
0 votes
0 answers
14 views

RHEL UBI8.6-FIPS: yum install aide -> No match for argument: aide

BLUF: I want to install AIDE via package manager but yum is not able to find the rpm SYSTEM SETUP: Docker image/container of RHEL UBI8.6-FIPS running on Ubuntu 20.04 DISA-STIG compliant FIPS enabled ...
0 votes
0 answers
21 views

Unable to use sudo command

I am unable to use sudo. It happened a week ago when I was trying to create a new fstab because I had used the wrong UUID. After I corrected the UUID I received the message below. I was also wondering ...
0 votes
0 answers
9 views

Installed apps from snapcraft.io not showing in Manjaro Launcher

I just installed Manjaro on my PC. I tried to download some apps, but I didn't find everything in the AUR. So I installed snap and installed the app with the snap command. Now I wanted to start the ...
0 votes
0 answers
19 views

Use DHCP server from local network for guest system

I have a host system connected to with eth0 interface to the local network. Host system get network config from DHCP server that runs in this local network. I want to test PXE related configuration of ...
-2 votes
0 answers
28 views

How to tell the Windows version from the file system (on Linux) in 2023? [duplicate]

I got a Windows HDD connected to my PC using an USB case. How to determine the Windows version (7/8/10/11)? Is there a file which contains version info? I have read How to identify the Windows version ...
  • 796
0 votes
0 answers
22 views

Usb drive died after zeroing out with dd, appears as Generic_USB_Flash_Disk-0:0 with size appearing undefined (-)

I have USB drive and I wanted to install Arch GNU/Linux on a old laptop so I decided to flash Arch GNU/Linux Iso but I noticed that when I booted into arch installer, it shown garbled data in the boot ...
0 votes
0 answers
39 views

Unbearable slow with high-end built desktop

I have a recent build with an ASUS Pro WS WRX80E-SAGE SE Motherboard, AMD Ryzen Threadripper PRO 5975WX Processor, 512GB of RAM, and 4TB NVME Sabrent Rocket 4 Plus, but it is unbearably slow. My ...
  • 1
0 votes
0 answers
8 views

Midnight Commander: Recursively copy files by pattern

I have two directories named "src" and I want to copy recursively all C++ source files (*.h and *.cpp) from one directory to the other (including subdirectories). Using the pattern as a ...
  • 1
1 vote
0 answers
24 views

How to install an old kernel in Kali Linux 2022.4?

The reason I want to install an old kernel is that my laptop WiFi adapter doesn't work well in monitor mode. By that I mean, airodump shows all clients as "not associated" when they actually ...
  • 11
0 votes
1 answer
15 views

Find log files under multiple directories and compress each file with its own name and date

I have multiple directories like below and I want to compress each file in place. /var/dir1/logs/logfile.log /var/dir2/logs/logfile.log /var/dir3/logs/logfile.log I want to use find and tar with ...
1 vote
1 answer
16 views

Using expect in bash to execute a command passing a password from a file

Can someone help me on my below request please. I'm trying to send password from a file to execute a script on remote machine, however it is giving error as Password: can't read "sys_pw": no ...
  • 11
0 votes
0 answers
27 views

useradd: create home AND another directory for user

I am aware that a new user's home directory can be created by doing sudo useradd -m -d /home/<username> <username>. However, let's say that I also want to make another non-home directory ...
  • 101
0 votes
0 answers
19 views

How to share socks proxied internet with OpenWrt

I have a router in which installed OpenWrt 22.03.3 and I do ssh root@192.168.1.1 into it. Then I run these two commands: ssh -fnD 1010 root@my_public_server -pPort Now I can have a socks proxy from ...
  • 309
-3 votes
0 answers
23 views

Is there any way to send email to linux server to execute a script [closed]

For example i want to send an email to a server xyz@localhost and it will in turn run a command depending on the email subject or body.
0 votes
0 answers
23 views

Corrupted Drives While Copying Large Files Between LUKS Partitions

I'm currently in the process of backing up a few terrabytes of files from one drive to another. (both LUKS encrypted HDDs) Unfortunately, after some time I always end up with readonly filesystem ...
0 votes
0 answers
23 views

Limiting SSH Tunnel users maxlogins

I've created a bunch of users on my Ubuntu VPS to do just SSH tunneling using this command: (taken from here) sudo adduser someuser --shell=/bin/false --no-create-home which works fine as expected. ...
0 votes
0 answers
15 views

SCardListReaders : Cannot find a smart card reader. (0x8010002E)

My local pc is intel_x86 run on Ubuntu linux I'm trying to use a smartcard reader that I bought from China. The device is a Zoweetek zw-12026-3. I tried to install the driver from this link https://...
  • 13
0 votes
1 answer
16 views

Options error: Unrecognized option or missing or extra parameter(s) in myfile.ovpn:1: ��c (2.5.8)

I'll add the file's contents excluding the various secret contents client nobind dev tun remote-cert-tls server remote myserver.com 1194 udp <key> -----BEGIN PRIVATE KEY----- -----END PRIVATE ...
0 votes
2 answers
29 views

Can I get raw access to the PS/2 port in Linux?

Context: I have an exotic keyboard with a screen on it. I believe that the host machine draws on the screen by sending commands down a PS/2 connection (I'm still reverse engineering the protocol). My ...
0 votes
1 answer
27 views

Enable ssh in emergency mode for centos 9

I'm trying make a backup system for my Centos Stream 9 headless server by installing a cloned system disk on a newer machine. No surprise, the newer machine booted into emergency mode (hardware ...
  • 119
0 votes
1 answer
11 views

bash hotkey or special operator to save contents of bash prompt input to file

when i need to accomplish something on the command-line i often start with the default $> prompt. i do this so that i can get fast feedback while iterating a complex command. more often than not, ...
  • 165

1
2 3 4 5
1135