Ubuntu 16.04 changing the text I am typing when typed quickly and prefixed with "tri"

What you describe sounds like the effect you might get when two or more keys are depressed together in some keyboards.  Because of the way the key switches are wired (in a matrix), simultaneous presses may register as an entirely different key -- and if one of the simultaneous keys is released before the other, the correct key may also register.

I've seen the same thing happen in a number of different operating systems going back to my pre-DOS days in the mid-1980s -- in my experience it's most common when the computer is a little bogged down and so may not poll the keyboard or process the interrupt fast enough.

My suggestion would be to type a little slower -- you'll tend to make fewer of your own mistakes in that case, as well as reducing the likelihood of pressing two keys at once.  Failing that, you might check your system for excessive numbers of running processes that could result in your system (especially if older hardware) running slowly enough to cause problems.


Search a directory for files and output result to a text file

This aught to help:

find /path/to/sound/files -type f -name "sound[0-9]" -printf 'media %f\n' > file.txt

Information:

sound[0-9]: Look for file with names that have sound and ends with a number

-printf 'media %f\n': Format the filesname with a prefix of media.

> file.txt:  Send it to file called file.txt.


System logs shows uninstalled program still working (ExpressVPN)

From the comments...

ExpressVPN didn't fully uninstall. To manually remove the remaining parts...

sudo rm -r /etc/systemd/system/expressvpn.service

sudo rm -r /etc/systemd/system/multi-user.target.wants/expressvpn.service

reboot


Ok i found it:

run VLC and go to VLC-->Tools-->Preferences
check the All field
click on Control interface
check LibNotify Notification Plugin


How can I enable overlay scrolling in Ubuntu 16.04 LTS?

on Unity Tweak Tool

  System -> Scrolling -> and choose Overlay

or from dconf editor

  com->canonical->desktop->interface and choose auto overlay

to install unity tweak tool

  sudo apt install unity-tweak-tool

to install dconf editor

  sudo apt install dconf-editor

reference

if none of these solution fit it possible this bug


No sound from headphone Dell XPS 13 ubuntu studio 18.04

I got mine to work by adding the following line to the bottom of /etc/pulse/system.pa

You need sudo rights to access this file.  i.e

sudo nano /etc/pulse/system.pa

Add this at the bottom of the file:

load-module module-switch-on-port-available

Save with Ctrl + X

Yes
enter

Reboot to restart pulseaudio and you will find the headphones now work as required.

There's probably a nicer/easier way to append this line to the file but the above worked for me!


This can be a hardware problem, so if you have a dedicated graphics card with the driver installed, make sure the display is connected to it.

Also make sure that there isn't an issue with the Display (try connect it to another computer and see the results or try another HDMI cable).


No operating system will boot after attempting to install Ubuntu 13.04 alongside Windows 8 on a Lenovo T530

You have to follow this guide

Boot repair

to recover the installation of grub!


I had some problems with my Asus Zenbook. To fix the 3-finger swipe I had to activate the Desktop Wall plugin in CCSM. For some reason it was deactivated by default. My setup (4-finger swipe) for scale windows (super-key + w) didn't work either, instead it just showed the dash (super-key). To fix it I had to change the shortcut for the dash to something different. I guess they made some hidden changes in 14.04 compared to 13.10.


Audio switches between headphone and output

The most probably your plug is plugged bad. Double check it, check if it happen when you move/turn/touch your PC.


Window tiling (Move-to-{corner,side}) shortcuts in Ubuntu 13.04

Install the compizconfig-settings-manager package.
Launch CompizConfig Settings Manager.
Navigate to the Grid settings.
Set hotkeys to personal preference.


Monitor flickering while using Nvidia card

Something similar has happened to me with the GTX 560TI but instead of flickering only it also included some puzzle effect where pieces of the monitor where not in order, so for example the top part was in the middle, the bottom part on top and so on. It took me a little while to get used to it while I worked on a solution.
This is what I did to solve it:

I booted the PC as I normally would (No proprietary drivers installed yet) but it "froze" or at least that's what the video said to me before entering to the Desktop. Not even lightdm appeared. So I booted again but this time left SHIFT pressed so the GRUB Menu would show. I then proceeded to select Recovery Mode which continued booting correctly until the Recovery Menu appeared.

In the recovery menu I selected failsafeX.

Now here is where it starts to get tricky. With the GT 220 and GT 440 I did not have any problems booting into the Desktop after selecting failsafeX but with the 560 the failsafeX gave me an error "The system is running in low-graphics mode" and stayed there forever. What I did in this case is that from there I went to the terminal (CTRL+ALT+F1) and typed (I had previously install aptitude but it works the same way with apt-get):

sudo aptitude install nvidia-current - If you haven't install it yet
 sudo aptitude reinstall nvidia-current - If you have already installed it

For other cases see this answer for details and follow the links there to help you along the way.

It downloaded and installed the drivers correctly. Same thing if you use apt-get:

sudo apt-get install nvidia-current

Remember that in the case you get an error AFTER selecting failsafeX from the recovery mode, pressed CTRL+ALT+F1, typed your user/pass and do the nvidia-current package installation from there.

After rebooting all problems should be solved. I have already tested the Additional Drivers and after finishing downloading the package it gave an error. I also went to software center and synaptic to try to install them, with the same result. The only way was either using failsafeX or the workaround about changing to the tty1 terminal and doing it via command line.

I also need to add that I do not recommend downloading the Drivers from the Nvidia site since they:

Might create additional problems with Ubuntu
Are not updated automatically
Are not tested thoroughly in Ubuntu

Always use the nvidia-current package or the nvidia-current-updates one. This are tested and approved already for the Ubuntu version you are using and will give less errors and incompatibility bugs.


Dot overlaps application name in app drawer (20.04)

Have provided a workaround to hide the dot though shifting the dot is possible but takes more time from my side.
Download the dot.zip file from this  git-hub-link.
Install the extension from the downloaded dot.zip file.
Enable the extension and refresh the gnome-shell or logout/login
Dot should disappear now.

Brave and Files apps are running, notice there is not dot in AllApps.


You have an error with -lgd. Do you have libgd-dev installed?

guest@desktop /tmp $ cat helloworld.c
#include <stdio.h>

int main(int argc, char **argv)
{
    printf("Hello, world!\n");
    return 0;
}
guest@desktop /tmp $ gcc -o helloworld helloworld.c -lgd
/usr/bin/ld : ne peut trouver -lgd
collect2: error: ld returned 1 exit status
guest@desktop /tmp $ sudo aptitude install libgd-dev
guest@desktop /tmp $ gcc -o helloworld helloworld.c -lgd
guest@desktop /tmp $ ./helloworld
Hello, world!


Can't view Ubuntu Server (VM) in browser, I can connect with SSH

It seems your configuration lacks a port 80 forwarding from your router to 1.1.1.1:80.


Problem getting monlist from my ntp server

Might be that "enable" is spelled wrong, ("enalbe monitor").


FreeSync fails in Ubuntu 16.04 LTS, tearing with a Radeon video adapter

xrandr --output DisplayPort-0 --set TearFree on

Worked for me with the "scroll tearing".
Hope it helps ^_^


Remove LF from a specific column using sed

You mean to do something like:
#!/usr/bin/awk -f

BEGIN { FS = "|"; OFS = "|"; i=0 }
{
    a[i]=(a[i] ?
        sprintf("%s%s\n", a[i], $0) : sprintf("%s", $0))

    if(NF!=4) {
        ++i
    }
}
END {
    for(e in a) {
        printf("%s", a[e])
    }
}

And you run it with -f:
awk -f script.awk text.txt


Migrating 2-disk raid0 installation to single drive

The simplest way that comes to mind is to connect your new 4TB drive through USB using a suitable external box. Alas it requires the expenditure for the extra hardware.

If you have a spare computer, you can attach your new drive on it and then connect the two computers trough network. Once the transfer is complete you can move the drives to their new place. The disadvantage to this is the time to configure things plus the time to transfer the files through ethernet, which will be considerable for the amount of data we are talking about.


Need driver for Alps touchpad on a Vaio F2 VPCF2190X that supports Multi-touch

This should probably be filed as a bug. Here is a link to a document with information regarding troubleshooting Touchpad problems, and it has information on how to file a bug report.


Installing is a matter of making sure permissions are set correctly, since the ToS installer doesn't.  If you install to your home directory and allow write and execute permissions in the ~/thinkTDA directory, you should be set.  Ubuntu may ask to confirm ToS as trusted.  Once you confirm that it is, the ToS icon will display on the desktop and/or launchpad.

I have now successfully installed and am using ToS on Ubuntu 12.04 and also Linux Mint 13 "Maya" and Linux Mint 14 "Nadia".  It won't install on openSUSE 12.1.  ToS runs just fine with each native openJDK (both 6 and 7), though pulseaudio sometimes causes exception errors, which require ToS to be restarted.

If ToS requests to be restarted, do so.  If you continue, it will SEGFAULT and you will probably have to remove and then restore power to recover.


How to remove desktop icons from terminal?

.desktop files :
a shortcut.desktop file is a text-file placed in the Desktop directory (~/Desktop) that is used to provide clickable shortcuts on the Desktop.

Check which ".desktop" files are used in your desktop :

ls ~/Desktop
Identify the ".desktop" you want to remove.
Remove the ".desktop" file you want to remove (replace nameofthefile by the name of the file, ending with .desktop):

rm ~/Desktop/nameofthefile.desktop

D-conf keys : it's a key stored in d-conf that is used to provide clickable shortcuts on the Unity Launcher bar.

Get the list of launcher items:

gsettings get com.canonical.Unity.Launcher favorites
This will return something like ['nautilus-home.desktop', 'gnome-terminal.desktop', 'gedit.desktop'] which you can manipulate to remove unwanted shortcuts.
Set the launcher item list with only the launcher you want, example:

gsettings set com.canonical.Unity.Launcher favorites "['nautilus-home.desktop']"

Don't forget the quotes !


The easiest way to install second Ubuntu alongside, without using CD / USB

While it's not exactly an answer to te question as asked in the title,
thanks to ubfan1's comment I found it's the best solution for the underlying problem:

When on existing Ubuntu you have no option to prepare live cd/usb, the easiest way is to boot from iso directly using grlm-rescueboot

just install:
sudo apt-get install grml-rescueboot
put bootable iso file to /boot/grlm
do:
sudo update-grub

That's it, after reboot, you will see additional option to boot from iso.


First off, what module do you want to insert and why? Normally there is no need to manually remove / insert modules. By the way, creating a module is a different story, insmod and rmmod are for loading / unloading a particular module (created by someone else).

Once you got your reasons straight, and are sure that there is no other way... then go to your system administrator and ask politely. Explain clearly your reasons, and you have a chance to succeed. No joke: unless you want to go against all rules (and some laws, probably) and hack the machine belonging to your school, you will not acquire privileges granting you such a low level operation.


You could try disabling ipv6, and see if this helps.  Ipv6 is a newer internet addressing protocol, and sometimes older hardware and software seem to get a little bunged up by it, for no apparent reason.

To disable Ipv6, open a terminal window (alt+ctrl+t) and enter the following command

sudo nano /etc/sysctl.conf

This will open an editor to the file sysctl.conf.  scroll to the end, and enter the lines

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Save the file by pressing ctrl+o, and exit by pressing ctrl+x.  You can then force the load of the modified file by entering the command sudo sysctl -p

To revert to what you had before, edit the file again, removing the added lines, and reboot


Retrieve a complete list of installed packages

There are several ways to list installed packages

dpkg -l
# or
dpkg-query -f '${binary:Package}\n' -W
# or
dpkg --get-selections | grep -v deinstall
# or
apt list --installed

Now, you want to save the list of installed packages and use the list with a fresh install.
 - Save the installed packages list to a file
 - Launch an apt install command feeded with the file

# SourcePC : Save a list of installed packages
dpkg-query -f '${binary:Package}\n' -W > /path/to/installList.txt

# TargetPC : Prepare, Install, Clean
# -- Prepare
sudo apt update
sudo apt-get dist-upgrade
# -- Install packages list from file
sudo apt install $(< /path/to/installList.txt)
# -- Clean: Fix eventually broken dependencies and remove unnecessary
sudo apt -f install
sudo apt autoremove


Display wakes up unexpectedly without activity on Ubuntu 12.04

Check to see if you have wol (Wake On Lan) turned on in your bios. If there is any activity at all, it will wake the system up from hibernation. This may be the issue.

I hope this helps.


Install fresh copy of Ubuntu 14.04lts on a USB flash drive, boot into "try Ubuntu mode" Run install, select repair current Ubuntu partition.


Is mouse middle click copy-and-paste a bug?

It's not a bug.
Highlight-and-middle-click-paste has been a standard Linux feature for decades.


The driver is not loading automatically. Let's fix it. From the terminal:

sudo -i
echo r8169  >>  /etc/modules
exit

You should be all set.


Navigate to parent folder with Backspace key in open file dialog

I found the solution (for GTK 3):

Create a file ~/.config/gtk-3.0/gtk.css:

@binding-set MyOwnFilechooserBindings
{
    bind "BackSpace" { "up-folder" () };
}

filechooser
{
    -gtk-key-bindings: MyOwnFilechooserBindings
}


It's a bug in the current version and is fixed in trunk as far as I know.
So, 2 options:

Compile Glade from trunk and use that.
Use this workaround: first add a new Related action (right above the label option) and set Use action appearance to False. Remove the action again if needed.


Special characters in cue files: shnsplit breaks

what solved the problem for me was first to convert the .cue file to UTF-8 encoding using:

conv -f ISO-8859-1 -t UTF-8//TRANSLIT cuefile.cue -o reencoded_cuefile.cue


You have 2 typos that will keep this code from compiling:

an extra comma after Jima in the array;
a missing semicolon at the end of the printf statement

If you did some printf debugging, you would see that strstr is returning NULL everytime, so a match is never found.

printf("%s", strstr( tracks[i], search_for ) );

Why is this? The input from stdin is not being terminated properly. You need to press ctrl+d (= EOF) after typing your search word.

In fact, you need to press it twice in order to end input and flush the buffer; then it runs as intended. Try it out. Example (it's case sensitive):

Iwo ctrl+dctrl+d


Window Disk Partition not shown in Ubuntu installation process

I had solve this by formatting all disk and make partition with help of bootable CD of Window 7. I think problem is created due to installation of Window 7 using pen drive. (As I had deleted all disk along with System Reserved before installing window 7 using pen derive)


You will need to alias watch as well for this to work.  It needs space around the command, i.e. alias watch='watch ' and after the space it is expecting the next part to be an alias as well.
So, we will create an alias with the -n in it as well.  Since you are doing every 2 seconds create a new alias to watch every 2 seconds.
alias watch-2='watch -n 2 '

Then you would just run it as
watch-2 gb

Hope this helps!


Use Ubuntu on external hard drive in 2 different devices?

Ubuntu on external hard drive in 2 different devices
As long as there are no proprietary drivers installed and both computers boot UEFI mode or else both computers boot Legacy mode, there will be no problem. It will be the same as booting a Live USB on both computers.
If you are installing a new Ubuntu 20.04 on a new external hard drive, you can use the method here: Easy Full Install USB that Boots both BIOS and UEFI to flash an Ubuntu image that boots both Legacy and UEFI modes.
The drive should boot an almost any Intel computer.


Unknown binary file named "0" in /usr/local/src/

Generally that directory is empty as it is used to install local sources of software: /usr/local/ is reserved for software installed locally by the sysadmin so we probably will not be able to tell you. You need to ask your sysadmin (and if that is you ... ).

I would assume it will be harmless to remove it.

od -c 0

will show the ASCII characters inside the file. Maybe the results from that can tell you what it is from.

edit on comments:

How about mounting the file as it seems to be an ISO.

sudo mkdir /media/0
sudo mount -o loop /usr/local/src/0 /media/0
cd /media/0
ls

and unmounting:

sudo umount /media/0


Ctrl + Alt + F1 gives you a command prompt.

Open /etc/default/grub with your text editor with root privilege.

Add the following new line using your preferred resolution-depth from the list that vbeinfo gave you. It should be like this if you have a 1280x800 screen:

GRUB_GFXPAYLOAD_LINUX=1280x800

Save the file and exit. (If you can't save the file you haven't opened it as root, go back and execute gksudo gedit /etc/default/grub providing your password.)

Execute the command

sudo update-grub

Restart your computer.


"No Kernel Error" when doing a EFI install

Perhaps you should try the amd64+mac image instead? As I understand it, it's for EFI machines. You can find it here: http://cdimage.ubuntu.com/releases/oneiric/release/


How can I make Unity display arrangement retain settings

I ended up handling this in a bash script which tests the output of xrandr for connected devices, then sets appropriate per-environment layouts.

Below is a simplified version which demonstrates how to do it.

#!/bin/bash

# Unity doesn't remember my screen layouts, so I made this to do it for me.
# GPLv3+, (c) Chris Burgess @xurizaemon

CONNECTED=$( xrandr | grep ' connected' )

LAYOUT=unknown
if [[ $CONNECTED = *"DP-1 connected"* ]] ; then
  LAYOUT=thunderbolt
elif [[ $CONNECTED = *"HDMI-2 connected"* ]] ; then
  LAYOUT=hdmi-2
fi

case "$LAYOUT" in
  "thunderbolt")
    # Thunderbolt, laptop
    xrandr --output DP-1 --auto --left-of eDP-1 --primary
    echo "Configured for $LAYOUT"
    ;;
  "hdmi-2")
    # Set to 57Hz for monitor support
    xrandr --newmode "1920x1080_57.00"  163.00  1920 2040 2240 2560  1080 1083 1088 1119 -hsync +vsync
    xrandr --addmode HDMI-2 "1920x1080_57.00"
    # HDMI, laptop
    xrandr --output HDMI-2 --mode "1920x1080_57.00" --left-of eDP-1 --primary
    echo "Configured for $LAYOUT"
    ;;
  *)
    echo "Layout $LAYOUT not known."
esac

My actual script is available at https://gist.github.com/e1892192ea8dd03a210d2890f8f966e7


How to setup bitrot protection with ext4 on 2 SSD workstation?

You can accomplish this using any standard RAID-configuration other than RAID-0. Setup a LVM RAID with the two disk mirroring each other. You may want to create some small non-mirrored partitions for non-persistent storage purposes like /tmp, ~/.cache, and ~/Downloads as its pointless to set aside double-space allocations for this type of data.

Once you have a LVM mirror setup you can periodically scrub the drives to check for and correct flipped bits. Red Hat's documentation will help you out.

I recommend you also have multiple backups of your data as wel. Don't overwrite your backups! Keep revisions. Have multiple backups on multiple medias using multiple backup methods.


Have you checked driver compatibility with your gamepad?
If you are looking for a temporary fix, use the following code:
sudo modprobe -r psmouse
This will disable input to your screen cursor. To turn it back on, enter this :
sudo modprobe psmouse proto=imps


I am no expert but I do know If you have phone and usb tethering you can sometimes tether to you ubuntu installation via easytether-usb, first you have to download and then install it though which can be tricky. I am also traveling and my ubuntu installation is giving me fits, luckily I was able to navigate through it well enough via terminal to complete my assignment but I will have to go and buy a usb cord capable of data tomorrow so that I can repair my installation, even though you can do fsck without internet, if you have any kind of serious problem running dpkg with an ethernet cord is your best bet and if that does not work then try to back up your files using a live usb or cd and then reinstall your main os. you can also boot into a live mode and try to repair it from there.


Ironhide is  no longer maintained.

In bumblebee its only optirun. It works perfectly in my dell xps L502.

You don't need update from ubuntu-x-swat/x-updates unless you are in ubuntu 11.04 and older. I recommend to  purge the ppa. Here is the updated instruction

Also did you upgrade to 12.04 or did a clean install of 12.04? In case of upgrade you need to remove old ironhide mess, instruction here


How to install ubuntu-desktop from boottable usb

Installing Ubuntu to a Flash Drive via Startup Disk Creator:

Note: Back up ALL data from your Flash Drive before proceeding!

Insert your Ubuntu CD (or if you have iso file than dont do this step) and restart your computer, booting from the Live CD

Insert a 1GB or larger USB flash drive

Navigate to System > Administration > Startup Disk Creator: Start Ubuntu's Startup Disk Creator

Next,

if you have iso file of Ubuntu than select from source disk iso file. than further proceed.

(1) Select your Flash Drive from Disk to use

(2) Choose to Erase Disk (Make sure you have backed up any important data first) Erase Disk (Make sure you have data backed up first)

Now,

(1) Select the partition related to your Flash Drive,

(2) For Persistence, select the option Stored in reserved extra space and adjust the slider to desired capacity

(4) Click the Make Startup Disk button: Proceed to Make an Ubuntu Startup Disk

A bar appears to indicate the progress of the install. Once the installation is complete, remove the CD, restart your computer and set your Boot Menu or System BIOS to boot from your USB device.

You should now be booting from your Ubuntu Startup Disk

I hope this will help you.


How do I re-Install Ubuntu Server on separate LVM partition than my data

Run the Ubuntu Server installation and choose manual configuration when it gets to the partitioning step. Select your root volume for Ubuntu and mark it for reformatting. Select your srv volume to be mounted on /srv and make sure it is not marked for reformatting. Alternatively, don't select it at all and add it to your /etc/fstab after installation. Select your swap volume to be used as swap.


not able to boot any OS Windows or Ubuntu

As far as i know you must change some configurations under BIOS :

advanced section : disable fastbios
boot section     : change to CSM_OS

And also look at this article:

booting-linux-via-uefi-can-brick-some-samsung-laptops


Difference between pre-installed Ubuntu and self-installed Ubuntu

The most direct benefit is that you don't have to install Ubuntu yourself. This makes it an attractive option for novice users who may not be comfortable installing an operating system, thus allowing Ubuntu to better compete with preinstalled Windows systems.

Also, if the system has Ubuntu instead of Windows, you don't have to pay the "Microsoft tax", by buying a computer with Windows which you won't use and then installing Ubuntu.

Finally, a preinstalled Ubuntu version may contain additional tweaks and drivers to allow Ubuntu to utilize all the features in the hardware. Sometimes "stock" Ubuntu will  run poorly on a particular system, but the preinstalled version is specifically tuned by the manufacturer to work correctly.

That doesn't mean that you'll be forever stuck with the version of Ubuntu that came preinstalled; usually the changes to make the system work are merged with the next version of stock Ubuntu.


Unable to install FreeNX Server on Ubuntu Trusty. Alternatives?

FreeNX is pretty old and unmaintained.

You should try X2GO which uses same NX technology (1, 2) and is actively maintained.

Server installation

You can find the detailed guide in the X2Go wiki, the essential commands in 14.04 are:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver

Client software installation

You don't have to add the PPA, x2goclient is available since 12.04 from the repository.

Note that X2Go is still incompatible with desktops that rely on 3D acceleration.


Setting the correct terminal
The error you find means that gnuplot is not recognizing a valid terminal. You have to set a valid one. To know the list of the available ones you can ask from the command line of gnuplot
gnuplot> set terminal

And it will answer with something like
Available terminal types:
       cairolatex  LaTeX picture environment using graphicx package
                   and Cairo backend
           canvas  HTML Canvas object
              cgm  Computer Graphics Metafile
          context  ConTeXt with MetaFun (for PDF documents)
            corel  EPS format for CorelDRAW
             dumb  ascii art for anything that prints text

              ...  Many linees  ...

              gif  GIF images using libgd and TrueType fonts
             gpic  GPIC -- Produce graphs in groff using the

              ...  Other linees  ...

For each of them you can ask to gnuplot itself for more information, for example with help terminal gif.
Then you can simply set the terminal, if you have try the dumb one it's lovely.
gnuplot> set terminal dumb
gnuplot> plot 0.5*sin(x/2)  lt 0, cos(x/2)

    1 ++---------------+---------------####---------------+---------------++
      +                +             ##  + ##          0.5*sin(x/2) +....+ +
  0.8 ++                            #        #             cos(x/2) ######++
      |                            #          #                            |
  0.6 ++                          #            #                          ++
      |++++++                    #              #+++++++                   |
  0.4 ++    +++                 #             ++ #     +++                ++
      #       +++               #           ++   #        ++               #
  0.2 +#        ++            ##          ++      ##        +             #+
    0 +#          ++          #          ++        #         ++           #+
      | #          ++        #         ++           #         ++         # |
 -0.2 ++ #           +      #         ++             #          ++      # ++
      |  ##           ++    #       ++               #           +++   ##  |
 -0.4 ++   #            +++#      ++                  #            +++#   ++
      |     #             #+++++++                     #             #+++++|
 -0.6 ++    #             #                            #             #    ++
      |      ##         ##                              ##         ##      |
 -0.8 ++      #        #                                  #        #      ++
      +        ##    ###                 +                ###    ##        +
   -1 ++---------#####-+-----------------+----------------+-#####---------++
     -10              -5                 0                5                10

If you have not the possibility to use a terminal from which "you can see" (wxt,qt,x11,aqua...), use a graphic format and save the output on an external file. In this way you will create a file in the directory from which you run gnuplot.
set terminal png enhanced truecolor    # ... whatever ...
  set output 'tempfile.png'            # you need to redirect to a file the output
    plot 0.5*sin(x/2)  lt 0, cos(x/2)  # your plot commands
    # replot # it should be cosy if you are not doing multiplot
  set out                              # restore the output redirection
set terminal GNUTERM                   # restore the default terminal

Note:
You may need to install the different packages -qt,-nox,-x11 to have different features (the OP just did it) or to compile by yourself to add other ones.


The LED on the touchpad on my HP Pavaillion dv6-6080 doesn't work

The way I do it is press Fn+Space. It just turns off the light, but not the touchpad. Hope this helps.


Context menus on Eclipse hang and disappear, app hangs whole OS

What about checking eclipse logs?. I had similar problem with the IDE itself, an attempt to open context-menu in project explorer was freezing the whole Ubuntu 11.10 desktop (albait it seemed to resume in couple of minutes on its own).

Based on eclipse logs the likely source of the problem was a known bug affecting SWT on top of GTK - see https://bugs.eclipse.org/bugs/show_bug.cgi?id=348205. For me it seems that running eclipse on top of JDK 6 instead of JDK 7 is a temporary remedy as the problem has not manifested itself since.


How can I edit font metadata in the UDS (Universal Directory Service)?

It sounds very much like an error in Qt/KDE and should certainly report it:

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

https://bugs.kde.org/

Otherwise, nothing you try is going to help if the Qt font indexer has a problem with this font. Make sure to include details and steps to reproduce.


How do I solve "Server requires packet signing to be enabled" when mounting a Windows share?

It looks like removing sec=ntlm from the fstab entry fixed it.


Run in a terminal

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

and your Wi-Fi should work after a reboot.


So you changed the Exec line of your gnome-terminal.desktop file. Now the terminal should be located as expected when you execute the .desktop file, either from Nautilus (file manager/desktop) or the activities overview. The Launch terminal keyboard shortcut is a different kettle of fish. In fact, there doesn't seem to be a correct way to change the default terminal command, and some parts of GIO even today have a hardcoded list of terminals that are tried to run in a specific order.
Anyways, this shouldn't bother you because if you want the terminal to be opened with specific arguments when you press Ctrl+Alt+T, there is an easy solution:

Disable the default Launch terminal shortcut in Settings->Devices->Keyboard
Scroll down and click the + at the end of the list to create a custom shortcut
Choose any name for it and input the command that you used in the .desktop file, for example: gnome-terminal --geometry 30x30+100+0
Bind it to Ctrl+Alt+T (or any other key combination)

This will, of course, only change the behaviour when opening the terminal via keyboard shortcut. If you want to know more about the default terminal problem in gnome, you can start with this bug.


I want to remove the header of each lines from the file using shell script or python

Use grep -v '|' to filter out the lines that don't have the | symbol, which would leave only the FASTA sequences. That can be combined with > new.txt to write a new file.


import numpy - no module named multiarray

I had same problem. I solved it by deleting numpy in dist packages

sudo rm -rf /usr/local/lib/python2.7/dist-packages/numpy

I didn't install it again and it worked. I tried to import numpy and tested, works just fine. I have no idea why this worked for me. (Maybe there was part of numpy installation documents and python checks this folder sooner, you can check in the sys.path .)


Vim won't work after upgrading ubuntu to focal fossa

If you built Vim for Ubuntu 18.04 yourself, you’ll probably need to rebuild it with the updated dependecies. As you have found already, Ubuntu 20.04 uses libruby version 2.7 while your binary is looking for 2.5 as it’s present in 18.04.


Is it possible to get the location of a specific color in an image using bash?

You can use image-magick to work with the image. They also have a top notch forum, for any assistance you might need.


Wireless Not Working Ubuntu 12.04 new computer

http://ubuntuforums.org/showthread.php?t=2035902&page=3

I was given this link on reddit.com.  It saved my life and now my wireless is working great. Thanks everyone who chipped in!


Advantages/Disadvantages of installing from source code

Well i can say compiling from source is an unsupported method of installing software because it bypasses the Package Management System (APT, USC) completely.

Also it affects system Stability, could break other dependencies . Since Ubuntu Packagers makes sure its all round effectiveness and integration to current system remains intact , therefore installing from official Repositories is recommended.

Also for further reading , refer this and this.


Creating custom text expansion for password template

Here is a bash script to the job :

