Ubuntu 13.10 installer (alongside windows 8) and gpt partition

There's no such thing as a "GPT partition" in quite the sense that you seem to be suggesting. The GUID Partition Table (GPT) is a partition table -- that is, it's a data structure that defines partitions. The entire disk must be either GPT or something else, such as the older Master Boot Record (MBR) partition table. Thus, deleting the GPT data would delete all the partitions on the disk, which you probably don't want to do.

That said, some disks are actually MBR disks but they have leftover GPT data from an earlier partitioning of the disk. This situation can cause parted, GParted, the Ubuntu installer, and some other tools to mistakenly believe that the disk is empty. The FixParts program that you mentioned can detect and correct this problem. I don't believe this is your problem, though; computers that ship with Windows 8 almost always use GPT, so unless you re-installed Windows using MBR, your disk should legitimately be GPT. You can test this by running FixParts on the disk; if it terminates with a message to the effect that the disk is a GPT disk, then that's what it is.

I haven't researched the issue in detail, but the Ubuntu installer seems to have a bug that causes it to not provide the "install alongside" option for many computers that ship with Windows 8 pre-installed. I suspect that this is the issue you're seeing. Unfortunately, the only solution I know of is to use the "something else" option. Note that you'll almost certainly need to correctly identify your EFI System Partition (ESP) to the installer. It's a FAT32 partition, typically 100-1000MB in size, and you tell the installer to use it as an "EFI boot partition." (Why the developers chose too change "system" to "boot" is beyond me. Such changes just create confusion; but I digress....)


I've been experiencing similar behavior rarely. I'm not aware of the cause yet, but this will at least provide a work-around.
Do ALT + F2 to open an interface where you can run commands.

Pop up command window (for quickly running commands).
- https://help.gnome.org/users/gnome-help/stable/shell-keyboard-shortcuts.html.en

Execute r, which will restart GNOME Shell.

Typing 'r' or 'restart' in the Alt+F2 prompt will restart GNOME Shell.
- https://wiki.gnome.org/Projects/GnomeShell/CheatSheet

After a few seconds, everything should return to normal.


Terminal do not list JQ6500 chip (ubuntu 16.04.2 LTS) - But Okay with Ubuntu Mate (!?)

I am the author of that Linux tool you found. :)

I also had issues with the module not being properly recognized by some machines, but working well on others (all running openSUSE). To me it looked like a hardware problem between the JQ6500 and some USB host controllers. Maybe the JQ6500's USB timing is at the edge of the specification and some host controller models (or even board designs) tolerate this better than others.

In my case it helped to put a USB hub between the problematic hosts and the JQ6500, but there it might as well depend on the hub (chip) model, whether  this helps or not.

You could also try out if there is a difference between different USB ports on the same machine.


Unable to Install VirtualBox Due to Missing Kernel Module

Doing everything as root by using su and the yum package manager is something that fits for Redhat-based distros, but not Ubuntu. In Ubuntu, you run command as root by prefixing commands with sudo. The package manager used by Ubuntu is apt.

To install VirtualBox, run:

sudo apt-get install virtualbox-ose

This will take care of dependencies like the kernel headers which is included in the package linux-headers-generic. If you've a PAE kernel, you need to install the headers first (in your case linux-headers-2.6.38-8-generic-pae), which can be done with:

sudo apt-get install linux-headers-$(uname -r)

uname -r gives the loaded kernel version and saved you from manually entering the kernel version.


Is there a way to constantly show my external IP address in the top unity bar?

Taken from this GitHub project here is a decent indicator that might help:

  Installation

  PPA and install

  sudo apt-add-repository ppa:bovender/bovender
  sudo apt-get update
  sudo apt-get install indicator-ip

This will install the program and configure automatic start at login. To run it right away, press
    ALT+F2 to open the Unity command prompt and enter indicator-ip.


How do I fix a slow boot on a RAID setup?

This turned out to be me being impatient. The software RAID controller needs to sync the drives after you install. I wasn't giving it enough time to do that. For large drives (e.g. 1GB or larger) this can take a few hours. Rebooting can actually stop this process and make it restart once the boot is finished.

To see the progress of the drive sync you can run

cat /proc/mdstat


Use rsync to backup .ecryptfs, but also use exclude some folders inside

Did you look at the eCryptfs tools? Specifically

  ecryptfs-find - use inode numbers to match encrypted/decrypted filenames

  SYNOPSIS
  ecryptfs-find   cleartext-filename  ECRYPTFS_FNEK_ENCRYPTED.fwBGx18a.UcYl18CF7VKLMSDuEadV

  DESCRIPTION
         This program will attempt to match encrypted filenames to their decrypted counterpart,  and
         attempt to match decrypted filenames to their encrypted counterpart.

  Notes:
       - the eCryptfs filesystem must be mounted in order to work
       - it uses ls(1) in order to determine the inode
       - it uses find(1) in order to locate the inode

And, you could always move some of the (larger) folders (that contain no sensitive data) out of your encrypted home, music might be a good candidate to be unencrypted.


Where did the downloaded/installed plugin go?

Maybe I misunderstood you, because the instructions seem quite straightforward.

In Claws Mail just click on Configuration -> Plugins... -> Load... and it should direct you right to the plugin directory where you find the vcalender.so

( this should be something like /usr/lib/x86_64-linux-gnu/claws-mail/plugins )


Umm, Well don't worry my friend this is not as unusual as it may seem. You see one of those lil' buggers will stay at the top of the screen at all times with your context menu items residing upon it. Whilst the other will stay with the particular dimensions of your application unique window frame... In other word one is a toolbar at the top of the screen... You get the picture...


Is it safe to install updated Intel drivers from the x-swat PPA?

My experience with crashes says if it is not broken dont try to fix it. Drivers from repos work fine for me but I have read many who have broke their installation due to third party drivers. So unless current drivers don't  work for you don't try it.


Create notify.sh file in the home directory.

#!/usr/bin/env bash

username=$(/usr/bin/whoami)
pid=$(pgrep -u $username nautilus)
dbus=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$pid/environ | sed 's/DBUS_SESSION_BUS_ADDRESS=//' )
export DBUS_SESSION_BUS_ADDRESS=$dbus

/usr/bin/notify-send "How are you"

In the crontab :

* * * * *  DISPLAY=0:0 /bin/sh /home/YOURUSERNAME/notify.sh


Trying to install software, but I get an error every time ""config": /var/cache/debconf/config.dat is locked"

From the given log report we found that /var/cache/debconf/config.dat file has been locked by some other process.

We have to release  /var/cache/debconf/config.dat file from that process.

Open terminal and type lsof /var/cache/debconf/config.dat and you would get process name thats been using config.dat file and kill that process with either

kill <space> PID

or

kill <space> -9 <space> PID

then try again.

Hope it will help.


env cannot find python because env is searching python in your PATH, not on any shell builtin, or alias or function. As you have defined python as using EXPORT  env won't find it, it will search through 'PATH' and will resolve python to /usr/bin/python (which is python2 and not present in the system).

You can check all the available locations of executable python, in bash, do:

type -a python

You are unlucky if you want to use an alias in shebang as by definition, shebang needs to be an full path to the interpreter executable, which the env should resolve python to when you use /usr/bin/env python. To interpret the script using python3 use the shebang:

#!/usr/bin/env python3


Move each filename into filename subfolders

find . -type f -exec sh -c 'base=$(echo $1 | grep -oP "(?<=\./).*(?=\.[^\.]*$)"); mkdir -p "${base}"; mv "$1" "$base"' . {} \;

Explanation

find . -type f This script will operate on all "regular" files (i.e. will not work on the current directory .).
-exec sh -c '...' . {} \; execute the '...' part, with the filename fed to the script as an argument (and accessed by $1).
base=$(echo $1 | grep -oP "(?<=\./).*(?=\.[^\.]*$)"); derive the base part of the filename. i.e. grep out the part after ./ and before the final ..
mkdir -p "${base}"; Create the directory (e.g. file1).
mv "$1" "$base" Move the file into the newly created directory.

If you prefer files such as file1.temp.ext1 to move to the directory file1, instead of file1.temp, then you can use the following instead.

find . -type f -exec sh -c 'base=$(echo $1 | grep -oP "(?<=\./)[^\.]*(?=\..*$)"); mkdir -p "${base}"; mv "$1" "$base"' . {} \;

Explanation

(?<=\./)[^\.]*(?=\..*$) The only part that differs is the regular expression to capture the "base" part of the filename, where the new directory will be created. This now captures up to the first ., instead of the last ..


Cannot stop screen started with systemctl start

As pointed out by the nice fella here: https://serverfault.com/questions/1059919/cannot-stop-screen-started-with-systemctl-start/1059923#1059923
One need to set
KillMode=control-group.

and can them omit
#ExecStop=/usr/bin/screen -r "minecraft-server" -X quit

as screen propagates the SIGTERM to the jvm


Will Ubuntu work with my Dell Inspiron 640m with minimal driver issues?

It will work well in your PC. I have tested Ubuntu in different machines and virtual machines with even lesser configurations that you have. All of them have worked well for me. Try with the live CD if you want.


Something happened to my sound during checkbox testing

Just had the exact same thing happen to me running Ubuntu 16.04,found your posted question, and then that last thing about changing the volume clued me in.  Looks like Checkbox simply maxes out the computer volume as a part of its test.  Then you turn on your desktop speakers and they blare.  Turned it back down, no biggie.


Having trouble trying to expand a partition on Ubuntu 12.04

You need to disable swap. Do it in gparted by right-clicking the swap partition and using the context menu. Or run in terminal

sudo swapoff -a

Then you will be able to move all partitions.

Expand sda2 right.
Move sda5 right.
Shrink sda2 moving its left side right.
Expand sda1.


not entirely correct - usb-stick needs a boot-flag too !

You can create boot-flag with gparted. plug-in usb-stick and open gparted.

Then look for the drive there, which contains your usb-stick.

Select your usb-stick with one click.

In Menue goto 'partition' - and there 'edit mark' ---> set boot.

So the usb-stick has flag as 'boot' and can be recognized by BIOS.


System responds with "failed to send h2c command" on shutdown: what does that mean?

rtw_pci is Realtek's wireless driver rtw88.

h2c stands for "host to card".

"failed to send h2c command" suggests that there might be some issue with firmware, but since you are not facing any network issues on Ubuntu and only seeing these messages during shutdown, I think it can be a driver issue as well.

You should file a bug for this at launchpad. Here is a guide for doing that: https://help.ubuntu.com/community/ReportingBugs


You should automatically detect a wired connection to your computer.

Wireless would require you to connect to it.  Look for the network indicator in your panel, select the network you are trying to connect to, and fill in any useful details like the WiFi password.  From then on, it should auto-connect to the given access point.

Personally I'm using XUbuntu 13.10, so something as basic as this should be the same (or at least very close to what you need for an answer).

