I am suffering at prolem 1 as well but there is the plugin called 'Slide for Keyboard' available and this solves the problem partially.
If activated, this plugin causes the keyboard to appear when doing an edge slide from the bottom of the screen.
Here is the link:
https://extensions.gnome.org/extension/993/slide-for-keyboard/

You may want another keyboard layout for vertical view. You can define your own keyboard layout using XML for that.
Take a look at the directory
/usr/share/caribou/layouts

Use the same XML Syntax as in some already existing layouts.
I use a German layout and my config for vertical keyboard looks like this:

<?xml version="1.0"?>
<layout xmlns:xi="http://www.w3.org/2001/XInclude">
  <level mode="default" name="level1" xml:base="common/qwerty.xml">
    <row>
      <key name="Escape"/>
      <key name="q"/>
      <key name="w"/>
      <key name="e">
        <key name="e"/>
        <key name="egrave"/>
        <key name="eacute"/>
        <key name="ecircumflex"/>
        <key name="ediaeresis"/>
        <key name="emacron"/>
      </key>
      <key name="r"/>
      <key name="t"/>
      <key name="z"/>
      <key name="u">
        <key name="u"/>
        <key name="ugrave"/>
        <key name="uacute"/>
        <key name="ucircumflex"/>
        <key name="udiaeresis"/>
        <key name="umacron"/>
      </key>
      <key name="i">
        <key name="i"/>
        <key name="igrave"/>
        <key name="iacute"/>
        <key name="icircumflex"/>
        <key name="idiaeresis"/>
        <key name="imacron"/>
      </key>
      <key name="o">
        <key name="o"/>
        <key name="ograve"/>
        <key name="oacute"/>
        <key name="ocircumflex"/>
        <key name="odiaeresis"/>
        <key name="omacron"/>
      </key>
      <key name="p"/>
      <key name="BackSpace" repeatable="yes"/>
    </row>
    <row align="right">
      <key name="Tab" width="1.5"/>
      <key name="a">
        <key name="a"/>
        <key name="agrave"/>
        <key name="aacute"/>
        <key name="acircumflex"/>
        <key name="adiaeresis"/>
        <key name="aring"/>
        <key name="atilde"/>
        <key name="ae"/>
        <key name="amacron"/>
      </key>
      <key name="s"/>
      <key name="d"/>
      <key name="f"/>
      <key name="g"/>
      <key name="h"/>
      <key name="j"/>
      <key name="k"/>
      <key name="l"/>
      <key name="Return" width="1.5"/>
    </row>
    <row>
      <key name="Caribou_ShiftUp" toggle="level2" width="1.5"/>
      <key name="y"/>
      <key name="x"/>
      <key name="c">
        <key name="c"/>
        <key name="ccedilla"/>
      </key>
      <key name="v"/>
      <key name="b"/>
      <key name="n"/>
      <key name="m"/>
      <key name="comma"/>
      <key name="period"/>
      <key name="question"/>
    </row>
    <row>
      <key align="left" name="Caribou_Symbols" toggle="symbols1" width="2.0"/>
      <key align="left" name="Control_L" width="1.5"/>
      <key align="left" name="Alt_L" width="1.5"/>
      <key align="left" name="space" width="5.0" repeatable="yes"/>
      <key align="right" name="Caribou_Prefs"/>
    </row>
  </level>
  <level mode="latched" name="level2" xml:base="common/qwerty.xml">
    <row>
      <key name="Escape"/>
      <key name="Q"/>
      <key name="W"/>
      <key name="E">
        <key name="E"/>
        <key name="Egrave"/>
        <key name="Eacute"/>
        <key name="Ecircumflex"/>
        <key name="Ediaeresis"/>
        <key name="Emacron"/>
      </key>
      <key name="R"/>
      <key name="T"/>
      <key name="Z"/>
      <key name="U">
        <key name="U"/>
        <key name="Ugrave"/>
        <key name="Uacute"/>
        <key name="Ucircumflex"/>
        <key name="Udiaeresis"/>
        <key name="Umacron"/>
      </key>
      <key name="I">
        <key name="I"/>
        <key name="Igrave"/>
        <key name="Iacute"/>
        <key name="Icircumflex"/>
        <key name="Idiaeresis"/>
        <key name="Imacron"/>
      </key>
      <key name="O">
        <key name="O"/>
        <key name="Ograve"/>
        <key name="Oacute"/>
        <key name="Ocircumflex"/>
        <key name="Odiaeresis"/>
        <key name="Omacron"/>
      </key>
      <key name="P"/>
      <key name="BackSpace" repeatable="yes"/>
    </row>
    <row align="right">
      <key name="Tab" width="1.5"/>
      <key name="A">
        <key name="A"/>
        <key name="Agrave"/>
        <key name="Aacute"/>
        <key name="Acircumflex"/>
        <key name="Adiaeresis"/>
        <key name="Aring"/>
        <key name="Atilde"/>
        <key name="Ae"/>
        <key name="Amacron"/>
      </key>
      <key name="S"/>
      <key name="D"/>
      <key name="F"/>
      <key name="G"/>
      <key name="H"/>
      <key name="J"/>
      <key name="K"/>
      <key name="L"/>
      <key name="Return" width="1.5"/>
    </row>
    <row>
      <key name="Caribou_ShiftDown" toggle="level1" width="1.5"/>
      <key name="Y"/>
      <key name="X"/>
      <key name="C">
        <key name="C"/>
        <key name="Ccedilla"/>
      </key>
      <key name="V"/>
      <key name="B"/>
      <key name="N"/>
      <key name="M"/>
      <key name="comma"/>
      <key name="period"/>
      <key name="question"/>
    </row>
    <row>
      <key align="left" name="Caribou_Symbols" toggle="symbols1" width="2.0"/>
      <key align="left" name="Control_L" width="1.5"/>
      <key align="left" name="Alt_L" width="1.5"/>
      <key align="left" name="space" width="5.0" repeatable="yes"/>
      <key align="right" name="Caribou_Prefs"/>
    </row>
  </level>
  <level mode="locked" name="symbols1" xml:base="common/symbols.xml">
    <row>
      <key name="Escape"/>
      <key name="1"/>
      <key name="2"/>
      <key name="3"/>
      <key name="4"/>
      <key name="5"/>
      <key name="6"/>
      <key name="7"/>
      <key name="8"/>
      <key name="9"/>
      <key name="0"/>
      <key name="BackSpace" repeatable="yes"/>
    </row>
    <row align="right">
      <key name="Tab" width="1.5"/>
      <key name="minus"/>
      <key name="slash"/>
      <key name="colon"/>
      <key name="semicolon"/>
      <key name="parenleft"/>
      <key name="parenright"/>
      <key name="ampersand"/>
      <key name="at"/>
      <key name="grave"/>
      <key name="Return" width="1.5"/>
    </row>
    <row>
      <key name="Caribou_Symbols_More" toggle="symbols2" width="2.0"/>
      <key name="period" width="1.2"/>
      <key name="comma" width="1.2"/>
      <key name="question" width="1.2">
        <key name="question"/>
        <key name="questiondown"/>
      </key>
      <key name="exclam" width="1.2">
        <key name="exclam"/>
        <key name="exclamdown"/>
      </key>
      <key name="apostrophe" width="1.2"/>
      <key name="quotedbl" width="1.2"/>
    </row>
    <row>
      <key align="left" name="Caribou_Alpha" toggle="default" width="2.0"/>
      <key align="left" name="Control_L" width="1.5"/>
      <key align="left" name="Alt_L" width="1.5"/>
      <key align="left" name="space" width="5.0" repeatable="yes"/>
      <key align="right" name="Caribou_Prefs"/>
    </row>
  </level>
  <level mode="locked" name="symbols2" xml:base="common/symbols.xml">
    <row>
      <key name="Escape"/>
      <key name="bracketleft"/>
      <key name="bracketright"/>
      <key name="braceleft"/>
      <key name="braceright"/>
      <key name="numbersign"/>
      <key name="percent"/>
      <key name="asciicircum"/>
      <key name="asterisk"/>
      <key name="plus"/>
      <key name="equal"/>
      <key name="BackSpace" repeatable="yes"/>
    </row>
    <row align="right">
      <key name="Tab" width="1.5"/>
      <key align="right" name="underscore"/>
      <key name="backslash"/>
      <key name="bar"/>
      <key name="asciitilde"/>
      <key name="less"/>
      <key name="greater"/>
      <key name="dollar"/>
      <key name="EuroSign"/>
      <key name="sterling"/>
      <key name="Return" width="1.5"/>
    </row>
    <row>
      <key name="Caribou_Symbols" toggle="symbols1" width="2.0"/>
      <key name="period" width="1.2"/>
      <key name="comma" width="1.2"/>
      <key name="question" width="1.2">
        <key name="question"/>
        <key name="questiondown"/>
      </key>
      <key name="exclam" width="1.2">
        <key name="exclam"/>
        <key name="exclamdown"/>
      </key>
      <key name="apostrophe" width="1.2"/>
      <key name="quotedbl" width="1.2"/>
    </row>
    <row>
      <key align="left" name="Caribou_Alpha" toggle="default" width="2.0"/>
      <key align="left" name="Control_L" width="1.5"/>
      <key align="left" name="Alt_L" width="1.5"/>
      <key align="left" name="space" width="5.0" repeatable="yes"/>
      <key align="right" name="Caribou_Prefs"/>
    </row>
  </level>
</layout>

I just removed a few mostly unused keys.

Then trigger the following script on vertical (left or right) rotation:

gsettings set org.gnome.shell.keyboard keyboard-type <your-keyboard-layout-name>

And trigger the same script with the normal layout for normal and inverted rotation.

For problem 2, write a script to toggle the keyboard first.
The script shall look like this:

#!/bin/bash
device='AT Translated Set 2 keyboard'
oldstate=$(xinput list-props "$device" | grep 'Device Enabled' | rev | cut -b 1)
newstate=1
if [ "$oldstate" = "1" ]; then
    newstate=0;
fi
xinput set-prop "$device" 'Device Enabled' "$newstate"

While 'AT Translated Set 2 keyboard' is the name of the keyboard.
Yours might have a similar name. Search for it with the command

xinput list | grep keyboard

and try to disable and reenable the printed devices.
(Install 'Slide for Keyboard' first so you're still able to type in the command line)

You should put this script either on a hotkey or as a launcher in your applications list because you might not be able to reenable the keyboard if the script is on a keyboard shortcut.


HDMI audio on default alsa device in xubuntu

Solved!

I've created file /etc/asound.conf in this way:

defaults.pcm.card 1
defaults.pcm.device 7
defaults.ctl.card 1

and rebooted the system.

remember: in my case "1" is the card number and "7" is device number found in aplay -l output.

Case. Closed.

See ya!


Launch System → Preferences → Keyboard Shortcuts
Locate the line that says "Launch help browser"
Click where it says "F1"
Hit the Backspace key.
It should now say "Disabled"


Is there a COMPLETE tutorial for upgrading for dummies?

The easiest way is to actually just make a backup image of your entire Ubuntu partition. This way if anything goes wrong you have a perfect backup you can restore from to get back to square one. What I recommend:

Boot from a LiveCD/USB of Ubuntu
Plug an External HardDrive in that has more FreeSpace than the size of your Ubuntu partition.
Open "Disc Utility" and find your Ubuntu partition, take note of it's location (ex: /dev/sda2)
Open a Terminal Window and perform the following command(Replace Brackets with needed info):

sudo dd if=/dev/[UBUNTU PARTITION LOCATION] of=/media/[EXTERNAL DRIVE]/UbuntuBackup.dd bs=1M

Now just wait for it to finish copying the partition. This will take awhile but you can check progress by opening Nautilus and checking on 'UbuntuBackup.dd's file size.
Now that you've  Backed up Everything, Boot into your Ubuntu and you can do the lengthy process of upgrading to 12.10 by changing Update Manager's Settings so it checks for any new version.


How does Ubuntu Desktop differ from Laptop

After reading the manufacturer guidline of compatibility, I realized the problem was that my SSD on desktop is 1TB and for most of the laptops nowadays don't support up to 512 GB SSD ( you can add 512*2 for two SATAs).


I assume that you want to type from right to left ?! Right ?!

Well, there are two methods:

A) Complete new Ubuntu Installation into Arabian-Language with Arabian keyboard and Hardware purchased at airport in Dubai.

;o)

B) Here is the link to add new fonts for libreoffice (you simply need to add fonts in gimp):

How to add new fonts to gimp?

Happy coding and writing and a nice winter-time to you.


It seems you have a good reason to keep a drive encrypted.

Use a high quality password/passphrase, that you can remember.
Please set up a routine with frequent backups (and test that it works to recover the system). The backup can be both encrypted and unencrypted. If you keep the drive for backup in a safe place, it could be OK with unencrypted backup, which makes it easier to recover.

There is no back door, if something goes wrong with the encrypted drive. Then you must rely on the backup.


Your GeForce GT630 have less than 64 SM Cores
MapSMtoCores for SM 2.1 is undefined.  Default to use 64 Cores/SM
Had the same problem with my 310 witch owns only 48 cores. With cuda 9.0 the compilation of the program runs fine but generates errors and the execution is not possible because your card doesn't owns 64 cores. You should go back to cuda 8.0 https://developer.nvidia.com/cuda-toolkit-archive
and install it from a local installer so you don't go back to cuda 9.0 when you will upgrade your system... If you need cuda 9.0 you will have to buy a new nvidia card with a minimum of 64 cores/SM

Hope it can help


One possible approach would be to use cat:

$ cat example1 example 2 > output

or

$ cat example* > output

This will join any two files together - not sure what it will do to the ID3 metadata though.


Screen turning off when idle even with power settings disabled

This is from another answer I posted recently. You may not need the Login screen section.

Terminal CLI method

To prevent screen from turning off you need two settings, one under battery power the other when plugged into wall outlet (A/C).

For battery timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout <time_in_seconds>

For AC timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout <time_in_seconds>

So for both Battery and A/C set the time to 0 (never).

For Login screen:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Disable dimming screen when idle:

In Unix & Linux someone complained when on battery screen dims every 20 seconds and wants to turn that feature off:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim false


Will my server reboot itself if the memory fills up?

In case your machine runs out of memory for the processes, the kernel's Out-of-Memory-killer (also known as OOM killer) kicks in.

It will hard-kill processes based on a certain algorithm, by providing scores. Your syslog/dmesg will then list entries like:

[11686.043641] Out of memory: Kill process 2603 (flasherav) score 761 or sacrifice child
[11686.043647] Killed process 2603 (flasherav) total-vm:1498536kB, anon-rss:721784kB, file-rss:4228kB

While the processes are killed, you'll have to install monitoring on the server to get notified, such as logcheck .

For services (daemons) you can tell Upstart you respawn the process for you. You can also set adjustments for the OOM-score in Upstart: How to set OOM killer adjustments for daemons permanently?


To install Nvidia Drivers:
You can use Software & Updates application where you have to just navigate to Additional Drivers section where you will see something like this

Just select the appropriate version of nvidia driver and click on apply changes after installing the drivers you might need to restart your pc.
Alternatively, you can install using third party ppa using following commands:
sudo add-apt-repository ppa:graphics-drivers
sudo apt update
sudo apt install nvidia-driver-390

If you'd like to check available versions of nvidia drivers just press the Tab button after typing the following command:
sudo apt install nvidia-driver-

Note: To check if the nvidia drivers are installed or not you can run the following command and you'll see something like this
nvidia-smi

Happy Ubuntu!


Python through command terminal, creating functions?

Creating functions using the CLI is very similar to creating functions in scripts. Type your function name and arguments on the first line and append a colon. After that the Pyhton interpreter asks for further input. Now you have to indent the next code you want write in the function body. You finish the function the a blank line.

It should look like:

>>> def fun(a,b):
...     print a,b
...
>>>


There is a terminal emulator app being deloped: https://wiki.ubuntu.com/Touch/CoreApps/Terminal

And: at least on the touch developer preview I am running, there is bash installed (that is accessible via ssh) and I can run apt-get


How to configure path or set environment variables for installation?

The GSL include and library environments are provided in this case by the gsl-config program (which is a kind of mini pkg-config specifically for GSL) e.g.

$ gsl-config --cflags --libs
-I/usr/include
-L/usr/lib -lgsl -lgslcblas -lm

The gsl-config program is provided by package libgsl0-dev so the error is telling you that you need to install that package.


It sounds like your FDE is still working. Instead of the graphical interface for your encryption password prompt, you're being asked on the terminal. That's not an issue.

Gparted doesn't really support LUKS partitions. The red exclamation you see by the partition is associated with the following warning message.

If you have FDE, you wouldn't be able to log into your system, much less run gparted unless your root partition was decrypted and mounted. If you're booted in, your in working order.

You can run gnome-disks and see LUKS partitions that are unlocked and mounted there. If you're not using LVM, you'll see something like this...

If you are using LVM, the LUKS partition will show as above, but the individual logical volumes in the physical volume (which is directly encrypted with LUKS) will show as block devices toward the bottom of the list in the left column where drives are listed. Clicking on these block devices will show where they are mounted.


No disk space after installing Ubuntu Server

No, it is your root ( / ) filesystem that is full because you only allocated 2.6 GB to it.  Since you set up lvm, and I'm assuming you used the recommended ext4 filesystem, you can do this fairly easily with:

sudo lvresize -L +10g unicorn-vg/root
sudo resize2fs /dev/unicorn-vg/root


dpkg: error processing package linux-image

$ cat /etc/default/grub
grub# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

grub.cfg is malformed. "grub#" should just be "#". Edit the file with sudo gedit /etc/default/grub and remove the first 4 characters. After you have done that run sudo update-grub and then sudo apt-get -f install

W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ trusty/partner amd64 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_trusty_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ trusty/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_trusty_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

grep -rH partner /etc/apt/sources* shows that you have the partner repository enabled in /etc/apt/sources.list and /etc/apt/sources.list.d/canonical_partner.list. It only needs to be enabled once so to fix it do sudo rm -f /etc/apt/sources.list.d/canonical_partner.list then sudo apt-get update.


Is using vi to view log files in PROD servers not recommended?

There's nothing inherently wrong with using vi (or vim) as a viewer only, if you are disciplined enough not to accidentally write to the file.

If you accidentally write to a log file you may lose any new log file entries made since you opened it (although vim may in some cases warn you of this).  You may also lose data due to confusion when the log file rotates.  Log file rotation is a process where the old logfile's filename is automatically changed (or deleted, or compressed) and a new logfile is started.

An alternative to vim that is only a viewer (cannot edit) is less - and it has vim-like controls too for scrolling and searching.  I find it a good program for viewing log files, or lists in general such as lengthy output of commands, because of its vim-like controls and search ability.
Another good alternative is tail because it allows you to view just the last portion of the file, and has a follow mode which can stay active and display additional content as it's added to the log file.  It's also aware of log rotation so it can keep displaying new entries after a log file rotation.  To use the rotation-aware follow mode you use tail -F mylogfile.log and you can stop it with just Ctrl+C.


I has solved the problem that you met. Because the database has some dependencies, it is hard to install the database with a usual way. You need to install the database according to the following guidelines.

1. Install berkeley-db

Please install the berkeley-db with the commands as follows :

$ wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
$ unzip db-4.8.30.zip
$ cd db-4.8.30/
$ cd build_unix/
$ ../dist/configure --prefix=/usr/local --enable-cxx
$ make -j12
$ make install
$ sudo make install

The above commands enable to install the libraries that the following bsddb3 needs.

2. Install bsddb3-6.26 :

$ wget https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz
$ tar -xvzf bsddb3-6.2.6.tar.gz
$ cd bsddb3-6.2.6/
$ python setup.py install --berkeley-db=/usr/local/

After completing the installation, it will show the following message.
Processing dependencies for bsddb3==6.2.6
Finished processing dependencies for bsddb3==6.2.6.

Cheers,

Mike


I converted a few wmv files to mp4 and I want to compare if the duration of the files are same but I need help

As suggested by @muru
find -wholename './*/*.wmv' -exec bash -c '[[ $(exiftool -Duration "$1") == $(exiftool -Duration "${1%.*}.mp4") ]] && echo "Equal" || echo "Not equal $1"' _ {} \;
works perfectly


From the above screenshot, it was clearly shown that your Ubuntu OS is installed in /dev/sda5 logical partition.

So don't touch your extended partition while reinstalling your Windows.Just format your /dev/sda2 ntfs partition and reinstall Windows on it by choosing the custom option during Windows installation.


desktop not getting keyboard focus after upgrade to 11.10

Changing permissions could help for renaming files.


I had the problem because I selected "Generic 150-key (Intl) PC" as my Keyboard model.

Goto settings-->keyboard
Goto tab "Layout"
Uncheck "Use system defaults"
Choose Keyboard model "Generic 104-key PC"
Choose Keyboard layout "English (US, international with dead keys)"

It works now, look: äüïíì. The Euro sign (€) is available with the combination "Alt Gr + 5". You may have to log-out and in again to apply the settings.

(Quoted myself from Chrome not accepting US international with dead keys keyboard 14.04)


Windographer installed with no errors but won't run under wine

Wine is not showing the program crash. I have that too.
Play on Linux might help but really there is not much to do. Some programs work on wine some don't. There is no specifique way of repairing that. Could you please tell us what program it is you are trying to run ?

If you really need to run that program then you have always got the choice of using a virtual machine inside your primary os (for you mate 15.04). The easiest way is to download virtual box or do it per command line

sudo apt-get install virtualbox

You could also dual boot into Windows. This would be easier to explain per video. Just search it up on youtube.

Since wine is crashing you also should make sure to save your documents... anything which is open. Wine crashed on me and I lost unsaved data.

Sorry for the inconvenience
hope this helped.


Ubuntu 18.04 LTS - Wifi not works properly

This sounds like a possible hardware problem. I would recommend using a separate wifi solution, such as a USB wifi adapter, to see if you run into the same problem with that device.


Unable to connect bose soundlink AE2 headphones

Another way may help:

install blueman sudo apt-get install blueman;
connect the headphone using blueman;
remove blue once the headphone is connected successfully, sudo apt-get purge --remove blueman.


In case someone stumbles over this, as I did.

I changed the Display-settings in Virtualbox (Win7 guest) from the recommended "VBoxSVGA" to the deprecated "VBoxVGA" (now when I start the machinge, I get a warning) - now the game starts


OK after me and Matthew conspired (see below) the following was done:

I had an onboard video (via the i5), stripped out the GTX550 and reinstalled linux.

Once linux was installed, I then had to install the ubuntu desktop:

sudo apt-get update
sudo apt-get install ubuntu-desktop

Then the machine was shutdown and the GTX 550 reinstated.

I then booted the machine with quiet splash nomodeset.

This step might be skippable, but this is the order I did it in. I downloaded the NVIDIA proprietary drivers as recommended by Matthew and installed in the same way.

I then rebooted again, and again booted with quiet splash nomodeset.

I then went to the additional drivers section and used this to install the current NVIDIA drivers and rebooted.

There ends my afternoon and evening of building and installing Ubuntu 12.04 on a newly built desktop to become my media server.


Installing Ubuntu from a Flash Drive Using Refit

You can use a program like Unetbootin to make a bootable pendrive with a *.iso file of your election. You need just a pendrive with enough storage and to configure your motherboard to boot from USB.


docker image build command fails with "(Client.Timeout exceeded while awaiting headers)"

After a much trail and error and lot of googling... finally I was able to make docker work behind my office VPN.

And for the benefit of people who might be facing issue similar to mine, below are the steps I performed to resolve the issue:

Three different places where I had modified the proxy value and that got the issue fixed.

/etc/systemd/system/docker.service.d/http-proxy.conf Check if this file exists in your setup, and if it does not create this file and perform below steps:

Open the file and add below statements in it and save:

[Service]
Environment="HTTP_PROXY=http://proxyHost:proxyPort"
Environment="HTTPS_PROXY=http://proxyHost:proxyPort"
Environment="NO_PROXY=localhost,127.0.0.1"

Flush the above changes by running below command:

sudo systemctl daemon-reload

Verify that the above changes have been taken affect by running the command below. This should print the Environment variable value:

sudo system ctl show --property Environment docker

Once you successfully verify that the variable is set, restart the docker service by running below command:

sudo systemctl restart docker

~/.docker/config.json: Add the json property shown below to the existing properties in the file.

    "proxies": {
      "defaults": {
        "httpProxy":"http://proxyHost:proxyPort",
        "httpsProxy":"http://proxyHost:proxyPort"
      }
    }

/etc/default/docker : Open or create this file with this content:

export http_proxy='http://proxyHost:proxyPort'
export https_proxy='http://proxyHost:proxyPort'

Once I had all the above changes done, I rebooted my setup and then docker image pull and other docker commands started working without issues.

Note: All the above changes may not be required but for me above changes made sure that docker works after I connect to my VPN.


Lubuntu 20.10 - Failed to register the EFI boot entry: Operation not permitted

Firstly, thanks to @guiverc @pip1726 and @oldfred for all your guidance. It did help me to move in the right path :)
It was almost a weeks' time and finally, I have a working dual-boot machine with Lubuntu 20.10 and Windows 7 Ultimate.
What was the issue?
My HP Pavilion laptop has UEFI support and by default all installation media were booting in UEFI mode only. Also, my HDD was having GPT partitions and hence not allowing me to install in Legacy mode. When installing Windows 7 in UEFI mode, I wasn't able to create a separate UEFI partition (may be it was my mistake for not knowing how to do it and having no patience to research on the internet). Hence decided to install both OS in legacy mode.
Solution:

Backup all data from HDD to external storage device.
Disable secure boot and enable Legacy boot from BIOS.
Convert the HDD from GPT to MBR (all data in the HDD was lost). Created three partitions - two primary for Windows 7 and Lubuntu each and one extended for storage purpose. Used DISKPART for converting GPT to MBR and also partitioning the disk. Some applications claim to convert GPT to MBR without data loss, but need to purchase a license to perform this task. So, I chose to do it with DISKPART itself.
Boot Windows 7 installation DVD in legacy mode and fresh installed it. (While booting, went to the boot options menu [clicking F9 in my laptop]. External devices will be listed twice, once with UEFI in bracket at the end and other without UEFI. By default the one with UEFI was loading. Had to load the one without UEFI, which was actually legacy mode. I wasn't aware of this lol).
Boot Lubuntu 20.10 USB stick in legacy mode (booting in legacy was similar as explained above) and fresh installed it. No errors at all; wow! :D

After installing Windows 7 and Lubuntu 20.10, the Grub menu shows up and allows me 30 seconds by default to choose the OS I like to boot in to. Without any tweaking, the Lubuntu Grub menu recognized and listed Windows 7 OS. All options in the Grub menu are working fine.
Hope this helps someone else who is as lost as I was :)


your case is similar to this bug report

As I can see it's bumblebee related. Are you using it?


Backups to google drive failing with RedirectMissingLocation error

There was a bug with httplib2, the developers released a hotfix for it. See here

As you have the snap version, it doesn't make a difference what dependencies you have installed, all dependencies are resolved in the Snap.

As such the accepted solution is wrong, their instructions will only affect users who do have deja-dup installed from the apt repository.


I can not install any software on Ubuntu 13.04

This is the best solution to your problem. What happened is that the repository does not exist any more or has changed. This site has directions on how to fix the problem.
How can I fix a 404 Error when using a PPA or updating my package lists?
Following these steps are necessary, you will not be able to update without following them.
As for installing vlc, try using the software centre. I know it's a bit heavy and the terminal should work better since it's a direct link to everything, but an address or directory could have changed and it looks like you don't know it, and the list isn't updating it. I have had the same problem with plexydesk and myunity.


Why can't I see others' Buzz posts in Gwibber?

Have you checked "Receive Messages" found in:

Edit -> Accounts: Buzz : Advanced

I dont' have Buzz, but there are is such an option for Twitter and Facebook, and without checking them you won't get any updates.


How to enable ssh root access on Ubuntu 14.04

Simply adding a password for root is not enough for Ubuntu 14.04 Server.

You also need to edit /etc/ssh/sshd_config, and comment out the following line:

PermitRootLogin without-password

Just below it, add the following line:

PermitRootLogin yes

Then restart SSH:

service ssh reload

For Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64) PermitRootLogin without-password has been replaced by PermitRootLogin prohibit-password.


Ubuntu 19.04 won't boot with Nvidia proprietary drivers (418)

According to this link, in order to have the Nvidia drivers working, you have to disable wayland.
To do so:

Open custom.conf to edit it:

Choose your preferred text editor (for example gedit or nano) then run:

sudo gedit /etc/gdm3/custom.conf

Edit the file:

You will find the line #WaylandEnable=false commented, to un-comment it, remove the '#' in the beginning of the line.
Apply the changes:

To have these changes applied, save the edits, then reboot your computer.


This command remove open jdk

sudo apt-get purge openjdk*


Is there a way with ssmtp to include a file as the body?

{
    echo To: me@gmail.com
    echo From: from@gmail.com
    echo Subject: A file
    echo
    find /dir/to/folder/ -type f -size +1M -name "fileName"
} | ssmtp me@gmail.com


Here's what I did to get things working again

Disable C-States and Intel SpeedStep in BIOS settings
reboot, test: suspend works.
Re-enable C-States and SpeedStep in BIOS
reboot, test: all works again.

(I'm on Linux meowko 5.3.0-40-generic #32)

What I think went wrong: Advice for others.

In an attempt to make my battery last longer, I had installed cpufreq gnome extension and also the cpufrequtils package.

It turns out that using that to reduce the number of online processors, if you have irqbalance installed (which I did), can really mess up your system. I've suggested that they change their UI to disallow this as it seems a bit of a foot-gun.

So the full list of what I did to fix this was:

use the extension to ensure all cores were ON
uninstall the extension (there's a manual process for that)
uninstall cpufreq*
do the above.

I then uninstalled irqbalance - opinion seems mixed about whether this is a good thing: lots of advice says "only for servers", but the package itself says good for multi processor SMP systems (I have 8 cores in my laptop). So I'm lost there.

Anyway, I uninstalled irqbalance, reinstalled the extension which seemed to work better this time. However whenever I put some cores offline the system got hot, was working at 40W (normally c20W), so I concluded that was not a good way to save power/battery, and uninstalled everything again. I've left irqbalance uninstalled for now.


Read text file - and export part of text line

You need to use -o flag (only) to export only desired text and regex to match variable text after "I go to". So, in your case the command would be

cat text| grep -o "I go to the [aA-zZ]*

where grep -o matches only desired text and regex [aA-zZ]* matches any single word after that.

If you want to filter different days, you can add another grep in the middle, e.g.

cat text| grep "Wed" | grep -o "I go to the [aA-zZ]*

For simple guide to regex in grep see
beginners-guide-gnu-grep-basics-regular-expressions/


This can be done through the Settings application:
Open Settings: Click on "Keyboard Shortcuts" Search for "Lock"- Click on the only option and set to desired keyboard combination.


Alt + tab not working ubuntu 19.04 citrix workspace

i used tatsu's answer above.  i reassigned the alt + tab shortcut to alt + ` under settings->devices->keyboard->shortcuts.  works like a charm now in chromium :)


Is it possible to install sketch and zeplin in Ubuntu?

Sketch itself is MacOS only - Sketch has no plans to support Windows or Linux - it heavily leverages a lot of the native MacOS frameworks and native technologies.

However, there is a non-Sketch, Sketch-like product called Lunacy that lets you read and edit Sketch files on Windows. You might get it working under Ubuntu with Wine.

Zeplin doesn't have a Linux version (and the Windows version doesn't export from Sketch on Windows because, well, there isn't Sketch for Windows! It exports from Photoshop etc)  - but there is Zeplin's webapp that can be run from any platform.


Unable to launch VirtualBox in Ubuntu 16.04

I've had exactly the same problem on ubuntu 17.04 amd64 with kernel 4.10.0-35-generic. FIxed with the following line:

apt --fix-broken install

apt installed then libqt5x11extras5. Hope this will help.


Editing /etc/sources.list is one step to migrate to a subsequent release in Debian...but not in Ubuntu. You can still use it, but it's not recommended because most users shouldn't need to deal with precisely the problems you encountered.

Instead, Ubuntu provides a tool (the do-release-upgrade command) that will properly change the sources, download and install the upgrade, and remove orphans, all in a predictable and reproducible way to prevent corner-case problems. This tool is the recommended way to upgrade to a newer release of Ubuntu.


Retrieve data from sql into specified place in text

Assuming that the columns of your table event are named as they are in the expected output you could do this:

mysql -uroot -pPass kalender -B  --disable-column-names -e "select concat('The ', date_format(date1, '%d.%m.%Y'), ' ', artist1, ' will come to place ', place1, ' on ', date_format(day1, '%W'), ' at ', date_format(time1, '%H:%i')) from event" > textfile.txt

Notes:

Of course, you can change the formatting of the date and time fields as you wish. See http://www.w3schools.com/sql/func_date_format.asp for a comprehensive list of formats.
If date1 , day1, and time1 are actually referring to the same column, that's no problem at all. You just use the same column name for all formats and the format strings determine what is printed out.
I added the options -B and --disable-column-names to suppress the normal formatting of the select statement.


How can I tell whether my Firefox is 32 bit or 64 bit?

Just open firefox and type about: in the address bar. You will get the about Firefox page. At the bottom you can see the 'Build identifier' information this will tell you about architecture.

If it is 32-bit you will get something like this:

  Build identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12)
  Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12

Note: i686, i386, i586 are 32-bit builds.

If it is 64-bit you will get something like:

  Build identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
  rv:1.9.2.12) Gecko/20101027 Ubuntu/10.10 (maverick) Firefox/3.6.12


