Fedora Linux Support Community & Resources Center
  #1  
Old 19th September 2011, 03:41 PM
geolab Offline
Registered User
 
Join Date: Nov 2008
Posts: 119
linuxchrome
/etc/rc.local missing in f16

hi. I used to reconfigure the apple keyboard following the instructions in
https://help.ubuntu.com/community/AppleKeyboard
usually using the third way , writing the /etc/rc.local
Now in f16 the rc.local file is missing
I tried to create one with the script inside but it doesn't work
Then I tried to create the /etc/sysfs.conf
but it doesn't work either (after reboot both of them)

can you please help me where to write the necessary changes for making the apple keyboard work again in f16?
  #2  
Old 19th September 2011, 03:55 PM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 48
Posts: 3,864
linuxfirefox
Re: /etc/rc.local missing in f16

Dont you mean /etc/rc.d/rc.local

if not try in terminal
Quote:
whereis rc.local
  #3  
Old 19th September 2011, 04:07 PM
geolab Offline
Registered User
 
Join Date: Nov 2008
Posts: 119
linuxchrome
Re: /etc/rc.local missing in f16

I try.. thankssss!!!!!!

---------- Post added at 05:07 PM ---------- Previous post was at 05:00 PM ----------

well... it doesn't work . To say the truth there is no rc.local in /etc/rc.d and I created from scratch
still not able to use that damn apple keyboard
do you know how could I possibly setup in fedora using this instructions for ubuntu?
https://help.ubuntu.com/community/AppleKeyboard
for example what's the equivalent of sudo update-initramfs -u?
or where is a working rc.local?
  #4  
Old 19th September 2011, 06:17 PM
Dangermouse Offline
Administrator - (On Leave)
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 48
Posts: 3,864
linuxfirefox
Re: /etc/rc.local missing in f16

Hmm strange, just spun up the f16x64 Alpha and rc.local is in /etc/rc.d/rc.local, on mine..
  #5  
Old 19th September 2011, 06:19 PM
geolab Offline
Registered User
 
Join Date: Nov 2008
Posts: 119
linuxchrome
Re: /etc/rc.local missing in f16

mmmh strange... in the pc with the alpha installation disc I have the rc.local in /etc/rc.d
in the one made with the beta rc installation disc , there is no rc.local....
  #6  
Old 19th September 2011, 08:59 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: /etc/rc.local missing in f16

You could follow the instructions for using the .conf file from there...

Quote:
With .conf file (Recommended)

1. Append the configuration line to the file /etc/modprobe.d/hid_apple.conf creating it if necessary:

$ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf

2. Notify the hid_apple module to reload its configuration

$ sudo update-initramfs -u

3. Reboot

$ sudo reboot
and instead of running update-initramfs, you run dracut -f to build the initramfs.

Code:
cp /boot/initramfs-$(uname -r).img initramfs-$(uname -r).bak

dracut -f /boot/initramfs-$(uname -r).img $(uname -r)
The rc.local file was used to start up things uning sysvinit/upstart, and Fedora now uses systemd. While systemd does still run the rc.local file, it may disappear in the future.
  #7  
Old 19th September 2011, 10:35 PM
bsund Offline
Registered User
 
Join Date: Nov 2007
Posts: 80
linuxfirefox
Re: /etc/rc.local missing in f16

Quote:
Originally Posted by DBelton View Post
The rc.local file was used to start up things uning sysvinit/upstart, and Fedora now uses systemd. While systemd does still run the rc.local file, it may disappear in the future.
I often use it for quick hacks, where is that supposed to go now?
I'm not old at all but still think some stuff simply move a bit too fast with the "new and improved" Macin.. err Fedora.
  #8  
Old 20th September 2011, 01:42 PM
Ahmad Samir Offline
Registered User
 
Join Date: Aug 2011
Posts: 657
linuxfirefox
Re: /etc/rc.local missing in f16

Looks like the changes from https://bugzilla.redhat.com/show_bug.cgi?id=734268

Now you need to make sure rc-local.service is enabled ('systemctl enable rc-local.service'), and that /etc/rc.d/rc.local exists and is executable.
  #9  
Old 21st September 2011, 07:25 PM
AdamW Online
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,186
linuxfirefox
Re: /etc/rc.local missing in f16

there's no real change here except the file doesn't exist by default (because we don't need it for anything). if you create one, it will work just as before.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #10  
Old 21st September 2011, 07:30 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,871
linuxfedorafirefox
Re: /etc/rc.local missing in f16

It likely needs to be executable as a script. Should start with ...
Quote:
#!/bin/sh
and needs execute permission.

Also note the links ....
Quote:
[root@lycoperdon ~]# ls -l /etc/rc*/*local
lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc2.d/S99rc-local -> ../rc.local
lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc3.d/S99rc-local -> ../rc.local
lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc4.d/S99rc-local -> ../rc.local
lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc5.d/S99rc-local -> ../rc.local
-rwxr-xr-x. 1 root root 245 Jul 19 14:12 /etc/rc.d/rc.local
[root@lycoperdon ~]# ls -l /etc/rc.local
lrwxrwxrwx. 1 root root 13 May 13 15:42 /etc/rc.local -> rc.d/rc.local
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 21st September 2011 at 07:37 PM.
  #11  
Old 22nd September 2011, 04:44 AM
AdamW Online
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,186
linuxfirefox
Re: /etc/rc.local missing in f16

stevea: the links in /etc/rc*.d are not necessary. they're for sysv-style init, systemd doesn't need them.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #12  
Old 22nd September 2011, 05:31 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: /etc/rc.local missing in f16

just out of curiosity here..

Would systemd handle a different rc.local file for different runlevels?

Say for example, you wanted to run one rc.local file for what was the old runlevel 5, but a different one if you started in the old runlevel 3?

in the old sysvinit, you could put a different rc.local file in the /etc/rc3.d and /etc/rc5.d folders, replacing the symlinks with a file that did different things depending upon what runlevel you started.

Does systemd pick it up if you were to do that?

I know that the rc.local isn't really the "preferred" way of doing things in systemd, but it does appear that it will have to remain for a little while longer until systemd has a good replacement for it.
  #13  
Old 22nd September 2011, 08:36 AM
AdamW Online
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,186
linuxfirefox
Re: /etc/rc.local missing in f16

dbelton: from a quick look, no, I don't think it would. systemd's handling is pretty simple, it just has a unit file which does this:

ExecStart=/etc/rc.d/rc.local start

it just calls the file in /etc/rc.d directly. There's no kind of provision for hooking things up to its SysV runlevel compatibility stuff.

The thing with systemd is it's actually very, very easy to write and put into the appropriate place a systemd unit. If I wanted to have some script fire in 'runlevel 3' and some other script fire in 'runlevel 5' I'd just hook 'em both up as native systemd units. It's really not very difficult at all. systemd is actually a pretty fun system to play around with, and it's definitely a good way to learn its capabilities.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #14  
Old 22nd September 2011, 05:56 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: /etc/rc.local missing in f16

That's kinda what I figured, Adam. Thanks for the confirmation, though.

And yes, I have been messing around with systemd somewhat, and find that it is actually easier to set things up than it was with sysvinit. It is a learning curve, though, and I believe that's what the biggest issue people are having with it is (That, and the fact that sometimes it's hard to nail down documentation on it)

I had problems at first mainly because of the verbosity of things, but after I got used to that, it's really easier to use.
  #15  
Old 22nd September 2011, 10:06 PM
AdamW Online
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,186
linuxfirefox
Re: /etc/rc.local missing in f16

the systemd man pages have covered everything I've needed to know so far, though it can be a bit annoying guessing whether what you need is in systemd, systemd.unit, systemd.service, etc etc
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
 

Tags
f16, missing, or etc or rclocal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
halt.local / rc.local.shutdown for Fedora? flansuse Using Fedora 4 10th December 2010 10:40 AM
Sending mail to a 'local' user who is actually not local danscott Servers & Networking 0 28th February 2010 05:03 PM
Am I missing something when it comes to /etc/rc.local? Jongi Using Fedora 13 28th July 2008 10:53 PM
How to block all local IP and allow certain local IP using IPTABLES to connect inet? laluvirtual Security and Privacy 5 29th June 2007 01:07 PM
Xclamav: local socket name /var/run/clamav/clamd.sock missing jespinosa Servers & Networking 4 9th November 2005 08:41 PM


Current GMT-time: 11:51 (Tuesday, 30-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat