Search Amazon.com:
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 $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
«386 »
  • Post
  • Reply
Goon Matchmaker
Oct 23, 2003

I play too much EVE-Online

dolicf posted:

In that case, no. The hosting industry pretty much universally disables it entirely.

We do the same in my shop. SELinux is one of the first things to get turned off on a new install.

Adbot
ADBOT LOVES YOU

angrytech
Jun 26, 2009

by T. Mascis


Goon Matchmaker posted:

We do the same in my shop. SELinux is one of the first things to get turned off on a new install.

Why exactly, do you just not find a benefit to it and want to remove complexity? Or are there actually problems with it?

taqueso
Mar 8, 2004
...


We don't use SELinux here, but I would see only positive things about an applicant that had spent some of their time learning about it. I do agree that you should know it pretty well before it earns a spot on your resume.

Goon Matchmaker
Oct 23, 2003

I play too much EVE-Online

angrytech posted:

Why exactly, do you just not find a benefit to it and want to remove complexity? Or are there actually problems with it?

A lot of software will break or act strangely with it on, especially large enterprise apps. Rather than spend time figuring out what's wrong it's often easier to just disable it.

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

Crush posted:

This is more of the reason why I asked. I am looking at eventually getting a job as a Linux System Administrator at some point in the future and didn't know if servers (more specifically web servers) kept this enabled and if so, how to comply with it while still accomplishing my tasks.

As for ftp, yeah I know it isn't the greatest, but for the time I was just enabling it for local network file transfers. Good to know that sftp and scp are installed by default though.

Let me give you a piece of advice if you're really looking to do this:
Get experience somehow. GO whore yourself out for a nonprofit for a bit, or something. IT'll make a huge difference when you look for a job.

They are great places to learn skills only real experience can teach, and they will be a lot more forgiving of mistakes, since they get you cheap/free.

Crush
Jan 18, 2004
jot bought me this account, I now have to suck him off.

nitrogen posted:

Let me give you a piece of advice if you're really looking to do this:
Get experience somehow. GO whore yourself out for a nonprofit for a bit, or something. IT'll make a huge difference when you look for a job.

They are great places to learn skills only real experience can teach, and they will be a lot more forgiving of mistakes, since they get you cheap/free.

Thanks for the advice. How would I go about looking for places like this though? The only thing that comes to mind is craigslist. Are there any others?

taqueso
Mar 8, 2004
...


I think the usual way is being somebody's nephew/grandson who is "really good with computers".

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

Crush posted:

Thanks for the advice. How would I go about looking for places like this though? The only thing that comes to mind is craigslist. Are there any others?

Ask around. What are you into? Any of those things that you're into have an advocacy group that needs someone?

Good friend of mine built up NORML's web presence here in DFW before it became too much of a time sink for her.
She wanted an excuse to learn drupal, and she's a huge stoner, so...
Back in the early 90's, I set up some network mail and file services for a few local womans' shelters.

You learn a lot of skills working like this; especially skills that they don't teach in school. (How to say no, and when is a big one.)

vikingstrike
Sep 23, 2007

whats happening, captain

Goon Matchmaker posted:

A lot of software will break or act strangely with it on, especially large enterprise apps. Rather than spend time figuring out what's wrong it's often easier to just disable it.

I believe you can also put it in permissive mode and get the same effect.

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



vikingstrike posted:

I believe you can also put it in permissive mode and get the same effect.

You can, but from experience it will still mess stuff up and be a general pain in the rear end.

Misogynist
Jul 14, 2003

hubthumping

spankmeister posted:

You can, but from experience it will still mess stuff up and be a general pain in the rear end.
It's my impression through a bit of SELinux experience that this is literally not possible. Can you clarify what you mean by "mess stuff up?"

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



Misogynist posted:

It's my impression through a bit of SELinux experience that this is literally not possible. Can you clarify what you mean by "mess stuff up?"

Well you see it's because shut up.


Nah, kidding. Messing stuff up where when it's in permissive mode some programs will not work correctly, usually from big software vendors. In my case it was Oracle 10g and clearcase 7.0 where disabling selinux would fix this issue,

Granted, it's generally a problem with the software rather than selinux but still SELinux has few benefits for most users so it's easier to just disable it entirely.

Ashex
Jun 24, 2007

These pipes are cleeeean!!!

Someone tell me how to make this script halt if rsync fails for some reason as apparently it doesn't and it hosed me over something big (site went down, no backups).

code:

