[04:04] ha ha ha restoring from backup is triggering anti ddos measures at a colo... breaking my restore [06:21] hi all [06:22] i have two netwrok and i want use ubuntu as router . [06:22] eth1 connect to external and eth0 internal network [06:23] i use these command for nat and forwarding [06:23] Masquerade. [06:23] iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE [06:23] # fowarding [06:23] iptables -A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT [06:23] # Allow outgoing connections from the LAN side. [06:23] iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT [06:24] all things work correctly but what i do, if i want a computer in external network can access to internal network [07:15] Is there a channel dedicated to duplicity? Or should I bother people here? [07:23] mahdi_ja: You need to port-forward those to the right machines in the internal network. [09:04] hello! [09:05] is it possible to shrink the root partition on a LVM (Ubuntu 18.04 LVM2 with ext4 file system) [09:06] zzarr: yes. first fs, then lv, then anything under it, if needed [09:06] <_ruben> It's tricky, yet possible. But can't be done on a running system, as the filesystem needs to be unmounted to be shrunk. [09:07] yah, has to be done offline [09:07] I mean, without rebooting/accessing the machine physically [09:07] <_ruben> That's pretty much a no-go [09:08] if you're gonna do changes like this now, consider taking advantage of the situation and migrate to zfs or btrfs. they're pooled filesystems and problems like resizing "partitions" don't exist. [09:08] hehe :) [09:09] what about if it's possible to reboot, is it easier then? [09:10] other whys I have to live with the size the root partition have [09:10] zzarr: you can't resize root while the root is mounted and in use. so if you can stick a liveUSB there or reboot into a rescue mode somehow (maybe pxeboot, is this hosted?) [09:11] it's not hosted, it's a physical machine at home [09:11] guess I have to take a monitor and connect it when I come home (and keyboard) [09:13] <_ruben> yup, you might be able to do some nasty bootstrapping tricks to boot a different environemnt on the same host, but hooking up a monitor & keyboard and boot from live cd/usb will be waaay easier and much safer :) [09:14] it's not possible to resize ext4 online I suppose [09:14] in theory, one can use initramfs if /boot is separate. install dropbear and have an initramfs hook to ssh into it before root is mounted. [09:15] zzarr: you can try it. resize2fs /dev/sda2 and you'll see it'll refuse [09:15] (sda2 or whatever root is) [09:15] I know, have tried that [09:16] right. "online shrinking not supported" [09:16] <_ruben> a logical volume called sda2, that'd be a nice way to make things confusing ;) [09:16] what would happen if I resized the lvm partition to desired size then ran fsck on the partition? [09:17] it's called /dev/mapper/ubuntu--vg-ubuntu--lv [09:17] not so confusing [09:18] <_ruben> zzarr: you'll likely end up restoring your system from backups :) [09:19] have no backups (nether do I have anything important on the system) [09:19] it's a newly installed system [09:19] <_ruben> reinstall might even be fastest then [09:20] I think I have to bite the apple and boot from USB [09:21] <_ruben> if you're lucky it'll turn out to be a tasty apple [09:24] I realize I need to take the server down in any way, I will install more RAM (it have 4GB now and it will have 12GB after installing more) [09:25] is it possible to check if a machine have one or two physical DIMM's onboard (this question is for another machine) [09:27] <_ruben> dmidecode might be able to figure that out [09:28] thanks [09:28] bbl [09:30] _ruben: yeah :) 'twas just an example tho'. the user is expected to understand what they're doing especially when shrinking root. [09:31] <_ruben> blackflow: i know :) [10:24] I'm back [10:25] I have thought about the situation I have, and realized that a 60GB root might not be entirely bad [10:26] is it possible to cache a repository? [11:14] good morning [13:40] kstenerud: did you miss my comments on https://code.launchpad.net/~kstenerud/ubuntu/+source/samba/+git/samba/+merge/356153 ? === paxis_ is now known as paxis [14:34] Is possible to use /etc/fstab.d/ to include files? I found this https://unix.stackexchange.com/a/62826/213389, but it does not work in Ubuntu 18.04. Thansk [14:35] muhaha: why not use systemd .mount units? the fstab entries are converted to them anyway, via fstab generator [14:35] muhaha: it's not mentioned in the fstab manpage [14:35] (that way you can have multiple files) [14:36] blackflow: ah, I shoud learn more systemd.... like these timers and mounts... I will check it [14:36] muhaha: no linux distro I've even seen had support for a multiple files split fstab like that [14:40] ah [14:40] Where is stored generated .mount unit by fstab? [14:41] ah, nvm /run/systemd/generator/ [14:44] but instead simple one liner I have to create multiline unit file and then execute daemon-reload; start; enable.... [14:46] write a script [15:34] TJ-: Hey =D [15:34] TJ-: How are you? [15:46] TJ-: I have success doing 16.4 to 18.4. I used a app called pyinstaller to "compile" (generate just one binary) of my app.py python3.6 and put to real ARMv7 hardware. But I forgot about the glibc compatibilty :( Look the error: [15:46] TJ-: /tmp/a # ./app [15:46] [856] Error loading Python lib '/tmp/a/libpython3.6m.so.1.0': dlopen: /lib/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/a/libpython3.6m.so.1.0) [15:54] plm: then you need to tell pyinstaller to create a static binary, not dynamically linked - if it is able to that [15:55] TJ-: hmm, I will check that. BUt if supported, the binary will be bigger? [15:55] TJ-: actually dynamically linked is ~8MB [15:57] plm: of course; because the static link needs to contain all the dynamically linked libraries [15:59] TJ-: what do you think? double size? [16:02] plm: I have no idea; it depends on how many libraries need to be linked in. Use "ldd /path/to/binary" to find out which libraries are required [16:03] TJ-: all right. another solution is I back do 16.4 (i have this vm snapshot :) ) and try install the python3.6 there, where 16.4 has a older glibc. [16:04] I will to try both options [16:04] TJ-: root@deskdev-pi:/# ifconfig [16:04] Warning: cannot open /proc/net/dev (No such file or directory). Limited output. [16:04] TJ-: ^ this I have in the 16.4 snapshot, not in the 18.4 [16:05] Was mounted the same way as 18.4 [16:05] plm: oh, I didn't read your error message correctly earlier. it has included the python3.6 lib but that required glibc 2.25! that's harder to solve [16:05] plm: you could possibly work around that by creating a chroot on the target device and but that glibc library (and any others it depends on ) in the chroot with your application [16:06] plm: or, you could build python3.6 locally (in a container) against the glibc version that is on the embedded device, so your application can include the python libs linked with the older glibc [16:07] TJ-: you say, get older glibc and put in my 18.4 chroot? But how pyinstaller will know to use the older glibc? [16:08] plm: no, I'm saying build python 3.6 in a container that has the same glibc version as is in the embedded device - that might be 16.04 or something else [16:08] plm: do you *need* python 3.6 for your application ? [16:09] TJ-: in this case, is better to use a crosscompile. But I would like a complete envinroment, to be possible install with easier process more packages, just with apt-get install, and/or pip [16:09] TJ-: yes, minimal is 3.6 [17:10] t [18:00] TJ-: works binary compatibility installting python 3.6 on 16.4 =D [18:01] #ifconfig [18:01] Warning: cannot open /proc/net/dev (No such file or directory). Limited output. [18:01] TJ-: I have this error when I do ifconfig on 16.4 in chroot. on 18.4 I have no errors on ifconfig. Any idea hoe to solve that? [18:02] bind-mount /proc into that chroot [18:03] or mount it manually inside, mount -t proc proc /proc [18:05] jelly: trying.. :) [18:11] jelly: all right :) [18:12] how is possible, on ubuntu glibc is 2.23, and works on target where glibc is 2.18? [18:19] TJ-: ^? [19:15] hi, is it desired to have php7.3 available in cosmic universe? or should we remove it for this release [19:38] ok I filed a removal bug. Could someone responsible for php comment on bug 1796753 ? [19:38] bug 1796753 in php7.3 (Ubuntu) "Please remove php7.3 from Ubuntu 18.10" [Undecided,New] https://launchpad.net/bugs/1796753 [19:48] jbicha: thanks, we will talk about it tomorrow. Most are haveing a day off today [19:48] having* [20:06] I'm having a hard time creating the libvirt default network inside a vm in cosmic [20:06] virbr0 [20:06] basically the logs show [20:06] Oct 8 19:59:37 maas-vm systemd-udevd[639]: Could not generate persistent MAC address for virbr0: No such file or directory [20:06] it seems to create virbr0-nic (note -nic) before: [20:06] Oct 8 19:59:37 maas-vm systemd-networkd[447]: virbr0-nic: Gained carrier [20:07] I wonder if the "no such file" error is about the nic name [20:07] or something deeper, like https://github.com/systemd/systemd/issues/3374 [20:11] jbicha: if we don't keep 7.3, i noticed a package bug that should be fixed it still lists a breaks: against a 7.2 package [20:11] that should have a 7.3 equivalent but that may just be me having a brain fart :P [20:13] weird, it's iptables that is failing [20:13] # iptables -L [20:13] iptables: No chain/target/match by that name. [20:13] odd [20:16] * ahasenack installs the non-virtual kernel [20:17] heh [20:21] that was some wasted time [20:38] congrats [22:26] TJ-: hey, are you there? [22:27] TJ-: I really will need to run that chroot in the VM, becouse I need to run services on it. Examples, I installed mysql on chroot, but the ip of chroot is the same of host. What is need to can boot correctaly on vm. I'm using 16.4 snapshot. [22:46] plm: as I suggested last night, use an LXD container [22:47] plm: See https://askubuntu.com/questions/816886/how-do-run-an-arm-lxd-container-on-my-intel-host#816887 -- it's the same process as for the chroot