/srv/irclogs.ubuntu.com/2012/12/28/#ubuntu-server.txt

=== cpg|away is now known as cpg
qman__I created a VM with ubuntu-vm-builder, and now I want to move it to another server03:02
qman__is there anything special? where are the files stored?03:02
patdk-lapdunno03:03
patdk-lapit all depends how you built it :)03:03
patdk-lapgenerally just move the disk image, cow2? then the config, libvirt export?03:03
qman__sudo ubuntu-vm-builder kvm lucid --arch 'i386'  --mem '512'  --rootsize '10240'  --swapsize '512'  --kernel-flavour 'server'  --hostname 'omegarelay'  --domain 'home.hilltop.local'  --mirror 'http://archive.ubuntu.com/ubuntu'  --components 'main,universe'  --addpkg 'openssh-server'  --name 'ryan'  --user 'ryan'  --pass 'ubuntu'  --ip '192.168.1.4'  --mask '255.255.255.0'  --net '192.168.1.0'  --bcast '192.168.1.255'  --gw '19203:03
qman__.168.1.1'  --dns '192.168.1.1'  --bridge 'br0'  --libvirt 'qemu:///system'03:03
qman__that's how I built it03:04
qman__ah, I see03:15
qman__it made a directory called ubuntu-kvm in the current directory03:15
qman__and a run.sh03:16
=== hggdh_ is now known as hggdh
=== cpg is now known as cpg|away
=== cpg|away is now known as cpg
goddardi want to setup a php/apache server but no mysql06:22
=== ibiris|afk is now known as ibiris
anepanal1ptoscan 32bit ubuntu see more than 4Go of ram?07:06
blkperlanepanal1ptos: no you should use 64bit ubuntu07:08
anepanal1ptoswell, i RTFM'd it, and the answer is yes and no.07:08
anepanal1ptosgotta see if i have PAE07:09
anepanal1ptosyeah my problem is someone has compiled a shitty driver and it doesnt work with linux x6407:09
anepanal1ptosand woohoo i have pae07:09
=== ibiris is now known as ibiris|afk
=== ibiris|afk is now known as ibiris
=== Err404NotFound is now known as Error404NotFound
samba35i have two lun /volume for iscsi 1st is regular iscsi (mpio) and another is sanboot while insallting ubuntu on sanboot volume/lun1 ,every thing was good but while installing grub it give error so and cant proceed to install grub ,how i should fix this issuse09:42
RoyKsamba35: did you have both luns connected during install? the installer can sometimes be a bit confused and install grub in the wrong place. I've seen that happen. if that's what happens, try to disconnect all but one lun and reinstall09:45
samba35ok09:46
samba35when i was trying to install 2nd ubuntu installtion that time my 1st ubuntu was off09:47
RoyKbut... was both iscsi luns connected?09:47
samba35i am trying to installed this on vmware09:48
RoyKand btw, aren't you using vmware for this? wouldn't a vmfs make things a bit easier?09:48
samba35point09:48
samba35how do i make vmfs to get installed grub ?09:49
RoyKvmfs doesn't care, but it's probably easier for the ubuntu installer to install on a virtual disk instead of handling iscsi itself09:49
samba35ic09:50
samba35how to fix this?09:50
RoyKI'd try to install as normal on vmfs09:51
RoyKsingle virtual drive09:51
RoyKexpand as needed later09:51
RoyKyou'd probably want to use lvm on top of that09:51
samba35sorry no idea of lvm09:52
RoyKwell, never mind09:52
RoyKit's not needed, but makes things a bit easier to resize / reallocate space in linux later09:52
RoyKgoogle it09:52
samba35learning lvm is complex ?09:52
RoyKno, it's easy09:53
samba35ok09:53
samba35ok thanks will get back to you09:53
samba35do you have any idea on dhcp options09:53
RoyKmaybe...09:54
samba35i was trying tftp boot from dhcp server which option i have to use 66 and 67 ?09:54
samba35how do i test tftp server is running ,when i check the serice and netstat it say its working/running but when i tryed to telnet localhost port/service of tftpd it did not work09:55
RoyKtelnet won't work, since tftp is udp09:56
RoyKtftp localhost09:56
RoyKget /somefile09:56
RoyKthat file must exist, obviously09:57
samba35ok09:57
RoyKunder the tftp root09:57
samba35telnet doesnt work on udp ports ?09:57
RoyKtelnet uses tcp09:57
samba35ahh ok thank you adding for my knowledge09:58
RoyKyou can use netcat or nmap to probe udp ports09:58
RoyKnmap is usually easiest09:58
samba35ok09:58
samba35brb10:14
jeeves_mosshow do I setup my bind server to be a slave with no upstream replication to my windows servers?11:40
vezqjeeves_moss: slave or cache-only?11:46
jeeves_mossveq, I think it'll be a cache only, but in the future, I'd like to be able to dynamically update the Windows boxes with external dynamic clients.11:48
jeeves_mossvezq, is it simple, or a huge pain in the butt to make work?11:48
vezqvezq: cache-only is easy: https://help.ubuntu.com/community/BIND9ServerHowto#Caching_Server_configuration11:49
jeeves_mossand allowing bidirectional dynamic updates?11:50
vezqjeeves_moss: http://support.microsoft.com/kb/275866 (funny place to find instructions) :)11:53
jeeves_mossvezq, lol  thanks.  I have a RADIUS server that will be taking care of some WiFi access points, and I would like to make sure that they dynamically update the DNS IP entries11:55
vezqjeeves_moss: ok, haven't done dynamic setup myself11:56
jeeves_mossvezq, neither have I, but I think it'll be a million times easier for administration when I have to deal with issues instead of looking up IPs, etc11:57
vezqjeeves_moss: yep sounds wise11:57
jeeves_mossvezq, I just need to make sure that things work.   But........11:58
jeeves_mossvezq, I'm just waiting for parts to arrive from ebay11:59
vezqvezq: what WiFi APs you are using?11:59
vezqmeant jeeves_moss12:00
jeeves_mossvezq, it's a toss up right now if I should buy MikroTik APs or build up some Raspberry Pis with all the parts.  It's all the same price, but with the Raspberry Pis, I can do a lot more12:00
vezqjeeves_moss: will there be many APs?12:01
jeeves_mossvezq, if my marketing plan goes well, that's the hope12:02
vezqrecommend to check out also this http://www.ubnt.com/unifi12:02
jeeves_mossvezq, free?12:03
vezqnope, just cheap with good features12:03
jeeves_mossvezq, thanks!  I'll have a look.  I was thinking using the MikroTik hardware, and a RADIUS backend12:04
vezqit has a nice management software which supports Ubuntu too12:05
vezqalso supports RADIUS12:05
jeeves_mossvezq, I'll have a look.  My biggest issue right now is making sure I subnet the APs out correctly12:06
jeeves_mossvezq, and making sure that the DNS servers dynamically updates correctly12:07
=== cpg is now known as cpg|away
uvirtbot`New bug: #1094271 in autofs (main) "autofs missing directory" [Undecided,New] https://launchpad.net/bugs/109427114:16
=== ibiris is now known as ibiris|afk
=== LordOfTime is now known as TheLordOfTime
RoyKsamba35, the troubled iscsi master? ;)16:53
samba35no16:54
RoyK;)16:54
samba35was playing till now16:54
samba35now googleing16:55
samba35thanks16:55
lvmerI can't seem to search a folder server-side with the find command, even though the folder is visible on my samba and I can search it in windows explore. $ find /share/pictures -name dscn17:12
lvmerdoes the find command not work within subfolders?17:13
lvmerI feel like it obviously has before17:13
lvmernevermind there must have been a syntax error somewhere17:15
uvirtbot`New bug: #1094310 in nova (main) "package nova-compute-kvm 2012.1.3+stable-20120827-4d2a4afe-0ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/109431017:16
lvmerThere does not appear to be a minidlna channel; so, is there a limit on the # of files minidlna can store in the database? I was trying to 'force-reload' a music folder with 65,000 & it keeps stopping at 9443, and it doesn't even bother to get the image files at all.17:18
lvmerHow do I increase the Inotify max_user_watches for minidlna?17:21
RoyKlvmer: it's probably in /proc/sys/fs/inotify/max_user_watches17:23
lvmerroyk: and I can change that permanently in /etc/sysctl.conf ?17:24
lvmerby just adding fs.inotify.max_user_watches =  #17:25
RoyKyes17:25
lvmerroyk: default seems to be 8192, what exactly does this change? folder update notifications?17:25
lvmerI can't seem to get minidlna to get picture files. There is no mention of an error in the log file for the pictures directory. It just seems to ignore it17:44
lvmeras far as I can tell everything is spelled correctly17:44
lvmeris it possible to have more than 1 media directory?17:48
lvmerit seems anything after #1 is ignored17:48
lvmermedia_dir=A,/share/music media_dir=P,/share/pictures media_dir=V,/share/pictures media_dir=V,/share/movies media_dir=V,/share/tv17:48
=== aarcane_ is now known as aarcane
mikerothI'm having an issue with security groups in eucalyptus can anyone help?18:20
=== Ursinha is now known as Ursinha-afk
PlizzoHello, I have an issue with my server and I'm afraid my SSD is broken. Anyone care to hear me out? :)18:52
TheLordOfTimenope.  not individually, just ask your real questions in the channel.18:52
PlizzoI have a server running 11.10. My system and all swap partitions are on the SSD but all storage etc is done to a RAID5 volume. I'm trying to transfer a 12MB file to my SSD but it keeps telling me it doesn't want to write and that the disk is full. Although, when I run "df -Th" I can't see the disk in the output18:54
PlizzoSo I'm afraid that my SSD has somehow broken, and that if I reboot I cant start again18:55
PlizzoIs there another command I could use, because I can't seem to check if the disk is full or not18:55
_rubenPlizzo: how about df -i, perhaps you ran out of inodes?18:57
Plizzo_ruben: I tried running multiple commands, but neither of them display my system partition18:57
Plizzo_ruben: What else can I do, should I start a dd to an image on my RAID?18:58
_rubenoh, i missed the part it missing from the output18:58
_rubendoes it show in 'mount' ?18:59
_rubenanything odd in 'dmesg' ?18:59
PlizzoDo I just type "mount"? (without quotations=18:59
_rubenyeah18:59
macoyep18:59
maxbAnd you might want to pastebin the full result of mount, just to provide extra context on your system's filesystem setup.19:00
maxb!pastebin19:00
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.19:00
PlizzoThis is what mount gives me:19:00
Plizzohttp://paste.ubuntu.com/1473739/19:00
PlizzoMy SDD is /dev/sdb, but only sdb1 is mounted, and that's /boot19:00
_rubenline 1 shows / being mounted19:01
_rubenpastbin df -h and df -i as well19:01
Plizzodf -h: http://paste.ubuntu.com/1473742/, df -i: http://paste.ubuntu.com/1473744/19:02
_ruben/ is full19:03
_ruben100% use19:03
PlizzoIn see that now, I actually misstook the first entry :/19:03
PlizzoIs there a smart way to check where all space is?19:03
_rubeni tend to use ncdu for that, but that's not installed by default19:04
PlizzoAnd my disk is full so I can't install it19:04
_rubenmight need to free up some space before being able to install it19:04
_rubenyeah :)19:04
Plizzohehe, yep19:04
PlizzoOn it!19:04
_rubencheck for old kernels .. those tend to pile up and take a fair chunk of space19:05
_rubenand /var/log might be a good start as well, logs can grow fast unexpectedly, i always put them on a seprate lv/partition19:06
Plizzo_ruben: I'm checking logs, but the syslog is just about 12MB etc, and the others are way lower19:07
Plizzo_ruben: I have the webserver on the raid, so that's not it19:07
Plizzo_ruben: Maybe the Plex database has somehow expanded weirdly19:07
Plizzofound it!19:10
PlizzoThe plex Media server log is 41GB....19:10
PlizzoWhat the hell...19:10
Plizzo_ruben: Is there some way to limit file sizes?19:12
Plizzo_ruben: You on?19:18
PlizzoI've removed the file that was clogging the file system, but df -h still shows 100% used19:19
PlizzoEverything works again, thanks guys! :)19:22
=== BlackDex_ is now known as BlackDex
_rubenPlizzo: plex probably had the file still open :)19:51
Plizzo_ruben: Yeah, I noticed that I had a debug setting checked in PMS which is why it was filling up the file so badly19:51
Plizzo_ruben: It debug logged all transcoding as well :P19:52
_rubenlimiting filesizes isn't a trivial task afaik, one usually uses logrotate software to limit the growing19:52
triton_Hello19:53
triton_I was wondering if anybody here is familiar enough with iptables and networking, I am trying to figure out a port forwarding problem.19:53
thufir_I installed 12.04 a while back, then added lxfe and ruby rvm.  now some rvm gems won't build, missing dependencies. is there anything weird about ubuntu server which would cause that?  or, just broken packages?19:54
_rubentriton_: try asking the actual question(s) :)19:54
triton_Ok, so I have 3 remote installations, each one uses the same ubuntu OS as a firewall, router, nat.  I needed to forward ports from inside the local network to the Internet. On 2 installations out of 3 it worked (same exact configurations) on 1 I can't open the port forwarding though the iptables rules are the same.19:56
triton_I am looking for some hint on how to analyze a problem where I am trying to do port forwarding and it's not doing the job though iptables have the rules, /proc/sys/net/ipv4/ip_forward is 1, /etc/hosts.allow and hosts.deny only deal with sshd and not these ports (44,55)19:56
_rubentriton_: 1st step, do sudo iptables-save -c and see if those rules ever got matches (as in, are not showing [0:0])19:58
triton_Is it against the rules to paste output of such commands in the channel?19:59
thufir_how do I install xfce onto ubuntu server?  I have lxde but cannot seem to get xfce.19:59
triton_pastebin?19:59
_rubentriton_: pastebin indeed19:59
triton__ruben: http://pastebin.com/db3AvqQs20:01
thufir_triton_: on the cli, you can say "cat foo.txt | pastebinit" and it will do it for you, automagically :)20:03
triton_thufir_ : crazy stuff!20:04
thufir_triton_: :)20:04
thufir_triton_: you might have to install something to get that to work, just takes a sec, tho.20:05
triton_yeah, it's not installed here, wants me to apt-get install.20:05
_rubentriton_: use tcpdump/wireshark/etc to determine where things go wrong, could be the dnat itslef, or the reply traffic for instance20:06
_rubentriton_: and i assume you're not testing from the box itself?20:07
triton__ruben: no, I am not testing from the box20:07
_rubenok, good20:08
triton__ruben: but what about that iptables output, it had [73:4384] and [4:228], not 0:020:08
_rubenand you do can reach 192.168.10.100:44/55 from that box20:08
_rubenthose are packet/byte counters .. when it says 0:0, that rule never matched any packets20:09
triton__ruben: yes, the video camera is reachable from the ubuntu box that is the router, I can even vnc and view the camera output while on that machine20:09
_rubenok20:09
_rubendepending on your network layout, it could be a case of triangle routing, where the return traffic from the camera is going through the box running iptables20:10
triton__ruben: well, yes, one thing I cannot confirm is the physical layout of anything in either of those 3 installations. The only thing I know that IS different in this case is that they have some sort of a repeater in the LAN because in that location the cameras are so far away (more than 40 meters I think) and they couldn't get this to work without another powered switch or repeater somewhere...20:12
triton_...in the middle20:12
triton_though I thought that if I can already view the output from camera on the machine itself, the repeater in the middle is probably nothing of consequence?20:14
triton_ok, thanks20:20
_rubentriton_: doubt that as well .. done any sniffing yet with tcpdump/wireshark/... ?20:22
triton__ruben: looking with tcpdump20:24
triton__ruben: well, I can see with tcpdump -n -e -ttt -i eth1 that when I hit the box, it is actually forwarding from the external IP to the 192.168.10.100:4420:26
triton__ruben: http://pastebin.com/3AN4Pk79  - this is what tcpdump is telling me20:29
triton__ruben: and I replaced my IP with 'my.own.ip.address' though :)20:30
_rubentriton_: is 192.168.10.100 reachable through eth0 by any chance? in that case it's the MASQ rule interfering20:32
triton__ruben: that would be strange, the eth0 is the Internet nic.  I do have that rule though: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE (but in all 3 installations)20:35
triton_I am going to drop that rule, see what happens20:36
triton__ruben: no, the address isn't reachable through eth0 and without the masq rule nothing really changed (for the forwarding)20:37
_rubenwonder why it shows up with external ip then20:38
_rubentriton_: try sudo iptables -t raw -I PREROUTING -p tcp --dport 44:55 -j TRACE .. that should give detailed logging as to which rules are being matched20:39
triton__ruben: I guess I missed something, how does it show with external ip?  tcpdump shows: my-ip-address.54354 > 192.168.10.100.44, that's all where it shows.  But this: 192.168.10.100.34239 > 239.255.255.250.1900 I don't understand.20:41
longdaysI have a logrotate question. Tomcat is configure to rotate catalina logs daily but it does not compress them. I want logrotate to compress these old log files if they are found. I have found that I can do this with the size parameter, but I would rather do it based on a time stamp older than when the log rotate was last run. is this possible?20:42
_rubentriton_: that's traffic originated by the camera itself, probably looking for upnp stuff20:42
triton__ruben: I wonder.. maybe upnp should be turned off20:43
_rubentriton_: perhaps, but it shouldnt interfere with the actual probloem20:43
triton__ruben: so I added that iptables trace line20:44
_rubentriton_: also, not much sane can be said about this without knowing the exact network layout (interfaces, subnets, etc)20:46
triton__ruben: that's true. There are 4 computers, 1 is the ubuntu machine, 3 others are local network, all windows xp. There are 4 cameras (the 10.100 is the master and thus server). The ubuntu machine is the gateway. The ip addresses are all assigned statically.20:48
triton_it's a small store actually20:49
_rubentriton_: xp machines are in 192.168.10.0/24 as well? and if so, why use port forwarding? :)20:51
triton_I guess the weird part is only that 2 others are fine, forwarding, translating with the same iptables rules and settings20:51
triton__ruben: the xp machines are 192.168.10.2, .11, .12, yes.  Why not use port forwarding?  What's  a better way?20:52
_rubentriton_: if they're in the same subnet, why not connect directly to 192.168.10.100?20:53
triton__ruben: oh, but the camera is supposed to be visible to the outside.  The port 44 allows viewing what's happening inside the store from a browser (with some activex or java applet) and port 55 allows the same for a smartphoen20:54
triton__ruben: you are right, when they connect to the camera on any one of the windows machines inside for example, they just go to the local address of the camera and it works20:55
_rubentriton_: do you want to reach those cams from those xp boxes or from outside that netwrk?20:55
triton__ruben: from the outside, the inside is not important at all20:56
_rubenah ok20:56
triton_they can see what's happening inside without cameras : ) it's a small store, maybe 100 square meters.20:56
_rubenhehe20:57
triton_it's like a security service, when you have a few stores in one network, then it makes sense20:57
_rubentriton_: one possibility, is the default gateway configured correctly on the camera?20:58
triton_I have to check on that.  I'll try20:58
triton__ruben: I'll have to ask the service guy who installed this for some credentials to get into the admin interface, I only can get as far as using vnc now to open a browser on that ubuntu machine and hit the 192.168.10.100 :44 (this does give me a correct response) but I don't know how to administer the cameras without camera server credentials.21:02
triton__ruben: thank you for all the help that you provided really21:03
triton_I think it's time for me to ask somebody who is physically there to help out21:03
triton_it's another country :)21:03
triton__ruben: I only build and supply store and chain management software, supply chain management, resource planning and such.  They asked me to help them with the cameras and I was able to in other stores, but this one is giving me too much headache21:05
triton_it's also crazy funny (or not) to observe immediately attempts by some hostile machines to break into the vnc session that I opened temporarily via ssh. It's crazy how infested the Internet is21:07
_rubenhehe, yeah21:11
triton_Ok, have a good day, night, morning or evening!21:16
triton_bye21:16
cwillufor future reference, if one is using ssh to start a vnc server, one might as well tunnel the vnc connection through ssh as well21:25
cwillufriends don't let friends send keystrokes over the internet unencrypted21:26
=== cpg|away is now known as cpg
jak2000hi all22:28
jak2000here my partitions: http://pastebin.com/bwtLzf7t   when i try access to: cd /var/lib/mysql show me a Error Message: "Permission Deneied"  i try with: sudo cd /var/lib/mysql   but show me thesee rror: sudo: cd: command not found   why? need format or unmount or? thanks22:30
TheLordOfTimeany way to pin a package from autoupgrading?22:49
TheLordOfTimei.e. i have to either dist-upgrade or install [package] to force it to upgrade22:50
TheLordOfTimeor in other words, is there a way to hold back a package when i do apt-get upgrade22:50

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