Shell script problem

Forum Linux/Free BSD : Linux/Free BSD General Discussion - Shell script problem

TomsGuide.com: Over 800,000 questions and answers to address all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Hi guys,
I'm having a problem with my VM version of Linux... The VM graphics accelerator is not recognised and I've tried to install Sun VMx's add-on tools for the guest OS but there's a problem. I can't install it unless I have admin rights. This a shell script for linux and is a .run file. I'm currently VMing Fedora 10 KDE. It disallows mw from installing the shell script. I've tried su - in konsole and copy and pasting the code but it just freezes. The Host OS is Windows XP.

Thanks,

Sponsored Links
Register or log in to remove.
- 0 +

Have you tried "su -; sh whatever.run" ?

You probably need to copy whatever.run to /root first

Good luck :)

------------------------------ $GNU_Linux=$Linus_Torvalds=AWESOME();

Need Linux help? PM me
Reply to linux_0
- 0 +

If SEL is enabled check dmesg

:)

------------------------------ $GNU_Linux=$Linus_Torvalds=AWESOME();

Need Linux help? PM me
Reply to linux_0
- 0 +

I had a slight problem installing the same sort of thing on a VMWare VM, again with Fedora 10. What I had to do in the end was.

1. Open a terminal.
2. Do "su" to get a root session.
3. Copy the script file from the virtual CD to the virtual hard disk (I used the /root directory.) Don't know why, but it wouldn't work without this step.
4. Run the script by typing "sh whatever.run". (Actually in VMWare it's "perl whatever.pl", but the principle is the same.)

I've tried all the virtual machines going, including VirtualPC, VirtualBox, and KVM, but I find VMWare Server (I'm using version2) to be the fastest and most stable. And they're all free! (However, if you're writing your own 64-bit OS, and want to be able to debug it, you can't beat SimNow - but it is sloooow.)

Reply to ijack

Thanks alot ijack. Now I need to wait until it finishes updating...

Reply to amdfangirl
- 0 +

Quite a lot of updates if you've just installed Fedora 10! Hope you've got a nice fast connection.

Reply to ijack

Little problem here...

Code :
  1. [root@FedoraVM10 echo]# sh VBoxLinuxAdditions-x86.run
  2. Verifying archive integrity... All good.
  3. Uncompressing VirtualBox 2.0.4 Guest Additions for Linux installation.........................................................................................................................................................................................
  4. VirtualBox 2.0.4 Guest Additions installation
  5. Please install the build and header files for your current Linux kernel.
  6. The current kernel version is 2.6.27.4-58.fc10.i686
  7. Please install the GNU compiler.
  8. Problems were found which would prevent the Guest Additions from installing.
  9. Please correct these problems and try again.



I've installed GNU make so far...

Reply to amdfangirl

Code :
  1. [[root@FedoraVM10 echo]# sh VBoxLinuxAdditions-x86.run
  2. Verifying archive integrity... All good.
  3. Uncompressing VirtualBox 2.0.4 Guest Additions for Linux installation.........................................................................................................................................................................................
  4. VirtualBox 2.0.4 Guest Additions installation
  5. Building the VirtualBox Guest Additions kernel module...
  6. Building the shared folder support kernel module...
  7. Installing the VirtualBox Guest Additions...
  8. Successfully installed the VirtualBox Guest Additions.
  9. You must restart your guest system in order to complete the installation.
 

^ can't say it any better


Message edited by amdfangirl on 11-02-2008 at 04:59:28 AM
Reply to amdfangirl
- 0 +

Did it work?

:)

------------------------------ $GNU_Linux=$Linus_Torvalds=AWESOME();

Need Linux help? PM me
Reply to linux_0

:( Kinda...

Graphics driver still missing tho...

800x640 = eww

Reply to amdfangirl
- 0 +

What kind of VGA is it emulating?

:)

------------------------------ $GNU_Linux=$Linus_Torvalds=AWESOME();

Need Linux help? PM me
Reply to linux_0

Quote :

