John Leuenhagen
  • Member for 5 years, 6 months
  • Last seen this week
Aggressively fsck a disk before install
7 votes

If you are getting fsck errors that often, the drive may as well be coughing up blood. Even if you mark every single bad block as bad, it won't be long before more blocks go bad. I would imagine you ...

View answer
Is there any linux utility to create plain binary dump of file and vice versa?
3 votes

If you just want to dump to hex, I would use hexdump, or xxd. However, you mentioned 010 Editor, which is a hex editor. There are plenty of hex editors for Linux. For example, see this part of the ...

View answer
Is there a way to have more than one operating system on a computer?
3 votes

Yes, this is possible. If you want to be able to run both operating systems "normally", you would do what's called "dual-booting". In this scenario, you'd have both operating ...

View answer
Change hostname for systemd on Fedora 25
3 votes

According to this article, you should run hostnamectl set-hostname name where name is your desired hostname. I presume you should run this as root.

View answer
What does 'd' mean in 'syslogd'?
Accepted answer
3 votes

Whenever you see a 'd' at the end of a program that seems out of place, it means that it's a daemon.

View answer
Where can I find a comparison of graphics cards using free software drivers? Are there any with good performance?
2 votes

h-node.org has several resources related to free software, including a list of hardware that can run under completely free drivers. You may find the catalog specifically for video cards here.

View answer
Difference between connecting shell commands
2 votes

I believe that the "possibilities" being shown are not necessarily programs that you can run. For example, when you type man, it is likely saying that there are that many possible things you can run ...

View answer
Is it recommended to clear your flashdrive after successfully installing linux?
Accepted answer
2 votes

There are several reasons why you might need a Linux boot drive in the future. Personally, I have one on my keychain at all times. The two main reasons (at least for me) are: If you break something ...

View answer
How to unstack windows
2 votes

$mod+e should switch to tiling mode again.

View answer
Trying to SSH overseas
Accepted answer
2 votes

Well you would need him to port forward port 22 from his computer and have him be running sshd if you want to do it the simple way. On the other hand, you can do the dirty work and have him do a port ...

View answer
How to simply cut and paste from an editor on a remote machine to a local machine?
2 votes

If you're using a graphical terminal program (like xterm) you should just be able to copy text from the window like normal.

View answer
How can I undo an incorrect gzip?
2 votes

Antron has the best solution with gzip -r -d ocloud/ ocloud.zip.gz, but just because other options are nice to have, you could also do gzip -d $(find directory) when directory is the one that contains ...

View answer
script: Log both output and exit codes
2 votes

From the script man pages: -e, --return "Return the exit code of the child process. Uses the same format as bash termination on signal termination exit code is 128+n." I misinterpreted this... ...

View answer
What's this directory in Node JS bash command?
1 votes

XDG_CONFIG_HOME is an environment variable that expands to the directory at which programs should store configuration files. By default, this directory is .config in your home directory. So in my case,...

View answer
recursively count lines in files, group by file extension
1 votes

I broke things up into functions to try to make it easier to understand: #!/bin/bash # For the next two functions, we will use "-print0", which will print out \0 instead of \n. # This will help ...

View answer
Incorrect partition size on new disk
Accepted answer
1 votes

It seems as though you have a misconception as to the relationship between partitions and filesystems. Your partition is actually the correct size, but your filesystem is not. When you ran pv < /...

View answer
Change partition without affecting LUKS encryption
Accepted answer
1 votes

Any operations on sdc5_crypt will not harm your LUKS configuration. You can treat it like a normal drive. So yes, you should be able to use that command to reformat your partition.

View answer
How to set Samba Root Directory?
Accepted answer
1 votes

Unfortunately, your first request is not possible. samba uses 'shares' instead of just acting like a filesystem root (like nfs). So when you click on RETROPIE, you are viewing the list of shares on ...

View answer
Problem building KDE software on OSX
1 votes

Try manually installing extra-cmake modules. git clone https://github.com/KDE/extra-cmake-modules.git cd extra-cmake-modules cmake . make sudo make install This assumes you have git, make, and cmake ...

View answer
Writing openSUSE image to SD card
1 votes

Just do sudo su to get into a root shell. Then do xzcat openSUSE.raw.xz > /dev/sda1.

View answer
Ubuntu says disk space is exhausted. No terminal access. Only guest log on. HOW can I erase disk space now?
1 votes

If the only issue is clearing up disk space, you could do that from any live Linux environment. Let's use Ubuntu's, because it sounds like you're used to it anyways. What you will need: The latest ...

View answer
Installing a .tgz
0 votes

Generally, you should avoid installing software from that type of file (.tgz is just a shortened way of writing .tar.gz). The first place you should look when you want to install something is your ...

View answer
How can I access my windows machine from my linux machine (physically next to each other) with low latency for gaming?
0 votes

I would recommend taking a look at either Steam Remote Play, or Moonlight. I tried Moonlight a few years ago, and it worked quite well.

View answer
How do I run a program so it thinks it's the only thing on the computer?
0 votes

There are multiple solutions to this, but I think the most appropriate would be Linux Containers. It is more lightweight than a VM, and should have very little performance impact. I know you're using ...

View answer
store a KVM .qcow2 image in NTFS external hard disk
0 votes

I would assume that Debian comes with NTFS support. Try mounting the drive. If you can't mount it, try installing the appropriate package (not sure what it's named on Debian). Once you get it mounted, ...

View answer
Using CloneZilla with Software RAID5
Accepted answer
0 votes

You may clone the hard drives like you were thinking, but I recommend removing CloneZilla from the equation entirely. Here's how I think you should go about doing this: Make sure you keep track of ...

View answer
How to use DD to clone a partition off a disk image?
0 votes

Mount the image as a loopback device: losetup -fP yourImage.img You may now access each partition of the image directly. If you must use dd, you can do dd if=/dev/loop0p1 of=image.img, but I think ...

View answer
Can We Input Return Using Shell Scripts?
Accepted answer
0 votes

The yes command continuously outputs the first argument provided followed by a newline until stopped. So this should work for you: yes "" | adduser .... However, most modern programs have similar ...

View answer
NVIDIA 970 running in software rendering mode
Accepted answer
0 votes

For a GTX 970, you should either use nouveau (the open source Nvidia driver), or the plain old proprietary nvidia module. Both tend to be pretty iffy (why I'm switching to Radeon graphics), so I would ...

View answer
How to pass arguments of the shell script when calling it?
0 votes

You should change for $i in {ls*.fastq} # trying to run batch processing to for i in {ls*.fastq} # trying to run batch processing, because by using $i when declaring the loop, bash replaced $i with a ...

View answer