I am running Ubuntu 16.04 and let's say I have done some drastic modifications to the /etc/init.d/halt script. Now I want to restore it to the original version. How do I do that?
Interesting. I'm working on a sort of webapp on a beagleboard that controls a crock pot.
Ever have one of those conference calls where you wonder if them talking about RDX getting fired is referring to you being dynamite - all the work done at once or it being an actual contracted company?
@Mateo sous vide crock pot and countertop still with perfect temperature control with modular components you can snatch out and repurpose for other projects to suit home cooks, home shiners, home makers, repairs, etc etc etc.
@Mateo Oli mentioned the sous vide thing. I just added a dimension to it.
I won't pay for a $145 dollar thermostat that controls current when I can get a 5 dollar board and a 4 dollar thermostat with a 15 dollar electrical receptacle controller, and have it controlled by a smartphone and push notifications. I mean, who would. It has a LOT of selling points.
Wife won't let you buy more hardware? buy this appliance. Not only is it modular for repairs, but we use all open source hardware and software. We also let you rip it open and use the parts for whatever you want. We also let you use it as a starter project to get familiar with hardware. We also let you use it to buy a bbgw without buying one. etc etc
well, there's a large craft brewing industry here. so, a multipurpose device would be nice for consumers. an adapter to hold the handle on to a copper pipe inside where the handle is supposed to be and all off the shelf parts would be diabolical.
like, a local craft brewer said "we don't do liquor not because our license doesn't allow it, but because we're scared of blinding people." and I said something like "well with a slow cooker model, you can wait until a scale stops gaining weight in between methanol and ethanol temperatures, then just nail it down. you couldn't possibly blind people"
I was on this Low Quality review
I wouldn't say this fulfills the community rules for asking a good question: No research, no given example, no attempt to solve the issue, not exactly clear to me where the problem is.
But the review tells me I'm wrong because 8 people liked the question.
So po...
@santosh There's no Ubuntu 14.02, do you mean 14.04? Why do you want to use the oldest still supported version of Ubuntu? I have a machine with 1,5 GB RAM running 16.04 smoothly, a newer version does not necessarily need more system resources.
I discovered this old answer thanks to an edit suggestion which may look somewhat unnecessary. The suggestion was to remove the following phrase from the answer
and read a basic bash programming manual
and along with the comment
Removed unhelpful and borderline rude comment. The rest o...
I have a female coworker (superior technically but in another department.)
We've worked together for about 4.5 years and have been become pretty good friends, we'll always chat in the kitchen at work and occasionally see each other outside of work for drinks or whatnot.
Recently she confided ...
The gibibyte is a multiple of the unit byte for digital information. The binary prefix gibi means 230, therefore one gibibyte is equal to 1073741824bytes = 1024 mebibytes. The unit symbol for the gibibyte is GiB. It is one of the units with binary prefixes defined by the International Electrotechnical Commission (IEC) in 1998.
The gibibyte is closely related to the gigabyte (GB), which is defined by the IEC as 109 bytes = 1000000000bytes, 1GiB ≈ 1.074GB. 1024 gibibytes are equal to one tebibyte. In the context of computer memory, gigabyte and GB are customarily used to mean 10243 (230) byte...
But, basically, The Right One® is to use the multiple of 1024. But that's the very technical thing and we are used to multiples of 10, so that's what you see most often.
I have a disk that appear with 134G with the command lsblk but a higher number with lsblk -b (about 10G more)
Why do I have a different size with lsblk and lsblk -b?
#lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 134G 0 disk
[...]
# lsblk -b
NAME ...
As a developer, if you put a magic number constant anywhere, and it's completely random, people will ask why it's that value. If it's a power of 2 though, people seem to believe there must be a deeper reason to it and not ask.
To make the confusion complete the installed RAM size also differs from the RAM available to Linux, that's why you don't get a total 4000 with free -m --si. It's 3926 on my machine.
On Linux,
read x memtotal x < /proc/meminfo
Would store the total mem amount in $memory in number of kiB. That's the amount of memory available to Linux, the same as reported by free.
If you want the installed RAM, you could do things like:
awk '{s+=$0};END{print s}' /sys/bus/mc*/devices/di...
@dessert Hmm, yes. But am I actually missing them? Or is that the "real" number? Linux does reserve some RAM for disk caching, but I would expect that to be included in the "Total" value of free.
I am connecting to my servers over SSH and SFTP to manage my files. I am editing files with Sublime Text 3 using Nautilus as a my FTP client.
Everything is fine and the files write to the server. The issue is when I start looking at the file permissions as see that they have been changed from w...
Please review the following Bash script that uses to establish a "lightweight" Ubuntu-Nginx server environment mainly aimed to run small WordPress sites (about 5 plugins, about 25 webpages, about 25 images) on a cloud hosting platform.
The BASHRC heredocument sets aliases for personal scripts I ...
Logging invalid usernames can result in logging failed passwords. Is there any way to silent these logs in /var/log/auth.log file ? This discussion:https://access.redhat.com/solutions/881103 in summary says there is no official solution. Any hacks ? Thanks.
Invalid user vj from 10.10.10.10
input...
Recently I came across a question, which was a duplicate of an already asked question here. The duplicate question had an overall negative score ( of -4), but the answers to that duplicate were upvoted (one had a score of 57 as of the time when I'm posting this question, while the top answer on t...
Great! I think I'll try to work a little bit on merging the two templates though, they repeat themselfs a LOT, but if I can't come up with something at least as organized as the other I'll leave as it is