In case you haven't figure this out yet:
what you are looking for is the excellent virtualenvwrapper package. It is a wrapper around python's virtualenv (go figure) and, while it is commonly referred to when taking about python environments, it is actually a very generic tool that satisfies your use case.
Installation
pip install virtualenvwrapper
or
easy_install virtualenvwrapper
and add initialisation stuff into your shell config (~/.zshrc, ~/.bashrc
)
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$WORKON_HOME/projects
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
source /usr/local/bin/virtualenvwrapper.sh
Usage
# create your env
mkvirtualenv my_project
# edit per project hooks
vim ~/.virtualenvs/my_project/bin/{postactivate,preactivate,predeactivate,etc}
# work in this env
workon my_project
You also have generic hooks in ~/.virtualenvs/{postactivate,postdeactivate,etc}
that are called every time you workon any_project
.
So, for example, having the line export HISTFILE="$VIRTUAL_ENV/bash_history"
in the ~/virtualenvs/postactivate
hook means that the $HISTFILE
variable will be expanded every time to a different project.
I also understand that some USB flash drives would automatically run a driver installation, would that show?
Not really. What happens is that because they comply to a standard specification, Windows can, and does load generic storage and volume drivers for them. It does this whenever you plug in a new drive where “new” means a combination of drive and USB port (i.e., plugging a drive into two different ports causes Windows to detect it as new and (re)-load the drivers twice).
Is there any method by which I can track down a list of flash drives that my laptop has accessed - namely their brand name, capacity and/or the name of the USB flash drive itself?
Does my Windows 7 computer create history logs of the flash drives that have been plugged in? If so, what other information would this log contain?
Not as such. There is no log of drives, mostly because there is no actual data about the drives. The drive does contain firmware which usually contains some metadata about it, but there is nothing stopping a manufacturer from putting very little, generic, or even incorrect data in the drive’s firmware.
That said, the Windows registry does retain some pseudo-unique information about peripherals for the purposes of detecting new devices so that it knows whether or not it has drivers for it. The most useful data would be located in the key HKLM\SYSTEM\CurrentControlSet\Enum\STORAGE\Volume
. It will contain the device-IDs of each known storage device that has been attached to the system.
You can review the data manually, but a better way would be to use a program that interprets the data and displays them in a more human-readable way such as DevManView or USBDeview.
However, as I said, there is no reason that someone who wants to sneak data couldn’t just use a drive that has generic, blank, or fraudulent data embedded (or just wipe the data from the registry afterwards). In addition, the data may not be completely unique. For example, if you plug a new flash-drive into the system and wait for Windows to install the drivers, then eject it and plug in a different, but identical drive, you may very well notice that Windows does not load new drivers because its “fingerprint” matches.
In the future, you can use USBLogView. It won’t help with past USB-drive activity, but it will log future activity.
Best Answer
I don't believe that Windows (any version) saves a history of the files burned to disk. I goggled around for a few minutes and didn't come up with any proof that it does. I have a background in computer forensics, and have never heard this mentioned as a technique. The only way it may record anything is if in the process of burning the files to CD windows considered those files as being accessed and maybe put those in the recent items list [C:\Users(User Name)\AppData\Roaming\Microsoft\Windows\Recent Items], and/or if the accessed/modified date is changed on the file itself.
Most likely though there's no history, but give it a try and see if the files show up in that directory or the access date changes.