GENERAL QUESTION

Posted by junnot 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
GENERAL QUESTION
May 27, 2017 06:25AM
I have successfully put my share content in my thumb drive and it worked

my questions are if the usb isn't plugged in at boot up what happens?

how to telnet without Ethernet connections after initial setup(post installation)?

how to change my ssid

I hv two pi for some reasons I can't setup the mesh ?

thank you
Re: GENERAL QUESTION
May 27, 2017 09:08PM
Quote

my questions are if the usb isn't plugged in at boot up what happens?
Bootup will fail and run into recovery mode

Quote

how to telnet without Ethernet connections after initial setup(post installation)?
you can only ssh into the box. You can connect via the PirateBox Accesspoint and use ssh like before.

Quote

how to change my ssid
[piratebox.cc]

Quote

I hv two pi for some reasons I can't setup the mesh ?
With what howto?

best regards Matthias
Re: GENERAL QUESTION
May 28, 2017 12:45AM
please can you shed more light of what happens in recovery. am I new to rassperry pi.


what ip can I use to ssh? via the access point

am so sorry for this questions
Re: GENERAL QUESTION
May 28, 2017 09:10AM
the IP is "192.168.77.1" , or just use
ssh alarm@alarmpi
The hostname "alarmpi" will automatically resolve to 192.168.77.1 or what is currently set.

The mode is called "emergency" not "recovery", sorry my fault. If the USB mount fails, the system will not boot up properly and you have to login via keyboard and monitor to resolve the issue. All network connections are disabled, so you can not ssh back into the system again.
Re: GENERAL QUESTION
May 28, 2017 10:20PM
[ibb.co]
attached above is an error I get
when accessing it
hope I am doing correctly



Edited 2 time(s). Last edit at 05/28/2017 10:22PM by junnot.
Re: GENERAL QUESTION
May 29, 2017 04:12AM
Well, you want to edit this file, this means you need to use vi ( cheat sheet) or nano.

vi /opt/piratebox/conf/hostapd.conf

best regards Matthias
Re: GENERAL QUESTION
May 29, 2017 07:06AM
can u point to a wiki on how to coz I hv been working my self out I don't mind learning

am so new to it. but I know I can learn it
Re: GENERAL QUESTION
May 29, 2017 07:36AM
gotten it thanks
Re: GENERAL QUESTION
May 30, 2017 08:14AM
Matthias Wrote:
-------------------------------------------------------
> Well, you want to edit this file, this means you
> need to use vi ( cheat sheet) or nano.
>
>
> vi /opt/piratebox/conf/hostapd.conf
>
> best regards Matthias


after editing and saving ssid new name the pi boot up and I don't see the WiFi then I hook up with hdmi and I saw wlan0 link is not ready
Re: GENERAL QUESTION
May 30, 2017 10:16AM
Did you only change /opt/piratebox/hostapd.conf?
What SSID did you choose? It should not contain special characters.

When you take keyboard and Monitor, login to the box (or SSH via ethernet if possible)
sudo systemctl restart piratebox
sudo journalctl -n 400 > /boot/journal.out
sync

After this stop the rpi, take the SDCard, on the first partition there is a "journal.out" file - please post the content this here or (better) via pastbin

Thank you,
best regards
Matthias
Re: GENERAL QUESTION
May 30, 2017 09:54PM
[ibb.co]
[ibb.co]

I wanted to use the method u posted, but the power wasn't enough to power the screen and the keyboard. I was getting an error of ( enumerate usb device ) only option was to screen shot the hostapd I feel they are errors there.



