Fedora :: Prevent Yum Update From Undoing Changes Made To Files In /etc/init.d?
Dec 27, 2009
One of my machines is a desktop with a WIFI connection. This machine is not configured to use NetworkManager; instead, it still does things the old way via /etc/sysconfig config files.
Problem: this WIFI connection requires wpa_supplicant. By default, F11 brings up the network at priority 10 and wpa_supplicant at priority 23. So dhclient fails its initial attempt to obtain an IP for wlan0 (it will retry and succeed but by then it's too late). This causes other network-related startup tasks to fail. For example, ntpdate fails. This is problematic for systems with faulty CMOS clock batteries since ntpd will reject updates if the clock skew exceeds some threshhold (so ntpdate is usually used to preset the clock).
The workaround is easy enough: add "Required-Start: wpa_supplicant" dependency to the init stanza in /etc/init.d/network and let chkconfig figure out how to rearrange the priorities. This ensures that wlan0 is actually capable of sending a DHCP request when dhclient starts.
This works fine...until yum update decides to replace the scripts in /etc/init.d and, consequently, things go back to the old, broken startup priorities.
So my question: Can yum be told to not change files in /etc/init.d that have been modified by the administrator? Or to at least not overwrite the LSB-style init stanza in those files?
Alternatively, is there a better way to do this that's not vulnerable to updates? I tried playing with the modprobe.conf "install" option to pre-start wpa_supplicant before wlan0 comes up but that has so far been unsuccessful.
View 5 Replies
ADVERTISEMENT
Dec 15, 2010
perhaps I've been typing for 20m and, in command mode, I accidentally press a key that undoes all of my work. What would be one of the more elementary undo commands
View 4 Replies
View Related
Mar 5, 2010
I just installed 9.10 on a separate drive in my system. The update manager told me many updates were required, so I went ahead and installed. It needed to restart, but the system just got stuck after the default GRUB entry started loading.Is there a way to undo the updates? I can't boot into 9.10 any more so I'm not sure how this would work.
View 6 Replies
View Related
Dec 14, 2010
I recently added a repository to my package manager to allow me an installation of firefox 4.0. This worked, and when I ran a recent update, my package manager also updated my firefox 3.6 to a nightly build, as well as my thunderbird email application. What's worse is, it changed around all my icons and names, so now it uses the code name of the version (Namaroka, instead of firefox...) I'm sure this is great for developers, but I just want it to be normal. how I can step back with the update I did?
View 3 Replies
View Related
Dec 22, 2010
Last night I downloaded and installed 359 "recommended updates" for Lucid and now the Lucid VM in VBox won't go full screen correctly, like it used to. I'm willing to do anything to *restore* the system to the way it was before. What can I do
View 9 Replies
View Related
Nov 6, 2009
I've had a working desktop even running compiz just before I updated today. Anyway, after the reboot which was required after my update, I got a notification in the boot message which says:
Code:
Checking for module nvidia.ko: [FAILED]
nvidia.ko for kernel 2.6.30-9-96.fc11.x86_64 was not found. [WARNING]
The nvidia driver will not be enabled until one is found. [WARNING]
I continued logging in and got a white screen (most likely brought by compiz without the nvidia drivers). I hit terminal and disabled compiz then tried to see how nvidia is doing. Here's what I got from nvidia-xconfig:
Code:
Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
and finally here's what /etc/X11/xorg.conf contains: .....
View 7 Replies
View Related
Aug 11, 2009
After install glibc-2.10.1-4 (x86_64) package, i couldn't run the qemu-kvm anymore.
SELinux is preventing qemu-kvm (svirt_t) "setrlimit" svirt_t.
SELinux prevented pt_chown from using the terminal 0.
View 6 Replies
View Related
Apr 28, 2011
this is in fact my first attempt to try to work on a linux distribution and (dispite my problem) I'm still excited to work with it! I got the taste from messing around with my android phone, so I know a little bit of the syntax of the commands that are used, but it is realy basic.Now, my problem is my screen. I have two crt-screens ( inch and inch) which I can't manage to get working properly.
1. On a fresh install I had the problem that i couldn't get my refresh rate higher than 60 htz.I tryed installing different proposed drivers via the "system -drivers" (don't know if that is the right discription, I'm Dutch).The two proposed drivers didn't solve my problem.
2. I went to NVidia and download the Linux drivers for my graphical card (GeForce 8600 GT).I've gone trough a lot of trouble installing them: you can't install them when the Xserver is running, but commands like "init 1" or "gdm stop" made my system freeze (which is an other question: is this normal?). Eventualy I managed to install it by the "boot in safe mode"-option which I can choose when I boot my computer (I'm on a dual boot with windows 7).
3. Once the drivers installed it got worse. There was only one screen working and it worked only on a resolution of 640x480. It was just horifing. But with a lot of patient I managed to get one screen working at a resolution of 1024x768 and (again) not more then 60 htz, but the other screen was still stuck at 640x480. I kept playing around with it, edited my xorg.conf file manualy, broke it, restored it, etc etc. realy fun
4. This is the status ATM: both screens are working with twinview, both at a resolution of 640x480 (I can only select a lower one) and a refresh rate which I can't edit (stuck at "auto" and certainly way to low).I have an Nvidia driver which I don't like (it has made thing worse) but I can't unistall (I realy just don't know how to do that).I'm going to give my xorg.conf file at the end of this message.If this is a very typicly question, then I excuse myself. I realy have tryed to look for it, but couldn't find a thing. And if I found something, it was explained on a level of experitise much higher then mine.
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 270.41.06 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Mon Apr 18 15:15:00 PDT 2011
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 270.41.06 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Mon Apr 18 15:15:12 PDT 2011[code]....
View 1 Replies
View Related
Feb 15, 2010
will firefox 3.6 be made available as an update? If not is there anything special I need to know before installing it myself i.e. will flash still work?
View 5 Replies
View Related
May 31, 2010
I have had a good look round the forums but cannot come up with anything quite like this and the problem prevents me from using my NAS box and stuff is starting to stack up on my main PC now...
I have a Dell desktop running Ubuntu 9.04, a Shuttle running Mythbuntu 9.10 and a Netgear ReadyNAS Duo, all of which worked fine until this problem started. I have done nothing to any config files nor have I modified any settings from the outset, as far as I can remember I have just used everything as it came. This problem probably started a month or so back when update manager suggested a Samba update on both PC's which I accepted. I don't fire up my NAS box more than once or twice a month to back all my photos, music, video etc. so it was a while before I did (following the update) I could see the NAS and the Shuttle from the Dell but couldn't browse them I just got the error message 'Unable to mount location. Failed to retrieve share list from server' which I gather is all too common. I have searched around a bit on these forums and have tried a few things in the command line to gather information and I found something that worried me rather a lot. From Dell:
Code:
geoff@geoff-dell:~$ findsmb
*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
[Code]...
I haven't done any updates on the NAS box firmware so it can't be that and now I don't even see the shares in filemanager. What on earth is going on??? I know there are many other threads similar to this but but I am hoping that the slight difference might make this more obvious to solve. I forgot to mention that now I don't even see the shares in filedmanager - another thing that happened all by itself!
View 1 Replies
View Related
May 5, 2010
I have a ton of .avi files. Ever since my last ubuntu online update, they can't play at full screen even though they played fine last week. I tried reinstalling mplayer. No difference. Same problem with xine.
They freeze for about 1/2 second at at time and chop their way along. Not even viewable. But, they look fine in mini-mode.
I have 4 gb ddr3, a quad core, 2.83 gzh intel and an ati 4850 / 512 mb video card. CPU on gkrellm shows < 10%. I think I still have the proprietary ati drivers because I can still move my applications around the screen instantaneously. I have tried xv, gl and gl2 under mplayer -> prefs -> video. All are the same.
Everything works perfectly if I reboot to xp. Where does one begin to debug this?
View 3 Replies
View Related
Oct 23, 2009
when I am doing a "yum update" I receive now a long list (~94MB) because of the latest CentOS 5.4 release.I am running CentOS 5.3 on a virtual machine (virtuozzo) and had already problems to install 5.3 before. To not lose the installation I do not want to update to 5.4 but of course I want to get all updates for 5.3.How can I configure my CentOS 5.3 to update the server only with 5.3 patches/releases and how to prevent it to update to 5.4?
View 7 Replies
View Related
Dec 27, 2010
I made an ubuntu 10.04 bootable flash disk to install ubuntu and I wanted to know if there is a way to add some packages,scripts, binary files and text files or change some of Linux configuration files in it to install ubuntu with these new configuration files and new scripts and packages?
View 1 Replies
View Related
Feb 13, 2011
I have made a shell script to copy and delete files through FTP.I want to first delete all txt files and then mput all txt files.
Code:
ftp ()
{
[code]....
View 6 Replies
View Related
Nov 18, 2010
I have a PC that have a new Ethernet card that is not yet supported by Debian/Lenny.I downloaded the latests driver from the manufacturer and after a make;make install everything works like a charm.My problem is that one day after a probable update, Debian overrided my new driver by an other one causing my Ethernet card to shut down.After an other make install, everything work again like it should..But how do i do to prevent Debian to update my driver ?
View 1 Replies
View Related
May 3, 2010
I don't want games on my computer (running 9.10). Removed them successfully, but update manager keeps presenting them as suggested updates in update manager. Requires me to go through and uncheck all the games each time I do an update. Is there some way I can stop update manager from re-presenting removed programs or block future game updates?
View 2 Replies
View Related
Feb 26, 2011
I've recently downgraded kaffeine to 0.8.8 to get back the EPG which was working under hardy. Is there a simple way to prevent a package from updating when I update the rest of the system? I realise that this is not normally a good idea to keep packages back like this, but the upgrade to kaffeine caused the loss of a useful tool.
View 4 Replies
View Related
Dec 16, 2010
A few days ago I had a problem with my screen resolution after a safe-upgrade. I struggled a little but I finally downgraded and pinned the intel driver. But now, each time I turn my computer on I get a notification of "1 update aviable" I've checked and the update is correctly pinned (I used keep and forbid-version), it does not upgrade. As you can see, this is not critical, but I would apreciate a fix.
Details:
Debian sqeeze/sid with KDE4 on Acer Aspire One ZG5. I manage my programs with aptitude.
View 3 Replies
View Related
Mar 22, 2011
I am slowly learning Linux by bringing up a server. Using tasksel, I installed the LAMP-server, which went fine. Now, however, I have mucked about with various config files and made the setup unusable. I'd like to do uninstall all of the LAMP packages and do a clean (and more thoughtful) install. Here's the problem: tasksel returns an "aptitude failed (100)" error. I have search various forums and all of the help related to this error (which I can't actually find *explained* anywhere) is related to installing packages. I tried them anyway, without success. man pages and the stack of manuals I have don't seem to be of much help either.
- describe what the error message means?
- a way to remove the packages or the config files by hand?
View 3 Replies
View Related
May 1, 2011
I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy
View 8 Replies
View Related
Feb 1, 2011
Let's say I have a init script, etc/init.d/strangeScript, that starts like this:
Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides: strangeScript
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
[Code].....
Why is it not only complaining my runlevels do not match the defaults, which they do, but also is refusing to create the links to the proper runlevels? This is 10.04LTS if that matters.
View 1 Replies
View Related
Dec 4, 2010
i dont want to install some updates via update manager..so i untick them while updating..but when update manager checks for updates again..dey show up again..i m tired to unticking them again and again everytym. what should i do to prevent some updates from showing up again and again in update manager ?
View 2 Replies
View Related
May 2, 2011
I have recently upgraded ubuntu to natty. I'm using a ppa (Firefox Stable) and during an update using update manager it blocked on these lines:
Setting up xulrunner-1.9.1 (1.9.1.18~hg20110309r27352+nobinonly-
0ubuntu1~umd1)
This prevents me to even see other updates cause update manager says the index is broken. How can I solve this? I don't want to reinstall firefox because I'm worried it blocks again (now firefox works).
View 1 Replies
View Related
May 15, 2010
i want to transpose "$ bash man" to "$ man bash" using <alt-t> on the command line in ubuntu 10.04. however, doing this in the bash shell activates the "Terminal" menu.in a bash shell <alt-t> is suppose to transpose the two words to the left the cursor but the menubar is not passing <alt-t> up the tree to the bash shell.
View 2 Replies
View Related
May 22, 2010
everytime I run "zypper up -t patch", I get the following:
Code:
Loading repository data...
Reading installed packages...
Resolving package dependencies...
[code]...
View 4 Replies
View Related
Jul 28, 2010
I need to prevent that the latest kernel update removes the only kernel that still works in my computer. how can i do this? Currently I have 3 linux kernels versions:
Code:
Ubuntu 10.04 LTS, kernel 2.6.32-23-generic
Ubuntu 10.04 LTS, kernel 2.6.32-23-generic (recovery mode)
Ubuntu 10.04 LTS, kernel 2.6.32-22-generic
[code]...
But only the oldest works. With the new update there is a new kernel version (2.6.32-24) that possibly will not boot (like previous 2.6.32-* kernels) and also I expect that, as in previous updates, the oldest kernel will become inaccessible, thus rendering my ubuntu unbootable.
PS: unsolved threads on the underlaying problem: Can't boot default kernel after upgrading from 9.xx to 10.04 lucid Upgrade to 10.04 freezes on the Ubuntu screen
View 7 Replies
View Related
Mar 1, 2011
Is there any way to stop Dolphin from creating .directory files in all my directories when I am viewing hidden files?
I am pressing Alt+. to view hidden files in a directory.
Other file managers seem to do it fine.
View 5 Replies
View Related
May 17, 2010
I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.
View 1 Replies
View Related
Jun 29, 2011
I use software where I have to edit a text file in order to get my custom needs from it. Problem is that when the author puts out an update, it always overwrites my changes and I have to spend hours trying to compare the file, re-edit my changes back in, etc. This happens sometimes as often as once per month.
I've wondered if there might be a linux tool or commands which would look through the new file, then at my old file, changing only the text which already exists while not breaking anything else. Most software authors seem to know how to do this but since mine doesn't, how can I accomplish this on my own?
View 7 Replies
View Related
Feb 10, 2011
what if the root user by mistakenly stops/starts any service and tried to remove those traces from the log files and save those log files. Then how can we ensure that our log file is trusted. Is there any way where even the root(superuser) also cant edit/modify the contents of the /var/log/* files.
View 2 Replies
View Related