Makefile Template: A simple makefile to compile project contained in a single directory. Eliminates most of the overhead present in the above Build System Template however limits the project to a single directory.
Access to is by request only. For more information email mbz@cmu.edu.
Once you have access click here
% su Password: xxxxxx % xterm Xlib: connection to ":0.0" refused by server Xlib: No protocol specified xterm Xt error: Can't open display: :0.0
% cvs -d /usr/local/cvsroot init-d specifies the location of the cvs repository. If the repository exists on an external server and you want to access it securely using SSH you must first set $CVS_RSH=ssh and $CVS_SERVER=cvs. Consider the server is server.company.com and the cvsroot is at /usr/local/cvsroot and your user account is user.
% cvs -d :ext:user@server.company.com:/usr/local/cvsroot initAlternatively you can set $CVSROOT=:ext:user1@server.company.com:/user/local/cvsroot
Consider your project is in a directory wdir and already contains project files and you want to put the files in the cvs tree under project/rdir
% cd wdir % cvs import -m "Imported sources" project/rdir softco startsoftco is the "vendor tag" and start is the "release tag"
If you want to start a new project from scratch create an empty directory structure and import it as above.
% mkdir wdir % mkdir wdir/src % mkdir wdir/doc % cd wdir % cvs import -m "Imported sources" project/rdir softco start
% cd .. % cvs checkout project/rdir % diff -r wdir project/rdir % rm -r wdirIt is important to remove your original sources such that you don't edit them by accident. Changes made to wdir will not make it into the source tree.
When you add new files or directories to your project you must first perform a
cvs add and then a cvs checkin. It is a good idea to
first perform a cvs up -d before performing a checkin.
If the source tree is being used by more than one developer or there
are multiple copies checkedout (for instance on separate computers)
you should always perform a cvs up -d and resolve any conflicts
prior to checking in anything. The -d flag downloads new directories if they
exist.
Tagging allows a name to be associated with all files at one point
in time reguardless of their individual version numbers. Concider a
repository with three source files foo.c, bar.c, and
thud.c. foo.c is on cvs version 1.4, bar.c on 1.32 and thud.c on
version 1.8 and you are ready to send a release version (1.0) to
your customer. Note - the file version mentioned above are CVS version number,
not release version numbers.
Tagging allows an identifing string(tag) to be associated with the three files
and their current
CVS version numbers. Work(including cvs checkin) may continue the source files thus
increasing their CVS version number, however at anytime it is possible to
check out the version associated with a specific tag.
Tag a module with the tag rel_v1_0 by running the following:
% cd project/rdir
% touch afile
% echo "Hello World" > helloWorld.txt
% echo "THE README FILE" > README
% cvs add afile helloWorld.txt README
% cvs checkin
cvs will launch your editor ($CVSEDITOR) for a the log file
% cvs up -d
Resolve any conflicts.
% cvs ci
ci is a shortcut for checkin.
% cvs tag rel_v1_0
To export the module foo with tag rel_v1_0 run the following
% cvs -d /afs/cs/user/mbz/cvsroot export -r rel_v1_0 module
The above instructions are meant to be used as a quick summary and refresher and are by no means complete. Please refer to www.cvshome.org for the complete manual as well as downloads. Users may also run man cvs and cvs --help.
Below are instructions for coping the root partition from one disk to another
% cfdisk /dev/hdcCreate a partition hdc1 and exit.
% mkfs.ext3 /dev/hdc1
tune2fs -i 0 -c 0 /dev/hdc1
% mount /dev/hdc1 /mnt
cp -dpRx / /mnt/
chroot /mnt
lba32 boot = /dev/hdc disk = /dev/hdc bios = 0x80 root = /dev/hda1 delay = 0 vga = 0 image = /vmlinuz label = Linux read-only
% lilo
% halt
CMU Robotics bootscreen_cmu_ri.bmp bitmap = /boot/bootscreen_cmu_ri.bmp bmp-colors=14,,0;4,,0 bmp-table=110p,200p,1,9,144p bmp-timer=230p,400p,15,0,10
|
Amy bootscreen_amy.bmp bitmap = /boot/bootscreen_amy.bmp bmp-colors=14,,0;9,,0 bmp-table=50p,150p,1,9,144p bmp-timer=350p,60p,1,0,14
|
4uping a landscape file using mpage:
Mpage is a handy utility for printing multiple pages per sheet on a PostScript printer
Linux/Unix® man page
Relevent Flags:
-4 Print 4 normal pages per sheet (default). -a Toggle layout of the pages on the sheet so that successively numbered pages run down the sheet, as opposed to left to right. (default updown) . -o Toggle printing of outlines around each reduced page (default on). -R Switch to left to right mode, starting first page on left bottom corner. This might be useful for landscape postscript files. (Note: using -l after -R undoes -R, and switches to normal land- scape mode.
Commandline Tools
% mkisofs -R -o cdimage.raw SOURCEFILE/DIRECTORY % su # cdrecord -v dev=ATAPI:0,0,0 cdimage.raw
Documentation
The Linux Documentation Project
LILO mini-HOWTO
Tools
vim ultimate text editor
blackbox A minimalist X11 Windows Manager
unison file synchronizer
cvs version control
subversion a contemporary alternative to cvs
openSSH keeping your communications secure
Code Colorizer