Re: Debian 11 on Sheevaplug?

2022-06-08 Thread Philip Hands
Gilles  writes:

> On 08/06/2022 00:54, Rick Thomas wrote:
>> On Tue, Jun 7, 2022, at 6:32 AM, Gilles wrote:
>>> It ends with a single error : "partman: mkswap: can't open '/dev/sda5':
>>> No such file or directory":
>>>
>>> https://pastebin.com/raw/h0beZWnP
>> It looks like /dev/sd5 doesn't actually exist.  This is probably because the 
>> USB stick has an MBR partition table which by default only provides 
>> partitions 1-4.  You may need to pre-partition it with a GUID partition 
>> table.
>>
>> Rick
>
> Good call. After using Windows' diskpart*, I removed the MBR and 
> converted to GPT. The installer went one step further… and failed:
>
> https://postimg.cc/ns5XMQL7
>
> Here's the log:
>
> https://pastebin.com/raw/htYCmhS3

The ``bad block bitmap checksum'' relating to /dev/sda2, followed by
``Remounting filesystem read-only'' seems to be the source of your
problem.

After that point nothing's going to work because your new root
filesystem (/target/) is faulty, and is now read-only, so there's no way
to create the /target/boot directory, so the mount of the boot partition
fails.

My guess would be an underlying hardware fault on whatever /dev/sda2 is.

I don't suppose there's any chance it's a fake USB stick - see:

  http://oss.digirati.com.br/f3/  (packaged for Debian as ``f3'')

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: loss of synaptic due to wayland

