# mount -t vfat /dev/hda1 /mnt/MS_Windows
Thursday, June 30, 2011
Mounting FAT or VFAT on Linux
Sunday, July 4, 2010
Accessing Linux Ext2 and Ext3 from Windows
Friday, December 18, 2009
Using CentOS GUI Package Manager
Step 1: Establish the Remote Connection
- Using Putty, Xming to forward X11 (For Windows Terminal)
- Speeding and Compressing X forwarding Traffic (For Linux Box)
Tuesday, September 22, 2009
Installing xrdp on Fedora 11
Step 2: Create soft link to startup xrdp automatically in case of reboot
# ln -s ../init.d/xrdp s99xrdp
# service xrdp restart
Step 3: Configure the firewall via System > Administration > Firewall
Allow port 3389 (TCP) in as shown below
Wednesday, September 2, 2009
Manually Changing FAT permission on USB
# mkdir -p /media/usb
# mount -t vfat -o umask=000,uid=youruserid,gid=users /dev/sdb1 /media/usb
The results will be
drwxrwxr-x 3 youruserid users 12288 1970-01-01 07:30 usb
If you want to mount the usb and only allows yourself and users in the group to view it, you can use umask=007
# mount -t vfat -o umask=007,uid=youruserid,gid=users /dev/sdb1 /media/usb
Notes on umask:
To calculate permissions which will result from specific UMASK values, subtract the UMASK from 666 for files and from 777 for directories.
If you want all files created with permissions of 666, set your UMASK to 000. Alternatively, if you want all files created with permissions of 000, set your UMASK to 666.
Thursday, August 20, 2009
NTFSProgs to fix NTFS Issues (Part 3)
Note 1: To Clone Partition, you can use the commands
# ntfsclone --save-image /dev/sdc1 -output ntfs-image-file.img
Note 2: To overwrite the Partition, you can use the commands
# ntfsclone --save-image /dev/sdc1 --0verwrite ntfs-image-file.img
Note 3: To create an uncompress image with the option to mount using loopback
# ntfsclone /dev/sdc1 --output ntfs-image-file.img
(without the --save-image)
# mkdir /mnt/nfs-mount-point
# mount -0 rw,loop -t ntfs-image-file.img /mnt/nfs-mount-point
(You can edit, delete, move files)
Monday, August 17, 2009
NTFSProgs to fix NTFS Issues (Part 2)
Note 1: Command line copying using ntfscp
# ntfscp /dev/sdc1 /home/user/new_test.ini test.ini
(Copy the new_test.ini from /home/user as test.ini to the root of /dev/sdc1 NTFS Volume
Note 2: Undeleting files at NTFS Volume
First do a scan for the deleted files
# ntfsundelete --scan /dev/sdc1 (where /dev/sdc1 is the NTFS volume)
Take note of the the number of recoverable files and inode number of the file you wish to recover
# ntfsundelete --undelete --inode 25 --output Documents/deleted.pdf /dev/sdc1
(The command undelete inode number of the file (25) and recovered to Documents directory at NTFS Volume /dev/sdc1)
Tuesday, August 11, 2009
NTFSprogs to fix NTFS Issues (Part 1)
NTFS-3G has been stable and popular, the utility is basically to do mounting NTFS file system, reading, writing but it you require create, resize, and clone Partition, you have to use ntfsprogs.
To install ntfsprogs on CentOS, RHEL derivative
# yum install ntfsprogs
To install ntfsprogs on Linux Mint,
# apt-get install ntfsprogs
Look forward for NTFSprogs to fix NTFS Issues (Part 2) for how to use ntfsprogs
For more reading information:
Monday, August 10, 2009
NTFS-3G Stable Read and Write Driver for Linux
To install on Linux Mint
#apt-get install ntfs-3g
To install on RHEL and Derivatives
# yum install ntfs-3g(Make sure you include the RPMForge Respository. See Installing RPMForge)
Note: To use NTFS-3g
# mount -t ntfs-3g /dev/sda1 /mnt/windows
Thursday, July 30, 2009
Installing Likewise - Joining Linux to MS Active Directory
Step 1: Changing Your Hostname from localhost to domain name
Step 2: Download and Install Likewise
- Go to http://www.likewise.com/community/index.php/download/ register and download the essential packages and GUI (optional)
- # ./LikewiseIdentityServiceOpen-5.2.0.7111-linux-x86_64-rpm.sh
- Ensure that you register your computer name at your Microsoft Active Directory if your AD require registration
- # /opt/likewise/bin/domainjoin-cli join Active-Directory-Domain-Name Administrator
- Log-out from your current session and Log-In with your AD credential
Step 3: Verify that you have join the Domain
- # /opt/likewise/bin/domainjoin-cli query.
- You should see Name = ......... Domain = ......... Distinguished Name = CN= ..................
Note: If you are unable to logon, try using the Full Active Directory Name rather than the Short ones, unless you make the Linux Box aware of your WINS Server.
Further Readings:
Sunday, July 12, 2009
Open Source Tools to integrate with MS Active Directory
- Joins non-Windows systems to Active Directory domains in a single step from the command line or from a GUI
- Authenticates users with a single user name and password on both Windows and non-Windows
- Enforces the same password policies for non-Windows users and Windows users
- Caches credentials in case your domain controller goes down
- Provides single sign-on for SSH and Putty
- No schema changes to Active Directory required
Friday, March 27, 2009
Cooperative Linux - Linux on Windows
Colinux Website
Monday, November 10, 2008
Supporting Windows Terminal Clients from LINUX with xrdp
Steps to Install
Step 1:
# tar -zxvf xrdp-0.4.1.tar.gz
Step 2:
# cd xrdp-0.4.1
Step 3:
# make
Step 4:
# make install
Step 5:
# cd /usr/local/xrdp
# cp xrdp_control.sh /etc/init.d/xrdp_control
# chkconfig --add xrdp_control
# chkconfig xrdp_control on
# service xrdp_control start
Step 6:
# groupadd rdpusers
# usermod -G rdpusers kittycool


