Looks like you might have an external USB hard drive attached. If so, you'll need to:

Disconnect the drive
Boot into Ubuntu
Edit /etc/modprobe.d/options to include the following line:options usbcore use_both_schemes=y
Reboot

After this, your machine will properly recognise the external USB disk properly.
Hope this helps.


Try:

sudo ntfsfix /dev/sda3

But it will be more safe to boot into the Windows safe mode and do a clean shutdown.


Upgraded to package that was subsequently removed from repo...what to do?

The package itself was not deleted from the officially Ubuntu repositories. Maybe the version 2.1.3-1ubuntu0.2, but that's unusual.

And as you said in the comments:

  As @mchid mentions above, somehow I had 'proposed' changes enabled.
  When I took this off, a whole bunch of other packages got moved to
  local. And this explains so much, like why this PC was getting kernels
  before my the other ones.

Therefore force a downgrade

sudo apt-get install udisks2=2.1.3-1ubuntu0.1

or with synaptic

Select the package in synaptic
Use Ctrl-E to select a specific version
Select the latest version for trusty-updates
Apply the changes


Xorg configuration for additional monitor

I think ubuntu ignores xorg.conf. You could put this stuff in /usr/share/X11/xorg.conf.d, but you're probably better off using xrandr or arandr or unity-control-center to configure your monitors.


How can I stop Ubuntu from automatically unmounting Samba shares?

This is the method I have used successfully from 9.10 through 10.10 by mounting the shares with fstab following these steps.

Make sure you have smbfs installed first.
Create new directory(s) to mount the share to in terminal eg sudo mkdir /media/my_share
Open fstab in gedit gksudo gedit /etc/fstab also in terminal
Add one line per share example music, films, tv etc

//192.168.1.102/share_name /media/my_share cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

obviously changing the IP address, share_name and my_share to the relevant folders
Lastly create a hidden .smbcredentials file in root and open it in gedit

gksudo gedit /root/.smbcredentials

and add these lines to the new file

username=theuser
password=thepass

if you have no password for the shares then leave them blank and if you have many different share passwords then create multiple credentials files.

you will then need to change the owner of the credentials file

sudo chmod 700 /root/.smbcredentials

once all of this is in place you can test your setup by typing sudo mount -a in the terminal and your shares will be mounted.

from now on they will automatically mount when you log in.


Upgrade from 12.10 to 14.04 directly from ubuntu or clean Install?

You have to do a clean install for two reasons:

As you have noted, 32-bit cannot be upgraded to 64-bit.
Ubuntu releases can be upgraded in two ways: from any release to the immediate next release, or from one LTS release to another. You can't jump from a normal release to an LTS release which came a couple of versions later.

If you have the free space, create a new partition and install.
If you don't have the free space, you have two options - do a step-by-step upgradation of 12.10 to 14.04 - from 12.10 to 13.04, from 13.04 to 13.10 and 13.10 to 14.04. This can be done - the question is, is the time and effort worth it?
On last way would be avoid formatting the partition when you are installing 14.04, which may let you save your home directory and a few other things.


Sudden power down could possibly a protection mechanism against overheating. There should be kernel messages regarding this in your error logs at /var/log/kern.log and /var/log/debug

If it's related to overheating:

What were you doing while the power got cut down? Something CPU / GPU intensive?
Is your CPU overclocked?
There are various applications to monitor your temperature, CLI and GUI. One program for the terminal is sensors (sudo apt-get install lm-sensors). KDE has a Temperature widget, I expect Gnome to have something similar for its panel.


How many keyboard key combinations are possible in Ubuntu?

In the image below I have limited the number of keys by blacking out the ones that, in my opinion, would not really be used for this (enter,arrows, hardware etc) and coloured the keys to be modifiers in gray. This will give us a nice starting point.

This gives us, 6 modifier (mod) keys and 63 normal keys (key), so to get the amount of two key combinations we can do key*mod and get 378, call this A.

To get the number of three key combinations we have 6 mod keys and each can be paired with another, so each key can have 5 combos. If we do 6*5 we get 30 (com) and we can multiply this by key to get the number of three key combinations com*key is 1890 and call this B.

Finally we can add A to B and get the number of mappable shortcuts for Unity, within the given criteria.

A+B = 2268

To summarize:

mod*key + com*key = answer

You should be able to use this on any keyboard by assigning the numbers to the variables (key, mod, com) by counting them and then using the final equation to work out the number of possible shortcuts.

I am no mathematician but I think I did this right, please anyone feel free to tell me if I am not in the comments but I had to answer this, it was driving me nuts.


Can I make nautilus show book covers as thumbnails for Epub files?

No need to worry about scripts. do everything one by one

 sudo apt-get install python-pil

Now download this file from epub-thumbnailer GitHub page

now extract that file to a folder, and go into the extracted folder, Right click in empty space and select Open in Terminal and type the following command

sudo python install.py install
nautilus -q

now check your Epub files they should have thumbnails


Sounds like you're looking for xdotool or wmctrl. These are tools that let you script various interactions with the GUI. Both can be installed from the repositories, you can use whichever one you prefer:

sudo apt-get install wmctrl xdotool

My display is 1920 x 1080, so 1/3rd width would be 640. To place the active window at the left side of the screen, full height and 1/3rd width, I would run:

wmctrl -r :ACTIVE: -e 0,0,0,640,1080

The format is explained in man wmctrl:

-r <WIN>
     Specify a target window for an action.
-e <MVARG>
     Resize and move a window that has been specified with a -r action
     according to the  <MVARG> argument.

 [...]

<MVARG>
     A move and resize argument has the format 'g,x,y,w,h'.  All five components  are  integers.
     The  first  value, g, is the gravity of the window, with 0 being the
     most common value (the default value for the window). [...]
     The four remaining values are a standard geometry specification: x,y
     is the position of the top  left  corner  of  the  window, and w,h
     is the width and height of the window [...].

<WIN>
     This  argument  specifies a window that is the target of an action. [...]
     The  window name string :ACTIVE: may be used to instruct wmctrl to
     use the currently active window for the action.

You could also make it more dynamic by detecting the width automatically. This command prints the width of your display:

$ xrandr | grep -Po 'current\s*\K\d+'
1920

You could, therefore, integrate it into wmctrl like this:

wmctrl -r :ACTIVE: -e 0,0,0,$(($(xrandr | grep -Po 'current\s*\K\d+')/3)),1080

Now, all you have to do is assign that command to a keyboard shortcut from the Unity Settings and you're all set.


Yes, of course it is possible to run WordPress inside a virtual machine on your computer and access a WordPress website from the VM in your computer's webbrowser.

Your problem could be a Virtualbox network setup issue. Or even a firewall issue on your virtual machine in Ubuntu. Hard to tell from your info.

If you're new to VM/Ubuntu/WordPress and would like to get things up and running real quick, I suggest downloading and using a pre-configured virtual machine that has almost everything set up the right way already – like this bitnami WordPress Virtual Machines for example. You just have to complete Network setup for your virtual machine in Virtualbox. But they have good how-tos and readmes for this on their page.

This way you get good results fast. And you can still setup your own server from scratch later after you gained more experience with the whole topic.


Because Wine is an API implementation based in part on servicing undocumented parts of the Windows API (a case in which it's not possible to verify full compatibility), it's not always possible to make every Windows program run under Wine -- and the larger, more complex, and older the program (in terms of maintained life, hence the more patches and add-ons), the more likely it will make some API calls that Wine can't service.

Sometimes this just causes minor issues, like jukeboxes not working in There client; other times it will prevent an installer from completing, or cause a crash when you try to use a particular function, or otherwise make the program nearly or completely impossible to use.

As noted in comments, you would have a much better chance of Photoshop installing and working if you were to run it in a VM; however, there are some potential issues there, as well.  First, you'd have to have a licensed copy of Windows or MacOS to install in your VM; second, you'd need enough system resources to build a VM that can handle Photoshop (from hearing my partner complain about running Photoshop on an iMac, you'd need to allocate at least 16 GB RAM inside the VM, which would require you to have about 20 GB installed on your physical machine).  Then, VMs aren't always perfect, either, especially in terms of their use of hardware and hardware drivers, though some are better than others.

What I'd suggest if you need Photoshop and can't accomplish what you need in GIMP (possible, since Photoshop adds features and functions much more rapidly than GIMP) is to set up dual boot and reboot to Windows or MacOS for Photoshop sessions, then return to Ubuntu for other activities.  I've run dual boot in the past, and it's annoying at best -- but it does allow native installation and use of software that doesn't play well with Wine.  Additionally, if you have an actual Mac or Hackintosh, it allows use of MacOS and Mac versions of software; in some cases this is a significant improvement over Windows versions of the same software (and sometimes this works the other way).


How to change ubuntu server ip from assigned ranges?

If no DHCP is running in your datacenter you must do something like:

# device: eth0
auto  eth0
iface eth0 inet static
  address   10.20.30.40
  netmask   255.255.255.0
  gateway   10.20.30.1
  dns-nameservers 8.8.8.8


There are many possible places:

Your config folder ~/.config. Watch with

inotifywatch -e modify,create,delete -r ~/.config

The dot files direct to your home folder. Watch, e.g. your .mozilla folder with

inotifywatch -e modify,create,delete -r ~/.mozilla

The files in your local folder ~/.local. Watch with

inotifywatch -e modify,create,delete -r ~/.local

The dconf database, watch with

dconf watch /

and make some changes to check it ...


How to use sed to modify last 3 digit of a line with random number when a string matches in a file

If you don't have any particular requirements for the randomness, then you can use the bash shell's built in RANDOM as mentioned in comments e.g.

$ sed '/^ML_/ s/[0-9]\{3\}$/'$(printf '%03d' $((RANDOM%1000)))'/' a.txt
K8A2-19C204-BA109691
ML_18.10.4-109133

If you require "better" random numbers, then I'd suggest abandoning sed in favor of perl and looking for a suitable random number module.


12.04 Package System Broken apt-get autoremove -f fails

A quick Google search for this error message

This kernel does not support a non-PAE CPU.

seems to indicate that this is a common problem. Apparently, on some systems the kernel fails to recognise that the CPU supports PAE, which is required by Ubuntu. A solution seems to be to boot with the forcepae kernel option, so try this:

Open /etc/default/grub in a text editor. You can do for example gksudo gedit /etc/default/grub.
You will have a line of the form GRUB_CMDLINE_LINUX="something", add forcepae so that the line becomes GRUB_CMDLINE_LINUX="something forcepae". Save your changes and exit your text editor.
Run sudo update-grub, reboot, and try sudo apt-get -f install.


I wrote a reply to someone else's no audio topic after solving a similar problem with my own copy of Ubuntu 18.04 and I thought that you might benefit from it as well. Take a look at it here and see if it helps you as well. Instead of repeating the content, here is a link to my solution. https://askubuntu.com/a/1030811/824173


I faced the same issue, What resolved the issue for me was using the live CD i installed Boot Repair,that repaired my file system which was mounted on partition sd1. After rebooting the initial boot took a bit more time than usual  but the machine worked fine after that.


What is the "GeoIP database for Tor" update needed for?

It's possible to tell Tor to use country as a filter for various things. From the manual:

  ExcludeNodes node,node,…

  A list of identity fingerprints, country codes, and address patterns
  of nodes to avoid when building a circuit. Country codes are 2-letter
  ISO3166 codes, and must be wrapped in braces; [...]

  Country codes are case-insensitive. The code "{??}" refers to nodes
  whose country can’t be identified. No country code, including {??},
  works if no GeoIPFile can be loaded. See also the GeoIPExcludeUnknown
  option below.

  ExcludeExitNodes node,node,…

  A list of identity fingerprints, country codes, and address patterns
  of nodes to never use when picking an exit node [...]

  ExitNodes node,node,…

  A list of identity fingerprints, country codes [...]

For this to work, a database of IP-to-country mappings is needed, which is the GeoIP database.

If the GeoIP database is being updated by apt, then you must have installed Tor using apt at some point. Tor Browser should include its own GeoIP database. If you're not using the system (apt) Tor, then uninstall it and the GeoIP database package.


Getting system problem detected on startup, clicking Report does nothing

Type this command to get rid of the issue:

sudo rm -rf /var/crash/*

Then, reboot, it should solve your problem.


Given the output error you presented, it seems like you were unable to connect your remote FTP server from some reason.

For more detailed responses I would suggest also to try connecting using the terminal, as you can actually see the process of the client request and response from the server.
This will also help understand if the problem is the usage of the file manager or the connection itself.

Simply open the terminal and type: ftp your_server_IP_address , or ftp your_server_domain_name . Also add user@ before the ip or domain if it is user protected.

If you get an error about being unable to resolve the target name or IP, you might have a network problem or the connection is being blocked from some reason.


Unable to start CompizConfig Settings Manager in Ubuntu 16.04

For some reason there are files in /usr/local/lib that are not world-readable. This is probably a mistake. To make all files in /usr/local/lib world-readable run:

sudo chmod -R a+rX /usr/local/lib


Can't update playonlinux to 4.2.12 version?

Install the .deb file using the following command:

sudo apt install ~/downloads/PlayOnLinux_4.2.12.deb

You may need to adjust the path to the directory where you downloaded the file to. Alternatively you can use gdebi.

After installing it this way you can check the version

in the GUI via Help → About PlayOnLinux
with playonlinux --version:

PlayOnLinux 4.2.12

with apt search playonlinux:

playonlinux/now 4.2.12 all [installed,local]


PuTTY connection to remote server freezing sporadically

One possibility for your problem is when the server thinks the SSH session is inactive. There are two keepalive options in PuTTY in the category Connection; you can try if it gets better when one or both are enabled:

Seconds between keepalives: Set to something like 10 or 20.
Enable TCP keepalives


View terminal history without the line number

You can use the fc command instead. From help fc:

fc: fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command]
    Display or execute commands from the history list.

    fc is used to list or edit and re-execute commands from the history list.
    FIRST and LAST can be numbers specifying the range, or FIRST can be a
    string, which means the most recent command beginning with that
    string.

    Options:
      -e ENAME  select which editor to use.  Default is FCEDIT, then EDITOR,
            then vi
      -l    list lines instead of editing
      -n    omit line numbers when listing
      -r    reverse the order of the lines (newest listed first)

Therefore:

fc -ln

You can also look at the history file directly, but it might not be updated:

cat "$HISTFILE"


How to make Unity Launcher menu be almost always hidden and not influence window placement

Install Compiz Config Settings Manager
 from the Ubuntu Software Center
Open Compiz Config Settings Manager from Dash
Find Unity plugin and change Hide Launcher to Auto-Hide


You can delete it with rm as usual: rm NameOfFile. Note that with hard links there is no distinction between "the original file" and "the link to the file": you just have two names for the same file, and deleting just one of the names will not delete the other.


I was unable to update to Ubuntu 20 from Ubuntu 18.04

You have to remove third party repository. You can do it using one of two method:

Using the GUI (Software & Updates):

Open Software & Updates app.
Switch to Other Software tab.
Uncheck all checkboxes (it will prompt for password first time).
Retry upgrade to 20.04.

Using terminal:

Issue this command on terminal:

cd /etc/apt/sources.list.d

Using an editor like nano or vi comment all uncommented line (put a # character at the beginning of line) in all files. (You need to use sudo) (You have to open all files one by one) (Uncommented line indicates those lines which don't start with a # character.)
Retry upgrade to 20.04.


i installed it from here (https://github.com/paroj/xpad)

sudo git clone https://github.com/paroj/xpad.git /usr/src/xpad-0.4
sudo dkms install -m xpad -v 0.4

i works for me !


It looks like it can. "Additional mode" requires password and USB.


Program in $PATH does not does not run when called

eval happens to be the same name of a builtin bash command, as @steeldriver pointed out. It had nothing to do with my method of running the program. Rather, it was because I was running the bash command instead.


You can use virtscreen on linux to use an ipad or other computer as a secondary screen.

sudo apt-get install x11vnc
wget https://github.com/kbumsik/VirtScreen/releases/download/0.3.1/virtscreen.deb
sudo dpkg -i virtscreen.deb
virtscreen

The app is made by Bumsik Kim who commented above (but it's been a year and they've not posted their solution, so I did).


How to revert damage done by editing /etc/os-release

You have to fill the /etc/os-release file with contents below:
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

or reinstall its package by sudo apt-get install --reinstall base-files .


redshift-gtk crashes on start, ImportError: No module named 'xdg'

You are missing a Python dependency. Install it with sudo apt-get install python3-xdg. I just checked, it is included in Ubuntu Wily. If it is not included in your version of Linux Mint, you can install it by downloading it from the mentioned site and installing it with sudo dpkg -i … manually.

In case there is some Python egg on PyPI, you can install it the with pip3 install xdg. In case you do not have pip3, it should tell you how to install it when you try to start pip.


Error while trying to run juju bootstrap

I've solved this problem. I had to re-install juju with ppa:juju/pkgs, then removed ${} wrapped around my maas-oauth API-key. I successfully run bootstrap.


Access denied for user 'tt-rss'@'localhost' after installing tt-rss

I got this error after installing tt-rss with all the default settings (connecting to the database using unix socket, with "ident" identification).  I was able to fix it by doing the following:

sudo dpkg-reconfigure tt-rss
During the ncurses install process I selected tcp-ip as the connection method rather than socket and specified "localhost" as the server name.
Then I told the installer to use password authentication rather than ident

...and it worked!  I am now able to reach the tt-rss web interface.

I looked really closely to the installer output of one of my installation attempts to use ident and saw an error that it is unable to create a local user account, so that's probably why the default options didn't work...

HTH!


[  691.149506] print_req_error: I/O error, dev sdb, sector 0 flags 80700
[  691.149535] ata2: EH complete
[  691.322587] ata2: limiting SATA link speed to 3.0 Gbps
[  691.322594] ata2.00: exception Emask 0x52 SAct 0x84 SErr 0x400c01 action 0x6 frozen
[  691.322599] ata2.00: irq_stat 0x0c000000, interface fatal error
[  691.322604] ata2: SError: { RecovData Proto HostInt Handshk }
[  691.322610] ata2.00: failed command: READ FPDMA QUEUED
[  691.322620] ata2.00: cmd 60/08:10:10:08:00/00:00:00:00:00/40 tag 2 ncq dma 4096 in
                        res 40/00:10:10:08:00/00:00:00:00:00/40 Emask 0x52 (ATA bus error)
[  691.322624] ata2.00: status: { DRDY }
[  691.322628] ata2.00: failed command: READ FPDMA QUEUED
[  691.322637] ata2.00: cmd 60/08:38:00:18:00/00:00:00:00:00/40 tag 7 ncq dma 4096 in
                        res 40/00:10:10:08:00/00:00:00:00:00/40 Emask 0x52 (ATA bus error)
[  691.322640] ata2.00: status: { DRDY }
[  691.322647] ata2: hard resetting link
[  693.531207] ata2: SATA link down (SStatus 1 SControl 320)
[  693.540877] ata2: hard resetting link
[  695.747057] ata2: SATA link down (SStatus 1 SControl 320)
[  695.749023] ata2: hard resetting link
[  697.958459] ata2: SATA link down (SStatus 1 SControl 320)
[  697.958469] ata2.00: disabled
[  697.958498] sd 1:0:0:0: [sdb] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  697.958503] sd 1:0:0:0: [sdb] tag#2 Sense Key : Not Ready [current]
[  697.958507] sd 1:0:0:0: [sdb] tag#2 Add. Sense: Logical unit not ready, hard reset required
[  697.958513] sd 1:0:0:0: [sdb] tag#2 CDB: Read(10) 28 00 00 00 08 10 00 00 08 00
[  697.958517] print_req_error: I/O error, dev sdb, sector 2064 flags 80700
[  697.958548] sd 1:0:0:0: [sdb] tag#7 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  697.958551] sd 1:0:0:0: [sdb] tag#7 Sense Key : Not Ready [current]
[  697.958554] sd 1:0:0:0: [sdb] tag#7 Add. Sense: Logical unit not ready, hard reset required
[  697.958558] sd 1:0:0:0: [sdb] tag#7 CDB: Read(10) 28 00 00 00 18 00 00 00 08 00
[  697.958561] print_req_error: I/O error, dev sdb, sector 6144 flags 80700
[  697.958585] ata2: EH complete
[  697.958600] ata2.00: detaching (SCSI 1:0:0:0)
[  697.958629] print_req_error: I/O error, dev sdb, sector 2064 flags 0
[  697.958638] Buffer I/O error on dev sdb, logical block 258, async page read
[  697.958648] print_req_error: I/O error, dev sdb, sector 6144 flags 0
[  697.958653] Buffer I/O error on dev sdb1, logical block 512, async page read
[  697.958818] print_req_error: I/O error, dev sdb, sector 2064 flags 0
[  697.958822] Buffer I/O error on dev sdb, logical block 258, async page read
[  697.958854] print_req_error: I/O error, dev sdb, sector 2064 flags 0
[  697.958858] Buffer I/O error on dev sdb, logical block 258, async page read
[  697.958886] print_req_error: I/O error, dev sdb, sector 2064 flags 0
[  697.958890] Buffer I/O error on dev sdb, logical block 258, async page read
[  697.960629] print_req_error: I/O error, dev sdb, sector 0 flags 801
[  697.965279] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[  700.190526] ata2: SATA link down (SStatus 1 SControl 300)
[  702.418504] ata2: SATA link down (SStatus 1 SControl 300)
[  702.426511] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[  702.426516] sd 1:0:0:0: [sdb] Stopping disk
[  702.426531] sd 1:0:0:0: [sdb] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[  702.460953] [UFW BLOCK] IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:ce84:d694:e1d3:cf9a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=85888 PROTO=UDP SPT=8612 DPT=8612 LEN=24
[  702.460962] [UFW BLOCK] IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:ce84:d694:e1d3:cf9a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=931555 PROTO=UDP SPT=8612 DPT=8610 LEN=24
[  702.471075] [UFW BLOCK] IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:ce84:d694:e1d3:cf9a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=85888 PROTO=UDP SPT=8612 DPT=8612 LEN=24
[  702.471082] [UFW BLOCK] IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:ce84:d694:e1d3:cf9a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=931555 PROTO=UDP SPT=8612 DPT=8610 LEN=24
[  704.654284] ata2: SATA link down (SStatus 1 SControl 300)
[  706.886252] ata2: SATA link down (SStatus 1 SControl 300)
[  709.106174] ata2: SATA link down (SStatus 1 SControl 300)
[  711.330213] ata2: SATA link down (SStatus 1 SControl 300)
[  713.558370] ata2: SATA link down (SStatus 1 SControl 300)
[  715.786166] ata2: SATA link down (SStatus 1 SControl 300)
[  718.022167] ata2: SATA link down (SStatus 1 SControl 300)
[  720.238131] ata2: SATA link down (SStatus 1 SControl 300)
[  722.462393] ata2: COMRESET failed (errno=-32)


Ubuntu is unresponsive and scrolling is very jerky

Check if adobe-flashplugin and its dependencies are installed on your system. If not install the following two packages and restart system.


How do you disable Alt as the HUD key in 13.04

I just tried it in CCSM in 13.04 and disabling works. Here's what I do.

Open ccsm and select the Ubuntu Unity plugin.

Click the Edit button (Pencil icon) and in the dialog that appears, delete the  text. Just leave it empty and click save.
That's all. You should see now that the HUD shortcut is disabled.


What is the best external hard-drive compatible with ubuntu?

All external disk drives should work but there are a few factors to consider:

Bus type. If it's USB2 I'd bet years of my life on it working. USB3 drives are a bit more hit and miss but only because some chipsets have dodgy drivers (something time tends to fix). USB3 also requires you to have a USB3 port. Firewire should work.
Filesystem. Most big drives will come preformatted to ntfs (for use in Windows). That's fine and you can carry on using it like that if you wish but it'll probably perform better if you format it to something native to Linux, like ext4. This can be done with Disk Utility.
Fancy features might not work. Things like one-touch-backup require software installed to work and undoubtedly this software isn't written for Ubuntu. Don't buy things based on their fancy features: buy dumb external disks and you'll be happy with your purchase.


How to retrieve the data from Ubuntu one to windows 7?

The UbuntuOne service was shut-down as of 20140601, so there's a good chance that your issues are related to that.

You have until 20140731 to retrieve your data, which you should be able to do by browsing to the limited file access page (after successful login) from any OS.


Will proprietary software-based sound enhancements work with Ubuntu? (BeatsAudio, Dolby)

General advice

You should turn to the manufacturer and demand to have these user experience features ported to the operating system you want to use, if you want any of these to work properly.

The manufacturer usually has licensed proprietary technology and software that FOSS projects like Ubuntu, Debian or Fedora refuse to include or pay for.

Overview

Beats Audio from Beats Electronics

Software equalizer or audio processing that is only available for the preinstalled OS. Probably improved performance of the integrated speakers achieved by consulting engineers during product design phase.

Status: No known implementation of the software features

Dolby Advanced Audio, Dolby Home Theater, Dolby Pro Logic, Dolby Headphone, Dolby Virtual Speaker, Dolby Mobile… from Dolby Laboratories.

Software equalizer or audio processing that is only available for the preinstalled OS. Probably improved performance of the integrated speakers achieved by consulting engineers during product design phase.

Status: No known implementation of the software features

EAX and other audio processing from Creative

Special audio processing features may be available in alsamixer on newer hardware like the recon3D series via open source drivers. Some EAX effects in games may be available via OpenAL, but that is out of scope for this question.

Status: No known implementation of the software features

THX TruStudio, a collaboration of THX and Creative

Almost the same as for Creative.

Status: No known implementation of the software features

TrueAudio from AMD and AstoundSound from GenAudio

Audio processing that may be available via proprietary drivers for certain GPUs or APUs.

Status: No known implementation of the software features

General 3rd party Windows software like Asus SonicMaster

Software equalizer or audio processing that is only available for the preinstalled OS.

Status: No known implementation of the software features

Generic Virtual 7.1 Stereo Gamer Headsets

Similar to one of the above, usually implements solutions by Dolby Laboratories. The choice of labeling it Virtual 7.1 seems to be completely ambiguous and could also be 8.2 or what ever sounds fancy and up to date currently.

These seem to be based on Conexant's CX2077x family of DSPs. Devices may be detected as USB devices with analog stereo output and optionally as S/PDIF output in Linux. Remember MixAmps with optical in? This is the next step in retro fitting legacy tech. While testing with Windows 8, it doesn't seem to detect S/PDIF capability out of the box. Processing seems to be done on the chip without initially uploading a proprietary firmware blob, also these devices get warmer than regular dumb headsets and I doubt the LEDs are responsible for that. Enabling "Virtual 7.1" mode may be as easy as getting standard S/PDIF output to work, but this time the USB device is sort of faking it. (Side note: The PS4 currently only allows stereo for USB devices.)

Status: Standard functionality of the firmware (3D stereo downmix from multichannel sources, mic noise cancellation) may be possible. No known implementation of the Windows-specific software features.


Change language of the gnome shell overview

This is about the translation of the gnome-control-center package. For instance, the info in the "Details" entry is fetched from the file /usr/share/applications/gnome-info-panel.desktop. So either the strings are not (yet) translated into German, or it's some kind of bug. You may want to file a bug to call the translators' attention to it.


Maybe you would be knowing this and it is not a solution to your question but

Python 2.7 will not be maintained past 2020. Originally, there was no official date. Recently, that date has been updated to January 1, 2020.

Please avoid using
Python 2.7


GWT (Google Web Toolkit) App through USC (Ubuntu Software Center)

I think I am able to answer my own question with YES!

I can create a Web-Application with e.g, Google Web Toolkit! After I have to bundle it in an archive file (.tar.gz, .zip, etc)! For further information see: http://developer.ubuntu.com/publish/my-apps-packages/

The Web-App can be stored locally on the System. The only thing to to, is to create the application launcher with the following command: Exec=xdg-open <path to the local html-File on the System>

Thats it!


This is 50% answer and 50% question back, but it needs too much space to fit in a comment.

With netplan that can render to networkd/networkManager as you need it this would look like (with my sample addresses of course):

network:
    version: 2
    ethernets:
        ens3:
            dhcp4: false
            addresses:
                - 192.168.122.228/24
                - 10.0.0.7/24

That gives me normal 2 addr on one device/mac as you need it right?

2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 52:54:00:a8:b4:96 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.228/24 brd 192.168.122.255 scope global ens3
       valid_lft forever preferred_lft forever
    inet 10.0.0.7/24 brd 10.0.0.255 scope global ens3
       valid_lft forever preferred_lft forever

Note: You can make it matching more reliable by adding a match rule like (in case device type or slot assignment might ever change):

    match:
        macaddress: 52:54:00:a8:b4:96

And I have to admit, with the complexity of networkd - if I need to know how it is done in networkd I still write netplan rules and let it render them, so I can read what it created. From that if you want to use only networkd, you'd create it like this:

[Match]
Name=ens3

[Network]
Address=192.168.122.228/24
Address=10.0.0.7/24

The above will allow you to have both IPs that you wanted (if that is what you need), but not yet use both MACs.

I do not expect your NIC to really have two MACs right (I'd not see hwo that works). But I can think of your NIC having one MAC and you are "allowed" to use another MAC one on it, like when you would have used macvlan in the past?

ip link add link eth0 address AA:AA:AA:AA:AA:AA ens3.1 type macvlan

If you really have MACs on your device I think everybody would be happy to see a networkctl status -a output to see that for further consideration.
Otherwise I'll assume you have one primary MAC (XX:...) and are allowed/supposed to add another one (AA:...).

If you are really on the latter case and adding another IP as shown above is not enough, then I think you are blocked by this bug if so please chime in there and give the bug a bump with a comment and explaining why the above is not enough - Otherwise I'd expect while staying in state wishlist it might take a while to get fixed.


As stated in the comments, I was trying to use unity-control-center with gnome-tweaks tool. Deleting gnome-control-center and gnome-tweaks, I could not still open unity-control-desktop due to segmentation fault. Probably this was the reason, some time back, I tried to switch to gnome-control-center. I found another solution at https://ubuntuforums.org/showthread.php?t=2380509, where it is explained that this issue can be sorted out by using

setsid unity

Source: added to the question by OP


Only in XBMC mouse becomes too sensitive, can this be altered? Ubuntu 14.04

Change Setting > System> Video Output"  from "Full screen" to "Windowed" .
Not perfect, but the mouse should be more easier to control now.


Edit grub, paste this at a terminal: gksu gedit /etc/default/grub

Look for the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to

GRUB_CMDLINE_LINUX_DEFAULT=""

save.

Then at terminal paste this:

sudo update-grub


How can I customize the Ubuntu installer?

I installed ubiquity:

sudo apt-get install ubiquity ubiquity-casper ubiquity-slideshow-ubuntu ubiquity-frontend-gtk

and I made some modification to it. Since it is all HTML files it is very easy to customize.


How to flash Ubuntu-core Snappy on Artik-5 (v 0.5)?

This isn't possible as of now to flash the eMMc as far as I know of. We have in the plan to have a tool to flash current Ubuntu Core image that you would start from ssd card to eMMC (but no ETA on this).


I will not solve your problem, but I will show you where you are wrong. There are 2 kind of mistakes in your script:

[ $m -le $n ]. When you compare two integers in bash, you should use quotes as follow:

[ "$m" -le "$n" ]

or:

(("$m" <= "$n"))

More about: Comparison Operators.
i=`expr $i +1`. When you use expr, use spaces before and after operators. So, the right way is:

i=`expr $i + 1`

Others alternatives are:

let i=$i+1

or:

i=$(($i+1))

More about: Operators.


internet works only on recovery mode after network recover

Boot your computer normally.
Search for or open Software Sources.
Make sure the multiverse and universe boxes are checked.
Switch to the rightmost tab, Proprietary drivers or so.
tick/select everything mentioned.
close Software Sources; if you are asked whether you would like to update database information now, click Yes/okay
open a terminal and type sudo apt-get upgrade, then enter your password when it asks.
reboot normally.


I have a late 2011 Macbook Pro 8,1. What worked for me was indeed using a usb pendrive alongside the physical CD. I should also note that I used the 64-bit Mac image (http://cdimage.ubuntu.com/releases/11.10/release/) (edit: I read that you already are aware of it) (I honestly have no clue what the differences are, if it makes any.)

I created a live bootable usb drive using unetbootin from the ISO, then inserted the drive after Ubuntu booted from the CD to its menu. Press a key once that Human logo comes up, then insert the drive when the menu pops up.

After that, select to boot into the live desktop. It will fail to find the image on the disk, but will search the pendrive, and continue to load the desktop. From here, you should be able to install Ubuntu normally, although your woes of getting Ubuntu to work perfectly on the MBP are far from over :) (It is well worth the work, though!)


How disable mysql command in sudoers file?

I think sudo might not be the right tool for the job.

If you want a certain user to access log files you can use normal unix file permissions and/or extended attributes. To give a user permission to tail a file they need the read permission.

To do this using extended attributes try:

$ setfacl -m u:tailonly:r /usr/app/file

If you want a user to have read all the files in a directory, which is what I think you want to achieve you need to set the default ACL for that user, for that directory. For example:

$ setfacl -d -m user:tailonly:r /usr/app

This will set the permissions of new file to be readable by the tailonly user.

There are some good guides and a similar questios which might help:

https://serverfault.com/questions/2736/how-does-one-get-setfacl-to-set-acl-permissions-recursively-on-ubuntu-9-04-serve

http://www.gnutoolbox.com/acls-setfacl/


Ureadahead slows down boot process on Ubuntu 12.04

Try e4rat, it's faster and reliable

ppa https://launchpad.net/~trinitronx/+archive/minimal-no-ureadahead

how to use http://www.howtogeek.com/69753/how-to-cut-your-linux-pcs-boot-time-in-half-with-e4rat/


I've had problems like this. What I found was that I needed to go into the print settings and adjust the color mode. Print using system dialog > Color > Color Model
For my MG2522 the correct color mode is CMYK, but I only figured that out through trial and error.


You will need to reinstate the Windows boot loader to the MBR so that only Windows boots. You can then use disk manager to delete the Ubuntu partitions.  This question has been answered here.

It is organized step by step so you can choose the answer that applies to you.


I've reported it as a bug here: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1780020


DEB package can't install its dependencies when using dpkg

That's correct. dpkg itself is not a dependency resolver, apt provides that functionality. You will need to first install the required dependencies if you wish to install something with dpkg -i, or you will need to run apt-get -f install after, which should pull in the missing dependencies if they are available.


You have to install "forever" service provided by npm package.

forever installation

Using this you can start/stop your project running in background.

Thanks!!!


Avidemux 2.6.20 installation on Ubuntu 17.04 Zesty Zapus failed

Besides we hear sometimes that Avidemux is dead, it's possible to install it yet. I like it very much, and I successfully installed it in my 17.04 box right now.

Download the following file: https://sourceforge.net/projects/avidemux/files/avidemux/2.6.20/avidemux_2.6.20.tar.gz/download
sudo tar -zvxf "into a folder of your preference" (I suggest /tmp)
sudo apt install libsqlite3-dev qttools5-dev-tools build-essential cmake pkg-config zlib1g-dev zlib1g-dbg yasm qt4-qmake libqt4-dev
cd /tmp/avidemux_2.6.20
sudo bash bootStrap.bash      *** it will delay a bit ****
sudo cp -R install/usr/* /usr/
gedit ~/Desktop/avidemux.desktop   (and put this within it):

[Desktop Entry]
Version=2.6.20
Type=Application
Terminal=false
Exec=/usr/bin/avidemux3_qt4
Name=Avidemux3
Comment=<comments>
Icon=icon path here

Finally,

chmod +r ~/Desktop/avidemux.desktop


How to check the MD5SUM https://help.ubuntu.com/community/HowToMD5SUM

Ubuntu Hashs https://help.ubuntu.com/community/UbuntuHashes

This should give you the information needed to verify the .ISO


MTS video files - how to merge and convert multiple files

What you need seems to be a Non Linear Editing System (NLES), which will allow you to place your portions of video (scenes) in a timeline in order to arrange them in the position they should be so that you can "view" a one single video scene playing.

In addition, you can manipulate your video by adding improvements like color correction, gamma, brightness and contrast adjustment and other useful things.

If you wish you can also slice your scenes and remove portions of each video clip and finally do a render of your video production into a single file.

Ubuntu is plenty of useful tools for even real time video processing but if you are used to Windows/Mac Software you will feel comfortable with KDENlive (https://kdenlive.org/) and Openshot (http://openshot.org/).

My favorite is kdenlive so I am going to place this screenshots over here in order to illustrate the timeline video placement:

In this timeline I am using 2 Video sources and 1 picture. 1 of the videos is having the "Curves" plugin and I am adjusting brightness level with that plugin. As you can see, kdenlive provides several tools for audio/video levels monitoring so that you can achieve professional results from your production.

I used to work for TV/Radio Stations the last 20 years so let's say I worked with many digital audio/video file formats as from 1999. The Sony MTS is, if I don't mistake, a MP4 container unless you changed that from the options of your camcorder (if the camcorder features such function, of course) so you can mux/transcode the video files into a different file format without losing quality.

When it is about muxing/remuxing/transcoding the very best GUI Tool for ffmpeg/avconv/mencoder seems to be the Mobile Media Converter by Miksoft (https://www.miksoft.net/mobileMediaConverter.php) of which I am going to illustrate as follows:

MMC will also allow you to rip from DVD and Download from YouTube.

So. If you're involved in professional video editing you may agree that manipulating huge video files it a hard work. Unfortunately there's no "automatic" procedures if you wish to get stunning results.

But you're on your way.

Good luck!


The green rectangle indicates 'hardware' and the music note indicates 'audio', so together they indicate your sound card. For your headset, the black square wit the no entry sign means there is no image available to display, meaning Linux doesn't have a graphic to represent that headset. They are just symbols to make things look nice


ubuntu clamav freshclam can't download main.cvd

Had the same problem on Debian/KDE. I found this bug report which helped: simply edit freshclam.conf (kate /etc/clamav/freshclam.conf) and set ReceiveTimeout to something larger than 30.

For complete resolve there should be an error message that prompts you to do just that or a larger default value.


HDMI sound gone, can't figure out how to turn it back on

Fixed it. Turns out almost everything I observed was a complete red herring. Boxee was grabbing the sound device on boot and then wouldn't let its video player use it.

The fix is hacky but it works. It's a simple bait-and-switch. You write a script that edits the boxee config so the sound purposefully doesn't work, then start boxe (it tries to grab an imaginary card and fails) and then after a few seconds, the script puts the audio config back to what it should be, allowing videos to play sound.

Instead of running the boxee binary directly, you just call the script.

See: http://jira.boxee.tv/browse/BOXEE-4411?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs


Errors installing KDESVN and kde-runtime

I used aptitude to solve the problem

sudo aptitude install kdesvn

Just search for the best solution that aptitude gives you...


Microphone input volume too low in Cheese, Ubuntu 14.04

You can try the suggestion in the comment at Sound Input Works in Audacity but not in PavuControl:

  If your internal mic is either completely silent (no signal), or you
  can possibly pick a very small sound, with much background noise, even
  though you have set gain to maximum, there is something you could try.

  Install the pavucontrol application, start it and go to the "Input
  Devices" tab. Unlock the channels (there is a keylock icon), then mute
  the right channel while keeping the left channel at the volume you
  want. If the internal mic is now working correctly, you have an
  inverted internal mic, so that your right channel cancels out the left
  one.

source: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1002978


Installing libliquid-dev on a distro that doesnt support it with a repo

I tested this method on my Xenial system. It does not break system, but installs 4 files out of APT control. But this method works.

Install build-dependencies as written in inspectrum
wiki

sudo apt-get update
sudo apt-get install qt5-default libfftw3-dev cmake pkg-config

Install libliquid1d and libliquid1d-dev from Artful manually by extracting them directly:

cd ~/Downloads
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/liquid-dsp/libliquid1d_1.3.0-1_amd64.deb
dpkg -x libliquid1d_1.3.0-1_amd64.deb .

wget http://mirrors.kernel.org/ubuntu/pool/universe/l/liquid-dsp/libliquid-dev_1.3.0-1_amd64.deb
dpkg -x libliquid-dev_1.3.0-1_amd64.deb .

sudo cp  usr/lib/x86_64-linux-gnu/libliquid.* /usr/lib/x86_64-linux-gnu/
sudo cp -ar usr/include/liquid /usr/include/

Install necessary tools for compilation

sudo apt-get install build-essential git

Clone repository and compile the program

cd ~/Downloads
git clone https://github.com/miek/inspectrum.git
cd inspectrum
mkdir build
cd build
cmake ..
make
sudo make install

Note: Last step (sudo make install) is normal for this small project, otherwise use checkinstall.
Run installed program by inspectrum command.


After system is on do not login to desktop just press Ctrl+Atl+F2 then run the following commands after login in terminal

  cd ~/.config

  rm -rf xfce4

after deleting press Ctrl+Alt+F7 try to login in GUI now should be able to default panel .


how can i get driver for Acer V5 571-g laptop ubuntu 13.04

SMBus controllers do not have installable drivers. Not having a driver for an SMBus controller should not cause any issues - they are rarely used in practice. If you have correct battery readings in the power manager and the hotkeys work, you can ignore it.


Why doesn't desktop unlock screen accept my password?

please check your keyboard's settings.May be changing a different setting for keyboard might solve your problem.


Installation Problem Error: Kernel_thread_helper

If you are having issues using the standard Ubuntu GUI installation method I recommend you try the alternate installer which can be found here.

For your information;

  Alternate installer details

  The text-based alternate installer can be downloaded from a location
  near you. This installation CD is suited for computers unable to run
  the graphical desktop based installation, either because their
  computer does not meet the minimum requirements for the live cd or
  because their computer requires configuration after the installation
  is complete in order to use the desktop.


How to include "Commandline: packagekit role='update-packages'" in a sed command?

The queston boils down to "How do I quote/use single quotes inside a single quoted string"?

This answer over on stackoverflow.com explains it. Use

sed -r -i.1 '/(^Commandline: packagekit role='"'"'update-packages'"'"'|^Commandline: apt-get --no-upgrade|
               ^Commandline: apt full-upgrade|
               ....|
               ^Reinstall )/d' allhistory.log

(I added newlines for readability. Drop them in the actual command.)

Basically it is: Replace each inner ' with '"'"'. That is:

end the first string with ',
append a literal ' inside double quotes ("'"),
append the next part of the string again starting with '

If you consider this unreadable then you are right.
It is because bash does not have a nice string concatenation operator like
other language do. If there was such an operator (+, for example), then
it would look like this:

sed … '...role=' + "'" + 'update-packages' + "'" + '|^Commandline…'
#      ssssssss     d     sssssssssssssss     d     ssssssssssssss

Here the ses denote a single quoted string and the ds the double quoted
single-quote in-between. Since there is no such + operator in bash you need
to stick them together without any spaces in-between and that gives '"'"'.


Unable to install TexLive on Ubuntu, permission problems

I am new to Linux and LaTex, so apologies in advance if the rest of this is of no use to you.

I just installed texlive yesterday, and I do not remember having to enter 'i'. I had the reverse problem, not being able to install the full package because of errors during installation. I am running Linux on a small board called cubieboard2, that may be missing hardware or drivers required for some packages in the full version of texlive.

My commands were the following:

apt-get install texlive
apt-get install texmaker

When you come across a missing LaTex command, in my case it was fullpage, you can use apt-file to look for it:

apt-get install apt-file
apt-file -x search '/fullpage.sty$'

If it finds the file, it should respond like this:

texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/preprint/fullpage.sty

saying that it found 'fullpage.sty' in package 'texlive-latex-extra', so...

apt-get install texlive-latex-extra

Note: After running

apt-file -x search '/fullpage.sty$'

it may ask you to run some updating command first. I don't remember the command, but it will tell you.


In 14.04 there is an automativ weekly trim. You can disable it with:
sudo rm /etc/cron.weekly/fstrim
But I wouldn't recommend totally disabling TRIM, this will slow your drive down with time.


The problem lay in having installed SANE, not knowing that it was already installed in the machine. It was the duplicate installation that was creating the mess.


There are always issues with trying to reconfigure the disk you're currently booted off of.
it might be worthwhile trying a tool like Gparted that will boot of of USB and allow modification of the internal drives.


Unknown error -1 when trying to mount an .img file

At the end, I tried with a machine with more RAM and I got no more problems.

So definetively, 512 MB of RAM for Ubuntu 15.04 is too less for my purposes.


Take action if remote server responds to ping

No need for grep or anything like that, just do this:

ping -c 4 foo && sudo mount ...

This basically uses the fact that ping returns true if the ping works, the -c limits it to 4 pings before returning. You can also do something if ping fails like this:

ping -c 4 foo || echo "FAILED!"

The other thing to consider is why you're mounting on login and not in your fstab, there are some good guides to mounting smb file storage online:

https://help.ubuntu.com/community/Samba/SambaClientGuide

http://www.mattvanstone.com/2006/06/automatically_mounting_smb_sha/


You're confusing the different meaning of * for Shell Filename Expansion and Posix Basic Regex.

In Regex, * is the quantifier for the character in front of it, so h* means 0 or more occurrences of h. If you want "any number of any character", use .*.

grep '*' would look for literal * as there is nothing in front of it to quantify, while grep '**' would like for 0 or more occurrences of *, so everything will fit as 0 occurrences of something will always fit.

Anyways, you should rather use find with argument -path "*/flash/*" instead of grep the output of find.


Add windows boot manager entry for Ubuntu on Windows 7

The key to your question is: "I installed Ubuntu few months back via the windows installer..."

This is known as WUBI install, and is not the same as dual-boot.

In WUBI, no partitions are created for Ubuntu. Instead, a large file is used inside the Windows system as a virtual partition that stored all your Ubuntu related files. When you removed "Ubuntu related application" Windows deleted that file as well as the entry in the Windows bootloader. Everything related to Ubuntu is gone now.

The best course of action is to install Ubuntu as a true dual-boot by booting directly from a Live USB/DVD and restore your personal files from a backup. I hope you have made backups of your personal files in some external media.

Hope this helps.


Is there a boot option to modify key repeat behavior?

For virtual consoles, there is similar tool for xset. You may use:

setterm to turn on/off repeat

setterm -repeat off
setterm -repeat on

kbdrate to change rate/delay

sudo kbdrate -r <rate> -d <delay>

References:

archlinux wiki: Keyboard configuration in console
The Linux keyboard and console HOWTO
man setterm & man kbdrate


avant window navigator still starts at startup after i uninstalled

Hmmm... Strange, maybe you'd installed it two times, one through USC and other through a downloaded .deb package, if so it's needed to find the other AWN you installed and uninstall it. But probably, you didn't do that, so what to do? Try typing in the terminal:

sudo apt-get install aptitude
sudo aptitude purge avant-window-navigator
sudo apt-get -f avant-window-navigator
sudo apt-get autoremove avant-window-navigator

All these commands should fix your problem, but if not the last thing you can try is to search for awn or avant-window-navigator under Nautilus and when find any file related to AWN you delete it.


How do I to set the DNS server for a device using nmcli?

To add custom dns servers use

nmcli connection modify Wired_connection_1 ipv4.dns "192.168.1.1,8.8.8.8,8.8.4.4"

to check if the config is ok use

nmcli connection show Wired_connection_1 | grep "dns"

ipv4.dns:                               192.168.1.1,8.8.8.8,8.8.4.4
ipv4.dns-search:                        --
ipv4.dns-options:                       (default)
ipv4.dns-priority:                      0
ipv4.ignore-auto-dns:                   no
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       (default)
ipv6.dns-priority:                      0
ipv6.ignore-auto-dns:                   no

I stumbled upon same issue if I remove the 192.168.1.1 then due to some internal vmware networking bridging  it wasn't working, but to set the additional dns server, you can use the above method.


At the moment I can't find any relevant errors comparing the dmesg after sudo pm-suspend and dmesg after gui suspend.
The gui suspend log suddenly breaks before:
PM: Syncing filesystems ... done.
PM: Preparing system for mem sleep
Freezing user space processes ... (elapsed 0.001 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
PM: Entering mem sleep

Perhaps its a permission problem but i don't know enough about the difference between pm-suspend and gui suspend.

Here are a workaround for the problem:
Create a laucher on the desktop with sudo pm-suspend as command:

If you want to run this with password, tick "Run in terminal",
else to get it run without entering a password follow this:
Open a terminal and run sudo visudo then go to the end of the file and append this:
username hostname = (root) NOPASSWD: /usr/sbin/pm-suspend

( More info How do I run specific sudo commands without a password? )

Replace username with your username and hostname with your host (run  hostname in a terminal to get it)
Press CTRL+X to exit and save the file.
Then the desktop laucher for suspend should be run without need for a password.

Other suggestion:
Start from a new Xubuntu 14.04 DVD or USB run "Try Ubuntu" and then try to suspend with gui. If there is is no problem, probably it should be the best to reinstall Xubuntu.
A workaround for your apportcheckresume problem could be  http://ubuntuforums.org/showthread.php?t=2053494&p=12219467#post12219467 (but this only deactivate the messages)


unable to login into my microsoft teams account neither by using chromium nor by using application "microsoft teams for linux"

Please first check your date and time and set it to automatic then check if you have selected your time zone correctly.
after that restart your system
then Microsoft teams will run


you can take a look into Tiling window managers, Awesome WM seems to fit the needs you want.


How to set transparency and background color in Menu and taskbar in KDE Plasma?

Assuming breeze-light or breeze-dark theme is being used.

cp -r /usr/share/plasma/desktoptheme/breeze-light/ ~/.local/share/plasma/desktoptheme/

and then edit line BackgroundNormal from section [Colors:Window] of file .local/share/plasma/desktoptheme/breeze-light-custom/colors

Set the color in RGB model.

Edit theme name in .local/share/plasma/desktoptheme/breeze-light-custom/colors file.

colors file also has some more useful options for customizing desktop appearance.

Select newly created custom theme in system settings menu.


openconnect displayed conncect succesful, but actually cannot access source on vpn network

Did you upgrade to Ubuntu 12.10 recently? I did that and my openconnect VPN stopped working after that.
Turns out, I had never bothered to configure the firewall to allow VPN connections in the first place. I had kept it off for so long, I had forgotten that it was turned off.
After the upgrade, it was turned on by default, blocking my VPN connections.
After turning it off again (command line ufw or using Firestarter GUI), my VPN started working normally again...
Hope that helps.


How do I enter Setup and get into Ubuntu Core command line in a Raspberry Pi 3?

Sorry about my previous ignorance. I solved both issues. To answer question 1 I flashed the image again with Etcher in Raspberry Pi after formatting the SD Card. Then I SSH'd into Ubuntu Core with proper id_rsa key, passphrase and password.
Here is a guide I developed after succeeding:
Github Link


Messaging menu indicator does not work for Thunderbird

You may need to disable any extension you had working in 11.04 to get this functionality.  According to the details of the one I had, it is now integrated into the Ubuntu Oneiric version of Thunderbird, and they recommend disabling the original add-on.  After doing so, my indicator pop-up is working.  (However, I still don't get an unread message counter on the Thunderbird icon in the Unity launcher...)


Since you are only soft blocked, you can run sudo rfkill unblock all

If it were hard blocked, then you would need to change a physical switch on the laptop.


VirtualBox Seamless Mode -- No Window Borders?

Seemless mode will not work with compositing on.  Whatever method they use to detect the windows can't recognize the borders.  Turn off Visual Effects and you'll have borders again.

Here is the bug report if you want to track it:
http://www.virtualbox.org/ticket/6167


Ubuntu 14.10 with Cinnamon desktop missing trash can icon on desktop

Open your terminal go to home folder by using command cd ~ .

Delete files with the command rm as shown bellow and re-login. This should solve desktop problem when you relogin, since those files will be recreated with new configuration.

rm -rf .compiz .config .gconf .gnome .gnome2 .kde .gvfs .local


Chromium/Chrome tabs crashes on Ubuntu/Edubuntu 12.04.3

I'm not sure about the issue with the tabs crashing after logging in, however, I used to have issues running tabs on Chrome Ubuntu 12.04. I found this typically happened while watching a video in one tab, with more than one tab open and a program or two open. Sometimes, I needed this for school, so it was inevitable. When watching videos or using programs for personal use, I stopped multitasking and that kept the tabs from crashing most times.

This issue is not specific to Ubuntu - I also used Win 7 computers at school which had the same issue. Again, this is with multiple tabs open (usually one running video) and one or more programs in addition to Chrome open.

I believe that issue is a hardware one - too small a processor for everything that's running. I was using a very small net-book with out a lot of power or memory. If these tabs are ones that you have opening on startup, you may want to disable that (disabling applications from opening upon log - in is one of the first things articles/blogs will suggest to speed up Ubuntu).

Hope that helps!


Brightness controls not working on a Sony Vaio VPCY2

1) Open a terminal

2) type this:  gksudo gedit /etc/X11/xorg.conf

3) Enter your password;
   a text editor will appear, find the following lines:

Section "Screen"
       Identifier     "Screen0"
       Device         "Device0"
       Monitor        "Monitor0"
       DefaultDepth    24
       Option         "RegistryDwords" "EnableBrightnessControl=1"
   SubSection     "Display"
       Depth       24
   EndSubSection
EndSection

4) make this line look like this or add it if it dosen't exist:
   Option          "RegistryDwords" "EnableBrightnessControl=1"

5) close & save changes (Be careful before saving you can take down your system, if you're not sure that you didn't do anything wrong choose "don't save"!!

6) Restart computer.


You could try the -exec option with find command,

/etc/apache2/sites-enabled$ sudo find . -maxdepth 1 -type f -exec mv {} /etc/apache2/sites-available \;

For moving files owned by root, you need sudo permissions.

If you want to use xargs command then add -I option to it.

find . -maxdepth 1 -type f | sudo xargs -I {} mv {} /etc/apache2/sites-available/


It's your GPU. By default, you are using the open-source ATI driver, which does not have any power saving options on after a clean install.

You have two choices:
 1) Install the proprietary driver.
 2) Add power saving to the open-source one.

1) Is easy. Go to the "Hardware Drivers" manager. Install your drivers.
2) Not much harder.
https://wiki.archlinux.org/index.php/ATI#With_KMS_enabled

I'll copy out the main parts.
Open up a Terminal.
# sudo su
# echo dynpm > /sys/class/drm/card0/device/power_method

This will instantly lower the temperature, and power consumption.
Should be noticeable after a while. Check if it works. If it does,
read the corresponding answer.


Software and scanner for scanning photographic slides?

I've tested several scanner programs in Ubuntu and I think "gscan2pdf" is the best.

You can scan with ADF scanners (feeds the photos/sheets automatically), batch crop pages, set brighness/contrast (and more) before scanning (saves a lot of time), edit the pictures in GIMP or other external program, do OCR on text and more.

You can install it using the Ubuntu Program Central (or compile it from source: http://gscan2pdf.sourceforge.net/ )


How do I get rid of the gap on the right hand side of a maximised terminal when running Vim?

I think you can refer this link: https://thomashunter.name/posts/2019-01-20-removing-gvim-border

This is because the width and height of the screen is not perfectly divisible by the width and height of a character.


You want instance = "5term", not class = "5term".  The first term in WM_CLASS(String) is the instance, not the class.


3 different devices with Ubuntu 14.05 & 15.04 can't connect WIFI (Huawei HG552E)

This is a firmware problem in HG552e modems. I was trying to solve this problem for 9-10 days. A few minutes ago, I saw that post in ubuntu-tr forums.

The man says the following:

first download this package.
Extract the package. Open your modem interface.
Install HG552eV100R001C192B013_upgrade_main.bin file as software
update via modem interface.

This steps solved my problem.


Ubuntu 18.04, laptop ASUS ROG GL503VD-FY108 - "win" key works as "scroll lock"

The XKBOPTIONS line in /etc/default/keyboard seems to be the culprit. So you'd better edit the file, and remove the grp:lwin_toggle option.

But it's likely that that option has been imported to the related desktop settings too. To deal with that you may want to run this command:

gsettings reset org.gnome.desktop.input-sources xkb-options


Well, first you get some Windows program (.exe file - say, an installer), then you either start it from terminal using

cd /here/the/file/is
wine mywindowsprogram.exe

or as I remember you can right-click on an .exe file in Nautilus and choose "Open With..." -> "Wine"

By itself Wine has no interface or anything that can be started, it merely runs Windows programs.


you can connect your phone to your house wifi (if your pc is also connected to the wifi) and then search google play (im going to assume you are on android) for an app called AIRDROID.

i use it all the time to place songs onto my phone without a cable. it links to a port in your router and hosts like a mini server so technically it should work on any operating system on any browser. just download the app, start it. and type www.web.airdroid.com in you your browser.


First of all shrink your partition. You can do this with a tool like Gparted or use the Disk Manager that comes with Windows 10.

Get a USB and burn the Ubuntu .iso to it. Now boot from your live USB (you can change the boot order in your BIOS/UEFI or hold SHIFT while clicking Restart on your Windows 10 Start Menu).

You will be given an option to install Ubuntu. Do that, and when you are shown the screen that says "Installation Type", click "Install Ubuntu alongside Windows Boot Manager".

The rest of the installation you just do normally. Good luck!


How can I properly add PlayOnLinux programs to the Unity Launcher?

As of in Ubuntu 13.04 with the latest PlayOnLinux running Evernote and/or join.me in a  Wine 1.5.28 bottle...this problem has just disappeared on its own.

I just have PlayOnLinux create the shortcuts on my desktop and then I copy them to ~/.local/share/applications log out and log back in.  Then I take these Dash shortcuts and drag them to the launcher.


Each time I reboot Ubuntu 12.4 in my vmware on Mac OS the share folder are not mounted

So, MAC is the host and Ubuntu is the client.

It's the default behaviour, the VMware shared folders are basically folder shared over the network and without modifying fstab they are being mounted only when you need them.

You can follow this steps How do I mount shared folders in Ubuntu using VMware tools?


RTX 2060 on Ubuntu 18.04, driver installed correctly but system is still using llvmpipe

Have you tried to select it here:

Show Applications gnome menu -> Enter into Search field Additional keyword and open Additional Drivers (opened tab in Software & Updates window will appear). Look if there's the nvidia-drivers present and select the point if not selected.


No Unity when running Ubuntu 11.04 (64 bit) under VirtualBox+Windows 7 (64 bit)

Prerequisites for running Unity in Virtual Box are:

Virtual Box version >= 4.06
proper installation of Guest Additions
128 MB of RAM for the virtual graphics card (set in Virtual Box Manager)
enable 3D acceleration in Virtual Box Manager
Host graphic card driver that supports Open GL sufficiently
selecting Ubuntu session at login

Some host graphics cards will not sufficiently support hardware 3D acceleration. In these cases Unity-2D could be installed.


It is probably formatted to exfat. Run in terminal

sudo apt-get install exfat-fuse exfat-utils

and try again.


Cannot boot: "No init found. Try passing init=bootarg"

Disk Utility from Live CD

LiveCD or use a Live USB (your personal preference)
Dash -> Disk Utility
Mount Volume (try this first, if it mounts skip to #6 otherwise go to #4)
Check FileSystem (this will run a check and repair anything it needs to)
Mount Volume (second attempt, should work after Filesystem check if it didn't before)
Close Disk Utility & Shutdown/Restart your computer.
Remove the LiveCD (before shutdown) or the LiveUSB (after shutdown)
Restart (may or may not go to GRUB menu, if it does choose the first option).

*Note - steps 4. & 5. are only for if the first Mount Volume attempt fails.
source: http://ubuntuforums.org/archive/index.php/t-1728611.html


First, Search for PulseAudio in your machine

If not installed, you can find it in Ubuntu Software Center (PulseAudio Volume Control)

Next, open the built-in sound recorder and press record.

Then, open PulseAudio, go to recording tab. You should see this picture

If the Record Stream from option is "Built-in Audio", then change it to "Monitor of Built-in Audio".
You should now see your recorder working.


Maas Import boot image error: connection refused

I fixed error by:

sudo http_proxy=http://?.?.?.?:8080/ maas-import-pxe-files


You just need go to File -> Preferences then navigate to Plugins -> General and check both Global Hotkey and Gnome Shortcuts.


Ubuntu super-key doesn't work properly because of Tweaks

I had to disable the following extension:

Had it turned on, since I never use the (quite lousy) touchscreen on my Thinkpad, but I guess I can live without it.


How to make the GNOME Music Player Client (GMPC) my prefered ubuntu music player application?

GMPC is just a client to underlying MPD

You can integrate MPD to Unity Sound Menu following this instructions:

sudo add-apt-repository ppa:torkvemada/torkvemada
sudo apt-get update
sudo apt-get install mpd-sound-menu

then add it in start-up applications like mpd-sound-menu


Install the official Tor proxy

Tor and its official SOCKS 5 proxy are pretty quick to get running on Ubuntu. Going off of the Tor Project website's installation instructions, do the following:

Open a terminal by pressing Ctrl+Alt+T
Run the following (replace xenial with the release you're running if you're not on 16.04 Xenial Xerus):

sudo -i
echo deb http://deb.torproject.org/torproject.org xenial main > /etc/apt/sources.list.d/tor.list
echo deb-src http://deb.torproject.org/torproject.org xenial main >> /etc/apt/sources.list.d/tor.list
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
apt update
apt install tor deb.torproject.org-keyring
exit

Now the Tor SOCKS 5 proxy will be running on your machine, 127.0.0.1, on port 9050. Remember that this is a SOCKS 5 proxy, not an HTTP proxy.

Your Tor proxy will automatically start when your machine boots. You can run sudo service tor restart or other actions like start, stop, and status to control the Tor proxy on your machine.

Apt through Tor

Going off of the apt-transport-tor Github README, to get apt to work through Tor:

Back up /etc/apt/sources.list and all .list files in /etc/apt/sources.list.d
Open a terminal by pressing Ctrl+Alt+T
Run the following:

sudo -i
apt update
apt install apt-transport-tor
sed -i 's/ http/ tor+http/g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
apt update
exit

Make sure to fix any error messages that appear (if needed, restore the files you backed up)

Note: Be aware that some programs, like Google Chrome, will modify their .list file, so those programs may automatically switch back to trying to connect directly when checking for updates instead of going through Tor.

In-program proxy settings

A lot of programs connect just fine through Tor if you edit the proxy settings to:

Host: 127.0.0.1
Port: 9050
Proxy type (if it asks): SOCKS5
Username/Password (if it asks): both set to the name of the program

Proxy wrapper

Other programs, like irssi, need to use torsocks. There are two ways of doing this:

torsocks gives error messages:

torsocks -i command arguments

torsocks is quiet (useful for programs like irssi that assume they fully control what's shown on the terminal):

TORSOCKS_LOG_LEVEL=1 torsocks -i command arguments


Rather than compiling a kernel, you can use a pre-compiled version released by Ubuntu. 3.16 kernel chain is supported and it might suit your needs.

In your browser address bar paste this: http://kernel.ubuntu.com/~kernel-ppa/mainline/.

Use Ctrl+F to bring up search.
Use 3.16 as a search string.
Tap PgDn key until the screen changes to the image below.

Notice how 3.16.60 was just compiled on November 6, 2018 by the Ubuntu Kernel Farm. Click on 3.16.60 link and this screen appears:

Click the links under AMD64 to download:

linux-headers-3.16.60-031660_3.16.60-031660.201810220732_all.deb
linux-headers-3.16.60-031660-generic_3.16.60-031660.201810220732_amd64.deb
linux-image-3.16.60-031660-generic_3.16.60-031660.201810220732_amd64.deb

Change to your downloads directory:

cd ~/Downloads

Keep repeating command until all three files are downloaded with right size:

$ ll *.deb
-rw-rw-r-- 1 rick rick  9064576 Nov 12 16:40 linux-headers-3.16.60-031660_3.16.60-031660.201810220732_all.deb
-rw-rw-r-- 1 rick rick   693010 Nov 12 16:39 linux-headers-3.16.60-031660-generic_3.16.60-031660.201810220732_amd64.deb
-rw-rw-r-- 1 rick rick 54562272 Nov 12 16:40 linux-image-3.16.60-031660-generic_3.16.60-031660.201810220732_amd64.deb

Install the kernel files for 3.16.60:

sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-3.16.60-031660.
(... SNIP ...)
dpkg: dependency problems prevent configuration of linux-image-3.16.60-031660-generic:
 linux-image-3.16.60-031660-generic depends on module-init-tools (>= 3.3-pre11-4ubuntu3); however:
  Package module-init-tools is not installed.

dpkg: error processing package linux-image-3.16.60-031660-generic (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.16.60-031660-generic

OH OH There is a dependency problem. Install missing module:

$ sudo apt install module-init-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  module-init-tools
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
Need to get 2,372 B of archives.
After this operation, 18.4 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 module-init-tools all 22-1ubuntu5.1 [2,372 B]
Fetched 2,372 B in 0s (7,745 B/s)
Selecting previously unselected package module-init-tools.
(Reading database ... 346572 files and directories currently installed.)
Preparing to unpack .../module-init-tools_22-1ubuntu5.1_all.deb ...
Unpacking module-init-tools (22-1ubuntu5.1) ...
Setting up module-init-tools (22-1ubuntu5.1) ...
Setting up linux-image-3.16.60-031660-generic (3.16.60-031660.201810220732) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
update-initramfs: Generating /boot/initrd.img-3.16.60-031660-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.16.60-031660-generic /boot/vmlinuz-3.16.60-031660-generic
Generating grub configuration file ...
    (... SNIP ...)
done

AFTER missing module is installed, kernel 3.16.60 installation carries on where it left off.

Booting with 3.16.60 works OK for me but I loose:

Kernel features for NVMe M.2 SSD Gen 3.0 x 4 suspend / resume.
Kernel features to set laptop display brightness to last setting.
nVidia display driver features.
Support for Thunderbolt Type C DPI to HDMI converter is lost.
Grub overrides are needed to avoid login loop. Ctrl+Alt+F1 needed to access console.


To add a mainline kernel you must go to the Ubuntu Kernel Mainline website and manually download and install 3 kernel packages:

The kernel image for your architecture
The kernel headers for your archiecture
The kernel headers for all archectures

Then you can install them with dpkg -i and reboot.  It should now appear as an option in your grub menu for you to try.

The process overall is outlined here:
https://wiki.ubuntu.com/Kernel/MainlineBuilds

and the Mainline Build Packages are available here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D

As for reporting back, you need to open a bug on launchpad and add the kernel-bug-exists-upstream and kernel-bug-exists-upstream-X.Y.Z tags to the bug report.

Good luck!


Update Gnome from the original in 14.4.2 to 3.16

You could upgrade to GNOME 3.16. A GUI doesn't affects your kernel.

But it's not simple, because there are no PPAs with GNOME 3.16 for Trusty.


You need to use a live CD to recover your Grub installation.

Follow the steps in desgua's answer Stuck on Grub command line as well as having a good read through the Ubuntu Community documentation page for Grub2.


Ubuntu 20.04 autoinstall: print late-commands output

My solution
I print /var/log/syslog on installation error in the error-commands autoinstall config section:
#cloud-config
autoinstall:
  late-commands:
    - echo "This is the error to debug" && exit 125
  error-commands:
    - tail -200 /var/log/syslog

How it works
This subiquity code handles early-commands, late-commands and error-commands:
https://github.com/CanonicalLtd/subiquity/blob/a76581cd2b973b55e55c6ac05b5bf47168493140/subiquity/server/controllers/cmdlist.py#L77-L120
How these autoinstall   keys handle output:

early-commands – echo+syslog
late-commands – syslog
error-commands – echo+syslog if autoinstall else syslog

So in late-commands I cannot echo to console. But I can echo from error-commands, provided that I am running a non-interactive autoinstall. I use it to print the last lines of syslog, which contain full error message: This is the error to debug.


I've found a solution to my problem. Apparently one of the drivers was failing in this set of commands.

Notably, step 6, "Generate a fresh xorg.conf BEFORE REBOOTING!", was failing. After following everything up until step six, I went here and followed the answer by Rostyk, then rebooted.

Unity 3d now works again.

Thank you!


You can use the generic driver: Generic PCL 6/PCL XL Printer Foomatic/hpijs-pcl5c.

Tested on Ubuntu 12.04

Others have reported that the same driver works on:

Ubuntu 16.04 Gnome with the DELL Color MFP E525w printer

You can change the driver for a printer like this:

Open "Printers"
Click on your printer, e.g. DELL MFP 525W
Click on the currently selected "Model"
Select Generic PCL 6/PCL XL Printer Foomatic/hpijs-pcl5c


how to install driver for middle button clickpad scrolling

As suggested by mikewhatever, the driver for Arch created by Taegil Bae (esrevinu) can be packaged for Ubuntu and installed using a procedure described by dalcde. The procedure was updated by faf0, since a tar.gz file from the procedure by dalcde became unavailable in December 2015. The procedure is as follows:

#!/bin/bash

sudo apt-get install git
sudo apt-get build-dep xserver-xorg-input-evdev xserver-xorg-input-synaptics

mkdir tmp-trackpoint
cd tmp-trackpoint

git clone https://aur.archlinux.org/xf86-input-evdev-trackpoint.git
git clone git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-input-evdev
git clone git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-input-synaptics

mv xf86-input-evdev-trackpoint arch
mv xserver-xorg-input-evdev evdev
mv xserver-xorg-input-synaptics synaptics

cp synaptics/src/{eventcomm.c,eventcomm.h,properties.c,synaptics.c,synapticsstr.h,synproto.c,synproto.h} evdev/src
cp synaptics/include/synaptics-properties.h evdev/src
cp arch/*.patch evdev

cd evdev
patch -p1 -i 0001-implement-trackpoint-wheel-emulation.patch
patch -p1 -i 0004-disable-clickpad_guess_clickfingers.patch
patch -p1 -i 0006-add-synatics-files-into-Makefile.am.patch

dpkg-buildpackage -d

cd ..
sudo dpkg -i xserver-xorg-input-evdev_*.deb
sudo apt-get remove xserver-xorg-input-synaptics

sudo mkdir /etc/X11/xorg.conf.d/
sudo cp arch/90-evdev-trackpoint.conf /etc/X11/xorg.conf.d

The procedure above works on Ubuntu 14.04.


Make a Debian Package (.deb) from a Qt Project

I just made my package by following tutorial. I recommend running qmake to create the Makefile, so that you don't run into problems while executing dpkg-buildpackage.

Steps

Assuming you have already setup the debian directory in the source code,

Copy the source directory (where the .pro file is) to your Home directory and rename it to yourProjectName_projectVersion.
Open a terminal and execute cd yourProjectName_projectVersion.
Then, execute dh_make -s -c gpl -e yourEmailAddress --createorig
Finally, execute dpkg-buildpackage. You may get something like error exit status 255, if so, check that the tar.xs file in you Home folder matches the file requested by dpkg-buildpackage (check the last lines of the output of dpkg-buildpackage to find out what file wants).

If you seek an easier and faster way, you can use Debreate (I did not test it, so I cannot assure you that it will work).

I hope this helps anyone who wants to distribute their Qt project.


Ubuntu 18.04: Shift+PrintScreen doesn't offer a "save" window after a recent update

It seems they changed the way screenshots are managed, you can check the shortcuts in Settings -> Device -> Keyboard -> Keyboard Shortcuts -> Screenshots.

To have the screenshot menu back you can create a new custom shortcut (again from Keyboard Shortcuts) and put as command the following line:

gnome-screenshot -i


Intermittent Internet connection using wireless LAN, Acer Aspire S3, Ubuntu 12.10

Oh, looks like I've just found the solution. So far this seems to have solved it completely. I ran this:

sudo -s

echo "options ath9k nohwcrypt=1" > /etc/modprobe.d/ath9k.conf

Following the instructions here under Wifi heading:

http://www.linlap.com/acer_aspire_s3


What is the minimum capacity of /home

The minimum capacity is as much as you need!!

For me I could use 1TB for /home while for someone else he needs just some Gbs since he doesn't have much data to store.

What I'm trying to say, this is directly relevant to what you and how you use your system and how much you have data to save.

  is it possible to make more than one logical drive for secondary
  storage?

You can take answer from my answer https://askubuntu.com/a/644291/150504


How do I get three monitors (HDMI and VGA and laptop internal) to work together in Ubuntu 16.04?

Not sure if this is related, but I lost connection to my third display during the weekend in Ubuntu 18.04. I have a Dell laptop with TB16 Dock. The dock has two display connected to it, but only one of them turns on. Until Friday I had all 3 displays working. I've tried to switch the cable from display port to HDMI and I tried with a spare dock with no success. I think this has something to do with some updates from last week.


wireless driver not working under 'old' linux kernel

Well, most of the laptops heat up when you connect to charging. You can fix this most of the time by installing a proprietary display driver. Goto Settings>Additional Drivers and see if you can activate a proprietary display driver.


Installing the SDK means installing the files you need to make Android apps on Ubuntu. That is detailed in this post

Complete Installation Guide for Android SDK / ADT Bundle on Ubuntu

However, you probably want an IDE also, which is the graphical program in which you can write android apps.

Usually people have used Eclipse for this. Eclipse is an IDE that can be used for many languages, and there is a plugin (the ADT plugin) which allows you to create Android apps with Eclipse. To install, first install Eclipse from the Ubuntu Software Centre and then see this guide.

http://developer.android.com/sdk/installing/installing-adt.html

There is another option, you can use Android Studio, which is based on another IDE called IntelliJ, however this is an early release which is not yet stable, and so using Eclipse is still recommended at this time.

For more information on Android Studio, see here;

http://developer.android.com/sdk/installing/studio.html


Firstly, I should point out the following: dpkg-deb is a hackish approach to making a package.  It only follows the bare minimum and relies on your existing system libraries as build dependencies.  It in turn is not a very reliable method to create packages which you wish to distribute outside your specific system for that reason, among others (such as dpkg version and requirement incongruities because of the Debian standards required in the given system).

This is why the Ubuntu Packaging Guide recommends building packages completely within pbuilder and following the dh_make templates for brand new packages (which in fact actually pulls data from the Debian packaging guide for some bits, heh)

Now, I took a very basic packaging approach here, and made a very simple package just containing a single script.

You'll note I have a bit more in my DEBIAN/ directory.  Most of the files here are stock files created with dh_make as if I were starting to follow the packaging guide for creating a package.  However, I just renamed debian/ that it creates to DEBIAN/, kept the install file but specifically told it what I needed it to do with installing, kept the postinst file because I'm too lazy to chmod +x the script before installing (so the postinst script will set it as executable), etc.  You can look at the specific details in your own time.

Now, with the above package 'structure', in a 14.04 LXD container (because I run 16.04 everywhere, so LXD images help me have older versions for testing things), I ran dpkg-deb and had some niceness happen:

root@trusty-deb-tests:~/temptests# dpkg-deb -b testingdata-0.0.1/
dpkg-deb: warning: 'testingdata-0.0.1//DEBIAN/control' contains user-defined field 'Build-Depends'
dpkg-deb: warning: 'testingdata-0.0.1//DEBIAN/control' contains user-defined field 'Standards-Version'
dpkg-deb: warning: ignoring 2 warnings about the control file(s)

dpkg-deb: building package `testingdata' in `testingdata-0.0.1.deb'.
root@trusty-deb-tests:~/temptests# ls
testingdata-0.0.1  testingdata-0.0.1.deb
root@trusty-deb-tests:~/temptests# dpkg-deb -c testingdata-0.0.1.deb
drwxrwxr-x root/root         0 2017-12-28 15:09 ./
drwxrwxr-x root/root         0 2017-12-28 15:09 ./dist/
-rw-r--r-- root/root        15 2017-12-28 15:09 ./dist/hellothere.sh
root@trusty-deb-tests:~/temptests#

So firstly, I believe something is odd in your package.  Even if I remove everything but the control file on my side, it still works properly, though it doesn't know how to write files, and doesn't recognize how to write to the proper location with my 'test'.

Something specific to your package is busted.  I'd suggest you 'start' with the baseline I have in that GitHub repository I linked, and work your way from there.  (Having the install file inside the DEBIAN folder also is good practice so you know what's installing where).


Open the terminal using Ctrl+Alt+T or search for it in the dash.

Then type the command:

     killall pulseaudio

and press enter.


How can I dual boot 2 linux distros Keeping One as my primary and constantly change the second?

If you want to keep may Os systems, use gparted to create as many partitions as you would like Operating systems, then just install each OS on each partition.

If you only want one extra OS at a time, just create on extra partition with gparted and install the new OS on top of the older OS each time you want to change. In other words, install the new OS on the same partition of the one you would like to replace.

You won't have to worry about Grub as each OS you install will update grub and give you an OS selection menu at boot automatically.

Be very careful not to accidentally install on top of your primary OS (obviously). Memorize the partition of your primary OS (sda....).


How can I make Claws Mail the preferred email client?

You are using the version of Claws-mail from the repositories (ie. 3.7.8-1ubuntu4)?  Version 3.7.9-1 has amongst others this bugfix:

Include x-scheme-handler in .desktop file (Closes: #610342)

So install this new version and it should work. You can get the lastest version here or following these instructions. Add these 2 to your repositories:

deb http://ppa.launchpad.net/claws-mail/ppa/ubuntu natty main
deb-src http://ppa.launchpad.net/claws-mail/ppa/ubuntu natty main

update your sources list and update/re-install claws-mail. Images:

(If sources needed repeat it for the 2nd line)


MenuLibre Removing Items from Whisker Menu

Try using Alacarte. I had the same issue. just run sudo apt purge menulibre in terminal and after that run sudo apt install alacarte. You will then find it as "main menu" in your whisker menu. Run it and click "Restore system configuration". Be sure to use Alacarte for menu editing to prevent this from happening in the future.


And you couldnt fix it with Boot-Repair? I did it already several times and it worked fine. Just follow the steps Boot-Repair tells you. In any case, disable the fast start up of Windows...this was already once my problem. I hope you know how?


Try booting your system with Live CD and check with GPARTED for all your mounts which are supposed to be there.  To find which are the mounts expected by the system in the startup - view the file /etc/fstab.

Regards
PK


LVM tries to de-activate in use volume at shutdown and partition alignment concerns

It sounds like the shutdown script is being a little indiscriminate in managing LVM. In short, you have nothing to fear, you won't be able to deactivate an LVM volume while it's in use.

Your second question is much more complicated. It amounts to aligning your partitions correctly depending on the sector size of your disk. Here's a good article from IBM to get you started. It's not fatal, though it will impact performance some. Unless you're running a production server, or you're really into tweaking, I would leave it alone.


Ubuntu/Gnome 17.10: maximze window top/bottom shortcut

This Gnome extension does this and it works pretty well.

https://extensions.gnome.org/extension/39/put-windows/


I guess you got lost some where. Boot the VM and from Devices Menu choose "Install Guest Additions". This will mount the ISO as a CD in the VM. Next Run this in terminal:

sudo sh /media/cdrom/VBoxLinuxAdditions.run

Then continue to follow on screen Instructions. Reboot the VM when done.


How to enable Google Hangouts in Chromium

Install the Hangouts Chrome App: https://chrome.google.com/webstore/detail/google-hangouts/knipolnnllmklapflnccelgolnpehhpl?hl=en

That should bring Hangouts to Chromium.


No Wireless on Ubuntu 15.10 with Broadcom 4350 Card

I was able to get wireless working by upgrading to version 4.4 of the kernel, as chili555 mentioned. As I'm writing, the Ubuntu team is at release candidate 8 of the 4.4 kernel.

To install the newer kernel version, first install Ubuntu (I used 15.10), then download the most recent Ubuntu build from the Ubuntu kernel PPA, move the appropriate .deb files on a USB drive to your laptop, and install them with dpkg -i *.deb.

I used v4.4-rc8-wily, but newer versions are released all the time.
See these instructions for general guidance on upgrading to a newer kernel version.

After restarting, I installed the newest versions of the linux-firmware and linux-firmware-nonfree packages I could find.  You can find them by searching online for 'ubuntu packages linux-firmware' and 'ubuntu packages linux-firmware-nonfree'.
(I apologize for not posting direct links; apparently I need more reputation points to have more than two URLs.)


Sounds like a corrupted download. Do a md5sum check on the iso and make sure it matches the hashes here before using it.


Use gdisk instead of fdisk. It isn't installed by default, so get it with:

sudo apt-get install gdisk

Then umount the drive and call gdisk for the device:

sudo gdisk /dev/sdX

It will prompt you to select the partition:

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT

Select the GPT one. In my case, 2. Use the ? command to print the command list. Enter x for expert options, then z to zap the GPT table and all the data on the disc:

Command (? for help): x

Expert command (? for help): z
About to wipe out GPT on /dev/sdx. Proceed? (Y/N): y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y


Ubuntu installation on i5-2430m possible?

That's because your VirtualBox emulates a 32bit non-PAE cpu. You should look into your BIOS to activate a feature called "virtualization" or something like this.
Maybe you should also look into your VirtualBox settings, see if you can enable another CPU emulation.

Your CPU is 64bit capable, maybe your VirtualBox isn't


getting rid of nouveau and using intel graphics

There is an option to switch cards on the Nvidia settings.

This is the official instructions with the Nvidia drivers https://wiki.ubuntu.com/X/Config/HybridGraphics

I suppose it will work on 15.04 as well. Careful to install the recommended drivers which in your case should be 346.59.
You can access the additional drivers gui from dash.

There are several posts about disabling the Nvidia card and nouveau drivers from command line but i can not recommend any, as they created problems to several users.

Example http://ubuntuguide.net/ubuntu-12-04-turn-off-discrete-graphic-card-on-boot


"OnlyShowIn" and "NotShowIn" not being obeyed in Openbox session?

LXpanel looks at the variable "XDG_CURRENT_DESKTOP" to display the menu entries. You can set the value of this variable to LXDE to achieve what you ask (XDG_CURRENT_DESKTOP=LXDE lxpanel), because if you set it to OPENBOX several menu entries do not appear.


Triple Boot: Windows 7, Ubuntu, and Debian

Yes it is definitely possible (I've done it before).

Windows 7 first so it doesn't overwrite GRUB, and then Ubuntu or Debian can be installed in whatever order you please. They will both install their version of GRUB onto your master boot record, but Ubuntu's will likely be a more recent version.

It is fine to use logical partitions, although you might have to chainload GRUB. As long as you aren't making any other partitions, you should be fine to install them all on primary partitions though.


IMHO it would be more elegant to use the presence / value of the variable to conditionally close the file descriptors e.g.

$ cat myscript.sh
#!/bin/bash

if [ -n "$MUTE" ]; then
    exec &>-
fi

echo somestuff
echo someerr >&2

then

$ ./myscript.sh
somestuff
someerr

but

$ MUTE=yes ./myscript.sh
$

If you really want to toggle the redirection, you could consider creating a shell function that duplicates the file descriptor(s) before closing them, and then restores the duplicates to re-enable the original streams e.g.

#!/bin/bash

function mute {
  case "$1" in
    "on")
      exec 3>&1-
      exec 4>&2-
    ;;
    "off")
      exec 1>&3-
      exec 2>&4-
    ;;
    *)
  esac
}

# Demonstration:

echo "with mute on: "
mute on
ls somefile
ls nofile

mute off
echo "with mute off: "
ls somefile
ls nofile

Result:

$ ./mute.sh
with mute on:
with mute off:
somefile
ls: cannot access nofile: No such file or directory


No swap installed. Why is swap value still 60?

/proc/sys/vm/swappiness is used to decide what and how much to swap, when you have swap space available.

It obviously does nothing if you have no swap space configured; but in Linux you can add swap space in any moment via, for example, swap files --- and in that case the system will behave following the parameters it has set.


How to reinstall network manager without internet access?

sudo dhclient eth0

then you will have internet and you can use...

sudo apt-get install network-manager


wireless networking disabled by hardware switch. unblock only wifi?


I solved my problem reading this discussion.
Running Disk Usage Disk with superuser privileges I saw that there was .Trash-0 directory with a lot of junk (the 14 - 6 GB) that I couldn't delete without be root. With sudo rm -r .Trash-0/ I solved and now all work good.


How do I change system-wide font settings in Kubuntu?

KDE System Settings

KDE System Settings > Application Appearance > Fonts

KDE UserBase: http://userbase.kde.org/System_Settings/Application_Appearance

Might also interest:

Font setting reset after restart in kubuntu 12.04
How to launch Configure Kde control module by command line?


Window-manager buttons no longer highlight on mouseover if window isn't maximized

I experience the same behavior, so I don't believe there is a "fix" as much as that this is the default behavior. If you believe it to be a problem, you should file a bug in launchpad against Unity.


Hide debug information when running apps from the command line

You can send those standard output and error messages to the null device, so that they don't show up in your terminal, e.g. gedit test.html >/dev/null 2>&1


After some messing around with different options, I settled on xset -dpms to just turn off DPMS. That prevents the monitors (all of them, sadly) from going to sleep. It's a functional workaround, but it would be nice to see a proper solution at some point


Make sure that all the miners in your tracker-control are on.

Type

tracker control

in terminal to check that. If the miners are off then switch them on using:

tracker control -s