Wednesday, October 31, 2012

Ubuntu starting in low graphics mode?

If you ever encountered Ubuntu starts in low graphics mode, it could be due to the following:
  1. your "/" or "/boot" partition are full. Do a check with df -h, if it is the case then clean out some useless stuff and do a reboot
  2. the lightdm or gdm is corrupted. Uninstall it completely with sudo apt-get purge gdm or sudo apt-get purge lightgdm, then reinstall with sudo apt-get install gdm. Select lightdm or gdm from the menu. (you might try lightdm first, if it still give problem, go with gdm)
  3. the desktop might have corrupted. If you are using XFCE4 like I do, continue with sudo apt-get purge xubuntu-desktop and sudo apt-get install xubuntu-desktop. Same method work for ubuntu-desktop.

Tuesday, October 30, 2012

Things to take note when sharing files


  • Using Webmin as interface to configure the sharing, it is very important to set valid users beside the read/write permission. Leaving the valid users input blank will give chance for other unauthorized user to bypass the read/write permission and gain access to the folder with read only permission.

LVM with RAID

http://home.gagme.com/greg/linux/raid-lvm.php

Monday, October 29, 2012

Removing Ubuntu Unity 3D?

I will share the resources I gather in regard removing the annoying Unity 3D and run only your favorite windows manager:

Ubuntu 12.10 - Remote desktop from Win7 give blank screen

There is always problem here and there with fresh install Ubuntu. It is really unlike Windows 7, no matter what you have install things will normally work just right away without much configuration.

XRDP session in Ubuntu can't escape as well. I believe a lot have experienced login from Windows 7 to Ubuntu will see only the wallpaper without any taskbar. There are many many work around online and most of them required a lot of command line input and even some require reinstallation / removal of certain piece of software inside.

Gathering info from all those advices, one can realize it actually something to do with what is being loaded up upon login from remote. The gnome-session-fallback seems not working on Ubuntu 12.10 possibly due to Unity-2D is completely gone out of 12.10. And if you are like me who prefer xfce4 than any other, then the solution is as simple as below:
  1. locate the startwm.sh in /etc/xrdp
  2. you can do vi or simply fire up leafpad with sudo privilege. the last line of it should be ./etc/X11/Xsession
  3. replace it with xfce4-session (or you can simply add a "#" in front of the "xsession" line to disable it and enter xfce4-session in a new line)
  4. now login again from remote desktop connection and voila!
Configuring different desktop session:

  1. Lubuntu: lxsession -s Lubuntu -e LXDE
  2. Gnome Fallback: gnome-session --session=gnome-fallback

Thanks to NuxIT from linuxquetions.org for the idea of such a simple solution. The original discussion thread can be found here:
http://www.linuxquestions.org/questions/linux-networking-3/problems-connecting-to-xrdp-xfce-desktop-after-ubuntu-upgrade-943189/

Additional resources:

Bandwidth Monitor - Bandwidthd


Download: http://bandwidthd.sourceforge.net/

How to install:
  • http://community.spiceworks.com/how_to/show/1261-how-to-use-bandwidthd-to-monitor-your-network
  • http://infodotnet.blogspot.com/2008/02/install-and-configure-bandwidthd-per-ip.html

Sunday, October 28, 2012

Check / Rebuild RAID in Ubuntu?

Come across a command that at least can tell me something about my RAID10.

Original URL: http://ubuntuforums.org/showthread.php?t=1844859

The command:
sudo dmraid -sa to get a report on the array
sudo dmraid -rebuild "name from above" to rebuild it.