Archive for technology

GYB – Got your back

GYB is a command-line Gmail back-up and restore utility.
It’s available from Google Code under the ‘downloads’ tab for Windows, Mac and Linux.

I don’t know how well it works for Windows and Macs but it seems to work OK for Linux.

Simply download the zip file and extract it to somewhere in your Home directory, create a folder in your Documents directory for the back-ups and then as long as you have Python installed (most Mac and Linux machines will have this already) all you need do is navigate to the folder where GYB lives – home/user/gyb by running

# cd ~/gyb

then

#alias gyb=”python gyb.py” so you don’t have to run “python gyb.py” all the time

 

then it’s simply a matter of running the command to back-up

#gyb –email youremil@gmail.com –folder /home/user/nameofbackupfolder

 

and you get a back-up

 

then (heaven forbid) if you need a restore it’s

# gyb –email youremail@gmail.com –restore –folder /home/user/nameofbackupfolder

Replace user with your user name

nameofbackupfolder with the name of the folder you created for the back-ups

 

 

 

Aide-mémoire

not the diplomatic kind
– just some things I need to keep in mind for an upgrade/install to Fedora 13 64bit

#1

nVidia Graphics

Fedora 12 / 13

In order to keep compatibility with nouveau, you either need to recreate the initrd manually after the driver has been installed, or add a command line option to the kernel. To recreate the initrd:

su -
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

To use the default initrd, but disable the nouveau driver, edit /etc/grub.conf and add the following to the end of the line(s) starting with ‘kernel’:

  rdblacklist=nouveau nomodeset

Before using the driver, you need to lower your system protection so SElinux doesn’t prevent the driver to load.

http://rpmfusion.org/Howto/nVidia#head-b52d8a785c3188f03b893e4f8c75f8d7e37c9e2b

x86_64 (64bit) users

If you wish to have 3D acceleration in 32bit packages such as Wine, be sure to install the xorg-x11-drv-nvidia-libs.i386 package for your driver variant. For example, if you installed kmod-nvidia then you will require xorg-x11-drv-nvidia-libs.i386, but if you install kmod-nvidia-96xx, you will need xorg-x11-drv-nvidia-96xx-libs.i386. If using Fedora 11 you will need to use xorg-x11-drv-nvidia-libs.i586, with Fedora 12 use xorg-x11-drv-nvidia-libs.i686.

GeForce 6 and newer

yum install kmod-nvidia-PAE (or kmod-nvidia if not using kernel-PAE)

I hope that these are the same instructions for nVidia

Installation Using RPMFusion

To install the nvidia driver using RPMFusion and YUM.

1. Install the repository configuration files for YUM.
Run the following commands (enter ‘root’ password when prompted):

[mirandam@charon ~]$ su -c 'rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm'
[mirandam@charon ~]$ su -c 'rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
  1. Due to the inclusion of nouveau in Fedora 11 and newer, it must first be disabled. After this step, a reboot is recommended.
    • Fedora 12 and Fedora 13Edit (as root): /boot/grub/grub.conf
      To the end of the default kernel (usually the first), edit the kernel line.
      Add the following: rdblacklist=nouveau to the end of the kernel line.

-OR- Modify the initramfs:

[mirandam@charon ~]$ su -
Password:
[root@charon ~]# mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
[root@charon ~]# dracut /boot/initramfs-$(uname -r).img $(uname -r)

[root@charon ~]# exit

http://fedoraproject.org/wiki/PreUpgrade

this may be a first step, – I might try an ‘upgrade’ (it has rarely proved fruitful though)

http://www.mjmwired.net/resources/mjm-fedora-f13.html#java

#2

Using Sun Java Instead

If you require Sun Java or if OpenJDK does not work properly, you can download Sun Java and use it in Fedora.

Download the Java package from:
http://java.sun.com/javase/downloads/index.jsp. Always use the latest update.

Select: Java JRE 6 Update 20 (the JDK is for developers)

On the next page, for Platform select “Linux” for 32-bit users, and “Linux x64” for 64-bit users.

For Language select “Multi-language”. Also accept the license agreement, and hit “Continue”.

On the next page, select the RPM option:

Java SE Runtime Environment 6u20
jre-6u20-linux-i586-rpm.bin (32-bit users)

jre-6u20-linux-x64-rpm.bin (64-bit users)

To install:

