/srv/irclogs.ubuntu.com/2013/10/23/#ubuntu-server.txt

MavKenis it possible to create a php registration form that would work with openldap?00:02
=== hitsujiTMO_ is now known as hitsujiTMO
sarnoldMavKen: looks like there's some kind of openldap integration with php...00:17
sarnoldhttp://php.net/manual/en/function.ldap-connect.php00:17
MavKenive seen that... i see that it is possible for a login system to connect to ldap... i am just not finding a way to create a registration form.  this is for a niche social media site.... im wondering if it would be best just to use php/mysql login system00:19
sarnoldMavKen: how about this? http://www.php.net/manual/en/function.ldap-add.php00:21
sarnoldMavKen: traditional databases might be easier, but beware of the risk of copy-and-pasting together something horrible. A lot of php-mysql applications are security disasters and the 'easier to read' ones are quite often the worst examples to learn from.00:22
MavKenthanks, i will need to read that a few times.  i was thinking about purchasing  http://codecanyon.net/item/php-login-user-management/49008?WT.ac=category_item&WT.seg_1=category_item&WT.z_author=jigowatt00:24
MavKeni have never used openldap, so i would need to get it installed00:25
MavKenbefore i start learning either way, just want to know which method would be best to use00:25
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
=== peter is now known as Guest65247
=== freeflying_away is now known as freeflying
gdosaccording to dwww man page - http://manpages.ubuntu.com/manpages/hardy/man8/dwww.8.html - there is supposed to be a 'apache2.conf' file in '/etc/dwww' and symbolically linked from /etc/apache*/conf.d/dwww but there is neither a file or a symbolically linked file in /etc/dwww NOR /etc/apache2/conf.d - HELP?03:23
gdos... forgot to mention that '/var/lib/dwww' appears empty.03:37
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
AtuMHello. I've been using openvswitch and virsh/virt-manager on 13.04. Now that openvswitch-brcompat is dumped, i am forced to configure the network by hand using "virsh edit" or something along this path.. is there a way to get brcompat back to life on 13.10 ?06:44
AtuMor is there a better way of doing this that I'm not aware of?06:45
viper2khi06:49
AtuMviper2k, hi06:49
sgranAtuM: don't you want to just define a network using the openvswitch bridge?06:50
AtuMsgran, I have done so... I wish i could define it within the libvirt, so I can use virt-manager to create virtual machines and have it recognize that I use ovs bridge..06:52
sgranno, that's what I mean06:52
sgranhttp://libvirt.org/formatnetwork.html06:52
AtuMsgran, I'm afraid libvirt only uses brctl to manage the bridge.. as I use ovs, it cannot connect the virtual machine to that kind of bridge. it knows nothing about ovs switch06:54
AtuMwith openvswitch-brcompat, there was a compatibility layer so that libvirt could configure ovs bridge using brctl command.. now this is gone06:55
sgraneven with virtualporttype = openvswitch?06:56
AtuMsgran, this is the only sollution type I know of.. but I have to configure each virtual machine by hand: http://www.siliconloons.com/?p=27706:56
AtuMI would expect I can define ovs as the default bridge to be used in libvirt.. perhaps I don't know how to do it06:58
sgranhttps://www.redhat.com/archives/libvirt-users/2013-April/msg00057.html06:59
sgranit seems others are having trouble, but that might get you closer07:00
sgranit seems you can define a network of type openvswitch, at least07:00
AtuMsgran, I will look into it. I should have no problems since i only use real bridge.. hopefully it works and I can then post the config on my blog07:02
sgranhttp://www.siliconloons.com/?p=30507:03
sgranthat looks like it should do it07:04
AtuMsgran, I've seen this already.. but it includes vlan config.. I will try to filter that out07:06
sgranjust don't use <vlan trunk='yes'> at a guess07:06
AtuMand I don't need the portgroup either..07:08
AtuMsgran, thanks for helping me set this up.. it works perfectly07:11
AtuMno need for brcompat anymore.. great stuff07:11
sgrangreat07:11
=== Guest57978 is now known as bitnumus
busconhi07:33
busconI installed samba4 on ubuntu-server 10.13, removed bind but it looks like not working07:34
busconwhen i install samba i get a lot of07:34
busconError loading module '/usr/lib/i386-linux-gnu/samba//vfs/acl_xattr.so'07:34
Ben64there is no 10.1307:38
busconups, sorry, 13.10 i meant :)07:38
busconwhen i try to start samba4 with07:45
busconservice samba4 start07:45
busconi get a07:45
busconsamba4 stop/waiting07:45
=== freeflying is now known as freeflying_away
AtuMbuscon, from what I remember, one needs to configure samba4 first.. it won't just run.. but I've done this on fedora a year ago from source..  look at the manual from samba's web page.. their step-by-step how-to's are great09:02
=== freeflying_away is now known as freeflying
busconAtuM: ok, now I got it running, but i cannot log in with a user09:09
busconi've used a lot samba in the past, samba4 looks like wierdier09:09
AtuMbuscon, samba4 is a more complex solution.. it actually builds its own AD, it creates its own DNS zone and so on.. it's pretty straight forward to set up and later administer with windows's administrative tools.. it's a lot harder job doing so in command line09:11
busconanyway, i created a user (samba) and i cannot log in09:11
busconah, that's why09:11
AtuMas I've said.. it's a different approach.. it uses domain logons and sets up its own AD09:12
AtuMwith samba3 you either set up domain or not.. with samba4 AD is set up by default.. the only other option is to join it to an existing domain09:13
AtuMmore on that in #samba09:13
busconok, i'll try to look for samba4 tutorial for users09:14
busconhttps://wiki.samba.org/index.php/Adding_users_with_samba_tool09:19
busconthx :)09:19
AtuMhonestly, I see this for the first time.. I have only tested the thing some time ago.. i have no practical use for it yet.. it's very unlikely that it will ever catch up with win201209:22
=== psivaa is now known as psivaa-afk
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== gartral|away is now known as gartral
=== freeflying is now known as freeflying_away
vilastgraber: ping, issue with lxc when trying to create a trusty container on a trusty host, didrocks reverted lxc to  1.0.0~alpha1-0ubuntu11 but the issue remains11:39
pii3Hi i have 160GB LVM partition on ubuntu 12.04, i need to add another 100GB , How can i increase diskspace without lossing data ?12:17
patdk-wklvresize12:18
=== psivaa-afk is now known as psivaa
stgrabervila: can you share some more details?13:36
vilastgraber: on a trusty host, with lxc-1.0.0~alpha1-0ubuntu11 (see didrocks for another failure that caused the downgrade from 1.0.0~alpha2-0ubuntu3), otto creates its usual setup and then do an lxc-start (to boot from an iso), lxc-start returns 255 almost immediately13:39
vilastgraber: it's on qa-intel-4000 if you want a closer look13:40
vilaerrr, did these lists of names really go there ?13:40
* vila sacrifices a goat just in case13:41
vilastgraber: did you get my answer (wondering after that weird behavior...)13:44
thejoecarrollhow would one go about creating a restricted user for vulnerability scan purposes that only meets the following minimum requirements: able to execute uname and dpkg read /etc/debian_version (but nothing more)?13:48
gdosanyone here use dhelp and or dwww? (online, browser-based help systems for viewing man pages)  - according to dwww man page - http://manpages.ubuntu.com/manpages/hardy/man8/dwww.8.html - there is supposed to be a 'apache2.conf' file in '/etc/dwww' and symbolically linked from /etc/apache*/conf.d/dwww but there is neither a file or a symbolically linked file in /etc/dwww NOR /etc/apache2/conf.d and /var/lib/dwww appears empty. suggest13:49
gdosions?13:49
stgrabervila: yep, will look in a bit13:50
vilastgraber: ack, waiting for your ping somewhere. #distro ?13:51
=== freeflying_away is now known as freeflying
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== freeflying is now known as freeflying_away
gdosanyone here use dhelp and or dwww? (online, browser-based help systems for viewing man pages)  - according to dwww man page - http://manpages.ubuntu.com/manpages/hardy/man8/dwww.8.html - there is supposed to be a 'apache2.conf' file in '/etc/dwww' and symbolically linked from /etc/apache*/conf.d/dwww but there is neither a file or a symbolically linked file in /etc/dwww NOR /etc/apache2/conf.d and /v14:51
gdosar/lib/dwww appears empty. HELP?14:51
thegoatok, so i am thinking about spinning up an ubuntu server, and it says 13.10 is supported for 9 months, what happens after that 9 months14:59
geniithegoat: After End of Life, the distribution is no longer available for download, it's repositories are frozen and archived, and no support is given.15:00
thegoatgenii: do they eventually roll those features, pkg version, etc into an LTS?15:03
geniithegoat: LTS versions are every two years and supported for 5. So 10.04, 12.04 are LTS and so will be 14.04 ( in 6 months). The changes made on the interim releases ( the ones between LTS) are usually incorporated into the next LTS15:04
thegoati see...i will probably go with LTS then.  just wanted to see what the real benefits of the non LTS where.  long term support is more important to me15:05
geniithegoat: With server versions, most upgrade from LTS directly to next LTS15:06
thegoatgenii: cool, thanks for the input15:09
geniithegoat: You're welcome!15:11
geniigdos: Conceivably the application is in some half-state where it was installed then deinstalled, and /var/lib/status says "Status: deinstall ok config-files" meaning if it gets reinstalled that it's config files are already there and not to install them. This usually happens when you uninstall a package then manually remove it's config files, but it can also happen in other ways. The best method to rectify is to uninstall it, then edit the status15:15
genii file with admin rights and remove the entire stanza pertaining to it. Then reinstall it.15:15
gdosgenii anything that pertains to dwww / dhelp ?15:58
gdosgenii: is there a way to use locate to purge any files associated with dhelp and or dwww ?15:58
gdosgenii: where would the status file be located?16:00
geniigdos: The status file has "stanzas" , which is basically a paragraph with information about a package that is on the system, or has been on the system. It's located in /var/lib/dpkg/ directory and called status. You need to remove the entire stanza ( or section, paragraph, etc) pertaining to the status of dwww package.16:02
gdosgenii: ok looking now.16:02
gdosgenii: in /var/lib/dpkg i have status and status-old & statoverride and statoverride-old16:04
gdosgenii: there is no paragraph or stanza pertaining to dwww or dhelp16:07
geniigdos: Then odds are it's not installed.16:07
geniigdos: What says result of: apt-cache policy dwww16:07
gdoswhen i ran 'sudo apt-get purge dwww' i get the following message: W: Duplicate sources.list entry http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages)16:08
geniigdos: That means you have the same line twice in your sources.list file16:08
geniiWork requires me, back in 12-15 minutes16:09
gdosthe results of 'apt-cache policy dwww' are dwww: Installed: (none) Candidate: 1.12.0 Version table: 1.12.0 0 500 http://us.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages16:09
geniigdos: So there is no entry in the status file because you have not installed it yet :)16:15
gdosgenii: sorry, thats after purge.16:15
geniigdos: What says result of: grep -n dwww /var/lib/dpkg/status16:16
gdos32415:Suggests: dhelp | dwww | doc-central | yelp | khelpcenter4, rarian-compat 32421: other packages such as dwww, dhelp, doc-central, and rarian-compat 42165:Replaces: dwww (<= 1.6.10) 50907:Suggests: dwww, menu, deborphan, apt-xapian-index, tasksel, software-properties-gtk 50921:  * Browse all available documentation related to a package (dwww is required)16:20
gdosgenii: i am thinking there might be a bug in dwww version 1.12.0 (i previously had 1.11.8 installed)16:21
geniigdos: From here seems like some deeper issue you're having in dpkg not updating files.16:22
geniigdos: You should probably find and remove the duplicate sources.list file, and do a sudo apt-get update16:22
geniigdos: Can you pastebin the contents of your /etc/apt/sources.list please16:24
gdosgenii: http://pastebin.ubuntu.com/6289888/16:27
geniigdos: Remove line 4416:28
gdosdone.16:30
gdosgenii: file (sources.list) is closed but i when i run 'sudo apt-get update' i get this error: E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/16:31
geniigdos: I would now: sudo rm /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages   &&  sudo apt-get update16:32
geniigdos: Perhaps give it a minute first, then try again.16:32
gdos*BRB* gonna reboot.16:33
genii It makes it somewhat more difficult to assist when users decide to improvise instructions ....16:34
gdosgenii: ok rebooted and 'sudo apt-get update' worked fine. now running 'sudo rm /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages   &&  sudo apt-get update'16:40
geniigdos: Should be able after that to install dwww and have the conf files where they're supposed to be.16:42
gdosgenii: will try it now.16:42
gdosgenii: dwww is indexing now.16:46
geniiGood.16:46
sgran      16:49
Angelitahi!16:50
Angelitai have problem with ubuntu server16:50
Angelitai want to install asterisk for my server ubuntu 12.0416:51
Angelitaplease help me with this16:51
gdosgenii: i'm still getting the following errors when browsing dwww:  The requested URL /cgi-bin/dwww/usr/share/doc/ was not found on this server.   The requested URL /cgi-bin/info2www was not found on this server. (etc)16:53
geniigdos: About dwww I don't know anything specifically since I've never used it. You'd have to find someone to help you more specifically with it's config.16:55
genii!info asteirsk16:56
ubottuPackage asteirsk does not exist in saucy16:56
genii!info asterisk16:56
ubottuasterisk (source: asterisk): Open Source Private Branch Exchange (PBX). In component universe, is optional. Version 1:1.8.13.1~dfsg-3ubuntu3 (saucy), package size 1137 kB, installed size 3881 kB16:56
gdos!info dwww16:56
ubottudwww (source: dwww): Read all on-line documentation with a WWW browser. In component universe, is optional. Version 1.12.0 (saucy), package size 111 kB, installed size 460 kB16:56
genii!info asterisk precise16:56
ubottuasterisk (source: asterisk): Open Source Private Branch Exchange (PBX). In component universe, is optional. Version 1:1.8.10.1~dfsg-1ubuntu1 (precise), package size 1075 kB, installed size 3688 kB16:56
Angelitagenii:  fine! do you speak spanish o only english=?16:56
geniiAngelita: English, some German and French16:57
geniiNo Spanish16:57
gdosgenii: is it possible to install an older version of dwww (or anyother package)?16:58
Angelitagenii: Deutsch16:58
Angelitajejej no!16:58
Angelitaenglish16:58
Angelitai have 1 server dell but i want install asterisk16:58
Angelitathe server is ubuntu 12.04  64 bits16:58
Angelitayesterday I can install asterisk but  failed the test16:59
Angelitaso I to need reinstall all the server dell16:59
Angelitanow I want to install asterisk but of form correct and good17:00
geniigdos: syntax is: sudo apt-get install packagename=versionnumber17:04
geniiAngelita: Unfortunately I do not have enough time right now to assist properly with your issue, apologies.17:04
gdosso 'sudo apt-get install dwww=1.11.8' ?17:04
geniigdos: Yep.17:05
geniiAngelita: You can try to seek support also in the channel #asterisk17:06
Angelitaok thanks17:09
gdosgenii: says not available. how do i report a bug? after reading man page for dwww there supposedly is supposed to be a file ' /etc/dwww/apache.conf' but its not there.17:17
geniigdos: ubuntu-bug dwww17:18
TheLordOfTimegenii: what said "not available"17:19
TheLordOfTimeapt?17:19
TheLordOfTimeerm17:19
geniithegoat: a previous version of dwww17:19
TheLordOfTimegdos: ^17:19
TheLordOfTimegenii: but what triggered that warning, apt-get?17:20
thegoat?17:20
TheLordOfTimeor was it some other error?  (i came in late)17:20
TheLordOfTimethegoat: mishighlight i think17:20
geniithegoat: tab fail, apologies17:20
TheLordOfTimeyou and i both have names that start with "the" so tabcomplete broke17:20
geniiTheLordOfTime: dwww package for them does not have conf files. apt-get reports no earlier version when specified with apt-get install dwww=1.11.8 ( the prior one). So the bug is not apt-get but with dwww for missing conf files17:21
TheLordOfTimegenii: indeed, they need to file the bug against dwww.  But it may already hage a bug on it, lemme scan the bugs...17:21
TheLordOfTimegenii: is he using Saucy or one of the other releases17:22
TheLordOfTimebecause bugs can be filtered accordingly :P17:22
TheLordOfTime!info dwww17:22
ubottudwww (source: dwww): Read all on-line documentation with a WWW browser. In component universe, is optional. Version 1.12.0 (saucy), package size 111 kB, installed size 460 kB17:22
TheLordOfTimethere's the source name...17:22
* TheLordOfTime digs around on Launchpad17:22
TheLordOfTimeyep there's no bugs about it, he should file one, although it'd probably end up upstreamed to Debian too...17:23
gdosoh hey TheLordOfTime17:48
gdosjust got done filing a bug report.17:49
gdoslooks like its affecting dhelp and doc-central as well (both which are similar to dwww)17:49
gdosTheLordOfTime: yes, I am using saucy.17:50
gdosgenii:bug report filed against dwww. but am now wondering if its an apache2 issue? i can't even get doc-central or dhelp to work (which are similar to dwww)17:51
gdosdhelp views the index.html file directly in '/usr/share/doc/HTML' but won't call it / load it though i can view that file manually if i type 'file:///usr/share/doc/HTML/index.html'17:53
gdosthis is the URL that dhelp loads: http://localhost/doc/HTML/index.html17:54
SpamapSNg: ugh, terminator is doing this dimming/brightening thing in 13.10 ... make it stop.19:22
NgSpamapS: a) not the maintainer anymore, b) in inactive terms? there should be a preference for that19:24
SpamapSah probably something I didn't use before that changed defaults19:24
SpamapS"Unfocused terminal font brightness"19:25
SpamapSglobal setting19:25
* SpamapS obliterates the new default of 0.819:25
NgSpamapS: possibly. There's also a hilarious bug where the slider used to set a value between 0.0 and 1.0 used to be able to return a value outside that range if you dragged the mouse pointer further (wtf gtk), but the latest version should fix that and clamp pre-existing values, instead of wrapping them and producing super weird results ;/19:26
SpamapSGTK: making WTF since 199819:27
mdeslaurhehe19:28
Dry_LipsHi, I ran <netstat -anltp | grep "LISTEN"> and I wonder what port 53, and 953 might be used for... http://pastebin.com/Py1mZpa619:32
shaunoDry_Lips: most likely bind (named), but if you elevate netstat with sudo, the -p option you're using should resolve pid+name, which will give you a solid answer19:36
Dry_Lipsshauno: Ok, thanks, I ran sudo, but I simply get "named" as the name of the service... Bind isn't installed, but could it be that it keeps listening on port 53 even if I removed it? http://pastebin.com/ZfbdUdgg19:43
Dry_LipsI checked, and there is a bind directory under /etc19:45
shaunowhat do you get if you cat /proc/348/cmdline  ?  (348 being the pid that shows up in your paste as 348/named)19:46
shaunoeg, mine comes back with /usr/sbin/named-ubind  which is a pretty conclusive hint.  but you may have another nameserver, I'm not sure which others use the rdnc control port (953)19:48
Dry_LipsYeah, I also get /usr/sbin/named-ubind ...19:50
shaunothat's almost certainly what's running then.  how did you remove it?19:52
Dry_Lipsprobably apt-get remove19:52
Dry_Lipsor purge19:52
shaunoit was mostly the package name I was wondering; whether you got something that's related to bind, but didn't remove bind itself19:53
Dry_Lipswhen I run <dpkg -s bind>, I get "Package `bind' is not installed and no info is available."19:54
shaunohow about bind9  ?19:54
Dry_Lipsouch,19:55
Dry_LipsI thought I had removed it, bind9 is here19:55
Dry_Lips:-/19:55
Dry_LipsBut anyways, thanks shauno, I guess that solves it... lol19:56
Dry_LipsYep, only port 80 and my ssh open now19:57
shaunodpkg -S is handy one to keep up your sleeve too; dpkg -S /usr/sbin/named will tell you which package it came from, rather than guessing the name19:57
Dry_Lipsyeah, that's what I should have done... :D But basically the problem was that that I forgot that it was called bind9, lol19:59
justizinanyone else have tons of recurrant instances of mounting /dev/shm ? I find that this line is added to /etc/fstab no matter how many times I remove it: tmpfs /dev/shm tmpfs defaults,ro,noexec,nosuid 0 020:07
justizinafaict you can mount /dev/shm as tmpfs over and over and over and over, and this is happening on all of my 12.04 LTS boxen20:07
justiziner, it actually shows up as mounted at /run/shm, which /dev/shm is simply a symlink to20:09
hallynstgraber: aaah.  i see.  i wasn't crazy.  package updates are slow on btrfs bc of fsync - my host is 3.2, 3.5 supposedlys speeds it up.20:40
hallyndarn20:40
rampageRipperhi world,have anyone saved this page: books4electricians.blogspot.com?20:46
PicirampageRipper: What does that have to do with Ubuntu?20:48
* hallyn gets to know eatmydata20:48
PicirampageRipper: Please stop pasting your site in our channels for no reason.20:48
rampageRipperjust asking20:48
rampageRipperit's not my site20:49
=== rampageRipper is now known as DeepBlue
=== sieb is now known as _Sieb
=== _Sieb is now known as Sieb
=== Sieb is now known as _Sieb
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
tinmanwhat options are available if i want to monitor network traffic? (KB usage.) my network consists of linux/windows PCs and android devices.23:16
tinmanand 2 routers23:17
jrwrenntop23:19
tinmanthanx23:22
sarnoldtinman: 'ifconfig' shows rx and tx bytes on different interfaces, if you can run 'ifconfig' on your routers, that might give you easier access to the data you want.23:26

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