Touchpad and keybroard problems after 16.04.1 installation

The problem was that my battery wasn't functional and after I replaced it the touchpad and keyboard are fine.


First things first: ssh is a way to remotely login to another computer. The shell (command line) you get after you ssh is (pretty much) the same as if you had opened a xterm in the remote machine. If offers no such way to move files.

However, the fact that the remote computer accepts ssh connections gives you some options to exchange files:

Use scp
To copy from your local computer to the remote, type, in the local computer:

scp /tmp/file user@example.com:/home/name/dir

(where /tmp/file can be replaced with any local file and /home/name/dir with any remote directory)

To copy from the remote computer to the local one, type, in the local computer:

scp user@example.com:/home/name/dir/file /tmp

Use sshfs
This is a little more advanced but much, much nicer (when the internet connection of both computers is good. If not, stick to scp)

You can "link" a directory from the remote computer to an (empty) directory of the local computer. Say you "link" the /some/remote/dir from the remote computer to /home/youruser/remotecomp in your computer. If there is a file /some/remote/dir/file in the remote computer, you can see it on /home/youruser/remotecomp/file. You can copy and mv as usual, and you can even alter remote files and dirs.

Note however, that when the connection ends, /home/youruser/remotecomp becomes an empty dir again, and you only keep in the local computer the files you copied to other directories

To achieve this:

1) install sshfs:

sudo apt-get install sshfs

2) create a empty dir

mkdir /home/youruser/remotecomp

3) "link" the two directories (the right term is mount)

sshfs user@server.com:/some/remote/dir /home/youruser/remotecomp

4) Enjoy

5) "unlink" the dirs

fusermount -u /home/youruser/remotecomp

If the local computer runs windows
You can find versions of scp for windows. See, e.g, winscp


How to make xterm to send the Alt key to emacs as Meta?

As seen in the Arch Wiki, you need to make Xterm to send the correct escaped key to the program:

If you use the Alt key for keyboard shortcuts, you will need this in your resource file:
XTerm*metaSendsEscape: true

So, just do:
echo 'XTerm*metaSendsEscape: true' >> ~/.Xresources

And restart your Xterm session.


Do I need clean my hard drive from Viruses before replacing Windows with Ubuntu?

Its better to remove your windows viruses before wiping your harddisk...

As you may know ,Guttman says that you need to wipe your harddisk 25 times write to zero to ensure that your harddisk is clean...

Anyway, It is possible to scan your windows partition..

Download and install Avast! Linux Home Edition.

Launch Avast and update its Database.

Now mount your Windows Partition.

Click on Selected folders and browse to your partition.

After you remove the viruses... Now you can install Ubuntu cleanly

Note that: Even you keep viruses it will never affect your ubuntu(linux) but i just mention the antivirus just to clean your hdd.


Automatically run graphical python script on startup

You might try something like this?

[Unit]
Description=Start some anaconda service (?)
Requires=graphical.target

[Service]
ExecStart=path/to/your/script

I personally haven't tested it, so you'll have to let me know if it works. For better reference here is the unit file page!

Also, make sure you enable the file when your done!


Can not Boot up laptop after Linux installation

Boot with Ubuntu Live USB. Install Ubuntu somewhere. Boot with Ubuntu, open Terminal (Ctrl+Alt+T) and run the command

sudo update-grub

Now restart your PC. You should see both Windows and Ubuntu options at GRUB boot menu.

That's all the help I can provide with the information you gave, hope it helps!


[This isn't really an answer, but I hope it will be in the near-future]

I'm also using a StoreJet drive. I've noticed that the kernel has a drive called ums-onetouch ( http://lxr.linux.no/#linux+v3.19.1/drivers/usb/storage/onetouch.c ) that is supposed to support the hardware button on Maxtor drives, and maybe it can be used to also support the StoreJet.

The driver currently has the Maxtor drives' identifiers hard coded, to it won't work out of the box, but maybe just adding the StoreJet identifiers will be enough to get it to work for the Transcend drives.


Nautilus moving items to Trash without asking for confirmation

No, Unity does not have a confirm delete box like windows.
Thats the reason the bin exist, so if you did make a mistake you can undo it by hitting restore.


Properly measure execution time for benchmarking

By default, there are two time commands on your system:

a bash shell keyword
This is called when you run time, you can get help about it with help time. If you want to tweak its output, read about the TIMEFORMAT variable in man bash.
a binary /usr/bin/time
If you want this you need to call it with its full path, you can get help about it with man time.

The /usr/bin/time binary comes with a nice -f, --format option which lets you choose the information in its output. The mentioned manpage has the full list of specifiers under FORMATTING THE OUTPUT, here are just some suggestions that may be relevant for you:

  K Average total (data+stack+text) memory use of the process, in Kilobytes.
  S Total number of CPU-seconds used by the system on behalf of the process (in kernel mode), in seconds.
  U Total number of CPU-seconds that the process used directly (in user mode), in seconds.

If S and U is what’s important in your case and you want those two on separate lines, your command line could look like this:

/usr/bin/time -f "%S\n%U" /path/to/program

As S and U are available for bash’s time as well, this translates to:

TIMEFORMAT=$'%S\n%U' && time /path/to/program

It’s worth noting that the bash keyword is able to output milliseconds while the binary does only output centiseconds. The keyword may also be faster, as no external program needs to be called.

For an overview on the timing topic, I recommend reading man 7 time.


How do I add myself back as a sudo user?

During boot, press and hold the left Shift key, and you should see the GRUB menu.
Select the entry containing (recovery mode) and wait.
You should now be presented with a menu. Select:

remount    Remount / read/write and mount all other file systems

and wait for your file systems to get mounted with read/write permissions, then press Enter.

If this option doesn't appear or won't work, you can instead choose the root option and use the following command to mount the system partition:

mount -o remount /

You can check out which is your system partition with fsck command or by viewing /etc/mtab.

After successfully running the mount command (i.e. no error messages), proceed directly to step 5 below.
After choosing the remount option, the menu comes up again. Select:

root       Drop to root shell prompt

Now enter one of the following commands to re-add your user to the admin group (for Ubuntu 11.10 and earlier):

adduser <USERNAME> admin

or to the sudo group (for Ubuntu 12.04 and later):

adduser <USERNAME> sudo

Reboot and you should be able to use sudo again.


Libre office font spacing (kerning) issue

The weird letter spacing is due to bugs which have been resolved in LibreOffice 5.3.

At the time of writing, version 5.3.0 is available through a PPA, type the following into a terminal to ensure the latest version is installed:

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice


Custom Monitor Position in Xubuntu, monitors.xml Equivalent

I was having all sorts of multiple monitor problems in the last couple versions of xubuntu, which for some reason went away when I would log in with straight XFCE. Go figure.


How to run an action when clicking on an appindicator

An app indicator can only open its menu. It can't perform any other action and your program doesn't get notified when the menu is displayed.

You could either include some kind of "Update" menu item or find other events that trigger the update.


xrandr cannot find mode, but shows up in list

Only lower resolutions are allowed.
I needed sudo for newmode and addmode.
I edit the mode line, e. g. 1400x700_60.00 to 1400x700.
I wrote a sh script to set Resolution on each reboot.

Check with xrandr without Extension if addmode was successful.


Launchpad dailybuild source in subdirectory of branch

There is no way to do this from the recipe itself.

I would recommend doing the replacemented of . with pykeg from within debian/rules.


Search unix word in line and if it is there then delete from that word to end of line

To delete the word unix and all words that follow it on a line:

$ sed 's/[uU]nix.*//' File.txt

Linux and
Linux is also good,  then what about

s signifies a substitute command.  In this command sed matches the regex [uU]nix.* and replaces it with an empty string. [uU]nix matches either Unix or unix.  .* matches everything that follows.

Variations

The following will also delete any blanks that precedes unix:

sed 's/ *[uU]nix.*//' File.txt

The following will delete not just blanks that precede unix but tabs or any other whitespace that precede unix:

sed 's/[[:space:]]*[uU]nix.*//' File.txt

[:space:] matches any whitespace and is unicode-safe.

The following deletes the preceding whitespace but will also match any capitalization of unix such as Unix, uNix, uNIX, etc:

sed 's/[[:space:]]*unix.*//I' File.txt

I tells sed to match in a case-insensitive way.  Because this is a GNU extension, this version of the command will not be portable to MacOS or BSD.


How can I remotely participate in the UDS?

You should be able to find all the information you need to remotely participate here:

http://uds.ubuntu.com/participate/remote/


Ubuntu 12.04 can't install D-Link DWM-156 drivers

If your Ubuntu is on 32 bits, open a Terminal (with Ctrl+Alt+T), go in the folder where you saved .deb file (cd <*folder_where_is_deb_file*>) and run next command:

sudo dpkg -i 3g_modem_connect_DWM156_i386.deb

If Ubuntu is on 64 bits, run:

sudo dpkg -i 3g_modem_connect_DWM156_amd64.deb


Can't turn off sound notifications/alerts in ubuntu 17.10

So I didn't exactly find a solution but something close to it. This post 2 different alert sounds playing at once in Ubuntu 17.10 describes a similar problem and so I tried turning of all event sounds with dconf-editor in org.gnome.desktop.sound and now all system sounds are muted.


16.04.3 - Ubuntu does not register trackpad on HP 14-an013nr

Try installing a kernel > 4.8.
To install a new kernel (e.g. 4.15), go to http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/
and download

linux-headers-4.15.0-041500_4.15.0-041500.201802011154_all.deb

linux-headers-4.15.0-041500-generic_4.15.0-041500.201802011154_amd64.deb

linux-image-4.15.0-041500-generic_4.15.0-041500.201802011154_amd64.deb

Then run:
sudo dpkg -i linux-*.deb

Restart.


System Monitor is installed by default.

You can't find it because you probably have some filters turned on in dash or did not click "all applications" there.

You can start it in terminal by

gnome-system-monitor


Evolution  U1: How can I solve problem with syncing?

From the bug report I put in the comment post #44 includes a proposal for a fix

And the fix would be:
bzr get lp:~rodrigo-moya/ubuntu/natty/evolution-couchdb/idle-loading
cd idle-loading
bzr bd -- -b

(bzr is probably not installed. If you want to try this first do sudo apt-get install bzr)
Use at own risc!


Dual boot with Ubuntu and Windows on separate disk

Installing Ubuntu on Different drive than Windows 10
GRUB will only boot Windows and Linux if they are installed in the same Legacy/UEFI mode

Determine Windows 10 boot mode. Type System Information in Windows Start panel. Under "BIOS Mode" it will say if Windows is Legacy or UEFI.

Boot a Ubuntu 20.04 Live USB in the same mode as Windows boot mode. A USB made with Rufus MBR partition scheme option will boot either way. If Windows is UEFI use Rufus GPT scheme.

Install Ubuntu to it's own SSD using the "Something else" option.

if asked, create a 500MB EFI system partition on the Ubuntu SSD.

Select the Ubuntu SSD for bootloader installation.

Continue installation as directed.

When complete, set the Ubuntu SSD as first hard drive, run sudo update-grub to ensure all bootable drives are on the boot menu.


firefox crashes when I use BASH (ubuntu 12.04 lts)

I'm interpreting this as a question about how to effectively report and investigate such a bug, since actually working on bugs in generally off-topic for Ask Ubuntu (and bug reports are always off topic here).

The best thing to do is to:

Learn how to search for, and how to report, bugs in Ubuntu.
Make sure Apport is enabled.
Reconfigure Apport to submit data to Launchpad for a bug report instead of submitting it for anonymous statistical analysis (since you're running 12.04).

You may want to undo this afterwards, if you don't want to file bug reports most of the time something crashes.

Reproduce the crash by running Firefox, starting a Terminal, and using it.
Let Apport submit crash data.

If Apport doesn't come up automatically, this might not really be a crash. It mgiht be some other kind of problem. (Sometimes a program quits, and it shouldn't have, but it's not a crash.) If that happens, you can get more information by running firefox from the Terminal.

A browser window will come up where you can submit a bug report. Clearly and thoroughly describe what is going on.


How to preseed installing grub to a device during installation without prompt?

Higher up in your preseed file, this line should appear:

d-i debconf/priority string critical

This should ensure that only 'critical' questions are asked

This line alone seems sufficient to provide enough info for the bootloader to be put on /dev/sda;

alter to suit your needs

d-i grub-installer/bootdev string /dev/sda

As for your other question, the line <-- 0 ok is merely a return value (success); you can ignore it.

Hope this helps.


Ubuntu 15.10 Server under VirtualBox 5.0.8, install won't finish

May have been some inefficient partitioning from the installer causing it. I re-did partitions manually with more space for root, and now it all works.


How can I know which GPU my VGA output uses?

You could use lshw:

sudo lshw

The unused VGA output will probably show up as "UNCLAIMED".


Impossible to get information from update manager

only karmic and maverick are available at this location..
as you can see here.. http://ppa.launchpad.net/dylanmccall/ppa/ubuntu/dists/
so maybe use another location.. or another distribution..

sólo karmic e maverick están disponibles en este lugar .
como se puede ver aquí.. http://ppa.launchpad.net/dylanmccall/ppa/ubuntu/dists/
así que tal vez utilice otro lugar .. u otra distribución ..


Can a windows backup be restored in Ubuntu

If during the Ubuntu installation you chose to use the entire disk, then yes you would have lost your Windows partition.

If you want to dual-boot your system with Windows and Ubuntu, you have to first:

Live boot using Ubuntu
Wipe your whole harddrive using Gparted
Create two partitions: one for Windows and one for Ubuntu(No
filesystem type needed)

Now reboot you system with the Windows boot media and install it to one of the partitions. Leave the other partition as free space.

When Windows is done installing, reboot using the Ubuntu cd and install this system on to the secondary partition.

It's very important that you install Windows before Linux if you want to use Grub as your boot selector.


Most likely that is the space used by http://www.nongnu.org/ext2-doc/ext2.html#DEF-SUPERBLOCK .


Ubuntu 12.04 stopped suddenly to recognize all usb storage.

I'm not sure why Nautilus isn't showing the drives. It looks like they're showing up as sdb, so you can attempt to force mount the partitions by using sdb1, sdb2, etc. Assuming you're mounting the first partition, first make a folder somewhere (I'll use /mnt/sdb1 for this example), then run:

sudo mount /dev/sdb1 /mnt/sdb1

Then cd into /mnt/sdb1 and see if the files are showing up. Any error you get will help you diagnose the real problem. I would normally guess here that the filesystem might be corrupt, but that's unlikely to be true for two separate drives.


From where to start Tlauncher to play minecraft after installation?

I believe you have to launch it from the .jar file you downloaded. It never actually installs the Tlauncher, it just runs from java.


Unable to Change power_profile for AMD Radeon Graphics Card

You simply need to be root to perform this action.
First elevate to root using : sudo su
then echo low > /sys/class/drm/card0/device/power_dpm_force_performance_level

This is working for me.
Cheers


According to the official site, there are two «panels»: one on the left hand-side (blue on the image infra), called «task panel» (or launcher) and one at the top of the screen (green), called «menu panel».


So, I ripped apart the MaaS CLI code base, and I saw lots of references to power_parameters_<param> in the code base, which led me to believe it's looking for a specific key formatting.

This is what ended up working for me:

maas <user> machines create -d \\
    architecture=amd64 \
    mac_addresses=<mac> \
    domain=<domain> \
    hostname=<name> \
    power_type=vmware \
    power_parameters_power_vm_name=<vm_name> \
    power_parameters_power_uuid=<vm_uuid> \
    power_parameters_power_address=<vcenter_host_name> \
    power_parameters_power_user='<maas_user_in_quotes>' \
    power_parameters_power_pass='<password_in_quotes>' \
    power_parameters_power_port=443 \
    power_parameters_power_protocol=https+unverified

I was then able to see the machine in the Controller UI.


What is the difference between eclipse-cdt and eclipse IDE?

Eclipse provides IDEs and platforms for nearly every language and   architecture. The eclipse package supports Java out of the box and the eclipse-cdt package supports C and C++.

The eclipse package provides the whole Eclipse SDK that contains Eclipse Platform, Java development tools and Plug-in Development Environment, including source and both user and programmer documentation. The best way to install the latest version of Eclipse for Java in Ubuntu 14.04, currently Eclipse Photon, is to install the eclipse snap package as follows:

sudo apt install snapd
sudo snap install eclipse --classic

The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development.

sudo apt install eclipse-cdt


Failure to troubleshoot a juju charm deployment

That looks like its an error in your start hook. The logs for the unit are symlinked from the lxc container into the data dir: {data-dir}/units/{unit-name}/unit.log

Their also in the unit's container at /var/log/juju/{unit-name}.log

For non start/install hooks you can also use the juju debug-hooks command to get an interactive debug shell that acts in the place of a unit's hook.


Login Loop on Ubuntu 16.04.4 on Parallels

I also had this problem and fixed it by disabling disabling 3D graphics acceleration in Advanced VM settings (i.e. Under Hardware Tab and inside Graphics).


Terminal blank and not executing commands

On that page they're suggesting to add this to ~/.bashrc:

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

I suppose you did that and now one of the two commands (eval "$(pyenv init -)" or eval "$(pyenv virtualenv-init -)") is spawning a subshell which isn't either exiting nor outputting anything.

Remove eval "$(pyenv init -)" and eval "$(pyenv virtualenv-init -)" from ~/.bashrc and test the commands separately to see what's wrong with them:

pyenv init -
pyenv virtualenv-init -

As per your comment you added source virtualenvwrapper.sh in an infinite loop to your ~/.bashrc, so that's what's actually halting the terminal.

Running source has the effect of running the target file, applying potential modifications to the current shell, and you just need to run it only once:

source virtualenvwrapper.sh


RDP connection error : freerdp_set_last_error ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED

The solution to solve this was to delete the .config/freerdp/ content


Ubuntu 16.04 connected; can't browse, ping or dig - but can over VPN?

Try https://askubuntu.com/a/892739/664380

First (https://askubuntu.com/a/164351/664380)

$ sudo mv /etc/resolv.conf /etc/backup.resolv.conf

Then, run (https://askubuntu.com/a/835198/664380)

$ ifconfig

and see the name of your network adapter. Mine is: enp0s31f6

now run this command

$ sudo nano /etc/network/interfaces

and you should get something inside....delete everything and paste this (but change the network adapter name where enp0s31f6 is):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s31f6
iface enp0s31f6 inet dhcp

save the document and reboot...


Go to a terminal by pressing  Ctrl+Alt+T and type md bin
Go to the dash
type gedit and press Enter
Copy paste the following text into it:

    #!/bin/bash

    #
    # This script deletes video files of 8000 bps if and only if the 3800 bps file exists
    # as set in http://askubuntu.com/questions/581400/how-to-delete-files-selected-by-rules
    #

    # Copyright (c) Fabby 2015

    # This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
    # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. See the GNU General Public License for more details.
    # You DID NOT receive a copy of the GNU General Public License along with this program as the license is bigger than this program.
    # Therefore, see http://www.gnu.org/licenses/ for more details.

    for szFile in $(ls *3800.mp4)
    do
      if [ -f ${szFile:0:${#szFile}-8}'8000.mp4' ] ; then
        echo "deleting ${szFile:0:${#szFile}-8}8000.mp4..."
        rm -f ${szFile:0:${#szFile}-8}'8000.mp4'
      fi
    done

Save the file under ~/bin/del8000
Go back to the terminal and type: chmod +x ~/bin/del8000
In the terminal type: cd ~/Videos
Type del8000

Done!


How to become the verified publisher of a Snap package

At this time, it is not possible to become a verified publisher.

From Canonical's Snapcraft forum, quoting Community Manager Alan Pope:

  We’ve currently verified a selected group of developers on the snap
  store. We have no current plans to expand that much more widely, nor
  publish details of a process for becoming verified.

No further information or explanation is provided.


Black screen after splash and partition file system unknown

I did a fresh install of Ubuntu (I have the OS on a separate partition) and that solved the problem. However, still no idea how this occurred and how it could have been solved.


Landscape mostly does remote package management, script execution and some monitoring.

It will not help you with installing Ubuntu on machines, if that's what you're looking for. That would be better served by MaaS, or by making a custom ISO.

What Landscape can do is allow you to trigger installation of packages, sets of packages and control the updates of those packages once those computers are set up and have a configured Landscape client installed.


How to install printer-scaner drivers canon pixma ts8050 on ubuntu 16.04 32-bit from

I have 64-bit version of ubuntu 16.04, but I guess following steps should work for you as well:

Download packages from cannon pages (dependent on version files cnijfilter2-5.40-1-deb.tar.gz and scangearmp2-3.40-1-deb.tar.gz or similar).
Install printer

gunzip cnijfilter2-5.40-1-deb.tar.gz
tar -xvf cnijfilter2-5.40-1-deb.tar
cd cnijfilter2-5.40-1-deb
./install

Then continue according to instructions in terminal (you will need also to administrator password).

After this step new printer will appear in your printers and can be set as default.
Install scanner application

gunzip scangearmp2-3.40-1-deb.tar.gz
tar -xvf scangearmp2-3.40-1-deb.tar
cd scangearmp2-3.40-1-deb
./install

Then continue according to instructions in terminal (you will need also to administrator password).

Run scangearmp2 to scan image on your printer (works fine over network and USB).

Enjoy it ;-)


Trying to set wake timer, date is confusing

solution: As Tuxar shared his idea, solution is to disable UTC* (Universal Time Zone)

Let's edit this file and disable it

sudo nano /etc/default/rcS

Take a look at this screen shot http://i.imgur.com/bFHFA8m.png
And edit the line for UTC setting, set it to UTC=no. Then ctrl+x to save, press y key to accept and press enter. At this point you might wanna logout log back in. I rebooted just in case changes are applied.
Now rtcwake should be using correct time zone.

*tl;dr UTC is an unnecessary invention by "scientists" to replace saying GMT.


How to block access to changing clock and date for ubuntu?

For the GUI, you need to set Polkit rules. Adapting one of my other answers, check which Polkit actions apply:

$ pkaction | grep time
com.canonical.controlcenter.datetime.configure
org.freedesktop.RealtimeKit1.acquire-high-priority
org.freedesktop.RealtimeKit1.acquire-real-time
org.freedesktop.timedate1.set-local-rtc
org.freedesktop.timedate1.set-ntp
org.freedesktop.timedate1.set-time
org.freedesktop.timedate1.set-timezone

The org.freedesktop.RealtimeKit1 actions are not relevant here, you can ignore those and deny permission for the others. Create a .pkla file in /etc/polkit-1/localauthority/50-local.d named, say, disable-time-change.pkla, containing:

[Disable time change]
Identity=*
Action=com.canonical.controlcenter.datetime.configure;org.freedesktop.timedate1.*
ResultAny=no
ResultInactive=no
ResultActive=no

You can be more specific about which users shouldn't be able to this by replacing the * in Identity=* with the appropriate usernames or groups (unix-user:foo;unix-group:bar, etc.).

For the command line, don't give them unrestricted sudo access.


Is there a way suspend 12.04 using a bash command while keeping the password prompt?

Lock the screen before suspending.

gnome-screensaver-command -l && pm-suspend


Most deb packages (that's what apt manages) are created by Debian volunteers.
Apparently, nobody in the vundle user community cared enough to package it.
If you care enough, you can package vundle for Debian, from whence it will flow to all Debian-based distros: Ubuntu, Pop, Arch, Zorin, etc). It's a great way to contribute to the free/open software ecosystem. Start at http://mentors.debian.net.


run script every last thursday of the month

Open crontab (crontab -e)and add this entry.

0 16 24-31 * 4 script_file

You can use this online cron generator.

Hope this helps.


How do redirect microphone audio output to headphone output?

Tested in Ubuntu 16.04 64bit

In a Terminal, type:

alsamixer

Then hit F6 to choose your onboard sound card.
Then F4 and set "capture" on 50%, for example.
Hit F3, go to the track "loopback" and set it on "enable".
Go to track "Mic" and set it on 100%, or any value so you can hear something.
If you still hear nothing from your microphone, stay on the track "Mic" and hit the key "m" to unmute the track.
That's it!

Works perfectly with my HDA Intel PCH.


Dolphin displaying to little free disk space on Kubuntu 20.04

I have been informed by someone on the Ubuntu forum, that the missing space should be reserved by root.
So the remaining problems are really just the wrong free space shown in the Trash folder and the supposed 130Tib of used space, which I can both live with.
And thus I consider this issue resolved (enough)


Brightness control is blocked after reaching minimum

So what you have done is obviously one of the most common solutions but people have reported they had to perform the following extra step as well:

sudo nano /etc/default/grub
Change this line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1"
save and exit.
run sudo update-grub
reboot

I know this is usually done when brightness settings are not working at all but I guess there's no harm in trying it out.


What finally solved my problem, was installing gdm3 package, which was "broken or not fully installed". I had to do it from normal boot and not revovery.
Now I got system settings and all back:)


Ubuntu 16.04 openstack installation: charms messages

This screen gives you an overview of what services will be deployed. This is changing in the next release of conjure-up to be more tutorial like and less overwhelming. For now just tabbing over to commit will accept all the defaults and give you a fully deployed OpenStack.


This CPU usage spike usually tends to come from programs that need to run periodically (like gwibber-service) to update something in the background. You should find any applications that are doing this (using system monitor/top it's easy to catch the culprit in action).

BTW it happens to me as well, and I was able to determine a few culprits: docky, my music player (banshee and rhythmbox are both rather bad behaved at times, but probably because of too many plugins), gwibber, and apt (looking for updates in the background). These may not be the cause of your problems, but you can try seeing if any are responsible.


Deleted Ubuntu partition and can't access Windows any more

If you type exit it will then take you back to the options where you can select your Windows Partition.

Doing this will allow you to access your Windows OS and use it as normal temporarily, until you can re-install the Kernals and uninstall Ubuntu properly.


Upgrading to 10.10 has made the terminal go crazy

This is clearly a bug. You should report the bug against xterm in Launchpad.

You can also mark as affecting emac (using the "Also Affects Distribution" link once you have reported the bug). The maintainers of those two applications can then comment and potentially reassign the bug to other packages.

Update: the issue has been reported, take a look at Launchpad Bug #663469.


Local version during kernel build broken

So, I'm having the exact same problem you're having. While I haven't tried it yet, there are alternate steps on the GitKernelBuild page which look much more promising. Full disclaimer, I haven't tried it yet, but I was planning to when I get home. Also, the description for the "BuildYourOwnKernel" on https://wiki.ubuntu.com/Kernel/Dev lists it as a "minimalist kernel build guide," so I'm sure some things are missing. I hope this helps!

On a side note, I'm quite disappointed with the Ubuntu wiki; there are many duplicated topics with varying levels of being up-to-date. It's quite a mess.


How to check if PDF document has been signed (probably with Adobe)?

You can use masterpdf. The last (free) version can verify a signature. See also this answer.


Moving log location for Tomcat 9 on Ubuntu 18.04

Ok so turns out the configs I posted were in fact, correct. But I had a few things going wrong for me.
journalctl -u rsyslog revealed that rsyslog didn't have write permissions to the new catalina.out.  adm was the group on the folder (and luckily syslog was in that group too).  Adding group-write permissions solved that.

So I was still getting output in /var/log/syslog even though /etc/rsyslog.d/tomcat9.conf had a "stop" in it.  What I didn't realize is that /etc/rsyslog.conf loads config files from /etc/rsyslog.d/ in name order.  The contents of /etc/rsyslog.d/ were like this:

20-ufw.conf
21-cloudinit.conf
50-default.conf
tomcat9.conf

I just renamed the file to come before "default" and everything was happy.  No more logs in /var/log/syslog!

20-ufw.conf
21-cloudinit.conf
30-tomcat9.conf
50-default.conf

Anyway.  High-five-self.


How to make nautilus open all partitions in same window instead of another windows.

This looks like it is made by design in the new Nautilus version in 16.04.

If you click on another partition a new window is opened. It is really annoying.

A workaround for this is to make permanent mounts for these partitions in fstab and make bookmarks for the mount points in Nautilus, or make symlinks to the Home folder.

Then you will be opening these partitions as regular directories in the same window.


Replace all lines between two patterns (inclusive) with a file content

You are close, I think - your main issue is that $(cat file2) is going to be treated as literal within single quotes - you should be using the built-in r command:

  r filename

  Queue the contents of filename to be read and inserted into the output
  stream at the end of the current cycle, or when the next input line is
  read. Note that if filename cannot be read, it is treated as if it
  were an empty file, without any error indication.

So:

sed '
  /foo/{
    :a
    N
    /\nbar$/!ba
    r file2
    d
  }
' file1

If you want to wrangle this into a one-liner there's a trick you'll need to prevent sed from treating everything after the r as part of the filename:

sed -e '/foo/{:a; N; /\nbar$/!ba; r file2' -e 'd;}' file1


The reason this problem is only seen with USB devices and not with other devices is a combination of two factors:

USB storage unlike other storage media relies on kernel threads for operation.
When resuming from suspend, the kernel wakes up all threads simultaneously.

The outcome is that during resume there will be a race between the USB system on one hand trying to detect media and syslog on the other hand trying to write log messages from suspend and resume to disk.

If syslog happens to attempt a write before the USB device has been detected ext4 gets an error, which for some reason isn't handled cleanly and eventually the file system will need fsck to be run manually.

The solution I found was to give kernel threads a 12 second head start before other threads are woken up. These are the changes I had to make to the kernel in order for that to work:

--- linux-3.13.0/kernel/power/suspend.c.orig    2014-01-20 03:40:07.000000000 +0100
+++ linux-3.13.0/kernel/power/suspend.c 2014-08-04 00:57:43.847038640 +0200
@@ -299,6 +299,8 @@
        goto Resume_devices;
 }

+unsigned int resume_delay = 0;
+
 /**
  * suspend_finish - Clean up before finishing the suspend sequence.
  *
@@ -307,6 +309,15 @@
  */
 static void suspend_finish(void)
 {
+       if (resume_delay) {
+               /* Give kernel threads a head start, such that usb-storage
+                * can detect devices before syslog attempts to write log
+                * messages from the suspend code.
+                */
+               thaw_kernel_threads();
+               pr_debug("PM: Sleeping for %d milliseconds.\n", resume_delay);
+               msleep(resume_delay);
+       }
        suspend_thaw_processes();
        pm_notifier_call_chain(PM_POST_SUSPEND);
        pm_restore_console();
--- linux-3.13.0/kernel/sysctl.c.orig   2014-08-04 08:11:26.000000000 +0200
+++ linux-3.13.0/kernel/sysctl.c        2014-08-03 23:27:23.796278219 +0200
@@ -277,8 +277,17 @@
 static int max_extfrag_threshold = 1000;
 #endif

+extern unsigned int resume_delay;
+
 static struct ctl_table kern_table[] = {
        {
+               .procname       = "resume_delay",
+               .data           = &resume_delay,
+               .maxlen         = sizeof(unsigned int),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec,
+       },
+       {
                .procname       = "sched_child_runs_first",
                .data           = &sysctl_sched_child_runs_first,
                .maxlen         = sizeof(unsigned int),


How the heck do I make jar files executable?

If in terminal, just type java -jar /path/to/your/file.jar and you're done.

If you want to start it the graphical way, you need a *.desktop file. Look into it's documentation or at this answer.
For Exec= simply use the command above.


GStreamer-based video player without many non-LXDE dependencies?

Well you could try Parole which actually is media player of xfce so will install xfce dependencies.

Or you could try xnoise which is said to support gstreamer but xnoise seems much more oriented towards music than videos but it can play videos according to its review on the above link.

Can be installed from ppa:

sudo add-apt-repository ppa:shkn/xnoise && sudo apt-get update
sudo apt-get install xnoise


Press the key F11. This is the typical full screen button for most ubuntu programs, like image viewer and Firefox / Google Chrome.

You may have (but this is unlikely) accessed tty. If the above doesn't work, try Ctrl+Alt+F1


Bluetooth speaker pairs but won`t connect

Run these commands:

sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

Then try deleting/removing the device from bluetooth devices and pair it again.

I tried this and it worked


From the sources on the forum, it seems that MTP is a bit of a problem in newer builds.
(see MTP mount fails of samsung galaxy S4 on 13.10 on lenovo t440)

The above listed link offers a workable alternative, if not a direct solution to your problem.

Hope it helps, good luck.


How to perform a "Select all" via keyboard, in recent versions of Gnome Terminal?

It seems like that option has been voluntarily removed.

The closest I can get to get something similar is enabling "Enable mnemonics (such as Alt+F to open the File menu)" in Edit > Preferences:

And use ALT+E,↓,↓,ENTER to select all.


Getting around UEFI boot loader to install Ubuntu

i don't really know how i would fix that, but try a bios update. http://www.asus.com/Motherboards/AMD_AM3Plus/M5A97/#download


first, i suggest you run lspci as root using "sudo lspci ..." and pst back the output.

If still nothing shows up then there is a problem with your ethernet card or wifi card.

if something shows up but you cant see any adapters when you run "sudo ifconfig -a" then there are missing drivers.

please post the output of both commands mentioned above first, then we can discuss next steps


Sound is using exclusively max volume or mute. When plugging in audio in headphone jack popping noises in the speaker. What is the problem?

I also have a ZenBook and had the same problem.

By running alsamixer in the terminal, I noticed that my actual sound volume was depending on the PCM value, not the Master value. You can use the arrow keys on your keyboard to change the values in the mixer while playing music or something. If the situation is the same for you, this should be your solution:

Open the terminal (CTRL+ALT+T) and run:

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common

Use the arrow keys on the keyboard to navigate down to this section:

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

...and add these lines before it:

[Element Master]
switch = mute
volume = ignore

Use CTRL+X to exit, say yes to save the changes and ENTER without changing the file name.

With the AlsaMixer, you can set the master value to 0, reboot your computer, and the volume keys and other controls should work fine now.


keyboard mouse doesn't work after KDE desktop boot on ubuntu server

For future readers: After a lot of experiments I found the solution:

Install kde desktop first then install xrdp!


Will Kubuntu 18.04 LTS be supported on 32 bit machines for 5 years?

This is from Kubuntu release notes:

Support lifespan
Kubuntu 18.04 will be supported for 3 years.

There has never been any difference in the support span before, and the release notes mention none for Kubuntu 18.04. So, for the lack of counter evidence, it is safe to assume that both 32 and 64bit packages will get 3 years of support.
Here is more from Ubuntu release notes:

Support lifespan
The 'main' archive of Ubuntu 18.04 LTS will be supported for 5 years until April 2023. Ubuntu 18.04 LTS will be supported for 5 years for Ubuntu Desktop, Ubuntu Server, and Ubuntu Core. Ubuntu Studio 18.04 will be supported for 9 months. All other flavors will be supported for 3 years.

PS: There you have it, just read the RNs.


Each NFS share must be explicitly exported in /etc/exports.

Can also try sudo apt-get install --reinstall nfs-common nfs-utils just in case.

In /etc/fstab, rw,udp,vers=3,soft,intr,rsize=8192,wsize=8192 can be replaced with just auto - over-specifying could sometimes cause some odd issues.


The connection inside VMware is not hardware related, it is bridged to your hosts connections. It is a virtual adapter, it does not really exist.

When Ubuntu tries to connect to the Internet using that fake adapter VMware will direct that to your real adapter inside Windows.

It is all done by software, even if you remove the adapter inside Ubuntu you Internet will still work in your Windows (the other way around is not true since the virtual adapter will not find any adapter to re-direct the information to, if you disconnect your host Internet connection your guest systems will not have access to the Internet).

This is a crude image of how it works.


Screen refresh problem on Unity over Ubuntu 15.10

I ran into this problem after upgrading from 15.04 to 15.10 via update manager.

I did not have rhythmbox running. I removed and reinstalled it, as well as all dependent packages, via the software center; those did nothing.

Scrolling through the system monitor, I noticed that Nemo was running. I killed it and the desktop refresh problem immediately stopped. I was, however, left with a black desktop background that did not display my wallpaper. The instructions in this answer worked for me:

gsettings set org.gnome.settings-daemon.plugins.background active true

I'm not sure what the underlying cause of these problems is, but I hope this answer will at least help people work around it.


Updating and supporting the use of the Cinnamon Desktop

Cinnamon is not developed for Debian or Ubuntu in mind but rather for Linux Mint. As such, it is not in Debian repositories or Ubuntu repositories. Because of this, there is no specific reason for Canonical or the community to provide support or any updates for it.

If you are looking for updates, you have to use the PPA you have found in the linked question.

How do I install the Cinnamon Desktop?


How can I use ffmpeg to output a screenshot gallery / mosaic?

Create a mosaic of screenshots from a movie with ffmpeg

If you're using anything older than Ubuntu 15.04, then the so-called "ffmpeg" package from the repository refers to a fake version from the Libav fork which does not have the functionality you need, so you will have to download a static build of ffmpeg or follow a step-by-step guide to compile ffmpeg.

Example command using select, scale, and tile filters:

./ffmpeg -i input -vf "select=gt(scene\,0.4),scale=160:-1,tile" -frames:v 1 \
-qscale:v 3 preview.jpg

In this example the output will be 960x450. You can add an additional scale filter if you want to change that, or you can change the size of each tile. Example for 600 pixel wide output:

./ffmpeg -i input -vf "select=gt(scene\,0.4),scale=160:-1,tile,scale=600:-1" \
-frames:v 1 -qscale:v 3 preview.jpg

You can even add text to the output. This example will add 24 pixels of black padding to the top of the image and add the text "Iron Man" in the center of the padding.

./ffmpeg -i input -vf "select=gt(scene\,0.4), \
  scale=160:-1, \
  tile, \
  scale=600:-1, \
  pad=iw:ih+24, \
  drawtext=fontsize=30:box=1:fontfile=/usr/share/fonts/TTF/Vera.ttf:text='Iron Man':x=(w-text_w)/2:0"
  -frames:v 1 -qscale:v 3 preview.jpg

Other stuff

You can control output quality with -qscale:v. Effective range is a linear scale of 2-31; where 2 is best quality.
See the select filter documentation for more info.


So here is the way to do this, I forgot that there is documentation on this somewhere on the Ubuntu forums. I figured I'd post it here for anyone looking to do this :) (this is for the sound theme "smooth", but it is easily adapted for almost any sound theme you want to install). I have also made a few relative changes, to make this more readable:

Install some required packages:
sudo apt-get install gnome-session-canberra sox
Download the sound theme
Extract the file:
tar xzvf foo.tar.gz
Copy the extracted content ("foo" folder) to your sounds directory:
/.local/share/sounds
(create the "sounds" directory if it does not exist yet)
Enable sound events and feedback sounds.

In example in Mate go to Control Center --> Sounds and enable them there; in Xfce it is done by entering in the terminal:
xfconf-query -c xsettings -p /Net/EnableEventSounds -s true
xfconf-query -c xsettings -p /Net/EnableInputFeedbackSounds -s true

Set "foo" as the default sound theme

In example in Mate go to Control Center --> Sounds and set it there; in Xfce it is done by entering in the terminal:
xfconf-query -c xsettings -p /Net/SoundThemeName -s "foo"

Setup the necessary environment variable. Add to the end of ~/.profile:
Code:

GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
export GTK_MODULES

That should be it. Perhaps a logout is needed before it starts working.

--//--

For a startup sound, create a new autostart application (Settings Manager or Control Center >> Session and startup >> Application autostart) with the following parameters:
- Name = Login Sound
- Command = canberra-gtk-play -f ~/.local/share/sounds/foo/stereo/desktop-login.oga
For logout sound, you need override xfce4-session. To do so, with root privliges, create the file /usr/local/bin/xfce4-session with the following content..

Content:

#!/bin/bash

# run the real xfce4-session executable
/usr/bin/xfce4-session

# on exit, run my stuff
canberra-gtk-play -f ~/.local/share/sounds/foo/stereo/desktop-logout.oga

And make this file executable:
sudo chmod +x /usr/local/bin/xfce4-session


Music player incorrectly identifies downloaded music as "streaming"

Maybe the sync of your music file is corrupted. Try transcoding and see what happen.

This behavior usually happens (but not limits to) when the audio inside of the file is using a variable bit rate (VBR) for the playback. So I suggest you to use a Constant Bit Rate (CBR) for the transcodification.

128 kbps will be good enough for the majority of the music genres. But if you are more exigent on the sounds that your compressed files delivers, try using 196~256 kbps CBR.

Please inform of your results in order to check if we can have a better answer.

Good luck!

P.S. This answer is for a video file transcoding, which is also the same rules for audio files and may be useful for you: How can I maximum compress video files?


unable to open software center and updatemanager

Change the owner of the /etc/apt/apt.conf.d directory to root and then try to open software center,

sudo chown root /etc/apt/apt.conf.d

And also change owner of all the files inside /etc/apt/apt.conf.d directory to root.


Unable to install package "dplyr" in R (Stuck while compiling)

If you're using an AWS t2.micro instance, the problem is that it doesn't have enough memory. You can upgrade the instance type under actions in the EC2 Management Console.


Difference between 'Ubuntu netboot + Xubuntu Minimal (from taskel) and 'Xubuntu'

If you look under the hood of Tasksel (in /usr/share/tasksel/descs/ubuntu-tasks.desc), you will discover the real metapackage names:

Tasksel's "Xubuntu Minimal" simply installs the xubuntu-core metapackage.
Tasksel's "Xubuntu Desktop" simply installs the xubuntu-desktop metapackage.

If you query apt about those two metapackages, you will discover that xubuntu-core is a dependency of xubuntu-desktop.

So really, the question is about which dependencies of -desktop are not already included in -core. Here's one easy way to do it:

diff --suppress-common-lines <(apt depends xubuntu-core) <(apt depends xubuntu-desktop)

This script-voodoo simply reads the dependencies of -core and -desktop, then passes those to the diff program, and tells diff that we care about non-duplicates only.


Super high CPU usage randomly starts when using Zoom, and doesn't end until I restart

It sounds like you've got two problems going on as far as your computer is concerned:

Zoom is a resource hog.
Something in firefox is a resource hog.

I infer that what you actually mean is

My GUI gets laggy and I don't like it.

1 – "Tweaking" (breaking) the scheduler to force-limit a CPU intensive process
To deal with the former, as well as complaining loudly (and not using video backgrounds), you may wish to consider limiting the amount of CPU it can have. This is done in linux via control groups or CGROUPS, which can effectively limit scheduling for a single group. For example, you can use CGROUPS to get the kernel to constrain processes within a CGROUP to use, let's say for example, 100 ms out of every 1000 ms (or .1s out of every 1s) of CPU time. This will make things worse for your Zoom experience but might be better over all.
To give this a go, sudo apt install cgroup-tools libcgroup1 libcgroup-dev, and then create a cpu-limited cgroup with
sudo cgcreate -g cpu:/cpulimit

Here, cpulimit is the group name that controls the cpu usage. Now, you have to set cpu.cfs_period_us and cpu.cfs_quota_us property on the cpulimit group.
In keeping with the above example, let's set 1 s or 1000000 us (microseconds) should be set to cpu.cfs_period_us property and 100 ms or 100000 us should be set to the cpu.cfs_quota_us property
sudo cgset -r cpu.cfs_period_us=1000000 cpulimit
sudo cgset -r cpu.cfs_quota_us=100000 cpulimit

To check to see that this is the case, run sudo cgget -g cpu:cpulimit and observe that these flags are set.
It's now the case that whatever process you add to the cpulimit CGROUP will, as the name suggests, be limited to using use 1/10th (100000/1000000 = 1/10 = 0.1 = 10%) of the total CPU cycles. At the very least, this probably helps quite a lot.
Now to actually use this and start a process, start the program or command with cgexec as follows:
sudo cgexec -g cpu:cpulimit YOUR_COMMAND

where YOUR_COMMAND can be /path/to/zoom or literally anything else.
2 – Finding performance hogs in Firefox
Firefox has a nifty about:performance page that will help you spot hungry pages. often these use a lot of javascript, display ads, or may even be so rude as to run, for example, a cryptocurrency miner without telling you. As well as killing (closing) the culprit page, one thing you might want to do to stop that happening again is taking the plunge and using a selective javascript blocker like the excellent umatrix to prevent that happening again. Sure, it breaks some pages, but you usually learn something about the web in unblocking particular links ;-).
3 – Stopping your GUI from lagging the nice way
As well as the not-often-used cgroups to place a hard limit on processor scheduling, Linux has an inbuilt idea of process priority. For reasons of history that I would love to learn if others can educate me, Linus called this priority niceness. We can renice (or sudo renice) a process to make it "nicer" -- i.e. run with a higher priority. By default, users can renice processes down to a priority of 0 (and up to 19) and root to -20. Lower niceness processes are given more priority by the scheduler. (I think the idea here is that a process that you don't really care about -- i.e. one that would be "nice to have" -- is given a higher niceness to decrease its priority).
For gnome, it /may/ help to renice the gui to a lower niceness. This is quite easy to do; e.g. sudo renice -3 -p $(pgrep Xwayland) && sudo renice -3 -p $(pgrep gnome-shell). Again, similarly to the above, nice will start a process with a specified niceness; but here you need to specify it with a - beforehand -- so that nice -10 /path/to/zoom would start zoom with a niceness of +10 (and nice --10 /path/to/zoom with a niceness of -10). This also /may/ be a better way of going about it.


Hard blocked means your wifi switch or your wifi fn key on your laptop is switched. Press the wifi key or press fn and the wifikey at the same time to toggle hard blocked on and off. Rfkill does not have power over the fn key or the physical switch.

Also, check this setting "enable WIFI" in Network Manager is selected as well because it will also return the "hard blocked" disposition.

Also, check your BIOS settings.

How to unblock something listed in rfkill?

an answer by vbachev

dual-boot to windows where the button works
enable wifi
reboot to linux

How to unblock something listed in rfkill?

APPLICATIONS MENU > SYSTEM TOOLS > PREFERENCES > SYSTEM SETTINGS

open NETWORKS

Now, toggle the AIRPLANE mode off and while it is still open (leave it alone) press your standby/power button. Let the system go into standby. Next resume the system and toggle your wifi button. https://forums.kali.org/showthread.php?368-ifconfig-wlan0-up-%93SIOCSIFFLAGS-Operation-not-possible-due-to-RF-kill%94

Remove the battery and the ac adapter. Press the power button to purge the system. Replace the battery and ac adapter and power back up.https://forums.kali.org/showthread.php?368-ifconfig-wlan0-up-%93SIOCSIFFLAGS-Operation-not-possible-due-to-RF-kill%94


I found the script that i think is used to achieve that effect.
Developers G+ announcement


You didn't give your release, but https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=ns2 shows it's available for supported releases (listing i386 architecture which is x86 [32bit]).

ie. you only sudo apt install ns2 and if you have 'universe' enabled it'll install

If you haven't enabled 'universe' see https://help.ubuntu.com/community/Repositories/Ubuntu  'universe' is enabled by default for Ubuntu flavors (such as Lubuntu, Xubuntu..), but it enables Ubuntu community software to be added to your system; by default Ubuntu uses only Canonical software which for a LTS release has 5 years of support; 'universe' or community support can be shorter (eg. 3 years is normal for LTS releases)

I find packages.ubuntu.com really useful, not as quick as apt-cache search from terminal, but the web engine provides releases other than my own thus is really useful here, or anytime you have a browser already open


How to install AMD drivers on XUbuntu 15.10?

First boot to recovery mode and remove the drivers from terminal

sudo apt-get purge fglrx*

Now you can reboot to your desktop and follow this guide to install the drivers (I know you have 15.10 but the 14.04 solution will work.)


How to completely remove eclipse after installing using installer?

It seems like you did not use apt-get or any specific package manager to install eclipse so your package managers know nothing about how to remove it.

So from my experience if you have installed it using the installer GUI WITHOUT running it as root, it will mainly create 2 directories in your home directory ~/eclipse and ~/.p2

Just delete these directories and you get back the space used by eclipse.


openldap olcTLS* settings fail with ldap_modify: Other (e.g., implementation specific) error (80)

Finally worked this out (I thought I had permuted all the setting combinations, but obviously not).
So what it is, is that some of the olcTLS* settings require others to be present first for them to be successfully set.
The various certificate settings need to be present first, before the protocol, ciphers etc can be set.
What was breaking my script was that at some point in the last few months, the cipher set string being used has stopped being accepted. Not sure why at this point (as I mentioned, it is working on other servers just fine).


Press Alt + F1 to get into a console screen login there. Then use sudo chown and sudo chmod on your home directory to regain access. Remember to use -R (so that all subfolders are set too).

Sample:

sudo chown -R myName:myName /home/myName/
sudo chmod -R 700 /home/myName/


How to mount .img file created from ddrescue from failing hard drive

You're on the right track. To discover the fstype just do a blkid partition.img and look at the TYPE. It should be the parameter listed last.
for instance:

ubuntu@ubuntu:/$ blkid /media/ubuntu/media/restore/20190915-ddrescue.img
/media/ubuntu/media/restore/20190915-ddrescue.img: UUID="a2d5575a-98d3-415d-b569-8f9138f08eb4" UUID_SUB="2f192535-a318-478e-bd16-d7d8093ec1ed" TYPE="btrfs"


To check your file system...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sda5, replacing sdXX with the number you found earlier
type sudo fsck -f /dev/sda6
repeat the fsck command if there were errors
type reboot

To check your disk's SMART...
Start the Disks application. Select your HDD. Go to the "hamburger" icon and select SMART Data & Tests. Get screenshot(s) of the SMART Data and edit them into your question.
The SMART values says that the disk is OK. The only problem is there's a ton of command timeouts. I suspect a bad SATA cable.
Boot crashes...
Take pictures of your boot screen output. Either edit them into your question, or put them on imgur.com.
Update #1:
With the command timeout errors on the SATA disk subsystem, and we tried new SATA cables, and a backup drive worked fine when reinstalled back into the system, we conclude that the primary HDD is defective, or needs to be re-initialized and Ubuntu reinstalled.


Terminator: single window, focus on launch

Here is a method that works without run-one assuming wmctrl is available:

wmctrl -xa terminator.Terminator || terminator

This assumes the default window class name is being used. You can get creative if you want and use a custom class name when launching terminator. This will allow you to keep your terminator shortcut separate from a normal terminator instance:

wmctrl -xa MyCustomTerminator.Terminator || terminator -c MyCustomTerminator

This just builds on Denis' answer without the need for run-one.


How to translate large pdf from comand line?

Have a look at translate-shell

Project page
Website

This installs a command called trans where you can tell it to translate. Examples from the project page.

  Translate Shell (formerly Google Translate CLI) is a command-line translator powered by Google Translate (default), Bing Translator, Yandex.Translate, and Apertium. It gives you easy access to one of these translation engines in your terminal:

$ trans 'Saluton, Mondo!'
Saluton, Mondo!

Hello, World!

Translations of Saluton, Mondo!
[ Esperanto -> English ]
Saluton ,
    Hello,
Mondo !
    World!

  By default, translations with detailed explanations are shown. You can also translate the text briefly: (only the most relevant translation will be shown)

$ trans -brief 'Saluton, Mondo!'
Hello, World!

You can also tell it to use a language:

trans :fr word

And there is even more:

trans -browser firefox :fr http://www.w3.org/

will open firefox with a French translation of www.w3.org.

There is no method for directly translating a PDF. Method for a file:

trans :fr file://input.txt

Now in relation to a PDF:

sudo apt install poppler-utils

with that tool you can make a text file from the pdf.

pdftotext your.pdf your.txt

add -layout to preserve layout
add -opw {password} if there is a password

and you can feed the file

trans file://your.txt

Next step: back to PDF

sudo apt-get install enscript ghostscript

and convert to postscript and then to pdf:

enscript -p output.ps your.txt
ps2pdf output.ps your2.pdf

I got this working on a PDF with some words in it. No guarantee it works on a large file so please comment below if this worked.


Suspect of keylogger/screen logger in Ubuntu machine

Using RKHUNTER for rootkit and malware checking

After a hacker attack, we should search for rootkits and malwares in our machine. These malicious software can corrupt files and compromise our control over the machine.

There are some softwares to help us searching for these malicious softwares, and one of them is RKHUNTER.

Whats is rootkit?

From Wikipedia:

  A rootkit is a collection of computer software, typically malicious,
  designed to enable access to a computer or areas of its software that
  would not otherwise be allowed (for example, to an unauthorized user)
  while at the same time masking its existence or the existence of other
  software. The term rootkit is a concatenation of "root" (the
  traditional name of the privileged account on Unix-like operating
  systems) and the word "kit" (which refers to the software components
  that implement the tool). The term "rootkit" has negative connotations
  through its association with malware.

  Rootkit installation can be automated, or an attacker can install it
  once they've obtained root or Administrator access. Obtaining this
  access is a result of direct attack on a system (i.e.), exploiting a
  known vulnerability (such as privilege escalation) or a password
  (obtained by cracking or social engineering). Once installed, it
  becomes possible to hide the intrusion as well as to maintain
  privileged access. The key is the root or administrator access. Full
  control over a system means that existing software can be modified,
  including software that might otherwise be used to detect or
  circumvent it.

  Rootkit detection is difficult because a rootkit may be able to
  subvert the software that is intended to find it. Detection methods
  include using an alternative and trusted operating system,
  behavioral-based methods, signature scanning, difference scanning, and
  memory dump analysis. Removal can be complicated or practically
  impossible, especially in cases where the rootkit resides in the
  kernel; reinstallation of the operating system may be the only
  available solution to the problem. When dealing with firmware
  rootkits, removal may require hardware replacement, or specialized
  equipment.

Whats is malware?

From Wikipedia:

  Malware, short for malicious software, is a kind of software that can
  be installed on a computer without approval from the computer's owner.
  There are different kinds of malware that can hurt computers, such as
  viruses and spyware. These programs can steal passwords, delete files,
  collect personal information, or even stop a computer from working at
  all. Computer security or anti-malware software is usually good at
  stopping malware from installing itself. When security software is not
  installed, malware can get into the computer. Getting rid of malware
  can be difficult, even when using programs designed to remove it.

Installing RKHUNTER

Open a terminal: ctrl+alt+t
Execute this command:
sudo apt-get install rkhunter

You can left postfix unconfigured if installation asks for its configuration. Postfix is only used to send e-mail alerts, and can be configured later, when you want to use this feature.

Scanning your system

Update rkhunter database. Execute:

rkhunter --update

sudo rkhunter --propupd
Check your system with:

sudo rkhunter -c
RKHUNTER output is colorful and easy to understand. The software checks for several items in the system and every time an item is OK or a malware is not found, these messages are shown in green text. If something needs your attention, the text "Warning" is shown in red. If you want to see just the WARNINGS, use the command sudo rkhunter -c --rwo.
If you want to take a look at the log, execute:

cat /var/log/rkhunter.log

More information at:

https://en.wikipedia.org/wiki/Rkhunter

https://www.digitalocean.com/community/tutorials/how-to-use-rkhunter-to-guard-against-rootkits-on-an-ubuntu-vps

http://www.tecmint.com/install-rootkit-hunter-scan-for-rootkits-backdoors-in-linux/


Copy every file in a directory structure into specific path only if file does not exist there already

You can use -u switch from cp command:

  copy only when the SOURCE file is newer than the destination file or when the destination file is missing

or use rsync command with --ignore-existing:

  skip updating files that exist on receiver

Example:

rsync --ignore-existing source/* destination/


Why does /usr/lib/update-notifier/apt-check not agree with apt-get upgrade

/usr/lib/update-notifier/apt-check

is actually equivalent to stats returned by

apt-get -s dist-upgrade | grep "^[[:digit:]]\+ upgraded"

and not

apt-get upgrade|grep "^[[:digit:]]\+ upgraded"

For Example

/usr/lib/update-notifier/apt-check --human-readable

returns

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

whereas

apt-get -s dist-upgrade | grep "^[[:digit:]]\+ upgraded"

returns

18 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.

It actually 18+4 which amounts to 22.

From apt-get manual:

upgrade
       upgrade is used to install the newest versions of all packages
       currently installed on the system from the sources enumerated in
       /etc/apt/sources.list. Packages currently installed with new
       versions available are retrieved and upgraded; under no
       circumstances are currently installed packages removed, or packages
       not already installed retrieved and installed. New versions of
       currently installed packages that cannot be upgraded without
       changing the install status of another package will be left at
       their current version. An update must be performed first so that
       apt-get knows that new versions of packages are available.

   dist-upgrade
       dist-upgrade in addition to performing the function of upgrade,
       also intelligently handles changing dependencies with new versions
       of packages; apt-get has a "smart" conflict resolution system, and
       it will attempt to upgrade the most important packages at the
       expense of less important ones if necessary. So, dist-upgrade
       command may remove some packages. The /etc/apt/sources.list file
       contains a list of locations from which to retrieve desired package
       files. See also apt_preferences(5) for a mechanism for overriding
       the general settings for individual packages.

source


You can use gtk2 themes from Gnome-Art as well.

Similar websites:

deviantARTs: XFCE-section
Customize.org: XFCE-section
XFCE-Forums: mostly window manager themes
deviantARTs: (GNOME) GTK2-section

source

Example install from Gnome-Art

First create a .themes folder in your home folder

mkdir ~/.themes

Download one of the themes e.g. Aero-ion which should be saved in your ~/Downloads folder

then extract the compressed tar file into .themes

cd ~/.themes
tar -xvf ~/Downloads/GTK2-AeroIon.tar.gz

Finally Settings Manager - Appearance to apply your new theme e.g. AeroIon will appear at the top of the list.

Here is my example:


What is Shotwell doing in background permanently

shotwell is a photos management tool and also can be used for Desktop Background or Desktop Slideshow . As you are saying process running continuously so, it might be you set Background photos using shotwell.

solution:
if you don't want to use shotwell then  remove shotwell package using command

sudo apt-get purge shotwell


How could I add a status bar that shows if it safe to remove my external hard drive?

There is an indicator for safely removing USB devices and the good news is that it seems to be maintained:

Source: USB Safe Removal which points to indicator-usb.

Notice that this application is currently not available in the Ubuntu Software Center and so you'll be downloading a .deb file. While downloading, choose "Save as" in your browser and not "Open with". After downloading, right-click and the file (in your file manager) and choose Open with USC (Ubuntu Software Center). This will cause the .deb file to be automatically unpacked and installed for you.

Please be informed that I have no first-hand experience with this indicator. I unmount devices from my file manager by right-clicking on the device and choosing unmount/eject. I also make sure to do this some time after I've finished writing to the device,

Hope this helps!


How to kill non-responsive GUI task under Unity?

You could create a keyboard shortcut for xkill.

Type keyboard in the Unity Dash and click the icon. Select the
shortcuts tab.
There, scroll down to the custom shortcuts section and click on the
+ button
Now name your shortcut something and let the command be xkill and then click ok.
Finally click on the xkill shortcut and press the desired key-combo to assign a shortcut to it and that's it :)
Pressing the keyboard shortcut will activate xkill whenever you need it.


Unable to launch anything after changing hostname

In Ubuntu 15.04, in order to change hostname permanently you have to run this command:

sudo hostnamectl set-hostname new-name

You can check directly your new configuration:

hostnamectl

   Static hostname: new-name
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 458ad80036fa4cd4a3063116670ce33d
           Boot ID: 95a2349fc93f4d498bf189f0fc6fb858
    Virtualization: oracle
  Operating System: Ubuntu 15.04
            Kernel: Linux 3.19.0-21-generic
      Architecture: x86


Yep I just got exactly the same on mine. The linker isn't getting the correct flags.

make clean
export LDFLAGS="-pthread"
./configure && make


Why does the following zsh command change my output?

In Zsh, :l is as a modifier, making the expansion lowercase. Since the port is a number, you didn't get that extra hint, but if we put some uppercase characters the difference is visible.
% port=AS10X
% echo $port:localost
as10xocalost

To keep the :l literal in Zsh, escape it: $port\:localost.


Where do "random numbers" come from in Ubuntu?

The source of random numbers in Ubuntu come from the Linux kernel, specifically /dev/random and /dev/urandom (pseudo-random).  The difference between the two is that /dev/random may be blocking while /dev/urandom does not but may not be as random.

That aside, RdRand is just one of many sources of entropy used in the Linux kernel and as long as userspace applications don't use RdRand directly but make a system call to the kernel, there is no issue with Ubuntu's random output.

Here is a link to Slashdot story where Linus explained why a petition removing RdRand from the kernel would be stupid


Why does Ubuntu enable TRIM for certain brands only?

When it comes to low-level Disk I/O such as TRIM, Ubuntu doesn't have much control. It's really up to the Linux Kernel and the SSD manufacturer. Before running TRIM you have to make sure your SSD supports it or it could become an expensive paperweight.

To find out for sure use:

$ lsblk --discard
NAME        DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sdb                0        0B       0B         0
├─sdb4             0        0B       0B         0
├─sdb2             0        0B       0B         0
├─sdb5             0        0B       0B         0
├─sdb3             0        0B       0B         0
└─sdb1             0        0B       0B         0
sr0                0        0B       0B         0
sda                0        0B       0B         0
├─sda4             0        0B       0B         0
├─sda2             0        0B       0B         0
├─sda5             0        0B       0B         0
├─sda3             0        0B       0B         0
└─sda1             0        0B       0B         0
nvme0n1          512      512B       2T         0
├─nvme0n1p5        0      512B       2T         0
├─nvme0n1p3        0      512B       2T         0
├─nvme0n1p1        0      512B       2T         0
├─nvme0n1p6        0      512B       2T         0
├─nvme0n1p4        0      512B       2T         0
├─nvme0n1p2        0      512B       2T         0
└─nvme0n1p7        0      512B       2T         0

When DISC-GRAN DISC-MAX columns contain non-zero values it is safe to use TRIM. If you are unsure which disk is which in this display you can get the model name and number using:

$ lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL
NAME        FSTYPE  LABEL                  MOUNTPOINT          SIZE MODEL
sdb                                                           14.4G STORE N GO
├─sdb4      iso9660 Ubuntu 18.04 LTS amd64 /media/rick/Ubunt   1.4G
├─sdb2                                                           1M
├─sdb5      ext4    casper-rw              /media/rick/caspe   6.4G
├─sdb3      vfat    usbboot                                    244M
└─sdb1      ntfs    usbdata                /media/rick/usbda   6.4G
sr0                                                           1024M DVD+/-RW DW316
sda                                                          931.5G HGST HTS721010A9
├─sda4      ntfs    WINRETOOLS                                 450M
├─sda2                                                         128M
├─sda5      ntfs    Image                                     11.4G
├─sda3      ntfs    HGST_Win10             /mnt/d              919G
└─sda1      vfat    ESP                                        500M
nvme0n1                                                        477G Samsung SSD 960 PRO 512G
├─nvme0n1p5 ext4    NVMe_Ubuntu_16.0       /                  44.6G
├─nvme0n1p3                                                     16M
├─nvme0n1p1 ntfs                                               450M
├─nvme0n1p6 swap    Linux Swap             [SWAP]              7.9G
├─nvme0n1p4 ntfs    NVMe_Win10             /mnt/c            414.9G
├─nvme0n1p2 vfat                           /boot/efi            99M
└─nvme0n1p7 ntfs    Shared_WSL+Linux       /mnt/e                9G

So in this case the SSD is a Samsung Pro 960 which does indeed support TRIM command.

For more details see this Arch Linux article.


Haswell Integrated/NVIDIA Graphics Issue

First of all 13.04 is EOL (end of life)

so install another version like 14.04.3 example

then choose to activate an nvidia driver from additional drivers section
like nvidia-340 example + install nvidia-prime + enable performance mode
in nvidia-settings to enable your nvidia card


BIOS contains WGDS but no WRDS on Kubuntu 19.10 Boot hangs

This laptop is a Lenovo ThinkPad P52. Some models of Lenovo ThinkPads have settings in the BIOS that can be changed in the Graphics Device menu which has options for integrated graphics, discrete graphics and switchable graphics . After changing the display graphics settings in the BIOS, Kubuntu 19.10 was able to boot to the login screen.

Setting the BIOS card configuration to Switchable on my Lenovo Legion allowed the UI to load. source


I’ve had the same problem and I solved it by installing Nautilus. Unlike Thunar (the default file browser for Xubuntu), Nautilus will show the camera in the sidebar.


A simple alternative option, which lets you fit in twice as many entires, is to hide the buddy details of all the entires. Go to Buddies -> Show and then untick "Buddy Details."


Stripey videos on all media players Ubuntu 20.04

My guess is that what you are seeing is called tearing.
This happens in video games that render at a high framerate and don’t turn on v-sync.
It is better to turn on v-sync, however, the game rendering will be limited to your monitors refresh rate (which is not necessarily a bad thing).
Another thing is that maybe your Ubuntu is using the Compositor in order to do various animation effects with OpenGL. If v-sync is not enabled, then you will have tearing since the Compositor, just like a game, would be rendering at a high frame rate like 200 FPS while your monitor might be only 60 Hz.
In my case, I use Kubuntu 20.10. (This uses the KDE interface. I don’t know about the GNOME interface of Ubuntu)
Press on
-Start → Applications → Settings → System Settings
-The System Settings window opens
-On the left side, click on Display and Monitor
-In the next list, click on Compositor (It is the second one in the list)
-On the right side, Tearing prevention (“vsync”) , set it to Automatic.
-At the bottom right, click the Apply button


Entry for Grub1 on sda3 into the main Grub2 on sda

GRUB2 supports the chainloader command ( that instead of booting directly a kernel, simply 'pass the stick' to the next boot loader ).

So in your /boot/grub.cfg file you should add something that resemble this:

# (1) Arch Linux
 menuentry "Arch Linux" {
 set root=(hd0,2)
 chainloader +1
}

Be aware that if you update your grub2 configuration by its tool ( update-grub ) you will need to apply this setting again.


Most advanced Linux file managers are able to use SFTP (the SSH file transfer protocol), along with Ubuntu's default called Nautilus

In Nautilus, you can use File → Connect to Server... in order to connect to remote file systems using various protocols, including SFTP, FTP, FTPS and SMB.

Enter the necessary information (server address, user and password might be asked when connectiong) and the remote access will be mounted temporarily in your system, until you unmount it again.


Firefox 57 error on Gmail refresh: Oops… the system encountered a problem (#007)

Disable all extensions and see if it still happens - If not, then enable them one by one until it reappears.

You haven't mentioned trying this, so I'm putting this out there as an answer. Can't comment in this forum, as of yet.


Shutdown and User button missing in panel

Ensure indicator-session is installed:

or with

sudo apt-get install indicator-session

And then log out and back in again.


14.10 built-in preview files and folders

gnome-sushi should work out of the box. You might need to reboot, or restart nautilus. Like so: nautilus -q.

If that still doesn't work, try reinstalling it: sudo apt-get purge gnome-sushi and install it again: sudo apt-get install gnome-sushi. Restart nautilus -q. This should work.

For gloobus, when installed with the webup8 ppa, like so:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install gloobus-preview

It should be noted that you need extra dependencies to get it fully functional and to integrate it better with your file manager of choice. (nemo, nautilus)

This is for previewing documents a little better, although it is not optimal:

sudo apt-get install unoconv gnumeric

And the second is to integrate gloobus with either nautilus or nemo:

If you have nautilus:

sudo apt-get install gloobus-sushi

Or if you have nemo:

sudo apt-get install nemo-gloobus-sushi

Both applications needs to be restart before continuing: nemo -q / nautilus -q

Reference:

Quick File Previewer `Gloobus Preview` Updated To Work With Ubuntu 14.04 And 14.10 / Linux Mint 17 And 17.1 ~ Web Upd8: Ubuntu / Linux blog


Unable to uninstall & install nginx on ubuntu

If your read your error properly you would find out there are clues to solving the problem. says nginx is already is in its new version, another part also mention some dependencies.

This is what you can try.

sudo apt-get update - update your packages

sudo apt-get purge nginx to remove any pieces of nginx already installed.

sudo apt-get install nginx nginx-core nginx-common finally this should work.


You should build glibc on another directory instead of glibc source directory.


I have installed QT4.8.7 but CMAKE could not match the path

Specify the CMAKE_PREFIX_PATH variable when running cmake. Set it to the path where the *.cmake files of the desirable Qt installation are located:

cmake -DCMAKE_PREFIX_PATH=/usr/local/Trolltech/Qt-4.8.7/<something-something>/lib/cmake/ ../myproject

(but I'm actually not sure if the Qt4 has that cmake directory)

Also, the version that comes with the OS can be used. It can't find some modules: probably libqt4-opengl is not installed. Get it with apt-get.

Get dependencies:

sudo apt-get install qtmobility-dev libopencv-dev libtesseract-dev flite1-dev libphonon-dev

Edit CMakeLists.txt file:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b643ab..ffafc6b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,9 @@ cmake_minimum_required (VERSION 2.6)
 project (TextReading)

 find_package(OpenGL REQUIRED)
-find_package(Qt4 REQUIRED QtGui QtOpenGL QtXml QtMultimedia Phonon)
+find_package(Qt4 REQUIRED QtGui QtOpenGL QtXml Phonon)
+find_package(QtMobility REQUIRED MultimediaKit)
+include_directories(${QTMOBILITY_INCLUDE_DIRS})
 find_package(OpenCV REQUIRED core imgproc video highgui)
 # find_package(OpenMP REQUIRED)

@@ -151,5 +153,7 @@ target_link_libraries(TextReading
     ${MathGL_LIB}
     ${Flite_LIBS}
     ${QEXTSERIALPORT_LIBS}
+    ${QTMOBILITY_LIBRARIES}
+    udev
     )

Put into /usr/share/cmake-3.0/Modules/FindQtMobility.cmake the following:

# - Try to find the QtMobility libraries
#
# This module will search for the QtMobility libraries.
#
# It supports both a minimum version and searching for individual
# components. For the minimum version, use
# find_package(QtMobility 1.2.0). For specific components, use
# find_package(QtMobility COMPONENTS ...). See below for a list of known
# components.
#
# Once done this will define
#  QTMOBILITY_FOUND - QtMobility and all specified components were found.
#  QTMOBILITY_INCLUDE_DIR - Include directory for global QtMobility files.
#  QTMOBILITY_INCLUDE_DIRS - All found QtMobility components' include dirs.
#  QTMOBILITY_LIBRARIES - All found QtMobility components' libraries.
#  QTMOBILITY_VERSION - The version of QtMobility that was found.
#
# For each found component the following will be defined:
#  QTMOBILITY_{COMPONENT}_INCLUDE_DIR - The include directory for the component.
#  QTMOBILITY_{COMPONENT}_LIBRARY - The location of the library for the component.
#
# Note that searching for components will be limited to the specified components
# if the components option is used.
#
# Copyright (c) 2011 Arjen Hiemstra <ahiemstra@heimr.nl>
# Redistribution and use is allowed according to the terms of the BSD license.

set(QTMOBILITY_COMPONENTS
    Bearer
    Connectivity
    Contacts
    Feedback
    Gallery
    Location
    Messaging
    MultimediaKit
    Organizer
    PublishSubscribe
    Sensors
    ServiceFramework
    SystemInfo
    Versit
)

if (QtMobility_FIND_COMPONENTS)
  foreach (component ${QtMobility_FIND_COMPONENTS})
    string(TOUPPER ${component} _COMPONENT)
    set(QTMOBILITY_USE_${_COMPONENT} 1)
  endforeach (component)
endif (QtMobility_FIND_COMPONENTS)

find_path(QTMOBILITY_INCLUDE_DIR qmobilityglobal.h PATH_SUFFIXES QtMobility)

#Find the mobility version
if(QTMOBILITY_INCLUDE_DIR)
    file(READ "${QTMOBILITY_INCLUDE_DIR}/qmobilityglobal.h" _qtmobility_global_header LIMIT 2000)
    string(REGEX MATCH "#define QTM_VERSION_STR \"([0-9.]*)\"" _qtmobility_version_match  "${_qtmobility_global_header}")
    set(QTMOBILITY_VERSION "${CMAKE_MATCH_1}")
    message(STATUS "QtMobility Version ${QTMOBILITY_VERSION} detected")
endif(QTMOBILITY_INCLUDE_DIR)

set(QTMOBILITY_VARIABLES "QTMOBILITY_INCLUDE_DIR")
set(QTMOBILITY_INCLUDE_DIRS ${QTMOBILITY_INCLUDE_DIR})

#A list of files to find for specific components
set(QTMOBILITY_FIND_FILES
    QNetworkConfiguration #Bearer
    QBluetoothSocket #Connectivity
    QContact #Contacts
    QFeedbackInterface #Feedback
    QAbstractGallery #Gallery
    QLandmark #Location
    QMessage #Messaging
    QMediaPlayer #MultimediaKit
    QOrganizerItem #Organizer
    QValueSpace #PublishSubscribe
    QSensor #Sensors
    QService #ServiceFramework
    QSystemInfo #SystemInfo
    QVersitDocument #Versit
)

list(LENGTH QTMOBILITY_COMPONENTS _component_count)
math(EXPR _component_count "${_component_count} - 1")
foreach (index RANGE ${_component_count})
    list(GET QTMOBILITY_COMPONENTS ${index} component)
    list(GET QTMOBILITY_FIND_FILES ${index} file)
    string(TOUPPER ${component} _COMPONENT)
    if (NOT QtMobility_FIND_COMPONENTS OR QTMOBILITY_USE_${_COMPONENT})
        message(STATUS "Looking for QtMobility Component \"${component}\"")
        find_path(QTMOBILITY_${_COMPONENT}_INCLUDE_DIR ${file} PATH_SUFFIXES Qt${component})
        find_library(QTMOBILITY_${_COMPONENT}_LIBRARY NAMES Qt${component})
        list(APPEND QTMOBILITY_VARIABLES "QTMOBILITY_${_COMPONENT}_INCLUDE_DIR" "QTMOBILITY_${_COMPONENT}_LIBRARY")
        list(APPEND QTMOBILITY_INCLUDE_DIRS ${QTMOBILITY_${_COMPONENT}_INCLUDE_DIR})
        list(APPEND QTMOBILITY_LIBRARIES ${QTMOBILITY_${_COMPONENT}_LIBRARY})
    endif (NOT QtMobility_FIND_COMPONENTS OR QTMOBILITY_USE_${_COMPONENT})
endforeach (index)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QtMobility REQUIRED_VARS ${QTMOBILITY_VARIABLES} VERSION_VAR QTMOBILITY_VERSION)

mark_as_advanced(${QTMOBILITY_VARIABLES})


How to fix the UUID in Grub after restore from another machine?

To solve your current problem, you'll have to change the UUID(s) in "/etc/fstab" and "/boot/grub/grub.cfg" (very tricky).

You can use Ubuntu install CD to get the UUID(s) with gparted (you just have to right click on the partition for which you want to get the UUID, and click on "Information", then select UUID and copy it with CTRL + C) or command line (sudo blkid).

Then you have to edit "/etc/fstab" on the right volume with gedit, nano or else.

In a terminal, type:

gksudo gedit /etc/fstab

and replace the old UUIDs by the new ones.

IMPORTANT : Of course, if you use a boot CD to do that you'll have to add "/media/xxxxx" before "/etc/fstab" : "/media/xxxxx/etc/fstab". You can also use gksudo gedit and open the file to edit yourself.

WARNING : Modifying "/boot/grub/grub.cfg" is very tricky. It should normally be generated with the command sudo update-grub.

Replace the old UUIDs by the new ones in "/boot/grub/grub.cfg" by entering the following in a terminal :

gksudo gedit /boot/grub/grub.cfg

IMPORTANT : Of course, if you use a boot CD to do that you'll have to add "/media/xxxxx" before "/boot/grub/grub.cfg" : "/media/xxxxx/boot/grub/grub.cfg". You can also use gksudo gedit and open the file to edit yourself.

If you use the tricky solution, I recommend you to launch sudo update-grub once you have successfully booted the system.

A cleaner but simple way to reconfigure grub properly may be using a boot repair disk like "Boot-Repair-Disk" : http://sourceforge.net/p/boot-repair-cd/home/Home/

I hope that this will help you to solve your problem.

However you might consider using Clonezilla to replicate the old computer on the new one as indicated in my comment.


WIFI : "No adapter found" in newly installed ubuntu 20.04 linux

This is the correct way to install the driver. Disable Secure Boot in BIOS and run:
sudo apt update
sudo apt install git dkms
git clone https://github.com/lwfinger/rtw88.git
sudo dkms add ./rtw88
sudo dkms install rtlwifi-new/0.6


After SUDO APT install, how to modify the installed files with root:root permission

You can use chown to change ownership of files and folders. The syntax is:

sudo chown <user>:<group> /path/to/files

So for example, if you wanted to make the user "john", the owner of ~/myfile.txt you would run:

sudo chown john:john ~/myfile.txt

The same goes for folders, however if you need all folders and subfolders changed at once, you would use the -R flag, like so:

sudo chown -R john:john /path/to/my/directory

(You can use pwd to find out the current directory)

This will work for any file and folder on the system, however you should not do this on system files or it can damage the entire OS (many programs depend on ownership and permissions being set correctly). However if there are files and folders that are incorrectly owned by root, you can use the above commands to change ownership of them.


mv: target 'Nfilename' is not a directory error help

Change

$ for file in `ls N*`; do echo "`head -1 Map.txt`" > tmp; cat $file >> tmp; mv –f tmp $file; done

to

$ for file in `ls N*`; do echo "`head -1 Map.txt`" > tmp; cat $file >> tmp; mv -f tmp $file; done

The difference is not easy to see, but in your command you used a long dash instead of the normal dash in the mv-command, -f-option. I tested it and it worked.

To prevent accidents with filenames containing spaces you should add some double-quotes:

$ for file in `ls N*`; do echo "`head -1 Map.txt`" > tmp; cat "$file" >> tmp; mv -f tmp "$file"; done

You could also simplify the whole command to

$ for file in N*; do head -1 Map.txt > tmp; cat "$file" >> tmp; mv -f tmp "$file";

which was suggested by @PerlDuck. Of course, I tested this suggestion before adding it to this answer.


If the NTFS drives are mounting as read-only, its probably because Ubuntu thinks their filesystems are unclean, probably due to hibernation, or a damaged file system. Do this...

In Windows...

boot into Windows
open the Power control panel
choose change what the power buttons do
choose change options that are unavailable
uncheck fast startup
close the Power control panel
open an administrative command prompt window
type powercfg /h off
type chkdsk /f c:
approve to run chkdsk at next reboot
reboot into Windows to let chkdsk run on drive C:


How do I go about porting Ubuntu Touch to different devices?

Ubuntu (Touch) 13.10 is released; it's stable for developers now. You can get the step-by-step guide here.

However, I used the CyanogenMod. Check the building CyanogenMod guide to learn how to build it.

Building from source for Android guide, and Building Ubuntu Touch wiki should help you as well.

After it is ready, visit the Porting Ubuntu Touch guide along with the Ubuntu Phone Install guide given before.

The steps are:

Build Cyanomod
Root Android
Port

These links give you a fair idea of how you should proceed. The actual code to be used differs from device to device, due to the different drivers, (but, Terminal commands would remain roughly the same) and it's something you'd have to work on yourself with lots of trial & error.

I tried porting to Lava Xolo Q800, which was built fine, and it installed too. But, it does nothing that a smartphone should do apart from connecting to WiFi. I've now reinstalled Android.


rename file from title - author to author - title

You can use the perl-based rename command: based on the 3 examples you have given so far, something like

rename 's/(.*)\s+[-]\s+(.*)\.(.{3,4})/$2 - $1.$3/' *.*

should work however test it first by adding the -n and -v options i.e.

$ touch "War of the World - H. G. Well.pdf"
$ touch "Harry Potter blah de blah - J.K.Rowling.pdf"
$ touch "Some Other Title - Firstname Surname.epub"
$
$ rename -nv 's/(.*)\s+[-]\s+(.*)\.(.{3,4})/$2 - $1.$3/' *.*
Harry Potter blah de blah - J.K.Rowling.pdf renamed as J.K.Rowling - Harry Potter blah de blah.pdf
Some Other Title - Firstname Surname.epub renamed as Firstname Surname - Some Other Title.epub
War of the World - H. G. Well.pdf renamed as H. G. Well - War of the World.pdf

See man rename for usage


why my mouse pointer is blinking and suddenly disapear

I also faced this problem after upgrading to 15.04. I searched and found an answer. Now my problem was solved. I think that can also be an answer for u.

Do System Settings > Displays
And turn-off / disable Unknown Display.

Mouse cursor blinking after Ubuntu 14.04 installation


Clean install of ubuntu, is this proccess right?

I just would like to point out that you should not create a partition in Windows (because of the wrong partition ID) and you should not format the partition in Windows. The most you  can do from Windows is to shrink the existing Windows partition to leave some un-partitioned space on the drive, however, this is not really necessary, because Ubuntu installer can do this for you. So, really, the steps are:

create a bootable usb drive with Ubuntu, either from Windows or Ubuntu
reboot and follow install instructions (choosing "install alongside existing OS" or manual partitioning)

To make hibernate work, as a minimum, at install time you need to make sure you created a swap partition at least as large as your RAM. As I remember, hibernate has been disabled by default in recent releases of Ubuntu but it can be enabled after installation.


Download a new ubuntu image (pick ubuntu 18.04 since the 17.10 release will not be supported anymore in few months).

When booted in the downloaded image, just choose to overwrite the current ubuntu installation. You will loose all ubuntu 17.10 data and have a fresh 18.04 installation. Windows would not be touched.

You can follow this guide for the installation.


Does this non-USB non-CD install process work for Ubuntu?

My guess would be that it will not work. That tutorial is for Windows and if you are running windows you are going to have better luck with wubi.

You download the wubi.exe from here:

http://www.ubuntu.com/download/ubuntu/windows-installer

You run the wubi.exe like any other application and the installer will download the iso and install Ubuntu.

For additional information on wubi see

https://wiki.ubuntu.com/WubiGuide

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


You can put such aliases in the ~/.bash_aliases file.

That file is loaded by ~/.bashrc. On Ubuntu 10.04, the following lines need to be uncommented to enable the use of ~/.bash_aliases. On Ubuntu 11.04 and later, it's already enabled:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

The aliased command will be available on any new terminal. To have the aliased command on any existing terminal one need to source ~/.bashrc from that terminal as,

source ~/.bashrc


Sound trouble (continuous white noise) after recent upgrade

You can try to use other operating system on a "live cd" to check if there a damage exists on your "Sound Card" phisically. If your wifi works correctly on the "Live Cd", try to verify if an official driver exists for your operating system.
Or try:

the option "purge" for your driver
unistall your driver
update using sudo apt-get update, sudo "apt-get upgrade, sudo apt-get dist-upgrade
after that, fix dependencies if an issue still exists trying sudo apt autoremove, sudo apt install -f, sudo apt autoclean, sudo apt clean, sudo apt update -fix-missing and reinstall the driver.

Don't forget to clean the temporally files before reinstall the driver (you can use apps like bleachbit).

If you are using alsa driver you can try using the commands: "apt autoremove alsa*", "apt purge alsa*","apt autoremove alsa-base", "apt purge pulseaudio", after that, clean the temporally files using "Bleachbit", try fix the dependencies and broken packages:"sudo apt autoremove", "sudo apt install -f", "sudo apt autoclean", "sudo apt clean", "sudo apt update -fix-missing", reinstall every package using:"apt install alsa*","apt install alsa-base", "apt install pulseaudio" and must shutdown completly your computer and turn on it to reload updating every configuration. I suggest try it. or verify the next link. "Sound card shown as Dummy Output in Ubuntu 18.04", Regards


You can't get the drop-down calendar to highlight the days with events.

But you can submit a request for such functionality over here... The Development Team may or may not add it, but posting this request will bring the idea to the attention of other users for discussion and debate.

By the way, you can find a guide to the bug-report/feature request pages for all of the "default" Ubuntu (Touch) components and applications over here - if you find bugs or have suggestions, that's the place to do it (a major bug with the integrated VPN client was fixed because I reported it there, for example).

By the way for anyone wondering, this is what Phil is referring to, accessed by "pulling-down" from the clock (it took me a second to realize what he was talking about):


Can't login after installing AMDGPU-PRO 16.60

EDIT: I managed to fix my problem by installing the px and compute packages for amdgpu-pro (though I doubt the compute packages made the difference).

From the installation folder, run:

amdgpu-pro-install --px

You will be prompted for confirmation twice -- once to uninstall, and once to install. Then reboot.

OLD (semi-)answer:

It looks like the screen is running from the Intel graphics card (i915). Does your laptop have switchable graphics?

As a temporary fix, you can try running a window manager without a compositor -- I've found that Xmonad works fine in my setup. Though anything 3D-accellerated will not work.

I am facing a similar problem (same symptoms) on my laptop, which has Intel graphics. It seems the packages installed by amdgpu-pro are incompatible with the non-AMD drivers included in Ubuntu, looking for this is64bitelf symbol.

This is also described here: undefined symbol: is64bitelf


Snap wont install latest version of Thunderbird

I simply rebooted the computer. Then Thunderbird 78.3.3 loaded from the GNOME menu like it should.


Ubuntu Bionic 18.04 flashing white line at top of onitor

The solution was to change the theme.  I used Gnome Tweaks to change the theme from Ambiance to Radiance.

Of course, perhaps the problem is still there, but simply not visible because of the light window border.

This has also been described in 14.04 here: Small white line flashing top of screen Ubuntu 14.04
but answers have been disabled on that question.


Lenovo S21e netbook touchpad and wireless problems solved with kernel and driver update

Here is the fix for the touchpad (Took me days to come up with a working solution): https://alpha-labs.net/2015/08/lenovo-s21e-linux-and-the-touchpad/


libpng warning : Application jmp_buf size changed - while installing XAMPP

I've solved this issue by deleting the noto font (/usr/share/fonts/truetype/noto).

See more detailed description in this post


I actually found an answer.

During the "Preparing" phase, deja-dup downloads the "signature" file. Since my "signature" file is ~3.0 GB, it will take ~2.5 h to complete the stage, given the current line speed.


Ubuntu doesn't boot due to GRUB-Problems

Fortunately, this is a very easy fix!

Boot up into a live CD, preferable Ubuntu.
Open a command line. You can do this by pressing ctrl+alt+T from anywhere in the Ubuntu GUI.
run the command "sudo grub-install"

It will take like 2 seconds to finish and GRUB will be reinstalled.


how do I enter a sudo command when part of my password contains uppercase letters and numbers

Changing case and adding numbers or other characters makes a password much more secure.  While it requires more care when entering it is done in exactly the same way as you enter it anywhere else in the system: using the shift key to enter capitals or special characters as required.

Terminal and most text-based password verifiers will not echo any keystrokes however, and this causes some confusion.  Just type the password as would normally with no errors and press enter.  Nothing whatsoever will appear on the screen while you are doing this.


Open a terminal.
Run alsamixer (type the command and hit Enter)
Press F6 then just disable the automute button.

Please make sure that you have your headphone jack inserted while doing all this.


I did have the same problem in the past and it was caused by installing GPAC with:

sudo apt-get install gpac

I fixed it then by installing GPAC debian package from GPAC Nightly Builds site.