PDA

View Full Version : Newbie q's


Squidge
28th December 2008, 22:27
Hi all, i am new to Unix and building servers.

I am currently looking to build a Ubuntu Server that will host a site, but i also want this server to be able to email as well. So all the contact details for the website get emailed from the same server, could someone telll me if this is possible? is there a how to:?

i will be using the GUI interface, instead of cmd line

thank you in advance

:D:D

Squidge
29th December 2008, 10:21
Anyone care to offer some advice? :o

zcworld
29th December 2008, 12:25
99 % of server dont have GUI due to its a waste of memory and unneeded program that is running

most stuff is admin like via control panels like ISPconfig so on
so once installed than you have an web GUI to admin / run it all

do an search at the top for ISPconfig and im sure you will find one for the Ubuntu ver X.XX what your running

falko
29th December 2008, 13:59
I am currently looking to build a Ubuntu Server that will host a site, but i also want this server to be able to email as well. So all the contact details for the website get emailed from the same server, could someone telll me if this is possible? is there a how to:?Yes, that's no problem. http://www.howtoforge.com/perfect-server-ubuntu-8.10

i will be using the GUI interface, instead of cmd line

I wouldn't install a desktop on a server because it eats up too many of your resources and is a security risk.

Squidge
29th December 2008, 19:13
Yes, that's no problem. http://www.howtoforge.com/perfect-server-ubuntu-8.10


I wouldn't install a desktop on a server because it eats up too many of your resources and is a security risk.


Thanks for the link, i have been reading through it :D

How easy is Unix Ubuntu to use? i have never used a unix based system before?

zcworld
30th December 2008, 00:53
if you doing an following an howto ... it should be almost easy as
just follow the steps

if not
than it may take some trail n errors to get your head around it all
if you got a good friend / place to post problems you run into ... than its easyer than trying one your own
u go batty and gray easy at times

but once you get hang of any linux OS than its simple to use any other one :)

zcworld
30th December 2008, 05:38
if you need an somewhat UI ... you can try webadmin
it will let u do a lot of via an web UI ... but even than i will personal turn it off when i dont need it

Squidge
30th December 2008, 10:00
Thank you so much for your help. I will let you know how it goes :o

I think i will just follow the how to.

Is there a way of turning of the GUI as i think that has already been installed

zcworld
30th December 2008, 10:19
if you installed the server edition
there is no GUI at alll
its all command line

Squidge
30th December 2008, 10:20
if you installed the server edition
there is no GUI at alll
its all command line

My friend did this:

<code>sudo apt-get install ubuntu-desktop</code>

chipsafts
30th December 2008, 19:42
The only GUI type admin interface I would suggest is
webmin , www.webmin.com

Squidge
31st December 2008, 14:36
I would like to thank you all for you input.

One last question, can i run firefox on the server?
Do you have any good suggestions for a Unix FTP server? Fillezilla? Double Commander etc?

chipsafts
31st December 2008, 19:01
yes, you can use FireFox if you download the correct version.

use (one of) the FTP server(s) that came with the OS.

Squidge
1st January 2009, 21:04
hello again;
i have followed the formentioned tut on setting up the perfect server.

I am able to conect using webmin, whilst inside my home network: using a fixed IP 192.168.1.100

But when i try to conect externally i am unable. Could someone possibley help me on this?

Thank you in advanced

chipsafts
1st January 2009, 21:28
[...]
I am able to conect using webmin, whilst inside my home network: using a fixed IP 192.168.1.100
But when i try to conect externally i am unable. Could someone possibley help me on this?
Thank you in advanced
192.168 addresses are non-routable, they can not be accessed from outside that address space.
Do you have a routable ip address? Try http://www.myipaddress.com/show-my-ip-address/ from your server and then try to connect to that.
And don't forget to configure webmin to listen at the routable ip address

Squidge
1st January 2009, 21:37
192.168 addresses are non-routable, they can not be accessed from outside that address space.
Do you have a routable ip address? Try http://www.myipaddress.com/show-my-ip-address/ from your server and then try to connect to that.
And don't forget to configure webmin to listen at the routable ip address

Thanks for your quick response.

I have got my IP, how do i set webmin to listen to that IP address?

Sorry i am really new to Unix systems

marpada
2nd January 2009, 01:47
You have to configure your router/firewall to port-forward a port of your public IP to port 10000 at 192.168.1.100
________
THE CIGAR BOSS (http://thecigarboss.com/)
________
Lovely Wendie (http://www.lovelywendie99.com/)

Squidge
2nd January 2009, 09:46
You have to configure your router/firewall to port-forward a port of your public IP to port 10000 at 192.168.1.100

Thank you very much. Is that for http?

marpada
2nd January 2009, 15:03
No, it's for connecting to webmin from outside your home network
________
INTERRACIAL COUPLE (http://www.fucktube.com/categories/702/couple/videos/1)
________
Side Effects Of Nexium (http://www.classactionsettlements.org/lawsuit/nexium/)

Squidge
2nd January 2009, 15:05
No, it's for connecting to webmin from outside your home network

So do i need to set up a service on the router?

I have FTP and HTTP services pre-set on the router

marpada
2nd January 2009, 15:31
Exactly, you have to open another port in your router and redirect it to port 10000 in your box.
You can use port 10000 or another random unused port, so as to avoid "scrpit kiddies" ;)
________
Colorado Medical Marijuana Dispensary (http://colorado.dispensaries.org/)
________
The girls next door forums (http://www.tv-gossip.com/girls-next-door/)

Squidge
2nd January 2009, 15:32
Exactly, you have to open another port in your router and redirect it to port 10000 in your box.
You can use port 10000 or another random unused port, so as to avoid "scrpit kiddies" ;)

Thank you very much. Really sorry about asking all the questions. I am brand new to Unix. But am reading alot of stuff about it. So fingers crossed the questions will come to end soon :D

Thanks again

Squidge
5th January 2009, 10:09
i'm back again.

I have installed the basic LAMP and SSH server software, configured the Network file to look like this:
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameserver 192.168.4.100 192.168.8.100

But i still cannot connect outside of my network. I have set up HTTP and FTP forwarding on my router, and have also set a new service for Webmin on my router as well. Could someone point out where i may be going wrong? Thank you in advance :(

chipsafts
5th January 2009, 20:18
if possible, take a printscreen of your router configuration for the http and webmin forwarding and post it here.

And are you sure that the changes you made to the router have been applied ?

Squidge
5th January 2009, 20:51
if possible, take a printscreen of your router configuration for the http and webmin forwarding and post it here.

And are you sure that the changes you made to the router have been applied ?

http://i30.photobucket.com/albums/c305/gchalkley/untitled-4.jpg

falko
6th January 2009, 10:17
i'm back again.

I have installed the basic LAMP and SSH server software, configured the Network file to look like this:


But i still cannot connect outside of my network. I have set up HTTP and FTP forwarding on my router, and have also set a new service for Webmin on my router as well. Could someone point out where i may be going wrong? Thank you in advance :(
Your system cannot connect to the DNS servers 192.168.4.100 and 192.168.8.100 because they are in a different subnet. Please try 145.253.2.75 and 213.191.92.86 as nameservers.

Squidge
6th January 2009, 11:26
Your system cannot connect to the DNS servers 192.168.4.100 and 192.168.8.100 because they are in a different subnet. Please try 145.253.2.75 and 213.191.92.86 as nameservers.

none of the DNS nameserver worked, so i chopped them out and now have this:

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.225
gateway 192.168.1.1


Which is letting me SSH to the server now, so thats good :-)

Only thing now is i am trying to set up ProFTPD but it keeps timing out when it trys to retrieve:

Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

Squidge
6th January 2009, 12:23
Only thing now is i am trying to set up ProFTPD but it keeps timing out when it trys to retrieve:

Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

Sorry got that sorted out. Newbie error.

I am trying to set up postfix. all i want is to be able to send out email from a website. How do i do this?

falko
7th January 2009, 12:02
Chapter 15 on http://www.howtoforge.com/perfect-server-ubuntu-8.10-p5 should be all you need for sending. :)

Squidge
7th January 2009, 12:06
Chapter 15 on http://www.howtoforge.com/perfect-server-ubuntu-8.10-p5 should be all you need for sending. :)

Are there any settings i need to change or add?

falko
7th January 2009, 13:52
Just replace server1.example.com with your own hostname.

Squidge
7th January 2009, 14:27
Just replace server1.example.com with your own hostname.

I am stuck with this bit:

Next we configure Postfix for TLS (make sure that you use the correct hostname for myhostname):

postconf -e 'myhostname = server1.example.com'

my server is "server1.yellow-zebra.co.uk"
what do i use for <i>myhostname</i>

also i have this:root@server1:/etc/postfix/ssl# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Sendmail 8.14.3/8.14.3/Debian-4; Wed, 7 Jan 2009 12:37:32 GMT; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1]
ehlo localhost
250-server1.example.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP


instead of what you have in the guide:
root@server1:/etc/postfix/ssl# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@server1:/etc/postfix/ssl#

Any help again would be greatly appreciated

falko
8th January 2009, 14:59
I am stuck with this bit:

Next we configure Postfix for TLS (make sure that you use the correct hostname for myhostname):

postconf -e 'myhostname = server1.example.com'

my server is "server1.yellow-zebra.co.uk"
what do i use for <i>myhostname</i>
server1.yellow-zebra.co.uk

also i have this:

instead of what you have in the guide:


Any help again would be greatly appreciatedSendmail is still running. Stop it and start Postfix.

Squidge
8th January 2009, 16:20
server1.yellow-zebra.co.uk

Sendmail is still running. Stop it and start Postfix.

Thanks very much for your help. I have now got it up and running. I had removed Sendmail but it left trace files behind so removed them, reinstalled postfix following your guide. And voila!!!! One work Server, with email capability!!!

Thank you so much for your help :D

Squidge
8th January 2009, 17:49
one last question, how do i enable apache to use clean urls?

Not to worry, i have solved it :-)

Squidge
12th January 2009, 13:29
Me again.

Everything is running fine bar one issue. When i send an email from my website, i get a file that creates itself in the /Maildir/new/

Is there anyway of stopping this as they keep coming through

falko
13th January 2009, 15:01
i get a file that creates itself in the /Maildir/new/


Of what user? Are you sending to a foreign domain, or a domain that is hosted on your server?

Squidge
13th January 2009, 15:05
Of what user? Are you sending to a foreign domain, or a domain that is hosted on your server?

Seems to have stopped now. It is in the /var/www/ as root

falko
14th January 2009, 13:15
Ah, that's probably the mailbox of the user www-data (the Apache user on Debian/Ubuntu); mails from web applications are sent as this user. Maybe there were some bounces, that's why the Maildir got created.