How to fix Bang and Olufsen Audio for HP laptops?

Two years later it is possible!
There is a new answer with a comment confirming it works. The link is included so people are apprised of updates to this issue.

Original answer
This is no longer true but left her for posterity purposes.
It doesn't seem possible
I looked on HP website and found this:

How to install Bang and Olufsen Audio drivers on Ubuntu 16.04

The so-called "HP Expert" there said it's like trying to put a jet engine in a car and make it fly like an AirBus A380. So not very promising. He did reference another question here in Ask Ubuntu:

How to install Bang and Olufsen Audio drivers for HP laptop?

...however that has no answers either.
Do a little more digging
I did a little more digging and found this bug report:

HP Spectre x360 (Kabylake) just front speakers work

There are 91 comments posted from November 29, 2016 up to yesterday (August 12, 2017). There are various band-aid approaches people have tried. I suggest you subscribe to the bug report and keep abreast of bug fixes / work arounds.
Like your system there are two front speakers powered from motherboard and two back speakers powered by separate amplifier.
The most successful band-aid to date requires installing a windows update and rebooting into Linux. This "tricks" the amplifier to being powered on. After rebooting into Linux poking in some register configuration values is required. You can read all about it in the 91 comments but I just wanted to summarize it for you.
Hopefully someone will reverse-engineer the Windows driver for Bang & Olufsen and create one for Linux. It doesn't appear HP is willing to do it.


How do I find out why I get anytime the same error message from an original Ubuntu script?

I think the problem is that the script looks for Mem and Swap, whereas your localization produces Speicher and Auslagerungsdatei. Just add an LC_ALL=C before the frees in the script:

export LC_ALL=C
mem=$(free  | awk '/Mem:/ {print $4}')
swap=$(free | awk '/Swap:/ {print $3}')

Or:

mem=$(LC_ALL=C free  | awk '/Mem:/ {print $4}')
swap=$(LC_ALL=C free | awk '/Swap:/ {print $3}')


That looks like your computer is trying to send a network discovery packet looking for Canon network enabled printers. Here is what makes me think that:

A UDP packet is being sent to broadcast, so it is some form of network discovery.
The destination port (DPT) is 8612, which is associated with Canon network printers. (see the IANA entry for this port)


I can't see all my Facebook friends in the Empathy Chat

May be your current version of empathy chat is not completely compatible with UBUNTU 13.04

Try downloading a newer version of Empathy chat from the Ubuntu software center...

Hope this helps....

Feel free to comment for queries.


USB Mouse sleeping after 5 seconds when on battery

To solve this problem on 12.04 and continue using laptop-mode-tools
edit the file:

/etc/laptop-mode/conf.d/usb-autosuspend.conf

$ sudo gedit /etc/laptop-mode/conf.d/usb-autosuspend.conf

And look for the line:

AUTOSUSPEND_USBTYPE_BLACKLIST=""

Replace with:

AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid usb-storage"

This will automatically disable USB autosuspend if you have ANY mouse and even USB drives plugged in.


As Pilot6 said

  Maybe some kernel update broke it.

I had installed 4.19 and 5 versions because I couldn't get my touchpad working (It still did not work)
It seems it broke nvidia driver too. after purging the kernel upgrades and reverting back to 4.15, the options came back.


GPG confirmation form at LaunchPad fails to add key

LaunchPad has finally validated the key. While I am not sure this was the cause, I deleted a forgotten key from an older system in the meantime.
First check existing keys:
$ gpg --list-keys
 /home/duque004/.gnupg/pubring.kbx
 ---------------------------------
 pub   rsa3072 2018-04-06 [SC] [expires: 2020-04-06]
       XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 uid           [ultimate] Luís de Sousa <luis@mail.com>
 sub   rsa3072 2018-04-06 [E] [expires: 2020-04-06]

 sub   rsa4096 2020-07-06 [SC]
       YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
 uid           [ultimate] Luís de Sousa <luis@mail.com>
 sub   rsa4096 2020-07-06 [E]

Then delete the secret key:
gpg --delete-secret-keys XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Finally, remove the public key:
gpg --delete-key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


What do I need to add to this desktop file to start in a specific virtual desktop?

The Key, Value pairs that I was looking for did not supply the answer, I had to install the auto move windows extension and then configure the applications I wanted to automatically move to different desktops. This method only works on applications installed by get-apt, it does not work on multiple gnome-terminal sessions.

As described at http://www.webupd8.org/2011/09/gnome-shell-make-applications-start-on.html, the solution is to install the auto move extension and then use tweek tool to modify some settings. To install the gnome sell auto move extension:
sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update

For Ubuntu 11:10:

sudo apt-get install gnome-shell-extensions-auto-move-windows

For Ubuntu 12:04 or later

sudo apt-get install gnome-shell-extensions

Once the auto move shell extension is install start tweek tool and select Extensions
Screen shot of tweek tool with Extensions selected

Then select the settings gear on Auto move windows. This provides a dialog where you can add applications and then specify the desktop you want to use as shown below.

screen shot of the Auto move windows dialog allowing you to move applications to another desktop.

You can also use the dconf editor to select the default desktop.


Ubuntu as router; redirect traffic from 1 client (LAN) to VPN

I was looking for the exact same setup. I realize this is a late response but perhaps someone else can benefit from it.

Note: My VPN connection is of type PPP and shows up as the interface ppp0 under ifconfig.

TV:
Configure the TV's network settings to use your machine's IP as default gateway.

Ubuntu:
Setup IP forwarding and NAT as follows on your machine:

sudo echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i ppp0 -o eth0 -j ACCEPT

I found the following two articles helpful:

http://www.revsys.com/writings/quicktips/nat.html
http://www.karlrupp.net/en/computer/nat_tutorial

From the little reading I've done, I believe the commands above to do the following:

Enable IP forwarding in the kernel
Instruct the network stack to rewrite the sender address (masquerade) to its own for packages leaving via the ppp0 interface by appending a rule that sets the POSTROUTING chain target of the NAT table to MASQUERADE.
Allow packages from eth0 to be routed through ppp0 for certain connection states by setting the FORWARD chain target of the (default) FILTER table to ACCEPT.
Allow response packages in all states.


I can not open my Main ( administrative ) account with my used password

Open your terminal on your "non-protected" user. Then type this:

sudo su
passwd (your user)

After that change your password (or type your old password). After that try to login with your new password. Hope that it solved your problem.


Change default archive decompression action for archives

Well, should have looked deeper before asking. It can be changed under Preferences > Behaviour.

I'll let this up for anyone who made the same lazy mistake.


unable to upgrade or download from ubuntu software center or appgrid

I had the same problem and this solution worked for me:
http://www.ubuntu-es.org/node/184249#.V1K85kqLRNw

sudo su
mv  /var/lib/dpkg/status  /var/lib/dpkg/status-bad
cp /var/lib/dpkg/status-old  /var/lib/dpkg/status
mv /var/lib/dpkg/available  /var/lib/dpkg/available-bad
cp /var/lib/dpkg/available-old  /var/lib/dpkg/available
rm -rf /var/lib/dpkg/updates/*
rm -rf /var/lib/apt/lists/*
mkdir /var/lib/apt/lists/partial
rm /var/cache/apt/*.bin
apt-get clean
apt-get autoremove
apt-get update
dpkg --configure -a
apt-get install -f

Hope it works also for you.


Nautilus (Gnome Files) won't open any files when used as default file manager on Xubuntu

See:

https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1778069

In the post #11 we will see this:

  I had to remove the following entries from
  ~/.local/share/applications/mimeapps.list,
  in the "[Added Associations]" section:

  x-scheme-handler/http=exo-web-browser.desktop
  x-scheme-handler/https=exo-web-browser.desktop
  x-scheme-handler/file=exo-file-manager.desktop
  x-scheme-handler/trash=exo-file-manager.desktop
  x-scheme-handler/mailto=exo-mail-reader.desktop;

It solved the problem for me.

Update:

As per #8 at the link these paths need to be checked as well: /usr/share/xubuntu/applications/defaults.list and ~/.config/mimeapps.list


Wow, that answer is crazy overcomplicated.  All you need to do is follow the simple instructions on minecraft.net: download Minecraft.jar, and run it with java -jar Minecraft.jar.  If you don't already have java installed, then install it with sudo apt-get install openjdk-7-jre


mv: cannot stat 'wordpress/': No such file or directory

After you ran your FIRST mv wordpress/* /var/www/html/ command (which moved all the files, directories and other filesystem objects in the wordpress directory to /var/www/html/) there was nothing left in wordpress for your subsequent commands to mv.

Also, please learn how to format code with the {} tool - it makes fixed-width computer text easier to read.


How do I turn on a login page for Bugzilla?

There is a setting in Administration -> Parameters -> User Authentication called "requirelogin" set this to "On"


From the comments and chat...

After trying a number of things that didn't fix the problem, we updated the BIOS from 1.04 to 1.60, and kernel 5.0.4 now boots fine!


USB-connected Laser printer (has linux drivers) for printing from Linux and remote systems (Windows and Mobile)?

I understand that once I install the driver and print server (CUPS) on my Ubuntu 20.04 system, this system shall become a printer server. Local and remote clients (other Linux systems) should be able to print to this. Is that right ?

Basically - yes. The print server will advertise print queues it has available via DNS-SD. Macs and Androids should discover and show these queues. Dunno about Windows, but I think it can deal with DNS-SD.


I have used boot-repair package to fix this. The grub always goes to the latest installed ubuntu. Put the usb in. Boot. install boot-repair. ---
https://ubuntuhandbook.org/index.php/2016/11/install-boot-repair-ppa-fix-boot-problems/  - It may be possible to boot the Ubuntu from a bios menu
as ChanganAuto says. But the grub might not update anymore.


I switch my router to from mixed to bg-mixed and it seems to be okay again. Not really know what all the WiFi modes mean but it seems to work.


I made new login names when i upgraded now I can't see files on external drive

Hmmm, not being able to see some files seems kind of weird. You may need to change ownership of everything (as long as these are just files from your /home folder and not important ones that depend on their ownership like /etc files) To do a recursive change of ownership I believe
 find /path/to/external -exec chown Admin:Admin {} \;
Change the /path/to/external to the path to the external drive, and Admin to the exact username you want to have access to the files.

The syntax for find can be funny like the escaped colon and the brackets, but it should work. Find just lists all files and folders if not given a specific -name to look for, the -exec flag tells find you want to run some other shell command and pass through one at a time the files it finds, the {} is the place holder where each file name will be passed and then the command will be run. You may need a sudo or two in there.

Also have you tried to sudo su root and look around like that? Though this is from the command line not from the gui.


Black dashes when scrolling on webpages. Firefox 13.10

You're probably using an Intel graphics chip. The current driver has a bug causing exactly that. It has been fixed in the development version.

As a workaround until the fix is live, it was suggested that disabling Smooth scrolling in Firefox helps with the issue.


Problem with creating Python 3.6 virtual environment on Ubuntu 20.04

Ubuntu 20.04 ships with default Python 3.8. So first you will need to install Python 3.6.

Install python 3.6:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6

If the virtualenv package is not installed, run:
apt-get update
apt-get install python3-virtualenv

Create a virtual environment:
virtualenv -p /usr/bin/python3.6 venv


How to repair bootloader Ubuntu16.04LTS manually?

You will want to log into a live usb installation, mount your old install, chroot into the mount, and run 'grub-install /dev/sdX' (most likely sda, could be different depending on which device is your hard drive)

https://help.ubuntu.com/community/Grub2/Installing


Chrome HTML5 Video Out of Sync With Audio

Actually, I found this answer myself snooping around at a later date, shortly before I switched to Arch Linux.

In pavucontrol, you can head to your output device in question and select the "advanced" dropdown. There's an option labeled "Latency Offset".

For some reason, mine was set to 1000.00. Simply set it to 0.00 and the problem goes away.


scanner.py should be in the same directory as decoder.py, both in /usr/lib/python3.4/json/.

As it's hard to find out why the file got deleted/moved I'd suggest to reinstall libpython3.4-stdlib:

sudo apt-get install --reinstall libpython3.4-stdlib


PHPMyAdmin logs in automatically in Windows 10 but not in Ubuntu desktop 15.10

Preface

I've had this before.

I take it you know the risks of enabling passwordless root login to the database; also in order for this to work you'll have to store root's password in a file in plain text. If you have a sane configuration no webserver user will be able to read the file, but the file by default is readable by everyone in the system. Keep that in mind.

Solution

Edit /etc/phpmyadmin/config.inc.php with whatever editor as root; there will be two /* Authentication type */ lines each followed by a //$cfg['Servers'][$i]['auth_type'] = 'cookie'; line; you'll have to edit one of the two //$cfg['Servers'][$i]['auth_type'] = 'cookie'; according to how you installed PHPMyAdmin:

