Your ~/.config/user-dirs.dirs file has some incorrect settings, in particular you have lost the correct setting for 'DESKTOP'. Possibly others have been changed as well and may need some editing, (the contents of your ~/.config/user-dirs.dirs file will reveal this).

My own ~/.config/user-dirs.dirs file is as follows:

andrew@ithaca:~$ cat ~/.config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
andrew@ithaca:~$

You can certainly edit the file directly as is suggested above but another way to correct the missing entries in your own file is to run the following commands one after the other from a Terminal window:

xdg-user-dirs-update --set DESKTOP "$HOME/Desktop"
xdg-user-dirs-update --set DOWNLOAD "$HOME/Downloads"
xdg-user-dirs-update --set TEMPLATES "$HOME/Templates"
xdg-user-dirs-update --set DOCUMENTS "$HOME/Documents"
xdg-user-dirs-update --set PICTURES "$HOME/Pictures"
xdg-user-dirs-update --set VIDEOS "$HOME/Videos"

Then logout and subsequently login or simply reboot, and all should be well. For reference here are all of the values that can be manipulated in this way:

DESKTOP
DOWNLOAD
TEMPLATES
PUBLICSHARE
DOCUMENTS
MUSIC
PICTURES
VIDEOS

The commands I have given you should return you to the defaults, and to remove the $HOME icon from the Desktop:

gsettings set org.gnome.nautilus.desktop home-icon-visible false

References:

Arch Linux: Xdg user directories
Ubuntu Linux: user.dirs.dirs man pages
Ubuntu Linux: xdg-user-dirs-update man pages


Why `postgresql` package is not listed when executing `apt-cache search postgresql`?

Ah the package was actually listed but I made the mistake to think that the search results were sorted alphabetically so I missed it. For some weird reason, it seems that some parts of the lists are ordered and others not.

apt-cache search --names-only postgresql helps cut down the results too.


Chrome and Firefox can not resolve the same host name, dig can

Turns out it's a difference between the way chrome/firefox fetch names and the way dig/host fetch names.

Typical nsswitch.conf has this line:

hosts:          files mdns4_minimal [NOTFOUND=return] dns

Which should be changed to:

hosts:          files dns mdns4_minimal [NOTFOUND=return]

and then everything will magically work.


Ubuntu 19 Disco Dingo System Settings don't launch

I have been having issues like this too and it goes away for a little while when I reset my desktop to default.

dconf reset -f /

Regular settings won't open whether from dashbar or application panel, there is a KDE setting application that I did not download (and keeps reappearing). It's most annoying as it messes with screen mirroring. First I've seen of a similar complaint though


Setup your own debian repository proxy within your intranet.

Customize the ubuntu installation so that your debian repository proxy is the only entry in /etc/apt/sources.list.

Et voila: you have full control about the software installed on your clients (as long as no user has super user permissions).

  Update : Added this after the first answer. These users are support, novice users of systems and developers of the bank software... so some of them need sudo privileges. Is there a ready way to monitor them so that any exceptions are caught quickly (like adding the sources list) but other actions like installing stuff from known repos goes unreported.

In your custom installation you can modify the /etc/sudoers file so that your users are allowed to run sudo apt update and sudo apt install but no other command starting with apt. Of course, you also have to restrict sudo bash (or any other shell).


Calendar language won't change on Ubuntu Gnome 17.04

Just change the language support settings (gnome-language-selector)

I tested it and it works


I have found this here:

sudo add-apt-repository ppa:lekensteyn/wacom-tablet
sudo apt-get update
sudo apt-get install dkms wacom-dkms

Tell me if it worked for you.


Could not find kernel image /isolinux/isolinux.cfg

I successfully installed Ubuntu on my laptop. I had to "by pass" this issue by burning ubuntu on a dvd. You can probably find tutorials on that.


Try to disable the graphics driver. You can do this by editing the grub menu entry you can edit that entry temporary and disable the graphics driver.

To edit entry hit "e" key then add kernal parameter "nomodeset" to disable default open source graphics driver in my case ("Nouveau").

If it works then after installation also you need to do it first time and then open "Software & Updates" then navigate to tab "Additional Drivers" and select the proprietary driver to install.


From nfolamp blog:

  I have an HP laptop model nx6325 with a Broadcom BCM4311 wireless
  card.  After installing Ubuntu 11.10, I find that my wireless doesn’t
  work.  The reason, Ubuntu detects the wireless but then loads the
  incorrect driver for this card.

  I use the lspci command to display the details about my hardware. It
  will display all of your PCI connected hardware. I edited the output
  to show only the relevant information.  The important information here
  for  matching your hardware with mine is this indentifier [14e4:4312].

$ sudo lspci -v
30:00.0 Network controller: Broadcom Corporation
BCM4311 802.11a/b/g (rev 01)
      Subsystem: Hewlett-Packard Company Broadcom 802.11a/b/g WLAN
     Flags: bus master, fast devsel, latency 0, IRQ 18
     Memory at c8000000 (32-bit, non-prefetchable) [size=16K]
     Capabilities: [40] Power Management version 2
     Capabilities: [58] MSI: Enable- Count=1/1 Maskable- 64bit-
     Capabilities: [d0] Express Legacy Endpoint, MSI 00
     Capabilities: [100] Advanced Error Reporting
     Capabilities: [13c] Virtual Channel
     Kernel driver in use: b43-pci-bridge
     Kernel modules: ssb

$ sudo lspci -nn
30:00.0 Network controller [0280]:  Broadcom Corporation BCM4311 802.11a/b/g
[14e4:4312] (rev 01)

  The Solution

  I am  going to install the correct driver for this wireless card. Then
  I will remove the “incorrect” driver (bcmwl) which Ubuntu installed by
  default.

$ sudo apt-get update
$ sudo apt-get install firmware-b43-installer
$ sudo apt-get remove bcmwl-kernel-source
$ sudo reboot

  Hopefully you found this useful.

  If you have this same type of wireless chip in your laptop, these
  instructions might also work for you.


Installation of NVDIA drivers on ASUS Zenbook14 - Ubuntu 19.04

The driver is probably installed, but the Nvidia adapter isn't enabled.

Enable it by running:

sudo prime-select nvidia

Then log out and log in again. The adapter should now be enabled and nvidia-smi should work.


VMware workstation 10.0.1 install won't work 14.04

After looking around, you need to run this script:

#!/bin/bash

cat << EOF > /tmp/filter.c.patch
--- vmnet-only/filter.c 2013-10-18 15:11:55.000000000 -0400
+++ vmnet-only/filter.c 2013-12-21 20:15:15.000000000 -0500
@@ -27,6 +27,7 @@
 #include "compat_module.h"
 #include <linux/mutex.h>
 #include <linux/netdevice.h>
+#include <linux/version.h>
 #if COMPAT_LINUX_VERSION_CHECK_LT(3, 2, 0)
 #   include <linux/module.h>
 #else
@@ -203,7 +204,11 @@
 #endif

 static unsigned int
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
+#else
+VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
+#endif
 #ifdef VMW_NFHOOK_USES_SKB
                  struct sk_buff *skb,                  // IN:
 #else
@@ -252,7 +257,12 @@

    /* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */
    /* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */
-   transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
+    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
+#else
+    transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
+#endif

    packetHeader = compat_skb_network_header(skb);
    ip = (struct iphdr*)packetHeader;
EOF

cd /usr/lib/vmware/modules/source
# untar the vmnet modules
tar -xvf vmnet.tar
#run a the patch you should have just saved earlier
patch vmnet-only/filter.c < /tmp/filter.c.patch
# re-tar the modules
tar -uvf vmnet.tar vmnet-only
#delete the previous working directory
rm -rf vmnet-only

You run it with root privileges.

Thanks to this website: http://fazlearefin.blogspot.ca/2014/03/vmware-workstation-10-not-working-on.html


Mediawiki only accessible from Windows clients

I was making a basic error. As I said in the comment above, I had left the default network settings in place even after installing Apache and Bind. There was no way that the clients could resolve the local hostnames to the relevant IP addresses.

To fix this, I installed Bind on my Ubuntu server and then added my server to the list of DNS servers my router queries when it gets a request for a web service.

I did this by following these tutorials:

https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-private-network-dns-server-on-ubuntu-14-04

https://help.ubuntu.com/lts/serverguide/dns-configuration.html#dns-primarymaster-configuration

This was also helpful for ensuring that Linux clients were able to use the DNS server:

http://www.linuxjournal.com/content/ubuntus-new-dns-unknown-host

Windows and Mac OS clients on the network seemed to have no problem taking their DNS settings from the router. The Ubuntu clients didn't and consequently couldn't resolve hostnames, until I updated /etc/network/interfaces (after having first backed it up to interfaces.old using the 'sudo mv' command).

If I find a better way to do any of this, I'll update this answer.


No, USB sticks you're using are exactly the same as what everyone is referring to as "LiveCD". The only difference is that, to get the "live" environment you choose "Try Ubuntu" instead of "Install Ubuntu" when you boot from the CD or USB stick.


Set network interface metric to a fixed value

Use nm-connection-editor... see image below...


cannot install ubuntu 13.10 on new HP Spectre 13

Folks,  found a fix that worked for me.

How do I set 'nomodeset' after I've already installed Ubuntu?

Does anyone know process to request the creation of a new ubuntu driver for this:
4th generation Intel(R) Core(TM) i7-4500U Processor + Intel(R) HD Graphics(For 8GB Memory)

Cheers.


Update manager showing some softwares having .exe format!

The ttf-mscorefonts-installer downloads those .exe files. This installer is used to install Microsoft TrueType core fonts in Ubuntu.

Those fonts are available on Sourceforge as executable cabinet file which use the .exe extension.


Ubuntu Server 12.04 + Wine + Filezilla FTP Server help

Ubuntu Server has no GUI, and Wine does not ruin without a GUI (Xorg). Therefore I am puzzled how you managed to get this working in the first place.

Second, why would you want to run an FTP server using Windows software on a Linux platform? There are numerous FTP daemons available for Ubuntu, software that has been widely used for years, proven software.

I strongly recommend you take a look at the Server Guide.


Where is Google Earth Pro installed in Ubuntu 20.04 LTS

There is no fixed place where deb files install stuff.
It depends on a deb file, what is written in its install scripts.
Regarding Google applications,  it is very likely  that they are installed under /opt/google.


Is there a way to create domains and subdomains in Apache like this?

