Just been trying to change swappiness in Xubuntu.
First, I got a message that gedit was not installed, so I followed the recommendation to install it.
That seemed to go ok, but when I tried to edit sysctl.conf the problems started. Despite error messages, sysctl.conf was presented in a different window and I was able to edit and save it, but when I re-run cat /proc/sys/vm/swappiness, the edit has not affected swappiness (ie: it's still set to 60, not 10)
Any ideas please? Thanks in advance.
M
[email protected]:~$ free -m
total used free shared buff/cache available
Mem: 3950 1834 640 64 1475 1785
Swap: 4092 0 4092
[email protected]:~$ cat proc/sys/vm/swappiness
cat: proc/sys/vm/swappiness: No such file or directory
[email protected]:~$ cat /proc/sys/vm/swappiness
60
[email protected]:~$ sudo gedit /etc/sysctl.conf
[sudo] password for mike:
sudo: gedit: command not found
[email protected]:~$ gedit /etc/sysctl.conf
The program 'gedit' is currently not installed. You can install it by typing:
sudo apt install gedit
[email protected]:~$ sudo apt install gedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic
linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic
linux-image-4.4.0-101-generic linux-image-4.4.0-98-generic
linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-98-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
gedit-common gir1.2-gtksource-3.0 gir1.2-peas-1.0 libpeas-1.0-0
libpeas-1.0-0-python3loader libpeas-common
Suggested packages:
gedit-plugins
The following NEW packages will be installed
gedit gedit-common gir1.2-gtksource-3.0 gir1.2-peas-1.0 libpeas-1.0-0
libpeas-1.0-0-python3loader libpeas-common
0 to upgrade, 7 to newly install, 0 to remove and 55 not to upgrade.
Need to get 632 kB of archives.
After this operation, 5,745 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 libpeas-common all 1.16.0-1ubuntu2 [13.7 kB]
Get:2
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 libpeas-1.0-0 amd64 1.16.0-1ubuntu2 [47.3 kB]
Get:3
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 gir1.2-gtksource-3.0 amd64 3.18.2-1 [17.1 kB]
Get:4
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 gedit-common all 3.18.3-0ubuntu4 [131 kB]
Get:5
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 gir1.2-peas-1.0 amd64 1.16.0-1ubuntu2 [5,678 B]
Get:6
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 libpeas-1.0-0-python3loader amd64 1.16.0-1ubuntu2 [11.1 kB]
Get:7
http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 gedit amd64 3.18.3-0ubuntu4 [406 kB]
Fetched 632 kB in 1s (411 kB/s)
Selecting previously unselected package libpeas-common.
(Reading database ... 261526 files and directories currently installed.)
Preparing to unpack .../libpeas-common_1.16.0-1ubuntu2_all.deb ...
Unpacking libpeas-common (1.16.0-1ubuntu2) ...
Selecting previously unselected package libpeas-1.0-0:amd64.
Preparing to unpack .../libpeas-1.0-0_1.16.0-1ubuntu2_amd64.deb ...
Unpacking libpeas-1.0-0:amd64 (1.16.0-1ubuntu2) ...
Selecting previously unselected package gir1.2-gtksource-3.0:amd64.
Preparing to unpack .../gir1.2-gtksource-3.0_3.18.2-1_amd64.deb ...
Unpacking gir1.2-gtksource-3.0:amd64 (3.18.2-1) ...
Selecting previously unselected package gedit-common.
Preparing to unpack .../gedit-common_3.18.3-0ubuntu4_all.deb ...
Unpacking gedit-common (3.18.3-0ubuntu4) ...
Selecting previously unselected package gir1.2-peas-1.0:amd64.
Preparing to unpack .../gir1.2-peas-1.0_1.16.0-1ubuntu2_amd64.deb ...
Unpacking gir1.2-peas-1.0:amd64 (1.16.0-1ubuntu2) ...
Selecting previously unselected package libpeas-1.0-0-python3loader.
Preparing to unpack .../libpeas-1.0-0-python3loader_1.16.0-1ubuntu2_amd64.deb ...
Unpacking libpeas-1.0-0-python3loader (1.16.0-1ubuntu2) ...
Selecting previously unselected package gedit.
Preparing to unpack .../gedit_3.18.3-0ubuntu4_amd64.deb ...
Unpacking gedit (3.18.3-0ubuntu4) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libpeas-common (1.16.0-1ubuntu2) ...
Setting up libpeas-1.0-0:amd64 (1.16.0-1ubuntu2) ...
Setting up gir1.2-gtksource-3.0:amd64 (3.18.2-1) ...
Setting up gedit-common (3.18.3-0ubuntu4) ...
Setting up gir1.2-peas-1.0:amd64 (1.16.0-1ubuntu2) ...
Setting up libpeas-1.0-0-python3loader (1.16.0-1ubuntu2) ...
Setting up gedit (3.18.3-0ubuntu4) ...
update-alternatives: using /usr/bin/gedit to provide /usr/bin/gnome-text-editor (gnome-text-editor) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu9) ...
[email protected]:~$ gedit /etc/sysctl.conf
** (gedit:9882): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-cX8z5tGIpX: Connection refused
[email protected]:~$ sudo gedit /etc/sysctl.conf
** (gedit:9934): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-cX8z5tGIpX: Connection refused
(gedit:9934): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:9934): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported
** (gedit:9934): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
** (gedit:9934): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported
[email protected]:~$