[00:24] Hi everybody! [00:25] Welcome back holli [00:25] ty Major_Wedgie [00:25] What have you been up to? [00:25] So I've recently updated from ubuntu 16 to ubuntu 18.04 and I'm having weird SSL issues when trying to site to site transfer using vsftpd server [00:25] nm mate, wbu ;) [00:26] Major_Wedgie: This channel isn't for regular chatting, just support. Head over to #ubuntu-offtopic if you'd like to chat :) [00:26] holli: what exactly do you mean by "I'm having weird SSL issues?" [00:28] SlidingHorn, I was able to site to site transfer normally using my current configuration of vsftpd but lately It won't so i switched to proftpd just to test it and check the cfgs and i get various SSL errors as [00:29] ``unable to connect using TLS connection: protocol error: [00:29] (1) error:140C5042:SSL routines:ssl_undefined_function:called a function you should not call`` [00:29] ``unction:called a function you should not call [00:29] 2019-01-12 05:06:00,852 mod_tls/2.6[3581]: SSL_shutdown error: SSL:`` [00:29] holli: (please use a pastebin for multiple line entries in the future) [00:29] I'm sorry, and sure will do [00:30] I have another server I've bought recently, it's on ubuntu 18.4 and site to site works fine with identical cfg file for vsftpd [00:30] the one I'm experiencing the issue at was upgraded to 18.04 from 16.04 [00:30] holli: and when you say "but lately it won't" - What exactly does that mean? (i.e. what exact command and error is there) [00:31] I'm trying to use FXP protocol to server to server transfer, I've passive address set in my cfg and the passive ports and no firewall on [00:32] lately because I'm sure It worked when I was on ubuntu 18.04 but 2 days ago It wouldn't work no more. [00:49] hey [00:51] is someone going to say something? [01:06] holli: fromthe log lines you posted i'm not sure which log they are from or which message was generated by which system, but i have a hunch this is a TLS capable client talking to an SSL-only (so no TLS) server. [01:08] so maybe check / verify that all systems have both dameons and (especiall SSL/TLS related) libraries up to date and that they were actually properly rebooted / services restarted after upgrading / installing new / newer libs. === WoC- is now known as WoC [01:15] tomreyn, I've been FXP using vsftpd normally, then that error showed up, I checked vsftpd logs but they weren't telling me much of the issue so I tried changing the ssl_cipher and adding ones like : ssl_ciphers=ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:HIGH:MEDIUM [01:15] and commenting all ssl_tlsv1 and others, then restarting and trying to fxp but no sites worked [01:16] i thin uninstalled it and re-installed proftpd while checking the logs, and i was able to fxp only when i set TLSv1.2, and only when i have the other sites set to act as passive, so anything lower didn't work and showed me the previous error [01:17] TLSv1.2 to some server running similar would work, but TLSV1.2 to TLSv1 somehow won't work on this server [01:19] I compared ssl libs and they seem fine and openssl is identical but the one that wont work while running cl :openssl ciphers -v 'TLSv1.3' | head -20 shows some TLSv1.3 while the other one doesn't, so There might be something restricting that and I can't figure out what it is [01:20] no firewall running in my server btw [01:24] Is this the Ubuntu support channel or did I mess this up too? [01:24] tomreyn, did i see this not before, 2 tsl versions and connection problems [01:25] JackLewis: you're right. [01:25] YAY! thanks tomryn [01:26] hi JackLewis, you sufferfrom connection issues ? [01:27] so idk what can it be tbh [01:27] holli: since fxp, and ftp itself, are mostly considered legacy protocols nowadays, have you considered alternatives? [01:27] i think fxp was never really specified, was it? [01:28] I actually haven't but I would like to point out that FTP works perfectly [01:28] FTP locally of my server using filezilla or any similar client ad lftpd works fine [01:28] encryption and integrity are of no relevance there? [01:28] but FXP specifically wouldn't, but I'm sure my cfg are fine since I've been using the same for 2-3 years ago and never had an issue [01:29] yes, the are a must, you need to enforce ssl encryption in some servers [01:29] using proftpd and having the correct settings for the other server, makes FXP works but only if it has TLS1.2 [01:30] while 2-3 days vsftpd just worked for everything, and on a similar ubuntu 18.04, vsftpd still works [01:30] I'm sure something isn't right in my server, but can't figure it out tbh [01:30] why don't you use sftp or bittorrent instead? [01:30] or just https [01:32] I guess they dont' support those protocols [01:32] can ipv6 cause any issue like that ? [01:32] they would replace those protocols [01:33] ipv6 might be an issue if you use hostnames resolving to ipv4 + ipv6 and some of these protocols can't handle it [01:34] it's roughly 15 years ago that i last used fxp, and i remember it was always sketchy, also because of ftp and its active / passive configurations, high ports and need for firewall support [01:34] true that [01:34] how about updating to openssl 1.1.1 ? [01:35] mine is on : Installed: 1.1.0g-2ubuntu4.3 [01:35] Candidate: 1.1.0g-2ubuntu4.3 [01:35] Version table: [01:35] *** 1.1.0g-2ubuntu4.3 500 [01:35] ugh sorry again. [01:43] which ubuntu version are you using? [01:44] normally you'll only have one version available / supported. you could, of course, rebuild some software, linking against a different tls library, but that is then rather out of scope for this channel. [01:45] also, unless you need TLSv1.3, the openssl version is probably not an issue. [01:46] ty tomreyn [01:46] then probably not and I'm on [01:47] Ubuntu 18.04.1 LTS [01:47] Bionic [01:48] !info libssl-dev bionic [01:48] libssl-dev (source: openssl): Secure Sockets Layer toolkit - development files. In component main, is optional. Version 1.1.0g-2ubuntu4.3 (bionic), package size 1357 kB, installed size 5772 kB [01:49] i think there is work underway for a stable release upgrade of openssl/libssl in bionic so as to support TLSv1.3 there [01:50] actually this is present in 1.1, so this was already updated [01:51] sorry I keep popping in and out guys, I'm just setting this up so I just type one command and I join. Please Ignore the message saying that I joined and left [01:51] thanks [01:52] i see something which I'm not sure if it's normal or not [01:52] ii libssl-dev:amd64 1.1.1a-2+ubuntu16.04.1+deb.sury.org+1 [01:52] it shows ubuntu16.04 even though I'm on 18.04 [01:52] guys, I'm having a lot of trouble installing python 2.7.14 in ubuntu within a dockerfile [01:53] anyone have experience with docker? [01:57] try 2.7.15, for bionic and up https://packages.ubuntu.com/search?keywords=python2.7 [02:02] thanks OerHeks, how would that look in a dockerfile? [02:03] rai, that, i don't know [02:03] i assumed your issue is the version [02:07] nope, my issue is making or installing a specific version of ubuntu that isn't available aon apt [02:10] Hi all. I've attempted to setup a system with an encypted root volume. I've clearly gotten something wrong, as I'm just getting the grub prompt rather than a menu of boot options or a prompt for a passphrase. /etc/default/grub looked good to me prior to running update-grub. What clues can I get via the grub prompt, and how do I go about getting them? [02:12] From what gets printed with 'set', I don't see the kernel command-line args that were in GRUB_CMDLINE_LINUX from /etc/default/grub [02:20] oceanquake: are you at the grub prompts or in initramfs? [02:21] ah you said grub [02:21] tomreyn: Hi again. At the grub prompt. initramfs never comes up. [02:23] tomreyn: I should have said that /boot is also on the root volume. So there is no unencrypted /boot. Do I need to adjust GRUB_PRELOAD_MODULES in /etc/default/grub ? [02:23] can you discuss how you installed (which installer you used) and how you set up block device layers (from bottom to top: hdds, gpt, partitions, raid-1, dmcrypt-luks, lvm, /boot + /) [02:26] with / encrypted, you will need to have (exactly) "GRUB_ENABLE_CRYPTODISK=y" in /etc/default/grub and, if uefi booting, you need to use the non-signed grub-efi [02:27] GRUB_PRELOAD_MODULES may be needed if you're BIOS booting, not sure [02:29] tomreyn: Yes. Whole disk is dedicated to Linux, all GPT. I have a 100 MB EFISP FAT32 partition, rest is dedicated to LVM. All my Linux filesystems are on luks volumes which are on top of LVM (as opposed to more common case of whole partition being dedicated to luks, then carved up into multiple LVM logical vols). /boot is on encrypted root fs. [02:29] System is UEFI, not BIOS. [02:31] So I have multiple luks volumes, one per LVM vol [02:33] Going to check the GRUB_ENABLE_CRYPTODISK option, booting to livedvd now . [02:41] oceanquake: also double check the correct grub variant [02:42] oceanquake: also /etc/crypttab and /etc/fstab [02:42] make sure all uuids match what blkid reports [02:42] and that uuids are used wherever possible [02:43] you didn't say how you installed / hwich installer you used, but based on the 100 MB ESP i assume you at least partitioned yourself. [02:44] tomreyn: I manually partitioned everything. Original installation was via KDE neon livedvd based on Ubuntu 18.04 . [02:44] I assumed it did the right thing with respect to grub variant, though not certain how to check? [02:44] normally ESP should be 250 MB minimum, not because you need this space but because there are UEFI implementations which fail to detect it otherwise [02:45] but this is not an issu on your system, grub gets loaded [02:45] dpkg -l grub\* [02:46] Understood, since I will never (willingly anyway) install windows to the "bare metal" disk, I didn't figure it would be a problem. *parted shows about 6 MB used on the ESP vol. [02:46] you should have grub-efi-amd64(-bin) installed, not grub-efi-amd64-signed [02:47] ignore the ESP remark, i just wanted to make you aware this could be an issue on a different system [02:47] OK, so I see there is not GRUB_ENABLE_CRYPTODISK option in /etc/default/grub ; totally follow you on the ESP point. [02:48] /s/not/no/ [02:49] without this option, grub wont be able to boot off encrypted /boot [02:50] OK, let me try fixing that first [02:51] you'll need to update-grub and grub.install afterwards [02:51] *grub-install [02:51] how do I get the manual proxy settings back in 18.04.1 budgie? Right now there's only none and Automatic as options [02:51] guys I'm getting this error and I'm not sure why: https://paste.ee/p/WfO9x [02:51] so I've just been running update-grub; where does the grub.install step come in? [02:52] now [02:53] it needs to ensure the grub stage 1 on ESP has the cryptomount executable available [02:53] this is what the grub-install does [02:54] ugh, awkward. The network connections applet is not the way to go about enabling it apparently. Settings -> Network -> Network Proxy [02:54] so first run update-grub, then grub-install ? [02:54] raj: run "apt update" beforehand [02:55] oceanquake: yes, that's the common approach [02:56] thank you tomreyn [02:56] worked [02:56] oceanquake: provide the device contianing the ESP as first argument to grub.install. it's basicall yignored, but i think this is mandatory. [02:56] raj: you'Re welcome, keep in mind these two belong together. [02:58] raj: you dont's always have to apt update, but if apt install / full-upgrade / dist-upgrade reports errors or warnings, be sure to run apt update [02:58] i'd run apt update on a daily basis, or i changed apt sources or preferences [03:02] JohnDoe2: i'd like to help but don't have budgie here. you can set a http proxy in /etc/environment, though [03:03] appreciate it [03:05] tomreyn: from the chroot, even after "mount -t efivarfs efivarfs /sys/firmware/efi/efivars" running grub-install gives "cannot find EFI directory" [03:05] hi all-having an issue when i plug in any usb storage-i end up with two identical mounts on the desktop and in gui of nautalis-am on 18.04 ubuntu any ideas how to fix the issue people, please help me [03:06] oceanquake: which argument do you pass to grub-install ? [03:07] oceanquake: actually scratch this, none is needed [03:07] oceanquake: efivarfs is not the esp [03:07] https://imgur.com/a/sdifu0r as you can see it has mounted the usb drive named diskimg twice and they are both the same disk [03:07] you need to mount the esp [03:07] OK, what should the esp mount target be? [03:07] /boot/efi [03:10] i have a VM here which uefi boots off encrypted /boot and / (on top of several layers), mount | grep -i efi reports this: http://termbin.com/xqnc [03:10] tomreyn: OK, that seemed to work (gave "file descriptor 4... leaked" messages,. but those seem non-fatal). Other than rebooting, can I sanity-check? [03:10] yes those are non fatal [03:11] i don't actually know how to review the grub stage 1, it's probably just an archive of some sort [03:12] other than that, i already suggested to review all UUIDs in all relevant configuration files, so i assume you already did this [03:13] Ok, so other thing you mentioned is signed vs. unsigned. It looks like what is installed is signed. Why is that a problem, if it's what the distribution installs by default? And sorry, yes, I checked and am comfortable with crypttab and fstab [03:14] If I had a problem there though, I assume I'd at least see initrd output, and I'm not even getting there. [03:14] nojimon: post the url treturned by: mount | nc termbin.com 9999 [03:16] oceanquake: because of bug 1565950 [03:16] bug 1565950 in grub2 (Ubuntu) "Grub 2 fails to boot a kernel on a luks encrypted volume with Secure Boot enabled" [Medium,Confirmed] https://launchpad.net/bugs/1565950 [03:17] see also bug 1762988 [03:17] bug 1762988 in ubiquity (Ubuntu) "Bootloader installation fails on UEFI systems with FDE (incl. /boot)" [Undecided,Confirmed] https://launchpad.net/bugs/1762988 [03:17] it'S not limited to enabled secure boot [03:20] oceanquake: if you want to secure boot (the only reason you'd need grub signed anyways) you will need to create a certificate and import it into the eufi moklist [03:20] s/eufi/UEFI/ [03:21] So both grub-efi-amd64-bin and grub-efi-amd64-signed are installed... [03:21] yeah thats wrong [03:22] it wouldnt be wrong if grub-efi-amd64-signed wasnt missing cryptomount [03:24] hmm, so which version is getting placed on the ESP when I invoke grub-update or grub-install? should I just uninstall the -signed version and re-run those? [03:25] you should have grub-efi-amd64(-bin) installed, not grub-efi-amd64-signed [03:25] maybe i should have written: you should have grub-efi-amd64 and grub-efi-amd64-bin installed but not grub-efi-amd64-signed [03:26] -bin is a dependency of grub-efi-amd64 do i put this into parenthesis [03:26] s/ do / so / [03:27] tomreyn: OK, I uninstalled -signed and just re-ran update-grub as well as grub-install. [03:27] oceanquake: do you have grub-efi-amd64 installed, though? [03:31] mount | nc termbin.com 9999 [03:31] im not sure if i did it right i pasted into terminal-was that what you needed me to do [03:31] nojimon: you need to paste this to a terminal window [03:32] nojimon: what you did was to paste it into chat [03:32] tomreyn: OK, just did that. Sorry, I'm being a bit monkey-see, monkey-do about this because all the EFI/grub2/signed stuff is not something I completely understand. [03:32] https://termbin.com/2h4d [03:32] above is the output returned- [03:33] oceanquake: it's a bit complex, and quitte different from bios booting [03:33] yeah, definitely seems that way. I'm more comfortable with BIOS and LILO, tbh [03:35] tomreyn, thank you for your help [03:35] uefi + gpt booting is not actually bad once you get used to it. it's still way too much complexity for a process which should be very dumb, but it's not worse than bios + mbr, rather a little better, and most of all different. [03:36] nojimon: i didn't do much, yet ;-) so we see you have /dev/sdb1 - this will be your usb stick, mounted in two places: /media/usb0 and /media/non/DISK_IMG [03:37] i know but i appreciate your reply and help-why do you think its mounting twice [03:38] nojimon: can you run: cat /etc/fstab | nc termbin.com 9999; udisksctl status | nc termbin.com 9999 [03:38] i'm not sure, yet [03:40] got two lines of output https://termbin.com/7pge https://termbin.com/fhs0 [03:42] nojimon: thanks, now: gio mount -l | nc termbin.com 9999 [03:43] tomreyn: OK, I guess nothing left to do but unmount everything get out of livedvd and try to boot off disk? [03:45] oceanquake: since you only replaced the grub package now, i'd update-grub and grub-install again, but other than that i would think so, yes [03:45] tomreyn: yes, did those steps. OK, here we go... [03:46] https://termbin.com/deit [03:47] nojimon: did you say that both mounts appear at the same time, fully automatically, when you insert the sd card? [03:48] yes [03:48] can anyone tell me /link how to install a program from an archive if extracting and ./configure doesnt work? [03:48] sorry hang on i need to check something [03:49] AWest21: this is something not available via the package system? [03:49] AWest21: and what do you mean by ./configure doesn't work? [03:50] nojimon: i'm not sure this will actually work or improve it, but you can try: gio mount -u file:///media/non/DISK_IMG [03:50] nojimon: i'm afraid i don't exactly know how this stuff works either [03:50] sudo apt-get install package-name didnt work oceanquake and I got a few different errors when I tried using ./configure, i'm not real familiar with compiling [03:52] AWest21: "doesn't work" is the least useful way to describe an error. [03:52] do you have more details? [03:52] AWest21: do you know if it's a program that is in fact available via the package system? [03:53] oceanquake: did it boot fine this time? [03:54] tomreyn: so I get a textmode boot menu (I guess generated by the onboard EFI) that doesn't bring me to the grub prompt. [03:54] it lists the various bootable devices [03:55] oceanquake, how do I check the package system? it doesnt show up with sudo apt-get or the software center [03:55] oceanquake: is secure boot switched on? [03:55] AWest21: apt update; apt search [03:56] AWest21: there is synaptic as a GUI if you prefer this. [03:57] didnt work dude https://imgur.com/a/8nXWwSq [03:58] nojimon: gio mount -u /media/non/DISK_IMG [04:00] tomreyn that didnt work. im just trying to install a gnome extension and they are all in .zips that cant be compiled via ./configure i guess [04:01] tomreyn, gio: file:///media/non/DISK_IMG: Containing mount for file /media/non/DISK_IMG not found [04:01] tomreyn: you called it. Once I turned secure boot on, it went forward [04:02] tomreyn, https://imgur.com/a/U5l9Vq4 [04:03] tomreyn, just unpluged the usb and re plugged in [04:03] nojimon: oops now you have 3 mounts! [04:03] tomreyn, yup [04:03] nojimon: okay, try this: sudo apt purge usbmount [04:03] then unomunt all, then re-plug [04:04] tomreyn: there is still some debugging to do; it seems like GRUB prompts for the passphrase, but then I get prompted again for the passphrase for the cryptroot [04:04] oceanquake: you had to turn secure boot ON to make the boot work? [04:04] tomreyn, https://imgur.com/a/aBa8Zvi [04:04] oceanquake: i assume you had to turn it OFF, right? [04:05] tomreyn: sorry, wrong polarity in my comment [04:05] tomreyn: you are right [04:05] oceanquake: ok ;) [04:05] Hm, now I just get dumped to initramfs prompt [04:06] but this is progress! [04:06] https://imgur.com/a/patKXm4 [04:06] tomreyn is there a gui to install gnome-extensions from since im a noob? [04:06] oceanquake: once you solved the initramfs issue, you can try this to save one password prompt: create the dir /etc/luks/ and put keys there as .keyfile, add those to /etc/crypttab, and then MOST IMPORTANTLY, add KEYFILE_PATTTERN="/etc/luks/*.keyfile" to /etc/cryptsetup-initramfs/conf-hook, set those files chmod 0400 and the directory 0500, and add UMASK=0077 to /etc/initramfs-tools/initramfs.con [04:06] tomreyn: you really kick ass. thanks for the thoughtful help. [04:08] oceanquake: i copy + pasted this from TJ (not currently here), a(nother) regular here who gave me this hint [04:09] AWest21: gnome extensions are sketchy. i would be very careful about them. if you have to go so far as to package them yourself then this is definitely further than i'd be willing to go. [04:10] AWest21: you can manage gnome extensions from your webbrowser: https://extensions.gnome.org i think [04:11] tomreyn i'm just trying to get cast-to-tv so I can cast to my chromecast. I heard this app is better then vlc or mkchromecast https://extensions.gnome.org/extension/1544/cast-to-tv/ [04:11] but think about what it means to install some random non vetted snippets from the web into your desktop. [04:11] nojimon: did unomunting and replugging work thoughß [04:11] ? [04:12] tomreyn, still mounting additional drives now i hav four [04:13] nojimon: can you not unmount and remove them? [04:13] try right-clicking the mount option after unomunting it [04:14] AWest21: Joey has a how to: https://www.omgubuntu.co.uk/2019/01/chromecast-tv-gnome-shell-extension?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+d0od+%28OMG%21+Ubuntu%21%29 . [04:15] thats where i found out about it bashing-om but his directions must be out-dated? his say go to the link I gave and slide the toggle to activate an installer but I only get an option to download a .zip that I cannot extract and compile [04:16] Swant: Ouch ... Sorry end of my knowledge as I do not run Gnome. [04:17] AWest21: then you dont have the firefox extension installed [04:17] visit https://extensions.gnome.org/ with firefox [04:18] no cant unmount and running apt purge nt clearing out additional old ones [04:18] read the warning about installing the extension. consider the risks and if you feel fine with it then do it. then visit https://extensions.gnome.org/extension/1544/cast-to-tv/ again and flip the switch again [04:18] AWest21: ^ [04:19] nojimon: "apt purge nt"? [04:19] nojimon: what happens when you click on the "umount" icon next to one of the mounts on nautilus? [04:21] Hi, I have defined a udev rule which fires upon plugging a USB mouse in. Problem is, at the time the rule fires, the mouse is not ready (it takes about 5-10 seconds before device is ready) any ideas to fix this? [04:22] sleep, or find out how to detect that it is ready, and check for it. [04:22] tried sleep. it doesn't work because it blocks the whole process [04:24] i.e. if the mouse normally takes 8 seconds before its available and I put a "sleep 30" in the script. it now just takes 38 seconds before the hardware is ready [04:26] 8 seconds for device initalization is pretty long already, could it be a hardware issue? [04:27] well its 8 seconds for everything, from hardware to udev to X itself - so I don't see that as indicative of a hardware issue [04:27] also, I have a usb keyboard , and that also takes about the same time before the keys start working [04:28] Bashing-om, tomreyn its installed now saying i can launch it from the "status menu"???? [04:28] agio: hmm thats definitely longer than what i'd expect to see. have a look at dmesg, maybe it gives away some more clues. [04:29] AWest21: i'm not sure which one that is [04:31] AWest21: actually the screenshot on the extensions' README explains [04:31] tomreyn: looking at dmesg (or Xorg logs) does show the event, but nothing I can use. I think I'm just going to define a systemd service and timer which calls xinput every minute - its going to flood syslog - but its the only thing I can think of [04:31] AWest21: it's the menu which includes the power icon [04:32] agio: i can't really suggest anything there, lack understanding. [04:33] * tomreyn afk for a while [04:34] Im facing error while compiling from git [04:35] Mostly on qt themes [04:35] and they're compiling perfectly without errors on any other distro [04:35] Um using kubuntu atm [04:36] facing errors when using "make" [04:36] for example when compiling https://github.com/alex47/BreezeBlurred [04:36] sweet tomreyn found it. second and last question is there an easy way to configure 18.10 to have a verbose boot up vs a purple screen? [04:37] Im getting these errors on sudo make install [04:37] ntoNothingness  ~/BreezeBlurred/build   master  sudo make install [04:37] [ 4%] Automatic MOC for target breezeblurred [04:37] [ 4%] Built target breezeblurred_autogen [04:37] [ 9%] Building CXX object CMakeFiles/breezeblurred.dir/breezebutton.cpp.o [04:37] In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QColor:1, [04:37] !paste [04:37] For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [04:38] ^~~~~~~~~ [04:38] iswctype [04:38] make[2]: *** [CMakeFiles/breezeblurred.dir/build.make:87: CMakeFiles/breezeblurred.dir/breezebutton.cpp.o] Error 1 [04:38] make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/breezeblurred.dir/all] Error 2 [04:38] make: *** [Makefile:130: all] Error 2 [04:38] and you might want to reask in #kubuntu [04:38] Okay sory [04:38] oh no, no paste like that, the servers go bonkers [04:38] https://paste.ubuntu.com/p/rf6QjDBjTT/ [04:39] Heres the pastebin [04:41] They're getting compiled properly on manjaro or any other distro [04:44] tons of issues indeed, not exactly written for kubuntu .. contact the author ? https://store.kde.org/p/1221562 [04:44] see the comments :-( [04:47] the comments do say it works well with ubuntu and kde neon [04:47] and people have said it is working for them on kde neon [04:49] Anyone around that might be able to help answer a question about why a bcache backed LVM on Luks device isn't expanding? [04:59] anyone know how to make 18.10 do a verbose boot up instead of purple screen? [05:00] tomreyn: had to step afk for a bit; my gratitude wasn't directed to the key hit specifically (I am actually doing something like that already), but rather an appreciation for the level of help you are providing overall. [05:00] /s/hit/hint/ [05:09] Is there any way to install ubuntu using a 4g modem? [05:11] I'm having some memory issues. My system monitor reports 92% usage of ram, but from the avg I can sum from top I estimate it way lower. I installed smem to double check and it reports 21% as unused memory and 11% as other. 21% is obviously more than 8 reported from system monitor/top. Any idea of what might be going on? 16gb + 2 swap . Not so many stuff running to justify that. [05:14] MadLamb: https://www.linuxatemyram.com/ [05:16] energizer, interesting but i dont think its the case [05:17] energizer, free -m also reports low "available" memory and I'm actualty looking at this because i was getting the almost full memory freeze [05:17] energizer, swap is completely full [05:30] AWest21, I don't see an answer to you, but hit (for edit) at grub, go to linux (kernel) line and remove the "nosplash quiet" line I think is what you are after.. [05:56] guiverc so just commet out "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash""?? [05:57] AWest21: yes, and update-grub [05:58] AWest21: this is if you want it changed permanently, not just for a single boot [05:58] sorry AWest21, I only saw your last line (not history) so I assumed question was a once-off how to boot [05:59] no i want a permanent verbose boot [05:59] thanks tomreyn [05:59] AWest21: so edit it in /etc/default/grub [06:00] raj: you're welcome [06:01] how come gksu gedit /etc/default/grub doesnt work in 18.10 tomreyn? [06:01] AWest21: i dont know, does it say? [06:02] tomreyn command not found [06:02] AWest21: you can run a terminal and do: sudoedit /etc/default/grub [06:06] tomreyn, ok how do i save in sudoedit? [06:07] AWest21: depends on your editor, is there something like a menu bar on the bottom? [06:08] AWest21: if it looks like this, you hit Ctrl-x: https://i.imgur.com/2hjy4UJ.png [06:10] tomreyn, ugh ok i didnt know it would offer to save after an exit prompt, now its trying to save it as a temp file how do I get it to save the original? -_- [06:11] AWest21: save it as this temporary file, the sudoedit command will make sure it goes to the right file [06:14] -_- [06:20] On bionic the language extra packages only suggest when clicking 'manage installed languages' i think thats not very handy for new users those package are proposed so deep, should i make this a wishlist or is this 'normal 'procedure? https://imgur.com/a/oTcFR7M [06:43] Something really weird has happened... one of my disks was at 99% so I started moving a big directory of random stuff from one disk to another using mv * /files/stuff/ and after I cleared about 100GB I just ctrl+c to stop the move. Upon doing that some of my web services stopped working (refused connection to host -- even though they are running on the server) and my torrent client wont download anything saying permission denied [06:44] teamcoltra: your ubuntu version please? [06:44] Yeah one sec [06:45] 16.04 [06:46] desktop or server? [06:46] desktop edition (but used headless currently) [06:47] teamcoltra: i would suggest deep cleaning system with bleachbit, see where all the leftovers are and reboot after [06:47] teamcoltra: system up to date also? [06:48] lotuspsychje, yeah that was my first step was to make sure I was up-to-date and restart [06:50] teamcoltra: maybe your data move made everything full, system flipping [06:52] lotuspsychje, I still have 42GB left on the one drive and 176G on the one that was full that I moved things from https://hastebin.com/mafedepiha [06:52] (hastebin -> df -h results) [06:55] 99% doesnt look good teamcoltra [06:57] lotuspsychje, I can clean it up but I'm not sure that is my problem as my file drive doesn't have much bearing on any of this... transmission is in my / directory /dev/sda1 19G 15G 2.3G 87% / [06:57] and it's trying to write to my /home directory [06:57] 工业设计院有限公司是专业人才现在比较多企业文化产业之一 [07:02] !zh | comet23 [07:02] comet23: 如欲獲得中文的協助,請輸入 /join #ubuntu-cn 或 /join #ubuntu-tw [07:03] 不过我是你不懂为什么这么不开心我还是喜欢这个哦 [07:11] teamcoltra: full dirs can lead to all sorts of weird behaviours [07:12] teamcoltra: if a cleanup and reboot didnt fix, we can investigate more/deeper [07:16] I have cleaned all my temporary files, and also just deleted a whole bunch of random files that I wasn't overly attached to. https://hastebin.com/jakexadofo [07:16] still having problems :\ [07:16] did you reboot teamcoltra [07:16] Yep [07:17] teamcoltra: ok whats having problems? [07:19] so SABnzbd starts up but "doesn't" at the same time, like I'm looking at the logs and it shows it's listening on port 8080 but trying to connect to it says connection refused. Transmission does start up and I can access it on 9091 but I can't save files as it says "permission denied" [07:23] teamcoltra: connection problem? [07:24] teamcoltra: try restart networking perhaps [07:24] I just saw this in my SABnzb log which might be useful? 2019-01-12 23:23:24,639::INFO::[postproc:187] Completed Download Folder /home/teamcoltra/Downloads/complete is not on FAT [07:25] lotuspsychje, no because I have a bunch of web services that are all running fine, I did also restart my modem just to test that too [07:28] maybe try a tail -f /var/log/syslog and start both sabnzbd and transmission, maybe it spits out usefull errors? [07:32] my bluetooth stopped working. when i click on the bluetooth icon, under the "recent connections" my headset is grayed-out. when i click on adapters, i get an empty window with just a close button. hardware failure? [07:34] lotuspsychje, nothing useful came up the same basic types of logs that are in the log files. I tried adding a torrent again and the permission error remained [07:34] Transmission did crash after which is at least new it hasn't been having any troubles https://hastebin.com/uvewoqoxis.js [07:35] the logs are showing sabnzbd doing it's background work just fine though as though it's running [07:35] I even tried wgetting localhost:8080 just to see if maybe it was some network issue but it also refused [07:36] Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused. [07:44] teamcoltra: what does: sudo service network-manager restart ? [07:46] I'll have to find out in the morning, thanks for your help. [07:46] hope it helps [07:50] plz [07:50] bluetooth ubuntu [07:50] alternatively, fastest way to drink Steel Reserve [08:09] hiya. Just installed kubuntu 18.04. X is on virtual terminal 1 (ctrl+alt+f1), and now I don't seem to have the ability to have two sessions on at the same time. Previously these were on f7 ad f8. Is there a fix for this? [08:27] Hi [08:28] I installed Ubuntu-Mate 16 LTS on Vmware workstation 14. Then installed open-vm-tools. But pasting into the VM doesn't work [08:29] JadedJ: sounds like a vmware workstation issue. [08:29] !yy.mm | JadedJ [08:29] JadedJ: yy.mm is Ubuntu version numbers are: YY.MM (YY=release year,MM=release month). Each year sees two releases, so just specifying YY is imprecise. See also https://www.ubuntu.com/about/release-cycle [08:30] Ubuntu MATE 16.04.5 [08:31] new factoid? I love it. [09:11] Sometimes my ssh connection from my desktop to my laptop suddently hangs for 10s or so. I wonder how to debug this. Any ideas? [09:30] no_gravity: are you using Ubuntu or Debian? [09:30] One machine is Ubuntu, the other one Debian. [09:40] no_gravity: you can run both sshd (server) and ssh (client) with increased log verbosity [10:12] how do i fix my ubuntu? [10:12] can i just reinstall the latest version on top of it? [10:12] will i lose any data? [10:13] I am on ubuntu 18.04 and its failing to upgrade [10:14] CoolerZ: if you don't have backups (why?!) and your /home directory is not a separate file system listed on 'df -h' then yes, you will loose your data [10:14] otherwise, just maybe, if things go wrong [10:15] CoolerZ: what are you trying to upgrade 18.04 to? 18.10 then? [10:19] 18.10 is the latest [10:19] but i can't upgrade to it [10:19] sudo apt dist-upgrade fails with Connection failed [ip.address] [10:19] multiple times [10:22] Just installed a fresh KDE Neon...i added a global menu widget which works, but after every reboot the widget does not show a global menu for every programm that got restored from the last kde session until i close and reopen this programm...has someone a fix for this? === mwsb is now known as _mwsb333_ === _mwsb333_ is now known as mwsb === Butterfly^ is now known as Guest37424 [10:46] what exactly grant the user temporary access to sound devices via ACL on console/desktop switch?? [10:47] I found switching of virtual consoles triggers that too, that's beyond logind and udev?? [10:49] i think there's upgrade path only from LTS to LTS CoolerY but don't hold my word for it [11:09] CoolerY: are you in a special / restricted network environment then? [11:09] like a public wireless lan, university or company network? [11:13] looks like you're on a mobile network now and used to be in a university network previously [11:16] tomreyn, yeah university [11:17] i switched to mobile to check if that works [11:17] seems to have worked [11:17] however, VERSION="18.04.1 LTS (Bionic Beaver)" [11:17] CoolerY: so the university network has restrictions, i guess [11:17] check kernel version [11:17] why didn't sudo apt dist-upgrade go to 18.10 ? [11:18] 18.10 is on 4.18 [11:18] sudo apt dist-upgrade doesn't dist upgrade [11:18] maybe it upgraded everything but version name [11:18] that's a misunderstanding, and bad naming [11:18] i can't understand what you are trying to say [11:19] 18.10 is the latest ubuntu right? [11:19] CoolerY: use update-manager -c [11:19] well, technically. 19.04 has daily builds afaik [11:19] yes 18.10 is the latest ubuntu release [11:19] it says partial upgrade [11:20] CoolerY: do it, and then run it again [11:20] and i remember someone saying not to do that [11:20] because if i'm right you are with LTS release. Maybe it's configured to make upgrades between LTS releases [11:20] CoolerY: you didn't you sources.list to point to 18.10, right? [11:21] Look at Software sources [11:21] here's how you upgrade https://tutorials.ubuntu.com/tutorial/tutorial-upgrading-ubuntu-desktop#0 [11:21] Update section [11:21] yeah, that's what i said. i think there's upgrade path only between LTS releases [11:23] 18.10 isn't LTS? [11:23] !lts | CoolerY: no [11:23] CoolerY: no: LTS means Long Term Support. LTS versions are supported for 5 years on the desktop and server. The latest LTS version of Ubuntu is !Bionic (Bionic Beaver 18.04). Ubuntu !flavors may have different support durations, check their release notes for information. [11:24] the next LTS will be 20.04 [11:26] on the site it says 18.04.1 https://www.ubuntu.com/download/desktop [11:26] 18.10 is supported for 9 months, and most of those packages go to 19.04 [11:26] which is what i have [11:26] .04 is always LTS [11:26] ok then [11:26] thanks for the support [11:26] np [11:26] BurekzFinezt: not really, 19.04 wont be LTS [11:26] also how do i avoid the university blockage? [11:27] really? how come? [11:27] do i always have to go to mobile network to upgrade? [11:27] because 18.04 is 10 years LTS? [11:27] BurekzFinezt: LTS releases happen every 4 years [11:27] i mean every 2 [11:27] sorry [11:27] oh yeah tru, sorry. had a a brainfart there [11:27] There is an option at software sources that will allow to do upgrade to gegular release [11:28] https://wiki.ubuntu.com/Releases [11:28] CoolerY: you should talk to the university network folks to understand why you can't reach the ubuntu mirrors from there [11:29] i mean, you could always go for a cup of coffee and find some good internet in a cafe (if you're on laptop) :D [11:29] tomreyn, is it using ftp? [11:29] or https ? [11:29] or some custom protocol to pull the updates [11:30] CoolerY: i think the error message you posted earlier suggested it was using http [11:30] some protocols may be blocked [11:30] anyway thanks [11:30] blocking http entirely is unusual, but there are wireless networks where you need to login before you get full internet access [11:31] CoolerY: i'm sure it's not that the university don't want you to update or upgrade ubuntu there, it's probably just that you should use local mirror servers they provide, or you need to login somehow for full internet access. [11:31] oh they're gone [11:48] hi everybody, a question im planning to upgrade 14.04 lts to 18.04 lts, i was searching around the net to see how much disk space i need to have empty to not run in to problems, will ubuntu automaticly check for the diskspace needed and halt the upgrade before it has even started , or can i potentialy run in to disk space problems halve way ? i got currently 22GB free in home [11:50] Vuurdraak_: the updater won't start the upgrade if insufficient disk space is available [11:50] Vuurdraak_: the upgrader should check, and 22gb should be plenty [11:51] okay thanks :D [11:51] Vuurdraak_: you need free space in /, not in /home, though /home may be part of / [11:51] "df -h" tells [11:51] VoHiYo tomreyn [11:52] /dev/sda1 73G 57G 13G 82% / [11:53] ow i think i looked wrong [11:53] but the home & boot dir r on the same partition [11:54] with 13 gig free [11:54] i guess thats okay then [11:54] that's enough for 2 full installations ;) [11:54] okay :D [11:56] oops my script is greeting people sorry brb [11:57] fixed :D [12:27] I have a few sas arrays hooked up to a box running ubuntu 18 kernel 4.15.0-43-generic, It seems that /sys/class/enclosure is empty , any ideas? [12:27] MD1200's [12:27] Is omeone willign to help me with an KDE plasma related problem? [12:29] Howdy folks [12:31] kab0m: ask your problem, maybe BluesKaj can help :) [12:31] ducasse: :) ok [12:32] BluesKaj: Just installed a fresh KDE Neon...i added a global menu widget which works, but after every reboot the widget does not show a global menu for every programm that got restored from the last kde session until i close and reopen this programm...do you maybe know a fix for this? [12:33] !neon | kab0m please be aware of this [12:33] kab0m please be aware of this: KDE Neon ( http://neon.kde.org/ ) is a KDE project to package the latest stable and development versions of KDE software on top of an Ubuntu base. As it is not an official Ubuntu or Kubuntu project, please use #kde-neon for discussion and support. [12:35] kab0m, I run Kubuntu and the Kmenu is installed in the Panel by default .I have no idea why KDE-Neon wouldn't do the same [12:36] ducasse: *rolling-eyes* well...no one is answering at #kde #kubuntu and #kde-neon [12:36] BluesKaj: ohh, i meant the "global menu widget"...not the Kmenu :) [12:37] kab0m: maybe you'll get more responses on a weekday, weekends are quiet [12:40] kab0m, tried the globak menu widget and it seems buggy here, doesn't show anything [12:40] global [12:40] ducasse: i see...i tried so many times before with so many different questions and i almost NEVER got an answer at the kde channels...for hours and even days...the Linux community makes it really hard if you need fast answers and fixes...even if you would pay for them. this is so frustrating...i dont know where to ask anymore [12:40] BluesKaj: ohh, so its also broken at kubuntu? [12:40] yup [12:41] BluesKaj: ohh dang... thank you for trying it.this really helps me to know...so im lost until the kde guys fix it... [12:42] It feels like no kde DE is ever really complete...when someting is fixed, something is broken...this is frustrating as i just want something that works OOB :( [12:42] I really don't think many people use it, that could be why you aren't receiving any response [12:42] *no linux DE [12:43] BluesKaj: Well, then i will avoid it fos a while and hope it gets fixed. Its a shame as a global menu is a really nice feature *shrug* [12:45] kab0m,, have you seen this ? http://fasterland.net/activate-global-menu-kde-plasma-5-9.html [12:48] BluesKaj: yeah i saw this. and i have a new top panel with a global menu widget working...but my problem is...as soon as dolphin or konsole has more than one tab and i reboot the system the global menu does not show any entries for this applications until i kill them and open them up again [12:51] kab0m, ok then i suggest you file a bug [12:52] BluesKaj: ok, can you tell me where i can file one or maybe can look if maybe someone alse has already filed a bug? [12:53] kab0m: you can check launchpad.net if a bug is filed for kubuntu, but you can't file one there as you're not running ubuntu [12:53] !bug | kab0m [12:53] kab0m: If you find a bug in Ubuntu or any of its derivatives, please report it using the command « ubuntu-bug » - See https://help.ubuntu.com/community/ReportingBugs for other ways to report bugs. [12:55] kab0m, check the 3kubuntu chat for kde apps [12:56] #kubuntu [12:56] kab0m: If you find a bug in Kubuntu, please follow the instructions at https://wiki.kubuntu.org/Kubuntu/Bugs/Reporting to report the issue to the developers. === mkv is now known as m4v [12:58] hmm , crossposting all over freenode [13:03] thank you BluesKaj i will try the kde bugtracker ;) [13:03] ok [13:17] I'm trying to run 'googleplaydownloader' and I get: /bin/sh: 1: dummydroid: Exec format error [13:17] Anyone knows how to fix this? [13:17] output of file googleplaydownloader? [13:18] aaa801, yes. [13:18] Sigh. [13:19] hexhaxtron: What does line 1 of googleplaydownloader say? [13:21] jeremy31, #!/usr/bin/env sh [13:21] hexhaxtron: is googleplaydownloader a py file? [13:22] jeremy31, the Bash script only has two lines. The 2nd line says: exec python2 "/usr/lib/python2.7/dist-packages/googleplaydownloader/googleplaydownloader.py" [13:23] hexhaxtron: It might be an issue with line 1 of the py file [13:23] jeremy31, it says: #! /usr/bin/python2 [13:24] hexhaxtron: It might need to be python2.7 [13:25] jeremy31, same error. [13:29] hexhaxtron: where is googleplaydownloader from, and which release is this? [13:29] hexhaxtron: does this work in terminal> /usr/lib/python2.7/dist-packages/googleplaydownloader/googleplaydownloader.py [13:32] ducasse, I was doing this: https://itsfoss.com/download-apk-ubuntu/ [13:34] jeremy31, yes, but it was working before too. The problem is when I press the 'Generate' button. I get that Exec format error [13:35] hexhaxtron: you really need to get support from those who provide the app, as it's not in the repos it's not supported here [13:42] hello [13:42] i'm trying to use libpam auditd tty without any succes on ubuntu 18.04 LTS [13:42] each time it closes my ssh connection with an error in auth.log [13:46] !info gplaycli [13:46] gplaycli (source: gplaycli): Google Play downloader command line interface. In component universe, is optional. Version 0.2.10-1 (bionic), package size 54 kB, installed size 812 kB [13:47] hexhaxtron, ^ (without a gui ,i guess) [13:49] nobody ? :( [13:51] so wzup [13:55] Tux57: provide more info. configured how, what's the error [13:55] hum, fresh ubuntu 18.04 installation [13:56] installed auditd with apt then reboot to be sure [13:56] the service is running well [13:56] then i edited pam.d/sshd with session required pam_tty_audit.so disable=* enable=root [13:57] restart the service, and when i try a logon : pam_tty_audit(sshd:session): error setting current audit status: Invalid argument [13:58] you can run auditd -f to keep it in the foreground for debugging. [13:58] i read a lot of articles, some are speaking about interference with other pam module ... hard to find the one [14:02] let me check [14:03] ok so did it [14:03] i've a lot of lines x) [14:05] Tux57: be sure to read the Debian / Ubuntu specific documentation in /usr/share/doc/auditd/ [14:08] so README.Debian (if it exists) + NEWS.Debian (which does exist)+ [14:08] nothing special here ... [14:08] my auditd set of rule is working well [14:08] but not keystroke :/ [14:12] hmm, not sure, Tux57, i haven't tried it on 18.04, yet [14:12] maybe file a bug if you think it is one. "ubuntu-bug auditd" if you want to. [14:13] (requires a launchpad.net login) [14:14] i think it is similar to https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1666203 [14:14] Launchpad bug 1666203 in pam (Ubuntu) "pam_tty_audit failed in pam_open_session" [Undecided,Confirmed] [14:17] hmm another bug report in a sad state. [14:18] :/ [14:19] i'm going to compile libpam modules in git version [14:24] hello! I am trying to get pipelight but this happens https://textuploader.com/1amwo [14:25] im on ubuntu 18.04 [14:25] i want to get netflix running on chromium [14:25] Tux57: i pointed the security team to it, but since it's not actually a security issue i don't know if they can do anything about it. you may want to subscribe to the bug report, though. [14:26] ioria, I can't make it work... I get IndexError: list index out of range [14:27] ducasse, gplaycli is in the repositories. Can you help with it? [14:27] aldcor: take a look at the link that was shown in your terminal before you had to cionfirm adding the ppa. [14:28] aldcor: then click on the drop down box for "published in" and look for "bionic", the code name of ubuntu 18.04. [14:29] you won't find it, meaning this PPA doesn't support this ubuntu release. [14:29] hexhaxtron: i've never used it, but if you post full output in a pastebin maybe i or someone else can help [14:30] aldcor: this is the technical way to express this situation "E: The repository 'http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release' does not have a Release file." [14:30] aldcor, suggest you switch to chrome, netflix runs perfectly on it [14:32] or just use firefox [14:32] BluesKaj, not in my case. I am not sure why but runing with chrome videos are looking kind of stuttery/laggy .. hard to explain. Tried firefox - same issue. I want to try cromium [14:33] its like for a split second a frame is taken out and then put back [14:34] but not really.. its minor disturbance but its noticable and its annoying [14:35] so is there a way to install html5 or silverlight or moonlight for chromium [14:35] ? [14:37] aldcor, have you tried disabling hardware acceleration in chrome ? [14:41] BluesKaj, i have no idea what's that :) [14:42] aldcor, in chrome settings, near the bottom [14:43] of advanced [14:44] does anyone know which package is responsible for the unity dock? I need to file a small bug report [14:45] qid|ydl: you can just file against 'unity', the devs will move it if necessary [14:47] Hi folks. Somebody to help me please? [14:47] Can anyone tell me how to recover a folder/files. Some program or command? [14:47] The last days quite often stops electricity at home. [14:47] Folder may be have damage. Not deleted!!! Visible, but may be... [14:47] Filesystem Ext4, Ubutu 16.04 [14:48] BluesKaj, disabling hardware acceleration did not help [14:50] aldcor,did you refresh the browser? [14:50] yes [14:50] ok [14:50] i have another issue https://ibb.co/xfLFgGJ - musescroe icons are so small [14:51] i can barely see them and its practically impossible to work [14:54] Tux57: the bug report has just been through triage. Please see https://wiki.ubuntu.com/SponsorshipProcess and https://wiki.ubuntu.com/StableReleaseUpdates#Procedure if you can volunteer to get the fix landed. [15:11] hexhaxtron, the full error output please [15:47] Hey, I've just upgraded to 18.10. For some reason I can only start visual session with Wayland. [15:47] Is that normal? [15:48] no, xorg is now default so should also work Furai [15:48] I had issue at the beginning with black screen which I kind of fixed. [15:48] Furai: what kind of graphics driver and chipset do you have? [15:48] So, I have no idea why it's not working. [15:49] I have nvidia, I had custom installed graphic drivers but removed them since then and removed the nouveau blacklist. [15:49] Furai: custom? [15:49] As in downloaded directly from Nvidia website, using their installer. [15:49] Usually people go with ppa and so on. [15:50] Furai: we reccomend to install the nvidia drivers from the official repos, or ubuntu graphics ppa [15:50] !nvidia | Furai [15:50] Furai: For nvidia and matrox graphics cards, see https://help.ubuntu.com/community/VideoDriverHowto . For AMD/ATI graphics cards, see « /msg ubottu ati » and « /msg ubottu fglrxmissing » For the latest Nvidia drivers see https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa [15:51] Anyway, that's not a problem at hand. To my understanding I should just be able to start xorg session. [15:51] But it just loops. [15:51] Furai: it might be related to your driver [15:52] Anyway, will try resetting xorg.conf files [15:53] Furai: these days its not really needed anymore to tweak xorg, unless you have very specific reason [15:54] Which log files could help me with identifying the issue? [15:54] Furai: i would first go for the apt/ppa nvidia drivers [15:55] And if I'm stubborn and don't want to do that? It used to work without slightest issues since 16.04 or even earlier. [15:56] Anyway, right now I'm in graphical session but in wayland. [15:56] Which as far as I know still uses xorg wrapper? [15:56] Furai: try /var/log/Xorg.0.log, but it sounds like a driver issue [15:56] Furai: its your system, perhaps also other volunteers might have ideas for you [16:00] Ok, thanks for the help. [16:24] Why can't I make snapshots? http://0x0.st/s7dB.txt [16:28] I execute, sudo btrfs subvolume snapshot /@snap1 and it shows invalid syntax [16:28] http://0x0.st/s7dB.txt [16:34] heigh hough === fr0xk is now known as ini1 === ini1 is now known as init1 [16:35] say, if I can't get anyone in #freecad to talk, can I ask some questions inhere? I thihnk nmy problems are ubuntu based [16:36] curlyears: you can try, what makes you think they are ubuntu-related? [16:43] ducasse: well. When I download the ubuntu zpecific package, and things don't work, I am assuning that the package doesn't work ocrrectly under ubunto [16:44] there's some for of problem with gtk stuff [16:48] damnit. I can't get a pastebinit working. The "freecad" cpmmand comes back with an error code, then just hangs. If I terminate it with a ctrl-C, pastebinit doesn't generate a URL for the upload. DAMN [16:49] curlyears: problem is that we can't really support packages obtained from outside the ubuntu repos. check that the package is intended for your ubuntu release, though. [16:57] curlyears: use blender instead? [16:57] ducasse: it is an ubuntu package [16:58] lotus: A) I am trying to do 3D CAD, not "artwork" [16:58] Hi all, will upgrading from 16.04 to 18.04 cause me to loose all (non-default) installed sofwtare? I have /home in another partition [16:59] etronik: safe-wise its always prudent to make a backup [16:59] etronik: when you say non-default, you mean external ppa's? [16:59] lotuspsychje, yes [17:00] curlyears: you said you downloaded it - where from? [17:00] etronik: for lts upgrades its reccomended to purge/disable external ppa's 'before' you start upgrading [17:01] lotuspsychje, if I make a backup then try to restore (if I lost it) won't I run the risk of affecting the rest of the system ? [17:01] etronik: well the ppa part we cannot support here sorry [17:01] ducasse: if I unnderstand correctly, from Canonoical [17:02] -o [17:02] ah, ok [17:02] etronik: after you upgraded with vanilla sources/packages you are free again to do what you want/need [17:02] When I first installed it, IO was able to get it to run, once. Haven't been able to since [17:02] lotuspsychje, so basically he upgrade involves re-installing all other stuff from scratch each and every upgrade we do ? [17:03] etronik, ppas are generally not all that big [17:04] etronik: we always advice to use packages first from the official ubuntu repos, but in the real field users install software on their own manual or ppa based [17:04] etronik: not, if you upgrade, rather than fresh install. Fresh oinstall formats and resets you harddrive [17:05] etronik: to make an upgrade go flawless, its best not to have scrambled dependencies i hope you understand that part? [17:05] sort of ... [17:05] an nteresting tidbit: I tried to usse pastebinit to captutre the reponse to tryinh to run freecad, but it just hangds when I try redirectly the output to pastebinit [17:05] curlyears, i aware that what you're saying is in conflict (I think) to whhat lotuspsychje is saying ? :) [17:06] @curlyears, i aware that what you're saying is in conflict (I think) to whhat lotuspsychje is saying ? :) [17:06] etronik: Something else to be aware of. If you rely on software provided by a PPA, that PPA may not publish the software for the new release. In which case after a release-upgrade that software may no longer be available from the PPA. [17:07] I wouldn’t listen to curlyears if I were you, etronik [17:07] etronik: NO. What happens depends on whether you explicitly "upgrade" as opposed to simply "installing" the new version. With thr insdtall, you have to reinstall everything else separately. With an upgrade procedure, you don't have to [17:08] TJ thanks - I see but I don't use that exotic sofware anyway so I guess there's low risk of that [17:08] curlyears, if you cannot use pastebinit, just copy/paste the content on paste.ubuntu.com [17:08] etronik: feel free to share your sources.list, we can have a look for you [17:09] I am no expert, and CookieM is, generally correct. But there *IS* a difference between "reinstalling with a newer version" and "upgrading" to that newer version. (assuminh everything goes correctly, hence, the backup advice) [17:10] My machine was running and suddenly it wont pull ip from the router+switch anymore - static ip - any ideas on how to debug this? the light on the ethernet cord is blinking - ubuntu 16.04 [17:11] core7: did you try reboot pc and router/switch? [17:11] core7: check if the PC is sending DHCP requests, and if it is getting replies from the DHCP server. You might find log entries in /var/log/syslog [17:11] lotuspsychje: i did reboot the pc - not the router switch yet - [17:11] https://paste.ubuntu.com/p/rKZ3fJctr8/ [17:12] whats the code name for the 16.04 release ? is it xenial something ? [17:12] DHCPREQUEST of ...dhclient started [17:12] curlyears, FreeCAD 0.17 ? you installed from snap ? [17:12] core7: look at the diagram of the way it works on the right of "Operation" here https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol [17:13] ioria: snap? NO, so fdar as I know I installed using files and instructions on canonical's website\\ [17:13] TJ-: interval of 8 - seems its trying and not getting? [17:13] curlyears: url? [17:13] core7: if your PC is simply trying to renew an existing lease, then the process will likely start with a REQEST for the existing allocated IP address [17:13] dont see a DHCPACK on the syslog - I am not sure its logged [17:13] and yes, v 0.17 [17:14] curlyears, on bionic freecad is 0.16 [17:14] core7: so the DHCP server has gone bye-bye :) [17:14] iotus: of what? [17:14] !info freecad [17:14] freecad (source: freecad): Extensible Open Source CAx program. In component universe, is extra. Version 0.16.6712+dfsg1-1ubuntu2 (bionic), package size 20114 kB, installed size 96767 kB [17:14] curlyears: instructions of canonical url? [17:14] curlyears, paste apt-cache policy freecad [17:14] TJ-: first it tried REQUEST, then it tried DISCOVER [17:15] curlyears, and, for the record, the snap version is BETA [17:15] core7: OK, so the DHCP server on the gateway has likely failed, in which case restarting the service (or the entire gateway device) might be the solution [17:15] curlyears, and reported as 'borked' [17:17] TJ-: will try to reboot router - strange though. [17:17] curlyears, my idea is that you installed freecad from gnome-software and picked up the snap ver (not the official repo one) [17:17] core7: if it isn't that then you'd have to suspect the link between PC and gateway [17:17] https://paste.ubuntu.com/p/ympS8m458k/ [17:18] curlyears, ah, from ppa [17:18] ioria: anything is possible. I found the entire freecad installationm approach messy and difficult to understand [17:18] \I couldn't find any other way [17:19] curlyears, no snap, from ppa (and it should work).... [17:19] my linux skills are definitly shrunken from when I was "in the biz" [17:19] nom, snap? Not sure what uyou're telling me here. [17:20] s/nom/no/ [17:20] ioria: curlyears could it be running on a Wayland back-end ? [17:20] I have been retired for over 18 years, and I have lost much of my knowledge and skill [17:21] curlyears, but you're running an outdated version [17:21] curlyears, ^ TJ- are you on wayland ? [17:21] how would I know if I am on a Wayland backend? [17:21] curlyears, echo $XDG_SESSION_TYPE [17:21] ioria: where do I find a not-out-of-date version? [17:22] lotuspsychje, y ppa manager or Aptik ? [17:22] curlyears, look at your paste : Installed: 1:0.17.13541-1ppa3~ubuntu18.04.1 ; Candidate: 1:0.17.13541-1ppa10~ubuntu18.04.1 [17:22] !ppapurge | etronik [17:22] etronik: To disable a PPA from your sources and revert your packages back to default Ubuntu packages, install ppa-purge and use the command: « sudo ppa-purge ppa:/ » – For more information, see http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html [17:23] curlyears, echo $XDG_SESSION_TYPE ; <- this please [17:23] lotuspsychje, why would I purge if I also want to backup and later restore stuff outside the scope of the distribution ? [17:25] etronik: you can do what you like, its your system. i would advice to purge the ppa's before upgrade [17:25] lotuspsychje, I understand that part, but shouldn't I back them up before purging? I mean is it safe to restore PPA from the backup post-upgrade ? [17:26] etronik: i think you confuse data backup with ppa purge [17:27] etronik: before upgrading its wise to backup normal data from /home to external 'and' also purge external ppa's [17:27] tkeller@bigboy:~$ echo $G_SESSION_TYPE [17:27] tkeller@bigboy:so, I should begin again, strting with apt-get remove freecad right? [17:27] lotuspsychje, got it but... by purging ppa.... I basically need to re-install every external ppa one by one correct ? [17:27] etronik: yes [17:28] curlyears, nope; echo $XDG_SESSION_TYPE ; <- this please [17:28] lotuspsychje, so... wahy not back the external ppa as well ? hence my question of y ppa manager or aptik [17:28] Sooo, did anyone ever experience double error sound? (Most likely bell terminal.) [17:29] etronik: again, you can do whatever you like, but here in #ubuntu we cannot give you advice on external ppa's as we dont support them [17:29] etronik: we can only advice to keep your ubuntu system vanilla, with the reccomended sources [17:31] how do I know what to put in and ? [17:32] ioria: x11 [17:32] curlyears, ok, sudo apt update [17:33] \done [17:33] curlyears, uname -r [17:33] 4.15.0-43-generic [17:33] curlyears, sudo apt full-upgrade [17:35] it's taking its time [17:36] \by the way, hello iorisa, long time no see [17:36] ioria [17:36] curlyears, yep [17:39] still updating, or whatever [17:40] hello im getting this postfix error the postfix channel told me to come here cause tehre is something to do with ur packages [17:40] https://pastebin.com/LNNgmRYe [17:41] https://pastebin.com/akJDiKEC [17:42] i am trying to do this fix i guess https://askubuntu.com/questions/37156/how-to-restore-a-single-file-from-a-package [17:42] its the same error [17:42] https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1791403 [17:42] Launchpad bug 1791403 in postfix (Ubuntu) "postfix 3.3.0 unable to create missing queue directories" [Undecided,Expired] === Roey{- is now known as squibble === squibble is now known as Roey{- [17:53] finally, that "full-update" is done. Now what, ioria? [17:53] just apt-get installl freecad? [17:53] curlyears, run freecad [17:54] that seems to have gotten it started...THANK YOU., iroia!!! [17:54] ioria [17:54] curlyears, ok, good job [17:55] namdde ginfers! [17:55] now, if I can just learn to get it to DO something useful [17:56] high five [17:56] BCNU allthanks again [17:56] no prob [18:11] anybody can help me with a postfix error with some postfix packages [18:20] Booting ubuntu 18.04 hangs at the point of - "Started network name resolution." - any ideas on how to fix thi? [19:21] Hello! Does anybody know if there is a way to intercept what command/script/executable is ran when using a keyboard shortcut? [19:25] ovrh: What keyboard shortcut are you asking about? Applications/Commands keyboard shortcuts are typically defined by you [19:27] pragmaticenigma, Yeah I know, but there are some on my laptop that came pre-configured by the vendor, like the shortcut to disable the webcam. I want to figure out what command that shortcut runs in order to make it run at startup and have the webcam turned off by default [19:32] ovrh: no command; that is done in-kernel usually by ACPI input events [19:37] TJ-, so I have no way to replicate that at startup? [19:37] hi can a admin please help me completely remove postfix and its packages [19:37] its caussies me issues [19:41] jpop, on what ubuntu version? [19:42] When I plugged in my external HDD it asked for a password. Now I have finished using it how do I make my computer forget this password? [19:42] When I eject and reinsert it mounts without asking for the password again. [19:44] jpop, asking multiple channels? [19:45] Anyone know when they plan to fix the bug for the dock showing up on the lock screen and then not auto-hiding afterwards? or a quick fix for it? I tried restarting gdm and that just made my laptop hang on the lock screen [19:45] LTCD, what filesystem is on that hdd? if you were owner, it would not ask for the password [19:46] I used LUKS or something IDK it was years ago. [19:46] There is like 3 different ways to encrypt a HDD by default on Ubuntu so lets not look out into space. [19:49] https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-ubuntu-dock/+bug/1769383 [19:49] Launchpad bug 1769383 in gnome-shell-extension-ubuntu-dock (Ubuntu Bionic) "Ubuntu dock/launcher is shown on the lock screen" [High,In progress] [19:50] resolved the issue by removing default ubuntu-dock@ubuntu.com: sudo mv /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com ~/ >>> https://github.com/micheleg/dash-to-dock/issues/649#issuecomment-348433909 [19:52] LTCD, if this is encrypted, i have no clue howto forget it in that session :-( [19:59] 0erHeks what does that command do? Will that disable the dock completely? [19:59] LTCD try to look at seahorse [20:00] OerHeks ^ [20:01] AWest21, it removes the troubling plugin, not disabling the dock completely AFAIK [20:12] can someone tell me away to look at kernel for GPU supported. instead of loading kernel that doesn't work? [20:17] Hey everyone, I was getting help with a weird issue I was having last night but I needed to get to bed. So I'm back to try again. I'm running 16.04 I had one drive near full so I was running mv * on a directory of like 500gb to my other drive to help free some space and in the middle of it I used ctrl+c to cancel it and as soon as I did I got so many weird issues. [20:18] transmission wont save files to the drive A (the one that was almost full that I was moving files away from) and SABNZBD is starting up and says it's listening on 8080 but I get connection refused both remotely but from the computer iself, and [20:22] and ? [20:25] do you want to make space on drive A or put more files in drive A? === Elronnd is now known as Mennnnnnnnnnche === esotericnonsens_ is now known as esotericnonsense [21:03] 最近我也想去北京 [21:04] !cn [21:04] 如欲獲得中文的協助,請輸入 /join #ubuntu-cn 或 /join #ubuntu-tw [21:05] 分不清是怎么想要 [21:08] Ubuntu 18.04 user here. I just ran a file transfer/share from my android phone to my laptop. The transfer report on the phone says it was successful. The file is not in my Downloads folder. updatedb & locate as root can't find the file. Anyone have experience with bluetooth transfers? I hardly ever use it, I forgot my transfer cable. [21:09] does ubuntu rename the file transfers? is there a .part file or similar saved in a hidden directory? [21:10] .part while it is transfered after the transfer completes the .part file is deleted [21:10] kk4ewt: ...great. [21:10] even winblows does that [21:11] Hello. How can I increate the limits on /etc/security/limits.conf [21:11] I'm just upset the file is gone. [21:11] I want unlimited [21:11] justme23, edit the file [21:11] and man limits.conf [21:12] Pleae help me i am newbie [21:12] i just did [21:12] justme23: did you use Bluetooth transfer? [21:12] no why [21:12] grrr, justme23 ignore that! [21:13] James_Epp: did you use Bluetooth transfer? [21:13] TJ: Yes, I initiated it from the android. [21:14] James_Epp: the BT manager on the PC should show where it puts file transfers [21:14] James_Epp: in any case it should be somewhere in the user's $HOME, usually it is $HOME/Downloads/ but that may be different on some desktop environments [21:15] James_Epp: if you know (part of) the name of the file do "find $HOME -type f - name '*partofname*' -ls" [21:15] James_Epp: typo there; remove the space in '- name' [21:16] TJ-: I used updatedb & locate. It's effectively the same as find [21:17] hi! What tool to use for linux cloning to dissim hardware? [21:17] !clone [21:17] To replicate your packages selection on another machine (or restore it if re-installing), you can use the !software package "apt-clone" - See also !automate [21:17] more info [21:17] dd [21:17] !backup [21:17] There are many ways to back your system up. Here's a few: https://help.ubuntu.com/community/BackupYourSystem , https://help.ubuntu.com/community/DuplicityBackupHowto , https://wiki.ubuntu.com/HomeUserBackup , https://help.ubuntu.com/community/MondoMindi - See also !sbackup and !cloning [21:17] hi, about nfs shares, can i specify client ip ranges? instead of manually writing them to the /etc/exports file? [21:19] not backup. cloning! with mbr, bootloader (grub) and fs metadata, files only, compression. [21:19] dd [21:20] kk4ewt: will dd restore linux aside with windows? [21:20] hd needs to be same size or larger [21:20] yes [21:20] rcm888, cloning with dd is easy, but you must make sure the UUID of the partitions are updated too [21:20] and deifinitely backup before you start anything [21:21] dd is cloning sector by sector [21:22] vm might have 50 gb hdd, why would I scan over 50 gb? if files occupy only 6 gb... [21:22] and you need to do it without either drives mounted [21:23] depends on how you setup the vm [21:23] if it was dynamic it will be 6gb otherwise it will be the 50G [21:24] for dd it doesnt matter, if it reads each sector... [21:24] yes it does [21:24] this is what I dont need. [21:24] then what exactly are you trying to do [21:25] some tool like acronis woulbe of use [21:25] which is ghost which guess what used dd [21:25] I am trying to clone "setted" up alinux. [21:25] then dd [21:26] no. dd is inappropriate tool for file + meta level backup. [21:28] I tried clonezilla but it is text based and very ugly from GUI perspective. I'm not sure how how it worked but I have 1mb extra bootsec data saved by it. [21:28] i didnt say for backup you asked for cloneing [21:29] kk4ewt: cloning means saving disk at meta+files level, not completely sector by sector the whole partition. [21:29] kk4ewt: efficient and sufficient bot not more than that. ok? [21:30] rcm888, to me cloneing is cloneing one hard drive to another [21:30] rcm888: that is not the correct definition of cloning. A clone is a bit-accurate duplicate of the source block device [21:31] rcm888: Especially in the context you mentioned of including partition table, bootloader et al [21:32] All of those entities are stored on a sector offset+count basis [21:32] TJ-: but not all sectors are needed. why would I compress whole 50gb drive with "dirty sectors"? it is time consuming insanity. It may be good for data recovery purposed but not for friendly linux distributing.. [21:33] rcm888: what you /can/ do is temporarily shrink the source file-system to its minimum size, clone just those sectors (which will be smaller than the partition the file-system is contained within) [21:33] TJ-: no, this would be BDSM [21:33] so now we are down to he only wants to backup his VM files [21:34] and it appears he has limited bandwidth as well [21:34] rcm888: I skimmed through the chat log here. In my neck of the woods, cloning generally implies sector-by-sector. Backup is much more vague. [21:34] and there is always rsync as well [21:34] for files [21:35] but you are still going to copy the 50G if you set it up without being dynamic [21:35] If you're 'cloning' to a file on another system you can do sparse copies (using dd or cp of the block device) and it won't actually copy the sectors that are all zero [21:36] kk4ewt: not only files, but chunks of vhdd needed for boot and functioning of linux. Saying it another way: tool for optimized automated 2p2 transferring Linux OS to dissimilar hardware. [21:37] kk4ewt: 1 deleting files does not make sectors zero, and 2 no need to scan whole drive, only files + partition metadata. [21:37] how2hack: in /etc/exports, you can specify client IP ranges; are you looking for something beyond that? [21:37] !info zerofree Use ZeroFree if you want to do sparse copies of a file-system [21:37] 'Use' is not a valid distribution: artful, artful-backports, artful-proposed, bionic, bionic-backports, bionic-proposed, cosmic, cosmic-backports, cosmic-proposed, kubuntu-backports, kubuntu-experimental, kubuntu-updates, partner, precise, precise-backports, precise-proposed, stable, testing, trusty, trusty-backports, trusty-proposed, unstable, utopic, utopic-backports, utopic-proposed, vivid, vivid-backports, vivid-proposed, wily, wily-backports, wily-pr [21:37] !info zerofree rcm888 Use ZeroFree if you want to do sparse copies of a file-system [21:37] 'rcm888' is not a valid distribution: artful, artful-backports, artful-proposed, bionic, bionic-backports, bionic-proposed, cosmic, cosmic-backports, cosmic-proposed, kubuntu-backports, kubuntu-experimental, kubuntu-updates, partner, precise, precise-backports, precise-proposed, stable, testing, trusty, trusty-backports, trusty-proposed, unstable, utopic, utopic-backports, utopic-proposed, vivid, vivid-backports, vivid-proposed, wily, wily-backports, wily [21:37] oh for...! [21:38] !info zerofree bionic | rcm888 Use ZeroFree if you want to do sparse copies of a file-system [21:38] rcm888 Use ZeroFree if you want to do sparse copies of a file-system: zerofree (source: zerofree): zero free blocks from ext2, ext3 and ext4 file-systems. In component main, is extra. Version 1.0.4-1 (bionic), package size 8 kB, installed size 25 kB [21:39] oceanquake: yes, the format, i'm confused cuz the pdf i'm reading says the number after /XX is for the number of addresses, but /XX is cidr, so that's why i'm confused [21:41] so I mean I need tool that will do at once: mbr, parttable, extended mbr data, partition metadata, and files backup for restoring them on the other computer. Compression, crypt, resizing, over network is "must have". [21:41] how2hack: see "man exports" for details of the syntax [21:45] TJ-: it says address/netmask, so the pdf is wrong, it is the netmask and not the number of addresses to allow, right? [21:46] how2hack: yes, it is one of two types of netmask, either a prefix bitcount (e.g. /24) or a mask (e.g. 255.255.255.0) [21:47] TJ-: thanks [21:52] how2hack: yes, it should be standard CIDR notation; if in doubt, exports (5) manpage should be the reference. see e.g.: https://linux.die.net/man/5/exports [21:53] oceanquake: thanks [21:53] qt4-fsarchiver ?? [21:54] how does grub find vmlinuz? by LBA sector or by fsmod? [21:56] by uuid === saint__ is now known as saint_ [21:58] OerHeks: so moving , resizing, opimizing root partition will not affect grub boot? [21:59] rcm888, moving, yes, if you move your install to an other drive,.. [21:59] you must make sure the UUID of the partitions are updated too [22:00] OerHeks: updated means preserved? [22:02] hi [22:02] can someone help me to setup fail2ban. Im stuck since an hour :| [22:02] https://help.ubuntu.com/community/UsingUUID [22:04] rcm888: GRUB contains its own complete set of file-system drivers so it mounts file-systems the same way the OS does, and finds files the same way (by path) [22:04] OerHeks: poor explanation... if grub finds vmlinuz by partition's uuid, then moving partition to another drive shoulnt change anything, IF grub handles all hdds at once. [22:05] OerHeks: I mean if grub sees all hdds, and doesn't need to be directed to specific hdd for uuid [22:06] well, if you move your linux to an other hdd, UUID will change [22:06] TJ-: o, that means, as long as uuid is not changed, grub will find vmlinuz and will boot successfully. if whole system is uuid based. [22:07] OerHeks: I can preserve UUID, set UUID - no problems. [22:07] just boot a live iso, chroot into the install, and update-grub [22:09] OerHeks: sorry, dont have spare keys fo my keyboard for that kind repeatative operations..lol. [22:09] oh, you are not serious, so i leave you thinking about your problem [22:09] rcm888: heh [22:09] trollolol [22:11] EriC^^: no, just old, very culturized pragmatical son of a... [22:12] rcm888: what i can add to your problem is that indeed grub uses uuid, however if you use uefi it will look for the partuuid to get the initial efi to load [22:13] also you can use for loops to mount --bind and set up a chroot pretty quickly [22:14] for i in /dev /proc /sys; mount -R /mnt /mnt$i; done [22:14] no keys were abused in the process [22:14] ok [22:17] GRUB doesn't always use UUIDs, as well as it being possible to disable use, if using LVM and other abstractions like cryptodisk, the root-fs maybe indicated by a path, e.g root=/dev/mapper/VG02-rootfs [22:18] But that is a function of the OS scripts, GRUB at boot-time never uses that, it is for the use of the Linux initialramfs tools [22:20] GRUB itself only needs to know where the file-system where its files are (/boot/grub/) and sets root= and prefix= to point to those, then when grub-core does 'insmod normal' it reads $prefix/grub.cfg (which OS sees as /boot/grub/grub.cfg) and executes that script [22:21] Or just ditch grub and use systemd boot if UEFI [22:36] how to set the specific xwindow apps always to be launched on the top layer of the screen? [22:52] where do I go to safely d/l ubuntu and how do I use the CRC check? [22:53] JoeLlama, https://help.ubuntu.com/community/UbuntuHashes [22:53] thanks lolmac :) [22:53] oops [22:53] lordcirth__ [22:53] np [22:58] so like I have a number of limited systems (not much memory etc) and I think lubuntu and xubuntu are the builds for that kind of machine. Can someone confirm? If there is another build that is good for that kind of application please let me know. Also, which one has the sweeter GUI? [23:00] xubuntu would be my 1st choise, or mate [23:01] dual core, 1 gb memory .. anything less is not worth using IMHO [23:04] hey thanks OerHeks [23:05] yes I was thinking of going xubuntu [23:05] !flavors [23:05] Recognized Ubuntu flavors build on Ubuntu and provide a different user experience out of the box. They are supported both in #ubuntu and in their flavor channel. For a list, see https://www.ubuntu.com/download/ubuntu-flavours [23:05] lubuntu is minimalistic, but sure, try it too [23:18] i wrote a program to read device but when i am running it under ubuntu it says permission denied so i ran it with command sudo but i want my program to run as a root by itself [23:20] I don't think there's a way to easily programmatically gain root access - after all, applying the principle of least privilege, why would you need to? https://stackoverflow.com/a/2483802/823282 [23:20] profbear, database2: it [23:20] #it ? [23:20] profbear, database2: it's called a suid executable. you can make something suid root [23:21] but it's heavily discouraged. [23:21] nod [23:21] hence security mechanisms such as sudo [23:21] or dropping privileges, etc. [23:22] also, database2, systemd makes it trivial to write your own daemons. you could escalate in the unit file (i think that's the name) [23:22] database2: the other option is to set the device ownership group using udev rules, and ensuring your user is a member of that group. E.g. the plugdev or disk groups [23:23] database2: what device is it? [23:25] oceanquake: i wrote program to read devices but when i run that program as a normal user it says permission denied now i want that my program run itself as a root user when that program run by normal user [23:26] database2: yes, and we discussed how to do literally what you want (make your program setuid root) and TJ- pointed out a good alternate option, such as running your program with group membership in a group that has permission to access the device in question [23:27] generally setuid root is heavily frowned-upon/discouraged [23:27] Okay thanks to all [23:28] Why setuid root discouraged? [23:29] because you are effectively giving an unprivileged user permission to run an arbitrary program, which may do anything or have exploitable holes, with root permission [23:30] database2: Udev is /the/ standard way of doing this [23:30] Ohh [23:31] Tj is their any refrence for udev [23:31] database2: type `man udev that was supposed to be a tab key press, database2 [23:32] although that may be a pretty dense read [23:33] profbear: okay [23:33] ya where's that reader's digest, oceanquake [23:33] database2: what device node is it your program needs access to? [23:34] database2: in summary, you drop a file into /etc/ude/rules.d/ with a name like "myprogram.rules" with some relatively simply match + action strings [23:34] If I could type I'd be dangerous! [23:34] XD [23:34] database2: should be /etc/udev/rules.d/ [23:37] Tj: give me a minute [23:38] anybody can help me please https://pastebin.com/X9HTismN [23:39] database2: E.g. ACTION=="add|change",SUBSYSTEM=="usb",ATTR{idVendor}=="abcd",ATTR{idProduct}=="0123",MODE="0664",GROUP="plugdev" [23:39] database2: then provided the user is a member of 'plugdev' group the program will be able to read/write the device node [23:40] Tj: /dev/sda [23:42] database2: sounds scary already! but /dev/sd* should have owner/group root:disk, and already be r/w for both, so all you need is to add your user to the 'disk' group [23:42] database2: as in "sudo adduser $USER disk" then re-login for that to take effect [23:42] TJ-: why not just have him have the users be a part of existing disks group [23:42] oceanquake: ^^ [23:43] now we know which device [23:43] Okay and i can do all this by setguid right [23:43] database2: NO! [23:43] database2: forget setguid [23:43] Yeah, I hit return abuot the same time you did :) [23:43] oceanquake: :P [23:43] Tj: then ? [23:44] database2: please read what I've already typed; I've explained and given you the single command required [23:44] database2: as long as the users you want to be able to do this (I agree, giving users arbitrary access to /dev/sda is a bit scary) have membership in the disks group, they will have access since the device node is owned by group [23:44] disks with permission rw at the group level [23:46] the executable doesn't need to be setgid if the users are already members of the group that owns the resource [23:46] the users -> the users running the program [23:46] even if it's not their login group; a user can be a member of any group [23:47] Tj: "adduser $USER disk" can this be done from c program itself [23:47] why would updating the initrd break the video settings used at install? i.e. install ubuntu without updating it the video works, but as soon as an update that update the initrd, I no longer get to a desktop and resuming boot from recovery gets me an 8x6 resolution only? [23:48] database2_: No, it requires a user that has 'sudo' permissions to issue the command [23:48] database2_: it's a one-time action per user [23:48] that the administrator or someone with admin access does [23:49] Stormmore: depends on what the 'update' actually changed and what happened before that to influence what is put in the initrd.img [23:52] Tj: okay but i want this program to do whatever it need to do to open /dev/sda for reading writing and the program should run by normal user in summary "program must run by normal usr and get root access" [23:52] database2_: perhaps you should take a moment to understand the concepts at play here [23:53] database2_: 1. note that /dev/sd* is owned by root:disk (default udev rules in *buntu) [23:53] oceanquake: right but idon't understand from where to start [23:54] just run your script as root. or use TJ- answer [23:56] database2_: 2. If a user belongs to the group that owns a file/device node/socket, can have the group permissions on that resource control their access [23:56] database2_: whatever you're doing, it sounds very dodgy. Only a user with admin privs should have access to do raw writes to /dev/sd* devices [23:57] database2_: 3. TJ- is explaining to you how to add a given user to the disk group [23:57] oceanquake: yup right [23:57] I really hope database2_ isn't thinking of distributing this tool to non-technical users, it sounds like a recipe for disaster [23:57] database2_: 4. What TJ- described is the one-time action to perform that modifies the system account/group database to ensure the user is in that disk group [23:58] This is a one-time administrative step, akin to adding the user in the first place. Your program itself (the one that accesses /dev/sda) does not do it.