How could I add Gimp 2.8's UI theme to Gimp 2.10?

Gimp themes are defined in /usr/share/gimp/2.0/themes/${ThemeName}/.
The most important part of the theme is the gtkrc file.
There are very few differences between the 2.08 Default and the 2.10 System themes (none of these defines any color).
If your problem is mostly a matter of colors, you can copy any of the non-System themes and edit the gtkrc file to define your own colors (some strategic colors are defined at the top).


Ubuntu 12.10 help configuring Eclipse 4.2.1 for Pydev plugin 32bit resolved

In Eclipse goto Help->install new software(popup window will open)->add(popup window will open)->Name(enter 'Pydev' in 'name' box)->Location(enter http://pydev.org/updates) click 'ok'.

In the below box 'select all' -> 'next', accept the terms and conditions and finish.

Eclipse will Install software and ask for certificate confirmation, select and 'OK'

Restart Eclipse and create a project, eclipse will 'auto config' Auto Config

That's it.

You are ready to go.!

(I do not have enough reputation to post images, so pasted Links instead)


It turns out that it's because I had Korean as only input source; It doesn't have any Compose Key sequences. I accidentally removed English input source in the process.

Re-adding the English input source solved the problem.

EDIT: Also restarting the system was required to uim to work. So I can leave Korean as only input source. (Not quite; see below.)

EDIT 2: The action in EDIT makes Hangul unavailable. This issue will be discussed later.

EDIT 3: It turns out that in uim, the input method for Korean is called Byeoru. I set the proper hotkey for Han/Eng switching, and everything's okay now.


How do I use "sudo dpkg --configure -a"?

GRUB is a very important program, it loads the operating system. You need it.

Do I have to check anything on GRUB install devices?

Yes, you need to choose where. You can choose both "/dev/sda"  and "/dev/sda6" but you probably just need to install at "/dev/sda".

Can I continue without installing GRUB?

It isn't recommended as your old GRUB may not be able to load your current system.


php5 libxml2 no version information available error

I had the same problem. I ended up in your situation, when I needed a newer version of libxml than the one packaged with my release. I installed it manually, so I ended up with two installations of libxml. What I did was removing all libxml libraries from /usr/local/lib, leaving only packaged libraries in /usr/lib. PHP warnings then disappeared.

Thus you should be able to resolve simply by

sudo rm /usr/local/lib/libxml2.so*

You might want to backup libxml2.so* before deletion. Hope this helps someone.


distinction between different "types" of root access in bash?

There is no -i argument to the su command, so the difference would be that one works and the other doesn't.
If you meant su -l, it still doesn't work by default on an Ubuntu box since the root account is locked and there's no password to enter.
There's no difference between the - and -l arguments. They're both variations on the same option. You actually included the line from the man page that tells us that in your question.
The difference between using the -, -l, or --login argument (they're all the same) and using no argument are mostly explained in the excerpt you included in your post. This part tells what it does without the argument:
For  backward compatibility, su defaults to not change the current directory and to only set the environment variables HOME and SHELL (plus USER and LOG‐
NAME if the target user is not root).  It is recommended to always use the --login option (instead of its shortcut -) to avoid  side  effects  caused  by
mixing environments.

Note that su isn't just for root. It doesn't stand for super user as it does with the sudo comment. It stands for substitute user and you can specify the user you want to use as an argument to run a command as that user


16.04 64bit Chromium and Opera don't have flash

You need to install Pepper Flash Plugin then restart your browser.

sudo apt-get install browser-plugin-freshplayer-pepperflash


Rename selection default was just for the name and now it's even for the extension

F2 hightlights only the name when you are not on list view mode. So that, in icon view and compact list, it must work.


Java / Eclipse issue: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not

I have an Ubuntu 64-bit system.

I had that error message when I tried to install Eclipse with Java 9 installed on my system.

I switched from Java 9 to Java 8 and Eclipse Neon installed just fine.

Here is how you switch Java versions= https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04


Clipboard manager with favorites feature?

I can recommend Parcellite as it is not only a very sound and at the same time lightweight Clipboard Manager, but you can also save your "favorites" in its Actions tab.

Go to Preferences > Actions, and then enter a label for your favorite item under the Action column, and then go to Command column to simply enter your favorite text preceded by the command parcellite (For example; Action: my email address Command: parcellite myname@mymailserver.com)

To use your favorite text, you'll only need to press Ctrl+Alt+A and then choose its label (e.g. "my email address") from the popup menu, followed by the usual Ctrl+V, and there you have your email address instantly pasted.


How do I boot Ubuntu Cloud images in KVM?

If you're following the documentation for "Local Hypervisor Natty onward", then you should be able to log in with ubuntu and passw0rd.

cloud-init in 12.04 images has a more straight forward way of providing customization data to images than the OVF data source that is described there.

For documentation on setting the password for 12.04 cloud images see:

https://help.ubuntu.com/community/UEC/Images#line-107

The cloud-init project is hosted on launchpad at:

https://launchpad.net/cloud-init

For more information on the cloud init project see the documentation at

http://cloudinit.readthedocs.org/en/latest/


Why is this text red when I check to see if a USB device is connected?

You can check the standard options that grep gets when it is executed as follows:

$ set | grep -i grep
GREP_OPTIONS='--color=auto '

Grep simply colors the seach term, so you can easily find it on your screen.

The problem you are referring to is entirely unrelated to the colorized output of grep.  Grep simply prints out lines from a file (or standard input) that match a certain search term (gtab). It does not indicate any error, it just helps you find text.


Ubuntu installation failed and left apt broken

I was able to fix this by following the same steps in the answer here: How do I restore the default repositories?


Open link in the already open browser instead of default

If you click on any link, it will open in the new tab of the default browser. There is no other solution. You can only copy the link, and  paste in the desired browser tab.


Interpret Windows symlinks as Linux symlinks

Assuming the ?? in the symlink target are literally ??, you could easily give the symlinks what they are asking for. Namely, just create a directory named /??/D: with sudo mkdir -p '/??/D:' (don't forget the single quotes to keep ? and : from being interpreted as special characters). Then do sudo mount -o bind /mnt/share '/??/D:' to make the contents of /mnt/share accessible also at /??/D:.

If this does what you want, you can make it permanent by adding this line to /etc/fstab:

/mnt/share /??/D: auto bind 0 0


In recent Ubuntu releases, domain name resolution is handled by systemd-resolvd, and 127.0.0.53 is only a stub listener created by systemd-resolvd. You can find out the actual DNS server that handles DNS queries by the command

$ systemd-resolve --status

Looks for the line that starts with DNS Servers.

You can learn more about systemd-resolvd from its manpage.


E: Syntax error /etc/apt/apt.conf.d/00aptitude:4: Extra junk at end of file

Each line in the 00aptitude file should end with a semicolon character.

Run the command man apt.conf from the terminal and under the DESCRIPTION and SYNTAX headings it says:

  apt.conf is the main configuration file for the APT suite of tools, all tools make use of the configuration file and a common command-line parser to provide a uniform environment.
  ...
  APT::Get::Assume-Yes "true";. The quotation marks and trailing semicolon are required.

To edit the 00aptitude file use the command:

sudo nano /etc/apt/apt.conf.d/00aptitude

Edit the 00aptitude file so that instead of:

Aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
Acquire::Languages "none"

It is changed so that it is:

Aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
Acquire::Languages "none";

The only thing you have to change is to add a semicolon character to the end of the second line.

Nano is very easy to use. The instructions for using nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.


How to display the missing output message while execute sudo service/systemctl on Ubuntu 16.04

What you can do is to write your own alias functions to do it. Simple alias woun't work because you need to get arguments from command line. That's why I wrote a functions with strange names, so they do not collapse with existing ones.

Here are mine ~/.aliases that are loaded in shell profile.

alias stop='__stp() { sudo systemctl stop "$1" && sudo systemctl status "$1" -n 2; }; __stp'
alias start='__str() { sudo systemctl start "$1" && sudo systemctl status "$1" -n 2; }; __str'
alias restart='__rst() { sudo systemctl restart "$1" && sudo systemctl status "$1" -n 2; }; __rst'
alias reload='__rld() { sudo systemctl reload "$1" && sudo systemctl status "$1" -n 2; }; __rld'
alias enable='__ebl() { sudo systemctl enable "$1" && sudo systemctl status "$1" -n 2; }; __ebl'
alias status='sudo systemctl status'

Then just run:

restart ssh

It outputs the next command systemctl status with additional argument -n 2 to show only last 2 lines from journal log file.


How Do I Get rid of Windows and having Ubuntu as main OS

I would backup my files and make a clean install.
Backup your hidden files in the home folder (they begin with a dot e.g. .mozilla) and copy them onto the new installed home folder to keep your current settings/profiles.


You would probably like to take a look at this article.


How does Ubuntu One sync two machines with identical file content?

Connect the first computer. It will sync with the cloud. Wait until it finishes, and then connect the other computer. It will recognize the files and not upload anything, but from them on, if you add, remove or change a file from one, the same will happen with the other.


How can I adjust the automatic brightness algorithm/granularity/polling rate so that it's less obvious and jumpy?

First get the source and build deps: (In "Software & Updates" make sure you have "Source Code" checked off.)

apt source gnome-settings-daemon
sudo apt build-dep gnome-settings-daemon

Then in plugins/power/gsd-power-manager.c, change the value of
GSD_AMBIENT_SMOOTH to a lower value.
I'm using 0.05f and it might be a bit too low.

Save changes:

cd gnome-settings-daemon-*
dpkg-source --commit

You will be asked to name the patch and write a summary file.

Then rebuild:

debuild

The "debuild" command may need to be installed via sudo apt install devscripts.

Then install:

sudo dpkg -i ../gnome-settings-daemon_*.deb


Just installed 18.04 in an HP 14s - wrong keyboard layout

Look into your /etc/default/keyboard, backup it and for a test change it to:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

Then reboot and look if something changed.

You could also change your keyboard settings by:

dpkg-reconfigure keyboard-configuration
service keyboard-setup restart

You could find model numbers and layouts by:

cat /usr/share/X11/xkb/rules/base.lst


Create a new document and rename it directly (in one step) in Ubuntu 18.04

I've been looking for a permanent solution for this problem, and I found out that the best solution is to change the File Manager:
Nautilus is the default File Manager for Ubuntu. However, in Ubuntu 18.04 release, it does not allow creating and renaming files in just one step. So if anyone wants that feature to get back, the solution is to install another File Manager, I recommend Nemo (very close to nautilus in appearance) or Dolphin (more features). Both of them are available for install via ubuntu-software (or gnome-software).


Problem While Installing Netbeans 7.3 On Ubuntu 12.10

You seem to be missing libxtst6... you should try

sudo apt-get install libxtst6

But its weird because openjdk-7-jre depends on it.


Try rebooting MAAS and then try again. 169.254.169.254 is the metadata IP from where cloud config is fetched.


Xdotool to automate moves in Epiphany (Boulderdash Clone)

Reducing your delays seems like the obvious answer. The default is 12ms and you've boosted that to 100ms for your arrow presses, without explaining why.

And instead of using keydown then keyup and having to worry about delays and all that jazz, just use key. This allows you to just chain keys together, like a boss:

xdotool key Down Down Down Right

If you find that's too quick, reintroduce your --delay but start from 12 and work up until it works.


https://stackoverflow.com/questions/110259/python-memory-profiler/110826

They suggest Heapy amongst others.


As you can see the package in your package manager, you should run the command below:

sudo apt-get remove master-pdf-editor


Argument list too long and copying to Samba Share

The problem is that the shell expands your /home/security/Brick/* with a long (too long) list of files before passing it to cp.

If you want to copy all the Brick directory maybe the most straightforward  thing would be:

cp -rn /home/security/Brick ~/.gvfs/"cam on atm-bak-01.local"/

using the "recursive" flag to cp. This will copy all the structure under Brick, too (subdirectories included).

One possibility is using a for loop:

for file in /home/security/Brick/*;
do
cp -n $file ~/.gvfs/"cam on atm-bak-01.local/Brick"
done

Or using find:

find /home/security/Brick/ -type f -exec cp -n {} ~/.gvfs/"cam on atm-bak-01.local/Brick" \;

In this command, -type f says to select files only (no directories), then for each file executes the command specified: {} is substituted by the file name, and \; is the semicolon needed to close the -exec clause, escaped otherwise the shell will interpret it (and remove).

The command after -exec could be whatever you want (for example, instead of cp -n you can use cp -av to copy in archive mode (including timestamps and propriety) and overwriting, or you can use other commands (but: you should understand shell escapes, globbing and quotation before, otherwise you can do a lot of harm --- see for example "learning the shell").

Find is a very powerful command --- it is worth to be learned well. I have found interesting tutorials here, here and here.

About doing a backup with cp -n:

Notice that the -n flag will not overwrite existing files, so if you do changes of a file in your local directory that was copied before, it will not be copied again... and you'll have in the backup the old version of it.

For that reason I recommend using a backup or sync utility, like Unison or rsync, to do this work. These utilities will just update the changed files, can minimize writes (and so network bandwidth), and are generally much safer. Your backup could be solved with rsync by simply saying:

rsync -azvv  /home/security/Brick   ~/.gvfs/"cam on atm-bak-01.local/Brick"

(take care to not add a final "/" at the end --- or rsync will create a subdirectory Brick/Brick. Yes, rsync is powerful and quite temperamental sometime.)

Unison has a nice graphical interface and will also tell you if there are conflicting changes in your repository --- so this would be my preferred option.


How to boot Ubuntu from SSD drive which cannot be selected as boot device?

In the BIOS both hard drives are there, but I can only choose to use the 500gb disk to boot somehow.

Your OEM system vendor Asus probably placed the 24GB SSD drive for caching purposes, e.g. Intel Smart Response. This could explain why you can't set it as a boot drive. I suffer from the same issue in my HP laptop with an mSATA SSD slot and HP's response to this is "this is intentional".

My suggestion is to use your regular hard drive as the initial boot device, but to install the whole Ubuntu OS on the SSD. To do this, perform a regular installation, but configure an advanced partition layout like this:

Create a small partition (say 200MB) on your regular HDD for /boot.
Put / on the SSD.
Make sure the bootloader (Grub) is installed on the hard drive.
Optionally use the rest of the free space of hard drive as another mount point (e.g. /data  or /home1)

This way your regular hard drive will only contain the kernel and initramfs for the initial boot stage, which is loaded within seconds. The speed in that is not significantly slower compared to an SSD due to only a few sequential reads in that stage. The kernel and initramfs will then move on to your / on the SSD and boot your system in about the same time as booting directly from SSD.

One downside of this approach is that your system will fail to boot even if just one of the drives fails.

1I would not recommend putting /home on the regular hard disk. Your home folder contains a lot of small files for which an SSD will help in speeding things up. I suggest to leave /home within /, use a separate /data for your hard disk and use symbolic links for folders with large files (e.g. /home/myusername/Music -> /data/Music.


Why shows netstat an entry for ipv6 although it 's already disabled?

The command you used disables IPv6 on the network interfaces. That way your system won't be able to communicate with the outside world using IPv6.

The kernel module for IPv6 will still be loaded, and very probably needs to be to avoid breaking things. A lot of software depends on system support for IPv6 (as you have seen).

In general, disabling IPv6 is a bad idea these days as larger and larger parts of the internet depend on it. But if you really need to disable it then I think you already did the best you can do.


When you open a program, Unity will either pop up a new icon on the launcher(dock) and/or add an arrow to an existing icon. Each icon is not an executable; it is a .desktop file. bamfdaemon helps this by determining whether an arrow needs to be added to an existing icon, or a new icon be popped up, along with other behaviors dependent on application identity.


No Bluetooth Adapters found on Ubuntu 16.04

So this is bizarre but it is now working despite the device not being detected on Ubuntu 16.04 earlier. After installing Windows 7 and enabling the device and seeing that it worked fine, I searched for details on the exact module now that I had the Windows name for it. Later I discovered that there was a change in bluez-utils from 14.04 to 14.10 that could have broken the device. (bluez went from 4.x to 5.x) I then installed Ubuntu 14.04 to confirm for myself that the device was working and it was. I then tried to install 16.10 and the device is still working so I am going to assume that getting it to switch on Ubuntu 14.04 or Windows 7 then installing later versions of Ubuntu makes it work.


Where to find geckodriver needed by Selenium Python package?

Find the latest release for your OS.

Extract it, and copy geckodriver to /usr/local/bin -- so if v0.11.1 was the most recent version, and you were on 64bit linux, you'd do this:

export GECKO_DRIVER_VERSION='v0.24.0'
wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
rm geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
chmod +x geckodriver
cp geckodriver /usr/local/bin/

Now your trial run should work.


MD5 of official Ubuntu downloads NEVER match

Linux iso files are pretty large; so an issue that may not affect a small file may corrupt the larger iso file. A torrent client should correctly download the iso and discard anything that gets corrupted.

Go to the alternate downloads on Ubuntu.com and download the .torrent file. It will open up in Transmission on Ubuntu and begin downloading the iso. Transmission verifies each piece it downloads, but if you want to be extra sure you can still check the MD5 from the terminal with md5sum ~/Downloads/ubuntu-14.04.1-desktop-amd64.iso after it finishes downloading and compare it to the hash here: https://help.ubuntu.com/community/UbuntuHashes

If you think your connection is the issue you can test for packet loss with http://www.pingtest.net/ . You will need to have the java plug-in for Firefox. Contact your ISP if you think things are not working correctly. They can come to your place and test the line to the ISP and fix signal loss issues.


Make sure you have the correct version of Dash to Dock installed, i.e., the version for Gnome Shell 3.34, which is the one used in Ubuntu 19.10.

You may then configure the dock using the configuration dialogs of Dash to Dock. Eventually, you can afterwards remove Dash to Dock and enable the Ubuntu Dock extension: the Ubuntu Dock extension, which is based on Dash to Dock, uses the same settings and will behave the same.

The plethora of options available in Dash to Dock are all available to Ubuntu Dock as well. Only, Ubuntu Dock does not expose these options to the user. Thus, alternatively, you can configure Ubuntu Dock directly using dconf-editor (not installed by default), This approach eliminates the need to install extra extensions.


What is the difference between upgrading and renewing?

well just read more

"Renewing the Installation without formating the partitons (in contrast to upgrading), will also keep the personal data and configurations under /home but will renew all system settings under /etc as well as the default set of installed packages. "


Ubuntu 12.10 ATI Driver 12.11 fails after compiz and xorg update

This is happening to lots of people.  Installation instructions can be found in my reply here: Black screen on boot after installing ati drivers


I had a same problem with my graphic card (ATI Radeon HD7650m). When i install ubuntu v 11.10/12.04/12.10, in software information i'm seeing the card as unknown device.

I tried update, all the steps I find on forums, tried to change the codes in driver of graphic but nothing...

So i install kubuntu and he find her immediately. i hope that help :)


How can I get Eye of Gnome to open each figure in a new window?

A simple loop could do the trick:

for i in set1*.png; do eog -n "$i" & done


GUI Tool to deny Standard users from Using CD-ROM and USBs?

you can configure a policy agent. Check the following links for USB policy agent:

http://www.linux-usb.org/usb-admin.html
http://www.linux-usb.org/policy.html

NOTE: this is not a GUI solution


I checked /etc/rsyslog.conf
And I found someone switched it with an unknown .conf file.
But the original .conf file was saved with a different name - /etc/rsyslog.conf.original

This had been done before I start using of my virtual server service. Yes I use virtual server service.

The service operator or administrator did this into the images they provide.
And I don't know why they do this. And I wonder why they do this.

Just with recovering to the original .conf file my problem is solved.

Thank you for your concern.


Running an executable with fixed execution-time and memory limit and getting exit-code

I'd recommend this nice tool, it'll limit CPU time or memory consumption:

https://github.com/pshved/timeout


As an alternative to dd, you might try using ddrescue which will try multiple times to read bad sectors.  The ddrescue program is included on many GNU/Linux live images, such as GParted Live.


/boot driver filling up due to kernels on 11.10 and unable to update

What I can guess is that you might to remove the old kernels. You can do this by

uname -r

Note down the current version of kernel

dpkg -l 'linux-image-*' | grep '^ii'

Note down the kernel version(s) (the numbers after the linux-image, ie x.y.z.-generic)
(Include "-generic too")

Then run this command to delete old kernels WARNING : DO NOT DELETE THE KERNEL WHOSE  VERSION YOU PREVIOUSLY NOTED DOWN IN "uname -r"

sudo apt-get purge linux-image-x.y.z-generic

(In my case it will be sudo apt-get purge linux-image-3.0.0.13 since linux-image-3.0.0.15 is the version I noted down in "uname -r")

Lastly update grub with the commands

sudo update-grub2

or

sudo update-grub

(Running both wont do any harm to the computer)

Hope this helped you.


Why doesnt the "Script" option show up on right clicking in the desktop in Ubuntu 12.10? How to make it appear?

I had the same problem in ubuntu 12.10 running Gnome nautilus 3.6.3

Scripts not showing in right click menu

Try and place your scripts in the
/home/username/.local/share/nautilus/scripts directory
Allow
script to be run by nautilus with the command sudo chmod +x
filename_of_script
Now Reboot to reload nautilus

This should enable scripts when right clicking on a folder or a file.

Create New File not showing in right click menu

open gedit with sudo gedit
when the blank document is open in gedit press "file" then "save as"
store the blank file in the /home/username/Template folder, save it as "Empty File"
Now Reboot to reload nautilus
This should enable "New Document" > "Empty file" when right clicking in folder/on desktop

I am trying to get scripts showing on desktop right click, if i manage i will post an update.

I Hope my answer helped you out


Error - I installed Ubuntu 64-bit on a 32-bit system

You cannot install a 64-bit OS on a 32-bit machine but you can install a 32-bit OS on a 64-bit machine. Yes, your earlier installation of a different type will be overwritten(i.e deleted).


Making screen brightness change smoother

you can also increase and decrease the brightness from present value to specified level.as you mentioned if you want to increase to 10% from current value of brightness then you can give this
xbacklight -inc 10

and to decrease 10% you can give this
xbacklight -dec 10

Source
Maybe you want to change the 10 to 5 or even 3, to have a slower transition, so use
xbacklight -inc 5

and
xbacklight -dec 5

To reassign the keyboard short cuts - using the GUI - follow this:
Open system settings, and click keyboard.

Click Shortcuts, then custom shortcuts.

Click [+] then type the following (ignore what I put in the image):

Brightness Up
 xbacklight -inc 5

Click disabled and press your chosen shortcut key:

And repeat for the brightness down.


Connect to Wifi instead of creating Hotspot on boot

Click the Network Manager icon and select 'Edit Connections.' Select your network and click 'Edit.' Under Mode, select 'Client.' Save and close.


How to disable lock screen based on which WIFI network I'm connected to?

You can use this shell script. Check this to get the info of your WiFi.
#!/bin/sh

trusted_essid="trusted-wifi-name"

while :
do
  current_essid=$(iwgetid -r)
  if [ "$trusted_essid" = "$current_essid" ]
  then
    gsettings set org.gnome.desktop.lockdown disable-lock-screen true
    echo 1
  else
    gsettings set org.gnome.desktop.lockdown disable-lock-screen false
    echo 2
  fi
  sleep 60
done

Edit this file as root:
sudo gedit /etc/network/interfaces

add under wlan0 (or your Wifi interface, ls /sys/class/net | grep -o "wl[^\t]\+"):
post-up sh /path/to/wifi-smartlock.sh


The feature you describe has been implemented in KDE Plasma 5.8, and is available "out-of-the-box" in that version. Unfortunately, Kubuntu 16.10 contains Plasma 5.7, so it does not have that feature. You will most likely have to wait until Kubuntu 17.04 to get that feature in the official Ubuntu packages.

If you are more adventurous, you can try the Kubuntu Backports PPA, which very recently (6 days ago at the time of writing) added KDE Plasma 5.8.4 packages. However, if you are just beginning under Linux, this may be a lot of things to learn at once, and there is a risk you screw up your install. Here is the announce (with minimal instructions) about that: http://www.kubuntu.org/news/kubuntu-and-linux-mint-doing-plasma-5-8-testing/


You need not to create a bridge to do that because VirtualBox does it for you.

Go to the VM settings network tab and make sure the first network adapter has the bridge option. That's enough to create the connectivity.

More of it, you can enable the remote desktop access (tab Display), if you want to connect the VM with RDP.

Make sure the VM has a valid IP address (it seems to be true yet), different from your host IP address. (And disable the bridge you created).


How do I set another search directory for wallpapers?

* EDIT - Second try -  and apologies immediately for all the terminal work - hopefully this should just be copying and pasting the highlighted entries*

the folder that holds the details of the gnome wallpapers is called /usr/share/gnome-background-properties/ubuntu-wallpapers.xml

You could edit that file to have wallpaper.../wallpaper sub-sections pointing to your new folder & wallpaper files

Below is a script amended from this forum entry which will regenerate the ubuntu-wallpapers.xml file automatically for a folder containing .png and .jpg files.

copy and paste the contents into a new text file called "ubuntu-wallpaper-generator"

Then execute the file with the syntax

sh ubuntu-wallpaper-generator <path to new wallpaper folder>

This will generate a file called ubuntu-wallpapers.xml in the same folder as where you are running this script.

Safely backup you current xml file i.e.

sudo cp /usr/share/gnome-background-properties/ubuntu-wallpapers.xml /usr/share/gnome-background-properties/ubuntu-wallpapers.xml.backup

the copy in the newly generated file

sudo cp ubuntu-wallpapers.xml /usr/share/gnome-background-properties/ubuntu-wallpapers.xml

Here is that script file I referred to:

#!/bin/bash
#
# This script will take all wallpapers in a given folder and
# make them available as "default" background in the "Change Background" gui
# frontend in Ubuntu.
#
################################################################################

#CONFIG_DIR="/usr/share/gnome-background-properties"
CONFIG_DIR="./"
XML_FILE="$CONFIG_DIR/ubuntu-wallpapers.xml"

if [ $# -ne 1 ]; then
   echo "*** syntax ubuntu-wallpaper-generator <path to wallpaper folder> ***"
   echo "*** for example ***"
   echo "*** ubuntu-wallpaper-generator /usr/share/backgrounds ***"
   exit 1
else
   WALLPAPER_DIR=$1
   echo "*** parameters passed: $1 ***"
fi

#### First check if we have write permissions to the share dirctory. ####
touch $CONFIG_DIR/testfile >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
   echo "**** No permissions to the desktop share directory. ****"
   echo "**** $CONFIG_DIR ****"
   echo "**** Procedure Terminated. ****"
   exit 1
else
   rm $CONFIG_DIR/testfile 2>/dev/null
fi

#### Show the script description message. ###
cat <<EOF

################################################################################
     This script makes all pictures in the $WALLPAPER_DIR
     directory available to all users defined on this system as their
     system-wide GNOME wallpapers.
################################################################################
EOF

#### Fail if the wallpaper directory does not exist. ####
if [ ! -d $WALLPAPER_DIR ]; then
    echo "**** The wallpaper directory \"$WALLPAPER_DIR\" does not exist. ****"
    echo "**** Precedure Terminated. ****"
    exit 1
fi

#### Count the number of jpg/jpeg/png images. ####
numfiles=`ls -1 $WALLPAPER_DIR/*.jpg WALLPAPER_DIR/*.jpeg WALLPAPER_DIR/*.png 2>/dev/null | wc -l`

#### If there are no image files there then exit. ####
if [ $numfiles -eq 0 ]; then
    echo "**** The wallpaper directory \"$WALLPAPER_DIR\" has no images. ****"
    echo "**** Precedure Terminated. ****"
    exit 1
fi

#### Now we create the XML file containing the images for backgrounds. ####
#### Start by creating the header in the XML file. ####
cat <<EOF > $XML_FILE
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
EOF

#### Add each file to the XML file. ####
#### Doing it this way makes sure files with spaces in their names are ####
#### handled properly.   (ls .... | while read fname; do)              ####
ls -1 $WALLPAPER_DIR/*.jpg $WALLPAPER_DIR/*.png $WALLPAPER_DIR/*.jpeg 2> /dev/null |
while read image_name; do
   echo "   Adding: `basename "$image_name"`."
   fname=`basename "$image_name"`
   fname="${fname%%\.*}"
   echo "  <wallpaper>"                          >> $XML_FILE
   echo "    <name>$fname</name>"                >> $XML_FILE
   echo "    <filename>$image_name</filename>"   >> $XML_FILE
   echo "    <options>stretched</options>"       >> $XML_FILE
   echo "    <pcolor>#c58357</pcolor>"           >> $XML_FILE
   echo "    <scolor>#c58357</scolor>"           >> $XML_FILE
   echo "    <shade_type>solid</shade_type>"     >> $XML_FILE
   echo "  </wallpaper>"                         >> $XML_FILE
done

#### Create the footer for the XML file. ####
echo "</wallpapers>"                             >> $XML_FILE

cat <<EOF
################################################################################
     You're almost done. copy the generated file ubuntu-wallpapers.xml to the
     folder /usr/shared/gnome-background-properties
     REMEMBER to backup the current ubuntu-wallpaper.xml in that folder first!
################################################################################

EOF


Lenovo T410 running Ubuntu 12.04 won't change brightness

Ok...read this carefully-

Restart your system, and when you get to the grub menu, dont press enter, but press e (to edit).

This would bring up your menu entry.

Append to the line with starts with linux (and looks like linux /boot/linux3.9............ (at the end of this line, leave a space and add) acpi_backlight=vendor

After this press F10 to boot.

Now try changing the brightness. If the above solution works, i will tell you how to make it permanent.


How to type accent grave without letter or alt in terminal?

The key you're looking for is sitting on the number row on my keyboard:

Left of 1
Above Tab
Under Escape


I encountered same problem, I was struggling for about past ten days or so.

Following fixed it for me:

sudo sh -c 'echo -n "elantech"> /sys/bus/serio/devices/serio1/protocol'

This command has to run at every reboot, as I noticed my scroll wasn't working, so I added it to cron (sudo crontab -e):

@reboot sudo sh -c 'echo -n "elantech"> /sys/bus/serio/devices/serio1/protocol'

Then run sudo -H gedit /etc/default/grub and add following line:

GRUB_CMDLINE_LINUX="psmouse.elantech_smbus=0"

Save the file & update grub using sudo update-grub.

That's it.


Need a CD Ripping program that allows manually editing track titles

I found this page on Tom's Hardware that might provide the solution you are looking for.

Some of the suggested applications on that page are:

  RipperX

  RipperX can rip audio CD tracks into WAV, MP3, OGG, or FLAC files. It uses LAME to encode to MP3, so be sure to also install LAME
  from your package manager in order to create MP3 files with RipperX.
  Since ripping and encoding are displayed as two separate processes in
  this app, you can actually keep the WAV files in the process of
  creating MP3s. RipperX also allows you to convert directly from a
  source WAV file to MP3, without a CD at all. Options include bit rate,
  variable bit rate quality, and encoder priority. ID3 tags, M3U
  playlists, and album sub-directories can also be created when ripping
  a CD. File and sub-directory names can be customized to any
  combination of artist, album, track number, song title, and year.
  xcfa (X Convert File Audio)

  .. Compression, quality, and bit rate for each format are
  independently customizable. File name format is also customizable, and
  there is an option to create single CUE files instead of individual
  tracks. Album covers and tags may also be added and edited. XCFA
  doubles as a file splitter, allowing for the cropping or removal of
  track sections. Even tag editing can be done within this application.
  XCFA is certainly a robust piece of audio file manipulation software,
  handling pretty much everything there is.
  Sound Juicer  (called
  Audio CD
  extractor)

  Extraction outputs include M4A, FLAC, OGG, MP2, MP3, WAV, and SPX. SoundJuicer not only names ripped tracks to a customizable
  variation of track number, title, and artist, but also creates
  appropriate folders in your music directory. This feature is really
  great for those of us who still prefer old school file/folder
  organization to the newer tag-based method.
  Asunder

  Asunder provides a simple interface for ripping tracks from audio
  CDs and converting them into digital audio files. Supported outputs
  include WAV, MP3, OGG, FLAC, WavPack, Musepack, Monkey's Audio, and
  ACC. Each output has a slider for quality, bit rate, and/or
  compression level. Naming formats of the album directory, playlist
  file, and file name are each customizable with options for artist,
  album, track number, year, and song title.


I solved the issue by installing obs from Ubuntu software center (snap version).


Grub not showing Windows 7 after Ubuntu 12.04 install

Boot into ubuntu and then do

sudo os-prober

If os prober is not installed, before executing above command install it by doing,

sudo apt-get install os-prober

and then run the first command.
If os prober shows that you have windows along side ubuntu then do,

sudo update-grub

and reboot. If os prober do not show windows then something is messed up with windows.


Press Ctrl+Alt+T to bring up a terminal and then use killall chromium-browser.

If that doesn't work you should be able to get to a TTY with Ctrl+Alt+F1. Use the killall command there and press Ctrl+Alt+F7 to get back.


sudo apt update error: "Release file is not yet valid"

Run:

sudo hwclock --hctosys

This command gets the latest time from your Windows machine’s RTC and sets the system time to that.


how do I disable a nic permanently in Ubuntu Desktop?

The solution seems to be, for something that survives reboot, is to uncheck "Connect automatically" on the Wired GUI screen, on the "Details" tab. I'm supposing the "Connection Profile" is what keeps track of this. Ubuntu online help does not seem to explain any of this well, or at least I can't find relevant documentation.


Change office file associations to MS Office 2010

To change file association, right click a file and choose Properties.

Once the new windows opens click on Open with to choose the application you want.  If the Application is not in the list click on Show other applications, to choose the right application, once done click on Set as default.  Once done click on close.


Desktop shortcuts getting corrupted in Ubuntu 14.04 LTS

I had the same problem and solved it myself, here is the way:

Go to search and type "disks"
open the app named disks
a window will open and it will show you your partitions
now browse the partition where your soured file lies (file or folder you wish to create the shortcut)
select that partition and click settings
click "edit mount options"
in the "mount options"window switch off the automatic mount options switch
check "mount at startup" and "show in user interface"
click ok
delete all the shortcuts and create them new
from now even if you restart your pc the shortcuts will remain


Ubuntu 12.04 - LG FlatronLED E1941 - Screen Resolution Issue

As a matter of fact, physical resolution of your monitor is 1366x768, the very first link in google proves this: http://budgetcomputer.co.nz/index.php?route=product/product&product_id=396

With LCD monitors, setting resolution above physical makes absolutely no sense. Whatever Win XP "sees" is a bug - actually, WinXP was created before LCD monitors became mainstream.


how to install ubuntu 12.04 with radeon tm hd 6470

Your laptop probably has the ability to switch from on-board graphics to the 6470M (which I believe I understood from what you posted).

So from my understanding your 6470M drivers work but the VGA port graphics do not?

Look in /var/log/jockey.log and tell us what you see. If nothing "impressive" shows up, follow this thread: http://ubuntuforums.org/showthread.php?t=1930450 . It is very detailed so take your time going through it.


How can I change wallpaper automatically?

The script worked when I tested in GNOME SHELL 3.36.6
[admin@ADMIN ~]$ gnome-shell --version
GNOME Shell 3.36.6
[admin@ADMIN ~]$

Here is the modified content under my $HOME/.profile file.
# start my custom script for setting random background wallpapers
if [ -f "$HOME/wp.sh" ] ; then
    bash $HOME/wp.sh &
fi

Here is the modified content under my $HOME/wp.sh file.
#!/bin/bash
# script to set random background wallpapers on my GNOME desktop
# set base path
export wallpaper_path=/home/admin/Pictures
shopt -s nullglob
# store all the image file names in wallpapers array
wallpapers=(
    $wallpaper_path/*.jpg
    $wallpaper_path/*.jpeg
    $wallpaper_path/*.png
    $wallpaper_path/*.bmp
    $wallpaper_path/*.svg
)
# get array size
wallpapers_size=${#wallpapers[*]}

# set wallpapers in incremental order
index=0
while [ $index -lt $wallpapers_size ]
do
    gsettings set org.gnome.desktop.background picture-uri ${wallpapers[$index]}
    # index is maxing out, so reset it
    if [ $(($index+1)) -eq $wallpapers_size ]
    then
        index=0
    else
        index=$(($index + 1))
    fi
    # keep the wallpaper for the specified time
    sleep 1m
done

Wallpapers changed at 1m interval as expected.


No boot option after installing ubuntu 12.04 inside windows xp and drive h: is also gone

You are missing Boot loader. Try boot-repair. More info about the app here: https://help.ubuntu.com/community/Boot-Repair


Problem with Ubuntu windows. Thick Color Noise border

If you get this after wakeup forn suspend, please check this question: Multicolor barcodes around windows and context menus


2 monitors mirrored - want extended and correct resolution

Okay, so here's some news I hate to break to you: You'll have to stay on versions that can work with the Catalyst drivers, because from my past experience, older AMD cards like to make issues with the open source drivers.


How do I disable mouse magnet on middle edge with multi monitors?

There is a setting for it in Displays:

You may still get the behaviour if you have a launcher on the right monitor, so use the "Launcher Placement" option to select having your launcher on only the left screen. The stickyness between the screens is required for it to be easy to retrieve the launcher there.

You might need to log out and back in (or restart) for the changes to take effect.


In IntelliJ from snap I can't select openJDK 11 from apt-get

Had the same issue on 18.04, 64 Bit, only to find out, that I did not install the JDK properly. The path was referring to the JRE instead. Did you check for the javac (!) executable in the bin directory ? Mine was not in the directory (/usr/lib/jvm/java-11-openjdk-amd64/bin).

I did a

apt-get update
apt-get install openjdk-11-jdk

After that IntelliJ recognized the JDK automatically. Hope that helps, good luck !


How can I create a startup script that starts various Rails-required programs?

I'm not great at such things, but here are some ideas on where to start looking.

Most of this is probably overkill for your situation, so concentrate on suggestions #2 and #4.  This is especially important if you need something running in the foreground, because the other two suggestions don't have an associated foreground.

Since you did mention the magic word, "server", the other two options may be worth considering as well.

1) When Linux boots it goes through one or more run levels to get running.  (What run level does what varies a bit from distro to distro.)  Each run level has a set of scripts that are executed when the run level starts.  The scripts themselves live in /etc/init.d.  Each run level has a directory /etc/rcx.d where x is the run level 0 - 6.  I think 3 is for normal up and running, but you'll have to check.

In each of these directories, you put symlinks to your scripts that are in /etc/init.d and you name them starting with a two digit number prefix.  When the run level starts, all the scripts in its directory are executed in order by the prefix numbers so that things happen in a predictable, orderly manner.  Add a link (with a high number prefix so it gets executed after everything else that's already there) to your script into rc3.d (or whatever the right run level is for your system).

If you want to get fancy, there's a file called skeleton in /etc/init.d that show you a bit about all the bells and whistles that are available. E.g.  You can write you script as a big case statement with a case for START, STOP, etc. and symlink it in the appropriate run levels to start your program and then shut it down when the system is shutting down.  If you do this, the symlink you add to the shutdown run levels should have a low numeric prefix so it gets done before everything else it may need has been shut down.

Look at the PATH notes in skeleton.  The paths you have available during run level changes are very restricted, so you don't have access to everything.

If you go this route, make backups and have a live CD, etc. ready in case you do something that breaks the boot sequence.

2) When bash starts up on your user (usually, once per session), it runs ~/.profile which is itself a bash script that can run whatever you want for your particular user.

When an individual bash shell is started (can happen many times per session), another script, ~/.bashrc is also executed.  You can run your script from either of these as appropriate.  It's a lot closer to what you normally would do in a terminal, so it's a lot easier and safer to do.

Since things run this way are associated with your user, they will terminate when you log out unless you do special things like using nohup in your scripts.

3) You can store your script somewhere in system land like /usr/bin or /usr/local/bin and set up cron to run it by adding an entry into either the system crontab or your user's crontab.

If your system stays up a lot, you should add a check in your script so it doesn't do anything extra if another instance of it is already running or has run since the last boot.

If you use a notebook or other system that gets turned off frequently, make sure anacron is installed and working.  Shortly after boot, it (over simplified) looks at cron activities to see if any were missed while the system was off and runs them.  Usually, scheduling things to run shortly after midnight simplifies things so that it's less likely something will get run twice in the same day.

4) If you use a gui desktop like kde or gnome, they have startup script utilities that will run things for you.  kde puts them in $HOME/.kde/Autostart.  You can put your script there.

The same considerations apply that were noted in suggestion #2.


Why is sudoers NOPASSWD option applying the exception to ROOT instead of specified user?

Your entry in /etc/sudoers means that you can run

sudo brightlight -i 20 -f /sys/class/backlight/amdgpu_bl0

without being asked for a password. It doesn't mean you can run

brightlight -i 20 -f /sys/class/backlight/amdgpu_bl0

without sudo.


How to prevent thunderbird gmail/IMAP from marking deleted/archived emails as read

I found the answer!

There is actually a bug report for this here but it's very old and hasn't been fixed yet :-(

Fortunately I found a work around: Use Keyconfig to setup a shortcut to move a message out of the inbox thus leaving it's read status unaltered.

Here are the steps:

Install keyconfig by downlaod from http://mozilla.dorando.at/keyconfig.xpi and install by going to Tools->Add-ons then click on the little config icon (at the top to the left of "Search all addons") and click "Install Addon From File..."
Restart Thunderbird and goto Tools->Keyconfig click "Add a new key"
Enter a name for your key e.g. "00_MyDelete" or something so you can find it. (keys are sorted alphabetically so the '00_' at the front makes your custom keys appear at the top ;-)
Now right-click on your LOCAL trash folder and select properties. Next copy the text shown in Location:

e.g. mailbox:///home/jesse/.thunderbird/7dtmd45f.default/Mail/Local Folders/Trash

Note: I tried using the gmail imap "All Mail" folder but for some unknown reason the messages would be moved and then instantly moved back? Perhaps because it was already there or something? It's strange because when I manually move the message it works as it should, but moving it programatically with keyconfig doesn't.
Back in the Keyconfig - Key Editor window enter the following (pasting in the location of your local trash folder which you just copied.)

MsgMoveMessage(GetMsgFolderFromUri('LOCATION OF YOUR LOCAL TRASH FOLDER'));

e.g. MsgMoveMessage(GetMsgFolderFromUri('mailbox:///home/jesse/.thunderbird/7dtmd45f.default/Mail/Local Folders/Trash'));

NOTE THE SINGLE QUOTES! It won't work without them ;-)
Click OK and then click in the small textbox to the left of the "Apply" button. Press the 'Del' key and Click "Apply".

Note: If a warning comes up about conflicts just OK it, well deal with those next.
Scroll down until you find the entry for "Delete Message". Select the entry and click "Dissable".
Don't worry about the entries for "Delete" or "Delete Event" you probably want to leave those alone.
Click close and your done! No need to restart.

P.S. I actually found this answer before posting the question above but wanted to share it. Obviously posting the question and then answering it isn't the best way to do this because I had to wait 10 hours before I could answer my own question :-/
What is the preferred way to post a howto?

Cheers :-)


Formatting Hard Drive before installing Ubuntu & some

I've read that on installation of Ubuntu we get an option of "use entire disk" - will this erase all the info on my hard drive (like
  formatting in DOS)?

Yes.

  My Windows installation files are pre-loaded on my hard drive. If i decide to go back to Windows (can't think of a reason why, but just in
  case :) will i still have Windows installation files if i use the
  option "use entire disk" installation for Ubuntu or is it safer to
  reinstall Windows (even though i won't be using it) and then run
  Ubuntu along side it?

According to me, it is safer to keep Windows for now. You can remove later, once you gain confidence.
If you use "use entire disk", it will format whole drive, then you will not be able to reinstall Windows from preserved installation on the hard disk.

  I'm currently using 64 bit Windows 7. Should i install 64 bit Ubuntu?

Doesn't matter. You can use either of them.


Error while installing AMD graphic drivers

Paste the following into a terminal

sudo nano /etc/share/ati/fglrx-install.log

Then install every package in the list by typing

sudo apt-get install (package-name)

Use the command for every individual package. If you are running 14.04 or 14.10 make sure to install using "Generate Distribution Specific Package" rather than "Install on X.org" because the driver isn't compatible with the newest version of X.org.


First, ifupdown package is deprecated and won't work anymore. So you would better avoid that.

Second, apparently you didn't understand what I wrote you before on my thread: the us of routing table.

As mentioned here, any given OS has only one possible gateway. same for router or any other devices. If you want multiple gateways, you need then a duplicate system because the metadata of any given network packages transmitted on the network can't mention multiple gateways. That's why we need different routing tables. And I don't see anywhere on your file a line with the creation of another routing table. That's why you don't have any acknowledgements of arriving packets on the second interface... simple as that. The packages are arriving, they are just not be acknowledged because they can't be.

If you look at my solution which I linked earlier, you clearly see the tables and so the system know what to create and how to create it. Simple as that. And I frankly don't see why you are resisting about it....

  routes:
   - to: 0.0.0.0/0
     via: 192.168.3.1
     metric: 100
     table: 101

That's a creation of a routing policy + the specific table attached to it.

  routing-policy:
   - from: 192.168.3.0/24
     table: 101

that's the creation of the rule who specifies the need to register all incoming packets and sending packets in that table.

Plus I would strongly advise you, to do a vector/table of your static addresses in place of a list. So more something like that [.../..,.../..,.../..]. Again, like in my example.


Python libraries are not updated, except in ipython

I don't know the cause, and I will be happy if someone can point it out, but I found a solution. Running

sudo python ez_setup.py

from ez_setup.py obtained here, magically solved the problem, and now python sees the updated libraries. No reinstallation was needed.


The question is old, but i came across the same error today.
I found out that the problem is produced by the ddclient startup script.
To get rid of the error you need to modify the line 7. from /etc/dhcp/dhclient-exit-hooks.d/ddclient and add quotation marks around the variable.

Present state:
[ $run_dhclient = "true" ] || exit 0

Should be:
[ "$run_dhclient" = "true" ] || exit 0


How to set French AZERTY keyboard layout in Xubuntu?

The layout named French (Azerty) was added in 16.10. One way to get it, if you are on 14.04 or 16.04, is to install the xkb-data package from this PPA:

https://launchpad.net/~gunnarhj/+archive/ubuntu/togo-kblayout

OTOH I think that the basic French layout actually is AZERTY as well.


As far I can understand from Conky Manager's source code it can install special prepared theme pack files (they are named *.cmtp.7z).

You can install such themes by pressing the corresponding button "Import Theme Pack (*.cmtp.7z)" on Conky Manager panel:

So you need to download such file from somewhere. I have tested theme named Arch Gotham from OpenDesktop and it installs normally on my Ubuntu MATE 18.04 LTS (I do not have Budgie, desktop is not a problem in current case) with conky-all and conky-manager from our previous Q&A.

Other way to install is to download *.cmtp.7z file, then drag it and drop it to the Conky Manager window.

As the result you will get the window shown below

and theme/widget will be added to the list and may be shown on desktop (if enabled):

Also you can check big theme collection Jesse_Supreme_conkys.cmtp.7z from Jesse Avalos.

Notes:
1. pre-installed themes are also in the *.cmtp.7z format (their archive is placed in /usr/share/conky-manager/themepacks/default-themes-2.1.cmtp.7z).
2. Conky Manager does not help to install themes from other archive types, but will show location of their conkyrc- and *.cmtheme-files. You should use some manual methods to install such themes (simple copy of contents to ~/.conky may work).


How to get language variables (Desktop folder name, Document folder name, etc..)

There is a tool called xdg-user-dir that retrieves user directories paths

documents_path=$(xdg-user-dir DOCUMENTS)
echo $documents_path

From the docs:

  xdg-user-dir looks up the current path for one of the special XDG user dirs.

  This command expects the name of an XDG user dir as argument. The possible names are:

  DESKTOP
  DOWNLOAD
  TEMPLATES
  PUBLICSHARE
  DOCUMENTS
  MUSIC
  PICTURES
  VIDEOS

I'm using Ubuntu 16.04, I don't really know if this is available in previous releases.


My Ubuntu VM gets a Kernel Panic UNLESS I start with Linux 5.4.0-58

I filed a bug about this issue:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-5.8/+bug/1913881
rappluk, please add your host hardware information to the bug. This affects my Ryzen 9 system, but an Intel Core i7 system is not affected.
As a workaround, you may select the 5.4 kernel through GRUB. Then the system works fine.


Old Flatpak version in Focal repo: no Chromium for me?

There is nothing to fear.
Official FlatPak setup guide https://flatpak.org/setup/Ubuntu/ lists the PPA.
So you have to open terminal and type:
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.chromium.Chromium

Note: I'm using Ubuntu MATE 18.04 LTS, so the PPA is also needed for me.


vsync option not displayed on nvidia-settings 384.90

My Thread from a year ago and updated a few times - EASY PEASY

Screen Tearing Finally SOLVED! 4 Easy Steps and reduce Choppiness Too! and add VSync !

https://ubuntuforums.org/showthread.php?t=2374405

Always Trying to help, Mark


Error location HDF5 libraries, earlier it was locating them just fine, i recently installed gcc7.2 environment? PS. error message and configure

Make sure that you have installed necessary HDF-related development packages

apt-cache policy libhdf4-dev libhdf5-dev

and if they are not installed, install them with:

sudo apt-get install libhdf4-dev libhdf5-dev


Can't install Ubuntu 18 because sda partitions not visible by installer

In the end I had to create a "new partition table" from gparted. I created a partition for windows (NTFS), another for ubuntu and a third as swap.
Installed Windows after ubuntu and it worked fine.


Suddenly can't set my resolution to 1440x900 (or any other wide screen res)

One way you might be able to get around this is to edit your xorg.conf file and force the other resolutions to be available.

The file normally lives at /etc/X11/xorg.conf.

First check to see if you have one. Then:

if you do, and you're using Maverick or later, but think you've never touched that file, make a backup of it (in case things go wrong) and then delete the file and restart (you may need to use sudo). Xorg in the latest versions of ubuntu can survive without one and will make up its own settings as best it can. If that doesn't work then put the backup back where you found it and edit it as below.

if you do, and you're using a more elderly version of ubuntu then skip the next step.
if you don't then you'll have to go and generate one. See this link:
Where is the X.org config file? How do I configure X there?

Once you have a file there are numerous tutorials on the web about how to edit it, but a good one is here: http://ubuntuforums.org/showthread.php?p=129379

If you add some lines about certain resolutions as per the link above, it should force X to use certain resolutions.

If that doesn't work however then the problem may not be with Xorg at all, but I'd try this first.


Why doesn't Ubuntu 12.04 recognize my Windows 7 partition?

The usual cause of the "missing partitions" problem is one of two things:

A damaged partition table -- On an MBR disk, my FixParts program can usually fix such problems. See the FixParts page for details on how to use it. It's usually just a matter of launching the program on the disk, typing p to verify that it's detected your partitions correctly, and then typing w to save the fixes.
Leftover motherboard-based software RAID data -- This can usually be fixed by typing sudo dmraid -E -r /dev/sda, IIRC, changing the device filename as necessary. You may also need to go into your firmware setup to disable RAID. Of course, if you're actually using RAID you should not do this!


What is the best way to uninstall Ububtu 13.04 from a PC dual booting 12.04?

From Ubuntu 12.04, Install gparted, running it, identifies Ubuntu 13.04 partition is installed, right click and delete partition.
Make sure your boot partition is Ubuntu 12.04 or MBR, before restart.


How do I select booting from a USB Flash drive to reinstall Kubuntu?

You need to tell your PC, before it gets to where it asks for "Run Kubuntu" vs  "Recovery mode" vs "advanced", et al., that you need to boot from the USB Flash drive. When it gets to those prompts, it has already decided you have not told it to boot from your USB flash drive, so you need to get in there quicker.

You have not told us what kind of machine you have, and different manufacturers have different keystrokes to select booting from something other than the internat drive. For example, with Lenovo laptops, you press the blue button to redirect away from the internal drive. Some machines use F6, F10, F11, or F12. Look up the instructions from the PC manufacturer to find what the have programmed into the BIOS, and use that to redirect booting to the USB flash drive.


Is it possible to make 16.04 hibernate on lid close?

You can easily do it.

Edit /etc/systemd/logind.conf and set

HandleLidSwitch=hibernate
HandleSuspendKey=hibernate

You can also use hybrid-sleep instead of hibernate.

Don't forget to remove the # in front of the above two lines and also to reboot.


Invalid Partition Data When Installing over W7

Hmm, does my guide I have for LVM not allowing for LV creation help?

https://schotty.com/General%20Linux/LVM_Cheatsheet/#troubleshooting

I have noticed that sometimes windows does something to the MBR that wigs linux out to a notable level.  What the above entails is essentially recreating the MBR disklabel.


How to map a local directory to a localhost URL using Apache?

Another approach is to: Maps URLs to filesystem locations via Apache's configuration. For this purpose you must use the directive Alias. The syntax is:

Alias [URL-path] file-path|directory-path

Please note that mod_alias is required, but it comes with Apache2 by default. You can check if it is installed through:

sudo apache2ctl -M | grep alias

Alias can be used for directories and for files. Also it can be used at both levels:

Server-level (in /etc/apache2/apache2.conf or in /etc/apache2/conf-avaliable/myAlias.conf) - the alias will be available for each active Virtualhost;
VHost-level (in /etc/apache2/sites-avaliable/someVH.conf; in between <VirtualHost > tags) - the alias will be available only for the current VirtualHost.

  Note that you may need to specify additional <Directory> sections
  which cover the destination of aliases. Aliasing occurs before
  <Directory> sections are checked, so only the destination of aliases
  are affected.

  In particular, if you are creating an Alias to a directory outside of
  your DocumentRoot, you may need to explicitly permit access to the
  target directory.

Here you are a list of some pros and cons of the two approaches: Alias and SymLinks. Also check this comment.

Example 1 : Alias at VHost-level

Let's assume you want to make an Alias at VirtualHost-level and your VH configuration file is /etc/apache2/sites-available/000-default.conf. In this case the configuration file should looks something like this:

<VirtualHost *:80>

    # other VirtualHost directives

    Alias /foobar /home/znorg/foobar
    <Directory /home/znorg/foobar>
        Require all granted
    </Directory>

</VirtualHost>

Don't forget to restart (or reload) the server:

sudo systemctl restart apache2.service

Example 2 : Alias at Server-level

Let's assume you want to make an Alias at Server-level and you don't want to touch apache2.conf. In this case you have to create and enable an additional configuration file. In our example this is foobarAlias.conf, which must be placed in the directory /etc/apache2/conf-available/.

You can create this file through (use ctrl+o for save and ctrl+x for exit):

sudo nano /etc/apache2/conf-available/foobarAlias.conf

And its content should looks something like this:

Alias /foobar /home/znorg/foobar
<Directory /home/znorg/foobar>
    Require all granted
</Directory>

Don't forget to enable the new configuration and restart (or reload) the server:

sudo a2enconf foobarAlias && sudo systemctl restart apache2.service


How to replace Ubuntu with Windows 10 without cloud backup or losing any data

Transfer all data you need from ubuntu to usb stick formatted in FAT32 (to use with any OS) ==> install windows ==> copy data from usb->windows;
Make separate partition in FAT32 and copy data there. Install windows and do not touch that partition. Windows should see this partition as dick D:\ of smthg like that;
Make FTP server in your local network for backup data.


Ubuntu doesn't restart, but logs-out when restart button is pressed

Please check out this post, addressing the same issue more alike:

"Shutdown" or "Restart" logs out

Greets,
Dafalgor.


Is it reasonable to use Skype for Linux Beta?

Skype 4.3 will probably stop working soon. Microsoft already extended its life once ;-). So I am not quite sure this will happen in the beginning of July this time.

You can install the deb. A repo will be connected automatically, so you will get updates.

You can install it in parallel with the existing Skype 4.3.

Beware that the beta is incompatible with Skype for Linux 4.3. You will not be able to connect people using the old Skype version on Linux.

Regarding how reasonable it is, it is up to you and opinion based.

Things don't "break" on GNOME. I am using Skype 5.x on unity, gnome and xfce.


ImportError: No module named context_processors

Setting.py for django1.8:- in TEMPLATES

            'django.template.context_processors.debug',
            'django.template.context_processors.request',
            'django.contrib.auth.context_processors.auth',
            'django.contrib.messages.context_processors.messages',
            'django.core.context_processors.i18n',
            'django.core.context_processors.media',
            'django.core.context_processors.static',
            'django.core.context_processors.tz',

I got the problem following changes should be done in setting .py file

Setting.py for django1.10:- in TEMPLATES

            'django.contrib.auth.context_processors.auth',
            'django.template.context_processors.debug',
            'django.template.context_processors.i18n',
            'django.template.context_processors.media',
            'django.template.context_processors.static',
            'django.template.context_processors.tz',
            'django.contrib.messages.context_processors.messages',

and change in views.py :-

Version 1.8 code :-

from django.core.context_processors import csrf
from django.core.context_processors import csrf

version 1.10 code:-

from django.views.decorators import csrf
from django.views.decorators.csrf import csrf_protect


Ubuntu 19.04 how to add shared drive to google drive

This is currently (Q3 2019) not possible without additional (non-free or non-oss) software.

There are open issues on Gnome's GitLab issue tracker:

https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/6
https://gitlab.gnome.org/GNOME/gvfs/issues/377
https://gitlab.gnome.org/GNOME/libgdata/issues/25

as well as on ODrives Github issue tracker:

https://github.com/liberodark/ODrive/issues/44

At least insync (commercial) claims to give offline access to Google's Shared Drives for flexible and productive workflows. There may be support in other commercial offerings.


Series of odd issues with mounting SD cards and USB drives

I think the changed behavior that you notice concerning SD cards and USB drives are caused by an update of the system for automatic mounting.

I have no other general solution than what you are already using: mount and unmount command lines. It may help to create shellscripts or aliases to make things more convenient.

If you want help with some specific detail, please tell me, and will try to help. For example, what partition table (MSDOS or GPT) and file systems are you using? You can try with GPT and the flag msftdata on the partition(s). It might help auto mounting also in your case.


"Unknown option "--enable-libfaad" ERROR: libfaac not found" while configuring ffmpeg

Well, install libfaac first. It seems there was an error doing so. Make sure apt-get install libfaac-dev works.

The proper instructions for installing FFmpeg and x264 are here.

sudo apt-get update
sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \
  libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
  libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
  libxfixes-dev texi2html yasm zlib1g-dev

Then, for x264:

cd
git clone git://git.videolan.org/x264
cd x264
./configure --enable-static
make
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
  awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
  --fstrans=no --default

And for FFmpeg:

cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
  --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis \
  --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
  --deldoc=yes --fstrans=no --default
hash x264 ffmpeg ffplay ffprobe

That's it — filters should be automatically included.


No Wifi Adapter Found Error Ubuntu 20.04

I can't add a comment because I'm don't have 50 reputation. I was having a similar issue as Masha. The issue began when my system was updated to linux kernel 5.8. When I booted to linux kernel 5.4 there were no WIFI problems.
Masha can you show the output of the following command: uname -r
If your output displays something like 5.8.0-58-generic.
Try rebooting the PC and when you are on GRUB go to "advance ubuntu options for ubuntu" press enter and there will be 2 options:
Ubuntu, with linux kernel 5.4
Ubuntu, with linux kernel 5.8
Select Ubuntu, with linux kernel 5.4, press enter, once the OS boots up check if your WIFI problems persist.


Is it still possible to dual-boot Ubuntu Touch on Android?

There is no supported method of dual booting Ubuntu Touch, no. Also, your stated device is not supported. See the list of supported devices.


*-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 15
       serial: d8:cb:8a:ed:18:4f
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.178.20 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:16 ioport:d000(size=256) memory:df204000-df204fff memory:df200000-df203fff
  *-network
       description: Wireless interface
       product: AR9287 Wireless Network Adapter (PCI-Express)
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 01
       serial: f4:f2:6d:c7:05:f1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=5.4.0-33-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:18 memory:df100000-df10ffff

/etc/network/interfaces: Bestand of map bestaat niet ( don't exsist )

This is the network config written by 'subiquity'

network:
  version: 2
  renderer: NetworkManager


Ubuntu14.04 LTS Duplicated Applications in /usr/share/applications

They have the same name, but the different Command (found by right-click, in properties). One for gnome-control-center-applicationname, the other for unity-control-center-applicationname. And the name in the Dash is direct to gnome. Don know which one is better, I will delete the unity-control-center, which seems not in use... Thanks!


You can fix your problem with the graphics driver from the black screen. The following five topics are useful things to know about how to solve a blank screen problem that occurred after installing the AMD graphics driver in Ubuntu 14.10.

To bring up a text-only console use the keyboard combination Ctrl+Alt+F3 and then you will get a text-only console which shows you a login prompt. Two other useful things to know about the console are: the keyboard combination Ctrl+Alt+F7 to move away from the console and the command sudo reboot to reboot the computer.
To uninstall the proprietary graphics driver (if it was downloaded from the official AMD website) from a text-only console, login and run the command: sudo sh /usr/share/ati/fglrx-uninstall.sh and reboot the computer. Removing Catalyst/fglrx says if fglrx-uninstall.sh doesn't exist use: sudo apt-get purge fglrx* and reboot to uninstall the graphics driver from the AMD website manually. The same command sudo apt-get purge fglrx* is also used to uninstall the proprietary AMD graphics driver if it was installed from the Ubuntu repositories.
To start the Additional Drivers utility from the desktop environment search for Additional Drivers in the Dash and click the Additional Drivers icon.
There is also a text-only terminal program to show the available graphics driver packages. From the terminal or from the console run: ubuntu-drivers devices. This command will often also identify the recommended proprietary graphics driver for your system. Wait for at least a minute after entering the command for the operating system to scan your hardware.
AMD Catalyst Drivers 14.9 needs kernel-headers on 14.10, although it is missing a version for Utopic. This is another reason to choose a proprietary graphics driver from the Ubuntu repositories instead of downloading it from the official AMD website.

Hopefully some of these tips will help you to get this issue sorted out. In Ubuntu everything you need to do to install, uninstall or get information about a graphics driver can be done from a terminal or from a text-only console, so if you make a mistake you can fix it, even if you can't login to your graphical desktop environment.


After update, Ubuntu changed location of internal HD to an external media

Normally the disk boot order can be defined in BIOS setting and in your case the SSD is getting booted with out any issues. Hence for the remaning two disks, I suggest you to define the mount path for each disk in fstab. Once the details are entered in fstab, though machine restarts the disk will be pointed to the mount point with out any issues.

  File Location : /etc/fstab


With the right configuration Gimp can replace Photoshop while Scribus could replace In-design. You probably have to train a bit, but after that you should be able to use them.

You can both install through apt-get packet manager:

sudo apt-get update
sudo apt-get install gimp scribus


canon MB2720 scanner works with 16.04 but not with 18.04

I found a simple workaround:  turn the printer off and on again.    After that, scangearmp2 seems to find the Canon.


WebGL painfully slow on Ubuntu 20.04 LTS

Wow. Fixed it super easily;

Type chrome://flags in the address bar
Press Ctrl + f and type ” Rendering list “, “Override
software rendering list” should come up, enable it.
Also check "hardware exeleration" in your chrome settings.
Restart your browser (console; killall chrome)

Enjoy FishGL


How to use YUMI to create a USB with persistence?

YUMI Persistence
Persistence for Ubuntu installs in YUMI is step 4 of the installation procedure as shown below.
BIOS/UEFI mode YUMI persistence is limited to 4GB.
BIOS only mode YUMI persistence is unlimited.


rename is the perfect command for file renaming :) It has wide range of options than mv and can works with regular expressions too. In your case the following syntax must do the job:

rename 's/\.jpg\.jpg$/.jpg/' *.jpg.jpg

Explanation:

the expression s/searched/replace/ means substiture the searched expression with the replace string.
\.jpg\.jpg$ will match to any line that ends $ with .jpg.jpg, where the back slashes will escape the special meaning of the dot within the regex.
*.jpg.jpg will be expanded by the shell as list of all files that ends with .jpg.jpg within the current directory.

If the command doesn't exist at your system, you need to install it:

sudo apt update && sudo apt install rename


how to get 2 epoch time value in varibale

Assign the output of the command to a variable:

diff=$(date -d @$(( $(date -d "`date -d@epochtime2`" +%s) - $(date -d "`date -d@epochtime1`" +%s) )) -u +'%H:%M:%Sa')
echo $diff


How to move files out of subdirectories with given extension recursively to a destination-folder?

Use a glob pattern with -name option of find to indicate the desired pattern, *.txt in your case:

find . -type f -name '*.txt' -exec mv -t /destination {} +

Of course, replace /destination with the actual destination directory.

Notes:

You don't need to spawn xargs and an anonymous pipe, use the mv logic within the -exec predicate of find
find ... -exec handles all kind of possible filenames and ARG_MAX as well
GNU mv (default in Ubuntu) has -t to take a destination directory, so that you can leverage the + argument of -exec to send all files in single run of mv (or at least minimal runs if ARG_MAX is triggered in the process)


I also had this problem and found that I was using the rather old xfce4-volumed rather than its modern replacement, xfce4-pulseaudio-plugin. I removed the old program and installed the new one (sudo apt install xfce4-pulseaudio-plugin), then I added the PulseAudio Panel Plugin to one of my XFCE4 panels: Right-click on a border or separator, go to Panel, then Add New Items. Search for "pulse" and double-click on the PulseAudio Plugin. (See left window in screenshot.)

Right-click on the volume icon you just added to your panel and go to Properties (see right window in screenshot). Ensure "Enable Keyboard shortcuts for volume control" is checked. Now click Run Audio Mixer… to launch pavucontrol (you may need to sudo apt install pavucontrol first).

Click on the Output Devices tab and enlarge the window so all of your devices are visible without needing to scroll. Now press your keyboard's volume keys ( and ) a bunch. You should see one of those sliders start moving left and right. That means everything works, but the system doesn't know which speaker to control (Pulseaudio doesn't have a "Master" channel the way Alsa does).

Now, get to the command line and run pactl list short sinks. You'll see an indexed list of your output devices ("sinks"). Select the one you want, say 3, and then set it to be the default with pacmd set-default-sink 3.

Now tinker with your keyboard's  and  keys some more. You should see the desired slider moving in pavucontrol, and if you're playing some music, you should hear the difference.


Python2.7 not working in 18.04, python3 is installed

Python 2 is no longer installed by default in fresh installations of Ubuntu 18.04 and later. Don't remove python3 from Ubuntu 18.04 and later or else Ubuntu Software, the terminal and many other apps that are installed by default will stop working. If you removed Python 3 and now Ubuntu Software, terminal and other applications don't work follow the instructions in this answer to reinstall it and get all applications working again.

To install Python 2.7 in Ubuntu 18.04 and later open the terminal and type:

sudo apt install python2.7

To start the Python 2.7 interpreter run this command:

python2.7

To start the Python 3 interpreter run this command:

python3

Either way the Python interpreter will show a version message when it is started that shows what version of Python you are running.


X won't start unless I do Ctrl-C about three times after running startx

I fixed it by deleting log file:

rm ~/.local/share/xorg/Xorg.1.log

After that, no more doing Ctrl+C to make it start.


Dual Monitor Issue - Motherboard output goes blank upon login screen

I solved the issue by editing xorg.conf.
There I added additional sections for device, screen, and monitor. The modified sections, related to display settings look like following now:
Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Philips"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "intel"
    VendorName     "Intel Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


The simplest way is to run:

sudo !!

This will run the last command but as super user.

Source.


HP MicroServer - HPE Smart Array E208i-p SR Gen 10

E208 (and P408 and P816) use the SmartPQI Drivers from MicroSemi (used to be PMC Sierra).
These drivers were formerly called hpsa (HP Smart Array) and then before that CCISS (Compaq Computers Inc Smart Storage).

My guess is the drivers included in 16 vs 18 are different and the 16 drivers are too old for the Firmware you have in that machine.

If you can, see if these work:

https://storage.microsemi.com/en-us/downloads/ubuntu/ubuntu_16/productid=aha-2100-4i4e&dn=microsemi+adaptec+smarthba+2100-4i4e.php


By default (on my box, it can vary by distro and version) I think the keyboard shortcut is Super+M - this can be set in Keyboard Settings under shortcuts:

You can also open it by moving the mouse to the bottom of the screen, and then push (as though you are trying to move the mouse off the screen) and it should show. (I actually find this a problem as it opens all the time so use this extension to stop it).

Note that with Gnome 3.16+ this behaviour I think has been changed so that notifications show in the calendar etc: https://help.gnome.org/misc/release-notes/3.16/.


How to wrap text in a cell in LibreOffice Calc

An image is worth a thousand words… so I got 2 thousand words (Plus change) right here:

Select in the Menu: Format → Cells…

Select in the Format Cells window: Alignment Tab

Select Wrap Text Automatically from the Properties section.

The end result will be something similar to this:

Note that, at least up to LibreOffice 4.0, this option only works on cells that I written in after the option is activated. It will not automatically wrap cells created before.1 See the following image:

The cell above was written before the option was activated. The bottom cell was written after the option was activated.

1 For those wanting to wrap all of their already existing cells in a spreadsheet, simply execute Ctrl+A, following by Ctrl+C, and finally Ctrl+V.


x.org customisation works in GDM but not in user session

It turns out that the Gnome Setting Daemon Mouse plugin is overriding the settings from xorg. There is a bug filed about this behaviour https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1363669

The workaround is to disable the mouse plugin:

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


Why does everything take so long to open?

Might be an /etc/hosts misconfiguration: https://bugs.launchpad.net/ubuntu/+bug/94048


Unable to install GRUB in /dev/sda for dual boot with windows 7

Please notice that installing an operating system is risky, so backup everything, that you cannot afford to lose before you start (or continue).

You should use Windows to shrink the Windows partition and create unallocated drive space. After that you should reboot Windows and let it adjust to the new size of its partition.

Then you should boot from the Ubuntu boot drive and let the Ubuntu installer use the unallocated drive space for Ubuntu (or if you know what to do, to use gparted and create partitions for Ubuntu, and then start the Ubuntu installer).

If you let Windows create partitions, it might (will probably) create dynamic partitions, which cannot be used by linux (and Ubuntu is a linux distro). If this is the case, you can remove this new partition (these new partitions), but be careful! Do not destroy what belongs to Windows.


Summarizing from comments:

So, the screen shows that the boot process got stuck when starting a service pwrstatd.
As you can ssh too the box, I expect that the other virtual consoles are working normal (Ctrl+Alt+F2 etc).

They would show a text mode login screen. When logged in, the GUI can be started:
How do I restart a Unity session from the terminal?

The GUI is installed -  I think it would be started at the end of the init scripts.

But that startup of pwrstatd hangs, so they never reach the end.

The name suggests that is is about power statistics, and it seems to be not part of ubuntu - maybe it can just be removed, if not fixed?


apt update shows available packages, but full-upgrade shows none upgraded

sudo apt full-upgrade dont does the same thing as sudo apt dist-upgrade
sudo apt list --upgradable -a shows a proposed update because you have selected pre-released updates in the Software Properties App.
If you want to install the update, simply run this:

sudo apt update
sudo apt dist-upgrade

If you dont want to install the pre-released packages go with Sotware Properties App to uncheck a box:

Get more information about apt upgrade options:

Read apt-get man page

apt-get upgrade actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This is why you first want to update.
apt-get dist-upgrade, in addition to performing the function of apt-get upgrade, also intelligently handles changing dependencies with new versions of packages and will attempt to upgrade the most important packages at the expense of less important ones if necessary. Thus, the apt-get dist-upgrade command may actually remove some packages in rare but necessary instances.
apt full-upgrade
full-upgrade performs the function of upgrade but may also remove
installed packages if that is required in order to resolve a
package conflict.

Also on this post: https://askubuntu.com/a/81594/77093


Need help connecting to Internet/WiFi on Ubuntu 14.04 [Dell Latitude 131L]

NIC Solution for Dell Latitude E4200
Running Ubuntu 14.04.3

In short:

Apply updates
Go to System Settings
Software Updates
Select "Additional Drivers"
Select "Using Broadcom 801.11 Linux..." Under Broadcom Corp Wireless 1397..
Reboot

and Voilà: it works!


I had the same problem. After installing skype 4 downloaded from skype website, problem solved.
Before I have followed this how-to: http://community.linuxmint.com/tutorial/view/219, but I'm not sure if it's related.


Bluetooth only available after restart on Kubuntu 18.04

I tried various things like go into BIOS, turn off WiFi and Bluetooth, restart, turn them on and boot into the system; reload Bluetooth services; edit some configuration files, etc.
But what helps in my case is to tell the kernel to reload the btusb module.:

sudo modprobe -r btusb
sudo modprobe btusb


GCC is showing "pow" as an undefined directory

Like so if your program name is main.c and your compiler is gcc. You open the terminal and write gcc main.c -o main -lm


ubuntu LAMP server can't create new .conf file and configure

So to do that I just removed the folder and removed the projects.local.conf file from /etc/apache2/sites-available.

You removed the configuration file, but did not disable the site:

sudo a2dissite projects.local
# or
sudo rm /etc/apache2/sites-enabled/projects.local.conf


Lenovo T510 taking too long to boot. (Ubuntu Gnome)

It could be an error in the swap configuration. I had a swap parition configured in /etc/fstab but the partition did not exist. I created a small swapfile instead and the system is booting fine now. The boot will pause at random points when the system is waiting for swap to become available.


Can't access unallocated old internal HDD on Ubuntu 12.04

If I understood correctly:

160GB(149GB) HDD contains important data.

It appears that this disk does not contain a valid MS-DOS partition.

How that happened is for now beyond me, but first and foremost
DO NOT proceed with any operation that will write anything to disk.

And before this question progress to "How to recover files from disk without valid partition?" I have to ask: Do you have a backup of your important files?


Ubuntu 12.10 - Problems with secondary monitor on left.

I can't offer a solution, but rather an explanation and some workarounds.

Explanation

This problem is caused because window positions are stored as positive coordinates from the top-left display.

The software doesn't consider any of your monitors to be "secondary", but the top-left display is kind of "primary" because its top-left corner is used as the origin for window coordinates.

When you add or remove a display (by connecting/disconnecting it or turning it on/off) above or to the left of your laptop screen you are changing the origin of the window coordinate system and this will cause all your windows to move because in Ubuntu, sadly, the windows retain their absolute top-left coordinates regardless of display changes.

Workarounds

Rather than having to move your windows before you connect/disconnect your external display, you can find them afterwards by pressing Super+S to show your workspaces. This is slightly less annoying.
Instead of aligning your external monitor to the left (which causes the coordinate system origin to move and the windows to change screen) you could keep it physically to the left, but aligned below in the display settings. This is still "wrong" but I find it less mentally jarring to have the "secondary" screen considered "below" than in the opposite direction to where it physically is.

Hopefully in the future there will be a fix to ensure windows' positions are updated during a display change so that they remain on the same physical display afterwards.


Old SSH server version running after upgrade

This is the classic I-want-LTS-but-I-don't-want-LTS logic trap.

One purpose of an Ubuntu LTS is to provide you stability. Ubuntu does that by not incrementing software versions. When you decide to use an LTS, you are locking yourself into those versions without changes for two years.

(If that's not what you want, then don't use an LTS.)

BUT there's one tiny exception: Security updates. The Ubuntu Security Team issues security updates without bumping to the next upstream release (which would violate LTS, of course). Instead, they patch the source code.

So when a vulnerability in OpenSSH 7.2 is discovered, two things happen:

The OpenSSH website announces that everyone should immediately upgrade to new OpenSSH 7.3
However, the Ubuntu Security Team pushes OpenSSH 7.2p2-4ubuntu2.2 to you.

From a security perspective, they are identical - all the same vulnerabilities are closed in both. Your security auditor just doesn't realize it.

You have three choices:

Stick with LTS: You can realize that the auditor is merely misinformed, do a bit of research on the Ubuntu Security Team, and ultimately do nothing...because no additional security action is actually necessary.
Follow the Auditor: You can jump off LTS to the normal 6-month releases of Ubuntu. This may mean a lot of extra work every six months if a release-upgrade changes your workflow or production systems.
Build a Frankensystem: It's the worst of both worlds, riskier, and harder to maintain. You can try to install newer versions of OpenSSH from PPAs or newer releases of Ubuntu onto your older LTS. Might break your system, might not. Might break future upgrades and security updates, might not.


How do I copy a package from Debian to my PPA?

You do need to rebuild the source package locally before uploading in order to adjust the change log and regenerate the changes file. Though since backporting a package is a pretty common task, this has been scripted. Check out the backportpackage  command ubuntu-dev-tools  package.

To backport a package from Debian, simply provide the target distro series, PPA, and the dsc file for the package:

backportpackage -d trusty -u ppa:gourmet/ppa http://ftp.de.debian.org/debian/pool/main/g/gourmet/gourmet_0.17.3-1.dsc

It's even simpler to backport a package from one Ubuntu release to another since you don't need to find the dsc file. Let's say we want to backport from utopic to trusty:

backportpackage -s utopic -d trusty -u ppa:gourmet/ppa gourmet


Can you Link *Hard or Soft* to a directory and change the names of the files linked

Ok, as you seem to have some trouble understanding links I'll start with a quick explanation:

Usually (depending on disk format) a file consists of two parts:

On part holds the actual content of the file. It is anywhere on the disk.
The other part is what you can see with any file explorer. This part does not hold any content but the location of the content on the disk. So this part is something like an entry-point to the actual file, which is anywhere else on your disk. (example: this is anyhow like an URL: a piece of information that points to the real content)

This only works inside one file system: There is no chance of having the second part pointing to another hard drive/partition or anything similar.
This is the reason why hard links can only be set inside one partition/hard drive.

What are hard links?

As explained above a file consists of two parts. A hard link is just another second part: The content stays always the same; but you have two entry points. So two files in your file explorer point to the exact same location on your disk. This is the reason why there is no "original file" anymore; they both are the same file. And hard-links can't be set to directories. Hard links are anyhow outdated. There are sometimes situations where you have to use those but they have some disadvantages that soft links don't have.

What are soft links?

Soft links are also called symbolic links or sym-links. They can be set to directories and even other partitions/hard drives! These are files with one purpose: Pointing to another file. But unlike hard links they are pointing not to the "content part" of the file but to the entry point. So the original file is still the unique original file but there is another file that points to it. This is the reason why soft links can be broken: they can point to a file that doesn't exist (anymore).

So the thing that you are looking for are soft links. You have two directories named /Directory/RealTorrentFile and /SymlinkedDirectory. You want to move RealTorrentFile from /Directory to /SymlinkedDirectory. (It's always a good idea to stop the torrent before you go on).

First move RealTorrentFile to /SymlinkedDirectory and rename it as you like:

mv -i /Directory/RealTorrentFile /SymlinkedDirectory/ChangedNameTorrentFileOrAnyOtherName

Then create a soft link in the origianl directory pointing to the new directory with the renamed file:

ln -s /SymlinkedDirectory/ChangedNameTorrentFileOrAnyOtherName /Directory/RealTorrentFile

Be aware that RealTorrentFile has to have the same name as the original torrent file. Otherwise your torrent would be very surprised that there is another file :)

So that's already it!
I hope everything got a little clearer about soft and hard links. If you have any further questions feel free to ask!


How to reinstall Grub on Ubuntu 20.04 installed on external hard disk

You can use repair boot, it has an option call : "boot reinstall" and it use a graphical interface or you can use command line using grub wiki


I found a freedesktop.org mailing list post from Tom Gundersen in August 2014 that answers my question, at least as of the time it was written:

  > Is there a way to force a DHCPv4 release/renew with systemd-networkd?

  We don't currently allow dynamic interaction with networkd, but you
  can force renew the release by either restarting networkd or
  unplugging/replugging the cable (or switching your wifi off/on if
  that's what you are using).

  -t

So apparently if you do one of these two things, systemd-networkd will renew your DHCP lease.


Sudo is not working (libsudo_util error)

When sudo not working:

pkexec chmod go-w /usr/lib/sudo/sudoers.so
pkexec chmod 0440 /etc/sudoers

If problem is not solved you can check

The another answer. You can check both the linked , may help to solve your problem.