Yes, that is indeed how multiple subdomains are managed in Apache. You created a configuration in sites-available, and then enable them using the a2ensite command. For example, I have a local Ubuntu mirror and a repository set up on the same server: mirror  (saved as /etc/apache2/sites-available/default.conf)and repo (saved as /etc/apache2/sites-available/repo.conf. Then I enable them thus (sudo or root needed):

a2ensite default
a2ensite repo
service apache2 reload

With proper DNS configuration, now repo.fqdn and mirror.fqdn, while resolving to the same IP, open the correct sites.


From the xrandr output it seems that no resolution is set for the TV.

Try to set one of the resolutions listed under HDMI-1 in the xrandr output. For example:

xrandr --output HDMI-1 --mode 1360x768


Does Ubuntu have an online code browser like http://sources.debian.net/?

There is no online code browser for all Ubuntu packages.

You can get information, source and binaries using

http://packages.ubuntu.com/

But for many packages you can get a link to online upstream code browsers.

E.g. search for file-roller package and you will get a link to

https://wiki.gnome.org/Apps/FileRoller

Ubuntu kernels have an online browser at

http://kernel.ubuntu.com/git/ubuntu/


It looks the directories changed from ~/.kde/share/apps/desktoptheme
to ~/.local/share/plasma/desktoptheme/. Icons should be stored in ~/.local/share/icons and color-schemes in ~/.local/share/color-schemes/


fixing broken packages in ubuntu : repost

Here is what we have so far.

First, edit your /etc/apt/sources.list file and remove mariadb by executing the following commands:

sudo sed -i 's/^.*mariadb.*$//g' /etc/apt/sources.list
sudo apt-get update

Now, let's fix that broken package:

sudo apt-get install libmysqlclient18=5.5.49-0ubuntu0.14.04.1 libmysqlclient-dev

Please post any more errors, thanks.


Google 'can' be your friend... ubuntu + wine 1.6 ppa

http://www.ubuntuupdates.org/ppa/wine


The list of supported browsers is defined in the Web DynPro runtime property file.  So for support for the browser you are using you need to ask the owner SAP SE to include support.

You can however bypass this by editing your browser identification string (and make it look like it is a supported browser) with a user agent switcher.


What path should I give for cmake when installing IMPACT?

To find out where cmake is installed you can run which cmake. If that doesn't return anything, you can install it with sudo apt install cmake. You shouldn't have to put in the full path. You should just be able to run cmake path-to-impact-sources. Once cmake has been installed, you should be able to install IMPACT.


Nvidia Optimus + CUDA + bumblebee + 14.04

I've been having the same difficulty getting my GT 750m to be recognized by Ubuntu 14.04 and 14.10. After many different drivers, and many restarts, I came across this on the NVIDIA web site that might explain why some of us are having so much trouble:

  Note that the list of supported GPU products is provided to indicate
  which GPUs are supported by a particular driver version. Some designs
  incorporating supported GPUs may not be compatible with the NVIDIA
  Linux driver: in particular, notebook and all-in-one desktop designs
  with switchable (hybrid) or Optimus graphics will not work if means to
  disable the integrated graphics in hardware are not available.
  Hardware designs will vary from manufacturer to manufacturer, so
  please consult with a system's manufacturer to determine whether that
  particular system is compatible.

I have a Dell Inspiron 7537, and I've given up on getting the 750m to come to life on it.


Is there a way to execute keyboard shortcuts from the terminal?

This works unfortunately doesn't allow a linked command.

xdotool key ctrl+l

My plan was to use keyboard shortcuts under Ubuntu/Xubuntu to create autohotkey links but it fails to register the command.


Boot partition is full, running old kernel, new kernels "waiting" - safe to reboot?

Run these commands, in that order, one by one and check space every time.

sudo apt autoremove

then

sudo apt autoclean

and if not enough space yet run:

sudo apt clean

and

sudo update-grub

must work.

after reboot in new kernel confirm that the latest kernels are fully installed. by running:

uname -r

and

sudo update-initramfs -u -k all

then run

sudo apt purge $(dpkg -l|egrep 'linux-image-[0-9]|linux-headers-[0-9]'|awk '{print $3,$2}'|grep -v `uname -r|cut -f1,2 -d"-"`|sort -nr|tail -n +4|awk '{ print $2}')

this will remove all old kernels except the one you are using and the latest one.

Edit

Note: You can run sudo update-initramfs -u -k all to confirm that the latest kernels are fully installed, before all these commands.


How tochange the permission of file on terminal?

You can change File/Fodder permissions by Opening up a terminal by pressing Ctrl+Alt+T and typing in

This command will change all sub directory’s and files to read and right to every one.

sudo chmod ugo+wrx /media/external -Rf

Or you can run sudo nautilus in Terminal this will run nautilus with full rights so you won't have any permission errors when copying files and fodders to an external media.


How to shrink a Raspberry Pi SD card image?

Update

At first the question was only about how create a smaller partition-image. So this answer is missing the part how to create a bootable Raspberry Pi OS, which will need two partitions and an MBR.

Old guide on how to create a smaller-sized parition image

Create a new file which is exactly 16 GB in size:

fallocate -l 16G sixteen.img

Create a file-system within it:

mkfs.vfat sixteen.img

Mount it:

mkdir sixteen
sudo mount sixteen.img sixteen

This will open a Nautilus window with your newly mounted image file. Now insert your SD card. It will automatically mount and open a second Nautilus window.

Copy your files from the second window to the first one. After that, unmount your file image with either the eject-symbol in the sidebar of nautilus or with the command sudo umount sixteen.


Can't find old emails after upgrading to Ubuntu 11.10

You should be able to open Evolution manually then, because it would not have been removed. You're probably seeing Thunderbird when you open your mail.

To open Evolution (if you are using Unity), open the Dash and type Evolution, then click the icon that comes up (if Evolution is still there that is).

If Evolution does not show up, then you can install it from the software centre and access your old emails. Then you can migrate to Thunderbird (if you like) or remain with Evolution.


Fail connect remote jupyter notebook server possibly caused by chrome install

I think what you're looking for here is --ip.
You can connect to the remote computer directly by specifying the hostname when you start the server.
jupyter notebook --no-browser --port=8232 --ip=ubuntu-pi-100000 ~/

https://jupyter-notebook.readthedocs.io/en/stable/config.html
NotebookApp.allow_remote_accessBool
Default: False

Allow requests where the Host header doesn’t point to a local server

By default, requests get a 403 forbidden response if the ‘Host’ header shows that the browser thinks it’s on a non-local domain. Setting this option to True disables this check.

This protects against ‘DNS rebinding’ attacks, where a remote web server serves you a page and then changes its DNS to send later requests to a local IP, bypassing same-origin checks.

Local IP addresses (such as 127.0.0.1 and ::1) are allowed as local, along with hostnames configured in local_hostnames.


Is there a multiboot iso creator for ubuntu?

Creating a multiboot CD. you're limited to 1 ISO because of space, but you can create a multiboot USB, using Yumi.  Once you choose the first ISO, and its created, it will prompt you if you want to add another ISO.

I don't think that this program will allow you to create a multiboot DVD, but you can use MagicISO.  MagicISO has ability to create multiboot DVD image file so that the user can incorporate multiple installation CD or ISO into one DVD, and install multiple Operation System from one DVD.


Preinstalled Windows 8 UEFI is not able to get Ubuntu dual boot

It seems that you used WUBI with the installation, as:

You said that you installed it from Windows.
\ubuntu\winboot\wubildr.mbr is a very common file in WUBI installations (also look at the name!).

The problem is that WUBI doesn't work with Windows 8. Also, your Toshiba boots with UEFI, and WUBI doesn't work with UEFI. So you have the perfect combination to have a failed installation of Ubuntu.

How can you install it, then? First uninstall Ubuntu from Windows' Control Panel (the old one). Now follow this guide so you can install a working version of Ubuntu: https://help.ubuntu.com/community/UEFI


What is this hidden Unity window-dragging feature I discovered on accident, and how do I reproduce it?

These are the grab handles which make moving and resizing windows in Ubuntu easy.

You can produce this by middle clicking on a window. On a laptop this is usually done by one of the following methods depending on your trackpad / mouse.

1) Tapping / Clicking with three fingers and dragging if using a multi-touch trackpad.

2) Clicking With both the right and left mouse buttons at the same time and dragging.

3) Clicking with the middle mouse button if using an external mouse and dragging.

Really just anything that simulates a middle click and then a drag. It might vary depending on your configuration but one of those should work.


scroll through terminal directory like windows command prompt

In linux there is also Tab complete. It does not cycle through the files tho. if you press tab twice, it will give you a list that matches what you have typed so far.  ie.

  $:/etc$ ls o   *tab * tab*

  odbc.ini      odbcinst.ini  opt/          os-release

  $:/etc$ ls o


Yes, the default Python interpreter implementation on Ubuntu, just like everywhere else, is CPython. If it were anything non-standard (e.g. PyPy, IronPython, Jython, Cython or whatever else), it would be named that. Plain "Python" is always CPython.

Regarding the GIL (Global Interpreter Lock), yes, CPython and therefore Ubuntu's standard Python interpreter is subject to that feature/limitation. That means your Python scripts will usually run in a single thread (unless you use the multiprocessing library or some other special stuff).


Do mirrors exist for restricted, multiverse and universe repos?

Those repository components (restricted, multiverse and universe) are also mirrored by the mirrors listed on the page. Once you choose a mirror, you can just append universe multiverse restricted to the deb and deb-src lines.


Take windows with you when switching desktop

Hold Shift in the meanwhile. The window with focus will come with you.
Ctrl+Alt+Shift + Up/Down arrow.


I can't speak for Canonical but in the wider Ubuntu community, there are many projects that are part of Ubuntu which fall into Google's Summer of Code.

Essentially, Google sponsors open source projects to hire students over summer. It's not a small amount of money either but it lacks some of the formal structure that you might be looking for. I can't say whether or not that sort of experience  will directly help but it would certainly make you a better developer.

If you want to go and work at Canonical HQ, I guess the best way to find out is to contact them and ask. Their new website isn't that handy for finding HR contact details, but their main switchboard number is +442076302400. Give it a shot. The worst that can happen is they say no.

Otherwise, there are actual job vacancies at Canonical. Again, I can't speak for Canonical but they might be willing to take on junior devs. Worth a shot.


Why doesn't Ubuntu need to download package that you have previously had installed on your system

It uninstalls the program, yes. You will be unable to execute it.

It just keeps the "installers" (deb files) in the /var/cache/apt/archives directory.

But if you have a deb of an older version, and a newer version of the package has been released, APT (Ubuntu's package manager, stands for Advanced Packaging Tool) will download the newer version.

You can clean them by running sudo apt-get clean and sudo apt-get autoclean.


Cannot install ubuntu iso file through USB stick

Kernel Panic errors comes when there is some problem in Bootable Media, due to scratch or burning problem. Try to make a bootable USB using Startup Disk Creator available in Ubuntu and boot.
If from windows, Linux Live USB creator ;-)  Or Pendrive Linux.


How can I create a Windows Desktop Shortcut for Ubuntu?

I've not long ceased dual-booting, however I was in the same boat, wanted files accessible from both Ubuntu and Windows. Here's what I did:

Under Windows, use Disk Managment to create an NTFS "data" partition for those files to reside, including folder heirarchy "Documents, Downloads, Pictures, Desktop, Videos", etc. (In my situation, I didn't create a partition, I used a secondary drive, this way, in the event Windows borks itself, I don't lose anything)
Under Windows Explorer, right-click each of the above folders, choose "properties", goto the "location" tab and change their "location" to the new data partition (eg D:\users\username\documents). Windows will ask you to confirm you want to move the data files to the new location. Click yes/apply/OK to confirm.
Reboot to your Linux Distro and have the new data partition mounted under "media", for this, I used the Disks utility and modified the data partitions automatic mounting options to mount the partition (/dev/sdxx) by its UUID to /media/data (you could also do this by editing /etc/fstab).

Finally, I used Nautilus to "Make Link" for each of the data folders (Desktop, Downloads, Documents, etc) on the data partition and then moved those links to my /home/username folder as replacements for the standard folders.

The end result is the same files accessible by both operating systems, under the same folder heirarchy. I could create/edit files in one OS and the changes will be instantly recognised by the second OS. The only folder you may wish to omit would be the "Desktop" folder, as you'll end up with desktop links/shortcuts which are unique to each OS.

In step one, you're creating an NTFS partition as this will be readable by both Windows and Linux OS's. Step four works as both OS's will be "symlinked" to the same data folders.


How do I allow regular users to install printers?

In the menu

system menu,

user and groups
dialog: Usersetting

button right: extended settings
Tab: userrights

There is an entry: configure printers. Maybe that is sufficient. Try it out. I didn't test it.

The names might differ, since I use xUbuntu, and the settings are de_DE, not en_US or en_SOMEWHERE - I translated myself.


Disable second, non-existent screen from command line

You can use the following command:

xrandr --auto

If this doesn't disable your non-existent VGA, then use the following method:

First run:

xrandr --current

to get the right name of your VGA. This can be VGA, VGA-0, VGA1, VGA2 and others.
If the name of your VGA is, for example VGA2 (as you said), then run:

xrandr --auto && xrandr --output VGA2 --off

This should disable the output of VGA2.

See man xrandr for more info.

Then, if you get it to work, put the right command in a small script, make it executable and put it to run on start up.


How do I open the man page for square brackets math and what are they called?

It's one way of doing arithmetic expansion in bash. It was deprecated years ago, and current GNU documentation doesn't mention it (Ubuntu's manpages still do, though: run man bash and see the section on Arithmetic Expansion). From this Stack Overflow post:

  The manpage for bash v3.2.48 says:

    [...] The format for arithmetic expansion is:

     $((expression))

    The old format $[expression] is deprecated and will be removed in upcoming versions
    of bash.

You should use $((...)) instead.

No, it doesn't have min or max functions.


How to debug dual monitor system that dies on wakeup?

I resolved these issues by installing the closed source Nvidia driver. The BinaryDriverHowto/Nvidia help page warns

  By default Ubuntu will use the open source video driver Nouveau for your NVIDIA graphics card. This driver lacks support for 3D acceleration and may not work with the very latest video cards or technologies from NVIDIA.

Apparently that's the case with my GTX 1080 graphics card. With the closed source Nvidia driver installed a wakeup succeeds as expected, with no mouse or keyboard problems. Also xrandr is now functional and I can use it to scale individual outputs, but the included nvidia-settings gui is easier to use. The virtual terminal shortcut keys also work now.

The only downside I've found is that Wayland is no longer available, so I can't use it's improved multi-monitor support.


How to specify a log file for testdisk 7.0?

From the manpage of testdisk:

 /log   create a testdisk.log file

I'd say that if you specify /log, then the file testdisk.log is created in your current working directory.


This is fixable.  On boot after BIOS screen tap SHIFT key to reach the grub screen.  up / down arrow to hightlight top OS release on list (newest one) and instead of hitting Enter press E to edit.

Use your arrow keys to move cursor to line which starts

linux /boot

put your additional kernel options at end of that line.  This fix is only good for current boot. Do this to confirm its the fix U need.  hit ctrl-X to proceed to finish current boot.

If above helps U reach the desktop, then to make above temp change permanent, one you reach desktop open a terminal window  ctrl-alt-t  and enter

gksudo gedit /etc/default/grub

or if you know vi

sudo vi  /etc/default/grub

edit the line starting with

GRUB_CMDLINE_LINUX_DEFAULT

so it appears

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

do similar for additional kernel options.  Save your file then in terminal issue

    sudo update-grub

Let us know how you get on

PS.  On boot after BIOS tap left Shift key to bring up grub menu.  Is this possible ?  If so go into Recovery Mode on topmost OS then into graphics Failsafe mode.  Possible ?


Best option for recording Minecraft Server play?

recordMyDektop is going to be your best option. I've used it in the past, and it's done well for gameplay. As for getting it to receive audio input from Skype or Empathy, that will take a little bit of tweaking with a virtual soundboard. This is explained on recordMyDektop's website here.


Can not access any host from shell while they are accessible from Firefox/Chrome

Do you configured SVN to use the proxy?

/home/you/.subversion/servers

and put

http-proxy-host = proxy.mydomain
http-proxy-port = 3128
http-proxy-username = user
http-proxy-password = pass

For your console, export the environement variable:

export http_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/

Hope this help.


Screenshot feature of Shutter doesn't work after upgrading to Ubuntu 17.10

I'd recommend gnome-screenshot if you can not get Shutter to work.

I have used gnome-screenshot for some time and it works before and after the upgrade to Ubuntu 17.10. It does full screen, frames or "select area".

Finally, have you tried uninstalling / re-installing? I know this is a "Windows-esque" solution, but, well, you never know.


grub rescue error while uninstalling Ubuntu12.04

Your MBR is screwed and you need to recover it. Please refer to this How can I remove Ubuntu from my system and install the Windows bootloader?


Which version for correct Nvidia setup for Ubuntu 20.04?

Possible workarounds:

after the install fails, can repair it with DPKG "--force-overwrite":
apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken

as an extra flag to the install command-line:
apt-get -o Dpkg::Options::="--force-overwrite" install nvidia-cuda-toolkit

It seems possible to provide the same Dpkg::Options param on the command-line of apt as well as of apt-get, whichever tool you prefer to use.


The typical steps for fancontrol setup include:

Running sensors-detect to ensure you have the correct modules and updates /etc/modules (/etc/sysconfig/lm_sensors on RH) to have the nct6775 entry.
Running pwmconfig to test and configure each fan and creates the /etc/fancontrol file.

There are known issues where sometimes the hwmon ids change between boots, leaving your fans out of control.  For that you would manually edit your /etc/fancontrol file to include the full path of each pwm and replace the id with [[:print:]]* like so:  /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm1

These are actual paths on the files system that you can browse to get an idea of what is available.

You may also need to edit /etc/sensors3.conf, I had to add some stuff for the ASUS Z97, I posted those details on this thread.

You may also need to add the following to the GRUB_CMDLINE_LINUX_DEFAULT variable in the /etc/default/grub file: acpi_enforce_resources=lax then rebuild the grub config grub-mkconfig -o /boot/grub/grub.cfg


How do I blacklist a hardware item before reboot through the Wubi Win interface?

This thread would seem to have your answer: http://ubuntuforums.org/showpost.php?p=10089820&postcount=8


Oracle-xe 11g installation on ubuntu 14.04

In Ubuntu .rpm files cannot be run or installed.

First you should convert the .rpm file to .deb which is the installation file type in ubuntu.

sudo alien -d [FILE NAME].rpm

Then there will be a .deb file in the same folder. You need to install it by the command:

sudo dpkg -i [FILE NAME].deb


Try the following workaround, that seems to work for many people:

sudo su -c 'echo options ath9k nohwcrypt=1 > /etc/modprobe.d/ath9k.conf'

Then just reboot. Hope that helps!


Wireless 3945ABG [Golan]: Device not ready, fresh Ubuntu install

Hey what have you already tried? A few steps would be to manually turn off and restart in terminal. Please update with wifi trouble shooting you have done to better help you.

sudo ifdown interface

sudo ifup interface

sudo iwlist scan


Stopping TOR when the torsocks has been "source"d in bash

tor can be stopped on Ubuntu by
sudo systemctl stop tor


webupd8 oracle-java-9-installer failing with 404

I stuck in this problem almost 1 week.

 sudo apt-get purge oracle-java9-installer

solved my issue.
Later I also changed Ubuntu Software center server to "Main Server".


Command to install .bin without user interruption in terminal

Atlassian Documentation does suggest that JIRA has unattended installation mode.  Basically you will need to edit response.varfile and provide it as parameter to the installer, like so

atlassian-jira-X.Y.bin -q -varfile response.varfile

Note that -q and -varfile are flags to the installer, and response.varfile is the actual file that contains your settings. The actual binary in your case is atlassian-jira-software-7.1.9-x32.bin

For step by step instructions , follow the link above


What is the Name of System Settings for terminal


That is a source package:

  7.13 How do I install a source package?

  Debian source packages can't actually be "installed", they are just unpacked in whatever directory you want to build the binary packages they produce.

  Source packages are distributed on most of the same mirrors where you can obtain the binary packages. If you set up your APT's sources.list(5) to include the appropriate "deb-src" lines, you'll be able to easily download any source packages by running

 apt-get source foo

  To help you in actually building the source package, Debian source package provide the so-called build-dependencies mechanism. This means that the source package maintainer keeps a list of other packages that are required to build their package. To see how this is useful, run

 apt-get build-dep foo

  before building the source.

So you can't actually "install" it. However, there are binary packages
built from it:

libghc-hunit-dev
Haskell unit testing framework for GHC
libghc-hunit-doc
Haskell unit testing framework for GHC; documentation
libghc-hunit-proof
Haskell unit testing framework for GHC; profiling libraries

One of them should contain what you want.


Factory reset for ubuntu 11.10 to really uninstall wine

If you want to remove wine + all configs and files type this in a terminal

sudo apt-get remove --purge wine1.3.

After that if there is still a ~/.wine folder you are free to delete it using

rm -rf ~/.wine.


Strange nginx error, yet nginx -t is fine

Try : tail -f /var/log/nginx/error.log and restart nginx again, and look at the log output.

Maybe you have apache2 already installed ? Port 80 can only be used by one webserver application.


How do I run a jar so that I can access it on another terminal session later?

I figured out the problem. The screen sessions aren't "disappearing", they're just detaching. The way I fixed this was by using "screen -ls", finding the PID of the screen I wanted, then using "screen -r " to reattach the screen and allow access to it. Thank you to MadMike for the link.


Ubuntu 20-04 won't boot up after modifying /etc/gdm3/custom.conf file

In GRUB add init=/bin/bash to the kernel parameters, it then will boot into shell mode.
Then use nano:
sudo nano /etc/gdm3/custom.conf

and edit accordingly, the syntax is AutomaticLogin = root not AutomaticLogin=root.


How to use Unity 3d and Gnome Shell without any drivers?

You can't use anything without drivers. However, Linux has lots of drivers built in. Newer AMD Radeon cards doesn't require any extra drivers. Neither does Intel graphics. I'm not entirely sure what the situation is with Nvidia, though I think the newer ones should work well using built-in drivers.

Unity uses Compiz, which will always require hardware acceleration, meaning you do need good drivers, or at the very least, not horrible ones. Gnome Shell uses Mutter, which at least currently has similar requirements. But rumor has it, they're working on removing the necessity of hardware acceleration for Gnome Shell.

Since you have a SiS graphics chipset, you will only be able to use the more limited open-source drivers that come by default in a Ubuntu installation.
With this chipset, recommendations on desktop-environments would be the more lightweight variant - for example, gnome-classic, unity-2d or xfce/lxde.


Which is the difference between "cd ~ ." and "cd . ~"

You saw the same result because I'm sure that you test those commands from your home directory which is /home/your_username equivalent with ~ - see Tilde Expansion, or $HOME environment variable. To test properly, you should use:

cd / ; cd . ~

and:

cd / ; cd ~ .

In general if you use:

cd first_directory second_directory

you will change the shell working directory to first_directory, not to second_directory, so the second argument in the cd command is ignored (see also help cd to understand better).

And the . (dot) in this case is equivalent with the path of the shell current working directory which is given by pwd command (see Commandline shortcut for current directory similar to ~ for home directory?).

So cd . ~ is equivalent with cd . which is equivalent with cd $(pwd) and cd ~ . is equivalent with cd ~ which is equivalent with cd $HOME.


Why let command doesn't work to add real numbers?

The first variant (let var=2.5+2.5) doesn't work because bash doesn't support floating point.

The second variant (let var=2,5+2,5) works, but it may not be what you wish because comma has another meaning in this case: it's a separator, command separator. So, your command is equivalent in this case with the following three commands:

let var=2
let 5+2
let 5

which are all valid and because of this you get var=2.

But, the good news is that you can use bc to accomplish what you wish. For example:

var=$(bc <<< "2.5+2.5")

Or awk:

var=$(awk "BEGIN {print 2.5+2.5; exit}")

Or perl:

var=$(perl -e "print 2.5+2.5")

Or python:

var=$(python -c "print 2.5+2.5")


Run the following commands:
apt-get purge postfix
apt-get install postfix

The configuration wizard will recreate this file if you will choose anything besides no configuration


black screen when booting whereas failsafe mode works

I would have expected the log Xorg.0.log to be used for trouble-shooting.

Here is a suggestion.  Try moving to one-side the xorg.conf file and rebooting.

Then rerun nvidia-settings.

i.e.

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

reboot, then

gksudo nvidia-settings

Edit:

It is also worth ensuring  that nvidia is installed corrected.  Go to your Additional Drivers window and deactivate the nvidia driver.  Then purge any remaining nvidia software installed i.e.

sudo apt-get purge nvidia*

Double check you haven't added anything to your grub boot options that deals with graphics e.g. nomodeset, vga= etc etc.  If you have - remove them and do an sudo update-grub

If you have previously blacklisted nouveau then unblacklist it.  Reboot.  You should be running with the default opensource drivers.

After rebooting - reinstall the Additional Drivers "nvidia-current" driver.  Rerun nvidia-settings as described previously.


How do I reduce package content on a custom install CD?

Start from an Ubuntu minimal CD, add essential packages via UCK and burn it.


Turns out it was specific to where you enter the % (ALL).
For sudo it needed to be directly under the existing sudo entry
i.e.
allow members of the group sudo ....
%sudo   ALL=(ALL:ALL) ALL
%    ALL=(ALL) ALL


The tutorial tells you to edit /etc/hosts and not /opt/lampp/etc/hosts.


Guess I can answer my own question. One of my friends suggested to expand the root partition(which had been reduced to 200mb) to fill the whole disk using gparted, and it worked. I'm posting it from ubuntu right now.


In GPT disk in BIOS mode a separate partition is needed.
Create 1 to 2 MB partition  in the beginning of disk with a flag "bios_grub"
Mount point: none
Type: no filesystem
then install grub.

  BIOS-Boot or EFI partition (required on GPT disks)

  If you want to install Ubuntu on a GPT disk (you can check it via the 'sudo parted -l' command), you will need either an EFI partition (if your BIOS is set up in EFI mode) or a BIOS-Boot partition (if your BIOS is set up in Legacy mode).

  BIOS-Boot partition:

  Mount point: none
     Type: no filesystem
     Description: the BIOS-boot partition contains GRUB 2's core. It is necessary if you install Ubuntu on a GPT disk, and if the firmware (BIOS) is set up in Legacy (not EFI) mode. It must be located at the start of a GPT disk, and have a "bios_grub" flag.
      Size: 1MB.

Source


IPv6 source address selection with addrlabel (or similar) with netplan (or similar)

Before you do anything with routes you need to configure your network device properly.
It should look something like this:

network:
    ethernets:
        ens32:
            addresses:
            - xx.99.99.99/29
            - xxxx:9999:9999::99/64
            dhcp4: false
            dhcp6: false
            gateway4: xx.99.99.1
            gateway6: xxxx:9999:9999::1
            nameservers:
                addresses:
                - 8.8.8.8
                - 2001:4860:4860::8888
                search:
                - example.com


How do I download with youtube-dl to get video title as filename?

From man youtube-dl:

-o, --output TEMPLATE
      Output filename template.   Use  %(title)s  to  get  the  title,
      %(uploader)s  for  the  uploader  name,  %(uploader_id)s for the
      uploader  nickname  if  different,  %(autonumber)s  to  get   an
      automatically  incremented  number,  %(ext)s  for  the  filename
      extension, %(format)s for the format  description  (like  "22  -
      1280x720"  or  "HD"),  %(format_id)s  for  the  unique id of the
      format (like YouTube's itags: "137"),  %(upload_date)s  for  the
      upload date (YYYYMMDD), %(extractor)s for the provider (youtube,
      metacafe, etc), %(id)s for  the  video  id,  %(playlist_title)s,
      %(playlist_id)s,   or   %(playlist)s   (=title  if  present,  ID
      otherwise) for the playlist the video is in,  %(playlist_index)s
      for  the position in the playlist.  %(height)s and %(width)s for
      the width and height of the video format.  %(resolution)s for  a
      textual  description  of the resolution of the video format.  %%
      for a literal percent.  Use - to output to stdout.  Can also  be
      used  to  download to a different directory, for example with -o
      '/my/downloads/%(uploader)s /%(title)s-%(id)s.%(ext)s' .

So, presumably:

youtube-dl -o '%(title)s.%(ext)s' <URL-of-video>


How do I get an application to display on a "dummy monitor"?

Is there a way to get this application ... to display to a dummy monitor ...

One word, literally: xvfb

NAME
       Xvfb - virtual framebuffer X server for X Version 11

DESCRIPTION
       Xvfb is an X server that can run on machines with no
display hardware and no physical input devices.  It emulates
a dumb framebuffer using virtual memory.

The X community has found many other novel uses for Xvfb,
including ... providing an unobtrusive way to run
applications that don't really need an X server but
insist on having one anyway.


Alsamixer returns "cannot open mixer: No such file or directory"

Had the same problem. Running alsamixer with the -c parameter worked for me:

alsamixer -c 1

1 is the card number (because I have multiple cards attached). You can try different numbers


How to fix bad apt signatures after hardware clock reset

Bad sig usually can be fixed by:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update


Ubuntu 16.04, need help doing simple tasks lol

Various documentation exists in the Ubuntu Wiki that may be of assistance.  Much of it gets updated for later releases, thus some of it assumes you are using GNOME which is the default desktop for 18.04 LTS (where most will work in 16.04 LTS (Unity desktop), but a small number may not).

Useful Keyboard Shortcuts - https://help.ubuntu.com/stable/ubuntu-help/shell-keyboard-shortcuts.html.en

Keyboard Shortcuts - https://help.ubuntu.com/community/KeyboardShortcuts

the second [Keyboard Shortcuts] contains shortcuts that will all work in 16.04 LTS

Also handy may be the Ubuntu Manual found at https://ubuntu-manual.org/ which you can download (at no cost). It currently still assumes 16.04 LTS (too few people offered to help update it for 18.04 LTS)


I recently tried "Minimal Ubuntu" for Ubuntu v18.04 LTS on my System. It worked perfectly fine. If you wish to try the same for Ubuntu v16.04 LTS, the steps would remain almost the same.  Refer the below weblinks for more details:

Ubuntu Adds Minimal Install Option
Ubuntu 18.04 LTS Minimal Install Guide
Minimal Ubuntu

You can also refer to this web link: Minimal ISO Images

Hope these links help you out too.


It crashed for everyone. Apparently on Linux you keep getting Aborted on the console upon logging in. What fixes the problem is removing shared.xml from settings directory. Thus on Ubuntu it's:

rm ~/.Skype/shared.xml

BTW. bit off topic here, but just for the sake of it

On Windows remove:

c:\Documents and Settings\*user*\Application Data\Skype\shared.xml

On OSX:

rm ~/Library/Application\ Support/Skype/shared.xml

Update: There is official acknowledgment of the issue from Skype.


man duplicity is your friend.

To list files contained in a backup,

duplicity list-current-files [options] [--time time] target_url

Start of sample output:

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Thu Apr 20 07:05:12 2017
Tue May 16 10:59:53 2017 .
Tue Oct  4 09:17:44 2016 home
Wed May 24 12:25:20 2017 home/[username]
Tue Feb 16 19:41:10 2016 home/[username]/.ICEauthority
Thu Apr 21 20:43:49 2016 home/[username]/.Skype
Fri Jul 11 15:50:50 2014 home/[username]/.Skype/DataRv

Another useful status command

duplicity collection-status [options] [--file-changed <relpath>] target_url

Start of sample output:

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Thu Apr 20 07:05:12 2017
Collection Status
-----------------
Connecting with backend: BackendWrapper
Archive dir: /home/[username]/.cache/duplicity/4d2fe5a2e1ead3bd31ee9829cdc85731

Found 9 secondary backup chains.
Secondary chain 1 of 9:
-------------------------
Chain start time: Tue Jul 29 09:17:49 2014
Chain end time: Fri Jan  9 08:04:33 2015
Number of contained backup sets: 22
Total number of contained volumes: 47
 Type of backup set:                            Time:      Num volumes:
                Full         Tue Jul 29 09:17:49 2014                17
         Incremental         Fri Aug  1 18:57:47 2014                10
         Incremental         Fri Aug  8 10:14:40 2014                 1
         Incremental         Sat Aug 16 08:29:10 2014                 1
         Incremental         Fri Aug 22 18:41:56 2014                 1
         Incremental         Fri Aug 29 11:36:42 2014                 1
         Incremental         Fri Sep  5 13:03:08 2014                 1
         Incremental         Fri Sep 12 07:45:14 2014                 1
         Incremental         Sat Sep 20 19:50:22 2014                 1
         Incremental         Sat Oct 11 08:06:38 2014                 1
         Incremental         Fri Oct 17 06:57:46 2014                 1
         Incremental         Fri Oct 24 07:56:08 2014                 1
         Incremental         Fri Oct 31 07:39:11 2014                 1
         Incremental         Fri Nov  7 07:28:01 2014                 1
         Incremental         Fri Nov 14 07:50:54 2014                 1
         Incremental         Thu Nov 20 20:29:11 2014                 1
         Incremental         Wed Nov 26 19:37:13 2014                 1
         Incremental         Thu Dec  4 15:37:21 2014                 1
         Incremental         Thu Dec 11 12:32:11 2014                 1
         Incremental         Fri Dec 19 05:59:36 2014                 1
         Incremental         Thu Jan  1 19:05:41 2015                 1
         Incremental         Fri Jan  9 08:04:33 2015                 1
-------------------------

To restore files

duplicity [restore] [options] [--file-to-restore <relpath>] [--time
       time] source_url target_directory


If you are running 10.10 (Oneiric) you should have access to the linux-image-extra package which contains all of the modules normally stripped from the primary -virtual kernel.  With this installed the -virtual kernel should have all of the same modules as a traditional -server kernel.


As far as the downloading part of your question is concerned you can use livestreamer, e.g.:

livestreamer <livestream-url> best -o vod.mp4

For installation instructions check out this answer by @henry.

It actually shouldn't be too difficult to monitor stream activity via the Twitch API. For instance, you could perform a simple curl request piped to grep to identify if the stream is offline or if there's another type of error:

curl -s  https://api.twitch.tv/kraken/streams/totalbiscuit | grep '"stream":null'

This will return as true if no stream is running at the moment.

With that in mind you could design a simple loop that would check for active streams every few minutes, e.g.:

#!/bin/bash

Channel="totalbiscuit"

while sleep 60; do
  if ! curl -s "https://api.twitch.tv/kraken/streams/$Channel" | grep -q '"stream":null'; then
    echo "$Channel is live. Downloading stream..."
    livestreamer "http://www.twitch.tv/$Channel" best -o "${Channel}_livestream.mp4"
  else
    echo "$Channel is offline"
  fi
done

Or, slightly more complex and with more sanity checks:

#!/bin/bash

# Simple Twitch Poller
# Author: Glutanimate
# License: GPL v3
# Dependencies: livestreamer
#
# Description: Polls twitch channel status and downloads stream if user is online

Usage="$0 <space-separated list of twitch channels>"

Channels=($@)

Interval="60" # polling interval in seconds

if [[ -z "$Channels" ]]; then
  echo "Error: No channels provided"
  echo "Usage: $Usage"
  exit 1
fi

while true; do
  for i in ${Channels[@]}; do
    StreamData="$(curl -s  "https://api.twitch.tv/kraken/streams/$i")"
    if echo "$StreamData" | grep -q '"status":404'; then # 404 Error
      echo "Error: $i does not exist."
      break 2
    elif echo "$StreamData" | grep -q '"stream":null'; then # Channel offline
      echo "$i is offline."
    else # Channel online
      echo "$i is live. Downloading stream..."
      livestreamer "http://www.twitch.tv/$i" best -o "$(date +"${i}_TwitchVOD_%Y-%m-%d_%H%M%S.mp4")"
    fi
  done
  sleep "$Interval"
done

To try this script out, copy and paste the codeblock above into a new empty text file, save it as twitch_poller.sh or something similar and make it executable via the Properties menu of your file manager (Right click → Properties → Permissions → Allow executing file as program).

Make sure you have livestreamer installed, then run the script from a terminal while providing the twitch channels you want to monitor, e.g.:

$ './twitch_poller.sh' totalbiscuit TSM_Dyrus
totalbiscuit is offline.
TSM_Dyrus is live. Downloading stream...
[cli][info] Found matching plugin twitch for URL http://www.twitch.tv/TSM_Dyrus
[cli][info] Available streams: audio, high, low, medium, mobile (worst), source (best)
[cli][info] Opening stream: source (hls)
[download][..D_2014-11-07_001503.mp4] Written 3.1 MB (6s @ 460.6 KB/s)

You can adjust the polling interval by setting the Interval variable in the script.


Dual-boot Windows 7 + Ubuntu,Should I remove FAT32 partition

Short answer: If it's working fine now, better leave it as it is.

This question is more about the Windows boot setup. Please take a look at this answer on superuser.

The FAT partition is meant to be the EFI System Partition. Even if your computer is not UEFI enabled or defaults to traditional MBR based boot the Windows installation disk as well as OEM installations create two partitions:

the first one marked as system partition where the bootloader files and configuration for EFI and MBR boot are stored
the second one where the operating system is installed (and in some cases an individual backup boot configuration for MBR and EFI, that's why you can boot directly from the second partition, or via chainloader)

You could delete the first partition and move the second partition the use the free space, but 900 MB isn't worth the hassle that will follow. You will need to reinstall the bootloader and bootconfiguration to the second partition (the setup becomes invalid when you move the partition) via

bootrec /fixboot

or

bcdboot c:\Windows /l en-gb /s c: /f ALL

commands from the Windows installation disk. Take a look at the above mentioned Superuser answer and the GParted FAQ. You will probably need to mark the second partition as system or boot partition to make the above listed commands work. Then you need to install Grub again and probably everything will be fine again. If Grub's os-prober and boot-repair fail to find your Windows installation or the entry is not properly configured you need to write a customized entry.

For example this is a configuration from my laptop that is booting UEFI Grub from a GPT partitioned disk and starting Windows 8 from another MBR partitioned disk by running the EFI Windows bootmanager:

$ cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "Windows 8 (UEFI configuration on system drive)" {
        insmod part_msdos
        insmod ntfs
        insmod search_fs_uuid
        insmod chain

        set root='hd0,msdos4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  2ACC7043CC700B79
        else
          search --no-floppy --fs-uuid --set=root 2ACC7043CC700B79
        fi

        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

It's really not worth the hassle and risk. Instead you could do a clean and proper reinstall of Windows to one partition, and reinstall and configure Grub afterwards.


what does the -@ mean when zipping a file in unix?

If you run man zip you can read:

-@ file lists.   If  a file list is specified as -@, zip
       takes the list of input files from standard input instead of  from  the
       command line.

You can refer to this question on Unix & Linux Stack Exchange to better understand the difference between standard input and command line argument.


How to restore ctrl and capslock in ubuntu 18.04?

Install gnome-tweak-tools. Run gnome-tweaks and in keyboard section you`ll find a button to edit advanced keyboard settings. You'll find what you want there.


How to compile and install Pidgin client and add Google Talk (~ Hangouts) into it?

This is a step-by-step guide on
How to compile and install Pidgin and make it work with Google Talk (~ Hangouts) on Ubuntu:
The differences between Hangouts and Google Talk you will find on this page:
https://support.google.com/a/answer/4564211
1. Enable 2-Step Verification on this page: https://accounts.google.com/SmsAuthConfig

2. Generate a new App password for Pidgin on this page, select Other and name it however: https://security.google.com/settings/security/apppasswords

3. Install the latest version of Pidgin for your system from this page:
https://pidgin.im/download/ or from repository of your Linux distribution or compile it from source (or for Max OS X they recommend using http://adium.im/)
4. To avoid security bugs, you should often check if your Ubuntu Linux repository contains the latest version available, which you may check on this page https://pidgin.im/news/security/
5. If you choose to compile, you simply install the dependencies, download and compile the code, and install Pidgin as follows:

sudo apt-get build-dep pidgin
sudo apt-get source pidgin
tar xjvf pidgin-2.x.y.tar.bz2
cd pidgin-2.x.y
./configure && make && sudo make install

If it fails for some reason, please refer to this page:
https://developer.pidgin.im/wiki/Installing%20Pidgin#WhycantIcompilePidgin
6. Right-click the system-tray icon of Pidgin and choose Accounts.
7. Add or modify your Google Talk account to have Username without @gmail.com or your own domain.
8. If you have your own domain for Google account, fill in the Domain field, otherwise there should be gmail.com present by default (without @).
9. The Resource is an XMPP specific thing that allows one to use several clients for the same account. Under normal circumstances leave blank.
10. Fill in the Password generated in step two.
11. Optional, but convenient, if on a secure computer, is ticking Remember password.
12. Local alias leave blank.
13. It should look like this:

14. On Advanced tab make sure you have Require encryption chosen and disabled plaintext.
15. Note, that after you save these settings, the protocol will automatically change to XMPP, which is currently available to third-party applications like Pidgin.


Due to my lack of ability to follow simple instructions it seems, reviewing the setup instructions by the provider, I seemed to have missed a vital step which was to add a script to my .ovpn config to run update-resolv-conf This then fixed it.

Apologies for time wasting and many thanks to Thomas for his help and persistance.


IPTables/UFW not allowing incoming connection

Got the log files working. Turns out I was needing to do sport not dport. Works now :D

sudo iptables -A INPUT -p udp --sport 27017 -j ACCEPT


Problem installing Apache web server in Ubuntu 18.04

Sorry i cannot comment yet so i have to put this as an answer.
did you adjust your firewall?
what is the output of sudo ufw app list
If Apache in the list of Output than run sudo ufw allow 'Apache'
than restart the service sudo systemctl restart apache2


Are these three dots part of a filesystem path?

No, that's just an ellipsis. The actual path, in case you're wondering, is more like /var/cache/apt/archives/foo.deb. Apparently dpkg adds it whenever you supply a path to a package:

$ sudo dpkg -i vim-gnome_2%3a7.4.1529-1\~ppa1\~t_amd64.deb
(Reading database ... 757002 files and directories currently installed.)
Preparing to unpack vim-gnome_2%3a7.4.1529-1~ppa1~t_amd64.deb ...
Unpacking vim-gnome (2:7.4.1529-1~ppa1~t) over (2:7.4.1529-1~ppa1~t) ...
Setting up vim-gnome (2:7.4.1529-1~ppa1~t) ...

$ sudo dpkg -i ./vim-gnome_2%3a7.4.1529-1\~ppa1\~t_amd64.deb
(Reading database ... 757002 files and directories currently installed.)
Preparing to unpack .../vim-gnome_2%3a7.4.1529-1~ppa1~t_amd64.deb ...
Unpacking vim-gnome (2:7.4.1529-1~ppa1~t) over (2:7.4.1529-1~ppa1~t) ...
Setting up vim-gnome (2:7.4.1529-1~ppa1~t) ...


Running an application with specific file extension using .desktop file

You cannot use wildcards in a .desktop file. You need to be specific in what you want to run and provide at least the name of the AppImage file if it resides in a folder that is included in your search path, or the full pathname if it does not.
Perhaps you are asking this question because you do not want to change the .desktop each time you upgrade the AppImage. In that case, there are some possibilities:

Rename your .AppImage so it has a generic name, e.g. Shotcut-200628.glibc2.14-x86_64.AppImage ->  shotcut, so you can reference the appimage as <path>/shotcut in your .desktopfile. Drawback: you do not readily see anymore which version you have from the file name.

Alternatively:

Create a symlink to the .AppImage file in a folder that is in your search path, e.g. ~/bin/shotcut -> <path>/Shotcut-200628.glibc2.14-x86_64.AppImage, then refer to the symbolic link in your desktop file.

Advantages:

You keep the AppImage name, thus immediately can see the version.
In the .desktop file, it is sufficient to provide the name of the executable, shotcut, because that is in your search path.
You can also launch the AppImage from the terminal or the run dialog Alt+F2 with the command shotcut.

Drawback:

When updating the appimage, you need to update the symbolic link.


Can't replace, remove or change desktop slideshow

The slideshows are .xml files. By default, the slideshow is stored in ~/.local/share/shotwell/wallpaper/wallpaper.xml

This is evident if you run gsettings get on the appropriate schema responsible for setting wallpaper in GNOME and Unity desktops after creating the slideshow.

$ gsettings get org.gnome.desktop.background picture-uri
'file:///home/xieerqi/.local/share/shotwell/wallpaper/wallpaper.xml'

As for why you haven't been able to alter the wallpaper, it seems to me that creating new slideshow failed, so the original xml slideshow stayed.

You could attempt removing the old file ~/.local/share/shotwell/wallpaper/wallpaper.xml and re-create the slide-show.

Also, Shotwell isn't the only program for creating slideshows. It's a common knowledge in Ubuntu world that slideshows are .xml files. For instance, I personally used this for creating command-line utility for creating a slideshow: https://askubuntu.com/a/840381/295286 You could potentially use that as alternative to Shotwell


apt-get update: Clearsigned file is not valid, got 'NODATA'

On a hunch, I changed all references to http://dl.google.com to https://dl.google.com and it started to work. I think Google has shut down all their vanilla http ports and the just do a redirect to https. But apt and dpkg don't follow the redirects so they fail with 'NODATA' message.


Since it's a DisplayLink device, try to use one of the how-to's for DisplayLink & Ubunut, e.g. How do I use a DisplayLink monitor?


Probably created when you installed festival - General multi-lingual speech synthesis system.

Homework?

Note that the script could be replaced by cut -d: -f1 /etc/passwd

# Discussion:
 # ------------------
 # How is it that an ordinary user, or a script run by same,
 # can read /etc/passwd? (Hint: Check the /etc/passwd file permissions.)
 # Is this a security hole? Why or why not?

Consider: How do programs convert from UID numbers to usernames? See man 5 passwd, man getpwent.


Problem with startup applications and workspaces in Xubuntu

Linux desktops generally have no build-in approach to control in which workspace a launched application will appear. Options to achieve that depend on your desktop environment.
One tool that works on any desktop running on Xorg is devilspie and its successor, devilspie2, both old tools that may lack maintenance, have scarce documentation, but they do the job well.
I use devilspie2 myself. It takes a little bit learning to set it up, but once setup, you quickly forget about it. A tutorial can help you understand quickly how it works.
It boils down to having a good configuration file, and have the devilspie2 executable autostart when you log on. With rules, you can have newly created windows that match the given criteria manipulated, including moving them to a specific workspace. For example, the following rule, taken from the linked tutorial, will have windows from LibreOffice 5.4 start on workspace 2:
if (get_application_name() == "LibreOffice 5.4") then
  set_window_workspace(2);
end

You can run compiz on Xubuntu, so provided you want to switch to another window manager than the default, the accepted answer in the linked question could also be applicable for you.


How to detect in runtime is KASLR enabled or disabled?

Check your kernel command line. (example on debian 8)

$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-`uname -r` root=/dev/mapper/`hostname`-root ro quiet

  kASLR is available starting with Ubuntu 14.10 but it is not enabled by
  default. Specify the "kaslr" option on the kernel command line to use
  kASLR.

  Note: Enabling kASLR will disable the ability to enter hibernation mode.

source: https://wiki.ubuntu.com/Security/Features


You can place your terminal on your second workspace.

To do this you can right click on the terminal's title bar and choose for Move workspace right or first go to your second workspace and open your terminal there.

To switch workspaces you can use CTRL + ALT + (Arrow) (up, down, right, left).

You can also use SHIFT + TAB to switch between applications in reverse.


Unable to access BIOS menu after installing Windows 8

You should be able to dual boot.

Did you leave fast boot in UEFI on. That often is the major issue, as booting Windows is required to be fast per Microsoft. And then vendors rely on Windows menu entry to get into UEFI. But when Windows does not work?

And did you leave fast startup in Windows on?

You may be able to directly get into UEFI with full power down or cold boot. If laptop remove battery. And hold power switch for 10 sec or so to drain any left over power. Then boot and immediately press correct key to get into UEFI.

Others have had to go one step further and short jumper pins on motherboard.

Grub also now has a boot entry, usually last one.
Menu entry: 'System setup' which uses this entry in grub -

fwsetup

Reboot into UEFI:

sudo systemctl reboot --firmware
sudo systemctl reboot --firmware-setup


How do i add an unallocated partition to another partition

I hope I can answer your questions:

The unallocated space is space on your hard disk that is not being used by any partitions; think of it as "blank space". To increase the size of that partition, boot from your live DVD or USB and open GParted. In the bottom list of partitions, right click the "extended" and "linux-swap" partitions and Unmount each of them. Select your Extended partition, click the "⇥" button (move or resize), and with your mouse click'n'drag the left side of the blue box all the way to the left. In the same way, use the Move or Resize (⇥) tool to click'n'drag the red linux-swap partition to move it all the way to the left, and then click'n'drag the right side of the blue partition again to close it in. You may have to close the tool and select the partition you want if it does not allow you to play with both partitions simaltaneously. Then you have a small light blue box containing the red box, expect it's all the way on the left of your unallocated space.
Select the dark blue partition, click the ⇥ button again, and click'n'drag the left side as far to the left as you can.
Click the green check mark, and apply the operations. This will be a long process, at least a few minutes, but you will see the progress.
Reboot. You may have trouble booting. If that happens, boot from your live DVD or USB again and use this guide to re-install the GRUB boot loader: https://help.ubuntu.com/community/Boot-Repair
You don't need to worry about any of the options on the GRUB menu for a normal boot. You will only need to use the top one, so when you see the menu, just press Enter. Your other options are Rescue mode, where you can make repairs if a normal boot doesn't work, or a Memtest.
I hope that helps!


Problem with Ubuntu 14.04 installation through wubi.exe

Wubi is not the recommended way to install Ubuntu.
Also it is known to generate a lot of issues.
Install Ubuntu the recommend way.

Create a DVD/USB installation media and boot from it.
Start the installation of the Ubuntu operating system ...
You can find many answers here explaining how to do it.

Alternatively you can install Ubuntu in a virtual machine.
One very popular and well working solution is VirtualBox.
Personally I recommend to perform the normal installation.


Unit snap-core-716.mount has failed on Ubuntu 16.04 lts (rootfs) armhf

While googling in order to find a quick solution to this error message, that chroot comment reminded me that I already faced this problem some months ago.

Well, back then there was an unresolved issue with snapd and something related to linux containers (CT/lxc/whatever). Feel free to look for a proper answer since I just won't do it again.

As I was messing with a DS w/ proxmox on it this is what I did:

THE SOLUTION: Use KVM instead of CT

But right now, as I was just looking for the quickest way to install Micro, in which I totally failed as ending up here means just the opposite, I'll just download the precompiled binaries instead.

So long and thanks to all those writing a BIG TL;DR in above their curated
answers to places like this. *(btw, when spotting one of those great TL;DR, give it an upvote for the sake of all us and you too in the future if u happen to look for an answer that you already knew, u might find it on 1st place in the search results next time).

GL!


Getting "read failed after 0 of 4096 at xxxxxx: Input/output error" error for LVM

Basically I got this error because of the two broken snapshots.

inactive Snapshot '/dev/ubuntu/rootfs_12.10_20140228_01' [6.00 GiB] inherit
inactive Snapshot '/dev/ubuntu/rootfs_12.10_20140409_00' [6.00 GiB] inherit

To fix this issue I removed the broken snapshots using lvremove command.

sudo lvremove /dev/ubuntu/rootfs_12.10_20140228_01

For this I referred this post.


Must I separate a new disk before installing Ubuntu 12.04.3 alongside windows 8?

It's not possible  to install Ubuntu 12.04.3 alongside windows 8 in the same NTFS disk.


Raspberry pi download file not verifiable from sha256 files supplied

The input files to sha256sum -c are signature files so when you do

sha256sum -c SHA256SUMS.txt ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz

... it expects ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz to be a file containing signatures and this is why it says "ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz: no properly formatted SHA256 checksum lines found"

Unless you specify --ignore-missing, sha256sum checks all the files in the signature file, so if you didn't load all the files it will complain for the missing ones.

Last, files with the correct signature are displayed with an uppercase OK and you are grep-ping for a lowercase one (grep ok) so you miss the one important message.

So I think you just want:

sha256sum -c --ignore-missing SHA256SUMS.txt


No. According to the Hurd project, there is only one working distribution with Hurd, and that is Debian GNU/Hurd, which is in development.

However, you can run the available image in Qemu.

If you want to run in on hardware, check the GNU/Hurd Hardware Compatability Guide
.


Getting Kyocera TaskAlfa printer working with job accounting

I solved this problem by putting the job account ID in the printer manager. See picture below:

The manager was installed after installing the printer driver.


You do not need to compile packaged application, really.
Just open terminal and type:
sudo apt-add-repository universe
sudo apt-get install libudunits2-dev

and then use udunits in source (as build-time dependency) or binary form (udunits2 executable from udunits-bin package).


Simple Bridge with netplan doesn't work (19.10)

I think you may have a problem with who is trying to get an address through DHCP (it should be the bridge, NOT the physical device).

Both your OS and the KVM guests will get their DHCP config from the bridge.

This is my working configuration:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp5s0:
      dhcp4: no
      dhcp6: no
  bridges:
    br0:
      interfaces:
        - enp5s0
      dhcp4: yes
      dhcp6: no

Make sure there is NO DHCP in the interface and only on the bridge.

Also, after sudo netplan apply, make sure to reboot, it is more reliable than restarting the network.

Any particular reason you're getting NetworkManager to be the renderer? (makes sense if this is a laptop or desktop, but it's unnecessary in a server).


Command or script to open specific programs to different virtual desktops

Do you use Compiz? Gnome Shell?

If you use Compiz, install "compizconfig-settings-manager":

sudo apt-get install compizconfig-settings-manager

Then open CompizConfig Settings Manager, enable the "Place Windows" plugin, then click it and on the "Fixed window placement" tab, under "Windows with fixed viewport" (the last option there), select "New". Here, select the workspace on which you want the application to open. Then click the "+" sign and then click "grab", then click the middle of the window for the application you want to run on a given desktop (workspace).

If you don't use Compiz, you can do this with an application called "devilspie". If you want a GUI for it, use "gdevilspie" (search for it in Ubuntu Software Center).

And finally, if you use Gnome Shell, see THIS.


In general high presentation libraries (like lib webkit) do not interface directly with the kernel, which means they don't depend on any specific kernel version. Instead such libraries depend on specific versions of a set of other libraries.

Newer versions of webkit might depend on newer versions of those libraries, the required versions are usually documented on the source.


How to solve gtk-warning on using gedit?

Right. You're running gedit as root, and root has its home in /root. But since root isn't a normal user, it doesn't have the normal directories like /home/user/.local/share/. In your case, it means that it can't store the list of recently edited files for gedit.

It is of absolutely no importance. But if you want that warning to go away, you can type "sudo mkdir /root/.local/share/". That will also let you open files that root has recently edited in gedit. But everything is fine :)


Sync Tomboy through Ubuntu One and local folders

Have a look at inoticoming in the repositories. With this, you should be able to sync to a local directory, and have inoticoming initiate a copy of the files to somewhere else (DropBox, Ubuntu One) as the changes come in. This will also allow you to keep a copy of the previous version somewhere else as well, as I think it lets you perform an operation on the existing files using one of its options.


How do I get 2560x1440 resolution within VirtualBox on a Mac?

Well this is embarrassing.

It turns out that all I needed to do was run in full screen mode and then Ubuntu will figure out the new resolution automatically.  I could have sworn I tried that.  Oh well.

Don't know how to "cancel" this question, I'm afraid.


How to take the config.XML field value based on property file value in shell script?

sed "s@PatternThatShouldBeReplaced@$name" /Path/To/config.xml

Note: sed seperator normally is / but I suggest @ in this case for allowing the variable to include / without escaping


Try this:

sudo cp /usr/share/nano/html.nanorc /usr/share/nano/html.nanorc.bak
sudo nano /usr/share/nano/html.nanorc

in this folder replace contents with:

## Here is a short improved example for HTML.
##
syntax "HTML" "\.htm[l]?$"
color brightblue start="<" end=">"
color red "&[^;[[:space:]]]*;"
color yellow ""[^"]*"|qq\|.*\|"
color red "(alt|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)="

That code is courtesy of scopatz at github url: https://github.com/scopatz/nanorc

Close and reopen terminal, then try nano into an html file.


How to install a list of packages using apt-get?

If you have file (say pkglist) which contains list of packages to be installed like:
pkg1
pkg2
pkg3

or
pkg1 pkg2 pkg3

Then you can install those packages with apt by using one of the following commands:

sudo apt-get install $(cat pkglist)

or

xargs sudo apt-get install < pkglist

For more information on apt-get install visit man apt-get install section.


Increase size of overall appearance in Ubuntu 18.04

The size of your desktop is primarily determined by your display resolution. You could increase the size of your desktop by lowering the resolution ("Settings - Devices - Display", Resolution). However, you should run at the highest resolution you have available, because that will provide you the best display quality.

Once you decided on your display resolution (choose the highest you can that works well), there are two ways to increase the desktop appearance.

In Settings - Devices - Displays, you find a scaling factor if you are using a monitor that supports highDPI resolution. This allows you to scale the desktop by whole numbers. This setting is mainly aimed at accommodating high resolution displays.
In Tweaks (you may need to install Gnome Tweaks, because it is not installed by default on Ubuntu), you find, on the "Fonts" tab, a "scaling factor", which allows to scale fonts of the user interface. Interface elements will also adapt to the changing font sizes, and thus give your desktop elements a larger appearance if you increase font size.

You should be able to find a combination of these settings that pleases you.

Note Enlarging the font size using the scaling factor will cause the accessibility icon to appear in your status bar. To turn that one off again, you can install the extension "Remove accessibility"


Ubuntu 14.04 hangs at purple screen after it asks for my password

I think this might be related to the Nouveau video drivers?... I removed mine and forced it to use the latest NVIDEA drivers (Vers 331. xx  - 32 bit...) It now boots up beyond the start-up screen and works fine, until you try to suspend the system.

Then the same symptoms occur as above (i.e. system freeze, but can switch to tty).  A full re-start resolves the start-up freeze, but the graphics s/w & firmware don't like to "suspend" with current combinations for some reason unknown.


Can't access recovery mode by holding shift

I was able to access the recovery mode menu ONLY and finally after trying ESC.  At no time and in no way did the SHIFT key work for me.


make sure you haven't changed anything in power settings.


Where can I find a Simple Hello World example for Ubuntu SDK (QT)?

Found what i needed on Official Documentacion for QT5 which matched the version i was using ( which was the problem the whole time ).

Looks like the guide i followed from developer.ubuntu.com told me to install QT5 IDE
and i had been reading 4.X documentacion.


i run this test like you:

 $ gcc main.c -o test2
 $ ./test2
this is your number`s = 13 with string = 13

what files in my folder:

 $ ls -l
-rw-r--r-- 1 dan dan  401 Окт 15 00:54 main.c
-rw-r--r-- 1 dan dan  204 Окт 12 00:01 main.h
-rw-r--r-- 1 dan dan 1984 Окт 15 00:54 main.o
-rwxr-xr-x 1 dan dan 8720 Ноя  3 00:09 test2

gcc look *.c files only in working directory, so to check this:

 $ pwd
/home/dan/git/C/test1

and lets run compile in wrong directory:

 $ cd ..
 $ pwd
/home/dan/git/C
 $ gcc main.c -o test2
gcc: error: main.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.

so make sure your work dir is correct, use CD command to change you current dir, more in "man cd"
start to use MAKE utill
you don't need give *.c files exec permission


Moving large data between Ubuntu systems in a home network

I've found that rsync is pretty fast. You can set up NFS or SAMBA on both machines and rsync everything over.

If NFS and SAMBA aren't your thing skip the encryption and install vsftpd on the target machine and FTP away. vsftpd is very fast.


I cant comment as I do not have enough reputation, but what error message does it exactly give when you try to mount it?

Did you try the following?
Go to dash and type disks-> Then in the application, click on the disk in the left side, then select the partition you want to mount on the right and click the play icon below it.

If the above does not work, as it is you are trying to make it bootable, so I assume there is no data on it.
So, Go to GParted-> click Device->New Partition Table-> Select msdos-> Then repartition the drive and then see if you can mount the drive by the above method.

Also, I have noticed, that when Gparted is open, you cannot access the drives through the file managers or the terminal through "mount /dev/sdxy". This seems to be new in Ubuntu 16.04. So, close Gparted, wait for some time and reinsert the pendrive if it does not mount.


Virtualbox causing 16.04 to freeze completely

Updating to Virtualbox-5.2 and disabling USB support for the guest OS has solved this issue.


Bad printed text within pages with colour elements (but ok with acroread)

I solved changing back to the default driver and setting the options in this way.. no idea which particular option is the one that really did the difference, as I did already tried many times before.. so the only things I know is that this set of options now works :-) :

Printer works with:

Driver: default (I did change driver to generic and then change it back again to the recommended one)
Resolution: 600dpi
Gradation: standard
Dithering: text
Color mode: color
Gray reproduction (Text/Line Art): Black/Gray by K
Black over print: off
CMYK Simulation profile: off
Printer profile: no profile available
Image smoothing: off
Color setting: off
Color profile: auto
Barrier-free color management: off
Separate into CMYK: do not separate


Fingerprint Reader Lenovo Thinkpad L13 - Synaptics Driver

For now, it's really tricky.

19.10 uses outdated fwmgr and fprintd. You'll need at least fwmgr-1.3.5 and fprintd-1.90. They are available in next Ubuntu release - focus which is on early stage of development.

You can get up-to-date version of fwupd package from snap, but you should build fprintd-1.90 packages from source.

Also, fingerprint reader firmware should be updated, but this is tricky as well, because firmware you need is marked as testing and current version of fwupd fails to download it.

All in all, I spent all evenings this week tinkering and finally managed to get it working.
I would suggest to wait for Ubuntu focus where fingerprint will be working out of the box.


Extend OS partition during image restore

In FOG there are several options to chose from:

Multiple Partition Image - Single Disk (Non resizable)
Single Disk - Resizable

After creating a image with "Single disk" "Resizable" it's alright.
The whole disk space is allocated.

It means FOG (1.20) is able to autoresize EXT4. Yay! :-)


I had the same issue with an other key. Like Serverus Tux already said, try to add the missing key. It solved my problem.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCAE110B1118213C


How do I put Google Chrome on my launcher?

Search for Chrome in the menu and drag it to the dock.

Doing this, you don't need the command line at all.


I have a Fujitsu-Siemens Laptop running 13.04 with the same graphics card, and I had the same problem.  I have downloaded the graphics card driver form Intel, and installed it, and that took care of the problem.

Once you download the driver, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the folder where the file was downloaded, probably the Downloads folder, and run the command(s) below:

sudo dpkg -i <package_name>


in which player i can play recordMyDesktop output video file, which has the extension .pcm ?

Using vlc:

sudo apt-get install vlc

recordmydesktop creates a out.ogv

Therefore:

vlc out.ogv

In the case of a PCM file use

vlc audio.pcm

Or open the properties for audio.pcm in your file manager and select Open withVLC

Example

% recordmydesktop
Initial recording window is set to:
X:0   Y:0    Width:1920    Height:1200
Adjusted recording window is set to:
X:0   Y:0    Width:1920    Height:1200
Your window manager appears to be GNOME Shell

Detected compositing window manager.
Reverting to full screen capture at every frame.
To disable this check run with --no-wm-check
(though that is not advised, since it will probably produce faulty results).

Initializing...
Buffer size adjusted to 4096 from 4096 frames.
Opened PCM device default
Recording on device default is set to:
1 channels at 22050Hz
Capturing!

^C
*********************************************

Cached 17 MB, from 1344 MB that were received.
Average cache compression ratio: 98.7 %

*********************************************
Saved 153 frames in a total of 152 requests
Shutting down.....
STATE:ENCODING
Encoding started!
This may take several minutes.
Pressing Ctrl-C will cancel the procedure (resuming will not be possible, but
any portion of the video, which is already encoded won't be deleted).
Please wait...
Output file: out.ogv
[101%]
Encoding finished!
Wait a moment please...

Done.
Written 2631681 bytes
(2526038 of which were video data and 105643 audio data)

Cleanning up cache...
Done!!!
Goodbye!


How to change the email interval for apticron?

In order to change this, you must:

Delete the daily cronjob (if it exists)
Edit /etc/cron.d/apticron settings,

from:

30 * * * * root if test -x /usr/sbin/apticron; then /usr/sbin/apticron --cron; else true; fi

to:

30 11 * * 0 root if test -x /usr/sbin/apticron; then /usr/sbin/apticron --cron; else true; fi

This has a good walkthrough, and this explains cron options well.


You can use -- to tell rm (and many other commands including many shell built-ins) not to interpret any further input as command parameters, so that -p can be interpreted correctly as an argument instead of an "unrecognised option"

rm -- -p

(This is also a good safety measure when globbing. You might have accidentally created a file called -rf...)


Ubuntu software center not opening error "countrycode"

Change file region.get_region_cached() (sudo vi /usr/share/software-center/softwarecenter/region.py) as follows:

def get_region_cached():
    global my_region
    if my_region is None:
        rd = RegionDiscover()
        my_region = rd.get_region()
    my_region.setdefault('countrycode','BG')
    return my_region

change is only in the line:

my_region.setdefault('countrycode','BG')

where "BG" is the region code for my country.

I know that this doesn't resolve the problem, but at least I can use software center now.

using command line..


How can I redirect all mails of my smtp server on only one adress mail (using roundcube)?

You dont have to add all addresses you can just add an alias from '@mydomain.com' to 'contact@mydomain.com', but please note that with this parameter every possible mail to any e-mail address is forwarded also if the address is not added into the mailbox maps. So you also receive also spam to all of this addresses.


hwclock vs rcS.d/S11hwclock.sh what is the difference between the two?

hwclock is a tool for accessing the Hardware Clock. You can display
  the current time, set the Hardware Clock to a specified time, set the
  Hardware Clock to the System Time, and set the System Time from the
  Hardware Clock.

Source: Linux man page

S11hwclock.sh is where hwclock gets called.


Where are the Calendar, Task and Notes views in latest update of Evolution from Ubuntu 10.10?

Sounds like you are launching evolution --express this starts only the email component.
Try starting evolution by modifying your launcher or entering this in alt+f2.


Try
dig @8.8.8.8 www.ubuntu.com

just to rule out that DNS traffic somehow gets mangled.
edit: dig is a tool to query DNS-Servers. By using the the @serverIP syntax you can bypass the systems DNS settings and directly talk to a DNS server of your choice. IMHO this helps a lot in diagnosing if the problem is your machine (dig with @syntax working) or on the network side (dig with @syntax returning the same result)


Streaming video capture on headless server

You can use mencoder from the mplayer package to capture to a file from the command line.

mencoder −tv driver=v4l:width=640:height=480 tv:// −o tv.avi −ovc raw

There are a ton of options

mencoder -tv driver=v4l:width=640:height=480 tv:// -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy -o output.mpg


The reason you need MASQUERADE is because of the way NAT works.

Consider your router, G.  It gets an IP from the Internet Service Provider.  That IP address is what all systems behind the router go out to the Internet over, so all systems are masquerading as that IP address.  (Which is how routers work, in residential basic setups).

Your computer D, acting as a NAT gateway for your laptop, L, is bound to the same rules of how Internet works.  Ideally, what you'd be doing is having at least one internal IP address, and when it requests a resource other than the other computers in that subnet, it requires the ability to masquerade the packets from L as the internal IP address of D, in order to properly route packets through G.

This is also the case with using a computer as a VPN server; to go out to the rest of the network or specifically an external network, you need to masquerade as that server's IP address.

This is just how NAT works.  The same applies to proxies, etc.


What is difference between arping and arp?

The Address Resolution Protocol - arp is a protocol. Its operation is usually implicit in other network activities, transparent to users. Among other things the arp protocol maintains a table of IP-to-ethernet address mappings derived from its operation. There is a related command that's also named arp. Its focus is the table, and it is a tool whereby maintenance of the arp table can be done manually.

Another command of interest is arping. It is to explicitly trigger the arp protocol to action, emitting arp packets.

Source and more about:

exercising the "arp" and "arping" commands

See also:

Address Resolution Protocol
arping


Trying to install iTunes 7.2 to sync music with iPhone 4S

Quote from Top 5 iTunes Alternatives On Ubuntu 14.04 on ubuntufree.com:

Is it possible to run iTunes on Ubuntu ?
No, you unfortunately can NOT run iTunes on Ubuntu or any other Linux
distro. People will tell you there are weird ways to get iTunes
running in Ubuntu, but I’ve never seen anyone successfully do it or
give instructions that someone else could follow to successfully run
iTunes in Ubuntu. Apple simply refuses to make a working iTunes
version for Ubuntu at this time. So rather than spend energy looking
for it, you'd better download music manager similiar to iTunes.
1. Rhythmbox

Being the default music player on Ubuntu, Rhythmbox is considered to
be the most stable, yet most powerful music player around. With a user
interface similar to iTunes, this free application not only lets you
listen to your favorite music but also lets you enjoy podcasts and
radio as well. Furthermore, it lets you create playlists so that you
won’t have to look for your favorite songs every single time.
One of the biggest advantages that Rhythmbox has over other media
players is it recognizes most of the popular devices like iPhone,
iPod, and even the latest Android phones. This means that you can
connect your device to your computer and transfer your favorite music
to it directly from Rhythmbox. If you’re using the latest version of
Ubuntu, Rhythmbox comes pre-installed.
2. Banshee

Banshee is another free media player that has an interface that is
similar to iTunes. Like iTunes, it can play music, movies, and
audiobooks as well. Once installed, all you have to do is add your
media to its library and start search for your favorite tracks. If you
want to buy new tracks, Banshee takes care of that too by integrating
with Amazon’s online music store. Though not updated as often as
Rhythmbox, Banshee remains one of the most popular players iTunes
lovers flock to.
3. Amarok

Unlike Rhythmbox or Banshee, doesn’t have an interface similar to
iTunes(Which is not a bad thing!). Instead, it comes with a simple
layout that makes discovering and playing your music easier. Once
installed, you’ll be able to search, manage, and listen to your
favorite music just like you used to on iTunes. The application comes
with playing statistics, file tracking, dynamic playlists, and many
other features that make it a really good alternative to Apple’s
famous music player.
[...]


You can use aptitude and the following command:

sudo aptitude install openjdk-8-jdk-headless=8u144-b01-2

During the process, Aptitude will ask to choose one of the variants to resolve this problem and it's needed to choose an installation of the previous version of the openjdk-8-jre-headless package in this case.

Or you can manually install the previous version of the packages:

sudo apt install openjdk-8-jre-headless=8u144-b01-2
sudo apt install openjdk-8-jdk-headless=8u144-b01-2


In order to chroot to do things like.. configure/install grub, do the following-

#first, mount new install to /mnt/oneiric
mount -t proc proc /mnt/oneiric/proc
mount -t sysfs sys /mnt/oneiric/sys
mount -o bind /dev /mnt/oneiric/dev

chroot /mnt/oneiric /bin/bash

I wouldn't try to start full gnome this way. The only reason you should really be doing this is if you can't boot into the linux installation for some reason, but still need to run a few things from it. You can't just chroot over and change the distro you're running.


Nvidia PowerMizer Performance level stuck at lv.2 from 4 possible

Do you have tried changing 1 to 3

PowerMizerLevel=0x3

or try (and erase other Option "RegistyDwords".... lines)

Option  "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerLevel=0x1; PowerMizerDefault=0x1; PowerMizerDefaultAC=0x3"

???

Try playing with 3 or 1 or 2...  Good luck


How can I get back to multiple tmux panes once I suddenly type `prefix + enter`?

Normally you zoom in and out from panes by

prefix + z

where prefix, is Ctrl + B by default


For Ubuntu 16.04, you can install the CURL module for PHP 7 by running sudo apt install php-curl.


API Connect shows Cannot GET error when updating schema

Have you tried to access your resource with curl? Perhaps even with a browser. Don't forget to add the right port. With curl you could do it from the box where the API connect is running. The curl command would be something like: curl -X GET http://<host>/apim/dataSources/partials/dataSourceMigrate.html (fill in your hostname)

A few things to try:

Get the file from your desktop
Get the file from the API box (probably you would need to ssh into that box)

If those steps succeed I wouldn't know from current info. In that case please dig through the logfiles of both API connect and mongodb, and post the lines relevant to your problem.

If the first step fails, than you know that you have to check your webserver. First place to look is the error.log and access.log of your webserver.

If the second step fails than it might be a connection problem. Look at ping <host>  output to see if the box can reach your webserver. Could also easily be a firewall issue.

Hope this helps,
Jeroen


You're right-- Snappy sounds exactly like what you're looking for, while retaining the ability to have shared libraries. However, you're also right, currently they do not run on Ubuntu Desktop. However, that will change as of Ubuntu 16.04 (due to be released in April). You can see early efforts to accomplish this here.

Beyond that, it's worth noting that you can accomplish a lot of what you're trying to do via static linking. I assume you know this.


keyboard not working in grub after power off. Restart or short power cycle works fine

It seems like Grub is unable to properly initialize your keyboard. But once Linux booted, it's properly initialized and can be used by Grub. That is indeed strange. Are you sure it is not a USB keyboard? That is, even though it is internal, it might be on an internal USB bus (you can check with lsusb, eventually add -v for more details).

Maybe it is enough to update your BIOS? (Seems the Y700 can only do that from Windows).

If this persists after a BIOS update, you might be better of opening a bug at Ubuntu or Grub. But of course someone here might have a Y700-17ISK (I don't) and a better idea/answer.


Unable to log in after changing permission of /usr/bin

When the GRUB menu appears during boot (press Shift repeatedly after turning on to make it come up if it doesn't automatically appear), choose Advanced options, select Recovery mode and then select Drop to root-shell.

Now you need to run two commands:

chmod 755 /usr/bin
reboot

(You don't need sudo here as you are root already)

Now you can boot normally to Ubuntu and everything will be fine.


How to find the path of a file found in Unity's Dash?

Directly from the dash you can't, in fact there's no call in place that allows you to do this. GNOME 3 doesn't either. So, where are these values stored? They are normally called "application.desktop" so to copy these to the desktop you only need:

➜  ~  locate gparted.desktop ## Find where it's
/usr/share/app-install/desktop/gparted.desktop
/usr/share/applications/gparted.desktop # This is the default path for installed applications
➜  ~  cp /usr/share/applications/gparted.desktop ~/Desktop # Done

This will make a copy on the desktop of the .desktop file, and should be interpreted as a "shortcut" to the program.

More about this in the specification page for .desktop files: http://standards.freedesktop.org/desktop-entry-spec/latest/ape.html


LibreOffice Writer: minimize, cross and enlarge buttons are missing

There is a bug that sometimes puts the LibreOffice window too high on the screen and the top bar is unreachable.

Try to press the ALT key, click anywhere on the Libreoffice window whit the mouse and move it while keeping the left button pressed. The window should move and you should be able to see the top bar.

Now resize the windows to something you like and close it. It should remember its position and size the next time that you open it.


You can create a bootable USB drive.

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows