Thursday, June 28, 2007

software

sudo apt-get install eclipse eclipse-cdt eclipse-pydev
sudo apt-get install emacs
sudo apt-get install pymacs
sudo apt-get install guile-1.6
sudo apt-get install gnc6 alex happy
sudo apt-get install tkgate
sudo apt-get install bluefish
sudo apt-get install texmacs groff

I have not installed any multimedia plug-ins

Monday, June 25, 2007

update on maggie, login screen

Today I spent most of the day trying to update the left side of the lab. I started with Lisa but it seems as though that computer is having separate internet problems that I will look at later. Also, I believe Marge is having disc issues, tomorrow maybe I'll dive in and swap the CD drive from marge with that of patti (the one next to burns) to see if it works. Anyhoo, today I successfully updated maggie and logged in with my name and I attempted to test it by running eclipse. I could access my workspace and run my programs and tkgate etc. worked great.

I've been wanting to research how exactly to change the login screen to the custom one with the simpson character pictures. I found this site to be very helpful as well as the help menu at the login screen selection window. By my investigation what I believe the boys of last summer did was download a custom login screen and simply put in their own background image and it works fine, though I have not been able yet to verify this.

Things to do:
-Update the computers to be on the network and everything
-Make the custom log in screens
-Fix the screen resolution!!
-MPI?

Tuesday, June 19, 2007

MPI

So I've been reading up on MPI and trying it out a bit, I've installed it on the new apu and on krusty (untouched in terms of the new ubuntu) and it looks as though it's installed. To run it you just need to type the command

mpirun <>

so I'm going to write up a test program and see what happens!

Wednesday, June 13, 2007

where I am

I've installed eclipse on apu (new apu) but it's not on moe so I can't see if I can get to my files. it looks good. on monday I'll look into installing and getting MPI to work, cross your fingers!

Monday, June 11, 2007

new server/client

Lately I have been working on setting up apu as a local server to get patti to be a client (on apu's server). I succeeded in this just now. I think in the end I just had a file (fstab) where I had apu.cs.haverford.edu moe as the title for the ip-address, once I changed the last part to "apu" and restarted portmap and nis, everything worked. More to come on this later but basically what I did was set up apu as a server by the following instructions:

install the NFS server:
sudo apt-get install nfs-kernel-server

edit
/etc/hosts.allow for the ip address of patti,
/var/yp/ypservers as apu
/etc/exports with something like /home 123.45.678.123(rw,sync,root_squash)
/etc/default/nis edit the lines to say NISSERVER=master and NISCLIENT=true

on the server computer I kept running the following commands after I changed anything

sudo exportfs -arv
sudo /etc/init.d/nis restart
sudo /etc/init.d/portmap restart

Also, on the client computer I kept running
sudo /etc/init.d/nis restart
and
sudo /etc/init.d/portmap restart
until it successfully bound to the yp server

I checked this by running "ypwhich" until it correctly said the name of the server computer


Also, I don't know what I did but patti finally recognized the nvidia graphics card and is displaying the correct resolution. cool.

Thursday, June 7, 2007

HOWTO: Configure a ubuntu client

Installing Ubuntu

From live disc-

-Manually partition disc

16384MB Ext3 /root

4096MB Swap

59542MB xfs /storage

-name the computer


When ubuntu is first installed first change the root password and make a new admin name with the home directory as /ahome instead of /home. The /home folder will be replaced with the home directory of the server with all the user /home directories.

-Log out and log back into the new admin name, all changes will now be made from this name.


Configure the network drivers

in system > administration > network

-Click on the wired connection and then properties

-configure the static IP addresses. Consult another computer to get the correct gateway address.

-on the hosts tab replace the computer name with the server ip + name



run the following commands:

-sudo apt-get update

-sudo apt-get upgrade

install any updates

-sudo apt-get install build-essential

-sudo apt-get install ssh


NIS

-edit /etc/apt/sources.list

enable all lines that start with “deb” by taking away the “#” in the beginning of the line

-sudo apt-get install nis portmap


edit the following files:

/etc/passwd (add +:::::: to end of file)

/etc/group (add +::: to end of file)

/etc/shadow (add +:::::::: to end of file)

/etc/yp.conf (configure the domain and server like so: domain 'domain.com' server 'name')

/etc/hosts (add the server URL to the top of the document)


NFS

-sudo apt-get install nfs-common

-edit /etc/fstab (add a line to the bottom that is something like

domain.com:/home /home nfs rw,hard,intr 0 0


Restart the programs

-sudo /etc/init.d/portmap restart

-sudo /etc/init.d/nis restart

-sudo /etc/init.d/nfs restart


On the server run the following commands:

-sudo make -C /var/yp

-sudo exportfs -arv

Tuesday, June 5, 2007

NIS done

You can find me on founders AND/OR merion green, playing frisbee because I finally figured out NIS and everything and have logged onto the network on a repaved ubuntu 7.04 system. I will document my steps once I do it again just to be sure I have everything exactly


This is what it would look like if jamie and I were *actually* on merion green and *not* working


Peace.

Monday, June 4, 2007

NIS

This didn't work exactly but... I followed the following sequence to connect to the NIS server:

1.
sudo apt-get install nis
entered cs.haverford.edu as the domain

2. initialize the NIS database via:
cd /var/yp
sudo make

3. restart NIS via:
sudo /etc/init.d/nis restart

On moe just to be sure everything was right I did a
cd /var/yp
make
to push maps from master server

back on the client machine I did a ypwhich and it correctly declared: "moe.cs.haverford.edu"


Still when I try to log into the names after a system reboot, I can not log into the server. I'll keep trying...


I first used this page and then I finished with this other one which was very helpful.

Friday, June 1, 2007

NFS done

How to set up NFS:

BEFORE ANYTHING IT IS VERY IMPORTANT.. to change the home directory of the local admin name. If this is not done, the computer will mount to the server and then there will be an error that the home directory that you are currently working in can not be found. To do this go into

system > administration > users and groups
-click the properties of the local admin name
-under the "advanced" tab, change the home directory name

Then, get the install:

sudo apt-get install portmap nfs-common

Next, edit the program files:
to mount to NFS the following files need to be edited:

/etc/fstab
copy and paste:

# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda3 /storage xfs defaults 0 2
/dev/sda2 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
moe.cs.haverford.edu:/home /home nfs rw,hard,intr 0 0
***************************************************************************
/etc/hostname
should be the name of the computer
eg: burns, patti, krusty
***************************************************************************
/etc/hosts
add to top so it looks something like :
127.0.0.1 localhost krusty
165.82.168.31 moe.cs.haverford.edu moe
***************************************************************************
/etc/mtab
copy and paste:

/dev/sda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
varrun /var/run tmpfs rw 0 0
varlock /var/lock tmpfs rw 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
devshm /dev/shm tmpfs rw 0 0
lrm /lib/modules/2.6.15-28-686/volatile tmpfs rw 0 0
moe.cs.haverford.edu:/home /home nfs rw,hard,intr,addr=165.82.168.31 0 0
/dev/sda3 /storage xfs rw 0 0
***************************************************************************
I'm not sure this is necessary for NFS but I found this in the /etc/ of another lap computer on the network

ntp.conf
add to bottom:

server moe.cs.haverford.edu
***************************************************************************

then restart nfs, portmap:

sudo /etc/init.d/nfs-common restart
sudo /etc/init.d/portmap restart

then mount,

sudo mount moe.cs.haverford.edu:/home

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