If you configured PHPMyAdmin with dbconfig-common, pick the first one (the one inside the if (!empty($dbname)) {} block);
If you didn't configure PHPMyAdmin with dbconfig-common, pick the second one (the one outside any block);

Replace the approriate line with the following:

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['username'] = 'root';
$cfg['Servers'][$i]['password'] = 'password'; // Replace password with the actual root password

That's it. From now on every time you'll visit PHPMyAdmin's index page you'll be automatically logged in as root.

Notes

As for why Windows 10 and Ubuntu 15.10 behave differently, they're simply not meant to behave the same way. It could be simply that they come configured differently by default, however if I recall correctly PHPMyAdmin used to come configured as in Windows in previous versions (many versions ago, but don't take this for granted). They're simply not meant to be configured the same way and they don't.

The package distributed on Ubuntu as always could have been subjected to modifications upstream: the way a package comes configured is always up to the package's mantainer, and does have to match no Windows configuration.


Ubuntu logs in into blank purple screen, please help

When booting, press Esc to enter Grub Menu!
Select Ubuntu and press e to edit boot parameters.
Look for quiet splash and after that, add modprobe.blacklist=nouveau.
Then press F10 to boot.
It should work, if it does, go to the Additional Drivers app and install Nvidia drivers from there.
I have an Omen 15, with Intel CPU and Nvidia 1050 Ti, I suspect the issue is with the default drivers, that fixed it for me.


Are you using the auto login feature ?

Turn it off and log out ;)

At the lightdm login screen you will then be able to select and log into xfce. I would guess you can then re-enable auto login.


Hitting arrow keys adds characters in vi editor

If you don't already have a .vimrc file in your home directory, create one using this:

vim ~/.vimrc

Add this line to the top of the file:

set nocompatible

Save the file and this should fix the problem for you. :)


How can I tell when a machine tries to get a new DHCP address?

To get a full view of dhclient

journalctl -t dhclient

then press / and search for DHCPREQUEST.


How to make xrandr customization permanent in Ubuntu 15.10?

You can script the commands you ran and run it at login or you can edit xorg.conf

See How to run a command at login?

and http://blog.bodhizazen.com/linux/use-xrandr-to-set-a-screen-resolution/

Some of the graphical tools should do this for you (set a resolution) options  lxrandr , grandr, the grandr applet, ARandR, and Krandr.

The graphical tools may not if you need to add modes, hard to say, need a better idea of what you are running and what happens when you reboot.

If you need help, post your hardware, what driver you are using, and the exact commands you ran and we can convert them or make suggestions for xorg.conf

Script:

#!/bin/bash
xrandr --newmode "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync
xrandr --addmode DVI-0 1360x768_60.00

See How to run a command at login? for running it at login.


Very long file names will force the output of ls to be one per line. You could rename the file to have a shorter file name.

Or you could try the below command which forcefully truncates file names (from this answer on Unix & Linux):

ls | cut -c1-20 | column -c"${COLUMNS:-80}"

If you wanted you could make a special alias to execute this with lc, for example, by adding the following to your ~/.bash_alisaes file:

alias lc='ls | cut -c1-20 | column -c"${COLUMNS:-80}"'

However that alias won't allow you to pass flags like -l or -a, so instead you could make a script ~/bin/lc and make it executable with chmod +x ~/bin/lc:

#!/usr/bin/env bash

ls $@ | cut -c1-20 | column -c"${COLUMNS:-80}"

Kudos @steeldriver for discovering the issue in the comments above.


Disable keyboard backlight on Sony Vaio S series (2012) (Ubuntu 13.04)

The solution in Keyboard backlighting not working on a Vaio VPCSB11FX seems to work for me. To disable:

sudo rmmod -v sony-laptop; sudo modprobe -v sony-laptop kbd_backlight=0

Permanent solution:

echo "options sony-laptop kbd_backlight=0" | sudo tee /etc/modprobe.d/sony-laptop.conf

I was able to make it work in an appropriate way using:

sudo rmmod -v sony-laptop; sudo modprobe -v sony-laptop kbd_backlight=1 kbd_backlight_timeout=1

Or permanently:

echo "options sony-laptop kbd_backlight=1 kbd_backlight_timeout=1" | sudo tee /etc/modprobe.d/sony-laptop.conf


Grub menu disappeared after using grub customizer(in ubuntu) to make windows 10 as default os

Make a bootable Ubuntu usb drive using windows. Check this to know how.Now boot into the live ubuntu session and install grub repair using terminal.Run the following in terminal.

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

Now click on recommended repairs and follow on screen instructions.
Credits-Ubuntu documentation


How can I make a virtual router on Ubuntu?

As many times mentioned, you can read how to share network connection here:

https://help.ubuntu.com/community/Internet/ConnectionSharing

if it wont help, let us know.


Standart hotkeys palette has been changed. How to set default?

I've found a solution. That's was my fault. I changed "Switch to previous source using" in Text Entry setting that's become a reason that my Keyboards shortcuts have been changed to unknown combinations for me


How to stop screen from dimming when power cable is unplugged?

Using the GUI:

Open "System Settings"
Under "Personal", click on "Brightness & Lock"
To disable dimming, under "Brightness", untick "Dim screen to save power"
To re-enable dimming, under "Brightness", tick "Dim screen to save power"

Using the command line:

To disable dimming run:

gsettings org.gnome.settings-daemon.plugins.power idle-dim true

To re-enable dimming run:

gsettings org.gnome.settings-daemon.plugins.power idle-dim false


I have two groups of system notification icons

Thanks for you comment but right click is not allowd.
My Problem solved, Problem is of Nvidia Graphic Card Driver.
I change my graphic card driver and solved!

Edited - Added More Details

Sorry for my english.

By Default Ubuntu use X.Org X server driver, but i change my driver to nVidia Binary Driver v367.57.

BUT i try many times to reinstall Ubuntu and finally i found the problem !

Yeap, in System Setttings > Displays i have Two monitor and with another driver Three monitor:

Built-in Display
Unknown Display

If both of them is ON , Ubuntu have many problems, for example I had another problem with Telegram Software, after run Telegram i can see Telegram Icon in system tray icon but the main window will not be displayed ! because this program is in another monitor (Unknown Display) so we can't see that.

I just turn off Unknown Display and used just One Monitor (I try Built-in Display)

Turned Off Unknown Monitor

Turned On Built-in Monitor


Eye strain; how to change refresh rate to 120 Hz?

I managed to fix this issue, so I'm posting the answer here in case anyone else has the same problem.

According to someone on the internet, the NVIDIA drivers don't support xrandr (or at least not the current version). In order to change the resolution, I needed to use the "NVIDIA X Server Settings" GUI instead. The option is available on the "X SERVER Display Configuration" menu, under the "Resolution" setting. It defaults to "Auto" which apparently always uses 60 Hz. I needed to explicitly set my resolution and refresh rate, and apply it. Note that the first time I did this, I got a crash (from Compiz, I think?). I restarted my system and tried it again, and that time it worked. After changing this setting, xrandr displays 120 Hz as the current refresh rate.
However, the above change isn't the full story. I could clearly see that 120 Hz was still not being used, as rapidly dragging windows around on my screen resulted in jerky and flickery movement. In order to fix this, I had to open up the "CompizConfig Settings Manager" GUI, navigate to the "Composite" plugin, and again set the refresh rate back to 120 Hz. I had already changed this earlier, but for some reason, it had changed itself back. I then disabled "Detect Refresh Rate" in order for it to hopefully keep my setting.

With the above steps implemented, my refresh rate has successfully been changed to 120 Hz. It's amazing going back to 120 Hz again after suffering 60 Hz. It is silky smooth, and my eyes are already feeling better. :)


The root cause is someone messed with /usr/bin/sudo permissions. They should be something like :

$ ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 155008 Mar 12 17:27 /usr/bin/sudo

but for some reason, yours are likely (note the 's' vs 'x') :

-rwxr-xr-x 1 root root 155008 Mar 12 17:27 /usr/bin/sudo

How to fix it:

Boot a CD, DVD or USB key having a live distribution on it, mount your / file system and fix sudo permissions, and any other that might have been tampered. For example, here is a list of some files having the s bit set on my machine :

$ find /bin /sbin /usr/bin /usr/sbin -perm /u=s
/bin/mount
/bin/ping6
/bin/fusermount
/bin/ping
/bin/umount
/bin/su
/sbin/mount.cifs
/sbin/mount.ecryptfs_private
/usr/bin/sudo
/usr/bin/chsh
/usr/bin/gpasswd
/usr/bin/mtr
/usr/bin/lppasswd
/usr/bin/traceroute6.iputils
/usr/bin/X
/usr/bin/passwd
/usr/bin/newgrp
/usr/bin/pkexec
/usr/bin/chfn
/usr/sbin/uuidd
/usr/sbin/pppd
/usr/sbin/pppoe


Manhattan [Mobility Radeon HD 5000 Series] support on 10.10

It's a list of Ubuntu certified (tested by Canonical for OEMs) and Ubuntu ready (tested  by OEMs) hardware, that's guaranteed to work on the specific systems they were tested on.

This doesn't mean that hardware not on that list won't work fine with Ubuntu - but it's possible. This also doesn't mean that hardware on that list won't work with older, later, or future versions of Ubuntu - but, again, it's possible.


Can't see partition when installing alongside windows 10

The first thing that comes to my mind is that maybe you have already 4 primary partition created. You can only have a max of 4 primary. If you need more partitions you need to use an extended partition.
If you boot with Ubuntu Live, can you execute from the terminal:
cat /proc/partitions

