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.
58,235
questions
1
vote
2
answers
3k
views
How to connect Arch Linux Guest to Virtual Box Bridged Network (Wireless NIC)
I've tried to install Arch Linux as a VirtualBox VM a couple of days ago. Everything worked like a charm - if there hadn't been that issue that I can't connect to anything when I set the VM to use a ...
2
votes
5
answers
4k
views
Editing the same file from multiple computers
My friend and I need to view and edit the same file at the same time. We were using Google Docs, but the firewall is now blocking it.
If we connected our computers with a network cable (no hub or ...
1
vote
1
answer
4k
views
Failed to start MySQL Community Server After Updating to Ubuntu 22.04.2
I have updated my Ubuntu server on DigitalOcean to version 22.04.2. Now I can't log in to the phpMyAdmin ( also my Flask website can't connect to the MYSQL ). When trying to login to the phpMyAdmin ...
0
votes
2
answers
2k
views
Is there any other way to get IPTables to filter IP addresses based on geolocation in Ubuntu 12.0.4.5 (LTS)
So a few of the servers I manage are being slammed by traffic from China when the sites themselves would have utterly no appeal to anyone in China in any way. To make things worse, lots of unwanted ...
0
votes
1
answer
31
views
Make server not to use VPN as a default gateway
I have a local server connected to a remote WireGuard VPN. The server routes all its traffic through the VPN (wg0 interface), but I need it to use the VPN only to communicate with other members of the ...
1
vote
1
answer
4k
views
How to access a Linux encrypted external hard drive on Windows 7 Home Premium?
I encrypted my external hard drive using Linux Mint (Ubuntu) and password protected it. Now I can't access it on Windows 7 as it gives errors and won't mount. Is there a software that will allow me to ...
1
vote
2
answers
155
views
DNS issue on Debian 10
I'm currently facing an issue on my Debian server where:
the ping command (and all my applications) is unable to resolve hostnames
but
I can successfully resolve hostnames using the systemd-resolve ...
0
votes
0
answers
41
views
How to X11 forward after multi hopping in SSH?
I have the following SSH flow: root@HostA -> root@HostB -> root@HostC -> user@HostD
I want to do X11 forwarding for Firefox on HostD all the way back to HostA, since A, B and C don't have ...
1
vote
0
answers
41
views
Moving Windows from dual-boot to a separate disk
I have a Windows/Linux dual-boot system on a 1TB SSD.
I want to move my Windows to a separate (256 GB) SSD and keep Linux on the 1TB SSD.
I've found several articles explaining how to move entire ...
0
votes
1
answer
33
views
Linux: how to suppress listing loop devices when using mount command?
Is there a way to prevent including loop devices when using mount command on its own in order to list existing mounts?
When there are dozens of loopback devices it's tedious having to sift through the ...
1
vote
1
answer
33
views
How to force Chrome to sync bookmarks without re-starting?
I'm doing a small project where I need to programmatically edit Chrome bookmarks in Python preferably.
Default Chrome bookmarks are stored in a Bookmarks file. The regular app settings live under ~/....
0
votes
1
answer
45
views
"ls: cannot open directory '.': No such file or directory" in Git Bash (in VS Code terminal)
I am working in a Git Bash terminal within Visual Studio Code. For some reason, when the behavior of the terminal changed so that if I execute ls, the result is
ls: cannot open directory '.': No such ...
1
vote
1
answer
45
views
How to resize a linux raid-1 volume?
my some-years-old linux server has four raid-1 volumes:
/dev/md1 on /boot type ext4
/dev/md2 on / type ext4
/dev/md3 on /home type ext4
/dev/md4 on /data type ext4
The four volumes are stored in this ...
0
votes
0
answers
13
views
Centos 7 yum update issue
I am getting the below error while doing the "yum update" in centos7. I tried all other ways to fix but nothing is working. Please find the below full error for your information.
Please find ...
6
votes
1
answer
3k
views
What does locale-gen generate in Linux?
In my understanding, a locale is just a set of environment variables that indicate the system language and region. But before we can use it, we need to edit locale.gen file to indicate what locale(s) ...
0
votes
1
answer
62
views
CentOS Kernel panic - not syncing: Attempted to kill int during bootup
Building has a annual power shutdown for maintenance for 2 days.
As such, prior to it, I have shut down the CentOS 6 server.
After the power is back on (2 days later), when I boot back up, I ...
0
votes
0
answers
21
views
What things can be done to not get errors at running sdkmanager and other utilities of Android SDK (a version for command line)?
I try to compile an application written on Python 3.10.12 in Linux Mint 21.2 for Android. According to instructions, for example, this one, Android SDK must be installed. There is a possibility to ...
0
votes
1
answer
94
views
How to install sox for PyTorch audio?
I want to run PyTorch code on Linux. I start a virtual machine on AWS with AMI Deep Learning PyTorch, but, surprisingly, PyTorch is not installed. So I run:
python3 -m pip install torch torchaudio
...
1
vote
1
answer
594
views
Permission Denied error when trying to run my app as a service with systemd
I wanna run an app as a service by an unprivileged user in Ubuntu. Following is the command to create the user:
sudo groupadd -r mygroup
sudo useradd -r -s /bin/false -g mygroup myuser
sudo chown -R ...
12
votes
3
answers
16k
views
SSH Agent Forwarding not working even when using `ssh -A`
First of all, I've checked all the following
Agent Forwarding not working
Extra configuration required for ssh-agent forwarding?
SSH Agent Forwarding Not Working
https://serverfault.com/questions/...
0
votes
2
answers
3k
views
wget error: bad header line
Why doesn't this work?:
wget -q -U Mozilla "http://rss.slashdot.org/Slashdot/slashdot" -O - | tr '\n' ' '
p.s.: and under openwrt 10.03:
# wget "http://slashdot.org/" -O -
Connecting to slashdot.org (...
286
votes
5
answers
140k
views
What's the equivalent of Linux's updatedb command for the Mac?
If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the ...
0
votes
0
answers
11
views
Can't extend volume in Windows after deleting Ubuntu dual boot, and Ubuntu still shows up in boot options?
I installed Ubuntu to my second SSD (500 GB not main) as dual boot. I have now deleted it as I don't need it but whenever I try to extend the volume to the unallocated space it says there isn't enough ...
0
votes
2
answers
62
views
How to force declare -f to respect semicolons
Given the function
hello () { echo "one"; echo "two"; }
Inside a script I'm using cmd="$(declare -f hello); hello" then I try executing the command using bash -c $cmd, ...
1
vote
3
answers
29k
views
Live boot USB username/password doesn't work Kali Linux
I've made a live USB of Kali Linux (latest amd64, using Rufus), and it boots up fine and everything, but when I try any of the live versions (I can install it fine, I would much more like to have it ...
412
votes
11
answers
535k
views
How to check which apache modules are enabled/installed?
Which is the most elegant way to check which apache modules are enabled?
0
votes
2
answers
111
views
How to test for ext4 Partition? Not ext4 Filesystem
using:
neofetch --stdout |grep 'OS:'
OS: Kubuntu 22.04.3 LTS x86_64
Start Update Question due to someone deleted information:
No interest in testing for ext4 Filesystem.
lsblk -n -o FSTYPE /dev/sdb1 ...
0
votes
0
answers
20
views
Google authenticator MFA codes aren't working in Linux
I want to enable MFA to use sudo commands on my laptop running Debian. I followed steps to enable this, and had the verification codes working for the desktop log in. But in terminal it keeps saying &...
0
votes
1
answer
23
views
How to convert ext4 partition on raid 1 to btrfs?
I'm trying to convert two ext4 partitions that are on raid 1 with mdadm to btrfs.
When i try to run
fsck.ext4 /dev/md0p2
fsck.ext4 /dev/md0p3
They return with
e2fsck 1.46.5 (30-Dec-2021)
/dev/md0p3 ...
0
votes
0
answers
11
views
Nested QEMU-KVM hanging with `watchdog: BUG: soft lockup - CPU#3 stuck for 134s!` kernel messages
I have an issue with QEMU-KVM on Ubuntu Server 22.04 running another QEMU-KVM virtual machine.
First VM is launched via libvirt-based Virtual Machine Manager in privileged mode via following command ...
0
votes
1
answer
1k
views
replacing dnsmasq w/ systemd-resolved - alternative to 'address' directive
Been using dnsmasq for ages - mostly for local caching and blocking out dubious domains.
Now I have need for split-DNS, so it's time to switch to systemd-resolved.
One major feature I'm using from ...
2
votes
1
answer
4k
views
how to switch languages in lubuntu 15.04 over XRDP
It is very strange but I can not find the way how to switch languages in Lubuntu 15.04 when connected to it via XRDP. I've added new language in Preferences -> Keyboard input methods. It opened "IBus ...
107
votes
9
answers
114k
views
On Linux/Unix, does .tar.gz versus .zip matter?
Cross-platform programs are sometimes distributed as .tar.gz for the Unix version and .zip for the Windows version. This makes sense when the contents of each must be different.
If, however, the ...
57
votes
8
answers
65k
views
Screensharing under Wayland
I am using Wayland with Fedora 25.
Pretty much no screensharing tool works correctly. From Chrome, I can share a Chrome window, but nothing else.
I also have to use zoom.us and when I share a window ...
0
votes
1
answer
5k
views
Can I force NFS clients to map all user/groups to "nobody" on shared files?
I have just successfully set up a NFS client and server. I have just been surprised by NFS's willingness to handle UIDs unchanged between the client and server.
For example, suppose these user names/...
3
votes
3
answers
6k
views
How can I read the flash device ID that is installed, perhaps via the mtd interface?
In our embedded Linux solution using uClinux, I have just added a larger flash device. I want to be able to query which device I have installed (hardware device).
The small and large device both have ...
2
votes
5
answers
12k
views
Kali Linux - Can't move or resize any window - Everything is stucked on topbar
I have the following problem.
I've logged into my account and suddenly, all windows and terminals have no taskbar anymore.
So I'm not able to move any windows. Can't even resize it.
Also, when I open ...
1
vote
0
answers
48
views
Partitions on a TF card are not working as expected; third partition is not seen
I want to create three partition in a new brand TF card (not micro SD), but I can't sort it out! What I did up to now:
create a disk partition table
fdisk -l /dev/sdd
Disco /dev/sdd: 250 GiB, ...
-1
votes
0
answers
22
views
Bios boot option what’s this?
I’m trying to boot from usb in my bios. I’ve come across different options one being
[UEFI: KingstonDataT…]
What is it used for? I’m think of deleting it running mint and trying to reinstall using ...
0
votes
0
answers
23
views
Windows 11, running in qemu (ubuntu host) can't see Windows domain controller on VPN (openfortivpn)
Details:
Windows 11 Pro (guest)
Ubuntu 22.04 (host)
qemu 6.2 (as provided by Ubuntu repos)
openfortivpn 1.17.1
I'm WFH, primarily in Linux, and when I need work resources I start openfortivpn to ...
27
votes
5
answers
23k
views
How can I compress a file on Linux in-place, without using additional disk space?
I've got a 100GB drive that has a 95GB file. I need to free up some space on the drive (and right now transferring the file off the drive is not an option). The file would compress well with gzip or ...
0
votes
1
answer
7k
views
How to remove temp files with a command other then “apt-get autoremove” in Kali Linux?
I have Kali Linux OS running on Debian 4.18.0.
The system crashed and tells me that:
"Your cache memory full, please remove cache and temp files".
I want to know that if there is a command other ...
-1
votes
1
answer
44
views
My wireless adapter is seen in terminal but I cannot connect to wifi in VirtualBox Linux
I have a problem where my VirtualBox does not scan wifi through my wireless adapter but is connected to the ethernet of host machine.
When I do ifconfig then my wireless adapter is shown.
ifconfig ...
0
votes
2
answers
51
views
WAN on router's client device
I have:
OpenWRT router with one Ethernet WAN port, two Gbps LAN ports (one connected to a dumb 8-port Ethernet switch) and WiFi 5GHz onboard, yet no USB port.
Arch Linux ARM powered Pine64 ROCK64 ...
0
votes
0
answers
14
views
Error vsftpd ftp user could download file in any folder of linux server. How to restrict to only home/default folder?
In CentOS Linux server we have ftp software vsftpd, with this config in /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
...
0
votes
0
answers
56
views
Computer Dell precision on Linux Ubuntu 22.04 LTS UEFI
I have a big problem wich my Linux Ubuntu : when i go to turn it off, my computer remains frozen with Dell splash screen and I will force by pressing the interrupt button. I trying to upgrade my ...
0
votes
1
answer
5k
views
sshd GatewayPorts always “no”
As Trouble enabling GatewayPorts for Remote Port Forwarding over SSH is not really solving my problem, I dare to ask:
I run a server on Ubuntu 16.04.5 LTS.
I need to set the option GatewayPorts to ...
1
vote
0
answers
19
views
Parameter sysctl fs.quota.syncs
I can't find a clear answer about the fs.quota.syncs parameter
What is it responsible for and is it a configuration parameter or a counter?
The value is different on different servers. After reboot - ...
0
votes
1
answer
17
views
Ubuntu not booting properly at all
Today i tried booting my Ubuntu, but it seems like its not able to finish the boot process properly. In GRUB, when i select my kernel version it starts booting as usual but after a few seconds it ...
4
votes
1
answer
5k
views
Chromium won't play mp4
I have chromium (version 79) installed on my Red Hat 7.6 system and cannot play any mp4 videos. I attached an image below of what it looks like when I run chromium-browser <mp4 video>. I have ...