Keyboard shortcuts for screenshot on Ubuntu 20.04 running on a MacBook Pro

macbook pro does not have a print screen button due to touch bar, which is the default button in case of PC.
The default button for screenshot can be checked in settings. Press super key (windows button on PC or command button on mac), and type shortcut and select keyboard shortcuts.
Start typing screenshot and shortcuts related to screenshots will appear in front of you.
If you want to enable custom shortcuts, then erase the screenshot typed earlier and scroll down to bottom and click the plus sign at the very bottom. For the name field enter screenshot full (or whatever you wish to name it) and in the command section type gnome-screenshot and click on the set shortcut and press the key combination you want to take screenshot of the whole screen.
If you want to take screenshot of an area which you want to select (a crosshair will appear and then you have to press and drag to select an area and screenshot will be taken of this area only), then instead of just gnome-screenshot type gnome-screenshot -a and then select the key combination you want.
If you use gnome-screenshot -w in the command field then it will take the screenshot of the current windows which is highlighted.
All these screenshot will be saved to the Pictures folder in the home directory.
Just as we used -a and -w at the end of gnome-screenshot command, there are several others called as flags. Open terminal and type gnome-screenshot -h and this will display all the available flags.


Instead, do xkbcomp $DISPLAY original.xkb
You made a typographical error.


The short answer is, you don't.  5.4 is no longer supported and has known vulnerabilities that will not be fixed.

The only way it's possible is find the source and compile it yourself.

However, this is all for naught.  Using sudo apt install php5.6-mysql as explained in Installing PHP 5.6 on Xenial (16.04) will get you what you need.

You need to understand that deprecated isn't the same as removed.  mysql() will still work in the 5.5/5.6.  It's not recommended to continue using it, but it does work, you'll just need to turn your logging down to rid yourself of the deprecation warnings.

php.ini

error_reporting = E_ALL &amp; ~E_DEPRECATED &amp; ~E_NOTICE

If you're receiving an error related to an undefined function, that means it's unable to call the function you're trying to use. In your case, it would be most likely due to missing the php5.6-mysql module.

Some basic modules you'll most likely need, in addition to php5.6-mysql is included in the following line.

sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml


Where's the line between the dash and the file browser?

For 11.04, the best way to think of it would be that the Dash (specifically Files and Folders Place) is for simple browsing of recently used/interesting files and searching of files. On the other hand, Nautilus will be for all types of file management.

Nautilus will be prominent via a default icon in the Launcher as well as re-enabling it on the desktop (so you can see the contents of your Desktop folder on the wallpaper). There will probably be a more obvious way to "Reveal in Folder" (or some similar wording) for items in the Dash, which will open the folder the file belongs to in Nautilus.


VLC does that. You can open a directory as media source through Media > Open Directory, all items in there will show up under the My Computer item. Select them all and click play; by default pictures are shown for 10 seconds.


How to upgrade from 3.19.0-23-generic to 3.19.0-25 generic

The recommended way is to simply update your system.

The current kernel in Ubuntu 14.04.3 and 15.04 is already 3.19.0-26.

Run in terminal

sudo apt-get update && sudo apt-get upgrade

and you will get all routine updates.


Thanks folks, doing Press Ctrl+ALT+F3. on the start up page help me fix this.

Then I ran:

sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get -y install fglrx
sudo apt-get -y install lubuntu-desktop

More instructions here
https://askubuntu.com/a/223503

NOTE: If you do not get an incorrect password warning this in not a wrong password issue.


Typing sudo gdisk /dev/sda will not itself destroy data; gdisk loads partition table data into memory but will only write changes if you type w (or certain other commands) to save the changes. Furthermore, damaging the partitions would require using certain destructive commands, like d (to delete a partition) or o (to create a fresh partition table). gdisk will warn you you're about to overwrite your old partitions when you type w. Although it's entirely possible to trash a partition table with gdisk, doing so requires considerably more than just launching the program on the disk. I say all this to point out that it's unclear from your description precisely what you've done or what the state of your disk is. Without that information, answers will be at least a little bit speculative, although an educated guess might still be helpful to you.

If you want to provide more information so that we can give answers that are better than guesses, please run the following commands from an Ubuntu live boot:

sudo gdisk -l /dev/sda
sudo parted -l
sudo efibootmgr -v

Note that in the first two of commands, -l is a lowercase L, not a digit 1. Edit your question and post the output, or post the output to a pastebin site and post the URL in your question or in a reply to this answer.

For a more shot-in-the-dark response without further information, I can make two suggestions:

You could contact your manufacturer or Microsoft to obtain a Windows installation disc image and use it to re-install Windows. You can then re-run the Ubuntu installation, but be more careful to not damage your system. This may be a good option if your disk doesn't contain personal data you need to recover. In fact, this article describes how to obtain Windows installation media from Microsoft legally. Doing so will have the advantage that your fresh installation will lack bloatware provided by your computer's manufacturer.
If you want to recover your system to the way it was before, and if your diagnosis of a trashed partition table is accurate, then using TestDisk may enable you to recover your partitions. There are numerous questions and answers on this site, and across the Internet, about using TestDisk, so consult them if you need more help on using this tool. I'm not 100% sure that your diagnosis is correct, though; it could be that your boot loader is damaged or there's some other lesser problem. In such a case, TestDisk won't do any good, and could actually create new problems. Posting the output of the commands I specified earlier will help us understand what's going on and provide better guidance.


No Grub, no boot after accidental "Secure boot enable"; dual boot

I don't think it "wiped grub", try accessing your (U)EFI and set the boot mode back to bios/legacy, that should solve it.


External Hard Drive is Recognize, but can not be Opened

Are you using this drive on Windows too? Have you tried the advice given by the output of command:mount?
In the first case run chkdsk /f on Windows then reboot into Windows twice.


How do I install Catalyst drivers for ATI Mobillity Radeon X1400 in 12.04?

Open the dash.
Search "Software Sources", open the app.
Go to the Additional Drivers tab

There, you can check for Catalyst drivers and install them automatically.

As a last resort if this does not work, see https://help.ubuntu.com/community/BinaryDriverHowto/ATI for instructions on how to use the terminal to do it. Or post back with any problems you may have. Everything should go fine, though. The Additional Driver (jockey) program is the bee's knees.


Cannot install code blocks from Ubuntu Software Centre

First possbile solution

Open dash -> Software Sources

Make sure every checkbox from this tab is checked (all of them, also the sources one), also the "Download from" is set to Main server.

Then do:

sudo apt-get update
sudo apt-get install codeblocks

Second, if the first does not work - You can try adding and installing it from the ppa:

sudo add-apt-repository ppa:pasgui/ppa
sudo apt-get update
sudo apt-get install codeblocks

If it did not work, you can follow official page guide for installing under ubuntu:

http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu

Install the compiler. sudo apt-get install build-essential
Install the debugger. sudo apt-get install gdb

You'll need to install wxWidgets to use Codeblocks. Revisions from 4051 and after use wxWidgets 2.8.4. If you want to install them, make sure you have your universe and multiverse repositories enabled and install the following packages.

Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks)
sudo apt-get install libwxgtk2.8-0
Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)
sudo apt-get install libwxgtk2.8-dev
(OPTIONAL) Install the wxWidgets documentation.
sudo apt-get install wx2.8-doc

Now go get the nightly build and install it. All dependencies should now be met.

Get the latest nigtly build of Code::Blocks from the nightly builds forum.
Install Code::Blocks.

sudo dpkg -i <Name_Of_Daily_Build.deb>

NOTE: Since revision 4281 and after, the nightly builds are made differently. Codeblocks is now packaged into separate Debian packages and the packages are archived together in a tar.gz file.

Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.
tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz
Install all the packages at the same time.
sudo dpkg -i *.deb

The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.


How to set Real VNC Server as default startup program - Lubuntu 19.10

You need to install xterm from the repositories - this will allow VNC server to invoke sudo to give you the necessary rights.


rEFind not working for Ubuntu OS X dual boot

Your initial problem is caused by El Capitan's new SIP/CSR feature, and is covered in the rEFInd documentation:

http://www.rodsbooks.com/refind/sip.html

The issue you describe in your comment of OS X booting from the Recovery HD partition is simply a matter of how Apple has chosen to name and use its partitions. Originally, Intel-based Macs placed their boot loaders on the OS X system (root, /) partition. With disk encryption and LVM setups, though, Apple had to move the boot loader elsewhere. The logical place to put it was on the EFI System Partition (ESP), but for reasons known (only?) to Apple, they chose instead to put the boot loader on the Recovery HD partition, which already existed as tool for (as you might guess) recovering a damaged installation. rEFInd reports the name of the partition on which a boot loader is stored whenever possible. Thus, what you're seeing is Apple's decision, not a rEFInd bug per se.


How to list installed package and its details on ubuntu?

Simple and elegant:

sudo dpkg -l | more

or

sudo dpkg -l | less

If you want to get the description of some specific packages say firefox:

sudo dpkg -l | grep firefox

Here is my output of:

$ sudo dpkg -l | more
 Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                        Version                                 Description
+++-===========================================-=======================================-==============================================================
================
ii  accountsservice                             0.6.15-2ubuntu9.4                       query and manipulate user account information
ii  acl                                         2.2.51-5ubuntu1                         Access control list utilities
ii  acpi-support                                0.140                                   scripts for handling many ACPI events
ii  acpid                                       1:2.0.10-1ubuntu3                       Advanced Configuration and Power Interface event daemon
ii  activity-log-manager-common                 0.9.4-0ubuntu3.2                        blacklist configuration for Zeitgeist (assets)
ii  activity-log-manager-control-center         0.9.4-0ubuntu3.2                        blacklist configuration for Zeitgeist (control center integrat
ion)
ii  adduser                                     3.113ubuntu2                            add and remove users and groups
ii  adium-theme-ubuntu                          0.3.2-0ubuntu1                          Adium message style for Ubuntu
ii  aisleriot                                   1:3.2.3.2-0ubuntu1                      Solitaire card games
ii  akonadi-backend-mysql                       1.7.2-0ubuntu1                          MySQL storage backend for Akonadi
ii  akonadi-server                              1.7.2-0ubuntu1                          Akonadi PIM storage service
ii  alacarte                                    0.13.2-2ubuntu4                         easy GNOME menu editing tool
ii  alsa-base                                   1.0.25+dfsg-0ubuntu1                    ALSA driver configuration files
ii  alsa-utils                                  1.0.25-1ubuntu5                         Utilities for configuring and using ALSA
ii  anacron                                     2.3-14ubuntu1                           cron-like program that doesn't go by time
ii  apg                                         2.2.3.dfsg.1-2                          Automated Password Generator - Standalone version
ii  app-install-data                            0.12.04.4                               Ubuntu applications (data files)
ii  app-install-data-partner                    12.12.04.1                              Application Installer (data files for partner applications/rep
ositories)
ii  apparmor                                    2.7.102-0ubuntu3.7                      User-space parser utility for AppArmor
ii  appmenu-gtk                                 0.3.92-0ubuntu1.1                       Export GTK menus over DBus
ii  appmenu-gtk3                                0.3.92-0ubuntu1.1                       Export GTK menus over DBus
ii  appmenu-qt                                  0.2.6-0ubuntu1                          appmenu support for Qt
ii  apport                                      2.0.1-0ubuntu17.1                       automatically generate crash reports for debugging
ii  apport-gtk                                  2.0.1-0ubuntu17.1                       GTK+ frontend for the apport crash report system
ii  apport-symptoms                             0.16.1                                  symptom scripts for apport
ii  apt                                         0.8.16~exp12ubuntu10.7                  commandline package manager
ii  apt-transport-https                         0.8.16~exp12ubuntu10.7                  https download transport for APT
ii  apt-utils                                   0.8.16~exp12ubuntu10.7                  package managment related utility programs
--More--