[mirandam@charon Download]$ sudo sh jre-6u20-linux-i586-rpm.bin
-OR-
[mirandam@charon Download]$ sudo sh jre-6u20-linux-x64-rpm.bin

You will need to hit ‘space’ till it reaches the end, then type ‘yes’. You should see the RPM installing. If it does not install, manually install it via sudo rpm -ivh.

When running the java command, Fedora will default to using OpenJDK. In order to use Sun Java, use the alternatives command.

To setup the Java runtime, perform the following (applies to both 32-bit and 64-bit users):

[mirandam@charon Download]$ sudo /usr/sbin/alternatives –install /usr/bin/java java /usr/java/default/bin/java 20000

Setup the Mozilla/Firefox browser plugin.

For 32-bit users:

[mirandam@charon Download]$ sudo /usr/sbin/alternatives –install /usr/lib/mozilla/plugins/libjavaplugin.so
libjavaplugin.so /usr/java/default/lib/i386/libnpjp2.so 20000

For 64-bit users:

[mirandam@charon Download]$ sudo /usr/sbin/alternatives –install /usr/lib64/mozilla/plugins/libjavaplugin.so
libjavaplugin.so.x86_64 /usr/java/default/lib/amd64/libnpjp2.so 20000

You may need to restart Firefox to see the plugin take effect.

Note: If you wish to switch back to OpenJDK you can run the following commands one by one to switch between the OpenJDK and Sun Java:

[mirandam@charon ~]$ sudo /usr/sbin/alternatives –config java

[mirandam@charon ~]$ sudo /usr/sbin/alternatives –config libjavaplugin.so
(or for 64-bit)
[mirandam@charon ~]$ sudo /usr/sbin/alternatives –config libjavaplugin.so.x86_64

To Update: If you wish update the JRE package, simply download the newest RPM package and install it as above. You will NOT need to reset alternatives, as those settings should remain intact.

More Information: Sun Install Documentation for Linux.

#3

Setting up sudo

Fedora, like all other Linux distributions, has a root user and has individual users. The root is the “superuser”, somewhat similar to “Administrator” in Windows.

Use the personal account you created at First Boot for daily use root only for administration/configuration. To run as ‘root’ use su or sudo commands. However sudo requires setup. As root run:

echo ‘loginname ALL=(ALL) ALL’ >> /etc/sudoers

Where ‘loginname’ is your user account.
Use ‘ALL=(ALL) NOPASSWD:ALL’ if you don’t want to be prompted a password.
If you are prompted for a password with ‘sudo’ it is the user password, not root.

Example:

[mirandam@charon ~]$ su
Password: <— Enter root password [root@charon mirandam]# echo ‘mirandam ALL=(ALL) NOPASSWD:ALL’ >> /etc/sudoers
[root@charon mirandam]# exit
exit

The following is an example of how sudo lets you execute root commands:

