/srv/irclogs.ubuntu.com/2014/02/14/#ubuntu-server.txt

jrwrenthe pvdisplay man page is wrong. *RAGE*00:24
jrwrencan anyone confirm for me. pvdisplay -c third output field is size in 512B blocks NOT size in kB?00:24
sarnoldI wonder if pvdisplay uses the same POSIXLY_CORRECT environment variable that df uses...00:25
jrwreneither way, the man page lies.00:26
bekksjrwren: Thats correct. It's 512B units.00:29
jrwrenthanks bekks00:29
bekksTested on several systems here, not just Ubuntu.00:29
bekksjrwren: You mind to create a bug?00:31
jrwreni appreciate it greatly. thank you very much.00:31
jrwrenI was going to LP just now.00:31
bekksjrwren: Could you provide the bug URL please, after bug creation? So I can subscribe.00:32
thumperdoes anyone know how to find out the underlying filesystem for a directory or device?00:32
thumperI know I can use 'df' to get from dir -> device00:32
thumperbut I want to ask "is this directory on a btrfs volume?"00:33
sarnoldthumper: I don't know of anything pre-built; your best bet might be to use df . to find the mountpoint and then look up the mountpoint in /proc/self/mounts. it doesn't sound fun..00:35
* thumper shrugs00:35
jrwrenbekks: https://bugs.launchpad.net/ubuntu/+source/lvm2/+filebug/dffddb12-950f-11e3-81c3-d485646cd9a4?00:35
thumperprobably better the proc fs than fstab00:35
thumper/proc/self/mounts lists / as rootfs, not ext400:36
thumperactually00:37
thumperjust got pointed to "mount -l"00:37
thumperwhich does list type00:37
thumperdo, "df ." gives me /dev/sda100:38
thumperthen "mount -l " I can parse (relatively easily)00:38
thumperI wonder how much the output of that has changed over versions00:39
sarnold'rootfs'? p_P00:39
thumperprecise is the same at least00:39
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
=== lazyPower_ is now known as lazyPower
=== freeflying_away is now known as freeflying
QueopsHey everyone. If I have one public facing VPS with static IP, hosting a couple sites on a couple domains which entries should I have on /etc/hosts besides the localhost one?05:11
QueopsI know the hostname is usually there by default, associated with 127.0.0.1 but the hostname itself doesn't represent anything05:15
QueopsNo domain or anything, which I can only assume it serves as purpose to some services05:15
Queopsor maybe I'm using the hostname wrong :)05:17
shaunoQueops: I don't believe apache cares05:20
QueopsI used to have a fully functional postfix and I remember putting my static IP there once, but I don't remember the reason for it anymore. I guess as a lone VPS with no other machines working with it the hostname pretty much doesn't matter right?05:21
shaunomail might, smtp is a fickle beast.  but for hosting sites you just need vhosts setup in your httpd05:22
shauno(I personally believe there's no such thing as a correct smtp setup, you're just trying to be broken in the same way as everyone else)05:23
Queopsyeh smtp is a pain in the butt :) specially the ram required to scan for virus and spam, that's why I'm using outside services now05:23
QueopsThanks shauno05:23
TraderJoes Do any of you run Cisco Connect (admin program for Cisco/Linksys routers)?   I wondered if it works in wine or if I'll have to use the web based administration. I checked the wine database and it's not listed.06:48
TraderJoesor if theres an ubuntu specific tool for such that might help. I didn't see any such thing in the cisco/linksys sites.06:49
_root_whic one is better is handling and prevention in general what I am asking is which one works better ???  a)Postfix + Amavis-new + Spamassassin + Clamav  OR  PostfixGreylisting????07:05
z1hazecan someone please help me? is it possible to reinstall ubuntu via ssh? i dont have assistance from my server provider and the server is remote08:03
z1hazei messed up the filepermissions by messing up a chown command for the root folder08:04
RepoxHi. I realise that this must be both the wrong channel and that I'd might be using bullsh*t buzz words, but I'm hoping someone can point me in the right direction. I'd like to handle 'big data' in a business intelligence relation. I'm unsure what technologies for Ubuntu I'd be looking at. Currently I'm thinking of combining ElasticSearch and MySQL, but I'm unsure of this is the right combination.08:05
mreggNeed help with linux permissions on samba shared folders08:36
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
hxmis webmin a good choice?12:12
Adri2000no12:14
Adri2000:)12:14
hxmwhy is the best option then12:15
hxmwhat*12:16
disposab1ei have a precise server with 3.8 kernel and i would like to set a specific mac address for a bond0 (active-backup). when i use "hwaddress ether x:x:x:x:x:x" line in /etc/network/interfaces, it has absolutely no effect. server still boots up with an address randomly picked from one of its slaves. what is the correct way of setting a mac?12:28
ogra_disposab1e, /etc/udev/rules.d/70-persistent-net.rules12:33
disposab1eogra_: udev rule for a virtual interface?12:41
ogra_well, you asked where MACs are handled nowadys :)12:42
Patrickdkheh? you don't set mac in there12:43
Patrickdkit does set the nic name based on the mac there12:43
disposab1eogra_: you got it the other way around. that rule sets name for mac. not mac for name12:43
=== disposab1e is now known as disposable
goikuHi, guys. Just a quick question, if I may. Am in the process of moving over from Redhat and have encountered this problem: http://hastebin.com/xowoyumudu.bash - I am sure it's a quick fix, but getting this server up needs to happen already and everything I have tried to far has not helped. Can I get a quick pointer, please? Thanks13:38
jnorI have two connections: root and user1. As root, if i type "passwd user1" and change the password to 123456, then reconnect as user1 and try sudo and it says password is wrong13:44
=== PeterSchwaller_ is now known as PeterSchwaller
jnorthis is so strange.. wtf14:14
=== freeflying is now known as freeflying_away
=== tyhicks` is now known as tyhicks
hxmhi, I send emails with "mail -s" from a script with root, but I dont want to see the root@domain, can I define a different alias?15:50
rbasakhxm: I'm not sure if mail can do that. Have you tried "man mail" or looked further into its documentation? Another approach is to fix it in the MTA. Though usually, for root mail, that's not desirable.15:52
hxmyes I tried, and there is no information about the sender15:53
rbasakhxm: to override on a case-by-case basis, you could use "sendmail -oi -t" and write your headers directly in the script, including From:, Sender: etc as needed.15:53
hxmi know, but the script I made requires root privileges for create some /etc/apache2/sites-available/ files and then send an email15:53
hxmoh, um, i'll try that, thanks15:54
rbasakhxm: I suggest that you minimise your use of root privilege. Create /etc/sudoers.d/ rules and individual scripts for the specific actions you need, and run the rest of it (including mail sending) as non-root.15:55
hxmok, thank you, I appreciate it15:56
hxmby the way, what about webmin or openPanel, are those tools recommended?15:56
rbasakwebmin is apparently discouraged.15:56
rbasak!webmin15:56
ubottuwebmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.15:56
rbasakNo idea about openPanel.15:56
rbasakI would suggest that you can use what you like, but the set of people who can help you with things will drop dramatically. I would use what your support channels are familiar with. If this *is* your support channel, then probably best not to use those.15:57
hxmoh15:57
hxmright15:57
yeatshxm: webmin is probably fine, even though it's not officially supported - the way it does things *does* conflict with Debian/Ubuntu standards though16:05
geniiI think supposed to be ebox/zentyal for webgui now16:07
yeatsgenii: cool - I'll check that out16:10
rbasakrharper: I'm catching up on uvtool. --meta-data is in and I'll upload it shortly. I refactored your code quite a bit though.16:36
rbasakIs there anything else I've forgotten about?16:36
rbasakOh - I fixed the template.xml thing for acpi etc too.16:36
DeltaHeavyHey, I have an nginx server running on Ubuntu 12.04, and as far as #nginx is concerned it's configured correctly. However when I try to run 'curl staging.decorgroupinc.com', I get 'curl: (7) couldn't connect to host'. Is port 80 probably being blocked? I flushed netfilter and changed all chain's default policies to ACCEPT. What else could it be?16:44
DeltaHeavySorry, accidently parted.16:45
jpdsDeltaHeavy: Have you checked that nginx is correctly running with: "sudo netstat -lntp" ?16:47
DeltaHeavyjpds: It appears to not be...I see sshd and mysqld but yeah...nothing on port 8016:47
TJ-DeltaHeavy: If there are no netfilters rules blocking it, then the other thing to check is which IP addresses/interfaces nginx has bound to16:47
jpdsDeltaHeavy: Check the logs. :)16:48
DeltaHeavyAwesome, I think this is it. Thanks!16:48
DeltaHeavyNope, nvm. Nothing in here. Those are errors from before =/16:49
TJ-DeltaHeavy: You're sure the process is running? It hasn't silently failed?16:50
DeltaHeavyTJ-: Process is running16:51
TJ-DeltaHeavy: and bound to port 80 on the IP(s) you expect?16:51
DeltaHeavyTJ-: netstat -lntp     doesn't come up with anything about nginx16:52
jpdsDeltaHeavy: But 'ps aux | grep nginx' shows it running?16:52
TJ-DeltaHeavy: which suggests the process isn't binding to any ports, if the process is running16:52
rbasakDeltaHeavy: are you running netstat as root? -p won't see nginx otherwise (but it should still see the port open)16:54
DeltaHeavyrbasak: I'm running it under 'sudo -s'16:54
rbasakAnd what about curl using the IP directly from the host itself?16:55
DeltaHeavyhttps://www.refheap.com/c0383a26d60db41edf1e24beb16:55
DeltaHeavyrbasak: Won't work, nginx isn't configured to return anything unless the actual server name is used16:56
TJ-DeltaHeavy: So use a manual telnet session16:56
DeltaHeavyTJ-: telnet staging.decorgroupinc.com 8016:57
DeltaHeavy        gives me 'session refused'16:57
rbasakDeltaHeavy: doesn't matter. Try it anyway. If nginx is working, it should give you something different from "couldn't connect to host" and that is useful.16:57
DeltaHeavyconnection refused*16:57
TJ-DeltaHeavy: "telnet <ip address> 80"  ... "GET / HTTP1.1/" ...  "Host: <hostname>"  ... ""   ... ""16:57
DeltaHeavyrbasak: Same result16:57
DeltaHeavySame with telnet16:57
TJ-DeltaHeavy: So, the process isn't listening, so start the nginx deamon manually and make sure it is providing verbose output16:57
DeltaHeavyOk, trying to figure out how to start nginx with verbose16:58
TJ-DeltaHeavy: "nginx -t" will test the config16:59
DeltaHeavyYeah, already did that a bunch of times, and just now again. All is fine. That's not starting nginx with verbose though.16:59
rbasakDeltaHeavy: with the server IP, from the server machine itself?17:00
DeltaHeavyrbasak: Yep17:00
TJ-DeltaHeavy: pastebin the config17:00
rbasakDeltaHeavy: then it's iptables or your nginx config.17:01
DeltaHeavyiptables is disabled17:01
DeltaHeavyOr all is set to ACCEPT ad a default policy with no rules17:01
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
rbasakI suggest that you stop making self-defeating assumptions here, like "won't work" or "iptables is disabled". Clearly one of your assumptions is wrong, else you wouldn't have a problem. Describe exactly what you're typing, and exactly the results you see on the screen - not your own interpretations of these things.17:03
DeltaHeavyTJ-: https://gist.github.com/anonymous/33b0ec963c479d22f62917:04
DeltaHeavyrbasak: It's not self-defeating to say that iptables has all default policies set to 'ACCEPT' with no rules, or that my nginx 'won't work' because it won't.17:05
rbasakLet's hope that somebody else can help you then.17:05
DeltaHeavyHave my netfilter config here too - https://gist.github.com/anonymous/53c76863ae9004f4dc5617:06
DeltaHeavyrbasak: I don't really understand why you're being so condecending...but whatever.17:06
TJ-DeltaHeavy: Does nginx have permissions to read /usr/share/nginx/ ?17:06
jpdsIt's not the firewall that's at fault here.17:06
DeltaHeavyTJ-: It didn't, I just changed that with 'chown -R webdev:webdev /usr/share/nginx/'17:07
DeltaHeavySeems to not have done anything17:07
* jpds isn't sure if that was a good idea.17:07
rbasakDeltaHeavy: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html "If a programmer asks you for extra information, don't make it up! Somebody reported a bug to me once, and I asked him to try a command that I knew wouldn't work. The reason I asked him to try it was that I wanted to know which of two different error messages it would give. Knowing which error message came back would give a vital clue. But he didn't actually try it - he just mailed me 17:08
rbasakDeltaHeavy: it's very frustrating when I try to help, but you knock me down because you don't understand why I'm asking. Sorry.17:08
jpdsDeltaHeavy: Well, looking at http://packages.ubuntu.com/precise/all/nginx-common/filelist - there's nothing interesting in that directory anyway.17:09
DeltaHeavyrbasak: Whatever17:09
TJ-DeltaHeavy: Did you look at "/var/log/nginx/error.log" for clues? How far does it get logging when it starts?17:09
DeltaHeavyjpds: It's my document root17:09
DeltaHeavyTJ-: I did, nothing is being written there.17:09
DeltaHeavyLast error is when I made an error in my conf a few hours ago.17:10
jpdsEw.17:10
TJ-DeltaHeavy: so, you need to enable verbose logging of nginx to gain detailed information17:10
DeltaHeavyjpds: I have multiple websites on this host, or plan to.17:10
jpdsWho keeps their docroot in /usr? That's what /var/www/ and /srv are for.17:10
DeltaHeavyjpds: nginx does by default. Nothing wrong with it as far as I can tell17:10
DeltaHeavy/usr/share/nginx/ makes a lot of sense IMO17:10
DeltaHeavyTJ-: I was looking on how to get nginx to start with verbosity but I see no such option. Am I misunderstanding you?17:11
jpdsMakes no sense to me.17:12
jpdsAnyway. <opinion />17:12
jpdsDeltaHeavy: https://rtcamp.com/tutorials/nginx/debugging/17:14
TJ-If the nginx process isn't shown to be listening on port 80, then something fundamental isn't configured17:15
DeltaHeavyI'll look into jpds tutorial17:17
TJ-DeltaHeavy: Have you symlinked your configuration files to "/etc/nginx/sites-enabled/" correctly  "ls -l /etc/nginx/sites-*/ | pastebinit"17:17
DeltaHeavyShould be in the pastebin I linked you under 'Shell' - https://gist.github.com/anonymous/33b0ec963c479d22f62917:18
TJ-DeltaHeavy: Nope, only "ls" not "ls -l"17:19
jpdsDeltaHeavy: Have you tried removing this line? "listen [::]:80 default_server ipv6only=on;"17:19
DeltaHeavyTJ-: lrwxrwxrwx 1 root root  7 Feb 14 10:31 default -> default17:19
DeltaHeavylrwxrwxrwx 1 root root 25 Feb 14 10:46 staging.decorgroupinc.com -> staging.decorgroupinc.com17:19
jpdsDeltaHeavy: It's a link, onto itself?17:20
TJ-DeltaHeavy: There's your problem17:20
DeltaHeavyNo idea why =S https://gist.github.com/anonymous/3dfced1c2943713f4c4317:21
TJ-DeltaHeavy: If you used the command correctly...!17:21
DeltaHeavyFixed it17:22
DeltaHeavyGetting this now, going to go about fixing it - 'Restarting nginx: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32'17:22
DeltaHeavyFantastic...it all works.17:23
DeltaHeavyThanks guys!17:23
rharperrbasak: cool.  I don't think so. IIRC you already merged the fixes for when specifying a specific bridge name17:28
rbasakhallyn, zul: shall I just upload http://paste.ubuntu.com/6914206/ then?17:52
hallynrbasak: yup17:52
hallyn(i assume it didn't make it into zul's upload then?)17:52
rbasakOK, doing it now - thansk.17:52
rbasakIt seems not.17:52
rbasakhallyn, zul: uploaded.17:57
=== matsubara is now known as matsubara-afk
=== matsubara-afk is now known as matsubara
p3rsistHi guys. I want to run a command with user B env variables but with root permissions from a user A shell. How can I do it?20:09
sarnoldp3rsist: how do those environment variables get set? replicate those steps..20:10
p3rsistSarnold I want to run a command in user B environment but with root permissions from a user A shell. I know I can use sudo -i -u userB sudo -E <command>... I was wondering if there are other ways20:15
DeltaHeavyIs pastebinit a potential security threat?20:53
TJ-Not if you don't install it20:54
sheptardallowing anyone to access the machine including yourself is a potential security threat20:55
DeltaHeavyTJ-: Of course :p I'm wondering if I should uninstall it when I'm done with it, and reinstall it as I need it.20:56
DeltaHeavysheptard: Yeah, I just want to minimize things.20:56
sheptardit's not a network service20:56
sheptardand it's not installed suid...20:56
sheptardand if you want to 'minimize things' run OpenBSD.20:57
sheptardno holes in a default install in at least a week.20:57
TJ-DeltaHeavy: Or you could do what I do: "sudo chmod o-x $(which pastebinit)"20:57
DeltaHeavyTJ-: I only have one user on the server anyway20:58
TJ-DeltaHeavy: But it's not different to having 'cat' available20:58
AtwQuestion, I am having issues with environment variables/$PATH, it started with me getting a different PATH value (checked with 'printenv') on other accounts (example, ssh deploy@1111, printenv, PATH=/usr/local/rbenv/shims:..., then 'su User', printenv, PATH=/usr/local/sbins:..., then even changin back to 'su deploy' I'm stuck on this other PATH). I seem to have patched the problem by21:56
Atwchanging '/etc/environment' so now it seems like changing users gives me the path I want, BUT if I open a remote terminal from NAUTILUS while the server is mounted via ssh I still get sidelined on this other PATH I don't want? How can I stabliize my global PATH the right way?21:56

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