Did you resize your partitions?. That does not guarantee you to see all the space resized as available for a partition.
Windows does not fit in 400 MB, you wanted to say 400 GB or it can be a partition for manufacturer Windows installer.
Update:
After seeing the images (sorry if you linked them in the first place I didn't click on those links) I can tell you why I think this happens.
If you look at your windows partition manager screenshot you have the small partition, the windows partition, empty space, and space in use at the end (in blue).
I understand that you rearranged partitions, but in this process something didn't like to Ubuntu installer.
I would like to know what is the space at the end.
You should be able to see the partition table and if it's healthy to create a partition by booting Ubuntu Live and from a Terminal selecting:
fdisk /dev/sda

You can use h for help p for printing the partitions n for creating a new one.
If you create a new one fdisk will offer you only the space that it has available.
Resizing and moving partitions and creating new after is dangerous, please do a backup before continuing if you didn't.


"Could not find '' executable." after apt-get install/remove

Doing some research, I found that string in the kdelibs-bin package. Try removing it:

sudo apt-get remove kdelibs-bin

Note that, if you have other KDE packages installed, this solution is not for you, because kdelibs-bin might be a dependency of these packages.

After that, kill all kdeinit4 instances (that is the program that gives you the error):

killall kdeinit4


How do I d/l qBittorrent at the Ubuntu app site?

Open the Ubuntu Software Center, search for qBittorrent, click qBittorrent in the search results to select it, click the button that says More Info and then click the button marked by the mouse pointer in the screenshot below that says Install to install it.


Accessing files on a what was a Synology NAS HDD

I have the same problem but maybe I can help you with some experiences I did.
As the HDD was probably a RAID device you have to install some packages for RAID.

As root in a terminal session ($ sudo -i), you have to install following applications:

Update Ubuntu

apt update

Install the RAID applications:

apt install lvm2
apt install myadm

Test the HDD:

vgscan --mknodes

you will receive something as:

Found volume group "vg1000" using metadata type lvm2

Activate the HDD:

vgchange -ay

you will receive something as:

1 logical volume(s) in volume group "vg1000" now active

Make a display:

lvdisplay

you will see somthing as:

  --- Logical volume ---
  LV Path                /dev/vg1000/lv
  LV Name                lv
  VG Name                vg1000
  LV UUID                I4OgWe-gTw1-ucJM-PB9w-Pa2X-UsvE-IyoHxX
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 0
  LV Size                3,63 TiB
  Current LE             952682
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

Now create a mountpoint:

mkdir /mnt/old_HDD

Mount the volume:

mount -o ro /dev/vg1000/lv /mnt/old_HDD

List the contents:

ls /mnt/old_HDD

You will see something as:

@appstore  @autoupdate  @cloudstation  @database  @download  @eaDir  homes  @iSCSI  music  photo  @S2S  @tmp  @USBCopy  video

I further installad today 2 new apps:

apt install dcfldd (copy disk=to=disk) and btrfs (install btrfs-progs)

If I have some news I will come back to you. I'm very new in Ubuntu (1 week, after over 40 years in Mainframe-System Engineering).

Hope this helps a little bit.


Problem installing Ubuntu 15.10 on ASUS R510JX

Based on this link nvidia-361 is the driver for GTX 950M(same as in my other laptop).

Ctrl+Alt+T and then login to the tty

First uninstall the currently installed NVIDIA drivers. Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key. Add nouveau.modeset=0 to the end of the linux line. Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl+Alt+F1. Enter your user name and the password, then execute :

sudo apt-get purge nvidia*
sudo reboot

Now install the latest official stable NVIDIA drivers. Boot the computer, when the GRUB menu appears ...

Highlight the Ubuntu menu entry and press the E key. Add nouveau.modeset=0 to the end of the linux line. Press F10 to boot the Ubuntu operating system.

When the login screen appears press Ctrl+Alt+F1. Enter your user name and the password, then execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot

Note : Maybe it is explicitly necessary to select the NVIDIA adapter in BIOS. When you want to use drivers 361, adding the PPA is not necessary. In this case the terminal commands you have to perform are these :

sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot

In case you have installed the nvidia driver from their site then uninstall it as per that instructions.Uninstall that driver by running, as root, sh ./NVIDIA-Linux-x86_64-3

Similar kind of solution i have provided in this thread


The directory you need for this is

/etc/dconf/db/local.d/locks

The are not stored there though; this is the place to put them to make one read-only. From dconf admininstration ...

Lockdown

  Lockdown is supported by creating a 'locks' subdirectory in the keyfile directory (ie: /etc/dconf/db/local.d/locks). The files contained in this directory contain a list of keys to lock, one per line. Just as with the keyfiles, you may add any number of files to this directory. Here's an example of what one might look like:

# prevent changes to the company wallpaper
/org/gnome/desktop/background/picture-uri

  Of course, you need to run the 'dconf update' tool after changing the locks. The tool will notice if the timestamp on the 'locks' directory has changed, so there is no need to touch the ".d" directory as well.

The lockdown key for hide-mode should be ...

 /com/canonical/unity-2d/launcher/hide-mode

I would consider it a bug if this does not work.

Alternative ...

Command line method:

 dconf write /com/canonical/unity-2d/launcher/hide-mode 1

You could add this to some script or ~/bashrc or something else to get it reset.

18.04 used gdm3.

  DConf configuration

  Some GDM settings are stored in a DConf database. They can be configured either by adding keyfiles to the /etc/dconf/db/gdm.d directory and then recompiling the GDM database by running dconf update as root or by logging into the GDM user on the system and changing the setting directly using the gsettings command line tool. Note that for the former approach, a GDM profile file is required - this must be created manually as it is no longer shipped upstream, see below:

/etc/dconf/profile/gdm
user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

In /etc/dconf/db/gdm.d you can create a file per key in the sty

rinzwind@schijfwereld:/etc/dconf/db/gdm.d$ ls
02-logo
rinzwind@schijfwereld:/etc/dconf/db/gdm.d$ more 02-logo
[org/gnome/login-screen]
logo='/discworld/Pictures/Wallpapers/Nier.9.jpg'

And this will preseed the value in dconf.

More examples in the link.


Touchpad and Keyboard get freezed at login screen in ubuntu12.04

Try restarting your computer seems to be an issue maybe your ram got overloading, It should not be a problem with grub because that is just a bootloader. If restarting worked. Run the commands below

sudo apt-get install preload

The command above preloads everything into your memory.


Douggro hit the bull's eye! Some pdf's were uploaded from a Windows computer with more than 190 characters. Because of that, the Dropbox in Ubuntu couldn't sync those files. To solve the problem, I edited the file names inside Dropbox web and then, ok! The synchronization goes right!

I had similar problems to sync my Mendeley account. In that case, the solution was a little more complicated, because Mendeley does not support web edition. In that case, I had to change in my windows computer the names and after sync, the Mendeley account could update the file in Ubuntu computer.


Use Alt to grab them and pull them down to where you can close them.


Probably Lubuntu 14.04 LTS is a better choice for it.

I recommend you to make a bootable USB-Flash with Lubuntu on it, and try it first without installation. If it will run correctly, then you can perform the installation from it.


How to get Ubuntu AppIndicator icon coordinates

There is intentionally no way to easily discover them.  We don't want an interaction with the indicators that is not a menu and an icon.  This consistency is important to the type of experience that we're trying to create.  The wiki page has information on the design rational of the menubar.


Start fresh. Install Ubuntu without even thinking about the video card. After the installation has completed, simply select Additional Drivers from the Preferences section.
The software will automagically probe for and confirm the NVIDIA hardware. You then only need to select it from the displayed menu and click Apply. Be patient, as it's a fairly large file to download and install. When it's done, reboot.
Afterwards, you'll find the NVIDIA Settings software in the Administration section of Ubuntu.
Have some tea.


Lubuntu Terminator does not have the option for background image

Should have done more digging. Apparently according to this article it's no longer possible as of version 1.90, and it is currently version 1.91

  Then there's the second release which is 1.90. This is pretty solid, and should be usable as your daily driver with 99% of the gtk2 functionality. Of course the new libvte widget is much improved so you'll notice nice improvements in places. One thing we did lose (the missing 1%) in the port to gtk3 was the background image. This is not the Terminator projects fault. The libvte project chose to excise the capability to set an image as the background from the widget. I have figured out a way to add this back in, but that can wait till 2.1. We do however still have true transparency.


Where does Ubuntu Software Center store its (language) settings?

The Software Center doesn't store language settings for package information, but pulls them from apt. apt builds its backend based on the installation language. This has been reported as a bug.

If you have removed languages that you no longer need, you can reset the translations that apt-get looks for with:

sudo rm /var/lib/apt/lists/* -vf && sudo apt-get update

At least one person at the above-mentioned bug report, says the problem of apt showing package descriptions in a language that is now different from the one you are using was fixed by first choosing the language you need in Language Settings and then reinstalling the Software Center:

sudo apt-get --reinstall install software-center


This is a known issue with the current implementation of Zeitgeist in Natty & Oneiric - the software that drives the Dash searching capability.

Zeitgeist Privacy has finally landed in 12.04 (Precise) - it has not been backported to Natty or Oneiric.

By default, privacy hides hidden files.  That's the good news.

However, if you have got your files in a hidden folder then those files are not hidden.

Thus to hide a hidden folder and its contents you need to explicitly hide that folder.

To do this, launch Privacy from the System Settings

Click the button shown and this will show the directory window

Navigate to the folder below where the hidden folder is located.

Press CTRL+L to reveal the location bar and enter the name of your hidden folder.

Once you select the OK button, no further activity will be recorded in your hidden folder.

To remove current activity, use the linked question for further help.

Linked Question:

How can I keep recent files from appearing in Unity?


Maybe a bit destructive, but you could try reinstalling Ubuntu. Remember to back up your data first if you try this, and try other less destructive suggestions first. If you've changed any settings, put them back to how they were originally and try GNOME Tweaks for settings that aren't normally accessible.


By adding your user with the --disabled-login switch the result is as excerpted from the add user man page.

 --disabled-login
              Do  not  run passwd to set the password.  The user won't be able
              to use her account until the password is set.

I don't believe smbpasswd -a is working as you think as this excerpt from the smbpasswd man page indicates.

 Note that the
           default passdb backends require the user to already exist in the
           system password file (usually /etc/passwd), else the request to add
           the user will fail.

I believe that you can resolve the majority of the issues you've created for yourself by creating a password for the account in question with sudo passwd <username>

Another issue that I believe may be relevant to your difficulties is the usage of --shell /bin/false which as I understand it will simply drop connection without explanation

Sources:

man adduser

man smbpasswd

man passwd

https://unix.stackexchange.com/questions/10852/whats-the-difference-between-sbin-nologin-and-bin-false


Wallpaper broken after version upgrade from 14.10 to 15.04

It seems that my upgrade from 14.10 to 15.04 some how got messed up and failed to upgrade a large majority of packages. Re-running

sudo apt-get dist-upgrade

seemed to fix the problem.


With respect to gnome-session, what is a "component"?

A component is defined in a .desktop like a normal application. It must also include a key defining the name of the component it provides such as:

X-GNOME-Provides=panel

Here "panel" is the name of the component.

This is documented at https://wiki.gnome.org/Projects/SessionManagement/RequiredComponents


How to check what is my network card on Ubuntu?

If you want to give the best output, something like this would be best appreciated.

$ lspci | awk '/[Nn]et/ {print $1}' | xargs -i% lspci -ks %
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 03)
    Subsystem: Gigabyte Technology Co., Ltd Motherboard
    Kernel driver in use: r8169
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 03)
    Subsystem: Gigabyte Technology Co., Ltd Motherboard
    Kernel driver in use: r8169

Or sudo lshw -c network but you might want to exclude some of the information (ip/serials/etc) but it might not bother you though.


How to enable battery status indicator in gnome shell?

Ah, found the problem. It was the system-monitor extension. It has an option Hide system icon in the Battery tab. This checkbox is enabled by default...

I still have the problem that this combo box in the power settings is not working at all (Value is completely ignored, even the Never option) but I don't really care as long as I can see the battery status again.


Starting in Ubuntu 14.04, there is a command in Ubuntu called just
  apt, which didn't exist when this question was originally asked. The
  apt command provides a convenient subset of the functionality of
  various other apt- commands (e.g., apt-get, apt-cache), with
  colorized display and progress bars. Although the apt command does
  not support all the same actions and options as apt-get, it may often be used in place of apt-get. See Fsando's answer for
  details.

APT is a suite of utilities, including a database of information about what packages are available from where.

APT is not a single command. Rather, it provides several commands.

The most commonly used APT command is apt-get. That's what you should probably be using.

To update information about what packages are available and from where (which you should do before attempting to upgrade or install any packages with apt-get), run:

sudo apt-get update

To upgrade packages (i.e., "update your system"), run:

sudo apt-get upgrade

To upgrade packages, including packages that require uninstalled packages to be installed, or installed packages to be removed, run this (but be careful--it's best to pay attention to what will be added or removed):

sudo apt-get dist-upgrade

To install one or more packages, run this, replacing ... with the list of packages you want to install (if you want to install more than one package, put spaces between the package names):

sudo apt-get install ...

To remove one or more packages (i.e., to uninstall it), run:

sudo apt-get remove ...

To remove a package and also remove its systemwide configuration files (but not its per-user configuration files, which reside in users' home directories), run:

sudo apt-get purge ...

To remove packages that were installed automatically because other packages needed them, but which now are no longer needed, run:

sudo apt-get autoremove

To do that, and also remove their global configuration files"

sudo apt-get --purge autoremove

To reinstall a package, run:

sudo apt-get --reinstall install ...

To reinstall a package and delete its systemwide configuration files while doing so:

sudo apt-get --purge --reinstall install ...

To delete cached package installer (.deb) files (which does not remove any packages, but will make it so they have to be fetched over the network again to be reinstalled):

sudo apt-get clean

To deleted cached package installer files, but only for packages that are unlikely to be needed again (i.e., those that are so old they've been removed from the servers, as of last time sudo apt-get update was run):

sudo apt-get autoclean

That was just a brief overview. It does not capture all possible uses of apt-get, plus there are a number of other utilities provided in the APT suite, such as apt-cache for examining information about installed and available packages.

You can learn more by reading the apt-get and apt manual pages.


Ubuntu 16.04 takes long time to boot using btrfs and persistent logs

As seen in this systemd commit, btrfs's copy-on-write (COW) slows down journal access.

One can disable the COW on the journal directory to fix the slow journal access times.

Here is how I did:

Stop journald service as we'll move its directory.

sudo systemctl stop systemd-journald

Move the journal

sudo mv /var/log/journal /var/log/journal-1

Create new journal directory

sudo mkdir /var/log/journal

Disable COW on the new journal directory. The command only works for the files created after the command.

sudo chattr +C /var/log/journal

Move the journal back

sudo cp -a /var/log/journal-1/* /var/log/journal

Remove the old directory

sudo rm -rf /var/log/journal-1

Restart systemd-journald

sudo systemctl start systemd-journald

You can cd into the /var/log/journal/ and run lsattr to check if you disabled COW. The last big C means that COW has been disabled.


How to reenable unity - tried the standard stuff

I also tried to have fun with compiz and the same happened. Here is what I did:

If you see your desktop like I did, then you can make a link that opens a Gnome Terminal.

From within the Console mode(Ctrl+Alt+F1), do the following:

cd ~/Desktop/
ln -s /usr/bin/gnome-terminal gnome-terminal

In the Console mode you still won't be able to enable Unity, unless there is a way to point to the Xserver. [Edit] oh "export DISPLAY=:0" does just that, but you noted that the answers in the linked question didn't help, so starting to doubt if this answer will.

IIRC, from the desktop launched Gnome Terminal do:

unity-reset


Upgrading to new release when previous release reaches end of life

Upgrading from 12.10 does not make much sense, because two further releases(13.04 and 13.10) are already EOL.

Therefore it's impossible# to upgrade from 12.10 to anything.

The best solution for you would be to install Ubuntu 14.04 freshly. As a plus point, you would also be able to setup things like new disk formatting(ext4 maybe), LUKS enkryption, RAID, LVM etc which can be done only at installation.

# you may try to find a server which still makes it possible to upgrade from 12.10, though such a server probably doesn't exist.


Why is chromium unable to access the network

There is an offline Chrome Web Store* app you can use to investigate wireless issues called Chrome Connectivity Diagnostics. I would recommend installing that and running it when you encounter issues to see what suggestions it can offer.

* Yes, you can install Chrome Web Store apps in Chromium, too.


Here is an overview of what you can do.

If you want to check for an upgrade every time the machine is going down you can turn your script into a system v init-script that will run on level 0 (shutdown).

To do this:

change your script to be an init script.
Quick example - http://www.cyberciti.biz/tips/linux-write-sys-v-init-script-to-start-stop-service.html
put it in /etc/init.d/
create a symlink like: /etc/rc0.d/K01myscipt -> /etc/init.d/myscript

This will send a stop command (K 01myscript) to your script at the beginning of shutdown process (K 01 myscript - meaning, before others). I'm not sure, but maybe you'll have to cancel shutdown at the beginning of the script - shutdown -c now and issue it again at the end - shutdown -h now.

The script will be executed already as root so you don't need any sudo commands. You just need to have permissions create the mentioned files.


How to view all mounted devices and respective free space

Use df in terminal. Learning bash will save you insurmountable amounts of time, check out a guide.


Ubuntu Mate 16.04 doesn't ask for pairing code to connect Apple Keyboard

Still without a solution I can't get it wroking.

These are the last actions I did:

I changed the name of keyabord connected on a Mac
Remove the file /etc/bluetooth/hcid.conf which contains information about the old name keyboard, something like: auth enable and encrypt enable
Assigned (Or I think so) permisions to my user to bluetooth services:   sudo usermod -G bluetooth -a albert

I don't know which one of these actions is the winner, but I hope can help someone, to avoid stay so long for fixing it

23/05/2016

After that, I had problems when connecting at startup. I have lost connection to keyboard, and so now, the problem persists

21/05/2016

Solved:

folowing this instruccions, I did:

# bluetoothctl -a

[bluetooth]# pair 10:9A:DD:9C:3D:DA
Attempting to pair with 10:9A:DD:9C:3D:DA
[CHG] Device 10:9A:DD:9C:3D:DA Connected: yes
[agent] PIN code: 882876

[bluetooth]# trust 10:9A:DD:9C:3D:DA
Changing 10:9A:DD:9C:3D:DA trust succeeded

connect <address>

And with this way, in terminal, asked the pin number to me.

To reconnect the keyboard, each time I startup the PC, first turn on PC, and then press the side power button, and wait for 5 - 10 seconds. Now seems to be more stable

12-12-2016 . another episode in my AppleKeyboard life:

The same as I explained above, but

1- With Networking disabled

2- without asking the pin number to me, I typed the pin number "blind" when I see "Attempting to connect to ..."


How to troubleshoot ethernet port on laptop

I had a similar problem a few months ago with one of my laptops (a Dell Inspiron E1505, though I don't think that the answer below is dependent on your laptop being the same model). I realize that there are multiple causes for an ethernet jack not recognizing that a cable is connected to it. Having said that, this might be worth trying the steps below before you do a lot of troubleshooting.

This answer comes from http://vittalp88.blogspot.com/2011/03/network-cable-unplugged-but-it-isnt.html. I'm hoping I don't get down-voted just because it sounds so ridiculous. With my own laptop, I only tried it after several hours of troubleshooting. However, this solution worked (though I'm not sure why; neither is the author of the linked post, apparently):

1) Turn your laptop off.
2) Unplug the battery.
3) Leave it (with battery unplugged) for an hour.
4) Put the battery back in, boot up, and see if the ethernet jack is working again.

Perhaps it's worth trying this before doing much else?

(Note: The link above talks about having this problem in Windows. When I used the solution, it fixed the same problem in Ubuntu 12.04)


Start "Synaptic Package Manager"

Type in "firefox" in the quick filter and highlight it in the search result (the one w/ the green box next to the package name indicating that it is already installed on your computer)

Select from the menubar "Package" -> "Force Version"

Select 4.0 from the dropped down list "4.0+nobinonly-0ubuntu3 (natty)" and click "Force Version"

"Apply" changes


Why does the default site for Apache in Ubuntu have “”?

That block applies to the root or / directory. Remember the syntax is <Directory /path/to/files>. In your example the path is /.

This means that any directory under / will have the rules: Options FollowSymlinks and AllowOverride None unless there is a rules that overrides it for a specific directory.

To understand what those directives mean check the Apache Directives Index


Image viewer that can display all ICO sizes in a file

I use XnView MP.
It's closed source, but is an excellent tool for image viewing - among many other things, such as batch editing or some basic image manipulation.
In this picture, I have opened a .ico:

As you can see, it just shows the largest size.
If I click on 'View' and turn on 'Icon Snapshot' then I get to see all the different sizes, like this:

Alas, I do not see anywhere in it to edit each of them individually. It may be in there, but I'm not seeing it. XnView has a whole lot of features and has a Linux version that's easy to install. Just scroll down at the above link and you'll find a version that works for you.


Ubuntu Server 16.04 unable to get virtualbox running

I wrote a small script that work with Ubuntu 14.04 as well as Ubuntu 15.x and Ubuntu 16.04. It install all the packages, so phpvirtualbox runs. Download the script (https://github.com/joergre/workshops/blob/master/LF6/vb.py) and give him rights to "chmod a + x vb.py". Then start the program with ./vb.py
Then it takes a moment and everything should work. Please change the password in line 8. Login then IP/phpvirtualbox and username/password admin/admin.

Have a nice day


What's the advantage of using Ubuntu One vs. other services like Dropbox?

Ubuntu One has several advantages over Dropbox and other services.

Synchronisation

Like other services, Ubuntu One allows synchronisation of files across machines and does this by synchronising any file you put in the ~/Ubuntu One folder. In addition, it allows you to synchronise all of the files in any folder in your home folder. However, it lacks the ability to synchronise files using symlinks.

A particular feature that Ubuntu One has that is lacking in other services is the synchronisation of your desktopcouch databases. Some applications use these databases to store data and settings. This allows automatic synchronisation between applications on multiple machines. Examples of such applications include Tomboy (which synchronises its notes) and Evolution (which synchronises contacts).

Storage Amount and Pricing

Ubuntu One provides a relatively generous 5GB of free storage compared to 2GB provided by Dropbox and SpiderOak and 1GB provided by Wuala. With Ubuntu One you can add 20GB increments for 2.99 USD/month. This allows flexible pricing that is more cost effective than Dropbox or Wuala. (See Comparison).

Platform Support

The Ubuntu One client is available on Ubuntu and Ubuntu based distributions and should theoretically work on most other distributions. A beta is available for Windows. There are also apps available for Android and iOS.

There is also a rudimentary web interface for accessing and publishing files. The publishing feature allows you to share files with people who don't have Ubuntu One.

This is not as many platforms as, for example, Dropbox so this may be a disadvantage if you use multiple platforms.

Music

Ubuntu One provides a music store and allows music streaming via smartphone applications. The music streaming costs money. Other services do not support this.

Freedom

The Ubuntu One client is free software, although the server is proprietary.


Fish Powerline with status line at the bottom of the shell

After researched I came to conclude that it was not feature of fish-shell but a tmux session.
For more information about tmux powerline you can refer to this repo:
https://github.com/erikw/tmux-powerline


Try this if you're using lampp:

sudo /opt/lampp/lampp stop
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
sudo service apache2 stop
sudo service mysql stop
sudo /opt/lampp/lampp start


Nautilus freezes when connecting to SSH server

It may not be a perfect solution but sometimes it may work.

Just try sftp://user@server instead of ssh://user@server


How to access shared files on Ubuntu from a windows machine?

On way of doing it is to add the shares in /etc/samba/smb.conf
with the following format.

[sharename]
         path = /media/yourshare

If you are having problems with login you can allways use this to test if the samba server works.

guest account = yourusername
guest ok = yes

But these should only be used for testing, because it disables your security, and tells samba that all the guest's are you.

Some other usefull parameters/settings are:

read only = yes
valid users = yourusername

When you have the configuration file as you like, restart the samba deamon.

sudo service smbd restart


what is the default location for backup files of another server

There is a proper location.
There is a standard for proper filesystem structure. Its current version has been around for over a decade, which might be news to some Linux distros.
The latest version of the Filesystem Hierarchy Standard is 2.3:
http://www.pathname.com/fhs/pub/fhs-2.3.html
There, under the "Purpose" section of var, it explains why that's a bad idea to use /var/backups:

Several directories are `reserved' in the sense that they must not be used arbitrarily by some new application, since they would conflict with historical and/or local practice. They are:
/var/backups
/var/cron
/var/msgs
/var/preserve

The proper place would be, dependent on the application and its usage, something like:
/var/lib/<app>/backups
/var/local/<app>/backups
/var/opt/<app>/backups

(I say "something like" because whether you use /var/lib, /var/local, or /var/opt is dependent on the application, its role within the system, and how it was installed. Also, the structure under /var/lib/<app> is arbitrary based on the application maintainers.)
By the way, since you mentioned it, /var/www is not the proper place for served web pages (again, this is news to some distro and package maintainers, but the FHS is older that many of them who clearly never have read it). Served content, and stored application data/assets for services belong under the /srv directory. I have been using the protocol method since 2005 and find it works quite well (/srv/http, /srv/ftp, /srv/git, /srv/svn, etc.).
Let's say that  that you are using rsync and that this machine is providing a backup service for the network, you would use:
/srv/rsync/backups

UPDATE
Version 3.0 of FHS:
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html


What Happened to `Recent Files' Feature in Document Viewer (Evince)?

Seems to have been broken in 3.10.3-0ubuntu4 (debian/patches/0001-Port-to-GMenuModel-and-add-menu-bar.patch

So last working in 14.04 was 3.10.3-0ubuntu3 (- in File menu) or previous to that in the gnome's toolbar gear menu dropdown > recent

Filed bug - https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1365296


You still have to run setup and configure a new device:

$ sudo cyberghostvpn --setup

It will create the configuration files in you home folder: ~/.cyberghost.


How can I change the Kubuntu background from default?

This seems to be a bug. If you run this from the terminal:

$ kcmshell4 kcm_lightdm

you get warnings about invalid permissions (even if you run it as root), and at the end the message:

kcmshell(2213) LightDMKcm::save: save failed: ""

About the splash screen: which one do you mean? KDE's login splash screen or the system bootup splash screen? KDE's splash screen can be changed by installing a new theme, for the system's splash screen check here: What alternatives are available to replace the purple boot splash screen?


How do I configure the touchpad so that the cursor doesn't move when I click?

It looks like your touchpad still feels too much pressure when your finger is released.

If you are using synclient, you might try to increase the FingerLow value.

here is how I did with my computer:

$ synclient | grep FingerLow
    FingerLow      = 30
$ synclient FingerLow=35

Note that FingerLow cannot be higher than FingerHigh. So change this value as well if needed.


Touchpad stopped working after suspend on a Toshiba L650

A user in another forum suggested to

run gconf-editor
locate the key /desktop/gnome/peripherals/touchpad/touchpad_enabled
and enable it.

I would be interested to know whether this worked!


In Windows, have you installed a driver that allows you to read/write to Linux ext2/3/4 partitions? If so, that's what's corrupting Ubuntu. Uninstall it asap.

Your file system is corrupt. See if this manual fsck can fix it...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
Note: while you're booted to a Ubuntu Live, start the Disks app and check your SMART data.
type reboot


Is this to do with permissions? Maybe Right Click and go on the permissions tab?


Copying new file while retaining the original file

To copy a file, you can use the cp (for "copy") command

cp /path/to/sourceFile path/to/newFile

in your case it will be

cp server.properties server-0.properties


Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] adapter not working with ubuntu 18 desktop

What lsmod and iwconfig say?
You move forward based on the answer.
I think your driver is loaded correctly; and you can make sure about this by sudo lsmod.. you should be able to see the rtl 8188 driver listed. You have no driver issue.
I think your issue is in the configuration. Check /etc/interfaces and you should see no existence for any wireless configuration. Add the right wireless configuration that is suitable for the connection manager you use.


Add to VirtualHost:

<VirtualHost *:80>
   AccessFileName .htaccess (.htaccess is the default filename)
  ...
   <Directory /var/www/>
      Options Indexes FollowSymLinks Includes
      AllowOverride All
      Order allow,deny
      Allow from all
    </Directory>
...
</VirtualHost>

then restart apache:

service apache2 restart

To check if it works, add this line to .htaccess :

ErrorDocument 404 /error404.html

for error 404 (page not found) your browse should open your custom error page, in this case error404.html


Highest-quality sampler/synthesizer in Ubuntu?

You could try lmms and rosegarden.

sudo apt-get install lmms rosegarden


How do I set the vsync option with the radeon driver?

You can still use an Xorg.conf. By default it is not used anymore but you can create one for manual configuration.

Invoke

sudo Xorg -configure

to create an initial Xorg.conf. This one you can edit to make special changes as required.


Unmet dependencies error while removing NVIDIA drivers/files

I can't exactly flag, nor comment on your post to send you over to another link, so I'll post this here:

NVIDIA driver problem after apt upgrade ubuntu 18.04


determining the source for a package upgrade

The command apt-cache policy package_name will list the sources for each available version.

Sample Output:

karthick@Ubuntu-desktop:~$ apt-cache policy pidgin
pidgin:
  Installed: 1:2.7.7-1ubuntu0+pidgin1.10.04
  Candidate: 1:2.7.7-1ubuntu0+pidgin1.10.04
  Version table:
 *** 1:2.7.7-1ubuntu0+pidgin1.10.04 0
        500 http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     1:2.6.6-1ubuntu4.1 0
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
     1:2.6.6-1ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages


Installation of Ubuntu in an external hard disk drive

No problem whatsoever! (I've got a USB disk just like that but I've never tried anything but BIOS machines, as I rarely encounter UEFI machines and if I meet one, I put them in BIOS mode and revert back when I leave)

Procedure is exceedingly simple:

Insert the HDD
Boot the LiveCD
Install like you would install any other machine and install grub, swap, / and /home on there
Ensure fstab uses blkids
Install as many applications as you want, but stay away from any proprietary modules (aka drivers), just standard Linux kernel modules... And these are extremely good at adapting to their environment! They're like mongrels: they'll eat anything, drink anything and ... well, whatever. ;c) It just works!

That's it!


1st check if your update settings are correct:

The Ubuntu version shown after "pre-released updates" is the name of the new version. I have 14.10 installed on the image above.
the "pre-released updates" needs to be active.
the "notify me of new releases" needs to show "for any new version".

Warning please note that once you upgrade to newer Ubuntu, you cannot downgrade to Ubuntu thee older one. If the installation goes bad the only way to go back is a fresh install or to take out the time to fix any problem you encounter yourself.
The following 2 commands will upgrade your system to a newer release:
sudo apt-get update && sudo apt-get dist-upgrade
sudo update-manager -d

The 2nd command will open "Update Manager" and will notify you of a new release with something like this:

The software on this computer is up to date.
Ubuntu {new-release} is now available (you have Ubuntu {your-current-release}).

with a "upgrade" button. Click it and wait for it to finish.

The proposed option got moved to

at some point after 18.04


How do I gracefully shutdown a Juju Charm?

to destroy a unit

juju remove-unit unit_name/1

or for a service (kills all units, breaks relations, etc)

juju destroy-sevice

to clean up unused machines after either of the above (doesn't apply to local providr)

juju terminate-machine

at the moment (6/2012) the service does not receive notification of its impending destruction. when this capability exists the service will be asked to execute its stop hook prior to destruction.


bash: syntax error near unexpected token `do'

The error message complains about an unexpected do because you used it wrong: do is a reserved word used in for, case, while and until loops. As the preceding comment ends with for i in $* I assume you just forgot to add a line break there:

# now calculate the average of the numbers given on command line as cmd args
for i in $*
do
  # addition of all the numbers on cmd args
  temp_total='expr $temp_total + $1 '
done

man bash/SHELL GRAMMAR/Compound Commands explains how to build for and other loops. If you simply want to loop over every argument bash also supports a short form, I'll combine it with bash Arithmetic Expansion here:

# now calculate the average of the numbers given on command line as cmd args
for i
do
  # addition of all the numbers on cmd args
  temp_total=$((temp_total+i))
done


Why standard output is not printed on command line?

Well the g++ command compiles the program. You also have to link and build the program.

Try gcc -o program Program.cpp

After that you'll have to run it:

./program

Also, you forgot using namespace std;


Boot-repair on legacy mode for Ubuntu 20.04

In my case:

Create a USB stick with the same Ubuntu version as the one you want to repair.
In Acer bios menu, make sure you have secure boot enabled, but remove the Password on boot option (so as to be able to reboot often, see point 2.).
Reboot many (>10) times until seemingly at random, my key was recognized as bootable medium (if you are in the F12 menu, select the key manually, if you are in the F2 boot menu, at least put the key in first spot of the list, and wish yourself good luck for the coming reboots).
Make sure there is space (>X Gb, >10%) left on the partition you want to boot into (>9 Gb,\dev\sda2 for me). Make sure you have a fat32 partition flagged as boot and esp on the same same disk (you can verify that with Gparted from the stick).
Install boot-repair on the live session.
Run advanced boot-repair with checked: GRUB options > SecureBoot and GRUB options > Purge GRUB and reinstall it and GRUB location > check separate /boot/efi partition: sda1. This will analyse the disk, and end up giving you commands to paste in the command line (do that):

sudo chroot "/mnt/boot-sav/sda2" dpkg --configure -a
sudo chroot "/mnt/boot-sav/sda2" apt-get install -fy
sudo chroot "/mnt/boot-sav/sda2" apt-get purge -y grub*-common shim-signed

Then, click Forward: In my case, this resulted in an error: GRUB is still present. Please try again.

Run advanced boot-repair with: default options, but uncheck separate /boot/efit partition and check Place GRUB into sda. For me, this resulted in the error GRUB is still present.
Despite the error, try rebooting now without the stick.


Can you update from Ubuntu 12.04.1 to 14.04.1 on powerpc?

Under most circumstances you can complete this without any problems, although problems can occur and it is recommended that you backup you hard drive before doing the backup.

Hope this helps!


How to enable the Broadcom wireless module in Dell new XPS 13 with kernel newer than 3.14?

On my 3.16.0-xx system, the module builds and loads with:

sudo apt-get update
sudo apt-get install bcmwl-kernel-source
sudo modprobe wl

I haven't the device, so I can test no further. Please let us know.


How to write a shell pipeline to print the group owner of all sub files a directory?

You don't need a shell pipeline for this - the find command's -printf action can output the group information:
  %g     File's group name, or numeric group ID if the group has no name.

Add %p if you want the filename as well:
find path/to/dir/ -type f -printf '%g %p\n'

Same thing, but using the external stat command:
find path/to/dir/ -type f -exec stat -c '%G %n' {} +


How can I enable AnyDesk Unattended Login on i3WM?

Basically, after doing some research on my own, both on the net and this site, I got into the lxpolkit tool, among a bunch of other stuff related to policy kit and these things.
Installing lxpolkit now provides a Graphic User Interface to insert the proper elevated user password in order to gain access to the privileges I couldn't reach before.
Now, everytime I wish to commit some changes to the "Security Options" from within AnyDesk's main window, I get a small window asking for the user's password, after which I can change everything.

Somehow, and having in consideration that this tool is designed for LXDE, this is the only solution working for me on i3WM. Maybe someone wish to add some explanation about?
As for me, I am pleased with the solution, which I write here just in case somebody else is trying to find a solution.
BTW: This tool now also allow me to elevate the user privileges for other tools like code/codium when trying to edit the /var/www/html/ public files, which are read with ease but needs to run elevated privileges to write'm down on disk again.


I use a symlink named "MountedFolders" which points to ".gvfs".

Since you mentioned creating something with python, you could create a python program that uses inotify to monitor ".gvfs" and creates symlinks in "~/mounts"


I too have this problem. After searching here and there and trying several hacking, I found that this actually is a bug. The bug has been reported to both Gnome mailing list and launchpad. Here is the two links of the bug.

Gnome Mailing List
Bug #1565780 on Launchpad
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1274740 (related)

In the meantime, I found that I had a package gtk3-nocsd from webupd8. After removing that package (sudo apt-get remove gtk3-nocsd) I could at least enabled the Menu Button for Preference, but clicking it doesn't work.
Until the bug is fixed, you can control Nautilus preference this terminal way:

Set default folder view to List View
  gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'

Set default folder view to Icon View
  gsettings set org.gnome.nautilus.preferences default-folder-viewer 'icon-view'

Sort by Name
  gsettings set org.gnome.nautilus.preferences default-sort-order 'name'

Sort by File Size
  gsettings set org.gnome.nautilus.preferences default-sort-order 'size'

Sort by Type
   gsettings set org.gnome.nautilus.preferences default-sort-order 'type'

Sort by File Modification Time
   gsettings set org.gnome.nautilus.preferences default-sort-order 'mtime'

Sort by File Accessed Time
   gsettings set org.gnome.nautilus.preferences default-sort-order 'atime'

Open with Single Click
  gsettings set org.gnome.nautilus.preferences click-policy 'single'

Open with Double Click
  gsettings set org.gnome.nautilus.preferences click-policy 'double'


"Failed to fetch ... Hash Sum mismatch" error when I try to upgrade Ubuntu 16.04 to 18.04

Upgrade Ubuntu, please follow the steps below

STEP 1: UPDATE UBUNTU 16.04 SERVER

Before upgrading to Ubuntu 18.04, you should first update the current 16.04. It’s recommended to update/upgrade all installed packages before upgrading. To update Ubuntu, connect to the server and run the commands below:

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove

STEP 2: INSTALL UBUNTU UPDATE MANAGER

After updating Ubuntu 16.04 server, run the commands below to install update-manager-core if it is not already installed.

sudo apt-get install update-manager-core

Then open the update-manager configuration file and make sure the Prompt line is set to lts

sudo nano /etc/update-manager/release-upgrades

Confirm that the Prompt is equal lts

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.
Prompt=lts

If not, change it to lts and save the file.

STEP 3: PERFORM UBUNTU 18.04 LTS UPGRADE

Now that your system is ready, run the commands below to begin Ubuntu upgrade to the latest development release..

sudo do-release-upgrade -d

Follow the on-screen instructions…. y = yes and N= No. When prompted whether you wish to upgrade type y for yes.

Do you want to start the upgrade?

1 installed package is no longer supported by Canonical. You can
still get support from the community.

2 packages are going to be removed. 64 new packages are going to be
installed. 394 packages are going to be upgraded.

You have to download a total of 234 M. This download will take about
1 minute with your connection.

Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.

 Continue [yN]  Details [d] y

Wait for all the newer packages to be downloaded… this may take a while depending on your internet connection speed. After all packages are downloaded, your system will begin upgrading immediately….

Once new packages have finished installing, you’ll be asked whether to remove obsolete packages. Type y here. If you have a system that you have customized, you may wish to enter d to view the list… just in case you may need to reinstall..

Remove obsolete packages?

53 packages are going to be removed.

 Continue [yN]  Details [d]y

Wait for the process to complete, the reboot to finish.. you’ll be notify to reboot.

Restart required

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] y

When everything is setup correctly, you system should be upgraded to the latest Ubuntu release.

Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-19-generic x86_64)

Link --> UPGRADE UBUNTU 16.04 LTS TO UBUNTU 18.04 LTS SERVER


Tool/Procedure To Determine OS Binary Present On External Disk Partition(s)

From the comments...

For Ubuntu, if you look into the /boot directory in each partition, you'll find files encoded with the version information in the filename. Like so...

$ ls /boot
config-4.18.0-14-generic               memtest86+.bin
config-4.18.0-15-generic               memtest86+.elf
efi                                    memtest86+_multiboot.bin
grub                                   System.map-4.18.0-14-generic
initrd.img-4.18.0-14-generic           System.map-4.18.0-15-generic
initrd.img-4.18.0-14-generic.old-dkms  vmlinuz-4.18.0-14-generic
initrd.img-4.18.0-15-generic           vmlinuz-4.18.0-15-generic

In this example, 4.18.0-15-generic is the most recent OS binary installed on this partition.

Extra credit...

To fix potentially messed up Linux partitions...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


Software Updater says 20.04.1 is available but won't upgrade

Some packages might be half-configured, or broken.
Try the following commands as superuser:

Verify all packages have been fully configured:
dpkg --configure -a

Update list of available package updates:
apt-get update

Do one of the following:

Upgrade outdated packages
apt-get upgrade

Upgrade outdated packages and prerequisites, prioritizing important packages:
apt-get dist-upgrade

Repeat Step 1 if necessary

Start release upgrade:
do-release-upgrade

Please follow prompts and respond with caution; because release upgrade cannot be interrupted, nor "undone".


How to hide desktop until application starts fullscreen

If you just need the browser and nothing more, I would propose writing a custom startup script.

#!/usr/bin/env bash
xsetroot -cursor_name left_ptr
exec your_chrome_call

This way you (after you (automatically?) log in) you will get a blank screen, with no possibility to interact and after that the fullscreen chrome


Problem with cryptsetup; Ubuntu doesn’t boot as usual

I just found that the two problems were not connected:

For the first one, the solution was here:
sudo swapoff -a
sudo update-initramfs -c -k all
sudo swapon -a

For the second one, I just switched back from X-11 drivers to Nvidia ones.


Wi-fi continually asks me to reenter the password; how do I fix this?

I had the exact same problem with my Dell XPS...I found this:

https://askubuntu.com/a/125626/57890

The solution at the above link basically takes you into the settings of the wireless connection, to a spot where you can enter the password and save it. It worked for me.


First thing to do is back up any important information.

As explained in an answer HERE, you can't modify the systems's partitions (and parent extended partitons, like /dev/sda11) when the system is using them - so you need to modify the partitions from outside the system - the Ubuntu install disk should do for that. So first you need to boot from the disk, and open GParted.

Note about Gparted: Once you initiate a task, you must click the green check mark to execute the task. You should only do one of these tasks at a time for this session.

Now that you are booted up in a LIVE USB and using Gparted, you can navigate to the (sda7) and delete this partition, making sure that you back up any data on that partition first. This will leave a grey area that says UNALLOCATED.

Net you will need make sure that this empty space is right next to your root partition (sda11) on the RIGHT of the home partition. If there is a small partition called SWAP in between (or any other partition in bewtween) it will need to be moved to the right of the grey unallocated space.

Note - Do not move your home partition, or you will need to fix your BOOT partition.

Now that the home partition and the unallocated space are contiguous, you should be able to resize the home partition (sda11) by clicking on on it, then clicking resize, then by dragging the right edge of the rectangle in the pop up menu. After you tell GParted you want those operations to be done, you have to tell it to apply them (click the green check mark). It may take a while, but it should work without problems.

After this reboot into your normal install of Ubuntu (not the live disk), and check the partitions again with Gparted to ensure everything went as planned.

NOTE: Normally things go smoothly i.e without any problem but sometime they don't and therefore it is important that you backup your data before making any changes to your hardisk. Its better to be safe than sorry!


Microsoft Teams and Wayland - will screen sharing be fixed in 21.04?

The problem does not lie with Ubuntu nor Linux.
Teams is an app built on the electron framework, so basically it is one package consisting of html5 with javascript running on chromium. This makes it possible to use it on any platform that can run chromium.
Problem is, wayland support for chromium is incomplete and buggy. Therefore on wayland it is forced to use xwayland. This further reduces the possibilities of things like screensharing.
In short, for now use Xorg if you have to make full use of electron based apps like Teams.
Wayland will eventually work as soon as chromium has full support of it and all electron apps have been upgraded to use that version of chromium.


How do I uninstall ubuntu (installed alongside Windows 8)?

If using old BIOS with MBR, delete the Ubuntu partition from Windows 8 Computer Managment, and reinstall the MBR boot code. To restore the default Windows 8 MBR Code, google for fixmbr or bcdedit (Boot Configuration Data).

If using UEFI with GPT, delete the Ubuntu partition from Windows 8 Computer Managment, and use bcdedit (Boot Configuration Data) to alter the UEFI System Variable.
here is a question that I asked


Cannot connect to internet or even ping from "Bash on ubuntu on Windows"

The problem you're having is because Microsoft still develops bash on Windows, and the network capabilities on Windows 10 are not fully implemented yet.

Though it was widely believed that it is implemented to more or less usable state, so of course there's a bug report. You can track the progress of solving the bug here, be sure to read comments of sunlimit user, they is a Microsoft employee, and explains the problem.

I'd recommend to make some kind of activity there — the more peoples interested, the faster it get fixed.


The easiest way to solve that is to just set a static IP for the NAS. Or you can configure the DHCP-Server so that the NAS always gets the same IP.

After that you can edit the /etc/hosts file and add the NAS (name and IP) so you can use the name BuffaloNAS.


How to switch remotely from Ubuntu and Windows 7 and vice versa?

Good that you already solved the part of switching from Windows to Linux.
The other direction is not that hard:

There is the command grub-reboot that does just what you need - see below for detais:

If your grub menu entry for the system you want to boot is "Windows", you would just do:

$ grub-reboot Windows

If you configure the hardware to boot after a power failure, I see no reason the computer could not just stay running.

But if not, it should be possible to wake it up with wake on lan (WOL), booting the system you configured before shutdown.
The WOL works with "special" network packages that can not be routed outside the local network, so there is a device needed in that network, like a some DSL router or any computer.

From man 8 grub-reboot:

 GRUB-REBOOT(8)     System Administration Utilities      GRUB-REBOOT(8)

 NAME
        grub-reboot - set the default boot entry for GRUB, for the next
        boot only

 SYNOPSIS
        grub-reboot [OPTION] MENU_ENTRY

 DESCRIPTION
        Set the default boot menu entry for GRUB,  for  the  next  boot
        only.

        [  ...  ]
        --boot-directory=DIR
               expect  GRUB images under the directory DIR/grub instead
               of the /boot/grub directory

        MENU_ENTRY is a number, a menu item title or a menu item  iden‐
        tifier. Please note that menu items in submenus or sub-submenus
        require specifying the submenu components  and  then  the  menu
        item  component.  The  titles  should  be  separated  using the
        greater-than character (>) with no extra spaces.  Depending  on
        your  shell some characters including > may need escaping. More
        information about this is available in the GRUB Manual  in  the
        section about the 'default' command.
        [  ...  ]

Run man -k grub for a list of related command - eg. grub-set-default may help you too.


well you don't have to much because Ubuntu is stable and fast , if you want to improve the boot speed and system speed . then   you can take a look at   over-clock your CPU  (google it )
(you will need a good cooling system something like water-cooled and there are chances that you will ruin your PC )
 get a ram upgrade , shift to an ssd . Ubuntu will harness most of your hardware in a proper way but there are hardware speed limits like CPU speed , ram speed and hard disk speed . these are some factors that will effect you speed . Even the physical hardware factors count too . thats why you have CPUS, rams and ssd of different speeds . i recommend you not to change any thing because you may ruin you hardware beyond repair and remember  CPU OVER-CLOCKING IS A SERIOUS MATTER DO SOME RESEARCH ON OVERCLOCKING IF YOU WANT TO DO IT


Do you have an installation cd? You could also download driver from the manufacture site.

Please provide details of the hardware.


How to setup local Ubuntu server that provides security updates to ubuntu desktop systems?

I think what you want to do is to use apt-mirror to create a local mirror of another repository, which can then be used by other machines on your network.

Outdated but probably still useful instructions to do this can be found here.

Edit: Slightly more up-to-date tutorial is found here


Is it recommended to store files on NTFS partition?

Sometimes an NTFS partition is the only way of sharing files between Windows and Linux. For example bash scripts that I run in Ubuntu 16.04 / 18.04 and Windows 10 WSL are stored in in an NTFS partition mounted in Ubuntu as /mnt/e/bin/. On the Windows side the NTFS partition it is accessed as drive E:\

I have run into anomalies where I have to create the bash script on the Ubuntu site first to get proper editing permissions from the Windows 10 WSL side. This could be my system setup fault though and I honestly haven't cared enough to research it that deeply.

Ubuntu running under Windows 10 WSL does recognize and can change Linux file permissions properly but cannot access ext4 partitions, only NTFS partitions.

There is a Windows add-on to read/write ext4 partitions but there are/were data corruption problems in 64-bit mode. As such I stopped using this Windows 10 add-on.

Ubuntu seems to have no problems updating Windows NTFS partitions for changing the Linux file permissions. As far as changing Windows file permissions it is rather complicated and I'll leave that up to you to research.


Try installing proper drivers for Touchpad and hotkeys. You should consider contacting the laptop vendor's website for help on this!


Keyboard / keymap problems with Xubuntu 12.04 + NX nomachine

Check the "Application Shortcuts" under Settings -> Keyboard.


Wired network - device not managed after upgrade to 17.04

As Zoltan Laczko mentioned, from NetworkManager 1.2.4 (ubuntu 16.10) all non-wifi/wwan device are treated as unmanaged (see his answer in a similar question Network Manager refusing to manage wired interfaces). A solution is to create an empty file:

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

... that will overshadow/overwrite the one in /usr/lib and then restart the Network Manager.


This is actually functionality you can attain by installing GNOME Clocks. You can do this by finding GNOME Clocks in Ubuntu Software, or you can manually install the gnome-clocks package with sudo apt install gnome-clocks. Once you have it installed, add a world clock to the list, and it should appear under the calendar. You may need to restart the shell (you can do this by pressing Alt+F2, typing r, and then pressing Enter, or you can log out and then back in.) in order to see these changes.


Forget shred (which doesn't work in all cases: no matter what the filesystem is, concurrent activity can throw it off), and encrypt any sensitive file. See these questions:
How do I encrypt my home partition?
How can I easily encrypt a file?
Is there a FileVault alternative for Ubuntu


Error when trying to activate FGLRX graphic propietary control ATI/AMD

I followed this link:-

Correct Way to install ATI Catalyst Video Drivers

The drivers are working pretty fine after the process. Once you're done with the process run the following command:-

fgl_glxgears

and you will see something like this:-

To view the graphic card properties use the following command:-

fglrxinfo

and the output would be something like this :-


How to force hiding the keyboard in Ubuntu Touch

Bjarne, I found this bug description, where Michael Zanetti suggests this command for analyzing of one situation:

gsettings get com.canonical.keyboard.maliit stay-hidden

so, I think this should work:

gsettings set com.canonical.keyboard.maliit stay-hidden true


How do you run XBMC on nvidia dual screen and stop it from taking over the keyboard and mouse?

I was searching for the same.

I found you question first, but after searching a bit more I found a working answer and came back here to share.

The page that has the answer is located:
http://blog.burlock.org/xbmc/77-fullscreen-xbmc-without-locking-the-mouse

A copy and paste of the basics:

First, you'll need to install a clever little application called "wmctrl", which permits us change certain window properties, such as hiding the border or making a window full-screen.

sudo apt-get install wmctrl

Next, you'll need the following script. I've called it "xbmc-fs" for obvious reasons. It's pretty self explanatory, so take a look at the comments. The only thing you might need to change is the fifth line where the display is selected. In my case, the TV is on display 1, so that's what I've set in the file. If yours is on display 0, then simply change the 1 to a 0 on line 5.

#! /bin/bash
# Launch XBMC in windowed mode, then use wmctrl to remove the titlebar

# Select display 1
DISPLAY=:0.1

# Start XBMC without blocking this script
xbmc &

# Wait for the XBMC window to appear
status=0
while [ $status -eq 0 ]
do
   sleep 1
   status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l | awk '{print $1}'`
done

# Force XBMC window to fullscreen
wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen

The only other thing you'll have to do is make sure that you've set XBMC to the same resolution as the monitor/TV it will be displayed on, otherwise certain events can trigger the XMBC window to revert to the size that's set in it's configuration.


How can I recover Windows/Linux dualboot after install Linux Mint?

Seems like you've done everything but the most basic: update GRUB. Boot into Ubuntu and run, in a terminal:

sudo update-grub

GRUB should recognize Windows.


Get kodi then install the add-ons Israel live, genesis Lazarus,  ccloud, and velocity. You have all the tv and movies you can imagine no websites no messy cache etc.


Installing Ubuntu 16.04 LTS on Acer Cloudbook 11

I do not know cloud books, but booting into a CD should be a BIOS feature. If the device does not have a CD, you should be able to change boot order to first boot from an USB CD drive. That should boot up an Ubuntu live CD. If the CD does not boot, its surely not a Linux issue.

If you get the live CD started, you could open "gparted" and check if your boot partition has the Flag "boot". If not this could be the problem. Then select the disk, right click and select "Manage Flags". Select boot and exit.

Another way is to just update and reinstall grub. Thats quick and easy and very often fixes things. Just open a terminal in your live system and enter

sudo update-grub
sudo grub-install /dev/sda

This is when you have one hard drive installed (in Linux drive numbering scheme is "sda" the first SATA HDD). That should give you back your start menu and the old Ubuntu installation. Once booted, do run the two commands again from your installation to get rid of a possible boot entries of the live CD.


Dark theme word processor for ubuntu or the web? Ideally that doesn't change every other application

Actually, LibreOffice is quite customizable.

You can go to Tools→Options→LibreOffice→Tools→Appearance to customize the colors of LibreOffice. There, you can basically change every color ever used in LO.


From my experience a few months ago, doing a

    sudo service network-manager restart

fixed my unstable and unreliable internet connection on Ubuntu 14.04.
 I also updated my kernel version.

By "no connection" do you mean no internet access or you're not being allocated an IP address from the DHCP server at all?


Do an lsmod in the terminal. It should return something like this

 Module                  Size  Used by

bnep                   17923  2
rfcomm                 38408  12
ip6table_filter        12711  0
ip6_tables             22528  1 ip6table_filter
pci_stub               12550  1
vboxpci                22882  0
vboxnetadp             13328  0
vboxnetflt             27211  0
vboxdrv               251814  3 vboxpci,vboxnetadp,vboxnetflt
ipt_MASQUERADE         12663  3
iptable_nat            13016  1
nf_nat                 24958  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      19084  4 iptable_nat,nf_nat
nf_defrag_ipv4         12649  1 nf_conntrack_ipv4
xt_state               12514  1
nf_conntrack           70103  5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT             12512  2
xt_CHECKSUM            12493  1
iptable_mangle         12646  1
xt_tcpudp              12531  5
iptable_filter         12706  1
ip_tables              18106  3 iptable_nat,iptable_mangle,iptable_filter
x_tables               21975  11 ip6table_filter,ip6_tables,ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_CHECKSUM,iptable_mangle,xt_tcpudp,iptable_filter,ip_tables
bridge                 79567  0
stp                    12811  1 bridge
ppdev                  12849  0
nvidia              10590610  40
btusb                  18160  2
snd_es1938             19610  3
gameport               15060  2 snd_es1938
snd_opl3_lib           18863  1 snd_es1938
snd_hwdep              13276  1 snd_opl3_lib
snd_mpu401_uart        13865  1 snd_es1938
bluetooth             148839  23 bnep,rfcomm,btusb
snd_seq_midi           13132  0
snd_intel8x0           33318  3
snd_ac97_codec        106082  1 snd_intel8x0
ac97_bus               12642  1 snd_ac97_codec
gspca_zc3xx            51066  0
gspca_main             27610  1 gspca_zc3xx
snd_rawmidi            25241  2 snd_mpu401_uart,snd_seq_midi
snd_pcm                80435  3 snd_es1938,snd_intel8x0,snd_ac97_codec
videodev               85626  1 gspca_main
snd_seq_midi_event     14475  1 snd_seq_midi
snd_seq                51567  2 snd_seq_midi,snd_seq_midi_event
snd_timer              28932  3 snd_opl3_lib,snd_pcm,snd_seq
snd_seq_device         14172  4 snd_opl3_lib,snd_seq_midi,snd_rawmidi,snd_seq
i915                  505159  1
snd                    55902  23 snd_es1938,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_intel8x0,snd_ac97_codec,snd_rawmidi,snd_pcm,snd_seq,snd_timer,snd_seq_device
soundcore              12600  1 snd
snd_page_alloc         14115  2 snd_intel8x0,snd_pcm
drm_kms_helper         32889  1 i915
drm                   192194  2 i915,drm_kms_helper
parport_pc             32114  1
binfmt_misc            17292  1
i2c_algo_bit           13199  1 i915
video                  18908  1 i915
w83627hf               26767  0
hwmon_vid              12658  1 w83627hf
lp                     17455  0
parport                40930  3 ppdev,parport_pc,lp
usbhid                 41905  0
hid                    77367  1 usbhid
8139too                23283  0
8139cp                 22636  0
floppy                 60310  0

If you don't see any MIDI related modules (the important ones are snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_ seq_oss,snd_seq,snd_emu10k1,snd_rawmidi),
then that means ALSA hasn't been configured properly. Try sudo modprobe for these modules, and see what results.


Thanks @danzel.

It turns out that it's where shown below. Was very confused about how 'grp:alt_shift_toggle' or 'grp_led:scroll' translates to <Alt><Shift>Left/Right.


that's probably because your password contains special characters and you will need to escape them with back-slash or just use quotes around
sqlplus 'username/password@//x.x.x.x:1521/SID'

please also note that, AFAIK, if your password was contains one or both of / or @ characters, you will still need to use back-slash escape only for them and back-slash itself \ too.


Yes, Android's USB tethering shows up as an USB RNDIS device, which has been supported in the Linux kernel for several years.


Vokoscreen works remarkably well on my system. The screencast in this post was made with it.

It has a number of options, a.o. to record a section of the screen, the whole screen, sound options and so on.

You'll have to see if it works in your situation for your specific requirements though.

Vokoscreen is in the repos.


Ubuntu 19.04 login loop after sudo reboot

This post's method 2 ended up solving my issue:

For reconfiguring:

sudo dpkg-reconfigure lightdm

Reinstalling:

sudo apt purge lightdm && sudo apt install lightdm

Or install gdm3 in place of lightdm:

sudo apt purge lightdm && sudo apt install gdm3


Issue after upgrading from 19.04 to 19.10 : logged in as gnome-initial-setup

Same issue here. I manged to figure out a way around it though.

In grub go to advanced Ubuntu options. Chose the latest kernel in recovery mode
Select root shell
apt-get remove gnome-initial-setup
reboot


It worked for Ubuntu 19.10 and VMware Horizon 5.4.1:

Step 1:

file VMware-Horizon-Client-5.4.1-15988340.x64.bundle

Step 2:

chmod +x VMware-Horizon-Client-5.4.1-15988340.x64.bundle

Step 3:

sudo ./VMware-Horizon-Client-5.4.1-15988340.x64.bundle

If you get gtk error, run the following command between steps 2 and 3:

sudo apt-get install python-gtk2


not able to login in ubuntu box with root password

Boot live media.

Make sure your local HD is mounted by browsing for it in nautilus.

Open a terminal: CTL + ALT + T

Get root and change it to whatever shell you want:

sudo su
cd /media/partitionname/etc/
nano passwd

navigate to the root line which you say looks like this:

root:x:0:0:root:/root:C

make it look like this to restore default:

root:x:0:0:root:/root:/bin/bash

Press CTL+X then Y then Enter
It should save.
Now type:

cd /
sync
exit
exit

Unmount the drive with the eject button in the nautilus window and reboot.

Easy peasy.

Now that it's correct you're able to log in as long as you don't run chsh -s c again.  If you want to change a user's shell you specify the full path to the shell as expressed in /etc/shells like chsh -s /bin/csh NOT this chsh -s c


If you do not know how to use that kernel module, I suggest you to stay away from it. In the past it has been used for disabling discrete video cards directly, but that does not make the kernel aware of the state change. The test_off.sh file should not be used as it's just wildly guessing some calls which may have negative effects on the hardware and software (e.g. crazy fans, lockups).

If you want to disable NVIDIA cads, have a look at Bumblebee which comes with bbswitch, a module for toggling the power of nvidia cards on Optimus laptops. More information about Optimus laptops can be found on Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

The bumblebee/stable PPA provides the acpi-call-tools package. After installing the PPA you can open a terminal, load the acpi_call module and perform an ACPI call by writing to the file. This requires root privileges.

Load the acpi_call module and define a convenience function for making an ACPI call:

$ sudo modprobe acpi_call
$ c(){ echo "$1" | sudo tee /proc/acpi/call >/dev/null && sudo cat /proc/acpi/call;echo;}

An example: execute the ACPI method \_SB_.PCI0.GFX0._DOD and retrieve the result of it:

$ c '\_SB_.PCI0.GFX0._DOD'
[0x80010100, 0x80010300, 0x80010410]


How to install Epson L350 scan driver on Ubuntu 16.10?

Copy the iscan-bundle-1.0.0.x86.deb.tar.gz to your Home directory and run

tar -xvzf iscan-bundle-1.0.0.x86.deb.tar.gz
cd iscan-bundle-1.0.0.x86.deb
sudo ./install.sh


How well does an Nvidia 9800 work with Unity?

I received the same message trying to upgrade from 12.04 to 12.10 on a Vizio ultrabook. But running 12.10 from a dvd (which I'm doing right now) seems to work fine. Have you tried running from a dvd or usb drive? I'm assuming if 12.10 runs fine from a dvd or usb drive, it should be fine after being installed.

This is the only info I have on the graphics controller in the Vizio:

VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)