[01:05] why is PATH="$HOME/bin:$PATH" fine but LD_LIBRARY_PATH="$HOME/lib" is not? [01:39] LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/lib" === quantic_ is now known as quantic [01:54] an3k: because you're potentially changing the behaviour of -all- programs you run if you're defining a new location to find symbols; but you're unlikely to have funny versions of existing program names in ~/bin/ [01:54] an3k: you're right that it's not -that- different, but it does potentially affect nearly every program you'll run. [01:55] hmm, when I login and do echo $LD_LIBRARY_PATH it's empty, same for the other env path i set [01:56] and doing "LD_LIBRARY_PATH="$HOME/lib"" in .profile doesn't work but export LD_LIBRARY_PATH="$HOME/lib" does [01:57] I know that export is only for the current login and not permanently (as long as you don't put it in the .profile :) but afaik PATH="/foo" is temporary too?! [01:59] anything you set in your shell applies only to that shell process [01:59] export means it gets copied to child processes as well [01:59] an3k: something else has already done an 'export PATH' somewhere during login; I never did figure out the full 'export' rules in shells; check the output from export -p | grep -e PATH -e LD_ to se... [01:59] PATH=... applies to your current shell only; export PATH=... applies to your current shell _and_ any processes it spawns [02:00] hmm, PATH might be a bad example for that. [02:01] so with PATH I can do "binary" and it checks $HOME/bin for that but if "binary" wants to start "foobarnary" which is also in $HOME/bin then it doesn [02:01] 't work? [02:02] since PATH is exported, whatever you start will get the value.. [02:02] and if I want that to work I would have to export PATH [02:02] ah yeah, that's why the bad example :) [02:02] but I got the idea. Thank both of you! [02:03] but if you do FOO=bar in your current shell, spawned processes won't see it unless you explicitly export it [02:03] PATH is a bad example because it's already exported, as sarnold said [02:03] tarpman: I thought I understood all this but then: [02:03] $ FOO=bar /usr/bin/env | grep FOO [02:03] FOO=bar [02:04] sarnold: difference between that and $ FOO=bar; /usr/bin/env | grep FOO [02:04] tarpman: dude. 22 years I've been doing this.. [02:04] tarpman: thanks :D [02:05] :D [02:05] very nice we've talked about :D [02:06] an3k: definitely. I've wondered just what little bit I've missed for a decade or something but never really investigated. tarpman points it out with a one-char change to my example. [02:09] hehe yeah. This is also difficult to google for and I often noticed that someone has to ask the right question at the right time in right location :) [02:13] that can be quite difficult too :) [02:29] grrrr su vapoursynth -c "echo $HOME" = /root [02:58] an3k: the difference between su -c "echo $HOME" and su -c 'echo $HOME' [03:00] oh my ... why, just why?! :) [03:00] tarpman: lol, two chars this time :) [03:00] ^_______________^ [03:00] tarpman: and, uh, I looked right at it and missed it. sigh. it's a good thing this is a three-day weekend. :) [03:01] sarnold: we were talking about that in scrum this morning, actually. turns out my cow-orkers get to work on monday [03:01] (i'm in canada, so don't get a stat until next month) [03:02] sarnold: basically: enjoy your long weekend :) [03:02] tarpman: hmm, sorry about the CAD, I'm doing my best to burn fuel though I swear :) [03:02] ^^ [03:02] though I realize i could be doing more to consume more maple syrup. [03:02] an3k: for the record, a bunch of scripting languages inherited the ' vs " thing from sh, so it's good to be alert about [03:05] yeah, I know that from PHP but there it has a complete different meaning (int/var) but the behaviour in bash is very confusing. [03:07] in terms of performing substitution or not, I meant [03:07] not sure what you mean by int/var? [03:08] in PHP bla='5' is correct (integer) as well as foo="more" (variable) and vice-versa it's wrong [03:08] What I can't understand is that su user -c "echo $HOME" is executed as root and su user -c 'echo $HOME' as user. [03:09] the "" string is interpolated by the shell [03:09] the '' string is not [03:09] "echo $HOME" - the $HOME part is evaluated in your current shell and the result passed to su [03:09] it isn't about root execution or user execution [03:09] su user -c 'echo $HOME' the entire string is passed to su as is, and evaluated by the shell invoked by -c [03:11] that is a very informative evening :) Thank you [03:12] an3k: were you the person I was talking about l-smash and static linking with? I still have a schroot around here somewhere with it half installed ... [03:12] yes, must be me :) [03:15] do you need help with? [03:18] hmm, obviously ~/ is always evaluated by the shell invoked by -c [03:18] depends upon '' vs "" again [03:20] I have su vapoursynth -c "~/vs_user.sh" and added echo in front of it. I always got ~/vs_user.sh echo'ed with " as well as ' [03:20] no, he's right - " counts as quoting in the case of ~ [03:20] sh(1) says only $ ` " \n are evaluated inside " [03:21] pardon, $ ` \ [03:21] w.t.f. 22 years.. [03:21] * sarnold hides in shame. [03:21] tarpman: I hope you're keeping track of how many beers I owe you. [03:21] heh. I have the manpage in front of me, it's not like I have it memorized :P [03:21] surely were into the dozens by now :) [03:22] * tarpman writes this down [03:22] sarnold: planning to attend debconf!? :D [03:22] er, the next one in north america, anyway... [03:22] tarpman: heh, one of these years.. [03:22] I wanted to make it to last year's, but we couldn't convince management that Yet Another person needed to go.. :( [03:23] thank god ~ isn't evaluated otherwise my build_script may be broken :) [03:27] have a good weekend tarpman, an3k :) [03:27] ttyl :) [03:27] bye sarnold, you too! [03:28] an3k: right. so I think I'm at the same point you were .... /usr/bin/ld: /usr/local/lib/liblsmash.a(description.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC [03:29] As far as I can remember I solved it by compiling l-smash with -fPIC (CFLAGS) [03:31] PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/lib/pkgconfig" ./configure --prefix="$HOME" --extra-cflags="-I$HOME/include -fPIC" --extra-ldflags="-L$HOME/lib" [03:32] aha, there it is [03:32] for l-smash: ./configure --disable-static [03:33] then everything works. [03:33] modulo your various $HOME stuff - i'm in a chroot so installing everything to /usr/local is acceptable [03:33] mystery solved :) [03:33] oh, you don't care about static links?! then I can give you my build script :) [03:33] heh, I don't care about l-smash either ;) I was curious how you got to where you did (thinking you had to rebuild gcc) [03:34] audio/video is not my area one bit [03:34] ah hehe [03:34] well, I even don't have to rebuild gcc [03:34] didn't think so ;) [03:34] glad you sorted that :) [03:34] a very knowledgable gcc dev told me how I can do it without [03:34] but now you know, --disable-static rather than --extra-cflags [03:35] yeah. I built everything without static / with shared and it fully works [03:35] awesome [03:35] good place to be [03:35] if you just run this in the VapourSynth directory you should have a static lib for L-SMASH Works [03:36] ar cr libvslsmashsource.a lsmashsource.o video_output.o libavsmash_source.o lwlibav_source.o ../common/utils.o ../common/qsv.o ../common/libavsmash.o ../common/libavsmash_video.o ../common/lwlibav_dec.o ../common/lwlibav_video.o ../common/lwlibav_audio.o ../common/lwindex.o ../common/video_output.o [03:36] * tarpman kills off that particular schroot [03:36] maybe change "ar cr" to "ar csr" [03:37] that's what he said about how to avoid rebuilding gcc :) [04:52] whats up all [05:55] How do you upgrade to another release if the VPS is headless, and I'm connecting to it via ssh? Says it's not recommended to upgrade via ssh. But then it'll tell me that there will be another port to connect to if something goes array in which port 1022 will be used and thought I seen a mention of screen there. [05:56] Should I use screen anyway? I guess it would make sense to use screen instead of a proper ssh terminal. That way I can reattach [05:56] * NoCode is thinking out loud. [06:05] Should I keep /etc/rsyslog.conf when upgrading? [06:19] I'm awake but I have absolutely no clue. Personally I would keep rsyslog as long as I don't have to care about it's size / free diskspace [09:30] Good morning. [10:02] hi, sudo vconfig add eth0 100 means the eth0.100 got vlan-id 100 ? [13:38] good day [13:38] installed the 4.4 (and tried the nightlies) and after reboot get "gave up waiting for root device" [13:38] the grub menu entries look exactly the same as my working 4.3 kernel (i.e. root=UUID..... is all there..) [13:38] any ideas? [13:43] What are you trying to mount? What fs type? [13:43] ext4 [13:44] just trying to boot into 4.4 kernel [13:44] What version of Ubuntu and where did you get the 4.4 kernel from? [13:44] installed official ubuntu mainline packages [13:44] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-wily/ [13:44] The ext fs is not on lvm or luks or something? [13:45] no, it's not LVM [13:46] basically, the stock 4.2 that came with wily - boots, 4.3 - which I also installed from the same ppa -boots, 4.4 (and 4.4-nightlies) - don't boot [13:46] same root UUID [13:46] can I try the good old root=/dev/nvme0n1p2 method? [13:46] What method is that? [13:47] Is there something in the 4.4 kernel that you really need by the way? [13:47] yes - proper i915 suppoprt [13:48] currently getting a lot of drm errors and timeouts during boot [13:48] apparently it was solved in 4.4 [13:48] *ERROR* dp aux hw did not signal timeout (has irq: 1)! [13:48] 32.770232] [drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training [13:48] [ 33.538109] [drm:intel_dp_complete_link_train [i915]] *ERROR* failed to start channel equalization [13:48] A video card in a server? [13:49] yes [13:49] why is that unusual? [13:49] home server :) [13:49] Most servers are headless. [13:49] not this one [13:50] buengenio: Do you get busybox when it gives up waiting for the root fs? [13:50] i think so [13:50] yes [13:51] buengenio: Can you mount the root-fs manually in there? [13:51] haven't tried [13:51] but it also says /dev does not exist [13:52] so I suppose I wouldn't be able to mount anything [13:52] Have you checked it's existence? [14:16] http://pastebin.com/E3AtcKaE -- Hi, would anyone know a solution? I'm not sure if such errors in the log are responsible for my index page being blank. [14:35] Probably, a dependecy cannot be started. That is not the only error I see though... === Piper-Off is now known as Monthrect === unreal_ is now known as unreal [17:13] what does the dhcp failover mechanism failover ? the leasesfile ? [17:26] no [17:26] you must configure it in the config on each dhcp server [17:42] hi does anyone know what to insert into csf/iptables to allow samba shares on local network? Or can anyone please help so I can access samba, my firewall is blocking it. If i turn off the firewall it works great but I'd like to keep things secure and have the firewall running [17:43] I only need samba on my local network [17:43] any help would be great. thanks [17:46] jonah, maybe this page is a help >> http://askubuntu.com/questions/649969/what-ports-does-the-samba-client-require [17:47] OerHeks: hi thanks that's great. it was also the rules set I was looking for. I've not used iptable rules before so just wondered how I put the rules set in there and make sure it's right? [17:47] jups, run: netstat -tulpn | egrep "samba|smbd|nmbd|winbind" # and these ports are your answer. [17:48] OerHeks: thanks [17:50] patdk-lap: ok, but it will never serve the same address from my backup dhcp it seems ? [17:51] OerHeks: it's this bit I don't really get, the syntax... http://www.perturb.org/content/iptables-rules.html [17:51] OerHeks: how do I make a few rules that allow my local network? [17:55] YamakasY, that depends on how you configure it [17:55] I've posted here for advice: http://ubuntuforums.org/showthread.php?t=2310138&p=13424118#post13424118 [17:55] thanks again for any help [17:55] and if your client supports bootp or real dhcp [17:55] bye for now [17:56] patdk-lap: yeah it does but I have set a split on 255 on the master [17:56] and I assume it should takeover when I stop it [18:09] isc dhcp doesn't takeover [18:09] they will always work [18:10] except the slave will be delayed like a second [18:10] for bootp, you must configure a range for each to use [18:10] for dhcp, they will split the pool between the two [18:10] and update each other on usage [18:21] patdk-lap: ok, but what about dns than ? that is kinda odd [18:23] heh? [18:23] what does dns have to do with dhcp or failover? [18:23] patdk-lap: if it failsover and it get's anoter IP, my client... my dns resolving is not working anymore ? [18:24] why would it get another ip? [18:24] patdk-lap: because I see that happening [18:24] and why would it break dns? [18:24] dhcp is dynamic [18:24] you give your machine a random ip [18:24] no it's not, it's static if you set it [18:24] if it is static, what does it matter at all? [18:25] you really did not read anything I said [18:25] heh, server that get their IP from dhcp and switch IP, what do you think that will happen to dns resolving ? [18:25] if it is istatic, they all know what it is, so why would it ever get a new ip? [18:25] if it is dynamic, I said above, the dhcp master/slave will talk to each other [18:25] no it's only static in my leases file [18:25] heh? [18:25] it's static or dynamic [18:25] it's written to the leases [18:25] leases file is leases, it has NOHTING to do with static or dynamic [18:26] is the leases file a config? [18:26] whe you provision with something like foreman it does [18:26] if not, it doesn't matter [18:30] patdk-lap: I'm confused [18:31] yes, that was ovious [18:32] cause your putting your assumptions on software, that does not work the way you think it does [18:32] patdk-lap: no its more how foreman handles it's DHCP leases... it's a way but dhcp failover itself works different :) [18:32] well, I don't know what a foreman is [18:33] or what it has to do with dhcp [18:33] you ask about dhcp failover on ubuntu server [18:33] ubuntu server uses isc dhcp server by default [18:33] all infomation I gave is related to isc dhcp server [18:33] patdk-lap: it provisions dns, dhcp, tftp, puppet and provisions a server on a virtual or baremetal environment [18:33] maybe try #foreman? [18:33] this is #ubuntu-server though [18:34] patdk-lap: yeah but they mostly say, go to your distro or the package channel [18:34] so they claim, foreman doesn't do it [18:36] patdk-lap: where do you see that ? [18:36] they told you, they don't know, and don't care [18:36] so it cannot be related to foreman [18:36] therefor it works how your os does it [18:36] how UBUNTU does it [18:36] so you cannot come in here and say foreman does this or that [18:36] oh no they care but we are all checking new ways out and committing it in if needed [18:36] if foreman people claim it doesn't [18:36] relax mate [18:37] well, read up on isc dhcp [18:37] just collaborating [18:37] it's all in the manual, whole section on it [18:37] yeah did but not about the leases file [18:37] it's pretty easy and straight forward [18:37] cause like I said, leases file has nothing to do with it [18:38] heh, sure it does [18:38] but in a different way [18:38] what? [18:38] what does leases file have to do with failover? [18:38] ok, end of discussion, you are not that friendly in words [18:38] as I said relax [18:38] caus eyou keep counterdicting [18:38] I said it doesn't have to do with failover, and you answer it does [18:38] but you don't know why [18:39] have you ever checked a leasesfile between 2 failover systems, LB-ed or not ? [18:39] it has nothing to do with failover [18:39] check that and come back [18:39] leases file is a result [18:39] yes [18:39] the infomation in it is the reault of the sync of failover [18:39] leases has no place in failover though [18:39] no but I'm checking out a way it can [18:39] it can what? [18:40] I'm thinking about a cold failover with rynsc otherwise [18:40] why not use normal failover? [18:40] failover that is cold, offline, is not a very useful failover [18:40] cause when you need it, you cannot rsync [18:41] patdk-lap: because my information of my hosts is in my leases file and not in my config [18:41] as forman writes to the leases file [18:41] directly writes to the leases file? [18:41] yap [18:41] why not ? you can [18:41] ok, so it went way into unsupported territory [18:41] you can do many things, doesn't mean they are supported :) [18:41] yeah, but isn't that with all software ? [18:42] no [18:42] sure [18:42] there is a api to use [18:42] sho supports isc when they stop it ? indeed no-one [18:42] so everyone can pickup [18:42] not to use it and go around it, means what your doing could break at any time [18:42] it's like in insurance company ;) [18:42] and it also causes you to be stick to specific software to do things [18:42] patdk-lap: hehe and you think a company as RedHat doesn't know how to handle that ? [18:43] heh? [18:43] indeed, foreman is RedHar [18:43] it would cost them money [18:43] *RedHat [18:43] huh ? [18:43] why ? [18:43] if they support it [18:43] you don't know how support works it seems [18:43] someone has to fork dhcp, continue to support it, make sure that unsupported interface works, maintain security patches, ... [18:43] support is what you can handle as you know how it works and YOU can support your way [18:44] if you did not do all that, and used a supported interface, the overhead is much much less [18:44] patdk-lap: yes and if I don't work today I might have more rest tomorrow :P [18:44] wtf, it's not an if/else [18:46] for support? [18:46] sure it is [18:46] once you modify something, or don't do something the supported way, you end up supporting it [18:46] this is a basic rule of bussiness === jelly-home is now known as jelly [18:47] this is why there are so many cloud things [18:47] offload the support issue with maintaining email, website, acocunting software,.... to whoever does it in the cloud [18:47] or contract another company to do it [18:48] if the company wanted to deal with supporting it, it would all be inhouse [18:48] patdk-lap: indeed that is where the company that suggests the modifications is supporting it [18:48] ever seen how github forks work ? [18:48] indeed like that [18:48] once you fork, your stuck [18:49] maintaining it forever, till you stop using it [18:49] yeah so ? [18:49] unless you get your adjustments pushed upstream [18:49] if that makes your money, be happy [18:49] sure [18:49] but it if produces no money [18:49] that is horrible way to do things [18:49] I'm not a as-if user [18:49] as-if people don't improve and are stuck [18:49] and actually don't know that much of their systems [18:50] party party. 7zip can't handle ~ at all, it creates a directory with that char ... [18:58] * YamakasY brings in the popcorn [19:30] * lordievader wonders if foreman writes to the leases file directly or through an api [19:33] I guess [1] answers my question. [1] http://projects.theforeman.org/issues/748 === Lcawte|Away is now known as Lcawte === Monthrect is now known as Piper-Off [23:04] i got one werid issue [23:05] setting up a rudundat router right...i have a standard ethernet device, and...a verizon jetpack device (usb connected) [23:06] this router is an ubuntu server...and im using drsounds fault_tollerant_router (ruby scripts basically) Now i have tested this in virtual environments several times and...it all seems good. [23:07] if i have one or the other connected...everything seems to work fine, but when i have them both connected, i have really werid dns issues. [23:07] cant get to google....then all the sudden i can... [23:08] very strange. === Lcawte is now known as Lcawte|Away