/srv/irclogs.ubuntu.com/2008/07/19/#ubuntu-server.txt

=== hessml|away is now known as hessml|away|away
=== hessml|away|away is now known as hessml|away
JanCtacone: I don't know about any "final decision", but I personally use /srv anyway  ;)02:03
taconeJanC: that was not to setup my own server, but because I am developing something related to apache.02:36
patrickdgrr03:07
patrickdapt-get install libgtk-dev should install the 2.0 dev libs not 1.203:07
jordsHmm... 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 be03:20
jordsbinded onto?03:20
Nafallojords: yes03:25
jordsNafallo: any more hints? ;)03:26
Nafallojords: not at the moment.03:26
bitsbamhello all06:01
bitsbamhey 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)06:03
zacheraHow do I access files from a USB flash drive I plugged into my server?08:59
ph8zachera:  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/sdd109:13
ph8then just mkdir /mnt/usbdisk && mount /dev/sdd1 /mnt/usbdisk -- replacing sdd1 with the appropriate device/partition pointer from dmesg09:14
ph8dmesg will also tell you if there are any mounting irregularities09:14
zachera[  247.729965] scsi 4:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  4.05 PQ: 0 ANSI: 209:14
zacheraph8: How do I find out the device/partition pointer?09:16
zacheraoh shit, wait09:17
zacheraokay, i got something mounted.09:17
zacheraBut, this is odd.09:17
zacheraThere 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
zacheraAttached scsi generic sg4 type 509:18
zacherathat's the only thing I saw similar to the pointer for the auto-run/read-only files09:19
ph8hmm09:20
ph8you can maybe just ls /dev | grep sd09:20
zacherazachera@apollo:/mnt$ sudo mount /dev/sdb /mnt/usbdisk09:20
zacheramount: you must specify the filesystem type09:20
ph8and figure it out from a combination of that and the 'mount' command to see what's already mounted09:20
zacherawhats the file type for FAT32 ?09:20
zachera-t vfat ?09:20
ph8yup09:20
zacheramount -t vfat ?09:20
zacherait returned bad file type09:20
ph8odd09:21
zacheramount: wrong fs type, bad option, bad superblock on /dev/sdb,09:21
zachera       missing codepage or helper program, or other error09:21
zachera       In some cases useful info is found in syslog - try09:21
zachera       dmesg | tail  or so09:21
ph8what /dev are you using?09:21
ph8ah09:21
ph8/dev/sdb is the device09:21
zacheraah09:21
ph8whereas /dev/sdb1 is a partition on the device09:21
ph8ls /dev | grep sdb09:21
ph8and you should see some available numbers09:21
zacherazachera@apollo:/mnt$ sudo mount -t vfat /dev/sdb1 /mnt/usbdisk09:21
zacherazachera@apollo:/mnt$ cd usbdisk09:21
zacherazachera@apollo:/mnt/usbdisk$ ls09:21
zacheraDocuments  LaunchU3.exe  lighttpd.conf  my.cnf  php-cgi.ini  php.ini  System  www  zachera09:21
zacherazachera@apollo:/mnt/usbdisk$09:21
zachera^_^09:21
uvirtbotzachera: Error: "_^" is not a valid command.09:21
ph8:-)09:21
zacheraIt worked. :-)09:21
zacheraTHANKS <#09:22
zachera<309:22
zacherahow do you move a directory09:22
zacheraunable to remove target: Is a directory09:23
hadsmv09:23
zachera:|09:23
zacherazachera@apollo:/mnt/usbdisk/zachera$ mv anope /home/zachera09:23
zacheramv: inter-device move failed: `anope' to `/home/zachera/anope'; unable to remove target: Is a directory09:23
ph8that's interesting, i'd google that one09:23
zacherait moved09:24
zacherabut09:24
zacherai guess it wont overwrite, lol, weird09:24
zacherahow do you delete everything but certain files09:24
zacheralike09:24
zacherai wanna delete everything BUT jpg files09:24
hadsUse a for loop09:25
zachera:|09:25
biczzachera: rm -rf *.jpg ?09:25
zacheranope09:26
zacherawhen files are deleted through RM... can i get them back....09:26
ph8there's probably a regex way to do it that would be nice, unfortunately i don't know it09:26
ph8lol09:26
ph8not really, unless you use system recovery software09:26
biczzachera: write bigger file --> to full space of disk --> delete and re-make this09:27
ph8that would stop you being able to retrieve right?09:28
hadsshred09:28
Deepsshred's no good on a journaled file system10:24
Deepsas you've got no guarantees that you're writing to the same data space10:24
hadsThat's a point.10:24
Deepsrm the files you want rid of, then dd if=/dev/[u]random of=myfile10:25
Deepsdelete myfile, do the dd again10:25
Deepsdelete myfile10:25
Deepsand dd with /dev/zero again just for good measure10:25
hadsOr just use an encrypted fs to start with10:25
Deepsand thats generally suitable to fuck up most software appliaitons from recoverying10:25
Deepsencfs doesnt negate the need to securely delete10:28
hadsWell if you don't securely delete then someone may be able to recover the encrypted file yes.10:34
krautmoin10:46
Bonfireflizdoes anyone know how to route a single port to a specific interface?10:49
hadsHuh?10:50
Bonfireflizhm let me explain the situation and maybe it will make more sense10:51
BonfireflizI have a VPN connection that all traffic is going through10:51
Bonfireflizbut I want some ports to not use the vpn connection10:51
Bonfireflizand just use my raw internet connection on eth010:51
Deepslook into iptables, fwmark and ip rule10:52
BonfireflizI think this is doable using iptables, but I have not been able to figure it out10:52
Deepsusing iptables mangle rules, you can apply a fw mark which you can then match using ip rule10:52
BonfireflizDeeps, do you know where I can find a good example of this?10:53
Bonfireflizthe iptables documentation that I have been looking at is a pretty difficult read10:53
Deepsgoogle10:53
Deepswith the right keywords10:54
Deepsthere's no "easy to follow guide"10:54
Bonfireflizdefinitely a pain to set up10:57
RattXvmware - malarky or superior alternative?11:09
hadsHuh?11:09
RattXvmware on ubuntu any good?11:10
hadsI use KVM myself.11:11
RattXah, never heard of it, will read more11:12
RattXvmware install a bit cludgy11:12
Deepsdepends on what you're trying to virualise11:16
Deepsif 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, vmware11:17
Deeps(imo)11:17
RattXgeneral purpose server instances deeps (openvpn, bind, postfix) nothing hardware Deeps11:17
RattX*-Deeps11:17
RattXs/hardware/hardcore11:17
RattXstupid keyboard11:17
uvirtbotNew bug: #250090 in samba (main) "winbind upgrade breaks smbusers" [Undecided,New] https://launchpad.net/bugs/25009013:52
* veovis What A Wonderful World - All Time The Best Hits - Louis Armstrong (x«amarok)14:39
=== RoAk is now known as RoAkSoAx
BonfireflizHi, 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
BonfireflizI have been looking at the iptables documentation, but have been unable to figure this out20:34

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