How do you open the original file from a u1conflict file? and how do you stop it from happening again?

You can simply make a copy of the .u1conflict file and rename it. If there are more of them, then you might want to open them and see which is which. Nothing is lost. That's what the .u1conflict files are for.

This can happen if you're working directly in a synced folder with an application that automatically saves, like LibreOffice Writer. I think what happens is that while you're uploading the previous changes, LibreOffice changes your local file. That means that the file you are uploading is not the same as the local file and not the same as the file on Ubuntu One. It's not perfect, but the internet does not work in absolute time, and syncing is very difficult. I think Ubuntu One does the right thing. All collaborative tools must have a way of handling conflicts. Whether you're syncing contacts between mobile phones or working on source code in a version control system, conflicts will happen from time to time and it really needs to be handled by a human being. You really don't want the computer to judge which version of your document has the best content.

The only time I have experienced this was when working on a LO Writer document directly on a synced folder. I've stopped doing that, and now instead work on an unsynced folder and then copy the file to a synced folder. I believe you can prevent it from happening by reducing the autosave frequency or deactivating it, but I haven't tried that myself. In my case, LibreOffice Writer autosaved every two minutes, and because of bad connection, it took three minutes to upload the file. Then it makes sense that there will be lots of conflicts.

But as I said, the conflict files are plain copies of your files, so nothing is lost.


Shut down your machine
Press "Shift" button and simultaneously press "Power"...keep "Shift" button pressed.
System will open with a few options ....one of the options will be - Restore Factory settings...


How do I get Ubuntu Server to recognize and automount a hotplugged SATA drive?

On Linux, you can tell the system to rescan an individual SATA port.So to rescan the SATA3 port, just do:

echo "- - -" | sudo tee -a /sys/class/scsi_host/host2/scan

The system will scan the drive and add entries to /dev/ for the drive and its individual partitions (e.g /dev/sdb, /dev/sdb1, /dev/sdb2). Ubuntu will automount any mountable partitions under /media and put an icon on the desktop.

This is a script that may help you in scanning the board.

#!/bin/bash
export SCAN_TEMP=$(mktemp -d)
ls /dev/sd? > ${SCAN_TEMP}/before.txt
for i in /sys/class/scsi_host/host*/scan
do
  echo "- - -" >> $i
done
ls /dev/sd? > ${SCAN_TEMP}/after.txt
for i in $(diff ${SCAN_TEMP}/before.txt ${SCAN_TEMP}/after.txt | grep \> | awk -F/ '{print $NF}'); do
  echo Added /dev/$i:
  /sbin/sfdisk -uM -l /dev/$i | grep -E "^/dev/$i" | awk '{print "    "$1" "$4" MiB"}'
done
rm -rf ${SCAN_TEMP}

Source: http://www.makestuff.eu/wordpress/sata-hotplug-in-ubuntu/


Unable to disable Dropbox's autostart in Ubuntu 18.04

This is kind of hacky, but I've restarted a few times and it seems to be working.

I went to /home/[user]/.config/autostart and found the Dropbox shortcut.  I opened it and changed the command (I wanted to start it using dbus-launch, so that's what I did, but if you don't want to start Dropbox at all, I think you could just delete everything in the Command field).

Then, to prevent Dropbox from overwriting it the next time it starts, I went to the permissions for the shortcut and set it so that Nobody has permission to change content.

So far it seems to have fixed the problem.


How do I get an Alcatel X200 3g USB modem working?

OK, try to avoid Network Manager,
install and use usb-modeswitch with wvdial instead.

Edit /etc/wvdial.conf as follows:

[Dialer Defaults]
Modem = /dev/ttyUSB1
Baud = 460800
Modem Type = USB Modem
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Phone = *99#
Dial Command = ATDT
Username = INSERT DEFAULT USERNAME HERE (ask Your provider)
Password = INSERT DEFAULT PASSWORD HERE (might me the same, ask Your provider)
Stupid Mode = 1
Dial Attempts = 1

Open a terminal window or switch to another virtual console.

Run sudo wvdial to connect
and press Ctrl+C to close the connection.

If this fails you can try substituting other devices for the Modem = /dev/ttyUSB1 line, such as:

/dev/ttyUSB2
/dev/ttyUSB3
...


Why can I not see my USB connected Android device over SSH?

Why you don't see it

Mounting file systems is a privileged operation on Unix systems.  The udisks daemon is used to provide a way for non-privileged users to mount volumes (such as the USB Mass Storage service offered by your phone), but will only allow active sessions to perform the operation.

When you are logged on at the console and haven't locked the screen, you are considered to have an active session.  When you ssh into the system, this is not the case.  The idea is to only let someone with physical access to the system mount removable devices.

If you mount the phone manually, your music player should be able to access the files on it.

How to find it

Run dmesg and look for your device. It should show up as something like /dev/sdb2. "sd" for scsi disk (scsi instructions are standard for disks now), a letter for the disk (a, b, c, etc), and a number for the partition.
Or run sudo fdisk -l to get a list of your disks and partitions. You'll see it here somewhere.

Mount it manually

Once you find the device path (eg, /dev/sdb2), mount it with this command:

mount /dev/sdb2 /mnt

If you want, make a folder and mount it there instead:

mkdir ~/android
mount /dev/sdb2 ~/android


Attempting to get past proxy issues, why does setting apt.conf not work, but forcing a command through bash with export_http/https set does does?

It's your syntax in the /etc/apt/apt.conf file.

Try this:

Acquire::http::Proxy "http://address.com:port";


Firefox 35.0 on Ubuntu 14.04 LTS sets a cookie to google.com even without calling any web location

There  are two ways to avoid this cookie to be set:

In the Security tab of Firefox's Preferences uncheck "Block reported attack sites" and "Block reported web forgeries".

If one of these two options is activated, Firefox contacts Google to load lists of websites, which should be blocked and this cookie is set.

If you still want to use these options, but instead blocking only that cookie, there is the second method:

Go to the Privacy tab and change History settings in the drop down menu to "Use custom settings for history", then some options show up. See the option "Accept cookies from sites" and to the right side of that option the button "Exceptions..." - click it and a new dialog box appears. Enter "google.com" into the text area labeled "Address of website:" and click the button "Block" under that text area.

For me, both ways prevented the cookie to being set again.


Standalone Grub2 EFI installation - grub.cfg placement?

GRUB 2 binaries include hard-coded references to their configuration files. I haven't really been keeping track of all the gory details, but as I understand it, there are two EFI GRUB 2 binaries for Ubuntu on AMD64/x86-64 systems:

grub2-efi-amd64 -- This is the version of GRUB 2 that's used on computers that do not use Secure Boot. As I understand it, the binary itself is linked on your computer from pre-compiled components included in the package. The resulting binary refers to a grub.cfg file on your Linux installation's /boot/grub directory. Thus, you can't use the grubx64.efi binary installed from this package on one computer on another one, because the binary is customized for the computer on which it was created.
grub2-efi-amd64-signed -- This version of GRUB 2 is compiled and linked on a Canonical system so that it can be signed with a Secure Boot key. One side effect of the requirement that the binary be signed is that it cannot be customized for your system, and as a result, this version of grubx64.efi looks in the same directory as the binary for grub.cfg. On an Ubuntu system, this grub.cfg file searches for /boot/grub/grub.cfg, but in principle it could be customized to do something else.

Thus, in your case you can't use the unsigned GRUB 2 binary; if you want to use a stock Ubuntu GRUB 2 binary, you must use the signed one. Alternatively, you could build your own binary, as described here, among other places.

In your case, though, I don't think GRUB 2 is really optimal. Both rEFIt (which is now abandoned) and my fork of it, rEFInd, feature dynamic scanning for available boot loaders. Thus, if you install rEFIt or rEFInd to your internal disk's EFI System Partition (ESP) and put the boot loaders for your OSes on their respective removable media, rEFIt/rEFInd will provide you with options to boot those OSes if and only if the appropriate disk is plugged in. This behavior, however, will depend on proper management of your boot loaders, placing each one on the ESP of its respective disk; if your boot loaders are all stored on your internal disk's ESP, rEFIt/rEFInd will show non-functional OS options at all times, just like GRUB 2 would. In either case, using rEFIt or rEFInd will obviate the need to delve into the morass of manual GRUB 2 configuration.


Remove dead pixel from video material (not screen)

At a glance, I think you can use avidemux with a "delogo" filter. Though with the pixels far apart, you'll need multiple runs, and there might be better options.


https://wiki.ubuntu.com/EoanErmine/ReleaseNotes
Ubuntu 19.10 is supported for 9 months until July 2020.
You'll need to upgrade your ubuntu version
Upgrading from Ubuntu 19.04

To upgrade on a desktop system:

    Open the "Software & Updates" application.
    Select the 3rd Tab called "Updates".
    Set the "Notify me of a new Ubuntu version" dropdown menu to "For any new version".
    Press Alt+F2 and type in "update-manager -c -d" (without the quotes) into the command box.
    Update Manager should open up and tell you: New distribution release '19.10' is available.
        If not you can also use "/usr/lib/ubuntu-release-upgrader/check-new-release-gtk"
    Click Upgrade and follow the on-screen instructions.

To upgrade on a server system:

    Install the update-manager-core package if it is not already installed.

    Make sure the Prompt line in /etc/update-manager/release-upgrades is set to Prompt=normal.

    Launch the upgrade tool with the command do-release-upgrade.
    Follow the on-screen instructions.

Note that the server upgrade will use GNU screen and automatically re-attach in case of dropped connection problems.

There are no offline upgrade options for Ubuntu Desktop and Ubuntu Server. Please ensure you have network connectivity to one of the official mirrors or to a locally accessible mirror and follow the instructions above.

Upgrades on i386

Users of the i386 architecture will not be presented with an upgrade to Ubuntu 19.10. Support for i386 as a host architecture is dropped in 19.10.


I would expect that a 100+GB drive should be taking longer than a few seconds.  Somewhere closer to a minute would probably be more like what you should see.

A clean FS on a partition of that size should be checked in a span closer to minutes not seconds.

The answer to the question is going to vary based on a number of parameters.  How fast the drive is, how much data is on the actual filesystem, and what condition the hard disk is in are all going to lend to the speed with which a fsck is performed.


Can't connect huawei p8 liteto on ubuntu 14.04 lts

You need to enable Developer options and Media transfer Protocol on the phone.
How to
http://www.syncios.com/android/how-to-debug-huawei-ascend-phone.html


What does the Gedit Plugin called "Quick open" do and/or provide?

The 'Quick open' plugin adds a 'quick open' menu in the Gedit window under File.
It's used to quickly open files you have recently used.
Keyboard shortcut: Ctrl + Alt + O

See screenshot below.

When you click on it, you get this window with your recent files.
You can also search for the file you want.
Double click on the file you want to open it in a new tab.


