General :: VirtualBox On Wubi Ubuntu Can't Start VMs Due To Incorrectly Handling Absolute Paths?

Jun 27, 2011

I mostly do .Net development in a Windows 7 virtualbox. I use the host for simple things such as web browsing, skype, chat, etc. All things that are fantastically available on Ubuntu which I in many ways prefer. So this has been begging the question for a while: why even use Windows on the host, seems like a Linux host would use less resources (untested) and allow my Windows VMs to run better while allowing me to do my non-development stuff in an interface I prefer.

So easiest way to do this - I downloaded wubi and installed Ubuntu. I installed in it Virtualbox, and then start add and start my VM to get this message: Failed to open a session for the virtual machine VS2010, Could not open the medium '/host/Users/George Mauer/Virtualbox VMs/VS2010/C:/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi; VD: error VERR_FILE_NOT_FOUND opening image file '/host/Users/George Mauer/Virtualbox VMs/VS2010/C:/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi; (VERR_FILE_NOT_FOUND).

You see what's going on? With wubi, the windows drive gets mounted at /host/ but virtualbox is for some reason appending an absolute path! I would very much like to use the same exact VM file since it would retain Snapshots and I would be able to use it in either windows or Ubuntu mode. However, even if I try to simply mount the drives into a new VM I get an error: Failed to open the hard disk /host/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi. Cannot register the hard disk '/host/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi' {guid...} because a hard disk '/host/Users/George Mauer/VirtualBox VMs/VS2010/C:/Users/George Mauer.VirtualBox/HardDisks/VS2010.vdi with UUID {guid...} already exists.

This is especially odd since this worked fine with my recently created Android VM, though this might have something to do with the fact that VirtualBox recently changed their default VM storage locations. Any idea how to fix this? My Linux-fu is weak but I seem to remember from CS class something about symbolic links that might be relevant here?

View 1 Replies


ADVERTISEMENT

General :: Command Line - Get Relative Path From Two Absolute Paths In Shell?

May 13, 2010

We have two paths. First one is directory, second either dir or file.

/a/b/c and /a/d/e.txt

Relative path from first path to second will be: ../../d/e.txt

How to get it in linux terminal?

PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)

View 1 Replies View Related

Server :: Apache Incorrectly Handling Requests For Numeric PHP Filenames?

Nov 14, 2009

I'm working on a thorny mod_rewrite problem. I have a mac connected to my LAN running MAMP (Mac/Apache/MySQL/PHP). I request a non-existent file:

Code:
http://192.168.1.2:8888/careers/db/1.html
I see this in the mod_rewrite log file:

Code:
192.168.1.102 - - [14/Nov/2009:13:46:07 --0800] [192.168.1.2/sid#807df8][rid#8ec850/initial] (2) init rewrite engine with requested uri /careers/db/1.html
192.168.1.102 - - [14/Nov/2009:13:46:07 --0800] [192.168.1.2/sid#807df8][rid#8ec850/initial] (1) pass through /careers/db/1.html
Note that the requested uri is /careers/db/1.html

If I change just the file extension on my request to PHP like so:

Code: [URL]

Then the request uri is totally different now. Here's the rewrite log:

Code:
192.168.1.102 - - [14/Nov/2009:13:47:23 --0800] [192.168.1.2/sid#807df8][rid#8fc850/initial] (2) init rewrite engine with requested uri /Applications/MAMP/htdocs/careers/
192.168.1.102 - - [14/Nov/2009:13:47:23 --0800] [192.168.1.2/sid#807df8][rid#8fc850/initial] (1) pass through /Applications/MAMP/htdocs/careers/
Note that the requested uri now has a full path which does not include the actual filename, /Applications/MAMP/htdocs/careers/

What the heck? More info. If I request [URL], I can actually access p1.php. The requested uri is /careers/db/p1.php. The problem appears to be because the filename starts with a number. I can also request [URL] and get thru to 1.php with requested uri /careers/db//1.php. Does mod_rewrite think /1 refers to a backreference or something? Why can apache handle the html file request properly and not the php file request?

View 8 Replies View Related

Ubuntu Installation :: After Clicking On Wubi.exe Nothing Happens - Wubi Does Not Start At All

Nov 12, 2010

After clicking on wubi.exe nothing happens. Wubi does not start at all.Windows XP, SP3.

View 9 Replies View Related

General :: Virtualbox System Wont Start Ubuntu 9.10

Feb 16, 2010

THis use to work but when I tried to start it today I get the following error:

Could I have gotten a patch from Ubuntu that broke my VB?

I have not updated VB in ages and last time it was working just fine.

View 4 Replies View Related

Ubuntu Installation :: Wubi Perform Significantly Better Than Version Installed On VMWare Or VirtualBox?

Oct 25, 2010

I want to install Ubuntu but not as Dual-Boot (Other OS is Windows XP x64 edition).

Does Wubi perform significantly better than an Ubuntu version installed on VMWare or VirtualBox?

My computer has:Intel Core2 Quad Q8200 @ 2.33GHz. 4GB RAM. An almost empty 450GB HD (defragmented)

View 5 Replies View Related

General :: Startx Script Commandline To Start VirtualBox VM On Separate X Server

Aug 28, 2011

I am trying to start a VirtualBox VM on a separate X screen (in fullscreen) so I can switch between Linux and Windows XP by doing Ctrl + Alt + F<.

I am basically trying to do something like this:

startx "VBoxManage startvm XP" -- :4
startx "VBoxManage startvm "XP"" -- :4 (is this correct for quotes within quotes??)

I get a "bad command line option "VBoxManage" back from the startx script so obviously I am not understanding the rules for how to write "shell magic".

How can I do this correctly, or perhaps there is a better way of achieving a VirtualBox VM on a separate X screen?

View 1 Replies View Related

General :: How To Install EXE Files On Absolute

Feb 3, 2010

I am trying to install the livestream procaster on absolute linux. I've downloaded it and its a .exe file when i click it a mesage comes up that says "No run action specified for files of this type (application/x-ms-dos-executable) - you can set a run action by choosing 'Set Run Action' from the File menu, or you can just drag the file to an application."

View 4 Replies View Related

General :: Extracting Absolute Directory From Type Command?

Sep 26, 2010

I need to extract the absolute directory from the type command when I pass it a program name. E.g.

Code:

>type cat
cat is hashed (/bin/cat)

There is one other case (I believe):

Code:

>type lpr
lpr is /usr/bin/lpr

I thought of using regex, but it returns the whole line, not just the match. In addition, there is no option cited in the man page for type that returns just the command directory.

Note: this is part of my solution to a programming assignment in bash shell scripting.

View 1 Replies View Related

Ubuntu Installation :: Wubi Does Not Start / Get It To Work?

Mar 2, 2011

I have the Ubuntu Netbook CD. I tried installing Ubuntu by launching Wubi.exe. But nothing seems to be happening. I opened task manager and checked whether the process wubi.exe is starting. It is indeed starting up, but goes off in a few seconds.
I downloaded the wubi.exe again and tried, but without any success.
Any clues?

View 4 Replies View Related

OpenSUSE Hardware :: Unable To Start VirtualBox Kernel Modules - Error Stopping VirtualBox Kernel Modules

Mar 23, 2011

I was trying to install VirtualBox through the YaST > Software Management but it is not working, someone in the forum told me that I have to download the OSE version and do it manual way. Finally I am able to start up VB but not able to use the network connection. Thus I am trying to do this:

/etc/init.d/vboxdrv setup. I get this error:

[code]...

When I type dmesg, it shows me a bunch of info which I don't know what should look for. When I type modprobe vboxnetflt, I get the error: FATAL: Error inserting vboxnetflt (/lib/modules/2.6.37.1-1.2-default/updates/vboxnetflt.ko): Invalid module format. what should I do in order to get my VB to be able to connect to the internet?

View 5 Replies View Related

Ubuntu Installation :: Cannot Start WUBI - You Need To Load Kernel First

Jan 6, 2011

After to trying make a Multiboot live USB using MultibootSystem, my Ubuntu (10.10 install in Windows 7) is not booting anymore. I have moved the folder c: ubuntu (to saved my data) uninstall Ubuntu and reinstall it still nothing. I have the grub but when I select Ubuntu I have the following error message:
error : out of disk
error : you need to load the kernel first
Press any key to continue...

When I press anykey () I no have the message
error : unknown filesystem
error : you need to load the kernel first
Press any key to continue...

View 3 Replies View Related

General :: Ctrl+C Incorrectly Mapped In Ubuntu 10.04 LTS?

Jul 11, 2011

I was playing around with my keyboard shortcuts and accidentally mapped a command to the Ctrl+C shortcut. Now I can't stop programs running in the terminal with Ctrl+C and I have no idea of how to restore this functionality.

View 1 Replies View Related

General :: Memory Handling Capacity Of 64 Bit Ubuntu?

Aug 3, 2010

What is the maximum amount of ddr that can be installed in a 64 bit ubuntu linux system computer?

View 1 Replies View Related

General :: Dvd Drive Keep Mounting Incorrectly / Fix This?

Nov 27, 2010

Running Slackware 13.1

Whenever I insert a dvd or a cd, it automatically mounts to /media/[name], Like for example, the DVD I have in now mounts to /media/TBC3.2.0 (TBC3.2.0 is the name of the disc itself).

I'm needing this to mount to a regular point like /media/cdrom0 or whatever. How can I fix this?

View 2 Replies View Related

General :: 'who' Command Incorrectly Reporting?

Nov 4, 2010

SERVER INFO:[root@bml pts]# uname -aLinux bml.xxx.co.uk 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i686 unknownCan someone explain exactly how 'who' builds its user list?I have a problem where it's listing a user on my server, but I can not kill them.

# [root@bml pts]# who | sort
...
simons pts/52 Nov 2 12:33 (derby1)

[code]....

View 5 Replies View Related

Ubuntu Installation :: Start A Dual Boot With Windows 7 And 10.04, Wubi Or LiveCD?

Jul 27, 2010

What is a better way to start a dual boot with Windows 7 and Ubuntu 10.04, Wubi or LiveCD?

View 9 Replies View Related

General :: Commands For Logfile Handling?

Mar 28, 2011

I've got this log file and I need to get all sorts of information from it...

24 - [02/Sep/2010:00:01:16 +0200] - 10.1.53.62 - 200
23 - [02/Sep/2010:00:01:26 +0200] - 10.1.53.62 - 200
19 - [02/Sep/2010:00:01:56 +0200] - 10.1.53.62 - 200

[code]....

View 6 Replies View Related

General :: Not Getting Access To The Needed Paths?

Jun 18, 2011

I have not been on in about a month or 2. I have no idea how to list this thread. I am hoping that someone like tex can help out. Being lazy with ubuntu seems to have been badong. Ok, I had 2 physical machines and 3 vms. VM's ran under Vbox-ose via a bridge. OS's are buntu x2 and one centOS box. I installed webmin to make things easy ( i thought ).However, after setting webmin, my I have been randomly loosing PATH's. I mean, one minuet i can run sudo apt-get and the next the whole PATH is gone. I tried a compare of my "home" box's bashrc and bash_profile against the other machins, and outside of some alias for colr and the like nothing seems to stand out. Even if I su - to root I am not getting access to the needed paths. Now, while I could export the correct path, I am more conserned with the why of it all.

I would have thought that as long as my group setting on my ssh users were all correct AND the environment had not been changed, all would be good. I can provide more info if someone wants to help me out with this. HOwever, it drove me to a six pack. 8SI have read the man pages. I have used google. I have checked the logs. The logs by the way showed a lil hammering on one of the boxes for root access. [I]t wasnt me. However, I dont seem to be able to see a time stamp.

View 3 Replies View Related

General :: Standard File Paths?

Aug 23, 2010

Is there some sort of standards file path convention for installing softwares that I could follow through? For example, I just learnt how to build Nginx from source. But the default binary path set by nginx is "/usr/local/nginx/sbin". I have seen a couple of tutorials which they specify the location of the installed binary and it is very different from those usual default paths. Thus, got me thinking whether is there some form of file path convention that I should follow?Is there some kind of list which states where do those packages on Debian.org Repository usually installed to?

View 6 Replies View Related

General :: Ubuntu Incorrectly Maps Backslash And Pipe Keys?

Mar 7, 2011

I am having what I think is a slightly weird problem with the way some of my keys on my keyboard are mapped. When I try entering the "backslash" keys i get < and for the pipe key i get >. I have tried going through the keyboard layouts and trying other combinations but to no avail

System info
ASUS G51VX
Keyboard: Standard
Ubuntu 10.04 LTS the Lucid Lynx - released in April 2010 and supported until April 2013.

View 5 Replies View Related

General :: Check If Two Paths Are Pointing To The Same File

Oct 6, 2010

I've got a script to recursively create symlinks in my home directory to my settings directory, to keep the files under version control. I would like it to skip files which are already symlinked via a parent directory. That is, if I have these files/directories:

~/foo/ -> ~/settings/foo/
~/settings/foo/
~/settings/foo/bar

, how do I check that ~/foo/bar and ~/settings/foo/bar are the same file?

Edit: D'oh, another few minutes of searching revealed the answer: readlink -f $path

View 3 Replies View Related

General :: Ruby / Gem Installation Paths Scattered All Over

Apr 11, 2011

Trying to understand my ruby folder structure? Why my gems are scattered all over and why they aren't recognised commands. I'll explain how my installation looks like first:
/usr/bin/ruby
/usr/bin/ruby1.8
/usr/bin/ruby1.9.1

The first is a soft link to ruby1.9.1 because the "ruby" command didn't work in the terminal. I did the same with "gem". I installed rubygems through downloading, extracting and then running setup.rb here: (I created the "ruby" folder)
/home/pc/ruby/rubygems-1.7.2/setup.rb
/usr/bin/gem
/usr/bin/gem1.8
/usr/bin/gem1.9.1

I installed a few gems with "sudo gem install"
> gem list
*** LOCAL GEMS ***
compass (0.10.6)
haml (3.0.25)
mustache (0.99.3)
rake (0.8.7)

So far so good? Well not quite, as it turns out the command "compass version" doesn't seem to exist. My confusion grows with each folder I look into. The following path doesn't make any sense to me, for example. Why would it be hidden? Why is mustache the only gem inside this folder?
/home/pc/.gem/ruby/1.9.1/cache/mustache-0.99.3.gem

First of all, here is "gem environment", which makes even less sense, because I have definately installed rubygems-1.7.2 like I told you in the first paragraph, but here it shows an ancient version 1.3.7. Why? I installed Ubuntu the day before yesterday.
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby1.9.1
- EXECUTABLE DIRECTORY: /var/lib/gems/1.9.1/bin
- RUBYGEMS PLATFORMS: .....
Ruby --version returns "ruby 1.8.7"...........

Also, as it turns out, all gems are installed into this folder (mustache too! even though it already is inside the other folder), just as "ruby environment" claims:
/var/lib/gems/1.9.1/gems. But none of these gems work. I can't call any of these, except rake. So here is where I probably made the mistake, I think I used "apt-get install rake" in addition to "gem install rake", because the command "rake" wasn't recognised, and the command prompt suggested it. I may have done so with rubygems too... I'm new to Linux, and I figured that the command prompt knew how to install this stuff properly. It can't be normal that I have to create syslinks all over, right? In Windows I didn't run into this problem.

View 1 Replies View Related

General :: Use ZFS On Linux Easily - Without Paths Like /var/run/zfs - Or As Non-root

Sep 3, 2011

When I asked about filesystems with compression I got recommendation to try ZFS. Looks like it worth trying, however I find tools that manage ZFS (zfs, zpool) quite overcomplexified - you need to create some volume, then add it, then create filesystem on it. And finally it suddenly created things in root directory like /qqq/test and it uses /var/run/zfs/zfs_socket (strange for a filesystem).

How to use ZFS (with FUSE) without it's complicated things with volumes, just as good filesystem with compression, something like mount -o loop image.zfs /mnt/qqq -t zfs-fuse?

How to setup ZFS as non-root? FUSE usually means "user can use it too" (example: ntfs-3g). I expect something like this:

Can ZFS be more usual FUSE filesystem that I can add to /etc/fstab and user can install and use on its own?

View 1 Replies View Related

General :: Handling Wordbreaks In Bash Completion?

Feb 16, 2010

I am writing completion function for one PHP framework called symfony. It has command line interface with syntax:

Code:

symfony [options] [namespace:]action

I want to make action be autocompletable. The function is simplest so far:

Code:

function _symfony_commands()
{
[ -r "cache/completion/.sf" ] && cat cache/completion/.sf
}

[code]....

But, if there is : symbol which separate namespace from action problems coming:

symfony doct[TAB]
will be completed to
symfony doctrine:

But nothing happens if you want complete after : symbol. I've found out that for readline there is three words because it splits line with $COMP_WORDBREAKS

Code:

$ echo $COMP_WORDBREAKS
"'><=;|&(:

I played with $COMP_WORDS array and tried every thought I had to make it work, but failed.
What I should do to escape colon and make readline consider it as one word? Or there is way perhaps to workaround it?

View 2 Replies View Related

General :: Using Locate - All Paths That Contain Element /bin/ But Only One Instance Of Each One

Jun 18, 2010

I want to print, using locate, all the paths that contain the element /bin/ but only one instance of each one. If I issue 'locate /bin/' then I have many screens of text with, for example,

/usr/bin/foo1
/usr/bin/foo2
/home/me/bin/foo3
whereas I want to see only
/usr/bin/foo1
/home/bin/foo3

That is to say, if in two lines /bin/ appears with the same prefix (in the example above the prefixes would be /usr and /home/me) I only want to print the first line. Can I pipe locate to grep to do this? I've mentioned locate because it does not scan the whole disk.

View 5 Replies View Related

General :: Cant Find Executables To Update Paths?

Nov 24, 2010

How do I find paths on ubuntu. I have installed redcar(ide written in ruby similar to textmate) and rvm for ruby. However I cannot locate where the executables are to update my .bashrc.

View 2 Replies View Related

General :: Run The Script From A Different Directory The Paths Are Not Read?

Nov 29, 2010

I have written a script which reads a text file and takes out absolute and relative paths embedded in the text file.Then the script looks for a string in some text files mentioned in those paths. The problem I am facing is that since these paths are from my working directory,if I try to run the script from a different directory the paths are not read.

View 7 Replies View Related

General :: Mount - Filesystem Handling For Embedded Device?

Jan 21, 2011

I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?

View 1 Replies View Related

General :: Handling Network Plug / Unplug In (Debian)

Jun 15, 2011

I want to run a script when the switch goes down and an other when it goes up. Is there an easy way to pull this off in Debian (preferably with no other than system tools)? I suppose there is no difference (in the OS point of view) between unplugging ethernet cable and the switch losing power.

On an event I get lines like these in the syslog:
Jun 15 17:49:41 debian kernel: [ 5506.956130] igb: eth1 NIC Link is Down
...
Jun 15 17:49:45 debian kernel: [ 5511.168788] igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX

In FreeBSD you can pipe log messages (pre-filtered by regex patterns) to a program. What is the easiest way to replicate this on Debian (with as little additional software as possible)?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved