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:
If you don't write it down somewhere...
Sunday, May 18, 2008
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
: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 |
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!
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!
Wednesday, October 31, 2007
How to access a windows share from an UBUNTU box
To access a windows share from ubuntu you must first:
1) Create a folder under the mount folder:
2) Make sure you have smbfs (samba smb file system support) installed:
sudo apt-get install smbfs
NOTE: samba server is not needed running.
3) Create the mount:
mount -t smbfs -o username=mike,password=128dy8 //machinenameorip/share
4) If you are connecting to a Windows 2003 server box it may require you to use enctryption. If so you can do this:
try mount -t cifs //yoursever/yourshare /mnt/somepath -o username=validserveraccount
1) Create a folder under the mount folder:
sudo mkdir /mnt/music
2) Make sure you have smbfs (samba smb file system support) installed:
sudo apt-get install smbfs
NOTE: samba server is not needed running.
3) Create the mount:
mount -t smbfs -o username=mike,password=128dy8 //machinenameorip/share
4) If you are connecting to a Windows 2003 server box it may require you to use enctryption. If so you can do this:
try mount -t cifs //yoursever/yourshare /mnt/somepath -o username=validserveraccount
Tuesday, October 30, 2007
Installin MarkVision Professional on UBUNTU 7.10
How to:
1) Untar the package:
tar -zxvf markvision-pro-linux-glibc2-x86.tar.gz
2) Install Sun Java:
apt-get install sun-java6-jre
3) Install RPM & alien (alien is RPM support for debian based distributions)
sudo apt-get install rpm
sudo apt-get install alien
4) Convert the rpm package to a Debian package:
sudo alien -k --scripts markvision_pro-MVPServer-11.1-1.i386.rpm
5) Install the Debian Package
sudo dpkg -i markvision-pro-mvpserver_11.1-1_i386.deb
6) Start configuration of MVPPro:
sudo /usr/local/markvision_pro/setup.mvjserver
7) Point to the java machine executable:
/usr/lib/jvm/java-6-sun-1.6.0.03/jre/bin/java
8) You Should be done!!!
MS
1) Untar the package:
tar -zxvf markvision-pro-linux-glibc2-x86.tar.gz
2) Install Sun Java:
apt-get install sun-java6-jre
3) Install RPM & alien (alien is RPM support for debian based distributions)
sudo apt-get install rpm
sudo apt-get install alien
4) Convert the rpm package to a Debian package:
sudo alien -k --scripts markvision_pro-MVPServer-11.1-1.i386.rpm
5) Install the Debian Package
sudo dpkg -i markvision-pro-mvpserver_11.1-1_i386.deb
6) Start configuration of MVPPro:
sudo /usr/local/markvision_pro/setup.mvjserver
7) Point to the java machine executable:
/usr/lib/jvm/java-6-sun-1.6.0.03/jre/bin/java
8) You Should be done!!!
MS
Subscribe to:
Posts (Atom)