« first day (2090 days earlier)      last day (3171 days later) » 

00:04
First time I enter the chat room
Hey @AgustínCovarrubias
wow
@terdon Hi!
greetings, and welcome to the chat room, @AgustínCovarrubias
:)
@terdon Do you still use lmde? Just wondering.
So, what's the current situation? have you tried adding something like echo foo >/tmp/file or touch /tmp/file to your script to see if it is executed?
00:05
My question got very large, should I put corrections directly?
@chaskes Nope, I've switched to Arch these past few months.
@terdon I added a echo "I did run!" > /scr/run.txt, and nothing.
@terdon I love arch, but I need to reinstall it for uefi
@AgustínCovarrubias Yes, don't write "Edit: blah blah". Just edit the question so that someone who reads it for the first time now has all the relevant information. You can remove things thta are no longer relevant.
@terdon Yeah, that's a lot better.
00:06
@AgustínCovarrubias Try changing the file to /tmp/run.txt just to be 100% sure it's not a permissions error.
By the way, we're discussing this, if anyone else wants to weigh in:
1
Q: Script on reboot

Agustín CovarrubiasSo, I programmed a simple script to alert on slack whenever the server is rebooted. What I did: In /etc/rc0.d/R99reboot-slack: (I tried with R01reboot-slack) #!/bin/sh sudo sh /root/scripts/slack/msg.sh "Server restarting...." and in /root/scripts/slack/msg.sh I have: #!/bin/bash MSG=$1 API="...

@AgustínCovarrubias the general way to debug these things is to start with something very simple. For example, change /etc/rc6.d/K99reboot-slack to simply:
#!/bin/sh
date > /tmp/slack
Make it executable, reboot, and see if that prints the date into /tmp/slack.
If that doesn't work, we have narrowed down the possible problems.
@chaskes Yeah, Arch is great. I think I'm a convert, it's been around 6 months now.
@terdon But doesn't /tmp/ gets deleted at reboot?
Updated the question with all the corrections, and without the EDIT1, Edit2...
@AgustínCovarrubias Argh, yes, it usually is. OK, make that /src or wherever, as you said.
@AgustínCovarrubias Perfect, thanks.
@terdon or do what I did and make a ~/tmp folder too
which is a tmp that you have to clear out ;)
A "unofficial" tmp, uh?
shrugs
00:12
Yeah, that's probably the best idea. I would create something like: sudo mkdir /foo && sudo chmod 777 /foo. Just to be sure that there are never any permissions issues.
I only say this because of that weird error you had in your first version.
So, rebooting...
Hang on, are the /etc/rc* dirs still used in 16.04? Hasn't Ubuntu switched to 100% systemd these days?
oh
It would be a big facepalm
00:14
I'm not on Ubuntu, so I can't check but I can confirm that I don't even have those dirs in my Arch.
OH
I think this means, yes:
This is impressive.
Aha!
@AgustínCovarrubias how important is it to run your script before rebooting rather than afterwards?
I already have a cronjob with @reboot announcing the start...
00:16
If all you need is to know that the machine has been rebooted, a @reboot cron as DopeGhoti suggested might be the better solution.
Ah. OK then.
Well, there's bound to be some systemd "hook" (as they call them) for this.
23
Q: How to run a script with systemd right before shutdown?

sid_comWhat do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed? [Unit] Description=Log Traffic [Service] ExecStart=/home/me/so.pl [Install] ?

