LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2015, 04:31 PM   #1
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Rep: Reputation: Disabled
Debian commands on Ubuntu system


Hello!
I found a nice video tutorial aimed at Debian 6.x users. I have Ubuntu 14.04 My question is... Can I just blindly use on modern Ubuntu system what they showed on older Debian system? Or should I be careful here? What's the risk, if any? Especially regarding LAMP install and commands (and also Apache configuration). Apache 2.2 back then (right?) and now it's 2.4... What do you think?
 
Old 06-14-2015, 04:51 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
https://help.ubuntu.com/community/ApacheMySQLPHP
https://help.ubuntu.com/14.04/serverguide/index.html

Last edited by Head_on_a_Stick; 06-14-2015 at 04:52 PM. Reason: added another link
 
Old 06-14-2015, 04:54 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Ubuntu tend to mess with Debian - especially any GUI applications.

There's a very good chance that command line install/configuration is probably OK.

You will need to use only Ubuntu packages though - you can't install current Debian packages.
Mixing Ubuntu packages with Debian packages is guaranteed to fail in a bad way.

Why not try your setup in a VM first?
 
Old 06-14-2015, 08:10 PM   #4
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thank you both for your replies!

I don't use VM. I wasn't asking about packages, but the SYNTAX of commands. For example, he teaches about Samba clients. The command (he uses Debian) he enters in his terminal is:

aptitude install smbclient

I know that usually in Ubuntu's terminal I use apt-get install command, so it's different.
That's what I was asking in my original post. Not about VMs and packages.

Last edited by papakota; 06-14-2015 at 08:12 PM.
 
Old 06-14-2015, 11:17 PM   #5
onlyesterday16
LQ Newbie
 
Registered: Dec 2014
Distribution: Fedora
Posts: 9

Rep: Reputation: Disabled
Debian commands should work on Ubuntu. If command not found, you can install it. For example "apt-get install aptitude" to use aptitude command.

However, Debian 6.x is old, so some packages may don't exist or have another name on Ubuntu.

Last edited by onlyesterday16; 06-15-2015 at 03:38 AM.
 
Old 06-15-2015, 07:12 AM   #6
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thanks!
 
Old 06-15-2015, 07:45 AM   #7
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by papakota View Post
Hello!
I found a nice video tutorial aimed at Debian 6.x users. I have Ubuntu 14.04 My question is... Can I just blindly use on modern Ubuntu system what they showed on older Debian system? Or should I be careful here? What's the risk, if any? Especially regarding LAMP install and commands (and also Apache configuration). Apache 2.2 back then (right?) and now it's 2.4... What do you think?
It depends on what is in the tutorial. If you follow it blindly the result will most likely be a broken system. Anything involving adding repositories to sources.list should be avoided. My suggestion is to search for what you want to do and find up to date written documentation.
 
Old 06-15-2015, 08:11 AM   #8
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thanks for your reply!

Maybe I can just double-check what I'm following before actually doing it on Ubuntu?
 
Old 06-15-2015, 08:21 AM   #9
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
While commands are similar. And. Ubuntu is based on Debian somewhat.

File location of certain libs may be different between Ubuntu and Debian.

Running Ubuntu large packages blindly on Debian installs breaks Debian for sure. Because of file location mismatch.

So even though the commands are similar. Pay attention to what room the furniture gets moved into.

example:

/usr/bin vs /usr/local/bin.
 
Old 06-15-2015, 10:27 AM   #10
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thx! Yes, I understand that caution must be exercised prior to copying commands on Ubuntu PC.
 
Old 06-15-2015, 11:32 AM   #11
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
I would suspect that Ubuntu would load a number of extra "recommended" packages for each install.
So you might have a few extra packages.

Any time from now until a couple of years into the future, this has the potential to cause knock-on dependency problems.
This is really unlikely though.
 
Old 06-15-2015, 11:34 AM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by papakota View Post
Thanks for your reply!

Maybe I can just double-check what I'm following before actually doing it on Ubuntu?
You should be doing that anyway when you're following ANY instructions on the web, regardless of distro/version mismatches.

Blindly following a set of command line instructions on some random blog on the web without even thinking about what you're running and why is a good way to break your system.

Last edited by suicidaleggroll; 06-15-2015 at 11:35 AM.
 
Old 06-15-2015, 01:30 PM   #13
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thank you for your replies!
Well, LinuxCBT isn't exactly a "random blog on the web" I would hope...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] triple booting system with ubuntu debian and windows xp ankit0301 Debian 9 04-06-2012 09:43 PM
WARNING: BTRFS Will Screw Your Debian/Ubuntu System Quantumstate Linux - General 12 05-09-2011 06:57 AM
Debian broke my system again ... I Ubuntu the answer? Duglas Ubuntu 12 08-30-2010 04:58 PM
Restore Debian or Ubuntu system (upgrade gone bad) crashmeister Linux - General 2 06-27-2008 07:36 AM
System sounds- Ubuntu yes, Debian no. aquaboot Debian 1 10-25-2007 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration