LinuxQuestions.org
Visit Jeremy's Blog.
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, 05: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, 05:51 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
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 05:52 PM. Reason: added another link
 
Old 06-14-2015, 05:54 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Posts: 1,021

Rep: Reputation: 203Reputation: 203Reputation: 203
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, 09: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 09:12 PM.
 
Old 06-15-2015, 12:17 AM   #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 04:38 AM.
 
Old 06-15-2015, 08:12 AM   #6
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thanks!
 
Old 06-15-2015, 08:45 AM   #7
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, UK
Posts: 1,804
Blog Entries: 5

Rep: Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871
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, 09: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, 09:21 AM   #9
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , ChromeOS
Posts: 4,912
Blog Entries: 19

Rep: Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125
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, 11: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, 12:32 PM   #11
JeremyBoden
Senior Member
 
Registered: Nov 2011
Posts: 1,021

Rep: Reputation: 203Reputation: 203Reputation: 203
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, 12:34 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,353

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
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 12:35 PM.
 
Old 06-15-2015, 02: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:43 PM
WARNING: BTRFS Will Screw Your Debian/Ubuntu System Quantumstate Linux - General 12 05-09-2011 07:57 AM
Debian broke my system again ... I Ubuntu the answer? Duglas Ubuntu 12 08-30-2010 05:58 PM
Restore Debian or Ubuntu system (upgrade gone bad) crashmeister Linux - General 2 06-27-2008 08:36 AM
System sounds- Ubuntu yes, Debian no. aquaboot Debian 1 10-25-2007 07:41 PM


All times are GMT -5. The time now is 09:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration