Command line scp from linux(+BSD) to windows.

i traveling and wanted to copy over my logs to find out what was happening on my server. didn't want to install a client like filezilla or another GUI. Using the command line SCP utility, you can grab remote files securely over SSH. You can grab the executable from http …

more ...

running msc's as admin account

Got tired of right-clicking and "run as" and putting in my uname/password. I just updated the shortcuts to run something similar to this. This example is for exchange 2007 server management console.

runas /user:DOMAIN\ADMIN_ACCOUNT "cmd /c \"c:\program files\microsoft\exchange server\bin\exchange management console …

more ...

Conference rooms with outlook and exchange 2007

Exchange Server 2007 allows administrators to create objects such as Mailbox, Contacts, Mail User, and Distribution Groups. Here are the steps needed to create a room mailbox object:

  1. Open the Exchange Management Console.

  2. Expand Recipient Configuration.

  3. Click on Mailbox.

  4. In the Mailbox pane, click on New Mailbox...

  5. For our purposes …

more ...


script to update wordpress

Why? Because i'm lazy. I'll update this to see if it works

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#!/bin/sh
#your current site will be backed up to your home folder with the date in the name
#change this …
more ...

FreeBSD time updates with ntpdate and ntpd

So FreeBSD's time is out of wack. Two options:

  1. ntpdate. This is manual. To run a time sync manually, just run

    ntpdate -b pool.ntp.org

You can replace pool.ntp.org with whatever you want. To tell it to run whenever the system is booted, add this to /etc …

more ...

webalizer installation on freebsd 7

cd /usr/ports/www/webalizer
make
make install
make clean
rehash
mkdir /usr/local/www/stats
webalizer -o /usr/local/www/stats /var/log/httpd-access_log

After that, just added it to the root crontab

crontab -e

like this:

0 * * * * /usr/local/bin/webalizer -o /usr/local/www/stats …
more ...

Debian Samba share. no password. read only

Just install samba server:

apt-get install samba

edit the config:

nano /etc/samba/smb.conf

set security to "share"

security = share

and guest account to nobody

guest account = nobody

then you just need to create your share like this:

[guest share]
comment = a guest share
path = /path/to/files
browseable …
more ...


MySQL server --purge and reinstall

Screwed around for a bit. messed up MySQL. I decided to remove --purge, and start fresh. Unfortunately, the reinstall wouldn't work. Long story short, i had to remove "mysql-server, mysql-server-5.0, and mysql-common". when i ran this, it also pulled out other dependencies, but i just reinstalled them all. voila …

more ...