Skip to content

u/humbled

In this archive from Nov 2009 to Feb 2015

6
posts
119
comments
0
media
220
score

This is not your problem (others have identified it), but related:

0 byte files are still not 0 bytes in actual space. The FS has to use space to track the name, metadata, location on disk, etc. Some FSs have to allocate at least one block cluster for every file, even if the file is empty. An allocation unit size may be pretty much anything, but it's usually some multiple of 512 bytes. The "default" for NTFS and ext4 is 4096b, for instance.

In other words, you can completely fill up a volume with 0 byte files.

Fun aside: In DOS 6.0, there was a bug where the 'rmdir' command would remove empty directories even if they contained "hidden" files - effectively leaking them. It was fun to taunt your friends by running scripts that would generate 0-byte files into a temporary directory, hide them, and then 'rmdir' that temp directory. The owner of the computer would be perplexed, as the system would report that there was only the expected amount of space used by files in total, but also that 100% of the total disk space was in use. (A simple check disk fixed the problem, so this was innocuous.)

2 points

Since Red Hat made XFS default, I have been using it as my default as well. I have already taken advantage of the built in backup utility (very nice!) and live check/defrag. As a bonus, we encountered an ext4 performance issue in production and moving to XFS completely fixed it (lots of concurrent access to the same dentry).

So, for me, personal and professional default fs is XFS these days.

3 points

It should work virtualized. A complete answer is tough because starting X has not only multiple paths, but can be different based on DE, WM, distro & greeter (gdm, lightdm, etc.). The things I do to add tiling sessions on Fedora, for example, can be different than on Debian.

Here are some nuggets that might help you more, though:

  • .xinitrc is generally only parsed by startx.
  • startx is a command-line startup. You probably don't want to be using it.
  • /usr/share/xsessions contains XDG desktop files for starting X sessions. However, not all WM packages create a session for you to use. You can create a generic one (like I mentioned above) or you can create specific ones.
  • When commands are executed by lightdm, it sets $DESKTOP_SESSION to the desktop session name from the xsession desktop file.
  • You can use a tool like lxsession to start an X session, manage multiple configs, read XDG autostart applications, change your WM ad-hoc, etc.

You may want to file bugs against the packages your using if you think they should provide xsession files. Many WMs, I think spectrwm included, have their own concepts of auto-launching and managing certain coprocesses (especially bars like dmenu). In these cases, the WMs form as pseudo-DEs and probably do deserve their own xsession desktop file.

Good luck!

2 points

A virus would be possible on Linux. If a user executes a binary that uses a local root exploit, it would then have permission to write to system files. IIRC, it's libc that handles linking, so anything that targets that library could then be used to infect any executable with the same sort of exploit.

Of course, your package manager might be able to tell you that your files are not correct.

I think the real reason Linux doesn't have viruses is because they are not useful to malicious actors. Worms and trojans are less likely to fail and can do more (bad) things, and are not subject to the limitation of activation only when an infected binary is loaded.

2 points

If it has to be Debian based, anything that's based on Debian stable. Or just stick with Debian.

Some people like to quote their own "sid is stable enough for me" experiences, but the real issue isn't that sid is usually stable - the issue is that it will have random periods of instability. Tolerable for home use (maybe), but definitely not in production, where you want 100%.

If you need something newer, I would look at a Debian stable base (or heck, CentOS/RHEL), and then containerization (LXC, Docker, and so forth) to isolate the newer software and newer dependencies. Not for security, but because you don't want that newer "tree" to interfere with your base system's tree.

1 points

Many of the perceived negatives of XFS have been fixed, but people don't delete their old blog posts.

Reliability on power loss: write barriers are now enabled by default. This means XFS flushes the journal to disk before continuing. XFS should be on par with robustness of any journaling file system.

Performance: Since delaylog became default, XFS is on par or better than ext4 for performance.

Shrinking/growing: You can grow. You cannot shrink.

Backups: XFS comes with an incremental backup utility that records everything about the FS, including extended attributes.

Also, IIRC, XFS can do fsck while the filesystem is active, so you don't have to delay bootup for it.

One potential downside, XFS assumes your hardware operates correctly and doesn't bake in paranoia around it being flaky. I.e. if your drive doesn't flush when it's asked so that it can perform better on benchmarks, you're gonna have a bad time.

2 points

I have read that this problem comes in part from development goals. ext4 is developed largely on & for unreliable consumer equipment, where XFS has always focused on high-grade professional equipment. What I'm getting at is that XFS tends to "trust" the drive to perform as expected. I say "write this here" and the drive does it. Consumer grade drives often lie about this. IIRC ext4 has a lot of unnecessary flush/wait throughout to help get around this problem, whereas XFS team generally approaches this as a "know-your-hardware" issue with tuning options.

See a bunch of FAQ question and answers for more info.

Edit: "Write barrier support is enabled by default in XFS since kernel version 2.6.17." If your issues occurred around that era, it's possible it's a solved problem now.

1 points

A much better option for you is to NFS mount your /home. ajs124 is right, the PXE boot firmware tends to exist at a level before establishing a wireless connection is possible.

Since you're talking about app installation selection, there are other options you can layer in like Docker, that create a configuration and environment for apps.

If you really want to pursue PXE booting, have a look at home powerline networking, but read the reviews on smallnetbuilder or some such site, and learn about its caveats (for example, noise & interference, electrical circuits, real bandwidth, etc.).

Another hardware option is a wireless-to-wired hardware adapter, but I feel like that might be flaky.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.