Monday, November 22, 2010

Xdebug for LAMPP 1.7.3a

I found good solution for include xdebug to LAMPP with compiling steps.
http://dev.digi-corp.com/2009/02/xdebug-install-with-xampp-on-ubuntu/
But better is just download as mentioned on
http://www.apachefriends.org/f/viewtopic.php?p=162080&sid=7311d338c7837dc2964f0d46bd44f978 
From Komodo site
http://code.activestate.com/komodo/remotedebugging/ 

Localhost as a server on LAN with LAMPP solution

This works on Ubuntu 10.10 64bit with Lampp 1.7.3a installed in /opt/. If you want to be your localhost computer httpd server for LAN change ServerName in /opt/lampp/etc/httpd.conf. First check your IP on LAN with ifconfig. If DHCP gives you IP, then it possible to fix IP by MAC address.
ifconfig wlan0
gedit /opt/lampp/etc/httpd.conf
ServerName 192.168.0.168:80

Saturday, November 06, 2010

Xampp on Ubuntu maverick 10.10 64 bit

* downloaded development package and stable package
* extracted to /opt

sudo /opt/lampp/lampp start 
causes mysql was not started with following error in /opt/lampp/var/mysql/copmuter.err
101106 20:18:59 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
101106 20:18:59 [Note] Plugin 'FEDERATED' is disabled.
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
101106 20:18:59 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
101106 20:18:59  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
101106 20:18:59 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/ms-HP-620.pid ended 

following helped:
 sudo chown -R nobody /opt/lampp/var/mysql

Monday, September 20, 2010

Configure LAMP on Ubuntu 10.04 to send email via PHP mail function

edited 2010-11-08 former guide doesn't work for me more (changed to ubuntu 10.10 64b lampp  1.7.3a) but this helped me http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/

---- OLD ----
Lampp comes like standalone package without need to reconfigure something. It runs out of box. But If your Ubuntu installation has no configured mail server, it is problem to send mails via PHP mail function. Here is quick solution how use Gmail SMTP server to send emails from localhost:

sudo apt-get install ssmtp

sudo gedit /etc/ssmtp/ssmtp.conf
edit variables hostname, FromLineOverride
hostname=smtp.gmail.com
FromLineOverride=YES

sudo gedit /opt/lampp/etc/php.ini
add or change following variables in php.ini
smtp_port = 465
sendmail_path =/usr/sbin/ssmtp -t

Restart lampp
sudo /opt/lampp/lampp restart

create php mail testing script like:

$additional_headers = 'From: michaeljackson@heaven.org' . "\r\n";
$res = mail('recipient@domain.com','test','test body', $additional_headers);
var_dump($res);
?>


$res should be TRUE after executing and check out your mail mailbox, there should be something like this:

Thanks to this forum post.

Saturday, September 18, 2010

Colorfull gnome terminal

Most popular distro Ubuntu in current version 10.04 comes with gnome terminal as default. But colors have gone. Gnome terminal uses colors for ls listing. But to less.
Edit your .bashrc

"gedit ~/.bashrc"

Allow force_color_prompt=yes, probably just remove opening #
"force_color_prompt=yes"

I altered the color schema as well. I like white on black background.
"Edit -> Profile settings -> Colors" - choose your desired built-in scheme or make your own

Wednesday, December 02, 2009

ubuntu Mobil internet with Windows mobile 6.1

1. Open Synaptic and install the following packages:
• bluez-utils
• bluez-passkey-gnome
• gnome-bluetooth
• bluez-pin*

2. Turn your phone's BT connection and set its visibility to 'Show to all' or equivalent.

3. Open a terminal and type:

Code:
hcitool scan
You should see something like:

Code:
Scanning ...
00:0E:07:37:7C:BD 6230i
(Your device identification will be different)

4. Open /etc/bluetooth/hcid.conf in a text editor and set:
autoinit yes
security auto
pairing multi
passkey whatever-you-want

5. Press ALT+F2 and run the

Code:
bluetooth-applet
6. On your mobile phone, go to bluetooth settings, search for a new device and add your computer and pair it using the passkey you set up before

7. On your mobile phone to Start->Programs->Internet Sharing, choose Bluetooth PAN, and your NetworkConnection (Mine is T-Mobile GRPS/EDGE), and choose Connect

Open a terminal:

8. sudo modprobe bnep

9. sudo pand --connect 00:0E:07:37:7C:BD

10. sudo ifconfig bnep0

11. sudo ifup bnep0

It should assign you an IP address automatically. And thats it!

I'm actually writing this guide using my internet over bluetooth, so I know it works for sure!

I hope this helps1. Open Synaptic and install the following packages:
• bluez-utils
• bluez-passkey-gnome
• gnome-bluetooth
• bluez-pin*

2. Turn your phone's BT connection and set its visibility to 'Show to all' or equivalent.

3. Open a terminal and type:

Code:
hcitool scan
You should see something like:

Code:
Scanning ...
00:0E:07:37:7C:BD 6230i
(Your device identification will be different)

4. Open /etc/bluetooth/hcid.conf in a text editor and set:
autoinit yes
security auto
pairing multi
passkey whatever-you-want

5. Press ALT+F2 and run the

Code:
bluetooth-applet
6. On your mobile phone, go to bluetooth settings, search for a new device and add your computer and pair it using the passkey you set up before

7. On your mobile phone to Start->Programs->Internet Sharing, choose Bluetooth PAN, and your NetworkConnection (Mine is T-Mobile GRPS/EDGE), and choose Connect

Open a terminal:

8. sudo modprobe bnep

9. sudo pand --connect 00:0E:07:37:7C:BD

10. sudo ifconfig bnep0

11. sudo ifup bnep0

It should assign you an IP address automatically. And thats it!

I'm actually writing this guide using my internet over bluetooth, so I know it works for sure!

I hope this helps

Thursday, November 12, 2009

Resolve failed connect from Wii Mplayer CE to Samba server

In HomeBrewChannel I've got installed MPlayer CE. This software enables connect to samba shares. Follow these steps to working this connection success full:

1. configure samba access on SD cars, in file /apps/mplayer ce/smb.conf according to readme from mplayer distribution
2. change parameter security in /etc/samba/smb.conf on your pc (samba server)
set security=user
3. voila you got it