#!/bin/bash
SRCDIR="fuckedsite:/home1/fuckedsite/public_html/backups/"
BACKUPDIR="/media/Backup/fuckedsite"

rsync -avzh --remove-source-files --stats --progress --bwlimit=1500 --log-file=/media/Backup/fuckedsite/fuckedsite.log -e "ssh -i /media/Backup/cronny.key" $SRCDIR $BACKUPDIR 2>&1

#Clean up site backups older then 14 days
find $BACKUPDIR/ -maxdepth 1 -mtime +14 -type f -name "*tar.gz" -exec rm -f {} \;
#Clean up database backups older then 7 days
find $BACKUPDIR/database -maxdepth 1 -mtime +14 -type f -name "*sql.gz" -exec rm -f {} \;



if [ $? != 0 ]; then
{
        echo "BACKUP ERROR: problem syncing fuckedsite.org"
        exit 1
} fi

Ashex fucked around with this message at Nov 26, 2011 around 18:57

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



Well, the $? variable contains the exit code of the program that ran immediately before. In your case it's the second find command, which will almost always be successful.

You need to do it immediately after the rsync command. You can also store the exit code in a temporary variable and check for succes later using that variable.

Ashex
Jun 24, 2007

These pipes are cleeeean!!!

spankmeister posted:

Well, the $? variable contains the exit code of the program that ran immediately before. In your case it's the second find command, which will almost always be successful.

You need to do it immediately after the rsync command. You can also store the exit code in a temporary variable and check for succes later using that variable.

Thanks for that, I'm so used to writing VB that I forget that bash is linear.

ExcessBLarg!
Aug 31, 2001


I write shell scripts with "set -e" so that they'll automatically stop/fail on any failed command. Combined with "set -x" ("set -ex") I'll know exactly where it dies.

Zom Aur
Apr 23, 2008

But-I-wonder-what-will-become-of-us.


Wouldn't || exit at the end of the rsync line work too?

bort
Mar 13, 2003



SELinux tips: you really don't need it unless you're putting a server somewhere very public. Check that you have a credible threat or regulatory requirement before you let your paranoia goad you into configuring it on something in production.

There are terrific man pages for getting started configuring a targeted policy. You can then bullet-proof the network service without gimping everything else. man -k _selinux

People hate SELinux for the same reason people hate firewalls while troubleshooting a network issue: security gets in the way and it looks like an operational problem. It can be hard to remember when your app's down and everyone's angry that SELinux is quietly stopping your httpd service from starting.

As suggested above: if you want to learn SELinux, put it in permissive mode and read logs. If you want to get into security, you better get used to doggedly reading logs.

Mak0rz
Aug 2, 2008

THE WHIPPED CREAM GENOCIDE BROUHAHA


Cross-posted from the Ubuntu thread, because this could span any distribution:

