Buy On2 Flix Now!
On2 Flix Affiliate button

ls: .: Stale NFS file handle + Samba + Windows 2003 Server

Posted by: Ritesh Jariwala on 8 June 2006

It has been long time since i have configured anything on linux machine. It has been many times we need to do networking between windows and linux machine, it can be done with samba very easly as per we all know. Anybody who don’t know what is samba, then visit Samba Website for more infromation on samba.

I have windows 2003 server which is usually in networking with linux machine. Problem has been started when i mounted windows 2003 share on linux. When i do “ls” command its giving me “ls: .: Stale NFS file handle”, this error is most common error found by everybody. I tried to find solution for it but no luck. Some how i have manage to get the solution.

There are one important step when you issue smbclient. Use following smbclient command:

smbclient -L WindowsMachineName -U WindowsMachinePassword

Do not use ip instead of windows machine name. Always use Machine name.

Now next step is to do mounting of windows share to linux.

mount -t smbfs -o username=”MachineName\Username”,password=”Password”
//MachineIP/SharedName /mnt/SharedDirectory

Create same sharenamed directory inside your /mnt directory. Suppose you have sharename “abcd” on windows machine then create directory “abcd” inside the /mnt directory of linux.

Now use the following mount command to mount the windows share.

After issue above command try to do ls /mnt/Shared Directory in our case it will be /mnt/abcd, you will probably get this error:
“ls: .: Stale NFS file handle”

This is where you mostly stuck and start looking or finding solution for it.

Lets solve it..here is the most common solution that works for me.

Solution:
Just a quick note in relation to Windows 2003 Servers.

You may receieve this error message if your server is “Digitally signing” communications.

To disable this, alter two policies, in the Default Domain Controller Security Settings. Under Local policies, Security Options.

Disable Microsoft network server: Digitally sign communications (always)
Disable Microsoft network server: Digitally sign communications (if client agrees)

Remember to run gpupdate.exe when finishes or you’ll have to wait for Windows to do it at the scheduled interval.

After you did this umount that shared on linux and mount it again.

If you do now ls command, You can see all directories and files of your windows shared on mounted directory in linux. I hope this can be usefull to everybody who facing same problem.

Post your comment if you are having still difficulty or another kind of solution for same situation.

Note: I assume who are reading this, knows already how to install, setup and configure samba.

Posted in Linux | 0 Comments

30 Ajax Tutorials

Posted by: Ritesh Jariwala on 19 March 2006

Max Kiesler has put together a nice Round-up of 30 Ajax Tutorials in which he scoured the web to find the various tutorials on parts of Ajax out there.

AJAX Client-Server Communication Tutorials

AJAX Drag and Drop Tutorials

AJAX Form Tutorials

AJAX File Uploader Tutorial

AJAX Framework and Toolkit Tutorials

Ajax Getting Started Tutorial

Ajax Image Gallery Tutorial

Ajax Keyword Suggest Tutorials

AJAX Live Search Tutorials

Ajax Rounded Corner Tutorials

Ajax Sorting Tutorial

Ajax Tabbed Pages Tutorials

Posted in AJAX | 6 Comments

Stream Flv With PHP

Posted by: Ritesh Jariwala on 3 November 2005

There is good thread going in chattyfig mailing list regarding how to do streaming of flv using php. I had came to know that new version Buraks flvmdi flv metadata injector can be easly get the times and poistions of each frames of flv in a array. I am able to create an example video player which can request the flv file and seek, stream & play it from any given location using server side scripting php.

Its very important to insert metadata into flv using flvmdi. If your webserver is windows based then flvmdi is going to be very usefull. You can easly execute following command to insert metadata into flv.

Following PHP Code can be execute any command on shell:

ExecShellCommand(”flvmdi27b.exe inputflvfile outputflvfile /k”, true);

function ExecShellCommand($command, $hide=true) {
if (!($p=popen(”($command)2>&1″,”r”))) return 126;
while (!feof($p)) {
$l=fgets($p,1000);
if (!$hide) print $l;
}
return pclose($p);
}

I had used Flash Video Player 2.2 done by Jeroen Wijering.

Download an example of all sources.
Download Buraks Flvmdi7b.
Download Flv Player 2.2

The only drawback is that Buraks Flvmdi is only available for windows.

I think if anyone write down for linux then it will be going to be huge. I hope someone can do something about it. :)

You can also check out same efforts by Stefan Richter on his weblog & Brad Murray on his weblog.

I think this will be really good to cut load on fcs for flv streaming and also able to save bandwidth of fcs.

Posted in Flash, Flashcom | 1 Comment

Web 2.0 Conference & Video of Kevin Lynch’s Web 2.0 Session

Posted by: Ritesh Jariwala on 8 October 2005

Macromedia has annouced the Flex 2.0 family of technologies for developer application for the Flash Platform. These included Flash Player 8.5, ActionScript 3, Flex Builder 2.0, Flex Framework 2.0 and Flex Enterprise services.

Mark Anders and Sho Kuwamoto both have great posts on the announcement of Flash Player 8.5, ActionScript 3, Flex Builder 2.0, Flex Framework 2.0 and Flex Enterprise services.

Kevin Lynch all of this during a session at the Web 2.0 conference in San Francisco yesterday. Mike Chamber was there and recorded the 15 minutes worth video of Kevin Lynch speach session. Kevin also saw up how to make RIA in 15 minutes with the flex 2 with the use of its IDE. (Sure you will like that one).

Anyone can download video from google video link or direct link of mp4 format of video from Mike Chamber Weblog.

Now i am thinking that as freelancers or developers need to be little fast in checking and learning new technologies, beceause as soon as anyone start on making application using latest technology, there will be new technology waiting on next few sort weeks.

Posted in Macrodobia | 0 Comments

Sending a BitmapObject via Flashcom with use of getPixel & SetPixel Method

Posted by: Ritesh Jariwala on 19 September 2005

I had looking around on www.flashcomguru.com for some other thing. I had found that stoem posted that sending bitmap object via flashcom don’t working. I also tested out by sending as sharedobject using send method on client side. It is always traced as undefined.

There is an alternative method for it to send the bitmap object to all connected client using the getPixel and setPixel method by using new Bitmap API in Flash 8. This method is relatively slow in case of big image beceause it has to pass the large pixel array with the color information to all client. Client will process the pixel array with color information to generate bitmap on client side.

Here is the direct link of example: Screen Test
(Note: This example will take a snapshot from the webcam if you have connected and send it to all clients connected to server.)

Here is the fla link of example: Download Fla

I am also looking for any other solution or to speed up the processing of color information array. This Bitmap object will be very usefull to take a snap of any movie clip that run in flash screen and able to deliver to all client via flash communication server.

Posted in Flash, Flashcom | 0 Comments

« Previous PageNext Page »