Instalacion y Configuracion
http://www.scribd.com/doc/94118713/Fundamentos-Basicos-Del-Sistema-Mikrotik-Routeros
lunes, 15 de octubre de 2012
Ver Espacio utilizado Linux
If you want to list all the subdirectory sizes under /home, run the following command:
# du -sh /home/*
# du -sh /home/*
martes, 18 de septiembre de 2012
Reset Root Password Linux Centos
Help! I forgot my root password. How do I log in now?
You can log in using single-user mode and create a new root password.
To enter single-user mode, reboot your computer. If you use the default boot loader, GRUB, you can enter single user mode by performing the following:
- At the boot loader menu, use the arrow keys to highlight the installation you want to edit and type [A] to enter into append mode.
- You are presented with a prompt that looks similar to the following:
grub append> ro root=LABEL=/
- Press the Spacebar once to add a blank space, then add the word single to tell GRUB to boot into single-user Linux mode. The result should look like the following:
ro root=LABEL=/ single
- Press [Enter] and GRUB will boot single-user Linux mode. After it finishes loading, you will be presented with a shell prompt similar to the following:
sh-2.05b#
- You can now change the root password by typing
You will be asked to re-type the password for verification. Once you are finished, the password will be changed. You can then reboot by typing reboot at the prompt; then you can log in to root as you normally would.passwd root
miércoles, 11 de julio de 2012
For the rate by min in Elastix Billing
For the rate by min in Elastix billing, do the following:
Go to /var/www/html/modules/billing_report
Edit index.php
Locate the following lines (249 and 260):
$charge=(($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(($cdr[8]/60)*$rate)+$rate_offset;
And replace by:
$charge=(ceil($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(ceil($cdr[8]/60)*$rate)+$rate_offset;
Go to /var/www/html/modules/billing_report
Edit index.php
Locate the following lines (249 and 260):
$charge=(($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(($cdr[8]/60)*$rate)+$rate_offset;
And replace by:
$charge=(ceil($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(ceil($cdr[8]/60)*$rate)+$rate_offset;
jueves, 10 de mayo de 2012
Reset Admin Password (Untangle)
To reset the password for an administrator's account:
- Ensure that the Untangle Server is turned on.
- Connect a monitor, keyboard, and mouse to the Untangle Server. The monitor displays the Untangle Client.
- In the Navigation bar, click the Recovery Utilities button.
- When the Recovery window appears, click the Yes button. A terminal window appears.
- Scroll to Reset Administrative Accounts, and hit Enter. The following question appears: Reset administrative accounts to factory defaults (admin/passwd)?.
- Select Yes. The Untangle Server resets the password and informs you of the newly-assigned password. Once you log in to the Untangle Server using that newly-assigned password, the Untangle Client forces you to assign a new password.
jueves, 26 de abril de 2012
Install Gnome3 Ubuntu 12.04
sudo apt-get install gnome-shell gnome-theme-standard gnome-tweak-tool gnome-contacts gnome-sushi dconf-tools
If you want the most extensions to work with Gnome Shell 3.4 I'll suggest PPA: http://ppa.launchpad.net/webupd8team/gnome3/ubuntu
As most of the extensions on gnome extensions site is not updated for Gnome Shell 3.4.
To uninstall Unity completely and run Gnome Shell only:
sudo apt-get purge appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
unity-lens-music unity-lens-applications unity-greeter unity-common unity-asset-pool unity-2d-launcher unity-2d libunity-misc4 libunity-2d-private0 gir1.2-unity-4.0 liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 overlay-scrollbar appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu compiz compiz-plugins-main-default libcompizconfig0
sudo apt-get purge lightdm
sudo apt-get install lightdm
Advisable: removing all local config files/folders/other local settings from "home" users. (I couldn't get Gnome Shell starting without doing this step at current state.
If you want to remove qt libs that are related to unity and other ubuntu applications:
sudo apt-get remove libqt4*
Note: if you have applications like vlc, ubuntuone and other qt depended. they will uninstalled as well.
If you want the most extensions to work with Gnome Shell 3.4 I'll suggest PPA: http://ppa.launchpad.net/webupd8team/gnome3/ubuntu
As most of the extensions on gnome extensions site is not updated for Gnome Shell 3.4.
To uninstall Unity completely and run Gnome Shell only:
sudo apt-get purge appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
unity-lens-music unity-lens-applications unity-greeter unity-common unity-asset-pool unity-2d-launcher unity-2d libunity-misc4 libunity-2d-private0 gir1.2-unity-4.0 liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 overlay-scrollbar appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu compiz compiz-plugins-main-default libcompizconfig0
sudo apt-get purge lightdm
sudo apt-get install lightdm
Advisable: removing all local config files/folders/other local settings from "home" users. (I couldn't get Gnome Shell starting without doing this step at current state.
If you want to remove qt libs that are related to unity and other ubuntu applications:
sudo apt-get remove libqt4*
Note: if you have applications like vlc, ubuntuone and other qt depended. they will uninstalled as well.
jueves, 12 de abril de 2012
Asterisk Local Extension
[from-internal-block]
exten => _1XXX,1,Log(DEBUG,Dialing local extension ${EXTEN})
exten => _1XXX,n,Dial(SIP/${EXTEN},${DIAL_TOUT},htwk)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?lbl_dial-ext_1:)
exten => _1XXX,n(lbl_dial-ext_0),Hangup()
exten => _1XXX,n(lbl_dial-ext_1),MailboxExists(${EXTEN})
exten => _1XXX,n,GotoIf($["${VMBOXEXISTSSTATUS}" = "FAILED"]?lbl_dial-ext_2:)
exten => _1XXX,n,VoiceMail(${EXTEN},u)
exten => _1XXX,n,GotoIf($["${VMSTATUS}" = "FAILED"]?lbl_dial-ext_3:)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_3),Log(ERROR,Caller ${CALLERID(all)}
failed to leave a voicemail for ${EXTEN} mailbox.)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_2),Hangup()
exten => _1XXX,1,Log(DEBUG,Dialing local extension ${EXTEN})
exten => _1XXX,n,Dial(SIP/${EXTEN},${DIAL_TOUT},htwk)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?lbl_dial-ext_1:)
exten => _1XXX,n(lbl_dial-ext_0),Hangup()
exten => _1XXX,n(lbl_dial-ext_1),MailboxExists(${EXTEN})
exten => _1XXX,n,GotoIf($["${VMBOXEXISTSSTATUS}" = "FAILED"]?lbl_dial-ext_2:)
exten => _1XXX,n,VoiceMail(${EXTEN},u)
exten => _1XXX,n,GotoIf($["${VMSTATUS}" = "FAILED"]?lbl_dial-ext_3:)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_3),Log(ERROR,Caller ${CALLERID(all)}
failed to leave a voicemail for ${EXTEN} mailbox.)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_2),Hangup()
Suscribirse a:
Entradas (Atom)