Gratissprachkurs in England oder Malta

2002-10-15 Thread John Doe
Title: E-mail message content




Habe gerade erfahren, dass es bei www.world-of-english.com einen Gratissprachkurs (inkl. Unterkunft)in England oder Malta zu ergattern gibt. Man muss bei der Buchung nur dass keyword "Lehrer2002" angeben. Frag aber vor der Reservierung zur Sicherheit noch mal nach.

 

Viele Gruesse

 

John




Linux Installation Question

1999-07-11 Thread John Doe
Hello,

I am interested in installing the Linux OS on my Compaq Presario 2266. I 
also wish to retain my current OS, Windows 98. I have been to your FTP site but 
I am confused as to what files I need and where to place them to get Linux 
running. Your assistance is appriciated.



Get your Free E-mail at http://TheWarIndustries.zzn.com
___
Get your own Web-based E-mail Service at http://www.zzn.com


sarge: gdm login screen: font too small

2005-06-11 Thread john doe
I did a standard installation, somehow the font on gdm login screen is
so small it's almost unrecognizable. But once I login, all the fonts
are in reasonable sizes. Anyone else has a similar problem? I searched
around and couldn't find any answer. The gdm.conf file never
explicitly specify screen resolution or anything like that.
-jd



Re: sarge: gdm login screen: font too small

2005-06-11 Thread john doe
I don't have that file, not even /etc/X11/xdm directory. Do I really
need to install xdm package to adjust it? I thought we are talking
about gdm here.
-jd


On 6/12/05, B. L. Jilek <[EMAIL PROTECTED]> wrote:
> john doe wrote:
> > I did a standard installation, somehow the font on gdm login screen is
> > so small it's almost unrecognizable. But once I login, all the fonts
> > are in reasonable sizes. Anyone else has a similar problem? I searched
> > around and couldn't find any answer. The gdm.conf file never
> > explicitly specify screen resolution or anything like that.
> 
> The file is /etc/X11/xdm/Xservers
> 
> The line that starts with:
> :0 local /usr/X11R6/bin/X
> 
> Add "-dpi 100" without the quotes to it. Restart gdm.
> 
> --
> B. L. Jilek 52597432 | ICQ: 83785391
> [EMAIL PROTECTED]|Safer, Faster, | Yahoo: bljilek
> http://crowbyte.dnsalias.com | AOL: brianleejilek
> 
> 
> 
>



sarge: firefox: menu item turns blank when cursored over

2005-06-12 Thread john doe
After installing  "mozilla-firefox" package, go into gnome
desktop, launch firefox, the menu item turns blank (actually white)
when you move the cursor over it. See screenshot here:
  http://picserver.student.utwente.nl/view_image.php/66C1UCTV882Q/picserver.png
This problem doesn't happen to other gnome applications such as gedit.
Anybody else has a similar problem? And any clue how to fix it? I
probably should just download a off-shelf copy directly from
mozilla.org.

-jd



Re: sarge: firefox: menu item turns blank when cursored over

2005-06-12 Thread john doe
You are right -  after switching to another theme (I settled on
SphereCrystal, not bad ;) , the problem disappeared. Thanks for the
tip Sven!
-jd

On 6/12/05, Sven Arvidsson <[EMAIL PROTECTED]> wrote:
> john doe wrote:
> > After installing "mozilla-firefox" package, go into gnome desktop, launch
> > firefox, the menu item turns blank (actually white) when you move the cursor
> > over it. See screenshot here:
> > http://picserver.student.utwente.nl/view_image.php/66C1UCTV882Q/picserver.png
> > This problem doesn't happen to other gnome applications such as gedit.
> > Anybody else has a similar problem? And any clue how to fix it? I probably
> > should just download a off-shelf copy directly from
> > mozilla.org<http://mozilla.org>
> 
> It's a bug in the "Simple" theme for GNOME, known already I think. Try
> changeing to a different one, gtk2-engines-clearlooks is my favourite
> at the moment :)
> 
> --
> Cheers,
> Sven Arvidsson
> http://www.whiz.se
> PGP Key ID 760BDD22
> 
> 
> BodyID:1994605.2.n.logpart (stored separately)
> 
>



sarge: post-install sata drive cause startup failure

2005-06-12 Thread john doe
Here is my installation procedure:
1. Install Sarge with a single IDE drive attached to the machine;
2. after a success install, attached a SATA



Re: sarge: post-install sata drive cause startup failure

2005-06-12 Thread john doe
Sorry, I triggered the send button before finishing. Here is the full story:

My installation procedure is as follows:
1. Install Sarge with a single IDE drive attached to the machine;
2. after a successful installation, attached a SATA drive the machine,
did cfdisk/mke2fs, added into /etc/fstab to make /dev/sda1 mount at
startup.
3. restarted machine again, here is the error message (roughly):

Device /dev/sda1 doesn't exist or invalid
fsck failed. Please repair manually.
CONTROL-D will exit from this shell and continue system startup

Yet if I remove the line in /etc/fstab, and the startup will be okay
and I can manually do "fdisk -l /dev/sda" and mount /dev/sda1 without
any problem. So my suspicion is that the related ata kernel modules
are not loaded when fsck tries to look into the drive. I'm also
suspecting this problem wont happen if the sata drive were present at
the time of installing sarge. So now how can fix this problem at the
post-install stage? I'll probably looking the modprobe family of
tools...

-jd



Re: Ifconfig

2005-06-12 Thread john doe
I have no insight into this particular problem but the config file
/etc/network/interfaces might give you some clue?
-jd

On 6/13/05, David R. Litwin <[EMAIL PROTECTED]> wrote:
> I have set my ifconfig (via pppoeconf) to start up a ppp and eth0
> connection.
>  
>  My ifconfig, when working properly, reads thus:
>  
>  ifconfig
>  eth0  Link encap:Ethernet  HWaddr 00:50:DA:B8:AE:EA
>inet6 addr: fe80::250:daff:feb8:aeea/64 Scope:Link
>UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>RX packets:14311 errors:0 dropped:0 overruns:0 frame:0
>TX packets:12377 errors:0 dropped:0 overruns:0 carrier:0
>collisions:1 txqueuelen:1000
>RX bytes:8317950 (7.9 MiB)  TX bytes:1993074 (1.9 MiB)
>Interrupt:9 Base address:0xb800
>  
>  loLink encap:Local Loopback
>inet addr:127.0.0.1  Mask:255.0.0.0
>inet6 addr: ::1/128 Scope:Host
>UP LOOPBACK RUNNING  MTU:16436  Metric:1
>RX packets:7 errors:0 dropped:0 overruns:0 frame:0
>TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:0
>RX bytes:390 (390.0 b)  TX bytes:390 (390.0 b)
>  
>  ppp0  Link encap:Point-to-Point Protocol
>inet addr:65.94.84.97  P-t-P:64.230.197.65  Mask:255.255.255.255
>UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
>RX packets:11365 errors:0 dropped:0 overruns:0 frame:0
>TX packets:11273 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:3
>RX bytes:7840851 (7.4 MiB)  TX bytes:1677456 (1.5 MiB)
>  
>  The problem is two-fold:
>  
>  One: When I boot up in to Linux, it automatically connects me - twice. I
> have to give "ifconfig ppp1 down" so that I've only one ppp connection. How
> do I stop ppp1 from existing and have only ppp0?
>  
>  Two: I need to have lo up when I boot up so that my printer works. It used
> to do this: But no more. I must do "ifconfig lo 127.0.0.1 up" for lo to go
> up. How do I get it to do this on its own?
>  
>  I think it has to do with the Networking files, yes?
>  
>  Thank you in advance.
> 
> -- 
> —Moose Moose Jam Sausage Meow-Mix.
> —My Hover-Craft is Full of Eels.
> —[...]and that's the he and the she of it.


Re: Anyone having trouble upgrading Helix-Gnome?

2000-05-27 Thread John Doe
> Phillip Deackes <[EMAIL PROTECTED]> wrote:
> >   
> > Grendel - in the end I went to the Helix-Gnome ftp site - same
address   
> > as the one in your /etc/apt/sources.list - spidermonkey.helix.com,
> > except that it is ftp rather than http.   
> 
>   
> 
> Ooops, sorry Mark - I just noticed your name is not Grendel! There  
was   
That's ok :)))
  
> me thinking Grendel was rather a nice name too!!
Well, that's what I think as well :)) - read "Beowulf" to learn more  
who Grendel was. Also 
John Gardner's "Grendel" is a very good book based on the former :)   
  
TTYL, 
marek :)  



Re: Anyone having trouble upgrading Helix-Gnome?

2000-05-27 Thread John Doe
> [EMAIL PROTECTED] (Marek Habersack) wrote: 
> >   
> > No, I've got the same problem - the helix servers reset the   
connection
> > and   
> > the transfer rate is 7Kb/s tops (compared to 80Kb/s previously). I
> > suspect   
> > this is a problem with their servers being overloaded after   
announcing
> > R2
> > with GNOME 1.2. Enough to say that I've been trying to download   
30Mb  
> > for the   
> > last 18 hours...  
> 
> Grendel - in the end I went to the Helix-Gnome ftp site - same  
address   
> as the one in your /etc/apt/sources.list - spidermonkey.helix.com,  
> except that it is ftp rather than http. I manually downloaded the   
couple
> of files causing apt-get problems and put them into 
[snip]
I tried both ftp and http access to spidermonkey and ftp access to
ftp.helixcode.com 
(a different machine) - the effect was remote connection reset on 
larger files... But, about
1:00 am CET I was able to download everything except gtk-themes... But
the connection
still wasn't very good :((
  
> BTW the new version of Helix-Gnome has the panel applets in a   
package   
> called 'gnome-applets' which the upgrade didn't install for me. 
It installed just fine on my machines... (Debian/woody)   
  
> Helix Gnome is looking *so* cool - it makes Windows look very old   
and   
> clunky. I just love it. 
Gotta agree with that :)), although I don't use WIndows :))   
  
mare  



Strange behavior

2001-07-06 Thread John DOE
Hello, I am a new debian user and someone still learning linux. I have a small 
problem. My company is using a firewall created with Ipchains of 3 zones ( dmz 
- local - internet ) on a Intel Pentium Pro processor machine running Debian 
2.2r3 on it ( base system + mc + tcpdump + nano ).  Strangely enough one of the 
interfaces ( the internet interface ) completely at arbitrary times start 
sending packets to itself. Packet proto=1 sourceip:3 rd port to sourceip:1 st 
port s=0xc0 f=0x t=255 log says. As far as I understand from this log the 
packet sent is an ICMP packet from port 3 to tcpmux port ( icmp's have ports ? 
knew they did not ) of size 13 hexadecimals not fragmented and time to live is 
255. But this is not possible. 1st no one can use this machine as a terminal 
and no one can telnet to it's interfaces. 2nd rp_filter is set to 1 for all 
interfaces ( in case of a spoof attack ) . 
Can anyone help me about that ? I am sure there is something I do not know but 
what is it ?  

Thanx
John.

_
Get your free e-mail account: http://www.petekmail.com



Re: Strange behavior

2001-07-06 Thread John DOE
Is this a very rare condition or am I asking this at the wrong mailing list 
since no one showed a little bit of interest ? If so could you please tell me 
where I should ask this at ? 
--- John DOE <[EMAIL PROTECTED]>
> wrote:
>Hello, I am a new debian user and someone still learning linux. I have a small 
>problem. My company is using a firewall created with Ipchains of 3 zones ( dmz 
>- local - internet ) on a Intel Pentium Pro processor machine running Debian 
>2.2r3 on it ( base system + mc + tcpdump + nano ).  Strangely enough one of 
>the interfaces ( the internet interface ) completely at arbitrary times start 
>sending packets to itself. Packet proto=1 sourceip:3 rd port to sourceip:1 st 
>port s=0xc0 f=0x t=255 log says. As far as I understand from this log the 
>packet sent is an ICMP packet from port 3 to tcpmux port ( icmp's have ports ? 
>knew they did not ) of size 13 hexadecimals not fragmented and time to live is 
>255. But this is not possible. 1st no one can use this machine as a terminal 
>and no one can telnet to it's interfaces. 2nd rp_filter is set to 1 for all 
>interfaces ( in case of a spoof attack ) . 
>Can anyone help me about that ? I am sure there is something I do not know but 
>what is it ?  
>
>Thanx
>John.
>
>_
>Get your free e-mail account: http://www.petekmail.com
>
>
>-- 
>To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

_
Get your free e-mail account: http://www.petekmail.com



Portmap?

2001-08-27 Thread john doe

Hi.

Just a simple question, what programs need "portmap"?

I've tried to somehow remove it from my installation, but I have not been 
able to find it.


Thanks.

- andreas -


PS. do not email me directly as I'm not on the list.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



Re: buggy broadband (?)

2001-09-04 Thread John Doe
Thanks for your reply!

I've tried all you suggest but a new NIC or a new cablemodem.  The
SB4100 is the SB3100, but with a USB port (unused) and a "standby"
switch on the front.  Otherwise the units are identical, so unless mine
is bad (a possibility -- but how to test the unit?), I don't think
switching out would help much.  I'd rather not have to shell out for a
new NIC, but I will if I must. (The Linksys is PCI 10/100. The cable is
a standard CAT 5 which came with the modem.)

The tech had a largish lcd meter. It was very impressive, but I've no
idea just what it was.  He wouldn't let me get near it.  His final test
was to plug in his own cablemodem: he saw it sync, and that seemed to be
good enough for him.  I have a dandy VOM -- is there any way I can test
signal strength, and what would the appropriate threshold be?

I'm delighted to learn that the cablemodem lights are not indicative,
because I really do suspect it's a matter of signal strength. The
problem seems to come and go, as if some days I get better signal than
others.  I've been thinking about getting a cable amp with a
pass-through return path.  But those are quite expensive.

Lastly, I can flush iptables and still have the same problem.  No change
whatsoever, so I've pretty much ruled out my rules.

I do have a Win95 box I use for OCR; I had thought to rule out the tulip
driver by installing the card in that machine to see if the network
connection is any more stable.  Any thoughts?

