[Freedombox-discuss] boot partition full

2017-01-06 Thread permondes - sagen
My boot partition is full, so the latest kernel and uboot updates could
not be installed. The partition contains:

boot.cmd   config-4.8.0-1-armmp-lpae
initrd.img-4.7.0-1-armmp-lpae  System.map-4.7.0-1-armmp-lpae
vmlinuz-4.7.0-1-armmp-lpae
boot.scr   config-4.8.0-2-armmp-lpae
initrd.img-4.8.0-1-armmp-lpae  System.map-4.8.0-1-armmp-lpae
vmlinuz-4.8.0-1-armmp-lpae
config-4.3.0-1-armmp-lpae  dtbs   lost+found
System.map-4.8.0-2-armmp-lpae  vmlinuz-4.8.0-2-armmp-lpae
config-4.5.0-2-armmp-lpae  initrd.img-4.3.0-1-armmp-lpae
System.map-4.3.0-1-armmp-lpae  vmlinuz-4.3.0-1-armmp-lpae
config-4.7.0-1-armmp-lpae  initrd.img-4.5.0-2-armmp-lpae
System.map-4.5.0-2-armmp-lpae  vmlinuz-4.5.0-2-armmp-lpae

I think that with the kernel and initrd-updates the old version were not
removed. Can I simply remove them with "rm"? Just keeping the latest
version?

Dietmar

PS: anything I can do to prevent this?
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread Petter Reinholdtsen
[permondes - sagen]
> I think that with the kernel and initrd-updates the old version were not
> removed. Can I simply remove them with "rm"? Just keeping the latest
> version?

I would instead use 'dpkg -S /boot/v*' to identify packages to remove,
and 'apt purge ' to remove them.

-- 
Happy hacking
Petter Reinholdtsen

___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss


Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread permondes - sagen
Am Freitag, den 06.01.2017, 16:35 +0100 schrieb Petter Reinholdtsen:

> [permondes - sagen]
> > I think that with the kernel and initrd-updates the old version were not
> > removed. Can I simply remove them with "rm"? Just keeping the latest
> > version?
> 
> I would instead use 'dpkg -S /boot/v*' to identify packages to remove,
> and 'apt purge ' to remove them.
> 

I think the issue is related to the fact that I am still running Linux
4.3.0-1-armmp-lpae, but also kernels 4.5, 4.6, 4.8 are loaded.
How do I make FreedomBox use the other kernels? A simple restart did not
help.
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread permondes - sagen
Am Freitag, den 06.01.2017, 18:41 +0100 schrieb permondes - sagen:

> Am Freitag, den 06.01.2017, 16:35 +0100 schrieb Petter Reinholdtsen: 
> 
> > [permondes - sagen]
> > > I think that with the kernel and initrd-updates the old version were not
> > > removed. Can I simply remove them with "rm"? Just keeping the latest
> > > version?
> > 
> > I would instead use 'dpkg -S /boot/v*' to identify packages to remove,
> > and 'apt purge ' to remove them.
> > 
> 
> I think the issue is related to the fact that I am still running Linux
> 4.3.0-1-armmp-lpae, but also kernels 4.5, 4.6, 4.8 are loaded.
> How do I make FreedomBox use the other kernels? A simple restart did
> not help.

I removed packages linux-image 4.5 and 4.7 and purged the conf files of
4.5, 4.6 and 4.7. Now I have again about 40 MB free space on boot.
Apt did some configuration stuff with the 4.8 kernel, but after a
restart, it booted again into 4.3. How can I make it understand to use
the most recent kernel?
Which kernels are you running?
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread permondes - sagen
Am Freitag, den 06.01.2017, 20:25 +0100 schrieb permondes - sagen:

> Am Freitag, den 06.01.2017, 18:41 +0100 schrieb permondes - sagen:
> 
> > Am Freitag, den 06.01.2017, 16:35 +0100 schrieb Petter
> > Reinholdtsen: 
> > 
> > > [permondes - sagen]
> > > > I think that with the kernel and initrd-updates the old version were not
> > > > removed. Can I simply remove them with "rm"? Just keeping the latest
> > > > version?
> > > 
> > > I would instead use 'dpkg -S /boot/v*' to identify packages to remove,
> > > and 'apt purge ' to remove them.
> > > 
> > 
> > I think the issue is related to the fact that I am still running
> > Linux 4.3.0-1-armmp-lpae, but also kernels 4.5, 4.6, 4.8 are loaded.
> > How do I make FreedomBox use the other kernels? A simple restart did
> > not help.
> 
> I removed packages linux-image 4.5 and 4.7 and purged the conf files
> of 4.5, 4.6 and 4.7. Now I have again about 40 MB free space on boot.
> Apt did some configuration stuff with the 4.8 kernel, but after a
> restart, it booted again into 4.3. How can I make it understand to use
> the most recent kernel?
> Which kernels are you running? 

/boot/boot.cmd contains these 2 lines even after an 
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.8.0-2-armmp-lpae


> setenv kernel_file vmlinuz-4.3.0-1-armmp-lpae
> setenv initrd_file initrd.img-4.3.0-1-armmp-lpae

So it is still booting the 4.3 kernel, which is unknown to aptitude.

> ___
> Freedombox-discuss mailing list
> Freedombox-discuss@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

[Freedombox-discuss] Access-point shutting down every 30min

2017-01-06 Thread Dieter
Hello mailinglist!

I'm running the "testing"-version of the fbx.

Since an update of a package, i have not yet found out which one it was,
i notice the Access-point of the WiFi to shut down every 30 minutes.
The journal says:
wpa_supplicant[822]: wlan0: AP-STA-DISCONNECTED
wpa_supplicant[822]: wlan0: AP-STA-CONNECTED

To me, this looks like some kind of configuration issue, but so far i
have not found the responsible configuration/package.

Can maybe someone give me a hint?

Best regards,

Dieter

___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss


Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread James Valleroy
On 01/06/2017 12:41 PM, permondes - sagen wrote:
> Am Freitag, den 06.01.2017, 16:35 +0100 schrieb Petter Reinholdtsen:
>> [permondes - sagen]
>> > I think that with the kernel and initrd-updates the old version
>> were not
>> > removed. Can I simply remove them with "rm"? Just keeping the latest
>> > version?
>>
>> I would instead use 'dpkg -S /boot/v*' to identify packages to remove,
>> and 'apt purge ' to remove them.
>>
> I think the issue is related to the fact that I am still running Linux
> 4.3.0-1-armmp-lpae, but also kernels 4.5, 4.6, 4.8 are loaded.
> How do I make FreedomBox use the other kernels? A simple restart did
> not help.

What hardware are you running on?



signature.asc
Description: OpenPGP digital signature
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread Jonas Smedegaard
Quoting permondes - sagen (2017-01-06 22:54:29)
> Am Freitag, den 06.01.2017, 20:25 +0100 schrieb permondes - sagen:
> 
> > Am Freitag, den 06.01.2017, 18:41 +0100 schrieb permondes - sagen:
> > 
> > > Am Freitag, den 06.01.2017, 16:35 +0100 schrieb Petter
> > > Reinholdtsen: 
> > > 
> > > > [permondes - sagen]
> > > > > I think that with the kernel and initrd-updates the old version were 
> > > > > not
> > > > > removed. Can I simply remove them with "rm"? Just keeping the latest
> > > > > version?
> > > > 
> > > > I would instead use 'dpkg -S /boot/v*' to identify packages to remove,
> > > > and 'apt purge ' to remove them.
> > > > 
> > > 
> > > I think the issue is related to the fact that I am still running
> > > Linux 4.3.0-1-armmp-lpae, but also kernels 4.5, 4.6, 4.8 are loaded.
> > > How do I make FreedomBox use the other kernels? A simple restart did
> > > not help.
> > 
> > I removed packages linux-image 4.5 and 4.7 and purged the conf files
> > of 4.5, 4.6 and 4.7. Now I have again about 40 MB free space on boot.
> > Apt did some configuration stuff with the 4.8 kernel, but after a
> > restart, it booted again into 4.3. How can I make it understand to use
> > the most recent kernel?
> > Which kernels are you running? 
> 
> /boot/boot.cmd contains these 2 lines even after an 
> /etc/kernel/postinst.d/initramfs-tools:
> update-initramfs: Generating /boot/initrd.img-4.8.0-2-armmp-lpae
> 
> 
> > setenv kernel_file vmlinuz-4.3.0-1-armmp-lpae
> > setenv initrd_file initrd.img-4.3.0-1-armmp-lpae
> 
> So it is still booting the 4.3 kernel, which is unknown to aptitude.

