If you don't write it down somewhere...

Sunday, May 18, 2008

How to map persistent smb shares under linux

1 - How to map a share under linux command line.

I - Everything in Linux is all about the filesystem. So, first create a folder to wich later we will map the windows share:

cd /mnt
sudo mkdir myshare

Naming the folder you create on the linux machine with the windows share name is probably a good idea as one will be redirecting to the other.

II - here is the command to mount the share. Remember, if you want to be able to write, delete, modify files and folders in the windows machine the WINDOWSUSERNAME and WINDOWSPASSWORD you are supplying must have those permissions.

sudo mount -t cifs //IPOFTHEWINDOWSBOX/myshare /mnt/myshare -o username=WINDOWSUSERNAME,password=WINDOWSPASSWORD

III - Now problem is this mapping will be forgotten on next reboot. So how to make sure the mapping is performed upon poweron?

a) First create a hidden file (with a dot on the beginning) with the windows username and apssword:

Tuesday, March 11, 2008

Tif and BMP....

@echo off
:start
cls
@echo OPEN TIFF WITH:
@echo.
@echo 1 - Office Image
@echo 2 - Image Fax Viewer
@echo.
set /p userinp=Choose an Option (1-2) and press ENTER:
set userinp=%userinp:~0,1%
if "%userinp%"=="1" goto 1
if "%userinp%"=="2" goto 2


echo invalid choice
goto start
:2
call c:\software\tif\sanurifv.bat
pause
goto end
:1
call c:\software\tif\menu2.bat
goto end


:end
pause>nul

Sunday, March 9, 2008

CD-R drive or CD-RW drive is not recognized as a recordable device

CD-R drive or CD-RW drive is not recognized as a recordable device
Article ID
:316529
Last Review:October 16, 2007
Revision:3.0
http://support.microsoft.com/kb/316529/

Saturday, February 23, 2008

How to install VMWare Tools under CENTOS 5.1

1. Install software needed by VMware Tools

1.Install packages to build the kernel modules:

yum install gcc kernel-devel

2. Check the running kernel matches the kernel headers

uname -r # running kernel
rpm -q kernel-devel # installed kernel headers

3. If the two versions do not match, run

yum -y upgrade kernel kernel-devel
reboot

4. Find out where the kernel headers are (you may need this later)

ls -d /usr/src/kernels/$(uname -r)*/include


5. Install VMWARE TOOLS

5.1 # Extract VMware Tools to /tmp/

tar -C /tmp -zxvf VMwareTools-5.5.3-34685.tar.gz

5.2 Now run the installer

cd /tmp/vmware-tools-distrib
./vmware-install.pl

DONE!