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
dont skimp on the shrimp
Apr 23, 2008

:coffee:

FISHMANPET posted:

I'm talking about the comparison to bootcamp. The way bootcamp works is if you leave it the gently caress alone it boots something without asking you any questions. If you hold down a key while it boots, it brings you to the bootcamp menu where you choose what to boot into.
Some BIOSes doesn't like it when you start the computer while holding down a key.

But whatever, he asked for that or something similar, and that's what I thought of. Yeah, it's not exactly the same, just rather similar.

Adbot
ADBOT LOVES YOU

NecroBob
Jul 29, 2003

Keito posted:


Happy to hear that, bro. :hfive:

I've got everything set up to where I can use it like I normally do, but I've been trying since yesterday to get a wibox set up on the bottom of the screen that has a list of things that I can click on and run, like a text-only quicklaunch bar.

Like so:
code:
chrome vlc thunar term ssh
and when you click on one of the words, it runs whatever program.

I got the following code to sort of work, but it uses an image, not text:
code:
launcher1 = awful.widget.launcher({ image = image(beautiful.awesome_icon),
                                    command = "roxterm" })
and "text" instead of "image" with a string just makes the whole program not load.


I've been scouring the few sites I could find on awesome configs, but I can't find anything like this. All the widget libraries I could find focus on making CPU/RAM/whatever meters and graphs which I don't really need.

Any ideas where I could look or what config would work?

NecroBob fucked around with this message at 21:35 on Jul 7, 2010

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

It's hot. At least for the mid-west. 95 degrees. Anyway, my wireless keeps going in and out.

What should I check to see if it's my computer/wireless adapter, or my router?

spiritual bypass
Feb 19, 2008

Grimey Drawer
Can you test with another computer?

FloydianOne
May 13, 2006

Thanks for everybody's help with my RHEL5 GPT 2.5 TB issues. Client insists on keeping all disks in a single RAID 6 with a hot spare. Probably will just tell them to add more disks to split the virtual disk and partitions up.

FloydianOne fucked around with this message at 05:18 on Jul 8, 2010

JHVH-1
Jun 28, 2002

FloydianOne posted:

Thanks for everybody's help with my RHEL5 GPT 2.5 TB issues. Client insists on keeping all disks in a single RAID 6 with a hot spare. Probably will just tell them to add more disks to split the virtual disk and partitions up.

If you create two volumes I think they both could be RAID-6 spread across the disk and would have the same protection.

Another way around it would be to manually partition and do the install without the bootloader and then add grub2 by hand. But that could get tricky if you want to keep up to date and use kernel packages.

Really you just need like 100MB /boot volume that you can put grub on if you want to use the one that comes with it. You could do the install and use a USB device to keep the boot loader on, and then after the server is up and running upgrade to grub2 and put that on the GPT disk.

Its tricky, when we first ran into this issue it took us some tinkering to find ways around it. At first we didn't even know why it would fail during the install.

Hughmoris
Apr 21, 2007
Let's go to the abyss!
To follow up on my question earlier about SSH and my non-existent Linux skills...

What are a few things I can do to minimize any risks when I use SSH? I've disabled root access and I've tried to look at some guides but the tech speak is a bit over my head. The only thing I want to use SSH for is to create/move files around on my media server (Linux Mint 8), using my phone or my laptop if I'm away from the house. I can already connect using the phone or laptop, I just don't want it to be an easy target to get hacked. I am behind a router if that helps.

*I read the tip about forwarding port 22 but someone said thats opening a can of worms. How so?

spiritual bypass
Feb 19, 2008

Grimey Drawer
Get yourself a decent password and don't worry about it. Your porn server is not a target that anyone is looking for.

SynVisions
Jun 29, 2003

At the end of the day only major gain from migrating the SSH port is less static in your logs from automated scripts trying to break in.

If you're not even looking at your logs then it's not really a concern.

Hughmoris
Apr 21, 2007
Let's go to the abyss!
Good enough for me, thank you.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Use a firewall or hosts.deny to block IP ranges from China, India, Eastern Europe, etc. You could also allow only certain IP addresses to connect.

Disable root logins, and only allow your specific login

Disable password logins, only allow logins via key.

JHVH-1
Jun 28, 2002

FloydianOne posted:

Thanks for everybody's help with my RHEL5 GPT 2.5 TB issues. Client insists on keeping all disks in a single RAID 6 with a hot spare. Probably will just tell them to add more disks to split the virtual disk and partitions up.

As an additional note. We just got some 510 models in with 8 x 2TB disk I believe. The customer adamantly wants RAID-10 but you can't even change the size of RAID-10 to make two VDs. It only works on RAID 0, 5, and 6.

Now we have to find out from the client how we will work around this. The CentOS 5.5 installer won't even let you install if /boot is on GPT. I was hoping we could put grub on a usb stick and then upgrade it later.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

JHVH-1 posted:

As an additional note. We just got some 510 models in with 8 x 2TB disk I believe. The customer adamantly wants RAID-10 but you can't even change the size of RAID-10 to make two VDs. It only works on RAID 0, 5, and 6.

When I configure one on Dell's site, it bitches every time I go over 3.5TB total disks.

Also, aren't the 2TB drives all 7200RPM SATA, and wouldn't they get murdered by smaller, 15K SAS drives?

I understand that access speeds may not be the top priority in all storage situations. But thanks to my boss, we have a 'company policy' that says no servers can have disk drives < 10,000 RPM

edit: why are you letting the customer specify RAID-levels? :bang:

JHVH-1
Jun 28, 2002
We do web hosting with custom ordered servers and they are very picky. They are also doing enough traffic that it is measured in Gbps, and have a ton of machines so we have to keep them happy.

We tried software raid and other things and they weren't happy with that. So they went and ordered brand new machines for this customer who demanded RAID-10 because they want performance, redundancy and storage space.

Dell put in some western digital drives, they actually might be 1TB not 2TB. The labels don't mention the RPMs either.

If they were just web servers we go with SAS sometimes for speed, but some sites need to store tons of files.

Hughmoris
Apr 21, 2007
Let's go to the abyss!
When I type in the WHO command, why is it displaying myself 3 times?

code:
blah     tty7         2010-07-08 12:46 (:0)
blah     pts/0        2010-07-08 21:31 (:0.0)
blah     pts/1        2010-07-08 21:07 (:0.0)

ToxicFrog
Apr 26, 2008


tty7 is your main login. pts/0 and pts/1 are login shells you have open, probably gnome-terminals or similar.

enotnert
Jun 10, 2005

Only women bleed

Hughmoris posted:

When I type in the WHO command, why is it displaying myself 3 times?

code:
blah     tty7         2010-07-08 12:46 (:0)
blah     pts/0        2010-07-08 21:31 (:0.0)
blah     pts/1        2010-07-08 21:07 (:0.0)

Cause you have 3 sessions open, 1 is the X session running (tty7) and the other two are graphical X terms (whatever terminal you use) in that session.

For reference, I am running on X, and opened two terminals then executed a who just to show you.

code:
enotnert@mini:~$ who
enotnert tty7         2010-07-08 17:36 (:0)
enotnert pts/0        2010-07-08 17:52 (:0.0)
enotnert pts/1        2010-07-08 23:02 (:0.0)

Hughmoris
Apr 21, 2007
Let's go to the abyss!
Ok, that makes sense. Thank you.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Hughmoris posted:

Ok, that makes sense. Thank you.

Try the w command as well, it gives you more detail as to what the user is doing.

bob@tera:~$ who
bob ttyp0 Jul 1 06:59 (ip address)
bob ttyp3 Jul 9 06:53 (ip address)

bob@tera:~$ w
6:53AM up 7 days, 23:56, 2 users, load averages: 0.20, 0.12, 0.09
USER TTY FROM LOGIN@ IDLE WHAT
bob p0 (ip address) 01Jul10 0 screen -r
bob p3 (ip address) 6:53AM 0 nano

Adbot
ADBOT LOVES YOU

Xenomorph
Jun 13, 2001
I posted this in the Ubuntu thread, but I'm guessing it may be better to post here.

I recently figured out how to get one of our Linux systems to authenticate to an LDAP server (Apple OS X Server).

When they log in via LDAP, they didn't have a home folder. I have pam_mkhomedir.so run to create a home folder.

The users on the Apple server have a lot of home folders. Some are like /Volume/partition/whatever/something/user, or /share_name/misc/home, etc. pam_mkhomedir would try to re-create all those crazy folder structures off the root of the Linux system. I want a more uniform home folder when they log into Linux.

Is it possible to force a different home folder creation?
Like, force all users authenticating via LDAP into /home/<username>?

Right now, pam_mkhomedir.so is just trying to create whatever it sees in the passwd file on our Apple server.

In /etc/ldap.conf, I've tried things like this:

nss_override_attribute_value homeDirectory /home/${uid}
or
nss_map_attribute homeDirectory /home/${uid}

I'm trying to get the actual variable to work so it uses the users' name. It is making actual folders like /home/{uid} for a user.

Is there a way to make this work? I just want a /home/<username> folder created for each user that logs in.

If pam_mkhomedir.so isn't the answer, is there something else I could run on login to check for a home folder?

When I use this line in ldap.conf:
nss_map_attribute homeDirectory uid
pam_mkhomedir.so defaults to making /dev/<username>. Why would it default to the /dev folder?

Xenomorph fucked around with this message at 01:17 on Jul 11, 2010

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