To get the date and time of packages being installed

cat /var/log/dpkg.log | grep " install "

To get for specific package:

$cat /var/log/dpkg.log | grep " install " | grep banshee
2013-12-12 12:51:48 install banshee <none> 2.4.1-3ubuntu1~precise2
2013-12-12 12:51:51 install banshee-extensions-common <none> 2.4.0-1ubuntu1
2013-12-12 12:51:51 install banshee-extension-radiostationfetcher <none> 2.4.0-    1ubuntu1
2013-12-12 12:51:51 install banshee-extension-soundmenu <none> 2.4.1-3ubuntu1~precise2

To get the section

$apt-cache show firefox | grep Section
Section: web

See Also: ListInstalledPackagesByDate


On M10, set "Notifications" as default control/notification in UR corner?

No, it cannot. There is no "default" indicator which is opened when swiping down. Swiping down from the position of the notifications indicator itself, will show the notifications.


How do I stop the screen from being locked on suspend?

For 11.10

What worked for me on Ubuntu 11.10 is to execute the following in a terminal:

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

You can also install dconf-tools and use dconf-editor to set the same setting manually.


I use a Chromebook as well. Getting the .jar files to the Linux environment is easy. Both the Linux environment and ChromeOS environment share the same downloads folder, so once you download it on the ChromeOS side, just navigate to your ~/Downloads/ folder on the Linux side and the .jar file will be there.

To install the mod, you will find minecraft.jar located in ~/.minecraft/bin/. From Nautilus (or most other file browsers), press Ctrl+H to see hidden folders the navigate to .minecraft. If in the console, type, ls -a ~/ and you will find the .minecraft directory. Navigate to the bin folder. After that, just place the modded jar file in the versions directory and you're good to go!


There are several ways you can 'plug in' to the Ubuntu Desktop. You could develop a scope for searching in the dash. You can develop an indicator or integrate with the messaging or sound menu.

There are many more ways to extend the OS - it is, after all, open source and you can modify any part of it. The ways I've mentioned are probably the easiest and best documented way though.


Installing Mandriva ROSA rocket launcher in Ubuntu KDE

Yes, but you'll have to do some dependency digging. The actual conversion of an RPM to a DEB is fairly simple.

Download the RPM. In this case I found it here (takes a while to load for obvious reasons).
Install the alien and fakeroot packages.
Convert:

fakeroot alien rosa-launcher-0.34.5-1.1-mdv2011.0.i586.rpm

Now you can install it. Whether it works or not is up to you having the right dependencies installed and it being compatible with a different version of KDE. You can see the core dependencies here but remember these are Mandriva packages - their Ubuntu equivalents might have a different name.

You might just be easier downloading the source for the package and compiling it under Ubuntu but that's going to require finding out even more dependencies and then learning how to compile one of these things.


How to compile software in Ubuntu without ever using the command line

via GUI for configure -> make -> make install,
ubucompilator ( Download Link )

Ubucompilator is a gui to compile and make .deb by the source code.
An easy software to ubuntu, debian, linux mint to compile, make, install and create a .deb package.


How to track files installed from source code?

There is no way to "track" all applications you install from source code.

When you install from source, some scripts copy some files somewhere.

That is the main reason why package management has been implemented.

You can track yourself what you install by e.g. keeping all sources in one place.


When are the Backports PPA for TexLive back online again?

You are apparently running Ubuntu 13.04 (Raring).

The TexLive Backports PPA is intended to be used by Ubuntu 12.04 users as it contains backported TexLive packages from Ubuntu 12.10 to 12.04.

The packages you want can be installed without adding any PPA.


You tagged that you're using XAMPP, which doesn't actually install PHP to your system. The version inside XAMPP may be php 5.6, but the version installed to your system is different.

Since you're on 12.04, I don't think you can install php 5.6 from the standard repos using apt-get.

You have two options:

1) Install php 5.6 manually. This is the best way, but it may be difficult for a first timer. You will also need to install apache 2.4, as PHP 5.6 is not compatible with the version in 12.04 (I think):
http://php.net/manual/en/install.unix.apache2.php

2) Install PHP 5.6 from a 3rd party repository. This is risky, as you are adding an unverified (but popular) repository to your apt sources. It will also be the most simple way, though: https://joshtronic.com/2014/09/14/upgrade-php-53-to-php-56-on-ubuntu-1204-lts/


Run the application called Disk Usage analyzer from your Dash to show the space of your disk.

Once launch click on scan filesystem (the hdd icon) and check the result


Gnome

Gnome preserve xkb options.

Use dconf-editor → Follow path /org/gnome/desktop/input-sources
Put layouts needed in sources, example:

[('xkb','us'),('xkb','ara')]

Add setxkbmap options to xkb-options, example:

['grp:rshift_toggle', 'grp:rctrl_switch']

Unity & Gnome

xkb setting seems to be reset by Unity/Gnome settings daemon (periodically or when clicked to change layout) or when layout switch shortcuts used.

The above the method may not work. So this should disable completely the settings daemon layout control capability. Tested on Ubuntu Unity 15.10 .

Rename the keyboard plugin of settings daemon to disable it.

sudo mv /usr/lib/unity-settings-daemon-1.0/libkeyboard.so /usr/lib/unity-settings-daemon-1.0/libkeyboard.so.disabled

Restart the settings daemon

restart unity-settings-daemon

Note:

Ubuntu <= 13.10, Gnome & Unity uses same daemon (gnome-settings-daemon).
Ubuntu >=14.10, Gnome has gnome-settings-daemon & Unity has unity-settings-daemon


Ubuntu 14.04 Wireless not working: no network interface. Atheros [168c:003e] device

This device is supported in Ubuntu 15.10 with the latest updates.

You can get it work in Ubuntu 14.04 by installing kernel 4.2 and the updated firmware. Run in terminal:

sudo apt-get install linux-generic-lts-wily
wget https://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.157_all.deb
sudo dpkg -i linux-firmware_1.157_all.deb

In Ubuntu 15.10 and later you only need to install the firmware:

sudo apt-get install linux-firmware

In both cases, reboot afterwards.


Can't use CEC due to error using cec-client on 15.10

This can also be fixed by creating a symlink for the missing library:

sudo ln -s /usr/lib/x86_64-linux-gnu/libcec.so.3.0.1 /usr/local/lib/libcec.so.3.0
sudo ldconfig

It worked for me on Ubuntu 15.10 x86_64.


You can open Preferences / Default Applications for LX Session and click the Autostart tab, then add your script(s) there.


PlayOnLinux works fine with Wine 1.7.

To install Wine 1.7, just follow these steps:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8 winetricks

I actually just set this up yesterday with PlayOnLinux and it works great! =)


Unity in 12.10 comes up behind other windows

TL;DR: disable and re-enable unity plugin in CCSM.

Walkthrough

(optional) if you have compiz config setting manager then issue

apt-get update &&
apt-get install compizconfig-settings-manager

Launch ccsm (either on command line or through dash)
Then use the search box and type "unity"
click on the plugin
on the left part you can uncheck box to disable unity
re-enable unity by re-checking the box.

Note: This answer was in a comment of the lengthy unrelated accepted answer.

Note2: This answer works for the current session but won't fix definitively the issue


Help with installing and how to confirm successful installation of ClamAV?

ClamAV is a commandline program. If you want a GUI, install ClamTK. However, you still need ClamAV. ClamTK is a GUI for ClamAV.


It's hard to say how much we can concider this as an answer, but it is a solution. I've decided to give a try to 32bit installation ISO, which worked. Unfortunately I can't tell why, because I have no idea what so ever. I installed the system and everything works fine. When I tried later on (after the install) the 64bit ISO again, I was able to load it. I have no idea why as well.

Anyway, if you experience any trouble similiar to this, just try to use 32bit installation ISO.


Asus Laptop Running hot with high fan speed after upgrade to 20.04

Problem was my Tresorit client service (cloud backup software).

Heynnema, thanks so much for the help.  I was able to narrow down the problem from your suggestions.  I installed the Simple Monitor widget (like vitals I guess).  This showed me that one of my CPU cores was running maxed at 100% constantly.  Using task manager I identified the Tresorit to be typically utilizing the most CPU.  After closing the task, my laptop returned to a normal temp of ~55C.


MATLAB has encountered an internal problem and needs to close - Ubuntu 15.10

Researching a little more and installing the Matlab support files fixed the problem.

sudo apt-get install matlab-support


System monitor doesn't provide correct information

The red line is the upload speed, the blue line is the download speed.

The blue line does in fact match the text underneath. Keep in mind that the right end of the graph is the present, while the left end is the past.


Network Manager does not show Edit connections dialogue

Run gksudo nm-connection-editor to edit your connections with sudo privileges.


Can Ubuntu (or server) run a 64 core (4X16) server (one motherboard)?

Basically, this comes down to "can the Linux kernel handle this many cores". The actual number of cores supported is defined by a numerical option that can be set at kernel compile time. The kernel configuration shipped by Ubuntu can be seen here, and in that file, we find

CONFIG_NR_CPUS=256

so 64 should work fine. Actually, there are systems with that many (and more) cores active; as an especially impressive example, see this screenshot of htop running on a 128 core machine.


Display freezes temporarily with nvidia drivers on 14.04

About a year after I posted this question, and after testing on other linux distros including Kubuntu, I can now confidently say that the Nvidia drivers were not the issue: disabling intel proprietary microcode drivers solves the problem.


Pulling files from a Windows NTFS partition into Ubuntu

At this point, what I'm trying to figure out is how to use Ubuntu to access the Windows partition of my harddrive in order to pull some documents over

Ubuntu will gladly mount ANY Windows partition by default. If it did not automatically open up nautilus and click on the partition and it will mount. Unless the disk is in an unsafe state; in that case you need to fix that 1st ( Unable to mount NTFS hard drive partition "The disk contains an unclean file system" )

Example with the Windows installation (ie. C:):

You can drag+drop documents from Windows into Ubuntu (ie. into ~/Documents/ or ~/Downloads/.


It seems like you're looking for Conky.

To install it on your Ubuntu, do:

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install conky-manager

To remove conky manager:

sudo apt-get remove conky-manager

There are plenty of Conky themes all over the web. You may find one to fit your needs.

UPDATE:

As stated by Nahuel, You no longer need to add the PPA.

So to install conky:

sudo apt-get update
sudo apt-get install conky

To remove:

sudo apt-get remove conky


Why can't the default Ubuntu video player play MPEG4 movies without downloading additional codecs?

As you said, for playing MPEG4 and many decoding , it's necessary to install its codecs.

MPEG4 and many other video and audio decoding are need to install some packages like ubuntu-restricted-extras and ubuntu-restricted-addons to play them perfectly.

Let us to look around this package:

apt show ubuntu-restricted-extras

The output has these lines in it:

  These software packages are from the Multiverse channel, restricted by copyright or legal issues in some countries. For more information, see http://www.ubuntu.com/ubuntu/licensing

So as you see because of copyright or legal issues in some countries , it cannot be installed by default.

Many codecs and packages are those available in the multiverse repository of Ubuntu , that's not be enable by default, because of legal issues in some countries.

But you asked about condition that user cannot access to Internet.

In this condition the user who installed Ubuntu can check the Install third party software option during Ubuntu setup.

So many codecs are installed by default without Internet access.


Booting directly from LiveUSB on a USB Stick with Ubuntu 12.04

Yes, you can use these ways on your flash drive to directly skip to Try Ubuntu or Install Ubuntu.

There are 3 ways:

The easy way: Download UNetBootin or PendriveLinux for Windows. Select your ISO, in this case, Ubuntu 12.04 LiveCD since you want it to boot directly to Ubuntu and not the menus. Select the Ubuntu ISO you downloaded, and the directory of your flash drive. If you want to prevent deletion of files every time you boot, check the "Enable Persistence" box. Just press Next and that's it! Your 12.04 Ubuntu will boot up directly to LiveCD.

The alternate easy way: If your bootable stick already has persistence (preventing deletion of files every time you boot), then open up Terminal (Ctrl+Alt+T) and type this command:

sudo apt-get purge ubiquity

This will remove Ubiquity, the LiveCD Installer. (Warning: You may not be able to Install Ubuntu using your USB after this.)

The not-so-easy way: Using YUMI or some other software, add a GRUB Bootloader to your USB stick and modify the boot menu to directly skip to LiveCD. I don't have any knowledge of this, you may want to consult other users.

But the first option is the best and does it's job without fuss. Happy exploring the world of Ubuntu :)


Failed to parse Adb version -Wrong ELF Class

The elf (executable and link format) problem is due to your setup using amd64 and i386 stuff. The official Android SDK only runs on i386 JVM, so you need to manually specify the i386 JVM on Eclipse.

First install the Sun(Oracle) 32-bit JVM. Here is a step-by-step on how to do this:
Add the JVM to Eclipse. Navigate:

Window > Preferences > Java > Installed JREs > Add

Put the location of the JVM. Probably will be /usr/lib/jvm/java7/ (my is /usr/lib/jvm/java-7-sun-1.7.0.01). The external libraries will be automatically added when you put the location of the JVM.

Set the Sun (Oracle) 32-bit JVM as default.


While running the Ubuntu-Tweak Janitor, it got hanged, Why?

Finally I have rectified the problem which was occurred due to missing of certain files and invalid file permission.

Now, It works fine.


Bluetooth headphones problem (ubuntu 16.04)

I have finally found the answer in this thread: No sound from bluetooth headset, but it's detected
This script https://gist.github.com/pylover/d68be364adac5f946887b85e6ed6e7ae#file-a2dp-py just fixes the problem. Works flawlessly


tee: constraint_0_power_limit_uw: No data available

The ability to adjust TDP (Thermal Design Power) at the OS (Linux) level requires:

An processor where TDP is configurable (actually TDP is fixed, but the max power is adjustable)
A BIOS that both supports this stuff AND has made it available to the O.S.

Check by looking at the enable flag. Two examples:
doug@s15:~$ cat /sys/class/powercap/intel-rapl/intel-rapl:0/enabled
0

.
doug@s18:~$ cat /sys/class/powercap/intel-rapl/intel-rapl:0/enabled
1

Now, attempt to enable the one that is disabled:
doug@s15:~$ echo 1 | sudo tee /sys/class/powercap/intel-rapl/intel-rapl:0/enabled
1
tee: '/sys/class/powercap/intel-rapl/intel-rapl:0/enabled': Function not implemented

Which does not look good. So let's check dmesg on this computer:
doug@s15:~$ dmesg | grep locked
[   21.945790] intel_rapl_common: RAPL package-0 domain package locked by BIOS
[ 5315.714761] powercap intel-rapl:0: package locked by BIOS, monitoring only

So, observe that it is BIOS that is not allowing it. And in this case, the BIOS does not support this at all, it isn't just disabled. Readers will want to check their BIOS for some sort of enable, but I could not find such a switch in the BIOS of my computer that does work.
So, for the computer where we know this will not work:
doug@s15:~$  echo "94500000" | sudo tee /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw
94500000
tee: '/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw': No data available

Now, for the computer that has enable as 1:
doug@s18:~$ cat /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw
93500000
doug@s18:~$ echo "94500000" | sudo tee /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw
94500000
doug@s18:~$ cat /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw
94500000

Note: While researching for this answer, I did find testimonies where users were able to write a 1 to enable from the 0 state. I think this would indicate that BIOS supports this stuff, but it defaulted to disabled.


Anatol,
I experience a similar problem with my laptop. However, when I do

sudo iwconfig wlan0 txpower 30

...then,

sudo iwconfig wlan0 essid MyESSID key xxxxxxxxxxxx

...I get connected.

I have a modem very close to my desktop, with no wall interfering, and sometimes I connect, sometimes not. Then I guessed maybe a power issue was the cause. In my case, I was right.

Hope this confirms your suspicions.


How to make the path of a symbolically linked directory the exactly the path of the original directory?


Kubuntu 19.04 doesn't open "4K Video Downloader" normally

I have the same problem here. Seems some issue with the launcher.

Copy the .desktop to your Desktop. It will launch from there no problem.


How to connect Ansible to AWS-EC2 via ssh

In general we should use domain credentials not the key based authentication to run playbook from control node to any of you remote server.

But in your case you are trying to authenticate using root user and the key.
So follow the below steps:

Create an user named as ansible & Create key at control node (
ansible master server) for   user “ansible”.
If you created keys for
this user will get two files  private-key & public-key.
Copy the
public key content into of remote servers
“/home/ansible/.ssh/authorized_keys”  which you want to manage via
ansible control node.
Now check the SSH using below command

ssh -i /path/to/private-key  ansible@<remoteserverip>

Hope this helps.

Regarding ansible configuration there will one parameter in /etc/ansible/ansible.cfg about mentioning private.
    private_key_file = /path/to/private-key


Why does my Laptop overheat ever so often and shut down with Ubuntu 11.10 installed?

can you list your notebook specs? generally, it can be a problem with graphics hardware, cooling system(fan), or bios. check hp website whether your model has any available bios updates. one major reason of overheating, normally overlooked, is cleaning of notebook's cooling system. i faced same problem last year.


Suggesting this is a dupe assumes adding Arduino to the sudoers file is a good idea, which it isn't. Never add an application that potentially ruins your system, or edits code to ruin your system to the sudoers file, simply because it as a security risk.

Only add applications or scripts to the sudoers file if:

the code cannot be edited (stored in a location that requires administrator's permission to write on), and
the application does not have the potention to edit code of other applications or scripts.

What to do in this case

Copy the existing .desktop file to ~/.local/share/applications:

cp /usr/share/applications/arduino.desktop ~/.local/share/applications

Open the file with gedit:

gedit ~/.local/share/applications/arduino.desktop

and add a section at the bottom of the file:

Actions=Arduino IDE with sudo;

[Desktop Action Arduino IDE with sudo]
Name=Arduino IDE with sudo
Exec=gksu arduino
OnlyShowIn=Unity;

Now arduino runs "normally" when you click on it, but has the right-click option to run with sudo:

Notes

If you don't have gksu installed (on 16.04, it is pre-installed), you need to run first:

sudo apt-get install gksu

You probably need to log out /in for the edited launcher to be effective.

Alternatively

If you don't want the Arduino icon locked to the launcher, add the command as a keyboard shortcut: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

gksu arduino

to a shortcut of your choice.


I figured it out!!!!

I used Midnight Commander go in as root and I copied all of the files to a new HDD, telling it to ignore all of the tags.  I now have access to all of my music.

The problem, as it turns out, is that the disk is mounted as read-only.  I would love to figure out why, but I'm happy with the way it is right now.

Thank you to all who helped.


How to check whether the linux system using a large disk space?

To answer your question:

df -h only shows you the size of the partitions, and the contents of those partitions.

lsblk will show you the partitions sizes, as well as the disk they are hosted on.

You need to re-partition to use empty space.

The other answer does not explain it, but links to a possible way to expand your filesystem.

Unfortunately, I cannot provide any experience on how to do this.

Further Reading:

Resizing Virtual drive
https://askubuntu.com/a/88651/606721


As ScriptEditor folder is missing, there is no FSE2.exe file. So when I changed the path of the "FiddlerScript Editor" to "gedit", it worked. Now I am able to customize rules in gedit. See below Screenshot for more details.


Experiencing random freezes on Ubuntu 14.04 LTS

Install the latest stable NVIDIA drivers supporting GTX670 from the Proprietary GPU drivers PPA.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352
sudo reboot

Note 1 : If you ever had NVIDIA drivers installed - uninstall every NVIDIA related software before.

Open a terminal and execute :

sudo apt-get purge nvidia*
sudo reboot

Note 2 : In case you have a notebook with switchable graphics install Optimus support as well.

sudo apt-get install nvidia-prime


You can't upload a .deb to a PPA, but you can use the command quickly share and quickly release to create a PPA easily.


Mozilla Firefox terribly slow on Ubuntu 14.04

Well I checked a youtube video, that shows a procedure, and it worked perfect for me!. Now firefox is way faster that before, and more than that, is faster than chromium!. The procedure is basically the following:

open a new tab in firefox and write "about:config". Enter.
Press in "I'll be carefull, I promise", in order to get into the settings page.
Once in the settings page, In the "filter" field write: network.http
Go to the list below and double click "network.http.pipelining" in order for it to change from "false" to "true"
do the same for "network.http.proxy.pipelining"
Now, in the "filter" field write: network.dns
Go to the list below and double click "network.dns.disableIPv6" in order for it to change from "false" to "true".

That's all! now you have the Fastest browser you'll ever find!.

Just for the record: Firefox version: 29.0 , Ubuntu version: 14.04


How can I add a program to Startup Applications using a python script?

Acc. to this specification, placing a .desktop file to ~/.config/autostart should work. So basically the task of your python script is

Place a python script somewhere
Place a .desktop file under ~/.config/autostart.

Here's an example of such a script

import os

autostart_path      = os.path.expanduser('~/.config/autostart/')
nameofmyscript      = 'myscript.py'
nameofmydesktopfile = 'myscript.desktop'

mypythonscript      = """#!/usr/bin/python
print("hello")"""
desktopfile         = """[Desktop Entry]
Type=Application

# The version of the desktop entry specification to which this file complies
Version=1.0

# The name of the application
Name=Script

# A comment which can/will be used as a tooltip
Comment=My cool python script

# The path to the folder in which the executable is run
Path=%s

# The executable of the application, possibly with arguments.
Exec=%s

# Describes the categories in which this entry should be shown
Categories=Education;Languages;Python;

""" % (autostart_path, nameofmyscript)

# write the desktop file
with open(autostart_path + nameofmydesktopfile, 'w+') as script:
    script.write(desktopfile)

# write the python script; you can place it anywhere actually, just be sure to correct the desktop
# file accordingly
with open(autostart_path + nameofmyscript, 'w+') as script:
    script.write(mypythonscript)

os.system('chmod +x ' + autostart_path + nameofmyscript)


Try changing to root using sudo su and then creating/modifying documents using administrative privileges using mkdir.

Note: Using root account you might harm your filesystem. Be careful about that.


Just a few pointers here to get you started:

if you don't need or want the second computer to use a monitor after the first installation steps, install Ubuntu Server and login from another computer using SSH (on Windows, use the PuTTY client). Otherwise, install Ubuntu Desktop. Version 14.04 LTS is the recommended "stable" version in both cases.
Hook up a large disk drive to house all your content files and folders.
Use Samba to turn the disk into a "share" - a location that can be accessed over the network from any networked computer. This is basically the Linux version of a Windows protocol, so most computers will recognize a share out of the box. Search this site for Samba-related questions.
For specific questions, ask this forum.


Okay, first of all try to boot your system using a live CD or USB of Ubuntu. If you already created the one of Wily (15.10) boot with that one.

Instead of starting the installation, try to access the hard-disk. You should be able to open it from the Desktop or File-Manager.

Look for the home directory and try to backup it. You can insert another USB-drive or hard disk or anything big enough for your data.

After completing the copy of the whole home directory, install Ubuntu and let the drive to get formatted so you will have a fresh system.

Try to use the same user-name as you used in previous system so you will be able to access the stuff more easily.

After the installation do not reboot yet. Copy the contents back to the newly created home directory and let it overwrite existing data.

If you cannot login after that. Try to change to the terminal (With Alt+Ctrl+F1) and become Super-User.

You might need to ensure that you have the right permissions and they might differ compared to the old system.

For that from the terminal do the following:

sudo -i
chown -R <username> /home/<username>

Now reboot your system with reboot. You should be able to login, unless the contents of your home directory are odd. You might be missing your favorite software which you can install and it might use your previous configuration, for example with pidgin that works very good. You should find your Desktop as you left it in the old system but with upgraded Wily.


Can't Install Ubuntu in UEFI mode; the live USB I made only boots in legacy mode

Have you tried installing Ubuntu with UEFI Mode using Plop Boot Manager at your windows?
I tried this method to install Xubuntu on an old laptop that didn't recognize the bootable USB, then via Windows, I added this option to the menu using Plop Boot Manager, you can install it at your windows and execute it, later the computer restarts and the USB is detected via Plop Boot Manager and then you can install Ubuntu independent from mode BIOS.
My English it's not very good, then I recommend you a link that explains better how it works:
[1] How works (English Web):
https://www.plop.at/en/bootmanager/index.html
Link to download (English Web).


After the removal of Ubuntu Classic in 11.10, will I be able to install it once again?

Yes. You always will be able to open another session (in GDM) and customize it.

How do I install and use the latest version of GNOME?


Ubuntu 12.04 not loading after removing Wine

Welp, be more careful with the * character next time, it means everything.

Here's a guide on Ubuntu data recovery. Depending on what happened it might be possible to recover some things. If you really removed everything a lot of messages would'v appeared - you could'v pressed Ctrl + C to interrupt it. If that's the case, then unless you made a backup of your applications it's not possible to restore them. On the other hand, your data such as documents, pictures, etc, probably were NOT lost.

You can boot without X and make a backup of your files before re installing Ubuntu. Check how to copy files from terminal if you don't know how to do it. While in console mode, use man command or command --help to get more info - replacing command with the command you need help with. ls lists directory and files, ls -R does it recursively, i.e. searching sub directories.


Open Firefox preferences window under 'Edit'->'preferences'.

In the preference window that opens up, select the Advanced tab and then the Network tab. Your cache management settings will be under 'Cached Web Content'.

Check the 'overide automatic cache management' and select your preferred cache size.

See screenshot below:


Default download server in Software & Updates

It depends on the network speed. To check the speed of mirrors yourself, you can run
curl -s http://mirrors.ubuntu.com/mirrors.txt | xargs -n1 -I {} sh -c 'echo `curl -r 0-102400 -s -w %{speed_download} -o /dev/null {}/ls-lR.gz` {}' |sort -g -r

This command is taken from @Kandy's answer https://askubuntu.com/a/719551/1107236


fail2ban banned my IP but I still can SSH

At /etc/fail2ban/jail.local, change the sshd port from ssh to YOUR_SSH_PORT.

This answer has more details: https://serverfault.com/a/382859/406146


Calling .py script from .sh script error "ImportError: No module named apiclient.discovery"

Had to prepend the python path in the crontab per this SO answer.

e.g. 01 00 * * * /usr/bin/python /home/ubuntu/data_scripts/test.py


It is easy, just extract it.
You can do right click extract here or in the terminal

  tar -zxvf eclipse-jee-juno-linux-gtk.tar.gz

You will see the eclipse file in the folder double click it and that is all.

You can also use a normal GUI for this as well, So in most cases its a simple as right clicking on the file and selecting "Extract" or similar..

But as a further note, You generally do not want to have your applications sitting in your user directory/desktop/downloads... You shold move the extracted folder depending on your distro and then link via a normal menu icon/entry.

Else one day you might decide to empty your downloads folder and delete your installation/custom settings... and possibly projects for some who dont pay attention to folder/locations.


Keys don't repeat anymore, touchpad tap and touchpad two-finger scroll don't work anymore

I had symptoms similar to yours regarding keys but not touchpad.
The solution I found was from Fixing Keyboard repeat problems in Kernel 4.13. Check it out to find a more comprehensive guide and explanations.
Writing showkeys in a terminal showed that keycode 213 was being pressed and unpressed about once every second, explaining why keys held were being interrupted.
This is caused by the PEAQ WMI hotkeys module, that I see you have running too.
So to fix the keyboard
I typed in a terminal
sudo rmmod peaq_wmi

and verified that this fixed my problem temporarily. To keep the setting after the computer is restarted, I typed
gedit /etc/modprobe.d/blacklist.conf

and added the following to the file
#spams ^@
blacklist peaq_wmi

(Note: I do not know if this module was important to the functioning of my computer in any way. I will personally make a note that if something on my pc doesn't work I can try to re-enable it. I'll also check in a month or two to see if I can re-enable it because an update has fixed the issue.)
To fix the touchpad
according to the post you can try similarly
sudo rmmod psmouse
sudo modprobe psmouse

and if this fixes the problem until next time you restard, you can do
gedit /etc/rc.local

and add these lines
/sbin/rmmod psmouse
/sbin/modprobe psmouse


netExtender vpn 6.0 works momentarily then remote hosts timeout


A TPM error (7) occurred attempting to read a pcr value

First of all TPM is:

  Trusted Platform Module (TPM) is an international standard for a
  secure cryptoprocessor, which is a dedicated microprocessor designed
  to secure hardware by integrating cryptographic keys into devices.

  In practice a TPM can be used for various different security
  applications such as secure boot and key storage.

  TPM is naturally supported only on devices that have TPM hardware
  support. If your hardware has TPM support but it is not showing up, it
  might need to be enabled in the BIOS settings.

1. So if you do not need use the TPM feature you can disable it via the BIOS settings. I have a machine with Phoenix BIOS and these settings are placed within the Security section.

2. Also you can ignore the TPM feature through the Ubuntu settings. Just type this command:

echo "blacklist tpm_tis" | sudo tee -a /etc/modprobe.d/tpm_tis.conf

Where the command tee -a will append the echoed line (blacklist tpm_tis) into the end of /etc/modprobe.d/tpm_tis.conf or will create the file if it's doesn't exists.

3. Sources and other solutions:

ArchWiki: Trusted Platform Module
A TPM error (6) occurred attempting to read a pcr value
A tpm error (7) occurred attempting to read a pcr value in centos


Why does Minecraft crash on Lubuntu but not Ubuntu?

I had Lubuntu, and it ran Minecraft fine, and I only had openjdk 6 & 7, and a friennd of mine has the same setup (software-wise, not hardware) and he runs Minecraft a little worse, I think its all about the speed of your device.

Do your drivers work? Since I got an Radeon HD 6650M, but Lubuntu and Ubuntu just ignore it and run the game on my cpu.


is there any difference between the shutdown option and cli shutdown

Shutdown through gui and cli are similar since they run pre shutdown scripts to safely close any running programs and power off. Gui shutdown runs through dbus service , and cli through linux default tools.

Pressing power off button and holding will cause the machine to power off immediately without closing programs, so data may be lost.


I solved this issue by reconfiguring the display manager.

sudo dpkg-reconfigure gdm3


Unable to install Ubuntu-14.04-desktop-i386

I never had this error but looking on the net it seems a problem of the boot sequence, maybe you have to change this on your BIOS (look if your first option it is a net boot sequence). As I look, it seems that your problems comes because he is trying to boot a SO from the net and it doesn't find it so you should change this option on the BIOS.

Try to put, in your boot option, the different options like this:

CDROM
USB
HD
NET

or try to disable the net option (if it is possible).

I expect it solves your problem. Good luck and let me know if it works! ;)


How to switch from nvidia to nouveau drivers on ubuntu 18.04

You can switch drivers by running the GUI Additional Drivers from the Software and Update app.

Or you can do it from the terminal commandline by running these commands:

$ ubuntu-drivers devices

This will show you your available drivers.  Then pick the nouveau driver found and switch to it with this command:

$ sudo apt install [xserver-xorg-video-nouveau]

The [xserver-xorg-video-nouveau] is an example a nouveau driver that might be found.

If for some reason you have removed your nouveau drivers, you can reinstall them with (for example):

$ sudo apt install nouveau-firmware

You can verify the available nouveau drivers from the repository with this command:

$ apt search nouveau


When you issue egrep "\" string_demo | wc -l, your shell is treating \ as backslash escape and continuing to take input in the PS2 until you enter EOF (Ctrl + D).

In these cases you need to use single quotes to escape being interpreted by shell. More precisely, if you want to search for literal backslash in a file, use:

grep '\\' file.txt

Example:

$ grep '\\' file.txt
eagle,dove\ ,cat

Here i have made two changes, firstly used single quotes ('') and secondly used \\ to tell grep that i want to look for literal \, otherwise grep will show me the following error:

$ grep '\' file.txt
grep: Trailing backslash

In a nutshell, you command can be written in following ways:

Using Bash's Process Substitution:

wc -l < <(grep '\\' string_demo)

Using usual method:

grep '\\' string_demo | wc -l

****Don't use egrep, it is deprecated in favour of grep -E.

Check this post of U&L to get the differences between grep, grep -E & grep -F.


My Launchpad bug was marked as a duplicate of another unrelated bug. What should I do?

At a glance, I'm not sure it's unrelated. And I say that wanting to give you the benefit of the doubt. Your bug does spend some time enumerating a permission problem that is covered by the first comment on the master question:

  These actions were for ConsoleKit. logind has its own rules, so you need to rewrite them to enumerate org.freedesktop.login1.suspend and org.freedesktop.login1.hibernate (see /usr/share/polkit-1/actions/org.freedesktop.login1.policy).

The rules have moved. Here's another bug report that goes over the same ground. I know you've seen this before but I want to make sure it's clear, this is the sort of code you want:

# cat /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.pkla
[Disable suspend by default]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no

[Disable suspend for all sessions]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no

If that's not enough (either it not working or nor suppressing the menu item, or some mix of the two), edit your bug description and make it super-extra clear that your issue is with the indicator... And then shunt it back to confirmed (or whatever it was before.

In general terms though, you have to look at the bug in question and work out whether or not the master version (or any others linked to it) actually describe or are the source of your problem. If they're not, make that as clear as possible and reopen.


HP Printer Error - "Unsupported Personality: PCL"

Similar problem printing to an old (c.2003) HP LaserJet 1010 from Lubuntu 16.04.5 LTS running on a Dell Inspiron 15. HPLIP 3.18.12 finds the printer and installs it but when printing only blank pages come out.

To get it working I deleted the printer from HPLIP and installed it through the CUPS web interface http://localhost:631 and chose the HP LaserJet 1010 - CUPS+Gutenprint v5.2.11 under Make & Model options, not the HP LaserJet 1010, hpcups 3.18.12 (en) option/s.

This does work but occasionally one gets a long delay on a print job and a blank page with "Unsupported Personality: PCL" printed at the top. As described below, the only solution to this seems to be to turn the printer off and on again, and retry the print job.

(http://www.openprinting.org/printer/HP/HP-LaserJet_1010
"Unfortunately, the new LaserJet 1010/1012 series seems not to be absolutely compatible with older HP printers or it has a firmware bug. Sometimes it happens that the printer stops working and reports the error "Unsupported Personality: PCL". It only continues working when one kills the job and power-cycles the printer.")


ubuntu 15.04 wakeup from sleep : unclaimed register

It was solved by installing bumblebee with nvidia-346. The detailed solution is available at https://askubuntu.com/a/534567


Looks like you had an update on virtualbox and because of that, its kernel module wasn't recompiled (that's why it wants you to install the dkms package).

