[02:03] <JanC> tacone: I don't know about any "final decision", but I personally use /srv anyway  ;)
[02:36] <tacone> JanC: that was not to setup my own server, but because I am developing something related to apache.
[03:07] <patrickd> grr
[03:07] <patrickd> apt-get install libgtk-dev should install the 2.0 dev libs not 1.2
[03:20] <jords> Hmm... I'd like to have 2 programs listen to the same udp data sent to my server (it's netflow data, so nothing is sent back). (One program is my custom accounting system in development, and the other will be ntop for more general analysis) Obviously I can't just set both programs to bind to port 2055, but is there a iptables option to take the port 2055 input and send it to both port 2057 and 2058 (for example) which could then be
[03:20] <jords> binded onto?
[03:25] <Nafallo> jords: yes
[03:26] <jords> Nafallo: any more hints? ;)
[03:26] <Nafallo> jords: not at the moment.
[06:01] <bitsbam> hello all
[06:03] <bitsbam> hey if i have a server, ubuntu 8.4 , is there any reason that i should use the linux-image-server instead of the one that comes with xubuntu (what i am running now)
[08:59] <zachera> How do I access files from a USB flash drive I plugged into my server?
[09:13] <ph8> zachera:  If you type dmesg, you should see a series of 'successful mount' style messages, 'usb device ready' and the like, it will also tell you which device pointer it has assumed, e.g. /dev/sdd1
[09:14] <ph8> then just mkdir /mnt/usbdisk && mount /dev/sdd1 /mnt/usbdisk -- replacing sdd1 with the appropriate device/partition pointer from dmesg
[09:14] <ph8> dmesg will also tell you if there are any mounting irregularities
[09:14] <zachera> [  247.729965] scsi 4:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  4.05 PQ: 0 ANSI: 2
[09:16] <zachera> ph8: How do I find out the device/partition pointer?
[09:17] <zachera> oh shit, wait
[09:17] <zachera> okay, i got something mounted.
[09:17] <zachera> But, this is odd.
[09:18] <zachera> There is two parts to my USB flash drive; one for auto-run and read-only files, then the actual files which I can store.
[09:18] <zachera> Attached scsi generic sg4 type 5
[09:19] <zachera> that's the only thing I saw similar to the pointer for the auto-run/read-only files
[09:20] <ph8> hmm
[09:20] <ph8> you can maybe just ls /dev | grep sd
[09:20] <zachera> zachera@apollo:/mnt$ sudo mount /dev/sdb /mnt/usbdisk
[09:20] <zachera> mount: you must specify the filesystem type
[09:20] <ph8> and figure it out from a combination of that and the 'mount' command to see what's already mounted
[09:20] <zachera> whats the file type for FAT32 ?
[09:20] <zachera> -t vfat ?
[09:20] <ph8> yup
[09:20] <zachera> mount -t vfat ?
[09:20] <zachera> it returned bad file type
[09:21] <ph8> odd
[09:21] <zachera> mount: wrong fs type, bad option, bad superblock on /dev/sdb,
[09:21] <zachera>        missing codepage or helper program, or other error
[09:21] <zachera>        In some cases useful info is found in syslog - try
[09:21] <zachera>        dmesg | tail  or so
[09:21] <ph8> what /dev are you using?
[09:21] <ph8> ah
[09:21] <ph8> /dev/sdb is the device
[09:21] <zachera> ah
[09:21] <ph8> whereas /dev/sdb1 is a partition on the device
[09:21] <ph8> ls /dev | grep sdb
[09:21] <ph8> and you should see some available numbers
[09:21] <zachera> zachera@apollo:/mnt$ sudo mount -t vfat /dev/sdb1 /mnt/usbdisk
[09:21] <zachera> zachera@apollo:/mnt$ cd usbdisk
[09:21] <zachera> zachera@apollo:/mnt/usbdisk$ ls
[09:21] <zachera> Documents  LaunchU3.exe  lighttpd.conf  my.cnf  php-cgi.ini  php.ini  System  www  zachera
[09:21] <zachera> zachera@apollo:/mnt/usbdisk$
[09:21] <zachera> ^_^
[09:21] <ph8> :-)
[09:21] <zachera> It worked. :-)
[09:22] <zachera> THANKS <#
[09:22] <zachera> <3
[09:22] <zachera> how do you move a directory
[09:23] <zachera> unable to remove target: Is a directory
[09:23] <hads> mv
[09:23] <zachera> :|
[09:23] <zachera> zachera@apollo:/mnt/usbdisk/zachera$ mv anope /home/zachera
[09:23] <zachera> mv: inter-device move failed: `anope' to `/home/zachera/anope'; unable to remove target: Is a directory
[09:23] <ph8> that's interesting, i'd google that one
[09:24] <zachera> it moved
[09:24] <zachera> but
[09:24] <zachera> i guess it wont overwrite, lol, weird
[09:24] <zachera> how do you delete everything but certain files
[09:24] <zachera> like
[09:24] <zachera> i wanna delete everything BUT jpg files
[09:25] <hads> Use a for loop
[09:25] <zachera> :|
[09:25] <bicz> zachera: rm -rf *.jpg ?
[09:26] <zachera> nope
[09:26] <zachera> when files are deleted through RM... can i get them back....
[09:26] <ph8> there's probably a regex way to do it that would be nice, unfortunately i don't know it
[09:26] <ph8> lol
[09:26] <ph8> not really, unless you use system recovery software
[09:27] <bicz> zachera: write bigger file --> to full space of disk --> delete and re-make this
[09:28] <ph8> that would stop you being able to retrieve right?
[09:28] <hads> shred
[10:24] <Deeps> shred's no good on a journaled file system
[10:24] <Deeps> as you've got no guarantees that you're writing to the same data space
[10:24] <hads> That's a point.
[10:25] <Deeps> rm the files you want rid of, then dd if=/dev/[u]random of=myfile
[10:25] <Deeps> delete myfile, do the dd again
[10:25] <Deeps> delete myfile
[10:25] <Deeps> and dd with /dev/zero again just for good measure
[10:25] <hads> Or just use an encrypted fs to start with
[10:25] <Deeps> and thats generally suitable to fuck up most software appliaitons from recoverying
[10:28] <Deeps> encfs doesnt negate the need to securely delete
[10:34] <hads> Well if you don't securely delete then someone may be able to recover the encrypted file yes.
[10:46] <kraut> moin
[10:49] <Bonfirefliz> ﻿does anyone know how to route a single port to a specific interface?
[10:50] <hads> Huh?
[10:51] <Bonfirefliz> hm let me explain the situation and maybe it will make more sense
[10:51] <Bonfirefliz> I have a VPN connection that all traffic is going through
[10:51] <Bonfirefliz> but I want some ports to not use the vpn connection
[10:51] <Bonfirefliz> and just use my raw internet connection on eth0
[10:52] <Deeps> look into iptables, fwmark and ip rule
[10:52] <Bonfirefliz> I think this is doable using iptables, but I have not been able to figure it out
[10:52] <Deeps> using iptables mangle rules, you can apply a fw mark which you can then match using ip rule
[10:53] <Bonfirefliz> Deeps, do you know where I can find a good example of this?
[10:53] <Bonfirefliz> the iptables documentation that I have been looking at is a pretty difficult read
[10:53] <Deeps> google
[10:54] <Deeps> with the right keywords
[10:54] <Deeps> there's no "easy to follow guide"
[10:57] <Bonfirefliz> definitely a pain to set up
[11:09] <RattX> vmware - malarky or superior alternative?
[11:09] <hads> Huh?
[11:10] <RattX> vmware on ubuntu any good?
[11:11] <hads> I use KVM myself.
[11:12] <RattX> ah, never heard of it, will read more
[11:12] <RattX> vmware install a bit cludgy
[11:16] <Deeps> depends on what you're trying to virualise
[11:17] <Deeps> if you're only after linux based systems and have the appropriate virtualisation extentions in your cpu, kvm. if you lack the cpu extentions, xen. if you want to virtualise windows, vmware
[11:17] <Deeps> (imo)
[11:17] <RattX> general purpose server instances deeps (openvpn, bind, postfix) nothing hardware Deeps
[11:17] <RattX> *-Deeps
[11:17] <RattX> s/hardware/hardcore
[11:17] <RattX> stupid keyboard
[14:39]  * veovis What A Wonderful World - All Time The Best Hits - Louis Armstrong (x«amarok)
[20:34] <Bonfirefliz> ﻿﻿Hi, I'm using 8.04 and I am trying to forward all traffic on a single port to go through my eth0 interface.  I have vpn turned on, so all traffic is going through the vpn tunnel -> eth0.  I want to bypass vpn for this one port.
[20:34] <Bonfirefliz> ﻿﻿I have been looking at the iptables documentation, but have been unable to figure this out