SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
Apache advantage?
I'm now wondering what do do with my old P200 tower that only has 64 MB of RAM. I put Slack 10.1 on it and that works nicely-I then tied it into my home network with a router and vsftp. I never tried Apache. Maybe this is something to delve into. My website is on my ISP's online space. What's the advantage of having your site on your home pc with Apache?
well you can control it easier, and can do whatever the cribbins you want with it. you do of course then have the hassle and cost in terms of bandwidth. your ADSL bill (or whatever) is going towards other people looking at your site...
Not sure I can precisely answer this but if your website has heavy traffic, then your server might not be adequate (memory wise). Advantage (that I can think of) is that you have control over your server...downside is you might have to keep it running all the time and if you have a dynamic ip, you'll have to get a dynamic dns service (its free) to point to your server.
Oh...almost forgot, you might have to use another domain name if your ISP does not allow ip forwarding.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
Well I don't have much traffic going to my site now-that probably won't change. What I want to do is to have the ability to communicate with my home from work. Maybe have an ftp area on my home pc (I have an 80 GB drive) or check my home web cam. Could I do these things with Apache?
You don't need Apache for that kind of things. Most webcam programs run their own webserver to server images, and well, if you want to access trough ftp, just run a ftp server like proftpd or vsftpd. SSH access combined with screen is really nice too
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
I've only used vsftpd to transfer files on my home network. How would I access linuxhippy@192.168.1.47 from a Win box using SSH or vsftpd? I realize that's my router's IP...but that's the IP address ifconfig gives me.
Last edited by linuxhippy; 08-30-2005 at 01:41 PM.
You need to forward the port you want to access from your router to your machine, so when you connect EXTERNALIP:Port it's redirected to INTERNALIP:Port. That's configured in the router.
A very good and well known SSH client for Windows is Putty.
I used to host my site at a hosting-company, but since I have Linux I host my site (apache - php - SQL) at home (50 different visitors a day or so, not a lot). The website itself, with all the (7000 or so) images from the gallery and bla bla bla is around 200 MB.
Advantages:
It's cool
Most website-hosters have a limit on data that you can store, your limit is your hard-drive (200 GB in my "server" serves a whole lot of stuff
You have CONTROL, can install your own webmail or whatever
Your mailbox limit is your hard-drive (if you also decide to recieve your own mail for your domain.
Disadvantage:
When you internet connection fails, your site doesn't work, but that just 3 times a year (or so) over here
This all is running for almost a year now on a Pentium 400 Mhz, 256 MB memory box.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
Quote:
Originally posted by gbonvehi You need to forward the port you want to access from your router to your machine, so when you connect EXTERNALIP:Port it's redirected to INTERNALIP:Port. That's configured in the router.
A very good and well known SSH client for Windows is Putty.
ok, I see in my router setup that my primary PPP is xxx.xxx.xxx.xxx and the box I will leave up is linuxhippy@192.168.1.47
With this info, how would I use ssh on putty to contact my home pc?
First of all, change sshd default port in /etc/ssh/sshd_config from 22 to something else to avoid bot attacks.
Then set the router to redirect incoming connection on that port from outside, to 192.168.1.47.
Then access your ssh with user@xxx.xxx.xxx.xxx with the port you configured.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
ok I changed my /etc/ssh/sshd_config to port 45 and set up 192.168.1.47 to go to port 45 in my router. Now if I'm on the internet outside my house, how do I log into my pc if my IP is 124.121.15.11....user is guest?
Depends on the client. With Putty set Host name (or IP Address) to 124.121.15.11 and Port to 45. Then connect, you should be able to type the username and password. If you want to directly connect as user guest type as ip: guest@124.121.15.11 and select Port to 45.
When using ssh client use: ssh -oPort=45 user@ip or ip as you wish.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.