[04:08] <cripperz> want to earn USD50 per week by just shortening links.. new technique ... cant be found online ... pm me if interested. Requirement u need to run an app for atleast 150hrs per week else be ban from server.
[04:18] <patdk-lap> not surre I can work 150hours per week without sleep
[09:29] <lordievader> Good morning.
[17:54] <Bayoumi_dk> hi.. what is ubuntu cloud? online desktop? or just another server?
[17:57] <bekks> Services running on remote servers.
[17:58] <Bayoumi_dk> ok thx.. :)
[17:59] <Bayoumi_dk> There are no webbased ubuntu os?
[18:00] <bekks> Whats is a "webbased ubuntu os"?
[18:02] <Bayoumi_dk> I thought that cloud is maybe a webbased Linux...
[18:03] <bekks> What is a "webbased linux"?
[18:04] <Bayoumi_dk> I'm just asking.. don't be an asshole
[18:04] <bekks> Igf you cant handle explanation requests, better dont say anything, instead of getting personal.
[18:05] <bekks> Setting you on ignore, for avoiding to read you any further.
[18:05] <bekks> *If
[18:05] <Bayoumi_dk> Nice admin
[18:06] <Bayoumi_dk> There are lots of online operation system writing in php/pearl.. I thought that ubuntu cloud was is a new ubuntu online operation system..
[18:07] <lordievader> I suppose it is more geared towards could vm services. Like amazons web stuff.
[18:07] <wolflarson> what is an easy way to just add ips to a file and then ban them from my whole computer?
[18:08] <wolflarson> fail2ban keeps banning the same ips every few hours (from china) and I just want to ban the whole range but I am not sure how
[18:08] <lordievader> wolflarson: iptables, or better ipset.
[18:09] <lordievader> Fail2ban has ipset support.
[18:09] <AvatarA> if you want easy, google ufw
[18:10] <wolflarson> boom that is really easy thanks AvatarA!
[18:10] <wolflarson> lordievader, iptables scares me
[18:11] <lordievader> Iptables is nothing to be scared about. It is rather lovely. Once you start getting into iptables you start to dislike ufw.
[18:12] <wolflarson> i dont think i am smart enough to use it
[18:12] <AvatarA> it's hard to learn when you don't really need the advanced stuff iptables has to offer
[18:14] <AvatarA> but if you'll need to fine tune your settings it will become easy as you take it step by step and learn from practice
[18:14] <lordievader> Anyone is able to learn iptables.
[18:15] <bekks> Everyone :)
[18:19] <wolflarson> so AvatarA will these settings save after reboot? or do I need to write these out to a file and add them to a config or something?
[18:19] <wolflarson> dont want to lock myself out :)
[18:20] <renebarbosa> w
[18:21] <AvatarA> yes they're saved
[18:23] <AvatarA> what are you trying to block? bruteforce attacks on ssh?
[18:26] <wolflarson> well fail2ban seems to work for that OK
[18:26] <wolflarson> its just that when i go in the fail2ban log I see the same ips over and over again
[18:26] <wolflarson> may as well block them forever
[18:26] <cryptodan> You can also use ufw which is an interface for iptables
[18:33] <AvatarA> if you want to get rid of all that junk in the logs, change the listening port of ssh
[18:33] <AvatarA> it's not security but at least you get rid of 99% of the noise
[18:37] <Demon_Jester> Hey guys, I installed ubuntu server via usb, and my internal HDD was sdb while my flash drive was sda, and I had to install lilo grub on sdb (gnu grub was giving me problems) now when I boot the ain hdd it gives me ALERT! sdb6 cannot be found, I think this is because my main HDD is back to sda now. Is there way to change bootloader to search for sda instead of sdb?
[18:40] <AvatarA> you have access to the grub boot menu when you boot?
[18:43] <Demon_Jester> AvatarA no, I do not, it just goes into console, and my name is initarmfs
[18:44] <TJ-> If "lilo" was used instead of "grub2" I'm not surprised :)
[18:46] <AvatarA> hold shift before you boot into console
[18:46] <Demon_Jester> TJ- I wish I could install grub but it just tells me it failed, and doesn't tell me why
[18:47] <Demon_Jester> AvatarA ok I will give it a shot, what is suppose to happen? menu?
[18:47] <AvatarA> aaa I misread, I thought you have grub
[18:50] <Demon_Jester> AvatarA I held shift and brough boot menu, and all there is "Linux" do I select it or since I dont have grub holding shift is moot?
[18:50] <AvatarA> anyway, you need to edit your boot entry from that boot menu and change to sda where necessary and then also edit your fstab
[18:50] <AvatarA> after you boot
[18:50] <AvatarA> well in grub you pressed "e" to edit the menu entry
[18:51] <AvatarA> there must be a key for lilo as well but I don't know it, didn't use lilo that much
[18:52] <Demon_Jester> AvatarA, what edit program can I use? vi/gedit/nano are not available. or would I have to use sed to modify files?
[18:53] <AvatarA> type editor, tell me what happens
[18:54] <AvatarA> sed is good for your particular case but be careful and have a looksie in your fstab before you run that command, see if everything else looks ok
[18:55] <Demon_Jester> editor: not found and i used find and could not find fstab
[18:56] <AvatarA> look in /etc/fstab
[18:57] <AvatarA> btw you have a very weird install
[19:00] <Demon_Jester> no fstab in /etc
[19:01] <AvatarA> type mount
[19:01] <Demon_Jester> I know I have weird install nothing can go smooth for me, trying to install ubuntu server on dell poweredge is a hassle.
[19:01] <Demon_Jester> hold up
[19:01] <AvatarA> and paste that to pastebin so I can see
[19:03] <Demon_Jester> i cant paste it from another computer that has no internet access even when i bring up eth port.. it just shows me rootfs systf etc.. if i try to do mount /rootfs says cant find "etc/fstab" no such file or directory
[19:04] <AvatarA> tell me what is "on /"
[19:04] <Demon_Jester> im gonna load irc on my tablet so i am not going between each room brb avatar
[19:09] <Demon_Jester> AvatarA ok i am back. did you asked what was on /?
[19:09] <AvatarA> I want to know what is mounted as / (root)
[19:10] <AvatarA> but I believe you're booted into initramfs now
[19:10] <Demon_Jester> yeah i am.
[19:10] <AvatarA> that would explain the lack of nano and such
[19:11] <AvatarA> I'll tell you what should be done cuz how, is longer :)
[19:12] <AvatarA> remount your /dev/sda1 (or whatever your system is installed) as /
[19:12] <Demon_Jester> ext4 or anything?
[19:12] <AvatarA> ext4 if that is how you created your partition
[19:12] <Demon_Jester> kk
[19:13] <AvatarA> and with defaults is good
[19:14] <AvatarA> after you remount that, you should resume boot, not restart
[19:14] <Demon_Jester> ok i mounted sda1 on / i didnt receive any error
[19:15] <Demon_Jester> resume boot? just type boot?
[19:15] <AvatarA> I am not sure exactly how that can be done in your case.
[19:15] <AvatarA> if you type exit what happens?
[19:16] <Demon_Jester> gives me same error on giving uup waiting and how it cant find dev/sdb6
[19:17] <AvatarA> ok remount that sda1 and tell me if you can find /etc/fstab afterward
[19:21] <Demon_Jester> no fstab im just gonna restart maybe i will get lucky
[19:23] <AvatarA> nothing's changed so I don't believe so
[19:23] <Demon_Jester> damn it
[19:24] <AvatarA> how did you partition your drive?
[19:24] <AvatarA> did you install on the first partition?
[19:25] <Demon_Jester> yeah. its trying to find sdb that doesnt exist. idk how to change it to sda
[19:27] <AvatarA> you're now in initramfs, something that runs in the RAM without using anything on your hard disk
[19:28] <AvatarA> 2.you need to mount /dev/sda1 so you can access it
[19:28] <AvatarA> 3. you need to edit /etc/fstab so you can edit it and replace with /sda1 where necessary
[19:29] <AvatarA> 4. you need to edit your lilo config and do the same thing
[19:29] <AvatarA> 5. reboot
[19:29] <Demon_Jester> there is no lilo conf file. unfortunately.
[19:30] <AvatarA> let's retry :)
[19:30] <AvatarA> mkdir mylinux
[19:30] <AvatarA> works?
[19:30] <Demon_Jester> ok i mounted
[19:31] <Demon_Jester> yes mkdir mylinux works
[19:31] <AvatarA> umount /dev/sda1 cuz I don't know what/how you mounted there
[19:31] <AvatarA> so umount /dev/sda1
[19:31] <AvatarA> works?
[19:32] <Demon_Jester> no errors.. let me see of my dir is stil in /
[19:33] <dukestyx> hey, may be a hot topic, but is SSL v3 still considered insecure?
[19:33] <AvatarA> mount /dev/sda1 /mylinux
[19:34] <Demon_Jester> kk
[19:34] <AvatarA> worked?
[19:34] <Demon_Jester> yep
[19:34] <AvatarA> ls /mylinux
[19:35] <Demon_Jester> all i had to do was make different dir
[19:35] <AvatarA> you get a bunch of directories and files?
[19:35] <Demon_Jester> yep fstab is here lilo.conf
[19:35] <AvatarA> ok, those you need to edit
[19:36] <AvatarA> replace what was your usb, /dev/whatever it was with /dev/sda1 and then you can reboot
[19:37] <Demon_Jester> it shows uuid which matches /dev/sda*
[19:37] <AvatarA> where, in fstab?
[19:38] <Demon_Jester> ya
[19:39] <AvatarA> line that starts with UUID= ?
[19:39] <Demon_Jester> ya
[19:39] <AvatarA> ok
[19:39] <AvatarA> now check lilo.conf
[19:40] <AvatarA> if fstab uses UUIDs then nothing needs to be changed
[19:40] <Demon_Jester> hmm
[19:41] <AvatarA> UUIDs replace stuff like /dev/sda1 with that series of characthers you just saw
[19:42] <Demon_Jester> can i scroll in console so im not viewing last bit of a file?
[19:42] <AvatarA> so they stay unique and don't change even if you add or remove drives
[19:42] <AvatarA> what command did you use to view?
[19:42] <Demon_Jester> cat
[19:42] <AvatarA> use "less"
[19:43] <Demon_Jester> less not found
[19:43] <AvatarA> what about "busybox less"?
[19:43] <Demon_Jester> applet not found
[19:44] <AvatarA> cat lilo.conf | more ?
[19:45] <Demon_Jester> still nothing. screw it just gonna use sed replace all sdb with sda and hope for the best
[19:46] <AvatarA> nope
[19:46] <AvatarA> it's not sdb
[19:46] <AvatarA> you should have had a number at the end
[19:46] <AvatarA> sdb1 or sdb6 or something
[19:47] <AvatarA> same with sda, use sda1
[19:47] <Demon_Jester> i know sda1,2,5,6
[19:47] <AvatarA> cuz sda1 is first partition,
[19:47] <AvatarA> sda is your drive, as a whole
[19:47] <AvatarA> if you replace everything with just sda you will likely screw everything even more
[19:48] <AvatarA> cat lilo.conf | head
[19:48] <AvatarA> ?
[19:48] <Demon_Jester> i know i meant sda1 sda2 sda5 sda6
[19:49] <patdk-lap> lilo?
[19:49] <patdk-lap> I didn't think ubuntu ever used lilo
[19:49] <Demon_Jester> this is useless it wont save my stuff anyways
[19:50] <AvatarA> what do you mean it won't save it?
[19:50] <AvatarA> it does save what you edit now
[19:50] <Demon_Jester> if they didnt then i wouldnt have it installed. i would be trying to figure out why grub keeps failing at initial install.
[19:51] <Demon_Jester> when i use sed it outputs the changes but wont save.
[19:52] <Demon_Jester> o.. -i wasnt used
[19:52] <AvatarA> how do you know it doesn't save, it says so?
[19:53] <AvatarA> ok, worked now?
[19:53] <Demon_Jester> i use cat lilo.conf and still shows sdb1 sdb6 etc..
[19:53] <Demon_Jester> ya it did
[19:53] <AvatarA> root=/dev/sdb1? or something like that?
[19:54] <Demon_Jester> well it did but its root=/dev/sda1; similar, im rebooting in hopes it worked
[19:54] <AvatarA> yeah root=/dev/sda1 seems about right
[19:55] <Demon_Jester> hmm still booting.. nope same error
[19:56] <AvatarA> it would be cool if you could somehow paste your lilo.conf :)
[19:56] <AvatarA> what was the error again?
[19:57] <AvatarA> anyway seems kinda f'd up that you're using /dev/sda1 here and UUIDs in fstab
[19:57] <AvatarA> weird weird install
[19:58] <Demon_Jester> ALERT! /dev/sdb6 cannot be found.. it tells me to check /proc/cmdline.. i tried to change it to sda6 using echo and said with no luck
[19:59] <Demon_Jester> sed*
[19:59] <AvatarA> no /proc doesn't matter here , that is not on your hard drive
[19:59] <AvatarA> you sure your sed changed sdb6 to sda1 ?
[20:00] <AndroUser> Hello
[20:00] <AndroUser> Does this app work, anyone here?
[20:00] <Demon_Jester> well i mean i switched sdb6 to sda6 if needed i can switch sda6 to sda1 in lilo.conf
[20:01] <AvatarA> oh man... :D
[20:01] <AvatarA> find a way to show me lilo.conf as it is now
[20:01] <Demon_Jester> i cant even fully view it myself.
[20:01] <AvatarA> maybe you can scroll after cat
[20:01] <AvatarA> try Shift and Up Key
[20:02] <AndroUser> Hey guys, would anyone be able to help me with this: http://askubuntu.com/q/647527/99155 I upgraded to 15.04 and my servers file system has become read only, really struggling to work out why/fix it :(
[20:03] <AndroUser> @here I'm hoping its something simple, i literally just updated from 14.04 to 15.04
[20:04] <AvatarA> AndroUser, /dev/vda1 on / type ext4 (rw,errors=remount-ro) seems vda is mounted as rw, read/write
[20:04] <AvatarA> why do you say it's read only?
[20:04] <AndroUser> AvatarA, i cannot make any changes at all
[20:04] <Demon_Jester> Avatar shift + page up works
[20:05] <AvatarA> ok, at the beginning
[20:05] <AvatarA> boot=/dev ...
[20:05] <AvatarA> what do you have there?
[20:05] <AndroUser> I put the rw at the end, but it keeps saying there is something wrong with the UUID, so i changed it in fstab but it still doesnt work
[20:06] <AndroUser> What do you mean?
[20:06] <AvatarA> it was for Demon_Jester
[20:06] <Demon_Jester> tells me to `lilo to make changes which i did lol im at a >_ line.. lol
[20:07] <Demon_Jester> ok im back at the beginning
[20:07] <AvatarA> that line starting with boot= told you lilo to make changes?
[20:07] <AvatarA> AndroUser, how did you change UUID exactly?
[20:08] <AndroUser> AvatarA, I have no idea what made it wrong in the first place, but i asked DigitalOcean to put in the recovery ISO, booted to that and edited /etc/fstab to what i though the correct UUID was, took out the ISO rebooted, and its still read only
[20:09] <Demon_Jester> boot= is dev/sda should it be changed to sda1?
[20:09] <AvatarA> no, that is correct
[20:09] <Demon_Jester> root=/dev/sda1 actually
[20:10] <AvatarA> after some lines that say image=/boot/vmlinuz .. ?
[20:10] <AndroUser> AndroUser, see the fstab output at the bottom, the #commented line is what it was previously, before i changed it: http://askubuntu.com/q/647527/99155
[20:10] <AndroUser> Oops i mean AvatarA
[20:11] <AvatarA> well it should match blkid of vda1
[20:11] <Demon_Jester> avatarA insee image=/vmlinuz with options underneath like label=linux read-only etc..
[20:13] <AvatarA> it sucks that I can't see the whole file but if you type lilo
[20:13] <AvatarA> does it say that it is applying changes or something like that?
[20:13] <Demon_Jester> no saus /bin/sh lilo not found
[20:13] <AndroUser> AvatarA is it the UUID starting 18 or 8c?
[20:13] <Demon_Jester> says*
[20:13] <AvatarA> aa yes
[20:14] <AvatarA> so go to /mylinux/sbin/lilo
[20:14] <AvatarA> run that
[20:14] <AndroUser> AvatarA, labeled DOROOT or primary
[20:15] <Demon_Jester> how do i run it? i already tried `lilo` no luck
[20:16] <AvatarA> it should be the first one AndroUser I don't know what the second is
[20:16] <Demon_Jester> ok i did the whole director `/mylinux/sbin/lilo` and got a error "Fatal: chroot /dev/sdb6: no such file orndirectory"
[20:17] <micahg> does anyone have a test  neutron-lbaas-agent setup that they could quickly test a new haproxy with on trusty?
[20:19] <AvatarA> hey Demon_Jester if you try "chroot /mylinux" what happens?
[20:20] <Demon_Jester> goes to root@none gave me some errors about something.
[20:22] <Lew> AvatarA hey sorry got disconnected
[20:22] <Lew> Its AndroUser
[20:22] <Lew> (On my phone)
[20:23] <Lew> Which one should the UUID be?
[20:23] <AvatarA> I said it seems to be first, I don't know what the second is
[20:24] <Lew> Ok so the DOROOT
[20:30] <Demon_Jester> avatar what should i do now?
[20:32] <AvatarA> I was thinking about a chroot so you can uninstall lilo and just install grub but that requires a lot of steps too
[20:32] <Demon_Jester> i can use vi and stuff no
[20:32] <Demon_Jester> now
[20:32] <Demon_Jester> woot
[20:35] <AvatarA> yeah but I don't know if it's a complete chroot
[20:35] <AvatarA> proc should have been mounted too, sys and dev
[20:35] <AvatarA> anyways
[20:35] <Demon_Jester> proc kind of is. nothing in directory
[20:35] <AvatarA> now you can less lilo.conf
[20:36] <Demon_Jester> i was able to view it completely using shift + page up,down earlier
[20:36] <AvatarA> and see if you have any sdb6 there or whatever that error told you
[20:36] <Demon_Jester> no sdb6 in lilo.conf which is throwing me off.
[20:37] <AvatarA> and sda1 where it should be?
[20:37] <Demon_Jester> its on root/dev/sda1
[20:37] <Demon_Jester> root=/dev/sda1*
[20:37] <AvatarA> well cuz that is just a config file and changes have not been written to boot loader
[20:37] <AvatarA> so try lilo now
[20:38] <Demon_Jester> same error
[20:38] <AvatarA> what error?
[20:40] <Demon_Jester> fatal: chroot /dev/sdb6: no such file or directory
[20:42] <AvatarA> hmm, I don't know where it gets that sdb6 from if you say it isn't present in lilo.conf
[20:42] <Demon_Jester> i tried looking at /boot/map since that was a directory but no luck there
[20:47] <AvatarA> lilo -b /dev/sda
[20:47] <AvatarA> same error?
[20:57] <Demon_Jester> AvatarA sorry i was at the server. umm i had my flash drive in so i removed it and rebooted. and i used df and showed my main hdd as sdb1 so idk whats going on. lol
[20:57] <AvatarA> so now your drive is sdb1
[21:02] <AvatarA> so what is sda1?
[21:05] <Demon_Jester> oh for fuck sakes vi wont edit my fikes it jist inserts letter doesn't delete. no i have to fucking figure why that is not fucking working.
[21:09] <lordievader> Demon_Jester: Please watch your language.
[21:09] <lordievader> You could use vim instead of vi, it is much more user friendly.
[21:10] <Demon_Jester> vim is not on here
[21:11] <lordievader> Install it, takes just a second. Or use nano, ofcourse.
[21:11] <Demon_Jester> now when i use lilo i get "fatal: raid_setup: stat("/dev/sdb")"
[21:11] <Demon_Jester> i cant eth0 is not working no internet connection.
[21:12] <lordievader> "Is not working" any more details?
[21:13] <Demon_Jester> i bring it up. doesnt get ip address assigned. i already used sed to modify what i need.
[21:13] <lordievader> Dhcp or static?
[21:13] <Demon_Jester> dhcp.
[21:14] <lordievader> "sudo dhclient eth0" doesn't get you an address?
[21:15] <AvatarA> still in initramfs now?
[21:16] <Demon_Jester> no i have to make directory when i restart
[21:17] <AvatarA> so still at the initramfs stage
[21:18] <Demon_Jester> still getting sdb error idk why in ls /dev it doesnt list any sda* or sdb* i have checked lilo.conf repeatedly to see if there is /dev/sdb6 and nothing.
[21:19] <TJ-> initrd is a static file-system, and if udev doesn't run then no dynamic discovery of devices will occur
[21:19] <lordievader> Ain't it a good idea to configure lilo with UUID's instead of sdXY stuff?
[21:21] <TJ-> Surely it'd be quicker to reinstall using GRUB and get guidance during the install to ensure the boot-loader is correctly installed? Maintaining a Lilo boot-loader is going to be nightmare; I'm not sure the update scripts take account of it any more
[21:21] <AvatarA> I was thinking he could chroot and then remove lilo and then install grub2
[21:22] <Demon_Jester> i cant install grub it failed durimg installation didnt say why didnt tell me what logs to look at. lilo was my other option.
[21:22] <lordievader> Is lilo even supported by Ubuntu?
[21:22] <lordievader> !lilo
[21:22] <lordievader> Hmm, that is informative -.-
[21:23] <AvatarA> how is your drive partitioned?
[21:24] <Demon_Jester> sda1 is ext4 sda5 is swap sda6 is ext4 idk if that is what u meant.
[21:26] <AvatarA> so you have a system partition, first, then some swap space and then the last is for your /home , personal files?
[21:26] <TJ-> Boot with a Live ISO in "Try ..." mode (giving full network and tools access), create a chroot into the installed system, replace lilo with grub2, get it configured correctly under guidance, and reboot
[21:26] <Demon_Jester> TJ- i cant try ubuntu-server..
[21:28] <lordievader> Demon_Jester: Get an ubuntu image or some other desktop flavor.
[21:29] <AvatarA> if he can mount his root partition can't he also chroot into it?
[21:30] <TJ-> AvatarA: if 'chroot' is available
[21:30] <AvatarA> Demon_Jester, want to give it a go?
[21:31] <TJ-> Demon_Jester: my feeling is you've already suffered 3 hours trying to make progress; in that time a Live ISO boot + chroot would have fixed this... and there's no guarantee continuing with Lilo is going to be sustainable for upgrades - and there are very few people now with expertise and experience with Lilo
[21:35] <Demon_Jester> if grub could not be installed at initial installation, how will it work now?
[21:36] <TJ-> There's a lot of expertise on grub problems; that is a solvable issue
[21:37] <lordievader> Running grub-install in a terminal usually gives an error that is quite google-able.
[21:39] <Demon_Jester> well ok i will give it a shot.
[21:41] <TJ-> I'm currently doing a remote in-place replacement; the server is 12.04, I've created a 14.04 debootstrap install in a separate VG and am configuring that to take over from 12.04, using a chroot. I can be 100% sure that'll boot restarting the server. When you've got access to the network and full tool-set it makes fixing things so much easier
[21:42] <lordievader> TJ-: That is allways a nice way of doing a reinstall :)
[21:43] <lordievader> Why a separete VG though?
[21:43] <TJ-> lordievader: It's been through 2 release-upgrades previously; I want a clean slate this time
[21:44] <lordievader> I usually take a new lv in the same vg naming it something root-new-lv. When I'm done and it's tested I'll swap them around.
[21:44] <TJ-> lordievader: Current environment Xen block devices,  1 per file-system. I want the flexibility of LVM
[21:44]  * lordievader has no experience with Xen.
[21:44] <TJ-> lordievader: This server started out with 8.04 I think it was
[21:45] <lordievader> Old server then ;)
[21:45] <TJ-> No, 6.04!
[21:45] <TJ-> 6.06 even, Dapper
[21:46] <lordievader> Hehe even more ancient :P
[21:46] <lordievader> I hope not on the same hardware as then?
[21:46] <TJ-> yeah... and the amount of legacy crud means I'm reluctant to remove older components in case it breaks something
[21:47] <lordievader> Wow, what specs?
[21:47] <TJ-> It's virtualised, on Xen, and I'm porting it to KVM as well as moving it to 14.04
[21:48] <Demon_Jester> ok im burning ubuntu to usb. should be done shortly
[21:48] <TJ-> Intel Xeon E5-2680
[21:48] <lordievader> Ah, ain't to bad. My personal server is weaker ;)
[21:51] <TJ-> The thing I like about a chroot replace/upgrade is you can move one service at a time (DNS, SSH, HTTP, SMTP, IMAP, etc.) over to the new install and ensure it is stable rather than moving everything and then scrambling to deal with upgrade issues, especially with the custom configs such systems usually have
[21:53] <TJ-> Demon_Jester: just to be sure; the Live ISO you're writing is the same architecture as the installed system (amd64, or i386) ?
[22:00] <Demon_Jester> amd64 they both are
[22:01] <TJ-> Demon_Jester: good :)
[22:07] <Demon_Jester> ok im in and have terminal, do i just google how to install grub?
[22:09] <TJ-> Demon_Jester: No, we'll take you through it
[22:09] <TJ-> Demon_Jester: You'll need root for most of this so to make things easier start off with "sudo -i"
[22:10] <TJ-> Demon_Jester: , next, install the pastebinit package so you can easily share output with us: "apt-get install pastebinit"
[22:10] <lordievader> I was more talking about the error. But replacing google with this chat works too ;)
[22:11] <Demon_Jester> well i mean i also googled but he, pastebinit is installed
[22:11] <Demon_Jester> eh*
[22:11] <TJ-> Demon_Jester: "mkdir /target"
[22:12] <TJ-> Demon_Jester: "pastebinit <( lsblk -f )"
[22:13] <Demon_Jester> ok its said failed to comtact the server
[22:14] <lordievader> Demon_Jester: Do you have an internet connection?
[22:14] <TJ-> Demon_Jester: Yeah, just out luck that ubuntu pastebin is having problems this past few minutes... it seems to come and go. Try again
[22:14] <Demon_Jester> lirdieavor, yes; TJ-, ok
[22:15] <Demon_Jester> http://paste.ubuntu.com/11869385/
[22:15] <TJ-> lordievader: I've been having problems accessing paste.ubuntu.com I think there's a routing issue
[22:16] <lordievader> Hmm, I see.
[22:16] <TJ-> Demon_Jester: thanks, so we're dealing with /dev/sda. Now show us "pastebinit <( blkid )"
[22:18] <Demon_Jester> http://paste.ubuntu.com/11869402/
[22:18] <TJ-> Demon_Jester: OK, and now "pastebinit <(cat /proc/partitions )"
[22:19] <TJ-> Demon_Jester: this gives us all the background info we need to be confident we understand the disk layout
[22:19] <Demon_Jester> http://paste.ubuntu.com/11869411
[22:20] <Demon_Jester> kk
[22:20] <TJ-> Demon_Jester: So sda is a 500GB disk?
[22:21] <Demon_Jester> no its 1tb i partitioned it down to 500 for idk why tbh.
[22:22] <TJ-> Demon_Jester: OK... "pastebinit <( fdisk -l /dev/sda )"
[22:26] <TJ-> Demon_Jester: if fdisk not-found, then "apt-get install util-linux"
[22:26] <Demon_Jester> http://paste.ubuntu.com/11869448/
[22:26] <Demon_Jester> sorry for the delay
[22:32] <TJ-> Demon_Jester: that's a weird layout!
[22:33] <TJ-> Demon_Jester: from your earlier adventures with the mention of /dev/sdb6, I'm guessing that /sda6 is the root file-system; is that correct?
[22:34] <TJ-> Demon_Jester: On that basis "mount /dev/sda6 /target" should allow us to confirm  that?
[22:34] <Demon_Jester> i believe so, i hate this kind of stuff tbh
[22:35] <TJ-> Demon_Jester: "ls /target/" shold show something similar to "bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var"
[22:38] <Demon_Jester> its blank, am i suppose to mount something there
[22:39] <TJ-> Demon_Jester: >>>> On that basis "mount /dev/sda6 /target" should allow us to confirm  that
[22:40] <Demon_Jester> ya it shows what u listed.
[22:41] <TJ-> Demon_Jester: great! let's prepare it for chroot then. "for n in proc sys dev dev/pts run etc/resolv.conf; do mount --bind /$n /target/$n; done"
[22:44] <Demon_Jester> i receive an error /target/etc/resolv.conf does not exist
[22:45] <TJ-> Demon_Jester: OK, let's create something for it then. "touch /target/etc/resolv.conf"  .... after that do "mount --bind /etc/resolv.conf /target/etc/resolv.conf"
[22:46] <TJ-> Demon_Jester: that bind is allowing the chroot to use the host's DNS resolver so that normal IP networking is available inside the chroot
[22:48] <Demon_Jester> ok done.
[22:50] <TJ-> Demon_Jester: Right, time to enter the chroot: "chroot /target"
[22:50] <Demon_Jester> ok done.
[22:51] <Demon_Jester> does chroot just make that directory temp root directory?
[22:52] <TJ-> Demon_Jester: That and it intercepts some system libraries to fool tools into believing that too
[22:53] <TJ-> Demon_Jester: Now lets find out what the installed bootloader packages are: "pastebinit <( dpkg -l *lilo* grub* )"
[22:55] <Demon_Jester> http:/paste.ubuntu.com/11869585/
[22:55] <Demon_Jester> crap
[22:56] <Demon_Jester> should still be able to see it.
[22:57] <TJ-> OK, so just "lilo" currently. Let's remove that and then install grub2. "apt-get purge lilo"
[22:58] <Demon_Jester> ok purged
[22:59] <Demon_Jester> apt-get install grub2?
[22:59] <TJ-> Demon_Jester: "apt-get install grub-pc"
[23:00] <TJ-> At some point, if I recall correctly, you'll get asked where to install grub. That will be "/dev/sda"
[23:00] <Demon_Jester> ok i selected sda
[23:01] <TJ-> You should also see it generate the grub.cfg file, where it lists all the kernels it found installed
[23:01] <Demon_Jester> took me a second to realize space selects it.
[23:02] <TJ-> I guess it was running the text-console ncurses pseudo-windowing interface. That can be confusing :)
[23:02] <Lurchy> if I was setting up a home system as a server...how can I set it up to wake on LAN?  is that a bios setting exclusively?  or do I need to set it also in ubuntu?  can anyone enlighten me?
[23:02] <Demon_Jester> i dont see grub.cfg in /target
[23:03] <TJ-> Demon_Jester: "ls -l /boot/grub/"
[23:03] <Demon_Jester> ok perfect
[23:04] <TJ-> Demon_Jester: I'm going to take you through that process manually just so you know how to do it yourself, and what good output looks like too
[23:04] <TJ-> Demon_Jester: "grub-install /dev/sda"
[23:04] <Demon_Jester> wdf its installing for i386..
[23:05] <TJ-> Demon_Jester: don't panic :)
[23:05] <Demon_Jester> finished. no errors
[23:05] <TJ-> Demon_Jester: GRUB runs in 32-bit mode... hands over to an operating system, which then switches into 64-bit long mode if its the AMD64 install
[23:05] <Demon_Jester> oh i see
[23:06] <TJ-> Demon_Jester: OK, now to generate GRUB's /boot/grub/grub.cfg (which is done every time a new kernel is installed/old kernel removed) do "update-grub"
[23:06] <Demon_Jester> ok done.
[23:07] <patdk-lap> lurchy, both, depends on what level of *sleep* your in
[23:07] <patdk-lap> if you mean, full poweroff, that is bios only
[23:07] <TJ-> you should see it list the kernel versions as it does that... each of those versions will be added to grub.cfg, with a 'regular' boot entry and a "Recovery" entry accessible from GRUB's "Advanced" sub-menu at boot-time, if you hold Shift as the system is booting.
[23:08] <Demon_Jester> oh. i see. ok.
[23:08] <TJ-> Demon_Jester: I'm reasonably confident that is fixed, but I want to check before I say "reboot", OK?
[23:08] <Demon_Jester> ok
[23:08] <Lurchy> hmmm...sleep mode in ubuntu?  can you explain the difference?
[23:09] <Lurchy> ahh
[23:09] <patdk-lap> consult your cpu manual
[23:09] <TJ-> Demon_Jester: "pastebinit <( dd if=/dev/sda bs=512 count=1 |  hexdump -C)"
[23:09] <Lurchy> I understand....I read it already
[23:09] <patdk-lap> I think there are normally 5 levels, where 5 == full poweroff
[23:10] <TJ-> Lurchy: If the motherboard is being supplied with 5V Stand-by, and the firmware has enabled WoL, and you've not disabled it with ethtool/miitool, then it should wake when sent a magic packet by tools like etherwake
[23:10] <patdk-lap> the only one the bios controls for wol
[23:10] <Demon_Jester> TJ- hexdump command not found
[23:11] <Lurchy> I am reading some stuff on my netgear POE router...it is saying "magic packet"....then I guess it would boot to ubuntu
[23:11] <TJ-> Demon_Jester: bah! keep forgetting its the Live ISO: "apt-get install bsdmainutils"
[23:11] <TJ-> Demon_Jester: , then re-run the pastebin ... hexdump command please
[23:12] <Demon_Jester> http://paste.ubuntu.com/11869647/
[23:12] <TJ-> Demon_Jester: Hmmm! I don't like that I can see LILO as well as GRUB there. Give me a moment to check on that
[23:14] <TJ-> Demon_Jester: OK, we can ignore that. The import part is the first 3 bytes which do a jmp 0x90 (eb 63 90) where the GRUB boot-strap code starts
[23:15] <Demon_Jester> ok. what do you want me to do from here? reboot?
[23:16] <TJ-> Demon_Jester: just to be double sure I want to see the first few sectors where GRUB installs its core.img: "pastebinit <( dd if=/dev/sda bs=512 count=4 skip=1 | hexdump -C )"
[23:17] <Demon_Jester> http//:paste.ubunti.com/11869668/
[23:17] <Demon_Jester> damn it.
[23:18] <Demon_Jester> paste.ubuntu.com/11869668/
[23:18] <TJ-> Demon_Jester: FYI: A BIOS boot reads sector 0 of the disk into memory and then the CPU executes it. The boot-strap code then loads more sectors which are GRUB's core.img, usually from sector 1 through about 1024 (these sectors are generally unused space at the start of the disk). core.img contains the proper boot-loader code, which then finds /boot/grub/, loads grub.cfg and executes its instructions to show menu, boot the default entry, or whatever
[23:20] <TJ-> Demon_Jester: That looks perfect; exactly the same as my system
[23:20] <Demon_Jester> oh i see. im still confused but stuff looks interesting.
[23:21] <TJ-> Demon_Jester: OK, "exit" to get out of the chroot, then use the Live ISO's normal reboot option to shutdown and reboot cleanly... remove the USB once the reboot begins of course
[23:23] <TJ-> Demon_Jester: one thing I forgot to check, was that the target's "/etc/fstab" is correct, but if you haven't touched that the installer will have written that correctly originally
[23:25] <Demon_Jester> hmm ok grub loaded and my screen when inactive
[23:26] <TJ-> black screen?
[23:26] <Demon_Jester> ya
[23:26] <TJ-> That is a relatively common issue with some GPUs/driver combinations
[23:26] <TJ-> Did the system load the OS before the screen went black?
[23:27] <TJ-> Usually you can see GRUB write "Loading Linux..."     "Loading initrd..." at top of screen before the Os takes over
[23:27] <Demon_Jester> screen goes blank before loading OS
[23:28] <TJ-> Sounds like it may be switching to graphics mode. Try Ctrl+Alt+Del to reboot, hold Shift down, when you see the GRUB menu choose the "Advanced" menu, then select the first "Recovery ..." option
[23:32] <Demon_Jester> no advance menu comes up
[23:33] <Demon_Jester> nvm i went to advance options
[23:33] <Demon_Jester> ok it took me to root@myserver
[23:34] <TJ-> When GRUB starts it checks to see if the Shift key is being held down. If so, it doesn't boot the default operating system entry, it shows its menu. Usually the top entry is "ubuntu" and represents the normal boot with the latest kernel; beneath that is "Advanced" which is a sub-menu when selected shows all the installed OSes, each with its normal boot and an alternative "Recovery" option for when there are problems
[23:34] <Demon_Jester> ah ok.
[23:34] <Demon_Jester> appears im in a shell environment
[23:34] <TJ-> OK, that's good. If the black-screen was caused by the usual GPU issue we add the setting "nomodeset" to the kernel command-line.
[23:35] <Demon_Jester> ok
[23:35] <TJ-> Did you see a menu with several options including "root shell" before getting to the root prompt?
[23:36] <Demon_Jester> no just linux and linux with gibberish recovery
[23:36] <Demon_Jester> gibberish words i mean.
[23:36] <TJ-> OK... if the usual Recovery environment is installed it shows a pretty screen to do common tasks from
[23:37] <TJ-> First we need to ensure the root file-system is mounted with read/write permissions so you can make changes
[23:37] <TJ-> "cat /proc/mounts | grep ' / '  "
[23:38] <TJ-> you should see something like "/dev/sda6 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0"
[23:38] <TJ-> What is important is whether you see the "rw" option or not. If you see "ro" its mounted read-only and we need to change that
[23:38] <Demon_Jester> yep its ro not rw
[23:39] <Demon_Jester> wait.
[23:39] <TJ-> Demon_Jester: OK: "mount -o remount,rw  /"
[23:40] <Demon_Jester> umm i was looking at the uuid is it rootfs im suppose to be looking at or /dev/disk/by-uuid/?
[23:41] <TJ-> The output of /proc/mounts is <device> <mountpoint> <options>  ... you should be looking for "/" in the mountpoint column
[23:42] <Demon_Jester> im guessing rootfs / rootfs rw 0 0 is probably it
[23:42] <Demon_Jester> and it is rw
[23:42] <TJ-> That's good, we can change files
[23:43] <TJ-> OK, I'm hoping you have a simple text editor installed, the default is usually nano - are you familiar with it?
[23:44] <Demon_Jester> yes. to be clear I do have experience with ubuntu (not really really tech with it) along with openwrt, and arch linux.. arch wasnt as hard to install as people claim
[23:44] <Demon_Jester> anyways im ready.
[23:45] <TJ-> OK ... assuming it's nano: "nano /etc/default/grub"
[23:45] <TJ-> look for the line that has "GRUB_CMDLINE_LINUX="
[23:46] <Demon_Jester> found it
[23:46] <TJ-> keeping whatever may be assigned to it already, add in "nomodeset" so its something like GRUB_CMDLINE_LINUX="nomodeset"
[23:47] <Demon_Jester> it was blank.
[23:47] <TJ-> if there are other settings there, ensure you separate from them using a space
[23:47] <Demon_Jester> so nothing else
[23:47] <TJ-> OK, simple then... save it and get back to the shell (Ctrl+X) I think?
[23:48] <TJ-> Now we regenerate grub.cfg - that new setting will be added to the kernel command-line for every entry in the file: "update-grub"
[23:48] <Demon_Jester> yep. i ran the update on grub
[23:48] <TJ-> Demon_Jester: in theory - if the black screen was caused by the GPU issue - the screen should remain active during boot now
[23:48] <TJ-> "reboot" should do it
[23:50] <Demon_Jester> lets hope *crosses fingers*
[23:52] <Demon_Jester> still black screen.. if i go into recovery and install openssh will i be fine to ssh in?
[23:52] <TJ-> Yes
[23:52] <Demon_Jester> ok cool i will do thay
[23:52] <Demon_Jester> thay
[23:52] <TJ-> I assume you already configured the network side
[23:52] <Demon_Jester> that
[23:52] <Demon_Jester> yes.
[23:55] <TJ-> Weird you're getting a black screen still; does the system have multiple GPUs, or multiple heads connected? I've seen that happen when a single monitor was connected to the secondary head ... everything is cloned to both heads until the OS starts, then it goes dark as the OS only uses the primary head