Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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?
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.
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?
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.