Note to self…. If I want to “do” something to all files in all sub-directories then I need…..
#!/bin/bash
export IFS=$'\n'
for i in $(find $1 -type f)
do
echo "$i"
done
Note to self…. If I want to “do” something to all files in all sub-directories then I need…..
#!/bin/bash
export IFS=$'\n'
for i in $(find $1 -type f)
do
echo "$i"
done
Seahorse is a cracking GnuPG implementation for Gnome.
Just like GnuPG it also requires secure memory to get the best privacy; I can never remember how to set this up, fortunately there’s an faq on gnupg.org so a quick…
sudo chmod 4755 /usr/bin/seahorse*
and we’re done, no more error messages
Looking through the my yum updates for the day I notice that mediatomb is set for an update, is this the version 0.11 with transcoding we’ve all been waiting for? Sadly no, but it is a fedora build for the default repo – YAY
http://koji.fedoraproject.org/koji/packageinfo?packageID=5527
A big thanks to mwiriadi for this!
As it’s quiet at work (due to the usual x-mas madness) I decided on Friday to upgrade from Fedora 7 to 8, now this was a bit of a risk for me since I have F7 running perfectly. The fedora release notes advise a clean install over an upgrade, so it’s important when you do this to backup /etc so that you can restore anything you need later.
As with all fedora installs it’s always two steps forward and one step back, my reasons for upgrading were:
Unfortunately so far I’ve had a couple of issues (my steps back),
It’s a shame that beagle still doesn’t index my evolution exchange account other than that all looks good, the wallpaper that changes on the time of day is a neat feature; I recommend the following resources to anyone looking to upgrade or use fedora.
I know that day light savings is new to the US, but in the UK it has always been, anyway something weird happened this year, the clocks changing clashed with a password change; now this may not have been the fault but since then I’ve not been able to get my gnome evolution email client to connect to our corp’ Microsoft exchange server (via exchange-connector).
After a bit of fruitless googling for authentication issues, I decided to try and flush my evolution settings by deleting (well moving actually) my ~/.evolution directory, but this didn’t help, neither did deleting the account within the client (you know via mail setup)… fortunatley I found the following FAQ :
Where does Evolution store my data?
Evolution stores your data in $HOME/.evolution/, your account settings in $HOME/.gconf/apps/evolution and your passwords in $HOME/.gnome2_private/Evolution. The passwords are not stored encrypted, just base64 encoded. SSL Certificates are stored in $HOME/.camel_certs, and if Evolution crashed while you were writing an email, there could even be a file $HOME/.evolution/.evolution-composer.autosave-123456 (where 123456 is some string). Note: If you run Evolution 2.8 or older, the file will be at $HOME/.evolution-composer.autosave-123456.
So I restored my ~/.evolution folder and renamed ~/.gnome2_private/Evolution to /.gnome2_private/Evolution.bak, ran an evolution --force-shutdown, and re-opened evolution.. and joy authentication works again!
By the way, I’m posting this from flock… hope it works!
I stumbled across this the other day, I’ve no idea why the fedora team would go to the effort of making a really nice theme for the lock dialogue for gnome screen saver then leave it “disabled by default”. After a quick google I found the ubuntu guys have been up to something similar, so here a quick how to enable the fedora art work on the gnome-screensaver lock screen.
To enable paste this into a terminal (NOT root, as your normal user).
gconftool-2 -s --type=string /apps/gnome-screensaver/lock_dialog_theme system
To switch it back:
gconftool-2 -s --type=string /apps/gnome-screensaver/lock_dialog_theme default
The only “downer” is that your avatar isn’t shown, but for my work laptop I prefer this theme, much cooler fedora advocate when I’m not at my desk
I found this on redhat.com the other day….
It is now possible to limit yum to install security updates only. To do so, simply install the yum-security plugin and run the following command:
yum update –security
Hopefully this will allow fedora users to have the option of running a “stable” install
There are times where you cannot use WiFi, for example my workplace’s WLAN uses LEAP, which maemo doesn’t support. I found that setting up USB networking on my n800 was a bit of a pain since there isn’t a single document… if you check my del.icio.us feed you’ll see I bookmarked all I could find with a usbnet tag.
These are the steps I ran through to enable usb networking between my nokia n800 and my fedora 7 laptop.
First we’ll start with the basic setup… I’ll assume you’ve read a getting started article similar to mine and already have root & xterm. By default n800 has a usb interface configured, you just need to enable it, so on your n800 type:
sudo gainroot
insmod /mnt/initfs/lib/modules/2.6.18-omap1/g_ether.ko
ifup usb0
The default settings add an interface with a static ip of 192.168.2.15/24 with a default gateway of 192.168.2.14.
Now lets set up something similar on Fedora, you need to create a file in /etc/sysconfig/network-scripts called ifcfg-usb0 with the following…
DEVICE=usb0
BOOTPROTO=static
IPADDR=192.168.2.14
BROADCAST=192.168.2.255
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=no
MII_NOT_SUPPORTED=no
Now plug the usb cable into both devices, and on your fedora box (as root) type
ifup usb0
You now have connectivity, of course if you have a default fedora install pinging 192.168.2.15 will fail because of the firewall, it is probably best to temporarily disable the firewall (/etc/init.d/iptables stop) to see if it works, if so move onto configuring your firewall correctly (/etc/init.d/iptables start starts it again)
You may also get usb conflicts, you can try
rmmod uhci_hcd
but it will disable any USB devices, you have been warned.
With this basic connectivity setup you’ll have two issues; you only have connectivity between fedora & n800 nothing else works, and opening any application on n800 causes it to try and connect to your wifi, so lets look at those….
I’m going to assume you used system-config-securitylevel to configure your firewall, its worth noting that any changes you make now will be overwritten by any future use of system-config-securitylevel so it’s probably best to take a backup of /etc/sysconfig/ipatbles now and later when you’re finished.
So as root type:
iptables -I RH-Firewall-1-INPUT 2 -i usb -j ACCEPT
iptables -I FORWARD 1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -I FORWARD 1 -s 192.168.2.0/24 -j ACCEPT
iptables --table nat --append POSTROUTING --out-interface eth0 -s 192.168.2.0/24 -j MASQUERADE
/etc/init.d/iptables save
This will allow all connectivity in from the usb interface allowing the n800 to send packets into the fedora box whilst the firewall is running, it will also NAT any traffic from the usb network hiding the n800 behind fedora so that you get onward connectivity. To get the NAT to work you need to enable ip forwarding, this allows fedora to pass pakets between interfaces, to do that type
echo 1 > /proc/sys/net/ipv4/ip_forward
and to get it to survive a reboot update /etc/sysctl.conf with
net.ipv4.ip_forward = 1
The final part is to enable name resolution (DNS), on n800, I updated /etc/resolv.conf with the opendns servers…
nameserver 208.67.222.222
nameserver 208.67.220.220
All things being equal you should now be able to ping www.google.com from your n800
To get applications to connect, I found on the latest version of ITOS that the DUMMY IAP didn’t work, so I stumbled across this solution.
Create an “ad hoc” wifi connection with static IPs… anything it doesn’t matter, and when that’s connected in xterm (as root) type ifconfig wlan0 down , you should now be able to connect to the web with your browser / skype etc over your usb network… sweet!
A fedora start page is being tested… the original mine looks a little different tho, nothing a quick css update wouldn’t fix
I saw this on planet fedora and thought I’d post it,
GNOME Password Generator is now back as a Fedora package.
Reference: Debarshi’s den – gnome-password-generator@fedoraproject.org
It’ll be nice to have an alternative to this perfect password generator as we’re not always online are we
I after installing Fedora7 I thought I’d take a look at the stats the project had gathered, I saw some centos devices, but couldn’t find a rpm.
I’ve had a go at building one, it mostly works (this is my nagios box), it’s a rebuild of the f7 source, I have to frig about with the spec file, so I’ve published my source rpm here, search for Nick in the .spec file, you’ll see my bodge.
The smolt rpms are in my yum repo, feel free to download the packages and have a go.
I was doing some testing on my server the other day, and realised that http compression within apache (httpd) was not enabled by default. Further digging showed me that mod_defate was what I needed, and infact it was installed by default on my CentOS box.
How to enable mod_default on Centos: Create /etc/httpd/conf.d/deflate.conf with the following contents
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
# Don't compress already compressed stuff !
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
# Log Stuff !
# DeflateFilterNote Input input_info
# DeflateFilterNote Output output_info
# DeflateFilterNote Ratio ratio_info
# LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
# CustomLog /var/log/httpd/deflate_log deflate
restart httpd (/etc/init.d/httpd restart) and your done
References:
I’ve been a proud linux counter member (#372709) for sometime now; a few days ago I got some bounce-back error messages..
<machine-registration@gimel.counter.li.org> (expanded from <machine-registration@counter.li.org>): delivery temporarily suspended: connect to gimel.counter.li.org[158.38.152.227]: No route to host</machine-registration@counter.li.org></machine-registration@gimel.counter.li.org>
I didn’t think, much of it at the time, maintenance happens, but today noticed it again, a quick google shows that others have noticed too… I do hope this isn’t the end of what was a great project
Why has it taken me so long to spot this ? Looks like this draft was written on the 13th May, if I hadn’t have been just about to download FC7 then I’d have missed it !
EPEL – Fedora Project Wiki
EPEL is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs like CentOS or Scientific Linux.
About time, and thank you redhat/fedora, want fedora extra packages in centos, then install this epel-release .rpm frickin’ sweet !