Wednesday, May 30, 2007

storage storage storage

quick note, exclude

tar -czf _____.tgz __path___ -exclude another_path

Friday, May 25, 2007

system-update NIS

On a computer with a sequential system-update to the latest version of ubuntu, to get it working back on the network all I had to do was :

I typed
sudo apt-get install portmap nfs-common
>>this installed the NFS packages needed to link NFS and NIS
and I was able to log into burns as my user name


In other news, I found this site that looks very helpful with setting up NIS. I need to find out the following things:

first configure the nsswitch.conf file (name service)

The site gives the following example:

# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files nis
group: files nis
# consult /etc "files" only if nis is down.
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files

ethers: nis [NOTFOUND=return] files
netmasks: nis [NOTFOUND=return] files
bootparams: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis
automount: files nis
aliases: files nis
# for efficient getservbyname() avoid nis
services: files nis
sendmailvars: files
The site also gives an example of what the nsswitch.files should look like.

Thursday, May 24, 2007

storage

just so I don't forget, while I'm learning some more unix commands, here are some useful ones that I have needed while backing up files:

sudo
while in the sadmin account, using sudo as a prefix allows the command to run with ALL privileges. For instance, when I try to normally tar a file it gives me an error saying that I do not have the privileges to read some of the files and can not tar it. If I type sudo tar file.tar blah blah it works and then restores my usual privileges.

du
du is the disk usage command for instance:
du -s /home will give me a printout of the summary (hence -s flag) of all the folders and files in the home directory.

Today I have spent most of my day trying to make tar files to backup onto discs. Also I have been updating burns to ubuntu 7.04. So far I have updated from version 6.04 to 6.10 and as far as I know it seems to be just fine. It took a while though, I must have started it around 11:30 or so and it just kept running through my lunch break. I came back and after a little bit I started getting messages asking me if I wanted to keep certain configurations of files. I took the option to 'keep' all the configurations the same, I'm not sure if this was needed but there was one for a login configuration. Perhaps if the login configuration stays the same then we won't have to deal with the NIST stuff and everyone will be able to log into the computer just as they had.

Wednesday, May 23, 2007

5/23/07 Ubuntu

The first task of the day is to update to the latest version of Ubuntu. I downloaded the recent CD image to my desktop but before installing it I looked through the Ubuntu documentation on the website. There I learned that I can sequentially update to the latest version using the command
gksu "update-manager -c"

Tuesday, May 22, 2007

tar

Notes:
to make archive file

Create: tar -czf _____.tgz __path___
look in: tar -tzf _____.tgz
extract: tar -xzf _____.tgz

Today: I archived
/home/courses