I am follwing this guide, and I am missing my /etc/sysctl.d/sysctl.conf file, what can I do to amend this situation? Here is what is currently in there.
Announcement
Collapse
No announcement yet.
Missing my /etc/sysctl.d/sysctl.conf , what can be done?
Collapse
This topic is closed.
X
X
-
-
For instance the file /etc/sysctl.d/10-magic-sysrq.conf is
Code:# The magic SysRq key enables certain keyboard combinations to be # interpreted by the kernel to help with debugging. The kernel will respond # to these keys regardless of the current running applications. # # In general, the magic SysRq key is not needed for the average Ubuntu # system, and having it enabled by default can lead to security issues on # the console such as being able to dump memory or to kill arbitrary # processes including the running screen lock. # # Here is the list of possible values: # 0 - disable sysrq completely # 1 - enable all functions of sysrq # >1 - enable certain functions by adding up the following values: # 2 - enable control of console logging level # 4 - enable control of keyboard (SAK, unraw) # 8 - enable debugging dumps of processes etc. # 16 - enable sync command # 32 - enable remount read-only # 64 - enable signalling of processes (term, kill, oom-kill) # 128 - allow reboot/poweroff # 256 - allow nicing of all RT tasks # # For example, to enable both control of console logging level and # debugging dumps of processes: kernel.sysrq = 10 # kernel.sysrq = 176
Changelog
procps (1:3.3.3-2ubuntu2) quantal; urgency=low
* Add debian/sysctl.d/10-magic-sysrq.conf: disable the magic sysrq key
by default, since it's not needed for the average system, and exposes
security issues such as memory disclosure and killing arbitrary
processes including the screen lock. (LP: #194676)
-- Marc Deslauriers <marc.deslauriers@ubuntu.com> Thu, 21 Jun 2012 08:19:56 -0400
- Top
- Bottom
-
I also found this configuration which has me a little worried in /etc/sysctl.d/ , a file named 30-baloo-inotify-limit.conf which has
Code:fs.inotify.max_user_watches = 524288
For an intelligent IDE it is essential to be in the know about any external changes in files it working with - e.g. changes made by VCS, or build tools, or code generators etc. For that reason, IntelliJ platform spins background process to monitor such changes. The method it uses is platform-specific; and on Linux it is Inotify facility.
Inotify requires a "watch handle" to be set for each directory in the project. Unfortunately, the default limit of watch handles may not be enough for reasonably sized projects, and reaching the limit will force IntelliJ platform to fall back to recursive scans of directory trees.
To prevent this situation it is recommended to increase the watches limit (to, say, 512K). You can do it by adding following line to the /etc/sysctl.conf file:
fs.inotify.max_user_watches = 524288
Then run this command to apply the change:
sudo sysctl -p
And don't forget to restart your IDE.
Note: the watches limit is per-account setting. If there are other programs running under the same account which also uses Inotify the limit should be raised high enough to suite needs of all of them.
The first version of IntelliJ IDEA was released in January 2001, and at the time was one of the first available Java IDE with advanced code navigation and code refactoring capabilities integrated.[3][4]
Google is developing a product called Android Studio, an open source Android Development IDE based on the open source community edition of IntelliJ IDEALast edited by bonkers; Nov 27, 2014, 05:01 PM.
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Furthermore, you should know that the change to systemd will affect how various distributions use these files. For instance, in Arch Linux, the file /etc/sysctl.conf is ignored completely -- it is required that all settings be made in the various separate files in the sysctl.d subdirectory. I don't know whether the same applies to Ubuntu and its flavors, because I haven't (yet) converted to systemd.
Originally posted by bonkers View PostHere is what is currently in there.
Originally posted by bonkers View PostFor instance the file /etc/sysctl.d/10-magic-sysrq.conf is
...
I read that this overrides /etc/sysctl, but where is /etc/sysctl.d/sysctl.conf ?
Originally posted by bonkers View PostAlso why 176?
Code:# >1 - enable certain functions by adding up the following values:
Originally posted by bonkers View PostI also found this configuration which has me a little worried in /etc/sysctl.d/ , a file named 30-baloo-inotify-limit.conf which has
...
I found this on wiki which states :
...
I had a problem with an Android phone, someone broke into it and basically made it unusable
Absolutely none of the above has anything to do with your compromised phone. However, if someone did attack your phone, you should know that you can't trust it. Your highest priority should be to wipe all partitions, plus the recovery and the bootloader. Then flash a clean bootloader, recovery, and Android ROM. Caution: if you don't know how to do this, find a friend who does. Incorrectly flashing images -- especially a bootloader -- can permanently brick a phone.Last edited by SteveRiley; Nov 27, 2014, 07:39 PM.
- Top
- Bottom
Comment
Comment