/srv/irclogs.ubuntu.com/2013/09/02/#ubuntu-server.txt

=== peter is now known as Guest8144
sirajpersonhey all03:15
sirajpersonI have been google'n crazy to try and get VT100 to work right from the vga of my server install03:15
sirajpersonI have an script that I want to use shades of colors to display information, but cannot get the monitor to use a VT100 terminal03:16
sirajpersonanyone have any idea how to get VT100 without installing X?03:16
=== sirajperson_ is now known as sirajperson
=== freeflying_away is now known as freeflying
stluHi Again05:11
stluRe my DNS project: I have left the home router out of the picture, because I really don't know whats under the hood, and it doesnt allow user-configuration of its DNS service.05:12
stluSo heres what I have:05:12
stludomain is "myroom"05:13
stluI have a desktop unit "dell.myroom"05:14
stlu3 laptops which I have now separated into 3 VLANs05:14
stlu...instead of 1.05:14
stludns.vbox1.myroom ubuntu1.vbox1.myroom05:15
stludns.vbox2.myroom ubuntu2.vbox1.myroom05:15
stludns.vbox3.myroom ubuntu1.vbox3.myroom05:16
stluAnd they are bridged networking.05:16
stluQuestion: should I make records in "dell.myroom" for "vbox_.myroom" pointing down to "dns.vbox_.myroom"?05:17
stlu...oh, the virtual DNSs are also routers/gateways for the vlan05:18
stluso for vbox2 it would have a WAN of 172.24.100.202 <-- dns.vbox2.myroom --> 192.168.102.1 (the VLAN)05:20
stluTherefore, I am thinking I should add to dell.myroom's DNS database: vbox1 as 172.24.100.201, vbox2 as 172.24.100.202, vbox3 as 172.24.100.20305:23
stlu...And that's with my intention to let them share record information.05:23
stlu... to clarify the question: is the 4th DNS server nessesary for the transfer of records?05:25
yolandajamespage, zul : https://code.launchpad.net/~yolanda.robla/cinder/autopkgtests/+merge/18339408:18
jamespageyolanda, merged - thanks!08:23
yolandanp08:23
jamespagezul, adam_g: https://code.launchpad.net/~james-page/horizon/refresh-static-assets-fix-type/+merge/18340009:10
zuljamespage:  North America is on vacation today but I +1ed the horizon merge11:09
jamespagezul, ta11:09
jamespagezul, thanks11:09
Katafalkashey, why locale is broken on  every image i try ?  i start a fresh ubuntu1204 64bit image on amazon - on apt-get upgrade - locale is broken. I do exactly the same on DigitalOcean - again. fresh image - locale is broken.11:18
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
stluhey, sorry to repeat myself - if DNS servers want to exchange records, do they need the IP  of each other, the URL, either, or both?11:36
stluAnd, am I doint11:36
stluam I thinking the wrong way if I feel the need to have another DNS server to help the other DNS servers to find each other by URL?11:37
stlu*11:37
andolstlu: Not sure I fully understand the question, but assuming we are talking about zonetransfers I'd say the most common scenarion is them knowing each others ip addresses11:39
stluandol: ok thanks.  So then, through 3 different VLANs, all I have to do is make sure routing is set up, and each DNS server will just need the IP of the other two.11:49
stluright?11:49
stluI keep getting tripped up thinking that the heirarchy of URLs must be strictly followed by the DNS server.11:50
stlubut like, technically, this means I could have each DNS server with a master database for one other VLAN, or even have a tossup where each DNS server has records for any random set of IPS...11:52
stluOk then, so if the VLAN has a domain vbox3.myroom, and addresses x.vbox3.myroom, what conventionally does one do with that URL?  should it point to something or nothing?11:54
andolstlu: Well, exactly what info is needed where might depend of what dns server you are running, and in what way you want the update chain to happen11:54
andolstlu: Unless you have any other preferenses, just take a look at BIND, and some of the examples in its configuration, and see whatever works for you.11:55
stluandol: I have 3 VLANs side-by-side, under a LAN.  I don't care how they transfer information, I just want to learn the conventions.11:55
stlubut I want one DNS for each VLAN, since the VLAN is inside virtualBox on a laptop, and not all 3 laptops will be on all the tim.11:57
stlu*time11:57
RoyKwhy not one or two common DNS servers?11:58
* RoyK works at a college with 20+ VLANs and two DNS servers11:59
stluI may not be using 'VLAN' as it is supposed to be used, but what I have is a couple VMs running under virtualbox, in a laptop.12:00
RoyKyou should be able to route between them nevertheless12:01
stluIf I do a common DNS server, it would have to be on hardware that is on all the time...12:01
RoyKor run dns server on your laptop :P12:01
stluRoyK: and when that laptop is  off, the other two laptops will have no DNS!12:02
RoyKstlu: just trying to be a bit practical here :)12:03
RoyKstlu: do you have an official domain? if so, the isp should give dns as a service free of charge12:03
RoyKor whoever sold you the domain12:03
stluno, I'm extremely minimalistic here, my domain is .myroom, and  the laptops are in my room.12:04
stluthere is home ISP service, but it isn't relevant for my learning project - I don't even know if the home modem/router would share its DNS information for the wifi lan.12:05
RoyKstlu: hm... can you afford a raspberry pi?12:05
stluRoyK: yes, I could.12:06
RoyKthat'd be a neat "dedicated server" ;)12:06
stluThat's a great idea.  Then it would be on 24/7, and any of the VMs could reach it, regardless of the other laptops being on/off.12:07
RoyKstlu: mhm - doesn't cost much either12:08
stluto the next question: what would be the convention if I had pc1.vbox3.myroom, pc2.vbox3.myroom, pc3.vbox3.myroom, all together, but I tried to connect to vbox3.myroom itself, what should that point to?12:11
RoyKwhat do you mean"point to"?12:12
RoyKthe easiest would be to run virtualbox in bridged mode and put them all on the same IP network12:12
stlucould be many things, say I open a web browser, or "ping" it, or email stlu@vbox3.myroom, or ssh, or whatever.12:12
RoyKstlu: are you using rfc1918 addresses on your laptop?12:13
RoyKstlu: just run ifconfig to check12:13
stlurfc1918?12:14
RoyKjust pastebin ifconfig output12:14
stluumm, I'll explain again the network diagram:12:14
RoyKhttp://en.wikipedia.org/wiki/RFC1918#Private_IPv4_address_spaces12:14
stluah yes, absolutely12:15
RoyKand all clients on the same IP network?12:15
stluall laptops are on the 192.168.2.0/24 network for my wireless home internet.12:15
RoyKthen they should be able to ping oneanother without issues12:16
RoyKsame applies to any VMs on those12:16
stlueach laptop has a virtualbox internal-only network 192.168.{101,102,103}.0/24 and pc1 is the gateway.12:16
RoyKif you're not using bridged mode networking, the VMs won't be reachable12:16
RoyKic12:16
RoyKbetter make the pi the gateway when you get it12:17
RoyKeh12:17
RoyKno12:17
RoyKsorry12:17
stlubut the DNS server doesn't necessarily *have to* have a record for the domain vbox3.myroom, but I could make it anything or nothing.  what is the convention?12:17
stluSorry I can't seem to phrase this question in a way that makes it obviously simple as it is.12:17
stluI have *no* issues with pinging the systems, I just wonder about the convention for the over-riding domain that all the VMs are part of.12:18
stlupc1.vbox3.myroom = VM PC#112:19
stlupc2.vbox3.myroom = VM PC #212:19
stlupc3.vbox3.myroom = VM PC#312:19
stluall the VMs now have a URL12:19
stluMy question is, this remains:12:19
stluvbox3.myroom = ???12:20
stlu...12:20
stluand I realized I'd better change the pc numbering to avoid confusion...12:20
stlupc1.vbox1.myroom, pc2.vbox1.myroom, pc3.vbox.myroom12:21
stlupc4.vbox2.myroom, pc5.vbox2.myroom, pc6.vbox2.myroom12:21
stlupc7.vbox3.myroom, pc8.vbox3.myroom, pc9.vbox3.myroom12:22
stluthere.12:22
stluI have several ideas, but I don't know which is most conventional/correct.12:23
stluI could make that domain point to the gateway pc, on it's "wan" interface, so a web brower, a ping, or an ssh connection would go to that pc12:25
stluor I could just pick one of the VMs as a web server and set it to that, say pc8.vbox3.myroom = www.vbox3.myroom = vbox3.myroom12:26
stluor I could point it to the laptop itself, but that seems to have little use, since the laptop's OS isn't supposed to be part of the project.12:27
stluRoyK?12:27
stludo you have any of your 20 VLANs with similar subdomains?12:28
RoyKstlu: back12:32
RoyKstlu: no, we don't mix network structure and dns12:33
RoyKnot that it should be a problem12:33
stluok, so to pick on zkxs, for example, I see that his URL is ip68-14-174-230.ok.ok.cox.net12:37
stluso there doesn't have to be any relationship between those subdomains, this is what you're saying?12:37
stluWell then, it seems that some of the subdomains don't matter: http://pastebin.com/8G26bcvp12:43
stluRoyK: so this is an example of proper conventions?  If it isn't related to network structure, what might they have been thinking when they made the subdomains ok, and ok.ok ?12:44
stluHmm, If I were in charge of that DNS, I'd want to change it to something more informative, like *.customers.cox.net12:47
stluI just looked at my own URL, bas16-toronto12-1088897118.dsl.bell.ca12:50
stluAt least that makes a bit more sense.12:50
stluI think that "dsl." is just a way to separate the customer records from other systems, like their routers and office machines and stuff.12:51
shaunook.ok.cox.net may be a very poor example; that could easily be $city.$state.cox.net, and Oklahoma City, OK has thrown you off12:52
stlufrick, I'll bet you're right!12:54
stludangit, zkxs, why'd you have to live in Oklahoma, confusing my noob brain?12:56
* stlu that IP is in Oklahoma12:57
shaunoactually, I might be wrong, I see a friend in san diego has sd.sd.cox.net.  there goes my logic12:57
stluok, well maybe they have other gear there, like x.routers.ok.cox.net?12:58
stluok.ok is like "general.ok"12:58
stluor "customers.ok"12:58
stluso then, in conclusion, if my subdomains "vbox1", "vbox2" and "vbox3" just help me to remember which laptop (equiv. to the city/state idea) the VM resides, then it would be perfectly acceptable to leave no DNS record for them.13:00
shaunoname hierarchies can have as much or little meaning as you like.  eg, we have a bunch of machines that are server.foo.corp.com because their dns is handled by a load-balancer, so we can just delegate foo.corp.com13:10
shaunoon the other hand, www.corp.com and mail.corp.com don't need to be on the same subnet, planet, etc, despite being at the same level13:11
stluI'm having fun pinging all over the place.13:15
stluwww.ok.cox.net actually points to something, while ok.cox.net is nothing.13:16
stluand cox.net is the same IP as for www.cox.net, which make a bit of sense.13:18
stlumail.cox.net is nothing.13:18
stluwww.ok.ok.cox.net is also nothing13:19
RoyKstlu: I don't there are much naming convensions - that is - I'd say there are about as many convensions as there are sysadmins13:19
stluthank you RoyK.  I can say that knowing there aren't any conventions is probably just as important as knowing when there are conventions.13:20
RoyKstlu: there are always convensions, and always arguments between sysadmins etc about which is the best ;)13:23
stluyou know what I mean :P13:23
stluThere isn't a hard and fast rule that everyone is all trying to reach for... they have a few, and reasons to use whichever one they like best.13:24
stlubecause no sysadmin who still has a job would decide to say, assign a dotted-trio IP address to his systems, because he has a good argument for it!  "I think 55.44.33 is  a much better way to address the database server!"13:27
stlu... omg... apparently 55.44.33 is translated into 55.44.0.33... why oh why??? I just wanted to pick something impossible...13:30
stluWTF? $ ping 64.231649413:33
stluPING 64.2316494 (64.35.88.206) 56(84) bytes of data.13:33
stluI'm going to beat my forehead upon the nearest durable wooden surface... brb13:34
stlu$ ping 64231649413:35
stluPING 642316494 (38.72.248.206) 56(84) bytes of data.13:35
Patrickdk_heh? I name my servers 4digit numbers13:36
Patrickdk_have to patch syslog-ng to even allow that13:36
Patrickdk_it keeps thinking my server name is a date13:36
stluPatrickdk: I pity the poor soul that has to take over your job after you retire...13:37
Patrickdk_me?13:38
Patrickdk_the numbers make perfect sense :)13:38
Patrickdk_better than naming them all after greek gods or something13:38
yolandazul, jamespage https://code.launchpad.net/~yolanda.robla/neutron/autopkgtests/+merge/18345113:39
stluFinally: $ ping 2648F8CE13:40
stluping: unknown host 2648F8CE13:40
stluPatrickdk: Oh, i though you meant you gave your servers some perverted IP address like 12.34 with only four digits.13:42
baswazz_i have set 'hdparm -y /dev/sd[b-g] for almost 24 hours works fine, but when i remove the '# spindown_time = 60' in /etc/hdparm.conf nothing happens no spindown. And i did a reboot.13:42
stluI guess a nuumeric hostname isn't such a bad thing.13:42
stluOf course, it has to make me wrong again, 12.34 is translated to 12.0.0.34....13:43
Patrickdk_makes it simple, 8001, 8002, 8003, would be 3 web servers :)13:43
Patrickdk_bet you can't think of the email servers name13:43
stlu2501, 2502, 2503?13:43
stluAnd FTP servers at 2101, 2102, 2103...?13:44
Patrickdk_well, try to stick to sftp13:44
RoyKstlu: root@francesco:~# ping 0x2648F8CE13:44
RoyKPING 0x2648F8CE (38.72.248.206) 56(84) bytes of data.13:44
stluFUUUUUUUUUUUUUUUUUUUUUUUUUUU13:44
sgranmachines with both smtp and ssh are 4701, 4702 ?13:44
sgranstlu: what's the problem?13:45
Patrickdk_sgran, no, wouldn't combine servers like that, too much security risk13:45
stluRoyK: you didn't seriously do that just now.13:45
RoyKstlu: just had to try to ping a hex address ;)13:46
sgranit's just a number :)13:46
RoyKsgran: an ip address is just a 32bit unsigned number too ;)13:47
sgranthat's what I mean13:47
RoyK:)13:47
sgrantry 'ping 0'13:47
sgranthese are valid, if thankfully uncommon, ways to express IP addresses13:48
stluPING 0 (127.0.0.1) 56(84) bytes of data13:48
stlu O.O13:48
RoyK:)13:49
sgranalso ping 213070643313:50
sgransteve@gashuffer:~$ echo $(( (74 << 24 ) + (125 << 16) + (136 << 8) + 113 ))13:51
sgran124974091313:51
sgransteve@gashuffer:~$ ping 124974091313:51
sgranPING 1249740913 (74.125.136.113) 56(84) bytes of data.13:51
highvoltageheh, strange how chromium turns that in to 'localhost' and not '127.0.0.1'13:51
stlu$ ping 0x100000011100111010000000101111013:53
stluthat doesnt work13:53
RoyKstlu: that's a rather large number :P13:54
RoyK0x => hex13:54
stluoh13:54
stluI wanted to make it interpret as binary13:54
RoyKdon't think you can do binary directly from the shell13:54
baswazz_anyone who can help me out?13:54
sgranmy telepathy is not working13:55
sgranperhaps with more detail, I could answer that13:55
RoyKwell http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/numerical-constants.html13:56
RoyKstlu: ping $((2#1000000111001110100000001011110))13:57
stluRoyK: PING 1088897118 (64.231.64.94) 56(84) bytes of data.14:00
stlumind=blown14:00
stluis the double parantheses needed because its a bash arithmetic expression?14:01
stlu*are the14:01
sgranyes14:02
sgran$(( )) is integer arithmetic14:02
sgran2#1000000111001110100000001011110 is an input to that that returns 108889711814:02
stluI'm learning sh syntax and my mentor gets pissed every time I learn a new 'bash-ism' as he calls it.14:03
stluBut he's old-school and I'm not.14:03
sgran$(( )) is POSIX14:06
=== oyvin is now known as oyvind
=== oyvind is now known as Guest35153
=== Guest35153 is now known as oyvin
stluahah! So I can flaunt my arithmetic in my old-school mentor's face!14:14
stluAnyway, for some reason I cannot email myself at adam@160454897914:15
stlugmail doesn't waaaaaant it.14:16
mardraumwell, it's not a valid email address.14:17
mardraumor are you still being cute?14:17
stluI'm noob.  No time for cute.14:19
mardraumthen read about DNS and particularly MX records14:19
stlubut if thats not valid, how come sending email to adam@95.163.121.115 is?14:19
mardraum(if you care about smtp and not arithmetic)14:19
RoyKsgran: sure it's posix? it works with bash/zfs, but not with dash/tcsh14:20
sgransteve@gashuffer:~$ dash14:20
sgran$ echo $(( (74 << 24 ) + (125 << 16) + (136 << 8) + 113 ))14:20
sgran124974091314:20
mardraumemail to bare IPs, never guaranteed to work no matter how you got to the IP14:20
RoyKsgran: # echo $((2#01000100101))14:20
RoyKdash: 1: arithmetic expression: expecting EOF: "2#01000100101"14:20
sgranstlu: a valid smtp hostname is not the same thing as a valid IP14:20
stlumardraum: ok then, I had a false notion.  I tried again and it came back bad.14:20
sgranRoyK: oh, yes 2# is a bash extension14:21
* stlu feels slightly offended being called 'cute'14:35
Patrickdk_you troll14:36
jamespagesmb, any good with seccomp?14:40
jamespagebug 121985714:40
uvirtbotLaunchpad bug 1219857 in vsftpd "vsftpd connections fail on amd64: "500 OOPS: child died"" [Undecided,New] https://launchpad.net/bugs/121985714:40
smbjamespage, hm not very good...14:41
smbjamespage, is there more hints or maybe some apparmour log14:42
jamespagesmb, other than:14:42
jamespageSep  2 14:25:51 vsftpd-debug kernel: [   15.517149] type=1326 audit(1378131951.002:12): auid=4294967295 uid=65534 gid=65534 ses=4294967295 pid=1402 comm="vsftpd" sig=31 syscall=96 compat=0 ip=0x7fffacf79dff code=0x014:43
smbjamespage, I would probably try my luck in #security but not sure how many US/CA folks are around14:44
=== freeflying is now known as freeflying_away
=== HisaoNakai_ is now known as HisaoNakai
=== lordsame is now known as SergioMeneses
baswazz_can anyone assist me with hdparm /etc/hdparm.conf is not working15:54
baswazz_when i use hdparm -y the drives go in sleep15:54
baswazz_but when i set it up in hdparm.conf nothing happen even after a reboot15:54
=== psivaa is now known as psivaa-bbl
cocoa117i am running ubuntu 12.10 server on Xen platform, how can I tell if that is right? i got uname -a16:57
cocoa117Linux ABCD 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux16:57
Patrickdk_virtwhat16:59
cocoa117Patrickdk_, ?17:00
Patrickdk_heh?17:01
Patrickdk_you asked a question, I gave you an answer, and you ? me?17:01
Patrickdk_hmm, actually, maybe that isn't in ubuntu17:01
cocoa117Patrickdk_, not sure what you mean by virtwhat17:02
Patrickdk_oh, virt-what, in ubuntu17:02
cocoa117Patrickdk_, command not found17:02
Patrickdk_install it17:02
Patrickdk_always helps17:02
cocoa117oh, ok, i try17:03
cocoa117Patrickdk_, got it, Xen, many thanx17:04
cocoa117should the ubuntu 12.10 server have empty folder in /proc/xen?17:06
cocoa117i want to figure out if i am running xen-domu or xen-hvm17:06
cocoa117this applogic thing is hard to figure things out17:07
Patrickdk_don't look in /proc/ use /sys17:15
cocoa117Patrickdk_, does the independent_wallclock still exist in 12.10 xen pv domU?17:29
RoyKcocoa117: is this a vm you got from somewhere?17:31
cocoa117RoyK, yes, this is a VM17:31
RoyKcocoa117: from an isp etc?17:31
cocoa117that's right17:32
cocoa117RoyK, in fact, i am pretty sure it is a Xen domU17:32
cocoa117it just didn't show the normal info off it, and i can't solve the time issue17:33
RoyKcocoa117: I haven't seen virt-what miss yet17:33
cocoa117xen as the answer17:34
RoyKcocoa117: then what are you trying to sort out?17:36
Patrickdk_it's impossible to make the clock stable17:38
Patrickdk_it won't happen17:38
Patrickdk_independent wallclock just makes it a mess, unless the host has LOTS of free cpu cycles17:39
* RoyK mutters something about NTP17:39
Patrickdk_ntp will help with independent wallclock, but still, you need enough cpu cycles, or it will giveup17:39
=== psivaa-bbl is now known as psivaa
=== matanya_ is now known as matanya
=== freeflying_away is now known as freeflying

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