Wednesday, September 30, 2009

[all variants] Multilevel Incremental Backup tool [Archive] - Ubuntu Forums

[all variants] Multilevel Incremental Backup tool [Archive] - Ubuntu Forums: "You can also try Back-In-Time (http://www.le-web.org/back-in-time/).

This is a GUI program that is very easy to use.

The premise is basically that the first time you run it it will make a complete 'snapshot' of the directory or directories you specify and back them up to a location of your choosing (you can even specify NFS shares and external storage). After the initial snapshot it will monitor the directories for any changes and will back-up only the changed files. You can specify the frequency of the back-ups and it runs in the background to keep tabs on the schedule."

Tuesday, September 29, 2009

Extension Manager : Install

Extension Manager : Install: "This module allows updating of product information via AJAX from the product browse page.
Changing product information normally takes a long time - now it's a breeze!

1. Modify your browse templates (found in /components/com_virtuemart/themes/default/templates/browse) to include the following lines:

<div class='AJAX' pid='<?php echo $product_sku ?>'>
<div class='AJAX_field' field='product_name' title='Name' content='<?php echo $product_name ?>'></div>
<div class='AJAX_field' field='product_s_desc' title='Short Desc' content='<?php echo $product_s_desc ?>'></div>
<div class='AJAX_field' field='product_desc' title='Description' content=' '></div>
<div class='AJAX_field' field='product_price' title='Price' content=' '></div>
<div href='<?php echo $product_flypage; ?>' class='AJAX_detail_link'></div>
</div>

2. Publish the VirtueMart AJAX updater module on All pages, with Access Level set to 'special' (admin only), in a position used by your template.

3. Log into the front end of your site as administrator, and browse the products. Textboxes should appear under the products, through which you can edit the product data. Please note that both price and description will be empty initially, but will work as expected.

4. It is highly recommended that you password protect the modules/mod_vm_ajax_update/AJAX directory to stop malicious use. Ask your web host how.

The AJAX updater uses JQuery. If your site already uses prototype, or a similar javascript framework, they may conflict.

If you are keen to be able to change the SKU using AJAX, please email me at josh@neonascent.com . It is a possible future improvement."

Sunday, September 27, 2009

[all variants] [SOLVED] /etc/crontab doesn't change cron.daily time - Ubuntu Forums

[all variants] [SOLVED] /etc/crontab doesn't change cron.daily time - Ubuntu Forums: "Re: [SOLVED] /etc/crontab doesn't change cron.daily time
Well, I already figured out the problem (well its not really a problem, more me figuring out how cron interacts with anacron). My changes to /etc/crontab were taking effect, but it wouldn't run cron.daily because anacron exists. So I needed to change the time cron calls anacron by changing /etc/cron.d/anacron. Or I could have taken out the test for anacron, but then cron.daily would get run by both cron and anacron everyday.

You edit user crontabs with crontab -e, but /etc/crontab you edit directly.

Thanks for the help."

Thursday, September 24, 2009

Kernel panic - not syncing: Attempted to kill init! - Page 2 - LinuxQuestions.org

Kernel panic - not syncing: Attempted to kill init! - Page 2 - LinuxQuestions.org: "My kernel build steps.

rpm -ivh kernel-*.src.rpm
cd /usr/src/redhat
rpmbuild -bp SPECS/kernel-2.6.spec
cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64
cp (previous version directory)/.config .
make menuconfig
cp -a .config config_org
make mrproper
cp -a config_org .config
make oldconfig
make
make modules
make modules_install
make install # <--(It seems installing by prep image)
#? This install method is not bootable-->: installkernel 2.6.18-92.1.22.el5 arch/x86_64/boot/bzImage System.map
vi /boot/grub/grub.conf # edit grub menu item
and default menu number(0-...).

Please test this method guys."

script to clear log files - LinuxQuestions.org

script to clear log files - LinuxQuestions.org: "find -type f -exec cat /dev/null > {} \;"

Wednesday, September 23, 2009

dpkg-reconfigure xserver-xorg alternative on Lenny? - LinuxQuestions.org

dpkg-reconfigure xserver-xorg alternative on Lenny? - LinuxQuestions.org: "Don't Xorg -configure or xorgconfig or xorgcfg work on Debian platforms?"

[SOLVED] Lenny xorg.conf? - Linux Forums

[SOLVED] Lenny xorg.conf? - Linux Forums: "# apt-get uninstall xorgconf.xorg
# apt-get install xorgconf.xorg

This solved the issue."

Debian User Forums • View topic - HOWTO: Choose the resolution YOU want in xorg.conf

Debian User Forums • View topic - HOWTO: Choose the resolution YOU want in xorg.conf: "HOWTO: Choose the resolution YOU want in xorg.conf

Postby tukuyomi » 2008-05-06 12:31
Xorg has been recently updated to 7.3 and apparently uses xrandr to set the best resolution for you.
It works well in most cases, but sometimes, you'll want to set X to start in a resolution YOU choose.
Of course, the first thing you do is to tweak your xorg.conf as you did it for about x years now and happily press [CTRL][ALT][<--] and ..? wtf o_O the resolution has not changed.
After having checked twice your xorg.conf, you're still stucked in that resolution and your desktop is unusable due to all icons in your gnome-panel that are not visible anymore...
So, how to modify xorg.conf to your needs? Here is it!
Say you want a resolution set to 1600x1200 at 75Hz, you use gtf tool to output a Modeline that'll be used in xorg later:

Code: Select all
$ gtf 1600 1200 75

# 1600x1200 @ 75.00 Hz (GTF) hsync: 93.97 kHz; pclk: 205.99 MHz
Modeline '1600x1200_75.00' 205.99 1600 1720 1896 2192 1200 1201 1204 1253 -HSync +Vsync


Now, open your xorg.conf, then find Section 'Monitor' then add those two lines as in the following -example- code:

Code: Select all
Section 'Monitor'
Identifier 'Configured Monitor'
Modeline '1600x1200_75.00' 205.99 1600 1720 1896 2192 1200 1201 1204 1253 -HSync +Vsync
Option 'PreferredMode' '1600x1200_75.00'
EndSection


Then, find Section 'Screen' and add this example code:

Code: Select all
Section 'Screen'
Identifier 'Default Screen'
Monitor 'Configured Monitor'
DefaultDepth 24
SubSection 'Display'
Depth 24
Modes '1600x1200_75.00'
EndSubSection
EndSection


Be sure that Modes string is the same as above!

... And that's all? I hope so, let's save this file and restart your X server."