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
Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki

Martytoof posted:

A bit of a branch off, but has anyone jumped into AIX from a mainly Linux background? What did you find was most difficult during the adaptation? Was there anything about AIX that exceeded your expectations? I'm looking to expand my horizons beyond Linux to AIX for .. reasons, and I'm debating picking up a little lab Power5 to play with. Just curious what others' experiences were.
.
Yes, though not by choice, and I didn't deal with a lot of the AIX-specific virtualization stuff, which seems to be one of its main selling points. Most of the work figuring out the operating requirements and processes for our software had already been done for me also.

My experience was that the userland tools were generally much worse and more annoying to work with, since IBM has focused on keeping compatibility with old Unix apps, and as such everything still works like it did in the 80s. ksh in vi mode is kind of a dick even if you're used to vi. That said, it's not too different (compared to say, VMS) from Linux, and if you're capable of figuring out the differences between different Linux distributions or Linux and BSD you can probably do the same for AIX without much trouble if you're not getting deep into the differences in kernel architecture or other low-level stuff, which I haven't worked with but is probably very different.

IBM has excellent docs too, which makes things much easier.

Adbot
ADBOT LOVES YOU

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

annapacketstormaya posted:

.
Yes, though not by choice, and I didn't deal with a lot of the AIX-specific virtualization stuff, which seems to be one of its main selling points. Most of the work figuring out the operating requirements and processes for our software had already been done for me also.
PowerVM is going away, and IBM is looking for Linux on POWER for their customers.

AIX is a dead skill. Don't bother. This isn't a "Linux fanboy" argument. I really liked Solaris and AIX 10 years ago, but AIX has nothing substantiative to offer now. Some of the PowerVM stuff is neat, but see above.

reading posted:

I can't change the new home folder with chown to be my username:username (uid and gid) because it isn't a valid choice. Looking at /etc/passwd, my username isn't included in the list, which I'm sure is because I'm using a liveboot cd. Right now it's root:root which I assume will screw things up when I try to reboot and login as myself.

Yes, you can . chowning to root is stupid.

ls -ln /yourhomedir

Look at the uid and gid.

chown uid:gid...

I could chown everything to 57341 if I wanted to. It doesn't have to be in passed to work, or NFS administrators would have a huge mess on their hands

Thermopyle posted:

edit: I guess this is more of a vmware player issue than a linux issue since if I switch the vmware network adapter to NAT it works, but as soon as I switch it back to bridged it stops working...

Bridging not in promiscuous? Windows firewall on and blocking it?

Gucci Loafers
May 20, 2006

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


Why is AIX going away?

Cidrick
Jun 10, 2001

Praise the siamese

Tab8715 posted:

Why is AIX going away?

Cost, mostly. I've seen at least two large companies begin dumping AIX in favor of Linux for enterprise applications, mostly because the pool of talent for developers is larger and Linux is much, much cheaper to support than AIX (especially on POWER hardware). Support contracts with IBM are stupidly expensive.

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

Tab8715 posted:

Why is AIX going away?

