Saturday, 26 January 2019

linux - VBox Guest Additions ISO can't be mounted because of VERR_PDM_MEDIA_LOCKED


I am trying to run the command sudo mount -t vboxsf SharedUbuntuWindows SharedUbuntuWindows but I get the error unknown filesystem type 'vboxsf' on my guest Ubuntu machine. I am following these instructions but I cannot find 'Install Guest Additions' under 'Devices'. Instead, I see 'Insert Guest Additions CD image'. Am I even on the proper path to solve the issue?


Screenshot menu


This is what I see when I select 'Insert Guest Additions CD image...'. Pressing 'Force Unmount' only makes the pop-up dialog disappear, but I still am unable to run the command sudo mount -t vboxsf SharedUbuntuWindows SharedUbuntuWindows. Screenshot error message



Answer



Insert Guest Additions CD Image is the same thing as Install Guest Additions in a different version of Virtual Box. That is the correct menu item. When you choose it, it will be as if you inserted an installation CD to your virtual machine. Run the appropriate setup program from the virtual CD drive.


Guest additions should include the software you need to use the vboxfs filesystem type.


EDIT: Based on your updated question, the real cause error you are seeing is VERR_PDM_MEDIA_LOCKED. Googling for that produces the answer in the first result: http://maheshhika.wordpress.com/2012/09/28/virtual-box-verr_pdm_media_locked/


Essentially, you need to unmount your virtual cd drive before inserting the guest additions cd image. The linked article provides instructions for doing this. Hitting the 'Force Unmount' button would be another way to unmount your drive, and after doing that the insert guest additions cd menu option should work the second time you use it.


Keep in mind that you not only have to insert the virtual cd, but actually run the installer before the vboxfs filesystem type will work.


download - Downloading blob videos

I have been trying to get a couple of videos from ysl.com for a personal project. Unfortunately standard video downloaders don't have much success on the formats the site uses.


One example link here: https://www.ysl.com/ch/shop-product/unisex/fw14campaign_section


In the second video from the link, I was able to find blob:https://www.ysl.com/6dd723d0-4c79-40d3-a828-a86d22736b51


However, I don't know what I could do from there; I've tried various extensions and playing around with sources but never found success.


If anyone has any advice I would appreciate it very much—I am not trying to pirate or do illegal things, I just find the videos don't always load correctly so downloading them would be preferable.


Thank you.

graphics card - Will my CPU bottleneck this GPU?


I've been meaning to upgrade my computer for quite a long time but money's a bit short and I can't do it all at once, I want to upgrade my GPU first because it's not up to par with most newer games but I'm afraid my CPU will bottleneck it too much and I won't get any advantage from upgrading it.


Is there a way to check if a CPU X will bottleneck a GPU Y (or vice versa)?



Answer



Quite a few websites have actually tried this. There's actually two elements I'd consider here - whether the task you are doing is processor bound, and whether the PCIe bus has enough bandwidth for what you are trying to do.


Both hot hardware and toms hardware did tests on older CPUs and newer GPUs - specifically core 2s. Tom's hardware covered more CPUs... and when they tried borderlands 2



Each processor delivers a nice playable experience at Medium settings. However, a couple of those downward spikes near the beginning of the run corresponded to a brief, yet still noticeable stutter.



Hot hardware also found that you could push graphics settings higher with a new GPU and an older CPU. If you can run a game, the new GPU will definately improve your experience. These tests indicate that unless you're throwing in a seriously high end video card, you shouldn't be getting bitten in the rear by either CPU usage or PCIe Bandwidth, and you should be seeing better performance. In the context of a longer term build, it makes sense to do this.


linux - chmod 777: how to make all files become "RWX"


I want to change permission of each files in a directory. I've been using chmod 777 but its wasting time if I have 50 files.


How to make all files inside directory become rwx without change them one by one?



Answer



chmod -cR 777 *


Will change all the files including subdirectories recursively (R option) including subdirectories, but also report on when it makes a change (c option).


Rather than changing all the files with too wide permissions, you might want to change the ownership instead.


sudo chown -hR tomcat

The line above changes owndership to a tomcat application server, you need to figure out which user your webserver is using. You can easily see that by doing


ps aux

(The h option is for changing the owndership of a symbolic link if encountered, but not the files it linkes to)


Native alternative to wget in Windows PowerShell?


I know I can download and install the aformentioned library (wget for Windows), but my question is this:


In Windows PowerShell, is there a native alternative to wget?


I need wget simply to retrieve a file from a given URL with HTTP GET. For instance:


wget http://www.google.com/

Answer



Here's a simple PS 3.0 and later one-liner that works and doesn't involve much PS barf:


wget http://blog.stackexchange.com/ -OutFile out.html

Note that:



  • wget is an alias for Invoke-WebRequest

  • Invoke-WebRequest returns a HtmlWebResponseObject, which contains a lot of useful HTML parsing properties such as Links, Images, Forms, InputFields, etc., but in this case we're just using the raw Content

  • The file contents are stored in memory before writing to disk, making this approach unsuitable for downloading large files


  • On Windows Server Core installations, you'll need to write this as


    wget http://blog.stackexchange.com/ -UseBasicParsing -OutFile out.html


  • Prior to Sep 20 2014, I suggested


    (wget http://blog.stackexchange.com/).Content >out.html

    as an answer.  However, this doesn't work in all cases, as the > operator (which is an alias for Out-File) converts the input to Unicode.




If you are using Windows 7, you will need to install version 4 or newer of the Windows Management Framework.


You may find that doing a $ProgressPreference = "silentlyContinue" before Invoke-WebRequest will significantly improve download speed with large files; this variable controls whether the progress UI is rendered.


Can I make Windows Explorer Treeview show folders in Windows 7


I'm sure this has been answered a million times around the web, but I dont know quite what question to ask.


Basically before windows 7 if I opened a folder in the right hand pane when using windows explorer the corresponding folder would be expanded in the treeview on the left.


This is no longer happening. Can I switch it on on Windows 7.



Answer





  • Right click an empty space in the left panel and check [x] Expand to current folder (Thank you, surfasb):


    Right click




Or...




  • Check [x] Automatically expand to current folder in Folder Options > General > Navigation pane:


    Organize


    Folder Options




macos - How to store the data of mysql on OS X in an encrypted state?

I have mysql 5.1 installed by macports with it's data dir in the default location, which is outside my user directory that's protected by filevault.


I'd like to store the data in an encrypted state by either somehow moving it into the filevault or using some alternate encryption method.


Can you suggest a way to to do either one of these?


Many thanks

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...