I don't know if you're running the open source version of virtualbox, but usually running this command:

sudo /etc/init.d/vboxdrv setup

solves the problems.


After update to 13.10: 2nd standby after opening lid

EDIT: This is fixed in xfce4-power-manager 1.2.0-2ubuntu1.1. Install that version from saucy-updates to fix this issue without the workaround of editing /etc/systemd/logind.conf.

I have the exact same problem, see bug raised at https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1241896.

There's a similar bug with gnome-settings-daemon apparently (#1180513) and someone mentioned logind may be the culprit but currently it's not clear if that's the root cause, or if there's a workaround. Also 1180513 apparently had a fix released but users are still reporting problems.

In the meantime follow bugs 1241896 and 1222021 for a XFCE resolution.


Getting a setup script to install in the correct library destination. (Pmw 2.0.0)

I have just installed Pmw 2.0.0 using python3 on LinuxMint 17. I downloaded the current release candidate from here and performed the following three steps:

python3 setup.py config
python3 setup.py build
python3 setup.py install

I assume that you typed python instead of python3, but please correct me if I'm wrong. Using python instead of python3 will cause the installation to that version's site-packages directory instead of the desired one.


How to recover encrypted home data with Live CD?

I should refer to this useful article; I think what you're looking for is the ecryptfs-recover-private utility.


