Dell Inspiron 15-7568 Touchpad Move Freeze on Xenial 16.04

The integrated keyboard and touchpad randomly freeze in my Dell Latitude 3450 (formally, my touchpad is a clickpad )

I solved all my problems with Synaptic touchpad and keyboard freeze by simple use libinput instead of synaptic driver.
To do this, install:

sudo apt-get install xserver-xorg-input-libinput

additionally, to make sure it was libinput being used instead of synaptic driver, I removed the package with the Synaptic drivers

sudo apt-get remove xserver-xorg-input-synaptics

I also made some customizations in libinput settings.
I created this configuration file:

/usr/share/X11/xorg.conf.d/99-libinput.conf

with this content:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    Driver "libinput"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Option "Tapping" "True"
    Option "DisableWhileTyping" "True"
    Option "NaturalScrolling" "False"
    Option "AccelProfile" "adaptive"
    Option "AccelSpeed" "0.05"
    Option "MiddleEmulation" "True"
    Option "ScrollMethod" "twofinger"
    # Option "ClickMethod" "clickfinger"
    Option "ClickMethod" "buttonareas"
EndSection

See all available configuration options on manpage of libinput

http://manpages.ubuntu.com/manpages/xenial/man4/libinput.4.html

http://who-t.blogspot.com.br/2016/04/why-libinput-doesnt-have-lot-of-config.html

https://wayland.freedesktop.org/libinput/doc/latest/clickpad_softbuttons.html

https://wiki.archlinux.org/index.php/Libinput

I tested only on Ubuntu 16.04

UPDATE 2016-05-08: I had forgotten that I was using the linux Kernel v4.5.x (the default Ubuntu 16.04 linux kernel is v4.4.x) when I wrote this.

The problem of the integrated keyboard and touchpad randomly freeze, even with the above configurations, still persist on my Latitude 3450  if i use with the official Ubuntu 16.04 linux kernel v4.4.x series (i test with kernel4.4.0-21-generic and 4.4.0-22-generic).

The problem does not occur with kernel v4.5.x (4.5.0-040500-generic)

It was really simple to install linux kernel 4.5.x.

Find out how to do: http://ubuntuhandbook.org/index.php/2016/03/upgrade-linux-kernel-4-5-ubuntu/

Said that, install a not officially supported new kernel, can eventually result in many problems.

remember to NOT uninstall the official kernel, because if you have problems with the unofficial kernel (so far, everything works perfectly on my machine), you can still start the system with the official kernel.

ps:

if all this not work for you, maybe go back to use synaptic and try follow this tutorial: http://hgdev.co/install-ubuntu-15-10-on-the-dell-xps-13-9343-2015-a-complete-guide/


Strange folder in my home folder after a failed run of BleachBit

Short answer: do

rm -r 4F8ZBREShQ

and go for a walk or get yourself a coffee.

Long answer:

Seems a bug of BleachBit. See http://bleachbit.sourceforge.net/forum/unremovable-folder-after-trying-wipe-free-space; you can join the discussion there.

The OP of Not able to delete folder from gui or terminal has been able to get rid of it, see the answer; but probably his method is overkill.

In effect, doing a rm -r 4F8ZBREShQ and being patient (really really patient; ext4 is not a speed monster for large directories, and this is LARGE) would work.

Recent ext4 should use a linear time with the size of the directory for the deletion process; even then, deleting millions of files will require a considerable time --- from tens of minutes to several hours.


If you extract the files in the zip, you will find a directory named:
Scrot-and-imgur-zenity-GUI-master/src
In this directory (scr) there are 2 .sh files.
If you execute the zscreen.sh script you will get questions what kind of screenshot you will make, and if you want to upload it.

if you look into this zscreen.sh file, you will see it will store its screenshots in $HOME/Screenshots. Here you can also change the filename to something you like more.

How to upload the screenshots I don't know (no dropbox for me), and it gives an error that it can't find zimgur.sh.

You have to convert the zimgur.sh file to a zdropbox.sh file and make a list/replace zimgur for uploading :)


I was having the same problem on my laptop.  Here's how I fixed it.

Note that the specifics of each step will be different for different computers, and I can't tell you exactly how to do each thing.  If you have questions, I recommend Google.  I can only help you with the specifics if you're using an IBM ThinkPad.

1) Go into the BIOS

2) Go into the settings for the hard drive (usually labeled as SATA)

3) Enable compatibility mode

4) Reboot

5) Install Ubuntu

6) Go back into BIOS and put the settings back how they were


GPT partition scheme for UEFI from BIOS based system

Bootable USB flash drives for installing OSes contain data, and exactly equivalent data can be written whether the computer booted using an old-style BIOS or a new-style EFI. Different tools, though, offer different options for how to prepare the USB drive. In particular, there are two orthogonal factors:

