People who code: we want your input. Take the Survey

New answers tagged

1

-R is for relative path name. You are probably in the /root directory, adapt your command or move to /


0

So your system somehow automatically turns on/off the projector. You should integrate your solution with this process. Maybe the system can not only turn the projector on/off but also determine its state? That would be best. Systemd services can take up to 90 seconds to stop by default. You so you have a lot of time. If you can determine the projector’s ...


1

The error message chmod 777 ./ chmod: changing permissions of './': Read-only file system Says that the root file system is mounted read-only. This is not a problem with the permissions, but for some reason the FS was (re)mounted read-only, possibly because of filesystem errors on boot or some kernel exception. This said, you should almost never use ...


0

The left panel of the VirtualBox Manager window has been resized to zero width. With your mouse cursor, reach the left border of the VirtualBox Manager window. Mind reaching the border from inside the window, so you don't resize the whole window horizontally. The cursor will change to resize the left panel. The resizing is crude. You might move the cursor ...


0

Just letting you guys know the issue I faced as I had been looking for a fix and came across this article. I have the following: Linux VM (Debian 10.9.0) sitting on a HP laptop running ESXi 6.0. The VM is running Samba SMB File Share. Windows 10 (Version 1809) Desktop Workstation. - MSI Z97-G45 Gaming, E2200 NIC Driver When transferring files from the ...


0

Generally speaking, you should use a MBR/MSDOS partition table for maximum (backward) compatibility. It does NOT prevent you from creating an EFI system partition. You can then install both the i386-pc and the x86_64-efi variant (well, perhaps even i386-efi for those rubbish machine with 32-bit UEFI) of grub to the drive by specifiying --target explicitly ...


0

I was able to get this to work. I am not sure if you are still facing this issue and my resolution will work for you. But, it is never a harm to try it out. I noticed the containers that did not have a port to map/bind to the host has this issue of recognizing host.docker.internal to the host's localhost. Hence I used a dummy port for the container that ...


1

Why not put Ubuntu Live with persistence on the USB (or better, external SSD, because most flash USB drives are abysmally slow when running the OS)? Just set boot-order on each machine to boot from USB first. A persistent live device is a full Ubuntu installation which can be modified as needed and it will retain any changes. For example, if you install ...


3

Your VM is most likely behind a NAT and is essentially on a different network to your Windows machine or has some kind of firewall running that is blocking requests. You can either Use PASV as the first command you run before doing anything on the FTP server. This enables "passive" mode where your computer tells the server "you cannot talk to ...


0

As of June 2021 the best OCR solution which I found was gImageReader. I used the v.3.2.3 from Ubuntu 18.04 repository. It's using tesseract v.4.00.00aplha as a back-end. It seems to be well maintained, has a nice GUI which is not bloated, and has all the features needed for relatively small tasks. I am using it for recognizing multi-page PDF scan files, ...


0

To get it working these days (with python3 support) you need to add the following variable to your .vimrc: let g:gundo_prefer_python3 = 1 Otherwise you'll run into errors like: "E117: Unknown function: gundo#GundoShow"


0

The eventual solution to this was to rerun sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb. This restored the RAID drives and gave me back access to all of the data that was stored on them. I had seen that this might be the case but had been scared on deleted the data without backing it up: so much time was wasted slowly ...


0

Here is what worked for me when I faced rbash: BASH_CMDS[a]=/bin/sh;a export PATH=/bin:/sbin:/usr/bin:$PATH


-1

Try , to install wine again or update it : it should work also try these https://forum.winehq.org/viewtopic.php?f=8&t=34889 https://www.reddit.com/r/linux_gaming/comments/mfw36e/x_error_of_failed_request_glxbadfbconfig_after/


0

Provided that we have access to the server at ADDRESS with the root user and the user we want to set up keys for is called ubuntu, the following one-liner can be used. cat ~/.ssh/id_rsa.pub | ssh root@ADDRESS "su - ubuntu -c 'mkdir -p ~/.ssh && tee -a ~/.ssh/authorized_keys'" This will work regardless whether .ssh and authorized_keys exist ...


1

if your stuck after using sudo su as root: to exit use this command su -l <user_name>


0

Sorry for the inconvenience, I have no space to install Docker images for this on the VM and I have been wondering if it’s possible to do that on Kali Linux. I have successfully installed it and it’s running perfect up to now, I did the following to install the tools: 1- The mssql-server-agent needs to be enabled not installed on MS SQL 2019 as it ships ...


1

MSSQL is literally only supported on specific versions of ubuntu, suse and redhat.Mixing up packages to try to get things to work is roughly the worst option to get it running cause you'll potentially break your Kali install Kali does seem to support docker - and there's pre-built docker images. You can probably run whatever needs to talk to it on separate ...


0

Screen requires a tty to start. Crontab jobs don't get a tty. Running uwsgi inside screen is probably unnecessary. If you can, instead of running this inside screen inside a cron job, it would be better to start it as a systemd service. At a glance, these instructions look like they might be helpful https://uwsgi-docs.readthedocs.io/en/latest/Systemd....


-1

Like @slm mention try to check your firewall. On windows 10. follow the steps: 1- windows settings 2- Network & Internet 3- Wifi 4- click on the name of the connected network 5- Configure firewall and security settings 6- Then say yes to the prompt 7- Turn off the firewall for the private network 8- Then try the ping again from your linux machine. ...


0

I'm using Arch linux with systemd. This works for me. As root: 1. systemctl stop systemd-update-utmp systemctl disable systemd-update-utmp systemctl mask systemd-update-utmp cp /usr/lib/tmpfiles.d/var.conf /etc/tmpfiles.d/ vi or nano /etc/tmpfiles.d/var.conf comment out these 3 lines: #f /var/log/wtmp 0664 root utmp - #f /var/log/btmp 0660 root utmp - #f /...


0

I had the same desire to get a specific camera from the command line, so I could get a shortcut to view my video to work no matter which port I plugged into, etc.. the answers here helped, but didn't quite give me a full recipe, so I'll post a full solution. I have a usb camera I use for showing work I'm doing via a screen-share with my colleagues. I use VLC ...


0

First of all it is important to know your systems specifications. It could be a PC with BIOS, or a PC with (U)EFI. In case of the later, it could be configured in native UEFI mode compatibility/legacy mode, BIOS compatible (called CSM, short for UEFI's Compatibility Support Module) Since modern PCs use UEFI sind around before 2010 it is most likely a ...


0

I'm guessing you're using UEFI boot with fast boot enabled, so there's no time to press the key that boots into setup. Use the command fwsetup in the GRUB prompt. It should reboot the computer into setup. Then remove GRUB as a boot option. Optionally you can remove GRUB from the EFI system partition, but there's no harm in leaving it there. You can do that ...


2

You can also use sudo env PATH=$PATH ...rest_of_command_here.... Since that's not so convenient to type, I've added an alias alias sudop='sudo env PATH=$PATH'. The sudop (rather than aliasing sudo itself) is a reminder to me to make me aware that I am preserving my current environment path.


0

This likely has nothing to do with the virtual host. A virtual host only points a browser at a directory (e.g. for your PHP project). It doesn't (meaningfully) govern what is displayed (e.g. your rendered PHP code does that). It may have something to do with your browser caching web pages. The idea behind this is that the browser can look at a local cache of ...


0

If you have a C or C++ process that spawns children, then that master process is going to receive the SIGCHLD signal whenever one of its children dies. By default, the SIGCHLD is not managed, instead it kills a process. So if you created your own top process and didn't do anything about that signal, it would already work as you're asking. If you use another ...


0

The unallocated space is located before the Linux partition. To be able to increase this partition, it should be located after this partition. Boot using the GParted live USB (or any other partition editor) and move the Linux partition up, so it immediately follows the Windows partition. Now you will be able to resize up the Linux partition. Take careful ...


0

Bram's answer seems to be correct. Maybe try something like this instead, if you still want to stay in the console: nsys profile -t nvtx,cuda --stats=true --force-overwrite true --wait=all -o my_report ./my_app nsys gives you a nice overview of the kernels and their runtimes.


0

Make sure you've completely logged out from Windows 10 by restarting it. Simply shutting it down won't help. Restart Windows and then login to Ubuntu.


0

Certain cameras may not work well with virtual USB camera. Perform these steps to enable pass through of cameras in to virtual machine: Ensure to shutdown all virtual machines and quit VMware Fusion if its running. Open Terminal ( /Applications/Utilities/Terminal.app) Run this command to change the current location. cd ~/Library/Preferences/VMware\ Fusion/...


0

Certain cameras may not work well with virtual USB camera. Perform these steps to enable pass through of cameras in to virtual machine: Ensure to shutdown all virtual machines and quit VMware Fusion if its running. Open Terminal ( /Applications/Utilities/Terminal.app) Run this command to change the current location. cd ~/Library/Preferences/VMware\ Fusion/...


0

As you said in comment xpt, chroot is path to go. I wanted to add cowbuild which makes such workflow very easy working with multiple distributions and releases. Guide: wiki.debian.org/cowbuilder


0

No, it does not, that command will remove only that package leaving dependencies and configuration in the system. You need to run it explicitly: To remove configuration file too: apt-get purge <pacakge-name> After removing the package, run auto remove to uninstall all auto installed dependencies. # Check the list package with simulation apt-get -s ...


0

So you are looking to make a "Debian binary package" directly without source package. equivs is is very simple tool that allows making trivial Debian packages, through simple wizard to generate DEBIAN/control and other required files. Available from Debian and Ubuntu repository.


0

Yes, Development packages (-dev) usually depend on other packages from same category if needed as library or pre-built binary if needed as tool or script. But you need to verify if it is in: your source (not a bug), llvm-3.9-dev or other nested dependencies (bug for that specific package). Use: apt-rdepends llvm-3.9-dev to get list of all dependencies ...


0

The question is really old, but good to have an answer: The easiest way is to make local or flat Debian repository. Then add it to the list of mirror sources. Reference: wiki.debian.org/DebianRepository/Format#Flat_Repository_Format Option 2, inject deb package into the mirror and set mirror configuration to not delete obsolete packages or set an exception....


1

The best way to wipe a drive depends on your drive (type). For example there's the sanitize and format command that are available in many (I believe) NVMe SSDs, which can be issued with nvme-cli. blkdiscard is a nice alternative as well if your drive is "Read Zero After TRIM" (it's even the case with some recent WD HDDs). This is probably the "...


1

As stated in comments, the OS has an erase option before installing. But you said that you would like to erase the current hard drive in its entirety before installing a fresh installation of Ubuntu. I don’t know about the purpose of this but its your business and I respect that. Now assuming this is the hard drive in which any OS (any) is installed, that OS ...


1

To understand what's going on, you have to make the distinction between "Windows GUI Apps" and "Linux (X) GUI Apps". Everything that you mention that opens is a Windows application. It's important to note that this answer is only for the current released version of WSL. Later this year, WSLg is scheduled to be released with the 21H2 ...


0

Open terminal and use: conda activate. "(base)" should appear in your command line. More information: Conda: command not found on macOS or Linux


1

For context, I'm trying to edit the level-name value in my Minecraft server's server.properties file, which isn't exactly a bash script by extension or shebang, but follows the exact same syntax. No it does not. It follows a superficially similar format of "key=value" assignments, but the actual syntax of Java .properties files is completely ...


1

The linked answer calls the command "a hacky way" and says "this might not be ideal". There are reasons for this. Unfortunately the answer does not say what to expect nor what is required for the command to work. No wonder you got confused. The command did not show you what the author of the linked answer thought of. The line you saw has ...


4

I hope this question will be migrated, but it doesn't belongs to Server Fault. Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User. Yes. Just make sure you wipe/install your OS on correct drive. Yes. But note that Linux filesystems store ...


2

Name resolution on Linux (Glibc) uses the "name service switch" system, where each data source has a separate module responsible for it. For example, the libnss_files module is responsible for reading /etc/hosts (and /etc/passwd, /etc/group) while the libnss_dns module makes DNS queries. There are similarly modules for reading data from LDAP, NIS, ...


0

# https://4sysops.com/archives/native-nat-in-windows-10-hyper-v-using-a-nat-virtual-switch/ $name = "VMSwitch" New-VMSwitch -SwitchName $name -SwitchType Internal #(note down ifIndex of the newly created switch as INDEX) $index = (Get-NetAdapter |? Name -Like "*$name*").ifIndex New-NetIPAddress -IPAddress 192.168.0.1 -PrefixLength 24 -...


0

This worked for me : parallel --bar --jobs 10 '(ffmpegthumbnailer -i "{}" -o "/tmp/${DIR}/{}.jpg" -f 2>/dev/null)' ::: *.mp4


0

You can go cleaner like this: # create function function ensure_nginx(){ if [ -x "$(command -v nginx)" ]; then echo "Nginx already installed. Skipping installation..." else echo "Installing nginx..." sudo apt update sudo apt install nginx -y sudo ufw app list echo "Nginx installed!&...


0

I had the same issue after following the tutorial. Had copied important data onto the hard discs and deleted the backups so was hesitant to try the solution of just reissuing the mdadm create command. First I backed up the most important files using testdisk which was an awful experience because it kept going into infinite loops while copying the files. ...


1

The common difference between upgrade and full-upgrade is that a full-ugrade will remove the installed packages if that is needed to upgrade the whole system. I will do a full-upgrade if I am intending to to a big upgrade to my Linux systems. Linux apt-get commands The difference between upgrade and full-upgrade is that the later will remove the installed ...


Top 50 recent answers are included