Whats your HW ?

Mine:

$ sudo dmidecode -s system-product-name
Aspire E5-571

For mine Bluetooth and Touchpad works with a new kernel.

See https://askubuntu.com/a/557370/355307


How to copy from current clipboard selection to terminal with a command and without mouse

There are keyboard shortcuts for GUI terminals , Ctrl+Shift+V and Shift+Insert already. A script and mouse are unnecessary here.

If you're specifically looking for commands, there are xclip and xsel. Both of them are used to manipulate clipboards ( of which there are two in Linux - primary and secondary, that's why two different keyboard shortcuts were mentioned in the beginning of this answer ). I am personally more of a xclip fan, and i regularly use echo text | xclip -sel clip to copy something to clipboard and xclip -out -sel clip to print out whatever is in my clipboard. This is especially useful when you want to filter out text or process text with another command like xclip -out -sel clip | grep 'some text that I am looking for'

NOTE: xclip and xsel don't come to Ubuntu by default. You must install them with sudo apt-get install PACKAGE_NAME command

If we want to go into TTY, there's no way to copy text there. You must either use something known as named pipe or just a plain text file.


you have a option here . If your country not listed then you have option for that also . I mean look this

The only thing here matters is APN of your Network , no matter how you pay .
Hope that helps .


How to change default locale so new users will inherit it?

You need to change /etc/default/locale. The easiest way is to open Language Support and select the Regional Formats tab. You'll probably find English (United Kingdom) preselected, since that's what you have for your own user. To make it default for new users, just click the Apply System-Wide button.


How does this egrep command find the longest line in a file?

Full Command: egrep -n "^.{$(wc -L < filename)}$" filename

Breakdown:

egrep = The egrep program, which searches for lines which match a pattern and prints them.  (similar to grep).  Equivalent to grep -E which interprets the thing in quotes as an extended regular expression pattern.

-n = egrep argument to state the line number.

$(wc -L < filename) - wc is a word counter program and prints the number of new lines and stuff in the file.  -L is the wc max line length argument.  < filename is the command to pass the full content of the specified filename file into wc.  $(  ) is a Bashism (something that is related to the bash program and scripting language) and is a way to say "Process the command in here, then put the output in place of this entire string.  The rest of that command appears to be part of regular expressions, plus the input passed into the string, ultimately with this just being the pattern that egrep matches on.

"^.{...}$" = The " is just a way to pass that pattern to egrep without characters in it being interpteted as Bash codes.  The rest of this is a regular expression pattern.  Regex is something everyone should know.  I use RegExr to help me learn and understand regex, and to build regex patterns.  To break this down, ^ is an anchor and indicates that it matches the beginning of the string.  . indicates any character except a line break before the next argument.  { and } indicate actual { and } characters in the output, according to RegExr.  The $ at the end is an anchor to indicate the end of the string.


Java will not run at all and is not recognized as a command no matter how many times I install it

Have you tried just doing it through the Ubuntu Software center? If that didn't work you should be able to run

sudo apt-get update
sudo apt-get install default-jdk


Hard disk is not recognized by BIOS after a clean in recovery mode of UBUNTU!

Came to the conclusion that my hardisk was corrupted due to a bad sector. Had to change the hardisk.
PS: Never use a single hardisk for multiple boots. if possible try to use 2 hardisks. Don't go multibooting if you have a RAID configuration. It will suck in the long run.


Laptop's hard drive doesn't really spin down

hdparm -B 127 should configure your drive for maximum power savings however if there is a flush to disk then it has no choice but to wake up. To counter this you can install powertop to profile programs that write to disk repeatedly. If it's workable, you might be able to reconfigure those programs to write to a tmpfs mount of your creation, or by using an existing tmpfs like /run is up to your discretion. You could also adjust the swapiness and vm caching attributes to tell Linux to hold onto more ram, thus flushing to disk less. See the VM docs in the linux kernel, http://lxr.linux.no/linux+v3.1.2/Documentation/sysctl/vm.txt and Documentation/vm/.


How to revert from Gtk3 to Gtk2 indicators in xfce4-panel?

When you followed the steps to install development versions of xfce-panel and the indicator plugin, you built them from source, and sudo make install installed them into /usr/local.

In order to clean out that installation you need to manually delete those installed files. Unfortunately there is no way to do this automatically. However, what you can do is follow the installation steps again and observe what files it installs and then delete them by hand. You can semi-automate this by doing:

find /usr/local/ -mtime -1 -type f

This will list all files in /usr/local less than 1 day old, which should include all the installed files if you follow the installation steps again. You can also use -delete argument with find to delete all the found files, but check first that the result is sane.

Edit: Apparently, sudo make uninstall may work for this particular set of applications. If you still have the repositories where you built the software just run sudo make uninstall in each one. If not, you will need to go through the install steps again, skipping the sudo make install for each repository, and then running sudo make uninstall in all three at the end, after you have built everything.


Is there a ppa or debian package for Thunderbird 3.3a?

Thunderbird 3.3 alpha 2 is now available here: https://launchpad.net/~mozillateam/+archive/thunderbird-next

Thunderbird 3.3 dailies are available here: https://launchpad.net/~ubuntu-mozilla-daily/+archive/ppa


How to send current of line of code to terminal input in gedit 2013?

The youtube video you reference appears to point to a blog post that explains how to do it. The post isn't in English, but it's well written, so you can infer the steps to take. I just tried it out and it works for me just like the video illustrates. So that I'm not just posting the link, here are abbreviated instructions:

install the needed packages: apt-get install gedit-plugins xdotool
In gedit, visit the Tools->Manage External Tools menu, and create two new tools. I called mine "Send Line to Previous Window" and "Send Selection to Previous Window." The code for both is the same, see below. Configure each command as below

For "Send line..."

Shortcut: Alt+L
Save: Nothing
Input: Current Line
Output: Nothing
Applicability: *All documents / All Language*s

For "Send selection..."

Shortcut: Alt+B
Save: Nothing
Input: Current Selection
Output: Nothing
Applicability: All documents / All Languages

The Code

#!/bin/sh

read line
xdotool key alt+Tab
xdotool sleep 0.2
xdotool type "$line"
xdotool key Return
xdotool key alt+Tab

Note, the example code used cat - > /tmp/runprev_meh.txt; line=$(cat /tmp/runprev_meh.txt) instead of read line, but I think it's cleaner and doesn't introduce anyproblems.


I have encountered the same bug, but unfortunately have found no proper solution. The bug seems to be https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1427974 and https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1587968

Seems that this is caused by enabling "proposed" repository.


Can a debian package have a dependency on a snap package?

No, these are independent packaging systems.  You can use debian/control to specify another debian package using the Depends: xxx syntax but not a snap.  This is the whole point about snaps: they bundle their own dependencies to prevent things like distro version mismatches, etc.

Maybe you want to consider packaging your application as a snap?


Can you try to recover the grub installation?
I could recover grub many times by following these instructions at: https://wiki.ubuntu.com/Grub2#Recover

First of all, you must start your system from a live cd. Then

"METHOD 3 - CHROOT

This method of installation uses the chroot command to gain access to the broken system's files. Once the chroot command is issued, the LiveCD treats the broken system's / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.

1) Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing - either 32-bit or 64-bit (if not then the chroot will fail).

2) Open a terminal - Applications, Accessories, Terminal.
3) Determine your normal system partition - (the switch is a lowercase "L")

sudo fdisk -l

If you aren't sure, run
df -Th  Look for the correct disk size and ext3 or ext4 format.

4) Mount your normal system partition:

Substitute the correct partition: sda1, sdb5, etc.
sudo mount /dev/sdXX /mnt   # Example: sudo mount /dev/sda1 /mnt

5) Only if you have a separate boot partition:
sdYY is the /boot partition designation (for example sdb3)

 sudo mount /dev/sdYY /mnt/boot

6)
Mount the critical virtual filesystems:

 sudo mount --bind /dev  /mnt/dev
sudo mount --bind /dev/pts  /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys

7)
Chroot into your normal system device:

sudo chroot /mnt

8) If there is no /boot/grub/grub.cfg or it's not correct, create one using

update-grub

9)
Reinstall GRUB 2:

Substitute the correct device - sda, sdb, etc. Do not specify a partition number.

grub-install /dev/sdX

10) Verify the install (use the correct device, for example sda. Do not specify a partition):  sudo grub-install --recheck /dev/sdX
11)
Exit chroot: CTRL-D on keyboard
12)
Unmount virtual filesystems:

sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys

13)
If you mounted a separate /boot partition:

sudo umount /mnt/boot

14)
Unmount the LiveCD's /usr directory:

sudo umount /mnt/usr

15)
Unmount last device:

sudo umount /mnt

16)
Reboot.
sudo reboot "


Ubuntu 12.10 desktop Turns Black When booting

When you boot and the screen turns black, have you tried turning up the brightness using the f2 and f3 keys? I have the same problem when booting my Pavilion m6. Once you adjust the brightness you should be able to log in normally. There is probably a way to adjust the default brightness but I'm not sure how. Anyone else?


Can I use HUD menu for unfocused applications?

No, It isn't possible.

Hud is made to replace traditional menu system. As you can't access a menu without bringing the application is focus, You can't do this also in Hud.

Have a look at Mark Shuttleworth's blog. It is saying

  It covers the focused app (because that’s where you probably want to act) as well as system functionality


"no symbol version for module_layout" when trying to load usbhid.ko

Specifically what the problem is that when you built your module, the kernel source tree was probably missing the Modules.symvers file.  The kbuild system actually warns you about this when you build your module.  If Modules.symvers is missing, you'll see:

  Warning: Symbol version dump /usr/src/linux-2.6.34-12/Modules.symvers
           is missing; modules will have no dependencies and modversions.

If your kernel has CONFIG_MODVERSIONS enabled, then during the modpost phase of building your driver it will run scripts/mod/modpost with the -m option.  If you're brave and take a look at the scripts/mod/modpost.c source, you'll see that the -m option adds the _module_layout_ symbol from vmlinux, however if you don't have Modules.symvers from your kernel, you'll not get the CRC value for this symbol and you'll end up with this error message.

So there are two ways around this.

1) run a full build of your running kernel to generate Modules.symvers, then rebuild your module.
[http://www.mjmwired.net/kernel/Documentation/kbuild/modules.txt][1]

51  === 2. How to Build External Modules
52
53  To build external modules, you must have a prebuilt kernel available
54  that contains the configuration and header files used in the build.
55  Also, the kernel must have been built with modules enabled. If you are
56  using a distribution kernel, there will be a package for the kernel you
57  are running provided by your distribution.
58
59  An alternative is to use the "make" target "modules_prepare." This will
60  make sure the kernel contains the information required. The target
61  exists solely as a simple way to prepare a kernel source tree for
62  building external modules.
63
64  NOTE: "modules_prepare" will not build Module.symvers even if
65  CONFIG_MODVERSIONS is set; therefore, a full kernel build needs to be
66  executed to make module versioning work.

2) The other option is to tell stupid modprobe to just ignore all that crap and just load your module anyways:

modprobe -f <module>

I tend to favor option 2 :)


Brightness controls don't work on Macbook - Stuck on high (Nvidia GeForce 9400M)

♡ I found a solution! Hopefully someone finds this useful. I probably did more steps than required but here is what worked for me. ♡
(Nvidia users only)

Open Terminal and enter the command below to open the xorg.conf file for editing:

sudo -H gedit /etc/X11/xorg.conf

Once the file opens, find Section “Device” and add

Option "RegistryDwords" "EnableBrightnessControl=1"

(as shown below in bold line), and hit CtrlS to save it.

In my case, this file was empty so I entered the exact text and saved it to /etc/X11.

Section "Device"
Identifier      "Default Device"
Option   "NoLogo" "True"
Option "RegistryDwords" "EnableBrightnessControl=1″
EndSection

Source

After restarting, if this did not work for you I also did the following:

Just create a file in /etc/X11/xorg.conf.d/50-nvidia.conf with the following content:

Section "Device"
    Option "RegistryDwords" "EnableBrightnessControl=1"
    Identifier "Device0"
EndSection

Again, in my case some of these files didn't exist so I created them myself. When everything was in place I restarted and now my brightness controls are working

In order to create them manually open terminal and enter:

gksu nautilus

From there on navigate to: /etc/X11/ and create a folder named   xorg.conf.d. Then inside that folder create a file named   50-nvidia.conf using gedit with the content listed in the step 3.

Now restart your computer.

Source


I have a dual boot of windows 7 and ubuntu 12.10 on my laptop. i see a grub rescue error during start. Can anyone please help me fix this?

Boot from a live CD image of Ubuntu Secure Remix and run the Boot-Repair tool. It should identify and correct any problems with your dual-boot setup, I think.


snap package error: Failed to load module "unity-gtk-module"

Nothing is missing or wrong on your side: there is still quite some work going on on desktop snaps and those warning/failure are part of them to this date.

The difference when you run (even in devmode) your snap via the command and directly .../snap/prime/usr/bin/fotoxx is that on the first case, all paths are fetching dependencies and assets like locale, modules and such, from your snap file (which doesn't have this unity-gtk-module for instance).
When you run your app directly from the prime/ directory, it's like any another program on your system and it's using the system libraries.

To sum up, we track desktop-related issues on this tag on our bug tracker. The snappy and desktop team are currently on fixing those together!


Reset tracker by

tracker reset -r

Then do the indexing again by

tracker daemon -s

Log out and log in again.


Menu bars not integrated with Unity's global menu bar

@fossfreedom was on the right track. On my system, the package indicator-appmenu (and ubuntu-desktop) was missing. Installing this package + restart solved the issue.


Having extra kernels take space up.  You can look for your old kernels manually in the /usr/src folder.  However, the following command can remove the linux kernels quickly and easily.

From a Terminal window, type in:

dpkg -l 'linux-*' | \
   sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | \
   xargs sudo apt-get purge

The above line should only be used if you know that your present kernel is working the way you want it and any other kernels you are not concerned about.  This will remove all kernels but the current active one that is running on your system.  It will remove even newer kernels if you are booted to an older kernel.


Has anyone used the Lenovo y480 with Ubuntu?

I have been using 12.04 on my Y480 for over a month now -- i7, 8GB RAM, 750GB HD. Works great. I have no issues with wireless, sound, etc. The only "complaint" I have is that the trackpad occasionally doesn't seem to turn off while typing, so the cursor sometimes ends up in odd places. However, coming from an Apple Macbook Pro (old model), I think the ability to use two fingers for a right click works better under Ubuntu than it did in the brief time I had Windows on the machine. I don't believe I had to go through any extraordinary effort to get the machine working.

I bought this laptop with the intent of installing Ubuntu on it, trying to escape the Apple/Microsoft dictatorships, and I am very happy with the machine.


How to change/fix system's locale when you setup in a language not official in your country?

Bug is reported here: https://bugs.launchpad.net/ubuntu/+source/kde-runtime/+bug/1322968 - "Changing country leads to invalid locale"

Workarounds:

Select country British English - not American English (and then
language Spain)
Or manually edit ~/.kde/env/setlocale.sh after having changed Country/Region & Language settings


xprintidle doesn't work in cronjob. Why?

You need to set the DISPLAY environment variable before calling it, you can try this in the virtual consoles (Ctrl-Alt-F1) since they don't have the DISPLAY variable set, they will act exactly like the cron script will act.

DISPLAY=:0 xprintidle

or

export DISPLAY=:0
xprintidle

either should work.


Telugu RTS layout (m17n) missing Ubuntu 14.04

Restarted Ibus (ibus restart) a couple of times and bingo, more layouts appeared, including telugu-rts.


This is generally the message given by certain stupid bioses that check the MBR for a partition with the boot flag and refuse to boot the MBR if they don't find one.  Looking at your paste, you have the boot flag set on your linux partition, but it is a logical partition and the stupid bios only checks the primary partitions in the MBR.  Use fdisk or gparted and set the boot flag on one of the primary partitions ( 1-4 ) and that should fix it.


Alternate install Java for Chrome, can also install icedtea:

 sudo apt-get install icedtea-7-plugin

Then link icedtea in to chromium plugin folder thusly

cd /usr/lib/chromium-browser/plugins

and link

sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so


To enable bluetooth on every startup you need to add your custom command in etc/rc.local

Open terminal and type

gksudo  gedit /etc/rc.local
Now add the following line before exit 0

rfkill unblock bluetooth

You can also add the above command in Startup Applications

Open Startup Applications from the Dash.
Click on the add buttton.
In the command box add rfkill unblock bluetooth
Name it whatever you want and save it.

It will start bluetooth on every startup.


Run this to reinstall:

sudo apt-get install --reinstall dnsmasq


Where can I get "DA360C64005E0276" public key for "ppa.launchpad.net maverick Release"?

it's easy you have to download the PPA GPG key :

  sudo apt-key adv --keyserver
  keyserver.ubuntu.com --recv-keys
  005E0276

and then :

sudo aptitude update or sudo apt-get update again.

How do I fix the GPG error "NO_PUBKEY"?


Dual boot Ubuntu 20.04 is taking 3x longer than Windows

Try upgrading your motherboard's firmware to the latest version. This should be routine maintenance but most people neglect it.
On my work desktop, doing this took nearly 3 minutes off my start up time.


Internet (wifi and ethernet) in 12.04 after some time just stops working

In Ubuntu 12.04 and later /etc/resolv.conf should be a symbolic link to ../run/resolvconf/resolv.conf. The latter is generated dynamically by the resolvconf utility. Interface configurers are supposed to be resolvconf-aware.

Third-party interface configurers and in particular third-party VPN interface configurers are frequently not resolvconf-aware and write to /etc/resolv.conf directly, and don't restore the symbolic link afterwards. They leave the machine with a misconfigured resolver. Please check for this problem.

If you have this problem then you may be able to fix it by running

dpkg-reconfigure resolvconf


I'm not too familiar with Unity tweak tools, as I do minor tweaks through the terminal mostly.

There is a way you can change the size of the cursor through the terminal, and it's automated:

dconf write /org/gnome/desktop/interface/cursor-size 48

You can change the 48 to any number of your choice, and if the cursor still resets after reboots, then try creating a startup command that changes the size for you.

:)


My graphics card is not working, everything is really huge

This issue gets everyone in Lulliput shaking their cage...

Successfully configuring your display to use your graphics card depends on 2 things:

The Xserver config file at /etc/X11/xorg.conf
Having the correct Nvidia driver installed

Your graphics card appears to be an Nvidia GT520 (device code 10de:1040).

Open Synaptic and completely remove any package with "nvidia" in the name.
Go to System > Administration > Hardware drivers. Install or reinstall your Nvidia driver and accept the recommended Nvidia proprietary driver.
Install the package nvidia-settings via Synaptic and after a reboot run the following:

$ sudo nvidia-settings

Configure your display and then click "Save Current Settings", then reboot again. You should now have a xorg.conf file with the Device section something like the following:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT520"
EndSection

If at this point, you are still having no joy, it's time to get heavy handed, so try each of the following and repeat from the top.

$ sudo dpkg-reconfigure xserver-xorg

or

& sudo rm -rf /etc/X11/xorg.conf


Turning stereo sound into mono output to normalize unbalanced channels?

Just go to "tools" and select "effects and filters" then under "Audio effects" go to "spatializer" and enable that. now try to listen that track again.

Most probably that problem will be gone after that. You can also take it to mono if that works for you.


You should leave the "localhost" text on the 127.0.0.1 line - various things depend on that existing.  Instead, you probably wanted to add your hostname to that line:

127.0.0.1     localhost node1

Your question also says "127.0.01" without the third "." - hopefully that's a typo in the question and not in your /etc/hosts file.

NOTE: hostnames should always be lowercase, case is ignored but that doesn't mean it won't cause problems.


How do I reuse the Ubuntu partition after its uninstallation?

You can right-click F: and choose Extend volume if you just want the space back. Other than that, try a LIveCD of gParted. Move the other 2 partitions down and create the new one at the end of the drive.

Windows is quite foolproof with it's partitions but it's suggesting you've got 4 primary partitions so won't allow more; and probably insists on it being after all primary partitions, so using gParted will allow you to create a 5th as an extended volume.

If you're using GRUB to dual-boot it should still boot afterwards as partitions should still have the same numbering/UUID.


You should be able to install the kernel header files for the currently running kernel by running the following in a terminal:

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

In general, the kernel header packages are named linux-header-* where "*" indicates the version & variant (generic, server, etc.).


Warning message saying the installation may fail in such circumstances

Memory != disc space.

Your system seems to only have 256 MiB Memory. You need to check if you can add memory modules onto your motherboard since 256 MiB  is the minimum required memory (for any flavor of Ubuntu except CLI server: server = 128 MiB,  desktop = 1GiB, netbook = 386 MiB, Xubuntu and Lubuntu = 512 MiB).


Is there in ubuntu repository monitoring alternative to nagios?

You can use ICINGA, It has all the option you have asked for.

Check the installation How to install icinga on Ubuntu 12.04 & Monitor remote host?

Just keep in mind install MySQL before installing it. Some time it conflict when installing.

   sudo apt-get install mysql-server libdbd-mysql mysql-client


Synantic Inc fingerprint reader ubuntu 20.04

On my EliteBook 845 G7 I have the same Synaptics fingerpint reader (06cb:00df see also linux-hardware profile). This was fixed by updating the firmware using fwupdmgr. However, at the time of writing (2021-02-15) this firmware image is only available in the lvfs-testing repository. So first add lvfs-testing (instructions here), and then update your firmware again (instructions here). Or in summary:

fwupdmgr enable-remote lvfs-testing
fwupdmgr refresh
fwupdmgr update

Note that I found the solution thanks to this Reddit thread.


Press the super key and the "A" key at the same time. For music lens press super key (windows key) and "M", videos is super and "V" etc.


How do I put Netbook Edition on my new Acer Aspire One D255?

AFAIK ubuntu has merged netbook-edition to desktop as unity has become the default desktop.

You need to:

Download an iso of ubuntu desktop.

Burn it on a CD or use something like unetbootin to create a live-usb.

Reboot and boot to your live-cd or USB and check out ubuntu and install it.

Most of the steps are well described in the above link that I have atatched. Just see the "Show Me How" section.


Overriding cd builtin to source env settings, possible to use with autocd?

I can't find where the internals of autocd are documented, I'm afraid you'll have to check the source code. However, as Glenn points out, if this is not executed when using autocd, then autocd is probably not using cd.

I can think of two workarounds. First, you can use PROMPT_COMMAND as Glenn suggested. Add this to your .bashrc:

sourcedir() {

  if [[ `pwd` == '/home/ubuntu/deploys/staging' ]]; then
    echo "Sourcing ~/.appconfig/staging.env!";
    source /home/ubuntu/.appconfig/staging.env;
  fi

  if [[ `pwd` == '/home/ubuntu/deploys/demo' ]]; then
    echo "Sourcing ~/.appconfig/demo.env!"
    source /home/ubuntu/.appconfig/demo.env;
  fi

  if [[ `pwd` == '/home/ubuntu/deploys/prod' ]]; then
    echo "Sourcing ~/.appconfig/prod.env!"
    source /home/ubuntu/.appconfig/prod.env;
  fi

}

PROMPT_COMMAND="sourcedir"

Now, each time you move into these directories, irrespective of how you got there, the files will be sourced. A major drawback of this approach is that the files will be sourced each time a prompt is shown, not only when you first move into the directory. You could avoid this by setting a variable in the sourced file and only sourcing if that variable is not set but this is really getting rather complex.

I would instead suggest you set up aliases for moving into each of the directories and sourcing the relevant files. Add these lines to your ~/.bashrc (source is actually an alias for . but . is more portable):

alias staging="cd /home/ubuntu/deploys/staging && . /home/ubuntu/.appconfig/staging.env"
alias demo="cd /home/ubuntu/deploys/demo && . /home/ubuntu/.appconfig/demo.env"
alias prod="cd /home/ubuntu/deploys/prod && . /home/ubuntu/.appconfig/prod.env"

Now, you can run staging to move into the staging directory and source the relevant file. The same for each of the other two.


How to access geolocation information on Ubuntu Touch?

I think it did not work for you due to GPS not being enabled on the device. The following code sample worked without segfaulting on my laptop. On the device, it takes about 1-2 mins to get the GPS lock since AGPS hasn't landed yet.

import QtQuick 2.2
import Ubuntu.Components 1.1.
import QtPositioning 5.2

MainView {
    id: mainView

    applicationName: "me.nik90.gpsapp"
    useDeprecatedToolbar: false

    width: units.gu(100)
    height: units.gu(75)

    Page {
        id: page

        title: "GPS"

        PositionSource {
            id: src

            updateInterval: 1000
            active: true

            onPositionChanged: {
                var coord = src.position.coordinate;
                console.log("Coordinate: " + coord.longitude + ":" + coord.latitude);
            }
        }

        Label {
            text: "Coordinate: " + src.coord.longtitude + ":" + src.coord.latitude;
        }
   }
}


Computer won't boot after installing Ubuntu 14.04.1 LTS to replace Windows 8.1

I did some reading and found that this issue was more common than I thought.  Even though it may not be optimal, I just ended up switching my comp to boot in CMS (or legacy/bios/whatever) and reinstalled the disc in that mode.  It works fine now.  Thank you two for your help.


I broke apt while trying to upgrade from 19.04 to 20.04

I suggest you to try The Debian Way to upgrade your system. You have an issue because you are on disco (non-LTS) but disco is no more since eoan. And this is because disco is no more you can't install it with the apt/source.list .
I recommend you to make a backup if something goes wrong. Because you never know, when upgrading your system.

The Debian Way
In your case, you use neither of bionic or eoan, so you have to edit the commands that the a
sudo sed -i 's/disco/focal/g' /etc/apt/sources.list
sudo apt update && sudo apt -y dist-upgrade

When the Ubuntu upgrade does finish, reboot the system. When the
system comes back up, you'll be running Ubuntu 20.04 LTS Focal Fossa!

sources : https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa#h4-how-to-upgrade-ubuntu-the-debian-way

Edit :
When I try some things on the internet, I do everything in the terminal because I add export PROMPT_COMMAND='history -a' in my $HOME/.bashrc file, and I make backup of every files I edit (cp file.cfg file.cfg.bk).
What does it do ? Every command I run in the terminal instantly happend in the $HOME/.bash_history file. Therefore, if I do something wrong, I can find my way back.
Ideally, you would make a write-up for that in a file.md, with URL, etc. First, because if you have to do it again. Second, because if something goes wrong. Third, because it might be helpful for someone, on day, right here in askubuntu.com ;-)


Quickly execute commands without running out of memory

Before: proc.Start()

Add a handler method. For example:
process.OutputDataReceived += (sender, a) => Console.WriteLine(a.Data);

and replace this line:
ret = proc.StandardOutput.ReadToEnd()

with this:
process.BeginOutputReadLine();

As an alternative you might also simply try adding only process.BeginOutputReadLine() after ret = proc.StandardOutput.ReadToEnd() in your original code (so only adding one line with the call to BeginOutputReadLine). This should prevent a deadlock on the StandardError stream.

Good luck!


The Ubuntu partition on my hard disk is not detected on Windows. What to do?

If you boot from a live USB and use 'Try Ubuntu' you should be able to read the partitions and extract the data to a memory stick.


Connect Windows 10 to samba share with specific linux user

I was able to setup a like configuration with my host, and when I went to access the share through the network browser of Windows 10, it prompted me for my username and password.  It only opened up when I gave it the correct information.

Looking at what you have compared to my setup, the following lines I have added to my [global] section of my /etc/samba/smb.conf file:

[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes

You can also try installing Samba Server Configuration that is a GUI control of your Samba settings by typing in the following:

sudo apt-get install gksu system-config-samba

The gksu is used to launch the Samba Server Configuration application with sudo access.

Hope this helps!


how to install libgnutls26 in Ubuntu 15.04 or higher

Actually, I see you point. In my case, after updating to Ubuntu 15.04 my Evernote (running on Wine 1.7.44) stopped working - when trying to log in or to synchronize notes I've been receiving INTERNET_SECURITY_CHANNEL_ERROR from TLS. I believe that might be due to libgnutls API change - in Ubuntu 14.10 its version was libgnutls26 (based on GnuTLS 2.12), while in 15.04 it's libgnutls-deb0-28 (based on GnuTLS 3.3).

If you want to install 32-bit libgnutls26 (from Ubuntu 14.10) in Ubuntu 15.04 try these:

wget http://security.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.4-2ubuntu1.1_i386.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gnutls26/libgnutls26_2.12.23-15ubuntu2_i386.deb

sudo dpkg -i libgcrypt11_1.5.4-2ubuntu1.1_i386.deb
sudo dpkg -i libgnutls26_2.12.23-15ubuntu2_i386.deb

Other mirrors you can find here and here.

After installing these by myself, when I call lsof -P -T -p $(pidof Evernote.exe) | grep gnutls while running Evernote I get:

Evernote. 11332 xxx  mem    REG                8,6   805808  1052438 /usr/lib/i386-linux-gnu/libgnutls.so.26.22.6
Evernote. 11332 xxx  mem    REG                8,6  1306528  1052404 /usr/lib/i386-linux-gnu/libgnutls-deb0.so.28.41.0

which means that Evernote/Wine is currently using libgnutls26 library.

Bare in mind that you won't receive any security updates for libgnutls26 as it has been released for 14.10, but removed completely from Ubuntu 15.04.

Editor's Note

Since 15.04 is not a LTS release, these can disappear (indeed those did). So, you should find and install from last LTS version i.e. Trusty 14.04. Find the two libraries from these two links:

http://packages.ubuntu.com/trusty/i386/libgnutls26/download (libgnutls26)
http://packages.ubuntu.com/trusty/i386/libgcrypt11/download (libgcrypt11)


You should really be using the GIR based API, here is a more current example:

from gi.repository import Gwibber

s = Gwibber.Service ()
s.send_message ("This is the content to post", None, None, None)

That will post to all accounts that are currently enabled to send.  Here are what the parameters for send_message are:

"""
  send_message: Posts a message
  @message: The message to post to Gwibber as a string or None
  @id: The gwibber message id or None
  @action: The action or None (reply, private)
  @account_id: The ID of the account to post from or None
"""

So if you want to only post from a specific account, you can do something like this:

from gi.repository import Gwibber
accounts_service = Gwibber.Accounts.new ()
s = Gwibber.Service ()

accts = accounts_service.list () # A list of Gwibber.Account objects
for acct in accts:
    print "Gwibber ID: %s, Service: %s, Username: %s, Send: %s" % (acct.props.id, acct.props.service, acct.props.username, "True" if acct.props.send_enabled == "1" else "False")
    #add code to check if this is the account you want to post from, like if you want to post from all twitter accounts you would do this
    if acct.props.service == "twitter":
        s.send_message ("Whatever you want to post", None, None, acct.props.id)


Vmware installation over ubuntu sever 12.04 lts

This is a VMware problem.

Some kernel internals relating to the spin lock changed from 2.6 to 3.0 and VMware didn't' back port the changes to 7.1.6.

I dont believe there is a workaround at the moment.


Hide search bar in application menu Ubuntu 18.04 Gnome 3

There is currently no extension that would allow to remove the search bar from the activities overview or the full screen applications menu.


Crashed my server, how do I find out what happened?

You need to install something that records performance data for your system and run it while you do these benchmarks. collectd is pretty popular for this, but will require some heavy learning up front. You can install 'sysstat' to get the 'sar' command, but the granularity is only 10 minutes so it may not catch all the problems. Also you can login and run something like 'vmstat 5' which will print out stats about IO/load/memory every 5 seconds.

100 is a lot for a small server if you are using Apache pre-fork (the default) with PHP.. since that will require 100 concurrent processes to satisfy the requests. If you have MaxClients set lower than 100, then the requests will backup in a queue, and go very slow. Thats probably preferrable to a total system crash though.


LAMP-stack installation : php code not running (php code displayed as such)

Edit 2017, August: You may have some difficulty in installing php5 in new Update of Ubuntu (16.04). Refer this to install php5.

I was also fully messed up.
And I did this.

  Completely remove apache2, mysql, php5, phpmyadmin.

Completely removing PHPMyAdmin

$ sudo apt-get remove phpmyadmin*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo rm -rf /etc/phpmyadmin /var/lib/phpmyadmin /var/lib/phpmyadmin
Completely removing php5

$ sudo apt-get remove php5
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo rm -rf /etc/php5 /var/lib/php5 /var/lib/php5
Completely removing mysql

$ sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5

$ sudo apt-get autoremove

$ sudo apt-get autoclean

$ sudo rm -rf /etc/mysql /var/lib/mysql /var/lib/mysql-files
Completely removing apache2

$ sudo apt-get remove apache2*
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo rm -rf /etc/apache2 /var/lib/apache2 /var/lib/apache2

  Now Completely install all of them.

apache2

$ sudo apt-get install apache2

mysql

$ sudo apt-get install mysql-server

php5

$ sudo apt-get install php5 libapache2-mod-php5

$ sudo apt-get install php5-mysqlnd

phpmyadmin

$ sudo apt-get install phpmyadmin php-mbstring php-gettext

---------------After These Installation----------------------

Write the following line to setup phpmyadmin

Include /etc/phpmyadmin/apache.conf

At the end the of file /etc/apache2/apache2.conf

Start the apache server

$ sudo service apache2 start

Note

Some of them are interdependent. So follow the steps in given order.


PAE is an acronym for Physical Address Extension.

This is a technology that was introduced in desktop CPU's around 1995, but was notoriously left out of or not displayed in the CPUID of a lot of mobile chips until around 2005.

Your Laptop (Dell Inspiron 500m), is showing you this error when trying to boot because your CPU lacks the PAE extension required to run this version of Ubuntu.

To be more specific, your CPU is probably the Intel Pentium M (Code Named "Banias"), which had a fault where internally, the CPU does actually support PAE, however due to either a fault or design error, it does not show this in the CPUID.

Unfortunately, there is no real way to fix this as it's a physical problem, but there may be other options (further reading)

This is not uncommon in older laptops.

You could perhaps try another another distro with a 486 non-PAE kernel.  Maybe something like LMDE?

Good luck!


How to open a remote file (ssh) with my local Emacs?

You could use tramp. Simply start your local emacs, open file (ctrl+x+f) and type the full address like this: /the.server.name:/the/path/to/the/file. So assuming the server is at example.com and the file at /home/me/test.txt, the address to type would be /example.com:/home/me/test.txt. This will open the file in the local emacs instance.

(Note that this does not require an additional manual ssh connection.)

Of course there is also the second option to use sshfs to mount the remote directory on a local address and open the local version.


Computer no longer asks which OS to boot from

Actually Windows clears the Bootloader and does not care about other OS installed.

So you dont have option now , If you install Ubuntu now , (Ubuntu being Ubuntu ) it will take care of Windows and will give you option to choose.

Read here , it talks about how to fix this.

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

A Windows OS should be installed first, because its bootloader is very particular and the installer tends to overwrite the entire hard drive, wiping out any data stored on it. If Windows isn't already installed, install it first. If you are able to partition the drive prior to installing Windows, leave space for Ubuntu during the initial partitioning process. Then you won't have to resize your NTFS partition to make room for Ubuntu later, saving a bit of time.


Driver was installed.  Go to settings and open connectivity. At bottom click on add. Click on wireless. Screen pops up where you answer question about wireless connection.  did not know what I was doing but got the right combination. had to go to top left of screen and clicked on un boarder. this allowed me to see place where you input security code and the save was active and hit that. Wirless was not active.the whole process was more luck than anything


No, it doesn't.

When you update a file, Dropbox breaks all links.  So in the example @Falk gives above, if he edited that file from a remote computer, when it synced back the link would be broken, and Dropbox would contain a new file called testfile (Falks conflicted copy).

The only link which works is a soft link where the original file is the one in the dropbox folder.  Here's the script I used to test:

# symlink with target inside dropbox
echo "symbolic link test" > ~/Dropbox/symlinkToDropbox.txt
ln -s  ~/Dropbox/symlinkToDropbox.txt ~/symlinkToDropbox.txt
cat ~/symlinkToDropbox.txt
echo "edit target of symlink" >> ~/Dropbox/symlinkToDropbox.txt
echo "edit symlink" >> ~/symlinkToDropbox.txt
cat ~/symlinkToDropbox.txt
cat ~/Dropbox/symlinkToDropbox.txt
# symlink with target outside dropbox
echo "symbolic link test" > ~/symlinkFromDropbox.txt
ln -s ~/symlinkFromDropbox.txt ~/Dropbox/symlinkFromDropbox.txt  # relative symlinks don't work
cat ~/Dropbox/symlinkFromDropbox.txt
echo "edit target of symlink" >> ~/symlinkFromDropbox.txt
echo "edit symlink" >> ~/Dropbox/symlinkFromDropbox.txt
cat ~/symlinkFromDropbox.txt
cat ~/Dropbox/symlinkFromDropbox.txt
# hard link with target inside dropbox
echo "hard link test" > ~/Dropbox/hardlinkToDropbox.txt
ln ~/Dropbox/hardlinkToDropbox.txt ~/hardlinkToDropbox.txt
echo "edit target" >> ~/Dropbox/hardlinkToDropbox.txt
echo "edit linked file" >> ~/hardlinkToDropbox.txt
cat ~/hardlinkToDropbox.txt
cat ~/Dropbox/hardlinkToDropbox.txt
# hard link with target inside dropbox
echo "hard link test" > ~/hardlinkFromDropbox.txt
ln ~/hardlinkFromDropbox.txt  ~/Dropbox/hardlinkFromDropbox.txt
echo "edit linked file" >> ~/Dropbox/hardlinkFromDropbox.txt
echo "edit target" >> ~/hardlinkFromDropbox.txt
cat ~/Dropbox/hardlinkFromDropbox.txt
cat ~/hardlinkFromDropbox.txt
#all of that works fine.
#But now open all of those files from your dropbox folder on another computer and edit them
#Your dropbox will sync, your local versions of all those files will be updated, but NONE OF THE LINKED FILES WILL UPDATE
#The hard links are replaced and the old versions copied as "conflicted copies"
#The symlink where the dropbox file was the link is unlinked

#the symlink where the dropbox file is the original is the only one that works


How do I stop "Failure to download extra data files" error with pepflashplugininstaller?

I removed the  flashplugin-installer and reinstalled it using these steps:
http://www.webupd8.org/2013/04/install-pepper-flash-player-for.html

This is what I did:

sudo apt-get remove  flashplugin-installer
sudo add-apt-repository ppa:skunk/pepper-flash
sudo apt-get update
sudo apt-get install pepflashplugin-installer

Then check that chromium uses Pepper Flash Player.

sudo vim /etc/chromium-browser/default

The last line in default needs to read

. /usr/lib/pepflashplugin-installer/pepflashplayer.sh

If not, add it to the file.

Here's what my default file reads:

# Default settings for chromium-browser. This file is sourced by /bin/sh from
# /usr/bin/chromium-browser

# Options to pass to chromium-browser
CHROMIUM_FLAGS=""
. /usr/lib/pepflashplugin-installer/pepflashplayer.sh

That's it. I didn't get bothered by that error anymore.


I have an Inspiron 5481 2-in-1 and also an HP 15-DA0073MS that I have installed Ubuntu or Ubuntu based distro on and all installed without any problems. The  touchscreens work fine as well as the backlit keyboards, mouse, etc. I actually have had better luck with Ubuntu than I have had with Windows in compatibility and the drivers have been spot on. I would do like the other person suggests and just load the ISO onto a USB and try it out. You'll have to press the F12 during the boot process to change to the USB drive. I would highly recommend this OS over Windows any day.


Use gparted.

Choose gpt and ext4 if you use Linux only (or if you are ok with installing ext4 support on other OSes). Otherwise gpt + ntfs or msdos + ntfs (if winxp compatibility needed).


Bookmarks is a shortcut section for your favorite folders.

To bookmark a folder, click Bookmarks > Bookmark this location, or use Ctrl+D.

To delete a bookmark, right click on the folder you want to remove and select Remove.

To remove the complete Bookmarks section, just delete every folder being present inside.


How about ...
#!/usr/bin/env bash

for user in $(getent passwd | cut -f1 -d: );
    if [[ -f "$user/.ssh/authorized_keys" ]]; then
        ... your sed command ...
done

users=(/nfsshares/*)
for user in "${users[@]}"; do
if [[ -f "$user/.ssh/authorized_keys" ]]; then
    ... your sed command ...
fi
done


Found an almost perfect solution, with thanks to @macydanim to pointing me in the right direction.

In Natty, Banshee won't show up in the notification area, so I ran the following command:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'banshee']"

This adds Banshee to a "whitelist" of applications allowed to be shown in the notification area.

Logged out, and logged back in again. Then in Banshee, went to Edit -> Preferences -> Extensions. Disabled Sound Menu Integration and enabled Notification Area Icon. Then, right clicked the notification icon and disabled show notifications.

I then disabled Notification Area Icon extension, and tried re-enabling Sound Menu Integration. This, however, still showed notifications whenever the track was changed. I found out though, that you don't need the Sound Menu Integration plug in enabled for Banshee to work in the sound menu. So if I leave it disabled I don't get notified on track change, but can still operate Banshee from the sound menu. The only downside, is that I can't click the close button on Banshee and have it minimise to tray, so you just have to remember to press the minimise button now instead of the close one and keep Banshee open.


Specify the jvm in eclipse.ini file.

-vm
/path/to/jdk/bin/java


Ubuntu 12.04 & Nvidia 304 Causes Two Gnome-Panel

Run the following, apparently gnome3 stores configuration in binary form.

sudo apt-get install dconf-tools

Run: dconf-editor to edit the config.

Go to: org->gnome->gnome->panel->layout

The defaults are: (double click to edit)

object-id-list     ['menu-bar', 'indicators', 'show-desktop', 'window-list', 'workspace-switcher']
toplevel-id-list   ['top-panel', 'bottom-panel']

I found the answer on the "Related" collum on the right


create bootable disk of os x mavericks with ubuntu

It's not terribly easy, and the folk at Apple seem to make it this way on purpose.  I suppose you know that running OSX on anything other than Apple hardware is not supposed to be done?

A good link for alternate boot options and tools for OSX can be found at http://www.tonymacx86.com/home.php


Can't run "X -configure", "Server is already active" error

I think you shall have to stop the xserver first.
Try this:

Open a Terminal with CTRL+ALT+F1 and login
sudo stop lightdm (or kdm or gdm instead of lightdm if you installed kubuntu or GNOME shell)
sudo Xorg -configure
sudo start lightdm (or kdm or gdm instead of lightdm if you installed kubuntu or GNOME shell)


How to get all the bugs associated with a particular project

I guess this is a bit late but the following worked for me (in case anyone else is looking for the same thing):

launchpad = Launchpad.login_anonymously('lplib.cookbook.json_fetcher', 'production', cachedir, version = 'devel')

project = launchpad.projects['ubuntu'] #where 'ubuntu' is the project name
bugs = project.searchTasks(status = ['New', 'Incomplete', 'Triaged', 'Opinion', 'Invalid', 'Won\'t Fix', 'Confirmed', 'In Progress', 'Fix Committed', 'Fix Released'])

for bug in bugs:
        browser = launchpad._browser
        bugInfo = browser.get(bug.self_link) #gets you the bug information

note: you have to import launchpad from launchpad-lib.


Roey, I had the same problem when I purchased my new AMD 64 bit HP.  I have run Ubuntu for almost 10 years.  The problem comes with "wide screen resolution".  If you had an older computer like I did, a laptop with a screen resolution of 4:3 and you were running nothing higher that Ubuntu V12.xx, no problem.  But when I tried to upgrade to v14.04 i had the same problem.  The only solution I could find was to go to V15.10 BETA TEST!  Definately not good, but it works, FULL OF BUGS.  My screen resolution is Wide Screen; 16:9.

I have gone to the Ubuntu forums for a long time, lots of other people are experiencing the same problem.

BUT: 15.10 works if you are willing to live with the problems.  A major problem is that 15.10 does not allow you to set the partition sizes, it does that automatically and gives you no control.

The second problem with 15.10, when it installs a new Linux Kernel, it does not delete the older kernels, so your boot partiton rapidly becomes full.

I am not good at working at the terminal level.  I can not delete the older versions of the kernel, therefore I Can NOT get any more current updates, fixes or patches.

I just now tried to install the BETA 2, V16.04, no luck.  I have tried to get help from the Ubuntu community to no avail.

You will be able to run V15.10 BETA Test, if you are willing to live with the bugs.  I am waiting for the final V16.04 LTS, secure, supported version due to realease this April 21.  I hope that helps both of us.


How do I get a vanilla GNOME after Ubuntu 17.04?

There are two methods to easily gain a more GNOME like experience in Ubuntu 17.10.

The first method is to run the program

sudo apt install gnome-session

This will undo many of the features that have been added to GNOME, such as the always-on dock, but will leave the Ubuntu color scheme.

The second method is to execute the command

sudo apt install vanilla-gnome-desktop

This will install the GNOME themes as expected from prior versions of Ubuntu GNOME, change the Plymouth splash screens, and install several common GNOME utilities.


Ragged and thin font in all users except my account

Check Universal access settings. You should keep Text size in normal size.


How to configure lets letsencrypt for apache

$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-apache

before this

cd /etc/apache2/sites-available/

then create a conf file for your website

sudo nano your-domain.com.conf

this is sample (you can copy paste this and edit doc root and server name)

<VirtualHost *:80>
DocumentRoot /var/www/html/myweb.com // here my web is my main web site
DirectoryIndex index.htnl
ServerName bookking.io  //here add your domain name
<Directory "/var/www/html/myweb.com">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
</VirtualHost>

then CTRL+X then Y
 then restart apache2  sudo service apche2 restart

in this command list out all domain name   like this

sudo certbot --apache

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: bookking.io
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):

now hit enter to continue


A lot of arp requests from a single system

As Oli said depends on the services you have on your system that has ip 10.0.0.6.

ARP traffic is quite normal, in your screenshot I can see only you system trying to contact 3 IP address (10.0.0.2, 10.0.0.12 and 10.0.0.11) in a perfect and the correct way (also repetitions are normal).
Here some slides on ARP proto: http://netgroup.polito.it/teaching/cn/arp_E_A_3x.pdf

Probably on your system there is a service that "scans" the network.
The problem is that you cannot use WireShark to find witch is the service that produce this probes as WS works at network layer.
I suggest the use of "netstat -an" on the 10.0.0.6 system to detect all the services running on it.


Can't install ownCloud update due to 'requires installation of untrusted packages' error in Ubuntu 15.10

You need to add the key for the owncloud repository with these two commands:

wget http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_16.04/Release.key

sudo apt-key add - < Release.key

If that doesn't work for you, install y-ppa-manager from Synaptic, start PPA Manager from the dash, click the Advanced icon, and then choose import missing GPG keys.


The OpenStack base bundle is a good reference for this type of deployment - it makes use of 4 physical machines to provide a single network node and 3 compute nodes, with the control plane charms for the cloud deployed in LXD containers across all four machines.

Additionally, Ceph storage is spread across all four machines, using the a secondary drive for the OSD (Object Storage Daemon).

The bundle is not an HA bundle - but that is possible todo by increasing the number of units in each service (ensuring they are spread across underlying physical services) in conjunction with the hacluster charm

I'd like to see if we can also push the network node function into a LXD container - allowing a deployment to use all four machines as hypervisor nodes and maximising the use of the hardware.


It appears that, for a login shell,

/etc/profile will source
/etc/profile.d/bash_completions.sh, which will source
/usr/share/bash-completion/bash_completion, which will source
~/.bash_completion

assuming all those files exist and are readable.

Put your own completions in ~/.bash_completion


Your filesystem is corrupt.  At the prompt, type e2fsck -fy /dev/sda2 to repair it.  If it works, hit ctrl-alt-del to reboot and hopefully it will come back up normally.


In your particular case I recommend using tesdisk (To recover the partition) or photorec (to recover the files). Both of which are installed using:

sudo apt-get install testdisk

After that, in the terminal type sudo testdiskif you wish to recover the partition orsudo photorec` if you wish to recover files. Know that you need another hard drive (Not another partition) if you want to recover the files correctly and with less chance of fails.

Also please read: Testdisk or gpart for recovering lost partitions?


Unable to install Ubuntu 12.04 alongside Windows 7

The first thing to check before installing Ubuntu along side windows 7 is your partition type. Because if it is dynamic then you can't install, so please check your partition type:
just right click on my computer then select manage and then chose disk management. If the partition where your os is installed partition shows dynamic then convert it to basic and try to install Ubuntu again.


The command you run: sudo chmod 777 -R /* or sudo chmod 777 -R / changes the permission of ALL file in your system to 777: read, write and executable for everyone. That's a major security risk. You opened your system for everyone. NEVER run this command. Everyone who gives you that command wants your system to be insecure. It's peanuts to get root access on such a system.

I recommend you to reinstall your whole system. You could try to set the permissions back to the original ones, but you can never be sure. I see only one option: Reinstallation.


Can I get off 11.10 and go back to 10.04?

Make sure you change the boot order priority in the BIOS. It is the only thing that governs which device boots first.


Ubuntu issues on SSD and HDD, freezes/hangs at Shutdown and Restart

So, after lots and lots of tests I may have figured it out. I updated the kernel from 3.16 to 3.18 and then I also installed the latest Nvidia driver tha shows in the Ubuntu Software Center. Although it's not the latest Nvidia driver I think that was my problem to begin with.

I also tried installing the latest Nvidia straight from the Nvidia website but I just get error after error. First it tells me that I don't have the right GPU for the driver, then I got the runnig X server and then something related to a failed script.

So, right now I will try Ubuntu like crazy and see what happens next.

UPDATE - Victory!!! - Nvidia updated driver solved my problems
I just reinstalled Ubuntu (just for the sake of finding out what was going on) and of course the shutdown/restart hang reappeared. That meant I could recreate the problem. So, I tried restarting a few times with no success. Then, I did a Software Update which installed a bunch of updates but kept my the current 3.16 kernel. And shutdown and restart were still not working. I then went to Additional Drivers and updated the Nvidia driver to the proprietary and tested driver. Restart and VOILA!!! Is working fine. In the end the 3.18 kernel did nothing to help my problem!

So, if you are having Ubuntu freezes/hangs while trying to restart or shutdown, there's a big chance you are having some kind of driver problem!


After Installing xubuntu-desktop environment, Now you can use xfce4-session-logout directly from Whisker menu as following screen-shot:

The option you mentioned in question is Session Management (com.canonical.indicator.session) provided by Indicator Plugin and can be hidden as following screen-shot:

I experienced that some options are not working properly so I hide it because there is no requirement of session management indicator in Xubuntu

Goto Panel>items & Edit Indicator Plugin:-

Hide Session Management:-

Then logout and login back to show effect.

Additional Information: In Xubuntu, You can simply call xfce4-session-logout by shortcut Alt+F4 (from active desktop)


At ubuntu.com you can find a tutorial guide to installing Ubuntu on your computer.
When given the choice, select 'Erase disk' which will cause your computers hard drive to be completely erased and reformatted.


you can use vi or vim editor

go with $> vi [yourfilename]
end then press Insert from your keyboard
remove the mulfunctioned line
lastly, press ESC and type :+wq and press Enter


How do I use "Initiate Window Picker for window group" in Compiz?

This is a reported bug.

If you experience this bug, please select "This bug affects 7 people" and pick "Yes this bug afects me".


Why is dhclient + systemd-resolved restarting frequently?

I'm not sure what exactly is causing the dhclient renewal (especially because the default lease-time in /etc/dhcp/dhclient.conf is #send dhcp-lease-time 3600; aka 1 hour), but the DNS resolution errors seems to be a consequence of this renewal triggering a systemd-resolved restart.

I confirmed this in my own case by running

sudo grep -Pi '(renewal|started network name)' /var/log/syslog | tail

which showed that systemd would restart after the renewal time had elapsed. Also, I noticed that ps -ef | grep [r]esolv showed that the systemd-resolved process never ran fro more than 30 minutes, while other servers had this process run for weeks at a time.

After much googling and scouring and confusion, I came across a patch here:

--- /etc/dhcp/dhclient-enter-hooks.d/resolved.orig  2018-12-20 22:16:45.914466953 +0000
+++ /etc/dhcp/dhclient-enter-hooks.d/resolved   2018-12-20 23:15:03.861114407 +0000
@@ -26,10 +26,13 @@
               if [ ! "$interface" ] ; then
                   return
               fi
               statedir="/run/systemd/resolved.conf.d"
               mkdir -p $statedir
+
+              oldstate="$(mktemp)"
+              md5sum $statedir/isc-dhcp-v4-$interface.conf $statedir/isc-dhcp-v6-$interface.conf > $oldstate 2>&1
               if [ -n "$new_domain_name_servers" ] ; then
                   cat <<EOF >$statedir/isc-dhcp-v4-$interface.conf
 [Resolve]
 DNS=$new_domain_name_servers
 EOF
@@ -48,11 +51,19 @@
                       cat <<EOF >>$statedir/isc-dhcp-v6-$interface.conf
 Domains=$new_dhcp6_domain_search
 EOF
                   fi
               fi
-              systemctl try-reload-or-restart systemd-resolved.service
+
+              newstate="$(mktemp)"
+              md5sum $statedir/isc-dhcp-v4-$interface.conf $statedir/isc-dhcp-v6-$interface.conf > $newstate 2>&1
+              if ! cmp --quiet $oldstate $newstate; then
+                  systemctl try-reload-or-restart systemd-resolved.service
+              fi
+
+              rm $oldstate
+         rm $newstate
           }
                 ;;

           EXPIRE|FAIL|RELEASE|STOP)
               if [ ! "$interface" ] ; then

which I then installed on my server(s) by saving it into some-file and then running sudo patch <some-file

For good measure, I rebooted my server, not sure if that's required.


How can I remove R in Ubuntu Server 12.04

Do you actually have R installed? If so, test where the binary is. On a terminal:

which R

That will give you the path to the binary. No matches? There is no R installed.

Some matches? Maybe you installed R also on your home or compiled it and installed it manually? If there are matches on /usr/local, /opt or on your home directory, this is probably the case. If so, follow the uninstall instructions included with the files you've installed manually.

Also, maybe there's still some packages laying around. This command will tell you all the installed packages starting with r-, which is a good starting point.

dpkg -l | grep ^ii | grep -E "\Wr-"


Samsung 305u notebook won't resume after suspension

you must install Catalyst drivers from AMD.

Follow this guide:

  What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?

I have installed Catalyst 12.10 Drivers and finally, after 6 month about non return from sleep when suspend, now my Samsung 305u can wake up. Good luck.


I wound install proprientary ATI radeon dirver if I were You. You should search for driver or additional drivers in the settings.

Normally the descrite card is automatically used when the integrated one is not enough.

As for the integrated -- You have Intel card and You probably have the Intel drivers for it installed already.


how to resolve an "out of frequency range" error after booting

Have you tried booting it in "Safe mode"? I can't remember if the LiveCD has that option or not. If that doesn't work you may want to try to download and install from the "Alternative Install" Ubuntu disc.


How can I change the language in the ProfileManager?

You can download a fully localized version of Firefox here:
  http://www.mozilla.org/en-US/firefox/all.html
and then extract that in e.g. /home/{yourusername}/programs/firefox/

Then, create a directory /home/{yourusername}/bin/ and create a symbolic link "firefox" in that directory, pointing to /home/{yourusername}/programs/firefox/firefox.

Starting from the next time you log in, all invocations of "firefox" (including through the system menus) should invoke your own localized version of Firefox instead of the Ubuntu-maintained version.

(This is what I do, because I'm using a nightly build of Firefox instead of the Ubuntu-maintained version.)


Do we need Swap partition on a LAMP server?

Am I right can I turn off the swap for production server?

No. Always have some swap space.

I tried running a production server without swap once and about a week later, after a Wordpress update, PHP started eating far more RAM than we'd accounted for. When you run out of RAM and you have swap enabled, things slow down (sometimes a lot, sometimes just a little bit, depending on what gets shoved in there) but you're able to log in, find the problem and try to fix it.

When you run out of RAM and have no swap, processes die, things stall and a lot of the time your only option is a reboot. But until you do that reboot, things will probably break.

In my world, broken is far worse than slow.

Of course if you find your system is constantly using large portions of swap (it will very often use some just as a way of moving out old cached stuff), you obviously have a problem ("insert RAM please"), but having it as a safety net is definitely recommended.

In response to the comment from SpamapS:

In the world of "successful websites", you have hot failovers, load balancing and other tools that allow a machine to explode and have zero effect on the rest of the site. But that takes a lot of cash. Having redundant hardware isn't economical for most sites, even if they pull in money.

I completely disagree with your comment on uptime. In a traditional e-commerce set-up if people can't see your site, they can't buy from you. This isn't just e-commerce, all online commercial interests take a lot more flak if you're down for any sort of period. I know because I host sites and services for companies and run my own sites. Slow = grumpy but Down = fury. Even if you only go down for a minute at a time, if a user sees a "down-for-maintenance" notice more than a couple of times, they assume you can't keep the site up.

A slow server is less than ideal but swap isn't there to be run on all the time, it's a last resort to allow things to keep running while you fix them.

You also assume there is only one service running on the machine. Again this might be true if you have megabucks to split out everything but in the real world, things get lumped together. Multiple websites, ssh daemons, ftp servers, email servers, etc.  One process leaking into swap might not even effect another service. Without swap, everything has an equal chance of instant, random termination. You have no control over it.

Of course swap isn't the only answer. You need monitoring to alert you when you're out of ram, but just pulling the plug and rebooting isn't the answer for the majority of people. I'm sure this works for whichever multi-national website you're responsible for but for us mere mortals (that make up the majority of the internet), doing that is commercial suicide.


I had a similar problem. Basically, I found that commenting out require-mppe-128(#require-mppe-128) allows Android based devices to consistently connect to a PPTP based server.

That will however leave your connection unencrypted.


Which new features and changes are planned for Unity in 11.10?

They'll be distributing it with both Gnome 3 and a slightly-closer-to-ready version of Unity,

So, Unity will be able to display progress bars, notifications and little circles with numbers on the fly, like you might see in a Chromium-style plugin. I know, sounds small, but it's something. Third parties will also be able to write their own "lenses", which will let you search, for example, Youtube from your desktop -- IE, the search that happens when you hit the super button -- and browse interesting content from there.

They're going to integrate the Software Center with Unity a little more, not that I have any idea what that means.

I found those new features in these article: http://www.techdrivein.com/2011/05/6-important-changes-in-next-ubuntu-1110.html, http://www.junauza.com/2011/05/ubuntu-1110-oneiric-ocelot-features.html. But I'm sure there are a couple more features (mainly focusing on integration) in the works, as well as a nice pile of bug fixes. You'll also get Unity 2D, but I doubt you particularly care, unless you run a 5-year old 11 inch laptop.


Yes there is:

dd if=/dev/zero of=/dev/harddisk

Where harddisk is the drive for example: sda or sdb.

You also can zero only certain partitions.

If you e.g. have 500 GiB harddisk - I would do that overnight since it could take quite some time.


Is there any driver for USB 3.0 in GA-B75M-D3V?

Type sudo gedit /etc/modprobe.d/blacklist.conf in a terminal and

then go to the bottom of the file and type in:

blacklist uas


Not sure but can you try enabling or disabling the sleep settings.
sudo systemctl mask sleep.target and sudo systemctl unmask sleep.target
just like sleep settings we also have suspend.target, hibernate.target and also hybrid-sleep.target.
Playing with these might solve your problem.


Use Linux commands on windows directories through ssh

To mount your ftp server on the Ubuntu machine instead of copying back and forth, you could use curlftpfs. It allows you to mount a ftp server directly on to the file system of the machine.

An example (from the web-page):

$ mkdir sunet
$ curlftpfs ftp://ftp.sunet.se/ sunet/
$ cd sunet/
$ ls -l
total 0
Dr-xr-xr-x   3 root root        96 Feb 23  2004 bin
dr-xr-xr-x   2 root root        72 Mar  2  2004 dev
dr-xr-xr-x   2 root root        48 Feb 23  2004 etc
dr-xr-xr-x   2 root root       120 Feb 23  2004 lib
-rw-r--r--   1 root root 622187310 Mar 11 06:13 ls-lR
-rw-r--r--   1 root root  76389037 Mar 11 06:15 ls-lR.gz
drwxrwxr-x  37 root root      1272 Feb 27 14:17 pub
dr-xr-xr-x   3 root root        72 Feb 23  2004 usr
$ cd ..
$ fusermount -u sunet/


I believe what you have is a scrambled flashdrive, basically there is no room on the flashdrive to reformat because the previous reformats are still present just not readable.  Might be time to fork up 5bucks mate.


One thing its Desktop Sharing, and another very different is Remote Login.

In Ubuntu you have Desktop Sharing while using a program and service called vnc server this program needs to be installed either with synaptic or with the ubuntu app market.

Once this application is installed you can share your Desktop and someone can connect to it from the local network in the current session.

A Remote Login can be done installing a SSH Server, then from a remote terminal type :

$ ssh -Y username@remote ip address
It will ask if you want to add the ssh key type (YES) then type the remote user password and then once logged in just type startx
$ startx

This will initiate the default window manager (unity or gnome).

Or from a linux desktop login choose REMOTE LOGIN then type the local IP of the machine that you need to use.

You may also initiate a separate session using VNC but the basic idea of VNC its to share the current live session instead of initiate a new one.

A basic difference between SSH and VNC is that VNC does compress the video and images streamed to the client while SSH does not, but the image quality its very good

Other advantages of VNC Clients is that they can be installed and executed in almost any device or OS, Google Chrome itself have one extension, Windows, MacOS X, iOS, and Android as well.

But in my own experience its easier and quicker to install TEAMVIEWER, it does work flawless in ubuntu and any other OS, and you can access your desktop from anywhere not only your local network, the only cons is that it can't open a separate session as SSH X or VNC.


Terminal error File system read only (Solo lectura)

It would seem that another application is locking the package manager.

Is Synaptic open?
Are you updating your system or some applications using Update Manager?
Are you installing an application using Software Center?

If so, wait until these operations are completed, and try to install your application again.


I cant see any text on Skype after update to ubuntu 15.10

I solved this problem by switching from Unity to Gnome 3


Why is the space on my disk used up so quickly?

Ok , I solved my issue. The first step was see what is the files which have a lot of disk space in my machine. For that, I executed this command suggested by dsstorefile1:

find / -xdev -type f -size +100M

Where the most file which have disk space occupied was:

/var/log/kern.log
/var/log/syslog

Then, I opened the file syslog to see what is the issue which fill my syslog, and I find this issue:

PCIe Bus Error, id=00e8

So, searching in the internet, I came to the answer that gave me solution:

edit /etc/default/grub and and add pci=noaer to the line starting with GRUB_CMDLINE_LINUX_DEFAULT. It will look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"
run "sudo update-grub"
reboot

REFERENCE: "PCIe Bus Error, id=00e8" both 16.04 and 17.04


Add to your .bashrc:

export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

But note that GCC 4.9 is under heavy development, so the defaults may change.


Switchable Graphics not working on Acer 4820TG with Ubuntu 14.04

Open Terminal (Press Ctrl, Alt and "T" at the same time), then copy-and-paste this in (you will need to paste by right-clicking the Terminal window):

sudo apt-get install fglrx fglrx-core fglrx-amdcccle fglrx-pxpress

Let Terminal do its thing, then repeat with this:

sudo ln -svT /usr/lib /usr/lib64 #Only for Ubuntu 64bits

And finally this:

sudo amdconfig --initial

Restart your computer and see how you go...


username: {your username to enter the pc}

password: {your password}


Ubuntu Installation Issues - ACPI PCC Probe Failed

Don't worry. ACPI PCC probe failed literally happens on 50-75% of Linux systems. It means nothing to a new user, and won't do anything bad. If you have that message, then on other distributions like Mint, you most likely will also get it. No worries, and a merry christmas.


Unable to hibernate using sudo pm-hibernate

Hibernation is not supported for wubi installation. You will have to reinstall Ubuntu as a dual booted OS and then create a swap partition to enable hibernation.

Refer:

How to install Ubuntu without removing windows?


Booting Ubuntu takes ages with system file check

Removing Disk Check From 20.04 Boot
The command line option fsck.mode=skip can be used to skip the disk check when booting Ubuntu 20.04.
The line Checking disks: 0% complete may still come up but fsck will not be run, nor will boot time be increased.
Add fsck.mode=skip to the linux line in grub.cfg just before quiet splash
It is recommended to add the command to grub.cfg by editing /etc/default/grub thus: GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=skip quiet splash" and then run sudo update-grub.
I have had this problem with a Live USB but not with an installed system.


How to access windows speaker from ubuntu?

The answer is yes. However the windows computer will have to initiate the playback.

What you want to do is set up your linux box as a streaming server. There are multiple packages that accomplish this, Gnump3D is the GNU - free and open source software that will accomplish this.

There are various GUI wrappers that help you configure and use gnump3D, in essence though anything that gnump3d plays will be streamed from your computer. Any computer on the local network will be able to play audio files stored on the ubuntu computer.

EDIT

As Takkat pointed out (and I wasn't aware so +1 to him), Gnump3D is not in the repos for recent Ubuntu releases. You can go at it yourself (and if you do please make a post on the ubuntu forums and link in a comment here), or try other equivalent packages (Icecast, mentioned in Takkat's answer works well).


I turned my PC off during reinstallation

Yes; you will have to reinstall.  Choose the "something else" option, and configure your existing root ( / ) and swap partitions, and do NOT check the format box on the root partition, and all of your personal files will remain intact.


How do I set up my laptop for dual boot?

You can Install Windows later. There should be no problem in it. There are many threads on internet covering Windows/Ubuntu or Windows/Linux dual boot scenario. This one is from Ubuntu help
https://help.ubuntu.com/community/WindowsDualBoot

As far as the question of partition format goes, almost all Linux distributions can handle all commonly used file system types including FAT32 and NTFS. Windows on the other hand doesnt understand EXT3 or EXT4 file systems which are most common on Linux distros. So if you want to be able to install Windows later and want to access all of your hard disk from both OSes then you should choose either Fat32 or NTFS because both Linux and Windows can handle them.

A better solution would be to use ext3 for Linux partition and NTFS for Windows partition and have a third partition for common files/data and format it to Fat32 or NTFS.


Is there a public beta for Steam for Linux?

Steam Beta is ONLINE!

Wiki on Installing Steam on Ubuntu

Steam Download for Linux (Updated)

Phoronix

Valve Blog (How the Beta will work)

Steam Blog with Announcement

Official Steam Linux Site

Steam Beta DEB Package

Note - It will not work if you are not registered in Steam (Non-Steam users beware!)


Regarding the positioning of the laucher:

if you search the source code for 'geometry', 'width', 'height' and so on, you will encounter the function Launcher::Resize, which sets the launcher's window geometry.

Looking at the callers of this function (Launcher::SetIconSize and Launcher::OnMonitorChanged), you will quickly find out, that the launcher is indeed positioned at the to left corner of the display and has full height (minus the height of the panel).


Is it possible to extend the desktop without hooking up a second monitor?

Maybe try going to your 'Displays' from the GNOME launcher, there should maybe a button saying 'Detect Displays' then you should have some options like 'Mirror Display', simply check or uncheck this. The settings may vary from distribution to distribution. I am not 100% sure if this will work as I am not familiar with the software suite you are using. You might need to use something like Intel WiDi. It might be a worth a try!

Intel WiDi Reference:
Using Intel Wireless Display (WiDi) in Ubuntu


If you are trying to remove files in preinst, you should actually redesign your entire installer to overwrite, and remove only files that're gone.  By default, apt-get and dpkg will overwrite any files that have a matching filename, and overwrite.  If you are still dealing with old files on the target system, then the package is weird.

Ultimately, if you are always changing files continually as part of development and there's a lot of leftover bits, you should probably NOT be using a PPA for it, and just stick to building from source until you have a stable release.


It's been a while, so I'm not sure if anyone will see this but I've solved the problem.

I figured it was something to do with the font itself, so I managed to find out what font it was. It was Helvetica. I removed the font from my system and now everything works fine again. :) Guess something was messed up with displaying that font on my system, for some reason. No idea why, but I'm glad it got solved!


How to convert a video with ffmpeg into the DNxHD / DNxHR format?

This is a picky encoder so you have to choose proper parameters including:

frame rate
pixel format / color space
width x height / resolution / frame size
bitrate

See the Valid DNxHD parameters below for accepted values.

DNxHD example
This example will scale to 1280x720, choose a frame rate of 30000/1001 (aka "29.97"), and a pixel format of YUV 4:2:2 planar.
ffmpeg -i input -c:v dnxhd -vf "scale=1280:720,fps=30000/1001,format=yuv422p" -b:v 110M -c:a pcm_s16le output.mov

If your input file already conforms to some of the accepted parameters then you don't have to manually declare them.

Output format container for DNxHD is typically MXF or MOV.

DNxHR example
DNxHR is for resolutions bigger than 1080p such as 2K, 4K, and 8K.
Example for DNxHR HQX, 10-bit 4:2:2, 4K (4096x2160), 24 fps:
ffmpeg -i input -c:v dnxhd -vf "scale=4096:2160,fps=24,format=yuv422p10le" -profile:v dnxhr_hqx -b:v 746M -c:a pcm_s16le output.mov

The -profile:v output option is required to select the DNxHR profile, such as -profile:v dnxhr_hq.
Accepted values for -profile:v are: dnxhd, dnxhr_444, dnxhr_hqx, dnxhr_hq, dnxhr_sq, dnxhr_lb.

DNxHR LB: dnxhr_lb - Low Bandwidth. 8-bit 4:2:2 (yuv422p). Offline Quality.
DNxHR SQ: dnxhr_sq - Standard Quality. 8-bit 4:2:2 (yuv422p). Suitable for delivery format.
DNxHR HQ: dnxhr_hq - High Quality. 8-bit 4:2:2 (yuv422p).
DNxHR HQX: dnxhr_hqx - High Quality. 10-bit 4:2:2 (yuv422p10le). UHD/4K Broadcast-quality delivery.
DNxHR 444: dnxhr_444 - Finishing Quality. 10-bit 4:4:4 (yuv444p10le). Cinema-quality delivery.

The above list was adapted from DNxHR codec.

Valid DNxHD parameters
ffmpeg will fail if you provide incorrect values, but it can provide a list of what is accepted. (For DNxHR, scroll down to Valid DNxHR parameters section below.)
You can show the list with the following "dummy" command:
$ ffmpeg -loglevel error -f lavfi -i testsrc2 -c:v dnxhd -f null -
Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10
Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10
Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10
Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10
Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p
Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10
Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10
Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p
Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p
Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p
Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p
Frame size: 1440x1080i; bitrate: 120Mbps; pixel format: yuv422p
Frame size: 1440x1080i; bitrate: 145Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10
Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10
Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10
Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p
Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p
Frame size: 1920x1080p; bitrate: 350Mbps; pixel format: yuv444p10, gbrp10
Frame size: 1920x1080p; bitrate: 390Mbps; pixel format: yuv444p10, gbrp10
Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv444p10, gbrp10
Frame size: 1920x1080p; bitrate: 730Mbps; pixel format: yuv444p10, gbrp10
Frame size: 1920x1080p; bitrate: 880Mbps; pixel format: yuv444p10, gbrp10
Frame size: 960x720p; bitrate: 42Mbps; pixel format: yuv422p
Frame size: 960x720p; bitrate: 60Mbps; pixel format: yuv422p
Frame size: 960x720p; bitrate: 75Mbps; pixel format: yuv422p
Frame size: 960x720p; bitrate: 115Mbps; pixel format: yuv422p
Frame size: 1440x1080p; bitrate: 63Mbps; pixel format: yuv422p
Frame size: 1440x1080p; bitrate: 84Mbps; pixel format: yuv422p
Frame size: 1440x1080p; bitrate: 100Mbps; pixel format: yuv422p
Frame size: 1440x1080p; bitrate: 110Mbps; pixel format: yuv422p
Frame size: 1440x1080i; bitrate: 80Mbps; pixel format: yuv422p
Frame size: 1440x1080i; bitrate: 90Mbps; pixel format: yuv422p
Frame size: 1440x1080i; bitrate: 100Mbps; pixel format: yuv422p
Frame size: 1440x1080i; bitrate: 110Mbps; pixel format: yuv422p

Valid DNxHR parameters
See pages 111-112 of Avid High-Resolution Workflows Guide.

Important Notes about Frame Rate

Frame rate is missing from the list that is generated from this command. ffmpeg will blindly accept any frame rate for this encoder, and Avid software will reportedly accept it (unconfirmed), but the DNxHD bitrate is supposed to be matched to specific frame rates only. For maximum compatibility I recommended only using the proper bitrate/frame rate combination. So use the command above to get the proper bitrates and pixel formats accepted by ffmpeg, and cross reference with the List of Avid DNxHD resolutions or the DNxHD White Paper (page 9) for the proper frame rates.

The frame rates listed in the links above are using inaccurate rounded approximations. The proper values are listed below; the incorrect alias is to the left and the proper value is to the right.
 Wrong     Correct
 29.97     30000/1001
 59.94     60000/1001
 23.967    24000/1001

So instead of fps=29.97 use fps=30000/1001, or instead of -r 29.97 use -r 30000/1001.

More options
For additional encoder specific options, and a list of supported pixel formats, refer to:
ffmpeg -h encoder=dnxhd

Alpha / transparency
The FFmpeg DNxHD/DNxHR encoder does not support alpha.

Errors
ff_frame_thread_encoder_init failed
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

This means that your frame rate, width, height, pixel format, and/or bitrate are incorrect. Refer to Valid DNxHD parameters above for accepted values.
pixel format is incompatible with DNxHD profile
Choose a proper pixel format using the format filter. See the DNxHD example above.


This sounds like a problem in Sublime Text.  You need to change the hostname using:

sudo hostname your-new-name

Then you need to add the new hostname to your /etc/hosts file with this command:

sudo nano /etc/hosts

Find these lines and change the original name to your new hostname:

127.0.0.1       localhost
127.0.1.1       your-new-name

To save in nano Ctrl+O.
To exit from nano Ctrl+X.

Restart the computer or all services that use the old name.


How to get smooth scrolling movement with magic mouse

While I have not played around with Ubuntu-Mate, I assume that it has similar install options available as regular Ubuntu.

The current hid_magicmouse module included in the Kernel for Ubuntu 16.0.4 has crappy initial settings and does not have the inertia capability similar to  MacOS (ie the screen keeps scrolling after you let go); however, it does have the option of changing the settings to customize and improve the scrolling experience.

Here is a brief description of each of the settings:

emulate_3button = enables the third button when your finger presses the middle.  I find this finicky, so I disable it.  In MacOS only the left/right buttons are used. (boolean)
emulate_scroll_wheel = the module interprets horizontal and vertical swipes as wheel ticks.  The vertical function works fine by emulating both press and release for each tick, but the horizontal one only emulates presses and not releases which causes problems in the back and forth swipes in Chrome, so I disable it in the driver (see more in the driver section). (boolean)
report_undeciphered = no need to turn it on. (boolean)
scroll_acceleration = the faster you move your finger, the more ticks per distance it generates. (boolean)
scroll_speed = this tells it how many ticks to generate when you swipe your finger a given distance; I like it to be sensitive, so I set it to 55. (0 - 63)

To update the settings, the easiest way is to unload the module and reload it with the new settings.  You can do this at the terminal prompt as follows:

$ sudo rmmod hid_magicmouse
$ sudo modprobe hid_magicmouse emulate_3button=0 scroll_acceleration=1 scroll_speed=55

Refer to this blog for additional details and how to make the settings permanent and how to change the driver to implement Natural scrolling (This blog is where the information above came from).


In Juju, what command to use for accessing environment settings from within a hook script?

Try passing the information you need as config parameters for the charm.

To do this, you'd:

add parameter names into the charm's config.yaml file
either pass the keys in as a --config part of the juju deploy command or alternatively using the juju set command
read the keys from the charm hooks using the config-get command


Set apt-get to use gzip bz2, gzip or uncompressed file?

To answer your question, you can try this apt option:

sudo apt-get -o Acquire::CompressionTypes::Order::=bz2 update

See the man page for apt.conf.

But I'm pretty sure that your problem comes from the repository itself.


Simply remove the very last line in your script (also it helps to do a proper indentation to see your errors). Also you forgot to end your last for loop with a done:

#!/bin/bash
filein="proyecto3.csv"
IFS=$'\n'

if [ ! -f "$filein" ]
then
    echo "Cannot find file $filein"
else
    groups=(`cut -d: -f 6 "$filein" | sed 's/ //'`)
    fullnames=(`cut -d: -f 1 "$filein"`)
    userid=(`cut -d: -f 2 "$filein"`)
    usernames=(`cut -d: -f 1 "$filein" | tr [A-Z] [a-z] | awk '{print substr($1,1,1) $2}'`)
fi

for group in ${groups[*]}
do
    grep -q "^$group" /etc/group ; let x=$?
    if [ $x -eq 1 ]
    then
        groupadd "$group"
    fi
done

x=0 #not sure why you reset x here to zero !?
created=0

for user in ${usernames[*]}
do
    useradd -n -c ${fullnames[$x]} -g "${groups[$x]}" $user 2> /dev/null
    if [ $? -eq 0 ]
    then
        let created=$created+1
    fi
done

echo "${usernames[$x]}" | passwd --stdin "$user" > /dev/null
echo "Complete. $created accounts have been created."

Up to that I can really advise you to use something like shellcheck on your script ( you can get it from the normal Ubuntu universe repositories).

sudo apt update
sudo apt install shellcheck

It outputs a lot more you can do better on your script:

$ shellcheck test.sh

In test.sh line 9:
    groups=(`cut -d: -f 6 "$filein" | sed 's/ //'`)
            ^-- SC2006: Use $(..) instead of legacy `..`.

In test.sh line 10:
    fullnames=(`cut -d: -f 1 "$filein"`)
               ^-- SC2006: Use $(..) instead of legacy `..`.

In test.sh line 11:
    userid=(`cut -d: -f 2 "$filein"`)
    ^-- SC2034: userid appears unused. Verify it or export it.
            ^-- SC2006: Use $(..) instead of legacy `..`.

In test.sh line 12:
    usernames=(`cut -d: -f 1 "$filein" | tr [A-Z] [a-z] | awk '{print substr($1,1,1) $2}'`)
               ^-- SC2006: Use $(..) instead of legacy `..`.
                                            ^-- SC2060: Quote parameters to tr to prevent glob expansion.
                                                  ^-- SC2060: Quote parameters to tr to prevent glob expansion.

In test.sh line 29:
    useradd -n -c ${fullnames[$x]} -g "${groups[$x]}" $user 2> /dev/null
                  ^-- SC2086: Double quote to prevent globbing and word splitting.
                                                      ^-- SC2086: Double quote to prevent globbing and word splitting.

In test.sh line 30:
    if [ $? -eq 0 ]
         ^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.

Alternatively, use the online shellcheck tool...


Printer Canon Pixma MP250 driver problems Ubuntu 15.10

I have found the answer here. The solution is to install libtiff4 in Ubuntu 15.04.
sudo -H gedit /etc/apt/sources.list

Add this line into the file
deb http://cz.archive.ubuntu.com/ubuntu precise main universe

and then save it. After that, install the required packages
sudo apt-get update
sudo apt-get install libtiff4 libtiff4-dev

Then it is possible to add a printer through the Printers app.
Note:
Once the package is installed,  the repository for precise should be removed. Alternatively downloading the deb files from precise repo manually and installing can also be an option.


Tens of thousands of failed/denied SSH login attempts

This is happening a lot to me too. There are a lot of script kiddies trying brute force attacks against your SSH server.

My solution till now was to install DenyHosts, but seems that it will be not supported in 14.04; the next best solutions seems to be Fail2Ban. Links and  more information in Package denyhosts in Ubuntu Trusty Tahr is deleted: temporary or forever?

In that answer, bodhi.zazen pointed to this highly recommended page: http://bodhizazen.com/Tutorials/SSH_security


All drivers accidentally removed, how can i reinstall them (ubuntu 16.04.03 LTS)

You could boot your computer with a live-medium (it doesn't even have to be ubuntu's), you'd be able to use your keyboard and etc. You'd also be able to save your personal data, if you're planning to reinstall Ubuntu. Though I'd suggest you to try the recovery mode first. Just hold down the left shift key (sometimes it is Esc) when booting and choose recovery mode.


Performance difference NTFS Linux and NTFS Windows

The drivers might not be the same but a formatted NTFS partition is a formatted NTFS partition. What ever the tool you use.

By the way: The Ubuntu driver is for mounting and writing to a NTFS partition already formatted as NTFS. In general you format a disk from the GParted software, not Ubuntu itself (though you can install GParted in Ubuntu and use it from there). If the GParted NTFS formatting tool was not up to standard Windows would consider it a corrupted file system and refuse to start from it.

  Or can I just simply format to NTFS from the Windows 8 dvd ?

That question is off topic ... but the answer is: of course. You can format from any installation media since one of the 1st things to do is to set up your partition for a file system structure that that system needs to run on.


How do I set which PostgreSQL version is to be used by default?

The various PostgreSQL command line tools will talk to the server listening on the default port (5432) by default.

You can determine which port each server is listening on by looking for the port variable in the /etc/postgresql/$VERSION/main/postgresql.conf file for the relevant server.

To get the command line tools to talk to the other server by default, you have two options:

First, you could switch the ports the two servers are listening on by editing the previously mentioned configuration files and then restarting both servers (you'll probably want to stop each one before starting either).

Alternatively, you can set the PGPORT environment variable to the port number of the desired default server.  That should affect all applications using the PostgreSQL client library.

To list the contents of each database cluster use psql -l -p PORT_NUMBER.  To migrate data see section "24.4. Migration Between Releases" in the PostgreSQL documentation.

Deleting old versions of PostgreSQL saves wear and tear on laptops & SSDs, through reduction of disk writes.


Update settings - ignoring some updates?

I don't think there's a way to prevent the update notification for particular packages easily, but it's possible to define different notification intervals for security and other updates in software-properties-gtk:

Since (browser) codec updates are often non-critical, you should be able to delay the notification about them, so that they're less of a nuisance.


You can use UDEV to start programs such as irexec when a remote control is added, such as a MCE receiver.

Create a UDEV rule:

  sudo nano /etc/udev/rules.d/irexec.rules

And paste in the following:

ACTION=="add", SUBSYSTEM=="rc", RUN+="/usr/bin/irexec -d"

The Udev man page contains more information for putting together more advanced rules.


Eclipse IDE not starting on Xubuntu 16.04

@Booming mentioned in a comment, that OpenJDK9 is beta still and indeed uninstalling OpenJDK9 and installing OpenJDK8 fixed all problems.

I had to apt-get purge all things Java and then reinstall OpenJDK8 to make it work:

$ sudo apt-get purge java
$ sudo apt-get purge openjdk

Then to check if it is really gone:

$ sudo update-alternatives --config java

And installing again:

$ sudo apt-get install openjdk-8-jdk openjdk-8-demo openjdk-8-doc openjdk-8-jre-headless openjdk-8-source


How to install BibleMemorizer in Ubuntu 14.04 and later?

According to Jeremy, one of the project manager: Yes!
It's actually possible to get BibleMemorizer running by compiling it yourself. It is designed it to compile with both Qt3 and Qt4, as long as you have the Qt3 support library.
Download the tar.gz-package from the Sourceforge project page.
Extract it.
Open a terminal (Command line):

sudo apt-get install libqt4-dev libqt4-qt3support g++
cd path-to-the-extracted-folder (Go to the biblememorizer-0.6.4 directory from the source code download)
./configure
make
sudo make install

The app will then show up in the usual places. If it gives plugin errors, you may need to change the plugin directory in Settings to /usr/lib/biblememorizer/plugins and pick the "English language book names" plugin. (The Sword plugin seems to cause a crash on my machine.)