Getting native resolution on Ubuntu 16.04

I Managed to get 1080p working after using 1920 1080 59 instead of 60.


17.10 gnome-terminal resize info with CompizConfig Settings Manager

This seems to be a Wayland specific issue (see this bug report for Fedora).

As a workaround you may switch back to an Xorg session for now.


WiFi not working on Asus U32 with Ubuntu 14.04

Please copy and paste this command:

echo "options asus_nb_wmi wapf=1" | sudo tee /etc/modprobe.d/asus_nb_wmi.conf

Reboot and wifi should work.

you may have to toggle your fn keys to remove the hard block after rebooting.

Here is the link with full details courtesy of varun and chili555.
http://ubuntuforums.org/showthread.php?t=2181558


Trying to install Lubuntu 14.04 on Dell Dimension 2300

Lubuntu 14.04 was released with a bug that did not start the nm-applet.  It has been fixed. However, if you are trying to install 14.04, you must physically start the network manager.  To do that go to Menu->Preferences->Default applications for LXsession->Autostart
Navigate to Add and type in nm-applet.  Then tap Add.  I believe that you have to log out and back in for it to take effect.  Once you get on the Internet, one of the updates will fix that bug.


Can't connect to emulator through ADB genymotion

This actually solved my problem
sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb


Ubuntu has a built-in utility to do this!

Simply search for "Backups" in the dash, and the app will pop up:

Click on the icon to open it, and then you should see this:

Simply adjust the settings to your liking, and do a backup.


That printer has never been supported on Linux by Konica. You might try installing the driver from Terminal to see if that gets you a better outcome.

sudo apt-get update
sudo apt-get install printer-driver-min12xxw


Try this:

~/.local/bin/uninstall-opera-next

or if you installed it globally:

sudo /usr/local/bin/uninstall-opera-next

After that you'd need to manually remove the user date in ~/.opera-next.


Sorry for answering my own question, but I found out, that this was caused by a setting of XDG_CURRENT_DESKTOP=Unity in my .profile. That had to be set in order to show the overlay when clicking the dropbox icon in the (top) taskbar.

After removing that line (i.e. not using that env. variable), the icons are back again!

Seems odd that this variable is causing the unity-control-center to not show some icons (and why not all of them?). The variable should be consistent, because this is Unity. Anyway, if you stumble upon the same issue, you have (at current state of 17.04) to make the tradeoff between not seeing the Dropbox-Overlay with it's infos and not seeing the icons in the settings. For my laptop-ubuntu this was a no-brainer...


I used sudo halt and now can't access my server to restart!

You're going to have to talk to someone who has physical access.  Unless it is running inside a VM in which case the VM owner may have set up a web-based administration tool you can log on to.


Below is a link to Ubuntu Desktop Help Guide for version 12.04.  In it you will find instructions for making a wireless connection and even a troubleshooter to diagnose the problem.

https://help.ubuntu.com/12.04/ubuntu-help/net-wireless.html

In general, the more information you give, the better the community can answer your question.  For instance, what version of Ubuntu are you using?  What are the Make and Model of your wireless network interface card?  Here is a link to a thread's answer that gives the Terminal commands for that information:

How can I debug my wireless problem?

Please try these links and reply to your post with more information and/or specific errors or questions.

Here's just some useful info for new Linux users:

http://www.wikihow.com/Get-Familiar-With-Ubuntu-Commands


How to install webmin on a desktop not on a server?

I'm now adding the steps to install Webmin 1.580 on Ubuntu 12.04. Please ensure that you have OpenSSL installed, otherwise you are not going to be able to run Webmin over TLS.
To do that just run
openssl version in your terminal, you should get an output similar to the following, if you have it installed:
OpenSSL 1.0.1 14 Mar 2012

There is no specialized Ubuntu version, so we need to install the Debian version and make manual changes. The steps are:

First, we need to add the official Webmin repository to our list of software packages by using the following:
Add the following line at the end of /etc/apt/sources.list file:
deb http://download.webmin.com/download/repository sarge contrib
You can use, sudo vi /etc/apt/sources.list for the above.
Now we need to add Webmin author Jamie Cameron’s public key to our keyring. Do this from your home directory:
wget http://www.webmin.com/jcameron-key.asc
When the jcameron-key.asc file has completed its download, do the following:
sudo apt-key add ~/jcameron-key.asc
Now we can install Webmin from the repo we added:

