=== cipi is now known as CiPi
=== markthomas is now known as markthomas|away
=== KD7JWC is now known as kd7jwc
=== tanuki_ is now known as tanuki
=== neurotus is now known as krsna
=== Lcawte|Away is now known as Lcawte
=== CiPi is now known as cipi
=== cipi is now known as CiPi
lordievaderGood morning.08:57
AisonI upgraded trusty to vivid and since then dhcp is no longer working correctly10:45
Aisoni'm not sure if it is a problem of the server or the client10:45
bekkshaison ;)10:45
Aisonbekks, :)10:46
Aisonthe clients no longer set the default route10:46
Aisonas long as the server sends rfc3442-classless-static-routes, the clients set no default route11:00
Tyreal12could 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 available11:04
Tyreal12i am able to ping good via url so the server is connected to the internet11:05
TJ-Tyreal12: what does "apt-cache policy sysv-rc-conf" report?11:05
Tyreal12installed none , candidate non11:06
TJ-Tyreal12: Please pastebin the entire output of that command11:06
Tyreal12sysv-rc-conf :11:10
Tyreal12   Installed: (none)11:10
Tyreal12   Candidate: (none)11:10
Tyreal12   Version table:11:10
Tyreal12is that what you mean?11:10
AisonI 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
Aisonthis restriction is old, but most dhcp clients did not follow it11:12
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:13
Tyreal12you're right, hmmmm i guess i shall attempt to reinstall again11:14
=== Tm_Tr is now known as Guest83949
Tyreal12when installing ubuntu server 14.04 do i just want the OpenSSH server?11:34
Norbinwho knows what you want Tyreal12? :/11:35
Norbinyou might want LAMP etc...11:35
Norbinall up to you11:35
Norbinu can start with openssh and install others later on manually11:35
Tyreal12ok cool, that was the question i should've asked11:38
Tyreal12i went away and thought about it and it was a bit of a silly question11:38
Tyreal12i would just like to say thankyou for all of your help i have it set up with lamp12:05
Tyreal12is it possible to install a gui to the ubuntu server 14.04 if so could someone suggest one12:06
lordievaderTyreal12: It's possible but not frequently done.12:07
bekksTyreal12: Is that a server on the internet?12:07
Tyreal12 may i ask why12:07
Tyreal12it is connected to the internet yes12:07
NorbinTyreal12 sudo apt-get install ubuntu-desktop.... but.... can't recommend it12:07
bekksTyreal12: Is it located at your home?12:07
lordievaderTyreal12: Because servers are generally headless. thus the gui would rarely be seen.12:07
Tyreal12aaahk fair enough12:08
Tyreal12i was wanting to set up a gui and be able to remote access it12:08
bekksTyreal12: Is it located at your home?12:08
Norbinssh all the way12:08
Tyreal12yes bekks12:09
bekksTyreal12: So just install a desktop environment, and use something like freenx12:09
Tyreal12i'm getting dependency errors12:12
lordievaderTyreal12: Could you pastebin those?12:12
Tyreal12i'm not entirely sure on what you mean by pastebin12:14
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.12:14
Tyreal12reading package lists.... done12:20
Tyreal12building dependency tree12:20
Tyreal12reading state information... done12:20
Tyreal12some 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
Tyreal12the following information may help to resolve the situation:12:20
Tyreal12ubuntu-desktop : depends: eog but it is not going to be installed12:20
Tyreal12                 depends: gedit but it is not going to be installed12:20
Tyreal12                 depends: language-selector-gnome but it is not going to be installed12:20
Tyreal12                 depends:lightdm12:20
Tyreal12and it goes on more12:20
Tyreal12did yand at the end it says unable to correct problems, you have help broken packages12:21
lordievaderThat is why I asked you to pastebin the output, prevents spamming the channel. (You could install pastebinit for that).12:24
lordievaderTyreal12: Can you install lightdm?12:25
Tyreal12no i can't12:27
Tyreal12that is miss libglib2.0-bin12:28
lordievaderTyreal12: Check if that package is available.12:29
Tyreal12fixed it and its installing now12: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 happen12:30
Tyreal12so will i be able to have the server as an ftp as well as be able to remote access it12:30
Tyreal12you're right there, however i'm slowly fixing them TJ however i really do appreciate all of your help12:31
lordievaderTyreal12: You are running Trusty right? How does your /etc/apt/sources.list look like? (Pastebin ;) )12:33
Tyreal12i do believe i am, i shall check once lightdm finishes installing12:33
TJ-Tyreal12: I'm wondering if the install media is faulty; the previous install there was no sources.list and no DNS resolution12:34
lordievaderErr, wut? That doesn't sound right indeed.12:35
TJ-lordievader: Right, it was very weird.12:35
Tyreal12yep all trusty12:36
lordievaderTyreal12: Now I'd like to see your sources.list12:38
TJ-Tyreal12: does the PC have full internet connectivity with DNS now?12:39
Tyreal12it does tj12:39
Tyreal12i can access the lamp via its domain12:39
Tyreal12lord that might take be a bit to type12:40
lordievaderTyreal12: Hence the pastebin utility: cat /etc/apt/sources.list | pastebinit12:40
TJ-Tyreal12: If you can "sudo apt-get install pastebinit" that command can send text to a pastebin automatically12:40
Tyreal12yeah i'm seriously thinking i have a bad disc12:43
Tyreal12everything i12:43
Tyreal12download is coming up with errors in it12: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:43
TJ-Tyreal12: I think your network gateway is wrongly configured, or there is some HTTP proxy / MITM12:44
Tyreal12# deb cdrom:[Ubuntu-Server 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted12:45
Tyreal12#deb cdrom:[Ubuntu-Server 14.04.3 LTS _Trusty Tahr_ - Beta i386 (20150805)]/ trusty main restricted12:45
Tyreal12# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to12:45
Tyreal12# newer versions of the distribution.12:45
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty main restricted12:45
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty main restricted12:45
Tyreal12## Major bug fix updates produced after the final release of the12:45
Tyreal12## distribution.12:45
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates main restricted12:45
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-updates main restricted12:45
Tyreal12## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu12:45
Tyreal12## team. Also, please note that software in universe WILL NOT receive any12:45
Tyreal12## review or updates from the Ubuntu security team.12:45
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty universe12:45
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty universe12:45
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates universe12:45
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-updates universe12:45
Tyreal12## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu12:45
Tyreal12## team, and may not be under a free licence. Please satisfy yourself as to12:45
Tyreal12## your rights to use the software. Also, please note that software in12:45
Tyreal12## multiverse WILL NOT receive any review or updates from the Ubuntu12:45
Tyreal12## security team.12:45
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty multiverse12:45
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty multiverse12:45
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates multiverse12:45
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-updates multiverse12:46
Tyreal12## N.B. software from this repository may not have been tested as12:46
Tyreal12## extensively as that contained in the main release, although it includes12: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 review12:46
Tyreal12## or updates from the Ubuntu security team.12:46
Tyreal12deb http://au.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse12:46
Tyreal12deb-src http://au.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse12:46
Tyreal12deb http://security.ubuntu.com/ubuntu trusty-security main restricted12:46
Tyreal12deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted12:46
Tyreal12deb http://security.ubuntu.com/ubuntu trusty-security universe12:46
Tyreal12deb-src http://security.ubuntu.com/ubuntu trusty-security universe12:46
Tyreal12deb http://security.ubuntu.com/ubuntu trusty-security multiverse12:46
Tyreal12deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse12:46
Tyreal12## Uncomment the following two lines to add software from Canonical's12:46
Tyreal12## 'partner' repository.12:46
Tyreal12## This software is not part of Ubuntu, but is offered by Canonical and the12:46
Tyreal12## respective vendors as a service to Ubuntu users.12:46
Tyreal12# deb http://archive.canonical.com/ubuntu trusty partner12:46
Tyreal12# deb-src http://archive.canonical.com/ubuntu trusty partner12:46
Tyreal12## Uncomment the following two lines to add software from Ubuntu's12:46
Tyreal12## 'extras' repository.12:46
Tyreal12## This software is not part of Ubuntu, but is offered by third-party12:46
Tyreal12## developers who want to ship their latest software.12:46
Tyreal12# deb http://extras.ubuntu.com/ubuntu trusty main12:46
Tyreal12# deb-src http://extras.ubuntu.com/ubuntu trusty main12:46
Tyreal12thankyou for that12:46
lordievaderTyreal12: Please use pastebin next time.12:50
Tyreal12 sorry12:50
lordievaderTyreal12: It might be that your mirror is out of date, you could see if changing to the main mirror solves your problems.12:50
Tyreal12forgot to pastebin it12:51
Tyreal12how do i go about changing to main mirror12:52
lordievaderRemove the au from all th au.archive.u.c urls.12:54
Tyreal12 ok cool thats the answer i just found to12:56
TJ-Tyreal12: "sudo sed -i 's/au\.\(archive\)/\1/' /etc/apt/sources.list"12:57
Tyreal12i just changed them and doing an sudo update now12:58
Tyreal12looks like its all worked12:59
Tyreal12yep that did the trick13:00
TJ-If the AU mirror is causing these issues we ought to report it to the mirror team13:00
Tyreal12thank you so much for all of your help13:00
Tyreal12thats a really good idea13:00
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 all13:01
Tyreal12and now onto the next step once the desktop is installed, the ftp13:06
Tyreal12but i shall try not to bother you with it, once again thankyou for your help13:06
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/client13:09
Tyreal12oh really? thankyou for that TJ13:10
Tyreal12i shall look into it13:10
TJ-Tyreal12: if you want to move trees of directories, read up on 'rsync' which also uses SSH under the hood for secure transfer13:11
quanticTyreal12: from an infosec perspective, ftp is the devil. :P13:11
Tyreal12thankyou! 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 network13:12
Tyreal12lol good to know13:12
quanticTyreal12: text console or gui?13:12
TJ-Tyreal12: Everyone uses 'ssh' for remote administration, it is THE standard tool13:12
quanticTyreal12: console is easy - ssh. gui? that's a bit more involved.13:12
TJ-Tyreal12: You can even forward X sessions over ssh if you insist on a GUI desktop on a 'server' :)13:13
Tyreal12i would love to set up both to be honest with you13:13
quanticTyreal12: what TJ- said. X forwarding over SSH.13:13
quanticTJ-: since I don't ever use it, what's a good X server for Windows?13:13
TJ-quantic: *shrugs* ... what is this Windows? :D13:14
quanticTJ-: lol13:14
quanticTyreal12: are you using Windows on the remote side?13:14
Tyreal12lol TJ13:15
Tyreal12i will be yeah, is that a bit more difficult? quantic13:15
quanticTyreal12: nope. see also: PuTTY.13:15
quanticTyreal12: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html13:15
quanticTyreal12: pretty much the go-to ssh client for windows.13:16
Tyreal12that would be 3rd part software correct?13:16
quanticTyreal12: and as for getting gui stuff running remotely, you'll need that plus an X server.13:16
quanticTyreal12: yes.13:16
quanticTyreal12: best x server I've found for windows is VcXsrv.13:16
quanticTyreal12: http://sourceforge.net/projects/vcxsrv/13:16
quanticTyreal12: Xming is also highly regarded.13:17
Tyreal12quantic: 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 it13:17
Tyreal12by highly regarded do you mean secure?13:18
quanticTyreal12: in the world of ssh clients for windows, it's pretty much "putty or gtfo".13:18
TJ-putty has some companion applications that will do scp for you... winscp13:19
Tyreal12quantic: good to know lol13:19
quanticTJ-: or pscp, which comes with putty.13:19
Tyreal12as for accessing from ubuntu would i use the same program?13:19
quanticTyreal12: 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
quanticTyreal12: no, ubuntu (like any Linux/Unix system) has an ssh client built in. it's called "ssh".13:20
Tyreal12quantic: thankyou for that13:20
Tyreal12oh right lol duh13:20
tkxxxHow would I show the the contents of a text file in the shell, with auto numbered paragraphs please?13:21
quantictkxxx: im assuming that said paragraphs span multiple lines?13:22
tkxxxquantic: Yes, it does.13:22
TJ-tkxxx: how is a paragrpah defined?13:23
quantictkxxx: is there a line break in between, does the first line have an indent, etc?13:23
Tyreal12quantic: aaah lubuntu didn't come with it13:24
Tyreal12i had to install it13:24
quanticTyreal12: ssh?13:24
tkxxxTJ-: Yes, it's a line break defining the paragraph split13:24
Tyreal12quantic: yeah13:24
TJ-tkxxx: something like awk 'BEGIN{P=1} N!=1{print P, $0; N=1} /^$/{N=0}' /path/to/file13:24
tkxxxTJ-: Great, so awk is the tool to use for this? Absolutely appreciate this but is this the simplest way of doing it?13:25
tkxxxTJ-: I'd also like to print the last paragraph to the shell (in a separate command)13:26
TJ-tkxxx: I see to recall there is a tool that can do it in coreutils13:27
TJ-tkxxx: see 'man fmt'13:29
quanticgotta 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
TJ-tkxxx: That seems to be more about reflowing into paras13:30
TJ-quantic: Oh, I like ranting about systemd too :p13:30
tkxxxTJ-: Cool, will have a look into this.13:30
Tyrealquantic: with putty do i download the putty.exe?13:31
quanticTyreal: http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.65-installer.exe13:31
quanticTyreal: that'll get you the whole set.13:31
Tyrealquantic: thankyou13:35
Tyrealquantic: so using PuTTY and VcXsrv i can move files back and forth from server to the computer i access the server from13:36
quanticTyreal: eh, no.13:36
quanticTyreal: Putty and X allow you to use GUI programs that are running on the server remotely on the client.13:37
quanticFile transfer is accomplished through scp, like using WinSCP.13:37
Tyrealthankyou for clearing that up for me13:37
quanticIt requires no setup beyond that of ssh. It's automatically running as long as an ssh server is running on the server.13:37
Tyrealwhich there should be considering that was the one i had ticket when i setup the server initially13:38
Tyrealquantic may i ask you assistance one last time14:00
quanticTyreal: what's up?14:01
Tyreali'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 here14:04
Tyreali need to find out what my domain name/ip address of the server14:04
Tyreali think i also need to configure the ssh14:05
fnewugfr94hello! 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:19
RoyKfnewugfr94: 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 learn16:22
fnewugfr94RoyK: 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:23
RoyKthe 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 insert16:25
fnewugfr94RoyK: 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:27
=== CiPi is now known as cipi
=== cipi is now known as CiPi
RoyKfnurl: generally iptables is so fast it won't matter much, but I guess a thousand rules or so may add some microseconds16:58
RoyKfnurl: oops - that was for fnewugfr94 - sorry16:58
roastedhi 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/6edUYh5S17:30
roastedeverything is tabbed by the way17:31
RoyKroasted: [rw]size isn't really necessary17:31
RoyKroasted: but I beleive nfs4 is standard, so you might add sec=sys17:31
roastedoh, I wonder...17:32
roastedwould I not put nfs4 instead of nfs under type?17:32
bekksroasted: you should not use manual mountpoint inside /media since that directory is used by the automounter.17:32
RoyKbekks: on desktops, mostly17:32
roastedbekks: I switched to mnt to test but I got the same error.17:32
RoyKwhat error?17:33
roastedthe fstab is bad on line 14 error17:33
roastedas in, no change.17:34
qman__you have a space and teh word defaults17:34
qman__remove those17:34
qman__there are only six fields, you have seven because of that17:35
RoyKright - defaults isn't needed and if you want it anyway, use a comma, not a space17:35
roastedthat was it17:35
roastedwhere do I overnight the beer? :P17:35
RoyKupload it :D17:36
roastedto my now-working owncloud?? :D17:36
RoyKowncloud is nice ;)17:38
roastedI dig it.17:40
roastedI need to look into containers sometime.17:40
roastedright 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
roastedbut 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.17:41
=== trabbit_ is now known as trabbit

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