parted

parted -a opt /dev/md0
(parted) u MiB
(parted) rm 1
(parted) mkpart primary 1 100%

or an alternate dirty method would simply go like this

(parted) mkpart primary ext4 1 -1

Partition a 4tb external drive:
parted -a opt /dev/sdc
mklabel gpt
unit TB 
mkpart primary 0.00TB 4.00TB
align-check optimal 1 (check if the partition is aligned)
quit
mkfs.ext4 /dev/sdc1

You  might want to reduce the reserved for defragmentation to 1% with such a large drive.

tune2fs -m 1 /dev/sdc1

lv resize and file system increase

how to resize an lvs file system:

Example:  We want to increase LVNAME

1.  What vg is it in?
[root@HOSTNAME ~]# lvs
LV        VG           Attr   LSize   Origin Snap%  Move Log Copy%  Convert
LVNAME   VGGROUP -wi-ao  10.00G

2.  There is space on the vg to do this?
[root@HOSTNAME ~]# vgs
VG           #PV #LV #SN Attr   VSize   VFree
VGGROUP   1   8   0 wz–n- 100.00G 10.00G
3.  Increase the lv by 10G
lvresize -L +10GB /dev/VGGROUP/LVNAME
or
lvresize -l +100%FREE /dev/VGGROUP/LVNAME
4.  resize the file system
resize2fs -p /dev/VGGROUP/LVNAME

This can all be done while the filesystem is mounted safely.

Wacom users’s guide

Here are my adventures in using my wacom.

Questions:

  1. The wacom eraser doesn’t work under gimp.

Answers

  1. It might be counter intuitive, but gimp actually knows which side of the pen you are using. So when you switch to the erase, select the eraser tool.  If you flip back to the pen side, it will draw, and next time it will know when you switch to the eraser to switch to the eraser.

Ubuntu 12.10 Build

Xrdp issues – first couldn’t get a desktop, then I couldn’t press ‘d’ while in xrdp

  1. apt-get install compizconfig-settings-manager (fix found here)
  2. ccsm (no sudo)
  3. In the compiz config manager: General (left side) -> General Options (right side) -> Key bindings (tab) -> Show Desktop (with the keyboard icon) -> Click the “X” icon (on the far right) This sets the default of <Control><Primary><Super>d.
  4. Click on the key binding <Control><Primary><Super>d.
  5. Click “Grab key combination”
  6. Press ALT+D (or whatever other key combo you want to bind to the “show desktop” option).
  7. Do the same for the Maximize and Minimize window as they are linked to the super key as well.
  8. Click OK, Back, Close
  9. Restart your xrdp session
  10. Prerequisite packages:
  11. Setup perl:
    1. locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8
    2. dpkg-reconfigure locales
  12. apt-get install php5 php5-mysql php5-sqlite php5-recode php5-snmp php5-cgi  php5-cli php5-curl php5-dbg php5-dev
  13. Setup Apache
    • a2ensite default-ssl
    • a2enmod ssl
    • a2enmod rewrite
  14. Setup Mysql
    • CREATE USER ‘USERNAME’@’*’ IDENTIFIED BY ‘PASSWORD-HERE’;
    • GRANT ALL PRIVILEGES ON *.* TO ‘USERNAME’@’10.10.1.0/255.255.255.0’ WITH GRANT OPTION
  15. Install Cakephp: http://nerdviral.wordpress.com/2012/10/02/install-the-latest-cakephp-on-ubuntu-server-12-04-lts/
  16. postfix using maildir:  postconf -e “home_mailbox= Maildir/” ; service postfix restart
  17. Sync with dropbox: https://www.dropbox.com/install?os=lnx

EtherTen – freetronics

I have been trying to see how I could improve my home’s energy efficiency as of late.  My only problem is, I hear people talking about do this and that, but how do you actually prove that it does what it says it will do.  A friend of mine bought some thermal foil for the attic of his house.  It looks interesting, but without proof of what it does, how can you really know?  To this end I an EtherTen today.  I’m going to be placing my drivers and files here for future reference, but my goal is to put sensors in my attic to measure the temperatures through the summer and log to a server.  I’m guessing it won’t be perfect, but its a great learning process and should yield real world proof of what does and does not work.

Software: