connecting ubuntu 12.04 lts to Windows network

You establish a network connection in one of two ways:

Plug in an Ethernet cable.  This method, you simply plug in the cable from the hub into the PC.  This is an older method, most modern PCs use wireless.
Wireless connect - find the wireless signal (top right, near the volume) then find the network you are trying to connect to ... select it, and enter your network key.

Now, once your computer is on the network; and assuming your printer is also on the network, you should be able to connect to it by pointing the computer at it (perhaps via the printer's IP address), and then installing drivers.  Printers are finicky, but connecting to the network is straightforward.


How do I find add-ons for packages when using the command line?

Those addons are suggested packages which are meant to enhance your experience with k3b. But those are not essentials for k3b to work properly.
In terminal, you can know the add-on names (at least some of those) by using apt-cache depends k3b command. The add-on names will be shown under "Suggest:" section. For example:
apt-cache depends k3b | grep Suggests
k3b
  Suggests: k3b-extrathemes
  Suggests: normalize-audio
  Suggests: sox
  Suggests: movixmaker-2
  Suggests: libk3b6-extracodecs
  Suggests: vcdimager

Please note that, suggested packages are not essentials. Also note, apt-get will install packages which are essential to run k3b (called dependency) and those packages which are recommended.
You may want to visit these link to get some info about this topic:

Recommended and Suggested packages, Debian Faq
Debian policy, Debian Handbook

Also check this question on Superuser.com

What is the difference between recommended and suggested packages

As a summary:

A depends packages in one, which is required to run the software
A recommended package in one, which is required for the software to be functional.
A suggested package in one, which can enhance the usability of the software.

Note, Ubuntu install first two category of the software by default from both Software Center and from terminal. So, you are not loosing anything essential. But still you can install them. Also note, Software Center does not install them automatically.
To install suggested packages also from terminal
If you want to install suggested packages from terminal, you can use this command
 sudo apt-get --install-suggests install k3b

This command will install all the suggested packages as well as dependency and recommended packages.
To permanently configure apt to install suggested packages
If you want to configure apt-get permanently to automatically install suggested packages also, You can do this:

Create a file in /etc/apt/apt.conf.d with name 99mysettings
 gksu gedit /etc/apt/apt.conf.d/99mysettings

Then add the configuration option in that file
 APT::Install-Suggests "true";

Then save the file and exit gedit.

From now, the suggested packages will also get installed automatically by apt-get.
Please note that, apt-get will only install those packages if it finds them in any repositories, Otherwise, it simply ignores them and proceed with installation.


Why does a program disabled as a service still runs at the system's startup?

What is happening here is that since Ubuntu 15.04 Ubuntu distros use systemd init-service instead of SysVinit or Upstart. So a service must be disabled with this command:

sudo systemctl disable SERVICENAME.service

If one is confused with all this stuff: init-service, systemd, SysVinit, Upstart I can recommend to read Chapter 15 "Starting and Stopping Services" from the Linux Bible by Chris Negus


You can use palette as line color. E.g., you can assign one of the columns (variables in it) to the color.

plot 'data.txt' u 1:2:3 w l lc palette

In example above 3 column will serve as input to defined palette.

If columns are note corresponding to desired colors you can do it manually, e.g.,

set palette defined ( 0 "green", 1 "blue", 2 "red", 3 "orange" )
plot 'data.txt' u 1:2:(0), 'data.txt' u 1:3:(1), 'data.txt' u 1:4:(2), 'data.txt' u 1:5:(3),...

In above example first line will be green, second blue, ...

Now, you can combine above examples with every command of gnuplot.

See also this


How can I make xubuntu ignore DisplayPort monitor being turned off?

Not really the most elegant solution, but I managed to solve my immediate problem by connecting the monitor via a DisplayPort-to-DVI adapter. When using this adapter, it seems the computer can't tell whether the monitor is on or off, and thus it doesn't reconfigure anything when I turn off the monitor.

I'd still like to know how to solve this problem in software, though.


How do Nautilus album art thumbnails work?

I believe it does in fact use the tags embedded in the file, which are usually called id3 tags, at least for MP3.  I think ogg files read id3 tags, but may not read id3v2 tags (version 2).  Some software writes one or the other, or sometimes both.

I've noticed that it takes a while for Nautilus to display the album art once the folder is first opened, but then it remembers them.  I'm pretty sure it stores the images in ~/.thumbhnails/normal, but this directory can be very big, and opening it is a chore.

I've heard of a program called "cover thumbnailer" that makes nautilus work better; I haven't really tried it out myself, though.


How to bring back older version of mesa packages from ppa:xorg-edgers/ppa

Unfortunately, version 10.3.0 is no longer available on their ppa repository.

You can always check similar thing:

Go back to PPA page on developer/team profile

https://launchpad.net/~xorg-edgers
Choose the correct ppa:

xorg-edgers fresh X crack
Click on Technical details about this PPA → then follow link

deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main
deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main

Let's look for mesa-common-dev, go to pool/main/m/mesa/

Or you may compose it:

http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/pool/main/m/mesa/

http://ppa.launchpad.net/<developer-or-team-name>/ppa/ubuntu/pool/main/<1st-letter-of-package-name-prefixed-with-lib-if-it's>/<source-package-name>/


problem connecting internet through usb modem (micromax)

I had the same problem too. if your usb modem doesnt not detect as usb mass storage,then try this. open terminal type lsusb

for example:
$ lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 005: ID 1c9e:9605 OMEGA TECHNOLOGY

Note down the id of your device i.e from above example 1c9e:9605

and in terminal type sudo modprobe usbserial vendor=0x1c9e product=0x9605

it will ask for user passwd if required.
then wait for some minutes

check the network manager applet if detect it will show the new mobilebroadband gsm or cdma,then click the new mobilebroadband. if not detected try to remove modem and connect it

type same cmd sudo modprobe usbserial vendor=0x1c9e product=0x9605

and wait for some minutes. and check network manager
and i think you have to do this every time you reboot the system, till ubuntu team find solution for this.


I have recently installed ubuntu 13.04 dual-booting with Windows 7, but can't login.

This is what you need, to fix your problem

https://help.ubuntu.com/community/Boot-Repair


How to enable  fingerprint  device for Thinkpad t430s  in 12.04?

Okay I'm running a Thinkpad X1 and the same biometric chip is on it. I searched the whole internets twice for this problem, but, good news, I found a way to make it work in all cases, so here's a small "tutorial" that compiles the info from this thread and other places:
Installing the software
First, add the fingerprint PPA as mentioned by the previous posts, and install the required packages:
sudo add-apt-repository ppa:fingerprint/fingerprint-gui
sudo apt-get update
sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

Then, download and untar this http://volker.de/wp-content/uploads/2012/12/BSAPI_4.3.291Lite_SDK_for_Linux.tar.gz.
Modifying libbsapi
Libbsapi's PPA currently does not really support this chipset, however, replacing the install's with the latest version will work. First, figure out you architecture (32 or 64), and then locate the libbsapi.so file in either the lib folder (for 32 bit) or the lib64 folder (for 64 bit). Then, copy this file (using sudo, or gksudo on nautilus) to the /usr/lib folder.
Then, we have to make an addition to this file: /lib/udev/rules.d/40-libbsapi.rules . The code do be added is:
#Added for Upek 2020 support
ATTRS{idVendor}==”147e”, ATTRS{idProduct}==”2020″,   SYMLINK+=”input/touchchip-%k”, MODE=”0664″, GROUP=”plugdev”
ATTRS{idVendor}==”147e”, ATTRS{idProduct}==”2020″,   ATTR{power/control}==”*”, ATTR{power/control}=”auto”

Do it using either : sudo nano /lib/udev/rules.d/40-libbsapi.rules or sudo gedit /lib/udev/rules.d/40-libbsapi.rules, whichever you might prefer.
Last modification and it's all done
We have to grant fingerprint-gui access to the reader's USB bus. Run lsusb and locate the line that may look like this Bus 001 Device 003: ID 147e:2020 Upek  (actually look for the 147e:2020 Upek ID). 001 here indicates its bus id, and 003 is its Device id. Note yours. Then, issue the command (in my case, but adapt to your own bus and device id's):
sudo chmod 666 /dev/bus/usb/001/003

Then, start fingerprint-gui, and it should recognize your device, and configure it happily.


Systemd is really slow in comparison to upstart

1- Why:
Upstart's model for starting processes is greedy event-based, all available jobs whose startup events happen are started as early as possible. During boot, upstart synthesizes some initial events like startup or rcS as the tree root, the early services start on those, and later services start when the former are running.
Systemd's model for starting processes is lazy dependency-based, a unit will only start if and when some other starting unit depends on it. During boot, systemd starts a root unit, which then transitively expands and starts its dependencies.
2- systemd-debug-generator
Is a generator that reads the kernel command line and understands three options:
systemd.mask= option

Followed by a unit name,this unit is masked for the runtime. This is useful to boot with certain  units removed from the initial boot transaction for debugging system startup.
systemd.wants= option

Followed by a unit name, this unit is added to the initial transaction.    This is useful to start one or more additional units at boot.
systemd.debug-shell option

The debug shell service "debug-shell.service" is pulled into the boot transaction. It will spawn a debug shell on tty9 during early system startup.
3- To do so:
Select the Advanced options for Ubuntu at the boot prompt when your computer starts.
Then, select the Ubuntu, with Linux ... (upstart) entry.
However, this will work only for the current session
So if you want to make it permanent, you'll have to install the upstart-sysv package.
Source


Finally I found the solution. I just upgraded my ALSA driver to 1.0.25. To do this, just follow the method given in the link:

http://monespaceperso.org/blog-en/2010/05/02/upgrade-alsa-1-0-23-on-ubuntu-lucid-lynx-10-04/

In this, just change the ALSA version from 1.0.23 to 1.0.25 in all the steps.


Exceptional levels of kernel spam about "MR_DCMD_PD_LIST_QUERY failed/not supported by firmware"

This is still ongoing, and was recently patched for RedHat related to 2 CVEs:
(Clarity): This issue was not related to the CVEs, rather, the patch was aimed at 2 CVE's + this and a couple bug fixes.

https://rhn.redhat.com/errata/RHSA-2016-2006.html

(edit)   which appears to point back to this: https://lkml.org/lkml/2016/8/18/553

(edit)   I'm in the middle of recompiling+testing the kernel, I'll host it in a few with the patch.

Oct 31 21:38:36 ohlookadell kernel: [943983.390883] megaraid_sas 0000:03:00.0: MR_DCMD_PD_LIST_QUERY failed/not supported by firmware
Oct 31 21:38:36 ohlookadell kernel: [943983.414877] megaraid_sas 0000:03:00.0: MR_DCMD_PD_LIST_QUERY failed/not supported by firmware
Oct 31 21:38:36 ohlookadell kernel: [943983.438801] megaraid_sas 0000:03:00.0: MR_DCMD_PD_LIST_QUERY failed/not supported by firmware
Oct 31 21:38:36 ohlookadell kernel: [943983.462982] megaraid_sas 0000:03:00.0: MR_DCMD_PD_LIST_QUERY failed/not supported by firmware
Oct 31 21:38:36 ohlookadell kernel: [943983.486832] megaraid_sas 0000:03:00.0: MR_DCMD_PD_LIST_QUERY failed/not supported by firmware


