Ubuntu home server on the web
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
I agree, Apache has no connection with SSH. It should have worked without it.
However - That's what I found, and what I had to do to get it running.
I tried every thing else, nothing seemed to work. Until I installed and started Apache2.
I really have no answers as to why that made the difference, but it worked.
Now lets see what happens with FTP.
And actually setting up this server.
However - That's what I found, and what I had to do to get it running.
I tried every thing else, nothing seemed to work. Until I installed and started Apache2.
I really have no answers as to why that made the difference, but it worked.
Now lets see what happens with FTP.
And actually setting up this server.
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Ubuntu home server on the web
You can disable firewall temporarily and test things.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
"You can disable firewall temporarily and test things."
That sounds reasonable, I do need to test things.
But then how to turn the firewall back on?
These are terminal commands which I am familiar with and have no problems using. IF I can figure out the proper commands.
Next issue is installing SFTP on the Ubuntu/Apache server.
And also setting up user login scripts.
This site has some instructions for the SFTP install but I don't like the lines where he disables SSH.
https://www.ismoothblog.com/2020/12/how ... sftpd.html
sudo echo "DenyUsers sftp" >> /etc/ssh/sshd_config
sudo systemctl reload sshd
I do NOT want to disable SSH. However it should be restricted to only myself.
That sounds reasonable, I do need to test things.
But then how to turn the firewall back on?
These are terminal commands which I am familiar with and have no problems using. IF I can figure out the proper commands.
Next issue is installing SFTP on the Ubuntu/Apache server.
And also setting up user login scripts.
This site has some instructions for the SFTP install but I don't like the lines where he disables SSH.
https://www.ismoothblog.com/2020/12/how ... sftpd.html
sudo echo "DenyUsers sftp" >> /etc/ssh/sshd_config
sudo systemctl reload sshd
I do NOT want to disable SSH. However it should be restricted to only myself.
Re: Ubuntu home server on the web
most all router/modems are set as default to block all incoming connections, and you'll need to dive into the Web UI to set up Port forwarding to be able to access the server from the outside.rpmckinley wrote: ⤴Mon Oct 18, 2021 2:14 pm Apparently it's a one-way only modem.
That's good for security I guess but not for accessing via ssh, or even through a user groups connection.
Not familiar at all with your modem so no idea how to accomplish that. And some ISP-provided hardware may be poorly suited and simply lack the needed functionality.. -more googling for you, lol
what do you mean with "user groups connection" - got a link?
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Ubuntu home server on the web
Code: Select all
man ufw
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
I managed to connect with ftp, (Filezilla), It does show me the folders/directory.
So I know it's connected.
However file transfer was denied./refused.
Trying to rest the 'allow downloads',,,,,, Port 21.
Edit the vsftp.conf file says to use Nano but everything from there fails.
In a terminal if I list (ls) I can see the vsftp.config file,, but then a "Find" or locate command says No such file found.
That sounds like a user rights or permissions problem.
I may have to change the file rights or owner.
????????
So I know it's connected.
However file transfer was denied./refused.
Trying to rest the 'allow downloads',,,,,, Port 21.
Edit the vsftp.conf file says to use Nano but everything from there fails.
In a terminal if I list (ls) I can see the vsftp.config file,, but then a "Find" or locate command says No such file found.
That sounds like a user rights or permissions problem.
I may have to change the file rights or owner.
????????
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Ubuntu home server on the web
Copy the files in /tmp where all can write.
https://askubuntu.com/questions/410947/ ... e%20remote.
https://askubuntu.com/questions/410947/ ... e%20remote.
Last edited by SMG on Thu Oct 21, 2021 8:39 am, edited 1 time in total.
Reason: Removed Google redirection from link.
Reason: Removed Google redirection from link.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
I have now managed to get FTP working on the little server. I edited the vsftpd.conf file following the instructions from this web site;
https://www.wikihow.com/Set-up-an-FTP-S ... ntu-Linux
Now I have my own index.html file in the /var/www/html folder/directory. That index.html appears when accessing the site via internet browser.
However I have a link on that page that should go to another page. Trying to view that page results in an error message "You don't have permission to view this page".
That is pretty self explanatory, it's a "rights" problem. This should be resolved using the chmod command to change the rights of the file. However attempts to change user and public rights results in another error, "You don't have permission to change the rights of this file."
I am login in as Administrator. I believe that I could modify file and folder rights if I use the sudo chmod commands. Using sudo makes me the super-user or "root".
So the next question is, what rights to read only should be set to files visible to the general public.
And how do you set those rights?
https://www.wikihow.com/Set-up-an-FTP-S ... ntu-Linux
Now I have my own index.html file in the /var/www/html folder/directory. That index.html appears when accessing the site via internet browser.
However I have a link on that page that should go to another page. Trying to view that page results in an error message "You don't have permission to view this page".
That is pretty self explanatory, it's a "rights" problem. This should be resolved using the chmod command to change the rights of the file. However attempts to change user and public rights results in another error, "You don't have permission to change the rights of this file."
I am login in as Administrator. I believe that I could modify file and folder rights if I use the sudo chmod commands. Using sudo makes me the super-user or "root".
So the next question is, what rights to read only should be set to files visible to the general public.
And how do you set those rights?
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
Changing file and folder rights on ubuntu server is easy.
Log in as administrator.
Open a terminal.
Here is one command that works. Be VERY careful doing this, mistakes can be hazardous.
sudo -R 755 /var/www/html
The -R is "recursively" which I believe means all the files in this folder.
.
https://linuxize.com/post/chmod-recursi ... DIRECTORY
Log in as administrator.
Open a terminal.
Here is one command that works. Be VERY careful doing this, mistakes can be hazardous.
sudo -R 755 /var/www/html
The -R is "recursively" which I believe means all the files in this folder.
.
https://linuxize.com/post/chmod-recursi ... DIRECTORY
Re: Ubuntu home server on the web
.. and subfoldersrpmckinley wrote: ⤴Thu Oct 21, 2021 6:29 pm The -R is "recursively" which I believe means all the files in this folder.
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Ubuntu home server on the web
Code: Select all
sudo chmod -R 755 /var/www/html
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Ubuntu home server on the web
https://medium.com/@iamsonumalik/1-1-ho ... a6161973f3
Came across this.
Came across this.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
Ubuntu Server 20.04.3 is up and running.
Am able to access via ssh and ftp without issues.
However server is NOT accessible or open to the internet.
I will need to edit my modem/router to configure port forwarding.
Also will set Server for port forwarding.
I have some instructions here:
https://www.arubacloud.com/tutorial/how ... 8-04.aspx
Not sure those are correct for my type of system.
Edit "before.rules" file. ???
Which ports are best to use on a Ubuntu/Raspberry server?
Am able to access via ssh and ftp without issues.
However server is NOT accessible or open to the internet.
I will need to edit my modem/router to configure port forwarding.
Also will set Server for port forwarding.
I have some instructions here:
https://www.arubacloud.com/tutorial/how ... 8-04.aspx
Not sure those are correct for my type of system.
Edit "before.rules" file. ???
Which ports are best to use on a Ubuntu/Raspberry server?
Re: Ubuntu home server on the web
you'll need to find instructions for you actual router
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
I have found that I can access the server from my L-Mint pc using the Mint file manager.
It's the Nemo file manager under Accessories in the Mint menu.
It is easier than FTP to copy and transfer files. Just simply copy and move files between the two machines the same way you move files around on your home pc.
Nemo will Mount the server just as it does with any other drive on your system.
It's the Nemo file manager under Accessories in the Mint menu.
It is easier than FTP to copy and transfer files. Just simply copy and move files between the two machines the same way you move files around on your home pc.
Nemo will Mount the server just as it does with any other drive on your system.
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
FTP - Filezilla, - - again.
Filezilla failed - again. spent three days troubleshoot it this time. Result was toooo simple. Set Transfer Settings to "ACTIVE" not Default.
Filezilla failed - again. spent three days troubleshoot it this time. Result was toooo simple. Set Transfer Settings to "ACTIVE" not Default.
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
VSFTPD SOLVED;
I was unable to transfer files and folders using Filezilla and standard FTP file transfer protocols.
So i did some checking. It turns out that since my server is connected to the same router as my home desktop, (Linux Mint 19.3)
There really is no need to use the VSFTPD or Filezilla.
Linux and Ubuntu already have two programs which can handle the task of transferring files to your home server.
#1) is the standard Nemo file manager in the Mint menu. That has a built-in ability to "Connect to Server".
You simply connect to the server through an SSH connection. Then use the file managers just as you would with any other files on your local desktop.
#2) SCP. Another built-in application that works much the same way except this works through an open Terminal window.
I haven't quite learned how to use that since all my server files are loaded on a different volume. That requires a "Mount" command I believe and much more detailed path text in the transfer commands.
The end result here is that I have stopped VSFTPD.service and unloaded/purged it. Plus I purged Filezilla program from my desktop.
Both are unnecessary waste of resources.
FTP problem SOLVED.
I was unable to transfer files and folders using Filezilla and standard FTP file transfer protocols.
So i did some checking. It turns out that since my server is connected to the same router as my home desktop, (Linux Mint 19.3)
There really is no need to use the VSFTPD or Filezilla.
Linux and Ubuntu already have two programs which can handle the task of transferring files to your home server.
#1) is the standard Nemo file manager in the Mint menu. That has a built-in ability to "Connect to Server".
You simply connect to the server through an SSH connection. Then use the file managers just as you would with any other files on your local desktop.
#2) SCP. Another built-in application that works much the same way except this works through an open Terminal window.
I haven't quite learned how to use that since all my server files are loaded on a different volume. That requires a "Mount" command I believe and much more detailed path text in the transfer commands.
The end result here is that I have stopped VSFTPD.service and unloaded/purged it. Plus I purged Filezilla program from my desktop.
Both are unnecessary waste of resources.
FTP problem SOLVED.
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Ubuntu home server on the web
Good to know that your server is becoming error free slowly.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
still unable to get internet to see/recognize my Domain, URL or server IP.
Set up "A' records for DNS on WHOIS.com, (where I registered my Domain.
Double checked all ports between modem/router and server.
Set Gateway UFW ports.
And reset the modem/router gateway settings to allow incoming.
Server IS connected to modem/router and I can access internet from a web browser on server.
Running out of ideas.
Need to check server/network name to make sure they match the Domain name. Including upper/lower case text.
Set up "A' records for DNS on WHOIS.com, (where I registered my Domain.
Double checked all ports between modem/router and server.
Set Gateway UFW ports.
And reset the modem/router gateway settings to allow incoming.
Server IS connected to modem/router and I can access internet from a web browser on server.
Running out of ideas.
Need to check server/network name to make sure they match the Domain name. Including upper/lower case text.
-
- Level 3
- Posts: 129
- Joined: Sun Jul 20, 2014 9:33 pm
- Location: Texas
Re: Ubuntu home server on the web
Contacted domain name hosting service. DNS still not forwarding domain name to my server. "Server NOT Found"
Company help is below zero.
hint: it doesn't help when you throw a cup of coffee at the monitor.
Company help is below zero.
hint: it doesn't help when you throw a cup of coffee at the monitor.