Shell script problem
Tags:
Last response: in Linux/Free BSD
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,
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,
More about : shell script problem
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.)
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.)
Related ressources
- Windows Shell Common DLL - Forum
- Linux shell script to find duplicate images - Forum
- Shell Script help - Forum
- IE Script Error - Forum
- Problem installing Windows script 5.6 - Forum
Little problem here...
I've installed GNU make so far...
[root@FedoraVM10 echo]# sh VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.0.4 Guest Additions for Linux installation.........................................................................................................................................................................................
VirtualBox 2.0.4 Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.27.4-58.fc10.i686
Please install the GNU compiler.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.
I've installed GNU make so far...
[[root@FedoraVM10 echo]# sh VBoxLinuxAdditions-x86.run Verifying archive integrity... All good. Uncompressing VirtualBox 2.0.4 Guest Additions for Linux installation......................................................................................................................................................................................... VirtualBox 2.0.4 Guest Additions installation Building the VirtualBox Guest Additions kernel module... Building the shared folder support kernel module... Installing the VirtualBox Guest Additions... Successfully installed the VirtualBox Guest Additions. You must restart your guest system in order to complete the installation.
^ can't say it any better
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.
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!)
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!)
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.
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.
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.
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.
===========================================================
# 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.
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
Use
5. Resolve dependencies such as GNU Make or GNU compile and run script again if there are dependencies
Fedora dependencies:
Red hat does include Mandriva, Fedora, OpenSuSe, Mythdora
Debian includes UBuntu, Kubuntu, mythbuntu etc.
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
in Red hat (Must be root)
sh VBoxLinuxAdditions-x86.run
Use
(Will ask for root password) for Debian
sudo bash VBoxLinuxAdditions-x86.run
5. Resolve dependencies such as GNU Make or GNU compile and run script again if there are dependencies
Fedora dependencies:
yum install make
yum install gcc
yum install kernel-devel
Red hat does include Mandriva, Fedora, OpenSuSe, Mythdora
Debian includes UBuntu, Kubuntu, mythbuntu etc.
Related ressources:
- ForumProblem with reinstallation of Windows Script 5.6
- ForumNew DOS shell for Windows coming
- ForumShell 32.dll Version 4.71 - Where Can I Download?
- ForumCan't find script engine "VBScript" for script
- ForumAdding Desktop shortcut and Icon using a GPO logon script
- ForumLS with an exclude works, fails as script though
- ForumNeed help adding TCP/IP Printer through Script
- Forumscript errors using Windows 98 Starts here training CDROM
- ForumMaking a Script File for Scheduler
- Foruminternet explorer script error when trying to install a ga..
- ForumScript error message
- ForumBoot Problems
- Forumproblem installing debain
- ForumI am having a bit of a problem
- Forumfile sharing problem between Ubuntu 8.04 and Vista computers
- More resources
!
Kinda...