Not going away, just a dead skill. Why learn something with diminishing market share and a producer more interested in selling consulting (on any OS, not just AIX?

PowerVM is a different story

some kinda jackal
Feb 25, 2003

 
 
The reason I brought up AIX was that I could possibly be put in a position to touch some AIX assets in the near future so I was hoping to get a bit of a leg up. Dying skillset perhaps, but I'm also the guy teaching himself z/OS so I'm picking the dying-est skillsets to bone up on :q:

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

Martytoof posted:

The reason I brought up AIX was that I could possibly be put in a position to touch some AIX assets in the near future so I was hoping to get a bit of a leg up. Dying skillset perhaps, but I'm also the guy teaching himself z/OS so I'm picking the dying-est skillsets to bone up on :q:

It's a commercial UNIX that actually has sane packaging. Get used to sysv coreutils. Use smit. Love smit. (smit will actually show you what commands it ran in its log, which can be invaluable for learning odd AIX bits).

There are some odd commands for disk management et al. Google's your friend if you need these things

RFC2324
Jun 7, 2012

http 418

reading posted:

I can't change the new home folder with chown to be my username:username (uid and gid) because it isn't a valid choice. Looking at /etc/passwd, my username isn't included in the list, which I'm sure is because I'm using a liveboot cd. Right now it's root:root which I assume will screw things up when I try to reboot and login as myself.

Don't use the username or group name, use the numerical identifiers instead.

example, assuming your user number is 1001 and the group number for your user is 501(common defaults for an only user)
code:
chown 1001:501 <username here>
to check this info, assuming you mounted your filesystem at /mnt, you would 'cat /mnt/etc/passwd' and 'cat /mnt/etc/group'

reading
Jul 27, 2013

RFC2324 posted:

Don't use the username or group name, use the numerical identifiers instead.

example, assuming your user number is 1001 and the group number for your user is 501(common defaults for an only user)
code:
chown 1001:501 <username here>
to check this info, assuming you mounted your filesystem at /mnt, you would 'cat /mnt/etc/passwd' and 'cat /mnt/etc/group'

I was able to log in by deleting the old .Xauthority file in my home dir, and once I logged in as myself I chowned everything back to username:username. Thanks for the help everyone.

Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki

Cidrick posted:

Cost, mostly. I've seen at least two large companies begin dumping AIX in favor of Linux for enterprise applications, mostly because the pool of talent for developers is larger and Linux is much, much cheaper to support than AIX (especially on POWER hardware). Support contracts with IBM are stupidly expensive.

I guarantee you there will be at least a few accounts that cling onto their AIX installs until the end of time and continue paying out the rear end for extended life support contracts because they can never make changes to production ever. There are places that still have their IBM mainframes runnning, so why not AIX?

captkirk
Feb 5, 2010

annapacketstormaya posted:

I guarantee you there will be at least a few accounts that cling onto their AIX installs until the end of time and continue paying out the rear end for extended life support contracts because they can never make changes to production ever. There are places that still have their IBM mainframes runnning, so why not AIX?

AIX is still pretty prevalent in healthcare IT, IIRC.

Cidrick
Jun 10, 2001

Praise the siamese

annapacketstormaya posted:

I guarantee you there will be at least a few accounts that cling onto their AIX installs until the end of time and continue paying out the rear end for extended life support contracts because they can never make changes to production ever. There are places that still have their IBM mainframes runnning, so why not AIX?

Sure, I don't disagree. But my point is that the talent pool for AIX is shrinking. How many existing enterprises have you heard of moving *to* AIX, or new shops deciding "Let's run AIX instead of Linux"? Every instance of it I've seen in the wild has been running on AIX for a very long time, and they're comfortable with it and like the stability of it, and that's their call.

For what it's worth, I think AIX is a very stable and reliable OS. I just don't think it's a platform worth learning unless you have a pretty good reason, like - oh poo poo, we merged with another company and firing all their AIX guys, and now I have to support it.

Cidrick
Jun 10, 2001

Praise the siamese

captkirk posted:

AIX is still pretty prevalent in healthcare IT, IIRC.

I was in an AIX workshop once where the instructor bragged about how the FAA (or at least part of it) was still running AIX 3.1 because it was rock solid and never went down. At first I was baffled as to who at the FAA hadn't retired that could support a (then) 22-year-old operating system, but then I realized that IBM was supporting it all so they just brought in whomever they needed.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Cidrick posted:

Sure, I don't disagree. But my point is that the talent pool for AIX is shrinking. How many existing enterprises have you heard of moving *to* AIX, or new shops deciding "Let's run AIX instead of Linux"? Every instance of it I've seen in the wild has been running on AIX for a very long time, and they're comfortable with it and like the stability of it, and that's their call.

For what it's worth, I think AIX is a very stable and reliable OS. I just don't think it's a platform worth learning unless you have a pretty good reason, like - oh poo poo, we merged with another company and firing all their AIX guys, and now I have to support it.
AIX is basically the OS that shops will run a certain subset of IBM software on. I wouldn't dream of running Tivoli Storage Manager on anything else, for example, even though I wouldn't consider that a legacy system.

The corollary, of course, is that it's useless unless you plan on running that specific software.

Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki

captkirk posted:

AIX is still pretty prevalent in healthcare IT, IIRC.

It is. Guess why I worked with it?

Cidrick posted:

Sure, I don't disagree. But my point is that the talent pool for AIX is shrinking. How many existing enterprises have you heard of moving *to* AIX, or new shops deciding "Let's run AIX instead of Linux"? Every instance of it I've seen in the wild has been running on AIX for a very long time, and they're comfortable with it and like the stability of it, and that's their call.

This is also why I ran away screaming from it as soon as I could. More because they were using AIX as a platform to run Intersystems Cache, but still.

To their credit, they were making a fairly large push to try and move forward to VMWare/RedHat as their chosen platform.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
Bumping this one again...is this how it's normally done?

fletcher posted:

I need multiple services to have access to the same SSL key, should I create a new group called 'ssl' or something for that and add the service users to it?

some kinda jackal
Feb 25, 2003

 
 

Cidrick posted:

Sure, I don't disagree. But my point is that the talent pool for AIX is shrinking.

I think this is as good a reason to at least be familiar with it as any. With IBM moving to embrace z/Linux on big iron I think the writing is on the wall, but it can never hurt to become familiar with the tool. I may actually end up working on it so I have a somewhat legit reason to look into it, but if I were a jack of all trades UNIX guy (and I was) then it would be tempting just to put that notch in my bedpost :)

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
I know someone who posts here occasionally that sometimes takes a run at puppetizing AIX. It usually doesn't go very well.

telcoM
Mar 21, 2009
Fallen Rib

fletcher posted:

I need multiple services to have access to the same SSL key, should I create a new group called 'ssl' or something for that and add the service users to it?

That is a valid and very sensible way to do it.

I would expect most/all service processes to read their keys and other configuration data before any security precautions like shedding any "extra" group memberships, so if that solution does not work with some service, I think it should be considered a minor bug in the service.

Of course, you might want to make some sort of a note somewhere, saying something like "this SSL certificate/key is used by services X, Y and Z. When it is replaced, remember to test them all afterwards."

Roargasm
Oct 21, 2010

Hate to sound sleazy
But tease me
I don't want it if it's that easy

Misogynist posted:

For whatever it's worth, we found Node 0.10.33 to be an extremely problematic release. You'll probably have much better luck with 0.10.35. But we'll probably be better at helping you with your specific problem if you let us know what that problem is, rather than making us guess. :)

Solved but I was getting this error:

code:
Error: /.../node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
   ...
etc

I'm still not totally clear on what's happening when building node fibers/installing packages but that's where my problem was. In this case, bcrypt was throwing errors when I ran a meteor application with node bundle/main.js. I was building on homebrew and deploying to Debian Wheezy, and the solution was to manually install bcrypt and copy it into bundle/programs/server as it looks like the binary isn't cross compatible (thanks stackoverflow). It happened with a few other packages when I deployed TelescopeJS so I just started building the project tarballs on Linux and I've been fine. Frustrating though

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

Roargasm posted:

Solved but I was getting this error:

code:
Error: /.../node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
   ...
etc

I'm still not totally clear on what's happening when building node fibers/installing packages but that's where my problem was. In this case, bcrypt was throwing errors when I ran a meteor application with node bundle/main.js. I was building on homebrew and deploying to Debian Wheezy, and the solution was to manually install bcrypt and copy it into bundle/programs/server as it looks like the binary isn't cross compatible (thanks stackoverflow). It happened with a few other packages when I deployed TelescopeJS so I just started building the project tarballs on Linux and I've been fine. Frustrating though

Are you saying that OSX and Linux aren't binary compatible? Why is this a surprise? Build environment should match production. OSX is not a substitute for Linux. Homebrew is general crap

Dr. Arbitrary
Mar 15, 2006

Bleak Gremlin
I'm trying to get logstash working on Fedora 21 and I'm having no luck at all.

Following this guide:

http://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash

When I do java -version I get
openjdk version "1.8.0_31"

I was able to download the file with curl and unpack it.

When I tried to run it with the -e 'input....

All I get is a blank prompt that doesn't echo like I expected.

How do I even start troubleshooting? Am I out of luck until I have a better understanding of how Linux actually works?

Edit:

I'M AN IDIOT

So, it turns out that the problem is that logstash takes a minute to get started. I'd been typing some test commands, getting nothing and then using Ctrl-C

While making this post, all the output I expected popped up.

Dr. Arbitrary fucked around with this message at 19:28 on Feb 12, 2015

jre
Sep 2, 2011

To the cloud ?



Dr. Arbitrary posted:

I'm trying to get logstash working on Fedora 21 and I'm having no luck at all.

Following this guide:

http://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash

When I do java -version I get
openjdk version "1.8.0_31"

I was able to download the file with curl and unpack it.

When I tried to run it with the -e 'input....

All I get is a blank prompt that doesn't echo like I expected.

How do I even start troubleshooting? Am I out of luck until I have a better understanding of how Linux actually works?



Logstash can take a while to start up, have you tried waiting 60s , then typing stuff at the command line to see if it echos json back at you ?

edit: yep.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Dr. Arbitrary posted:

I'm trying to get logstash working on Fedora 21 and I'm having no luck at all.

Following this guide:

http://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash

When I do java -version I get
openjdk version "1.8.0_31"

I was able to download the file with curl and unpack it.

