Boot to Ubuntu 18.04.5 LTS Recovery Mode not working

It might be an issue if the kernel was updated, try booting into a kernel version at the bottom of the list that should be safe to use.


So it looks like you hit the same problem as I did with the "Lazy Newb Pack for Linux". After some digging it turns out that repository includes a fairly old version of PyLNP which contains a broken xdg-terminal script. (Worse still the pack additionally contains a redundant copy of xdg-terminal which is never used as the release bundles a binary copy of PyLNP!)

Maybe you're like me and simply wanted to play the game. If so you can pretty much install some dependencies, download the original game, extract it and run the thing. Problem with that is that you're left with ASCII art instead of a nice graphical tileset.

I spent an embarrassing amount of time this evening learning about the various moving parts and I finally came up with some (fairly) simple installation instructions: https://gist.github.com/kzar/341cbb885896e082acb6


The Amazon icon is not a browser. It is a web app. It is just the Amazon site, embedded in the webapp-container process. Browser in the dash, is the new browser for Ubuntu, based on Oxide which is based on Chrome's engine.


Unable to mount network drive Ubuntu 14.04

You have ext4 in your fstab option, change this to cifs.eg:

//host/samba /mnt/samba cifs ....


How to add space between value and unit in Conky

It seems a bit heavy going, but if your conky was compiled with lua then you can write a small piece of code to split the output string and add a space. Create a file, say ~/myformat.lua with contents:

function conky_myformat(arg)
 local val = conky_parse(arg)
 return string.gsub(val, "([%d.-]+)(%a+)", "%1 %2", 1)
end

and add to your .configrc in the conky.config part:

lua_load = '~/myformat.lua',

and replace each function like ${mem} by a call to the above function, for example

conky.text = [[
 old: ${mem} and ${memmax}
 new: ${lua myformat ${mem}} and ${lua myformat ${memmax}}
]]

lua does not use regular expressions (regex), but patterns which are similar, see
the documentation.
%d matches a digit, %a a letter, and () is used to capture the match for use in the replacement string as %1 and so on.

Alternatively, you could compile your own conky from source, changing the function human_readable() in src/conky.cc.


Bug in system information script 'inxi' - displaying folder content instead of info

I reported this bug through ubuntu-bug inxi on Launchpad here.

I also wrote a bug report on GitHub here.

The author and owner of the GitHub repository - smxi - confirmed and fixed this bug. It always occurs when there is a * character anywhere in the fetched system information.

If this bug affects you too and your Ubuntu repository package version is still below 2.2.32-00 (compiled before 2016-01-03), you can download the executable script from smxi's server and replace your current version with it using the following command:

sudo wget -O /usr/bin/inxi smxi.org/inxi

This will replace the executable of your currently installed (e.g. through apt-get) inxi version with the latest version.

If you had the version from the official Ubuntu repository installed before, this command will not mess up anything. The package manager will not notice the change and think it's still the old version. You can later uninstall or upgrade it without problems.


Bluefish Editor error:failed to create a command

Go to "Tools"->"preferences"->"External Commands"/

First make sure firefox is listed.
You can then try changing it's command to firefox "%s" or if that doesn't work change it to firefox "%p"

Apply and try previewing the file via the browser.

source: http://ubuntuforums.org/showthread.php?t=1584013


Click on the upper right corner of your screen to get mini settings drop down. Click on the third icon from the right on the bottom of the drop down (it looks like a rectangle at 45 degrees). It should then show a small lock icon on the rectangle. That locks the rotation.


Is there a way to move the mouse pointer with the keyboard?

Go to System ->Assistive Technologies; then Keyboard Accessibility, under "Mouse keys"
and then check Pointer can be controlled using the keypad. And try.


How to run openconnect with username and password in a line in the terminal?

If you type man openconnect in a terminal you will get a manual page describing usage.

Relevant sections:

  -u,--user=NAME
  Set login username to NAME

  --passwd-on-stdin
  Read password from standard input

Additionally, you may need to disable certificate warnings:

  --no-cert-check
  Do not require server SSL certificate to be valid. Checks will still happen and failures will cause a warning message, but the connection will continue anyway. You should not need to use this option - if your servers have SSL certificates which are not signed by a trusted Certificate Authority, you can still add them (or your private CA) to a local file and use that file with the --cafile option.

Or you could add the certificate to a file.

All this can be combined:

echo "password" | sudo openconnect server --user=username --passwd-on-stdin --no-cert-check


I can't install (boot-repair) on my Unbunt 12.04 LiveCD

I've used Linux Mint 18 Beta and installed the boot-repair everything works fine.


Black screen while trying to install Ubuntu

When the black screen starts you can wait for at least 2 minutes to check if it is stuck or something like that.
For the moment, run Try Ubuntu without installing. Like Terrance commented. Wait a while and see what happens. Ubuntu should be running and you should be able to watch desktop, use and so, install.


Monitor turning off instead of activating the screensaver, how do I prevent it?

Apparently I screwed up my kubuntu after trying BSOD screensaver, and I am posting my answer just for references.

I switched to xubuntu-desktop and everything works fine. I didn't try to reinstall kubuntu-desktop, but that might fix the problem.


Error: could not determine PostgreSQL version from '10.4'

I think the best solutions is probably to upgrade to psycopg 2.7:

From https://stackoverflow.com/a/49292261:

  The problem was fixed in #489 released in psycopg 2.7. We don't have plans to backport the fix to 2.6.


I'm not being able to install Ubuntu 18.04 in my PC

I am not allowed to insert comments (yet) but these guys here

Error when installing: "unable to find a medium containing a live file system"

managed to get around the live file system thing by downgrading from USB3 to USB2.

That might be the cause of your woes.

Good luck!


Desktop launcher for Thunderbird-launching script in 19.10?

First condition of course is to create a valid desktop file. Put your desktop file in the hidden folder .local/share/applications in your home folder. Within seconds, you should be able to find it automatically in the Applications Overview or by searching for it. If you can launch the application from there, the desktop file is OK.

You then could also place it on the Desktop. To that aim, copy it in the "Desktop" folder in your home folder. It should now appear on your desktop, however with a generic icon. Right-click the icon and select "Allow launching" to turn it into a working application launcher on your desktop.


Can an app in `/opt/extras` install themeable icons in `/usr/share`?

Generally, the answer is no.  According to the Filesystem Hierarchy Standard (FHS), only files that are required to be in a certain location (like lock files and device files) are allowed to be outside of the /opt tree if your software is installed this way.

You are correct in that you can install icons to /usr/share/icons, but again, don't do it if your package installs to /opt.  I'm unfamiliar with Quickly, but consider changing your app so it installs to the "usual" places for Linux software:  /usr/bin for binaries, /etc for configuration files, /usr/share for data, etc.  That way, your icons won't be out of place!


I solved this problem by installing a recent oem kernel (linux-image-5.10.0-1019-oem) which contains a fix for this issue, as suggested in the answer to this question: Blank (no signal) display on new ASUS Z590 motherboard


Install Ubuntu 12.04 alongside Windows 8 (not preinstalled) without grub

You can use a VMWare Player and load the iso. You can have a look at the youtube video below.

http://www.youtube.com/watch?v=KOLkW7s9k1Q

For dual boot with windows and ubuntu.

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

Installing ubuntu within windows

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


When I try to access the file it asks for username and password I put
  in the user name from the config file and the lynus password but it
  gives me an error of Access is denied.

You don't pass the Linux password to samba you pass the samba password to samba. Did you add that user to the samba password database? As in:

sudo smbpasswd -a linux-user-name

The password itself may be the same as the login password but you still have to add it to samba.


I just tested multiple -L parameters on the same SSH command and it worked.

sudo ssh <serverUser>@<server> -L 80:localhost:80 -L 443:localhost:443


brand new L75D-A7280 battery reports 95% max when plugged in, 93% immediately after unplugged

You can try charging it all the way up ( leave it charging at least an hour after it says it is full ), run it down to 5%, then charge it all the way up again.  If the battery is still relatively healthy but aged a bit, this should trigger it to learn its correct actual capacity and may help.  Otherwise, it's probably time to replace the battery.


Import eps files in inkscape 092 1 Ubuntu 16.04

I am using Ubuntu 18.04, I had installed inkscape through the Ubuntu Software center and had the same problem.
I have uninstalled inkscape and installed it again through:

sudo apt  install inkscape

This solved the issue for me.


Did you use Playonlinux? If you didn't, i recommend doing so.

According to WineHQ it should run just fine.

ps: Playonlinux has pre-written install scripts that make installing windows games on linux a breeze (if they are supported, ofc.).

Quick description on Playonlinux:

  PlayOnLinux is a piece of software which allows you to easily install
  and use numerous games and apps designed to run with Microsoft®
  Windows®. Few games are compatible with GNU/Linux at the moment and it
  certainly is a factor preventing the migration to this system.
  PlayOnLinux brings a cost-free, accessible and efficient solution to
  this problem. What are PlayOnLinux's features?

  Here is a non-exhaustive list of the interesting points to know:

  You don't have to own a Windows® license to use PlayOnLinux.
  PlayOnLinux is based on Wine, and so profits from all its features    yet it keeps the user from having to deal with its complexity.
  PlayOnLinux is free software.
  PlayOnLinux uses Bash and Python.

  Nevertheless, PlayOnLinux has some bugs, as every piece of software:

  Occasional performance decrease (image may be less fluid and graphics    less detailed).
  Not all games are supported. Nevertheless, you can use our manual    installation module.

Source: http://www.playonlinux.com/en/


Compressing folder on aws instance creates a duplicate

You may not use .*, because that shell glob will also match . and .. (current and parent directory), causing the behaviour you described.

But it isn't necessary anyway, you can just use the zip -r option on its own. Let me quote the manual page man zip:

   -r
   --recurse-paths
          Travel the directory structure recursively; for example:

                 zip -r foo.zip foo

          or more concisely

                 zip -r foo foo

          In this case, all the files and directories in foo are saved  in
          a zip archive named foo.zip, including files with names starting
          with ".", since the recursion does not use the shell's file-name
          substitution  mechanism.  If you wish to include only a specific
          subset of the files in directory foo and its subdirectories, use
          the  -i  option  to specify the pattern of files to be included.
          You should not use -r with the name  ".*",  since  that  matches
          ".."   which will attempt to zip up the parent directory (proba‐
          bly not what was intended).

          Multiple source directories are allowed as in

                 zip -r foo foo1 foo2

          which first zips up foo1 and then foo2, going down  each  direc‐
          tory.

          [...]

So you just specify the folder you want to zip, like:

zip -r yourfile.zip /var/app/current

Or if your current directory already is /var/app/current, just:

zip -r yourfile.zip .


Ubuntu can't connect to WiFi network AR9227

Solution to that problem was in BIOS, I had to enable IOMMU and EHCI. Now all my problems with USB ports and WiFi are gone.


This is total /var/:

drwxr-xr-x  2 root root     4096 jul 19 07:56 backups
drwxr-xr-x 18 root root     4096 mrt 29 07:51 cache
drwxrwsrwt  2 root whoopsie 4096 jul 19 07:35 crash
drwxr-xr-x 72 root root     4096 jul 19 10:14 lib
drwxrwsr-x  2 root staff    4096 feb 27 19:33 local
lrwxrwxrwx  1 root root        9 mrt 29 07:47 lock -> /run/lock
drwxrwxr-x 15 root syslog   4096 jul 19 07:56 log
drwxrwsr-x  2 root mail     4096 mrt 20 08:31 mail
drwxrwsrwt  2 root whoopsie 4096 mrt 20 08:37 metrics
drwxr-xr-x  2 root root     4096 mrt 20 08:31 opt
lrwxrwxrwx  1 root root        4 mrt 29 07:47 run -> /run
drwxr-xr-x  9 root root     4096 mrt 20 08:35 spool
drwxrwxrwt  2 root root     4096 jul 19 13:52 tmp

Have fun


I got the cairo dock fixed. I removed cairo dock completely from terminal,then reinstalled. To remove cairo dock and plugins open terminal and put this in first-

sudo apt-get purge cairo-dock cairo-dock-plug-ins && sudo apt-get autoremove

that removes it completely.If cairo dock is on your desktop right click it and click quit first to get it off your desktop.

After the removal is done in terminal copy and paste these three commands in one at a time-

sudo add-apt-repository ppa:cairo-dock-team/ppa
sudo apt-get update
sudo apt-get install cairo-dock cairo-dock-plug-ins


Partition Errors and Remounts Read-Only when Accessing Specific File

Finally found the answer from somebody else on another site, just zeroed the inodes and rechecked the system, that was all!

debugfs -w /dev/sda2
:clri &lt1415&gt
:clri &lt1416&gt
:clri &lt1417&gt
:q
fsck -y /dev/sda2

To anybody else with this issue, I found my bad inodes using find on the bad mount, then checked dmesg for errors on the bad inodes.


High temperature on my laptop with Radeon Mobility HD4670

The high temperature is caused by the poor power management of the open source drivers. Installing the latest proprietary drivers would help, if official support for the HD4xxx series hadn't been dropped with Quantal. So you're left with two options:

1.) Install the legacy FGLRX drivers through a custom PPA that ships with an older version of X.ORG.

Advantages: unsurpassed power management, better performance both in 3D and 2D apps ;

Disadvantages: packages provided by user, no guarantee that installation will work, might even break your system

Tutorial

2.) Adjust the power management of the open source drivers.

Advantages: safer option

Disadvantages: neither power management nor performance will be close to the proprietary drivers; this might change in the future, mind you

Tutorial , Making the changes persistent


Ethernet not working on Ubuntu - Driver r8169: link down

The driver r8169  is problematic and there are several things we might try. Let's start with the simplest first and see if we can fix it. If not, I will edit this answer to proceed to the more complex.

Please open a terminal and do:

sudo ethtool -s eth0 speed 100 duplex full autoneg off

Now check:

dmesg | grep eth0

Does the link come back up? Note that it was previously:

  r8169 0000:02:00.0 eth0: link down

I notice that you are dual-booting with Windows. This is an issue with the driver r8169 in some cases. Please see: https://en.opensuse.org/SDB:Realtek_8169_driver_problem In particular:

  You enable "Wake-on-lan after shutdown." in the Windows device manager. This prevents the Windows driver to disable the card. With
  newer Windows driver versions this option is not available anymore,
  instead there is an option "Shutdown Wake On Lan". Changing that new
  option from "Enabled" to "Disabled" cannot be confirmed to fix the
  issue.

Please find and reverse the setting for Wake-on-LAN in Windows. Reboot into Ubuntu and check again:

dmesg | grep -e r8169 -e eth0

Any improvement?

If you have compiled the r8168 driver, I suggest you blacklist r8169:

sudo -i
echo "blacklist r8169"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot. Confirm that r8168 is loaded:

lsmod

Any improvement?


What are the options for a very simple launcher?

I don't really understand what you want. You say you don't want to replace Unity, but you want to add a menu that can be easily edited with a text editor and is fast to use? You can do that with any or all of the icons on the launcher. I think that's the best suggestion. There are lots of readily available menus of that kind which you can use as a template to add your own. It's just a four easy lines, containing a name, a command and, etc. Have a look at these:

What Custom Launchers and Unity Quicklists are available?


As found in my quick research online, particularly from this answer on another askubuntu.com question, the file chooser and save as dialogues are related to the graphical toolkit upon which an application is built, and in no way related to default file manager. Since most programs use gtk toolkit under Ubuntu, I see no possible way of altering those dialogues. There's possibility of switching to Qt-based desktops, but at least in my experience under razorqt that didn't do the trick. Therefore my answer to this question is altering file dialogues is impossible. There's other, more experienced users that me, hence perhaps there might be other answer, so my answer isn't conclusive


Ubuntu is an operating system, so it has no requirements on other OSes being installed before. In fact, it is easier to install Ubuntu as the first OS than to add it beside a current one (although this is more common). Since you do not have any previous OS to take care of, you cannot break anything during the installation (there is simply nothing to break), so do not worry and give it a try!

There are known situations when USB drive is not recognized.

BIOS cannot work with USB drives directly. This most likely won’t happen to a computer made after, let’s say, 2005.
The drive is not bootable. You can avoid this by using a tool like Rufus or UNetbootin. See What is the proper way of creating installation media from Ubuntu iso? for a detailed guide.


How to disable Monitor Brightness keys (DELL N4010) in 12.04?

What I've done in my HP computer is making the Fn keys Fn keys by default, instead of the keys for brightnes, volume, etc. To use them now I have to use the blue Fn button.

To do this you have to enter your BIOS setup (by pressing a key such as F1 or another F key, or Esc) at the very beginning of boot. Then go to system configuration optionsand change Action Keys Mode to Disabled.


My USB flash drive suddenly get write protected, now I can't format this. how can I do this in Ubuntu?

It's a hardware failure and you can't reverse it through software. It's just that you're not able to format it but the data is intact. If I were you, I would buy a new one. There is no harm in trying different options because it may or may not work. I'm talking from my personal experience as I did many things when I was in such situation but wasted my time.


What console-based program is used during Ubuntu Server 18.04 installation?

I was wondering the same thing and it looks like a new ncurses-based installer, developed by Canonical, called Subiquity.

Here's a blog post I found about it.
https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-Subiquity-November

And here's the GitHub repo.
https://github.com/CanonicalLtd/subiquity


How to allow users to create and delete file(s) / folder(s), but not modify them?

This is definitely possible. First, change /db-data's group to app-data:

sudo chgrp -R app-data /db-data

Now set up the permissions:

