lubuntu - mariadb ignores correct password

Try to run it with sudo and without the password switch, like this

sudo mysql -u root

and enter your user's password normally when sudo asks for authentication.

There is a specific reason for this because mariadb now is configured by default to use "Unix socket" authentication plugin so the "root" user of mariadb uses the same credentials as the OS "root" user.

You can change this behaviour from the user configuration, but beware it can break other processes that rely on this or the installation of new software that uses MariaDB/MySQL.

An alternative can be to setup a new user with the same privileges as root and set it to not use the socket authentication plugin, so you leave the root user untouched and you can login with an user and password.

Hope it helps.

References:

This Server Fault post
This SuperUser post


How to get a login screen on a serial terminal?

The SerialConsoleHowto you link to has become outdated with the replacement of upstart by systemd.  The error you see is emitted by the upstart backward compatibility layer.

Systemd has a service called serial-getty which does precisely what you need.  Its service definition at /lib/systemd/system/serial-getty@.service references man systemd-getty-generator and this documentation, according to which all you need to do is add a kernel parameter console=ttyS0.

If this works as advertised (I cannot test this on my machine), please consider updating the SerialConsoleHowto to include this information in a section for "Xenial and later".


Nautilus script that creates a password protected ZIP

Try this:

#!/bin/bash

file-roller -d "$@"

Putting quotes around $@ makes it handle spaces correctly.


I don't have startup disk creator in ubuntu 19.04

Startup Disk Creator (usb-creator-gtk) can be started from the Dash by clicking on the Startup Disk Creator icon or from the terminal with the command usb-creator-gtk in all currently supported versions of Ubuntu, including Ubuntu 19.04.

To verify that Startup Disk Creator is installed run the following command:

apt policy usb-creator-gtk

Startup Disk Creator can be installed with the following command:

sudo apt install usb-creator-gtk


Glassfish warning when i try to open an existing Java Project

What is the permission of the glassfish and netbeans folder in opt? You can verify that with:

ls -l /opt/

Depending on the result you might need to change the ownership of the folder to your username. You can do that with the following commands: (replace username with your username, and press tab to autocomplete versions of the software)

sudo chown username.users /opt/glassfish-<TAB>
sudo chown username.users /opt/netbeans-<TAB>


How can i ping loopback IP without entry in routaing table?

Loopback address does not need routing, because packets addressed to loopback interface do not leave interface, they are not passed to data link layer.


How to play VOB files that were inside a DVD disc?

Open Ubuntu Software Center, search for vlc
 and install it.

Then go Applications --> Sound and Video --> VLC. On VLC press Media --> Open folder and select the folder that contains the VOB files.


The default Image Viewer application in Ubuntu supports the gif image format. If Image Viewer does not open your .gif image, there may be something wrong with the .gif file.

You can split up the .gif into multiple image files using imagemagick in order to take a closer look at what the gif file is made of.

cd /path/to/directory/containing/input-file.gif
convert -coalesce input-file.gif output%05d.png

ImageMagick can also put a .gif file back together.

convert -delay 300 -loop 0 *.png animation.gif

ImageMagick has options to change the size and timing of the output .gif file.


How to automatically connect OpenConnect VPN when the connection closes?

See the options it has. openconnect --help:

-u,--user=NAME

Set login username to NAME

--passwd-on-stdin

Read password from standard input

--reconnect-timeout

Keep reconnect attempts until so many seconds have elapsed.
The default timeout is 300 seconds, which means that openconnect
can recover VPN connection after a temporary network
downtime of 300 seconds.

it also supports a

--config=CONFIGFILE

There are several scripts on-line you can adapt to your situation.


This is nothing to do with the convert command - your shell is expanding the glob pattern *.png before it is passed to the command, and it does so in the lexical collation order LC_COLLATE defined as part of system's current locale.

Unfortunately it's hard to get numeric ordering in the bash shell (which is what I assume you are using): if you don't mind switching to zsh there is the possibility to use a numeric glob qualifier i.e.

convert -delay 20 *.png(n) animation.gif

For further discussion, see for example this related Q&A Glob with Numerical Order


I would guess ALSA.  However, if that's not right, they can reassign it.  Just go ahead and file it on Launchpad and use your best judgment.  No one will bite your head off for filing it in the wrong place.


External HDD with data to be used as bootable USB stick for Ubuntu 16.04.1 LTS

You can! But, I would highly recommend against it.

You need to create a "Boot Partition" and that means you need a primary partition available for boot.
You need to move your files if your external disk is almost full or if you have to create new partitions.
Playing around with Disk utility is always risky, esp when you are unaware of what you do.

Instead, use an USB/Pen drive. If you're already on ubuntu, you can use the "Startup Disk creator" or if you're on Windows, try unetbootin.

Follow the instructions, viz. show the iso file, select the partition and "Burn". Once its done, insert it in your computer to be installed in and reboot. You should be on the ubuntu startup screen asking if you wanted to try or install it.


I'm not sure how TRIM comes into play for an encrypted drive.

Nowhere. TRIM is on the level of the file system. Encryption on the level of the data on the filesystem.

  The drive does not mount on bootup.

Also not important

See  Is TRIM enabled on my Ubuntu 18.04 installation?

  TRIM is enabled to run weekly by default in 18.04. It is a systemd service managed via systemctl.

If not enabled already you need to set it through /etc/fstab options if auto mount. Otherwise you can also use tune2fs to enable it for a manual mount. But it should already be set.


Evolution slow when sending mail or switching between components

While I did it for different reasons, it may help to upgrade to Evolution 3.4. Ubuntu intentionally remained on an older version of Evolution (and some other Gnome applications) for 12.04, due to insufficient testing. That said, I haven't had any of the issues you're describing.

Thanks to a helpful fellow AU member, I found the Stracciatella PPA, which has all the Gnome 3.4 stuff. Installing Evolution itself was pretty painless, though Ubuntu really doesn't want you to, so you have to tell it to do so explicitly.

Add the repo: sudo apt-add-repository ppa:janvitus/gnomestracciatella
Update apt (sudo apt-get update)
Install Evolution (sudo apt-get install evolution)
Remove or disable the PPA, so Ubuntu doesn't continue to complain that it can't update everything.


Unable to boot into Windows after deleting Windows entry in boot menu

If you run Ubuntu on a part of your disc, and it is still runnable, (Not destroyed!) then try to repair the grub boot manager I use the nice little tool 'Boot-Repair', which is in the Ubuntu repository. You can even use it on a USB stick.

Guide Boot Repair


No wireless networks on boot, works after suspending

This system no longer exists so there will presumably never be an answer to it. I will mark as resolved; if it should be deleted instead perhaps someone can let me know.


No 'Open with' option to open/run jar file with openjdk

For some reason there is no desktop file for OpenJDK 7.

$ apt-file list openjdk-7-jre | grep desktop
openjdk-7-jre: /usr/share/applications/openjdk-7-policytool.desktop

$ dpkg --get-selections | grep openjdk-7
openjdk-7-jre:amd64             install

Install Java with this commands, in order to get the required entry:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

and then

sudo apt-get install oracle-java7-set-default

Or you could create a desktop file for OpenJDK7

Create a new file in ~/.local/share/applications/

nano ~/.local/share/applications/openjdk7.desktop

and add the lines below:

[Desktop Entry]
Encoding=UTF-8
Name=Open JDK 7 Runtime
Comment=Open JDK 7 Runtime
Exec=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -jar %f
Terminal=false
Type=Application
Icon=java
MimeType=application/x-java-archive;application/java-archive;application/x-jar;
NoDisplay=true

Replace the line

Exec=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -jar %f

with the location of your java installation. You can check the installed JREs with:

update-alternatives --display java

Sample output

java - auto mode
  link currently points to /usr/lib/jvm/java-9-oracle/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - priority 1071
  slave java.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/java.1.gz
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java - priority 1081
  slave java.1.gz: /usr/lib/jvm/java-8-openjdk-amd64/jre/man/man1/java.1.gz
/usr/lib/jvm/java-8-oracle/jre/bin/java - priority 1083
  slave java.1.gz: /usr/lib/jvm/java-8-oracle/man/man1/java.1.gz
/usr/lib/jvm/java-9-oracle/bin/java - priority 1084
Current 'best' version is '/usr/lib/jvm/java-9-oracle/bin/java'.


Ubuntu 16.04 LTS Matcatz R.A.T 3 Mouse can't get to work

Issue fixed by adding .conf file into /usr/share/X11/xorg.conf.d/ I made a file called mousefix.conf and put the following in it

Section "InputClass"
    Identifier "Mouse Remap"
    MatchProduct "Madcatz Mad Catz R.A.T.3 Mouse"
    MatchDevicePath "/dev/input/event*"
    Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 0 0 0 0 0"
EndSection

Section "InputClass"
    Identifier "Mouse Remap"
    MatchProduct "Saitek Cyborg R.A.T.3 Mouse"
    MatchDevicePath "/dev/input/event*"
    Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 0 0 0 13 14"
EndSection

Saved it to /usr/share/X11/xorg.conf.d/ and rebooted all fixed!


I am trying to play Among us cracked on ubuntu 20.04 (read body)

How about using virtual box to run it . It will be simple that way right?


A bit of Googling leads to this bug for bitcoin in Ubuntu, which has this Ubuntu MoTU mailing list post. This passage, at the end, explains it:

  For these reasons and others, including the Bitcoin software in any stable,
  no-updates release is not a good thing for Ubuntu users nor for the bitcoin
  network as a whole. There is already a PPA, maintained by Matt Corallo, one
  of the core developers, and linked to from http://bitcoin.org/en/download.
  Said PPA provides both the Bitcoin software and the BDB 4.8 packages needed
  for wallet compatibility with the software on other platforms. Over at
  Debian, their Bitcoin Packaging Team has been maintaining the package,
  keeping it in the unstable branch (sid) only, where it is allowed to be
  updated with new releases of the software. It is not included in the stable
  repository (wheezy), nor in testing (jessie). If I understand correctly,
  Ubuntu doesn't have that kind of release. It is my opinion that, given
  Ubuntu's methods of managing its software, it would be better to not
  include Bitcoin in the Ubuntu repositories, unless exceptions to the
  policies could be made, allowing all supported Ubuntu versions to get the
  latest updates as they come down from upstream. As a first step, the
  Bitcoin software should be removed from Trusty's repositories, assuming no
  exception can be made. Ideally, it would also be removed from the older
  repositories (Precise, Quantal, Raring, Saucy) if it can't be updated,
  though I'm told that's significantly harder from the perspective of the
  standard workflows.

The PPA mentioned is https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin.

