/srv/irclogs.ubuntu.com/2009/03/31/#ubuntu-server.txt

olcafoxen's live migration sounds pretty awsome...00:00
olcafokvm's live migration sounds equally awsome... now I'm going to have to set something up so I can try it!00:01
arrrghhhanyone use mt-daap (aka firefly)?  i installed the version from the repo's, and that failed when it tried to add a file.  so i figured i would compile the newest from source, and i can't seem to compile it without libid3tag dependency...00:25
dustinis there a place where we can send recommends for next puppy version?00:25
arrrghhhpuppy?  what does this room have to do with puppy?00:25
dustinI think a search bar in the package manager would be steller00:26
dustinah heck I am in the wrong tab00:26
dustinsorry00:26
arrrghhhi was confused there for a second lol00:26
dustinusing puppy to rescue my server and irc has like 10 tabs and everyone in each has had something to offer00:27
dustinI am so glad for irc00:27
olcafodoes anyone here have certifications? If so, which ones?00:29
arrrghhhstill not sure what that has to do with ubuntu-server... or even ubuntu.00:29
olcafoubuntu has server certification I believe00:30
arrrghhhdoubt it.  at least not an 'official' cert.00:30
arrrghhhnothing like RHEL or SLES.00:31
mathiazkees: jdstrand: what's your opinion on bug 293258?00:31
uvirtbotLaunchpad bug 293258 in mysql-dfsg-5.0 "mysql user has home directory writable by mysqld" [Undecided,Confirmed] https://launchpad.net/bugs/29325800:31
arrrghhhanybody use mt-daap or firefly on their ubuntu-server?00:32
olcafoarrrghhh: what about http://www.ubuntu.com/training/certificationcourses00:32
arrrghhholcafo, yes, but i don't think those are like the RHEL or SLES certs.00:33
olcafoarrrghhh: I suppose not, now than I'm looking at it. Still would be interesting to hear about.00:35
arrrghhhcertainly.  but they won't have the same type of clout the other certs will (unless you KNOW the company wants ubuntu certs, which, i have never run into unfortunately.)00:36
uvirtbotNew bug: #351254 in mailman (main) "Need version bump - 2.1.11 broken with Python 2.6 (dup-of: 351648)" [Undecided,New] https://launchpad.net/bugs/35125400:36
infinitymathiaz: FILE privs are often considered inherently insecure in the first place, but it might be better for the mysql user to have "/nonexistent" as its home directory to at least prevent the dotfile attack vector.00:52
infinitykees, jdstrand: ^^00:53
=== espacious_ is now known as espacious
LumpToeStrange issue:  I can access my server from a remote network and my server can access all devices locally but not any of the external ip addresses?  Is this a gateway setup issue?02:08
goofeyLumpToe: maybe a DNS issue?02:10
goofeyLumpToe: oh, wait, can;t acces IP addresses-  sorry, ignore me02:10
goofeyLumpToe: can you traceroute or mrt from the server to see where it fails?02:11
LumpToeYeah dig manages to resolve the addresses but tracepath stops at the route02:11
goofeythat does sound like a gateway issue02:12
LumpToeThis is a brand new install and a DHCP issued address from the router02:13
LumpToeHow can I see the gateways used on my ubuntu box02:13
goofeyI was just wondering that02:14
owhLumpToe: route -n02:15
LumpToe0.0.0.002:15
LumpToebrb  nature calls02:15
goofeyLumpToe: my server has 2 lines:02:16
goofey192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth002:16
goofey0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 eth002:16
lwizardlhow can you tell which raid controllers are supported for doing installs?02:51
LumpToeback03:07
LumpToegoofey: My server has the same two lines03:07
LumpToegoofey: It was my router.  Strange.  I went through some of the route tables and wiped out anything with the same IP address.03:16
Sam-I-Amanyone here ever use the dhcp3 package w/ ldap patch?03:53
twb!anyone03:55
ubottuA large amount 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?03:55
Sam-I-Amlol03:56
Sam-I-Amso... when i give it credentials for its account on ldap, it breaks with the error of "success" ... when i give it the wrong password, it seems to re-bind anonymously and works except it can't write to the ldap dn, so it fails.03:57
Sam-I-Ambinding with ldapsearch with or without credentials works fine03:57
twbSam-I-Am: does libnss talk to LDAP?03:58
twbThat is, does your /etc/nsswitch use ldap?03:58
Sam-I-Amnot on the ldap server03:58
Sam-I-Ami dont think the patch uses libnss03:58
Sam-I-Amseems to have all of its config in dhcpd.conf03:59
twbHmm, OK.03:59
Sam-I-Amthe debug mode doesnt provide any useful information... and the documentation is scarce.  pretty much had to reverse engineer the schema file to figure out what i should have in my ldap tree.03:59
twbI hates LDAP04:00
Sam-I-Ami love ldap...04:00
Sam-I-Amso, if i could figure out how to make the package even work... i'd consider writing useful documentation for it.04:00
Sam-I-Ammight need to find its maintainer...04:00
Sam-I-Amthe guy who wrote it is nowhere to be found04:00
Sam-I-Amits a universe package04:01
aranyikhi :)04:03
aranyikhow can I troubleshoot my settings if I did everything as "How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch" said. and I still cannot ping the NIC that connects to internet ???04:05
twbaranyik: Etch is not Ubuntu04:14
aranyikok04:15
aranyikbut its debian04:15
twbaranyik: this is not a Debian support channel.04:16
twbaranyik: try #debian on irc.debian.org (OFTC).04:16
aranyikok..04:16
aranyikthen how can i make the same in ubuntu04:16
aranyik?04:16
aranyiki know dhcp3-server is supported04:17
aranyikhow about bind9?04:17
aranyiki think it is also04:17
twbaranyik: I don't know what you're trying to achieve.04:18
twbaranyik: for Ubuntu you probably want to read the Server Guide.04:18
aranyiki tried it at forst04:19
aranyikat first04:19
aranyikand it wasnt working04:20
aranyikthen every thread in ubuntu will show similar ways04:20
Sam-I-Amtwb: doing some digging... seems like intrepid grabbed a buggy package version from debian... might be fixed in lenny... which means it'll probably be in jaunty04:20
aranyikbut its still not working04:20
twb!enter04:21
ubottuPlease try to keep your questions/responses on one line - don't use the "Enter" key as punctuation!04:21
aranyika router is a very easy thing to set up, but i never had so much problem since i tried on ubuntu04:22
twbGet:2 http://au.archive.ubuntu.com hardy-updates/main ubuntu-docs 8.06.1 (tar) [42.5MB]04:22
twb...ugh, forty megabytes?04:22
twbWhat, did some jackass forget to "make clean"?04:23
Sam-I-Amlol04:23
Sam-I-Amor gzip04:23
twbSam-I-Am: no, it's gzippe04:25
twbHowever I don't understand why Ubuntu 8.04's version is 8.06-1...04:25
twbThey ought to call it 8.04.1-1 or something.04:25
Sam-I-Amyeh04:25
Sam-I-Amprobably a typo04:26
twbSam-I-Am: er, not likely04:26
twbSam-I-Am: more likely that they version the docs based on when they are released, and 8.06 is from -updates04:26
twbHmph.  The source directory of the tarball is ubuntu-docs-8.04.2~hardy04:27
twbI bet lintian doesn't like that04:27
Sam-I-Amlol04:28
twbapt-cache policy ubuntu-serverguide says:04:33
twb     8.06.1       0 500 http://mirror.internode.on.net hardy-updates/main Packages04:33
twb     8.04.2~hardy 0 500 http://mirror.internode.on.net hardy/main Packages04:33
twbOK, so what happens in that file, AFAICT, is that there are canonical English .xml files, and then .po files that contain each English paragraph and its translation (i.e. each paragraph occurs 1 + 2*(number of translations) times).  Then on top of *that*, I think the autogenerated translated .xml files are reproduced in the source?04:45
=== ^law^41 is now known as _law
=== _law is now known as _law_
twbCheck this shit out:04:54
twbfgrep -rl 'You can use the CVSROOT environment variable to store the CVS root' * | wc -l04:54
twb8304:54
Sam-I-Amhuh...04:54
twbThat's right *eighty three* copies of the same text in the source tarball04:54
Sam-I-Amwell aint that special04:54
twbI'm sure someone is just being lazy.  That can't be the only way to do it04:54
twbMaybe it's something horrible like Canonical builds its docs using its unpublished internal code, so the source package actually contains postprocessed files.04:55
oh_noesis there a package from repo i can install for VMWare Tool on Ubuntu Server?05:09
oh_noesOr do I have to manually install it05:09
twboh_noes: do you mean so you can run ubuntu-server as a guest inside vmware?05:13
twboh_noes: on Debian there is open-vm-tools, I can't see it in 8.0405:17
twboh_noes: that it the "install VMware Tools" thing built properly in a .deb05:17
twbs/it/is/05:17
oh_noesits not, atm it's all manually, and you have to install your kernel source05:19
oh_noesI wasnt sure if Ubuntu had package for it, but thats ok05:19
twbIt's in 8.1005:19
twbhttp://packages.ubuntu.com/open-vm-tools05:19
twbI guess you could backport it05:19
Sam-I-Amand the 8.10 package works flawlessly05:22
Sam-I-Amalthough vmware is a little weird on detecting if the guest is running vmware tools...05:22
twbI'd certainly be more inclined to trust backporting the intrepid package over using the shitty virtual CD full of scripts and sharballs that vmware-server itself mounts.05:23
Sam-I-Amyeah, also known as... binary blobs05:33
Sam-I-Amand m-a just makes it so easy to get modules in open-vm-tools05:34
twbSam-I-Am: actually, no05:37
twbSam-I-Am: the vmware tools .iso contains pre-compiled .ko files only for RHEL kernels05:38
twbSam-I-Am: there's also the module source in there, which would be used on an ubuntu guest05:38
Sam-I-Amand some others... like sles i think05:38
Sam-I-Amtrue05:38
Sam-I-Ambut their builds break on 'modern' systems05:38
Sam-I-Amthanks to module build dependencies05:38
Sam-I-Ami made a patch some time ago for it...05:39
Sam-I-Amother folks seem to combine vmware-tools and open-vm-tools05:40
Sam-I-Amalmost seems like ubuntu is getting along better with vmware these days than redhate since they're pushing their own vm system05:40
twbEh, vmware can FOAD as far as I'm concerned.05:42
Sam-I-Ami really like virtualbox05:42
twbqemu -curses along makes qemu beat it, not to mention stuff like -tftp05:42
Sam-I-Ambut trying to sell it to management is difficult05:42
Sam-I-Am"what, we dont have to pay for it?"05:42
twbWell, virtualbox has a non-free edition05:43
twbThat's part of the reason I mistrust it05:43
twbSam-I-Am: you can sell it to your management by calling the OSE "the demo version"05:43
Sam-I-Amlol05:43
oh_noesthats not a valid argument05:43
Sam-I-Amwell, my first thing is trying to convert management from centos/rhel to ubuntu05:43
oh_noesUbuntu has a non-free edition (support) so you cant mistrust it05:43
Sam-I-Amits quite the uphill battle05:44
twboh_noes: I do mistrust canonical.05:44
twboh_noes: I would VASTLY prefer Ubuntu to be a Debian blend or subproject rather than a fork that syncs irregularly.05:44
twboh_noes: but providing support is quite different to having having two separate versions of a product.05:45
twbIt's not like Ubuntu has a RHEL and a CentOS version05:45
oh_noesagreed, but they only charge for the features business want.  For example OSE has USB support etc, and the non-free has remote desktop.05:46
Sam-I-Amyeah, the packages arent 3 years old :)05:46
twboh_noes: that's precisely my point.05:47
twboh_noes: it's the same business model as cedega has.05:47
twbIt's based on treating to wider community as second-class citizens.05:48
Sam-I-Amwelp, time for bed here05:49
Sam-I-Amlaters05:49
oh_noesI disagree.  Its giving them wider community what they want for free, and charging business for anything additional they need.05:50
oh_noesSure, if they start removing functionality used by the wider community, then they break this05:50
oh_noesbut currently, what they are doing functionality wise I think is a great compromise05:50
twbApart from the fact that they're deliberately taking away features I want, but aren't prepared to pay for.05:56
twbIt means that if I want those features I have to add them into a fork of the product.  It's a divisive business model.05:57
twbIf they took a "sell consulting" approach, then all the code could be open, and everybody would be working on the same codebase.05:57
quizmehow can i tell if I'm using x86_64 or AMD64 architecture ?06:05
quizmewhat is an unstripped build ?06:05
quizmeam i allowed to use the multiverse directory if I'm on 8.04 ?06:06
p_quarlesquizme: they're the same architecture06:06
p_quarlesI don't know what an unstripped build is, and yes, there's a multiverse repo for every Ubuntu version06:06
quizmep_quarles: I mean  how can i tell if i'm 32 bit or 64 bit06:07
p_quarlesquizme: the CPU or the kernel?06:07
quizmei'm not sure06:09
quizme"x86_64 or AMD64" is that cpu or kernel ?06:09
p_quarlesquizme: again, x86_64 and AMD64 are the SAME THING; what I'm asking is whether you're trying to figure out if your hardware is 64-bit capable, or if the OS you're running is 64-bit06:10
p_quarlesor (this might be easier) what's your real quetion? why do you need to know?06:12
quizmemy real question is06:13
quizmehow do i install ffmpeg06:13
quizmefor 8.0406:13
p_quarlesquizme: sudo apt-get install ffmpeg06:14
p_quarlesthe dependencies and architecture questions are automatically resolved by the apt-get program06:14
quizmehow about the codecs and libraries?06:15
quizmei have 8.04 on my server06:15
quizmehttps://wiki.edubuntu.org/ffmpeg  <--- i found this06:16
quizmeit looks like there is a bunch of other commands i need to do also06:16
quizmeUnstripped build of FFmpeg for Ubuntu 8.10 Intrepid  <--- like what does that mean?06:16
p_quarlesquizme: okay, I can see where your questions came from now, and let me just say that they are meaningless outside of that context; so start with the "real question" next time, okay? :D06:18
p_quarlesnow, to answer: follow those commands exactly and you should be good06:19
p_quarlesto find out if you're running 64-bits, run in the terminal: uname -406:19
p_quarlesoops, that should be uname -r06:19
p_quarlesif it's 64 bits, it will contain the term "x86_64" in the output06:20
p_quarlesas for "unstripped build", that just means a copy of the codec pack as Fluendo distributes it, rather than the modified way Ubuntu ships it06:21
quizme2.6.21.7-2.fc8xen06:24
quizmethat's my uname -r06:24
quizmewho is Fluendo ?06:25
p_quarlesso it's a Xen virtual machine? anyway, not 64 bits, so you can skip the section in question06:25
quizmeUnstripped build of FFmpeg for Ubuntu 8.10 Intrepid  <----- i'm runing 8.04 though06:26
quizmei am running on AWS / EC206:26
quizmeso is that a dangerous command to run ?06:27
p_quarleswhat command?06:27
quizmesudo apt-get install libavcodec-unstripped-51 libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0   <--- this command06:27
p_quarlesno06:27
quizmeok06:27
quizmebut why does it say 8.10 ?06:27
p_quarlesoh, looking again, it appears to say those packages are available through apt-get only in 8.1006:28
p_quarlesfor older versions, you'll need to use the instructions below06:28
quizmecan i upgrade my whole system to 8.10 ?06:29
quizmeis that safe ?06:29
quizmefrom 8.04 to 8l.1006:30
p_quarlessafe is relative; if you're asking "can it break?" the answer is yes; if you're asking06:33
p_quarles"is it supposed to break?" the answer is no06:33
p_quarles"safety" in my view is having a backup plan, and not relying on unfamiliar (to you) software to make things flawless; the latter is almost always unrealistic06:34
quizmegood advice06:35
p_quarlesanyway, the majority of version upgrade experiences are pretty smooth, but there is a significant minority that runs into big bumps during the process06:36
uvirtbotNew bug: #352154 in openssh (main) "ssh-agent stops responding" [Undecided,New] https://launchpad.net/bugs/35215406:45
ragsI want my ubuntu server to act as a gateway...wht I understand is I have to enable routing(net.ipv4.ip_forward=1)..Is there anything more I have to do? this server is connected to another router.07:08
ragsdo I need to setup iptables and NAT?07:09
simplexi1rags: depends which kind sharing you want to configure07:10
simplexi1rags: options are transparent bridge and NAT, google those07:10
ragssimplexi1: thx..will check...I just want net access for the clinet machines behind the ubuntu server...I suppose that means a transparent bridge.07:12
simplexi1rags: nat if you dont want access to it from anywhere, or bridge if you want acces it from another place than server07:14
ragswill the forwarding work with just wht I have done...since nat is already present on the router?07:16
quizmeif you say:  apt-get install a b c d e f ....... to reverse that can you say: apt-get remove a b c d e f ......... and that will bring the state of your system to exactly where it was before ?07:23
rst-uanicquizme: if a had a dependency h, h would not be removed after step 207:25
rst-uanicbut if h was the only a dependency for a it would be listed as a package that is no longer in use, and you can remove it with sudo apt-get autotemove07:26
quizmeoh i c07:27
rst-uanicwell07:27
rst-uanicif you will do sudo apt-get install pack1 pack2 pack3, it will give the list of all the packages that would be installed07:28
rst-uanicyou can save it07:28
quizmewhat if c was installed before step 1 ?07:28
rst-uanicit would not be listed in the packages that would be installed07:29
rst-uanicso you won't delete it after07:29
quizmedo you mean uninstalled ?07:29
rst-uaniclook07:30
quizmebasically i am wondering if i uninstall a b c d e f I don't want it to wreck anything else that may want it there07:30
rst-uanicif you had pack1 installed, and you would run sudo apt-get install pack1 pack2 pack3, pack1 would not be listed as the package that would be really installed07:31
rst-uanicso you will know that you should not remove it :)07:31
quizmethe problem is07:31
quizmei already ran apt-get install07:31
quizmeso i can't see  that list07:31
rst-uanicheh)07:31
twbquizme: /var/log/dpkg*log07:32
quizmetwb: i c.... i have to dig in there .... thanks07:32
quizmeoh boy07:33
quizmei need a bubble bath07:33
rst-uanic:) just look at the timestamp07:33
twbquizme: had you used aptitude, there would be /var/log/aptitude, which is more readable07:33
quizmei c07:33
quizmehmm07:33
quizmeok07:34
quizmei'll use aptitude from now on07:34
quizmethis is goign to be hell07:34
rst-uanicquizme: there is /var/log/apt/term.log07:36
rst-uanicquizme: you would see the output of apt-get you ran before07:36
quizmebasically to get my system back to a state S0 at time t0, i should remove all packages installed after t0 if they weren't already in the system before t0.07:36
quizmethen type in apt-get autoremove07:37
quizmeit seems like that could be automated with a script07:37
rst-uanicquizme: look at the /var/log/apt/term.log07:38
twbThat still is not guaranteed to get you back to what you had before.07:40
twbIn particular, removing (instead of purging) will not remove config files07:40
twbAnd some buggy packages will leave stuff in /etc or /var even after you purge them07:41
twbdatabase packages sometimes do that to avoid data loss.07:41
quizmeit would be cool if there was a program that could bring your software and library state to a certain time point by dragging a "scrubber control" like in a video player.07:42
rst-uanicquizme: it is called time machine in mac os x ;)07:42
quizmetwb: so there is no clean way to make a time machine with apt-get ?07:43
twbIt has been discussed, but does not exist yet.07:44
twbIn particular it will be easier once btrfs is in production, as it (like ZFS) supports snapshots.07:44
twbIn general, removing packages and purging them (aptitude purge ~c) should be sufficient07:46
twbIt's just not GUARANTEED to be identical07:46
quizmeok07:48
quizmeso i'll just aptitude purge all the packages in installed today07:49
quizmethen reinstall what i was supposed to07:51
quizmehopefully that doesn't break anything else07:51
quizmeaptitude purge ibavcodec-unstripped-51 libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0   <--- this looks pretty safe doesn't it ?07:53
rst-uanicquizme: sudo apt-get purge07:57
CounterspellI'm on Ubuntu 8.04.2 LTS and for some reason I can't get vim installed correctly. The package installs but vim complains about missing features (such as no syntax highlighting). Anyone know what's going on?08:16
friartuckCounterspell did you customize ~/.vimrc?08:17
Counterspellyes08:17
friartuckCounterspell rename it and give it a try without it.08:18
Counterspellwhy is the vim build screwed up?08:18
Counterspellok08:18
Counterspellof course that will work08:18
Counterspellbut i want those features08:18
friartuckCounterspell no, I think you messed up your .vimrc08:18
friartuck:)08:18
friartucksyntax08:18
Counterspellno vimrc is ok08:19
Counterspelli just copied it from my other box08:19
Counterspellnothing wrong with it08:19
friartuckhm08:19
friartuckregular sudo apt-get vim?08:19
Counterspellsomeone think the build for server would be 'more stable' without syntax highlighting?08:19
friartuckno08:19
Counterspellyes normal sudo apt-get install vim08:21
friartuckCounterspell are you invoking with vi? maybe try with vim?08:21
Counterspellnope; let me see i just did apt-get update and now it looks like i can install vim-full08:21
friartuckI don't have an 8.04 box. np with 8.10.08:22
Counterspelli think i'm all set now08:23
Counterspellthanks man08:23
Counterspellfyi; install vim-nox is the way to go08:23
Counterspellwhere are packages downloaded to again? i want to delete some downloaded packages08:23
CounterspellCounterspell: /var/cache/apt/archives08:24
CounterspellCounterspell: thanks08:24
friartuckspaces in file names...wrote a simple script to inventory the permissions for files and dirs with full path. all works except file names with spaces. some help? http://pastebin.com/m11102c4108:24
friartuckpointer?08:25
krautmoin08:37
_rubenfriartuck: i assume something like this would work (not-tested) : find ~/.nx -name "*" -print0 | xargs -0 ls -Alhd08:39
friartuck_ruben interesting, that may work better. Thx! I'm working with sed to figure out the first script.08:41
Counterspelldoes apt-get build-dep only install the dependencies of a package?08:42
friartuck_ruben your's fixed the space problem anyways.08:42
Counterspellhow do I install only the dependencies of a package?08:57
espacioushi i installed gallery2 but i cant get the relative paths right...i tryed almost everything...09:43
espacioushttp://gallery.menalto.com/node/7731709:43
espaciousi followed that09:43
espaciouscan anyone throw an eye?09:44
espaciousgaller2 path is /usr/share/gallery209:44
espaciouswordpres in /var/www/wordpress09:44
espaciousdomainname.com is linked in /var/www/wordpress09:45
=== asac_ is now known as asac
=== rdw200169 is now known as rdw200169`away
uvirtbotNew bug: #299455 in mysql-dfsg-5.0 (main) "mysql init script fails if debian-start is not executable" [Low,Triaged] https://launchpad.net/bugs/29945512:02
=== mcasadevall is now known as NCommander
jdbrowneDuring installation, tasksel offers the 'virtualisation' option. When this option is checked, the installer does not put the main user in the libvirt group. The installer automatically put the main user in the 'admin' group, it is desirable to put the main user in libvirt so that the user can use virsh 'out of the box'.12:52
uvirtbotNew bug: #352321 in mysql-dfsg-5.0 (main) "mysql queries "lose" results" [Undecided,New] https://launchpad.net/bugs/35232112:56
jdbrowneAdditionaly, the default network is broken at install. Its default setting makes it fail on startup. Better deactivate it (not autostarted) than having a broken default configuration. Another reason why the default network should not be autostarted : it is a NAT configuration which is not adapted to several use case. In doubt, better let the user choose than make a choice for him that he will need to de-configure.12:58
Ethoshow do I create a launch to a executable?12:58
rst-uanicis this irc room logged somewhere?13:56
jpds!logs | rst-uanic13:57
ubotturst-uanic: Official channel logs can be found at http://irclogs.ubuntu.com/ - For LoCo channels, http://logs.ubuntu-eu.org/freenode/13:57
=== Zaraphrax is now known as Zaraphrax[Away]
rst-uanicjpds: thanks :)13:57
orudieivoks, hi14:07
orudiequestion. how can I give user permissions to actually write to /var/www directory ?14:12
orudiewhithout chown , cause that just screws things up14:12
giovaniorudie: are you familiar with linux permissions?14:15
giovanido an ls -ld /var/www14:15
giovaniand paste the output (should only be one line) here14:16
orudiedrwxr-xr-x 6 root root 4096 Mar 30 01:52 /var/www14:17
giovaniok, typically, root does not own /var/www14:17
giovaniin ubuntu/debian, www-data does14:17
giovanidid you change it?14:17
orudienope14:17
giovanido you have a webserver installed?14:17
orudieyeah14:17
giovaniwhich one?14:17
orudieinstalled it with tasksel apche214:17
orudiewith 4 active vhosts14:18
giovaniok ...14:18
giovaniand who/what needs to write to this directory?14:18
orudieoh14:20
orudiei need to upload files with ssh14:20
orudiei mean sftp14:20
giovaniwell typically that's not done directly in /var/www14:21
giovaniyou might create a directory like /var/www/user/14:22
giovaniand then chown that directory for your user14:22
orudiegiovani, oh so i have /var/www/site1 , so i can do chown username /var/www/site1 ? wont this mess things up with apache's permissions ?14:23
yann2yes it would14:23
giovaniorudie: you can have your user, and apache's group own the directory14:23
yann2giovani > you could put www-data in the group that owns the directory14:24
yann2in the group of the directory I meant14:24
giovaniyann2: I just said that14:24
yann2ok I misunderstood :) thought you told him to put www-data as group14:25
yann2sorry14:25
giovaniI did, I must have just misunderstood you :)14:25
giovaniwhy create ANOTHER group?14:25
yann2:) I would create a group like "website1", and put user and www-data in it14:25
giovaniwhat's the advantage of that, in this situation?14:26
yann2more flexibility if there are several people working on the website?14:26
yann2could give access to some people to one website but not the other one14:26
yann2non sense if he is the only user :)14:26
giovaniok ... he hasn't said anything about that14:26
giovanibut yes, in that situation, that would be more flexible, it's just more complex if it's not required14:27
yann2I always found web permissions to be extraordinary complex and unstatisfying :(14:27
orudieyann2, can you help me create a group ?14:27
=== Zaraphrax is now known as Zaraphrax[Away]
orudieyann2, that will let me do what you are talking about14:28
giovaniyann2: linux permissions being very lacking don't help -- which is why real ACLs are usually brought in :)14:29
=== rdw200169`away is now known as rdw200169
ScottK-palmivoks: We're looking at leaping to clamav 0.95 before release. There's a draft package in ubuntu-clamav PPA. Could you test it with amavisd-new?14:44
ivoksi might...14:45
ivoksi just can't tell when :)14:46
* ivoks whishes cloning is allowed :)14:46
ScottK-palmI probably have about two days to decide.14:46
ScottK-palmivoks: I don't know anyone else I'd trust to do it and I'm pretty tied up working on porting libclamav rdepends.14:48
ivoksi'll test it14:48
ScottK-palmivoks: Thanks.14:49
* ScottK-palm gets back to $WORK.14:49
=== rdw200169 is now known as rdw200169`afk
=== Zaraphrax[Away] is now known as Zaraphrax
=== Zaraphrax is now known as Zaraphrax[Away]
Fenix|workGreetings16:14
Fenix|workI need some suggestions with TAR16:14
=== hessml|away is now known as hessml|away|away
Fenix|workI have an old version of tar that doesn't support inline bzip and gzip, that also splits archives once they hit 2048 MB, and the folder I'm trying to archive is 2078 MB.16:15
Fenix|workhow can I tar and bzip simultaneously?16:16
giovaniFenix|work: run "tar --version" for me16:18
giovaniI don't know what "old version" means exactly16:18
Fenix|worknot supported :)16:18
Fenix|workhehe16:18
Fenix|workthat old16:18
giovaniyou're running ubuntu server?16:18
Fenix|workI run several... but this one is not.16:18
giovanithis is #ubuntu-server16:18
Fenix|workit's an antiquated BSD derivative.16:19
giovaniyou'd need to read the manpage for the version you have16:19
Deepshi, i'm having a problem with an old version of winzip ;)16:19
giovanias for bziping ... you can simply tar it and pipe that to bzip16:19
Fenix|workgiovani, I do, and I have... but there are bright minds here and it appeared noone was doing anything 'pressing' so I thought to ask.16:20
giovanibut beyond that ... clearly you'd have to refer to documentation that came with your version of tar ... it's not ubuntu, and it's not supported here16:20
Deepstar to stdout, pipe to bzip16:20
giovaniso the manpage makes no mention of file limit?16:20
Fenix|worknope16:20
Deepshave bzip create the file rather than tar16:20
giovaniDeeps: sounds like the advice I just gave :)16:20
Deepsindeed16:20
Deepshopefully you can advise me with my winzip problem next ;)16:21
Fenix|workgiovani, to give Deeps credit, you mentioned to tar it and pipe into bzip... he suggested just to bzip without the tar16:21
ivoksuse cpio16:21
ivoksdon't use tar if it's old16:21
Fenix|workDeeps, I'd be glad to help you with your winzip problem.16:21
ivoksmove it to another machine and tar it :D16:21
DeepsFenix|work: umm, actually, i suggested the exact same thing that giovani did16:21
Fenix|workI was just thinking about mounting it via NFS to one of my ubuntu boxes16:22
giovaniheh16:22
Fenix|workI missed the tar to stdio... just saw the 'have bzip create the file16:22
Deepsbzip doesn't create archive files16:23
giovaniDeeps: I believe you have to replace the winzip flux capacitor16:23
Deepswhich is why you tar it first16:23
Deepsif you tar to stdout, it shouldn't be splitting anything as it's not creating any files, it's simply being piped to bzip to create instead16:24
Deeps(which is what giovani suggested :))16:24
giovaniof course, that relies on tar supporting STDOUT redirection, which, considering it doesn't support printing its version, might be a stretch16:25
Fenix|workpoke fun that the poor soul who has to administer some old piece of crap...16:25
giovanihowever, it MIGHT evade the 2GB limit16:25
giovanidepending on its cause16:25
Deepsfor all we know, the system's so old it doesn't support files > 2gb ;)16:25
Fenix|work2.6GB of source code should compile pretty small16:25
Fenix|workcompress16:26
Fenix|workjeeze16:26
Fenix|workwhat is wrong with my brain today16:26
ivokssounds usuall to me :)16:26
giovaniall that dust you've been breathing in that's been stuck in that computer since the 1980s16:26
* Deeps gets back on with his windows MCE install16:26
Deepsalthough given that it's off-topic hour, anyone know a linux alternative that'll work with an xbox360?16:26
giovani"work with"?16:26
Deepsthe 360 has a MS-bodged upnp-av stack16:27
Deepsso it'll only read networked media if it's coming from WMPv11 or a WinMCE (XP-MCE, Vista)16:27
giovanitalk to the folks at LinuxMCE16:27
Fenix|workDeeps, have you visited the xbox-linux.org site?16:27
giovani#linuxmce16:28
giovanigood project16:28
giovanialso http://smart-home-blog.com/archives/83616:28
DeepsFenix|work: just did, thats for running linux on the xbox, not reading network media from an xbox360 (totally different machine)16:28
Deepsgiovani: ta16:28
giovanixbmc seems to have some support16:28
Deepsyeah, all this stuff's for the xbox, not the xbox36016:29
Deepsnm, </offtopic>16:29
giovaniDeeps: just talk with #xbmc and #linuxmce16:29
giovanithey'll know more than us16:30
Deepsaye16:30
Deeps< Deeps> although given that it's off-topic hour || was the only reason i asked ;16:30
* Fenix|work thinks most people knows more than him16:30
Deeps;)16:30
giovanimost people can barely operate a computer16:30
giovaniso, given that you know what "tar" is ... I figure you're already in the top 1%16:30
Fenix|workI get paid to barely operate several servers... the advantages of knowing that little bit extra.16:31
Fenix|workThey get their retribution by giving me this crusty old BSD derivative called QNX.  And not even the new version.16:31
ivoksqnx?16:32
ivoksah lol16:32
giovaniQNX rocks!16:32
Fenix|workI'm having fun trying to port over GCC 316:32
Fenix|workso I stand a chance at porting over some more up-to-date tools.16:32
Fenix|workgiovani, 6 yeah... 4, not so much from an administrative point of view16:34
giovaniyou should run the "QNX is cool!" application16:34
giovanihttp://upload.wikimedia.org/wikipedia/en/f/fd/Qnx_floppy.gif16:35
giovaniright next to "Towers of Hanoi"16:35
giovani:)16:35
Fenix|workhehe16:35
Deepsif anyone's interested, the correct answer to my question was GeeXboX uShare ;)16:35
Fenix|workDeeps, will keep that in mind16:35
giovaniDeeps: yeah, I figure I have to use MS MCE16:35
giovanito get all the features I need16:35
giovaninobody else supports QAM decryption with CableCards16:36
Deepsfun16:36
giovanibecause Linux = evil16:37
giovaniclearly16:37
Fenix|worklinux = scarey... like 'the earth is flat' scarey.16:38
Fenix|workmost devs don't want to fall off the edge of the earth, so they stay home16:38
giovaniexactly16:38
Fenix|workand management doesn't want to use linux because they think they have to release their source code.16:39
giovanihaha16:39
ivoksFenix|work: talk to them16:40
ivokstake the lead16:40
Fenix|workthey'll tell me... what's tar?16:40
ivokstar is a program we use every day - on linux it works, here it doesn't16:40
ivoksand i have to backport real tar, which takes couple of hours16:40
ivoksthat's why you have to pay me more16:41
ivokssimple as that :)16:41
=== hessml|away|away is now known as hessml|away
Fenix|workivoks, and where is 'here'?16:52
Fenix|work:)16:52
ivoksFenix|work: at your company16:53
Fenix|work?16:53
ivoksyou said management doesn't know what tar is and are affraid of linux16:53
ivoksjust let them know that with linux everything would be cheaper, and you'll get the green light16:54
ivokstime to go...16:56
ZipmaOSomeone think that they can help me with a mail-sending batch script not running correctly when run as a cron job?17:12
psyferrehey folks, I've got some servers that a pair of gigabit ethernet adapters each.  I bonded the nics and just found that they are all negotiating a 10 mb connection instead of 1000.  Can anyone give me a shove in the right direction to fixing that?  My google-fu is failing me here... i must be searching for the wrong things17:13
aciculalet me check my magic 8 ball...( just ask your question)17:13
ZipmaOacicula?17:14
giovanipsyferre: you use ethtool to try and negotiate at 1000mbps?17:14
psyferregiovani: i'd been looking at mii-tool, at the -F options, but they only appear to support up to 100baseT17:15
psyferregiovani: looking at ethtool now17:15
aciculaZipmaO: just ask your question, or describe the problem, if someone knows they'll give you an answer17:16
psyferregiovani: looks like ethtool -s bond0 speed 1000 is all i need, correct?17:17
giovanipsyferre: try it :)17:17
psyferregiovani: :D  sorry, i'm a *nix novice and am trying to solve a production server problem quickly... we didn't realize the problem until an hour ago and are frantically trying to resolve it :)17:18
psyferregiovani: i'll try to find something "safe" to try it on17:19
giovanipsyferre: the reason I say try it ... is because I haven't had the problem before -- I'm giving you my best advice17:19
giovanibut I can't be sure of what will work17:19
psyferregiovani: i understand, thank you very much for the advice :)17:19
giovaniyou can run ethtool bond017:20
giovanito find out some basic info17:20
giovanithat's harmless17:20
psyferregiovani: okay, thank you :)17:21
greenflyI'm not sure that ethtool will be effective against the bond0 device, it may have to be run against the individual nics17:21
giovanithat's a good point, greenfly17:21
psyferrehmmph.  "No data available"17:21
greenflyanother issue is that I thought that gigabit ports required autoneg17:21
giovanisince it's interacting directly with the MII17:22
greenflyso if you are getting 10mbit it's possible the switchport isn't set up properly17:22
giovanijust confirming what greenfly said -- yes, autoneg is required for 1000Mbps (had to look it up)17:23
psyferregreenfly: i guess that's possible, though most of the switch ports are setup exactly the same way17:23
greenflyso I'd be looking at the switch ports first17:23
greenflyand make sure they are set to gig and autoneg17:23
giovanihowever, it seems a number of PHYs support forcing 100017:23
giovanibut it's non-standard17:23
greenflybecause otherwise you'll ultimately have to set your server's nics to autoneg in which case they'll possibly negotiate down to 10mbit again17:24
psyferregreenfly, giovani: yes, the switch ports are set to autonegotiate and max capacity17:25
greenflymaybe try hard-coding the switch ports themselves to gig?17:25
psyferrethey currently report 1000 mbps full duplex on those two ports17:25
greenflyare they actually gig ports?17:25
giovaniwhat indicated to you that you were neged at 10Mbps?17:25
mathiazsommer: is https://wiki.ubuntu.com/JauntyServerGuide up-to-date wrt to the sections that need to be reviewed?17:25
greenflypsyferre: if you /did/ want to hard-code an ethernet port to 1000 and turn off autoneg this is how you would do it (as root):17:27
psyferreif i run mii-tool -v bond0 it reports the link speed at 10mb17:27
greenflypsyferre: ethtool -s eth0 speed 1000 duplex full autoneg off17:27
greenflydon't run it against the bond0 interface, but test eth017:27
psyferregreenfly: okay17:28
greenflypsyferre: note that sometimes when I've run ethtool it hasn't disrupted service--other times it has17:28
greenflyalso, this won't persist after a reboot so ideally you'll figure out some way for autoneg to work17:28
dustin_how do I activate my ftp server on ubuntu server 8.10? is there a page I can visit?17:29
sommermathiaz: yes, it is now17:29
greenflydustin_: there are a few guides around but the main way is to figure out what ftp service you want to run and use the package manager to install it17:29
mathiazsommer: thank ya17:29
psyferregreenfly: okay, i wonder... when i created the bond0 interface i used this line from a tutorial: options bonding mode=0 miimon=10017:29
psyferre ... maybe there's another option i should have used?17:29
greenflypsyferre: no, that doesn't affect the speed of the interface, just how it's bonded and what timeout it uses to determine when to failover17:30
psyferregreenfly: okay, thank you17:30
greenflybut I wouldn't run miitool or ethtool tests against bond017:30
psyferregreenfly: is there a better way that you would recommend to find at what speed the bond is operating?17:31
dustin_greenfly: which ftp service is easiest to configure from command line?17:31
greenflypsyferre: either ethtool against eth0 and eth1 (or whatever your two nics are) or actual speed test (ie using rsync or scp to transfer a file)17:31
psyferregreenfly: they both report 1000baseT full duplex17:32
geniibalance-rr often confuses other machines you connect to17:32
greenflypsyferre: then it sounds to me like your interfaces are actually at the correct speed17:32
psyferregreenfly: according to ethtool anyway17:32
giovaniwell, ethtool should be reading directly from the chipset17:33
geniiDoesn't the bond interface use a pseudo intel e100 driver ?17:33
dustin_greenfly: pureftpd or proftp? which has the least setup?17:33
dustin_greenfly: I know how to use both with gui tools but not command line17:34
greenflydustin_: if either is packaged in main it should have a pretty straightforward setup17:34
jmedinadustin_: use pure-ftpd17:34
greenflyif you just want a simple one, try to find one that can use local unix accounts17:34
giovanigenii: if it did, how would it supply more than 100Mbps from multiple bonded 100Mbps interfaces?17:34
geniigiovani: Yes, thats just what I was thinking about17:35
giovanibut we know that it does ...17:35
jmedinapure ftpd is controlled arguments in the command line, and you can use puredb to create virtual users, you can control quotas, bw limits, access by hours.17:35
dustin_jmedina: where can I find a man online for pure-ftpd? this will reduce my questions in chat ;)17:38
giovanidustin_: first google hit for "pure-ftpd"17:39
jmedinadustin_: you can read pure-ftpd(8) and for ubuntu pure-ftpd-wrapper (8)17:40
dustin_doing that atm but I am getting a lot of roundy-rounds ;(17:40
=== tuxlinux_ is now known as tuxlinux
psyferregiovani, greenfly: I am utterly failing at getting a transfer speed out of scp... could you give me a hint?  I tried -v and got loads of debugging messages, but i don't see anything that indicates the speed of the transfer17:43
giovanipsyferre: when it's transfering a fle it gives the speed on the right, afaik17:43
greenflyyeah same here17:43
greenflyotherwise you could use rsync with --progress17:43
psyferregiovani: heh, i see nothing that isn't directly in front of my face, that is.  *sigh*  Sorry about that...  27.3MB/s17:44
psyferreit was a 28 mb file... maybe i should try something larger?17:44
giovanipsyferre: that's definitely not 10Mbps :)17:44
giovaniyes, something larger would help17:44
psyferregiovani: yup! :)  at least i know that much :)17:44
giovanidd if=/dev/zero of=/testfile bs=1024k count=512  --  that should do it17:45
giovanikeep in mind, scp has significant overheard17:48
psyferrehmm... just transferred an ubuntu iso... transfer speed hovers around 20 mbps17:52
giovaniyou mean 20MBps?17:53
giovaniyou reported 27.3MBps just a minute ago17:53
giovanithat's very different from 20Mbps17:53
psyferreyes, sorry... lazy shift key17:53
psyferre:)17:53
greenflythat's still more than 100Mbit17:54
psyferrethat's true... i've never been good at thinking in megabit terms... so i must be good to go!17:55
PhotoJimpsyferre: divide by 10 for MB from Mb... it's not exact.  but it'll get you in the ballpark.17:57
PhotoJimpsyferre: it worked in the modem days.  with start-stop bits, it was 10 bits per byte.17:58
PhotoJimpsyferre: with overhead, that overstates it a little but it's still reasonable.17:58
psyferrePhotoJim: thanks :)17:58
psyferregreenfly, giovani, and everyone else who commented: Thank you very much for helping a novice figure out what the heck is going on.  I really appreciate it.17:59
=== mathiaz_ is now known as mathiaz
Iceman_B^Ltopis there any difference in TIA-568B and TIA-568A wired cabling, besides the pin order?18:19
Iceman_B^Ltopthey should perform equally good, right ?18:20
geniiIceman_B^Ltop: Yup. Just use same order on both ends18:24
christian_hello18:24
geniiIceman_B^Ltop: I generally use B18:25
christian_Somebody use a mail server with multiples domains??18:25
giovanichristian_: of course, it's a common setup18:26
=== hessml|away is now known as hessml|away|away
christian_giovani do you have a mail server with postfix???18:28
giovanichristian_: yes18:28
christian_and various domains??18:28
giovaniyes ...18:28
christian_I have a mail server18:28
jmedinaI use postfix with virtual domains in ldap and mysql18:28
christian_I do not understand how to use ldap and mysql18:29
christian_in my mail server18:29
giovanichristian_: neither are required for virtual domains18:30
giovanibut postfix provides great documentation on setting it up, if you'd like18:30
christian_yes i view this information, but i dont understand how to use my domain1, with my domain218:31
christian_I have squirrelmail18:31
christian_an d the users how to check your mails18:31
jmedinachristian_: with simple plain setup you map mails address to local users, and if you want foo@domain1.com and foo@domain2.com with different mailbox, you need to create to different users and user a map18:32
jmedinaif you want both domains go to the same mailbox, just add domain2 to mydestination18:33
christian_which is it the setup??18:34
jmedinafor more info read Postfix Virtual Domain Hosting Howto: http://www.postfix.org/VIRTUAL_README.html18:34
christian_I read about the configuration of postfix18:34
jmedinaI use postfix+mysql for virtual hosting for different customers18:35
Iceman_B^Ltopgenii: I'm looking at a factory sealed cable that says 568-A but apprantly is wired up as 568-B18:35
Iceman_B^Ltopbut on both ends, so that shouldnt be ap roblem18:35
giovaniIceman_B^Ltop: yep, a non-issue18:36
Iceman_B^Ltopokay18:36
giovani568-B is far more common18:36
giovani-A is considered obsolete18:37
mathiazkirkland: does kvm/libvirt support snapshot?18:37
jmedinachristian_: for a simple setup without mysql or ldap this howto looks good:18:37
jmedinahttp://www.akadia.com/services/postfix_separate_mailboxes.html18:37
kirklandmathiaz: yes, much better in kvm-8418:38
mathiazkirkland: is this feature available from virsh?18:38
jmedinahow does kvm handles snapshots?18:39
mathiazkirkland: here is my scenario:18:39
christian_jmedina, What for use mysql for clients18:39
christian_is ts neccesary?18:39
kirklandmathiaz: i have not idea about virsh18:39
jmedinayou dont use mysql for clients, you only store mail accounts in database18:39
kirklandmathiaz: let's talk to aliguori in #ubuntu-virt18:40
jmedinaI prefere mysql because you can use a web based frontend like postfixadmin18:40
kirklandmathiaz: doh... he just checked out18:40
kirklandmathiaz: here is fine18:40
mathiazkirkland: I'd like to run my jaunty base vm all the time (named j-base) and when I need to create a test vm based on jaunty, I would run a command (create_vm.sh j-base t-dovecot) that will snapshot the j-base vm and create the t-dovecot vm18:40
jmedinawith postfix admin manage virtual domains, different admins, mail quotas, mail forwarding, aliases18:40
mathiazkirkland: and then I would ssh into t-dovecot18:40
mathiazkirkland: do all my testing, and when I'm done I would just delete_vm.sh t-dovecot18:41
mathiazkirkland: for now I'm using lv to hold the j-base filesystem and lvm snapshot to handle the snapshoting18:41
mathiazkirkland: however I can only create a snapshot if the j-base vm is *not* running18:41
mathiazkirkland: for consistency18:42
kirklandmathiaz: see -snapshot in http://manpages.ubuntu.com/manpages/jaunty/en/man1/qemu.1.html18:42
mathiazkirkland: which means that my j-base vm doesn't run most of the time.18:42
mathiazkirkland: thanks for the pointer. I'm gonna have to think about this a bit more.18:46
=== hessml|away|away is now known as hessml|away
kirklandmathiaz: mee too ....18:46
kirklandmathiaz: i think using that -snapshot option to kvm, you should be able to master off of your base vm, and snapshot your testing to an auxilliary file18:48
mathiazkirkland: right. That seems like a good option.18:49
mathiazkirkland: however how would handle a live vm running from the master file?18:49
mathiazkirkland: could suspending the master vm work?18:50
mathiazkirkland: take a snapshot of the root block device and boot from there?18:50
mathiazkirkland: in my current setup I'm also doing that, except that the master vm is always off.18:51
mathiazkirkland: and I need to boot once in a while to update the system correclty.18:51
mathiazkirkland: to boot the master vm18:51
mathiazkirkland: I would like to avoid that18:51
kirklandmathiaz: hmm, there is a "saveback" command you can issue18:51
kirklandmathiaz:         Ctrl-a s18:52
kirkland            Save disk data back to file (if -snapshot)18:52
mathiazkirkland: right - could the guest issue a saveback command?18:53
mathiazkirkland: it seems that the guest is the one that knows when it's safe to be snapshotted18:53
mathiazkirkland: you don't want to take a snapshot of the master vm in the middle of an apt-get upgrade18:54
kirklandmathiaz: right18:54
kirklandmathiaz: looks like you want this ctrl-a s command when you *know* you want to saveback18:55
mathiazkirkland: right - something like a checkpoint command18:56
Iceman_B^Ltopgiovani / genii: Im posting about my problem on the Ubuntu forums. My server keeps dropping SSH connections, and I found that internet connections lag out too at that point19:07
giovaniIceman_B^Ltop: what makes you think it's ubuntu-related?19:07
giovaniyou're probably suffering bad packet loss19:07
Iceman_B^Ltopgiovani: I had Ubuntu 8,10 desktop on that same machine up till a week ago19:09
Iceman_B^Ltopsame hardware, except the hdd19:09
Iceman_B^Ltopno problems at all19:09
giovaniwell ... things can change, cables can be bad, hardware can go bad19:09
Iceman_B^Ltopexcept that Ibex Desktop has a GUI which I dont use on a headless machine, and it ate all 256 megs of ram19:09
giovaniubuntu server and ubuntu desktop are almost identical at lower levels19:09
giovanibut, alright19:10
Iceman_B^Ltopgiovani: how high is the change of that coinciding with the switch to a different OS ?19:10
giovaniit's not a different OS19:10
giovaniI'd say it's almost nil19:10
giovanithe ethernet driver will be the same, unless you were using an old kernel before, and have updated now19:10
giovaniis it possible that it's related to the server kernel? yes ... but I'd think it's damn unlikely19:10
Iceman_B^LtopI have not the slightest idea. I though ti would be my network at first19:11
Iceman_B^Ltoptake a look here if you want http://ubuntuforums.org/showpost.php?p=6985576&postcount=5519:11
Iceman_B^Ltopand the tread itself I posted a small update after that19:11
giovaniI'd forget this application-specific diagnosis19:12
giovanido a long ping test19:12
giovaniand establish that packet loss is the issue19:12
jmedinaIceman_B^Ltop: could you pastebin the output from: ip -s link19:13
Iceman_B^Ltopi'll try19:13
Iceman_B^Ltophttp://pastebin.ubuntu.com/141603/19:15
Iceman_B|SSHserver here /o/19:17
Iceman_B^Ltopconnection dropped...19:18
Iceman_B^Ltopthere it goes19:18
=== hessml|away is now known as hessml|away|away
billykhow can I list all jpeg files in the home folder without being in that directory?  (tried ls -aR /home/*.jpg and it didnt work for me).  A step further, how could I list only jpg's with an underscore in the filename e.g. *_*.jpg19:38
billyksorry, I meant home folder and subdirectories19:38
sommerbillyk: probably something like find /home/$user -name "*.jpg"19:39
billykI should have said I'm trying to use this with mogrify19:40
billykI can do mogrify *.jpg if i'm in that directory, but I have a bunch of subdirectories I want to resize images in in multiple home directories19:41
Deepsfind /home/$user -name "*.jpg" | while read file; do mogrify $file; done19:42
giovaniDeeps: don't you think using -exec would be better?19:43
billykawesome19:43
billyknoob question but what does $user do?19:45
billykand $file19:45
billykvariables?19:45
billyklike a shell script?19:45
giovania shell script is just what's interpreted by bash19:46
giovanieverything you run in bash is a script19:46
friartuckbillyk good intro: http://tldp.org/LDP/abs/html/19:46
giovani$user there is not a defined variable -- I think he just used it as a placeholder for you to fill in19:46
giovani$file is a variable, as is referenced b the while look19:46
giovaniloop*19:46
friartuckI think it's $USER and not $user19:47
giovaniwell, for the current user, sure19:47
billykwill that do all the user accts?19:47
giovaniwho knows if he wants that :)19:47
giovanibillyk: no19:47
giovaniyou'd need to wrap it in a for loop19:47
giovanifor all the dirs in /home19:47
billykjust all subdirectories in the home folder19:48
billykno easier way to do that than a loop?19:48
giovanisure, just back out the find execution to /home19:48
giovanithat'll apply to any directory in home19:48
billykcool thanks!19:51
billykgonna go read that bash guide now19:52
Deepsgiovani: could be, i like while loops ;)19:52
billykso I can the *.jpg in quotes is a regex?19:52
giovanino, that's not regex19:53
billykso could I put "*_*.jpg"19:53
billykoh19:53
Deepsthats still not regex, but yes19:53
giovaniregex would be something like ".*?.jpg"19:53
Deeps".*_.*\.jpg"19:54
giovanibut yeah, what you want to do will work19:54
=== mathiaz_ is now known as mathiaz
MagicFabdendrobates, :)20:11
antdedyetwin 2620:41
antdedyetlose 27, heh20:41
=== simplexi1 is now known as simplexio
uvirtbotNew bug: #351378 in dhcp3 (main) "dhclient fails for virtual interfaces (IP aliases)" [Undecided,New] https://launchpad.net/bugs/35137821:06
geniiProbably if the master interface already has an IP from same dhcp server, likely21:09
genii(since MAC would not change)21:10
antdedyetanyone here got a canonical partner sales contact for a partner?21:11
antdedyetours is out of office21:11
antdedyetand the temporary counterpart has been unresponsive21:12
billykbash syntax question - this obviously doesnt work, but it probably best explains what I'm trying to do- if (! mogrify -identify 1.jpg | grep 800x600) (newline) then mogrify -resize 800x600 1.jpg (newline) fi21:26
billykmogrify -identify 1.jpg | grep 800x600 only outputs data if the image is the right size.  I want the -resize command to only be run if it's not the right size21:27
billykfor some reason mogrify -resize still changes an image's hash even if it's already the right resolution (bad for rsync)21:28
jesperronnHey anybody able to help me with a preseed question? (isolinux.cfg)21:31
jesperronnI'm currently working on creating an unattended preseeded ubuntu server install21:32
giovanibillyk: try using || between the grep command and the second morgrify command21:32
giovaniit means the 3rd command will only run if the grep fails21:32
billykcool21:33
jesperronnHowever, first thing that comes up (in front of the installer menu) is Language selection. Question is How do I remove that language selection? Which command could I add to isolinux.cfg?21:33
jesperronnHere is my current isolinux.cfg:21:33
jesperronninclude menu.cfg21:33
jesperronndefault Brownpaper21:33
jesperronnprompt 021:33
jesperronntimeout 021:33
jesperronngfxboot bootlogo21:33
jesperronnlabel Brownpaper21:33
jesperronn  menu label ^Brownpaper customized installation21:33
jesperronn  kernel /install/vmlinuz21:33
jesperronn  append file=/cdrom/brownpaper.seed locale=en_US console-setup/layoutcode=us initrd=/install/initrd.gz quiet --21:34
giovanijesperronn: FAR too much pasting -- use pastebin next time21:34
=== hessml|away|away is now known as hessml|away
jesperronn(sorry for the many lines) -- thanks for tip @giovani21:34
giovanibillyk: that work out ok?21:36
jesperronnHere it is in pastebin: http://pastebin.com/d2e568e521:36
jesperronnMy challenges:  1) surpass the Language selection menu. 2) making menu item "brownpaper start automatically" if possible.21:37
giovanijesperronn: your question is pretty specific, and not common knowledge for someone to have -- so wait around21:38
billykgiovani: yeah.  Thanks! :-)  if the grep doesnt fail though, it outputs the result of that command to the terminal.  will that be okay for a shell script?  or do I need > /dev/null or something?21:39
jesperronn@giovani: thanks for your tip! I presume this is the best forum for the question even it's specific. Any links to documentation/api or examples is appreciated21:39
giovanibillyk: || is not similar to | -- || = OR  and | = pipe21:40
giovaniso, nothing is being passed to the last command21:40
giovaniit's just only being run if grep fails21:40
giovaniif you wanted to run a command only if grep succeeded you'd use &&21:40
giovanijesperronn: the wiki, google, and ubuntuforums.org probably have a good bit of info on the topic21:41
giovanibillyk: and just if you're curious, the way that bash knows whether or not grep "succeeded", it's based solely on exit status -- it doesn't read grep's output or anything else21:42
=== rdw200169`afk is now known as rdw200169
billykah21:43
billyktrying to digest all that :-)21:43
giovanibillyk: yeah ... don't worry about digesting it all at once21:43
giovaniI'm really far from a bash expert -- you just pick up a few things every time you try something new21:43
giovanimastering piping and output/input redirection are the most important bash skills21:43
giovaniin my opinion21:44
billykyeah, it's obviously really useful21:44
giovaniyou feel comfortable with those?21:44
billyknot yet21:45
giovanii.e. < and > and >> and | ?21:45
billykhaha21:45
giovaniwell, and 2> :)21:45
giovaniok, quick recap ... `programname < filename` takes everything in the file 'filename' and sends it to the input of 'programname'21:46
billykmogrify -identify logo.png | grep 668x476 || mogrify -adaptive-resize 668x476! logo.png still shows grep's output21:46
giovanibillyk: "shows" you mean it prints to the console?21:46
giovaniis that a problem?21:46
billykwill it be if I have that line in a .sh?21:46
giovaniit'll print to the console ... nothing bad21:47
giovaniyou can fix that though if you need21:47
billykokay.  when you execute a shell script from cron though, where would that output go?21:47
Deepsemail21:48
giovanimost people would send console output to /dev/null (basically, discard it) instead of printing it when using cron, so that it doesn't get emailed back to the user21:48
giovanimogrify -identify logo.png | grep 668x476 > /dev/null || mogrify -adaptive-resize 668x476! logo.png21:48
giovanishould do it21:48
giovanitry it out21:48
giovanithe other option (specifically with grep) is to run it with the -q option21:49
giovaniit suppresses all output21:49
giovanimogrify -identify logo.png | grep -q 668x476 || mogrify -adaptive-resize 668x476! logo.png21:50
billykokay21:50
billykwhy doesnt it work with > /dev/null at the end?21:50
giovanibut that'll only work with grep -- not all apps have options to not output anything -- so knowing about > /dev/null is important21:50
billykyeah21:50
giovanibillyk: why doesn't what work?21:51
billykmogrify -identify logo.png | grep 668x476 || mogrify -adaptive-resize 668x476! logo.png > /dev/null doesnt suppress output21:51
giovanibecause > /dev/null is applying to the command to the left of it21:51
giovaniwhich, in your case, is mogrify, not grep21:51
giovaniso it needs to go after grep -- since it's grep that has the output you want to suppress21:51
=== hessml|away is now known as hessml|away|away
billykooh21:52
billykI thought the output was just piped to the -resize command21:52
giovanibillyk: nope, remember || is NOT a pipe21:52
giovaniit's a special OR operator, despite looking similar to pipe :)21:53
giovaniso, because it's not a pipe, grep's output is going directly to the console21:53
giovani(unless you redirect it with > /dev/null)21:53
giovanibillyk: make sense? or still not clear?21:56
billykgiovani: no, I got it :-)21:57
giovaniawesome :)21:57
billyknow I'm curious about the 2> though21:58
giovaniah, well, that's simple enough to cover21:58
billykis that on http://tldp.org/LDP/abs/html/ ?21:58
giovaniso, when we say "output" we mean STDOUT21:58
giovaniand when we say "input" we mean STDIN21:59
giovaniso, STDOUT is >21:59
giovaniSTDIN is <21:59
giovanithere's one more ... STDERR -- which is 2>21:59
giovaniwhich is supposed to only be used for error-related info, and not general output21:59
billykok, remember some of that from basic C programming21:59
billykso STDOUT is what's output to the terminal, or what's passed in a pipe? or both?22:01
giovaniSTDOUT by default goes to the terminal, unless it's redirected with > or |22:01
giovani> being used to output to files, and | to pass it to the STDIN of the next application after the pipe22:02
billykcool22:02
giovani2> takes just the STDERR, and outputs it to a file22:02
giovaniin many cron jobs, people want to either collect both info and error messages in one place, or discard them both, they do this with `program &> filename`22:03
billykif you use 2> where does the stdout go?22:04
giovaniwhereever you instruct it to22:04
giovanii.e. `programname 2> myerror.log`22:04
billykso I can do command -argument  2> error.log > output.txt ?22:04
giovaniyep22:05
giovanior, let's say, for example, you wanted to pipe both STDERR and STDOUT to another program22:05
giovaniyou'd use redirection to accomplish that22:05
giovani`programname 2>&1 | secondprogram`22:06
giovani2> clearly takes STDERR and then pushes it into STDOUT22:06
giovaniand then pipe takes all STDOUT (which now includes STDERR) and passes it to STDIN of secondprogram22:06
billykcan the secondprogram differentiate the STDERR from the STDIN?22:07
giovaninope22:07
giovanithe &1 may seem arbitrary, but, in reality, each of the three file descriptors (STDIN, STDOUT, and STDERR) have numbers, 0, 1, and 222:07
giovaniso 1> is the same as > which is STDOUT22:08
giovaniand 2> is STDERR22:08
billykcool22:10
christian_hi giovani...22:12
christian_hlep me please22:12
billykit might be pointless to do this, but how would you save stderr to a file and then pipe stdout to a command?22:12
christian_i cant do the email server with two domains22:13
giovanibillyk: in that case, you'd use the 'tee' command22:18
giovaniwhich both reads its STDIN, writes it to a file, and also sends it to STDOUT22:19
giovaniso, `programname | tee outputfile | secondprogram`22:19
giovaniwould take the STDOUT from 'programname', write it to 'outputfile' and also send it to 'secondprogram'22:20
giovaninow I'm off22:21
giovanilater22:21
billykgiovani: Thanks so much!22:25
MatBoydamn I have a problem22:32
billykMatBoy: what is it?22:33
MatBoybillyk: I love myself.... :/22:35
=== rdw200169 is now known as rdw200169`afk
=== rdw200169 is now known as rdw200169`away
baffledustin__: Your screen profiles rock btw. I've used screen for over 10 years, but never got around to actually making myself a proper profile. :)23:15
Iceman_B|SSHhmm, capturing from my laptop only reveals SSH packets...23:37
jmedinaIceman_B|SSH: sitll problems netwok problems?23:37
Iceman_B^Ltopjmedina: yup, still23:38
jmedinaIceman_B^Ltop: please paste output from "ip -s link"23:39
cjwatsonsigh, if only jesperronn had stuck around another hour I could have answered his question23:39
cjwatson(the answer is to put a language code of your choice, e.g. "en", in /isolinux/lang on the CD)23:40
PhotoJimbaffle: thanks for mentioning those profiles.  I had no idea they existed.  I'm going to install them and play with them.23:40
dustin__ok kinda embarrased but I didnt know I had a profile??? :S23:43
dustin__or did baffle have the wron guy?23:44
Iceman_B^Ltopjmedina: http://pastebin.ubuntu.com/141730/23:45
PhotoJimthe right Dustin is on as user Kirkland23:46
jmedinaIceman_B^Ltop: looks fine, no errors, dropeed or overrun23:46
kirklandPhotoJim: ?23:47
Iceman_B^Ltopjmedina: okay23:47
baffledustin__: Maybe the wrong guy. :-)23:47
dustin__baffle: where can I go to see that great profile I never made?23:47
dustin__:)23:47
dustin__brb I is gonna fix my name :D23:48
baffledustin__: I assumed you were Dustin Kirkland.23:48
=== dustin__ is now known as mds58
mds58ahhh so much better23:48
PhotoJimkirkland: Baffle was commenting that he really likes your screen-profiles package.23:49
bafflemds58: But you should apt-get install screen-profiles then. :)23:50
Iceman_B^Ltopjmedina: well, I have no clue then. apart from installing Ubuntu desktop, and seeing wether or not the problems cease23:51
Iceman_B^Ltopif they dont, it might be hardware23:51
Iceman_B^LtopI have a tcpdump output as well23:52
jmedinaIceman_B^Ltop: have you tested in a livecd?23:52
kirklandPhotoJim: oh, sweet23:52
kirklandbaffle: thanks!23:52
Iceman_B^Ltopjmedina: can't say I have23:53
Iceman_B^Ltopbut the server is running headless, can I still use a live cd then ?23:53
Iceman_B^Ltopor do I really need a screen23:53
Iceman_B^Ltopand keyboard23:55
PhotoJimIceman_B^Ltop: screen and keyboard are still useful.  if things go wrong, it is often useful to be able to do a console login from the machine itself.23:56
bafflekirkland: Tried looking into 256 color profiles? Nice color shading etc.23:56
bafflekirkland: As in http://www.frexx.de/xterm-256-notes/23:57
Iceman_B^LtopPhotoJim: just the 2 things I dont have23:58

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