Difference between revisions of "Ubuntu"

From wiki
Jump to navigation Jump to search
(Created page with "[https://www.ubuntu.com/ Ubuntu] is a linux distribution derived from [https://www.debian.org/ debian]. It's a very nice plug&play OS with all feature I need. The few things I...")
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://www.ubuntu.com/ Ubuntu] is a linux distribution derived from [https://www.debian.org/ debian]. It's a very nice plug&play OS with all feature I need. The few things I needed to tweak are listed here.
+
[https://www.ubuntu.com/ Ubuntu] is a linux distribution derived from [https://www.debian.org/ debian]. It's a very nice plug&play OS with all features I need.
  
===Disable dnsmasq===
+
;cat /etc/os-release
The NetworkManager by default starts dnsmasq that makes your system act as forwarding DNS-server (127.0.1.1 in /etc/resolv.conf).
+
;cat /etc/lsb-release
This local server sometimes is not working properly so disable it.
+
;lsb_release -a
 +
:Show the currently installed version. os-release has most information.
  
In /etc/NetworkManager/NetworkManager.conf comment out the line: "dns=dnsmasq"
+
==Modfications made==
/etc/resolv.conf will now show the DNS-server(s) provided by DCHP (if you use that).
+
 
 +
The few things I needed to tweak are listed here.
 +
 
 +
===NetworkManager===
 +
 
 +
NetworkManager is a bad idea, just disable it and use <code>/etc/network/[[Networking#Interfaces|interfaces]]</code> to configure your network. You may need to install ifupdown and disable the netplan thing to achieve this.
 +
 
 +
===Settings GUI===
 +
 
 +
One day I could not start the settings GUI anymore.  
 +
Removing the unity-control-center fixed the problem one time. On another install it didn't.
 +
 
 +
<code>sudo apt-get remove unity-control-center</code>
 +
 
 +
===Display===
 +
When I connect a monitor to my laptop on HDMI automatically a 3<sup>rd</sup> VGA display is found.
 +
;xrandr --listactivemonitors
 +
:Show all active monitors
 +
 
 +
;xrandr --output VGA-1-2 --off
 +
:Turn off the VGA display. The name may differ on other configurations.
 +
 
 +
==Add applications==
 +
To add an application to the 'Open with' list edit /usr/share/applications/newapp.desktop.
 +
 
 +
For opening jupyter notebooks I added jupyter.desktop that looks like below.
 +
I don't think everything is needed but it works.
 +
 
 +
[Desktop Entry]
 +
Type=Application
 +
Version=1.0
 +
Name=Jupyter
 +
GenericName=Jupyter notebook
 +
Comment=Prototyping and documentation
 +
Exec=jupyter notebook %F
 +
Icon=jupyter
 +
Terminal=false
 +
Categories=GTK;Development;IDE;
 +
MimeType=text/plain;text/x-python;
 +
StartupNotify=true
 +
Keywords=Python;Editor;

Revision as of 23:16, 15 November 2019

Ubuntu is a linux distribution derived from debian. It's a very nice plug&play OS with all features I need.

cat /etc/os-release
cat /etc/lsb-release
lsb_release -a
Show the currently installed version. os-release has most information.

Modfications made

The few things I needed to tweak are listed here.

NetworkManager

NetworkManager is a bad idea, just disable it and use /etc/network/interfaces to configure your network. You may need to install ifupdown and disable the netplan thing to achieve this.

Settings GUI

One day I could not start the settings GUI anymore. Removing the unity-control-center fixed the problem one time. On another install it didn't.

sudo apt-get remove unity-control-center

Display

When I connect a monitor to my laptop on HDMI automatically a 3rd VGA display is found.

xrandr --listactivemonitors
Show all active monitors
xrandr --output VGA-1-2 --off
Turn off the VGA display. The name may differ on other configurations.

Add applications

To add an application to the 'Open with' list edit /usr/share/applications/newapp.desktop.

For opening jupyter notebooks I added jupyter.desktop that looks like below. I don't think everything is needed but it works.

[Desktop Entry]
Type=Application
Version=1.0
Name=Jupyter
GenericName=Jupyter notebook
Comment=Prototyping and documentation 
Exec=jupyter notebook %F
Icon=jupyter
Terminal=false
Categories=GTK;Development;IDE;
MimeType=text/plain;text/x-python;
StartupNotify=true
Keywords=Python;Editor;