New answers tagged

-1 votes

Resizing a partition in Linux - Bad magic number in super-block error

Bad magic number in super-block error related questions and answers (testdisk worked for my problem): https://askubuntu.com/questions/1167889/bad-magic-number-in-superblock-external-hdd https://unix....
bogec's user avatar
  • 132
0 votes

Ubuntu on Virtualbox screen is too small, can't change resolution

This worked for me: Go to Ubuntu displays settings and change resolution same as host pc. That's all!
MS uddin's user avatar
0 votes

Can I get dpkg to ignore an error returned from a post-installation script?

Based on the answer from @qqx , I was able to fix issues with the displaylink-driver After installing the latest displaylink drivers from their website, on ubuntu 23.04, I got error, but further up it ...
nmz787's user avatar
  • 143
1 vote

Ubuntu on Virtualbox screen is too small, can't change resolution

I assume you have installed Ubuntu 22 on VirtualBox 7.0 on Mac In VirtualBox settings Settings > System > Motherboard: turn up base memory Settings > System > Processor: turn up ...
RexYuan's user avatar
  • 187
0 votes

How to create an alias for unresolved apt dependencies?

Sorry for late reply, but wine-stable from the distro repos is too outdated, add the official Wine repos, and do: sudo apt update sudo apt remove *wine* sudo apt install winehq-staging wine-staging-...
PizDOS 6.22's user avatar
-2 votes

HDD on Caddy does not show in Windows 11 but visible in BIOS and Ubuntu

If it shows in the BIOS and other OSs, then Windows is the cause. I'll throw these points out of nowhere: In the Disk Management, right click the D drive and assign it to a folder. I suspect it's a ...
kogonel's user avatar
0 votes

How to access a network folder in Ubuntu using the terminal

For those who are using the answers here above to access their Google Drives, there's a super easy solution without dealing all this. Some guy built a FUSE filesystem for Google Drive, written in ...
goodyonsen's user avatar
0 votes

Importing a WSL distro fails with “unspecified error”

For me, the solution was to update WSL by running the following command as administrator: wsl --update --web-download The --web-download option ensures that the WSL update isn't installed from the ...
Fenhl's user avatar
  • 101
0 votes

How to modify Linux ISO (like Ubuntu) and add my custom bash to it

You may modify the ISO whichever way you like, even to adding to crontab an entry to run a script after boot which will do this one-time action. From the article How to create custom linux ISO image? ...
harrymc's user avatar
  • 445k
1 vote
Accepted

Running shell Script via Crontab

Use > cron.log 2>&1 to have the cronjob write its output to a file, so that you could see the error messages it produces. (Some cron daemons automatically write the output to syslog when ...
user1686's user avatar
  • 415k
0 votes

Systemd in WSL on Windows 11 is not working

Your article doesn't mention the need to, in the Start > Turn Windows Features on and off dialog, to enable "Windows Subsystem for Linux". The Windows feature of "Virtual Machine ...
harrymc's user avatar
  • 445k
2 votes
Accepted

How to move files containing NULL to a separate folder?

Testing a single file grep in the following command will return exit status 0 if some_file contains at least one null character: <some_file tr -dc '\0' | tr '\0' '\n' | grep -q '' Unless the shell ...
Kamil Maciorowski's user avatar
1 vote

WSL2 connect to host without disabling the windows firewall

Well, in my case I use CentOS 7 WSL App. I didn't have success manage on Norton 360. So in In Rules (I don't how is on English SO) I've added do CentOS 7 app. And worked for me. CentOS 7: And I have ...
Rui Moraes's user avatar
0 votes

Six buttons mouse do not work in a virtualized environment

Mouse actions in a virtual environment (virtual machine) are provided by the virtual app and provide basic mouse functions. Some additional mouse functions are provided by Guest extensions or tools ...
John's user avatar
  • 44.2k
1 vote

Firefox from snap super slow after migrating to a much faster computer (Kubuntu 23.04)

Since you've compared speed by installing Firefox directly from Mozilla's PPA, I'll outline how to make that improvement: Uninstall the Snap version. In Terminal, enter sudo snap remove firefox Note ...
DrMoishe Pippik's user avatar
0 votes

error when I execute the command source ~/.bashrc

This happens due to the default shell of the linux which is set to zsh and to change that we can use the following command: chsh -s /bin/bash and then source your bash file to export the paths ...
mtnvdsk's user avatar
0 votes

Slow Ubuntu Remote Desktop using xrdp

I am RDP connecting Ubuntu 18 from a Mac. A great job of acceleration did the Display Option in MS RDP using 16-bit Color instead of 32 bit.
Peter's user avatar
  • 1