When I tried to run it with the -e 'input....

All I get is a blank prompt that doesn't echo like I expected.

How do I even start troubleshooting? Am I out of luck until I have a better understanding of how Linux actually works?

Edit:

I'M AN IDIOT

So, it turns out that the problem is that logstash takes a minute to get started. I'd been typing some test commands, getting nothing and then using Ctrl-C

While making this post, all the output I expected popped up.
In general, you should assume that any Java service is going to take about 60 seconds to start doing anything at all.

RFC2324
Jun 7, 2012

http 418

Misogynist posted:

In general, you should assume that any Java service is going to take about 60 seconds to start doing anything at all.

But how long do you wait for it to start working well?

fatherdog
Feb 16, 2005

RFC2324 posted:

But how long do you wait for it to start working well?

20 years and counting.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I've got a bash script that runs some php scripts (that I didn't write), sleeps for 5 minutes and then loops and runs them again, forever. These php scripts are poo poo from someone else, but I don't want to spend ages rewriting them. By "these php scripts are poo poo" I mean that for whatever reason they freeze up a couple times a day which means I've got to keep checking on them.

Is there an easy way to check for any console output and if it hasn't changed in awhile kill my little bash script and run it again?

I mean, I could rewrite it in Python and I could do it there easy as pie, but I'm lazy and thought I'd ask if there was some cool linux way of doing this...

ewe2
Jul 1, 2009

Martytoof posted:

I think this is as good a reason to at least be familiar with it as any. With IBM moving to embrace z/Linux on big iron I think the writing is on the wall, but it can never hurt to become familiar with the tool. I may actually end up working on it so I have a somewhat legit reason to look into it, but if I were a jack of all trades UNIX guy (and I was) then it would be tempting just to put that notch in my bedpost :)

If you can find one, an older version of the O'Reilly Essential System Administration by AEleen Frisch dealt with AIX and even IRIX, I think it was 2nd Edition, but 3rd edition still has AIX.

Powered Descent
Jul 13, 2008

We haven't had that spirit here since 1969.

Thermopyle posted:

I've got a bash script that runs some php scripts (that I didn't write), sleeps for 5 minutes and then loops and runs them again, forever. These php scripts are poo poo from someone else, but I don't want to spend ages rewriting them. By "these php scripts are poo poo" I mean that for whatever reason they freeze up a couple times a day which means I've got to keep checking on them.

Is there an easy way to check for any console output and if it hasn't changed in awhile kill my little bash script and run it again?

I mean, I could rewrite it in Python and I could do it there easy as pie, but I'm lazy and thought I'd ask if there was some cool linux way of doing this...

A quick and dirty way would be to redirect the script's output to a file. Then every so often (via a cron job) have a simple "caretaker" script look at the size of that file and store it. If the size of the output file hasn't changed by the next time the caretaker is run, restart your original script.

Powered Descent fucked around with this message at 07:07 on Feb 13, 2015

minato
Jun 7, 2004

cutty cain't hang, say 7-up.
Taco Defender
If you're on a system with systemd, use the WatchdogSec feature in conjunction with a watchdog service.

From the systemd docs:

quote:

WatchdogSec=

Configures the watchdog timeout for a service. The watchdog is activated when the start-up is completed. The service must call sd_notify(3) regularly with "WATCHDOG=1" (i.e. the "keep-alive ping"). If the time between two such calls is larger than the configured time, then the service is placed in a failed state and it will be terminated with SIGABRT. By setting Restart= to on-failure or always, the service will be automatically restarted. The time configured here will be passed to the executed service process in the WATCHDOG_USEC= environment variable. This allows daemons to automatically enable the keep-alive pinging logic if watchdog support is enabled for the service. If this option is used, NotifyAccess= (see below) should be set to open access to the notification socket provided by systemd. If NotifyAccess= is not set, it will be implicitly set to main. Defaults to 0, which disables this feature.
Run your janky scripts like so:

WatchdogSec=<some # of seconds>
ExecStart=/bin/my/janky_script.php | tee /mylogfile | watchdog
Restart=always

Where watchdog is a little program or script you'll have to write that waits for input on stdin and calls sd_notify(0, "WATCHDOG=1") when it receives anything. If nothing arrives within <some # of seconds>, systemd will assume the script is dead and restart it.

covener
Jan 10, 2004

You know, for kids!

Thermopyle posted:

I've got a bash script that runs some php scripts (that I didn't write), sleeps for 5 minutes and then loops and runs them again, forever. These php scripts are poo poo from someone else, but I don't want to spend ages rewriting them. By "these php scripts are poo poo" I mean that for whatever reason they freeze up a couple times a day which means I've got to keep checking on them.

Is there an easy way to check for any console output and if it hasn't changed in awhile kill my little bash script and run it again?

I mean, I could rewrite it in Python and I could do it there easy as pie, but I'm lazy and thought I'd ask if there was some cool linux way of doing this...

There is a little "timeout" utility in coreutils that runs the program you pass to it, and sends it a SIGTERM after a specified time.

Dr. Arbitrary
Mar 15, 2006

Bleak Gremlin
I'm trying to install the Gnome desktop on Fedora 21 server using VMware workstation.

It hangs on starting Gnome.

I was able to figure out how to get into the console and was able to type:
sudo systemctl status gdm

I don't see anything useful looking other than "Failed to start GNOME Display Manager"

On a possibly related note, I haven't been able to figure out how to install VMware tools.

Any ideas on how I can start fighting this problem?

FlapYoJacks
Feb 12, 2009

Dr. Arbitrary posted:

I'm trying to install the Gnome desktop on Fedora 21 server using VMware workstation.

It hangs on starting Gnome.

I was able to figure out how to get into the console and was able to type:
sudo systemctl status gdm

I don't see anything useful looking other than "Failed to start GNOME Display Manager"

On a possibly related note, I haven't been able to figure out how to install VMware tools.

Any ideas on how I can start fighting this problem?

I guess my first question is: Is there any reason you are using Fedora 21 Server instead of Fedora 21 workstation?

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

Dr. Arbitrary posted:

I'm trying to install the Gnome desktop on Fedora 21 server using VMware workstation.

It hangs on starting Gnome.

I was able to figure out how to get into the console and was able to type:
sudo systemctl status gdm

I don't see anything useful looking other than "Failed to start GNOME Display Manager"

On a possibly related note, I haven't been able to figure out how to install VMware tools.

Any ideas on how I can start fighting this problem?

It's probably lack of 3d accel.

Tell it to install the VMware tools.

Then type "mount" and look for the CDROM. If it isn't mounted, mount it somewhere "mount /dev/cdrom /some/path"

yum -y groupinstall (or dnf -y groupinstall) "Development Tools"
yum -y install perl

You need kernel-header, kernel-devel, gcc, and a few others to build the extensions.

cd /path/to/cd/mountpoint

Find the "VMwareTools" tarball (I think this is still there) and move it to /tmp.

Extract it and ./vmware-install.pl

It'll build and install the kernel modules.

Alternatively, "yum -y install open-vm-tools", which does much of the same stuff, I think.

Dr. Arbitrary
Mar 15, 2006

Bleak Gremlin

ratbert90 posted:

I guess my first question is: Is there any reason you are using Fedora 21 Server instead of Fedora 21 workstation?

This is all in a lab environment so I'm intentionally doing things in ways that are not convenient.

My current "goal" is to set up an ELK stack that does anything, even if it's just counting the letter frequency distribution of my log files.

telcoM
Mar 21, 2009
Fallen Rib

Dr. Arbitrary posted:

It hangs on starting Gnome.

I was able to figure out how to get into the console and was able to type:
sudo systemctl status gdm

I don't see anything useful looking other than "Failed to start GNOME Display Manager"

Looks like the GNOME Display Manager is installed but not working, or it gives up after failing to start the X server (=the cornerstone of your GUI environment).

Look into the log files. In particular, /var/log/gdm.log and/or /var/log/Xorg.0.log should be helpful.

Dr. Arbitrary
Mar 15, 2006

Bleak Gremlin

evol262 posted:

Extract it and ./vmware-install.pl

It'll build and install the kernel modules.

I'm getting stuck here. It says
sudo: unable to execute ./vmware-install.pl: Permission denied

Gucci Loafers
May 20, 2006

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


Dr. Arbitrary posted:

I'm getting stuck here. It says
sudo: unable to execute ./vmware-install.pl: Permission denied

You have insufficient permission to install, type sudo <scriptname>

Longinus00
Dec 29, 2005
Ur-Quan

Dr. Arbitrary posted:

I'm getting stuck here. It says
sudo: unable to execute ./vmware-install.pl: Permission denied

Is the script located somewhere mounted noexec?

Adbot
ADBOT LOVES YOU

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

Dr. Arbitrary posted:

I'm getting stuck here. It says
sudo: unable to execute ./vmware-install.pl: Permission denied

"sudo perl vmware-install.pl"

It's probably not chmod +x

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