Why do I receive the "duplicate sources" error message during an Ubuntu 12.04 Live CD session?

What's happening is that the Precise AMD64 internet repositories also include the i386 repositories by default. I assume the reason is so that you can seamlessly install and run i386 programs after simply installing ia32-libs.

It looks like this is also true for the CDROM repos -- that's all there is to it.

Here's what an extremely simple one-line sources.list does on an AMD64 Precise system:

deb http://archive.ubuntu.com/ubuntu precise main restricted

sudo apt-get update output (note Get:5 and Get:6):

Ign http://archive.ubuntu.com precise InRelease
Get:1 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise Release [49.6 kB]
Get:3 http://archive.ubuntu.com precise/main amd64 Packages [1,273 kB]
Get:4 http://archive.ubuntu.com precise/restricted amd64 Packages [8,452 B]
Get:5 http://archive.ubuntu.com precise/main ***i386*** Packages [1,274 kB]
Get:6 http://archive.ubuntu.com precise/restricted ***i386*** Packages [8,431 B]
Get:7 http://archive.ubuntu.com precise/main TranslationIndex [3,706 B]
Get:8 http://archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]
Get:9 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:10 http://archive.ubuntu.com precise/restricted Translation-en [2,395 B]


Are these miscellaneous problems/oddities during liveUSB normal? (lubuntu 18.10 i386)

First I noticed that the USB I'd booted from was listed twice:

This is normal for the ISO, and can safely be ignored.

  Then, checking out the new qlipper software it seems not to be displaying properly, and clicking on this displayed item does nothing:

That's normal too; Qlipper is super minimal.

Proceed as normal :)


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

adb kill-server; adb start-server


Moving webcam over from Ubuntu 12 to Ubuntu 14 - permission denied

I added myself to the video group, and it worked. Not sure why the group ownership was different between versions of ubuntu.


Lost my terminal application in my desktop

Your main disk is 100% full. Either use the Disk Usage Analyzer to observe where your disk space went, and to delete files, or boot into Recovery mode to use terminal commands to resolve your problem.

Warning: DON'T delete any files if you don't know what they are, or what they do!

First check the file system on your Ubuntu partition... then use other terminal commands to fix the problem...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f / # to check your file system for errors
repeat the fsck command if there were errors
type df -h # to see where your disk space has gone to zero
use other terminal commands to delete unnecessary files to make more space in /


This happened to me too. It turns out to be a Chrome issue. Neither FF not Epiphany  makes momentary sticky freezes nor halts while video playing. (decoding)

When you check chrome://gpu/ you will notice that Hardware Protected Video Decode part indicates that hardware acceleration is not available in Linux. Inorder to fix that go to chrome://flags/ and enable the Override software rendering list and restart Chrome. It worked for me.


To round out:

sudo apt-get purge maas maas-cli maas-cluster-controller  maas-common maas-dhcp maas-dns maas-region-controller python-django-maas python-maas-client python-maas-provisioningserver ; apt-get autoremove


How to get hibernate button in unity shutdown dialog in Ubuntu Raring 13.04?

The hibernate icon appears only after a reboot. I am getting a hibernate icon now properly.


How to store the output of `pwd` along with regular commands in history?

Add this command to your .bash_rc:

alias pwd='pwd | tee -a ~/.bash_history'


How to access HDD folder when booting from USB? (permission denied)

Open terminal and type

  sudo nautilus

A new Windows will pop up with root privilege.

Now, you have access privilege :)


What can be done to add the Lambdalabs repository to Ubuntu 19.04?

If you look at their website they have a universal installation method that is supported for LTS releaes:

LAMBDA_REPO=$(mktemp) && \
wget -O${LAMBDA_REPO} https://lambdalabs.com/static/misc/lambda-stack-repo.deb && \
sudo dpkg -i ${LAMBDA_REPO} && rm -f ${LAMBDA_REPO} && \
sudo apt-get update && sudo apt-get install -y lambda-stack-cuda

For 19.04 you would get the 18.04 version and this will circumvent your problem with the PPA.

Regarding the PPA: if a release is not supported the general idea is to change the version to install.  Example:

And then you can use the regular

sudo apt-get update && sudo apt-get install -y lambda-stack-cuda


Disable locale in datetime display in terminal and logs

First edit /etc/locale.gen and make sure that en_US.UTF-8 UTF-8 id uncommented.

sudo editor /etc/locale.gen

Find it and change this:

  #en_US.UTF-8 UTF-8

into this:

  en_US.UTF-8 UTF-8

Next, rebuild locales:

sudo locale-gen

And then you can set your locale for terminal logins by editing ~/.bashrc or `~/.bash_profile/ and adding:

export LC_ALL=en_US.UTF8

Also if you want to run certain commands with default (English) locales you can put LC_ALL=C in front of them, like so:

LC_ALL=C top -d1


Trouble installing R and R studio in Elementary OS 5.0 Juno

You are using eOS Juno and this is based on Ubuntu 18.04 Bionic. I can see in the errors that you try to use a version for Disco, which is Ubuntu 19.xx. So, please use the correct version.

If you have no experience with the different packages, maybe you should give a try to Anaconda. There you can install R and RStudio also and the tool will choose the correct version for you.

Just for your interest:
How to create an R environment in Anaconda


Home folder icons are black-and-white symbolic icons with the Adwaita icon theme

Try installing the adwaita-icon-theme-full package.


Seems Application Switching is turned of by default.

To activate it you need to run the following command

ccsm

That will bring up CompizConfig Settings Manager.

Go to the Window Management section.
Check off ✔ Application Switcher.

Then the Alt+Tab will work.

Require installation of the compiz-plugins-extra package.


Ok so I'll answer my own problem in case other have the same issue I did. Changing network from my local wired connection or wifi to my phone's 4G seemed to resolve the problem, even if the same connection lets my desktop with same config update just fine.
Idk why that is, probably some sort of driver things...


Remove programs from Open With Other Application menu

To clean Open With List for Wine applications, please carefully paste the following commands into a terminal:

rm -f ~/.local/share/mime/packages/x-wine*
rm -f ~/.local/share/applications/wine-extension*
rm -f ~/.local/share/icons/hicolor/*/*/application-x-wine-extension*
rm -f ~/.local/share/mime/application/x-wine-extension*

If you want to delete applications from the OpenWith list you have to edit the following file from command line and remove unneeded file associations.

/usr/share/applications/mimeinfo.cache

If you added item by yourself, or you want to add new item you need to edit the following file from command line and remove unneeded file associations.

~/.local/share/applications/mimeinfo.cache

You can also remove the corresponding .desktop files from ~/.local/share/applications where ~ is your home directory.


tor is founded in universe repository, so first enable it.

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

Now update software sources

sudo apt-get update

Now you can install it :

sudo apt-get install tor


Could anyone provide a step by step for getting juniper netconnect and citrix?

I can't answer your question for Citrix, but I can answer it for Juniper VPN from a fresh installation of Ubuntu 12.04. Two solutions depending on whether you have a 32 or 64 bit installation, tested using Live CDs:

amd64

sudo apt-get remove firefox openjdk-6-jdk icedtea-6-plugin
sudo apt-get install firefox:i386 openjdk-6-jdk:i386 icedtea-6-plugin:i386

Run Firefox, and log into your VPN.

i386

sudo apt-get install openjdk-6-jdk icedtea-6-plugin

Run Firefox, and log into your VPN.

Complications

If you have other versions of Java or the IcedTea plugin installed, you are probably going to have problems. The two key points to note here are:

Juniper VPN won't work with 64 bit Java, so whatever JDK you are working with, you need to make sure Firefox is using a 32 bit install of Java.
Juniper VPN will work with OpenJDK, but see point 1.

You can switch between installed versions of Java using the update-java-alternatives program.

If someone would like to update this answer to explain how to run 32 bit Java install for Firefox plugins, but use a different install for everything else, please do!


if you are still interested...

Mobile Partner is not a standard .deb so it won't be present on Synaptic.

You need to use their dedicated script located here /usr/local/Mobile_Partner/UninstallMobilePartner


Install VMware on Ubuntu 18.10 -- Build environment error

Run the following commands before/after installing vmware:

sudo apt-get install gcc
sudo apt-get install make
sudo apt-get update

Let me know if you have any other errors we will sort it out.


MediaTomb UI Not working... I've done all the configuration.xml?

modify /etc/mediatomb/config.xml

<ui enabled="yes" show-tooltips="yes">

 <import hidden-files="no">

 <filesystem-charset>UTF-8</filesystem-charset>

 <metadata-charset>UTF-8</metadata-charset>

this is for 12.04.


You need to download java or jdk 6 in software center.
When downloaded right click on minecraft.jar ang go to its settings and allow it to launch as a program


The easiest way of doing is consists of two parts: First, backup your complete home directory including hidden files. It contains all configuration and data specific to your user. The second part is to have a list of packages that are installed. You can use

aptitude search '~i'

to generate a list of all installed packages, filter for the lines that don't have an A. After installing your new system you can apply this list again in order to install all previously installed software. Have a look at the aptitude user manual on how to do that.

After installing the new system, you can restore the backup of your home directory and everything should be back.

The list of installed packages can be generated using following command:

aptitude search '~i' | grep '^..[^A]' | awk '{print $2}' > installed_packages.txt

The packages can then be reinstalled using the following command:

aptitude install $(cat installed_packages.txt)

Note that this may not produce exactly the same results as we filtered automatically installed packages in first command. It is better not to install automatically installed packages as they will remain on the system forever. However, some dependencies are only 'recommended', and they might not get reinstalled when applying the package list.


Is there anything free on ubuntu that is similar to Dreamweaver?

The usual culprits that get a mention:

Quanta Plus
Aptana
Bluefish
Mozilla SeaMonkey
Amaya
Nvu
KompoZer

Try them all?


openssh server is refusing connections by blocking or resetting

Turns out (thanks to @chaos) this had nothing to do with ssh. I had managed to set a bad netmask on the server machine of 255.255.255.255 instead of 255.255.255.0. This caused issues for routing inbound traffic from the LAN, but not from the router.


sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100

sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100


What is the difference between OpenJDK and Oracle JDK?

Look at this answer to understand the key differences between OpenJDK and Oracle JDK.

If you want to use Oracle Java, you have to install it as Paranoid Panda has suggested. Then you have to set your Java environment variables by adding  the following two lines to ~/.bashrc

export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export PATH=$JAVA_HOME/bin:$PATH

If you want, you could also uninstall OpenJDK from your machine at all. Take a look at this answer for the steps to execute to correctly delete it.


Installing ubuntu 12.0.4 along side windows 8 New partition table blank

A disk that appears to be blank in the Ubuntu installer but that you know to contain partitions generally indicates one of two issues:

The disk is set up for use in a motherboard-based software RAID array (aka "fake RAID") but RAID support is not active in Linux. This can happen because a disk is being re-used and was once RAIDed, because RAID is legitimately active but Linux isn't recognizing that fact, or for other reasons. If you're certain the disk should not be RAIDed, you can remove the stray data by typing sudo dmraid -E -r /dev/sda (substituting the device filename, if it's not /dev/sda).
The partition table contains errors. Some of these can actually be legitimate, but libparted (upon which the Ubuntu installer relies) is very fussy. If the disk uses the old MBR partition scheme, my FixParts utility (part of the gdisk package in Ubuntu, IIRC) can fix most such problems -- but be cautious! FixParts will fix some problems by deleting one or more partitions! If the disk uses the newer GPT scheme, you'll need to do some more thinking. My gdisk program includes a v command to analyze the disk, and this will identify some problems. If you're very lucky, launching gdisk on a GPT disk and then typing w to save the changes will fix the problem -- but don't do this without at least first verifying the partition table's contents with p. See my page on repairing GPT disks for more information.

Note that the vast majority of computers that ship with Windows 8 use GPT; however, if you installed Windows 8 yourself (including re-installing it on a computer that shipped with Windows 8), it might use either MBR or GPT.


How to do disk partition after installing ubuntu and don't lose data on my d,e&g drives?

From the comments...

Step #1:

Don't remove Windows 7, as you may need it for BIOS updates, and other things that can only be done in Windows. If you're trying to install Ubuntu, consider shrinking or combining your NTFS partitions, and using the 24G unallocated space that you already have, to do it.

Keep in mind that you should use Windows Disk Management application to manage NTFS partitions, and gparted to manage EXT4 and swap partitions.

Step #2:

You decided not to keep Windows, as I suggested. Hopefully you won't need it later.

In reviewing your new configuration after installing Ubuntu, you incorrectly told Ubuntu to have a separate /home partition, and you told it that sda1 (formally a NTFS reserved partition) was /home, and now /home is full because that partition was too small to hold /home to begin with.

Step #3:

Since this is a fresh Ubuntu install, I'd reinstall Ubuntu into sda8, but don't manually identify a separate /home.

Step #4:

Once Ubuntu is reinstalled and up and running again, mount sda1, and delete the /home directory structure that got created there. Don't delete anything else.

Update #1:

It looks like sda1 was a NTFS reserved partition, but got reinit as EXT4 when you specified that /home was to be on sda1. Just reinstall Ubuntu into sda8 without specifying /boot or /home, although you can say that swap is on sda7 like it is now (although 17.04 might create a /swapfile anyway).


nextcloud snap with data-directory on external harddrive

A bug was logged against the Nextloud snap for this issue, with the solution given here. It's now a wiki entry as well.
To quickly summarize here: you're right, this should be possible, and it is. However, by default the Nextcloud snap doesn't have permission to access removable media (as mentioned in its README).
So, the steps given are:

Connect the removable-media plug: sudo snap connect nextcloud:removable-media.
Connecting that interface gives Nextcloud permission to access things in /media/, so you can edit /var/snap/nextcloud/current/nextcloud/config/config.php and make sure the datadirectory is pointing to the right place.
Disable the snap: sudo snap disable nextcloud
Move (or copy) the current data directory to the new location: sudo mv /var/snap/nextcloud/common/nextcloud/data /media/my/new/data.
Re-enable the snap: sudo snap enable nextcloud.

Now you don't need to bother with the external media solution: all of Nextcloud's data will be there.
Note that this only covers the raw data (e.g. files) hosted by Nextcloud. The database and apps are still in /var/snap/nextcloud/current/. I suggest you leave them there.
Note: if you have issues with the Nextcloud snap, you can log a bug against it.


Why does DNS resolution not work on the first try?

I am facing the same problem. The workaround I am using for now is:

Open the Network Manager config file:

sudo nano /etc/NetworkManager/NetworkManager.conf

Modify the following line:

#dns=dnsmasq

Save and restart the manager:

sudo service NetworkManager restart


Hardware requirements for Ubuntu and virtualization

WinXP requires 64 MB of RAM (128 recommended): http://support.microsoft.com/kb/314865

Ubuntu requires 512 MiB of RAM: https://help.ubuntu.com/community/Installation/SystemRequirements

Do the math, take into account the RAM that you need for Windows applications (base services, antivirus, firewall, VirtualBox) and the RAM that you need for Ubuntu applications, and upgrade your RAM accordingly.


Where can I find Epson Perfection V500 scanner drivers

You can download these drivers form the Epson Website, the driver date is 06-20-2013.

Install these drivers and restart your scanner.  Make sure that you download the right driver for your system, either the 32bit or 64bit.


Loging in with GUI on fresh install of Ubuntu 14.04.3 keeps returning to login prompt and won't display desktop

I had a similar issue (although I couldn't log into the terminal). In the end, I held down Left-Shift at boot time to get the grub menu and chose an older kernel. Did you allow the installer to download updates?


Decorative, graphical horizontal separators in Libreoffice Writer v5

Create a new style (or Modify the existing "Horizontal Line" style).
On the Area tab of paragraph settings:

Fill = Bitmap
Import Graphic... to choose the image to use (you must provide your own).
Probably want to un-check Tile and AutoFit.
(The Position, X- and Y-offset boxes only apply to tiling, so are useless unless you checked Tile.)

On the Font tab, choose a tall enough font size to fit your entire decoration. We won't actually be typing text in this style though.
To avoid an endless stack of dividers, on the Organizer tab, set the "Next style" to that of the text you want to follow the divider.

Now when you want a divider, simply insert a new line in your document and set its style to this one.


"MOZILLA_FIVE_HOME not set" Zekr Qur'an study software java error

This just work for me:

sudo apt-get install libwebkitgtk-1.0-0

The original topic: Open eclipse juno with error “No more handles …” in Ubuntu 12.04


Do I need to reinstall NVidia (and any other) drivers if I install pae kernel

If you installed the Nvidia drivers with either the Additional Drivers provided by Ubuntu or the downloaded drivers from the Nvidia site, you will need to reinstall them again. This is because (For the proprietary ones) they create a module and set a couple of configuration options that depend entirely on the Kernel in use at the moment they get installed.

Since apt-get does not have a reinstall option like aptitude (eg: sudo aptitude reinstall nvidia-current) we need to use the following commands:

sudo apt-get install --reinstall nvidia-current (Assuming is the nvidia-current you installed)

For the Nvidia drivers from the Nvidia site you are better of uninstalling them, then reinstalling them in the PAE version.

Before doing this you need to start the PAE Ubuntu version in recovery mode. Leave SHIFT pressed until the GRUB Menu appears, then just select Advanved Options and Recovery mode. Try to open a tty1 terminal or going to root then execute the provided reinstall command. that's it.


ubuntu partition is nowhere to be found in dual boot system

Using testdisk utility , I was able to scan the disk and find the partition again.

testdisk is fairly easy to use, especially if you have an idea of the "partition map" of the disk.


So it looks like you have a Broadcom BCM43142 network adapter.

...
02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
...

Some googling around reveals that this functionality may be provided by the bcmwl-kernel-source package.

Give this command a try:

sudo apt-get install bcmwl-kernel-source

That should pull in the proper dependencies that are required to build and install on Ubuntu 14.04.


How do I install python imaging library (PIL)?

The above solution did not work for me on Ubuntu 12.10 as libjpeg was not available in the repository.
What did end up working for me was:
sudo apt-get build-dep python-imaging
sudo apt-get install libjpeg62 libjpeg62-dev

If you get the error "You must put some 'source' URIs in your sources.list" then make sure that your /etc/apt/sources.list has deb-src entries which match your deb entries.
Then you must symlink the files from their actual location on your server to the location where PIL expects them.
32-bit version
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/libz.so
sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib/libfreetype.so

64-bit version
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/libz.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/libfreetype.so

Finally, pip install PIL
Success!

Update Sep 2014
Pillow is a more modern fork of PIL.
#jpeg support
sudo apt-get install libjpeg-dev
#tiff support
sudo apt-get install libtiff-dev
#freetype support
sudo apt-get install libfreetype6-dev
#openjpeg200support (needed to compile from source)
wget http://downloads.sourceforge.net/project/openjpeg.mirror/2.0.1/openjpeg-2.0.1.tar.gz
tar xzvf openjpeg-2.0.1.tar.gz
cd openjpeg-2.0.1/
sudo apt-get install cmake
cmake .
sudo make install
#install pillow
pip install pillow


can I locally patch the fglrx package that comes from the Ubuntu repositories?

While you can't patch a proprietary program like fglrx (that's why I don't like them) I assume the patch probably goes into the part that isn't proprietary, namely the part that ties the driver to the kernel. (otherwise you wouldn't have been able to find a patch for it).

Please see How to download, modify, build and install a Debian source package? for basic instructions.

There are also guides available. See this AskUbuntu answer for pointers. I have found the IRC chatrooms mentioned particularly helpful.


QML3D is no longer developed and therefore not supported by Ubuntu Touch.


Back up administrator appears to be broke?

Unfortunately, I believe that passwords are a safety feature in Linux and are required for the most part. A blank password when trying to authenticate will through an error because blank passwords aren't actually allowed. My suggestions would be to use a real basic password like 1234 or something... basically its a password that isn't a password lol. Also a lot of backup programs need root to function properly so you will usually have to use sudo in a command prompt or gksu on a launcher icon at the beginning of the command to have it go through right and it will ask you for a password.

Due to it possibly needing sudo or gksu ... this may be why its asking for authorization


ubuntu 14.10 too slow to open VLC player

System Settings > Software & Updates > Additional Drivers Tab
"Using X.Org X server..." must be selected. Select one of the others. A loading bar will be displayed. When it loads you will see a black screen. Then you will see the Ubuntu 14.10 screen. Reset the computer. If it's still slow choose one of the other drivers.


How to install ubuntu-12.10-desktop along with windows 8 64bit

You can install ubuntu or any linux distribution without affecting files in other partition. Here is the link how you can install ubuntu alongside windows
http://www.everydaylinuxuser.com/2013/09/install-ubuntu-linux-alongside-windows.html?m=1


You could try changing some parameters
echo "options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8" | sudo tee -a /etc/modprobe.d/iwlwifi.conf
Reboot

See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1721271


How do I install Postgres Graphical Installer?

My suggestion would be to not use that all-in-one installer in the first place.  Ubuntu already includes all the tools you need to make use of PostgreSQL in its software archive, including the graphical administration utility pgAdmin III.  And since these programs are part of the software archive, you get the benefit of Ubuntu security updates (which you won't get with a 3rd party installer).

I'm not sure of the best way to clean up after the installer you tried, but I can give some tips on configuring PostgreSQL on a fresh system.

You can install the database with the following command:

sudo apt-get install postgresql

You can then find instructions on creating an account to log in to the database in /usr/share/doc/postgresql-9.1/README.Debian.gz.  Once you've done that you can use the graphical administrative front end, which can be installed from the software centre or with the following command:

sudo apt-get install pgadmin3

If you need to access PostgreSQL via JDBC, you can install the Java drivers with the following command:

sudo apt-get install libpg-java


Why is Apache failing to restart? "review the situation by hand"

Check if pid file path set in /etc/apache2/apache2.conf equals APACHE_PID_FILE variable exported in /etc/apache2/envvars.


You could make a cronjob which mounts and immediately spins down the HDD at every reebot.

The HDD will awake when a program tries to perform an I/O operation on it.
As soon as the backup script did his work you can spin down the HDD again.

Have a look at hdparam and on this answer


Why is there a delay when entering a wrong password?

The delay is to slow down cracking attempts made by automated software. Without a delay cracking attempts would run much faster.

Documentation: See man pam_fail_delay

  RATIONALE

   It is often possible to attack an authentication scheme by exploiting
   the time it takes the scheme to deny access to an applicant user. In
   cases of short timeouts, it may prove possible to attempt a brute force
   dictionary attack -- with an automated process, the attacker tries all
   possible passwords to gain access to the system. In other cases, where
   individual failures can take measurable amounts of time (indicating the
   nature of the failure), an attacker can obtain useful information about
   the authentication process. These latter attacks make use of procedural
   delays that constitute a covert channel of useful information.

   To minimize the effectiveness of such attacks, it is desirable to
   introduce a random delay in a failed authentication process. Preferable
   this value should be set by the application or a special PAM module.
   Standard PAM modules should not modify the delay unconditional.


Is there any file in ubuntu server that recommended to remove SUID/GUID bits from it?

If there is it should be reported as a bug or security problem.

Some easy to do check if all is normal:

Find all SUID/SGID programs on your system, and keep track of what they are, so you are aware of any changes which could indicate a potential intruder. Use the following command to find all SUID/SGID programs on your system:

sudo su
find / -type f \( -perm -04000 -o -perm -02000 \)

You can set logging on SUID with:

sudo apt-get install auditd

The file /etc/audit/audit.rules has a set of rules what it should log in /var/log/audit/audit.log


During upgrade apt-listchanges crasht during sending E-Mail

Error fixt by new incomming update for among other things libsqlite3-0:i386 (3.22.0-1, 3.22.0-1ubuntu0.1)


Wi-fi suddenly stopped working, for no apparent reason

Are you using a Virtual Machine of some sort to run your Ubuntu?

If you are using a VM, then check your VM setting to make sure it can connect to your desired connection. If you are not connected to a VM, then try to click on your network and click "Forget Network" and try to reconnect to it. before that you may want to try to restart your network manager with this terminal command:

sudo service network-manager restart


How to install PHP `mbstring` extension in Ubuntu?

EDIT: Dylan Pierce has confirmed that you can already install some PHP 7.2 extensions in the same way you would for PHP 5. For mbstring in particular, you can execute:

sudo apt-get install php7.2-mbstring

To complement sparkmood's answer, this now works for PHP 7.2 if you already imported ondrej's PPA for it.

sudo apt-get install libapache2-mod-php7.2

Don't forget, either PHP 7 is available through ubuntu's official repositories or you will need an external PPA.


On the download link, there is an option for "See all Ubuntu mirrors" which will direct you to here: https://launchpad.net/ubuntu/+cdmirrors

From there, choose a site, and there should be an option to download a 16.04 .iso.

For instance, here's one from Princeton: http://mirror.math.princeton.edu/pub/ubuntu-iso/16.04.6/


Is it possible set gnome 3 fallback panel font

You could probably do this by editing the CSS for the panel in ~/.config/gtk-3.0/gtk.css.
Something like this might work:

PanelWidget,
PanelApplet,
PanelToplevel {
    font: Sans 20
}

I'm not sure I've got the selector completely correct though. You can look at the Ambiance theme file here at /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css


Yes, it's available. I think that you've ran the command with a dash in fron of the table name.


Does running `find . -type d -exec chmod` in the root directory causes problem?

Most directories in Linux file system have the same permissions 755, but not all, so it could be a problem.

If the above command is executed in your home directory ~ some tools like openssh-client can complain about too open permissions, because the directory ~/.ssh must have 700 permissions, which means your private keys are indeed private...

The situation is the same if you run the command in the root directory / - even worse, probably, this will damage the system. The good news is, if you run the above command within the root directory, without sudo (or while you are not logged-in as root), you don't have enough permissions to do the changes system wide. So you will have a trouble only with the directories where you have enough permissions to make a mess - most likely this is your home directory ~.


How do I launch miraclecast after installation?

Steps to use it as sink.

shutdown wpa_supplicant and NetworkManager

$ systemctl stop NetworkManager.service
$ systemctl stop wpa_supplicant.service

launch wifi daemon

$ sudo miracle-wifid &

launch sink control (your network card will be detected. here 3)

$ sudo miracle-sinkctl
[ADD]  Link: 3

run WiFi Display on link:

run 3

Pair your machine with other miracast device (mirroring)
See your screen device on this machine

Steps to use it as peer

Repeat steps 1 and 2 from "use as sink"

launch wifi control

$ sudo miracle-wifictl

Enable visibility for other devices
Locate them using scanning

p2p-scan

Please see this and this their github page.


Try sugar crm it is open source and has a free community edition:
http://www.sugarcrm.com/crm/download


So I went through the manpage again and realized I had to add a (focus) parameter to my .ds file. Now it looks like this:

(if (is (window_role) "borderless")
  (begin
    (undecorate)
    (focus)
  )
)

Works like a charm :)


Restoring backup from dd image has really weird results

Should I not use the disk utility to restore?

Correct. From your Ubuntu 14.10 live USB stick environment, you should:

dd if=/media/temp/image/image-YYYY-MM-DD.img of=/dev/sda

Where YYYY-MM-DD is the year, month, and day-of-month of the image you want.


It depends on the CPU architecture you have. If your CPU is a 64bit processor the go for 64bit OS. Has nothing to do with you RAM.


Remove pages with redundant content from PDF document

Have you looked into pdfbox? You can invoke its various features from the command line. You can extract each page as text, use diff to see if each successive page has mostly additions to the previous one, keep track of the interesting pages, then use pdfbox again extract only those pages.

I assume from your rating that you don't need detailed instructions for how to accomplish all this :)


That's vista all right....

Read this: https://wiki.ubuntu.com/WubiGuide

"with great power, comes great responsibility"
-sudo


Apt unmet dependencies account-plugin-facebook and google

I found a solution in another thread:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/account-plugin-facebook_0.12+16.04.20160126-0ubuntu1_all.deb /var/cache/apt/archives/account-plugin-google_0.12+16.04.20160126-0ubuntu1_all.deb
sudo apt-get install -f


problem in installing amd driver radeon hd 5460

I tried several times to do this for my wifes computer, with little success and eventually gave up!

Looking at the AMD site for the current driver, released 5/22, there are many packages that you should ensure are installed on your system to make this work:

gimp-help-en
gimp-help-common
XFree86-Mesa-libGL
libstdc++
libgcc
XFree86-libs
fontconfig
freetype
zlib
gcc
Xorg/Xserver 7.4 and above (up to 1.14)
Linux kernel 2.6 or above (up to 3.11)
glibc version 2.2 or 2.3
POSIX Shared Memory (/dev/shm) support is required for 3D applications

Most of these should be on your system already, but you should check.

Read through the driver preliminary documentation at http://support.amd.com/en-us/kb-articles/Pages/AMDCatalyst14-4LINReleaseNotes.aspx, and perhaps consider downloading the latest version of the drivers at http://support.amd.com/en-us/download/desktop?os=Linux+x86#amd-catalyst-packages.


How to use C++ 11 features in the latest version of g++

You don't need to upgrade. Specify the standards version to g++. For example, to compile an example program from cppreference.com:

$ g++ --version
g++ (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++ --std=c++11 -o test test.cpp
$ ./test
std::stoi("45") is 45
std::stoi("3.14159") is 3
std::stoi("31337 with words") is 31337


Cannot boot "No suitable module for running kernel

You don't have a CD/DVD drive but can you boot from USB?

If so, use another computer to make a bootable USB stick.

http://www.ubuntu.com/download/help/try-ubuntu-before-you-install


Ok after testing with 2 PC. I found the following:

On some integrated cards like Intel you can use xrandr in console. For example:

Go to console (Ctrl+Alt+T)

xrandr -x will flip de video horizontally like a mirror.
xrandr -y will flip de video vertically.
xrandr -y -x will flip both.
xrandr -o normal will return to normal the video.
xrandr -o inverted will...invert O.o

But if you have (in my case) an Nvidia this will most likely not work. For an Nvidia to work you need to:

Edit you xorg.conf: sudo nano /etc/X11/xorg.conf

Finde the section that has Driver "nvidia" in it

Copy and paste the following at the end of that section: Option   "RandRRotation" "on"

This will activate the rotation for Nvidia which comes off by default. Why off by default i do not know.

After that reboot and you can change the orientation BUT NOT the reflection. What i mean with this is that Nvidia does not yet support reflection options like -x or -y options in xrandr. I will keep searching for some more since the question is interesting.


VPN connection is not working properly after installing 12.04

I had the same. Solved after installing network-manager-vpnc I guess, which for some reason was removed with the upgrade.


KDEConnect Indicator in Ubuntu 16.04 does not show up

I have not tried installing on Ubuntu 16.04 but I have on Linux Mint 18 which is based on Ubuntu 16.04. I found that I have to install the kdeconnect-plasma package (which brings a LOT of dependencies with it) to get KDEConnect working.

For those who may not know, open a terminal & type

apt install kdeconnect-plasma

You may have to run the command as root like this

sudo apt install kdeconnect-plasma


Intel Power Management not working on ubuntu 14.04

I'd recommend first checking to see if thermald is installed. If not, install it with:

sudo apt-get install thermald

and see if this helps.


In case of permission problems with Samba shares, it is good to realize that Samba has its own structure for users, as well as file and dir permissions.
If one creates a Samba share, and one wants to restrict access by giving only certain users access to that Samba share, one would normally create Samba users. On the command-line this can be done with the command "smbpasswd".
See for more info :

man smbpasswd

To add user and file/dir permissions to the Samba configuration, one can edit the smb.conf file located in /etc/samba/

See also here :

https://help.ubuntu.com/community/Samba/SambaServerGuide#Samba_Server_Configuration_in_terminal

and for setting permissions, see here :

https://help.ubuntu.com/community/Samba/SambaServerGuide#File_Sharing_.28Advanced.29

After editing smb.conf, the Samba server daemons need to be restarted or the reading in of the config file needs to be done (reload).

In some older Ubuntu versions, one could restart both smbd and nmbd,
but in newer Ubuntu versions, the "init" script samba can be restarted.

sudo service samba restart

In some office environments it can make sense to only do a config reload,
instead of a Samba restart, to avoid possible interruptions for the users.

/etc/init.d/nmbd force-reload && /etc/init.d/smbd force-reload

This is on some older Ubuntu releases.
I assume on newer Ubuntu releases :

sudo service samba force-reload

might work.(Have not tested this yet).


I had tried to fix the driver again.
But I didn't succeeded - WiFi speed remained the same.

So I upgraded the kernel from 4.15 to 4.19 using ukuu.
It was easy and quick - and now WiFi works as expected.

By the way, the firmware is the same as on previous kernel - iwlwifi-7265D-29.ucode.
I'm not the Pro Linux guy. So if sb wants to explain smth, I will gladly listen.


I can give you an answer to "Why is it slower?". The Matlab website makes the following points:

  MATLAB performance is similar on Windows®, Mac OS® X, and Linux®, although differences can occur among platforms for the following reasons:

  MathWorks builds its products with a different compiler on each platform, and each has its own performance characteristics.
  MathWorks incorporates third-party libraries into its products that may perform differently on each platform.
  The operating systems perform differently, especially in the case of disk- or graphics-intensive operations.

You can attempt to negate the last point by running comparable benchmarks for CPU and disk IO but unless you find a huge flaw (eg you're accidentally using an awful partition format or your system is only showing half a CPU or you have CUDA enabled in Windows but not in Linux) the other two points are not something you can solve.

What you're most likely seeing at the moment is a cruel reality: developers put more time into optimising their Windows builds because that's where most of their market is.

I would definitely suggest you talk directly to Mathworks. They're almost certainly aware of how Matlab should perform on stock systems so if you're deviating away from their figures, there may be something wrong that they can help you identify.

And even if you are seeing what they expect, by bringing this up with them they might be more inclined to fix the underlying problem.


I need to change RAM without affecting Ubuntu in VirtualBox

The hardware resources of a guest OS that is running in a virtual machine are virtual too, not physical. For example an Ubuntu guest OS that uses 2GB or 4GB of RAM gets its RAM from the VirtualBox application which in turn uses some of the physical RAM of the computer that it is running on the same as all other applications in the host OS do. Another consequence of this is that the virtual RAM allocated to the guest OS does not affect the performance of the host OS in any way except when the guest OS is running.


OS Uninstaller killed Windows 7, can't boot

Use Boot-Repair's Recommended Repair as described here: https://help.ubuntu.com/community/Boot-Repair#Recommended_repair . Indicate the URL that will appear if any doubt.


How to change keyboard layout permanently?

You can simply put it into your bashrc, if it located in your default directory it will be:

echo loadkeys de >> ~/.bashrc

If it does not work you can try using rc.local which run just before the login screen, be careful I never tried this but it should be fine:

create or open the file rc.local with your favorite editor like nano /etc/rc.local

Then paste this text

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

loadkeys de
exit 0

then give it the proper right chmod +x /etc/rc.local


Took the opportunity to backup, and reinstall with Xubuntu 13.10. Also applied the solution I found today at http://www.pcworld.com/article/2088341/how-to-restore-your-ssd-to-peak-performance.html -

Booted from a flashdrive on which I had installed a bootable ISO of PartedMagic and started the app.

From System Tools, chose Erase Disk in the following menu

Chose Internal: Secure Erase then Continue

Picked the SSD then OK

When asked to do Enhanced Secure Erase, told it No.

Now, the reformatted system, with 13.10 and the same apps and data files as before loaded back on, boots faster than before and runs very nicely.


Change length of quotes in variety plugin

Update: This is how it looks for me.

I installed variety from https://launchpad.net/~peterlevi/+archive/ubuntu/ppa and using version 0.6.3-0~581~201611011900~ubuntu16.10.1 . Try updating to that version (or see if the problem is with quote itself)

Did you try a couple of things ? In Preferences -> Effects -> Quotes

In Appearance, try decreasing text font
In placement, try increasing Quotes Area width (and try changing horizontal/vertical positions also)

(I tried but haven't yet got big quote to verify these settings)


Once password is entered at login, purple screen and move frozen

I did a full install with internet option to download.

The problem was present again but the third login attempt worked, no idea why.

I installed the nvidia drivers using the command:

sudo ubuntu-drivers autoinstall

The problem is gone and the system starts ok.


Freezing during installation splashscreen

At the beginning, on the installation menu, try disabling some kernel parameters (press F6, navigate with arrows then select with space bar). For example, disable the raid mode.


WPA2 Wi-Fi connecting but not working on MacBook Pro 4.1

I suggest you try a newer version of the Broadcom STA driver. Please get a temporary wired ethernet connection and open a terminal and do for a 32-bit system:

sudo mkdir /usr/src/hybrid-portsrc_x86_32-6.30.223.141
wget http://media.cdn.ubuntu-de.org/forum/attachments/36/49/2865859-hybrid-portsrc_x86_32-v6_30_223_141_dkms.tar.gz
sudo tar xvf 2865859-hybrid-portsrc_x86_32-v6_30_223_141_dkms.tar.gz -C /usr/src/hybrid-portsrc_x86_32-6.30.223.141
sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms
sudo dkms add -m hybrid-portsrc_x86_32 -v 6.30.223.141
sudo dkms build -m hybrid-portsrc_x86_32 -v 6.30.223.141
sudo dkms install -m hybrid-portsrc_x86_32 -v 6.30.223.141

For a 64-bit system:

sudo mkdir /usr/src/hybrid-portsrc_x86_64-6.30.223.141
wget http://media.cdn.ubuntu-de.org/forum/attachments/36/49/2865859-hybrid-portsrc_x86_64-v6_30_223_141_dkms.tar.gz
sudo tar xvf 2865859-hybrid-portsrc_x86_64-v6_30_223_141_dkms.tar.gz -C /usr/src/hybrid-portsrc_x86_64-6.30.223.141
sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms
sudo dkms add -m hybrid-portsrc_x86_64 -v 6.30.223.141
sudo dkms build -m hybrid-portsrc_x86_64 -v 6.30.223.141
sudo dkms install -m hybrid-portsrc_x86_64 -v 6.30.223.141

Then, in both cases, do:

echo -e "blacklist b43\nblacklist bcma\nblacklist brcmsmac\nblacklist ssb" | sudo tee /etc/modprobe.d/blacklist_Broadcom.conf

Reboot and let us hear your report.

If you get 'bad return status' check the log referred to:

less /var/lib/dkms/bcmwl/6.30.223.1_dkms/build/make.log

Report the error for our examination.


Ubuntu hangs at the '_' prompt for 15' when booting. Do I need another driver for my Intel G31/G33 integrated graphics?

I have an ASROCK G31M-S which uses Intel G31 graphics.
  Ubuntu says my graphics chipset is G33.

If the link you provided is for your motherboard then you have an Intel G31. I am not sure what you mean when you say Ubuntu says your graphics chipset is a G33. If Ubuntu does "say" this, then it is slightly confused.

If you look at the entries for the G31 & G33 chipsets in this table on Wikipedia, you can see that they are very similar. The primary difference between them is that the G31 uses the ICH7 southbridge and only supports 4 GB of RAM. The G33 uses an ICH9, can support 8 GB of RAM, and also can support DDR3 RAM.

In particular, both the G31 & G33 provide the same integrated graphics: Intel GMA 3100. In other words, there is no difference between the G31 & the G33 in terms of the type of graphics supported.

If the hang at the _ prompt occurs after the GRUB boot menu (or if you do not see a GRUB boot menu), then you might see if using the nomodeset kernel boot option helps.

Adding the nomodeset kernel option for a single boot

You can edit the boot instructions for the GRUB menu entry to add the nomodeset option to see if it corrects your graphics problem.

Boot to the GRUB boot menu. An example of the menu is shown in the screenshot below.

Note: If you do not see the GRUB boot menu when you boot, try pressing and holding the shift key immediately after the BIOS portion of the boot completes.
Select (highlight) the GRUB boot menu entry for the Ubuntu kernel you wish to boot.
Press e to edit the GRUB boot commands for the selected boot menu entry.
Look near the bottom of the list of commands for lines similar to
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=bc6f8146-1523-46a6-8b\
6a-64b819ccf2b7 ro  quiet splash
initrd /boot/initrd.img-3.2.0-24-generic
Change the middle line in (4) by adding the kernel boot parameter nomodeset to the end of the line (i.e. after ro  quiet splash).
For this example you would change
6a-64b819ccf2b7 ro  quiet splash
to
6a-64b819ccf2b7 ro  quiet splash nomodeset
Without leaving this GRUB edit screen, press either Ctrl+X or F10 to boot using the modified kernel options.

Note: These changes are not persistent. Any change to the kernel boot options made this way will only affect the next boot and only if you start that boot by pressing either Ctrl+X or F10 while still in GRUB edit mode.


Failed to Set MokListRT: Invallid Parameter every time I boot up my laptop

You get this because you need to replace a file. Do this:
sudo su -
cd /boot/efi/EFI/ubuntu
cp grubx64.efi shimx64.efi

After doing this, restart your Mac. The problem will be gone.


Are there plans for system-wide smooth scrolling?

According to http://brainstorm.ubuntu.com/idea/4849/, it is a pretty "hot" idea, and possibly on the roadmap, but it really depends on the upstream GTK developers, as in whether they will implement/accept (a) patch(es) for the feature.

According to a mailing list I read, a patch was submitted (since 2003!!!) but as far as I can tell, not only was there no reply, but there was also no progress :)! I would have to look through GNOME's/GTK+'s bugzilla, but I'm not so sure if this is in progress as yet.

Hopefully though it will be implemented in the course of developing GTK+3.x, since the Linux Desktop in general is moving in this direction (tablets/touch/smooth responses etc).

Update:

This has landed in 12.04 (GNOME/GTK 3.4), but you may only be able to use it with certain devices (afaik), such as trackpads.


Installing scikit-learn with Python3, _superlu.cpython-34m.so: undefined symbol: dtrsm_

You need to replace numpy 1.10.2 with 1.10.1 .
Then also reinstall scipy with

pip install --upgrade --force-reinstall scipy

After that sklearn works fine.


Customization of a live usb (persistent) to use Latex

Persistence will let you install Latex for that usb stick only. Installing Ubuntu from that stick to another PC will install the original Ubuntu only. You need to create a customized Ubuntu ISO image file containing all/any software that you want.

Install Ubuntu on a PC, then install all the software you want/need, then use Remastersys, UCK, PinguyBuilder, Cubic, Live-Magic or custom scripts to do it. Please mind that this process requires large amounts of time, memory and disk space (for temp files). Doing it directly from a usb stick may never work.


Running programs in the background from terminal

I've recently come to like setsid. It starts off looking like you're just running something from the terminal but you can disconnect (close the terminal) and it just keeps going.

This is because the command actually forks out and while the input comes through to the current terminal, it's owned by a completely different parent (that remains alive after you close the terminal).

An example:

setsid gnome-calculator

I'm also quite partial to disown which can be used to separate a process from the current tree. You use it in conjunction with the backgrounding ampersand:

gnome-calculator & disown

I also just learnt about spawning subshells with parenthesis. This simple method works:

(gnome-calculator &)

And of course there's nohup as you mentioned. I'm not wild about nohup because it has a tendency to write to ~/nohup.out without me asking it to. If you rely on that, it might be for you.

nohup gnome-calculator

And for the longer-term processes, there are things like screen and other virtual terminal-muxers that keep sessions alive between connections. These probably don't really apply to you because you just want temporary access to the terminal output, but if you wanted to go back some time later and view the latest terminal activity, screen would probably be your best choice.

The internet is full of screen tutorials but here's a simple quick-start:

http://thingsilearned.com/2009/05/26/gnu-screen-super-basic-tutorial/


This command should be helpful:

find -maxdepth 1 -type f ! -name flist.txt -printf  "%P\n" > flist.txt

Command information:

-maxdepth: Don't search for files below folders of one level down.
type f: Search for only files
-printf "%P\n": Print the names only and on separate lines
> flist.txt: Store those names (using output redirection) in a file to be created on the fly called `flist.txt
! -name flist.txt: Skips the name of the output file from the generated list


Try find command with its -regex switch or -iregex (case insensitive), change your regex to .*__[a-zA-z0-9_]*\.(png|jpg|jpeg) and use the -delete option to delete the matched file:

find . -type f -regextype "posix-egrep" -iregex '.*__[a-zA-z0-9_]*\.(png|jpg|jpeg)$'

You can use other types of -regextype (which is worked) in place of "posix-egrep" like: "posix-extended" or "posix-awk".

-regex pattern
    File  name matches regular expression pattern.  This is a match on the whole path, not a search.  For
    example, to match a file named './fubar3', you can use the regular expression '.*bar.'  or '.*b.*3',
    but not 'f.*r3'. The regular expressions understood by find are by default Emacs Regular Expres‐
    sions, but this can be changed with the -regextype option.

-iregex pattern
    Like -regex, but the match is case insensitive.

-regextype type
    Changes the regular expression syntax understood by -regex and -iregex tests which occur later on the
    command line. Currently-implemented types are emacs (this is the default), posix-awk, posix-basic,
    posix-egrep and posix-extended.

-delete
    Delete files

At the end add -delete switch to command to deleting matched files:

find . -type f -regextype "posix-egrep" -iregex '.*__[a-zA-z0-9_]*\.(png|jpg|jpeg)$' -delete

