/srv/irclogs.ubuntu.com/2013/08/31/#ubuntu-server.txt

mgwHow can I (externally) determine the interface MAC for an LXC container that was created from the default config?00:59
sarnoldmgw: does 'ip link' show them?01:04
mgwsarnold: it doesn't show the interfaces inside the container's namespace01:09
mgwI might be able to figure something out using ip netns01:10
sarnoldmgw: maybe tcpdump -i <bridge> -e ?01:12
mgwI'm using macvlans01:14
mgwsarnold: ^01:14
mgwsarnold: I'm wanting a way to a) create a container with lxc-create; b) determine the hwaddr for the container's iface(s); c) doe some stuff with those addrs before actually starting the container01:16
sarnoldah, so way beyond my experience, not just a little bit. hehe. :)01:16
sarnoldmgw: hey, check htis out: https://wiki.debian.org/LXC/SimpleBridge01:18
sarnoldmgw: lxc.network.hwaddr01:18
sarnoldmgw: there's plenty of mentions of that in the lxc package, I expect our packages honor it too01:18
mgwsarnold: yeah, i may just generate hwaddrs and use that (that's what I was doing during testing). I was trying to avoid creating configs for every container.02:09
mgwi can actually do some tricks to find the pid for the cgroup, and then do this:02:10
mgwip netns exec <pid> ip addr02:10
mgwbut i'm not sure it's worth it02:11
=== freeflying_away is now known as freeflying
mgwsarnold: for the record, I was able to do this:02:26
mgwsudo lxc-execute -n container-name -f /etc/lxc/lxc.conf ip addr02:27
mgwthe trick was passing the -f arg rather than allowing it to use the auto-generated config associated with the container02:28
stluBind9 - I'm trying to learn to configure dns - will it talk with a DSL Modem/router and become a secondary DNS for the router's hosts?03:51
submanhow do I install sendmail?  I've actually installed it but how do I set it up?  It does not seem to be sending email with the default settings.03:53
stlusubman: there is a wiki page to configure sendmail.  I used another ubuntu wiki to learn to setup postfix.  It was very clear and thorough.03:54
stlubrb03:55
submanstlu address03:56
linuxtechbind does not use a hosts file.03:58
linuxtechstlu: why do you want to use sendmail, Ubuntu uses postfix by default and Debian uses exim4.  I use exim4.03:59
sarnoldman, there's an 800 page book for configuring sendmail. I'm not sure it's long enough.04:01
submansarnold, 800 pages????  The space shuttle manual was smaller than that!04:03
sarnoldsubman: haha :)04:03
sarnoldwow. 4th edition has 1312 pages: http://shop.oreilly.com/product/9780596510299.do04:04
sarnoldask yourself, if you had to write a mail server from scratch, how many printed pages do you think it would take?04:04
submanWell I just need the page that helps me getting the basics setup.04:05
submanI've run sendmailconfig and still not working04:05
sarnoldsubman: getting mail working is a bit involved; there's remote -> local, local -> remote, forwarding... what doesn't work? are there any details in the log files?04:08
submanWhat port is sending?04:11
submanAh, 25.  It is blocked I think.04:13
linuxtechThe port sending varies, the port receiving is 25 for SMTP.04:14
submanSo why else would sending not work?04:14
linuxtechI haven't used sendmail in more than 15 years...  So ir could be something with it, or some other networking issue.04:16
linuxtechI suggest you try postfix or exim4.04:16
crassubuntu is phasing out the ia32-libs, so what's taking its place?04:19
submanI've tried postfix but how to configure?04:24
linuxtechDid you try https://help.ubuntu.com/lts/serverguide/email-services.html04:25
linuxtechcrass: http://summit.ubuntu.com/uds-1308/meeting/21877/client-s-32v64-bit/ perhaps that session will answer your question.04:28
submanlet me see04:29
submanis there no bare bones, teach me like i'm 5 tutorial?04:37
submanAnyone could help and it would be appreciated.04:39
linuxtechhttps://help.ubuntu.com/lts/serverguide/exim4.html04:41
crasslinuxtech: that seems to be a discussion of 32 vs 64 bit, not running 32bit on 64 bit.  Or have I not watched long enough?05:00
sarnoldcrass: welcome back, you didn't miss any responses..05:03
crassthanks sarnold, that answers my other question (did my message get sent :)05:04
sarnoldhehe :)05:05
stluback05:08
stluso generally, do DNS servers work with home routers?  I have a Bell 2Wire modem/router which provides local DNS for DHCP clients with hostnames.05:10
sarnoldstlu: you'll probably want to configure the dns server to be a forwarder rather than a recursor05:13
=== mlocher_ is now known as mlocher
=== freeflying is now known as freeflying_away
stluhmmm, well the Bell router isn't open to being a secondary DNS to a LAN host, so...08:10
stluI would have to make my DNS a secondary to the home router/dhcp/dns, or just ignore the DNS service it provides for LAN hosts...08:12
stlu(assuming the home router will actually forward the LAN dhcp client records)08:13
=== mrmist is now known as mist
=== Nafallo_ is now known as Nafallo
=== freeflying_away is now known as freeflying
MACscris there an ubuntu image out there for running ubuntu server from usb? I want to make sure the OS is ran from ram mostly, but i still need persistent storage for updates/configs. Im wondering what would be the best way to do that part too.09:47
MACscrthough i probably wouldnt update it much since it would be a storage server09:47
mardraumstandard server image installs to a usb just fine09:50
MACscrmardraum: right, but it then runs from usb as well instead of a ramdisk. Correct?09:51
mardraumyes?09:51
MACscrmardraum: so that wouldnt really answer my question unless you stopped at the first sentence.09:52
mardraum"ran from ram mostly"09:53
mardraumif you wanted a ramdisk, why didn't you say?09:53
MACscrmardraum: my apologies for not making that more clear09:54
=== SoulOfTheInterne is now known as ToBeFree
ice9Are there other alternatives for ownCloud?12:49
Jeeves_Morning13:12
Jeeves_init: dbus main process (3468) terminated with status 113:12
Jeeves_init: dbus main process ended, respawning13:12
Jeeves_init: plymouth main process (514) killed by SEGV signal13:12
Jeeves_init: plymouth-splash main process (3389) terminated with status 213:12
Jeeves_init: plymouth-log main process (3447) terminated with status 213:12
Jeeves_Anyone with good ideas on how to debug that?13:12
Douughello all, anyone know of a good guide for ubuntu MS Exchange replacement? I have tried the Samba4 , Sogo and OpenChange solution from Google but Outlook hangs on loading profile and Samba4 crashes15:11
RoyKDouug: zimbra?15:12
=== jekel is now known as raininja
RoyKDouug: samba doesn't have anything to do with email/calendar etc15:12
Douugthank you, tried it but not happy with the community edition.15:12
RoyKwhy not?15:13
Douuglet me find the guide i was using .. brbr15:13
RoyKDouug: keep in mind that zimbra should be installed on a dedicated machine/vm15:13
Douughttp://iabsis.com/EN/article/35/Installation-de-Samba4-et-Openchange-sur-un-serveur-Debian-ou-Ubuntu15:14
Douugalso want a active directory repalcement15:14
Douugdoesnt hte outlook connector for Zimbra cost a little ?? want to try put the free edition of everything in, or atleast compile something to that extent15:15
DouugRoyK, what do you suggest I do ?15:18
=== freeflying is now known as freeflying_away
RoyKDouug: here?16:04
ikoniaRoyK: did you find out what was going on with that raid box and core dumping samba ?16:04
RoyKikonia: somewhat - samba is still getting segfaults every now and then, but after a few fsck and removing lots of old backups, the root seems healthy16:05
ikoniaany idea why it was dropping out ?16:05
RoyKikonia: btw, it's just the root, the data raid is healthy16:05
ikoniayes, but root was mirrored wasn't it ?16:06
RoyKikonia: no, 24 hours of memtest showed no errors16:06
RoyKikonia: it's mirrored, yes, two old 250GB SATA drives16:06
ikoniaso it just "fixed" itself after a few fsck/reboots16:06
ikoniahow good but frustrating16:06
RoyKquite so16:06
RoyKif the problem reappears, I guess we'll have to reinstall the thing16:07
RoyKnot much more than a fileserver anyway, so not a big issue16:07
ikoniacoupled with samba, it just seems such an annoyingly odd problem16:07
RoyKit certainly is16:07
=== gary_poster is now known as gary_poster|away
Douugsorry ROyK, stepped out16:33
RoyKDouug: ping16:42
Douughello16:42
RoyKfor AD replacement, I guess the nearest you get is samba416:43
RoyKperhaps openldap16:43
RoyKboth can be integrated with zimbra16:43
RoyKif you want outlook clients getting native access to the machine, it gets trickier16:43
RoyKcommercial zimbra can do it, but then, it's not open16:43
slylock105hello guys16:44
slylock105i wanted some help in setting up virtual hosts16:44
slylock105using apache16:44
slylock105can anyone help16:44
RoyKDouug: I was in a meeting some three years back with the norwegian meteorologic institute, met.no, and they chose zimbra over exchange, and only after a few months, 95% or so of the users used the web client over outlook16:45
RoyKslylock105: it's quite easy to google that16:45
TheLordOfTimeRoyK:  i think he wants his hand held through the process16:45
TheLordOfTime:/16:45
* TheLordOfTime runs and hides :P16:45
slylock105i know been googling for last half an hour16:45
Douugif I download the ZEG (Zero Effort Groupware) as a virtualbox machine, it has LDAP and Sogo and it works perfectly, unfortunately I can't introduce it to my clients as a production machine16:45
slylock105it should be simple but cant figure out16:46
Douugsupport Zibra is MUCH cheaper than funding MS16:46
RoyKslylock105: first hit on google http://httpd.apache.org/docs/2.2/vhosts/16:46
slylock105RoyK: Well I am very confused i am trying to setup two virtual host16:46
virusuymorning guys16:46
slylock105i have a website already running under apache16:47
RoyK!ask | slylock10516:47
ubottuslylock105: 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 !patience16:47
virusuyzimbra <316:47
RoyKslylock105: or what I'm trying to say is 'be precise'16:47
Douugslylock105, have you created another vhost file in /etc/apache2/sites-eanbled and ln -s to /etc/apache2/sites-avaliable16:50
slylock105okay, I am trying to set up mutiple virtual hosts under apache. Right now I just have a file named default in /etc/apache2/sites-available and directs me to a website when i type in  example.com16:51
RoyKslylock105: really - take a look into /etc/apache2/sites-enabled/000-default and copy the relevant stuff to another file in that dir, symlink it to /etc/apache2/sites-available/ and reload apache16:51
=== racedo` is now known as racedo
slylock105I wanted apache to redirect me to a different www folder, when i type mtn.example.com. I have added a new virtual host in/etc/apache2/sites-available/default and specified the root directory of the other website16:53
slylock105thats is what i have done so far16:54
slylock105but example.com works the other one dosent16:54
Douughave you enabled mod_rewrite?16:54
slylock105i added the other virtual host to the same file/etc/apache2/sites-available/default16:54
slylock105I copied the same Rewrite rules i had for the the orignal virtual host16:55
nizarhey guys, is it possible to limit SSH logins to only a specific user or goup in ubuntu server?18:13
nizarim trying to run an ubuntu server from home that i want to be able to access from the internet so i thinking of limiting SSH logins to a singal user18:14
Douugwhy dont u use public key authentication18:17
Douugfor a specific user18:17
rdw200169nizar: yeah... using keys is far and away preferred to password authentication.  Please consider this for your sanity!18:18
nizari care about my sanity!18:18
nizarill use that instead, thanks18:18
nizarany other quick tips?18:19
rdw200169nizar: if you go that route, just disable password auth in the sshd config18:19
rdw200169nizar: (this is ridiculously easy to do, and is probably mentioned in comments in the sshd config)18:19
nizarcool18:20
Douugchange the SSH port18:20
rdw200169nizar: you can also add a Host config to your 'remote host' (i.e. laptop) that makes logging in easy18:20
nizaryeah, ive already changed the SSH port on it18:20
rdw200169nizar: when you're logging in remotely.  `ssh home` is much nicer than `ssh -i ~/my_id my_user@long_ip`18:21
nizari didnt know that18:21
rdw200169nizar: yup, for setting it up, just read the man page for ssh_config18:21
rdw200169nizar: the only file you should need to edit for your user is ~/.ssh/config18:21
rdw200169nizar: likewise, just search for PasswordAuthentication in the manpage for sshd_config18:23
rdw200169nizar: make your life even easier and install keychain (http://www.funtoo.org/Keychain)18:25
nizarawesome, thanks18:26
rdw200169nizar: and when you generate your key for your remote hosts, *put a password on your private key* and then use keychain to make it such that you only ever have to put in your key's password once in a while18:27
rdw200169nizar: obviously, using keychain has some of those 'but what if... situations since ssh-agent is caching your password' but that is a decision for you to make ;)18:27
greppyrdw200169: actually, it's caching the key data, not the password.18:51
Douugguys, whats the best way to do the ubuntu server CD upgrade19:37
Douugi.e alternative upgrade ?19:38
submanI don't seem to be able to get my sendmail to work.  I get the following error email when I do try to send an email:  550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) (in reply to  MAIL FROM command)19:45
ikoniasubman: lookw like your don't have a sane hostname19:46
submanIsn't it just server.example.com?19:46
submanOr whatever my server is?19:46
submanHere is the full error:  <keithclark@waterloosubstop.com>: host waterloosubstop.com[198.91.89.227] said:19:47
subman    550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) (in reply to19:47
subman    MAIL FROM command)19:47
ikoniaok, so you don't meet RDC282119:50
ikoniacheck out what that is19:50
ikoniaI suspect it's a resolvable FQDN19:50
submanI have no idea what that means19:53
ikoniacheck the RFC19:56
ikoniabut I suspect it means you require a valid FQDN19:56
ikonia(without me checking)19:56
submanSorry, I still have no idea here.19:57
submanOk, that part is solved.  I just put an extra '.' at the end of the server url.20:05
submanNow I get: (reason: 554 No relaying allowed - psmtp)20:05
Douugare you using a smart host?20:10
Douuguse your ISP's smtp server20:11
Douugpostconf -e relayhost=YOUR.ISP.FQDN20:11
submanI think that is corrected but now:20:27
subman<<< 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)20:27
subman554 5.0.0 Service unavailable20:27
Douugwhat is the banner in your config20:33
Douugsorry myhostname ??20:34
submanOk, I'm new here.  What do you mean banner?20:34
submanWhat config file?20:34
Douugthe postfix config file -> /etc/postfix/main.cf20:35
submanShould $myhostname be my actual smtp hostname?20:39
Douugno .. that is a variable picked up by the option lower in the file called "myhostname="20:40
submanmyhostname is set to my servers name20:41
Douugthe host hostname exist in DNS ?20:41
subman?20:42
submanI don't know what you are asking me20:42
Patrickdk_you shouldn't be running a server then, let along email20:51
Douugdoes your server hostname resolve to an IP address on the internet?20:51
Patrickdk_your hostname should resolve in dns, and your ip should resolve to that same hostname20:51
rdw200169greppy: fair enough; i'm reasonably certain that ssh-agent is 'safe', but didn't feel like googling the specifics ;)20:57
greppyrdw200169: it mostly is, but, as with anything that lives in memory, root COULD do something evil with it.  But if you don't trust root you are already boned :)20:59
Questjust a simple question but I need to be sure.       If a server has, say 1 Mb psinternet connection. and if its pinged (traditional way of pinging like "ping (data size) google.com ") by a total (or one thread of ping data) of 1 Mbps . Will the normal trafic of that server (iweb / voip etc) will be effected in any way?21:27
=== chaos__ is now known as soahccc
LeinardoSmithhello does anyone have experience using samba and cups to serve windows printer drivers?22:41
=== chaos__ is now known as soahccc
LeinardoSmithI am getting a WERR_ACCESS_DENIED error when I try to run "sudo cupsaddsmb -v -a"22:48

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