sudo chmod -R g+rwx /db-data
sudo chmod -R g-w /db-data/archived-data/*
sudo find /db-data/archived-data -type d -exec 'chmod' 'g+rwx' '{}' ';'

sudo chmod -R g+rwx /db-data gives app-data full permissions to /db-data and everything inside it
sudo chmod -R g-w /db-data/archived-data/* removes app-data's write permissions for everything inside /db-data/archived-data
Finally, sudo find /db-data/archived-data -type d -exec 'chmod' 'g+rwx' '{}' ';' restores app-data's write permissions for every directory in /db-data/archived-data (but not the files inside those directories), which is necessary to let app-data create and delete any files or directories inside /db-data/archived-data.

Now anyone in app-data will be able to read, execute, create, and delete files or directories in /db-data/archived-data (including sub-directories deeper than 1 level; i.e. app-data will be able to create and delete files in /db-data/archived-data/a/b/). If you don't want app-data to have read and/or execute permissions either, change the g-w in sudo chmod -R g-w /db-data/archived-data/* to g-rw for no read permissions, g-wx for no execute permissions, or g-rwx for no permissions at all (if you do this after running the find command, you will have to re-run it).

Finally, note that if a user in app-data creates a file or directory, he/she will be able to modify the file/directory that he/she created (but existing files will still be unmodifiable).


How to write an internationalized manual using gettext?

Check out Sphinx to write your documents in reStructuredText and make them translatable in gettext format.


You can use GParted. Its a good software that has more capabilities than PTD.


Should I be concerned about the Linux.Darlloz worm?

If you don't have PHP-cgi installed or if you upgrade it recently. Nothing.

  Linux.Darlloz is a worm that spreads to vulnerable systems by exploiting the PHP 'php-cgi'.

Ubuntu already release fixes to prevent spread more than a year ago:

http://people.canonical.com/~ubuntu-security/cve/2012/CVE-2012-1823.html
http://people.canonical.com/~ubuntu-security/cve/2012/CVE-2012-2311.html
http://people.canonical.com/~ubuntu-security/cve/2012/CVE-2012-2335.html
http://people.canonical.com/~ubuntu-security/cve/2012/CVE-2012-2336.html


You can enable IRSSI mode to achieve a simpler text interface.
From darkstarsword's comment on "finch: Pidgin’s little brother":

Fortunately, it is possible to switch that model out for one which resembles irssi with the contact list down the left hand side of the interface, the chat windows taking up the entire remaining space, and using alt+number to switch between windows. It’s not perfect, but it’s way more usable than the default model.
To enable this, add this to your ~/.gntrc (create it if it doesn’t exist):

[Finch]
wm = /usr/lib/gnt/irssi.so

I also add mouse = 1 to enable the experimental mouse support.


Use a Micro USB to USB cable/OTG should do the trick, plug the USB drive into it with Ubuntu or other distro 'burnt' onto it and it should be able to boot from it. (You may need to do some trickery with the bootloader, I'd go to the XDA page if it has one to see about that)


sudo mokutil --enable-validation

After restart Mok managment will pop up. There will be an option where you can enable secure boot (just like you disabled after installing Ubuntu).

Manpage of mokutil: http://manpages.ubuntu.com/manpages/xenial/man1/mokutil.1.html


Windows installation once Ubuntu 18 is already installed

I had the same problem on my computer a few months ago. Since you are installing Windows on a different partition, then all data of your Ubuntu will be safe.

However, Windows doesn't like to live together with other operating systems. Therefore, it will remove the GRUB from your machine, and you will need to reinstall it. The links below present strategies to recover your GRUB.

RecoveringUbuntuAfterInstallingWindows - Community Help Wiki
How to install grub after installing Windows 10 - Stack Overflow


Under volting helps a lot when there is over heating (and by lot I mean A LOT). To be on a safer side, manufacturers supply higher voltage than required to the CPU (which causes heating), as at very lower voltages CPU doesn't work properly under stress. Under volting is completely safe. It will not void your warranty whatsoever. Under volting is basically removing the excess voltage supplied and giving the minimum voltage required to run the CPU smoothly.
Try intel-undervolt from here on GitHub.
Here is an article on CPU undervolting in Linux which I followed
Some terms in the guide might be deprecated. Refer to the first link for the deprecated terms.
Here is a step by step procedure with the non deprecated terms

install git with sudo apt install git
run git clone https://github.com/kitsunyan/intel-undervolt
sudo su and then enter password
run ./configure --enable-systemd --enable-openrc && make && make install
close the root mode by typing exit and press enter
run sudo systemctl daemon-reload
run sudo gedit /etc/intel-undervolt.conf this will open a text editor
change the value in line 10 (in front of CPU) to -130 like this undervolt 0 'CPU' -130 (recommended -125)
now save that text file and exit
run sudo intel-undervolt apply and then run sudo systemctl start intel-undervolt
use the system for some time, if it looks stable then run sudo systemctl enable intel-undervolt.

As of selecting the offset, I use undervolt 0 'CPU' -130 in the /etc/intel-undervolt.conf file. As a beginner I would suggest you to stick to undervolting the CPU only.
To find the correct offset (unique to each CPU piece. Same CPU but on different computer could have different ideal offset) slowly  lower the offset by small values (I used 10), and at the point where your PC crashes, is the threshold. And set the final value to threshold - 10. In my case it crashed at 140 so I set it to 130.
The only downside (if you don't choose sudo systemctl enable intel-undervolt) is that you will have to apply the settings on every boot. I have created an alias with alias us='sudo intel-undervolt apply && sudo tlp start'. So I just have to type us in the terminal on a boot, and then I am good to go.
Note: the crashing of PC to calculate the offset is completely safe. It will not damage you hardware whatsoever.
Note: Any Intel CPU can go to -125 at least, above that comes the difficult part. If you want to take it to the limit, then only try increasing it step by step. Otherwise -125 will work just fine for any Intel CPU.


If you don't have any confidential data in those files, you could use Dropbox to keep them automatically in sync across multiple machines. The Dropbox daemon will synchronize one folder, usually ~/Dropbox, but you can include other files or directories in the synchronization by symlinking them into that folder. (I think Dropbox may also offer some other method to keep multiple folders in sync, but I can't find the directions right now)


After 14.04 --> 16.04 upgrade, Gnome desktop will not start; only have a console login

Try these:

type "startx" in console
Ctrl+Alt+F7 or other F# combination


The solution for this on a normal machine would be to add /tmp to /etc/fstab like this:

tmpfs           /tmp            tmpfs   defaults            0       0

But there was a fix for mountall for 13.04. If you do have this it could be the external disk is just too slow.


I need a system that completely ignores the dedicated GPU

You can disable the graphic cards using grub.

sudo vi /etc/default/grub

There is a line with GRUB_CMDLINE_LINUX_DEFAULT=. Add radeon.modeset=0 to disable the AMD or  nomodeset to disable all  graphic cards
The line shoult look something like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splasha radeon.modeset=0"

Then run and reboot

sudo update-grub


You may have to find out more about your dual boot system to answer this question. In particular, it's likely that your boot disk has multiple partitions, at least one that's NTFS for Windows and one that's ext2/3/4 for Ubuntu.

When you boot Ubuntu, you won't see see (mount) the NTFS partition without some explicit actions (if I remember correctly). If you boot Windows, you can't mount an ext2/3/4 partition.

So, are you sure that you're mounting the NTFS partition? Try mount and fdisk -l.
Once you know you're mounting the right partition, then you must mount it read/write (rw).


How do I enable low disk storage warnings?

To enable these low disk space  warnings (tested on Trusty Tahr 14.04 and Precise Pangolin 12.04) run the following:

gsettings set org.gnome.settings-daemon.plugins.housekeeping active true

Or to disable the low disk warnings run the following:

gsettings set org.gnome.settings-daemon.plugins.housekeeping active false

If you prefer a gui you can see these same settings with the dconf editor:

sudo apt-get install dconf-tools

On Trusty you can press Ctrl+F to access the 'Find' feature and search for 'disk space', on Precise the 'Find' functionality does not work well and you must manually drill through the following:

org > gnome > settings-daemon > plugins > housekeeping

Here you can not only activate and deactivate the disk warning but you can carefully change many other settings:

References:

How To Disable Low Disk Space Warning in Ubuntu 14.10?
Launchpad bug: "Low disk space" warning popping up repeatedly.


You can not, the developer has made no move to make a Ubuntu Touch application, and probably won't for a long time (if ever).
Though if you are asking these kinds of questions, I don't think Ubuntu Touch is for you, it is very raw and not really ready for a consumer daily usage, more for developers who want to make applications. I disrecommend you flash Ubuntu Touch to your device until it has a stable consumer version.


Chrony time service doesn't work perfectly, synchronisation problems

We are also sometimes having issues too, with chrony not been able to synchronize to the "NTP server service at the LAN".
Our problem is that  the  server  which is been used as a "NTP time Master", is a Windows Server, previouslt 2008, then 2012R2,  2016, now 2019. Our system still uses legacy codes, and MS SQL, that's the reason for M$.
Other servers in the LAN are more and more Linux, Ubuntu variants, and Chrony is been used to synchronize the time to the Windows server.
It seems that the "w32tm time service server" has got some compatibility issues.  w32tm  works a bit differently with each of the different Windows Server versions we have used. With the latest Windows 2019 server, Chrony can't synchronize to the w32tm  time until certain Windows updates have been installed. The Windows update KB4592440 makes the w32tm service answer better to the Linux chrony time queries, so make sure you have installed all Windows updates, if using Chrony to sync to the Windows Domain server.
Also, we have noticed that the type NTP, is better to use than NT5D5,  which is "domain time", and needs domain auth.
One possibility would be to use Meinberg NTP daemon on the Windows server instead of the w32tm service. We have been testing that too,  and it is a good alternative for Windows time.
One problem with chrony is that if the Windows domain time differs "too much" Chrony might think that the NTP time server is not reliable.
There are some settings which might be help on that in /etc/chrony/chrony.conf
maxdistance 16.0
makestep 1 3
maxupdateskew 100.0

These may help if the ntpserver is not very stable.
Windows usually gives higher "root dispersion", 3 seconds or more,
which makes chrony think that it is not a reliable source.

https://chrony.tuxfamily.org/comparison.html
https://www.meinbergglobal.com/english/sw/ntp.htm
https://www.linuxtechi.com/sync-time-in-linux-server-using-chrony/


Do I need a special .iso for VMWare Workstation?

Any installer .iso from any OS should work fine. As a rule of thumb, if you can install an actual OS with it, you can use it to install a VM. That is considered one of the benefits of using virtualization.


How do I know if I'm running the open source AMD drivers for Radeon?

You can find out which driver is in use by running the following command in a terminal:

lspci -nnk | grep -iA2 vga

This will give you an output similar to this one (from my Lenovo G770):

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Whistler [AMD Radeon HD 6600M Series] [1002:6741]
Subsystem: Lenovo Device [17aa:3976]
Kernel driver in use: radeon

In this case, you can see that I am using the "radeon" driver, which refers to the open source radeon drivers. If the proprietary AMD Catalyst drivers were in use, "radeon" would be replaced with "fglrx".

If you would like to install the proprietary AMD Catalyst drivers (which would certainly improve your FPS), you can do so by following the directions here. Please note that although two more recent versions of the Catalyst driver have been released since these directions were written, the RadeonHD 3400 series is no longer supported under these newer versions, so you will have to stick with 12.4. Additionally, in order for this driver to work properly with your card, you will need to be running kernel 3.2 or below and Xserver 1.11 or below (see this page for more information)


Confused about partitioning in Ubuntu 16.01 32 bit

A typical setup should contain 3 partitions:

1) The root partition for which about 20-30GB should be more than enough.
2) A swap partition which should be equal to the RAM size in case you need to be able to hibernate to disk, or less if you don't need hibernation.
3) The home directory which would eventually contain all the other space of your hard disk.

That way you would be able to reinstall the main OS (in the root partition) without affecting your personal files and setting (which would reside in home partition).


Address already in use

Port 80 is in use.  Typically this means you have apache2 running, or another instance of nginx.


skype 4.0 isn't updated in ubuntu software database, please download appropriate deb file from  here


Any should be fine now.

There are however few important things to remember:

Blueman (sudo aptitude install blueman) is better than default bluetooth applet
Cheap bluetooth adapters usually do not work well.
If you want to listen to music, you should get stereo headset that support A2DP profile.
Switch from stereo to headset mode is not automatic but it is easily done with
pavucontrol (sudo aptitude install pavucontrol, last tab)

Other than that it all works out of the box.


how i can solve it? mysql 5.5 on ubuntu 14.04

The command is mysqldump.

You have a space there, so you are effectively trying to run a mysql query dump, which is of course not valid.


Go to this page, where you can download official drivers.
This indicates that your  GT 460 is compatible.


For a modern one-user (or mainly one-user) workstation, partitioning is more a matter of taste than other thing. I commented more extensively here.

If you are sure yo do not want other OS installed (even in the future), I would expand the /home partition to fill the disk (and maybe leaving a bit more space for /, although I never filled it up.)

My normal routine when installing from scratch is to create / and /home, and then moving /usr/local and /opt in the home partition, and then linking them back. Some on the line of (as root):

cp -rva /usr/local /home
mv /usr/local /usr/local.old
ln -s /home/local /usr/local

and (normally /opt does not exist)

mkdir /home/opt
ln -s /home/opt /opt

This kind of configuration will let you reinstall another Linux operating system without touching your data (even locally compiled programs will stay under /home/local, and you have to just re-do the links when reinstalling).

Another possibility (quite more complex, but interesting) is to learn to use LVM:  : in that way you can resize the partition on the fly if you want.


Simplest way to get bootable ISO with installed/persistent Ubuntu?

Just to be clear, you want to boot from an ISO residing on your hard drive? You are opposed to booting from a USB stick? If you're willing to go the USb route, you have MKUSB, which is very user-friendly. I ended up using MKUSB, after having some problems with some of the popular live USB installer apps.

If you want to boot (with persistence) from an ISO on your HDD, without installing your Linux distro on the HDD, there is no short answer I can give, though more experienced users might. Therefore I'll take the liberty to point to this link from the Linux Mint forums, but it applies to Ubuntu as well.

http://community.linuxmint.com/tutorial/view/1849

One more thing, you can install an extra distro in another partition(s). It seeems to me to be the most logical way, unless you want a portable Linux, but then USB is the way to go, in my opinion.


Installing spotify-client on lubuntu 15.10

I found the problem. Apparently Spotify doesn't maintain their stable repository, so I changed /etc/apt/sources.list from stable to testing and everything works!


Your old Windows XP PC doesn't need a graphics card to run a server without a GUI. Install Ubuntu Server 32-bit the default way so that it runs text-only without a desktop environment. If the graphics card continues to cause problems you can remove it.

The standard system requirements for Ubuntu Server 16.04 are frugal.

1 GHz processor
512 MB of system memory (RAM)
1 GB of disk space (base system)
1.75 GB of disk space (all tasks installed)
Monitor capable of 640x480


Menu options whitened after installing theme

That specific theme has not been updated by its author to work correctly with GTK+ v3.6 (the version that Ubuntu 12.10 uses). GNOME is the faulty here, because with every minor GTK+ release they are breaking all the themes, wasting everyone’s time.


Visible 0bda:a811 Realtek WiFi adapter and (I believe installed) device driver not connected

I answer for future reference, having found the question myself without answer. There are a couple of problems:

I had problems correctly identifying the chipset. It seems that this 0bda:a811 is the realtek chipset rtl8812au; at least for me the rtl8812au driver worked.
This chipset does not work for Ubuntu 18.04-1 out-of-the-box. Even the rtl8812au-dkms driver that you can install with apt-get does not work. sudo apt-get install rtl8812au-dkms seems to install version 4.3.8 (you can check with dkms status).
There is luckily a new version of the driver which does work, but you need to install it manually. See this answer. I don't fully understand if it's the driver that does not work or just some problem with the module loader.

To summarize with commands that will fix your problem:

git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux
sudo make -f Makefile.dkms install

After that, giving dkms status you should see a line like:

rtl8812au, 4.3.14, 4.15.0-30-generic, x86_64: installed

Reboot and it should work.


You need to upgrade you kernel

First fix current packages

sudo dpkg --configure -a

Then run updates and upgrades

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

After installing updates (Some may not because the new package is in the new kernel)

sudo apt-get dist-upgrade

You may want to reboot


Lubuntu 18.10 How to activate tap to click

this works for me
https://wiki.archlinux.org/index.php/Libinput#Touchpad_configuration

create:

/etc/X11/xorg.conf.d/30-touchpad.conf

content:

Section "InputClass"
  Identifier "touchpad"
  Driver "libinput"
  MatchIsTouchpad "on"
  Option "Tapping" "on"
EndSection

and finally

reboot


the message saying, that the package is already installed is completely unconditional, it is displayed wether the grep returns successful or not.

You could prepend it with [ -n "$chkPkg" ] && to make it conditional (on a nonempty chkPkg variable), or even better pull it into the if block like that:

if [ "" == "$chkPkg" ]; then
  echo  "The Package [$pkg] is installing..."
  # ...
else
  echo "The Package [$pkg] is already installed."
fi

BTW. You should match variables in shellscript with a single =, not with ==. The latter is not posix conform and will not run in some unix shells apart from bash. Such things are called "bashisms", avoid them where it doesn't inconvenience you too much.


This error can occur if /usr/local/java/jdk1.7.0_25 is the 32 bit (i586) version and the application calling it requires the 64 bit version of the JDK.


How can I fix E: Sub-process /usr/bin/dpkg returned an error code (2)?

Try first:

sudo rm /var/lib/dpkg/available
sudo touch /var/lib/dpkg/available
sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done'

Dangerous, if previous instruction does not solve the problem...

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get clean
sudo apt-get update && sudo apt-get upgrade

Last may cause huge traffic load.


13.04 Application minimizing choppy & freezing

I had the exact same problem, I have an HP DV4 laptop i5 4Gb and I recently installed Ubuntu and did all the updates and upgrades necessary to get to the 13.04 version I wanted to experience more and installed Unity Tweak Tool, I played with it a bit and when I thought I had set everything according to my preferences, Pain came to my brain!!! everytime I wanted to minimize a window the computer started to run slow and the fans went to max speed, I could only close the windows by pressing constantly ALT+F4, I even forced laptop to turn off by pressing the Power Button and when the laptop restated The login box never disappeared and the wallpaper wouldn't change either, right click on the desk and the contextual menu would't show, Anyway...

I opened the Unity Tweak Tool again and started to try the controls one by one and BINGO!!! the problem is in the SYSTEM section, DESKTOP ICONS and ICONS ON DESKTOP.

For some reason if you switch off the icons, everything goes down, so my suggestion is, reinstall the Unity Tweak Tool and go for the ICONS ON DESKTOP option, everything should go back to normal right after you do that.


Possibly this is not the technical answer that you are looking for, rather a workaround.

How do people normally do this?

I for one have set myself free from this headache, and the mess that /home/<USER>/ is (mine now contains some 5800 files weighing over 800MB — without the caches(!) — that is just OS/apps related stuff), by creating myself a separate, independent partition that contains my actual files that I care about. (This could just as well be on a separate disk, as in your question, I believe.)
I leave /home/<USER>/ for just the things that the OS and the apps do in there. I don't try shaping it for my own taste any more. However, I still back it up regularly, of course; some of those config files in there are of extreme value.
My independent partition is mounted automatically in /etc/fstab, to the location /my-dir/ (not under /home/, but directly under /). I have a customized Nautilus launcher to make it open there by default.
Regarding the Nautilus sidebar, items to locations that one does not need, can be turned off by redirecting them to $HOME in ~/.config/user-dirs.dirs, e.g.: XDG_MUSIC_DIR="$HOME" This will make that link go away permanently, eliminating unwanted clutter. In turn, frequently accessed directories on my own partition can be added to the sidebar's bookmarks section, just underneath the aforementioned locations.


Laptop USB ports stop working: how to restart them without restarting the PC?

Make sure that all USB devices are unplugged/safely removed and then try:

sudo modprobe -r usbhid && sleep 5 && sudo modprobe usbhid

and

sudo modprobe -r usb-storage
sudo modprobe usb-storage

This will reload the kernel modules for USB keyboards/mice and usb hdd's, and might emulate whatever it is about restarting that is fixing your problem.  Good luck.


System read-only after upgrading Ubuntu Server 14.04 LTS to 16.04 LTS

For whatever reason your /etc/fstab doesn't even mention mount point of the root of directories. Given that you actually have system on /dev/sdg1, modify the file as follows:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
/dev/md0        /mnt/rdisk      ext4    user    0       0
/dev/sdg1       /               ext4            rw,noatime,data=ordered 0 1

Reboot to test if it works, but actually I wouldn't recommend to use /dev/sdg1 directly in the file, because device name could change. You're better off to use UUID of the filesystem. To find it execute ls -l /dev/disk/by-uuid/ | grep sdg1. Then replace /dev/sdg1 with UUID=The-Number-You-Just-Got in the /etc/fstab.


Ok, I have somewhat got things figured out.  In WINDOWS 8 "hate it" goto far right, pull up settings, select PC settings, and turn on boot from CD/DVD or USB.  Load Ubuntu 13.04 that you made before on an USB or DVD.  Go through setup in Ubuntu and allow it to install. I choose install along side Win8 for now.  Remove drive and reboot computer.  On my Asus with its high speed start BIOS "which are configured for Win8", click and hold escape button as soon as the ASUS LOGO appears, must time it just right.  In BIOS turn on Legacy and make Ubuntu the first boot priority.  Now reboot again. This time on reboot, the computer should boot into Grub and allow you to choose what Operating System to start.

Things are working for now, but I'm probable going to try and put Ubuntu on its own separate partition, away from Win8.


How to make whoopsie more silent (log clutter with "online"messages)

Per sokai, there is no way to run whoopsie that prevents it from logging these "online" messages -- it's a bug. However, if you want to get them out of your logs, you can drop the following line into /etc/rsyslog.d/00-whoopsie.conf and the messages won't be logged anymore:

  # whoopsie generates a lot of messages of "online"
  # these are worthless and can be filtered
  if $programname == 'whoopsie' and $msg == ' online' then ~

This is pretty specific, too. If whoopsie logs something else other than " online", it will still make it to your logs.


After some tries, it appears older kernel work, and suspend resume work as expected ( uff !).

For the record, 3.5.0, 3.5.7 and 3.6.11 are OK.
3.7.10 is not OK, and in some cases, resume does not work.

Important: if you use the link below, you do this at your own risks, and you perfectly know what you are doing
Link for download: http://kernel.ubuntu.com/~kernel-ppa/mainline/

On the QA side, it appears that wrong changes appeared progressively, say since 3.6.x (one scary warning, the rest works) and things became wrong starting 3.7.x, but still work somewhat. Since 3.8.0 => no more resume. With the recent 3.9.0-rc6, one dev reproduced and analyzed the issue with resume, and found some interesting tracks.

To be continued ...

If you want to follow the development, see :
http://lists.freedesktop.org/archives/intel-gfx/
And you'll understand how difficult things are ;-)

-- ericb


'xinput list' shows same device twice & device IDs change: how to use 'set-prop' in a script?

Someone else had a same problem, and someone provided a script solution: https://stackoverflow.com/a/18756948


Have a look at these questions, there are many great tools for programming described:

What developer text editors are available for Ubuntu?

What IDEs are available for Ubuntu?

I hope you will find there something that suits your needs! :)


Ubuntu 12.04 and now cannot get my vpn connection

looks like this worked for me:
http://blog.403labs.com/post/22325731425/vpn-dns-resolving-woes-in-ubuntu-12-04
I can access sites now and my pidgin is good as well

Tina


How to login Desktop without being interrupted by ctrl+c?

You can disable ctrl-c in a terminal by:

stty intr undef

and reenable it by:

stty intr ^c

So, you can put this line in .profile of the auto login user, or is that what you already tried?


Wubi was dropped from Ubuntu 13.04 raring. Read this here.


VMware Player 7 performance on Ubuntu 14.0.4

Strangely enough, this issue was resolved by simply running the VM with the VM stored on an Ubuntu/EXT partition, as I suggested in the comments.

  It could be the fact that it's stored on an NTFS partition - but
  that's doubtful. If you're curious, try making a copy of the VM
  somewhere on the Ubuntu partition and pointing VMware to that one.


Bash with cat for automatic merging pair of files

Do:

for f in L-*; do cat "$f" >>L/"$f"; done

This gets each L- file in the current directory (L-*) and append (>>) its content (cat "$f") in the file with same name in L directory (cat "$f" >>L/"$f").


Upgrading from 11.04 to 11.10 ceased at certain point: how to continue?

Do a fresh install, it isn't worth the work you would have by trying to finish ugrading, and your system would probably get REALLY bugged...


Can't find the IP address of the printer

First of all, make sure your printer gets a fixed IP address so it doesn't change all the time when the DHCP least time runs out.
If you are in a home network, most home DSL routers (FritzBox etc.) have an option to always assign the same IP to a device, even with DHCP (they basically assign the same IP to the same MAC address). In some cases you can even assign a hostname to the device so you can use the hostname ("photo-printer" or whatever).
The router is also your best bet to identify the printer's IP; go to the "network overview" (or whatever it's called in your router) and check out the device vendor.
If that doesn't work, check if you can make your printer print a status page; or sometimes it's even somewhere in the printer's menu.


Changelogs of many packages not available

This was bug 1005985 and appears to have been fixed now.


Ram keeps maxing out then going back down to normal then maxing out again in 19.04

To find out which process this is, run the following in a terminal:

while true;
do
ps -o pid,user,%mem,command ax | sort -b -k3 -r | head -n 6 >> /tmp/mem-usage.txt;
sleep 3;
done

Let it run until the problem occurs, then you can inspect /tmp/mem-usage.txt to find out which process it is and alleviate the problem which of course depends on the process.

The code will loop and print the top 5 processes that are using memory every 3 seconds to /tmp/mem-usage.txt. Once you have seen the problem, to stop the loop you hit Ctrl+C in the terminal window and then inspect the file.


How do I change the default location for the desktop?

In ~/.config/user-dirs.dirs you can change the location of your Desktop folder. If you want to set your desktop to be located at, for example, /media/my-other-hardrive you can change the line:

XDG_DESKTOP_DIR="$HOME/Desktop"

to

XDG_DESKTOP_DIR="/media/my-other-hardrive"


How do I install and enable wireless drivers on laptop with Ubuntu?

Unless the internet was connected to the laptop during installation (PREFERABLY WITH AN ETHERNET CABLE)the wireless drivers would not have installed.

To correct that, when faced with laptops brought to me for help, the solution which always works for me is to connect an ethernet cable as you already have, and to perform an update in the following manner:

With the ethernet cable connected, open the graphical ubuntu Update Manager.  CLICK CHECK.  Then click install updates.  Reboot


Ubuntu SDK: QML with C++ recommended App Design Methodology

Please read the QML wiki page. You'll find a link that will guide you to write apps mixing QML and C++:

http://qt-project.org/doc/qt-5/qtqml-cppintegration-topic.html

In addition to this tutorial check the following questions:

Ubuntu Touch app with c++ core and QML interface. How to create?
Embedding C++ Objects into QML with Context Properties


Where is the guide to port Ubuntu touch to cyanogenmod based devices?

The CyanogenMod based guide doesn't exist yet.

David Callé (who write the first guide) is busy at the moment with other projects. When I talked to him last time (~one month ago) he said it will take care during the summer to do the CyanogenMod guide.

Please note that this is only indicative, and I don't know if and when this guide will be created.


Unlike GNU/Linux apps, Windows apps rarely separate its configs from binaries (and no, putting configs into a subdir around binaries, and calling it a separation, is like tightly shove things into a cupboard, lock it up with mop, and say "the room is cleaned"). And they assume that they being ran from the directory where they installed, in part because .lnk files on Windows automagically set base directory there (the link is just an example, I didn't mean to recommend a .net based language).

There're a few solutions I see off the top of my head:

Create a script which would cd into the directory with the app, then would run it.
Search for a command line argument, of the particular app you want to run,  allowing to set a directory with configs. Then write a script which would run the app with that argument.
Create a .desktop file with Path= variable being set, which sets the working directory to run the app in. In your case of giving the access to employees, it's probably the most appropriate of the listed methods, as it allows to set an icon.


Copying directories in linux only if it contains the specified file

One approach is to make a new version of the parent directory in the new location, then copy across the subdirectories if they contain 123.dat. This uses the Bash shell's globbing feature to find the subdirectories so will only work on directories immediately below parent. in the example I'll assume parent is in a directory called /location1/ and will be moving to /location2/:

mkdir -p /location2/parent
for d in /location1/parent/*
  do if [[ -e "$d"/123.dat ]]; then
    cp -r "$d" /location2/parent
  done
fi

As a CLI one-liner that would be:

mkdir -p /location2/parent; for d in /location1/parent/*; do if [[ -e "$d"/123.dat ]]; then cp -r "$d" /location2/parent; done; fi

It's possible to improve this by using find to make it more efficient and add multi level subdirectories, or by putting the source directory, target directory and file to search for into variables. This should do what you need for now.

To copy a directory if it contains a particular file, but not copy any of the other files there's a less than elegant solution which requires cding into the source directory, the cd - part at the end returns you to your original directory:

mkdir -p /location2/parent; cd /location1/parent/ && for d in ./*; do if [[ -e "$d"/123.dat ]]; then cp --parents "$d"/123.dat /location2/parent/; fi ; done; cd -

As a multi-line:

mkdir -p /location2/parent
cd /location1/parent/ && for d in ./*
  do
    if [[ -e "$d"/123.dat ]]; then
      cp --parents "$d"/123.dat /location2/parent/
    fi
  done
cd -


You're looking to use gnome-classic.  If you don't to like the style of Unity, avoid Gnome3, as they are similar.

IBM Explanation

OMGUbuntu Explanation


conjure-up openstack error "error: flag provided but not defined: --upload-tool"

so it turns out conjure-up and juju are quite picky about each other's versions.  after lots of attempts, this solved my issue:

sudo apt-get remove --purge juju*
sudo apt-get remove --purge conjure-up
sudo snap install conjure-up --classic

conjure-up

here's the versions I am now running:

$ juju --version
  2.1.1-xenial-amd64
$ conjure-up --version
  conjure-up 2.1.1

before this, I was running something like juju 2.0, and conjure-up 0.1.2.


The driver repository you linked is for an older / different linux kernel.
To my understanding, the init_timer function was replaced by a timer_setup function sometime in 2017, which is why the code doesn't compile.
You could try opening a PR or changing the code yourself, or you may try a different driver for bluetooth.
I ordered a similar usb device which seems to use the same chipset.
A different driver worked for the WiFi portion, and bluetooth simply works with the kernel btusb driver.
One minor annoyance with this setup is that WiFi needs to have been active at some point after booting for bluetooth to work.
I'm not sure whether this is specific to my setup or a problem of the combined WiFi+Bluetooth devices.
The relevant portion of the output of usb-devices looks like this on my machine:
P:  Vendor=0bda ProdID=c820 Rev=02.00
S:  Manufacturer=Realtek
S:  Product=802.11ac NIC
S:  SerialNumber=123456
C:  #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#=0x1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#=0x2 Alt= 0 #EPs= 5 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8821cu

Note that I'm using a newer kernel release (5.8.0-7630-generic), so things may work out differently for you. The driver README says that 4.4.x upwards are supported though.
Good Luck!


I faced a similar problem. Here is my workaround:

Create folder /media/wd-elements
Find out UUID of your external disk:
sudo blkid
Add following line to your /etc/fstab:
UUID=<UUID> /media/wd-elements ntfs-3g defaults,soft,_netdev,users 0 0
Setup rule to mount your disk when it is plugged. link

If anyone has a better solution, share it please.

EDIT: I installed new version of Ubuntu (14.04) and my external disk mounts and unmounts correctly now!


-bash: /bin/ls: No such file or directory

You should have a look at this question on serverfault, and ensure that you not got rooted. :/ HTH
https://serverfault.com/questions/10884/bin-ls-not-found-even-though-it-exists


Nothing happens when clicking Update to 11.04

OK,
  it appears your package management system is a little screwed up.

edit your sources.list and # out the following entry (it isnt a standard repository that I recognise):

sudo nano /etc/apt/sources.list
#deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

save then

See if the following cleans up the package management system:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get --reinstall --purge install update-manager
update-manager


Brightness and volume buttons dont work?

Go to the KDE settings ("configure desktop" or "system settings") -> Shortcuts and Gestures -> Global Keyboard Shorcuts.

For volume, go to KMix, click "Volume Down" next to "Decrease Volume", click the box next to "Custom", then hit "Volume Down" button on your chromebook.  Do the same with "Mute" and "Volume Up".

For brightness, go to "KDE Daemon".  Set "Decrease Screen Brightness" and "Increase Screen Brightness" in the same way.

If the buttons are not detected at all, then it is likely that X11 does not support the buttons.


You cannot resize a partition while it is in use (mounted).
Hence its greyed out.

To resize your partition, you would need to boot from your Ubuntu 12.04 LiveDVD,

open Gparted, and then resize your Ubuntu partition.

Depending upon your current partition setup, you may want to shrink different partitions

If you have a large home partition (/home), you may shrink it by 100 gb, and in the free space created, create a ntfs partition which you could use for Windows.

Post your output of

sudo fdisk -l

so that I could better advice you in partitioning.

Edit-

As you stated that you only have single partition, just resize (shrink) it by 100 gb.


Why is kauth gone from heimdal-clients, and is there something to replace it with?

Right. I took another stab at this and finally found the solution, which is quite ridiculous: kauth is now more or less replaced by kinit, one can now auth with kinit.


Cassandra and CCM on Ubuntu, network loopback alias

there are two solutions to your problem:

you have another window in you terminal running a Cassandra instance (./cassandra) you should first close this window and re-run ccm start.
Your should use aliases this issue has already been addressed here.

Regards,
Magaly


How can I play music from iTunes library stored on Mac/Windows?

Provided you have installed

libavcodec-extra-52

from multiverse and your music files are not DRM protected most software media players including the default player Banshee will be able to play the audio files from your iTunes library.

To have acess to these files on the same machine you just have to mount the NTFS partition where your music library resides (see here and there).

In case these files are on a different machine there is no other way than setting up some kind of networking to gain access (e.g. by mounting the network share). This is also the way it is done by the proprietary Apple UPnP-like solution called "Home Sharing" that unfortunately is not Open Source and thus can not be made available to Ubuntu. However there is commercial software that allow bridging to a UPnP client (e.g. Allegro).

See also this question for other solutions to set up a UPnP server that do not involve iTunes.

To have access from Ubuntu your music player needs to be capable of being an UPnP client. This can be achieved for many players, e.g. by installing a plugin.

  Note: Setting up a samba share on Windows is likely to be the easiest way when it comes to just gaining access to your library.


A problem in jack plug detection is sometimes reported (as here).
The 2 solutions  suppose  you have an independant "speaker" setting in alsamixer (or no external speaker).

you can try to disable " automute" in alsamixer :
launch alsamixer in a maximized terminal, press F6 to select main sound card, scroll thru faders with right arrow to   "automute" , change value with m or up/down arrow )
Another way is disabling jack sensor using hda-jack-retask :

Install alsa-tools and alsa-tools-gui  then
Close all applications including alsamixer and probably pulseaudio  (pulseaudio -k should stop it, but if it auto relaunches, run successively these 3 commands in a terminal :
mkdir ~/.pulse
echo autospawn=no > ~/.pulse/client.conf
pulseaudio -k
run hda-jack-retask. Clic "advanced override" , locate "headphones" , clic "override" near it, and select "not present" in "jack detection" , then "apply now".
You must unmute master fader in alsamixer , as "apply now" mute it.

to enable pulseaudio again,  run in a terminal
echo autospawn=yes > ~/.pulse/client.conf
pulseaudio -D


Wubi ignores .ISO file and downloads from beginning in Ubuntu 14.04

I got this problem solved after a few experiments. Disconnect your internet and then start wubi.exe and it will use the iso file in the same directory.

It may be a good idea to reconnect internet when your computer restarts for proper installation of ubuntu.

Thanks everybody.


Opening settings for individual gnome extensions shows blank window

Could that be Details and not Settings?  If so, I am seeing the same issue with Gnome Tweaks on PureOS using Gnome 3.28.  This function worked on Gnome 3.26 with gnome-tweaks-tool.

I get a blank screen too unless I go to Software first and look at any package's information.  Then, I get its information when I double-click any  extension in Gnome Tweaks.

This problem seems to be associated with an assertion error for the extension.
I have no solution yet, but a bit more information is at this link:  Gnome Tweaks->Extensions shows blank/cached details.  (I thought I was dealing with a connection problem getting Details, so the original subject line is misleading.)


Wait for input while executing bash script

you can use read command to read from STDIN.

read -n NUM -p "Enter the authorization code:" VAR

NUM: number of characters to read from STDIN
VAR: variable to save the input

if you don't know the number of characters or want to read unlimited characters from STDIN, you can remove -n NUM. this causes read command to ended by ENTER and save the result(authorization code) to $VAR.


There is a new setting in Ubuntu 14.04 to set global DPI scaling:

see this Answer


I don't believe there is an objectively chosen place to put portable apps. They are portable, after all.

The best thing to do with any portable app is to move it and its files into a directory and put that directory somewhere you know it won't be accidentally deleted. Definitely do not keep it in Downloads, especially if you regularly delete items from there.

If you want it to be easily accessible, put the folder containing the app on your desktop. It probably won't be accidentally deleted, and it'll be right there to click on. You can even make a link to the executable if you want even more convenience. You could also put the folder in your documents.

As far as I know, Ubuntu doesn't have designated space for portable apps. Just put them where they won't be removed.


After installing a package, is_installed returns still False, in python apt

For some reason, python doesn't carry over the variable after the cache.commit().  If you define it again afterwards, it returns the right pkg.is_installed answer.

#!/usr/bin/python

import apt.cache
pack1 = 'p7zip-full'

def cache_update():
    cache = apt.cache.Cache()
    cache.update()
    pkg = cache[pack1]
    print pkg.is_installed  # prints false

    if pkg.is_installed:
       print "it is already installed. Invalid request! "
       pkg.mark_delete()
    else:
       print "it is not installed.Now you are installing..."
       pkg.mark_install()

    cache.commit()

    print "DONE."
    cache = apt.cache.Cache()
    pkg = cache[pack1]
    print pkg.is_installed # prints true.

if __name__ == '__main__':
    cache_update()


Shutdown, restart and suspend problems on Acer E5 511 (Sandy Bridge) 14.04 and 15.04

I can offer no guarantees on this, but you might look into the reboot= kernel option. As documented in the kernel source tree's Documentation/kernel-parameters.txt file:

reboot=         [KNL]
                Format (x86 or x86_64):
                        [w[arm] | c[old] | h[ard] | s[oft] | g[pio]] \
                        [[,]s[mp]#### \
                        [[,]b[ios] | a[cpi] | k[bd] | t[riple] | e[fi] | p[ci]] \
                        [[,]f[orce]
                Where reboot_mode is one of warm (soft) or cold (hard) or gpio,
                      reboot_type is one of bios, acpi, kbd, triple, efi, or pci,
                      reboot_force is either force or not specified,
                      reboot_cpu is s[mp]#### with #### being the processor
                                to be used for rebooting.

To use these options, you'll need to edit your GRUB (or other boot loader) configuration. You can do this on a one-time basis in GRUB by hitting e rather than Enter to launch your kernel. This will give you a simple text editor in which you can change the kernel options. If you find something that works, use GRUB Customizer to set it up permanently.

If you use something other than GRUB, you'll need to consult the program's documentation to learn how to make changes. (Most make it easier than GRUB to customize settings, at least if you're comfortable editing configuration files.)


Are you sure the purple screen is from the Ubuntu setup? It sounds like the system doesn't recognize a proper boot device. But you could check by pressing the arrow key to the right (actually don't really think it matters which arrow key you use) to get into the custom install menu. You can choose extra options from there making sure the screen doesn't go black. Check the link for more info.

ubuntu 14.04 black screen when installing

Good luck!


Connected to WPA-secured network, but no internet

Good network connection without Internet access could mean that you are behind a proxy server. Check in the working computers if a proxy is set and you can add it in Ubuntu with in System -> Preferences -> "Network Proxy".

To validate if this is your problem, you should be able to ping a website in the terminal using for instance > ping www.google.com but the browser will not be able to access to the website.

If the ping fails, then the proxy is probably not your problem. You could then check if you have a DNS server in /etc/resolv.conf and set one if not. I usually test with OpenDNS (208.67.222.222 or 208.67.220.220) when something is not working because it is available most of the time and from anywhere. Set these two addresses in /etc/resolv.conf like this:

nameserver 208.67.222.222
nameserver 208.67.220.220

and then try to ping a website again. If ping works but there is still no internet in the browser, then check proxy as described above and add it if necessary.

Hopefully the Internet connection will work after trying this...


Ubuntu 16.04 LTS cannot connect to 5Ghz wifi with broadcom bcm43228

For 16.04 all you need to do is make sure restricted drivers are checked in your software and updates sources and issue the command sudo apt-get install bcmwl-kernel-source


GRUB menu >  Additional Options > Recovery Mode > Root Access
type the following commands. This will rebuild the broken ramdisk file.
sudo update-initramfs -c -k $(uname -r)

reboot


What security exist when sharing files via an external USB drive?

Next to none, as long as you do not run any programs from these sources.

There is no autorun in Ubuntu, so drives attached to the system will not trigger execution of any executable files found on the drives.

Moreover, the drives are automatically mounted for a given desktop user, which makes the scenario of automatic infection of the system unlikely, even in the case that a user runs one of the programs from the drive.

One can imagine the following scenario: someone hides an executable and calls it "portrait.jpg". The user opens the drive, ignores the fact that Nautilus indicates executable (rather than a jpeg), and when the binary asks for password, the user happily types in the password...

Well, you can always make sure that mounting is done with the noexec bit. But then, what is to stop the user from copying data from the hard disk to home directory and running it?


How can I boot into Windows after installing Ubuntu?

If you only had 1 drive with 1 partition on your computer then you may well have wiped it and put ubuntu in its place I'm afraid.

If this is what's happened you could try some file recovery tools to try and get some of your files back but in all honesty I haven't had much luck with these.

If you have more than 1 drive or partition on your pc then you should be able to see them in the file manager.

Sorry I can't be of more help, it would help to know how you installed Ubuntu (Wubi, Live disc) and if you did it from the live disc did you select "install alongside windows" or "replace windows".


It is possible to update a Live USB with persistent installed?

Persistent has problem of a late, so I wouldn't use it for "persistent" installations anymore. I would install the whole thing in the USB memory as described here.


Where can I download Ubuntu for laptops?

Download page from ubuntu.com:
Download Ubuntu Desktop

Don't be concerned that is says desktop.  It works with Laptops too.


BIND returns SERVFAIL after setting seemingly correct records

First, a public dns server, such as the Registar, where the domain name was purchased, will need to be setup to point your TCP/IP Address, example server or residential gateway public IP address. This may also be completed through a third party service such as route53 through aws.amazon.com service.

This answer though is to cover the topic of resolving the domain name(ercont.club) from the local/private machine that has Bind9 installed.

The file: /etc/bind/named.conf.options resembles the following, and appears to be correct.

acl "trusted" {
        167.160.84.198; # ns1 and ns2
};
options {
        directory "/var/cache/bind";
        recursion yes;
        allow-recursion { localhost; trusted; };
        allow-query { localhost; 167.160.84.0/8; };
        listen-on { 167.160.84.198; };
        allow-transfer { none; };
forwarders {
                8.8.8.8;
                8.8.4.4;
        };
dnssec-validation auto;
auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};

The File: /etc/bind/named.conf.local should resemble the following:

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";

view "internal" {
        match-clients {
                localhost;
                167.160.84.0/8;
        };
# set zone
        zone "ercont.club" {
                type master;
                file "/etc/bind/db.ercont.club";
                allow-update { none; };
        };
# set reverse zone lookup
        zone "160.67.in-addr.arpa" {
                type master;
                file "/etc/bind/db.160.67";
                allow-update { none; };
        };
        include "/etc/bind/named.conf.default-zones";
};

The file: db.ercont.club

; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ercont.club. mail.ercont.club. (
         3      ; Serial
    604800      ; Refresh
    86400       ; Retry
    2419200     ; Expire
    604800 )    ; Negative Cache TTL
; name servers - NS records
@    IN     NS    ns1.ercont.club.
@    IN     NS    ns2.ercont.club.
@    IN     A       127.0.0.1
@    IN     A       167.160.84.198

; A records
ercont.club.      A       167.160.84.198

Prior to saving the file, increment the serial number by at least 1.

Issue command: sudo named-checkzone ercont.club db.ercont.club

If Zone OK, continue. If not review and correct.

The file: /etc/bind/db.167.160:

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ercont.club. mail.ercont.club. (
                              3         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
; name servers
@        IN      NS      ns1.ercont.club.
@        IN      NS      ns2.ercont.club.
; PTR Records
198.84     IN      PTR     ns1.ercont.club.        ;
198.84     IN      PTR     ns2.ercont.club.        ;
198.84     IN      PTR     mail.ercont.club.       ;

Prior to saving the file, increment the serial number by at least 1.
Issue command: sudo named-checkzone 167.160.in-addr.arpa db.167.160

If Zone OK, continue. If not review and correct.

Issue Command: sudo service bind9 restart

Verify the service started properly, issue the command: sudo service bind9 status

Before it will translate accordingly, we need to setup the server to point to the new DNS Server.
If this is a server only setup, no desktop client; we will want to review the file: /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 167.160.84.198
        netmask 255.0.0.0
        gateway xxx.xxx.xxx.xxx
        dns-nameservers 167.160.84.198
        dns-search ercont.club

Otherwise, if you a Desktop and NetWork Manger, make the changes via the gui interface, or modify the file:

/etc/NetworkManager/system-connections/Wired\ connection\ 1

Changing the Wired\ connection\ 1, for what appears in Network Manager as the name of the connection.

Find the [ipv4] section of the file and add/modify the following two lines:

[ipv4]
dns=ipofyourdnsserver;
dns-search=ercont.club;

Save your modifications, and restart.

I hope this helps.


upgrade from ubuntu 16 to ubuntu 18.04 failed

I had a similar problem once - you could try this:

the .gnome file in your home directory could be corrupt. Rename it to something else (.gnome-old) by opening a terminal at login (ctrl alt f2) or by booting off a usb image.  Then reboot normally.


Can't boot Windows XP after installing Ubuntu 12.04

Boot from a Windows XP CD and got o recovery mode and in the command line write the command fixboot then restart


Ubuntu 13.04 Monitor & Resolution Issues on Older Nvidia Card

salam :)
nouveau nvidia driver are not working for some nVidia Cards
      (Use Recovery Mode if you have Black screen)
First install Linux headers and source:

 sudo apt-get install linux-source linux-headers

Remove the nVidida Drivers if they are installed

 sudo apt-get remove nvidia-current nvidia-current-updates

Install them from this repo:

sudo apt-add-repository ppa:xorg-edgers/ppa; sudo apt-get update ; sudo apt-get install nvidia-current nvidia-settings

If that is not working, use the Drivers from the 'Additional Drivers' Panel.


How do i log in to a specific gmail account in incognito mode using command line?

Intriguing question I got close...

chromium-browser https://accounts.google.com/ServiceLoginAuth?Email=froglegs@gmail.com&password=asecret -incognito

As its difficult to push the password as it expects a post with about 20+ other parameters I think this is the closest you will get.


How to recover after an accidental reboot during upgrade?

Normally this is a case by case thing. Depending when the upgrade was interrupted you may or not be able to recover from there, but the most easier solution is doing a backup of your system and installing anew the latest version.

Anyone may be able to recover, but if you are witless and ain't willing to go back and forth from support the best method is backup and reinstalling.


How to remove lines from output containing a particular string?

You can use grep -v to remove lines containing a string, such as '/proc', you could add this as a pipe to your command to make:

sudo find / -mmin -120 -printf '%T@ %p\n' | grep -v '^/proc' | sort -n | cut -f2- -d" " | more

However, as files in /proc/ are transitory in nature, you'll be likely to get some errors like

find: â?~/proc/22232/fdinfo/5â?T: No such file or directory

You can avoid these by redirecting the STDERR of the find command to /dev/null using, 2>/dev/null like so:

sudo find / -mmin -120 -printf '%T@ %p\n' 2>/dev/null | grep -v '^/proc' | sort -n | cut -f2- -d" " | more

A Better Method

Rather than filtering the results, and getting rid of your error messages, you can alter your find command so that it never looks in /proc:

sudo find / -not -path '/proc/*' -mmin -120 -printf '%T@ %p\n' | sort -n | cut -f2- -d" " | more


You can't install Ubuntu on Raspberry Pi 4 by running
sudo apt install ubuntu

You need to download an Ubuntu iso file from HERE, write it to a USB stick or a SD card, then boot from it and follow the installation process.
For a detailed tutorial see:
https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi


First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1 or 11, rather than automatic channel selection. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Set it permanently:

gksudo gedit /etc/rc.local

Right above the line exit 0, add the line:

iw reg set IS

Of course, substitute your country code if not Iceland. Proofread carefully, save and close gedit.


Help with the vi editer and its commands-

Vi Editor Commands

How to use the vi editor


Can I run android studio on windows 10 Subsystem Linux

For running Android Studio in WSL image you need to enable WSL2 which is currently subject of Windows Insider Preview builds.

Please note, that GUI applications are not officially supported by Microsoft, however it works and does not cause any filesystem problems in my case.

You can find a whole guide to start GUI applications including enabling WSL2 here: https://autoize.com/xfce4-desktop-environment-and-x-server-for-ubuntu-on-wsl-2/
All you need is to install VcSrv or any alternative on Windows side (I recommend paid X410 as an alternative with better UX) and xfce4 on Unix side and then configure Unix display to show in Windows by export DISPLAY=[unix ip]:0

After you configure it, you can download and install Android Studio from https://developer.android.com/studio#downloads

You can face an error during installation: "Unable to run mksdcard SDK tool." - see a related question on Stack overflow.
However, if you manually install missing libraries, it will complete the installation. I tried it and it works.

Install missing libraries with a recommended answer: sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

For information about connecting to USB device see this issue github.com/microsoft/WSL2-Linux-Kernel/issues/23 refering to this guide: github.com/rpasek/usbip-wsl2-instructions

A limitation is that WSL2 does not support nested virtualization at this time, so you will not be able to emulate an virtual Android device.


Kubuntu 20.04: How to change icons for GTK applications?

I believe that GTK3 applications should inherit the icon theme you set in system settings, but GTK2 applications need a bit more configuration.
You need to edit the file at ~/.gtkrc-2.0:

First, make a backup:
cd ~/
cp .gtkrc-2.0 .gtkrc-2.0.bak

Open ~/.gtkrc-2.0 for editing:
nano .gtkrc-2.0

Make changes to values as needed.  The value for GTK2 icon themes is gtk-icon-theme-name=.  If you wanted to change this to use the "Breeze" icon set, you would change the line to read:
gtk-icon-theme-name="Breeze"

The theme name needs to match exactly to an icon theme you already have installed (case-sensitive).  Note the use of quotation marks.

Save CTRL+O & Exit CTRL+X

Settings should take effect the next time any GTK2 icons are called to load, or you can reboot the PC.


Install music packages of rhythmbox and juk.

sudo apt install rhythmbox juk

These package have some additional audio drivers.

If that doesn't work try the official Ubuntu Sound Troubleshooting Procedure.


Open a terminal (CTRL+ALT+T)

Edit the pulse audio default files:

sudo nano /etc/pulse/default.pa

Replace load-module module-udev-detect to load-module module-udev-detect tsched=0, save file and reboot.

Good luck.


disabling touchpad via command as an on/off button

This script should do it. Save it as ~/bin/toggle_touchpad.sh, change the value of the touchpad variable to whatever your touchpad is called (see xinput list) and then map the script to your desired keyboard shortcut. Remember to make the script executable with chmod a+x ~/bin/toggle_touchpad.sh.

#!/bin/bash

## Change this value to whatever your touchpad is called
touchpad='SynPS/2 Synaptics TouchPad'

status=$(xinput  list-props "$touchpad" | grep "Device Enabled" | gawk '{print $NF}');

if (( $status==1 )); then
    xinput -set-int-prop "$touchpad" "Device Enabled" 8 0
else
    xinput -set-int-prop "$touchpad" "Device Enabled" 8 1
fi


I believe this is a known bug. Apply the latest kernel with apt full-upgrade.

Alternatively, add processor.max_cstate=0 intel_idle.max_cstate=0 idle=poll to the kernel commandline editing GRUB_CMDLINE_LINUX in /etc/default/grub and running update-grub, then reboot.

More detail on editing kernel cmdline rules can be found here: https://askubuntu.com/a/19487/853283


How to remove a lot of packages installed at a particular time?

Try this command,

awk '$1~/yyyy-mm-dd/ && $2~/hh:mm:ss/ && $3~/install/ { print $4}' /var/log/dpkg.log | xargs -I{} sudo apt-get -y remove {}

Example:

awk '$1~/2014-04-17/ && $2~/15:55:03/ && $3~/install/ { print $4}' /var/log/dpkg.log | xargs -I{} sudo apt-get -y remove {}

The above command will remove all the packages which are installed on 2014-04-17 at the time 15:55:03.


Suspend not working: shutting down instead

You can try this:

Edit the file /etc/default/grub (as root)
Change the line with:

GRUB_CMDLINE_LINUX=""

to:

GRUB_CMDLINE_LINUX="acpi_sleep=nonvs"

run update-grub (as root)

Above taken from Suspend fails (reboot on resume) and no hibernate option [closed] The answer is from 2011 and GRUB_CMDLINE_LINUX may not work the same in which case modify the GRUB_CMDLINE_LINUX_DEFAULT line instead.

These other unanswered questions are similar to yours:

Ubuntu shuts down instead of suspending
Ubuntu shuts down on suspend?
Dell XPS13 shuts down instead of suspending when on battery power - Gnome 16.04


Copying and paste from Wine program to terminal doesn't work

Try pasting it using key combination Ctrl + Shift + V. This works in some cases.


How to force a bridge to clone mac-address from first added physical port

Corresponding bug: https://bugs.launchpad.net/netplan/+bug/1718607

The current workaround use the match stanza. Bellow is an example (here with eno1 interface):

network:
  ethernets:
    eno1:
      match:
        macaddress: <LINK_MAC_HERE>
      [..]
  bridges:
    br0:
      macaddress: <LINK_MAC_HERE>
      interfaces:
        - eno1
      [..]

<LINK_MAC_HERE> mac address can be retrieved with the following command (just after link/ether): $ ip link show eno1

After setting this, you need either to reboot, or doing the following commands:

$ sudo ip link set br0 down
$ sudo brctl delbr br0
$ netplan apply


Youtube videos on Firefox not playing properly

Here are three suggestion for improving the playing of YouTube videos in Firefox.

Some models of the Dell Inspiron 13" 7348 Notebook have an NVIDIA graphics card, but most of the Dell 13" 7348 models don't have an NVIDIA graphics card. From the Dash search for Additional Drivers, open the Additional Drivers utility, and check if there is a proprietary NVIDIA graphics driver in the list of additional drivers that are available to be installed on your computer.

If there is a proprietary NVIDIA graphics driver in the list of additional drivers, you can identify the Recommended driver to be installed from the terminal by running the command:

ubuntu-drivers devices

Try enabling the YouTube HTML5 Video Player. From Firefox visit the YouTube HTML5 Video Player website and click the large blue button that says Request the HTML5 player.
Try watching the YouTube videos in Chromium browser. Maybe you'll have better results using the more up-to-date Pepper Flash Player in Chromium browser. Install Pepper Flash Player - browser plugin (pepperflashplugin-nonfree) from the Ubuntu Software Center.

When you install Pepper Flash Player - browser plugin, it will download Google Chrome and unpack it to make the included Pepper Flash Player available for use with Chromium. The latest version of Pepper Flash Player is 18.0.0.209 compared to 11.2.202.491 for Adobe Flash Player in Firefox. The instructions for updating Pepper Flash Player to the latest version are in this answer.

Update

These instructions will install Pepper flash player for Chromium and it will also be updated automatically. In addition to installing flash player for Chromium, it will also install/reinstall Adobe flash player for Firefox, and it will also be updated automatically. Because Google ended support for Chrome on 32-bit Linux in March, 2016, Pepper flash player can only be installed for 64-bit versions of Chromium.

To install flash player in Chromium web browser search the Dash for Software & Updates and open the Software & Updates window. Click the Other Software tab in the Software & Updates window and put a check mark in the checkbox to the left of where it says: Canonical Partners.

Click the Close button to close the Software & Updates window.

Open the terminal and type:

sudo apt-get update
sudo apt-get install adobe-flashplugin
sudo apt install browser-plugin-freshplayer-pepperflash # 16.04 and later


How will Deja-Dup's performance vary with the type of the target?

referred to the following test rsync is the best


How to modify config file from a separate file. Not symlink

output of lsb_release -d

Description:    Ubuntu 20.04 LTS

output of find /etc/squid/ -ls

  2109570      4 drwxr-xr-x   3 root     root         4096 May 30 17:47 /etc/squid/
  2109571      4 drwxr-xr-x   2 root     root         4096 May 30 17:47 /etc/squid/conf.d
  2109572      4 -rw-r--r--   1 root     root          230 May  7 13:21 /etc/squid/conf.d/debian.conf
  2109574    312 -rw-r--r--   1 root     root       316874 May  7 13:21 /etc/squid/squid.conf
  2109573      4 -rw-r--r--   1 root     root         1800 May  7 13:21 /etc/squid/errorpage.css

So you can see that the squid package on UBUNTU 20.04 has a /etc/squid/conf.d/ directory , so YES this is possible and recommended .


Boot from a Live USB or CD, remount your / disk partition rw and look at/fix (on the disk filesystem, which I will assume you mount at /mnt/tmp) /mnt/tmp/etc/sudoers and /mnt/tmp/etc/sudoers.d/*


Unable to Connect via Ethernet and Wireless to the Same Network

Lenovo Ideapad 310-15ABR

You have an old BIOS, 1LCN32WW.

There's a newer BIOS available, 1LCN50WW, and can be downloaded from here.

Note: Have good backups before updating the BIOS.

Note: Some recent kernels have had a problem with r8168 cards, so you should try booting to a Ubuntu Live 20.04 DVD/USB to check if the problem is resolved.


What do the colors in Power Statistics mean?

I looked through the source code for the GNOME Power Manager which provides the Power Statistics tool. There seem to be no other documents which explain the colors.

In the answer I point to the lines of code which support the statements I make instead of pasting the code here. See the gpm-statistics.c file for the lines of code I speak of. The file can be found in the gnome-power-manager-3.16.0.tar.xz archive. At most places that I mention a color I also mention the RGB values for the color in parenthesis. The code specifies the RGB values in that order too (line 822) as opposed to BGR or some other order.

The source (lines 907-919) revealed that there are more than just the three colors of Red (255,0,0), Green (0,255,0) and Blue (0,0,255). The code makes use of two other shades of Red and Blue, these colors being RedOther (200,0,0) and BlueOther (0,0,200) and a White (255,255,255) as well, although the White shows up only when you pick the "Rate" Graph Type (lines 915-916).

The colors correspond to one of seven states (lines 352-380). These states are:

UP_DEVICE_STATE_CHARGING which is "Charging"
UP_DEVICE_STATE_DISCHARGING which is "Discharging"
UP_DEVICE_STATE_EMPTY which is "Empty"
UP_DEVICE_STATE_FULLY_CHARGED which is "Charged"
UP_DEVICE_STATE_PENDING_CHARGE which is "Waiting to charge"
UP_DEVICE_STATE_PENDING_DISCHARGE which is "Waiting to discharge"
UP_DEVICE_STATE_UNKNOWN which is "Unknown"

The states are assigned colors as (lines 900-919):

"Charging" is Red (255,0,0)
"Discharging" is Blue (0,0,255)
"Waiting to charge" is RedOther (200,0,0) (This probably explains your red-and-discharging comment)
"Waiting to discharge" is BlueOther (0,0,200) (In some experimentation this seemed to show up when I had my laptop plugged in and on standby, so the BlueOther line climbs up)
"Charged" is Green (0,255,0) (Take this with some extra skepticism since I did not understand the code entirely at this point)
"Unknown" has no color assigned. (This too with skepticism)

That said though, I still cannot glean from the code what the "Waiting to discharge" and "Waiting to charge" mean exactly.


Is there something similar to "open with" in nautilus for midnight commander?

You can use a user menu (Command > User menu [F2]) to have several actions assigned to one file type. And to customise it - Command > Edit menu file.


How to implement in upstart that a service is preventive restarted every x hours?

I would expect you to do this with a "reload" or "restart" option from -outside- the script. See mysql and apache as an example: "service apache restart".

Alter your upstart script so it has a "restart" feature and then add that as a command to "/etc/crontab".

And yes, I understand this is not your intended answer but I also expect that the upstart script does NOT restart itself if it freezes and there is no crash. An "oncrash" can trigger a restarte but an "onfreeze" is probably not detectable.

See chapter 16 Daemon behaviour for some tips on this.


14.04 updated to 14.10 sound issues, system settings > sound grays out

I once had this problem in Ubuntu 12.10 ,while upgrading from 12.04, as your machine is a dell I think your one is realtek HD audio. So, you can download the source from http://www.realtek.com.tw/downloads/downloadsCheck.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false and compile from the code following the instructions given with it. Then install it. I hope it will work then :) . As i said , the probable reason is your audio driver is broken.


"/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11" error when installing htk

It seams that you are trying to link 32-bits libraries on 64-bits system and compile programs as 64-bits. The easiest solution is that you use 64-bits libraries (recompile them) or use 32-bit system.


Assuming you don't want the version available in package manager sudo apt-get install aircrack-ng you can take a look at this link and see if will help you compile

http://www.aircrack-ng.org/doku.php?id=install_aircrack

Download dependencies:

sudo apt-get install build-essential libssl-dev sqlite

Download tarball, extract, compile, and install:

wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc1.tar.gz
tar -zxvf aircrack-ng-1.2-rc1.tar.gz
cd aircrack-ng-1.2-rc1
make
sudo make install

I think the version available by apt-get (assuming on 14.04 is 1:1.1-6, but if you compile it you will get aircrack-ng-1.2-rc1)


xdotool how to select desktop send F5 and return?

Script below work of @WinEunuuchs2Unix and is the final solution. My original answer is at the end.

#!/bin/bash

TestIcons () {

    [[ $TestSeconds == "" ]] || [[ $TestSeconds == 0 ]] && TestSeconds=5

    local i Position File
    for (( i=0; i<${#IconsArr[@]}; i=i+ICON_FLD_CNT )) ; do
        File="$ICONS_DIR"/"${IconsArr[((i+ICON_NAME_NDX))]}"
        Position="${IconsArr[((i+ICON_COL_NDX))]},${IconsArr[((i+ICON_ROW_NDX))]}"
        gvfs-set-attribute -t string "$File" \
                'metadata::nautilus-icon-position' "$Position"
    done

    wmctrl -k on        # Show desktop
    xdotool key F5      # Refresh desktop (show icon new positions)
    sleep $TestSeconds  # Pause for view
    wmctrl -k off       # Restore windows

    for (( i=0; i<${#OldIconsArr[@]}; i=i+ICON_FLD_CNT )) ; do
        File="$ICONS_DIR"/"${OldIconsArr[((i+ICON_NAME_NDX))]}"
        Position="${OldIconsArr[((i+ICON_COL_NDX))]},${OldIconsArr[((i+ICON_ROW_NDX))]}"
        gvfs-set-attribute -t string "$File" \
                'metadata::nautilus-icon-position' "$Position"

    done

    wmctrl -k on        # Show desktop
    xdotool key F5      # Refresh desktop (show icon new positions)
    wmctrl -k off       # Restore windows

}
TestIcons

A few other xdotools commands that can be useful in similar situation:

If your window manager has a show desktop command, it can be useful to minimize, and bring back all windows. Usually it is set to ctrl+alt+d:

xdotool key ctrl+alt+d

If you want to save the currently active window, to later bring it back, you can use:

myWindow="$(xdotool getactivewindow)"

Ti minimize a window you can use. Adding it to a loop allows you to minimize all windows, as an alternative to the show dekstop.

xdotool windowminimize $(xdotool getactivewindow)

To bring the active window you saved back to the focus:

xdotool windowactivate "$myWindow"

To close the active window use:

xdotool getactivewindow windowkill

And most important, all those commands that you can use with active window, you can actually search and apply to specific cases. For example, searching for this specific window, based on the title.

xdotool search --desktop 0 --name "command line - xdotool" windowactivate

There are many different ways of searching for windows, based on the title, the class, if they are visible, etc. It can also manipulate both windows positions and the mouse. The manpage for xdotol is very comprehensive. Combining them with a bash script would give plenty of freedom to achieve most things.


How can I refer to all files that are named using two numbers?

I'd be highly surprised if the ftp://server/file protocol permits wildcards. I suspect you'll have to fetch a list of the available files and iterate over the ones with 2 digits.

However if you want to generate the numbers 00 to 99 in bash:

for file in {0..9}{0..9}.png; do ...


You can look in the syslog files in /var/log/ to see when the kernel was booted. Some of the older copies are compressed, or deleted over time, due to log rotation. Searching for Command line: in the files will give you timestamps of when the system was booted into Ubuntu.


This has been mentioned in this pull request. Try updating it or wait for a new version to come out.


You should go to your computer manufacturers' website to download the required sound drivers. They must be Linux compatible.
You could also change the PulseAudio and ALSA sound services configurations so that the sound could, you know, sound better.


You can also try this.

This will add execute permission to owner

chmod u+x file

This will remove execute permission from owner if he had it.

chmod u-x file

first character means who will be affected by this change.

u = user - owner
g = group - owning group
o = other - anyone
a = all - same as ugo

second character means if you will add or remove permissions

+ = add permission
- = remove permission
= = set permission and overwrite

third character means which permission to apply

for files:

r = read - display content of file, copy
w = write - change content of file, remove, rename
x = execute - run script, program ...

for folders:

r = read - display content of folder
w = write - create, remove files from directory
x = execute - cd into directory

If you want to add write permission for owner to all files in folder, run

chmod u+w -R folder

You can also combine them, so following are valid

chmod ugo+r file
chmod ug+rx file


Ubuntu12.04 has libc6 dependency problems when installing software

just type the command in the terminal

dpkg --configure libc6