Seems your hardware is ARM-based.  Commonly ARM-based hardware need the 
package flashkernel to copy installed kernel + initramfs to the 
different (hardware-specific) location where the bootloader looks for 
it.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss


[Freedombox-discuss] cannot access plinth config web server

2017-01-06 Thread Aaron Ferrucci
I'm setting up an APU1D4 with freedombox, and I've hit a snag. I'm unable
to access the plinth config page from another computer on the same LAN. I
browsed the mailing list archives, and found this thread:
"[Freedombox-discuss] Need help with getting start", back in Nov 2015. The
problem described there seems identical: I can ssh into the freedombox, and
ping works, but the web browser says "problem loading page...". Maybe more
to the point, from another computer on the lan,
%  wget http://192.168.1.137
gives
--2017-01-06 20:53:11--  http://192.168.1.137/
Connecting to 192.168.1.137:80... failed: No route to host.

Another bit of info: on the freedombox itself, if I do
% wget localhost:8000/plinth
I get a file, "plinth", which appears to be the admin interface (its
description is "Plinth administrative interface for the FreedomBox".

This shows that apache is running, and would serve up the admin page to
anything that could connect.

So it seems I'm having a firewall or other connectivity issue, and I had
high hopes that the list of experiments posted in the "Need help with
getting start" thread would help, but so far I have not been successful.
I'm going to post the output of the commands suggested in the thread, in
the hopes that the info is meaningful to an expert. Thanks for any help!

*root@freedombox:/home/aaronf# firewall-cmd --list-all-zones*
block
  target: %%REJECT%%
  icmp-block-inversion: no
  interfaces:
  sources:
  services:
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


dmz
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


drop
  target: DROP
  icmp-block-inversion: no
  interfaces:
  sources:
  services:
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


external (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services: ssh
  ports:
  protocols:
  masquerade: yes
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


home
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: ssh mdns samba-client dhcpv6-client
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


internal
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: ssh mdns samba-client dhcpv6-client ntp
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: ssh dhcpv6-client
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


trusted
  target: ACCEPT
  icmp-block-inversion: no
  interfaces:
  sources:
  services:
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


work
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: ssh dhcpv6-client
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:


*root@freedombox:/home/aaronf# nmcli device*
DEVICE  TYPE  STATECONNECTION
eth0ethernet  connectedFreedomBox *
eth1ethernet  unavailable  --
eth2ethernet  unavailable  --
lo  loopback  unmanaged--

---
root@freedombox:/home/aaronf# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

*root@freedombox:/home/aaronf# systemctl status apache2*
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor
preset:
   Active: active (running) since Fri 2017-01-06 20:31:34 PST; 40min ago
 Main PID: 666 (apache2)
   CGroup: /system.slice/apache2.service
   ├─666 /usr/sbin/apache2 -k start
   ├─676 /usr/sbin/apache2 -k start
   ├─677 /usr/sbin/apache2 -k start
   ├─678 /usr/sbin/apache2 -k start
   ├─679 /usr/sbin/apache2 -k start
   └─680 /usr/sbin/apache2 -k start

Jan 06 20:31:33 freedombox systemd[1]: Starting The Apache HTTP Server...
Jan 06 20:31:34 freedombox systemd[1]: Started The Apache HTTP Server.
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] cannot access plinth config web server

2017-01-06 Thread Sunil Mohan Adapa
On 01/07/2017 10:43 AM, Aaron Ferrucci wrote:
[...]
> This shows that apache is running, and would serve up the admin page
> to anything that could connect.
> 
> So it seems I'm having a firewall or other connectivity issue, and I
> had
[...]

You are right about the firewall issue.  It appears that 'http' and
'https' services are not services allowed by firewall.  Running the
following will fix the issue:

firewall-cmd --zone=external --add-service=https
firewall-cmd --zone=internal --add-service=https
firewall-cmd --zone=external --add-service=http
firewall-cmd --zone=internal --add-service=http

firewall-cmd --zone=external --permanent --add-service=https
firewall-cmd --zone=internal --permanent --add-service=https
firewall-cmd --zone=external --permanent --add-service=http
firewall-cmd --zone=internal --permanent --add-service=http

However, there is a deeper problem.  The script
/usr/lib/freedombox/first-run.d/90_firewall should have done this for
you automatically.  If it didn't, then it means the freedombox-setup's
first boot script may not have executed at all.  Did you use the
amd64 FreedomBox image to setup your APU1D4?  Did you give enough time
during the first boot to run the script and do a reboot?  If you have
installed freedombox-setup from Debian, did you run setup script?

-- 
Sunil



signature.asc
Description: OpenPGP digital signature
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] boot partition full