.*__[a-zA-z0-9_]*\.(png|jpg|jpeg)

The .* matches everything before __
The __ matches double underscores.
The [a-zA-z0-9_]* matches all alphanumeric and a single underscore _ characters. The * means this class of characters can be zero length.
The \. matches a single dot. To match a dot (.) literally you need to escape it within the regular expression using a backslash; without escaping, it matches any single character.
In the (png|jpg|jpeg), pair of parentheses makes it as a group of matches. Will match png or (|) jpg or jpeg.
The $ anchor, matches the end of string (or file names in this case)

Debuggex Demo and test on files


How to install Ubuntu on a Mac with M1 processor?

The answer to this question comes from Linus Torvalds himself - put simply, it's "you can't".  But more specifically:

The main problem with the M1 for me is the GPU and other devices around it, because that's likely what would hold me off using it because it wouldn't have any Linux support unless Apple opens up... [that] seems unlikely, but hey, you can always hope.
Source: https://www.zdnet.com/article/linus-torvalds-would-like-to-use-an-m1-mac-for-linux-but/ - an Interview with Linus by ZDNet

The core problem here is that the Linux kernel itself does not support the M1, and without core Linux support in the core Linux kernel for M1 chips and architectures and devices, there is not going to be a way to install Ubuntu.  And without Apple releasing information on the support for the chipset and such, it will not likely see any Linux support in the future.
Purportedly, there are developers working on supporting the M1 chip however there is NO eta on this, and unless Apple starts releasing more information and code for their chipsets it's likely to take A Long Time.  And until such support is figured out through the 'trial and error' approach to code hacking and developing support and such, there is no way to install Ubuntu (or any Linux variant) on M1 chips.


