Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
pseudorandom name
May 6, 2007

NZAmoeba posted:

How do I check duplex settings at the client side? (it plugs into a tiny switch). And how do I disable ipv6 lookups? When I was googling this problem I saw a number of people say to disable ipv6 dns lookups in firefox but that wouldn't propagate to the rest of the system would it? (they described a problem where firefox would be slow, but downloads were normal, different from my issue)

"ethtool eth0" will tell you if it's full-duplex or not (along with lots of other details).

You can disable IPv6 by unchecking the "Enable IPv6 configuration for this interface" checkbox in system-config-network (Devices tab, select the device in question, click Edit). (This isn't causing your problem, though -- it would only make name resolution approximately twice as slow, not actual data transfers.)

Adbot
ADBOT LOVES YOU

pseudorandom name
May 6, 2007

It is also completely useless unless you're running commands in a terminal.

In conclusion, don't read Phoronix.

pseudorandom name
May 6, 2007

ExcessBLarg! posted:

He flipped his poo poo during a license controversy a few years later, and I don't think has been heard of much since.

Thankfully, OpenSolaris came along and took one for the team.

pseudorandom name
May 6, 2007

Misogynist posted:

nscd doesn't query anything -- you may be confusing it with SSSD on RHEL6 and recent Fedoras. Here's what NSCD does:

  • There are a set of functions, getpwent(), etc. that query the Name Service Switch for information. nsswitch isn't actually a service, per se -- it's a set of functions that happen to run in the context of the calling process. This is why non-root processes can't authenticate against /etc/shadow without screwing with the permissions.
  • When something in the getpwent() family is called, glibc first checks to see if the Name Service Caching Daemon is running. If it is running, it makes a request out of nscd's cache.
  • If nscd is not running, or if nscd either doesn't have that item or that item is stale, glibc proceeds to make the request as configured in your nsswitch.conf file.
  • After receiving the reply from the appropriate nss_* whatever, glibc signals nscd to cache that result in memory.

Basically, that's it. That's all it does. nscd doesn't have anything to do with name service lookup besides the fact that it's a dumb in-memory cache that happens to interface with glibc for the sole purpose of caching name service lookups.

This is completely wrong -- nscd is a global cache for all users, so letting any user account populate that cache with results would be a gaping security hole.

If nscd is running, glibc asks nscd to do the query, otherwise, glibc does the query directly.

(It's actually a bit more complicated than that -- glibc will snoop through nscd's cache, and if it can't find a result in the cache, then it wil ask nscd to the query.)

In no situation is anything ever added to nscd's cache by anything other than nscd itself.

pseudorandom name
May 6, 2007

getaddrinfo() will actually resolve a host:service pair to a prefilled struct sockaddr which can be passed directly to socket() or bind().

pseudorandom name
May 6, 2007

tee

pseudorandom name
May 6, 2007

I always use $() because it is easier to see than backquotes.

pseudorandom name
May 6, 2007

At least they didn't skip straight to Linux 7 like Sun with both Solaris 7 and Java 5.

pseudorandom name
May 6, 2007

ps $(pgrep ntp)

pseudorandom name
May 6, 2007

systemd integration into the desktop would be limited entirely to the desktop session manager (i.e gnome-session or whatever), which would just make it better on Linux and the same as it was on operating systems which either don't have the equivalent of Linux cgroups or don't have the developer interest to implement it.

Which means that Solaris might get something similar, because they both have the kernel support and people paid to care about this stuff, while FreeBSD is still hosed because they can't even get somebody to care about making the X graphics drivers work.

pseudorandom name fucked around with this message at 22:18 on Oct 16, 2011

pseudorandom name
May 6, 2007

Supposedly a lot of the problems that PA had were a direct result of the ALSA drivers being terrible.

pseudorandom name
May 6, 2007

Wheelchair Stunts posted:

This looks to be the command list for version 2. Here is a link to version 4 which requires free registration (:allears:) to download.

Version 7 is the latest.

pseudorandom name
May 6, 2007

git doesn't store permissions, which is problematic for things like /etc/shadow. etckeeper does, though.

pseudorandom name
May 6, 2007

Misogynist posted:

etckeeper is just a shim around metastore, which is the piece that does all the actual lifting. There are some annoying caveats.

It actually doesn't anymore.

pseudorandom name
May 6, 2007

Phone posted:

Did this with my Fedora 16 install (steps 1 & 2)... am I missing something? I know that the anti-aliasing is very subtle but I didn't notice anything change when I installed freetype. Is there a step I'm missing?

The TrueType bytecode interpreter patents have expired and Fedora 15 and 16 have that enabled already.

The autohinter is ignored if the bytecode interpreter is enabled and the fonts are hinted, which means that step does nothing.

freetype-freeworld still exists to enable ClearType subpixel rendering (which is still patented) but you might not notice the effect as much as the bytecode interpreter.

And you won't notice any of those nice fonts you've installed unless you've configured them to be used in your desktop or whatever, and those directions don't include that step.

pseudorandom name
May 6, 2007

Appachai posted:

I have a linux work machine, a macbook air, and a windows desktop at home. I'd like to use a portable hard drive to work on things using all these computers. What filesystem do I have to use for all of them to be able to read/write the same drive?

e: How is it possible that in 2011 these kinds of problems still exist?

Because Microsoft doesn't want anybody else using NTFS. They want you using FAT or exFAT, and they want you paying them licensing fees.

FISHMANPET posted:

Doesn't Mac support NTFS more natively than that? And NTFS-3G should be in your kernel already, no need to muck around with FUSE.

NTFS-3G is a FUSE filesystem, it isn't in your kernel and you need FUSE.

pseudorandom name
May 6, 2007

The IO schedule chooses which order to send the read or write commands to the disk.

The actual location of the sectors read or written is decided by the file system driver (or LVM/device-mapper, the userspace app directly accessing the block device, etc.)

Filesystems are designed to minimize fragmentation if possible.

pseudorandom name
May 6, 2007

The order applications submit requests to the kernel isn't the order they're submitted to the drive. That's the whole point of the IO scheduler, it reorders requests (where possible) to minimize seeks.

pseudorandom name
May 6, 2007

Shaocaholica posted:

Ok, here's a simple case. Copying 10 dirs from one physical drive to another using cp. However, 10 instances of cp are lauched at the same time and allowed to run concurrently. All operations create new files so we don't have to worry about old file locations/sizes.

What kind of bahavior can we expect from the IO scheduler given EXT3/EXT4 destination file system?

You can expect the IO scheduler to sort the read commands to the source media and the write commands to the destination media (which are in two separate queues) to minimize seeks as much as possible, given the ordering constraints necessary to satisfy the ext3/ext4 integrity guarantees.

pseudorandom name
May 6, 2007

spankmeister posted:

I'm slightly worried about the whole UEFI thing, since it has that "secure boot" thing and all, which effectively means you will need to have a signed bootloader which can only load signed kernels and you cannot sign your own.

Yes you can. You can add or remove trusted keys to the UEFI key database, and you can disable secure boot entirely if you so choose.

spankmeister posted:

Hopefully. You will NOT be able to dual-boot Windows then though. Win8 will rely on the secure boot thing to stop piracy. (Because the most widely used hack for win7 is a bootloader that injects a valid key.)

Yes you will. Secure boot explicitly does not require a trusted platform module, so Windows couldn't even tell the difference between a real secure boot and a faked secure boot. But that doesn't matter, because Windows 8 doesn't require secure boot to be enabled in the first place.

Secure boot is purely a malware prevention tool. It is a way of making out-of-the-box Windows PCs immune to root kits that insert themselves into the boot process before the OS is loaded.

pseudorandom name
May 6, 2007

Social Animal posted:

Just installed xterm on my server for kicks. I will say it is pretty surreal to run Firefox on my server through SSH. Does anyone use xterm for any serious purpose? It looks like a very ancient and outdated thing, not to mention slow.
Not on a server, no.

Social Animal posted:

Also if I install a package (let's say emacs) and I want to remove it, doing the yum remove command only removes the package and not the dependencies. What if I want to remove the dependencies as well? Do people ever do that when removing packages or is it better to just keep the dependencies around?

yum history undo $TRANSACTION_NUMBER

yum install yum-plugin-remove-with-leaves
yum remove --remove-leaves $PACKAGE_NAME

In either case you'll want to look at the proposed transaction and make sure you're not removing something you need.

pseudorandom name
May 6, 2007

ToxicFrog posted:

Realistically, this sort of thing is often a clusterfuck regardless of the OSes involved; try connecting the same drive to a windows computer and it'll either ignore it completely or offer to format it for you.

Why can't we just have one filesystem for external drives and shared partitions that is well supported by every OS and isn't loving FAT32? :smith:

Because there's no way to make money doing that.

pseudorandom name
May 6, 2007

Nautilus's SMB support is entirely separate from Samba (the user-space SMB server) or CIFS (the kernel-space SMB filesystem driver).

pseudorandom name
May 6, 2007

It may, but Windows doesn't use mDNS/DNS-SD for anything, so that wouldn't help.

pseudorandom name
May 6, 2007

Even if iTunes is installed, Windows Explorer isn't going to use DNS-SD to find network shares, nor is it going to list the local shares using DNS-SD.

pseudorandom name
May 6, 2007

evol262 posted:

Really? That's idiotic.

How the hell are they doing discovery then?

Fake edit: I looked this up. They're still using netbios-ns? :suicide:

You seriously thought Microsoft would use something not invented in-house?

pseudorandom name
May 6, 2007

ArcticZombie posted:

To clarify I am using Dual Link DVI, I don't know why it's called HDMI2 in xrandr.

VVV - The monitor doesn't actually have a second HDMI port, just the one ('HDMI1').

code:
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   1920x1200      60.0* 
   1600x1200      60.0  
   1680x1050      59.9  
   1680x945       60.0  
   1400x1050      74.9     59.9  
   1600x900       60.0  
   1280x1024      85.0     75.0     60.0  
   1440x900       84.8     75.0     59.9  
   1280x960       85.0     60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       84.9     74.9     59.9  
   1152x864       75.0  
   1280x768       84.8     74.9     60.0  
   1024x768       85.0     75.1     70.1     60.0     43.5  
   1024x576       60.0  
   800x600        85.1     72.2     75.0     60.3     56.2  
   848x480        60.0  
   640x480        85.0     72.8     75.0     60.0  
   720x400        85.0     70.1  
   640x400        85.1  
   640x350        85.1  
DP2 disconnected (normal left inverted right x axis y axis)
Nor does it have a second Display Port err, port so I don't know where DP2 is coming from.

Those names come from your video card, not your monitor. Are you sure your video card is capable of outputting 2560x1440?

pseudorandom name
May 6, 2007

No. A single click of the scroll wheel results in a single button 4 or button 5 event, which is up to the application to interpret. And that generally isn't customizable.

pseudorandom name
May 6, 2007

Oh, lots of people said it was stupid, but they were outnumbered by programs with hard-coded paths.

pseudorandom name
May 6, 2007

Doctor w-rw-rw- posted:

That and like Longinus said, it's implemented as a userspace file system, so the kernel has to make a round trip into and out of userspace rather than kernelspace. I'm not enough of a systems expert to explain why that might hurt performance, but I think that might hurt performance, depending on the workload.

Context switches are expensive and the data has to be copied around more than necessary to get it from the original process to disk.

pseudorandom name
May 6, 2007

Doctor w-rw-rw- posted:

Okay, that's what I suspected, but I wasn't confident in it -- What is it about the system and/or its filesystem drivers that make this not an issue? If I recall, context switches cause L1/L2/etc. to have to be cleared in addition to the TLB. Is it just that kernel filesystem drivers live in physical space, giving it a leg up CPU-wise, then?
pre:
FUSE                         native

process calling read()       process calling read()
        |                             |
        v                             v
kernel FUSE driver           kernel filesystem driver
        |                             |  data copied
        v                             v
userspace FUSE driver        process calling read()
        |
        v
kernel block driver
        |  data copied
        v
userspace FUSE driver
        |  data copied
        v
kernel FUSE driver
        |  data copied
        v
process calling read()
FUSE can either be better or worse than this diagram, depending on circumstances. If the data is already in the page cache, the userspace FUSE driver doesn't have to be invoked at all, while if it isn't, there's probably multiple roundtrips between the userspace FUSE driver and the kernel block driver.

x86 CPUs are PIPT, so the L1/L2/etc. caches never have to be invalidated on context switch, but the TLB cache does have to be emptied with FUSE, but not with native drivers.

pseudorandom name
May 6, 2007

Well, feel free to elaborate on why I'm wrong.

pseudorandom name
May 6, 2007

Netflix realizes there's not enough Linux users to be profitable and there's no way they could make working DRM.

pseudorandom name
May 6, 2007

The difficulty in getting DRM working on Android is the major reason why Netflix took so long in releasing an Android client.

pseudorandom name
May 6, 2007

That wouldn't help in the slightest. You can still attach a debugger to a statically linked binary, and you can still modify the kernel to do whatever you want to arbitrary processes.

pseudorandom name
May 6, 2007

A good-faith DRM effort isn't sufficient, it has to work.

DRM was the issue holding Netflix back from Android.

pseudorandom name
May 6, 2007

ShoulderDaemon posted:

Note that this is equally true on the Windows platform. Windows still allows users to install unsigned kernel modules, and custom directvideo drivers, and attach debuggers, and run DMA. Windows is not inherently more DRM-friendly than Linux; Linux just has an arbitrarily higher bar for "secure DRM" than Windows does.

DRM capable audio, graphics, and video codec drivers get different WHQL signatures, and can make decisions on what they're willing to do based on what other drivers are loaded. Userspace apps can decide not to talk to non-DRM capable drivers at all.

pseudorandom name
May 6, 2007

Xenomorph posted:

I can't seem to separate the ACLs and POSIX permissions like I can on Mac OS X and FreeBSD. However, Samba+NFS still seems like a workable solution, even with the goofy permissions. I'll just have to check permissions a bit more often on the shares.

The "security mask" option doesn't do what you want?

pseudorandom name
May 6, 2007

Schizophrenic Orb posted:

Basically when I start my computer it starts without any graphics, so it puts me at tty1. When I login I have it automatically startX for me. But I don't want tty2-6 to try starting a gui because I already made one through tty1.

How would I check which tty I'm on through like .bashrc?

edit: Got it to work.

The normal way to do this is set your distro to boot into graphical mode by default so you don't have to login on a text terminal at all.

Adbot
ADBOT LOVES YOU

pseudorandom name
May 6, 2007

UEFI isn't actually the cause of the problem, just a really easy way to quickly identify which laptops are susceptible to being bricked by the samsung-laptop driver.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply