/srv/irclogs.ubuntu.com/2017/03/24/#ubuntu-server.txt

DirtyCajunsarnold, that is an interesting way to go about it... ill look into it in the morning. Basically regenerating the conf file every edit... Very out of the box! i like it03:27
HensterMorning, I'm copying over allot of files and i want the system to email me when the job is done ? i do have emails set up ,can some one please point me in th ecorrecti direction?05:54
Hensterthe correct*05:55
sarnoldif the 'mail' command actually works correctly you can try cp a* b/ ; echo done | mail -s done username@example.com    (at least I think that's how mail works, it's been a while)05:59
Hensterok cool tx , will try06:22
blind_techieHi All, looking for some help getting wi-fi setup on my little portable server.07:05
blind_techieI'm looking to have it create a wi-fi access point if it is not connected to the network so that I can then connect it to the network by inputing credentials into its web interface.07:07
blind_techieAny pointers on where to start.07:07
sarnoldblind_techie: I've never tried it myself but I think hostapd is a reasonable starting point for making a standard linux machine pretend to be an access point http://w1.fi/hostapd/07:09
lordievaderGood morning.07:10
lordievaderblind_techie: Hostapd is a very nice way of creating an access point, granted your wifi nic supports master mode.07:10
blind_techieThanks. I'll check it out. What about using NMCLI?07:11
lordievaderNetworkManager has AP support?07:12
lordievaderWait, why am I surprised?07:12
lordievaderblind_techie: https://wiki.archlinux.org/index.php/software_access_point07:13
lordievaderArch also goes the hostapd route.07:13
blind_techieI'm not sure how easy it would be to get the server to become a network client with this setup. IE. I'm not sure hostapd will allow the server to stop broadcasting, connect to the website and then return to hosting if it fails.07:14
sarnoldI'd expect it to be difficult to get the details right07:16
blind_techieI'll try the method in the second link.07:16
sarnoldbut it should be possible to write a little program that manages hostapd and iwconfig and wpa2_supplicant and a simple webservice, say sinatra or flask or a little go server, and manage state transitions among all the inputs.07:17
blind_techienode.js perhaps. Hmm!07:18
blind_techieI found this package https://www.npmjs.com/package/wireless-tools07:19
sarnoldwow, that looks like it knows how to drive everything.07:20
sarnoldalright, bedtime here. have fun. :)07:21
blind_techieThanks.07:21
blind_techieNight night!07:21
sarnoldthanks :)07:21
blind_techieNo problem.07:22
lordievaderblind_techie: It is easier to make a dedicated access point.07:22
lordievaderThe management of your requirement sounds like a pita.07:22
blind_techieIt is for installation on a single board computer where we have one card for wireless. The point is to allow the device to be configured by a smartphone or tablet and then connect to the internet by itself.07:23
snypzhello all07:45
lordievadero/07:54
=== disposable3 is now known as disposable2
=== admcleod is now known as admcleod_afk
Pinkamena_Dkind of out there request but anyway: I have a development server where I have many (python) web apps running on different ports and I have other people test things on this machine. From my local workstation I have a bash script that pushes new updated to these servers. The web apps are run in a screen session with console output so that if some error happens I can quickly look at it and debug it. However after the14:47
Pinkamena_D updates are pushed I have to ssh and restart the process manually to see the updates. Is there any way to restart the process in the screen session automatically? (equiviliant to attaching to screen, pressing ctrl c, up, enter)14:47
rbasakStart with a post-receive hook14:49
rbasak(in git)14:49
rbasakMaking the thing restart inside the screen session is a little trickier14:50
rbasakYou might need to wrap it with something that'll interact with the post-receive hook.14:50
rbasakI can't think of anything similar while still keeping it inside a screen.14:50
rbasakSome web frameworks have an auto-restart function, like cherrypy. So an alternative might be to integrate that into your code.14:50
admcleodxibalba: jemurray (or anyone else) - any idea if the IO load is particularly high right now?15:09
admcleoder... ^ ignore15:09
=== powersj_ is now known as powersj
drabhi, anybody running bonding? I'm seeing what look like a problem with the ifup scripts17:36
drabif I ifdown the bond, it takes all the slaves down, which is fair enough I guess17:36
drabhowever if I ifup the bond, the slaves aren't brought up even tho they are specified as slaves for the bond in /etc/network/interfaces17:37
drabas a result network is broken on the box17:37
drabI have to manually bring the slaves up and then it works17:37
drabshouldn't that happen automatically as part of ifup?17:37
patdk-wkhow did you configure it?17:47
drabis there any irc channel or ml/forum to ask hard server questions? having some problems and not quite sure where to turn to22:09
drabstuff like spiceworks seems rather generic and ubuntu-server seems dead silent/only server dev oriented which is fair enough22:09
patdk-laphaven't seen you ask anything22:14
patdk-lapyou ignored my question to help you earlier22:15
naccdrab: --^22:16
naccdrab: there's #linux (iirc -- maybe ##linux)22:17
drab_patdk-wk: hi, got disconnected again, didn't mean to ignore you, been a very flacky internet day22:20
drab_I never saw your msgs22:20
drab_I think I always responded in the past whenever you asked questions and I'm grateful for all the help22:20
patdk-lap<patdk-wk> how did you configure it?22:20
patdk-lapthere are so many ways to setup bonding in /etc/network/interfaces22:21
drab_patdk-wk: sec, pasteb'ing, thanks22:24
drab_patdk-wk: http://paste.debian.net/924212/22:32
drab_this actually works (it was the last attempt I made)22:32
drab_it's a bridge for lxd on top of a bonded quadnic22:32
drab_and since I added the bridge with the up ifconfig eth* up things have improved22:33
drab_before I only had the bond with the lxdbr0 attached to it22:33
drab_maybe I should have had the "up" statements in there too?22:33
drab_I thought that since I had the auto and the master/slave statements the slaves should have been brought up and joined automatically22:34
drab_but if I do ifdown bond0 and ifup bond0 it says waiting for slaves to join, but they never do22:36
patdk-lapI don't use the bond-slaves line at all22:43
drab_patdk-wk: ok, I can try to take it out and see if it makes a difference, I got that from the ifenslave readme, I was actually hoping to use only that one without bond-master since it simplified the gen of interfaces file, but it didn't work without22:46
patdk-lapup ifconfig bond0.4 up22:46
patdk-lapthat I do have to do on my bridges though22:46
drab_ok, I have that too, up ifconfig bond0 up22:46
patdk-lapno, cause it won't setup the other interfaces22:46
drab_the bridge on top of the bond seems to work fine, the problem seems to be the slaves of the bond not coming up22:46
patdk-lapI do not have any of the other ifconfigs at all22:46
patdk-lapya, I blames your bond-slaves line22:47
drab_but I'm trying without the slave statement to see what happens22:47
drab_k22:47
drab_testing, thank you22:47
drab_btw I got that idea from /usr/share/doc/ifenslave/README.Debian.gz22:47
patdk-lapactually22:47
patdk-lapI have bond-salves none22:47
drab_but maybe I misread it22:47
drab_ah, uhm, oikj22:47
drab_patdk-wk: so you don't have any up ifconfig $slave_iface up at all in the bond stanza or elsewhere?22:48
drab_they just come up?22:48
patdk-laphttp://paste.debian.net/924213/22:49
drab_thank you, great example22:51
snypzhello all22:52
drab_hello snypz22:52
drabpatdk-wk: got kicked out again. same behavior with slaves none22:58
drabeverything comes up and works at boot22:58
drabbut if I do ifdown bond0 it dowsn the slaves too22:58
drabbut ifup bond0 doesn't see any slaves joining22:58
drabI have to manually bring them up22:58
drabso same situation as before with the slaves statement referencing all the slaves22:59
patdk-lapoh, that won't work22:59
patdk-lapcause they are set to manual22:59
patdk-lapyou have to manually up and down them22:59
patdk-lapthe auto just works on boot to ifup them23:00
drabok, fair enough, that's what I suspected, but I wondered if there was automagic I was missing since they are brought up "magically"23:00
patdk-laponly way I know if you care about that is to setup a bunch of pre-up and post-down commands or somethign like that23:00
drabyeah, that's what I was trying last23:00
patdk-lapthey are not really brought up automatically23:00
patdk-lapthe auto means, when the os sees the new nic, it ifup it23:01
drabto have a bunch of up ifconfig eth* up in the bond stanza, similarly to what you also have in the bridge23:01
patdk-lapyou would have to add a down one there23:01
patdk-lapthen probably add some up and downs to the bond23:01
patdk-lappersonally I never do that stuff23:01
patdk-lapcause I need it up, and only up23:01
drabheh23:02
drabpatdk-wk: how's the jumbo frame stuff working out for you btw? have not set that up because I don't have 100% quipment supporting it and I can't figure out from the interwebs if mixing is a bad thing or not23:04
drabso for some server-to-server stuff that'd be fully supported, but from clients/desktops some switches in the path won't23:04
patdk-lapnever use anything else23:04
patdk-lapheh?23:04
patdk-lapthe whole network has to be jumbo or not23:04
drabok, fair enough23:05
patdk-lapyou can't mix up mtu's on the same network23:05
drabI have some leaf switches that aren't, close to ppl's workstations23:05
patdk-lapeverything at amazon switched to jumbo a few years ago23:05
drabgood stuff23:06
patdk-laponly if your switch can handle it23:06
drabI consider myself lucky we finally have servers and not old desktops running all our services :)23:06
patdk-lapit plays hell on microbursts with switches limited buffers for gigabit23:06
drabis there any way in udev rules to match physical interfacels only?23:40
drabin /etc/udev/rules.d/70-my-net-names.rules23:41
drabSUBSYSTEM=="net", KERNEL=="e*" ACTION=="add", ATTR{address}=="xxxxxxx", NAME="eth0"23:41
drabinitially I had no KERNEL=="e*"23:41
draband that caused troubles with the bridge which was going to take the mac of eth023:41
drabI added KERNEL=="e*" and that fixed the issue and works on a few servers which would normally come up with enp* and em* interfaces23:42
drabhowever on another machine there's some network devices named p*23:42
drabit'd be useful to be able to just refer to "physical" interfaces vs sw ones like bonds or bridges23:43
drabbut I don't see how to do that23:43
naccdrab: if you can programmatically determine that, you can use PROGRAM23:43
patdk-lapwhy do you want to name all of them manually?23:48
patdk-lapif you want to do that, why not just uninstall the naming package?23:48
patdk-lapdid that thing get renamed or something?23:49
patdk-lapused to be called something like biosdevname or something23:49
drabpatdk-wk: it happens without biosdevname installed23:49
patdk-lapya, systemd does it23:49
drabthe naming becomes odl style again if I pass net.ifnames=0 and biosdevname=023:50
drabbut that creates a different set of problems23:50
drabso renaming with udev is still the "best", altho that is now also creating issues..23:50
drabif I don't rename them there is a bug in netcfg and I can't do pxe installs23:50
patdk-lapI would recommened, not hitting bugs23:52

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