Youry's Blog

Youry's Blog

Some Fedora problems and some solutions/ tricks

leave a comment »

Fresh installation

  1. Synergy autostart from
    Synergy client autostart in FC6
    The sequence I used for synergy on FC6:Edit /etc/gdm/Init/Default and add just before exit 0:
    /usr/bin/killall synergyc
    sleep 1
    /usr/bin/synergyc <serverip>

    Copy /etc/gdm/PostLogin/Default.sample to /etc/gdm/PostLogin/Default
    Edit /etc/gdm/PostLogin/Default and add to the end:
    /usr/bin/killall synergyc
    sleep 1

    Edit /etc/gdm/PreSession/Default and add just before exit 0:
    /usr/bin/killall synergyc
    sleep 1
    /usr/bin/synergyc <serverip>

  2. GNOME Shell Frippery for grumpy old stick-in-the-muds (Fedora 19 – suspend, hibernate, etc).
  3. Re: No Fedora 19 kernel installed after Fedup upgrade (from
    “I came across this problem as well. Had all the F19 rpms but had a grub menu only showing F18 entries.
    The solution for me was as root to:

    1.   Rerun fedup-cli –network 19. This only runs until it sets up repos and the boot image and then tells you that you have F19 installed. .
    2. Run grub2-install /dev/sda if your boot sector is on sda.
    3. Run grub2-mkconfig -o /boot/grub2/grub.cfg.
      After this I had the fedup option in grub. Somewhere along the line first time around the boot into F19 had been missed.
      Right, This still didn’t work as the fedup option fails missing some files. Something that is inherently disastrous is required. DO THIS WITHOUT ANY GUARANTEES! It worked for me.
    4.   Run yumdownloader kernel-3.9.9-302.fc19.x86_64 kernel-headers-3.9.9-302.fc19.x86_64 kernel-devel-3.9.9-302.fc19.x86_64.
    5. Run rpm –Uvh kernel-3.9.9-302.fc19.x86_64.rpm kernel-devel-3.9.9-302.fc19.x86_64.rpm kernel-headers-3.9.9-302.fc19.x86_64.rpm –nodeps –force.
    6. Don’t panic when the output shows dracut activity. This is the creation of the vmlinuz, initramfs, system map and config sections in the boot file.
    7. Remove the file vmlinuz-fedup from the /boot/ directory. I copied it elsewhere in the filesystem in case needed later.
    8. Run steps 2) & 3) again and reboot.

    Last edited by whodareswins; 24th July 2013 at 11:20 PM. Reason: more steps needed”

  4. F16 cups-pdf
  5. Fedora 17: post installation tasks
  6. Nautilus “Open in Terminal” on Fedora/CentOS/Red Hat (RHEL)
  7. Kannst du das spüren? Disable auto mount of encrypted LUKS (CRYPTO_LUKS) partition on openSuSE 11.2 while booting
    • To add luks information to crypttab you nee to use “cryptsetup luksUUID <device>"
  8.  Add the mapping information to /etc/crypttab
  9. Create a mapping to allow access to the device’s decrypted contents
  11. very sad news. I found deja-dup doesn’t work to restore the whole system. As it was posted in many posts, the best way to install Fedora from live-cd and then restore only /home. Very stupid idea. I’ve spend about 10-15 hours trying to recover everything from the deja-dup backup. No luck. Installed everything from scratch:
    • sudo yum install libreoffice language-support-en
    • Skype: download skype from the skype website and install
      sudo yum skype-xxxx
    • Synergy: download synergy from the synergy web-site and install
      sudo yum synergy-xxx
  12. Some useful advises for Fedora 16:
  13. Enable Desktop Icons and Right Click ~ Gnome 3 (Gnome Shell) Ubuntu 11.04
  14. Creating Application Launcher in GNOME3 Desktop
  15. Fedora GNOME 3 show desktop keyboard shortcut.
  16. sudo yum install -y dconf-editor
  17. Re: How do I disable auto maximizing windows

    Since, after installing dconf-editor, I could not find either org.gnome.mutter edge-tiling or, I installed ccsm to see if disabling Grid as mentioned might work, and it did, no more auto-maximize. I’m very grateful for the helpful information in disabling this feature.
  19. Howto Show Date in Gnome 3:
    gsettings set show-date true
  20. How to show minimize tab in the windows : install gnome-tweak-tool and chose in the shell show all.
  21. Very good paper about Howto Play .wmv Files on Fedora 16 / 15 / 14
  22. If you have a problem with a USB printer, it’s better to change SeLinux to permissive mode and sometimes is better to reinstall cups.
  23. Skype can cause sometimes problems and needs to be reinstalled. see
  24. Backups (I used deju-dup, but can’t restore full system now):
  • dpkg –get-selections > installed-software

