Moodle on Fedora 16
by Ester Muñoz Aparicio
Hello list members!
I'm having a hard time trying to make moodle work on my Fedora 16.
Few days ago I got the greatest news: one of my clients is moving to
Moodle and that means a lot of work for this year. The Moodle server
will be in their headquarters and someone will take care of it, so no
problem there. But I have to move 80 and something courses from another
CMS to Moodle, and the production server will not be available in a
while...
I want to setup a local development server to start migrating the
courses, and also to maintain them and move ready copies of the courses
to production.
Yesterday I installed moodle from the repositories, together with a
bunch of dependencies, http and php + php modules.
Then I fought against moodle for the rest of the day as it appears that
it did not allow me to use any directory to be its data directory. I
finally solved that this morning with some SElinux magic after few hours
of reading.
I pointed the browser to localhost/moodle and tada! welcome page. Click
next. Error, cannot continue, php-zip is missing. I yum search for it,
and it is not on any repository. I confirmed it does not exist in any
repo, so.... well, here I am now.
Questions:
- How can I install php-zip?
I am comfortable on Linux, been using Fedora since it exists, on 3
different computers at home. I have made my share of administering them
and they all work so far :-) although I have never installed anything
from source.
So, what would be the easiest way to install php-zip? Can I get
somewhere the srpm and build it? Or do I really have to uninstall php
and install from scratch with "enable zip"? This last bit scares me.
- Is it possible somehow to make moodle accept as data folder one folder
in /home? I couldn't make it work. At the moment it resides in
/var/www/moodledata, but I'd like to move it under /home as this
partition is much bigger.
I'm sure more things will come up, I'd appreciate any and all the help
you could offer.
Cheers,
Ester
12 years, 3 months
Usb devices and kernel modules auto-loading
by Marco Vittorini Orgeas
Hi list,
I'm on Fedora 16 and trying to solve a problem with an usb device(a CP2103
based device) which doesn't get recognized by the system, even if the linux
driver already supports it at 99%:
the problem seems to be that CP210x based devices have vendor programmable
device IDs and if the device is not being detected is likely because the
device IDs are unknown (http://www.etheus.net/CP210x_Linux_Driver).
Now it would seems that adding my device id(which is not present at the moment
in the latest kernel module) could solve the problem, thus I've modified the
source of the driver and I've successfully locally compiled it following
http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-
kernel-source-tree.html.
I have issued a "sudo modprobe CP210x" to load the CP210x module, and it loads
fine, but the dmesg output shows the kernel doesn't still recognize the device
when I plug it.
I guess my problem is the linux kernel while using an auto-loading (hot-
plugging?) feature to auto-load usb modules, is still referring to the stock
CP210x module included with the kernel source tree instead of mine and this
prevent it to successfully recognize the device as supported.
I've tried searching around for info about the auto-loading mechanism and how
to pin inside it, but I've found an overwhelming amount of text which does not
explain where (and how) the kernel search for its available drivers.
Would somebody point me to the right direction and clear how the kernel manage
usb modules auto-loading in latest fedora or add just some hint?
thank you,
Marco
12 years, 3 months
OT: bash script - unexpected exit
by Hiisi
Hi, list.
Sorry for OT. I like this list and really appreciate your help. Please
excuse me if this post irritates you.
I want to write a bash script that will do some work on a LAN. Here's
the script (at least I execute it on Fedora machine ):
#!/bin/sh
set -e
cat hosts | while read line
do
if (! grep -q repo.corp.macros /etc/apt/sources.list ); then
echo $?
sshpass -p '*****' ssh -o UserKnownHostsFile=/dev/null -o
StrictHostKeyChecking=no -o ConnectTimeout=3 master@$line 'echo
"*****" | sudo -S sed "s/http:\/\//http:\/\/repo.corp.macros:3142\//g"
/etc/apt/sources.list > /home/master/sdjhfklj' ; echo $?
sshpass -p '*****' ssh -o UserKnownHostsFile=/dev/null -o
StrictHostKeyChecking=no -o ConnectTimeout=3 master@$line 'echo
"*****" | sudo -S echo "deb
http://repo.corp.macros:3142/apt-cache/repo /" >>
/home/master/sdjhfklj' ; echo $?
sshpass -p '*****' ssh -o UserKnownHostsFile=/dev/null -o
StrictHostKeyChecking=no -o ConnectTimeout=3 master@$line 'echo
"*****" | sudo -S mv /home/master/sdjhfklj /etc/apt/sources.list';
echo $?
fi
done
The problem is that it never works for more than one host. I.e. in
hosts file there's 36 hosts. The script works as expected on the first
one and then it exits. ERRORLEVEL ($?) is always zero at each point.
What am I doing wrong and how to modify it?
TIA
--
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.
12 years, 3 months
F16 unusable while writing to pendrive
by Patrick O'Callaghan
This looks like a regression. Under F15 when I wrote large files to a
pendrive, the system would become a little sluggish. Now it essentially
freezes until the write terminates. What I mean is that the UI is almost
completely unresponsive; even clicking between two terminal windows is
so slow that you can see the window contents refresh, followed several
seconds later by the frame.
Fully updated F16 with KDE, Intel Core 2 Dual, 4GB RAM, Intel onboard
graphics. The pendrive is an 8GB Patriot Xporter (a year or two old)
under USB-2 with no intervening hub.
poc
12 years, 3 months
Printer problems
by Mickey
Samsung's installer believes CUPS expects to find file
/usr/lib/cups/filter/rastertosamsungsplc , but he is wrong: CUPS expects
to find those file in /usr/libexec/cups/filter.
Is this a true statement as for Fedora 16 ? does cups look at
/usr/libexec/cups/filter ? Instead of /usr/lib/cups/filter?
12 years, 3 months
docbook toolchain
by Gergely Buday
Hi there,
is the publican toolchain still the recommended vehicle for docbook
authoring in Fedora?
- Gergely
12 years, 3 months
systemd and shutdown
by Ian Chapman
Hi,
Does anybody have any ideas how I can diagnose why a system fails to
shutdown?. It's running F16 but issuing a poweroff or reboot just causes
it to hang during shutdown. I've no idea what's causing it because
systemd does a whole bunch of things in parallel. Is there anywhere to
produce a list of services that systemd shuts down and their order? I've
enable various levels of debugging, but see nothing useful from systemd
in the logs, not that it seems to log all that much anyway. Cheers.
--
Ian Chapman.
12 years, 3 months
Feedback: systemd poweroff fixfiles is it possible?
by Frank Murphy
Looking for feedback
I havn't seen anything in
https://fedoraproject.org/wiki/Systemd
Google not much help.
but I would like
"fixfiles onboot"
to run just before poweroff both cli\gui
not sure how
"Requires=fixfiles"
"After="fixfiles onboot"
would work out.
[Unit]
Description=Power-Off
DefaultDependencies=no
Requires=shutdown.target umount.target final.target /usr/bin/fixfiles
After=shutdown.target umount.target final.target "fixfiles -q onboot"
.include /usr/lib/systemd/system/poweroff.service
Would use a crontab,
but not sure how
"@poweroff fixfiles onboot"
could be worked in, as not valid as a command
--
Regards,
Frank Murphy
UTF_8 Encoded
12 years, 3 months
ld finds some libraries, but not others.
by Jonathan Ryshpan
A build is failing with the error cannot find <library> for libraries
that are, in fact present on the system.
I made a very simple test bed, consisting of the empty file conftest.c,
which I attempt to compile and link with various libraries. All the
libraries are in /usr/lib64. Sometimes the compilation fails with
undefined reference to `main'
which is what I would expect, but often it fails with
cannot find -l<whatever>
I have no idea what's happening. Can anyone explain?
Here's an example of what's going on. This is a listing of some files
in /usr/lib64:
1167 lib64 $ ll libICE.so* libgd.so* libkate.so* libkblog.so.*
lrwxrwxrwx. 1 root root 15 Nov 9 18:28 libICE.so -> libICE.so.6.3.0*
lrwxrwxrwx. 1 root root 15 Nov 9 08:02 libICE.so.6 -> libICE.so.6.3.0*
-rwxr-xr-x. 1 root root 98328 Jun 21 09:37 libICE.so.6.3.0*
lrwxrwxrwx. 1 root root 14 Nov 9 08:14 libgd.so.2 -> libgd.so.2.0.0*
-rwxr-xr-x. 1 root root 278048 Oct 26 20:15 libgd.so.2.0.0*
lrwxrwxrwx. 1 root root 16 Nov 9 08:06 libkate.so.1 -> libkate.so.1.2.1*
-rwxr-xr-x. 1 root root 75640 Mar 7 2011 libkate.so.1.2.1*
lrwxrwxrwx. 1 root root 17 Nov 13 09:03 libkblog.so.4 -> libkblog.so.4.7.0*
-rwxr-xr-x. 1 root root 312960 Nov 4 10:05 libkblog.so.4.7.0*
And here's a attempt to compile the dummy linking to them:
1033 wview-5.19.0 $ gcc -o conftest -g -O2 conftest.c -lICE
/usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
1034 wview-5.19.0 $ gcc -o conftest -g -O2 conftest.c -lgd
/usr/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
1035 wview-5.19.0 $ gcc -o conftest -g -O2 conftest.c -lkate
/usr/bin/ld: cannot find -lkate
collect2: ld returned 1 exit status
1036 wview-5.19.0 $ gcc -o conftest -g -O2 conftest.c -lkblog
/usr/lib/gcc/x86_64-redhat-linux/4.6.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
12 years, 3 months
Practical problem with NFS
by Timothy Murphy
I have a server running CentOS-6,
and a laptop running Fedora-16.
I'd like to say, on my laptop,
mount server:/common /common
and then keep some personal data on the server.
The problem is that my UID on the server is 500,
while it is 1000 on the laptop.
This means that my files on the server
are seen on the laptop as owned by nobody.nobody,
and are signalled as read-only.
Is there some simple way of overcoming this?
--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin
12 years, 3 months