tag:blogger.com,1999:blog-74917643263247755862024-03-12T20:06:12.154-07:00Welcome to Prabath's BlogPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-7491764326324775586.post-18446215800969615292015-07-22T20:40:00.002-07:002015-07-22T20:40:16.752-07:00Samba configuration with Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
After Six Year of Silent I thought to write new post about Samba installation<br />
<br />
1. Install Samba <br />
<code>
apt-get install samba samba-common python-glade2 system-config-samba </code><br />
<code> </code>
<br />
2. Backup the original Samba conf file <br />
<br />
<code>
mv /etc/samba/smb.cnf /etc/samba/smb.cnf.bak </code><br />
<code> </code>
<br />
3. Edit the smb.conf file <br />
<br />
<code>
vim /etc/samba/smb.cnf </code><br />
<br />
<code>and add the following lines
</code><br />
<code>
[global] <br />
workgroup = WORKGROUP <br />
server string = Samba Server %v <br />
netbios name = ubuntu <br />
security = user <br />
map to guest = bad user <br />
dns proxy = no <br />
#============================ Share Definitions ============================== </code><br />
<code><br />
[Anonymous] <br />
comment = Anonymous Share <br />
path = /samba/public <br />
browsable =yes <br />
writable = yes <br />
guest ok = yes <br />
public = yes <br />
read only = no <br />
create mask = 0777 <br />
directory mask = 0777
</code><br />
<code><br />
[prabath] <br />
comment = Prabaths profiles <br />
path = /home/prabath <br />
guest ok = no <br />
browseable = yes <br />
create mask = 0777 <br />
directory mask = 0777 <br />
valid users = prabath <br />
writable = yes <br />
</code><br />
<code>#for each profile please repeat the above [prabath] config <br />
</code>
<br />
<br />
4. Create Anonymous Folder
<br />
<code>
mkdir -p /samba/anonymous
</code>
<br />
<br />
<br />
5. Restart the Samba Server
<br />
<code>
service smbd restart
</code>
<br />
<br />
<br />
6. Add user to new user
<br />
<code>
sudo adduser prabath</code><br />
7. Adding user to Samba
<br />
<code>
smbpasswd -a prabath</code><br />
8. Finally restart Samba again
<br />
<code>
service smb restart
</code>
<code> </code>
</div>
Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com1tag:blogger.com,1999:blog-7491764326324775586.post-48112569881660569022009-07-29T07:07:00.000-07:002009-07-30T20:31:08.097-07:00Debian Sources List GeneratorRecently I was searching for /apt/etc/sources.list generator, finally I found it. Following site allow us to generate sources list with available mirrors. <br /><br /><a href="http://debgen.simplylinux.ch/">http://debgen.simplylinux.ch/</a>Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com42tag:blogger.com,1999:blog-7491764326324775586.post-4128983606034442092009-03-08T21:47:00.000-07:002009-03-11T09:02:39.805-07:00Top 100 Celebrities My Third Facebook ApplicationToday I had released my third Facebook application <a href="http://apps.facebook.com/top_celebrities/">Top 100 Celebrities</a>. You can send and share beautiful pictures of <a href="http://apps.facebook.com/top_celebrities/">Top 100 Celebrities</a> with your Facebook friends.<br /><br />Check your favorite celebrity is within <a href="http://apps.facebook.com/top_celebrities/">Top 100 Celebrities</a>. This is a cool Facebook application please try it from following link.<br /><br /><a href="http://apps.facebook.com/top_celebrities/">http://apps.facebook.com/top_celebrities/</a><br /><br />Following link direct you to about page of the <a href="http://apps.facebook.com/top_celebrities/">Top 100 Celebrities</a>.<br /><br /><a href="http://www.facebook.com/apps/application.php?id=53380848039">http://www.facebook.com/apps/application.php?id=53380848039</a><br /><br />I hope Facebook users all over the world may like it.Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com1tag:blogger.com,1999:blog-7491764326324775586.post-68524091357201858152009-02-15T19:39:00.000-08:002009-02-15T19:50:35.355-08:00My new Facebook applicationLast week I released my new Facebook application "<a href="http://apps.facebook.com/srilankan/index.php">Proud be a Sri Lankan</a>". It was developed from scratch and user has ability to send, receive beautiful pictures of Sri Lanka to their friends. I hope Sri Lankan Facebook users may like it. Please install application from following link.<br /><br /><a href="http://apps.facebook.com/srilankan/">http://apps.facebook.com/srilankan/</a><br /><br />About page of "Proud to be a Sri Lankan"<br /><br /><a href="http://www.facebook.com/apps/application.php?id=48180611068">http://www.facebook.com/apps/application.php?id=48180611068</a>Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com33tag:blogger.com,1999:blog-7491764326324775586.post-7590948271092413672008-11-21T04:41:00.000-08:002008-11-21T23:05:08.275-08:00CCleaner - It removes unused files from your systemRecently I came across a requirement where I need to cleanup temporary registry files in Windows Registry so I found a nice tool called CCleaner. Following link direct you to site of CCleaner.<br /><br /><a href="http://www.ccleaner.com/">http://www.ccleaner.com/</a>Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com1tag:blogger.com,1999:blog-7491764326324775586.post-21789606536038717282008-04-09T00:55:00.000-07:002008-04-09T01:38:47.590-07:00My First Facebook applicationI wrote a Facebook application in my lesser time, this allow user to write their profile using their mother tongue. I name it as "My Profile in My Language"<br /><br />It had translate into 6 languages including Sinhala, I hope it'll translate into more languages.<br /><br />Following link direct you to about page of the application<br /><a href="http://www.facebook.com/apps/application.php?id=9472450059">http://www.facebook.com/apps/application.php?id=9472450059</a><br /><br />You can add the application to your profile from following link<br /><a href="http://apps.facebook.com/myprofile-in-myword/">http://apps.facebook.com/myprofile-in-myword/</a><br /><br />Your welcome to use this application and review it.Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com5tag:blogger.com,1999:blog-7491764326324775586.post-54062140148720180842008-04-01T20:53:00.000-07:002008-04-01T20:59:15.492-07:00Download folder content from wgetRecently I found way to download folder content from wget, I know you already knew this commands but I thought to blog then I don't want to memorize it :-).<br /><br />You want to download all the gifs from a directory on an http server. You tried `wget http://www.server.com/dir/*.gif', but that didn't work because http retrieval does not support globbing. In that case, use:<br /><br /> wget -r -l1 --no-parent -A.gif http://www.server.com/dir/<br /><br />or if you want to download the whole folder content following is the command<br /><br /> wget -r -l1 --no-parent http://www.server.com/dir/<br /><br />reference http://www.gnu.org/software/wget/manual/wget.htmlPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com6tag:blogger.com,1999:blog-7491764326324775586.post-23830455112146581332008-03-28T19:50:00.000-07:002008-03-28T19:56:57.036-07:00Restore gnome-panelI came across an incident where I delete gnome panel from my gdm. I want to restore it after simple googling I found following three commands which help me to restore gnome panel.<br /><br />gnome-session-remove gnome-panel<br />gconftool-2 --recursive-unset /apps/panel<br />gnome-panel &Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com27tag:blogger.com,1999:blog-7491764326324775586.post-53805647887886417262008-03-01T19:04:00.000-08:002008-03-01T19:21:09.933-08:00Direct Rendering in Debian LennyRecently I was search in Google how to enable direct rendering in Debian Lenny finally I found nice tutorial which guide to install fglrx then direct rendering will enable in your computer with any trouble. Link is below mentioned. <br />NOTE : not necessary to do the step 1.2 if you had correctly done step 1.1 (except step 1.2 other steps are required.)<br /><br /><a href="http://wiki.cchtml.com/index.php/Debian_Installation_Guide">http://wiki.cchtml.com/index.php/Debian_Installation_Guide</a><br /><br />Finally type the following command and verify direct rendering is enable in your computer.<br /><br />#: glxinfo | grep direct<br />direct rendering: YesPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-28259481699068872062008-01-07T21:10:00.000-08:002008-01-07T21:21:11.773-08:00Google Web HistoryRecently I had found about Google web history, which enable us to store our searches in Google repositories. You can logged to web history from following link using your Gmail account.<br /><br /><a href="http://www.google.com/history/">http://www.google.com/history/</a><br /><br />Store your web history in Google repositories and flush your local web history then enjoy searching in Google without any doubt :).Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com1tag:blogger.com,1999:blog-7491764326324775586.post-74054364215928681812007-11-26T20:43:00.000-08:002008-01-06T20:30:15.406-08:00Remove unwanted CVS Repositories from Eclipse<span>Recently I wanted to remove unwanted CVS Repositories which is located in Eclipse. The removing method is as followed.<br /></span><ol><br /><li>First go to "Window"->"Custom Perspectives"->press "CVS checkbox"->then Press "Ok" </li><br /><li>Then go to "Window"->"Open Perspective" and press "Other option"-> select "CVS Repository Exploring" and press "Ok"</li><br /><li>Finally right click on Unwanted Repository and Discard that Location</li><br /></ol> Note: First you have to unlink projects that is linked to this particular repository which are located in your workspace otherwise you can't remove particular repository from Eclipse.<span><br /><br /></span>Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com111tag:blogger.com,1999:blog-7491764326324775586.post-68545069899297264222007-11-21T01:39:00.001-08:002008-12-10T23:31:01.909-08:00Google Summer of Code (GSoC) 2007<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_wNb5UAakuhk/R0QALPmWA_I/AAAAAAAAAAU/RHPWmV5W8XE/s1600-h/gsoclogo07square.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_wNb5UAakuhk/R0QALPmWA_I/AAAAAAAAAAU/RHPWmV5W8XE/s320/gsoclogo07square.jpg" alt="" id="BLOGGER_PHOTO_ID_5135229668275127282" border="0" /></a><br />Google Summer of Code (GSoC) 2007 is over and I'm one of the proud GSoC 2007 recipient, I had develop a project for most renowned web based disaster management system which is "Sahana" (<a href="http://http//www.sahana.lk">http://www.sahana.lk</a>) . This image is GSoC 2007 official logo and I received GSoC T-Shirt and my Certificate from Google last Saturday. T-Shirt contain this logo and sometimes I feel this logo is suitable for Gals because it contain bunch of flowers. Finally I would like to thank for Google and Sahana for offering me GSoC 2007.Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-89541756227235482542007-11-13T01:02:00.000-08:002007-11-13T01:17:37.041-08:00How to install Java in Firefox on Linux platformFirst of all you have to install Java Runtime Envirnmonet to your Linux Platform from following link.<br /><br /><a href="http://www.java.com/en/download">http://www.java.com/en/download</a><br /><br />I'm installing java in /usr/java/ folder please install it in your preffered path. Then do following three steps.<br /><br /><ol><li>Open Terminal</li><br /><li>Change to your Firefox plugins directory (For me path is : /usr/lib/firefox/plugins)</li><br /><li>Issue the following command: sudo ln -s /usr/java/jre1.6.0_03/plugin/i386/ns7-gcc29/libjavaplugin_oji.so</li><br /></ol><br /><br />Above installation path can be differ from your installation and jre version also can be differ.<br /><br />Finally restart your Firefox browserPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-51731258811659149622007-10-29T22:20:00.001-07:002010-12-01T02:20:15.814-08:00Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-43960222412991543432007-10-29T03:05:00.000-07:002007-10-29T22:33:26.061-07:00Sri Lanka win Hong Kong SixesSri Lanka Cricket team beat ALL STAR team at the "Hong Kong Sixes" cricket tournament and became champions<br /><br />Congratulations Sri Lanka Six-Side Cricket Team<br /><br /><a target="_blank" href="http://content-www.cricinfo.com/other/content/current/story/317470.html">http://content-www.cricinfo.com/other/content/current/story/317470.html</a>Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-50717754961295796132007-10-07T21:19:00.000-07:002007-12-16T22:38:37.562-08:00How to create public_html in DebianFirst of all check whether enable-modules under your apache server<br />for that<br />goto /etc/apache2/mods-enabled/ folder and check userdir.conf, userdir.load modules are enabled by simply typing ls command<br /><br />if not then goto /etc/apache2/mods-enabled and create symbolic link as follow<br /><br />sudo ln -s ../mods-available/userdir.load<br />sudo ln -s ../mods-available/userdir.conf<br /><br />Finally create public_html folder under your home directory an give full access permission to it<br />then Please restart your apache server (sudo /etc/init.d/apache2 restart)<br /><br />then access it through following link<br /><br />http://localhost/~[your_home_directory_name]/ (for me it's http://localhost/~prabath/)<br /><br />For Ubuntu also if public_html doesn't work do above instruction to enable it.Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com7tag:blogger.com,1999:blog-7491764326324775586.post-22981606495117093872007-07-20T20:33:00.000-07:002007-07-20T20:36:47.252-07:00How to remove duplicates from PHP arrayWe can remove duplicate elements from PHP array by using <code><span class="html"><span class="keyword"></span><span class="default">array_unique</span><span class="keyword">() </span></span></code>function there are many functions available in PHP to manipulate arrays.Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-23358657356718546142007-06-01T06:42:00.000-07:002007-06-01T06:44:33.224-07:00Sahana translate into Sinahla languageSahana Disaster Management System is translated into our mother tongue which is Sinhala LanguagePrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-17213472000709009682007-04-24T23:11:00.000-07:002007-04-25T01:28:12.044-07:00Hooray Sri Lanka selected to Cricket World Cup Final !!Sri Lanka cricket team beat New Zealand at the world cup Semi Final.<br />Congratulations Sri Lanka Cricket TeamPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-17084128017610717142007-04-19T22:57:00.000-07:002007-04-19T23:04:17.368-07:00Localize gnome geditFollowing link help you to localize( Translate to your mother tongue) gedit in gnome<br /><br />http://l10n.gnome.org/module/gedit<br /><br />But first you have to configure your locale setting into your mother tongue. using 'sudo dpkg-reconfigure locales' command in debian.<br /><br />Try this, it is very interestingPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-79874374297578782092007-04-01T04:04:00.000-07:002007-04-01T04:10:24.495-07:00Gmail Drive for Linux gmailfsGmailfs software is similar to Gmail Drive. Which has capability to upload files to your gmail account. Try gmailfs, I also tried but when mounting, problem occurred. Try to find method to configure gmailfs without any problem and let us know.<br /><br />cheersPrabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0tag:blogger.com,1999:blog-7491764326324775586.post-17039606109765890262007-03-15T22:53:00.000-07:002007-03-15T23:02:02.849-07:00Insert 1 million data to mysql table within 4 miniutesI had inserted 1 million data to mysql table within 4 minutes using for loop which is wirreten in PHP. Code is mention below.<br /><br /><?php<br />mysql_connect("localhost", "root", "");<br />mysql_select_db("sahana");<br />mysql_query("INSERT INTO `field_options` VALUES ('opt_skill_type', 'AUT4', 'AUTOMOTIVE Skilled - Tire Repair')");<br /><br />for ($counter = 1; $counter <= 500000; $counter += 1) {<br /> <br /> echo $counter;<br /> mysql_query("INSERT INTO `field_options` VALUES ('opt_skill_type', 'AUT4', 'AUTOMOTIVE Skilled - Tire Repair')"); <br />}<br />?><br /><br />I had execute this file two times then it is 1 million of data this type of methods you can use for testing purpose.<br /><br />See how exciting is these kind of crazy things.Prabathhttp://www.blogger.com/profile/17314232290222857908noreply@blogger.com0