[01:30] is it possible to create a live ubuntu server USB drive, like you can with the desktop edition (with persistence)? I tried with unetbootin and it only allowed me to install or check media [01:38] Odd0002: it is my assumption that if you have a second usb drive or have partitioned your drive to leave some free space after the OS, you could easily mount it and have some persistence.. [01:40] (it may not be the magical experience that it is on the desktop live image with persistance, but you ought to be able to store data on it persistently.) [01:41] but you can't actually start up the server edition [01:41] only the installer or an ash shell [01:41] from busybox [01:42] oh :/ [01:43] that's why I'm asking [02:06] CRAP! [02:06] i just ran a bunch of commands I shouldn't have ran - had them copied and pasted [02:06] is there a way to undo that [02:06] depends on the commands, but in general, no. [02:06] i had some rewritecond pasted in... [02:07] hmm can i edit /etc/modsecurity/optional_rules/$f /etc/modsecurity/activated_rules/$f [02:08] with the literal name '$f' in those directories? or all files in those directories? or some files in those directories? [02:08] thats the folder that went through [02:08] https://gist.github.com/anonymous/dcf9ecd7ef3ae2f53264 [02:09] take a look, that's what i ran [02:09] no thats the error that showed up, sorry [02:10] https://gist.github.com/anonymous/240f0ef7e18a563f8e1f - these are the commands that ran [02:10] did any of those actually -do- anything when run? [02:10] looks like a bunch of errors [02:11] i was only worried about the one that said 'done' [02:11] probably the only lines that didn't error were the blank line and the # END line :) [02:11] lol alright thanks [02:11] sorry its been a long day [02:11] i would figure i would check to see if i didnt mess anything up [02:11] always a good idea [02:12] if you want to be sure, tail /var/log/auth.log - you used sudo, so if any of that was actually executed, sudo would have logged the commands [02:12] I've made that similar mistake, pasting a giant pile of unrelated things, and _hoping_ that none of the starts of the lines were anything in the PATH... :) [02:12] shauno: yay good idea :) [02:12] it doesn't look like it should have, but it's kinda comforting seeing for sure [02:12] i didnt use sudo [02:13] but i will tail definitely [02:13] thanks alot [02:13] the actual command inside the loop uses "sudo ln -s ..." [02:13] shit yes you're right [02:14] i dont think it ran anything to be honest [02:14] just some wordpress stuff i was doing [02:14] wait crap it may have.. [02:14] /uploads ; USER=root ; COMMAND=/usr/bin/nano /etc/modsecurity/optional_rules/ [02:19] no [02:19] petey, it has to have been a valid command on one line [02:19] even if that had run, all you would have done is set a couple of variables [02:19] i see [02:20] assuming "/uploads" is not a valid executable on your system [02:20] nope [02:20] its just a folder [02:20] wordpress install [02:24] petey: woot. looks like you got lucky tonight and nothing happened :) [02:27] lol yay sarnould [02:27] thanks === security is now known as megha === udienz_ is now known as udienz [04:02] I have a zfs pool running on samba, but on my windows box I can see the root of the share, when I click on it I get a network resource not found error [05:38] hello! [05:38] so my server can't be accessed by the outside world anymore. can anyone point me in the right direction? [05:39] I do not have a FWDN [05:39] FQDN [05:40] but I do have gin and tonic, which makes it better [05:40] oh and crackers [05:50] This must be a common question I take it.. [06:19] Iapetus: do you have a public IP address on the server? [06:20] no [06:20] yes [06:20] and no [06:21] how is your network connection setup? [06:22] It's a cable modem connected to two computers via a router [06:23] so do you have the router configured to port forward to your server? [06:24] yup [06:24] What is the public IP? [06:26] are you referring to http://www.whatismyip.com/ or how I locally connect to it? [06:26] the actual public IP :) [06:26] so probably what shows up on whatismyip.com [06:27] it probably won't give you shit but: 71.10.98.41 [06:27] hopefully you are using RFC1918 space behind the router. [06:27] crap [06:28] ? [06:29] I have an ethical dilemma... [06:29] I feel like I should just get passout drunk and not care about anything [06:30] life sucks anyway [06:30] no search away on it if you like, you won't find anything [06:31] o7 [06:33] go on then [06:33] have at 'er [06:34] she'll like it [06:34] Iapetus: did you see my private messages to you? === smb` is now known as smb [08:41] Hey there. How do I reserve memory/cpu for Ubuntu? I'm aware of freeze on overload. Remoted didecated server on 11.10. [10:08] I need to have php msqli extension but when I try to install php5-mysql it pulls mysql-common - which I don't need or want [10:12] hi guys.. Ive got exim and cyrus imap on my server. Is there any way that I can check the incoming emails of a user? [10:14] Bongone: check them for what? [10:15] greppy: I want to see if there are incoming emails [10:15] check the log files [10:21] greppy: I want to check how many emails are there. Because the users when they try to pull emails dont receive any [10:28] check the mailq [10:28] I don't know if exim has the mailq command, but you can also look in /var/log/mail.log and see if mail is being delivered. [10:32] What process creates (and doesn't delete) files in /var/tmp/guest.*/ on each boot? It's related to libguest but I've been unable to discover what is creating the directories and using the space === acidflash__ is now known as acidflash [11:02] test [11:27] Hello! Im trying to change the PS1-variable to display current shell+ current directory. PS1='$(0) $(pwd)' doesnt seem to work with printing current shell. ideas? [12:12] Hi there. Any quick way to disable apparmor to allow this? http://pastebin.com/VCmVVivf [12:13] I just want to test VirtFS [12:14] guys i am here https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-ubuntu-12-10-x64 , in the part of https://secure.instantssl.com/products/SSLIdASignup1a and in the select box Select the server software used to generate the CSR: ? [12:14] what i should choose? [12:22] hmm, caraconan didn't wait too long... [13:39] I'm wanting to use mod_sftp in proftpd. however, the server I am using is on 10.04. Aside from upgrading to the latest and greatest, is there anything else I can do to use this mod? [13:40] I tried snatching the .deb from debian sid for proftpd-basic, but it requires libraries of a higher version than what is available in ubunto 10.04 === security is now known as megha === wedgwood_away is now known as wedgwood [14:07] strocknar_: what does that do that sftp in sshd can't? [14:08] easy chroot [14:09] ok [14:09] rssh should do that, though [14:10] right now I use sshd's sftp server [14:10] but am wanting something a bit easier to manage [14:10] tried using rssh? [14:10] nope. but I will now :D [14:10] won't work if the clients need shell access, though [14:11] is the website for that really 'pizzashack.org'!? [14:13] apparently ;) [14:13] "home of pizzacode" :D [14:14] rssh should be available from the repos, though [14:14] RoyK: I may fall back to taht if I can't get proftpd to compile from source [14:14] thanks for the input [14:14] looks like a good tool to have in the belt [17:01] Is it safe to mount and use a RAID array that is recovering? [17:02] I did last night and suddenly one of the drives was found to be faulty and was removed. [17:16] hi guyes [17:16] will I have difficulties if I use `usermod -l ubuntu somethingelse` as ubuntu on a single user system? === LargePrime is now known as Guest37249 === LargePrime_ is now known as LargePrime [17:56] cd [18:07] what's the default "PermitRootLogin" setting for openssh-server [18:07] ? [18:07] no [18:08] that's what i thought [18:08] but i couldnt find that in the package's files :P: [18:08] hence my asking :) [18:08] thanks [18:08] np [18:08] hello [18:09] noob here with an issue that may or may not be of interest to https://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/ [18:09] not sure how to properly search or verify or file if it is needed [18:09] anybody want to guide me through the process or to a resource that can instruct me how to do so? [18:10] If I have a asterisk server having centos or ubuntu or so and hardware core2duo and I make the harddisk image by ddrescue or clonezilla or somehting. and past that image to a P4 Ht technology computer for example (different hardware). will the paste work? will I have any driver issues or something else? (please inform for assuming console based soervers and also for GUI servers)? [18:11] I'm somewhat sure that my nrpe issue is isolated to ubuntu server 12.04 and/or 12.10 [18:13] it seems that its too dificult to have a contigency plan. (what if the server crashes or get burned. we need prompt premade backup) [18:37] kermit: why use nrpe when ssh checks are so much easier to manage? [18:38] RoyK: i've never used nagios [18:39] I have, for 10 years or so [19:00] Hi all. I'm setting up my first ubuntu server with 4 X 3TB drives. I'm reading the documentation but something has me stumped.. (https://help.ubuntu.com/12.04/serverguide/advanced-installation.html) [19:00] It says I need to create a swap area on each disk. Surely this cannot be accurate? From what I've learned having a large swap area is not generally a good idea. [19:01] But from the documentation, it appears to be the case. Would someone help clear things up for me before I proceed and potentially will have to re-do everything at a later date? :) [19:02] Froberg: I don't think swap space is mandatory [19:02] Froberg: how are you configuring the storage in your system? Software RAID, hardware RAID, or none of the above? [19:02] Froberg: nearly everyone likes having swap though, and spreading it across drives makes sense. [19:02] I'm using Software RAID - was planning on RAID 5. [19:02] Froberg: but it makes sense to me to have some place to shove data that is rarely used and doesn't need to live in RAM all the time, if the memory could be more profitably used for something else [19:03] The guideline says twice the swap area of available memory. Would that mean that in my case, with 2GB of memory, that I should create a 1024MB SWAP area on each drive, then? [19:03] Froberg: if you have swap partitions that are not RAIDed, and the drive with the swap goes down, you may (will?) need to reboot the box. [19:03] Or should I do a 4096 on each drive instead? [19:05] Froberg: I'd want 2-4 gigabytes of swap space after raid has been taken into account.. [19:05] Aye, I have allocated 4096 to the first drive already. [19:06] Froberg: I second sarnold's recommendation. [19:06] But I got confused about the documentation and the statement that I had to repeat steps for all drives. [19:06] So you're saying I should keep the 4GB Swap on Drive #1 and repeat for the remaining three?` [19:07] I'm no good at the raid math :/ would that give you 8 gigs of swap or 12 gigs of swap once it is raided together? [19:07] 8gb, I believe. That's a lot of swap for that much RAM. [19:09] Well [19:09] 4 x 3TB = 9TB usable space [19:10] When Raid 5 is used, I mean. [19:10] so by my math I'd end up at 12GB of Sweap [19:10] *swap, sorry [19:11] yeah, that's a lot of swap.. [19:11] which might be nice if you ever move the array toa nother machine with 32 gigs ram :) [19:12] but with two gigs of ram, either way that's a lot of swap. [19:14] http://askubuntu.com/questions/44217/frustrated-with-ubuntu-and-softwareraid-5 been reading that now [19:14] I must admit that not a whole lot of what he's saying makes that much sense to me [19:15] how can i get an ubuntu server to use htaccess [19:16] Froberg: will you be installing your OS to this array or is this solely for your data? [19:16] I will be installing the OS to it as well. [19:16] I was hoping to avoid having to rebuild my server if the OS Drive failed. [19:18] makes sense.. then heed the warning about /boot being mirrored, not raid5.. [19:20] hm [19:20] So we're talking multiple raid implementations? =) [19:20] could be :/ [19:21] .. and stepping firmly outside of my experience [19:21] To be fair.. it seems needlessly complicated. [19:21] I don't this usage scenario is entirely unique [19:21] :S [19:22] I think folks with raid setups tend to do something like simple mirror or 0+1 (or 1+0..) for OS, and maybe raid 5 or raid 6 for their data drives.. [19:24] hm [19:25] with four available drives using two of them on mirroring would defeat the purpose [19:26] indeed [19:28] unless multiple raid levels can be in effect on the same drive [19:28] but.. I lack experience on the subject [19:31] Froberg: yeah, same here. I -expect- it is possible but might complicate repairs well beyond reasonable. [19:32] without Ubuntu Server being backed up though.. I'm really going to be up "shit creek" without a paddle if anything goes wrong with the system drive. [19:33] Just catching up, here. Sorry, I thought you said 3 drives. If you have 4, then yes, it would be 12GB swap, which is crazy…but that's IF you don't put the SWAP on a RAID as well. [19:33] According to the guide the swap is being set up in a raid [19:33] https://help.ubuntu.com/12.04/serverguide/advanced-installation.html [19:34] Next, select the Size of the partition. This partition will be the swap partition, and a general rule for swap size is twice that of RAM. Enter the partition size, then choose Primary, then Beginning. Select the "Use as:" line at the top. By default this is "Ext4 journaling file system", change that to "physical volume for RAID" then "Done setting up partition". [19:34] I take that to mean that the swap area will indeed be part of the raid array [19:34] Ultimately, a RAID-1 is sufficient for SWAP in most cases. [19:35] well sure.. but I want Raid5 for the extra space it grants over Raid1 [19:35] you suggesting I raid1 system on all drives [19:36] then when the system is installed, I Raid5 the remaining free space? === LargePrime is now known as Guest45607 [19:39] Froberg: is there no chance of getting two new drives for the OS that you could mirror? [19:40] All drives are entirely new. [19:40] I just got them today. [19:40] They're being installed in a HP MediaSmart EX490 server where I've upgraded the CPU. [19:40] It has four drive bays (hot swap) and nothing else. [19:40] If it were a matter of adding more disks that would be fine, if it were an option but it's not. [19:40] aww, nuts. [19:41] I'd seriously look into 0+1 or 1+0 or whichever works better. :) [19:41] That would leave me with 6 TB of space [19:41] whereas Raid 5 only removes the space from one drive. [19:41] Yielding, unless my math is off, 9TB of usable storage. [19:41] true enough, but unless you want to boot off a USB stick.... [19:41] actually, how do you feel about booting off USB? :) [19:41] * sarnold runs [19:42] not terribly comfortable, to be honest. [19:42] The server is headless, so I've had to buy a debug cable and attach it to the motherboard for a VGA connection [19:42] The cable will not fit inside the case, as such, it'll have to go. [19:43] oof [19:43] I would like to eliminate the chances of something going wrong that will require me to dismantle the entire server and re-attach it. [19:43] :D [19:43] Booting from a USB seems like a risky thing to do, in this scenario. [19:43] yeah, agreed there. but it does let you use your huge data drives for data with the raid5 without overly complicating repair.. [19:44] well [19:44] if I can raid 1 a small system partition on all drives [19:44] and then raid 5 the remainder when the system is booted [19:44] I don't see any reason why that shouldn't be rock-solid. [19:44] barring dual drive failure [19:45] hrm, that sounds worth trying [19:47] righto [19:47] markthomas - what size to I partition these mythical raid1 partions in, then? :P [19:47] Just checked my web server logs, i have like over 10 different chinese ips that connected to port 22. What should I do? [19:48] run! [19:48] Froberg: what are you doing with this server? [19:48] Samba File Share and Plex Media Server [19:48] rtorrent as well [19:48] stressedfred: fail2ban or denyhosts [19:49] Froberg: and how much RAM did you say you have? [19:49] markthomas: I already have fail2ban installed. [19:49] markthomas 2GB [19:49] stressedfred: then if it's doing its job, those IPs should already be in /etc/hosts.deny [19:50] stressedfred: them connecting isn't a big deal. [19:50] Looking for a second hand 4GB DDR2 module somewhere.. prices went up after ddr3 as usual ;)( [19:50] stressedfred: make sure you do not allow password authentication over ssh, consider using hosts.allow or iptables to limit connection attempts to 'known good' IP ranges that you and your users use (not always feasible..) -- consider using ufw limit ssh/tcp to rate-limit incoming connection attempts from specific ips [19:50] Froberg: No more than 4GB, IMO. If you start paging, you need more RAM. 2GB is a little lite. [19:50] stressedfred: good practice to turn off password auth, but not always feasible. [19:50] Fuck. [19:51] !language | stressedfred [19:51] stressedfred: Please watch your language and topic to help keep this channel family-friendly, polite, and professional. [19:51] Got IPs from North Korea, Ukraine, and Russia too [19:51] Jesus christ. [19:51] markthomas so do I make a 1GB Swap on each drive, or a 4GB swap on each drive? :) [19:52] raid 1 over four drives should still only yield 1 GB of swap, so I think 4? [19:53] Froberg: correct. [19:55] Froberg: overkill, in this case, but with the drive configuration you have… Alternately, if you really want to RAID-5 your swap, do 1.5GB Each. I can't guarantee how well the latter will work. [19:55] I'm indifferent either way. [19:55] As long as the primary storage space is in Raid5 to optimize the available space. [19:55] I will be making backup to external drives so 100% reliability is not absolutely critical [19:55] Still, being able to survive one drive failure would be nice indeed. [19:57] Froberg: if the swap is mirrored, you should be able to stay online if a drive fails. [19:57] what do you know.. random google searching turned this up: http://www.mediasmartserver.net/2011/06/07/guide-how-to-set-up-ubuntu-and-raid5-on-the-mediasmart-server/ [19:58] I love the optimism: "This exercise also likely dedicates too much space for swap, but in the grand scheme of things this should not make much of a difference." [19:59] he's not terribly good at documenting his steps, either :p [20:01] he is also, apparently, letting it configure everything automatically [20:01] which isn't exactly what the official documentation recommends [20:02] I guess one could try his method and see if it even works [20:02] it's not like I have fear of data loss at this point ;) [20:03] Just tried to see what it looked like.. swap at 2.1 GB, 3.0TB Ext4 and 1.0 MB biosgrub [20:03] never seen biosgrub before [20:25] Grub2 has a couple different ways to boot, now: UEFI and BIOS. I guess we know which is being used here. [20:25] aye [20:26] Raid 5 array with 4 drive is set up [20:26] Ubuntu server is installing.. [20:26] swap area landed at six gigs [20:26] no hot spare ;) [20:27] so far my first Ubuntu Server experience has not been as terrifying as I'd suspected. [20:28] largely due to you markthomas and sarnold - so cheers guys. :) [20:35] :) [20:35] accidentally only chose samba package to install [20:36] now I have to add openssh manually [20:36] oh well, learning experiences! [20:36] :D [20:36] I'm setting up a RAID 1 in 2 1TB drives and leaving a third 1TB drive as Hot Spare. Am I being silly for not setting up RAID 5 on all 3 instead? [20:36] well I just did ten minutes of reading on the subject [20:36] so clearly I'm already an expert [20:36] :P [20:36] But the idea behind hot swap is nice, but it's also dangerous imo [20:37] hahaha, same here man, read the IBM documentation on RAIDs. Fascinating topic [20:37] if a degradation of your array is detected, the hot spare will kick in and the array will rebuild [20:37] WITHOUT user interaction [20:37] this stresses the reamining drives and can potentially cause a cascading failure on the other drives [20:37] leaving your with a dead array [20:37] meanwhile if you don't have a hot spare, you'll at least have a shot at backup before rebuilding [20:38] that's why I chose against a hot spare, at least. [20:39] I think I'm gonna try all possible configurations and run tests [20:39] but yah I'll proly stay with RAID 5 on all 3 drives [20:39] what the hell [20:39] now it asks me where to put the grub boot loader [20:40] am I expected to remember all the drive names? :D [20:40] how many virtual drives did you create? [20:40] 4 ext4 and 4 swap [20:40] resulting in one ext4 raid 5 and 1 swap raid5 [20:41] Put the grub bootloader on the first drive (/dev/sda, usually) [20:41] here goes nothing [20:41] allright, it seems like very soon I'll run though the exact same issues than you. Starting my first UbuntuServer installation on an actual server, with hardware RAID [20:41] a list would be nice to have :P [20:42] izanagisan I'm happy to make all your mistakes for you! :)= [20:42] izanagisan: hardware RAID will be somewhat different. The drive configuration will be done before install. [20:42] was done already. A first test with 1 virtual drive, 2 phisical drives RAID 1 [20:42] ... install finished.. rebooting [20:43] hold on to your socks [20:43] so, that'll make the UbuntuServer install process easier, right?. the RAID config will be transparent? [20:43] I'll only see one drive? [20:43] Froberg: the scenario they're describing is unlikely, unless you keep your drives well outside their expected lifespan. But it's not unheard of. Bottom line: back up your stuff. [20:43] izanagisan: you should. Hardware RAID is typically done by the BIOS (some SATA Fakeraid of old would still show multiple drives. Had to do some tweaking then. It's been awhile). [20:44] well markthomas in a scenario like mine.. I've bought all four drives at the same time. Same manufacturer and type. (WD Red 3TB). [20:44] It's not entirely unlikely that they will fail within a short period of each other. [20:44] But hey, a five year warranty is hard to beat. [20:44] Right. If you're concerned, I'd stress them and burn them in BEFORE going into prod. [20:45] it's not like my NAS and media server is a critical application. [20:45] As long as I continue to keep religious backups, I should be fine. [20:45] What are you backing up with? [20:45] markthomas the system is booted and is just slowing a blinking cursor, should I be worried or leave it alone? [20:46] Froberg: leave it for a moment and see what happens. [20:46] backing up to external drives which are then stored at a secondary location [20:47] define "moment" :p [20:47] If it's still not working, it might be time to boot to a rescue CD and try to mount the volume and look at the logs. [20:48] Did you see any output from the OS at all prior to the black screen? [20:48] No [20:49] Okay. Use the rescue boot. [20:50] assuming this is on the boootable usb [20:51] w00t [20:51] second boot worked [20:51] I have terminal! [20:53] system load 1.26, 94 processes, 2% memory usage [20:53] fairly decent! [20:53] dum question but have to ask: when one sets up RAID from the Ubuntu installation, it means there will be a software RAID, controlled by the OS, using the CPU? [20:53] Right. [20:53] and that's prone to failure in case of electric failure? [20:53] I certainly hope not.. [20:54] izanagisan: unless your hardware raid controller has battery backup, there's no difference in risk :) [20:54] Froberg: try to mount the RAID array you created. [20:54] it does, I'm installing on an IBM x3650 M3 with a 5015 RAID card with battery cache [20:54] .. isn't it mounted when the system can boot from it? [20:55] If you booted from the rescue CD, then no. [20:55] And in any case: not exactly. [20:55] I didn't [20:55] It booted all on it's own! [20:55] After being rebooted [20:55] ^,^ [20:55] Cool! Then…never mind. [20:55] Froberg: Error: ",^" is not a valid command. [20:55] Do a df -h just to verify things look right. [20:55] uvirtbot it's a smiley. [20:55] Froberg: Error: "it's" is not a valid command. [20:55] stupid bot [20:56] it says dev/md0 8.2 T, 1.2G used, 7.8T Available [20:56] There you go. [20:57] gravy [20:57] Incidentally, check out LVM sometime. With that much space to play with, it may give you some flexibility in space allocation. [20:58] LVM? [20:58] But in any event, it's time to start doing stuff. Oh, and that system load will drop to zero once the RAID sync is done. [20:58] Logical Volume Manager. [20:58] cool [20:58] I've never done manual stuff on ubuntu before [20:58] only done some sharing from ubuntu desktop [20:59] assuming I should apt-get updates or something first :P [20:59] and install the ssh server [20:59] To patch, apt-get update && apt-get upgrade [21:00] Also, I often use aptitude in place of apt-get. Syntax is very similar (aptitude incorporates some functions of apt-cache as well), but it does a slightly better job with dependencies. [21:00] Just put it on your things-to-look-into list right under LVM. :) [21:00] I shall pretend to know what that means and return to google! [21:00] ;-) [21:00] In the meantime, yes, do the patching and reboot. [21:00] just installed ssh server [21:00] Good. [21:01] the real fun will be adding a static ip to the damn thing [21:01] Easy peasy. [21:01] You know how to use vi? [21:01] I have no idea about anything at all [21:01] or nano, or pico, or…okay. [21:01] I was even considering adding a GUI to the server to help me out a bit. :P [21:01] nano is a file editor right? [21:01] I seem to remember that [21:02] yes. Put 'vi' on that list. Then, type sudo nano /etc/network/interfaces [21:03] You should see: [21:03] auto eth0 [21:03] iface inet eth0 dhcp [21:03] aye [21:03] I see it [21:04] (now working in putty ^^) [21:05] Cool. One sec. [21:06] http://pastebin.ubuntu.com/5719908/ [21:06] Make it look something like that. [21:06] whitespace shouldn't matter. dns-search isn't especially important, unless you have one. [21:06] is dns-search neces.. [21:07] haha :) [21:07] seems a lot like cisco router configuration when you look at it [21:07] For example, if you use comcast for an ISP, you could set it to comcast.com, etc. Or, nothing at all. [21:08] ahg alright :) [21:08] installation went as swiftly as in a regular PC. Well, now to set a static IP and run lots of tests. I'm sort of excited to finally be running UbuntuServer on a real server and not my laptop, hehehh [21:08] Once you're done, use ctrl-x to save, run /etc/init.d/networking restart (ignore the warnings). [21:08] izanagisan: nice. [21:10] seems slightly weird that you have to specify network and broadcast addresses of the subnet though [21:10] shouldn't ubuntu be able to figure that out using the subnet mask? [21:16] You don't. But I included it out of habbit. [21:16] Ah okay :) [21:16] If you ever mistype your netmask, you may be glad you did that. [21:16] I saved the file and chose restart [21:16] shouldn't that have booted me from the terminal? [21:16] Did you change the IP? [21:16] aye [21:17] Then verify the new ip with ifconfig [21:17] still running the old one [21:17] as I suspected [21:17] Any warning messages when you restarted (other than the "use upstart" messages)? [21:19] hm [21:19] don't think it actually restarted [21:20] froberg@slave:~$ /etc/init.d/networking restart [21:20] Rather than invoking init scripts through /etc/init.d, use the service(8) [21:20] utility, e.g. service networking restart [21:20] Which you can do. Shouldn't matter in this case, but go ahead. [21:21] still no luck [21:22] at least ifconfig shows no change [21:22] No other messages at all? [21:23] Can you do an ifconfig -a and then a cat /etc/network/interfaces and post those to pastebin.ubuntu.com? [21:23] sure.. sec [21:25] I don't suppose I should delete the auto eth0 line?= [21:25] to make it static I mean [21:26] No. If you leave that line out, the interface won't be configured. [21:26] It was the "dhcp" that you changed to "static" that made the difference. [21:26] http://pastebin.ubuntu.com/5719960/ < [21:26] ooops [21:26] that must've been it [21:26] think I missed that bit [21:27] yup [21:27] that'd be it [21:27] That'll do it. [21:29] got this message [21:29] * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces [21:29] then process actually froze and it's not ever ending : p [21:29] doesn't happen on my laptop but just happened on the server [21:30] You can generally ignore that message for this, but the fact that it froze... [21:30] Try to kill it and run it again. [21:30] ah lol [21:30] no, I'm being an idiot [21:30] the ip changed [21:30] reconnect [21:30] I have the server RIGHT NEXT to me, but I was SSH-ing for that command from a nearby PC [21:31] teehee [21:31] I was correct about something :D [21:31] indeed, the server got the static IP I gave it [21:31] same for me [21:31] happy day! :) [21:32] Oh. Nice. Yeah, that'll do it. [21:32] Sorry, multitasking during that last bit. Missed the obvious. [21:32] now patching and updating [21:33] this is excellent practice for the ubuntu course I have to take. [21:41] markthomas would you recommend that I install something like webmin? [21:43] Froberg: not for what you described. [21:43] If you want to manage Samba, try swat. [21:46] Alright :) [21:46] In my previous experiences with Samba I had many issues [21:46] hopefully now that everything is on a linux filesystem it'll be much improved [21:48] well a short glance at it seems much improved from file edits and mucking about with the gui - cheers :) [21:50] (i.e. the gnome desktop gui)= [22:01] is there an upgrade method (not do-release-upgrade, obviously) that won't suffer the possibility of replacing systemwide settings? [22:02] this is juuust great.. :P Now the server is back in "I REFUSE TO BOOT" mode. [22:02] rebooted to finish installing updates. [22:03] back in the lovely blinking terminal window [22:03] Something odd there. If you can get it booted, we need to check dmesg [22:04] wxl: do-release-upgrade is the correct upgrade method [22:04] doesn't look like I'm in luck [22:04] Time to boot from the CD [22:04] wxl: I'm a bit scared of what you're trying to do :) [22:04] I thought it could be down to boot device priority [22:04] usb had to be set to #1 to boot the installer [22:04] changed to hdd0 and now nothing [22:04] will try usb, sec. [22:05] (switched to hdd only after booting failed btw) [22:05] sarnold: at work i'm sort of inheriting some servers and truthfully, we've had a really hacky past in the it department. i'm not sure what people have changed systemwide. nothing's documented. i don't want there to be some file overwritten in the upgrade that results in some important part of our business going down due to someone's hack. just covering my rear. :) [22:05] wxl: you could try something gross like mount overlayfs or aufs over your /etc and throw away writes when you're done. But you'd have to be in a pretty strange situation for that to make sense. (I shouldn't even suggest it, just .. I can't help being helpful) [22:06] wxl: yikes indeed :) [22:06] markthomas booting from usb got me the "select os/memtest" menu. Before I could chose anything it booted in to OS. [22:07] wxl: if it were me, I'd try to clean one machine at a time; bring up a new system, fiddle configs to make it work, replace old system. rebuild it clean, take over another system's functionality... [22:07] There should be a "recover' option. [22:08] it moves past that on its own immediately, if there is one. [22:08] I think I know what might be at fault. [22:08] The MBR, I only but it on sba [22:08] ømaybe sba is actually the damn usb stick [22:08] =) [22:13] markthomas can I just re-run the grub-install from terminal or something similar to that? [22:14] Heh. sba or sda? [22:14] thanks for the help maxb sarnold. i think i've at least put my mind at ease about what i need to do. thanks for the support! [22:14] Do you have desktop boot media handy? [22:14] ./dev/sda sorry [22:14] wxl: good luck :) [22:14] yeah I booted from usb just fine [22:15] it just skipped the ubuntu menu [22:15] guess I can unplug the hard-drives and see if that makes it behave [22:15] Yeah. That's SCSI/SATA device #1. So, it booted to a live "CD"? [22:15] //dev/sda *can* end up being the USB stick sometimes [22:15] You don't want to do that. You need to boot to a live CD. [22:15] I am booting on the installation USB [22:15] apparently [22:15] it won't boot without it [22:16] And the server booted all the way up? [22:16] maxb I think you're right, it was listed as HDD1 in BIOS [22:16] markthomas yes it's booted now, looking at the terminal login pront [22:16] prompt [22:16] If it booted all the way up, the USB shouldn't be sda. But you can do a "mount" or "df" to confirm [22:17] blkid is also a useful command for establishing what drives are what [22:17] Even if they aren't mounted [22:17] blkid did nothing [22:19] Filesystem 1K-blocks Used Available Use% Mounted on [22:19] udev 1011372 4 1011368 1% /dev [22:19] tmpfs 408312 480 407832 1% /run [22:19] none 5120 0 5120 0% /run/lock [22:19] none 1020772 0 1020772 0% /run/shm [22:19] none 102400 0 102400 0% /run/user [22:19] ./dev/md0 8714928900 1293988 8274427924 1% / [22:20] that's what df returns [22:20] Please 'cat /proc/mdstat' for more clarity on the md volume [22:21] pastebinning, sec. [22:21] http://pastebin.ubuntu.com/5720080/ [22:23] Hm, so you have 4 hard disks, sda,b,c and e? What's sdd? Or isn't there one? [22:23] Only the four hard-drives [22:24] maybe it's the usb thumb drive [22:24] can I look up the partitioning table somehow? [22:24] fdisk -l /dev/sda [22:24] cannot open [22:25] Are you root? [22:26] Yeah, probably need sudo. [22:26] am now :p [22:26] sda is 3 TB [22:26] WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. [22:27] 'parted /dev/sda print' [22:27] sdd is the thumb drive [22:27] Could you try blkid again as root? [22:27] pastebinning [22:28] keep forgetting to sudo :p [22:28] http://pastebin.ubuntu.com/5720101/ [22:28] for the blkid [22:28] Ah, that's rather more helpful [22:30] I haven't seen anything thus far that explains why it won't load without the thumb drive as primary boot device [22:30] Froberg: when I'm going to do a bunch of commands that require root, I tend to use sudo -s to start a shell :) it saves some typing.. [22:31] and the wonderful tips keep on flowin' [22:31] this might be my new favorite channel! [22:31] :D [22:32] Let's see the partition tables? It'll be clearer then where the bootloader's actually supposed to be [22:32] ok sec :) [22:34] Also, since this machine is using GPT, is it doing UEFI or BIOS booting? [22:34] http://pastebin.ubuntu.com/5720114/ [22:35] .. honestly I've no clue. [22:35] or rather, it boots from what I tell it to in BIOS [22:35] only it didn't want to boot from the hard-drive for some reason [22:35] but when the usb gets to boot it seems to skip something and go ahead and boot anyway [22:35] it's really weird [22:35] 23:26 < Froberg> WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. [22:36] 23:27 < maxb> 'parted /dev/sda print' [22:36] http://pastebin.ubuntu.com/5720119/ [22:37] Do you know what that partition 1 is supposed to be for? [22:37] no, during partitioning it was just left empty. [22:38] hmm no hang on [22:38] actually [22:38] there was something [22:39] [22:03:24] Just tried to see what it looked like.. swap at 2.1 GB, 3.0TB Ext4 and 1.0 MB biosgrub [22:39] [22:03:31] never seen biosgrub before [22:39] that was the automatic partitioning thing [22:40] could that be it maxb ? [22:41] hrm. I've got a vague recollection of efi systems needing some sort of smallish FAT filesystem at the start of the drives. [22:42] does uefi? what happens if that's missing? [22:42] Maybe I should just start over after work tomorrow. [22:42] Clearly I must've FUBAR'ed something [22:43] * Froberg pops open a beer to console his miserable self [22:44] It makes some sense that there'd be a 'biosgrub' partition [22:44] Froberg: didn't you say there was a biosgrub partition? [22:44] yup [22:44] and it's still thbere [22:44] *there [22:44] Sorry, stepped away, getting caught up. [22:44] I'm a bit surprised by some of those offsets that were printed by parted, though, and I'm worried that the partitions might not be properly sector aligned [22:45] they were created by using the automatic partitioning from entirely virgin drives, so that seems strange [22:45] maxb: how would that happen? It's not like Froberg did anything particularly fancy during partition creation. [22:45] my sentiments exactly [22:47] Froberg, just for kicks, try running sudo update-grub (I think that's what it's called) followed by sudo grub-install /dev/sda [22:47] alright :) [22:47] Hm, I think it's just parted getting its maths wrong [22:47] wth [22:48] If I print my own partition table using units of sectors, and parted's default, I get 2048s == 1049kB [22:48] root@slave:~# sudo update-grub [22:48] Generating grub.cfg ... [22:48] Found linux image: /boot/vmlinuz-3.5.0-17-generic [22:48] Found initrd image: /boot/initrd.img-3.5.0-17-generic [22:48] Found memtest86+ image: /boot/memtest86+.bin [22:48] done [22:48] errr... that looks wrong to me :D [22:48] like it's on the usb or something [22:48] Except 2048s doesn't equial 1049kB, I would say [22:49] Froberg: Why do you think that? Is there not a /boot/vmlinuz-3.5.0-17-generic in your installed system? [22:49] root@slave:~# sudo grub-install /dev/sda [22:49] ./usr/sbin/grub-bios-setup: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. [22:49] ./usr/sbin/grub-bios-setup: error: embedding is not possible, but this is required for RAID and LVM install. [22:49] Ah [22:50] So I guess the problem is that the partition 1 isn't marked appropriately so that grub understands it owns it [22:50] it certainly seems odd [22:51] You might try 'parted /dev/sda set 1 boot on' and then retry the grub installation [22:51] alright :) [22:51] Crossing fingers. [22:51] I'm up for anything [22:52] http://pastebin.ubuntu.com/5720161/ [22:52] don't think it did what it was supposed to [22:53] Ah, it looks like it might be 'set 1 bios_grub on' actually [22:53] wilco [22:54] root@slave:~# parted /dev/sda set 1 boot_grub on [22:54] parted: invalid token: boot_grub [22:54] Flag to Invert? [22:54] oh [22:54] bios_grub, not boot_grub [22:54] my eyes are getting tired :D [22:54] yeah saw that now [22:55] should I just run the install directly, or get the update first? [22:55] root@slave:~# parted /dev/sda set 1 bios_grub on [22:55] Information: You may need to update /etc/fstab. [22:56] For the /etc/fstab thing, if that biosgrub partition is empty, we may want to migrate /boot onto that. [22:56] It would probably be sensible to do a 'parted /dev/sda set 1 boot off', since boot turned out to be the wrong flag [22:57] root@slave:~# grub-install /dev/sda [22:57] Installation finished. No error reported. [22:57] w00t [22:57] Whilst I've not worked with one before, I would have said that a biosgrub partition was not the same as a /boot partition [22:57] You'd want a /boot partition a lot bigger than 1MB [22:57] hm [22:58] boot partition was set to the entire ext4 sys [22:58] i.e. the 8-9TB's [22:58] Is it only 1M. Missed that. Yeah, forgot that for /boot. [22:58] http://www.mediasmartserver.net/2011/06/07/guide-how-to-set-up-ubuntu-and-raid5-on-the-mediasmart-server/ <<< followed that guide [22:58] Froberg: OK, so in the interests of redundant booting if sda should ever die, you'd want to ensure all of sd{a,b,c,e} have had the 'set 1 bios_grub on' applied [22:58] but forgot about the part about the boot loader [22:59] 1MB is fine for a biosgrub partition [22:59] maybe I should try (#18 in the list) and install the grub loader on md0 [22:59] /boot will live on the / partition and that's fine [22:59] I've never tried installing grub on /dev/md0 before. [23:00] so just rinse and repeat grub install [23:00] gotcha [23:00] sec [23:00] Hold off on the grub install - it won't do any harm, but we want to ensure you're set up for future grub updates to install to all four drives [23:00] For that, do 'dpkg-reconfigure grub-pc' [23:01] After you've gone through a couple of other questions first, you should have a screen to select which places grub should be installed to [23:02] oh too late [23:02] grub installed on 'em all now [23:02] Well, no harm done, just redundant work [23:02] ok sec [23:02] Right. [23:02] err [23:02] gives me a window [23:02] .. a.. pink.. window [23:03] I think it's supposed to be Ubuntu-purple :-) [23:03] oh [23:03] well [23:03] at any rate, it linux command line [23:03] it's currently empty [23:03] You can just press enter leaving it unchanged [23:03] For me, the device selection was the third such window [23:04] aye [23:04] what am I looking for? [23:05] the thumb drive is the only one with an asterix [23:05] Hopefully a list containing /dev/sda, b, c and e, of which you can then select them all [23:05] including md0 yes [23:05] Leave that unselected [23:05] and the thumb drive? [23:06] You probably don't want to install grub on that too :-) [23:06] ok [23:06] removed the asterix from it [23:06] done & done [23:07] all four installs finished, no errors [23:07] Oh, it might be worth coming back to this screen after you've finished getting everything working, and rebooted without the thumb drive, in case your hard disks have then decided to become a b c and d [23:08] alright, so removing the thumb drive, reboot, change boot device to random hdd, see if it works [23:08] yes? [23:08] indeed [23:09] holy sweet jumpin' jesus [23:09] it's aliiiiive! [23:09] :) [23:10] Froberg, maxb, markthomas, nice work :) [23:10] Indeed. Nice grub work, maxb [23:10] I did nothing! :) === hggdh_ is now known as hggdh [23:11] maxb if you ever decide to visit Denmark - I'm buyin' you a pint. [23:11] Hell, that goes for markthomas and sarnold too! :D [23:11] darn, was just in denmark in november :) [23:12] alright I ran that configure again [23:12] the drives are now a,b,c and d [23:12] do I re-run the configuration to be sure? :) [23:13] sarnold did you go anywhere nice? [23:13] lol [23:13] .. American? :) [23:13] markthomas what, don't drink beer? ;) [23:13] :) [23:15] markthomas since maxb is celebrating with hookers and beer, probably, should I re-run the grub config? [23:15] now the drive letters have changed? [23:15] You can. Won't hurt. [23:15] excellent [23:15] [23:15] Should be a,b,c,d now. [23:16] Probably doesn't matter at all—most internal stuff is done with labels and UUID these days. But it can't hurt. [23:16] rebooted again, just to tempt fate [23:16] and spit in the face of God [23:16] n'.. stuf [23:16] *stuff [23:16] Better now than when it's loaded with data. [23:16] Which version did you install? [23:16] my sentiments exactly [23:17] Precise or Quantal? [23:17] not the LTS one, because I'm an idiot [23:17] the 12.06 I think it was [23:17] latest one available at any rate [23:17] 12.10, if it's not 12.04 LTS. [23:17] Heh. Only for another couple weeks ;) [23:17] lovely [23:18] ok.. to-do list.. figure out why samba is giving me a hard time, install plex media server, make NFS shares.. [23:18] oh yeah [23:18] fun-times to be had in my immediate future [23:19] markthomas I apologize about offering you a pint [23:19] I should've offered you at least five [23:19] you're apparently from the UK after all. [23:20] ;-) [23:20] probably the only nation other than the fins and russians who can keep up with Danes when it comes to drinking. [23:21] Heh. Once upon a time, I had some German classmates. They didn't too badly in that area. [23:21] True, zeh germans do love their lager too. [23:21] Danes have an unfortunate worldwide record though [23:21] our youths drink more than the youths of any other nation [23:22] I blame Carlsberg. [23:22] Samba shouldn't be too tough unless you're trying some strict access controls. [23:22] wouldn't let me install that web management [23:22] swat [23:22] http://ubuntuserverguide.com/2012/10/how-to-install-and-configure-swat-samba-web-administration-tool-on-ubuntu-server-12-04.html << tried that [23:22] things wouldn't install [23:22] some were "replaced" [23:23] should probably try and find something for 12.10 [23:23] Froberg: I was in copenhagen, it was nice enough, but not much opportunity to get out into the country and see uncivilized life. hehe. [23:23] I live just outside of Copenhagen.. my by reckoning Copenhagen is as uncivilized as they come. [23:24] I actively avoid going there. [23:24] hahaha [23:25] *by my [23:25] Christ.. too tired. [23:25] Froberg: btw, the samba team is running away from swat, they don't care for it and recognize that web frontends to config files isn't their strong point.. you might not want to get too cozy with swat [23:25] Been up for 20 hours now. [23:25] oh, that's trouble. [23:25] Heh. I'm in Arizona, USA. There's about a six-week time during which it's habitable here. Outside of that…well, if they ever colonize Mercury, they'll be recruiting from my town. [23:26] and have to get up in like four hours [23:26] markthomas Hawking has given us 1000 years, it'll happen :P [23:26] sarnold so.. what else is there? :) [23:26] manual labour? ;) [23:27] also should I uninstall the swat package then? [23:27] and the xinetd [23:28] You can use it for now. Since it just writes the standard config, you could remove it once you're done. Or, spend a few hours studying config options one by one. Either way. [23:28] Froberg: the swat description says something about not working with "the default package-managed configuration" -- it might be a good idea to try dpkg-reconfigure samba and see what happens.. [23:28] You're not running a fileserver with financial data in an org of 5,000 employees. You're just serving media for personal use. [23:28] Froberg: .. though mark's right, if you use it once and remove it, that's not the worst thing in the world :) [23:29] well [23:29] I have fairly basic needs [23:29] It shouldn't be difficult, either way. [23:29] Four file shares ; Data / Music / Movies / TV [23:29] all will be mapped network drives [23:29] Security=user, file create mask wide open. [23:30] and all but data will be accessed by the plex media server [23:31] well I managed to make it work on ubuntu desktop === wedgwood is now known as wedgwood_away [23:31] server shouldn't be much different [23:31] ;) [23:31] (I know it is, but let me live a lie for a few hours!) [23:32] nah, server and desktop are fairly similar, it's mostly just which packages are installed that are different [23:33] oh [23:33] should do alright then [23:33] yup :) [23:34] just annoyed that I installed the useless packages now [23:34] apt-get purge is right there :) hehe [23:34] that seems very.. dangerous [23:34] or rather, sounds dangerous [23:35] it just removes the packages you specify and their configuration files, not too bad if you think through your actions first. :) [23:35] but 21 hours awake may not be the right time, hehe [23:35] You are correct Sir. [23:36] And with that, I will get my four hours of beauty sleep [23:36] not that it ever, ever works [23:36] good night and good luck :) [23:36] haha [23:36] after all, I have a long weekend of nothing but ubuntu ahead of me. [23:36] I figure I'll buy a few gallons of coca cola and eat nothing but beans all weekend. [23:36] * sarnold steps a little further away from .dk [23:36] quite [23:36] the gas will be epic [23:37] with any luck I'll kill all my coworkers with a single fart on Monday. [23:38] I appreciate all the help, everyone, truly. :) [23:38] << goes to bed =) [23:38] 'night :) [23:38] night! [23:50] night Froberg [23:50] so, if I have a file called postgresql-8.1.13.tar.bz2, how can I install it on UbuntuServer? [23:51] apt-get and point to it? [23:58] izanagisan: normally you'd just run 'apt-get install postgresq' and take whatever version is packaged; if you want to compile source by hand, you'll need to apt-get install build-essential and apt-get build-dep postgresql-9.1 (yes, wrong version number, but hopefully similar build dependencies) [23:59] yah, I unistalled 9.1 and want to install 8.1.13 for a test [23:59] with an old database currently in production, that I want to upgrade