Ultrawide in 16.10: AMD/ATI graphics card only works at 30hz for 2560x1080

I may have answered my own question, but I'm not sure.  The documentation for the Radeon HD 7450 (http://www.amd.com/Documents/AMD_Radeon_HD_7470-HD_7450_GPU_Feature_Summary.pdf)

HDMI 1.4a with Stereoscopic 3D Frame Packing Format, Deep Color, xvYCC wide gamut support,
Max resolution: 1920x1200


To create independent files, do the following (assuming somefile is in your current directory):

cp somefile temp_somefile
rm somefile
mv temp_somefile somefile

This will create an identical file somefile, that is not anymore linked to somefile_h. No knowledge of where the linked file exists on your file system is required with this approach.

If you know where the linked file is, then it is shorter to delete that linked file and next make a regular copy of the (previously linked) file under the same file name:

rm <path>/somefile_h
cp somefile <path>/somefile_h

A way to achieve this with a cp single command was provided by user bac0n:

cp --remove-destination somefile <path>/somefile_h

Here, the destination (linked) file is deleted before making a copy. Thus, the copy becomes a "new", regular file that is not anymore linked to the source file.


Your Toolbox window currently looks like this:

Double-click on the paintbrush icon in the Toolbox window.  The Tool Options window appears:

In the Tool Options window, click on the small triangle-in-a-box, just below the window's title bar.  (In this picture, it's below the X that closes the window.)  In the pop-up menu that appears, make sure that the Lock Tab to Dock option does not have a checkmark beside it.  If there is a checkmark there, click on Lock Tab to Dock to remove the checkmark.  Otherwise, click on the desktop to make the pop-up menu disappear.

At the bottom of the Tool Options window, look for a mostly-blank area that says "You can drop dockable dialogues here".  If you don't see that text, drag the bottom of the window frame down a bit.

Click-and-drag the Tool Options tab (not the title bar, but the tab immediately below it) and drop it into the bottom part of the Toolbox window.  The Toolbox window should now include the Tool Options tab:


How to use intel 2200BG on an HP Pavillion DV1000?

My Asus Laptop has an 2200BG build in. I had nothing to do to make it work.

Try loading the module

sudo modprobe ipw2200

but before, look whether this has already happened:

lsmod | grep ipw2200

dmesg is another diagnostic:

dmesg | grep 2200
[   17.054310] ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.2kmprq
[   17.054314] ipw2200: Copyright(c) 2003-2006 Intel Corporation
[   17.054403] ipw2200 0000:02:04.0: PCI INT A -> Link[LNKC] -> GSI 4 (level, low) -> IRQ 4
[   17.054480] ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
[   17.054521] ipw2200 0000:02:04.0: firmware: requesting ipw2200-bss.fw
[   17.662676] ipw2200: Detected geography ZZM (11 802.11bg channels, 0 802.11a channels)

and lspci, get the slot info:

lspci | grep -i wireless
02:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)

and then, for example:

lspci -vv -s 02:04.0


Using previously downloaded debian packages for upgrading to Ubuntu 13.04

If you place the downloaded .deb's on /var/cache/apt/archives apt should use them instead of downloading all over again.

$ sudo cp /path/to/debs/*.deb /var/cache/apt/archives

Please note that by itself this does not prevent the download of some packages. If there is some missing dependency or there is a newer version of a cached .deb apt should download them.

If you want to make sure that no downloads are made use --no-download:

$ sudo apt-get upgrade --no-download

Edit

If you are going to update using do-release-upgrade you cannot use --no-download, but it uses the same path to store packages.


Installation on old laptop results in boot failure "HDD is Failed"

Creating a USB installation using Ubuntu 18.04 and Rufus (which provides BIOS/UEFI as a boot option) has fixed the problem


BTGuard Socks5 libtorrent qBittorrent Deluge trackers not updating stalled downloads

Looks like this was a bug in libtorrent, and may be fixed in latest version.  Not sure it has made it to ubuntu repos yet though.

https://code.google.com/p/libtorrent/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=439


Keep getting warnings about low disk space on home volume

Give du ~ -h | sort -h a try. That will allow you to locate the file(s), or at least see what's taking up your space, intended or not.

Edited for the sort, that should make it much easier to read.


This will do the trick:

% uvcdynctrl -L webcam_settings.gpfl

You can even create this file using the same tool:

% uvcdynctrl -W webcam_settings.gpfl


Gnome Boxes unable to connect to internet on VM

I've just worked out a very simple solution to my problem:

sudo apt-get remove gnome-boxes
suod apt-get install virtualbox


USB module xhci_hcd is in kernel. It is loaded before modules.
This should work in grub as kernel parameter:
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on modprobe.blacklist=xhci_hcd"


Easiest way to check what is Ubuntu, is to record and image on CD and let the PC boot from CD when it is turned on. Then You will start so called Live Ubuntu, which is not installed on Your PC, so You can test it and see if You like it.

More info and download


Run CompizConfig Settings Manager by executing ccsm.

Select the category Desktop and then click on the Ubuntu Unity Plugin.

Switch to the tab Decorations to get the settings shown in the screenshot below:

If your settings differ from the ones I have, you should try applying those default ones to your system. Maybe you need to log out and back in for the changes to take effect.


Set grub2 to boot into Ubuntu on weekdays and Windows on weekends

If you want to experiment with grub, you can use the grub command line (hit c when you are in grub menu). You should see the grub prompt :

grub>

If you want to be safe for experimenting, I would suggest using a virtual machine (with VirtualBox for example).

Once in grub command line interface, you can enter the commands like you would in your /boot/grub/custom.cfg.

grub> insmod datehook
grub> date

I haven't found the datehook module documentation ; however, the source code of datehook shows that a $WEEKDAY variable is available.

grub> echo $WEEKDAY

So, you can do

grub> if [ $WEEKDAY = "saturday" -o $WEEKDAY = "sunday"  ]; then
 echo "Setting Windows as default"
 set default="Windows Boot Manager (on /dev/nvme0n1p2)"
else
 echo "Setting Ubuntu as default"
 set default="Ubuntu"
fi

Be aware that $WEEKDAY might be localized, so test before using this code.

If you are not using a QWERTY keyboard, follow these instructions to set your keymap in grub : How to change grub command-line (grub shell) keyboard layout?


Press Ctrl+A, then E.

This way minicom will echo the typed symbols on screen.

You can enable echo in device itself, if it supports it by

ATE

command.


what this command do ? ls /usr/bin | grep ”man” | sed ”s/man/###/”?

ls /usr/bin

list the contents of /usr/bin and only show filenames.

  | grep ”man”

scan the output of the 1st part and search for "man". Result:

ls /usr/bin | grep man
catman
dbmmanage
dh_installman
dh_installmanpages
man
mandb
manpath
mysqltestmanager
mysqltestmanagerc
mysqltestmanager-pwgen
pod2man
w3mman

  | sed ”s/man/###/”?

match pattern "man" and change it with "###". But this technically does nothing but echo the result. Example:

$ cp /usr/bin/w3mman .
$ ls |grep man
w3mman
$ ls |grep man|sed "s/man/###/"
w3m###
$wdamen@pluto:~$ ls w3*
w3mman

The file is still there and there is no file with "###"


Can I make calls via my android phone over my desktop (and the bluetooth headset attached to the latter)?

It may work with scrcpy over TCP/IP (Display and control your Android device) and the tool sndcpy (Android audio forwarding (scrcpy, but for audio)). I have not yet time to test it myself, though.
A discussion regarding forwarding audio and scrcpy you can find on the Github page of scrcpy, another suggestion was to use scrcpy and use bluetooth for audio.


What do colors in GUFW firewall report mean?

In the GUFW Report tab...

Which ports are active...

RED indicates rule exists... probably accepts.

BLACK indicates no rule exists... probably blocked.


Ubuntu Customized Live CD Fails to run Display Manager

Try to see from "official LiveCDCustomization" at section "Customization limits";

seem that

users with an UID == 999

it not to like ubuntu

Rif: https://help.ubuntu.com/community/LiveCDCustomization


Dekko 2 is totally under support.

Also Ubuntu touch is alive and well. It may not have the level of choice offered by Android but at least your privacy is left intact.

The FDroid route is always an option but personally I wont trust anything android aside from the lower level bootloader code (have no choice but to).

Hopefully purism will come through and actually deliver the Librem 5 and we can get rid of them for good.


Does Linux have a US international keyboard layout exactly like the windows version?

The ability to type ccedilla the way you want isn't present via keyboard layouts in Linux. But there is another way:

Create an ~/.XCompose file

Give it this contents:
<dead_acute> <C> : "Ç" Ccedilla # LATIN CAPITAL LETTER C WITH CEDILLA
<dead_acute> <c> : "ç" ccedilla # LATIN SMALL LETTER C WITH CEDILLA

Log out and log in again


Title bar with close, minimize, and maximize dialogue options dissapeared after update

Log in with Unity 2D, open ccsm (Compiz config settings manager) or download it with sudo apt-get install ccsm and go to Preferences at the bottom and choose Reset to defaults and then choose Unity from the list. Then you can log in into Unity 3D (the normal one) and everything works :)

I had this error today too and that worked for me.
Notice: Probably you have to log in with Unity 3D to change the settings, I am not totally sure anymore. But give both a try ;)

Thanks to Ryan McClure for this addition:

If by any chance Unity 2D has the same issue (it happened to me once before, so I can relate :P) and neither shell does not allow you to open terminal, press Ctrl+Alt+F1 to open a TTY session. From here, enter your username and password and continue to do the commands thonixx gave you.


arpspoof: libnet_init(): UID or EUID of 0 required

You need to run it as root first.I had the same problem. This solved it.

use:

sudo -s

first.


Why can't I copy text from the Ubuntu Terminal?

you can, But you have to go into the settings.

Edit -> Keyboard shortcuts -> find copy and past commands -> Click to alter and enter new combo "ctrl+x, v, c, etc..."


Did the most recent kernel update break /etc/security/limits.conf?

It turned out this was an error in the MySQL configuration. The variable open_files_limit was in the wrong section of /etc/mysql/my.cnf, and wouldn't load.


How to disable touchpad while running full screen applications / games?

After some research I have managed to write a functional script. It will automatically disable touchpad while full screen application is active and mouse is connected. So it is suitable for full screen gameing.

What you need to do is copy the text into Gedit and save file as e. g. : .auto_disable_touchpad.sh (Since it got . in front of name it is hidden file, but you can name it whatever you want.). Then: right click/properties/permissions/allow executing file as program. To add it to startup open Startup applications and add the folowing command your/script/folder/.auto_disable_touchpad.sh .

#!/bin/bash

SC1=$(xdpyinfo | grep dimensions)
SC2="${SC1#*dimensions: }"
SC3="${SC2%% pixels*}"

while :
do
    TP=$(xinput list --name-only | grep -i Touchpad)
    TPS1=$(xinput --list-props "$TP" | grep -i "device enabled")
    TPS2="${TPS1#*:}"

    MO=$(xinput list --name-only | grep -i mouse)

if [ ! -z "$MO" ];then
    WN1=$(xdotool getactivewindow getwindowgeometry)
    WN2="${WN1#*Geometry: }"

    WNN=$(xdotool getactivewindow getwindowname)

    case ${WNN,,} in
        desktop|*vlc*|*smplayer*|*mozilla*firefox*) WNN=1;;
        *) WNN=0;;
    esac

        if [ $SC3 == $WN2 ] && [ $WNN == 0 ]; then
                xinput -disable "$TP"
        elif [ $TPS2 == 0 ]; then
                xinput -enable "$TP"
        fi
else sleep 2
fi
sleep 1
done

If you are watching films or full screen youtube video it will also disable touchpad while the mouse is present. So, you might want to add exceptions. I have already added some for: desktop, firefox (plugin-container), VLC and SMPlayer.

When you want touchpad active while full screen application running then add name of the application to this line:

desktop|*vlc*|*smplayer*|*mozilla*firefox*) WNN=1;;

E.G. to add Ubuntu's default video player Videos to  exceptions add |*videos* before
) WNN=1;; so it will look like this:

desktop|*vlc*|*smplayer*|*mozilla*firefox*|*videos*) WNN=1;;

Note that name of the application is case sensitive so you must use lowercases only (smplayer but not SMPlayer).


How to recover removed packages with the purge flag?

You could attempt to reinstall the entire desktop.

sudo apt-get install --reinstall ubuntu-desktop

It might be easier to just go through the list of removed packages one by one and reinstall.

What ever you do this would be a good time to make a backup in case you don't already have one so when things like this happen you can just revert your changes.


Map microcontrollers connected (FTDI) on physical USB port to Windows Virtual Machine in Virtualbox as COM

N0rbert's comment did guide in the right direction. I am leaving the answer here with the screenshots as a documentation so that others won't scratch their heads trying to do the setup using Serial port Settings of Virtualbox.

So, the steps are as follows:

Connect your microcontroller via USB.
Open the USB section in the Settings for your VM.
Add the intended device as per the screenshot (by clicking on 2nd icon in the right pane).

Power ON the VM and you will get this error which can be ignored.

Under Device Manager on your VM you will find your device


If it looks like this:

It's asking you to chose your own password. Go for one at lwast 10 characters, (12 is better) that you don't use elsewhere, and has a mix of uppercase (A-Z), lowercase (a-z), numbers (0-9) and punctuation (!"£$%^&*()-=_+{}[]:@~;'#<>?,./¬|\).

If it looks like this:

The username is ubuntu and there is no password (just press enter when it asks).

Screenshots made with Oracle VM Virtualbox.


I suggest not storing the commands in an array but only the parameters (thanks to @steeldriver for the array syntax in bash):

#!/usr/bin/env bash

dirs=('dir1' 'dir2' 'dir3' 'dir4' 'dir5')
for dir in "${dirs[@]}"; do
    cd "$dir"
    echo "***MAKE STUFF***"
    echo "***MAKE MORE STUFF***"
    cd -
done

Note: cd - (minus) changes back to the previous directory (instead of the parent directory) so it's safer than cd ...

If you really want to store the commands, then you need to execute the array elements as commands by simply writing them down:

#!/usr/bin/env bash

cmds=('cd dir1' 'cd dir2' 'cd dir3' 'cd dir4' 'cd dir5')
for cmd in "${cmds[@]}"; do
    $cmd
    echo "***MAKE STUFF***"
    echo "***MAKE MORE STUFF***"
    cd -
done

Note that now there's an asymmetry in the script: The last cd - assumes that the $cmd is actually a cd command. I wouldn't recommend that. Either put both commands in an array or none of them.


My worries is, that Ubuntu is not a supported system for DB2. if you look into this document: (http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.apdv.gs.doc%2Fdoc%2Fr0023433.htm) you will see, that Ubuntu is not listed there, but all red-hat-like systems are.

U can try to discover unsupported install of DB2 (I will not recommend it), or you can choose the proper way with different Linux distribution.

For development purposes you can stay on Ubuntu and run DB2 in a Virtual machine (VirtualBox, http://www.howopensource.com/2013/04/install-virtualbox-ubuntu-ppa/) and virtualize the supported server. For production server purpose better to choose proper OS, it will run on server, anyway, does not matter that this is not Ubuntu.


How to copy windows files to ubuntu, from Ubuntu

Assuming the Windows partition is sda1, you can simply open the Nautilus file manager and navigate to it from the Device menu on the left or, if you want to mount the unit using the terminal you can do it 2 ways that will force Windows 8 to be mounted but be warned that anything hibernated will be lost:

sudo ntfs-3g /dev/sda1 /mnt -o remove_hiberfile

or

sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda1 /mnt

They will remove the hibernation flag and any hibernated data (The hibernate file) from Windows. This way, Ubuntu will open your Windows partition.

Seeing the new information I would umount the partition:

sudo umount /dev/sda3

If it does not unmount, you can do the following:

sudo fuser -km /dev/sda3

Then try to mount it on a correct place like /mnt or /media/alek/PARTITION, or even opening it with Nautilus. Just in case, any "I can't opened this because it is hibernating" can be fixed with the remove_hiberfile option mentioned above.


I am using ubuntu 12.04.presently I am having a booting problem relating busybox v1.18.5 and initramfs prompt

you seem to have modified your partitioning scheme outside ubuntu. what you need to do is live boot some linux distribution and open gparted. then you would find UUIDs for all the disk drives. Open /etc/fstab of your installed linux (not live boot but your crashed linux system). There you would find a table showing drive partition UUID and mount point. check for any UUIDs which are invalid (i.e there is a UUID shown in fstab but there is no drive with that UUID shown in gparted) and replace the UUIDs of each partition with the new ones.


The worst thing you can do is to remove Xorg. This is the "glue" that keeps everything graphical together. In order to get your device running you need to reinstall Xorg and remove all NVIDIA Drivers (which block the use of your Intel GPU).(by using sudo apt purge nvidia*)
Get your display manager back:
sudo apt install lightdm plymouth
Then you need Xorg:
sudo apt install Xorg*
see here for more infos.
Just to explain: those packages are GPU agnostic. You need them if you want a decent graphical environment, no matter what GPU you are using. The Xorg server will provide you with all the drivers you need to get a GPU running. Without you're doomed.
Since you've removed all the important packages, you'd need a desktop environment. Do get a decent one:
sudo apt install xfwm4
Still - I would try to save my data unto an external disk and setup the system new with a live disk. That's the reason why there are distros out there. They know how to keep the different parts together.
Linux is really good using the Intel GPU.  But it needs a chance to use them. Without Xorg, you won't have graphics, just text.


What does it mean if my wifi card is not listed anywhere on my system?

The Ethernet connection you see in your virtual machine is not really a true Ethernet connection. That is, it's not a physical one.

It is a network adapter, and the VM sees it as one, but it is really more of a network bridge between the VM and the host. If you're using Windows, you'll see that your Network Connections window will have a VMNet adapter (one for each VM). This is the adapter that acts as the other end of the VM network bridge, allowing the virtual OS to access your physical network connections indirectly.

You don't see your WiFi adapter in your VM, but you don't see your Ethernet adapter either, as it is a virtual connection between host and VM. This bridge allows the VM to access the host's internet connection, which is over whichever network connection the host is using. As far as I know, you cannot add your WiFi adapter to the VM. If you can, then it most likely disables it for the host, which is the case for quite a few devices.

There should be no reason to use WiFi in a VM, and if there is a need, I recommend you actually install Ubuntu or use a Live Environment.


Ubuntu 15.10 doesnt let me open an NTFS drive

EDIT:

Visit this link and you'll find the solution to your problems as it has already happened to others. You drive has an SFS Dynamic Partitioning Scheme which is proprietary and owned by Microsoft. Check the comment made by user "Oldfred" in the link, it will come in handy! Cheers!

ORIGINAL

I think that the partition may be corrupt given the message that it shows but don't give up just yet. Ubuntu is a great GNU/Linux operating system, it's a shame that you have this kind of trouble.

I had a similar problem, have you tried using ntfs-3g or ntfsfix? or mount with ntfs-3g options? Was the NTFS drive in hibernation? Did it suffer a power cut?

Part of the man page of ntfsfix reads as follows:

ntfsfix is a utility that fixes some common NTFS problems.
ntfsfix is NOT a Linux version of chkdsk. It only repairs some
fundamental NTFS inconsistencies, resets the NTFS journal file and
schedules an NTFS consistency check for the first boot into Windows.

You may run ntfsfix on an NTFS volume if you think it was damaged by
Windows or some other way and it cannot be mounted.

Try this:

ntfsfix /path/to/ntfsdevice

In your case it would be:

ntfsfix /dev/sda2

Where /dev/sda2 is the NTFS partition with the issue. ntfsfix has some useful options like:

ntfsfix -b /dev/sda2

The -b options does the following: Clear the list of bad sectors. This is useful after cloning an old disk with bad sectors to a new disk.

Or:

ntfsfix -d /dev/sda2

The -d option does the following:

Clear the volume dirty flag if the volume can be fixed and mounted.
If the option is not present or the volume cannot be  fixed the dirty
volume flag is set to request a volume checking at next mount.

Hope this helps. Don't hesitate to ask again. Cheers!


If you have more than one audio device.

You have to select your sound card in Sound configuration

righ click in sound applet, then click in sound configuration. Then select your card


You can change the ownership of files using the chown command. Run man chown to read the documentation. In short, you can use it as sudo chown USERNAME:GROUPNAME file.

BUT:
I would not recommend changing the ownership of file outside your home directory! See Changed owner of /usr/bin and Changed permissions of / to user to see what happens when you do it.


xubuntu changes file permissions automatically and unable to change file permissions via terminal

That looks like your main filesystem has some errors, mounting as read-only (the Read-only file system message) and the checks at bootup aren't fixing them. Did you try pressing f to attempt to fix it when it said to?  If it doesn't fix it automatically you may need to log into a recovery mode or with a live cd/usb/dvd and then fsck your partitions

See man fsck.ext4 , you'll probably want to use fsck.ext4 -f /dev/sda1 or whatever your partitions are called. Use lsblk or sudo blkid to see what's what. If they're not all ext, then plain fsck should figure out the type on it's own.

It looks like at least the home or / has errors. Try looking at what's mounted with ro (has ro in the ()'d options at end of each line) from the mount command. You can only safely fsck an ext-type partition when it's not mounted, so may need to boot live to do that. If the external hard drive has errors too it should be fsck'd also.

And to help avoid filesystem errors in the future, unmount partitions (hard disks, usb's, everything) before you turn them off or remove them. Just unplugging them (or unplugging the computer) could corrupt filesystems.


Why has Gnome 3 reverted to classic (Gnome 2) look and feel?

Let's try the simple way to fix it first, because that looks like the Gnome3 Classic look (which is, yes, very similar to Gnome2)

Open a terminal, and type/paste:
 sudo apt-get update && sudo apt-get --reinstall install gnome-shell

Logout

Click on the Ubuntu logo:

Select the Gnome session, and click back:

Login and see if you still get the Gnome2 look-and-feel.


Chrome won't start after update Ubuntu 14.04

Running google-chrome-stable in the terminal gave me the following message:
NSS_VersionCheck("3.26") failed. NSS >= 3.26 is required. Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer

This was quite easily solved by just running:

sudo apt-get update.

As Android Dev suggested, running sudo apt-get install --only-upgrade libnss3 might also work.


each time after sudo apt-get install process this little failure-message?

First try running the following command:

sudo apt-get remove --purge postfix

This will completely uninstall the postfix package.  If this does not fix your problem, try running the following commands:

sudo dpkg --configure -a
sudo apt-get install -f

These commands will attempt to fix any broken packages on your system.


Lubuntu: Trouble moving Launcher Bar to right monitor

Right click on panel, in the Geometry it has a "Monitor" selection drop-down which allows you to switch which monitor the panel appears on (along with other settings).


Where does my browser store temporary data?

Temporarily downloaded files

All Linux browsers (including Firefox and Chrome) store "Open for viewing" downloads in the /tmp directory. Old /tmp files are deleted the following situations:

When you close your browser
When you restart Ubuntu
When your disk space is low

If you want to make a temporary download permanent, you can simply navigate to /tmp, find the file in question, and copy it into your home folder.

Streaming media

Flash, audio, and video files you play are cached in highly obfuscated directories like $HOME/.mozilla/firefox/3lms8ke.default/C/2A for Firefox. Woozie's answer to this question can help you find and retrieve flash files. Remove the | grep Flash part of his command to get a list of all cached files by their data type.


How to "prioritise" multiple network connections

If I understand your question correctly, you have a local-only WiFi connection (or at least you want to use it for local connections only) and an internet-connected mobile broadband connection. Is that correct?

Background

Here's some background. Both your WiFi and mobile broadband connection are claiming the "default route" as in, the route to all the addresses I am not otherwise aware of, i.e. the Internet. As there's just one routing table and your applications aren't (and shouldn't be) aware of those two connections, the kernel just follows the routing table.

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.11.254  0.0.0.0         UG    0      0        0 eth0
192.168.11.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0

In the example above, the local network addresses are available directly on the interface and all other ones are routed via 192.168.11.254. This is the gateway and this address is usually announced by the DHCP server. It's telling the computer requesting for an IP address not just an available host address to use, but also the gateway, DNS servers, NTP time server, etc.

Now, what you would want, is to disable your DHCP client on your PC to ignore the announcement "this is the default gateway: 192.168.11.254", yet still listen to the rest to be able to keep the ability to talk in the local network. Below is how to do that.

Network Manager settings

Try disabling the default route to be assigned to your WiFi adapter when connected. Assuming you're running the default NetworkManager, you should be able to change the behaviour of how routes are assigned.

Below is how it looks like in KDE, but it should be similar in other Desktop Environments. It's important to find the two settings in the "Routes" section of the "IPv4 Address" tab in the settings window of the specific network.

Ignore automatically obtained routes (tick it)
Use only for resources on this connection (tick it)

Both on the bottom of this window:

You might also want to ignore the information about the DNS servers for the WiFi connection if you don't rely on it for local addresses. This can be done in the "Basic settings" section of the "IPv4 Address" tab by selecting the "Automatic (DHCP) addresses only".


Gradle project refresh failed- Android Studio 2.2

I was facing same problem. It's because of wrong path selected by android-studio of JDK. Anyway, you can fix it by setting the path of JDK.

You can do it by opening Configure → Project Default → Project Structure inside Android Studio and set path of JDK.


How to run PHP code in browser directly from Geany?

php doesn't run in the browser, it runs on the server. You need to install a web server with php support. The Ubuntu Server Guide documents this in detail. You can easily get started by installing the libapache2-mod-php5 package

$ sudo apt-get install libapache2-mod-php5

And then you can put a php file where the apache server can read and execute it. e.g. /var/www

$ echo '<?php phpinfo(); ?>' > /var/www/test.php

Now visit http:// localhost /test.php and you should see the php info page.  (I had to break this url to make askubuntu happy - links cannont contain localhost.)

See also: https://help.ubuntu.com/12.04/serverguide/php5.html


How can I wait until a web server is ready before launching a script

I figured since I could see that the variable wasn't being read outside the loop I needed to rethink it.  The entire purpose of the loop of course was to keep trying until the server was up. So I simplified the whole thing and just exited in the last step if true.

#!/bin/bash
check="false"
webserv="http://localhost:8088/main/system/gwinfo"
Keyword="RUNNING" # enter the keyword for test content

until [$check=="true"]
do

if curl -s "$webserv" | grep "$Keyword";
then
    # if the keyword is in the conent
    ./clientlauncher.sh scope=C project=Edge windowmode=fullscreen
    exit

fi
done


How to resolve E: Internal Error when using apt-get remove?

For me this works:

sudo dpkg --configure -a

Src: E: dpkg was interrupted... run 'sudo dpkg --configure -a'

Reboot then,

apt-get update
apt-get upgrade

I hope it works for you too!


Just try to do it from console with these commands:

sudo apt-get update
sudo apt-get dist-upgrade

If the later command fails, comment here with the a link to the full output on Ubuntu Pastebin please.


Not recognize JDK after installation in ubuntu 12.10

You need to use update-alternatives to update the soft links determining commands.

for example:

    sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_37/bin/java" 1
    sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_37/jre/bin/java" 2

In your case, it's $Home/Programs/jdk instead of /opt/jdk1.6.0_37

Note If updating from a previous version that was removed manually, execute the above command twice, because you'll get an error message the first time.

Then set the new JRE as the default:

    sudo update-alternatives --set java /opt/java/jdk1.6.0_37/bin/java

or

    sudo update-alternatives --config java

Example:

root@ubuntu:/opt# update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      auto mode
* 1            /opt/jdk1.6.0_37/bin/java                        1         manual mode
  2            /opt/jdk1.6.0_37/jre/bin/java                    2         manual mode
  3            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode

run java -version to confirm java version

NOTE: I recommend using the oab-java bash script on Github.

https://github.com/flexiondotorg/oab-java6


Do you have the MASQUERADE rule?

Can you try to start the daemon with docker -d -b testbr0 and try again?

This will create a new bridge and setup all iptables rules for it.

If it works, it probably mean a iptables -t nat -F occurred at some point and the nat rules for docker have been lost. You can either manually recreate them or more easily, remove the docker bridge and restart docker :)


Can't type in password for Steam Install on Ubuntu

Terminal dosn't show key presses, or stars for password. (So you won't see it typed, it will seem like nothing is happening, this is a security feature so others can not know the length of the password)

So keep typing and then hit enter once you have entered your password.

Also note: This will be your Ubuntu system password.

If the install fails you may want to install the packages Steam says it needs through the software center or synaptic package manager.


Easiest way to take a continous series of pictures from a webcam

streamer can still do this:

streamer -t99999999999999 -r 10 -o output0000000.jpeg

The awkward looking -t argument is there to cope with the fact that streamer needs to know how long it's going to be recording for. Still, that's several thousand years. Just Control+C to exit out when you're done recording.

The -r argument sets your framerate.


Please try with follow.

$ sudo apt-get install ntfs-3g ntfsprogs

please use "ntfsck" command and fix issues of ntfs filesystem.
and after you reboot or remount the filesystem, please use follow command.

$ sudo rm -rf "mnt/hgfs/Documents and Settings/Admin/Local Settings/Application Data/Google/Chrome/User Data/Default/old_Cache_000"


I had the same problem and solved it doing this: In the "sound settings" I went to the applications tab in the right. There I changed a couple of things (don't remember exactly which ones) like volume, checked and unchecked the mute option and sound came back. My opera version is 42.0.2393.137. Hope this work for you too!


Setting Wallpaper in Gnome with command line only works once

Trying a little bit and reading about the bug I figured out a really simple workaround.

You will have to sandwitch your "picture-url" command disabling and enabling againg the draw-background entry. Basically, your line should look like this:

gsettings set org.gnome.desktop.background draw-background false && gsettings set org.gnome.desktop.background picture-uri file:///home/$USER/Imágenes/pic.jpg && gsettings set org.gnome.desktop.background draw-background true

I've just made a one-liner that do gsettings set org.gnome.desktop.background draw-background false change the wall and then activate the entry again. :)

It works like a charm! Thanks for the question! ^_^


PolicyKit is more configurable, though pkexec doesn't make use of this configurability.  Also, pkexec show the user the full path of the program that will be started, to that the user is a bit more sure what will happen. The so-called 'policies` of PolicyKit can be used to set more advances settings. For example, whether the password should be remembered.

Something I got from the pkexec manual:

  The environment that PROGRAM will run it, will be set to a minimal
  known and safe environment in order to avoid injecting code through
  LD_LIBRARY_PATH or similar mechanisms. In addition the PKEXEC_UID
  environment variable is set to the user id of the process invoking
  pkexec. As a result, pkexec will not allow you to run e.g. X11
  applications as another user since the $DISPLAY environment variable
  is not set.

More information on policies or action definitions from the pkexec manual:

   To specify what kind of authorization is needed to execute the program
   /usr/bin/pk-example-frobnicate as another user, simply write an action
   definition file like this

       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE policyconfig PUBLIC
        "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
        "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
       <policyconfig>

         <vendor>Examples for the PolicyKit Project</vendor>
         <vendor_url>http://hal.freedesktop.org/docs/PolicyKit/</vendor_url>

         <action id="org.freedesktop.policykit.example.pkexec.run-frobnicate">
           <description>Run the PolicyKit example program Frobnicate</description>
           <description xml:lang="da">Kør PolicyKit eksemplet Frobnicate</description>
           <message>Authentication is required to run the PolicyKit example program Frobnicate</message>
           <message xml:lang="da">Autorisering er påkrævet for at afvikle PolicyKit eksemplet Frobnicate</message>
           <icon_name>audio-x-generic</icon_name>
           <defaults>
             <allow_any>no</allow_any>
             <allow_inactive>no</allow_inactive>
             <allow_active>auth_self_keep</allow_active>
           </defaults>
           <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/pk-example-frobnicate</annotate>
         </action>

       </policyconfig>

   and drop it in the /usr/share/polkit-1/actions directory under a
   suitable name (e.g. matching the namespace of the action). Note that in
   addition to specifying the program, the authentication message,
   description, icon and defaults can be specified. For example, for the
   action defined above, the following authentication dialog will be
   shown:

       [IMAGE][2]

           +----------------------------------------------------------+
           |                     Authenticate                     [X] |
           +----------------------------------------------------------+
           |                                                          |
           |  [Icon]  Authentication is required to run the PolicyKit |
           |          example program Frobnicate                      |
           |                                                          |
           |          An application is attempting to perform an      |
           |          action that requires privileges. Authentication |
           |          is required to perform this action.             |
           |                                                          |
           |          Password: [__________________________________]  |
           |                                                          |
           | [V] Details:                                             |
           |  Command: /usr/bin/pk-example-frobnicate                 |
           |  Run As:  Super User (root)                              |
           |  Action:  org.fd.pk.example.pkexec.run-frobnicate        |
           |  Vendor:  Examples for the PolicyKit Project             |
           |                                                          |
           |                                  [Cancel] [Authenticate] |
           +----------------------------------------------------------+

   If the user is using the da_DK locale, the dialog looks like this:

       [IMAGE][3]

           +----------------------------------------------------------+
           |                     Autorisering                     [X] |
           +----------------------------------------------------------+
           |                                                          |
           |  [Icon]  Autorisering er påkrævet for at afvikle         |
           |          PolicyKit eksemplet Frobnicate                  |
           |                                                          |
           |          Et program forsøger at udføre en handling der   |
           |          kræver privilegier. Autorisering er påkrævet.   |
           |                                                          |
           |          Kodeord: [___________________________________]  |
           |                                                          |
           | [V] Detaljer:                                            |
           |  Bruger:   Super User (root)                             |
           |  Program:  /usr/bin/pk-example-frobnicate                |
           |  Handling: org.fd.pk.example.pkexec.run-frobnicate       |
           |  Vendor:   Examples for the PolicyKit Project            |
           |                                                          |
           |                                [Annullér] [Autorisering] |
           +----------------------------------------------------------+

   Note that pkexec does no validation of the ARGUMENTS passed to PROGRAM.
   In the normal case (where administrator authentication is required
   every time pkexec is used), this is not a problem since if the user is
   an administrator he might as well just run pkexec bash to get root.

   However, if an action is used for which the user can retain
   authorization (or if the user is implicitly authorized), such as with
   pk-example-frobnicate above, this could be a security hole. Therefore,
   as a rule of thumb, programs for which the default required
   authorization is changed, should never implicitly trust user input
   (e.g. like any other well-written suid program).


The command 'which cd' prints nothing in 12.04

In bash, which is an external utility. It only finds external commands: it does not know about aliases, builtins or functions. The same goes for whatis and whereis.

Forget which and use type instead.

$ type cd
cd is a shell builtin

Builtins don't have a man page of their own (unless they also exist as an external utility, but then you get the documentation of the external utility, which may support different options). They are documented in the bash manual.

See also How to use which on an aliased command? and My which command may be wrong (sometimes)?


Where is the documentation for clipit hiding?

Clipit seems to have not a really large amount of support.

Some assistance can be found on their github page https://github.com/CristianHenzel/ClipIt, particularily the document https://github.com/CristianHenzel/ClipIt/blob/master/README.md which lists the default keybindings for clipit.

The few default keybindings are:

History   Ctrl+Alt+h
Actions   Ctrl+Alt+a
Menu  Ctrl+Alt+p
Search    Ctrl+Alt+f
Offline mode  Ctrl+Alt+o

Speaking of the github, this would be the appropriate place to initiate a feature request for clipit, or volunteer effort to improve the manpage.


Well, after asking this in the snappy channel of the Rocket server of Ubuntu zyga answered my question:

I don't think NFS is supported today
technically you'd have to mount your NFS directory somewhere and then bind mount that over to /var/snap/ but I don't know what kind of issues you will face

He also talked about a more native/easier option:

you may create a snap that mounts stuff to /media but that's not going to easily let you run stuff with data in NFS
you can design a snap that specifically loads data into the NFS share while keeping regular data in /var/snap as usual

Anyway, he warned me:

I think that is going to be very fragile given how NFS behaves

Summing it up, I think that the answers to my points are:

Implementing a special snap.
It's not a recommended thing to do.


How to get Places with MATE single-menu layout

There is a solution called “MATE Menu” (as of Ubuntu MATE 18.04, there are four different menu options):

Right-click the top panel and choose Add to Panel…
Choose MATE Menu and click Add
Right-click the new menu that appears and choose Preferences
On the Places tab, select Show GTK+ bookmarks
Remove the previously selected menu from the panel

The menu can be customized further, e.g. by adding more places (which will appear only in the menu) or showing recent documents.


Windows 7 not in boot menu on dual boot system

Chances are that you flattened your WIN7 partition, although you didn't want to.

boot into lubuntu
install Gparted with

sudo apt-get install gparted

open it
look at the partitions (you may post here a screenshot too)

In both cases (partition still there / partition erased) you could try to rescue it, but in different ways. Just update the question.

Anyway, especially if the partition is still there, but it's not recognized, https://help.ubuntu.com/community/Boot-Repair could be useful.


How can I create a Unity launcher for Shotwell Photo Viewer?

The executable file for Shotwell Photo Viewer is located in /usr/bin directory. You cen test this from terminal using the following command:

whereis shotwell

Now, to create an entry for Shotwell Photo Viewer on your Unity launcher, simply open Shotwell Photo Viewer, then right click on its picture on the launcher and select Lock to Launcher.


access ubuntu server running in virtualbox from outside network?

Regardless of whether the server is a real or a virtual machine, you will need to forward the appropriate port(s) across your LAN router, i.e. translate from the public IP you obtained from ifconfig.me to the server's private IP. You will need to refer to your router's documentation to see how to do that for your specific device.

If you wanted to use the VM in NAT mode, it should just require the additional step of forwarding the equivalent ports across that as well, i.e. from the host's real LAN IP to the VM guest's virtual LAN IP.


Galaxy Nexus-adbd cannot run as root in production builds

Please follow carefully the installation instructions for unlocking the device

https://wiki.ubuntu.com/Touch/Install#Step_2_-_Device_unlock
https://wiki.ubuntu.com/Touch/Install#Step_3_-_Initial_Device_Setup

if this has been proceeded sucessfully you should be able to flash the device.


Notifications Alert Sound on Xubuntu 16.04

I do not think your description is accurate. I could reproduce the following with a fresh install of Xubuntu 16.04.

Changing of volume does not involve any sound notifications.
Changing brightness by scrolling on the battery icon does not show any indicator notification. However, changing it by means of a keyboard does trigger a notification.

Please purge Nylas Mail (or the likes) and reinstall to check if notifications are still mute. In my case, they weren't.

In summary, you could register your problems probably as feature requests or bug reports (I am not sure which is appropriate). Alternatively, you can ask a question here regarding however you want to manually customise your notification preferences. Be specific about what you want.


Mount LUKS encrypted hard drive at boot (luks key stored in HOME folder which is encrypted by ecryptfs)

You do not want to put your key onto a non-encrypted partition like /boot that you have mentioned. That would make encryption just useless because anybody could read the keyfile and decrypt your partition(s).
The solution with the USB stick is that you just insert the USB stick or any other removable media during boot, then you can remove it and store it in a safe place.


Cannot run a MahaSecure banking app in Ubuntu 20.10 as earier versions of ubuntu?

I have no idea what Mahasecure is, but I suspect that the problem is with qt.
Try to install qt4
sudo add-apt-repository ppa:rock-core/qt4
sudo apt update
sudo apt install qt4-default
sudo apt install qt5-default


This will run your command every minute.  It is valid syntax.

Here are the gory details from info crontab :

        The first five fields  shall be integer patterns that specify the
        following:

        1. Minute [0,59]

        2. Hour [0,23]

        3. Day of the month [1,31]

        4. Month of the year [1,12]

        5. Day of the week ([0,6] with 0=Sunday)

       Each  of  these  patterns  can be either an asterisk (meaning all valid
       values), an element, or a list of elements separated by commas. An ele‐
       ment  shall  be  either  a  number or two numbers separated by a hyphen
       (meaning an inclusive range). The specification of days can be made  by
       two  fields  (day  of the month and day of the week).  If month, day of
       month, and day of week are all asterisks, every day shall  be  matched.
       If either the month or day of month is specified as an element or list,
       but the day of week is an asterisk, the month and day of  month  fields
       shall  specify  the days that match. If both month and day of month are
       specified as an asterisk, but day of week is an element or  list,  then
       only the specified days of the week match. Finally, if either the month
       or day of month is specified as an element or list, and the day of week
       is  also  specified as an element or list, then any day matching either
       the month and day of month, or the day of week, shall be matched.

The article you linked to looks like a good one.  It's giving you some good examples and it's actually easier to read than the man-page excerpt I provided here.
You should be able to use the syntax it talks about.

According to my crontab, @daily runs at 6:25 AM .

$ grep daily /etc/crontab
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )


How do I run the same exact command, N number of times in parallel using GNU parallel?

I'm not sure it's the right way to do it, but you could generate N dummy arguments (using seq for example) and then tell parallel to read but not insert them using -N0 (making the real argument part of the command string).

Ex. for N = 5:

$ seq 1 5 | parallel --dryrun -N0  python3 script.py file1 :::
python3 script.py file1
python3 script.py file1
python3 script.py file1
python3 script.py file1
python3 script.py file1


vmware-tools and open-vm-tools-desktop aren't offering monitor resolutions anymore

This question had the answer:

Gparted LiveCD ISO breaks Ubuntu 14.04.4 desktop resolution in Vmware Fusion 7.1.3

Open the config file is called .vmx. Removed the line 'svga.guestBackedPrimaryAware = "TRUE"'.


awk is much better for that:

#!/bin/bash

# Usage findsku <SKU> <QTY> <DIR>
# Example: findsku 605284307892 14 ~/mydir
# Result: found ./teste.edi: SKU=605284307892, QTY=14

sku=$1
qty=$2
dir=$3

echo "looking for SKU #${sku} with QTY=${qty} in ${dir}:"

while read -r file; do
    awk -F'*' -v sku="$sku" -v qty="$qty" 'BEGIN{RS="*UP*"} $2==sku &&
    $NF==qty {print "found " FILENAME ": SKU=" sku ", QTY=" qty}' "$file"
done < <(find "$dir" -name "*.edi" -type f)

I think it is pretty much self-explanatory, and you can adapt for any sku and qty values you want. But feel free to ask any question you want about it!

It will recurse in the given DIR, and you can easily adapt it to scan other files besides *.edi


How can I undo restoring files from the trash or get the list of the restored files?

Not that I am aware of. Unfortunately, the .trashes file stores the location of the file until you either erase it or restore it. You're probably not going to find an easier way to do it other than to find the files and erase them again. Doing ctrl+z could have solved your issue the moment it happened, but it's probably too late for that.


Lightweight Linux Distro (Preferably Ubuntu Based) needed for IBM R51

There's been some performance regressions in 11.10. If you feel that 11.04 was fast enough, then you might want to give Precise Pangolin a try. This is the development version that is expected to become Ubuntu 12.04LTS in April. Quite a few users have reported that performance is already much better than in 11.10 and it'll surely improve during the rest of the cycle. It is also possible that your issues are due to bad drivers for your VGA. A desktop system tends to not be faster than it looks like it is. You can try Unity 2D and see if that helps.

If you want a really light-weight distro, you can use Lubuntu. Unlike Ubuntu, it is not based on Gnome, but it is based on GTK, so things will look and feel similar. It is extremely fast, and like all other Ubuntu systems, you can install any application from Ubuntus archives, including LibreOffice.


BADSIG error with canonical archives repository

Found out that the PPA was outdated. Got the updated PPA, replaced the old with, reran update and this time no error messages.


Dual boot - Windows missing after installing ubuntu

I have installed win 7 normally, made 2 partition please make note its in MBR

100 mb system reserved
50 gigs for my win 7
Left rest as unallocated

Now after the installation I rebooted the and booted with bootable ubuntu USB

I am not able to see option “alongside” so selected something else

Then coming on to Ubuntu partition (doesnt matter under GPT primary or logical. But if its MBR then strongly logical)

1.20gigs mounted to / (at least 10 gigs required)

2.20gigs mounted to /home ( at least 10 gigs required)

3.10 gigs swap (double of RAM preferred)

4.You may have to create a partion in ubuntu as Fat32 if you want to move files from ubuntu to windows or vice versa (size depends on you requirement and needs. ALSO ITS NOT A MANDATE DRIVE ITS OPTIONAL.)

Then install Ubuntu make sure the directory should be /dev/sda

Once installed reboot your laptop, after reboot it will boot with Ubuntu.

Now to make windows visible we have to update the file named Grub hosted under - /etc/default/grub

To update and make the change in a statement -

GRUB_TIMEOUT=10

And

GRUB_TIMEOUT_HIDDEN=10

For this go to terminal

Type GRUB_TIMEOUT=10 enter then

Type GRUB_TIMEOUT_HIDDEN=10 enter then

Type sudo update-grub enter

Restart the computer I am sure you will be able to see option to choose between windows and Ubuntu

Happy ubuntuing ……….. 

I am so glad finally I did it ……yayy


Dual boot with Windows 10 and Ubuntu without any boot speed delay

You can install Ubuntu to the HDD drive without having a negative effect on Windows booting.
And you have to install the GRUB boot loader to same drive where the EFI partition is installed.
But it is recommended to install all operating systems on the same drive - in your case the SSD.

So I recommend to install Ubuntu alongside Windows 10 on the SSD.
You should use the HDD for storing your personal data and backups.
Don't forget to disable fast boot and hibernation in Windows before.


Ubuntu 20.04, on-screen keyboard not showing when using touchscreen on LENOVO YOGA 500

You need to turn it on under the accessibility options.  Here's the official documentation.  It appears to pop up all the time now though.

Open the Activities overview and start typing "Settings".
Click on Settings.
Click Universal Access in the sidebar to open the panel.
Switch on Screen Keyboard in the Typing section.


I think you have this bug:

https://bugs.kde.org/show_bug.cgi?id=242772

Please, read the comments 36, 38 and 39. There you have the temporary solution I found.

Regards.


No mobile broadband wizard with a GOBI2000

I'm experiencing the same problem since upgrading to 12.10 but with a Huawei K3765 usb dongle.

I have a workaround. Hit Alt+F2 (or open a terminal) and run nm-connection-editor. Then you can go for the Mobile Broadband tab and add a new connection.


You may want to take a look at OwnCloud. It's like an open source DropBox, hosted on your own premises. Like DropBox, it has sync clients for most common platforms.

https://owncloud.org/features/


You might find what you need in Rhythmbox:

Add a podcast using the Podcasts entry in the left column, then (in the right tab) click Add.
Download the episode(s).
Add the episode(s) to the Play Queue (right-click -> Add to Play Queue)
Switch to the Play Queue using the entry in the left column. This should be the topmost entry.
In the Play Queue tab, click on Playlist and select Create Audio CD. This will open a CD burning application (for me this is Brasero, this might differ on another system) and create a project containing your Play Queue.

A guide to burning CDs with Rhythmbox with nice pictures can be found in this answer.


HP Elitebook 1050 G1 - Clickpad only works after wakeup ubuntu18.04

I have the same laptop and here is my experience:

You need to have psmouse.synaptics_intertouch=0 in grub settings or else touchpad behaves like a slowly broken mouse and ubuntu 18.04 doesn't recognize it as a touchpad but a regular mouse.

Kernel 4.18: First boot will not have a touchpad. Suspend once to get touchpad back but lose keyboard. Suspend one more time to get both keyboard and touchpad.
Kernel 4.19/.20: First boot will have both touchpad and keyboard. However, after Suspend, touchpad becomes erratic and CPU for touchpad IRQ/snaptic constantly use 7% CPU draining battery and cause CPU to unable to sleep.

So 4.19/20 fixed boot issue but the CPU usage of touchpad IRQ after Suspend is killing me.


As you can see here it is possible. I don't use AWS, so I could not say if it is acceptable to have a server instance and install desktop packages and services to it.

I think, you should to ask Amazon support before installing any desktops to it.

Amazon guide gives the next instructions:

  Note: These instructions apply only to Amazon Linux 2. To confirm
  which version you're running, run the command:

cat /etc/os-release

sudo amazon-linux-extras install mate-desktop1.x
sudo bash -c 'echo PREFERRED=/usr/bin/mate-session > /etc/sysconfig/desktop'
echo "/usr/bin/mate-session" > ~/.Xclients && chmod +x ~/.Xclients
sudo yum install tigervnc-server
vncpasswd
vncserver :1
sudo cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
sudo sed -i 's/<USER>/ec2-user/' /etc/systemd/system/vncserver@.service
sudo systemctl daemon-reload
sudo systemctl enable vncserver@:1
sudo systemctl start vncserver@:1

  Connect to the GUI using the VNC

  Install the TigerVNC software on your local computer, if it's not already installed. TigerVNC is available for Linux, Windows, and
  macOS. See the TigerVNC website to access the download.
  On your local computer, use SSH to connect to your instance while creating a tunnel to forward all traffic on local port 5901/TCP
  (VNC) to the instance's VNC server.


What is the Ubuntu installation going to do to my Windows files...?

It will leave the Windows files alone and create a place for Ubuntu to run out of.  WUBI installs Ubuntu as an application inside of Windows.


*could not find libmount* when cross-compiling glib-2.5

I have the same error while I was compiling an image for the emulator Gemun(versatile)
I resolved the problem by typing these commands:

make qemu-arm-versatile-defconfig

(// try cd configs Then lsto show the list of supported boards).

make menuconfig (your custom system banner .....)
make

if you have any problems with missing gcc compiler try this:
Install the GCC, G++ cross compilers and support programs by typing:

sudo apt-get install libc6-armel-cross libc6-dev-armel-cross
sudo apt-get install binutils-arm-linux-gnueabi
sudo apt-get install libncurses5-dev

If you are using an Arietta, Aria or FOX board:

sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install g++-arm-linux-gnueabi

If you are using an Acqua board:

sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install g++-arm-linux-gnueabihf


Can applications on the shell activities overview show icons?

There is a GitHub repository with a Gnome-shell extenstions that seems to do what you are looking for (although I haven't tried it). Install it using:

git clone https://github.com/sustmi/gnome-shell-extensions-sustmi.git
mv gnome-shell-extensions-sustmi/windowoverlay-icons ~/.local/share/gnome-shell/extensions/windowoverlay-icons@sustmidown.centrum.cz

The source, including a screenshot, of this post can be found here.


how to enable proprietary software source in ubuntu 13.04

Go to System Settings, click on Software & Updates, and once the window opens make sure that it matches the image below.


According to ubuntu manual:

  ldconfig  creates,  updates,  and removes the necessary links and
  cache (for use by the run-time linker,  ld.so)  to  the  most  recent
  shared libraries  found  in  the directories specified on the command
  line, in the file /etc/ld.so.conf, and in the trusted directories
  (/usr/lib  and /lib).

So, assuming that freeverb.so is located in /home/yourUser/Download directory (folder), create folder in your home:

   mkdir /home/yourUser/myLibrary

and copy freeVerb.so library:

   cp /home/yourUser/Download/freeverb.so /home/yourUser/myLibrary

create a simple file freeverb.conf like this:

   echo "/home/yourUser/myLibrary" > freeverb.conf

Add you configuration file freeverb.conf in /etc/ld.so.conf.d directory (in this directory you can find files as example)

   sudo cp freeverb.conf /etc/ld.so.conf.d

Run ldconfig in order to configure dynamic linker run-time bindings.

   sudo ldconfig

If /etc/ld.so.conf.d doesn't exists, you can add your path at the end of /etc/ld.so.conf file.

At the end, if all went well, you can remove unnecessary file:

   rm freeverb.conf
   rm /home/yourUser/Download/freeverb.so


Lost password, administrative account deleted, trying to connect to new wifi and being asked for password

If your account have lost administrative privileges you need to do the following:

Figure out your username. Open a terminal and type whoami[Enter] there. Write it down.

Then, you need to reboot your machine into Recovery Console (this is one of the menu entries in your boot menu). The console gives you full access to the system, so be careful.

To change/set your user's password, in the Recovery Console you need to type

passwd YOURUSERNAME[Enter]

which will ask you for a new password and then will ask you to repeat it.

To make your user an administrator on the machine, do the following:

addgroup admin[Enter]
adduser YOURUSERNAME admin[Enter]

then reboot the machine using

reboot[Enter]

You should be able to log in with your new password. When performing administrative tasks (such as installing new software - actually, it occurred to me that I was never asked for a password when connecting to wi-fi hotspots... hmm...) - anyway, for administrative tasks you will be asked for the same password.


How can I create a wget GUI with multiple progress bars?

Solution using YAD

Overview

Zenity hasn't been updated in quite a while. Luckily there's a fork called YAD with a lot of added features. It hasn't arrived in the official repositories, yet, but you can install it from a webupd8 PPA:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install yad

One of the features added to YAD is a multi progress-bar dialog. Here's an excerpt from YAD's manual concerning multiple progress bars:

Multi progress bars dialog options
--bar=LABEL[:TYPE]
  Add progress bar. LABEL is a text label for progress bar. TYPE is a progress bar type. Types are:
  NORM for normal progress bar, RTL for inverted progress bar and PULSE for pulsate progress bar.
--vertical
  Set vertical orientation of progress bars.
--align=TYPE
  Set alignment of bar labels. Possible types are left, center or right. Default is left.

Initial values for bars set as extra arguments. Each lines with progress data passed to stdin must be started
from N: where N is a number of progress bar. Rest is the same as in progress dialog.

So a very simple a script with multiple progress bars could look like this:

for i in {1..100}; do
   printf "1:$i\n2:$i\n3:$i\n"
   sleep 0.2
done | yad --multi-progress --bar="Bar 1":NORM --bar="Bar 2":NORM --bar="Bar 3":NORM

This is what the result would look like:

We can add descriptions to the bars with #:

for i in {1..100}; do
   printf "1:$i\n2:$i\n3:$i\n"
   printf "1:#Progress 1 is at $i percent\n2:#Progress 2 is at $i percent\n3:#Progress 3 is at $i percent\n"
   sleep 0.2
done | yad --multi-progress --bar="Bar 1":NORM --bar="Bar 2":NORM --bar="Bar 3":NORM

Result:

If we want to implement this in a wget download script we will have to do a few things first:

find a way to extract the download progress and other interesting data out of the wget output
find a way to iterate over multiple files
find a way to pass all of the info we have to one single yad dialog

I found this project rather interesting so I sat down and composed a script that should do all of the above.

yad_wget

Here's what I came up with:

#!/bin/bash

# NAME:         yad_wget
# VERSION:      0.2
# AUTHOR:       (c) 2014 Glutanimate
# DESCRIPTION:  graphical frontend to wget in form of a yad script
# FEATURES:     - display progress of multiple simultaneous downloads
#               - set maximum number of simultaneous downloads
# DEPENDENCIES: yad
#
#               Install yad on Ubuntu with:
#
#                   sudo add-apt-repository ppa:webupd8team/y-ppa-manager
#                   sudo apt-get update
#                   sudo apt-get install yad
#
# LICENSE:      GNU GPLv3 (http://www.gnu.de/documents/gpl-3.0.en.html)
#
# NOTICE:       THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
#               EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
#               PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
#               IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
#               AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
#               PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE,
#               YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
#
#               IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
#               COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
#               PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
#               INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
#               THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
#               INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
#               PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
#               PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#
# USAGE:        yad_wget <space-delimited URLs>
#               Closing the yad dialog will terminate all downloads in progress

# Variables and settings

MAXDLS="5" # set maximum number of simultaneous downloads

URILIST="$@" # gets list of URIs from stdin
USAGE="$0 <space-delimited URLs>"

# Set GUI variables up
TITLE="YAD wget downloader"                 # dialog title
TEXT="<b>Downloads</b> in progress:"        # dialog text
ICON="emblem-downloads"                     # window icon (appears in launcher)
IMAGE="browser-download"                    # window image (appears in dialog)

#URILIST="http://proof.ovh.net/files/100Mb.dat http://speedtest.wdc01.softlayer.com/downloads/test10.zip http://cachefly.cachefly.net/100mb.test"

# Usage checks

if [[ -z "$URILIST" ]]
  then
      echo "Error: No arguments provided"
      echo "Usage: $USAGE"
      exit 1
fi

# download file and extract progress, speed and ETA from wget
# we use sed regex for this
# source: http://ubuntuforums.org/showthread.php?t=306515&page=2&p=7455412#post7455412
# modified to work with different locales and decimal point conventions
download(){
    wget  "$1" 2>&1 | sed -u \
    "s/.* \([0-9]\+%\)\ \+\([0-9,.]\+.\) \(.*\)/$2:\1\n$2:# Downloading at \2\/s, ETA \3/"
    RET_WGET="${PIPESTATUS[0]}"             # get return code of wget
    if [[ "$RET_WGET" = 0 ]]                # check return code for errors
      then
          echo "$2:100%"
          echo "$2:#Download completed."
      else
          echo "$2:#Download error."
    fi
}

# compose list of bars for yad
for URI in $URILIST; do                     # iterate through all URIs
    FILENAME="${URI##*/}"                   # extract last field of URI as filename
    YADBARS="$YADBARS --bar=$FILENAME:NORM" # add filename to the list of URIs