As for cgminer and bfgminer, from what I understand, bitcoind is the daemon behind the Bitcoin wallet (and the CLI interface), and not a miner by itself. And cgminer is one of the more popular mining software out there.


How do I stop my screen from constantly locking up?

Go to System > Preferences > Screensaver

You need to uncheck "Lock screen when screensaver is active"

If this doesn't work , maybe there is an issue with the graphics drivers or something.
Also please edit your question mention what version are you using?


I must have misread a portion of your post.

There is not a good way of reconnecting to terminal session that you have lost connection to unless you are using screen or something similar. Here is a stackexchange post on launching screen on ssh connections:

https://unix.stackexchange.com/questions/48002/problems-with-automatically-starting-screen-on-ssh-login

Edit:

This is not a solution to this problem

kill -9 $(ps  aux | grep "[ ]$(who | grep 'Joe' | awk '{print $2}')" | awk '{print $2}')


Files copied to folder in var/www disappears on restart

I had my source files in my Desktop, and I was syncing with var/www manually so that I don't have to sudo files individually. I was achieving this by syncing the entire desktop folder whenever I felt syncing is necessary. I used the '--delete' bit in my rsync command, so that any extra files in the destination which might have been deleted in my Desktop source, will be removed.

Here is the catch: I have a /upload/dir in my desktop, but nothing really gets uploaded, since it is done in document root, which is /var/www/. So, whenever I sync files, my Desktop /upload/dir (which is empty and will always be) replaces the /upload/dir in the document root. Hence the content disappeared.

Moral (for me & new linux users): Never blindly copy commands in terminal, without getting a basic understanding.


I need to update my opengl drivers to play counter strike source ubuntu 13.10

to get the latest openGL 3.3 compliant drivers and all the latest updates for them you should install the oibaf ppa.

sudo apt-get install ppa:oibaf/graphics-drivers

run that from the command line or include the oibaf ppa as a update source in the software sources.


W: Skipping acquire of configured file 'Sources' as repository does not seem to provide it (sources.list entry misspelt?)

Programmatically using sed, you can run this command to comment the deb-src line of download.sublimetext.com :
sudo sed -e '\@deb-src https://download.sublimetext.com/ apt/stable/@ s@^#*@#@' -i /etc/apt/sources.list

The results will be the same.

Open up `/etc/apt/sources.list` through `nano` as root.
sudo nano /etc/apt/sources.list

Hit Ctrl + W, type deb-src https://download.sublimetext.com/ apt/stable/ on the search bar, then you can put # in beginning of the line to comment it— you can also delete the line altogether.
Run sudo apt update again, see if you'll get the same errors.


I'm pretty sure that the Order is Artist>Album>Track number, not just track number.

In fact, also your songs are ordered this way.


Files in fstab mounted CIFS folders are not available automatically

I found that the following instructions from here worked for me on Lubuntu 15.10

  Unprotected network folder won't automount

  I've had a situation where an unprotected network folder wouldn't automount during bootup, but after manually entering "sudo mount -a" was mounted correctly. I solved this by replacing the "guest" option by "username=guest,password=".

  //servername/sharename  /media/windowsshare  smbfs  username=guest,password=,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0

  Mount password protected network folders

  The quickest way to auto-mounting a password-protected share is to edit /etc/fstab (with root privileges), to add this line:

  //servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8,sec=ntlm  0  0

Additional to this I used the following option to assure auto mount works:

  _netdev

  //servername/sharename /media/cloud cifs _netdev,uid=1000,gid=1000,dir_mode=0700,file_mode=0600,nounix,forceuid,forcegid,credentials=/home/myuser/.smbcredentials,iocharset=utf8,sec=ntlm 0 0


HTTP Proxy Using Squid on Ubuntu 12.04 and anonymizing the traffic

Looks good to me. It matches my proxy settings except that the first line for you comes after all of my "request_header_access ..." lines.

That line forwarded_for off is what makes the difference between your true client IP being passed as the originating IP (on) or the proxy's IP being used as the origin (off). This is important when trying to access geo-specific resources from outside of the allowed geographic location.

For insurance I also have always_direct deny all as the last line in the file to make sure that no traffic is passed directly to the client. All traffic must go through the proxy.


Why is ‘Archive…’ disabled in Evolution (or how to enable it)

The "Archive" right-click menu requires you to first setup a dedicated folder. To that aim, create an "Archives" folder (any name will do), and then, in your account settings, set that folder to be the "Archive folder" (see Figure). This feature is also available in Thunderbird, and is set up in a similar way (under "Copies & Folders" in the "Account Settings" dialog).

Figure: The "Account Editor" screen in Evolution (Source)


How to do virtual networking (all types) in virt-manager?

It depends on your version of virt manager
In your guest, select host networking

If your version of virt manager does not automatically add a bridge you need to manually configure your bridge.
https://web.archive.org/web/20190831062148/http://blog.bodhizazen.com:80/linux/virt-manager-bridged-networking
https://web.archive.org/web/20190803104448/http://blog.bodhizazen.com/linux/bridge-wireless-cards/


Sorry File services on ubuntu One is discontinued.

Send an email to isd-support asking for a password reset.

Then find somewhere else to upload your image, you can create an account at MEGA

https://mega.co.nz/#

Then create account. Or find somewhere else USB device DVDs for your backup.


Good news. I found a solution. In order to launch VLC through Bumblebee without errors - VLC must be installed BEFORE Bumblebee.

P.S. I tested it two times on Ubuntu 14.04


Why can't YouTube, Audacity, Tartini and PulseAudio all get along?

Maybe this won't help you, but I had similar problem - my Tuxguitar didn't make any sound while Youtube was on. I solved it by installing Fluidsynth and Qsynth, then making some random changes in Qsynth (and then Tuxgutar) settings.

I found it (also with instructions) here, on the bottom of the page.

http://ubuntuforums.org/showthread.php?t=2132761


You have to remove the corrupted source file and add it back with software-properties-gtk Do this by pressing pressing Ctrl+Alt +T

