loadYOURSELF

loadYOURSELF

Browsing Posts tagged example

First of all you need to share some directories on the windows machine then you can use,


example info:

WinMachine = 10.1.1.10
user=test
pass=test
windows share name= sharefolder


mkdir /mnt/winshare

mount -o username=<username>,password=<password> //<windows-machine>/<share name> /mnt/<mount point on the linux machine>

-> with example info

mount -o username=test,password=test //10.1.10.10/sharefolder /mnt/winshare

or

this also works, (accessing full disk)

mount -o username=test,password=test //10.1.10.10/c$ /mnt/winshare

hope this helps to connect your linux pc to windows machine.

I am generally writing linux drivers for embedded systems for three years, and I am using this sample driver interface for the startup. In this blog entry I will give steps for sample linux driver implementation and sample files.
First of all we need a “mydriver.h” for header definitions,

#ifndef __LOADYOURSELF_MYDRIVER__
#define __LOADYOURSELF_MYDRIVER__

///@file mydriver.h
///@brief mydriver header file for mydriver.

#ifndef __KERNEL__
# define __KERNEL__
#endif
#ifndef MODULE
# define MODULE
#endif

you can use watch command directly like this
watch –interval=1 “ps aux|grep xinetd”
to watch xinetd at a 1 second interval.
or you can define a script like this,
vi /bin/wh
press i to enter insert mode. And write

watch –interval=1 $1

then write :wq to save file
change executable attribute with chmod 755 /bin/wh
use it like this

wh “ps uax|grep xinetd”

Buy me a beer