Checking for Bad Blocks on a Hard Drive in Linux
In Fedora, the badblocks program is part of the e2fsprogs program. You probably already have that installed. But in case you don't do the following:
yum install e2fsprogs
To just see the bad blocks the following to do a non-destructive read/write test:
badblocks -nvs /dev/sda
To generate generate a list of the bad blocks do the following:
badblocks -nv /dev/sda > badblocks.txt
Now you can mark the bad blocks found with the following:
Sharing Desktop in Fedora 18
NOTE: This is an update from my previous post on sharing the desktop or running a VNC Server. This method works great in Fedora 18.
First install the vino package:
yum install vino
Then click on Activities in the top left corner of the screen.
Next type in "vino" and click on "Desktop Sharing" under Applications or under Settings.
Next click "Allow other users to view your desktop". Make sure "Allow other users to control my desktop" is also check.
- Read more about Sharing Desktop in Fedora 18
- Log in to post comments
Calibrating/Profiling a Monitor in Linux Using a Spyder4Express
First download dispcalGUI. It's a GUI to the command line program Argyll. It can be downloaded here: http://dispcalgui.hoech.net/#download For Fedora get the correct RPM version. Then install with yum (replace filename with your version):
Fix Adwaita Theme in Fedora 18
In Fedora 18 the Adwaita GTK+ theme has dropdowns messed up in some programs. The text on the drop downs is light grey on white and it's hard to read.
To fix this install the Gnome Tweak tool and a different GTK+ theme:
yum install greybird-gtk2-theme greybird-gtk3-theme gnome-tweak-tool
Then open Tweak Tool. Under "Gtk+ Theme" select "Greybird".
- Read more about Fix Adwaita Theme in Fedora 18
- Log in to post comments
Preview RAW Thumbnails in Nautilus file manager (Files) for Fedora 18
Simply install the following package and RAW file previews start showing up. You don't even need to logout.
yum install raw-thumbnailer
Saving iptables in Fedora 15 or Greater
In older versions of Fedora (14 or less) you could save your current iptables with the following command:
service iptables save
This would take the tables you currently have in places and save them to the following file:
/etc/sysconfig/iptables
So you could added/delete/change any tables you want then save them so they would be correctly re-applied on the next boot.
- Read more about Saving iptables in Fedora 15 or Greater
- Log in to post comments
How to Check if Your System Can Run 64-bit Linux
From Linux do the following to see if the current machine can support a 64-bit kernel or not:
grep flags /proc/cpuinfo | grep lm
If you see a flag called "lm" then it can support a 64-Bit Linux install.
Change GDM Background and other Settings at Login Prompt
You basically need to change settings as the "gdm" user to change setting at the GDM login.
Do the following first:
su - xhost +
Then you can use sudo to run programs as the gdm user. To change the background do the following:
sudo -u gdm gnome-control-center
Then click Background. There you can go select a background.
If you have gnome-tweak-tool installed another change I like to do is to show the date along with the clock at the top of the screen you can do this with the following:
Setting Up Minecraft in Fedora
First download the Sun/Oracle JRE from their web site in RPM format. The JRE in Fedora does not work. You have to get the one from Sun.
Install it:
yum install ./jre-7u55-linux-x64.rpm
Create a directory for it:
mkdir -p /opt/minecraft/client/
Download the software from here:
cd /opt/minecraft/client/ wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar
Download the icon:
- Read more about Setting Up Minecraft in Fedora
- Log in to post comments
How to Get Changelog Info for a Certain Package
Here are two ways to get a changelog history of a given Fedora package. The results of both commands are usually similar but not always.
First install the package needed.
yum install yum-utils
The below example will show the changelog of the darktable package.
repoquery --changelog darktable
rpm -q --changelog darktable