/srv/irclogs.ubuntu.com/2015/05/26/#ubuntu-server.txt

=== negronjl_ is now known as negronjl_away
=== negronjl_away is now known as negronjl_
=== Lcawte is now known as Lcawte|Away
=== zz_DenBeiren is now known as DenBeiren
=== markthomas is now known as markthomas|away
=== markthomas|away is now known as markthomas
lordievaderGood morning.06:37
=== Lcawte|Away is now known as Lcawte
=== gema_ is now known as gema
=== Lcawte is now known as Lcawte|Away
tekzillahi, can someone maybe explain this ? added a new user, adds fine to one group, doesnt add to another group saying "user does not exist"09:01
tekzillahttp://paste.ubuntu.com/11366958/09:01
tekzillasorry! my bad, just a typo.. getting some coffee09:06
QGuLL_hi, i'm on ubuntu-server 12.04 lts and trying to configure quota (for disks), but neither libquota-perl or quotatool works. edquota work though, but i'd like to script this setting09:14
QGuLL_all i got with quotatool is «quotatool: Error while detecting kernel quota version: No such file or directory», whereas modules are loaded, filesystem is mounted with usrquota, and quota is on09:15
QGuLL_and my kernel is an ubuntu one, which has been configured before compilation to handle quota09:15
wizzkiddhi all, im trying to create a self signed certificate with the CA flag set to true - any help out there? i'd like to create my own ssl cert for for a webservice in ubuntu (which I already know how,but not the CA flag part).  im not bothered about the browser, as i know i have to trust the site on the client end.  Im just focusing on the server cert/11:48
=== Lcawte|Away is now known as Lcawte
pmatuliswizzkidd: what's the problem?11:55
wizzkiddpmatulis: i would like to create a cert that has CA=TRUE11:56
pmatuliswizzkidd: try https://help.ubuntu.com/lts/serverguide/certificates-and-security.html and report any problems you may encounter11:57
wizzkiddpmatulis: thanks, i'll give that a go12:00
QGuLL_pmatulis: how about my problem with quota ?12:00
pmatulisQGuLL_: i don't think you need to compile your kernel12:25
QGuLL_i don't have to, indeed, mine (the ubuntu one) has quota options12:26
QGuLL_in fact, quota works, but i can only modify with edquota (manualy with an editor), not quotatools or libquota-perl12:27
pmatulisQGuLL_: dunno then sorry12:29
=== Lcawte is now known as Lcawte|Away
wizzkiddpmatulis: thanks, that helped a lot, I have now created a signed certificate "myserver.crt" and I have the corrosponding "myserver.pem" file too.  But where is the "server.key" file?12:40
pmatuliswizzkidd: in your working directory12:42
pmatulisopenssl genrsa -des3 -out server.key 204812:42
wizzkiddpmatulis: ah yes, i used it earlier12:44
=== Odd_Blok1 is now known as Odd_Bloke
zottais it possible to install/use use a different gcc version on ubuntu 14 lts?12:52
Kully3xfhola - does ubuntu run bash in ram?15:42
Kully3xfI want to run a script that will delete itself and then shutdown the server15:42
Kully3xfIf it runs it in ram15:43
Kully3xfI should be able to rm the file then order the shutdown15:43
Kully3xfyes?15:43
lordievaderThe Linux kernel is quite nice with deleting files that are in use. Since it creates a link to the inode somewhere in /proc15:44
lordievaderThus you can have executables, run it, and then delete the executable. The executable looks gone, but it is still on the disk.15:44
Kully3xfcool. That's perfect15:47
Kully3xfthanls15:47
Kully3xfthanks*15:48
Walexlordievader: that's not quite how it happens. It is impossible to delete files in UNIX/Linux.15:51
lordievaderThat was my understanding anyhow.15:51
=== skarface is now known as antix
wizzkiddis it possible to create more than 1 symbolic link to a single file?18:34
lordievaderwizzkidd: Symlinks? Sure.18:38
wizzkiddlordievader: thx18:38
Smaughey all, after making changes to /etc/environment, is there a way to apply this to all sessions and users without a restart?18:57
pmatulisSmaug: each user should source the file19:04
Smaugpmatulis: i want to make the new environment variables available to a service.  would i just source it as root user?  doesn't sourcing it only make it available for that session?19:06
sarnolds/session/process/19:07
sarnoldthe feature you want does not exist in unix19:07
Smaugthanks sarnold, re terminology19:07
sarnoldevery process that you want to have the new values needs to do something to get those new values; that's sourcing them in shells, that's explicit calls to setenv(3) in nearly everything else.19:08
Smaugsarnold: should i add to my service that it sources /etc/environment before running other commands?  is that a reasonable approach?19:10
Smaugit's a service i wrote19:10
sarnoldSmaug: I don't like that approach much; I think of /etc/environment as something for people, a nice service froma friendly administrator; services should take care of their own environment in their own way, either via an /etc/default/ file or their inistscripts or something else similar.19:11
Smaugok, and if it were to be done from an initscript that would using setenv?19:12
sarnoldSmaug: best is to use 'env' and 'export' commands from upstart: http://upstart.ubuntu.com/cookbook/#export19:17
Smaugthank you19:17
Smaugi'll look into19:18
Smaugalso, using /etc/default -- i am not familiar with that approach, do you have a resource for that as relates to init scripts?19:18
Smaugdo i just put a settings file in /etc/default with the same name as my service?19:19
sarnoldSmaug: then you also make sure your service startup sources the file in there..19:23
sarnoldSmaug: see e.g. /etc/init/cups.conf19:23
Smaugsarnold: my ubuntu doesn't have /etc/init/cups.conf19:28
sarnoldSmaug: dang, I though that one was a sure hit :) also check for /etc/init/libvirt-bin.conf /etc/init/rpcbind.conf /etc/init/mountall.conf19:29
Smaugyeah i have rpcbind.conf and mountall.conf19:35
Smaugthank you sarnold i'll check it out :)19:35
WalexSmaug: the "same name as my service" in '/etc/default' is just a convention.20:34
WalexSmaug: Debian an Ubuntu packagers seem to dislike consistencym, so often the name of the package, of the daemon, of the various configuration directories, of the service are all slightly different.20:35
=== SL89 is now known as Vodka_Gobalsky
DonRichieI am currently reading the file hierarchy standard. I do not understand the term "local". What are local files which are stored in /usr/local?23:02
geniiDonRichie: For instance, binaries you compiled yourself would go in /usr/local/bin23:03
DonRichieOkay, Thank you for your answer. Your answer and some google results lead me to the following opinion:23:09
DonRichie- /usr is for files installed by the package manager,23:13
DonRichie- /usr/local is for files compiled by myself which rely on other /usr content (or sometimes do not) and need to be out of scope of the package manager23:13
DonRichie- /opt is for programs which are usually completely separated of the hierarchy and provide their own.  They also are more likely to bring their own libraries23:13
histoDonRichie: local to that system23:48

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