Installing steam on fedora 22

I had some trouble once I’d installed steam. It would fail to find the swrast driver. After some searching I found that the following command pulled through the required libraries:

sudo dnf install xorg-x11-drv-nvidia-libs.i686

This didn’t work quite so well on Fedora 23 so try this…

sudo dnf install nvidia-driver-libs

or use yumex-dnf to install nvidia-driver-libs.

Set Grub2 (Fedora 19) default boot to…something other

grep menuentry /boot/grub2/grub.cfg

Copy the name of the OS you want as default
then access the /etc/default/grub file as root

sudo gedit /etc/default/grub 

Replace whatever is currently being given to GRUB_DEFAULT with the OS name you want as the default (enclose the OS name in “”)

Then run as root:

grub2-mkconfig -o /boot/grub2/grub.cfg

…and reboot to test

I don’t think this survives a Kernel update, but the process is not onerous, and no sacrifices to the gods are required.

some grep

Find all instances of java in the output list from the rpm installed packages list.

rpm -qa | grep "java"

Add an Eclipse Icon under ubuntu 12.04

Install (just extract the gz file to your home drive if you want) the version on the Eclipse web site, then create a file called eclipse.desktop and give it the following contents:

#!/usr/bin/env xdg-open

[Desktop Entry]
Name=Eclipse Indigo 3.7
#Exec=env UBUNTU_MENUPROXY=0 <path-to-eclipse-install>/eclipse
Exec=env /home/mike/eclipse/eclipse

making sure you put the correct path in the two places you need it (the execution path and the image path)