Copy Files Using Samba
Download files from a host windows via smb
smbget -Rr smb://ip_addr/share
Download files from a host windows via smb
smbget -Rr smb://ip_addr/share
Show remote shares of a windows host
smbclient -L ip_addr/hostname
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
(hd0,1)
> root (hd0,1) #Must be same as the output of the last command
> setup (hd0)
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
Removes all exe files in the current directory tree. Useful to clear virus from flash drives.
find . -name "*.exe" -delete
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
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 0.0.0.0
brctl addif br0 eth0
ifconfig br0 192.168.1.54 netmask 255.255.255.0 up
route add -net 192.168.1.0 netmask 255.255.255.0 br0
route add default gw 192.168.1.1 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.
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
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]
The code to add a Windows loading section in Grub
title Windows
rootnoverify (hd0,1)
chainloader +1
[tags]grub,windows,linux,boot,loader[/tags]
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
Please read the comments before following these steps – some comments have reported that this fix is causing a few issues.