All you need to do is to create a file named skype.repo and lacated in: /etc/yum.repos.d/
And this file should have this content.
name=Skype Repository

yum install skype

if the following problem: Package skype- is not signed
$ yum –nogpgcheck install skype

3. Vmware boot to fast: see
To make it easier to access the BIOS setup screen, edit the virtual machine’s configuration (.vmx ) and append one of these options:

bios.forceSetupOnce = “TRUE”

This forces entry to the BIOS setup at startup.

bios.bootDelay = “xxxx”

This adds a delay to the initial POST screen, showing it for longer and giving you more time to access the BIOS setup, where xxxx is the number of milliseconds to show the POST screen. (There are 1000 milliseconds in a second.)

4. Problems with Grub2 boot in Fedora 16.

I’ve spent about 10 hours to resolve problems with grub2 on raid1 and with bugs, related to use an old HDD from Raid1. After many attempts and posts reading I found couple excellent papers:

If I such papers 10 hours early, I would not spend so much time for a such small problems. If you have any problem with Grub2, please read 2 mentioned above papers.

Raid Problems:

repair failed blocks in Raid1

Disk Repair

This command will scan your disk and, optionally, mark off the bad blocks on it.

badblocks -vf /dev/hdX     # test only
badblocks -wvf /dev/hdX    # write test and remap bad blocks

adding new HDD and copy partitions:

How to copy the partition layout of a whole disk using standard tools

sfdisk -d /dev/sda > part_table
sfdisk /dev/sda < part_table

Then use the sgdisk command like so

sgdisk -R=/dev/sdb /dev/sda
sgdisk -G /dev/sdb

The first command copies the partition table of sda to sdb (be careful not to mix these up). The second command randomizes the GUID on the disk and all the partitions. This is only necessary if the disks are to be used in the same machine, otherwise it’s unnecessary.

another good paper about dd command: Raid Administration
dd if=/dev/sda of=/dev/sdc bs=512 count=1  
and check it by
sfdisk --dump /dev/sda
sfdisk --dump /dev/sdc

1. – how to upgrade Raid 1 to Raid 2 with volume groups.

For the old HDD from the previous Raid you should format HDD on another computer with MBR update.

5. I use Raid 1 and Raid 5 on many my desktops and servers and found many times I need to remember some Raid administration commands and even tricks. Just couple days ago my Raid 5 md2 failed and I found a new name for the Raid md126. I found in Internet, that many people have such problems.

My solution is following:

  • stop raid by > mdadm –stop /dev/md126
  • check the raid disks by > cat /proc/mdstat
  • and then check the HDDs by >mdadm –examine /dev/sda3
    and other disks in the same way
  • and then assemble new raid back by >mdadm -A /dev/md2 /dev/sd[abc]3
  • check the raid arrays by > mdadm –detail –scan
    and if it is necessary update the configuration file by the
  • mdadm –detail –scan >> /etc/mdadm/mdadm.conf

6. Interesting topic about how to increase Raid 1 size. I did it in the past, but not remember now. This is a reason why I started this blog. I did a lot of different things, but don’t remember many of them and now I want to keep them in one place.

I already increased size for the partitions of the Raid 1 from 35GB to 75Gb, but still have the same size for the Volume Group, which is the problem.

Some links, which I use now:


Written by youryblog

December 5, 2010 at 2:09 PM

Posted in IT, Most, UNIX/Linux tricks

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: