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 |
|
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 |
|
So FreeBSD's time is out of wack. Two options:
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 ...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 …
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 …
I know I did this the hard way. there is a command that you can issue that will convert them on the fly. what I did was mysqldump the database, reinstall mysql(because of other reasons), and then edit the dump so that the line that specified the engine reads …
more ...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 ...when running an update:
sudo aptitude
Ouch! Got SIGSEGV, dying..
apparently, just remove some files:
sudo rm /var/cache/apt/*.bin
now everything is back to normal.
more ...To stay on time, you should really use ntpd. It is a daemon that runs all the time and makes tiny changes to the system clock. All you need to do is install ntp:
aptitude install ntp
after it's installed, I encourage you to go over to http://www.pool …
more ...I completely. completely messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql ... apt-get remove --purge mysql-server That only deleted something like 86K. dissapointing. It looks like "mysql-server" is a shortcut pointing to the latest version of the software …
more ...