How to allow a login/password from certain hosts and force a key-base authentication from others?

According to the man page you can divide your /etc/sshd_config in sections that match hosts, the first section that matches being used:

So you could have:

# everything for your local hosts
Host 192.168.*.*
[...]
RSAAuthentication yes
PasswordAuthentication yes
[...]

# Everything for other hosts
Host *
[...]
RSAAuthentication yes
PasswordAuthentication no
[...]

To avoid all that duplication, there seems to be away to have blocks that are valid  for specific hosts:

Host *
[...]
RSAAuthentication yes
[...]
Match 192.168.*.*
    PasswordAuthentication yes
Match all


How do I safely remove Ubuntu 12.04 LTS from a dual-boot with Windows 8?

I have used the method described in the second YouTube video. The one that I most used is to run recovery disk, install windows clean and reload all the software and data. Understandably this method is time consuming.

PS: If you post more detail on the current state of your computer you might get a better response.


Creating a new user doesn't include features of cmd?

This is because the default shell is bin/sh.

You should do this. Edit /etc/passwd and check for the line that has jkeesh as username. You will see something like :

jkeesh:x:1005:1005::/home/jkeesh:/bin/sh

Change the line to bin/sh to bin/bash.

This should fix your problem.


SSH into a machine and then launch an interactive command line program

If you pass a command in the arguments ssh runs non-interactively;

$ ssh -t user@localhost echo foo
user@localhost's password:
foo
Connection to localhost closed.

A solution is to replace the non-interactive shell with an interactive shell in the command passed to ssh:

$ ssh -t user@localhost 'echo foo; exec zsh'
user@localhost's password:
foo
%

In your case, to replace the non-interactive shell e.g. with an interactive Bash instance:

import os
os.system("xterm -e ssh -tt -i key.pem -o StrictHostKeyChecking=no ubuntu@ip_address 'yRouter/src/yrouter --interactive=1 user; exec bash'")


You need to disconnect the virtual image of Windows XP. When you do not do this, the XP installation starts over again.

Source of the image - Internet.


Adding previously downloaded .deb files to apt using command line

Copy it to /var/cache/apt/archives with the following command:

sudo cp filename.deb /var/cache/apt/archives/

You may have to rename the deb files according to the cache, so start to download it with apt-get, get the name of the cached file from /var/cache/apt/archives/ then rename your file and copy it there overwriting the incomplete download and start apt-get again.

Of course you don't need this if you are copying from an old cache :)


VPN connection failed because service stopped unexpectedly

This might not answer your question, but check if the option in the 3rd pic is enabled. If not enable it & connect again.


I suspect that your relatively new device is not covered in the relatively old 12.04 kernel. I suggest you get a temporary internet connection. Open a terminal and run:

uname -r

Is your kernel version annotated '-pae'? If so, please do:

sudo apt-get install linux-backports-modules-cw-3.10-precise-generic-pae

If not, do:

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

Detach the ethernet and reboot. Your wireless should now be working.


Not an expert answer, but to the best of my knowledge, every default icon setting appears to be global in scope. Unity Tweak Tool, Gnome Tweak Tool, Gconf editor, Ubuntu Tweak (not a distribution package), and any other method appear to have a single, unified theme and icon set. The workspace settings in gconf-editor were deprecated after Gnome 2.12, and even then, don't believe individual workspaces with unique icons were available.

It is a nice idea, but the code around that idea is not at present available to the best of my knowledge.


Ubuntu 20.04 Wayland fractional scaling and multiple monitors hidden UI elements

Fractional scaling and multiple monitors is one of the biggest issues with Ubuntu at the moment. Adding onto the problem it seems like you want to use more than one extra monitor.
You best bet right now is to play with the setting in xrandr and set specific resolutions and scaling for each monitor.
Does your laptop have HiDPi? In this case it is one of the most known and unsolved problems with Ubuntu, but you best bet is trial and error with xrandr.


I fear that you don't want to do this, but this script should make something that you would like:

#!/bin/bash

input=$(cat)
line=""
max=$1

for word in $input; do
  if (( (${#line} + ${#word} + 1) > max )); then
    echo "$line"
    line=""
  fi

  line+="$word"
  line+=" "
done

echo $line

Usage: cat text_file.txt | bash the_script.sh $COLUMNS


Ubuntu 20.04 Lock screen spawns multiple logins

I was using sddm from when I was using the plasma desktop. By uninstalling kubuntu-desktop and changing from sddm to gdm3 the problem seems to be fixed!
Check out this link for example commands:
Switch Display Manager in Ubuntu 20.04


The development of Everpad appears to have been abandoned. There is no Everpad package for Ubuntu 15.10 or newer. Recommended alternatives include NixNote (née NeverNote), or even moving to other note taking platforms, such as SimpleNote, which have better support for Linux.

My apologies for the misleading initial answer.

How to install Everpad:

sudo add-apt-repository ppa:nvbn-rm/ppa
sudo apt-get update
sudo apt-get install everpad

It appears that you need to add a PPA.


Can not open,/var/log/cassandra/gc.log due to Permission denied

I was facing the same issue, fixed using following commands:

sudo chown -R $USER:$GROUP /var/lib/cassandra/

sudo chown -R $USER:$GROUP /var/log/cassandra/


Wine's files are stored in /home/user/.wine/drive_c/ by default.

.wine is a hidden folder, so press Ctrl + H in your home folder to show it.

You can select other folders in most programs by browsing to the correct place on your hard drive.


Boot fails to Grub Rescue "crypto.mod" not found

I faced the same problem after an update.

login to ubuntu using USB  pendrivelinux

Re-install the grub and you are all set.
grub installation