[00:42] <owh> Salutations. I've just completed a do-release-upgrade from gutsy to hardy. This server will only boot if acpi=off. I've manually edited menu.lst and added that back in, but I have two questions. 1) How do I make it automagically add it? 2) Do I have to run something to make it "stick", like with lilo?
[00:44] <owh> Hmm, I also recall that this is running an array. In the past I had to manually copy the boot block across with dd, do I still have to do that?
[00:44] <owh> Finally, what checks do you recommend before I reboot this remote machine into its new OS?
[00:49] <jmedina> owh: nothing
[00:50] <owh> jmedina: Nothing?
[00:50] <jmedina> grub reads menu.lst each time, boot info is not stored in MBR or boot partition
[00:50] <owh> Cool, so that takes care of q's 2 and 3. 1 is for later, what about 4?
[00:50] <infinity> owh: Find the line starting with "# kopt" in /boot/grub/menu.lst
[00:51] <infinity> owh: Mine looks like "# kopt=root=UUID=b42d1082-e4b3-4eb0-98ce-f1ac84027c7e ro"
[00:51] <owh> infinity: Yup
[00:51] <infinity> owh: If you add "acpi=off" to the end of that, then subsequent runs of "update-grub" (which is what kernel installs do) will auto-append it to all your kernel lines.
[00:52] <owh> Right below that is kopt_2_6, does that have any bearing?
[00:52] <owh> It's showing my boot device.
[00:52] <owh> # kopt_2_6=root=/dev/md2 ro
[00:52] <infinity> owh: You shouldn't need _2_6 or similar, unless you are trying to have specific options for specific versions.
[00:53] <owh> I've never tweaked it, but the fact that it's showing my array seems significant.
[00:53] <infinity> owh: I can't think of anything that would automatically create versioned kopt stuff, except maybe some sketchy third-party configs.
[00:54] <infinity> owh: But if the regular kopt isn't configured correctly, then either fix that, or use _2_6...
[00:54] <owh> This was a virgin install gutsy and I don't install third party stuff - makes my job way too hard.
[00:54] <infinity> owh: The more specific version will "win" when creating the boot stanzas.
[00:54] <infinity> owh: (So _2_6_24 beats _2_6 beats _2 beats kopt...)
[00:54] <owh> Seeing that it's running the current kernel, I'm thinking stick with kopts_2_6
[00:55] <infinity> owh: Yeah.  The only issue with _2_6 is that it'll explode amazingly on upgrade to 3.0.x... But that's probably not around the corner anyway. :)
[00:56] <infinity> owh: Anyhow, it's not like any of it's irreversible.
[00:56]  * owh is guessing that there will be other challenges than a kopt_2_6 stanza :)
[00:57] <owh> Final question. I recall in a previous kernel upgrade the machine chose the wrong network interface and I had to actually travel to the console to fix it. Anything I should check?
[00:57] <infinity> owh: Modify kopt* how you like, then run update-grub, and diff /boot/grub/menu.lst{~,}
[00:57] <infinity> owh: If it did what you wanted, yay.
[00:58] <owh> infinity: Whoot!
[00:58] <infinity> owh: NICs should ideally be statically mapped via udev rules... See /etc/udev/rules.d/70-persistent-net.rules
[00:58] <owh> One problem down.
[01:00] <owh> infinity: Well, the udev rule seems to map the correct MAC address to the correct device name.
[01:00] <owh> So I'm guessing it won't swap eth0 and eth1 on me this time.
[01:00] <infinity> owh: Then it should be just fine from here on.
[01:01] <owh> Well, let me do the reboot thing and see if I come back cursing :-)
[01:03] <owh> It's the time between "Connection closed by remote host." and the login prompt that kills yah!
[01:04] <infinity> Takes my sparc buildds about 5 minutes to POST, I feel your pain.
[01:04] <owh> At the moment I'm getting "Connection refused" :-)
[01:04] <owh> I've got to invest into a KVM over IP.
[01:05]  * owh is hoping that it's doing an fsck because this seems to be taking a long time.
[01:07] <infinity> Well, "connection refused" tends to mean it's half booted, but no sshd running yet.
[01:07] <infinity> Since not being online at all will usually warrant a "no route to host" or similar.
[01:07] <owh> Yeah, that's what's keeping me from shouting :)
[01:09]  * owh is going to step away from the keyboard and come back after a nice soothing cup of tea to see what gives. Thanks infinity for your help.
[01:23]  * owh releases a sigh of relief.
[01:23] <owh> Cups of tea can solve server problems :)
[01:32] <infinity> owh: Good to hear.
[01:33] <owh> Hmm, just  tried an ssh tunnel for RDP and it tells me that it "Could not request local forwarding." - is that my end or the server end?
[01:34] <infinity> X11Forwarding disabled in /etc/ssh/sshd_config ?
[01:34] <infinity> (Assuming it's an X11 client you're trying to forward)
[01:35] <owh> Nah, it turns out to be on this end. The ssh process didn't close properly when the server went away.
[01:36] <owh> Well, that's a win for remote admin. XP SP3 install complete across RDP, followed by a gutsy-hardy upgrade over ssh.
[01:36] <Kamping_Kaiser> owh, tried ssh -vv ?
[01:37] <owh> Kamping_Kaiser: No, it was a local ssh process that was holding open the local end of the tunnel.
[01:40] <owh> Nothing like a non-responding server to get your heart going :0
[01:41] <owh> Beats all the extreme sports I can think of :)
[01:48] <twb> Inline skateboarding while hanging off the back of a tram is pretty fun.
[03:24] <ULFfuntu> hi
[06:07] <mat1211> Hi, how would I reformat my external harddrive with the hfs filesystem?
[06:08] <mat1211> without reformatting the original harddrive that is in the server.
[06:11] <twb> mat1211: HFS or HFS+?
[06:11] <mat1211> does it matter?
[06:12] <twb> They are quite different filesystems.
[06:13] <mat1211> what are the differences, I just need something that works well with ubuntu and can support users and stuff.
[06:13] <twb> I don't recall offhand.  I expect user-visible changes regarding case folding, at the very least.
[06:13] <twb> For OS X, you should definitely use HFS+, not HFS.
[06:14] <twb> HFS ought to be used only if you are dealing with MacOS 7 or earlier, I think.
[06:14] <twb> Neither should be used unless you're dealing with OS X.
[06:14] <twb> Even then NTFS (with ntfs-3g) might be a better interchange format...
[06:15] <twb> I know from personal experience that if an HFS or HFS+ filesystem becomes corrupt, you can't repair it (i.e. fsck) from Linux.
[06:15] <mat1211> With hfs+, can I change the owner of a directory? because I cannot do this with the fat32 fs I have now, also would the hfs+ work with windows?
[06:15] <twb> Neither HFS nor HFS+ work with Windows.
[06:17] <mat1211> do drivers exist that I can download for windows? anyway, can I change the owner of dirs? and what is actual code to reformat.
[06:17] <twb> HFS (not HFS+) has a 2GiB file size limit, limits file names to 31 characters, and does not support Unicode in filenames.
[06:18] <twb> If you are dealing with Windows I strongly encourage you to use ntfs3g over hfs+, as the former should be more mature and robust, and (I believe) works on both OS X and Windows out of the box.
[06:18] <mat1211> I will probably use hfs+ then
[06:19] <twb> "On Windows, a fairly complete filesystem driver for HFS+ exists as a commercial software package called MacDrive. This package allows Windows users to read and write HFS+ formatted drives, and read Mac format optical disks. ^[10]"
[06:19] <twb> http://en.wikipedia.org/wiki/HFS%2B
[06:19] <mat1211> ah, well then that changes things.
[06:19] <twb> It seems that HFS+'s journalling support is not implemented on Linux, either.
[06:19] <mat1211> ntfs3g you say?
[06:20] <twb> Yes, ntfs-3g.
[06:20] <twb> The kernel-based ntfs drive is essentially read-only.
[06:20] <mat1211> How would I set my hd up with this fs, and does ubuntu come with drivers.
[06:20] <twb> apt-get install ntfs3g or ntfs-3g, I forget which.
[06:20] <mat1211> and I can write to ntfs3g, right? read only would be bad, im trying to set up a web server so...
[06:21] <twb> Yeah, ntfs3g has write support.
[06:21] <twb> If this disk is going to live in the Ubuntu server, it would be much better to use ext3 and provide write access to OS X and Windows desktops using Samba.
[06:21] <mat1211> ah, and how would I put this on my usb harddrive? is there a reformat command :P
[06:22] <twb> There are several commands to manipulate a disk's partition table, including gparted, cfdisk, parted and sfdisk.
[06:22] <twb> Once the disk is partitioned, you would determine the partition's name (e.g. /dev/sde1) and use the mkfs(8) command to create a filesystem on it.
[06:22] <mat1211> I just have a disk with one big partition, which I just want to change the filesystem of.
[06:23] <twb> Note that changing the filesystem will destroy any data currently on that partition.
[06:23] <mat1211> yeah, im backing it up atm.
[06:24] <mat1211> What is the syntax for mk-fs?
[06:24] <twb> Check the manpage.
[06:29] <mat1211> manpage doesn't work, the ssh client im using for windows doesn't support it, im googling it atm.
[06:29] <twb> Er, you're using putty?
[06:31] <mat1211> yeah
[06:31] <mat1211> unfortunately, I use a screen reader and its the only one I can find that even vaguely works
[06:32] <twb> putty's great IMO
[06:32] <twb> Maybe man doesn't work because you're using less as the pager?
[06:32] <twb> Try PAGER=more man mkfs
[06:33] <twb> You know if you have a braille reader you could probably hook that up to the server itself with good results.
[06:33] <mat1211> no, I am blind and my windows screen reader isn't working properly with the page.
[06:33] <mat1211> tried that, doesn't work also
[06:33] <mat1211> lol
[06:34] <twb> OK, there might be a trick to it that I don't know about; you'd have to ask the brltty group.
[06:35] <twb> You can do /msg specbot man foo, to get the OS X manpage for foo.
[06:35] <twb> Unfortunately specbot doesn't know about Linux manpages.
[06:39] <mat1211> hmmm
[06:40] <mat1211> How would I just format this with ext3 fs?
[06:40] <mat1211> or is that a bad idea.
[06:41] <twb> mkfs -t ext3 /dev/sde1
[06:41] <twb> ext3 is the best choice for use by Ubuntu
[06:41] <twb> But it is not supported well by OS X or Windows, except via a network fs such as CIFS (Samba).
[06:42] <mat1211> ah.\
[06:43] <mat1211> btw isn't it sdb not sde? when I mount its usually mount -t /dev/sdb1
[06:43] <twb> It depends
[06:43] <twb> I used a high number so you didn't accidentally run it and destroy one of your internal disks
[06:44] <twb> A high letter, rather
[06:47] <NaOH> can i bounce a postfix+sasl question off someone?
[06:47] <twb> NaOH: #postfix?  I mean, you can ask here too :-)
[06:48] <mat1211> Ah, what does the letter have to do? I didn't know it mattered.
[06:48] <NaOH> cool, well i got my clients authenticating on a workaround, i have to do a ln -s /var/spool/postfix/var/run/saslauthd /var/run
[06:48] <NaOH> for it to work properly
[06:49] <NaOH> i see whats happening, and i'm assuming i have to point a config in the right direction to get this working kosher?
[06:50] <twb> mat1211: letters are assigned to disks in the order in which they are found, starting at a.
[06:50] <twb> mat1211: sda1 means SCSI disk a (first disk), partition 1 (first partition).
[06:51] <twb> mat1211: just about everything is treated as a SCSI disk nowadays, but they used to also have hda1 for PATA disks.
[08:07] <Maelaian> I just did a dist-upgrade, how do I get rid of the old kernels?
[08:07] <p_quarles> Maelaian: apt-get remove
[08:21] <Maelaian> Hmm, how do I tell if I am using the -virtual or -server kernel? uname -a?
[08:22] <p_quarles> Maelaian: uname -r will tell you that
[08:22] <Maelaian> It says server, I'm using the x64 server disk, and I did the F4 to the virtual minimal install. I did a dist-upgrade and it appears I'm using the -server now, when I want to be using -virtual.
[08:22] <Maelaian> yea it server.
[08:23] <p_quarles> so, is the server a virtual machine?
[08:23] <Maelaian> It is.
[08:23] <p_quarles> xen?
[08:24] <Maelaian> ESX
[08:24] <p_quarles> not familiar with that type of virtualization
[08:24] <Maelaian> vmware.
[08:24] <p_quarles> vmware doesn't need a special kernel
[08:25] <Maelaian> Vmware recommends using the -virtual kernel as its tuned to run better as a guest.
[08:26] <Maelaian> Which I do believe the virtual minimal install uses, but i believe it went to -server when I dist-upgraded, is there a way to let it know I always want -virtual and to switch over to that now?
[08:27] <sbeattie> Maelaian: the -virtual kernel is the same as the -server kernel with a smaller set of modules (and thus self-identifies via uname|/proc/version as -server); "dpkg -l linux-image-*" will show you what you have installed.
[08:29] <sbeattie> they were separate kernels with independent configs in hardy, but that changed in intrepid and jaunty.
[08:30] <Maelaian> Alright. From this dpkg -l list, what shows the entry as being the one im using ?
[08:32] <sbeattie> the version that correlates to the contents of /proc/version_signature
[08:33] <Maelaian> Ok, yea looks right, just got confused by the uname output.
[08:34] <sbeattie> yeah, I'd rather it was identified itself as -virtual, to prevent exactly this kind of confusion.
[08:35] <Maelaian> All I know is that this time I didn't have to take out wireless-tools and wpa_supplicant ;)
[08:53] <Maelaian> My old kernel is listed in dpkg --get-selections with deinstall next to it. How do I get it out?
[09:10] <twb> vmware needs a special kernel *module*, however.
[09:14] <Maelaian> yea the vmware tools?
[09:15] <Maelaian> like the vmxnet driver etc.
[09:17] <twb> Maelaian: I meant for the host OS
[09:18] <twb> Sorry, I didn't read the scrollback too carefully.  Maybe I misunderstood.
[09:22] <Maelaian> Oh. Sorry, yea, I'm using ESX server.
[09:26] <rags> anyone know of any log analysis package that has a web interface?
[09:27] <ropetin> What kind of logs?
[09:27] <rags> I know of logshow and logcheck, but they just mail you the logs
[09:27] <rags> genreral logs...
[09:27] <rags> syslog...just want  a better interface, rather then a text file...
[09:28] <rags> with some searching and analysis thrown in...
[09:28] <rags> I know of splunk...but tht is an overkill..I want something light.
[09:29] <ropetin> I just found something called phpLogCon, not sure if it's any good or not though
[09:29] <rags> I remember some package called phplog analyser or something..but can't get it's name...
[09:29] <ropetin> The one I use is even more over kill than splunk!
[09:30] <ropetin> http://www.syslog.org/wiki/Main/LogAnalyzers
[09:30] <rags> aha..I think tht's the one..wht do you use btw?
[09:30] <ropetin> One of those will surely do it
[09:30] <rags> wonderful!
[09:30] <ropetin> It's an in-house developed web-app (event analysis is what I do for a living, at least sometimes)
[09:37] <rags> phpLogCon seems to be the perfect tool...
[11:28] <mattt> dang wiki is down
[13:17] <Deeps> trying to remount / as ext2 (is ext3), `mount -t ext2 -o remount /dev/sda1 /` doesn't appear to be working, any ideas?
[15:29] <Noble> Hi, I'm looking for a why to get all the computers home (7 or so) to log into a server and get their permissions and storage from there. Is this a samba domain thing? How should I go about it?
[16:11] <jpds> Anyone know why etckeepers keeps wanting to write to my users's ~/.bzr.log instead of roots?
[18:34] <jmarsden> jpds: Perhaps you are running etckeeper from sudo or su and it respects the $HOME variable which is still set to point to your user's home directory?
[18:34] <jpds> jmarsden: Yeah, that's what I thought, but it's not happening on another system I have it.
[18:35] <jmarsden> jpds: Try su -   and then run etckeeper from there and see if if then does what you want?
[18:36] <jpds> jmarsden: It does with sudo -i.
[18:36] <jmarsden> Then that has to be it... sudo -s leaves the $HOME alone, sudo -i changes it...
[18:37] <jpds> Yep, but it works fine when I install a new package on the other computer with sudo apt-get ...
[18:37] <ivoks> apt-cacher?
[18:39] <jpds> ivoks: No, I'm having problems with etckeeper+bzr and it wanting my ~/.bzr.log file.
[18:39] <jmarsden> Well, as a test you can try something like   sudo HOME=/root whatever-command-you-test   # ... does that work?
[18:39] <ivoks> ah... :)
[18:42] <jpds> That works.
[18:42] <jmarsden> Therefore, $HOME is the culprit.  Why it is Ok on the other machine ... I have no idea :)
[18:43] <ivoks> ghosts
[18:48] <mib_d75wrq0u> hi guys.  I am trying to get a command workign so i can use it in php. "sudo -u sap useradd -p test1 test1" returns an error about the account being locked
[18:49] <mib_d75wrq0u> useradd: unable to lock password file  ---------- to be exact
[18:49] <mib_d75wrq0u> yet if i do not do the -u it works fine...
[18:51] <ivoks> what do you want to achive?
[18:51] <ivoks> add a user?
[18:52] <mib_d75wrq0u> yes, to the server
[18:52] <mib_d75wrq0u> but it will be done through php
[18:52] <ivoks> sudo -u sap = do next command as sap user
[18:52] <mib_d75wrq0u> my thought is that this can be don using the sudo -u... but im having extremely inconsistant results
[18:52] <ivoks> can sap user create new users (i guess not)
[18:52] <mib_d75wrq0u> yes they can
[18:52] <mib_d75wrq0u> thats whats weird
[18:53] <mib_d75wrq0u> i can do it as the user with no -u in the comman
[18:53] <mib_d75wrq0u> d
[18:53] <jpds> jmarsden: Deleted the bzr files for bzr in /root and my own and now: http://paste.ubuntu.com/144334/
[18:53] <jpds> Awesomeness.
[18:54] <ivoks> mib_d75wrq0u: if you run it as 'sudo whatever' you'll run whatever as root
[18:54] <ivoks> mib_d75wrq0u: 'sudo -u sap whatever' will run as sap user
[18:54] <mib_d75wrq0u> its not workign though
[18:54] <mib_d75wrq0u> but when i sudo su into the user sap, and try it
[18:54] <mib_d75wrq0u> it does
[18:55] <ivoks> 'sudo su' will make you a root, not sap
[18:55] <mib_d75wrq0u> sportman1280@illidan:~$ sudo -u sap useradd -p test5 test5 useradd: unable to lock password file
[18:55] <jmarsden> jpds: Yes, but if you prefix with HOME=/root then it works, right?  So this is just the same thing... it uses $HOME ?
[18:55] <mib_d75wrq0u> sudo su sap*
[18:55] <jpds> jmarsden: Yep. Which is odd.
[18:56] <jmarsden> Well, it's a fairly common thing for a shell script to do, use $HOME to find the home dir...
[18:56] <ivoks> mib_d75wrq0u: have you configured sudoers?
[18:56] <mib_d75wrq0u> yes
[18:56] <ivoks> so, 'sudo -u sap ls' doesn't work?
[18:57] <jmarsden> jpds: What is odd to me is the *other* one that works for you without setting $HOME !
[18:57] <mib_d75wrq0u> sudo -u sap ls does
[18:57] <mib_d75wrq0u> useradd does not :(
[18:57] <jpds> True.
[18:57] <ivoks> mib_d75wrq0u: are you sure 'sap' user can create new users?
[18:57] <jmarsden> mib_d75wrq0u: sap does not have the privs to run useradd -- should it have them?
[18:57] <mib_d75wrq0u> here is visudo:    sap ALL=(ALL) NOPASSWD:ALL
[18:58] <ivoks> mib_d75wrq0u: (i doubt it can)
[18:59] <mib_d75wrq0u> sportman1280@illidan:~$ sudo -u sportman1280 useradd -p test5 test5 useradd: unable to lock password file
[18:59] <ivoks> this only means that sap user can do whatever it wants without prompting password
[18:59] <mib_d75wrq0u> i cant do it myself either
[18:59] <ivoks> that's imporper use of sudo
[18:59] <ivoks> sudo - make ma root
[18:59] <mib_d75wrq0u> well yea... but it was test
[18:59] <mib_d75wrq0u> lol
[18:59] <ivoks> so sudo -u sportman1280 - make me a sportman1280
[19:00] <ivoks> of course you can't create a user
[19:00] <ivoks> only root can do that
[19:00] <ivoks> so, sap user needs to run 'sudo useradd bla bla bla'
[19:00] <mib_d75wrq0u> hmmm ok so i think i see where your going
[19:00] <ScottK> ivoks: Did you get a chance to try out clamav 0.95 yet?
[19:00] <ivoks> ScottK: haven't someone ack that it works?
[19:01] <mib_d75wrq0u> well i cant do that with php
[19:01] <ScottK> ivoks: Yes.  And I uploaded it.  I'm curious how it does for you.
[19:01] <mib_d75wrq0u> thats wehre this is stemming from... i need to run it during php
[19:01] <ivoks> mib_d75wrq0u: php cli apps are runing as www-data user
[19:01] <ivoks> unless you changed something
[19:01] <ivoks> ScottK: eh... ok, i'll test tomorrow
[19:01] <mib_d75wrq0u> ivoks: hence me trying to run sudo as sap.  or thats what i was thinking at least
[19:02] <ivoks> why would you run it as sap?
[19:02] <ivoks> you need sudo to delegate root privileges, not sap
[19:02] <mib_d75wrq0u> ivoks so the entire server isnt running with the ability to sudo things without passwords?
[19:03] <ivoks> you should stop with everything you are doing now
[19:03] <mib_d75wrq0u> haha
[19:03] <mib_d75wrq0u> ok
[19:03] <ivoks> and *read* about sudo
[19:03] <ivoks> cause you are on a way to do something very bad to your server
[19:03] <mib_d75wrq0u> well i think i might have been getting desprate and went off the right path then
[19:05] <mib_d75wrq0u> what would you recommend for running a sudo command in php then?
[19:05] <mib_d75wrq0u> or where should i look? i cant really find good directions on the process either...
[19:05] <ivoks_> so:
[19:05] <ivoks_> 20:04 < ivoks> if you need to create users from web application
[19:05] <ivoks_> 20:04 < ivoks> you shouldn't use shadow for authentication
[19:05] <ivoks_> but sql or ldap
[19:06] <mib_d75wrq0u> its to administer the server
[19:06] <mib_d75wrq0u> this is just one part of the commands we will be adding
[19:06] <ivoks_> you are doing a very bad thing
[19:06] <ivoks_> onw way to solve it is to create apache+fastcgi instead of apache-mpm-prefork
[19:07] <andol> mib_d75wrq0u: ldap is perfectly fine för system accounts.
[19:07] <ivoks_> even better than shadow
[19:08] <mib_d75wrq0u> the project is to create something like cpanel ultimately. so we will be working with mysql and other tools too
[19:08] <ivoks_> anyway, bye
[19:08] <mib_d75wrq0u> ok thanks
[19:08] <mib_d75wrq0u> :)
[19:08] <andol> mib_d75wrq0u: You know, you really should listen to ivoks_.
[19:08] <ivoks_> if you are creating cpanel-clone
[19:08] <ivoks_> take a look at ispconfig
[19:08] <ivoks_> it populates sql
[19:08] <mib_d75wrq0u> ok thanks :)
[19:08] <ivoks_> and then with cron pulls from it
[19:09] <ivoks_> that's also cr@p
[19:09] <ivoks_> mib_d75wrq0u: do it with ldap and everybody would love you
[19:09] <ivoks_> since ldap is more flexibile than shadow
[19:09] <ivoks_> under ldap account you can define everything you need, not just username and password
[19:10] <mib_d75wrq0u> ivoks_ i have nothing against ldap, we use it at work. i was just also thinking outside of the username and password realm into the other sytem command
[19:10] <mib_d75wrq0u> ivoks_ im downloading the ispconfig now :)
[19:11] <ivoks_> mib_d75wrq0u: web application that can execute root commands without password is best way to disater
[19:11] <ivoks_> disaster
[19:11] <ivoks_> even more if it's PHP based
[19:11] <ivoks_> time for real life :D
[19:11] <ivoks_> take care
[19:16]  * ScottK wonders what is this 'real life' that ivoks mentions.
[21:00] <socialist> are there any stock server kernels that don't require PAE?  I need to do some xen stuff and I've got some old machines without PAE, but all the xen support appears to be in the server kernels
[22:10] <Deeps> socialist: the -virtual kernels dont work with xen?
[22:12] <socialist> those are server kernels w/ PAE
[22:12] <socialist> I'm just building a custom with PAE turned off, no biggie
[22:25] <mat1211> Hi, what is syntax to reformat a disk in /dev/sdb1 with ext3 fs?
[22:25] <mat1211> lol
[22:26] <Deeps> mkfs.ext3 /dev/sdb1
[22:27] <mat1211> thanks
[22:27] <giovani> probably requires a prepended sudo, no?
[22:30] <PhotoJim> mat1211: to help you remember that command, think of mkfs as meaning "MaKe FileSystem"... that's how I remember it
[22:31] <mat1211> nod
[22:31] <mat1211> this will probably take a long time lol, also while I am here, what is the command to extract a .rar file to a certain dir?
[22:31] <giovani> unrar e filename.rar
[22:32] <giovani> it requires the unrar utility of course
[22:32] <PhotoJim> mat1211: there is probably syntax to force it to a directory, but I just cd /path/to/directory  and then unrar e filename.rar
[22:33] <giovani> there is ... append the path
[22:33] <giovani> unrar e filename.rar /path/to/extract/to/
[22:33] <mat1211> What if the rar file is in a different dir than I want to extract it in?
[22:33] <mat1211> ah
[22:33] <giovani> mat1211: read the manpage
[22:33] <giovani> it's clearly spelled out there
[22:33] <PhotoJim> unrar e /path/to/rarfile.rar
[22:34] <mat1211> I usually would read the manpage, but my screen reader and putty don't work well together. :P
[22:34] <PhotoJim> try: export TERM=screen  ... and then see if man works better.
[22:34] <giovani> probably misconfigured putty then
[22:35] <Deeps> and try using a different pager, i find most displays the colours in manpages properly
[22:35] <giovani> securecrt > *
[22:35] <mat1211> The one for windows? nah its just one file.
[22:35] <giovani> mat1211: putty has dozens of session options
[22:35] <giovani> but, ok
[22:35] <mat1211> maybe I downloaded the smaller version by mistake.
[22:36] <giovani> nope, same version ... it still has options
[22:38] <Deeps> chances are he's using the default options then, which is usually fine
[22:39] <mat1211> meh, I'm getting an apple comp soon, which works far better using voiceover and stuff.
[22:39] <mat1211> so I won't need to ask as many questions on here :P
[23:21] <wizardslovak> i want to edit my conf file "gedit /etc/mysql/mt/cnf" i am getting error --->gtk-warning cannot open display
[23:22] <wizardslovak> i want to learn mysql and ubuntu server well but i cant open config file
[23:22] <wizardslovak> any ideas?
[23:23] <Deeps> 2 problems, 1- gedit is a graphical editor, it needs a GUI, ubuntu server doesn't use a GUI, so you need a different tool, like nano, pico, vim, or emacs (console text editors)
[23:23] <Deeps> 2- /etc/mysql/mt/cnf is probably not the correct path nor file, and you probably want /etc/mysql/my.cnf
[23:23] <wizardslovak> i made mistake my.cnf
[23:24] <beechbone> I've got a postfix/courier mail server setup. It now requires sasl authentication to send emails to other domains. But I can still send messages from smtp within the server. Any way to stop this?
[23:24] <wizardslovak> so which texxt sditor you prefer?
[23:24] <Deeps> wizardslovak: i prefer vim, but it has a steep learning curve. you're probably best suited to nano or pico
[23:24] <wizardslovak> ok so i will use nano
[23:24] <wizardslovak> can i ask more questions?
[23:25] <jpds> Sure.
[23:25] <jpds> !ask
[23:26] <wizardslovak> i am new to ubuntu server and i never couldnt understood how to set up server which is behing router
[23:26] <Deeps> there are pages on the wiki that describe how to setup an ubuntu server as a network router
[23:26] <wizardslovak> can you redirect me there?
[23:26] <Deeps> https://wiki.ubuntu.com/
[23:26] <jpds> help.ubuntu.com
[23:27] <jpds> wizardslovak: Do you mean behind a router?
[23:27] <jmarsden> Deeps: I think the issue may be more of the server being "behind" a router i.e. NAT port forwarding in a SOHO router ?
[23:27] <Deeps> the man says "as a", i'll take the english interpretation of that
[23:27] <wizardslovak> yes , i mean i got couple PCs and i want to use one as server (for studies)
[23:27] <wizardslovak> i have reouter with dd-wrt
[23:28] <wizardslovak> so far i am using ubuntu server on my laptop on virtualbox
[23:29] <wizardslovak> i cannot find nothing about server and router
[23:31] <jpds> wizardslovak: http://en.wikipedia.org/wiki/Port_forwarding
[23:31] <jmarsden> wizardslovak: Sounds like you will: (1) set the the Ubuntu server to run whatever service you want to offer; (2) make sure you have the virtualbox stuff set up so that other PCs on your LAN can get to that service; (3) Set up a port forward in your dd-wrt router so that a port on the Public Intenet interface of it is routed through to the port on the Ubuntu server for your desired service.
[23:32] <wizardslovak> right now i dont want anyone outside to see my servers, but my LAN
[23:33] <jmarsden> Then ignore part (3) for right now.
[23:33] <wizardslovak> sorry i know i might be pain in the a** but i am interested in servers and books are not enough
[23:33] <wizardslovak> better to get support from people which actually use it
[23:34] <jmarsden> In a sense, virtualbox is making this harder for you than it would be if you had Ubuntu Server on its own real hardware PC... because you have to get its networking stuff right too.  Do you have a spare real PC you can install Ubuntu Server on?
[23:34] <wizardslovak> yes i do
[23:34] <jmarsden> Then that might be a good way to go to get started.
[23:34] <wizardslovak> its old one with 2.4 celeron but it should be enough
[23:35] <jmarsden> RAM may be more important than CPU for this sort of learning stuff... do you have 512MB or more on the celeron PC?
[23:35] <wizardslovak> i though ill get used to server on Vbox and then
[23:35] <wizardslovak> 512
[23:36] <jmarsden> You can do the Virtualbox thing, but it is one more set of configuration things to get right... 512 should be good.  I'd try that.  See if you can get Apache working on the Celeron PC running Ubuntu Sevrer as a first step, maybe?
[23:38] <wizardslovak> good idea
[23:38] <wizardslovak> although i wont do it today
[23:38] <wizardslovak> for web server, i have to forward 80 or can i forvard different port?
[23:39] <wizardslovak> if i will forward 80 will i be able to browse internet?
[23:41] <jmarsden> if you forward TCP port 80 to the server other people from the Internet will be able to browse to your server, yes.
[23:42] <jmarsden> If you set up the server on your LAn you will be able to browse to it using its LAN address from your laptop without doing any port forwarding at all.
[23:43] <wizardslovak> will my computers be able to browse internet(not my server)
[23:44] <jmarsden> Yes, you don't need to do any port forwarding for that, normally, your router will do NAT for you and it will "just work".
[23:45] <dug_> Do you have to have multiple ips if you want to run multiple servers on different virtual machines?  Or can you forward based on virtual hosts or port numbers
[23:46] <wizardslovak_> ok i am back
[23:46] <jmarsden> dug_: You can forward different port numbers to different LAN Ip addresses, so you only need one public IP.
[23:46] <jmarsden> wizardslovak_: I said: Yes, you don't need to do any port forwarding for that, normally, your router will do NAT for you and it will "just work".
[23:46] <wizardslovak_> ok
[23:47] <wizardslovak_> so lets say i want to connect to my server from different location, ill type my ip adress and then my server LAN ip ,correct?
[23:49] <jmarsden> wizardslovak_: No, for that you will forward a port on your router to a a port on the LAn IP of your server.  Then from outrside you will just connect to that port of your public IP address.
[23:49] <wizardslovak_> ooo
[23:49] <wizardslovak_> and i couldnt figure out how to do that
[23:49] <jmarsden> But earlier you said you didn't want access from the outside... are you changing your mind?
[23:49] <wizardslovak_> nah not now
[23:49] <wizardslovak_> i am curious
[23:49] <jmarsden> One step at a time is easier... get it working on the LAN first.
[23:50] <wizardslovak_> exactly
[23:50] <wizardslovak_> first install , and get use to it
[23:51] <wizardslovak_> so i figure out you work with ubuntu server
[23:51] <wizardslovak_> how long did it take for you to learn it
[23:51] <jmarsden> Well, I've worked with Linux since late 1992... :)
[23:52] <wizardslovak_> i was trying to find some linux server course but no luck
[23:52] <wizardslovak_> so i've decided to learn by myself
[23:53] <jmarsden> They do exist... do you run Ubuntu on your desktop/laptop?  That can be a good way to learn Linux in general...
[23:53] <wizardslovak_> i used to run suse linux for year+ , and then switched for  kubuntu
[23:53] <wizardslovak_> i have dual boot , windows for games and kubuntu as main OS
[23:54] <jmarsden> OK.  One place offering Ubuntu Server training stuff is http://beginlinux.com/server_training but I have no idea how good or bad it is...
[23:55] <jmarsden> Ubuntu Server is really just a server-oriented set of Ubuntu packages, and a kernel configured for server type workloads.  If you are comfortable with KUbuntu and at a shell prompt, you really don't have much new to learn for Ubuntu Server at all.
[23:56] <wizardslovak_> well i am getting to know shell yet
[23:56] <dug_> thanks jmarsden
[23:56] <wizardslovak_> i love apt-get better then yast in suse
[23:56] <jmarsden> dug_: No problem.
[23:58] <jmarsden> wizardslovak_: Sounds good.  When I started there was no X on Linux, so I *had* to learn the shell :)
[23:58] <wizardslovak_> i was fascinated by shell loong time ago