/srv/irclogs.ubuntu.com/2012/04/21/#ubuntu-server.txt

=== matsubara is now known as matsubara-afk
EvilResistanceis there any way to automatically enforce specific ownership permissions for files in a given directory upon creation?02:32
EvilResistancesay, user:www-data for a public_html folder02:32
SpamapSEvilResistance: suid/sgid bits, yes04:08
SpamapSEvilResistance: chmod g+s will enforce group, u+s will enforce user04:08
banseljajHello05:39
banseljajI need help setting up a DHCP seerver05:40
banseljajI have installed a DHCP server on my laptop05:41
banseljajHow do i check if my wlan card has host mode?05:41
banseljajAnd how do i set up a small DHCP based, adhoc WLAN server05:41
seekwillI'm not sure if that's possible05:44
banseljajI may not have been clear05:44
banseljajmay i explain my network?05:44
seekwillwlan = wireless?05:44
banseljajseekwill: yes05:44
banseljajLook, I have a laptop, that can become a wireless hotspot05:46
banseljajAlso, I have a server, installed as a virtual machine, inside that laptop05:46
banseljajI have installed DNS and DHCP servers05:46
banseljajI have 6 students, all with laptops.05:46
banseljajI want them to connect to my laptop's access point05:47
banseljajand through that accesspoint, DNS server, I want ti r=to access the virtual machine server05:47
banseljajComplicated, I know05:47
banseljajseekwill: ^05:47
seekwillOh, you have built-in 4G? No idea05:48
banseljajI am not sure if its $G05:48
banseljaj4G05:48
seekwillOh 3G...05:48
banseljajYeah.05:49
seekwillRegardless, I've never had any experience with those05:49
seekwillSorry :(05:49
banseljaj:(05:49
banseljajokay, here's an easier question05:49
seekwill4205:49
banseljajHow do i configure my DNS server and DHCP server to hand out static IP to the virtual machine inside it?05:50
banseljajFor all intents and purposes, I think it can be treated as a seperate computer with a NAT05:50
airtonixwhat hypervisor are you using ?06:04
banseljajhypervisor?06:07
tdhz77quick question about smb.conf?06:09
=== banseljaj is now known as imami|afk
arbiris there a page where i can see a list of packages for 12.04 ?07:46
=== imami|afk is now known as banseljaj
airtonixanyone got a working Marvell 88SE6145 SATA II PCI-E controller with ubuntu 11.10 or 12.0411:12
=== banseljaj is now known as imami|afk
=== Lcawte|Away is now known as Lcawte
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
uvirtbotNew bug: #984210 in maas (main) "postinst tries to restart cobbler using /etc/init.d/cobbler and that doesn't exist anymore" [Undecided,Fix released] https://launchpad.net/bugs/98421015:29
RoyK[ 3476.111492] zfs-fuse: sending ioctl 2285 to a partition!15:57
RoyKany idea what that might mean?15:57
Patrickdkhttp://groups.google.com/group/zfs-fuse/browse_thread/thread/a3be60a69ab7c8ce?pli=116:04
=== imami|afk is now known as banseljaj
=== banseljaj is now known as imami|afk
uvirtbotNew bug: #986649 in puppet (main) "puppet agent can't obtain catalogs" [Undecided,New] https://launchpad.net/bugs/98664918:11
arbirHello… will apache 2.4 and php 5.4 make it to his release ?18:12
qman__arbir, while I'm not authoritative on it in any way, if it's not in the beta, it's probably not going to be in release18:17
arbirqman__: i have been searching at packages.ubuntu.com, but could not find it.18:17
arbirso i thought, i might be on the wrong track18:18
qman__just searched, looks like apache is 2.2.22 in precise  http://packages.ubuntu.com/search?keywords=apache&searchon=names&suite=precise&section=all18:18
arbirqman__: yeah, 2.2.22 is there, not the new apache 2.418:19
qman__and php is 5.3.1018:20
qman__http://packages.ubuntu.com/search?keywords=libapache2-mod-php&searchon=names&suite=precise&section=all18:20
arbirqman__: ditto, yeah, not 5.4 … both apache and php have been out for a while18:20
arbiri was hoping :-(18:20
arbirespecially that, apache 2.4 is supposed to be as fast as nginx and no longer the old elephant.18:21
qman__rule of thumb, stuff usually has to be out a year or more to make it, especially with an LTS release18:21
qman__I see a lot of people complain but I've never had performance issues with apache18:22
qman__yes, it's not as light as some alternatives, but it's not exactly slow18:22
FunnyLookinHatI noticed that /etc/resolv.conf will be overwritten - is there a proper place to put my nameservers ?19:17
kklimondaFunnyLookinHat: afair edit /etc/network/interfaces and add dns-nameservers x.x.x.x y.y.y.y19:23
FunnyLookinHatkklimonda, ah ok - I didn't know you could do that in /etc/network/interfaces19:23
FunnyLookinHat kklimonda That worked - thanks!19:28
undecimwhy would my scripts in /etc/cron.hourly not be running?20:24
undecimthe line in /etc/crontab seems to be fine.... 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly20:26
seekwill Is cron running?20:27
undecimyes20:27
seekwillWhy do you think cron.hourly isn't running?20:27
undecimBecause none of my scripts are having any affect...20:28
undecimI check them... make sure they're executable, have the proper #! line, etc... come back in an hour, and e.g. the permissions in /opt/craftbukkit still aren't fixed (like my script is supposed to do), but I can fix it by running the script manually20:29
undecimSame with my script to update my dynamic DNS20:29
undecimI checked the timeout with dig to make sure that wasn't just caching, too20:30
undecimwatched it count down to 0, and still no change20:30
undecimRun the script manually, let it reach 0 again, and it changes20:30
seekwillTry a small test script20:31
seekwillMy guess is your script uses some environment variables not set when cron runs it20:33
blendedbychrishow do i force ntpd to check the stupid date and set it?20:34
undecimMy permissions script shouldn't rely on environment variables... just "chown -R craftbukkit:craftbukkit /opt/craftbukkit"20:34
undecimIs all that's there20:34
seekwillundecim: Try /bin/chown ?20:35
undecimseekwill: It seems like run-parts is causing the issue. I made a test script with absolute paths to commands, and running the line in /etc/crontab " run-parts --report /etc/cron.hourly" as root does nothing.20:38
seekwillSorry, I don't know. I usually just throw things in /etc/cron.d20:38
undecimGuess I'll do the same.20:39
seekwillAll that stuff is too fancy for me :)20:39
undecimlol20:39
undecimWell it seemed to me to be a convenient setup... just put your script there and let it do its thing.... but it doesn't work20:40
EvilResistanceis there a method to force persistently a specific ownership setting on a file/folder?20:40
EvilResistancesay, user:www-data on a public_html folder20:40
undecimEvilResistance: I'm just using a cron job20:40
EvilResistanceundecim:  how often are you running it?20:40
undecimEvilResistance: Hourly20:40
* EvilResistance is using a cron job now as well, but wants to know if there's an easier persistent setup20:40
EvilResistanceah, i've got mine running every 5 minutes20:41
seekwillHow does it change?20:41
EvilResistancebut meh20:41
undecimIf you need real-time permission setting, I've heard lsync can do that20:41
undecimNever used it myself though20:41
EvilResistanceproblem is because its FTP20:42
EvilResistanceif a new file is uploaded, by default it has a different permission setup than i want it20:42
EvilResistances/FTP/SFTP/20:42
EvilResistanceso i at least need to set a persistent group setting20:42
EvilResistance(www-data)20:43
seekwilloh20:43
EvilResistanceby default it gets user:user or w/e it is20:43
EvilResistanceso i need it to be at least persistently user:www-data20:44
undecimEvilResistance: Looks like with Lsyncd, you can just set 'onCreate = chown user:www-data ^targetPathname" ' to get what you want20:44
seekwillI didn't know people still used FTP :)20:44
EvilResistanceseekwill:  SFTP (ssh tunnelled FTP)20:45
seekwillI would think the FTP server would be able to do something like that20:45
undecimseekwill: SFTP is a file transfer built into SSHd20:45
seekwillSure20:45
maxbSFTP isn't really the same as ssh-tunnelled-FTP20:45
seekwillscp or https! :)20:45
undecimEvilResistance: You'll have to compile Lsyncd yourself, but it will do what you want http://code.google.com/p/lsyncd/downloads/list20:46
undecimOr so it says... Like I said, I've never used it myself, but it seems fairly straightfoward to set up20:47
undecimCome to think of it, I should set this up on our public share20:47
EvilResistancemaxb:  *shrugs*20:49
EvilResistanceregardless20:49
qman__blendedbychris, you can't, at least not directly20:50
EvilResistancei'll take a look at lsyncd later, for now i'll stick with the cronscript :P20:50
qman__solution is to stop ntpd, set manually or use ntpdate-debian to update to a known good time server, then start ntpd again with good time servers configured20:50
qman__EvilResistance, look into the sticky bit20:52
qman__it doesn't enforce, per say, but it does change the default creation behavior20:52
qman__which may or may not do what you want20:52
qman__actually nevermind, I mixed it up with something else20:54
qman__maybe it's a mount option, I don't remember20:55
undecimqman__: I was about to ask, lol...20:55
qman__in any case, there's a way to make it so that files are created with parent directory's group-owner instead of user's default group-owner20:55
qman__quick google says setgid bit20:57
undecimqman__: I think that you're thinking of the mask mount options, which don't enforce permissions or change the default, but just ignore them completely... I think with a default of "allow". It's also filesystem specific20:58
qman__undecim, this is what I'm talking about: http://www.linuxquestions.org/questions/linux-newbie-8/inherit-permissions-of-the-parent-directory-in-newly-created-file-754097/20:59
qman__like I said, it doesn't enforce the permissions, it just changes the default creation behavior, which I think is all he wants in this case20:59
qman__so that newly uploaded files will have the correct group-owner and be usable by the web server21:00
undecimoic21:01
undecimMuch more elegant that what I suggested21:01
qman__I use this and a daily cron script on one of my samba shares21:01
qman__it's not a real enforcement, just mostly functional21:02
qman__I also use the sticky bit so users can't delete other users' files, which is probably why I mixed them up21:03
philipballewhas anybody used naigos before?22:33
=== Ursinha` is now known as Ursinha
=== Ursinha is now known as Guest65814
qman__!anyone22:42
ubottuA high percentage of the first questions asked in this channel start with "Does anyone/anybody..." Why not ask your next question (the real one) and find out? See also !details, !gq, and !poll.22:42
qman__philipballew, thousands of people, if not more, have used nagios before22:42
philipballewqman__, sorry. What advantages does it give me or what is the ease of use it provides?22:48
qman__philipballew, nagios is pretty simplistic in its design, its main benefit is in its modular design22:49
qman__you can define checks to do literally anything, and report back into the main system22:49
qman__it has a web interface and can email alerts22:50
qman__it's popular and has been around a while, so there's a lot of existing plugins you can use22:51
philipballewI was goin to follow this guide? http://www.debian-administration.org/articles/29922:51
qman__looks good, not sure if there are any changes for ubuntu22:53
qman__that's a good website22:53
qman__check the server guide first, I think there's a section on it22:54
qman__yeah: https://help.ubuntu.com/10.04/serverguide/C/nagios.html22:54
* philipballew hugs and high fives qman__ 22:55
qman__it doesn't say so at the top, in that example server01 is the monitoring server and server02 is just another server being monitored22:56
philipballewI can get notification emailed to me, can that just come to my ubuntu/gmail or would that need to go to my own domain email?22:58
qman__can go to anywhere your server is able to mail to22:58
qman__if you have an internet-configured mail server on your network, you can just configure it as a satellite system and it will be able to send to any email on the net22:59
qman__with your mail server as the smart host22:59
qman__if not, there are ways to configure postfix to use a gmail account or similar to send mail to the internet22:59
philipballewthis could be fun!23:00
qman__I set mine up with a gmail account before I had a static IP23:01
qman__that was with 8.04 though, been a while23:01
philipballewqman__, Im to cheap for a static :)23:01
philipballewor poor23:01
philipballew8.04 server was nice23:02
qman__yes it was, miss the days before all this plymouth nonsense23:02
qman__but you take the bad with the good, high resolution consoles that actually work are nice23:04
philipballewqman__, yeah, I personally like to see whats happening with my kernel23:04
qman__yep, and my fsck23:05
philipballewbut its good for your joe plumber user qman__23:08

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