Best,

Don


On 04 Sep 2001 19:22:25 +0530, Raghavendra Bhat wrote:
> [Tue, Sep 04, 2001 at 07:41:22AM -0400] Don Berkich :
> 
> > The cablemodem, however, does not appear to lose sync:
> > receive, send and online lights are steady-on.
> 
> Do not go by what the lights say !  They will be on even
> when the upstream/downstream signals are weak.  How did this
> cable guy test the termination at your end ?  Did he do a
> voltage test and come to the conclusion that your connectivity 
> is good based on that or did he have some sort of a dip meter ?
> 
> 
> > How do I isolate the problem?  That is, how do I determine
> > if it's the Linksys NIC, the Linksys NIC/cablemodem 
> > connection
> 
> First change the patch cord linking your NIC and cable modem
> and test.  If the problem remains, change your NIC card for
> something better, say a 3Com/Intel Ether Pro Plus.  If you
> are still short of luck, change/borrow the cable modem (get the
> SB 3100 model to test, it is more proven) and check.
> 
> Is the Linksys card a PCI one and is it buffered for 100 MBps ?
> People say that the Intel Ether Pro 100+ NIC is a very good one.
> Did the cable guys recommend the Motorola SB 4100 box ?  Please
> note whether the patch cord at one end, ie. the end going to the 
> NIC should have a twist, like what we do when we hook up 2 machines
> without a hub.  In my case, there is no twist.  I am using the 
> SB 3100.
> 
> Turn off all firewall rules ie. iptables/ipmasq and allow all IPs 
> thru.  Later on after fixing the connection, you can turn them 
> back on again.
> 
> Please do mail me when you resolve this issue.  I would really
> appreciate that.  Feel *free* to mail me...
> -- 
> GPG: 1024D/F1624A6E  ragOO, VU2RGU
> 




Re: debian11 early - apt-get update - At least one invalid signature was encountered

2021-08-14 Thread john doe

On 8/15/2021 3:46 AM, raf wrote:

Hi,

Firstly, many thanks for debian-11. I've been looking
forward to the newer bind9 and its dnssec-policy
finally making it trivial to implement DNSSEC on a
stable system. Yay!

My problem: A day or two ago, I tried to upgrade to
debian-11 on a little VM on my laptop and I've run into
a problem.

I know it wasn't official yet, but I thought I could
get away with it. And I wanted to have done it once
before upgrading a more important VM. But I would like
to get this VM unbroken as well.

I wasn't as careful as usual with it (I didn't do the
backups mentioned in Release Notes section 4.1.1) but
I'm not sure if that would have helped.

I added the new the bullseye details to
/etc/apt/sources.list but I didn't comment out the
existing buster details at the same time. I think that
might have been my mistake. Then, I did apt update and
got GPG invalid signature errors.

And I still get them when I only have the buster
details in sources.list and when I only have the
bullseye details there. But before, everything
was fine.

With buster only:

   deb http://ftp.au.debian.org/debian/ buster main
   deb-src http://ftp.au.debian.org/debian/ buster main
   deb http://security.debian.org/debian-security buster/updates main
   deb-src http://security.debian.org/debian-security buster/updates main
   deb http://ftp.au.debian.org/debian/ buster-updates main
   deb-src http://ftp.au.debian.org/debian/ buster-updates main

apt update looks like this:

   Err:1 http://security.debian.org/debian-security buster/updates InRelease
 At least one invalid signature was encountered.
   Get:2 http://ftp.au.debian.org/debian buster InRelease [122 kB]
   Get:3 http://ftp.au.debian.org/debian buster-updates InRelease [51.9 kB]
   Err:2 http://ftp.au.debian.org/debian buster InRelease
 At least one invalid signature was encountered.
   Err:3 http://ftp.au.debian.org/debian buster-updates InRelease
 At least one invalid signature was encountered.
   Fetched 174 kB in 0s (452 kB/s)
   Reading package lists... Done
   Building dependency tree
   Reading state information... Done
   2 packages can be upgraded. Run 'apt list --upgradable' to see them.
   W: An error occurred during the signature verification. The repository is 
not updated and the previous index files will be used. GPG error: 
http://security.debian.org/debian-security buster/updates InRelease: At least 
one invalid signature was encountered.
   W: An error occurred during the signature verification. The repository is 
not updated and the previous index files will be used. GPG error: 
http://ftp.au.debian.org/debian buster InRelease: At least one invalid 
signature was encountered.
   W: An error occurred during the signature verification. The repository is 
not updated and the previous index files will be used. GPG error: 
http://ftp.au.debian.org/debian buster-updates InRelease: At least one invalid 
signature was encountered.
   W: Failed to fetch http://ftp.au.debian.org/debian/dists/buster/InRelease  
At least one invalid signature was encountered.
   W: Failed to fetch 
http://security.debian.org/debian-security/dists/buster/updates/InRelease  At 
least one invalid signature was encountered.
   W: Failed to fetch 
http://ftp.au.debian.org/debian/dists/buster-updates/InRelease  At least one 
invalid signature was encountered.
   W: Some index files failed to download. They have been ignored, or old ones 
used instead.

With bullseye only:

   deb http://ftp.au.debian.org/debian/ bullseye main contrib non-free
   deb-src http://ftp.au.debian.org/debian/ bullseye main contrib non-free
   deb http://security.debian.org/debian-security bullseye-security main 
contrib non-free
   deb-src http://security.debian.org/debian-security bullseye-security main 
contrib non-free
   deb http://ftp.au.debian.org/debian/ bullseye-updates main contrib non-free
   deb-src http://ftp.au.debian.org/debian/ bullseye-updates main contrib 
non-free

apt update looks like:

   Get:1 http://security.debian.org/debian-security bullseye-security InRelease 
[44.1 kB]
   Err:1 http://security.debian.org/debian-security bullseye-security InRelease
 At least one invalid signature was encountered.
   Get:2 http://ftp.au.debian.org/debian bullseye InRelease [113 kB]
   Get:3 http://ftp.au.debian.org/debian bullseye-updates InRelease [40.1 kB]
   Err:2 http://ftp.au.debian.org/debian bullseye InRelease
 At least one invalid signature was encountered.
   Err:3 http://ftp.au.debian.org/debian bullseye-updates InRelease
 At least one invalid signature was encountered.
   Fetched 153 kB in 0s (448 kB/s)
   Reading package lists... Done
   Building dependency tree
   Reading state information... Done
   1416 packages can be upgraded. Run 'apt list --upgradable' to see them.
   W: An error occurred during the signature verification. The repository is 
not updated and the previous index files will be used. GPG error: 
http://security.debian.org/debian

Re: Systemctl automount disabled after some failures

2021-08-17 Thread john doe

On 8/17/2021 4:28 PM, Erwan David wrote:

Hello,

I have some CIFS shares automounted through automount units. If I am
not connected to the right network, mounting fails, and I am OK with
that. However after too many failures the unit is disabled, and thus
does not work when I connect again. I did not find how to say to
systemd "I do not care how many times, it fails, just keep the unit
enabled".

Does someone have a way to achieve this ?



You might have better traction on the systemd mailing list (1).


1)  https://lists.freedesktop.org/mailman/listinfo/systemd-devel

--
John Doe



Re: masked service file

2021-08-31 Thread john doe

On 8/31/2021 7:36 PM, mick crane wrote:

Since I didn't really need LVM and I wasn't thrilled with having the
intrid.img at 70,00 bytes big I installed bookworm afresh.
After installing all the software I might want it's grown from 13,00
to 30,00 but that's OK.
Most things are back working except having some bother with the scanner
which seems to be because the saned service file is masked. I don't know
if it came masked or is something I've done.

Why would a service file be masked ?


To have it fully disabled ('stop', 'disable', 'mask').


Can I just unmask it or do I need to find a working service file first?



You can simply 'unmask' it and see how it goes.

--
John Doe



Re: which vs. type, and recursion?

2021-09-04 Thread john doe

On 9/4/2021 11:21 AM, Richard Hector wrote:

Greg Wooledge pointed out in another thread that 'type' is often better
than 'which' for finding out what kind of command you're about to run,
and where it comes from.

A quick test, however, threw up another issue:

richard@zircon:~$ type ls
ls is aliased to `ls --color=auto'

Great, so it's an alias. But what is the underlying ls? How do I find
out? I did find out, by unaliasing ls and trying again, which showed
that it's an actual executable, /usr/bin/ls, and not a shell builtin.

But is there an easier/better way? Can 'type' be asked to recursively
decode aliases?

I looked at the relevant section of bash(1) (when I eventually found
it), but was not particularly enlightened.



My understanding is that 'type' is to find the type while 'which' is to
find the executable path.

--
John Doe



Re: copy directory tree, mapping to new owners

2021-09-11 Thread john doe

On 9/12/2021 3:45 AM, Richard Hector wrote:

On 12/09/21 12:52 pm, Greg Wooledge wrote:

On Sun, Sep 12, 2021 at 12:43:29PM +1200, Richard Hector wrote:

The context of my question is that I'm creating (or updating) a test
copy of
a website. The files are owned by one of two owners, depending on
whether
they were written by the server (actually php-fpm).

To do that, I want all the permissions to remain the same, but the
ownership
should be changed according to a provided map. For example, if the
old file
was owned by 'mysite', the copy should be owned by 'mysite_test'. If
the old
file was owned by 'mysite-run' (the user php runs as), the copy
should be
owned by 'mysite_test-run' (if that has to be 'mysite-run_test' to make
things easier, I can live with that).


cd /src
mkdir -p /dest
rsync -a . /dest/  # The trailing / matters.
cd /dest
find . -user mysite -exec chown mysite_test {} +
find . -user mysite-run -exec chown mysite-run_test {} +


Thanks, that looks reasonable. It does mean, though, that the files
exist for a while with the wrong ownership. That probably doesn't
matter, but somehow 'feels wrong' to me.



If you are doing this in a script, I would use a temporary directory.
That way, in case of failure the destination directory is not rongly
modified.

EG:

$ rsync  

Make  the way you want it to be.

$ rsync  


Given that you want to change the ownership, you may want to emulate the
options implied by '-a' but without the ownership option ('-o').


My habits would also lead me to do all of the above from above the two
directories in question (in my case, /srv - for /srv/mysite/doc_root and
/srv/mysite_test/doc_root) So:

cd /srv

# actually not necessary? rsync will create it
mkdir -p mysite_test/doc_root

# The trailing / matters. Does it matter on the source as well?


According to the man page it does (1):

"CWrsync -avz foo:src/bar/ /data/tmp
A trailing slash on the source changes this behavior to avoid creating
an additional directory level at the destination. You can think of a
trailing / on a source as meaning lqcopy the contents"


# I generally include it.


In a script, you need to be sure what the cmd does do or not do!!! :)


rsync -a mysite/doc_root/ mysite_test/doc_root/  # The trailing /
matters.

find mysite_dest -user mysite -exec chown mysite_test {} +

# I prefer mysite_test-run; it keeps consistency with
# the ${sitename}-run pattern used elsewhere
find mysite_dest -user mysite-run -exec chown mysite_test-run {} +

Have I broken anything there?



Not that I can see but testing will tell!


This is what I would do.  And I would do it *interactively*.

If you insist on making a script, then it will be slightly more
complicated, because you'll need to add error checking.


The trouble with doing it interactively, when it needs to be done many
times (and on several sites), is that each time there's opportunity to
make a mistake. And it means the process needs to be documented
separately from the script.

In fact, I'd incorporate the above in a larger script, which does things
like copying the database (and changing the db name in the site config).

Error checking in shell scripts is something I certainly need to learn


At the very least, ' ['&&'|'||'] handle the error>.

If you use Bash and don't need to be POSIX compliant and /or portable
you can be a bit more creative.


and practice more - I tend to rely somewhat on 'knowing' what I'm
working with, which is probably not a good idea.

>

Yes in a script it is like shooting yourself in the foot.


1)  https://linux.die.net/man/1/rsync

--
John Doe



Re: More issues

2021-10-05 Thread john doe

On 10/5/2021 7:21 PM, Roy J. Tellason, Sr. wrote:

So when I tell synaptic package manager to reload,  to get current information,  I see 
"failed" for two of the things that it's trying to download.  Then I get a box 
with error messages in it as follows:

"GPG error: https://download.virtualbox.org/virtualbox/debian stretch InRelease: The 
following signatures couldn't be verified because the public key is not available: 
NO_PUBKEY A2F683C52980AECFThe repository 
'https://download.virtualbox.org/virtualbox/debian stretch InRelease' is not signed."

I seem to vaguely recall something about a key on the Oracle site where I 
downloaded this,  but am not 100% sure.  What do I need to do to fix this?



Looks like the public key needs to be imported (1).


1)  https://www.virtualbox.org/wiki/Linux_Downloads

--
John Doe



Re: Then it happened to me...

2021-10-10 Thread john doe

On 10/10/2021 9:33 AM, piorunz wrote:

On 08/10/2021 18:10, Dan Ritter wrote:


It just happened to me.

I think this is actually an attack on debian-user.

Nothing in my mail logs (and, believe me, there's a lot of spam
recorded in there.)

I've just set postfix to drop anything from that host at SMTP
time, but I doubt it's going to work. I think they've found a
cannon to annoy debian-user subscribers with.

-dsr-


Why we don't have this?
https://forum.manjaro.org/

We still use e-mail list, prone to spam and abuse, technology from 30
years ago?
Isn't it time to switch to online forums? It's not that Debian haven't
got the money, right?



Mony is not evrything, it is true that some forums let you reply to a
post via e-mail but forums will never be as flexible and/or accessible
than e-mails.

Sometime what is old is not a bad idea.

--
John Doe



Re: general broad question for help in setting up linux server and suggestions

2021-10-15 Thread john doe

On 10/15/2021 8:47 AM, Jeremy Ardley wrote:


On 15/10/21 2:33 pm, Semih Ozlem wrote:

Hello everyone

I am a mathematics PhD student completing my dissertation at Yeditepe
University Istanbul working under Prof Ilhan Ikeda who is at Bosphorus
University Istanbul. I am involved in setting up some seminars,
keeping correspondence with other mathematicians or mathematics students.

I worked for brief periods as a programmer mainly in python on small
projects.

Currently I am working with an electrical technician in Bursa Turkey
who is running an electrical electronical services store.

I am also interested in educational projects.

I am very much into using linux for academic work, I am willing to
introduce other people to linux and possibly set up a local linux
users group where I live.

I am thinking of setting up a server, both for local (at home use), (I
have already set up say samba server or openssh server) to be used
only under one modem. However due to lack of machines dedicated for
that purpose the server is not continuing.

I would like to make a server I set up say at home available at the
workplace as well so that I don't have to run back home while at work.
If possible make the server accessible via a smart phone or some other
computer.

Also in future possibly I would like to set up a web server possibly
for the shop and or for mathematical educational and linux related
activities as well as for myself and friends and maybe local community.

Already gdrive offers opportunities for storing files etc. and wix and
some other sites allow you to build websites and I am sure there are
many other options out there coming from the cloud. But I would like
to explore, if you guys also thinnk it might be a worthwhile endeavor
too and worth the time, to use linux LAMP server or any other option
under the linux umbrella that might be worthwhile. I am thinking of
starting small scale since I am operating on a really tight budget
currently. And should I reach better circumstances whether through
finding some potential financial support or better income myself, I
would like to expand on number of things I try.

I am also in interested in humanitarian causes potentially though I
would not call myself very active or an activist I like reading on
such issues and discussing. One potential possibility is to develop
projects in relation to say immigration crisis to do with syria or any
other cause... even to help assist people in say getting help with
reaching or finding out about public services. But at the moment all
these are ideas. Nothing definite yet. I am exploring.

I would like to ask for suggestions like a roadmap that may be
worthwhile to follow.

Thank you in advance for any assistance and ideas and suggestions and
recommendations.

Sincerely

Semih Ozlem


If you want to smart small and cheap, you can get quite a decent LAMP
server using a nanopi M4V2 which has gigabit+ connectivity and can fit
an NVME drive for excellent speed and storage.

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4V2

It has better connectivity and storage than the Raspberry Pi 4

Because heat is a problem you should get the fancy metal case

I run an earlier version of the board under armbian




To get me started and with no mony for this  I repurpose a desktop
computer that I had/found as a server.
The server was simply Debian in headless mode (no DE ...).

HTH.

--
John Doe



Re: general broad question for help in setting up linux server and suggestions

2021-10-15 Thread john doe

On 10/15/2021 10:30 AM, Christian Britz wrote:



Semih Ozlem wrote:

How much does it cost to run a server full time, is it cheaper to run
one yourself or to rent one online? Do you have an estimate? or range?
(cost could be electricity and internet connection used?)



Assuming that you want to use your private Internet connection at the
beginning and you have a flatrate, there will be only the electricity
causing extra costs.
Keep in mind that your local Internet provider will probably not assign
you a fixed IP adress, so you will probably need to use some sort of
DynDNS service (should be cheap).


For starter you could use a free DDNS provider.

To answer the question of the OP:

To learn how to run a server your only cost would be energy bill and
mayby internet depending on your ISP plan.

--
John Doe



Re: general broad question for help in setting up linux server and suggestions

2021-10-15 Thread john doe

On 10/15/2021 1:40 PM, john doe wrote:

On 10/15/2021 10:30 AM, Christian Britz wrote:



Semih Ozlem wrote:

How much does it cost to run a server full time, is it cheaper to run
one yourself or to rent one online? Do you have an estimate? or range?
(cost could be electricity and internet connection used?)



Assuming that you want to use your private Internet connection at the
beginning and you have a flatrate, there will be only the electricity
causing extra costs.
Keep in mind that your local Internet provider will probably not assign
you a fixed IP adress, so you will probably need to use some sort of
DynDNS service (should be cheap).


For starter you could use a free DDNS provider.

To answer the question of the OP:

To learn how to run a server your only cost would be energy bill and
mayby internet depending on your ISP plan.



I'll add that running a server at home as some security implecation.
The server would need to be properly secured (firewall, hardening of
services...).

In general, I would not advise to have a web server publically available
at home.

--
John Doe



Re: question from total newbie. a little help please

2021-10-17 Thread john doe

On 10/17/2021 3:00 PM, JAMES BOSWELL wrote:

if i divide my hard drive and install debian lynx on it. will i be able to
effectively run debian on this laptop?



You are planning on creating a 'multiboot' with Debian and Windows!

The best thing that I can suggest is to Google 'multiboot Bullseye and
Windows10'.


i know about enough to fill a thimble but i'm hopeful and any guidance
would be greatly appreciated and i would follow it to the T's



With W10 you have also the possibility of using 'WLS' an order
alternative would be to install Debian as a VM.
If you choose to go the VM way Virtualbox and Qemu are working fine on
Windows.

I would say that 'WLS' and 'VB/Qemu' are less prone to crashing your laptop.

--
John Doe



Re: Curious Question about an Extra MAC Address

2021-10-26 Thread john doe

On 10/27/2021 12:26 AM, Dan Ritter wrote:

Martin McCormick wrote:

sudo nmap -sn 192.168.1.0/24 followed by
   sudo arp -a and I found nothing extraordinary so I also got on
our Netgear router and told it to cough up a list of attached
devices, showing the same list of stuff that the first two sweeps
found.  Additionally, there was 1 mac address with no other
information such as an IP address or system name, just that MAC
on a row all by itself.

I had been looking for our DVD player which has the
ability to view streamed movies and I think this might be it.


https://ouilookup.com/

will take that MAC and let you know which manufacturer has that
block assigned.


My question is, did the link she went to on the computer
or maybe her iPhone use javascript to get our WiFi password and
if so, how did the player get the authorization to use our WiFi?


1. It found an open wifi network
2. It's plugged into your ethernet
3. Your wife gave it the wifi password


I am just curious about how did this work and could a
person cause it to log on to our WiFi network and receive a video
stored on a system here?


Quite possibly. The systems for this is called several names, but
the most likely are UPNP, DLNA, ChromeCast or AirPlay.


What I am actually thinking of is more like a DVR where a
computer can record a TV show like the old-school VCR's and then
one could play it back through the DVD player on the network.


Suitable Debian packages include:

mythtv
vdr
kodi
and for music, many others.




This player can also update it's firmware when necessary
and we've never been prompted from it for a WiFi password.  It
just seems to be able to get through when it needs to.


That's suggestive of already knowing your wifi password or being
on a wired network.



If there is no ethernet cable attached to the player, you could try to
reset it to factory default and try to reconnected to your network.

--
John Doe



Re: OpenSMTPD won't start as part of systemd

2021-10-28 Thread john doe

On 10/29/2021 6:39 AM, Paul M. Foster wrote:


On 10/28/21 9:59 PM, Greg Wooledge wrote:

On Thu, Oct 28, 2021 at 09:34:26PM -0400, Paul M. Foster wrote:

Well, that's interesting. Here is my /etc/network/interfaces:

===

source /etc/network/interfaces.d/*


# The loopback network interface

auto lo

iface lo inet loopback

===

There's nothing in /etc/network/interfaces.d/ . This is a stock
Debian 11
install, so whatever's in this file hasn't been messed with. No
mention of
eno1. However, it DOES come up. Any clues?

There's no such thing as a "stock install".  There are many possible
installs, depending on which choices you make during the installation.

If your interface isn't defined in /e/n/i then the most likely place
it's being brought up is in Network-Manager.  If it's not N-M then
perhaps someone has configured your system to use systemd-networkd,
but that's not enabled by default in Debian, so it's far less common.



How about "/etc/NetworkManager/system-connections/Wired connection 1"
(who comes up with these Windows filenames?):

===

[connection]
id=Wired connection 1
uuid=7bb23b3a-c750-4c65-ae82-164f7359ea7d
type=802-3-ethernet

[802-3-ethernet]

[ipv4]
method=auto

[ipv6]
method=auto
ip6-privacy=2

===

"Stock install" in this case means I just let the installer set up the
networking, etc. Since eno1 is the wired connection, I assume this is
where it gets set up. However, this doesn't really answer the question
of why eno1 apparently not ready when OpenSMTPd wants to start.



Race condition, it looks like your interface is broaght up after the
smtp service.

--
John Doe



Re: OpenSMTPD won't start as part of systemd

2021-10-28 Thread john doe

On 10/29/2021 7:16 AM, Paul M. Foster wrote:


On 10/28/21 10:17 PM, David Wright wrote:

On Thu 28 Oct 2021 at 21:34:26 (-0400), Paul M. Foster wrote:

On 10/28/21 5:11 PM, Greg Wooledge wrote:

On Thu, Oct 28, 2021 at 04:42:52PM -0400, Paul M. Foster wrote:

This is just an annoyance, but it really shouldn't happen. As my
system is
rebooting, and all the startup chatter echos to the screen, I
notice that
OpenSMTPd fails to start. Once I'm logged in, I can start it
manually with
no problem. When I look at the failure mode, it appears that it
thinks the
"eno1" interface isn't functioning, so it can't monitor that
interface.

Are you bringing up eno1 with /etc/network/interfaces?  If so, make
sure it's marked as "auto", not as "allow-hotplug".

Well, that's interesting. Here is my /etc/network/interfaces:

===
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
===

There's nothing in /etc/network/interfaces.d/ . This is a stock Debian
11 install, so whatever's in this file hasn't been messed with. No
mention of eno1. However, it DOES come up. Any clues?

Perhaps look at your logs and dmesg; and post how your networking is
intended to come up.

Cheers,
David.



A lot to examine...

One thing stands out. There is an error of sorts in /etc/daemon.log:

Oct 26 17:44:05 dudley systemd-udevd[271]:
/usr/lib/udev/rules.d/80-ifupdown.rules: 2 Unknown group 'netdev', ignoring

I "accidentally" deleted the "netdev" group a few days ago. I wonder if
that's the reason.



If it was working before that removal, that's probably it!!! :)

--
John Doe



Re: OpenSMTPD won't start as part of systemd

2021-10-29 Thread john doe

On 10/29/2021 2:55 PM, Paul M. Foster wrote:

On 10/29/21 7:44 AM, Greg Wooledge wrote:

On Fri, Oct 29, 2021 at 12:39:09AM -0400, Paul M. Foster wrote:

"Stock install" in this case means I just let the installer set up the
networking, etc.

How that happens depends on which tasks you selected during the
installation.  If you go with "Standard" (as one often does when
installing for a server), network-manager is not installed.  But if
you select any of the desktop environment packages, N-M *is* installed,
and then networking is configured using that instead of /e/n/i.

I'm guessing you installed a desktop environment task during the
original installation on this machine.


And you would be correct.



Is this service 'NetworkManager-wait-online.service' (1) enabled, that
is if you use NM?

1)  https://wiki.archlinux.org/title/Systemd

--
John Doe



Re: preseeding Bullseye

2021-11-13 Thread john doe

On 11/13/2021 5:39 PM, André Rodier wrote:


Hello all,

I am building a preseed file for Debian Bullseye.

I am able to configure many advanced features, like LUKS / LVM, etc.

However, I still have one question asked at the beginning of the
installer, about the keyboard variant (see the attached image)

For instance, I can select British, and then, the installation continues.

I am attaching the full preseed file I use.



Does it work if you do what is suggested at (1):


"### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US

# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
#d-i localechooser/supported-locales multiselect en_US.UTF-8, nl_NL.UTF-8

# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select us
# d-i keyboard-configuration/toggle select No toggling"


Also look at the logs (2) to see what's going on!

Note that this e-mail is folded by my mailer.

1)  https://www.debian.org/releases/bullseye/example-preseed.txt
2)  https://www.debian.org/releases/stable/i386/ch05s04

--
John Doe



Re: preseeding Bullseye

2021-11-14 Thread john doe

On 11/14/2021 6:34 PM, Brian wrote:

On Sun 14 Nov 2021 at 10:54:38 -0600, David Wright wrote:


On Sun 14 Nov 2021 at 08:14:49 (+), André Rodier wrote:

On 14/11/2021 07:39, john doe wrote:

On 11/13/2021 5:39 PM, André Rodier wrote:

No, it does not work, it's still stuck on the same screen.

The solution that worked for me was to add it as a boot parameter.


For the record, there is also this note in the Installation Guide:

   In order to easily avoid the questions that would normally appear
   before the preseeding occurs, you can start the installer in “auto”
   mode. This delays questions that would normally be asked too early
   for preseeding (i.e. language, country and keyboard selection) until
   after the network comes up, thus allowing them to be preseeded. It
   also runs the installation at critical priority, which avoids many
   unimportant questions. See Section B.2.3 for details.


A good FTR. However, when I tried this a few years ago it didn't work
for me. Maybe I lacked patience to sort it out properly. That is why
I went to boot parameters for language and keyboard.

The OP does not say how the preseed file is provided to the installer.
My recollection (not checked) is that putting it in the initrd is the
only way of ensuring language and keyboard preseeding from the start
of the installation.



Using PXE booting, I don't have to preseed any of those steps manually
if 'auto=true' is passed as kernel boot parameter.

--
John Doe



Simple way to scann all incoming and outgoing e-mails for viruses

2021-11-18 Thread john doe

Debians,

My MUA is connecting to mail.com for imap and smtp.
I have a Debian gateway server that I would like to use to scann e-mails
sent and reseaved.

Is there a way to scann incoming and outcoming e-mails on those ports
for viruses?

What I'm trying to avoid is to change the connection settings in my MUAs.

I'm not sure how realistic this is so I might refine my question based
on the provided answers.

--
John Doe



Re: Simple way to scann all incoming and outgoing e-mails for viruses

2021-11-21 Thread john doe

On 11/19/2021 5:39 PM, Henning Follmann wrote:

On Fri, Nov 19, 2021 at 08:11:26AM +0100, john doe wrote:

Debians,

My MUA is connecting to mail.com for imap and smtp.
I have a Debian gateway server that I would like to use to scann e-mails
sent and reseaved.


What does that mean?
Can you please be more specific.




Is there a way to scann incoming and outcoming e-mails on those ports
for viruses?


Yes



What I'm trying to avoid is to change the connection settings in my MUAs.


If I understand your first line correctly you are connecting directly with
your MUA to connect to the imap server of mail.com.
In this case you have to scan with your MUA.



I'm not sure how realistic this is so I might refine my question based
on the provided answers.


I am not familiar with mail.com. But do they scan and set any header
based on the scan?
In that case you might to create a imapsieve filter on the imap server
to sort suspicious mail into a spam folder.



Hello all and thank you for your answers.

I'll answer here to everyone who has contributed.

I was hoping to transparently intercept e-mails and scann then for viruses.
So when connected at home the e-mail would be scann for viruses and if I
connect to a public network the connection to mail.com would also work.

By the answers I got here, this looks to be difficult to implement
especially when SSL is involved.

My network is as follow:
I have one debian server behind my ISP modem that act as gateway for my
private netowrk.
There are multiple users on my network on multiples OSs (Windows,
Android and linux) with different MUAs.
Eatch MUAs is configured with multiple e-mail accounts.

For the sake of learning, I would like to make my own set up and not
relying on what mail.com can provide.


What would be the best way forward here with multiples MUAs and multiple
e-mail accounts?

I do get that I would need to set up a MTA on my server and connect to
that MTA changing my connections settings in my MUAs.

In other words, I'm open to any suggestions.

A big thank you to 'Dan Ritter ' and to 'Curt
' and also to you 'Henning Follmann
'.

--
John Doe



Impossible to verify GPG signature on Debian Release file

2021-11-22 Thread john doe

Debians,

I'm trying to verify the Debian's Release file but to no avail:

$gpg --keyserver keyring.debian.org --keyserve
r-options auto-key-retrieve --verify Release.gpg Release
gpg: Signature made 10/9/2021 11:35:49 AM Romance Daylight Time
gpg:using RSA key 0146DC6D4A0B2914BDED34DB648ACFD622F3D138
gpg: requesting key 0x648ACFD622F3D138 from hkp://keyring.debian.org
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: Can't check signature: No public key
gpg: Signature made 10/9/2021 11:35:49 AM Romance Daylight Time
gpg:using RSA key A7236886F3CCCAAD148A27F80E98404D386FA1D9
gpg: requesting key 0x0E98404D386FA1D9 from hkp://keyring.debian.org
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: Can't check signature: No public key
gpg: Signature made 10/9/2021 11:49:02 AM Romance Daylight Time
gpg:using RSA key A4285295FC7B1A81600062A9605C66F00D6C9793
gpg:issuer "debian-rele...@lists.debian.org"
gpg: requesting key 0x605C66F00D6C9793 from hkp://keyring.debian.org
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: Can't check signature: No public key
$ gpg --locate-keys debian-release@lists.debian
.org
gpg: error retrieving 'debian-rele...@lists.debian.org' via WKD:
Certificate exp
ired
gpg: error reading key: Certificate expired


The Release file and signature file are downloaded from (1) and (2).

What am I missing?


1)  http://ftp.debian.org/debian/dists/stable/Release
2)  http://ftp.debian.org/debian/dists/stable/Release.gpg

--
John Doe



Re: Impossible to verify GPG signature on Debian Release file

2021-11-23 Thread john doe

On 11/23/2021 1:49 PM, deloptes wrote:

john doe wrote:


What am I missing?


this specific key seems not to be available on the debian keyserver
try keyserver.ubuntu.com, you can find the key there



Thank you.

--
John Doe



Re: Impossible to verify GPG signature on Debian Release file

2021-11-25 Thread john doe

On 11/23/2021 4:16 PM, john doe wrote:

On 11/23/2021 1:49 PM, deloptes wrote:

john doe wrote:


What am I missing?


this specific key seems not to be available on the debian keyserver
try keyserver.ubuntu.com, you can find the key there



Thank you.



The Ubuntu keyring is: keyserver.ubuntu.com

Thanks to 'Clément Hermann ' for the below answer:

"The keyserver at keyring.debian.org holds keys for Debian Project
members and Debian Maintainers, so it's expected that you wouldn't find
the keys there (though it might be a good idea ?). You'll find more
details at https://keyring.debian.org.

The Debian Archive Keyring where you'll find the ftp-master keys used to
sign the Release files is in the debian-archive-keyring package, and
also available on https://ftp-master.debian.org/keys.html

Note that starting from Debian 10 (Buster), you might want to check the
InRelease file instead of Release + Release.gpg."

--
John Doe



Avoid rebooting server to gain back RS232 connection

2021-12-01 Thread john doe

Debians,

I'm using a RS232 cable to connect to a server everything is properly
set up and works fine.
For some reasons I lost the connection to my server that is I can not
control the server using serial console.
If I reboot that server I can once again manage that server using serial
console.

Is there a way to get back the connection without having to reboot the
server?

In other words, how can I reconnect when the cable has been disconnected

Any feedback is welcome..

--
John Doe



Re: Avoid rebooting server to gain back RS232 connection

2021-12-02 Thread john doe

On 12/1/2021 5:00 PM, Joe wrote:

On Wed, 1 Dec 2021 07:10:49 -0700
Charles Curley  wrote:


On Wed, 1 Dec 2021 09:14:11 +0100
john doe  wrote:


I'm using a RS232 cable to connect to a server everything is
properly set up and works fine.
For some reasons I lost the connection to my server that is I can
not control the server using serial console.


...



In other words, how can I reconnect when the cable has been
disconnected


The first thing I would do is find out why your cable is being
disconnected, and see to it that it does not happen again.

But why RS-232? Why not SSH over Internet Protocol (IP)? If it's a
server, it should have some sort of networking.




Original information is indeed scarce. The OP mentions using a serial
console, but that may have been for troubleshooting, and we do not know
if the console is the usual client.

Many proper servers have at least an option of an RS-232 connection
into the BIOS or equivalent, allowing remote control of BIOS parameters
and rebooting when necessary. It's an unfitted option on my HP
microserver. Many UPS devices have an RS-232 connection to a server to
notify of loss of mains, low battery etc. SSH would not normally be an
alternative for these functions.



As Joe has hinted out, I use RS232 for debugging when I screw up my
network!!! :)

After having rebooting the server, I can confirm that plugging and
unplugging the cable works.
I'm not sure what was mest up there but all is well now!

Regarding the involuntary disconnection,, the cable was not properly
inplace which is now the case.

Thanks all for the help.

--
John Doe



Re: Question on permission denied (public key)

2021-12-06 Thread john doe

On 12/6/2021 9:32 AM, Adriel Peng wrote:

Hello

Sorry this is maybe not the debian question...

I have changed my github username today, after that I run this command in
local machine to update the remote url:

git remote set-url origin new.git.url/here

And I even run these two in local repo:

   git config --global user.email "n...@mail.com"
   git config --global user.name "new-username"

After doing those when I run git pull it always gets:

$ git pull
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

But, ssh -T g...@github.com works and it shows me the new user space.
Can you tell me how to fix this?


Not realy but here's some hints:
- Are you using the 'gh' utility?
- What did you change before the previous working URI and the not
working one?

--
John Doe



Re: Wireguard on Bullseye

2021-12-06 Thread john doe

On 12/6/2021 10:22 PM, Charles Curley wrote:

On Mon, 6 Dec 2021 14:59:45 -0500
Dan Ritter  wrote:


So iorich here is allowed to construct a tunnel to hawk, but no IPs
from hawk are allowed...

Add 10.0.2.1 to iorich's understanding of hawk's allowed ips.


Thanks. That helped, I think.

I added

AllowedIPs = 0.0.0.0/0

to iorich's (the client) configuration in the peer section. Now:

root@iorich:/etc/wireguard# wg
interface: wg0
   public key: 28TsK9q71ruQ18acpp89MXGjsLVsEQcsKW3Y38VrfEo=
   private key: (hidden)
   listening port: 41490
   fwmark: 0xca6c

peer: HBkAW05W2zxbTGEE4FstJLxnBpfDpec3KGhSfs6BLCU=
   endpoint: 72.36.20.38:55820
   allowed ips: 0.0.0.0/0
   latest handshake: 1 minute, 23 seconds ago
   transfer: 1.87 KiB received, 11.31 KiB sent
root@iorich:/etc/wireguard# ping 10.0.2.1
PING 10.0.2.1 (10.0.2.1) 56(84) bytes of data.

--- 10.0.2.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4089ms

root@iorich:/etc/wireguard# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
0.0.0.0 192.168.100.31  0.0.0.0 UG60000 wls3
10.0.2.00.0.0.0 255.255.255.0   U 0  00 wg0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000   00 wls3
192.168.100.0   0.0.0.0 255.255.255.0   U 60000 wls3
192.168.122.0   192.168.100.6   255.255.255.0   UG60000 wls3
192.168.124.0   192.168.100.16  255.255.255.0   UG60000 wls3
root@iorich:/etc/wireguard# ifconfig wg0
wg0: flags=209  mtu 1420
 inet 10.0.2.2  netmask 255.255.255.0  destination 10.0.2.2
 inet6 fc00:23:5::2  prefixlen 64  scopeid 0x0
 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 
1000  (UNSPEC)
 RX packets 59  bytes 3628 (3.5 KiB)
 RX errors 0  dropped 0  overruns 0  frame 0
 TX packets 229  bytes 24840 (24.2 KiB)
 TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@iorich:/etc/wireguard#

And on the server:

root@hawk:/etc/wireguard# wg
interface: wg0
   public key: HBkAW05W2zxbTGEE4FstJLxnBpfDpec3KGhSfs6BLCU=
   private key: (hidden)
   listening port: 55820

peer: 28TsK9q71ruQ18acpp89MXGjsLVsEQcsKW3Y38VrfEo=
   endpoint: 192.168.10.1:41490
   allowed ips: 10.0.2.0/24
   latest handshake: 1 minute, 43 seconds ago
   transfer: 9.81 KiB received, 2.02 KiB sent
root@hawk:/etc/wireguard# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
0.0.0.0 192.168.100.31  0.0.0.0 UG0  00 enp3s0
10.0.2.00.0.0.0 255.255.255.0   U 0  00 wg0
192.168.100.0   0.0.0.0 255.255.255.0   U 0  00 enp3s0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00 virbr0
192.168.124.0   192.168.100.16  255.255.255.0   UG0  00 enp3s0
root@hawk:/etc/wireguard# ifconfig wg0
wg0: flags=209  mtu 1420
 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 
1000  (UNSPEC)
 RX packets 253  bytes 26204 (25.5 KiB)
 RX errors 10  dropped 0  overruns 0  frame 10
 TX packets 71  bytes 4132 (4.0 KiB)
 TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@hawk:/etc/wireguard#

Ping isn't getting through, but at least it isn't complaining. Wg shows
data moving through the tunnel. I suspect a firewall/NATting issue, so I
will start tracking that down.



Looking at the logs should help you understand if it is a FW issue.

If you can not disable your firewall, allowing ping is a good idea!!! :)

CIDR notation is generaly used when defining a subnet or an IP range.
but rarely when you need to access a specific IP.

--
John Doe



Re: Install older versions of Debian with WSL

2021-12-07 Thread john doe

On 12/7/2021 5:15 PM, Andrew M.A. Cater wrote:

On Tue, Dec 07, 2021 at 03:54:37PM +0100, Max Nadig wrote:

Hi,

I was trying to install Debian 10 via WSL on windows. The problem is, I 
automatically get v11 Bullseye.
Is there some way to specify the version or load a custom Debian version with 
WSL?

I already posted this question into the WSL Git repo. So far I couldn't find a 
solution for this.
https://github.com/microsoft/WSL/issues/7805

Are there maybe legacy builds of the Debian microsoft store app available? This 
would probably solve my problem.

Thank you for the help, best,
Max


Why do you want Debian 10 specifically? You could try the IRC channel

#debian-wsl

on OFTC / see if you can find the maintainer.

In general terms, as soon as a release is put out, it's uploaded by
rhaist to Microsoft - you want the latest stable to be the one used,



If you realy need Buster, using VirtualBox or Qemu on Windows might fit
the bill.

--
John Doe



Re: question about a .deb file

2021-12-08 Thread john doe

On 12/8/2021 10:16 AM, Piper H wrote:

Thanks, I'll check them out. :)



My suggestion would be to do the following commands:
$ apt-get --autoremove purge mysql-connector-java
$ apt-get update && apt-get install libmariadb-java

Add 'sudo' if you need it.

--
John Doe



Re: question about a .deb file

2021-12-09 Thread john doe

On 12/9/2021 8:55 AM, Tim Woodall wrote:

On Wed, 8 Dec 2021, john doe wrote:


On 12/8/2021 10:16 AM, Piper H wrote:

Thanks, I'll check them out. :)



My suggestion would be to do the following commands:
$ apt-get --autoremove purge mysql-connector-java


Does that work or is it a typo? I've always used:

apt-get autoremove --purge



$ apt-get autoremove --purge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
[snip]
0 upgraded, 0 newly installed, 31 to remove and 0 not upgraded.
After this operation, 1018 MB disk space will be freed.
Do you want to continue? [Y/n]
$ apt-get purge --autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
[snip]
0 upgraded, 0 newly installed, 31 to remove and 0 not upgraded.
After this operation, 1018 MB disk space will be freed.
Do you want to continue? [Y/n] ^C
$ apt-get --autoremove purge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
[snip]
0 upgraded, 0 newly installed, 31 to remove and 0 not upgraded.
After this operation, 1018 MB disk space will be freed.
Do you want to continue? [Y/n]
$ apt-get --help
apt 2.3.13 (amd64)
Usage: apt-get [options] command
   apt-get [options] install|remove pkg1 [pkg2 ...]
   apt-get [options] source pkg1 [pkg2 ...]
[snip]


Specifying options before the command looks to be more man page compliant...

--
John Doe



Re: upgrade - packages have been kept back

2021-12-10 Thread john doe

On 12/10/2021 9:04 AM, teamas...@mad-hatters-teatime.teanet.org wrote:

On Thu, 9 Dec 2021 23:09:34 +
"Andrew M.A. Cater"  wrote:


On Thu, Dec 09, 2021 at 11:58:33PM +0100,
teamas...@mad-hatters-teatime.teanet.org wrote:

hey,
i have not been using debian for long and not sure how to proceed
here. is a:
apt-get upgrade linux-image-amd64
the right way?
ty, jens.


apt-get update ; apt-get upgrade

[You need to pull in an up to date list of packages first]


exactly that did not work



$ apt-get -V install linux-image-amd64

HTH.

--
John Doe



Re: DHCP server for other site

2021-12-10 Thread john doe

On 12/10/2021 6:45 PM, Bonno Bloksma wrote:

Hi,



I want to move my DHCP servers to my datacenter as I am going to shut down the 
hypervisor hosts on some locations.

[...]

And as that is the only interface for the VM the dhcp software wil fail to 
start.
So my solution was to add a few lines to the config



shared-network datacenter.tio.nl {
   subnet 10.0.1.0 netmask 255.255.254.0 {
   }
}



Is this the recommended way or is there a better way? I want to keep one dhcp 
server per location and not have one dhcp server for all locations. That helps 
a lot with keeping the configs manageable. ;-)


And an update. It seems this dhcp server is reacting to requests on the local 
network even though there is no config to do so.
I see DHCPINFORM and DHCPACK lines for the local 10.0.1.0 network.
Why is that happening? Is it just parroting what the other authoritative dhcp 
server is sending on the network?



Mabey because leases on some clients has not been renewed.


--
John Doe



osinfo-query os missing debian Bullseye

2021-12-19 Thread john doe

Debians,

As far as I can tell, the command 'osinfo-query os' does not
support/list 'debian11'.

I need to fire up a Bullseye VM what is the best way forward?


P.S.

Host and guest are Bullseye.

--
John Doe



Re: osinfo-query os missing debian Bullseye

2021-12-20 Thread john doe

On 12/20/2021 12:44 AM, David wrote:

On Mon, 20 Dec 2021 at 04:36, Dan Ritter  wrote:

john doe wrote:



As far as I can tell, the command 'osinfo-query os' does not
support/list 'debian11'.



I need to fire up a Bullseye VM what is the best way forward?



What does osinfo-query have to do with installing a VM?


I expect it will be something like seen here:
   https://wiki.debian.org/KVM?highlight=%28os-variant%29

'virt-install' takes an '--os-variant' argument. The known
values of that argument are queried by an 'osinfo-query'
command.

$ osinfo-query os | awk -e '/debian/ {print $1}'
debian1.1
debian1.2
debian1.3
debian10
debian2.0
debian2.1
debian2.2
debian3
debian3.1
debian4
debian5
debian6
debian7
debian8
debian9
debiantesting

$ cat /etc/debian_version
11.2

$ dpkg -S osinfo-query
libosinfo-bin: /usr/bin/osinfo-query
libosinfo-bin: /usr/share/man/man1/osinfo-query.1.gz

$ apt list --installed libosinfo-bin
Listing... Done
libosinfo-bin/stable,now 1.8.0-1 amd64 [installed]

I just use '--os-variant debiantesting' until someone
gives better advice.



According to (1), the better advice would be to use 'debian10'!!! :)

In short, the issue has been fixed upstream and will make it's way in
the Debian package in the next little while.

1)
https://listman.redhat.com/archives/libvirt-users/2021-December/msg00057.html

--
John Doe



Re: Replace line in file based on pattern

2022-01-02 Thread john doe

On 1/3/2022 2:56 AM, Paul M. Foster wrote:

On 1/2/22 6:20 PM, The Wanderer wrote:

On 2022-01-02 at 17:52, Paul M. Foster wrote:


Folks:

In a script, I'd like to search for a pattern in a file, and replace
that line entirely with a new line, once (not globally). I've tried


What do you mean by "globally"?


"Globally" just means I want to replace the first instance, rather than
appending the 'g' modifier to the sed expression.



If you mean that you want to only replace the first matching line in the
file, but leave any subsequent matching lines alone... I've never
actually had occasion to do that, but a bit of Googling (for 'sed first
match only') found me

https://stackoverflow.com/questions/148451/how-to-use-sed-to-replace-only-the-first-occurrence-in-a-file


which looks like at least the seed of a way to do it; see also below.


sed -i s/search/new_line/

but this only replaces the string itself. I want the script to find the
line my search term is on, and replace the whole line with my
replacement line.

Anyone know how to do this?


Without re-testing at the moment, I'd say from past experience that you
want:

sed -i 's/^.*search.*$/new_line/'

This matches the beginning of the line, followed by zero or more
characters, followed by the search string, followed by zero or more
characters, followed by the end of the line.


This works, as I mentioned in another reply. The context here is a file
which would have something like: ';extension=gd', to be replaced by
'extension=gd'. That is, I want to programmatically uncomment a line, in
most cases.


In addition to the other answers:

In the below cmds '/^# extension=md/' will only modify the line matching
that specific pattern, the first cmd will only replace '# ' while the
second will answer your original question.

$ printf "%s\n" extention=md '# extension=md' '#extension=md' | sed '/^#
extension=md/s/# //'

$ printf "%s\n" extention=md '# extension=md' '#extension=md' | sed '/^#
extension=md/s/^# extension=md.*/extension=md/'


Note that this e-mail is folded by my mailer.

--
John Doe



Re: [FIXED] Re: brltty=huge distraction for folks that don't need it.

2022-01-02 Thread john doe

On 1/3/2022 4:44 AM, gene heskett wrote:

On Sunday, January 2, 2022 9:57:05 PM EST Jean-Philippe MENGUAL wrote:

Hi,

Le 02/01/2022 à 23:53, gene heskett a écrit :

Greetings All;

Without any conscious prompting by me, te debian 11.1 netinstall for
x86-64 systems installed and setup whatever was needed to bring the
screen reader to life.


That is strange. Should not happen. The accessibility is installed only
if you press s or if you plug a braille device.


Any thing related to a braile function that I try to remove wants to
kill
another 2 or 3 gigs of system with it.


Perhaps you can provide your /var/log/installer log somewhere to enable
the team to see what happent? Better, you could report bug to
debian-installer (but probably show here the log first). The log will be
required anyway.


That's now a month back in history, and this time the dependency hell did
not occur so My Next problem is BIQU's, their best BX 3d printer is not
"square". But that is not debians problem and I can, given time and
caffeine, fix that.


Quite distracting to a sighted user when that robotic voice, speaking a
very broken bandwidth of what might be english, blaring out of ones
speakers 20 db louder than firefoxes audio can I am sure, find a way to
silence this w/o destroying the rest of the system. Removing orca will
shut it up, but that leaves brltty spamming the daemon.log complaining
about a missing library every 5 seconds.  And that's close to 40
megabytes a week.


Note waiting for a good solution for packages, in your desktop, you can
disable the accessibility via the control panel.


And where do I find this "control panel".


So, how does one shut up this useless to me, screen-reader and kill the
log spamming at the same time?


Other advice has fixed that.


ALso see wiki.debian.org/accessibility where you see the gsetting line
to enable accessibility (type the same one replacing true with false to
revert the thing).


I think its great that folks have gone to that effort for the sightless,
but why is that sort of stuff always made mandatory.


That is a bug I see for the first time. Hence my interest for a log, as
so far no one reported it AFAIK.



The sooner you report an issue, the quicker it can be fixed for the
comunity!!! :)

It would be nice if you could replicate the issue and file a bug report
against the Debian Installer with the D-I logs.

--
John Doe



Re: Mystery Printer

2022-01-04 Thread john doe

On 1/4/2022 12:18 PM, A_Man_Without_Clue wrote:

Hi all,

I have a printer, Brother DCPJ562N connected to the Debian Buster PC via
USB. Brother printer driver is installed. This printer is shared on the
wired network.

Now, today I was trying to print the document from another PC (Debian
Bullseye) and it did print it normally. But then I realized that the PC
which the printer is connected was not ON.
How come the printer is still accessible from other PC then?



Looks like you have a network printer the 'N' in the model name.
So my guess is that your printer is connected to your network.


Is it normal? I just cannot understand why.



I would say yes if you have a network printer (wireless/wired).

--
John Doe



OT: Recommendation for a new Debian laptop

2022-01-11 Thread john doe

Debians,

i've been using a laptop for a fiew years now and before this laptop
dies on me I would like to buy a new laptop.

I'm thinking about two options:
- Buying something of the shelph and installing Debian on it
- Buying a pine64 or alike
- Any other alternative?

The only requirement is to have virtualisation available.

Basically, I'm looking for some feedback to have a laptop with Debian on it.

Any suggestion is appreciated.

--
John Doe



Re: Bullseye Installer Fails to find soundcard

2022-01-14 Thread john doe

On 1/15/2022 6:04 AM, David J. J. Ring, Jr. wrote:

I'm just a user.  I've been trying to install Bullseye since the Release 
Candidates, no luck.

The accessible text installer fails to find my sound card.  I think my sound 
card is the
second one that Debian finds, so I select that.

I do get sound in console once installed, but a blind person would not be able 
to install
as there is no sound, unless they had a braille device.

I've contacted debian-accessibility and debian-boot, but I just don't know 
where the problem
is, Samual from debian-accessibility says it's alsa, but I'm not a programmer, 
or developer, I'm
just a user.

I've spent hundreds of hours trying to install Debian Bullseye.  The last 
release of Debian Buster
installs perfectly, it detects my sound card, I have sound during installation, 
and upon reboot.

But suddenly in Debian Bullseye, something has changed. No sound during 
accessible text installtion.

I don't know who to report this bug to.



Looks like a ticket is already opened 'Re: Bug#1002976:
installation-reports: Installer Fault Accessibility No Screen Reader Heard'.

This thread is also on the debian-accessibility and the debian-boot lists.

--
John Doe



Re: OT: Recommendation for a new Debian laptop

2022-01-14 Thread john doe

On 1/12/2022 9:29 AM, Jeremy Ardley wrote:


On 12/1/22 4:12 pm, Jeremy Ardley wrote:



The only requirement is to have virtualisation available.


My advice is if you are going to be doing any virtual work is get a
laptop with

- decent processor ( I use Ryzen mid range )

- Expandable memory to 32G

- NVME PCIe system drive (256G upwards)

- Large internal secondary drive - typically SATA 1G +

In terms of things just working nicely, I prefer ASUS, but most brands
with those specs will be able to do all you want.

Standard off the shelf systems are either very expensive or don't have
the memory and disk you will need.

Get the cheapest one with the capabilities needed and do the upgrades
yourself for usually a lot cheaper

--

Jeremy


Typical laptops off the shelf offer 8G ram, 256G drive (beware of SATA
instead of preferred PCIe) and if you are lucky a 1T SATA secondary HDD
(mistake in previous post 1T not 1G).

Check the specs on these to see how much RAM you can upgrade to. 32G or
better is what you want.

And always get a good CPU to start with. Ryzen 5 is very workable.




I've looked a bit online and laptops with a Ryzen CPU (5 .../7 ...) are
between 550 and 1000 box or more.
is this price range what you were suggesting?

IN other words, if you were to buy a new laptop which one would you pick.


Thanks all for the model suggestions and ensuring that KVM support is
available.

--
John Doe



Re: Please take this as constructive

2022-01-17 Thread john doe

On 1/18/2022 7:47 AM, R. Toby Richards wrote:

Every time that I search for solutions to my wifi drivers, the solution is
to apt-get install a bunch of drivers. Why does nobody realize that apt'ing
anything is a non-solution: How can I apt-get install  if
I don't have network drivers? There are DOZENS of responses to questions
about network drivers that say to apt-get install various packages without
any thought to the fact that nobody can apt without first having network
drivers. It's seriously starting to  me off. I've got computers with
Broadcom wifi. How the heck am I going to fix that by using networking to
download the gosh darn drivers to fix the networking that I don't have? Of
the dozens of "solutions" that I've read about this, NOBODY ever thinks
about how to fix the network driver without having a network driver.

Do I know how to use sneakernet? Yes. In my young adulthood, email was
dialing into a BBS that would then dial the next closest free telephone
call to another BBS, and so forth until your message from California got to
the East Coast. Days. I remember trucks with huge spools of
punch-cards that were data for the mainframe.

When I try to use sneakernet to overcome the networking issues then I get
errors from dpkg that it can't install debs because ldconfig and
start-stop-daemon aren't available. I haven't bothered searching for the
debs that provide those things because I cannot use a deb to fix dpkg
because dpkg doesn't function.

The catch-22's are endless. In my case, I need Broadcom drivers. I can't
get b43 over the network. I can't use sneakernet for b43 debs because dpkg
doesn't work (let alone finding all the dependencies and dependencies of
dependencies and so forth).

Now what?



Simply get the driver and give it to the installer or use firmware*.iso.

--
John Doe



Re: Creating a tap device.

2021-03-15 Thread john doe

TL-DR.

On 3/14/2021 4:54 PM, pe...@easthope.ca wrote:

From: "Alexander V. Makartsev" 
Date: Sun, 14 Mar 2021 11:41:47 +0500

But it wasn't creating a device with chosen name anywhere under "/dev" or 
"/dev/net/".
I believe, "/dev/net/tun" device is created when "tun" kernel module is 
inserted.


Crucial tip.  Thanks Alexander.

Consequently I made these arrangements.

(1) Put "tun" in /etc/modules.

peter@joule:/home/peter$ grep tun /etc/modules
tun



Is the tun module also for the tap module?
I could be rong but I would not mix both of them.


(2) Put "@reboot ip tuntap add mode tap tap0" in /etc/crontab.

peter@joule:/home/peter$ grep tap  /etc/crontab
@reboot ip tuntap add mode tap tap0

(3) Reboot.

(4) Verify that tap0 is present.

peter@joule:/home/peter$ ip link show dev tap0
6: tap0:  mtu 1500 qdisc pfifo_fast state UP mo
de DEFAULT group default qlen 1000
 link/ether 0a:c1:8e:81:78:aa brd ff:ff:ff:ff:ff:ff

Good.  Tomorrow will try a few more steps.



Note that with Libvirt and simply creating a bridge, makes guests
visible on the network.

--
John Doe



Re: Slow connections - DNS problems?

2021-03-24 Thread john doe

On 3/24/2021 6:32 AM, Charlie Gibbs wrote:

I read Usenet (including this mailing list via the newsgroup
linux.debian.user) on my laptop. so I can keep up from anywhere.
It works well, but at home it takes 20 or 30 seconds to connect
to my NNTP server, newsguy.com.  If I take my laptop to the office
and run slrnpull there, it connects instantly.  I've mentioned this
to people in the past, and the consensus seems to be that it's some
sort of DNS problem.

My laptop is running NetworkManager.  When I wake it up at
a new location, resolv.conf (which is actually a link to
/run/NetworkManager/resolv.conf) gets overwritten with
information that works where I now am.  At the office,
it's simply:

# Generated by NetworkManager
nameserver 192.168.1.5
nameserver 192.168.1.1

while at home it becomes more intricate:

# Generated by NetworkManager
search telus
nameserver 192.168.0.1
nameserver 75.153.171.122
nameserver 2001:568:ff09:10a::56
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 2001:568:ff09:10b::122

My home router (supplied by Telus, notice the "search" line)
shows two DNS addresses - 75.153.176.1 and 75.153.171.122 -
on its configuration screen.  The second address (but not the
first) winds up in resolv.conf.  The router is at 192.168.0.1.
Dunno about those IPv6 addresses; I've made no conscious effort
to use IPv6 anywhere.

I suspect there's something fishy about that home resolv.conf;
can one of you gurus suggest what it might be?



Some hints as I'm not that savvy in DNS.

The first line in the resolv.conf is a private ipv4 and I would assume
that your dns queries are first going there then would fallback to the
public addresses incase of failure.

Any chance you can bypass your ISP router (bridge mode/using your own
router)?
If yes, this would tell you if the ISP router is at fault.
'dig' could help you there as well.


Is everything slower at home in comparison with what you have at work?
That is, is name resolution  always faster at work than at home.

--
John Doe



Re: Running a FreeBSD guest

2021-03-24 Thread john doe

On 3/24/2021 9:55 AM, didier gaumet wrote:

Le 24/03/2021 à 03:12, Victor Sudakov a écrit :


The relation between qemu and kvm confuses me. "apt install qemu-kvm" is
trying to install a ton of X11 packages including Mesa drivers etc, I
would not really want that. And "apt install kvm" does not find such a
package.


QEMU/KVM relationship:

as I see it (but someone with a real understanding of the subject -that
I do not have- could be horrified by what I say):
- KVM is roughly a Linux(-only) kernel module that permits the use the
Linux Kernel as the basis of an hypervisor and the access to hardware
acceleration. But it is not by itself a whole virtualization solution
- QEMU is a multi-platform virtualization solution that does not require
hardware acceleration and does not by itseelf provide a way to use this
acceleration. In the past many accelerators had been available
- today a common way to virtualize a guest in a linux host is to use
Qemu with the KVM kernel module (and invoking KVM is really invoking Qemu)

more (and more pertinent) info here:
  https://en.wikipedia.org/wiki/QEMU
  https://en.wikipedia.org/wiki/Kernel-based_Virtual_Machine

QEMU/X11 relationship:
- I do not really know how to install Qemu without X11 nor if it
possible without the loss of CLI features. Possible solutions could be
to install packages with the "without recommended" option, to forbid
installation of packages by establishing preferences (cf apt_preferences
manpage). A possible culprit is qemu-system-gui and you could forbid its
installation. I do not know if running Qemu immplies that a X11 server


The Debian's wiki (1) suggest one way to install qemu-kvm with Libvirt
for a server.
Note that if you go this way, you might require some pkgs along the way.


1)  https://wiki.debian.org/KVM#Installation

--
John Doe



Re: Running debian on WSL (windows-system-for-linux)

2021-03-26 Thread john doe

On 3/26/2021 4:02 AM, Dan Hitt wrote:

Does anybody have any experience running debian on a WSL
(windows-system-for-linux) machine?



I'm not able to directly answer your question but I wanted to point out
that you could also look at Cygwin or Qemu.

In the case of Qemu, Debian would be the host and Windows the guest or
the otherway around can also work.

HTH.

--
John Doe



Re: MX patito feo 19.3 : trying to apt upgrade

2021-03-30 Thread john doe

On 3/30/2021 10:27 AM, ellanios82 wrote:

Hello List ,

  - since 3 or 4 days, i have not been able to

  "apt upgrade" , and --fix-missing does not solve problem



  this is what am seeing :

"Need to get 50.7 MB/51.0 MB of archives.
After this operation, 3,768 kB disk space will be freed.
Do you want to continue? [Y/n]
Ign:1 http://ftp.cc.uoc.gr/mirrors/linux/mx/mx/repo buster/main amd64
mx-docs all 20200817mx19+1
Err:1 http://ftp.cc.uoc.gr/mirrors/linux/mx/mx/repo buster/main amd64
mx-docs all 20200817mx19+1
   404  Not Found [IP: 2001:648:2c00:6c05::2 80]
E: Failed to fetch
http://ftp.cc.uoc.gr/mirrors/linux/mx/mx/repo/pool/main/m/mx-docs/mx-docs_20200817mx19+1_all.deb
404  Not Found [IP: 2001:648:2c00:6c05::2 80]
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?"

...

  - What, please, may i try next, to resolve problem?


  thank you

.




For some reasons, the mirror is not working.
I would try an other mirror.

--
John Doe



Re: Temporary failure in name resolution

2021-03-30 Thread john doe

On 3/31/2021 4:21 AM, Dan Norton wrote:

After the 10.9 upgrade, name resolution is not working for me. Does anyone else 
see this?

My desktop is a wifi server for laptop access using windows. That works OK but 
the server, attached by ethernet to the DSL modem does not get names resolved 
since the upgrade. The resolvconf program is not


With a desktop environment (Mate/Gnome...)?

installed according to whereis.


# cat /etc/resolv.conf
domain attlocal.net
search attlocal.net
nameserver 192.168.1.254

If that's not the right nameserver then what is?


IS the DNS serverat 192.168.1.254 working?



$ ping google.com
ping: google.com: Temporary failure in name resolution

$ ping -c2 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=21.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=21.2 ms

--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 21.148/21.188/21.229/0.151 ms



Are those pings done on the server or on the clients?


# systemctl status systemd-resolved
shows it being active and "Processing requests...".
>
Nothing in history.log and term.log is obviously wrong to me FWIW.

# journalctl -b0
gives no clue to me.

No doubt it is something simple(tm). Where should I look or what should I 
re-read?

  - Dan Norton



Did you do a 'systemctl reboot' to restart the server?

--
John Doe



Re: scanner recommendation

2021-04-18 Thread john doe

On 4/18/2021 9:57 PM, Default User wrote:

Hi!

It may be time for a new scanner.

For years I have used a Visioneer OneTouch 7100 usb flatbed scanner on
various x86 computers running various versions of Debian and
simple-scan.

Currently:
Debian Unstable (updated, of course)
Linux 5.10.0-6-amd64 #1 SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux
Cinnamon 4.8.6-2
Dell Inspiron 3542 (laptop, circa 2015), 64-bit
Scanner software: simple-scan, from Debian Unstable repositories
Use case: light duty home use.

For years it worked "okay".  But it suddenly started producing scans
with a narrow pink stripe down the left side of the scan image
produced.

I tried installing xsane (too complicated for me), which I did not
configure at all.  And if I just clicked the scan button in xsane it
would "dim out" and then do nothing.  As a bonus, simple-scan then no
longer worked; upon clicking scan in simple-scan it would just do
nothing, with a rotating "activity busy" circle displaying
indefinitely.

So I uninstalled (purged) both xsane and simple-scan, re-installed
simple-scan, then rebooted.
Simple-scan now "works", but still produces the pink stripe down the
image left side, just as before.

: (

Note: the scanner is (about) 20 years, so no parts or service
available from Visioneer.

: (

So . . .
Can anyone recommend a good replacement scanner?

I am really hoping to get something that works "out of the box", with
little or no configuration, etc.



You could choose a scanner that is 'complete'ly supported from the Sane
(1) project

1)  www.sane-project.org/sane-mfgs.html#SCANNERS

--
John Doe



Buster Apache php website in other lang than os

2021-04-20 Thread john doe

Hello all,

I'm playing with Apache2 and php.

I'm making a website in an other language than the one Debian Buster is
using.

That is, Buster is in English but the website is written in Duch or any
other language then English.

What do I need to do in Apache and in PHP for it to properly render the
language the website is written in?

Do I need to generate the locales for the desired languages?
Do I need to also do something in Apache?

Any help is appriciated.

--
John Doe



php -f index.php works but not when access from apache Debian Bullseye

2021-04-20 Thread john doe

Debians,

I'm working on a website mixing PHP and HTML, if I do the command 'php
-f index.php' it works, but in Apache it is not working.

I don't understand what Im doing rong, Aache'slog is not giving any clue.

I'm not sure what to do to understand where this is coming from.

Any help is appriciated.

--
John Doe



Re: php -f index.php works but not when access from apache Debian Bullseye

2021-04-20 Thread john doe

On 4/20/2021 8:10 PM, john doe wrote:

Debians,

I'm working on a website mixing PHP and HTML, if I do the command 'php
-f index.php' it works, but in Apache it is not working.

I don't understand what Im doing rong, Aache'slog is not giving any clue.

I'm not sure what to do to understand where this is coming from.

Any help is appriciated.



I got it working by modifying the lines in
/etc/apache2/mods-enabled/php[version].conf.

--
John Doe



Re: Buster Apache php website in other lang than os

2021-04-20 Thread john doe

On 4/20/2021 1:15 PM, IL Ka wrote:



What do I need to do in Apache and in PHP for it to properly render the
language the website is written in?

Do I need to generate the locales for the desired languages?
Do I need to also do something in Apache?



Just write your document and save it in utf-8. Be sure to include
   
tag.

This should be enough to display this page in the modern browser.

If you want to serve different pages based on user language, you can use
mod_mime
https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addlanguage

You may also want to set locale: some PHP functions may use it for sorting
etc.
https://www.php.net/manual/ru/function.setlocale.php

Generate locale first (see ``locale-gen(8)``) and set its name using
``setlocale`` in php.



Thank you, as it turned out I was looking at the rong page!


--
John Doe



Re: exim update not responding to update-rc.d

2021-05-04 Thread john doe

On 5/4/2021 7:28 PM, Erwan David wrote:

Le 04/05/2021 à 19:26, Joe a écrit :

On Tue, 4 May 2021 10:03:43 -0700
cono...@rahul.net (John Conover) wrote:


Greg Wooledge writes:

On Tue, May 04, 2021 at 09:17:38AM -0700, John Conover wrote:

Searching for exim in
/etc/systemd/system/multi-user.target.wants/* and
/lib/systemd/system/* yields nothing.

How do I stop exim from launching across boots?

Presumably there is a systemd service, which is enabled.  You will
want to disable it.


That was the question, Greg:

 "Searching for exim in
 /etc/systemd/system/multi-user.target.wants/* and
 /lib/systemd/system/* yields nothing."

so, it wasn't there. Which service?, (or how to find out?) Or, maybe,
it is under /etc/init.d/exim4, which failed to work, so, I was looking
into the systemd control files.


Try exim4.service


apt-file tells me trhere is a exim4-base.service (from package exim4-base)



You could look in the log for the service name then do 'systemctl
disable '.

I just want to mention 'inserv' but you should use systemd.

--
John Doe



Re: Shorewall and libvirt

2021-05-06 Thread john doe

On 5/6/2021 5:03 AM, Charles Curley wrote:

For years, up through Buster, I have had a nice setup with virtual
machines on my laptops, with firewalling provided by shorewall and
rules I have added over the years. As I move from network to network,
the firewall is reconfigured, and the VMs continue to work. I also have
scripts that detect my home networks, and re-do the firewall for use on
the home network.

Now, with Bullseye, I seem to be hitting a brick wall. Something --
libvirt?? -- is mucking with my firewalling and breaking the virtual
internal networking.

What is the preferred way of running libvirt on a laptop? I do not
*have* to have shorewall, but would like some sort of firewall tool.



First you need to disable libvirt from playing with iptables, I changed
(virsh net-edit default) from:
  

to:

  

Then you can use whatever firewalling solution you like (this is
documented in Libvirt's doc).


Remember that Bullseye as nftables per default, you might want to switch
back to iptables for Shorewall to work properly.

--
John Doe



Issue using expo and expo go on the lan

2021-05-06 Thread john doe

Debians,

I'm required to use 'expo' as a server and to use the 'expo go' app on a
android device to create apps

On Bullseye, I have installed 'nodejs' and 'npm' 'expo-cli' using 'npm'.

I have created an new app with 'expo init myapp' then I do:
$ cd myapp
$ expo start
This starts the "server" and I can access it at the specified URI
(http:://xxx.xxx.1.5:19000) from a web browser.
Strangely, I see the content of the file app.json but not the app it self.

I have a fiew questions:
- Why am I seeing the content of the *.json file and not the app (I
would like to see the app on android an at the same time in the browser)?
- Do I need to open other ports than the one shown when starting the
server (per default 19000)?
- The android device can't access the server at 'exp://xxx.xxx.1.5'?


Any feedback is appriciated.

--
John Doe



Re: Shorewall and libvirt

2021-05-06 Thread john doe

On 5/6/2021 8:13 PM, Charles Curley wrote:

On Thu, 6 May 2021 09:49:29 +0200
john doe  wrote:


First you need to disable libvirt from playing with iptables, I
changed (virsh net-edit default) from:


to:




Thank you, that seems to have worked.



Then you can use whatever firewalling solution you like (this is
documented in Libvirt's doc).


I missed it. Sorry.



It is hard to spot it, I was simply mentioning it to let you validate
what I was saying and not to put you on the spot!




Remember that Bullseye as nftables per default, you might want to
switch back to iptables for Shorewall to work properly.


Done, thank you.



:)



During this whole fiasco, I noticed a problem with virtmanager. The
Bullseye version lets the user edit the XML. This is nice, because it
then applies whatever changes the user makes. However, as soon as you
hit the apply button, the displayed XML reverts to the original. The
file is correct, as indicated by cat, but the display is wrong.
Similarly, if you edit externally, even with virsh net-edit, the GUI
does not pick up the changes. I believe this is a serious bug.



I'm only using the CLI.

I would file a bugreport about this on the libvirt mailing list or on
Github! :)

--
John Doe



Re: Issue using expo and expo go on the lan

2021-05-06 Thread john doe

On 5/6/2021 5:35 PM, Dan Ritter wrote:

john doe wrote:

I'm required to use 'expo' as a server and to use the 'expo go' app on a
android device to create apps

On Bullseye, I have installed 'nodejs' and 'npm' 'expo-cli' using 'npm'.

I have created an new app with 'expo init myapp' then I do:
$ cd myapp
$ expo start
This starts the "server" and I can access it at the specified URI
(http:://xxx.xxx.1.5:19000) from a web browser.
Strangely, I see the content of the file app.json but not the app it self.

I have a fiew questions:
- Why am I seeing the content of the *.json file and not the app (I
would like to see the app on android an at the same time in the browser)?


I don't know anything about this system, but I do know this:
when a web-like server is showing you the contents of something
rather than executing it, the web-like server is misconfigured
in some way. Start looking in logs.



Looks like you can not have both (web, android) at the same time.
Thanks for the hints DSR.


--
John Doe



Putting small web site online

2021-05-11 Thread john doe

Debians,

I need to have a small web site online but I don't have a commercial
link nor a server at home that can be publickly available.

I'm planning to test/build the web site locally then have it published
where it is publickly available.

I'm thinking of using Gitlab to host my web site do you have a better
solution when you can't host your web site yourself?

Any feedback is appriciated.

--
John Doe



Re: Putting small web site online

2021-05-14 Thread john doe

On 5/12/2021 11:27 AM, Joel Roth wrote:

Hi john,

john doe wrote:

Debians,

I need to have a small web site online but I don't have a commercial
link nor a server at home that can be publickly available.

I'm planning to test/build the web site locally then have it published
where it is publickly available.

I'm thinking of using Gitlab to host my web site do you have a better
solution when you can't host your web site yourself?


freeshell.de is free with registration. They run debian.
You get a full shell environment, which probably means more
flexibility than gitlab. You can use PHP, python or perl
with a mysql database if you like. And the admin answers
emails.

Speaking as a satisfied (mostly dormant) user.




Thank you for this, much appriciated.

I'm testing surge.sh which looks to be what I was looking for.

Also, I'd like to thank everyone who has chimed in, much appriciated.

--
John Doe



Re: kernel: perf: interrupt took too long

2021-05-25 Thread john doe

On 5/24/2021 5:55 AM, Richard Hector wrote:

Hi all,

I see messages like this frequently for a day or two after rebooting a
particularly slow old machine (Atom-based HP thin client, running as an
OpenVPN endpoint):

May 23 05:36:37 ovpn kernel: [14268.392418] perf: interrupt took too
long (4020 > 3996), lowering kernel.perf_event_max_sample_rate to 49750

Would it be a good idea to set this value at boot time, rather than
waiting for it to auto-adjust down till it settles?

Actually I don't know if it's because the machine is slow; it's just the
only machine I see this on.



At the time I've looked at this, I came to the conclusion that a cure
was worse than the illness.

--
John Doe



Re: LVM raid0

2021-05-28 Thread john doe

On 5/28/2021 8:31 PM, Gokan Atmaca wrote:

Additionally I found something like the following in the dmesg logs.

[Fri May 28 14:14:19 2021] x86/cpu: VMX (outside TXT) disabled by BIOS
[Fri May 28 14:14:20 2021] r8169 :06:00.0: unknown chip XID 641
[Fri May 28 14:14:22 2021] device-mapper: table: 253:2: raid: Failed
to run raid array
[Fri May 28 14:14:22 2021] device-mapper: table: 253:2: raid: Failed
to run raid array
[Fri May 28 14:15:25 2021] hdaudio hdaudioC0D2: Unable to bind the codec

On Fri, May 28, 2021 at 9:27 PM Gokan Atmaca  wrote:


Hello

I did LVM raid 0. But when reboot the disks come as "inherit".
What would be the reason ?

lvdisplay
   --- Logical volume ---
   LV Path/dev/vg2t/lv-st0
   LV Namelv-st0
   VG Namevg2t
   LV UUIDJOfIdw-8uhQ-OvsF-4Sdp-LMDm-NEVv-UMjFDW
   LV Write Accessread/write
   LV Creation host, time ob, 2021-05-28 10:46:49 -0400
   LV Status  NOT available
   LV Size1.81 TiB
   Current LE 474482
   Segments   1
   Allocation inherit
   Read ahead sectors auto

   --- Logical volume ---
   LV Path/dev/vg2t/lv_storage14t
   LV Namelv_storage14t
   VG Namevg2t
   LV UUIDjHbg36-GKU0-Mked-PbMd-Vnio-IPbE-lpGWD4
   LV Write Accessread/write
   LV Creation host, time ob 2021-05-28 13:41:04 -0400
   LV Status  NOT available
   LV Size14.50 TiB
   Current LE 3801088
   Segments   1
   Allocation inherit
   Read ahead sectors auto


Thanls.




--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄




Is your '/etc/crypttab' file properly populated?

--
John Doe



Re: LVM raid0

2021-05-28 Thread john doe

On 5/28/2021 8:58 PM, Gokan Atmaca wrote:

Is your '/etc/crypttab' file properly populated?


There is no encrypted volume.



That file (1) needs to be  populated for it to work at boot! :)


1)
https://wiki.archlinux.org/title/Dm-crypt/System_configuration#Mounting_at_boot_time

--
John Doe



Re: problem with speedtest-cli

2021-06-10 Thread john doe

On 6/10/2021 6:08 PM, kaye n wrote:

Hello guys

kaye@laptop:~$ speedtest-cli
Retrieving speedtest.net configuration...
Traceback (most recent call last):
   File "/usr/bin/speedtest-cli", line 11, in 
 load_entry_point('speedtest-cli==2.0.2', 'console_scripts',
'speedtest-cli')()
   File "/usr/lib/python3/dist-packages/speedtest.py", line 1887, in main
 shell()
   File "/usr/lib/python3/dist-packages/speedtest.py", line 1783, in shell
 secure=args.secure
   File "/usr/lib/python3/dist-packages/speedtest.py", line 1027, in __init__
 self.get_config()
   File "/usr/lib/python3/dist-packages/speedtest.py", line 1113, in
get_config
 map(int, server_config['ignoreids'].split(','))
ValueError: invalid literal for int() with base 10: ''

I don't know what's wrong.


I would file a bug report to the Debian package and maybe upstream.

--
John Doe



Re: How to manage a firewall script with minor tweaks for different machines?

2021-06-12 Thread john doe

On 6/12/2021 6:02 PM, Anssi Saari wrote:


I've recently setup nftables firewalls on the machines of my little home
network. I was a little optimistic and thought I could get by with a
simple one that only allows ssh and nfs in i.e. two TCP ports and mDNS
with its slightly more complex rules.

But then... One machine has a radius server that needs UDP port 1812
open. And another is a print server with CUPS and SMB which apparently
need at least TCP ports 631 and 137 open.

How could I neatly incorporate these minor tweaks in a single nft
script? I was thinking of git branches where I can make changes to the
"main" firewall and merge those changes to the slightly tweaked
branches. Or possibly also some preprocessor type of thing that
generates three versions of the firewall script. Or just generate the
whole nft scripts with the small variants. Just wondering what other
people are doing with this sort of thing?

I also need some way of pushing these firewall scripts and other config
stuff over to the machines too. It's not a huge network but manually
logging into each machine, overwriting /etc/nftables.conf and restarting
nftables.service is a pain. cdist looks interesting and simple, does
anyone have experience with it?



You could have one common file that includes a custum file (1).
You would have one custum file per host (custum-cups, custum-smb ...).

This approach would require to always push two files(common and
custum-*) using SSH for example.

To automate that pushing step and reloading of the rules, you would have
to create a litle script that would do that based on argument:

$ push.sh cups

$ cat push.sh
#!/bin/sh

case $1 in
cups)
remote_ip = ''
scp common-cups custum $remote_ip:
;;
smb)
remote_ip = ''
scp common custum-smb $remote_ip:
;;
esac

ssh $server_ip ""



Note 1: I'm not using nftables, so I don't know the actual command to
reload your newly pushed config nor the location for the rules files! :)

Note 2: The script is an example only and should not be used as such.

HTH.

1)  https://wiki.nftables.org/wiki-nftables/index.php/Scripting

--
John Doe



Re: Server setup

2021-06-13 Thread john doe

On 6/13/2021 7:57 PM, Polyna-Maude Racicot-Summerside wrote:

Hi,

On 2021-06-13 1:52 p.m., Georgi Naplatanov wrote:

On 6/13/21 7:53 PM, Polyna-Maude Racicot-Summerside wrote:

Hi,


If you read the part of my message I've left you'll see that :

1st, I'm using a OVH server but it's provided by one-provider, so the
interface (aka Wizard) ain't the same.

2nd, I am asking how to do something using command line interface. So
don,t tell me "Hey dude, use a wizard".

3rd, regarding contacting tech support. You really think it's OVH's job
to explain to me how to install OS using network boot and a shell
interface ? I doubt

Just a little hint for life... If someone is telling you, I'm fucked
using a CLI and they seem to have a basic knowledge of what they are
doing. Then think twice and you'll get in your mind that they've already
exhausted the easy one of using a click and poop solution like a wizard.



Dear Polyna-Maude,

I'm very sorry if I have made you feel bad.

I have not used dedicated servers for years so excuse me for not being
familiar with OVH or whatever company you use for VPS or dedicated
servers. My point is that there should be something like configurator
(wizard, template or whatever) what has to help you to do initial
configuration of OS - partitions, RAID level, network configuration and
minimal OS installation, and - yes - if that is not Debian installer
then yes - you can ask technical support to provide information for the
tool they use.

Kind regards
Georgi



You must also have a huge need to answer question without reading what
they are.



The same as yours spitting out the same thing for the third time.


I ain't using the Debian installer because I don't have access to the
KVM (Keyboard, Mouse, etc).

So if you read back my message.
I boot using a rescue system over the network.
I do my partition.
I make the filesystem.
I mount.
I use debootstrap.
And after I need to configure boot, this is where it blocks.
So how useful is your answer to use "the wizard in the installer ?".
And no there's no configuration helper (said it for the 3rd time now).



Apparently you are not here to get some help.


If you can't help... Just a hint, do same as I do, you let other people
answer.



If you can't express yourself clearly enough, that is where the issue
lies not on the person trying to help you.

Assuming that you are hoping for an answer, please be mindful of the
tone you use.

--
John Doe



Re: Server setup

2021-06-13 Thread john doe

On 6/13/2021 8:12 PM, john doe wrote:

On 6/13/2021 7:57 PM, Polyna-Maude Racicot-Summerside wrote:

Hi,

On 2021-06-13 1:52 p.m., Georgi Naplatanov wrote:

On 6/13/21 7:53 PM, Polyna-Maude Racicot-Summerside wrote:

Hi,


If you read the part of my message I've left you'll see that :

1st, I'm using a OVH server but it's provided by one-provider, so the
interface (aka Wizard) ain't the same.

2nd, I am asking how to do something using command line interface. So
don,t tell me "Hey dude, use a wizard".

3rd, regarding contacting tech support. You really think it's OVH's job
to explain to me how to install OS using network boot and a shell
interface ? I doubt

Just a little hint for life... If someone is telling you, I'm fucked
using a CLI and they seem to have a basic knowledge of what they are
doing. Then think twice and you'll get in your mind that they've
already
exhausted the easy one of using a click and poop solution like a
wizard.



Dear Polyna-Maude,

I'm very sorry if I have made you feel bad.

I have not used dedicated servers for years so excuse me for not being
familiar with OVH or whatever company you use for VPS or dedicated
servers. My point is that there should be something like configurator
(wizard, template or whatever) what has to help you to do initial
configuration of OS - partitions, RAID level, network configuration and
minimal OS installation, and - yes - if that is not Debian installer
then yes - you can ask technical support to provide information for the
tool they use.

Kind regards
Georgi



You must also have a huge need to answer question without reading what
they are.



The same as yours spitting out the same thing for the third time.



To 'Georgi Naplatanov', my inttention was not to imply that your answer
was bad/incorrect.

My apologies if this was the case.

--
John Doe



Re: upgrade to testing

2021-06-15 Thread john doe

On 6/15/2021 7:26 PM, Wil wrote:

How do I upgrade from Debian stable to Debain testing?


By following the instructions available on the Debian web site (1)!

In a nutshell, change 'buster/stable' to 'bullseye/unstable' in
/etc/apt/sources.list'.:

$ apt-get update && apt-get full-upgrade


Note that you can also use 'apt' instead of 'apt-get'.

Do not  do this blindly on a production server though.

1)
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-upgrading.en.html

--
John Doe



Re: upgrade to testing

2021-06-15 Thread john doe

On 6/15/2021 8:10 PM, Henning Follmann wrote:

On Tue, Jun 15, 2021 at 07:50:05PM +0200, john doe wrote:

On 6/15/2021 7:26 PM, Wil wrote:

How do I upgrade from Debian stable to Debain testing?


By following the instructions available on the Debian web site (1)!

In a nutshell, change 'buster/stable' to 'bullseye/unstable' in
/etc/apt/sources.list'.:




Should have been 'testing' and not 'unstable'.


Not totally true though. There have been a few changes.
So if you just replace buster with bullseye it might not work.


Here is an example of an working bullseye sources.list


# testing

deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

deb http://security.debian.org/debian-security bullseye-security main contrib 
non-free
deb-src http://security.debian.org/debian-security bullseye-security main 
contrib non-free

deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free




In addition to Henning Follmann 's answer:

On buster the '/etc/apt/sources.list' file might look like:

"deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian-security buster/updates main
deb-src http://deb.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main"

And on Bullseye:

"deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

deb http://deb.debian.org/debian-security bullseye-security main
deb-src http://deb.debian.org/debian-security bullseye-security main"


Mind the security lines!

--
John Doe



Re: Buster on Win 10 Problems

2021-06-29 Thread john doe

On 6/29/2021 9:07 PM, Stephen P. Molnar wrote:



On 06/29/2021 12:46 PM, ellanios82 wrote:

On 6/29/21 6:36 PM, Stephen P. Molnar wrote:

have dual booted platforms in the past, and would prefer not to do so
to solve the problems





 - juz sayin'  : some years back , i had need for a Windows program :
put Virtual-Box on Linux desktop : result was Alfa-Alfa-Perfect . . .
no probs whatsoever : terrific  !!



 regards

.




Thanks for the reply and suggestion. As a matter of fact I have just
that on my main platform, running Buster. I can't say that I'm impressed
with the performance.

However, I need to put a suite of Computational Chemistry programs on my
Win 10 Laptop, both as a backup for my main platform and for traveling.



Can't you have all required applications working on Linux?
One option would be to have linux on your laptop and Windows as a VM.

I find Qemu with KVM(linux) or haxx (Windows) better than virtualbox.

That would take sometime to set up but would be less time consuming then
trying to to compile linux stuff on Windows.

--
John Doe



Re: Mail Reader

2021-07-07 Thread john doe

On 7/8/2021 5:41 AM, Polyna-Maude Racicot-Summerside wrote:

Hi guys (and possibly girls),

I am currently using Thunderbird as a mail reader.
It did a good job until now.
I am also using the PGP plugin.

But I am feeling the limits, it also gets somewhat pretty slow (even
with a powerful enough computer) if I need for example delete 100
messages on my mailing list inbox.

I was planning at first to create different folder and copy messages to
each of them, so I have a local archive of my conversation on the Debian
mailing list.

But I've changed my mind as Thunderbird is somewhat slow.

What would any of you suggest as a mail reading software ?
I could use claws-mail
I could use other mail client
I could also install a web based mail client on another server and
possibly create some local folders (don't know if this is possible).
I get my mail for a IMAP server and use SMTP for sending, so this is
pretty much a standard installation.

As I have a unused server in a data center, I wouldn't mind to use it as
a remote mail client. But this is a 2nd choice, I would rather have a
local copy of my messages. This way I can easily do some search, even if
I'm having problem with Internet or copy it onto my laptop, having
access where I don't have access to 3G/4G internet.

Thanks for all the opinions you may give.


LMH/Mutt might fit the bill if you are willing to use the terminal.

--
John Doe



Re: Docker installation problems

2021-07-08 Thread john doe

On 7/8/2021 6:48 PM, Gary L. Roach wrote:


On 7/7/21 4:43 PM, IL Ka wrote:


    I suspect that something might be wrong with the /etc/apt/daemon.json
    file but am not sure what.

try
# dockerd
https://docs.docker.com/config/daemon/#start-the-daemon-manually
<https://docs.docker.com/config/daemon/#start-the-daemon-manually>

Do you see any errors?


Running dockerd produced the following:


root@debian:/etc/docker# dockerd
INFO[2021-07-08T09:44:02.344680610-07:00] Starting up
failed to create API server: Could not load X509 key pair (cert:
"/var/docker/server.pem", key: "/var/docker/serverkey.pem"): open
/var/docker/server.pem: no such file or directory

On my system the /var/docker directory doesn't exist. Further,
server.pem doesn't exist anywhere on my system. Now what?



Looks like you need to generate that file (1).


1)
https://stackoverflow.com/questions/57830003/var-docker-server-pem-no-such-file-or-directory

--
John Doe



Re: Bash: testing a variable

2021-07-09 Thread john doe

On 7/9/2021 9:54 PM, Charles Curley wrote:

I'd like to check two things:

* Whether a given path is not already in the $PATH variable

* Whether the given path already exists

If both are true, I'd like to add the given path to the $PATH variable.

I can add the given path, and test for the existence of the given path.
I can write expressions that work to detect the given path in $PATH.
What I don't seem able to do is combine all that in a script.

Here's what I have for the script:

#!/bin/bash

# A short script for testing some code.

# pelican seems to like local installations here.
SUBSTR="${HOME}"/\.local/bin/
echo Substr is "${SUBSTR}"
# if [[ ! ${PATH} =~ .*/home/charles/.local/bin.* ]] ; then


[[ $PATH =~ \/home\/charles\/... ]] && echo match || echo nomatch

That is, escaping the backslash.


if [[ $( echo "$PATH" | grep -E -v "${SUBSTR}" ) ]] ; then


Try the -q opt to grep or redirecting the output to the null device:

'if $(echo $PATH | grep -v $SUBSTR 2>&1); then'


I call the script with the . operator: ". test.sh"



Personally, I would invoke the script as './try.sh' and use sourcing
('source, '.') to include libraries...
I would also not use 'test' as a name for a script (could be confused
with the test command).


Why do I always end up adding the given path, even if it is already in
$PATH?



Because if there is a match, grep will print the value of the match (in
this case the content of $PATH).
So the condition will always be 0.

--
John Doe



Re: Working for free [was: Offensive variable names]

2021-07-13 Thread john doe

On 7/13/2021 10:54 AM, Reco wrote:


Github (Gitlab, Sourceforge, etc) were and are non-free (as in -
non-gratis) services, so it's only reasonable to stay away from them
regardless of whom is controlling them.

You need to be in control of your code - *you* host it. Always was,
always is. It's not that hard anyway.



So the bottom line is that you need to have a server to host this
yourself but what do you suggest if you don't have the gears/capacity to
do it yourself (VPS ...)?

For the sake of clarity, I'm talking here about the logistical aspect(s)
of not relying on GB/SF/...

--
John Doe



Re: VirtualBox Problem

2021-07-17 Thread john doe

On 7/17/2021 9:00 PM, Stephen P. Molnar wrote:

First off, let me say that I am not trying to start a war or nasty
exchange4of insults.

I am forced by circumstance to run a Linux program on my Windows 10
Laptop. In order to accomplish his I have installed Buster in a
VirtualBox v-6.1. Although the AMD Rizen 5 CPU has eight threads, of
which the VirtualBox only allows four of the threads to be used.

Unfortunately , perhaps not too surprisingly, neither the Windows 10 or
VirtualBox sources seem to have a solution that I can find. Google is
defiantly not my friend.


Can anyone in Linux land be of help?



Not an answer per say.

An alternative to VB is Qemu which works well on Windows and should not
have those limitations.

--
John Doe



Free LAMP VPS hosting

2021-07-18 Thread john doe

Debians,

I have a LAMP configured at home but now I would like to make this LAMP
publickly available to the world.

As it was suggested on this list, it is not reasonable to make my LAMP
available online (security wise/no commercial link).

Looking online for a free VPS I stumbled on (1), is there any other
alternative/other approach?


1)  https://www.gigarocket.net/free-vps.php

--
John Doe



Re: Free LAMP VPS hosting

2021-07-21 Thread john doe

On 7/18/2021 9:36 AM, Georgi Naplatanov wrote:

On 7/18/21 10:07 AM, john doe wrote:

Debians,

I have a LAMP configured at home but now I would like to make this LAMP
publickly available to the world.

As it was suggested on this list, it is not reasonable to make my LAMP
available online (security wise/no commercial link).

Looking online for a free VPS I stumbled on (1), is there any other
alternative/other approach?


1)  https://www.gigarocket.net/free-vps.php




Hi John,

a VPS with 1GB RAM won't serve much clients because one PHP process of
PHP-FPM usually uses between 20 and 50MB RAM. I would recommend shared
hosting or dedicated server for busy sites.

Cheap shared hosting
https://www.machighway.com/

Dedicated servers and other services
https://www.hetzner.com/




Many thanks for this, and also thank you to the others who have
contributed to this thread.

--
John Doe



Re: Makefile help

2021-07-23 Thread john doe

On 7/23/2021 4:10 PM, Grzesiek wrote:

I do not have experience in writing Makefiles. Appropriate Makefile
examples appreciated.



Why do you need to use make?
As far as I understand your question, you are not concernde about the
'mtime'.

--
John Doe



Re: Google sites don't work

2021-08-01 Thread john doe

On 8/1/2021 3:18 PM, Kleene, Steven (kleenesj) wrote:

On Saturday, July 31, 2021 4:54 PM I wrote concerning firefox-esr:

Neither translate.google.com nor images.google.com functions properly.


On Saturday, July 31, 2021 11:38 PM, Greg Wooledge replied:

My guess is that you somehow disabled Javascript


Thanks for the good idea, but it appears to not be the case.  Under
about:config in firefox, I see "javascript.enabled true".



Does it work properly if you use a new profile?

--
John Doe



Re: Bash script problem

2021-08-04 Thread john doe

On 8/5/2021 5:47 AM, Gary L. Roach wrote:

Thanks for the help but I still have the problem of the if statement
always being true. This time I enclosed the file so you can test it.



Two things:

- Why is the var 'IFS' set above the read command?
- What are you trying to do here?

--
John Doe



Re: percent char '%' in sudoers file

2021-08-10 Thread john doe

On 8/10/2021 8:19 AM, Bob Bernstein wrote:

My copy (buster amd64) of lines 23-24 of /etc/sudoers looks like this:



I would suggest to use the directory '/etc/sudoers.d' instead of
modifying the 'sudoers' file.


23 # Allow members of group sudo to execute any comm$
24 % sudo  ALL=(ALL:ALL) ALL

Is that '%' a comment char? The line numbers shown were provided by


No, '%' tells that 'sudo' is a group.


nano. I know, I know, please keep reading.

Full disclosure: In a typical Bob fit of impulsivity I, yes, edited this
file using 'sudo nsno /etc/sudoers'. How much damage have I done, what
are the penalties for such behaviour, and will I get time off for good
behaviour?



Fulling around is the best way to learn if you can take the time to fix
the issue(s) that your impulsivity has caused!!! :)


Alright, enough fooling around. I am a great fan of Dr. John E. Davis's
(the author of jed) viewer app 'most.' I cannot seem to persuade mc to
honor my env var VIEWER which asks for 'most.'

I am new to using sudo. All suggestions bearing even the slightest hint
of civility will be thoughtfully considered.



Space separating the '%' and the group name ('sudo') does not strike me
as a good idea.

--
John Doe



Re: percent char '%' in sudoers file

2021-08-10 Thread john doe

On 8/10/2021 1:11 PM, Greg Wooledge wrote:

On Tue, Aug 10, 2021 at 09:13:22AM +0200, john doe wrote:

Fulling around is the best way to learn if you can take the time to fix
the issue(s) that your impulsivity has caused!!! :)


(Fooling around.)  If you do choose to fool around with sudoers, please
keep a root shell open at all times.  Don't cut yourself off from root
by counting on being able to do "sudo nano /etc/sudoers" again, because
you might have broken sudo.

"sudo -s" gives you a shell as root.  Even if you never have to run a
single command in that shell, having it there for emergency use is wise.



Obviously, fooling around should not be done on a production
server/something that you need to have stable.

As long as you are messing around with sudo, that might not be a bad
idea to configure 'su' as a fallback mechanism.

--
John Doe



Re: apt-upgrade (Bullseye) shows 1 pkg not upgraded

2021-08-10 Thread john doe

On 8/10/2021 7:32 PM, Jim Popovitch wrote:

How can I determine what the "1 not upgraded" package might be?


~$ apt-get update
Hit:1 http://ftp.us.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 http://ftp.us.debian.org/debian bullseye-updates InRelease
Reading package lists... Done

~$ apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


~$ apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.



$ apt-get -sV full-upgrade


-s = simulate
-V = verbose

--
John Doe



Re: apt-upgrade (Bullseye) shows 1 pkg not upgraded

2021-08-10 Thread john doe

On 8/10/2021 7:57 PM, Jim Popovitch wrote:

On Tue, 2021-08-10 at 19:49 +0200, john doe wrote:

On 8/10/2021 7:32 PM, Jim Popovitch wrote:

How can I determine what the "1 not upgraded" package might be?


~$ apt-get update
Hit:1 http://ftp.us.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 http://ftp.us.debian.org/debian bullseye-updates InRelease
Reading package lists... Done

~$ apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


~$ apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.



$ apt-get -sV full-upgrade


-s = simulate
-V = verbose


Thanks, unfortunately still nothing. :(

~$ apt-get -sV full-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


I'm beginning to wonder if this is just a bug in apt-get, I know of
nothing on this small server that has a pending upgrade.



As the cmd works for me I'm not sure this is a bug in 'apt-get' but
maybe a pkg on 'hold'.

--
John Doe



Re: One user system.

2022-02-01 Thread john doe

On 2/1/2022 7:11 PM, pe...@easthope.ca wrote:

Hi,

https://wiki.debian.org/Root states,

"At installation time, you are asked whether you want to use the root account 
or not.
   ...
If not, no root account is enabled and the password of the first user created will 
be used for administration tasks."

Are instructions to configure that post installation available online?

Tips?



If my understanding is correct, you will need to use 'sudo'.

--
John Doe



Re: One user system.

2022-02-01 Thread john doe

On 2/1/2022 8:47 PM, pe...@easthope.ca wrote:

 From: john doe 
 Date: Tue, 1 Feb 2022 19:29:02 +0100

If my understanding is correct, you will need to use 'sudo'.


Thanks.  Still a multi-user system.



If you do not want the regular user, you can simply lock/disable it.
This way you can use root to your liking (remotely or locally) and
forget about other user(s).

I must say, I concur with others in this thread on not removing a single
non-root user.

--
John Doe



Re: Debian 11 installer and encryption

2022-02-03 Thread john doe

On 2/2/2022 9:57 PM, Georgi Naplatanov wrote:

Hi all,

I saw that the installer of Debian 11 supports encrypted volumes.

Is this LUKS2?



Yes for the root partition, works pretty well.

--
John Doe



  1   2   3   4   5   6   7   8   9   >