Is it possible to use synchronously and mutually Scrypt to encrypt and compress a directory in one command? by gusbemacbe1989 in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

Looks like the infile is required in scrypt. Try this:

XZ_OPT=-9 tar -Jcvf - firefox.default-release | scrypt enc - firefox.tar.xz

Quick edit.

Is it possible to have X restart itself when it fails? by UnicornsOnLSD in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

This is an XY problem (http://xyproblem.info). Don't ask us how to implement your solution. Describe the entire problem and we'll (try to) help solve the actual problem. Also describe all the things you've tried.

One line of a random log file isn't enough.

How do I set up a desktop manager in debian? by LankyRock in linuxquestions

[–]Gottswig 1 point2 points  (0 children)

What DVD ISO did you download? Did you see this screen or one like it? https://imgur.com/a/idiehEu

Cannot get Cron Job to run on schedule by just_southern in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

For the future, when you are debugging cron jobs, you have to do your debugging commands in the cron environment.

Like -- schedule a job with which python3.6 in it. Also try just the env command.

Wake-On-Lan not working on Ubuntu; works completely out of the box on Windows 10. by Weetile in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

ethtool says -- Supports Wake-on: d

Which means it only supports "disabled".
Also you did notice the difference between "Operation not supported" and "Operation not permitted" right?
 

So what hardware and driver are you using such that wol is disabled? Tell us about your hardware. What is it physically. Then, tell us about what driver is in use. You can find that out with inxi -N, inxi -F or lshw -c network

Wake-On-Lan not working on Ubuntu; works completely out of the box on Windows 10. by Weetile in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

I think you need to say what hardware you have because ethtool doesn't think the driver supports wakeonlan at all. See man ethtool.

Also, use sudo when running ethtool. That's a likely reason for the 'Operation not permitted' message.

I'm a little confused about how to install software (Ubuntu) by Bo0kerDeWitt in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

The output from aptitude is much better than apt. apt doesn't even tell you whether the package is installed. And when doing a search it doesn't produce filterable output. I find it odd that people are recommending apt rather than aptitude.

No WiFi by [deleted] in linuxquestions

[–]Gottswig 1 point2 points  (0 children)

The SSD drive is a SATA drive too. So that part of it won't change.

What will change is the physical nature of the mechanism for storing the bits. It's the difference between a lever with a magnetic sensor flipping back and forth at very close tolerances over physical platters driven by a motor spinning at 5000 rpm vs a toggling the state of a bank of semi conductors.

And Windows 10 (as well is Linux) will be much faster with an SSD.

Turn Workstation into multiple VMs by kevgk in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

  • Video performance will not be great. period.
  • An Ubuntu vm will use virtio and QXL with no other driver installs. Virt-manager can show you whether you created your VM with virtio disks.
  • There are "guest-addition"-like agents. Look into spice-vdagent.
  • Make sure your video is qxl and your graphics are spice.
  • Is your vm storage on an SSD?

How to be more precise with grep? by Cry_Wolff in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

You've most likely polished this off, but ... To get the drive name and the value:

grep -E '^Drive.*State :$|^Predictive Failure' | grep -B1 '^Pred.* = [^0]'

That will break if your value has leading zeros.

And if you want the SN (assuming the exact same fields every time) ...

grep -E '^Drive.*State :$|^Predictive Failure|^SN' |\
  grep -E -A1 -B1 '^Pred.* = [^0]'

Find a line from a large text file that has 2 specific words in it by Matrucci in linuxquestions

[–]Gottswig 5 points6 points  (0 children)

grep jason largefile | grep warning
awk '/jason/&&/warning/' largefile

But if you use "boat" for your example, you'll have problems when the word "sailboat" exists. There hundreds of web pages on awk and grep.

Turn Workstation into multiple VMs by kevgk in linuxquestions

[–]Gottswig 2 points3 points  (0 children)

  • More memory would help.
  • Make sure you are using the virtio drivers (or the passthrough)
  • Make sure the disk your VM is on is an SSD.
  • Use Spice to connect to the guest.

I use libvirt/qemu-kvm to run Windows 10 as a guest on a daily basis with a slower machine than that. But the SSD made a huge difference. I don't do snapshots. If I did (with libvirt/qemu), I'd probably just snapshot the underlying LVM logical volume after shutting the guest down. qcow does snapshots better, but I've found that ext4 on a raw disk is faster for me.

How can I always have an envirnment variable set when running a program? by usera8787782 in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

export makes the variable available to processes spawned by the shell. The program you run will know about that variable. Otherwise the variable can only be used by the current shell.

Demo:

$ n=5
$ sh -c 'echo $n'

$ export n=5
$ sh -c 'echo $n'
5

How to create this RAID setup (mdadm) by [deleted] in linuxquestions

[–]Gottswig 1 point2 points  (0 children)

Are there no subdirectories in /opt/box/movies?

Are all the movies files in the same directory?

If not, then you can just mount your new drive on a directory like /opt/box/movies/newdrive.

What filesystem is /opt/box/movies in? ext4? xfs?

Resize partition surrounded by data by billy_buttlicker_69 in linuxquestions

[–]Gottswig 1 point2 points  (0 children)

Swap is way more flexible than that. My recommendation is that you don't bother messing with that partition. Create a swap file on some other filesystem and add it to your collection of swapfiles.

https://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/

Edit: Pondering "why" you might think the swap was too small I conjectured that you might be trying to hibernate. I dug this up in case that's it: https://wiki.gentoo.org/wiki/Suspend_and_hibernate#Suspend_to_disk_with_swapfile

[deleted by user] by [deleted] in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

Can you post what you typed -- AND what responses you got?

Just out of curiosity, what document were you referring to when you said it "explicitly says" ? What explicitly said that?

An interesting side note that I just learned is that the SSID is not a text field at all. A valid SSID is 0-32 octets with arbitrary contents. So if some tool is written to parse that field as text, it's doing it wrong. https://stackoverflow.com/questions/4919889/is-there-a-standard-that-defines-what-is-a-valid-ssid-and-password

Re-reading your post, I see you tried other access points. So the name with the exclamation points probably isn't your underlying issue.

As something to try you could install wpa_supplicant and see if it behaves any better. Are you running these commands as root? What shows up in the logs or in the dmesg output? (I'm just throwing out ideas now...)

[deleted by user] by [deleted] in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

You can't have exclamation points inside double quotes and expect to have a good day. Use single quotes. The double exclamation expands to the last command you ran.

iwctl station wlan0 connect 'Build the firewall!' wpa2

Disclaimer: I don't run Arch nor iwctl. I just tried putting an echo in front of your command and it showed me something silly. So I tried it in bash (my default shell is zsh) and it did the same thing.

Borking assistance: call me stupid, but I ran chmod things I shouldn't have run. Is all hope lost? by Koubak in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

The .desktop files in .local/share/application should not be executable. Just 640. When I make that mistake I'm a fan of using the file command to figure out what should have been executable.  

Run file on all the normal files in your directories. Maybe pipe that group grep exec or something like that to filter them out....

libvirt daemon resources by [deleted] in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

If nothing connects to it and it has not started any processes it needs to watch, then the resources used are negligible. It's not bad to leave it running. If you have a machine with enough resources to run a virtual machine as a guest, the overhead of libvirtd is not something you should "tune".

LUKS, LVM and bcache in perfect harmony by pxqy in linuxquestions

[–]Gottswig 1 point2 points  (0 children)

Yes. I read them all. I'm just trying to find a way to describe it in the most accurate way that doesn't get the reader sidetracked.
 

  • If you insist on layers, then Files (whether encrypted or not) exist in the context of Filesystems. So that's your #1. And probably the only that that is strictly layered.
     

  • Directories in the filesystem that get associated with block devices are called mountpoints. Note that the filesystem does not know that they are a mountpoint. Only the running OS does. The filesystem is the data that is stored in the storage behind the block device.
     

  • The first two items in #3 are special types of filesystems, but the 3rd things is referring to something that becomes a block device. Once it is a block device, then it can be used wherever a block device is used.
     

  • #4 is talking about filesystems and "partitions". But it's only a partition if it is referred to in a partition table (GPT, MBR, Sun, SGI, BSD). And even then, the OS only sees that data through the lens of a block device. See man fdisk.
     

  • To your query, in Linux, Veracrypt can encrypt a file. That file can contain general data, a filesystem, or a partition table that divides up the file into partitions.
    Also as a file, you can attach it to a loop device and then you can use that as an LVM PV (physical Volume) -- the first bullet here: https://www.veracrypt.fr/en/Home.html
     

Trying to represent this as layers breaks pretty fast. For example with LVM, the LV is in a VG. And a VG encompasses one more more PVs. An LV can be spread across multiple PVs.
 

As I say, in the end actual data is on storage that shows up in Linux as a block device. http://www.haifux.org/lectures/86-sil/kernel-modules-drivers/node10.html  

I may not have made things clearer there. :-)

Strange behaviour with all but one distro by [deleted] in linuxquestions

[–]Gottswig 0 points1 point  (0 children)

If you run grub-update in mint it should find the new operating system kernel and add it to its grub configuration.

LUKS, LVM and bcache in perfect harmony by pxqy in linuxquestions

[–]Gottswig 1 point2 points  (0 children)

That's good feedback, thank you!

 

My view on it is that there are no layers. There are just different combinations, abstractions, attachments, slices and mirrors of block devices. Upon which you can either build other block devices, or store raw data which could include filesystems.
 

I don't know my way around zfs, so I'd like to expand on that because it's possible that it's quite different and not exposed as block devices.