So you want to be able to ssh into your windows box? Don’t know your windows password, but have admin rights? Here’s how: use the “net” command to create a user with a password. Then install openssl-server from cygwin setup, then sync the users
mkpasswd -cl >/etc/passwd
mkgroup --local > /etc/group
Then fire up the server
net start sshd and it should work. See http://pigtail.net/LRP/printsrv/cygwin-sshd.html for more tips (most of which may not be necessary).
If you want to be able to actually edit files, etc. then you are going to want to login as your ‘normal’ login name.Â So <code>passwd normalusername</code> and enter a new password.Â Now you don’t need to know the windows password 🙂 .Â Next if you want to not have to type in a password, create a key pair which allows you to authenticate with it.Â Download putty, run puttygen, click generate, move the mouse to create a new key pair, click “save private key” (give it a passphrase–this protects you if a bad guy gets it), next copy the text from the topmost window (in grey).Â Now login to localhost <code> ssh user@localhost</code>, create a ‘.ssh/authorized_keys’ file <code>mkdir .ssh; cd .ssh;</code> and put that stuff in it (here’s one way <code> echo “paste it in here” >> authorized_keys</code>.Â Now explore to where you put your private key, double click on it (fires up the ‘key manager’), and now logging in to username@localhost should be automatic when you supply the username.Â (Putty can apply the username automatically, if desired, see options).Â Now to get it really automatic then put a link to that private key in your startup folder, and then never worry about it again 🙂 Good luck!
Now you can make it so
So…want to know where apache writes text which is written to stdout? (i.e. “print “hello””).Â It (I think) outputs it to the console window of the process that started apache (i.e. init, if auto-started), so that stuff is toast!Â Text written to stderr will however go into the file “error.log” in the logs directory, so that’s a good way to still see your output. GL!
So…you download the RoR openid plugin, install it, and…
nothingÂ seemsÂ toÂ work?Â Â TheÂ reasonÂ mayÂ beÂ thatÂ youÂ needÂ edgeÂ railsÂ installedÂ (apparently).
TheÂ errorÂ IÂ wouldÂ runÂ intoÂ isÂ thatÂ open_id?Â methodÂ wasÂ notÂ defined,Â orÂ whatÂ notÂ (etc.,Â etc.)
SoÂ goÂ andÂ getÂ itÂ insteadÂ fromÂ Â http://www.bencurtis.com/archives/2007/05/openid-sample-application/ where there is a baked sample. Otherwise you might get stuck after
gem install ruby-openid --include-dependencies. GL!
ruby script\plugin install open_id_authentication
So…you want to send php using the mail function, you load it up and…nothing?Â First check if sendmail works mailx -s “subject” firstname.lastname@example.org (type, then Ctrl+d, then enter, to end).Â If that works then you may be getting the following error:
“Recipient names must be specified”
This actually originates from sendmail.Â What it meant for me is that you *must* include a “from header” for mail, at least on Oracle Linux.Â Oh BTW installing php4 on oracle linux seems impossible.Â You can edit the config file all you want to try and include those /usr/lib64 includes, then it ends up saying “-lxml” on the command line and then doesn’t compile. Nuts. 🙂
Turns out that mysql IS by default installed in oracle Linux. How to set it up:
First let’s turn it on
/etc/rc.d/rc5.d and copy
S36mysqld [i.e. set it to start it up, too]. then run it
sudo s36mysqld start Mysql is officially running.
Next setup root (stolen shamelessly from http://homepage.mac.com/kelleherk/iblog/C711669388/E20060917185253/index.html):
mysql -u root
grant all on *.* to root@localhost identified by 'insert_pass_here' with grant option;
(password above is your root pw)
and test the login again with the password
./mysql -u root -p
and enter your password.
So…if you go to a php page and it’s blank…do not fear!Â This may not mean php is broken.Â Go to the top of that php page and put “hello” or what not to see if it actually php or apache that is broken, or if php is coughing on something you are running later (and returning nothing). GL!
Turns out it’s already installed.Â enable it by going to /etc/rc.d/rc5.d and linking to mysql <code>sudo ln -s ../init.d/mysqld S36mysqld
Email me roger pack 2005 at gmail com (no spaces) if you want a mergelog that compensates for errors in the logs and doesn’t crash.Â Nice prog.Â Little buggy 🙂
So most people complain about Rails not scaling (well, rather, fear it).Â It seems that with 10 servers you can host about 45 million hits a day.Â And hardware load balancers.Â So…that’s kind of expensive, but hey 🙂
http://www.ruby-forum.com/topic/108421#247177Â lists the post.Â Also at http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel they list how they scale using mongrel and “only 5 machines” — ok so it scales, but with tons of machines?Â How well do other protocols scale like that?Â I would like to see a list of ‘scaling’ on each protocol, with the best of practice.Â That would be cool.Â How about a ‘scaling cook-off’?
Thought the world would love some random fixes I’ve run into. Â Good luck siphoning through these! -Roger