Update your repository index:
sudo apt-get update
Now install webmin using:
sudo apt-get install webmin

You should now be able to access webmin at https://<hostname>:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.

Courtesy: http://www.kelvinwong.ca/2010/05/22/installing-webmin-on-ubuntu-server-10-04-lts-lucid/
N.B: This is a faithful reproduction of the steps posted in the above link.


Application Development - basic how to questions

I am the Developer (and packager) of Wallch, which is a C++ application and thus it is not build and packaged with Quickly.

For that reason my answer will include general information about your questions that (should) apply in any case (as far as I know).

Answering your questions, now:

(1)

You can set as your application's dependencies, only the ones that are at the default repositories of Ubuntu. You may not include dependencies from PPAs etc. You can add your dependencies at the debian/control file. An example debian/control file for my application is the following: paste.ubuntu.com/1113694.

As you can see, there are 2 'Depends' fields, in the Build-Depends you have to specify what is essential for building your application. I am pretty sure that Quickly should fill this field automatically. The other packages that are important for running your application should be listed under the Depends field. This is were you have to specify any extra dependencies that you have. What you have to specify is the package-name that the user should download and install (this process is automatic, of course)

(2)

The dependencies, as far as I understand from your question, are separate programs who can run and produce big output files. Now, it really depends where those files are being stored. I would say that:

If your application indirectly creates those big output files, you can select to save them anywhere you like
If the user separately produces these files, then you can let the user from inside your application to select one of these files for processing.

It really depends on how these files are being produced and what they have to do with your application.

If you just create some files and then you want to process them with your application, then you should use the /tmp directory. Run the dependency-program and guide it to generate the files to /tmp and then have your program read and parse the files from there.

(3)

As far as I know (because I participated at this specific contest as well), the structure that Quickly creates lays under /opt/extras.ubuntu.com/programname, where the user doesn't have write permissions. This means that if the user normally opens your application and, from within your application, you have chosen to save your program's files under /opt/extras.ubuntu.com/programname, the user will not be able to save those files. Instead, he will have to run your application with root privileges, which is generally discouraged.

Again, it depends what those files are for. Are those files readable from the user or they are only usable from within your application (something like configuration files)? If the former is true, then you should let the user choose where to save those files. If the latter is true, then you should place those files under ~/.config/ProgramName/
The directory ~/.config/ProgramName is a directory where all applications save their configuration files.

Edit after more requests from comment:

Generally, in your occassion, you should do the following:

Your program generates files depending on user input (which result into ~/.config/ProgName because they might be reused and should not be deleted)
The tools you depend on read these files (from ~/.config/ProgName) and generate some other files (who result into /tmp)
Your program takes the generated files (from the tools) from /tmp and does any calculation/drawing etc... After doing what your application has to do with the final files under /tmp, it would be good to delete them.

As for whether you have read/write permissions at the configuration folder, the user has full read/write permissions in everything under ~/ (your home directory), and thus, everything under ~/.config/ belongs to him as well.
Note that the user has read/write permissions under /tmp, as well.

Tip: You can use the mktemp command so as to generate temp files under /tmp with random name


Ubuntu not display the remote desktop properly?

If you want to connect to "your desktop" via VNC, you should probably use the default 'Desktop Sharing' application (vino-server) that is provided as part of the ubuntu-desktop package, rather than a separate vncserver session. You can configure it by entering 'Desktop Sharing' in the dash search, or from the command line by running vino-preferences.

Standalone vncservers (such as vnc4server and tightvncserver) use their own session startup file located at $HOME/.vnc/xstartup, and the default file that ships with the package just starts a simple X terminal window on a plain gray root window (which is probably what you're seeing).

You can find a sample $HOME/.vnc/xstartup file in the Ubuntu Community Help Wiki at VNC/Servers - Customizing your session which you can copy and edit to start your chosen desktop session - which must sorrespond to one of the available .desktop files in your /usr/share/xsessions directory. Note that the ubuntu-2d session referred to in the Wiki is no longer available in 13.10.


Is it possible to track the terminal command of a user

You can increase the bash history size. Basically you can increase it to unlimited.

export HISTSIZE=
export HISTFILESIZE=

The above lines can be added in ~/.bashrc of the user or /etc/bash.bashrc


try updating all packages

update software list :

sudo apt-get update

upgrade softwares :

sudo apt-get upgrade

to update specific program :

sudo apt-get install (package)


openssl and PKG_CONFIG_PATH problems while configuring mongolite package from R

I finally re-ran install.packages("mongolite") in RStudio and it miraculously worked fine.


How to add greek polytonic with setxkbmap

To set it with setxkbmap:

setxkbmap 'pl,gr' -variant ',polytonic' -option 'grp:alt_shift_toggle'

-variant sets variants for each selected layout and -option 'grp:alt_shift_toggle' enables switching layouts with Alt-Shift.

The available layouts and variants can be seen in /usr/share/X11/xkb/symbols. Every layout has its file and by listing such file you can find the variants of the layout.

(BTW the options are listed in /usr/share/X11/xkb/symbols.)

If you need to make the settings permanent, instead of using setxkbmap, you can edit /etc/default/keyboard.


Sound over HDMI not working any more after waking up from suspend

Hardware malfunctioning after suspend sounds like a driver bug to me. ubuntu-bug -s audio

In the meantime, as a workaround, you can try sudo alsa force-reload to force your drivers to unload and reload (will kill all running sound apps in the process though).


You need to install the firmware files for your wireless adapter:
https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx

If you can access command line try installing the open source b43 driver:

sudo apt install firmware-b43-installer


Chinese Keyboard returned different keycode when pressing F1

PROBLEM SOLVED!

Okay, so after a while messing in xkeycaps, I decided to try out different keyboard layouts, the 104 keys and the 105 keys. Looking that the layout, I found out that in the 104 keys layout, the F1 key was bound to 43. The 105 keys on the other hand, bound the F1 key to "Help". This means by changing the keyboard layout from 105 keys to 104, I could solve this problem.

Edit /etc/default/keyboard. Inside you'll find the line

  XKBMODEL="pc105"

Change pc105 to pc104

Run sudo dpkg-reconfigure console-setup

And the F1 key can now be detected using xev


How do I install program files on a separate partition?

With the linux directory structure applications are installed by convention. Depending on your distro and the nature of your applications, they are stored in /usr/bin/ /usr/local/bin/ /opt/ /home/ or others.

If you ran out of space you will usually want to resize existing partitions or mount some of these paths to a different partition.

In your case I would use a single partition with ext4 filesystem.


How to change default action on the second monitor in XUbuntu

There's a small bug on XFCE concerning this subject. Go to Settings->Displays and click on Mirror Displays to activate it and click on it again to deactivate it. Now your secondary display should be placed as an extension of the primary one and you should see two monitors on the left. Drag and place them wherever you like and apply the changes afterwards.


I am assuming you want to be able to do this both ways, that your username of the logged in user is the same on both machines, that you are happy to get it working as quickly and as simply as possible and that you don't require to use keys to do this.

The steps are:

Set up ssh

You need to install the packages openssh-client and openssh-server
Then from 192.168.20.9, check you can connect to 192.168.20.10

ssh 192.168.20.10

You will be prompted for the password of your use on 192.168.20.10. Enter that to continue. When asked if it is okay to connect, say yes.

Repeat the process the other way.

rsync files

To copy a file called todo.txt from your Desktop on 192.168.20.10 to 192.168.20.9, you can do this when logged into 192.168.20.9:

rsync -av 192.168.20.10:Desktop/todo.txt ~/Desktop/todo.txt

Or the other way, when logged into 192.168.20.10:

rsync -av ~/Desktop/todo.txt 192.168.20.9:Desktop/todo.txt

Make it easier.

On machine 192.168.20.9 you can add 192.168.20.10 as a network place in Nautilus under File > Connect to Server and choose ssh and enter your username, password etc. Set this up the other way round on 192.168.102.10. You can then use Nautilus to copy files using scp, ...which is nice.


Recover my user account after reinstalling Ubuntu

If your data in filesystem /home is not deleted, after you reinstall Ubuntu, you canrecovery your data as following:
1) edit your /etc/fstab, add an entry to specify how to mount your /home filesystem
2) chown ${newUser}:${newGroup} -R /home/${oldUser}
3) logout/login

Actually, I didn't try that, but it may work.


The location of the pipe is set in "Edit→Preferences→Inputs→Paths". Most likely the default is:

~/.lyx/lyxpipe

(so that is your home dir and then hidden directory .lyx; if you do ls -a|more in you home dir it will show all hidden files including .lyx).

LyX adds the '.in' and '.out' suffixes while creating the pipes so the names are going to be lyxpipe.in  and lyxpipe.out.

Regarding lyx itself.

 which lyx

will show you the place of the executable and it will show:

/usr/bin/lyx2.0

That is not a directory in your home but in the /usr/ directory. This directory is in your PATH so you can execute it from anywhere on your system by typing "lyx2.0".


Installing MS Office 2013 on Ubuntu 12.04 LTS

I suggest you use AbiWord instead.  It's compatible with DocX and you has a number of advantages over word (no, I'm not joking, really)... there's a good reason why it's referred to affectionately as "the underappreciated word processor" by some.

As for the rest of Office, I suggest you do one of four things:

If you must have Office 2013, it doesn't current work w/ Wine... so use VMWare, etc. ADVANTAGES: the
software you want! DISADVANTAGES: in separate
environment)
Install Office 2010 instead on Wine. IMPORTANT!! (I don't recall seeing anyone else put this... ONLY the 32-bit version works.  The 64-bit won't install (just like 2013).
ADVANTAGES: faster access, probably more responsive, easier
file access! DISADVANTAGES: you may miss some of 2013's
features if you're a power user or find it less visually appealing,
depending on your preferences.)
Get an Office 365
subscription.  Test if it the desktop versions will install in Wine (and add your results here, please).
Even if they won't you can still use the in-browser version when
your internet connected (which I assume is most of the time)
ADVANTAGES: fast, your data auto-saves and is accessible
anywhere from the cloud in-browser! DISADVANTAGES: major step
down in functionalility.)
Switch to an open source or
third party alternative, e.g. Libre Office (widely distributed w/
Linux) or Google Docs (in the cloud) ADVANTAGES: Probably free!
Inherent advantages if you pick a cloud app.  Personal satisfaction
if you support open source! DISADVANTAGES: Probably lacks
compatibility w/ at least some Office features.

Hope that helps!