-1 votes

Portainer business edition fails to load container list with error

I fixed this by starting the container with --network=host
joseph sullivan's user avatar
0 votes

How to "debug" a keyboard in Linux? Like pressing a key and seeing a code in a terminal

There is showkey, which in Ubuntu is installed by default as part of the "kbd" package. sudo showkey (It exits after 10 seconds without a key being pressed, or with Ctrl-C) There is also a ...
mivk's user avatar
  • 3,346
1 vote

How to access WSL files from an Ubuntu Dual Boot?

Take a look at this blog. I think it will tell you how to do. TL;DR (PWSH) wmic diskdrive list brief to get disk info (PWSH admin) wsl --mount <hard device> --partition <part id> to mount ...
Hugh Liu's user avatar
0 votes

Path edits are not persisted after shell is restarted in Ubuntu WSL

It appears that the path variable is not persisted. How can I solve this? You need to add the export command to the appropriate bash start up file. That is usually one of ~/.profile, or ~/....
DavidPostill's user avatar
  • 152k
0 votes

GRUB menu edit protection only

To allow Grub to boot the default option without a password, but require a password for everything else, including editing the options, edit /etc/grub.d/10_linux and find the menuentry lines and add --...
Mike's user avatar
  • 83
0 votes

gnutls_handshake() failed: Error in the pull function

You need to lower your MTU. ifconfig <Interface_name> mtu <mtu_size> up In my case, 1400 worked well. ifconfig ens3 mtu 1400 up My environment is Ubuntu 20.04.
panoet's user avatar
  • 101
1 vote

Can Bitlocker be used in a dual boot system with Windows on one drive, Linux on another?

This is how I installed and managed to set up a dual boot of Linux (arch) and Windows 11. In Windows: backup BitLocker keys (important!) you will need them later suspend BitLocker (it will stay off ...
look3y's user avatar
  • 111
0 votes

PC keeps changing boot order automatically (Windows/Linux dualboot)

I do not know why this is happening, but I can suggest an alternative. You have to set the drive with ubuntu as your first boot option and change boot order inside grub to set windows as the default ...
aqwertya's user avatar
0 votes

Adding a user to an ubuntu linux group within a shell script

I may have an answer in the 'sg' command, which I can then use during the rest of the script to execute docker commands. E.g. sg docker -c "docker run blah blah" The user will still be '...
Thickycat's user avatar
  • 101
3 votes
Accepted

Bind command not found in Linux Mint/Ubuntu terminal

This command is part of bash, not zsh. Those 2 links even tell you it is part of bash. If you have bash installed, then look at the manual - man bashbuiltins. If not, then install it anyway. Oh! and ...
Bib's user avatar
  • 1,155
0 votes

How to update Sysctl settings?

You can check the current inotify user instance limit, with the following: cat /proc/sys/fs/inotify/max_user_instances Similarly, the current inotify user watch limit can be checked as follows: cat /...
spuggy's user avatar
  • 101
0 votes
Accepted

aarch64 VM; amd64 host; "invalid accelerator kvm"

The answer is stated in the linked wiki page: accelerated w/ KVM if you have an arm64 host You can't virtualize (i.e. -enable-kvm) for a different architecture. (I don't remember if you can do ...
Tom Yan's user avatar
  • 8,791
0 votes

Ubuntu on VirtualBox can only show resolution of 800x600 - how do I change it?

Update 2023 virtualbox-guest-dkms is no longer required. I noticed a lot of the answers here are from 2010 and haven't been updated. As @Julian Wagner pointed out: If you run sudo apt install ...
GROVER.'s user avatar
  • 121
1 vote

Thunderbird opens as a tiny blank window

Another cause might be a somehow still running process... No windows, just holding files hostage... A second process just causes despair. No Message telling file locked, or any hint of an "orphan&...
Angry User's user avatar
0 votes

Synaptics touchpad keeps scrolling after letting go of the touchpad in Ubuntu

If the other answer didn't solve your problem, it may be related to GNOME and Electron-based apps. Check the issue opened on VSCode's repo (but it applies to all Electron-based apps): https://github....
Henke's user avatar
  • 101
0 votes

Cannot open display error with WSL2

Wsl1 does not support Gui. To change versions from wsl1 to wsl2, use the command: wsl --set-version <distro name> 2 replacing <distro name> with the name of the Linux distribution that you ...
aqwertya's user avatar
21 votes
Accepted

How to modify this code to be able to SSH into my server?

The script you found works by counting the number of sshd processes that belong to the user who tries to log in via SSH. If the number is greater than or equal to the limit (1 in your case) then the ...
Kamil Maciorowski's user avatar
1 vote

systemd -- permanently add boot loader options (PopOs)

May I suggest trying the kernel boot option "acpi_osi=" in the place of the option you suggested? This will correct a lot of issues with sleep and hibernate. But to answer your question as ...
Unknown User's user avatar
2 votes

Remove formatting and partitions on a storage device

Note: A disk, SD-card or USB-memory can be formatted with a single filesystem entry, without "partitioning"; this normally works, but some OS's have (or has had) trouble with understanding ...
Hannu's user avatar
  • 8,547
0 votes

How to connect to other computer on same network without ssh?

If you do not wish to use SSH, you can install XRDP on Linux machines: Install xrdp: sudo apt install xrdp Enable xrdp: sudo systemctl enable xrdp Start the xrdp service (must be started each time ...
John's user avatar
  • 44.2k
0 votes

DNS Leak Test via Command-Line

You can do it with this script. Download dnsleaktest.sh: curl https://raw.githubusercontent.com/macvk/dnsleaktest/master/dnsleaktest.sh -o dnsleaktest.sh Make it executable: chmod +x dnsleaktest.sh ...
ceoonum's user avatar
  • 11
0 votes

Slow Ubuntu Remote Desktop using xrdp

After doing a lot of research, I got good performance with these settings: xfce4 xorgxrdp-glamor In /etc/xrdp/sesman.ini and /etc/xrdp/xrdp.ini: Policy=UBDI max_bpp=16 xserverbpp=16 use_compression = ...
MarcosD's user avatar
0 votes

Ubi Partman error with exit code 141 while installing Kubuntu

Same thing happened to me I'm using windows 11 though but still can't find the solution. I did find a different way to run kubuntu first install the default Ubuntu with that gnome desktop environment ...
Indusgod's user avatar
1 vote

Partition is not accessible in WinXP after being used in RAID 1 under Ubuntu

Is it possible to have two partitions under NTFS in RAID 1 on Ubuntu so that it could be possible to access them from Windows? Yes, that is possible by making them available as network shares. This ...
r2d3's user avatar
  • 2,874
1 vote

Unable to SSH on my ubuntu server with a user different from root

It may be that it works with your custom domain my-domain.com because of the configuration of the Domain Name System (DNS) of your domain. Your SSH configuration on the server initially allowed direct ...
Annemie's user avatar
  • 11
2 votes

How do I change the boot order via EFI shell version 2.70 of an Intel® Celeron® Processor N4000?

Note that 2.70 is probably the version of the main UEFI specification implemented by the firmware, not the version of the shell. As far as I know, there is no version 2.70 of the UEFI shell in ...
telcoM's user avatar
  • 3,929
0 votes

I cannot find disk partition on ubuntu installation page ( screenshot attached in description)

So I have successfully dual booted my system. I disabled intel optane storage. I followed the steps in this guide: https://www.intel.com/content/www/us/en/support/articles/000024626/memory-and-storage/...
Ononiwu Maureen Chiamaka's user avatar
0 votes

Move files based on arithmetic conditions on filename

Another alternative is to do everything in a slightly longer bash script, taking advantage of bash's pattern matching and pattern extracting operators. Something like this: # Be sure to set this ...
Peter Whittaker's user avatar
0 votes

Unable to SSH on my ubuntu server with a user different from root

It appears that the server was assigned to my custom domain (let's call it my-domain.com). So instead of putting ssh thefe@XXX.XXX.XXX.XXX if I put ssh thefe@my-domain.com it works perfectly. root ...
Ale TheFe's user avatar
  • 101
2 votes

Move files based on arithmetic conditions on filename

With bash you could do: mv image_{0..18003}_0.png target_dir/ As N2 is always 0, one can use it as fixed string. {a..b} evaluates to all option in the range from a to b. This would also work for the ...
FelixJN's user avatar
  • 259
0 votes

Set background image in xmonad

For me putting xsetroot -solid Indigo in ~/.bash_profile is sufficent. Using xsetroot does not require installing (and possibly compiling) a separate program (I don't see feh, xloadimage or xpmroot ...
Dave's user avatar
  • 841
0 votes
Accepted

What distributions support "armel" (not armhf)?

I'm not closely familiar with Linux distributions and features/options you need. But Devuan GNU+Linux (a fork of Debian without systemd, lastest version Chimaera 4.0 is based on Debian Bullseye 11.1) ...
Yisroel Tech's user avatar
  • 7,549
0 votes

Removing old files left by attempted pip installation

I know this question is very old, but pip cache purge This will remove pip's download and built-wheel caches.
xaviersjs's user avatar
  • 193

Top 50 recent answers are included