done

IFS=" "
COUNTER="1"
DYNAMIC_COUNTER="1"

# main
# iterate through all URIs, download them in the background and
# pipe all output simultaneously to yad
# source: http://pastebin.com/yBL2wjaY

for URI in $URILIST; do
    if [[ "$DYNAMIC_COUNTER" = "$MAXDLS" ]] # only download n files at a time
      then
          download "$URI" "$COUNTER"        # if limit reached wait until wget complete
          DYNAMIC_COUNTER="1"               # before proceeding (by not sending download() to bg)
      else
          download "$URI" "$COUNTER" &      # pass URI and URI number to download()
          DYNAMIC_COUNTER="$[$DYNAMIC_COUNTER+1]"
    fi
    COUNTER="$[$COUNTER+1]"                 # increment counter
done | yad --multi-progress --auto-kill $YADBARS --title "$TITLE" \
--text "$TEXT" --window-icon "$ICON" --image "$IMAGE"

# ↑ launch yad multi progress-bar window

And this is what it looks like:

Make sure to read through all the comments to find out how the script works and if you have any questions please don't hesitate to ask in the comments below.

Edit:

I added support for setting the maximum number of simultaneous downloads. E.g. for MAXDLS="5":


uefi boot problems when starting from dvd

im sure this can help you
https://lists.opensuse.org/opensuse-bugs/2015-10/msg02533.html
it's really old
disable secure boot in grub


Using bind9 would certainly be one way of having a private DNS server. There are a couple of others that could also fit the bill depending on what you're trying to accomplish and what sort of resources you can assign to the task. First, let's look at the questions/comments:
Q. Am I thinking correctly that in order to have my own DNS server I would need to buy an actual hardware, install bind9, configure and use it as my custom DNS?
You could buy dedicated hardware, but you don't have to. If you are running Ubuntu, then you can install bind9 on your own machine and configure Network Manager to use the local DNS.
Alternatively you could:

run a DNS server (or two) in virtual machines
run a DNS server (or two) in Docker containers
run a DNS server on a Raspberry Pi (or two)

The question really comes down to "how many devices" will be using the private DNS. If it's just your personal machine, then it may make sense to install a DNS server locally. If you want other devices on your home network to use the same DNS system, then you may want to assign the task to a computer that's always on.
Q(?). Sounds like hell of a task and would probably require the server to run all the time
It can be quite difficult if you want it to be, but there are a number of simple tools out there that can make the task much less stressful. Pi-Hole (I dislike this name, but whatever) can be set up to use FTLDNS. Not only would this give you the benefit of ad-blocking, but it would allow you to manage your own DNS. This system can be controlled through a web interface, which also makes things a heck of a lot easier for most people.
As for having a server run all the time, again, this depends on how many devices will be using the DNS service you set up. If it's just a single device, then you can get away with doing everything locally. If it's for multiple machines on a personal network, then consider taking an old computer out of retirement to be reborn as a DNS server. You don't need a lot of processing power to accomplish the task, which is why so many people use Raspberry Pi devices when hosting their own DNS in the house.
Hope this answers some of your questions.


Apache doesn't create a index.php.
So you have two options:

Create your index.php
Modify your configuration (probabily /etc/apache2/sites-available/default) to point to another folder, where there is your index.
If you want to modify your configuration you have to change DocumentRoot and the first < Directory >


How do I find out how full an lvm snapshot really is?

You can get information about data usage in a LVM-snaphot with either

sudo lvs

here I get

LV       VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
home     ubuntu owi-aos---  80,00g
homesnap ubuntu swi-a-s--- 500,00m      home   66,09
root     ubuntu -wi-ao----  20,00g
swap     ubuntu -wi-ao----   8,50g

I also could have restricted the output to just the snapshot

sudo lvs /dev/ubuntu/homesnap

or

sudo lvdisplay /dev/ubuntu/homesnap | grep "Allocated to snapshot"
Allocated to snapshot  66.09%

Keep in mind that changes may not be reflected immediately (on my system the result did not change for up to 1 minute).


Why does the host key verification fail in "connect to server" utility?

There is a file called known_hosts, typically in the user directory ~/.ssh/ - this contains the keys that ssh and other services use to authenticate remote machines that you connect to.
If the key for a particular server has been updated for example during an update of the OS then a new key for that server will be generated on that server. Since this conflicts with the stored key on your machine ssh will ask if you still trust that machine.

The first time you connect to a machine ssh will ask you if you trust that key. If you do then that key is copied to the known_hosts file for that user.

Look in the known_hosts file and remove the entry for the remote machine. Now when you connect you should be asked to accept the new key. By moving the file, you will probably have triggered the creation of a new known_hosts file for the first key that you import and will have lost the records of the other machine you may have connected to.


Can I prevent/restrict standard users from installing/uninstalling software?

You have asked a lot of similar questions.

To install software you either need to be root a special account which is locked by default or an administrator.

In 12.04 and later administrators are part of the group sudo in previous versions it was admin.

You can check what groups a user belongs to by typing id in a terminal when logged on as that user or id username replacing username with the name of that user.  On my machine I see

warren@vb:~$ id
uid=1000(warren) gid=1000(warren) groups=1000(warren),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare),125(vboxsf)
warren@vb:~$ id joe
uid=1001(joe) gid=1001(joe) groups=1001(joe)
warren@vb:~$

Which shows I warren is an administrator and joe is not.

By default the first user created on the computer is an administrator; all others are not.  To stop someone being an administrator just make sure they are not in the sudo or admin group.  To make someone an administrator add them to the sudo group.


Stuck on splash screen, does not progress to login manager

Okay turns out the [drm:intel_dp_start_link_train] *ERROR* too many voltage retries, give up from the kernel is a known bug but was a red herring and had nothing to do with my problems and from what I've seen people say it's not a problem. I think it has something to do with ASUS. I am using ASUS TaiChi 21.

Also running systemctl enable for several login managers wasn't too much of a problem as it just creates symbolic links in /etc/systemd/system

I fixed the splash screen not progressing to the login manager by changing the login manager to sddm, it was set to xdm. I did this by using a "Try ubuntu live" usb stick and modifying the file /etc/X11/default-display-manager from /usr/bin/xdm to /usr/bin/sddm.

In the process I learnt a little about how X11 and display managers work:

X11 is a network protocol. It encodes things such as graphic primitives, images, pointer motion, and key presses.
Xorg is an X server. It implements X11 and provides an interface to keyboards, mice, and video cards.
gdm, xdm, kdm sddm are all login managers (synonym display managers) They are the first X program run by the system.
When the computer boots, the shell scripts in /etc/rc2.d are run. There is a script for each login manager such as S03lightdm. This login manager script reads from /etc/X11/default-display-manager and decides whether to init the display manager based on this value.
Upon authentication the login manager calls /etc/Xsession which calls the scripts in /etc/Xsession.d/ and ~/xinitrc which then sets up your desktop environment and window manager.

So presumably there was something wrong with either the installation/config/compatibility of xdm on my computer.

Following this change I was able to see the login manager screen and was able to login but upon login it redirected me back to the login screen. This occurred due to running sudo startx which created the file ~/.Xauthority but owned by root. I finally fixed this by deleting .Xauthority and everything is back to normal!


Add a python dependency to to a snap package

I found the answer in IRC. You need to use the python3 plugin specifying the dependencies in a list

parts:
  py:
    plugin: python3
    python-packages:
      - <my-dependency>


Grub rescue prevents live cd/usb or boot menu

PROBLEM SOLVED: For Lenovo IdeaPads with EUFI support, loading bios can be tricky. One way that apparently works is by shutting down the computer and then pressing the OneKeyRecovery button (which looks like a upside-down U with an arrow and is located on the top left). That should force the laptop to enter boot manager/bios, etc. I would delete this question since it's not very applicable to a lot of people, but it might happen to someone else with a Lenovo.

The key should look like this


Will Unity be the only option during install?

Ubuntu (the stock CD) has never offered an option to install different desktops in the installer, you make that decision by selecting Ubuntu, or Kubuntu, or Xubuntu, etc.

Unity will be the default desktop if your hardware supports it. If your hardware does not support Unity, you will get the same desktop that you have today, GNOME 2.x., which is available as the "Ubuntu Classic Desktop" in the login screen. Users can also just log into the classic session if they prefer the older GNOME desktop.

For those asking if Ubuntu will ever have an option in the installer for people to choose whatever desktop they want then no, that will not be available in the default desktop cd. Of course you can use the alternate installer to preseed your install with the desktop you want or have a custom kickstart or whatever.

If someone were to make a community derivative with GNOME Shell (or one that does let the user choose) then you can find information on how to do that here.


How do I turn sound on while using XBMC in full screen mode?

If you don't have media keys on your keyboard, you can set a custom keyboard shortcut. Go to System Settings > Keyboard > Shortcuts > Sound and Media. Click on the entry to the right of Volume mute and the press the key combination you'd like for the new shortcut. There is currently a bug in the keyboard shortcuts dialog, so your shortcut might not work until you reboot.


Ubuntu has been blocked by the current security policy

I just installed Ubuntu-14.01.1 on a Dell Inspiron 15-5547 (Should be close if not the same as your 17R).

Boot in the BIOS (press F2 when the Dell logo appears after powering up), go into the "Boot" menu and change "Secure Boot Mode" to [Disabled]; F10 to "Save and Exit" and you should be able to load Ubuntu.


Is there any danger if somebody knows my administrator password and has no physical access to my PC

Yes, is the bottom line answer.
There have been a lot worse takedowns of major systems without passwords... so needless to say, with a password???
They will need, things like username, and access through services you may or may not have enabled. (ftp,ssh,http,rdp,or so on)... so it is 50/50 on that front...
But one would have to believe if someone obtains your password and wishes to enter your system, they have the key and will do so... and you should pretty much assume as much, always.


I accidentally formatted my C: drive while I was using Ubuntu

How I have successfully recovered lost files in the past
I've used Recuva successfully many times to recover files from dying/non-booting hard drives. I've never used it after a format, but apparently they support that use case https://www.ccleaner.com/recuva/features/recovery-from-damaged-or-formatted-disks
Assumptions
I assume that because you are an Ubuntu user, you are sufficiently knowledgeable to follow the Recuva tutorial in the link above. It's an easy to use tool.
Important !!!

File recovery tools like Recuva work best when you haven't tried to change/write anything to the disk after the failure.

If the failed disk has an active OS on it, do not boot from that disk. Boot from another disk. The OS on the failed disk may write to it's own disk and permanently destroy recoverable files.

When recovering, save the files to a different disk than the one you are recovering.


Upgrade to a new Ubuntu release is always provided "over the air" if your current installation is still supported, i.e. not reached its respective end of life which is usually 9 months for a non-LTS versions and 5 years for LTS versions. These updates are provided irrespective of the fact that your installation is LTS or non-LTS. It is also to be noted that the release upgrades that would be provided can be managed via /etc/update-manager/release-upgrades or Software and Updates app in Upgrades tab.

Since 18.10 is non-LTS, you need to make multiple jumps (18.10→19.04→19.10→20.04) to get 20.04 LTS version. Whenever new release is available, to update simply run:

sudo do-release-upgrade

If you want to avoid such many jumps, install latest LTS, i.e. 18.04. In case of LTS, generally upgrades to LTS are not available until first point release, i.e. YY.MM.1, which is usually released in the month of July. This is because it may happen that there are some bugs reported in the initial version. So, you might not get updates for 20.04 but directly for 20.04.1 may be in July 2020.


Default login screen missing, how to revert?

You just have to edit your /etc/lightdm/lightdm.conf file, and change this line

greeter-session=lightdm-kde-greeter

to this one

greeter-session=unity-greeter

Or simply reconfiguring the greeter (not the Desktop Manager) might work also:

sudo dpkg-reconfigure unity-greeter


Ubuntu Backup Solution to backup a networked mounted drive to the local disk, and with a gui

Just installed http://backintime.le-web.org/

It's awesome. works what how I wanted it to work, however

I haven't been able to browse a network drive yet. Gotta work out how to mount the network drive. Any suggestions?

thanks


Lubuntu Desktop icons, auto arrange and lock workaround

This is not my answer, but "Solution for Lubuntu(PCManFM):"

go to /home/USER/.config/pcmanfm/default/ or /home/USER/.config/pcmanfm/lubuntu/.

change USER with your user name

sudo nano pcmanfm.conf

go to section "[desktop]", change sort_by to sort_by=2 (if you want to sort by name)

log out -> log in

I'm not an expert, probably there is some nicer way to do that with bash script or something..but this works and it is needed to be done only once. About sorting numbers I'm not sure which one is for what and didn't find any useful info, so you'll need to discover it by yourself by playing or finding some info.

I'm not sure would something similar work for Ubuntu and nautilus.


You need to logout of your system once after step 1 and do step 2 after logging in again to see the installation worked or not.


How do I convert videos to H.265/HEVC format in Ubuntu?

The best solution so far on my system has been:

For Trusty Tahr 14.04 LTS: use an up to date FFmpeg and the most recent x265, which necessitates some compiling and subsequent packaging
For Xenial Xerus 16.04 LTS: simply run:

sudo apt-get install ffmpeg  libavcodec-extra

With either of the previous methods then use the following:

ffmpeg -i input \
   -c:v libx265 -preset slow -x265-params crf=22 \
   -c:a libmp3lame -b:a 128k \
   output.mp4

Note that this creates an mp3 audio stream as well as an h.265 video stream. To create an aac stream the line -c:a libmp3lame -b:a 128k could be replaced with the following:

-c:a aac -strict experimental -b:a 128k

The -strict experimental option will not be required if your copy of FFmpeg was released after December 2015 when development of the native aac encoder matured. Bear in mind that this option will still be required for the repository FFmpeg for Xenial Xerus 16.04 LTS.

References:

FFmpeg trac: FFmpeg and H.265 Encoding Guide
FFmpeg git: aacenc: remove the experimental flag


Graphics effects not available in 11.04 like in 10.10?

You are probably referring to the lack of a Desktop Effects tab in gnome-appearance-properties.

You still can configure desktop effects using
 compizconfig-settings-manager  in the same way, the only difference will be the fact that enabling Desktop Cube would require some extra steps.

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

Another tip: In case something goes wrong with the Compiz settings, you can reset them by running this command:

unity --replace


installing ubuntu 14.10 on usb-stick with hardware write protection

If it's a full install, it won't work (write failure).

If it's the install-USB (live CD on USB), then no problem. It was designed that way. All changes are made in ram.


System is broken (login loop and no networking) after update

Reboot and press the Shift key until the Grub menu appears.  Then scroll down to Advanced Options for Ubuntu.  Scroll down to an older kernel without upstart or recovery option and see if it will boot then.

Then you can sudo apt-get install --reinstall linux-image-generic linux-headers-generic and see if it works after a normal reboot


I agree, the colours are too similar. I hit the same problem as you: it won't find .css files in the file selector for some reason. However, I solved this by checking the "Use user-defined stylesheets" checkbox and then typing in the full path to the stylesheet into the text field.


WIFI is Diasbled by Hardware switch in Ubuntu 14.04 32 bit on HP-430 laptop

I met the same situation stated above 30 minutes ago, but in reading answers on forums, I got the answer by chance.

For this HP laptop, the original Fn + F1-F12 has been changed under Ubuntu to FN + Ctrl + F1-F12... The kids should have touched the FN + Ctrl + F11 during their gaming...

I hope this may help some people in the similar situations. And I'll be glad to hear how to change these combinations under Ubuntu or Lubuntu, or how to find complete documentation on this issue concerning different producers.


Please try the next workaround, after which and depending on your results, this answer may be deleted or improved. Thank you. I know this is not a forum but I provide this as an answer because of it works for me when setting up a WAN Game Server for Team Fortress 2 and it -indeed- does an excellent work.

First of all you need to install firestarter if haven't yet. Please drop sudo apt-get install firestarter in a terminal, provide your password and wait for the install to finish.

Next, let's run firestarter with administrative privileges by dropping gksudo firestarter in the terminal. After which we'll be asked for our user password in GUI. Then the firestarter window will appear, as shown in the next screenshot:

Let's clic the "Policy" Tab in order to add the proper ports or port lists that your game needs by right clicking on the second list (Allow service/Port/For)  and choose "Add Rule" as shown in the next screenshot:

We'll see the "Add new inbound rule" in which we'll fill the data fields with the proper values in order to allow the port's calls hit the computer's ports.

The service's ports will be added to the list, after which you can reach your game server with no difficulty.

If you are experiencing some kind of issue, you can also temporally stop the Firewall in the top side of the "Status" Tab or via Menu "Firewall" option "Stop Firewall" (Ctrl+P also does the trick). This way you can check if your router is dropping the external petitions to your computer, after which you can solve your computer's ports issue.

Please let us know how are you managing this issue in order to modify/delete this question if doesn't work for you.

Good luck!


Wrong default password during installation Ubuntu 19.10

The login prompt appears before setup is totally complete.

If you wait a few minutes some more text will appear on the console. After this the default credentials will work:

Username: ubuntu
Password: ubuntu

The default credentials are specified here. At the time of writing the text is as follows:

When prompted to log in, use "ubuntu" for the username and the password. You will be asked to change this default password after you log in.


Try Easybcd software it is free for home user and install it. open it you will see add new entry click on it go to linux tab add entry click and selcet "swap partition" in it after that click on edit boot menu select the appropriate timeout option and save setting.

if you installed ubuntu inside windows or using wubi then also use this tool and select c:\  drive with "GRUB2" booting options.

Download here:http://www.softpedia.com/get/System/OS-Enhancements/EasyBCD.shtml

after starting ubuntu please update it :- sudo apt-get update / upgrade ( try to update all security issue from update package manager )


Why does this grep for a string in all sub directories not work?

If you do:

grep -r "printf" *.c

the shell will expand *.c to all files/directories ending in .c in your current directory, if no such file/directory exists, the pattern will be treated literally (presumably you don't have nullglob set).

As you can see, your current pattern is  never going beneath the current directory as you don't have any .c file in the current directory or if there are any, they don't have printf in them, leading to the empty output.

You need to use --include to search in selective files only, and also -r to traverse recursively:

grep -r --include="*.c" "printf" .

The above will search in all .c files for the string (pattern) printf, recursively starting from the current directory.

if you want to follow all symlinks:

grep -R --include="*.c" "printf" .


You need to use -host because your giving an network with netmask for only one host. Also I think the syntax is -network 10.214.7.35/32. Also I recommend to do it with the ip command, route is a bit rusty.


From your error log, you're getting lots of "Too many open files" errors. This means you've got a process running somewhere which has lots of files open, and you have hit your 'open files limit'.
To increase the size of your open files limit, you can follow these instructions.

If you want to try and diagnose which process has so many files open at that time, you should analyse the output of lsof. This command might help narrow down which processes could be causing your problem:
lsof | awk '{ print $2 " " $1; }' | sort -rn | uniq -c | sort -rn | head -20
Reference

EDIT: If the above does not fix your problem, running:

sudo apt update
sudo apt install ubuntu-software -f

may also help


lost wireless internet connection following update and reboot

This is a known issue; see 14.04 - Network manager stopped working (among others) and the "critical" Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/libnl3/+bug/1581535 for more information.

I'm sorry you have to deal with this -- it shouldn't have happened in the first place -- but hopefully one of the workarounds will work for you, and Canonical/Ubuntu should be releasing a fix soon.


Could I use Ubuntu One to sync my calendar?

While I can't offer a solution concerning Ubuntu One, I can offer an alternative:

Rainlendar

It's unbelievably easy to install, use and configure. Additionally, it offers fully functional synchronization for many online calendar services, e.g. Google Calendar.

I'm using it since ms windows times and it never failed me. I'm using it to sync my android phone and ubuntu calendars every day. It's the best calendar application out there IMHO.


/root/Android/Sdk or any other location inside /root/ requires root privileges to access. I recommend moving your SDK to an new location within the scope of your normal user. If you do not want to do that, I suggest running Android Studio with root privileges to access your NDK directory.


Ubuntu Server 16.04 cluster with infiniband?

I am getting back to this and I finally use IPoIB for port ib0 and assign static internal ip i.e. 192.168.8.X to ib0 of each node.
Installation of the MLNX-OFED on each node is necessary and I add ib_ipoib into /etc/modules so it is loaded every time the node boots.
I also added the ip of each node to /etc/hosts. After setting up the pass-wordless ssh, I can ssh to each node and it is now done.

But not via MAAS.

Thanks again.


Bring up a terminal screen by typing terminal in the Ubuntu Dash Search.  Then run this on the commandline (the dollar sign is the command prompt you see in the terminal):

$ sudo apt install default-jre

The image you posted is giving that as a suggestion.


I was able to resolve my problem by running the following command.

  sudo apt-get install --reinstall compiz compiz-core compiz-gnome
  compiz-plugins-default compiz-plugins-main-default
  compizconfig-backend-gconf

I then installed dconf-tools

  sudo apt-get install dconf-tools

Since I was using 13.04/13.10 I ran the following command

  dconf reset -f /org/compiz/

The last command duplicates the function of

  unity-reset

As you can see everything is back:

I was forced to reset the virtual machine ( i.e. hard boot ) in order to get Unity.  The terminal window I had stop responding.  I had actually had a text editor window open and wasn't able to close that either.


2 in one convertible laptop to easel mode optimization

None that I'm aware of or could find. See https://askubuntu.com/a/572270/570692

As it says in the question, there are some Dell convertibles running 12.04, but I know Dell uses it's own proprietary drivers and background services to get their devices running.

You could write custom scripts to i.e. disable the keyboard and turn on onboard (the on-screen-keyboard). I don't know about the sensors that make windows switch automatically. Maybe you can access those via /sys/class/... if they are recognized by the kernel out of the box, but I wouldn't bet on it. You can bind your scripts to keyboard shortcuts or make a launcher.
You can make your life a lot easier, but it's a bit of work to get started.
Hope this helps.


Ubuntu is reading my thumbstick as a hard drive and its not reading my ard drive as my hard drive at all

Your HDD might be disabled in BIOS. Enter BIOS and check if your HDD is listed and enabled. If it's not enabled, enable it and place it as second in the boot priority list, leaving the first boot place to the USB (or DVD drive, depending on your source). Save and exit.


Thanks, you just confirmed the same problem I was having. I also have an Intel HD 3000 (Intel DZ68DB Motherboard). With RecordMyDesktop I could not get the video to work because of the same issue. I tried Ubuntu 13.04 (Still in development) and it works perfect. But in 12.04 and 12.10 the only way I could record was using another alternative.

For the Intel HD 3000 Series I recommend Kazam since it is working without any problems and it records very smooth without creating lag in the recorded video or what I am recording at the moment. If you like this idea then feel free to add the PPA:

sudo add-apt-repository ppa:kazam-team/unstable-series
sudo apt-get update
sudo apt-get install kazam

I choose the unstable branch (Which is not that unstable) since it is more updated. It is running very good on the HD 3000.


hash-mismatch while running " sudo apt update"

This problem is sloved by using three command :-
sudo apt clean && sudo rm -rf /var/lib/apt/lists/* && sudo apt clean &&  sudo apt update -o Acquire::CompressionTypes::Order::=gz


Is it recommended to install "LTS Hardware Enablement Stack" for Intel GMA-500 Issues?

Since nobody answered, the only way to find out was to test the "LTS Hardware Enablement Stack" and see if it works or breaks ...

I installed Raring's stack (kernal + Xorg) with the following command:

sudo apt-get install linux-generic-lts-raring xserver-xorg-lts-raring

And reboot ...

The system booted fine and almost everything worked, even some-things that didn't work before, such as brightness controls. But one major problem showed up: with every other boot, Xorg consumed a lot of CPU capacity (about %25), and the system was super slow and laggy! I don't know what was the cause, but it was either a bug in Xorg or a bug in the kernel module for Intel GMA-500 graphics.

So I thought to try Saucy's stack in hope of solving the problem, since it has a newer version of the Linux kernel. The thing is that the kernel-package of Saucy is available but not its X-stack. According to this link, it is not a good idea to use a kernel with a different X-stack but in my situation I had no other choice, so I gave it a try ... I installed Saucy's kernel with the following command, and Raring's X-stack remained:

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

And reboot ...

Everything worked fine! :) Now all the problems of my Xubuntu-12.04 installation on the Sony VAIO P with Intel GMA-500 graphics are solved without the need for any tweaking:

The screen works fine with the standard resolution and adequate performance;
External VGA port works and secondary monitors are handled fine;
Brightness controls work;
Suspend/Resume works;

Now I'm a happy Xubuntu user on my Sony VAIO P which is way more faster and responsive than the standard Windows-7 which came pre-installed on it!

Of course there is one limitation: the graphics performance on Linux is much lower than the performance on Windows. For example, I almost can't watch any kind of video format on Xubuntu, while all video files with resolutions below HD (720p) play fine in Windows ... Although this is a problem I can live with, it would be really great to sea this fixed in Ubuntu-14.04 LTS.

Finally, my general recommendation is that if practical, do a fresh installation of the latest version of Xubuntu (which currently is 13.10 Saucy). When the next LTS version is released (14.04 Trusty) perform an upgrade or again do a fresh installation. But if your situation is like mine and you can't afford a fresh installation right now, installing Suacy's kernel with Raring's X-stack can fix a lot of problems.

Update:

Since the release of the 14.04 Trusty, the most recent LTS release, it is recommended to use its HES:

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