[mirandam@charon ~]$ du -sh /root
du: `/root’: Permission denied <— Fails!!!

[mirandam@charon ~]$ sudo du -sh /root
163M /root <— Works!!!

NOTE: Every command provided on this page will work if you remove sudo from the command. However this requires you must be logged in as ‘root’. An alternative to using sudo is to use su to login as root, before executing a command.

– again, from the same guide

Wrong in so many ways

Words sometimes do fail me. Previously I have called the person given the task of managing and administering the Australian digital economy a prick, a moron, a dullard and a die-hard right wing Christian mouthpiece. I am at a loss to describe how this person has managed to fall even lower in my opinion of his actions as an elected representative.

sorry piece of crap

He don't care

Despite many, many expert opinions, despite no small public outcry, depite the counter-productive nature of his actions he has stubbornly persisted in making Australia one of the most censored countries in the world.

We are now similar to Iran and China, many of the Emirates, not even the US has a Government imposed firewall.

Yet in the next sitting of our Parliament this man who seems to have some mental defect will introduce legislation forcing Internet Service Providers to filter each and every request for a web-site and only allow a successful connection for ‘approved’ sites. This has been loudly, and often, procalimed by the proponents for the protectio of Australian children from the evils lurking on the internet. What I cannot understand is how he hopes to achieve this noble aim.

Surely he doesn’t think that 12 yr old boys will gather around a PC when their parents aren’t watching and try searching for child pornography – does he ? (can he be that thick?)

Or does he think that paedophiles will get a bit bored of an afternoon and try to link up to a bit of kiddy porn via a search engine.

I somehow suspect that that neither of these two possibilities are in any way likely. Kids don’t like looking at degrading images of other children. Adults would be quite stupid trying to find any places similar to http://www.kiddyporn.ru (this isn’t a kiddy porn site, it’s just an example I made up as an example of a place a paedophile wouldn’t go for sexual satisfaction and an example of the sort of site that the filter will be able to deny access to) using a simple web-search – that would be just as unbelievable.

So if filtering out sites that kids won’t want to access and criminal child-molesters wouldn’t need won’t “protect Australian Kiddies” what good is it ?

None at all.

It will drive pedophilia into places that will be harder to detect and harder for police agencies to gain access to and seek evidence for obtaining a prosecution

But

It does have some advantages for the censors, the legislation makes ‘the list’ secret, the citizenry won’t know what it’s being denied, and this means that they can add or remove any site they feel like without telling anyone. There is supposed to be an independent quango looking after the list of blocked sites, but I don’t beleive that they’re competent, they’re censors, it’s there job to stop people from looking at things that they find offensive. Movies, books magazines, computer games and now they are tasked with looking at the gazillions of web-sites and blocking those sites that are refused classifiacation.

This is where I get a bit confused, do they expect that the body in charge of the site restriction will look at every site that pops up and give it a classification, will they develop some ‘yay or nay’ algorithm to automate the task, will they be relying on hordes of Christians who will be complaining about any site that mentions ‘breasts’ ‘boobs”bosoms’ and ‘butts’ and start putting them on the list until they get complaints from the other spectrum who might like to look at womenfolk’s bare chests and buttocks and some of the bans might be lifted. All male porn will be banned – that goes without saying no more sculpted male bodies with exposed penii – banned, no lesbian porn – all banned. Despite the Minister saying ‘it’s only going to be the illegal stuff that’s going on the banned list’ I don’t believe him, because he always goes on to say that it’s going to be the sites that have been refused classification. I’m going to guess that this piece of shit will be closing down sites that advocate euthanasia for people suffering agonising terminal illnesses, sites discussing abortion, safe drug use, AIDS prevention strategies and the like because this tool is a functionary for the Christian Lobby and they don’t like none of these things.

Consider a person who is not literate in any sense and has almost no anatomical knowledge, they find a lump growing where no lump should be and are a bit embarressed to ask an actual doctor about the thing growing on or near one of their private parts, I’m pretty confident that I can describe most parts of my body without using slang, others might not be and get caught by the trap set for sites that may contain otherwise swollen cocks and balls.

And another thing, it’s going to slow down my internet, the filter will have to consume bandwidth, and that’s bandwidth I’m paying for. I don’t want to pay to protect other people’s kids, I don’t mind helping them protect their own with domestic level filtering but this is something that’s going to slow down everyone’s connection I wonder if I can renegotiate with my provider ? Probably not, if the ISP promises speeds of “up to 20mB/s” and the filter bumps this back to around 10 then they haven’t really broken their end of the bargain, but I’m being shafted by only getting half of what I paid for.

I’d write to the Minister but he is a complete moron and won’t listen to reason I dropped the clown a few notes saying my position was that censorship is always bad, regardless of noble reasons, that it won’t work, the web is designed in such a way that makes this kind of filtering easily by-passed and that he should listen to the many experst who have said that his stated aims and objectives won’t be satisfied by a simple http filter.

I got the same form letter back each time saying that it wasn’t censorship and that it was what the vast majority of the community expected of this Government. Sadly I can no longer support a Government that misleads and obfuscates to such an extent that it covers up their pandering a conservative minority of the popualtion then it’s time to take a few steps to the left and get a few Greens elected to the Federal lower House.

some notes for later

I’ve been avoiding using proprietary software for some years now, I prefer my computer be able to do what I tell it to do, rather than what some people from 1 Microsoft Way, Redmond WA think might be best for me. Of course they don’t do it gratis, they do it because there’s a dollar or two to be made from selling me (and about 90% of desktop computer users) with what they claim is a safe and secure operating system. This is a load of tosh, I don’t want my plumber/painter deciding what is the best colour for my walls or what is the best tap fittings for my bathroom – I want to be able to modify my home as I see fit.

This is why I have been using one of the many Linux distributions.

Sadly since I rely on a community of software developers who code in their spare time and for free it’s often a bit of a nuisance Microsoft is big and ugly enough to be able to influence hardware manufacturers that they should form a partnership with this (almost) monoploy and I’m sort of stuck getting graphics/sound cards to work as good as they are able.

For this reason I’m including here an aide-memoir to install the approptiate computer code to enable my PC to take advantage of my ATI graphics card

-here’s a geek-joke

‘Why are ATI graphics cards like London buses ?’

: ‘because they’re big, they’re red and they have rotten drivers’

But with some fiddling about I have my Fedora 10 installation running an ATI card well enough for me to not feel like dashing the whole machine against a brick wall

1. Update kernel

Code:
su
yum update kernel

reboot to the new kernel

2. Install driver

install the F11 rpmfusion driver

Or (akmod builds the required kmod on bootup )

3. Backup Old initrd

Code:
su
mv /boot/initrd-`uname -r`.img /boot/initrd-`uname -r`.img.backup


4. Remake initrd for the kernel
(So the radeon module is not force loaded)

Code:
su -
mkinitrd -v /boot/initrd-`uname -r`.img  `uname -r`

5. Edit grub.conf

Code:
su
gedit /boot/grub/grub.conf

and add this “nopat” to the kernel arguments.

i.e

Code:
splashimage=(hd3,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.29.2-126.fc11.x86_64)
    root (hd3,1)
    kernel /boot/vmlinuz-2.6.29.2-126.fc11.x86_64 ro root=UUID=f372564c-f1a7-430e-b97f-b250812e2c30 rhgb quiet vga=0x318 nopat
    initrd /boot/initrd-2.6.29.2-126.fc11.x86_64.img

Optional (in case libdrm change breaks things due to relationship with KMS):
add “nomodeset” to end of kernel arguments

6. Reboot

due to the akmod, it is *absolutely necessary* to reboot after the install, otherwise the kernel module won’t be compiled.

OK that’s the first bit done.

I like the ‘wobbly windows’ and other fancy graphics-gimicks of Compiz

so the next bit is to install the compiz-fusion gear

Instructions for F9, F10 & F11

1. Install the compiz-fusion-release rpm

If this fails try

Code:
su
yum -y install wget
wget http://www.linux-ati-drivers.homecall.co.uk/compiz-fusion-release-1-6.noarch.rpm
rpm -Uvh compiz-fusion-release-1-6.noarch.rpm
rm -f compiz-fusion-release-1-6.noarch.rpm

2. Install compiz-fusion ( you will need to delete the old compiz configuration files /home/username/.gconf/apps/compiz )

For a Gnome compiz install

Code:
su
yum -y erase *compiz*
yum -y --noplugins install compiz-gnome fusion-icon-gtk compiz-bcop ccsm emerald-themes compizconfig-backend-gconf compiz-plugins-unsupported compiz-plugins-extra

For a KDE compiz install

Code:
su
yum -y erase *compiz*
yum -y --noplugins install compiz-kde fusion-icon-qt compiz-bcop ccsm emerald-themes compizconfig-backend-kconfig compiz-plugins-unsupported compiz-plugins-extra

For both KDE & gnome

Code:
su
yum -y erase *compiz*
yum -y --noplugins install compiz-kde compiz-gnome fusion-icon-all compiz-bcop ccsm emerald-themes compizconfig-backend-gconf compizconfig-backend-kconfig compiz-plugins-unsupported compiz-plugins-extra

__________________________________________________ __________________________________________________ ________________________

xorg.conf options for the intel, nv, radeon & radeonhd drivers ( should help graphics lag and CPU load )

add to the device section

Code:
         Option          "AccelMethod" "EXA"
         Option          "MigrationHeuristic" "greedy"

compiz-check utility

Code:
wget http://blogage.de/files/4359/download  -O compiz-check
chmod +x compiz-check
./compiz-check

since I’m not a programmer this has all been lifted from the guide in the Fedora Forum
http://forums.fedoraforum.org/showthread.php?t=155503

and

http://forums.fedoraforum.org/showthread.php?t=173317

I haven’t a clue who the author is “leigh123linux” but he’s a very busy lad in the Fedora community and I tried his tips in previous incarnations of Fedora and they haven’t failed me yet

so here’s hoping

just for my records

this just in

http://whirlpool.net.au/news/?id=1834

ISP filtering pilot goes ahead
Today, 4:45 pm

Phil Sweeney

The first phase of the federal government’s ISP filtering trial has been confirmed with an initial rollout to six participating ISPs.

“The initial round of ISPs are Primus Telecommunications, Tech 2U, Webshield, OMNIconnect, Netforce and Highway 1”, said the announcement.

“Arrangements for the first phase of the live pilot have been finalised with six ISPs while consultations continue with a number of other ISPs that have applied to take part”, it said.

Apart from Primus, the ISPs involved would be unknown to most consumers due to their small size. Webshield is a special case because its main business is providing a “clean feed” service to customers. Noticeably absent from the list is iiNet, which said it would only participate in the trial to demonstrate the weaknesses of the plan.

The government’s plan has been attacked from many sides since its announcement. Critics argue it will slow down the internet, be misused by the government and be ineffective at blocking illegal content.

The government has dismissed these concerns, saying that a pilot is needed to confirm any downsides to the filter. “The government is well-aware of technical concerns about ISP filtering and that is why we are conducting a pilot, to put these claims to the test”, it said.

The testing will take place for six weeks once the equipment has been installed at the ISPs, and will examine impacts on performance, user experience and also the ease of circumvention. Customers will get to choose if they want to participate in the trial.

The pilot will involve two filtering techniques — a simple filter of the ACMA blacklist, and a more invasive content filtering solution.

The internet is not a broadcast medium and shouldn’t be handled by the same regulations nor the same regulators. The Australian Government should be ashamed of itself

My Facespace Hurts

I have noticed that in my stats (the number of people who have visited here and how they found it) that people have linked this to this blog in Facebook accounts. Whoever you are you are doing me a dis-service. I hate Facebook – I really do !

I once thought it was because I’m a closet Luddite or even a Social Conservative but I suspect that the reason I hate facebook is because it owns everthing you post on it, you write it and they claim copyright (read their terms and conditions) you photgraph it or record it and post the photo or song on Facebook they will claim a right to it.

You are solely responsible for the User Content that you Post on or through the Facebook Service. You hereby grant Facebook an irrevocable, perpetual, non-exclusive, transferable, fully paid, worldwide license (with the right to sublicense) to (a) use, copy, publish, stream, store, retain, publicly perform or display, transmit, scan, reformat, modify, edit, frame, translate, excerpt, adapt, create derivative works and distribute (through multiple tiers), any User Content you (i) Post on or in connection with the Facebook Service or the promotion thereof subject only to your privacy settings or (ii) enable a user to Post, including by offering a Share Link on your website and (b) to use your name, likeness and image for any purpose, including commercial or advertising, each of (a) and (b) on or in connection with the Facebook Service or the promotion thereof. You represent and warrant that you have all rights and permissions to grant the foregoing licenses.

Now I admit I’m an old fashioned kind of guy I prefer reading newspapers to watching a guy (they’re almost always guys) reading from a tele-prompter what the station thinks is worth 30 seconds of airtime so when I came a cross this

[quote] In a blog post marking Facebook’s fifth birthday, founder Mark Zuckerberg, 24, said he was “humbled” that so many people were using the site to “engage and understand the world around them”. [/quote]

I have to ask ‘What world is this person living in ?’ do we now engage with the world by sitting in front of a screen, does one arrive at understanding by absorbing opinion – as opposed to fact, that’s all a bit newspeak for me. I am now being told that I can engage with the outside world by sitting in a room and tapping away at my keyboard in my Facebook/Myspace page
– even though it looks like Myspace has become the chewing gum that’s lost it’s flavour

Let’s face it, Facebook and it’s ilk are succesful commercial enterprises, they have as much to do with actual human relationships as any other corporate identity Facebook is your pal, like Microsoft is your pal or General Motors or Ford or < insert any collosal conglomerate>

Before you sign up to Facebook read a bit about recent corporate excess, the huge salaries, the massive bonuses the executive scandals (snorting cocaine from a super-model’s arse springs to mind) and then pause before applying your mouse pointer to the ‘Submit’ button on the sign-up page do you want to be intimately involved with people who feel absolutely no guilt or regret on the trauma they have inflicted on the rest of the world.

I suppose it is a bit unfair to compare Facebook with rapacious banks and failing automotive giants but I just can’t help myself when I’m exposed to headlines like

Gay or straight, your Facebook is their fortune

When they ask you to ‘Submit’ it’s not just your contact details they’re after, they want you to submit

Bwahahahaha !

Bwahahaha !

Bwahahaha !