New answers tagged

0

As of 2021 / Ubuntu 20.04, the command sudo tune2fs -l /dev/sd... doesn't work [at least] for me, as it was saying all of my external ext4 drives had 0 reserved space when, in reality, both had 50GB of reserved space. The Nautilus' properties popup for my drives gave me the right size for both drives' reserved space, however in a very unclear/non-obvious way ...


1

rsync -va --append dirA dirB just got from man rsync, and you can get more of what you want. --append: append data onto shorter files -v verbose -a archive mode; same as -rlptgoD (no -H) --append is very useful for me when the cp -ru a b process was interrupted several times and you also changed the updated time of files by chown user:user -R *. haha :)


0

If u r Upgrading from Ubuntu 20.04 to 20.10 , UPGRADING , Only if UPGRADING , The Older OS will be at the Disk , ie , /dev/sda1 . If U try to Part the sda1 , the Older OS will be Broken and It will Lead to Corruption in the Old Versions of Ubuntu . But , in the Improvements of the OS ,It Shows Error that the Installation of 20.10 is the Upgrade of 20.04 ( ...


0

Apparently, this is not related to YAML but to organize itself. Under the 'Advanced Usage' section it says: "Note the format syntax for {created.month} to make sure the month is prepended with a zero.". This means that if you want to prepend a zero to the date, you would have to make the config like this: rules: - folders: *private ...


1

Actually scratch my comment. Apparently the drive has an NVMe drive inside. There's currently no ATA PASSTHROUGH equivalent command for them in any of the SCSI standards. Therefore, regardless of how much hdparm / smartctl supports NVMe drive, when it's in an USB enclosure you can at best get generic SCSI support (i.e. NVMe commands that can be directly ...


0

$ wc -l file.conf 6 file.conf $ cat file.conf #set_var EASYRSA_REQ_COUNTRY "US" #set_var EASYRSA_REQ_PROVINCE "California" #set_var EASYRSA_REQ_CITY "San Francisco" ...


1

First, read this. Here is an excerpt from that link which has an important concept: The CPU usage can be measured over an interval of time only. This StackOverflow answer has an example of using top in batch mode and awk to extract the CPU usage over a time from the output of top. There are other commands as well that monitor CPU usage over an interval and ...


0

In my case, creating the directory ~/.local/share/Trash/expunged and logging out and back in, it fixed the problem. I'm on Mint 20.1.


0

Adding the nobrl mount option might help. This disables byte-range locks.


1

The site you linked to indeed uses automatic directory indexing of the Apache httpd. That's the classic icon set that comes with Apache, but many other web servers also have (usually even plainer) indexing. However, it is not a file. Directory indexing does not create any actual index.html files – instead, Apache just generates the page on the fly, every ...


0

Ctrl + A, followed by Esc also enters the copy/scrollback mode of screen.


0

Figured out a solution: The following command runs the executable, then exits the shell Exiting the shell across most terminals also ends the terminal window process and thus closes the window as well alias rustlinks='~/Applications/Rustlinks && exit' Then running the rustlinks command automatically exits the terminal once the application is ...


0

On a MacOs the Unix flavor is Darwin which is derived from BSD. In this version of Unix, use the command xattr to list (or create, write, or clear) the extended attributes. xattr <filename> will just list the names of the attributes xattr -l <filename> will list their names and values xattr -h for a more succinct help message man xattr for a ...


0

No, it should not affect the Ubuntu partition as it is concerned just with Windows. I always myself have good backups in case there is an issue, but there should not be. Windows restores and repairs itself if possible (mostly is) without formatting and so without issue to other partitions.


1

The actual 'mount' system call is only available to root. The device node's permissions are irrelevant (and should be left as 0660, and you really shouldn't be putting unprivileged users in the 'disk' group). There are several options for unprivileged access: Run the mount command via sudo, and specify the correct synthetic UID/GID/permissions through ...


0

I encountered this problem with Firefox, where it would only offer the certificate in a Private Browsing window. I suspect this happened because I initially clicked Cancel on the User Identification Request dialog, with the Remember this decision box checked. I fixed this by going to Clear Recent History (ctrl-shift-del) and clearing the Site Preferences.


0

This command should do the trick systemctl disable --now rsyslog.service sometimes two services are connected, for instance to stop docker service we'd have touse systemctl disable --now docker.service docker.socket


0

you could for example set the programs and applications for www-data user and group through chown, like suggested in this thread , or by setting the user and group permissions via the sudoers file, like suggested in this thread.


0

what do you expect to be returned? Can you check if you get any output from the snmpwalk by running snmpd in debug mode? snmpd -D -Le -f


1

How do I change (0644/-rw-r--r--) & (0755/drwxr-xr-x) to (644 != rw-------) & (755 != rwx------), respectively. Use the chmod command. Currently the file and the directory are world-readable (they have +rx in all three groups – owner, group, and world). Lynis suggests making them only readable to their owner (which is likely 'root'), which means ...


-1

The command below will help you. curl -s https://keybase.io/heftig/pgp_keys.asc/\?fingerprint\=a2ff3a36aaa56654109064ab19802f8b0d70fc30 | gpg --import gpg --lsign 3B94A80E50A477C7


1

Thanks to @user313032 who posted this question and later responded to me when I asked him if he ever found a solution, the answer is as follows: Replace @daily by 1 and it works. @daily doesn't exist. the only valid non-numerical interval is @monthly, since months do not have a fixed number of days. I found that at the time of writing, every tutorial I've ...


1

I looked at many different solutions to this problem, including fbi, feh, and more. I ended up using pygame of all things. This may not be clean, ideal, or optimal, but it does the job, it provides quick changes between slides without a long dark space between (fbi does this if you needed it to exit and restart to vary the timing between slide changes as is ...


0

The Docker registry docker.whatsapp.biz is (or rather was) backed by JFrog Bintray. Bintray however is shutting down and is no longer accessible for non-paying customers since May 1st. You'll have to contact WhatsApp or Facebook about this.


1

I wrote an open source Python program called ofc_media that basically does the unzipping mentioned in lesmana's answer, but automates the search process a bit. It also works on OpenDocument format documents, can limit the extraction to certain file extensions, etc.


0

Was having the same issue. I was able to resolve by disabling suspend when the lid is closed. Not an ideal solution, but I haven't found a better one yet. Suspending through the desktop menu works fine. My solution: Install grub if not already installed: sudo apt install grub-pc Edit some files: grub settings sudo vi /etc/default/grub Comment out the ...


2

Windows 10 can use 20GB or more to do a feature update. Updates will happen also. The (more or less) average size for my 64-bit Windows virtual machines is 50 + GB. So I would allow at least a 50 GB (possibly 60 GB) partition for Windows 10 if (as you say) to avoid future problems. This assessment has been based on using Windows (and Linux) virtual machines ...


0

Bash can be compiled with the -DSYS_BASHRC option (which should be the case in Ubuntu) that makes it sources a system-wide rc file for interactive shell. The path is usually /etc/bash.bashrc. For "settings" (which is quite a vague word btw) that should be applied in non-interactive shell, it should probably be set in whatever script itself that ...


0

If you want to have identical profile and bashrc settings for every user, you can just symlink these files to the same version. E.g. have the originals for the root user on /root/.bashrc and then link them using: ln -s /root/.bashrc $HOME/.bashrc Or even better, create a shared /srv folder and in there create a folder called dotfiles where you keep all your ...


1

This solution allowed to perform the primary task, and to solve the issue with error message reported by the guest OS: "drm:vmw_host_log [vmwgfx]] ERROR Failed to send host log message". Also, mentioned here: "https://unix.stackexchange.com/questions/500178/issue-while-booting-kubuntu-on-virtualbox-drm-vmw-host-log-vmwgfx-error-failed" ...


0

None of the answers in this thread fit my usecase, so I came up with one on my own as a shell script. At the heart of it is this function: recurse() { if [ ! -d "$1" ] || [ ! -e "$2" ]; then mv -u "$1" "$2" || exit return fi for entry in "$1/"* "$1/."[!.]* "$1/..&...


0

The correct answer should be to use /etc/environment like: MYVAR=myvalue because it is shell agnostic. Environment variables set there apply to all shells (sh, bash, zsh, etc.) for all accounts. Reference here (Also applies to Ubuntu and other distros). If you tried it and it didn't work, you probably forgot to logout and back in for it to take effect. As ...


0

The error about the inclusion of PATH denying your command is actually somewhat misleading. The fundamental error is that your definition denies sudo su - USER2, so no matter what variables you try to define you will still be denied access. It's just that a different error message is provided. Nevertheless, the issue is almost entirely irrelevant as you have ...


0

The su utility requires root ownership to confer its privileges (by means of the setuid bit). If the utility is not owned by root it will not be possible for it to grant you root access. ls -l /bin/su -rwsr-xr-x 1 root root 50648 Jan 10 2019 /bin/su Notice the s letter in the permissions where the user's x bit would normally be shown. This indicates the ...


0

tried: ~/.profile got: .profile: Permission denied The error message is shown because you tried running the file as if it were a program, which it isn't. You're supposed to open it through a text editor, not run it directly. tried vim ~/.bash_profile document opens i put in PATH="$HOME/chills/.local/bin:$PATH" don't know how to exit, just closing ...


0

wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb ; sudo dpkg -i kali-archive-keyring_2020.2_all.deb


0

You can try sqliteviz which I'm the author of. It is a free open-source offline-first PWA that allows you to convert a CSV file into SQLite database which runs in a browser with sql.js. After that, you can get your data with a SELECT statement and create various Plotly charts against the result set. Convert your CSV into a database Choose your CSV file. ...


2

If you want to be sure not to lose your data, create a backup of the source device first. Try the following command in the Linux terminal: sudo apt-get install dosfstools sudo dosfsck -w -r -l -a -v -t /dev/xxxx xxxx is the partition you want to check. -w means write to disk immediately. -r means to do disk check interactively (ask you what to do to when ...


0

A possible solution is using gdb to create a new file descriptor and replace the old one with the new one. (gdb) p (int)dup2(open("/nvmedisk/file", 1090), 234) // 1090 for O_RDWR | O_CREAT | O_APPEND


0

I wanted to circle back with an answer to my question. I was on the right track, but had the wrong byte value for CTRL-V. Technically, this is defined by the VLNEXT character in the termios settings. This character is normally 0x16 not 0x10 which does refer to CTRL-V. I likely read the value somewhere and misinterpreted it as decimal. After prefixing my data ...


0

Dell provides "Dell Command | Configure". I used it to check what my server does after a power loss and change it without having to take server downtime. $ sudo /opt/dell/dcc/cctk --AcPwrRcvry AcPwrRcvry=Off $ sudo /opt/dell/dcc/cctk --AcPwrRcvry=on AcPwrRcvry=On


0

Adding this for visibility. The limit is set in /lib/systemd/system/jupyter.service All credit goes to Marian


1

If there is a way, I haven't seen it yet. I use iw quite frequently these days, and use the "station dump"/"link" iw commands to see MCS rates to determine spatial streams. (using a table reference) Please note, this will be somewhat of a generalization because you haven't actually listed what your card is. I wont go into 802.11ac (wave-2)...


0

It seems that you can use the hybrid image of Debian which already contains space for your data. Use RUFUS to burn the Debian Hybrid ISO to USB After that you should see a secondary partition on that USB to copy your files Here are the original detailed instructions fro Linux but they give you and insisight of how is the general process. Taken from Debian ...


0

If you have Linux available, you can open up a terminal and: Delete any partition on the USB (please note that # means root and change the 'X' in sdX with the appropriate letter) # dd if=/dev/zero of=/dev/sdX bs=512 count=1 Create new ones: # fdisk /dev/sdX > n > p > 1 (+1GB) > a > 1 (toggles boot flag) > t > c (filesystem type) > n &...


0

To answer my own question; turns out the problem had nothing to do with Ansible itself. During installation, I had selected the "ACSC Essential Eight" security policy, which configured fapolicyd to prevent the execution of untrusted scripts.By allowing execution in my home dir, I was able to resolve the issue.


9

It's normal for terminals to send CR (^M) upon Enter. They don't have to send LF (^J). In my Debian, Kubuntu, in few other Linux systems Ctrl+v, Enter shows ^M. I would say ^M (not ^J) is the correct (or at least common) character for line ending coming from the terminal. Some shells accept both ^M and ^J to run the typed command. Bash does, Zsh does. ...


2

Not a solution, but the ^M (Ctrl + M) character is caret notation for the unprintable character Carriage Return (CR) as noted in this Super User question. Normally, Line Feed (LF) is used as the new line character in Unix based systems like Linux. If I am not misreading your TTY config, it appears CR may be being sent instead of LF. So it seems plausible ...


0

It's not possible with the widespread OpenSSH SFTP server. But other SFTP servers do allow it. For example the ProFTPD with its HideFiles directive. Note that while ProFTPD is primarily an FTP server, it does support SFTP too. A related question: Some files/directories are not listed by ProFTPD server


0

Current solution may be that: add snd-intel-dspcfg.dsp_driver=0 in kernel parameters (/boot/grub2/grub.cfg to end of line linux or other places depend of your bootloader)


Top 50 recent answers are included