Setting default display mode for additional monitor

screen setup should be remembered, but in cases like this, it is mostly the graphics driver and the screen that do not communicate accurately in an early stage after log in, causing the screen setup jump back to default.

How to solve

It can easily be solved by running an xrandr command a few seconds after log in, and both screens are recognized.

Add the following command to Startup Applications: Dash > Startup Applications > Add:

/bin/bash -c "sleep 10 && xrandr --output DVI-I-1 --pos 0x0 && xrandr --output DVI-D-0 --pos 1920x0"

Notes

Please first test the command

xrandr --output DVI-I-1 --pos 0x0 && xrandr --output DVI-D-0 --pos 1920x0

before adding it to startup applications to make sure I made no typos.

Explanation

See this answer for an extended explanation.


Where can I find the configuration files for Kdenlive?

The config file for kdenlive is located in

~/.kde/share/config/kdenliverc

And / or:

~/.config/kdenliverc

Additionally, there's also a directory

~/.kde/share/apps/kdenlive/

And

~/kdenlive

Which contains additional configuration data, including export profiles, video file information and so on, so you should back that up too.

To see the .kde directory, you'll need to enable "Show hidden files" in your file manager. In Nautilus (The default Ubuntu / Unity file manager), you can do so with ctrl + h


Yes, via a Live USB of Ubuntu you can use GParted to resize your partitions. There's a good tutorial located here:

Note: Make sure you backup any important information before making changes! Also, don't resize/move over your Ubuntu boot partition and when resizing, you can only expand into continuous unallocated space.

You need to reinstall grub-bootloader , follow this guide to reinstall grub. It will replace previous crunchbang grub.


Detect pending sheduled shutdown Ubuntu Server 16.04.1

You can use

cat /run/systemd/shutdown/scheduled

This was added to systemd 220 release as explained here:
https://www.phoronix.com/scan.php?page=news_item&px=Systemd-Kill-Shutdownd


how to access home files from try ubuntu

If you can find your /home partition, you can try mounting it:

sudo mkdir /rescue
sudo mount /dev/sdax/ /rescue

Replace sdax with your /home partition. If you run into permission problems, you can try giving yourself full permissions with:

sudo chmod -R 766 /rescue

Please keep in mind that this will give all group and non-group members full permissions (except execute) as well. You should change these after your rescue is done.

If you can't access /home through your file manager or you can't change the permissions, you can try using chroot to get into the damaged system. Boot up a live disk, then run the following:

sudo mount /dev/sda1 /mnt
sudo chroot /mnt

Replace sda1 with your root partition.

This should give you command line access to the damaged install, and you should be able to access your /home directory.


No graphics after installing AMD Catalyst 12.4 and installing the recommended updates afterwards

I took the risk of uninstalling Catalyst using the procedure described here.

After Catalyst had been removed, I could install all the upcoming updates. The open source drivers handle the graphics card with dual view very well.


Nautilus does not start: .cache/tracker/meta.db not found

As you moved over your old home of Ubuntu 18.04 to Ubuntu 20.04, and apparently by hand, it might be that your old user configuration data, i.e., the hidden files, do not play well with Ubuntu 20.04. You can test that by (temporarily) creating a new user account. Very likely, the new account will not have the issue.

If this way, you have confirmed that the user configuration data is the problem, then you can try resetting your main account as indicated here. Before proceeding, to be on the safe side and keep having a working account, you can give administrator privileges to the temporary user you have created. Instead of having to boot into a recovery prompt, you can use the account of your temporary new user to do this.

If, after the procedure, you succeed to log in into your current account, you can move the user data (Documents, Pictures, ...) back. Once everything is in place, the temporary account can be removed again and the /home/youruser-backup folder can be deleted.


Wireless connection problems only on gnomebuntu

I have fixed this problem, it turns out that my phone uses MD5 to connect whereas my laptop uses mchapv2 to connect. FML! switches to mchapv2 fixed the problem.


I broke software updater by making python3 default

I managed to solve the issue myself. The problem was the broken symlink in /usr/bin

First I identified where python3 is. I guessed that the python3 binary would be in a similar folder as python2. So I typed ls -l /usr/bin/python.

This gave me /usr/bin/python -> /etc/alternatives/python2.7.

Since in /etc/alternatives/ there was no python3, I repeated the process

ls -l /etc/alternatives/python2.7 gave

/etc/alternatives/python2.7 -> /usr/bin/python2.7

A simple ls /usr/bin/python3.[1-9] listed all the python binaries available. The one I was interested in was python3.4.

Then I simply created a symlink with sudo ln -s /usr/bin/python3.4 /usr/bin/python3.

Problem solved.


You can use an ad blocker like adblock plus in your browser,
and define rules to not load certain pages matching some pattern.

For this general approach, Adblock plus firefox addon would work.

For the specific use case in your example:
Use the addon LeechBlock-NG, which is directly targeted at this.

In the review comments, you find an explicit configuration for your exact case
(The review question first states it does not work - but the answer explains it does work)


Try this.  just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install html2text
sudo apt-get install python-html2text


How to setup Huawei Vodafone 4G dongle on Ubuntu

If it now shows up as Ethernet it's fine. That is how many new 3G/4G modems work.

Instead of configuring a new broadband connection, open the connection information for you new Ethernet connection, find th IP address and open it in the web browser. Follow instructions to connect/disconnect.


Ubuntu on ThinkPad. Erase recovery partition and burn a recovery cd instead

Regarding viewing the drive through Ubuntu, usually Ubuntu will auto-mount any partition types it recognizes, so if that's not happening, maybe it is a file system type that isn't supported without something else being installed. Or perhaps you simply need to mount it manually. If you run sudo fdisk -l, this may help identify the path to the the partition.

Once you have it mounted in Ubuntu, you can then consider dd'ing the contents of the partition to a file, from which in the future, you could rebuild the drive.


Internet speed testing software for Lubuntu

1) Install speedtest-cli(1) e.g. using the following terminal commands:

sudo apt-get install python-pip
sudo pip install speedtest-cli

2) Copy & paste the following simple bash script into a new plain text file (e.g. ~/.bin/SpeedTestGUI.sh)

#!/bin/bash
notify-send "Retrieving speedtest.net configuration..." -i gtk-dialog-info -t 1 -u normal && notify-send "Retrieving speedtest.net server list..." -i gtk-dialog-info -t 1 -u normal && notify-send "Selecting best server based on ping..." -i gtk-dialog-info -t 1 -u normal && notify-send "Your download and upload speeds will be calculated and displayed in a popup window shortly..." -i gtk-dialog-info -t 5 -u normal &
TMPFILE=`mktemp -t speedtest.XXXXXX`
speedtest-cli 2>&1 > $TMPFILE
# Check if the temp file is empty: if true there's something wrong with network
if [ ! -s "$TMPFILE" ]; then
 zenity --error --text="Network Error!"
else
# Determine ISP source server, best target server, dowload and upload speeds
SOURCE="$(cat "$TMPFILE"|sed -n '3,3p'|sed -e 's/Testing from //g' -e 's/\.\.\.//g')"
TARGET="$(cat "$TMPFILE"|sed -n '5,5p'|sed -e 's/Hosted by //g' -e 's/: .\+$//g')"
DOWNLD="$(cat "$TMPFILE"|sed -n '7,7p'|sed -e 's/Download: //g')"
UPLOAD="$(cat "$TMPFILE"|sed -n '9,9p'|sed -e 's/Upload: //g')"
# Display information obtained
zenity --info --text="\nISP Server: $SOURCE\n\nTarget Server: $TARGET\n\nDownload Speed: $DOWNLD\n\nUpload Speed: $UPLOAD"
# Remove the temp file when the user closes the zenity window
rm -f $TMPFILE
fi

3) Make it executable and run it - either by clicking in your file manager or by adding it to a menu.

A Zenity info box will display basic internet speed details.

(1) Further info: http://www.webupd8.org/2014/02/how-to-test-internet-speed-via-command.html


Refer to this page to verify your system build meets the Ubuntu 18.04 Installation/System Requirements.

To upgrade using the command line instead of the graphical update manager:

sudo apt update && sudo apt dist-upgrade
sudo apt install update-manager-core
do-release-upgrade

After completion, to verify the installation is successful, do:

lsb_release -a

Taken from 2 Ways to Upgrade From Ubuntu 16.04/17.10 To Ubuntu 18.04 (Graphical & Terminal).


can't upgrade from google chrome 45 to 50. Says, Unable to find expected entry

One possible workaround is downloading and installing latest chrome (.deb) from Google manually.

After having downloading it you have to either installing it by doubleclicking the .deb file or executing

sudo dpkg -i /path/to/local/chrome.deb

Manually installing the deb should as well add a new entry to your sources for later upgrades.


What is the Step by Step Guide to have Qt (QML) properly setted in Ubuntu 12.04 to start developping with QML?

You need to make sure that you are naming QtWebKit by the right version

import QtQuick 1.0
import QtWebKit 1.0

That is great for Qt-Quick 1.0
But there have been some changes in version numbers in QtWebKit

import QtQuick 2.0
import QtWebKit 3.0

You also need to make sure that you are using the correct import path with QtCreator

example if you are using qt5 BETA 1 form the canoinical qt edgers ppa(ppa:canonical-qt5-edgers/qt5-beta1) then under

/opt/qt5/imports/

has some imports in it. and is the default area for running qmlscene

