>> On Sat, 2014-10-25 at 21:25 -0400, Derrik Walker v2.0 wrote:
>> cd /etc
>> echo '#!/bin/bash' > rc.d/rc.local
>> ln -s rc.d/rc.local rc.local
>> chmod 755 rc.d/rc.local
As noted, previously you should use 'vi /etc/rc.d/rc.local' to add the
'#!/bin/bash' line and any testing lines (like 'touch /var/tmp/hello')
After re-booting, check that the file
/usr/lib/systemd/system/rc-local.service exists. It is *supposed* to be
created when/if /etc/rc,d/rc.local exists and is executable *but* it may
not. If it does not, then rc-local.service should contain:
# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.d/rc.local is executable.
You don't actually need the 'start' on the 4th last line. With this file
in place and a systemctl enable rc-local.service' you should be good to go.
In my experience, this method is NOT stable. My guess is that, although
the priority of 99 is supposed to be last, systemd has started processes
which have not yet completed, when this is called, and things just fail.
In particular, modules may get loaded in the wrong order, so that the
hardware 'fails'. This sort of failure may not even be apparent in dmesg
I have had success and stable results using the following line in
*root's* crontab. (See Extensions in 'man 8 crontab')
And disabling/masking the rc-local.service file so it is still there but
This seems to depend entirely upon the hardware connected/installed in
the computer. My desktop machine is fine with rc-local.service, but the
mythtv box at home requires use of the crontab work-around to boot
reliably with everything properly loaded. Note that I have to remove and
re-install modules in rc.local to ensure the correct loading order. YMMV
R. Geoffrey Newbury
I am running Fedora 20 x86_64 with all updates.
These days I am, among many other things, reordering old family pictures
scanned in several occasions, by different people.
So I have folders with many, many files named like:
and so on. The problem is that, while the files are obviously sorted
correctly at the prompt when I do ls -l, this does NOT happen in any GUI
application I've tried so far: nautilus, gwenview, dolphin... They all
couldn't care less that I DO tell them to "sort by name". They keep
showing the pictures in some other, NOT alphanumerical order, as in the
example above. Which makes it very time consuming to catalog the
pictures, of course, but above all makes me wonder if there is something
wrong going on.
I've seen around some bug reports of the same "class", like
https://bugs.kde.org/show_bug.cgi?id=169883, but this seems a more
serious issue. My file names all start with the 4-digits year, so I
can't see how or why a file manager should not sort them correctly by
Any clue? Thanks!
There has been discussion of what it takes to make rc.local work. It
seems that some people are struggling with it.
There are a couple of important details, but for the most part, It's
almost trivial, as long as your not missing the important parts.
First thing I did was:
# echo '$!/bin/bash' > /rc.d/rc.local
# ln -s rc.d/rc.local rc.local # because certain things are just burned
into my brain.
# chmod 755 rc.d/rc.local
# vi /etc/rc.local
Setting the file permissions and making sure '#!/bin/bash' at the top
are VERY important.
So, if you are poking around on my system:
# ls -l /etc/rc.local
lrwxrwxrwx. 1 root root 13 Mar 1 13:47 /etc/rc.local -> rc.d/rc.local
# ls -l /etc/rc.d/rc.local
-rwxr-xr-x. 1 root root 376 Jun 26 09:05 /etc/rc.d/rc.local
# cat /etc/rc.local
# Fix the scheduler of the SSD
# changed to use deadline per benchmarks:
# 2014-06-26 dw2
# echo noop > /sys/block/sda/queue/scheduler
echo deadline > /sys/block/sda/queue/scheduler
# send an email on a (re)boot
echo $(hostname) booted on $(date) | mail -s "$(hostname) boot" root
And as you can see, it works:
# systemctl status rc-local
rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static)
Active: active (exited) since Tue 2014-10-07 23:20:39 EDT; 2 weeks 3
Main PID: 1036 (code=exited, status=0/SUCCESS)
Oct 07 23:20:39 tesla systemd: Started /etc/rc.d/rc.local Compatibility.
Oct 07 23:20:39 tesla sendmail: s983Kd5f001036: from=root,
Oct 07 23:20:40 tesla sendmail: s983Kd5f001036: to=root,
Hint: Some lines were ellipsized, use -l to show in full.
# cat /sys/block/sda/queue/scheduler
noop [deadline] cfq
Really, all you need is to create a proper shell script in
/etc/rc.d/rc.local with the correct permissions and it should work.
Derrik Walker v2.0, RHCE
"Those UNIX guys, they think weird!" -- John C. Dvorak
When I update to a new kernel with dnf or yum, it
installs it, creates a working initramfs file like it should, but it does
not update grub.cfg in /boot/grub2/ .
I see following error:
grubby fatal error: unable to find a suitable template
when I do then:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
all works fine but I have to do that on each kernel update.
System Fedora Core 20 x86_64
I am trying to update a package in a copr repo I maintain, but for some
reason I cannot figure out what I'm doing wrong with the package
versions. dnf does not seem to think the new package is an update.
Installed version: notmuch-0.18.1-5.20140902.git.ef5e66ae.fc20.x86_64
Updated version: notmuch-0.18.2-2.20141025.git.96193798.fc20.x86_64
I would expect this to work, but it doesn't; and before anyone points
out, I cleared the repo metadata with dnf clean metadata.
This is the build:
Any thoughts anyone?
Open source is the future. It sets us free.
I am able to backup files with this command:
rsync -av --delete /home/programmers/Labels /media/saved_labels
but *I am not able to select some kind of files doing the backup*
I tried in many different way:
rsync -av --delete /home/programmers/Labels/*.java /media/saved_lab
rsync -avr --delete /home/programmers/Labels/*.java /media/saved_lab
The message that I get is :
*sending incremental file listrsync: link_stat
"/home/programmers/java/PROJECTS_development/Labels/*.java" failed: No such
file or directory (2)sent 18 bytes received 12 bytes 60.00 bytes/sectotal
size is 0 speedup is 0.00rsync error: some files/attrs were not
transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.0]*
I would like to know how to start this command (after it is inside a shell
script) at the boot.
Thank you very much
I have a complex firewall setup running on an older version of Fedora, and I'd
like to upgrade to RHEL7 or recent Fedora. Unfortunately, I can't really do what
I need using firewalld, so two questions:
1 - has anyone done this and were there any serious gotcha's?
2 - is it as easy as removing firewalld and installing networkmanager with yum?
This setup uses two (soon three) ISP connections, any of which can be used as
default, two secure internal networks, and one DMZ for servers. Some connections
must be forced out via a defined ISP, and since Linux doesn't source route like
BSD, I can't just set the source IP and have the packet go out the right
interface, hoops must be jumped.
Any experience to share?
bill davidsen <davidsen(a)tmr.com>
CTO TMR Associates, Inc
Unsigned numbers may not be negative. However, unsigned numbers may be
less than zero for suffiently large values of zero.
My $PATH has a trailing slash in the last directory path, is there any
way to remove it?
AS example: echo $PATH
been googling with no luck.
thanks in advance
Installed latest memtest86
and also updated to latest kernel
but grub.cfg still has no entry for me
to boot memtest86.
I thought installing it would have created
the grub entry, as it had done before long
ago when I was running fc16.
Does anyone have the grub entry to share?
Reposted from <http://fedoramagazine.org/5tftw-2014-10-24/>.
Fedora is a big project, and it’s hard to keep up with everything that
goes on. This series highlights interesting happenings in five
different areas every week. It isn’t comprehensive news coverage — just
quick summaries with links to each. Here are the five things for
October 24th, 2014:
This is a week with a lot of conference activity — today we have an
FUDCon LATAM in Managua, Nicaragua
First up: our Latin American FUDCon is going on right now (yesterday,
today, and tomorrow). We already have some summary posts from Dennis
Gilmore (in English; and he’s planning to post more soon) and Luis
Bazan (in Spanish). More on this event next week!
LinuxCon EU 2014
Jiří Eischmann reports on Fedora’s presence at the Linux Foundation’s
LinuxCon Europe conference in Düsseldorf, Germany.
A quick quote:
> People were more interested in Fedora Server which is different from
> most events where people are mostly interested in Workstation, but
> it’s not surprising considering the audience. It really helps to
> advertise a specialized product because you can clearly say: if
> you’re interested in server OSes, this is what we have for you and it
> has these interesting features. That’s why I’m glad we have Fedora
> Server. From the marketing point of view, it’s much more appealing to
> have a solution (server product) than just a lego to build it. Quite
> a few people were interested in Fedora as a future of enterprise
> Linux because what they work with and care about is Red Hat
> Enterprise Linux.
… but I think the whole thing is interesting, especially if you’re
interested in how we promote Fedora and interact with the community at
this type of conference.
Seattle GNU/Linux Conference
Another one going on right now — SeaGL in Seattle, Washington. (From
the logo, looks like that’s “seagull” — cute!). Fedora hacker David Gay
(a.k.a. “oddshocks”, and one of the people behind Fedora Badges and
other projects) is speaking on Free Infrastructure later this
afternoon, sharing his experiences and answering questions. Attendance
is free, by the way, so if you’re in Seattle, it’s the obvious thing to
do with your weekend!
FOSDEM 2015 Call for Papers
FOSDEM (Free and Open Source Software Developers’ European Meeting) is
a gigantic community-organized and oriented conference which takes
place in Brussels every year at the end of January / beginning of
February. Right now, 2015’s conference is in its planning phase, with a
“call for papers” (that is, open submission for talks) open now for
both developer rooms and lightning talks and booths.
Of particular interest to Fedora is the Distribution Devroom:
> The purpose of the distributions devroom is to offer a forum for all
> people interested in distribution issues to meet and collaborate on
> improving the distribution ecosystem. What are the upcoming
> challenges facing the distribution space? How can distribution
> maintainers collaborate better to solve cross-distribution issues?
> What are interesting developments helping distribution developers to
> excel in the distribution space?
If you have a Fedora-related idea, let’s talk about it and get to
planning! (The Fedora Ambassadors mailing list is a good place to
DevConf.cz 2015 Call for Papers
Red Hat sponsors a conference in Brno, Czech Republic the week after
FOSDEM, and that too has an open Call for Papers. Continuing on the
success of last February’s event, the next DevConf.cz will feature an
entire Fedora Day — Jiří has details on his blog. Last year, there were
over 1000 attendees, and this year, the venue has been moved to
accommodate even more!
Matthew Miller mattdm(a)mattdm.org <http://mattdm.org/>
Fedora Project Leader mattdm(a)fedoraproject.org <http://fedoraproject.org/>