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

Unte36Hello all. I have some questions about certificates for my apache server. anyone please?01:05
sarnoldwhere are you stuck?01:07
Unte36Hello Sarnold. I just finished install of webmin and apache. Is certbot the app I need to install for my servers cert?01:12
Unte36Iḿ all new to Ubuntu01:14
sarnoldUnte36: 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 poor01:17
sarnoldUnte36: 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 already01:18
Unte36:S I was not aware of this vulnerability. Would it be wiser then to remove it all an do it from command line?01:19
sarnoldthat's my very strong preference01:20
Unte36Just need to make a simple server to share some files online01:20
Unte36I 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:21
sarnoldUnte36: how did you install webmin in the first place?01:23
Unte36SARNOLD. 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:25
sarnoldUnte36: 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:26
Unte36Yes Sarnold. it was sudo apt install webmin01:27
Unte36trying it now01:27
Unte36Sarnold. dpkg: warning: while removing webmin, directory '/usr/share/webmin/ajaxterm/ajaxterm' not empty so not removed01:31
sarnoldUnte36: okay, that's a little odd, but a 'sudo rm -rf /usr/share/webmin/'  once you're done will take care of that01:31
Unte36command run01:34
Unte36anything else to totally purge webmin installation?01:34
sarnoldI 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 configured01:35
Unte36I just installed webmin + updates + apache01:36
Unte36do I need to reinstall my pc to get ride of it all?01:36
sarnoldhopefully not01:37
Unte36:) heheh  fingers crossed then.  So how can I purge apache ? since it was all installed within the app?01:38
sarnoldoh? hrm. try apt-get purge apache2 apache2-bin01:39
Unte36heheh :) it worked. Seems to be going down with files now01:40
Unte36Thank you. So what would it be your advise to achieve the a simple werver to share files ?01:40
Unte36and just like webmin dpkg: warning: while removing apache2, directory '/var/www/html' not empty so not removed01:41
sarnolddid you put anything in that directory yourself?01:42
Unte36nop01:42
sarnoldif not, rm -rf /var/www/html  is fine01:42
Unte36what is that -rf command for?01:43
sarnold-r means recursive, -f means force01:43
Unte36rm: cannot remove '/var/www/html/index.html': Permission denied01:43
Unte36:S01:43
sarnoldthe 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 thing01:43
sarnoldah sorry, 'sudo rm -rf /var/www/html'01:43
Unte36heheh my fault sorry01:44
Unte36somthing funny with webmin01:46
Unte36apt-get install webmin01:46
Unte36sudo apt-get install webmin / Reading package lists... Done / Building dependency tree       / Reading state information... Done01:47
Unte36E: Unable to locate package webmin / lluix@lupa:~$ sudo apt install webmin01:47
Unte36Reading package lists... Done01:47
Unte36Building dependency tree01:47
Unte36Reading state information... Done01:47
Unte36E: Unable to locate package webmin01:47
sarnoldhrm. Did you add a PPA or other apt repository to get webmin packages? I don't see any webmin packages in our archives01:53
Unte36nop I only did the install webmin01:55
Unte36from terminal01:55
Unte36:S01:55
Unte36Sarnold. I had added the ppp and reinstall it02:22
sarnoldUnte36: wow,that takes me back :) I haven't done ppp in ages..02:23
Unte36hehehe why is that ?02:28
Unte36I will try this time sudo apt-get remove webmin02:28
Unte36sarnold02:28
sarnoldUnte36: I've been lucky enough to have ethernet network connections for a while ;)02:29
sarnoldUnte36: can you pastebin the output of apt-cache policy webmin   ?02:29
Unte36Sure ; ) bare with me one sec, still finishing with the install02:30
Unte36 Installed: 1.86002:31
Unte36  Candidate: 1.86002:31
Unte36  Version table:02:31
Unte36 *** 1.860 50002:31
Unte36        500 http://download.webmin.com/download/repository sarge/contrib amd64 Packages02:31
Unte36        500 http://download.webmin.com/download/repository sarge/contrib i386 Packages02:31
Unte36        100 /var/lib/dpkg/status02:31
sarnoldaha. crazy, I'm surprised that installed.02:35
sarnolddo note that this means whoever controls that repository essentially has root on your computer.02:35
Unte36yes I added this http://download.webmin.com/download/repository02:46
Unte36in software & upd / other software02:46
Unte36Sarnold. I see, so I need to remove this and purge it all for good02:47
Unte36: @02:47
sarnoldUnte36: that's my recommendation, yes02:48
Unte36which command to use? I dont know the difference % purge and remove02:49
Unte36the previous install didnt work purge. Shall I do the remove this time?02:49
Unte36Sarnold02:49
Unte36sudo apt-get remove webmin02:50
sarnoldsudo apt-get purge webmin should do the job02:51
Unte36but last time I got the error :s02:51
sarnoldwhat error?02:51
Unte36Running uninstall scripts ..02:54
Unte36readdir() attempted on invalid dirhandle $DIR at /usr/share/webmin/at/linux-lib.pl line 10.02:54
Unte36closedir() attempted on invalid dirhandle $DIR at /usr/share/webmin/at/linux-lib.pl line 29.02:54
Unte36Subroutine list_servers redefined at /usr/share/webmin/servers/servers-lib.pl line 92.02:54
Unte36Subroutine list_servers_sorted redefined at /usr/share/webmin/servers/servers-lib.pl line 111.02:54
Unte36Subroutine get_server redefined at /usr/share/webmin/servers/servers-lib.pl line 143.02:54
Unte36Subroutine save_server redefined at /usr/share/webmin/servers/servers-lib.pl line 158.02:54
Unte36Subroutine delete_server redefined at /usr/share/webmin/servers/servers-lib.pl line 175.02:54
Unte36Subroutine can_use_server redefined at /usr/share/webmin/servers/servers-lib.pl line 188.02:54
Unte36Subroutine list_all_groups redefined at /usr/share/webmin/servers/servers-lib.pl line 208.02:54
Unte36Subroutine logged_in redefined at /usr/share/webmin/servers/servers-lib.pl line 278.02:54
Unte36Subroutine get_server_types redefined at /usr/share/webmin/servers/servers-lib.pl line 303.02:54
Unte36Subroutine this_server redefined at /usr/share/webmin/servers/servers-lib.pl line 313.02:54
Unte36Subroutine get_my_address redefined at /usr/share/webmin/servers/servers-lib.pl line 332.02:54
Unte36Subroutine address_to_broadcast redefined at /usr/share/webmin/servers/servers-lib.pl line 361.02:54
Unte36Subroutine test_server redefined at /usr/share/webmin/servers/servers-lib.pl line 375.02:54
Unte36Subroutine find_cron_job redefined at /usr/share/webmin/servers/servers-lib.pl line 394.02:54
Unte36Subroutine find_servers redefined at /usr/share/webmin/servers/servers-lib.pl line 407.02:54
Unte36Purging configuration files for webmin (1.860) ...02:54
Unte36dpkg: warning: while removing webmin, directory '/usr/share/webmin/ajaxterm/ajaxterm' not empty so not removed02:54
sarnoldbtw a pastebin would be better for anything that's more than two lines of output02:54
sarnoldbut 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 delete02:55
Unte36alright brb02:56
Unte36Sarnold . BTW how can I make a paste bin for the next time ? sarnold02:59
Unte36;)02:59
sarnoldUnte36: the easiest way is to install the pastebinit package; then you can run a command like apt-cache policy webmin | pastebinit03:00
sarnoldthen you just copy-and-paste the url that it returns03:00
Unte36ahhh, let me install it now for next time03:02
Unte36sudo apt-get install pastebinit???03:03
sarnoldyes03:04
Unte36Weird. The purge went somewhat too fast this time :S .....03:07
sarnoldmost terminals let you scroll up with shift+pageup03:07
Unte36With apt-cache policy webmin | pastebinit can we check if it has completly purged??03:09
Unte36The issue is not scrolling but the last time I saw more removing lines03:10
sarnoldUnte36: well, "completely" is difficult to measure03:11
sarnoldyou 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 -ac03:12
Unte36what command do you suggest for controlling this?03:12
Unte36sudo debsums -ac | pastebinit03:13
Unte36???03:13
sarnoldwell, depends; if you want feedback on specific files that are reported as changed, maybe03:14
sarnoldbut debsums takes forever to run03:14
Unte36then with apt-cache policy webmin | pastebini?03:15
Unte36Sarnold here is the result from sudo apt-get purge webmin | pastebinit03:17
Unte36sudo apt-get purge webmin | pastebinit03:17
Unte36http://paste.ubuntu.com/25877126/03:18
sarnoldholy moly look at all those i386 packages03:23
sarnoldUnte36: definitely do the 'sudo apt autoremove' command next :)03:23
Unte36Sarnlod. I know... reason why I wanted to let you look at it03:26
Unte36sudo apt autoremove webmin | pastebinit  ????03:26
sarnoldjust sudo apt autoremove03:27
Unte36BTW 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 work03:27
sarnoldUnte36: you can use dpkg -L  to show the files that package installs; check out 'dpkg -L bash' to see a simple example03:29
Unte36sudo apt autoremove webmin | pastebinit03:30
sarnoldno 'webmin' on that command03:31
Unte36ok03:31
Unte36WARNING: apt does not have a stable CLI interface. Use with caution in scripts.03:32
sarnoldha03:32
sarnoldapt 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 scripts03:33
Unte36so which command shall I use?03:34
sarnoldsudo apt autoremove03:36
Unte36E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)03:37
Unte36E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?03:37
Unte36lluix@lupa:~$ sudo apt autoremove03:37
Unte36E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)03:37
Unte36E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?03:37
sarnoldI wonder if unattended-upgrades is running?03:37
Unte36Reading package lists... Done03:38
Unte36Building dependency tree03:38
Unte36Reading state information... Done03:38
Unte360 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.03:38
Unte36what for is autoremove?03:38
sarnoldapt 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 too03:40
sarnoldit's not perfect, but it's pretty good03:40
Unte36Sounds like it. So it does clean all the extra software in depedency with main apps previously installed?03:41
sarnoldI think you've got the right idea :) it's difficult to convey exactly what it does..03:43
Unte36Loving linux just the logic of it. Remains in some areas rather blur03:45
Unte36Sarnold for the simple file server is apache a good option ??? or what do you suugest me???03:49
sarnoldUnte36: 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 download03:51
sarnoldUnte36: 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:51
Unte36I 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 location03:54
Unte36via browser03:55
Unte36Sarnold03:58
sarnoldUnte36: will she want a friendly javascript player and so on? or just a pile of files?04:02
Unte36I 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 from04:05
sarnoldI don't think this qualifies for "simple", but I've heard good things about it https://nextcloud.com/04:08
Unte36hehee fair point ;)04:10
sarnoldUnte36: time for me to bail, have fun :)04:11
Unte36thank you,  ;) apreciated04:13
Unte36take care04:13
lordievaderGood morning07:02
mybalzitchhello07:07
=== jelly-home is now known as jelly
dnegreirawhat 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 atm12:24
dnegreiraguides*12:24
* dnegreira giving a try on expert mode12:38
dnegreirajust saw that you can select the vlan component12:38
tomreynyes, it should work that way.13:16
tomreynanother option is to setup a server without vlan initially and set up the vlan later.13:16
dnegreiranot an option for me, dont have the possibility to automate it13:30
dnegreirawould love to load the vlan component related things on the 'normal installer' without expert mode13:31
dnegreirajust to have the vlan option available when configuring the devices13:31
dnegreirabut expert mode works for me for now13:32
joeliodnegreira: you can in preseed afaik?13:40
joelio#d-i netcfg/use_vlan boolean true13:40
joelio#d-i netcfg/vlan_id string {VLAN}13:40
tomreynbut that would be automation13:53
joeliowell yes and no13:55
joelioyou can pass those as kernel params when booting13:55
joeliobut why not automate? D:13:55
=== jelly-home is now known as jelly
dnegreiraI do not "manage" the switches14:25
dnegreirawhich I hate14:25
dnegreirathat 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 it14:27
burningatrocitymorning14:44
burningatrocityanyone have experience setting up hylafax server?14:44
burningatrocityor with modems?14:48
rbasakcpaelzer: could you glance at https://bugs.launchpad.net/bugs/1729854 please? Is this a case of needing the right template?15:27
ubottuLaunchpad bug 1729854 in linux (Ubuntu) "Failed to create kvm guest with uvt-kvm on Zesty s390x zVM" [Undecided,Incomplete]15:27
cpaelzerreading15:28
cpaelzerYeah that is a dup to my bug&fix15:28
cpaelzerrbasak: are you marking it as such?15:28
rbasakI can do15:28
rbasakcpaelzer: duping to bug 1452016 or a different one?15:30
ubottubug 1452016 in uvtool (Ubuntu) "uvtool-libvirt needs arch specific templates" [Wishlist,Triaged] https://launchpad.net/bugs/145201615:30
cpaelzerthat is the right one rbasak15:31
cpaelzerrbasak: and if you'd merge my MP you could say Fix Committed :-P15:31
andreasnacc: hey, I have a git (github?) question15:54
andreasnacc: http://pastebin.ubuntu.com/25880349/15:54
andreasnacc: I want the diff for that merge (f3b6bfac5911f248499c79a42a0d18f12ca9065a)15:54
andreasbut git show f3b6bfac5911f248499c79a42a0d18f12ca9065a only shows me the commit message15:54
andreaswhat'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
naccandreas: a diff relative to what?15:55
andreasmaster15:55
naccandreas: git diff master..<hash>15:55
nacc(or without .. actually)15:55
andreasthat branch panlinux/enable-tests-package-build was merged, and I was expecting that that merge hash would show the diff15:55
naccthat will just diff the trees15:55
andreasyeah, but relative to amster at that time15:56
naccandreas: that's not quite how merges work :)15:56
andreasnot master now15:56
naccandreas: git reflog master to see the old hash?15:56
andreashttps://github.com/CanonicalLtd/ubuntu-advantage-script/commit/f3b6bfac5911f248499c79a42a0d18f12ca9065a shows the diff15:57
andreasbut git show that same hash doesn't15:57
naccandreas: i believe that's a github thig15:58
andreasnacc: ah, when I download the .patch version of that url15:58
andreasthe From has a different hash15:58
naccandreas: it understands merges and can contentfully show you what they have added (based upon what they were merged into)15:58
andreashm, the .patch version actually is a sequence of commits15:59
andreasall commits from the branch15:59
andreasI see15:59
naccwhich makes sesne, it's showing you, i think, the differences between the old master and the result of the merge, by commit15:59
andreasI'll probably do a diff between first commit and last one16:00
naccandreas: i think there also relevant options to git-diff for dealing with merges16:00
andreasoh, wait16:02
andreasa merge commit has an extra header in git log16:02
andreascommit f3b6bfac5911f248499c79a42a0d18f12ca9065a16:02
andreasMerge: 4f6740e 05c894416:02
* andreas checks if that is correct16:03
naccandreas: right, those are the 'parents'16:04
naccandreas: a merge is a commit with multiple parents16:04
andreasyep, that helps16:04
naccandreas: and the diff is technically different from each16:04
naccrbasak: are you around?16:09
SmokinGruntsif 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:48
sdezielSmokinGrunts: typically yes, you need to cat the .crt and the ca19:52
sdezielSmokinGrunts: 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 handshake19:53
SmokinGruntsokay, and the SERVERNAME.crt would come first, then the .ca-bundle?19:53
sdezielSmokinGrunts: yes19:53
sdezielhttp://www.postfix.org/TLS_README.html: cat server_cert.pem intermediate_CA.pem > server.pem19:54
SmokinGruntsaye, thank ye19:55
sdezielnp19:56
=== JanC_ is now known as JanC
=== Jynxie_ is now known as Jynxie
|\nhello20:22
|\non 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.gz20:23
|\nwhat could i check?20:24
nacc|\n: it's in xenial-proposed20:25
|\nah, thank you so much nacc20:25
nacc|\n: yw20:26
nacc|\n: rmadison helped me figure that out (rmadison linux-image-generic)20:26
|\nneat! thanks, nacc20:27
sdezielfunny how "\n" breaks tab completion of the user name here :)20:30
naccsdeziel: works fine in irssi :)20:31
sdezielnacc: yeah, I never made the switch from pidgin to irssi20:32
|\nlast time i heard of issues regarding it it was some notification output from os in relation to highlighting the user on a mobile device20:32
naccsdeziel: :)20:33
sarnold|\n: hah, love it :)21:18
|\nme 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 so21:27
=== hggdh is now known as WiWoWas
nacc|\n: np22:21
=== WiWoWas is now known as hggdh
=== hggdh is now known as WiWoWasWozu
=== WiWoWasWozu is now known as WieWoWasWozu

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