By default VirtualBox provides graphics support by emulating a standard VESA card with 8 MB RAM, which can be adjusted. With the Guest Additions for Windows, Linux, or Solaris guests comes a special video driver that allows for better performance and features such as dynamically adjusting the guest resolution when the VM window is resized.



Wikipedia...

Hmm... I think I've done that already.

Reply to amdfangirl

I'm gonna try

Code :
  1. yum install vesa



and see what happens

Reply to amdfangirl
- 0 +

Not tried Fedora10 with VirtualBox, but with VMWare it just works. Any resolution that your monitor is capable of handling.

Solaris and Windows Server worked fine with VirtaulBox, no problems with screen resolution, but in the end I found that VMWare server was slightly faster and more versatile. (But it won't run OS/2, should you wish to do so!)

Reply to ijack

OK... not good...

 

Maybe if I edit the X.org.conf file of vesa, maybe it can support higher res?

 

edit: can't find it...


Message edited by amdfangirl on 11-03-2008 at 11:28:24 AM
Reply to amdfangirl
- 0 +

Have you tried installing the guest additions again, after the update? The update might have overwritten something. Just as a matter of interest I'm going to try installing Ferora 10 (64-bit) in a VirtualBox VM on my mainn computer. That'll be running under XP64 and it's an Intel processor, not that I expect any of that to be relevant.

Reply to ijack

Yes, I have.

Hmm I accidently stuffed up my edit of xorg.conf

Hooray! No GUI!

Reply to amdfangirl
- 0 +

I've got Fedora 10 installed now, but couldn't immediately install the guest additions. After installing make, gcc, and kernel-devel I was getting a message that the kernel-headers were for the wrong version of the kernel (obvious really, because they were the latest ones whereas my running kernel was the one off the live CD). I'm now updating the system, and I'm sure that things will go fine after that. It'll take an hour or so - I'll let you know what happens

You will find that every time you update the kernel you need to reinstall the guest additions. This is because they are kernel modules and won't be present in a kernel downloaded from the Fedora site. I'm confident that if you install them now, after updating your system, all will be well.

Reply to ijack

Well interesting... for the sake matter I don't think I'll be updating...

Reply to amdfangirl
- 0 +

Sorry - didn't see your last post. If it's the xorg.conf on your Fedora 10 that you've messed up, you don't actually need one. Rename it to xorg.conf.old and X should run.

Reply to ijack
- 0 +

That was fun! After updating I installed the guest additions and got exactly the same result as you. As it happened, I had a Fedora 9 installation in VirtualBox, so I tried copying xorg.conf from that one. It worked. Here's the xorg.conf:

===========================================================

# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
EndSection

Section "Monitor"
Identifier "Monitor0"
ModelName "LCD Panel 1280x1024"
HorizSync 31.5 - 64.0
VertRefresh 56.0 - 65.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "vboxvideo"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

================================================

You may need to play with the Monitor section if yours is appreciably different from mine. You should find that, with this configuration, the resolution automatically changes as you resize the window.

Hope this works for you also.

Reply to ijack

Okay, I've found the universal way of installing Virtual box or Vbox add-ons

 

1. Mount the Guest add-ons .iso file
2. Copy into user folder or /home
3. Enter root
Use su in Red hat based distros
Use sudo in Debian based distros in addition to the text of the fourth step
4. Bash the .run file
Use

Code :
  1. sh VBoxLinuxAdditions-x86.run

in Red hat (Must be root)
Use

Code :
  1. sudo bash VBoxLinuxAdditions-x86.run

(Will ask for root password) for Debian
5. Resolve dependencies such as GNU Make or GNU compile and run script again if there are dependencies

 

Fedora dependencies:

Code :
  1. yum install make


Code :
  1. yum install gcc


Code :
  1. yum install kernel-devel


Red hat does include Mandriva, Fedora, OpenSuSe, Mythdora
Debian includes UBuntu, Kubuntu, mythbuntu etc.


Message edited by amdfangirl on 01-30-2009 at 04:00:43 PM
Reply to amdfangirl

Should be sticked for reference. Much easier to find for me next time that way.

Reply to amdfangirl
Tom's Guide > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Shell script problem
Go to:

There are 10 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Google ads