Set gnome-shell to start in fallback mode without GUI.

If you run into issues with gnome-shell then gnome-shell should allow you to disable all the plugins and get the gnome-shell. But since gnome-shell is still evolving, you might run into issue where the shell does not come up. What to do in that case. You can set the shell to start in fallback mode, where there are more chances that it will come up.

Alas, but you don’t have a shell or desktop session to do that. Simple, start the gnome-shell and before it is killed, do this:

gsettings set org.gnome.desktop.session session-name 'gnome-fallback'

And to do this from one of the virtual terminals, you would need the terminal to be able to attach to the running session. You can get the script to do that from the gnome website in How to debug gnome-shell or copy the script below:

gnome_session=$(pgrep -u $USER gnome-session)
eval export $(sed 's/\o000/\n/g;' < /proc/$gnome_session/environ | grep DISPLAY)
eval export $(sed 's/\o000/\n/g;' < /proc/$gnome_session/environ | grep XAUTHORITY)
eval export $(sed 's/\o000/\n/g;' < /proc/$gnome_session/environ | grep DBUS_SESSION_BUS_ADDRESS)
Enhanced by Zemanta

Color disk usage on Fedora

For this tip, you would need to setup the rpm-shere repository. You can get the information here. Once you have done that you need to install the cdu package with the following command:

sudo yum install cdu

And then you can use “cdu” to view the disk usage in all beautiful colors with the command:

cdu

and the output looks like this:

cdu screenshot
cdu screenshot
Enhanced by Zemanta

Interesting repository for Fedora.

Here is one repository that you can add to your Fedora to give it a few more hundred packages:

cat >/etc/yum.repos.d/rpm-sphere.repo <<EOF
[rpm-sphere]
name=RPM Sphere
baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_16/
gpgkey=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_16/repodata/repomd.xml.key
enabled=1
gpgcheck=1
EOF
Enhanced by Zemanta