You are not logged in.

#1 2019-10-24 12:13:19

chrisdb
Member
Registered: 2019-09-12
Posts: 47

[SOLVED] Debian for web development

Hello,

I would like to use Debian for web development, but on some forums they say Debian is not suited for this as I require up to date packages for specific software like f.e. nodejs, php, Java which aren't backported to the latest version. However, I do not require a bleading edge distro, just packages concerning web development smile

What do you guys think? Can I use Debian for this, or is this not an option?

Last edited by chrisdb (2019-10-26 21:31:51)

Offline

#2 2019-10-24 12:45:40

clusterF
Member
Registered: 2019-05-07
Posts: 294

Re: [SOLVED] Debian for web development

A bleeding edge distro will give you up to date packages.

You could use the debian unstable branch if you would like to stay with debian, otherwise there is Archlinux or Voidlinux, both of which in my opinion are fairly stable bleeding edge operating systems.

Some argue that you can use debian stable and mix and match repositories from testing and or unstable, but in my experience you are prone to breaking debian that way.

You could also build the latest node.js. php whatever on a debian stable base. Im not privy to node.js or php but i recently built rust from source on a stable base with the use of https://rustup.rs/ thanks to a member here on BL mentioning it.

From a little google fu there is an node.js version manager whereby you can get around apt and install the latest version of node.js, have a read of below link.

https://github.com/nvm-sh/nvm

Last edited by clusterF (2019-10-24 13:00:35)


"Common sense is like deodorant, those who need it the most never use it."

git: clusterF

Offline

#3 2019-10-24 22:44:14

hhh
Meep!
Registered: 2015-09-17
Posts: 8,722
Website

Re: [SOLVED] Debian for web development

Two more suggestions for a Debian system...

Raphael Hertzog, the man is a Debian monster. His distro is Kali Linux, I think it's based on sid...

https://docs.kali.org/introduction/what-is-kali-linux

https://docs.kali.org/introduction/shou … kali-linux

Kali admits that simple things like NodeJS can be painful and stupid to deal with. This article is 4 years old, though, things are sure to have improved...

http://www.acme-dot.com/stupid-problems … solutions/

2) @stevep is a long time forum member who is part of the most popular distro ATM on DistroWatch, he is a backporting demon! MX Linux, it's based on Debian stable...

https://mxlinux.org/

If you decide to track sid, you'll want to keep an eye on the siduction "Upgrade Warnings" forums...

https://forum.siduction.org/index.php?board=22.0

Offline

#4 2019-10-25 05:58:16

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: [SOLVED] Debian for web development

@chrisdb, web development is a very large topic. What are you planning to do?

I "develop" my blog on geany, I don't need any "up-to-date packages" because it's just text (code) editing.
I don't use js at all.
While "development" happens on my desktop, all testing happens on the server itself (I have a separate staging environment on which I code, and if everything works ok, I push it over to production, which is what you see when you visit my blog).

So, again: what exactly are you planning to do?

So far I see no reason to stray from stable.

PS:
what I do recommend is a good connection with your server.
ssh with keys, of course.
Then i use NFS to access server files - but it's local, the server hangs on the same router as my desktop. If it was remote I don't know, I might try NFS with kerberos, or just use sshfs.
But these are softwares that have been around for ages. No need to go cutting edge there.

Last edited by ohnonot (2019-10-25 06:00:58)

Offline

#5 2019-10-25 08:43:40

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 76

Re: [SOLVED] Debian for web development

hhh wrote:

Two more suggestions for a Debian system...
Raphael Hertzog, the man is a Debian monster His distro is Kali Linux, I think it's based on sid...

No, Kali Linux is based om stable. It is not Raphael's dist. He was approached by Offensive Security, when they were planing to leave Ubuntu as base. In that process he was taking active part. He is focusing his work on Debian.
In fact, nobody has Kali Linux as "their dist". No one sane is using linux for daily work with root acount as Kali Linux is setup. Kali Linux is not meant for daily use.. It has its highly specialised use.

hhh wrote:

If you decide to track sid,

I do not think that is a good idea.

Last edited by rbh (2019-10-25 08:47:04)


// Regards rbh

Offline

#6 2019-10-25 11:23:03

chrisdb
Member
Registered: 2019-09-12
Posts: 47

Re: [SOLVED] Debian for web development

ohnonot wrote:

@chrisdb, web development is a very large topic. What are you planning to do?

I would be using nodejs (preferably the latest LTS version) and openjdk from java which is updated every six months.

I'm not interested in the unstable branch, I'm just investigating if it is feasible when working in stable.

Offline

#7 2019-10-25 19:25:13

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: [SOLVED] Debian for web development

^ ok i see now you mentioned that in your first post, sorry.
But the question remains:
Are these softwares also required on the server or only for devleopment?
If the former, then they should be the same versions as on the server, in other words, easiest would be to run the same (base) distro on the server & on the devlopment machine.

Offline

#8 2019-10-25 20:06:46

chrisdb
Member
Registered: 2019-09-12
Posts: 47

Re: [SOLVED] Debian for web development

ohnonot wrote:

^ ok i see now you mentioned that in your first post, sorry.
But the question remains:
Are these softwares also required on the server or only for devleopment?
If the former, then they should be the same versions as on the server, in other words, easiest would be to run the same (base) distro on the server & on the devlopment machine.

No problem smile They're only meant for development. Especially nodejs.

I'm thinking about using the binary versions (Linux x86_64), but I'm not sure if this is the way to go...

Offline

#9 2019-10-26 06:43:07

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: [SOLVED] Debian for web development

chrisdb wrote:

They're only meant for development. Especially nodejs.

So you really want the newest versions, regardless of what your server is running.
Makes sense with js I guess, I wouldn't know anything about java.
I'm just glad my use case is simper.

It sounds like you don't really want to touch your daily driver with backported/foreign packages, so I guess you need to run your development environment in
- a vm
- some sort of container?!
- dual boot

Offline

#10 2019-10-26 06:51:39

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,217

Re: [SOLVED] Debian for web development

Plenty of ways to get new/est apps with Debian stable ( or of course Bunsenlabs too.)

Backports o course, apt-pin, from the upstream (either .deb or some have repo's or git etc), compile yourself, snap/flatpak, another distro that's fully compatible with the Debian base-release you're using. That's 6 or so right there. So Debian, thus Bunsenlabs is what you make it. smile

Offline

#11 2019-10-26 21:31:26

chrisdb
Member
Registered: 2019-09-12
Posts: 47

Re: [SOLVED] Debian for web development

Thx for the answers everyone. I've got enough info to continue smile

Offline

#12 2019-10-27 10:43:18

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,930
Website

Re: [SOLVED] Debian for web development

Even sid is 2 versions behind node-js LTS as it seems
https://packages.debian.org/sid/nodejs
https://nodejs.org/en/download/

p.s. For me web is about writing new Jekyll post and perhaps visualizing how it looks before upload, and

jekyll serve --limit_posts 20

is working just fine.

Last edited by brontosaurusrex (2019-10-27 10:45:19)

Offline

Board footer

Powered by FluxBB