https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts

  Multiple Boot Systems Time Conflicts

  Operating systems store and retrieve the time in the hardware clock
  located on your motherboard so that it can keep track of the time even
  when the system does not have power. Most operating systems
  (Linux/Unix/Mac) store the time on the hardware clock as UTC by
  default, though some systems (notably Microsoft Windows) store the
  time on the hardware clock as the 'local' time. This causes problems
  in a dual boot system if both systems view the hardware clock
  differently.

  The advantage of having the hardware clock as UTC is that you don't
  need to change the hardware clock when moving between timezones or
  when Daylight Savings Time (DST) begins or ends as UTC does not have
  DST or timezone offsets.

  Changing Linux to use local time is easier and more reliable than
  changing Windows to use UTC, so dual-boot Linux/Windows systems tend
  to use local time.

  Since Intrepid (8.10), UTC=yes is default.

  Make Windows use UTC

  Note: This method was not initially supported on Windows Vista and Server 2008, but came back with Vista SP2, Windows 7, Server 2008 R2
  and Windows 8/8.1.

  To make MS Windows calculate the time from the hardware clock as UTC.

  Create a file named WindowsTimeFixUTC.reg with the following
  contents and then double click on it to merge the contents with the
  registry:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
     "RealTimeIsUniversal"=dword:00000001

  Note: Windows Time service will still write local time to the RTC regardless of the registry setting above on shutdown, so it is handy
  to disable Windows Time service with this command (if time sync is
  still required while in Windows use any third-party time sync
  solution):

sc config w32time start= disabled

  Reversing the change You can create a file with the following
  contents and then double-click it to merge in the original changes, as
  above:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
     "RealTimeIsUniversal"=-

  If Windows Time service was disabled, enable it again with the
  command:

sc config w32time start= demand

  Make Linux use 'Local' time

  To tell your Ubuntu system that the hardware clock is set to 'local'
  time:

  Pre-Ubuntu 15.04 systems (e.g. Ubuntu 14.04 LTS):

  edit /etc/default/rcS
  add or change the following section

# Set UTC=yes if your hardware clock is set to UTC (GMT)
UTC=no

  Ubuntu 15.04 systems and above (e.g. Ubuntu 16.04 LTS):

  open a terminal and execute the following command

timedatectl set-local-rtc 1


An interrupted boot followed by failed install on a Dell Inspiron

If you could boot the recovery partition by pressing an F-key during boot, that would wipe Ubuntu and restore windows fully.

I would use that live usb session to mount your old partitions under /mnt, chroot into /mnt, and then use grub-install to reinstall grub to the hard drive.
How to Install Grub


Xubuntu menu bar disappeared after unplugging external monitor

OK, the issue is that when you unplug the monitor, your desktop settings are not refreshed and the system still thinks it has a second monitor attached. This can probably be fixed using udev rule but they can get complicated for this kind of thing. I have written a little script that refreshes my desktop and I have mapped it to a shortcut key so I can easily run it and fix this type of issue. I have modified it to match your setup based on the output of your xrandr

#!/usr/bin/env bash

## If the VGA1 screen is currenlty connected
if ( xrandr | grep VGA1 | grep -qw connected )
then
    ## print a pretty message
    notify-send "Extending desktop to screen VGA1"

    ## extend the desktop to the external screen. If you want your panel
    ## to appear on the right hand screen move the '--primary' flag to
    ## the VGA1: --output VGA1 --primary ...
    xrandr --output LVDS1 --auto  --primary --output VGA1 --auto --right-of LVDS1
else

    ## If the external screen is not connected, refresh the desktop and
    ## make everything appear on the laptop's
    xrandr --output LVDS1 --auto --primary --output VGA1 --off

fi

Save this script as ~/screen_switch.sh, make it executable (chmod +x ~/screen_switch.sh) and then use the System Settings to set a keyboard shortcut that runs it. You can now use the shortcut to fix your problem.


Switch workspace and move window shortcuts in Ubuntu MATE

While holding Ctrl + Alt you're switching between workspaces, and you don't select a workspace until you release, so you can't move a window by adding Shift because there are no windows in focus.


Try these two commands:

sudo echo FRAMEBUFFER=y > /etc/initramfs-tools/conf.d/splash
sudo update-initramfs -u


I have to agree with the above (by guiverc). You have to tell your PC's BIOS to boot from USB.
On powerup, you'll have to figure out which key to hit to enter the BIOS settings mode. The most common ones I've found are DEL, F2 ,or sometimes F12. Gotta press it at the first splash screen you see, and keep tapping till you get the BIOS.
If you get the GRUB prompt, power down and try again.
Once you're in BIOS, find the setting to boot from USB. Save and exit, reboot.
Hope this helps!


Lightness

Called 'Lightness' the theme was designed to feel 'calm, clean & modern' according to its designer, and certainly gives a beautifully minimalistic introduction to your boot time.


500 Error on index.php file. All other php files are working well

I've solved this issue. The problem was with CHMOD of my virtual host directory. I set chmod value to 755 and it began to work :)). Sorry for bothering with such stupid question.


Making custom synaptics touchpad config persistent not working

I tried all from above, /etc/X11/xorg.conf.d/60-synaptics.conf, just /etc/X11/xorg.conf, startup-command in either xfce or mate and even startup-script with 10 seconds delay and then execute synclient-commands in a loop or without a loop. Nothing worked. Only thing I couldn't try was to set it via gsettings because I didn't find any touchpad settings there.

Working Solution for me was:
Just adding the synclient command at the end of ~/.bashrc
So in your case, just add:

synclient RightButtonAreaLeft=0 RightButtonAreaTop=0 ClickTime=20 AccelFactor=0.3 MaxSpeed=2.5 PalmDetect=1 VertTwoFingerScroll=1 HorizTwoFingerScroll=1 VertEdgeScroll=0 HorizEdgeScroll=0

Probably, adding it to ~/.xinit will do the same :)
(adding it to .bashrc won't make an effect before you either re-login or execute source ~/.bashrc)

I know, bashrc is not the place where synclient settings should be stored, but after spending hours on this issue it is the only working solution for me and I'm not having any side effects.


How can I upgrade Ubuntu LTS to the next one offline?

Canonical doesn't provide alternate-cd since 12.10, so an upgrade through the installation disk won't be available.

The solution would be to create an offline mirror of the ubuntu package repositories [1]. Once you have one, you can follow this procedure :

update-manager and do-release-upgrade reads the file /etc/update-manager/meta-release to find the location of the meta-release file. This points to the internet location changelogs.ubuntu.com normally. And if you just mirror the package repos, the meta-release file isn't included. So we need to fetch it first:

wget http://changelogs.ubuntu.com/meta-release

Store it, for instance on the root of the internal mirror or some other convenient location, and put the url to it in the "URL" value in the /etc/update-manager/meta-release. If you're upgrading to a LTS release, fetch the meta-release-lts file too and repeat the process.
Edit the meta-release file you just downloaded and substitute the external mirror address with the url for the internal mirror so all package locations match up. For me this was replacing archive.ubuntu.com with file:/// and the path of the internal mirror. Make sure the file is readable via http (or file permissions if using file access to repo).
Run update-manager or do-release-upgrade and the upgrade should work as you were using an internet mirror.


Wine and winetricks are two separate packages.
To remove both wine and winetricks and all dependencies:

sudo apt-get purge wine winetricks
sudo apt-get autoremove


GRUB cannot find the ISO image on the hard-disk?

Note the comments about using a more current version of the ISO, but your problem may be that you have a separate /home partition.  Assuming your "newinstall" is a user home directory, the partition starts with /newinstall,,, not /home in the line

set isofile="/newinstall/kubuntu-14.10-desktop-amd64.iso"
loopback loop (hd1,6)$isofile

The other potential issue is the enumeration of disks may differ at the grub prompt and in the final running system.  You would expect your sdb to be the hd1 at the grub prompt, but sometimes, hd0 and hd1 seem to be reversed.  I did try the fix mentioned above, since I have an iso on a mounted partition, and the boot succeeded, but with an external (non-bootable) USB hard disk plugged in, the hd0 (in my case for sda) had to be manually changed to hd1 for the boot to work.  Without the USB disk, the hs0 worked.


If your computer is operating correctly, I wouldn't change a thing.

Secure Boot is usually only an issue if you try to load a 3rd party kernel module. For example, if you need to compile and install a wireless networking driver, it won't load and drive your device if Secure Boot is enabled. Here is an example of a relevant question: How do I get a Realtek RTL8723BE wireless card to work?

  Important: For new Ubuntu kernels installed on a system with Secure
  Boot on UEFI, the unsigned kernel module may not load.

There are many other examples aside from wireless.

Here is another very helpful question and answer: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?


What are the different arguments passed to tar command?

Just type man tar in the terminal for the tar command manual.
You can also view it online at http://man.cx/tar or at http://linuxcommand.org/man_pages/tar1.html (Thanks to @Rinzwind)

The meaning of -xvzf is

-x --extract = extract files from an archive
-v, --verbose = verbosely list files processed
-z, --gzip = gzipped files eg. for tar.gz packages
-f, --file ARCHIVE = use archive file or device ARCHIVE


Program, time schedule sounds (mp3, wav)

you can try kalarm. It can do what you ask and much more. http://www.astrojar.org.uk/kalarm/index.html


What are the correct permissions for Apache's 000-default.conf?

My server has 000-default.conf with 0644 (-rw-r--r--) permissions in sites-available and as a symlink lrwxrwxrwx in sites-enabled.

You should check the permissions of the file in /etc/apache2/sites-available to make sure it's something sane (at least not world-writable) as the link permissions don't matter (accessing the file through the link uses the target file's permissions)


You must configure nginx to forward the requests to the PHP FastCGI processor (php-fpm). An example configuration can be found at Nginx PHP-FPM

After configuring, restart both services to take effect.


Not an answer, just a set of workarounds.

On my system, the overview opens quite slowly in a "usual" session (a dozen browser windows, other applications, ...) I use overview mainly for the search facility, task switching usually happens via Alt+Tab.

The Gno-Menu extension also has a search bar, the menu can be activated via F2.
The Window list extension displays the list of currently active tasks at the bottom. It can be configured to show only one button per application.
The Switcher extension (fairly new) allows selecting another application by typing its name after hitting Super+W.
I used the Gnome Tweak tool to set the shortcut for switching between overview and desktop (in the "Keyboard and Mouse section") to Super right (which is not present on my keyboard). This is because hitting Super left if I want to open a new app is already in my muscle memory.

This essentially avoids the necessity to open the overview, ever.


What's the official method for checking integrity of a source package?

The integrity of the source package can be verified without validating the gpg signature on the dsc file.

Each installation source has a pair of files called Release and Release.gpg. These two files are the root of a hash tree, which can be used to validate the integrity of everything in the archive. The gpg signature on Release is the only one which need to be verified.

The signature on the dsc file may serve an important purpose before the file is put into a repository and indirectly signed through Release.gpg. Once the file is in the repository, the signature on the dsc file can be ignored.

Here is how I could manually verify the integrity. As far as I can tell, apt-get source does the same validation.

Download http://dk.archive.ubuntu.com/ubuntu/dists/trusty/Release and http://dk.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg.
Check the signature using gpg --keyring /etc/apt/trusted.gpg --verify Release.gpg Release (The public key can also be found in /usr/share/keyrings/ubuntu-archive-keyring.gpg)
Download http://dk.archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources.gz
Compare hashes obtained from sha256sum Sources.gz and grep main/source/Sources.gz Release
Compare hashes obtained from sha256sum pam_1.1.8-1ubuntu2.dsc and zcat Sources.gz | grep pam_1.1.8-1ubuntu2.dsc
Validate hashes found within the dsc file: cat pam_1.1.8-1ubuntu2.dsc | sed -e 's/^ //;s/ [1-9][0-9]* /  /' | sha256sum -c


How would I ping IP address produced from script?

I suggest using dig utility for this purpose.

Here is an example of it's output:

dig +short google.com
$ 216.58.206.46

Sometimes the result contains multiple addresses, so pip the output to head to only get the first one:

dig +short address | head -1

So you can easily use it in your script without the need of processing the output of nslookup:

#!/bin/bash
echo "Enter web address : "
read address
echo "Entered web address : $address"
nslookup "$address"
ping -c 4 $(dig +short "$address" | head -1)

$( . . . ) is a Command substitution.
ping -c 4 pings the address 4 times
+short is an options to only show the addresses.
head -1 returns only first address


What can be done to make Wine look more integrated into Unity?

Unfortunately, due to the nature of Windows, and thus Wine, it is currently rather difficult to achieve what you are looking for.

As far as I'm aware, there are plans to eventually have Wine applications take on the style of the desktop they are running on, but trust me, this will probably take a while before it ever happens.

Your best bet is to use winetricks, which has an option use your Desktop's colour scheme to theme Wine applications. Other than that, unless someone has created a style, there isn't much you can do.

The numerous icon theme replacements out there for Windows can work, but not very well, due to differences between Wine's and Windows' shell*.dlls. I'm sorry I cannot provide you with the solution you wanted.

I see that my answer has not been enough for you so I'm going to try to make it more satisfactory.

Is there a way to make wine more aesthetic and less alien?
Yes, but it is difficult. You would need to create a .msstyles theme for Windows (XP compatible) and then apply this as a theme in Wine. Since Microsoft never intended for any custom themes to be created, creating msstyles is not a "walk in the park" and creating one that matches Ubuntu's style is even more difficult.

Doubt what I'm saying?
Read here: http://en.wikipedia.org/wiki/MSSTYLES

How can I add icons to wine programs such as MS office for instance?
Yes and no. You can patch these applications, but please remember, Windows applications are for the most part themed very differently from the applications you will find on Ubuntu (especially Microsoft products).

You can apply "transformation packs" in Wine, but unfortunately the results will be somewhat different from what you would expect on Windows (trust me, I've tried).
This is largely because transformation packs are designed to theme a whole Desktop Environment (from the File Manager back to the Taskbar). Wine does not have some of the components of Windows, and so all you will be seeing is specific applications with minor, incomplete changes, such as changed icons, and not all of the icons will change either.
Most official Windows applications (especially Microsoft products) do not use freely changeable icons (like what you would find in Ubuntu) that you can swap for other themes. The icons are "hard coded" into dlls like shell.dll, and sometimes in application specific dlls. Occasionally, an application in Windows uses external resources (like .png files) that you can change, but this is rare, and so it won't make any difference in your Wine experience.
Even if you do manage to apply a transformation pack, you will likely create instability in your applications (trust me, I've tried!!!). For this reason, I advise you to just put up with what is available. Unless a miracle happens, there is no other answer anyone can give you.


all .doc file auto changed to .exe in the network sharing folders

Hey are you sharing with windows OS ?

The behavior you described  is peculiar of viruses.You should use an ANTIVIRUS. If you are working on windows do

1.Open start menu --->RUN

2.type cmd A commmand prompt window appear.

3.type drive_name:

4.type dir
this will list all the files now check the output and please post the result


Why not just use thunar to access the permission for the mount, and set it to be read/write for everyone, as this seems to be what you are looking for?  Probably will need to sudo your way into thunar to give yourself privs to change the privs on the mounted location, so fair warning.


netplan conflicts when changing AP when rederer: NetworkManager

It sounds like you have previously set this interface up directly through NetworkManager, and therefore you have conflicting configuration under /etc/NetworkManager.  Try removing that config and trying again.


Does this Windows program running under Wine not recognize the absolute pathname to its argument?

You're providing an absolute Linux-style path to a Windows executable that is being executed by Wine, not giving that path argument to Wine itself.  Therefore, you have to treat every argument after the path to the .exe as a Windows-style argument (i.e. wine /home/$USER/.wine/drive_c/path/to/Windows/executable.exe [Windows Style Arguments]).

The full Linux style paths work for notepad.exe, but consider that notepad.exe is likely not the pure Windows version of Notepad, it's included with the Wine setup, and is probably tweaked to accept Linux paths (like /tmp/test/O.pdf).

Most of the applications that wine can execute, however, do not have those tweaks, and therefore only accept Windows-style paths.  So, you need to give those apps a Windows-style path, in the format like C:\Windows\System32\... but with regards to the actual location of the files, and with respect to the drive mappings in Wine, while taking into account Bash / Linux console style interpretations* of paths.

First, find the drive mappings and to where they 'exist' in the Linux file infrastructure.  To do this, load up winecfg, and in the Wine configuration window, go to the "Drives" tab.  It'll look something like this:

As you can see, I have C: which is mapped to the Wine drive_c directory which in this instance is in /home/teward/.wine.  I also have a drive M: mapped to my /mnt/ directory, which is relevant because I have things referenced by M:\ in the Wine apps.

What's most relevant is the Z: mapping, which maps to the root / partition on my Linux environment.  This usually is a default mapping, but isn't necessarily going to be in your environment (so make sure it is).  Whichever Wine drive is mapped to /, you'll need to use.  And if one doesn't exist, you'll need to add a drive mapping that matches either / or the actual directory your data is actually in that you're opening with the Windows application.  Technically, you could have T: mapped to /tmp/ and then do T:\0.pdf, but I'm not assuming that for my answer.

So, for the purposes of this answer, I'm going to assume that Z: is actually mapped to / and use that from this point forward in my answer.

You need to take the Linux path and convert it to Windows-style from the Z:\ drive root.  So, for /tmp/test/0.pdf in Linux, you'll actually give it 'Z:\tmp\test\0.pdf' (including the single ' quotes so the shell doesn't mess up with interpretation* of the path).  This way, the Windows-style application is getting a path it can read and understand, not a path that it can't.

Very few Wine applications are actually capable of understanding the /foo/bar/baz style paths of Linux, and most of the ones that do were tweaked and installed as part of setting up Wine to begin with.  Therefore, it's best to give Windows-style paths to Windows applications running inside Wine, rather than Linux style paths.

* When I refer to 'interpretation', I don't refer to the :, but the \ that's in the paths.  And though your path doesn't contain spaces, I also refer to spaces.  In Bash syntax, the \ is used as part of an escape character.  Further, in the command line, arguments are space-delimited, so it doesn't know how to process spaces in the paths, and as such you would have to escape them with backslashes.  So for what would be C:\Program Files\Foo\bar.exe, you'd actually have to put C:\\Program\ Files\\Foo\\bar.exe for the path.  However, with the default Bash shell, you can negate this misinterpretation of slashes and spaces by wrapping the path with single quotes (') which treats it as a literal argument being passed, in its entirety, so you could do 'C:\Program Files\Foo\bar.exe' without having to deal with escaping backslashes or spaces.


How to persist on a wifi connection after disconnection?

I think this might be due to a new network-manager bug, as I've also started experiencing this problem only recently - I think after upgrading to Ubuntu 15.04.

It seems I've managed to solve this problem temporarily as a workaround with these two files:

I have a script file to watch the WiFi connection and toggle WiFi off and on when disconnected, e.g. ~/.bin/WiFi-Keep-Connected, with this content:

#!/bin/bash
while true; do
    LC_ALL=C nmcli -t -f TYPE,STATE dev | grep "^wifi:disconnected$"
    if [ $? -eq 0 ]; then
        rfkill block wifi && rfkill unblock wifi
        sleep 10
    fi
    sleep 10
done

I also have a .desktop file to keep this script running every time I login, e.g. ~/.config/autostart/KeepWifiConnected.desktop, with this content:

[Desktop Entry]
Type=Application
Exec=/home/"username"/.bin/WiFi-Keep-Connected
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Keep WiFi Connected
Icon=networkmanager

Note: You'll need to enter your user name in the path given for Exec= above.

NB: Sometimes restarting Wi-Fi in this way is not enough, in which case I have to restart Network Manager by entering this command once or even twice from the terminal: sudo service network-manager restart

Therefore, it might be a better idea to modify the script above (just in case) like this:

#!/bin/bash
while true; do
    LC_ALL=C nmcli -t -f TYPE,STATE dev | grep "^wifi:disconnected$"
    if [ $? -eq 0 ]; then
        rfkill block wifi && rfkill unblock wifi
        sleep 10
    fi
    LC_ALL=C nmcli -t -f TYPE,STATE dev | grep "^wifi:disconnected$"
    if [ $? -eq 0 ]; then
        gksudo service network-manager restart
        sleep 10
    fi
    sleep 10
done


Just read the fine manual carefully. It says:

  The -maxwarn option can be used to override warnings
  printed by gmx grompp that otherwise halt output.
  In some cases, warnings are harmless, but usually they are not.
  The user is advised to carefully interpret the output messages
  before attempting to bypass them with this option.

and

  -maxwarn <int> (0)
  Number of allowed warnings during input processing.
  Not for normal use and may generate unstable systems.

(Emphasis mine)

-maxwarn <int> (0) means the -maxwarn switch needs the number of warnings to ignore and 0 is the default. So supply a number other than 0.


This shortcut locks your system:

Super+L

Locking the system does not affect running processes if they expect any interaction.

In the special case of a system update, queries may be limited, but not be totally excluded.

E.G.:

sudo apt-get --assume-yes update


Move space from one partition to the other

If you want to add the space from /dev/sda3 to /dev/sda5, then rather than resize partitions, I recommend you use LVM tools to expand the volume group, and to then add logical volumes or increase the size of existing logical volumes. There are numerous references online to how to do this, such as:

Adding Disks With LVM
How to grow LVM partition to include newly released partition (now unallocated space)
How do I add space to LVM's root partition without shutting down my VM?


Try rolling back the kernel to 4.15.0-43 (or -42). There's known issues around external displays (though I've had the same lock-up symptoms you described the last two days). My kernel updated to 4.15.0-44 yesterday (check with grep 4.15.0-44 /var/log/dpkg.log). I suggest installing ukuu to manage kernels.

I'm also running Kubuntu 18.04 LTS, 64 bit on an i7-8850h, 32 GB RAM.

Links:

Redit link about the kernel bug
Ukuu Kernal Manager - FOSS Mint


If you drag the Tor Browser Icon from the folder you extracted to to the Desktop, it will create its own Icon in the Taskbar (Launcher) and will coexist with the FF Launchpad, even in FF is running.


Auto boot and login to AWS Ubuntu server with Xfce

I cannot answer your question directly as I've never tried to setup rdp on linux, but I may have a better alternative.

I personally use x2go to get remote desktops on linux machines.  It uses ssh for encryption, and leaves the session running when you disconnect so you can pick up where you left off when you reconnect, and the best part, there are clients to allow you to connect to the x2go server for linux, Windows and Mac, so it's possible to use it just about anywhere.


deja-dup wrong behaviour with google drive

I just noticed I was having this issue myself. After much trial and error, I've found that deja-dup isn't using information from the google accounts you have connected to ubuntu. Instead it's set up itself as a connected app directly on your google drive.
If you open google drive on the account you no longer wish to back up to, and go to settings -> manage apps, you can disconnect deja-dup from the account there. Then when you next back up it should prompt you to connect to a google account, and you can do this with the second account instead.


USB-AC56 - Official Asus drivers fail compilation with error 'file_path redeclared as different kind of symbol'

Thanks to chili555 for the comment - using the https://github.com/jeremyb31/rtl8812AU.git repo seems to have worked.

Instead of pulling the repo with git I just downloaded a zip from master at 1965843f9096ccb7f16ed065f6d9cc3885cc31c1, unpacked it then did:

sudo apt-get install dkms
sudo dkms add ./rtl8812AU
sudo dkms install rtl8812AU/5

and restarted and the device appeared in the list of connection options.


Install Ubuntu Touch 14.10 on Samsung Galaxy S2 I9100

It was not released for S2, no it is not available.  Reference: https://wiki.ubuntu.com/Touch/Devices


So the easiest answer was Arronax, a program specifically for the GNOME desktop environment that creates a .desktop file for you and places it on your desktop. This still wasn't exactly what I wanted (I wanted it to be on the favorites bar when I clicked Activities) but it's close enough. The Arronax page explains how to install Arronax, then you can open the standalone app fill in the "Title" with the name of the program and the "File or URL" with a link to the program on your pc and the program does the rest.


How to preserve highlighting and annotations created in Okular?

Since KDE 4.2, Okular has the "document archiving" feature. This is an Okular-specific format for carrying the document plus various metadata related to it (currently only annotations). You can save a "document archive" from the open document by choosing File → Export As → Document Archive. To open an Okular document archive, just open it with Okular as it would be e.g. a PDF document.

Since Okular 0.15 you can also save annotations directly into PDF files. This feature is only available if Okular has been built with version 0.20 or later of the Poppler rendering library. You can use File → Save As... to save the copy of the PDF file with annotations.

read here: https://docs.kde.org/stable5/en/kdegraphics/okular/annotations.html


14.04 installation - The partiton table format in use on your disk

You should be fine. That message is more informational and you already have the requisite partition, the second one, labeled "boot".

The "boot" partition will be used by grub for your ubuntu uefi files.

Do not confuse this boot partition with the /boot directory / partition used by ubuntu to store the kernel, grub, and other boot files.


How to configure Ubuntu for public kiosk use?

Great instructable on the topic here
http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/


How can I run a bash script without affecting the file system?

Try using an overlay, with a chroot. First, decide the path you want to chroot to, and make sure it exists, and similarly for the path you will overlay on / (which is where modifications will go):
mkdir -p /chroot
mkdir -p /tmp/tmproot

I chose a directory in /tmp/ as it's a tmpfs on my system (possibly unadvisable, but OK for me), so no changes should reach the disk. You can use a squashfs and mount it somewhere, and use that as the overlay, but that has the problem of being read-only, I think.
Now:
$ mount -t overlayfs -o lowerdir=/,upperdir=/tmp/tmproot overlayfs /chroot/
$ chroot /chroot/ /bin/bash -l
root:/$ touch test
root:/$ ls
...  sys  test  tmp  ...
root:/$ logout
$ ls /
...  sys  tmp  ...
$ ls /tmp/tmproot/
root  test

If you make the upperdir independent of a physical disk (perhaps by using tmpfs), this should protect the lowerdir.
Note the creation of a root folder - that's for my .bash_history. A copy was made of the original .bash_history, and then appended to.


They're in the source:

scheduler/org.cups.cups-lpd.socket
scheduler/org.cups.cups-lpd@.service.in (the package building process would convert the macros here)

The Debian/Ubuntu maintainers have not included them in any Debian/Ubuntu packages.


I believe you can do this with 'iw'

Something like...

sudo iw dev wlan0 interface add vwlan0 type managed

replacing wlan and vwlan0 as needed, you may also need to set a MAC manually which can be done with

sudo ip link set dev vwlan0 address 12:34:56:78:90:12

replacing the MAC with whatever you want, then you just

sudo ip link set dev vwlan0 up

and you should be able to manage it as needed.


How to remove specific files multiple directories

Please do not manually remove files from the operating system.
Those files you mention get removed when you purge the package you installed. You can use the same commands you used to install and replace install with purge (ie. sudo apt purge mysql-server  and that will remove anything mysql related. Including database and configs except for manually added files (like a personal my.cnf)). Same works for apache and nextcloud.
You could leave the dependencies if you want (those are more dangerous to delete: check the text it comes back with for packages you do not want removed if it lists them).
In case you used remove  to remove mysql, apache2 and it left files you could remove them but I do not like to guess what files that are. You can remove files from your admin account with sudo rm {filename} from command line and use * as a wildcard.
So this command:
sudo apt-get install apache2 mysql-server -y
sudo apt-get install php zip libapache2-mod-php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-mysql php-bcmath php-gmp

becomes:
sudo apt-get purge mysql-server
sudo apt-get purge apache2
sudo apt-get purge php zip libapache2-mod-php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-mysql php-bcmath php-gmp -y

and try to avoid using -y as it will confirm every question automatically. There are occasions where you want to cancel the installation.
Again: the last command is dangerous. It removes "php" and "zip" and if you use those for anything else you do not want to remove it.
Contents of /var/www/html/ is considered personal. If you have content in there you can do a rm -rf /var/www/html/. "rm" removes files so make sure this is what you want to remove. If you have more than 1 website and you want to keep those do not use this.


Just a quick check and it seams that the package you are looking for is available in the existing software selection.

To install open terminal and type

Sudo apt install mothur

This should install the program you are looking for
You will then be able to find it in the applications installed on your system.

This is better then trying to use, make, if you are unfamiliar with Linux.


Merge unallocated space with Ubuntu partition?

You don't merge, you move/resize using gparted.

In your case, it's pretty easy. Boot to a Ubuntu Live DVD and start gparted. In gparted, you move your Windows C: partition left, then move the 27G Ubuntu partition left, then resize the Ubuntu partition to the right into unallocated space.

Just in case Windows complains when you try and boot it, you should have a Windows installation disc ready if you need to repair a Windows no booting problem.

Note: of course, backups are ALWAYS recommended

Update: I reviewed your update that included a gparted screenshot. Gosh your Windows partition is big! I'd shrink it. After moving the Windows partition left using gparted, then boot Windows, and INSIDE WINDOWS, using Windows DISK MANAGEMENT tool, reduce its partition. Then the rest of my instructions still holds true.

Update 2: For your Windows error, run a chkdsk C:/f to resolve any file system problems.

Cheers, Al


Should I accept Ubuntu updates if I'm running 10.04 netbook remix or move to Lubuntu?

My opinion is that you should move to Lubuntu. The reason of it is that it's much lighter than Ubuntu and will make your system performance much better. Be sure to make a clean install (it's recommended) and after it you can install OpenOffice, Firefox, etc...


Most likely you will find the answer here.
https://www.thinkwiki.org/wiki/ThinkWiki


The hostname nassa.local seems to indicate that you are using avahi. Make sure avahi-daemon is up and running on all involved hosts (e.g. ping nassa.local should work)


error "fatal error: linux/smp_lock.h: No such file or directory" during installation of VMWare tools on Ubuntu 12.04.2

A voice from the future:
I am compiling 5.9.0rc5.
The source tree is exactly what came off linux.org.
My platform:  Ubuntu 20.04.1 (upgraded from 18.04.5 a week ago.
No VmWare, just a pristinekernel tarball, and yet:
DKMS make.log for virtualbox-guest-6.1.10 for kernel 5.9.0-rc5 (x86_64)
Wed 16 Sep 2020 01:35:06 AM EDT
  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.10/build/vboxguest/VBoxGuest-linux.o
  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.10/build/vboxguest/VBoxGuest.o
  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.10/build/vboxguest/common/string/strformatrt.o
  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.10/build/vboxguest/combined-agnostic.o
In file included from /var/lib/dkms/virtualbox-guest/6.1.10/build/vboxguest/VBoxGuest-linux.c:36:
/var/lib/dkms/virtualbox-guest/6.1.10/build/vboxguest/r0drv/linux/the-linux-kernel.h:141:11: fatal error: linux/smp_lock.h: No such file or directory
  141 | # include <linux/smp_lock.h>
      |           ^~~~~~~~~~~~~~~~~~
compilation terminated.

The error is in TWO places;
/usr/src/virtualbox-guest-6.1.10/vboxsf/r0drv/linux
/usr/src/virtualbox-guest-6.1.10/vboxguest/r0drv/linux

Find the old, forgotten lineS, surround with #if 0 and #endif,
run make install in the kernel source directory and be done.
I put the changes into revision control, etc. but these steps are not vital.
Oh, the Copyright is Oracle now, updated to 2020, but the code is pure 2003.


Try the rescue option (Ubuntu boot repair) from the LiveCD, as you may be missing the bootloader (GRUB).


I had the same problem while using Nvidia GT 630.
Applications like Any desk which depends on OpenGL will not work properly on Nvidia drivers.

Based on this question in Ask Ubuntu, it is needed to remove Nvidia and switch back to default Nouveau driver to get it fixed.


Run ldconfig

As stated on the comment by steeldriver, execute sudo ldconfig. The system will become aware of any changes made.

Just restart

You should not need to change anything.

By default ld.so.conf has include /etc/ld.so.conf.d/*.conf. This commands makes the file include the contents of anyfile under /etc/ld.so.conf.d/ that ends with .conf, which includes include /etc/ld.so.conf.d/libc.conf which says:

# libc default configuration`
/usr/local/lib

Ergo I don't think you should need to add anything. Just restart your computer to let the software load any changes you have made. Although in most cases you just need to restart the specific service I am uncertain as to what you are changing here. A full system restart should do the trick though.

If your computer is missing libc.conf

If by any chance libc.conf is missing then create a file mylibc.conf to remember that you added this yourself. This file will contain the command to add /usr/local/lib.

Open terminal and execute:

sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/mylibc.conf

By the contents of ld.so.conf this file should make the system be load /usr/local/lib automatically.


using packagemanager to uninstall latest kernel?

Check in terminal if your kernel version is not 3.13.0-35-generic by using uname -r
then you can delete latest kernel (3.13.0-35-generic) by using this command from terminal:

sudo apt-get purge 3.13.0-35

then update your grub: use this command

sudo update-grub

and then reboot:

sudo reboot


While -p is the valid option to specify the port to connect to the ssh command, it is not for the scp command.

The -P (capital P) is the parameter to specify the port to connect to the scp command.

The -p parameter (with any value after it) is used to ask scp to preserve modification times, access times, and modes from the original file. Like the -p option of the local copy command, cp.

By the way, 22 beeing the default SSH port, no need to explicitly specify it to the command line.


How to Update microcode before boot, TSC_Deadline disabled due to Errata

Microcode isn't updated at [0:000000]. This is what my system revealed:

$ cat /var/log/syslog | grep microcode
Feb  4 15:24:28 alien kernel: [16109.540807] microcode: microcode updated early to revision 0xba, date = 2017-04-09

and from:

$ cat /var/log/syslog.1 | grep microcode
Feb  3 08:08:07 alien kernel: [    1.152389] microcode: sig=0x506e3, pf=0x20, revision=0xba
Feb  3 08:08:07 alien kernel: [    1.152899] microcode: Microcode Update Driver: v2.2.
Feb  3 08:08:53 alien kernel: [    1.150298] microcode: sig=0x506e3, pf=0x20, revision=0xba
Feb  3 08:08:53 alien kernel: [    1.150765] microcode: Microcode Update Driver: v2.2.
Feb  4 08:30:54 alien kernel: [57834.131308] microcode: microcode updated early to revision 0xba, date = 2017-04-09
Feb  4 08:32:28 alien kernel: [    1.143969] microcode: sig=0x506e3, pf=0x20, revision=0xba
Feb  4 08:32:28 alien kernel: [    1.144257] microcode: Microcode Update Driver: v2.2.

...Intel Microcode is updated about 1 second into the boot when using an NVMe M.2 SSD.

Your question might be closed as a duplicate soon and I just wanted to post this information before it was closed.

If you search "TSC_DEADLINE microcode" you'll find a similar question here in Ask Ubuntu that also might be closed as a duplicate soon.


rc.local does not execute all of the commands

The problem was that the following commands require X server to be running, but rc.local executed prior X initialized, therefore commands can not be executed.

Solution:

In Ubuntu 12.04 invoke "Startup Applications" app, and put these commands there.


Why is vnc not able to change the keyboard layout when the main display can?

Solution (This should work for all fcitx users):
First, make sure that fcitx is your default input method.
Then, on ~/.vnc/xstartup add the following code after the line that starts the desktop environment. (eg. startxfce4 & or gnome-session & or etc based on your environment)

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
fcitx &


You could disable password-based login on the ssh server and remove the iptables rules. Nobody will then be able to brute-force a password-login because it's disabled, but trusted users with their key-pairs would be able to login from everywhere.

To limit the usage of the keys, you can specify which hosts they can be used from with the from parameter in front of the key in authorized_keys, for instance:

from="255.255.255.255" ssh-rsa ASDFqwerty[...]


understanding bash redirection using > char

Bash (and other POSIX-compliant shells) follow two  rules that explain this behavior:

Redirection happens before commands run.
If a file exists, it is truncated (emptied) when redirection goes to the file as in > myfile.txt.

So because there is > redirection the contents of the myinput.txt get discarded and cat prints nothing, cat exits and closes the pipe and tr closes the file without writing anything to it. Order in which commands start is not particularly important ( and it is not guaranteed, see Gille's answer here). But what is important is that redirection occurring before commands starting; that is each command's standard streams are prepared, and that's what causes empty file in the end.

But it is possible to edit the same file  tools like sponge, just not in this particular case.

See also:

Redirection executed before a command


How do I start skype in the system tray?

In Settings - General check the box that is labeled "Start Skype minimized in the system tray." That should get it to open minimized. (It does in gnome 3 at least)


Where do Shift PrintScreen screenshots go in Ubuntu 18?

The Screenshot tool bundled with Gnome does exactly what you described
It can sreencast too

Screenshot pictures are saved in you default Pictures directory
xdg-user-dir PICTURES

Screencast videos are saved in the home Video directory
xdg-user-dir VIDEOS

Screenshots:
Prt Scrn to take a screenshot of the desktop.
Alt+Prt Scrn to take a screenshot of a window.
Shift+Prt Scrn to take a screenshot of an area you select.

Screencasts:
Ctrl+Alt+Shift+R start recording the desktop.
A red circle is displayed in the top right corner of the screen when the recording is in progress.
Ctrl+Alt+Shift+RStops the recording.

Please read the manual:
https://help.ubuntu.com/stable/ubuntu-help/screen-shot-record.html.en#screenshot


How do I inhibit suspend from the command line?

Use xdotool instead:

  sudo apt-get install xdotool

Then, in a bash loop like this

while true ; do
    DISPLAY=:0.0 xdotool key Shift_L   # send a "harmless" keypress to Xorg
    sleep 5                            # wait a little bit and do it again
done


If there is a way to connect to the Internet, you can install the following packages in order to use wireless connections.

Open the Software Center and search&find&install these packages:

b43-fwcutter

firmware-b43-installer

or you can install these packages with a terminal command(Short cut:Ctrl+Alt+T):

sudo apt-get install b43-fwcutter firmware-b43-installer

If your pc haven't a another internet connection, you can download driver packages from the following urls.

http://packages.ubuntu.com/quantal/b43-fwcutter

http://packages.ubuntu.com/quantal/firmware-b43-installer

Please, be careful of packages architecture(The packages architecture you will choose must be same as your Ubuntu architecture.)

After this operation reboot your system and connect a wireless network.


MultiMedia Keys not Recognized in Custom Shortcuts

It's a conflict with Chrome.
When I disable media key support via the config (chrome://flags/#hardware-media-key-handling). I was able to use media keys with Spotify without any additional Ubuntu configuration.


You should use gparted from a live-cd/usb.

For example with the image.iso of Gparted:

http://downloads.sourceforge.net/gparted/gparted-live-0.19.1-4-i486.iso

The bootable GParted Live image can also be installed on a Cd/Usb flash drive.

After you download the imagen.iso, run the Unetbootin program and follow the instructions in the GUI to install GParted Live on your USB flash drive.

or

From a terminal, run the following command using the gparted .iso file name and Cd/Usb device path:

$ sudo -i
# dd if=/path-to-gparted-live.iso of=/dev/sdx bs=4M; sync

Note: replace x by their corresponding drive (b-c-d-e)


Missing option to lock screen after last Remote Desktop session disconnects

Try this to enable it (press alt+f2 and type it on the box or run it on a terminal)

gsettings set org.gnome.Vino lock-screen-on-disconnect true

To disable it

gsettings set org.gnome.Vino lock-screen-on-disconnect false


"Failed to download repository information" when trying to change mirrors

The problem is the PPAs mentioned in the error message, not the official repositories mirror:

https://deb.opera.com/opera-stable/dists/stable/InRelease

http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/xenial/main/binary-amd64/Packages

Either disable or remove them altogether. Changing the mirror has no impact whatsoever.

Additional information: How can I fix a 404 Error when using a PPA or updating my package lists?


Can't access Ubuntu installed through VMware "please wait for the graphical environment to launch"

You should use newer version of VMWARE which is now available.


To fix the olcRootDN create a new file replace-olcrootdn.ldif

dn: olcDatabase={1}mdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: <admin DN>

After this, run the command:

sudo ldapmodify -Y EXTERNAL -H ldapi:/// -f replace-olcrootdn.ldif


Pass/set `current directory` to/for a shell script from Java in Ubuntu 16.04

Generally, you should use java.lang.ProcessBuilder instead of Runtime.exec().

ProcessBuilder has some nice features like the ability to modify environment variables or setting the working directory.

Here an example:

List<String> command = new ArrayList<String>();
command.add("./generate");

File workingDirectory = new File("/usr/share/taskd/pki/");

ProcessBuilder pb = new ProcessBuilder(command);
pb.directory(workingDirectory);
Process p = pb.start();


As suggested from comments:

snap remove gnome-system-monitor
sudo apt install gnome-system-monitor

worked for me.


What steps are needed to troubleshoot adding a new primary LCD TV as a monitor?

I think I created my own problem.

Just before plugging into the new LCD TV, I had done a "sudo apt update / upgrade" and after doing some research later realized that hammered my Nvidia proprietary driver settings. To fix and use the new TV I did the following (from memory so excuse me if I missed noting a step):

I.   Unistalled / Reinstalled Nvidia driver

 a.  Dropped to non X command line (ctrl + alt + f1)
 b.  Stopped the x-server (sudo service lightdm stop)
 c.  Ran the nvidia-uninstall tool (nvidia- <tab>)
 d.  Ran the Nvidia driver install (sudo sh NVIDIA-xxx.run)

II.  Rebooted box

III. I got a desktop that was virtual and too big so to adjust I

 a.  Right-clicked on the desktop
 b.  Selected settings app
 c.  Clicked on the "Display" setting app
 d.  Turned OFF the built-in Intel graphics display so that my GPU was driving the screen
 e.  Adjusted the artifact size (don't remember what it was called) to make things readable at hi-rez.
 f.  Edited ~/.config/monitors.xml
 g.  In the <output name="HDMI-0"> section, edited the width / height
     to match MAX resolution of my 4k TV

    <width>3840</width>
    <height>2160</height>

And (to the joy of my kids) we can now play hi-res Steam games in the family room on the big screen TV!


GRUB4DOS error after installing Kubuntu 19.04 and replacing GRUB with Windows 10 bootloader on dual boot

I would recomend booting back ontot the live USB you used to install ubuntu,

opening a terminal with these keystrokes: Ctrl+Alt+T and pasting this command into it :

 sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt update && sudo apt install -y boot-repair boot-info

this will fix your dual boot, putting back grub.

you'll be able to boot into both your windows and your ubuntu

later if you want to have windows show up first in the list (or any other change/enhancement), you can boot to your ubuntu, open a terminal again and run :

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

you can then open grub customizer from your start menu. the rest is pretty intuitive.

there's mountains of evidence online to back the idea that grub (or systemd or any other) are supperior in every way to windows bootloader, starting with wikipedia :

https://en.wikipedia.org/wiki/Comparison_of_boot_loaders
https://www.quora.com/What-is-the-difference-between-GRUB-and-the-Windows-bootloader
Grub or Windows Bootloader for Dual Boot?


Alternative to Notes app from MAC OSX lion

Tomboy Note. You will find it in Ubuntu Software Center. If you want to install from terminal, then issue this command

sudo apt-get install tomboy

there is also basket, xournal, kjots for similar task.


Share a folder on VMWare Ubuntu 14 to a host Windows10

The only way to achieve this is to share host folders to the guest, and then have them mounted in the proper locations.  The inverse sharing method, from VM to Host, don't exist in the same way unless you set up a fileshare system that Microsoft would support (i.e a Samba share), and then mount it from the local IP on the VM (likely a local IP on your system only, or on your Bridged network, I don't know.).

Note that because this is a non-trivial process covered in other questions/answers and site guides, I don't go into detail here, however there is a very good guide for this on the Ubuntu Help Documentation

The process for setting up such shares is... painful... though... so it's probably far easier to just install openssh-server on the VM, and then use FileZilla to connect over SFTP to the VM and then access the user's home directory and pull data off that way.  It's not a nice file share, mind you, but it's probably the easiest to implement.


virtualenv - Can anyone please rectify this problem?

I have no score to write a comment. So answer here.

Usually instaling by sudo xxx yyyyy do not bring enough permissions to change directories an files.

A good work around is to open a terminal, log as root and install:

$ sudo -i
password for rootname:
$ pip install virtualenv

Now, the instaler has full rights


Why won't my command line work in a launcher (menu or desktop)?

I found a solution to this.

First, I altered the (one-line) file I was launching.  I added the cd command needed to ensure the .jar file was executed in its own folder to that file, rather than trying to put it in the launcher's command field.  This gave the following as the file I was launching:

cd "/home/[user]/Downloads/Wild Card Creator 1-6-2/"
java -jar "libs/Wild Card Creator-1.6.2.jar"

After verifying that this would still run the target program when launched from a terminal, I was able to simplify the launcher, eliminating the compound command.  I found I still had to manually expand the ~, however, so I wound up with the actual launcher command being:

"/home/[user]/Downloads/Wild Card Creator 1-6-2/WildCardCreator.sh"

This now launches the program successfully with a single click (I have my desktop set to launch on single click).


Windows and Linux on different HDD and no grub, possible?

The direct answer to your question is no.

However, it is possible to achieve your end goal by installing Ubuntu (and thus GRUB) to the mSATA without the other drive connected.

Next, install Windows to the other drive without the mSATA disconnected.

Then connect both, and set the other drive before the mSATA in the boot order.


The memory minimum requirement for a normal desktop version is 512 MB.

On your main computer, you can download the Ubuntu Desktop iso image and create a bootable USB / DVD on it. Here is the instruction for creating a USB stick on Windows. Don't forget you can try Ubuntu without actually installing it.

(USB is highly recommended as you might want to try some other light-weighted distro like Xubuntu, Lubuntu for your netbook, if it's slow with normal desktop edition on it. Please refer to the "Lightweight GUI alternative" section in the requirement wiki page.)


16.04 IntelliJ IDEA Desktop Entry not working

There is no option as of right now for automatic pinning of the .desktop file to the launcher of an application that was just installed. It does not just include IntelliJ but many other applications.

Technically speaking , there are ways to append an icon to the list of icons on the launcher , however most developers don't use it and leave that option up to the user. Hence you have to manually pin the Launcher icon. Otherwise, once the program exits - the icon disappears from launcher, which is the proper behavior of any app that is not on the list of the launcher favorites.

As for the .desktop file itself - it is created.

Checking only the Create a desktop entry option creates the file in ~/.local/share/applications/ folder, which is typically where the launcher entries for unknown or user-specific apps go.

To confirm that , I've ran this after installation:

$ ls ~/.local/share/applications | grep idea
jetbrains-idea-ce.desktop

Checking For all users option will create /usr/share/applications/jetbrains-idea-ce.desktop,  since the /usr/share/applications directory is available globally to all users.

Either of these is what you want, and they can be pinned to the launcher simply by dragging them from file manager or dash to the launcher. NOTE: the bin/idea.sh must be ran as your regular user - otherwise if you run it as root, the .desktop file will be root owned, hence you cannot drag that to the launcher. If that's the case, you can always sudo chown $USER:$USER /path/to/jetbrains-idea-ce.desktop

You can always copy either of those to Desktop if that's what you want, but .desktop files aren't literally supposed to be on the desktop.

As a last resort, you can always manually create a .desktop file.

In my example, that would be

[Desktop Entry]
Type=Application
Terminal=false
Exec=/bin/sh /home/xieerqi/intellij/idea-IC-145.597.3/bin/idea.sh
Name=Intellij
Icon=/home/xieerqi/intellij/idea-IC-145.597.3/bin/idea.png

Notice , that this is different from the example in the link you provided . The #!/usr/bin/env xdg-open is unnecessary and Exec line actually runs /bin/sh and the idea.sh as parameter to it. Note that this .desktop file needs to have executable permissions, otherwise you will receive a warning "Untrusted application"


Unable to boot ubuntu 13.04 alongside windows 8

In the log we see that you answered No to the question Do you want to activate [Backup and rename Windows EFI files]?.
Try again but this time answer Yes.


trouble with installing ubuntu 12.10 from usb

Here is a thread that might help. In addition to renaming the files, it mentions that formatting the USB key as FAT16, not as FAT32, might help. Some people complained that using Pendrivelinux installer caused some trouble.


Cannot upgrade Android Studio from 3.5.0 to 3.5.1

The upgrade was possible after cleaning the contents of sdk/build-tools folder.


Looks like something broke the Pip3 packages. You can reinstall it with:

sudo apt install --reinstall python3-pip


Extending Python lightblue module to use multiple bluetooth dongles

On Linux, lightblue internally uses the PyBluez library, which doesn't currently allow a socket to opened on a specific HCI device. PyBluez internally uses the Linux bluetooth sockets functionality, so it depends on whether that allows sockets to be created for a specific HCI device. My guess is that it doesn't, else this functionality would have been exposed in the PyBluez API, but it would be worth checking. If it's possible, then obviously PyBluez and lightblue could be changed to allow as well.


Why are the positions of the windows of the same application in a birdview not fixed?

And also such problem exists with gnome-shell, but there is a fix for that with Native Window Placement extension by Webupd8 team, may it can be a clue to fix this in unity.


Ubuntu 12.04.4 x64 - How to disable SSH daemon

I do not think you are understanding the thread you linked or the ssh server. In the thread you linked, the OP had been cracked, likely because of a weak password, but we do not know. As a result, a cracked server called sshd was installed and running. This is not the same thing as the ssh server in the ubuntu repositories.

By default, the ssh server is not installed or running on Ubuntu, so unless you installed it, it is not installed or running.

Also, by default, the root account is locked. So unless you unlocked it, even if you have the ssh server installed and running, root can not log in.

See: https://help.ubuntu.com/12.04/serverguide/openssh-server.html

and

https://help.ubuntu.com/community/SSH/OpenSSH/Configuring

and

https://help.ubuntu.com/community/RootSudo

and

https://wiki.ubuntu.com/BasicSecurity

To check if the server is installed:

sudo dpkg -l | grep ssh

To see if it, or any other server, is running, run

sudo netstat -ntulp


Landscape - "Unable to correct problems, you have held broken packages."

Figured it out on my own. The issue ended up being that python-convoy (one of landscape-server's dependencies) couldn't be installed, so I decided to manually install it. I ran wget http://mirrors.kernel.org/ubuntu/pool/universe/c/convoy/python-convoy_0.2.1+bzr39-1_all.deb and dpkg -i python-convoy_0.2.1+bzr39-1_all.deb. Since landscape-server requires at least version 0.4.1, I ran sudo apt upgrade in order to upgrade it to that version. I then ran sudo apt install landscape-server-quickstart, and everything installed perfectly. All I had left to do was set up Landscape, which was fairly painless.


What key for Ubuntu option during pre boot (small twist)?

Here what they say in this link

The user may be able to display the menu in one or more of the following ways:

Holding down the SHIFT key early in the boot process until the menu displays. GRUB 2 searches for a depressed SHIFT key signal during boot. If the key is pressed or GRUB 2 cannot determine the status of the key, the menu is displayed.

Pressing the ESC key during a 3 second window as GRUB 2 runs.


Why the latest gnome-shell version can not be installed on LTS versions?

A strict answer to you question "Why?" is:

Because the maintainers of the repositories decided to not port it to 14.04, as you can see when filtering the versions of Ubuntu (gnome3, gnome3-staging).

Probably you also wanted to know whether there is an easy way to install it. The answer is no. Why?

Because apparently it is not compatible with Trusty, too unstable on it and no one have yet it officially ported.
You can try to compile and install it by following the official Gnome compile guide.

Finally, I just want to point out that your behaviour is contradictory. One uses LTSs because wants stable software (although maybe older). If you want to use new (maybe-not-so-stable-on-Ubuntu) software, you should move to the latest Ubuntu version or, even better, change distro and go for a rolling distro.

Installing the latest software (via PPAs or just by installing the debs) on a possibly older LTS release will make it more unstable than the last non-LTS.


To Uninstall the Wubi installation from Windows just go to Control Panel>>Add/Remove software and remove from there. It uninstalls like any application that you install in Windows

In case something happen to the boot then boot from windows cd and in recovery mode type fixmbr that would fix it..


I would write

if [ -e "$Backup_File" ]; then
    echo "Today's Backup File Exist's" >> $Log_File
else
    echo "Today's Backup File Not Found" >> $Log_File
fi
{
    printf "To: %s\nSubject: %s\n\n" "$Recipients" "$Subject"
    if [ -e "$Backup_File" ]; then
        echo "$Message_Success"
    else
        echo "$Message_Failure"
    fi
} | /path/to/sendmail -oi -t -f sender@example.com

You're writing the message with headers, and passing to sendmail. The -t flag forces sendmail to read the recipients from the messasge.


To fix that problem on my BeagleBone:

change etc/dnsmasq.d/SoftAp0

dhcp-option-force=option:dns-server,192.168.8.1

to your DNS, in my case 192.168.1.1

dhcp-option-force=option:dns-server,192.168.1.1

and delete

address=/#/172.1.8.1

Then

sudo service dnsmasq restart


How to replace default notify sound (drum roll) when logon and shutdown PC with custom sound?

system-ready.ogg is just a symlink to dialog-question.ogg

desktop-login.ogg is an actual file

Personally, in your case:

A) I’d add the .ogg file(s) you want played to that directory.

B) Copy desktop-login.ogg to desktop-login-orig.ogg (and any others you want to replace).

C) Make symlinks from system-ready.ogg and desktop-login.ogg to the files you want played (and any others).

But this is no real difference than what is written on the other question...


Want to default the guest account to a full-paged specific website in Safari

The tutorial Customize Guest Session shows how this can be done using the guest session feature.


What are the limitations of using an older ubuntu distribution when a new one is released?

Yes. Ubuntu 12.10 is not supported anymore and as such, third party software like Google Chrome might stop to work. Best is to just upgrade to the latest supported version (like 14.04) if you are able to.

From my experience, the community support is also generally better with later releases since over time more and more users switch to those newer versions. Community support will (to some degree) always be there, but is not guaranteed for all software or hardware.


Merge unallocated partition with ubuntu partition

It is possible to use GParted without a usb stick or cd. I have this working on several systems. What you do is place the GParted iso in your esp/EFI partition and add a custom entry to grub. You need enough free space for the iso which is about 400MB from my vague memory.
The details are here:
https://gparted.org/livehd.php#live-hd-grub
I followed the instructions in the NOTE part of the grub 2.x section.


Please see here. You have the same device and need the same fix, including a 64-bit installation:  Dell Inspiron 5720 Wifi (Broadcom BCM43142, Ubuntu 12.10)


Install Windows or Ubuntu first after clean wipe?

You should install Windows first, because Windows wipes out GRUB if Ubuntu is installed first, so in short you won't be able to boot your machine into Ubuntu, unless you re-install GRUB from a Ubuntu live USB stick.

As for partitioning, you need two separate partitions; because every OS uses a different file system, namely ext4 for Ubuntu and NTFS for Windows, I suggest partitioning using gparted from a Ubuntu live USB stick, install Windows then install Ubuntu.


First thing you can do is try a little debugging, although i don't think that the video card is the problem since ubuntu can technically run on an onboard graphics card but nonetheless try switching them out. Next thing is that what you are describing is a lack of power so try to put it in a powered hub or at least a USB port on the back.


How to fix Xubuntu LightDM Theme after installing unity.

Check the content of /etc/lightdm/lightdm.conf. To get back to the Xubuntu config, make sure the greeter-session parameter is set to 'lightdm-gtk-greeter', ...like this:

greeter-session=lightdm-gtk-greeter

To edit the file, run gksu leafpad /etc/lightdm/lightdm.conf.


Go to TTY console (Ctrl+Alt+F1) and after login write "sudo apt-get autoremove fglrx --purge" and then "unity --reset" and "sudo reboot". After reboot, things should start working and try reinstalling the driver or installing another driver. If after installing the next step of drivers gives the same error, repeat the process of the TTY console.


Some window buttons won’t change to left

Try

gsettings set org.gnome.desktop.wm.preferences button-layout 'close:appmenu'


No. Ubuntu is suited for Laptops, Notebooks, Netbooks, PC, Mac, Server and many others.

You can use DVD or USB drives to install Ubuntu.

To install Ubuntu alongside with your Windows 7, you have 2 options:

Using wubi or installing in a different partition or separated Hard Disk.

The first option is the easier, since it change your Windows 7 installation.

For the second option, you need a little bit more knowledge about Hard Drives and Partitions.

Don't be afraid to ask, we can help you, no matter what option you choose.


Errors when trying to update using apt-get

Try this:

Run gksudo gedit /etc/apt/sources.list
Add these  lines to it

deb http://it.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse

deb http://security.ubuntu.com/ubuntu precise-security main universe restricted multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security main universe restricted multiverse

deb http://it.archive.ubuntu.com/ubuntu/ precise-updates main universe restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ precise-updates main universe restricted multiverse

Save the file and quit the text editor.
Run sudo apt-get update.


mouse cursor moves but cannot click with 20.04LTS

So far I found nothing to resolve the issue.
But once happening the issue,

Press CTRL+ALT+F3 to go to a virtual console.
And then press CTRL+ALT+F1 to return back to gui screen.
As a result mouse click back to effect.

Currently everytime when mouse click lost, I do above.


The quickest way to select all / select specific text in Gnome Terminator:

Click at the start of the text you want to select
Scroll the window to the end of the text you want select
Shift + click the end of your selection
All text between your first click and your last Shift + click is now selected
Then you can Ctrl + Shift + C your selection out of there

It's not a keyboard shortcut, but it's a lot faster than click-and-drag to select text, that's for sure.


sudo apt-get autoremove <package name>
 sudo apt-get autoclean

If doesn't work :

remove sources.list file.and create new sources.list...

sudo rm /etc/apt/sources.list

Then, type in

sudo software-properties-gtk

This will open software-properties-gtk and a newsources.list will be created automatically.

Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.

Tick all the boxes then click on Revert then click close.

Need to restore default repositories

 sudo apt-get update && sudo apt-get dist-upgrade -y

(it is good practice to backup this file before installing to recover if such things happen)

Now install GIT :

 sudo apt-get install git


If you have already installed it using snap try refreshing with devmode and latest edge build.

sudo snap refresh cool-retro-term --devmode --edge

You can then run without sudo, that is

cool-retro-term

If you didn't install via snap, uninstall it manually, then install using snap:

sudo snap install  cool-retro-term --devmode --edge


tightvnc displays a gray screen on ubuntu 18.04 and gnome3

Please watch this, In this video completely explain your solution to resolve your issue:
https://www.youtube.com/watch?v=_8YZst2x9GE


I submited question on Launchpad and got answer, so just in case someone else have similar problem here is how I solved it:

sudo dpkg --force-all -i /var/cache/apt/archives/shotwell_0.18.1-1~trusty1_i386.deb

https://answers.launchpad.net/ubuntu/+source/qt4-x11/+question/252665


Maybe Xauthority issue.

Goto command mode using this command Select Ctrl+Alt+F2.

Enter your username and password, then check the .Xauthority file it is in /home/username

ls -la

sudo rm .Xauthority*


What's the default Python version in Ubuntu 20.04?

Ubuntu 20.04 has Python 3.8.2 as the default version. Python 2.7 has been moved to universe and is not included by default in any new installs.  Official Release Notes about Python


Try using ubuntu "desktop live cd" to start your installation as this allows you to modify & diagnose your SSD partition using GParted it also comes with APP/GUI mode. Once you can confirm that the drive is recognised by "live cd" then run the "Install ubuntu" process to track your issue further.


Screen intensity before and after inactivity

For 11.04 and earlier:

This is done (screen dimming) as a part of power savings while on battery power.

You can change this in "Power Management" in System settings.

Unselect "Dim display when idle" on the On Battery Power tab.

For additional information see

https://help.ubuntu.com/11.10/ubuntu-help/power-batterylife.html
https://help.ubuntu.com/11.10/ubuntu-help/power-brighter.html


Ubuntu Server 17.04 - NUC6CAYS - Random freeze after Grub

Change the bios options according to this procedure and checks :

Press F2 when prompted during boot to enter BIOS Setup.
Press F9 to set all BIOS options to default values.
Select Advanced.

a. On the Devices and Peripherals > SATA menu, Chipset SATA Mode to AHCI.

b. On the Boot > Boot Priority menu, in the Legacy Boot Priority pane, Legacy Boot is disabled (unchecked).

c. On the Boot > Boot Configuration menu, in the UEFI Boot pane, OS Selection is set to Windows 8.x/Windows 10.
Press F10 to save and exit BIOS Setup.
Proceed with the installation of the operating system.


How extend a wallpaper through multiple screens in 18.04?

Settings for the positioning of the wallpaper are not exposed to the user in Gnome Shell (sigh...). The setting is however available in Gnome Tweak. Gnome Tweak is not installed by default in Ubuntu 18.04 (and 17.10), so you may need to install it first. On the "Appearance" tab, you will find a "Adjustment" dropdown under "background". To extend your wallpaper across screens, select the option "Stretched".

For more advanced users: the setting may also be enabled with dconf-editor, which also is not installed by default. A third way is to change the setting through the terminal, e.g.:

gsettings set org.gnome.desktop.background picture-options 'stretched'

You can reset to the factory default:

gsettings reset org.gnome.desktop.background picture-options


Ubuntu Server 18.04.2 LTS Raspberry Pi3b+ can't boot/install

Get image for RPi 3B+ from here. This page have install instructions also. Etcher is not suitable for that. This images designed to boot on RPi, others will not work.

Short install inctructiuons:

xzcat ubuntu.img.xz | sudo dd bs=4M of=/dev/mmcblkX

Or using ddrescue (must decompress the image first):

unxz ubuntu.img.xz
sudo ddrescue -D -d --force ubuntu.img /dev/mmcblkX

Rename /dev/mmcblkX to your sdcard device. If you installing from windows - just unpack and write image by Win32DiskImager


`sudo` is not using the right binary, even when $PATH is correctly passed

Ok, here's the problem. When I was troubleshooting, I wanted to find the value of $PATH inside sudo. However, with sudo -E echo $PATH, my user (non-sudo) shell was expanding it automatically, so sudo just saw

echo /home/user/.local/share/virtualenvs/environment-_Sko9eTd/bin:/usr/bin/:......

Trying sudo -E env tells us the real story:

LANGUAGE=en_GB:en
# more environment variables ...
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# ^^ doesn't include my Pipenv path

so in fact, sudo -E was not passing $PATH. To fix this you can then see this answer on a similar question. Essentially you just add

Defaults env_reset
Defaults env_keep += "PATH PYTHONPATH"

to your sudoers file with visudo.


i would not recommend the regular desktop but openbox or fluxbox


Dual boot Ubuntu 20.04 + win 10 directly boots windows, doesnt give option of dual boot

Have you tried change the boot order in BIOS?
Change Ubuntu into first order so that it will first enter Ubuntu grub.


Unable to update software centre from terminal

From the message shown to you, it seems you have another tool running with elevated privileges. Close any instances of Software Center or Synaptic Manager and try again.


To remove this icon, alt+right-click on the icon and click remove in the menu.


Servers running from chrooted Ubuntu on HP TouchPad?

I'm running a boinc service inside a chrooted debian. I use this script to chroot (argument 1 is the location, like /media/debian)

#!/bin/sh
mount --bind /dev $1/dev
mount --bind /proc $1/proc
mount --bind /sys $1/sys
EMAIL=you@mail.com LANG=C HOME=/root chroot $1
umount $1/dev
umount $1/proc
umount $1/sys

Rerouting proc and sys is necessary in order to reuse network devices. It also works for apt-get dist-upgradeing the otherwise dual booted debian or yum upgradeing a dual booted fedora.


Is there a pdf reader that displays animations?

You can use the Multimedia package to embed movies (mpg, mp4) in a way that you can play them in Okular. Minimal example:

\documentclass{article}
\usepackage{multimedia}
\begin{document}
\movie[height = 0.6 \textwidth,width = 1.0 \textwidth]{}{animation.mpg}
\end{document}

from Animation in PDF presentations, without Adobe Reader?


copying files with a string in their name from one folder to another

grep -f allows you to use text.txt as a source for patterns.

#!/bin/bash
for i in source_dir/*.png; do
  if grep -Fq -f text.txt <<< "$i"; then
    mv -t dest_dir "$i"
  fi
done

$ ls
dest_dir  script.sh  source_dir  text.txt

grep options:

-F Interpret patterns as fixed strings, not regular expressions.
-q Do not write anything to stdout.
-f Obtain patterns from FILE, one per line.

Here strings:

<<< A variant of here documents, does variable expansion before sending the string.

mv options:

-t Move all source arguments into -t directory.


How can I get the Tripp-Lite KVM Switch work on Ubuntu?

Restart your server or computer with the port it's on selected and the kvm plugged, no  drivers needed.


Cannot open folders from wi-fi network [20.04.2 LTS]

I've solved this issue by enabling "Guest access" on Ubuntu.


Ubuntu's MIR, and Gnome-Shell's on Wayland = Ubuntu problems since 13.10?

In GNOME 3.10 Xorg will still be the default display server as stated in https://live.gnome.org/Wayland, however in the future version of GNOME (3.12), Xorg is going to be fully replaced with Wayland, yet maintaining some degree of Xorg compatibility.


EDD is short for Enhanced Disk Drive Services and comes with the BIOS interrupt INT 13H. So without this extention your BIOS can only address approx. 8GB. When EDD is activated within grub it sometimes seems to introduce the problem you described. So you can disable it by adding edd=off to grub's menu.lst or add it directly to the grub commandline. To my knowledge it is safe to add this line. This should not introduce other problems (in some corner cases the font during boot is very large).


From the sounds of it you may have in inadvertently tampered with the linux-image related files inside of /boot. I know there was a security update yesterday (21-1-2016) for 15.10 which included a patchlevel update (4.2.0-25) to the 4.2 kernel (the default kernal for Wily) to address the key ring exploit.

Your first port of call may be to, from within your working Linux build: download Ubuntu 15.10 http://www.ubuntu.com/download/desktop, create a bootable USB.  Then boot to USB (you may have to alter BIOS boot settings depending upon your setup) and see if you can then inspect the partition that you have Ubuntu 15.10 installed on (namely /boot.).


Ubuntu supported file systems and cross OS linking

ntfs3g is from Microsoft partner Tuxera.  If you ask Microsoft for ntfs/exfat license on Linux, Microsoft will tell you to find Tuxera(or Paragon, of course). NTFS is now considered fully working except that ntfs3g does not have journaling feature and slower due to its fuse-based nature
There's nothing prevent you use symbolic link 'to' other filesystems.  You don't need any special software support.

However I suggest against creating symbolic link 'on' ntfs drive, since Windows will see them as file system errors.

You will also need to check ~/.config/user-dirs.dirs points to correct locations, because Gnome sometimes points those folders to $HOME as fallback if you remove the default folders.  After create symbolic links, you might want to change them back.


Always able to read .eps files, now can't open/convert this specific one

on Ubuntu 16.04.4 LTS it was enought to comment/remove the lines in /etc/ImageMagick-6/policy.xml marked below. That is right after the <!-- disable ghostscript format type --> remove those lines.

<policymap>
   ...
  <!-- disable ghostscript format types -->
  <!-- comment or remove the lines below
  <policy domain="coder" rights="none" pattern="PS" />
  <policy domain="coder" rights="read|write" pattern="EPS" />
  <policy domain="coder" rights="none" pattern="PDF" />
  <policy domain="coder" rights="none" pattern="XPS" />
  -->
</policymap>

As the answer you linked in your question.


Ambiance theme looks wrong after trying out GNOME Shell

Today after installing Gnome Shell from the Software Center in Ubuntu 12.10 my Ambience and Radiance themes got corrupted as well. I found this post on the Ubuntu Forums which lead me to the solution for the problem.

The problem seems to be that after installing Gnome Shell the default theme is Adwaita (in gnome-tweak-tool). It tells me that Adwaita is the default and before it was Ambiance. And because of this when I select the theme Ambiance some components of Adwaita persist, especially selected items in the menu bar in Gnome Classic appear as gray text on gray background.

I noticed that this, in contrast to what nils8950 said, only happens with GTK2 applications, not with GTK3 applications.

So after reading that Ubuntu Forum post, I looked at the contents of the file ~/.gtkrc-2.0 which is a hidden file in your home directory. The contents of this file looked as follows:

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT
include "/usr/share/themes/Adwaita/gtk-2.0/gtkrc"
include "/home/serrano/.gtkrc-2.0.mine"
# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT

Which explains the problem. You can see that it loads a theme file for the Adwaita theme. You could simply remove the line that reads include "/usr/share/themes/Adwaita/gtk-2.0/gtkrc" to solve this problem, though the file clearly states DO NOT EDIT. You can see that this file was auto-written by a tool named gtk-theme-switch2. As an alternative, we can simply use that tool to change the theme back to Ambiance. If you don't already have it installed:

sudo apt-get install gtk-theme-switch

Then execute the tool from the terminal:

gtk-theme-switch2

Select Ambiance from the dropdown menu and press the Apply button. Make sure Ambiance is also selected in gnome-tweak-tool. You may need to restart some applications to see the changes (no need to reboot the system).


VMware 5 Player - Ubuntu 14.04 guest autofit - open-vm-tools

I switched to Ubuntu 16 and to Gnome 3 but the solution may work on 14 as well. (Unity support is being dropped apparently.)

I installed (sudo apt-get install)

open-vm-tools   and
open-vm-tools-desktop (a separate package!)

Then either of these made autoresize and copy-paste work:

vmtoolsd -n vmuser or
vmware-user-suid-wrapper

Apparently the latter is needed for proper vmblock handling (see this link in the manpages).

I will put the latter in my startup script.


Bad quality video DVB-T MPEG4 after a few minutes

i don't know man any problem in codec is very hard to solve it

but you can download and play umplayer this software very good as good player and download useful codecs mpeg , realplayer and others

http://www.umplayer.com/

so download it , install and see what will happened my bay fix this problem

and something other try to change settings specials video code in your program may be solve this problem

i've satellite card and have problem when i play it in windows with program like dvbdream

and solve when change another settings video codec in this program


How do I activate scrolling on my trackpad?

This problem was fixed in Precise. I cannot ascertain why.


How can I run an autorun file as root with no gui

Possible solutions based on the definition of 'autorun':

Windows 'autorun.ini' files places in media root directories such as CDs or USB sticks. DO NOT RUN AS ROOT, EVER.
Programs run when a user logs in: Running a script after the gui has loaded
Programs run when the computer starts: How to run a script during boot as root


How to display the 10 most recently started processes

Similar to this related answer

See process running over 30 minutes

you could use etimes as a proxy for lstart giving you a value in seconds that permits a simple numeric sort ex.

$ ps -eoetimes=,pid=,lstart= | sort -rnk1,1 | tail -10
    824 13816 Thu Feb  6 08:23:48 2020
    595 13851 Thu Feb  6 08:27:37 2020
    563 13865 Thu Feb  6 08:28:09 2020
    502 13882 Thu Feb  6 08:29:10 2020
    443 13896 Thu Feb  6 08:30:09 2020
     83 13965 Thu Feb  6 08:36:09 2020
     70 13966 Thu Feb  6 08:36:22 2020
      0 13983 Thu Feb  6 08:37:32 2020
      0 13982 Thu Feb  6 08:37:32 2020
      0 13981 Thu Feb  6 08:37:32 2020

From man ps:

   etimes      ELAPSED   elapsed time since the process was started, in
                         seconds.

   lstart      STARTED   time the command started.  See also
                         bsdstart, start, start_time, and stime.


I also have a FreeNAS system on my network, and I used the built-in Ubuntu backup (deja-dup) to back up to the FreeNAS via SSH. (I tried using SMB too, but I couldn't get it to work. This workaround may work for you.)
First, I added a new user to FreeNAS just for backing up Ubuntu. You can add this user via the FreeNAS administration GUI. Since I just need this user to do the one thing, I just named the new FreeNAS user the name of my test machine. If you need a step-by-step on how to do this, please check here: http://doc.freenas.org/index.php/Users
Second, I created a ZFS Dataset where the backup will happen. Again, I just named it after the machine. Here is more info on how to create a ZFS Dataset: http://doc.freenas.org/index.php/Volumes#Creating_ZFS_Datasets - I set a cap on the space available to that dataset (twice the size of the hard drive should be more than I'll ever need, but your mileage may vary). After that, I changed permissions so that the new user is the owner of this ZFS Dataset.
Then, I generated an SSH key on my Ubuntu machine. This Ask Ubuntu thread shows how in great detail: How can I set up password-less SSH login? - I didn't set a password for my key, because I don't think deja dup can handle that.
Next, I copied the SSH public key into the appropriate box in the FreeNAS User control panel for that user. Make sure your public and private keys are in your /home/(username)/.ssh/ directory on your Ubuntu machine. At the same time, I also set the ZFS Dataset I created as this user's home directory.
Finally, I set up the backup settings. Here's how my settings look:

Backup location: SSH (available in the dropdown menu)
Server: 192.168.x.x (type in the IP address of your FreeNAS device)
Folder: /mnt/(Pool)/(ZFS Dataset) (Use the full path of the ZFS Dataset you created.)
Username: (use the username you set up in FreeNAS)

Test it by trying to "Back Up Now". If you want it to back up automatically, don't set a password for the back-up. Finally, to schedule the backup to repeat, set the frequency on the "Schedule" tab in DejaDup and turn Automatic Backups to "On" in the Overview tab.
If for some reason it doesn't work, double-check your:

SSH private key is in the correct location on Ubuntu
SSH public key is in the correct location on FreeNAS
FreeNAS user has the correct permissions for the ZFS dataset

I took screenshots, and I have more links to stuff, but it seems like this I'm not allowed to add more with limited reputation. I'll see if someone else can try to add them. Good luck!


How to store network-manager settings in home

It's stored there because "All users may connect to this network"
ticked on that Wifi connection point. Open network indicator -> Edit
connections ... -> Select network -> Click edit... -> in general tab
untick "All users may connect to this network".

SOURCE


I think you could try this : How do I boot the live CD on a Macbook Pro?

hold alt/opt and select cd,

alternatively, you can install refit on the imac, insert cd and boot from the refit menu

http://refit.sourceforge.net/

It might work, unless the cd is really corrupted


Cannot import Zlib in Python 3.5 on Wily

The problem was that there was a rogue version of python in /usr/local/bin that was taking priority over Ubuntu's version. The solution was to remove this and allow Ubuntu's version to be the default.


Due to the complexity of the situation, I can't give a direct answer, but I can offer ideas on finding the solution to your problem.

Unless specifically instructed, it is Very Unlikely that firefox is accessing any Windows partitions. Just because the following file has the same name, that doesn't mean it is the file firefox is accessing. You can prove to yourself that firefox is not accessing the file you located by renaming it to XPCOMUtils.jsm.bak. Firefox renames a lot of its files locally, and will report to you the filename the server uses, even if it doesn't store it under that same name locally.
A script may be consuming a large amount of memory, and can cause your system to run out of physical memory and access swap memory. This will cause the system to slow down and access the harddrive. Otherwise, an internet script is not allowed to access your harddrive unless you specifically allow it.
Disable all your firefox extensions to eliminate them as a possible cause.

Try to find out which specific website(s) the problem is occurring on.

If the problem goes away after disabling your extensions, then it is likely that one of your extensions is at least partially responsible for the problem. Re-enable them one at time to try to discover which it may be. Some extensions take a lot of memory, so this too could contribute to the harddrive accesses.

If you continue to have problems after disabling your extensions, then your extensions are likely not the problem. It may be any of the following:

a bug in a plugin (like flash/java)
a bug in firefox
an intentionally malicious website trying to affect your machine
other?


How to install Snappy Ubuntu Core without a keyboard

Updated Answer

As of Ubuntu Snappy 16.04 , things have changes quite a lot. During the first boot you will need to have physical connection to Snappy. Best approach is via serial cable and screen ( see my old answer for details ) to configure it first, and then log in via ssh.

At first boot you will be able to configure wireless connection and register your Raspberry with Launchpad ( aka Single-Sign-On ) username. This means that you have to have your laptop's/desktop's ssh public key registered on Launchpad. So for this part what you need is this:

Have Launchpad ID created
Generate ssh keys with ssh-keygen
Copy your ~/.ssh/id_rsa.pub to Launchpad.
Now connect to Raspberry ( via serial cable or keyboard + monitor approach)
Configure wireless, configure your admin account. At this point Raspberry will contact Launchpad and get your ssh public key. You will be told with which username and ip address you can ssh into Raspberry.For example for me it was serg@192.168.0.84, so I did ssd serg@192.168.0.84. Because Raspberry knows your ssh public key, first ssh login will not require password.

These steps are pretty much shorter version of Ubuntu's official documentation, but the steps explained exactly as I followed them. I did run into a bit of issue where I had this error from ssh during first log-in:

sign_and_send_pubkey: signing failed: agent refused operation

This can be solved with simply running ssh-add.

Old answer ( relevant for pre-16.04 releases )

Let's assume your Raspberry Pi's ip address is 192.168.0.25. If you're trying to just run

ssh 192.168.0.25

It will obviously assume you're trying to log in with the same username as what you use on your laptop/desktop. But what I see from your question is that you just installed Ubuntu Snappy onto the SD card and booting the Raspberry. This means you can ssh into it with default username and password, both are ubuntu:

ssh ubuntu@192.168.0.25

Thus, you don't really need USB keyboard for that. USB keyboard would be necessary only if you've connected Raspberry to a monitor and trying to log in same way as on desktop/laptop.

Another things you can do is acquire  USB serial cable and log into it via serial console using  screen. This is personally what I do if I don't need to do anything network-related on my Raspberry. The slight nuance is that you need to properly connect pins on raspberry and use only USB 2.0 port on laptop/desktop. Once connected, Raspberry will power up, and you can issue a command:

screen /dev/ttyUSB0 115200

where /dev/ttyUSB0 is device file represented by your Raspberry and 115200 is the baud-rate, or speed, of transmission between the two machines. Keep in mind that  ending number of the device file may be different ( but in my experience it usually starts out with 0).


Ubuntu 16.04 unity has problems with icons and top panel after installing mate-desktop

Problem has been solved. I do

sudo apt purge --auto-remove *mate*
sudo apt install --reinstall --purge ubuntu-desktop

Maybe the first command is not safe and should be

sudo apt purge --auto-remove mate-desktop

You should try it first.


Acer Aspire 8951G Nvidia Optimus and HDMI issues

After lots of research it seems like the following applies(I upgrade to 12.04 Precise, but that shouldn't change things):

Bumblebee is a must to use the nvidia card. It works wonderfully.
As a note you need to run PlayOnLinux for games with optirun!

I installed the nvidia drivers (using nvidia-current), but that seems to break my 3D Unity. Still investigating.
The default Ubuntu display drivers correctly identified my projector, but not its resolutions.

The HDMI initially seemed broken with washed out colours and wrong resolution on my projector (which is a native 1280x768) and even the VGA output had wrong resolutions.
I used xrandr to create a new mode and then add it to the HDMI and VGA output.
See solutions on this here:Configuring xrandr for custom resolutions
Then when connected you can set the new mode in the "displays" link from the top right power button.

AMAZINGLY this also solved the HDMI colour issue as well!
I am now happy as I can use my multimedia laptop as I wanted to.


Could you try the old initialization scheme for usb devices? This can be done by changing the kernel parameter in /etc/default/grub:

change the line that says GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.old_scheme_first=1"
run update-grub
reboot and see if it helped


Please check out our Linux monitoring tool SeaLion. You can use it to schedule any command and then review the history of outputs in the dashboard. Data retention is a minimum of 7 days which can be extended further to 14 days depending on your requirement. You can also plot graphs from the metrics extracted from those outputs with a little bit of python. We are relatively new and looking for any and all kinds of feedback.


As mentioned already use iptables-persistent for the iptables rule. Regarding starting transmission you should use the daemon that already comes with a rc-service script. So setup the transmission daemon according to the docs Ubuntu docs
and enable it:

service transmission-daemon enable

You can access it with the transmission client or on a webinterface depending on your configuration.


firefox can not display some icons of some english sites

Turn off NoScript, or allow the javascripts which should be allowed. Or just allow the fonts for that site.

Or under Firefox->Preferences, under the Content tab click Advanced and check Allow pages to choose their own font...

Before

After


eth0 not working anymore after trying to set static ip

I have static IP and it works without any problem.
Check your settings again. Check "Gateway" and "DNS servers"


To be able to answer your question I need to explain a bit of context around how all this works.

The systemd-coredump package and the coredumpctl program
The systemd-coredump package, when installed, will configure your system to use systemd for coredump files management. By default, it will

save coredump files into some central location
automatically delete them after some number of days or when they start to take up too much of disk space
allow you to browse them (and do few other things with them) from command line, using coredumpctl utility.

I like running this package on my servers. When something really bad happens, coredump files this package records are readily available for me to analyze. For the rest of the time, these files are automatically rotated and I don't need to worry about them.

The apport and apport-kde packages
Those packages do similar function as systemd-coredump, but with some additional (K)Ubuntu stuff. It will:

save coredump files into some central location
take care of deleting them when they are no longer needed
show GUI notification that some program had just crashed, asking user if they want to send crash report to (K)Ubuntu servers
upload crash report to (K)Ubuntu servers (if this was allowed by user).

I usually leave this with its defaults on my Kubuntu laptop, except that I disable crash reports uploading in Settings->Applications->Diagnostics.

Now, to answer your questions:

is there a reason to prefer coredumpctl to apport?

apport will use your favorite GUI to notify you about crashes and allow you to chose if you want to upload crash report to Ubuntu error tracking servers. coredumpctl will do neither of this, it will only record coredump file.

Does systemd-coredump have any analogous UI tool?

AFAIK, no. But, coredumpctl is IMHO really cool command line utility.

Perhaps more to the point, is there a way to provide the same coredump from apport as I provided from coredumpctl (or better yet to provide it from the apport-kde GUI)

Resulting coredump files should be exactly the same: coredump data is actually provided by kernel when program crashes, and both utilities discussed here take what kernel provided and dump it onto disk.
Thus said and AFAIK: there is no GUI way of exporting these files.

Really what I'm trying to establish is whether I should leave systemd-coredump installed, or remove it by reinstalling apport-kde just to have my system closer to the "normal" setup for Kubuntu 18.04. I'd like to understand the implications of the decision.

If you want to be "closer to original", install apport-kde. Most visible implications of choosing one over another:

you might or might not see program crash notifications
coredump files might or might not be uploaded to Ubuntu error servers

Note that Ubuntu Wiki - Apport says that apport is disabled by default for various reasons, meaning you might not see any difference on your system.


Just use sudo <command>, where command is the order, or instruction you want to run as superuser. If you get an error like:

user is not in the sudoers file

You must edit the /etc/sudoers file. To do so, type

su

Enter the root password

Then, you can use nano or vi to edit the file, for example:

nano /etc/sudoers

Look for a line like this:

root    ALL=(ALL)       ALL

And add a new line bellow this, like:

myUser    ALL=(ALL)     ALL

Now, reboot your computer, and then try to use sudo.

Regards.


Show IP/MAC-address , running time/DNS server and logged in user name on desktop screen

For your IP, you can use indicator-ip. Open the terminal and run:
sudo apt-add-repository ppa:bovender/bovender
sudo apt-get update
sudo apt-get install indicator-ip

It will look something like this:

For the real username, install dconf-editor by running sudo apt-get install dconf-editor. Once that's done, open up dconf-editor, and navigate to apps and then indicator-session. Look for show-real-name-panel and turn that on to true (it is false by default) and that will show your username.
.
For older releases, use gsettings set com.canonical.indicator.session show-real-name-on-panel true.
If you would like to disable it, run gsettings set com.canonical.indicator.session show-real-name-on-panel false
For the rest(and if you like you can do the IP as well), we can create our own indicators. We need to first install sysmonitor.
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor

Open sys-monitor, and click on the Advanced Tab. We need to add a new script, so we click "New", thus we have this screen.

In the Command Section, add your the required script you want to run. For example we will add the "Boot-Time" indicator.
So in the command we will write uptime -s. Add whatever description you want and name. Save it and look for your newly added script, and then click "Add". Your script should now appear on the topbar.
For example, here is the script to display the current CPU frequency for the first core:
echo $(grep "cpu MHz" /proc/cpuinfo | head -1 | cut -d ' ' -f3 | cut -d '.' -f1) MHz

Here is the indicator

UPDATE
If you looking for your internal IP, create a script(as described above) and in the command box, add this:
ip route get 8.8.8.8 | awk '{print $NF; exit}'

That should get you the internal IP.
WebUp8 Team - SysMonitor Reference