LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2008, 07:09 AM   #1
jazz17782
LQ Newbie
 
Registered: Jan 2008
Posts: 12

Rep: Reputation: 0
Server Virgin


Hey Guys,

I've just installed fedora core 7 on my pc and everything is running swimmingly. Now i'm ready to take the next step. I want to do a few things and was wondering whether you guys can help out. I’ve never done any of these things before and I’ve never used linux before, so I don’t know if these things are mutually exclusive or the same thing.

Right, so what I want to do is;

1) Connect my mac book to my linux box and operate it remotely through a terminal interface
2) Create a file server that I can connect to through my windows pc and mac book
3) Run a web server and eventually an application server like Websphere

Number 3 on the list is way into the future but its something I want to start thinking about now.

I have currently connected my linux box to my router via gaming adapter. Basically the linux box connects to the gaming adapter via an Ethernet connection and then the adapter connects to the router via a wireless connection. So the linux box thinks its connecting to the router through a straight Ethernet connection.

Given the setup, how do I go about achieving the three requirements above? Please be as descriptive as possible with your replies as I am new to this whole linux things.

Thanks
 
Old 02-09-2008, 08:50 AM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
Quote:
Originally Posted by jazz17782 View Post
1) Connect my mac book to my linux box and operate it remotely through a terminal interface
You should be able to use ssh to get a terminal, unless you mean you want a remote desktop type of thing. In that case there are programs like VNC. Make sure your behind a firewall before opening up a VNC server.
Quote:
2) Create a file server that I can connect to through my windows pc and mac book
There is a good HOWTO here
Quote:
3) Run a web server and eventually an application server like Websphere
You should be able to type 'service httpd start' as root and you will have a web server running. Documents go in /var/www/ht[ml|docs]/

Websphere may be beyond the scope of the message board, but then I have never used it.
 
Old 02-09-2008, 10:55 AM   #3
jazz17782
LQ Newbie
 
Registered: Jan 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frndrfoe View Post
You should be able to use ssh to get a terminal, unless you mean you want a remote desktop type of thing. In that case there are programs like VNC. Make sure your behind a firewall before opening up a VNC server.

There is a good HOWTO here

You should be able to type 'service httpd start' as root and you will have a web server running. Documents go in /var/www/ht[ml|docs]/

Websphere may be beyond the scope of the message board, but then I have never used it.
Just the kind of response I was looking for. Thank You.

I will try running a vnc server but that will come later. I've just tried to use ssh and its worked wonderfully. The next step is to transfer files between my mac and my linux box. I tried to connect using ftp;

Code:
ftp username@111.111.1.1
but got the following message;

Quote:
Connection refused
What do I need to do to transfer files across?

With regards to the web server I was thinking that I may use tomcat because I will be using java servlets. Out of interest though, does fedora 7 come with a version of apache?
 
Old 02-09-2008, 12:16 PM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
FTP: Look in /etc/init.d and you should see something like vsftpd or proftpd. Run /etc/init.d/vsftpd start and it should work. I recommend looking into scp however as it is encrypted and will serve your greater needs in the future as hosts stop offering non encrypted connections.

It almost certainly came with apache2 installed unless unchecked at install time. Run apachectl -v as root and it will give you information about it including version.
 
Old 02-09-2008, 12:54 PM   #5
jazz17782
LQ Newbie
 
Registered: Jan 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frndrfoe View Post
FTP: Look in /etc/init.d and you should see something like vsftpd or proftpd. Run /etc/init.d/vsftpd start and it should work. I recommend looking into scp however as it is encrypted and will serve your greater needs in the future as hosts stop offering non encrypted connections.

It almost certainly came with apache2 installed unless unchecked at install time. Run apachectl -v as root and it will give you information about it including version.
.

I logged on to my host computer using ssh. I found vsftpd and managed to start it. I tested this using the following command;
Code:
netstat -a | grep ftp
and got the following output;
Code:
tcp        0      0 *:ftp                       *:*                         LISTEN
then i log out of ssh and try to connect via ftp with the following;

Code:
ftp username@111.111.1.1
but I get the famous "Connection refused message". Any ideas?
 
Old 02-09-2008, 01:07 PM   #6
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
Take a look at /etc/vsftpd/vsftpd.conf. It is pretty well self documented.

Do you have a line like this?
# Uncomment this to allow local users to log in.
local_enable=YES

Make sure you restart vsftpd after making any changes.
Oh, and check your firewall, default does not allow ftp

Last edited by frndrfoe; 02-09-2008 at 01:08 PM.
 
Old 02-09-2008, 02:13 PM   #7
jazz17782
LQ Newbie
 
Registered: Jan 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frndrfoe View Post
Take a look at /etc/vsftpd/vsftpd.conf. It is pretty well self documented.

Do you have a line like this?
# Uncomment this to allow local users to log in.
local_enable=YES

Make sure you restart vsftpd after making any changes.
Oh, and check your firewall, default does not allow ftp
Yea that line is there. I think the problem is going to be a firewall issue. But my friend deals with our home router, so I dont know til he comes back. If it is a firewall issue, how do I go about fixing it?

Is there any documentation for this?

Jaz
 
Old 02-09-2008, 02:52 PM   #8
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
there should be some gui in you administration menus. If you cant find it, try typing 'service iptables stop' as root and if it works after that it's a firewall issue
 
  


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
Linux Virgin daddymann LinuxQuestions.org Member Intro 4 02-24-2007 01:29 PM
Yet another Linux virgin. Karizma LinuxQuestions.org Member Intro 2 12-08-2006 11:58 AM
Virgin to Linux. mayankseth Linux - Newbie 6 10-13-2006 01:52 AM
Not like a Virgin to 9.2? Premadonna SUSE / openSUSE 1 07-11-2005 10:19 AM
not exactly virgin... gnashley Slackware 1 06-04-2005 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:51 PM.

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