Pinkamena_D | I installed ubuntu with software raid5 on six identical drives two days ago. It was fine while using it yesterday and rebooting it many times. Today I came in and I get raid error not enough operational devices on md0 (4/6) failed. I feel like this is so unlikely as to be impossible, and all drives are still seen in bios. | 00:00 |
---|---|---|
tomreyn | hmm that's indeed a bit weird, Pinkamena_D | 00:47 |
tomreyn | unless you were unlucky and hit a set of bad drives, which happens occasionally. | 00:47 |
tomreyn | check S.M.A.R.T. data, do a long self-test on each of the drives | 00:47 |
tomreyn | also make sure your layering of block devices is compatible to RAID-5 | 00:48 |
=== Lcawte is now known as Lcawte|Away | ||
rbasak | nacc: I was wondering about having two PPAs. A bootstrap PPA, as well as the current one. | 01:19 |
rbasak | nacc: the current one could be set up to depend on the bootstrap PPA, so anything built in the bootstrap PPA can be build-depended on. | 01:20 |
rbasak | nacc: then we might be able to prepare everything in the PPAs, ready to be rebuilt for the archive when we're ready, so then we can defer the decision. | 01:20 |
rbasak | We could even have multiple "levels" of bootstrap PPA if needed. | 01:20 |
rbasak | Just a thought - I've not thought it through fully. | 01:21 |
nacc | rbasak: that seems reasonable. what is the benefit of having a distinct bootstrap PPA? just reducing the noise? | 01:23 |
rbasak | nacc: so that the steps to bootstrap the main archive are laid out rather than lost | 01:24 |
nacc | rbasak: ah that makes sense | 01:47 |
pacmanfan | 26 packages can be updated. | 03:08 |
pacmanfan | 14 updates are security updates. | 03:08 |
pacmanfan | ^^^ the default motd has that. is there a way to display that again without creating having to exit the shell and log in again? | 03:09 |
pacmanfan | i can't find a way to print the default motd again, nor am i aware of an apt-get function that will show it | 03:09 |
tarpman | pacmanfan: /usr/lib/update-notifier/apt-check --human-readable - in xenial, not sure about older | 03:14 |
tarpman | pacmanfan: for the apt bit specifically. the entire motd should be just in /etc/motd | 03:15 |
pacmanfan | that works, thanks! | 03:17 |
pacmanfan | my /etc/motd is empty, i guess because i haven't added a custom one | 03:17 |
tarpman | oh, sorry | 03:18 |
tarpman | seems to be /run/motd.dynamic | 03:18 |
tarpman | /etc/motd used to be a symlink, I guess not any more | 03:18 |
tarpman | (via "grep -r motd /etc/pam.d") | 03:18 |
* tarpman hasn't looked into this stuff in a while... | 03:19 | |
pacmanfan | aha, that explains all the docs i found referencing /etc/motd | 03:19 |
pacmanfan | i'm just like "huh... that must be for custom stuff" | 03:19 |
KaoticEvil | anyone around that can lend a hand installing ubuntu server? | 04:14 |
KaoticEvil | specifically know why it wont see my nVidia RAID array during partition setup? | 04:14 |
PryMar56 | kernel cmdline: dmraid | 04:15 |
KaoticEvil | PryMar56: could you elaborate a little bit more? | 04:16 |
KaoticEvil | i.e. where do i enter that? | 04:16 |
KaoticEvil | right before entering the partitoner, it asks if i want to activate the RAID drive, i hit yes, and all i see in the partitoner is the single drive thats not in the array | 04:18 |
PryMar56 | what is the boot media? | 04:18 |
PryMar56 | USB or ISO? or Hypervisor? | 04:19 |
PryMar56 | how do you launch the installer? | 04:20 |
PryMar56 | if its a CD, hit F1 and read how to customize the kernel cmdline | 04:22 |
KaoticEvil | PryMar56: USB, metal system, not VM | 04:22 |
KaoticEvil | i added "dmraid=true" to the cmdline, and still no joy :/ | 04:23 |
KaoticEvil | or do i not need the | 04:24 |
KaoticEvil | "=true" part? | 04:24 |
PryMar56 | to disable it, I add : nodmraid, so I guess:dmraid (is enough) | 04:24 |
KaoticEvil | PryMar56: i will try that, thanks | 04:25 |
PryMar56 | KE if the installer sees your nvidia fakeraid, the device names are unique and contain nv084084~ (wild chars) | 04:26 |
PryMar56 | nothing like sda1, sda2 | 04:26 |
KaoticEvil | right.. i already found that out using PartedMagic | 04:26 |
KaoticEvil | still nothing | 04:28 |
PryMar56 | maybe insmod=dm-raid | 04:29 |
PryMar56 | the driver is called dm-raid.ko | 04:29 |
KaoticEvil | would i be better off using the installers software RAID? | 04:29 |
PryMar56 | KaoticEvil, I make no value judgement about the dmraid. Once you bothered to setup the nvidia bios raid, you owe it to yourself to expt with it and make your mind up | 04:31 |
PryMar56 | if you change course and go with software raid, you have to erase the fakeraid meta data first | 04:32 |
KaoticEvil | that would be fine.. no data on there at all | 04:32 |
KaoticEvil | fresh install.. just put the hardware together today | 04:32 |
DexDeadly | hello, having trouble mounting a cifs share | 06:03 |
DexDeadly | sorry samba share from my ubuntu server | 06:03 |
DexDeadly | anyone mounting a samba share using active directory | 07:16 |
DexDeadly | though a nas4free box if possible as well | 07:17 |
=== G is now known as Nigel | ||
DexDeadly | anyone able to assist me | 08:05 |
DexDeadly | nm got it | 08:16 |
=== stokachu_ is now known as stokachu | ||
=== chmurifree is now known as chmuri | ||
rbasak | kickinz1: I'm looking at ntp now. | 12:39 |
rbasak | kickinz1: did you have an MP in LP for it? | 12:39 |
kickinz1 | rbasak, not yet. | 12:45 |
rbasak | kickinz1: OK. Also I just realised you can't, since there's no repo to merge into yet. | 12:46 |
rbasak | kickinz1: shall we start as we mean to go on? I can create that now, then you can file an MP for your logical branch. I can review that with the inline comment functions, etc. | 12:47 |
rbasak | kickinz1: and then after that's done, you can file a second MP for the merge itself. | 12:48 |
kickinz1 | rbasak, OK | 12:48 |
rbasak | kickinz1: OK, I've created the ~ubuntu-server-dev ntp repo with your import. | 12:55 |
rbasak | kickinz1: please could you submit an MP from https://code.launchpad.net/~kick-d/ubuntu/+source/ntp/+git/ntp/+ref/logical/4.2.6.p5+dfsg-3ubuntu9/+register-merge | 12:55 |
kickinz1 | rbasak, yes | 12:55 |
rbasak | kickinz1: to go to the logical branch in the ~ubuntu-server-dev ntp git repo. | 12:55 |
rbasak | Thanks | 12:56 |
kickinz1 | Done. | 12:58 |
rbasak | kickinz1: that looks good I think. 2416 lines alarmed me, but I think they're all the CVEs so it looks like what I expected. Thanks! | 13:00 |
kickinz1 | rbasak, yes, most are related to CVEs. | 13:07 |
=== cpaelzer_ is now known as cpaelzer_afk | ||
=== smb` is now known as smb | ||
=== smb is now known as Guest52432 | ||
kickinz1 | rbasak, how do we proceed now? | 14:15 |
rbasak | kickinz1: I'll review your merge next. | 14:20 |
rbasak | kickinz1: probably through a second MP is best. | 14:20 |
rbasak | I need to figure out what to push so that you can file one. | 14:20 |
kickinz1 | rbasak, maybe push new/debian (4.2.8p4+dfsg-3)? | 14:23 |
=== Lcawte|Away is now known as Lcawte | ||
=== cpaelzer_afk is now known as cpaelzer_ | ||
mrtAkdeniz | howdy! | 15:56 |
mrtAkdeniz | Guys, Is it a good idea to use different machine for databases? | 15:56 |
mrtAkdeniz | I mean buy 2 dedis, 1 for application server and 1 for database? Will there be any performance lose because of network? | 15:57 |
mrtAkdeniz | These 2 dedis will be on the same IP gap | 15:57 |
nacc | mrtAkdeniz: I think the short answer is 'it depends' | 15:59 |
nacc | how often are you hitting your db, etc. how is your network configured | 15:59 |
nacc | mrtAkdeniz: but there is insufficient information to make any guess | 15:59 |
=== JanC_ is now known as JanC | ||
rbasak | https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1522422 | 16:45 |
ubottu | Launchpad bug 1522422 in php5 (Ubuntu) "Update to php 7.0" [Wishlist,Triaged] | 16:45 |
cpaelzer_ | rbasak: thanks will refer to that when questions about php 7 come up again | 16:46 |
=== cpaelzer_ is now known as cpaelzer | ||
=== cpaelzer is now known as cpaelzer_afk | ||
psyferre | Hey folks. I've got an x86 ubuntu server that needed an OS update. I did do-release -update (cleared out old kernels after it complained of low space in /boot), and it finished fine. On reboot, I get "no such device" errors and no grub menu. In rescue mode I can see all my data. /boot is completely empty. I edited fstab to change the uuid of /boot to /dev/sda1, and /boot looks normal. Rebooting still yields the same error. | 18:05 |
psyferre | After that reboot, I entered rescue mode again and tried the same thing... nothing in /boot this time. =-/ | 18:05 |
psyferre | update-grub complains that /boot/grub doesn't exist. I just tried remounting /boot from /dev/sda1 and via UUID in fstab. Neither way shows anything in /boot now. | 18:09 |
psyferre | I *am* using LVM, so I told rescue mode to give me a shell in the root vg. Is there anything special I need to do to get all partitions mounted? | 18:10 |
psyferre | To clarify - I'm not using recover mode from a grub menu, but via a live cd's "Repair a Broken System" | 18:13 |
pmatulis | psyferre: /boot is in a LVM logical volume? | 18:16 |
psyferre | pmatulis: yes, but not on its own. It's part of the /root volume | 18:20 |
psyferre | pmatulis: It's been a while since I really got into lvm, so I may not have my head around this the right way. In Repair a Broken System, I had several options for a shell. I chose the root lvm, rather than /dev/sda5. Maybe that's incorrect? | 18:21 |
psyferre | Choosing /dev/sda5 fails to mount. | 18:23 |
pmatulis | psyferre: you need to expose the lvm layer | 18:25 |
psyferre | pmatulis: Ah, now my google searches are yielding something useful. Okay, so it looks like this is basically exactly what I need to do? http://ubuntuforums.org/showthread.php?t=1347375 | 18:32 |
pmatulis | psyferre: that's the idea. it's been a while for me too | 18:33 |
psyferre | pmatulis: awesome. Thank you very much for your help. I really appreciate it. | 18:33 |
pmatulis | psyferre: welcome. let us know what happens | 18:35 |
kid4coding | heja | 18:37 |
kid4coding | gents | 18:37 |
bizhan | I have installed ubuntu 15.04 on my system. I have attached an embedded device to my system through via USB. I need to configure the usb to act as network adapter device. Any idea how this could be done. Many thanks in advance? | 18:37 |
kid4coding | where is the best location of the document folder for an apache web server | 18:37 |
psyferre | pmatulis: Will do. I also found this tool: http://sourceforge.net/p/boot-repair-cd/home/Home/ Seems promising, and was recommended by howtogeek... | 18:37 |
psyferre | http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/ | 18:38 |
pmatulis | bizhan: normally the kernel either supports the usb network adapter or it doesn't. what do you see with dmesg command after inserting the device? | 18:39 |
sdeziel | psyferre: you mentioned that your /boot was contained in the root fs yet you are mentioning it has a UUID, this seems contradictory | 18:39 |
psyferre | sdeziel: It's likely that I'm munging terminology. I have two volumes, root and swap. Fstab has a line for the root lvm, and a separate one for /boot. /boot is mounted via its uuid. | 18:41 |
=== cpaelzer_afk is now known as cpaelzer | ||
sarnold | bizhan: please note that 15.04 reaches the end of its life in a few days https://wiki.ubuntu.com/Releases | 18:41 |
sarnold | kid4coding: /var/www is popular | 18:42 |
bizhan | pmatulis, I get some errors: [32255.895599] wlan0: no IPv6 routers present | 18:42 |
bizhan | [32451.653564] CFG80211-ERROR) wl_run_escan : Escan set error (-25) | 18:42 |
sdeziel | psyferre: if /boot has a UUID it means it's a partition (likely your sda1). The PV would then likely be in sda5 | 18:42 |
bizhan | sarnold, thanks I will start the update today. | 18:42 |
sdeziel | psyferre: so when you'll run your repair stuff, make sure to work from inside your root LV and have your /dev/sda1 mounted on /boot inside that root FS | 18:43 |
psyferre | sdeziel: Yes, it's definitely sda1. When I tried to mount /dev/sda1 as /boot it was empty. | 18:44 |
sdeziel | psyferre: OK and if you umount it, is your data inside /boot ? | 18:45 |
sdeziel | psyferre: maybe your sda1 is empty and mounting it shadows what's inside /boot from your root FS | 18:45 |
kid4coding | getns | 18:47 |
kid4coding | If I type #cat /etc/apache2/sites-available/mysite.conf | 18:48 |
kid4coding | the document root is set to /var/www/html/ | 18:48 |
psyferre | sdeziel: Here's where I'm at currently: http://pasteboard.co/18xIWl3X.png | 18:48 |
kid4coding | I have created a file .php containing a function to print out the configuration <?php phpversion(); ?> | 18:49 |
kid4coding | I saved the file as info.php. When I go with my browser at http://localhost/info.php | 18:49 |
kid4coding | I still get a black screen | 18:49 |
=== marcoceppi is now known as marcoceppi|airpl | ||
sdeziel | psyferre: looks good to me. This shows your /boot partition does have a bunch of kernels | 18:50 |
psyferre | sdeziel: everything *seems* to be proceeding logically... Not sure why /boot was empty before. It seems fine now... my last attempts were through fstab, then mount -a | 18:50 |
sdeziel | psyferre: maybe it was not mounted before hence was empty? | 18:50 |
psyferre | sdeziel: Must not have been. I changed lines in fstab, then mount -a, and it was back to normal. Then rebooted. After grub failed again, I went back in recovery mode and did mount -a... nothing in /boot. | 18:51 |
psyferre | sdeziel: I must have messed something up in the process. So, my next step is drop into grub prompt, and do something like # root (hd0,0) and # setup (hd0), right? | 18:53 |
psyferre | Hmmm... guess not. "/bin/sh: 7: grub: not found" | 18:54 |
sdeziel | psyferre: have your tried in the chroot you had in your recovery env? | 18:55 |
psyferre | sdeziel: Yes, If I understand you correctly. After chroot foo I checked /boot. Then I changed directory back to the root of foo and attempted to run grub | 18:57 |
kid4coding | Is there any command to verify I got these modules installed | 18:58 |
kid4coding | mysql-server libapache2-mod-auth-mysql php5-mysql | 18:58 |
sdeziel | psyferre: yes. You might also need to mount /proc before chrooting. I vaguely recall that some version of grub needs it | 18:58 |
sdeziel | kid4coding: dpkg -l| grep mysql | 18:59 |
sarnold | kid4coding: dpkg -l 'mysql*' | cat | 18:59 |
sarnold | (the pointless | cat forces dpkg to show the full version numbers) | 18:59 |
psyferre | sdeziel: ah, that makes sense. Okay, I'll give that a shot too. Thank you! | 18:59 |
sdeziel | psyferre: you are welcome | 18:59 |
sdeziel | sarnold: thanks for explaining the not so pointless cat :) | 19:00 |
sarnold | sdeziel :) | 19:00 |
kid4coding | sdeziel: it seems that I do not have those modules | 19:00 |
kid4coding | can I only install the modules above with apt | 19:01 |
sdeziel | kid4coding: yes, apt should let you install those packages without problem | 19:03 |
=== marcoceppi|airpl is now known as marcoc|airplane | ||
kid4coding | done | 19:08 |
kid4coding | thank you | 19:08 |
kid4coding | Can I leave the loopback address for the binding address of mysql rather than assigning my real IP since it can change? | 19:08 |
kid4coding | I leave 127.0.0.1 | 19:08 |
sdeziel | kid4coding: if your PHP app is running on the same machine as your MySQL server, 127.0.0.1 will do just fine | 19:10 |
sarnold | kid4coding: if both the server and client run on the same system, that's probably better -- or there may be a named unix domain socket you could use too | 19:12 |
davidic657 | I am sick and tired of Ubuntu security notices hitting my system before some official notice | 19:14 |
davidic657 | you guys have you head up your ass or what | 19:14 |
Temper | does the kernel support vlans on multiple virtual interfaces? | 19:14 |
davidic657 | you look like idiots | 19:15 |
davidic657 | well? | 19:16 |
Temper | i have one firewall for a building that has multihomed businesses in it. The network is segregated by vlans. Now I want to setup a VPN server on the firewall to allow remote access.. and hints? | 19:16 |
sdeziel | davidic657: what would you prefer? Get the notice only to see you cannot actually pull the patched software? | 19:16 |
davidic657 | do you guys have your heads in place or not? | 19:16 |
Temper | davidic657: with that kind of attitude who are you expecting a reply from? | 19:16 |
davidic657 | I dont care | 19:16 |
davidic657 | do not do the updates before notification | 19:17 |
Temper | davidic657: who, exactly, do you think you are? | 19:17 |
davidic657 | whats the thing abought the horse leavibnf etc etc | 19:17 |
ikonia | davidic657: what is the actual problem you're upset about | 19:17 |
davidic657 | getting updates with no news about them, like a day later | 19:18 |
Temper | turn off auto updates | 19:18 |
davidic657 | security? | 19:18 |
Pici | davidic657: turn on apt-listchnges | 19:18 |
Pici | apt-listchanges | 19:18 |
davidic657 | justget it together guys and stop giving excuses | 19:19 |
sarnold | davidic657: feel free to subscribe https://lists.ubuntu.com/archives/ubuntu-security-announce/2016-January/date.html | 19:19 |
Pici | davidic657: I still don't understand your question. | 19:19 |
jrwren_ | davidic657: please read: http://www.ubuntu.com/about/about-ubuntu/conduct | 19:19 |
davidic657 | pici you never will your better of on suse anyway | 19:19 |
ikonia | davidic657: ok - stop | 19:20 |
davidic657 | stopped | 19:20 |
ikonia | davidic657: either explain your problem calmly, and we'll be happy to talk/help with it if possible | 19:20 |
ikonia | or drop it | 19:20 |
ikonia | either is fine | 19:20 |
davidic657 | I believe I said stopped | 19:20 |
ikonia | ok | 19:20 |
davidic657 | or did you miss that typing? | 19:20 |
Temper | that's not stopped it's mutated | 19:21 |
ikonia | Temper: enough | 19:21 |
Pici | Anyway..... | 19:21 |
ikonia | Temper: I've already asked you in #ubuntu to stop with this comments | 19:21 |
davidic657 | pici go to suse | 19:21 |
Pici | I'm happy where I am, thanks. | 19:21 |
Temper | ikonia: no you didn't | 19:21 |
ikonia | Temper: ok then "please stop" | 19:21 |
Temper | with? using !commands? | 19:22 |
Temper | sorry to play with the bot | 19:22 |
ikonia | thanks | 19:22 |
Pici | Temper: feel free to /msg ubottu if you want to try out !commands :) | 19:22 |
Temper | supercalifragilisticexpialidocious really does need to be added tho.. | 19:22 |
ikonia | Temper: this stuff - we don't need to see it please | 19:22 |
Temper | seriously relax.. | 19:22 |
ikonia | I am | 19:23 |
ikonia | please just stop with the silly comments | 19:23 |
davidic657 | chilled here | 19:23 |
Temper | ikonia: all work and no play...? | 19:23 |
davidic657 | get your act together | 19:23 |
ikonia | davidic657: you too | 19:23 |
ikonia | it's a channel for ubuntu server discussion, please use it for that | 19:23 |
davidic657 | Hve its why I am here | 19:23 |
Temper | besides still waiting to see if anyone responds to my request for tips on how to VPN into a vlan environment... | 19:24 |
Temper | maybe #openvpn? | 19:24 |
ikonia | Temper: ok, then please wait for that | 19:24 |
ikonia | I don't know what tips you want | 19:24 |
sarnold | Temper: you know that's way less likely once you fill everyone's scrollback with mindless chatter :) | 19:24 |
ikonia | just selected bridged or routed mode - bang you're done | 19:24 |
Temper | sarnold: stop with your mindless chatter - you are ruining my chances for a response.. | 19:25 |
ikonia | Temper: I won't ask you again | 19:25 |
ikonia | Temper: stop with the stupid comments to people | 19:25 |
Temper | ikonia: and how to you select a vlan id based on user? | 19:25 |
ikonia | Temper: you don't | 19:25 |
ikonia | Temper: you'd need to tag the tun or tap device | 19:25 |
ikonia | you'd need multiple tun or taps depending on your routing | 19:26 |
Temper | so each user will need it's own tun/tap interface? | 19:26 |
ikonia | no | 19:26 |
Pici | What are you actually trying to accomplish here? | 19:26 |
ikonia | you're not trying to give each user their own vlan are you ? | 19:26 |
davidic657 | lol | 19:26 |
Temper | i run a network with like 10 businesses on it | 19:26 |
davidic657 | pici loves suse | 19:26 |
ikonia | ok ? | 19:26 |
Temper | it is segmented by vlans | 19:26 |
ikonia | ok | 19:27 |
Temper | so each user, or company user, will need access to a specific vlan id | 19:27 |
Temper | as to not be able to access other company resources | 19:27 |
ikonia | Temper: so thats not really openvpn's problem if you look at it | 19:27 |
ikonia | you'll vpn to a "holding" area | 19:28 |
ikonia | you then need to route or bridge your traffic through to the other networks | 19:28 |
ikonia | you do that by presenting specific routes per user / group | 19:28 |
davidic657 | geez | 19:28 |
sarnold | would it be better to run multiple openvpn concentrators? a different port per company? | 19:28 |
ikonia | then the devices those routes take the user through will tag for you | 19:28 |
Temper | that is the part i am curious on.. how to do it. | 19:28 |
ikonia | or as sarnold have a vpn per network and have them vpn into their specific business unit | 19:28 |
Temper | sarnold: explain | 19:29 |
davidic657 | ikonia: what is your problem? | 19:29 |
ikonia | davidic657: your silly comments that you've been asked to stop | 19:29 |
davidic657 | about what? | 19:29 |
ikonia | davidic657: drop it - contribute to the channel, be quiet, or leave | 19:29 |
ikonia | those 3 options are all that matters | 19:29 |
ikonia | Temper: what are these users authing against ? | 19:29 |
davidic657 | me knowing pici is a big suse person | 19:30 |
Temper | the whole vpn system is non-existant at this point | 19:30 |
ikonia | Temper: ok - what "would" they auth against | 19:30 |
sarnold | Temper: I'm just curious if it'd be better to run multiple instances of openvpn if the data they handle should be separated from the other users -- then each instance could get its own tun devices or whatever.. | 19:30 |
Temper | so whatever is needed will be done | 19:30 |
Temper | i was just going to create users and auth the vpn off the user database | 19:30 |
Temper | pretty sure i have done that before | 19:31 |
ikonia | Temper: what is the user database ? | 19:31 |
ikonia | a database, ldap, a file ? | 19:31 |
Temper | . /etc/passwd? | 19:31 |
ikonia | errr that doesn't seem a good option to manage multiple network entry points | 19:31 |
Temper | yeah i was thinking it would be simpler than it is | 19:31 |
ikonia | it's not | 19:31 |
kid4coding | mysql seems running | 19:32 |
ikonia | I'd suggest taking a step back from the VPN at this point and look how you would manage users on the network with multiple accounts and different network restrictions | 19:32 |
ikonia | Temper: once you have an idea of that the vpn options will be smaller and you'll be able to narrow it down to 1 or 2 realistic options | 19:32 |
Temper | i wonder if it would work just to put each company on a different 10.10.x.x network segment and then just put the server on all vlans and use "network security" | 19:32 |
ikonia | that wouldn't auth users | 19:32 |
Temper | i have seen it doen that the ip address range is based on the user | 19:33 |
kid4coding | I still have problems with PHP to be executed from Apache | 19:33 |
Temper | so i could maybe modify that example | 19:33 |
kid4coding | I got a blank screen | 19:33 |
ikonia | that won't auth users though | 19:33 |
ikonia | no | 19:33 |
ikonia | kid4coding: error in your php | 19:33 |
kid4coding | I was just printing the output of phpversion(); | 19:33 |
ikonia | still an error | 19:34 |
Temper | kid4coding: i hate to break it to you but this isn't really a programming channel | 19:34 |
kid4coding | ikonia: how can I access httpd.conf on ubuntu | 19:34 |
ikonia | if you're getting a white screen | 19:34 |
ikonia | kid4coding: in a text editor | 19:34 |
Temper | kid4coding: nano httpd.conf | 19:34 |
kid4coding | Temper: it does not exist on ubuntu | 19:34 |
Temper | or should i have sent him to vim :) | 19:34 |
Temper | kid4coding: try #php | 19:34 |
Pici | kid4coding: Did you enable mod_php? | 19:34 |
Temper | Pici: must have or he'd be getting php code | 19:35 |
Pici | Temper: This is on-topic for this channel as long as hes just trying to get php enabled. | 19:35 |
kid4coding | Temper: I am installing LAMP | 19:35 |
Pici | kid4coding: how? | 19:35 |
sarnold | kid4coding: it's apache2.conf on ubuntu | 19:35 |
kid4coding | sarnold: I am following this https://help.ubuntu.com/community/ApacheMySQLPHP | 19:35 |
kid4coding | sarnold: under /etc/apache2/ I do not have httpd.conf | 19:36 |
kid4coding | Is it normally located on a different path? | 19:36 |
sarnold | E486: Pattern not found: httpd | 19:36 |
sarnold | kid4coding: (a) I'd be skeptical of that wiki page, it starts out discussing a release of ubuntu from six years ago. not a great start. | 19:37 |
sarnold | kid4coding: (b) I don't see httpd.conf mentioned on that page, not sure where you found that, but it feels like a rhel or centos guide instead :) | 19:37 |
sdeziel | kid4coding: this https://help.ubuntu.com/14.04/serverguide/lamp-applications.html might be a better starting point | 19:38 |
Temper | yeah i wasn't excited to open that link either.. | 19:38 |
cmh-fn | kid4coding - this might be a good one too https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04 | 19:38 |
ikonia | that guide works in concept | 19:38 |
ikonia | and it is for ubuntu | 19:38 |
sarnold | kid4coding: check out the a2enmod and similar manpages | 19:38 |
Temper | still if he is getting a blank page and not php code something is somewhat configured | 19:38 |
Temper | now you need to check the log files | 19:39 |
kid4coding | I want to open httpd.conf to define the association with .php for apache | 19:39 |
ikonia | it is doing that | 19:39 |
ikonia | as you're getting a blank page | 19:39 |
ikonia | if it wasn't associated you'd get the page displayed as text | 19:39 |
sarnold | kid4coding: probably it's something like a2enmod php5 or something. | 19:40 |
ikonia | it should already be enabled | 19:40 |
sarnold | *nod* | 19:40 |
ikonia | as if it wasn't the php would be displayed as text | 19:40 |
ikonia | it's a code error | 19:40 |
ikonia | as PHP won't display errors by default | 19:40 |
Temper | ikonia: i am not the only one trying to do this... https://forums.openvpn.net/topic9600.html no there are no answers forthcoming yet | 19:40 |
kid4coding | it says that PHP5 is already enabled | 19:40 |
ikonia | Temper: re-read what I said | 19:41 |
ikonia | there are ways to do it, but you are missing too much the basics of management to be able to do it | 19:41 |
kid4coding | ikonia: to me? | 19:41 |
ikonia | kid4coding: no, temper | 19:42 |
ikonia | kid4coding: your problem is your PHP is wrong | 19:42 |
ikonia | I'm reasonably confident of that | 19:42 |
kid4coding | php -v works fine from bash | 19:42 |
Temper | kid4coding: create this test.php file <? echo "test"; ?> | 19:42 |
Temper | i think that should work.. hehe been a while since php | 19:42 |
Temper | then access http://ip/test.php | 19:43 |
ikonia | kid4coding: that is not apache rending your php | 19:43 |
ikonia | kid4coding: that is nothing to do with it | 19:43 |
Temper | kid4coding: php is the preprocessor but there is a lot going on under the hood to map that to and from apache. | 19:43 |
Temper | i am fairly confident you have the hooks setup to send the .php file to the preprocessor but that doesn't mean it is configured correctly. if you didn't you would get the .php as a text file in the browser. | 19:44 |
ikonia | we've already covered that | 19:45 |
Temper | but ikonia is right most likely your php is malformed... well actually - wouldn't php parse back an error? | 19:45 |
ikonia | no | 19:45 |
sarnold | ikonia: it's still nice to spell out debugging steps.. | 19:45 |
ikonia | you just get the white screen unless you turn on debugging | 19:45 |
ikonia | but as you are at a level where you can't edit a text file - that seems to be a bit of a pointless process to walk through | 19:45 |
Temper | maybe we should just tell him how to do that? | 19:45 |
Temper | ikonia: I am confused by what you mean here: " I'd suggest taking a step back from the VPN at this point and look how you would manage users on the network with multiple accounts and different network restrictions" | 19:46 |
ikonia | Temper: you have a network, with multiple vlans on it, and users that will need access to different ones, how will you controll auth on those networks - you can't have every user on every box in the password file | 19:47 |
Temper | those are different levels. the vpn is just on the network level.. each business - once on thier network segment - is a completely different system | 19:48 |
Temper | like some use mac and other use windows.. | 19:48 |
ikonia | right, but you need a way to auth them for the vpn and control their restrictions | 19:48 |
Temper | yeah.. so at most i need to be able to support like 200 users | 19:48 |
kid4coding | definitely, many things have changed | 19:48 |
Temper | i can't just use the linux user? | 19:49 |
ikonia | you can, but is that really how you want to manage 200 users for complex auth and group privileges ? | 19:49 |
Temper | i mean i can setup radius if you think it would be better | 19:49 |
kid4coding | Gents, do you work as sys admin on Linux? | 19:49 |
ikonia | Temper: your other option is to make an exposed entry point for each network vlan and put an openvpn entry point on each one | 19:49 |
Temper | no group privledges.. just user1 -> vlan 1 | 19:49 |
ikonia | then just manage a password file per openvpn box for only the users allowed on that network | 19:50 |
ikonia | you could do it with 1 box and virtual hosts | 19:50 |
Temper | the whole network is on 1 box and vms | 19:50 |
Temper | well except the mac os stuff - | 19:50 |
ikonia | right, but it's VM's so you could do it on one "vm" then | 19:50 |
Temper | i only have one outbound ip address.. | 19:51 |
ikonia | thats ok | 19:51 |
Temper | i guess i could put each business on a different port.. | 19:51 |
ikonia | that works | 19:51 |
ikonia | or reverse proxy it to the internal IP's | 19:51 |
Temper | but i really want to just have 1 file for the open vpn client config and then map it by username/password | 19:51 |
ikonia | you could do that with one password file and multiple vpn instances authing off it | 19:52 |
ikonia | you would just need to make sure there was a difference in groups for the users | 19:52 |
ikonia | so you could stop openvpn1 authing users for people in the group for openvpn2 | 19:52 |
Temper | i have never ran multiple instances of ovpn on 1 box.. | 19:52 |
ikonia | you can do it from 1 binary set, so if you update 1 vpn's binaries/libraries you update them all | 19:53 |
ikonia | it's just launching multiple instances | 19:53 |
Temper | so you just have startupscript that essentially run openvpnserver /etc/openvpn/vpn1.conf - etc | 19:53 |
ikonia | pretty much | 19:54 |
sdeziel | Temper: the openvpn init script makes it really easy to interact with each individual VPN | 19:54 |
sdeziel | Temper: /etc/init.d/openvpn restart foo | 19:54 |
Temper | foo being the instance? | 19:54 |
sdeziel | this would look for /etc/openvpn/foo.conf | 19:54 |
sdeziel | yes | 19:54 |
ikonia | sdeziel: does it support something like an include.d so you can put multple configs in there and it loops through them ? | 19:54 |
sdeziel | ikonia: if you call /etc/init.d/openvpn restart, all of them will be stopped. The one that will start are those set to AUTOSTART in /etc/default/openvpn | 19:55 |
Temper | so then create a virtual network (eth0:0) for each vpn instance? then map each virt net to a vlan? | 19:55 |
sdeziel | ikonia: but yeah, you can drop multiple .conf under /etc/openvpn/ | 19:56 |
ikonia | sdeziel: so you just define multiple instance in the one config, or specify multiple config files, either works | 19:56 |
sdeziel | ikonia: each instance has to be in a single conf file | 19:56 |
ikonia | ok, so it has to be multiple config files | 19:56 |
ikonia | still easy to manage | 19:57 |
sdeziel | yup, one config per openvpn process | 19:57 |
Temper | yeah i could just copy 1 config to another and edit the changes.. | 19:57 |
sdeziel | Temper: if you have a limited amount of users, you could put your per-user config in "ccd" files | 19:57 |
sdeziel | man openvpn for the gory details | 19:57 |
ikonia | thats an interesting idea, although that would make user managment more complex | 19:58 |
Temper | sdeziel: haha no thanks! | 19:58 |
sdeziel | this way you could pin each user to a static IP that you control. This would in turn allow you to restrict the access with the firewall | 19:58 |
sdeziel | ikonia: indeed, no free lunch ;) | 19:59 |
Temper | maybe it would be easier just to make a small vm per company and then just port forward from the firewall to the correct vm? | 19:59 |
sdeziel | radius is supported by a plugin IIRC | 19:59 |
sdeziel | Temper: that sounds like the best way | 19:59 |
Temper | will that work with a vpn connection.. can i use ip tables to take incomming port say 3333 -> 10.10.1.50:[whatever the vpn port it by default] | 20:00 |
Temper | then 3334 -> 10.10.1.51:[same port] | 20:00 |
sdeziel | Temper: yes, will work without problem. Default port is UDP/1194 | 20:01 |
Temper | i bet i could even use the openvpn appliance...? | 20:01 |
Temper | they'd be limited to 2 concurrent connections per company unless they bought a license.. and they could manage thier own users | 20:02 |
Temper | nm that autoconfigure stuff on the openvpn appliance will never work. | 20:03 |
ikonia | no, thats openvpn-as | 20:03 |
ikonia | if you get openvpn it's totally free | 20:03 |
Temper | that's what i mean.. | 20:03 |
Temper | i would prefere to use openvpn-as if possible | 20:03 |
ikonia | then buy a license | 20:03 |
ikonia | it's quite cost effective | 20:03 |
Temper | you get 2 concurrent connections for free | 20:04 |
sdeziel | the as version was pretty kickass last I checked | 20:04 |
ikonia | it still is | 20:04 |
Temper | but it would never be able to autoconfigure witht he firewall changing the ports.. | 20:04 |
sdeziel | IIRC it was installable as a deb | 20:04 |
ikonia | it is still | 20:05 |
Temper | yeah it is pretty easy to get going. | 20:05 |
=== csusi is now known as Guest6795 | ||
nacc | rbasak: what's the normal process for requesting a new package for debian? or a new version of something from upstream? file a debian bug? | 20:32 |
kid4coding | I apologize if I bother with this story. | 20:37 |
kid4coding | I re-checked a few steps from the wiki to install everything, but I cannot get it sorted. | 20:37 |
genii | nacc: Yes, with bug description of something like "wishlist" | 20:40 |
nacc | genii: thanks! | 20:44 |
kid4coding | Module php5 already enabled | 20:50 |
kid4coding | apache2 is running | 20:50 |
kid4coding | doc root is set to /var/www/html | 20:50 |
kid4coding | I placed a file under that folder to check the configuration | 20:50 |
kid4coding | but I still get a blank page.... | 20:50 |
kid4coding | what else could I check since apache2 is actually running | 20:51 |
sarnold | error logs? | 20:59 |
kid4coding | sarnold: I am not seeing anything wrong in there | 21:03 |
nacc | kid4coding: can you verify that a static HTML page is hosted properly? | 21:04 |
kid4coding | sure | 21:04 |
nacc | kid4coding: that way we can isolate it to php, presumably | 21:04 |
kid4coding | localhost works fine. I can try to make a change to it | 21:04 |
ikonia | kid4coding: your php is wrong | 21:05 |
ikonia | if you are getting a blank page, there is an error in the php it's parsing | 21:06 |
ikonia | I told you to look at this an hour ago | 21:06 |
nacc | ikonia: ah sorry, i didn't go look at the backlog | 21:06 |
ikonia | nacc: not your problem, | 21:07 |
ikonia | nacc: I just don't understand why, it's still continuing without resolving that core base problme | 21:07 |
ikonia | problem | 21:07 |
nacc | ikonia: fair enough :) | 21:08 |
kid4coding | ikonia: sorry | 21:10 |
kid4coding | nacc: the static page works fine | 21:11 |
ikonia | static page is not php | 21:11 |
kid4coding | the php5.conf under /etc/apache2/mods-enabled | 21:12 |
kid4coding | shows the following: | 21:12 |
kid4coding | SetHandler application/x-httpd-php-source | 21:12 |
ikonia | we've been over this | 21:13 |
ikonia | we know it's parsing php or you'd get text | 21:13 |
ikonia | there is a problem with your php | 21:13 |
kid4coding | a2enmod php5 Module php5 already enabled | 21:13 |
ikonia | we know this | 21:13 |
ikonia | we went over this an hour ago | 21:13 |
kid4coding | ikonia: what else I could check. I went over the basic. | 21:14 |
ikonia | your php is wrong | 21:14 |
kid4coding | ikonia: apart installing the related packets, that's the configuration I personally made | 21:16 |
ikonia | what are you talking about | 21:16 |
kid4coding | ikonia: if I type from the bash #php -v it actually works | 21:16 |
ikonia | again - I've told you 3 times that is not the same as the web server | 21:16 |
nacc | kid4coding: can you pastebin the php file you are trying to load? | 21:16 |
ikonia | kid4coding: is there a reason you have ignored everything you've been told and keep repeating the same thing over and over | 21:17 |
ikonia | your php is wrong | 21:17 |
ikonia | haveyou looked at the error log of your webserver | 21:17 |
ikonia | to see what it outputs when it tries to parse the page ? | 21:17 |
cryptodan | php.ini could have short tags disabled and some scripts written in php use the short tag <? ?> instead of <php? ?> | 21:22 |
kid4coding | <?php phpversion(); ?> | 21:22 |
kid4coding | that's all I wrote | 21:22 |
kid4coding | I am trying to see what php.ini is actually loading | 21:22 |
kid4coding | that's the error.log | 21:23 |
kid4coding | http://pastebin.com/cUDfaR78 | 21:23 |
ikonia | kid4coding: change it to phpinfo() | 21:23 |
ikonia | phpinfo(); | 21:24 |
cryptodan | yup ikonia got it | 21:26 |
ikonia | kid4coding: does that work ? | 21:30 |
kid4coding | ikonia: yes | 21:30 |
kid4coding | it works like champ | 21:30 |
kid4coding | thank you to all for the kindness | 21:30 |
ikonia | ok - so we've wasted well over and hour while you refused to accept the php was wrong | 21:30 |
ikonia | next time please, just listen to what's been said and work with people | 21:30 |
kid4coding | ikonia: I feel like you have been right under my should this way. | 21:32 |
kid4coding | ikonia: sorry mate. | 21:32 |
ikonia | it's not a big deal, | 21:32 |
ikonia | but please, in future, try to take in what people are telling you to help, rather than focus on what you think the problem is | 21:32 |
kid4coding | ikonia: let's recap | 21:32 |
kid4coding | ikonia: you think you right | 21:33 |
kid4coding | kid4coding: on the other side of the net, there's a noob that does not use a single command on linux | 21:33 |
kid4coding | ikonia: listens to you, and try to figures out what's wrong | 21:33 |
ikonia | you didn't listen to me | 21:33 |
ikonia | you did everything but what I told you to do | 21:34 |
ikonia | and ignored what I told you what th eproblem was | 21:34 |
kid4coding | ikonia: when did I ignore what you said? | 21:34 |
ikonia | what is the point of asking for help to ignore it and just keep repeating the problem over and over | 21:34 |
ikonia | kid4coding: the fact that I told you over an hour in detail we knew PHP was setup right, and your problem was with the PHP code | 21:34 |
ikonia | yet an hour later you're still trying to check if php is setup right | 21:34 |
ikonia | you've ignored the code | 21:34 |
ikonia | and you're testing on the command line despite me telling you that had no relevence to the web server | 21:35 |
ikonia | so basically you had this fixed and explained to you over an hour ago, you ignored it and continued to just repeat the same thing over and over | 21:35 |
kid4coding | ikonia: I think we all got the point of what you want to say | 21:37 |
ikonia | clearly not as you asked when did I ignore what you said | 21:37 |
ikonia | so I had to explain it | 21:37 |
kid4coding | ikonia: it's definitely clear now | 21:39 |
kid4coding | ikonia: thanks | 21:39 |
ikonia | super | 21:40 |
ikonia | hope it goes better next time | 21:40 |
kid4coding | ikonia: definitely | 21:42 |
kid4coding | do you recommend any book for learning apache for a production network? | 21:43 |
ikonia | no | 21:44 |
ikonia | if you're going to run this on a production network - you need to know what you are doing, not reading a book | 21:44 |
kid4coding | lol | 21:45 |
kid4coding | ikonia: I understand what you mean. | 21:45 |
cryptodan | Might want to consider going to school and taking a class on System Administration and Web Development | 21:47 |
kid4coding | cryptodan: a class at evening will take me ages | 21:48 |
kid4coding | cryptodan: do you recommend any online class? | 21:48 |
ikonia | you can't short cut experience | 21:48 |
cryptodan | Prefer Hands on in Class training for System Administration and Web Dev | 21:48 |
kid4coding | ikonia: I am talking about how often the lessons are offered. | 21:51 |
kid4coding | cryptodan: I understand your point. | 21:51 |
ikonia | you need time inbetween to absorb and practice | 21:51 |
cryptodan | and in class discussion with other students and the instructor | 21:52 |
cryptodan | If you do it online you may go to sources for help and get the wrong info | 21:53 |
kid4coding | https://linuxacademy.com/ | 21:58 |
kid4coding | See you soon | 22:30 |
kid4coding | Thanks again for teaching me | 22:30 |
profall | Hey, uwf is not enabled but I cannot connect to a MySQL remotely (output) on port 3306. (the mysql is not on the ubuntu machine!!!) | 23:52 |
profall | telnet times out as well so I know its a network connectivity issue, any ideas. | 23:52 |
sarnold | profall: timeout suggests that a firewall is DROPping packets rather than REJECTing them | 23:53 |
sarnold | profall: investigate the target machine and all routers between the two systems | 23:53 |
profall | The target machine is working fine on other non Ubuntu based machines. | 23:53 |
bekks | By default, mysqld listens on 127.0.0.1 only. | 23:53 |
profall | My CentOS server can connect to it just fine | 23:53 |
sarnold | bekks: if that were it, telnet ought to get "connection refused" | 23:54 |
profall | Any ideas? | 23:54 |
profall | What default firewall stuff is enabled on ubuntu 14.04? | 23:55 |
sarnold | profall: none; iptables -L ... ought to confirm if you've got something else loaded or not | 23:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!