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
fuf
Sep 12, 2004

haha
Ah, that makes sense. Thanks both. We'll see tomorrow if it worked :)

Adbot
ADBOT LOVES YOU

HPL
Aug 28, 2002

Worst case scenario.
Does Plan 9 talk go here? Because I just tried it out today and it's the most WTF thing I've seen in a while. Is there any benefit to Plan 9 now in this era of wonderful Linux distros? The "latest" version of Plan 9 is like hopping in the wayback machine to 2001 or something.

pseudorandom name
May 6, 2007

Plan 9 is still being updated?

crunk dork
Jan 15, 2006
Is swap space worth configuring on a laptop if it has 4GB of RAM already? I installed arch and didn't see the point of it so I skipped doing it but left a good portion of the disk untouched at its end so that I have the option of configuring it later if needed.

evol262
Nov 30, 2010
#!/usr/bin/perl
Do you ever want to hibernate? Then yes

ToxicFrog
Apr 26, 2008


crunk dork posted:

Is swap space worth configuring on a laptop if it has 4GB of RAM already? I installed arch and didn't see the point of it so I skipped doing it but left a good portion of the disk untouched at its end so that I have the option of configuring it later if needed.

Swap is used for hibernate, so if you want to do that you'll need as much swap as you have RAM.

Apart from that, having swap means it will automatically swap out unused data after a while even you still have RAM free, leaving more memory for the block cache. (And 4GB isn't actually that much these days, especially if you want to do something extraordinary memory-heavy. Like web browsing.)

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

pseudorandom name posted:

Plan 9 is still being updated?

There's a modern fork called 9front built by a group of studious people who reject the past 30 years of OS research and still think it's the future.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
lol, their website runs on Linux because it's the only computer that can run their lovely shell script HTTP server (which keeps failing) fast.

https://news.ycombinator.com/item?id=7614718

The UNIX philosophy at work, folks.

Docjowles
Apr 9, 2009

ToxicFrog posted:

Swap is used for hibernate, so if you want to do that you'll need as much swap as you have RAM.

Apart from that, having swap means it will automatically swap out unused data after a while even you still have RAM free, leaving more memory for the block cache. (And 4GB isn't actually that much these days, especially if you want to do something extraordinary memory-heavy. Like web browsing.)

Piling on, there's not much downside to configuring a swap partition, in an era where you can get a 1TB SSD for a few hundred bucks. It's not like carving out 0.4% of that for swap is killing you.

If you have zero swap space, and an app starts creating memory pressure, it'll just get killed. Which is rarely what you want. The only time I've wanted to do that is on production systems with very hard low-latency requirements where it was better for a cluster node to just die and remove itself from action rather than swap and bog everything down. On your home laptop you probably don't want the oomkiller to randomly murder Chrome because you opened one too many tabs.

crunk dork
Jan 15, 2006
It's more of an experimental thing and for fun, trying to learn more about the guts of Linux itself and fumbling my way around arch seemed like a good next step from using Debian. Appreciate all the responses. Currently working on configuring some kind of GUI (haven't decided which yet) for desktop while not using one for login.

E:

I ended up allocating another 4gb for swap. Am I correct in thinking that as long as I have an X server installed and running at startup I'm good to install a desktop environment (looking at xfce) and configure it to execute at login for a user?

crunk dork fucked around with this message at 23:06 on Jan 31, 2016

evol262
Nov 30, 2010
#!/usr/bin/perl

crunk dork posted:

It's more of an experimental thing and for fun, trying to learn more about the guts of Linux itself and fumbling my way around arch seemed like a good next step from using Debian. Appreciate all the responses. Currently working on configuring some kind of GUI (haven't decided which yet) for desktop while not using one for login.

E:

I ended up allocating another 4gb for swap. Am I correct in thinking that as long as I have an X server installed and running at startup I'm good to install a desktop environment (looking at xfce) and configure it to execute at login for a user?

I know this a common refrain of mine in this thread, but I'm gonna reiterate it again.

Can using Arch/Slack/Gentoo teach you more about the guts of Linux? Sure. But, in general, a lot of the problems encountered by users of these distros are created by users of these distros trying to do convoluted things which will almost never be seen in a professional environment, and learning things which won't benefit you (like having xfce execute at install -- which you can do pretty easily with a .bashrc which checks whether you're on a vty and executes startx if you are, assuming your .xinitrc calls xfce and dependencies -- but then what happens when you want a real shell login on a physical console because you broke the nvidia drivers or something)?

Learn the guts by learning how to do real things. Configure services. Containerize them. Learn a programming language to automate things you do a lot. Don't invent your own problems. There are enough of them already.

