tag:blogger.com,1999:blog-18800689767088499062024-02-08T05:50:48.356-08:00Simple Howtokrtapashttp://www.blogger.com/profile/00773330774108905768noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-1880068976708849906.post-91611095529124811692010-12-27T22:56:00.000-08:002010-12-27T22:56:11.009-08:00[kr-en05] Compile asterisk without internetSomeday I needed to configure a PBX in a server without Internet access; when I was compiling Dahdi, it showed me an error that I solved following next steps.
Comment in dahdi-linux-complete-2.2.0.2+2.2.0/linux/Makefile (the name of directory may change depending of your Dahdi version) some lines in the following way:
# Comment when there isn´t Internet access
#install-firmware:
#ifeq ($(krtapashttp://www.blogger.com/profile/00773330774108905768noreply@blogger.com0tag:blogger.com,1999:blog-1880068976708849906.post-58356059916157492182010-12-26T16:25:00.000-08:002010-12-26T16:25:04.882-08:00[kr-en04] Executing VM VirtualBox in backgroundIn order to start a virtual machine in VirtualBox from GUI is necessary to have the virtual machines manager open. When you need to start a virtual machine remotely and only has access from a console, we present an useful procedure to carry on.
Start virtual machine "CGUNO-CentOS-5.2". This has to be the same name assigned during VM creation.
$ VBoxHeadless --startvm "CGUNO-CentOS-5.2" --vrdp=krtapashttp://www.blogger.com/profile/00773330774108905768noreply@blogger.com0tag:blogger.com,1999:blog-1880068976708849906.post-63251399461445944022010-12-26T16:04:00.000-08:002010-12-26T16:19:20.027-08:00[kr-en03] Using wget and apt through proxyA lot of times is necessary to download some file or source code from command line, in a remote sever wich have access to Internet through proxy server, using commands such as wget and apt, in a distro like Debian.
Setting the HTTP_PROXY variable value were usefull in order to download a file using wget, but it wasn´t the same for apt.
# export HTTP_PROXY="http://proxyserver.com:port"
In some krtapashttp://www.blogger.com/profile/00773330774108905768noreply@blogger.com0tag:blogger.com,1999:blog-1880068976708849906.post-23707009572494349092010-12-25T20:39:00.000-08:002010-12-25T20:39:33.315-08:00[kr-en02] SSH without passwordSometimes is necessary to make backups between devices through some kind of script or web app. Is in this cases when password authentication becomes an obstacle for automatization and where is needed to use public and private keys. This time, we'll use a Debian distro, but it wont be different in another one.
Server IP:192.168.1.4
Server user:soporte
Client IP:192.168.1.99
Client user:krtapas
krtapashttp://www.blogger.com/profile/00773330774108905768noreply@blogger.com0tag:blogger.com,1999:blog-1880068976708849906.post-24358638795266106062010-12-25T19:42:00.000-08:002010-12-25T19:42:50.596-08:00[kr-en01] Recover MySQL root passwordIn case you've forgotten your MySQL root password, we'll show you some easy steps to set a new one. The process will be carry on with CentOS commands but it will be similar on another distro.
Stop MySQL service
# service stop mysqld
Start service with special parameters in wich you wont need any password
# mysqld_safe --skip-grant-tables --skip-networking --user=mysql &
[1] 29800
# Starting krtapashttp://www.blogger.com/profile/00773330774108905768noreply@blogger.com0