sudo rm -f /etc/apt/*
sudo rm -f /etc/apt/sources.list.d/*
sudo rm -f /etc/apt/apt.conf.d/*

Then run

sudo software-properties-gtk

Tick the boxes, change the server to US or to any other server of your choice, then click close.

Then click reload.

Wait for it to finish then run:

sudo apt-get update


my software repository wont update correctly

As I remember, Release upgrade disable PPA's and 3rd party repositories sources.

You can edit & enable them from software-properties-gtk.

  i should edit them from "other software" in "software-properties-gtk" ? – ahmad (OP)

Yes, you can edit them there.

Some repository have same package for multiple releases, don't need any edit, just enable them.
Some others need to be edited xenial to yakkety if they support yakkety. Then enable them.
If yakkety is not supported, leave it disabled to skip the related error messages till you get some update from the related project. (I miss this point, Thank you George)


Try the steps listed in this page:
How to Fix an Ubuntu Error: "No init found. Try passing init= bootarg"

Basically,

Reboot with a live CD
sudo fdisk -l

will get you the name of the disk then

sudo fsck /dev/sda


Disable integrated GPU (Intel HD Graphics 3000) on Sony VAIO VPCSE

I found a solution on:
Follow the Instructions from post #1 (Step1 -3)
I downloaded and installed the latest Catalyst package (12.6).

After that, I am able to change the integrated and discrete GPU via ATI Control Center or a single command on terminal!

Additional information can be found on:
the corresponding Launchpad bug


An application can use Qt and Tk and Gtk (despite this is generally -but not always- a very bad practice).

So the only way is to start the app and examine pmap output using app's pid, as Lekensteyn proposed in the comment.


Once after installation of ubuntu restarting is taking long time

There is absolutely nothing you can do once a shutdown/restart has been initiated except to wait like you did. When the system has been unresponsive for a unreasonable amount of time a power reset is your only option. If something went terribly wrong it will certainly make itself known when you start the system back up.


Error in network definition: bond0: interface 'eno2' is not defined

Although the device exists at the kernel level, you must provide config in your netplan yaml defining it for netplan use.  Otherwise netplan will not assume the kernel device of this name is the one you want.
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1: {}
    eno2: {}
  bonds:
        bond0:
                interfaces: [eno1, eno2]
                addresses: [192.168.0.104/24]
                gateway4: 192.168.0.1
                parameters:
                        mode: 802.3ad
                nameservers:
                        addresses: [192.168.0.2]
                dhcp4: false
                optional: true


First, boot to recovery mode and drop to a root shell.

1) Mount the file system as R/W: mount -o remount,rw /

2) Next, run sudo nano /etc/default/grub

3) Then add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Becomes:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

And then save by hitting Ctrl+O, then exit nano with Ctrl+X

4) Finally, run:

sudo update-grub
sudo reboot


Its Ubuntu 13.10 and Zorin 7.1 Core.

I figured it out, I had to disable UEFI boot before installing. It obviously checks what is enabled and writes some bootloader based on that.

So disabling UEFI prior to installation it wrote GRUB2 bootloader.


USB scanners not coming through on LTSP clients

Here's a more detailed procedure that worked for me.

If, after you connect and switch on your scanner, you get the following output from this command,

sudo scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

but this command finds your scanner,

sudo sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  ....
found USB scanner (vendor=0x04b8 [EPSON], product=0x0133 [EPSON Scanner] ...
  # Your USB scanner was (probably) detected. It may or may not be supported by

then you need to install Espon drivers.

Visit this page

http://download.ebz.epson.net/dsc/search/01/search/

and enter GT-1500 for the product name, and Linux for the Operating Sytstem.

Eventually, you will need to
download these packages from two separate download pages

iscan-plugin-gt-1500_2.2.0-1_amd64.deb
iscan_2.30.1-1~usb0.1.ltdl7_amd64.deb
iscan-data_1.36.0-1_all.deb

Next, install the standard Ubuntu package xsltproc followed by the three pages you have just downloaded

sudo apt-get install xsltproc
sudo dpkg -i iscan*

Afterwards, when scanimage should give you the following output

scanimage -L

device `epkowa:interpreter:002:004' is a Epson GT-1500 flatbed scanner

At this point, I could scan using simple-scan.


How are the programs in /bin directory compiled into a non-readable format?

The commands/programs in /bin are not non-readable, but they are, as you say, compiled. This means that they were originally written in C (or some other programming language) and have been compiled to machine code (binary) so the processor can execute the code. To do the same, simply write the program you need in C and run the gcc command to produce an executable file.

To print any human readable text in a files use strings < /bin/file,


Default groups for user in Ubuntu 11.04?

Apart from your user's group, you are in

adm dialout cdrom plugdev lpadmin admin sambashare

/etc/sudoers should look like this:

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

# Host alias specification

# User alias specification

# Cmnd alias specification

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

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

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

#includedir /etc/sudoers.d


How can I take a textbox text entry and make it a variable?

You are clicking the button before self.instvar is set. The on_textbox_changed handler is probably never called. Startup Glade and select your text entry. In the property editor on the right select the signals tab and connect the GtkEditable changed signal to the correct handler.

You should also put a print statement inside on_textbox_changed to see if it really is called.

Alse, this line doesn't do what you think it does:

command2 = 'xterm -e sudo apt-get install ' and self.instvar

See this interactive session:

>>> instvar = "firefox"
>>> "xterm -e sudo apt-get install" and instvar    # Your code, wrong output
'firefox'
>>> "xterm -e sudo apt-get install %s" % instvar    # Choose one of these
'xterm -e sudo apt-get install firefox'
>>> "xterm -e sudo apt-get install " + instvar
'xterm -e sudo apt-get install firefox'
>>> "xterm -e sudo apt-get install {}".format(instvar)
'xterm -e sudo apt-get install firefox'


Grub Rescue Deleted Linux Partition alongside Windows 7 not detected

I am finding that the best thing to do, is make a 5GB boot sector using a boot-usb. Then Install Windows, leaving alone that sector at the front of your disk.
Finally, install Linux using "Something Else" and make sure that the 5GB /boot partition is flagged correctly, default would be grub-boot.

As to your graphics problems, look for "oibaf"


You first have to add your google account by going to the gear in the top right of the screen, then System Settings, then Online Accounts.  Just click on Google, enter your username and password, accept the policy, and you should now get Google Drive results in the Dash.


Weird output while using sed to rename files

The command sed 's/^.*NA -//' * would not rename files, it would attempt to replace the pattern in the files' contents, streaming the result to the terminal (with potentially weird results, especially if the expansion of * includes any binary files).
The command perl -pi -e 's/^.*NA -//' * would do the same, except modifying the contents in place, possibly corrupting your files.
To use sed (or perl itself) for file renaming, you'd need to do something like
for f in *; do mv -n -- "$f" "$(sed 's/pattern/replacement' <<<"$f")"

or
for f in *; do mv -n -- "$f" "$(printf '%s\n' "$f" | sed 's/pattern/replacement')"

i.e. passing the name of each file to sed via standard input. However your pattern could just as easily be written as a shell substitution, eliminating the need for sed altogether:
for f in *; do mv -n -- "$f" "${f##* - NA - }"; done

(I'm assuming you want to remove the leading space as well). The ##* matches the longest leading character sequence, equivalent to basic regular expression ^.*
To use perl under the hood, but modifying file names rather than contents, you'd want the rename command, from package rename. (There are other rename commands, such as the one from package util-linux that work differently.) For example:
rename -n 's/^.*? - NA - //' *.aiff

(I limited the scope to .aiff files, and made the .* match non-greedy - a feature that sed does not provide - so that it only matches up to the first - NA - in case there are multiple instances.) Remove the -n once you are satisfied with the proposed re-namings.


How to reenable networking (wireless still not working)?

I had the same issue i have Toshiba satellite c850 -a989, this page really help me

Wireless Lan driver for Toshiba Satellite C850-A823 PSKCCV-02300XAR

but what you should do is :

lspci -l  (command to list all devices on your pc).
see what is the type of your both wireless ans LAN driver type. go and download your correspond driver (in my case realtek) and follow the rest of commands

make sure you have packages mentioned in link i gave you. and follow the instruction for set it up

i wish this help you


Is any version of Ubuntu compatible with Lenovo R60?

The latest version of Lubuntu (12.04)should work just fine. You can download it from here. (Choose the recommended 32 bit disk image unless your Laptop can run a 64 bit Operating system)

Also since you want to run it on a USB drive, you can easily create a live USB using lili USB disk creator on your windows set up.

You can also watch this video for a step by step guide in creating bootable USB pen drive.

Make sure you choose the 'PERSITENCE'option in Lili USB disk creator, which in simpler terms will allow you to install programs and store files on the pen drive and not lose them when you shut down or reboot. So in essence you would have your Ubuntu set up on a pen drive.

Since you want to run the OS solely via the pen drive I'd recommend a >=4GB one.

Hope this helps.


Ubuntu Budgie - Desktop right click menu

I solved that by installing gnome-tweaks and changing a configuration for touchpad there. Then I've uninstalled gnome-tweaks with all its dependencies.
Here is the explanation how to do it with gnome-tweaks: https://askubuntu.com/a/1029445


Howto disable 3d effects/compiz on 12.10?

Ubuntu 12.04 had MyUnity integrated in the System Settings panel which allowed disabling effects and animations. It looks like MyUnity has been removed from the 12.10 repository and for those who upgraded from 12.04, MyUnity does not work in 12.10 as well.

In 12.10, compiz effects and animations can be disabled by using the CompizConfig Settings Manager application as noted down here.


As I understand until now, the problem is that the script is full of commands from "tcsh" shell. Scripts starts with a "#!/bin/tcsh -f", which means to run the script with the tcsh shell(which is installed).

But the problem remains the same, output files are incorrect and missing some properties.

Is there a way around to change the shell to tcsh and run this script with it?


Dell R630 boots into kernel panic on newer kernel version

This problem is resolved, but I am not sure which action caused the resolution.

Per Dell Support, I hooked up the iDRAC, and updated the iDRAC and PERC firmware. The new kernel booted to panic.

I booted the old kernel, in order that it ensure the filesystem was properly FSCKed.

Meanwhile, I had googled the stack trace a bit, and per this Stack Exchange question, I added in for good measure:

sudo update-initramfs -c -k 4.4.0-165-generic
sudo update-grub

The system boots to the new kernel now.

I have a few similar systems, and if I can determine which combination of firmware updates / update-initramfs is the best solution, I will update my answer.


Understanding Partitions - What can I remove?

Can I clear everything and set up a system as described by just booting from a live Ubuntu disk?

Yes. And that's your best option. Delete everything, reinstall the system from scratch. Don't trust an operating system left behind by another user, unless it's a trusted family member. It's very easy to install a clean Ubuntu, and you'll have the latest software, and without a shadow of a doubt of trojan horses or simply just crap left behind by the previous owner.


Difference between Ubuntu and Linux Mint

Well apart from the Unity and that both are very customizable, the most notable differences are:

MENU

The Administration and Preferences menus contain several options not found by default in Ubuntu like:

MintAssistant – Allows the user to set a root password.
MintBackup – Backs up the home directory to a single file.
MintDesktop – Allows the user to select desktop icons, specify the Nautilus mode and determine whether or not to show splash screens for major applications.
MintNanny – Child protection.

THEME

It is "More Green" than Ubuntu ;) Like more "hulkier" Me like Green kind of green.

PACKAGE MANAGER / UPDATE MANAGER

In Ubuntu you have the Software Center we have seen so far when using Ubuntu since 10.10. In Linux Mint they have their Software Center which is similar but includes the option to run .mint files.

SCHEDULE RELEASE

In Ubuntu if they say Ubuntu XX.XX will be release on the 10 of October at 10am with 15 minutes and 20 seconds, you can be sure it will be 30 seconds after what they said but it will still be that day ;)

Linux Mint does not yet have a so perfect schedule release. They have a "When Ready Release" or the famous "Soon".

DRIVERS

While Debian does not have a easy option to install proprietary drivers and Ubuntu gives you the option to install it, Linux Mint installs them automatically, as well as additional proprietary softwares like Flash and others. In Ubuntu 11.04 for example you have the option while installing it to include those drivers (And also the video ones like Nvidia).

This is just in the top of my head but there are MANY MANY more like the amount of devs in Ubuntu and the amount in Linux Mint. Where the code is based in Linux Mint (Github for example) and the one in Ubuntu and so on...

Hope this helps.


As others have mentioned, the problem is the network (teksavvy/rogers). Seems they're blocking the User-Agent that apt-get uses by default. I wiresharked the requests, and was getting a slew of TCP retransmissions. To fix the problem, change the apt-get user-agent, by adding the following to /etc/apt/apt.conf.d/99user-agent

Acquire
{
  http::User-Agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36";
};

This is from https://dmfrsecurity.com/2018/12/10/changing-apts-user-agent-string


Generally the open source video driver works well for most applications that are not using the video card a lot, but there is also the proprietary NVidia driver you can install through Software and Updates -> Additional Drivers and unless the card you choose is very recent (in which case it could be unstable without updates) there should be no problem at all.


How to sync time ubuntu desktop 13.10 client with Centos6.4 server using ntp

If you open a terminal, can you run this command:

sudo ntpdate ntp.ubuntu.com

it should give you an output like this

21 Feb 08:56:06 ntpdate[4932]: adjust time server 91.189.89.199 offset -0.005915 sec

You can replace ntp.ubuntu.com with your own server address.
This will verify that you can communicate via NTP. I run XFCE so my GUI menu is different. Sorry.


Ok, I solved with:

sudo dpkg-reconfigure uswsusp

ShutdownMethod:

reboot
platform
shutdown (choose this)

I also added (not sure if it is necessary, anyway it solved the watchdog problem):
"blacklist mei" to /etc/modprobe.d/blacklist.conf

Updating the bios, removing all usb devices and hubs, didn't help.
Now I have the problem that I doesn't lock the screen after resume....


Desktop Sharing not staying on in Ubuntu 18.04

I just wanted to add that I ran into this after a recent install when I chose the minimal installation for Ubuntu.  The vino-server package was evidently not installed.  Because of this, the screen sharing cannot be enabled.  I installed the vino-server package and then was able (after logout/login) to enable screen sharing.


How to (fresh) install ubuntu.

Backup all your files first. Everything on your computer will be deleted in step 3.
Go to http://www.ubuntu.com/download/desktop and download an Ubuntu ISO.
Create an Ubuntu bootable device (USB or CD) using the instructions on the link above.
Connect your bootable device with the PC you want to reinstall and follow the instructions on your screen.


is ubuntu 20.04 LTS still supported for 5 years if I change the desktop environment?

Packages included on the Ubuntu Desktop ISO come with 5 years of support; as to packages from 'restricted', but packages from 'universe' being community supported which include flavor desktops such as XFCE & MATE only have 3 years of support, so adding extra desktops will mean your system is partially supported after 2023-April (3 years from initial 20.04 release).
eg.
On a QA-test install of Lubuntu focal daily performed yesterday (ie. what will be released as the 20.04.3 ISO) I get
guiverc@dc7700-2004:~$ ubuntu-security-status
1773 packages installed, of which:
1252 receive package updates with LTS until 4/2025
 521 could receive security updates with ESM Apps until 4/2030

Enable Extended Security Maintenance (ESM Apps) to get 1 security
update (so far) and enable coverage of 521 packages.

This machine is not attached to an Ubuntu Advantage subscription.
See https://ubuntu.com/advantage

This shows the packages that have 5 years of support, and those that can be extended via the use of ESM.
Ubuntu does not use dist-upgrade to release-upgrade for a number of reasons (to improve stability & lessen the risk of problems primarily, yes that is part of the process but only part) so much of your question applies to off-topic systems.
If you read the release notes of the release you'll upgrade into (eg. Ubuntu 18.04 LTS) you'll find instructions on how to upgrade & keep your Ubuntu system secure.
Flavors release-upgrade the same as main Ubuntu; with very rare caveats, eg. Lubuntu 18.04 LTS was the last with LXDE thus upgrade was supported via re-install, Ubuntu Studio 20.04 LTS was the last using XFCE thus... etc but all those details are made clear in the release notes.


Check
https://packages.ubuntu.com/focal/vlc
You'll note the maintainers are Ubuntu MOTU Developers
The vlc found in Ubuntu repositories for Ubuntu 20.04 (focal) was packaged by Ubuntu Master of the Universe packagers, not the VLC project.


I have had this very issue before. It appears to be a corrupt Windows (NTFS) partition, so if you can, boot into a Windows environment (this could even include WinPE*) and run chkdsk /f in a command prompt. (if on Windows Vista/7/8, it must be ran as administrator) If you cannot boot into Windows, see this website on how to repair anything from a corrupt NTFS partition to a broken master boot record from Ubuntu. (if you're looking for how to fix a corrupted NTFS partition, scroll on down to where it says Fixing A Corrupted Windows NTFS Partition)

*: Windows Pre-Installation Environment This would be booting from a Windows Vista/7/8 install disc or WinPE created disc via alternate methods. (it will take some Googling to find these, one I recommend that's free would be BartPE) If you are on a Windows Vista/7/8 install disc, press SHIFT+F10 after it finishes booting to open a command prompt. (it will have administrator privileges)


Documentation references

You can found all you need in upstart cookbook.

  Ubuntu currently employs a hybrid system where core services are
  handled by Upstart, but additional services can be run in the legacy
  SystemV mode.

An introduction to run-levels is useful to understand SystemV

Ordering

According to upstart manual:

  Upstart emits "events" which services can register an interest in.
  When an event -- or combination of events -- is emitted that satisfies
  some service's requirements, Upstart will automatically start or stop
  that service. If multiple jobs have the same "start on" condition,
  Upstart will start those jobs ''in parallel''.

Upstart init start/stop service based on event, this is why:

  As a general rule, you cannot rely upon the the order in which events
  will be emitted. Your system is dynamic and Upstart responds to
  changes as-and-when they occur (for example hot-plug events).


You gotta do a purge first, then install you .deb

sudo apt-get purge sublime-text-installer
sudo dpkg -i sublime-text_build-3114_amd64.deb


I suppose that you have done read manual here: LXC.

Also, take a look on discussion here:  lxcbr0 default does not work .


How to detect https traffic with iptables u32 module?

It's impossible to tell from outside what's going on inside a TLS connection. TLS is the Transport Layer Security protocol that wraps HTTP connections to turn them into HTTPS connection. This, i. e. privacy, is one of the three key features of TLS.

There are some methods to intercept the TLS connection and terminate it at the "connection inspector" but those require self-signed certificates in the client applications and defeat the security of TLS almost entirely.


Ugghh I feel your pain.
I think you may need to reinstall grub. Try creating a live disk/usb first. Make sure you can boot it. Then follow these instructions.
http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd


When you open the terminal, by default, you are in your home directory. If you wish to download with wget into some other directory, simply change directories to the desired location; for example:

cd ~/Downloads
wget http://blah/some_file

Or, another example:

cd ~/Desktop
wget http://blah/some_file


yes, its easy
open System Settings ▸ Mouse and touchpad ▸ Touchpad and check Two-finger scrolling


No sound from earbuds(3.5mm jack), internal speakers produce sound.(19.04)

Solved by reinstalling plasma-desktop, kubuntu-desktop.


Please download this file to your desktop.  Right-click it and select 'Extract Here.' Now get a temporary working internet connection by ethernet or any other means and open a terminal:

sudo apt-get update
sudo apt-get install build-essential linux-headers-generic
cd ~/Desktop/backports-3.18.1-1
make defconfig-wifi
make
sudo make install

This is a fairly lengthy process, so please be patient. Reboot and tell us if your wireless is working.

There is one additional step. You have compiled the driver for your currently running kernel only. When Update Manager installs a later kernel version, also known as linux-image, after the requested reboot, you must recompile:

cd ~/Desktop/backports-3.18.1-1
make clean
make defconfig-wifi
make
sudo make install

Reboot again and your wireless will again be working. Please retain the file and these instructions for that time.


Ubuntu 15.04 internet only works for a few minutes after boot

Since you have the rtl8723be, the first thing I would try is
echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf

Reboot, this parameter of the kernel module disables power management which is known to cause issues with the Realtek wifi cards.


Ubuntu server 18.04 LTS installation failing

As rcpao suggested, I used a known working system as a surrogate, installed Ubuntu successfully, and put it in the troublesome computer and it works perfectly.

I tried other things like forcing it to boot from legacy, flashing the BIOS, disabling all BIOS security settings, plugging the drive into different SATA ports, but that made no difference. So there's something funky about this particular motherboard/BIOS that just causes grief if you want to install anything but Windows.


How can I list commands or scripts in crontab that are running every minute?

List all jobs in crontab to a text file.

crontab -l > /tmp/crontab.txt

List jobs running every minute searching for five asterisks separated by tabs or spaces.

grep -P "^(?:\*\s*){5}.+$" /tmp/crontab.txt


Ubuntu 15.10 - "BusyBox built-in shell (initramfs)" on every boot

I've the same issue and I found the solution that worked for me at Initramfs Prompt When Ubuntu Boots.

So, first type:

exit
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) built-in shell (ash)
Enter 'help' for a list of built-in commands

(initramfs) exit

You'll get something like this:

/dev/sda1: Unexpected …
fsck exited ….
The root filesystem on /dev/sda1 requires manual fsck.

And after, use the following command:

(initramfs) fsck /dev/sda1


Ubuntu on Windows does not support the X11 window system, which is needed for graphical applications in Linux. People have managed to use Xming to get things to work (with Cygwin's X suggested as an alternative), but it's not very stable. YMMV. It's not official, and if anything breaks, don't ask here.


Change lock screen to gdm in kubuntu (kde)

On a normal Kubuntu system, open System Settings > Desktop Behavior > Screen Locking > Appearance and choose the image you want. You can even point to an appropriate image stored somewhere on your system or download an image from KDE Store:

Note: I'm using the default display manager and not gdm3. I don't know if there are any side-effects to changing display managers.


Why is it possible to take screenshot without root privileges?

You could take the time to allow no one except root user to run the screenshot program. However other programs can still see the "screen", any "monitor" and any "window" opened.

For example my little python script "reads" the screen image, gathers monitor information and controls any window:

The same python script also pauses/plays movies on the left monitor, adjusts brightness and color temperature on any monitor and even controls a 120 VAC light behind a TV turning it off and on.

What you deem a disadvantage or "security hole" is actually an advantage or "freedom" for others. After all, we are talking about "personal computers". Even in business settings it is often necessary for a low-power user to take a screenshot. One example is taking a program's screenshot and sending it to corporate help desk for support.


Not all games designed for Windows will run on Ubuntu. Some games will run on WINE, and some games need weird tricks or special treatments.

If you're having trouble running a game, search http://appdb.winehq.com for your game and see what others have said about it.

Here is the AppDB entry for Starcraft I: http://appdb.winehq.org/objectManager.php?sClass=application&iId=72

Starcraft II: http://appdb.winehq.org/objectManager.php?sClass=application&iId=11123

If you can't get your game to run, then you might also try running a copy of windows in VirtualBox (available in the Software Center). Though you won't be able to use the full potential of your hardware, so this won't be an option for playing any 3D games that are less than 5 years older than your computer.


Ubuntu not showing in Windows 7 boot Manager

@ALL: Very similar question to this one http://www.askubuntu.com/questions/340045/ubuntu-doesnt-boot, though the messed-up Windows MBR is different.

@Andrei: Anyways, your problem is actually pretty common, try reading the link I mentioned above and this one: How can I repair grub? (How to get Ubuntu back after installing Windows?). Hopefully they will help you solve your problem.


Is AHCI enabled in your BIOS? If not then do so and try the hdparm command again. Then it is supposed to work.


Formating SSD prior to install multiple OS

When you say "is it possible to partition a brand new ssd 500Gb before installing any OS", do you mean partition using the Ubuntu installer, or more general? In fact the answer is yes in both cases. During install: see this question, if you'd like to partition prior to running the installer, take a look at a live CD/USB stick like SystemRescueCD.

Regarding the data partition: since Windows can't (by default) read Linux Ext4 partitions, it's better to use NTFS (or FAT32) for it. Both Linux and Windows can read and write there.

If you install Windows first and Linux second, the installer will create a boot menu for you.


Adding more units of the mysql charm does not create slaves.

Take a look at MySQL charm documentation. If you need to have master/slave replication, you need to deploy 2 instances of the mysql charm, e.g. one named "mysql" and the other "mysql-slave", then you need to add a relation between them. Using the command line, you can do it like this:

# deploy second service
juju deploy mysql mysql-slave

# add master to slave relation
juju add-relation mysql:master mysql-slave:slave

In the Juju GUI, you can do the same visually.


'find', 'chattr', the command on the terminal works fine. But the command in crontab is not good

Cron doesn't import any environment variables, so to get that to work properly, you need a PATH=path1:path2:… line at the top of your crontab file so that find and chattr can be located. Something like:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
* * * * * find /home/a/* -type f -mmin +10 -exec  chattr +i {} \;

Alternatively, you can use full paths for commands:

* * * * * /usr/bin/find /home/a/* -type f -mmin +10 -exec /usr/bin/chattr +i {} \;


The reason you are not able to import pygame into your python interpreter is because you are installing it for python2 and starting the python3 interpreter(Ubuntu 13.10 uses python3 by default).

To install pygame for python2(your version is 2.7.5), do this on a terminal(Ctrl+Alt+t):

sudo apt-get install python-pygame

and then start the python2 interpreter

python2

and then try to import pygame as

import pygame

To set python2 as your default interpreter, you can set an alias in your bash_aliases file. To do this, open a terminal and type:

nano ~/.bash_aliases

This may open an empty file, depending upon whether you have set an alias before and then type

alias python='python2'

Do not change symlinks in /usr/bin/python3, since this may break many application in Ubuntu 13.10 which use python3 vociriferously.


I'm running Ubuntu 12.04 LTS and I am recieving error message when trying to update software. Can i fix this?

Could be a couple of things.

Sources not updated

Although Ubuntu's desktop will do it for you occasionally, you often need to update your sources before you can install packages, to make sure your package manager gets any recent changes to the available packages.

You do this with the "Check" button in the update manager, or with sudo apt-get update on the command-line.

Temporary problem with mirror

Occasionally, depending on the mirror you are using, there can be temporary problems where the mirror goes down temporarily or has other issues.

You will often find that if you try the same thing again later, the problems have resolved.  Or, if it is something important, try a different mirror.


Why does the printer print an extra page containing "p://poppler.freedesktop.org"?

poppler is a PDF rendering library. I've never encountered such problems while using PDF nor any docs when printing..

Anyhow, a quick search led me to something interesting which I think will help you to overcome your issue too.

The default setting in Tools | Options | Writer | Print  is set to print an automatically inserted blank page.  All previous versions of Open Office (and Libre Office as far as I know) have NOT had this set as default, so I've never gone looking for it.

Source: extra page printing DOCX file in Writer

EDIT: https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/293832


It is possible that you still have the Windows partition on your drive. To double check, Run sudo fdisk -l to list the partitions. It will give you an output similar to,

$ sudo fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00008ec7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1013     8136891   8e  Linux LVM
/dev/sda2            1014        1044      249007+   5  Extended
/dev/sda5            1014        1044      248976   83  Linux

Notice the /dev/sdaX part. If you have Windows, it may show up as Extended or VFAT or NTFS depending on the file system.

To view the files in the partition, you need to mount it first. In your home directory, create a folder called win and then mount it by typing

$ mkdir win
$ mount /dev/sda2 win

If all goes well, then you will be able to do a cd win and then an ls to list all your files.


Instructions on how to correctly install VirtualBox on a Linux based system can be found at https://www.virtualbox.org/manual/ch02.html#install-linux-host

Although it is a bit outdated, the basics of the installation will always remain the same.  based on the error message, it seems that the package "dkms" was not installed, or the installation of it gone corrupt and requires reinstallation.

If this is not your own computer, it could also be an issue regarding the set user bit or sudoers file that the owner may have set.  Thus when running even with sudo dkms may not run. In that case it is something that you will have to ask the owner of the computer to give you permission to access.


Round cube login connection to storage server failed

I could finally fixed it, Roundcube default configuration was resolving the @newdomain.ae to the app server not the mail server,

I modified the host parameter for both smtp and imap in the roundcube configuration file "config/main.inc.php" $rcmail_config['smtp_server'] and $rcmail_config['default_host'] to the mail server IP, and it finally worked :)


You have to use the kpartx utility.
Attach the partitions to loop-devices with:
sudo kpartx -a -v onetb.img

and then use devices from /dev/mapper/....


Unable to get xmodmap working after suspend

@i08in https://askubuntu.com/a/92235/72576 seems to do the job.

This is what I ended up with on my Debian jessie, KDE.

/etc/pm/sleep.d/20_xmodmap.sh

case "${1}" in
    resume|thaw)
        su $USER -c "sleep 3; /usr/bin/xmodmap /home/$USER/.Xmodmap" &
;;
esac

Note: At first it may seem to not work, but just give it a minute or so. There seems to be something with X that cuses this delay, though I haven't cared enough to check on it... See https://superuser.com/q/626769/185360 for more info.


How to install safely mysql 5.6 against akonadi-backend-mysql in Kubuntu 14.04?

I installed MariaDB 10.1 with features from MySQL 5.6 & 5.7 and everything is going fine.

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.1/ubuntu trusty main'
sudo apt-get update
sudo apt-get install mariadb-server


Ubuntu 12.04 64-bit will not connect to wired network

This situation is symptomatic of a missing driver. The Ubuntu-via-VirtualBox installation has the advantage of passing through Windows drivers before it ever touches the hardware.

Your new motherboard uses an Atheros GbE LAN chip, which is relatively new and may take a while to receive full kernel support out of the box. UbuntuForums has a nice post about two options for installing drivers.

The post will take you to the newer of the driver options, with details at http://ubuntuforums.org/showthread.php?p=12206393.

From that post, you can see how to manually get the needed driver:

sudo apt-get install linux-headers-generic build-essential
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.1-1-snpc.tar.bz2
tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
cd compat-wireless-3.5.1-1-snpc
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx

If you have a WiFi USB dongle, you can use it to connect to the Internet for the wget step. If not, download that file from another computer, and transfer it on a flash drive. The latter link above has more info for dealing with lack of Internet connection.


How to get Ubuntu standard background settings dialogue back?

This is not possible with GNOME sessions other than Unity. The"Change Background" dialogue is only shown, if you have Unity enabled, because Ubuntu uses some patching to enable that option.

If you use any other shell like Gnome shell or (like me) Cairo-dock, which use standard gnome-session, You have to suffer this ridiculous Gnome choice. Standard Gnome sessions doesn't permit you to select a custom picture as background, if it isn't in the root of /home/user/Pictures. God gracious, give us peace from those Gnome designers!


gssapi requires Ruby version >= 1.9.1. on gem install

Removed ruby 1.8 from my system by that was the only one I had.

sudo apt-get purge ruby
sudo apt-get install ruby1.9.3

then

gem install knife-cloudstack #(knife-vcloud for me)

worked for me.


Problem was in permissions of Dropbox folder

chmod -R 775 Dropbox

works for me


I solved by myself, it was a problem caused by FilterList: deinstall ignore.list directive which goal was to ignore some listed packages. Then I discovered that I needed deinstall parameter only within the list itself while I needed install parameter in FilterList:.

So the solution was FilterList: install ignore.list.


According to this writeup, the source code you are trying to compile is outdated and needs to include sys/io.h (from libc6-dev, a dependency of build-essential) instead of asm/io.h. This forum post agrees.

If you're lucky, you might be able to simply modify plcemu.h with this change. However, if this results in more severe compilation errors, the problem is likely to be well outside the scope of Ask Ubuntu.


Connected to Router with WLAN stick but no Internet

You could type the following in the terminal:

nmap -v -iR 10000 -Pn -p 80

To see if there is a soft block, enter:

rfkill list

To see if it is connected, enter:

lspci

And then in the terminal type:

lsmod wlan0

And then type in the terminal:

lsusb -S wlan0

It should work fine this way.


Is command arp-scan working with loopback?

By using --localnet option of arp-scan, the hosts to scan are derived from the subnet configuration of the interface specified.

In your case, thats lo with a 127.0.0.1/8 address and subnet, which results in 16777216 possible addresses.
According to the man page of arp-scan, you can limit the amount of targets either by adding them on the commandline or make use of the --file option.

By the way, I don't think it makes a lot sense to arp-scan your loopback device.


Where can I get the development packages for rsync?

Perhaps the most 'Ubuntu' way of seeing the source code for rsync, as well as seeing the Debian packaging and patching material, is to activate the sources by following (under Xenial):

Dash > Software & Updates > Ubuntu Software > Source Code

Ticking the 'Source Code' box and allowing the repositories to reload. Then run the following single command:

mkdir -v ~/Desktop/rsync_source && cd ~/Desktop/rsync_source && \
apt-get source rsync

If you then wish to manipulate this source i.e. alter the sources, change the build options or simply rebuild you will also need the following:

Some build tools:

sudo apt-get install build-essential fakeroot devscripts

The build dependencies for rsync:

sudo apt-get build-dep rsync

References:

Ubuntu Community Docs: Updating a Deb


VLC just plays audio for H.264 and VP8 videos though all necessary codecs are properly installed

I've finally found the problem: due to my HiDPI display I've installed gnome-tweak-tool, Tweaks, and changed font-scaling option to 2.00. I've tested reverting this back to 1.00, i.e. no font scaling, and VLC started working properly!
In the end, I had just to give-up using font-scaling and just setting the system fonts to higher sizes and adjusting the web browser default zoom to cope with this.
I've tested using display scaling, i.e. set it to 200% or similar, under Ubuntu Settings > Displays but that led to the same problem. So if you're using display scaling you can try turning it back to 100%.
For now I'm using display scaling and the workaround is to manually reverting scaling to 100% when I want to use VLC and set it back to 200% when I'm done.


wireless connection is not working ubuntu 14.04 LTS

First go to System  Settings,  click on Software  & Updates.  Go to the Additional Drivers tab and see if the Broadcom card is listed.  If so click on the Broadcom option.

And reboot only  if the Broadcom source option appears.

IF there is no option for the Broadcom driver, in a terminal type  'sudo  apt-get install ubuntu-restricted-extras' then go back to System Settings/Software &  Updates.  Click on Additional  Drivers and choose Use Broadcom source option.

And again,  reboot.  I do the reboot because  I've occasionally had problems where I had to rechoose the option fot it to work,  but most of the time there were no problems.


How to repair evince / Document Viewer after Comic Books uninstall and evince reinstall?

I opened Ubuntu Software, searched 'document viewer', clicked 'Install' even though evince was already installed (i.e. had the button 'Remove' available), shut down the computer, and booted back up. I can now open PDF files in Document Viewer.


XBMC, libGL error: failed to load driver: i915

Seems to be due to not supported DRI3 by intel 915 driver. Update to mesa 12.0. See this bug at: https://issues.openmandriva.org/show_bug.cgi?id=1439


You have a space between the = and the opening '. Remove it.

$ alias foo= 'bar baz'
bash: alias: bar baz: not found


For the single cron job you can comment by editing with crontab -e.

If you have to stop all the cron jobs:

sudo service crond stop
sudo service crond status
sudo service crond restart

or

/etc/init.d/cron start
/etc/init.d/cron status
/etc/init.d/cron restart


Wireless disconnect issues Ubuntu 16.04 with RTL8821ae

Well I recommend to upgrade your kernal version to Kernal 4.6.4 and then download the latest wifi driver from git rtlwifi_new. Now go inside the downloaded directory and compile as follows.

sudo make

sudo make install

sudo reboot

Now try loading the driver modules

sudo modprobe -r rtl8821ae
sudo modprobe rtl8821ae

Scan the wifi and check the quality level using the following command.

iwlist scan | egrep -i 'ssid|level'

If still your problem persist then need to check how many antennas your laptop have and try changing antenna (ant_sel)and check the quality level of the signal.

sudo modprobe -r rtl8821ae
sudo modprobe rtl8821ae ant_sel=1
iwlist scan | egrep -i 'ssid|level'

if not try second antenna as follows.

sudo modprobe -r rtl8821ae
sudo modprobe rtl8821ae ant_sel=2
iwlist scan | egrep -i 'ssid|level'

if any of the above antenna switching works, then make it permanent by adding options correct ant_sel= to a conf file by creating it as follows.
vim /etc/modprobe.d/rtl8821ae.conf

options rtl8821ae ant_sel=1

If everything goes fine, then reboot and enjoy.


FWIW, I checked the man page myself, and I cannot find the error you mention! Perhaps it has been corrected? I am using Ubuntu (MATE) 17.04, regularly updated with sudo apt update && sudo apt full-upgrade. Have you tried updating your system?

Anyway, to answer your question in general terms:
man page errors are bugs
As mentioned in the comments, mistakes in man pages are bugs and should be reported to the package maintainers. See the Ubuntu help wiki on bug reporting and How do I report a bug?
How to figure out which package provides a man page
Use whereis to find the man page file (as well as other main files), and dpkg -S to find which package provides the file, for example
$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz

The last file mentioned is the man page file - we can see that because it's in /usr/share/man, so we can find the providing package like this:
$ dpkg -S /usr/share/man/man1/ls.1.gz
coreutils: /usr/share/man/man1/ls.1.gz

So the package would be coreutils.
In your case:
$ whereis systemd-resolved
systemd-resolved: /usr/share/man/man8/systemd-resolved.8.gz
$ dpkg -S /usr/share/man/man8/systemd-resolved.8.gz
systemd: /usr/share/man/man8/systemd-resolved.8.gz

So in this case the package to report a bug against is systemd
How to report the problem
First, create a Launchpad account
Since the problem is just a typo in the manpage, there is probably not much point in including all the usual debugging information that is included when you use Apport. Instead you could enter
http://bugs.launchpad.net/ubuntu/+source/PACKAGENAME/+filebug?no-redirect

in the URL field of your browser, replacing PACKAGENAME with the name of the package.
You can then enter a short bug description, for example
typo in man page of `systemd-resolved`

You then get a form where you enter (as if there were still any doubt) which package you want to file a bug against, whether it is a security vulnerability (I'm pretty sure a typo in a man page won't be one...) and the details of the problem.
Don't forget to include which version of the package you are reporting against. You can check this with apt policy <packagename>
$ apt policy systemd
systemd:
  Installed: 232-21ubuntu5

Try to describe the problem as clearly as possible, imagining that you have to fix it yourself with no pre-existing idea of what's wrong. For example, you could give the subheading of the section where the error appears, copy and paste the text of the section with the mistake, explain why it is wrong and what it should say instead.


Missing mouse/touchpad options (Ubuntu 16.04)

Alright, so I found a solution to my issue here, but here's a more concise explanation of what actually solved my issue:

Basically, I had to go to /usr/shar/X11/xorg.conf.d and edit the 50-synaptics.conf file. Assuming root privileges, I opened this file in nano and added the following three lines under the third stanza, right below any already-listed Option:

Option "VertEdgeScroll" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"

I then saved this as 90-synaptics.conf and removed any competing libinput files. Rebooted, and got back tap-to-click, two-fingered right click, and edge scrolling (both vertical AND horizontal); exactly the same setup I had before.

From the Mouse and Touchpad settings menu, I regained everything but the ability to turn on/off horizontal scrolling.


Installing Google Chrome in Ubuntu 13.10 Error [How-To]

You could try installing from the command line:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i ./google-chrome*.deb
apt-get install -f

Note that this url assumes you are running a 64 bit OS.


Is there any version of Ubuntu not in Simplified Chinese, but in Traditional Chinese?

Ubuntu has Traditional Chinese version.

Going through System Setting -> Language Support

Download Traditional Chinese language support.  You can do this in the "Install / Remove Languages" section.  Your computer should be able to display Chinese Characters now (maybe after reboot).  You may also want to install language support of other languages.
(Optional) Drag your language, 漢語 (香港), to the top, so that your applications would use Traditional Chinese if it's available.


How to restore Windows boot loader after removing Ubuntu

This depends on whether your operating systems are installed in UEFI mode or Legacy mode.
(If your PC is manufactured in the last 5-6 years, and came pre-installed with an operating system, it will most likely be UEFI.)
There is a similar question that you can follow to check whether you are using Legacy or UEFI.

Note: Irrespective of which mode you install in, if you simply delete the Ubuntu partition, it won't make the Windows bootloader default automatically. You have to do it once, manually.

If you install in Legacy mode and then delete the Ubuntu partition

You'll most likely end up in a grub rescue prompt on the next boot. You'll need a bootable recovery disk (either Windows or Linux) to help you restore your Windows boot sector.
Here is a similar question that can help in this case.

If you install in UEFI mode and then delete the Ubuntu partition

You'll most likely end up in a GRUB command line prompt on the next boot, from where you'll have to boot to Windows and delete the GRUB EFI Firmware entry or change the order to put the Windows bootloader in the first place.
Here is a similar question that can help in this case.

So, what's the better way?

For Legacy

Boot to Windows first and use the bootsect tool to replace the GRUB boot sector with the Windows boot sector, and then delete the Ubuntu partition. Run these from an elevated Command Prompt :-

bootsect /nt60 SYS /mbr
bootsect /nt60 SYS

For UEFI

Manually delete the GRUB EFI boot entry and/or set the Windows bootloader to the first position before you get rid of Ubuntu.
This answer to a similar question explains the process for deleting it in Windows.

To perform this from Ubuntu, the efibootmgr tool can be useful. Run :-

sudo efibootmgr -v

to see the entries currently in your bootloader, then run :-

sudo efibootmgr -b XXX -B

to delete entry XXX.


Booting ubuntu usb gives terminal?? How can I install ubuntu?

The process of putting an iso on a usb drive is a bit more complicated than just putting the iso on the drive. I recommend you used the universal usb installer if you're installing from windows. It should work nicely with the iso file you already have so be sure you have that on your hard drive before you format the usb drive.

Other good methods are listed here.


How can I disable GNOME keyring for svn?

Edit the ~/.subversion/config with gedit or nano , and add the following lines

[auth]
password-stores =

then save it and try again.


netstat can be used to see the ports stat.
sudo netstat -lnp

To list all Listening ports Numbers with the Process responsible on each one. Terminate or kill the process to close port. (kill, pkill ...)
Without process termination, It is not possible! . See Manually closing a port from command line. Other way you may look for a firewall solution (as isolating that port from network)


Why Ubuntu does not release his OS for Intel Processor (ubuntu-20.04-desktop-amd64) i have problem with installing Ubuntu on intel processo?

amd64 it's an architecture, not the processor model. You choose the right variant. Root of your problem is not here.


I guess no, because sony tablet s has nvidia tegra 3 chip and the recent UBUNTU ROMs are suitable only for ARM Cortex A7 processors.


12.04 Compiz does not properly work since upgrade

make sure you are running unity 3d by executing /usr/lib/nux/unity_support_test -p.

If the test passes read on, else your graphics driver need to be reinstalled.

That compiz replace changes all values to default value. In default compiz doesn't provide woobly or other effects.

Open up ccsm and configure the changes.


Rhythmbox: How to edit track order of playlist?

It depends on the kind of playlist you created.

Automatic Playlist

If you created an "Automatic" playlist (i.e. one that has rules for including/excluding various kinds of files), you can change the order only by changing the sort criterion in the playlist edit box.

Here's what the Edit Automatic Playlist dialog looks like:

To change your sort order:

Click the checkbox beside "Limit to:"

This will enable the "When sorted by:" controls on the next line.
Choose the field by which you want your tracks sorted (Album, Artist, etc). You can also choose whether to sort in ascending or descending order.
If you don't want to limit the number of tracks in your playlist, uncheck the checkbox you enabled in step 1.
Click the Close button and you're done!

Static Playlist

RhythmBox refers to playlists where you've explicitly added specific songs as Static.

When you populate static playlists, RhythmBox always adds new tracks to the end, so you could change the order of this list by removing and adding tracks until they're in the order you want.

Bleah.

Fortunately, there is a somewhat easier way.

Rhythmbox stores the content for the static playlists, along with the rules for the Automatic ones, in a human-readable XML file. In order to change the order, you have to edit that file.

The file's (default) path is: ~/.local/share/rhythmbox/playlists.xml.

To change the order of a manually-created playlist:

(NOTE: these instructions, while pretty basic, assume a certain amount of familiarity with Linux operations, like copying and editing files. If you don't know how to do these things, you'll need to look them up first.)

Close RhythmBox, lest it overwrite the file you are about to edit.
Navigate to the directory containing the playlist file. (~/.local/share/rhythmbox/)
(Optional but HIGHLY RECOMMENDED!) Copy the playlists.xml file to a backup file, in case you screw up. (To do so in a terminal, enter something like this command: cp playlists.xml playlists-backup.xml .)
Open the file (the original, not the backup) with your favourite text editor.
Find the particular playlist you want to edit. Each playlist is a playlist element, consisting of:

an opening <playlist> tag
a location element for each track comprising the playlist, specifying the file path

(Note that the file specifiers are URL-encoded, so – for instance – what would normally be a space in the file name will appear as %20. Take that into account if you are using your editor's search functionality to find a specific file!)
a closing <playlist> tag

Each playlist element has a name attribute (among others), so if the playlist you want to edit is called Main, you can search for name="Main".
Move a song:

(Note: These are very basic directions, aimed at beginners. Experienced users of text editors will not need these.)

Find the file you want to move.
highlight the entire line containing the location element of each track you want to move
cut out the selected text (usually Ctrl+X will do this)
place your cursor in the new location and paste the text you cut in the previous step (usually Ctrl+V)

Repeat the previous step for each track you want to move.
Save the file. (!)

If you've done everything correctly, when you open RhythmBox, the songs should be in the order you want.

If you haven't done everything correctly, RhythmBox may not be able to read the playlists file at all. It's a good thing you backed it up when you started all this, huh? You should be able to use the backup to figure out what you did wrong.

This procedure is certainly nowhere near as nice as being able to drag and drop the songs from the RhythmBox GUI itself, but it's better than not being able to change the order at all.


In 11.04 you still have the option do use the old UI. Install, log out, log in - choose ubuntu classic and you have the standard UI. In 11.10 this option will no longer be available in the 700 MB package.


Recovering moved .mod files using grubrescue

Here are some general and basic instructions to help with boot errors such as GRUB loading stage 1.5 error 15    (e.g. after the installation of Windows on different disk drive) :

Boot with a LiveDVD (e.g., the Ubuntu Desktop disk).
Open a terminal, and re-write the grub configuration using these commands:

sudo mount /dev/sdXY /mnt
sudo grub-install --root-directory=/mnt /dev/sdX

Where /dev/sdX is the disk where Ubuntu is installed, and /dev/sdXY is the partition on the disk where Ubuntu is installed.  In other words, /dev/sdXY contains /boot and so on.

Use fdisk -l to verify the Ubuntu installation location.


Check at the Intel ARK website to determine if your computer's processor supports the 64-bit instruction set. Also your computer should have at least 3GB of RAM for best results running a 64-bit operating system.

If you find that you need to install a 32-bit release, you can download Ubuntu 16.04 32-bit. Ubuntu 16.04 is a Long Term Support (LTS) release which is supported by updates until April, 2021.

Starting with Ubuntu 17.10 there is no longer a 32-bit iso file available to download, only a 64-bit iso file, however 32-bit iso files are still available for the 17.10 releases of Ubuntu MATE, Kubuntu, Xubuntu, Lubuntu, Ubuntu Budgie, Ubuntu Studio and Ubuntu Kylin.


There is a solution mentioned in another post.
You might try this: ubuntuone-for-windows-does-not-work-i-got-problem-opening-the-ping-url-error


Where would I find the Purchased Music folder on my system?

Look for: ~/.ubuntuone/Purchased from Ubuntu One

I make a smart playlist of all my purchased music so I have it handy and then I can manipulate it from the music player when I want to make copies, etc.:

How do I make a smart playlist of my purchased music?


Problems related to Wine, ProShow Producer

The wine tag says "Wine is a software compatibility layer that allows some Windows programs to be run on Ubuntu."

Unfortunately, it is in no way a complete replacement for Windows, so if you still want to use Linux you can try one of this alternatives:

look for similar software that runs natively for Linux;
use a virtualixation system like VirtualBox
use a dual boot configuration to run your native Windows applications in a true Windows environment.


Root password recovery, makes Ubuntu unsafe?

Yes, you need to encrypt your filesystem. Any operating system can very easily have its passwords reset if an attacker gains physical access, as they can just read/write the filesystems by attaching your storage devices to their own machines. Encrypting the filesystems prevents that. So if this bothers you please consider using full disk encryption which can be configured from the Ubuntu installer.


Do Accomplishments look at Launchpad's history

Actually, it seems to me that you were affected by our temporary validation server lag. It was not syncing trophies properly for some time, and that's probably the issue you've met with.

Also, to answer your question: Trophies are awarded for things you have done in the past (like previously submitted bugs), as long as there is a record of such event in Launchpad (which is the case most of time).


Writing out only files existing in one directory or other or having different size or time of last modify

I think I'd try to put something together based around using rsync in dry-run mode (--dry-run or -n).

To illustrate, given:

$ tree -Ds Adir/ Bdir/
Adir/
├── [       4096 Nov 19  9:36]  sub1
│   ├── [         35 Nov 19  9:35]  common
│   └── [         23 Nov 19  9:36]  onlyA
├── [       4096 Nov 19  9:41]  sub2
│   ├── [         35 Nov 19  9:35]  common
│   ├── [         44 Nov 19  9:44]  newerA
│   ├── [         44 Nov 19  9:37]  olderA
│   └── [          6 Nov 19 10:36]  size
└── [       4096 Nov 19  9:35]  sub3
    └── [         35 Nov 19  9:35]  common
Bdir/
├── [       4096 Nov 19  9:46]  sub1
│   └── [         35 Nov 19  9:35]  common
├── [       4096 Nov 19 10:36]  sub2
│   ├── [         35 Nov 19  9:35]  common
│   ├── [         44 Nov 19  9:38]  newerA
│   ├── [         44 Nov 19  9:44]  olderA
│   └── [         24 Nov 19 10:36]  size
└── [       4096 Nov 19  9:40]  sub3
    ├── [         35 Nov 19  9:35]  common
    └── [         23 Nov 19  9:40]  onlyB

6 directories, 14 files

then we can list files that have different sizes or modification times as follows:

$ rsync -aOn --delete --itemize-changes Adir/ Bdir/
*deleting   sub3/onlyB
>f+++++++++ sub1/onlyA
>f..t...... sub2/newerA
>f..t...... sub2/olderA
>f.s....... sub2/size

[The change string doesn't really matter for our purposes, but for instance *deleting indicates that sub3/onlyB is not present in the source directory; s indicates a size difference; t indicates a difference in modification time.]

Unfortunately it doesn't seem to be possible to get the actual timestamps directly from the rsync output, but we can simply read the file list and stat the the corresponding files in each directory:

#!/bin/bash

dirA="$1"
dirB="$2"

rsync -aOn --itemize-changes --delete "$dirA"/ "$dirB"/ | while read -r c f ; do
  printf '%s:%s  ' "$dirA" "$(cd "$dirA" && stat -c '%n %s %y' "$f" 2>/dev/null || printf '(none) - - - -')"
  printf '%s:%s\n' "$dirB" "$(cd "$dirB" && stat -c '%n %s %y' "$f" 2>/dev/null || printf '(none) - - - -')"
done

which we can use as follows

$ ./rstat.sh Adir Bdir | column -t
Adir:(none)       -   -           -                   -      Bdir:sub3/onlyB   23  2016-11-19  09:40:12.253318393  -0500
Adir:sub1/onlyA   23  2016-11-19  09:36:52.220421434  -0500  Bdir:(none)       -   -           -                   -
Adir:sub2/newerA  44  2016-11-19  09:44:45.953236221  -0500  Bdir:sub2/newerA  44  2016-11-19  09:38:33.270838033  -0500
Adir:sub2/olderA  44  2016-11-19  09:37:41.675642039  -0500  Bdir:sub2/olderA  44  2016-11-19  09:44:45.953236221  -0500
Adir:sub2/size    6   2016-11-19  10:36:31.460487036  -0500  Bdir:sub2/size    24  2016-11-19  10:36:31.460487036  -0500


Errors  when installing Mysql Server 5.1

Try this:

sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak; sudo apt-get install --reinstall mysql-server-5.1 mysql-server-core-5.1 mysql-client-5.1


Resizing Ubuntu Virtualbox vdi from a Windows7 host does not take effect

I used GParted to modify the Linux native partition. I followed Use GParted to increase disk size of a Linux native partition.


Does Ubuntu One sync files located inside a relocated Home folder?

The Ubuntu One client will only synchyronise folders located under your home directory.  It doesn't care which file system those folders reside on though.  So if /home is a separate file system, it shouldn't matter.

If you had a file system mounted somewhere under your home directory, the client should be able to synchronise that too.

The only thing to keep in mind is that you should ensure that such a partition is always mounted when the Ubuntu One synchronisation daemon is running.  For instance, if a separate file system is mounted at ~/Music and that folder is synchronised, unmounting that folder might look like all the files under have been deleted.

If the file system is on a fixed disk and mounted through /etc/fstab, then there shouldn't be much of a problem.  I would advise against doing this kind of thing with removable media though.


Permission denied on www-data deleting directory

Check the permissions on parent folder (images). I suppose, changing the permision/ownership on "images" folder for www-data, 755 should solve the problem.


Is geda-utils package not available for 20.04?

The answer to the question "is it no longer available" is a simple yes. Along with your output from apt, a quick search of packages with the name geda reveal no packages in the focal fossa repositories. As for the other packages, I would guess you already had these installed before you upgraded. As for whether it will be in the future or whether the .deb files from 18.04 will work, that depends on the package maintainers.


Backup

Before going ahead, make sure that you have backed up all important data from the internal drive.

Create a new partition table

There might be problems because of some data (on the internal drive).

Boot from the Ubuntu live/install drive (USB or DVD). (Boot in UEFI mode, because you want to install in UEFI mode.)
Wipe the first mibibyte of the internal drive. You can do this manually and risky with dd or safer if you install mkusb.
Start gparted and create a new partition table. You can select both the standard MSDOS partition table and the modern GUID partition table, GPT. Particularly if it is a big drive, or you want to have many partitions, it is better with GPT.
Set up partitions if you wish. It is easier with gparted than with the installer.

Start the installer

Start the installer and select automatic partitioning or manual partitioning 'Something else'.
In UEFI mode, the installer will create the EFI system partition (which is the UEFI bootloader) in the first drive, /dev/sda, automatically (no matter what you tell it to do).

Detailed help

The following links to the ISO testing tracker may help,

Ubuntu Desktop amd64 testcases in Xenial 16.04.1
Install (entire disk)
Install (manual partitioning)


Booting Ubuntu 12.04 from a USB fails on my VAIO

on most vaios you need to tap the F11 key when you first start your vaio, this will boot from a USB device.


Unable to import video files to flowblade

This site contains a list of important dependencies.

Actually the package libmlt-data was the only one missing in my case - installing that fixed the problem


When using atom editor screen turns off on UBUNTU 12.04 LTS?

I think i found the answer. I logged in in safe mode then just changed the ui and syntax theme from one dark to Atom dark. Now atom works fine on Ubuntu Desktop. If you want to use one dark theme you can use Ubuntu-2D Or install Ubuntu 14.04Lts. There it works like a charm.


How to recover ext4 partition deleted by WinXP?

I didn't know, deleting one partition could delete several partitions at once (till now)!

I ran sudo mke2fs -n /dev/sdb5 and the whole procedure as described in HOWTO: Repair a broken Ext4 Superblock in Ubuntu several times with reboot, but that did NOT help.

The following section of the guide actualy helped me to solve my issue: TestDisk Step By Step - A partition is still missing: Deeper Search

I ran deep scan / search again using TestDisk and this time (not
sure what I've missed when I ran it the first time) it gave another
output.
Highlighting the partition and pressing the p button on my keyboard
I've managed to find all the partitions that contained files.
Linux Swap obviously doesn't contain any files, but has to be
included too.
Changing D to L (or P) includes the partition.

The end result looked like this:

Disk /dev/sdb - 160 GB / 149 GiB - CHS 19457 255 63
     Partition               Start        End    Size in sectors
 P HPFS - NTFS              0   1  1  6118 254 63   98301672
 D FAT16 LBA             6119   1  1  9624 254 63   56323827
 L Linux Swap            6119   3 29  6398 148 22    4491264
 L Linux                 6398 180 55  9624 229 13   51828736
 D HPFS - NTFS           6756 173 10 19457  21 20  204032000
 D Linux                 7982   9 28 11208  57 49   51828736
 D Linux                 7982 106 61 11208 155 19   51828736
 D Linux                 7986 127 14 11212 175 35   51828736
 D Linux                 7987   2 16 11213  50 37   51828736
 D Linux                 7997  85 25 11223 133 46   51828736
 L HPFS - NTFS           9625   1  1 19455 254 63  157934952
 D Linux                12835 104  6 13817 102 45   15775744
 D Linux                12839  91 53 13821  90 29   15775744
 D Linux                12843 242  8 13825 240 47   15775744
 D Linux                12844 149 42 13826 148 18   15775744
 D Linux                12850 245  4 13832 243 43   15775744
 D Linux                12851 250  8 13833 248 47   15775744
 D Linux                12858 220 35 13840 219 11   15775744
 D Linux                12861 203 15 13843 201 54   15775744
>D Linux                12862 175 50 13844 174 26   15775744

Writing changes and rebooting got everything back again.


$ man ls
...
-d, --directory
              list directories themselves, not their contents

The current directory is represented as . so that's what ls -d is listing.

The directories inside the current directory are contents of the directory, and are therefore not shown with this option.

I use the -d option in an alias to display hidden files and directories

alias l.='ls -dC .* --color'

Without -d, this will list out the contents of the hidden directories too, which isn't what I want.

Another use for it is when I want to see metadata of a directory using the -l option, not its contents:

$ ls -ld playground
drwxr-xr-x 72 zanna zanna 12288 Mar  1 23:10 playground

If you want a list of directories in the current directory you can use

ls -d */


