Upgrading to Fedora 24

Fedora 24 is official. I decided to jump in on my production server as I had just risked everything taking care of the Ants.  Seriously, my Cisco, Server, and Printer/Scanner were infested in their temporary location.  They have never been so clean.

I was going to go straight to FedUp like I had in the past; however, according to the documentation page:

FedUp (FEDora UPgrader) was the official tool for upgrading between Fedora releases, until the introduction of the DNF system upgrade plugin. FedUp is now obsolete and should not be used in any circumstances.

And I imagine I had been using it one or two updates too many, being slow to convert to DNF.  Installing the DNF upgrade plugin, which appears to be default is the recommended and supported way to upgrade from Fedora 23 to Fedora 24.

I have also seen that you should be able to update to Fedora 24 Workstation using the Software app, although I haven’t tested it and my system is “headless”.

Assuming you have backed up your system Smile, perhaps using deja-dup. Update your machine and install the DNF plugin

$ sudo dnf upgrade --refresh

 

$ sudo dnf install dnf-plugin-system-upgrade

Part 1 – download upgrades to prepare for the upgrade

$ sudo dnf system-upgrade download --releasever=24

This command will begin downloading all of the upgrades for your machine locally to prepare for the upgrade. You may wish

If you have issues when upgrading because of packages without updates, broken dependencies, or retired packages, add the --allowerasing flag when typing the above command. This will allow DNF to remove packages that may be blocking your system upgrade.

Upgrading to Fedora 24: Starting upgrade

Part 2 – Reboot and upgrade

$ sudo dnf system-upgrade reboot

Your system will restart after this. In past releases, the fedup tool would create a new option on the kernel selection / boot screen. With the new dnf-plugin-system-upgrade package, your system reboots into the current kernel installed for Fedora 23; this is normal. Shortly after the kernel selection screen, your system begins the upgrade process.

Now might be a good time for a coffee break! Once it finishes, your system will restart and you’ll be able to log in to your newly upgraded Fedora 24 Workstation.

I flew through without any issues, but if there are issues, check out the  DNF system upgrade wiki page as well as Fedora Magazine’s Upgrading Fedora 23 to Fedora 24 article.  I followed their directions for the most part and have put the salient ones in here so I can remember as I upgrade all my workstations.

Setting Up Moodle to Use Google Mail: Postfix on Fedora 22

When I set up my Moodle Server, one of the things that I wanted to do was be able to send the emails to the students as well as logs and various system emails.

Creating your Relay

If you haven’t done so already, you need to install postfix first.

# dnf install postfix

Next you need to open the /etc/postfix/main.cf file in your favorite editor

# i /etc/postfix/main.cf

At the bottom, add the following lines:

# sets gmail as relay relayhost = [smtp.gmail.com]:587 # use tls smtp_use_tls=yes # use sasl when authenticating to foreign SMTP servers smtp_sasl_auth_enable = yes # path to password map file smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd # list of CAs to trust when verifying server certificate smtp_tls_CAfile = /etc/ssl/certs/ca-ca-bundle.crt # eliminates default security options which are incompatible with gmail smtp_sasl_security_options =

# To correct gmail rejecting your email with something similar to “530 5.7.0 Must issue a STARTTLS command first.”

smtp_tls_policy_maps = hash:/etc/postfix/tls_policy

And you will need to create a tls_policy file in /etc/postfix that has the following line

[smtp.gmail.com]:587 encrypt

Then run postmap /etc/postfix/tls_policy to create the hash of the file.

Next you’ll have to edit (or create) the sasl_passwd file that’s used in the postfix configuration above

# vi /etc/postfix/sasl_passwd

The format of this file is this:

[smtp.gmail.com]:587 username:password

After creating this file, you need to run the postmap command to create the hash of the password file and then make sure that postfix owns the files (as they are created by root originally).

postmap /etc/postfix/sasl_passwd

and

chown postfix /etc/postfix/sasl_passwd*

chown postfit /etc/postfix/tls-policy*

Finally restart postfix using this command:

systemctl restart postfix.service

Testing your configurations