This requires installing packages from unauthenticated sources

What apt-get update does is refresh your package list from the remote repositories you have added, so that the package list don't need to be pulled every time you install anything. The error messages you're receiving are telling you that one (Or several) of your PPAs are returning 404 errors (In your case, screenlets-dev doesn't seem to have packages built for Wily Werewolf).

You're trying to upgrade your packages, so you should do sudo apt-get upgrade instead.

If you face any other issues, i'll be glad to help you out.

PS: Screelets are deprecated.


You are using LVM. GParted cannot see beyond the LVM volume, it can only see that the LVM volume is present.

115 GiB = 115*1024*1024*1024 bytes ~ 123480000000 = 123.48*1000*1000*100 = 123.48 GB (close enough to your SSD size) - that's an artifact of using SI decimal prefixes in some places and binary prefixes in others.

Presumably the 4GB swap partition you made was not formatted correctly. You can unmount it and run:

sudo mkswap /dev/ubuntu-vg/swap_1
sudo swapon -a

What Ubuntu did here is presumably this:

Created a 250 MB /boot primary partition.
Created an extended partition for the rest of the partitions.
Created an LVM volume within the above extended partition.
Created your root and swap partitions within the LVM volume.

(That's why you have both sda2 and sda5. Try using the lsblk command to see how they're related.)

Why the swap partition did not get formatted correctly is a mystery.

To delete the swap and merge back the space to root:

Disable swap. The live environment automatically activates any swap partitions it finds:

sudo swapoff -a

Use lvremove to remove the LVM logical volume of the swap:

lvremove ubuntu-vg/swap_1

Extend the root partition's logical volume using lvextend:

lvextend ubuntu-vg/root /dev/sda5

This will use all the available space on /dev/sda5 (the 4GB left).
Use resize2fs to resize the filesystem on the root partition to use the new extra space:

resize2fs /dev/ubuntu-vg/root


I need a program to create a website like page but it cannot be online at all

Kompozer

Kompozer is a user friendly web designing application. You can design website offline and upload it to the server.

Or in terminal

sudo apt-get install kompozer


Can I remove the launcher tooltip delay?

No, I don’t think there’s any way to change the tooltip delay. So let’s see what’s the resolution of the bug report.

UPDATE: Tooltip delay has been removed.


What music player for Ubuntu is *most* like Cog?

You can try BeatBox.

  BeatBox is an easy to use, stable, fast and good looking music library
  organizer written in vala.

  It has many modern features including Last.FM integration, (smart)
  playlists, podcasts, Internet radio, similar songs playlist, simple
  UI, instant search, queue system, mass song editing, advanced
  equalizer and more.1

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

sudo add-apt-repository ppa:sgringwe/beatbox
sudo apt-get update
sudo apt-get install beatbox

1Source:Ubuntu Vibes


How can I enable the GTK3 header bars on Ubuntu 16.04?

You can enable that by creating new file

sudo nano /etc/profile.d/csd.sh

That contains

export GTK_CSD=1
export XDG_CURRENT_DESKTOP=Unity:GNOME

#export GTK_THEME=Ambiance
#export GTK_THEME=Adwaita:dark

Logout/Login

Reference: for the new colon format Unity:GNOME. https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1554878

Related question: What is the default GTK 3 Theme Engine in Ubuntu Unity?

Related page: A Fix For Black Corners Around CSD Windows in Ubuntu?

Tests:

Bharadwaj Raju's solution is the best for now

Using /etc/profile..

export XDG_CURRENT_DESKTOP=GNOME

gnome-software OK, gnome-calculator OK, nautilus OK (black sharp corners, get smaller if killed then launched again), unity-control-center FAIL (No components, should run with XDG_CURRENT_DESKTOP=Unity)
Mine (See above):

gnome-software NO, gnome-calculator NO, nautilus OK (black sharp corners, get smaller if killed then launched again they go), unity-control-center NO.
Another try with export XDG_CURRENT_DESKTOP=""

gnome-software OK, gnome-calculator OK, nautilus FAIL, unity-control-center FAIL.


Kernel update today didn't need password?

When you run sudo apt-get update for the first time in a day, it will ask for your password.  The sudo command by default will store your password in memory for up to 15 minutes.  That is why if you run sudo apt-get upgrade shortly after, it will not ask you for a password, until you go and run the commands again later.

From the Ubuntu Security Team FAQ:

  Update Manager doesn't prompt for security updates

  Why does update-manager no longer prompt for the user's password?

  As of Ubuntu 11.10, update-manager no longer prompts for the user's
  password to apply updates. This was decided to improve usability and
  to make it easier for users to apply security updates and therefore
  increase system security. The rationale is as follows:

  Like in previous releases, by default only people in the admin
  group are allowed access to perform security updates.
  Only updates for already installed software can be applied without a password. Installing additional software still requires
  people to enter their password.
  The password prompt had become an irritant for some people such that they would just press 'Cancel' instead of installing the
  updates. The password prompt decreased system security for those
  users.
  People that did dutifully apply updates became conditioned to enter
  their privileged password perhaps daily. When the user is prompted for
  the password, it should mean something and the frequency of
  update-manager updates meant that some people no longer thought about
  why they were entering their password. For these users, the password
  prompt had the potential to reduce security.

  For environments where this change is deemed not appropriate, this
  functionality can be disabled by the administrator via PolicyKit or by
  creating users that are not in the admin group (a recommended practice
  to begin with).


Asus N56vz brightness setting changes (dims) after reboot or waking

I have the N56VZ-S4016H model and also a couple of problems with backlights (and the ethernet driver). I found two options for backlight problems:

install xbacklight and add it to your autostart configuration (xbacklight -set 100 for 100% level) - the Fn+F5/F6 keys will still not work, not even recognised as key presses.
use acpi_osi= as a boot parameter in grub. As far as I can see on my model, it fixes all FN keys:
add acpi_osi= after splash, it'll look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

don't forget sudo update-grub


You can use cloning software like

clonezilla
partclone
or the older partimage

to make your master copy, and deploy it latter on on other PC/HDD.

I can't recommend one as I haven't use any of them, yet.


High uptake of memory in the nano process (root)

nano is a small commandline text editor for Linux.

Some possible explanations for the high memory consumption:

The application has been running a very long time with a memory leak
The application has a VERY VERY big file open
It's a virus concealing itself as nano

What you can do to further investigate

ps -auxuf should give you a little bit more information, like what started the process and such.
which nano gives the location of the file being run when nano is running. Check if this is /usr/bin/nano and if that really points to the nano text editor
restart the server and see if the process comes back


list all installed desktop Environments in Ubuntu

$ ls -l /usr/share/xsessions/
total 8
-rw-r--r-- 1 root root 4791 Sep  6 15:45 kde-plasma.desktop


How to fix Windows 7 dual-boot after upgrade to 11.04?

If possible, edit the /etc/default/grub Grub2 configuration file manually and change the value at the GRUB_DEFAULT setting.

For details see the Ubuntu Grub2 help page.


Ubuntu 14.04, how to set middle mouse emulation? (no taps, real buttons)

In previous versions of Ubuntu I used to enable middle mouse emulation with gpointing-device-settings. The package exists for 14.04 as well, so I guess it still works:

sudo apt-get install gpointing-device-settings
gpointing-device-settings

Update 1: gpointing-device-settings crashes on 14.04. But I found a workaround to manually enable middle mouse emulation in dconf:

sudo apt-get install dconf-editor
dconf-editor

Navigate to /org/gnome/settings-daemon/peripherals/mouse and activate middle-button-enabled.

Update 2: None of the methods above are still valid for 16.04 LTS. But the first step from this official workaround helped. Note that the remaining steps of the guide might not be applicable.

Create the file /usr/share/X11/xorg.conf.d/middle-mouse-button.conf and insert

Section "InputClass"
     Identifier "middle button emulation class"
     MatchIsPointer "on"
     Option "Emulate3Buttons" "on"
EndSection

Update 3: This changed again after Ubuntu uses Gnome again. For 17.10, 18.04 and so forth the setting can be applied using the Gnome Tweak Tool as described in this Q&A: Keyboard & Mouse -> Middle Click Paste


How to transfer a file from one system to another system in a single command?

You can use ssh to transfer files.
So you can transfer a file like this:

scp /home/user/examplefile otheruser@192.168.1.101:/home/otheruser/

This will transfer examplefile to /home/otheruser

If you dont like to use commands, you can just use nautilus, which supports the ssh-protocol. The remote location appears just like a normal directory and you can copy files there.

To access the remote location, open Nautilus and look under File > Connect to Server... then choose the location you want.


Fixed: Exited the install, disabled noveau by following an answer on this post (added blacklists to file) rebooted system, restarted installation and ignored the initial warning this time. Drivers and card now working.

How do I disable the "Nouveau Kernel Driver"?


Network Manager: Is it possible to pass CLI options to openconnect (in order to manually resolve the hostname)?

You might have already figured this out by the absence of answers, but at the moment of writing network-manager-openconnect does not have an option to add the --resolve option to the list of command line arguments when running openconnect.
If you feel adventurous though, you could hack this in the source by:
# Get the build dependencies
sudo apt-get build-dep network-manager-openconnect
# Download sources
mkdir ~/nmo ; cd ~/nmo
apt source network-manager-openconnect
cd network-manager-openconnect-1.2.6/
# Edit nm-openconnect-service.c in lines 451 - 519
# Compile:
./configure
make
# Install:
mv /usr/lib/NetworkManager/nm-openconnect-service /usr/lib/NetworkManager/nm-openconnect-service.bak
cp src/nm-openconnect-service /usr/lib/NetworkManager/nm-openconnect-service
# Restart networkmanager:
sudo service network-manager restart

For a quick hack your changes could look something like:
g_ptr_array_add (openconnect_argv, (gpointer) "--resolve=HOST:IP");

On line 480 or so.


Bios update fixing windows issues: skip it or do it?

Skip the BIOS update. If it isn't broken don't fix it. You can put a package named for example package-name on hold with the following command:

echo package-name hold | sudo dpkg --set-selections

This command will hold back package-name from being updated.


(1)First of all make clean your tmp folder :

find /tmp -ctime +5 -exec rm -rf {} +

(This will delete your files older than 5 days)

(2) Try to use logrotate to maintain your log files .

(3) Increase your RAM , if it is possible.

(4) Try to make partition such that linux swap partition can get enough large memory for swaping purpose , it will not allow to hang your laptop .Read my answer.


Ubuntu 12.10 and nVidia drivers don't like each other?

I was having the same problem, then I found a post which addressed this issue and a link to this website.
http://bumblebee-project.org/install.html#Ubuntu
The problem you are encountering is most likely related to optimus, which does not have official support for Linux. Bumblebee aims to fix that.


Ubuntu slows and freezes whenever the memory

With 2GB of RAM this is hardly surprising. You may want to switch to a lighter desktop environment, such as xfce. To install xfce, execute

sudo apt install xubuntu-desktop

Log out, select XFCE DE, and log in again. This will give you some more headroom memory wise.

Note that any modern browser is a memory hog. At the machine I'm using currently, Chrome consumes approx 2GiB memory with 6 open tabs. Getting more memory is the real cure for your problem, as 2GiB is simply not enough for multitasking with a modern OS and modern applications. A suggested minimum is 4GiB.


Can't install ubuntu after deleting windows "completely?" GRUB intallation error

Assuming the problem is that your HDD is set to GPT. Which has been happening a lot because of the new UEFI mobo's and Windows 8+.

Can't help you with the Raid situation, but the Ubuntu installer will always refuse to install on GPT HDD's.

Try using the Windows install disk to access repair options. Then open the command prompt and type:

Treat these lines as separate commands. Hit enter after each one.

diskpart
list disk
select disk #  ("Where # is equal to the disk number.")
clean
convert mbr</pre>

Then exit command prompt and restart with your Ubuntu installer.

Your HDD should now have a master boot record and you should be able to install Ubuntu as normal.

You may not lose everything just by changing the boot record.


PCmanFM - How can I remove an entry from the context menu?

There are different ways in which that list is created. Some applications ar associated by default (or they associate themselves when installed) to a certain file type or to folders. In this case they are listed in that file's or folder's mime-type line in /usr/share/applications/mimeinfo.cache or ~/.local/share/applications/mimeinfo.cache.

After selecting the "Open with" option in order to use a new application, that is then added in the same way to ~/.config/mimeapps.list.

In order to completely remove an application from the list, remove it from the  line corresponding to a specific mime-type in /usr/share/applications/mimeinfo.cache or ~/.local/share/applications/mimeinfo.cache or  ~/.config/mimeapps.list.
In order to downgrade the application in the list (keep it but put a different one on top of the list), use again 'Open with' to select a new application or command — even using a command line option, as said here.

In this way one can also fix temporarily the Firefox bug of opening downloads folder with a media player or other unsuitable program.


Is it possible to delete files in the /tmp directory once a certain directory size is exceeded?

You could write a little script:

#
#      your maximum size of /tmp in kbytes
#
maxsize=1000
#
#      now get the actual size of /tmp in kbytes
#
tmpsize=$(du -ks /tmp|cut -f 1)
#
#      when maximum reached, clean up
#
if [ $tmpsize -ge $maxsize ]; then
    rm -r /tmp/*
fi

This should be run as root, in order to clean up files owned by other users (including root) as well.


You don't format a drive, you format a partition, which is not necessarily the same thing.  If you want it to be blank, go in and delete all partitions on it first. Then you can start over and create two new partitions, and format each one.

If you have a bootable live CD (the normal installation CD), you can boot from it, and run gparted, which will allow you to visually delete and create partitions.  Or, I think the windows disk manager will also allow this.

It's been a long time since I've used fdisk, so I can't really help with the details of how to use it.  I use gparted now for most things.


nmcli not installed, how to add ssid and password?

Solved!
I had a copy of lubuntu-18.04-desktop.iso in my home directory. I umounted a fresh USB. Then
sudo dd bs=4M if=lubuntu-18.04-desktop.iso of=/dev/sdc conv=fdatasync
There was some hassle because at first I sent the output to /dev/sdc1 which was what I was used to calling the USB.
As soon as I got the USB booting the computer, the wifi adapter lit up and up up and away we went!
Thanks for your help!!!


Try with a terminal.

Open terminal, and run the following commands:

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

Then install the driver:

sudo apt-get install nvidia-337

Change 337 to any version you want - I'd recommend 304, 331 or 349. I'm using 349.

Source


Failed to start network manager wait online

Boot into recovery mode, open a terminal and use:

sudo systemctl disable NetworkManager-wait-online.service

This will allow you to reboot in normal mode.

More details about this service.


There are many programs that analyze the output file of Gaussian (MacMolPlt, Gabedit, Avogadro). Among them, Molden is the very best alternative that I know:
                         http://www.cmbi.ru.nl/molden/
Because it is easy to use and includes many features such as: visualization of molecular vibrations, isosurfaces or contour plots of molecular orbitals, electron densities, diference of densities; also, allows the calculation of electrostatic potential, the electron Localization Function (ELF), generate the wfn file (input file for made QTAIM calculations with programs like AIMALL, MULTIWFN), perform molecular mechanics calculations, etc.


Ubuntu One Client 3.02b stuck at "File Sync Starting" on Windows XP 32-bit

My answer was:

Clean drive from Ubuntu One (unistall, erase logs, directories, clean registry with ccleaner)
Rename folder Uubuntu One in user (i.e. ubuntuone.old)
Reboot.
Fresh new install of latest version (4.1.91.1)
It worked. Don't know why.

Within Ubuntu pangolin never failed.


I can't change windows buttons to the right side with Ubuntu Tweak

Type the following code in terminal to change them.

gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close


1) As A GENERAL fix, try connecting to the Internet and opening a Terminal then, try the following commands on at a time.

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

Does it work? Does it stop? At what point does it stop and what error message does it give?

2) Try changing your Repositories to the quickest. (This can almost change day to day, so it needs to be watched.)

Go Synaptic Package Manager>Settings>Repositories>then, where it says "Download From" change to "Other"> Choose Select Best Server


OBS application crashes on trackpad tap events

That was same version used to build the obs, here is  the related build log. You better go with bug report against obs.
But before reporting, test the last unstable build from OBS Studio Unstable PPA
sudo apt-add-repository ppa:obsproject/obs-studio-unstable
sudo apt-get update
sudo apt-get install obs-studio

The Linux version of OBS is still under development and contains many
bugs, but if you're feeling brave, and can install Ubuntu PPAs, then
you can give this a try.
Source: OBS Project, Ubuntu PPA Installation Instructions


could not find plexydesk in dash after installing in ubuntu 12.10 how do i run it?

You might visit this page. It says you need to add the PPA ppa:plexydesk/plexydesk-dailybuild to your Software Sources, update and then install ‘plexydesk’ from the Ubuntu Software Centre.


Unity Desktop incomplete when launching manually using 'startx $(which unity)'

You could follow the chain of targets from the point you stopped at and manually load the graphical target as if you didn't stop at the multi-user target at all:

sudo systemctl start graphical.target

That will handle everything correctly.

But bear in mind that this will start LightDM, which will in turn start Unity upon login, and not Unity directly.

To leave the graphical desktop again in favor of the console, load the multi-user.target:

sudo chvt 1 && sudo systemctl start multi-user.target

The sudo chvt 1 additionally switches back from TTY7 (GUI) to TTY1 (console), because otherwise you would stay on a black screen.


hud-service is using 800 MB, is this necessary?

Sadly this is this bug which is being looked at and a fix will hopefully be available soon in the software updates...

You could kill the hud-service in the system monitor and recover all the memory it was using, plus it will restart the service:

killall -9 hud-service


I installed Netbeans 11 from store and now it doesn't show on applications

Linux maintains a .desktop file for each menu items. It stores all the desktop file at /usr/share/applications. You have to go there and verify whether there is a correct desktop file for netbeans or not. If not then you have to create one and put there. It can be of any name but its extension should be .desktop. A desktop file looks like this:

[Desktop Entry]
Name=Netbeans IDE
Exec=<cmd to start netbeans>
Icon=<path to NetBeans icon>
Type=Application
Categories=Programming;IDE;

Its simple to install any software from software center, But I personally prefer to manually download and install any software instead of installing it from the software center, At the software center, they usually are not the latest version.


Can Ghost Tunes be a replacement for Ubuntu One?

I asked the help department at Ghost Tunes and they said it does work on Linux. It is recommended that you use Chrome browser for it to work well.


How to avoid restarting nginx to renew letsencrypt certificate?

You would want to add a cron job to go off every 3 months, this is typically done when using certbot in the first place.

Let’s Encrypt’s certificates are only valid for ninety days. This is to encourage users to automate their certificate renewal process. The certbot package we installed takes care of this for us by adding a renew script to /etc/cron.d. This script runs twice a day and will automatically renew any certificate that’s within thirty days of expiration.

To test the renewal process, you can do a dry run with certbot:

sudo certbot renew --dry-run

If you see no errors, you’re all set. When necessary, Certbot will renew your certificates and reload Nginx to pick up the changes. If the automated renewal process ever fails, Let’s Encrypt will send a message to the email you specified, warning you when your certificate is about to expire.

Also, you should NOT have to restart Nginx unless you are moving the certificate around, it should pick up where you left off once the new certificate is made.
When the SSL Certificate renewed is it being saved in the same spot?


Get ubuntu on another computer without internet

Yes. You can also burn Ubuntu onto a CD and use it to install in the computer with no internet.

If you need help on how to install Ubuntu:

Install Ubuntu from a USB stick

Install Ubuntu from a CD


Have a Couple of questions about Ubuntu 14.04

Hello and welcome to Ubuntu!  there are a few UI designs, but im guessing you have the ever popular Gnome

For text :
Open a terminal and type

sudo apt-get install unity-tweak-tool gnome-tweak-tool

Once you have it under advanced settings, there is a "fonts section

To move applications to the desktop:

First off As a linux user, I recommend using the terminal and get used to not using the desktop!  A better alternative is downloading Cairo-dock

If you must, and this goes against most linux users beliefs,

First copy your desired application's icon from the /usr/share/applications directory to Desktop,

sudo cp /usr/share/applications/filename.desktop ~/Desktop

Then change the permissions(give execute permission to the .desktop file) of copied .desktop file on the Desktop,

sudo chmod +x ~/Desktop/filename.desktop

Double click on the application icon to run it's corresponding application.

Power button:

Again most users use the terminal, and not buttons.  Its traditional and faster.  Learn these

sudo reboot (restart)
sudo shutdown -h now
sudo shutdown -P now
sudo poweroff (shutdown)
sudo halt -p
sudo init 0

I dont know if there is a way to change the top launcher, as that is part of the ubuntu file structure and cannot be changed.


Warning when available RAM approaches zero

Check these scripts:
Need application/script alerting when system memory is running out

#!/bin/bash

#Minimum available memory limit, MB
THRESHOLD=400

#Check time interval, sec
INTERVAL=30

while :
do

    free=$(free -m|awk '/^Mem:/{print $4}')
    buffers=$(free -m|awk '/^Mem:/{print $6}')
    cached=$(free -m|awk '/^Mem:/{print $7}')
    available=$(free -m | awk '/^-\/+/{print $4}')

    message="Free $free""MB"", buffers $buffers""MB"", cached $cached""MB"", available $available""MB"""

    if [ $available -lt $THRESHOLD ]
        then
        notify-send "Memory is running out!" "$message"
    fi

    echo $message

    sleep $INTERVAL

done

PHP:

#!/usr/bin/php
<?php
$alert_percent=($argc>1)?(int)$argv[1]:90;
//$interval=($argc>2):(int)$argv[2]:25;

//while(true)
//{
 exec("free",$free);

$free=implode(' ',$free);
preg_match_all("/(?<=\s)\d+/",$free,$match);

list($total_mem,$used_mem,$free_mem,$shared_mem,$buffered_mem,$cached_mem)=$match[0];

$used_mem-=($buffered_mem+$cached_mem);

$percent_used=(int)(($used_mem*100)/$total_mem);

if($percent_used>$alert_percent)
exec("notify-send 'Low Memory: $percent_used% used'");

//sleep($interval);
//}
exit();
?>


i use 13.04 64-bit since release on my desktop and laptop, i am satisfied with this version

or you can try 12.04 LTS 64-bit first and then upgrade if you think it is to buggy


How to scan on-access with Clamav in v14.04

Actually you already there. You already done Installing the clam-av, we need a little tweak to make the clamd run as root.

Since this thread already ages. I will summarize the correct things you have done. This is just for step-by-step how to install ClamAV and made it on-access.

First we must install the correct version. Only clamav version > 0.98 have a ifanotify capability for the on-access scan. This ifanotify replace the deprecated dazuko kernel module See more @ ClamAV Blog used by older ClamAV version.

STEP 1 - Installation

If you running on 14.04 you may add this ppa for the latest version

ppa:teward/clamav

Then update the apt to refresh the apt cache

sudo apt-get update

Run the following command to install the ClamAV

sudo apt-get install clamav clamav-daemon

If the ClamAV already installed don't forget to update the ClamAV database by running

sudo freshclam

At this step, we already have the ClamAV on our machine. But wait, we need to make it do the on-access scan right? Sure!

STEP 2 - Configuration

Now open the ClamAV configuration file (clamd.conf). I am using ubuntu 16.04 LTS and it's located on /etc/clamav/clamd.conf (you can use nano, or vi to edit the file, but make sure you are have the privilege to edit the file).

sudo nano /etc/clamav/clamd.conf

Then you will see all of predifined parameters there.

Now look at the configuration file for this parameter

ScanOnAccess false

Change it to

ScanOnAccess true

Now there is two option to include the directory for the on-access scan.
First include the directory as mounted, and the second one as the include directory.

Still on the configuration file, add the following parameter for mounted option

OnAccessMountPath /

This will include all directory or path inside your machine. In other words, it would watch and scan all of your machine directory. But you can add more than one "OnAccessMountPath", by this you can define your own.

OnAccessMountPath /home
OnAccessMountPath /opt
OnAccessMountPath /var
etc...

The second one you can include the directory more specific using "OnAccessIncludePath"

OnAccessIncludePath /home/{youruser}/Desktop
OnAccessIncludePath /home/{youruser}/Documents
OnAccessIncludePath /home/{youruser}/Downloads
OnAccessIncludePath /home/{youruser}/Emulation
OnAccessIncludePath /home/{youruser}/Music
OnAccessIncludePath /home/{youruser}/Pictures
OnAccessIncludePath /home/{youruser}/Public
OnAccessIncludePath /home/{youruser}/Video

And then don't forget to add the following parameter in the end of the configuration paramater

OnAccessPrevention false
OnAccessExtraScanning true
OnAccessExcludeUID 0

(Optional but recomended)
You can add your own script to handle the event when the virus found such delete or move the infected file, and do some log. To do this you can add "VirusEvent" parameter in the configuration file. You can add like I do

VirusEvent /opt/clamav-utils/clamd-response

And create a new bash file called "clamd-response" under /opt/clamav-utils or anywhere you like.

Here the script of clamd-response

#!/bin/sh

echo "$(date) - $CLAM_VIRUSEVENT_VIRUSNAME > $CLAM_VIRUSEVENT_FILENAME" >> /var/log/clamav/infected.log
rm $CLAM_VIRUSEVENT_FILENAME
sudo -u yourUserName DISPLAY=:0.0 notify-send "Virus Found $CLAM_VIRUSEVENT_VIRUSNAME" "$CLAM_VIRUSEVENT_FILENAME has been removed"

The script will remove the infected file, do the log, and send OSD notification to your desktop.
Note:
If the OSD Notification doesn't show up, try to delete

sudo -u yourUserName

and just leave

DISPLAY=:0.0 notify-send "Virus Found $CLAM_VIRUSEVENT_VIRUSNAME" "$CLAM_VIRUSEVENT_FILENAME has been removed"

Now we need to make the clamd (clamav daemon) to run as root. Still on the configuration file look for this parameter

User clamav

Change it into

User root

Now save and close the file. Next we need to prevent app armor prevented clamd run as root.

STEP 3 - Give clamd ability run as ROOT

First we need to install app armor utils by run this command

sudo apt install apparmor-utils

Then run this command to complain about clamd disability run as root

sudo aa-complain clamd

Just restart your machine, and ClamAV should be run as on-access now.


How do i get the change by oberving file with inotifywait

To show your last password change use passwd

passwd -S | awk '{print $3}'

or for a different username

sudo passwd -S user_name | awk '{print $3}'

Therefore you can loop over the usernames in /etc/passwd in your script and show the timestamps for each user, maybe for users with a ID >= 1000.

while inotifywait -e attrib /etc/shadow; do
    awk -F: '($3 >= 1000) {print $1}' /etc/passwd | xargs -I{} passwd -S {} | awk '{print $1,$3}'
done

To determine which items have changed exactly, you have to save the output of awk … and compare with the next start.

Example

% passwd -S | awk '{print $3}'
07/14/2015

% passwd
Changing password for aboettger.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

% passwd -S | awk '{print $3}'
10/01/2015

or for a concrete user account

% sudo passwd -S root | awk '{print $3}'
05/29/2015

or for all users

% awk -F: '($3 >= 1000) {print $1}' /etc/passwd | xargs -I{} passwd -S {} | awk '{print $1,$3}'
passwd: You may not view or modify password information for nobody.
aboettger 10/01/2015


There are two methods to install Reaver:

1. From the Ubuntu Repositories:

Simply run the following in a Terminal window:

sudo apt-get install reaver

and this should be enough to get you going. You could also use the Software Center or even my old friend Synaptic.

2. Compile from source:

If you wish to build your own copy of Reaver here is a single code block that should successfully download, compile, package and install Reaver under Xenial Xerus. You only really need to do this if you wish to patch the source or add some extra options to the package...

Just copy the whole code box below and paste it into a Terminal window:

sudo apt-get install build-essential checkinstall && \
sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev && \
mkdir $HOME/Desktop/reaver_build && cd $HOME/Desktop/reaver_build && \
wget https://storage.googleapis.com/google-code-archive-downloads/v2/\
code.google.com/reaver-wps/reaver-1.4.tar.gz && \
tar xvf reaver-1.4.tar.gz && cd reaver-1.4/src && \
./configure && make && \
sudo checkinstall --pakdir "$HOME/Desktop/reaver_build" --backup=no --deldoc=yes \
                  --pkgname reaver --pkgversion "1.4" --fstrans=no \
                  --deldesc=yes --delspec=yes --default

Depends which way you want to go....


For photography use, is Unity is overheating my laptop? Should I try OpenSuse instead?

You won't find much difference between Ubuntu and OpenSuse other than the looks and feels, but functionality should be about the same.

The software you need to edit images (Gimp,Inkscape, etc...) will run in both systems flawlessly.

The overheating problem...some laptops models have been reported to suffer from overheating issues under linux (Ubuntu or OpenSuse). It might just be worth performing a google search for your model in particular.

I personally prefer Ubuntu over Opensuse, but both are solid distributions and you will do just fine with either one.


The issue was related to Gnome settings.

Erasing all settings helped:

sudo rm -rf .gnome .gnome2 .gconf .gconfd .metacity .cache .dbus .dmrc .mission-control .thumbnails ~/.config/dconf/user ~.compiz*

I'l explore what setting exactly caused the issue.

UPDATE

I couldn't imagine that this sh*t setting could affect window management or something related !

Allow different sources for each window causes such weird wine windows behavior !

P.s. i can somehow understand such unacceptable errors as segfaults in gnome-software-center, BUT INPUT SOURCE, shame on you Gnome developers!


The package isn't a package from the Ubuntu repositories. It's an Original Equipment Manufacturer (OEM) package.

First try the correct syntax to install a package:

sudo apt-get install oem-video-fglrx-pinglin

If this doesn't work, than either you have luck and you can find the deb file in /var/cache/apt/archives via:

find /var/cache/apt/archives -type f -iname 'oem-video-fglrx-pinglin*'

and you can install it via:

sudo find /var/cache/apt/archives -type f -iname 'oem-video-fglrx-pinglin*' -exec dpkg -i {} \;

or
you have a CD/DVD or a backup with this package.

If not, the last option is: Ask your manufacturer or your dealer or visit the download area of their website.


How can I stop Adobe Flash from crashing

Are you using the proprietary drivers? Have you tried different browsers? If you're not happy with Adobe Flash, there are some alternatives:

  They are Gnash and Lightspark. (Another is Swfdec though development is almost stopped. In 2009, only 9 commits were made in the git repository).

Lightspark is available from the project's Launchpad page: https://launchpad.net/lightspark.

Installation of LightSpark

Press Ctrl+Alt+T and run the following commands in the Terminal:

sudo add-apt-repository ppa:sparkers/ppa

sudo apt-get update

sudo apt-get install lightspark browser-plugin-lightspark

Gnash and Swfdec are available as Ubuntu packages from the Universe repository.

Gnash can be installed by downloading the mozilla-plugin-gnash package.

Instalation of Gnash

Open a terminal (press Ctrl+Alt+T) and run:

sudo apt-get install gnash mozilla-plugin-gnash

  Swfdec can be installed by downloading the swfdec-mozilla package.

Source


gnome's file v3.6.2 (nautilus) has lost the inline folder expand function

Tree view is actually available in 13.10, 14.04 beta: Under preferences, check this option:


Audio and microphone problems in 19.10 on Dell Inspiron 15 7000

I was able to solve this problem on the Lenovo Thinkpad E590
via hdajackretask

I set override for 0x1a (Internal Mic) and further chose "Install boot override" instead of "Apply now"  because it will give an error about a busy channel.


I finally found the solution on this page:

this worked for me:

rm -rf ~/.config/compiz-1/compizconfig/*


use Function keys as standard Function keys

using fn + Esc toggles the behavior of the F1-F12 keys from "special function" to standard F-key behavior.

At least, I know this works on some keyboards; I am not sure about mac keyboards.


I accidentally deleted the "desktop-icons@csoriano" folder. How do I get it back?

You can try
sudo apt-get update
sudo apt-get reinstall gnome-shell-extension-desktop-icons


As @GabrielaGarcia mentioned, a .zip package isn't really a software archive that can be installed using package management tools. Instead, it is a simple archive containing files. Often, after unzipping the file, there will be a file describing how to use these files, e.g. README.txt. I would not expect to be able to install this without unzipping it first.

In your case, a quick google brought up several hits for m2tex that appears to suggest it is a fairly simple Matlab script/tool. In cases like this, there will often not be a file describing how to install. Instead, the maker of the software assumes you know how to import the script into Matlab.

To unzip the archive either double click on the icon using the file manager or type unzip filename.zip in the appropriate directory at the command line.

If the m2tex you are attempting to install is not the Matlab script I found, please give us some more information. Such as: where did you get the file? What are the contents of the file? Any additional information you can provide will help me or others to give you better information.

It is possible that Matlab imports .zip archives from a script folder automatically, if that is the case you may find more help on the Matlab forum.

The link you provided appears to state how to use the script:
1) Unzip the archive wherever you want it, likely in your home directory.
2) Open the file in Matlab and run it.


Ok, with help, I solved my own problem.

First off, for reasons unknown to me, trying to ssh into a server on the same network as the client causes the "reset by peer" issue. Which is why using a proxy, or using the server's local IP (192.168.1.4) resolves the issue.

Secondly, to solve the issue of someone trying to guess my password which I seem to see evidence of in my logs, I changed to public/private key authentication, gave only myself ssh access, and reduced git to the git-shell for security. I also upgraded my iptables rules to start dropping connections to SSH after a certain number of attempts in a time period.

So this issue is resolved. Thanks all.


Ubuntu 14.04 unable to establish Ethernet or WiFi connection

Do you have static IP Configuration? If yes then in the connection settings edit the wired connection or something like that to have those settings and try connecting.


Could a SD card or USB inserted that isnt mounted still be risky to the system if it had a virus?

There are no active virusses for Linux systems and I would be more concerned about rootkits if I was paranoid.

Anything that is not formatted as EXT can not mess with your system unless it is an operating system that is on the device and you allow it to mess with your system (ie. you insert your admin password and let it execute a file). Other places than your /home/$USER/ will mainly need your admin password to do anything to it.

Besides that: automount does not work unless you set the system up to automount. That would require a udev rule for SD.

If the SD or USB is NTFS formatted you need a windows system for any windows virus to be harmful.

So no, a normal Ubuntu does not allow this. It would require more effort on your part (like providing your admin account when you do not expect it to need to be asked) for an SD or USB to become harmful. And I would assume that extra effort would set of all the alarms you need to stop and start thinking.

And to top it off: -unmounted- nothing can harm you.


How can I determine if a video can be encoded successfully with HEVC (x265) encoding

The following will correct the width to a number divisible by 8 and then correctly rescale the height to a number divisible by 8 while maintaining correct aspect ratio:

ffmpeg -i <input> \
       -c:a copy \
       -c:v libx265 -preset medium -x265-params crf=28 \
       -vf scale="trunc(iw/8)*8:-8" \
       <output>

As a bonus if the width is already divisible by 8 there will be no change in the output width and no error from FFmpeg.

An explanation for the scale syntax, remembering that the syntax is -vf scale=width:height:

1. Output Width Calculation:

iw/8: The width of the input video stream will be divided by 8. So an original width of 690 would create a number 86.25
trunc: The number 86.25 would be 'truncated' to 86
*8: 86 would be multiplied by 8 to give a final width of 688 which of course is divisible by 8!

2. Output Height Calculation:

-8: FFmpeg will calculate a height that is divisible by 8 but which also maintains the correct aspect ratio of the original file

In a perfect world hevc encoding is run with encoding units of 8x8, 16x16, 32x32 etc and this syntax guarantees this. More details of this here...

References:

FFmpeg and H.265 Encoding Guide
Scaling (resizing) with ffmpeg
FFmpeg: 3. Expression Evaluation
HEVC – What are CTU, CU, CTB, CB, PB, and TB?


The Makefile you are using is not respecting the DESTDIR variable - packages should never install directly into /usr at build time, but instead put files into a temporary tree.
You've mentioned that you added the Makefile yourself - the usual case is that you'd need to make it use the DESTDIR variable as a prefix for all install paths.
Having looked at the package build instructions, the package uses scons as a build system, which is a replacement of sorts for make. dh_make most likely doesn't have a template for building packages with this, so you should look for packages that do use it for building, such as yafray, and look at their debian/rules

As package builds are never done as root, it is better to have this error shown & corrected rather than having a package overwrite important files as the package is being built on an unsuspecting developer's system.


Dobey's answer, it is more easy/quick to track dependencies using pbuild or sbuild. Check SimpleBuild.
However if you have small tool to package with low bandwidth connect, myself prefer building on launchpad directly as I don't have a ready setup of chroot environment, sometimes working on low resource machine.
From the buildlog:
   dh_auto_test -a
make[1]: Entering directory '/build/buildd/bugapp-1'
qmltestrunner -input tests/unit
make[1]: qmltestrunner: Command not found
Makefile:18: recipe for target 'check' failed
make[1]: *** [check] Error 127
make[1]: Leaving directory '/build/buildd/bugapp-1'
dh_auto_test: make -j1 check returned exit code 2

It clear that you need the qmltestrunner tool for build, check it's package:
$ dpkg -S qmltestrunner
qtdeclarative5-dev-tools: /usr/lib/x86_64-linux-gnu/qt5/bin/qmltestrunner
qtchooser: /usr/bin/qmltestrunner

So add them to build dependencies.
 Build-Depends: debhelper (>= 9), qtdeclarative5-dev-tools, qtchooser

Then upload it again.

Update:
I have used pbuild long time ago and I looked again for new things. I think cowbuilder ①
is the simplest available tool.

Install it.
 sudo apt-get install cowbuilder

Edit the pbuildrc config
 # this is your configuration file for pbuilder.
 # the file in /usr/share/pbuilder/pbuilderrc is the default template.
 # /etc/pbuilderrc is the one meant for overwriting defaults in
 # the default template
 #
 # read pbuilderrc.5 document for notes on specific options.
 MIRRORSITE=archive.ubuntu.com/ubuntu

 COMPONENTS="main universe"

Two known problems:

The MIRRORSITE=archive.canonical.com/ubuntu will not work. (seen in trusty, no such problem in wily)
COMPONENTS="main universe", default is main only, universe is needed for cowdancer②.

Create the cow image
 sudo cowbuilder --create

Build your debian source pacakge
 sudo cowbuilder --build yourpackage.dsc

Find the built packages in:
 /var/cache/pbuilder/result/

Reference:
① Debian Wiki: cowbuilder (pbuilder wrapper)
② LP Bug#747053: cowbuilder requires universe to be enabled in pbuilderrc


Since this is one of the first pages that appears when searching for this problem, and there is no actual solution to it, I thought of posting one that worked for me.

-- This should only work if you tinkered with fonts by using Ubuntu Tweak --

So, if you did do that, go to MyUnity, go to the fonts tab, and select Default Settings. After the fonts have been returned to normal, the terminal will start working again.

At least that did the trick for me.

Props go to Knurveren for the fix.

Cheers!


No sound whatsoever. Headphones or Speakers, on an HP Pavilion dv6

I have the same computer as you. I even had the same problem with the audio playing out of the headphones and the speakers! I looked everywhere for a fix and kept coming up short in my search for an actual solution. I finally found it. Short answer if you have an HP Pavilion dv6-2155dx all you have to do is this.

In terminal type or paste:

gksudo gedit /etc/modprobe.d/alsa-base.conf

Add this line to the very bottom of the alsa-base.conf file:

options snd-hda-intel model=hp-dv5

Save and restart computer.

Enjoy beautiful sound and Ubuntu!

All thanks to a post on this website.


This might fix the issue:

sudo apt-get install -f bind9

If it doesn't, then this might fix the issue:

sudo apt-get remove bind9
sudo apt-get install bind9

Failing that you may want to remove bind9 via dpkg directly (to avoid apt-get uninstalling whatever depends on it):

sudo dpkg --remove bind9
sudo apt-get install -f bind9

If dpkg doesn't want to remove bind9 (it might say the package is in an inconsistent state and needs to be reinstalled before it can be removed), you may try upgrading to the new version directly

sudo dpkg -i /var/cache/apt/archives/bind9_1:9.8.1.dfsg.P1-4ubuntu0.7_*.deb
sudo apt-get install -f


Is it possible to upgrade xfce 4.12 to xfce 4.14 on Xubuntu 16.04.6?

An update is in order anyway, for your Xubuntu 16.04 has reached its End of Public Support. Xubuntu is on a three year support span for LTS versions, unlike the five year span for Ubuntu Desktop, Ubuntu Server, Ubuntu Cloud, Ubuntu Base, and Ubuntu Kylin. Fortunately, they have published Xubuntu 18.04 LTS.


You need to open the file as root.

gksu gedit /etc/default/grub

On 13.04 or later you might have to first install gksu:

sudo apt-get install gksudo

See also https://help.ubuntu.com/community/RootSudo


setting PATH to /etc/profile or /etc/environment does not work with sudo

Just to run:

  sudo ./idea.sh

in background:

  sudo ./idea.sh &

Also visit similar answer.


How can I stop gnome-software from checking for updates when I log in?

Ubuntu's software updater is not GNOME Software! GNOME Software does not listen to Ubuntu's software updater settings. I know this because I've got Ubuntu's updater set to run every other week, but I keep getting updates daily.

I found this on the Ubuntu forums, there is an edit on the original post with the solution to both problems. Use dconf-editor (may need to install), go to org.gnome.software, and uncheck "download-updates". GNOME Software should no longer check for updates, and Ubuntu's Updater should continue to update as usual. I'm not entirely sure, but I'm willing to bet you will need to log out and log back in for the change to take effect.


Installation instructions for dual boot Ubuntu and Windows

Your general understanding looks good. What you are doing doesn't seem that crazy, there should be resources out there for how to dual boot Ubuntu and Windows using UEFI. Windows 7 should also be easier to deal with than Windows 8 for UEFI reasons.

That being said, from my experience with UEFI, I can understand your reasons for asking. If you don't want the hassle, and your BIOS supports legacy booting (not UEFI), feel free to go that route. I know my motherboard's BIOS supports both UEFI and regular MBR disks, and it's less fancy than yours.

Ubuntu has a guide for UEFI, which looks like it covers things pretty well. It discusses some common errors you may run into. I would suggest following the instructions at the beginning. Here are some specifics I would add for you:

First make sure your BIOS is set for EFI or Legacy mode (depending on which way you want to go). Then install Windows (have fun with that), it should install in the mode you set in the BIOS. You might not want to activate it until you get everything working right in case you need to start over.

Once Windows is working, boot the Ubuntu installer. Once you get to this far, if you are using EFI, it mentions:

  nothing special is required if you use the automatic installer of Ubuntu

So that's good news. Just use the installer to set up your partition scheme. Windows should have created the EFI System Partition already.

  Mount point: /boot/efi (remark: no need to set this mount point when using the manual partitioning, the Ubuntu installer will detect it automatically)

There are too many variables to come up with an exact checklist of every step to take. See if the above can get you started and let us know if you run into problems.


Seems that I needed to edit the /etc/crypttab file, which is the crypto equivalent to fstab, and add the following line:

# create a /dev/mapper device for the encrypted drive
home    /dev/sda2       none luks

And add the following to /etc/fstab:

# /home LUKS
/dev/mapper/home /home ext4 rw 0 0

Now I get two password prompts at boot, as needed.


Your touchpad is not being detected as a touchpd, it is being detected as a mouse. That's why you can use the touchpad but you see no tab to configure it.

It is a known bug and is reported here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/760142

You can see the same talk in UbuntuForums http://ubuntuforums.org/showthread.php?t=1833606

I used to have the same problem with an Elantech touchpad but It was solved in the previous kernel update. If you are lucky, in two or tree months it will be solved in a update (or not!)

Meanwhile you can read the bug report to see if there is a fix, or something you can try.


Chrome shows two icons in Unity Launcher

I periodically run into this problem and variants of it, most recently on Ubuntu 14.04.

Here's what has worked for me in these cases:

Close all Chrome windows (and choose Exit from the Chrome indicator menu, if you have one).
Right click on all Chrome icons in the launcher and choose Unlock from Launcher.
Open the Files application.

Choose Location from the Go menu (or press Ctrl-L).
Type .local/share/applications into the text field and press Enter.
You should see a number of files whose names contain "chrome" (or "chromium" if you're using Chromium instead of Google Chrome. Send these files to the Trash (but leave any other files in this folder alone).

(You might have to log out and log back in at this point, but I don't think this is always necessary.)
Open the Dash and type chrome. You should see only 1 entry.
Launch Chrome and lock to the launcher (by right clicking on the icon and choosing Lock to Launcher or by dragging the icon out to the right of the launcher and then back in at a different location).
Close the Chrome window, and then use the launcher icon to reopen it. It should open normally and you should not see a 2nd icon appear.


The prior answer assumes you're talking about external IP address; which is set by ISP. I take your question as asking about the LAN IP address; which can be changed in many ways.

Set static IP Ubuntu 16.04

On my own ubuntu 16.04LTS (running XFCE so think Xubuntu) I can 'click' the network icon on top of my left monitor and view "Network Connections"; A dynamic (changing, or set by router) uses DHCP (d=dynamic) which just needs to be changed and you're done. You can do it this way if you prefer; using your current addresses as a guide. Keeping wireless as DHCP may be worthwhile (it'll likely work in more locations)


How can I Integrate Ubuntu 32 and 64 bit into a single DVD

I don't know of a program that will allow you to do it in Ubuntu.  But just from past exprience, I think that it can be done with scripting.  If you're not comfortable with that, pendrivelinux.com has a utility that will allow you to accomplish just that.  It called XBOOT.  Once you create the USB, you can then put it on a DVD.

  XBOOT is yet another neat little Multiboot ISO USB Creator. It is a
  Windows based application that can be used to create a Live Multiboot
  USB or even a Multiboot ISO file that can then be burnt to a CD/DVD.
  XBOOT supports many Linux Distributions and Utilities, and allows you
  to use your choice of a Grub or Syslinux bootloader. Also included is
  a built in QEMU emulator (enabling you to boot an ISO from within
  Windows).1

Click to download

1Source:PenDriveLinux


Moving multiple extension file name in another directory

You should probably use -regex instead of -name - with -name, each extension will need a seperate -name test:

find .. -name '*.mp4' -name '*.avi' ...

Instead:

find -regextype posix-extended ... -regex '.*\.(mp4|avi|...)' ...

Given your array, do (ditching the unnecessary xargs):

find "$SOURCE" -regextype posix-extended  -type f -regex ".*\.($(IFS="|"; echo "${MOVEFILES[*]}"))" -exec mv -t "$DESTDIR" {} +

IFS="|"; echo "${MOVEFILES[*]}" is a way to print every element in the MOVEFILES array separated by |.

$MOVEFILES by itself is just the first element in the MOVEFILES array.


Redshift keeps changing back to 6500K after a few seconds

Finally, found a solution to this problem in Ubuntu 20.04 LTS.
Just right click on the system tray of Redshift and exit if it is already open.
Then open a terminal (ctrl+alt+T) and type the command for changing the  temperature manually.
redshift -O 3700


How can I create a shared partition for Windows and Ubuntu in a pen drive?

What is the order your partitions are in?

I'm going to assume you have the 8GB EXT4 at the "front" of the drive.

Windows cannot use/recognize EXT4 partitions, thus it is seeing the first few sectors/spaces of the drive as being EXT4, and yelling at you.

The solution is to start over, and place the storage partition at the FRONT of the drive.  If windows sees an NTFS volume, it'll be able to access and use that part of the drive.  Note that the drive's capacity would only be 6GB acording to windows, but that's a good thing because this keeps you from screwing up your 'buntu system files from within windows.


Writing x64 Ubuntu on USB from the same USB

After spending 5 hours on this, trying up to dozen solution I ended up bringing 2nd empty 16GB USB drive and installed on it (while using 1st USB drive as an installer).


Use chown to change ownership and chmod to change rights.

As Paweł Karpiński said, use the -R option to apply the rights for all files inside of a directory too.

Note that both these commands just work for directories too. The -R option makes them also change the permissions for all files and directories inside of the directory.

For example

sudo chown -R username:group directory

will change ownership (both user and group) of all files and directories inside of directory and directory itself.

sudo chown username:group directory

will only change the permission of the folder directory but will leave the files and folders inside the directory alone.

As enzotib mentioned, you need to use sudo to change the ownership from root to yourself.

Edit:

Note that if you use chown <user>: <file> (Note the left-out group), it will use the default group for that user.

If you want to change only the group, you can use:

chown :<group> <file>


Java version problem with Eclipse and NetBeans on 18.04

The current version of NetBeans from the default Ubuntu repositories is 10.0 in Ubuntu 18.04 and later. NetBeans 10 is compatible with either openjdk-8-jdk or openjdk-11-jdk in 18.04. To install it open the terminal and type:

sudo apt install openjdk-8-jdk netbeans

or

sudo apt install openjdk-11-jdk netbeans

The eclipse snap package works well with Java in Ubuntu 18.04 too.

sudo snap install eclipse --classic


Airmon-ng doesn't show any thing in Microsoft's versions of Ubuntu?

The version of Ubuntu you are running on top of Windows is containerized, and does not generally have direct access to the hardware. The network connection is bridged to the host. This means certain tools, such as airmon-ng may not work as expected.


sudo apt-get install unity-lens-music unity-lens-photos unity-lens-gwibber unity-lens-shopping unity-lens-video

That should sort your problem out :-) - this piece of text is just due to StackExchange minimum text limit on an answer. If you have any other problems, post a comment.


dh_auto_configure with buildsystem=cmake failing

Couldn't expect the issue so I downloaded your code to try it directly:

bzr branch lp:~satyagowtham-k-gmail/+junk/base-package

I would thank you too for sharing those notes about packaging cmake projects. I'm sure many need it.
This error:

  dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var failed to to execute: No such file or directory

can mean that the command (cmake) could be missing not just target file ../ . I was expecting Command not found message but I was wrong as the command here actually was dh_auto_configure.
So cmake was missing in Build-Depends: (debian/control file). Add it then try again, it should build just fine.


Repeat one song plugin not working for Rhythm Box

The Repeat One Song plugin (v0.2) still works in 12.04. It must be installed differently, though.

After downloading the plugin and extracting it to a folder, open your terminal and type

sudo nautilus

Navigate to /usr/share/rhythmbox/plugins under File System, create a folder named repeat-one-song and move the icon.svg file in the extracted plugin folder to that location.

Similarly, navigate to /usr/lib/rhythmbox/plugins under File System, create a folder named repeat-one-song and move the repeat-one-song.plugin and repeat-one-song.py files in the extracted plugin folder to that location.

Now you should be able to open Rhythmbox, go to Edit->Plugins, enable "Repeat One Song," and the new repeat icon should appear next to the normal play controls.


Windows 7 detected, but no option to install alongside windows

*I formated my drive D in windows 7 to install ubuntu on this drive.

To clarify, is that partition currently unallocated space? Usually you need to shrink your windows partition before installing to provide enough free space for the new install. You might need to defragment your hard drive before doing so because linux will need a contiguous block of memory. If all of your files are scattered over the partition it might be impossible to shrink the windows partition enough for the install.

Edit:
If you have already moved all data from that partition, then delete the partition to create unallocated space. This will be where ubuntu is installed. Ubuntu can't automatically guess that your NTFS partition is where you want it to install, all Ubuntu can use is the unallocated space on the drive.


Why won't my computer hibernate and shut down properly?

Try mount the swap partition (sd* is your swap partition - if you don't know what it is, probably it's the one in the comment "# swap was on /dev/...")

sudo swapon /dev/sd*

and suspend.
You should also post more information about your machine.


may be if you have autoplay enabled virus could affect your computer or if you transfer some data to your computer or run executable file, then only your computer be affected with virus.
Best practise to disable autoplay in System Settings > Removable Media.
Besides, there are only 100 or so viruses for linux. And changes of them to be distributed on internet is very very small, so don't be scared and keep your system up-to-date and disable autoplay


For a little humour I would say that cat is an animal and sudo cat is a feline with superpowers. :D

sudo is a command that you use to obtain root privileges. root is a special user that manages the machine, and for this he/she has superpowers. For example, if there is a file that only root can see its contents, and you are logged in as a normal user, you can use

$ sudo cat name_of_the_file

to read it. Also if there is a program that only root can run, like the reboot command:

$ reboot
warning: must be root!
$ sudo reboot
rebooting...........

THE CATCH IS: you must be specially (and manually) assigned by root to have permission to use sudo. The permission is given in a file called /etc/sudoers. In Ubuntu, the first user, the one created during install, is automatically a sudoer. But the subsequent users are not. You have to add them manually to the group sudo whose members are allowed to use the command sudo.

By the way, /etc/sudoers is a file that only root can see. So if you do

$ cat /etc/sudoers

you will not be able to see its contents. But if you do:

$ sudo cat /etc/sudoers

you are good.

Hope this helps.


How do I enable multitouch support on synaptics?

Install the DKMS driver package provided in https://bugs.launchpad.net/bugs/308191 (comment #115, #116). Reboot, and go to System > Preferences > Mouse > Touchpad and select "Two-finger scrolling".

credit


Why does the SSH session not die after rm -rf /?

The OS and services run in memory, so they can keep running (but of course they cannot load anything from disk any more).

You will also not be able to open another ssh-session :-)


Reinstall of OS after CPU Upgrade needed?

You shouldn't need to reinstall, Ubuntu is very, very accepting of hardware changes.

A good example of this was I have a Dell Latitude here that has a core two duo p9700 processor, nVidia Quadro graphics, two gigabytes of ram. That recently failed (my own fault) so to transfer the files off of the hard disk within it I put the hard disk into my other laptop, which is a Compaq Presario which has a Pentium dual core processor, three gb of ram, Intel graphics, a very different system. To my surprise it booted up from the old install on my Latitude with absolutely no driver issues at all. I was absolutely amazed. After I figured this out I tested it by hooking the hard disk up to my Desktop computer which contains an AMD Sempron single core processor along with nVidia Gforce 9600gt graphics card and four gb  of ram and still it booted with absolutely no issues.

This has to be one of my favourite things about Ubuntu because it makes things so much easier.


Upgrade from 8.04 to 10.04, "no release found"

What I would probably do is just download a 10.04 ISO file and burn to a disk or usb. Then when you boot the computer from the disk, one of the installation options is to upgrade your current version to the version on the disk. It will keep all of your files and settings. I can't honestly say I've ever done it before, but I know it's an option. It also should take less time than an online upgrade.


Landscape ask for "At least three machines with more than one disk"

As shown in the screenshot, you only have two servers available in MAAS. The first one "creamy-scent.maas" is already used, (probably this is where Landscape itself is deployed?).

You need at least three which are in the Ready state in MAAS.


automatically generate/backup a list of files (but not backup the actual files)?

You can use tree. It might not be preinstalled, so get it using

sudo apt-get install tree

Then you can get a list of your files and their directory structure by simply running

$ tree test/
test/
├── dir1
│   ├── file1
│   ├── file2
│   └── file3
├── dir2
│   ├── file1
│   ├── file2
│   └── file3
└── dir3
    ├── file1
    ├── file2
    └── file3

You redirect the output to a file like this:

tree test/ > directory-list.txt

You can limit recursion depth using the -L option, e.g. tree -L 3 test/.

If you want a fancy HTML page with FTP links to each file, tree has that built in!

tree -H /ftp-root test/ > directory-list.html

You need to specify a base link though which will control where all the file hyperlinks point to, as described in the manpage (man tree):

   -H baseHREF
          Turn  on  HTML output, including HTTP references. Useful for ftp
          sites.  baseHREF gives the base ftp  location  when  using  HTML
          output.  That  is,  the local directory may be `/local/ftp/pub',
          but  it  must   be   referenced   as   `ftp://hostname.organiza‐
          tion.domain/pub'  (baseHREF  should be `ftp://hostname.organiza‐
          tion.domain'). Hint: don't use ANSI lines with this option,  and
          don't give more than one directory in the directory list. If you
          wish to use colors via CCS style-sheet, use  the  -C  option  in
          addition to this option to force color output.

The resulting file opened in a webbrowser looks like this:


In Ubuntu you cannot install programs on another partition but in Windows you can if you want a common partition to access files from windows and Ubuntu make one partition on your HDD as NTFS using Windows or gparted in Ubuntu, this partition would be accessible from both OSes. A FAT32 partition can only support 127GB of disk space on Windows XP so if you want a larger common partition go for NTFS.

As for Ubuntu drivers for your motherboard it has picked them itself unlike Windows where you have to specifically install all the drivers

As for your graphic card it is an MSI AMD Radeon R7 260X and you have a choice to install the fglrx proprietary drivers. Now you are using the open source X org Xserver drivers for display and not the proprietary graphic card driver.

Search for additional drivers from dash and choose your correct fglrx driver, click on it apply changes and reboot your system


Unable to install darkice in ubuntu 12.04 x64

To install Darkice  from the Ubuntu multiverse repositories we have to enable this repository in our sources settings (disabled by default).

Here is our basic tutorial on how to setup Icecast and Darkice:

How do I setup an Icecast server for broadcasting audio in my network?


how to reducing cpu frequency (I have spent over 2 hours trying)

The Core family CPUs of that generation have automatic clock frequency management.  Current driver/microcode versions for the generation you're running have exactly two settings: Performance, or Powersaver.  Both will increase frequency as needed for load; the difference is in how aggressively the frequency is scaled back.

FWIW, I have a laptop with a Core i5-3520M that routinely runs one core above 100 C and the other above 90 C; it slows itself down (to as low as 350 MHz) as needed to manage temperature (I'm currently trying to work with the refurbisher to see if this is endemic to the model or something that can be corrected).

The only hope you have for manual clock reduction, whether for thermal management, performance simulation, or whatever, is underclocking from the motherboard -- and that's a BIOS/hardware function, and would be off topic here (try SuperUser.SE?).

The other alternatives are the standards, make sure cooling intakes are clear, internal air pathways are clean, and consider obtaining a laptop cooler pad (these use a Peltier chip system to feed precooled air into the computer's air intakes).  If not a laptop, you might also check that your thermal grease is fresh, your CPU fan is operating correctly, heat sink is not clogged with dust, and if necessary, considering upgrading your cooling solution.


netbeans not all requested modules can be enabled

Go to /etc and open netbeans.conf.

  Note: you can find netbeans_root_folder with ls -l $(which netbeans)

Make sure the variable netbeans_jdkhome has the correct value, something like:

netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"


How can I restore a disappeared battery tray icon indicator?

Try reinstalling indicator-power

sudo apt-get install indicator-power

Other possiblity is that it is disabled in the gnome registry

sudo apt-get install indicator-applet-complete
sudo apt-get install dconf-editor

Then use dconf-editor to change icon-policy to present.


Not able to find packages in iso for many standard elf binaries including hostname, bash, dash, login

Look under the casper directory on the ISO, and there is a file filesystem.squashfs.  This contains the "missing" files, and there is another filesystem.manifest to identify their originating packages and versions.


Thinkpad yoga x1 gen 2 freezes completely when stylus is used ubuntu 20.04.2

I had the same problem on my Lenovo Yoga C740 with kernel 5.8.0-45 on Groovy, fixed by downgrading to 5.8.0-44.


To make Ubuntu boot directly to console and not X, you have to do the following:

Open /etc/default/grub in your favorite text editor as root (e.g. gksudo gedit /etc/default/grub)
Locate the following line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Replace "quiet splash" with "text" (i.e., GRUB_CMDLINE_LINUX_DEFAULT="text"). If you have a specific runlevel in mind, use that number (for runlevel 3: GRUB_CMDLINE_LINUX_DEFAULT="3").
Save the file
Run the following command:

sudo update-grub


Where can I find the right printer driver for my Epson Stylus Photo 1400?

A possible alternative is the (commercial) Turboprint drivers, the supported printers currently include the Epson Stylus Photo 1400

Turboprint supported Epson printers


Fix corrupt NTFS partition without Windows

Install ntfs-3g with sudo apt-get install ntfs-3g.
Then run the ntfsfix command on your NTFS partition.

For example:

ntfsfix /dev/hda6

  ntfsfix v2.0.0 (libntfs 10:0:0)

  Usage: ntfsfix [options] device

Attempt to fix an NTFS partition.

-h, --help             Display this help
-V, --version          Display version information

  Developers' email address:

  linux-ntfs-dev@lists.sf.net Linux NTFS
  homepage: http://www.linux-ntfs.org

For newer Ubuntus You can use -b and -d option together. -b tries to fix bad clusters and -d to fix dirty states. So the command can be

sudo ntfsfix -b -d /dev/sda6

--help shows them

ntfsfix v2015.3.14AR.1 (libntfs-3g)

Usage: ntfsfix [options] device
    Attempt to fix an NTFS partition.

    -b, --clear-bad-sectors Clear the bad sector list
    -d, --clear-dirty       Clear the volume dirty flag
    -h, --help              Display this help
    -n, --no-action         Do not write anything
    -V, --version           Display version information


It seems that /lib/udev/rules.d/64-xorg-xkb.rules is responsible to put it in the udev database. I guess the evdev driver picks it up from there. (Udev maintains an in-memory(?) database, and the driver reads the entries related to “input”.)

The application of the rules “evdev” is probably hardcoded in that driver. (I.e. xkb_model and xkb_layout is from udev, but xkb_rules hardcoded, I believe.)


No sound after pulseaudio equalizer installed

I've read this Ubuntu documentation page : SoundTroubleshootingProcedure

Then just have to sudo rm -rf ~/.config/pulse/* , my control volume unmuted instantly and the sound is comeback.


Maas setup with two networks. Node commissioning failed?

Thank you for your comment. I ended up solving this issue by enabling ip forwarding via /proc/sys/net/ipv4/ip_forward

I also needed to add the following lines under the private 10.5.X.X network interface in /etc/network/interfaces

post-up iptables -t nat -A POSTROUTING -o eth4 -j SNAT --to-source <MAAS IP 10.0.X.X>
post-down iptables -t nat -D POSTROUTING -o eth4 -j SNAT --to-source <MAAS IP 10.0.X.X>


I install Xubuntu (kernel 5.8) on a recently bought 500Gb HD and the boot up time is ten minutes of more (AMD Ryzen 3 1200 Quad-Core 8GB)

I used a solid state hard drive and it solved the problem.


xorg, nvidia, log-in all hosed - how can I completely reset graphics set-up/settings?

Yeah, Nvidia has been a nightmare for some of us this time around.  I had no luck whatsoever with the 295 drivers on my GeForce 6150. You could try updating to the latest drivers though...

sudo apt-get install nvidia-current

If that doesn't work, try the updated drivers:

sudo apt-get install nvidia-current-updates

If it still doesn't work, remove both the nvidia driver modules and update the generic nouveau driver:

sudo apt-get remove nvidia-current nvidia-current-updates
sudo apt-get install xserver-xorg-video-nouveau

I've found the nouveau driver pretty good, and certainly a lot more solid and reliable than the nvidia drivers on this card, as well as reasonably fast. I haven't been game to try the latest nvidia driver available now - 305 or something I think - Why fix it when it's not broken?.  Maybe when I have some spare time...

If you manage to get the Nividia drivers working, you might be able to set the resolutions you want using the Nvidia settings tool:

sudo apt-get install nvidia-settings

This tool takes over from the generic display settings in Ubuntu, and knows more about the card capabilities.

I note that some of the older drivers have been put back into the repository.  They were missing when 12.04 was first released.  I'm not sure that they will help you but if you want to try the older stable drivers they are nvidia-96 and nvidia-173


Recover external drive after faulty clone

If you used dd if=/dev/XdY of=/dev/AdB and our internal HDD was larger then the amount of data stored on your external drive, you've lost everything on the external hard drive.  (Depending on the size of the internal HDD and the amount of data that the external HDD contained, your chances of recovery vary from 0% to an unknown %…)

As you're talking about a D-drive, I suppose you were following very advanced Linux instructions to the letter and that is why the original post mentions:

  It is critical at this point to get the dd command correctly. If you gave the wrong entry to of= you may damage all data that had existed there.

To clone a drive to an image file the correct form of the command would have been:

dd if=/dev/sda of=/media/ubuntu/D-Drive.img

As a side note, dd is also know as disk destroyer in the Linux community as it can do extremely powerful things, but also do extremely disastrous things if used wrongly.


Your environment variables in ~/.bashrc probably aren't set up. Here's how they work for me for SDK 1.0.65.0:

export VULKAN_SDK=~/Downloads/VulkanSDK/1.0.65.0/x86_64
export PATH=$VULKAN_SDK/bin:$PATH
export LD_LIBRARY_PATH=$VULKAN_SDK/lib:$LD_LIBRARY_PATH
export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d

After you have added those lines, restart your Terminal and run vulkaninfo again.


HP ProBook 6570b - Ubuntu 14.04 Trusty Tahr - Broadcom BCM43228 [14e4:4359] - no wireless connection possible

Your readings above state:

  Building initial module for 4.4.0-31-generic

However, the crash log you pasted says:

  make: Verzeichnis »/usr/src/linux-headers-4.4.0-119-generic« wird
  betreten

We suspect that Update Manager had installed the -119 kernel version but you had not yet rebooted; hence, your running kernel version was -31.

Please reboot. Next, verify that your running kernel version is -119:

uname -r

If so, then do:

sudo apt-get install --reinstall bcmwl-kernel-source

Any improvement? Paste any errors or make.log: http://paste.ubuntu.com


Why are the colors worse on Ubuntu 12.04 than on Windows 7 on my Sony Vaio E-Series?

maybe look at the monitor icc profiles. You can load them in gnome with gnome color manager or just using xcalib. Maybe in windows, some factory default icc profile is loaded for your monitor.

On my laptop, the colors look bluish without icc profile (factory standard seems to be 6500K temperature). I use color munki to calibrate the screen to get 4600K color temperature for the profile. Then colors look warmer....

Jos


First. The connection is not secure is not a problem. Firefox reporting right now that, my connection to AskUbuntu is not secure!! This is something related to the SSL certificates and actually this doesn't cause a video to not playing!!
Secondly, You have not granted this site any special permission is also good. Actually very good! It means you have not given the site to use your webcam, audio etc. I've posted a picture of my permissions for AskUbuntu below.
You can Check them by clicking on the little icon left of the address bar, clicking the > icon after website name and then More information.

I believe, you can't play the video because the video is not auto-playing. Just click on the black screen of the video. It should start playing. Since, you said, you installed codecs already.


Sharing FAT32 partition on external SSD setup with windows

I reinstalled Ubuntu and partitioned the drive as follows:
1st fat32 5 GB
2nd EXT4 (Ubuntu) 52GB
3rd swap area 5GB

Windows recognizes the 5 GB drive and that is all which is what I needed.  So from what I gather windows can not look past the first partition if it is not in a "windows friendly" format.


How can I uninstall and reinstall ubuntu from a dual boot system?

This will erase all data on your computer

Boot to a live CD. You'll know you are on the live CD because it will have an icon called 'Install Ubuntu' on the desktop and your username (whoami in terminal) is 'ubuntu'
Open GParted (looks like this: screenshot)
Right click on each line and select the 'Partition' Menu, then 'Delete' (screenshot)
Repeat until there is only one line left that reads 'Unallocated Space'
Click the Commit button (Green Checkmark), if you pressed the right one then this will appear
Once it is done, expand the details and make sure every action has a green checkmark, like this

If for some reason you follow each of the directions above and your computer still boots into ubuntu or windows then you likely have more than one hard drive.

Alternative method (faster)

Follow 1 & 2 from above.
Click the 'Device' menu, then 'Create Partition Table' (screenshot)


GNOME shows activities overview when mouse hover dash

Use GNOME Tweaks to turn off Activities Overview Hot Corner.
If Tweaks is not installed, type in bash:

sudo apt install gnome-tweak-tool

Then open Tweaks -> Top Bar -> turn off Activities Overview Hot Corner.


How can I use smbclient to connect to Windows shares by hostname when a firewall is enabled?

I was having a similar problem: I didn't had samba installed but I wanted to browse the network with smbclient and I couln't get no servers in my network, but with the firewall down I could see all the servers.

After searching I found out that ufw (my firewall) wasn't loading the nf_conntrack_netbios_ns module.

I've edited the file /etc/default/ufw, added the module in the line IPT_MODULES=, restarted the firewall with no ports open and voilá, I could browse the samba shares in my network :)

More people had this issue and a bug was opened in ufw about it: https://bugs.launchpad.net/ufw/+bug/360975

Hope this helps.


VLC player not installing on 17.10 ubuntu artful

problem solved -
thanks to kind m-hampl at launchpad.net/ubuntu - link and solution as follows:

https://answers.launchpad.net/ubuntu/+question/662308

ran command:

dpkg -l | grep vlc

then:
Uninstalling vlc-plugin-base (and any other vlc packages with version 3.0.0* listed in the output of that command) - according to the output in my case I ran the following command repeatedly with each package:

sudo apt-get purge vlc-plugin-base

as well purging the following packages:

libvlc-bin:amd64

libvlc5:amd64

libvlccore8:amd64

vlc-data

then installed vlc through ubuntu software app --  now again working fantastically, both with video files as well as dvd media.


Use Ctrl+U to cut text from cursor position to the beginning of the command line. Later, if you want, use Ctrl+Y to paste the cut text.

If you just want to discard the current command line and get a new clean prompt hit Ctrl+C.

For more reference please check the Ubuntu  documentation for Using The Terminal


Whats the difference between SUDO and Changing to root

The following has been extracted directly from the community wiki page on root sudo.

sudo allows user to act as root without root login; it is more secure to use sudo instead of logging in as root.

Advantages and Disadvantages

  Benefits of using sudo

  There are a number of benefits to Ubuntu leaving root logins disabled by default, including:

  The installer has fewer questions to ask.
  Users don't have to remember an extra password for occasional use
  (i.e. the root password). If they did, they'd be likely to forget it (or record it unsafely, allowing anyone to easily crack into their system).
  It avoids the "I can do anything" interactive login by default. You will be prompted for a password before any  major changes can happen, which should make you think about the consequences of what you are doing.
  sudo adds a log entry of the command(s) run (in /var/log/auth.log). If you mess up, you can go back and see what commands were run.
  On a server, every cracker trying to brute-force their way in will know it has an account named root and will try that first. What they don't know is what the usernames of your other users are. Since the root account password is locked, this attack becomes essentially meaningless, since there is no password to crack or guess in the first place.
  Allows easy transfer for admin rights by adding and removing users from groups. When you use a single root password, the only way to de-authorize users is to change the root password.
  sudo can be setup with a much more fine-grained security policy.
  The root account password does not need to be shared with everybody who needs to perform some type of administrative task(s) on the system (see the previous bullet).
  The authentication automatically expires after a short time (which
  can be set to as little as desired or 0); so if you walk away from the terminal after running commands as root using sudo, you will not be leaving a root terminal open indefinitely.

  Downsides of using sudo

  Although for desktops the benefits of using sudo are great, there are possible issues which need to be noted:

  Redirecting the output of commands run with sudo requires a
  different approach. For instance consider sudo ls > /root/somefile will not work since it is the shell that sets up the redirections that tries to write to that file, not the command being run with root permission. You can use

ls | sudo tee -a /root/somefile

  to append, or

ls | sudo tee /root/somefile

  to overwrite contents. You could also pass the whole command to a shell process run under sudo to have the file written to with root permissions, such as

sudo sh -c "ls > /root/somefile"

  In a lot of office environments the ONLY local user on a system is root. All other users are imported using NSS techniques such as nss-ldap. To setup a workstation, or fix it, in the case of a network failure where nss-ldap is broken, root is required. This tends to leave the system unusable unless cracked. An extra local user, or an enabled root password is needed here. The local user account should have its $HOME on a local disk, not on NFS (or any other networked filesystem), and a .profile / .bashrc that doesn't reference any files on NFS mounts. This is usually the case for root, but if adding a non-root rescue account, you will have to take these precautions manually. However the advantage of using a local user with sudo is that commands can be easily tracked, as mentioned in the benefits above.

  Misconceptions about root login

  Isn't sudo less secure than su?

  The basic security model is the same, and therefore these two
  systems share their primary weaknesses. Any user who uses su or sudo must be considered to be a privileged user. If that user's account is compromised by an attacker, the attacker can also gain root privileges the next time the user does so. The user account is the weak link in this chain, and so must be protected with the same care as root.

  On a more esoteric level, sudo provides some features which encourage different work habits, which can positively impact the security of the system. sudo is commonly used to execute only a single command, while su is generally used to open a shell and execute multiple commands. The sudo approach reduces the likelihood of a root shell being left open indefinitely, and encourages the user to minimize their use of root privileges.
  I won't be able to enter single-user mode!

  The sulogin program in Ubuntu is patched to handle the default case of a locked root  password.
  I can get a root shell from the console without entering a password!

  You have to enter your password.

  Console users have access to the boot loader, and can gain administrative privileges in various ways during the boot process. For example, by specifying an alternate init(8) program. Linux systems are not typically configured to be secure at the console, and additional steps (for example, setting a root password, a boot loader password and a BIOS password) are necessary in order to make them so. Note that console users usually have physical access to the machine and so can manipulate it in other ways as well.

  Special notes on sudo and shells

  None of the methods below are suggested or supported by the designers of Ubuntu.

  Please do not suggest this to others unless you personally are available 24/7 to support the user if they have issues as a result of running a shell as root.

  To start a root shell (i.e. a command window where you can run root commands), starting root's environment and login scripts, use:

  sudo -i     (similar to sudo su - , gives you roots environment configuration)

  To start a root shell, but keep the current shell's environment, use:

  sudo -s     (similar to sudo su)

  Here's a brief overview of some of the differences between su, su -, and sudo -{i,s}

                HOME=/root      uses root's PATH     env vars
sudo -i         Y               Y[2]                 N
sudo -s         N               Y[2]                 Y
sudo bash       N               Y[2]                 Y
sudo su         Y               N[1]                 Y

[1] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games  (probably set by /etc/environment)

[2] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin


Google Drive in GNOME - garbled file names in other applications

I too had this issue in lubuntu 20.04 when displaying google drive with pcmanfm-qt file manager.
However, I could solve it by going to 'Edit' - 'Preferences' menu, 'Display' tab and unchecking the 'Always show full file names' check box.