Nethence Newdoc Olddoc Lab Your IP BBDock  

Setting up Ubuntu Desktop

Post-installation

Eventually make things faster (sudo without password) on a desktop env as long as you are the sysadmin of the box,

    ADMINUSER=...
    cat > /etc/sudoers.d/$ADMINUSER <<-EOF
    $ADMINUSER  ALL = NOPASSWD: ALL
    EOF

Enable ctrl-alt-backspace to kill X like in the old days,

    sudo dpkg-reconfigure keyboard-configuration

Generate your workstation key pair and copy/paste it to the servers you need to maintain,

    ssh-keygen
    cat ~/.ssh/id_rsa.pub

also provide the PPK format,

    cd ~/.ssh/
    puttygen id_rsa -o id_rsa.$USER@$HOSTNAME.ppk

and it is easier to see the hosts you are dealing with into known_hosts clearly,

sudo vi /etc/ssh/ssh_config

    HashKnownHosts no

note. otherwise one needs to ssh-keygen -lf known_hosts.

Choose your DE of choice:

7226045f4950efb728db3debba80a7e17a31ff0c

Tweak your environment

Install a few packages from the Ubuntu Server post-installation guide. You may then add those ones for workstation usage,

    sudo apt install \
    vlc \
    mpv \
    chromium-browser \
    deluge deluged \
    filezilla \
    firefox \
    rxvt \
    terminator \
    thunderbird \
    xterm

    sudo update-alternatives --config x-terminal-emulator

Run (and enable?) indexing,

updatedb

Terminator

do you need Putty-like happy copy/pasting?

cp -pi /usr/share/terminator/terminatorlib/terminal.py /usr/share/terminator/terminatorlib/terminal.py.dist
vi /usr/share/terminator/terminatorlib/terminal.py
/def on_buttonpress
(change 3 to 2 and 2 to 3)

Ref. http://askubuntu.com/questions/211292/a-terminal-which-provides-select-to-copy-and-right-click-to-paste

Java & Eclipse

install Oracle Java,

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer oracle-java8-set-default

eventually fetch [Eclipse] (https://eclipse.org/downloads/), extract and install the IDE flavor of your choosing (you can do it from the gui).

Skype for Linux

Fetch the latest skype for linux as DEB and install,

    wget https://go.skype.com/skypeforlinux-64.deb
    dpkg -i skypeforlinux-64.deb
    apt -f install

Additional notes

Eventually install & setup Conky.

Eventually setup Netfilter to allow only outbound connections.

Networking

there is a main difference with the Ubuntu Server setup: network. It’s ok to keep using Network Manager on a desktop environment.

workstation

check your network settings handled by Network Manager,

nmcli device show ens2

domain search

three solutions:

  1. Control Center -> Network
  2. dhclient.conf
  3. resolv.conf.d/

  4. use the GUI,

    Control Center -> Network –> (general tab) Domain name: … Control Center -> Network –> (DNs tab) Search domains: …

  5. OR add some domain searches for DHCP sessions, e.g.,

    cd /etc/dhcp/ cp -pi dhclient.conf dhclient.conf.dist vi dhclient.conf

    prepend domain-search “example.com”, “example.local”;

  6. OR change the resolvconf config directly,

      cd /etc/resolvconf/resolv.conf.d
      cp -pi base base.dist
      vi base
    
      search example.com
    

also make sure that the local system hostnames resolves itselfs as FQDN accordingly (127.0.0.1 on a desktop)

NFS & CIFS ready

install nfs client to mount nfs shares,

    sudo apt install nfs-common

setup your default workgroup when mounting windows file shares,

    sudo apt install smbclient cifs-utils
    #smbfs samba
    vi /etc/samba/smb.conf

Multi-Boot

Reduce the boot-loader timeout,

cp -pi /etc/default/grub /etc/default/grub.dist
vi /etc/default/grub

GRUB_TIMEOUT=3

You can ask GRUB2 to boot the same OS that was booted last time by default,

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

Troubleshooting

iwl3945 power saving issue

experienced on IBM/Lenovo T60 / R60e

If you get this error in the logs while loosing iwl3945 wireless network connectivity,

BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xa5a5a5a2, s/b 0xf802020
Unable to set up bootstrap uCode: -5

and this error when trying to UP the wireless network interface,

    SIOCSIFFLAGS: Input/output error

==> disable wlan power saving using NetworkManager,

vi /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

wifi.powersave = 2

service NetworkManager restart
iwconfig wls3

Kodi / ureadahead

(optional) you might also want to remove that one in case it is installed and not needed (it was spamming my logs),

    sudo apt remove ureadahead
    #sudo apt purge ureadahead

locales

sudo dpkg-reconfigure locales
#sudo locale-gen
sudo update-locale LANG=en_US.UTF-8

OEM Installation

Choose the OEM auto-install if you need to delivery the computer to someone-else: finish-up the process as oem user, then click on the Prepare for shipping and the user will have a little setup wizard next boot.

Finish-up as OEM user, choose preferred mirror for packages,

Control Center -> Software Sources

and apply updates using the little shield button in the systray.

install additional languages depending on target users,

Control Center -> Languages

make sure Firefox is also available language-specific.

You’re now ready to click “Prepare for shipping” on the Desktop and reboot.

Note. few things are missing with this method e.g. Adblock for Firefox.

Web Browser Java

To get Java plug-in to work into firefox you need an older version: v52 (not v56),

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer oracle-java8-set-default

cd /usr/lib/firefox-addons/plugins/
ln -s /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so

Start menu > Oracle Java 8 plugin control panel
security > add exception for http://lpb.canb.auug.org.au

wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.4.1esr/linux-x86_64/en-US/firefox-52.4.1esr.tar.bz2
tar xjf firefox-52.4.1esr.tar.bz2 
cd firefox/
./firefox

Legacy Adobe Reader

It is still possible to run the old proprietary Adobe Reader on Linux, although it is 32-bit,

wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
apt -f install
apt install libcanberra-gtk-module:i386
apt install atk-bridge:i386

Home | GitHub | Donate | Contact