2017-01-06 Thread Sunil Mohan Adapa
On 01/07/2017 05:43 AM, Jonas Smedegaard wrote:
[...]
>> So it is still booting the 4.3 kernel, which is unknown to aptitude.
> 
> Seems your hardware is ARM-based.  Commonly ARM-based hardware need the 
> package flashkernel to copy installed kernel + initramfs to the 
> different (hardware-specific) location where the bootloader looks for 
> it.

Indeed you need flash-kernel package.

If you have boot.cmd instead of boot.scr and also don't have
flash-kernel package, you must upgrading and running a FreedomBox image
from many releases ago.

To fix the situation,

1. Take backup of your SD card.

2. Make sure /boot is ext2fs and not vfat.

3. Install flash-kernel.  This will create the proper /boot/boot.scr
file with a line like "setenv fk_kvers '4.8.0-2-armmp-lpae'".

4. Optionally set /etc/flash-kernel/machine to "Olimex
A20-OLinuXino-LIME2" (depending on your board).  This should not be
required as flash-kernel will properly detect the machine when you are
running it from within the machine.

4. Move /boot/boot.cmd to /boot/boot.cmd.bak.

5. Reboot and check that boot happens properly.

If you already have flash-kernel package and /boot/boot.scr, then simply
moving /boot/boot.cmd should fix the situation.

-- 
Sunil



signature.asc
Description: OpenPGP digital signature
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] cannot access plinth config web server

2017-01-06 Thread Aaron Ferrucci
Thanks for your response,  Sunil.

My method was to install debian (jessie) using the instructions here:
https://github.com/ssinyagin/pcengines-apu-debian-cd, upgrade it to
"testing" and then install freedombox-setup.

Your questions led me back to my notes, and I see that I did have errors
related to ldapd during freedombox-setup install, and then I may have
failed to run setup afterwards. In any case, when I run setup now, I get
some exceptions. I'm not sure if it's useful, but I'll paste the output of
/usr/lib/freedombox/setup below.

I think my next step is to revert to debian jessie, and start the process
over, taking better notes as I go, in the hopes of being able to ask a
better question. I'll do that unless there's a more direct approach.
thanks again,
-Aaron




