[01:17] i have a Dell PowerEdge Server i was wondering if any of you new much about them === Guest91235 is now known as n00b123 [01:52] Hi Friends, I am setting an ubuntu server 12.04.1 with 2 x 2tb hard drivers wich I want to connect in RAID1. Also going to use encrypted LVM. What is best to do. Use the whole drive in one raid and one volume group and then differents logical volumes for /, SWAP, /var and /DATA or use 4 raids md , 4 vg and 4 lv ?? === gary_poster is now known as gary_poster|away [02:04] n00b123: Unless you're deliberately trying to have some volumes encrypted and some not, I see no reason to use multiple md devices [02:05] And even then maybe not, but I'm unfamilier with encrypted LVM [02:05] However you will want to make sure you're absolutely confident how you want your bootloader to work before you start partitioning [02:09] Actually, having read a few things about the encryption it seems like you probably want an unencrypted md0 for /boot and an encrypted md1 for LVM === cedr is now known as cdr [02:11] Hmm, although it seems you can nest the LVM and the encryption either way around === cdr is now known as cedr === LargePrime_ is now known as LargePrime [02:15] I was thinking if there is any advantage having parttions divided into diferent raids. just wondering what would be the best practice [02:16] Is there any way to grub-install /dev/md0 on busybox during instalation ?? [02:18] because on ubuntu 12.04.1 server instalalation, grub-install always fail because it always tries to install on /dev/sda. No options to change. Consequently I can never boot after instalation and have to boot from a live cd and install it manually (wih I'm trying to do right now !!) === cedr is now known as cdr [02:29] n00b123: 'installing' to md0 makes no sense. grub needs to write a master boot record, which belongs at the beginning of the first disk enumerated by the BIOS. that disk typically maps to /dev/sda in Linux. [02:34] n00b123: indeed, if you were to write out an MBR to the beginning of an md block device, you may very well corrupt your RAID metadata (depending on the superblock format used) [02:34] yes, i tried and it failed. So, it is not possible to have the /boot partition on a RAID ?? If one hdd failed I am oing to be stucked... [02:35] What is the best practice to be prepared for a disk fail ?? [02:36] Have an independent /boot partition on both hdd and install grub on both ?? is that correct ? [02:37] n00b123: yes, you can have /boot on RAID. I would tend to use RAID-1 because it allows for /boot to be directly mounted from an md member in diaster recovery scenarios. however, grub-2 can handle other RAID layouts. [02:37] n00b123: for full bootloader redundancy, yes, would need to write out a boot sector to both disks. however, you don't need require two separate boot filesystems. [02:39] sorry, I can't understand (n00b) [02:40] n00b123: I used to do this back in the day. let's say you have sda and sdb, and the first partitions of each are members of a RAID-1 array, on which the /boot filesystem resides. [02:40] n00b123: I would enter the grub shell and type: [02:40] device (hd0) /dev/sda [02:40] root (hd0,0) [02:40] setup (hd0) [02:41] then I would repeat with only one change: mapping (hd0) to /dev/sdb (which controls where the MBR is written) [02:41] I've never tried with grub2 though. most of my machines are using hardware RAID these days. [02:43] but /boot is under raid ?? md0=sda1,sdb2(/boot) [02:45] that's awkward for grub-0.97 because they're different partitions. but Ubuntu uses grub2, which should be able to handle it fine (it has built-in modules to read Linux RAID volumes). but none of this comes into play until the bootsector is read and grub gets past 'stage1'. the bottom line is that installing to /dev/sda should be enough to get it booting, assuming the first disk remains online. [02:45] the boot filesystem is not involved in the earliest stage of the boot process [02:48] ok, so when installing, I can configure the first partition os both hard drives as /boot and raid1 (md0=sda1,sdb1) and just grub-install /dev/sda and grub-install /dev/sdb. Ubuntu can not mount encrypted partition but can "mount" the raid partition. That's it ?? [02:49] I am a little bit confused because every instalation I tried, grub fail instaling on /dev/sda. When /boot was under raid and independent partitions [02:50] n00b123: I have no experience of setting up bootloader redundancy in grub2 but, yes, that's about right. I suspect grub-install won't do the right thing when installing to /dev/sdb. that's why I always used the shell in grub-0.97. [02:50] n00b123: that's curious. maybe you should run grub-install with the option to increase verbosity. [02:50] n00b123: it should work, based on what you've said [02:51] that's why i was trying to grub-install while installing the system (CTRL+ALT+F2). [02:52] because after that, it is hard to boot it like it is under encripted lvm and raid [02:54] n00b123: try grub-install --debug /dev/sda [02:56] grub-install does not work on busybox, and now I am having troubles mounting the partition under ubnutu 10.04 livecd (12.04 is failing the video config resolution under virtualbox) [03:04] n00b123: is it no present at all, or are you getting an error? iirc, the debian-installer gets grub from a lightweight udeb package which is installed-on-the-fly i.e.: http://packages.ubuntu.com/precise/amd64/grub-installer/download [03:07] not present [03:07] sudo apt-get install mdadm lvm2 [03:08] and pvscan, vgdisplay, vgscan, lvscan finds nothing [03:08] cat /proc/mdstat show nothing to [03:08] last time i could mount it with ubuntu 12.04 [03:09] but now... nop [03:10] on diskd utility it shows the array [03:11] but say it is not running, when i try to bring it up, it says: not enogh omponents to start raid array [03:11] do I need to install any more package than mdadm ?? [03:12] n00b123: to assemble an array from userspace, mdadm is enough [03:13] n00b123: for example, mdadm -A /dev/md0 /dev/sda1 /dev/sdb2 [03:13] oops [03:14] just mounted the array [03:14] noob problem, forgot the sudo... sorry [03:19] grub-install not working with live cd. Can't find /dev bla bla bla. [03:19] I believe i will have to chroot [03:20] n00b123: if you do, remember also to mound --bind /dev /dev (after mounting your normal filesystems there). [03:20] mount, rather [03:37] tried mounting it [03:39] when tried grub-install --root-directory=/media/47a...bla..bla /dev/sda [03:40] it gives me the error: usr/sbin/grub-probe: error: no mapping exists for 'vgtotal-lvroot' [03:40] auto detection of a filesystem module failed. [03:41] please specify the module with the option '--modules' explitly. [03:46] hey guys, I installed 13.04 server and I have 2 nics. installer saw I have 2 nics, setup eth0; but not eth1. I thought no biggie, added to etc/networks/interface. Restart, but still no eth1. Am I missing something? [03:49] n00b123: is lvroot encrypted/ [03:50] ? [03:50] daddioio: what happens when you do 'sudo ifup eth1'? [03:51] woohoo, she lives [03:51] will it do that at reboot now? [03:51] or do I need to tinker somewhere? [03:52] it is but i have already decripted it to mount on the /media/47...... [03:52] I can see the files on lvroot [03:53] daddioio: you can add 'auto eth1' to /etc/network/interfaces [03:54] dang you are right yeats I forgot to add that...sorry bout that [03:54] ;-) [03:54] n00b123: if you run ls -l /dev/mapper, do you see just one entry referring to "lvroot"? [03:59] i can see the vgtotal-lvroot, 3 others lv and another udisks-luks-uuid-bla bla bla [05:40] hey there [05:58] quick question.... I have a router that is ubuntu server, and there are several subnets attached that can all talk to each other freely. Is there any (easy) way to get it to bounce multicast packets between networks? It's not a large network, so I am not worried about broadcast traffic becoming an issue. I have installed pimd, but Others say it "just works", however I cannot get it to work. Any ideas? [06:08] phunyguy, dpkg -l smcroute [06:10] phunyguy, http://www.google.com/search?q=ubuntuforums.org+multicast+forwarding+solved [06:10] q=site: [06:11] hey guys [06:12] i am coding ubuntu server hardening [06:12] is it the same with redhat [06:12] i am new to it [06:12] but may be i can reuse the script from previous 0x71 script for redhat [06:12] where can i get documentation for ubuntu-server ? [06:12] https://help.ubuntu.com/12.04/serverguide/ [06:12] is it this one ? === blackjack is now known as nyimak === arrrghhhAWAY is now known as arrrghhh === arrrghhh is now known as arrrghhhAWAY === nouitfvf___ is now known as nouitfvf [08:33] hi anyone good at ubuntu-server i would like to talk to you [08:34] come to channel ##0x71 our whitehat hackers team === G4MBY is now known as PaulW2U === Tzunamii_ is now known as Tzunamii === Pici` is now known as Pici [10:26] hi ubuntu-server [10:26] where did you get [10:26] hi daviey [10:26] where /etc/motd shell script [10:26] located [10:26] ? === sygnous_ is now known as sygnous === jrib is now known as Guest31537 === Tm_T is now known as Guest1531 [10:56] hi guys === Guest31537 is now known as jrib [12:21] Hi all. I'm setting up ubuntu server for the first time and I could do with a little guidance. [12:22] I'm following a few steps to increase security, following a few points from the guide here: http://www.thefanclub.co.za/how-to/how-secure-ubuntu-1204-lts-server-part-1-basics [12:23] Trying to do no.2: Securing the Shared Memory, but I'm not sure if I'm using VIM correctly [12:23] Could someone give me a little more guidance on how to insert the extra line into /etc/fstab? [12:30] I see they fixed the PHP configuration on that guide [12:30] that said I still disagree with several of the items they list [12:30] ubuntu is secure by default, the rest is a matter of preference [12:31] beyond all of that, ubuntu (and debian) have a limited version of vi by default, if you want the full featured version, install vim-nox [12:31] and if you're unfamiliar with vim, you can use nano [12:33] so it's not essential to secure the shared memory? [12:43] it's not essential to do any of those things; securing shared memory is only important on systems where you have untrusted users with shell access [12:43] the other major problem with that article is it doesn't explain why each thing is to be done, or what it's for [12:44] some of them are a good idea in certain situations but not others [12:44] for example, the SSH section [12:44] 1. root is not allowed to log in by default [12:44] you have to go and set a root password or set up SSH keys to enable it [12:45] 2. changing SSH port is an annoyance only [12:45] it's an annoyance to you as much as it is an annoyance to an attacker, and that's all [12:46] I also advise against installing nmap on your server, since nmap can be used without root access and simply invites users to do port scans [12:46] you should run nmap from a separate system === exekias_ is now known as exekias [14:23] what tool can one use to check where the disk usage comes from, in command line? [14:23] my ubuntu linode's 4GB is used up, nfi where they're used :( [14:33] rurufufuss, du [14:33] specifically, you can do this: du -sh /* [14:33] that will sum each of the directories in the root [14:33] you can then get narrower in scope until you nail down what's using all that space [14:33] you can also use find to search for files over a certain size [14:33] find / -type f -size +100M [14:34] will find all files 100MB or larger [14:56] qman__: thanks [15:18] Can anyone help me set up Samba on my server? I'm having difficulty getting it to work. === arrrghhhAWAY is now known as arrrghhh [16:07] * n00b123 is Back !! === ivoks_ is now known as ivoks === Guest1531 is now known as Tm_T [17:00] Response: 550 Create directory operation failed. [17:04] agu10^_: Are we supposed to guess when and what is causing that message? :) [17:04] filezilla when uploading through ssh [17:04] how can i fix it? [17:04] agu10^_: Thats not FTP, but SFTP, which, in fact, is SSH. [17:05] yes [17:05] And that message indicates that you dont have permissions to create that directory. [17:05] why don't i? [17:06] that folder's permissions is 775 [17:06] and i'm the owner [17:06] so WTF [17:11] hi all [17:12] where do you get /etc/motd script from [17:12] in ubuntu server [17:12] skraito, it is generated automatically using update-motd [17:17] update-motd ? [17:17] is that a command ? [17:17] nothing there [17:18] i want to erase it how to do it ? [17:19] Why can't i create dirs without sudo? permissions are 775. WTF? [17:20] skraito, no, it is a package, see man update-motd [17:27] okay at /var/www i can create dirs. but at /var/www/wildcard i can't! Why is this? wildcard is 775. [19:34] why is Postfix config splitted in Ubuntu ? === jetole_ is now known as jetole === arrrghhh is now known as arrrghhhAWAY [19:46] is there an sftp banning program? [19:46] like failed login banning === bastidra1or is now known as bastidrazor [20:07] streulma: what do you mean split? === wizonesolutions is now known as Lenfire === Lenfire is now known as lenfire === lenfire is now known as wizonesolutions === cedr is now known as cdr [22:14] hello, I followed a guide on ubuntu.com to set up a bridged network interface, but I am getting errors in syslog saying:May 5 18:06:27 outerbanks kernel: [ 1691.020167] br0: received packet on eth1 with own address as source address [22:24] evening [22:25] has anyone running a kvm server with several virtual desktops? i have poor video performance [22:25] will a better graphics card on the server improve the performance? [22:25] or is this a client side issue? [22:28] i've switched from vnc to spice and it's not much of an improvement [22:28] serverside i have a 8mb onboard chip [22:32] i mean, the audio is awesome. maybe it's the weak chip on my client