lol
You use a "reverse" init script.
(only the "ExecStop" is used"
Well, that's intuitive!
Also have a look at this:
Should I create /etc/systemd/system/:?
I guess so, if it doesn't exist.
You do have a /usr/lib/systemd/system/, right?
bash: cd: /usr/lib/systemd/system/: No such file or directory
Maybe ubuntu uses an alternate directory?
00:22
Ni puta idea. They might.
-stupid quote removed-
Yeah, but that just means they use systemd. That's th default location though, sop you may as well try creating the directory and putting the unit script there. You could also try this:
> sudo systemctl enable rc-local.service
Apparently, that will enable the rc service in which case your original script might work.
It's /lib/systemd/system/
I tried enabling rc-local.service. Reboot, no alert on slack :(
Ok, let's try the systemd service!
I will no longer use the @reboot, and use the ExecStart instead (within the same service.)
If you get it to work, it would be great if you could come back and post an answer explaining what you did.
Of course.
Is the [Install], neccessary?
00:31
I don't think so, based on this and this.
Oh, ExecStart must be running until shutdown, or it won't work.
"The pid assigned to this process is what systemd will monitor to determine whether the process has crashed or not."
if the process crashes, it won't execute ExecStop.
@terdon
Ideas?
What are you quoting?
Well, I understand that as "whatever you start with ExecStop is what systemd will monitor "
00:38
That, yes
So it doesn't mean that it won't execute execstop.
I'm trying something like that.
Each script just runs /scr/msg.sh "Some message"
Cool. Let's see what happens. I don't really know anything about systemd units either.
[ SmokeDetector ] Mostly non-Latin body, mostly non-Latin title: စိတ်ကြိုက် Software နဲ့ Ubuntu by Phyoe Mg Mg Latt on askubuntu.com
What is SmokeDetect? Like a "this post doesn't seem well" bot?
Pretty much, yes. Spam detection, mostly
Right, it's getting really late here, so I'm off to bed. Hope you figure it out @Agustín!
00:45
Ok, thanks @terdon
Thanks for all the help ;)
You're welcome
Stupid frickin' PHP
don't h8 on php ;)
01:09
"Revolutionaries don't want to fix the system, they just want to be the ones on top enjoying corruption's benefits" -- Ethereum
burn
That was so not cool.
For all the nice things people say about VirtualBox...
...it's the only app that's managed to crash this Ubuntu machine. Twice.
01:22
Since when does Ubuntu recommend using apt instead of apt-get?
@edwinksl you need to be quiet
>:)
@NathanOsman I like VMWare better personally
h8 is not good for this world!
@edwinksl then make an alternative for PHP and get back to me
i avoid php like i avoid windows
:D
what are you using php for
just curious
POSTing data to an API
an undocumented API, might I add
I also knew NOTHING about PHP coming into this
so you know
I don't exactly have a happy attitude toward PHP
Hey congratulate me: I have found the Xenial Xerus origami instructions: askubuntu.com/q/760150/57576
:)
Best question solve ever :)
01:33
sweet!
Why is Vietnamese not rendering in my Chrome? askubuntu.com/questions/788751/…
I have UTF-8 for my encoding
because it isn't Vietnamese.
it looks like Thai or whatever they speak in Laos.
Oh Burmese. I was close.
definitely not thai nor vietnamese
burmese is probably it
I could only assume by the name, and it looked Vietnamese :p
Google Translate said Burmese.
@Zacharee1 dude
Vietnamese uses Latin characters.
And before that, Chinese characters.
01:38
@Seth Chrome isn't rendering a lot of stuff
and they are definitely not basic Latin
no, they have a lot of accent marks.
Hey, it got something: နဲ့ထားသော
But most of it is still squares
i use chrome too but i can see everything
But Ubuntu
Chrome uses the system fonts list
I tried installing Code2000/1/2, but it only gave me a bit of the text
i haven't done anything to my system fonts too
they are as default as can be
01:42
But Ubuntu
I iz on Wind0z
omfg?
ARGH.
Windows' Universal CRT is a nightmare.
@Seth Vietnamese does use roman, but with so many diacritics you still need in input method like unikeys (as I'm sure you know, actually)
@chaskes yeah :)
but it's very different from Burmese/Thai/Lao.
How am I supposed to know if all I see are squares?
01:50
abosuletely. they ultimately go back to heavily modified versions of what became devanagari
@Zacharee1 you're not supposed to use windows
@Seth I'm not, I'm using Windows
:)
@Seth Again, you know this, but just confirming that's burmese
Yup! :)
stupid composer, removed php5 and installed 7
broke my site
01:53
I had a question for Nathan for a couple of days and now I can't remember what it was
@Zacharee1 Link for your site?
@chaskes You might be interested in this (I think it was you I was talking to) but a friend recently introduced me to a band called Owl City. Seems nice.
@andrew.46 x-p-w.tk
It's dance/electronic.
Tokelau?
free domain
not in NZ
@Seth Its nice thanks.
@Zacharee1 yeah that one. Haven't heard that specific song yet though
@chaskes :D
take a listen
01:56
@Seth I've heard a couple of their Christmas songs.
@NathanOsman Well, I guess it will come back to me. Right now it's driving me crazy.
WHEW
That was close
That does it.
I'm reverting to MSVC 2013.
I don't need this universal CRT junk.
Now I have to rebuild my EC2 instance... ಠ_ಠ
02:04
Anyone use a HDMI -> VGA converter?
I have
@chaskes Doesn't it have to be an active converter?
Well, I don't understand the question
well VGA is analog and HDMI is digital.
@RPiAwesomeness == Scooby Doo, Illuminati confirmed
02:07
scooby doo is a goat?
@Videonauth having small issue with your first email , ping me when you're online
@Seth it's little known trivia
@Seth I went from hdmi on my pi to vga on an older monitor with a single unit adapter. No cable connecting the 2 ends like I saw when I googled active converter
huh.
Must have old info then.
Going to watch Dead Poets Society for the first time here in a few days.
@chaskes that shouldn't be possible o_O
02:10
@Zacharee1 That's what I thought. Weird.
Oh, it's just a tiny converter store.hp.com/us/en/pdp/…
uh
@NathanOsman you broke Windows
(admittedly, it is rather easy to break Windows)
omgomgomgomgomgomgomgomgomgmomomgogmoomg
I GOT THE PHP POST THINGY TO WORK
02:28
Why I don't use Yahoo. https://t.co/tPpEr4EKyd
Almost as bad as AdFly
It's really annoying that Firefox uses them by default.
And this, folks, is how the average consumer gets malware.
You could say Yahoo!
I still have their awful jingle in my head...
Yahoo has a jingle?
02:31
Yahoo-oo-oo-oo-oo-oo-oo-oo.
@Zacharee1 Google is your friend :D
no thx
But don't say I didn't warn you.
not gonna do it :p
Your ears will thank you.
So why is it in my Inbox, Gmail?
02:33
It wasn't in spam?
That's odd.
ikr
I must be one of the first people it was sent to
@ParanoidPanda want another rootkit?
@Seth The monitor had both vga and hdmi in. I eventually bought an hdmi cable and stopped using the adapter, which of course I can't find right now.
02:36
@chaskes haha, yeah, know that. Unfortunately the only monitors I regularly use don't have HDMI :/
I don't even have an HDMI cable lol
wow
you're so oldschool :p
Talking about old school: anybody still active on usenet?
Yeah. My music is on 8 track and my documents on floppy.
@andrew.46 A friend of mine is. But not me.
My Samsung monitor has VGA and DVI inputs. The LG display has those and HDMI.
@Seth did anyone ever actually use 8-tracks?
@NathanOsman advanced
02:37
I have a Thunderbolt-to-DVI adapter for my Mac Mini.
But if you have VGA and HDMI, isn't DVI pointless?
No because I have it connected to multiple things.
That way I can just tap a button to switch inputs.
well it could be another HDMI or VGA
that's mostly what I meant :p
How much did it cost and what are the specs?
@Seth Sad to see it in its death spiral.... alt.os.linux.ubuntu is slowly degenerating
@Seth What do they have if not hdmi (I tend to get behind on hardware)
02:38
It's a couple years old. 27" and about $250 or so.
@andrew.46 do you still have an icq number
@NathanOsman what about screen res
Now I really REALLY feel old.
@edwinksl No :)
02:39
@Zacharee1 Both are 1080p.
@chaskes VGA? DVI?
@chaskes VGA or DVI.
@NathanOsman do you have the model no?
@NathanOsman I used to use ICQ.
Sure, one sec...
02:39
It's still usable.
@Seth Now we're both old.
Except they abandoned their linux beta version..
Looks at @Zacharee1...
@NathanOsman lol
@Seth And just for the record from someone who was there, when music was on 8-track computer data was on cassette or reel to reel.
Get off my lawn!
I liked ICQ.
@NathanOsman I could get it now....
@chaskes haha yeah, slightly wrong tape tech I picked there :P
Nathan, still remember your ICQ #?
@NathanOsman you need dialup internet because you think it's required for your phone to work
02:40
i can't recall my icq number :(
All these years and it still comes back to me easier than my phone number lol
whoa
new ICQ linux client!
gotta try this!
seth is old school as hell
huehuehue
02:41
and it's OSS
ugh, now I have to make these console blocks for every server
bleghghgh
Dial-up over bluetooth on a CDMA phone. Now that was an oddly fun experience.
@edwinksl actually I never used 8 tracks much :P
@NathanOsman o_O
02:44
So should I have 72 PHP files to operate the API or should I learn indexes in PHP?
anyone gonna try the linux client with me?
discont'ed :(
@Seth on Windows? sure
heh
@NathanOsman ebay.com/itm/…
$74-ish total
That's how technology works.
02:46
It looks like a nice monitor
OK, time to practice this PHP stuff
0
Q: how to calculate TIME+ and also where i can find SHR?is there any formula for these things

Chandrasekar Sreenivasi am implementing my own top command.is there any formula for calculating TIME+? and also how to find shared memory of each process(SHR). i cannot find anything in proc.

@seth uh oh looks like we have awakened the icq dragon in you
lol
whoa, it's qt!
I thought it would be electron/node.
@Seth @Zacharee1 Ok, I found the adapter and mystery solved. It's an dvi to hdmi in a single unit. The memory got confused because the monitor had both vga and dvi (not hdmi).
@chaskes ahhh
02:49
@edwinksl We're doomed! (Imagine the SNL Bernie Sanders accent)
that makes more sense.
@chaskes tsk tsk tsk
Well, at least I'll be able to sleep tonight.
will you though? :}
@Zacharee1 Knowing that I proved you were right all along?... Yes.
02:50
aww thx ^~^
:p

« first day (2090 days earlier)      last day (3171 days later) »