Friday, January 31, 2014

How to disable right-click on the desktop in Xfce 4.10

This is the second shoot on Xfce.

First my testing box:

Fresh Install 12.04 32-bit.
Then apt-get update, upgrade and dist-upgrade
Then ppa upgrade xfce4 4.10
Reboot.


Try the following:

1. In Settings > Desktop > Menus
a. uncheck Show applications on right click.
b. uncheckShow window list on middle click.


2. go to Settings > Desktop > Icons
select type: None or Minimized


Then this should pretty much disable all interaction with the desktop.

To apply this change system wide, copy changes from your user folder to:

/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

remove [Suspend] [Hibernate] buttons from the Xfce logout dialog

Been working on Xfce recently.

I would like to share some trick on how to Customize XFCE Desktop, hope these can save your some time.

My build need to remove [Suspend] [Hibernate] buttons from the Xfce logout dialog

To change system wide:
/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

To change for one user:
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

Add these at the end of xml file:







Make it looks like:


















Thursday, January 30, 2014

Dell Wyse Cloud Connect

http://www.dell.com/us/business/p/cloud-connect/pd

This is really a thin client device.

Android 4.1, Jelly Bean runs on Cortex-A9 ARM SOC
With Wifi

Memory:

8GB flash
1 GB RAM
1x Micro SD card slot (expandable up to 72GB flash storage)

Oracle Linux: Maximize Performance / Minimize Downtime

Oracle Linux: Maximize Performance / Minimize Downtime
http://medianetwork.oracle.com/video/player/2921003278001

Oracle’s Greg Marsden provides a large number of specific tips and tricks for getting the most from Oracle Linux.
Really helpful information about Large Memory Linux system.
Example for 1TB RAM system.

Key Note:
NUMA
Swap Tuning
Kernel UEK
kdump
Serial console
HugePages
...


Highly Recommend!

Tuesday, January 28, 2014

Shell script to ping IP


#!/bin/bash

ping -c 4 $1 > /dev/null
if [[ $? -eq 0 ]]
then
echo "ping success at $(date)" >> /tmp/check_vpn.log
else
echo "ping failed at $(date)" >> /tmp/check_vpn.error
fi


To use it:

# ./check_vpn.sh 192.168.1.1

Or:

crontab:

* * * * * check_vpn.sh 192.168.1.1

Tuesday, January 14, 2014

Starting Ubuntu Xubuntu without the GUI

For Ubuntu 11.10 and higher

Edit /etc/default/grub

vi /etc/default/grub

Find out this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="text"


Update Grub:

sudo update-grub


Please notice, you do NOT need to remove / disable lightdm upstart conf, it already does that for you.

lightdm.conf

# Check kernel command-line for inhibitors, unless we are being called
# manually
for ARG in $(cat /proc/cmdline); do
if [ "$ARG" = "text" ]; then
plymouth quit || :
stop
exit 0
fi
done


You will still be able to use X by typing startx after you logged in.