*root@freedombox:/home/aaronf# /usr/lib/freedombox/setup >
freedombox-setup.log 2>&1root@freedombox:/home/aaronf# cat
freedombox-setup.log*running /usr/lib/freedombox/setup.d/01_etckeeper-pre
info: Not setting git user.email.
running /usr/lib/freedombox/setup.d/86_plinth
Configuring Apache for Plinth...
Module headers already enabled
Module proxy already enabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Module rewrite already enabled
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
Conf javascript-common already enabled
Site plinth already enabled
Site plinth-ssl already enabled
Done configuring Apache for Plinth.
Running Plinth setup...
[2017-01-06 22:47:50,689] plinth.__main__ INFO Configuration loaded
from file - /etc/plinth/plinth.config
[2017-01-06 22:47:50,691] plinth.__main__ INFO Script prefix - /plinth
[2017-01-06 22:47:51,070] plinth.module_loader INFO Module load order -
['apps', 'xmpp', 'transmission', 'quassel', 'system', 'users', 'snapshot',
'repro', 'dynamicdns', 'first_boot', 'owncloud', 'firewall', 'upgrades',
'radicale', 'help', 'datetime', 'openvpn', 'names', 'tor', 'config',
'networks', 'disks', 'deluge', 'mumble', 'roundcube', 'shaarli',
'monkeysphere', 'diagnostics', 'minetest', 'avahi', 'power', 'ikiwiki',
'letsencrypt', 'pagekite', 'security', 'ttrss', 'privoxy']
[2017-01-06 22:47:51,185] plinth.actions INFO Executing command -
['sudo', '-n', '/usr/share/plinth/actions/firewall',
'get-enabled-services', '--zone', 'external']
[2017-01-06 22:47:53,521] plinth.modules.names INFO Added domain
unassigned of type domainname with services ['ssh']
[2017-01-06 22:47:53,556] plinth.actions INFO Executing command -
['sudo', '-n', '/usr/share/plinth/actions/pagekite', 'is-disabled']
Unit pagekite.service could not be found.
[2017-01-06 22:47:55,015] plinth.actions INFO Executing command -
['sudo', '-n', '/usr/share/plinth/actions/pagekite', 'get-kite']
[2017-01-06 22:47:56,480] plinth.setup   INFO Running setup for
modules, essential - True, selected modules - None
[2017-01-06 22:47:56,488] plinth.setup   INFO Running module setup -
users
[2017-01-06 22:47:58,008] plinth.setup   INFO Running step for module -
users, step - post
[2017-01-06 22:47:58,009] plinth.actions INFO Executing command -
['sudo', '-n', '/usr/share/plinth/actions/users', 'setup']
[2017-01-06 22:48:04,339] plinth.actions ERRORError executing command -
['sudo', '-n', '/usr/share/plinth/actions/users', 'setup'], , Use of
uninitialized value $item in hash element at
/usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
invoke-rc.d: policy-rc.d denied execution of stop.
  Moving old database directory to /var/backups:

  Backup path /var/backups/unknown-2.4.44+dfsg-2.ldapdb exists. Giving up...
Use of uninitialized value $item in hash element at
/usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
Use of uninitialized value $item in hash element at
/usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
invoke-rc.d: policy-rc.d denied execution of restart.
Use of uninitialized value $item in hash element at
/usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
debconf: DbDriver "_ENV_stack": unable to save changes to:
libnss-ldapd/nsswitch
ldap_add: Server is unwilling to perform (53)
additional info: no global superior knowledge
Traceback (most recent call last):
  File "/usr/share/plinth/actions/users", line 84, in
create_organizational_unit
stdout=subprocess.DEVNULL, check=True)
  File "/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ldapsearch', '-Q', '-Y',
'EXTERNAL', '-H', 'ldapi:///', '-s', 'base', '-b', 'ou=users,dc=thisbox',
'(objectclass=*)']' returned non-zero exit status 32

During handling of the above exception, another exception occurred:

Traceback (most recent call last):