If everything worked correctly, you should be able to test your mail setup by sending an email from the command line.  There are multiple methods for this, but I’ll show you two of them here.

The first method uses the mail command. (you should be able to do this as either root or a regular user) youruser@emaildomain.com should be replaced with your intended recipient’s email address.

mail -s “Subject: Test email from linux server” youruser@emaildomain.com

The editor will open up, so you can type a message in the body. You’ll use CTRL+D or enter a “.” to exit this editor.

Next, if you want to CC anyone, you can add their email addresses, and/or press CTRL+D to exit this portion.

The email should send. Check your inbox (and spam folders) to see if it’s arrived. If not, you can check /var/log/maillog (or in /var/log/mail) to find out what’s wrong.

My thanks to a number of sites, each of which provided me some of the information to get this done.  I merely cleaned it up to and pasted it together to work on Moodle with this version of Fedora.

Raspberry Pi Fedora Remix is Ready, Want Pi!

The Raspberry Pi Fedora Remix provides a complete software environment for the Raspberry Pi, a $35 computer system designed to spur interest in computer science, software development, and electronic technology among young people. This software release marks an important milestone in Seneca’s Centre for Development of Open Technology’s (CDOT) applied research in building open source software for emerging low-energy ARM systems. Seneca students and faculty have collaborated with the Raspberry Pi Foundation – http://www.raspberrypi.org – and the Fedora Project to prepare open source software to run on this device. More information on CDOT: http://cdot.senecac.on.ca

Scratch on Linux

MIT has Scratch on Linux.  Check the site for more details.  It is interesting to note that Scratch runs on Squeak.

Debian / Ubuntu Package

You can download the latest Scratch package for Ubuntu from our Download page. The source code for this package is hosted on Assembla, as is the list of bugs. If you’d like to help improve the scratch package for Linux, e-mail us directly. Here is a link to the Scratch Team page on Launchpad.

Linux Camera Plugin

The camera Plug-in for Scratch on Linux is designed to work out of the box with a wide range of USB webcams. If you are having problems, see this page for help troubleshooting.

Scratch and Squeak

Scratch runs on Squeak, which is written in smalltalk, one of the first object oriented languages. So Scratch is an ‘image’ that runs in a squeak virtual machine built for a particular OS. You can find out more about Squeak and Scratch on our Source Code page.

Raspberry PI’s $35 Computer Enters Production

From the FutureJournalism Project

 

Raspberry PI Foundation, the UK-based non-profit, has begun production on its $35 Linux computer. It’s about the size of a credit card and will ship as an open board like that pictured above.

For display, users can plug it into existing monitors or televisions. USB connections are available for keyboard and mouse.

The Foundation’s goal is to put inexpensive computers into the hands of young people to hack upon.

The backstory comes via Raspberry Pi:

The idea behind a tiny and cheap computer for kids came in 2006, when Eben Upton was lecturing and working in admissions at Cambridge University. Eben had noticed a distinct drop in the skills levels of the A Level students applying to read Computer Science in each academic year when he came to interview them. From a situation in the 1990s where most of the kids applying were coming to interview as hobbyist programmers, the landscape in the 2000s was very different; a typical applicant now had experience only with web design, and sometimes not even with that. Fewer people were applying to the course every year. Something had changed the way kids were interacting with computers…

…There isn’t much any small group of people can do to address problems like an inadequate school curriculum or the end of a financial bubble. But we felt that we could try to do something about the situation where computers had become so expensive and arcane that programming experimentation on them had to be forbidden by parents; and to find a platform that, like those old home computers, could boot into a programming environment.

Specs (via the Raspberry Pi FAQ):

  • Debian, Fedora and ArchLinux will be supported from the start.
  • 256 MB RAM, 700Mhz ARM11 CPU, and a Videocore 4 GPU. The GPU is capable of BluRay quality playback, using H.264 at 40MBits/s
  • Size 85.60mm x 53.98mm x 17mm. It weighs 45g.
  • Composite and HDMI out on the board. There is no VGA support, but adaptors are available.

Perhaps a great little machine to get if you’re learning to code by following along with CodeAcademy’s Code Year.