Fix Sending emails from Webmin

If Webmin is unable to send emails, for example, from automated backups, then following fix may work for you.

Before this ensure you have some kind of mail configured on your system. If not, here’s a guide to configure ssmtp

Basically, you need to go to Webmin Configuration and check “Sending Email” configuration. For me, it was a matter of setting “From” address. Quite simple, but took me hours to figure out..

Webmin_Sending_Email

Fiddlehead Ferns

Yes, you can get these in US! You just have to pay more. Unless you are local to the region where these are grown in US, you will need to order from online sellers. I ordered mine from Earthy Delights. Since these are perishables, only overnight shipping is provided. Be smart and order more than a lb in order to make it a worthwhile deal. For the ones I ordered, I am yet to savor their taste… but I am quite sure they will be wonderful! Close examination did tell me that they are not same as what you may find in Himalayas. Mine had shoots chopped…

IMG_1442

Update: they turned out to be pretty tasty. Here’s a picture of the cooked version Indian style

Fiddlehead_ferns_cooked

Try my version of fried chicken

IMG_1437

Made up the recipe myself. Turned out to be quite tasty.

About a 1lb of Chicken Breast cut into small pieces

Batter – Wheat flour (3 Tbsp), 3 egss, Salt, Paprika, Milk (1 cup). Whip everything until somewhat thick. If too runny add more flour.

Mix batter and chicken pieces, until chicken is thoroughly coated. Fry them for 10-12 minutes @375 deg F in deep fryer.

Serve with Sauce of your liking. I used Frank’s Buffalo Sauce.

MediaTomb breaking after Ubuntu upgrade

Yesterday, upgraded Ubuntu Server from 14.10 to 15.04, and somehow it broke MediaTomb. After upgrade, my uPnP server was not showing up in consuming devices.

I looked at the logs, and found that MediaTomb was binding to localhost

cat /var/log/mediatomb

2015-06-07 12:31:46    INFO: Loading configuration from: /etc/mediatomb/config.xml
2015-06-07 12:31:46    INFO: Checking configuration…
2015-06-07 12:31:46    INFO: Setting filesystem import charset to UTF-8
2015-06-07 12:31:46    INFO: Setting metadata import charset to UTF-8
2015-06-07 12:31:46    INFO: Setting playlist charset to UTF-8
2015-06-07 12:31:46 WARNING: You enabled the YouTube feature, which allows you
to watch YouTube videos on your UPnP device!
Please check http://www.youtube.com/t/terms
By using this feature you may be violating YouTube
service terms and conditions!

2015-06-07 12:31:46    INFO: Configuration check succeeded.
2015-06-07 12:31:46    INFO: Initialized port: 50500
2015-06-07 12:31:46    INFO: Server bound to: 127.0.0.1

Instead of 127.0.0.1, there should be the actual IP address assigned to the Server.

I then checked the /etc/default/mediatomb file, and found that MT_INTERFACE variable was set to “lo”. THIS SHOULD BE SET TO YOUR ETH INTERFACE, which in my case is eth0

So, setting MT_INTERFACE=eth0, and restarting MediaTomb fixed the issue

2015-06-07 12:44:25    INFO: Loading configuration from: /etc/mediatomb/config.xml
2015-06-07 12:44:25    INFO: Checking configuration…
2015-06-07 12:44:25    INFO: Setting filesystem import charset to UTF-8
2015-06-07 12:44:25    INFO: Setting metadata import charset to UTF-8
2015-06-07 12:44:25    INFO: Setting playlist charset to UTF-8
2015-06-07 12:44:25 WARNING: You enabled the YouTube feature, which allows you
to watch YouTube videos on your UPnP device!
Please check http://www.youtube.com/t/terms
By using this feature you may be violating YouTube
service terms and conditions!

2015-06-07 12:44:25    INFO: Configuration check succeeded.
2015-06-07 12:44:25    INFO: Initialized port: 50500
2015-06-07 12:44:25    INFO: Server bound to: 192.168.0.9
2015-06-07 12:44:26    INFO: MediaTomb Web UI can be reached by following this link:
2015-06-07 12:44:26    INFO: http://192.168.0.9:50500/

 

Configuring VNC on Ubuntu Server

I recently configured VNC on my home server. This enables me to log on to the server and work in a GUI environment. I am using GNOME basic

Server – Assumed Ubuntu Server 14.04

Pre-reqs – Install GNOME basic desktop

sudo apt-get install –no-install-recommends ubuntu-desktop

Install gnome-panel

sudo apt-get install gnome-panel

Install VNC Server. I used TightVNC Server

sudo apt-get install tightvncserver

Set up VNC initial configuration

vncserver

Stop the VNC session

vncserver -kill :1

Backup  existing xstartup file

mv ~/.vnc/xstartup ~/.vnc/xstartup.old

Create new xstartup file

vi ~/.vnc/xstartup

Add following

#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/Xsession
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

Grant executable permissions to the xstartup file

chmod +x ~/.vnc/xstartup

Create  VNC Service file

sudo vi /etc/init.d/vncserver

Add following (replace user with your logon username). Note – I am not limiting connections to only localhost

#!/bin/bash
PATH=”$PATH:/usr/bin”
export USER=”user
DISPLAY=”1″
DEPTH=”16″
GEOMETRY=”1920×1080″
OPTIONS=”-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}”
. /lib/lsb/init-functions

case “$1” in
start)
log_action_begin_msg “Starting vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
su ${USER} -c “/usr/bin/vncserver ${OPTIONS}”
;;

stop)
log_action_begin_msg “Stopping vncserver for user ‘${USER}’ on localhost:${DISPLAY}”
su ${USER} -c “/usr/bin/vncserver -kill :${DISPLAY}”
;;

restart)
$0 stop
$0 start
;;
esac
exit 0

Make the file executable

sudo chmod +x /etc/init.d/vncserver

Start service

sudo service vncserver start

Client – Assumed Windows

Download TightVNC free client: http://www.tightvnc.com/download.php

For the Remote Host, type “Servername::5091”, where Servername = Your Server’s hostname or IP Address. Then  click Connect

TightVNC-Client

You will be asked for password. Enter password you set while installing vncserver

You should see the GNOME desktop now.

TightVNC-Desktop

 

AMD Kaveri Dual Graphics R7 250

I finally tried Dual Graphics on my AMD Kaveri A10-7850k based system. Kaveri A10-7850k is an onboard R7 250 GPU, and pairs with any standalone R7 250 card in Dual Graphics mode. However, the standalone card must be DDR3. The card I am using is MSi R7 250 2GB DDR3, and is less than $60.

MSi_R7_250_2GB_DDR3

Popping it in, the system immediately recognized it, and AMD Catalyst asked for setting Dual Graphics mode. Easy..

Catalyst_Dual_Graphics

GPU-Z shows Dual Graphics

GPUZ_Dual_Graphics_2

GPUZ_Dual_Graphics_1