Pogoplug

De WikiMar
La revisió el 03:53, 14 jul 2013 per Marti (discussió | contribucions) (Es crea la pàgina amb « ==Install Archlinux== http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray Copy: With the device on and online, attempt to SSH to the IP the device received t...».)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a la navegació Salta a la cerca

Install Archlinux

http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray

Copy:


With the device on and online, attempt to SSH to the IP the device received through DHCP. If you are unable to SSH, register and enable SSH through my.pogoplug.com. The default login (unless changed through my.pogoplug.com) is root/ceadmin. Stop the Pogoplug software, so it doesn't interfere with the install process:killall hbwd You only need to kill the Pogoplug service the first time you SSH in. Running the installer in the following steps disables it completely.

While connected via SSH to your plug, copy, paste, and run the following commands to download a bootloader that can boot from USB drives: cd /tmp wget http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh chmod +x install_uboot_mtd0.sh ./install_uboot_mtd0.sh After the new bootloader is installed, you will need to use fdisk to partition a storage device. Plug in a 1GB or bigger USB drive. REMOVE ALL OTHER DRIVES. Move everything you need off of the Arch Linux ARM drive and back it up. Everything on the USB drive with be deleted and replaced with Arch Linux ARM.

Set the U-Boot variable to tell the kernel to use ext3: /usr/sbin/fw_setenv usb_rootfstype ext3 Start fdisk on the USB drive: /sbin/fdisk /dev/sda At the fdisk prompt, delete old partitions and create a new one: Type o. This will clear out any partitions on the drive. Type p to list partitions. There should be no partitions left. Now type n, then p for primary, 1 for the first partition on the drive, and then press ENTER, accepting default values. Exit by typing w. Now create the ext3 filesystem: wget http://archlinuxarm.org/os/pogoplug/mke2fs chmod 755 mke2fs ./mke2fs -j /dev/sda1 mkdir usb mount /dev/sda1 usb Download and install Arch Linux ARM: cd usb wget http://archlinuxarm.org/os/ArchLinuxARM-armv5te-latest.tar.gz tar -xzvf ArchLinuxARM-armv5te-*.tar.gz # This will take a long time rm ArchLinuxARM-armv5te-*.tar.gz sync # Takes a while when using a flash drive Clean up and reboot. Cross your fingers and hope for the best. cd .. umount usb /sbin/reboot The SSH key of your device will be different, so you need to tell Mac OS X or Linux to remove it from ~/.ssh/known_hosts before using SSH again: ssh-keygen -R 192.168.1.123 # Use your device's IP Log back in after your Pogoplug reboots using username root and password root.


Initial setup

http://obihoernchen.net/wordpress/770/plug_computer_arch_linux/

login via SSH:

username: root
password: root


passwd root
pacman -Syu
pacman -Syu
hostnamectl set-hostname ocell
timedatectl set-timezone Europe/Berlin
pacman -S openntpd
systemctl enable openntpd


pacman -S rsync
pacman -S unison
pacman -S munin-node
nano /etc/munin/munin-node.con

add:

allow ^212\.83\.63\.165$


Install Webmin

pacman -Sy webmin perl-net-ssleay
nano /etc/webmin/miniserv.conf

afegir:

allow=192.168.0.0
systemctl enable webmin
systemctl start webmin


https://deviceip:10000 To lower memory usage go to: Webmin>Webmin Configuration>Advanced Configuration and disable “Pre-load Webmin functions library?”


Disks automount

pacman -Sy udevil
nano /etc/udevil/udevil.conf

Search for default_options_ntfs= and allowed_options= Now we add the option “big_writes” to both lines so it looks like:

..., noatime, big_writes, uid=...


mkdir /media
systemctl enable devmon@root
reboot

Samba