There are some permission problems in your installation. You can find that from the last 2 lines of the following logs:

Aug 17 07:58:06 server apache2[2026]: AH00112: Warning: DocumentRoot [/etc/sentora/panel/] does not exist
Aug 17 07:58:06 server apache2[2026]: AH00112: Warning: DocumentRoot [/var/sentora/hostdata/trgovac/public_html/trgovac_rs] does not exist
Aug 17 07:58:06 server apache2[2026]: (2)No such file or directory: AH02291: Cannot access directory '/var/sentora/logs/domains/banko-sistemi/' for error log of vhost defined at /etc/apache2/sites-enabled/svi.conf:687
Aug 17 07:58:06 server apache2[2026]: AH00014: Configuration check failed

There are 2 warnings (These are only warnings and won't let Apache fail to start but they are worth noting). You have configured somewhere in your virtual hosts' configurations 2 document roots that do not exist. One in /etc/sentora/panel/ and another in /var/sentora/hostdata/trgovac/public_html/trgovac_rs.

However, the error that is causing Apache to fail to start, is the fact that it is trying to create/modify a log that Apache doesn't have access to in /var/sentora/logs/domains/banko-sistemi/.

To fix that, make sure the directory exists, if it doesn't create it and give access to Apache to modify it:

sudo mkdir -p /var/sentora/logs/domains/banko-sistemi
sudo chown -u www-data /var/sentora/logs/domains/banko-sistemi

In case you have changed the default Apache user, change www-data to whatever user you chose for Apache.


Installing UBUNTU 12.10 correctly on Dell Inspiron 6000 with 2 GB ram

12.10 is the development release and is still in beta.  You should try installing 12.04 LTS, or wait until 12.10 is released in a few weeks.


I've been there. Helpful resources: https://github.com/bonnyfone/adb-arm with build instructions and base script then modify it following Arch linux to get 1.0.32 (original is for 1.0.31) https://projects.archlinux.org/svntogit/community.git/tree/trunk/Makefile?h=packages/android-tools

Result:

$ ./adb version
Android Debug Bridge version 1.0.32

Any AOSP release over 5.0 has 1.0.32 so you can set it to what you want, I used branch=android-5.0.1_r1 in the script.


Activities on multiple displays in Ubuntu 20.04

My solution: install 'Dash to Dock' Gnome extension
https://extensions.gnome.org/extension/307/dash-to-dock/
In the settings of it you can choose on which monitor the dock is shown.


Why ISO master (editor) does not read Windows images

I used to use isomaster, but ran into this issue. Now I just add stuff to my iso's manually.

mkdir new_iso
mount -o loop iso_file.iso /mnt/
sudo cp -Rva /mnt/* new_iso
#Make your changes in the new_iso directory
sudo umount /mnt
cd new_iso
sudo mkisofs -D -r -V "ISO NAME" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /home/USER/new.iso new_iso/


How can I find world writable files and folders and set the sticky bit?

You can do this using find's -perm -mode format. From man find:

  -perm -mode

  All  of  the  permission bits mode are set for the file.  Symbolic
  modes are accepted in this form,
        and this is usually the way in which would want to use them.  You must specify u',g' or  `o'  if
        you use a symbolic mode.   See the EXAMPLES section for some illustrative examples.

So, to find all files that are world writeable, irrespective of what other permissions they have, you can do:

find / -perm -o+w

To set the sticky bit, use -exec:

find . -perm -o+w -exec chmod +t {} +


How do I enable or disable the global application menu?

11.04 - 13.10
Yes, the Desktop version of Unity will use the global menu by default.

To disable the global menu remove the indicator-appmenu
package, then log out and back in.

Unity will continue to run without it and your menus will appear inside the application windows as normal. You can also tell the appmenu to ignore specific applications if you're having a problematic app.
The command line way to remove the package is:
sudo apt-get remove indicator-appmenu

Removing the appmenu will break the HUD feature


This link solved my problem:

Go to Dashboard home.
Find sound properties and change the audio output to HDMI.

http://voices.canonical.com/david.henningsson/2012/04/14/audio-over-hdmi-and-displayport-in-ubuntu-12-04/

My HDMI output audio (SPID) started to work right after the first step from the link above, by just installing the latest drivers from Nvidia. After all, the HDMI port is on the graphics card ;-)


System update problem in 16.04 due to kernel 4.8 version update

Whenever we add a development or testing PPA to our system we may be faced with compatibility issues on upgrading.

See: What are PPAs and how do I use them?

In your case kernel modules from audio drivers added through the ppa:ubuntu-audio-dev/ppa do not match the kernel version that is going to be installed. As audio drivers are regularly updated in newer kernel version you may no longer need this ppa. After removal you will be able to update your kernel.

In case you had installed several drivers you may have to restore the default packages by running ppa-purge.

See: How can PPAs be removed?


How to get Ubuntu to recognize new installed Pandoc version?

Cabal not affect the archive of ubuntu packages. You need to move generated binary to desired path for execution, and uninstall manually the system package.


Wireless problems (connected but no internet)

any and all who see this. I figured out the problem by running:

lspci -nnk | grep -iA2 net

I found out my NIC: Realtek RTL8723BE, has this problem on Ubuntu, pretty much exactly as described above where the connection slows to a halt after an uncertain amount of time for no reason (It's a bug in the default drivers). I fixed it by following the guide at:

http://www.dedoimedo.com/computers/ubuntu-trusty-realtek.html

It turns out I was being a tool (I thought I had an Intel card, and hadn't checked). So for anyone else with the same symptoms that sees this here's a possible solution.


You may want to run Boot-Repair, a program that repairs GRUB installations. It works from a bootable USB drive or from an installed Ubuntu system.


Multipass is a tool to launch and manage VMs that simulates a cloud environment.
You had to install it yourself or a package (snap type) did it when installing a third-party application
to list all the snap package you have:
 snap list

to uninstall Multipass (or other) try a:
sudo snap remove multipass


apt is an interface to the packaging system, and wants package names to install.

The tool to install a .deb file is dpkg. Read man dpkg and do something like:

sudo dpkg --install ./device-tree-compiler_1.4.7-1_amd64.deb


Because it's running off of CD, it can take a little while for it to load up. Did you give it enough time to load?


Couldn't find PhpStorm.sh file ( Ubuntu 14.04 ) LTE

Seems pretty straightforward. Are you sure you're in the correct directory? I actually installed this just the other day. This should work:

tar xfz PhpStorm-*.tar.gz
cd PhpStorm-139.732/bin
./phpstorm.sh

Pay attention to the version in the PhpStorm folder name.


Looking into both Compiz and Metacity, both provide the functionality of pressing Alt+F8 to begin resize and you can change the bindings or disable it; but both fail to provide any configuration option for the degree of change when pressing the keyboard cursor keys.

I fear that the answer would have to depend on first which you're using (classic, compiz or new qt based compatibility mode) and secondly if you're willing to go ask the developers of the relevant project to look through their code. My best guess, they don't even know anyone wants to change the degree.


How to add a back button to go back to previous page

The WebkitWebView has a go_back() and go_forward() method which will handle everything for you. So going from your example, just do:

def on_backbutton_clicked(self, widget):
    self.webview.go_back()

def on_forwardbutton_clicked(self, widget):
    self.webview.go_forward()


ld may not be in your users $PATH.

Try whereis ld to locate the command

and echo $PATH to see if the folder is listed.

It's usual for a non sudo'd command to not find it for simple security I believe. for e.g my remote box doesn't find ifconfig for non sudo commands by default.

From a post on stackoverflow about setting $PATH

  You need to add it to your ~/.profile file.

  export PATH=$PATH:/path/to/dir

  Depending on what you're doing, you also may want to symlink to
  binaries:

cd /usr/bin
sudo ln -s /path/to/binary binary-name


How to Open terminal and Embed Terminal To Nautilus File Browser?

The way I do it is to install the nautilus-open-terminal package, (and then restart nautilus):

sudo apt-get install nautilus-open-terminal
killall nautilus

Then you can right click on a folder, or in empty space and you will have the option to "Open in Terminal". If you select that option a new terminal will be opened with the working directory set to that folder.


How do I install _"64-bit Power PC Ubuntu 14.04 "Trusty Tahr" Minimal CD" on my MeeGoPad Stick T01 64-bit?

It's supposed to be possible to use the dd command to create the bootable USB, though you will need a working Linux system to run it! The page you linked has links to here and here about using dd to make the bootable usb, although I couldn't see the command example.

You'll need to know what the device name for the usb, and other internal disks, in the form /dev/sdx.

Then your dd command will be:

dd if=/path/to/iso-file of=/dev/sdx

Replacing sdx with the correct letters to refer to your USB, be very careful with this command, if you type the wrong device name, you can overwrite your entire operating system.


Please boot to your live cd or usb and open a terminal and type

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Then open dash and search for boot repair

Then click the "Recommended repair" button. When repair is finished, then reboot and check if you recovered access to your OSs.

You can find more details of this HERE


Can I pull data/open the contents from another HDD using Ubuntu?

You can launch Nautilus (Ubuntu file explorer) to view the device if it is automounted and just copy files from there.
Otherwise you can try to find the device name with

sudo fdisk -l

Then try mounting it with

sudo mount -t /dev/sdb1 /media

where /dev/sdb1 is the name found with fdisk