Xanda - /dev/project Project Page. $lastdate Xanda RSS http://www.xanda.org/rss.php xanda http://www.xanda.org <![CDATA[Mount GMail to your Microsoft Windows]]> http://www.xanda.org/index.php?page=.$content_alias1 2008-09-04 17:18:50 2008-09-04 17:18:50 Hey.. you know what... You can you GMail as your personal file server and the most interesting part is, you can simply drag and drop your file in your Windows

Here is the simple howto:

  1. Download GMail Drive shell extension and install it
  2. Once finished, click on My Computer and you will see the GMail Drive icon is there.


  3. Double click on the icon and it will prompt you a login screen. Login using your gmail account and password


  4. Now, simply drag and drop a file to the GMail Drive


  5. Once you can see the file is in the GMail Drive, basicly you have uploaded the file to gmail


  6. Once finish uploaded, a new email will be arrive in your GMail account


  7. You can download back your file either using GMail Drive or webbased through GMail webmail


Enjoy ;) ]]>
xanda http://www.xanda.org <![CDATA[Use GMail SMTP to send mail in PHP]]> http://www.xanda.org/index.php?page=.$content_alias2 2008-08-31 01:19:02 2008-08-31 01:19:02 Maybe some of use might face difficulty to use mail() in PHP espesially when the server is behind firewall or the is no SMTP application running on the server.

In this case, you might need an external SMTP server to push the email. Here i would like to suggest you guys to use phpmailer class.

Here is the example to use it. But first, you need to download phpmailer class first and create the following file in the same directory with phpmailer

<?php
include("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth   = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // use ssl
$mail->Host = "smtp.gmail.com"; // GMAIL's SMTP server
$mail->Port  = 465; // SMTP port used by GMAIL server
$mail->Username   = "your_gmail_account@gmail.com"; // GMAIL username
$mail->Password   = "password"; // GMAIL password
$mail->AddReplyTo("other_email@hotmail.com","FirstName LastName"); // Reply email address
$mail->From = "your_gmail_account@gmail.com";
$mail->FromName = "FirstName LastName"; // Name to appear once the email is sent
$mail->Subject = "Subject of the email"; // Email's subject
//$mail->Body = "Hello World,<br />This is the HTML BODY<br />"; //HTML Body
$mail->AltBody = "This is a test email"; // optional, comment out and test
$mail->WordWrap = 50; // set word wrap
$mail->MsgHTML($body); // [optional] Send body email as HTML
$mail->AddAddress("how_to_crack@yahoo.com", "Xanda INC");  // email address of recipient
//$mail->AddAttachment("files/files.zip"); // [optional] attachment
$mail->IsHTML(true); // [optional] send as HTML
if(!$mail->Send())
echo "Mailer Error: " . $mail->ErrorInfo;
else
echo "Message sent!";
?>

Enjoy! ;)

]]>
xanda http://www.xanda.org <![CDATA[Optimize your Internet connection (TCP) and maximize your bandwidth in Linux]]> http://www.xanda.org/index.php?page=.$content_alias3 2008-05-17 15:21:36 2008-05-17 15:21:36 Simply modify you sysctl file and poof!

sudo gedit /etc/sysctl.conf

copy and past the following code at the last line on your sysctl file

# increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
# increase Linux autotuning TCP buffer limits
# min, default, and max number of bytes to use
# set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
# don't cache ssthresh from previous connection
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
# recommended to increase this for 1000 BT or higher
net.core.netdev_max_backlog = 2500
# for 10 GigE, use this, uncomment below
# net.core.netdev_max_backlog = 30000
# Turn off timestamps if you're on a gigabit or very busy network
# Having it off is one less thing the IP stack needs to work on
#net.ipv4.tcp_timestamps = 0
# disable tcp selective acknowledgements.
net.ipv4.tcp_sack = 0
#enable window scaling
net.ipv4.tcp_window_scaling = 1

tada… now run the following command

sudo sysctl -p
]]>
xanda http://www.xanda.org <![CDATA[Windows Mobile 5/6 Synchronization on Linux]]> http://www.xanda.org/index.php?page=.$content_alias4 2008-05-10 19:48:39 2008-05-10 19:48:39 “ActiveSync is a synchronisation program developed by Microsoft. It allows a mobile device to be synchronized with either a desktop PC, or a server running Microsoft Exchange Server, PostPath Email and Collaboration Server, Kerio MailServer, Zimbra or Z-Push.” (Wikipedia, 2008)

But how to synchronize your Windows Mobile device in Linux? The solution for ActiveSync alternative on Linux is SynCE. The purpose of the SynCE project is to provide a means of communication with a Windows Mobile device from a computer running Linux, *BSD or other unixes using USB or Bluetooth. One can then use one’s computer to browse files, install applications and synchronize contacts, calendar and tasks with their PIM application of choice.

Lets setup it on our machine. This tutorial is working on Ubuntu 8.04 (Hardy).

First add SynCE repository to your sources.list

echo "deb http://ppa.launchpad.net/synce/ubuntu hardy main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/synce/ubuntu hardy main" | sudo tee -a /etc/apt/sources.list

Now update your packages list

sudo apt-get update

As i mention before, Ubuntu 8.04 is a mistake. Ubuntu generic kernel might have some problems with USB driver. So here is the solution. First unload the old module

sudo rmmod rndis_host cdc_ether usbnet

Now, remove it

sudo rm /lib/modules/`uname -r`/kernel/drivers/net/usb/{rndis_host,cdc_ether,usbnet}.ko

Compile the new USB driver: usb-rndis-source and cdbs

sudo apt-get install usb-rndis-source cdbs
sudo module-assistant auto-install usb-rndis

Fixed! Now back to SynCE story… We need to install several libraries which are odccm, librra0-tools and librapi2-tools

sudo apt-get install odccm librra0-tools librapi2-tools

Now connect your device and run the following command

synce-pls

IF you can see the lisft of files on your device, your device is successfully connected to your Linux machine.

BUT if it returns you the following error message, you need to install SynCE-GNOME or SynCE-KPM to provide a password prompt on device connect.

. WARNING **: synce_info_from_odccm: Failed to get a connection for <device_name>: Not authenticated, you need to call !ProvidePassword with the correct password. pls: Could not find configuration at path '(Default)'

To start sync your device, you need OpenSync.

sudo apt-get install multisync-tools opensync-plugin-evolution opensync-plugin-synce

Wee..! Your device is ready to sync. Please refer to OpenSync page for tutorial on how to use OpenSync

]]>
xanda http://www.xanda.org <![CDATA[Xanara Rescue CD BETA 1]]> http://www.xanda.org/index.php?page=.$content_alias5 2008-03-31 03:02:24 2008-03-31 03:02:24 Screenshots:

Changelogs:

  • LiveCD splash screen installed
  • Xanara's flavour of Gnome splash screen installed
  • Xanara art work installed
  • ClamAV with ClamTK installed
  • Gparted installed
  • PhotoRec and TestDisk installed
  • CmosPwd installed
  • Icons on desktop with specific permission


Please leave your comment if you found any bugs, problems or difficulty.

Gentle reminder: This is Xanara Rescue CD BETA 1 discussion board. Thank you

]]>