Ubuntu One Sync as a File Backup Solution?

Install Déjà Dup Backup Tool with Ubuntu Software Center.
Start Déjà Dup and go to Edit -> Preferences.
At Backup location choose Local Folder option.
Add an Ubuntu One Synced folder.
Do regular backups with Déjà Dup.

This is not a perfect solution because if you delete your Déjà Dup backup files then you loose your backups. However it is still better than just syncing a folder because Déjà Dup makes incremental backups which means that you can always go back to any previously backuped version of the file. Even if you delete the original file, you can restore it as long as you have your Déjà Dup backup files. Déjà Dup has many great features, such as scheduled regular backups, and it supports many locations such as Amazon S3, SSH, FTP, WebDav, etc.


Open terminal and type

  sudo dpkg --configure -a

If it doesn't help then do this

  sudo apt autoremove <packagename>

If this doesn't help then you
Need an internet connection.Type in terminal

  sudo apt-get autoclean

remove sources.list file.and create new sources.list...

sudo rm /etc/apt/sources.list

Then, type in

sudo software-properties-gtk

This will open software-properties-gtk and a newsources.list will be created automatically.

Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.

Tick all the boxes then click on Revert then click close.

Need to restore default repositories

 sudo apt-get update && sudo apt-get dist-upgrade -y

(it is good practice to backup this file before installing to recover if such things happen)

Now install anything!

UPDATE :

 sudo apt-get autoclean
 sudo dpkg --remove --force-depends   *put here all the things which are listed in ur Depends: *
  sudo apt-get install -f

Update 2:
Create a dummy initscript to fool dpkg:(use nano/gedit/vim)

 sudo nano /etc/init.d/php5.6-fpm

Enter the following:

 #!/bin/bash
  exit 0

Save the file, set execution permission (sudo chmod 755 /etc/init.d/php5.6-fpm) and try to sudo apt-get remove php5.6-fpm again.
Dot this for all packages.


How to determine which python modules were installed with `pip` and which with `apt`?

Not cast in stone but from this Ask Ubuntu Q&A:

  As @Radu Rădeanu pointed out in this answer, there would generally be
  difference in names of packages as well. Canonical usually names
  Python 2 packages as python- and Python 3 packages as
  python3-. Whereas for pip we generally just need to use
   for both Python 2 as well as Python3 packages.

Generally speaking then:

If the package name starts with python- or python3- it was installed by apt.
Otherwise the package was installed by pip


Prevent accidental low-level access (formatting) of system disk by root?

That is not possible. By definition, "root" is the user that is allowed to do everything. Think about it. If there was something root wasn't allowed to do, it wouldn't be at the root of the hierarchy of privileges.

You could probably introduce manual checks, but it would probably be no safer than just making sure you don't do anything stupid when using "sudo".


If we got Eric 4 that's suitable for python 2 and Eric 5 is the IDE for python 3 .
so we need to install ERIC 5 to load python 3 .


Ubuntu 14.04 is making screenshots automatically without my interaction

It is annoying, I agree. But the solution is simple enough.

Go to System settings->Keyboard->Shortcuts. You will find a whole group of shortcuts associated with Screenshots. Simply disable all active shortcuts.

Hope that helps.


Multitouch screen not detected on Asus Taichi 21DH71

Execute lsusb commmand, find your touchscreen ID in the output (looks like 04e7:0022) and check if it's present in this list of supported multitouch devices:

http://lii-enac.fr/en/architecture/linux-input/multitouch-devices.html

If it's not you can try enabling it and reporting compatibility here:

http://lii-enac.fr/en/architecture/linux-input/multitouch-howto.html


", is there such a free application in the official repositories
  (which is where I would prefer it to come from)?"

First there is nsnake that should meet your need exactly

sudo apt-get install nsnake

Two more I found are snake4 this opens in a new window though, so not a terminal game and gnibbles but I could not get it to run.


Enable nmblookup during ubuntu 16.04 installation

I found this solution to my problem. Follow the link
https://unix.stackexchange.com/questions/145621/debian-installer-customize-busybox-and-live-system-environment

You can customize the booting enviroment (build with busybox), adding to it's minimal set of commands your own. You have to  do it manually, putting all binary files and libraries to their proper folders.


How do I configure rsyslog to send logs from a specific program to a remote syslog server?

Rsyslog config files are located in: /etc/rsyslog.d/*.conf

Rsyslog reads the conf files sequentially, so it is important that you name your config file so that the specific config is loaded before anything else happens. So, name your file starting with leading zero's, i.e. 00-my-file.conf. It's better to create a new file so that updates and so on doesn't overwrite your local config.

Example:

if $programname == 'programname' and $msg contains 'a text string' and $syslogseverity <= '6' then /var/log/custom/bind.log

Or if you just want to discard certain entries:

if $programname == 'programname' then ~

In your case: (UDP)

if $programname == 'programname' then @remote.syslog.server
& ~

Or (TCP)

if $programname == 'programname' then @@remote.syslog.server
& ~

The & ~ means to stop processing matching (previous line only!) entries further.

Some more general info:

Also, always make sure filters are on the same line:

# Example: Log mail server control messages to mail-queue.log
if $hostname == 'titus'\
and $programname == 'smtp.queue.'\
and $syslogseverity <= '6' then /var/log/titus/mail-queue.log
& ~

Usefull filters:

$hostname
$programname
$msg
$syslogseverity

Operators:

== (equals)
contains
and
or

More info: http://wiki.rsyslog.com/index.php/Configuration_Samples


Thanks to @doneal24 for the comment pointing to a very relevant answer in Stack Overflow.  The answer `here solved this.

{ time sleep 1 ; } 2> time.txt

or

{ time sleep 1 2 > sleep.stderr; } 2> time.txt

will work.  The second snippet allows separation of sleep and time stderr streams.


I want Pidgin links opened in Chromium not in Firefox

I have Pidgin 2.10.7 (libpurple 2.10.7) from the software center. I click on Tools, Preferences and then on Browser.

Does that not help you?

If it doesn't, try

sudo update-alternatives --config x-www-browser

You should see a list of GUI-based browsers that your system detects. Then follow the on-screen instructions to choose the browser you want.

[11:03 AM] ~ $ sudo update-alternatives --config x-www-browser
[sudo] password for vasa1:
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                    Priority   Status
------------------------------------------------------------
* 0            /usr/bin/google-chrome   150       auto mode
  1            /usr/bin/google-chrome   150       manual mode
  2            /usr/bin/xombrero        50        manual mode

Press enter to keep the current choice[*], or type selection number:


I've changed my login by manual editing the /etc/passwd and my former password is not recognised

The password itself is stored in the file /etc/shadow.

Either you have to change back the username in the /etc/passwd or you also have to change the according username in /etc/shadow.

If the usernames in both files do not match then you will not be able to log in.


When will the Aquaris E4.5 recieve the Xenial (16.04) base?

I believe this thread answers the question.

On April 22, 2016 Łukasz Zemczak wrote:

  As already mentioned in a few landing e-mails, the baseline switch
  from vivid to xenial is our near-term plan for stable channels. But
  please remember that it's not an easy task. When we were switching our
  baseline from 14.09 (ubuntu-rtm) to 15.04 long time ago it took us a
  few months to stabilize the phone again. With xenial introducing the
  g++ ABI break (and a few other nuances), the whole process could take
  even longer since there's more things we need to consider during the
  switch.

  The most difficult part is that we can't only concentrate on one
  front, meaning: we can't just drop everything and just work on getting
  xenial (devel-proposed) into working shape as our current focus needs
  to be on the stable devices (vivid-overlay). That being said, we will
  be preparing something similar to a 'task force' that will be taking
  care of moving the xenial initiative forward. It's really hard to give
  a firm schedule here - with this we still need to wait a bit.

  All this means the next few OTAs will still be vivid-based with our
  development focus on vivid, but then we intend to switch to xenial for
  future devices.


Access to network files under \\directory

Use smb:// instead of \\ in the nautilus address line.

You can specifiy a username and a password, too. Like that: smb://username:password@hostname/. If you don't, nautilus will automatically ask you for it.

You can use all other supported protocols in the same way:

smb://username:password@hostname/ for Samba
ftp://username:password@hostname/ for FTP
sftp://username:password@hostname/ for FTP over SSH (also ssh:// )
dav://username:password@hostname/for WebDAV
davs://username:password@hostname/ for encrypted WebDAV


Send OSD notification messages to all systems on a network

You could do it by using the command-line notification tools.

Install the package 'libnotify-bin' on all of the systems on your network, which provides a tool called 'notify-send'.
Install the ssh server on all the systems on your network and make sure they are configured to allow passwordless ssh logins (see http://www.debian-administration.org/articles/152 for more information on this).
Set up your notification script on your server to execute notify-send, like this:

ssh username@system1 'notify-send "Incoming call from Smith J\n613-555-1234"'

ssh username@system2 'notify-send "Incoming call from Smith J\n613-555-1234"'

This will cause a notification popup on the systems named 'system1' and 'system2'.


How to use AND and NOT both in single grep command

You have said in comments that you want to know if process exists or not. Use pgrep -f 'deluge' for that. Or alternatively pgrep -f 'deluge.*58846'

pgrep is specifically designed to just give you pid if process exists and avoid parsing issues with grep and ps. If process  doesn't exist, then you will have blank output

You can also use sudo netstat -tulpan and use grep to see if your port number is among open ones


How to deactivate shift+numpad=number? Ubuntu 19.10

Terminal:

setxkbmap -option 'numpad:microsoft'

And voila!

Here is the answer: How to change Shift + <Keypad Key> behavior?


Read and write permissions for Owncloud www-data

To change the owner of a file (or folder) you use chown (ChangeOwner). You can specify a user and a group as owner. As in,

chown option user:group file/folder

In the situation you a describing, you could try the following, only change the group to www-data, so that the original owner isn't affected.

chown -R :www-data /media/Test/Share

Please notice the : before www-data...

To change the user and group owner of the folder,

chown -R www-data:www-data /media/Test/Share

-R option is used for "Recursive", it will also change the user & group of the folders contents (as in, any other directory or file that it holds).

Also check this other answer, change-folder-permissions-and-ownership

This should do it.

Still, if the user or group don't have sufficient rights yet (read/write) you can use the chmod command for it.

I'll start with the warning...

Please, do not use the value 777 unless you know exactly what you are doing. Even then you should be wondering if it's worth it ;)

Read the following please: Why shouldn't /var/www have chmod 777

For instance, to give current user&group read/write rights on a file, but others none,

chmod 660 filename

See this article for more information on the values and a better explanation then I can give,

https://mdshaonimran.wordpress.com/2010/06/13/chmod-change-filefolder-permission-in-ubuntu/


Guymager Device disconnected, acquisition paused

It means, that the device disappears from the list of known devices. This normally is due to hardware problems.
I saw this problem several times with harddisks. They sometimes "disconnect", "switch off", "hang" or whatever you may want to call it when reading certain bad sectors.
Guymager has a special feature that might help you to recover from such a problem - with a bit of luck:

Connect the device, preferably via USB or ESATA. Start the acquisition and wait until the device switches to "disconnected"
Unplug the device data and power cables (therefore USB or ESATA)
Wait a moment, re-plug the device, wait another 5 seconds or so
Press Rescan in Guymager (or F5). If the device came back to life, the acquisition should continue at the point it paused.

You may try the procedure with a good device first. That way, you can get a feeling for the whole procedure. Take an USB stick for example. Simply unplug the stick somewhere in the middle of the acquisition and you'll get "disconnected"; try the replug procedure then.
Good luck!


wireless not detected in 14.04 fresh install

Your Broadcom 14e4:4359 uses bcmwl-kernel-source. It and its dependency dkms are on the installation DVD or USB. Insert the install media and navigate to pool > restricted > b > bcmwl and drag and drop the bcmwl deb package to your desktop. Do the same with pool > main > d > dkms. Now we install the deb files. Open a terminal and:

cd ~/Desktop
sudo dpkg -i *.deb
sudo modprobe wl

Your wireless should now be working.


Can I use a SSD Master, & mirror it with a HDD?

You can create a (approx.) 120Gb partition on each of the drive and use the Linux software RAID mirror to create a volume.

Assuming this is a clean install...

Select the manual partitioning method and create a partition for /boot on each drive (same size).
Next create partition(s) for the rest of your filesystem on each drive (the partitions must be the same size -- if they are different, the smaller size will be used and the remaining space lost).
Tell the partitioner to use each of the 4 partitions as RAID space.
Continue to the software RAID configuration.
Create a new RAID mirror device and select the same size partitions on each drive.
Repeat for other partitions.
When you finish with the software RAID configuration, you should see the new RAID devices and can continue formatting them instead of your regular partitions.


If you would like to use an Embed code for playing the song then you can use this code ,:)

Source: http://java-demos.blogspot.hu/2012/11/java-code-to-play-mp3-file.html

Code for playing an MP3 song in Java:

import javax.media.*;
import java.net.*;
import java.io.*;
import java.util.*;

public class AudioPlay {

    public static void main(String args[]) throws Exception {

        // Take the path of the audio file from command line
        File f = new File(args[0]);

        // Create a Player object that realizes the audio
        final Player p = Manager.createRealizedPlayer(f.toURI().toURL());

        // Start the music
        p.start();

        // Create a Scanner object for taking input from cmd
        Scanner s = new Scanner(System.in);

        // Read a line and store it in st
        String st = s.nextLine();

        // If user types 's', stop the audio
        if (st.equals("s")) {
            p.stop();
        }
    }
}

  Explanation:

  Player is an interface in the javax.media package. As you cannot create an object for an interface directly some class
  implementing it is written and it's object is used. Manager is such a
  class that does the thing.

  There are several states in which a Player will be. They are

  UNREALIZED: Meaning, the player knows nothing about what it has to do (about the media)

  REALIZING: Meaning, the player is realizing it's world (determining resources) necessary to do the job (playing the file)

  REALIZED: Meaning, the player gets its resources to play the file and will also have some info about the type of the media etc.

  PREFETCHING: It's getting ready now, it is knowing how could it play the file.

  PREFETCHED: Now, it knows how to play the media. It can fire now.

  START: Start the music, starts playing the file.

  We have created a realized player, it does not mean that the UNREALIZED, REALIZING steps are skipped instead they are automatically done. The method createRealizedPlayer(URL url) takes a URL which points to the media file. For getting the URL object from a File object, you can use toURL() method in the java.io.File class, as it is deprecated we've called toURI() method which returns java.net.URI object and then the toURL() method in it.The user also needs to stop the music, so input is taken from the user.

  Output however cannot be shown, you'll have to try it, remember that when executing the program give the complete path of the audio file otherwise ArrayIndexOutOfBoundsException will arise. The command might look like this:

java AudioPlay "Path/to/file.mp3"

Credit Goes to Java Demo


I tested with the following file:

wget http://rawsamples.ch/raws/sony/RAW_SONY_DSC-F828.SRF

Partial success on 2 fronts:

Gimp: This gui application will import these files, and subsequently allow editing but will not export to the .srf format unfortunately. This is done with the assistance of ufraw:

sudo apt-get install gimp gimp-ufraw

ImageMagick: This command line application easily converts .srf files to .png for subsequent editing, but not possible to subsequently export to .srf. A simple command line will accomplish conversion:

convert RAW_SONY_DSC-F828.SRF test.png

So: easy to read and subsequently edit but less easy to export to srf in all applications that I have tested (including Krita if you want to try something a little different)...


Logitech Zone Wireless Headphones Switch to HPDF even on USB

The modes are intentional by design and appear locked together. It does not appear to be possible to have digital input with mono output. This is likely because of bluetooth. It appears that even on Windows when voice is activated the device switches into lower quality output mode. I suppose my expectation was that this device would have digital audio out and mono-in given it's USB connection (I was wrong).
On linux, you may need to use pavu-control to switch between "+mono" mode and "digital" or "analog" modes.
sudo apt install pavucontrol

This is the only way I've been able to successfully change modes. The sound device chooser in settings doesn't appear to do anything. Sometimes, especially after a hotplug of the dongle, I also need to restart pulseaudio:
pulseaudio -k

This resets pavucontrol and shows the correct options set for the headset (or makes it show up at all).


ubuntu.excellmedia.net is a mirror. In this case for India. Mirrors are mainly there to speed up downloading: downloading from a site closer to you is faster than from a site in the UK. It also lowers stress on other servers holding the Ubuntu system. And you then also download a version with the native language incorporated and other default settings for that country. So it saves downloading extra packages afterwards. And not everyone speaks English of course.

  Can I download it from anywhere?

Yes but it is a generally smart to always check the .ISO you download against the md5hash. Besides that there is also the official mirror list.

  Need I care for these things?

Yes. Security is something we users need to be aware off and that starts with making sure the download is a correct untainted version.

  What should I care just before saving the file?

See the 1st part of this answer: a md5hash check should be enough.


How to remove a directory without removing its content?

In these situations there is a risk of files with the same name being overwritten. As mentioned by @Arronical, you can avoid this using the -b flag to mv which causes any identically named files to be differentiated by appending ~ to their names. However, if there are three or more files with the same name, only the first and last will be saved, so check the contents before moving to protect your files.

The first, simple case is easy; we can use a shell glob. However, this won't move hidden files, so if you have any filenames beginning with ., start by turning on dotglob

shopt -s dotglob

Then you can run:

mv -b /home/smit/test/* /home/smit
rmdir /home/smit/test

Turn off dotglob if you like (it will return to default anyway when you open a new shell):

shopt -u dotglob

For the second (real) case, we will use find, which moves hidden files by default:

Make sure you are in the right location first.

cd /usr/share/background/all
find -type f -exec echo mv -vb -- {} . \;

If that looks good, run it without echo to actually move files

find -type f -exec mv -vb -- {} . \;

Then find the directories

find -type d

If you see what you want to remove:

find -type d -delete

This is safe since it will refuse to remove directories that still have contents.


rkhunter: right way to handle warnings further?

Using debsums is a very clever idea with one major flaw: If something were to overwrite a root-owned file such as /bin/which, it could also rewrite /var/lib/dpkg/info/*.md5sums with an updated checksum. There is no chain of custody back to a Debian/Ubuntu signature, as far as I can see. Which is a real shame because that would be a really simple, really quick way to verify the authenticity of a live file.

Instead to truly verify a file, you need to download a fresh copy of that deb, extract the internal control.tar.gz and then look at its md5sums file to compare against a real md5sum /bin/which. It's a painful process.

What has most likely happened here is that you've had some system updates (a distribution upgrade even) and you haven't asked rkhunter to update its profiles. rkhunter needs to know what files should be like so any system updates are going to upset it.

Once you know something is safe, you can run sudo rkhunter --propupd /bin/which to update its reference of the file.

This is one of the problems with rkhunter. It needs deep integration into the deb process so that when trusted, signed packages are installed, rkhunter updates its references to files.

And no, I wouldn't whitelist things like this because this is exactly the sort of thing a rootkit would go after.


Intel UHD Graphics 605 can't see screen to boot/install

it work fine for my d330 using ubuntu 18.04 and kernel 4.15, what kernel are you using?

as for the display error with nomodeset you can fix it by adding gfxpayload=1200x1920 to your grub


Which ubuntu version compatible with my netbook

I use Lubuntu 16.04 on a Mini 110c-1100.  It has adequate performance, which considering that it has an Intel Atom N270, is not unexpected.  I am able to run Netflix and Skype satisfactorily.  Some applications like Google Hangouts video chat do not work well.


Sorted out.

I upgraded to Java 10 via:

sudo apt-get install openjdk-11-jre openjdk-11-jdk

Now Java version reads:

openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Enviornment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server (buidl 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

And now the application launches.


Am I using integrated or discrete graphics?

You should be able to see what video drivers are being loaded by looking at the X server log in /var/log/Xorg.0.log.

Alternatively, the OpenGL renderer string.  For instance, on my desktop system I see:

$ glxinfo | grep 'OpenGL renderer string'
OpenGL renderer string: Gallium 0.4 on AMD JUNIPER

Which is consistent with my system having a Radeon card.


Upgrade to 15.04 breaks deja dup backups to Amazon S3?

This problem impacts the underlying backend software, duplicity as well as deja dup.  I filed a bug report for duplicity, which has now both confirmed the bug and issued a patch, see: https://bugs.launchpad.net/duplicity/+bug/1453232 This bug affects duplicity version 0.7.01 and is fixed in 0.7.02.


After all the diagnostics Dave, this certainly looks like a problem being caused by your hub(s) -- first of all, the USB 1.1 external hub you're using, and possibly one of the internal chips on your motherboard used to provide physical USB ports.

17.5 Mbytes/sec to your Sony Video Camera's flash memory is close to the practical throughput limits of USB 2.0; the 2.0 Mbytes/sec with your Android phone may just be because its flash doesn't support faster writes.
Your motherboard is a Foxconn P55MX, as this clue from dmesg on line 1308 of your paste tells us: DMI: ThirdWave Corporation Prime Series/P55MX Series, BIOS 080015  09/15/2009
The Intel P55 chipset contains two USB 2.0 controllers (or root hubs), providing up to 8 and 6 ports respectively:

|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M

One big problem is this external hub to which you have your mouse/keyboard/tablet connected; it looks like a USB 1.1 hub (or a poorly designed USB 2.0 hub). Connecting the 1.1 hub forces that root hub to downgrade all its ports to USB 1.1 speeds. A USB 2.0 hub contains translators which prevent this behavior:
        |__ Port 4: Dev 8, If 0, Class=hub, Driver=hub/4p, 12M
The btusb is just a Bluetooth dongle you plugged in.

Anyway, it appears the intermittent problem is caused when something forces the root hub to downgrade all ports to USB 1.0/USB 1.1 speeds -- 60 kbytes/sec is close to real-world USB 1.0 speeds IIRC!

Now, replacing your external hub with a proper USB 2.0 one should fix these problems; if not, something may be wrong with the actual Intel chip on the motherboard or its connection to the physical ports, and you may have to have it replaced under warranty.


Ubuntu 14.04 - on the fly change operating system language while remotely support required

You know that you can control the display language per user, don't you?

System Settings -> Language Support


I dont quite understand what your problem is but you can find the nvidia driver for Ubuntu in the Software and updates app (look in the dash) under the additional drivers tab.

This is the best way to install, also version 3.10 is recommended as it is most stable.


Thanks to Arthur, the steps to make sure that you can mount a RAID partition and also use it are:

Make sure that the RAID is added to /etc/fstab
Make sure that the permissions are correctly set (eg: chmod 0777 /RAID/PATH)
Make sure that the information about the partition has been correctly added to the Samba configuration file (eg: smb.conf)

All steps provided by Arthur


The issue you have with your LapTop is a known problem with some Dell LapTops.
When you resume from suspend on battery power, the Dell bios will set Clock Modulation to be used as a way to limit performance a little to save battery power. The problem is that the intel_pstate CPU frequency scaling driver, in its current form, is incompatible with Clock Modulation, and instead of limiting performance a little it drivers the CPU frequency hard down to below its normal lower limit.

The suggested solution for you is that you disable the intel_pstate driver, and use the acpi-cpufreq CPU frequency scaling driver instead. The acpi-cpufreq driver responds "properly" to Clock Modulation.

If you are using grub, then edit /etc/default/grub and change the GRUB_CMDLINE_LINUX_DEFAULT line. Example, where I have something else on that line:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 intel_pstate=disable"

Be sure to run sudo update-grub afterwards. It is also good practice to save a copy of the original file before you edit it. Edit as sudo.


Can't mount Nokia Lumia 735 on Ubuntu 15.04

I was also unable to mount my Nokia 735, and finally found the solution on a forum : you just have to connect the phone to the computer (error message) then restart the computer without unplugging the phone and after the restart you can now browse all your files on the Nokia (Phone memory, Sd Card)


In your log, we see:

[ 2349.974517] wlp5s0: deauthenticating from dc:53:7c:c6:b6:8a by local choice (Reason: 3=DEAUTH_LEAVING)
[ 2354.678670] wlp5s0: authenticate with dc:53:7c:c6:b6:8b
[ 2354.711911] wlp5s0: send auth to dc:53:7c:c6:b6:8b (try 1/3)

I assume that the MAC addresses x:8a and x:8b are the 2.4 GHz and 5 GHz bands of your router. I also suspect that they have the same name. I suggest that you try binding Network Manager to one or the other like this: Ubuntu connect drops. Worked for a while then started dropping again

If this is ineffective, rename the SSIDs to something like router2.4 and router5. Connect to one and stick to it.


Install "Jack retasking for HDA Intel sound cards" with:
sudo apt install alsa-tools-gui

Open it with the windows key or in terminal:
hdajackretask

Select the up-right checkbox "Show unconnected pins"

In the not connected pins 0x18 and 0x19, select "override", and select "microphone".
If, they don't have the microphone option, do this in 0x16 or 0x12

Click "apply now" (bottom right) and "install boot override".

install pavucontrol
sudo apt install pavucontrol

Open pavucontrol, go to Input devices (4th menu) and select "Microphone", instead of "Internal microphone" (if it appears "(unplugged)" see if the volume indicator moves while you speak, otherwise restart - it can still be "unplugged" but should work).

For dual-boot systems, turn off the machine after the last windows use.


Lubuntu 19.04: why don't drawing tools work in lximage-qt?

A comment by a developer of LXQt to a GitHub issue filed by guiverc has this:

  Those annotations have many problems; the issues mentioned in this
  report are just a small part of them.

  I didn't like annotations from start because lximage-qt is an image
  viewer, not an image editor. The PR that introduced them was
  incomplete but was merged by mistake.

The following comment has this:

  The accidental merge happened here: lxqt/lximage-qt#180
  (comment).
  Also, IMO, the most basic functionality that it needed was undo/redo.
  Later, I found many bugs in it and so, hid it in a recent PR.

Based on this feedback, users of Lubuntu 18.10 or 19.04 may want to use something else to annotate their screenshots:

ksnip is "a Qt based cross-platform screenshot tool that provides many annotation features for your screenshots" and is available as a .deb or AppImage from here.
flameshot is in the Universe repository with this GitHub homepage.


Enabling dual boot of windows after rewriting MBR with GRUB

Could you try boot repair whit sudo apt-get type:

         sudo apt-get-repository boot-repair && sudo apt-get update &&  sudo apt-get install -y boot-repair && boot-repair

follow the instruction it could might work.


How long does it take for Ubuntu One to sync my files?

There are a couple options for getting more info to help you determine how long your sync is taking.

u1sdtool

From the command line you can get the number of items in the queue with this command run in the terminal:

u1sdtool --waiting | wc -l

Overtime the number will get smaller as files are uploaded/downloaded.

magicicada

There is also a project called Magicicada that is a GUI for the Ubuntu One syncdaemon. It allows you to connect/disconnect and see the queue. You can install it with these commands in a terminal.

add the PPA:

sudo add-apt-repository  ppa:chicharreros/ppa

Then install:

sudo apt-get update; sudo apt-get install magicicada

You can launch the application by opening the Dash and typing 'Magi'. In pre Natty releases you can launch the application by going to Applications > Accessories > Magicicada


How do I create gnome-terminal profiles at a global level (for all users)?

I realize this is an old post but I had this same problem and thought it might be worth answering for someone else who might make the same mistake.  Looking at the code for dconf update it appears that the '/' prefix is invalid.  Looking at the example from the dconf administrator's guide (included in the OP) indeed shows that they DO NOT include the leading '/' in the group name.


cp recursive with specific file extension

You can either let the (bash) shell do the recursion instead:
shopt -s globstar
cp -nt ~/copies/ ~/Documents/**/*.odt

or use the find command
find ~/Documents -name '*.odt' -exec cp -nt ~/copies/ {} +

The former may exceed the system's ARG_MAX limits if the number if files is very large, whereas the latter will break the command up to stay within ARG_MAX.
I added the -n option to prevent "clobbering" files with the same name.


Something is blocking grub-install (out of memory error).

Please make sure that your BIOS is setup to boot on the Ubuntu disk.
Run Boot-Repair, UPDATE IT, click "Advanced options", go to the "GRUB options" tab, tick the "Purge GRUB" option, apply, and indicate the new URL that will appear.


Trouble installing lubuntu desktop (17.04) on VM VirtualBox

On the Virtualbox site there is an argument about whether this is an Ubuntu or virtualbox problem.  However there is a simple workaround.

When you see the garbled screen

hit Right Ctrl+F1 (to switch to a console display).
switch back to the graphical display, with Right Ctrl+F7.

This should clean up your display.


Installing Ubuntu from bootable flash drive leads right back to installation menu

Your have asked two questions:

How to install Ubuntu from a USB flash drive
How to restore Grub menu after a failed Ubuntu installation.

One by one

You have used a utility from pendrivelinux.com. I have not tested it so, I don't know how effectively it works. I suggest you to use Livelinuxusb creator. It is very fast and easy to use. You can use UNenbootin too.
As far as failed Ubuntu installation is concerned it may be due to hardware conflict. Try reseting BIOS. If problem persists please comment with full hardware description.
Boot from Windows Installation CD/DVD and do a startup repair. It will remove the grub startup menu and fix the issue. You can boot directly into Windows 7 afterwards.


How to download kde or gnome from synaptic for offline installation

Download a package without installing using apt-get:

apt-get --download-only install <packagename>

To (re)download all currently installed packages do:

dpkg -l | grep '^ii' | awk '{ print $2 }' | xargs apt-get --download-only --reinstall -y install

The .deb files will be stored under /var/cache/apt/archives. Take those files and copy them to the offline machine. Then you can install them without downloading.

This assumes that at least the package list of the currently available packages are in sync on both systems. If not, things will get more complicated...


Ubuntu 12.10 + Gnome 3.6: Suspend button does not work

It's a known bug. Looks like update is on the way. See this bug on launchpad.


Something like the following would accomplish your purpose, with 'testing' being a text files with a list of URL images:

cat testing | xargs -n 1 -P 8 wget -q

Works beautifully on my system! You can manipulate the -P option as the man pages describe:

-P max-procs
  Run up to max-procs processes at a time; the default is 1.  If max-procs is 0,
  xargs  will  run  as  many processes as possible at a time.  Use the -n option
  with -P; otherwise chances are that only one exec will be done.

References:

Stack Overflow: Parallel wget in Bash


Ubuntu on DigitalOcean does not use the latest kernel

I found the solution.  I followed this solution. I had to change the kernel version in the control panel and reboot through the control panel.


Since BSNL is the state owned telecom provider in India, it provides both landline and mobile services. Usually BSNL broadband is associated with fixed-line services.

Its limited but I have a tutorial here

This may help for wireless connections


How to start Google Chrome in background on boot?

Search for start in dash

Open Startup Applications and click Add button

Add /opt/google/chrome/google-chrome --no-startup-window to command and chrome-boot (or any name you like) to Name, click Add and you are done.


Start script when connecting phone through usb

You can test if your rule will be hit or not by running

udevadm test /path/to/sysfs/dev

You can find the devices sysfs node by using this:

udevadm info -q path -n /dev/sda  #To find sysfs node for first HDD

So to wrap that all together it'll be:

udevadm test $(udevadm info -q path -n /dev/sda) 2>&1 | more

Grep that for your script's name or read it line by line if you want. If your script is called but isn't executing then remember you don't have a typical environment in a udev script and so you must call all programs by their full path or otherwise recreate the environment to your liking. Try replacing adb and chromium-browser with their absolute paths (which adb and which chromium-browser)

Also the second exec in your bash script wont execute like you expect as the environment doesn't specify a window system for Chromium to launch in.  I think I understand what you were trying to do here, but udev is designed to be non-interactive.

In response to your comment. There are a few abstract screens on every unix system referred to as displays. X11, which is the window manager (think explorer.exe, sort of)
for Ubuntu occupies one of them (7 or 8 I think, I work via ssh mostly). When you run a graphical program from the command line (say gedit) it will check the DISPLAY environment variable to determine which display it will draw itself on.

There's more to it that this, and I've never personally gotten a firm understanding of what the 'other stuff' is going on back there, but I'd try to do a few diagnostic things from your script:

mkdir /tmp/udev-script
/usr/bin/printenv > /tmp/udev-script/environment.log
/bin/echo "My script was run!" > /tmp/udev-script/script.log
DISPLAY=:8      # or :7, play around with that
export DISPLAY  # Promote shell variable to environment variable
exec /path/to/chromium 2> /tmp/udev-script/chromium.log 1>&2 &
exit            # This is important for udev, see sources

source1(udev)
source2(man udevadm)
source3(EXEC)
source4(DISPLAY)


My USB Thumb Drive is not mounting automatically on 15.10

It means that there are problems with USB communication re-check USB Cable.
Check power Port also the host could not provide enough electric power for USB Drive.


mv command with *-wildcard shows error "No such file or directory"

Did you create the directory first? If not,

mkdir Desktop/texts

Use the -p option to create intermediate directories that are missing.

mkdir -p Desktop/texts/DoesNotExist/NotHere/Yet

You also didn't mention in what path you are currently in, by default the Terminal session starts in your own home directory, but to make sure you could use the full path or the ~ to indicate your home directory. ~ gets expanded to fill out the rest of the path of your home directory.

After making sure the destination exists,

mv ~/Desktop/*.txt ~/Desktop/texts

Because of the ~, its the same as using,

mv /home/dlundy1/Desktop/*.txt /home/dlundy1/Desktop/texts


If you got same problem as I did, your problem is having poorly supported network card, easiest way to fix that problem is to buy Linux supporting Ethernet card and re-install Linux.

There are some network cards which Linux doesn't support well or at all, so you must install the driver and remove old driver and add that unsupported driver to blacklist.

I can recommend TP-Link TG-3269 gigabit PCI Network adapter which is quite cheap (I paid 19€ which was overpriced), works great on my Ubuntu 14.04.

If you only got problem with P2P sharing being slow but normal internet downloads are fast etc. then it's as simple as just opening correct ports from your modem/router management page which is usually 192.168.1.1 depending what brand you use.


Davmail Java terminates with SIGSEGV after 11.10 Upgrade

I solved by installing openjdk-7-jre, and then linking the /usr/bin/davmail script to use the JDK1.7 java binary.


Ubuntu come configured to use the CPU in its limit when it is needed. You can configure your computer to use less processing power than it is available and things will cool down.

Open a terminal and type:

sudo nano /etc/rc.local

add this lines before the exit(0)

for i in `ls /sys/bus/cpu/devices/ | egrep "^cpu[0-9]+"`; do echo "2000000" > /sys/bus/cpu/devices/$i/cpufreq/scaling_max_freq; done
sysctl -w vm.swappiness=0
exit(0)

and then reboot your computer or execute this command:

sudo /etc/rc.local

This will make your computer a little slower, a lot colder and your battery time will increase.

Tweak a bit with the frequency. You can see the valid frequencies with this command:

cat /sys/bus/cpu/devices/cpu0/cpufreq/scaling_available_frequencies

On my i5-3230M valid values are: 2601000 2600000 2500000 2400000 2300000 2200000 2100000 2000000 1900000 1800000 1700000 1600000 1500000 1400000 1300000 1200000. But you should have more high frequencies available.

Most of the time I limit to the minumum frequency (12000000) and still have a very good desktop experience on ubuntu gnome. I use ubuntu gnome 3 desktop, lots of openoffice, google sketchup and eclipse. I draw a lot.


Stop arbitrarily "following packages were automatically installed and are no longer required"

In case you are using packages which are marked as "automatically installed", you should tell the package management that you want them explicitly rather than a dependency:

sudo apt-mark unmarkauto packagename

The purpose of this auto/manual mark on a package installation is to keep the system clean if you install package-x which installs several dependencies (say package-y, package-z). APT will then know that package-y and package-z are not needed anymore if you remove package-x some day later - use sudo apt-get autoremove to perform the removal.

Don't mark dependencies as manually installed, as that would defeat the purpose of the above.

In order to find out why certain packages are installed automatically, you want to use

aptitude why packagename


Updated to Ubuntu 20.04 - Dock Wont Customize

Go to Settings/Appearance (from the dropdown at the top right of 20.04 desktop).
Under the Dock section there are 4 configurations.
Auto-hide the Ddock
Icon size
Show on (when multiple monitors)
Position on screen


Check your .bashrc file in your home directory. Sometimes it contains some sudo commands.

More info:

Open a terminal and press Ctrl+C when asked for the password. Then, to validate it's .bashrc causing the issue you can run

$ source ~/.bashrc

Just make sure you did not previously ran any sudo commands so the password is not active.

If it asks for a password than something inside it or files included by it contain sudo commands.

I had this issue when I added an alias on my dev machine

alias clearphpsessions="cd /var/lib/php/sessions && sudo rm $(sudo ls /var/lib/php/sessions) && cd -"

Seems like the $(sudo ls /var/lib/php/sessions) part was interpreted, hence required the sudo password.


Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink

I believe this is a know issue.

  The suggested workaround is to remove the python’s binary in /usr/bin
  and then to create a symlink and perform the upgrade:

sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python
sudo apt upgrade
do-release-upgrade

Let me know how it goes.


Menu entry for Android x86 7.1 r2 installed alongside Ubuntu 16.04 does not work, system reboots when I test it

You need to add

androidboot.selinux=permissive

to your kernel line.

If you dont, your system will reboot immediately

https://www.android-x86.org/source.html

  Note androidboot.selinux=permissive must be added since nougat-x86. Besides, before marshmallow-x86, androidboot.hardware= must be added to specify the target name of the built image. However, do not add this option since nougat-x86.


Attempting to boot into Ubuntu USB, device descriptor error

Finally fixed this issue, I started by just updating the BIOS to the latest version and I was then able to boot into the Ubuntu USB. It also had the option to enable/disable secure boot after updating, and it was disabled by default. Other than that I just had to enable the IOMMU controller in the BIOS to control the mouse & keyboard, and I was able to install Ubuntu onto my other drive successfully.

I still was getting some errors while booting into the USB drive (like "couldn't get size") but that's not a big deal for me, since those errors obviously go away once I'm done using the USB stick for installation.


Ubuntu reinstalltion asking for boot loader installation

/dev/nvme0n1p1 is the UEFI system partition, so:

ensure legacy is turned off in the UEFI firmware
Do not encrypt that partition
install the boot loader there


In bash (Ubuntu's default interactive shell), everything following an open single quote (') is quoted literally, up until the next ' which is taken as the closing quote. In contrast, several kinds of shell expansions are performed inside double quotes (").

Parameter expansion (with $... or ${...}):

ek@Io:~$ echo '$HOME ${USER^^*} ${SHELL%%+([[:alnum:]])}'
$HOME ${USER^^*} ${SHELL%%+([[:alnum:]])}
ek@Io:~$ echo "$HOME ${USER^^*} ${SHELL%%+([[:alnum:]])}"
/home/ek EK /bin/

This is a common use case for " quotes in shell scripting. In particular, you may have seen loops that iterate through filenames, expanding a variable inside double quotes so it does get expanded but doesn't have its value split into separate words. For example, a command like this might help me keep track of things while preparing lots of media files for moving:

ek@Io:~$ for d in to\ *; do ls -ld "$d"; du -sh "$d"; done
drwxr-x--- 856 ek ek 32768 Mar 29 10:47 to Albums (partial)
308G    to Albums (partial)
drwxrwxr-x 1191 ek ek 40960 Mar 11 12:56 to Books
21G to Books

Command substitution (with $(...) or `...`) and arithmetic expansion (with $((...))):

ek@Io:~$ echo '$(date)      `uname -r`      $((2+2))'
$(date)      `uname -r`      $((2+2))
ek@Io:~$ echo "$(date)      `uname -r`      $((2+2))"
Sat Apr  4 20:42:37 EDT 2015      3.19.0-11-generic      4

Escaping single characters with \ is supported and can be handy in " quotes, but is unsupported (and would generally be pointless) in the simpler ' quotes:

ek@Io:~$ echo '$HOME \$HOME \\\\'
$HOME \$HOME \\\\
ek@Io:~$ echo "$HOME \$HOME \\\\"
/home/ek $HOME \\

History expansion with ! (if enabled, which it usually is when you're using the shell interactively):

ek@Io:~$ # this is just a comment (but I could run a command here)
ek@Io:~$ echo '!!'
!!
ek@Io:~$ # this is just another comment (but could be another command)
ek@Io:~$ echo "!!"
echo "# this is just another comment (but could be another command)"
# this is just another comment (but could be another command)

In addition, one of the most common reasons to use double quotes are to easily and intuitively quote text containing single quotes (since a ' has no special meaning at all, inside " quotes):

ek@Io:~$ echo "We'll have the dog's fleas gone soon, you'll see."
We'll have the dog's fleas gone soon, you'll see.

Finally, though you cannot escape a ' inside '-quoted text, you can achieve the same result by ending quoting with ', using an escaped ' (\'), and resuming quoting with ':

ek@Io:~$ echo '"My $PATH ain'\''t what it used to be," said the stevedore'\''s apprentice.'
"My $PATH ain't what it used to be," said the stevedore's apprentice.


How to run new added binaries using makefile

OP's original answer:

The PATH needs to be EXPORTed too!

export PATH=/home/charlie/bin/ARM:"$PATH"


Remove icons from system tray on Ubuntu Gnome 15.10

This works fine.
You can tweak the settings too.

https://github.com/phocean/TopIcons-plus

You install it as a browser extension from here


Might be possible that your Ubuntu doesn't support Touchpad. To be sure, try this command:

less /proc/bus/input/devices

After that or if you have already done step 3 you can try the following commands:

sudo rmmod i2c_hid
sudo modprobe i2c_hid

If the above command shows you 'touchpad', then you will have to update your GRUB.
Here's how:

First execute the command:

sudo nano /etc/default/grub

and then,
Replace the command:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with this below command:

GRUB_CMDLINE_LINUX_DEFAULT="i8042.reset quiet splash"

Save your file and exit.

Again, run this command:

 sudo update-grub

and then restart your laptop. If all goes well, your issue will no longer be in existence. Let us know the update via the comments section.


How to install Apt package without starting systemd process?

You can do this by running only the unpack part of the installation

 apt-get download <package>
 sudo dpkg --unpack <package>*.deb

You could then edit the packages systemd config so it cannot be started

So you dont avoid other parts of the setup you will need to finish it by running

sudo dpkg --configure <package>

This might error when it tries to start the systems service depending on how you disabled it and how the service works.


Most people take their time to familiarize with Ubuntu by having both systems installed or by using a secondary PC. Most people never switch fully to Ubuntu as they have a couple applications which they just need to use and they are not compatible with Ubuntu.
Some applications are also released for Ubuntu (i.e. Spotify runs just fine). Some others are not but they can be run with wine (windows emulator). Some others just need to run on Windows and you will not manage to get them running on Ubuntu.
I would recommend you take it one step at a time, with dual boot or second Ubuntu machine. Familiarize with the system, try to run your applications, see what runs and what fails. Finally weigh the benefits of each operating system and which applications are critical for you and which you can live without.


mp3blaster ( commandline interface player) not playing files

Note for the lazy others: you can install mp3blaster with

sudo apt-get install mp3blaster

For it to work properly, seemingly you need to launch it with

padsp mp3blaster

Here's how to compile it from source and eliminate the need for padsp:

Many thanks to @andrew.46 for explaining that compiling against libsdl fixes this bug:

Launchpad: man page says audiodriver sdl works, but doesn't

Download the tarball:

wget http://downloads.sourceforge.net/mp3blaster/mp3blaster-3.2.5.tar.gz

Extract it

tar xf mp3blaster*

Enter the directory

cd mp3blaster*

You need at least these dependencies to build it:

sudo apt-get install g++ libncurses5-dev  libsdl1.2-dev

Run

./configure --with-sdl

If there are errors, you need to install more packages. Please comment, and I will fix if possible. If and only if configure exits successfully you can run

make

then use sudo make install or better use checkinstall to make it known to dpkg for easier removal (do sudo apt-get install checkinstall if you want to use it)

sudo checkinstall

follow the instructions...

Now you can launch && enjoy with

mp3blaster


Problem after the Last Dist-upgrade in ubuntu 12.10

Since Ubuntu 12.10 is still in beta phase, I recommend you to perform a clean install, it will be more accurate than trying to figure out what conflicts are present.


I have installed lampp and in Firefox. No /var/www

Lamp , Apache use different DocumentRoot for its stuffs . You can find Apache configuration under /opt/lamp/httpd .


Direct ssh tunnel through a reverse SSH tunnel

Solved thanks to Lars Noodén on UbuntuForum here

I report the solution for future readers:

  You have created a reverse tunnel from port 22 on A to port 2210 on B.
  Add a regular tunnel from any port on C (e.g. 2212) to port 2210 on B.

  ssh -L 2212:localhost:2210 userB@hostB

  Then on C you can point FileZIlla, or any other SFTP client, at port 2212 on the localhost and it will be connecting to A.

Using this solution I can easily do ssh -p 2212 userA@localhost on C to connect directly to A from C. Furthermore I can use the port 2212 on localhost for all the services I need to connect from C to A that doesn't allow tunnels (e.g. Filezilla).


My experience:  Go ahead and install the drivers, but before you do print out some de-install instructions!


There are no big problems using Ubuntu One in KUbuntu, except missing file manager integration (which is not all that necessary).

You may want to run "ubuntuone-control-panel-qt --with-icon --minimized" when you login to get a nice tray icon, though.


Open the terminal and type:

mkdir ~/.local/share/reicast/
mkdir ~/.local/share/reicast/data/


HP probook 4310s quick launch keyboard sensor Wi-Fi button gone crazy- blinking

many thanks to Tux http://idyllictux.wordpress.com
he wrote:

gksudo gedit /etc/modprobe.d/wlan.conf
Then put in the following content:
options iwlcore led_mode=1
Restart and it should work. Taken from
gentoo wiki.


I found the answer here: Ubuntu 14 pptp client disconnects frequently.

I had to use on the client.

sudo ifconfig wlp3s0 mtu 1400
sudo ifconfig ppp0 mtu 1300

This could be investigated by reading syslog errors:

pouria@pouria-pc:~$ cat /var/log/syslog | grep pptp | grep long
May 31 09:36:11 pouria-pc pptp[18156]: nm-pptp-service-18147 warn[decaps_gre:pptp_gre.c:352]: short read (-1): Message too long
May 31 09:47:14 pouria-pc pptp[18617]: nm-pptp-service-18609 warn[decaps_gre:pptp_gre.c:352]: short read (-1): Message too long
May 31 09:57:18 pouria-pc pptp[19439]: nm-pptp-service-19430 warn[decaps_gre:pptp_gre.c:352]: short read (-1): Message too long
May 31 10:07:21 pouria-pc pptp[20790]: nm-pptp-service-20781 warn[decaps_gre:pptp_gre.c:352]: short read (-1): Message too long
May 31 10:17:57 pouria-pc pptp[21003]: nm-pptp-service-20994 warn[decaps_gre:pptp_gre.c:352]: short read (-1): Message too long
May 31 11:16:36 pouria-pc pptp[23730]: nm-pptp-service-23718 warn[decaps_gre:pptp_gre.c:352]: short read (-1): Message too long

By setting mtu we are telling the wlan to use smaller messages.

I wonder why users of other operating systems don't have to configure their WLAN message size to use the simplest form of VPN.


How can I make an icon which presses a key when double- clicked?

You need a script written in bash or sh.

First, install xdotool.

Then, the file should have:

#!/bin/sh

xdotool key Super_L

Save it as superkey.sh or whatever name, with the .sh extension.

Super_L refers to the Left Super key. You can also press other keys like Tab, Caps_Lock or so.

Now set the file to execute - either through the file properties or the Terminal like chmod +x superkey.sh.

You can now double-click on the file and the Left Super key will be pressed.


Which scopes are available in the default Ubuntu installation?

The following scopes are available in a default Ubuntu "Saucy Salamander" development image for desktop (which will ultimately become the Ubuntu 13.10 release)

Master scopes

Master scopes can aggregate content from other children scopes. They are provided by the unity-scope-home package.

Default master scopes

These are the visible scopes when first opening the Dash.

Home scope
Applications scope
Files scope
Videos scope
Music scope
Photos scope
Social scope

Other master scopes

These are master scopes that are not visible in the main Dash screen, but which can be revealed as Categories when expanding the Filter Results control in the Dash.

Web scope
News scope
Recipes scope
Notes scope
Info scope
Books scope
Reference scope
Help scope
Boxes scope
Calendar scope
More suggestions scope
Graphics scope
Code scope

Other installed scopes

The following scope packages are available in the Ubuntu development image (Saucy Salamander) as sources results are presented for:

unity-scope-audacious - Audacious scope for Unity
unity-scope-calculator - Calculator scope for Unity
unity-scope-chromiumbookmarks - Chromium bookmarks scope for Unity
unity-scope-clementine - Clementine scope for Unity
unity-scope-colourlovers - COLOURlovers scope for Unity
unity-scope-devhelp - devhelp scope for Unity
unity-scope-deviantart - deviantART scope for Unity
unity-scope-firefoxbookmarks - Firefox bookmarks scope for Unity
unity-scope-gallica - gallica scope for Unity
unity-scope-gdrive - Google Drive scope for Unity
unity-scope-github - GitHub scope for Unity
unity-scope-gmusicbrowser - gmusicbrowser scope for Unity
unity-scope-googlenews - Google News scope for Unity
unity-scope-gourmet - Gourmet Recipe Manager scope for Unity
unity-scope-guayadeque - Guayadeque scope for Unity
unity-scope-home - Home scope that aggregates results from multiple scopes
unity-scope-manpages - Manual pages scope for Unity
unity-scope-musicstores - Ubuntu One music store for unity
unity-scope-musique - Musique scope for Unity
unity-scope-openclipart - OpenClipArt scope for Unity
unity-scope-openweathermap - Openweathermap scope for Unity
unity-scope-soundcloud - SoundCloud scope for Unity
unity-scope-texdoc - Texdoc scope for Unity
unity-scope-tomboy - Tomboy scope for Unity
unity-scope-video-remote - Remote videos engine
unity-scope-virtualbox - VirtualBox scope for Unity
unity-scope-yahoostock - Yahoo! Finance scope for Unity
unity-scope-yelp - Help scope for Unity
unity-scope-zotero - Zotero scope for Unity
unity-scopes-runner - desktop runner for misceallenous scopes
unity-scope-launchpad - Launchpad scope for Unity
unity-scope-sshsearch - SSH search scope for Unity


Limited Internet Access After Setting a Satic IP Address in Server 14.04

I found the answer myself but I don't understand why it worked.  I installed the graphic network manager and re-entered the data from the network/interfaces file.

When I rebooted, I found that FireFox could access any URL I entered.  It appears the the graphical tool does something the DNS server address that the Network/interfaces file does not.

I hope this will help others.


How to access windows folder (that installed on virtualbox) via Ubuntu?

First you have to make sure that have install Guest Additions. From the Virtual Box's menu go to Devices → Install Guest Additions.

With Guest Additions installed you may now go ahead and define the shared folder(s).


You can get the options easily like this (you could look in the source package but this is way less work):

$ sudo apt-get install php5-dev
$ php-config --configure-options

--prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2
--with-config-file-scan-dir=/etc/php5/apache2/conf.d --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man
--disable-debug --with-regex=php --disable-rpath --disable-static --with-pic
--with-layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-sysvsem
--enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype
--with-db4 --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext
--enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets
--enable-wddx --with-libxml-dir=/usr --with-zlib --with-kerberos=/usr
--with-openssl=/usr --enable-soap --enable-zip --with-mhash=yes --with-system-tzdata
--with-mysql-sock=/var/run/mysqld/mysqld.sock --enable-dtrace --without-mm
--with-curl=shared,/usr --with-enchant=shared,/usr --with-zlib-dir=/usr
--with-gd=shared,/usr --enable-gd-native-ttf --with-gmp=shared,/usr
--with-jpeg-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6
--with-png-dir=shared,/usr --with-freetype-dir=shared,/usr
--with-vpx-dir=shared,/usr --enable-intl=shared --without-t1lib
--with-ldap=shared,/usr --with-ldap-sasl=/usr --with-mysql=shared,/usr
--with-mysqli=shared,/usr/bin/mysql_config --with-pspell=shared,/usr
--with-unixODBC=shared,/usr --with-recode=shared,/usr --with-xsl=shared,/usr
--with-snmp=shared,/usr --with-sqlite3=shared,/usr --with-mssql=shared,/usr
--with-tidy=shared,/usr --with-xmlrpc=shared --with-pgsql=shared,/usr

See man php-config for even more options.


Is it possible to save session in Ubuntu?

As of Natty you can not. Is was dropped due to flaws that could not be addressed and because hibernation/suspend actually does this better.

From the announcement:

  Hey fellow desktop lovers,

  Here is a notice on what we decided during the Rally: we drop session
  saving from natty in Ubuntu. The disablement is already effective in
  natty.

  What was the option about?

  The option was about launching on session start, the applications
  which were running when you close your session, and getting them in
  the exact same state than when they were closed.

  It was available through gnome-session-properties in a dedicated tab.
  It was possible to choose there to save right now all opened
  applications or to do that everytime on session close.

  Why removing it?

  We saw a lot of side effects during the previous cycles when we
  started to use multiples session (like in UNE, desktop session and
  such):
  - the saved applications contains the list of all running application, including the window manager, the panel and such… Consequently, we got
  a lot of patches and hack to avoid saving mutter, compiz, metacity,
  and the panels in lucid and maverick, so that when someone wanted to
  start a session, the required components from the session will indeed
  been launched instead of the saved one.

  We tried last week to change the desktop order but it went quite wrong with a lot of settings and we had to revert it.
  In addition to that, session saving never really worked with all the default applications we have (for instance, openoffice, firefox…) and
  even with supported applications like gedit: the opened documents
  weren't started again, making the feature quite useless.

  And now?

  As there is no strong intend to solve that in the short term and we
  need to focus on other parts of the desktop area first, we decided
  than instead of shipping a broken feature (there was already a lot of
  side effects people using this feature encountered that cycle, and
  time to debug it, to find it was coming from a saved session was quite
  expensive…) to unable it for natty. With that, it will enable us to
  ensure a first class experience in natty on the ubuntu desktop,
  without getting a lot of upgrade failures and people rebooting getting
  a blank background.

  I still personally think that this feature can be really good addition
  to Ubuntu default experience if we can take time to make it very
  polished as well as working for most of - if not all - major
  applications (at least, all applications by default on the CD). If
  someone wants to jump in this hard and long task, he's more than
  welcome to discuss it either on this mailing list or in the #ubuntu-desktop channel on freenode.

  Thanks for your attention,

  Didier Roche


simplescan core dumps on Ubuntu 16.04 when starting scan from Brother MFC L2750DW USB

from this index page of Brother Linux Support http://support.brother.com/g/s/id/linux/en/index.html?c=us_ot&lang=en&comple=on&redirect=on

one can access the FAQ page for scanners http://support.brother.com/g/s/id/linux/en/faq_scn.html?c=us_ot&lang=en&redirect=on

3 things to check on:

1) http://support.brother.com/g/s/id/linux/en/faq_scn.html?c=us_ot&lang=en&redirect=on#f00107 check libusb-0.1-4 is installed .. even if networked! Install with sudo apt install libusb-0.1-4

2) http://support.brother.com/g/s/id/linux/en/faq_scn.html?c=us_ot&lang=en&redirect=on#f00101 Copy the specified files under /usr/lib64/ to /usr/lib/. Hint: your device is brscan4

so

sudo sudo cp /usr/lib64/sane/libsane-brother4.so.1.0.7 /usr/lib/sane

sudo cp /usr/lib64/sane/libsane-brother4.so /usr/lib/sane

sudo cp /usr/lib64/sane/libsane-brother4.so.1 /usr/lib/sane

3) if usb-connected; needs udev rule

if networked, check all here http://support.brother.com/g/s/id/linux/en/instruction_scn1b.html?c=us_ot&lang=en&redirect=on

....... yes, it could all be a lot simpler ..


Wifi signal drops out at random (apparently) moments

interesting issue!

I would take a closer look at your wireless signal strength.  If it is particular week, any "metallic" object could have interference.

More likely is clashing wireless channels - for the UK, most routers default to wireless channel 1.  Try changing to either 6 or 11.


How to install/use "icheck" and "ncheck" in Ubuntu 16.04

You can run those checks once you ran debugfs /dev/sdxy.

Those are implemented in it.


Asus Laptop Touchpad Not Working on Ubuntu 14.04 or Greater Versions (Elantech Touchpad)

Open Terminal and run the following command

sudo nano /etc/default/grub

Find the line with text "GRUB_CMDLINE_LINUX_DEFAULT" and modify it as given bellow:

GRUB_CMDLINE_LINUX_DEFAULT="i8042.reset quiet splash"

Now update the grub to make the changes effect by running the update-grub command given bellow:

sudo update-grub

Now restart your laptop to make the touchpad work.


How do i dual boot windows 10? (With ubuntu first)

Manually create a separate partition for windows to install to, and then just insert the disc with burned iso and somewhere during installation, choose to install windows to that partition. This is the only way that worked for me, if I remember right.
By the way, have you bought the license?


Black screen on boot and wake - HP Pavilion Dv6

I have a DV6. In fact I'm on it at the moment.

I don't know what variant of the DV6 you own. I'm assuming you have a variant with the Nvidia or ATI card. Go to SOFTWARE SOURCES and the last tab should be proprietary drivers. Go ahead and enable the recommended driver. The ADDITIONAL DRIVERS option has be removed as it appears that JOCKEY-GTK has been merged with SOFTWARE SOURCES. Cheers.


Unable to open/install 12.04 after downloading

Have you tried using Furious ISO Mount?
https://apps.ubuntu.com/cat/applications/furiusisomount/
I think this may help you.


This addon is not available for Ubuntu, but you can compile it by following PKGBUILD from ArchLinux:
sudo apt-get install cmake extra-cmake-modules libkf5kio-dev libkf5kdelibs4support-dev

cd ~/Downloads
wget https://github.com/Akimkin/kf5-kio-ftps/archive/v0.3.1.zip
unzip v0.3.1.zip
cd kf5-kio-ftps-0.3.1
cmake . -DCMAKE_CXX_FLAGS="-I/usr/include/KF5/KDELibs4Support $CXXFLAGS"
sudo make install

After this the ftps:// will be listed in the Tools → New Net Connection.


Ubuntu 14.04 can't mount exFAT external hard disk

Test this:

Open a terminal.  (Ctrl+Alt+T).

Run it:

$ sudo -i
# apt-get update
# apt-get install --reinstall exfat-fuse exfat-utils
# mkdir /media/user/exfat
# chmod -Rf 777 /media/user/exfat
# fdisk -l
%%Assuming the external drive partition is /dev/sdb1
# mount -t exfat /dev/sdb1 /media/user/exfat

Replace the /dev/sdb1 with the exact file path to your external hard drive partition.

To unmount the exFAT external drive:

$ sudo -i
# umount /media/user/exfat


Memory full, mostly taken by "shared", GUI unresponsive

This line

udev                 7.8G  7.8G     0 100% /dev

was indeed a hallmark of the problem. This mount should probably never be 100 % filled. Having read High SHMem memory usage! I found that bootchart had filled this completely. After uninstalling bootchart and deleting /dev/.bootchart everything is back to normal, including the shared memory usage:

              total        used        free      shared  buff/cache   available
Mem:       16326212     3258332     7929904     1177272     5137976    10981178
Swap:             0           0           0


Universal (across DEs) file indexing (desktop search) and launcher?

Several launchers could work
Synapse
You can try synapse which is an application launcher activated by a customizable hotkey. From the synapse website

Synapse is a semantic launcher written in Vala that you can use to start applications as well as find and access relevant documents and files by making use of the Zeitgeist engine.

It doesn't support indexing file contents. It does, however show recent files matching your search term (through Zeitgeist).
Launchy
http://www.launchy.net/

Launchy is a free cross-platform utility designed to help you forget about your start menu, the icons on your desktop, and even your file manager.

Unsure whether it support indexing file contents


Problem with upgrade from 11.04 to 11.10

I think you have have to re - install it because Ubuntu might not have installed some important files which are causing you this problems. I would not recommend you to directly update but instead to download the iso, burn it, boot it, and install it.

First charge your laptop fully. Then boot from USB and install it.
I recommend you to read these articles :

  https://help.ubuntu.com/community/Installation
  https://help.ubuntu.com/community/Installation/FromUSBStick


Introduction

The information that you see in login to TTY typically is provided by /etc/update-motd.d/. Simplest approach would be to run those scripts and give output to a GUI window, however, some of those scripts require root privilege as I found. The answer below, however, requires no root privilege and provides very simple greeter window.

The code is rough around the edges, probably could use more polish, but it achieves desired effect. I may improve this code eventually to add more features and better look, but for now lets call it release 0.1 :)

Usage

The usage of this program is very simple : python3 greeter_window.py

The command is meant to be added to Startup Applications to appear upon user's login. Please see the related question on how to add a command as Startup Application: https://askubuntu.com/a/48327/295286

Source code

Also available on GitHub

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk,Gdk
import subprocess
import psutil
import os

class  GreeterWindow(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self,title="Welcome")
        name = self.get_os_name()
        grid = Gtk.Grid()
        grid.set_border_width(25)
        self.add(grid)

        greeting = Gtk.Label("Welcome to "+name+"!\n\n")
        grid.add(greeting)

        sysinfo = [ str(i) for i in self.get_system_info()]
        fields =  ['Load Avg:','Memory %:','Swap %:',
                            '/ usage %:','Process count:','User count:'
        ]
        lines = [ fields[i] + " " + sysinfo[i] for i in range(len(sysinfo))]

        lines.append( '\nIP addresses:\n' + self.get_ip_addresses()  )
        lines.append('\n\n' + self.get_updates())

        label1 = Gtk.Label("\n".join(lines))

        grid.attach_next_to(label1,greeting,Gtk.PositionType.BOTTOM,1,2)
        #grid.add(label1)
        button = Gtk.Button(label="Got it !")
        button.connect("clicked", self.on_button_clicked)
        grid.attach_next_to(button,label1,Gtk.PositionType.BOTTOM,1,2)

    def get_updates(self,*args):
        cmd = "/usr/lib/update-notifier/apt-check --human-readable".split()
        return self.run_cmd(cmd).decode().strip()

    def on_button_clicked(self,*args):
        Gtk.main_quit()

    def get_ip_addresses(self,*args):
        cmd = ['ip','-o','addr','show']
        result = self.run_cmd(cmd)
        ipaddr = ipaddr_str = None

        if result:
            ipaddr = [ (i.split()[1],i.split()[3])
                       for i in result.decode().strip().split('\n')

            ]
            ipaddr_str = "\n".join([str(i[0]) + " " + str(i[1])
                                    for i in ipaddr
            ])
        return ipaddr_str

    def get_os_name(self,*args):
        with open('/etc/os-release') as f:
             for line in f:
                 if line.startswith('PRETTY_NAME'):
                     return line.split('=')[1].replace('"','').strip()

    def run_cmd(self, cmdlist):
        """ utility: reusable function for running external commands """
        try:
            stdout = subprocess.check_output(cmdlist)
        except subprocess.CalledProcessError:
            pass
        else:
            if stdout:
                return stdout

    def get_system_info(self,*args):
        load = os.getloadavg()
        virtmem = psutil.virtual_memory().percent
        swapmem = psutil.swap_memory().percent
        disk_usage = psutil.disk_usage('/').percent
        num_procs = len(psutil.pids())
        user_count = len(set([ i.name for i in  psutil.users()]))
        return [load,virtmem,swapmem,
                disk_usage,num_procs,user_count
        ]

win = GreeterWindow()
win.connect("delete-event", Gtk.main_quit)
win.set_position(Gtk.WindowPosition.CENTER_ON_PARENT)
#win.override_background_color(Gtk.StateType.NORMAL, Gdk    .RGBA(225,225,0,1))
win.resize(350,350)
win.show_all()
Gtk.main()


How do I scan documents on Ubuntu Linux?

i'm a newbie
but think you have to install SANE
then I scan in terminal with "scanimage >fileName.pnm"


How can I set 'Print to File' as my default printing option?

Stop cupsd by running

sudo stop cups

Then edit /etc/cups/printers.conf with your favourite editor.

Find the line that says

<DefaultPrinter somename>

And change it to

<Printer somename>

Then start cupsd with

sudo start cups

And that should remove the default printer thus reverting print to file as the default.


Any way to manually make a bootable USB from ISO?

This is a bit destructive, but works all the time. It will write everything to the /dev/sdb (which is the usb device. )

sudo dd if=/path/to.iso of=/dev/sdb bs=16M

read the manpage of dd


I would consider a plugin like Auto Resize Image.


How to solve the conda virtual env and system env conflict on import cv2?

You can set the PATH in .profile like you do in .bashrc too, so apps will try to find lib installed in conda envs as well.


gnome-terminal --disable-factory support problem

If you really need multiple instances of gnome-terminal process running (but why should you?), follow the steps at https://wiki.gnome.org/Apps/Terminal/Debugging except for the gdb part.


Of course you will not have the package if you didn't have the package in your list cache. Normally the easiest method is using the meta-packages instead:

apt-cache depends linux-headers-generic
linux-headers-generic
  Depends: linux-headers-3.8.0-31-generic
  Conflicts: linux-headers-generic:i386

Or better yet to install both headers and image from the same version use the linux generic package:

apt-cache rdepends linux-headers-generic
linux-headers-generic
Reverse Depends:
  linux-generic

apt-cache depends linux-generic
linux-generic
  Depends: linux-image-generic
  Depends: linux-headers-generic

So, do sudo apt-get update && sudo apt-get install linux-generic then reboot the system to get the most updated headers and image for your system.


I had a lot of problem for for update my Lol on Ubuntu, the patcher was blocked when it was 270 Mb remaining. i tried a lot of solution and nothhing work. I fix this problem with a simple copy/paste from a Lol who worked. You should Uninstall the game, and Reinstall with Play on Linux. When POL ask you to launch the game, at this moment you just replace the folder Rads and here we go !
Enjoy


I just troubleshooted this exact problem. I too have an AMD card. Try installing Ubuntu 20.10. I thought 20.04 was the latest, but its not. Apparently 20.10 has more support for AMD https://releases.ubuntu.com/20.10/


Try these steps:

Remove lock file:

sudo rm /var/lib/mongodb/mongod.lock

Repair the mongodb:

mongod –repair

Start the mongodb:

sudo systemctl start mongodb

Start the mongo client :

mongo

Source:

https://stackoverflow.com/questions/13312358/mongo-couldnt-connect-to-server-127-0-0-127017


How to show machine and username on X-forwarded windows

Your ~/.bashrc can tell if it's a ssh connection by looking at environment variables:

walt@bat:~(0)$ env | grep SSH
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
walt@bat:~(0)$ ssh $USER@localhost
walt@localhost's password:
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-48-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 packages can be updated.
0 updates are security updates.

Last login: Sun Apr 21 11:09:24 2019
walt@bat:~(0)$ env | grep SSH
SSH_CLIENT=127.0.0.1 49228 22
SSH_TTY=/dev/pts/5
SSH_CONNECTION=127.0.0.1 49228 127.0.0.1 22
walt@bat:~(0)$ logout
Connection to localhost closed.

walt@bat:~(0)$

Then, you can use xttitle to set the window title (sudo apt install xttitle).

Something like

if [[ -n "$SSH_CONNECTION" ]] && [[ -n "$DISPLAY" ]] ; then
    xttitle "SSH Connection $USER@$(hostname)"
fi


Package 'minicom' placed in 'universe' repository. Check if that repository is enabled. Your /etc/apt/sources.list must contain something like this:

deb http://archive.ubuntu.com/ubuntu/ precise universe
deb http://archive.ubuntu.com/ubuntu/ precise-updates universe

Don't forget sudo apt-get update after changing the sources.list


Stuck with Unity 2d after installing 12.04LTS, no idea how to get to Unity 3d

I had the same problem with about the same hardware (GT520M instead). You need to install a graphics driver for the card. Installing bumblebee will let you use the Intel HD graphics by default (to save battery time) and the option to run applications with the Nvidia graphics card (using optirun). First, add the bumblebee repository and update:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update

Then, you can either install the open-source driver (Nouveau):

sudo apt-get install bumblebee

Or, for the proprietary Nvidia driver:

sudo apt-get install bumblebee-nvidia

Then, reboot and unity 3d should be working. To launch applications using the nvidia card simply do:

optirun <program name>

You can see the Ubuntu bumblebee page you more info. Hope this helps!


Python3 Not working after upgrading to ubuntu 20.04

There will not be alternatives if there is only one version of something installed on your system. Python 3.8 ships default with 20.04, and you can verify it's installed by listing the contents of /usr/bin:
$ ll /usr/bin/pyth*

lrwxrwxrwx 1 root root       9  3月 13  2020 /usr/bin/python2 -> python2.7*
-rwxr-xr-x 1 root root 3694632  4月  7  2020 /usr/bin/python2.7*
lrwxrwxrwx 1 root root       9  3月 13  2020 /usr/bin/python3 -> python3.8*
-rwxr-xr-x 1 root root 5486352  7月 28  2020 /usr/bin/python3.8*
lrwxrwxrwx 1 root root      33  7月 28  2020 /usr/bin/python3.8-config -> x86_64-linux-gnu-python3.8-config*
lrwxrwxrwx 1 root root      16  3月 13  2020 /usr/bin/python3-config -> python3.8-config*
-rwxr-xr-x 1 root root     384  3月 28  2020 /usr/bin/python3-futurize*
-rwxr-xr-x 1 root root     388  3月 28  2020 /usr/bin/python3-pasteurize*
-rwxr-xr-x 1 root root    5902  1月 14  2020 /usr/bin/python3-wsdump*

What do you see when you check the version of Python3?
$ python3 --version

Python 3.8.5


You can do this as follows :

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install --reinstall unity


Ubuntu 20.04 Wifi becomes very slow when bluetooth headphones connected (Qualcomm Atheros)

I'm having the same problem. According to this, it seems to be an interference as The WiFi 2.4 GHz and bluetooth shares the same frequency. Of course, This problem didn't happend to me when I was on Windows (Or, at least, I didn't notice). Try to check If you can configure your router to use 5 Ghz Wireless band.


Ubuntu Desktop shortcuts 'No longer exists'

It looks like you create shortcuts to ntfs partitions, which are not permanently mounted. You probably click on a Windows partition in file manager, and it is mounted. When you boot next time, you get this error message. To avoid it you can edit /etc/fstab to mount Windows partitions at start automatically.

This will help to underatand it

This is another manual


Is it possible to fully enable 3D acceleration for my old ATI Radeon X1650 Pro? (RV530)?

You card needs to use the open source drivers that are not as fast as the ATI ones. Since ATI does not support your card anymore in Linux there is not much you can do.
Taken from wiki.cchtml.com:

Radeon (Catalyst Legacy & Open Source)
ATI/AMD dropped Catalyst support for these cards in Catalyst 9-4. These cards are supported with the legacy ATI 9-3 Catalyst release, but you MUST use a kernel 2.6.28 (or earlier) and Xserver 1.5 (or earlier). For example, you can use Catalyst 9-3 if you're running Ubuntu 8.04 or Debian Lenny/5.0. Open source support is good and 3D is still improving.

RV530/RV560 Radeon X1600/X1650/X1700, M56, M66

Running your games with compiz disable (or using Ubuntu2D instead of the default Ubuntu desktop) will help but not by much.
Think that is all you can try.


How do I install Psychonauts from the recently released Humble Bundle V?

Ideally, you install via the software center.

Go to the unique url you got for your bundle (something like https://www.humblebundle.com/downloads?key=notarealkey)

2 Click on the orange button right above the direct downloads.

3 Then you need to log in with your Ubuntu single sign on.

Choosing Psychonauts from the list that appears will open the SoftwareCenter where you just follow the procedure for buying the game (you won't actually be charged since youre purchase is already activated).


Create a folder "Photo" inside all directories recursively

You can achieve it using a single find call.

find . -name 'Photo' -prune -o -type d -exec mkdir {}/Photo \;

The part -name 'Photo' -prune -o tells to not recurse to existing (and newly created) Photo directories: If the found file (or directory) has the name Photo, stop processing it (-prune). In the other case (-o), continue with directories (-type d) and execute (-exec) the command.


Is it safe to disable baloo_file_extractor in KDE Plasma 5?

It's safe to use balooctl disable.

You need to be careful while installing software. Pay attention to what's being installed and to what's being pulled in by way of dependencies. For example, you may have installed dolphin, the file manager. That would pull in libkf5baloo5 and libkf5baloowidgets5 among other things. gwenview, an image viewer, would pull in libkf5baloo5.

If you're interested in chasing things down, run apt rdepends libkf5baloo5 and apt rdepends libkf5baloowidgets5 and examine the output for software packages you may have on your system.

Under normal circumstances in Kubuntu 18.04, which includes baloo by default, use of resources is minimal after the initial indexing process. RAM and CPU usage are not normally a concern. But there are reports of baloo running amok even on pure Kubuntu! I use it without problems for indexing both filenames and file contents.


How to purge package configuration file?

To remove a package completely, you can use

apt-get purge packagename

In your case this would be

apt-get purge matlab-support


Start programs without needing an extra terminal and from the desktop

You may create desktop shortcut for often used programs, no need to open terminal. Create shortcut by this commands:

cd ~/Desktop
nano filezilla.desktop

And put this into editor

[Desktop Entry]
Terminal=false
Name=filezilla
Exec=filezilla
Type=Application

For Teamspeek use following Exec= line in desktop shortcut:

Exec=bash -c 'cd /folderofteamspeek && ./ts3client_runscript.sh'


It is possible to configure systemd-resolved to do this, but not through netplan.  E.g. systemd-resolve -i ens2 --set-dns=10.0.0.2 --set-domain=~mydomain.com

You should also be able to configure this statically with a .network file; see systemd.network(5) for information.


How to track time using zeitgeist in Ubuntu 20.04

You can download this zeitgeist-explorer package with dependencies from 18.04 LTS repository and install it manually with
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/z/zeitgeist/python-zeitgeist_1.0-0.1ubuntu1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/z/zeitgeist-explorer/zeitgeist-explorer_0.2-1.1_all.deb

sudo apt-get update
sudo apt-get install ./python-zeitgeist_1.0-0.1ubuntu1_all.deb ./zeitgeist-explorer_0.2-1.1_all.deb

and then use as it was planned.


How to get out of grub rescue and install windows?

If you are totally getting rid of Ubuntu from your system, the grub rescue screen does not matter. If you are using a bootable USB and you still get to grub rescue it means you are not booting from your USB at all.
First of all you need to find out why you are not able to boot from your USB and fix that.
After this you should boot from the Ubuntu live CD and format the hard disk to something windows can read (NTFS).
Finally boot the computer to a Windows installer.


How to find the version of Ubuntu before booting it?

Yes, you can find the version,codename,architecture of Ubuntu OS exists in that USB drives without booting it.
GUI Way
Insert your flash drive and open README.diskdefines file present in that partition by double-clicking. First line on the file shows the version,codename,architecture of Ubuntu present inside the flash drive.
Command Line
awk -F"DISKNAME " '{ print $2; exit}' /mountpoint/README.diskdefines

/mountpoit - represents the directory where your USB drive is mounted.
Example:
 $ awk -F"DISKNAME " '{ print $2; exit}' /media/avinash/478E-0362/README.diskdefines
 Ubuntu 12.10 "Quantal Quetzal" - Release i386

My USB drive is mounted inside /media/avinash/478E-0362 directory.


How can I improve Ubuntu overall system performance?

If you are "the average Joe", then just don't do anything. Don't fiddle with programs or settings which you don't understand. Don't follow tips posted on the Internet how to improve the performance of your system by compiling some software yourself or by installing a selfmade kernel.

Some of those tips may give you minor performance improvements indeed, but some of them will also give you a real headache, if you changed the wrong setting, disabled the wrong service, installed the wrong driver etc.

Therefore just be happy about your nicely running system. And BTW: Why would you need those 5 percent performance improvements? It will not lead to typing your office documents faster or editing your holiday photos in half the time.

And just to be clear: If you are not the average Joe, but a developer/hardcore gamer/... needing any cycle you can get, you are not the target of this comment...


How do I disable the default Broadcom Wireless driver in favor of a Windows driver

I suggest you run, in a terminal:

sudo lshw -C network

Find the driver for the internal (Broadcom?) device. Then unload and blacklist its driver. lshw will report, for Broadcom devices, either 'driver=wl0' or 'driver=b43-pci-bridge.' The relevant drivers to be blacklisted are wl or b43. Assuming it is wl, for example:

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

The procedure is the same for b43.

Next, alias the ndiswrapper driver to the USB device. Find its usb.id with:

lsusb

You may find something like: Bus 002 Device 003: ID 13b1:003a Linksys

We will use the usb.id 13b1:003a to ceate an alias to the driver:

sudo ndiswrapper -a 13B1:003A bcmwlhigh5

Of course, substitute your exact details here. If unsure, post your details and we'll help.


No desktop after cleaning stuff with Ubuntu tweak

You can open a terminal using "Ctrl,Alt & T" or a TTY using "Ctrl,Alt & F1" then try using the following command :

 unity --reset

See also:

How do I reset my Unity configuration?


Communication between my terminal and another ssh terminal

SSH is only transferring the keyboard input and screen output between local and remote machine. Nothing else.
What you can do to have buttons from Pi#2 influence Pi#1 depends on what these buttons do.
If these buttons are just typing something on the keyboard, then, when you connect via ssh from Pi#2 to Pi#1 (and have terminal with that connection active while pressing the buttons), they will actually "type" on Pi#1.
If the pressing of a button runs some command on Pi#2 (let's say pressing of a button causes /home/user/myscript.py to run) then, if you have the same script on Pi#1 and want to run it too, you need to reconfigure your button so that it runs two commands instead of one:
/home/user/myscript.py
ssh pi_1 /home/user/myscript.py

The first command will run the script on your local computer (that is, Pi#2), the second command will connect to Pi#1 over ssh and tell it to run the script there. For this to work, you must have configured key-based ssh authentication between Pi#2 and Pi#1 so that ssh doesn't ask for password.
If there is some application that directly responds to pressing of a button, you have to rewrite that application so that it uses something like RPC to directly communicate with application running on another Pi and call appropriate procedures/functions there. That has nothing to do with ssh.
As for Internet connection, if you only want to communicate between those two machines, you don't need an Internet connection. However, you must properly assign IP addresses to both machines and it is recommended to put their hostnames and IP addresses into /etc/hosts file to avoid long delays upon setting up a connection caused by failing DNS lookup (or you can disable the DNS lookup altogether).


Will dd if=/image.iso of=/dev/sdb copy the image onto pendrive or burn it?

You can use dd to "burn" (actually its extracting the files to the USB)  your iso's to an USB drive and make the pendrive bootable. But this only works if your distro supports it.

If your installing Ubuntu, then your good to go.


Permission denied when trying to run pip install ipython

You can have both the default version of IPython from the default Ubuntu repositories and IPython 2.3.1 installed at the same time.

Install IPython from the default Ubuntu repositories using the following command:
 sudo apt-get install ipython ipython3 # ipython is available in 18.04 and earlier

Install IPython 2.3.1 in a virtual environment. virtualenv allows you to create a sandboxed and isolated environment where Python packages can be installed without interfering with other packages on the same machine. Install Python virtual environment creator (virtualenv):
 sudo apt-get install python-virtualenv virtualenv

Set up a virtual environment for Python (Information about virtualenv basic usage), activate your Python virtual environment from the terminal, and then install the current version of IPython using pip install.
 pip install --user ipython

This is working on my Ubuntu 14.04 using IPython from the default Ubuntu repositories and IPython 2.3.0 installed inside a Python virtual environment (virtualenv).


problem with call command on local terminal

You are not root on the second case. You should run sudo su or sudo -s to become root in the xfce4-terminal and try again the ai<tab><tab>

EDIT:
You should probably put this line at the end of /root/.bashrc

. ~/.bash_profile

More reading is here:
Why ~/.bash_profile is not getting sourced when opening a terminal?


Where can I find the Brother HL-2170W 64-bit printer driver?

This guy at: http://mikebeach.org/2010/06/ubuntu-and-brother-hl-2170w/
says there is a problem in 10.04 with a fault in the cups drivers, at least for the HL-2170W.

Text worked okay but printing graphics took a long time.  This was true for me.  I followed his advice precisely and now my pdf files are printing great.  I have only tested one page, probably should test a few more complex graphics but for now I'm a very happy camper.  So I wanted to share the wealth.

Lots of other people on the ubuntu forums seem to be complaining about slow printing so I suspect that it is not only the HL-2170W printer driver that is bad.  But step 8 in his instruction list will need to be changed, I think for printers other than HL-2170W.

Hope this helps.


howto link / execute / add to $PATH: python3.3.5 after manual installation in 12.04 LTS

Try this:

sudo ln -s /home/metin/python/python3.3.5/bin/python3.3 /usr/bin/python3.3.5

Not sure if your home path is correct, so if the command above fails you must symlink the binary located in your home folder to /usr/bin.


HLDS stands for Half-Life Dedicated Server: afraid it's nothing to do with running Steam on Linux, just running a server for Half-Life 2 engine-based games (Counter-Strike, TF2, etc).


You can use the Shadow function of NX. This gives the ability to view display 0 of the remote machine. You don't mention how NX isn't fulfilling the first requirement so I'm guessing you didn't know how to desktop share.
Example from http://ubuntuforums.org/showthread.php?t=835326:

/usr/NX/etc/server.cfg:
EnableFullDesktopSharing = "1"
EnableAdministratorDesktopSharing = "1"
EnableDesktopSharingAuthorization = "0"
EnableSystemDesktopSharingAuthorization = "0"

With this 4 changes look like this it worked to connect with the nx
client. In nxclient I choose "shadow" in configure-general-desktop.


MATLAB is proprietary software. You can't install it from standard distribution repository. You can download MATLAB from Mathworks web site (see this answer for detail).

Also you may find interesting open source program GNU Octave which compatible with MATLAB in many cases.


Newly opened windows won't get focused [mostly happens with Nautilus, Clementine and Atom Editor]

Focus Prevention Level of compiz prevents active windows from getting on top.

You'll need to turn Focus Prevention Off. To do that follow instructions below

Solution - 1

Run following command in terminal

dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 0

OR

Solution - 2

Install CompizConfig Settings Manager

sudo apt update && sudo apt install compizconfig-settings-manager

Then run CompizConfig Settings Manager.
Go to -> General > General Options > Focus & Raise Behaviour -> You will find: "Focus Prevention Level" set it to "Off"


Can I create a shell variable accessible everywhere in the system?

There is no "global environment variable space". If you want to make your data persistent, then you need to store it in some file. Example:

#!/bin/sh
# Path to the persistent storage file
file=~/name.txt

# If the persistent file exists, use its contents as name
if [ -e "$file" ]; then
    name=$(cat "$file")
else
    # Use a default value otherwise
    name="Bob"
fi

echo "Your name was: $name"
echo "What is your name?"
read new_name

# If a new (non-empty) name is given, save it to the file
if [ -n "$new_name" ]; then
    echo "$new_name" > "$file"
fi

If you want to make a variable available to every new process, then you can put it in /etc/environment (requires root privileges) or ~/.profile. Once you put it in these variables, you typically have to re-login. Unless it is absolutely necessary, I recommend against this approach. It puts the contents in the memory of every (new) process, so it is not suitable for storing passwords or large values.

  Can I make a variable in such a way that if I store a value in it,
  close the terminal and open another one, the value is still there?

Well, if you only want to expose the values to interactive shell sessions, then you can put it in your ~/.bashrc. Try it, append echo "Hello $USER" to the file. It will be executed every time you open a new shell. It will not be executed for graphical logins and such due to a line such as:

# If not running interactively, don't do anything
[ -z "$PS1" ] && return


How do I change the desktop background in Cinnamon?

I'm not sure why Nautilus changes the background. Nemo comes packaged with Cinnamon, but since you installed on top of Ubuntu, Nautilus is left as the default application. As such, some applications will call to Nautilus instead of Nemo, e.g. opening the Download directory from Chrome.

You can change your default file manager to Nemo by following:
How to set nemo as default instead of nautilus?

Once you change your default file manager, you may have to change your desktop back to what you want and/or reset your computer.


Follow the information here to add the drive to your fstab and then you should be able to use it as you asked.


Will Wubi Ubuntu installer conflict with my current Grub Menu?

No, it won't conflict but Wubi won't show up in Grub either. Wubi adds itself to the Win XP boot menu, so to boot Wubi the process would be:

Grub: Lubuntu or WinXP?
Choose WinXP
WinXP boot menu: WinXP or Wubi?
Choose Wubi
(you may then get a Wubi grub menu asking you to choose a kernel, recovery mode, etc.)


Problem with Using chntpw in Ubuntu to reset Windows 7 Password

The 0.99.6 version of chntpw is totally disfunctional: https://bugs.launchpad.net/ubuntu/+source/chntpw/+bug/1046622

I struggled more than a hour to find this out.

Try to use 0.99.5 instead, it works for me:

https://launchpad.net/ubuntu/karmic/i386/chntpw/0.99.5-0+nmu1


Black screen after installing the ATI driver

Install the xserver-xorg-video-intel and one of the fglrx packages from this PPA should work.

for more information about your problem check this


LibreOffice 5.1 doesn't integrate with Unity in Ubuntu 15.10

The fully supported edition of LibreOffice in Ubuntu 15.10 is version 5.0.
This tested version is available in the official Ubuntu 15.10 repositories.

Most probably LibreOffice 5.1 will be included in Ubuntu 16.04 LTS.
Unity integration should work fine after the final release in April.

The LibreOffice Fresh PPA is not an official Ubuntu repository.
It is an option for those, who want to use the latest software.

This - of course - may lead to the one or other minor issue.
It is also recommended to wait for the first point release.

You can decide whether to downgrade to version 5.0 or,
live with the situation as it is and use the latest edition.

Additional corresponding information :
LibreOffice fails to integrate with Unity

Update information 2016-03-02 :

LibreOffice 5.1.1 is now available in the LibreOffice Fresh PPA.
LibreOffice 5.1 integration with the Unity menu bar works now.


How do I stop the Unity launcher from hiding behind other windows?

I found this solution from comment #15 in an Ubuntu bug report:

  After this bug occurs, restarting unity by "unity& disown" in a terminal fixes the problem

There there is a duplicate bug here


No. Passwords should never be stored in log files.

Is there a reason why the current setup is not working for you? /var/log/ has loads and loads of log files.

3 important log files:

  /var/log/syslog logs generic system activity logs.

  /var/log/auth.log logs authentication related events are logged here.

  /var/log/faillog logs failed login attempts.


To my knowledge there isn't an Akamai-hosted version of the repos. I think that probably has something to do with the amount they charge and that most mirrors are organised through donated disk space and bandwidth.

You might do well to ask your local Loco what they're using. There is also a Facebook group that should be able to help you out:

https://www.facebook.com/pages/Ubuntu-Nepal/12277099508