ErIog
Jul 11, 2001

:nsacloud:
Yeah, getting a cheap VPS somewhere and then configuring it to do poo poo you want a server to do while not worrying too much about breaking poo poo is a much better learning experience than running Linux as a desktop OS.

evol262
Nov 30, 2010
#!/usr/bin/perl
Well, running Linux as a desktop forces you to encounter and get familiar with a lot more stuff. I just don't think that making something complicated even more complicated in a way which doesn't even remotely resemble what people do (even users of tiling WMs don't often spin up X with a logon script) is beneficial.

Fussing with codecs, flash, binary drivers, and other desktop stuff can teach you a lot about searching provided files from a package manager, dkms, normal paths in /usr/{lib,share}, etc

crunk dork
Jan 15, 2006
Yeah I think I was confused about what I was trying to accomplish by doing that. What you said makes more sense. I just added exec startxfce4 to my xinitrc and now when I want a GUI I just use startx, is that a more concise way of doing it?

HPL
Aug 28, 2002

Worst case scenario.
I say get a cheap used computer like an old Core 2 Duo, bump up the RAM, put in an SSD. Install a relatively simple Linux distro, then install virt-manager. After that, create Linux VMs, and laugh maniacally as you burn them to the ground with your novice ham-handedness, only to delete them and start anew.

At least that's what I did.

ErIog
Jul 11, 2001

:nsacloud:

evol262 posted:

Fussing with codecs, flash, binary drivers, and other desktop stuff can teach you a lot about searching provided files from a package manager, dkms, normal paths in /usr/{lib,share}, etc

I was agreeing your first point. Yeah, there's a bunch of general things you can learn from Linux on the desktop, but I found that I picked all that stuff up while fixing configuration issues in my first week and then not a whole lot after that. Whereas running Linux as a server I can always think of dumb new things I could try to do with it, and learn stuff as I go.

HPL posted:

I say get a cheap used computer like an old Core 2 Duo, bump up the RAM, put in an SSD. Install a relatively simple Linux distro, then install virt-manager. After that, create Linux VMs, and laugh maniacally as you burn them to the ground with your novice ham-handedness, only to delete them and start anew.

This is what I did too, but I just used VirtualBox since it's not like the lovely LAMP stacks I was setting up at first needed to be on a real machine.

ErIog fucked around with this message at 05:21 on Feb 1, 2016

IAmKale
Jun 7, 2007

やらないか

Fun Shoe
I switched to Linux on my daily machine because I kept running into Windows-specific issues when installing Python and Node dependencies. It's not as though Linux has been all sunshine and rainbows but still the friction associated with starting new projects has decreased considerably.

It's also helped me become more comfortable navigating the consoles of the various production servers I have to maintain. By practicing on my machine in a practical environment I've gained a confidence that I lacked before when I primarily used Windows.

Getting Mint on my laptop was pretty painless, and while I have had to flatten and reinstall once whole trying out different desktop shells, overall I'm happy with how the transition went. I'm missing a couple programs and features in my XFCE variant of Mint but all in all I'd say that running Linux as a daily driver OS isn't as awful as it used to be.

Death Vomit Wizard
May 8, 2006
Bottom Feeder

HPL posted:

I say get a cheap used computer like an old Core 2 Duo, bump up the RAM, put in an SSD. Install a relatively simple Linux distro, then install virt-manager. After that, create Linux VMs, and laugh maniacally as you burn them to the ground with your novice ham-handedness, only to delete them and start anew.

This. Some things I did are: run a bunch of minimal installs at the same time, assigning 512MB of RAM to each. Network them. Use NFS. Install things like owncloud, wordpress, transmission-daemon, ELK, haproxy, zoneminder (you can turn a bunch of old/broken smart phones into security cameras), musicbrainz server, plex/emby. Learn to use rsnapshot. Use a free dynamic DNS service like https://www.noip.com. Make SSL certificates. (Alternatively, you could pay $2/year for a silly domain name from Namecheap. That would allow you to get a free signed SSL cert from https://www.startssl.com.) Use SSH keys with a passphrase. Play with scp, X forwarding, VNC, FileZilla via "SFTP".

The experience has been invaluable. My new project is to run everything inside one big VM and give each service a docker container. If you don't care about practicing simple networking stuff, this is a much more efficient use of your host machine's resources. It won't be as secure as dividing the services up into separate VMs, but making a separate user for each container to "run as" will help with that.

CaptainSarcastic
Jul 6, 2013



Karthe posted:

Getting Mint on my laptop was pretty painless, and while I have had to flatten and reinstall once whole trying out different desktop shells, overall I'm happy with how the transition went. I'm missing a couple programs and features in my XFCE variant of Mint but all in all I'd say that running Linux as a daily driver OS isn't as awful as it used to be.

I've run dual-boots since the early 2000s, and Linux has been my main daily driver OS for years - I mostly just keep Windows around for gaming. On my main desktop this particular install has been running continuously for years, and lately I've lazily just updated from openSUSE 13.1 to 13.2 to 42.1 rather than doing clean installs, and it still just works. If anything I think that at this point in time I have fewer headaches with Linux as a desktop OS than Windows, with the 1:1 comparison value of dual-boots.

HPL
Aug 28, 2002

Worst case scenario.
Honestly, the biggest thing for me was actually taking a class on Linux where they explained all the nuts and bolts behind the OS. It was great because I could just ask questions and get answers as opposed to googling for an answer, only to find three dead ends and two other solutions that don't work because they've been deprecated or something (I'm looking at you, Fedora). Having an actual curriculum to work with was good in that it covered areas I hadn't really thought about or didn't know about whereas if I were learning on my own, I might not have ever touched this or that topic.

Gucci Loafers
May 20, 2006

Ask yourself, do you really want to talk to pair of really nice gaudy shoes?


Agreed, there's a few free courses on Edx.org that are decent.

Also, Michael Jang's RHCSA/RHEL 7 comes out near the end of February.

HPL
Aug 28, 2002

Worst case scenario.
On another note, what's the best software for a domain controller in Linux in a mixed Windows/Linux environment? I use Windows 2012R2 for a domain controller right now and while it runs very well, I want to be able to get an open source domain controller up and running as a side project when time allows. I've been reading about Samba and FreeIPA, but they seem relatively crude and primitive compared to Windows and Active Directory.

crunk dork
Jan 15, 2006
I knocked out Linux+ like two months ago but it was a lot of really basic command line work and memorizing terminology. (Typical CompTIA poo poo) Definitely left me wanting for more in depth explanations on things. Big reason I'm trying to use it daily more often is learning to code, being able to review, change, and test some code for applications that I actually use will be more inspiring and make me view it as a hobby instead of homework.

Docjowles
Apr 9, 2009

HPL posted:

On another note, what's the best software for a domain controller in Linux in a mixed Windows/Linux environment? I use Windows 2012R2 for a domain controller right now and while it runs very well, I want to be able to get an open source domain controller up and running as a side project when time allows. I've been reading about Samba and FreeIPA, but they seem relatively crude and primitive compared to Windows and Active Directory.

Samba 4. That said, yes, the AD management experience is always going to be nicer using Windows natively.

evol262
Nov 30, 2010
#!/usr/bin/perl

HPL posted:

Honestly, the biggest thing for me was actually taking a class on Linux where they explained all the nuts and bolts behind the OS. It was great because I could just ask questions and get answers as opposed to googling for an answer, only to find three dead ends and two other solutions that don't work because they've been deprecated or something (I'm looking at you, Fedora).
Just FYI, almost every bug filed against Fedora get another bug filed against RHEL. Looking at Bugzilla instead of forums gives a lot of information.


HPL posted:

On another note, what's the best software for a domain controller in Linux in a mixed Windows/Linux environment? I use Windows 2012R2 for a domain controller right now and while it runs very well, I want to be able to get an open source domain controller up and running as a side project when time allows. I've been reading about Samba and FreeIPA, but they seem relatively crude and primitive compared to Windows and Active Directory.

IPA isn't really intended to be a replacement for a lot of the stuff AD does. If you want a domain controller, Samba4 is ok, but you should just use Windows, because you're gonna have to use the AD management console from Windows to do anything meaningful with it anyway.

other people
Jun 27, 2004
Associate Christ
Anyone have any advice for using a 4k screen with Fedora/RHEL7? Setting Gnome's scaling factor to 2 makes most things bearable, but it still feels off somehow...

A few other things I am so far failing with:

1. Setting the DPI. It defaults to 96 (as seen with xdpyinfo). Is setting this to something higher (192) with xrandr the best thing to do? I understand this is what the Chrome Browser reads? I've changed it to 192 and restarted Chome but it still looks the same. Also, the physical size of the screen as reported by EDID is mostly correct (it's the size of the screen + bezel) so shouldn't the DPI as seen by X be more correct automatically?

2. Setting the refresh rate. The monitor supports 3840x2160 @ 60Hz, but xrandr doesn't see it so I get 30Hz:

3840x2160 30.00*+ 30.00 25.00 24.00 29.97 23.98


No luck using a custom modeline for 60Hz:
code:
$ cvt 3840 2160
# 3840x2160 59.98 Hz (CVT 8.29M9) hsync: 134.18 kHz; pclk: 712.75 MHz
Modeline "3840x2160_60.00"  712.75  3840 4160 4576 5312  2160 2163 2168 2237 -hsync +vsync
$ xrandr --newmode  "3840x2160_60.00"  712.75  3840 4160 4576 5312  2160 2163 2168 2237 -hsync +vsync
$ xrandr --addmode HDMI1 "3840x2160_60.00"
$ xrandr --output HDMI1 --mode "3840x2160_60.00"
xrandr: Configure crtc 0 failed

$ xrandr --props
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
HDMI1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 648mm x 369mm
        _MUTTER_PRESENTATION_OUTPUT: 0 
        EDID: 
                00ffffffffffff00361f002801010101
                2219010380412578ee08a5a2574fa228
                0f5054afcf00d100d1c0b300a9c09500
                81818100714004740030f2705a80b058
                8a0088712100001a226f80a070707880
                3020350044711100001e000000ff004d
                53413135303830303030310a000000fc
                004d502d323855484453530a2020017c
                020343f35810050403020716011f1213
                1420151106e1605f5e5d6b6a69230907
                0783010000e3050301e20f716e030c00
                1000383d2000800102030467d85dc401
                78c000565e00a0a0a029503020350088
                712100001e023a801871382d40582c45
                0088712100001e000000000000000000
                000000000000000000000000000000ee
        aspect ratio: Automatic 
                supported: Automatic, 4:3, 16:9
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        audio: auto 
                supported: force-dvi, off, auto, on
   3840x2160     30.00*+  30.00    25.00    24.00    29.97    23.98  
   4096x2160     24.00    23.98  
   1920x2160     59.99  
   2560x1440     59.95  
   1920x1200     59.95  
   1920x1080     60.00    50.00    59.94    24.00    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      59.98  
   1280x1024     75.02    61.00  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      59.97  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    70.07    60.00  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    72.81    60.00    59.94  
   720x400       70.08  
   3840x2160_60.00  59.98  
3. The mouse pointer movement is now a bit... jerky? Is this a side effect of the lower refresh rate or is there something else I can do about this?


The monitor is the "cheapo" 4k one from Monoprice: https://www.monoprice.com/product?c_id=113&cp_id=11307&cs_id=1130703&p_id=13809 .

pseudorandom name
May 6, 2007

Try connecting it using DisplayPort, it (or your GPU) might not support full-res 60Hz over HDMI.

pseudorandom name fucked around with this message at 20:32 on Feb 1, 2016

evol262
Nov 30, 2010
#!/usr/bin/perl

Kaluza-Klein posted:

Anyone have any advice for using a 4k screen with Fedora/RHEL7? Setting Gnome's scaling factor to 2 makes most things bearable, but it still feels off somehow...
To be honest, hidpi doesn't really work that well until F22 (I think, maybe F21).

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
So, uh, GNOME removed the Dark Theme Variant option from their terminal app, because LinuxLinus shed some tears about it?

Combat Pretzel fucked around with this message at 22:59 on Feb 1, 2016

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
No, it's back.

https://git.gnome.org/browse/gnome-terminal/commit/?id=7d5fc0659a0774139fdcb2176230f0810f563af5

Combat Pretzel
Jun 23, 2004

No, seriously... what kurds?!
I suppose, this is in GNOME 3.19 / coming with GNOME 3.20?

HPL
Aug 28, 2002

Worst case scenario.
What's the best site for keeping on top of Linux news? Distrowatch?

BoyBlunder
Sep 17, 2008
I need help with the syntax of a command.

I'd like to auto-detect some network interfaces, and then have it set to a variable. I would like 10Gb/E detected first, if it exists, and if not, 1Gb/E. For some reason, my brain is farting and I can't figure it out:

code:
INTERFACES=`ls -l /sys/class/net | grep 'devices/pci' | awk '{ print $(NF-2) }' | while read IF; do if ethtool $IF | grep -i 10000baseT > /dev/null 2>&1; then echo $IF ; fi; done`
FIRST_INTERFACE=`echo $INTERFACES | awk '{ print $1 }'`
SECOND_INTERFACE=`echo $INTERFACES | awk '{ print $2 }'`

Horse Clocks
Dec 14, 2004


HPL posted:

What's the best site for keeping on top of Linux news? Distrowatch?

I read Phoronix occasionally, nice mix of kernel, gui, and hardware support news.

There's also the lkml, but that can be pretty technical.

feedmegin
Jul 30, 2008

I tend to read phoronix (that one's kinda graphics focussed, mind you) and Linux Weekly News. And theregister; anything really major will end up there anyway.

telcoM
Mar 21, 2009
Fallen Rib

BoyBlunder posted:

I need help with the syntax of a command.

I'd like to auto-detect some network interfaces, and then have it set to a variable. I would like 10Gb/E detected first, if it exists, and if not, 1Gb/E. For some reason, my brain is farting and I can't figure it out:

Your first line will only add 10Gbit interface names to the INTERFACES variable, not the gigabit ones.
My first idea would be:
code:
ls -l /sys/class/net | grep 'devices/pci' | awk '{print $(NF-2)' | while read IF; do
    if ethtool $IF | grep -qi 10000baseT; then
        #<new> = <old> + space + $IF only if old value is non-empty, else just $IF
        FASTIF="${FASTIF:+$FASTIF }$IF"
    else
        #<new> = <old> + space + $IF only if old value is non-empty, else just $IF
        SLOWIF="${SLOWIF:+$SLOWIF }$IF"
    fi
done
# Now FASTIF = space-separated list of 10G interfaces (if any)
# and SLOWIF = space-separated list of slower interfaces (if any)

# Pick the first interface from the fast list if possible, else from the slow list.
# Remove it from the list so it cannot be picked again.
if [ "$FASTIF" != "" ]; then
    FIRST_INTERFACE=$(echo "$FASTIF" | cut -d " " -f 1)
    FASTIF=$(echo "$FASTIF" | cut -d " " -f 2-) 
else
    FIRST_INTERFACE=$(echo "$SLOWIF" | cut -d " " -f 1)
    SLOWIF=$(echo "$SLOWIF" | cut -d " " -f 2-) 
fi

# Pick the second interface the same way.
if [ "$FASTIF" != "" ]; then
    SECOND_INTERFACE=$(echo "$FASTIF" | cut -d " " -f 1)
    FASTIF=$(echo "$FASTIF" | cut -d " " -f 2-)
else
    SECOND_INTERFACE=$(echo "$SLOWIF" | cut -d " " -f 1)
    SLOWIF=$(echo "$SLOWIF" | cut -d " " -f 2-)
fi

# This can be extended to pick as many interfaces as you need.

HPL
Aug 28, 2002

Worst case scenario.

Horse Clocks posted:

I read Phoronix occasionally, nice mix of kernel, gui, and hardware support news.

There's also the lkml, but that can be pretty technical.

Phoronix sounds good. I'm looking more for what's new and cool as opposed to keeping on top of the latest pissing match between Richard Stallman and whoever.

Horse Clocks
Dec 14, 2004


HPL posted:

Phoronix sounds good. I'm looking more for what's new and cool as opposed to keeping on top of the latest pissing match between Richard Stallman and whoever.

There's a lot of noise. But has some good articles every now and then.

Really good to read if you're an idiot who bought a next-gen laptop and is now waiting on hardware support.

MagnumOpus
Dec 7, 2006

Anyone know how logrotate determines "order" for multiple config files in /etc/logrotate.d?

manpage posted:

Any number of config files may be given on the command line. Later config files may override the options given in earlier files, so the order in which the logrotate config files are listed is important.

I'm writing puppet manifests and want to allow for over-rides in other app-specific modules, so I need to make sure that logrotate reads the multiple files "in order".

EDIT: I think I read the manpage incorrectly, and the "order" refers to invoking logrotate from command line. So I guess my real question is "If the same logfile is declared in 2 different conf files in logrotate.d/, which is used?"

MagnumOpus fucked around with this message at 22:00 on Feb 2, 2016

Adbot
ADBOT LOVES YOU

Saukkis
May 16, 2003

Unless I'm on the inside curve pointing straight at oncoming traffic the high beams stay on and I laugh at your puny protest flashes.
I am Most Important Man. Most Important Man in the World.

MagnumOpus posted:

Anyone know how logrotate determines "order" for multiple config files in /etc/logrotate.d?


I'm writing puppet manifests and want to allow for over-rides in other app-specific modules, so I need to make sure that logrotate reads the multiple files "in order".

EDIT: I think I read the manpage incorrectly, and the "order" refers to invoking logrotate from command line. So I guess my real question is "If the same logfile is declared in 2 different conf files in logrotate.d/, which is used?"

I was just going through cron emails at work earlier today and saw quite a few complaints about similar situations. I would probably try avoiding it.

code:
"/etc/cron.daily/logrotate:

error: syslog:1 duplicate log entry for /var/log/messages"

"/etc/cron.daily/logrotate:

error: error running non-shared postrotate script for /var/log/messages
of '/var/log/messages '"

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