P.S. I'm not sure why some downvoted you -- this seems a valid question.  True, you might not have provided all the possible info (e.g. why you're not considering Office 2010 or an alternative like Libre Office), but you asked a relatively clear question, which is perfectly reasonable from a beginner-to-mid-range user.  Let's be respectful... I digress.


How to install Rigs Of Rods on Ubuntu 14.04?

Here is what worked for me:

Add ppa repository:

sudo add-apt-repository ppa:aapo-rantalainen/rigsofrods

Update package list:

sudo apt-get update

Install rigsofrods package:

 sudo apt-get install rigsofrods


Using aptdcon or other apps in non-interactive script(s)?

Since no one answered. I added my workaround to this question.

Instead of using aptdcon I use aptitude to display all the available updates in a logable/scriptable format.

aptitude search '~U'


How to install openjdk-7-jdk on Ubuntu 12.04 without dragging in unrelated GUI and sound packages?

UPDATED

I personally try to avoid Java because in my opinion it is very clumsy.
These instructions are pieced together from various sources,
I had to install Java recently and this should work for you.

If your licensing requirements permit, install Oracle Java.
Download java from here, you need to chose which one you need based on what you have installed.

JDK x64

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz

JDK x32

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz

JRE x64

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-x64.tar.gz

JRE x32

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-i586.tar.gz

Note that you need a workaround for wget and oracle to play nice together.

Create a directory where your Java will live:

sudo mkdir -p /usr/lib/jvm

Move the downloaded Java:

sudo mv jdk-7u51-linux-x64.tar.gz /usr/lib/jvm

Extract Java:

sudo tar zxvf jdk-7u51-linux-x64.tar.gz

Tell Ubuntu that Java exists:

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_51/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_51/bin/java 1
sudo update-alternatives --set javac /usr/lib/jvm/jdk1.7.0_51/bin/javac
sudo update-alternatives --set java /usr/lib/jvm/jdk1.7.0_51/bin/java

Add java path to your system profile, so that the machine knows where the Java binaries are:

sudo nano /etc/profile

At the end of the file add this:

JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
export PATH

Save and reboot.

Test your Java installation:

java -version


Cannot escape character '@' in fstab file