I want to install Lubuntu, but the problem is I want to install it on an old MacBook (2,1). Apparently these MacBooks have a weird hardware/firmware hangup that makes them gently caress up every time they try to boot 64-bit software from removable media or something (Google "select CD-ROM boot type" for more information; here's the Launchpad page). The images list on the Ubuntu website carry some modified ISOs that circumvent this problem, but only for Kubuntu and Ubuntu. They work absolutely fine.

Fishing around I discovered that you can extract a normal ISO's contents and repackage it to make it to make it compatible with my machine (here), but the instructions are on a page that doesn't exist anymore. Archive.org just brings me to a broken page. Does anyone know how to do this or have any more information on the problem I'm having?

Shaocaholica
Oct 29, 2002


IF ONLY MY $2300 MONITOR COULD DISPLAY THE REASON THAT I AM LITERALLY UNABLE TO STOP GODDAMN POSTING

I've got this laptop that doesn't seem to like any flavor of linux due to the current graphics drivers I think. It's a Toshiba Satellite 5005 series with Geforce 420 Go graphics. I think linux support for this gpu might have been dropped a few years ago. Haiku OS seems to work fine with some basic 2D acceleration using its vesa driver. It even gets the correct native LCD resolution as well.

I've been trying to boot Xubuntu 11.10 live desktop but it always goes to a white screen. I can hear the disc still seeking and the lights on my wifi card light up as if it were being initialized. It sounds as if its still working fine in the background but the video is hosed.

I had a compaq laptop with very similar specs and the same graphics (I think) that was able to boot ubuntu fine so I think there's something specific to this Toshiba that's causing linux to screw up the graphics.

What should I do? Is there any way to use a generic 'vesa' driver like Haiku does? Is this a lost cause?

edit:

Ok I found this thread on linuxquestions.org

quote:

Boot to "Safe mode" or whatever it is called now
As root, run Xorg -configure
That should generate an /etc/X11/xorg.conf file for you.
Edit that file and change the driver to vesa
Reboot normally. You should have a slow, but working GUI.

10.04 wanted to use nouveau, but it didn't work with my hardware.
I had to blacklist nouveau and install the NVIDIA driver. All is sweet now.

So how do I go about doing that with a live CD?

Shaocaholica fucked around with this message at Nov 28, 2011 around 06:41

text editor
Jan 8, 2007



You can absolutely use "vesa" drivers for your laptop (you will probably have to edit the xrg.conf file)

There are two other nvidia drivers available though, nv (no longer maintained, but available) and nouveau (actively maintained, available for Ubuntu as xserver-xorg-video-nouveau). Supposedly nouveau supports your card, if not you might be able to find an older version of the nv or official driver if you want hardware acceleration (probably a bad idea)

http://nouveau.freedesktop.org/wiki/CodeNames

As far as doing this:

quote:

Boot to "Safe mode" or whatever it is called now
As root, run Xorg -configure
That should generate an /etc/X11/xorg.conf file for you.
Edit that file and change the driver to vesa
Reboot normally. You should have a slow, but working GUI.

10.04 wanted to use nouveau, but it didn't work with my hardware.
I had to blacklist nouveau and install the NVIDIA driver. All is sweet now.

without a live cd though, you can either:
First, you could reboot and select the single-user modes Ubuntu should add


You could also hit CTRL+ALT+F1/F2/F#/F$ to get to a terminal, login from the command lines, and kill the x server, the sloppy/ easy way to cd to /etc/init.d and run `sudo ./gdm stop` (might be gdm3)

Next, go to the /etc/modprobe.d, and either create a new file ending in .conf or add the following lines onto the blacklist one that should be in there

code:
blacklist nouveau
blacklist lbm-nouveau
Then just edit the /etc/X11/xorg.conf file and swap out nvidia/nouveay/nv with vesa


*Sorry if this isn't 100# accurate, I haven't used Ubuntu recently and, thanks to advancements in recent years, had to hand edit z xorg.conf in awhile, and I'm tired as hell right now


edit for more notes:

Drivers that support your card:

Old NV Driver, basic 2d acceleration and higher supported resolutions over vesa
http://xorg.freedesktop.org/wiki/nv

Nouveau - Available from ubuntu repo, supports multiple monitors and high resolution, good 2d acceleration and expiremental 3d acceleration
http://nouveau.freedesktop.org/wiki/

Generic VESA Driver, poo poo acceleration and has a cap on resolution
http://xorg.freedesktop.org/wiki/vesa

Generic VGA - Can do 8 bit color at 320x240!
http://xorg.freedesktop.org/wiki/vga



a;sp here's the wiki page for xorg.conf, if you have any trouble (you shouldnt)
http://www.x.org/archive/X11R7.5/do...org.conf.5.html

text editor fucked around with this message at Nov 28, 2011 around 10:21

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



^^ And if the terminal doesn't work you could try to add "nomodeset" to the kernel boot options.

Shaocaholica
Oct 29, 2002


IF ONLY MY $2300 MONITOR COULD DISPLAY THE REASON THAT I AM LITERALLY UNABLE TO STOP GODDAMN POSTING

Thanks guys. Actually, it ended up being something else. I tried all sorts of kernel args for the live cd. blacklist=nv,nouveau nomodeset vsync=60 vga=346 etc etc

None of them worked. Some combination did get the boot output to render at 1600x1200 but it still killed the gfx when x started.

I decided to give the VGA out on the laptop a try and bingo it worked without any custom boot args. It was auto detecting my external LCD correctly and booted to the desktop in full color and resolution.

I didn't have time to test anymore but I think I'll install using the external display and update the driver to the closed source driver once installed and see what happens when I disconnect the external display.

Lysidas
Jul 26, 2002

John Diefenbaker is a madman who thinks he's John Diefenbaker.


For future reference, you can also use the alternate install CD instead of a live CD -- the text-based installer shouldn't have any graphical problems since it doesn't run X. You can then fix your system in whatever way you need to after it's installed and booting.

Thermopyle
Jul 1, 2003

"That which can be destroyed by the truth should be." Do not flinch from experiences that might destroy your beliefs. The thought you cannot think controls you more than thoughts you speak aloud.


Mak0rz posted:

Cross-posted from the Ubuntu thread, because this could span any distribution:

I want to install Lubuntu, but the problem is I want to install it on an old MacBook (2,1). Apparently these MacBooks have a weird hardware/firmware hangup that makes them gently caress up every time they try to boot 64-bit software from removable media or something (Google "select CD-ROM boot type" for more information; here's the Launchpad page). The images list on the Ubuntu website carry some modified ISOs that circumvent this problem, but only for Kubuntu and Ubuntu. They work absolutely fine.

Fishing around I discovered that you can extract a normal ISO's contents and repackage it to make it to make it compatible with my machine (here), but the instructions are on a page that doesn't exist anymore. Archive.org just brings me to a broken page. Does anyone know how to do this or have any more information on the problem I'm having?

Install regular Ubuntu and then convert to Lubuntu?

http://thameera.wordpress.com/2011/...ing-to-lubuntu/

Bob Morales
Aug 18, 2006

HYPER-THREADING


Mak0rz posted:

I want to install Lubuntu, but the problem is I want to install it on an old MacBook (2,1). Apparently these MacBooks have a weird hardware/firmware hangup that makes them gently caress up every time they try to boot 64-bit software from removable media or something

Can you just boot the 32-bit ISO?

Mak0rz
Aug 2, 2008

THE WHIPPED CREAM GENOCIDE BROUHAHA


Bob Morales posted:

Can you just boot the 32-bit ISO?

Maybe, but I want a 64-bit OS. Doing some more research suggests that this is a problem with the boot discs not knowing what to do with a (U)EFI system (which is what my MacBook uses); I don't know the specifics because it's new to me, but I gather that it's essentially the successor to BIOS.

Once I figured this out, I came across this guide and was planning on following it along until I ran into this step:

ubuntu.com posted:

It is strongly recommended to use a Linux distribution to compile grub2-efi and also that the processor architecture of both the kernel and UEFI firmware match.

I have a 32-bit EFI, but I'm running a 64-bit version of Ubuntu. Will this matter when compiling GRUB?

Thermopyle posted:

Install regular Ubuntu and then convert to Lubuntu?

http://thameera.wordpress.com/2011/...ing-to-lubuntu/

Now this looks like a plan though! Am I able to upgrade to future Lubuntu releases using this? Or will the update gently caress up and bring me back to Ubuntu? I'll give it a shot, thanks!

Bob Morales
Aug 18, 2006

HYPER-THREADING


Mak0rz posted:

Maybe, but I want a 64-bit OS.
How old is it, exactly? If it's one of the first couple models, it'll only accept 3GB of RAM anyway.

Also, Apple hosed almost all the Mini's and Macbooks so that they couldn't load a 64-bit OS for some reason, didn't they? I know the early models can't boot a 64-bit OS but even as the Macbook Pros gained the ability, they locked it out in software or something.

http://www.everymac.com/mac-answers...4-bit-mode.html

Mak0rz
Aug 2, 2008

THE WHIPPED CREAM GENOCIDE BROUHAHA


Bob Morales posted:

How old is it, exactly? If it's one of the first couple models, it'll only accept 3GB of RAM anyway.

I guess would explain why my system is only reporting 3GB of RAM . Why is that happening? I know there's 4GB in here.

Bob Morales posted:

Also, Apple hosed almost all the Mini's and Macbooks so that they couldn't load a 64-bit OS for some reason, didn't they? I know the early models can't boot a 64-bit OS but even as the Macbook Pros gained the ability, they locked it out in software or something.

The custom 64-bit Mac ISO here worked without a hitch.

Bob Morales
Aug 18, 2006

HYPER-THREADING


Mak0rz posted:

I guess would explain why my system is only reporting 3GB of RAM . Why is that happening? I know there's 4GB in here.

Chipset limitation I think.

spankmeister
Jun 15, 2008

TFR 2011: All Brony, all the time.



Apple's hardware is kinda weird and crappy sometimes.

JawnV6
Jul 4, 2004

so hot...



I'm using a USB wireless dongle with drivers through ndiswrapper. When ubuntu boots half the time it sees my wireless network, which it knows the password to, and connects. Groovy. But occasionally it'll see a neighbor's wireless, which it has never connected to and doesn't know a password for, and prompt me for the password to that. How do I get it to wait the microseconds it takes to see my wireless network and not sit there dumbly waiting for another password?

Zom Aur
Apr 23, 2008

But-I-wonder-what-will-become-of-us.


JawnV6 posted:

I'm using a USB wireless dongle with drivers through ndiswrapper. When ubuntu boots half the time it sees my wireless network, which it knows the password to, and connects. Groovy. But occasionally it'll see a neighbor's wireless, which it has never connected to and doesn't know a password for, and prompt me for the password to that. How do I get it to wait the microseconds it takes to see my wireless network and not sit there dumbly waiting for another password?
Linux usually doesn't try to connect to random networks. Maybe you tried connecting to it by mistake. Either way, if you go to the network settings, you should see a profile for you neighbours network. Delete it, and it should never try connecting to it again.

deong
Jun 13, 2001


durp; moved ot the ubuntu thread.

Schatten
Jul 7, 2002

Das ist nicht meine
schnellen Rennwagen

Trying to test out various four port NICs, however, my testing is unsuccessful.

I'm using udpcast (udp-sender/udp-receiver) to broadcast traffic to eth1 from eth0, and vice versa. Doesn't matter the configuration, if they are all set to internal with loopback cables, or through a switch, it all seems to work. All the traffic is sending from each eth port, and receiving just fine. Except when... I unplug one of the cables. The connections are still alive. If I remove all the cables, the connections are still alive and going just fine.

It appears the NICs I'm using are a bit too intelligent and send traffic to itself on the card. Is there any way around this? Or is there a better way of testing the ports?

I would set up two systems, but this is a prototype system with an off the shelf realtek, and various intels.

Mak0rz
Aug 2, 2008

THE WHIPPED CREAM GENOCIDE BROUHAHA


Uh, so I a game hanged my system in Mint 12 so I hit ctrl+alt+backspace to kill it. Brought me back to the login screen as expected, but now the login screen doesn't have a wallpaper (just a black screen) and over half of my window themes are gone.

What the gently caress happened and how do I get this back?

EDIT: Also the menu quicklist (on the left side) has completely different items.

Mak0rz fucked around with this message at Nov 30, 2011 around 16:57

JawnV6
Jul 4, 2004

so hot...



Zom Aur posted:

Linux usually doesn't try to connect to random networks. Maybe you tried connecting to it by mistake. Either way, if you go to the network settings, you should see a profile for you neighbours network. Delete it, and it should never try connecting to it again.

No, it's not just connecting to one particular network, it's a random pick. Whichever it sees first I'd imagine. But thank for assuming I'm incompetent and lying about it!

Underflow
Apr 4, 2008

EGOMET MIHI IGNOSCO

JawnV6 posted:

No, it's not just connecting to one particular network, it's a random pick. Whichever it sees first I'd imagine. But thank for assuming I'm incompetent and lying about it!

Can you initialise it earlier? I had endless trouble with a USB wireless dongle until I added just a minimum of iwconfig lines to rc.local (essid/mode/ap/rate/key).

Bob Morales
Aug 18, 2006

HYPER-THREADING


JawnV6 posted:

I'm using a USB wireless dongle with drivers through ndiswrapper. When ubuntu boots half the time it sees my wireless network, which it knows the password to, and connects. Groovy. But occasionally it'll see a neighbor's wireless, which it has never connected to and doesn't know a password for, and prompt me for the password to that. How do I get it to wait the microseconds it takes to see my wireless network and not sit there dumbly waiting for another password?

Are you using network manager? Is there a 'only connect to preferred networks' box you can check?

Adbot
ADBOT LOVES YOU

Zom Aur
Apr 23, 2008

But-I-wonder-what-will-become-of-us.


JawnV6 posted:

No, it's not just connecting to one particular network, it's a random pick. Whichever it sees first I'd imagine. But thank for assuming I'm incompetent and lying about it!
Oh very well then, I'll just start assuming that the system has developed a habit of connecting to random wireless networks by itself. Instead of, you know, doing the sane thing and assuming that someone made a mistake.

No, I wasn't assuming you were incompetent or lying about it, but I've never seen or heard of a behaviour where it connects to random wireless networks either. Never. So unless you're using some kind of unusual software to connect to your network, there's probably (yes, probably, not definitely) something else that's wrong here.

So, my guesses are that either you've discovered a bug, or you've configured something wrong. My first guess would be the latter, though the former is also a very valid possibility. There's also the option that this is a feature of whatever software you use (networkmanager, wicd, connman etc.) that I haven't encountered before.

So, again I ask, did you check your network profiles? That'd be the first step to ruling out a misconfiguration.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply
«386 »