How to Make Ubuntu Unity 2D Launcher Work with an NFS Mounted Home

Back in July I repor­ted a bug that I was hav­ing with Ubuntu’s Unity 2D Launcher. The launcher would crash and restart con­stantly, chew­ing up a lot of CPU time. I had to switch back to the clas­sic Gnome desktop to con­tinue work­ing, I can’t run Unity (3D) because of a bug in NVIDIA’s drivers that pre­vent icons being dis­played in the launcher.

For­tu­nately Florian Bou­cault picked up the bug report and poin­ted out that dconf — the sys­tem that Unity 2D uses to store its con­fig­ur­a­tion — does not cur­rently work over NFS.

The work­around is to store dconf data­bases loc­ally by set­ting XDG_CONFIG_HOME dur­ing the user login pro­cess, before X gets star­ted. Here is a script that will do the job when placed in /etc/profile.d/

# /etc/profile.d/local-config.sh

# Set XDG_CONFIG_HOME, XDG_CONFIG_CACHE and ICEAUTHORITY to a local path

# Gnome dconf does not cur­rently work over NFS,
# so make sure con­figs are stored locally.

# Ubuntu Bug: https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/817368
# Gnome Bug: https://bugzilla.gnome.org/show_bug.cgi?id=595579

# All other pro­grams that hon­our the loc­a­tion of XDG_CONFIG_HOME
# will also store their con­fig­ur­a­tions here.

# Set CONFIG_BASE_DIR to any local dir­ect­ory where the user
# has write access to cre­ate it.

CONFIG_BASE_DIR=/home/configs/${USER}
[ –d ${CONFIG_BASE_DIR} ] || mkdir –p ${CONFIG_BASE_DIR}

export XDG_CONFIG_HOME=$CONFIG_BASE_DIR/config
export XDG_CACHE_HOME=$CONFIG_BASE_DIR/cache

# X11 throws an error on login when .ICEau­thor­ity is loc­ated on NFS
# Ubuntu Bug: https://bugs.launchpad.net/ubuntu/+bug/761991

export ICEAUTHORITY=$CONFIG_BASE_DIR/.ICEauthority

I also took the oppor­tun­ity to move .ICEau­thor­ity from my home dir­ect­ory because I get an error that it can’t be updated every time I log in.

 

Stopping Bots From Blacklisting Your Mail Server

Some of my cli­ents run a mail server on their local net­work enabling them to have full con­trol over their email sys­tem. Most Inter­net facing mail serv­ers will con­sult a black­list for all incom­ing email, com­par­ing the iden­tity of the send­ing server to known spam sources. When you are a busi­ness you abso­lutely do not want to have your mail server black­lis­ted as your cus­tom­ers mail serv­ers will simply refuse to receive email from your company.

Anger Bot!
Photo From Stick­Bus

A com­mon cause of black­list­ing, in my exper­i­ence, is when cli­ent PCs are infec­ted by mal­ware and become part of a bot­net. The own­ers of the bot­net then use the infec­ted machines to send out thou­sands of spam emails and its not long before this is noted and your con­nec­tion appears on a black­list, effect­ively pre­vent­ing your legit­im­ate email from get­ting to recipients.

To pre­vent black­list­ing I adopt these best prac­tices:

  1. Allow the local mail server to send email and block all other out­go­ing con­nec­tions on port 25 at the firewall
  2. Con­fig­ure the mail server to only accept con­nec­tions from authen­tic­ated mail clients.

Now only legit­im­ate users that are logged in to the mail server can send mail, any attempt by an infec­ted machine to con­tact an external mail server to send email is blocked at the fire­wall. If PCs then become infec­ted, the fire­wall logs will alert you to the out­go­ing con­nec­tion attempts on port 25 and the infec­tion can be dealt with.

The Small Business Internet Marketing Vacuum

Our local high streets are in trouble with many small local busi­nesses clos­ing due to fall­ing sales and increas­ing com­pet­i­tion from super­mar­kets, chain stores and inter­net retail­ers. But it’s easy to blame external factors for busi­ness fail­ure and, to their credit, many of the small retail­ers that I talk to are look­ing for­ward and want improve the way that they present their busi­ness. They under­stand that they have to dif­fer­en­ti­ate them­selves, demon­strate their expert­ise, engage with their cus­tom­ers and provide them with a great cus­tomer ser­vice experience.

Abandoned Shop
Photo From kevin­dooley

For many small retail­ers, part of the mar­ket­ing plan is to cre­ate a pres­ence on the inter­net, usu­ally start­ing with a basic web­site and occa­sion­ally mov­ing toward on-line selling. So, ima­gine your­self as the owner of a small shop and try a few google searches for inform­a­tion on inter­net mar­ket­ing. Plenty of art­icles that are short on prac­tical advice, any num­ber of inter­net mar­ket­ing courses and a sprink­ling of grand ideas. Much of this inform­a­tion also assumes a more than passing famili­ar­ity with the inter­net that many shop keep­ers don’t have, in my experience.

I think that what small, high street retail­ers need is more zero-based, prac­tical advice on inter­net mar­ket­ing. These busi­nesses are hungry to cap­it­al­ise on the poten­tial of the inter­net to improve their reach and inform new and exist­ing cus­tom­ers but they lack good inform­a­tion and help. There is still a big oppor­tun­ity here.

Can you help by point­ing to good resources for small retail­ers on inter­net mar­ket­ing and how they can apply it? Links to art­icles, case-studies or events are much appre­ci­ated. If you have any please post them in a comment.