I've tried placing the following script in /etc/init.d/ :
but this doesn't do anything. The file is named "screenres" and has permissions "-rwxr-xr-x".
The problem is: nobody tells anybody to run that script at startup. I suggest you read the manpages of regarding "runlevels" and "init" to get a better understanding about how the startup process of a *ix-system works (notice that there are 2 fundamental layouts, "SysV" and "BSD").
To solve your problem: put (a link to) the script into "/etc/rcN.d", and name it Snn where "nn" is a two-digit number and "N" is the number of the runlevel whichs start you want to trigger the script. Or you can write a configuration file for init and place it in "/etc/init.d". Read the man page for init(5) to find out which format this has to be.
With Fedora/CentOS/RedHat you can also use the "chkconfig" utility to automatically place start/stop-scripts for arbitrary services into the various rc-directories. In this case you would have to change your script to accept "start", "stop" and "status" as parameters and create a pseudo-service from it.
Bonjour,
je souhaiterais un script bash fusionnant 2 fichiers tout en virant les doublons.
Exemple :
fic1 :
toto
titi
fic2 :
toto
tata
Résultat souhaité, fic 3 :
toto
titi
tata
Merci. (1 Reply)
I will shortly be adding a fedora flavor to my devel box. I currently have XP (installed first on an ssd), ubuntu 10.04 (installed second on the first partition of a platter drive), and I want to add either Cent or SL on the second partition of the platter drive. I will probably also want to... (0 Replies)
Hi all
This is kind of urgent... please give any advice if possible. I'll try and explain it as simply as possible.
As a new user of VMware, I was impressed with it. Until it decided to freeze every time I start it. I have an assessment due tomorrow, and I need to submit the files via... (1 Reply)
Can someone please tell me how to run a fedora startup script? I read these guides and tried to do what they said with no luck.
Create a Startup Script
Custom Startup Script | Open Source Club at Ohio State University
This is what I put in my startup script.
#!/bin/bash
# chkconfig:... (6 Replies)
If you get one of these two messages it means you either have a bad connection or you forgot to turn off the screen that you used last (the second one only happens in my experience when use multiple types of screens).
xrandr: cannot find crtc for output VGA1
xrandr: cannot find crtc for output... (0 Replies)
Why is my xrandr imagining things? I have disconnected VGA1 power. How is the VGA1 still coming up?
$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
1024x768 60.0*+
... (2 Replies)
I am trying to install Fedora 18 on a Windows system through VMware. When I power on the virtual machine I get messages that Fedora is starting, but the end result is just a screen with a graphic of a large blue box. No buttons to be found and input does nothing. I do have Knoppix running using the... (5 Replies)
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
LEARN ABOUT REDHAT
vmware
VMWARE(4) Kernel Interfaces Manual VMWARE(4)NAME
vmware - VMware SVGA video driver
SYNOPSIS
Section "Device"
Identifier "devname"
Driver "vmware"
...
EndSection
DESCRIPTION
vmware is an Xorg driver for VMware virtual video cards.
MODESETTING, XINERAMA AND RANDR12
If the driver can connect to the "vmwgfx" kernel module on linux, it will attempt to use kernel modesetting and will then also use RandR12
for multiple output operation instead of Xinerama. The X server log or the "xrandr" application can be used to determine whether RandR12 or
Xinerama is actually used.
3D ACCELERATION
If the driver can connect to the "vmwgfx" kernel module on linux, and the Virtual Machine is set up to use 3D acceleration, the driver will
try to use Gallium3D XA to accelerate 3D operations. It will also by default enable DRI, the Direct Rendering Infrastructure, primarily for
accelerated OpenGL. If 3D acceleration is available, the driver will in addition provide an additional XVideo adaptor for textured video.
Gallium3D XA,ibxatracker.so" and the accelerated OpenGL driver, "vmwgfx_dri.so" is provided by the mesa distribution.
CONFIGURATION DETAILS
Please refer to xorg.conf(5) for general configuration details. This section only covers configuration details specific to this driver.
The driver auto-detects the version of any virtual VMware SVGA adapter.
The following driver Options are supported:
Option "HWCursor" "boolean"
Enable or disable the HW cursor. Default: off.
Option "Xinerama" "boolean"
Disable or enable Xinerama support. Default: xinerama is enabled if the hardware supports it.
Option "StaticXinerama" "string"
Provide a static xinerama geometry that will be active at server startup and will not be overridden at runtime. The format is
"Width1xHeight1+Xoffset1+Yoffset1;Width2xHeight2+Xoffset2+Yoffset2" and so on. Negative offsets are not supported. If the driver is
using RandR12, this option should be used to place and enable outputs at driver startup time or else when VMware tools is not used
for that purpose. Also please see option "GuiLayout".
Option "GuiLayout" "string"
A synonym to option "StaticXinerama", since the latter name is somewhat misleading when RandR12 is favoured before Xinerarma.
Option "AddDefaultMode" "boolean"
Provide a default mode with a resolution identical to the resolution of the guest before the X server was started. The X server will
thus try to start without changing resolution. Default: on.
Option "RenderAccel" "boolean"
Try to accelerate render operations if the operations are reading from previously accelerated contents (3D or video). This option is
needed for 3D support. Default: on if 3D acceleration is supported. Otherwise off.
Option "DRI" "boolean"
Enable the Direct Rendering Infrastructure. Default: on if 3D acceleration is supported and "RenderAccel" is enabled. Otherwise off.
Option "DirectPresents" "boolean"
Speed up OpenGL swapbuffers by skipping a copy operation. This provides some OpenGL swapbuffer speedups, but may cause performance
degradation and rendering errors when 3D contents is read back for mixing with software rendered contents. Default: off.
Option "HwPresents" "boolean"
This is a developer convenience option and should not be used by distros or normal users. When enabled, it copies software rendered
contents to a 3D surface before presenting it, so that the visible screen is always present on a 3D surface. Default: off.
Option "RenderCheck" "boolean"
This is a developer convenience option and should not be used by distros or normal users. When enabled, it tries to use 3D accelera-
tion for all XRender operations where 3D acceleration is supported, resulting in a considerable slowdown due to the increased number
of readbacks of accelerated contents from host to guest. This option is used to verify that the accelerated Xrender paths works cor-
rectly with the "rendercheck" application. Default: off.
SEE ALSO
Xorg(1), xorg.conf(5), Xserver(1), X(7), xrandr(1)AUTHORS
Copyright (c) 1999-2007 VMware, Inc.
X Version 11 xf86-video-vmware 12.0.2 VMWARE(4)