robots.txt
Disallow: /freestuff/ # use /g3/ instead
Labels: robots, robots.txt, server admin, System Administration, web site
Disallow: /freestuff/ # use /g3/ instead
Labels: robots, robots.txt, server admin, System Administration, web site
Disallow: /ped-safety/ # use /pedsafety/ insteadThis way, Google et al. will cache things with the preferred URL. Especially desirable for holdovers from an era when our site was organized completely differently:
Disallow: /resources/media/multimedia/ # use /videos/ instead
Disallow: /_vti_bin/ # honeypot
Labels: robots, robots.txt, server admin, System Administration, web site
$ uname -a
Linux myserver.mydomain.com 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux
$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
Labels: bash, command line, server admin, shell, System Administration
$ cd htdocswhich then started processing (what exactly was done?) many large files in the htdocs tree which, on reflection, I don't want in the repository (archived Apache access logs(!), movies which are never revised, etc.). The import then choked on a file for which permissions were wrong.
$ svn import -m "New import" file:///usr/local/svn/newrepos
$ df -h /And it looks like the best way to undo is to use a system (not svn) rmdir. stspiffy says,
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 131G 27G 98G 22% /
you can svn delete directories, but if you want to get rid of the entire repo forever-ever, ... the correct way to delete a repository is actually to delete the directory.As far as How to do it better next time,
Labels: subversion, svn, System Administration
either svnserve, which is small standalone program similar to cvs pserver, or Apache httpd-2.0 using a special mod_dav_svn module. svnserve speaks a custom protocol, while mod_dav_svn uses WebDAV as its network protocol.Integration with Dreamweaver: it looks like DW CS4 will support svn.
Labels: server admin, subversion, svn, System Administration
12:03 PM 3016 > du -k -d 1 | sort -n -r
60046424 .
53814684 ./Music
4304660 ./Desktop
1553812 ./Library
165748 ./Documents
116480 ./Pictures
54708 ./Projects
34856 ./FontExplorer X
940 ./.Trash
72 ./.razorsql
20 ./.subversion
16 ./Movies
12 ./bin
12 ./.transmission
8 ./Shared
8 ./Public
8 ./NIVdlj0508-0623.fpbf
4 ./.ssh
4 ./.config
0 ./TheVolumeSettingsFolder
0 ./Network Trash Folder
12:03 PM 3017 > ls -l Desktop/
total 93536
drwxr-xr-x 11 steve steve 374 Apr 3 09:57 08-03
-rw-r--r-- 1 steve steve 779925 Mar 28 10:28 4_findings.pdf
-rw-r--r-- 1 steve steve 18585738 Mar 20 11:04 MPlayerOSX_1.0rc1.dmg
-rw-r--r-- 1 steve steve 60164 Mar 21 15:53 Picture 1.png
-rw-r--r-- 1 steve steve 68683 Mar 26 17:55 Picture 2.png
-rw-r--r-- 1 steve steve 206265 Mar 21 13:35 T2 Brief March 2008.pdf
-rw-r--r-- 1 steve steve 3469366 Mar 21 13:49 access31.pdf
-rw-r--r-- 1 steve steve 24706623 Mar 20 11:06 vlc-0.8.6e.dmg
12:14 PM 3019 > ls -al Desktop/
total 93672
drwx------ 22 steve steve 748 Apr 2 08:15 .
drwxr-xr-x 3 steve steve 102 Jul 3 2005 .$$ StuffIt Temp 1120423723
drwxr-xr-x 3 steve steve 102 Nov 16 2006 .$$ StuffIt Temp 1163745308
drwxr-xr-x 3 steve steve 102 Dec 27 19:14 .$$ StuffIt Temp 1198811673
drwxr-xr-x 3 steve steve 102 Dec 27 19:19 .$$ StuffIt Temp 1198811989
drwxr-xr-x 3 steve steve 102 Dec 28 19:56 .$$ StuffIt Temp 1198900615
drwxr-xr-x 3 steve steve 102 Dec 28 19:57 .$$ StuffIt Temp 1198900637
drwxr-xr-x 3 steve steve 102 Dec 28 19:57 .$$ StuffIt Temp 1198900669
drwxr-xr-x 3 steve steve 102 Dec 28 19:58 .$$ StuffIt Temp 1198900722
drwxr-xr-x 41 steve steve 1394 Apr 3 11:30 ..
drwxr-xr-x 3 steve steve 102 Jun 26 2005 .BAHtemp-1363-1804289383
drwxr-xr-x 3 steve steve 102 Apr 28 2005 .BAHtemp-366-1804289383
-rw------- 1 steve steve 67588 Apr 3 11:44 .DS_Store
-rw-r--r-- 1 steve steve 0 Mar 17 2005 .localized
drwxr-xr-x 11 steve steve 374 Apr 3 09:57 08-03
-rw-r--r-- 1 steve steve 779925 Mar 28 10:28 4_findings.pdf
-rw-r--r-- 1 steve steve 18585738 Mar 20 11:04 MPlayerOSX_1.0rc1.dmg
-rw-r--r-- 1 steve steve 60164 Mar 21 15:53 Picture 1.png
-rw-r--r-- 1 steve steve 68683 Mar 26 17:55 Picture 2.png
-rw-r--r-- 1 steve steve 206265 Mar 21 13:35 T2 Brief March 2008.pdf
-rw-r--r-- 1 steve steve 3469366 Mar 21 13:49 access31.pdf
-rw-r--r-- 1 steve steve 24706623 Mar 20 11:06 vlc-0.8.6e.dmg
12:19 PM 3022 > du -k -d 1 Desktop/ | sort -nr
4304660 Desktop/
3985408 Desktop//.$$ StuffIt Temp 1198811989
113664 Desktop//.$$ StuffIt Temp 1198811673
83616 Desktop//.BAHtemp-1363-1804289383
57680 Desktop//.BAHtemp-366-1804289383
4236 Desktop//.$$ StuffIt Temp 1198900722
4236 Desktop//.$$ StuffIt Temp 1198900669
4236 Desktop//.$$ StuffIt Temp 1198900637
2448 Desktop//08-03
1536 Desktop//.$$ StuffIt Temp 1163745308
592 Desktop//.$$ StuffIt Temp 1198900615
172 Desktop//.$$ StuffIt Temp 1120423723
12:21 PM 3024 > du -k -a Desktop/.\$\$\ StuffIt\ Temp\ 1198811989/
3985408 Desktop/.$$ StuffIt Temp 1198811989//mencoder
3985408 Desktop/.$$ StuffIt Temp 1198811989/
12:21 PM 3025 > ls -al !$*
ls -al Desktop/.\$\$\ StuffIt\ Temp\ 1198811989/*
-rw-r--r-- 1 steve steve 4081057792 Dec 27 22:04 Desktop/.$$ StuffIt Temp 1198811989/mencoder
Labels: Mac, maintenance, System Administration
Labels: 404, Apache log, hacker, System Administration, web server logs
Once a month:
After an application crash, a power failure or a force reboot
Immediately:
Then, if the computer slows down:
Around the installation of a big new application or a system upgrade
Before, do this:
After, do this:
If this is more than a simple OS incremental update, repair the privileges
and the file system again with the new, updated Disk Utility.
Labels: Mac, maintenance, System Administration