#!/bin/bash
if [[ ${#1} = 2 ]]; then
    first="${1:0:1}"
    second="${1:1:1}"
    echo "t\$6${first}dValzg2${second}Scmsk"
else
    echo 'Then length of input string must be two'
fi

first and second are variables containing the first and second character respectively of the given input string which are generated by using the bash parameter expansion pattern ${parameter:offset:length}.

Save the script as e.g. pass_gen.sh, make it executable (chmod u+x pass_gen.sh) and run it as :

/path/to/pass_gen.sh fb

or while in the same directory where the script is :

./pass_gen.sh fb

Pass the input string as first argument.

Example :

$ ./pass_gen.sh fb
t$6fdValzg2bScmsk

$ ./pass_gen.sh tw
t$6tdValzg2wScmsk

$ ./pass_gen.sh fbc
Then length of input string must be two


How do i know what webcam driver to install?

I had a problem with guvcview on 14.04 except it was a segmentation fault. The fix for me was to clone the newest version using git.

First uninstall guvcview:

sudo apt-get purge guvcview

Then, install some dependencies:

sudo apt-get build-dep guvcview

Now, install git:

sudo apt-get install git automake build-essential

Clone the latest repo:

git clone http://git.code.sf.net/p/guvcview/git-master guvcview-git-master

Now, build and install:

cd guvc*
autoreconf -i -f
./configure
make

If there are no errors (ignore warnings), run the following command to install:

sudo make install

To run guvcview, run the following command:

guvcview &

To make a launcher for this application, run the following command:

sudo nano /usr/share/applications/guvcview.desktop

Then, copy and paste the following into the file:

[Desktop Entry]
Name=guvcview
GenericName=GTK UVC video viewer
X-GNOME-FullName=GTK UVC video viewer
X-GNOME-FullName[cs]=Prohlížeč videa GTK UVC
X-GNOME-FullName[de]=UVC-Video-Betrachter in GTK
X-GNOME-FullName[en_AU]=GTK UVC video viewer
X-GNOME-FullName[es]=Reproductor video GTK UVC
X-GNOME-FullName[fr]=Logiciel GTK de visualisation de vidéo UVC
X-GNOME-FullName[it]=GTK UVC visualizzatore video
X-GNOME-FullName[lv]=GTK UVC video skatītājs
X-GNOME-FullName[nl]=GTK UVC videokijker
X-GNOME-FullName[pt]=Visualizador de vídeo GTK UVC
X-GNOME-FullName[pt_BR]=Visualizador de vídeo GTK UVC
X-GNOME-FullName[ru]=GTK UVC видео обозреватель
X-GNOME-FullName[si]=GTK UVC වීඩියෝ දකින්නා
X-GNOME-FullName[sr]=ГТК УВЦ видео приказивач
X-GNOME-FullName[tr]=GTK UVC video görüntüleyici
Comment=A video viewer and capturer for the linux uvc driver
TryExec=guvcview
Exec=guvcview
Icon=/usr/share/pixmaps/guvcview/guvcview.png
Terminal=false
Type=Application
Categories=Video;AudioVideo;
X-GNOME-Gettext-Domain=guvcview
StartupNotify=true

Finally, press CTRL + o and then press ENTER to save the file. Press CTRL + x to exit nano.

Please post any errors.


XSD-1.1 command line validation tool for Ubuntu

Finally I found an answer to my own question:
I found the blog post "Free and open source XSD 1.1 validation tool?"
which contains a link to the file xsd11-validator.jar (Mirror 1, Mirror 2).

You can call it like this:

usage: java hu.unideb.inf.validator.SchemaValidator -if <file> | -iu <url>
       [-sf <file> | -su <url>]
 -if,--instanceFile <file>   read instance from the file specified
 -iu,--instanceUrl <url>     read instance from the URL specified
 -sf,--schemaFile <file>     read schema from the file specified
 -su,--schemaUrl <url>       read schema from the URL specified

To run it, you can use the following command line:

java -jar xsd11-validator.jar -sf schema.xsd -if instance.xml

And to simplify its usage, I wrote the following bash script xsd.sh:

#!/bin/bash
if [ $# -eq 0 ]
then
  echo "======== XSD 1.1 Validator (for local files) ========";
  echo "=====================================================";
  echo "Usage: xsd.sh XSDschemaFile.xsd XMLFileToValidate.xml";
  echo "=====================================================";
  echo "(To validate remote files you have to call xsd11-validator.jar directly)";
else
  output=$( java -jar xsd11-validator.jar -sf $1 -if $2 2>&1 )
  if [ -z "$output" ]
  then
    echo "=== Validation succeeded! ===";
    exit 0
  else
    echo "=== Validation FAILED! ===";
    echo "$output";
    exit 1
  fi
fi

It can easily validate XSD-1.1 files with the following command:

./xsd.sh schema.xsd input.xml


Problem with node being "commissioning" and doesn't change to "ready"

I think you are hitting this bug:
https://bugs.launchpad.net/maas/+bug/1131418


Although this is a hunch, it could be an issue with Rufus. I've not had the best of luck with it myself. For the last year or two, I've been using Etcher without much hastle.

It could also be that the installation media Rufus spits out is UEFI and not compatable with the older BIOS system you are using, or visa versa.


Problem extracting tar.gz files, tar: Conflicting compression options

Let's take a look at what man tar has to say on the topic...

  -j, --bzip2
        Filter the archive through bzip2(1).

  -z, --gzip, --gunzip, --ungzip
        Filter the archive through gzip(1).

See the conflict? Pick one and get rid of the other.
I recommend -z for a .gz file.


In Ubuntu 20.04 and derivatives, you can reboot and poweroff as a normal user with the terminal commands reboot, and poweroff or shutdown. You could thus create a launcher that executes one of these commands, or bind these commands to shortcut keys to reboot/shutdown without confirmation. Make sure that launcher or the shortcut key is not too easy to reach, or you regularly may find yourself unexpectedly thrown out of your system.


Can't update kernel on dual boot machine

In this case, 15 is higher than 8.

4.15 is the newer kernel, and Ubuntu will understandably try to boot from it.

Different projects number their versions differently, so this answer is specific to kernel versions.


Unable to uninstall programs using sudo pip

According to the output of dpkg -S, numpy has been installed using apt to remove it run:

sudo apt remove python-numpy

you might have a local installation of it using pip, to remve that you can use:

pip uninstall numpy --user


The only way I've found out how to do this is to open a folder window from Unity and then find it from there. Go to Files and Folders on the launcher on the left, and open any folder window (ie, Documents). If it doesn't open in the file manager, hit the little folder icon on the top-right. You should then see the classic file manager appear. Open the Go menu and select Network. From there you can browse Windows shares.

If you already have the file manager pinned to your launcher, you can also open it there.

So, in short, I don't think you can currently do this from within Unity. Whether this will be a feature for 11.04 remains to be seen.


Will my data be affected if the GUI of Ubuntu crashes?

Only if there is volatile data relevant to an application that would ultimately fail as a result of your GUI failing, but mainly no.

AKA if your GUI fails and a text editor is open and the text editor dies after the GUID dies
Then you lose whatever was unsaved in the text editor.

Basically no.


I'm sure you already know that 8.04 is no longer supported for the Desktop- at a minimum I would try 10.04. It will make it easier to diagnose if you try this version.

If you are choosing to use 8.04 because the latest software has too higher demands for your hardware I would strongly recommend downloading Lubuntu 11.04.  Its a great lightweight distro.

I'll complete the answer by posting advice on how to compile up the driver from source.

Preparing your system:

sudo aptitude install build-essential

This will install all the required compilers.

Now you need to download the latest wireless drivers from here using the following command

wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

Now you have compat-wireless-2.6.tar.bz2 file you need to extract this file using the following command from the terminal

sudo tar -jxvf compat-wireless-2.6.tar.bz2

Move to the directory you extracted in terminal

cd directoryname

Run the following commands

make
sudo make install
sudo make unload
sudo make load

source


how to unmount a part of a single partition which is in used?

You are correct:

You cannot make changes to any mounted partition.
You cannot mount/unmount "part" of a partition.

The usual method around these hurdles is to make an Ubuntu LiveUSB. It's a bootable system that can run Gparted, and does not mount any partitions on your HDD. Use the "Try Ubuntu" environment to run GParted.


frequency out of range - please change display mode

I usually get this problem every time i upgrade OS.What normally happens for me is after displaying out of frequency range for a while it eventually  loads ubuntu without problem. it was the grub menu loaded before ubuntu that was replaced/not shown because of the out of frequency warning.For some, if ubuntu still doesn't load,by pressing enter whilst seeing out of frequency range you should get ubuntu to boot.

For me it was a simple fix .

Once in Ubuntu go to a terminal and run:

gksu gedit /etc/default/grub

A graphical text editor will open. Remove the # from in front of:

GRUB_GFXMODE=640x480

Save the file and close it. Now run:

sudo update-grub

Reboot, and the "frequency out of range" issue should be resolved.


I use chrome and pepperflashplugin-nonfree. Your site works with that.

If you are not willing to change browsers, make sure you have flashplugin-installer installed.


ngnix loads blank pages after upgrade from 14.04 to 16.04

Maybe a silly question, but did you reboot after the update to 16.04?  How long has this been happening that you know of?

This white screen for WordPress sounds like it might be a memory issue.  There are a few reasons why the "white screen of death" might appear. It sounds like you have access to php.ini, is your memory limit set to 64M or 128M?  It's easier to set in WordPress itself, with a line like:

define( 'WP_MEMORY_LIMIT', '256M' );

in wp-config.php.  If you have the RAM to spare, set it up on all three sites to give it a boost.

This could be the reason why there's no error message, only occasionally, and why pages fail to load.

Have there been any nginx module changes, or new ones?

I would reboot, increase the memory available to PHP for running WordPress, restart nginx again and see if it appears to go back to normal.

I've always found small, simple steps like this helps to try and narrow down problems without accidentally introducing new ones.


Create a file called "changeMAC.sh" in /home/yourUser/ [Replacing yourUser accordingly]

In the file, paste this code:

#!/bin/sh
service network-manager stop
ifconfig wlan0 down
# Change to whatever MAC you want
ifconfig wlan0 hw ether 00:11:22:33:44:55
ifconfig wlan0 up
service network-manager start

Then, in terminal (Ctrl+alt+t), run
sudo chmod +x /home/yourUser/changeMAC.sh [Again, replacing yourUser accordingly]

Then run sudo nano /etc/rc.local

At the bottom, add the line sudo /home/yourUser/changeMAC.sh [You know the drill, replace yourUser...]

Exit nano with Ctrl+x, pressing y to write changes to disk.

Finally, run sudo shutdown -r now


Ubuntu terminal shows strange characters

This is usually a "bad font" problem. Open your preferences and choose one of the many options in there.


Keyboard shortcuts stop working after upgrading to Ubuntu 17.10

As already mentioned in the comments by Aramil Rey, removing the following configuration files seemed to fix the problem:

~/.compiz
~/.gconf
~/.gnome*
~/.kde

And in my case it was a permanent solution and not a temporarily one. For example this can be done by:

mkdir ~/backupFixSO972940
mv ~/.compiz ~/.gconf ~/.gnome* ~/.kde ~/backupFixSO972940

If this does not work, you can also add ~/.config to the list, but be careful as this folder also contains a lot of application related configuration files, thus I advice to make a backup (mv) instead of deleting (rm) all folders directly like from the original solution.


Source/Dot operator error on login. Possibly caused by bad byobu uninstall

So the root cause of this issue was indeed byobu (well actually the lack of byobu). I do not know why but for some reason byobu didn't clean up a line from ~/.profile.This was the last line of the file: . $(which byobu-launch). Luckily I was able to find this line quite easily and quickly by doing the following (as advised by @enzotib and @geirha):

First I ran bash -xl to enter bash as a login shell(-l) in debug mode(-x). When I ran this I could see what the offending line was. Once I knew what was causing the problem I issued cat <file> | grep . $(which byobu-launch) for every file that is executed when bash starts up.

Those files are the following:

~/.bashrc
/etc/bash.bashrc
~/.profile
/etc/profile
/etc/profile.d/*
~/.bash_profile
+ all others that are included/executed by any of the above files.


Had this same problem happen to me.  The Software Center created the following file which needs to be removed.

sudo rm /etc/apt/sources.list.d/archive.canonical.com_commercial-ppa-uploaders_skype_ubuntu.list

Then, follow the instructions here for configuring the Software Center.  Not sure why it gives you the option to install skype before you do that.  Kind of a bug.


(How) can I delay mount of secondary internal hard drive on boot?

Edit /etc/fstab: On the line related to your shared drive, change the option auto to noauto

UUID=44EC439A779EB78C /media/Shared/    ntfs-3g        noauto,user,rw 0 0


HP laserjet 1020 plus printer not working in Ubuntu 14.04

In fresh 16.04, Ubuntu auto-detected my HP 1020, but it did not work. I ran hp-setup -i (which was preinstalled), and it started working.

Edit: works also for Ubuntu 18.04.


Chrome on Desktop :: Always in touch screen mode

I just ran into the same problem, so I think an answer here would be helpful.

The problem seems to be due to the latest Chrome browser upgrade. There's an open issue for it here

The easiest workaround is to disable mouse integration in VirtualBox. It's somewhat inconvenient but a lot of people reported that this fixed the problem for them. An alternative workaround is to downgrade to Chrome 40, which is more involved but might be more convenient on the long run, until a more permanent fix comes around.


Ubuntu actually has an IME for Sinhala, you just need to add it via system settings -> keyboard layout.

There is also a translation team on launchpad that would be glad to welcome new members and could give you better advice on related issues.

On that wine issue

You got an error message from a windows application by using wine. Windows applications are generally unaware that they are running on wine and will assume they are running on windows and like in that case will make false assumptions for workarounds and solutions.

The default configuration of Ubuntu has two firewalls. The kernel firewall named Netfilter, which is not configured to filter anything by default as far as I know, and Apparmor an application based firewall which shouldn't get in the way of wine applications.

What zetah referred to was the appdb on the WineHQ site, where a compatibility list of applications is maintained. Unfortunately you can't find "Google Sinhalese" there or variations there of. But what you can find is a reference to a similar error message of another application using the Google Updater. Searching for other Google applications, Google Music Manager seems to work, but trying to reproduce that with the Sinhalese IME installer in my VM did not work. Filehippo has offline installers for Chrome, but does not seem to have for the IME.

Sorry but without more investigation, you would not be able to install that application. Note: We are just talking about a file that needs to be fetched from a server, that's all there is, the rest of the installation process would run fine. It is a nuisance, but Google still insists on using this malware like installation process for their Windows software. They have been doing so or years.


The terminal in Ubuntu (like most other Linux distributions) uses bash which can be used to perform tasks and functions programmatically. Python also comes with most Linux distributions but it is not "burned" into Linux like bash is.

You can use python to interact with your computer by using libraries such as os but for most tasks you may be better off using bash.

Of course learning both will help you in the long run. :)


How to open a found file with vi? Piping 'find' output to vi

Add * wildcard after 'important', also you can use the following command:

vim $(find /home/user -name "important*")


how to install apache/php from apt alongside mysql 5.6 from source

The package mysql-common doesn't include any client nor server binaries. It is rather a module containing the libraries and modules for php5-mysql to work with. It shouldn't be a problem for you to install php5 or php5-mysql with that dependency as it won't interfere with your manual installed version of mysql-5.6 (if you did it as recommended in /opt or /usr/local/...). PHP5 will connect against the DB just OK. It is like using a mysql-client binary a bit older than the actual server.

If you run into problems with that setup, you would have to build a php-mysql module with 5.6 bindings yourself.


unhandeled lockdown error(-15) when I try to connect my iphone 4s

Lines in code need to be typed into terminal.

sudo apt-get install ifuse libimobiledevice-utils
Unlock iDevice from device's lock screen, plug it in
idevicepair unpair && idevicepair pair
Unplug the iDevice
Make sure the lock screen is still unlocked
Plug it back in


Okay, solved this.
It's a problem with smbldap.conf and smbldap_bind.conf files. For some reason the user credentials in them did not match the ones I entered.

Running smbldap-config and rebuilding the above files lets you reset these information.


Ubuntu 16.04 LTS can't find essential packages

@Thomas, it looks like you are quite correct, they fixed the repo.

For Docker users, creating your container -- you may have to use the --no-cache option to avoid building your system from a bad intermediate container -- will do the job.

For normal users, just rerunning sudo apt-get update will resolve the broken packages, both with the Java packages I spoke about earlier, and the libc packages described in this question.

Thanks to whoever went and fixed the repos!


How to fix upgrade hang from saucy->trusty: "Removing ___ from Mono"

The process was hanging on the prerm and postrm scripts for the following packages:

Preparing to unpack .../libdbus1.0-cil_0.7.0-5ubuntu1_all.deb ...
Removing libdbus1.0-cil from Mono
--
Preparing to unpack .../libdbus-glib1.0-cil_0.5.0-4ubuntu1_all.deb ...
Removing libdbus-glib1.0-cil from Mono
--
Preparing to unpack .../libgdata2.1-cil_2.2.0.0-2_all.deb ...
Removing libgdata2.1-cil from Mono
--
Preparing to unpack .../libmono-addins0.2-cil_1.0+git20130406.adcd75b-3_all.deb ...
Removing libmono-addins0.2-cil from Mono
--
Preparing to unpack .../libnotify0.4-cil_0.4.0~r3032-7_all.deb ...
Removing libnotify0.4-cil from Mono
--
Preparing to unpack .../libtaglib2.1-cil_2.1.0.0-3_all.deb ...
Removing libtaglib2.1-cil from Mono
--
Preparing to unpack .../libmono-addins-gui0.2-cil_1.0+git20130406.adcd75b-3_all.deb ...
Removing libmono-addins-gui0.2-cil from Mono
--
Preparing to unpack .../libappindicator0.1-cil_12.10.1+13.10.20130920-0ubuntu4_all.deb ...
Removing libappindicator0.1-cil from Mono
--
Preparing to unpack .../libgmime2.6-cil_2.6.20-0ubuntu1_all.deb ...
Removing libgmime2.6-cil from Mono
--
Setting up mono-gac (3.2.8+dfsg-4ubuntu1) ...
* Installing 3 assemblies from libappindicator0.1-cil into Mono

To force removal of the packages, I identified the prerm and postrm scripts that were hanging, ran them manually, and then killed the hung process.  I had to do this multiple times during the release upgrade:

To Fix

Find the hung prerm or postrm script and run it manually:eval "sudo $(ps xa -o cmd | grep 'postrm\|prerm' | grep -v grep)"You should see output similar to: Removing libmono-addins-gui0.2-cil from Mono for whichever package is hanging.
Kill the hung prerm or postrm script: ps -ef | grep 'prerm\|postrm' | grep -v grep | awk '{ print $2 }' | xargs sudo kill -9
Repeat on next hung package with message: Removing ___ from Mono

If You Encounter Errors:

During my upgrade, I encountered a postinst script failure for one of the mono packages (mono-gac... more like mono-gack!!).  I followed my initial procedure above, except with that postinst script.  However, this caused me a problem which killed my upgrade and left the upgrade utility in a broken state.

The errors from my upgrade log were (edited for brevity... see full log here):

Errors were encountered while processing:
 mono-gac
 mono-runtime-common
 mono-runtime-sgen
 mono-runtime
 libmono-corlib4.5-cil
[...SNIP...]
 libmono-csharp4.0c-cil
 gbrainy
 libdbus1.0-cil
 libdbus-glib1.0-cil
 libgdata2.1-cil
 libmono-addins0.2-cil
 libdbus2.0-cil
 libdbus-glib2.0-cil
 libnotify0.4-cil
 libtaglib2.1-cil
 banshee
 banshee-extension-soundmenu
 libmono-addins-gui0.2-cil
 libmono-simd4.0-cil
Processing was halted because there were too many errors.
Log ended: 2014-09-29  14:27:33

Then your upgrade process must have failed.  You'll need to force quit the upgrade program, reset things back to your prior release, and then re-start the upgrade:

If you're using the GTK release upgrader: Press Ctrl-C and say Yes to the prompt asking if you really want to quit.If it still doesn't quit... force quit it with:ps -ef | grep do-release-upgrade | grep -v grep | awk '{ print $2 }' | xargs kill -9
Reset your release back (for example, I reset back to saucy release from trusty):sudo sed -i -e 's/trusty/saucy/' /etc/apt/sources.listsudo sed -i -e 's/trusty/saucy/g; s/14\.04\.1/13.10/g; s/LTS//; /etc/lsb-releaseFor example, your file should look like:

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=13.10
    DISTRIB_CODENAME=saucy
    DISTRIB_DESCRIPTION="Ubuntu 13.10"

Re-run the upgrade with: sudo do-release-upgrade


Laptop won't get in sleep if I close the lid

Use dconf-editor to change the settings:

/org/gnome/settings-daemon/plugins/power/lid-close-ac-action
/org/gnome/settings-daemon/plugins/power/lid-close-battery-action

to 'suspend' (Note: the single quotes are required in the setting.)

In a default Ubuntu install, these would be set to 'suspend' by default, but the vanilla desktop does not apparently do that.


First, install lm-sensors . which contains a program for detecting sensors on your machine. Next, open a terminal and run:

sudo sensors-detect

Follow the instructions (usually, pressing Enter to accept the defaults is enough):

# sensors-detect revision 5861 (2010-09-21 17:21:05 +0200)
# System: CLEVO CO. B7130 (laptop)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no):

After a few questions, you've to press Enter once again to get a summary:

....
Next adapter: DPDDC-C (i2c-14)
Do you want to scan it? (YES/no/selectively):

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

On the last question if you'd like to add modules to /etc/modules, type yes and press Enter:

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)

After exiting sensors-detect, the modules are unloaded again and won't be loaded automatically until the next boot, so load the modules manually using sudo modprobe module-name. I had a module named coretemp, so I ran the next command to get extra sensors:

sudo modprobe coretemp

If you restart xsensors, the new sensor will become available. Another command from the lm-sensors package is sensors which shows its output in the terminal. Example output of sensors:

acpitz-virtual-0
Adapter: Virtual device
temp1:       +44.0°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +41.0°C  (high = +95.0°C, crit = +105.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 2:      +39.0°C  (high = +95.0°C, crit = +105.0°C)


systemd-modules-load.service - Load Kernel Module - Failed to find module 'acpiphp'

It's a virtualbox or KVM VM?

Try to blacklist this module

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

then reboot


How do I install playonlinux from the repository?

If you did not already do so, you will need to enable the Multiverse repository before trying to install playonlinux.  If you did not do that already, that is why you can't find the playonlinux package with apt-get.

Please refer to this question and its answer which explains how to enable the multiverse repository.


Workbench installed but not working ubuntu 16.04

Fixed my problem with folowing:

Download workbench new version.
Install workbench

sudo dpkg -i mysql-workbench-community-6.3.7-1ubu1604-amd64.deb
Now install dependencies

sudo apt-get -f install

Its works for me.


Computer overheats and shuts down kubuntu

I have the same problem on my laptop HP Compaq nx8220 with Kernel 3.13.0-24 to 3.13.0-30 (in Ubuntu 14.04 and Linux Mint 17). This laptop ran Ubuntu and now Mint since 8 years without overheating problems.
Try to boot from an older Live-DVD or USB stick with Ubuntu 12.04 LTS or Linux Mint 13. If this will fix your CPU fan then a bug in kernel 3.13.x might cause the problem.

I was able to fix it today with a pre-release of kernel 3.13.0-32 from https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa

Careful users should wait a few days to get this fixed kernel as a normal update!

From what I have read the problem was a kernel patch called "ACPI / AC: convert ACPI ac driver to platform bus" which has now been reverted in kernel 3.13.0-31 and higher.


Can I uninstall Compiz if only using Gnome-Shell?

Removing compiz also removes the packages unity & ubuntu-desktop.

Thus you will lose the ability to log into the unity or unity-2d desktops.

ubuntu-desktop is a meta package - normally you would need this to allow a successful upgrade to ubuntu+1.  Therefore - just reinstall this package before you next upgrade to 12.04.

On my quick test, removing compiz did not stop me logging out and logging back into gnome-shell.  You are correct - gnome-shell does not use compiz as its compositing manager, it uses mutter.


How to enable/disable mobile broadband from terminal?

Open terminal window and type:

sudo gedit /etc/init.d/mobile-broadband-connect

Then copy and paste this (Change for your needs):

Note: Replace the <Your Mobile Broadband Connection Name Here> with the name of your connection.

#!/bin/bash

case "$1" in
start)
      echo "Starting Mobile Broadband Connection."
      while true; do
        # testing...to see if gsm is on the list of active devices
        LC_ALL=C nmcli -t -f TYPE,STATE dev | grep -q "^gsm:disconnected$"
        if [ $? -eq 0 ]; then
            break
        else
         # not connected, sleeping for a second
            sleep 1
        fi
      done
      # now once GSM modem shows up, run these commands
      nmcli -t nm wwan on
      nmcli -t con up id <Your Mobile Broadband Connection Name Here>
;;
stop)
      echo "Stopping Mobile Broadband Connection."
      nmcli -t con down id <Your Mobile Broadband Connection Name Here>
      nmcli -t nm wwan off
;;
status)
      # Check to see if the process is running with Network Manager dev status
      nmcli -p dev
;;

*)
      echo "Mobile Broadband Startup Service"
      echo $"Usage: $0 {start|stop|status}"
      exit 1
esac
exit 0

Change the permissions of this file for execution:

sudo chmod +x /etc/init.d/mobile-broadband-connect

To run this script has a service, do:

sudo update-rc.d mobile-broadband-connect defaults

The script is registered as a system startup service so you can start, stop, or check the status of the script with :

sudo service mobile-broadband-connect start

sudo service mobile-broadband-connect stop

sudo service mobile-broadband-connect status

Reboot to complete installation and auto connect.

Reboot your system to complete the installation.
After reboot it takes up to 60 seconds before the USB device is active.
When active - The Mobile Broadband Connection will be activated and auto connected.

Done ...


Within Vim, run :h :! and :h :% to know what each does.

Now, the :% is used to replace the contents of the file with the output of the shell command run using :!. If you don't want to touch the contents of the file, don't use %. Just do:

:!ls


Having problem with package manager Ubuntu 18.04.3 LTS

The line GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash" nouveau.modeset=0 is your problem. When parsed as shell script (which it obviously is) it tries to run command quiet splash with argument nouveau.modeset=0 and the environment variable GRUB_CMDLINE_LINUX_DEFAULT set to empty. This doesn't work.

Instead, it just should assign a value to the variable GRUB_CMDLINE_LINUX_DEFAULT. To achieve this you need to make sure that after the = there is no whitespace and the complete value is contained in the quotes, like so:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0"


Occasional artifacts when displaying characters

I've seen these artifacts on two completely different machines (MacBook Pro using Nvidia and desktop using Radeon HD7750). They started appearing after upgrading to 13.10 and 14.04. I've been using 12.04 previously, and had never seen these artifacts on these machines.

Apparently common factor was using open-source drivers, artifacts have disappeared completely when I switched to Nvidia proprietary driver (via "additional drivers") and AMD Catalyst downloaded directly from AMD (fglrx from "additional drivers" didn't seem to work for me on 14.04).


I fixed the problem a long time ago.
Sorry for not posting the solution.

Anyways, just add the icon to the launcher, then log off and log back in. It should work after that.

That's the only workaround I have.


backup /home folder on different drive through LiveUSB

The backup tool in the live disk is not complete.  It's tricky to install all the necessary components to get the backup working properly.  You could simpler backup your /home folder with the cp command.

You can do this by, first mount your destination backup device (which may already be mounted since it's your /dev/sdb device.

Create a backup area for your destination and perform one of these two commands:

$ sudo cp -pvau ~/ /mnt/backupdir/

In the preceding command the /mnt/backupdir is the backup destination directory where you will be backing up your space.  It will create a folder by the your username in the /mnt/backupdir folder.

This space could have been created on a partition off your /dev/sdb drive.

Alternatively you could backup your whole '/home` folder with this command:

$ sudo cp -pvau /home /mnt/backupdir/

This command would result in a folder called /mnt/backupdir/home with your personal home folder under there.

The copy arguments are:

p - preserve ownership and time stamps
v - give a verbose output during the process
a - archive (perform a recursive copy of all files and folders)
u - update files that have changed if they already exist in the destination.

You said you were concerned about during something "radical" which could loose your personal data.

Installing or reinstalling Ubuntu will not touch your /home folder or any other folders that you created on your installed partition unless you specifically elect the format option during the installation process.  As long as you don't put a check mark in format your personal data will be preserved.

It's important to always have backups of your important data.  But the install process will advise you that your data will be erased and not recoverable if you select to format.  Also if you don't checkmark the format option, it'll still advise you which directorys (the system folders) that will be erased and recreated.


For a newbie, what software/ IDE is best to build a website?

Regarding Drop-Down-On-Hover menus, buttons, Change-Color-On-Hover buttons, images and text in multiple columns,

You may find  Web Developer Tools very helpful.  You may download the .deb file here -> WDT

You can find many menus source code from many websites inside WDT

You may generate css Menus

Image processing tools

HTML editor

Please check also the following questions they have great and helpful answers.  You may find many helpful tools from them.

Easily make website without coding
Basic Web Development IDE/Editor like Dreamweaver?
CSS editor with real-time preview and selector localization
Basic Web Development IDE/Editor like Dreamweaver?
What IDEs are available for Ubuntu?


How do I connect to a wireless network, turn off bluetooth and airplain mode, on my Dell inspiron switch?

This bug has been reported here.
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/909938
If you've got a launchpad account then you can mark it as affecting you too.


How to discover the IP addresses within a network with a bash script?

Install arp-scan (sudo apt-get install arp-scan) and add the following line to the script:

IPs=$(sudo arp-scan --localnet --numeric --quiet --ignoredups | grep -E '([a-f0-9]{2}:){5}[a-f0-9]{2}' | awk '{print $1}')

Now you have all the active IP addresses in the IPs variable.

Note: this will only work on a directly connected network, i.e. not accessed through a router.

PS: If you install gawk the command can be shortened to (thanks belacqua):

IPs=$(sudo arp-scan --localnet --quiet --ignoredups | gawk '/([a-f0-9]{2}:){5}[a-f0-9]{2}/ {print $1}')


How do i make screen dimming work in ubuntu 12.04 (beta 2)

Here is what worked for me.
I got the solution from the folowing links. Check them out or read the summary below.

http://linuxon1001p.blogspot.com/2010/03/fixing-brightness-controls.html

Desktop doesn't remember brightness settings after a reboot

Summary:

Edit your /etc/default/grub file:

sudo gedit /etc/default/grub
Add the options "acpi_osi=Linux acpi_backlight=vendor" to the GRUB_CMDLINE_LINUX_DEFAULT line. It should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

original line was:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Update grub configuration!!!! - do not forget to do this, the configuration change will not be set up if you don't run the next command:

sudo update-grub

This worked for me after trying a lot of other solutions.
I have a HP dv7-6090ef with hybrid graphics Intel/AMD.

Have fun using Ubuntu!


How to hide/remove left side dock in Ubuntu 18.04 LTS?

Open Ubuntu Software Center, click search sign at the right upper corner of the window and type in the search field "Gnome extensions dash to dock" phrase. You'll see the "Dash to Dock" Gnome shell extension.

Install the extension and configure it to hide Ubuntu Dock.


Yep, search for software and updates then click on additional drivers you will see a list there. Choose the driver you want.


Set monitor refresh rate and make sure it was set correctly?

If you look at the man page for xrandr the --rate parameter says:

This marks a preference for refresh rates close to the specified value, when multiple modes have the same name, this  will select the one with the nearest refresh rate.

So you are not necessarily setting the refresh rate to 240 with that command, only saying "set to the closest rate that the system knows about". Although it's not clear why the system is not detecting higher refresh rate modes from your monitor if it supports them.
What you may want to do is add an undetected resolution using cvt to generate a modeline and then xrandr to add the modeline as a new resolution, then changing to that new resolution. See the Troubleshooting section here: Xrandr info
And try cvt 1920 1080 240 or cvt -r 1920 1080 240
I would take note of the tip about using sleep to reverse a resolution change too if you are experimenting and don't want to reboot if you change to an invalid resolution.


Install VMware tools using the open-vm-tools package.

apt-get install open-vm-tools

Any other driver install is legacy officially.


Ubuntu boots to black screen after trying to install ibus dependencies

After doing what's in this answer, and then putting in the login prompt sudo apt install ubuntu-desktop, I was able to fully boot and load into Ubuntu.


Cannot type slash in Ubuntu installer shell

It was my VNC client, Remmina. I had no keyboard layout issues with Vinagre so far.
Remmina has been the default VNC client of Ubuntu for quite a while, wouldn't have guessed that it has such severe issues with keyboard layouts...


Android Studio - No USB devices detected

Have you enabled the developer mode on the phone?

If not go to the settings on the phone and touch, I am not sure what line to touch but I think the line that shows the build number.
Touch that line 10 times. If it worked, the android shows you a message like "You are developer now."

There is a new line at the bottom of the settings in the phone. Like "developer options". Touch that. Now enable the usb debug option.

When you do that, your phone should be available in android studio.


Ubuntu 16.04 says I have Intel processor but I am sure I have amd64

Regardless of your certainty you clearly have an Intel CPU. This one to be precise.


How to correctly add a custom daemon to init.d?

init.d is the old, deprecated system for starting daemons; is has been supplanted by upstart. Upstart has the advantage of being far easier to configure and allows proper sequencing of task initialization.

The configuration files for upstart live in /etc/init and if your daemon has no pre-requisites it can be as simple as tty1.conf:

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -8 38400 tty1

in which case you can copy that file and modify to taste. More complex configurations are best documented at the upstart site and in other entries in /etc/init.

added in response to comment

Whether you use upstart or init.d, you'll still need some way of determining when Firebird is properly initialized. Unfortunately, Firebird itself doesn't seem to have a good way of verifying that it is installed and running. Therefore, the recommendation to stick your program start into /etc/rc.local is certainly the easiest, and on Ubuntu - at least - is guaranteed to run about as late as possible in the boot process.


Is there any Window Manager like the Windows 7's for Ubuntu?

Unity, the default desktop for 11.04, does the top-screen maximize and the left/right screen thing by default, however it is not available for 10.10.


Why "xterm -display localhost:0.0" fails

This is probably because TCP connection to the X server is disabled by default (instead, your local session connects via the Unix sockets mechanism).

You can enable TCP connections in systems that use the lightdm display manager by editing the [SeatDefaults] section of the /etc/lightdm/lightdm.conf file and adding

xserver-allow-tcp=true

The equivalent in GDM is supposedly

[security]
DisallowTCP=false

(I have not verified this, since I'm using lightdm).

Please note that this is probably disabled with good reason, since it represents a possible attack vector: I'd suggest using SSH with X forwarding instead if you need remote access to an X server.


Did you install it through the software centre or through the installer from Steam's website? Try
sudo apt-get purge steam
then install it from the steam website.


Lubuntu loader fails to install GRUB2 in /target/, can't find boot-repair

I have found that by using the command line (terminal) to install every thing, it works better. Go to   http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/   Follow instructions on web page and you should be up and running in no time.  You can usually find command line input code, to install everything you need to install! I have found that by using the words (how to install >your program here< using command line, in your search box works great! Linux is GREAT :-)


Can't connect to wireless networks on a Dell Latitude D430

Do you have an Intel wireless network card?

If yes, have a look in the router configuration whether it uses 802.11n or ~b or ~g. Lately I had a problem with this. Although I got connected to my WLAN I couldn't reach any other PC or the internet. With some help of the guys in my local IRC channel we figured out that Intel cards have problems with 802.11n in Linux. So I forced my router to use b/g instead and then it worked.

This may differ from your problem but who knows which kind of problems occur with this buggy Intel driver.


Firefox/Chomium always uses DejaVu fonts, even though system fonts are different

I suppose that the fc-match command gives:
$ fc-match
DejaVuSans.ttf: "DejaVu Sans" "Book"

You can create the file ~/.config/fontconfig/conf.d/10-prefer-ibm-plex.conf and give it this contents:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>IBM Plex Sans</family>
        </prefer>
    </alias>
</fontconfig>

That will hopefully make a difference.


error while installing pencil project on 15.04?

The problem would be the clash between the existing pencil program and the one you are trying to install.

If you don't need the existing app, just delete it :

sudo apt-get purge pencil

After that

sudo dpkg -i evoluspencil_2.0.5_all.deb

just should work.

I had the same problem, but a friend actually read the error-message and helped me out... Thanks Tijs!


"Canonical Kernel Team".

Found it on the debian mailing list and it also explains why 3.16 is the only kernel at the moment that has it.

  In addition, I would like to announce a change in the kernel numbering
  scheme that we will be using: we are adding the string '-ckt'
  ('Canonical Kernel Team') to the kernel version.  So, for example,
  kernel '3.16.7.1' becomes '3.16.7-ckt1'.

  Note that this change applies only to the 3.16 kernel, although in
  the future we may consider doing it for other kernels we are currently
  maintaining.

  Cheers,
  -- Luís


Nvidia has decent support in Linux, they have drivers for Linux (both 32 and 64 bits).
If you want CUDA support probably you will have to use the proprietary drivers, otherwise you can use nouveau.
Just to let you know, here is the list of supported GeForce 700 based cards from the official driver (version 340.24, dated 2014.7.8):

GeForce 700 Series:
GeForce GTX TITAN Z, GeForce GTX TITAN Black, GeForce GTX TITAN, GeForce GTX 780 Ti, GeForce GTX 780, GeForce GTX 770, GeForce GTX 760, GeForce GTX 760 Ti (OEM), GeForce GTX 750 Ti, GeForce GTX 750, GeForce GTX 745, GeForce GT 740, GeForce GT 730


how to remove files in a list of paths easily?

What's your input? A file? A command? Either way, xargs should be helpful:

cat file | xargs rm

... will delete every path for every line in the file. If it's just a command that's outputting a path on each line, pipe it through xargs and it should work well.

Alternatively, use xargs --arg-file="file.txt" rm. This saves on pipe and unnecessary cat.

If you're looking to do more with each line, you could use a traditional bash while loop:

# uses echo for testing
# remove # before rm for actual deletion
while read -r path; do
    echo "deleting $path"
    # rm "$path"
done < file

If your list is the output of find, you have another couple of options, including a -delete option or using -exec rm {} \+. There are almost certainly a few dozen other viable routes to success. If you're doing automated deletion with find, just check the output before you delete. It won't forgive you your mistakes.

Spaces can be a problem with piping things into xargs. This might not be an issue for you and your locate but both locate and xargs have a way of getting around that. They can both choose to use the \0 null character as a delimiter instead of return lines. Yay. In short, your command becomes:

locate -0b libavfilter.so | xargs -0 rm


Ubuntu 19 how to set different monitor scaling

ubuntu 20 has fractional scaling checkbox. it can be also activated in ubuntu 19 with experimental gnome settings


Long load time for kernel after Boot repair

I finally found the solution:
Boot hangs for 30 seconds at "Begin: Running /scripts/local-premount"
THe system searched for a swap file, which I don't have. I don't need a swap for my 8 GB!


How do I delete album tags in multiple files?

I would recommend a tool made specially for tagging such as Easytag, most media players are limited in this regard. What you want can be done easily with Easytag, Install using Synaptic or software center.

or just type in your terminal

sudo apt-get install easytag

Compact guide:


Unity broken after package install Ubuntu 14.04 LTS

If this is only happening with one user, log in as the user that's still working and then create a new user with the same name as the first user but with a 2 added to it.  (As example user names, the next section will use user and user2.  Substitute this with your real user names)

Now,

Open the file manager
Browse to the /home/user directory
Copy (don't move!) all the files from Downloads to /home/user2/Downloads
Check you did a good job.
Now delete /home/user/Downloads
Go back to step 3 and repeat for Documents, Videos, ...
In a terminal type the following command: deluser user --remove-home
Log in as user2
Sit back, relax and smile!


Run the following command in terminal:

sudo apt-get install lubuntu-desktop

This may change the GUI to a lightweight Graphical interface. Although it DOES NOT make it Lubuntu.

Lubuntu has less services, less resource consuming applications, and an overall smaller size when compared to Ubuntu.

GRUB 2 will recognize the system installed; I believe the root question is:

"Can I replace my current Linux install with Lubuntu, keeping the current partitions and data intact?"

The answer is Yes.

Once you boot from the Lubuntu Live CD and choose to install, Lubuntu will recognize this install and ask you if you wish to replace with Lubuntu 'keeping data where it can' and erase everything else.

I suggest the tech savvy individuals to play with Grub in a VM before attempting anything of this nature on your real system, and also of course backing up everything.   It gets confusing when dealing with multiple installs, where to install Grub and mount points. Boot manager inside Linux can help after an install as well.

If you are somewhat tech savvy I also suggest creating your own partitions manually in the future with a /home directory; use Gparted to see how Ubuntu has currently setup your HDD and use that as a template to improve upon.

In your case the memory of your system is too low for the Lubuntu GUI install as 256MB is recommended if I recall. But hopefully this will help someone else with a similar issue.


Make a USB port pretend to be a USB drive

I'm afraid that simply isn't possible. The N**0 devices had special circuitry in them that allowed them to do this (I had an adapter I could use to plug my flash drive into my N800 - it was awesome.), read up on USB On The Go if you're interested. Normal USB controllers, alas, cannot be set to do this. It is possible that could get a NAS with USB, which would perform as you like. It looks like certain plug computers can do it as well. But what you describe, with your hardware, is impossible (To the best of my knowledge). Sorry!


globalmenu doesn't work after installing gnome-shell

Reset unity--open a terminal by pressing Alt+Ctrl+T and type this into it:

unity --reset &

If that won't help then try this

sudo apt-get install --reinstall unity


Error While Deleting - File Doesn't Exist

The sr0 errors are your DVD drive. Not related to your file problem.

open a terminal from the Ubuntu dashboard
cd {to_the_directory_that_contains_the_bad_file}
try either one/both of the following commands to try and delete the file:

sudo rm -i *00e12.avi
sudo rm -i "Battlestar Galactica\/ Blood & Chrome s00e12.avi"

Report back.


x-systemd.automount does not work for ext4 on LVM LV

I guess (I make this answer "community wiki" so feel free to improve), that is because Ubuntu Server 14.04 LTS does not use (by default) systemd, so it does not know about x-systemd.automount concept.


Solved by addiing "acpi=off" to the parameter "GRUB_CMDLINE_LINUX_DEFAULT" in file /etc/grub/default.

Then run sudo update-grub


There are two possible ways that I've found out:
Using the History

Right clicking on the back/forward buttons of the browser which will open the history of the page. (You can also do the next step directly on the arrows, but if you opened the history you get to choose which page to open from the history, instead of opening directly the previous or next one)

Press (and keep pressing) the Ctrl button and click on one of pages in the history.
Click on one of the pages with the mouse's middle click button.

Now, after doing any of the steps in the second point, it will open a new tab with the same history of the old tab, and the starting page will be the page you've chosen from the history.

Wihout using the History
If you try to drag and drop the tab as if you were re-arranging it, keep holding Ctrl button before releasing the mouse button while dragging the tab.
This will do the same as above except that you can get to choose where to clone the tab in the tab-bar, and the starting page of the cloned tab is the same as the original one.
Thought I'd share my simple but interesting findings


Ubuntu 18.04: No polkit authentication agent found

I met up with the same problem recently. I'm a newbie, so I don't know whether this can solve your problem, but here is my solution.

find out which desktop environment I'm using

ps -A | egrep -i "gnome|kde|mate|cinnamon|lx|xfce|jwm"

search for the corresponding policykit package and install it.

sudo apt search policykit
sudo apt install policykit-1-gnome

my desktop environment is GNOME
(I don't know whether this step is necessary)

exec /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

and then my problem had gone.


It sounds like there is a firewall between your machine and alice and bob that's dropping your inbound SSH traffic to your machine and but not for outbound. Are all machines on the same network?


I am getting the message "EXPORT: command not found" when ever i open terminal

I commented

You've likely added an export command to an autorun script (the
command is export which is not the same as "EXPORT"; case matters)

OP later confirmed it was in ~/.bashrc


Wine: Install Windows Program for Multiple Users

I would do it the same way you did it... put the binaries in a public location and link to the home dirs for who needs access.
I do have my questions however with opening the same Windows program by multiple users at the same time. Not sure how they react to it. Most are not created for multi-user environments. Even though they operate in Linux, I think it could create unwanted behaviour...


Ubuntu not detecting Windows 10 during installation

Manually create the partitions. Choose Something Else in the menu. Now click on the Unallocated/Free space and click + button. Then set mountpoint as / and filesystem as ext4. This is the root partition. And click it and install Ubuntu there.


KDE 4.7.3: how to remember ssh key passphrase in konsole?

if you are using the terminal, then probably this might be a solution for you.

The idea is to add the code they state into your .bashrc. Thus, you will need to input it only once at login, the same way you used to have while under ubuntu.

Hope it works for you :)


If it works from your graphical session then it should work externally as well as it is accessible via page presented by apache.

Did you install landscape on your (1) local VM or (2) is it hosted somewhere in the cloud or DC?

1) run ifconfig  or ifconfig | grep inet
and from your laptop/desktop try to access IP that is being shown. You are looking for address that is shown after " inet addr:"

2) If its external then check for closed/open ports, both on your server:

sudo ufw status

and look for

80                         ALLOW       Anywhere

and your firewall  \9software or physical) if you have in front of your server. Again, check IP as per suggestion (1) on your server that you installed landscape and try to access it first via IP rather then hostname if you set up any.
Let me know if it worked, or if you need some more help.

Thanks
Bogdan


How to get back hosts file after accidental deletion

This is the contents of my /etc/hosts. Obviously, change the second line to reflect your hostname.

127.0.0.1   localhost
127.0.1.1   sparhawk-XPS-17

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


How to install ubuntu on Microsoft Server 2008 R2 Hyper-V?

this guide should help you :

http://social.technet.microsoft.com/wiki/contents/articles/how-to-install-ubuntu-server-10-4-in-hyper-v.aspx


The error maybe because the directory /usr/lib/go/bin/ does not exist:

$ sudo go run mk.go install
compiling: utilz/stringbuffer
# ...
compiling: start/main
linking  : /usr/lib/go/bin/gd
cannot create /usr/lib/go/bin/gd: No such file or directory
2014/10/02 19:14:51 [ERROR] exit status 1
exit status 1
$ ls /usr/lib/go/
doc/         favicon.ico  lib/         pkg/         src/
$ sudo mkdir /usr/lib/go/bin
$ sudo go run mk.go install
up 2 date: utilz/stringbuffer
# ...
up 2 date: start/main
linking  : /usr/lib/go/bin/gd

Just create the directory using sudo mkdir /usr/lib/go/bin and you should be fine.


why there is keyboard input lag on login gdm?

You should comment out all these files /lib/udev/rules.d/61-gdm.rules and /usr/lib/udev/rules.d/61-gdm.rules
and open file /etc/gdm/custom.conf
WaylandEnable=false  # comment this line
WaylandEnable=true  # or uncomment this line

then reboot at the end.


How to kill a unresponsive program from terminal?

You should be able to use:

pkill totem

A generally helpful thing to find which processes are hogging the CPU is top:

then you can press k and type in the PID of the process, and then press Enter twice to kill it;

Another program that can do this is htop:

This can also system resources being used, and processes can be killed by selecting them, pressing k, and then pressing Enter. Parent processes can also be found by pressing t to toggle tree view.


Answer in progress

Run the Python script in /usr/bin/katoolin again

sudo /usr/bin/katoolin

Select 1) Add Kali repositories & Update
Select 3) Remove all kali linux repositories
Run

sudo apt-get update
sudo apt-get install -f
sudo apt-get autoremove

Remove the katoolin script

sudo rm /usr/bin/katoolin

Run

gksu gedit /etc/*release

Change the file like this (depending on your release):

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=Xenial Xerus
DISTRIB_DESCRIPTION="Ubuntu 16.04"

Save and close the file.
Run

gksu gedit /etc/*issue

Change the file like this (depending on your release):

Ubuntu 16.04 \n \l

Save and close the file.
sudo apt-get install --reinstall software-center


Use grep:

grep '^[0-9. ]*$' text.txt

or to also exclude empty lines from the match, use

grep -E '^[0-9. ]+$' text.txt

This will select lines with numbers, dot and space.
You can also reverse the pattern, by excluding lines with for example < using grep -v:

grep -v "<" text.txt


Up.

Anyone has an idea ? I had to remove xscreensaver but I would really like either to find a way to fix it or to find an other way to turn my screen off when I'm not here.


That's because you're not root when you browse your files by default (for obvious security reasons).

You can run gksu nautilus to launch nautilus as root

What I did is adding a shortcut to launch this :

Open System Settings and go to Keyboard ;
Under Shortcut > Custom Shortcuts click the + (add) button ;
Name the shortcut as you like and fill the above command (gksu nautilus), then click Apply button ;
Click on Disabled next to the new shortcut and pick key combination of your choosing.

It will prompt for your password every time you open this.


no dash/applets shown after installing ubuntu desktop on ubuntu server 14.04 64bit

After changing the permission I got it working. Here is how I did it:

sudo chmod -R 777 /home/user/.config/nautilus

Then

sudo shutdown -r now

and after login, Voila..! Ubuntu Desktop show up with no error.

But dunno if this is the right solution to set /home/user/.config/nautilus to 777.


You could add a cron job.

Run the command:

crontab -e

Scroll to the bottom, and add this line

@reboot redshift-gtk

Then press enter (so you have a blank line below). That should now run at startup.


How do I point domain to an external ip address?

Look for the DDNS settings in your router.  When enabling it, you'll have the option of logging into your DDNS provider.  It will automatically update the IP configuration with your DDNS provider when your IP changes.

This is usually found as a page in your Security settings somewhere close to where you configure your port forwarding settings.


Just finished installing Ubuntu and cannot get any wifi. What can I do to fix this?

I think the best for you would be following this official troubleshooting guide:

https://help.ubuntu.com/community/WifiDocs/WirelessTroubleShootingGuide

I used it and it helped me solve my situation after installing additional drivers for my specific hardware.


It works, if you first unmaximize it:

wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,0,0,$(xwininfo -root | grep Width | awk '{print ($2/2)}'),$(xwininfo -root | grep Height | awk '{print $2}')


Lowest screen resolution after closed laptop screen on external monitor

Well, it appears that I found a relative simple solution.

In Ubuntu system settings, I go to Display. There I can set my big external screen as default screen at startup (general configuration --> starter position --> change from [all] to your [external screen]).


Dropbox for new standard user not working

I downloaded the .deb from the Dropbox site & installed it. I then switched to my second user. When the Dropbox wizard started, I supplied my second user's email address, the wizard downloaded the Dropbox daemon and then downloaded the appropriate folders & their contents to the Dropbox folder. Everything is now OK for Dropbox.


Can an sh (or index file) be used in CCC profiles instead of the binary?

Ok so I spent hours doing benchmarks and one of the things I discovered is that the graphical options have to apply directly to the binary, not the shell-script.


"'^^Command not found" Terminal force quits

You likely corrupted your ~/.bashrc. Make a backup copy of that file if you have personalized settings in it, then copy /etc/skel/.bashrc to ~/.bashrc to overwrite it. Don't forget that the filename starts with a .  so it is hidden in nautilus, so press CTRL+H in nautilus to show the hidden files.

Or if you know about bash scripting then you just have to correct the problem in ~/.bashrc with any text editor.

(Or you paste contents of that file here so wee can look into it.)


Swapping out icon set for a different one (13.10, Ambience theme)?

I eventually discovered that what I need is the Unity Tweak Tool.

It's a very simple matter once you find the right tool for the job!


I will partially answer my own question.

I installed Lubuntu for my children's use on an older PC.  I decided to see if Lubuntu's version of rsync would function properly.  The version of rsync on Lubuntu 16.04.1LTS is 3.1.1 protocol version 31.

rsync -aAX /source/filename /destination/
rsync -aAX /source/filename /destination/filename
rsync -aAX /source/filename /destination/newfilename

all work fine in Lubuntu.

Either the version of rsync on Ubuntu 14.04LTS (3.0.1 if I recall properly) has a bug, or somewhere along the way I messed up a configuration file or similar.

As I will be installing Ubuntu 16.04.1LTS in place of Ubuntu 14.04LTS, I will not spend any further time attempting to resolve the problem.

Regards.


Use sed command to apply a condition to check if a pattern has been matched

grep does that job well enough.

$ echo "::=BEGIN" > testfile1.txt

$ grep "::=BEGIN" -q testfile1.txt && echo "FOUND"
FOUND

$ grep "::=BEGIN" -q testfile1.txt && echo "FOUND" || echo "NOTFOUND"
FOUND

$ grep "whever" -q testfile1.txt && echo "FOUND" || echo "NOTFOUND"
NOTFOUND

What the code does is simply running a quiet search within subshell. && , or logical AND operand, checks if the first command succeeded, and if it did, then it runs echo "FOUND" . || checks if that echo has been run, i.e., if we found anything. Second echo runs only if the first command failed.

Here's an awk version:

$ awk '{i="NOTFOUND";if($0~/::=BEGIN/) i="FOUNDIT";exit } END { print i}' testfile1.txt
FOUNDIT

$ awk '{i="NOTFOUND";if($0~/whatevs/) i="FOUNDIT";exit } END { print i}' testfile1.txt
NOTFOUND

Basic idea here is to set i to NOTFOUND, and if we find the string - change it to FOUNDIT . At the end after the first set of has finished processing file, we will print i, and it will tell us if we found something or not.

Edit: In the comment you mentioned that you want to place the result into a variable. Shell already provides a variable that reports exit status of the previous command, $0. Exit status 0 means success, everything else - fail. For instance,

$ grep "::=BEGIN" -q testfile1.txt
$ echo $?
0

If you want to use exit status in a variable, you can do it like so : MYVAR=$(echo $?). Remember , $? report exit status of previous command. So you must use this right after the grep command.

If you want to still use my earlier awk and grep one-liners, you can use same trick MYVAR=$() and place whatever command you want between the braces. The output will get assigned to variable MYVAR.


I had the same error message.

In my case, I installed makemkv in Ubuntu by using snap (i.e. by using the Ubuntu Software Store).

To solve the problem, I went into the snap store, clicked on "Installed", scrolled down to the makemkv item, clicked on it, clicked on "Permissions", turned on both of the "Read from CD/DVD" buttons (there were two for me, probably because I have two DVD drives).

I also turned on "Read/write files on removable storage devices" although that may not have been needed.


Is there a workable wallet program for Ubuntu 12?

If I understand you correctly you are looking for a password manager?  If that is the case look at KeepassX.


How to patch fglrx for installation on kernel 3.7rc7?

I got my answer by combining different posts on the ubuntuforums. This guide will use the 12.10 version of fglrx from the ati site. All these steps are done in a terminal. This guide assumes you have kernel 3.7rc7 installed by following the steps in https://wiki.ubuntu.com/KernelMainlineBuilds. It also assumes you're running Ubuntu 12.04, however the instructions for 12.10 are very similar.

Create temporary directory and go to this directory:

mkdir ~/temp
cd ~/temp

Download the ati driver and the patch:

wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-12.10-x86.x86_64.zip
wget http://catalyst.apocalypsus.net/files/arch-fglrx-3.7.patch

Extract the zip and make the .run file executable:

unzip amd-driver-installer-catalyst-12.10-x86.x86_64.zip
chmod +x amd-driver-installer-catalyst-12.10-x86.x86_64.run

Extract the .run file in the ./src directory:

./amd-driver-installer-catalyst-12.10-x86.x86_64.run --extract ./src

Go to the ./src directory and apply the patch:

cd ./src
patch -Np1 --verbose < ../arch-fglrx-3.7.patch

Now build the deb packages for 12.04 (precise), these will go in the parent directory

./ati-installer.sh 9.002 --buildpkg Ubuntu/precise

Go to the parent directory and install the files

cd ../
sudo dpkg -i *.deb

If you get an error about version.h and that building the dkms modules failed, this is because the file version.h is misplaced in kernel 3.7rc7. To fix this do

ln -s /usr/src/linux-headers-3.7.0-030700rc7-generic/include/generated/uapi/linux/version.h /usr/src/linux-headers-3.7.0-030700rc7-generic/include/linux/version.h

and remove and install fglrx again

sudo apt-get remove "fglrx*"
sudo dpkg -i *.deb

Backup your xorg.conf and generate a new one

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
sudo aticonfig --initial -f

Reboot it and it should work!


Opening nautilus from command line produces errors, doesn't return control to terminal

Nautilus is running fine , there are some warnings but they are not a problem.

If you want it to detatch when you run it stick an & on the end

nautilus &