[08:57] <lordievader> Good morning.
[10:45] <Aison> hello
[10:45] <Aison> I upgraded trusty to vivid and since then dhcp is no longer working correctly
[10:45] <Aison> i'm not sure if it is a problem of the server or the client
[10:45] <bekks> haison ;)
[10:46] <Aison> bekks, :)
[10:46] <Aison> the clients no longer set the default route
[11:00] <Aison> as long as the server sends rfc3442-classless-static-routes, the clients set no default route
[11:04] <Tyreal12> could someone please help me, i'm attempting to install sysv-rc-conf onto my ubuntu server 14.04 32 bit and the message i get is package sysv-rc-conf is not available
[11:05] <Tyreal12> i am able to ping good via url so the server is connected to the internet
[11:05] <Tyreal12> google*
[11:05] <TJ-> Tyreal12: what does "apt-cache policy sysv-rc-conf" report?
[11:06] <Tyreal12> installed none , candidate non
[11:06] <Tyreal12> none*
[11:06] <TJ-> Tyreal12: Please pastebin the entire output of that command
[11:10] <Tyreal12> sysv-rc-conf :
[11:10] <Tyreal12>    Installed: (none)
[11:10] <Tyreal12>    Candidate: (none)
[11:10] <Tyreal12>    Version table:
[11:10] <Tyreal12> is that what you mean?
[11:12] <Aison> I found the reason: "If the DHCP server returns both a Classless Static Routes option and a Router option, the DHCP client MUST ignore the Router option."
[11:12] <Aison> this restriction is old, but most dhcp clients did not follow it
[11:13] <TJ-> Tyreal12: If there are no versions listed that means you didn't correctly install Ubuntu, and there is no valid "/etc/apt/sources.list"
[11:14] <Tyreal12> you're right, hmmmm i guess i shall attempt to reinstall again
[11:34] <Tyreal12> when installing ubuntu server 14.04 do i just want the OpenSSH server?
[11:35] <Norbin> who knows what you want Tyreal12? :/
[11:35] <Norbin> you might want LAMP etc...
[11:35] <Norbin> all up to you
[11:35] <Norbin> u can start with openssh and install others later on manually
[11:38] <Tyreal12> ok cool, that was the question i should've asked
[11:38] <Tyreal12> i went away and thought about it and it was a bit of a silly question
[12:05] <Tyreal12> i would just like to say thankyou for all of your help i have it set up with lamp
[12:06] <Tyreal12> is it possible to install a gui to the ubuntu server 14.04 if so could someone suggest one
[12:07] <lordievader> Tyreal12: It's possible but not frequently done.
[12:07] <bekks> Tyreal12: Is that a server on the internet?
[12:07] <Tyreal12>  may i ask why
[12:07] <Tyreal12> it is connected to the internet yes
[12:07] <Norbin> Tyreal12 sudo apt-get install ubuntu-desktop.... but.... can't recommend it
[12:07] <bekks> Tyreal12: Is it located at your home?
[12:07] <lordievader> Tyreal12: Because servers are generally headless. thus the gui would rarely be seen.
[12:08] <Tyreal12> aaahk fair enough
[12:08] <Tyreal12> i was wanting to set up a gui and be able to remote access it
[12:08] <bekks> Tyreal12: Is it located at your home?
[12:08] <Norbin> ssh all the way
[12:09] <Tyreal12> yes bekks
[12:09] <bekks> Tyreal12: So just install a desktop environment, and use something like freenx
[12:12] <Tyreal12> i'm getting dependency errors
[12:12] <lordievader> Tyreal12: Could you pastebin those?
[12:14] <Tyreal12> i'm not entirely sure on what you mean by pastebin
[12:14] <lordievader> !pastebin
[12:20] <Tyreal12> reading package lists.... done
[12:20] <Tyreal12> building dependency tree
[12:20] <Tyreal12> reading state information... done
[12:20] <Tyreal12> some packages could not be installed. this may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packes have not yet been created or been moved out of incoming.
[12:20] <Tyreal12> the following information may help to resolve the situation:
[12:20] <Tyreal12> ubuntu-desktop : depends: eog but it is not going to be installed
[12:20] <Tyreal12>                  depends: gedit but it is not going to be installed
[12:20] <Tyreal12>                  depends: language-selector-gnome but it is not going to be installed
[12:20] <Tyreal12>                  depends:lightdm
[12:20] <Tyreal12> and it goes on more
[12:21] <Tyreal12> did yand at the end it says unable to correct problems, you have help broken packages
[12:24] <lordievader> That is why I asked you to pastebin the output, prevents spamming the channel. (You could install pastebinit for that).
[12:25] <lordievader> Tyreal12: Can you install lightdm?
[12:27] <Tyreal12> no i can't
[12:28] <Tyreal12> that is miss libglib2.0-bin
[12:29] <lordievader> Tyreal12: Check if that package is available.
[12:30] <Tyreal12> fixed it and its installing now
[12:30] <TJ-> Tyreal12: All the problems you're having with these installs suggests there is some much larger problem - none of these issues should or do normally happen
[12:30] <Tyreal12> so will i be able to have the server as an ftp as well as be able to remote access it
[12:31] <Tyreal12> your'
[12:31] <Tyreal12> you're right there, however i'm slowly fixing them TJ however i really do appreciate all of your help
[12:33] <lordievader> Tyreal12: You are running Trusty right? How does your /etc/apt/sources.list look like? (Pastebin ;) )
[12:33] <Tyreal12> i do believe i am, i shall check once lightdm finishes installing
[12:34] <TJ-> Tyreal12: I'm wondering if the install media is faulty; the previous install there was no sources.list and no DNS resolution
[12:35] <lordievader> Err, wut? That doesn't sound right indeed.
[12:35] <TJ-> lordievader: Right, it was very weird.
[12:36] <Tyreal12> yep all trusty
[12:38] <lordievader> Tyreal12: Now I'd like to see your sources.list
[12:39] <TJ-> Tyreal12: does the PC have full internet connectivity with DNS now?
[12:39] <Tyreal12> it does tj
[12:39] <Tyreal12> i can access the lamp via its domain
[12:40] <Tyreal12> lord that might take be a bit to type
[12:40] <lordievader> Tyreal12: Hence the pastebin utility: cat /etc/apt/sources.list | pastebinit
[12:40] <TJ-> Tyreal12: If you can "sudo apt-get install pastebinit" that command can send text to a pastebin automatically
[12:43] <Tyreal12> yeah i'm seriously thinking i have a bad disc
[12:43] <Tyreal12> everything i
[12:43] <Tyreal12> download is coming up with errors in it
[12:43] <TJ-> Tyreal12: if you cannot install pastebinit due to system problems, you can do it manually with "cat /etc/apt/sources.list | nc termbin.com 9999"
[12:44] <TJ-> Tyreal12: I think your network gateway is wrongly configured, or there is some HTTP proxy / MITM
[12:45] <Tyreal12> #
[12:45] <Tyreal12> # deb cdrom:[Ubuntu-Server 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted
[12:45] <Tyreal12> #deb cdrom:[Ubuntu-Server 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted
[12:45] <Tyreal12> # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
[12:45] <Tyreal12> # newer versions of the distribution.
[12:45] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty main restricted
[12:45] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty main restricted
[12:45] <Tyreal12> ## Major bug fix updates produced after the final release of the
[12:45] <Tyreal12> ## distribution.
[12:45] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
[12:45] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
[12:45] <Tyreal12> ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
[12:45] <Tyreal12> ## team. Also, please note that software in universe WILL NOT receive any
[12:45] <Tyreal12> ## review or updates from the Ubuntu security team.
[12:45] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty universe
[12:45] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty universe
[12:45] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates universe
[12:45] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-updates universe
[12:45] <Tyreal12> ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
[12:45] <Tyreal12> ## team, and may not be under a free licence. Please satisfy yourself as to
[12:45] <Tyreal12> ## your rights to use the software. Also, please note that software in
[12:45] <Tyreal12> ## multiverse WILL NOT receive any review or updates from the Ubuntu
[12:45] <Tyreal12> ## security team.
[12:45] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty multiverse
[12:45] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty multiverse
[12:45] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
[12:46] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
[12:46] <Tyreal12> ## N.B. software from this repository may not have been tested as
[12:46] <Tyreal12> ## extensively as that contained in the main release, although it includes
[12:46] <Tyreal12> ## newer versions of some applications which may provide useful features.
[12:46] <Tyreal12> ## Also, please note that software in backports WILL NOT receive any review
[12:46] <Tyreal12> ## or updates from the Ubuntu security team.
[12:46] <Tyreal12> deb http://au.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
[12:46] <Tyreal12> deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
[12:46] <Tyreal12> deb http://security.ubuntu.com/ubuntu trusty-security main restricted
[12:46] <Tyreal12> deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
[12:46] <Tyreal12> deb http://security.ubuntu.com/ubuntu trusty-security universe
[12:46] <Tyreal12> deb-src http://security.ubuntu.com/ubuntu trusty-security universe
[12:46] <Tyreal12> deb http://security.ubuntu.com/ubuntu trusty-security multiverse
[12:46] <Tyreal12> deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
[12:46] <Tyreal12> ## Uncomment the following two lines to add software from Canonical's
[12:46] <Tyreal12> ## 'partner' repository.
[12:46] <Tyreal12> ## This software is not part of Ubuntu, but is offered by Canonical and the
[12:46] <Tyreal12> ## respective vendors as a service to Ubuntu users.
[12:46] <Tyreal12> # deb http://archive.canonical.com/ubuntu trusty partner
[12:46] <Tyreal12> # deb-src http://archive.canonical.com/ubuntu trusty partner
[12:46] <Tyreal12> ## Uncomment the following two lines to add software from Ubuntu's
[12:46] <Tyreal12> ## 'extras' repository.
[12:46] <Tyreal12> ## This software is not part of Ubuntu, but is offered by third-party
[12:46] <Tyreal12> ## developers who want to ship their latest software.
[12:46] <Tyreal12> # deb http://extras.ubuntu.com/ubuntu trusty main
[12:46] <Tyreal12> # deb-src http://extras.ubuntu.com/ubuntu trusty main
[12:46] <Tyreal12> thankyou for that
[12:47] <bekks> *plonk*
[12:50] <lordievader> Tyreal12: Please use pastebin next time.
[12:50] <Tyreal12>  sorry
[12:50] <lordievader> Tyreal12: It might be that your mirror is out of date, you could see if changing to the main mirror solves your problems.
[12:51] <Tyreal12> forgot to pastebin it
[12:52] <Tyreal12> how do i go about changing to main mirror
[12:54] <lordievader> Remove the au from all th au.archive.u.c urls.
[12:54] <lordievader> the*
[12:56] <Tyreal12>  ok cool thats the answer i just found to
[12:57] <TJ-> Tyreal12: "sudo sed -i 's/au\.\(archive\)/\1/' /etc/apt/sources.list"
[12:58] <Tyreal12> i just changed them and doing an sudo update now
[12:59] <Tyreal12> looks like its all worked
[13:00] <Tyreal12> yep that did the trick
[13:00] <TJ-> If the AU mirror is causing these issues we ought to report it to the mirror team
[13:00] <Tyreal12> thank you so much for all of your help
[13:00] <Tyreal12> thats a really good idea
[13:01] <TJ-> Tyreal12: /join #ubuntu-mirrors and report it to the folks in that channel. Tell them the mirror seems to be missing Trusty packages/not responding correctly at all
[13:06] <Tyreal12> and now onto the next step once the desktop is installed, the ftp
[13:06] <Tyreal12> but i shall try not to bother you with it, once again thankyou for your help
[13:09] <TJ-> Tyreal12: If you really need FTP, vsftpd, but be sure you actually need it first. There are other ways of moving files such as 'scp' which uses the SSH protocol/client
[13:10] <Tyreal12> oh really? thankyou for that TJ
[13:10] <Tyreal12> i shall look into it
[13:11] <TJ-> Tyreal12: if you want to move trees of directories, read up on 'rsync' which also uses SSH under the hood for secure transfer
[13:11] <quantic> Tyreal12: from an infosec perspective, ftp is the devil. :P
[13:12] <Tyreal12> thankyou! TJ also if you wouldn't mind me asking one last thing that you might be able to suggest would be remote access within and outside of the home network
[13:12] <Tyreal12> lol good to know
[13:12] <quantic> Tyreal12: text console or gui?
[13:12] <TJ-> Tyreal12: Everyone uses 'ssh' for remote administration, it is THE standard tool
[13:12] <quantic> Tyreal12: console is easy - ssh. gui? that's a bit more involved.
[13:13] <TJ-> Tyreal12: You can even forward X sessions over ssh if you insist on a GUI desktop on a 'server' :)
[13:13] <Tyreal12> i would love to set up both to be honest with you
[13:13] <quantic> Tyreal12: what TJ- said. X forwarding over SSH.
[13:13] <quantic> TJ-: since I don't ever use it, what's a good X server for Windows?
[13:14] <TJ-> quantic: *shrugs* ... what is this Windows? :D
[13:14] <quantic> TJ-: lol
[13:14] <quantic> Tyreal12: are you using Windows on the remote side?
[13:15] <Tyreal12> lol TJ
[13:15] <Tyreal12> i will be yeah, is that a bit more difficult? quantic
[13:15] <quantic> Tyreal12: nope. see also: PuTTY.
[13:15] <quantic> Tyreal12: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
[13:16] <quantic> Tyreal12: pretty much the go-to ssh client for windows.
[13:16] <Tyreal12> that would be 3rd part software correct?
[13:16] <quantic> Tyreal12: and as for getting gui stuff running remotely, you'll need that plus an X server.
[13:16] <quantic> Tyreal12: yes.
[13:16] <quantic> Tyreal12: best x server I've found for windows is VcXsrv.
[13:16] <quantic> Tyreal12: http://sourceforge.net/projects/vcxsrv/
[13:17] <quantic> Tyreal12: Xming is also highly regarded.
[13:17] <Tyreal12> quantic: is putty a trusted 3rd party? reason why i ask is cause i have recently formatted and gone through hell and back to fix my computer so i only want trusted software on it
[13:18] <Tyreal12> by highly regarded do you mean secure?
[13:18] <quantic> Tyreal12: in the world of ssh clients for windows, it's pretty much "putty or gtfo".
[13:19] <TJ-> putty has some companion applications that will do scp for you... winscp
[13:19] <Tyreal12> quantic: good to know lol
[13:19] <quantic> TJ-: or pscp, which comes with putty.
[13:19] <Tyreal12> as for accessing from ubuntu would i use the same program?
[13:20] <quantic> Tyreal12: to level with you about security (its a big part of what I do professionally), the vast majority of security will be made or broken based on your practices, not on the software you use.
[13:20] <quantic> Tyreal12: no, ubuntu (like any Linux/Unix system) has an ssh client built in. it's called "ssh".
[13:20] <Tyreal12> quantic: thankyou for that
[13:20] <Tyreal12> oh right lol duh
[13:21] <tkxxx> How would I show the the contents of a text file in the shell, with auto numbered paragraphs please?
[13:22] <quantic> tkxxx: im assuming that said paragraphs span multiple lines?
[13:22] <tkxxx> quantic: Yes, it does.
[13:23] <TJ-> tkxxx: how is a paragrpah defined?
[13:23] <quantic> tkxxx: is there a line break in between, does the first line have an indent, etc?
[13:24] <Tyreal12> quantic: aaah lubuntu didn't come with it
[13:24] <Tyreal12> i had to install it
[13:24] <quantic> Tyreal12: ssh?
[13:24] <tkxxx> TJ-: Yes, it's a line break defining the paragraph split
[13:24] <Tyreal12> quantic: yeah
[13:24] <TJ-> tkxxx: something like awk 'BEGIN{P=1} N!=1{print P, $0; N=1} /^$/{N=0}' /path/to/file
[13:25] <tkxxx> TJ-: Great, so awk is the tool to use for this? Absolutely appreciate this but is this the simplest way of doing it?
[13:26] <tkxxx> TJ-: I'd also like to print the last paragraph to the shell (in a separate command)
[13:27] <TJ-> tkxxx: I see to recall there is a tool that can do it in coreutils
[13:29] <TJ-> tkxxx: see 'man fmt'
[13:29] <quantic> gotta say... this is why I use ubuntu, anymore. in order distro channels that shall remain nameless, people are calling each other homophobic names and ranting about systemd.
[13:29] <quantic> s/order/other/
[13:30] <TJ-> tkxxx: That seems to be more about reflowing into paras
[13:30] <TJ-> quantic: Oh, I like ranting about systemd too :p
[13:30] <tkxxx> TJ-: Cool, will have a look into this.
[13:31] <Tyreal> quantic: with putty do i download the putty.exe?
[13:31] <quantic> Tyreal: http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.65-installer.exe
[13:31] <quantic> Tyreal: that'll get you the whole set.
[13:35] <Tyreal> quantic: thankyou
[13:36] <Tyreal> quantic: so using PuTTY and VcXsrv i can move files back and forth from server to the computer i access the server from
[13:36] <quantic> Tyreal: eh, no.
[13:37] <quantic> Tyreal: Putty and X allow you to use GUI programs that are running on the server remotely on the client.
[13:37] <quantic> File transfer is accomplished through scp, like using WinSCP.
[13:37] <Tyreal> thankyou for clearing that up for me
[13:37] <quantic> It requires no setup beyond that of ssh. It's automatically running as long as an ssh server is running on the server.
[13:38] <Tyreal> ok!
[13:38] <Tyreal> which there should be considering that was the one i had ticket when i setup the server initially
[14:00] <Tyreal> quantic may i ask you assistance one last time
[14:01] <quantic> Tyreal: what's up?
[14:04] <Tyreal> i've got ubuntu gui set up now. and i've got the PuTTY configuration up to remote access from Lubuntu, so my question is where do i go from here
[14:04] <Tyreal> i need to find out what my domain name/ip address of the server
[14:05] <Tyreal> i think i also need to configure the ssh
[16:19] <fnewugfr94> hello! what would be the best way to block complete access from some ip or subnet on ubuntu server? i found possibility with ufw, but are there any other, maybe even better ways to do that?
[16:22] <RoyK> fnewugfr94: just enable ufw - start with "ufw allow ssh" and "ufw enable" and take it from there. ufw is a frontend for iptables, so it's possible with raw iptables too, but ufw is a bit easier to learn
[16:23] <fnewugfr94> RoyK: i already have enabled ufw and few rules for ssh and other services in it. i guess that there is still important order of rules?
[16:25] <RoyK> the order is important, yes. if a rule at the top allows for access to something and the ip address in question is blocked further down, it won't help. see ufw insert
[16:27] <fnewugfr94> RoyK: and the last question... what if I will need to block new ip addresses or subnets - can the number of deny rules affects response speed?
[16:58] <RoyK> fnurl: generally iptables is so fast it won't matter much, but I guess a thousand rules or so may add some microseconds
[16:58] <RoyK> fnurl: oops - that was for fnewugfr94 - sorry
[17:30] <roasted> hi friends. Trying to get an NFS mount point set up between two ubuntu servers (14.04). This is my fstab on the client. It keeps saying bad fstab line 14. I can't seem to articulate where the issue is. http://pastebin.com/6edUYh5S
[17:31] <roasted> everything is tabbed by the way
[17:31] <RoyK> roasted: [rw]size isn't really necessary
[17:31] <RoyK> roasted: but I beleive nfs4 is standard, so you might add sec=sys
[17:32] <roasted> oh, I wonder...
[17:32] <roasted> would I not put nfs4 instead of nfs under type?
[17:32] <bekks> roasted: you should not use manual mountpoint inside /media since that directory is used by the automounter.
[17:32] <RoyK> bekks: on desktops, mostly
[17:32] <roasted> bekks: I switched to mnt to test but I got the same error.
[17:33] <RoyK> what error?
[17:33] <roasted> the fstab is bad on line 14 error
[17:34] <roasted> as in, no change.
[17:34] <qman__> you have a space and teh word defaults
[17:34] <qman__> remove those
[17:35] <qman__> there are only six fields, you have seven because of that
[17:35] <RoyK> right - defaults isn't needed and if you want it anyway, use a comma, not a space
[17:35] <roasted> boom
[17:35] <roasted> that was it
[17:35] <roasted> where do I overnight the beer? :P
[17:36] <RoyK> upload it :D
[17:36] <roasted> to my now-working owncloud?? :D
[17:38] <RoyK> owncloud is nice ;)
[17:40] <roasted> I dig it.
[17:40] <roasted> I need to look into containers sometime.
[17:41] <roasted> right now I have 14.04 on the hardware, then a 14.04 VM for external stuff (mostly to IP them separately and keep NAS internal and external stuff accessible externally)
[17:41] <roasted> but I didn't want OC data in a virtual disk, so I NFS the mount point back to the RAID on the hardware-based-14.04-instance.