LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-13-2012, 05:37 PM   #1
clutterbucks
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Rep: Reputation: Disabled
Help with linux and mac.


So I am totally new to linux and have never done anything before with it. I'm taking a class on it though that is required for my degree. So my problem is that I am not being able to get to linux on my mac. I've done some research and have read that I can use my terminal to access linux, so is this correct? I've also read that I'm supposed to put ssh -p (port number) (username)@(ip), so is this correct also? I have my username and ip address but have no idea what to use as a port number. So if anybody could help me out with what to put as a port number I would really appreciate it!
 
Old 02-13-2012, 06:10 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
That won't work. If you want to use Linux you have to install it, you can't simply access it from MacOS without installing it. I would recommend to install Linux into a virtual machine, like Virtualbox. This way you don't have to fiddle with partitions and bootloaders and can use both systems at the same time.
 
1 members found this post helpful.
Old 02-13-2012, 06:17 PM   #3
clutterbucks
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
That won't work. If you want to use Linux you have to install it, you can't simply access it from MacOS without installing it. I would recommend to install Linux into a virtual machine, like Virtualbox. This way you don't have to fiddle with partitions and bootloaders and can use both systems at the same time.
Where would I go to install it? And I can't just access it with a secure shell client? Because I've seen in several places saying that you can do that..
 
Old 02-13-2012, 06:23 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
You can't access an operating system that is:
1. Not installed.
2. Not running.

You will be able to access it via SSH once you have it installed and running, for example in a virtual machine or on a second dedicated computer, but not if you are running only MacOS on your computer.
 
1 members found this post helpful.
Old 02-13-2012, 06:23 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by clutterbucks View Post
Where would I go to install it?
You go and download a distro from their website, and follow the installation instructions. If you're just starting out, I'd recommend Mint or Ubuntu.
Quote:
And I can't just access it with a secure shell client? Because I've seen in several places saying that you can do that..
Well, if you didn't own a Mac, could you just 'access' OSX somehow??? An operating system has to be RUNNING somewhere in order to be accessed. So, install it on a virtual machine as suggested, or install it to a different machine.

The ssh command line is simple: ssh <user ID>@<machine address or name>. You don't have to specify the -p option, unless SSH is running on a different port than standard.
 
1 members found this post helpful.
Old 02-13-2012, 06:27 PM   #6
clutterbucks
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok well my professor for the class has a linux server set up and I just need to access it. I guess I thought that would mean that it is running? Or do I still need to install it and have it run on my mac? And then if I install it then I can access it through the terminal?
 
Old 02-13-2012, 06:30 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by clutterbucks View Post
Ok well my professor for the class has a linux server set up and I just need to access it. I guess I thought that would mean that it is running? Or do I still need to install it and have it run on my mac? And then if I install it then I can access it through the terminal?
Ok, did you read what was posted to you?? You can't access it unless it's running somewhere, right??? So in this case, it IS running somewhere, isn't it??

Again, go back to the ssh command line explanation. Go to a terminal window in OSX...type in "ssh <user id>@<machine name/address>". You get both of those from your professor, along with a password. Press ENTER, it'll prompt you for a password, then enter it.
 
1 members found this post helpful.
Old 02-13-2012, 06:35 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by clutterbucks View Post
Ok well my professor for the class has a linux server set up and I just need to access it.
Would have been a good idea to say that in your first post, don't you think?

Anyways, do like TB0ne explained, that should work. Have fun with Linux.
 
Old 02-13-2012, 06:37 PM   #9
clutterbucks
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Ok, did you read what was posted to you?? You can't access it unless it's running somewhere, right??? So in this case, it IS running somewhere, isn't it??

Again, go back to the ssh command line explanation. Go to a terminal window in OSX...type in "ssh <user id>@<machine name/address>". You get both of those from your professor, along with a password. Press ENTER, it'll prompt you for a password, then enter it.
Ok I got it!! Sorry if all my questions seemed stupid but I know pretty much nothing about this. But thank you for the help!

But another question..once I am into the server I am supposed to use a few different commands and then copy and paste it into a word document to submit to my professor. To use a command do you just type it in? A few of the commands I'm supposed to use are echo, ls, date, $shell, man, whoami, help. When I use date or whoami and help stuff comes up like I think it should, but for the other commands nothing happens. Is there something else I'm supposed to be doing?
 
Old 02-13-2012, 06:45 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by clutterbucks View Post
Ok I got it!! Sorry if all my questions seemed stupid but I know pretty much nothing about this. But thank you for the help!

But another question..once I am into the server I am supposed to use a few different commands and then copy and paste it into a word document to submit to my professor. To use a command do you just type it in? A few of the commands I'm supposed to use are echo, ls, date, $shell, man, whoami, help. When I use date or whoami and help stuff comes up like I think it should, but for the other commands nothing happens. Is there something else I'm supposed to be doing?
Yes, you just type the commands in. As far as what else you should be doing, that's a question you should ask your professor.
 
Old 02-13-2012, 06:46 PM   #11
clutterbucks
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok well I do that. Thanks again for all the help! And sorry for not full explaining everything in my first post, like I said I don't know anything about linux and am just really confused with everything.
 
Old 02-13-2012, 08:52 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Start here http://rute.2038bug.com/index.html.gz
Incidentally note also that the OSX cmd line (cli) is a version of Unix
(generically *nix), but it's not exactly the same as Linux, so running the cmds locally may not produce the same effect as on the Prof's machine.
To find out what distribution (aka distro) his server is running

1. ask him
2. try
Code:
cat /etc/*release*
Other useful links
http://linux.die.net/man/
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html


HTH & Welcome to LQ

Last edited by chrism01; 02-13-2012 at 08:56 PM.
 
1 members found this post helpful.
  


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
xen linux guest mac acquiring mac 00:00:00:00:00:00 linux_fever Linux - Virtualization and Cloud 0 12-04-2009 03:52 PM
Linux / UNIX OS for Motorola RAZR v3 -- Sync it with OpenBSD 4.2/Mac 10.5/Mac 10.3 Doctorzongo Linux - Laptop and Netbook 0 04-30-2008 02:27 AM
LXer: Linux vs. Mac: Should I Get a Mac? LXer Syndicated Linux News 0 09-24-2007 03:30 AM


All times are GMT -5. The time now is 07:18 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