debian security for personal box

2021-12-12 Thread Piper H
Hello members,

After installation debian. shall I change the default SSH port (22) to a
random port?
Shall I disable the root login? and what other policy should be applied
generally for security?

Thanks
Piper


Re: question about different software versions on Debian 10 and 11

2021-12-08 Thread Piper H
That's all right. thank you.

On Thu, Dec 9, 2021 at 1:25 AM Stanislav Vlasov 
wrote:

> 2021-12-08 15:51 GMT+05:00, Piper H :
> > On Debian 10, can I force install the software which is released on
> Debian
> > 11?
> > For example, a given software has default installation version 1.0 for
> > debian 10, but has version 2.0 for debian 11.
> > I want to use the version 2.0 on debian 10, how will I do it?
>
> 1) you may try backports, may be your software already backported and
> available on debian 10. If software backported - quick and easy way.
>
> 2) you may backport software by self (get sources, sometimes fix
> debian/* in sources dir, build package) -- my preffered way to take
> new software before debian testing not frozen.
>
> 3) you may set repos from debian 11 and install software AND
> dependencies - your debian will be partially upgraded and some another
> soft may be broken. Don't recommend this way, system may be broken and
> need reinstall in worst case.
>
> 4) you may upgrade to debian 11. If you does not see your software in
> backports and can't build package - use this way.
>
> --
> Stanislav
>
>


question about different software versions on Debian 10 and 11

2021-12-08 Thread Piper H
On Debian 10, can I force install the software which is released on Debian
11?
For example, a given software has default installation version 1.0 for
debian 10, but has version 2.0 for debian 11.
I want to use the version 2.0 on debian 10, how will I do it?

Thank you.
Piper


Re: question about a .deb file

2021-12-08 Thread Piper H
Hi David

Thanks for the info you provided.
The original purpose I asked the question is that I did need that jar file
for Mysql connector for Spark.
As you see the operations below:

$ pyspark --jars mysql-connector-java-8.0.27.jar
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
...
Spark context available as 'sc' (master = local[*], app id =
local-1638960026416).
SparkSession available as 'spark'.
>>>

In the command line I specify the jar name which must be put in Spark's
library dir.
So I was looking where the file is located in the system.

best regards,
Piper



On Wed, Dec 8, 2021 at 6:27 PM David  wrote:

> On Wed, 8 Dec 2021 at 19:21, Piper H  wrote:
>
>> Hello again,
>>
>> Sorry for this silly question.
>> I downloaded the JDBC drive from mysql website:
>> https://dev.mysql.com/downloads/connector/j/
>>
>
> Hi.
>
> Just for your information, because you might not realise:
>
> Debian is a huge project that attempts to ensure the
> compatibility of every piece of software on your machine.
>
> If you download software from other sources, like you
> did from mysql.com above, then you will break Debian's
> methods for managing software compatibility on your
> machine.
>
> If you get a .deb package from somewhere that is not
> Debian, then that package is NOT part of Debian.
> It uses Debian packaging methods to create the .deb
> file, but it has NOT been integrated by Debian for compatibility
> with a Debian release.
>
> This incompatibility can cause your installation to become
> unusable, immediately, or later.
>
> Plus, folks from Debian won't be interested in helping you
> to fix those issues. Because from their perspective, they
> will see that you broke your Debian system by installing a
> foreign package.
>
> So for a problem-free experience with Debian, the
> ideal approach is to only install packages provided
> by Debian through one of its official repositories.
>
> More information on this topic is provided here:
>   https://wiki.debian.org/DontBreakDebian
>
> Please do read that. Ask here if you have any questions.
>
> It is important to understand that Debian is intended to
> be used by people for whom this restriction is not a problem.
> Not only that, but it is the philosophy of the Debian project
> and the reason why Debian is what it is. There are dozens
> of different Linux distributions, several different package
> management systems, and each comes with a different
> approach to solving the software compatibility problem.
>
> I hope this information helps you.
>
>


Re: question about a .deb file

2021-12-08 Thread Piper H
Thanks, I'll check them out. :)

On Wed, Dec 8, 2021 at 4:35 PM Stanislav Vlasov 
wrote:

> 2021-12-08 13:21 GMT+05:00, Piper H :
> > I downloaded the JDBC drive from mysql website:
> > https://dev.mysql.com/downloads/connector/j/
> >
> > And got a file name:
> > (mysql-connector-java_8.0.27-1debian10_all.deb)
> > Then I run:
> > sudo dpkg -i mysql-connector-java_8.0.27-1debian10_all.deb
> >
> > And what's the next step?
> > I expect to get a *.jar file which will be used as the Mysql JDBC drive.
> > Until now I don't know where to get this jar file from the .deb file
> above.
>
> You can see content of installed package by command:
>
> dpkg -L mysql-connector-java
>
> And i recommend you do not install packages by hand before searching in
> repo.
> May be this package for you:
> https://packages.debian.org/buster/libmariadb-java
>
> --
> Stanislav
>


question about a .deb file

2021-12-08 Thread Piper H
Hello again,

Sorry for this silly question.
I downloaded the JDBC drive from mysql website:
https://dev.mysql.com/downloads/connector/j/

And got a file name:
(mysql-connector-java_8.0.27-1debian10_all.deb)
Then I run:
sudo dpkg -i mysql-connector-java_8.0.27-1debian10_all.deb

And what's the next step?
I expect to get a *.jar file which will be used as the Mysql JDBC drive.
Until now I don't know where to get this jar file from the .deb file above.

Thanks.
Piper


NVME disk drive

2021-12-07 Thread Piper H
dear community

I bought a new NVME disk and plan to replace the old SSD disk on my home
box.
Does this NVME require a special drive for the Debian system?

Thank you
Piper


Re: why Debian?

2021-12-02 Thread Piper H
No, I didn't take the kernel development. I am just a data scientist, using
python, R, spark, hadoop to do the application jobs.

Thanks.

On Fri, Dec 3, 2021 at 1:33 PM SAIFI  wrote:

> On Thu, 2 Dec 2021, Piper H wrote:
>
> > For debian and ubuntu, which one should I choose as my personal
> development  system?
>
> @Piper, if intend to do 'development' work in modern C++ on your system,
> suggest you download 'bookworm'. This gets you glibc-2.32-4 and hence gcc
> 11.2.0-2
>
> Here is the link
>
> https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso
>
>
> warm regards
> Saifi.
>
>


Re: why Debian?

2021-12-02 Thread Piper H
Thanks for the info you provided @Karthik  .
That would be very helpful

Regards
Piper




On Fri, Dec 3, 2021 at 7:03 AM Karthik  wrote:

> On Fri, Dec 3, 2021 at 1:37 AM Piper H  wrote:
> >
> > @Karthik glad to see the info you providesd.
>
> You're welcome,feel free to ask questions,Im happy to help
>
> > Especially for cudnn running on ubuntu 18.04 and above.
> It's just 18.04 and not above as other versions only have partial support
> LTS versions like 16.04,20.04 seem to have support but I haven't tested
> them
>
> > Does debian have good support for DNN stuff?
>
> Yes, my current setup is:
> debian unstable,
> nvidia proprietary driver from nvidia-driver deb package,
> cuda from nvidia-cuda-toolkit deb package holding at version 11.2.2-3,
> cudnn8 from
> https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/libcudnn8_8.1.1.33-1+cuda11.2_amd64.deb
> extracted to /usr/local/lib,
> tensorflow 2.6 from pip
>
> Basically everything is from debian archive except cudnn and tf
>
> And pytorch is available in debian https://tracker.debian.org/pkg/pytorch
>
>


Re: why Debian?

2021-12-02 Thread Piper H
@Karthik glad to see the info you providesd. Especially for cudnn running
on ubuntu 18.04 and above. Does debian have good support for DNN stuff?
Thanks.

Piper

On Thursday, December 2, 2021, Karthik  wrote:

>
>
>
>
> On Thu, Dec 2, 2021, 5:27 PM Piper H  wrote:
>
>> For debian and ubuntu, which one should I choose as my personal
>> development  system?
>> Thanks.
>>
>
> Depends on your use case and preference
>
> If you're experienced enough or willing to learn then either of them are
> equally good and you shouldn't have any problem
>
> If you're new to Debian and are not willing to learn tiny things here and
> there then you should consider one over the other.
>
> Most of the software is available for both from official repositories. But
> for some software which isn't available yet in the repositories you have to
> build from source or consider using other sources(either third-party
> repositories or deb,tar packages) which may be of a problem as some times
> you wouldn't find support for both of them. Some support Ubuntu only and
> some support Debian and some support both(although only certain versions).
>
> And with Debian you should setup some things after first install like
> enabling non-free section for firmwares and nvidia drivers, fonts,bash
> completion etc.
>
> Some even expect you to use certain version of one of them like Nvidia
> cudnn which fully supported only on Ubuntu 18.04 although you can get
> around these with some manual installation work
>
> Debian is most stable though.
>
>
>
>
>


Re: why Debian?

2021-12-02 Thread Piper H
I am a data engineer. Most time works around Hadoop, Spark, Streaming, MQ,
R and Python stuff. I have my personal Mac, but want to learn more on Linux
dev and ops. Thanks.

Piper

On Friday, December 3, 2021, Andrew M.A. Cater  wrote:

> On Thu, Dec 02, 2021 at 07:56:31PM +0800, Piper H wrote:
> > For debian and ubuntu, which one should I choose as my personal
> > development  system?
> > Thanks.
> >
>
> What are you developing _in_ ? Debian stable is pretty much unconditionally
> stable and includes huge amounts of software. On the other hand, some
> teams develop only on Ubuntu - it's not a binary "either/or" and the
> skills
> you learn on Debian are transferrable to Ubuntu.
>
> More details needed :)
>
> All the very best, as ever,
>
> Andy Cater
>
>
>
> >
> > On Thu, Dec 2, 2021 at 7:02 PM Anssi Saari  wrote:
> >
> > > Thanos Katsiolis  writes:
> > >
> > > > The reasons I chose them is that Debian is considered a stable and
> > > reliable OS (the policy of the OS is not to
> > > > include as many and as much quickly as possible new features), and
> that
> > > it has a large and dependable community.
> > >
> > > Isn't that enough? I guess I'd say the policy of Debian is that it
> > > works. Personally, I had used Linux off and on in the 1990s but there
> > > were issues. I was otherwise a Unix user in school and work, mostly
> > > Sun's Solaris but also Digital and HP and some others I don't remember
> > > any more.
> > >
> > > A friend and colleague recommended Debian around late '90s and I
> > > installed Debian, 2.0 Hamm I think. It just worked, as in I ran the
> same
> > > installation on my ever morphing desktop computer for almost a decade
> > > until I made the switch to 64-bit. I guess that "new" 64-bit
> > > installation is now over a decade old then. Updates work and it does't
> > > barf when I change hardware.
> > >
> > > For sure I have other computers these days and my desktop alone has
> > > Windows 10 and Arch Linux in addition to Debian. But mostly I use
> > > the desktop and the Debian on it.
> > >
> > >
>
>


Re: why Debian?

2021-12-02 Thread Piper H
For debian and ubuntu, which one should I choose as my personal
development  system?
Thanks.


On Thu, Dec 2, 2021 at 7:02 PM Anssi Saari  wrote:

> Thanos Katsiolis  writes:
>
> > The reasons I chose them is that Debian is considered a stable and
> reliable OS (the policy of the OS is not to
> > include as many and as much quickly as possible new features), and that
> it has a large and dependable community.
>
> Isn't that enough? I guess I'd say the policy of Debian is that it
> works. Personally, I had used Linux off and on in the 1990s but there
> were issues. I was otherwise a Unix user in school and work, mostly
> Sun's Solaris but also Digital and HP and some others I don't remember
> any more.
>
> A friend and colleague recommended Debian around late '90s and I
> installed Debian, 2.0 Hamm I think. It just worked, as in I ran the same
> installation on my ever morphing desktop computer for almost a decade
> until I made the switch to 64-bit. I guess that "new" 64-bit
> installation is now over a decade old then. Updates work and it does't
> barf when I change hardware.
>
> For sure I have other computers these days and my desktop alone has
> Windows 10 and Arch Linux in addition to Debian. But mostly I use
> the desktop and the Debian on it.
>
>