Difference between revisions of "Plug Tips and Tricks"
From Amahi Wiki
(page created) |
|||
Line 4: | Line 4: | ||
= Setting the timezone = | = Setting the timezone = | ||
+ | |||
+ | The timezone is not set on a new plug install (See [http://bugs.amahi.org/issues/show/757 #757]. To set it manually follow the steps below: | ||
* Login as root or su to root. | * Login as root or su to root. | ||
* choose from /usr/share/zoneinfo which timezone you want to set your plug to. | * choose from /usr/share/zoneinfo which timezone you want to set your plug to. | ||
− | * Issue the command '''rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime''' | + | * Issue the command '''rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime''' |
+ | * Issue the command '''hda-php-zone-change "Europe/Amsterdam"''' to set the timezone for PHP. | ||
+ | ''Obviously replace Europe/Amsterdam with whatever timezone you want to set the timezone to.'' | ||
= Copy a root filesystem from one disk to another = | = Copy a root filesystem from one disk to another = |
Revision as of 10:21, 15 July 2011
Introduction
This page contains some tips, tricks and howto's for the plug distro. Feel free to add your own.
Setting the timezone
The timezone is not set on a new plug install (See #757. To set it manually follow the steps below:
- Login as root or su to root.
- choose from /usr/share/zoneinfo which timezone you want to set your plug to.
- Issue the command rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
- Issue the command hda-php-zone-change "Europe/Amsterdam" to set the timezone for PHP.
Obviously replace Europe/Amsterdam with whatever timezone you want to set the timezone to.
Copy a root filesystem from one disk to another
This may be useful if you have set up things on a USB device and want to copy to an internal harddisk:
The code below assumes the old (usb) disk is at /dev/sdb1 and the new (internal) disk is at /dev/sda1. Substitute accordingly
bash code |
---|
# /dev/sda1 is the target filesystem; must have an empty filesystem on it mount /dev/sda1 /mnt mkdir /mnt2 # /dev/sdb2 is the source filesystem mount /dev/sdb1 /mnt2 cd /mnt2 cp -ar * /mnt
|