How to install flash player 11 debug on Ubuntu 12.04?

So firstly install Flash-Aid firefox plugin, and use it to install stable version of Flash Player. Next download "Linux Flash Player 11.2 Plugin content debugger" from Adobe (it doesn't matter if you have 64-bit Ubuntu). Put the proper files in /usr but libflashplayer.so file use to overwrite /usr/lib/flashplugin-installer/libflashplayer.so .
But it's not all. Next install:

sudo apt-get install nspluginwrapper ia32-libs

ia32-libs is required for nspluginwrapper to work in our case, and that was part that was hard to find for me.
Next:

sudo nspluginwrapper -i
/usr/lib/flashplugin-installer/libflashplayer.so

Restart Firefox, and Flash Player 11 Debug should finally work. At least I can connect to it from IntelliJ IDEA.
I hope this will save some time for someone.
Added: #1
After process you should propably disable Flash-Aid extension, or it can overwrite your plugin.


External Display screws up stylus pen cursor position

I managed to do a workaround. Since my touchscreen is working when using my fingers, I just copy the "coordination matrix" properties of the touchscreen to my stylus pen. After doing that the stylus pen cursor position is perfect.
$ xinput
Virtual core pointer                          id=2    [master pointer  (3)]
   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
   ↳ Dell Dell Universal Receiver Mouse        id=10   [slave  pointer  (2)]
   ↳ Dell Dell Universal Receiver Consumer Control     id=11   [slave  pointer  (2)]
   ↳ ELAN0732:00 04F3:262B                     id=15   [slave  pointer  (2)]
   ↳ SynPS/2 Synaptics TouchPad                id=18   [slave  pointer  (2)]
   ↳ ELAN0732:00 04F3:262B Pen (0)             id=22   [slave  pointer  (2)]

id=15 is my touchscreen and
id=22 is my stylus pen
First check out their properties:
xinput --list-props 15
    Device 'ELAN0732:00 04F3:262B':
    Device Enabled (147):   1
    Coordinate Transformation Matrix (149): 1.000000, 0.000000, 0.000000, 0.000000, 0.500000, 0.500000, 0.000000, 0.000000, 1.000000
    libinput Calibration Matrix (304):      1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Calibration Matrix Default (305):      1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Send Events Modes Available (269):     1, 0
    libinput Send Events Mode Enabled (270):        0, 0
    libinput Send Events Mode Enabled Default (271):        0, 0
    Device Node (272):      "/dev/input/event8"
    Device Product ID (273):        1267, 9771

xinput --list-props 22:
    'ELAN0732:00 04F3:262B Pen (0)':
    Device Enabled (147):   1
    Coordinate Transformation Matrix (149): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Node (272):  "/dev/input/event17"
    Device Product ID (273):    1267, 9771
    libinput Tablet Tool Pressurecurve (579):   0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000, 1.000000*

As the touchscreen is working perfectly, I assumed its properties to be wright. The "Coordinate Transformation Matrix" differed between the two. (I also checked when unplugging the external screen - these scores were equal)
Then I just set the Coordinate Transformation Matrix Settings from the touchscreen to my stylus:
Solution for the external screen being on top of my Notebook-Screen:
xinput --set-prop 22 "Coordinate Transformation Matrix" 1.000000, 0.000000, 0.000000, 0.000000, 0.500000, 0.500000, 0.000000, 0.000000, 1.000000

General solution for all positions of the external screen:
First saving the correct numbers to an object I called 'correct_matrix':
correct_matrix=$(xinput --list-props {insert id of your touchscreen} | grep "Coordinate Transformation Matrix" | sed -E 's/.*Coordinate Transformation Matrix.*:(.*)$/\1/')

If you want check what is in correct_matrix with $ echo $correct_matrix
Then set the stylus matrix settings to the numbers in 'correct_matrix':
xinput --set-prop {insert id of your stylus} "Coordinate Transformation Matrix" $correct_matrix

That works fine for me. I just made a small shell script out of these two commands, which I run whenever I connect an external monitor or change position settings of the external monitor.
Shell script:
#!/bin/bash
correct_matrix=$(xinput --list-props {insert id of your touchscreen} | grep "Coordinate Transformation Matrix" | sed -E 's/.*Coordinate Transformation Matrix.*:(.*)$/\1/')
xinput --set-prop {insert id of your stylus} "Coordinate Transformation Matrix" $correct_matrix

I put this into a 'stylus-correct.sh' shell file, which I can then run with
bash ./stylus-correct.sh

That solves the issue for me very quickly. Whenever I connect a new screen I just go to the directory of this shell file and run it with the given command.


How can I customize fonts and backgrounds for gnome-terminal?

gnome-terminal is extensively customizable. Go to Edit...Profile Preferences, and you can change the following:

Fonts

Colors

Backgrounds (color, transparency and even a "wallpaper")

As for saving and setting custom themes, they're just called Profiles here. You can save, switch and set the default from Edit...Profiles:


Preserve files in /tmp using systemd in 15.04

You need this:

x /tmp/foo - - - - -

But note this:

Note that lines of this type do not influence the effect of r or R lines.

man page:

r

Remove a file or directory if it exists. This may not be used to
remove non-empty directories, use R for that. Lines of this type
accept shell-style globs in place of normal path names. Does not
follow symlinks.

R

Recursively remove a path and all its subdirectories (if it is a
directory). Lines of this type accept shell-style globs in place of
normal path names. Does not follow symlinks.

x

Ignore a path during cleaning. Use this type to exclude paths from
clean-up as controlled with the Age parameter. Note that lines of this
type do not influence the effect of r or R lines. Lines of this type
accept shell-style globs in place of normal path names.

The configuration format is one line per path containing type, path,
mode, ownership, age, and argument fields:

     #Type Path        Mode UID  GID  Age Argument
     d    /run/user   0755 root root 10d -
     L    /tmp/foobar -    -    -    -   /dev/null

Fields may be enclosed within quotes and contain C-style escapes.

Source


Disclaimer:  I haven't read this Hiroku guide, but I have lots of normal local websites on my local Ubuntu server, which is adapted from a standard Ubuntu 10.04 LTS.

There is a directory with all the apache configuration in /etc/apache2. In this directory, there are 4 subdirectories, two for sites and two for modules; each has one for everything available, and one for just the ones that are enabled.  These are named:

sites-available   sites-enabled
mods-available    mods-enabled

What you want to look in is sites-enabled.  In this folder, I think there should be a default file called 000-default.

In this file, there can be a number of entries for "VirtualHost"  I believe there is only one by default, that sets up the main web directory for apache.  Many people just add directories under this one, and access them by adding directories to the URL.  But you can add any number of virtual hosts, in any directories you want.

For example, say you have a domain called abc.com, and you want to work on it locally.  You can make an alias in the hosts file of your local workstation that you use for development (that's in /etc/hosts) for abc.com (temporarily, as this will preempt the external abc.com) to redirect it to the server (either by name or IP, or using localhost if it's on the same system).

The magic happens in apache's 000-default file, where it will look for a VirtualHost called abc.com.

So, say you have a website in a directory /var/www/abc.com; then you would add something like this to the apache file:

<VirtualHost *:80>
    <Directory /var/www/abc.com>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    DocumentRoot /var/www/abc.com/
    ServerName abc.com
</VirtualHost>

If you want to work on a local file, and a remote file, without editing localhost, you can rename the local one to something like abc.dev, put this in localhost, and change the apache file from abc.com to abc.dev.  Then it will always be available by simply entering http://abc.dev to the address bar of your browser (or just abc.dev).

If you aren't familiar with the hosts file and need help, let me know, but it's fairly straightforward, and I don't want to waste too much time with things you may already know.

I hope my explanation has been helpful, but if not, feel free to ask for elaboration.


This works for me on Ubuntu 18.04

Disable the NTP server

sudo timedatectl set-ntp false
sudo timedatectl set-time "2019-12-30 $(date +%R:%S)"

The result.

emmet@ansmachine:~$ date
Mon Des 30 05:08:21 CET 2019
emmet@ansmachine:~$ date
Mon Des 30 05:08:22 CET 2019
emmet@ansmachine:~$ date
Mon Des 30 05:08:23 CET 2019

If you want to go back to original dates (pre-changes), just enable the NTP once again.

sudo timedatectl set-ntp true


Two finger scrolling not working on ASUS UX303LN

You have a Focaltech touchpad and the driver from my ppa should work.

But it looks like I made a small mistake and did not add dependency of linux-generic-lts-vivid in the last version for trusty.

The driver did not install for your current kernel.

You need to run

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

and reboot. That will upgrade your kernel and the driver will work.

I fixed that issue in ppa. Now it will force to install linux-generic-lts-vivid for Ubuntu 14.04.

Now version 1.5~trusty1 is building. It will be the last version in that ppa, because this driver is in kernel 4.0 and with my finger width patch in 4.2.

Focaltech touchpads will work in Ubuntu 15.10 out of the box.


Executing an executable with GTK2 requirement on Ubuntu 18.04

Just tested on clean Ubuntu 18.04 LTS.
Simply downloaded and extracted the software

cd ~/Downloads
wget https://www.scarabee-software.net/download/Siren_314_gnulinux_amd64.tar.gz
tar -xf Siren_314_gnulinux_amd64.tar.gz
cd Siren
./siren

Then got the following error about missed obsolete libng12:

  $ ./siren
     ./siren: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

So we need to download and install this library manually from Ubuntu 16.04 LTS:

wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

then it comlains about missed canberra-gtk-module

  $ ./siren
  Gtk-Message: 19:16:12.501: Failed to load module "canberra-gtk-module"

so we need to install it

sudo apt-get install libcanberra-gtk-module

and finally

$ ./siren

Note: Siren will work normally on Ubuntu 14.04 LTS and 16.04 LTS as they have libpng12 preinstalled.


To enable php5-mcrypt in apache do

sudo php5enmod mcrypt
sudo service apache2 restart


You could use bash exit codes.

Pseudocode

if $? == 0 then successful else ....


Good specialized Xml editor for kml editing or plugin for gedit

I recommend the XML Copy Editor, available as xmlcopyeditor from the Software Centre.

It does both syntax highlighting and document validation.


Installing Ubuntu 17.04 on FS Esprimo Mobile V5535 (Graphics card problem)

The SiS graphics adapter installed in that laptop is obsolete. It is not supported by modern Xorg drivers because of hardware limitations.

I have this laptop. You can't use any modern OS on it including Windows. The last Windows version that works with normal screen resolution is Vista.

So there is no way to get a proper screen resolution on this laptop with any new Ubuntu release. The last one that worked was 12.04.2, or 12.04.1.

You can use 12.04, or use this laptop as a server, router, etc. with a new version of Ubuntu.


Gnome screenshot in Ubuntu 20 v Ubuntu 16

Sadly there's no way to simulate the old behavior of GNOME screenshot, since that dialog you are mentioning is now displayed only when you invoke GNOME screenshot in interactive mode (using an icon from the Accessories menu or by typing gnome-screenshot -i). Then you have first to select what do you want to make screenshot of (whole screen, window, selected area), and then after you click "Take screenshot" the dialog appears asking what to do with the screenshot.
In all other modes (ie, directly taking the screenshot of whole screen as invoked by PrtSc - gnome-screenshot command without parameters, or a window as invoked by Alt-PrtSc - gnome-screenshot -w) the screenshot is immediately saved to ~/Pictures folder, skipping that dialog. You can add a -c parameter to the command, causing the screenshot to be copied to clipboard instead of saved (the same can be achieved with pressing additionally Ctrl with PrtSc or Alt+PrtSc), or a -f parameter causing it to be saved to explicitly named file, but there is no parameter to invoke that dialog after taking the screenshot. I don't know why they did this...
Someone suggested installing MATE screenshot tool and modifying the keyboard shortcuts to invoke it with appropriate parameters when pressing PrtSc or Alt+PrtSc. MATE screenshot behaves like the old GNOME screenshot, ie. displays the dialog you want. But I haven't tested this, and I don't know how much of MATE desktop will the tool pull in as dependencies when you try to install it.


How to find and replace a string including wildcards in LibreOffice Calc?

Open the Search-and-replace dialog and check "Regular expressions". Then search for \[\d+\]. This will search for the literal [, followed by one or more digits (\d), followed by the literal ].

The backslashes are necessary to escape the [ and ] which would otherwise be interpreted as part of the regular expression.


What is Knowledge Base in Ubuntu Advantage support package?

Check this link, this will help you.

Find the details from the above link

Knowledge Base

Ubuntu Advantage customers have exclusive access to the Canonical Knowledge Base. This gives you access to technical articles written and audited by Canonical’s GSS senior engineers. The database provides you with a library of technical articles to solve common issues immediately without having to log a support case.

Key benefits

Immediacy

The Knowledge Base helps you find solutions to your problems faster by giving you a central repository and a single reference point for tried-and-tested solutions to common issues. Solution categories include technical articles on security, migration and networking.

Best practices

Our Knowledge Base and training courses help you reduce potential issues so you can run your Ubuntu systems according to best practices. We provide easy-to-follow guidelines to support you in the process of configuring and implementing specific workloads on Ubuntu.

Skills transfer

Quickly gain the skills necessary to confidently use and manage Ubuntu in your business so that you can see a quick return on your investment. The Ubuntu Certified Professional course will help you efficiently install and configure Ubuntu systems, maintain system security and configure network connectivity and key network services.

Support systems

When you experience an issue, your first course of action should be to consult the Knowledge Base through the support portal. The Knowledge Base contains a range of documentation detailing issues and solutions that have
been experienced by other users.

If there is no appropriate solution, you can either enter the problem through the support portal ticketing system, or you can telephone GSS directly. Severity level 1 and level 2 issues should be reported by phone.

Support Tier 1

Initial calls are handled by Tier 1 engineers who have been trained to handle basic configuration or usage issues. The engineer’s first task is to verify the nature of the issue and the severity level of the problem. Having done so, they will work with you to undertake basic debugging and deliver an appropriate resolution.
If the problem is beyond this tier’s capability, it is escalated to the second tier.

Support Tier 2

Tier 2 engineers have extensive Ubuntu experience and may be specialists in a particular domain of knowledge. Aside from escalated issues, this tier deals with complex problems where there are a range of subsystems involved. The engineer will work to recreate a complex problem and isolate it into a repeatable test case. In general, issues that involve advanced configuration are resolved at this level. Any resolved issue is then added to the Knowledge Base so you and other users will be able to resolve it in the future.

Support Tier 3

An issue that moves through to the Tier 3 group has been isolated to a repeatable test case. The third tier works on any code changes that are necessary to resolve the problem for you. This generally involves developing and testing a custom patch for you and delivering this as a customer package. If this is successful, the engineer will work with the distribution developers to integrate the package into future releases of Ubuntu.

Hope this might be useful.


How to force "A system restart is needed to complete the update process" message in KDE Plasma to be displayed?

To trigger the "A system restart is needed to complete the update process" notification you should update the timestamp of /var/lib/update-notifier/dpkg-run-stamp file:

sudo touch /var/lib/update-notifier/dpkg-run-stamp

Notification will be shown only if /var/run/reboot-required file exists.

You can run it periodically (e.g. once a day) to ensure it's shown to a desktop user so they do not forget to reboot the system.


Using the GNOME extension called Hide Top Bar.

Configure the extension in your Firefox or with Tweak Tool


Ubuntu 18.04 internet connection not working (using VMWare Fusion)

Got it working by browsing through multiple threads.
EDIT : Please check if your network is in bridged mode or not if you are using VMWare/ VirtualBox before following the steps below. Enabling bridge mode and restarting guest OS can resolve the issue.
First check if your network is disabled by using the following cmd  in terminal:
sudo lshw -C network

If it shows disabled after the name of your adapter ( note down the logical name for later use)
  *-network DISABLED
       description: Ethernet interface
       product: 82545EM Gigabit Ethernet Controller (Copper)
       vendor: Intel Corporation
       physical id: 1
       bus info: pci@0000:02:01.0
       logical name: ens33

All we need to do is enable the adapter, so lets get started.
open up your interfaces file by using the following cmd:
sudo gedit /etc/network/interfaces

My file had the following data written:
auto lo
iface lo loopback

But the logical name of my NIC was ens33 ( not lo), so i changed it to read the following and saved the file.
auto ens33
iface ens33 inet dhcp

Now time to restart the networking service .
sudo /etc/init.d/networking restart

check if network is back up, it shouldn't have that disabled tag anymore.
sudo lshw -C network

Enjoy your internet :)


Qt compatibility with GTK themes (Qbittorrent)?

Try installing qt4-qtconfig:

sudo apt-get install qt4-qtconfig

Then run it by typing:

qtconfig-qt4

Click on the "Appearance" tab.

Choose GTK+ in the "GUI Style" dropdown.

Choose "File -> Save".

Profit

Explanation: The GTK+ style uses the GTK+ engine to render all qt components.


Here is a solution:

sudo echo options psmouse proto=exps > /etc/modprobe.d/psmouse.modprobe

Then, reboot.

From here


Is it possible to make a dynamically allocated partition for Ubuntu?

This is not how partitions work in general - expanding Ubuntu partition is an operation which would require shrinking Windows partition, which may involve moving around files inside the NTFS filesystem on that partition so the whole process is quite involved.

There was that project which name escapes me which allowed to boot Ubuntu from a file on Windows' filesystem - this allowed to avoid doing any partitoning at all. Unlink VirtualBox you were able to boot into Ubuntu "for real". Unfortunately, the support for this installation method has been removed from Ubuntu for a while.

But you still can resize the partitions manually when you run out of space.


After installing Ubuntu 20.04 the wifi card Ralink RT3090 does not see any wifi networks

Found the answer in this thread. Seems the kernel module for this WiFi chipset is available but not loaded in Ubuntu 20.04. Load it and set it to load on boot using these commands:

echo "options rt2800pci  nohwcrypt=1" | sudo tee /etc/modprobe.d/rt2800pci.conf
sudo modprobe -rfv rt2800pci
sudo modprobe -v rt2800pci


The same thing happened to me, and to make matters that much more upsetting, the person who deleted my installation, my girlfriend, was present for the installation and said she understood what you must do at each prompt.  After wiping out my installation, she then said she only did what the computer told her to do.

We now have a strict rule she is not to use my Chromebook, AT ALL.  An exception will be made if or when I get done printing labels spelling out exactly what to do at each prompt.  The first label will read "STOP!  Do not do what the computer tells you!"

So, just to be clear, your installation is COMPLETELY GONE.  There is no getting it back.  Please address your complaints to Google for posting instructions on each screen of developer mode which instruct no-nothing-novices to wipe out custom installations.


You can achieve this with a little utility. xcape is included in the Ubuntu software repositories and can be installed using

sudo apt install xcape

To bind pressing and releasing the Super key to a custom action:

1) Disable the binding of Super to "Show activities"

gsettings set org.gnome.mutter overlay-key ''

2) Assign a custom hotkey to your command, e.g. Super+Space.

3) Use xcape to redirect pressing and releasing super to your custom hotkey

xcape -e "Super_L=Super_L|space"

Include this command in your startup programs. If it does not work reliably as such, then include a small delay before leading as in:

sh -c 'sleep 1 ; xcape -e "Super_L=Super_L|space"'


starter looses symbol when added to the unity launcher

The icon that appears in the launcher is controlled by the .desktop file, mime type application/x-desktop, for that application.

In a .desktop there is a line item starting with "Icon=". that is where the location of the icon goes. Those desktop files are what you drag into the launcher.

By starter I can only assume you are actually talking about a .desktop file. Unfortunately the treatment of these .desktop files in Nautilus makes them difficult to edit. The displayed name isn't the actual file name and no editor is offered as an option to open the file.

What you need to do is use a terminal window and cd to the folder with the .desktop file. The system keeps them in /usr/share/applications but I suggest you keep any you've changed in ~/.local/share/applications. Do an ls in the folder and you'll see the .desktop files listed with the file names you'll need to edit them, for example on the CLI gedit file.desktop.

When you add your edited .desktop file to the launcher open the folder containing it and drag the file to the launcher. The .desktop files Nautilus shows in your .local folder may or may not be displayed as the application icon but as a generic text file with a .desktop name.

This is the process that works for me.


How do I get wifi to work? HP Pavilion x360

I don't run Ubuntu (Fedora) but had the same problem (wifi not switching on) on an HP PAV x360 and also had the same symptoms, namely:

1: acer-wireless: Wireless LAN
Soft blocked: yes

You need to blacklist the acer_wmi module (it never should have been loaded!)

[root@localhost ]# lsmod | grep acer

Edit (or create if it doesn't exist) /etc/modprobe.d/blacklist.conf

Add the following lines

# Disable acer_wmi as it breaks wifi on this model
blacklist acer_wmi

Now unload the module (it will be blacklisted on the next boot so you only need to unload once)

[root@localhost ]# modprobe -r acer_wmi

Enjoy your working wifi!

Thanks to the smart and kind folk at:

http://forums.linuxmint.com/viewtopic.php?f=53&t=204162
https://sites.google.com/site/easylinuxtipsproject/internet#TOC-Turn-the-kernel-module-acer_wmi-off-or-on


Se necesita mas detalle

Algo que vi que tal vez te ayude es que entraste sudo apt remove sin dar el nombre del paquete/programacion/biblioteca que quieres remover. Cual es el proposito de lo que haces? Si quieres eliminar paquetes que ya no sirven, usa sudo apt autoremove. Por favor, clarifica tu cuestion...

Si el paquete este roto

Hay un articulo aqui que se trata de o reparar o remover paquetes rotos aqui:
How to remove an incomplete package by using apt-get? [closed]. Aunque se trata de usar apt-get en vez de apt, la informacion se puede usar a tu favor...

Needs more detail

Something that I saw is that you entered sudo apt remove without giving the name of the package/program/library you want to remove. What is it exactly that you are trying to accomplish here? If you want to remove packages that don't work anymore, use sudo apt autoremove. Please clarify the situation.

If the package is broken

There is an article here that talks about repairing or removing broken packages here: How to remove an incomplete package by using apt-get? [closed]. Even though it uses apt-get instead of apt, this information is still pretty useful.


Where can I find my saved wifi passwords on 14.04?

Click on the wifi icon in the menu bar and choose edit connections. Select the network you wish from the list and press edit. Go to the 'Wi-Fi security' tab, and there's an option Show password

And if you want to do this from the terminal type this in:

sudo gedit /etc/NetworkManager/system-connections/the-name-of-your-network, and it will be under an entry psk. Obviously put the name of your network under the-name-of-your-network. To make it easier, you can press tab twice after typing in sudo gedit /etc/NetworkManager/system-connections/ and you will see the available files, one of which will be your network.


Wired connection not working Ubuntu 12.04

I encountered the same problem after upgrading to 12.04.

The following solution worked for me:

Open this file in a text editor as root:

gksu gedit /etc/network/interfaces

Add these lines to the file:

auto eth0
iface eth0 inet dhcp

Save the file and quit the text editor.
Now restart the network:

How to restart the networking service?


Set up apache2 authentication but not for some page

I know maybe not exactly what you asked but it does more or less what you want:

You could instead use a redirect in
/var/www/HTML/index.php

Like

<?php
header ("Location: /save/index.php");
?>

which leads to a subfolder like e.g.
/var/www/html/save/index.php.
And than require password only for this subfolder

<Directory "/var/www/html/save">
  AuthType Basic
  AuthName  "Restricted Content"
  AuthUserFile /etc/apache2/.htpasswd
  Require valid-user
</Directory>

Note: Make sure you only have /var/www/html/index.php and no var/www/html/index.html.

And of course if your mainpage does not use php at all it may also redirect to html

<?php
header("Location: /save/index.html");
?>


How to set a keyboard shortcut to activate an existing Internet connection

Please read the whole thing before modifying anything. Ask away if you have doubts with some step.

Approach 1: Using nmcli

Open Keyboard and add a custom shortcut. For the command type nmcli nm enable true, that will activate the Network Manager (if your network is set to Automatic it should connect immediately). If you want a shortcut for disconnecting, the command would be nmcli nm enable false.

For more information about nmcli and other ways to accomplish what you want, read man nmcli.

Approach 2: Using /etc/network/interfaces

If you'd rather activating/configuring your internet connection manually, you can skip Network Manager and configure the file /etc/network/interfaces to your needs.

First disconnect from the internet and disable Network Manager:

sudo stop network-manager
echo "manual" | sudo tee /etc/init/network-manager.override

Open /etc/network/interfaces in an editor:

sudo gedit /etc/network/interfaces

and add the following:

# The wireless network interface
iface wlan0 inet dhcp
  wpa-ssid  wireless_network_name
  wpa-psk   wireless_passphrase

(I am assuming you are dealing with a wireless connection, please do clarify if I'm wrong. I'm also assuming you only have one wireless card.)

Now to make sure it is not so easy to see your passphrase:

sudo chmod 600 /etc/network/interfaces

Modify your sudoers file so you can run ifup and ifdown without password

sudo visudo

type i, go to the last line (with the arrow keys) and type

your_username  ALL=(ALL) NOPASSWD: /sbin/ifup wlan0, /sbin/ifdown wlan0

type Esc and then type :wq.

Now test it by running sudo ifup wlan0. Try opening a web page on the browser.

If that worked, now all you need to do is create a shortcut, so open Keyboard and add a custom shortcut. For the command type sudo ifup wlan0.

You might also want to create a shortcut to disconnect. For that the command would be sudo ifdown wlan0.

If you want to reactivate Network Manager, you must first delete/comment the lines you added to /etc/network/interfaces. Then run:

sudo rm /etc/init/network-manager.override
sudo start network-manager

Remark:

If you are up to it, you can install gksu and for the shortcut command use gksudo ifup wlan0. This way you can skip the editing of the sudoers file (which I wouldn't recommend if you are in unfamiliar territory). With this method you would have to type your password, though.

References

Arstechnica: Howto deal with Network Manager completely from the command line
Ubuntu Help: NetworkManager


Gnome automatically installs when installing OpenBox

Looks like lightdm is responsible for installing Gnome.


Nvidia graphic driver 1650 is not recognized

I personally solved this after 1 week by install third party software during installation.
This way my nvidia was automatically detected and installed properly. Actual Kernel isn't supporting every Nvidia model.
I have Nvidia GTX 1050 for notebooks. I am using power saving mode / INTEL /, of course can be switched in Nvidia x server settings.


Apache do not redirect correctly. Two similar projects, but different redirect

Been a while since I setup a vhost in Apache, but I think it should be more along the lines of

<VirtualHost *:80>
DocumentRoot /home/awesomeUser/dirForWork/projForWor
ServerName test.localistic
 <Directory /home/awesomeUser/dirForWork/projForWor>
 Require all granted
 </Directory>
 </VirtualHost>

Edit

I don't think you need the "" in DocumentRoot and Directory

Also, did you remember to add index.php before index.html in

 sudo nano /etc/apache2/mods-enabled/dir.conf

You could also add the vhost settings in my answer into /etc/apache2/sites-available and then symlink it to sites enabled, reload Apache and should work.

So as example, add my answer to a file (call whatever), but for sake of example we will call it work.conf

Then

 sudo a2ensite work.conf

And then

 sudo service apache2 reload

Final Edit

I don't use xampp, I just have a regular LAMP install.  I added my above answer (but tweaked to match my home directory) to /etc/apache2/sites-available/geoffmcc.conf

And then did

 sudo a2ensite geoffmcc.conf

 sudo service apache2 reload

Tweaked my domain name to accept and as you can see vhost works

vhost

As opposed to the default site

default


Ubuntu Touch/Phone sim card contacts import

I have not been able to import contacts from my sim-card to the bq ubuntu phone, but you may work around this issue by:

synchronizing contacts on your sim-card and android phone with google mail,
adding a google account to the bq ubuntu phone through the menu: \system settings\accounts,
allowing the account to access the google contacts list and synchronizing with the bq ubuntu phone.

All your contacts are then available in the bq ubuntu phone contacts list


You have to install perl first on Ubuntu

please execute the command

apt-get install -y perl

If it is installed give try to run

& perl script.pl


Has anyone installed 16.04 LTS on NUC6i5SYH or NUC5i5RYH and it worked OTB?

I use Lubuntu (14.04 and 15.10) on a NUC5i7RYH with an M.2 SSD and it works like a charm. No issues at all, and it runs lightning fast! I haven't installed the 16.04 yet, but I am sure it won't do worse.


Cannot start Libreoffice on Ubuntu 17.10

I had the same problem, but I could solve just removing the libreoffice, after that I've done #sudo apt-get autoremove -f, and then #sudo apt-get update; #sudo apt-get upgrade; and reinstall the libre! It's solved for me!


Making it unable to open MozillaFirefox with safe mode

You could try this

Enter about:config into the Firefox location bar
Search for the preference named toolkit.startup.max_resumed_crashes.
Double-click it and change its value '-1'.

If you check this you can take a look on:

 // check whether safe mode is necessary
855   int32_t maxResumedCrashes = -1;
856   rv = Preferences::GetInt(kPrefMaxResumedCrashes, &maxResumedCrashes);
857   NS_ENSURE_SUCCESS(rv, NS_OK);
858
859   int32_t recentCrashes = 0;
860   Preferences::GetInt(kPrefRecentCrashes, &recentCrashes);
861   mIsSafeModeNecessary = (recentCrashes > maxResumedCrashes && maxResumedCrashes != -1);


How does one mount UNC root? (SMB / CIFS)

Just as a side note: Every time someone on earth creates a smb / samba share of the root directory of a machine a Network Administrator in heaven loses his wings.

  I've tried mount -t cifs "//"

Your syntax is wrong, it's incomplete, and you can't designate a share on the server as "/".

[1] Go to the server and create a share of "/" if that is what you truly want to do but name the share ... I don't know ... how about "root"

[2] Create a mount point on the client to mount the share - let's say /home/agnes/servername

[3] Then mount with a command that looks something like this:

sudo mount -t cifs //servername/root /home/agnes/servername -o some-list-of-options

Will it do everything you want it to do in your original post? I have no idea.

You can also go old school I guess and use smbclient:

smbclient //servername/root

You will end up with the prompt:

  smb: >

If you enter help you will see the list of commands at your disposal:

  ?              allinfo        altname        archive        backup
  blocksize      cancel         case_sensitive cd             chmod
  chown          close          del            deltree        dir
  du             echo           exit           get            getfacl
  geteas         hardlink       help           history        iosize
  lcd            link           lock           lowercase      ls
  l              mask           md             mget           mkdir
  more           mput           newer          notify         open
  posix          posix_encrypt  posix_open     posix_mkdir
  posix_rmdir     posix_unlink   posix_whoami   print          prompt
  put             pwd            q              queue          quit
  readlink        rd             recurse        reget          rename
  reput           rm             rmdir          showacls       setea
  setmode         scopy          stat           symlink        tar
  tarmode         timeout        translate      unlock         volume
  vuid            wdel           logon          listconnect
  showconnect    tcon            tdis           tid            logoff
  ..


After crash I'm unable to arrange combined displays and trackpad settings are not visible

I found the problem being that both libinput and the synaptics drivers were present. I've deleted synaptics driver as it's legacy and got libinput instead:

sudo apt install libinput-bin & xserver-xorg-input-libinput

which leaves me with quite an empty mouse/trackpad pane in system settings. The only options there are the choices of either using the left or right button for the primary click.

Current mouse/trackpad settings can be set with gpointing-device-settings or in /usr/share/X11/xorg.conf.d/60-libinput.conf.

As for the problem with the display, a reinstall of the nVidia driver

sudo apt install --reinstall nvidia-340

and a reboot made the screens work together again.


Unmounting a external hard drive which has Ubuntu installed on it

Prior to powering off your computer, you must properly shutdown your computer from the power menu, or you will potentially corrupt your file system (it's no longer clean).

Lets first check your file system for errors.

For 17.10 or lower...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

For 18.04 or higher...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


You can use Touchpad Indicator to assign a hotkey to enable and disable touchpad.

You can install Touchpad Indicator by downloading this installation package. If there is some dependency issue, you can install python-pyudev as

  sudo apt-get install python-pyudev

Or,

You can install it via ppa as follows.

  sudo add-apt-repository ppa:atareao/atareao
  sudo apt-get update
  sudo apt-get install touchpad-indicator


Skipping acquire of configured file in ubuntu 20.04 LTS

The definition for your apt.postgresql.org repo is defined in one of two possible places. Let's find it...

In terminal...

sudo grep -i postgresql /etc/apt/sources.list

or

sudo grep -i postgresql /etc/apt/sources.list.d/*.list

You'll get a hit on one of the above commands.

Let's edit the file...

sudo -H gedit /etc/apt/sources.list (ignore any warning messages)

or

sudo -H gedit /etc/apt/sources.list.d/found_filename.list (ignore any warning messages)

Find the line that starts with...

deb https://blah blah blah

And change it to...

deb [arch=amd64] https://blah blah blah

Save the file and quit the editor.

Now sudo apt-get update and sudo apt-get upgrade will run without the noise.


Instead of editing the py file, you would simply call the simpleRun.py with the argument:

python simpleRun.py -mf /home/lai/Downloads/influence_matrix_file/hprd_inf_.mat

or

python simpleRun.py --infmat_file=/home/lai/Downloads/influence_matrix_file/hprd_inf_.mat


Permission denied when changing swappiness

What you want it not possible. Your Virtual private server (VPS) does not allow this (OpenVZ (probably the most popular?), Solaris Containers and LXC are 3 examples of such systems).

Basically there is one server that is divided up into containers of which you use one. Changing swappiness would change it for all containers so you are not allowed to change it. It is set by the provider.

On a side note: changing swappiness on a VPS is not going to solve any problem you believe to have. On a VPS like OpenVZ swap is the same as RAM (and I expect it to be the same on any VPS). So your problem is solved by adding RAM.


Computer does not support booting to a NVMe SSD

You will need to install Ubuntu to the NVMe drive, but install grub to the boot sector of the SATA drive. Then you should boot from the SATA drive with the NVMe as the main storage medium while running Ubuntu.

You likely will also need to have the /boot partition with the kernel and initrd on the SATA drive, in case grub also cannot not see the NVMe as storage.


You can use a chroot from a live cd to install a package from a non-bootable/no network system. Follow this guide up to step six (do step six, but NOT 7).  I know the guide is for rearing grub but the chroot process is what we are interested in.

Once you have done that, you should be able to just do a sudo apt-get install dnsmasq
and reboot.


Have I been hacked? If not what is happening?

You are not hacked based on the information in your question and comments dialog.

It only happens when you close the lid: This indicates some correlations to closing some interference or keys being stuck when closing the lid as a trigger.
Guest account access: I don't think it's possible for remote access to create a Guest account login.
GUI Access: If someone really had access to hack into your system, it's almost totally unlikely they would do it via a Guest GUI that you could watch.  They would do it through some more covert method.  If they needed GUI, they would send it to their screen, not to yours.
Criterion for Remote Desktop: Based on your description of this happening on a brand new default installation, the Remove Desktop wouldn't be activated by default.  You would have to manually activate it.
Public IP access: Even if you activated the remote desktop feature, since most networks have a router for networking, a person couldn't connect to your remote desktop port without a manual port forwarding configuration of your router.


Ubuntu 14.04 GPU passthrough problem with IOMMU

You also have to own a compatible motherboard.

Did you enable VT-x and VT-d in your bios?

Did you blacklist your card's kernel driver in /etc/modprobe.d/blacklist.conf? If not, append blacklist nouveau to the end of the file.

Double-check your /etc/initramfs-tools/modules, /etc/default/grub, /etc/modules, and /etc/vfio-pci#.cfg files. (Making sure to run update-grub and update-initramfs -u)

Make sure your card id is claimed by stub with:
dmesg | grep pci-stub


Scary LSD trip ? hmm...sounds like 13.10...
back up your home directory, wipe the ubuntu partitions and reinstall the version you had before from scratch. There is no faster method.


Ubuntu 20.04 LTS Desktop 64-bit - HDMI output can be selected but there is no sound output

I had a similar problem.
If you use the Ubuntu 20.04 tool to Test the speakers don't rely on that. Sometimes doesn't work.
Better play a video with a program like VLC. Ideally don't use the browser with youtube as sound may be muted for certain windows. Check your settings and that things like system Sounds are not muted.

Also when my monitor entered powersave I was losing the Audio, so to make it work I was restarting it with:
pulseaudio -k

I explained how I made it work in my blog:
https://blog.carlesmateo.com/2020/10/13/fixing-problems-with-audio-not-sounding-after-upgrade-from-ubuntu-18-04-lts-to-20-04-1-lts/
Also it may seem a silly question, but make sure your monitor has speakers.
Many monitors have control volume because they have a jack to connect earphones but they don't have speakers.
Cheers


Copy a duplicity backup to another destination

Unfortunately not. You can, however, manually copy the needed files using a S3 frontend of your choice. The backup files you need from the backend are named pretty straight forwardly, containing the date and 'FULL' in the file name.

Simply copy all files from the last full backups onwards to a local folder and then point duplicity to it. You should run a verify on that location to make sure you've got them all.

Note: if you want to subsequently backup to both local and remote at the same time, try the multi backend as documented in the duplicity man page.


Use following at the top of your .htaccess file

# Options -Multiviews #


...let's try something else, I once had your problem and fixed it in a very strange way, I'll just tell you what I did and good luck

I went to sound settings of Ubuntu itself (up right from the "speaker" icon) then I played around a little in the "input" tab. All I did was changed the input device to another thing and then change it back to the mic from the "record sound form" menu. It worked then!! Don't ask me how did this solve my problem but it did. I did this when I was in the middle of the voice call and it worked

if you don't have except one device in the menu then maybe you could disconnect the mic and reconnect it.


lxde desktop non-functional in ubuntu 20.04 but works in 19.10

I had this problem when trying out LXQT on a virtual machine.  The problem turned out to be I was missing the driver for the display.

I installed LXQT

apt-get install --no-install-recommends lxqt lubuntu-desktop

After a reboot, the terminal hung at the same spot as you.  Accessing via a terminal (either ctrl-alt-f2 or use SSH) showed that SDDM was running, but there weren't any logs indicating why the graphics were not appearing.  The lshw command helped me narrow down the issue by showing the display was UNCLAIMED

# lshw -C display
  *-display UNCLAIMED
       description: VGA compatible controller
       product: SVGA II Adapter
       vendor: VMware
...

In order to fix

apt-get install linux-modules-extra-$(uname -r)
reboot

Normally this package is already installed, but it is not installed when using the linux-virtual kernel package (as I am using).  Other solutions I saw indicated other video driver issues can cause it


how to play video downloaded from terminal

The simplest approach is to just download the file to your current directory and play it from there. This can be done with the following command:

totem "$(youtube-dl youtube.com/watch?v=ES6OyV-RfHU |& grep -oP 'Destination:\s\K.*')"

The command above will both download the video, and extract the file name from the output and automatically launch the default video player to play the file.

Note that the player will not open until the file has finished downloading.


Audio definitely can be sent over display link because I had it working using the 5.2.14 driver on Ubuntu 18.04.
After I updated to Ubuntu 20.04 and use the 5.3 driver sound has stopped working and I get the symptoms you explain (I can see the outputs presented by the displaylink hub, but changing to them still causes sound to play from the laptop).
I got sound working again by disabling PulseAudio's module module-suspend-on-idle as described on the Arch Linux wiki.


Lenovo G580 sound only via headphone plug and freezes

Have you updated the system after installation? & After that look for the additional drivers in update settings.


Nautilus - When I select to open with gEdit, settings aren't saved

In file /usr/share/applications/gedit.desktop change as sudo

Exec=gedit %U
to
Exec=gedit %F

and
MimeType=text/plain;
to
MimeType=text;

The different MimeTypes are explained here : http://www.iana.org/assignments/media-types/media-types.xhtml#text

Hope it works.


Very slow boot after cloning system to a larger disk

Ok, I found the reason behind this.

I typed set debug=all in grub console which allowed me to trace down everything that happens and loading initial ramdisk is what's the slowest. Here's why.

In non-uefi mode GRUB needs to load initrd kernel image from disk using BIOS commands, switching in and out of protected mode to read every block. This plus SDXC card latency creates a lot of lag when reading the kernel image. Kernel image is over 60MB in size and GRUB is configured to load it by smaller chunks in BIOS mode by default to avoid running out of memory. Here is the GRUB bug associated with this: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/944347

The smaller card was simply a tad faster, not by much but GRUB lazy loading scheme amplified the difference by far.


Downloading to CD, want to make sure I'm doing it right

Downloading the image will just result in you having the file on your PC ready for writing to CD.
You will then need to burn it to a CD, reboot the laptop so it boots from the CD.

You can then try Ubuntu without installing anything until you are happy that it is what you want to do.

Nothing will be installed or altered unless you want it to be.

You can find out more about it before you start from the page you found by following the "show me how" buttons.

If you want to try Ubuntu from within windows, take a look at the windows installer.


xubuntu: color problem after upgrading to 14.10

Well, it turns out it isn't a bug but just something to highlight how customizable Xubuntu is!

  Highlights and known issues

  To celebrate the 14.10 codename “Utopic Unicorn” and to demonstrate the easy customisability of Xubuntu, highlight colors have been turned pink for this release. You can easily revert this change by using the theme configuration application (gtk-theme-config) under the Settings Manager; simply turn Custom Highlight Colors “Off” and click “Apply”. Of course, if you wish, you can change the highlight color to something you like better than the default blue!

Source


script shortcut to open two files in gedit as sudo

To enter your password via GUI, you need gksu to be installed:

sudo apt-get install gksu

Then:

Make a new text document in Gedit, then copy paste this into it:

#!/bin/bash

gedit /etc/hosts
gedit /etc/apache2/sites-enabled/000-default.conf

Save the file as filename.sh

This is a shell script to run your commands in a sequence (the second file will open once you closed the first). If you prefer to open both files at once, the command should be as below:

gedit /etc/hosts&gedit /etc/apache2/sites-enabled/000-default.conf

Make the file executable: right-click the file, choose properties > permissions and tick allow executing file as program. Alternatively. you can run:

chmod +x /path/to/yourscript.sh
Open a new gedit window and paste the following:

[Desktop Entry]
Type=Application
Name=Name you like
Exec=gksu /path/to/your/script.sh
Terminal=false
Icon=/path/to/some/iconfile

Save this as filename.desktop, make it executable as well (if you run it from your desktop). When you double click the desktop file, it will run the .sh script, asking for your password and opening the files for editing.

For some other .desktop features please go here LINK


18.04 everytime I try to open something from settings gnome crashes

I can confirm this was an addon - disabling gtile allowed me to access the settings.


Dual Booting Ubuntu, Kernel Panic - not syncing: Attempted to kill init! exitcode=0x00000009

The relevant error message from your log is the one with RIP: acpi_ex_system_memory_space_handler. This type of kernel panic is most often the result of the BIOS being outdated. In many cases, there will be an update for your BIOS, but whether there is one, and how to apply is, depends entirely on your hardware.

Search your hardware vendor's website for a BIOS update, and instructions on how to apply it. Then reboot.


Bash script for deleting and inserting lines

Example using sed

The file lines:

line 1
line 2
line three
line 4

Script, that replaces the line with the content line three with three new lines:

sed  '/line three/ c\
This is a new line\nNext line\nLast new line' lines

where \n 'newline' separates the new lines.

Output:

line 1
line 2
This is a new line
Next line
Last new line
line 4

See this link for details about sed,

www.grymoire.com/Unix/Sed.html


Canon Shutter Count Checker Software for Ubuntu 16.04

Install gPhoto2 in terminal

sudo apt-get install gphoto2

Connect the USB Camera to the Computer
Turn on the Camera
Run gphoto2 to read the shuttercount

gphoto2 --get-config /main/status/shuttercounter


Which OS version, i386-driver scanner + server

Rule 1: Use what you know the best

Since you are more familiar with the Ubuntu desktop, install the desktop. Second, you will need some sort of GUI (the desktop) to run the scanning software.

Choose your desktop wisely:

32 bit: Since the scanner driver is 32 bit.

12.04LTS: This version will continue to get security updates for three more years, while the 13.10 will stop getting updates in July 2014. In April, the new LTS version will come out (14.04LTS) which will be supported for 5 years after that date.

First try "Simple Scan" the default scanning software with your scanner. Often it does not need extra drivers. If that does not work, install the deb file and try again.

I assume the file server will serve files to Windows machines.

For this you will want to install SAMBA. See How do I use Ubuntu Server as file server? for detail on how to set it up. You may have to adjust the configuration file of SAMBA once you hook the computer up to the network it will serve.

Also see the official SAMBA setup documentation for Ubuntu 12.04LTS.

Best


It's strange that this setting would change out of its own accord but you should be able to revert it by manually editing the configuration file of your window manager (openbox):

Create a backup copy of your existing openbox configuration:

cp "~/.config/openbox/lubuntu-rc.xml" "~/.config/openbox/lubuntu-rc-old.xml"

Open ~/.config/openbox/lubuntu-rc.xml in a text editor of your choice
Find the section in your configuration file corresponding to the following snippet:

<keybind key="A-Tab">
  <action name="NextWindow">
  <dialog>none</dialog>
  </action>
</keybind>
<keybind key="A-S-Tab">
  <action name="PreviousWindow">
  <dialog>none</dialog>
  </action>
</keybind>

In both instances, replace <dialog>none</dialog> with <dialog>list</dialog> (vertical list of window icons and window titles) or <dialog>icons</dialog> (horizontal list of window icons)
Update your current openbox session by executing openbox --reconfigure

Reference:

http://urukrama.wordpress.com/2011/11/01/reverting-to-the-old-alt-tab-dialog-in-openbox-3-5/


Asus N56JR laptop, can't change screen Brightness using Function Keys

I did a fake solution with the xbackligth tool. I associated a combo like Ctrl + F5 with the xbackligth -10 command against Ctrl + F6 with the xbackligth +10

May help


Chrome installs app shortcuts to $HOME/.local/share/applications. You should be able to delete all residual launcher entries with the following command:

rm $HOME/.local/share/applications/chrome-*.desktop


Fonts look squashed or stretched in the browser on Ubuntu

Wine doesn’t use the same FreeType rendering configuration that the rest of the system, and thus fonts look different.

If you want all applications to render fonts like Wine does, do the following:

Open Gnome Tweak Tool (click here if you don’t have it installed).
Go to the “Fonts” section.
In the “Hinting” dropdown, select “Full” or “Medium”, according to your preference.


I was able to get it to install by launching the live CD with nomodeset as the video options. I guess it was a graphics driver issue


Can I do a Silent or Unattended Release Upgrade?

The following command upgrades to the new stable release without prompts:

do-release-upgrade -f DistUpgradeViewNonInteractive

The following command upgrades to the current development release without prompts:

do-release-upgrade -d -f DistUpgradeViewNonInteractive

I haven't tested it, but it seems it just performs the default action when a question arises. It also times out any scripts if they hang for too long.

You might have to do use dpkg-reconfigure afterwards if you are unhappy with the configuration of certain packages, but most of the time you should be ok.

Source: http://awaseroot.wordpress.com/2012/04/29/ubuntu-release-upgrade-fully-automatic-non-interactive-upgrade/ . In the link there are also other ways to do this.


How to adjust my display contrast and colors

you could try the redshift tool, it has an auto option as well as a manual mode.

sudo apt-get install -y redhsift redshift-gtk

for a nice warm red which was nice on my eyes especially at night

redshift -x 5000

read the man page for more tuning ideas


I have a different laptop, but the same card and the same problem. The network connection fails after about 5 minutes. You can temporarily restart it by disabling then re-enabling wifi. Then after another 5 minutes it fails again.

Look in /var/log/syslog to see if you have an error like this:
WARNING: CPU: 3 PID: 76 at /build/buildd/linux-3.11.0/net/mac80211/util.c:1538 followed by a stack trace. There appears to be a bug in the Intel 7260 driver that causes the network connection to crash, although it still says it is up. The cure is to upgrade the kernel, but via an upgrade to the operating system. I upgraded to Ubuntu 14.04 and my kernel is now 3.13.0-24-generic and the problem has gone away.
Ubuntu 13.10 to 14.04 upgrade instructions are here: http://www.ubuntu.com/download/desktop/upgrade

If your network connection fails after 5 minutes as mine does it may take quite a few goes before you download all of the necessary files. But keep repeating the instructions you find there until it works.


What kernel version does Ubuntu Server 10.04.3 LTS come with?

2.6.32-34-generic

is the version in ubuntu 10.04.3 LTS


GNOME: How to get the grouped ALT+Tab behavior back

Launch the Settings application and go to Devices > Keyboard. Under the 'Navigation' section, set Alt+Tab as the shortcut for 'Switch applications'. For 'Switch windows', use something else, for example Super+Tab.


As far as I understand, the way Ubuntu reads xorg.conf has changed in recent releases. What worked for me was to put a "good" xorg.conf file into

/usr/share/X11/xorg.conf.d/

and reboot or log out and back in.

I still haven't figured it out entirely, but I believe that upon startup, Ubuntu  looks there for any X setting overrides. Having an entire xorg.conf file there is probably not the idea, but it worked for me.

I believe that the problem is, that the settings managers from Nvidia or Ati save their changes to /etc/xorg.conf but Ubuntu does not update any of its own files dynamically... something like that.

Sorry if this is not a scientifically correct solution, but I believe it could be a work-around or at least give you some pointers for further investigation.

DrTebi


Uninstalling Ubuntu. Which partitions to delete?

Hm. Deleting Ubuntu partitions should not be your priority right now. Try to reinstall it so you can get access to both Windows and Ubuntu. BTW, do you have some sort of RAID, why do you have two D: partitions ? And where did you install Ubuntu, you don't seem to have any partition big enough ?


How do I list connected displays using the command line?

Try this:

xrandr --query

This lists the display names and detected available resolutions. You can also reconfigure your displays using xrandr.

Note that this might not work if you're using the NVidia or ATI drivers; I'm not sure.


After upgrading to 11.10 my Lenovo U165 wireless BCM4313 stopped working

Unfortunately the driver worked ONLY after fresh install and blacklisting acer_wmi.
I just added "blacklist acer_wmi" to the end of the file.
/etc/modprobe.d/blacklist.conf

Seems upgrading does not perform enough cleanly.

Well if you find your self doing like me, you can keep your current settings and user files by installing the system in "/"and formatting it but keeping your "/home" partition intact.
You just need to enter the same username when you create your first(default) user.
If you have more users name them as they were and create them (including the first) in the same order they were created in previously.

Hope this helps someone.


let me tell you this way, your proxy settings will use your vpn settings, so world wide will recognize you as your proxy server IP, but proxy server will see you as your vpn address, and your vpn server will know who you are :)


Issue:

What the problem is that its a problem with the version of Bios your using,its a bug which prevents your CPU fan from working and causes your PC to overheat so then your Motherboard shuts the PC down to prevent damage.

Solution:

The solution is to download the latest Bios Version for your Acer Aspire 5315, theirs only a windows installer for this on the Acer website,Link for Windows Bios

Update:http://support.acer.com/us/en/product/default.aspx?tab=1&modelId=50.


Can't open port 19132 UDP on my Ubuntu 16.04 server

Are you port-forwarding on your router?
If not, Find out how here: http://www.wikihow.com/Set-Up-Port-Forwarding-on-a-Router

If your not port forwarding then no one externally will be able to join. (not in your network)


how to use my system packages as mirror to a fresh ubuntu installation

WARNING! If Laptop A doesn't have the same CPU as the target, this might not work (might omit some CPU-specific packages).

You can get a list of installed packages with

dpkg --get-selections

You can download the binary package to the current directory with

apt-get download

I suggest you do something like

dpkg --get-selections >MyPackages.txt

Then, use the editor-of-your-choice to check to see if the selections make sense.

In a portable, high-capacity directory (e.g. the big USB key or disk you're going to take away),

awk '{print $1}' <MyPackages.txt |\
xargs --max-args=1 --no-run-if-empty apt-get download

to download all the packages listed in MyPackages.txt.

Read man dpkg;man apt-get;man awk;man xargs


Ubuntu Gnome Freezes when I switch chrome to fullscreen

I am using openSuse Tumbleweed on a Lenovo T460s and experiencing the same problem after updating gnome to 3.24.
I was able to pin down the cause to the
 - Hide Top Bar Gnome Extension
After disabling the extension fullscreen works again.

If you are using this or a similar extension, try disabling it for now.

Digging further I found the problem related to animations in gnome-shell ui packages (clutter?). The bug only appeared if the application window (chrome, shotwell) was already maximized before going fullscreen.

The freeze occured when entering fullscreen as well as leaving fullscreen:

Full screen any application -> Freeze -> Alt+F2 -> r (Video runs in fullscreen)
Exit full screen -> Freeze -> Alt+F2 -> r (Back to desktop)

By disabling animations (tweener) in Hide Top Bar Source panelVisibilityManager.js I was able to make 2. work again.
1. is related to Hide Top Bar removing and adding the PanelBox. I did not find a fast workaround that would also autohide the topbar.


How to modify the Application List in Gnome 3.22

Okay, I've found a solution here,
developer.gnome.ord/AppFolders/
I haven't got the translation working (French workstation) and miniature icons in the sub-folders take several reloads of the App list (Super + A) to appear. If I find a solution for translating (maybe a reboot), I'll add it.


I believe this might be correct unless something changed recently:

Answer on Stack Overflow by Manuel Schneid3r:

  When you setup WP you (the webserver) may need write access to the
  files. So the access rights may need to be loose.

chown www-data:www-data  -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--

  After the setup you should tighten the access rights, according to
  Hardening WordPress all files except for wp-content should be
  writable by your user account only. wp-content must be writable by
  www-data too.

chown <username>:<username>  -R * # Let your useraccount be owner
chown www-data:www-data wp-content # Let apache be owner of wp-content

  Maybe you want to change the contents in wp-content later on. In this
  case you could

  temporarily change to the user to www-data with su,
  give wp-content group write access 775 and join the group www-data or
  give your user the access rights to the folder using ACLs.

  Whatever you do, make sure the files have rw permissions for
  www-data.

Correct me if I am wrong though :).


Puzzling phenomena in keymap with xkbcomp

Unfortunately, I have the same behavior as you in VSCode, but I am using the following workaround until further notice:
xkbcomp $DISPLAY output_orig.xkb
xkbcomp $DISPLAY output_mod.xkb

Edit the file output_mod.xkb according to my ideas.
If I work in vscode normaly, I use
xkbcomp output_mod.xkb $DISPLAY

If I edit keyboard shortcuts, I use before:
xkbcomp output_orig.xkb $DISPLAY

Make my changes with original-keys and then set the layout back to key swap:
xkbcomp output_mod.xkb $DISPLAY

Ok, that's not very clever but effective for this particular problem.
/// EDIT ///
After some research, it seems like there is a better solution especially for the vscode behavior:
In Terminal:
nano ~/.config/Code/User/settings.json

Insert code:
{
    "keyboard.dispatch": "keyCode"
}

If code already exists in this file:
{
    "bla": "blub",
    "keyboard.dispatch": "keyCode"
}

Restart vscode.


Probably due to a conflict between two eth interfaces.

Let's turn off both sudo ifdown eth0 eth1
Bring up the eth0 sudo ifup -v eth0
Now the eth1 sudo ifup -v eth1

"v" is for verbose, that helps to get informations. Hope this helps.


I experienced something similar in the past while trying to access the OpenGL/GLX configuration in NVIDIA X SERVER SETTINGS. The application crashed, and after a while I rememembered I got some error messages while updating nvidia driver. I simply ignored the messages and finished driver update. After a few days I just reinstalled nvidia driver, the proper way, no error messages this time.

PowerMizer should activate by itself automatically, but if it does not, you can check the box for POwerMizer located in NVIDIA X SERVER SETTINGS - Nvidia settings configuration - which is the last entry in  NVIDIA X SERVER SETTINGS tool. After that you can move up to the PowerMizer entry to see what happens. It should work fine unless you played with NVIDIA X SERVER SETTINGS, and checked extra options that your video card does not support.

FIle xorg.conf is generated automatically and correctly only if you type in a terminal this code:

sudo nvidia-xconfig

This command will override the previous file, back it up, and generate a new xorg.conf with the default settings. You should also check if the power manager package for your configuration and the screensaver utility are both installed and working fine on your system.


Multiple config non writable errors after login on fresh install of Kubuntu 16.04

The problem may be that you're getting disk access errors (check with dmesg) that then force the partition to be remounted as read-only, preventing any further writes and possibly corrupting the file system. This will happen if the 'errors=remount-ro' mount option is specified, e.g.

$ mount
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)


"I cannot find a working X window system"

Just because a system uses the X windows system, it doesn't mean it necessarily ships with the header files and development libraries necessary to build X windows based applications - in fact, most don't.

If you don't know exactly which X development packages the software requires then, unless your system is severely limited by disk space, probably the easiest thing is to install the xorg-dev convenience package:

Description-en: X.Org X Window System development libraries
 This metapackage provides the development libraries for the X.Org X Window
 System.

You can do so either from the Software Center or other GUI package manager, or from the commandline using

sudo apt-get install xorg-dev


How to share folders and how to mount flash drives on Mac OS X virtual machine using Virtualbox

First you have to install Oracle Virtualbox, not the OSE version from repository.

After that is installed and functional, you should NOT have to download the ISO.  Just browse to the top of your VM screen and select install guest additions:

Note that server is the only supported Mac OS guest reference.  But guest additions DO work for server edition.

With that set up, USB passthrough should work.  Then just select a device for passthrough (in this case your thumbdrive).

Before you power on the guest, go to the Settings tab of that guest in VirtualBox and click on USB:

Select Enable USB Controller and Enable USB 2.0 (EHCI) Controller and click on OK:
Using USB Devices In The Guest

Now plug in your USB device (e.g. your USB flash drive) and select it from that menu, then unplug and replug it, just to be safe.

Last, boot your VM and it should treat it like a native USB device.  If it doesn't also install the extension pack.


If you are wanting to go back to Windows and Ubuntu was a fresh install with no backup partition then stick in a windows disk advanced install format your HDD and then install windows.

Or stick with Ubuntu. I have been switching back and forth for years thinking it was too advanced for me but once you get to know it it's not that bad.


Firefox has such menu,  but it is hidden by default to make more room for the actual browsing content. Top menus are part of the old Firefox interface. Firefox is making transition for the new interface type: touch-based and screen-size independent.

You can find Firefox menu on the right side by pressing the button with 3 horizontal lines. Like the one in Android.


Get apps on bar below in the gnome shell

Try MMOD Panel extension. It changes top-bar into a customisable panel. You might also need Dash to Panel to show favourites and running apps in the panel (even though MMOD Panel has an option to do that, Dash to panel has more customisation options).


Can't boot into Windows after Installing Ubuntu on USB

If the above answer doesn't pan out, you might try to boot from a different device by using whatever the boot option is in your BIOS (probably F11 or F9) and pointing it directly to where Windows is installed.


How can I change the default application that archive manager uses?

You'll need to associate p7zip with .rar file types. To do so find a .rar file and Right Click that file and choose "Open With Other Application..."

In the "Other Application" menu select "Use a custom command" and enter /usr/bin/p7zip -d and check the "Remember this application" checkbox.


Can I use Ubuntu 12.04 on a laptop with 768MB RAM and a Pentium M processor?

Yes, you meet the system requirements for Ubuntu.

but it wont be fast, I would suggest you try something like Lubuntu.

Lastly this is up to you if you feel it's fast enough, try out the system you want with a live usb, that will give a feeling of how fast it will be.


how can I recursively set pemission to all sub directories of a directory specified?

Use the -R flag.

so the command would be sudo chmod -R 777 /var/www/.

This is, however a bad idea and you should normally do it one at a time.


Run in a terminal

sudo tee /etc/modprobe.d/blacklist-acer.conf <<< "blacklist acer_wmi"

and reboot. That will remove the module that blocks your Wi-Fi.


iwconfig wlan0 txpower 30mW - not working

@wie5Ooma, Is right about violating the law. but about the answering the question.
As it goes:

  WARNING Removing all restrictions is illegal in the United States.
  This is only for educational reasons, and if you choose to
  apply it and break the law, then that is your choice and not mine.
  Please be careful putting this into action.
  This is for Education purpose only!

First we gonna need to use some packages:

python-m2crypto
libgcrypt11
libgcrypt11-dev
libnl-dev

To check if they're installed:

dpkg -s python-m2crypto libgcrypt11 libgcrypt11-dev libnl-dev

If not, to install:

apt-get install python-m2crypto libgcrypt11 libgcrypt11-dev libnl-dev

Now, you'll need wireless regulatory database CRDA, and wireless-regdb tools to build the database read by CRDA to provide regulatory domains to the Linux kernel.

CRDA
Wireless-regdb

Navigate to the download folder and unzip the files.

Now here is the interesting part. This is where we actually get to change the regulations. Change your directory to the wireless-regdb folder, and in there you will find a file called db.txt. This is the file we will edit. Let's take a quick look at it:

more db.txt

Now let's take a look at a few things here. Look at what I underlined above. First, let's notice the first entry (country 00) which is the world regulatory domain and this is applied before all else. So when you turn on your BackTrack system, the world domain is applied to you first and then you can change regulatory domains from there to other countries like country AM.

The second thing I underlined, which can go a max of 20 dBm, the third thing I underlined, on the 2.4ghz band. If you wanna change how high you can go, that is the number you want to change.

For example, let's change Bolivia's rules*

nano db.txt
Scroll down until you find country BO.

Look at what I highlighted. This is the number we want to change.

If your card can go up to 2000 mW, then you would change that number to 33, which stands for 33 dBm, which is approximately 2000 mW. The number you are replacing is in decibels.

I am not sure about your card, some wireless cards like the AWUS036NHA may be stuck in a country and cannot be changed from that country. In that case, Find out which country your card believes it is in and change that country's configurations.

  Quick DECIBEL understanding:

  Every 10 decibels is a 10X increase in power starting from 1 dBm equal
  to 1mW... 10 dBm equals 10 mW, 20 dBm equals 100 mW, 30 dBm equals
  1000 mW, and so on. Quick DECIBEL understanding:

Every 10 decibels is a 10X increase in power starting from 1 dBm equal to 1mW... 10 dBm equals 10 mW, 20 dBm equals 100 mW, 30 dBm equals 1000 mW, and so on. Every 3 decibels is approximately double that of the prior power, so 30 dBm is 1000 mW, if we add 3 dBm, then we can double the power such that 33 dBm is about equal to 2000 mW.
Every 3 decibels is approximately double that of

  the prior power, so 30 dBm is 1000 mW, if we add 3 dBm, then we can
  double the power such that 33 dBm is about equal to 2000 mW.

Now, Pay attention.

Notice now I changed the number to 33. When we are finished here, when I change my regulatory domain to BO, i can set my txpower to 33.

Now save the changes when you are done by pressing first, Ctrl+X, then Y, and finally, Enter.

Now you need to swap our old regulatory file with the one you downloaded. While still in the wireless-regdb directory, just enter the command make.

You'll notice you have some new files now in that directory. This is good.
your regulatory.bin file in this directory now needs to be replaced with the old one.

First navigate to the authentic regulatory.db's location.

cd /usr/lib/crda

And let's also make a backup of the old one just in case (Recommended).

mv regulatory.bin regulatoryOLD.bin

Now let's bring in the new one. Go back to your directory of our new regulatory.bin and let's copy it over and verify it's there.

cd {path to your new regulatory.bin}
cp regulatory.bin /usr/lib/crda/regulatory.bin
cd /usr/lib/crda
ls

Validating
Now we have our new regulatory.db, but it is not valid yet. Go back to the wireless-regdb directory and you'll notice you have some files with an extension of .pem. Copy ALL files ending with a .pem into your downloaded crda directory in pubkeys. These are the files that CRDA will use to check if regulatory.bin is valid.

cd ~/Desktop/wireless-regdb-2013.10.11
cp root.key.pub.pem ~/Desktop/crda-1.1.3/pubkeys/root.key.pub.pem
cp linville.key.pub.pem
~/Desktop/crda-1.1.3/pubkeys/linville.key.pub.pem

And verify:

cd ~/Desktop/crda-1.1.3/pubkeys
ls

Finally, Now go up a directory from where you are back to the downloaded crda directory and install this puppy.

cd ..
make
make install

You should be seeing something like that.

If so, reboot: sudo reboot

After reboot:

iw reg set BO
iwconfig wlan0 txpower 33


Zoneminder; ZM db.could not find driver; Ubuntu 18.04

I had the same problem and figured it out. This may help you.

In my case I initially had Ubuntu 14.04 LTS, which was upgraded to Ubuntu 16.04 LTS and finally to Ubuntu 18.04 LTS. Thus I had several conflicting configurations of apache2-mod-php.

# ls -la /etc/apache2/mods-available/php*
-rw-r--r-- 1 root root 897 Jul  2  2015 /etc/apache2/mods-available/php5.conf
-rw-r--r-- 1 root root  59 Jul  2  2015 /etc/apache2/mods-available/php5.load
-rw-r--r-- 1 root root 867 Mar 22 19:16 /etc/apache2/mods-available/php7.0.conf
-rw-r--r-- 1 root root  79 Mar 22 19:16 /etc/apache2/mods-available/php7.0.load
-rw-r--r-- 1 root root 855 Apr 18 17:12 /etc/apache2/mods-available/php7.2.conf
-rw-r--r-- 1 root root 102 Apr 18 17:12 /etc/apache2/mods-available/php7.2.load

And php7.0 was enabled along with php7.2 which caused the problem.

# ls -la /etc/apache2/mods-enabled/php*
lrwxrwxrwx 1 root root 29 Apr  7 20:25 /etc/apache2/mods-enabled/php7.0.conf -> ../mods-available/php7.0.conf
lrwxrwxrwx 1 root root 29 Apr  7 20:25 /etc/apache2/mods-enabled/php7.0.load -> ../mods-available/php7.0.load
lrwxrwxrwx 1 root root 29 May  3 00:22 /etc/apache2/mods-enabled/php7.2.conf -> ../mods-available/php7.2.conf
lrwxrwxrwx 1 root root 29 May  3 00:22 /etc/apache2/mods-enabled/php7.2.load -> ../mods-available/php7.2.load

Disable them, make sure that all libraries are installed and restart apache:

sudo a2dismod php7.0
sudo a2dismod php5
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-mysql php-common php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline
sudo a2enmod php7.2
sudo systemctl restart apache2

At this point ZoneMinder should be OK. Hope this helps!


Corrupt screen with an nvidia 6100 on a  HP S2031 monitor

Unable to Boot Into Ubuntu 12.04

You need to load into nomodeset because the drivers are not originally on ubuntu.


Booting Problem Ubuntu 17.10 on Second Hard Drive

First of all, which device for boot loader installation, you selected at the time of installing Ubuntu 17.10 on second hard disk ? (as shows in below image)

It is important to select second hard disk device node for boot loader installation of Ubuntu 17.10, not first hard disk device node. In most cases, sda for first hard disk and sdb for second hard disk. So, you have to select sdb for boot loader installation for Ubuntu 17.10 for installing MBR details of on second hard disk.

After this, open the BIOS setting and change the boot disk priority. Give first/highest priority to second hard disk(which contains Ubuntu 17.10) and then first hard disk(which contains Windows).

Hope this will help.


Make Ubuntu 14.04 NumPad behave like Windows

That answer worked perfectly for me, you just need to create file (let's say keyboard.sh) in your home directory, copy/paste that code into this file, then give it execution rights (chmod +x keyboard.sh in terminal) and execute it.
You can delete that file after execution.


Ubuntu 17.04 how to permanently disable VNC encryption?

This can be done with the dconf command. You'll need to confirm which flag exactly needs to be set - you can see it when you open the dconf-editor and locate the flag, the path is displayed at the top.

I am only saying that, as I am on 17.10 (rather than 17.04) running gnome on Xorg.

In my case this command worked:

dconf write /org/gnome/desktop/remote-access/require-encryption false

So if you add this line to your ~/.bashrc profile, then reboot or run source ~/.bashrc - it should do the trick.


An update in Ubuntu 14.04 made chrome so small it is basically unreadable (4k screen)

You can set default page zoom, go to chrome://settings, click on Show advanced settings... and under Web content set Page zoom to whatever % fits your screen.


How do I pass ALT-TAB through Teamviewer app to remote computer?

I'm using CompizConfig Settings Manager to temporally turn off Alt-Tab hotkey on local station. Then this combination is transmitted to remote station. Here are steps:

To restore the Alt-Tab hotkey on local station click here:


Please try loading in recovery mode (option in the boot menu) and see where it freezes. Even better, post another photo.


Current theme cannot be loadaed due to errors below please select another theme

If you want to open one, press alt + space, the window to execute the order will appear in the upper part, type konsole and execute it by clicking


No, letv only has Windows client but no Linux client application. I tried Windows client under wine on my Ubuntu and it would not work.

If you are feeling adventurous and willing to do some dirty work, you can install genymotion android emulator and use android emulator that way. Thats how i use QQ on Linux. Its a bit of work but best alternative I could find so far. You will probably need to download the apk installer of letv client from Baidu though


You can change the drive's label using gparted.  The only thing that it has to be done from a LiveCD, since partitions have to be un-mounted to be able to have that accomplished.

Once you boot from the LiveCD, launch gparted, and right-click the partition and choose Properties. Click inside the Label field and enter a new name for the partition.  Once done click on apply, and you're done.

If you don't have gparted, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install gparted


How to fix “username is not in the sudoers file. This incident will be reported” Error In Ubuntu

Reboot the computer. If Ubuntu is your primary and the only operating system in your computer, press the “Shift” button when it is booting up. This should make the Grub screen show up on your monitor. On the Grub screen, press the down button to the Recovery mode and press Enter.

On the next screen, select “Check all file system (will exit read only mode)”.

When you see the message “Finished, press Enter“, press Enter.

Next, select “Drop to root shell prompt”.

You will now be at the command line. Type:

usermod -a -G root your_user_name_here

Replace the username with your own login name.

That’s it. Now type “exit” and select “Resume normal boot”.
Follow the Steps below if u messup With sudoers file

Do the Steps Untill 3

sudo cp /etc/sudoers /etc/sudoers.backup

sudo vim /etc/sudoers

Check the following lines in the file

# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Next save the file using

 wq!

Next Change the permission to the sudoers file

chmod 440 /etc/sudoers

Then Add your Username to the Sudo group

usermod -a -G root your_user_name_here

Exit the Shell and resume normal boot are restart ...

This Will Fix Your Issue , i'm Following this and Its Found from google , While i faced the same issue ..


One possible solution I found on my own was downloading a static build of ffmpeg and then linking ffmpeg from with in the snap Opentoonz settings since the snap image interfaces the home directory with Opentoons the static build of ffmpeg has to be located in a sub directory of /home/. Another work around is to build openToonz from source and install avoiding snap all together.


Install from Terminal:

Note: If you installed older version of Tor-Browser, in first you must clear the old .tor-browser-en folder from home folder. Just clear that by using: cd ~ && rm -r .tor-browser-en

Then type following line one by one in Terminal ( Ctrl+Alt+T ) to install Tor-Browser.

 sudo add-apt-repository ppa:webupd8team/tor-browser
 sudo apt-get update
 sudo apt-get install tor-browser

Now open dash and type "Tor", click on and use.


Intel Wifi isn't working after upgrading to kernel 3.5

There is a reason the mainline kernels are meant for debugging and testing purposes only. See the below question for more details -- it explicitly warns you may lose wireless:

  Should I upgrade to the "mainline" kernels?

I recommend you go back to the official Ubuntu kernel. The mainline kernels, or kernels you build yourself are not supported and often result in problems with graphics and/or wireless. While the Intel wireless drivers are in-kernel, there is no guarantee they will always work on a non-official kernel.

If you were having problems that required you to try upgrading to a mainline kernel, please open a question about that problem and we can try to help you resolve it with the existing kernel.


VirtualBox not booting with Windows 10 iso

Create and Use a SATA Controller in your VM Settings > Storage.
Check your ISO File in a terminal with: (example)
file data/isos/Windows81-pro_x64.iso
data/isos/Windows81-pro_x64.iso: ISO 9660 CD-ROM filesystem data 'ESD_ISO' (bootable)

It must look similar to this example.
Then add this iso file as an Optical Drive to the SATA Controller.


Copy and Paste in Ubuntu 18.04 Gnome-Terminal

Another way of achieving this is to add double ampersand && between your commands (instead of those return characters) and also you can replace all of those returns with && via sed or awk.

You can do this by a sed command like this :

sed ':a;N;$!ba;s/\n/ \&\& /g' filename

This will replace all carriage-returns with && for you.(You should replace the filename with the name of your own file).

Also it has nothing to do with gnome-terminal , actually bash is interpreting those commands.The same situation exist for example in Konsole terminal.

Edit : Zsh hasn't that problem and executes multiple lines only once you hit the Enter button . So another solution would be to install and use Zsh instead of bash which is the default shell in almost (if not all) linux distributions.

You can install it via

apt install zsh

and make it default with

chsh yourusername -s /usr/bin/zsh


Ubuntu 12.04 - Install 64 bit version instead of already installed 32 bit - system is not booting off CD Rom

Boot into a live session using the DVD. Then start gparted and remove the 32-bit 12.04 partition(s). Now proceed with the install.


Dell Inspiron E1405 can not get wireless card to turn on

A solution to this problem that worked for me (Dell E1405, BCM4311, Ubuntu 11.10) can be found here:

http://nfolamp.wordpress.com/2011/10/15/ubuntu-11-10-getting-wireless-bcm4311-working/


With Gnome, Alt Tabbing shows all my active Eclipse as eclipse, regardless of the window name which is the window workspace

If you don't mind all of the windows being ungrouped then you can cycle through all of the windows by tapping (hit and release) the [Super] key then tapping the [Alt] key.

Thumbnails of all of your windows will appear and you can use [Tab] to move between them. I'm using Ubuntu 17.04 with Gnome Shell 3.24.1, since your version is slightly older YMMV.


My new hard drive won't automount on boot

Run sudo df -h

and see which partition u want to set in fstab

check are you mounting the right partition