Household IT How To's

How to install a .deb file

sudo dpkg --install filename

What to do if Ariadne can't mount the /var/xp filesystem

As root, do these commands:

mdadm --assemble /dev/md0 /dev/hda5 /dev/hdb1 /dev/hdd1

/etc/init.d/lvm2 start

DNS Related Stuff

How to add a domain to those being serviced

New domains that we're providing name service for go into /etc/bind/named.conf.local The thing is, they go into two places in that file. That's because the name service is set up to provide two different "views", one as for users on the local LAN here, and the other is for the rest of the Internet. This is necessary because we provide services through an address translating firewall. So, you can use the existing entries in the file as examples, but make sure it's done twice, once in the "view 'internal'" section and once in the "view 'external'" section.

Some domains, those that are being served from chromite, will require two different db files, but most won't. If the domain in question needs two files, refer to the "internal" one in the section for the internal view, and the external one in the section for the external view. If only one file is needed, refer to the same file in both places.

How to add a host to the brokersys.com domain

To add a host to the brokerys.com domain, you need to add it to the db.brokersys.com-external file and the db.brokersys.com-internal file. However, you need to be careful. db.brokersys.com-internal is also updated by the DHCP server and you need to not confuse the DHCP server or a lot of the names will stop working. So, before making manual changes to the /etc/bind/db.brokersys.com-internal file, stop bind with the command

/etc/init.d/bind9 stop

Then, remove the journal file with the command

rm /etc/bind/db.brokersys.com-internal.jnl

Then, make your edits.

When you're done, restart the name server with the command

/etc/init.d/bind9 start

Add Users

Because we use Kerberos for secure authentication of users and because we store user's account information in LDAP, adding a user is a multistep procedure. First, the Kerberos principal is created. Then, the user is added to chromite. Then, an LDIF file is created for that user and that LDIF file is used to add the user to LDAP. Once that happens, the user is available on the domain.

Create the kerberos principal

To do this, first start kadmin by typing:

/usr/sbin/kadmin

This will bring up a prompt. At which point you type

add_prinicipal -pw new_password new_username

This adds the new user to Kerberos and allows you to set the user's password.

Then, you can type q to quit.

Add the user to chromite

This is just like adding a user to any other system. It's necessary to do this step because otherwise the home directory for the user won't be created. Use the command

adduser new_username

to add the new user.

create an LDIF entry for the new user

The easiest way to do this is to copy one of the existing LDIF files in /usr/share/migrationtools I recommend starting from the file password.cybersmythe.ldif

Set the uid part of the dn field to be new_username and the uid field should also be new_username. The cn field should contain the "common name" which is normally the person's full name. The gn is the first name, and the sn is the last name. The mail and mailRoutingAddress fields should be set to the user's email address, the uidNumber should be set to the numeric user ID that was created when the user was added to chromite and the gidNumber should be set to the numeric group ID that was created with the use was added to chromite. Lastly, the homeDirectory field should be set to the user's home directory and the gecos field should be set to whatever value you wish to use as the user's GECOS field.

Add user to ldap directory

Run the command

ldapadd -x -D cn=admin,dc=brokersys,dc=com -W -f file

Where file is replaced by the name of the LDIF file to take the information from.

Add a computer to the domain

useradd -d /dev/null -g 500 -s /bin/false machinename

smbpasswd -a -m machinename

then, do the computer name change on the Windows computer

Disable an account through pam-lockout

Go to the Web Site and do it.

Re-enable an account through pam-lockout

Go to the Web Site and do it.

Configure Linux to automatically set the host name of the computer when acquiring an address through DHCP

Edit the file /etc/dhcp3/dhclient.conf and set the value for send host-name to be the name of the computer you want to appear in DNS.

Set up a forum

  1. Decide on the forum name and database prefix
    1. The table prefix should be smf_<forum-name-without-spaces>_
  2. Create a forum directory under the main web folder
  3. Unpack the install ZIP file in the new directory
  4. Make the files writeable by www-data using "sudo chgrp www-data -R .; sudo chmod g+r -R ."
  5. Load the installation URL in a Web browser
  6. Set the forum name
  7. The URL should already be set for you.
  8. The MySQL database name is smf
  9. The MySQL server name is "localhost"
  10. The MySQL user name is "smf"
  11. The MySQL password is the minimal at the present.
  12. Create the initial administrator account
  13. Additional adminstrators should create accounts, which can then be set to administrator accounts by the initial administrator.

-- JonathanGuthrie - 11 Jan 2008

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2010-03-31 - JMagGuthrie
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback