/srv/irclogs.ubuntu.com/2014/11/17/#ubuntu-server.txt

dominic1134Hi guys, just want to inform you about a new open source email communication gateway project for ubuntu.  check it out www.openas.org  /  feel free to join us in #openas00:11
ProfessorKaos64what do I need to do so I can ping / ssh by hostname on my ubuntu server instead of IP?01:06
maswansetup DNS01:11
pmatulisProfessorKaos64: implement "hostname resolution" - (① local file like /etc/hosts or ② a local OR internet-based mechanism like DNS)01:15
pmatulisProfessorKaos64: things to know: will you want others to do the same (or just yourself) and whether your server is internet-based or not01:16
ProfessorKaos64just local LAN01:16
newbieubuntusup01:16
pmatulisProfessorKaos64: simplest is a local file then01:16
pmatulis(/etc/hosts)01:17
newbieubuntuanyone can help me with dovecot/postfix/thunderbird for lan-only email system ? I'm been looking and following guides for 2 weeks all over the net with no solutions because they all need MX and FQNS.01:17
ProfessorKaos64I know of /etc/hosts, but this typically isn't an issue for my other computers, this is what I have in /etc/hosts01:17
ProfessorKaos64127.0.1.1test-smb.192.168.11.100test-smb01:17
fingertipsDoes the 10.04.4 LTS server come with a private cloud solution?01:17
pmatulisProfessorKaos64: state the problem you're having in simple terms01:18
ProfessorKaos64my archbox machine can only ping my newly created ubuntu server box by IP01:19
ProfessorKaos64Normally I can see all client PCs on other distros, so I figured I just needed to add something01:19
fingertipsI ask here because I see it is not where ubuntu pr is pointing.01:19
pmatulisProfessorKaos64: what is the IP address and what name do you want it known by?01:19
ProfessorKaos64192.168.11.155 test-smb01:21
pmatulisProfessorKaos64: normally you want a FQDN for the name as well as just the hostname01:23
ProfessorKaos64I mean, yea I could set this on ddwrt, but I normally don't have to01:23
pmatulis192.168.11.155 test-smb.example.com test-smb01:23
ProfessorKaos64That would go in the hosts file of my Arch machine or the ubuntun server?01:24
pmatulisthe one doing the pinging01:24
pmatulis(ping sender)01:24
ProfessorKaos64ok01:24
pmatuliswhat IP address does the sender have?01:25
ProfessorKaos64192.168.11.13001:25
pmatulisok01:25
ProfessorKaos64works now thanks, so why normally is this not needed? is it because the ubuntu server doesn't typically report the hostname in the same way regular ol' ubuntu 14.04 LTS would?01:26
pmatulisProfessorKaos64: i don't follow.  is what not needed?  the above is needed to resolve the hostname to an address01:27
pmatulisunless you use another method such as DNS01:27
ProfessorKaos64normally, I can just ping any other PC on my network, I only had to add the ubuntu server. Perhaps the hostname is just not advertised the same. I can check my ddwrt setup01:28
fingertipsIt looks like the desktop is not accessing the /etc/hosts file.01:28
pmatulisto ping by name you MUST have some kind of name resolution set up01:28
fingertipsIt is attempting to resolv a name that is in the file, why is this?01:29
pmatulisfingertips: huh?01:30
pmatulisfingertips: what problem are you having?01:30
fingertipsI have just stated the problem.01:30
pmatulisfingertips: what is attempting to resolve a name that is in what file?01:31
fingertipsfirefox and nslookup for example01:32
fingertipsThey are attempting to resolve a name that is in /etc/hosts01:32
pmatulisfingertips: so?01:33
pmatulisfingertips: are you using DNS?01:33
fingertipsDoes the software not look for it in /etc/hosts before contacting a dns server?01:33
pmatulisfingertips: it depends how the host is configured (nsswitch.conf)01:37
pmatulisfingertips: but some tools, and i believe nslookup is one of them, are strictly DNS thingies.  the host tool is one of them01:39
JanCnslookup, host & dig only use DNS, IIRC01:43
fingertipsI take it firefox is using an internal resolver then?01:43
JanCit uses the system (C-library) resolver01:44
JanCthere is some diagnostic tool that uses that too, but I forgot its name  :)01:44
newbieubuntuanyone can help me with lan-network(intranet) mail postfix-dovevot ?01:45
pmatulis!ask | newbieubuntu01:45
ubottunewbieubuntu: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience01:45
JanCfingertips: are you familiar with any scripting language like Python or Perl?  most such languages have functions that call the "system resolver" function01:50
JanCPHP probably has it too01:50
fingertipsfamiliar with shenanigans01:53
LinStatSDR^01:57
fingertipsSomething funny is going on with firefox.02:03
JanCfingertips: see 'man getent'02:03
JanCmore specifically the "*hosts*" related databases02:04
fingertipslooking02:05
JanCthat should show how most applications resolve domain names02:05
* JanC off to bed now02:05
fingertips HexChat: 2.9.6 ** OS: Linux 3.5.0-17-generic i686 ** Distro: Debian wheezy/sid ** CPU: 2 x AMD Phenom(tm) II P650 Dual-Core Processor (AuthenticAMD) @ 800MHz ** RAM: Physical: 7.7GB, 91.3% free ** Disk: Total: 5.3GB, 56.7% free ** VGA: Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4200 Series] ** Sound: HDA-Intel - HDA ATI SB1: HDA-Intel - HDA ATI HDMI ** Ethernet: Realtek Semiconductor Co.,02:09
fingertips Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller ** Uptime: 17h 38m 16s **02:09
newbieubuntuanyone can help me with lan-network(intranet) mail postfix-dovevot ? i've followed this youtube video https://www.youtube.com/watch?v=1yKwIWRL97Q   but i cant login from the windows client to the squirrelmail login page02:12
newbieubuntuits like this, I want to set up a mail system so that 5 of the windows clients in my home can email one another, but through lan and not internet.02:13
fingertipsnewbieubuntu, just use postfix02:16
newbieubuntufingertips, is there any guide i can follow ?02:17
fingertipsthe man pages02:18
pmatulisnewbieubuntu: just google 'postfix dovecot ubuntu'02:19
fingertipsyou don't need dovecot or squirrelmail02:20
fingertipsyou can just use postefix and the ip address or setup a wins name02:20
cryptodandovecot would be incoming IMAP or POP3 unless they want to use another POP3 server02:26
fingertipsnewbieubuntu, that is not for internal home email systems02:31
=== fingertips is now known as pentagon_
newbieubuntuwhat, guys02:35
newbieubuntuso postfix is sufficient02:35
newbieubuntudo i set up all the login mail accts from ubuntu itself ?02:36
newbieubuntugoogling "postfix dovecot ubuntu" shows up all the setting require QNDS, Domains, MX records02:37
cryptodannewbieubuntu: what is it that you are wanting to do02:37
newbieubuntucryptodan, i want to set up a ubuntu mail server from scratch, make a mail system that allows the windows clients on my lan network to mail each other using thunderbird02:39
cryptodanthen you will need dovecot and postfix and that is it02:39
cryptodanif you install Ubuntu Server 14.04LTS you can accomplish this02:39
newbieubuntui had it install02:40
cryptodandid you do a sudo tasksel?02:40
cryptodanand select mail server02:40
newbieubuntuit will not be using internet connection, because i dont have a FQDN02:40
cryptodanthat can be anything like yourlan.lan02:40
cryptodansetup a local DNS Server for that youlan.lan02:41
pmatulisyou don't need DNS02:42
newbieubuntu... ...02:42
newbieubuntui have make this mail.mail.local02:42
newbieubuntufollowing https://www.youtube.com/watch?v=1yKwIWRL97Q02:43
newbieubuntuconfusing d....02:44
pmatulisDNS for mail provides a MX record.  this tells a sender (usually an MTA) what next MTA to send mail to.  here, tbird will send directly to the ubuntu postfix server which will be the final destination so it won't need to do a MX lookup to send somewhere else02:44
pentagon_newbieubuntu, all you need is postfix and use the ip addresses as mail addresses02:45
newbieubuntuis there any simple guide i can follow. those i gets from google, i simply cut &paste the command changing the IP but its so confusing02:45
pmatuliswhaaaat?02:45
cryptodanpentagon_: he wants incoming as well02:45
cryptodanread what he wants02:46
pmatuliswindows (tbird) --> SEND --> ubuntu (postfix/MTA)02:47
pmatuliswindows (tbird) <-- RETRIEVE <-- ubuntu (dovecot/IMAP)02:47
pmatulisin tbird you can choose your MTA (SMTP server).  so that's where the SENDER points to02:48
pmatulisand same for retrieving.  you choose your IMAP server02:48
bugs_buggerhi. im trying to set up 2 apache vhosts on one machine (one ip, 2 dns). but im not getting apache2 to use different root paths for the two domains. i followed the instructions here https://httpd.apache.org/docs/2.2/en/mod/core.html#virtualhost and had a look at the examples here https://httpd.apache.org/docs/2.2/vhosts/examples.html ... to no avail. what might i be doing wrong02:48
newbieubuntucryptodan, pmatulis, pentagon_ @ hmmm02:52
pentagon_newbieubuntu, keep it simple02:53
newbieubuntuor should i learn how to set up a dns server first02:53
pmatulisnewbieubuntu: why?02:53
newbieubuntuit doesn't help if im just following onlien guides blindly02:55
newbieubuntucan you guys tell me, what basic concept i should grasp first ?02:55
pentagon_newbieubuntu, keep it simple02:55
pmatulisnewbieubuntu: i just told you the basics.  go from there02:55
pentagon_gandi.net uses vhosts02:56
bugs_buggerpentagon_: sorry, was that referred to me?02:58
pentagon_It looks like this system has avahi. Does avahi act as a client and caching server?03:23
pentagon_I resolve to call her up.03:27
=== markthomas|away is now known as markthomas
=== bilde2910|away is now known as bilde2910
=== bilde2910 is now known as bilde2910|away
=== exixt is now known as exixt_
pentagon_avahi05:57
pentagon_Does dnsmasg rely on avahi?05:57
pentagon_dnsmasq05:58
=== exixt_ is now known as exixt
pentagon_Ubuntu is not designed to work well with a firewall.06:22
pentagon_Wasn't there a kid looking to add firewall rules earlier?06:22
pentagon_Where are the logs.06:22
pentagon_There is some loopy fiasco going on with the DNS setup.\06:23
pentagon_Wrong channel it was in #ubuntu.06:25
lotuspsychjeyou guys have a package to manage upstart system services in /etc/init easily? or you still use the service.override trick?06:32
The_Tickpentagon_: "not designed to work well with a firewall"?06:44
pentagon_The_Tick, It never was.07:00
The_TickI'm not really sure exactly what that's supposed to mean though, I mean it's just linux07:01
The_Tickis there some modification to the stack that's horribly different than the standards?07:02
pentagon_horribly?07:02
qman__the logs are wherever you decided to log to07:08
qman__by default there are none07:08
qman__just as by default there are no rules07:08
The_Tickit's still iptables right?07:10
qman__yes07:10
qman__and optionally ufw07:10
The_Tickya that's not bad07:10
qman__logging traffic by default is a surefire way to fill up disks unexpectedly07:10
The_Tickis there some gui to help configure the rules and optionally log the specific rules?07:11
The_Tickagreed, that'd be dumb07:11
lordievaderGood morning.07:14
qman__I don't know if there are any GUI frontends for ufw. There are numerous ones for iptables and I can't recommend any of them.07:14
lordievaderGufw ;)07:15
lordievaderThough it keeps its own tables...07:15
The_Tickqman__: ya just thinking for people with a lot of rules sometimes it's nice07:16
The_Tickbut I don't understand the claim about it not being designed to work well with a firewall07:17
qman__a well written shell script is vastly superior to any GUI tool for iptables07:19
qman__ufw works a little different and it may work better there07:20
The_Tickeh a gui is nice for seeing it all07:20
The_Tickshell script could do that but it'd be fairly complicated, and iptables -L isn't utterly great sometimes07:21
The_Tickregardless my point wasn't about that, whatever you do to admin it is fine07:22
lordievaderEach admin has their own tools they prefer, eh ;)07:23
=== psivaa-holiday is now known as psivaa
faylitejava09:02
fayliteWrong window ^^09:03
lordievaderfaylite: No swearing :P09:04
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== zz_DenBeiren is now known as DenBeiren
=== exixt is now known as exixt_
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== TheBurgerKing_ is now known as TheBurgerKing
=== Guest4725 is now known as balloons
=== balloons is now known as Guest12343
=== Guest12343 is now known as balloons_
=== exixt_ is now known as exixt
=== Guest49681 is now known as jrgifford
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== MeltedDed is now known as MeltedLux
=== blake_r-afk is now known as blake_r-austin
Prezidentwelcome dhill515615:58
dhill5156Hi all, my 12.04 server edition of Ubuntu doesn't detect my RAID5 array on my HP Gen9. What driver do i choose/need to use to resolve this???15:58
dhill5156or is there a way of upgrading the 12.04 kernel to detect this array?16:01
dhill5156the only array controller drivers on HP's site are under the windows sections16:03
dhill5156and i put it onto a usb16:03
dhill5156but 12.04 doesn't like it16:03
ReScOhey people16:07
ReScOi'm running three domains on my server, what is my FQDN?16:08
=== txspud` is now known as txspud
killallHello i have a problem17:03
killallI establish a ssh tunnel to a remote machine B with -L 1234:C:5678 and i dont receive the response since the third machines C send the request to a port that is not forward, how can i fix it?17:05
=== exixt is now known as exixt_
=== bilde2910|away is now known as bilde2910
pmatulisReScO: well, what are the hostnames and what are the domain names?17:48
ReScOi've figured it out17:49
ReScOi've called my machine deltapi17:49
ReScOand i've set my PTR to pushforward.nl17:49
ReScOso my fqdn is deltapi.pushforward.nl17:49
ReScOright?17:50
pmatulisReScO: as long as your /etc/hosts file agrees with that then yeah.  test with 'hostname -f'17:50
=== balloons_ is now known as balloons
=== balloons is now known as Guest26895
=== Guest26895 is now known as balloons_
=== med_` is now known as medberry
=== medberry is now known as Guest50599
=== Guest50599 is now known as med_
=== liam_ is now known as Guest63751
adam_ghallyn, any chance you know if sgabios known to work okay on trusty ?  trying to set <bios useserial='yes'/> for a domain, and see it passing the expected '-device sga' to qemu, but not getting anything from early boot on the serial19:29
=== MeltedLux is now known as MeltedDed
=== TheBurgerKing_ is now known as TheBurgerKing
=== keithzg_ is now known as keithzg
=== MeltedDed is now known as MeltedLux
hallynadam_g: haven't looked into it.  the pkg hasn't changed in ubuntu or debian since dec 201319:59
adam_ghallyn, actually i just found the issue, apparmor is denying libvirt's open of /usr/share/misc/sgabios.bin20:00
ReScOi'm completely stuck trying to set up postfix+dovecot+mysql20:00
ReScOhttp://paste.ubuntu.com/9060045/ postfix conf20:00
hallynadam_g: oh, feh.  pls file a bug and i can push that at least to vivid today20:00
adam_ghallyn, will do20:00
hallynthanks20:01
jjohansenReScO: could you try linux-image-3.16.0-22-generic_3.16.0-22.29+jj_amd64.deb it has a bug fix for an issue that seems to be triggering with postfix20:01
ReScOjjohansen: why would i need to install a package when i'm having configuration issues20:02
jjohansenReScO: oh, I missed that. I saw apparmor rejection and postfix when doing a quick scan20:03
jjohansenI know the bug can trigger apparmor rejections with post fix20:03
sarnoldReScO: do you have any DENIED lines in dmesg or audit log?20:03
sarnoldReScO: it might yet be related :)20:04
ReScOsarnold: i'm trying to set up postfix20:05
ReScObut i'm having trouble20:05
ReScOi have three domains20:05
ReScOone has a SSL cert20:05
ReScOthe others don't20:05
ReScObut, the domain with ssl is not the main email address domain20:05
ReScO(api1.nl is the SSL domain, pushforward.nl is the important domain to catch email for)20:06
ReScOi'm also stuck at how to set up such a server, the MySQL part is working and verified as working20:06
bantoneany way I can automatically update the repo lists in /var/lib/apt/lists/ instead of having to manually do 'sudo apt-get upgrade'?20:07
bantonei am getting a lot of alerts on servers im managing about stale apt-cache20:07
bantoneof course apt-get update resolves it20:07
bantonesorry not apt-get upgrade20:07
sarnoldbantone: if you're getting tired of manually managing your apt-get upgrades .. you could use the unattended-upgrades package, or you could use landscape.canonical.com20:09
sarnoldReScO: sorry, I'm not postfix expert, I just know that some newer versions of apparmor had unexpected influence on postfix. but if you don't have any DENIED messages from apparmor, it's unrelated, and that's the limit of my knowledge :(20:10
jjohansenditto20:10
bantonesarnold: awesome20:13
adam_ghallyn, https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1393548, there y'ar.20:25
uvirtbotLaunchpad bug 1393548 in libvirt "libvirt's apparmor profile denies access to sgabios.bin" [Undecided,New]20:25
hallynadam_g: thank you sir20:34
=== balloons_ is now known as balloons
=== balloons is now known as Guest23152
=== Guest23152 is now known as balloons_
=== ToastOffice is now known as StolenToast
=== markthomas is now known as markthomas|away
shreddingDo i have to do something to start /etc/cron.hourly?21:03
shreddingit looks like my job does not run (though im not totally sure)21:03
qman__The scripts in it must be exectable to runai you can check /var/log/syslog to see if it's running21:05
sarnoldshredding: any errors in logs?21:05
qman__A non intuitive limitation, it won't run any scripts named with .sh on the end21:07
shreddingi have something like this21:08
sarnoldo_O21:08
shreddinghttp://pastebin.com/DgUyt6pk21:08
sarnoldinteresting21:08
qman__/etc/cron.hourly/myscript works, /etc/cron.hourly/myscript.sh does not21:08
shreddingmy script ist just named „fetch_followers“21:08
shredding$ run-parts --test /etc/cron.hourly21:08
shreddingreturn „/etc/cron.hourly/fetch_followers"21:09
sarnoldcan you read that email sent to root? I bet it contains the stderr of your job..21:09
shreddinghow would i do that?21:09
shreddingI’m root21:10
shreddingi guess the main problem is that i’m root and not someone with knowledge ^^21:10
sarnoldlol21:11
sarnoldmutt or pine or mail or less /var/spool/mail/root or something similar21:11
shreddingfound it.21:11
shreddinghttp://pastebin.com/8UD3bAmn21:11
shreddingnot sure what it means, though21:12
shreddingoh21:12
shreddingfirst line of my script is #/bin/bash21:12
shreddingis that a problem?21:12
shredding#!/bin/bash would look better21:12
JanCobviously :)21:13
qman__Make sure you set PATH in your script if needed, cron runs with a minimal one21:14
JanCI'm pretty sure the "hash" instead of "hash-bag" was te problem21:14
JanC"hash-bang"21:15
shreddingcool21:15
shreddingthank you all!21:17
tkeith_If I can SSH into a machine on an internal network, what's the easiest way to set up a VPN such that I have NAT access to that network through the machine via SSH?21:22
sarnoldtkeith_: I've seen an ssh+ppp "vpn" thing before, dunno if it's really the easiest way to get there though21:23
tkeith_sarnold: I mean, I can get "almost" there with SOCKS tunneling, it seems like there must be a tool to make it easy to just get full NAT! But I could be totally wrong...21:23
jhobbssshuttle?21:25
jhobbstcp only though21:25
tkeith_jhobbs: That should do the job... thanks!21:26
=== bilde2910 is now known as bilde2910|away
tafa2anyone something as easy to use as newrelic servers but that is self managed? (but not cacti, naggios, zabbix, zenoss)21:44
JanCtafa2: what's "newrelic"?21:48
tafa2http://newrelic.com/server-monitoring21:48
JanCso what's wrong with the 4 you named compared to them?21:50
JanCwhat features do you need they don't offer?21:50
tafa2ive tried all 421:50
tafa2and all are good and stable21:51
tafa2but so heavy21:51
tafa2resource intensive21:51
=== balloons_ is now known as balloons
JanCthat probably depends on configuration also, dunno21:52
tafa2probably21:52
=== blana is now known as blanoz^hunting
=== markthomas|away is now known as markthomas
=== MeltedLux is now known as MeltedDed
=== WhiteIntel_ is now known as WhiteIntel

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!