Boot loader (BIOS vs. EFI) -- The boot loader is a program that interfaces between the computer's firmware (a BIOS or an EFI/UEFI) and the OS that's being booted. To boot on a BIOS-based computer, a BIOS-mode boot loader is required; and to boot on an EFI-based computer in EFI mode, an EFI-mode boot loader is required. (Most EFI-based computers also support BIOS-mode booting, which can create a real mess; see my page on this subject for details.) A USB flash drive can have BIOS-mode, EFI-mode, or both types of boot loaders, and different tools for preparing the USB flash drive present different options along those lines.
Partition table type (MBR vs. GPT) -- Just like hard disks, USB flash drives use partition tables. These are normally Master Boot Record (MBR) or GUID Partition Table (GPT). Traditionally, BIOS-based computers use MBR and EFI-based computers use GPT; however, it's possible to boot in BIOS mode from a GPT disk or in EFI mode from an MBR disk. There are also bizarre configurations that merge disk partition tables with the needs of ISO-9660 optical discs. The .iso file you download uses such a format. It can be written directly to a USB drive and the firmware and OS will interpret it as a weird disk format (GPT for Ubuntu, IIRC), but it deviates from the usual disk standards in several ways that can cause problems in some cases. For the most part, partition table types are mutually exclusive; a disk can't have both an MBR partition table and a GPT. (The ugly and dangerous hybrid MBR is a partial exception to this rule, but it's used mainly on Mac hard disks when the computer dual-boots with Windows. Hybrid MBRs are rarely or never used on Linux installation media.)

Most tools for writing .iso files to USB disks put both BIOS and EFI boot loaders on a disk that's either already been prepared with a partition table of your choice or that the tool prepares with either MBR or GPT, depending on the preferences of the tool's author. Some tools put just BIOS or EFI boot loaders on the disk, though, and some tools give you two or more choices of what to do. As you've discovered, Rufus offers three choices. This gives you flexibility and helps you work around system-specific quirks. For instance, if a particular firmware doesn't like a particular combination of boot loader and partition table, you can avoid it. You can also write only the boot loader required for the boot mode you intend to use, thus making it impossible to accidentally boot in the wrong boot mode (EFI if you intend to do a BIOS-mode install or BIOS if you intend to do an EFI-mode install).

There's a lot of subtlety and complexity to the boot mode choices, and I strongly recommend you read my page on this subject before attempting a dual-boot installation. It's far too easy to install in the wrong boot mode, which just creates problems you'll have to correct as soon as the installation has finished. Such problems were very common two or three years ago thanks to poor online documentation, but the most popular modern documentation does a better job of steering people around the problems. OTOH, a lot of bad documentation is still floating around online.

Note that the reason for the differences in tools' capabilities is simply that different programs' authors have different priorities and knowledge bases. There's no technical reason why Rufus gives you three options for boot loader and partition table combination whereas Unetbootin is less flexible on this score.


Can I install a new version of Ubuntu over old Ubuntu that I forgot the password to

No, you don't. The new Ubuntu will erase everything and you will be prompted to set up a new user name and a new password.


How to make changes while viewing a diff in bzr explorer?

You want

bzr diff --using gvimdiff [file]

Or open the "User Configuration" menu of bzr explorer, and set gvimdiff as an external diff application ; this will be offered at the top of the built in diff.

My qbzr.conf reads :

[DEFAULT]
config_window_size = 651x422
diff_window_size = 780x580
default_diff = gvimdiff
[EXTDIFF]
gvimdiff = gvimdiff

I think the difficulty with the config is that the first column is the name of the diff option ; the second is the command (and accepts certain keyword expansion sequences as well).


I don't want nautilus to show my NFS share as "umountable" when only root can umount it

From the mount man page:

The non-superuser mounts.
       Normally,  only  the  superuser can mount filesystems.  However,
       when fstab contains the user option on a line, anybody can mount
       the corresponding system.

       Thus, given a line

              /dev/cdrom  /cd  iso9660  ro,user,noauto,unhide

       any  user  can  mount  the iso9660 filesystem found on his CDROM

As you've set the user option for those mounts in /etc/fstab, they are mountable/unmountable by ordinary users.  If you remove that option, then Nautilus shouldn't consider those volumes user unmountable.


Have you tried booting into single user mode and try using passwd in there?
Let me know if need a guide on how to boot into single user mode.

Keep in mind to change the password for a user you need to type it in after the command.
Ex: passwd userName


Copying code directly into the console with keyboard shortcuts

In gnome-terminal you have to user Shift-Ctrl-V to paste and Shift-Ctrl-C to copy.


How to make Firefox use native notification (notify-osd)?

Install the GNotifier addon to get firefox notifications to integrate with the current desktop you are using, either unity, gnome-shell, kde or xfce.

https://addons.mozilla.org/en-US/firefox/addon/gnotifier/


Sound from bluetooth speaker seems to freeze often and is out of sync with the video

Possible workaround for the sync problem: mplayer has a command-line option to adjust the delay between sound an image, so you could regain sync this way.

The command would be mplayer -delay X /path/to/videofile where X is the delay in seconds. Negative values of X mean that the image will be delayed, and positive values mean the sound will be delayed.


Gradle sync failed: cannot detect java version

dont forget

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

and always

sudo apt-get update

after installing anything new


Xrandr: Configure crtc 0 failed (Unable to add 1080p resolution to second monitor)

Please open the following file and remove the # (comment) :

/etc/gdm/custom.conf or/etc/gdm3/custom.conf

The line to remove the comment :

#WaylandEnable=false

Restart the GDM service and try the following command :

xrandr

This should remove the WAYLAND and start showing the VGA or HDMI depending on your display port


Can I buy any USB microphone and have it work with Ubuntu?

This page on Ubuntu's community wiki (updated for 13.04) seems to imply it will be supported out of the box, but it will appear as a separate sound device - so you will need to select the correct input device in your sound preferences or mixer.


UFW rules for Windows network share in 20.04

I have the same problem. It looks as though the network name is not being seen. A workaround that works for me is to create a connection using the shares numeric address such as smb://192.168.1.x/.... and bookmark it. Also, if a password is required, you could set that to "Remember forever".

Edit:- Further investigation
"
Port 137. UDP NetBIOS name query packets are sent to this port, usually of Windows machines but also of any other system running Samba (SMB), to ask the receiving machine to disclose and return its current set of NetBIOS names.

The following command shows that port 137 should be open

  sudo ufw status
  [sudo] password for ***:
  Status: active

To                         Action      From
--                         ------      ----
137,138/udp                ALLOW       Anywhere
139,445/tcp                ALLOW       Anywhere
631                        ALLOW       Anywhere
5353/udp                   ALLOW       Anywhere
5298                       ALLOW       Anywhere
137,138/udp (v6)           ALLOW       Anywhere (v6)
139,445/tcp (v6)           ALLOW       Anywhere (v6)
631 (v6)                   ALLOW       Anywhere (v6)
5353/udp (v6)              ALLOW       Anywhere (v6)
5298 (v6)                  ALLOW       Anywhere (v6)

  tail -f /var/log/ufw.log

Jun 10 10:13:43 Delta-Ubuntu kernel: [  968.572307] [UFW BLOCK] IN=enp2s0 OUT= MAC=d0:27:88:04:b8:55:30:23:03:0e:6b:3c:08:00 SRC=192.168.1.1 DST=192.168.1.27 LEN=90 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=137 DPT=55794 LEN=70
Jun 10 10:13:44 Delta-Ubuntu kernel: [  969.521720] [UFW BLOCK] IN=enp2s0 OUT= MAC=d0:27:88:04:b8:55:30:23:03:0e:6b:3c:08:00 SRC=192.168.1.1 DST=192.168.1.27 LEN=90 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=137 DPT=50676 LEN=70

The above log extract shows SPT=137 being blocked by ufw which would explain why the NetBIOS names are not being seen. Go figure.

"


You can download and read the changelogs of packages from the Ubuntu repositories from the command-line, using the apt changelog command.

Example: apt changelog firefox

firefox (63.0+build2-0ubuntu0.16.04.2) xenial; urgency=medium

  * Update AppArmor profile as the shmem temp filename changed upstream (the
    profile needs to allow access to /{dev,run}/shm/org.mozilla.*)
    - update debian/usr.bin/firefox.apparmor.14.10
    - update debian/usr.bin/firefox.apparmor.13.10

 -- Chris Coulson <chris.coulson@canonical.com>  Tue, 23 Oct 2018 22:14:25 +0100

firefox (63.0+build2-0ubuntu0.16.04.1) xenial; urgency=medium

  * New upstream stable release (63.0build2)

 -- Olivier Tilloy <olivier.tilloy@canonical.com>  Mon, 22 Oct 2018 15:51:23 +0200

firefox (63.0+build1-0ubuntu0.16.04.2) xenial; urgency=medium

  * Do not require Node.js to build, as version 8.11 isn't available in xenial
    - update debian/config/mozconfig.in
    - update debian/control{,.in}

 -- Olivier Tilloy <olivier.tilloy@canonical.com>  Wed, 17 Oct 2018 21:59:49 +0200

[...]

Note however that not all repositories and packages necessarily provide changelogs, and not all changelogs need to contain useful information, depending on what you're looking for, but for the packages from Ubuntu's standard repositories, it should mostly be fine.


how to import and install a UEC image on Openstack?

Did you untar the file first?
I have used the following UEC image many times:

http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img

Set the image format to QCOW2.


I was able to get everything working by removing all drivers using

sudo apt-get purge nvidia-current
sudo apt-get purge bumblebee

I was then able to install bumblebee with the instructions on the bumblebee page.
I had to use the one for 13.10 not 12.04 though. But I'm just glad it works.


This could be a difficult question to answer. The simplest answer is to install fresh, but that sucks if you have a lot of data/customization already invested in your old install.

If it were my machine, I would boot up Ubuntu in live mode from my Ubuntu USB install thumb drive and start poking around at the hard disk  to try to figure out what has gone wrong and try to repair it.

First thing you might do is make a backup image of everything, since you might end up making things worse the first time around you try fixing things.

Next, I'd run fsck on the Linux partition to make sure nothing has corrupted the partition. If fsck comes back clean, great, all your data is still there and can be recovered one way or another if necessary. If fsck comes back with a bunch of errors, I'd say the installation is kaput, the partition is corrupted and not worth salvaging beyond any custom data you might be able to retrieve before doing a fresh install.

After fsck passes, I'd probably mount the Linux partition and use "chroot" to start working from within the Linux installation as if I had been booted from the Linux installation. You'll have to fiddle around with mounting dev, sys, proc, etc within the chroot environment, then you can run "update-grub" to try to get grub re-installed. Running "update-grub" might reveal some errors that could explain why you can't boot.

If "update-grub" works without revealing anything important, maybe try poking around under /var/log to see if any of the log files show any errors that could indicate why the system failed to boot.

Beyond that, I'm not sure what else to suggest without seeing all the error messages myself and trying to evaluate what is broken and what is not.

It is very frustrating that Windows has so little regard for Linux installations that it  sometimes konks out Linux from booting -- makes me want to avoid having a dual-boot system with Windows at all. Hopefully Microsoft will improve and start being more careful about messing up Linux installations in the future.


Remove lines starting with "string1" and NOT containing "string2" with sed

Based on the examples, provided in the article sed - 25 examples to delete a line or pattern in a file we can compose this command:

sed '/^MX/{/sum/!d}' in-file            # just output the result
sed '/^MX/{/sum/!d}' in-file -i.bak     # change the file and create a backup copy
sed '/^MX/{/sum/!d}' in-file > out-file # create a new file with different name/path

Here is perl solution - the source:

perl -ne '/^MX((?!sum).)*$/ || print' in-file
perl -ne '/^MX((?!sum).)*$/ || print' in-file > out-file

The same regular expression will work with grep -P (more explanations). But, instead of the above construction that literally means if not then print, to preserve the output of the matched lines with grep we need the -v option:

grep -vP '^MX((?!sum).)*$' in-file
grep -vP '^MX((?!sum).)*$' in-file > out-file

Here is also awk solution:

awk  '! /^MX/ || /sum/ {print}' in-file
awk  '! /^MX/ || /sum/ {print}' in-file > out-file

It is relatively easy to compose your regular expressions by online tools as regextester.com.

Productivity comparison:

$ du -sh in-file
2.4M    in-file
$ TIMEFORMAT=%R

$ time grep -vP '^MX((?!sum).)*$' in-file > out-file
0.049
$ time sed '/^MX/{/sum/!d}' in-file > out-file
0.087
$ time awk  '! /^MX/ || /sum/ {print}' in-file > out-file
0.090
$ time perl -ne '/^MX((?!sum).)*$/ || print' in-file > out-file
0.099


I don't think there is a straightforward way to deal with low-resolution icons, other than manually tweaking the icon theme and replacing the offending icons. And I don't think that you can get rid of the previews.

But instead of modifying the default xfwm4 task-switcher, you could easily replace it with a different task-switcher like Skippy-XD. So instead of being presented with icons, you would have actual previews of your windows.

See Something like 'KDE Present Windows' / 'Compiz Scale' / 'Mac OS X exposé' in Openbox / LXDE / Xfce? for some usage and installation details (and screenshots). But in short you can install latest development packages from Skippy-XD PPA (daily). Then you can bind skippy-xd command to Alt + Tab or Alt + Esc or whatever.


How to downgrade Compiz to 0.8.6 in Ubuntu 12.04?

I'm running 12.04 and using compiz version 1:0.9.7.8-0ubuntu1 without any problems.  However when I had Unity it was a nightmare.
My solution, since I was upgrading from 10.10, was switch to Xubuntu 10.10 and to remove Unity at each upgrade step.
As a result, I ended up at Xubuntu 12.04 using 1:0.9.7.8-0ubuntu1 with very nice
results.
I didn't have to remove Unity when upgrading from 11.10 to 12.04.
You may only have to remove Unity to get where you want to go.
I used the answer to this question for guidance.

Here are the suggested steps for 12.04...
For 12.04
Remove the following packages:
sudo apt-get remove unity unity-2d unity-2d-panel unity-2d-spread unity-asset-pool unity-services unity-lens-files unity-lens-music unity-lens-applications gir1.2-unity-5.0 unity-common indicator-sound indicator-power indicator-appmenu libindicator7 indicator-application indicator-datetime indicator-messages libnux-2.0-0 nux-tools libunity-misc4 unity-2d-common

syslinux-legacy will be installed, but this can be safely ignored.
Note: After removing Unity using the above described method, provided LightDM hasn't been otherwise removed, you'll still be greeted with the LightDM desktop manager upon rebooting into Ubuntu. But with Unity removed, LightDM won't have any desktops to manage, and so attempting to log in from LightDM will result in an error message. From LightDM, you can use "CTRL+ALT+F1" to exit into a terminal, from which you can install a new desktop environment, if desired.  For example, "sudo apt-get install gnome-core" can be used to install the Gnome Desktop Environment from the terminal, or "sudo apt-get install lxde" can be used to install LXDE from the terminal, etc. You will be given a choice between "lightdm" and "gdm" desktop managers during the desktop installation process. Selecting "lightdm" works with both the Gnome Desktop Environment and LXDE.

Note: When I ran the sudo apt-get remove unity unity-2d .... it failed saying it could not find a package. (nuxtools for 11.10).  What I did was edit the sudo apt-get remove unity unity-2d .... removing the package apt-get could not find, and it worked.
Here is the result...!


All I had to do is create a shortcut to my desktop. I'm an idiot.


GNU GRUB Terminal while dual-booting ubuntu with windows 10

If what you are referring to is a screen that looks similar to this:

ubuntu grub screenshot

the option you should select is - "Install Ubuntu" (or very similar)

If it is not Please take a picture and update the question.


I created another backup directory on my external hard drive. I've backed up to it a couple times so far and haven't gotten this error yet.


Hatari has a debugger with single stepping https://hatari.tuxfamily.org/doc/debugger.html, see apt list hatari.


error: file '/boot/grub/i386-pc/normal.mod' not found

From where or what do are you trying to boot windows 7 or xp?? If you want to choose between windows 7 or xp and Ubuntu on start up you will need to install windows first and then  Linux on another partition to get a proper grub file. If you reinstall Ubuntu after installing Windows you can choose that you want to install Ubuntu alongside Windows and you should be thine.


Anaconda Navigator cannot be run with root user privileges

Anaconda navigator is not designing for root user but you can use Anaconda as root and share access to all users. In this case, you need to manage conda by command line and not Navigator.

For official documentation about this, read Administering a multi-user conda installation.


Ubuntu Desktop Screen res more than 1366x768

According to the manufacturers documentation 1366x768 is the max resolution. Any resolution that is higher would not be supported by your hardware.


How do you round numbers in qml to two decimal places?

You can use almost all the javascript syntax in QML (See http://qt-project.org/doc/qt-5/ecmascript.html).

The fastest method is Math.round(<NUM> * 100) / 100

But (<NUM>).toFixed(2) works (but is too slow according to this question on SO)

The following snippet of code presents both implementations:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    id: root
    width: units.gu(50)
    height: units.gu(80)

    property var my_number: Math.round(33.088117576394794 * 100) / 100;
    property var my_number2: (33.088117576394794).toFixed(2);

    Component.onCompleted: {
        console.log(my_number)
        console.log(my_number2)
    }
}


Installed 17.10 on Acer Predator G3-710, but only boots into windows

I was finally able to get it working after following some of the advice here:
https://forum.level1techs.com/t/unable-to-load-grub-bootloader-on-uefi-acer-predator-17/111233/12

Specifically, I booted with Ubuntu 17.10 on a USB stick and then installed boot-repair as they suggested and ran it as suggested. Also disabled CSM (CSM -> Never).


What do I put in the "Search Domains" field?

More accurately:  It's a list of domains that the DNS resolver will append to a hostname when attempting to resolve it to an IP address.

For example, let's say you manager a bunch of servers at mycompany.com (web1.mycompany.com, web2.mycompany.com, db.mycompany.com, etc), and you're tired of typing the fully-qualified domain name every time you need to ping them or SSH to them.

You can add "mycompany.com" to the list of search domains to avoid that.  Now when you ping or SSH to web1, it will try to resolve web1, fail, then try web1.mycompany.com, which will succeed.


Can I bind the Unity dock to the Caps Lock key?

Yes, you can. Start CompizConfig Settings Manager, go to Ubuntu Unity Plugin and change the key under "Key to show the launcher". CompizConfig Settings Manager is available from the Ubuntu Software Center.


Turn on Touchpad Momentum feature in ubuntu

I dont believe there is any way to do this at the moment. You would need to get a copy of Synaptic Gesture Pack and from what I have researched that is a tough thing to come by. You can read a older question asked about the Touchpad suite here.
Where can I download the Synaptics Touchpad suite?

The synaptic website has some info on it here as well Synaptic Gesture Suite


Synaptics Touchpad : solving 2 finger problem triggered by resting palm

After so many years, finally I solved. The trick was to set these settings:

synclient PalmDetect=1
synclient PalmMinWidth=10
synclient PalmMinZ=0

This answer helped: Touchpad palm sensitivity

UPDATE

The above settings solve part of the problem, as the cursor still jumps randomly while you are typing (very annoying). By chance, I found out that the following settings removed that behavior:

synclient AreaLeftEdge=2000
synclient AreaRightEdge=5000

Note: those are the settings for my device... you need to find out your device values.

Try incrementing AreaRightEdge starting from zero until you can move the cursor as "normal". AreaLeftEdge works the opposite, so from zero, increment it until it doesn't move... then go back little by little until the cursor moves as "normal" again. (at the end, AreaRightEdge can not be lower than AreaLeftEdge).

And to save the settings, follow this: How do I make my synclient settings stick?


difference between bash.bashrc and /etc/environment file

One difference is that /etc/environment contains only variable definitions and doesn't appear to go through any sort of variable expansion/interpolation. Thus, you can't reference variables in definitions. This for instance won't work:

A="else"
B="something $A"

B will literally be something $A, not the expected something else.

See this question.

By the way, the answer you found through Google appears to be referring to a user's ~/.bashrc, rather than the system-wide /etc/bash.bashrc. That may be causing your confusion.


Kubuntu About info has http link, should be https

The website link is coming from the kubuntu-settings-desktop package as /etc/xdg/kcm-about-distrorc:

[General]
LogoPath=/usr/share/kubuntu-default-settings/kubuntu-circle-128.png
Website=http://www.kubuntu.org
Name=Kubuntu

You could file a bug report against the kubuntu-settings package. Current bug reports: https://launchpad.net/ubuntu/+source/kubuntu-settings/+bugs .

EDIT ON

Fixed with the 19.04: https://launchpad.net/ubuntu/+source/kubuntu-settings/1:19.04ubuntu1

As told: https://www.kubuntuforums.net/showthread.php/74868-http-still-being-used?p=423778#post423778

EDIT OFF

If you want to edit the KInfoCenter output in your system: An example from the AskUbuntu - Change Distribution Logo in KinfoCenter


Open up the file manager.
Navigate to the folder you want to add.
Use Bookmarks->Add from the menu or press Ctrl+D. Alternatively, you can navigate to the folder above the folder you want to add to the Places menu and drag and drop to the left hand pane in the file manager.


You need to change the permissions of the new icon. Run below command in Terminal

sudo chmod 644 /usr/share/unity/icons/launcher_bfb.png

Or copy again your icon via this

sudo cp /path/to/newIcon.png /usr/share/unity/icons/launcher_bfb.png

This command also sets parent directory permission to new copied file. (logoff/login needs)


can we install maria db on ubuntu touch device?

Yes. See Turn Your Phone into a Portable Web Server

Ubuntu Touch is still Ubuntu, Linux!

Use a Terminal app and do whatever you like.

(You might consider a Raspberry Pi with Wifi however. That's a lot cheaper and probably does whatever you need, and can be run from a power pack.)


On deleting messages, how do I stop them being immediately deleted?

I am using TB 31.7 too. I am using IMAP for my professional and for my private account. In Server Settings "move message to folder XY" is activated and for me it works perfectly.

If your Trash folder is on the mailserver: did you subscribe to the
corresponding folder? Check this by right clicking on your email
account in the tree view on the left of TB.
Or just use one of the
standard folders that exist on the mailserver (this is depending on
your providers' setup)


how to create a udev rule for usb flash with two partitions to create persistent node under /dev?

I think the problem is that you cannot mount a whole drive with several partitions at once. You have to mount each partition for itself.
Mounting means getting access to the filesystem, which can be very different on two different partitions. And how would you put two filesystems into one directory? You have to have at least two subdirectories like /media/myusb/part1.

That said we are back to UUIDs and labels.

You could create an udev rule triggering a script that mounts the two partitions by their uuid, like

#!/bin/bash

mount /dev/disk/by-uuid/xxxxx-xxxx-xxxxx-xxxxxx /media/myusb/part1
mount /dev/disk/by-uuid/yyyyy-yyyy-yyyyyy-yyyyy /media/myusb/part2

Alternatively you could place the partitions into /etc/fstab, and let udev do  a mount -a  .

Use 'blkid' to print the universally unique identifier for a  device; this may be used with UUID= as a more robust way to name devices that works even if disks are added and removed.

Maybe you could try that:

For partition one:

KERNEL=="sd?1", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0461", ATTRS{idProduct}=="4d81", SYMLINK+="myusb1"

For partition two

KERNEL=="sd?4", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0461", ATTRS{idProduct}=="4d81", SYMLINK+="myusb2"

Not sure if it works, but you could give it a try.

https://oracle-base.com/articles/linux/udev-scsi-rules-configuration-in-oracle-linux
https://wiki.ubuntuusers.de/udev/


GRUB: boot an ISO from a different partition

Try this:
menuentry 'UbuntuBionicVSCustom3' {
  set root='hd0,5'
  set isofile=/ubuntu-18.04-3f8806d-test2.iso
  loopback loop $isofile
  linux (loop)/install/vmlinuz boot=install iso-scan/filename="${isofile}" noprompt noeject
  initrd (loop)/install/initrd.gz
}


Problem reading files in ntfs external hd from windows xp after installing ubuntu

This problem appears after you mount a ntfs partition in ubuntu, it becomes UNREADABLE in Windows. You can only reformat the partition. So i believe you already gave up[7months ago] in trying to recover your backup files.
I experienced this with somebodyelse notebook in 2011. Today in Ubuntu 12.10 when you connect an external NTFS HDD/usb memory stick, the disk remains READABLE to Windows. I think the problem occurs when a disk is separated in multiple different extension formats: Partition 0=ext4 , Partition 1=ntfs, Partition 3=Fat32, etc, so when you acces the other partitions inside Ubuntu, they somehow become Unreadable in Windows.
If what i said is wrong, please do explain what is really hapening and whats the solution? other than:"do not mount ntfs/fat32 partitions in Linux"


How can I plot data from sc in the terminal?

Thanks to K7AAYs hint about the fact that sc-im does have plotting integrated, I figured out how to do this:

Press 'v' to enter visual mode and highlight the data, then enter ":plot bar" to plot the data as a bar graph. Using ":help" and searching for plot reveals this information. Other than 'bar', there's also 'line', 'scatter' and 'pie'.


I won't make a user with home directory set to /.
/var/host/ is correctly owned by root and 755 as it is needed for the chroot to work. Because it is owned by root of course user john can't write to it.
For user john you have to create subdirectories under /var/host/ for which he has write permission. john will never be able to write directly to the chroot (/var/host/) as it would be insecure so sftp doesn't allow that.


SFill vs DD on linux (Comparing write speeds)

Depends on how reliable you want it. Generally: the quicker the zerofill the easier to restore it.

sfill is part of the ATA Secure Erase command tool (secure-delete) set and what sfill does is something like this (source):

dd if=/dev/zero of=zero.small.file bs=1024 count=102400
sync ; sleep 60 ; sync
shred -z zero.small.file
dd if=/dev/zero of=zero.file bs=1024
sync ; sleep 60 ; sync
rm zero.small.file
shred -z zero.file
sync ; sleep 60 ; sync
rm zero.file

This will probably be around 13 Mbs too. Use -f option for a less secure but quicker zerofill by sfill.


How do I get add-apt-repository to work through a proxy?

In addition to configuring proxies, tell sudo to preserve the environment with the -E option:

export http_proxy=http://<proxy>:<port>
export https_proxy=http://<proxy>:<port>
sudo -E add-apt-repository ppa:linaro-maintainers/toolchain

with username and password:

export https_proxy=https://<username>:<password>@<proxy>:<port>


basic security ubntu 12.04 LAMP server quesrions

Let's just say that this system is secure enough to comply with HIPAA, so yeah, you are doing all right as far as security goes.

You shouldn't need antivirus software. The OS is secure enough that nothing is going to be installed unless you tell it to be installed.

Ubuntu does not reboot itself by default, so something must have changed that causes the reboot every week. I would look in the files in /var/log (where log files are kept) to see if you can figure out what application is calling the reboot. Whatever it is must have pretty high permissions to cause a reboot.

About the secret key script: That should be ok as long as the job doesn't do anything that could cause damage or security issues. The odds of someone randomly hitting that URL is small, but you should still make sure that the script that gets invoked doesn't clear out your filesystem or something.


There is no http:/archieve.ubuntu.schoolnet.lk/ubuntu mirror for Sri Lanka in the list.

If you look at LEARN mirror, you can see that it is not maintained very well. Instead of acting as a package repository, that mirror just redirect you to the image download page of Ubuntu!

I suggest you use the main repo or the one for India.


User Accounts not listed in System Settings User Accounts

It looks like the bug https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/952909?comments=all which affects accountsservice from Ubuntu 12.04 on some architectures like ARM (e.g., on Toshiba AC100) and PPC? Read there for the reason of this bug.

As of the end of July 2012, there is a fix in the precise-proposed repository -- https://bugs.launchpad.net/ubuntu/precise/+source/accountsservice/+bug/952909/comments/13.

(Before that, there was no fix for this bug in Ubuntu's packages (I've checked for my case -- ARM), but this bug has been fixed in the original Debian package. Although, I'm not sure the Debian package is completely compatible with Ubuntu (you can read about my experience of installing it in a comment there: "user accounts" settings didn't work for me after the installation), but at least the login screen should work  fine (i.e., list all the users) after installing the package from Debian.)


I use ubuntu tweak to supress any requests from the system like that.

Ubuntu Tweak Download


UB 12.04 Desktop - System Update Server Main vs UK and DNS

Try this for updated server:

As far as forcing DNS, try this:

You can edit your /etc/dhcp3/dhclient.conf, and add the DNS servers to the "prepend" line; this will ensure that the DNS servers are used everytime.

Open terminal.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo gedit /etc/dhcp3/dhclient.conf

Change this:

#prepend domain-name-servers 127.0.0.1; and change it to read

To this:

prepend domain-name-servers xxx.xxx.xxx.xxx  yyy.yyy.yyy.yyy

Replace the XXX, and YYY to reflect the DNS servers you want.

To test, you can either restart, or logout, and log back in, or just give the command

sudo /etc/init.d/networking restart

You can also set dns-* options in your interfaces file, to use the DNS of choice.


Reinstall Python. Open a terminal and run the following:

sudo apt-get install --reinstall python

This should fix your problem.


Ubuntu 16.04 - How to assign unallocated space in /home partition using Gparted

Backup you data from /home. unmount /home. destroy the partition sda6 and create a new one with the rest of space located on sda with fdisk.
I would recommend to use LVM (Logical Volume Manager) and not using native devices to create file systems on disks.Using LVM gives you the chance to expand file systems on the fly. shrinking needs most an unmount but it works dynamic on LVM Volumes. Ubuntu is giving you the choice during installation to use LVM for all file systems.


Is ubuntu installation binded to the installed-on hardware?

Yes it will boot, the only thing you need to be careful about it installing proprietary drivers, so if you have the Nvidia drivers installed on the USB key and you boot it on a machine with ATI graphics, that likely won't work.

But generally speaking installation to a USB stick should work on most computers out of the box.


External microphone recognize as headphone on Asus x450CA laptop

The Asus x450CA has a COMBO audio jack designed for headphone+microphone similar to the ones you use with your smartphone.

It doesn't support standard microphones without an audio splitter:


conditionally suspend power 16.04 Desktop

Finally found This Post
that describes how to write a script that pauses running vBox VMs.  Not a perfect solution but it works for now and has put me on the right path!


how can I add custom function at login page

You can use the Lightdm Gtk Greeter Settings to edit your Ubuntu login screen. To use it execute in the terminal:

lightdm-gtk-greeter-settings-pkexec

If you want to edit your grub menu you can use the Grub Customizer
In the terminal type:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
grub-customizer


Changing the mouse cursor shape on Lubuntu

First of, about the cursor shape. There are quite a few themes in the Ubuntu Software Center, which you can download. Changing the cursor is easiest with Unity Tweak Tool, at least IMHO.

Second, about the certain region. Oxygen cursor themes, which I installed just now, look just as show in screen shot in the Ubuntu Software Center, but when I hover the pointer over task launcher or drop down menu in firefox, it changes appearance to default. Is this something you wanted?

Extra stuff: Oneko and xeyes are two programs that "follow " the cursor movement. Oneko is cat chasing cursor, and xeyes is (well, what else?) eyes . There's also an icon slicer program in Software Center, and I downloaded it, but couldn't figure out how to use it, so I'll mention it only as a side note.


Libreoffice vs Lotus Symphony vs Starroffice. What is better?

Lotus Symphony as well as Star Office are discontinued, so LibreOffice is a clear winner here, surpassing even OpenOffice it has been forked from.

Long story short - Lotus Symphony and Star Office were either legacy or not so actively developed software while OpenOffice remained the main player. Then a group of former OpenOffice developers along with new newly recruited developers forked OpenOffice and called their project LibreOffice. Funny thing is within a year LibreOffice team has done more improvements within a year than OpenOffice has in 5 years and it still keeps the high development/code cleanup pace.


How to tell thunderbird to use doc viewer for pdf

Workarounds:

The simplest solution is to install thunderbird from official ubuntu repositories: sudo apt install thunderbird. Because of Thunderbird installed through snap could not see a list of installed apps.
The second option is to install evince using snap: sudo snap install evince. It will be available for opening pdf documents in thunderbird, installed through snap.

Make evince your default document viewer by right mouse button clicking on some.pdf file and set Document Viewer in Open With tab as your Default Application for this type of files:

In case of opening pdf files in Thunderbird it will be displayed as a default app for this type of files:

Make sure Evince is installed:

$ whereis evince
evince: /usr/bin/evince /usr/lib/x86_64-linux-gnu/evince /usr/lib/evince /usr/share/evince

Also, make sure, its .desktop files are present in /usr/share/applications:

$ ls -ailh /usr/share/applications/*Evin*
1707752 -rw-r--r-- 1 root root 1,3K жов  8 02:28 /usr/share/applications/org.gnome.Evince.desktop
1707751 -rw-r--r-- 1 root root  401 жов  8 02:28 /usr/share/applications/org.gnome.Evince-previewer.desktop

So it could be visible in the main menu and from Open With properties tab.

If you want to access a binary without going to /usr/bin where you do not have access from your user workspace, then create a symlink to it in your /home/user/bin/ folder:

mkdir ~/bin && ln -s /usr/bin/evince-previewer /home/user/bin/

Also, check permissions by:

ls -ailh /usr/ | grep bin
1441794 drwxr-xr-x   2 root root  72K бер  6 16:34 bin

You should have execution access marked as x in that output for others.


Installing Authen::Simple::PAM module with cpan in ubuntu fails

When a CPAN package is also available in the Ubuntu repositories, I'd install the Ubuntu version instead, especially if you encounter build issues:

sudo apt-get install libauthen-simple-pam-perl

Note that both CPAN and Ubuntu versions are the same (0.2).


Random drops of the internet connection, while Network stays stable

If you have installed a file sync program (for instance, Dropbox or ownCloud), try disabling and removing them. After a restart, check if you're still randomly disconnecting. Me and another user have made the same complaint, and you seem to have the same issues.


Are the "Ubuntu Core Apps" also intended for the desktop?

That is one goal, yes.  All Ubuntu SDK apps should be as usable on a desktop as they are on a phone or tablet.  Since the Core Apps are a major focus for us, and an early adopter of the SDK, you should expect to seem them incorporate the convergent designs that will be available.

As it is, you can already run them on the desktop, but their UI is tailored to touch-based input.  We will be fixing that soon, so they can switch between touch and keyboard/mouse inputs.


It turns out that custom shortcuts are slightly different and you need to run 3 commands for each. I managed to get it "working" with the following script:

#!/bin/bash

# Add the paths for if we are adding rather than overwritting shortcuts
KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings \
"['$KEY_PATH/custom0/', '$KEY_PATH/custom1/', '$KEY_PATH/custom2/']"

# Now set the shortcuts
BEGINNING="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"

$BEGINNING/custom0/ name "Take Full Screenshot"
$BEGINNING/custom0/ command "shutter --full"
$BEGINNING/custom0/ binding "Print"

$BEGINNING/custom1/ name "Grab Active Window"
$BEGINNING/custom1/ command "shutter --active"
$BEGINNING/custom1/ binding "<Alt>Print"

$BEGINNING/custom2/ name "Screenshot Selection"
$BEGINNING/custom2/ command "shutter --select"
$BEGINNING/custom2/ binding "<Shift>Print"

Note that this will overwrite your first 3 custom shortcuts (if they exist) and you may want to rename custom0, custom1, custom2 accordingly in order to not do this.

One also needs to manually disable the printscreen shortcuts as shown below (although would be grateful if someone could just update this answers script with the appropriate command(s).


Ok. We should install the driver first. In the terminal run:

sudo add-apt-repository ppa:xorg-edgers/ppa

enter your password (you won't see anything as you type it, don't worry) and confirm adding the repository. It contains the latest drivers.

update repos

sudo apt-get update

Now let's install the driver, still in the term

sudo apt-get install nvidia-313 nvidia-settings

You will have to reboot. Report back

Driver activated but not in use problem

Never seen that before. Please try:

sudo apt-get --purge remove xserver-xorg-video-nouveau

then

sudo nvidia-xconfig

logout and login again


How do I discover my current system encoding?

Apparently it's only a font problem with the remote website and has nothing to do with the locale configuration on your system.

Additionally, the browser has its own locale settings and the locale configuration does not affect the web rendering mechanism (maybe the browser UI but nothing else).

EDIT:

Locales

To show the system locale, simply run locale

To see all the installed locales run locale -a.

To switch locale simply run sudo localectl set-locale LANG=<desired locale from locale -a>.

You can add an additional locale to your system using sudo locale-gen <locale code>.


If you are using HTML formatted text, you can insert a link by a right click of your mouse or by clicking 'Insert' -> 'Link...' or by clicking the according icon in the bar.

If you are using plain text messages, you have to turn the line from "normal" text style to "Preformatted" text style to keep the editor from wrapping the lines.


Typing the command too long eats up the prompt when using the promptline theme

I solved the problem .I think the shell was not using ~/.local/lib/python2.7/...../bindings/bash/powerline.sh so I resourced it and restarted the system.

I also added the path variable for powerline-config file in the ~/.local/bin/poweline directory in .bashrc and now, everything is working just fine.


Install texi2html to convert Texinfo files to HTML:

sudo apt-get install texi2html

Man page of texi2html:

  SYNOPSIS

   texi2html [options] file

  DESCRIPTION

   Texi2html  converts  the  given Texinfo file to a set of HTML files. It
   tries to handle most of the  Texinfo  commands.  It  creates  hypertext
   links for cross-references, footnotes...

   Texi2html  may furthermore use latex2html to generate HTML (code and/or
   images) for @math and @iftex tags (see the --l2h option).

   Texi2html creates several files depending on the contents of  the  Tex‐
   info file and on the chosen options (see FILES).

   The  HTML  files created by texi2html are in general closer to TeX than
   to Info. Using init files (see the --init-file option), other styles or
   output formats may be selected.

  [...]


Samba with Windows AD sync, read only attribute not set

I fixed it by allowing Windows ACL`s and applied the permissions from Windows.

I added this to my config

vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes

And removed

#orce create mode = 0777
create mask = 0777
#directory mask = 0777
force directory mode = 0777
force group = Domeingebruikers


can you press f11 during the first boot screen to get a boot menu that lists  all of the detected boot devices? after power button press you want to immediately start tapping f11 a few times once every second, just to make sure it catches it.

it should still be visible as a boot device regardless of whether or not it is setup to boot. so I would establish having the bios see the usb drive before you try reformatting/setting up as a usb install disk again. maybe make sure to use a usb port in the back of the computer and possibly a usb 2.0 port(non-blue) to remove an other possible issues, also possibly check your bios usb settings, to ensure it is enabled

maybe try temporarily disconnecting your main drive, to speed up troubleshooting, to prevent having to boot into windows.


for 12.10 ndiswrapper is currently only working with revision 1.58rc1 (since Oct 2012)
for this version ndisgtk must not be installed afterwards in order to avoid complications.

Source (german)


Ubuntu 12.10 will not boot!! please help

I've got similar issues before and every time it was something I messed up.

Check if you made good partition table, made / partition bootable and formatted everything (if you did it in manual way).

Also, check again if grub was installed correctly - that one had driven me mad many times.

Also check your MBO, maybe you have some EFI, UEFI or some other new Windows stuff. See if you can change some options there.


Running a root shell is not suggested or supported by the designers of Ubuntu. sudo  allows authorized users (normally "Administrative" users) to run certain programs as Root without having to know the root password. This means that in the terminal you should use sudo for commands that require root privileges; simply prepend sudo to all the commands you would normally run as Root.RootSudo

In Ubuntu the root account is not active by default, so the command su root would not work unless you had previously changed the password for the root account, which is not recommended.

To install GParted open the terminal and type:

sudo dpkg --configure -a  # fix the error message
sudo apt-get install gparted  # install gparted

RootSudo: página em Português


What software is available to de-fragment Ubuntu filesystems?

There is no good way to defragment Ubuntu, because it doesn't have a fragmenting filesystem like NTFS on Windows; i.e., there is no need to defragment. Take a look at Why is defragmentation unnecessary?


NTFS partition service issue with creating Windows 10 bootable USB on Ubuntu

So following the official steps:

sudo add-apt-repository universe
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb

Throws me an error for one of the dependancies: libwxgtk
Upon some bit of googling I found this

Which is where I found the answer to my first roadblock:
Download the libwxgtk from link provided in this comment

So woeusb gets installed properly now.

More issues

UI doesn't detect the USB devices, when I open the WoeUSB app.
Tried searching multiple things online, and then settled for doing it via cmd line.

sudo woeusb --tgt-fs NTFS --device <iso-path> /dev/sdX

Before doing that, I had to format the USB device, which I did using the disks utility of Ubuntu.

And lo and behold, first cut of the Bootable USB failed to detect.
After doing some digging, I stumbled upon this
Essentially for UEFI devices, you need to format the USB with GPT rather than MBR (default).

So repeated the whole process on with formatting the USB with GPT.

Final blocker

Now the USB got detected, and when I set the boot order and tried to boot the USB, I got a rather cryptic error: Could not start NTFS partition service

Googling for that error landed me in this Github issue
Reading through the whole conversation on the issue, one thing struck me at this comment

He had mentioned that the tool worked fine with EfiFS v1 & v1.1.
That reminded me of one of the output of the woeusb cmd line run.
It downloaded the latest version of uefi-ntfs.img from rufus github repo.

So I did a little bit of digging, and found a sufficiently old version of that file here

I downloaded this, and then rewrote this image over the UEFI:NTFS partition on the USB.

dd if=<path-to-uefi-ntfs.img> of=/dev/sdX2 # find out the proper partition reference using the disks utility

Now it finally works!!

Summary - final steps

Download the Windows 10 ISO from official links
Install woeusb

sudo add-apt-repository universe
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb

If you run into an issue with libwxgtk dependancy, download the deb file from this link
Install the Deb file and reinstall woeusb
Plug in the pen drive
Using the Disks utility, format the USB with GPT partitioning.
And create bootable USB

sudo woeusb --tgt-fs NTFS --device <iso-path> /dev/sdX

At this point, the whole thing should work for most cases.
But in case your system is old, it might throw some error about NTFS partition service. Then follow on:

Download the old version of UEFI:NTFS partition image from here
Overwrite the UEFI:NTFS partition with this image

dd if=<path-to-uefi-ntfs.img> of=/dev/sdX2

Try again now, it worked for me!!


bypass boot menu by listing all operating systems at grub menu

Try Grub Customizer It allows the edit of menu entries contents or even create new ones.

To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Once installed, you can add the menu entry that you need.

Or

You can manually edit /etc/grub.d/40_custom, and add the following lines to the bottom of the file:

menuentry ‘Windows 7′ {
set root='(hd0,msdos2)’
chainloader +1
}

Replace hd0, with your own.

For UEFI

menuentry "Microsoft Windows Vista/7/8 x86_64 UEFI-GPT" {
  set gfxpayload="keep"
  insmod part_gpt
  insmod fat
  insmod search_fs_uuid
  insmod chain
  search --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 xxxx-xxxx
  chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

Replace x with you gpt2 ID.  UEFI menu entryArch Forums


Try rebuilding a Ubuntu 20.04 LTS while the kernel 5.4.30 amd64 cannot be found in mainline

UKUU indicates v5.4.28 is lated 5.4 installable on x86-64.  I looked on https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.30/ and https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.40/ as well, and it appears there's a build failure on i386 and amd64.  I looked at build log (look for "**" to find interesting bits) and it bails out building wireguard, building this wireguard module fails so the entire build fails rather than shipping without an expected module.  I'm using ukuu to install on Ubuntu 18.04, but I must assume with 5.4 being the standard kernel on Ubuntu 20.04, that they will fix wireguard so they can benefit from more updated 5.4 kernels.


Try using instructions from here to install Ubuntu. Windows 8 secure boot is likely preventing you from booting Ubuntu.

To remove Ubuntu, see this question.


Mouse pointer does not change appearance

it is a normal behavior i think.
with the unity launcher the mouse should not change. there are different ways to see if it is "working" or "loading".

install compizconfig settings manager from the ubuntu software
center
launch the compiz config from dash
go down and search for the unity plugin
click on the experimental tab
change the launch animation to pulse until running or other option
you are comfortable with

now you can see the icon on the launcher blinking (sign it is loading) untill the application comes up.


How to change GNOME top panel colour and transparency levels?

To do this you will need to install the GNOME Shell extension Activities Configurator. For installation instructions and for instructions on how to get into the settings panel for any extension which has one go here.

And then as well as many other things you will be able to change the top panel colour and its level of transparency:


Installing Ubuntu on a different SSD but still having ability to switch OS SSDs quickly

Yes, it is very simple, I did that before in which I had ubuntu on an HDD and another one on an SSD, all what I used to do is just switching them (since I hadn't two places for two disks, I had just one).


How to save machine state without hibernating?

If you're willing to keep all of the mounted block filesystems completely untouched (that is, mounted only in read-only mode, as an ext4 journal will be modified even without any changes for example), and unmount others (eg NFS) before freezing, then yes.

You can use the kernel parameters noresume and resume= to specify whether you want to reboot into your frozen state or not.

The sequence would be:

To snapshot, suspend to disk, boot your system without resuming (noresume) or another system altogether (like a livecd), copy the swap partition elsewhere, then reboot with the correct resume= and use your system.
To go back to the frozen state, boot again with noresume or from another system, copy the swap partition back, then reboot with the correct resume= again.

I wouldn't recommend this though. Virtualization offers a much safer and tested way to achieve your results with fewer caveats.


Enable Sound Effects

In addition to turning ON Alert volume from System Settings... > Hardware > Sound > Sound effects;

1) Install Ubuntu Tweak (For more info: www.webupd8.org/2012/11/ubuntu-tweak-gets-full-ubuntu-1210.html)

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

2) Go to Tweaks > Sound

3) Enable Event sounds / Input feedback and select a Sound theme, e.g. Ubuntu studio...

Enable Login Sound

To enable the old login sound, you need to add a new entry to your startup programs:

Open Startup Applications from the dash
Click Add
In the "Command:" line, enter the following command: /usr/bin/canberra-gtk-play --id="desktop-login" --description="play login sound"
The name and comment aren't necessary, but it may be helpful to name it something like "Login Sound" so you can identify it later if necessary.
Click Save

That's it! You should hear the familiar login sound next time you log in.


Fixed with the following steps:

Ctrl+Alt+F1 on login screen
install aptitude sudo apt-get install aptitude
sudo aptitude install ubuntu-desktop
follow instructions aptitude gives

Aptitude will downgrade/remove broken packages before proceeding with the install.


How to increase speed of USB transfers using usb_storage driver/module

From the comments...
re: I am copying ~70 GB of audio files from this drive (WD Elements 25 2TB external USB 3.0) to my Android Pixel 2 phone, and the transfer speeds are in the area of <1 MB/sec to ~10 MB/sec.
Try using a different file manager than Nautilus, when copying files to the Pixel 2.
I tried transferring the files to the Pixel using Caja, and the speed was almost 30 MB/sec.
Update #1:
I purchased a new Anker 3.0 USB cable and tried the 70 GB transfer using Nautilus. Now the speed is a sustained 24-27 MB/sec. It seems the bottleneck was the off-brand USB cable I had been using.


Month names are written in Hebrew and not in English in terminal

There are a few options. The least intrusive is to start the terminal by pressing Alt+F2 and running the command

env LC_TIME=en_US.UTF-8 gnome-terminal


Using the following command in terminal, you can set sound level as you wish:

pactl -- set-sink-volume 0 150%

In this case we have set the volume of the sink #0 to 150%.

Now, if you want to set this setting as default at startup, add the above command in /etc/rc.local file. You can use sudo -H gedit /etc/rc.local to open an edit this file:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

pactl -- set-sink-volume 0 150%

exit 0


Fan turns on full blast after resuming from suspend - Sony Vaio w/ Ubuntu 12.04

Hopefully the following solution that fixed a very similar problem for me (hybrid graphics Intel HD 3000 and AMD Radeon HD 6630M) will also work for you. As you're writing about switcheroo I asume you're using the open source ati driver like me. I added the following script to
/etc/pm/sleep.d
 called 0001fixhibernate

  gksudo gedit /etc/pm/sleep.d/0001fixhibernate

and added this text:

#/bin/sh

case "$1" in

    suspend|hibernate)
        echo ON > /sys/kernel/debug/vgaswitcheroo/switch
        echo DIS > /sys/kernel/debug/vgaswitcheroo/switch
        ;;
    resume|thaw)
        echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
        echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
        ;;
    *)
        ;;
esac

What the script does is activating the discrete graphics card just before suspend or hibernation and disables it again on resuming or thawing.
With this script I'm working around a freeze after resuming that's accompanied by the fan running at full speed. Please give any feedback if it works or not.


check if there is not another process launching and changing the ulimit before like here with supervisor : https://underyx.me/2015/05/18/raising-the-maximum-number-of-file-descriptors


Webcam installation problem in ubuntu 20.04

I had the same problem with my Logitech QuickCam Chat 046d:092e. I gave my user the right to use video devices, logged off and on again, and then it runs. I tested the cam with guvcview.


how can i safely remove an external hard drive?

If you click on one of the partitions in the unity launcher, you can select "safely remove parent drive".  Wait a moment for any data to be written out.  If the device automounts again after a few seconds then repeat this operation and you will be able to remove the device.

If this is an earlier version that does not use unity (or does not have the remove device functionality)  You can unmount all of the partitions in Nautilus (filemanager) or with the umount command line and then it will be safe to remove the device.

Remounting partitions after they have been unmount is a different question, and you may not be able to access the device at all if you have used the "safely remove" option, until you remove the device and re-insert it again.


After it has installed, you can install something like Ubuntu Tweak to change your theme using these commands:

sudo apt-add-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

After installation, open Ubuntu Tweak, then select the Tweaks Menu, then select the Theme Menu. The theme should appear under the Gtk Theme Menu or another similar menu.


Create a live USB with the same version of Ubuntu that you are using.
Boot from it
Mount your hard drive
Copy the files you want to revert from the live image to your installation hard drive.
Reboot and remove the USB

Alternatively, you can boot the iso in a Virtualbox.

In my Ubuntu 16.04, those files look like this:

/etc/network/interfaces

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

/etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false


The same issue occurred in Lubuntu but with more occurrences (Link). I think there was some issue with the core OS or drivers. After installing the newer version of Ubuntu 20.04.2 the issue is gone.


You will be able to release-upgrade directly from 19.10 to 20.04.

LTS releases are ordinary 6-month releases of Ubuntu...that simply happen to have longer support periods for those users who want that particular pattern.

Users of interim releases will upgrade from 19.10 to 20.04 in April 2020, and then from 20.04 to 20.10 in October 2020. Users of LTS releases will use 16.04 or 18.04 or 20.04 until their support period ends, and then upgrade to the next LTS release.


# This is a list of packages to be removed when the 'minimal' option is
# selected during installation.

# Note that the format is NOT the same as the usual seed format. This file is
# not processed by germinate - it is simply downloaded during image builds.

# Desktop apps
thunderbird
transmission-gtk
gnome-todo
baobab
rhythmbox
cheese
vino
shotwell
totem
usb-creator-gtk
deja-dup
gnome-calendar
remmina
simple-scan

# Desktop experience
thunderbird-gnome-support

# Games
aisleriot
gnome-mahjongg
gnome-mines
gnome-sudoku
branding-ubuntu

# Libreoffice
libreoffice-style-breeze
libreoffice-gnome
libreoffice-writer
libreoffice-calc
libreoffice-impress
libreoffice-math
libreoffice-ogltrans
libreoffice-pdfimport

# Others
example-content
ubuntu-web-launchers

# Langpacks (keeping libreoffice and thunderbird installed otherwise)
libreoffice-l10n-en-gb
libreoffice-l10n-es
libreoffice-l10n-zh-cn
libreoffice-l10n-zh-tw
libreoffice-l10n-pt
libreoffice-l10n-pt-br
libreoffice-l10n-de
libreoffice-l10n-fr
libreoffice-l10n-it
libreoffice-l10n-ru
libreoffice-l10n-en-za
libreoffice-help-en-gb
libreoffice-help-es
libreoffice-help-zh-cn
libreoffice-help-zh-tw
libreoffice-help-pt
libreoffice-help-pt-br
libreoffice-help-de
libreoffice-help-fr
libreoffice-help-it
libreoffice-help-ru
libreoffice-help-en-us
thunderbird-locale-en
thunderbird-locale-en-gb
thunderbird-locale-en-us
thunderbird-locale-es
thunderbird-locale-es-ar
thunderbird-locale-es-es
thunderbird-locale-zh-cn
thunderbird-locale-zh-hans
thunderbird-locale-zh-hant
thunderbird-locale-zh-tw
thunderbird-locale-pt
thunderbird-locale-pt-br
thunderbird-locale-pt-pt
thunderbird-locale-de
thunderbird-locale-fr
thunderbird-locale-it
thunderbird-locale-ru

# Unused rdepends
gir1.2-rb-3.0
gir1.2-totem-1.0
gir1.2-totemplparser-1.0
guile-2.0-libs
libabw-0.1-1
libavahi-ui-gtk3-0
libdmapsharing-3.0-2
libexttextcat-2.0-0
libexttextcat-data
libfreehand-0.1-1
libgnome-games-support-1-3
libgnome-games-support-common
libgom-1.0-0
libgrilo-0.3-0
liblangtag-common
liblangtag1
libmessaging-menu0
libmhash2
libminiupnpc10
libmwaw-0.3-3
libmythes-1.2-0
libnatpmp1
libneon27-gnutls
liborcus-0.13-0
libpagemaker-0.0-0
librdf0
libreoffice-avmedia-backend-gstreamer
libreoffice-base-core
libreoffice-common
libreoffice-core
libreoffice-draw
libreoffice-gtk3
libreoffice-style-elementary
libreoffice-style-galaxy
libreoffice-style-tango
libraptor2-0
librasqal3
librevenge-0.0-0
librhythmbox-core10
libtotem0
libvisio-0.1-1
libwpd-0.10-10
libwpg-0.3-3
libwps-0.4-4
libyajl2
python3-uno
rhythmbox-data
rhythmbox-plugin-alternative-toolbar
rhythmbox-plugins
remmina-common
remmina-plugin-rdp
remmina-plugin-secret
remmina-plugin-vnc
duplicity
seahorse-daemon
shotwell-common
totem-common
totem-plugins
transmission-common
cheese-common
gnome-todo-common
libgnome-todo
gnome-video-effects
libcheese-gtk25
libcheese8
uno-libs3
ure
zeitgeist-core
hunspell-de-at-frami
hunspell-de-ch-frami
hunspell-de-de-frami
hunspell-en-au
hunspell-en-ca
hunspell-en-gb
hunspell-en-za
hunspell-es
hunspell-fr
hunspell-fr-classical
hunspell-it
hunspell-pt-br
hunspell-pt-pt
hunspell-ru
hyphen-de
hyphen-en-ca
hyphen-en-gb
hyphen-en-us
hyphen-fr
hyphen-hr
hyphen-it
hyphen-pl
hyphen-pt-br
hyphen-pt-pt
hyphen-ru
mythes-de
mythes-de-ch
mythes-en-au
mythes-en-us
mythes-fr
mythes-it
mythes-pt-pt
mythes-ru

Source: Currently a dead link


I do have this problem since upgrading to 20.10 (Groovy Gorilla), no problems before in 20.04. Right now, my kludgy workaround is to start gnome-tweaks ("Tweaks") and in "Keyboard & Mouse" temporarily setting the Compose Key to something else and then restoring it to Right-Alt.
This is obviously not a lasting solution, but the best I have to offer.


Ubuntu 20.04 issues with TP Link AC1300 Archer T4U

Only the bu https://github.com/EntropicEffect/rtl8822bu driver worked for me on kernel 5.4.0-7642-generic. The driver TPLink provides here https://www.tp-link.com/us/support/download/archer-t4u/#Driver is not compatible with newer Kernels.


drm intel pipe_config_compare [i915] error mismatch in ips_enabled

Follow this post, it did the magic. https://askubuntu.com/a/757696/530803
Here is what you it says to do,

Steps I followed:- 1. When the error popped up, I press Ctrl + Alt + F3, it opens virtual terminal and entered my login and password.

Then use this command:- history | grep install
After this output shows, what all softwares I recently installed. mine shows fdlrx, xdm, openvpn.

Removed those softwares using command:- sudo apt-get remove fdlrx sudo apt-get remove xdm sudo apt-get remove openvpn sudo apt-get remove bcmwl-kernel-source
Last command, I take from this page only.

Then reboot the system using command using command:- reboot

And it will work. This post must be marked as answered so that it becomes easy to find. So I decided to create my own thread and mark it answered!


Well, my launcher does not place newly launched icons in random order, rather more precisely, it does not interfere with the top 10 (which are labeled 1-0) 1,2,3,4,5,6,7,8,9,0.  So, I must ask which version of Ubuntu, etc, etc, with more information on your part! Of course, if you by chance lock the new ones to the launcher and then move(click and drag) them around, you can upset the order easily.  Try dragging all locked icons to where you want them, with particular attention to items 1 thru 0.  Below those most cherished, place other important icons closer to the top ten, for convenience. Move them wherever best suits heck, even add em to the top ten if they grow in importance to your way of doing things.


Ubuntu 14.04 Intermittent Internet Disconnetion

If you use  wifi with Wireless Router,I suggest you to change the Wireless Router's wireless channel to another unusual one. because the NIC driver of Ubuntu is imperfect


Problems with D-link Dir 600 and my AR9285 wireless card

Problem solved! After reading a lot, i decided to reset the router to the factory values, and to configure a new user and a new password.
After that, the wifi connection runs very well on my Ubuntu 11.10, and in the other OS that i have in my house, like win7 or linux mint.


How do I change my 1080p external monitor from portrait to landscape on an Eee PC 1000H?

I had the same problem, Here was my fix:
I went to system > Display like you, and I clicked the slider for my laptop to the off position. Then I could place my monitor at full


Figured it out:

sudo burg-install --alt /dev/sda

I should have believed the directions from the website


Unable to get to the home screen or login

What kind of Display Manager do you use? Have you tried to reconfigure it? you can do so by using the command: sudo dpkg-reconfigure gdm or sudo dpkg-reconfigure lightdm for the one you are using.

Maybe hitting Alt+Ctrl+F1 to change to console mode and using the commands:

sudo apt-get update
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove

After that, maybe sudo service lightdm restart or sudo service gdm restart could get you back to what you are looking for.


It seems unlikely it is your Ubuntu computer because you are using an adb shell command.

You can run adb shell as a separate command and verify that you enter the shell of the device without any issue. This confirms that you are now running commands on the device instead of your computer. If you can't shell into the device, then it would in fact be an issue with your computer.

Is it a Genymotion device or a standard Android emulator?


How can I close a root process "unknown TCP" that shows up in nethogs?

The "Nethogs" package will always show a fake process called "unknown TCP", that corresponds to everything it can't identify. Notice that it doesn't have a process ID, and the amount of data is shown as 0, indicating that there isn't any unknown traffic.

Here's the line from the nethogs source code where that line gets initialised:

unknowntcp = new Process (0, "", "unknown TCP");

(Source code download, look in process.cpp)

There's also a bug report on the nethogs sourceforge page explaining that it's normal:
http://sourceforge.net/p/nethogs/bugs/17/

The "remote-login-service" process shown is owned by the lightdm user which is your login screen, and hasn't sent or received any data. I'm not sure if it normally runs by default, but it doesn't seem to be doing anything with the network in the screenshot you posted, so it should also be safe.

http://packages.ubuntu.com/saucy/remote-login-service

So, based on what you've posted, nothing appears to be out of the ordinary and (unless you find other evidence of problems) your computer is most likely secure.  If you are truly worried, you could do a fresh install just to be sure.


Note: the error you have might be related to Corrupt packages in your local cache, please execute the following command to fix it:

sudo apt-get clean

  man apt-get

clean
      clean clears out the local repository of retrieved package files.
      It removes everything but the lock file from
      /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.

You can upgrade libdns162 package using the following command:

sudo apt-get install --only-upgrade libdns162

Note that before performing the package upgrade you might need to execute:

sudo apt-get update


Upgrade Ubuntu without losing Grub dual-boot settings?

On your Hard Drive, in the first few sectors, there is space reserved specificity for the Boot Loader. In your case, it is Grub. Should you overwrite Ubuntu with a new version, the installer will overwrite all your Grub settings, but then it will create a new Grub, and then indexing the Windows Partitions.

In short, all you dual boot settings will be overwritten, but dual-boot will work again, as when grub is reinstalled, it will see Windows.

Hope this answers it.


sleep -i 1000

will pause for 1000 seconds.  It can be interrupted by hitting ESCAPE.

I once managed to hit the Shift key at the right times during the BIOS boot to get a peek at the single message that comes out of shim (shimx64.efi?).  I can't reproduce it.  I think it starts with holding the Shift key down while the DELL logo is displayed, until an empty progress bar pops up at the bottom of the screen.  Releasing the Shift key causes the boot to resume.  I assume I hit the Shift key again just as it filled, but I'm not sure.


Fastest way to make sure arp -n contains router

You already are assuming you know what your gw is (192.168.1.1) but as the question is posed, I understand that may not be the case.
I'd make sure first using "ip route", then something like:
$ ping -c1 -W1 $(ip route | grep default | awk '{print $3}')

I don't understand what you gain with don't knowing your gw first. Your system already know it, otherwise it couldn't ping anywhere.


The same string twice in the $PATH environmental variable

Removing the export PATH="$HOME/bin:$PATH" directive from the /home/ubuntu/.bashrc file fixed the problem, since the PATH="$HOME/bin:$PATH" is already covered by PATH="$HOME/bin:$PATH" in the /home/ubuntu/.profile file.


Try Pointing Devices

sudo apt-get install gpointing-device-settings

It contains a nice GUI for changing touchpad settings like sensitivity, min/max speeds and palm detection.


Is there a file GUI file manager that has both directory tree and bookmarks/quick links visible at the same time on sidebar?

spacefm provides such a feature:

Of course, you'll have to define bookmarks yourself, only /home is predefined.
Install with
sudo apt install spacefm            (GTK2-version)

or
sudo apt install spacefm-gtk3       (GTK3-version)


This is not a solution but a workaround.

Before doing this, save all your work.

Open the System Monitor and end the process Xorg.


So if you did, then here's why.

Chrome sticks to the computer name that you had when you first installed it. That means, it expects to be run only on that computer with that name. To Chrome, that computer name = a machine. So when you switch names, Chrome thinks that it has been moved to another computer, but in reality, your machine's name has only changed. Therefore, it also thinks that its old copy is still running on the other machine, so it gives you the error. That message is completely fine, Chrome is just telling you to finish its transitioning process.


Why does the system slow down under load (especially in games)?

Open System Monitor/Task Manager and notice the RAM usage when this happens the next time. When the RAM is almost full, Ubuntu begins to use a portion of your hard disk (known as SWAP) as a substitute for physical memory, and this makes the system slow, because the data transfer rate to a hard disk is a lot slower than RAM. This may be causing the freezing.
Unfreeze the system
We can disable swap (all memory is transferred to the physical memory), and re-enable it to make the system normal.
When the system almost freezes, open a terminal ctrl+alt+T. Then enter the command to "unfreeze" the system.
sudo swapoff -a && sudo swapon -a

Permanent solutions

Decrease swappiness

The less the value of swappiness, the system would use the physical RAM more aggressively, and would use swap less.
Enter the following command
sudo gedit /etc/sysctl.conf

Search for vm.swappiness and change its value to 10, and save the file.
vm.swappiness=10

Disable SWAP permanently

Another possible permanent solution would be to disable SWAP. The kernel would automatically close the process that is consuming too much memory.

This question is about a similar issue.


sudo dpkg --configure -a
Ctrl + C
Remove Mariadb or Uninstall Mariadb
Install Mariadb

This way I solved My Problem.


I want to rsync files older than 2 days, syncs all files instead

Natim is correct in that {} needs to be used to pass on the filenames to rsync. There is no need to switch to scp. Just use the {} with rsync as in:

find /path/backups/ -type f -mtime +2 -exec rsync -vPhd -e "ssh -p 512" {} --delete --ignore-existing me@host:/remote/path/server-backups/ \;

Note: I also changed

-mtime 2

to

-mtime +2

as you state files older than 2 days. You may need to tune this to your exact needs.


Pound symbol (£) on US keyboard on 12.10

ComposeKey, L, -

(- on the main keyboard not the number pad)

£

See... it works


Make and receive calls on Ubuntu using an external android phone

This topic looks to be asking the same or a similar question, and the answer cites Android Notifier (linked in that thread) as a potential solution.

I don't know if you've considered it, or if it would be an appropriate response (if not, please edit or remove as necessary!)... But Google Voice allows for a new phone number which is used over WiFi. I have previously used that service for a business phone line as a Web developer, so that I could give a local number to clients and retain the privacy of my personal cell phone.

This does not rely on the phone being plugged into the computer, though, so perhaps this answer is not correct because it does not technically "use Ubuntu;" however, Google Voice can be used on the Web browser in Ubuntu (or any OS), as well as on your phone. You could download the app via WiFi on your old Android device and use it that way.

Forgive me if this is an irrelevant response, but if nothing else, a valid alternative.


tar and uuencode my folder into txt files

That is not an error, but a notice.
Inside the tar, the path will be saved as home/git/ImageMonitor/.
Otherwise, if you extracted the tar, it will also extract to the absolute path, which is pretty unsafe and most often not what you want.
You can force tar to keep the / if you know what you're doing:

-P, --absolute-names
     don't strip leading '/'s from file names

See also

However, you probably don't want that path at all.
You should run
cd /home/git
tar -cjvf ImageMonitor.tar.bz2 ImageMonitor/ | uuencode > /tmp/updateuucode.txt


Delete confirmation dialog doesn't show up when I delete a file

I assume you are referring to deleting Files/Folders in Caja, the most common file explorer in Ubuntu.

The “bug” is still around in Ubuntu 16.04. Except they don't see it as a bug: If you delete something terminally, you'll be asked (if chosen so in the settings). If it's ‘just’ about moving files to Trash, there is no option, and the DEL key is trigger-happy.

(Yes, I would prefer to be asked about that, too. All to easy to almost-delete a file. And who thoroughly checks his trashcan before occasional emptying?)

→ see here for further discussion


14:04 Your MPM seems to be threaded. Selecting cgid instead of cgi. Module cgid already enabled

There are actually three distinct messages in that response:

Your MPM seems to be threaded.
Selecting cgid instead of cgi.
Module cgid already enabled

What the message is saying is that:

the cgi module is not compatible with your Apache installation, but the cgid module performs the exact same thing and is compatible with your apache installation, so..
it will use cgid instead,
but cgid it's already enabled, so it doesn't need to do any work

If your cgi directory isn't being served, try restarting apache


The Python module six that is installed is very old. Within your python interpreter

import six
six.__version__

The current version is 1.7.3, on my 12.10 Ubuntu system  the default was 1.1.0. Upgrade this module and you will be up and running again.


Problem in installing mclust package on R in UBUNTU 16.04 - /bin/bash: f95: command not found

This is an issue with the fortran compiler (/bin/bash: f95: command not found): you have not installed it. You can install it using

sudo apt-get install gfortran


Ubuntu 12.04 - PPTP VPN is the only Internet Access

Hope the example config can give you an idea to another approach. E.g: execute scripts to do whatever you would like on ppp0 "up\down.." events. You can use the predown script to stop all your services, lockdown all the traffic in the firewall and flush the routing table.

 zcat /usr/share/doc/ifupdown/examples/network-interfaces.gz | less

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
##...
# The "pre-up", "up", "down" and "post-down" options are valid for all
# interfaces, and may be specified multiple times. All other options
# may only be specified once.

I assume it is the NetworkManager that is modifying your routing table. The configuration files for the NetworkManager can be found in /etc/NetworkManager/*

Add the following under [ipv4] for your (pptp) connecetion:

ignore-auto-routes=true
ignore-auto-dns=true

I assume you need to restart the pptp connection for it to become active. Worked?


You have two options:

1) Install bumblebee (via a PPA as you're on 12.04): https://wiki.ubuntu.com/Bumblebee#Power_Management

2) Nvidia proprietary drivers now (partially) support Optimus, which you can enable with nvidia-prime as described here: http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html. Please note however that in this case you won't (yet) be able to switch to the Intel chip for powersaving.

I know the issue has been discussed on this site before but it was mostly pre-nvidia-prime, and even if I'd personally prefer bumblebee, it would be fair to mention both options.


Unity mode missing in VMware 15 Workstation Player [Ubuntu 18.04 LTS]

From VMware Workstation 12 Player Release Notes:

The following features have reached end of life in Workstation 12 Player [...and later] and have been removed:

Unity mode on Linux guest and host operating systems

Unity mode on Linux guest and host operating systems has also been removed from VMware Workstation 12 and later.


Edit file after No startup - Lubuntu 14.04

If you're on  tty, then follow this,

sudo nano /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf

Remove the below line and then save the file,

greeter-setup-script=/usr/bin/numlockx on


Does MaaS provide options for High availability or redundancy?

MAAS is designed with this in mind but is not quite there yet.

The region controller can be split up into several appservers and the postgres database can be similarly split.  The only SPOF is the celery daemon that runs as part of the region, and we have plans to also split that and make it HA.

The clusters themselves are not designed to be individually HA because you just run multiple clusters and do it that way.


TestDisk is a much better tool than PhotoRec. However, the only problem with TestDisk is that it doesn't always recover all the deleted files. So, if you accidentally reformat a partition, TestDisk can recover thousands of files without missing a single file, but if you deleted a file by sending it to the Recycle Bin (Trash), and then emptying the Trash, TestDisk might not be able to recover it for you in all the cases.

So use TestDisk first, and if you recovered all of the deleted files with TestDisk, then great, else you can recover the rest of the files using PhotoRec.

PhotoRec can selectively recover files based on their filetype(s), but PhotoRec / TestDisk can't selectively scan an individual directory for lost files unless you had mounted a whole hard drive partition as this directory. In some cases, the filename is stored in the file itself. PhotoRec tries to recover the filename in this case, but most of the time PhotoRec can't recover the filenames.

Here are the steps to recover files based on filetype using PhotoRec:

Install Test disk: sudo apt-get install testdisk
Launch PhotoRec. Open a terminal and launch photorec (as root): sudo photorec
Select Hard Disk
Select the partition type. If your hard disk has Linux partitions, then select [Intel]
Select filetype option

Move to [File Opt] and press the Enter key. Here you can disable all file types by pressing s key. Use space to toggle the check button. Select filetype(s) to recover.

Select options

Photorec also has a list of different options. Under normal circumstances, you don’t need to modify them.

Select partition

Move the selector up or down to the partition from which you have removed the file(s). Then select [Search] and press the Enter key

Select filesystem type

If you are using Linux, it's going to be ext2/ext3/ext4, so the default selection is ext2/ext3. Otherwise, if you are recovering files from a partition formatted as FAT or NTFS select Other

Select space for analysis.

Select Free if you didn’t write to that partition after removing the particular file, otherwise select Whole

Select a directory for the recovered files

Select the path where the recovered files will be stored. Then press Y key

Once done, Photorec will show how many files it has recovered.

Note: Another Forum thread [closed], but it might be able to help you: Recovering Data


Overriding default search location for library on Ubuntu 12.04.1

The simplest solution to this problem appears to be installing the library in another location:

./configure --prefix=/home/usr/local

Then, the library in this directory is selected when linking.  Another possibility would be to rename /usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so to something else, but this is not especially clever if the library is used by a program installed on the system.


The ArchLinux wiki has an answer that worked for me with i3. You can use the compose key to achieve typing any kind of Unicode character. I have a UK layout, but often need to type German characters. With the compose key, I can type CapsLock then " then a to get ä.

First, find which compose options are available

grep "compose:" /usr/share/X11/xkb/rules/base.lst

This should give you something along the lines of:

...
compose:menu         Menu
compose:caps         Caps Lock
...

Then set your compose key to the preferred key. I'm using caps lock for that.

setxkbmap -option compose:caps

If you can't find a suitable pre-defined configuration for the compose key, I think you'll have to set up your own xmodmap configuration.


Ubuntu Server 20.04 Nvidia Driver Dependencies

You can install headless version of an Nvidia driver with the following command:
apt install nvidia-headless-440-server nvidia-utils-440-server


How to reset MAAS 1.5 , LTS 14.04 Setting

So you should have your nodes in the Ready state before attempting to use Juju with them. Make sure that all of your VMs are set to Network Boot and are switched off. MAAS will power them on when needed (i.e. when Juju wants to deploy something to them).

One issue that you might be encountering is that Juju can timeout attempting to SSH to the nodes. You can configure the length of the timeout in your environments.yaml file. See Juju 1.18.0 release notes for further details.


Yeah so it was a permissions issue. The directory was owned by root:root just changed it to my user/group.


Can I install an older version of ubuntu over a new one?

I Dont Think you Can.

If you just want to Have it downgraded with your documents just make a backup and then Install the Older One (Format The Existing Ubuntu Partition Or Just Press Erase and Reinstall Ubuntu(Version)

Here is a quick Guide on how to backup your files
http://www.howtogeek.com/108869/how-to-back-up-ubuntu-the-easy-way-with-dj-dup/

Enjoy and If i answered Your Question Press Answered :P


Encrypted Home directory not auto mounting

Okay, so while it's possible to use SSH Public Key authentication to log into your system without entering a password (even if your home directory is encrypted), it's not possible to automatically mount your encrypted home directory.

To solve this, you'll need to add a line to the end of your unmounted $HOME/.profile:

ecryptfs-mount-private

This will ensure that after you've logged in using SSH Public Key authentication, you'll be prompted for your password and will mount your encrypted data.  If it's already mounted, then this command should just silently succeed.

Enjoy!

Full disclosure: I'm one of the authors and maintainers of eCryptfs.


Not sure if Wine was actually uninstalled

Are you sure that the apt-get remove ... command did in fact remove wine? When I just tried it I got this message on 18.04.

$ sudo apt-get remove wine --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Virtual packages like 'wine' can't be removed
0 upgraded, 0 newly installed, 0 to remove and 192 not upgraded.

As the message states, wine is a virtual package so you cannot remove it. You could remove it like this though:

$ sudo apt-get purge wine*
...
se 'apt autoremove' to remove them.
The following packages will be REMOVED:
  wine-stable* wine1.6* wine64*
0 upgraded, 0 newly installed, 3 to remove and 192 not upgraded.
After this operation, 869 kB disk space will be freed.
Do you want to continue? [Y/n] y
...

In this scenario you're telling apt-get to remove all packages that match your pattern, wine* which will get rid of all packages that match the pattern.


What is the equivalent to motd.tail in 11.04?

To answer the question directly, just edit /etc/update-motd.d/99-footer.

The /etc/update-motd.d/ is a fairly standard config-dump that is ordered by filename. 99-footer is the last thing in there so that gets bolted on last. In Natty by default this just checks to see if there's a file called /etc/motd.tail and if there is, it appends that to the motd:

[ -f /etc/motd.tail ] && cat /etc/motd.tail || true

So you do have two choices. You can either add some more logic in there to just echo some output (this is a shell script, not a textfile after all) or you can create (or edit if you already have one) /etc/motd.tail. Either way is perfectly valid.


What is used in the 12.10 full disk encryption?

Full disk encryption is using the dm-crypt kernel module, managed by Luks/cryptsetup. If you choose to encrypt your home directory, eCryptfs is used instead. These are two different technologies. I assume you chose full disk encryption here in my answer.

Use the command

# cryptsetup luksDump /dev/sda5

to view the current detailed configuration for sda5. And another example:

# cryptsetup status sda5_crypt
/dev/mapper/sda5_crypt is active and is in use.
  type:    LUKS1
  cipher:  aes-cbc-essiv:sha256
[...]

Read more on dm-crypt on Wikipedia: dm-crypt and more on eCryptfs on Wikipedia: eCryptfs.


bluetooth isnt working on ubuntu 18.04 LTS

This line shows BT as poweroff

[bluetooth]# power off

Check if your computer has a physical switch to turn it on, or check bios if there's a way to power it on and off.
Drivers for this card are supposed to be supported. It seems to be down.


Octave: Need version 4.0.1 but only 4.0.0 in package archive

I'm here probably for the same reason...

To get latest version (4.2.1 right now) :

sudo add-apt-repository ppa:octave/stable
sudo apt update
sudo apt install octave


Remote desktop access to Ubuntu 14.04 behind an uncontrolled router

Since the router or firewall cannot be accessed to set up port forwarding to that host, the best recommendation I can give you is to set up a Reverse Tunnel to the host behind the firewall/router.

Information about setting up one can be found in the following link:

http://www.thegeekstuff.com/2013/11/reverse-ssh-tunnel/

I have not used the next one, but I have seen it recommended around.  It is TeamViewer.

https://www.teamviewer.com/en/index.aspx


Install Epson nx430 with 64 bit Ubuntu 13.10

You can download the drivers for Epson printers including the nx430 from here http://ubuntuone.com/5KBwwCA4TC3n6UkHgaW0ft

Source with list of supported printers:

http://www.ubuntubuzz.com/2011/10/download-various-epson-printers-driver.html


How do I make Thunar display file sizes in #iB instead of #B?

simple fix, use another file manager.

Dolphin more than takes over where Thunar leaves off:
- displaying file sizes in (K/M/G)iB
- displaying a progress bar showing your active drive's usage
- providing many more options for extendability and customization
and much more.


How to sort lines in a text file from the terminal?

Nam     GPA    Something
xyz     3.4     99
pqr     4.5     23
abc     5.6     44
dcd     4.4     22
edr     2.2     78

If you have a file like above. You can use the command below to sort by GPA. (change the key to sort by any field : '-k value')

sort -k 2 filename

If you want the reverse order use -r option

sort -r -k 2 filename


rsyslogd stopped writing to /var/log/syslog two days ago

From what I can see, your 50-default.conf file matches the default, so that's probably not the problem:  http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/rsyslog/quantal/view/head:/debian/50-default.conf

Happily, it looks like rsyslog has a config-checking mode that should help you troubleshoot what is actually going on.  From their help page:

  Rsyslog 3.21.1 and above has been enhanced to support extended
  configuration checking. It offers a special command line switch (-N1)
  that puts it into "config verfication mode". In that mode, it
  interprets and check the configuration file, but does not startup.
  This mode can be used in parallel to a running instance of rsyslogd.

  To enable it, run rsyslog interactively as follows:

  /path/to/rsyslogd -f/path/to/config-file -N1

  You should also specify other options you usually give (like -c3 and
  whatever else). Any problems experienced are reported to stderr [aka
  "your screen" (if not redirected)].

http://www.rsyslog.com/doc/troubleshoot.html


How to add a Password to User Account if previously it set to "Log In Without Password"

Open a terminal, and enter "passwd" ... this will change the password for the current user. If you want to change an other users password, you will need to enter "sudo passwd", because then you need to run passwd with root privileges.


Ubuntu 18.04 SERVER -cannot connect USB wifi dongle

Thanks to all who commented.
Installing wpasupplicant sudo apt install wpasupplicant was the key thing.

I guess the standard Ubuntu 18.04 server installation does NOT include this package by default as it is unusual to use wifi with a server. (but I have reasons to use wifi whilst building the server apps!)


You can install your R packages with the following actions

#1. add R 3.4.3 repository if not added before
cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
EOF

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

#2. add repository for libjq-dev
sudo add-apt-repository -y ppa:opencpu/jq

#3. update package lists
sudo apt-get update

#4. install R and dependencies
sudo apt-get install r-base-dev r-base-core libjq-dev libcurl4-openssl-dev \
libssl-dev libprotobuf-dev libjq-dev libv8-3.14-dev protobuf-compiler

#5. launch R and install geojson package:
R
> install.packages("geojson", dep=TRUE)


How can I get my bookmarks shown in nemo quicklists automatically

I'm pretty sure this PPA is working on it, however the description says not to use it because it's a work in progress, but it's at least worth watching to see how far it gets. If anyone else knows of another way, like a way to manually create quicklists for it, please do tell.

UPDATE: I found a solution, it's not "automatic" so to speak, but I found a way to manually and easily add quicklists for bookmarks and places. Menulibre supports creating Unity quicklists.

To install Menulibre first open a terminal, Ctrl+Alt+T, then enter the following commands:
sudo apt-add-repository ppa:menulibre-dev/devel
sudo apt-get update
sudo apt-get install menulibre

Now when you launch Menulibre, look for the Nemo launcher (it'll be titled 'Home Folder', so doing a search for 'nemo' will not work), you'll notice when editing a launcher in Menulibre there's a tab for 'Quicklists', click on it and add your items. For the commands, here's an example, to make a quicklist for 'Documents' just type nemo Documents, the working directory for the commands is your home directory, so just typing the name of the folder after 'nemo' is enough.

I hope this helps.


If I encrypt only my Home Directory, can someone use a usb to hack my system

This was a comment but also the answer.
Is this computer located in a public place? Do you expect the hacker to break into your home? Does the hacker live in your home? If answer to any of these question is yes, then yes it is not safe.

I added bios password because ful disk encryption with TPM and secure boot was not working..  bios would do the trick.  Cannot undo this easily without me knowing.  And home dir is protected.