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