It seems that this is not possible in fstab file as @ symbol is also a trigger. Experts recommend using SSHFS instead (https://help.ubuntu.com/community/SSHFS).

I will mark this as an answer.


Launch VMWare Player as root from GUI in Ubuntu 20.04?

This answer is based on How to run .desktop icon from sudo:

Open your terminal and run this command
cd /usr/share/applications

Or
cd /usr/local/share/applications

where the vmware-player.desktop file exists

After that run this command
sudo gedit vmware-player.desktop

Replace
Exec=sudo /usr/bin/vmplayer %u

Save the file and run this command below
sudo visudo

Add the following line at the end of your file
<your-username> ALL=NOPASSWD: /usr/bin/vmplayer

Type your user name, save the file and check that your applications is there.

Hope this helps.


How often will there be updates to the different developer phone images?

As you rightly say it's a developer Version. So updates will come out very frequently. There is no dedicated channel yet to inform the community about updates only. In order to receive all the information about updates or new integrated applications you should subscribe to the mailing list in launchpad.net at ubuntu-phone: https://launchpad.net/~/+editemails


Why don't some cursor themes show up in GNOME?

I don't know if it handles pointers or not, but you could try a GTK appearance app like LXAppearance in lieu of the Gnome theme app.


How do you move the window controls to the window when maximized

Ways to remove the global menu:

How do I enable or disable the global application menu?
http://www.omgubuntu.co.uk/2012/03/global-menu-off-switch-wont-land-in-12-04

Some applications have extentions in order to support the global menu, maybe that is causing your problems. Is it happening to all applications or just specific ones? Which ones?

To disable Global Menu for Firefox, open Firefox, then select Tools – Add-ons –> Extensions and disable ‘Global Menu Bar integration’.

http://www.liberiangeek.net/2012/04/disable-the-global-menu-in-ubuntu-12-04-precise-pangolin/

Alternatively you can just remove the global menu extentions for firefox and thunderbird if you have that installed:

sudo apt-get remove firefox-globalmenu thunderbird-globalmenu


Ubuntu 20.04 boots to grub terminal following updates, unable to permanently fix with update-grub

I would try to recreate the initramfs with:
sudo update-initramfs -c -k 5.4.0-42-generic

Followed by sudo update-grub and a reboot.


What do the different Boot Options mean? (i.e. acpi=off, noapic, nolapic, etc)

In general, such boot parameters are not needed unless there is a problem with your BIOS and how it handles these standards, or it just might be old enough where these standards were not fully implemented properly.

ACPI (Advanced Configuration and Power Interface) is a standard for handling power management. Older systems may not support ACPI full, so sometimes it helps to give the kernel a hint to not use it. "acpi=off"

APIC (Advanced Programmable Interrupt Controller) is a kind of feature found on newer systems. The "local" version is called "LAPIC". What this controller can do is be set up to generate and handle interrupts, a signal the hardware uses to pass messages. Again, some implementations of APIC can have problems on older system, and so it is useful to disable it. "noapic" and "nolapic".

Sometimes the APIC is working, but it slows things down by getting in the middle of messages being passed around. This can mess with audio and video processing, for example. Folks might disable it for that reason as well.


When you do the install - do it in terminal mode - that way you can see what the installer is stuck on. Many years ago - I have similar problems with a strange Network card - which the install process rather freaked out on.

Which version of the Ubuntu 14.04 are you trying to install AMD or Intel ? And what chip set is your old machine ...


How to create an external selfhealing btrfs USB HDD RAID 1 array?

This answer is a guide for showing how I got this going.

My setup is:

1 external USB drive (1 enclosure with 1 drive)

How to:

I created a GPT parition table with two equal sized primary btrfs partitions using gparted. Name the partitions whatever you want, the names will get lost anyway when creating the RAID.

Get the device ids:

$ sudo btrfs filesystem show
Label: none  uuid: 607b4153-7aa9-444d-bc15-c5fe9038f255
    Total devices 2 FS bytes used 28.00KB
    devid    1 size 1.82TB used 2.03GB path /dev/sdc
    *** Some devices missing
Label: 'Max'  uuid: b6647427-9f27-4157-b47b-77f74054b885
    Total devices 1 FS bytes used 28.00KB
    devid    1 size 931.49GB used 2.04GB path /dev/sdc1        // first one
Label: 'Moritz'  uuid: d0eaf97d-249e-4b7c-88a5-b60cc2d489d9
    Total devices 1 FS bytes used 28.00KB
    devid    1 size 931.49GB used 2.04GB path /dev/sdc2        // second one

Create the RAID:

$ sudo mkfs.btrfs -L RAID-Datensicherung -m raid1 -d raid1 /dev/sdc1 /dev/sdc2

Since you can't write to it yet, you need to become the owner of the new device and change the permissions. Mount the device in nautiilus or however and then:

$ cd /media
$ sudo chown julien:julien RAID-Datensicherung
$ sudo chmod 700 RAID-Datensicherung

Once you unmount and remount the device again, you can copy files via drag-and-drop.

When mounting the device in nautilus two volumes show up, but only one of them will show as mounted.

Once you copy files to the disk from another external drive you'll see that write speed to the RAID volume is twice than the read speed from the other external device because of the raid mirroring.

I still have to find out how to check if the self-healing works and will update this answer accordingly.

Update 1

User @Oli is asking the related question about flipping just one bit. Just like him, I need to do this stealthy, i.e. no timestamps of my interaction or anything like that.

If you change one bit while the file-system is mounted, the change is registered and immediately mirrored. The changed/'corrupted' file is seen as a mere update - not as bitrot.


In Xresources:
This point has been edited in the question and is now correct.
There was a blank space after the backslash in the third line.
It should be removed, otherwise the backslash will not escape the literal newline character.
Ctrl ~Meta Shift <Key>b: string(0x1b) string("[66;5u") \n\

In vimrc:
Use nnoremap instead of map.
nnoremap <ESC>[65;5u :echo "ctrl-shift-a received"<CR>


Packaging for the Ubuntu Software Center

No, give them whatever you have. They'll help you get it packaged.


How can I install Unity 3D game engine for Ubuntu?

The below link used in the wget command can be retrieved here and is subject to change over time. At the time of writing this was the actual link and the procedure is tested in Ubuntu 17.10 and 16.04 but should as well work in lower versions of Ubuntu. If not you might want to consider upgrading.

As well you want at least 15-20 GB free space on your HDD/SSD for this operation. Now that this all is out of the way do the following in a terminal:

sudo apt install gdebi
wget http://beta.unity3d.com/download/ee86734cf592/unity-editor_amd64-2017.2.0f3.deb
sudo gdebi unity-editor_amd64-2017.2.0f3.deb


The manpage for mount says in the chapter about the shared subtree operations:

Since  util-linux 2.23 the mount command allows to use several propagation flags together and also together with other mount operations.  This feature is EXPERIMENTAL.  The propaga‐
tion flags are applied by additional mount(2) syscalls when the preceding mount operations were successful.  Note that this use case is not atomic.  It is possible  to  specify  the
propagation flags in fstab(5) as mount options (private, slave, shared, unbindable, rprivate, rslave, rshared, runbindable).

This means:

add option rshared to the options for mounting /
add a new bind mount entry for /with with the rprivate option
add a new mount entry for the tmpfs mount

(I think your /bin/mount --bind /with /withis a typo?)

Never tried that, but maybe it works.


You are right, if you did that, you changed the mode of / of the live-system, but you want to change the mode of / of your root-partition on your hard-disk, so you first need to mount your hard-disk.

Assuming your root-partition is /dev/sda2, enter

mount /dev/sda2 /mnt

to mount your root-partition to /mnt. Then change to that mount-point and change the permissions:

cd /mnt && chmod 755 .

If you are still experiencing problems, a more detailed explanation would be helpful.


If you have 5 partitions with Windows is the extra partition a logical partition in an extended partition, or did you have Windows convert to dynamic partitions. Dynamic partitions do not work with Linux.

Only if you have Windows should you keep a NTFS partition as a data partition. It will need chkdsk on occassion and Linux cannot run that. Linux normally runs fsck on Linux partitions every 40 to 60 reboots automatically.

You can create Linux formatted (ext4 typically) partitions for data if you desire. While you can manually mount with Nautilus each time you reboot, it usually is better to add permanent settings to fstab. You then have to create your own mount points but you can give names that make sense like data, Movies, Music instead of E: or F:. You also have to set ownership & permissions.

http://www.psychocats.net/ubuntu/mountlinux

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

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

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


Missing gcov symbols with mingw under Ubuntu 16.04

I ran into this same problem, and I was able to work around it by linking to -fprofile-arcs rather than -lgcov.


Realtek 8822CE wifi not working but bluetooth working

I had the same problem, and I finally found a solution. See here.

In short: it turns out the driver that should support this hardware (rtw88) was available and compatible with this hardware already in kernel > 5.2, but it is not set to recognize this hardware.

To fix the problem I had to compile linux kernel with a small modification to the source code:

Locate the file: ./linux/drivers/net/wireless/realtek/rtw88/pci.c, and edit it. Look for the string '0xC822', and replace it with '0xC82F'


Edit:

Since the ppa below is now obsolete, this is no longer the way to get xfce-theme-manager. However, as noted by @linuxmarc here: I cannot download xfce theme manager, it is still possible to get the software here: https://github.com/KeithDHedger/Xfce-Theme-Manager/releases. Installation instructions are provided in the README therein.

I solved the problem after spending more hours then I'm comfortable admitting.

Installing xfce theme manager and applying the theme with that worked like a charm. It can be installed with:

sudo add-apt-repository ppa:rebuntu16/other-stuff
sudo apt-get update
sudo apt-get install xfce-theme-manager

Source: http://www.webupd8.org/2013/06/xfce-theme-manager-single-gui-to-change.html


fan is always on high speed and ubuntu hangs on shutdown and restart

run the following command

 top

and check which process it is using the high cpu as shown in the following screenshot and kill that process
In general the process might have exceeded the number 100 something like more than 100 means it is the culprit.

so note down the process id  pid and run kill -9 pid


How do I scan my windows partition for viruses from Ubuntu?

There is lots of bootable anti virus disks you can use, I would recommend AVG Free.  AVG has over 110 million user.  It provides antivirus protection for Linux/FreeBSD for free.

  AVG Free is a version of the AVG antivirus which is free for private
  and non-commercial use.  There is no graphical interface available for
  the current Linux versions of AVG.1

To download Click here.

  Once you install, reboot the PC to initialize AVG. Alternatively you
  could run

sudo /etc/init.d/avgd start

To start using AVG, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below

sudo avgupdate

Read more

However I would suggest that you run an up to date anti-virus scanner from within your windows partition.  Or you can use Bitdefender. Boot CD available here

For the top 5 Anti virus for ubuntu. See here

1Source:Ubuntu Documentations


How to PXE-boot from Ubuntu 10.04 Desktop edition?

The second point of Step 8 in the guide you linked to says

  Download files with lftp:

lftp -c "open http://archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/;

  mirror"

That clearly states that you had to download the netboot version of Ubuntu desktop. So you wouldn't find the netinstall version on your Desktop Edition disc.

More so, you can check out the tutorial on How to network boot (PXE) the Ubuntu Live Disc which is more directly addresses 10.04 and doing a network boot with any edition of Ubuntu. An excerpt from the tutorial is as follows:

  Copy the ISO into the /tftpboot/howtogeek/linux directory
  Create the mount point:

  sudo mkdir -p
     /tftpboot/howtogeek/linux/ubuntu/<version-of-ubuntu>
  Edit the fstab file to have the ISO auto-mounted at boot: sudo vim    /etc/fstab
  Append to “fstab” the ISO mount entry:

  /tftpboot/howtogeek/linux/ubuntu-11.04-desktop-amd64.iso
     /tftpboot/howtogeek/linux/ubuntu/11.04 udf,iso9660 user,loop 0 0

  Note: Despite representation, this is one unbroken line.
  Test that the mount point works by issuing: sudo mount -a
  If all went well, you should be able to list the contents of the ISO    by issuing:

  ls -lash /tftpboot/howtogeek/linux/ubuntu/11.04/

  Create an NFS share

  While the boot procedure starts by using PXE, the actual heavy lifting
  is done by the NFS share on the server. As we are basing this guide on
  our FOG server, the NFS components and some configurations have
  already been done for us by the FOG team, and all we have to do is add
  to them our Ubuntu share.

  Edit the “exports” file to add the new share: sudo vim /etc/exports
  Append to it the pointer to our ISO mount point:

  /tftpboot/howtogeek/linux/ubuntu/11.04/
     *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
  Restart the NFS service for the settings to take affect:

  sudo
     /etc/init.d/nfs-kernel-server restart

  PXE menu setup

  Edit the “Linux stuff” menu:

  sudo vim /tftpboot/howtogeek/menus/linux.cfg
  Append to it the following:

  LABEL Ubuntu Livecd 11.04 MENU DEFAULT KERNEL
     howtogeek/linux/ubuntu/11.04/casper/vmlinuz APPEND root=/dev/nfs
     boot=casper netboot=nfs
     nfsroot=<YOUR-SERVER-IP>:/tftpboot/howtogeek/linux/ubuntu/11.04
     initrd=howtogeek/linux/ubuntu/11.04/casper/initrd.lz quiet splash --

  The above may look messy at first glance but all you have to do is
  replace <YOUR-SERVER-IP> with the IP of your NFS/PXE server.

  For a clearer geek understanding, the text above will:

  Create a new PXE entry in the“Linux” sub-menu called “Ubuntu 11.04”.
  Because of the “MENU DEFAULT” parameter, this entry will be    automatically selected when entering the “Linux” sub-menu.
  Point the client to take the kernel + initrd files usinf TFTP from    the relative path in the /tftproot directory of
  howtogeek/linux/ubuntu…
  Point the initrd scripts to mount the root filesystem from the NFS    share on the absolute path of
  <YOUR-SERVER-IP>:/tftpboot/howtogeek…


Why do I keep getting "invalid password" when trying to log in?

You said you've reset the password and the problem still occurs, so presumably the problem isn't that you're entering it incorrectly. A few possible causes come to mind:

Maybe you are not using the right keyboard layout when entering your password. You can choose your keyboard layout at the graphical login screen by clicking the keyboard icon in the bar at the top. A drop-down menu will come up, showing the available keyboard layouts. (There might just be one, but if you have more than one set up, you can select between them.)
Maybe your password contains unusual characters that are not being handled properly. If your password contains characters other than upper and lower case letters, numbers, and punctuation present on US-English keyboards (~!@#$%^&*()_+-=[]\{}|;':"<>?,./`), try resetting the password again, this time to something limited to those characters. (You don't have to use all those types of characters if you don't want to, though your password should be long or complex enough that it's very hard to guess.)
Maybe something is going wrong when you reset your password. If you edit your question to include a detailed description of how you're resetting your password, a link to the procedure you are following to do so, or both, then it may be possible to assess this.

Furthermore, if it turns out you mean something else by "reset" than resetting your password, then that is very relevant. In that case, you should reset your password using one of these methods or (as suggested by tijybba), this method.

If you get Authentication token manipulation error when changing your password in recovery mode and you cannot fix it with mount -o remount,rw /, changing the password by chrooting from a live environment will still almost always work. I strongly recommend trying that.


Go to tools>addons (or open addons from the firefox button, or type about:addons in your address bar and press enter).

Now, click on the button:

And click install addon from file:

Then locate your addon in the file manager and install it :)!


File extensions are hidden in ubuntu 18.04 Bionic

In Linux / Ubuntu, file extension really are only used for the user to easily identify what the file is.

Using the command file can show you what the file is actually supposed to be.  It will read the contents of the file and tell you what it is.  So, when a file is empty, it just shows a normal text icon. Once it has content then it will show correctly.

Examples:

terrance@terrance-ubuntu:~/tmp$ touch file.bsh
terrance@terrance-ubuntu:~/tmp$ file file.bsh
file.bsh: empty

Added #!/bin/bash to the file.bsh file:

terrance@terrance-ubuntu:~/tmp$ cat file.bsh
#!/bin/bash
terrance@terrance-ubuntu:~/tmp$ file file.bsh
file.bsh: Bourne-Again shell script, ASCII text executable


Upstart script that depends on init.d scripts?

I had the same question, and I also found a different answer. The author lists 4 options to accomplish this, of which I like the first one best:

Use initclt emit myservice-started to signal the completion of your dependent service's startup. In the linked answer, it is suggested to add this line to the end of the dependency service's init.d script, but I prefer a different method.
I like to create a new inid.d script named myservice-started that only contains a start section. Using the appropriate commenting style in the file's header, I declare that it depends on $myservice to be started. In the start section, I tell upstart about myservice being started. You can install it with update-rc.d.

I like this solution because it is not intrusive; if an update changes any of the existing init.d scripts, it won't affect these additional scripts. But remember that changes to your upstart scripts are required.

It might look like this:

#!/bin/sh -e

### BEGIN INIT INFO
# Provides:          myservice-started
# Required-Start:    $myservice
# Default-Start:     2 3 4 5
# Short-Description: send upstart signal after starting myservice
# Description:       myservice needs to run before some upstart services can run
### END INIT INFO

. /lib/lsb/init-functions

case "$1" in
    start)
        log_daemon_msg "Signaling myservice started..." "myservice-started"
        initctl emit myservice-started --no-wait
    ;;

    *)
        log_action_msg "Usage: /etc/init.d/myservice-started start"
        exit 1
    ;;
esac

exit 0

Your upstart script waiting for myservice can listen for the myservice-started event:

start on myservice-started


Recovering data from external unmountable HDD

From the comments...

Since you're primarily concerned about the data on /dev/sdc4, the exFAT partition, do this:

connect the drive to a machine running Windows (may be the same machine)
note what drive letter it takes
open an administrative command prompt window
type chkdsk /f d:, changing the "d" to the correct drive letter
retest the drive under Ubuntu

The drive probably got corrupted because it was improperly dismounted, or unplugged without dismounting first.

The most compatible format to share data between Windows/Ubuntu/Mac would be NTFS. On the Mac, you will need a 3rd party NTFS driver... Paragon makes one. See https://www.paragon-software.com/home/ntfs-mac/.


How to find still running processes in a terminal?

ps T

Selects all processes associated with the terminal.


Microphone not working on HP pavilion x360

It seems like your Audio Input is set to your Audio Output. If you haven't saved your microphone permission settings on FireFox, go into Google Meets and make sure your audio input is on your microphone and not speakers. If you have saved your permission settings, go to FireFox Settings (open a new tab and click on the gear at the top right of the page), Privacy and Security, scroll down to Permissions, Microphone, and remove Google Meets from the permissions, and then try going onto Google Meets again and check what the microphone settings are on.