Wifi Network not appearing in Ubuntu 14.04

First, find out which driver is installed:

lsmod | grep -e wl -e brcmsmac

This: Installing Broadcom Wireless Drivers suggests that the correct driver is brcmsmac. If you have wl, you will have much better performance with the former. Remove the incorrect driver:

sudo apt-get purge bcmwl-kernel-source

Reboot and let us hear the result.


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

sudo update-grub

It will not find the Windows partition and will remove its entry from the Grub menu.


Is it easier/more reliable to install a Windows partition over Ubuntu; or backup, install Windows fully then install an Ubuntu partition?

Although possible, it isn't advisable to install Windows side by side an already installed Linux OS. Windows may destroy your Linux partition if you are not careful to specify a separate partition when running the installer. And Windows will definitely destroy GRUB (your boot manager). To be safe, I would install Windows first, then install Ubuntu. In other words, option 2.

Also, virtualization extensions aren't a requirement for Virtualbox if you wanted to go the virtualization route, they are just recommended and provide performance enhancements.


Is there a way to install dependencies as a program encounters them?

Alright, so after learning how to script bash I came up with this. Works for 64 and 32 bit dependencies.

#!/bin/bash
DESTINATION=${1/ /\\ }
TYPE=$(eval readelf -h $DESTINATION | grep Class | awk ' {print $2}')
FILES=$(eval ldd $DESTINATION | grep "not found" | awk ' {print $1} ' | paste -s -d ' ')
for FILE in $FILES; do
  PACKAGE=$(apt-file search $FILE | awk ' {print $1}' | sed 's/://g' | uniq)
  if [ ! -z $PACKAGE ]
  then
    if [ $TYPE = "ELF32" ]
    then
      sudo apt install ${PACKAGE}:i386
    else
      sudo apt install ${PACKAGE}
    fi
  fi
done

https://github.com/Managor/install-deps.sh if I ever make changes.


Typically, this is solved by using curses http://en.wikipedia.org/wiki/Curses_(programming_library) to write the messages in a different part of the terminal than where the input is being typed in.


How to set the tempreture at which the fan must speed up - laptop

Fan speed and the temperature at which the fan hits certain speeds can be controlled in linux via a combination of packages lm-sensors and fancontrol, though on my HP laptop I could never get it to work properly, I believe because HP controls this via the bios, but it may just be I didn't research enough.

I ended up changing the cpu governor to conservative and changing the conservative governor settings this ultimately made my computer run cooler and more efficiently (less fan cycling).

I found these two pages that helped me manipulate the governor and put my setting permanently in /etc/rc.local to load them on each reboot http://www.pantz.org/software/cpufreq/usingcpufreqonlinux.html
http://www.thinkwiki.org/wiki/How_to_use_cpufrequtils


How to use "grep" command to find text including subdirectories

It would be better to use

grep -rl "string" /path

where

-r (or --recursive) option is used to traverse also all sub-directories of /path, whereas
-l (or --files-with-matches) option is used to only print filenames of matching files, and not the matching lines (this could also improve the speed, given that grep stop reading a file at first match with this option).


Will Ubuntu remove vnc in favor of freenx?

While freenx will work on Ubuntu, and there are 3rd party packages for it, Ubuntu will not switch to it. It's too young a technology and too much under control of one closed source company. VNC is much wider supported and despite its speed drawbacks much more reliable and used much more than freenx.


How to view the memory map of a running process?

pmap will show memory map of a process and all associated processes running if you have the process ID. Perhaps that is what you want?


Nvidia GT 710 screen tearing on 18.04 (horizontal lines in videos)

I have same issue here. I found some of solution, maybe this helped

1. edit this file (or create it)

sudo nano /etc/modprobe.d/zz-nvidia-modeset.conf

2. and add this line

  options nvidia_drm modeset=1

3. after all, update initramfs with

sudo update-initramfs -u

4. then reboot.

Source: https://www.cmscritic.com/stop-screen-tearing-with-optimus-laptops-using-nvidia-drivers-in-linux/


How can I lock my screen without turning off the monitor? (Xubuntu 14.04)

Not really an answer to the question above, but a solution to mitigate the problem of turning off the monitor:

sudo apt-get remove --purge light-locker && sudo apt-get install xscreensaver


du -a $1 | grep -Po "[0-9]+\t$1/\K.*" | sort -n > list.txt

You are removing the file size with your grep command, then you are sorting the result numerically. That doesn't sound right.

What about trying

du -a "$1" | sort -n | grep -Po "[0-9]+\t\Q$1\E/\K.*" > list.txt

I added \Q and \E around the variable to treat it as a literal string, even if it contains regex-special characters


Until the file transfer is completed, the file will be in use (opened) by the Samba process. You can test for that by means of the fuser command. So your move command would be something like:

if [[ ! fuser /my/file ]]; then
    mv /my/file /somewhere/else
fi

This will only attempt to move the file if the file is closed, which means that the transfer was completed.


Testdisk

which includes Photorec can do this. See also this answer.


Cloned(Clonezilla) a Dual Boot of Windows+Ubuntu but now GRUB Boots Ubuntu on wrong Drive

After cloning your drive, normally you should normally remove one drive from the system. The reason is that both drives now have the same UUID's... the number that identifies the drives/partitions. When booting, either drive can answer up, 'causing it to boot to the "wrong" drive.

Also, understand, that a Clonezilla clone will probably NOT be restorable to the original drive, as Clonezilla clones only work when the target disk is LARGER than the source disk. Even one byte difference smaller and it won't restore.

If you wish to continue to have both drives connected, you'll have to change the UUID's on one of the drives.

You use four different commands to do this...

sudo blkid # to view UUID's
sudo uuidgen -t or sudo uuidgen -r # see man uuidgen for details
sudo tune2fs -U new_UUID /dev/sdxx # see man tune2fs for details
sudo update-grub # update grub with new UUID's

Be careful... if you change the UUID on the target boot drive, you'll need to edit /etc/fstab with the new UUID's.

You'll also want to adjust partition sizes on the new, larger drive, by using gparted. You can't change partition sizes on live/mounted partitions, so you've got to either boot to a Ubuntu Live DVD/USB, or unmount the partition(s) that you wish to resize.


All android devices tether, its only the provider that block's it .It'd probably work Plug-n-play, it will display as a mobile internet connection on network manager


There is a bug in font-config

Simply remove the fonts-texgyre package

sudo apt-get remove fonts-texgyre

(source: https://bugs.launchpad.net/ubuntu/+source/tex-gyre/+bug/1317599)


xinetd is in the main repository the top tick in this screenshot

Make sure this is enabled first. I would then update your server by clicking on the Download from drop down box and choose other...

Then click then click the select best server button which test by pin the fastest server for you obviously any servers down at the time will not be tested you can then close the window and the system will automatically update apt you can then use either software centre, synaptic or terminal to download your package.

Hope this helps


Thanks to all, this solved my problem:

sudo ntfsfix /dev/sda7


How can I horizontally invert the video output of the webcam

I think you'll need to create a launcher script for each application that needs this fix. For example, if you wanted a script for Skype that flips the video horizontally this should work:

#!/bin/bash
export LIBV4LCONTROL_FLAGS=1 && LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype

If the image is not flipping correctly, try different values for LIBV4LCONTROL_FLAGS. My camera requires a vertical flip so I use '2'. I haven't used this on 11.10 until today when I saw your message, but it seems to be working.


Graphics card fan making noise in Ubuntu

I'm on Ubuntu 14.04, and my graphics card is doing the exact same thing. I have a Radeon 6670. Maybe their is a driver issue. Go to the dash and type "additional drivers" and see if there are multiple drivers for your GPU. I have three drivers to choose from. Good luck!


GParted does not work to format my USB FlashDrive, Etcher works but lacks of options

This method will works for you:

Plug in your flash drive and open the terminal

2- run sudo fdisk /dev/sdx  replace x with your flash drive partition name

3- delete all partition on your flash drive by pressing d in fdisk and confirm it for each partition repeat this

4- create a new partition with press n and when asking partition type enter 7 .

5- finally press w to write changes in your flash drive.

6- run sudo partprobe -s to kernel be aware of changes and find the new partition on your flash drive or you can just plug out and plug in again.

7- run sudo mkfs.ntfs -f /dev/sdx to format your flash drive to ntfs .

that's it


You can't make any changes in Live USB. It don't support any installation. Any changes in property also will be reset on reboot.

If you want customized USB OS.Try to install directly as mentioned in the below article.

https://wiki.ubuntu.com/LiveUsbPendrivePersistent


I would use a usb to Sata or IDE adapter, a live CD and hook up the old HD to the new computer via the adapter.

Then you should be able to run the following command in a terminal window:

  dd if=[olddisk] of=[newdisk]

Note that you will need to determine what the path is to the old and new disk...

The new one will most likely be /dev/sda... the way to determine that with a GUI is to use 'Disk Utility' and look under the 'device' area.

Depending on the size of your disk this can take quite a while.

You could also give Clonezilla or Partimage a try.


How to install and configure pNFS Servers, MetaData Servers, and clients on Ubuntu 20.04?

I've stopped searching about this topic and I will continue in the future but these are what I'd found.
They've added this man page to newer Ubuntu distros: http://manpages.ubuntu.com/manpages/focal/man4/pnfs.4freebsd.html
And in ubuntuforums an active member said:

From what I have read, kernel 4.12+ has supported pNFS which means
Ubuntu 18.04 and higher. NFS protocol 4.1 was the version that had
built-in support for pNFS.
I have not done this before but from what I am seeing, there is not a
flexible way of setting this up regarding redundancy and scalability.
How to configure the data servers for a pnfs metadata server?
I also have not to see ANYTHING "comprehensive" regarding this
subject. There are some bits and pieces about setting it up but
nowhere have I found someone steps thru the entire process and then
proceeds to show any test results showing how it is any better than a
standard NFS design...which has many comprehensive setup guides.

I will do some practice and share them here if I get positive results in the future.


18.04 i-386 installs, gives ibus.rc error

Package ibus-daemon is a keyboard input method. I got the same error seemingly caused by an Ubuntu 18.04 update.

I was able to fix it by going to Settings > Region and Langauge > Language Support and changing the Keyboard input method system to XIM.

Screenshot


How to install the correct driver in ubuntu

Goto "Software & Updates" app -> "Additional drivers" tab and choose your driver, Nvidia 460 seems to be the latest. Screenshot as shown: Nvidia driver


Volume group "ubuntu-vg" not found . . . Cannot process volume group ubuntu-vg

FYI: This answer comes from my first-hand experience with Debian and Ubuntu encrypted systems (mostly Debian Unstable and testing Lubuntu 19.04/19.10 during devel cycles), but this is normal if the system is encrypted and requires an on-boot password.

While I do not know the exact reason this happens, from what I can tell when you have an encrypted partition, it can't read the partition with lvmetad and such while its encrypted.  Once it's decrypted, it's able to use and recognize the volume group.  Why this is the case I do not know, but I'm fairly sure we can consider this behavior you're observing "Normal Behavior" as I have reproduced this on Ubuntu 18.04, 19.04, 19.10, and Debian Unstable.


D-Link DWA 525 Wifi Adapter Installation Error

I simply re-installed the OS and it worked. The Internet is working fine. Detected by default. No drivers, nothing. As for the keyboard, I removed it from the port and connected it to the USB port that was part of the Motherboard. You will find it on top of the CPU. It worked!

All this on Ubuntu 13.10. Thanks everyone who tried to help.


I ended up upgrading to 16.04, and though the computer froze before completing, it now seems to work., and Libreoffice is now OK.


How to make the left Super-key open "Show Applications" menu as a shortcut?

Solution 1: Gnome extensions
Install the extension Start Overlay in Application View to use the Super key alone to open the Application overview.
In addition, install the extension ESC to close overview from applications list to have Esc return you to your desktop rather than to the overview.
In Ubuntu 20.04, use a forked extension: ESC to close overview from applications list | UPDATED by paperthin or ESCape Overview.
Solution 2: ksuperkey (more universal approach that allows you to do whatever you want with super)
With a utility ksuperkey, you can remap a press/release of the super key alone to any key combination. ksuperkey is not available in the standard Ubuntu repositories. Thus, you need to compile it yourself according to the instructions on the ksuperkey Github site.
In this case, you would lauch ksuperkey with the command `ksuperkey -e 'Super_L=Super_L:a'. This will remap hitting super alone to the key combination needed to launch the applications menu.

The binding of super to show the overview in Gnome Shell needs to be disabled first. Use the command gsettings set org.gnome.mutter overlay-key '', or alternatively, use dconf-editor to change the value of that key.
You can autostart ksuperkey using a .desktop file that you place in your ~/.config/autostart folder.

The contents of this ksuperkey.desktop file may look as:
[Desktop Entry]
Categories=Utility;
Comment=Map super key
Exec=sh -c "sleep 0.4 ; ksuperkey -e 'Super_L=Super_L:a'"
Icon=keyboard
Name=ksuperkey
StartupNotify=false
Type=Application
X-GNOME-Autostart-enabled=true

Optionally, install the extension ESC to close overview from applications list ( ESC to close overview from applications list | UPDATED on Ubuntu 20.04) to have Esc return you to your desktop rather than to the overview.


I found my problem after all.The thing is i was reading the path from the keyboard(read command) and somehow the tilde(~) was not expanding.Solution to this was:

echo 'Give path:'
read var1
var2=$(eval echo "$var1");

Now var2 contains the full path(expanding the ~) and i could use my tests normally after that.


Ubuntu core doesn't ship a graphical stack like X11 or wayland and is not designed to support most graphical snaps today. There are people working on standalone X11 snap that you can install and operate but again, this is not something that is supported yet. Such devices are typically used for headless operation or for kiosks with a special, locked down application that does display on the connected screen.


why does this simple script give such a weird output?

You have declared associative array, that's why output is not ordered. Change declare -A A1 to declare -a A1 to declare indexed array.

Like follows:

#!/bin/bash
num=1
declare -a A1
while true
do

    A1[$(($num + 1))]=$num
    num=$(( $num + 1 ))
    e=0
    for e in ${A1[@]}
    do
        echo $e
    done
    echo "e is $e"
    echo "num is $num"
    sleep 0.1
done

Also, your array index is not zero based. First element is A1[2]. To fix it change first line inside loop to A1[$(($num - 1))]=$num


Why cant I watch Netflix on this OS (Ubuntu 14.04)

Ubuntu supports watching Netflix in Google Chrome browser version 37+.


How can I open Skype without entering a keyring password each time?

I've solved this problem as follows:

In the Kubuntu launch menu, type password to find the utility Passwords and Keys. Open this utility.
In the panel on the left you should see an entry Login in the section Passwords. Right click on Login, and select Change Password from the pop-up menu.
You'll need to enter your current password first, then it asks for a new password
Just leave the fields blank and press Continue.

Once you have done that, you should be able to open Skype without being prompted for the keyring password.

Obviously, this approach assumes you are fine with not having this extra layer of security on your keyring, but I expect for most home users this is perfectly fine.

For more info, look at http://ask.xmodulo.com/disable-entering-password-unlock-default-keyring.html


Where can I find a tool to create a gif/jpg/other index of icons available in a Visio Stencil (.vss)

Probably what you want is vsdump, which can be installed via the Synaptic Package Manager, or by:

sudo apt-get install vsdump

But be warned; this program dumps Visio files out as XMLs, not as JPGs. But this is still useful, as XML files can be opened by other diagramming programs like Dia (also installable from the Ubuntu repositories). I was unable to find a program that did a straight conversion from .vss to .jpg, so this is the next best thing.

VSDUMP Homepage: http://www.gnome.ru/fileformats/visio_intro.html
VSDUMP Manual: http://tfm.cz/man/1/vsdump

Good luck!


How to connect to internet via mobile broadband?

As a workaround for 11.04 try to remove any vpn (with september updates my 11.04 was ok even with vpn).
The same problem in 11.10


Can I open a file as root by just using the right click menu

You need the admin extension

$ apt-cache search nautilus | grep admin
nautilus-admin - Extension for Nautilus to do administrative operations

Install it with sudo apt-get install nautilus-admin


Not sure about the exact issue you're facing, but it sounds familiar. What did help me was to do the following in a Terminal:

u1sdtool -q
u1sdtool --start
u1sdtool -c

The first will quit the program, the second will start it and the third connect it. I have had error messages whilst doing so, but I've found that it seems to need me to do this to connect eventually. Also, if you have many folders and sub-folders and files, it will first need to scan all files before connecting to your Ubuntu, so whilst it might remain on stating "connect", it might in fact be preparing Ubuntu One to Connect. It has taken me up to an hour or so to Connect...

There is also ubuntuone-indicator you could install, and magicicada or something.
sudo apt-get install *

Both give you more details as to what your client is actually doing!

Hope this helps, and hope someone who knows about Ubuntu will clarify/confirm what I wrote :)

bisi


Nvidia 1080 GTX low performance issue with 390 driver

Sorry for the delay, we found out a month ago that a piece of code was not running well on this machine.

The VSync was hard coded and forced the whole program to reach only 15 FPS. Setting it to false solved the issue.

it's weird that the settings inside nvidia-settings did not affect anything (especially the VSync checkbox). Anyway it's working so thanks everybody ;)


That's not the best way (because Openswan has been removed from Unicorn (14.10) by some security reasons), but it works pretty good for me:

Download and install an appropriate Openswan package from the http://www.ubuntuupdates.org/pm/openswan

I use package trusty (14.04) for my Unicorn (14.10) and it works without any issues.

Then you need to install Network Manager L2TP plugin. I use the bellow one, it has a version for Unicorn:

sudo apt-add-repository ppa:seriy-pr/network-manager-l2tp
sudo apt-get update
sudo apt-get install network-manager-l2tp-gnome
sudo service xl2tpd stop
sudo update-rc.d xl2tpd disable

Then just go to the Network manager, choose VPN connections and create l2tp. You need only set up a username, password and the IPSec PSK in the IPSec additional settings

Hope it'll help you! And good luck


Do the following to install wine-mono:

Download wine-mono.msi from the official WineHQ site.
Type wine64 uninstaller.
Press install from the uninstaller GUI and select the downloaded .msi package.
Done!


Restricting MTP devices from being mounted by a user/group

I couldn't get it to work using user/group permissions neither I know how libmtp mount phones volumes.

This is a solution to check the user group from udev side.

Switch to root

sudo -i

Create a generic script to check GUI user and if it's in specified group

nano /lib/udev/check_gui_user_group.sh

Add these line to it:

#!/bin/bash

export GUI_$(grep -z USER /proc/$(pgrep -nx $1)/environ)
groups $GUI_USER | grep -qFw "$2"

Add executing permission

chmod +x /lib/udev/check_gui_user_group.sh

MTP devices: Let override libmtp rules in /lib/udev/rules.d/ .

cp /lib/udev/rules.d/69-libmtp.rules /etc/udev/rules.d/69-libmtp.rules

Then open it for editing:

nano /etc/udev/rules.d/69-libmtp.rules

Add this line just after LABEL="libmtp_usb_rules":

PROGRAM!="check_gui_user_group.sh gnome-session myusbaccessgroup", GOTO="libmtp_rules_end"

For Ubuntu 14.04 Unity & Gnome, you may use gnome-session. For other desktops, check using pstree -u or ps aux | grep -i session

The meaning of the rule: Whenever the user of gnome-session is NOT in the myusbaccessgroup group skip all libmtp rules.
PTP devices: Add another rules file

nano /etc/udev/rules.d/99-usb-storage-remove.rules

Add rule

ACTION=="add", ENV{GPHOTO2_DRIVER}=="PTP", ENV{DRIVER}!="", PROGRAM!="check_gui_user_group.sh gnome-session myusbaccessgroup", RUN+="/bin/sh -c 'echo -n %k >/sys%p/subsystem/drivers/%E{DRIVER}/unbind'"

Other USB storage devices: Add this rule to the rules file of the previous step.

ACTION=="add", DRIVER=="usb-storage|uas|ums-*", PROGRAM!="check_gui_user_group.sh gnome-session myusbaccessgroup", RUN+="/bin/sh -c 'echo -n %k >/sys%p/driver/unbind'"

To know from where I get the list of drivers, try this:

ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/

Reload the rules

udevadm control -R

Replug your phone.

Testing & Troubleshooting:

Setup the group, if it's not already done

addgroup myusbaccessgroup

Remove user from the group.

deluser user myusbaccessgroup

Run udev monitor

udevadm monitor -u

Replug that device
Check what was run

udevadm test /sys/device/...

Add user to the group

adduser user myusbaccessgroup

Redo starting from step 3.

Notes:

I used Kubuntu 15.04 (real machine) and Ubuntu 14.04 (fresh install in VirtualBox) for testing.

I used Wiko Bloom (Android 4.4.2) to test MTP mode which works well in both systems.
I couldn't test PTP mode because it wasn't auto-mounted, May be I'm missing something here.
Other external storages: a flash disk & an external hard drive. Test passes for both systems.

References:

man udev look for PROGRAM uses.
How to pause VLC playback when the headphones are disconnected? , nice trick by Stunts to import current environment variables.


What are the ethics of having a company "sponsor" a loco team event?

As an Ubuntu member, I don't see anything wrong with this in the least. Especially if the sponsor "uses and loves Ubuntu." There's precedent for this as well. Just off the top of my head, I know that the UK LoCo Team's podcast has sponsorship. System 76 and ZaReason have both been know to sponsor LoCo events as well. I don't believe there are any guidelines, but if in doubt about a specific situation, contact the LoCo Council: loco-council<at>lists.ubuntu.com


After your upgrade to 16.04 assure you issue

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

to pickup any driver updates ... Now to try to repair your existing OS issue this

rm -r ~/.config/pulse; pulseaudio -k

When you issue the following command

find /lib/modules/$(uname -r) | grep snd

above output should contain over 250 files looking like this

/lib/modules/4.4.0-122-generic/kernel/sound/drivers/snd-virmidi.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/snd-portman2x4.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/snd-serial-u16550.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/snd-mts64.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/opl3/snd-opl3-lib.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/opl3/snd-opl3-synth.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/pcsp/snd-pcsp.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/vx/snd-vx-lib.ko
/lib/modules/4.4.0-122-generic/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko

if not then issue following to seed up your sound drivers

# sudo apt-get install linux-restricted-modules-$(uname -r) linux-generic

sudo apt-get install linux-generic
sudo apt-get install --reinstall libasound2 linux-sound-base alsa-utils alsa-tools

if output of above looks smacked then issue this to help get the packages aligned

sudo apt-get -f install

you may need to reboot here ... before you reboot issue below to see if your audio is recognized now

lspci -v | grep -A7 -i "audio"

you should see something like this

00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
    Subsystem: Hewlett-Packard Company FCH Azalia Controller
    Flags: bus master, slow devsel, latency 64, IRQ 16
    Memory at feb40000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

If not then reboot to pickup above drivers ... now audio ? If its fixed please tell us if you needed to reboot or not ?

if not then update your question with your output ... see if your sound card is getting linked to your OS by issuing

cat /proc/asound/cards

you should see something like this

0 [Generic        ]: HDA-Intel - HD-Audio Generic
                  HD-Audio Generic at 0xfeb40000 irq 16
1 [D1             ]: USB-Audio - Audioengine D1
                                    2010 REV 1.7 Audioengine D1 at usb-0000:00:12.0-3, full speed

if not update your question with your output ... If still no go then jump into doing this   https://wiki.ubuntu.com/PulseAudio/Log

If you are on a laptop/desktop I would boot the machine using a liveCD of ubuntu 16.04 from either a USB stick or DVD ... download the ISO file then burn on to USB stick using unetbootin ... once booted from that known solid OS does sound now work ?  If not then its your hardware.  If good sound then your above OS is shaky and you may consider to wipe the box with a fresh ubuntu 16.04 instead of the always suspect upgrade from existing prior OS

Are you on something other than laptop/desktop like a System-on-a-Card machine ?


How to enable AFM extensions on a Ubuntu guest in VirtualBox 5?

Even if your CPU supports FMA this is not yet supported in VirtualBox.

Please see:  https://www.virtualbox.org/ticket/15471


GRUB menu not showing options in dual boot with Phoenix OS

Check this out: Youtube

Hope this helps.


You should try reinstalling GRUB with Boot-Repair.

Make a new Ubuntu Live CD and Boot from it.
Install boot-repair using these commands:

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair

boot-repair

Click "Recommended repair". This will reinstall GRUB in the adequate disk(s). Then reboot.


https://ubuntu.com/security/CVE-2019-13917
https://ubuntu.com/security/CVE-2019-15846
Ubuntu fixes security issues in older versions of packages it distributes. As you can see in the links above, the most severe exim4 vulnerabilities have been patched in Ubuntu in 4.90.1-1.
https://www.cvedetails.com/vulnerability-list/vendor_id-10919/product_id-19563/Exim-Exim.html


Any tool that displays CPU core utilization?

if you are ok with using the terminal, htop is great.  It's a improved version of top which displays a visualization of all your cores and their respective loads at the top of the screen.


There would be little benefit compiling from source. If you are dead set on this then you would probably be better switching do a Linux distribution that is aimed at this sort of user, such as Gentoo. This is designed around the user compiling from source and therefore would suit you better.

Ubuntu is simply a collection of open source tools put together in a way that makes it a good OS for people to use. It is not a single piece of software to be compiled. If you wanted to compile an Ubuntu system from source code you would have to discover all the pieces of software (Kernel, X windows, all other software on top of that) that Ubuntu uses and compile it yourself. Then add all the package management software such as apt on top as well.

Unless there is a good reason to attempt this, I wouldn't bother. As I said before, switch to Gentoo if you want to compile everything yourself, Ubuntu wouldn't be the first choice.


WSL Ubuntu, is there an easy way to have bash start automatically on Windows startup?

(( update this works on WSL 2))

Solution 1 use VBE script.

Click on Start and search for shell:startup.
also you can go manually to:

  C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start
                Menu\Programs\Startup

now create a new file sshserver.vbe and add this text and save

Set ws = CreateObject("Wscript.Shell")
ws.run "wsl -d Ubuntu -u root service ssh start", vbhide

Solution 2 It's Task Scheduler

Click on Start and search for Task Scheduler.

On Task Scheduler  click on Action and select Create Basic Task

On Create Basic Task Fill out Name and Description "Auto Start SSH server"

On Trigger select: When the computer starts.

On Action select Start a program

On Start a Program type path: C:\Windows\System32\wsl.exe,
next on add Add arguments (optional): -d Ubuntu -u root service ssh start.

You should have something like this on the last step.


Fisrt, Install Ubuntu-tweak if you don't have yet

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

Using Version 0.7.3

Then go to Tweaks menu and choose Session Indicator and then under User Indicator you can Turn it Off

Using Ubuntu Tweak Version 0.6.2:

Then go to Tweaks menu and choose Session Control and then under User Menu Options you can uncheck Show user menu


How to trim the result of speedtest-cli to only output the download speed?

That's a job for awk:

speedtest-cli --simple | awk 'NR==2{print$2}'      # just the numeral
speedtest-cli --simple | awk 'NR==2{print$2" "$3}' # numeral and unit

Explanations

NR==2 – take line 2
{print$2} – print the second column (space-separated by default)
{print$2" "$3} – print the second column followed by a space and the third one

With sed it's a little more complicated:

speedtest-cli --simple | sed '/D/!d;s/.* \(.*\) .*/\1/' # just the numeral
speedtest-cli --simple | sed '/D/!d;s/[^ ]* \(.*\)/\1/' # numeral and unit

Explanations

/D/!d – search for lines containing D and don't (!) delete them, but every other line
s/A/B/ – substitute A with B
.* – take everything
[^ ]* – take everything that's not (^) a space
␣ (space character) – a literal space
\(…\) - take everything inside and save it as a group
\1 – get the content of group 1


You MUST go back to the partitioning menu and correct these errors, before you have a chance of resizing anything. You MUST.

Also, Anyone who attempts dual booting without reading https://en.wikipedia.org/wiki/Power-on_self-test , https://en.wikipedia.org/wiki/BIOS , https://en.wikipedia.org/wiki/Master_boot_record , https://en.wikipedia.org/wiki/GUID_Partition_Table , https://en.wikipedia.org/wiki/UEFI is doomed to confusion, hair loss, failure and frustration. Doomed, I say!


How do I enable the globalmenu / appmenu on Xfce or LXDE?

PPA method

Add the following ppa ppa:the-warl0ck-1989/xfce-appmenu-plugin

sudo apt-add-repository ppa:the-warl0ck-1989/xfce-appmenu-plugin

Install

sudo apt-get update && sudo apt-get install xfce4-appmenu-plugin indicator-appmenu appmenu-gtk appmenu-qt

Right-click on an empty part of the top XFCE panel and choose Panel > Add New Items > App Menu plugin

Manual method

Install the missing dependencies. In a terminal : sudo apt-get install indicator-appmenu appmenu-gtk appmenu-qt
Install the app menu : download this deb and open it with the software center
Enable app menu for firefox and thunderbird. In a terminal : sudo apt-get install appmenu-gtk3 firefox-globalmenu thunderbird-globalmenu
Right-click on an empty part of the top XFCE panel and choose Panel > Add New Items > App Menu plugin

Source


The error message indicates that you are missing a couple of required components.  One way to fix this would be to install Mnemosyne from the Ubuntu Software center, which will also install the required components.  Then you can try to use the tarball to update the software to the current version.


What is the difference between upgrading from 11.10 and updating from 12.04 beta 2?

I wouldn't say so. The beta MAY be able to be updated to the Final release by simply updating some packages, whereas 11.10 may need an official upgrade, by neither would really be more difficult than the other. I'd upgrade the version that has the programs you use the most.


How to define completely new xdg-user-dirs?

You can add the lines you suggested, but it won't have any effect. Software needs to be programmed to read those environment variables, and I doubt that Ubuntu One reads XDG_UBUNTUONE_DIR, or that Dropbox reads XDG_DROPBOX_DIR.

You can, however, specify icons for folders using Nautilus. This used to be a built-in feature of Nautilus, but for the newer versions, you have to install an add-on. See: Is there any tweak to bring back emblems in Nautilus?


How to sort files in GNOME Files by Extention or MIME Type?

MIME Type has been renamed to Detailed Type
Enabling Detailed Type will allow sorting at a more granular level:

Thank you to @DKBose in the comments for pointing this out.


virsh-install partitioning auto-lvm confirmation fails

The below block of syntax worked. Now I need to sort and diff to see wth was missing.

d-i partman-auto/choose_recipe select atomic
d-i partman/default_filesystem string xfs
d-i partman-auto/disk string /dev/vda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true


Install Ubuntu MATE on Latitude 5591 SSD

I found other answers that claim that the nvidia drivers don't properly support newer Dell laptops.

So, first I installed Ubuntu Mate 18.04.1 again, but I did NOT choose the checkbox to install third-party software and drivers.

That made the laptop bootable and would run well, but it would not shut down or restart.

The link I posted above also suggested a change to the grub config. So I added nouveau.modeset=0 to the GRUB_CMDLINE_LINUX_DEFAULT and did sudo update-grub.

Now the laptop starts, runs, and shuts down properly. I haven't found any side effects yet.

@oldfred: I'll use fwupdmgr to update firmware.

@AlexOnLlinux: Thanks for your reply too. A different distro would have been the next thing I tried. Though, (practically) EVERYTHING is based on Ubuntu any more...

Thanks!


How can I manage ppa if I only have terminal access through ssh?

You can edit /etc/apt/sources.list. Here is a comprehensive guide to it.


Diff between gnome gnome and installing gnome desktop environment?

If you start from a common base-point (ubuntu-minimal, or ubuntu-standard), then installing *-desktop package will provide you the same effect as installing the corresponding Ubuntu flavour directly. These packages are called metapackages. The community wiki has this to say:

  One of the handy features of apt (the packaging system used by Ubuntu)
  is the use of metapackages. These packages do not contain actual
  software, they simply depend on other packages to be installed. This
  setup allows entire sets of software to be installed by selecting only
  the appropriate metapackage. For example, an Ubuntu user can install
  the Kubuntu environment (KDE and all its associated programs) by
  selecting "kubuntu-desktop."

  ...

  Ubuntu System Metapackages

  edubuntu-desktop: This package depends on all of the packages in the edubuntu desktop system
  edubuntu-server: This package depends on all of the packages in the edubuntu server system
  kubuntu-desktop: Similar to ubuntu-desktop, but with KDE and related software instead of Gnome
  ubuntu-desktop: In addition to ubuntu-minimal and ubuntu-standard, this package depends on all of the packages in the
  Ubuntu desktop system. It installs a desktop environment (GNOME) and
  lots of software for home and office use.
  ubuntu-minimal: This package depends on all of the packages in the Ubuntu minimal system, that is a functional command-line system
  with the following capabilities: Boot, Detect hardware, Connect to a
  network, Install packages, and Perform basic diagnostics. It is also
  used to help ensure proper upgrades, so it is recommended that it not
  be removed.
  ubuntu-restricted-extras: Introduced in Feisty, this package depends on some commonly used packages in the Ubuntu multiverse
  repository. It installs support for java, flash, microsoft truetype
  fonts, and many multimedia codecs.
  ubuntu-standard: In addition to ubuntu-minimal, this package depends on all of the packages in the Ubuntu standard system. This set
  of packages provides a comfortable command-line Unix-like environment.
  xubuntu-desktop: The XFCE desktop environment, and all the software distributed with Xubuntu
  lubuntu-desktop: The LXDE desktop environment, and all the software distributed with Lubuntu

The page hasn't been updated in a while, so Ubuntu GNOME isn't mentioned. However, as can be seen from the descriptions of the other packages, they al include all the software that the corresponding flavour provides.

For Ubuntu GNOME, this includes the Ubuntu Software Centre, which is a recommended package (and by default, recommended packages are installed too).


11.04 to 11.10 upgrade aborted due to power cut, now Update Manager saying No internet Connection

I recommend that you repair your installation from a live CD or USB. Here's how:

Boot the live CD/USB.
Make sure you have an Internet connection in the live environment.
Set up a chroot environment. This means that you'll be in your system and able to make changes, but running within a working environment.

Open up a terminal window.
Mount your main partition. If you don't know its name, you can use GParted to find it. I'm assuming here that it's dev/sda1, but make sure you use the correct one!

sudo mount /dev/sda1 /mnt

Bind mount some other necessary stuff:

for i in /sys /proc /dev /run; do sudo mount --bind "$i" "/mnt$i"; done

Everything's set up. Now chroot in. When completed, you'll be in your install as root.

sudo chroot /mnt

Try to repair your install. If the first command fails, follow any instructions you're given. Failing that, try the second command.

apt-get install
aptitude install

If you still have problems, please edit your questions with the results of your efforts.
If things finished without errors, you should be good to go.

exit  # leave the chroot environment
sudo reboot


How to disable unwanted audio fade when using Steinberg UR22mk2 USB audio interface on (K)Ubuntu 17.04?

Some more digging shows that the unwanted 2 secs audio fade-in happens only with some applications, most notably the Kdenlive video editor (and also MLT/melt), but not others, such as VLC media player and (phew!) the indispensable Audacity audio editor.

Luckily, I've now found a setting that allows me to work with the Steinberg UR22mkII in Kdenlive without any annoying fade-in, see below (spoiler: use ALSA as the audio driver setting).

But first for details: audio in VLC just works fine, with its audio output module set to

automatic
pulseaudio
ALSA

Audacity only has "ALSA" and "OSS" anyway, but no PulseAudio. So the plot thickens.

In contrast, Kdenlive behaves either good or bad, depending on its audio driver settings (but the audio backend doesn't matter, regardless whether it's "SDL" or "RtAudio"):

automatic: fails with annoying 2s audio fade-in.
PulseAudio: fails also with 2s audio fade-in.
ALSA: finally works as expected without any unwanted 2s audio fade-in.

Maybe someone can shed some light in the comments on why PulseAudio behaves differently when used by some applications compared to other applications; could be different API calls, per chance?


Missing Applications in Ubuntu software center

I had the same problem so I tried to reinstall the ubuntu software center. I don't know why but it works.

First of all, unlock it from launcher, click the right button on it and you see that option.
Then open the terminal and type

sudo apt-get update && sudo apt-get upgrade

after that

sudo apt-get install software-center

If you use ubuntu 16.04 you could just type apt instead of apt-get.
And finally go to /usr/share/applications, find the new ubuntu software center and move it to the launcher.


What is hexdump command, and what does it do without parameters?

This is from man hexdump:

  The hexdump utility is a filter which displays the specified files, or the standard input, if no files are specified, in a user specified format.

In short, it transforms text from one format to another. Traditionally, hexdump is mostly used for debugging, especially programs that are using low-level libraries.

But now with unicode, I sometimes use it to get different values of characters or to transform lines or files.

Because it is a filter, you send text into it. An easy way to do this is with the pipe operator (|).

It outputs the text displayed as either ASCII, decimal, hex, or octal. You use format specifiers to determine the output. These are command options you put after the hexdump.

If you want to see the results on the command line you need to start off with echo.

So it's echo text-to-transform | hexdump options optional-format-specifiers

An example from the man page is:

echo hello | hexdump -v -e '/1 "%02X\n"'

which outputs the hex value of each letter.

This example may not seem useful but remember it's possible to recode entire files or dump contents of memory in a human readable form.

If you don't send input to hexdump, it keeps waiting and appears to do nothing. This is what would happen if you ran hexdump by itself. When you say it froze, did more than that happen?


VLC will sometimes have issues displaying video in fullscreen.

In Tools > Preferences > Video > Output change the Default to X11, save and restart vlc.


Phatch no longer in repositories, is there another safe location for ubuntu?

The packages are available in older LTS releases - 14.04 and 16.04 - see packages.ubuntu.com.
You need to get all necessary dependencies with:

cd ~/Downloads
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_3.1.2-0ubuntu1.3_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/p/phatch/phatch-cli_0.2.7.1-3.1_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/p/phatch/phatch_0.2.7.1-3.1_all.deb
sudo apt-get install ./python-imaging_3.1.2-0ubuntu1.1_all.deb ./phatch*.deb

And you will get it working:

$ phatch --version
Phatch 0.2.7


Cannot Choose Operating System After Reinstall

are you able to get into windows? if you can't get into windows  you should first fix that problem and i might be able to help you with that just let me know.

if you are able to boot into windows then we can focus on booting into Ubuntu. Either use a bootable USB or a DVD/CD with Ubuntu on it and boot from that. hit either the F2, F12, Esc or possibly another key depending on your computer when you first turn it on (it should tell show you on your screen on initial bootup which button to press). You can then choose to boot from USB or CD depending on what you have Ubuntu on. Then go into a live Ubuntu session and open a terminal and run these commands to operate boot-repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

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

once you have done that you can then run boot-repair in the terminal with this

boot-repair

click on the recommended repair button and hopefully that should work for you.

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


How can I save and copy a screenhot at the same time?

The -f is cancelled by the -c:

OPTIONS
   -c, --clipboard
          Send the grab directly to the clipboard.

   -f, --file=FILENAME
          Save screenshot directly to this file.

The file will be stored in memory, not on disk, when -c is used: if you open Libreoffice writer and paste you will see your image.

  How can I save and copy a screenshot at the same time?

edit1: bugreport #1446650 but nobody bothered to follow up on this.
edit2: I found a way around it by using xclip. Install with ...

sudo apt install xclip

and expand your command with a variable holding date and time and 2 commands:

DATE=`date '+%Y-%m-%d_%H:%M:%S'`
sleep 5 && gnome-screenshot -af $DATE && xclip -selection clipboard -t  image/png -i $DATE


Changing the form and arrangement of the workspaces

Viewports are always maxed out. You can choose columns and rows but they will then always line up to a total amount of viewports.

So 2x2, 3x2, 4,4 is all possible but you will never get a different number of viewports above than on the other rows below those 1st set of viewports.

The purple version will always result in 6 viewports (2x3).


Wifi drops and unable to reconnect RTL8821ae ubuntu 16.04

Try a Network-Manager CON bounce.
ex:

sudo nmcli con down <Wireless_Con_Name_NOT_ID>
sudo nmcli con up <Wireless_Con_Name_NOT_ID>

run "nmcli con" (no sudo needed) to get the connection name from the first column.

... I do this with my VPN on a Cron schedule and it works like a charm. Particularly because if my LAN connection is set to "always use VPN" in Network-Manager it doesn't work properly at all. So I've even got a startup script for the VPN to auto-start 10-seconds after reboot. Which solved all my headaches. It's a bug, and a known one with Network-Manager. It used to work, but recently I changed VPN providers and on reboot I'd be left without internet every time. In-fact, that might've been your problem if you are like me and have a need for an always on VPN on your machine. Do NOT use the "Always use VPN" feature and just delay the startup script to kick on the VPN. In fact, here's my rc.local script for it:

added to /etc/rc.local, before the exit:

# call VPN delayed startup script
sh -e /home/.apps/VPN-Delayed-Launch.sh

file contents in : /home/.apps/VPN-Delayed-Launch.sh:

#!/bin/sh -e
#Script to automatically connect to VPN
sleep 10; nmcli con up <VPN_Name_NOT_ID>


apt: relocation error: version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

I had the same problem caused by issues from PPA for Ubuntu toolchain. My computer would not boot because of it. Following @w00kie's comment on his answer, I downloaded (from tty terminal) the debian of package libstdc++6 for Xenial at link https://packages.ubuntu.com/xenial/libstdc++6 and installed using dpkg -i. The computer works just fine now.

Steps

wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
sudo dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb

# I also found this helpful
sudo apt-get -f install


Which package/program provides the Ctrl+Shift+U Unicode input utility?

The Ctrl+Shift+U is baked in the GTK+3 code.
More specifically from the GtkIMContext


How close button in ubuntu works on clicking?

There are two ways to see this.

First is the easy way:
It closes the window. If it's the last window or the main window of a program the program will be closed too.

Then in a longer sense of how does it works:
When you click your mouse the mouse will send a mouse down signal to your PC, the OS will catch it. Analyze the position of your mouse(in this case hovering over the X of a window) witch is dependent on the Software installed (Unity is drawing your X on a standard install of LTS Ubuntu) so it has a way of interacting with that software and ask what is under the mouse at point. The software will return with the message that it should close the window. Then the OS will transmit that to the program. After that the program should check it's OS messages, notice this close message and decide what to do. It will probably close the window, maybe close the program and maybe show something like a "save data?" or "close tabs?"-dialogue first.

This last part, where the message is transferred from the OS to the program is fully described here: https://www.x.org/releases/X11R7.6/doc/libX11/specs/libX11/libX11.html#Overview_of_the_X_Window_System


It depends on your coolant reservoir size, and if your fans are driven from coolant temperature, and how your coolant pump is driven, and what your power limit throttling is set to. But I would suggest, and with all due care, a much longer prime95 - torture test - test number 2 (hottest).
Here is an example with my i5-9600K and relatively small water cooled system. My coolant pump is always on at maximum, regardless. I always use turbostat, and I think it now works with many AMD processors:
doug@s18:~/temp-k-git/linux/tools/power/x86/turbostat$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt --interval 15
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt RAMWatt
0.00    4487    355     32      1.56    1.89  <<< system idle, before test
76.01   4132    17570   65      86.28   1.91  <<< test started, CPU temperaure ramps up at an extremely fast rate, a few hundred degrees per second. This is normal, as a differential is required in order for heat to actually flow.
99.58   4099    22644   62      104.96  1.91 <<< the power level 2 throttle has enaged, otherwsie CPU freq would be 4.6 GHz.
100.15  4078    22627   63      99.92   1.91 <<< the power level 1 throttle has engaged already, as I have a short time constant set for it.
100.13  4074    22785   63      99.92   1.91 <<< power level 1 limit is 100 watts.
100.12  4070    22601   64      99.93   1.89 <<< notice the CPU temp is steady,
100.11  4067    22599   65      99.93   1.89 <<< the coolant hasn't even begun to heat up yet.
100.11  4063    22599   65      99.92   1.89
100.10  4061    22702   66      99.92   1.89
100.10  4057    22600   66      99.92   1.89
100.10  4054    22599   66      99.92   1.89
100.10  4052    22733   67      99.92   1.89
100.09  4050    22611   67      99.92   1.89
100.09  4047    22600   66      99.92   1.89 <<< 3 minutes into it.
100.10  4045    22707   67      99.92   1.89
100.10  4042    22610   67      99.92   1.89
100.10  4040    22602   67      99.93   1.89
100.10  4040    22594   67      99.92   1.89
100.10  4040    22692   67      99.92   1.89
100.10  4039    22596   68      99.92   1.89
100.10  4038    22603   67      99.92   1.89
100.11  4036    22615   68      99.92   1.89
100.12  4030    22724   67      99.92   1.92
100.13  4028    22606   68      99.92   1.93
100.13  4028    22616   68      99.92   1.93
100.13  4027    22693   67      99.92   1.93
100.13  4027    22604   67      99.93   1.94
100.13  4027    22598   67      99.92   1.94 <<< coolant is starting to warm up.
100.13  4027    22681   67      99.92   1.94 <<< you will have to take my word for it,
100.14  4025    22616   68      99.92   1.90 <<< I do not have a coolant temp indicator.
100.14  4025    22607   67      99.92   1.90
100.14  4024    22603   67      99.92   1.90
100.11  4042    22755   68      99.92   1.91
100.09  4049    22604   69      99.91   1.91
100.09  4049    22612   68      99.92   1.91
100.09  4050    22709   68      99.91   1.91
100.09  4051    22603   68      99.92   1.93
100.09  4052    23389   68      99.92   1.93
100.09  4050    22614   68      99.91   1.93
100.09  4051    22796   68      99.92   1.93
100.09  4051    22612   68      99.92   1.93
100.09  4052    22608   68      99.92   1.93
100.10  4046    22750   67      99.92   1.95
100.15  4022    22616   68      99.93   2.03
100.15  4022    22624   68      99.92   2.03
100.15  4021    22723   67      99.92   2.06

Actually, don't take my word for it about coolant temperature. If I stop the test, we'll see what the processor package temp reads, compared to before the test:
doug@s18:~/temp-k-git/linux/tools/power/x86/turbostat$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt --interval 15
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt RAMWatt
100.10  4040    22710   67      99.97   1.90
100.10  4038    22605   68      99.92   1.90
37.10   4038    8672    40      38.10   1.89
0.00    4601    236     39      1.72    1.89  <<< coolant went up 8 maybe 7 degrees
0.01    4510    318     38      1.79    1.89
0.00    4601    213     38      1.87    1.89

Looking just by eye at your cooler verses mine, you have at least 2 times the coolant, and probably 3 times.


Partition is reported to be full, but I cannot "see" any culprit files

I don't know what is causing the behavior you're observing, but I can imagine how it is happening:

Due to the way Unix filesystem works, it is possible for an application to open a file, then unlink it (i.e. delete the file name entry from its parent directory) - the file handle still remains valid though there is no file name associated with it, and the application is still able to write to the file, because the handle is pointing to the inode, not to the filename.

Such a file exists until the application closes it. My understanding is that this is a common way to create a "private" temp file for an application.

To find such files, use

lsof +L

which will show you the number of links to each open file (NLINK column) - the unlinked files have 0 there. Here's how an unlinked file looks:

COMMAND     PID       USER   FD      TYPE             DEVICE SIZE/OFF NLINK       NODE NAME
...
mysqld     1126      mysql   11u      REG                8,1        0     0   33603687 /tmp/ibMlwWQA (deleted)


http://ubuntuforums.org/showthread.php?t=228309 indicates that it's possible via constructs such as ~n<package name> and this is confirmed by the user manual http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s02.html.

~n in ~n<package name> is a search pattern for matching package names. It's also possible to match other fields than packages' names, see http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s05.html#tableSearchTermQuickGuide.

Here's an example. Say that you want aptitude to show every package with "redshift" in its name, then you issue

aptitude show ~nredshift

It should be combinable with other aptitude options, such as install and remove, too, e.g. to remove all installed packages with openoffice in their name you issue

sudo aptitude -P remove ~nopenoffice

Make sure to use the -P option when using search patterns to force aptitude to display a prompt before downloading, installing or removing          packages (the search pattern might have many matches and you'll want to be prompted before carrying out an action).

One thing that I haven't worked out is how to get the exact functionality of wildcards, e.g. that openoffice* matches every string starting with "openoffice" (~nopenoffice matches any string containing "openoffice"). Maybe a workaround is possible, e.g. to search for installed packages with a certain string in their names and then feed aptitude with their names.


How can I run Windows phone in Ubuntu virtually?

I think your best bet is to create a Virtual Box VM with Windows 8 (or Win 10) on it and then install whichever version of Visual Studio you use these days to program Windows Phone.  I suspect, though, that you'll run into trouble trying to create the emulator within another Virtual Machine.


This can mean a corrupted filesystem. Boot the live CD and use it to check your root partition.
The root partition is the one that contains the Ubuntu.

For example you can check the filesystem on partition /dev/sda1 with:

  sudo fsck /dev/sda1

If you're not sure which partition to take, you can list them with:

  sudo fdisk -l /dev/sda

where sda is your first disk, sdb second, etc...


How to get a midi keyboard working in 13.10?

try this tutorial
http://ubuntuforums.org/showthread.php?t=1303306

i'm thinking you didn't make the connections in JACK and if so that is your problem but the steps on that tutorial should work and the tutorial uses hardware which is VERY similar to yours

** also check your midi connections. remember out on keyboard to in on the midi interface this is a very common problem midi should have been designed with differently shaped plugs on each end but such is life.


Sound from video is very low whereas mp3 file sound is good

I run into this sometimes, where certain media plays softer or louder than other media.  The simple fix I use is to open up the Sound Settings and set it to higher than 100% manually (you may have to click "Allow Louder than 100%" to do this, depending where you access the volume settings from).  I find that when I push the volume louder than 100%, videos that are otherwise too quiet can be heard much better.  If you do this simple fix, you may find that you'll have to turn it down again for your MP3's or it will get distorted/be too loud.

See below, I have where 100% is circled, and it's possible to go beyond it.


I am not sure what went wrong but I have cleaned the whole pidgin installation;

uninstalled pidgin
renamed all pidgin folders
reinstalled everything
added again yahoo account

This worked fine for me. I guess it is not the solution in Linux or Ubuntu. I hate to adopt a windows based solution but I was helpless.


permission problem while installing hadoop?

It seems like the hadoop user does not have the required permissions.

Try:
sudo chown -R hduser:hadoop /media/hadoop/linux/soft/hadoop-1.2.1

This command will make hduser (part of group hadoop) to be the owner of the directory /media/hadoop/linux/soft/hadoop-1.2.1. To do that recursively i.e. for all files and directories (and all files and directories within any directory), -R option is used.


This problem is only present at Ubuntu 16.04. In ubuntu 16.10 install steam:i386 package from Ubuntu's multiverse repository (the repository is enabled by default) and most problems have been fixed. To fix on Ubuntu 16.04:

Recommended solution:

If you just installed Steam then make sure steam is closed and go to ~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/ and delete the link libstdc++.so.6.

rm ~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6

That's it now it should start without problem. Let it do the update. After the update, if the message is the same (the file will be recreated after first update)then make sure steam is closed and do the same. Also if you have 64bits system go to ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/ and delete libstdc++.so.6.

rm ~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6

In some systems libstdc++.so.6 keeps getting recreated. If that's your case, then create the script steam.sh with executable permissions:

#!/bin/bash
export LD_PRELOAD='/usr/$LIB/libstdc++.so.6'
export DISPLAY=:0
steam

Then change at the steam desktop entry the Exec= line at the absolute path of the steam.sh script. Every time you want to play a game, open first steam with the modified desktop entry and then run the game from inside steam. Source: https://wirejungle.wordpress.com/2015/01/09/how-to-fix-broken-steam-linux-client-with-radeon-graphics-driver-workaround/


If any other remote user is logged in into your PC, or any software that runs using an another session, then Ubuntu will behave as you are telling its not an issue it actually prevents you to disconnect the remote user, but if you do shut down from power button then it will do force shut-down and disconnect the session from any other users.

before shutting down check whether any other session is still running.

by the following commands

  who

or

  w

and kill those session and try a normal shut-down.


MythTV frontend unable to connect to backend after Mythbuntu to Ubuntu 16.04 upgrade

Allowing mythfrontend on a remote machine to access mythbackend running on a second machine
If mythfrontend is not being run on the same machine as mythbackend, there is some additional configuration required to allow remote access to mythbackend.
Two separate issues related to MYSQL on the mythbackend host may be at work:
First, ensure that networking is enabled in the my.cnf file '/etc/mysql/my.cnf' on the mythbackend host machine. In this file, by default there exists either the following (depending on version) which prevents a remote mythfrontend from accessing the info on the database on the mythbackend host.
skip-networking

or
bind-address localhost

or
bind-address 127.0.0.1

Instead of skip-networking the default is now to listen only on localhost which is more compatible and is not less secure.
So a suggested solution is to change 'bind-address' to the machine's LAN IP address - although this will only work if the IP address is static and not dynamically assigned.
Note
If bind-address is used, it can only be configured to use 1 IP address.
#skip-networking

or
#bind-address localhost

or
#bind-address 127.0.0.1

or
bind-address 192.168.3.4

Note
No '#' on the final example
Second, it may be necessary to alter the privileges table for the MythTV database to allow the frontend to access the mythbackend (NB; The mythfrontend communicates with the mythbackend by logging on to its mysql database -- generally as the user mythtv. On some systems by default mysql will not allow a user on another machine to login. The following grants users with id mythtv from any machine access to the mythtv databases).
This can be done by executing the following from the command line on the mythbackend machine (thanks to Torfinn Ingolfsen, Norway for this).
Notes:
The 'passwd' in the command below should be the password listed in MythTV's configuration, which is also found in ~/.mythtv/mysql.txt
By default, the mysql database root user has no password, so this also should be changed by securing the default mysql accounts, refer to: http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html
mysql -u root -p mysql
mysql> grant all on mythconverg.* to 'mythtv'@'%' identified by 'passwd';
mysql> flush privileges;
mysql> exit;


How to recursively remove .svn metadata folders?

You will have to move to desire folder using cd command then write following command:

find -type d -name '.svn' -exec rm -rfv {} \;

This will remove the all svn files from current and sub-directories.


How do I "include the executable in $PATH"?

include the executable in $PATH

This tells you what you need to achieve.  Your $PATH is the list of directories that are searched for executable programs by the shell when you try to run a command. If an executable program is in $PATH then you can run it by typing its name.

  :

The colon is used in English to introduce something.  In this case it introduces the command that you need to type

  sudo cp generator /usr/local/bin

This is the command.  sudo means "run the command as the superuser" cp means "copy", usually where the following space-separated arguments are paths (locations in the file system) given in the order origin destination. generator is the name of a file in the current directory and /usr/local/bin is a system directory intended to contain executable programs. Most systems have /usr/local/bin in the default $PATH.


Although I've never tried it myself, the included OpenOffice/LibreOffice DRAW program claims to view and manipulate vector illustrations.


Discussed on IRC and in the end the problem was a combination of issues (as it often is).

The permission denied was on the flock file that is used to synchronize access to the local juju configuration for the user. That had previously had its ownership changed to root though an unneeded 'sudo'. That file can be found at $TMP/juju-store-lock*. The file can safely be removed as long as you know noone else is using juju on that machine. Actually there is one of these store-lock files for each user on the machine that is using juju. The suffix of the file is a hash of the path.

We need to do better at returning a more meaningful error message to lead the operator to discover the source of the problem themselves. But we have also landed a fix recently (2.4.1 timeframe) that detects if sudo is used when dealing with the lock file and it makes sure the ownership doesn't change.


Access to the blocked websites on Ubuntu Mobile

You can use openconnect to connect to VPN.
Open a terminal and enter the command
sudo openconnect url.of.vpn.provider

Then enter your username and password.
You need to keep the terminal open as long as you need to remain connected.


Multitouch gestures do not work on an Asus X555LA

You can install touchegg to get the multi-touch gestures working.

sudo apt-get install touchegg

For steps to configure it, you can refer to this.


Windows 10 UEFI Dual Boot Ubuntu (UEFI not supporting USB)

I believe that I can help you. First, you need to back up your files. This is always a good practice when partitioning. OK, the reason why you aren't able to download ubuntu yet is you only have unallocated space.

Go to ubuntu.com. You should see this menu on top.
Click on the downloads link. You should see this screenshot:
Click the Ubuntu Desktop link. Now you should see this:4 Fill out your options and then either select pay with paypal or Not now, take me to download.
After it is finished downloading, take a blank DVD and place in your computer. Set the menu up like this:
OK, now you can either drag and drop or copy and paste the download once it is finished to CD/DVD Creator. It should look like this:
Click on Write to disk. Now you should see this:

Choose Burn Contents

OK, once you are done doing this and live dvd has finished burning, place it back in your computer and reboot. Then, after it is there you want to select Try Ubuntu without installing.

2.1 Go to the dash. It is the white circle on the very top. Type in Gparted. Click on Gparted. You should see this screenshot:
2.2 Click partition and scroll to new. Since you have unallocated space, it will let you do this.

2.3 What you need to do is format the unallocated space. Click on Partition again and scroll down to format. You will need to make two partitions. The first one is where your hard drive will go, and it is called ext4. The second  one is called linux swap and will be much smaller.

2.4 Finally, you need to apply all of the changes that you made. Click on apply, it is a check-mark that looks like this:

2.5 Wait for gparted to do it's thing, you will know when it is done.

3.1 Now, reboot the computer. Put the live dvd back in.

3.2 Go back to Try Ubuntu without installing, and set up your internet connection.

3.3. Click on the install link and follow the instructions.


The SSH server is not installed by default.

Make sure that is installed first

sudo apt-get install openssh-server

If it still doesn't work check the following:

Can you ping the computer you're connecting to?
Are there any IPTables rules loaded?  (sudo iptables -L)
There may be an option on the wifi router to prevent clients from seeing each other. Called wireless client isolation.  Turn it off if enabled.


Is there a way to boot 2 or more linux operating systems at once?

Simultaneous operating systems require virtualization. No other solution available.


How to change GtkWidget background in GTK3?

GTK+ 1.2

  GtkRcStyle *rc_style;
  GdkColor color;

  color.red = 65535;
  color.green = 0;
  color.blue = 0;

  rc_style = gtk_rc_style_new();

  rc_style->bg[GTK_STATE_NORMAL] = color;

  rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_BG;

  gtk_widget_modify_style (widget, rc_style);

  gtk_rc_style_unref (rc_style);

GTK+ 2.24

Using the GDK Library:

GtkWidget *widget; //your widget

  GdkColor color;

  gdk_color_parse ("red", &color); //setting a color - you can also use RGB

  gtk_widget_modify_bg(widget, GTK_STATE_NORMAL, &color); //modifying the background color of the widget

Full reference about GdkColor can be found at GNOME'S Dev Documentation.

GTK 3.0

For gtk+3 you can use gtk_css_provider() .Full tutorials and examples can be found at the GTK+ Forums.


OBS Stubio 0.16.2 doesn't have a game capture source

This option exists on OBS for Windows but not on Linux while Nvidia doesn't want. Game capture option for OBS need Geforce Experience and that doesn't exists on Linux.


Cannot Upgrade to Ubuntu 14.04 from 12.10

It is not possible to upgrade from 12.10 to 14.04.  Instead you will need to upgrade to the versions in between, in turn.  This means you'll need to upgrade first to 13.04, then 13.10, then 14.04.

The available upgrade paths between Ubuntu versions can be described like this:

You can upgrade from any version to the immediate next version.
If you have an LTS version you can also elect to upgrade to the next LTS version, skipping the versions in between the LTS versions.

If you are on a non-LTS version (such as 12.10) your only upgrade path is to the immediate next version.  To reach subsequent versions you must do multiple upgrades.  Or you could do a fresh install.


Yes, it is possible. You can install Kwrite from the Ubuntu Software Center.


Trouble migrating ubuntu installation from an old PC into a less old Notebook - boot volume not detected

Press the Power button and press F10 key repeatedly to enter teh BIOS setup menu. (depending on different manufacturer, instead of F10, it's maybe ESC, F1, F2, F8...)
2) On the BIOS Setup screen, press F9 to select and load the BIOS Setup Default settings.
3) Press F10 to Save and Exit.
4) Use the arrow keys to select Yes, then press Enter when asked Exit Saving Changes?
5) Follow the prompts to restart your computer.


Does a upgrade from 11.10 to 12.04 updates a (manual) GRUB installation to GRUB2?

That depends on whether or not you removed the grub-pc package before, or just installed grub-legacy to the disk from another system ( like a rescue disk ).  If not, then it will be upgraded, and overwrite grub legacy.


Low graphics mode after upgrade to 12.04

I have recently experienced the same thing, I have Intel based graphics card.

I fixed  the following way:

Ctrl+Alt+F2 to go to a shell

sudo apt-get update
sudo apt-get -d install --reinstall gdm
sudo apt-get remove --purge gdm
sudo apt-get install gdm

Choose gdm when prompted.

Then do a shutdown -r now and voila.

Let me know if it fixed for ya.


Ubuntu 16.04.1 LTS Could not find any bluetooth device(while it is recognized)

You need to download Windows BT drivers from Huawei site

http://consumer.huawei.com/en/support/tablets/huawei_matebook_en-sup.htm

You will need to press "load more" a couple of times  to see it.

Then use this answer to convert and install the firmware.

The name of your .hcd file should be BCM4354A2-0a5c-6419.hcd.


I am new to ubuntu and have some questions way beyond a first timer

Linux has a multitude of ways to do each of these steps; this is just one way. Of course, it goes almost without saying that most of this is dangerous if done heedlessly. Use at your own risk as they say.

Step #1: Format Disk

This prepares the disk to be partitioned. This is only needed if you want to format an entire drive. Otherwise, skip to step 2 and just write a new partition over the old one.

Step #1a: Find the Recognized Disks and their Partitions

To list all drives use:

sudo fdisk -l /dev/sdb

Which only works when the drive is NOT mounted. To list the drives at any time use the longer:

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

A device name refers to the entire hard disk. Nowadays, nearly everything uses SCSI or Linux has an emulated serial interface driver for it. Meaning that they'll all be named sda, sdb, sdc, etc.. Each drive is given a letter designation in the order that they appear in the BIOS; this means that if you rearrange the drives in your BIOS they get moved and your mount points will likely all break.

The only common exception are RAM drives which use sr0, sr1, sr2, etc... These are enumerated more like partitions than drives. Being that they all exist on the same device they really are more like partitions. Drive tools like the ones you are using may list them as drives though; they are a special case though and you don't need to worry about it now.

If you are using an older Linux distribution (or just one which is very specific to a certain piece of hardware) you may also see hda, hdb, hdc, etc... These are the old non serial IDE drivers and for these purposes will work exactly the same a SCSI drivers.

Step #1B: Format the Disk:

This step will also erase ALL PARTITIONS on the disk so make sure that this is what you want to do before you do step 1b.

Now that you've found the disk you want to format, it is time to do it. Use this to format the disk:

sudo fdisk /dev/sdb

The basic fdisk commands you need are:

m - print help
p - print the partition table
n - create a new partition
d - delete a partition
q - quit without saving changes
w - write the new partition table and exit

Step#2 : Partition the disk using mkfs.ext3 command

As long as your disk is formatted, all you'll need to do is work with your partitions. Partitions are logical divisions on your disk. In case you're wondering, this will destroy everything on the partition.

To format Linux partitions using ext2fs on the new disk:

sudo mkfs.ext3 /dev/sdb1

Notice that when we work with specific partitions they have names ending with a number (eg /dev/sda1 instead of just /dev/sda). Each partition is given a sequential number based on which sector it begins at.

Step#3 : Mount the new disk using mount command

Mounting a disk allows the OS to use the disk (beyond simple partition and format operations). A mount point is a point on the system directory tree which you'd like to put the drive. This can be any folder but by convention it is usually a folder in the /mnt in Ubuntu (some distros will use /mount instead). Ubuntu has a directory called /media which confusses people a lot. /media is where the system will automount drives such as DVD or USB drives. Most people avoid mounting their own drives in this folder

First create a mount point /mnt/disk1 and use mount command to mount /dev/sdb1, enter:

sudo mkdir /mnt/disk1
sudo mount /dev/sdb1 /mnt/disk1
df -H

Step#4 : Update the File System Table:

If we want the disk to automatically be mounted when we boot we need to tell the OS as much. This is done in the fstab file. To open the /etc/fstab file, enter:

sudo vi /etc/fstab

Use whatever text editor you want for this (vi is just an example). Append to this file the mount information a line similar to the following:

/dev/sdb1               /mnt/disk1           ext3    defaults        1 2

Where /dev/sdb1 is the partition to mount, /mnt/disk1 is the folder to mount to, ext3 is the file system type, defaults are the mount options (see man mount), 1 is weather to back the drive up  using the system dump command and 2 is the order this drive should be scanned when the system does a file system error scan. Save and close the file.

As a note, the fstab file has a sister file called mtab. The mtab file contains a listing of all of the currently mounted file systems. You can look at it to see how everything currently mounted was mounted. Do not edit mtab directly though as it is used by the umount command to unmount these file systems later and editing this may break your ability to unmount a drive properly.

Optional Task: Label the partition

You can label the partition using e2label. For example, if you want to label the new partition /backup, enter:

sudo e2label /dev/sdb1 /backup

You can use label name instead of partition name to mount disk using /etc/fstab:

LABEL=/backup /disk1 ext3 defaults 1 2


You can install the server version and then when you finish install manually ubuntu-desktop package. The result will be almost the same as installing the default Ubuntu.


How does Ubuntu implements SELinux...?

selinux is not installed or enabled by default. We use apparmor by default. The Ubuntu wiki page for SELinux  even claims ...

  Warning

  The Ubuntu-specific "selinux" and "selinux-policy-ubuntu" packages documented here have not received much attention since Karmic, and appear to be effectively broken in Precise.

  If you wish to use SELinux in Ubuntu, the "selinux-basics" and "selinux-policy-default" packages from Debian are still being actively maintained. Documentation relevant to those packages can be found at http://wiki.debian.org/SELinux

but also contains instruction on how to install it:

  SELinux in Ubuntu

  SELinux can be enabled in Ubuntu by installing the "selinux"
  meta-package, which will make the needed changes to the system, and
  install the Tresys policies for Ubuntu:

sudo apt-get install selinux

  After installation, you will be prompted to reboot the system to label
  and activate SELinux.

But it might be smarter to install the debian packages manually...

  What are the packages(modules) involved?

packages related to selinux.
packages related to selinux-utils.
packages related to selinux-policy-ubuntu.


How to see folders and files from RAID file system through Ubuntu?

There are many howtos available that adresses your question.

I assume that you've been using software raid. In such case you should read about mdadm.

If your raid has been auto-mounted you'll see your raid partitions in /proc/mdstat:

cat /proc/mdstat

It should be something like /dev/md0

Then you can simply mount it with:

sudo mount /dev/md0 /mnt

An view your files in /mnt.

If you don't have any other RAID devices currently used you can scan your drives and assemble it:

mdadm --assemble --scan

In other cases it's better to first check wchid device is your old raid and assemble it manually via mdadm --create.

You can see examples of mdadm command at:

https://manpages.ubuntu.com/manpages/bionic/en/man8/mdadm.8.html#examples

There is also wiki at kernel.org available:

https://raid.wiki.kernel.org/index.php/A_guide_to_mdadm#Cookbook


Windows programs that need access to hardware

This type of Windows-based software does not function with system hardware in either of the methods that would typically be used to run the Windows software - Virtualized Windows, or WINE.  This is due to the limitations inherent to each method of software runtimes, and unfortunately is not able to be solved in any safe/secure/sane way.

Virtualized Windows: It won't work for this type of hardware/software integration.

Keyboard backlights are at the system hardware level.  VMs do not have the ability to have that level of inter-connectivity with the host hardware directly to interact with this hardware.  This rules out using a VM to achieve this.

WINE: This won't work either due to system/hardware control/access restrictions/permissions inherent to user-space (and not admin/system service level) runtime that Wine uses

At the same time, Wine does not have the exposure nor access to hardware resources and modification calls on the access level it needs on the host  to handle this type of hardware interoperability.  This is because, in a nutshell, accessing the hardware calls is (a) outside the scope of Wine's development, and (b) unable to really be done without running Wine under superuser, which Wine is actively programmed to disallow in recent versions.

So unless Lenovo publishes an Ubuntu version of the software, it is unlikely you will be able to get this software (and therefore the keyboard backlight) working, which will impact the ability for your keyboard to use its backlight.  (This being said, there should be a way to have the backlight 'always on' or 'always off', so you might find something like that you can configure from the Windows side to set the default permissions/configuration to have the backlight).

The other possibility is that someone somewhere reverse-engineered a solution that does much of the same.  However, this is outside the scope of the original question ("Is there any way you can run a program inside a VM that could access the hardware of the host system itself"), and therefore outside the scope of this answer (you're free to search for such a reverse-engineered solution yourself).


Lubuntu 16.04.3 - How to remove old kernels safely

sudo apt autoremove

The man (manual) page states autoremove

       autoremove is used to remove packages that were automatically
       installed to satisfy dependencies for other packages and are now no
       longer needed.

which includes old kernels.


Provide driver on removable media during installation?

If you're using the desktop CD installer, you can load additional drivers programmatically by  following the instructions here.

If you're using the alternate CD installer, you can accomplish this by creating a driver injection disk.  First create a USB disk with a label of OEMDRV, then put a Debian package on it containing your kernel module.  Finally, preseed driver-injection-disk/load to true and start the install.

The definitive reference for this format is the hw-detect code, bzr branch lp:hw-detect , specifically driver-injection-disk.sh

Alternatively, if you want a quick and dirty solution and assuming this is a disk driver, put the kernel module in one of the following directories:

/lib/modules/*/kernel/drivers/ide
/lib/modules/*/kernel/drivers/scsi
/lib/modules/*/kernel/drivers/block


Closing the lid doesn't suspend the laptop in Xubuntu but it does in Ubuntu 12.04

am so dump !! the problem was in the settings ! I changed it from "Do nothing" to "Suspend" in the "closing the lid" box.

and everything is working fine now !


Ubuntu 12.04 Keyring broken "signature not found in user keyring perhaps try the

This happened to me tonight. It happens when you change your user password, but not your encryption passphrase. They are usually in sync.

To fix this, simply run:

ecryptfs-rewrap-passphrase /home/.ecryptfs/$USER/.ecryptfs/wrapped-passphrase

It will prompt you for your old passphrase, then allow you to enter a new one. Then, you will be able to log in normally.


I am not able to copy the downloaded windows istaller

Will you please check the .trash folder in your external hard drive. Pressing CTRL+h shows all hidden folders in your hard drive.

I also got the same problem once, there was lots of items in the .trash folder of my external hard drive.

Hope this helps.


apt- Error installing Deepin Desktop Environment in Ubuntu 14.04

I suggest you, if you want to get a "Material" desktop, to use Paper GTK theme. I know it's Beta but I love it anyway.
There's a link with a step-by-step:
http://linux.softpedia.com/blog/Beautiful-New-Paper-Theme-Made-for-GNOME-and-GTK3-467854.shtml

If you want another icons search on the internet, or you can install the deepin icons with those repos you have, maybe on the terminal:

sudo apt-get install deepin-icon-theme

A package manager should work too, searching for the "deepin" software.

Hope it helps you.


Where can I download Nemo FM without cinnamon deps for Ubuntu 16.04?

You may try this "Nemo 3 file manager for Ubuntu" PPA by “WebUpd8” team. According to the PPA description:

  Nemo file manager patched for Unity (with no Cinnamon dependencies except cinnamon-l10n for translations). Only use this PPA in Ubuntu. Don't use it in Linux Mint or if you use Cinnamon!

(emphasis mine)

You may add this PPA by running

sudo add-apt-repository ppa:webupd8team/nemo3

or browse for packages here.


Broken packages error when installing libdvd-pkg

Try

sudo apt-get -f install

And if it doesn't work, install synaptic and try to repair the broken packages with it.


From poking around I read that processes that are waiting for I/O are in limbo and unresponsive and in the event the driver actually loses contact with the GPU it is has moved into hell.

I thought there was some hope as there was an "R" in the stats column but if nvidia-smi says "cant find device please reboot" then not much can be done.  OTOH, in windows I occasionally see a glitch on the screen and if I look in the event log I see nvkernreset or some such message so different OS'es handle problems differently.


Where to set account tracking in cups printing

File to change is /etc/cups/ppd/{your_printer_id}.ppd. You need to find or add these 3 lines in the section (sharp is a name I made up for this example):

*cupsFilter: "application/vnd.cups-raw 0 sharp1"
*cupsFilter: "application/vnd.cups-command 0 commandtops"
*cupsFilter: "application/vnd.cups-postscript 0 sharp1"

Then create a file (name of the file needs to match the name in the previous file)...

/etc/cups/ppd/{your_printer_id}.conf

and put these lines in it:

ACCOUNTNUMBER="{account_number}"

, replacing {account_number} with your actual account number. According to Sharp documentation, this number is alway 5 digits in length, prepending with zeros, if necessary. Next you need a filter that has the same name as you used above:

 /usr/lib/cups/filter/sharp1

and put this in it:

#!/bin/bash

source /etc/cups/ppd/${PRINTER}.conf

echo -en "\033%-12345X"
echo -en "@PJL SET ACCOUNTNUMBER = \"${ACCOUNTNUMBER}\"\015\012"`

cat -

echo -en "\004\033%-12345X\015\012@PJL EOJ\015\012"
echo -en "\033%-12345X"

This file needs to be executable (sudo chmod +x /usr/lib/cups/filter/sharp1) Now for the tricky part: above code might need to be tweaked for your printer.

I used this source to instruct a client to get this working.

The cupsFilter I see here in a random /etc/cups/ppd/*.ppd:

*NickName:      "Generic PDF file generator"
*1284DeviceID:  "MFG:Generic;MDL:PDF file generator;DES:Generic PDF file generator;CLS:PRINTE
R;CMD:POSTSCRIPT;"
*% cupsFilter:    "application/vnd.cups-postscript 0 pstitleiconv"
*PSVersion:     "(2017.000) 0"
*LanguageLevel: "2"
*ColorDevice:   True
*DefaultColorSpace: RGB
*FileSystem:    False


So you're trying to preserve the head of the PS command (so you can see the headers) but only show vlc commands.

I'd personally just use awk and filter based on two conditions, the line number and the VLC. If either are true, we output the line:

$ ps aux | awk 'NR==1 || $11~/vlc/'
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
oli       4833  0.6  0.2 795220 62952 ?        Sl   15:37   0:00 /usr/bin/vlc

It has the added advantage that you're only running ps once. And because field 11 is the main command (not any of its arguments), we won't capture the awk command being run either. We just get VLC and the column headers.

On a sidebar, something like this should work... but doesn't...

ps aux | tee >(head -1 >&2) | grep vlc

You were close, you needed to pipe into the last command or tee will sploodge over STDOUT, and if you output to STDOUT and then pipe, chances are it'll be caught up in the latter grep. In the above I output the headers into STDERR (2) to stop grep interfering with it. Bit hacky but hey-ho.

But yes, this still doesn't work. The reason is that head closes STDOUT, which filters back to tee and arrests the grep. This is by design so head doesn't process more input than it needs to. You can simulate what it's doing with awk:

$ ps aux | tee >(awk 'NR==1 {print;exit}' >&2) | grep "grep"
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

This is equivalent to head -1. It finds the first line and then exits. This kills off the input buffer, and tee flips out.

Here's a version where awk doesn't quit after it finds the first line. It'll keep running (good thing or not) over every line:

$ ps aux | tee >(awk 'NR==1' >&2) | grep "grep"
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
oli      15103  0.0  0.0  11752  2236 pts/18   S+   11:32   0:00 grep --color=auto grep

Another alternative is sending the input into sponge. Sponge soaks up the whole input stream before writing it to a file (or being redirected). This stops head killing off the parent stream but it does mean the input will be reversed (the grep will output first) so we'll push that through a sponge instance too:

$ ps aux | tee >(sponge >(head -1 >&2)) | sponge >(grep "grep")
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
oli      14875  0.0  0.0  11752  2192 pts/18   S    11:19   0:00 grep --color=auto grep

But while these second two both work, and you're only generating ps aux output once, they still both have serious issues. The awk|grep is processing everything twice and the sponge orgy is buffering everything twice.

tl;dr: If you can process it all in one command like you can with awk, why wouldn't you?


Message 'E:dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.'

You referred a wrong link. Try the below commands on terminal to remove all the files inside /var/lib/dpkg/updates directory ,

cd /var/lib/dpkg/updates
sudo rm *

And then run the below command to get newer ones,

sudo apt-get update


When trying to install CrossOver deb I get "Error: Dependency is not satisfiable libpng12-0"

The proposed solution described above didn't work for me on Ubuntu 19.04 with Cisco PacketTracer 7.2.2:

./PacketTracer7: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by ./libQt5WebKit.so.5)
./PacketTracer7: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by ./libQt5Gui.so.5)

What did work for me was:

download the libpng12-0_1.2.54-1ubuntu1.1_amd64.deb package
manually extract it: dpkg -x libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng
copy the library to the PacketTracer bin directory like so: cp libpng12/lib/x86_64-linux-gnu/libpng12.so.0.54.0 /opt/pt/bin
create a symlink: ln -s /opt/pt/bin/libpng12.so.0.54.0 /opt/pt/bin/libpng12.so.0
PROFIT

Not sure why Cisco provides all the required libs in the /opt/pt/bin like Qt and such, but somehow 'forgot' to include the older libpng12 lib...


The inconsistency is because you're using the Linux Logical Volume Manager (LVM). GParted can't read "inside" an LVM partition, so it's feeding you misleading information. You don't say why you want to resize your storage space, so I can't be sure how you should do the job. There are two broad possibilities:

Using the space within Ubuntu -- If you want to juggle files around for use within Ubuntu (or even another Linux distribution), then you just need to shrink your current logical volume and create a new one, as described in this question and answers.
Using the space outside of Ubuntu -- If you want to clear room for installing another OS or to use the space from another OS that's installed to another disk, then the task is harder, since you must shrink not just the logical volume within the LVM, but also the physical volume (partition) that holds the LVM, as described in this question and answers.

More broadly speaking, you may want to consult this wiki page on LVM, which presents background information that you may find helpful.


Download a list of files with wget using wildcards

for the list of files for a web page for Firefox there is a Firefox extension Linkgopher  that will give you a page with links, then you can save that to a text file. It accepts a filter.
https://sites.google.com/site/linkgopher/

as you know wget can take a text file as input

this is mine, <> means your input or delete that parameter, edit: those braces didnt show up, so if there is no paramater given, put one in or delete it.

wget --input-file= --show-progress --limit-rate=200K --random-wait --no-directories --continue --rejected-log=  --output-file= --directory-prefix= --user= --password=


There is a universal JAR file for minecraft avaliable for download, so you wouldnt have to use WINE. I think you would have to right click on it and open it with the JRE you have downloaded.

Universal JAR file download link: http://www.minecraft.net/download

EDIT: I do not know what may have caused that, maybe something went wrong with WINE


"Unable to locate mail spool file." when using Thunderbird and Gmail

Just go to the file browser and type CTRL+H to see the hidden files and then delete the .thunderbird folder. Thunderbird should open right this time, but you need to configure your aaccount again. Hope it help you


ssh login with public key stopped work in Ubuntu 16.04.4

I had a similar problem today -- been using Windows, Putty and Pageant to auto login to my Ubuntu 14.04 server for years. But when I upgraded to Ubuntu 18.04, it stopped working.

Checking /var/log/auth.log, I found the following error:

sshd[30093]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]

Googling that error message led me to the fix on this site: http://asystemengineersnotebook.blogspot.com/2017/09/fixing-key-type-ssh-dss-not-in.html

  The fix for this is adding the following line /etc/ssh/sshd_config file and restarting the ssh service:

  PubkeyAcceptedKeyTypes=+ssh-dss

This solved my problem.


you must update repository after adding the repository lines to /etc/apt/sources.list.

apt-get update
apt-get upgrade

then install kamailio

apt-get install kamailio kamailio-mysql-modules kamailio-tls-modules


Finnished copying files to usb but its still copying even though it finnished copying

The memory hardware can be very slow in USB pendrives (even if there is a USB 3 interface). This link and links from it can help you find fast USB 3 pendrives.

After a number of write operations many USB pendrives will get slow. They can be restored to almost the original speed, if you overwrite the whole drive with zeros according to this link.

When the user interface indicates that the copying has finished, data may still be in a buffer in RAM, and it may take long to finish flushing the buffer.

You can run the command sync in a terminal window. When sync finishes, the window will return to prompt, and it should be OK to unmount/eject the drive and after that you can unplug it without risk.

If you suspect that there is some error, and that the copying/writing process has stopped, you can use iotop. Install it with

sudo apt install iotop

and run it in a terminal window with

sudo iotop -o

and you will see how much is read and written, and which programs/processes are responsible for it.


Telegram system tray icon appears black in Kubuntu 20.04

I've found easy solution.
Icon that displays in tray has extension .svg, so it is easy to fix icons, as you want.

Open any file manager (I use double commander)
Perform search files by regular expression with string telegram.*svg
You shouls receive near 15 results:

Group of telegram-attention-panel.svg - 4 items,
Group of telegram-mute-panel.svg - 4 items,
Group of telegram-panel.svg - 4 items
and single file telegram.svg
File telegram.svg contains classic icon with blue background and white airplane, so I use it for fix. Open telegram.svg in any text redactor, copy whole content and paste it in all files telegram-panel.svg (instead of original content of these files).
After this manipulations you will have nice icon in tray in every global theme.


Simple way to connect MacBook Pro laptop to an external display in Ubuntu 12.04

After hooking up the cables, go to displays (Settings--> Displays). There, you can set up the monitor. There, shut off the built-in display of the MacBook and clicking on the VGA display and enabling it. You can set up the settings (like the resolution) of the monitor also.


Is it possible to install qt4 without installing qt4-doc?

You can configure apt not to install the recommended packages by the --no-install-recommends flag.

And of course you don't need to install qt4-doc and qt4-demos just to develop. So the command would be:

sudo apt-get install --no-install-recommends qt4-designer qt4-dev-tools libqt4-dev


Unity or Unity2D, which will be fastest on a high spec computer?

Unity2D will.

Its lighter on resources.
Even tough Unity3D uses 3D acceleration for the effects, all the rest is CPU intensive, meaning there is nothing that the 3D symbolizes that actually uses your card to process except the effects. Opening applications, opening the launcher and the Dash are still CPU processed.

In the end, if your graphics card supports it, both are very snappy, but if you are worried about the effect of the looks each option brings Unity2D will be faster and you will not notice the effects of the composed desktop in your media applications (ie: movie watching, online videos, 3D games, etc).


lubuntu 11.10 won't let me change desktop to LXDE. Auto login, so no login screen

You should still be able to log out and log in again with whatever desktop you like.

In any case, you should also be able to choose Login Screen from the Administration menu (under System) and change the autologin process to match what you think it should be. I recommend turning off autologin.

From the Login Screen Settings window, you can also select whatever session you want: you could select LXDE from here to make an autologin into LXDE permanent; I'd recommend just turning off autologin instead.


Ubuntu One: Client for 10.10 has no "Cloud Folders" tab

I answered the following similar question for Maverick & Ubuntu-one a little while ago:

ubuntuone-control-panel-gtk : Depends: ubuntuone-installer but it is not installable

To summarise, the functionality you require is only available in the latest versions of the ubuntuone software.  The unstable nightly ubuntuone failed to build for maverick at that time.

Looking at the latest situation today, the maverick PPA has now been removed - most probably because maverick is no longer supported.

As such - you will be unlikely to have the functionality in maverick without upgrading.