Thursday, November 18, 2010

Evolution in KDE is missing some icons...

I recently installed Evolution in my Kubuntu desktop and of course it's missing some icons. The reason is that I'm using the Oxygen theme and it doesnt have all the icons needed. Since it is a Gnome app you can fix it by simply installing the Gnome theme (you might as well since a lot of applications use it) and then edit your current GTK+ selected theme (QtCurve in my case) to fallback on those icons:

sudo apt-get install gnome-icon-theme
sudo mv /usr/share/themes/QtCurve/gtk-2.0/gtkrc /usr/share/themes/QtCurve/gtk-2.0/gtkrc.orig
sudo sh -c "echo gtk-fallback-icon-theme='\"gnome\"' > /usr/share/themes/QtCurve/gtk-2.0/gtkrc"
sudo sh -c "cat /usr/share/themes/QtCurve/gtk-2.0/gtkrc.orig >> /usr/share/themes/QtCurve/gtk-2.0/gtkrc"

NOTE: If you are using a different theme for GTK+ applications just replace QtCurve with your specific theme. You can see all of them under the /usr/share/themes/ folder.

You can now start Evolution and all the missing icons from the toolbar, calendar, etc. should be fixed. You may have noticed that I have also left the original gtkrc file as a backup with the extension ".orig". Just in case. :)

Enjoy and happy linuxing,

Marlon

Wednesday, November 3, 2010

I deleted my /etc/samba/smbd.conf file, aaaahhhhh!!!

Recently I deleted the file after messing with the settings and not getting the results I wanted. I figured I could simply delete it and it would automatically recreate it from a "default" template and it would magically reappear. I know, that was dumb.
  1. You could force an uninstall with dpkg and then reinstall with apt-get:
    sudo dpkg -r --force-depends samba-common
    sudo apt-get install samba-common
    
  2. The problem is that the configuration will break since it's missing the smbd.conf file so you will have to:
    sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
    sudo dpkg --configure -a
    
If you have been paying attention you might be asking yourself... "Well, if I have to do that doesn't that mean that smbd.conf has actually been in the /usr/share/samba/ folder the whole time?" ...and you would be correct. If you have removed that file by mistake, like I have, all you have to do is the first command in the second step and just configure it again. You might want to keep a copy of the default one handy in case you do it again.

To summarize, all you need to do to fix this issue is:
sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.default
Now you have your default file back and a ".default" copy in case you mess it up again.

Enjoy and happy linuxing,

Marlon