Quantcast
Channel: PirateBox Forum - Raspberry Pi(rate)Box
Viewing all articles
Browse latest Browse all 1863

Re: Piratebox not starting

$
0
0
Quote
First Steps After Flashing
1. Change password of alarm user
> passwd
2. Enable Fake-Timeservice
2.1 Set date and time
# Disable network time sync
> sudo timedatectl set-ntp false
# Set time to "Mon May 23 17:42:00" (Format: CCYYMMDD hhmm)
> sudo date -s "20170523 1742"
> cd /opt/piratebox && sudo ./bin/timesave.sh ./conf/piratebox.conf install
2.2 Enable on startup
> sudo systemctl enable timesave
3. Enable the Kareha Image and Discussion Board
> sudo /opt/piratebox/bin/board-autoconf.sh
4. Enable USB thumb drive share
> sudo /opt/piratebox/rpi/bin/usb_share.sh
5. Enable UPnP Media Server
> sudo cp /etc/minidlna.conf /etc/minidlna.conf.bkp
> sudo cp /opt/piratebox/src/linux.example.minidlna.conf /etc/minidlna.conf
> sudo systemctl start minidlna
> sudo systemctl enable minidlna
Last login: Sun Mar 6 14:43:43 2016 from 192.168.77.168


[alarm@alarmpi ~

$ ps
PID TTY TIME CMD
9449 pts/0 00:00:00 bash
10931 pts/0 00:00:00 ps

[alarm@alarmpi ~]$ ps all
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
4 0 219 1 20 0 2052 1400 - Ss+ tty1 0:00 /sbin/agetty --noclear tty1 linux
4 0 222 1 20 0 2052 1368 - Ss+ ttyS0 0:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyS0
0 1000 9449 9427 20 0 3468 2628 wait Ss pts/0 0:00 -bash
0 1000 11498 9449 20 0 5424 1092 - R+ pts/0 0:00 ps all


[alarm@alarmpi ~]$ sudo sh -c 'echo "/dev/sda1 /mnt/usbdrive ext4 uid=nobody,gid=nogroup,umask=0,noatime,rw,user 0 0" >> /etc/fstab'
[sudo] password for alarm:
[alarm@alarmpi ~]$ sudo mkdir -p /mnt/usbdrive
[alarm@alarmpi ~]$ sudo mount /dev/sda1 /mnt/usbdrive
[alarm@alarmpi ~]$ sudo rm -rf /opt/piratebox/share/Shared
[alarm@alarmpi ~]$ sudo ln -s /mnt/usbdrive/Shared /opt/piratebox/share
[alarm@alarmpi ~]$ sudo rm -rf /opt/piratebox/share/board/src
[alarm@alarmpi ~]$ sudo ln -s /mnt/usbdrive/kareha_uploads /opt/piratebox/share/board/src
[alarm@alarmpi ~]$ sudo systemctl restart piratebox]





Above is what I run to attach the external hard drive to the pirate box. I use rm -rf since the folders already exist on the external and mv was giving me a denied since directory had files in it.

Re-Flash #3
I was able to do the reboot before I mounted the external drive. Is there a setting to wait for the external drive? I am guessing this is the issue.

Viewing all articles
Browse latest Browse all 1863

Trending Articles