Vediamo come:
- Come bootare la iso di ubuntu grub
- Come usare l'installer ( sulla stessa dir target)
- Scarichiamo la iso di Ubuntu:
# Posizioniamola in /boot/iso
sudo mkdir /boot/iso
# supponiamo di aver scaricato ubuntu 11.04 64 bit
sudo cp ~/Downloads/ubuntu-11.04-desktop-amd64.iso /boot/iso/
- Aggiungiamo a Grub:
# creiamo un nuovo file di configurazione
sudo cp /etc/grub.d/40_custom /etc/grub.d/50_iso_installer
sudo gedit /etc/grub.d/50_iso_installer
# copiamo in fondo al file queste righe:
menuentry "Natty ISO" {
# To install it:
# sudo umount -l /isodevice
set isofile="/boot/iso/ubuntu-11.04-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt --
initrd (loop)/casper/initrd.lz
}
# Salvare e digitare
sudo update-grub
- Rendiamo usabile l'installer:
# Dopo il boot della iso:
sudo umount -l /isodevice
Avremo cosi la possibilità di provare le iso senza dover masterizzare nulla e installarle ...
... e un sistema base per ripristinare eventuali problemi.
Per aggiungere altre voci/iso basta aggiungere un nuovo blocco al file 50_iso_installer
e poi:
sudo update-grub2
31 luglio 2011
11 luglio 2011
Php Develop Tool
- Ubuntu 11.04 - How to Install
- NetBeans 7.0 - How to Install
- Xdebug - How to Install
- MySql Workbench - How to Install
- FileZilla - How to Install
- Meld Diff File - How to Install
- Xdebug Settings:
Easy X-Debug Extension firefox / Chrome
Add this line to php.ini ( to enable var_dump enhanced ) : html_errors=1
- NetBeans Extension:
Explore From Here
Statusline Clock
Pomodoro Timer
- NetBeans Themes:
Dark Editor Theme:Twilight Theme
Enable system theme:
./netbeans --laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
- NetBeans 7.0 - How to Install
- Xdebug - How to Install
- MySql Workbench - How to Install
- FileZilla - How to Install
- Meld Diff File - How to Install
- Xdebug Settings:
Easy X-Debug Extension firefox / Chrome
Add this line to php.ini ( to enable var_dump enhanced ) : html_errors=1
- NetBeans Extension:
Explore From Here
Statusline Clock
Pomodoro Timer
- NetBeans Themes:
Dark Editor Theme:Twilight Theme
Enable system theme:
./netbeans --laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
22 giugno 2011
Magento - Override a controller
Take care that:
Some time events doesn't suit our secrets desires so ...
**Es.**
Suppose we want to override the AccountController under **Mage/Customer/controllers/AccountController.php**
**Our Module:**
- NameSpace Name: Trollycoke
- Module Name: Customer
We create a directory structure like this:
Our AccountController.php **must** include Magento Default one and extend it so ...
For the config.xml I found two ways to do that:
1. One with **route** tag directive --> **this way is good**
2. One with **rewrite** tag directive --> **this way create problems**
**1.** ****
In config.xml in frontend node:
**2.** ****
In config.xml in global node:
- Override a controller isn't a good idea: controllers are the most important part of code in a module and
override Magento Core Controller could create some problem in upgrading Magento.
- We should prefer add an observer that do some action on some events instead of override
Some time events doesn't suit our secrets desires so ...
**Es.**
Suppose we want to override the AccountController under **Mage/Customer/controllers/AccountController.php**
**Our Module:**
- NameSpace Name: Trollycoke
- Module Name: Customer
We create a directory structure like this:
app/code/local/Trollycoke/Customer/controllers/AccountController.php
app/code/local/Trollycoke/Customer/etc/config.xml
app/etc/modules/Trollycoke_Customer.xml
Our AccountController.php **must** include Magento Default one and extend it so ...
For the config.xml I found two ways to do that:
1. One with **route** tag directive --> **this way is good**
2. One with **rewrite** tag directive --> **this way create problems**
**1.** **
In config.xml in frontend node:
**2.** **
In config.xml in global node:
Iscriviti a:
Post (Atom)