=== Lcawte is now known as Lcawte|Away === peter is now known as Guest87665 [02:10] hallyn: does do-release-upgrade work in recent LXC? [02:16] (ok, worked for me on Trusty) [02:18] pmatulis: yeah, i've used it pretty recently there [02:30] anyone ever RAID 0 three drives or see benchmarks for it? i've heard roughly double performance from RAID-0-ing two drives, so would RAID-0-ing three drives give roughly triple the performance? [03:54] Hi I need to mount an old hdd on Ubuntu 12.04 server. Google some info - but I get an error mount: wrong fs type. I'm using xfce as my desktop. Any chance of some advice please? [05:27] so I've got 3 ssds [05:27] made a raid5 of them (still rebuilding) [05:28] and I'm trying to mkfs on them, and it's taken 10-15 minutes so far [05:28] any ideas? [05:32] sheptard: 1) You haven't said what their capacity is, so it's hard to say if 15 minutes is unreasonable even when healthy, 2) Attempting anything like that before the rebuild is complete is going to take a minor eternity, 3) RAID 5 is probably a poor choice - it usually is. :P [05:33] 120gb [05:33] I blew the raid array away, and tried on just one, mkfs exited almost instantly [05:37] probably the rebuild then [05:37] i would think SSDs wouldn't take *that* long to rebuild though [05:38] sheptard: i say backup to a spinning platter hdd, and raid 0 those three >:D [05:38] haha [05:40] sheptard: that's what i want to do in this laptop [05:40] just need to order the parts and install. hopefully should be pretty fast [07:24] Good morning. [08:34] what is the proper way to update ubuntu VPS ? [08:34] sudo apt-get update ? [08:34] what the difference with sudo apt-get dist-upgrade [08:35] dwarder https://www.dropbox.com/s/msv95ijbb0uoeb4/Ubuntu%20Reference%20Sheet.pdf [08:38] cfhowlett: danke [08:38] dwarder de nada [08:39] dwarder bitte! [08:44] cfhowlett: do i need to restart my VPS after apt-get upgrade [08:44] ? [08:45] dwarder sorry, no idea what VPS is ... [08:45] cfhowlett: virtual private server [08:45] dwarder right/NEVER used one, don't know, sorry. [08:45] cfhowlett: i.e. vbox and vmware [08:46] cfhowlett: do you restart your box after apt-get upgrade [08:46] dwarder umm, it can't hurt??? [08:46] cfhowlett: the question is do i need it? [08:46] dwarder I never restart after a dist-upgrade. [08:46] dwarder, if you got new kernels then, yes. Otherwise no. [08:47] Meerkat: does it tell if i have new kernels? [08:47] it should display a list of packages that you have to press Y to install. [08:47] Meerkat: so it restarts all the services upon apt-get upgrade , right? [08:47] no [08:48] Meerkat: it restarted my apache [08:48] Meerkat: not sure about the ssh service [08:48] dwarder, did you upgrade to a new release of ubuntu server? or simply updated it? [08:48] Meerkat: i did apt-get upgrade [08:51] dwarder, what does 'lsb_release -r' return? [08:52] Meerkat: 12.04 [08:54] dwarder, to update ubuntu with the latest security and bug fixes you wanna enter: 'sudo apt-get update && sudo apt-get upgrade' [08:55] update will update the list of packages available and upgrade will start to download them. You'll have to press Y when asked, though. [08:56] dist-upgrade will update ubuntu to a new release (currently 14.04). [08:56] Meerkat false. [08:57] Meerkat: https://www.dropbox.com/s/msv95ijbb0uoeb4/Ubuntu%20Reference%20Sheet.pdf [08:57] Meerkat https://www.dropbox.com/s/msv95ijbb0uoeb4/Ubuntu%20Reference%20Sheet.pdf [08:57] cfhowlett: haha ;) [08:57] dwarder good one! [08:58] cfhowlett, how is it false? [08:58] dwarder just for that: https://www.dropbox.com/s/7sqzo0wip1tlngh/fwunixref.pdf [08:58] Meerkat dist-upgrade does NOT upgrade to a new release [08:59] Meerkat that would be "sudo do-release-upgrade" [08:59] cfhowlett, according to your source it will. "apt-get dist-upgrade – upgrade with package replacements; upgrade Ubuntu version" [08:59] Meerkat package within the same distro e.g. 12.04 to 12.04.1 [08:59] NOT 12.04 to 14.04 [09:00] cfhowlett: shoud i do apt-get dist-upgrade [09:00] cfhowlett: ? [09:01] cfhowlett: if i just want security upgrades [09:01] dwarder I do so regularly for maintenance [09:01] well, not just ,but this is important [09:01] cfhowlett: on a production server? [09:01] dwarder ah - no. dist-upgrade will do ALL package upgrades, not security only [09:03] dwarder I don't know how to restrict updates to security. sorry [09:03] cfhowlett: you do dist-upgrade on production server? [09:03] dwarder desktop ... [09:03] cfhowlett: i don't need to restrict. will dist-upgrade do security upgrades, or do i need dist-upgrade for that? [09:04] dwarder dist-upgrade will include security in package upgrades [09:04] cfhowlett: my question? [09:04] :) [09:04] ohh [09:04] i meant [09:05] cfhowlett: i don't need to restrict. will 'apt-get upgrade' do security upgrades, or do i need 'apt-get dist-upgrade' for that? [09:05] dwarder yes, apt-get DIST-upgrade will include security updates [09:06] cfhowlett: not apt-get upgrade? [09:06] apt-get upgrade should also include security updates, unless the package wants to pull in new dependencies or remove packages. [09:06] dwarder ^^^ lordievader has a better grasp than I of the distinctions [09:07] lordievader: thank you [09:07] apt-get upgrade may only upgrade packages, it may not install new or remove things. apt-get dist-upgrade may pull in new or remove packages. [09:07] will do apt-get upgrade only then on my production server [09:07] dwarder: No problem ;) [09:08] dwarder: Then you won't get kernel updates ;) [09:09] lordievader: i worry about recent heartbleed issue [09:09] lordievader: is it also kernel related? [09:10] dwarder: That was patched very fast in Ubuntu. [09:10] dwarder: No, openssl. [09:10] lordievader: should i do apt-get dist-upgrade on a production server? [09:10] dwarder: OF course. [09:11] dwarder: that wikll not get you a new release but upgrade all packkages within a release. [09:11] dwarder: Every once in a while. [09:11] bekks: what is 'wikll' ? [09:11] ok will do then [09:11] dwarder: a typo of "will". [09:11] ahh [09:12] dwarder: I've set it up here that apt-get upgrade is run automatically. With the cron mails I get I see if there are held back packages. Those can be installed with apt-get dist-upgrade. [09:23] Is there an option to let the server automatically check for updates and automatically apply all security updates? [09:25] Geraner: you can confugure that using unattended-upgrades [09:26] Thanks, will look for that. [09:27] just found that on the internet http://askubuntu.com/questions/325998/how-to-enable-auto-security-update-in-ubuntu-12-04-server [09:27] writing also about unattended-upgrades. [09:27] thanks [09:27] Geraner: https://help.ubuntu.com/10.04/serverguide/automatic-updates.html [09:28] Yea, or this one. since I'm running 12.04 LTS https://help.ubuntu.com/12.04/serverguide/automatic-updates.html [09:29] looks really easy an straight forward. [09:29] good also that all automatically made updates are logged under /var/log/unattended-upgrades [09:30] so the admin can check later what has been patched. [09:32] trying to install but it tells me that it is already installed but set to manually. [09:32] unattended-upgrades is already the newest version. [09:32] unattended-upgrades set to manually installed. [09:33] And? [09:33] It is installed already. [09:35] yes, I'm now in the file /etc/apt/apt.conf.d/10periodic [09:35] checking the settings there. [09:39] do I need to restart any service after chaning the 10periodic file? Or are the changes recognized automatically and applied? [09:41] Geraner: you dont have to restart anything, since it is triggered by /etc/cron.daily/apt [09:42] Cool. :) [09:44] I will install apticron as well and set my e-mail address in the /etc/apticron/apticron.conf to get an info every time an update is done. [09:44] Sounds like a cool feature. :) [10:00] Hi. [10:00] How restart uwsgi? [10:01] # apt-get install uwsgi [10:01] … installing ... [10:01] uwsgi start/running, process 12801 [10:02] zsh: no such file or directory: /etc/init.d/uwsgi [10:02] centauri@gordio /var/www/gordio:master>/etc/init.d/uwsgi [2] [10:02] zsh: no such file or directory: /etc/init.d/uwsgi [10:03] $ service uwsgi restart - http://pastie.org/private/gdjkymcflkybya9stetbg (it's error?) [10:16] Gordio: did you look at the package content yet? [10:18] How? [10:19] Gordio: by looking at packages.ubuntu.com e.g. [10:20] packages.ubuntu.com don't have valid version. [10:20] * Gordio use Ubuntu 14.04 [10:22] Then where did you get that package from? [10:22] frome here? [10:23] In packages.ubuntu.com last version I can't find 13.10 [10:23] I unstall package in ubuntu 14.04 [10:23] http://packages.ubuntu.com/trusty/uwsgi [10:23] There it is. [10:24] And don't have /etc/init.d/uwsgi (in 13.10 (on packages.ubuntu.com) i see this file) [10:25] http://packages.ubuntu.com/trusty/amd64/uwsgi/filelist [10:25] my system: ls: cannot access /etc/init.d/uwsgi: No such file or directory [10:26] How me check package file-list in system? [10:26] Like `equery f pkg_name`? [10:27] dpkg-query -L uwsgi [10:29] Hm. /etc/init.d/uwsgi exist in files-list =\ [10:29] * Gordio sad [10:31] bekks: thank you. [10:31] rm -rf /* fix all my problems. [10:32] not funny. [10:35] But it's real :) [10:35] I restore basic system from image. [10:42] cheers. i am trying to start a libvirt vm on a ubuntu 12.04 system ,and all I get is [10:42] error: internal error cannot load AppArmor profile 'libvirt-9647a43e-29b9-40f4-b088-f228f6648032' [10:42] I tried uninstalling apparmor because I don't like that stuff anyway, but uninstalling apparmor means uninstalling libvirt [10:42] so how do I get rid of this? === Lcawte|Away is now known as Lcawte [11:15] http://stackoverflow.com/questions/12069297/create-virtual-machine-using-libvirt-error-related-to-apparmor [11:15] Madkiss: ^^^ (maybe this help you: "Replace type='host_device' with type='raw' in the xml definition.") [11:53] i did apt-get dist-upgrade , do i need to reastart my server? [11:56] dwarder: Depends. Was there a kernel among the updates? [11:56] If so, if you want to use it you should restart. (Or do kernel splicing, but I've heard that is rather tricky) [11:57] lordievader: http://pastebin.com/92BGqsad [11:58] Jup, new kernel. [12:00] lordievader: on VPSs how should i restart? will shutdown -r now work? [12:01] lordievader: or should i just power off / power on though the control pannel? [12:01] dwarder: No idea, I have no experience with VPS'es. If it is kvm-qemu clients are simply able to use 'reboot'. [12:06] lordievader: dist-upgrade upgraded my 12.04 to 13.04 [12:06] lordievader: is this ok? [12:07] lordievader: that is what lsb_release -r shows [12:07] lordievader: reboot worked ok [12:09] dwarder: That is not possible. [12:09] apt-get dist-upgrade doesn't do that. [12:09] lordievader: well it does [12:09] dwarder: No it doesn't. [12:09] hmm [12:09] sudo do-release-upgrade does [12:10] lordievader: maybe i confused myself [12:10] lordievader: i have several vps's [12:10] lordievader: and this one was 13.04 [12:11] dwarder: That is a more logical explanation ;) [12:12] lordievader: ok i now cheched on another box that it is 12.04 , gonna dist-upgrade on it [12:14] lordievader: brb === acrocity_ is now known as acrocity [12:16] i am back [12:16] :) [12:18] Welcome back, dwarder [12:28] lordievader: so it was true, one box was 13.04 :) [12:28] lordievader: the box that was 12.04 stayd 12.04 [12:28] lordievader: thank you :) [12:33] dwarder: No problem ;) === sz0 is now known as sz0` === sz0` is now known as sz0 === sz0 is now known as sz0` [14:56] hi there.. [14:56] I have a question related to chkrootkit... [14:56] I have server 10.04 running.. [14:57] and when I do o chkrootkit I get the following error: Checking `chkutmp'... *** stack smashing detected ***: ./chkutmp terminated [14:59] and the following is shown in the messages log: http://paste.ubuntu.com/7284501/ [14:59] Should I worry? [15:00] Hard to say definitively, especially since chkutmp doesn't even seem to exist in 14.04 which is what I'm running, but yes, I'd be inclined to be a bit worried [15:02] 10.04 is pretty ancient; I'd consider this an opportunity to reinstall from scratch [15:20] Aison: i could not reproduce your slapd upgrade mess-up === chmurifree is now known as chmuri [16:58] I'm running ubuntu server on a spare machine at home [16:58] i'm having problems with permission with a CMS that I'm using [16:58] which made me wonder if my configuration is correct [16:58] I know my apache server is using user www-data and user group www-data [16:58] I've just noticed that my /var/www is displaying my username for both owner and group [16:59] is this correct? [16:59] shouldn't it be www-data? [16:59] my username is part of www-data group [17:00] I've noticed the /var/www/ files and folders mainly have my username:group and some have root:root [17:03] drwxrwxrwx+ 20 thelaings thelaings 4096 Apr 18 20:50 www [17:03] www permissions [17:05] Looks wrong. [17:06] /var/www should be owned by root:root, as well as /var/www/html/ [17:06] The content, as needed, should be owned by www-data:www-data [17:10] should it be 755 root? [17:11] i dont have a /var/www/html/ [17:11] bekks: ^ [17:12] I did a bit of googling and it seemed to be mixed views about whether it should be root or whether it should be www-data === huats_ is now known as huats [17:17] hey, [17:17] how can i install a package on a mount other than my default one that my OS sits on? [17:20] alaing: the document root should never be owned by the webserver user. never. that would allow an attacker to change everything - which is mostly unwanted. [17:21] Ben___: to clarify, you've a second system mounted on your current one? (eg, mounted from a rescue disk, etc) === sz0 is now known as sz0` [17:22] shauno: yes, i mounted another disk [17:22] Ben___: is there an install on that other disk? [17:22] --root= will work for that scenario, but not if you're just trying to install it somewhere it doesn't belong [17:22] bekks: yeah that makes sense [17:22] arrith: what do you mean "install" ? i want to install with apt-get [17:22] should it be 755 root? [17:22] i'm trying to install a database [17:23] (as an option to dpkg I mean, not apt. apt won't go far here, but can be used for --download-only to fetch the required packages) [17:23] alaing: And in < 14.04 there was a /var/www/html, in 14.04 there isnt. This is because of the configuration changes between Apache 2.2 (< 14.04) and Apache 2.4 (14.04) [17:23] dpkg is pretty neat in the stuff it lets you override [17:24] shauno: so i need to install it manually? [17:24] used --force-depends recently to test some stuff, worked great [17:24] yeah i dont have that [17:24] this cms needs 755 access [17:24] Ben___: I'd download it whatever way you feel most comfortable, and use dpkg -i --root= [17:25] Ben___: you can store the actual database in a different place than the database managing/administration binaries [17:25] you may be able to change the paths apt uses, but I have no idea how - so I side with the option that makes me look less silly [17:25] Ben___: when you create the database, after you install it, is when you decide where to put it. you should read a tutorial on making a database [17:25] how did you know i'm creating a database? [17:26] "0419 192229 < Ben___> i'm trying to install a database". [17:26] We didnt even need glass orbs. [17:27] :-) [17:27] bekks so shoudl my /www/ be 755 root:root? [17:27] lol [17:27] i must be drunk [17:27] alaing: Yes. [17:27] i'm trying to install a database [17:27] or just not drunk enough [17:27] oh yea [17:27] and subfolder/files? [17:27] Ben___: don't drink and sysadmin [17:28] shoudl they be owned by www-data? [17:28] so you mean that i can install my database on the default disk, but let it store its content on my mount? [17:28] my user is part of www-data group [17:28] Ben___: yes. google guides on like mysql [17:28] its actually CouchDB :) [17:28] Ben___: same process roughly [17:28] i just thought that it may work better if the db sits in the same disk with the content [17:29] Ben___: there is no distinction there, the db is the content [17:29] Ben___: the only thing installed through like apt is the software, not the db datums [17:29] a db is stored as a file generally [17:30] sorry [17:30] my internet got disconnected [17:30] [20:28] Ben___: same process roughly [20:28] i just thought that it may work better if the db sits in the same disk with the content [17:31] this was the last thing i saw.. [17:33] can someone copy-paste? [17:35] Ben___: there is no distinction there, the db is the content [17:35] Ben___: the only thing installed through like apt is the software, not the db datums [17:35] a db is stored as a file generally [17:37] The last sentence is not correct in term of a raw device. [17:42] yes i understood that [17:42] arrith: [17:42] but, [17:42] doesn't it matter whether the database binaries sits in the same disk with the database content or not? [17:42] how do I chmod 0644 files only? [17:43] and 755 folders [17:43] i just assumed it would be faster if it does === sz0` is now known as sz0 [17:43] Ben____: actually being on different disks would be faster since it can read/write to both of them at once. different seek positions [17:44] Ben____: although if your root drive is really slow then that possibly could affect performance, but if that's the case then you should move your root to a RAID or SSD or 10k drive === sz0 is now known as sz0` [17:46] cool, thanks! [18:32] "vamos por el mundo, odiando y rechazando, aspectos que creemos despreciable de los demas y de uno mismo" bienvenidos: http://castroruben.com *temo_a_un_ser_sin_rival* === sz0` is now known as sz0 === a1berto_ is now known as a1berto [19:45] pmatulis, nice [19:45] pmatulis, I hope your solution help others not to mess up their system [19:58] hello, I'm trying to get cobbler working on ubuntu 12.04. I've got everything working, but when it tries to connect to ubuntu mirrors I am hitting this bug. https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/1000219 [19:58] Launchpad bug 1000219 in cobbler "cobbler does not recognise 12.04 server iso" [Medium,Confirmed] [19:58] I tried the workaround of changing $suite to precise but then I get an error saying [20:00] "mirror does not have any suite symlinks" and precise is not a recognized release [20:00] anyone got this working? [20:02] aslaen: USe another mirror then. [20:03] bekks: I don't think it's the mirror.. it seems to be a bug in cobbler. I'll try and use this PPA I just found https://launchpad.net/~pdffs/+archive/precise-cobbler [22:16] Hi, was upgrading ubuntu on server by ssh an the terminal froze, I managed to ssh back into the server but it was half way through a upgrade how do I get it to carry on with the server upgrade? [22:19] you don't [22:19] see if it's still going [22:20] if not, just do a normal upgrade [22:20] why you shouldn't do it over ssh, except when using screen [22:22] It was asking me a question about php.ini before it froze [22:22] so the upgrade is still active but stuck on that question, [22:23] if I try to do normal upgrade it says locked [22:44] how can I rescue a ubuntu system, that failed during update and now no longer boots? [22:44] I mean the kernel fails at boot [22:50] I guess I simply have to boot and changeroot into the system and continue the upgrade [22:54] Hey guys ^^ [22:55] I think you "server guys" know more about software-RAIDs than the "desktop guys". [22:56] I'm planning to install a Ubuntu with SW-RAID on a Notebook with a Core 2 Duo. Will I feel the CPU usage of the RAID or isn't it that dramatic? [22:58] i'm told it is negligable [23:00] Aison: i don't have a solution. the problem could not be observed [23:01] timmoe, depends on your raid [23:02] timmoe, what kind of raid? 1, 5, 6? [23:03] or how many drives? [23:26] Aison: I want a RAID 0 [23:26] WIth 2 Drives [23:32] * bekks doesnt [23:35] timmoe, I don't think raid0 is a good idea [23:36] the point is, when one drive fails, the whole data of both drives maybe lost [23:37] what is the reason for raid0? [23:37] The harddrives themselves aren't the fastest, so the main reason is speed [23:38] well, if you need it for caching (against an even slower storage), then you MAY think about raid0 [23:43] timmoe, what do you plan to store? [23:43] I had to replace the graphics card twice, so I think that if the system breaks, it's most likely that it's because of the graphics card [23:43] I just want to use it as a normal notebook, no business stuff [23:43] Maybe some things for school [23:44] well, but if your graphic card breaks, you don't loose any data [23:44] so you screw out the hard drives and read them with a 2nd machine [23:44] but if one of your raid0 drives failes, then you lost all your data [23:44] That's the reason for a sw raid, because the notebook has a via raid controller in it [23:45] but if the graphic card breaks, i won't replace it another time [23:45] so your data on the notebook is completely unimportant? [23:46] if you use your notebook just as mobile device for browsing and such and you do not store important data, then go with raid0 [23:46] Not completely, but I can do some backups of the things that are important [23:47] but back to your question: raid0 requires almost no cpu time [23:47] okay, that sounds great [23:47] which raid types require cpu time? [23:49] eg. raid5,6 [23:50] okay, thank you very much