/srv/irclogs.ubuntu.com/2014/06/29/#ubuntu-server.txt

=== pHcF_ is now known as pHcF
=== cnj_ is now known as cnj
dkorras1hi all, can anyone please help me setup ifplugd so that it boots to eth0 and when the network cable is unplugged switch to wlan0 and vice versa00:06
histodkorras1: http://ubuntuforums.org/showthread.php?t=199628900:09
z1haze1ok histo: i have the new instance created and running00:10
=== elliotd123_ is now known as elliotd123
z1haze1i created a shell script that basically backs up the entire directoy each time its ran, but i want to go the route of only backing up modified files00:10
z1haze1can you help with that?00:11
_Sigma_i have an issue with mpich2 on a cluster of ubuntu machines. am i in the right channel?00:11
histoz1haze1: you can use the --newer option of tar00:11
z1haze1i see that but it requires manual input of a date00:12
z1haze1sudo tar cvpzf myPC_ubuntu710_bu010408.tar.gz --newer '1 Apr 2008' /00:13
=== ValicekB_ is now known as ValicekB
dkorras1hi all, can anyone please help me setup ifplugd so that it boots to eth0 and when the network cable is unplugged switch to wlan0 and vice versa00:13
z1haze1how would i do that on something automated00:14
z1haze1the modified dates need to me independent per file00:14
z1haze1some regions update daily because people play in them, some hardly ever update00:14
Monotokodkorras1 - wait in #ubuntu for someone to help - #ubuntu-server is a bad place for desktop support00:15
dkorras1Monotoko, it'00:15
dkorras1its on a ubuntu server00:15
Monotokomy mistake... sorry I saw the same question in #ubuntu too00:16
SierraARUsing ufw, if I want to allow a specific IP address through a specific port, the correct command would be this correct? sudo ufw allow from 192.168.0.11 to 123400:16
z1haze2anything youd change on that?00:17
MonotokoSierraAR - hm that doesn't look right to me, hang on00:17
MonotokoSierraAR: allow proto tcp from 192.168.0.11 to any port 123400:18
SierraARWhat does the proto part mean?00:19
MonotokoSierraAR - protocol... usually it defaults to TCP00:19
SierraARAh00:19
Monotokobut I like to specify it00:19
MonotokoI'm working on something similar to ufw for CentOS00:19
=== G4MBY is now known as Guest78561
=== ogra_ is now known as 21WAAGN94
=== esde is now known as Guest39144
z1haze2what is this? http://paste.ubuntu.com/7718933/00:27
z1haze2can someone tell me whats wrong with this shell script please? http://paste.ubuntu.com/7718912/00:28
Monotokoz1haze2 - two things00:29
Monotokoyou're using magic quotes, the ones that go to the side00:29
Monotokorather than the regular "00:29
Monotokoand you don't have a / on the end of your directory name00:29
z1haze2ok00:30
z1haze2i copied from ftp the directory maybe thats why00:30
z1haze2and is the trailing / needed if iwant to backup the entire contents of Region00:31
Monotokoz1haze2 - you'll need a / because if you're putting them together for the tar command it'll just like like "/home/whateverfilename.tar" rather than "/home/whatever/filename.tar"00:31
z1haze2oh i gotcha00:31
z1haze2well i changed that and still this weird invalid option00:31
z1haze2http://paste.ubuntu.com/7718933/00:32
z1haze2its like a strange block00:32
Monotokoz1haze2, that'll be your funny quotation marks00:32
Monotokodid you change those to regular ascii " ?00:32
z1haze2i changed them to normal ones00:32
Monotokopaste the script again?00:32
=== tsimpson is now known as lubotu2
z1haze2http://paste.ubuntu.com/7718955/00:33
Monotokoz1haze2 - I can't see anything that looks particularly funny in there, but obviously bash is tripping over something... can you put it on pastebin too?00:34
z1haze2sure00:34
z1haze2how come sometimes i have to type bash in my ommand to run shell scripts00:35
z1haze2but sometimes i dont00:35
Monotokoz1haze2 - I guess you're using UTF-8... do you mind me asking what your native language is?00:35
z1haze2im american00:35
Monotokoand it all depends on whether the file has an executable bit (chmod +x_00:35
Monotoko*(chmod +x)00:35
Monotokoah... so you're using the standard American keyboard?00:35
z1haze2http://pastebin.com/4Wfet5cj00:35
z1haze2yep00:36
z1haze2but i didnt copy paste some00:36
z1haze2i did*00:36
z1haze2should i just paste it into notepad and change the ancii or somethingh00:36
histouse  --newer $(date +"%d %b %Y")00:36
=== lubotu2 is now known as tsimpson
histoz1haze2: sorry I keep getting disconnected00:36
=== tsimpson is now known as taimpson
z1haze2yea its ok histo, me too00:37
=== kInOzAwA_ is now known as kInOzAwA
Monotokohisto - you think it's the command itself?00:37
z1haze2i dont think hes seen it yet00:37
histoMonotoko: No ignore that date thing00:37
=== ivoks_ is now known as ivoks
=== miceiken_ is now known as miceiken
z1haze2here we go00:37
histoThat got posted when I came back in, it was a response from a question he asked way back00:37
Monotokojesus fuck00:37
histoignore it00:37
=== ming is now known as Guest20647
IdleOnewatch the language please00:38
z1haze2its split like 4 times in 15 minutes00:38
Monotokosorry - they're really annoying me now, not sure who would DDoS freenode of all places00:38
Monotokoz1haze2 - my advice would be to try to save it as ascii00:39
Monotokoworst that can happen is you have to retype it00:39
histowell I filter joins, parts, quits, and nicks so I can't see all that.00:39
z1haze2yea im gonna do that now i guess00:39
=== Azelphur_ is now known as Azelphur
=== taimpson is now known as tsimpson
histoz1haze2: also you may want preserve as a tar option in your script.00:41
histoz1haze2: like --preserve-permissions  since youdon't appear to be using -p00:42
z1haze2ok what now, how do i preserve the same permissions00:42
Monotokoz1haze2 - you'll also want a --00:42
Monotokowith create etc00:42
z1haze2and gzip and filename?00:42
Monotokoyeah00:42
Monotokobecause those are the long ways of saying -czf00:43
histoz1haze2: your --create --blah  could be -czpf  instead00:43
z1haze2alright00:43
histoz1haze2: those are just the long way...00:43
Monotokosorry, I just cracked open my manual now, didn't see you were using one - instead of two :P00:43
z1haze2i see00:43
histoz1haze2: if you man tar   you could see all the options if your curious later00:44
z1haze2ok i have it almost ready00:44
z1haze2except the -f00:44
z1haze2is that for filename?00:44
Monotokoyeah00:44
z1haze2how would i write it?00:44
z1haze2-czpf=$DESTDIR$FILENAME $SRCDIR00:44
z1haze2?00:44
Monotoko-czpf filename00:44
Monotokono =00:45
z1haze2oh ok00:45
z1haze2it will just know00:45
Monotokotar is quite old... it knows what comes after is the filename00:45
Monotokomuch like bash00:45
z1haze2i ran it as a test00:45
z1haze2and got tar: Removing leading `/' from member names00:45
Monotokodon't worry00:46
Monotokothat should be okay00:46
Monotokoyou might want to echo the variables out00:46
Monotokoto see what it's removing from where00:46
z1haze2ok it worked i got what i needed00:46
z1haze2now the automate it every hour WHEN the server is running the process00:46
z1haze2and i really have no idea how to do that00:46
z1haze2i did get the crontab thing tho00:46
z1haze2histo: i ran 0 * * * * sudo /home/z1haze/7dtdPVEbackups.sh in the crontab00:48
z1haze2but that do it hourly right?00:48
Monotokoz1haze2 - don't know if histo will have d/ced00:48
Monotokobut yeah00:48
Monotokothat will work00:48
Monotokohowever00:48
Monotokoyou'll want to su to root00:48
Monotokoand add it to root's crontab00:48
Monotokorather than your own00:49
z1haze2i did00:49
z1haze2oh wait00:49
Monotokoyou don't technically need sudo then00:49
z1haze2there is not root00:49
z1haze2i have root disabled00:49
Monotokoyou should be able to run "sudo -i"00:49
Monotokowhich should give you a root prompt00:49
z1haze2oh ok00:49
z1haze2so enter that enter roots contrab?00:49
Monotokoyeah00:50
Monotokothe reason for that00:50
Monotokois sudo asks for your password00:50
Monotokoand obviously you won't be around to enter it ;)00:50
z1haze2oh dur i didnt think that00:50
z1haze2weird00:50
z1haze2i just checked the roots crontab00:50
z1haze2and thats what i was already using00:50
z1haze2maybe cause i did sudo crontab -e?00:50
Monotokoah yeah, that would make sense00:50
Monotokojust drop sudo from the command in crontab then00:51
z1haze2how do i get back to my name? just su myname?00:51
Monotoko"exit"00:51
z1haze2cool00:51
z1haze2ok i dunno if u were around for the earlier discussion, this whole idea is for backing up region files for a game00:51
z1haze2but the gasme is still in alpha so there are like no server commands or any sort of administration system00:52
z1haze2my hope is to just make these backups, then if someone gets their base broken into i can find the time and just roll back the region files for that area00:52
MonotokoI don't think I will have been... and yeah, that should work00:52
z1haze2but theres complications now00:52
z1haze21, this crontab will run regardless whether the server is online or not.. which is gonna just waste space00:53
z1haze2secondly, is there away to only backup new and files modified like after the last backup00:53
z1haze2if that makes any sense00:53
z1haze2like say only region 2.1 file was modified since the last backup, we dont need to backup all 100 files, we just need to backup that 100:54
Monotokohm... for 2, I'd look into rsync00:54
Monotokoso you'd rsync the files from [here] to [there] then tar them up [there] (or not tar them up... entirely depends how big they are)00:55
Monotokofor 1... how do you mean "online"?00:55
z1haze2well its a gameserver, so the process isnt always online00:56
z1haze2sometimes i take it down for maint, or just if i want to lave it down for the weekend to promote something else,00:56
Monotokowell... is there any way you can add a check into the script?00:56
z1haze2thats what i was kinda asking u, i didnt know if there was a way to add a logic statement to check processes00:56
Monotokonot sure about processes in bash scripts...00:57
z1haze2like if (process=running){do backup}else{do nothing00:57
Monotokobut you could create a file00:57
Monotokowhen the script is running00:57
Monotokoah!00:58
MonotokoI've found something nice00:58
z1haze2yay00:58
Monotokohttp://pastebin.com/yPG98Tq300:58
z1haze2hmm what is this for00:59
Monotokoof course it all depends on what your service is called... if it's a web game, you might put it into maint mode but Apache might still be running00:59
z1haze2i have a script that will check the status01:00
Monotokocan you pastebin that script?01:00
z1haze2sur 1 sec01:01
histoMonotoko: you'd have to pass the service as an argument01:01
histops with grep would probably be better01:01
histoz1haze2: how do you launch the game server?01:02
z1haze2how do i select all in putty01:02
z1haze2with a shell script01:02
Monotokoz1haze2 - just run your mouse over it01:02
histoz1haze2: what server is it?01:02
z1haze27days to die01:02
Monotoko... woah de-ja-vu01:02
z1haze2http://paste.ubuntu.com/7719036/01:02
histoz1haze2: what does the script call when it runs?01:02
z1haze2^ shell script01:03
z1haze2prolly need common too01:03
z1haze21 sec01:03
histoz1haze2: yeah01:04
histopaste common.h01:04
z1haze2ok this script is more than i can select in 1 window01:04
z1haze2is there a way to select all text even when its out of site01:04
Monotokoz1haze2, two secs01:04
z1haze2sight*01:04
Monotokolet me get you something01:04
MonotokoI've been using this for a while01:04
histosudo apt-get install pastebinit && pastebinit /usr/local/lib/7dtd/common.sh01:04
z1haze2i have pastebinit01:04
z1haze2didnt even think of it01:04
Monotokodoes that still work>01:05
Monotokoit didn't last time I tried it01:05
Monotoko:(01:05
z1haze2http://paste.ubuntu.com/7719045/01:05
z1haze2yea i use it sometimes01:05
histoMonotoko: that's silly with sed why not just grep01:07
Monotokohisto, what's that sorry?01:07
histoz1haze2: even that script checks the pid to see if its there.01:08
z1haze2isnt that what its supposed to do01:09
histops -a | grep 7dtd   compare the output of that if it's null then the server isn't running.01:10
z1haze2how can i do that though01:11
z1haze2i only know like some simple java01:11
z1haze2and from what i see syntax isnt close to the same01:11
Monotokoz1haze2 - two secs01:12
Monotokohttp://pastebin.com/MuU9uUzz01:12
z1haze2so do i put that in my backupscript?01:13
Monotokoz1haze2 - kind of01:13
Monotokoyou want your backup bits to go between line 6 and line 801:13
Monotokobasically so it only runs them when the server is running01:14
z1haze2replace running?01:14
Monotokoyeah01:14
histoand change line 5 to exit01:14
z1haze2gotcha01:14
Monotokohisto, look at me, I used grep ;)01:14
z1haze2http://pastebin.com/LM1L5hRm like this?01:18
Monotokoz1haze2 - looks good to me01:19
Monotokomight want to test it somewhere01:19
z1haze2yea ill test it01:19
z1haze2but u know what this wont work01:19
z1haze2there are instances of the server01:19
z1haze2like server1, server201:19
histohrm.. that won't work01:20
z1haze2can u see anything in the common.sh that would show how to find a specific instance01:20
Monotokoah... then yeah, they would all have to be down01:20
histoneither variant works with sed or grep there is something wrong with the test01:21
histohow about simplifying01:24
histoif ps -a | grep -v grep | grep 7dtd > /dev/null; then bbackup commands; else exit; fi01:25
z1haze21 sec have to reboot the machine01:26
histokk01:27
z1haze2the nget the other game servers back going should only be a min01:27
=== RoyK^ is now known as RoyK
histoyour going to ge tteh time wiht colons in your filename using that01:31
z1haze2ok back01:34
histoz1haze2: http://pastebin.com/0R65xEUN01:35
histoz1haze2: now you just have to add a part about seeing how many backups are there and deleting old ones01:36
z1haze2yep haha01:36
z1haze2well01:36
z1haze2minus the checking for the instance thing01:36
z1haze2cause im gonna make backsup shell scripts for each instnace01:36
z1haze2and add it to crontab01:36
z1haze27dtdPVEbackups.sh: line 4: unexpected EOF while looking for matching `)'01:37
z1haze27dtdPVEbackups.sh: line 11: syntax error: unexpected end of file01:37
histoz1haze2: you could if ls $DESTDIR | wc -l  is greater than some number rm a few01:37
whitepowderSo, i've gotten my little preseeded install usb stick working, but when i run the full-upgrade at the end, i'd like to save the debs downloaded (/target/var/cache/apt/archives/) Is there a good way to do this? I'd like to put them into the /pool tree on the usb stick -- When are they deleted even?01:38
z1haze2histo that paste didnt work01:38
z1haze2http://pastebin.com/GezaN84J01:38
histoz1haze2: which script are you running?01:39
z1haze2the last one u just posted01:39
histoz1haze2: hold on let me look for typo01:39
z1haze2histo i just thought of a way to isolate the instances01:43
z1haze2is there a way to isoloate the directory the grep is searching for the 7dtd pid?01:44
z1haze2because i just noticed that when you start the server for a specific instance it puts a 7dtd.pid file in the /instances/ directory01:44
histoz1haze2: pastebin your script01:45
z1haze2http://paste.ubuntu.com/7719170/01:46
histoz1haze2: ahh error is on line 4 forgot the )01:47
tarvidcacti installed with ease on my 14.04 workstation, the apache alias did not get installed on my 12.04 server, can I just copy the conf-availalbe/cacti.conf file01:47
histoz1haze2: $(date............').tgz01:47
histoz1haze2: that part01:48
z1haze2oh isee01:48
z1haze2so anyways back to my latest discovery01:48
z1haze2is there a way to search for 7dtd.pid in a specific directory for this script we have made01:48
z1haze2because it generates that pid file when the server is up01:48
z1haze2and its gone when its down01:49
histoz1haze2: http://paste.ubuntu.com/7719172/01:49
z1haze2i fixed that part did u chane anything else?01:50
histoz1haze2: yeah got rid of the ; and moved them down a line just for sanity01:50
histos/them/then/01:51
histoz1haze2: you'd have to see where the common.h stores the pid's01:52
histoz1haze2: I can't remember01:52
z1haze2haha umessed up the ') again01:52
z1haze2i know where it stores them01:52
z1haze2in the isntance folder of that instance01:52
z1haze2so for like instance pvp it will be in /instances/pvp/7dtd.pid01:52
histono I didn't01:53
histoOh yeah i did01:53
histolol01:54
z1haze2hmm01:54
z1haze2its not working01:54
z1haze2the check thing01:54
z1haze2the syntax isfine01:54
z1haze2but it just backing up when its online01:54
histoz1haze2: well the grep check see's if there is a process running with the name 7dtd01:54
histoz1haze2: I thought you wanted to backup when it was running and not when it is off01:55
z1haze2lets search for file 7dtd.pid in/home/sdtd/instances/TGC-PVE01:55
histok01:55
z1haze2because that file is only there when the server is online01:55
z1haze2yes ur are correct backup while its running, do nothing if offline01:55
histoz1haze2: if [ -f /path/to/somefile ]    then blah blah else blah blah fi01:56
z1haze2literally like that? if [ -f /home/sdtd/instances/TGC-PVP/7dtd.pid ] ?01:57
z1haze2whre the logical statement in that01:57
histoz1haze2: yeah if file blah blah exists01:58
z1haze2whats makes it say if exists though01:58
histoz1haze2: -f is to check if the file is there.01:58
z1haze2oh01:58
histoif the file isn't it will elese01:58
histoelse01:58
histoz1haze2: to keep with your variable theme you could add a INSTANCE at the top for the path01:59
z1haze2ah yea01:59
histoit's up to you though.01:59
z1haze2no its good thinkin, cleaner01:59
z1haze2and in linux we use [ ] for logical statements?02:00
histoz1haze2: bash not linux02:01
z1haze2http://paste.ubuntu.com/7719227/ whatcha think02:01
histoz1haze2: looks good if it's running it will backup else exit02:02
z1haze2ok yep it just backed up once let me turn it off and see02:02
histoz1haze2: []  is a test in bash02:03
z1haze2oh ok02:03
z1haze2great it worked02:04
z1haze2i think im gonna change it to like 6 hours02:04
z1haze2how would i do that with the 0 * * * *  thing02:04
z1haze2like 0 6 * * * /home/z1haze/7dtdPVEbackups.sh ?02:05
histo0 */6 * * *02:06
histoor 0 0,6,12,18 * * *02:06
histoeither way02:06
z1haze20 */6 * * * /home/z1haze/7dtdPVEbackups.sh02:06
histoz1haze2: yeah looks good,  it will email you output also02:06
z1haze2now i wont have to worry quite so much about filling up my drive02:07
z1haze2how do iset the email though? ive never set it02:07
histoz1haze2: do you have a mail server running on this box?02:07
z1haze2nope02:07
z1haze2:)02:07
histothen it won't email you.02:07
z1haze2haha02:07
z1haze2mailservers are a pain02:07
z1haze2every time ive ever made one it always sends to junk mail02:07
z1haze2so i just use mailgun02:07
Patrickdkwell, mailservers are a lot of work02:08
histowell you only need a sending server so something like ssmtp would do the trick.  then you just add a MAILTO=whomever@example.com in your crontab02:08
z1haze2yea im not that talented to do all that02:08
Patrickdkunless you have preconfigured examples and done it several times02:08
Patrickdkexpect it to take a week02:08
z1haze2im somewhat ok at doing websites but thats where it ends02:08
z1haze2do you play any games02:09
histoYou don't need a full blown mailserver. I'd use something like ssmtp or esmtp or one of the other ones02:09
z1haze2i dont know what those are, is it something easy to do02:09
Patrickdk!nullmailer02:09
Patrickdkstupid bot02:09
z1haze2haha02:09
z1haze2.nullmailer02:09
z1haze2some bots are ! and some are . right?02:10
histoz1haze2: yeah it's just a text file to configure with those and you can have them use a gmail address to send out mail02:10
Patrickdkit doesn't have an entry for it is the issue02:10
z1hazewell thank you so much for your help02:16
z1hazei achieved my goal this evening thanks to you02:17
histoz1haze: np and no I don't play any games02:17
z1hazenow i just have to create a new script for the other instances, iull jhust cp it02:17
histoz1haze: well you learned a lot also02:17
z1hazei did02:17
z1hazei could definitely do this now02:17
z1hazebut its just all so new to me02:17
z1hazehow histo02:19
z1hazehey*02:20
z1hazei know it all works good as of now; but i kinda wanna perfect is02:20
z1hazei want to keep a weeks worth of backups02:21
z1hazeso 28 files, how could we make it delete backups starting with the oldest once we hit 2802:21
z1hazewhere can i read what sh -c means in a bash script02:49
histoz1haze: let me think about the easiest way to do that.02:50
z1hazewell histo i figured out the backup deletion02:50
z1hazewell i had help but i put the pieces together02:51
histoz1haze: ahh cool what are you using?02:51
histowc -l ?02:51
z1hazesh -c "cd $DESTDIR && ls -t | tail -n +29 | xargs rm"02:51
histoahh very nice02:51
z1hazecan you explain it to me haha02:51
histoz1haze: well you can change teh beginning to ls -t $DESTDIR | tail -n +29 ....02:52
z1hazei tried that02:52
z1hazeit wasnt able to delete the files02:52
histoz1haze: how were you trying it?  It should work02:52
z1hazerm: cannot remove `backup-2014-06-28-220402.tgz': No such file or directory02:52
z1hazeit wasnt in the directory02:52
z1hazeso the shell wasnt in the right place02:53
z1hazethe code that some guy gave me worked02:53
z1hazei just didnt really understand it02:53
z1hazehe says it opens a new shell and runs that command, but it doesnt effect anything else after that02:53
histoz1haze: I don't see why the sh is necessary let me try a test real quick02:53
z1hazeok02:54
z1hazewe have to get the shell into the right directory before it exectutes rm02:54
histooh yeah you need the full path from ls02:56
histothat's why02:56
z1hazeso is this way ok? or would u change it02:56
histoit will work the way it is, i'm just trying to think of a different way to explain it to you.02:57
histoyou could ls -d -t $PWD/*  but that will confuse you more03:04
z1hazeheh03:11
z1hazewell i know pwd is current directory03:11
histoz1haze: so basically the way you have it now you are running cd and ls -t in a shell. Then you are piping the output to tail  to get the last entries and piping that to xargs to rm the ones above 2903:11
z1hazeright03:12
z1hazei get the concept kinda03:12
z1hazewhat are all the xargs for03:13
histoxargs just passes what you give it to the specified command03:13
histoso it's taking the output of the tail and passing it to rm03:13
histoz1haze: So the reason you got the error before is because originally your ls -t was only happening in the directory where they script was run.  That's why it needed the cd03:14
z1hazeright03:14
histoz1haze: to get it without the sh  you'd have to use a function03:16
histoz1haze: after each command the subshell exits in bash script.03:16
z1hazeim gonna stick with it haha03:17
histoactually you could just cd $BACKDIR && ls -t .....    should work without the sh03:18
histobut with the sh is more appropriate then when that line is done it goes back tot eh directory that the script was run from.03:19
histoglad you got it all working though03:19
histowhat is with freenode tonight03:43
No_one_at_allHi, question: fsck is set to run once every 6 months on our server. It last ran last December, and I would swear before we updated to 14.04 that it was scheduled for June this year. But I just checked it, and it is set for July 14, and what's more, it says the last check was run in January of /this/ year. What gives?03:46
Patrickdkyour clock was set wrong03:54
Patrickdkor your have a bad memory03:54
Patrickdkthere was never a reason why it would have run?03:55
Patrickdklike the machine crashed or was powered down uncleanly?03:56
histoNo_one_at_all: how are you scheduling it?04:06
No_one_at_allhisto: i'm not, it's doing it automatically04:06
cfhowlettNo_one_at_all I would guess a clock localization setting04:06
histoNo_one_at_all: then how is it "set to run every 6 months" ?04:06
Patrickdkhisto, filesystem default04:07
histoahh04:07
Patrickdkyou have never used ext[234]?04:07
histoon reboot you mean?04:07
Patrickdkno, on boot04:07
histoyeah04:08
histoI was going to say fs has to be un mounted04:08
Patrickdkno04:08
histoo'rly?04:08
Patrickdkit's always done the checks with it mounted read-only04:08
histoWhy would it mount ro to fsck?04:09
histoon boot?04:09
Patrickdkso you can boot?04:09
histoit's not mounted ro to boot04:09
Patrickdkyes it is04:09
Patrickdkit's mounted read only, then fsck starts, and when it finishes it remounts rw04:09
histoWhy would it do that?04:14
Patrickdkhow does it know what filesystems it needs to check? if it can't read /etc/fstab?04:16
Patrickdkbut beyond that not sure04:16
Patrickdkit was long long ago, it was changed from premount, to reonly mount04:16
Patrickdklong before ubuntu was started it was done that way04:16
histosilliness04:16
No_one_at_allWell, I have no idea what caused this, but I forced an fsck anyway since we were expecting the downtime, and i guess all's well that ends well.05:00
No_one_at_all>_<05:00
No_one_at_alldate's right05:01
=== qu|x_ is now known as qu|x
histoNo_one_at_all: you can check with tune2fs  when the next one is scheduled06:00
histoNo_one_at_all: it probably fsck'd because of mount count06:01
No_one_at_allhisto: yeah, I'm aware of how to check for it (now), after the debacle we had last June06:13
No_one_at_alland it fsck'd because of the date, not number of mounts/unmounts. This thing gets rebooted once every month and a half06:14
No_one_at_allif that06:14
=== Ursinha-afk is now known as Ursinha
=== Guest78561 is now known as G4MBY
=== Lcawte|Away is now known as Lcawte
lordievaderGood morning.09:21
ophkiltero/09:26
lordievaderHey ophkilter, how are you?09:27
ophkilterrebooting09:28
ophkilterone sec09:28
ophkilteri'm good09:28
=== cmagina_ is now known as cmagina
=== Adri2000_ is now known as Guest40026
=== Guest40026 is now known as Adri2000
=== G4MBY is now known as Guest44965
=== Guest44965 is now known as G4MBY
=== Lcawte is now known as Lcawte|Away
=== _KaszpiR___ is now known as _KaszpiR_
=== Guest36663 is now known as hxm
=== Monotoko is now known as Guest67629
xpistosclear15:52
=== Guest39144 is now known as esde
xpistosIs there some bug in 14.04 server 64bit that it won't reboot? I try to use sudo reboot now and it just goes back to a prompt15:54
dkorrashi all, please can you help me. I am at my wits end here. To setup my ubuntu machine automatica LAN and WLAN switch with ifplugd, i have tried all the configurations I can find but nothing seems to work16:04
=== Lcawte|Away is now known as Lcawte
DeadxBeatHey all, in just installed ubuntu server with ssh and lamp and i set a static ip. I was able to access apache via the ip but then i updated the hostname in /etc/hosts and /etc/hostname and rebooted and now i am unable to access apache via ip. What did i do wrong?17:54
DeadxBeatAnyone? =/17:58
DeadxBeataye18:03
XethronDeadxBeat: Did you change your apache config?18:03
XethronOr only your hosts?18:04
DeadxBeatjust my /etc/hosts and /etc/hostname18:04
XethronPastebin please?18:04
DeadxBeatonly thing i added to /etc/hosts was xx.xx.xx.xx mydomain.com mydomain and to /etc/hostname is just mydomain18:04
DeadxBeatI took a look around the apache configs but i can't find anything that has to do with the hostname18:07
XethronDeadxBeat: did you leave localhost intact?18:08
DeadxBeatyes18:08
XethronDeadxBeat: and xx.xx.xx.xx is a valid IP address?18:09
DeadxBeatYes, its the static ip i've assigned in /etc/network/interfaces18:10
DeadxBeati can ping the machine via the ip address and it has internet access18:10
DeadxBeatIts not on my local network because its a static ip assigned by the ISP18:11
DeadxBeatis it necessary for my hostname to match my domain name?18:15
zartooshHi I am trying to automate installation of trusty using preseeding. My system can boots in UEFI mode, the iso image which I make does not take the preseed value if I boot in UEFI mode. What am I missing? thx18:48
=== meccooll1 is now known as meccooll
=== darmok_ is now known as darmok
=== Kihokki_ is now known as Kihokki
=== _TJ_ is now known as TJ-
=== jml_ is now known as jml
=== not_phunyguy is now known as phunyguy
=== kInOzAwA_ is now known as kInOzAwA
=== Den_Beiren is now known as DenBeiren
=== G4MBY is now known as Guest35489
=== Guest35489 is now known as G4MBY
=== pjdc_ is now known as pjdc
=== bitbyte__ is now known as bitbyte
=== chaos___________ is now known as 77CAAMSC9
bitbytedoes any one know if on ubuntu server the encrypted LVM is mounted over LUKS ?21:55
bitbyteby the way my version is Ubuntu 14.04 LTS (GNU/Linux 3.13.0-29-generic x86_64)22:01
TJ-bitbyte: how do you mean by 'over'? As in, raw device --> LUKS --> LVM ?22:02
bitbytewell im currently trying to figure out how the bootloaer is mounting my encrypted LVM and wheter it uses LUKS22:03
TJ-bitbyte: Standard install always uses LUKS22:04
bitbyteim basically trying to put a key file on my boot partion so I can tell LUKS that the keyfile is on boot so i can reboot my server remotely without needing to be infront of it.22:04
TJ-bitbyte: that's kind of insecure, storing the key in /boot/ - may as well not encrypt22:06
TJ-bitbyte: have you thought about remote ssh key provision?22:06
bitbyteit’s a home server to be fair, but im working remotely for next few months so trying to make it so can perform reboots when needed22:07
TJ-How about: http://www.debian-administration.org/article/579/Unlocking_a_LUKS_encrypted_root_partition_via_ssh22:07
bitbytenot herd of ssh key provision but im doing this from external of the network22:07
bitbyteim currently following this http://askubuntu.com/questions/59487/how-to-configure-lvm-luks-to-autodecrypt-partition22:08
TJ-You can reverse the concept and have the server contact the key server, of course22:08
KawaiolaHey guys whats an easy way to get drivers for ubuntu server my ethernet card says it isn't managed and it gets to the internet but I can't set it static23:22
TJ-Kawaiola: It sounds like you're confusing concepts. What reports the ethernet card is not managed?23:23
KawaiolaTJ-, Well I installed the user interface to my server and the top right corner where the connections mananger is says that and it won't let me click them23:26
TJ-Ahhhh... I thought as much :) "unmanaged" simply means that Network Manager isn't managing the connection, and that is likely because it's configuration is in "/etc/network/interfaces"23:26
KawaiolaTJ-, Ahh so I will have to set the server static command line anyways is what you are saying haha23:28

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