Archive for March, 2006

-->
Thu, March 30th, 2006 15:29

Slackware 10.2. How-To compile the kernel.

user@pc # cd /usr/src/linux
user@pc # make mrproper
user@pc # make menuconfig

user@pc # make dep
user@pc # make clean
user@pc # make bzImage
user@pc # make modules

user@pc # mv /boot/vmlinuz /boot/vmlinuz.generic
user@pc # cat arch/i386/boot/bzImage > /boot/bzImage.ipf
user@pc # mv /boot/System.map /boot/System.map.generic
user@pc # cp System.map /boot/System.map
user@pc # make modules_install

user@pc # cat /etc/lilo.conf
# LILO configuration file
# generated by ‘liloconfig’
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 60
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# Normal VGA console
vga = normal
# End LILO global section
#
# Linux bootable partition config begins
# manual compiler kernel whith ipTables
image = /boot/bzImage.ipf
root = /dev/hda2
label = boot.ipf
read-only
# Linux bootable partition config
image = /boot/vmlinuz.generic
root = /dev/hda2
label = generic
read-only
# Linux bootable partition config ends

user@pc # /sbin/lilo
Added boot.ipf *
Added boot.generic

user@pc # init 6

user@pc # cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
echo “==================================”
echo “=========HERE AT RC.LOCAL=========”
echo “==================================”

[TS]

@ Category Handmade
<< Back

Thu, March 30th, 2006 13:28

WordPress 2.0.2. Cannot change the post.

Problem: Once the post have been written, you can see it on your site. Great. Then you want to edit this post again to correct, say, some typos. You are doing this a couple of times. Finally you find that the very last changes are lost.

Decision: At your WordPress panel Options –> Writing –> Update Services you have to delete the link to pingomatic site and confirm the update. This happens on the very slow and overloaded sites (thank to your hoster).

Updated: Final decision have been described there http://wordpress.org/support/topic/54870#post-299621. Yes, disable the cache at wp_config.php and it will work. No crap like to delete pingomatic, upgrade to wordpress 2.0.2, do not to use WYSIWYG editor.

wp-config.php:

define('DISABLE_CACHE', true);

Now it works for me

@ Category WordPress Tips, Tech
<< Back

Mon, March 27th, 2006 23:17

Впечатления после поездки в Краснодарский край.

garik1.gifЖурнал авиационных линий Кубани. Про Гарика Сукачева, ржал.

Про птичий грипп. Рассказывают казаки. На птицеферме Х по недосмотру поморозили птицу. Что делать ? Объявили о птичем гриппе, ферма теперь банкротится и акционируется. На птицеферме Z подошло время выплат по кредиту, денег ессесно нет, птица разворована, показательно сожжено сто голов, ферма банкротится. Денег нет.

На элеваторах стреляют по стаям голубей по указанию СЭС. Стою в футболке под навесом, греюсь, слушаю как ценькают дробины по жестяной крыше. Стремно, все ржут. Обещают летом, при +25С птичий грипп куда-то девается.

В офисе нашел пузырек для пускания мыльных пузырей. Вышел в коридор, пускаю пузыри. Если казаки раньше и сомневались во вменяемости москалей, теперь же просто уверены. Ржал.

В станице 3х комнатная квартира стоит около 500 т.р (17.000$), дом 300кв.м со всеми коммуникациями - 1200т.р (40.000$). +18С вечером в аэропорте г.Краснодара, -9С тогда же во Внукове. Все бросить и уехать в Простоквашино ?

[TS]

@ Category LiveJournal, Personal
<< Back

Sun, March 19th, 2006 13:47

WordPress Notes.

WordPress plugins I use

  • LiveJournal Crossposter - Automatically copies all posts to a LiveJournal or other LiveJournal-based blog. Editing or deleting a post will be replicated as well.
  • RusToLat - This plugin convert cyrillic characters in post title to latin characters. Very usefull for russian-speaking users of Wordpress. You can use this plugin for creating human-readable links.
  • Fuzzy Recent Posts - Lists a fuzzy number of recently posted entries.

Found at http://codex.wordpress.org/Plugins
Table of date format characters on the PHP website to change date format, say, at WP Admin Panel “Options” -> “General”
Just to remember.

[TS]

@ Category Handmade
<< Back

Sat, March 18th, 2006 23:28

HOW-TO. Upgrade WordPress from 2.0.0 to 2.0.2.

  • Announce there.
  • How-to Upgrade WordPress 1.5 to 2.0.2 or WordPress 2.0.0 to 2.0.2 there.

Plan:

  1. Backup the database.

    user@unix> mysqldump –add-drop-table -h localhost -u my_username -p my_basename > bak.sql; bzip2 -9v bak.sql

  2. Backup all files under your wordpress. Move and save this backup somewhere.

    user@unix> tar cvf backup.tar * .*htaccess* ; bzip2 -9v backup.tar; mv backup.tar.bz2 somewhere

    Here I mean tar cfv backup.tar STAR BLANK DOT STAR

  3. At your Administration Panel deactivate  all the Plugins you’ve installed and activated. Just click by mouse.
  4. Be sure the previous steps are completed. As for your backup, move it away from the main computer and try at least to open this not empty archive.
  5. Find the last 2.0.2 WordPress release somewhere there at wordpress.org/download, untar it, unzip it.
  6. Replace files. Be careful here. Personally I did the following:
    for …/wordpress/ - rewrite all files except wp_config.php, leaving .htaccess
    for …/wordpress/wp_admin directory - delete the whole directoy on site, replace from the new release.
    for …/wordpress/wp_content directory - leave on site as is, because it contains my themes.
    for …/wordpress/wp_includes directory - delete the whole directoy on site, replace from the new release.
    Some additional devices whom to delete or not one can find there at WordpPress HOW-TO upgrade manual.
  7. Run yoursite.com/wp_admin/upgrade.php to finish the upgrade procedure.
  8. Check how are your Permalinks look like. They suggest to check it. My Permalinks did not changed: /%year%/%monthnum%/%postname%.html
  9. That is all, foax. As I did.

By the way, should I restrict anyhow the access to yoursite.com/wp_admin/upgrade.php ?

[TS]

@ Category Handmade
<< Back