/srv/irclogs.ubuntu.com/2008/12/10/#ubuntu-server.txt

uvirtbotNew bug: #306706 in bind9 (main) "bind9 should flush the DNS cache on suspend / resume to avoid stale records" [Undecided,New] https://launchpad.net/bugs/30670600:12
=== liberfiasco is now known as libervisco
uvirtbotNew bug: #306678 in open-iscsi (main) "open-iscsi fails to correctly update rc.d on upgrade" [Medium,Triaged] https://launchpad.net/bugs/30667800:37
`6ogbind9 is run on systems which suspend??00:38
Deepsrun a local caching dns server00:39
Deepsreduce your internet traffic marginally00:39
* `6og is using dnsmasq for that - seems a better fit for the job00:40
`6ogits a laptop after all :) bind == cputime++00:40
* Deeps shrugs00:53
lox_hi01:02
lox_I have created a VM using vmbuilder01:03
lox_how do I launch it? it does not appear using virsh list01:03
lox_seems it is dead over here.... is there a special time when we can get some help ?01:07
sommerlox_: vursh start vmname01:13
sommerlox_: usually during business hours in north america and europe the channel is most active01:14
ivokslox_: except when we are at UDS :)01:14
sommererr virsh start vmname01:14
=== chmac is now known as chmac_away
lox_sommer: thks but virsh list returns nothing02:00
lox_anyway I managed to add it doing: virsh virsh02:00
lox_virsh create /etc/libvirt/qemu/ubuntu.xml02:01
lox_ping 10.0.4.1002:02
lox_oops02:02
lox_ls02:03
lox_please anyone here taht can answer questions about vmbuilder?02:15
ScottK!ask | lox_02:25
ubottulox_: Please don't ask to ask a question, simply ask the question (all on ONE line, so others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)02:25
lox_Using vmbuilder do I have to create a bridge interface mannually for each VM? Or vmbuilder should do it? thks02:26
lox_(sorry new to trc)02:27
keeslox_: i have, in the past manually adjusted settings to get bridging. soren may know more but probably afk for the evening.05:06
lox_kees: well I don't really un derstand how bridge do work.... if I follow https://help.ubuntu.com/8.10/serverguide/C/network-configuration.html#bridging my eth0 is not configured anymore. Does a bridge can be use by multiple VM?05:38
keeslox_: yes, but you need to configure the bridge first05:43
lox_kees: so having a look to https://help.ubuntu.com/8.10/serverguide/C/network-configuration.html#bridging i need to delete from /etc/network/interface the eth0 config and replace it with br0 config using eth0 "past" ip config?05:45
keeslox_: yes, that guide looks correct05:48
lox_kees: ok, and do you know where is that vnet0 that ifconfig shows please?05:49
keesI just ignore vnet0 -- libvirt will do the right thing once it's been configured to use br005:50
hadsYou can remove it05:51
lox_Remove it from where? ....06:02
lox_hads well vnet0 is default libvirt bridge interface, this is only for NAT connectivity, no way/need to remove it06:20
d-bhi there why is a closed source piece of software shown to me with the motd ?06:28
d-byes the landscape client is open source. but the server isn't06:28
d-bdoesn't this go against ubuntu policy ?06:29
hadslox_: Yes, you can remove it.06:31
lox_hads: are you talking about "virsh net-destroy default" ?06:32
hadsI've not done it from virsh, I have from VMM though.06:32
SeverianHowdy.  I want to make a Ubuntu Server installed system run gnome on startup.  I have been searching the web for what to do, and have not found instructions for 8.10(intrepid ibex).  Any suggestions?06:35
d-bSeverian: sudo apt-get install gdm and xserver etc.06:37
zoopsterSeverian: you are better off running ubuntu desktop as a server than trying to install the gui parts06:38
hadsubuntu-desktop will install everything06:38
Severianhttp://ubuntuforums.org/archive/index.php/t-186298.html  says I needed to run two more commands after installing, but they did not work on 7.10 and later.06:38
lox_hads: can you tell me how please ? what is VMM ...06:39
hadslox_: Virtual Machine Manager, the GUI which connects to your server via SSH. There will be a virsh command that does the same thing.06:40
Severianzoopster, vmbuilder builds virtual machines off of what is essentially JeOS.  I am not installing the OS an hardware, but creating scripts to build virtual machines.  vmbuilder is shipped with Ubuntu, and I am using the installed version.06:43
zoopsterSeverian: so you want to add x to that?06:44
Severianzoopster, yes.  I want to build a VM to use for software demos.06:45
SeverianWell nevermind.  the instructions at http://ubuntuforums.org/archive/index.php/t-186298.html say there is a problem after 7.04, but it is pretty minor.  Thank you.06:48
zoopsterSeverian: the problem is that ubuntu-desktop installs a lot more than just gdm and xserver - good luck06:49
lox_hads: still have trouble setting my virtual machine network, my server ip is 10.0.4.10, I would like my VMs ip in the range 10.0.4.20 to 10.0.4.40, any advices? Here is my interfaces file: http://paste2.org/p/113535. With that config my VM takes the 10.0.4.10 ip ....06:52
Scare|WorkingHi all08:04
nmeanyone knows how to get rid of "CRON...: Sigfile not found" from /var/log/syslog ?08:17
=== Scare|Working is now known as Ned_Stark
=== Ned_Stark is now known as Scare|Working
=== SoUkSoU[Off] is now known as SoUkSoU`
=== SoUkSoU` is now known as SoUkSoU
lox_I always trace a log file with tail -f /var/log/mylog.log. I would like that it runs on a console a each system reboot, by "on a console" I means so I can see it if I Alt+F210:02
lox_Is it possible?10:02
Oliberthink you can do it with inittab10:10
Oliberbut i havn't done that in years10:10
_rubenor just have syslog log to a tty, assuming its a log used by syslog10:32
Oliberoh yeah, thats how i did it 9yrs ago!10:33
lox_thks I'll continue to search10:39
lox_done it many years a go to and can't remmeber how ..10:39
incidenceHow to find out filesystems block size?11:07
Scare|Workingincidence,  dumpe2fs device. but you can use it only if you have an ext2 o ext3 filesystem11:27
maswanxfs has xfs_info, I'm sure all the sane fss have some kind of util for that11:29
maswanactually, hm, if you want a general method, the block size is available in statvfs11:29
AlexC_hey all11:52
AlexC_is there a way to read what email was sent via Postfix? I just saw in my logs a weird email, sent by one of my address (a noreply@ one) to a weird email address. I'd like to read that and see just what it was, because I am confused as to where it was sent11:53
hypnus9! server crash12:04
ubottuSorry, I don't know anything about server crash12:04
hypnus9!server access12:04
ubottuSorry, I don't know anything about server access12:04
lamontAlexC_: once the mail is gone from the server, reading it is a matter of finding where it was stored on disk and looking there for what's left of it.12:27
lamontif it's still on the server, postcat is your friend12:27
AlexC_lamont, hum, I've really no idea how to go about finding it. I'll check postcat now, though do you have time to poke me further in the right direction?12:27
AlexC_lamont, I would have thought a copy would be in the 'Sent' mail dir (or where ever) in the users Maildir directory. Though I can't see any Sent email when using Mutt12:31
hypnus9Hello room. I just install Intrepid server edition on my desktop pc, and I had it accessible from my laptop, but I rebooted the server, and now I can't access it from my laptop. Any help?12:36
Deepscan you ping it?12:37
hypnus9Yep.12:37
lamontAlexC_: mutt is a mail user agent.  mail transport agents keep only logging records12:37
Deepsin what way were you 'accessing' the server?12:37
hypnus9SSH and samba12:37
Deepsyou can ping the server, but you're unable to ssh anymore? what error do you get when attempting to ssh?12:37
AlexC_lamont, hum, ok. So what is meant by 'Copying to Sent Folder' in Thunderbird, when using IMAP when I sent email - where is that data stored? Locally?12:37
hypnus9Hold on.12:38
lamontthunderbird is a mail user agent as well12:38
lamontand it's probably in the "Sent" folder on the imap server12:38
lamont(and none of that is "postfix" related)12:38
hypnus9I get "timed out when logging in12:39
AlexC_lamont, I know it's a user agent - I'm just wondering if this 'Sent' folder is a feature of the MUA, or is what postfix does when an email is sent12:39
lamontMUA only12:39
lamontMTAs take the mail, pass it along, log it, and remove the copy they have on disk once the next hop says it has it.12:39
AlexC_bugger. Is there no way to get hold of what that email was?12:39
AlexC_if not, is there a way to trace what process could have triggered postfix to send that email?12:40
lamonttct - Forensics related utilities.12:40
lamontif you have process accounting turned on (unlikely, I think), then quite possibly12:40
AlexC_=(12:40
lamontwhat does /var/log/account have in it?  lots of pacct* files?12:41
Deepshypnus9: is the sshd running on the server? `ps ax|grep sshd` on the server console should tell you12:41
AlexC_lamont, I've no such directory12:41
lamontlikewise, do the postfix logs say that it was local, or received via smtp?12:41
AlexC_lamont, let me see12:41
hypnus9I check it out.12:41
lamont(so no process accounting)12:41
AlexC_lamont, http://paste2.org/p/11365912:43
hypnus9it looks to be.12:43
lamontconnect from foobar[foobar] <-- so that, whatever it really was, is where the mail came froim12:43
Deepshypnus9: are you sure you're connecting to the right ip? `ifconfig` on the server will tell you what ips it's assigned12:44
AlexC_lamont, indeed, which is very odd - since nothing should be sending email from noreply, and the things that do - don't email to that weird .ru address12:45
lamontAlexC_: and without the actual headers (I assume you trashed them?), there's not much more that can be said12:46
AlexC_lamont, I've not touched any headers12:46
lamontah, ok12:46
lamontI assumed the 'foobar' comments were changed IP/hostname ish stuff12:46
AlexC_lamont, correct12:46
lamontthat would be "trashed"12:47
lamontas in, yes, you touched the headers12:47
AlexC_lamont, hum, I just change them in the pastebin to remove them =)12:47
lamontthereby removing the information required to be able to do any further advising about what actually happened.  ok12:47
AlexC_lamont, are you saying, you need the Ip/hostname that I removed to help further? The values are there, I only changed it in Pastebin so they are not in a public pastebin12:48
Deeps9 lines later...12:49
lamontAlexC_: either it's 127.0.0.1 and the mail originated there, or it's not 127.0.0.1 and that host delivered mail (which either means it was one of your TLS users, or you have really poor SASL password, or some such12:53
AlexC_lamont, the values were the main external IP of the server. The login was by a known users of mine ... I guess I'll just have to check all the logs I can12:56
lamontok.  the mail arrived externally from that IP, and that computer is the one which you need to be looking at to find the origin of the mail12:58
AlexC_that is this computer13:00
AlexC_it's ok, I may be able to poke some of my application logs to see where the devil it came from13:00
krautmoin13:58
kebomixFree Programming e-books With Direct Links & Request ebooks Here : http://request-ebooks.blogspot.com/14:07
Faust-Cafter upgrading to 8.10 my system upon reboot gives file system is read only15:18
Faust-Cand i have to manually make it r/w15:18
zoopsterFaust-C: what hardware?15:23
Faust-Ctypical desktop system15:24
Faust-Czoopster, issue is really a desktop one but #ubuntu is worthless for real help15:24
zoopsterFaust-C: understood, was curious simply because there is a kernel issue with ath9k and the 2.27.9 kernels that presents itself strongly on a macbook pro, but is present in other systems that shows a symptom like you describe, but usually not directly after reboot15:25
Faust-Cic, no we dont have that15:26
Faust-Chmm man idk wth happend15:27
zoopsterFaust-C: without a lot more detail, not sure anyone can help - this channel may not be the proper forum...I would post to ubuntuforums.org as well as search there and generally in google15:27
Faust-Czoopster, yeah im gathering more info15:27
zoopsterFaust-C: for the forums useful info is hardware detail, dmesg output, etc15:29
Faust-Czoopster, problem is that we cant even login to system to get that15:29
zoopsterFaust-C: no way to open a terminal session after boot?15:31
=== TigRa is now known as N
=== N is now known as Guest52764
=== Guest52764 is now known as TigRa
Faust-Czoopster, nope15:38
Faust-Cbut im bootinhg to live gonna see what i can do15:38
zoopsterFaust-C: that was the next suggestion...see if you can mount the disk - even if the disk is RO you can read from it15:39
Faust-Cyeah15:39
Faust-Cgonna see what the real issues are15:39
uvirtbotNew bug: #306886 in mysql-dfsg-5.0 (main) "AppArmor profile included doesn't allow mysql to bind to socket" [Undecided,New] https://launchpad.net/bugs/30688615:52
uvirtbotNew bug: #306889 in amavisd-new (universe) "Default Ubuntu configuration is backscatter source" [High,In progress] https://launchpad.net/bugs/30688916:07
Faust-Cinit: tty2 main process (4063) killed by SEGV signal16:12
Faust-Cinit: tty2 main process ended, respawning16:12
Faust-Cthats the error i get if i try to login via console16:13
uvirtbotNew bug: #306897 in apache2 (main) "LDAP Authentication problem : ldap_simple_bind_s() failed" [Undecided,New] https://launchpad.net/bugs/30689716:36
lionelis someone experimenting issues with check_ntp_time since the beginning of december?16:55
lionel(with leep seconds not beeing handeled correctly)16:56
=== TigRa is now known as Ya
=== Ya is now known as TigRa
Faust-Cwhy in the hell does the IP address keep going to dhcp17:05
=== SoUkSoU` is now known as SoUkSoU
Faust-Ccan someone please explain why server keeps using dhcp for inet even when ive specified a IP in /etc/network/interfaces17:20
=== Steve[cu1] is now known as Steve[cug]
sommerFaust-C: did you set the interface to static?17:23
Faust-Cyep17:23
Faust-Ciface eth0 inet static17:23
sommerFaust-C: do you have17:25
sommerdhcdbd running?17:25
* Faust-C looks17:25
Faust-Cah dhclient3 is running17:26
sommeryou should be able to turn that off17:27
Faust-Chmm ill look for the file to disbale it17:28
sommerFaust-C: if there's an init script you can do: sudo update-rc.d -f service_name remove17:29
sommerFaust-C: that should not start the daemon on boot17:29
Faust-Cyeah i dont see a init script17:29
Faust-Cnor a option to stop it via cmd17:29
ivoksif you installed system with dhcp address17:32
ivoksthen on boot dhclient will start17:32
ivokseven if you change network configuration, dhclient will still be running17:32
ivoksso, best cure is to kill dhclient or restart machine after network configuration change17:32
ivokswe might consider this as a bug17:32
ivokser....17:32
ivokswe should consider this as a bug17:32
Faust-Civoks, oic17:33
Faust-Cguess ill report it17:33
Faust-Cwhere is bug report site17:33
ivokslanuchpad.net17:33
Deepslaunchpad*17:33
ivoksyou don't have to report it17:33
ivoksi plan bringing this up on uds tomorrow17:34
Faust-Civoks, oic sweett17:35
=== ivoks_ is now known as ivoks
refnumzxhave an ml350 G5 with the e200I controler, write performance is bad but my main problem is hat using 8.10 server i can not get the system to boot properly install goes fine but then when it is time for the cd to come out and we reboot says atempting to boot from drive c: any ideas?17:57
ivokswhat's e200i?18:00
Nafalloivoks: controllercard.18:01
ivoksah, hardware raid18:01
ivokshave you setup raid logical volume before installation?18:02
ivoksrefnumzx: ?18:05
refnumzxyes i have using the hp tools18:05
refnumzxthe instaler recognizes it as an array so its fine18:06
ivokswhat kind of array?18:06
ivoks0 1 5 6?18:06
ivoksif you want me to help you, i'll have to understand what you are trying to achive18:07
ivoksotherwise, we'll spend hours for nothing18:07
=== BlueT__ is now known as BlueT_
ivoksdo you have disks outside the array?18:09
ivokseither on controller or some other port (IDE/SATA/SCSI)18:09
refnumzxits a raid5 array with 4 SAS disk directly connect to the backpln  when i start the instaler the ubuntu system formats and recognizes the drives, what i want is for when the instaler finishes i want it to reboot and load the os. everythingelse during the instal is successful18:10
refnumzxno i do not18:11
ivoksso, before restart, inside ubuntu installer, you get 'atempting to boot from drive c:'?18:11
ivoksor after reboot?18:11
refnumzxno, after reboot.18:12
ivoksok18:12
refnumzxgrub does not even seem to load18:12
ivokshave you checked bios?18:12
refnumzxthe installer completel finishes what it is supposed to do18:12
geniiAnd it specifically says C:     ?18:12
ivoksdid you set up raid controller as a first boot device?18:12
refnumzxi have updated the bios, firmware updated to latest, controler order is just fine. etc18:12
refnumzxit specifically says C:18:13
ivoksi see18:13
refnumzxwell, it tries to boot from the cd then the disk, i assume because it does nothing accept for show that message18:14
ivoksdid you set up your own partitions or system camed with at least one partition?18:15
refnumzxthe controller is the only boot device.18:15
refnumzxi used guided, use entire disk18:15
ivokshm, ok18:15
ivoksyou have a ubuntu cd, right?18:15
geniiYou need raid support in the initrd for it to boot from there. But grub should have a tleast tried, I would think18:15
ivoksit should have 'boot from first cd'18:15
refnumzxyeah no grub anything18:15
ivoksgenii: system doesn't boot from disk at all18:16
ivoksboot from first disk, not cd :)18:16
refnumzxthe system boots the instal media and goes through the instaler just fine18:16
refnumzxwhen i rebot, i remove the install media18:16
ivoksrefnumzx: put the cd in18:16
ivoksrefnumzx: and don't start installer, choose 'Boot from first disk' option18:16
refnumzxthe server is rather far away. then what?18:17
ivoksif it boots, then you bios is broken18:17
refnumzxok. i will brb18:17
ivoksit it doesn't, which i doubt, then you'll tell us what message you get18:17
refnumzxabsolutely nothing18:23
refnumzxbooting from local disk.18:23
ivoksand blank?18:24
ivoksif it's blank, then grub might not be installed on disk18:25
ivokshow big is your raid logic volume?18:25
refnumzx400gb or so18:26
refnumzxand blank, yes18:26
ivokshm, odd18:26
refnumzxquite18:26
refnumzxduring the installer it does say installing grub and produces no errors18:26
ivoksdid building of logic volume finished?18:27
refnumzxhere is the thing the raid is configured thtough the hp tols. during the installer it asks me if i want to recognize the device as a raid configuration, i answer yes, then i go off and format the single logical volume which is the correct size, and then i continue with the instal as normal18:29
ivoksand, in ubuntu, you see only one disk or more of them?18:29
refnumzxa single disk18:30
refnumzxwhich is what i am supposed to see18:30
ivoksright18:30
ivoksanything that comes to my mind is that logic volume isn't built, and mbr isn't formed yet18:32
ivokswhich i've seen with low cost raid controlers18:32
ivoksnever with 3ware :/18:32
refnumzxok. so how couold that be if it formats the disk?18:32
ivoksdunno18:33
refnumzxthanks for the help though, we tried.18:33
ivokscould you start resuce option18:33
refnumzxgonna have to call hp, again.18:33
ivokswhen you start it, you should be able to chroot to your partition18:34
refnumzxnever tried that. isn't that available from the grub menu? this is the thing man grub is not loading18:34
ivoksthen you should mount all18:34
ivoksyou can enter resuce from installation CD18:34
refnumzxok. then what croot what? mount all. and then....???18:34
ivoksit's an option above boot from first disk18:34
ivoksyou'll be guided18:35
ivoksthen, when you get droped in chrooted shell18:35
ivoksrun grub-install /dev/sda18:35
ivoksor whatever it's name is18:35
ivoksmaybe /dev/cciss/something18:35
refnumzx/dev/cciss is how its shown in the installer18:36
ivoksright18:36
ivoksit isn't cciss18:36
ivoksbut /dev/cciss/c0d0 or something like that18:36
refnumzxright18:37
refnumzxi'll give it a whirl18:37
ivoksgo go go :)18:38
jcliffI have a farm of about 800 servers about to be running ubuntu, is there some way of making sure they each get their ubuntu security updates/etc without sshing into each one18:54
jcliffpssh looks better than mannually sshing in but there's got to be better out there right?18:54
yann2same question here :)18:55
jcliffyann2: serious? lol18:55
yann2can have a look at puppet18:55
yann2but the thing is usually people use to say, " you dont want to automate apt upgrade"18:55
geniiNo one makes cronjobs for updates or so?18:55
jcliffmaybe18:55
yann2considered harmful afaik :(18:55
maswanWe use our own version of pssh18:55
maswanBut yeah, that's how we do it. You just need to take care and make a wrapper script that works as hard as possible to make it run without interacting with the user.18:56
maswanGood env to set: DEBCONF_ADMIN_EMAIL= DEBIAN_FRONTEND=noninteractive18:58
jcliffyann2: as in automating security upgrades considered harmful or cronjobs considered harmful?18:58
maswanetc18:58
yann2jcliff > automating...18:59
yann2you know18:59
maswanjcliff: automating security upgrades isn't really considered harmful as such, but at least I'd prefer to apply them first to one of the servers before rolling them out everywher18:59
yann2"blah wants to install a new config file but it seems you have changed the original file - do you want to keep your old personnalized (incompatible) file? (Y)19:00
ivoksthere are unanttened updates19:00
refnumzxright so reinstaling grub fixed the booting issue19:01
refnumzxso. is that an error in the installer?19:01
ivoksrefnumzx: don't think so19:04
ivoksrefnumzx: you installed grub on logical volume19:04
ivoksrefnumzx: some raid controllers have an option of defining a boot volume19:05
jcliffmaswan: thanks19:09
refnumzxboot volume19:09
refnumzxso what is the difference? wouldn't it go on the logical volume, is not that the corect way?19:09
ivoksi don't know, i don't know internals of all raid controllers19:10
ivoksmaybe if you don't set up boot flag on logic volume, maybe controllers ignores it19:11
ivoksrefnumzx: bottom line is that grub is installed on logical volume19:14
ivoksrefnumzx: but, for some reason, controller doesn't boot from it19:14
ivoksrefnumzx: oh, sorry19:15
ivoksrefnumzx: i just saw that reinstalling the grub *fixed* the problem19:15
ivoksrefnumzx: i tought it didn't :)19:15
ivoksrefnumzx: yes, that's a installer bug19:15
ivoksrefnumzx: could you send me /var/log/installer/syslog?19:18
jcliffmaswan: oh absolutely.19:37
jcliffI've never had anywhere near this many computers to deal with in one go though :)19:38
jcliffyann2: thanks btw19:46
yann2np19:47
mibocoteI have two gateways setup for 0.0.0.0, but I only want one of them. how do I delete the other one from handling dest: 0.0.0.0?19:51
dejurensommer: ping20:06
sommerdejuren: yo20:08
dejurensommer: question: who write ubuntu server guide? specially e-mail https://help.ubuntu.com/8.04/serverguide/C/email-services.html20:09
sommerdejuren: I've written a lot of that chapter, but some sections only updated20:10
sommerdejuren: did you have a question about a specific section?20:11
dejurensommer: cause I'm looking for /etc/postfix/main.cf, /etc/postfix/master.cf, and /etc/dovecot/dovecot.conf examples. Can you help? Mean only default configuration.20:11
sommerdejuren: the default files are pretty good for a "standard" install.20:12
sommerdejuren: what are you trying to accomplish with your mail server?  ie, receive mail from internet, only forward mail to internet, etc20:13
dejurensommer: receive mail from internet and send mail to internet and internaly in a small local network20:16
sommerdejuren: the serverguide should help you do that, I'd basically follow the postfix and dovecot sections20:17
sommerdejuren: then if you want to add spam, virus, etc filtering later work through the mail filtering section20:17
sommerdejuren: and when you run into trouble or have a specific question feel free to ask20:18
dejurensommer: ok, will work on it. tks.20:18
sommerdejuren: you're welcome20:19
donspauldingI'm having some troubles setting up Samba+LDAP,  smbldap-populate is saying... "failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, <GEN1> line 234."21:59
donspauldingI'm not sure why it's giving me this particular error.  I've got the username/password setup in /etc/smbldap-tools/smbldap_bind.conf22:01
donspauldingah, nevermind, my DN wasn't fully qualified (i.e. "admin" instead of "admin,dc=mydomain,dc=local"22:10
donspauldingin smbldap.conf22:10
agampherHello. I am trying to get a startup script to run at startup (crazy, I know), and it requires me to have the JRE_HOME environment variable defined to run it. It seems I am only successful at running the script at all if I sudo -s first. Any ideas on how to proceed?22:40
agampheri suppose i should reword that to say run a startup script at boot22:41
`6oginit scripts are executed as root anyway22:42
`6ogbut in answer to your question, `export JRE_HOME=/path/goes/here/`22:43
agampherwhich i did, but using the sudo command to run the script causes is to fail22:43
agampheri have to sudo -s, then run the command as root22:43
agampherso if scripts are run as root at bootup, what is the best way (best practice) to include an application startup script in the mix?22:45
agampherpardon my noobishness22:46
agampherok, heres what i did and it worked, tell me if it's bad practice22:51
agampheri created a file in the init.d folder with a line that defines the environment variable and then a line that initiates the application startup script22:53
jmedinaagampher: using sudo -s it doesnt import all the env vars from root user22:53
jmedinawhy not start it with a rc script?22:53
agampherthen i added to startu pwith sudo update-rc.d <name of script> start 51 S .22:53
jmedinaagampher: that is the usual wey in ubuntu22:54
agampherk22:54
agampherjust checking to see if that was best, thanks for your help22:55
=== nealmcb1 is now known as nealmcb
=== chuck__ is now known as zul
tonyyarussoI'm having a bit of trouble with hostname lookups on my home network.  'ping <machinename>' gives "unknown host", but 'ping <machinename>.local' works fine.23:25
jmedinatonyyarusso: add local to your resolv.conf23:26
jmedinathe line is "search local" without quites23:26
jmedinaquotes23:26
tonyyarussojmedina: I have that already, but it doesn't seem to be working.23:26
tonyyarussojmedina: FWIW, the router is running DD-WRT23:30
tonyyarussojmedina: Meanwhile on the router, the resolv.conf also has "search local", but it is the second search line - the first is "search hsd1.mn.comcast.net." (with the trailing period)23:33
jmedinaI think you can only have 1 search line23:34
jmedinabut you can use something like search local hds...23:34
`6ogtrailing . is ok. you might want to put search local above the other.23:34
uvirtbotNew bug: #306821 in gvfs (main) "Network servers are not refreshed properly (dup-of: 209520)" [Undecided,Incomplete] https://launchpad.net/bugs/30682123:38
tonyyarussoOkay, I got rid of the comcast line altogether, and I still have the same behavior.23:42
`6ogdo you have network mangler installed?23:43
tonyyarussoOn the clients, yes.23:43
tonyyarussonot the router, obviously23:44
donspauldingcan I use debootstrap to return a server to its original state?  after a fresh install?23:46
donspauldinghow can I take a running server and lose all of its settings/installed packages? (keeping /etc/network/interfaces and .ssh/authorized_keys would be bonus, but isn't critical)23:47
`6ogyou save those files and reinstall. (i'm not aware of another method)23:48
=== liberfiasco is now known as libervisco
* jmedina thinks donspaulding wants something like MS system restore :D23:51
tonyyarusso`6og: what effect does N-M have on this?23:52
donspauldingjmedina: yes, that's it!  How can I install System Restore on my server?23:52
`6ogtonyyarusso: the .local made me wonder. i'm also wondering if the wrt is eating the mdns data23:53
* donspaulding is only kidding....23:53
tonyyarusso`6og: what should be my next step for diagnosis?  Disconnect the router and just work on the switch for a bit?23:53
tonyyarusso.local appears to be from avahi afaik23:54
`6ogyes, its an avahi thing23:54
jmedinatonyyarusso: do you have a local dns?23:55
jmedinathe .local domain on the router?23:55
tonyyarussojmedina: The router can do DNS, yes.  Uses DNSmasq.23:57
jmedinatonyyarusso: why dont you send the search option via DHCP?23:58
tonyyarussojmedina: It is - and it's sending 'local' for that too.23:59

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