New answers tagged ubuntu
-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....
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!
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 ...
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 ...
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-...
-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 ...
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 ...
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 ...
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?
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
-1
votes
Portainer business edition fails to load container list with error
I fixed this by starting the container with --network=host
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 ...
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 ...
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 ~/....
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 --...
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.
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 ...
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 ...
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 '...
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 ...
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 /...
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 ...
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 ...
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&...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 = ...
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
...
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 ...
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
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 ...
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) ...
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.
Top 50 recent answers are included
Related Tags
ubuntu × 21520linux × 7336
networking × 1581
virtualbox × 1302
boot × 1173
windows × 1134
windows-7 × 978
ssh × 885
partitioning × 812
windows-10 × 766
bash × 736
virtual-machine × 685
hard-drive × 653
grub × 647
multi-boot × 580
installation × 457
wireless-networking × 442
usb × 424
debian × 399
gnome × 371
terminal × 367
macos × 360
command-line × 358
mount × 342
windows-subsystem-for-linux × 340