2019-07-10 Thread Philip Hands
too).  these are what i use:
>
> for source stuff:
>  * apt-get source {package} - gets the *source code* of a package
>  * apt-get build-dep {package} - gets you the (full) build
> dependencies required to *make* a source package (with
> "dpkg-buildpackage)
>
> those are typically best done in a chroot, for safety.
>
>
> to find out which package has a file installed:
> * grep filename /var/lib/dpkg/info/*.list

or:
  dpkg -S $filename

I find this rather useful too:
  dpkg -L $package 

> general package installing process:
>  * apt-cache search "keyword(s)"
>  * apt-cache show {package} - usually pipe this into more (or less)
>  * apt-get install {package} - just one.
>  * apt-get --purge remove {package} - just one.

all four of those functions are available via the apt command these days.

>  these are [almost certainly] the commands that synaptics runs,
> behind-the-scenes.  for me, GUIs just irritate me beyond belief,
> because they typically require moving hands off the keyboard and onto
> the mouse.  i even use fvwm2 with "mouse-over equals window-focus"
> very deliberately to minimise clicks. this all because i have
> recurring bouts of RSI...

That's OK if you happen to have gone to the effort of learning what you
need to type to get what you want done, but even then you still need to
put some effort into keeping up to date if you want to get hold of new
features.

For instance, I know there's a better search thing for finding packages
than 'apt search ...' because I've seen it done, but I can never remember
it -- you get that sort of improvement for free if it gets added to
whatever UI you were using anyway.

Sadly, I don't have suggestions for better GUI apt-things, as I too
favour the CLI -- I'd guess that KDE has something competent.

There's 'goplay' for finding games and the like (it has other flavours,
such as 'gonet' for things tagged as networky rather than gamey, in the
package), but it's not general purpose, or featureful.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: Is there a way to make the pi use swap?

2018-09-17 Thread Philip Hands
Gene Heskett  writes:

> On Monday 17 September 2018 03:18:09 Philip Hands wrote:
>
>> Gene Heskett  writes:
>> > On Saturday 15 September 2018 16:16:24 Jeffrey Walton wrote:
>> >> On Fri, Sep 14, 2018 at 8:16 PM, Alan Corey 
>> >
>> > wrote:
>> >> > My /etc/fstab just has
>> >> >  /var/swap2 none swap sw 0 0
>> >> > That's for a swap file which was made by dding 0s into it, then
>> >> > running mkswap.
>> >> >
>> >> > You'd replace /var/swap2 with /dev/sda2
>> >> >
>> >> > Sounds like you're just not loading it from your fstab.  Should
>> >> > load every boot.  Nothing new or tricky there.
>> >>
>> >> In addition, it also helps to set swappiness to a low value, like 1
>> >> or 3, on modern kernels. That has the effect of telling the kernel
>> >> to prefer to keep things in memory.
>> >>
>> >> With swapon and low swappiness I can actually run a C++ compiler
>> >> with multiple jobs and without an OOM kill.
>> >>
>> >> Jeff
>> >
>> > And pray tell, where does one set that swappiness?
>> > Sounds like something that could be handy.
>>
>> When wondering that sort of thing, I generally try this sort of
>> command to find out:
>>
>>   sudo find /sys /proc -name \*swappiness\* | less
>>
>> which in this case leads you quite quickly to /proc/sys/vm/swappiness
>>
>> which you can do things like:
>>
>>   cat /proc/sys/vm/swappiness
> currently 60
>> and
>>
>>   echo 1 > /proc/sys/vm/swappiness
>>
>> with.  Of course, that will only persist until the next reboot, so
>> you'd then want to set things in /etc/sysctl.* to make things
>> permanent.
>>
>> There are man pages for sysctl.d, sysctl.conf and sysctl, and also a
>> README in /etc/sysctl.d/
>>
>> Something like this (as root) would do the trick:
>>
>>   echo vm.swappiness=1 > /etc/sysctl.d/local-swapiness.conf
>>
>> (that's all true on Debian -- no idea how much of that applies for
>> *bian derivatives).
>>
> Like jessie for raspbian? Seems to be there, and that file/contents has 
> now been created. So we'll see if it helps.
>> Cheers, Phil.
>
> Thank you very much, Phil. But this leads to two more questions, the 
> first being:
>
> Can something along this general line by used to make the kernel 
> recognize at boot time, the settings contained in the (XFCE) 
> menu>preferences>keyboard-and-mouse? I have a pi-3b running jessie that 
> has a 500 cps keyboard repeat UNTIL this preference adjuster is run, 
> then closed w/o changing anything.

No idea I'm afraid -- I don't have any RaspberryPi stuff (as I don't
appreciate the binary blobs) and this seems like it's probably rather
specific to the equipment you are using.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: Is there a way to make the pi use swap?

2018-09-17 Thread Philip Hands
Gene Heskett  writes:

> On Saturday 15 September 2018 16:16:24 Jeffrey Walton wrote:
>
>> On Fri, Sep 14, 2018 at 8:16 PM, Alan Corey  
> wrote:
>> > My /etc/fstab just has
>> >  /var/swap2 none swap sw 0 0
>> > That's for a swap file which was made by dding 0s into it, then
>> > running mkswap.
>> >
>> > You'd replace /var/swap2 with /dev/sda2
>> >
>> > Sounds like you're just not loading it from your fstab.  Should load
>> > every boot.  Nothing new or tricky there.
>>
>> In addition, it also helps to set swappiness to a low value, like 1 or
>> 3, on modern kernels. That has the effect of telling the kernel to
>> prefer to keep things in memory.
>>
>> With swapon and low swappiness I can actually run a C++ compiler with
>> multiple jobs and without an OOM kill.
>>
>> Jeff
>
> And pray tell, where does one set that swappiness?
> Sounds like something that could be handy.

When wondering that sort of thing, I generally try this sort of command
to find out:

  sudo find /sys /proc -name \*swappiness\* | less

which in this case leads you quite quickly to /proc/sys/vm/swappiness

which you can do things like:

  cat /proc/sys/vm/swappiness

and

  echo 1 > /proc/sys/vm/swappiness

with.  Of course, that will only persist until the next reboot, so you'd
then want to set things in /etc/sysctl.* to make things permanent.

There are man pages for sysctl.d, sysctl.conf and sysctl, and also a
README in /etc/sysctl.d/

Something like this (as root) would do the trick:

  echo vm.swappiness=1 > /etc/sysctl.d/local-swapiness.conf

(that's all true on Debian -- no idea how much of that applies for *bian
derivatives).

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: rock64, date is UTC, how to make EST (s/b UTC-5)

2018-07-23 Thread Philip Hands
John Holland  writes:

>>> shot. It can't be any worse of a C.F. than the ayufan builds with its
>>> pre-allocated user 1000.
>> 
>> Although having a preallocated user 1000 is the standard "Debian Way", the 
>> objective being that you can telnet (later SSH) in using that user and then  
>> sudo su  to get root (fouled up on some versions that don't add user 1000 to 
>> sudoers). For quite a long time 
>
> The same effect can be achieved by supplementing the user in question
> with the group sudo. With that there is no need to edit sudoers.

Presumably the system had a root password set at first install.  That is
what normally determines whether the first user created at install time
is added to the sudo group or not -- having no root password provokes a
user with sudo access, so that there is still some way of becoming root.

If you're doing it by hand, just run this as root (assuming a user 'phil'):

  adduser phil sudo

As for the question of remote root ssh access -- by default in the
debian ssh package that is now only allowed using keys, rather than
password, so you need to copy your .pub over to:

  /root/.ssh/authorized_keys

on the target system to get in as root.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: aptitude is blowing up again.

2018-02-04 Thread Philip Hands
On Sun, 04 Feb 2018, Gene Heskett <ghesk...@shentel.net> wrote:
> On Saturday 03 February 2018 23:27:11 Paul Wise wrote:
>
>> On Sun, Feb 4, 2018 at 10:14 AM, Gene Heskett wrote:
>> > It turns that I am not supposed to be running aptitude as root.
>>
>> If you want it to make changes to the system you must run it as root.
>>
>> > but my sudo password doesn't give me root permissions
>> > when its time to actually do something.
>>
>> That seems quite unlikely, what error message does it give?
>
> Says its not root's pw.

It seems that it's running su not sudo, and hence is expecting root's
password, rather than your password.

As someone who uses apt (or apt-get on older systems) running as root,
I'm afraid I've no idea what might entice aptitude to choose su vs. sudo
in this case, sorry.

Running aptitude as root from the start is fine though.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: Why so little info on the Pocket Beagle?

2017-10-05 Thread Philip Hands
Nigel Sollars <nsoll...@gmail.com> writes:

> Um no I dont think so,
>
> Here is why,  as these kernels by Robert have worked real well with my BBB
> Rev B.  I have had on odd occasions a kernel panic, allowing unsuspected
> folk to this end would I think create useless noise.

That sounds like a reason to set up an additional repository, containing
that kernels, and encouraging people to use it.

Relying on a git pull strikes me as a (perhaps small) security risk in
comparison.

If someone wants to compromise such systems, they can set up a git repo
with trojaned kernels, pull some DNS ticks, and get you to pull from
them instead.  If you instead set up a signed repo, then the signatures
wouldn't match, so apt would refuse the upgrade.  (reprepro makes
setting up and maintaining such a repo pretty easy, and if that's
overkill there are other alternatives available)

If the problem is actually getting upgrades of the kernel that you were
not wanting, then it is generally possible to specify the behaviour you
want using "apt pinning" (see the apt_preferences(5) man page)

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: contemplating conversion of an r-pi3b based system to a rock64

2017-08-28 Thread Philip Hands
Gene Heskett <ghesk...@shentel.net> writes:

> On Monday 28 August 2017 07:26:54 Philip Hands wrote:
>
>> Gene Heskett <ghesk...@shentel.net> writes:
>>
>> ...
>>
>> >> There are about a dozen SDR programs for WIindows, almost nothing
>> >> for Unix.
>>
> Somebodies quoteing is broken, I didn't write that. I believe Alan Corey 
> did.

Ah, yes, you're right -- I deleted just a bit too much context before
trimming the quote atributions to match -- sorry for any confusion.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: contemplating conversion of an r-pi3b based system to a rock64

2017-08-28 Thread Philip Hands
Gene Heskett <ghesk...@shentel.net> writes:

...
>> There are about a dozen SDR programs for WIindows, almost nothing for
>> Unix.

I've not really bothered with HAM stuff since I was playing with Packet
Radio before dial-up Internet became a thing, but I find your claim that
there's nothing much for Unix,  suspicious:

Long ago (early-mid 90s) part of what caused people to be interested in
Debian was the prospect of a HAM specific version (which didn't quite
happen, since Bruce Perens & Bdale Garbee got busy with Debian in general).

More recently:

  https://www.gnuradio.org/

Also, the likes of this:

  https://events.ccc.de/2015/07/10/rad1o/

I know for instance that a decade or more ago Bdale was using SDR on
Linux (or at least talking about someone he knew, in which case Bdale
probably set it up) to record the whole amateur band in one go.

All of which suggest that there's more than nothing going on in the
world of *nix SDR.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: d-i on Firefly-rk3288

2016-12-12 Thread Philip Hands
gt;  ... OR
>
>  you could ask around to see if someone else has a working (older or
> newer) debian-installer from debian/testing or sid that is known to
> work and they can provide a copy online for you.
>
>  lots of options, if you're prepared to be flexible.
>
> l.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


Re: u-boot images for OpenRD

2016-01-10 Thread Philip Hands
Martin Michlmayr <t...@cyrius.com> writes:

> * Albert ARIBAUD <albert.u.b...@aribaud.net> [2016-01-01 13:58]:
>> If there is anything to be changed on mainline U-Boot to make it work,
>> let me know.
>
> Albert, since you so kindly offered your help, there is indeed
> something you could do.  The Debian image of u-boot used to create
> images for the OpenRD-Ultimate.  This was dropped since it exceeded
> some size limit [1] and because nobody offered to test it. (drEagle
> had some ideas on how to fix it but I'm not sure if this has been
> fixed upstream or not.)
>
> I see that you've re-introduced OpenRD support upstream, including
> support for OpenRD-Base and OpenRD-Client.  Maybe you can help
> with getting OpenRD u-boot images back into Debian.
>
> Rick Thomas has an OpenRD-Base and is keen to test it.  Philip Hands
> may have a OpenRD-Ultimate somewhere.  (It seems Rick has an
> Ultimate, too.)

I do have an OpenRD-Ultimate, and I'm happy and interested to ensure
that Debian continues to work on it, so if you want me to test things,
just tell me what.

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,GERMANY


signature.asc
Description: PGP signature


2.2 CD images appearing

2000-08-14 Thread Philip Hands
The 2.2 CD images are available from cdimage.debian.org.

At present, I'm not happy about the alpha  sparc images, so until the
images get linked to the 2.2_rev0 directory tree treat them as
pre-release still.

The rest seemed to build fine though, and even if the alpha or sparc
CDs change, they will be pretty close to what's there now, so rsyncing
should be relatively quick.

Remember to use the -H option to rsync to preserve the hard-links
between the potato_test  2.2_rev0 images, otherwise you'll waste a
load of bandwidth and disk space.

The full CD mirror now takes a little over 14GB

ALPHA Problems:

  tools/boot/potato/post-boot-alpha was not executable, so I'm
  rebuilding that now.

SPARC Problems:

  I forgot that the sparc build needs to be done as root (or at least
  fakeroot) so it can create the device files it needs, so I'll be
  rebuilding that next.

ARM Problems:

  There are no Release files --- does anyone care?

If you're not actually running a mirror, please wait until this stuff
starts appearing at mirrors, rather than going straight to
cdimage.debian.org, otherwise it'll never get to the mirrors.

If you are running a mirror, then please use the pseudo-image-kit if
at all possible, and if it's not possible then use a mirror that has
more bandwidth (like sunsite.org.uk for example, who already have the
binary-i386-1 and 1_NONUS images available)

If people could mention when they've got copies of the images, so that
others can start mirroring from them, it might help spread the load
more (cdimage.d.o is only a P166, so cannot stand too many rsyncs).

If things get out of hand, I may switch the password checks back on
until the excitement dies down, so if that happens, and you're running
a top level mirror, and you've not got a password, mail me.

Cheers, Phil.