/srv/irclogs.ubuntu.com/2016/08/28/#ubuntu-server.txt

=== JanC is now known as Guest92969
=== JanC_ is now known as JanC
jayjois there a way to read a specific line of a file? I want to only look at line 852603:01
=== johnlage_ is now known as johnlage
=== froike- is now known as froike
=== akaWolf1 is now known as akaWolf
=== AMZ__ is now known as AMZ_
sikunugh.. all that much trouble over a very simple/stupid mistake04:01
antipsychiatryHi06:51
=== olegb_ is now known as olegb
PCdudeI am having difficulty with installing openstack on ubuntu , when the installer uses JUJU to bootstrap a node it stops and crashes08:06
PCdudeanyone here to help?08:06
=== jelly-home is now known as jelly
=== Daviey_ is now known as Daviey
fklinguistaHello everyone!08:34
fklinguistaI'm new to the Ubuntu server scene and I'm trying to make a personal file server in my apartment, here in Thailand.08:34
fklinguistaThe server is up and running nicely with webmin and I'm able to ssh when connected directly through a LAN cable08:35
fklinguista... from my laptop to the server, that is08:35
fklinguistaBut there's one issue.08:35
fklinguistaIn most Thai apartments, there is no wired connection available, only wireless08:36
fklinguistaand while I fiddled for an hour with the cmd line, I got my server to recognize a wireless adapter and connect to the ESSID08:36
fklinguistaand then used curl to bypass the login screen08:36
fklinguistahowever, when I tried to ping from the device to 8.8.8.8, for example, I still got "Host Unreachable"08:37
fklinguistaI'm also unable to connect to the device through the IP address assigned to it by the server.08:37
fklinguista**by the apartment complex router08:37
ikoniafroike: sadly webmin is not something we suport08:58
ikoniaoops08:58
sikunugh.. webmin09:01
fklinguistaHello, is anyone online now?09:36
PCdudeyes, I am here also waiting for help09:37
PCdudewhat does ur /etc/network/interfaces file says?09:37
PCdudeu configured the gateway?09:37
fklinguistaI think the gateway configuration is the problem09:41
fklinguistaSo, I did a little bit of troubleshooting09:41
fklinguistaI can ping my apartment's gateway from the server09:42
fklinguistaBut I can't ping the IP assigned to the server from the apartment router09:42
fklinguistaHere's the output of /etc/network/interfaces09:42
fklinguista# The loopback network interface09:42
fklinguistaauto lo09:42
fklinguistaiface lo inet loopback09:42
fklinguista# The primary network interface09:42
fklinguistaauto enp2s009:42
fklinguistaiface enp2s0 inet dhcp09:42
fklinguista#Edit to see if wifi can connect09:43
fklinguistaauto wlxc412f52e9c1409:43
fklinguistaiface wlxc412f52e9c14 inet dhcp09:43
fklinguistawireless-essid   SSK-FLoor5-109:43
fklinguistawireless-channel 109:43
fklinguistawireless-mode    managed09:43
fklinguistaI set up the last bit to allow my wireless device to connect to my apartment's network automatically09:43
PCdudeI think its a firewall problem09:48
PCdudesince the ping from the router to the server does not succeed09:48
PCdudeprobably ur server is blocking these and will not respond to them09:48
PCdudewhich can be a security measurement on servers sometimes09:49
PCdudewhat u can try is disable ur firewall and see if things start to work again09:49
fklinguistaHmm09:49
PCdudeif that is the case, then u can try to tweak ur firewall so it works like u need to09:49
fklinguistaYeah, I just pinged the gateway from my router and it works09:49
PCdudecan u ping the server from a different device?09:50
fklinguistaOh sorry, I meant pinged the gateway from my server09:50
fklinguistaI can ping the server's local IP (I'm connected via SSH through a LAN cable)09:50
fklinguistaBut I can't ping the DHCP IP that my router assigned it09:50
fklinguistafrom any device09:50
fklinguistaI also put up a test index.html file, which I cannot view by entering the IP assigned by the router09:51
PCdudeuhm, I am not following u there09:51
PCdudethe server has 2 IP addresses?09:51
fklinguistaWell, in order to manage my server, after I installed it (I borrowed a monitor to do it), I connected it to my laptop via SSH to configure it09:52
fklinguistaso, if I were to run ifconfig, it has 1 IP address under the ethernet connection (to my laptop)09:53
fklinguistaand another IP under the wireless connection (to the server)09:53
fklinguista**router09:53
fklinguistaSo, I can access the server from my laptop through the ethernet address assigned to it09:54
fklinguistabut I cannot access the server from any device connected to my apartment's router even though the device is also connected to the router09:54
fklinguistaDoes that make sense?09:55
PCdudeah ok, I get it09:55
PCdudeyes it does09:55
fklinguistaSo, I guess the easier question is...09:55
fklinguistaIs it my apartment's router that's blocking me from connecting to my server through the IP assigned to it?09:55
fklinguistaBecause if so, then all hope is lost.  Lol09:56
PCdudeno, definitely not09:56
PCdudeur router can function as a DHCP server09:56
PCdudeand thats all he does09:56
PCdudehe gives ur server an IP and thats it09:56
PCdudethere is no control of who tries to access the servers IP directly09:56
PCdudethe router has no control over that09:57
fklinguistahmm09:57
PCdudeif u go through the router to the internet then the router can have affect on it09:57
PCdudebut u are capable of pinging the routers IP with ur server from the wireless connection?09:57
fklinguistaYes09:57
fklinguistaI ran ping -I wlxc412f52e9c14 192.168.2.25409:58
fklinguistathe wl... is the dev ID09:58
fklinguistaand the 192... is the gateway09:58
PCdudecan u ping outside of ur LAN, e.g. can u ping 8.8.8.8 or ping google.com09:58
PCdude?09:58
PCdudewith the server09:58
fklinguistaHost Unreachable09:58
PCdudewith both the 8.8.8.8 and google.com?09:59
fklinguistaWell, that's because Thailand has a stupid login system09:59
fklinguistaI could log in and it would work09:59
fklinguistaBut it would knock me off of my internet here09:59
fklinguistaKind of like how coffee shops only allow connection with a log in10:00
fklinguistabut trust me, it works if I log in10:00
PCdudeI am not from thailand, so I have no clue on helping u with that :)10:00
PCdudebut u have to log in with ur router?10:01
fklinguistaYes10:01
fklinguistaI use curl for that purpose10:01
fklinguistajust curl and send the login information to the .php page10:01
PCdudeand why are u not logged in? maybe a stupid question10:01
fklinguistaIf I log in on the server, I wouldn't be able to chat here10:01
fklinguistahaha10:01
fklinguistaI could do it quickly and then come back10:01
fklinguistaLet's see... brb10:02
fklinguistaOkay10:03
fklinguistaI just logged in and back out10:03
fklinguistapinging google works10:03
fklinguistaI could ping google after I logged in10:03
PCdudeso ur router is normally logged in?10:03
fklinguistaI used ping -I wlxc412f52e9c14 8.8.8.810:04
fklinguistato make sure it was pinging from the wireless and not the shared ethernet10:04
fklinguistaYes10:04
fklinguistaBut, to clarify, it's not my router, so I can't control any of it10:05
PCdudeah ok, but u have internet access on multiple devices?10:05
PCdudeits like u can only have internet on one device at a time?10:05
PCdude*not10:05
fklinguistaYes10:06
fklinguistathat's correct10:06
fklinguistabut I still thought I'd be able to connect to my server, even if I don't have www access10:06
fklinguistabecause all of my devices are on the same router10:06
PCdudethat is correct10:07
fklinguistaYeah, so let me clarify...  I can connect to the router with multiple devices10:07
fklinguistabut only 1 device can be on the www at a time10:07
PCdudeI dont want to be a purist here, but for future use I would suggest u refer to "www" as the WAN. I dont care how u call it but some people dont like it10:08
fklinguistaNo problem.10:08
PCdudeis ur router also used as a switch?10:08
fklinguistaI'm actually not sure10:09
fklinguistaI'll try to describe the system as best as I know it10:09
PCdudeare all ur wired devices connected to the router itself?10:09
PCdudeand all ur wireless devices are directly connected to the router with a password?10:10
fklinguistaWell, this is the screwed-up part.10:10
fklinguistaThe WLAN network here is not up to American standards, I'm afraid.10:10
fklinguistaIt's an Open Network in that anyone can connect to it10:10
fklinguistabut one can only connect to WAN by entering the credentials at the login page10:11
PCdudeanyone, as in the whole country shares the same WLAN?10:11
fklinguistaand no, we do not have access to the router for wired devices10:11
fklinguistaNot the whole country, but the whole apartment complex10:11
fklinguistaIt's like this...10:11
fklinguistaThere is the modem from the ISP, which is connected to a firewall device, which serves as the login manager10:12
fklinguistathen that firewall is connected via LAN cable to many different Wireless routers10:12
fklinguistaeach wireless router has a different ESSID10:12
fklinguistaand there are two wireless routers for every floor of each building10:12
fklinguista5 floors in this building, 5 in the other building, so 20 wireless routers in total10:13
fklinguistaall connected to 1 firewall, leading to 1 model10:14
fklinguista**modem10:14
fklinguistaThis is one reason why I want a server, because I do not trust the connection to be able to run Dropbox or another cloud10:14
fklinguistaand personally, I'm a bit afraid of someone being able to steal my data due to the nature of this10:14
fklinguistaI was able to very easily clone one of my MAC addresses to log in via a different device10:15
PCdudeuhm ok, well there are a lot of network devices in place there so I think those can block any signal u have.10:15
PCdudeThat could be the reason those pings do not succeed10:15
PCdudeAs I were u, I would install "pfsense" ,"ipcop" or "ipfire" as an extra firewall10:16
PCdudethose can protect u from alot of horrible things10:16
PCdudeI agree about the cloud part with u10:17
PCdudeI would suggest u make ur own firewall that functions as the login device10:17
PCdudetherefore u can have a bunch of other devices behind that all can have internet10:17
fklinguistaWell, if I had the money, I'd just get my own separate ISP10:17
PCdudeif u make ur own firewall/router u can setup a NAT system10:18
fklinguistaWell, actually, I bought a separate WLAN device and, using my Linux Mint laptop10:18
fklinguistawas able to bridge the connection to another WLAN coming from the laptop's primary WLAN card10:18
PCdudeah ok ,good10:18
fklinguistathat's how I got multiple devices to log in10:18
fklinguistabut that requires my laptop to always be on and here10:19
PCdudetrue, well I think u can solve some of ur problems with an home made router/firewall10:19
fklinguistaYes, I agree10:20
PCdudeu can even disguish ur VPN network communication as another protocol10:20
fklinguistaI suppose I could use the Ubuntu Server as a half file server half router, couldn't I ?10:20
PCdudeyes, u can, but I would not suggest10:21
PCdudeit10:21
PCdudeif u were u I would install vmware vsphere10:21
PCdudeits free10:21
PCdudeu can install that on ur server10:21
PCdudeas a VM u can install ubuntu server and do what u want with it10:21
PCdudeand also make a seperate firewall VM10:21
PCdudeI would not use ubuntu as a firewall10:21
fklinguistaupon install, I selected to install a VM server10:22
fklinguistabut I don't know much about how to run virtual servers yet10:22
PCdudefirst off its harder to do it all urself, if u are a linux and network guru I would say go for it10:22
fklinguistaI'm learning little-by-little10:22
PCdudebut else I would go for pfsense or something like that10:22
PCdudeyes u can run a VM in ubuntu10:22
PCdudebut that is not what u want10:22
PCdudeand well for a very simple reason10:23
PCdudeubuntu is a good OS, but is leaves a big "footprint" on ur resources10:23
PCdudeinstead u want a hypervisor type 1 that has a lot smaller footprint10:23
PCdudesomething like vmware esxi, or xen server,10:23
PCdudewhat I would suggest that u have enough RAM in ur server10:24
PCdudeas bare minimum 8 GB and 16 or more is desirable10:24
PCdudeis that making sense?10:25
fklinguistaYes, it does10:28
fklinguistaWould you still know anyway, why I can't ping my server's WLAN IP from other devices connected to the router?10:29
PCdudeyes I think I know what the problem is10:29
fklinguistafor example, my server is 192.168.2.57 and it can't ping 192.168.2.4410:29
PCdudethere is a sub system that is called "device isolation" or something like that10:29
PCdudewhat that does is seperate all devices on the network from eachother, this is only done on wireless networks10:30
PCdudethis is a security measurement10:30
PCdudebasically, so u or anyone else will not try to connect or even break in other devices10:30
fklinguistaOh, well that's actually not a bad thing10:31
fklinguistaIt sucks for my situation, but it's not bad10:31
PCdudethe only thing u can do is make ur own WLAN and bridge it to the buildings network10:31
PCdudethen make sure the device isolation is turned off and u can connect ur devices to eachother as much as u like10:32
PCdudeif u wanna learn more about networking I suggest u can take a study called "CCENT" or higher10:32
tomreyndevice isolation can also be an option onyour routers' web admin interface10:33
PCdudethat is indeed correct tomreyn10:33
tomreyni.e. you may be anle to switch it on / off there10:33
tomreyn*aBle10:33
PCdudetomreyn are u familiar with openstack?10:34
tomreynnot really, no10:34
PCdudeI am banging my head over it , I just cannot get it to install10:35
tomreyni'd like to learn it sometime, but i never really had a need to. and it's still somewhat young. and complex.10:35
PCdudecomplex for sure, thats why I decided to use ubuntu with landscape it should make things alot easier and a good opportunity to learn from it10:36
tomreyni know of multiple hosting providers which had examination projects running for a year just to see whether they could get it to work and make use of it.10:36
PCdudeI get everything installed until the last step and than it hangs and leaves me hanging10:36
PCdudeI hope someday all the projects are put together on one table and make one project out of it, all those separate projects is killing the robustness of openstack IMHO10:37
tomreyn:-/ sorry i probably won't be able to help unless it's some commonly used stand-alone components which are not openstack specific.10:37
PCdudewell, the problem is with JUJU for sure, are u familiar with JUJU?10:38
tomreynnope ;/10:38
fklinguistaOne last question for a temporary solution, PCdude10:39
PCdudesure fklinguista10:39
fklinguistaSay if I were to use the wireless connection from my USB to connect to WAN on the server10:39
PCdudeto bad tomreyn , u know anyone who could help?10:39
PCdudedirectly? fklinguista10:40
fklinguistahow would I manually create a bridge from eth0 so I can broadcast my own router, like you said10:40
tomreynPCdude: you could look for a juju channel, or try askubuntu.com.10:40
fklinguistaSo Apartment router > Server WLAN > Server LAN > My Router > All of my devices10:41
fklinguistato be able to connect to everyone and to circumvent the login for multiple devices10:41
PCdudeah ok, I get it10:41
PCdudeso what u do is install vmware ESXI, then u install pfsense on it. In pfsense u connect it to ur aparment router, with login and everything (the WLAN connection). then u can use the wired connection on ur server as a LAN. that one u connect to a different switch10:43
PCdudeon that switch u connect all ur devices u want10:43
PCdudeu can also connect a Access point on there for ur wireless needs10:43
PCdudejust to clear some confusion if u start to look on the internet for a wireless router10:44
PCdudea router is for many people a device that connects wireless devices, but its not10:44
PCdudea router is a device that can separate or combine different networks or subnets10:44
PCdudewhat u want to add to the switch is an AP or access point, that is the correct name for a device that connects wireless devices10:45
PCdudeI am trying to keep it brief here, but am I making sense?10:45
fklinguistaYes, you are10:45
PCdudetomreyn , yeah I am trying that, but since its so long there are not really people who have been in the business for 10 years or so. u know that real guru's. everyone is basically trying and see if it works, but thanks anyway10:46
PCdudefklinguista , good :)10:46
fklinguistaBut I was thinking, in the meantime, before I install pfsense10:48
fklinguistawhat would be a good temporary solution10:48
fklinguistaSince I used Network Manager on Ubuntu, the config is not the same10:50
PCdudeI think u can make it work all in ubuntu or any linux distro, but that can be a pain in the butt. Honestly, I just succeeded the beginner level of a linux guru, so I cant help u do it in there.10:50
tomreynyou can do routing and traffic filtering on linux, no need for a pfsense VM10:50
tomreynbut some understanding of networking will be a very useful if not necessary ingredient to setting this up.10:51
fklinguistaI guess what I'm asking (because I've looked on Google and nothing good is coming up), is how would I configure it in /etc/network/interfaces10:52
PCdudesure u can do it all in linux, but in a pfsense vm its alot easier for usage. plus u can make snapshots and things like that. personally, I would like my router/firewall be the same device as my file server, but yeah sure u can do it10:52
fklinguistato have my eth0 as the bridge from my wlan010:52
PCdudewhat u want is routing and that will involve alot more than only /etc/network/interfaces10:53
tomreynyou will need to have multiple interfaces and something like "up /sbin/ip route add ..." in /etc /network/interfaces.10:53
tomreynyou'll also need to enable ip_forwarding on one of your interfaces.10:53
PCdudeplus u will need to look at iptables10:53
PCdudetomreyn u were faster :)10:54
tomreynyou could use shorewall to manage iptables, they also have some examples on how to do routing on their documentation. but the network configuration part is really outside of the firewalling domain10:54
fklinguistaI have webmin installed10:55
tomreyni.e. they kind of expect you to have a working network setup before you start adding traffic fitlering on top.10:55
PCdudeplus, u will need a good understanding about networking itself to get it work10:56
fklinguistaah10:56
tomreynthis webmin statement suggests to me that you need to read at leats one book on network designs10:56
tomreynplease don't take it personal, i don't mean it this way.10:57
fklinguistaNo problem.10:57
fklinguistaThank you for all the help and advice!  I have to go eat now11:00
tomreynmaybe this can be a good start: http://www.tecmint.com/setup-linux-as-router/11:00
fklinguistaTake care!11:00
fklinguistathank you, tomreyn11:00
tomreyngood luck11:00
PCdudegood luck11:00
fklinguistaTo you as well11:01
PCdudetomreyn , I tried the juju and openstack channel and have asked on stackexchange, but no luck so far11:02
tomreynwell give it some more time11:02
tomreynwhere's your stackexchange post?11:03
PCdudehttp://askubuntu.com/questions/817572/openstack-fails-to-install-caused-by-juju11:03
PCdudeEven the troubleshooting is pretty fucked up, since in the files that I looked in there are no clear error messages11:04
tomreynhehe, awesome error message there11:04
tomreynit might point to an incorrect password. or something else entirely.11:04
PCdudeyeah, I know , the kind that makes u pull out ur hair :)11:05
PCdudeyup, and how to find that out is up to god I guees11:05
PCdudethe problem is that JUJU is still in beta, so I know I cant ask to much yet11:05
PCdudebut the JUJU version for 14.04 (the stable one) is giving me errors too11:06
PCdudethats what happens if openstack, MAAS and JUJU all live in an entirely building and do not communicate....11:06
tomreynPCdude: fd stands for floppy disk, so your VM has a virtual floppy disk connected and that causes i/o errors. you could probably just remove the fd11:07
tomreynor it could be file descriptor, but i don't think so based on the conext provided11:08
tomreyndev fd0, sector 0 sounds a lot like floppy disk11:08
PCdudethat is a good point! I was wondering where fd came from, but makes sense11:08
PCdude*that11:09
PCdudeI am gonna try that out, its a small VM and VMware just automatically adds the floppy disks11:09
PCdudethat is gonna take some time, coz I have to build some things from the ground up again, how long will u be here tomreyn ?11:12
tomreynhad you tried http://docs.openstack.org/liberty/install-guide-ubuntu/ or http://docs.openstack.org/liberty/install-guide-ubuntu/ ?11:12
tomreynthis is poroibably what i would do rather than following some youtube tutorial11:12
tomreyni won't be at the keyboard all the time, but i use a bouncer so i remain connected to irc and can read up when i return. but, really, i don'T think i'm the right person to help you with there.11:14
PCdudeyeah true, the problem is that installs only openstack and ubuntu also offers landscape. I am gonna be honest here, but its a pain in the ass to keep all ur servers in sync with only openstack. that is taking me to much time. If it was only the initial setup that is fine, but its not, u will constantly need to go in the CLI and change stuff11:15
PCdudeah ok, well, I think it constantly fails coz of my to little understanding of linux to fix basic problems here and there.11:16
PCdudeI am learning for my LPIC-1 so I am trying my best to become better11:17
Vacuum_https://pastebin.mozilla.org/890556912:35
PCdudetomreyn , it turns out there is no floppy disk at all in the VM....13:20
tomreynstrange, i could have sworn this message related to a floppy disk controller13:22
PCdudeI even looked in the VM files, if there was secretly hiding some floppy but no luck, I have to think really hard now what else it could be13:24
PCdudehttp://askubuntu.com/questions/213512/buffer-i-o-error-on-device-fd0-logical-block-0-error13:27
PCdudethey also talk about a floppy disk13:27
=== lfrlucas_ is now known as lfrlucas
tdelamhey guys, I need a specific version of Apache to be installed (PCI compliance annoyances). I am using Ubuntu 14.04LTS. I need Apache version 2.4.23 or later. Is there a way I can target a version like this via apt?15:03
RoyKtdelam: https://launchpad.net/~ondrej/+archive/ubuntu/apache2 perhaps15:06
tdelamRoyK: yep, I found my solution. Worked like a charm.15:08
tdelamsorry to bother :)15:09
RoyKnp15:11
=== rharper` is now known as rharper
tammy5what was the solution tdelam19:19
tammy5what was the solution tdelam20:45
YamakasYhow large are the default mirrors for packages atm ? I have ~425G for 12.04 and 14.04 ?21:20
=== Adri2000_ is now known as Adri2000
apb1963_sarnold: you around?21:59
=== daker_ is now known as daker
=== Thorn__ is now known as Thorn

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