/srv/irclogs.ubuntu.com/2014/03/14/#ubuntu-server.txt

smoserthumper, pong.00:10
Midion__If adding a user to a certain database in mysql is this the proper command? GRANT ALL PRIVILEGES ON DATABASENAME . * TO 'DATABASEUSERNAME'@'localhost';00:31
Midion__I want to user to have access to the database and all types inside the database.00:31
Midion__tables inside the database i mean.00:32
=== jim is now known as Guest17357
=== stgraber_ is now known as stgraber
=== markthomas is now known as markthomas_away
MavKenI am running 12.04 on my server... Should I run dist-upgrade?  I am getting... The following packages have been kept back:02:08
MavKen  linux-headers-generic-lts-raring linux-image-generic-lts-raring02:08
Midion__ok all errors on my server are one but this: [Thu Mar 13 22:10:10 2014] [notice] Graceful restart requested, doing restart [Thu Mar 13 22:10:10 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.10 with Suhosin-Patch configured -- resuming normal operati02:12
=== thesheff17_ is now known as thesheff17
basketballcan i set up a old 2002 computer as a server02:40
MavKenyep02:41
MavKencommon use for an old machine02:41
MavKenclean install of ubuntu server and you could have a decent setup basketball02:42
basketballcan i set up a old 2002 computer as a server02:42
basketballwhoops02:42
basketballMavKen,  is it easy to set up and will it be slow02:42
sarnoldMavKen: I suggest apt-get -u dist-upgrade -- see which packages apt wants to delete, -then- decide if you want to do the upgrade...02:42
sarnoldMidion__: that message may just be for log rotation or something similar. if you see it roughly daily that's not a big deal.02:43
basketballwhat version should i use 12.04 or 13.1002:43
sarnoldbasketball: probably 12.04 LTS; it's still supported for another three years. 13.10 support will end in another three months or so, at which point you'll be forced to upgrade to 14.04 LTS.02:44
MavKenbasketball, how much RAM do you have?02:44
basketballlike 80 mb02:44
sarnoldbasketball: while we all expect 14.04 LTS to be good, it'd be nice if you could upgrade to it on your schedule rather than rushed into it. :)02:44
basketballif not less02:44
MavKenif you are just learning... use 13.10 because the virtual hosts are like 14.04 will be... it is different than 12.04...subtle but different02:45
MavKenyou need at least 512mb RAM... ideally 1GB02:45
basketballi have 240 mb02:46
MavKeni have been running 13.10 on my production server, I have 12 clients hosted on it.02:46
basketballMavKen,  can i set it up like dropbox and if i only have 240 mb will it still work02:46
sarnoldwhile we were able to make good use of a 80 megabyte machine back in 2002 I wonder about today's software02:46
MavKenno02:47
basketballno?02:47
MavKenhow can you only have that much ram on a 2002 era computer?02:48
MavKenyou sure you are not talking about the cache?02:48
basketballit says memory 240 mb02:48
MavKenwhere?02:48
MavKensarnold, thanks for that info02:49
sarnoldMavKen: did you find out what was going to be uninstalled?02:49
MavKenI have not run it yet... i ran upgrade to get a few things...will ssh back in shortly and try that02:50
MavKenahh... nothing removed...02:50
MavKenThe following NEW packages will be installed:02:50
MavKen  linux-headers-3.8.0-37 linux-headers-3.8.0-37-generic02:50
MavKen  linux-image-3.8.0-37-generic02:50
MavKenThe following packages will be upgraded:02:50
MavKen  linux-headers-generic-lts-raring linux-image-generic-lts-raring02:50
MavKen2 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.02:50
sarnold240 is more like it, you might not get a nice and purty owncloud experience but running svn over apache ought to get you a tolerable web-dev experience.. sftp will of course just be awesome02:51
sarnoldMavKen: yeah you probably do want new kernels :) new kernels come iwth security fixes02:51
MavKenyeah... what is the best command to use when rebooting production server and is it best practice to reboot on occasion?02:53
sarnoldMavKen: you'll have to gauge the severity of things fixed in the kernel vs your local users and sometimes potential for remote exploits when deciding when to reboot02:55
sarnolddinner time ;) have fun02:55
basketballMavKen,  the bios says 256 memory03:11
MavKenyou can buy memory very cheap... 1GB is $20 at Fry's03:12
basketballMavKen,  so it wont work with only 25603:14
MavKenhttps://help.ubuntu.com/community/Installation/SystemRequirements03:14
MavKenit says it will03:15
MavKenubuntu-server not ubuntu-desktop03:15
Midion__Can I uninstall phpmyadmin using the following?  sudo apt-get purge phpmyadmin  Will this mess anything up if I do?03:21
Midion__I will just do everything cli.03:21
Midion__I just dont want to mess anything up trying to uninstall it.03:22
basketballsarnold,  can you run ubuntu server without keyboard mouse or monitor just the computer03:43
basketballI installed ubuntu server on a usb and when i boot i get Non-System disk or disk error03:47
arrithbasketball: make sure you can boot to usb03:53
basketballok brb trying03:53
arrithMidion__: that might work, it won't be guaranteed to get rid of everything possibly, since phpmyadmin might put things in odd places03:53
arrithbasketball: its in the bios03:53
basketballyes it is bootable03:56
basketballarlen,03:58
arrithbasketball: do you still get the error?03:59
arrithbasketball: you might not have usb high enough in your boot order in your bios03:59
basketballI tested it on this laptop03:59
basketballboot order usb is #103:59
basketballI am preforming a hard drive check it is a 60%04:00
arrithok04:01
arrithbasketball: are you installing ubuntu server on the laptop or another computer?04:01
Midion__arrith: ok thanks04:01
basketballanother computer04:01
arrithMidion__: doing a reinstall might be better. but only do that i guess if you run into issues04:01
arrithbasketball: you should check in that other computer's bios if usb is set higher than hard drive, in boot order04:02
basketballarrith,  that is what i did check04:02
basketballi am talking on laptop04:02
arrithbasketball: i'm not sure i understand, what do you want to do with the laptop?04:04
basketballarrith,  nothing04:04
basketballarrith,  i am installing it on desktop04:04
Midion__I ran sudo apt-get purge phpmyadmin and then sudo apt-get autoremove. I think its all gone now.04:05
arrithbasketball: ok. so you checked the desktop bios?04:05
basketballyes04:05
arrithMidion__: yeah autoremove is good. alright04:06
arrithbasketball: and you get the error on the desktop?04:06
basketballand it is preforming a hard drive check04:06
basketballand yes04:06
arrithbasketball: you might have to install with a CD04:06
basketballi cant as it doesnt reconize dvds and i dont have cd with enough space04:07
arrithah04:07
arrithbasketball: have you booted to usb on anything before on that desktop?04:08
basketballno my granddad gave it to me today04:09
basketballno my granddad gave it to me today04:09
basketballthe hard drive check is at 8-%04:10
basketball8004:10
basketballarrith,  what next?04:15
basketballshould i reinstall xp then try to install ubuntu server04:16
sarnoldsigh I know we've got some server images around here somewhere that will fit on a cd..04:24
sarnoldbasketball: ah, finally found it. this might be the thing: https://help.ubuntu.com/community/Installation/MinimalCD04:25
basketballsarnold,  i am trying a xp disk and that works04:28
Midion__That was a version of windows that I did like.04:37
sarnoldheh, not me, I thought it looked like cartoonland04:37
sarnoldwin2k was the last one I thought was decent :)04:38
basketballwindows is poop go ubuntu]04:41
Midion__Just thinkin about wondows 8.1 stresses me out. lol04:42
basketballi hate windows 804:44
arrithbasketball: you want to dual boot?04:48
basketballnope just server04:48
arrithbasketball: you can just turn it off when it does a hdd check like that, that's a windows thing. whenever linux checks it's called 'fsck' (stands for "filesystem check")04:49
basketballI am installing xp so that it will get rid of that error then i will erase xp and install ubuntu server04:50
arrithbasketball: ok so when you try to boot with the usb inserted, do you see any messages about "boot list"?04:50
basketballno04:50
arrithbasketball: that error is from the contents of the hdd, since you're going to be just having ubuntu on the hdd, it doesn't matter if there's an error04:50
arrithbasketball: do you press f12 to get into the bios on the desktop?04:51
basketballi am installing xp i cant check04:51
arrithbasketball: since you don't want xp, you can hold the power button until it turns off04:52
arrithbasketball: any errors on it now are from the old windows04:52
arriththere's this one cd that i remember04:52
arrithi think i found it04:54
arrithhttp://download.plop.at/files/ploplinux/4.2.2/ploplinux-4.2.2/ploplinux-4.2.2.iso04:57
arrithfrom http://www.plop.at/en/ploplinux/download.html04:57
arrithbasketball: when you boot that iso it will give you a menu with "usb" as one of the options. use the arrow keys to select "usb" then hit enter04:57
arrithyou can use that to install ubuntu server from usb04:57
arriththe iso is about 80 megabytes04:58
basketballarrith,  and sarnold  the link worked and it is installing05:38
arrithbasketball: did you use the plop iso?05:38
basketballnow is there a way to have the server run without a monitor, keyboard, or mouse05:38
arrithor minimal05:38
basketballno i used the https://help.ubuntu.com/community/Installation/MinimalCD05:38
arrithah05:38
arrithbasketball: just don't install any desktop, and select "openssh server" during the install05:39
arriththen you can ssh in05:39
basketballyou know how dropbox you can go to dropbox.com05:39
basketballcan i do something like that with this where i can access my files anywhere05:40
arrithbasketball: yes. there is dropbox for linux. but sparkleshare is better, in my opinion05:42
basketballno like my own server version05:43
sarnoldbasketball: the computer that runs my irc client is a little pandaboard with no monitor and no keyboard attached, it just has power and ethernet. :)05:43
basketballhow can i put my files in the cloud05:44
sarnoldbasketball: some computers will fail to boot if they don't have a keyboard attached -- that stupid "Error! No Keyboard! Press f1 to continue!"05:44
arrithbasketball: google sparkleshare and owncloud05:46
arrithbasketball: also freedombox and mediagoblin05:46
basketballarrith,  i mean like have it on my own server instead of theirs05:47
cfhowlett!cloud|basketball,05:47
ubottubasketball,: Ubuntu Cloud Infrastructure is a ready to deploy Infrastructure-as-a-Service (IaaS) based on OpenStack. See https://help.ubuntu.com/community/UbuntuCloudInfrastructure for further details.05:47
arrithbasketball: sparkleshare is all local05:47
arrithbasketball: read up on it already *hits with stick* :P05:47
sarnoldand don't read about openstack, that's a waste of time on your machine :)05:49
basketballarrith,  how do i use sparkle share if i dont want a monitor05:51
sarnoldvery few things require a monitor05:51
basketballdoes sparkle share05:51
arrithbasketball: you use your server just for file storage05:51
arrithbasketball: server for sparkleshare does not05:52
basketballarrith,  yes that is what i want05:52
basketballit is still installing05:52
arrithbasketball: google ubuntu sparkleshare server05:52
sarnoldouch, sparkleshare requires the mono runtime.. that might be a bit heavy on a twelve year old machine with little memory05:52
arrithread up on guides to set it up05:52
arrithsarnold: oh. might be05:52
arrithsarnold: eh if it's not running anything else05:52
sarnoldarrith: yeah, maybe. patience is a virtue anyway :)05:53
basketballsarnold,  what else can i run05:53
sarnoldbasketball: dunno, I've always been content with scp :)05:53
arrithrsync heh05:53
basketballscp?05:53
sarnoldoh yeah, rsync is bloody awesome :)05:53
basketballhey i am at software selection what do i do05:53
arrithbtw funfact, sparkleshare requires nothing on a server besides ssh and rstnc05:54
arrithsarnold: so the clint would do the mono stuff05:54
sarnoldarrith: oh? is there a different package than sparkleshare that does the server-side work?05:54
arrithbasketball: openssh server, but make sure no desktop environmnt05:54
sarnoldarrith: wait. is there a server-side software? :)05:54
arrithsarnold: no, it's just supposed to work with a ssh account05:54
arrithsarnold: there isn't :)05:55
sarnoldarrith: perfect for basketball :)05:55
arrithbasketball: read up on the ubuntu server guide05:55
basketballif i pressed enter does that install it05:55
basketballdo you have a specific link05:55
arrithbasketball: https://help.ubuntu.com/lts/serverguide/05:56
arrithbasketball: space toggkes, enter goes to the next screen. at least in the debian installer05:57
basketballshoot then i didnt install openshh05:57
sarnoldjust be sure to run apt-get install openssh-server openssh-client  some time before rebooting then :)05:59
arrithbasketball: you can run taskel at any time06:00
arrithbasketball: sudo tasksel06:00
arrithyou can also go back in the installation menu, but that's not necessary06:00
basketballit is still installing i cant run anything06:00
sarnoldbasketball: that's fine, no hurry.06:01
basketballI think the hardest thing i have ever done is replace hardrive on this thing06:02
cwiggsCan anyone share some thoughts on running my server off of raid1 thumbdrives?06:02
cwiggsI was thinking of running ubuntu off of two thumbdrives and then use my 2 1tb drives for data?06:02
sarnoldcwiggs: probably pretty poor speed reading / writing to those things but I suppose you're prepared for that if you're asking :) hehe06:03
cwiggsWorse than a 3.0gb sata hdd?06:03
basketballdo i install grub boot loader to the maSTER BOOT RECORD06:03
cwiggsgrub replaces the MBR06:03
sarnoldcwiggs: the ones I've had tended to do 15 MB/s06:03
cwiggssarnold: interesting, i figured they'd be faster since they are SSDs06:04
sarnoldbasketball: I think so, yes06:04
sarnoldcwiggs: oh, actual SSDs hooked up over usb?06:04
cwiggsno, thumbdrives, usb drives, jumpdrives, etc.  but they are SSD right?  just very small ones?06:05
cwiggsthey aren't magnetic drives, thats for sure06:05
basketballdo i set time to UTC06:05
cwiggsbasketball: yes06:05
sarnoldcwiggs: similar but not nearly the same speed :) the ssd in my laptop gets something like 500 MB/s ..06:05
cwiggssarnold: i just figured the HDD would be the slowest, then thumbdrives, then SSDs06:06
sarnoldcwiggs: test yours, dd if=/dev/zero of=/dev/sdwhatever bs=16k count=1000 conv=fsync06:07
basketballsarnold,  it is booting now what06:07
sarnoldbasketball: log in, install openssh-server and openssh-client06:07
cwiggssarnold: i haven't bought the thumbdrives yet, i was just wondering what the benefits/downfalls would be06:07
basketballhow do i make it auto boot to the server06:07
arrithcwiggs: usb 2.0 is slower than sata206:07
arrithcwiggs: if you buy anything, buy like a 64 GB SSD to run your OS on06:08
arrithcwiggs: probably could get one for $50 or less06:08
cwiggsarrith: a 16gb usb drive is much cheaper than a 64gb ssd drive though, and i'd like to raid them.06:08
sarnoldcwiggs: most thumbdrives are mighty slow. usb2 is painful. usb3 is pretty speedy but I think most 'thumb drive usb3' would top out at speeds roughly equal to 5400rpm drives, probably not yet to 7200 rpm drive speeds06:08
sarnoldbasketball: how do you mean? it'll boot right into ubuntu, right?06:08
basketballit waits on grub and i have to press enter06:09
arrithcwiggs: i would take a sata2 drive over a usb thumbdrive, hm raid 0 might help. but an ssd is so much better06:09
arrithsarnold: there are some pricey usb3.0 thumbdrives that are effectively tiny SSDs, they do a few hundred megs a second06:09
sarnoldarrith: OOOO06:09
cwiggsarrith: I was actually thinking raid1, for redundency.  True, but i was trying to be cheap06:10
sarnoldarrith: do tell more :)06:10
arrithsarnold: yeah it's sick06:10
basketballsarnold,  how do i install openshh client and server06:10
sarnoldbasketball: sudo apt-get install openssh-server06:10
arrithsarnold: basically say on newegg, any usb3.0 usb drive should be around there06:10
sarnoldbasketball: probably the client is already installed but if not openssh-client for it06:10
arrithcwiggs: well for speed, which you're gonna need.06:10
basketballunable to loacate package06:10
arrithcwiggs: one thing, thumbdrives are definitely not meant to be used that way, as in booted off of and having OSes installed on them. i tried to do that for like a month and it was hell06:10
arrithbasketball: you really need to read that server guide06:11
arrithbasketball: also google tasksel06:11
cwiggsarrith: what happened? a lot of bitcoin miners were running off of usb drives06:11
sarnoldarrith: wow! :)06:11
sarnold200MB/s: http://thewirecutter.com/reviews/the-best-usb-3-0-thumb-drive/06:11
arrithcwiggs: i forget the details but it was buggy and swapping was the worst thing ever. this was on a laptop though06:11
sarnoldarrith: awesome, thanks for correcting that old bias :)06:11
arrithsarnold: yeahh check that out06:11
arrithsarnold: np. usb 3.0 is awesome06:11
cwiggsarrith: good to know, thanks06:11
sarnoldbasketball: sudo apt-get update -- try again?06:12
arrithi keep waiting for phones and routers to freakin come out with usb3.006:12
arrithcwiggs: server might be different actually06:12
basketballi did run that06:12
sarnoldcwiggs: haha, I take it back :) knock yourself out, that's bloody awesome :)06:12
arrithcwiggs: if they're usb3.0 i guess06:12
cwiggsnot usb3.0 : (06:12
arrithehh06:12
arrithi say buy it and try06:12
arriththen buy an SSD06:12
arrith:P06:12
cwiggshaha06:12
basketballgot it06:12
cwiggsthat would be nice06:12
cwiggsanother question for you, if i have two 1tb drives, what is the best way to add them together to get 2tb?  my friend said to use Glusterfs so that i could always add more drives later06:13
cwiggsbut i could use LVM or MooseFS?06:13
sarnoldnever heard of moosefs..06:13
basketballsarnold,  i installed it now what06:13
sarnoldbasketball: test it :) ssh localhost06:13
cwiggshttp://www.moosefs.org/06:14
cwiggsit is pretty awesome06:14
cwiggsmy understanding is GlusterFS is better06:14
arrithhttp://www.newegg.com/Product/Product.aspx?Item=N82E1682021171806:14
basketballsarnold,  how do i access files from web browser on a windows pc and linux pc06:15
arrithcwiggs: that's crazy what06:15
sarnoldheh, a pal who tried out glusterfs -hated- it with a passion. never seen him hate something so much06:15
arrithcwiggs: just lvm or mdadm, or if you want to get super fancy the best is zfsonlinux06:15
cwiggssarnold: lol06:15
sarnoldbasketball: try owncloud. it might be too heavy for your machine, but worth a shot.06:15
arrithdepends on if you want performance or redundancy kind of06:15
cwiggsi just want performance06:15
sarnoldhrm, moosefs looks neat right up until "fuse"06:16
cwiggsjust gonna hold media that i can always d/l again06:16
arrithbasketball: sparkleshare might be better for what you want, but it's not from a browser06:16
sarnoldI know fuse works well for a lot of folks but .. I'd hate to rely upon it for something I cared about.06:16
basketballi need to access it from school and home06:16
arrithcwiggs: do a big raid 0 then, you can always add drives to that then grow the fs. ext4 on software raid 006:16
arrithcwiggs: reading up on zfsonlinux is good to do though06:16
cwiggsarrith: hmmm, i'll check out zfsonlinux06:16
cwiggsthanks06:16
arrithcwiggs: but yeah you can use standard mdadm for a raid006:17
cwiggsarrith: there are so many options, it's a little overwhelming06:17
cwiggsmakes me want to just keep the server how it is.06:17
arrithdoesn't have many features06:17
arrithcwiggs: well like glusterfs and stuff, unless you want to learn about them, are only for people with like lots of servers06:18
basketballwhat is mysql and why do i need to set a passowrd06:18
cwiggsarrith: true, i started in a sysadmin type place about 6 months ago , so it wouldn't hurt to learn more06:18
sarnoldzfsonlinux looks like awesome stuff, I intend to set up my own nas-server-of-doom using it Sometime Soon; but I wouldn't want to use ZoL on /, it just looks like a real hassle06:18
cwiggsmysql is used to store the username/password data for owncloud06:18
sarnoldcwiggs: cripes, over-engineer much? :)06:19
cwiggssarnold: haha, just a little06:19
sarnolddon't get me wrong, I tend to think of mysql as a toy -- unfairly, but there it is -- a bloody username:hashed_password file would do the job fine for 99.9% of users though.06:19
basketballsarnold,  once this installs how do i add the files to it06:20
sarnoldbasketball: no idea :) never seen it before06:20
basketballthe owncloud06:20
sarnoldbasketball: I hope it'll have a /usr/share/doc/owncloud/README that will give some hints though :)06:20
cwiggsBasketball: it's pretty easy06:20
basketballcwiggs,  can i put my desktop / server under the desk without it making noise06:21
cwiggsbasketball: it's mostly web based, so you can use a web browser to go to [ip of owncloud server]/owncloud06:21
cwiggsbasketball: i'm not sure what you mean?06:21
cwiggsbasketball: it'll make just as much noise as a regular computer06:21
basketballlike without a monitor keyboard and mouse06:21
cwiggsoh, yeah06:21
cwiggsyou can run it headless06:21
cwiggsuse ssh to work on it06:21
basketballcan i add files from web browser06:22
cwiggsyep06:22
cwiggse.g. go to 192.168.1.130/owncloud06:22
cwiggsand it'll ask you login and then you can upload stuff to owncloud06:22
cwiggsowncloud is pretty sweet06:22
basketballis this the amount of noise the computer will normally make06:23
cwiggswhat do you mean by noise?06:23
basketballit is making a lot of noise06:23
cwiggsis it screaming at you or something?06:23
cwiggswhat kind of noise?06:23
cwiggslike the HDD spinning?06:23
basketballyeah06:24
cwiggshuh, it'll probably be like that a lot, maybe the HDD is going out?06:24
cwiggsmy server doesn't sound louder than my desktop06:24
basketballYou need to enter either an existing account or the administrator.06:27
basketballi am at http://192.168.1.117/owncloud/index.php06:27
cwiggsfor owncloud?06:27
cwiggsdidn't it ask you to create an account?06:27
basketballit just asked for password06:27
cwiggsthat might be for the admin account06:28
cwiggscan you login ?06:28
basketballwhat is the user06:28
cwiggstry admin06:28
basketballnope06:29
cwiggsodd, when i setup mine it asked me to create a user06:29
basketballi dont have a gui06:30
basketballis that why06:30
cwiggsno06:30
cwiggsit asked me to create the user when i went to the webui06:30
basketballwha do i run06:30
cwiggswhen you went to the webui for owncloud, that's when it asked me to create a user06:31
basketballhow do i redo that06:31
cwiggssomeone else more familar with SQL might be able to help you find the username06:31
cwiggsuh, i think you'd have to reinstall owncloud06:31
basketballok uninstalling06:32
cwiggsgood luck06:32
cwiggsit might kept the old sql db, i'm not sure06:32
basketballpurge :)06:32
cwiggshaha, yep06:32
cwiggsif i remember i had a probably purging it06:33
cwiggsi just ended up reinstall linux since it was a virtual machine06:33
basketballnope that didnt work06:33
basketballit remebered the db06:33
cwiggshm06:33
sarnoldthen apt-get purge mysql-server-5.5 or whatever it is06:33
sarnoldi can never remember with mysql..06:34
basketballstill didnt ask me for a password06:35
cwiggsit won't ask you for a password when installing it in the command line06:35
cwiggsbut when you go to the webui it should06:35
basketballwait i see06:35
cwiggsit'll ask you to create a sql db too06:35
basketballwhat is the data base user06:35
cwiggsroot?06:36
basketballdb name06:36
cwiggsyou are creating the db06:36
cwiggsso you can name it w/e06:36
cwiggsi just named mine owncloud06:36
basketballYou need to enter either an existing account or the administrator.06:38
basketballpeople said to manually create db how do i do that'06:39
raj__How could I tell rsnapshot to keep initial(very first) backup forever?06:41
cwiggsbasketball: i don't know enough about SQL to help you there06:41
cwiggsraj__: i don't think you can, that's isn't really what rsnapshot is for.06:42
cwiggsyou might be able to set the backup interval really high06:42
cwiggs?06:42
basketballarrith,06:42
basketballsarnold,06:42
sarnoldraj__: maybe you could do something kinda gross, like running it once, then setting the "immutable" attribute on all those files and directories06:43
raj__cwiggs: what should I use for keeping the iniitial backup so that I (could always see the default confgurations) ?06:43
basketballsarnold,  do you know06:43
arrithlol uhm06:43
arrithi'd be following a guide personally06:43
arrithor the readme06:43
cwiggsraj__: default config for what?06:43
sarnoldbasketball: never used it, I suggest checking out /usr/share/doc/owncloud/README to see if there's a nice guide06:44
raj__i meant default configuration of all softwares & my system06:44
cwiggsraj__ do you edit that stuff regularly?06:44
raj__nope not regularly ..just rarely or once06:45
cwiggshmmm06:45
cwiggsI might be the wrong guy to answer but i'd probably just use rsnapshot or use LVM to take snapshots06:45
sarnoldlaptop battery nearly dead, have a good night :)06:45
cwiggswith rsnapshot if nothing has changed it won't do anything06:46
cwiggsit just creates hardlinks06:46
cwiggssarnold: night, thanks for the help06:46
raj__i know that... love it for that06:46
sarnoldcwiggs: thanks for the education :)06:46
cwiggsnp06:46
raj__just wanted to keep the initial backup as well06:46
cwiggsraj__: boot from live usb and rsync the whole drive?06:47
cwiggsor dd?06:47
raj__cwiggs: actually it is a remote server (vps)..06:47
cwiggsraj__: hmm, idk, but that is a good question06:48
cwiggsanyone else got any ideas for raj__?06:48
raj__may be I could just rsync to another remote server but I better like to keep a rsnapshot like "diff" kind of backup on the same server so i could just use/see it when needed06:49
raj__sarnold: and how do I set that immutable attribute ?06:50
basketballanyone know how to set up owncloud06:52
arrithbasketball: you need to google up a guide on that06:54
arritheh06:55
arrithraj__ needs to do some kind of snapshot06:55
arrithi suggest rsnapshot06:55
arrithsudo mkdir /backups and use rsnapshot, can even set it on cron, to put snapshots there06:56
arrithalso etckeeper could be an option, if the concern is only configuration files06:56
basketballi cant find one06:57
raj__arrith: I am using rsnapshot, my only wish is to keep the initial first backup created by rsnapshot forever.. is that possible ?07:00
arrithraj__: yes, personally i just set my backup count really high. but you can manually copy it to the side07:01
arrithraj__: rsnapshot says the commands it does07:01
arrithraj__: i think it's like   "cp -al"07:01
basketballgot it07:03
basketballhow do i sync dropbox and this own cloid07:04
raj__arrith: may be I should add an yearly interval ? ..to keep year old backups ? increasing backup count may considerably increase space requirements...!?07:07
arrithbasketball: probably rsync and cron. i'd use sparkleshare myself07:08
arrithraj__: hm that's an idea. i forget how it does rotation but keeping a backup from a year ago is a good idea07:08
arrither snapshot07:08
arrithnot a backup07:08
raj__arrith: "snapshot not a backup"- rsnapshot can just create backups ? did you mean to suggest a snapshot other than a backup  by  rsnapshot?07:10
arrithraj__: technically a backup has certain requirements. different media, offline, possibly at a remote location07:11
arrithjust being pedantic heh07:11
basketballwhy does my computer need keyboard plugged in07:11
arrithbasketball: if you do tasksel and install ssh server you can remotely login07:12
raj__okkay.. got that.. you call it snapshot as I am keeping it on same server right.. or does not fully meet requirements to be called "backup".. right07:12
arrithraj__: yep07:12
arrithraj__: or if you want just do one rsnapshot then do a "cp -al" of it to keep it around07:12
basketballarrith,  the computer still needs to be on for the own cloud07:13
arrithcp - al daily.0 keepforever07:13
arrithbasketball: yeah you have to leave the server on07:13
basketballhow do i upload more than 512 mb at a time07:15
raj__arrith: is this is for one time snapshot that will be kept forever ?07:16
arrithraj__: yeah. if it's not named the way rsnapshot named it, it won't know about it and won't delete it07:16
raj__arrith: thanks.. the last clarification.. if I get this correct, this needs to be run after rsnapshot has created my first backup named "daily.0" & this will actually create a hardlink so that this new snaphot folder is never deleted by rnsapshot while rotating/deleting old backups07:20
arrithraj__: yeah. you need to make sure that the "cp" that you run creates hardlinks though, so it saves space07:22
arrithi think "cp -al" but i'm not totally sure07:22
raj__"ln" could also be used to create harlink...07:23
sarnoldraj__: chattr07:23
basketballarrith,  is there a way to make the url easier07:29
arrithbasketball: which url?07:30
arrithraj__: well, recursively for a huge directory tree?07:31
arrithcan't hardlink dirs :P07:31
raj__arrith: I attempted & got the error.. :) thanks your solutions (cp -al) works though.. it created a directory of hardlinked files, I think this infact could be used to 'keep forever' snapshots of some specific times..07:40
arrithraj__: haha. yeah, ln only for some stuff07:42
raj__the good thing is that rsnapshot keeps each backup as if it is a full backup so this solution is working for us.. else it wouldn't be possible07:42
arrithraj__: snapshot*07:43
arrithraj__: google   backup 3 2 1 rule07:43
raj__yes *snapshot*07:43
arrithheard about this 321 rule recently and it's pretty nice07:43
raj__hmm07:44
=== SpamapS_ is now known as SpamapS
jamespageadam_g, I'll look today08:06
lordievaderGood morning.08:28
freakynlHi, our webserver was running an older 12.04 release with the 3.2 kernel. Just installed linux-generic-lts-saucy but now there's errors on vmblock.ko building (part of the dkms package of open-vm-tools) - anyone know how to build it?09:25
arrithfreakynl: http://paste.ubuntu.com the errors10:32
jamespagesarnold, fyi hopefully we'll have a 1.18.0 release of juju-core today or next week10:43
jamespagesarnold, just in case you are mid review of 1.17.410:43
jamespagesarnold, it should not change hugely but if there is anything coming out of the MIR review, then we can feed that back upstream for fixing10:44
freakynlarrith: http://paste.ubuntu.com/7089575/11:24
freakynlit also fails on a 'natively' installed 12.04.4 version though with the same error (ie ubuntu server that came with 3.11 out of box)11:24
freakynlseveral other modules do exist, like vmw_balloon.ko11:25
arrithfreakynl: that's from the open-vm-tools in the repos?11:33
mardraumfreakynl: 12.04.4 with 3.11 out of the box?11:37
freakynlarrith: yep12:10
freakynlmardraum: doesn't matter, gives the same error - but the box it concerns comes from 12.04.0 or 12.04.112:11
arrithfreakynl: that might be a real-live bug12:12
arrithfreakynl: checking for bug reports in the ubuntu bugtracker for that package would be good. also looking into upstream and how they handle bugs in distro packages12:13
freakynlif the version number is any indication it's no wonder :) seems to come from 201112:17
arrithfreakynl: that might be. you might have to grab an upstream release. hopefully they have a repo and/or debs12:18
raj__do I need to install anything to get the logs written in my logfiles ? cannot see anything in 12.04 !12:23
=== DerpTruck is now known as VampiricPadraig
arrithraj__: logs of what?12:25
freakynlraj__: /var/log/syslog ubuntu doesn't seem to use messages12:26
raj__iptables logs12:26
arrithiptables specifically has to be told to LOG for one thing, and uhm, yeah that should be in syslog. there's also like .allow and .deny files somewhere12:27
freakynlraj__: iptables -L -v -n12:28
freakynlsee if anything has LOG as target12:28
raj__arrith: I've set iptables rule to log, but they dont get written unless i install rsyslog, sysklog or syslog-ng12:28
freakynlraj__: all ubuntu installs I have by default came with rsyslogd12:29
raj__once installed they start to get logged12:29
freakynldid you remove it?12:30
raj__freakynl: not on my 12.04 that i got from my webhost.. i didn't remove .. anyway.. is it neccessary even if i dont do remote logging or anything complex with logs ?12:31
freakynlyes kernel doesn't write to log files - what else would you expect to do that?12:31
raj__i thought rsyslog was required for remote logging or other complex log management tasks12:32
freakynlit can send logs to remote, so can most others like syslog-ng12:32
raj__can  sysklogd be  also used for remote logging ?12:33
raj__i cant use rsyslog due to some limitations12:33
raj__freakyn: i have no idea what these logging daemons are capable of besides, collecting & writing logs from running services.. could you some idea about other capabilities of them ?12:36
arrithraj__: their manpages will go into that12:36
raj__like one is remote logging..12:36
arrithhttp://manpages.ubuntu.com12:36
=== blake_r_ is now known as blake_r
basketballarrith,  the one to get to own  cloud15:21
=== markthomas_away is now known as markthomas
basketballarrith,  is there a way to make the url easier16:07
jamespageDaviey, if you are around - https://bugs.launchpad.net/ubuntu/+source/ceilometer/+bug/129257916:13
jamespagecould do with a release team ack - multiple teams sprinting on testing icehouse right now :-)16:13
jamespageurgh - wrong channel technically16:13
=== Ursinha is now known as Ursinha-afk
Davieyjamespage: done.16:24
jamespageDaviey, ta16:24
Davieyjamespage: xhannel doesnt matter too muxh imo. -releaae ia subacribed.16:25
pmatulis3jamespage: re ubuntu & ceph, it is strange that our supported combination is 'dumpling on precise' (inktank only supports this) yet we need to go to the upstream repo to get dumpling.  i imagine this will be the same for 'firefly on trusty'16:28
jamespagepmatulis3, sorry - not sure I understand16:29
jamespageoh - I see16:30
pmatulis3jamespage: well, dumpling is not available on precise, unless i use the cloud archive i think16:30
jamespagepmatulis3, ceph dumpling is avaliable in the Havana cloud archive for Ubuntu 12.0416:30
jamespagepmatulis3, however firefly will be the release version on trusty - no cloud archive required.16:31
RoyKwhat is dumpling?16:31
jamespageRoyK, its a type of squid and also the codename for the 0.67 release of ceph16:31
jamespagedumpling, emperor, firefly, giant, hammer....16:31
pmatulis3jamespage: really?  i heard that inktank will not consider firefly stable on trusty until the first or maybe second point release16:32
jamespageRoyK, like Ubuntu but they started at 'A'16:32
=== Ursinha-afk is now known as Ursinha
pmatulis3jamespage: but good :)16:32
jamespagepmatulis3, well Sage and Neil failed to mention that in the vUDS session we had this week16:32
Davieypmatulis3: where did you hear that?16:32
basketballhow do i find the graphics and the ram amount16:32
pmatulis3Daviey: i asked inktank, but maybe the person was not 100% knowledgeable16:34
pmatulis3let's go with the vUDS session16:34
=== olegb_ is now known as olegb
jamespageDaviey, sorry - I cocked up - python-ipaddr is not in main17:22
jamespageI should have spotted that :-)17:22
=== mjohnson15_2 is now known as mjohnson15
Davieyjamespage, as should i :)17:40
jamespageDaviey, I raised an MIR17:45
jamespagehttps://bugs.launchpad.net/ubuntu/+source/python-ipaddr/+bug/129262917:46
basketballarrith, and sarnold  how do i ssh into the server18:14
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
sarnoldbasketball: ssh hostname   or ssh ip address18:16
basketballhow do i know the host name18:16
bekksbasketball "or".18:16
sarnoldbasketball: depends how you set up nameservice in your network18:16
sarnoldjamespage: ooh! excellent news :) thanks18:17
basketballgot it18:18
bekksjamespage: What does "MIR" stand for in the context of launchpad?18:18
jamespagebekks, Main Inclusion Request18:18
bekksAh, thanks :)18:18
jamespageits the process packages follow for entering Ubuntu main18:18
basketballhow do i change the max upload at a time18:18
jamespagesarnold, yeah - looking at 1.17.5 now; however the juju-mongodb bits got reverted as it was buggy - it should make 1.18.018:19
jamespage(juju not juju-mongodb)18:19
bekksbasketball: Whats does "the max upload at a time" mean? In which context?18:19
byprdcthey guys how can I add a new user to another users public folder for sftp access?18:20
sarnoldjamespage: it'd be nice to get all the work done for the 1.17 timeframe into trusty, I've been impressed by how much the juju team gets accomplished :)18:20
sarnoldbyprdct: the 'easy' way is to create a new group for both your users, set the group owner of the directory in question to the new group, and make sure it has group read, execute, and perhaps write if you want them both to use it18:21
basketballowncloud18:22
sarnoldbyprdct: you can also use the posix-ish acls (man setfacl) to do the job, but that may require new mount options for your filesystem18:22
byprdctthanks sarnold think I will stick with the easy route :)18:22
jamespagesarnold, well if they don't pop a 1.18 release before final freeze, I'll have to revert to 1.16.x18:22
byprdctso create a group called sftp and add me (root) as group owner and them (somename) with read, execute and write for only the public folder?18:23
=== Ursinha is now known as Ursinha-afk
sarnoldbyprdct: well, you'd be 'equal' co-members of the group...18:26
sarnoldjamespage: here's hoping they like hte way 1.18 is shaping up..18:26
byprdctsarnold I just want to allow this user to sftp to a public folder but not be allowed to access anything beneath it e.g. srv/www18:27
byprdctactually srv/www/public18:28
sarnoldbyprdct: I think so long as any child directories don't have that group ownership the other user couldn't modify them or their contents..18:29
hallynjcastro: no.  home/end in the place of control?  (uh, capslock :)  did you photoshop that?18:30
byprdctsarnold I'm worried about the parent directories e.g. srv/www so it should work that was too as well18:32
byprdct?18:32
=== Ursinha-afk is now known as Ursinha
basketballsarnold,  how do i put my irc bot in the server18:36
jcastrohallyn, I did not make it up, that's what it actually is, I can't believe it either18:36
bekksbasketball: Which ircbot in which server?18:38
basketballsupybot and my server18:38
bekksbasketball: And which irc network do you want to connect with?18:39
basketballfreenode18:39
bekksbasketball: Honestly, no offense meant, but you shouldnt mess with bots until you know how to connect them to a irc network ;)18:40
basketballbekks,  i have my bot up18:40
bekksAnd thats very well documented for supybot, e.g.18:40
basketballbekks,  that is my bot18:41
bekksWhat is your bot?18:41
bekksI dont see part/join messages.18:41
basketballsuppybot^,18:41
basketball~reply bekks  I am basketball's bot18:42
suppybot^basketball: bekks I am basketball's bot18:42
bekksWhatever you need that for.18:42
basketballhow do i put him on server18:42
bekksUpload it.18:43
basketballhow18:43
bekksUsing whichever file transfer protocol you configured on your server.18:43
basketballso i transfer everything18:44
basketballand then it works18:44
bekksNo.18:44
bekksYou transfer it, and then you have to make sure everything works as expected.18:44
basketballbekks,  i am installing the program on the server how do i copy all the files18:45
basketballi dont have a gui18:45
bekksUsing whichever file transfer protocol you configured on your server.18:45
bekksIf you dont have a gui, you have to use the terminal.18:46
bekks!ssh | basketball18:46
suppybot^basketball: SSH is the Secure SHell protocol, see: https://help.ubuntu.com/community/SSH for client usage. PuTTY is an SSH client for Windows; see: http://www.chiark.greenend.org.uk/~sgtatham/putty/ for it's homepage. See also !scp (Secure CoPy) and !sshd (Secure SHell Daemon)18:46
ubottubasketball: SSH is the Secure SHell protocol, see: https://help.ubuntu.com/community/SSH for client usage. PuTTY is an SSH client for Windows; see: http://www.chiark.greenend.org.uk/~sgtatham/putty/ for it's homepage. See also !scp (Secure CoPy) and !sshd (Secure SHell Daemon)18:46
bekksSettings that suppybot^ on ignore now.18:46
basketball~ part #ubuntu-server18:46
bekksBetter let him pat the entire network.18:46
bekks*part18:46
basketball!filetransfer18:47
basketballwhat is the file transfer program18:47
bekksPlease read the text ubottu just told you.18:47
bekksAfter that, please read the links given.18:47
raj__is there anything worth backing up in /var ? besides /var/lib folder ?19:02
bekksraj__: Almost everything, besides /var/tmp and /var/run19:03
sarnold/var/spool/mail or wherver your databases live :)19:03
bekksraj__: If you dont backup /var, you will entirely break you package management system in case of restoring it.19:03
sarnoldimho backups are for your data19:04
sarnoldyou can install a new OS on a new drive pretty quickly19:04
raj__i am not looking for a full restore .. just to save the custom configurations..19:05
bekksraj__: Then backup everything.19:06
raj__not everything under /var is for configurations .. i already backup the db.. /cache , /run, /lockm /tmp do they need to be backed up?19:07
bekksraj__: I told you which too directories under /var dont need to be backed up.19:09
bekks*two19:09
basketballbekks,  how do i make bot startup at startup19:13
bekksbasketball: By configuring your system to start your bot automatically.19:15
bekks!autostart | basketball19:15
ubottubasketball: If you want to edit your Autostart programs, open the Unity dash and search for Startup Programs. If you're on XFCE, use menu -> Settings -> Settings Manager -> Session and Startup, if you're on KDE, use Kickoff -> Computer -> System Settings -> Autostart. For more details see https://help.ubuntu.com/community/AddingProgramToSessionStartup. For LXDE see http://ubottu.com/y/419:15
basketballbekks,  i dont have a gui19:16
bekksbasketball: Then you have to write an init script which starts your bot as the user desired.19:17
mgwbasketball: http://upstart.ubuntu.com/cookbook/19:25
jrwrenwhat is the difference between %C and %T in find -printf output?19:28
sarnoldjrwren: %T is the modification time -- when the file data changed. %C is the status change time, which could include e.g. chown/chmod or touch to change the mtime or atime..19:32
jrwrensarnold: thanks19:33
hmhrexI'm having an issue with netatalk and file permissions. Here are some details: http://askubuntu.com/questions/434324/permissions-issue-with-netatalk19:35
sarnoldhmhrex: any error messages from netatalk in the logs? any messages on the OS X logs?19:37
hmhrexThat's something I didn't check. Do you know off the top of your head where the netatalk log file is in Ubuntu>19:37
sarnoldhmhrex: guessing, /var/log/netatalk.log ..19:38
sarnoldif not, /var/log/syslog may have something19:38
hmhrexLet me test the issue again and I'll post the logs.19:39
hmhrexFinally found the netatalk log. All it says is this:19:45
hmhrexMar 14 14:11:08.693414 afpd[1986] {ea_sys.c:110} (E:AFPDaemon): sys_getextattr_size: error: Permission denied19:45
hmhrexnothing in the Mac logs.19:45
sarnoldhmhrex: how about syslog?19:46
hmhrexnothing in there either.19:47
hmhrexIt's weird cause it claims that it's a permissions issue, but everything checks out as fine.19:47
byprdctI'm having trouble with this. Does this chown -R ubuntu:sftp /srv/www/public allow anyone from the sftp group access to the public folder and not parent directories?19:49
sarnoldhmhrex: what does 'getfattr' report on each of those files?19:52
sarnoldbyprdct: someone from the sftp group will also need read and execute permissions on above directories (either via world or group permissions) otherwise they won't even be able to cd /srv/www/public19:53
hmhrexsarnold: I haven't used this command before, any switch in particular you want me to use?19:56
byprdctsarnold how would I employ something like that from the group level. I usually do something like this chown -R ubuntu:www-data /srv/www because I'm the user ubuntu but now I have another user accessing the server and I don't want him to have any access to anything above the public folder19:57
sarnoldhmhrex: I think -d looks best19:58
hmhrexso basically getfattr -d /path/to/files ?19:59
hmhrexthat's not coming up with anything.19:59
sarnoldbyprdct: perhaps I should take a step back.. what do you mean by "above the public folder"?19:59
sarnoldhmhrex: okay, try the same command but use sudo to run it as the user that runs the netatalk daemon19:59
hmhrexuser.com.apple.quarantine="0042;52fa5018;QuickTime\\x20Player;"20:00
hmhrexThat's what I get from the .mp420:00
hmhrexI don't get anything for the rtf.20:01
sarnoldhmhrex: interesting. i would have expected the resource fork to tell os x which application to use to edit the file..20:03
sarnoldhmhrex: well, I -expeted- a 'permission denied' error, just like netatalk :) but still.20:03
hmhrexhaha.20:03
hmhrexYeah. It's odd.20:03
sarnoldhmhrex: sorry, out of ideas. you could try adding that info to your post, more details never hurts, and it'll push it back up the list of posts again :) heh20:04
hmhrexI'll do that.20:05
hmhrexI do have one question about running getfattr. What should I be getting when I run that on that .mp4?20:05
hmhrexnothing?20:05
sarnoldhmhrex: the user.com.apple.quarantine bit was added by finder or safari or whatever; iirc the first four digits indicates which application to use from an application registry of some sort; the last bit is a human friendly name to use when the application isn't installed to tell the user what to go buy :) -- and i'm not sure on the middle digits. could be something related to the seatbelt-based security policies..20:07
hmhrexHuh. Interesting. Is there any way to strip that information out?20:08
sarnoldhmhrex: setfattr -x20:09
sarnoldhmhrex: if you can umount the afp mount before doing it, remove the attr, re-mount, and then test, I think that'd be a more representative test if this can work as a solution20:10
sarnoldos x may cache the resource fork information while the mount is active20:11
hmhrexWould there anyway to set defaults on these folders so that they don't have this information?20:11
=== markthomas is now known as markthomas_away
sarnoldhmhrex: you could mount the filesystem without extended attribute support; that's a bit brutal as solution goes but might do the job20:16
hmhrexWhat would that entail?20:16
hmhrexYou can link me to resources if you want. I'm fine with researching this solution further.20:17
sarnoldhmhrex: that'd be mount(8) option nouser_xattr ; add it to your filesystem in /etc/fstab and run mount -onouser_xattr,remount /filesystem  ..20:17
hmhrexAre there any cons to this solution?20:18
byprdctsorry sarnold daughter grabbed me for a sec. what I meant by above the public folder is any parent directory to the public folder or anywhere else in the file system. I want the other user to only have access to the public folder and anything in that folder e.g. public/*20:18
sarnolddepends upon what other programs on your system are expecting to use extended attributes.20:18
hmhrexAlright. That might be helping. Let me do a couple other tests.20:23
=== markthomas_away is now known as markthomas
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
hmhrexYeah. It didn't seem to help.20:31
hmhrexSo frustrating. i'll take a deeper look into the groups, etc. Maybe something I'm missing.20:32
hmhrexyeah, I accidentally logged out. Was there anything else to try?20:34
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
hmhrexsarnold: it didn't seem to help. But I added that info to my question on askubuntu. So hopefully can help me out. Thanks for all your help!20:41
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
=== nszceta_ is now known as nszceta
=== chmurifree is now known as chmuri
Midion__is csf better than fail 2 ban?21:49
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
basketballwhat is gnu screen21:59
sarnoldscreen is a terminal multiplexer, it lets you run more than one shell in a terminal, and the best part is you can detach and re-attach to it.22:01
basketballwill my computer have that22:01
sarnoldif you're going to use it I suggest finding a hardstatusline setting from somewhere and sticking it in your ~/.screenrc. it'll help immensely.22:01
sarnoldbasketball: you just need to apt-get install screen22:02
sarnoldbasketball: I personally prefer tmux, for no real reason, except I find ^B more convenient than ^A22:02
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
=== yofel_ is now known as yofel
=== Sprockt is now known as Sprocks
=== eshlox_ is now known as eshlox
=== Daviey_ is now known as Daviey
=== jaimef_ is now known as jaimef

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!