If this answer helps you, feel free to hit the checkmark next to the answer so I get credit for helping you.  If someone else gives a better answer, then please give them credit instead. :)


Registering AppImage Files as a desktop app

Create a .desktop file that points to the application -- here is an example of a .desktop for minecraft:

[Desktop Entry]
Type=Application
Name=Minecraft
Comment=Minecraft
Icon=/home/bram/Applications/Minecraft/icon.png
Exec=/home/bram/Applications/Minecraft/minecraft
Terminal=false
Categories=Minecraft;game

Put that file in ~/.local/share/applications


Customize Ubuntu Server to load a minimal desktop only when needed

I did exactly this myself using:

sudo apt-get install ubuntu-desktop --no-install-recommends

Keep in mind that this will give you the bare minimum for a graphical desktop and will probably enable lightdm at startup. You can correct this by setting the kernel to boot to text mode:

Open a terminal and run:

sudo nano /etc/default/grub

Change the line that reads:

GRUB_CMDLINE_LINUX_DEFAULT="splash quiet"

to:

GRUB_CMDLINE_LINUX_DEFAULT="text"

Run:

sudo update-grub

Restart.

Edit: Hmmm... that doesn't seem to be working. Probably you should just remove the lightdm package.


Error: Could not find or load main class com.install4j.runtime.launcher.Launcher

Just mv .install4j from where you extract spark to /opt/spark:
mv ~/Downloads/Spark/.install4j /opt/spark/


Nice value is a user-space and priority PR is the process's actual priority that use by Linux kernel. In linux system priorities are 0 to 139 in which 0 to 99 for real time and 100 to 139 for users.
nice value range is -20 to +19 where -20 is highest, 0 default and +19 is lowest.
relation between nice value and priority is :

PR = 20 + NI

so , the value of PR = 20 + (-20 to +19) is 0 to 39 that maps 100 to 139.

According to top manual:

  PR  --  Priority The  scheduling  priority  of the task.  If you see
  'rt' in this field, it means the task is running under 'real time'
  scheduling priority.

NI is nice value of task.

  NI  --  Nice Value The  nice  value  of  the task.  A negative nice
  value means higher priority, whereas a positive nice value means lower
  priority.Zero in this field simply means priority will not be adjusted
  in determining a task's dispatch-ability

Edit:
By default when a program is launched in Linux, it gets launched with the priority of '0'. However you can change the priority of your programs by either of the following methods.

You can launch a program with your required priority using

nice -n nice_value program_name

you can also change the priority of an already running process using

renice -n nice_value -p process_id


How to switch between headphones and speakers manually from command line

First, use alsamixer to find out which mixer controls must be changed to get the desired effect.

Then write a script that runs amixer to set those controls.
For example:

amixer set "Headphone" mute
amixer set "Speaker" unmute

In this case, it's likely that you also need to disable Auto-Mute Mode.


Ubuntu Linux Filepath for Windows mounted drive

Samba mounts via the Gnome desktop (Nautilus) are mounted per user in the directory

/home/user/.gvfs/

Just change user to your user name or use ~/.gvfs/ instead.

If you have the samba tools installed, you can mount that samba share in a more general (not per-user) fashion wherever you want (e. g. via /etc/fstab).  Maybe that is more what you want?


How to automate the process of checking an Ubuntu ISO SHA256sum

This will automatically fetch the correct "SHA256SUM" file for the specified flavour / release and check it against the images found in the specified directory (or in the current working directory if no directory is specified);

The input flavour must be either "unity" or one of the flavours listed here; at the time of this answer, those are:

edubuntu
kubuntu
lubuntu
mythubuntu
ubuntu-gnome
ubuntukylin
ubuntu-mate
ubuntustudio
xubuntu

The input release must be a valid release / point release for the specified flavour.

It uses zenity to provide a nice GUI to get the inputs; it will print only the matching results (if any) and will let the user choose if they want to keep the downloaded "SHA256SUM" file;

#!/bin/bash
if [ ! -z "$1" ]; then
  if [ -d "$1" ]; then
    printf "Changing PWD to $1...\n"
    cd "$1"
  else
    printf "$1 is not a valid directory.\n"
    exit 1
  fi
fi
flavour=$(zenity \
  --entry \
  --title "Insert the flavour to check the image against" \
  --text "Insert the flavour to check the image against:" \
  2>/dev/null | \
tr '[:upper:]' '[:lower:]')
printf "Flavour:\t$flavour\n"
version=$(zenity \
  --entry \
  --title "Insert the version to check the image against" \
  --text "Insert the version to check the image against:" \
  2>/dev/null | \
tr '[:upper:]' '[:lower:]')
printf "Version:\t$version\n"
[ "$flavour" = "unity" ] \
&& address="http://releases.ubuntu.com/$version/SHA256SUMS" \
|| address="http://cdimage.ubuntu.com/$flavour/releases/$version/release/SHA256SUMS"
printf "Downloading $address...\n"
wget -q -O SHA256SUMS "$address"
[ $? -ne 0 ] && printf "No SHA256SUMS file found on the server.\n" && rm SHA256SUMS && exit 1
printf "Checking SHA256SUMS...\n"
shasum -a 256 -c SHA256SUMS |& grep 'OK$'
[ $? -eq 0 ] || printf "No matching image found on the target directory.\n"
zenity --question --title "Remove SHA256SUMS?" --text "Remove SHA256SUMS?" 2>/dev/null
[ $? -eq 0 ] && rm SHA256SUMS
exit 0

Example on an Ubuntu Desktop 15.04 64-bit image:


What artificial life games are available for Ubuntu?

Critterding is a 3D physics and neural network alife simulator with a package available for Ubuntu.

Evolve4.0 isn't a linux program but runs happily through wine! (install through winefile)


Outlook 2010 via wine is installed, but can't add an account / Ubuntu 14.04

Ok  so You could use a virtual machine to solve this, in which case, you would have the windows control panel, and the "mail" applet, where you could configure an address manually. I might be safe to assume that the same issue wouldn't be happening in the first place within a virtual machine, but if it were, again, you would have access to the control panel, where you could implement instructions like these for manually adding a mail account.

Unfortunately, wine doesn't have the control panel in the same way that MS windows has it.
It does have Control.exe its own implementation which doesn't offer the same features. I dont personaly have outlook 2010, but you could look to see if you have a Mail icon in the wine control panel $wine control  presumably if you do have it, you can use it to edit your mail settings manually. I have no way to know that.

I want to note that Linux offers a wide array of e-mail clients, such as Evolution. which will work natively.

You might try some of the applications in the programs folder for outlook to troubleshoot the installation. like safemode.  perhaps you will be able to install via safemode. see the folder:C:\Program Files (x86)\Microsoft Office\Office14\

A corrupt pst file could also create errors for outlook. Try running scanpst.exe (from the office14 folder)

Finlay if none of those work, you could try editing the pst file.
many free pst file editors exist. The PST file is were outlook stores its data on users and contacts. You may have to do some hacking on the pst file to manually create new users. Its been about 3 years since Ive even looked at outlook. http://www.ehow.com/how_6064889_edit-pst-file.html

Back up your pst files before you edit them. Good luck.


How to restrict write/read access to HDD for certain apps

Even though you discourage it, my suggestion is to modify your backup-script to automatically mount your disc before running backup and unmount it afterwards.

There are other possibilities, which may or may not work in your case, depends on circumstances:

Are you running your backup as root?
Where are you mounting second HDD
Do you need to have access to this mount point for any other reason than running backup?
What kind ob backuping software do you run?

Suggested script:

#!/bin/bash
gvfs-mount -d /your/device/file
deja-dup
gvfs-mount -u "/media/cube/Backup HDD"


Triggering driver module rebuild on kernel update

For automatically recompiling kernel modules after a kernel update, i know of two options:

write your own script

For inspiration i refer to this very old post or this one
where some one solved it for SUSE by a script
Use Dynamic Kernel Module Suppor (DKMS)

I refer to short description wiki page and ubuntu community page HOWTO for DKMS


Gnome - App keyboard shortcuts don't change when changing layout

I figured a work around for this,

Change the order of the input sources in 'region and language' and lock the screen, when you unlock the shortcuts will be for the input source on the top.

A bit silly I know, but it will do until this gets a proper fix.


Did you pay for the WWAN upgrade when you bought your laptop?

If not, the SIM card simply isn't connected to anything - it's an optional extra (the presence of the slot doesn't indicate the WWAN card is present).


Ubuntu 12.04 Lts Gnome 3 No Update Manager

It may be that they are set to update less frequently.

Open Software Center and click edit, then Software Sources

The click the Updates tab.

It may be that these are set to be very infrequent, and they aren't appearing because you update in unity before it gets a chance to.

There is also the following commands:

sudo apt-get update

and

sudo apt-get upgrade

and

sudo apt-get dist-upgrade

and

sudo apt-get autoremove


Disregard the error.

Linux and Windows set file permissions in a radically different manner. The files get transferred just fine, but since the permission styles are incompatible, the permissions you originally had on the files don't transfer. Eg, what user owned the file, was it executable, could everyone read it or not..

Transferred files thus inherit the samba share's mount settings. If you mounted using Susan's credentials, she now owns the file.


keep getting kernel 3.19.0-28-generic must be compiled

To install kernel 3.19 to Ubuntu 14.04 you need to run

sudo apt-get install linux-generic-lts-vivid


new installation stopped conncecting to wifi, but asking the password

The problem is solved.

I updated to Lubuntu 19.04 and the problem persisted.
Than I performed a sudo service network-manager restart and after rebooting I was able to connect to the wifi normally.


According to Star Wars - Battlefront II WineHQ page only the "Steam 1.1" version really works (Platinum).

Keep this in mind for future reference: Anything below "Gold" is probably a waste of time. Software may install but then don't run or run partially and may have several other issues and limitations.

In conclusion, an Wine emulated Star Wars - Battleship II is doable if, and only if, it's running through Steam (for Windows). Any other installer gives mixed results and should be expected not to work.


The <, > and >> are used for input / output redirection for commands - which is a feature provided by the shell (e.g., bash). So if you type a command like sudo cat > /var/www/info.php then the shell that receives this as input tries to open the file /var/www/info.php and provides that file as the standard output to the sudo command. The sudo command is not even aware whether its output is going to a console or redirected to a file, because this is taken care of by the shell that invokes it.

If the shell you typed your command into is your login shell or another shell running in a terminal with your user id, then it has same privileges as your user id - not those of root.

So in your case, whereas the cat command is executed as root, the copying of its output to /var/www/info.php is attempted by the shell running as a normal user, which, as expected, fails.

A workaround for such situations is to use the tee command :

sudo tee /var/www/info.php

That will have the intended effect of putting all the text entered at the console upto ^D into the file specified as parameter.

One perhaps undersirable side-effect is that tee will also echo the output to the stdout, so after you type each line and press enter tee will output a copy of it back. To avoid this you can use the following variant.

sudo tee /var/www/info.php > /dev/null

Details about tee can be had via info tee at a terminal.


How to update nvidia driver without causing a black screen?

I had nvidia 378 when I tried to install CUDA 8.0 and during the install process my drivers got downgraded to 375.

This is the process I followed to install them (taken from my notes so I can re-install faster if needed). As mentioned by Mark Kirby do not use xorg ppa.

### Add nvidia drivers
sudo add-apt-repository ppa:graphics-drivers/ppa
# More Info on https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
sudo apt update
sudo apt-get install nvidia-378

You will have to research the dependencies between your graphic card, CUDA versions and the software for which you need CUDA. Hopefully you 'll be able to find a sweet spot where all can live together.

P.S. My GPU is nvidia 1050Ti so nvidia-378 was fine (but CUDA still downgraded it). For your graphic card 375/378 may not work (as you already experienced issues).

edit: You didn't mention if you tried nvidia-375 in your post. If not give it a try to see if it works.


I wanted to up vote this is the solution, but I don't have enough points to!

gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-up
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-down
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-mute

That solution comes from:
14.04 ThinkPad Edge volume buttons stopped working


I did not find another progressive solution yet and kernel version 5.0.0-27 solved my mouse scrolling problem (until now without any side effects).

I have an A4Tech X6-80D mouse and the 4.15.0-62 kernel contained this bug, so I installed kernel 5.0 on my Ubuntu 18.04.3 LTS with the commands below (kernel 5.0 is not automatically installed if you have initially an Ubuntu version lower than 18.04.2).

Desktop edition:

sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04

I did not try the Server edition, for which xorg is not needed:

sudo apt-get install --install-recommends linux-generic-hwe-18.04

Original source to install kernel 5.0 can be found via How to Get Linux Kernel 5.0 in Ubuntu 18.04 LTS.


I assume this is for home? You'll need to check your router to make sure that port forwarding is properly configured. Also, your ISP may block incoming port 80 because many of them do not allow hosting a web server unless you have a business account. If that is the case then you might need to use a different external port and forward it to port 80 of your web server.

And what do you mean by "it doesn't work"? What do you see? What is the error?


Is there a good alternative to Adobe Flash on Linux that's not a CPU hog?

Quoted from here

  It will ultimately require two: Gnash and Lightspark. The two projects
  cover different versions of the Flash specification; Gnash is the more
  mature project, and supports Flash content up to version 8. Version 9
  of Flash debuted sporting a rewritten version of ActionScript based on
  an entirely different virtual machine model; Lightspark implements
  this newer framework.

Download Gnash from http://www.getgnash.org/packages/

Download Lightspark from https://launchpad.net/lightspark/+download

To install Lightspark in Ubuntu

sudo apt-get update

sudo apt-get install lightspark browser-plugin-lightspark

Read the article for more information.

To install gnash

 sudo apt-get install browser-plugin-gnash

UPDATE:

Shumway is an experimental web-native runtime implementation of the SWF file format. It is developed as a free and open source project sponsored by Mozilla Research. The project has two main goals.

Download the latest extension from here

Also you can try Pepper Flash Player which is maintained by Google, and is newer than Adobe Flash Player.

Installation:

sudo add-apt-repository ppa:skunk/pepper-flash
sudo apt-get update
sudo apt-get install pepflashplugin-installer
echo '. /usr/lib/pepflashplugin-installer/pepflashplayer.sh' | sudo tee -a /etc/chromium-browser/default

source and more information found here


How can I configure the colour of the dash?

Ubuntu Tweak Does a nice job recoloring the Dash

    sudo add-apt-repository ppa:tualatrix/ppa
    sudo apt-get update
    sudo apt-get install ubuntu-tweak


An alternative for "eog" that I can use by "system(" ")" command?

I think you should try feh.

Install it with sudo apt-get install feh
Run it in the images folder with

feh -x -q -D 5 -B black -g 1366x768 /path/to/images

You can consult its man-page for all available options.


What is this and how can this happen? Is this a security issue or can it be a virus?

Tracker is a search engine, search tool and metadata storage system.

It allows you to find the proverbial needle in your computer's haystack as well as providing a one stop solution to the organisation, storage and categorisation of your data.
Source and more Infos, thx @solsTiCe for the hint
tracker can consume a lot of resources

Install iotop, a simple top-like I/O monitor

sudo apt-get install iotop

Start iotop in a terminal and monitor the output of tracker processes
The memory usage of development environments of this type is normal.

Install htop, a interactive process viewer

sudo apt-get install htop

and start with htop in a terminal. Press F5 for the tree view and search for java. Look at the information on the sub-processes. There you'll see more detail, who needs as much RAM.
Jrstlc, sorry, no idea.

But a virus you can exclude my opinion.


How can I move KDE Plasma taskbar to the top?

In KDE Plasma a panel can be moved to a different screen edge by first enabling the configuration mode by clicking the settings button in the corner of the panel:

Next drag the area that says "Screen Edge" to where you want the panel on the screen, such as the top:


Some of the comments above are correct but they don't explain why.

The PATH environment variable is a list of filesystem paths that are searched for executable binaries, which usually looks like:

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

The PATH variable is appended by the SHELL you are using.  In ubuntu, /bin/sh links to the default shell, which is dash for system boot scripts (i.e. cron).  Dash is similar to bash but not identical.  In terminals, Bash is used by default.

On Debian-based systems (i.e. Ubuntu), PATH is initialized by pam_env based on the content of /etc/environment:

$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

However, the shells like Dash/Bash also source /etc/profile and ~/.profile depending on how they are invoked (interactive vs login shell), where these scripts can append the PATH environment variable.

With all that said, speedtest-cli has to be in a folder on the PATH or you have to specify it using a full path.  If you want option 1, you can try

*/1 * * * * . /home/pi/.profile ; speedtest-cli --csv >> /home/pi/speedtestLog.txt 2>&1

N.B. Thanks to steeldriver for pointing out that "source .profile" is a bashism and the posix standard is ". .profile".


unable to install synaptic neither ubuntu software center nor terminal

Try the below command on terminal to install synaptic,

sudo apt-get install aptitude
sudo aptitude install synaptic


window too big, can't resize or maximize

When a window is bigger than the resolution of the monitor do the following:

Press and HOLD ALT (On Ubuntu 18.04+ Hold SUPER) and then simply click and HOLD the mouse button over the window you want.
Start dragging it until you can see the top part or at least a corner to resize it. Keep holding the corresponding key while doing each click until you can see a corner or the top. From there just resize it as you like.


From Wine wiki

  Security

  Because of Wine's ability to run Windows binary code, concerns have
  been raised over native Windows viruses and malware affecting
  Unix-like operating systems Wine can run much malware, but
  programs running in Wine are confined to the Current user's
  Privileges, restricting some undesirable consequences. This is one
  reason Wine should never be run as the superuser.

Which basically means , you should never run wine with su or Sudo privileges . And rest assured , you  are safe from  Windows Malware , since it mostly runs as Compatibility layer more or less like emulator but not entirely i guess.


Install Ubuntu 20.04 (64 bit) in virtual box hangs on install screens

Increase VM settings:

RAM: 2GB
HDD: 20GB


Bash template to use zenity (or yad) to insert / edit / delete records in a file or database

YAD (Yet Another Dialog) is the best method

YAD is a fork of Zenity and provides advanced controls over buttons, lists and GTK interfaces. For example when entering a file name in this answer YAD easily provides us the regular GUI system interface:

Sample main dialog window

The main window hides the record number column which you can reveal for debugging purposes:

Sample Insert / Edit window

The same window is used for inserting records before an existing record or editing an existing record:

Notice the "File name" field. When you enter it the file selection dialog box in the first section appears.

The bash code

Here is the bash code to make the sample YAD insert/edit/delete records template. Note extra coding is still needed to read in the file and add processing logic for the "Run" command. Additional coding is probably required to support file names with embedded spaces but that hasn't been tested yet.

#!/bin/bash

# NAME: websync
# PATH: $HOME/bin
# DESC: Provide list of files and corresponding website addresses.

# DATE: Mar 25, 2017.

# NOTE: Uses yad which is fork of zenity which is GUI fork of dialog.

# TODO: Add local file date modified. Add Answer last revision date.
#       Add question title.
#       Add file word count, or size, or ignore as irrelevant?
#   Add answer word count if file word count is displayed.
#       Add answer up votes.
#   Scan directory to add all files. ("Populate" button)
#   Initialize $ListArr[@] < /home/$USER/bin/.websync
#   Use "|" as ListArr delimeter or (double quotes?) for file names with spaces

# Must have the yad package.
command -v yad >/dev/null 2>&1 || { echo >&2 "yad package required but it is not installed.  Aborting."; exit 99; }

# Must have the zenity package.
command -v zenity >/dev/null 2>&1 || { echo >&2 "yad package required but it is not installed.  Aborting."; exit 99; }

RenumberListArr () {
# This is called after inserting or deleting records.
# Record numbers may not be sequential because user can sort on any column
# Record nubmers must be unique as they are used to find the correct record in ListArr array.
# Matching on "file name" or any other field is impossible because there may be duplicate names.

# Define variables for easy reading and fewer code line changes when expanding
RecArrCnt=5
ListArrCnt=${#ListArr[@]}

i=1 # First element (0) is "false", followed by record number element (1)
j=1 # Record numbers start at 1

while [ $i -lt $ListArrCnt ] ; do
    ListArr[$i]=$j
    j=$(($j + 1))
    i=$(($i + $RecArrCnt))
# echo "Renumber i: $i j: $j"
done

}

OLDIFS="$IFS"
IFS="|"
ListArr=()

# TODO: Replace this section with IFS=' ' read -ra CfgArr < /home/$USER/bin/.websync

ListArr=("${ListArr[@]}" false "1" "/usr/local/bin/display-auto-brightness" "Different")
Modified=$(stat "/usr/local/bin/display-auto-brightness" | grep "Modify:"| cut -f2 -d" ")
echo "Modified: $Modified" # File modified date is a future list array new field
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset/894470#894470")
ListArr=("${ListArr[@]}" false "2" "/usr/local/bin/sun-hours" "Matches")
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset/894470#894470")
ListArr=("${ListArr[@]}" false "3" "/etc/cron.daily/sun-hours" "Matches")
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset/894470#894470")
ListArr=("${ListArr[@]}" false "4" "/home/rick/.conkyrc" "Matches")
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset/894470#894470")
ListArr=("${ListArr[@]}" false "5" "/usr/local/bin/auto-brightness-config" "Matches")
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset/894470#894470")
ListArr=("${ListArr[@]}" false "6" "/etc/cron.d/display-auto-brightness" "Matches")
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/894460/automatically-adjust-display-brightness-based-on-sunrise-and-sunset/894470#894470")
ListArr=("${ListArr[@]}" false "7" "/home/rick/bin/indicator-sysmonitor-display" "Different")
ListArr=("${ListArr[@]}" "http://askubuntu.com/questions/882419/can-bash-display-in-systray-as-application-indicator/882420#882420")

TransCount=0 # Number of Inserts, Edits and Deletes

# Read Only Status column: Recalc, Different, Matches, Bad File, No Address, Bad Address
# Debugging: --hide-column=2 hides Read Only record number column for normal operation

while true ; do

# adjust width & height below for your screen 900x600 default for 1920x1080 HD screen
# also adjust font="14" below if blue title text is too small or too large
Record=(`yad \
    --title "websync - Compare local scripts to those published on internet." --list \
        --text ' \
        Click column heading to sort.\
        Select record before clicking: Insert / Edit / Delete' \
        --width=1200 --height=600 --center --radiolist -separator="$IFS" \
        --button="Insert before":10 --button="Edit":20 --button="Delete":30 --button="Run":40 \
        --button="Cancel ALL":50 --button="Save":60 --search-column=3 \
        --column "Select" --column "Record number" --hide-column=2 --column "File Name" \
        --column "Status" --column " Website Address" \
        "${ListArr[@]}"`)
Action=$?

RecSelected=false
RecArr=()
i=0

# Button values 1 and 3 don't work for returning selected record for some reason???
# Button values 11, 13 and 15 don't work either. 12, 14 and 16 work.
# Therefore use Button values (10, 20, 30...) for readability.
for Field in "${Record[@]}" ; do
    RecSelected=true
    RecArr[i++]=$Field
done

# Define variables for easy reading and fewer code line changes when expanding
RecArrCnt=5
ListArrCnt=${#ListArr[@]}

# Error checking
if [[ $Action == 10 ]] || [[ $Action == 20 ]] || [[ $Action == 30 ]] ; then
    if [[ $RecSelected == false ]] ; then
    zenity --error --text 'You must select a record before clicking: Insert / Edit / Delete.'
    continue
    fi
fi

# Insert before || or Edit ?
if [[ $Action == 10 ]] || [[ $Action == 20 ]] ; then

    RecArr[3]="Recalc"
    # --text="Set fields and click OK to update"
    # Note if there is a space at end of line, next line generates invalid command error from yad
    NewRecArr=(`yad --width=900 --height=300 --title="Link file to Website Address" \
        --form --center \
        --field="File name":FL --field="Status":RO \
        --field="Website Address":TXT \
        ${RecArr[2]} ${RecArr[3]} ${RecArr[4]}`)
    ret=$?

    # Cancel =252, OK = 0
    # OK & Insert operation?
    if [[ $ret == 0 ]] && [[ $Action == 10 ]]; then
        # Create new list entry and renumber
    ((TransCount++)) # Update number of changes
        let i=1      # Base 0 array, record number is second field

    while [ $i -lt $ListArrCnt ] ; do
        if [ ${ListArr[$i]} -eq ${RecArr[1]} ]; then
        # We have matching record number to insert before
            NewArr+=( false )
            NewArr+=( "${ListArr[$i]}" )
            NewArr+=( "${NewRecArr[0]}" )
            NewArr+=( "${NewRecArr[1]}" )
            NewArr+=( "${NewRecArr[2]}" )
        fi
        let j=$(( $i-1 ))
        let k=$(( $j+$RecArrCnt ))
        while [ $j -lt $k ] ; do
            NewArr+=( "${ListArr[$j]}" )
        j=$(($j + 1))
        done
        let i=$(($i + $RecArrCnt)) # Next list array entry to copy
    done
    ListArr=("${NewArr[@]}")
    unset NewArr
    RenumberListArr

    # OK & Edit operation?
    elif [[ $ret == 0 ]] && [[ $Action == 20 ]]; then
        # Update array entry
    ((TransCount++))
        let i=1
    while [ $i -lt $ListArrCnt ] ; do
        if [ ${ListArr[$i]} -eq ${RecArr[1]} ]; then
        # We have matching record number
        ListArr[++i]="${NewRecArr[0]}"
        ListArr[++i]="New"
        ListArr[++i]="${NewRecArr[2]}"
        let i=$(($ListArrCnt + 1)) # force exit from while loop
        else
        let i=$(($i + $RecArrCnt)) # Check next entry
        fi
    done
    fi

# Delete record?
elif [[ $Action == 30 ]] ; then
    # --text="click OK to confirm delete"
    # Note if there is a space at end of a script line, the next line generates
    # "invalid command error from yad
    yad --width=900 --height=300 --title="Do you really want to delete this record?" \
        --text 'Click OK to confirm delete.' \
        --form --center \
        --field="File name":RO --field="Status":RO \
        --field="Website Address":RO \
        ${RecArr[2]} ${RecArr[3]} ${RecArr[4]}
    ret=$?

    # Cancel =252, OK = 0
    if [[ $ret == 0 ]] ; then
        # Delete record from list array and renumber
    ((TransCount++))
        let i=1
    while [ $i -lt $ListArrCnt ] ; do
        if [ ${ListArr[$i]} -eq ${RecArr[1]} ]; then
        # We have matching record number
        j=$(($i - 1))
        k=$(($j + $RecArrCnt))
        while [ $j -lt $k ] ; do
            unset 'ListArr[$j]'
            j=$(($j + 1))
        done
        for i in "${!ListArr[@]}"; do
                NewArr+=( "${ListArr[$i]}" )
        done
        ListArr=("${NewArr[@]}")
        unset NewArr
        let i=$(($ListArrCnt + 1)) # force exit from while loop
        else
        let i=$(($i + $RecArrCnt)) # Check next entry
        fi
    done
    RenumberListArr
    else
        continue # cancel changes.
    fi

# Run update process?
elif [[ $Action == 40 ]] ; then
    continue # TODO: Run

# Cancel all changes?
elif [[ $Action == 50 ]] || [[ $Action == 252 ]] ; then
    # Cancel ALL || or X the window or Escape
    if [[ $TransCount -gt 0 ]] ; then
    zenity --question --text "You have made $TransCount change(s). Do you really want to cancel?"
    rc=$?
    if [[ $rc -eq 0 ]] ; then
        exit
    fi
    else
    exit
    fi

# Save changes?
elif [[ $Action == 60 ]] ; then
    # Save
    echo ${ListArr[@]} > ~/bin/.websync
    exit
else
    zenity --error --text "~/bin/websync - Unknown button return code: $Action"
    exit
fi

done # End of while loop

IFS="$OLDIFS"

exit

Summary

Hopefully this saves others lots of time getting their own record management system going using bash and yad. Of course more bullet proof and probably faster methods can be done using Python or C but that probably comes at the expense of more lines of code and higher learning curve.

At the end of the day this project is targeted at those that want to learn more about bash and what can be accomplished in a bash-only environment.

Perhaps AskUbuntu is the wrong forum for posting this and Stack Overflow or Unix & Linux forums might be better Stack Exchange candidates. I look forward to comments on that as I'm really not sure the best place.

Of course I always look forward to general comments and constructive criticisms as well :)


Broken Kernel on 14.04 - can't run any apt-get, dpkg

I fixed the issue after a lot of terrifying and dangerous tinkering. I'll post what I did, some sort of combination of a bunch of different similar issues I found.

The general solution was to not delete the old kernel at all, and just pretend that its not there.

First:

I edited /var/lib/dpkg/status and removed every occurrence of the package linux-image-extra-3.13.0-74-generic.

This led to a lot of packages that weren't configured, so I still couldn't' do a whole lot. The solution to this was to purge all of these. It looked like this for me:

sudo apt-get purge linux-image-3.19.0-42-generic linux-image-3.19.0-49-generic linux-image-generic linux-generic linux-image-extra-3.19.0-42-generic linux-signed-image-3.19.0-42-generic initramfs-tools

Then I ran apt-get update, followed by sudo apt-get install --install-recommends linux-generic-lts-utopic

Then I ran apt-get install -f to fix dependencies.

Finally I ran apt-get autoremove to get rid of all of the garbage that's been here from whatever I did to my system.

I'm not exactly new to Ubuntu or unix at all, but I tend to stay away from the lower-level nasty bits, mostly use it for software development. If anybody is having similar issues to this, what I have above fixed the problem for me, but I can't exactly recommend it unless you at least sort of know what you're doing. Like I said, i don't really know what I'm doing, but I do know that I was playing with fire and the fact that my system is still running is  a miracle.


I'm creating the build on a Virtual Machine.  I started with an English version of the build which had the ubuntu-edu-~ packages installed.  I cloned the English version to save time and installed ES thru the Language Support app.  This is when I came up with missing language packages for the ubuntu-edu packages.

I recently tried a fresh install of the UbuntuMate 16.04 LTS in ES.  Then I added the ubuntu-edu packages.  Everything is ok.  I know it might be interesting to find out what went wrong in my first try.  But I will simply use the fresh ES build to do this project.  There may be other packages that didnt acquire ES and I dont want to scan the entire build for them.  Thanks


Creating Owncloud 9.0.2 Server on Ubuntu Server Version 14.04.4

As previously mentioned, the user doesn't have proper privileges on this database. Maybe it would be easier for you to manage the database through phpMyAdmin:

sudo apt-get update
sudo apt-get install phpmyadmin

During the installation you have to select Apache2 by hiting space, tab and enter.

Then enable the php5-mcrypt extension:

sudo php5enmod mcrypt

And restart apache2:

sudo service apache2 restart

By now phpMyAdmin should be accessible on http://192.168.0.241/phpmyadmin
Login using root credentials and change Kyotais permissions accordingly.
There are useful screenshots about this on this page:
https://serverfault.com/questions/565343/how-to-grant-and-revoke-rights-to-tables-using-phpmyadmin


If you want the application to keep running when you close the terminal window you should do:

nohup chromium-browser &

You need both the nohup and the &.

nohup means keep this process/command running after the shell closes.
& means put this process/command in the background so it dose not block the shell (so you can use it for something else.


How do I make the matlab ISO from 3 separate tarballs?

so I got it now, if anyone still need the solution :

cat data.tar.001 data.tar.002 data.tar.003 > data.tar

With this command I'm making a "big" file named data.tar composed of the three other files.


How to remap Super + w to a different keyboard shortcut?

This works on 14.04:

Install CompizConfig Settings Manager (CCSM).

sudo apt-get install compizconfig-settings-manager

Run CCSM from the Dash.
Go to Window management -> Scale -> Bindings tab ->
Initiate Window Picker
Click the keyboard shortcut (<Super>w on your PC, but <Super>Tab in this screenshot).

Click Grab key combination, press the desired key(s), then click OK.

I chose <Super>Tab to be like Windows 10.


If you are using Ubuntu Desktop, you can  turn off auto-update via Ubuntu Software Center. Open Ubuntu Software Center, and go to Edit --> Software Sources. Choose "Never" for "Automatically check for updates".


Chromium web browser segfault hangs (crashes) my ubuntu 12.04

Try to reset configuration, rename configuration file and try to open chrome again

sudo mv .config/google-chrome .config/google-chrome.bak


How linux kernel (used in Ubuntu) manages concurrent access to the data?

Sir, I think you have a misconception about what locking is, and what mutex is for. Also, you have a misconception about what Ubuntu is.

Let's start with the latter: Ubuntu is a Linux-based distribution. Any and all low level system architecture components are done by the Linux kernel. Ubuntu is just a way of putting different software pieces together, configuring, installing and updating them in a robust, uniform and user-friendly fashion. Your question, thus, refers to Linux, and not Ubuntu.

Mutexes are used to make sure that common resources (such as memory) are not by mistake accessed and modified at the same time. Since processes in general do not share such resources as memory (neither in Windows nor in Linux), the problem arises when one uses threads, and not processes. This is done using mutexes, you are right in that; here you will find some more informations about that. Linux uses POSIX threads. However, whether you -- as a programmer -- use mutexes or something else (like spinlocks or critical section), that depends on you, not on the system (see here), be that Windows or Linux.

As for processes, one needs file locking, but that is a different story. And yes, processes are implemented differently in Windows and in Linux (most importantly, in scheduling; see this presentation to shed some light on that).


According to this bug entry on Launchpad this has something to do with an illegal character in the Spanish translation. The issue has been fixed by a developer (pull request #128 has been merged) but Pinta has not been released since the issue was fixed so it remains open in the current Pinta 1.6.

An easy workaround is to bypass the language support. Open the file /usr/bin/pinta in a text editor and add a new line with the text LANG=C before the last line which starts with exec. The file must be saved with admin rights since it is a system file. Pinta will use English instead of the default language of your desktop but the zoom tool will work again.

If you don't want to change a system file or if you want to test the workaround before applying it on your system you can open a console and type LANG=C pinta and press enter. This has the same effect as the workaround described above but it is not permanent, i.e. it will only work until you close the instance of Pinta you just started.


Is it possible to write Kindle ebook with LibreOffice

Certainly it is possible. Just write your book in LibreOffice Writer, save it, and export it to PDF using the built-in export function, which even has its own button.


How to write log file for deb package installation?

(If installing the .deb package from the terminal) The terminal "should" automatically print (echo) any errors that occur... You should be able to just look at the terminal and see all the errors.


Why does sed substitution command with the flag p print the modified output twice?

sed 's/123/AAA/p' a.txt

This expression contains two commands

s/123/AAA/ means, find lines with 123 and replace 123 with AAA in its first instance on those lines where it occurs. By default, sed prints every line, so, the whole stream is printed with the modifications
p means, print the pattern space. At the point where we call p, the pattern space contains the modified lines, so they are printed again.

The combination of s and p is usually used with -n, when we only want to print the lines of the stream that were found by s and therefore changed.

The order of commands matters. In your command, If you put p first, it will print the unmodified stream, close to what you expected:

$ sed 'p;s/123/AAA/' a.txt
apple
apple
123
AAA
pear
pear
1234
AAA4

Here when we call p, the pattern space is the entire file, because we haven't specified any part of it, and it hasn't been changed. The s command also prints the whole file, but also modifies it, so we see the stream twice, modified and unmodified.1

So perhaps it helps to think that the commands in a sed expression are applied cumulatively from left to right, and as steeldriver said, the output you get in this case is due to p being applied at the end of the cycle, after s has been used to select and modify part of the file.

1 Originally, the command I had here was sed 'ps/123/AAA/' a.txt. As helpfully pointed out in a comment by mxmlnkn, this command does not work in GNU sed. I had been using BusyBox sed (in Termux on Android), and didn't test the command properly in GNU sed on Ubuntu (bad!). But it's interesting to know that GNU sed differs from others in requiring a semicolon here.


How can I restore default keyboard shortcuts in 12.10?

1. Boot the Live CD

2. When you get to the desktop, go to Keyboard shortcuts (type gnome-control-center keyboard and go to shortcuts tab)

3. Write down the shortcuts you want to restore (don't forget to label them so you know what they are for!).

4. Shut down the Live CD

5. Boot-up Ubuntu normally

6. type gnome-control-center keyboard again and go to shortcuts tab and edit the shortcuts...

7. Repeat step 6 for all shortcuts you wish to change back.

Also you can copy the folder /usr/share/gnome-control-center/keybindings/ from the live CD to a USB or something and replace the folder you have in Ubuntu.

EDIT: I uploaded that folder for you, it's in zip so unzip it and paste it in /usr/share/gnome-control-center/ (replace the current) I didn't edit any shortcuts.


Is it safe to delete a lost+found folder?

fsck will recreate the lost+found directory if it is missing.
On startup most distributions run fsck if the filesystem is detected as not being unmounted cleanly.
As fsck creates the lost+found directory if it is missing, it will create it then and place anything that it finds into that directory.
So you can remove it but not recommended (as per Marcelo comment).


How can I get bluetooth headphones to connect automatically when they are turned on?

I've been looking around for a solution to this and tried a couple of scripts. What worked in the end was adding the following to /etc/pulse/default.pa

load-module module-switch-on-connect

This worked on Ubuntu 18.04 for my headphones.

Turns out this did NOT work. After a reboot pulseaudio refused to start. When I tried to start it manually I got:

E: [pulseaudio] module.c: Module "module-switch-on-connect" should be loaded once at most. Refusing to load.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.

What am I missing? How can I get automatic connection and have the module load only once?


Nodejs app is starting everyday and eating up memory

I have solved this issue by changing start on started to start on startup


Is 18.04 already somewhat safe for installing?

Make a test plan

There is an old saying "We don't plan to fail, we fail to plan". On that premise make yourself a test plan:

Create a 18.04 Live USB with persistent storage.
Boot from the USB and select "Try before Installing".
Install your mission critical applications to the USB's persistent storage.
Test your applications with a COPY of your data.
Do not test the programs on the real live data on sdX.
Try out your USB keyboards and mice.
Try out your printer(s).
Access your favorite websites and download files.
Test suspend and resume.
Test Fn keys for volume and brightness.
Make a keyboard shortcut and ensure it works ok.
Test systemd, cron and other system utilities.
If you've written scripts, copy them over and test them.
Test xrandr functions you have used before.
Run CPU & RAM stress tests. System benchmarks might be helpful too.
Remember 18.04 uses Unity 7.5 but 16.04 uses Unity 7.4 I think.
Of course you should test Anything else you can think of

This test plan might be overly cautious in some areas so you might scale it back depending on your comfort level and time constraints.

Clone your data on disk instead of USB

If you have enough disk space to hold a copy of your Ubuntu partition, or an external drive or USB Pen Drive that can hold it, use this script: Bash script to clone Ubuntu to new partition for testing 18.04 LTS upgrade Then you can clone your data without rebooting.

The advantage is you avoid the time consuming and laborious task of rebooting to a Live Boot USB. The speed of conversion is also many times faster on an internal drive.

Summary

For myself I made an Ubuntu 18.04 Live-USB with Persistent Storage a couple months ago and was surprised how stable it was.

Since then there has be a raft of Ubuntu 16.04 LTS automatic updates with bugs so I've stopped updating Ubuntu since January 1, 2018. I enjoy the stability of 16.04 before year 2018 so I'll just keep using it as is. After 30 days of no bug reports of LTS updates I'll update 16.04. I will hold off converting 16.04 LTS to 18.04 LTS when it initially comes out in April 2018. Again I'll pay close attention to bug reports and pull the trigger on upgrading when instinct tells me the time is right.


Stuck on different keyboard layout at login screen

Solved it, had to reinstall Ubuntu using live USB again. The reinstall option was greyed out so I just went ahead selected the 'Something else' option and selected the same mounts as before and deselected the format option. Lost apps but all my documents and stuff remains intact and app data seems to be there too once I reinstall the apps. The keyboard layout was still Arabic once logged in but thankfully it was English on the login screen.


Release upgrade crashes with "W:Failed to fetch http://host/debian/dists/oneiric/Release.gpg"

Actually what i know regarding this issue is , if you dont have resolv.conf file  properly you gonna get that . I mean if your nameserver address was not mentioned there . then there is a possibility of getting that error .


How do I install over an encrypted disk?

Ubuntu is able to overwrite the partition(s) with the necessary files to provide a running system, no matter what has been on the partitions before.


It might not be the best way ever of achieving the update functionality.

I am using a bash script checking every 2s for a new file in the specified folder. If there is, then call geeqie with remote option -r and file:/path/to/file option.

#!/bin/bash
file_name=""
while true;
do
    new_name=$(ls -t /home/<user>/Pictures/_DSC* | head -1) # newest file in folder
    if ["$new_name" != "$file_name" ]
    then
        echo $file_name
        file_name=$(ls -t /home/<user>/Pictures/_DSC* | head -1)
        geeqie -r file:$file_name
    fi
    sleep 2
done


How to sync iDevices on Pre Ubuntu 10.04?

Yes, there are instructions here: https://help.ubuntu.com/community/PortableDevices/iPhone


I solved this by installing gnome-icon-theme-full.

sudo apt-get install gnome-icon-theme-full


FortiClient VPN 6.4 blocks internet access on Ubuntu 20.04

On my 20.04 LTS, Forticlient VPN v6.4.0.0851 never got connected, it would say connecting.
openfortivpn(available in package manager) and openfortigui works for me.
openfortivpn - v1.12.0-1, openfortigui - v0.9.3
edit: have tested after complete removal of official forticlient.


How to create a minimalist cartoon avatar using linux?

I know there are softwares like gimp available for this platform but I have a very little knowledge about them.

So do apt-get -y install gimp and try it out! It's not very hard to make a "minimalistic cartoon avatar" in gimp. I don't think there is a FOSS tool that just takes a photo .jpg and spits out a "minimalistic cartoon avatar" automatically.


What are my options for sharing files between Windows & Ubuntu on the same network?

What comes to my mind first is to use UPnP media file sharing between your machines. You will need a UPnP server on the machine that stores the files and a UPnP client to play the contents.

UPnP server/client technology is well established in Windows Media Player and allows media sharing over the network. If you are looking for a cross-platform solution there is e.g. VLC player or XBMC that can be installed on both, Windows and Ubuntu. However by using the UPnP protocol you can also run a different software on each machine (e.g. Media Player for Windows and VLC for Ubuntu).

To provide a UPnP server only to share media folders there is an easy to handle command line tool in Ubuntu: uShare.

If you rather like to send audio live streams simultaneously to all connected machines in your LAN you may want to have a look at Icecast available for both, Ubuntu and for Windows. This enables you to stream music using an internet radio protocol (but in your case  streamed to local machines only - including so called "Internet Radios").

In any case you'll need enough LAN capacity for audio files to be streamed without congestion.


TL;DR: You can't install php5.6 on 14.04, consider upgrade releases.

Php 5.6 is still available on Ondrej's repository.

:~$ apt-cache policy php5.6
php5.6:
  Installed: 5.6.40-6+ubuntu18.04.1+deb.sury.org+3
  Candidate: 5.6.40-7+ubuntu18.04.1+deb.sury.org+1
  Version table:
     5.6.40-7+ubuntu18.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main i386 Packages
 *** 5.6.40-6+ubuntu18.04.1+deb.sury.org+3 100
        100 /var/lib/dpkg/status

The problem is you're using Ubuntu 14.04 which has reached End Of Life, it is recommended that you update to newer version.

The ppa maintainer has dropped support for Ubuntu 14.04, the supported releases is as follow:

Ubuntu 16.04 Xenial
Ubuntu 18.04 Bionic
Ubuntu 18.10 Cosmic
Ubuntu 19.04 Disco

You have to upgrade/fresh install above version of Ubuntu to get php5.6 working.

I think you'd want to upgrade to Xenial since it doesn't require any fresh installing method and can be upgraded directly.

Related How to install software or upgrade from an old unsupported release?


How to resume release upgrade after network interruption?

The problem was based on a misunderstanding. A previous upgrade failed because it predicted the not enough diskspace, and ubuntu-release-upgrader nudged me to do sudo apt-get clean which to make free space, which basically cleared all downloaded upgrade files.

I now found out that ubuntu-release-upgrader preserves downloaded packages. It is only confusing that the user has to close and restart the upgrader application and watch how it downloads again package lists (or something like that). After that, it continues downloading only the missing packages (like for me packages #2000–2550).


I ran into the same issue and an update fixed it for me.

Download the latest version of crouton from https://goo.gl/fd3zc
Update via the following command:

sudo sh ~/Downloads/crouton -u -n precise


This is hardly convenient, but when this happens to me, I run:

sudo pm-suspend

And then wake the machine again.  It comes back with full brightness!

That might be preferable to logging out and in again.  ;)


Taskbars/Unity are visible in the MythTV frontend even when the frontend is fullscreen

Install compizconfig-settings-manager  using the following command.

sudo apt-get install compizconfig-settings-manager

What are some of the issues with CCSM and why would I want to avoid it?

Go to Ubuntu Unity plugin and set the option for Hide launcher to auto-hide. Then, go to Workarounds and check the box for the option Legacy Fullscreen Support.

This method worked for me in 11.04.


I had the same issue. Try installing alsa-mixer and by using it try to mute one channel of the input (either left or right).


Is there a way to browse all repositories available to an ubuntu system?

The apps website will show you everything Ubuntu Software Center has with the same categories. All of the below options will generally show you the same results with a 1 line description. You will have a better search if you first decide what category you search fits into though.

From USC ...

Accesories:

The 1 line description often is enough to get a basic idea of what the software is about.

And from the apps website:

Accesories:

You can also install the old synaptic (that was software we used to use before USC) with

sudo apt-get install synaptic

The "all" option will list everything, even software that is not in itself is useable on the desktop (like command line utilities or tools software depends on).

And we also have a website you can search packages.ubuntu.com for every available release:

From all of these I do believe the Ubuntu Software Center is the best option if you have your system at hand. If you do not (because you are working on a Windows machine the apps website is a good 2nd option. The synaptic and the packages website method tend to show alot of packages that have no purpose themself but are there to support desktop/server software.


SASL authentication failure: Password verification failed SASL+PAM

Quick answer. Restart pam service.

There's aparrently alot of mem leaks in PAM and especially with SASLauthd it crashes a lot.

I'm trying to figure out a way to limit the amount on lookups allowed, as right now it's getting 50 or so a second and crashes OFTEN.


Usually this happen when you copy/paste some command from other source, and accidentally copy some invisible special characters.

Error usually looks like:

line 39: $'[\302\240-e': command not found.

Where 0302 0240 is octal UTF-8 for a non-breaking space.

If you are using vi/vim you can check you code using :set list command. As it is suggested in stackoverflow, you may do this:

:set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<

then using :set list you will see all invisible characters except whitespaces

Also I recommend you add shebang at the top of your script. In your case #!/bin/bash.


Edit: Fixed it by using sudo dpkg --force-all -i [app name here]


If you use

$ ps -ef

or

$ top

you should be able to find the PID (Process ID) for your opengeo-suite.

With the PID in hand, you can use netstat and grep to find out what port it's running on. For example, I can see the PID of my tomcat is 1483. So using,

$ sudo netstat -lnp | grep 1483

I get the result:

tcp6       0      0 :::8080                 :::*                    LISTEN      1483/java
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      1483/java

I don't think you asked this, but for completeness, to find the process ID when you know port number:

$ sudo lsof -i:8080 -n

gives

COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    1483 tomcat6   36u  IPv6   3496      0t0  TCP *:http-alt (LISTEN)

Note, netstat and lsof will run without sudo, but they won't show all ports. In my case, sudo was necessary to see the tomcat ports.


How to REALLY, completely and totally delete a program and all its files

the issue you encounter, is more of an feature than a bug. Yeah sounds crazy, but bare with me.

As you might have noticed Linux puts all it files and bits at different places, this (mostly) follows the File Hierarchy Standard - more on Wikipedia. And in there under 3.8. /home : User home directories they write besides others following :

  User specific configuration files for applications are stored in the
  user’s home directory in a file that starts with the ’.’ character (a
  "dot file"). If an application needs to create more than one dot file
  then they should be placed in a subdirectory with a name starting with
  a ’.’ character, (a "dot directory"). In this case the configuration
  files should not start with the ’.’ character.

These files are deliberately not touched when uninstalling software. So when a user takes it's home to another machine he/she keeps her/his configurations.

About your specific situation:

wine stores the windows-program's files under ~/.wine/ if you want to uninstall one program go use their helper program winecfg if you want to get of everything you installed inside wine you can simply go and delete the above mentioned folder.
virt-manager stores it's configuration via the gconf-settings-system. You can edit them without starting the program by using dconf-editor, respectably theses are stored under ~/.gconf/apps/virt-manager/ - yet with standard settings new virt-images are stored in /var/lib/libvirt/images so if you want to get rid of created images you simply have to delete them there.

A quick way to get more knowledge about Ubuntu, besides trouble shoot questions on this site might be reading http://ubuntu-manual.org/.


Install ufw It will handle the firewall.

This guide will help you go through the basics of firewalls.

https://www.linode.com/docs/security/firewalls/configure-firewall-with-ufw/

Run these commands on the ssh-server machine

sudo apt-get install ufw
sudo ufw allow ssh
sudo ufw enable
sudo ufw status

These will get you through.

Let me know what happened.


You can bring up GRUB by pressing SHIFT during boot. If you want to permanently show grub, edit the respective options in /etc/default/grub.


The switch to deactivate the screensaver and screen locking setting has been moved in the UI. You now need to select All settings in the bottom switch in the settings dialog and select Video from the module tree an the left. There you find the setting to deactivate the screensaver/screen locking.

This doesn't seem to work if VLC is accessed through SSH which might be a bug or a limitation of SSH windows in general.


Is there an application which organizes my "Downloads" folder automatically?

Save the following script in a text file. Call it "susan.sh" (or something else).

#!/bin/bash

# define target directories
VIDEOS=/videos/
PICTURES=$HOME/pictures/random

# this will generate directories in form /home/user/Downloads-2012-09-05
REMAINDER=$HOME/Downloads-`date +%Y-%m-%d`
DOWNLOADS=$HOME/Downloads/

cd $HOME

# adapt to suit your needs
mv $DOWNLOADS/*.{jpg,png,JPEG,jpeg,PNG,tif,tiff,TIF,TIFF,gif,GIF} $PICTURES
mv $DOWNLOADS/*.{mov,avi} $VIDEOS
if [ ! -d "$REMAINDER" ] ; then mkdir "$REMAINDER" ; fi
mv $DOWNLOADS/* "$REMAINDER"

Make susan.sh executable and put it somewhere safe:

chmod a+x susan.sh
sudo cp susan.sh /usr/local/bin

Run it a few times from terminal to make sure it runs correctly. If you are happy with the results, create a desktop launcher. Save the following in a text file called susan.desktop in your Desktop folder:

[Desktop Entry]
Name=Susan
GenericName=Downloads directory sorter
Comment=automagically sort the contents of the Downloads directory
Exec=/usr/local/bin/susan.sh

Do people really create "applications" to do such simple tasks?


crontab entry takes 6 parameters "m h dom mon dow command". But you are providing 8


Since you probably don't want to erase your Windows.

First step would be not to follow recommended steps during Ubuntu installation, and choose custom one.

I would recommend first to create partition in windows boot for linux, don't place it in the middle and non less than 50GB (despite the fact that Linux is light weight, it never cleans it's garbage, so with 50GB you will not have to clean it for next year or 2). Once you have partition for linux, at this point you can start instaling Ubuntu.

During custome instalation set SWAP area on linux partition to your RAM size, everething else to Ubuntu ROOT and linux formating (should have number 4 at the end), and under root I mean '/'.

Before proceeding it will show you what change will be applied.

Something to note:
Ubuntu will take you BIOS time, thus on Windows you'll be 1 hours late
and if eventually you would want to roll back to solo windows boot it's not straightforward.


How to connect to guest vm(KVM) on remote host PC

In my opinion, you need to set up a bridge on your host and assign IP(s) to your VM(s) in order to connect directly via ssh. Here is an example setup on this link (under title "Public Bridge"): http://www.linux-kvm.org/page/Networking


Asus Chromebox Displayport monitor not detected

I had the exact same problem.  I was using a passive DP to HDMI adapter which worked with Chrome but not Ubuntu or Arch.  Switched to an active adapter and it came right up.


Create a Gtk Window insensitive to Show Desktop and Won't show in Launcher

Figured it out... you need to set the type hint to Gdk.WindowTypeHint.DOCK then also set either skip_taskbar_hint OR skip_pager_hint.

EDIT This works, but even with skiptaskbar, the window still shows up as an icon in the launcher bar. I need a better way....

EDIT2 Got it! The issue came from other launchers in the bar having the same WMClass as the program I was trying to make a Desktop Widget. To distinguish itself, you need to set the WMClass of the window within the program, as well as within its .desktop launcher:

In the code:

Gtk.Window.set_wmclass(WMname,WMclass)

And in the .desktop Launcher:

StartupWMClass=WMname


How do I make an executable instead of a shared library under 18.04.1?

If it can help someone.
I had a similar problem. The program that I tried to compile was on an NTFS partition (shared btw windows and ubuntu). When I compile it on the NTFS partition, the output has a shared lib.
I moved all my project (source code and MakeFile) on my linux partition (ext4) and I compile it again. This time the output was an exectuable file.


I faced this issue and found a solution using brute force:
# grep -r PORTCFG
Binary file lib/x86_64-linux-gnu/ModemManager/libmm-plugin-telit.so matches
Binary file lib/x86_64-linux-gnu/ModemManager/libmm-plugin-dell.so matches

So the answer is:
# systemctl stop ModemManager.service

And optionally:
# systemctl disable ModemManager.service


How can I get Ubuntu to recognize the size of the disk it's on?

The disk might be bigger but the partition on that disk is still the same.

You want to boot the virtual machine into a LiveCD environment and resize the partition:

Download the iso
Mount the ISO as the CD drive in the VM settings and boot the VM
Press Del or F2 (whatever you need to change the boot order) and make it boot to CD first
Get to the LiveCD environment.
Use gparted (aka Partition editor) to resize your partition (select the partition, right click, resize, drag the slider up so it fills the disk)


I don't know the authentication password

It is the password you set when you installed Ubuntu and the password you log in with.


Can you use PhoneGap on Ubuntu to develop iPhone apps?

Setting Up An Android App Build Environment With Eclipse, Android SDK,
  PhoneGap.  The tutorial describes how you can set up a development
  environment for building Android apps on an Ubuntu 10.10 desktop using
  Eclipse, the Android SDK, and PhoneGap.

  But first you have to do the following:  Installing Eclipse And
  Prerequisites For The Android SDK/PhoneGap

  Eclipse and the prerequisites for the Android SDK and PhoneGap can be
  installed as follows:1

sudo apt-get install openjdk-6-jdk eclipse ruby rubygems ruby-dev git ant libxml2 libxml2-dev libxslt-dev

Next run

sudo gem install nokogiri

  Then you need to install the Android SDK.  Go to
  developer.android.com. There you will find links for the Android
  SDK.1

Read on

1Source:Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap

Can I build for iPhone?
Yes! Check out our iOS Guide for information on how to get PhoneGap Build up and running with iOS.2

2Source:PhoneGap


Why are Broadcom such an issue for Ubuntu?

It is a non free driver and thus can not be included into a vanilla Ubuntu. Problem with it is that there is not 1 driver but a lot of the models get their own specific driver. Look at the answer here to see what this means. I'll list 3 but there are many many more in the link:

firmware-b43-installer - If you have BCM4306/3, BCM4311, BCM4318, BCM4321 or BCM4322 (only 14e4:432b)
firmware-b43-lpphy-installer - If you have the BCM4312 (with Low-Power aka LP-PHY)
firmware-b43legacy-installer - If you have the BCM4301, BCM4306/2 or BCM4306

The average Ubuntu user will have a bit of a problem since to manually install the correct driver the user needs to know exactly what model he has and what driver to use for that model.

But is this still a problem? The new additional driver tab we now have should fix all the issues: you will be prompted to install the correct driver:

So all the hassle should be avoidable nowadays.


1 - install the personal package Archive

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update

2 - wich one

if you want kubuntu-full 'the kubuntu-fll contains a full Kubuntu installation (kubuntu running kde)'

$ sudo apt-get install kubuntu-full

or

$ sudo apt-get install kubuntu-desktop

if you want kde-full contains most KDE modules including everything in kde-plasma-desktop

$ sudo apt-get install kde-full

and if you want only the kde-plasma-desktop contains the bare minimum for KDE Plasma workspace

$ sudo apt-get install kde-plasma-desktop

source : https://help.ubuntu.com/community/InstallingKDE


Running command "sudo lshw -C network" and no results

I have Xubuntu on my Asus X205TA (I used to use Debian then Lubuntu but they had a few oddities on the X205TA so I made the switch), here is what I did to get mine working with Xubuntu:

The prep work needed:

Have 2 USB drives (We will call them B1 and B2), an Ubuntu 14.04 64bit ISO, and a Xubuntu 64bit ISO and another computer (not the X205TA)
Use Rufus on the computer to make a Ubuntu 14.04 Live USB on the first USB drive (B1)
Boot up the computer with the 14.04 Live USB (B1)
Use the "startup disk creator" to make a Xubuntu Live USB with persistence on the second USB drive (B2)
Add this file to /EFI/BOOT directory of the Xubuntu flash drive (B2)
Shut down the computer
Ensure that the laptop is plugged in and charging
Plug the Xubuntu Live USB drive (B2) into the laptop
Plug in your internet access device
Boot the laptop & press ESC as it is booting (this will give you the boot order screen)
Select "enter setup"
Disable Secure Boot
Save and exit the BIOS
Press ESC as it is booting (this will give you the boot order screen)
Select your Xubuntu Live USB drive (B2) drive from the list
Select "Try Xubuntu" when prompted
Open the "Terminal Emulator" program

Type in the following commands (or you could copy and paste them)

sudo apt update
sudo apt install gnome-disk-utility

Then do the following:

Open the "Disks" program
Find the laptops inbuilt storage and format it with a MBR/DOS partition system (top right, the gear)
Once it is done use the "Install Xubuntu" program on the desktop to install it onto the laptops internal storage, make sure you have internet access on the laptop (USB cell phone tethering works well) and to select the option to install third party software.
When the installation is complete you can shut-down the laptop & remove the USB Drive (but not your internet access device).
Boot into your new install and log in

You now should have a semi working laptop, but as Billy Mays often said, "But wait there's more".

Open up the terminal and type in the following commands (or you could copy and paste them)

sudo apt update
sudo apt dist-upgrade
Install any updates shown
sudo reboot

If you are installing 18.04 then your Wifi and MicroSD card reader should be working fine but if you are experiencing system frezes then use the fix in postscript 1, or Wifi stability issues then use the fix in postscript 4. If you are installing version 17.10 or earlier. then follow postscripts 1, 2, 3, & 4 below.

^1 System freezes.

Open up the terminal and type in the following command

sudo thunar
Navigate to "/etc/default/"
Open the "grub" file
On the line "GRUB_CMDLINE_LINUX_DEFAULT" needs to be edited to read

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_idle.max_cstate=1"
Save and close the file
Close the file manager window

Type into the terminal

sudo update-grub
Let it run it's course
sudo reboot
All going well you should not experience any random system freezes

^2 Wifi driver install for version 17.10 or earlier.

Open up the terminal and type in the following commands (or you could copy and paste them)

cd /tmp
wget https://android.googlesource.com/platform/hardware/broadcom/wlan/+archive/master/bcmdhd/firmware/bcm43341.tar.gz
tar xf bcm43341.tar.gz
sudo mkdir -p /lib/firmware/brcm/
sudo cp fw_bcm43341.bin /lib/firmware/brcm/brcmfmac43340-sdio.bin
sudo mount -t efivarfs efivarfs /sys/firmware/efi/efivars
sudo cp /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 /lib/firmware/brcm/brcmfmac43340-sdio.txt
reboot

^3 Micro SD Card Reader fix for version 17.10 or earlier.

Open the text editor and type the following text (as shown) into it

# Adjustment to make micro SD card reader work
  options sdhci debug_quirks=0x8000
Save the file as "sdhci.conf" on the desktop

Open up the terminal and type in the following command

sudo thunar
Move the "sdhci.conf" file from the desktop to the directory "/etc/modprobe.d"
Close the file manager window

Type into the terminal

sudo update-initramfs -u -k all
Let it run it's course
sudo reboot

^4 Wifi stability fix for version 17.10 or earlier.

Open the text editor and type the following text into it

blacklist btsdio
Save the file as "fix-wifi.conf" on the desktop

Open up the terminal and type in the following command

sudo thunar
Move the "fix-wifi.conf" file from the desktop to the directory "/etc/modprobe.d"
Close the file manager window

Type into the terminal

sudo update-initramfs -u -k all
Let it run it's course
sudo reboot
All going well your Micro SD card reader should now be working and the Wifi should not be working erratically

Note: As of the posting of this "how to" the laptops Bluetooth and sound are not supported and will not work, if you need either of them you will need a USB dongle.


How do I make my USB DVD drive show up when I run a windows XP program on virtualbox?

In VirtualBox click on the settings for the VM you are using.  Then under storage, select the physical drive that you are going to use.  Then select the checkbox for Passthrough that will allow the drive to work in both the VM and the host OS.

Hope this helps!


Try running

sudo apt-get install software-properties-common

You may also need to run either

sudo apt-get install python3-software-properties

or

sudo apt-get install python-software-properties

Hope that helps.


If you want Ubuntu MATE 15.10, you can just upgrade to that. You don't need to reinstall. Even if you have the normal Ubuntu 14.04 now, you can install MATE over what you have.

To upgrade from an LTS release (I'm assuming you're using 14.04 and not 14.10), you need to let Ubuntu check for any new release to upgrade to instead of just LTS releases. Open the Update Manager app by searching for it. Once that opens, click the Settings... button in the bottom left corner. Go to the Updates tab and change Notify me of a new Ubuntu version: from For long-term support versions to For any new version. Now, press the Close button and put in your password.

Back in the Update Manager app, press the Check button and let it check for new updates. Once that finishes, press Install Updates, put in your password, and let the updates install. You may need to reboot. If that is the case, do it and open the Update Manager app again.

Now, press the Upgrade button near the top right, next to the message saying "New Ubuntu release '**.**' is available". Your computer should start the upgrade to 15.10. There are some menus you will have to click through during the upgrade process, so don't start it and leave.

If you need images, here is a guide for upgrading 12.04 to 12.10. The steps should still apply: https://www.howtoforge.com/how-to-upgrade-ubuntu-12.04-lts-precise-pangolin-to-12.10-quantal-quetzal-desktop-and-server

Now, once you are in 15.10, you need to install the MATE desktop environment, assuming you're not currently using MATE. To do that, open a terminal (Ctrl + Alt + T) and run sudo apt-get install mate-desktop-environment.

After this, you should be done, and using 15.10 MATE.

If you still want to go the USB method:
It sounds like you're in the BIOS setup, trying to change the boot priority and put the USB stick first. That is unnecessary. Instead, you can just press the key to get into the boot menu and select the USB stick from there. Since you didn't provide much about even which version of Ubuntu you want, I can't tell you what that key is. For most computers, it is F12, but that can vary a lot.


How can I get python stack trace information using GDB?

Here's the problem: to have access to debugging symbols in GDB, you must invoke a different binary: "python-dbg" instead of "python" (found this in /usr/share/doc/python2.7-dbg/README.debug).


pulseview doesn't run (undefined symbol)

the error you're getting is because the PulseView you installed using apt is incompatible with the libsigrokcxx.so that you have installed. sigrok-cli doesn't use it, so it doesn't complain.

Generally, we don't recommend building from source if all you want is the latest build. If that's all you want, use the AppImage: https://sigrok.org/wiki/Downloads#Linux_AppImage_binaries


IMO the best open source option is pocket sphinx. It is in the repositories

https://launchpad.net/ubuntu/+source/pocketsphinx

http://packages.ubuntu.com/precise/pocketsphinx-utils

http://cmusphinx.sourceforge.net/

Unfortunately the commercial options are better in that the have larger and more specialized dictionaries and more features.


file: symbol lookup error: file: undefined symbol: magic_setparam

You should remove locally installed/compiled version of libmagic with

sudo rm /usr/local/lib/libmagic.so.1

and then call file again.


I found a PEG/PCI toggle option in the BIOS which seemed to switch which PCI-Express slot was used at boot.


Create checksum sha256 of all files and directories?

You can use find to find all files in the directory tree, and let it run sha256sum. The following command line will create checksums for the files in the current directory and its subdirectories.

find . -type f -exec sha256sum {} \;

I don't use the options -b and -t, but if you wish, you can use -b for all files. The only difference that I notice is the asterisk in front of each file name.


The ppa was was apparently not ready at the time of my upgrade.
So installing Sigil is exactly as for 13.04

sudo add-apt-repository ppa:sunab/sigil-git
sudo apt-get update
sudo apt-get install sigil


Are you looking to use a USB?

Use GParted (On the Software Center) to format a 2+ GB USB to FAT32
Use Startup Disk Creator (Already Installed) to create a bootable install disk using the 12.04 i386 ISO from the download page.
Grab it here: http://releases.ubuntu.com/12.04/ubuntu-12.04.5-desktop-i386.iso
Boot it and install!

You probably won't be able to keep your settings from 14.04, though.


Can I install xscreensaver on Ubuntu MATE 64-bit?

Never mind. I have found-out that the message threatening to remove the desktop could be safely ignored. "Xscreensaver" could be installed and used (at least in Xubuntu) with no problems while your desktop is going to remain intact. Just make sure to install all the add-ons to enable functionality you want.


Somehow ended up on Kernel 4.10 Ubuntu 16.04

All you need to know is here.

In particular, you will be automatically upgraded to 4.13 in February, and to 4.15 in August.

Regarding the Meltdown paches for 4.10 in 16.04, it seems it will not be patched (because it comes from 17.04 and Canonical decided to not patch 17.04 since it will be EOL soon). Thus, unless Canonical decides to hasten the upgrade to 4.13, it gives a window of about a month during which you will remain on an unpatched kernel. If this is indeed the case, you can temporarily revert to the original 4.4, which will be patched (if it is not installed on your system, install the package linux-generic).


Error deployment of project via deploy.sh script

The problem was in exec bundle file. I have a comments. After replace all works fine.


User account no longer exists, unable to login to Ubuntu 12.10

The system, for whatever reason, is borked.

No matter, you only want to get your data back.

There's not enough information given on what happened to diagnose what went wrong, and it could be many things.

You said it's an external drive.

Startup your main system, on your internal drive, or a live usb stick or live cd, and copy the data from your external drive to somewhere else safe, a network location or perhaps a pen drive.

The file system will likely be ext3, which you can mount with any linux.

All your own data will be in folder /home/your-user-name

Don't for get to copy the files and directories beginning with . in your home folder, which might have things you want to keep like your firefox profiles.

Once you have your data safe, you can perhaps install a clean system on the external drive to get a (newer) version of ubuntu back, then copy back your data.


i2c_designware seems to have problems during shutdown

The problem seems to be less likely to power-off correctly if I restart, rather than power down, from windows; boot into ubuntu, and then power off or reboot as desired / required from Ubuntu - if I've restarted from Windows it seems to be able to power off from Ubuntu.

I have some suspicions about Windows setting things weirdly if it's in the middle of updating software, so I'd make sure there are no windows updates going on as well if you're having the problem.


"This is happening on all browsers."

Well, that probably means one of three things:

Your DNS is not configured correctly. Try setting your primary DNS to 8.8.8.8 and your secondary DNS to 8.8.4.4
It's the website's problem, not yours - You can test for this by using a different computer to browse to that website at a coffee shop or some other place with free internet. If you have the same problem, then you should contact the webmaster of the website and alert them to the issue.
Your ISP is doing something sketchy (or something else not very obvious) - You can test for this by doing the same as the above. If you are able to get through to the website, then either your ISP is doing something sketchy, or the problem is being caused by something else that isn't very obvious.


I have an HP Pavilion dv6 A1U58AV and the headphone jack does not work

First of all, lets keep it Ubuntu related ;) and second that means your plugin in the wrong aux port:) their are many times two audio ports, and only one will work with most headphones, also certain headphone aren't compatable


Wireless disconnects after a few minutes on Ubuntu 14.04

After trying hundred suggestions I saw in forums, as disabling N-mode, without success. Finally, I discovered it seems to be problem of my router. I had set channel 6 on the router. Since I set router channel to auto, problem fixed.


I had trouble with the same type of system.  What finally got me working was to disable the acceleration support in the nouveau driver.  Via sudo, I edited /etc/defaults/grub so that:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Became:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.noaccel=1"

And then:

sudo update-grub

I restarted the machine, and the graphics issues were resolved.  Admittedly, I'm disabling the acceleration support - but I'd rather have slow correct graphics than fast incorrect ones.

In my case, the issue was that I'd have color corruption (in some cases, full white out) on icons and in terminals.  At first I tried disabling the display compositing (Settings Manager -> Window Manager Tweaks -> Compositor).  That helped a bit, but I still saw numerous issues.

I attempted to figure a way to install the nvidia driver, but my understanding is that I need the 96.43 one.  The .run file from nvidia doesn't work for newer kernels, and I gave up on that approach after a while.  I attempted to find a repository with a recent 96.43 package, but had no luck.  My guess is that folks have better things to do with their time than update packages for drivers that support cards that are roughly a decade old...

Along the way, though, I had noticed that rdesktop had no display problems.  I figured that the code there likely wasn't calling for acceleration, so I figured it was worth trying to disable it.


error: could not create '/usr/local/lib/python2.7/dist-packages/scraperwiki': Permission denied

I would recommend you to use pip to install scraperwiki with the --user option so that the package is installed in ~/.local/lib/python2.7/site-packages instead of /usr/local/lib/python2.7/dist-packages:

pip install --user scraperwiki

This way, you don't have to run the command with sudo because otherwise you would need sudo to install into /usr/local/lib/python2.7/dist-packages; this is why you got an error about permissions.

Note that if you have a newer version of pip (1.5.6 and above), pip install scraperwiki would have defaulted to pip install --user scraperwiki because of this patch.


how can I assign routing tables to interfaces which are configured via dhcp

You can use ip route command, but changes won't persist after reboot. If you want to make your changes persistent use netplan. netplan examples
There are examples how to set static routes.


How to install the YaCy web search engine

This is how I got it working:

Go to this web page: https://yacy.net/
On the upper side of your screen you can see "Download" and from there download the "YaCy for GNU/Linux"
After you download the archive extract it to your preferred location open the extracted folder "yacy" now here you can see "./startYACY.sh" file the easiest way to run this is just to open terminal and drag and drop this file into it and press enter. It will tell you that
"YaCy started as daemon process. Administration" and an HTTP address just copy the address and paste it into the web browser
And one more thing for this search engine to run you will need java, you can find it in the software center I installed "OpenJDK Java 7 Runtime" but as far as I can know it will run on 6 as well.

All this can be done by running in a terminal:
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get install -y openjdk-8-jre-headless
wget http://latest.yacy.net/yacy_v1.922_20191013_9964.tar.gz
tar xfz yacy_v1.922_20191013_9964.tar.gz
cd yacy
./startYACY.sh

Then open http://localhost:8090 in your web-browser.
Good luck


Can't login, kde loads, then back to kdm

Try removing the kde configurations for the user by moving the .kde directory in the users home directory to a different name and see if you can then log in.

Often these problems are incompatibilities or something that is reminiscent from a crash that causes such problems.


Next to correctly mounting your drive, you also need to set the desired ownership and permissions. Drives that are automatically mounted during startup (i.e., included in the configuration file /etc/fstab) are by default owned by the administrator ("root"). Depending on default permissions of the system, other users will have read access only, or may have no access at all.
It is normal (and actually desired) that you do not see the drive 'as such' in Files. In linux, you can link any storage from within the home folder. Thus, from the user's perspective, all storage is neatly in his home. It is only the administrator that needs to be aware that, in reality, the storage is under /hdd (in your case).
Changing ownership
You can change the ownership of the mount point (/hdd) to give the entire mounted partition to a user. You can also assign subfolders of /hdd, that means folders on the mounted drive, to a user or to different users.
To change the ownership of the mount point, use a command like:
sudo chown <user>:<group> /hdd

Substitute the login name of the user and the group that needs to be owner. On Ubuntu, each user also belongs to a group of the same name, so  may then be the same login.
Changing permissions
After changing the ownership, there will be no need to change permissions. Each folder has permissions ("read", "write" and "execute"). By default, owner and group have all permissions, "others" can read and execute, but not write.
Linking your folders
Indeed, you can move the data folder to the hard drive, and replace them with a symbolic link that points to the new location. From a user perspective and for practical purposes, such a link acts and feels like a real folder.


привет!

Loads of mouses and other input devices work out-of-box. So just go on and try it out. I cannot see why it shouldn't work right away.

Obviously "TurboBoost" works under Ubuntu. There is no way, though, to verify this. At least, I do not know of any.

Успехов!


Canon MG4150 wireless Printer won't add to Ubuntu 17.10

Try to configure your printer via cups' webinterface:

http://localhost:631

Also you could check your systems python version, possibly several versions are installed.


How to install ethernet driver on Ubuntu 10.04 LTS with working wireless connection?

You're hit by bug #927782. This is fairly new hardware and Ubuntu will not bring support for this in 10.04. Consider upgrading to 12.04 and then the following:

Try installing compat-wireless backported kernel modules (yes, wireless, don't ask why) by installing the package linux-backports-modules-cw-3.6-precise-generic:

sudo apt-get install linux-backports-modules-cw-3.6-precise-generic

and reboot.

This package contains updated (backported) drivers (kernel modules) from Linux 3.6 for the 3.2 kernel in 12.04.


You will have to install gnome-session-flashback to get that:

sudo apt-get install gnome-session-flashback

At the login screen, select "GNOME FLashback".

See these links for more info:

How-to Geek
OMG! Ubuntu
Web Upd8


GTK3 theme: Where are these colours located in css

In the meantime I have found the answers. The first is in .menuitem.separator , in the theme's css, and the last two are in gEdit's .xml colour settings file, names are right-margin and line-numbers.


How do I install a different version of subversion on Lubuntu?

It seems that you want the Saucy version to be installed on a Precise system.

The only possible way to do that is to manually install the corresponding Debian packages:

subversion
libsvn1

And from the folder where you downloaded these two files:

sudo dpkg -i libsvn1 subversion