Posts Tagged With: windows

Copy Files Using Samba

Tagged with: , , , , , , ,

Download files from a host windows via smb

smbget -Rr smb://ip_addr/share
No Comments »

Show Remote Shares using Samba

Tagged with: , , , , , ,

Show remote shares of a windows host

smbclient -L ip_addr/hostname
No Comments »

Installing GRUB Into MBR

Tagged with: , , , , , , ,

Use this when your MBR gets corrupted – usually happens after you reinstall windows. Pop in a bootable ubuntu DVD and boot into it. Then open a terminal and type in the following commands…

$ sudo grub
> find /boot/grub/stage1
> root (hd0,1) #Must be same as the output of the last command
> setup (hd0)
1 Comment »

Mount Windows Network Share with Samba

Tagged with: , , , , , ,

Use this command to mount a share on a windows system. It uses Samba.

mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share
No Comments »

Remove all EXE files

Tagged with: , , , , , ,

Removes all exe files in the current directory tree. Useful to clear virus from flash drives.

find . -name "*.exe" -delete

Mount Windows Partion

Tagged with: , , , , , ,

Mount a Windows FAT partition. If it is an NTFS partion, use ‘ntfs’ instead of ‘fat’. Make sure that the kernel support ntfs if you want to do that.

mount -t vfat /dev/hda5 /mnt/d
No Comments »

Enable Bridging for VirtualBox in Fedora 8

Tagged with: , , , , , , , , ,

To access net on a guest OS installed within VirtualBox, you have to enable bridging. This is what I did…

Run as root

brctl addbr br0
ifconfig eth0
brctl addif br0 eth0
ifconfig br0 netmask up
route add -net netmask br0
route add default gw br0
VBoxTunctl -b -u binnyva
ifconfig tap0 up
brctl addif br0 tap0

Open VirtualBox, select the machine you want and go to the network section. Select ‘Host Interface’ in Attached to and enter ‘tap0’ in Interface name. Now you should be able to get the connection on the guest system.

Related Links

Advanced Networking Linux
HOWTO Automatically configure bridge interfaces on VirtualBox
bridging on Linux hosts over the VirtualBox
Bridge network interface on VirtualBox
Networking bridge for Virtualbox
Windows XP in Fedora 7
Bridged Networking with VirtualBox on Linux Hosts

No Comments »

Listing all Files Recursively in Windows

Tagged with: , , , , , , ,

Save the list of all files in a folder in windows – recursively.

dir /s /b>FileList.txt

[tags]command, dir, directory, folder, windows, list, ls ,recursive[/tags]


Adding a Windows Entry to Grub

Tagged with: , , , ,

The code to add a Windows loading section in Grub

title Windows
        rootnoverify (hd0,1)
        chainloader +1


No Comments »

Disable Password Prompt at Startup in Windows XP

Tagged with: , , , , , ,

Note: This post may be wrong. I’m getting a lot of complaints that this doesn’t work. See the Microsoft page on how to do this here

Disabling startup login prompt for password

  • Click Start and Run
  • Type “Control Userpasswords2” and press enter.
  • Uncheck the box for “Users must enter a user name and password to use this computer.”
  • Click Apply and Ok.

Please read the comments before following these steps – some comments have reported that this fix is causing a few issues.