[01:05] Hello all. I have some questions about certificates for my apache server. anyone please? [01:07] where are you stuck? [01:12] Hello Sarnold. I just finished install of webmin and apache. Is certbot the app I need to install for my servers cert? [01:14] Iḿ all new to Ubuntu [01:17] Unte36: please be careful with webmin -- I strongly recommend firewalling it off to just IP address ranges that you want to have complete control of the computer.. web-based management consoles are usually pretty poor [01:18] Unte36: if you want to use letsencrypt there's at least one client under that name, there's more clients availab,e but I don't know how many are packaged with ubuntu already [01:19] :S I was not aware of this vulnerability. Would it be wiser then to remove it all an do it from command line? [01:20] that's my very strong preference [01:20] Just need to make a simple server to share some files online [01:21] I will follow your advise Sarnold. Thank you very much. Is there a way to remove it all and the software that it has been isntalled within??? Any suggestions on a good option to achieve this? [01:23] Unte36: how did you install webmin in the first place? [01:25] SARNOLD. I did install it from terminal. Checked on software and it is not being displayed in the list. apt-get remove webmin / apt-get purge webmin?? [01:26] Unte36: it depends on how you installed it. if you installed it with apt-get install webmin, then yes, apt-get purge webmin should work. [01:27] Yes Sarnold. it was sudo apt install webmin [01:27] trying it now [01:31] Sarnold. dpkg: warning: while removing webmin, directory '/usr/share/webmin/ajaxterm/ajaxterm' not empty so not removed [01:31] Unte36: okay, that's a little odd, but a 'sudo rm -rf /usr/share/webmin/' once you're done will take care of that [01:34] command run [01:34] anything else to totally purge webmin installation? [01:35] I don't know what it might have done to your apache configs, or other configs, during install. depending upon how much you fiddled with it, it might be worth apt-get purging any applications that it configured [01:36] I just installed webmin + updates + apache [01:36] do I need to reinstall my pc to get ride of it all? [01:37] hopefully not [01:38] :) heheh fingers crossed then. So how can I purge apache ? since it was all installed within the app? [01:39] oh? hrm. try apt-get purge apache2 apache2-bin [01:40] heheh :) it worked. Seems to be going down with files now [01:40] Thank you. So what would it be your advise to achieve the a simple werver to share files ? [01:41] and just like webmin dpkg: warning: while removing apache2, directory '/var/www/html' not empty so not removed [01:42] did you put anything in that directory yourself? [01:42] nop [01:42] if not, rm -rf /var/www/html is fine [01:43] what is that -rf command for? [01:43] -r means recursive, -f means force [01:43] rm: cannot remove '/var/www/html/index.html': Permission denied [01:43] :S [01:43] the rm command likes to ask you silly questions like "you can't read this file, are you sure you want to delete it?" kind of thing [01:43] ah sorry, 'sudo rm -rf /var/www/html' [01:44] heheh my fault sorry [01:46] somthing funny with webmin [01:46] apt-get install webmin [01:47] sudo apt-get install webmin / Reading package lists... Done / Building dependency tree / Reading state information... Done [01:47] E: Unable to locate package webmin / lluix@lupa:~$ sudo apt install webmin [01:47] Reading package lists... Done [01:47] Building dependency tree [01:47] Reading state information... Done [01:47] E: Unable to locate package webmin [01:53] hrm. Did you add a PPA or other apt repository to get webmin packages? I don't see any webmin packages in our archives [01:55] nop I only did the install webmin [01:55] from terminal [01:55] :S [02:22] Sarnold. I had added the ppp and reinstall it [02:23] Unte36: wow,that takes me back :) I haven't done ppp in ages.. [02:28] hehehe why is that ? [02:28] I will try this time sudo apt-get remove webmin [02:28] sarnold [02:29] Unte36: I've been lucky enough to have ethernet network connections for a while ;) [02:29] Unte36: can you pastebin the output of apt-cache policy webmin ? [02:30] Sure ; ) bare with me one sec, still finishing with the install [02:31] Installed: 1.860 [02:31] Candidate: 1.860 [02:31] Version table: [02:31] *** 1.860 500 [02:31] 500 http://download.webmin.com/download/repository sarge/contrib amd64 Packages [02:31] 500 http://download.webmin.com/download/repository sarge/contrib i386 Packages [02:31] 100 /var/lib/dpkg/status [02:35] aha. crazy, I'm surprised that installed. [02:35] do note that this means whoever controls that repository essentially has root on your computer. [02:46] yes I added this http://download.webmin.com/download/repository [02:46] in software & upd / other software [02:47] Sarnold. I see, so I need to remove this and purge it all for good [02:47] : @ [02:48] Unte36: that's my recommendation, yes [02:49] which command to use? I dont know the difference % purge and remove [02:49] the previous install didnt work purge. Shall I do the remove this time? [02:49] Sarnold [02:50] sudo apt-get remove webmin [02:51] sudo apt-get purge webmin should do the job [02:51] but last time I got the error :s [02:51] what error? [02:54] Running uninstall scripts .. [02:54] readdir() attempted on invalid dirhandle $DIR at /usr/share/webmin/at/linux-lib.pl line 10. [02:54] closedir() attempted on invalid dirhandle $DIR at /usr/share/webmin/at/linux-lib.pl line 29. [02:54] Subroutine list_servers redefined at /usr/share/webmin/servers/servers-lib.pl line 92. [02:54] Subroutine list_servers_sorted redefined at /usr/share/webmin/servers/servers-lib.pl line 111. [02:54] Subroutine get_server redefined at /usr/share/webmin/servers/servers-lib.pl line 143. [02:54] Subroutine save_server redefined at /usr/share/webmin/servers/servers-lib.pl line 158. [02:54] Subroutine delete_server redefined at /usr/share/webmin/servers/servers-lib.pl line 175. [02:54] Subroutine can_use_server redefined at /usr/share/webmin/servers/servers-lib.pl line 188. [02:54] Subroutine list_all_groups redefined at /usr/share/webmin/servers/servers-lib.pl line 208. [02:54] Subroutine logged_in redefined at /usr/share/webmin/servers/servers-lib.pl line 278. [02:54] Subroutine get_server_types redefined at /usr/share/webmin/servers/servers-lib.pl line 303. [02:54] Subroutine this_server redefined at /usr/share/webmin/servers/servers-lib.pl line 313. [02:54] Subroutine get_my_address redefined at /usr/share/webmin/servers/servers-lib.pl line 332. [02:54] Subroutine address_to_broadcast redefined at /usr/share/webmin/servers/servers-lib.pl line 361. [02:54] Subroutine test_server redefined at /usr/share/webmin/servers/servers-lib.pl line 375. [02:54] Subroutine find_cron_job redefined at /usr/share/webmin/servers/servers-lib.pl line 394. [02:54] Subroutine find_servers redefined at /usr/share/webmin/servers/servers-lib.pl line 407. [02:54] Purging configuration files for webmin (1.860) ... [02:54] dpkg: warning: while removing webmin, directory '/usr/share/webmin/ajaxterm/ajaxterm' not empty so not removed [02:54] btw a pastebin would be better for anything that's more than two lines of output [02:55] but all that looks like it mostly worked to remove the thing. a simple sudo rm -rf /usr/share/webmin/ afterwards should clean up what dpkg couldn't delete [02:56] alright brb [02:59] Sarnold . BTW how can I make a paste bin for the next time ? sarnold [02:59] ;) [03:00] Unte36: the easiest way is to install the pastebinit package; then you can run a command like apt-cache policy webmin | pastebinit [03:00] then you just copy-and-paste the url that it returns [03:02] ahhh, let me install it now for next time [03:03] sudo apt-get install pastebinit??? [03:04] yes [03:07] Weird. The purge went somewhat too fast this time :S ..... [03:07] most terminals let you scroll up with shift+pageup [03:09] With apt-cache policy webmin | pastebinit can we check if it has completly purged?? [03:10] The issue is not scrolling but the last time I saw more removing lines [03:11] Unte36: well, "completely" is difficult to measure [03:12] you can run the debsums program to try to get an idea of what might be changed; it's .. kind of verbose though. still, it's a useful tool to know about. try running debsums -ac [03:12] what command do you suggest for controlling this? [03:13] sudo debsums -ac | pastebinit [03:13] ??? [03:14] well, depends; if you want feedback on specific files that are reported as changed, maybe [03:14] but debsums takes forever to run [03:15] then with apt-cache policy webmin | pastebini? [03:17] Sarnold here is the result from sudo apt-get purge webmin | pastebinit [03:17] sudo apt-get purge webmin | pastebinit [03:18] http://paste.ubuntu.com/25877126/ [03:23] holy moly look at all those i386 packages [03:23] Unte36: definitely do the 'sudo apt autoremove' command next :) [03:26] Sarnlod. I know... reason why I wanted to let you look at it [03:26] sudo apt autoremove webmin | pastebinit ???? [03:27] just sudo apt autoremove [03:27] BTW what is the logic when installing a program in ubuntu? in win you have Program files where you can review the software isntalled on your pc but in here. I have no idea of how does this work [03:29] Unte36: you can use dpkg -L to show the files that package installs; check out 'dpkg -L bash' to see a simple example [03:30] sudo apt autoremove webmin | pastebinit [03:31] no 'webmin' on that command [03:31] ok [03:32] WARNING: apt does not have a stable CLI interface. Use with caution in scripts. [03:32] ha [03:33] apt is a friendly interface over apt-get and apt-cache and maybe some other tools. those other tools have stabilized interfaces, so it'd be worth using those directly in scripts [03:34] so which command shall I use? [03:36] sudo apt autoremove [03:37] E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) [03:37] E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? [03:37] lluix@lupa:~$ sudo apt autoremove [03:37] E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) [03:37] E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? [03:37] I wonder if unattended-upgrades is running? [03:38] Reading package lists... Done [03:38] Building dependency tree [03:38] Reading state information... Done [03:38] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [03:38] what for is autoremove? [03:40] apt keeps track of packages that were installed solely because something else installed needed them; and when that something else is removed, it can suggest to remove the other packages too [03:40] it's not perfect, but it's pretty good [03:41] Sounds like it. So it does clean all the extra software in depedency with main apps previously installed? [03:43] I think you've got the right idea :) it's difficult to convey exactly what it does.. [03:45] Loving linux just the logic of it. Remains in some areas rather blur [03:49] Sarnold for the simple file server is apache a good option ??? or what do you suugest me??? [03:51] Unte36: different people need different things from "fileserver". Some people want samba shares they can use with windows or mac os x desktop clients; some people just need a place to scp to and from. Other people want to scp files to a machine and then use http to get them back.. and other people want a web interface to upload and download [03:51] Unte36: apache can fill the role for some of those requirements, but not all, and it'll even require applications in apache to do anything beyond basic .. [03:54] I understand it. My requisite is to have a server to share video files stored in my local HD to share with my mother that has a broken leg so that she can access it from a remote location [03:55] via browser [03:58] Sarnold [04:02] Unte36: will she want a friendly javascript player and so on? or just a pile of files? [04:05] I want to keep it as simple as possible since I dont know yet my way around Ubuntu. A normal interface that she may be able to open the files from [04:08] I don't think this qualifies for "simple", but I've heard good things about it https://nextcloud.com/ [04:10] hehee fair point ;) [04:11] Unte36: time for me to bail, have fun :) [04:13] thank you, ;) apreciated [04:13] take care [07:02] Good morning [07:07] hello === jelly-home is now known as jelly [12:24] what is the best way to do a server installation with a vlan interface on ubuntu? Im booting via usb stick and now I need to setup an interface with a vlan but by default that is not possible via the gui, and the iso does not provide 8021q module or vlan package. any ideas/gudes? google is not helping me atm [12:24] guides* [12:38] * dnegreira giving a try on expert mode [12:38] just saw that you can select the vlan component [13:16] yes, it should work that way. [13:16] another option is to setup a server without vlan initially and set up the vlan later. [13:30] not an option for me, dont have the possibility to automate it [13:31] would love to load the vlan component related things on the 'normal installer' without expert mode [13:31] just to have the vlan option available when configuring the devices [13:32] but expert mode works for me for now [13:40] dnegreira: you can in preseed afaik? [13:40] #d-i netcfg/use_vlan boolean true [13:40] #d-i netcfg/vlan_id string {VLAN} [13:53] but that would be automation [13:55] well yes and no [13:55] you can pass those as kernel params when booting [13:55] but why not automate? D: === jelly-home is now known as jelly [14:25] I do not "manage" the switches [14:25] which I hate [14:27] that is why I said that I cannot automate that part and hence need to boot up in expert mode and choose the vlan stuff. But now I understand better how to load that on boot and automate it [14:44] morning [14:44] anyone have experience setting up hylafax server? [14:48] or with modems? [15:27] cpaelzer: could you glance at https://bugs.launchpad.net/bugs/1729854 please? Is this a case of needing the right template? [15:27] Launchpad bug 1729854 in linux (Ubuntu) "Failed to create kvm guest with uvt-kvm on Zesty s390x zVM" [Undecided,Incomplete] [15:28] reading [15:28] Yeah that is a dup to my bug&fix [15:28] rbasak: are you marking it as such? [15:28] I can do [15:30] cpaelzer: duping to bug 1452016 or a different one? [15:30] bug 1452016 in uvtool (Ubuntu) "uvtool-libvirt needs arch specific templates" [Wishlist,Triaged] https://launchpad.net/bugs/1452016 [15:31] that is the right one rbasak [15:31] rbasak: and if you'd merge my MP you could say Fix Committed :-P [15:54] nacc: hey, I have a git (github?) question [15:54] nacc: http://pastebin.ubuntu.com/25880349/ [15:54] nacc: I want the diff for that merge (f3b6bfac5911f248499c79a42a0d18f12ca9065a) [15:54] but git show f3b6bfac5911f248499c79a42a0d18f12ca9065a only shows me the commit message [15:55] what's the right way to get the diff? Let's say I don't have the branch anymore. Can I get the diff with just the hash of that merge commit? [15:55] andreas: a diff relative to what? [15:55] master [15:55] andreas: git diff master.. [15:55] (or without .. actually) [15:55] that branch panlinux/enable-tests-package-build was merged, and I was expecting that that merge hash would show the diff [15:55] that will just diff the trees [15:56] yeah, but relative to amster at that time [15:56] andreas: that's not quite how merges work :) [15:56] not master now [15:56] andreas: git reflog master to see the old hash? [15:57] https://github.com/CanonicalLtd/ubuntu-advantage-script/commit/f3b6bfac5911f248499c79a42a0d18f12ca9065a shows the diff [15:57] but git show that same hash doesn't [15:58] andreas: i believe that's a github thig [15:58] nacc: ah, when I download the .patch version of that url [15:58] the From has a different hash [15:58] andreas: it understands merges and can contentfully show you what they have added (based upon what they were merged into) [15:59] hm, the .patch version actually is a sequence of commits [15:59] all commits from the branch [15:59] I see [15:59] which makes sesne, it's showing you, i think, the differences between the old master and the result of the merge, by commit [16:00] I'll probably do a diff between first commit and last one [16:00] andreas: i think there also relevant options to git-diff for dealing with merges [16:02] oh, wait [16:02] a merge commit has an extra header in git log [16:02] commit f3b6bfac5911f248499c79a42a0d18f12ca9065a [16:02] Merge: 4f6740e 05c8944 [16:03] * andreas checks if that is correct [16:04] andreas: right, those are the 'parents' [16:04] andreas: a merge is a commit with multiple parents [16:04] yep, that helps [16:04] andreas: and the diff is technically different from each [16:09] rbasak: are you around? [19:48] if I've received a SERVERNAME.ca-bundle file, a SERVERNAME.crt file, and have my SERVERNAME.key private key, and postfix expects all intermediate CAs into a bundle, does this mean I need to 'cat' the .crt and .ca-bundle into a new file, or should the .ca-bundle already have this? [19:52] SmokinGrunts: typically yes, you need to cat the .crt and the ca [19:53] SmokinGrunts: some CAs have the bad habit of including their root CA in their bundle so you might want to remote it to optimize the TLS handshake [19:53] okay, and the SERVERNAME.crt would come first, then the .ca-bundle? [19:53] SmokinGrunts: yes [19:54] http://www.postfix.org/TLS_README.html: cat server_cert.pem intermediate_CA.pem > server.pem [19:55] aye, thank ye [19:56] np === JanC_ is now known as JanC === Jynxie_ is now known as Jynxie [20:22] <|\n> hello [20:23] <|\n> on a hoster's vps with 16.04 i see linux-image-4.4.0-100-generic which is the latest provided by linux-image generic, however i'm unable to see it on this list https://packages.ubuntu.com/xenial/allpackages?format=txt.gz [20:24] <|\n> what could i check? [20:25] |\n: it's in xenial-proposed [20:25] <|\n> ah, thank you so much nacc [20:26] |\n: yw [20:26] |\n: rmadison helped me figure that out (rmadison linux-image-generic) [20:27] <|\n> neat! thanks, nacc [20:30] funny how "\n" breaks tab completion of the user name here :) [20:31] sdeziel: works fine in irssi :) [20:32] nacc: yeah, I never made the switch from pidgin to irssi [20:32] <|\n> last time i heard of issues regarding it it was some notification output from os in relation to highlighting the user on a mobile device [20:33] sdeziel: :) [21:18] |\n: hah, love it :) [21:27] <|\n> me too, me too, thanks for the hints guys, every single step after leaving job place is hard and you've just made it a lot easier, thanks again nacc, i was just looking at the package maintainer like a retard for 2-5 minutes or so === hggdh is now known as WiWoWas [22:21] |\n: np === WiWoWas is now known as hggdh === hggdh is now known as WiWoWasWozu === WiWoWasWozu is now known as WieWoWasWozu