But if you are using say Qt5 stable from there site ( http://qt-project.org/downloads ) then all imports should be under

/opt/qt5/5.0.0/gcc/qml

or you could place them under

/opt/qt5/5.0.0/gcc/imports

But then you need to set the path that qmlsceen is using like

 -I /opt/qt5/5.0.0/gcc/imports

you can also do this from Qt creator

Or from the command line

/opt/qt5/5.0.0/gcc/bin/qmlscene -I /opt/qt5/5.0.0/gcc/imports MyQmlfile.qml

I wrote more about this at this wiki

https://wiki.ubuntu.com/Qml-Phone-Alternitive

example of qtwebkit

import QtQuick 2.0
import QtWebKit 3.0

Rectangle{
    id: rootangel
    color:"black"
    width: 1280  //parent.width
    height: 720 //parent.height
//anchors.fill: parent

WebView {
    url: "http://www.hulu.com"
    width: rootangel.width
    height: rootangel.height
    scale: 1
    smooth: false
}
}


(As I've been asked to post this as an answere, here I go:)

Well, writing here made me research this farther. First I notice that I can run:

sudo apt-get install --reinstall firefox

to force the "restart needed" notification, even if it's just reinstalling the same version. Then I started Firefox from a console and saw:

(firefox:20019): Gtk-WARNING **: Error loading theme icon 'reboot-notifier' for stock: Icon 'reboot-notifier' not present in theme

so it's reboot-notifier what's missing. Then:

$ locate reboot-notifier
/usr/share/icons/Humanity/apps/24/reboot-notifier.svg
/usr/share/icons/Humanity/apps/48/reboot-notifier.svg

Hmm... that's too few, and I'm using the Oxygen theme in KDE, not Humanity. Where can I get the icon?

$ apt-file search reboot-notifier
elementary-icon-theme: /usr/share/icons/elementary/apps/24/reboot-notifier.svg
elementary-icon-theme: /usr/share/icons/elementary/apps/32/reboot-notifier.svg
elementary-icon-theme: /usr/share/icons/elementary/apps/48/reboot-notifier.svg
gnome-colors-common: /usr/share/icons/gnome-colors-common/16x16/apps/reboot-notifier.png
gnome-colors-common: /usr/share/icons/gnome-colors-common/22x22/apps/reboot-notifier.png
gnome-colors-common: /usr/share/icons/gnome-colors-common/24x24/apps/reboot-notifier.png
gnome-colors-common: /usr/share/icons/gnome-colors-common/32x32/apps/reboot-notifier.png
gnome-colors-common: /usr/share/icons/gnome-colors-common/scalable/apps/reboot-notifier.svg
gnome-icon-theme-gartoon-redux: /usr/share/icons/GartoonRedux/16x16/apps/reboot-notifier.png
gnome-icon-theme-gartoon-redux: /usr/share/icons/GartoonRedux/22x22/apps/reboot-notifier.png
gnome-icon-theme-gartoon-redux: /usr/share/icons/GartoonRedux/24x24/apps/reboot-notifier.png
gnome-icon-theme-gartoon-redux: /usr/share/icons/GartoonRedux/32x32/apps/reboot-notifier.png
gnome-icon-theme-gartoon-redux: /usr/share/icons/GartoonRedux/scalable/apps/reboot-notifier.svg
humanity-icon-theme: /usr/share/icons/Humanity/apps/24/reboot-notifier.svg
humanity-icon-theme: /usr/share/icons/Humanity/apps/48/reboot-notifier.svg
update-notifier: /usr/share/icons/hicolor/16x16/apps/reboot-notifier.png
update-notifier: /usr/share/icons/hicolor/22x22/apps/reboot-notifier.png
update-notifier: /usr/share/icons/hicolor/24x24/apps/reboot-notifier.png
xubuntu-icon-theme: /usr/share/icons/elementary-xfce/apps/24/reboot-notifier.png
xubuntu-icon-theme: /usr/share/icons/elementary-xfce/apps/32/reboot-notifier.png
xubuntu-icon-theme: /usr/share/icons/elementary-xfce/apps/48/reboot-notifier.png

Fortunately, I have another system where the icon was working, and there I could see that locate reboot-notifier said the hicolor ones were installed. Also update-notifier is the only package that's not a specific icon theme (although the file paths look like a specific icon theme). So I install it:

$ sudo apt-get install update-notifier

which asked for a total of 49 packages to be installed (why was this not installed already? why do I have to install all this to get the icon? why does Firefox not requiere this?).

This has apparently solved my problem, now I get a nice icon:


Ubuntu 20.04 Full Screen Mode Resolution in Hyper-V is very small

The xrdp.service is not starting because the address already in use.  There is an issue about this on github.
To solve this:
First, get the scripts from GitHub:
sudo apt-get update
sudo apt install git
git clone https://github.com/Microsoft/linux-vm-tools.git ~/linux-vm-tools
cd ~/linux-vm-tools/ubuntu/18.04/

Then, make the scripts executable and run them...
sudo chmod +x install.sh
sudo ./install.sh
sudo reboot
cd ~/linux-vm-tools/ubuntu/18.04/
sudo ./install.sh
sudo systemctl enable xrdp.service

Open /etc/xrdp/xrdp.ini for editing:
sudo gedit /etc/xrdp/xrdp.ini

add these two lines (or change them if present):
port=vsock://-1:3389
use_vsock=false

restart the service and system:
sudo xrdp restart
sudo shutdown -h 0

On Windows Powershell with Admin Privileges, run the command:
Set-VM -VMName <your_vm_name>  -EnhancedSessionTransportType HvSocket

This solution is adapted from the Microsoft Tech Community and a post on medium.com


The command won't output anything at all if it worked unless you add the V option to make it produce output verbosley. I recomend you read the chmod manual available here or by running man chmod as you should make sure you know what each command is doing.

To make it work recursivly, you just need to pass the -R recursive flag - e.g. so this command will make everything in /opt/lampp/htdocs have the permission -rwxr-xr-x (file folder owner can read. write and execute, the group and everyone else can read and execute :

sudo chmod -R 755 /opt/lampp/htdocs

Please note that this I think will apply to both files and directories, and if directories do not have a executable permission they won't work (see here). So if you don't want files to be excutable, you will need to use something like this (probably as root):

find /path/to/base/dir -type d -exec chmod 755 {} +
find /path/to/base/dir -type f -exec chmod 644 {} +

If you want to know what this does, you can read the relevant parts of the find manual (man find). Basically if find all the files/folders in the specified path and changes the permissions of them.

If you want to become the owner (and group) of the files (may not recommendable for server and system configuration files) so you can change (write to) them, consult this question. This is also possible by being in a group that has write access to the files, or by making all 'other' users have write access to them


How can I install pdftk in Ubuntu 18.04 and later?

The pdftk package in Ubuntu (and its upstream Debian package) was dropped due to its dependency on the now deprecated GCJ runtime. I found a fork that depends on OpenJDK or similar instead.
Install from a future Ubuntu release (recommended)
Starting with Cosmic (Ubuntu 18.10), Ubuntu ships pdftk-java from the same source code as below as a replacement.  Attempting to install pdftk will install this package instead.  Users of earlier releases can download it manually from the package repository and install it with their favourite package manager.
Install from PPA (outdated)
I built a Deb package (for Bionic only) with suitable dependencies:
sudo add-apt-repository ppa:malteworld/ppa
sudo apt update
sudo apt install pdftk

The package contains a wrapper script placed in /usr/bin, so you can invoke it as normally:
pdftk <arguments> ...

Install from source

Install the build tools and dependencies:
sudo apt install git default-jdk-headless ant \
    libcommons-lang3-java libbcprov-java

Of course you can use a different supported JDK than the one supplied by default-jdk-headless.

Download Marc Vinyal’s pdftk fork:
git clone https://gitlab.com/pdftk-java/pdftk.git
cd pdftk

Place symbolic links to the required libraries into the lib folder:
mkdir lib
ln -st lib /usr/share/java/{commons-lang3,bcprov}.jar

Build the JAR package:
ant jar

Run the JAR package:
java -jar build/jar/pdftk.jar --help

(Optional) To run the JAR package, e. g. when you distribute it to other systems, you need at least a working (headless) JRE like from the default-jre-headless package as well as the Java libraries libcommons-lang3-java and libbcprov-java:
sudo apt install default-jre-headless libcommons-lang3-java libbcprov-java

Again you can use a different JRE than default-jre-headless. This pdftk fork also supports builds for older JRE versions (≥ 7 according to the documentation).

(Optional) You can teach Linux to execute JAR (Java Archive) files via update-binfmts(8). Most JREs shipped in Deb packages, including those in Canonical’s package repositories, take care of that during installation, though it appears to be buggy in some OpenJDK packages.

P.S.: I tried this with the non-headless OpenJDK 9 in Ubuntu Trusty but I see little reasons why it shouldn't work with headless OpenJDK 10 in Bionic.
Depending applications
A commenter raised the valid question whether the depending PDF Chain applications is affected by this change:

No, PDF Chain is a C++ application and not directly affected by the deprecation of GCJ. It needs a working pdftk executable but doesn’t care how it works under the hood. In any case, PDF Chain was dropped from Bionic as well as pdftk.


How to make Ubuntu decrypt the specific directory?

Nautilus is the file manager created for GNOME, not a disk/data encryption backend. The context menu of nautilus offers you a possibility to compress (and encrypt) folder via Archive Manager (formerly: File Roller) which is another graphical interface – the frontend for the archiving utilities such as tar and zip1 (the latter with encrypting abilities).

After successful encryption of the folder, you can decrypt it by clicking on Extract Here in nautilus' context menu (right-clique window), and typing the password into the dialog box invoked by the Archive Manager.

Tip and hint – to be wise after the damage done without awareness – if I may: Never encrypt the important data without testing how the encryption/decryption works in the first place! You cannot cancel already finished encryption, only stop (cancel) the process (not applicable in this case), and order the software decrypt already encrypted portion of data.

1 File Roller at sourceforge.net


Simple Solution

Create two shortcuts, one for disabling the Super key, and one for restoring it at will.

Go to System Settings -> Keyboard -> Shortcuts -> Custom , and click + button. Name the new shortcut "Disable Dash". The command is

 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ show-launcher 'Disabled'

To create shortcut for re-enabling the script, repeat the above steps, but the command should be

 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ show-launcher '<Super>'

A Scripting Solution

The script bellow will disable the Super key when program that the user has specified has focus. Note that the user still is able to click the dash icon with the mouse to invoke the Dash. The program name must be single-quoted and exactly the same as appears in Unity Launcher. Multiple windows can be specified in the same format separated by space

For instance, to disable Super key every time firefox window has focus, the script must be called as

disable_super_key.sh 'Firefox Web Browser'

To disable both firefox and gnome-terminal do

disable_super_key.sh 'Firefox Web Browser' 'Terminal'

How to get the script

Users can either copy the source here or alternatively obtain it from github following the instructions bellow:

sudo apt-get install git
cd /opt ; sudo git clone https://github.com/SergKolo/sergrep.git
sudo chmod -R +x sergrep

The script will be located in /opt/sergrep/disable_super_key.sh

To make the script start automatically on every login, refer to How do I start applications automatically on login? . Provide /opt/sergrep/disable_super_key.sh(full path) as the command

Script Source

#!/usr/bin/env bash
#
###########################################################
# Author: Serg Kolo , contact: 1047481448@qq.com
# Date: April 12 , 2016
# Purpose: Disable super key that brings up Unity Dash
#          per specific application
#
# Written for: https://askubuntu.com/q/754884/295286
# Tested on: Ubuntu 14.04 LTS
###########################################################
# Copyright: Serg Kolo , 2016
#
#     Permission to use, copy, modify, and distribute this software is hereby granted
#     without fee, provided that  the copyright notice above and this permission statement
#     appear in all copies.
#
#     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
#     THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
#     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#     DEALINGS IN THE SOFTWARE.

ARGV0="$0"
ARGC=$#
enable_dash_key()
{
  gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ show-launcher '<Super>'
}

disable_dash_key()
{
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ show-launcher 'Disabled'
}

get_active_app()
{
   qdbus org.ayatana.bamf \
        /org/ayatana/bamf/matcher \
        org.ayatana.bamf.matcher.ActiveApplication
}

get_active_app_name()
{
  qdbus org.ayatana.bamf \
   $(get_active_app)   \
   org.ayatana.bamf.view.Name
}

check_active_app()
{
  active_name=$(get_active_app_name)
  local is_found
  for win in  "${windows_list[@]}"
  do
    if [ "$active_name" = "$win" ] ; then
      is_found=true
      break
    else
      is_found=false
    fi
  done

  if $is_found ; then
     disable_dash_key
  else
     enable_dash_key
  fi
}

print_usage()
{
cat << EOF
Copyright Serg Kolo , 2016

Usage: disable_super_key.sh 'App Name 1' [ 'App Name 2' 'App Name 3' ...  ]

The script disables the Super key for the specified set of applications
under Ubuntu's Unity environment. The list of windows must be space
separated, each app name single quoted and exactly as it appears on the
launcher (or as it appears in the .desktop file of that app), so spelling
and spacing matter.

Note that the script only disables the Super key as shortcut for Dash.
The user still will be able to invoke Dash by manually clicking on the
Ubuntu icon in the launcher
EOF
}

main()
{

  if [ $ARGC -eq 0   ]; then
     print_usage
     exit
  fi

  local windows_list
  windows_list=( "$@" )
  dbus-monitor --profile "type='signal',member='FocusedWindowChanged'" |\
  while read line
  do
     case "$line" in
       *FocusedWindowChanged*) check_active_app ;;
     esac
  done
}

main "$@"


After entering password in keyring box the desktop freezes

Switch to X (the graphical interface that is frozen) usually by typing Alt+7 and then type Alt+SysRq+k .

This will kill X and it will restart. This is kind of a "nasty" solution but without additional details and debugging is the best I can offer.

-- or --

logged in on a virtual console (or remotely) type sudo service gdm restart


That has been the case for a couple of releases. A CD is not going to work anymore. On the download page it states (it does not show that on the current Ubuntu download website itself though; I used the 15.04 version; that notice used to be on the 14.10 and 14.04 one too):

  Warning: This image is oversized (which is a bug) and will not fit onto a standard 703MiB CD. However, you may still test it using a DVD, a USB drive, or a virtual machine.

Alternatives ...

Use a DVD.
Use an USB flash drive.
Use a partition on your hard disk and tell grub to start from it.

In case you MUST use a CD you could pick up a server (578Mb) version and install the desktop from command line.

Ubuntu 15.04 currently is 1.1 Gb and I doubt it is going to get smaller.

Regarding

  I tried downloading it to a flash drive but the program won't let me.

That wont work; you need to install it onto the flash drive and then you can boot from it and install it to disk. See create usb stick on Windows.


Trying to Dual Boot Windows 10 and Ubuntu (or just linux in general) having problems

You're likely seeing one or more of several issues, some of which have been mentioned in the comments to your question:

Boot mode -- Ensure that you're booting in the same mode (BIOS/CSM/legacy vs. EFI/UEFI) that Windows uses. If the computer came with Windows pre-installed, that's almost certainly EFI mode. See this page of mine for more on the CSM, the problems it causes, and how to control your boot mode.
Fast Startup and Hibernate -- These two Windows features can wreak havoc in a multi-boot configuration. It's important that they both be disabled, as described here and here. Once you disable these features, you may need to reboot to get the disk into a consistent state, before you reboot again into the Ubuntu installer.
"Recognizing" Windows -- It's not clear exactly what you mean by the "computer can't recognize that Windows 10 is even installed on my HDD." Chances are it's one of four things:

Lack of "install alongside" options -- Most people who use this language mean that the Ubuntu installer does not provide any "install alongside" options, and instead only gives options to wipe the disk clean or to do "something else," IIRC. This is common with EFI-mode installations with an existing Windows. I don't know if this is a quirk of the EFI-mode installation per se or if it's a consequence of not having disabled Fast Startup and Hibernate. Thus, the problem might go away when you disable these features. If it doesn't, you must use the "something else" option, as outlined here.
Partition table damage -- If you mean that the disk shows up as empty under the "something else" option, you may be looking at damage to the partition table. This used to be a common problem -- common enough that I wrote an entire Web page about it. Such problems are rare now, though.
Missing drivers -- If you mean that the disk doesn't show up at all in the Ubuntu installer, then that likely means that the disk controller (likely on your computer's motherboard) is new enough that it's not supported by the version of Ubuntu you're trying to install. Installing a newer version may work around this problem -- but in some cases, a really new device may not be supported for months, so you may be out of luck unless you're skilled enough to write your own driver and build your own kernel. If it's a desktop computer, adding a supported plug-in disk controller could be another way around the problem. Adjusting firmware options for how the disk controller is handled (from "IDE" mode to "AHCI" mode, for instance) can sometimes work around this problem -- but be aware that your Windows installation might react badly and require either re-installation or adjustment. (Ask about this on a Windows forum.) Note, however, that this possibility is very rare; most disk controllers -- even new ones -- are supported by Linux. You're most likely to run into this problem if you're using a relatively old Ubuntu (like 14.04) on a very new computer.
GRUB doesn't show a Windows option -- If you install Ubuntu, but GRUB doesn't show a Windows option, there are several possible causes. These range from your having accidentally wiped out Windows to a minor GRUB glitch. If this is your problem, please elaborate, and edit your question to post the output of sudo parted -l. There are enough variants of this issue that we need more information to properly diagnose it.


What different desktop environments are available?

To install openbox desktop, use

sudo apt-get install openbox

To install LXDE, use

sudo apt-get install lubuntu-desktop

To install E17(Enlightment desktop), use

sudo apt-get install e17

To install Cinnamon(A GNOME Shell fork), use

sudo add-apt-repository ppa:merlwiz79/cinnamon-ppa
sudo apt-get update
sudo apt-get install cinnamon cinnamon-session cinnamon-settings


13.04 - rsyslogd eating all the CPU it can

This is an example of https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/523610.  The bug is fixed with recent distro kernels, but that doesn't help those of us running VMs where the host picks the kernel.  I don't have a fix, sorry.


Everpad installation error, pkg_resources.DistributionNotFound: PySide

I'm having the same problem today.  Can't start Everpad.  Killed all Everpad related processes, no difference.
Did the "sudo apt-get install python-pyside", still no luck.
Get the following if I try to run "everpad --verbose" from command-line:

Traceback (most recent call last):
  File "/usr/bin/everpad", line 5, in
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2805, in
    working_set.require(requires)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 696, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PySide


Ubuntu 10.10 CD screen doesn't appear, Scrub does

I had similar problems in past - I tried to burn it on different CD/DVD and it worked for me. Might be a different case, but worth trying.


Device Agent doesn't see Timex Ironman Global Trainer

It is possible to get the Timex Ironman Global Trainer to work using a Windows virtual machine under Ubuntu Linux. You do need a copy of Windows (XP in my case), or something like TinyXP  (since it's just a step in the process I'll leave the ethical concerns to the user). I'll outline the process just to point anyone interested in the right direction.

-Install VirtualBox, as well as VirtualBox Guest Additions (needed for USB support), and add your user name to the vboxusers group.

-Download the latest Timex Device Agent from Timex and [STM32 Virtual Com Port Driver] from http://www.st.com/web/en/catalog/tools/PF257938

-Create a Windows machine with a Shared Folder access to where you downloaded the Timex and STM software.

-Under the Windows machine install the Timex and STM driver (choose 32 bit or 64 bit based on your copy of Windows). Close the Windows machine down.

-Plug in your Timex to a USB port. Under VirtualBox Manager ->Settings -> USB enable both check boxes for the USB controller. Press the second button on the right (plus sign icon). One of the choices should be "STMElectronics STM32 Virtual COM Port". Select this one. You are adding a USB filter to allow the watch to tunnel to the virtual copy of Windows.

-Start the Windows machine, then put the watch into PC Sync (pressing the Mode button on the watch). If you start the Device Agent in Windows (skip the Training Peaks login/account creation unless it applies to you) you should be able to download workouts, configure the watch, and update the firmware as usual. You can save the downloaded files into a Shared Folder to work with them under Ubuntu or upload them to Training Peaks.

Good Luck


Try ./filename.sh  If that doesn't work, post the code error so I can more clearly see what the problem is.  Hope this helps!


fdisk reports a wrong disk size on a faulty disk

In all probability, this is the source of your problem:

  the disk is a 3.5" HDD hosted in an external USB case (externally powered)

External USB enclosures often impose 32-bit limitations on disk sector values. 2^32 sectors, times a 512-byte sector size, means that these enclosures can handle, at most, 2 TiB disks. Frequently, the symptom of using a disk bigger than this is that the disk size is reported as the disk's true size modulo 2 TiB -- that is, your 2.73 TiB disk is reported as 0.73 TiB. This is akin to an older car's odometer "rolling over" -- a car with a 5-digit odometer and 127,000 miles would show a value of "27,000 miles," since there's no sixth digit for the "1." Of course, new cars all support six digits in their odometers, just as newer disk interface methods (like SATA) support more than 32-bit sector addresses -- but most (maybe all) USB enclosures support just 32-bit sector addresses.

There are three solutions to your problem:

Use the disk internally, or as an eSATA (external SATA) disk. This will enable you to use its existing partition table and any data that was stored on the disk when it was partitioned and used internally to begin with. In theory, a USB enclosure that supports 64-bit sector addresses would work, too, but I don't know of any such enclosure.
Get a new USB enclosure that translates blocks of eight 512-byte sectors into individual 4096-byte sectors. This raises the limit from 2 TiB to 16 TiB. The problem is that your current partition table will be rendered invalid, so you'll need to back up any data from an internal connection, then put the disk in the new enclosure, then re-partition the disk and restore the data. (It's sometimes possible to muck with the partition table to avoid the backup-and-restore procedure, but doing so requires expertise that I suspect you lack, so I don't recommend you try it. Depending on the exact partition layout, it also might not be possible at all.)
Use just a fraction of the disk's capacity. You'll need to back up your data and create a fresh partition table that gives you access to just some of the disk. Obviously, this is not a good long-term solution, but it might be adequate in the short term if you desperately need to use the disk now but don't need its full capacity right away.


youtube-dl is probably the best tool for downloading videos from YouTube (they are also supporting a bunch of other sites. To install it just follow the instructions on the download page. On Linux you can get it using curl or wget:

sudo curl -L https://yt-dl.org/downloads/2016.06.16/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

This will download youtube-dl to /usr/local/bin and make it executable (you also have to install python, but who on earth doesn't have it already installed? ;)

Edit: It's not mandatory to put it inside /usr/local/bin/, you can put youtube-dl to any folder on your system you like for example in your home dir:

curl -L https://yt-dl.org/downloads/2016.06.16/youtube-dl -o ~/youtube-dl
chmod a+rx ~/youtube-dl

and execute it from home dir.

Using it is really simple, just open the terminal, copy the youtube link of the video you want to download and execute:

youtube-dl https://www.youtube.com/watch?v=lQ0Tj2NgtaE

As far as I remember it will select the best available quality (audio and video) and download it. If you want to decide what quality you want to download you can run the following command to explore what qualities are available:

youtube-dl -F https://www.youtube.com/watch?v=lQ0Tj2NgtaE

the output might look like this:

format code  extension  resolution note
249          webm       audio only DASH audio   51k , opus @ 50k (48000Hz), 366.95KiB
250          webm       audio only DASH audio   68k , opus @ 70k (48000Hz), 475.53KiB
171          webm       audio only DASH audio  110k , vorbis@128k (44100Hz), 772.64KiB
...
140          m4a        audio only DASH audio  164k , m4a_dash container, aac  @128k (44100Hz), 931.70KiB
...
160          mp4        256x144    DASH video  113k , avc1.4d400c, 24fps, video only, 813.41KiB
43           webm       640x360    medium , vp8.0,  vorbis
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2 (best)

And then you can select what to download. For example if you want to download a low resolution video (format code 160) together with a high resolution audio (format code 140) you can execute:

youtube-dl -f 160+140 https://www.youtube.com/watch?v=lQ0Tj2NgtaE

It will download and mux them, also consider to take a look at this answer and of course the documentation of youtube-dl itself.


after update "the disk drive / is not ready yet or not present?"

What worked for me:

press m  to go to "Manual Recovery".
then type these commands:

mount -o remount, rw /
dpkg --configure -a


The system is running in low-graphics mode (12.04)

I had the same issue from updating.  It seemed like xorg broke from not having a config file.  Nor can it be auto-generated so I copied the xorg.conf.failsafe and made a new xorg.conf.  Let me know if that helps.

I notice you deleted that file. This is what mine looks like.  I am working on get this auto generation to work though.

Section "Device"
   Identifier  "Configured Video Device"
   Driver      "fbdev"
EndSection

Section "Monitor"
   Identifier  "Configured Monitor"
EndSection

Section "Screen"
   Identifier  "Default Screen"
   Monitor     "Configured Monitor"
   Device      "Configured Video Device"
EndSection


While browsing, why does my pc suddenly connect to sites using upper port numbers and unknown services?

No, this is normal. Port 80 and 443 are the ports on the server you are connecting to. For HTTP to work, and to receive the response back, a random high numbered port is opened by the browser for the server to connect to and send data back through.


Would active connections cause this UFW Block?

To answer your question, yes.

What that log message is telling me is that packets from source 31.13.93.7:443 (or https://facebook.com) are being blocked, likely in your FORWARD chain if the connection is originating from your LAN and not your Ubuntu gateway. If the connection is originating from your Ubuntu gateway, the block will likely be in your INPUT chain.

I concur with Doug Smythies. Please edit your post to contain the output of the command iptables -vnL in order for us to better understand your scenario.


nVidia graphic card disappeared after bug with nvidia-prime (Ubuntu 14.04)

Step 1 : Remove all NVIDIA related software you installed.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and password ... then execute :

sudo apt-get purge nvidia* bumblebee
sudo reboot

Step 2 : Reinstall the NVIDIA drivers and Optimus support.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and password ... then execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot


With some further searching, it appears that this field is commonly called the comment field, and can be edited in one of two ways

chfn
usermod -c COMMENT

This was simple to find in the man documents once I knew the correct nomenclature.


Cannot install any distro (I tried USB and DVD)

The hard drive WAS corrupted, don't really know the reason for which some tests gave successful results. Making a complete scan with "disks" (Gnome disk utility in Livecd mode) throwed more than 2 hundred bad sectors. For a strange reason I could accomplish the installation of two Fedora-based distros: Kororaa and Chapeau. Unluckily, they booted for a couple of weeks and then just stopped working. Now I have a brand new hard disk, and problems of that kind did not show up anymore. Hope this thread helps somebody out there!


NVIDIA X Server Settings not opening - Ububtu 18.04.1 LTS

First, try the following command in a terminal to check if the NVIDIA driver was installed correctly:

nvidia-smi

See if the NVIDIA GPU(s) is listed along with it's attributes, such as the Driver Version and the Processes utilizing the GPU(s).

Then, try running the following command in the terminal:

nvidia-settings

An NVIDIA X Server Settings interface should pop up, allowing you to make the modifications and changes desired.


How to install tomcat7 on Ubuntu 18.04.5 LTS using apt

tomcat7 has been upgraded to tomcat8 in Ubuntu 18.04. tomcat8 is provided by the universe repository which you already have enabled. To install tomcat8 in 18.04 open the terminal and type:
sudo apt install tomcat8


Terminal > Preferences > Encodings tab ...

Pinch these checkboxes :

IBM862 Hebrew
ISO-8859-8 Hebrew Visual
ISO-8859-8-I Hebrew

and/or

UTF-8 Unicode


You do not need to install Java manually and spend two days on it.
Run in terminal:

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

and everything will be installed for you.


If I've removed my CD/DVD drive and HDD what exactly are ata4 and ata5?

What exactly are ata4 and ata5?

ATA-4: Ultra DMA 33 or ATA33
ATA-5: Ultra DMA 66 or ATA66

Those are your connectors on your motherboard (or if you have it a PCI(-E) card). The system shows these as present but that does not imply there is a SATA cable connected to a SATA drive (the latter will have its own line in dmesg).

  The system crashes everytime it gets the error when the grub settings are for SATA3 for all ata devices and ever 3rd to 5th time on SATA II.

Could be a problem with the motherboard, the connectors or the hardisk connected to it.

But to make this not totally off-topic...

  There are no errors now however.

Place to look /var/log/boot.log and /var/log/kern.log. After a crash use the safe boot method or a live session to check the logs (sometimes logs tend to be overwritten :) ).
Serror{DevExch} could be an IRQ problem. I have seen it happen where nVidia with their driver conflicted with the AHCI. Removing the driver would prevent the crashes.

By the way: "Serror{DevExch}" should have something between the "Serror" and "{DevExch}". At least most searches on google have a notice in between. Like in this related topic: Mysterious Hard Disk Failure? (SError: { CommWake DevExch })


Ubuntu 16.10 Multiboot boots into Windows

I SOLVED my problem as follows :

Used BCDEasy to install a GRUB 2 multiboot manager.

Used BCDEasy to find the boot entry for Ubuntu.

Added the boot entry into the manager.

Now I have a working multiboot (Windows 7 and Ubuntu).
Thanks !


Love uses same package name for different major versions. I don't know what's the point from using update-alternatives if two version can not be installed directly through package manager. I think this should be reported as a bug.

As you have v0.9.1. Let's add v0.8.0 available in Ubuntu repository.

Download it

sudo apt-get download love

Extract it

dpkg-deb -x love_*.deb tmp/

Copy to bin/ folder and install it as alternative

bin_name=`ls tmp/usr/bin/`
sudo cp tmp/usr/bin/$bin_name /usr/bin/
sudo update-alternatives --install /usr/bin/love love /usr/bin/$bin_name 5

To switch:

either using love-0.8 or love-0.9 explicitly
or change using:

sudo update-alternatives --config love

May be easier if you create an alias. then love will point to the to chosen version

To check current setting:

update-alternatives --query love


Wrong MAC address error in virtual console

I had the same problem. According to this http://ubuntuforums.org/archive/index.php/t-2082752.html it is caused by a buggy broadcom driver. The suggested solution is to manually upgrade to the lastest driver which you can get here: http://www.broadcom.com/support/802.11/linux_sta.php.

This worked for me.


internet not running on ubuntu server 10.04

This is wrong. You don't need to manually specify ip address to the virtual system.

See your windows host receive connectivity using the settings configured as it is. Now windows host serves as server to linux guest. VBox takes care of it automatically.

So remove the ip Address assigned in ubuntu guest.

Make sure virtualbox Ethernet is enabled and NAT is chosen.


Keyboard map is incorrect when using an NX-client

I had the same problem under Gentoo.  I can't promise that this will work on a CentOS 5 server, but this worked for me on a Gentoo server.

Inside your nx session, open a terminal window and run:

setxkbmap -model evdev -layout us

Replacing "us" with your desired layout if it isn't the US layout.  Your keymap should be correct now.  If you start your nx session using an .xsession/.xinitrc style script, you can add the setxkbmap command to the startup script.


how to create the partition from unallocated space

Open your terminal and type this

sudo apt-get install gparted

then click at unity dash and type as gparted . it will gives you gparted application icon , click it to open . it will prompt for your root password nothing but  login password(if you are singe user ) .

it will display you all the partitions and empty space of your HDD . Now right click at the unallocated/empty space . among the options click at NEW . then it will open the window . give the required size and type of the partition .

look at the image for more information .


Snippets plug-in for gedit
gedit has more plug-ins than I can remember but one of them is called snippets and it is very popular.
Supported languages
I do most of my coding in bash but c is also supported along with dozens of other languages including HTML and CSS which are also on your shopping list.
Installation of gedit plug-ins and the snippets one in particular is straight forward.
Review the default auto-completion options from the top menu by selecting Tools -> Manage Snippets...:

You can add many more auto-complete options and even assign them shortcut keys.
Auto-completion using Tab key
When using bash I almost always forget the syntax for certain commands. One of them is the for loop with C-like syntax option. In this GIF animation why type the letters for followed by the Tab key for auto complete:

There are other gedit plug-ins active in the GIF animation above. The bottom of the screen is the external terminal interface where you can type shell commands. The right hand slide is the thumbnail slider. The grey area in between warns you when your typing is longer than 80 characters, or whatever size you choose.
Tool Output at the very bottom means external tools is enabled. This allows you to launch commands via hot keys and see the output. Handy if for example you want to pass your file to a LINT checker or compiler.


Eclipse not using dual core on ubuntu 9.10

Taken from eclipse's wiki page.

Multi-Core CPU
Due to power constraints, there is a trend towards multiple cores on a CPU instead of merely increasing the CPU frequency. Eclipse could enable developers to write multi-threaded programs to take advantage of the increasing miltiple cores. Moreover, Eclipse itself could be optimized where possible for running on multiple cores.

Eclipse it self itself has not multi-thread support, that means that no mater how many CPUs/CPU cores you have eclipse will run in one of your cores only.
More over, the ability for a compiler to use multiple CPUs/CPU cores will depend on which language you are using to develop your Android project.
Some compilers will be able to use multiple CPUs/CPU cores during compilation even if the IDE you are using does not take advantage of those.
The Linux Kernel has support for multiple CPUs/Cores in one system since Kernel version 2.0 allowing your programs to take advantage of that, but the program itself has to have support for multiple CPUs/Cores.
For more information on how Symetric multiprocessing works can be found here.
In short: Ubuntu has support for SMP because current Kernel version is < 2.0 (also on 9.10 as you know) but eclipse lacks the habitability to use multiple CPUs/Cores. Also even if eclipse had it it would (during project build) depend on the language and compiler you are using for your project.
This is all true no mater what compiler you are using including the ones in the Android SDK.


"Error: cannot open display: :0.0" while starting Firefox remotely

X11 forwarding needs to be enabled on both the client side and the server side.

On the client side, the -X (capital X) option to ssh enables X11 forwarding, and you can make this the default (for all connections or for a specific conection) with ForwardX11 yes in ~/.ssh/config.

On the server side, X11Forwarding yes must specified in /etc/ssh/sshd_config. Note that the default is no forwarding (some distributions turn it on in their default /etc/ssh/sshd_config), and that the user cannot override this setting.

The xauth program must be installed on the server side. If there are any X11 programs there, it's very likely that xauth will be there. In the unlikely case xauth was installed in a nonstandard location, it can be called through ~/.ssh/rc (on the server!).

Note that you do not need to set any environment variables on the server. DISPLAY and XAUTHORITY will automatically be set to their proper values. If you run ssh and DISPLAY is not set, it means ssh is not forwarding the X11 connection.

To confirm that ssh is forwarding X11, check for a line containing Requesting X11 forwarding in the ssh -v -X output. Note that the server won't reply either way.

Source


Where Ubuntu Gnome Looking Glass / extensions logs are stored?

Write
log('[EXTENSION_LOG]', <yourLoggedValue>);
in your code.

Open terminal and type
journalctl -f | grep '\[EXTENSION\_LOG\]'
for realtime monitoring. Then restart shell with alt+f2 - r - enter

When runtime reach line with your log(), you will see someting like this:

  13:49:50 notebook gnome-session[2646]: Gjs-Message: JS LOG:
  [EXTENSION_LOG], 123

It's a simplest logging method i've find.

Label [EXTENSION_LOG] need to separate your code logs from other gnome-session log messages, like start of extensions, or finding their locally, etc.


Rename /etc/passwd and /etc/shadow for security reasons

The Filesystem Hierarchy Standard for unix-like systems includes /etc/passwd at a fixed location, and tools are consequently usually hardcoded to look there for it. While in theory you could re-compile all the relevant utilities to look in a new location, any attacker could always just look for strings in those binaries to locate the new file, or use regular expressions to find files with passwd-like contents.

The shadow file should be readable only to root (and possibly to a group called shadow). If an attacker has managed to get root access to your system, they have complete control and whether or not they can read your passwd/shadow files is pretty irrelevant at that point.

There are conceivably a few situations where having files not in expected places might help, eg if you have a badly-configured web server which lets someone request http://myserver/../../etc/passwd, but in general this sort of indirection will require a lot of work for a minimal security benefit.


Colour Calibration Hardware Compatible with Ubuntu 12.04 LTS

I found a solution to my problem.The developers/developer who are/is making the dispcalGUI they mention which devices are supported by their software.You can see it to their website HERE

So I guess I will go for X-Rite i1 Display Pro.I would like to go for a Huey Pro,but I looked it up on the web and there were people telling that Pantone is not supporting any more that specific device and whoever has a newer/more modern screen (either laptop screen or a normal PC monitor or MAC monitor) might not be able to make it work properly with them and make the colors look nothing,but normal.


The command
zip -r data/*/*/point_clouds

will do. These wildcards expand to valid relative paths to your "point_clouds" folders. The command will create a "point_clouds.zip" file in the current folder containing only the contents of each of the "point_clouds" folders with the directory structure preserved.


Ubuntu updates: automatic vs. command line seem to be different in results

The default setting of unattended-upgrades is to use only the -security pocket of the Ubuntu repositories. Not -upgrades, not -backports, not Canonical Partners, not PPAs or other non-Ubuntu repositories.

You can change this setting in the config file /etc/apt/apt.conf.d/50unattended-upgrades


Trying to install postman in Ubuntu 16.04

I was also facing same issue.

Try this link "https://www.getpostman.com/docs/launch" and install its chrome extension and and add it extension on chrome.

Thus Postman will be installed.


You don't have to install drivers for the AWUS036H.  It should work out of the box for common uses.

If you're talking about monitor mode and injection, I've had mixed experiences with getting that to work.

It seems to work sometimes as long as crypto is disabled.
There also seem to be some bugs with proper card initialization and a total lack of ability to use hostapd on 3.x kernels with stock drivers.


Is it possible to remove and reinstall Ubuntu without affecting Windows?

Actually, Yes. When installing, go into the advanced partition manager, selecting 'Something else' when installing.

Then, when choosing root partition,
/
 Make sure you choose the previous Ubuntu installation partition.

Select it as 'ext4 journaling file system'
Make sure your partition labeled windows is marked as 'not used'


Installation with GRUB on USB and root on hard disk

I suggest you have GRUB install to the MBR of USB stick.

If all else fails, Try boot-repair.

Boot-Repair is a GUI application which can fix a variety of GRUB 2 problems. It can be used either from a LiveCD, its own CD, or during a normal Ubuntu session. In addition to providing a simple user interface, Boot-Repair also includes the ability to run a script to gather details of the system which can be used for troubleshooting help on various forums and IRC channels.

Please refer to the Boot-Repair community documentation for instructions on how to install and run this application available here


Unable to set 2560x1440 ubuntu, monitor is 4k capable, GPU is 7680x4320@60Hz capable

I had the same problem. You have to add the resolution manually. I solved it this way.
With these commands you will get the possible 'Modelines' settings, which are used to add a new resolution.
sudo get-edid > ~/lg_edid
parse-edid < ~/lg_edid

You will get sth like that:
Section "Monitor"
    Identifier "LF27T850"
    ModelName "LF27T850"
    VendorName "SAM"
    # Monitor Manufactured week 22 of 2020
    # EDID version 1.3
    # Digital Display
    DisplaySize 600 340
    Gamma 2.20
    Option "DPMS" "true"
    Horizsync 27-112
    VertRefresh 48-72
    # Maximum pixel clock is 300MHz
    #Not giving standard mode: 1680x1050, 60Hz
    #Not giving standard mode: 1280x800, 60Hz
    #Not giving standard mode: 1280x720, 60Hz
    #Not giving standard mode: 1280x1024, 60Hz
    #Not giving standard mode: 1440x900, 60Hz
    #Not giving standard mode: 1600x900, 60Hz
    #Not giving standard mode: 1152x864, 75Hz

    #Extension block found. Parsing...
    Modeline    "Mode 7" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    Modeline    "Mode 0" 291.75 2560 2608 2640 2720 1440 1443 1448 1490 +hsync -vsync
    Modeline    "Mode 1" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    Modeline    "Mode 2" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    Modeline    "Mode 3" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
    Modeline    "Mode 4" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
    Modeline    "Mode 5" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
    Modeline    "Mode 6" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
    Modeline    "Mode 8" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    Modeline    "Mode 9" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync
    Modeline    "Mode 10" 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
    Option "PreferredMode" "Mode 7"
EndSection

In my case I am interested in a Modeline named:'Mode 0' because it contains the 2560x1440 resolution I am interested in.
"Mode 0" 291.75 2560 2608 2640 2720 1440 1443 1448 1490 +hsync -vsync

"Mode 0" is a name that you can change to whatever name you want in subsequent steps. I change it to "2560x1440".
Now you have to add the settings using xrandr.
First, you check what output you are interested in. You use the xrandr command simply by typing it in the terminal.
In my case I get:
Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384
eDP-1 connected 1920x1080+0+360 (normal left inverted right x axis y axis) 294mm x 165mm
   1920x1080     59.93*+
   1680x1050     59.95    59.88
   1600x1024     60.17
   1400x1050     59.98
   1600x900      59.99    59.94    59.95    59.82
   1280x1024     60.02
   1440x900      59.89
   1400x900      59.96    59.88
   1280x960      60.00
   1440x810      60.00    59.97
   1368x768      59.88    59.85
   1360x768      59.80    59.96
   1280x800      59.99    59.97    59.81    59.91
   1152x864      60.00
   1280x720      60.00    59.99    59.86    59.74
   1024x768      60.04    60.00
   960x720       60.00
   928x696       60.05
   896x672       60.01
   1024x576      59.95    59.96    59.90    59.82
   960x600       59.93    60.00
   960x540       59.96    59.99    59.63    59.82
   800x600       60.00    60.32    56.25
   840x525       60.01    59.88
   864x486       59.92    59.57
   800x512       60.17
   700x525       59.98
   800x450       59.95    59.82
   640x512       60.02
   720x450       59.89
   700x450       59.96    59.88
   640x480       60.00    59.94
   720x405       59.51    58.99
   684x384       59.88    59.85
   680x384       59.80    59.96
   640x400       59.88    59.98
   576x432       60.06
   640x360       59.86    59.83    59.84    59.32
   512x384       60.00
   512x288       60.00    59.92
   480x270       59.63    59.82
   400x300       60.32    56.34
   432x243       59.92    59.57
   320x240       60.05
   360x202       59.51    59.13
   320x180       59.84    59.32
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected primary 2560x1440+1920+0 (normal left inverted right x axis y axis) 597mm x 336mm
   1920x1080     60.00    50.00    59.94
   1680x1050     59.88
   1600x900      60.00
   1280x1024     75.02    60.02
   1440x900      59.90
   1280x800      59.91
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    72.81    66.67    60.00    59.94
   720x400       70.08
   2560x1440     71.99*

I am interested in HDMI-2 output.
Now we need to add our Modeline:
xrandr --newmode "2560x1440" 291.75 2560 2608 2640 2720 1440 1443 1448 1490 +hsync -vsync
xrandr --addmode HDMI-2 2560x1440

And that's it. There should be an option in the display settings to select a resolution.
However, these settings are not permanent. To make them permanent you have to modify the ~/.profile file by adding two lines of code to it.
This will open the file you are interested in:
gedit ~/.profile

And these two lines you paste into a file and everything will work.
xrandr --newmode "2560x1440" 291.75 2560 2608 2640 2720 1440 1443 1448 1490 +hsync -vsync
xrandr --addmode HDMI-2 2560x1440


Font rendering is really a personal-preference (or, often, a ‘what I'm used to’) thing. Since you like Windows' font rendering, How can I make fonts look like they do in Windows? is the question you want to be looking at.


Labview or a similar software in Ubuntu Studio

MyOpenLab

The website myopenlab.de is in German but the latest version of the software is in English.

Source: Research Gate

It seems to have builds for linux and requires Java.


How to preseed a package's debconf values when installed as a dependency?

Well, I hope you figured this out in the 3 years since you asked it, but this has always worked for me.  I'm using an example here to autolaunch byobu...

sudo apt remove byobu     # for example purposes...

sudo apt install debconf-utils
debconf-set-selections <<< 'byobu byobu/launch-by-default boolean true'
sudo apt install byobu

Of course, this will work for whatever package.  You know this I'm sure, but run:

debconf-get-selections | less

to search for ones interesting to your package..


CrashPlan only loads from terminal, not desktop

CrashPlan desktop does not require sudo (or gksudo in the case of the graphical launcher). Sounds like your install did not run properly. I recommend you reinstall CrashPlan.


Any updates on disabling middle-click paste?

Here's the best solution I've found to keep middle click functional without it pasting things.

First install sxhkd and xsel.

Then configure ./.config/.sxhkd/sxhkdrc like so

~button2
    echo -n | xsel -n -i
~control + c
    echo -n | xsel -n -i
~control + shift + c
    echo -n | xsel -n -i
~control + x
    echo -n | xsel -n -i

And that's basically it.

Now start sxhkd (or configure it to launch on startup). Now, middle mouse will no longer paste anything but will otherwise function like normal.  (As long as you use only ctrl+c and ctrl+x to copy things that is, if you copy things with the mouse it can paste once before it returns to normal.)


How to install latest version of Nitroshare on Ubuntu?

There are five ways to install NitroShare on Ubuntu:

Use the Archives (16.04+)

You can install the nitroshare  package directly from the universe repository by executing the following commands:

sudo apt-get install nitroshare

Use the Stable PPA (recommended for older releases)

The stable PPA contains all of the packages necessary to run NitroShare and is considered stable enough for everyday use:

ppa:george-edison55/nitroshare  (Click here for instructions on using PPAs.)

To add this PPA to your computer and install NitroShare, open a terminal and run the following commands:

sudo add-apt-repository ppa:george-edison55/nitroshare
sudo apt-get update
sudo apt-get install nitroshare

Use the Development PPA (unstable)

The development PPA contains daily builds of the packages that comprise NitroShare. Some of the features may be broken or incomplete. For this reason, its use is discouraged for any purpose other than testing or debugging:

ppa:george-edison55/nitroshare-dev  (Click here for instructions on using PPAs.)

The commands for installing NitroShare from the development PPA are similar to the ones for the stable PPA.

Use the Binary Packages

Binary packages (DEBs) are provided for Ubuntu 14.04+. They can be downloaded from the official NitroShare website:

http://nitroshare.net

Once the DEB package is downloaded, you can launch it to open the Software Center to complete the installation.

Build NitroShare from Source (difficult)

If you are really ambitious, you can build NitroShare directly from source. First, you will need to ensure that all of the packages needed for building NitroShare are installed. To do that, run the following command:

sudo apt-get install qt5-default libqt5svg5-dev libgtk2.0-dev \
  libappindicator-dev libnotify-dev

Visit this page and grab the .tar.gz download for the latest release (0.3.0 at the time of writing). Then run the following commands to build everything:

tar xf nitroshare-0.3.0.tar.gz
cd nitroshare-0.3.0
qmake
make

To install the application, run the following command:

sudo make install

You will then be able to run NitroShare using the nitroshare command.


Stop ubuntu from automatically upgrading kernel

If you will stay with kernel branch 5.4
sudo apt install linux-generic

boot in the new installed kernel.
identify
dpkg -l | egrep linux-'[g|i|h|m]'

Kernel relevant packages and remove any which point to hwe-20.04 and kernel branch 5.8. like
linux-generic-hwe-20.04 linux-headers-5.8.0-40-generic linux-headers-generic-hwe-20.04 linux-hwe-5.8-headers-5.8.0-40 linux-image-5.8.0-40-generic
  linux-image-generic-hwe-20.04 linux-modules-5.8.0-40-generic linux-modules-extra-5.8.0-40-generic


Change UDP port with iptables for VPN clients

Try the following rule:

iptables -t nat -A PREROUTING -i ppp+ -p udp --dport 53 -j REDIRECT --to-port 1053

I have not tried it but it should work.

Good luck!


issue after a dpkg --set-selections < packages-backup.list

I would first try removing pp. That's what seems to be causing your issues. So, try:

sudo apt-get remove ppp

Then, try installing pip3 and whatever else you need normally.


You can use getchar to achieve that:

#include <stdio.h>

void logout() {
    printf("You are successfully logged out\n");
    int c = getchar();
    login();
}


Razer Blade ubuntu 18 screen refresh issues

The answer for this one is quite simple.
Google Chrome, on Linux, has no hardware acceleration. On top of that, Google has no plans to add it.
Why it exists as an option, and why it is enabled by default, are left as an exercise for the reader. The solution is to disable hardware acceleration and to restart your browser.
To disable it, open Chrome, click on the 3 vertical dots to open the menu, and then click on settings. On the left, click advanced and then on system. Disable hardware acceleration as in the image:

You'll need to close and restart the browser for the change to take effect. Once done, this and myriad other strange visual bugs will be a thing of the past.


You must install liblo-dev:

sudo apt-get install liblo-dev


juju-scaleway specify the ssh key to use?

I was able to find out the answer to this - it is as simple as ssh-add to add the given key to the chain.

ssh-add ~/.ssh/my-other-key.rsa

and then

juju scaleway bootstrap

it no longer asked for the 'root' user.


Rhythmbox add entire library to a playlist

The view you have means that you have not yet imported any tracks.

To resolve this:

First highlight all the tracks
Click "Import x selected tracks" to import those tracks.
You should then be able to right-click and display a menu.
From the right-click menu you can highlight all tracks and add to a playlist.


I will answer it by parts:

Explanations

  If those power savings are are integrated in the kernel used by Ubuntu
  12.04, why can powertop see a difference?

PowerTop can do some work to save your power, kernel now has a built-in function to manage your battery life, that is enabled through laptop-mode-tools, although it comes configured for generic hardware. PowerTop passes to laptop-mode-tools some instructions for better power management based in your specific system, so this way you don´t need to manually configure laptop-mode-tools' file. Summarizing, it automatizes the configuration of power settings, although I can´t say you what it represents in numbers, each battery, each system are different, if you want, perform some tests.

  Will removing laptop-mode-tools change anything to my battery life?

Laptop-mode-tools is a package that is responsible to extend your battery life, and most important, this package is what activates Laptop Mode feature of the Linux kernel. This package allows you to tweak a lot of power-related settings through direct file editing, you can use PowerTop to do the dirty job for you, but if you know a lot of it... no automatized thing can substitute a hard human work. Summarizing, removing laptop-mode-tools may cause some noticeable difference in your battery life as your system without it won´t care about using battery power in an efficient way.

  I also installed Jupiter to improve my battery life, is this irrelevant
  as well?

Jupiter enable your system to take advantage of Super Hybrid Engine (SHE) technology that uses a collaborative work between hardware, software and BIOS to save your battery. If your hardware makes use of SHE you need Jupiter to take advantage of it as it can bring an up to 50% longer battery life. Although if your hardware does not support SHE, Jupiter acts as a normal power saving tool that regulates system power usage according to your necessities. Summarizing it does make difference, mainly if you can make use of SHE, although as time passes tools such PowerTop will make energy management so efficient that software like Jupiter won´t be necessary, but for now you may see some improvements.

Take a look at these pages to get more informed:

http://samwel.tk/laptop_mode/faq
http://www.webupd8.org/2010/06/jupiter-take-advantage-of-asus-super.html
https://wiki.archlinux.org/index.php/Powertop .

Answer

  Why does powertop still detect tunable settings on >12.04?

Because there are tunable settings, as far as I know you still need laptop-mode-tools to make use of power saving features built-in in Linux Kernel, or a program such Jupiter instead. The Q&A you mentioned show that improvements of energy use was made in the kernel, and it didn't mentioned that laptop-mode-tools is irrelevant, and notice that these improvements apply for all cases, when you are in a Desktop or Laptop, if you want the kernel to manage energy for battery usage you still need laptop-mode-tools or something else to say to the kernel to do so.

  Why the improvements powertop, Jupiter and co. claim to offer haven't been implemented into the kernel?

See that PowerTop does't add features to power management, the features that it makes use are all implemented into the Linux kernel, although Linux kernel doesn't know when to use them, here laptop-mode-tools enters, requiring use of these functions from the kernel, although laptop-mode-tools, for stability, security and compatibly issues is designed for generic purposes.

Because of that exists PowerTop package that reconfigures laptop-mode-tools according to the specific machine in use. laptop-mode-tools just can't configure it self to optimize its usage because it makes the tool more fragile, susceptible to failures and unstable.

That's why PowerTop can't "merge" with laptop-mode-tools and see that kernel already has the features, laptop-mode-tools just say: - Use it, we are in a laptop!

Jupiter makes use of SHE, a technology restricted only for ASUS Notebooks. Linux kernel can't implement this feature because it's a software based feature. And Jupiter also offer user modes of use, so the user decides what the needs are, something that can't be offered by the kernel and Jupiter just say to the kernel what do do, again, Kernel has the features to use, and Jupiter is saying to the kernel: - Use them this way!

SHE is a tool that enhances the notebook's energy efficiency, intelligently boost system performance under heavy load, thus enabling the notebook to meet the demands of processor and resource-intensive tasks and also offers a choice of performance and power consumption modes that allow users to make quick and easy adjustments to suit their usage scenarios.

So it's just a software that makes use of some specific hardware design, identify processes running to manage power and offer user customization. A kernel function can't offer that, kernel is not there to evaluate things and make decisions when to use something or not, and software here is a must as it needs to know from the OS how much power it needs, kernel can't evaluate these necessities.

Summarizing: Linux Kernel has the features, laptop-mode-tools just say to the kernel that is time to use them, because Kernel alone can't decide that, it doesn't even know if it's running on a Desktop or Laptop. PowerTop customizes laptop-mode-tools to make better use of its capabilities. Jupiter acts as a mix of PowerTop and laptop-mode-tools and also give the user a simple way to customize power consumption options. Why can't Canonical just replace laptop-mode-tools for a more complete tool such as Jupiter? If they want they can, although, as I said it makes things to be more unstable as it acts different under different machines, so they gain in performance and features, although they lost in stability, I would vote for Jupiter (or a Canonical' similar, they love to make things their own haha) to substitute laptop-mode-tools.

I think I wasn't as clear as I wish, here is a metaphor to simplify:

Kernel is Control Table of a Train Station, in this table exists buttons (features) where it is possible to manage the usage of the trains, although it needs someone to push that buttons when needed, this guy is the Operator (laptop-mode-tools), although this guy just follow patterns according to the time of the day to use or not some trains, but if he has a radio, people in the stations (PowerTop) can communicate him accurately the necessity of more or less trains. In a more automatized system the Operator (Jupiter) instead of a radio has cameras into the stations so he just observe the traffic in the stations and evaluate himself the need or not of more trains. But see that the Control Table (Kernel) has all the buttons (features) to control the trains (manage the power consumption).

My recommendation? Keep the three: laptop-mode-tools, PowerTop and Jupiter. They won't harm your system and things tend to be improved.


You need to log out and back in again for the change to take effect.


Enable Canonical Partner and install the adobe-flashplugin package which installs plugins for both Firefox and Chromium.


This is how I configure XRDP for XDE-Plasma (works on my Ubuntu 20.04)
sudo apt install -y xrdp
sudo sed -e 's/^new_cursors=true/new_cursors=false/g' -i /etc/xrdp/xrdp.ini
sudo systemctl enable xrdp
sudo systemctl restart xrdp

Set session to plasma:
echo "/usr/bin/startplasma-x11" > ~/.xsession

variables for xsessionrc:
export D=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
export C=/etc/xdg/xdg-plasma:/etc/xdg
export C=${C}:/usr/share/kubuntu-default-settings/kf5-settings

cat <<EOF > ~/.xsessionrc
export XDG_SESSION_DESKTOP=KDE
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=${C}
EOF

If you have plasma installed, you can also login, and execute this on a console:
echo $XDG_SESSION_DESKTOP
echo $XDG_DATA_DIRS
echo $XDG_CONFIG_DIRS

to see if your values are the same.
Now to avoid the "authentication-required"-dialog:
cat <<EOF | \
  sudo tee /etc/polkit-1/localauthority/50-local.d/xrdp-NetworkManager.pkla
[Netowrkmanager]
Identity=unix-group:sudo
Action=org.freedesktop.NetworkManager.network-control
ResultAny=yes
ResultInactive=yes
ResultActive=yes
EOF

cat <<EOF | \
  sudo tee /etc/polkit-1/localauthority/50-local.d/xrdp-packagekit.pkla
[Netowrkmanager]
Identity=unix-group:sudo
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=auth_admin
ResultActive=yes
EOF
sudo systemctl restart polkit

Partial credits:

https://www.hiroom2.com/2018/05/07/ubuntu-1804-xrdp-kde-en/
https://www.hiroom2.com/2019/06/15/ubuntu-1904-xrdp-kde-en/
https://forum.kde.org/viewtopic.php?f=63&t=152803
https://bbs.archlinux.org/viewtopic.php?id=249974
Goooooogle

In case of error:
~/.xsession-errors
/var/log/xrdp-sesman.log
/root/.xsession-errors

or just change the default-session-manager:
sudo update-alternatives --config x-session-manager

To allow root-access, go to /etc/pam.d/sddm and comment out this line:
auth    required        pam_succeed_if.so user != root quiet_success


Easiest way to back up my entire (encrypted) system, and restore later?

It might be easiest to create a compressed image with Clonezilla, an image of the whole drive (not of partitions). A Clonezilla image is a directory with a number of files, and you can restore from the image to a cloned system in a drive of at least the same size as the original drive.

See also this link: Fastest way to copy HDD, which describes cloning.

The simplest kind of backup is to backup only your personal files (documents, pictures, music, video clips ...). To do it the 'simple way' and include tweaks and installed programs is no longer simple ;-)

A good alternative, that might be efficient in terms of 'time and sweat' for you, is to backup only your personal files, do a fresh installation, and install the program packages, that you need, when you need them. This way you will also get rid of packages, that you no longer use.


"Bug: unable to handle kernel paging request at" while installing Ubuntu

Found the answer! It was just an issue of configuring the boot options with nomodeset.

http://ubuntuforums.org/showthread.php?t=1613132


Will installing Ubuntu erase all the data from the existing Windows, despite using VirtualBox?

If you are getting the warning message inside Ubuntu, it's ok!
It will only affect the "virtual hard disk space".  if you have provided any.
Just proceed, you'll be ok, take a look at the screen shot for how to make a virtual hard disk:


Try this:

sudo apt-get install libc6:i386


Dell Inspiron 15 5559 hangs at shutdown, wierd start ups

I have a Dell 5559 running Ubuntu 14.04 that hung on shutdown.  The problem was between Intel Skylake Graphics and the Linux Kernel [3.13] that came with Ubuntu 14.04.  Upgrading to Kernel 4.3 fixed the problem.

Instructions for upgrading to Kernel 4.3: http://ubuntuhandbook.org/index.php/2015/11/linux-kernel-4-3-released/. Download and install the three deb files from the provided link.

I could see the problem by running dmesg in terminal.  At the end of the readout was several pages of...

[   20.904526] radeon 0000:01:00.0: ring 3 stalled for more than 13500msec
[   20.904531] radeon 0000:01:00.0: GPU lockup (current fence id 0x0000000000000017 last fence id 0x000000000000003c on ring 3)

Running lspci -nn | grep VGA showed me that the grapics card is Intel Skylake Integrated Graphics.


GRUB is needed if you want to boot other Operating Systems, but it's also very usefull if you want to use more kernels, or a fallback Kernel (safe version of Ubuntu, that you can use, when your main kernel has problems).

But if even so you want to go straight to Ubuntu you can remove Grub:

Type on a console

apt-get purge grub-common

Removing GRUB will not let you boot into Windows Vista anymore!

I don't advise you to remove Grub.


Ubuntu Desktop 17.10 will not accept static IP with a wifi dongle

I think the answer is in the file you just amended:

  renderer: NetworkManager

That implies that Network Manager will do all the configuration and not netplan. No doubt, NM is still set to DHCP which is why you are still getting an IP address by DHCP.

I suggest that you revert the yaml file to its default:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

Then, set the static IP address in Network Manager like this:

Restart NM:

sudo service network-manager restart

Check:

ip addr show


The best way to recover your firefox is a cleanup of your profile. Close firefox, open a terminal and type:

mv ~/.mozilla ~/.mozilla-backup

to clean up your firefox session. Launch firefox again and check if the issue persists.

If it worked, you can recover your old history and bookmarks by copying the database in ~/.mozilla-backup/firefox/xxxxxxxxxxx.default/places.sqlite to your new ~/.mozilla/firefox/profile (xxxxxxxxxxxx are numbers are letters generated by firefox to your current user/session), browse it with nautilus to see yours.

Remember that the more extensions you add, the more functionallities, but also the more resources and potential missfunctions.


What happens to my Swap space if I choose to replace Windows with Ubuntu?

If you choose to 'replace windows` that means the following:

Swap will be created automatically with space equal double your RAM size which means you'll have a 2 GB swap space.
It will replace the whole disk not only the C partition so you have to take backup of your data before if you want to keep it.


cannot access wifi with wavemon but can with iwconfig

Does iw dev wlan0 scan produce any result?  If not then it seems your driver does not support the new wireless networking API.  Try an older version of wavemon v0.7.6

https://github.com/uoaerg/wavemon/issues/13


I'm writing this from a Dell Inspiron 15, 5000 series which also came preinstalled with Ubuntu. I have wiped out the previous installation some 2 months ago and reinstalled with Ubuntu 20.04. I have seen exactly zero issues while doing this. Everything worked flawlessly, directly from the initial installation. Including Video, including Sound, including WLAN, including LAN, including Bluetooth. It all immediatelly worked just fine.
And yes, while not 100% certain, I would totally expect when a USB installed live system runs fine, that it would also run fine on a 'proper' install.


Downloading latest ubuntu (13.04) + downloading windows programs

You cannot execute Windows programs on forms of Linux without a platform such as WINE as they are not supported. If you have an EXE called Wubi.exe, you have an installer that installs Ubuntu from within Windows, this is not necesarily advised but it is very simple for people just starting out.

For Boot Installation

Burn the image onto the disk, making sure that the image is
extracted and not simply placed on there as a single .ISO file.
Reboot and make sure that your disc or USB is selected as the boot media and you will be faced with the linux/ubuntu boot screen, presented with options such as "try without installing" etc.
Select install and follow the instructions, if you still have Windows installed, select install alongside windows or edit the partitions manually.

There is a tutorial documented here.

For Wubi Installation

Simply run the Wubi.exe file and follow the simple instructions provided by the application.

There is a tutorial documented here.


Menu bar shows the word "Time" where current time should be

Launchpad bug #863341 has the solution to my issue:

$ sudo dpkg-reconfigure --frontend noninteractive tzdata

After I ran the above command, "Time" disappeared and the current time is now displayed in my menu bar.  The bug also notes that this question has previously been discussed on askubuntu.


I found the answer here and here.

What puzzles me is that I tried this twice before and it didn't work. It probably worked this time because I used a script I found on launchpad answers that backed up and restored what it could... I don't know. Either way, here is the fix:

pkexec gedit /var/lib/dpkg/status
Search for the offending package by name and remove its entry.
Save the file and exit gedit.
run sudo dpkg --configure -a
run sudo apt-get -f install just in case.
Continue on if there are no errors.


Read vlan priority and write that priority in text file

Used socket programming for getting packet and reading clan tag.
Input and output function in c can be used here.


Not sure how this would translate in groovy but an example Python code can be found in

http://bazaar.launchpad.net/~maas-maintainers/maas/trunk/files/head:/src/apiclient/.

In particular:

http://bazaar.launchpad.net/~maas-maintainers/maas/trunk/view/head:/src/apiclient/maas_client.py.


Bluetooth keyboard prints wrong symbols, and doesn't recognize -, p, [, 0 (thinkpad compact bluetooth keyboard)

Based on comments with Ayrat we deduced that the particular keyboard is defective.


Ubuntu xenial server on virtualbox recovery mode times out and freezes

Sometimes I work too long and get stupid. My apologies for the delay.

input overrun at /dev/tty1 indicates keyboard input exceeding the buffer. This can have a number of root causes.

1) A habit of eating over the keyboard in result in crumbs getting lodged between/under keys resulting in a "permanently closed" switch flooding the keyboard buffer with input. (This you can sometimes solve by turning the keyboard upside down and banging on the underside until the crumbs fall out.

2) A faulty keyboard can have this same result. This can be resolved by replacing the keyboard (also fixes problem 1 with less mess)

3) If it's a USB keyboard, This can also be caused by a bad port. You can resolve that by choosing a different port

Of course this assumes that you know of all the input devices connected to your system. If not you can get some clues by examining the output of
ls /dev/input/by-path

For those who are interested there's a great article regarding TTY here. I found the section on Signal Madness quite amusing

Sources:

http://zeldor.biz/2011/02/tty1-input-overrun/

Experience


You can take two diferents ways.. use internet to transfer the files or use Samba.

Samba its an emulator of window's network.

The first step is to install the samba package. From a terminal prompt enter:

sudo apt-get install samba

The main Samba configuration file is located in /etc/samba/smb.conf. The default configuration file has a significant amount of comments in order to document various configuration directives.

First, edit the following key/value pairs in the [global] section of /etc/samba/smb.conf:

 workgroup = EXAMPLE
   ...
   security = user

The security parameter is farther down in the [global] section, and is commented by default. Also, change EXAMPLE to better match your environment.

Create a new section at the bottom of the file, or uncomment one of the examples, for the directory to be shared:

[share]
    comment = Ubuntu File Server Share
    path = /srv/samba/share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

comment: a short description of the share. Adjust to fit your needs.

path: the path to the directory to share.

This example uses /srv/samba/sharename because, according to the Filesystem Hierarchy Standard (FHS), /srv is where site-specific data should be served. Technically Samba shares can be placed anywhere on the filesystem as long as the permissions are correct, but adhering to standards is recommended.

browsable: enables Windows clients to browse the shared directory using Windows Explorer.

guest ok: allows clients to connect to the share without supplying a password.

read only: determines if the share is read only or if write privileges are granted. Write privileges are allowed only when the value is no, as is seen in this example. If the value is yes, then access to the share is read only.

create mask: determines the permissions new files will have when created.

Now that Samba is configured, the directory needs to be created and the permissions changed. From a terminal enter:

sudo mkdir -p /srv/samba/share

sudo chown nobody:nogroup /srv/samba/share/

The -p switch tells mkdir to create the entire directory tree if it doesn't exist.

Finally, restart the samba services to enable the new configuration:

sudo restart smbd
sudo restart nmbd

Original Source


Which candidate should be installed for libeigen2 and libconfig++ from repository?

Source code is, if available, by convention packaged as <package name>-dev, short for development.


As I can see, you have a powerfull laptop.

It's recommended to install Ubuntu 14.04 lts 64bit.

Download it by going to Ubuntu's Official Site


Yes. You can have a persistent partition on your usb stick that will keep all your changes and programs you install.
Here is the more info on Persistence


What does tar's -p (preserve permissions) flag actually preserve?

Ownership and permissions are two different things. The -p flag preserves permissions. On *nix systems, regular users can't change file ownership to a user who is not themselves.

As explained here :

  Only processes with an effective user ID equal to the user ID of the file or with appropriate privileges may change the ownership of a file. If _POSIX_CHOWN_RESTRICTED is in effect for path:

  Changing the user ID is restricted to processes with appropriate privileges.
  Changing the group ID is permitted to a process with an effective user ID equal to the user ID of the file, but without appropriate privileges, if and only if owner is equal to the file's user ID or ( uid_t)-1 and group is equal either to the calling process' effective group ID or to one of its supplementary group IDs.

The rationale behind this has been nicely explained by @Gilles in this Unix & Linux answer:

  The reason for this restriction is that giving away a file to another
  user can allow bad things to happen in uncommon, but still important
  situations. For example:

  If a system has disk quotas enabled, Alice could create a world-writable file under a directory accessible only by her (so no
  one else could access that world-writable directory), and then run
  chown to make that file owned by another user Bill. The file would
  then count under Bill's disk quota even though only Alice can use the
  file.
  If Alice gives away a file to Bill, there is no trace that Bill didn't create that file. This can be a problem if the file contains
  illegal or otherwise compromising data.
  Some programs require that their input file belongs to a particular user in order to authenticate a request (for example, the
  file contains some instructions that the program will perform on
  behalf of that user). This is usually not a secure design, because
  even if Bill created a file containing syntactically correct
  instructions, he might not have intended to execute them at this
  particular time. Nonetheless, allowing Alice to create a file with
  arbitrary content and have it taken as input from Bill can only make
  things worse.

So, even if you use tar's --same-owner flag, you will still need to extract the files as root to preserve ownership. That flag is on by default for root, so what you want is:

sudo tar xpf foo.tgz


Sound comes out of my speakers even when headphones are plugged in

This is probably an alsa issue. I had the same problem, but it got reported as a bug and fixed.

link to bug report


When you mention "dynamic limits" using cgroups, you need to be a little more specific on what you are looking for. Its best to provide an example of what your app and cgroup does along with the cgconfig.conf. This would give us better picture.

Although cgroups, allows limiting a process to certain amount of memory using memory.limit_in_bytes in cgconfig.conf, it only sets the upper bound and does not complain if your process uses a lower limit. Therefore, I am not sure if you require cgroups in this case.

Therefore, if your program is allocating memory dynamically you may also need to check how much of memory is being over commited. Check the kernel tunables using sysctl -a | grep overcommit and change to always overcommit regardless of whether memory is available or not.


Go to /var/spool/cups and delete all files, but leave the tmp directory.


LibreOffice: How to add a new button to toolbar?

The Buttons Left-To-Right and Right-To-Left are enabled by default in the Formatting-toolbar. So you wouldn't need to add them to the Standard-toolbar. But these buttons are only visible if you have Complex text layout (CTL) enabled in Tools > Options > Language Settings > Languages. After enabling this setting you will have to restart LibreOffice.


man command showing: nothing appropriate

I assume that man which also does not return any results?
On my Ubuntu 18.04 installation, the output of man -k which | wc -l shows that there are 33 occurrences.
Maybe you forgot to install relevant packages/man pages (for example, /usr/share/man/man1/which.1.gz is part of package debianutils)?
If the above file is found, check the value of environment variable MANPATH (and maybe unset it).


The Gtk docs say that c_buffer.register_serialize_tagset() needs a utf8 string as an argument.

It looks like you need:
c_buffer.register_serialize_tagset(c_buffer.get_text().encode('utf-8'))
or similar

This works:

from gi.repository import Gtk

win = Gtk.Window()
box = Gtk.Box()
win.add(box)

text = Gtk.TextView()
box.add(text)

buffer = text.get_buffer()

buffer.set_text("Sample text")

this = buffer.get_text(buffer.get_start_iter(), buffer.get_end_iter(), False)

format = buffer.register_serialize_tagset(this)

data = buffer.serialize(buffer, format, buffer.get_start_iter(), buffer.get_end_iter())

print data

Gtk.main()


Ubuntu 18.04 wifi 'Authentication required by wireless network' following software update

Disabling the iwlwifi driver backport in the Additional Drivers tab of the Software Updater settings fixes the problem.
The iwlwifi driver was installed because previous Ubuntu drivers did not work with the XPS13 wifi card. Presumably the software update fixed this but caused a conflict with the iwlwifi driver.


python-gnomeapplet is not supported anymore with Gnome 3.
Here is the alternative: https://launchpad.net/timer-applet

Timer applet
You can quickly set a timer and the applet will notify
you when time is up. Add multiple Timer Applets to the panel to have
different timers running simultaneously. Create presets for quick
access to frequently-used times. Each applet remembers your last-used
timer, even after you log out. The user interface follows the GNOME
Human Interface Guidelines

You can download the package for 12.04 from here


Transferring from USB to NTFS hard drive is really slow

Actually, asyncronous copy shouldn't change the speed. It would look like that because the copy happens in background, but you won't be able to unmount the drive any sooner than before. At least with syncronous tranfer when it says "Done", it really is done... but the downside is that the pop-up "Copying" box will hang around for ages.


I also installed 20.04 and it became unbearably slow after I configured the system to use the proprietary Nvidia drivers (NVIDIA driver metapackage from nvidia-driver-390). If you did that, perhaps you can try reverting to the default drivers by searching for [Software & Updates] and then go to the [Additional Drivers] to using X.Org X Server. I also turned off animation using the Gnome Tweak Tool. Quite snappy now!


How do I change the timezone on PHP5 for Apache?

find your php.ini and change the value of date.timezone = Europe/Berlin

Edit(Thanks to @awashburn for his comment): the php-cli's php.ini file is different then apache2's php.ini file. I suggest symbolic linking one to another to keep them in sync and avoid confusion!


Search files in subfolder and export results to file

Here you are:

find <folder> -type d -exec bash -c "ls {} | grep -i \".*ch\.pdf$\|.*\.jpg$\" > /dev/null || echo {}" \; > <target file>

Brief explanation:

list all folders inside <folder> recursively
for each folder found - list all files and check whether there are any that end with "ch.pdf" or ".jpg". We are not interested in these files, so redirect the output to /dev/null.
If there were no such files found, print relative folder path with echo.
redirect the results of find to <target file>


Typically, ping requests are sent across the network at a set interval, usually 1 second. This is configurable with the -i flag. Generally, this means a full ping request and response occurs, then the tool does nothing for the rest of that second. In extremely bad network conditions, a new ping request could go out before the last one is returned.

Adaptive ping (-A) tries to adjust the interval to the RTT of the network link. This way, on average, a new ping request goes out as soon as the last reply is received.

Both of these are in contrast to flood mode, which sends out as many requests as possible with no delay or attention to the RTT.


fish alias with a variable in the middle?

No, you can't do this with a fish alias. But fish functions are much better:

function upd
    sudo apt update
end
funcsave upd

function ppa
    sudo add-apt-repository $argv
    upd
end
funcsave ppa

Copy and paste this into your terminal
and you should be good to go.

Keep in mind that

alias foo=bar

is simply a shortcut for

function foo; bar $argv; end


Psensors not displaying AMD radeon card's temperature. Solutions?

Your laptop probably has 2 GPUs (one integrated and one discrete).

When you run sensors the discrete GPU is off therefore there is no temperature reading available.

You have to first activate your discrete (Radeon) card and then run sensors again.

One simple way I have found is this:

You install mesa-utils (apt install mesa-utils)
Then run glxgears with your discrete graphics card turned on like this: DRI_PRIME=1 glxgears
While glxgears is running open a new terminal window and run sensors again. You should see a temperature reading from your Radeon card now.

The above method worked for my Radeon card.

I think the issue is due to Linux kernel having DPM (Dynamic Power Management) turned on for Radeon cards. This makes sense, as you wouldn't want your discrete GPU to be turned on all the time and consuming power.


binary-i386/packages file not found, how can I stop APT looking for them?

OP's solution edited out of the question:

Nothing found anywhere, so after reading all the man pages and how-to's I looked for something referencing main or dist, instead of i386. In /etc/apt/sources.list.d/apt-build.list I found:
deb file:/var/cache/apt-build/respository apt-build main

and could not find any reason that should be there. As that was the only entry, I deleted that file. Problem is now solved.