Edited 1 time(s). Last edit at 05/30/2017 11:48PM by junnot.
Re: GENERAL QUESTION
May 31, 2017 04:39AM
Sorry, that does not help much :-(
Re: GENERAL QUESTION
May 31, 2017 10:44PM
I have been able to resolve the WiFi issues thanks very it as a result of wrong letters

but I wanna change the hostname from piratebox.lan to my name with this code

/opt/piratebox/bin/install_piratebox.sh /opt/piratebox/conf/piratebox.conf hostname <new hostname>

I get syntax error near unexpected token new line

please can you help me out



Edited 1 time(s). Last edit at 06/01/2017 12:43AM by junnot.
Re: GENERAL QUESTION
June 01, 2017 05:04AM
I am sorry, but without the exact error message, I can not help you.
Re: GENERAL QUESTION
June 01, 2017 06:35AM
syntax error near unexpected token new line

this is the error I get when I type in those code
Re: GENERAL QUESTION
June 01, 2017 06:56AM
Yes, this is what I read in your post above.

What is missing?
Command entered, line number etc. etc.
Re: GENERAL QUESTION
June 01, 2017 02:01PM
to start with I don't know if I should put vi or sudo or etc in front of the code.
Re: GENERAL QUESTION
June 02, 2017 04:16AM
Syntax errors are not from not using vi or nano correctly.
These syntax errors usually come from unexpected input. For example special characters.
The tool is working on my box as expected. I run it like this
sudo /opt/piratebox/bin/install_piratebox.sh  /opt/piratebox/conf/piratebox.conf  hostname 'helloworld.com'

In general, if you encounter an error message like you hade, then it strongly recommended that you capture (copy&paste) the hole output including the executed commando. Without, I can not identify where the command failed and the message reads for a developer like "an error occurred" (and we do not know why and what exactly).

The command(-prefix) "sudo" is a command which executed the following commands as the root user. Linux is following the principle of a strict differentiation between a normal (unprivileged) user and a superuser (root). If you connect to the box as the user "alarm", then you are a normal user and are not allowed to change system configuration. PirateBox under /opt/piratebox is counting as a privileged service and needs to be changed and executed as root using sudo.

best regards Matthias
Re: GENERAL QUESTION
June 06, 2017 12:17AM
thanks for your reply
after lengthy hours on build a website I put the html site in my. flash then I boot it won't show anything on. my browser then I put the usb back into the system then I notice the files in the folder are deleted except for index. this is my third time change website

is there a way I can place back the default template back



Edited 1 time(s). Last edit at 06/06/2017 12:19AM by junnot.
Re: GENERAL QUESTION
June 06, 2017 04:21AM
Hi,

where/in which folder did you place the files?
What is the content of the "index.html" ?

Only if the <USB>/content folder is not a directory, a new copy will be placed on the USB Stick. There should no checkup to the index files.

In the <USB>/Shared folder, the following files are deleted:
- 0 Byte files
- Starting with tmp*

best regards Matthias
Re: GENERAL QUESTION
June 06, 2017 05:36AM
I put my html site in the content folder just the way it done in openwrt and libary box. but anytime my pi boots any file I put into the box is deletes.

take for instance the Css folder in the content will be empty

the image will be empty likewise

all folders in content
will be empty

only index.html that will be remaining



Edited 1 time(s). Last edit at 06/06/2017 05:38AM by junnot.
Re: GENERAL QUESTION
June 06, 2017 05:50AM
Are you running PirateBox 1.1.3 ?
I just did a test with the internal SDcard store and that worked (I only removed the content of the content folder and there wasn't placed anythin new in it).

I am reflashing now and testing again with an USB stick
Re: GENERAL QUESTION
June 06, 2017 06:18AM
yea I am running 1.1.3

mind you I hv placed a website into the content folder before so I hv successful ran it and it worked. but after editing then I get this errors. I even went back to piratebox html I still get this errors.

I am gonna re flash, maybe i might hv messed up something along the way.
if I should encounter the same issue,then I will let you know



Edited 1 time(s). Last edit at 06/06/2017 06:21AM by junnot.
Re: GENERAL QUESTION
June 06, 2017 06:20AM
Do you mind to post the output of the following command?

ls -lR /opt/piratebox
Re: GENERAL QUESTION
June 06, 2017 06:21AM
Re: GENERAL QUESTION
June 06, 2017 06:42AM
/opt/piratebox/src:
total 68
-rw-r--r-- 1 alarm alarm 852 Mar 19 15:58 HEADER.txt
-rw-r--r-- 1 alarm alarm 778 Mar 19 15:58 README.txt
-rw-r--r-- 1 alarm alarm 939 Mar 19 15:58 forest.css
-rwxr-xr-x 1 alarm alarm 17871 Mar 19 15:58 forest.py
-rw-r--r-- 1 alarm alarm 191 Mar 19 15:58 kareha.pl
-rw-r--r-- 1 alarm alarm 12410 Mar 19 15:58 kareha_img_config.pl
-rw-r--r-- 1 alarm alarm 501 Mar 19 15:58 linux.example.minidlna.conf
-rw-r--r-- 1 alarm alarm 230 Mar 19 15:58 no_forum.html
-rw-r--r-- 1 alarm alarm 0 Mar 19 15:58 no_link.html
-rw-r--r-- 1 alarm alarm 749 Mar 19 15:58 openwrt.example.minidlna
-rw-r--r-- 1 alarm alarm 341 Mar 19 15:58 redirect.html.schema

/opt/piratebox/tmp:
total 12
-rw-r--r-- 1 nobody nogroup 0 Mar 19 16:08 break.log
-rw-r--r-- 1 nobody nogroup 142 Mar 19 16:08 error.log
-rw-r--r-- 1 root root 90 Mar 19 16:09 lease.file
-rw-r--r-- 1 root root 4 Mar 19 16:08 lighttpd.pid

/opt/piratebox/www:
total 40
lrwxrwxrwx 1 nobody nogroup 27 Mar 19 16:08 Shared -> /opt/piratebox/share/Shared
lrwxrwxrwx 1 nobody nogroup 26 Mar 19 16:08 board -> /opt/piratebox/share/board
drwxr-xr-x 2 nobody nogroup 4096 Mar 19 15:58 cgi-bin
-rw-rw-r-- 1 nobody nogroup 289 Mar 19 16:08 chat_content.html
lrwxrwxrwx 1 nobody nogroup 28 Mar 19 16:08 content -> /opt/piratebox/share/content
-rw-rw-r-- 1 nobody nogroup 346 Mar 19 16:09 diskusage.html
lrwxrwxrwx 1 root root 40 Mar 19 16:08 favicon.ico -> /opt/piratebox/share/content/favicon.ico
-rw-r--r-- 1 nobody nogroup 111 Mar 19 15:58 generate_204
-rwxr-xr-x 1 nobody nogroup 327 Mar 19 15:58 index.html
drwxr-xr-x 3 nobody nogroup 4096 Mar 19 15:58 library
-rw-r--r-- 1 nobody nogroup 15 Mar 19 15:58 ncsi.txt
-rw-r--r-- 1 root root 365 Mar 19 16:08 piratebox_config.json
-rwxr-xr-x 1 nobody nogroup 340 Mar 19 16:11 redirect.html
-rw-r--r-- 1 nobody nogroup 0 Mar 19 15:58 station_cnt.txt
drwxr-xr-x 3 nobody nogroup 4096 Mar 19 15:58 upload_handler

/opt/piratebox/www/cgi-bin:
total 20
-rwxrw-r-- 1 nobody nogroup 132 Mar 19 16:08 data.pso
-rwxr-xr-x 1 nobody nogroup 258 Mar 19 15:58 diskwrite.py
-rwxr-xr-x 1 nobody nogroup 313 Mar 19 15:58 psoread.py
-rwxr-xr-x 1 nobody nogroup 608 Mar 19 15:58 psowrte.py
-rwxr-xr-x 1 nobody nogroup 298 Mar 19 15:58 style.css

/opt/piratebox/www/library:
total 4
drwxr-xr-x 2 nobody nogroup 4096 Mar 19 15:58 test

/opt/piratebox/www/library/test:
total 4
-rw-r--r-- 1 nobody nogroup 127 Mar 19 15:58 success.html

/opt/piratebox/www/upload_handler:
total 4
drwxr-xr-x 2 nobody nogroup 4096 Mar 19 15:58 files

/opt/piratebox/www/upload_handler/files:
total 0

/opt/piratebox/www_content:
total 28
drwxr-xr-x 2 alarm alarm 4096 Mar 19 15:58 css
-rwxr-xr-x 1 alarm alarm 1406 Mar 19 15:58 favicon.ico
drwxr-xr-x 2 alarm alarm 4096 Mar 19 15:58 img
-rw-r--r-- 1 alarm alarm 5680 Mar 19 15:58 index.html
drwxr-xr-x 2 alarm alarm 4096 Mar 19 15:58 js
drwxr-xr-x 2 alarm alarm 4096 Mar 19 15:58 locales

/opt/piratebox/www_content/css:
total 24
-rw-r--r-- 1 alarm alarm 16268 Mar 19 15:58 jquery-ui.min.css
-rw-r--r-- 1 alarm alarm 5803 Mar 19 15:58 page_style.css

/opt/piratebox/www_content/img:
total 28
-rw-r--r-- 1 alarm alarm 2992 Mar 19 15:58 menu.png
-rw-r--r-- 1 alarm alarm 6607 Mar 19 15:58 piratebox-logo-horizontal-white.png
-rwxr-xr-x 1 alarm alarm 12637 Mar 19 15:58 piratebox-logo-small.png

/opt/piratebox/www_content/js:
total 152
-rw-r--r-- 1 alarm alarm 22082 Mar 19 15:58 jquery-ui.min.js
-rw-r--r-- 1 alarm alarm 85659 Mar 19 15:58 jquery.min.js
-rw-r--r-- 1 alarm alarm 32888 Mar 19 15:58 l10n.js
-rwxr-xr-x 1 alarm alarm 4843 Mar 19 15:58 scripts.js

/opt/piratebox/www_content/locales:
total 20
-rw-r--r-- 1 alarm alarm 2245 Mar 19 15:58 data.de.properties
-rw-r--r-- 1 alarm alarm 2029 Mar 19 15:58 data.en.properties
-rw-r--r-- 1 alarm alarm 2345 Mar 19 15:58 data.fr.properties
-rw-r--r-- 1 alarm alarm 3336 Mar 19 15:58 data.pt-br.properties
-rw-r--r-- 1 alarm alarm 157 Mar 19 15:58 locales.ini

I just switched to sd card some minutes back to enable me to switch back to usb but right now am stuck between the two I can't even open anything.



Edited 1 time(s). Last edit at 06/06/2017 06:45AM by junnot.
Re: GENERAL QUESTION
June 06, 2017 06:45AM
This is not everything... the following folders are missing:

bin
conf
init
python_lib
lib
rpi
share

You might want to increase the console buffer of your terminal...

edit: Works for me.... Probably an issue with your USB Stick, which might not be mounted correctly...



Edited 1 time(s). Last edit at 06/06/2017 06:46AM by Matthias.
Re: GENERAL QUESTION
June 06, 2017 07:10AM
how can I put share folder on usb stick again

it there any means
Re: GENERAL QUESTION
June 06, 2017 09:08AM
It is missing from your copy and paste output
Re: GENERAL QUESTION
June 07, 2017 11:39PM
I tried reflashing and I am still getting the same error with a different usb stick as I am currently speaking I can't ssh

what happens in piratebox if u hv a bad sd card?
I see the WiFi and the browser just keeps looping on redirecting

all the files in the content folder are still obyte
I am thinking it the card.