Error running Libreoffice 6.0.5. Did ubuntu 18.04 fix itself after I looked up the version number?

Hi i stumbled upon this one:
https://bugs.documentfoundation.org/show_bug.cgi?id=118373

The first part of your question about why the error message changed:
Yes after you did a software update, some previously missing dependencies may have been declared, and thus the library libuno_sal.so.3 was installed.

The second part is a bit more mystery:

My assumption is, that Libreoffice starting from some point in time to at least version 6.0.7-0ubuntu0.18.04.2 was compiled with libxmlsec1 1.2.26 but in Ubuntu 18.04 the current version of libxmlsec1 is still 1.2.25-1build1.

Libreoffice does not load that library on every call, and if your terminal command does not load an ODS for example, you dont see this message.

If you try to open a Calc sheet for example, i assume you will still see this message, until the devs of libreoffice push a solution, to silence the warning, or solve the dependency issue.


DropBox follows symbolic links and treats them as directories. It's really useful for backing up without having to move files and directories into your DropBox directory.

$ ln -s ~/Documents/ ~/Dropbox/Documents


Cinnamon not loading properly, maybe Gnome instead?

That looks like gnome-classic to me.

At the log in screen you should be able to click the little circle next to where you put in your password and a list of options will drop down. One of them should actually say  the word Cinnamon.

Cinnamon need graphics acceleration, so if you select Cinnamon with out the right graphics, you will end up in Gnome fallback mode.


Will Haskell Platform be available in 10.10?

Yes, it's already packaged and released in maverick (the development branch of Ubuntu):

$ rmadison haskell-platform
haskell-platform | 2010.1.0.0.1 | maverick/universe | source, all


Why ID card reader is not working in Ubuntu 12.04, 12.10? Using Omnikey3121

It WORKS!

It was not working because the driver is not correct. So I installed this one: https://www.hidglobal.com/drivers/14919

And now I have feedback from the card reader directly, where I get ATR values.

root@sun-M14xR2:~/Downloads/ifdokccid_lnx_x64-3.7.0# pcsc_scan
PC/SC device scanner
V 1.4.20 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.3
Using reader plug'n play mechanism
Scanning present readers...
0: OMNIKEY CardMan 3x21 00 00

Tue Apr 23 11:23:50 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card removed,

Tue Apr 23 11:24:02 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card inserted, Unresponsive card,

Tue Apr 23 11:24:04 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card removed,

Tue Apr 23 11:24:06 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card inserted, Unresponsive card,

Tue Apr 23 11:24:06 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card removed,

Tue Apr 23 11:24:15 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card inserted,
  ATR: 3B 98 13 40 0A A5 03 01 01 01 AD 13 11

ATR: 3B 98 13 40 0A A5 03 01 01 01 AD 13 11
+ TS = 3B --> Direct Convention
+ T0 = 98, Y(1): 1001, K: 8 (historical bytes)
  TA(1) = 13 --> Fi=372, Di=4, 93 cycles/ETU
    43010 bits/s at 4 MHz, fMax for Fi = 5 MHz => 53763 bits/s
  TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
-----
  TC(2) = 0A --> Work waiting time: 960 x 10 x (Fi/F)
+ Historical bytes: A5 03 01 01 01 AD 13 11
  Category indicator byte: A5 (proprietary format)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 98 13 40 0A A5 03 01 01 01 AD 13 11
    Belgium Electronic ID card

Tue Apr 23 11:24:19 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card removed,

Tue Apr 23 11:24:22 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card inserted,
  ATR: 3B 98 13 40 0A A5 03 01 01 01 AD 13 11

ATR: 3B 98 13 40 0A A5 03 01 01 01 AD 13 11
+ TS = 3B --> Direct Convention
+ T0 = 98, Y(1): 1001, K: 8 (historical bytes)
  TA(1) = 13 --> Fi=372, Di=4, 93 cycles/ETU
    43010 bits/s at 4 MHz, fMax for Fi = 5 MHz => 53763 bits/s
  TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
-----
  TC(2) = 0A --> Work waiting time: 960 x 10 x (Fi/F)
+ Historical bytes: A5 03 01 01 01 AD 13 11
  Category indicator byte: A5 (proprietary format)

Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B 98 13 40 0A A5 03 01 01 01 AD 13 11
    Belgium Electronic ID card

Tue Apr 23 11:24:24 2013
Reader 0: OMNIKEY CardMan 3x21 00 00
  Card state: Card removed,

Tue Apr 23 11:24:26 2013
Reader 0: OMNIKEY CardMan 3x21 00 00

EDIT:

1) When the system boots run this once as root, so that the service is launched for sure:

#!/bin/bash
ps aux | grep "pcscd" | grep -v "grep"  | awk '{print $2}' | xargs kill -9;
pcscd -fd &

2) then as your normal user run

export DISPLAY=:0.0 && eid-viewer

3) insert the card and you should see it working


My feenix nascita mouse isn't moving my cursor. Ubuntu version appears to not matter. How do I debug this, and get the mouse working?

The problem is with the kernel itself, and its not just mouse or keyboard, but all USB devices (bluetooth, wlan, ...)

The solution is to upgrade to a newer kernel (newer then 3.11.0) which at this moment is not available directly.

Follow the directions at

http://ubuntuhandbook.org/index.php/2013/11/install-upgrade-kernel-3-11-ubuntu-mint/

to upgrade your kernel to 3.11.7 This solved all my USB related problems at least :)

Giray


how to run a software designed for windows 95 on ubuntu?

I'm not sure how far wine will get you, especially with games (which are notorious for using dirty tricks to increase performance on the Win9x line of OSes) but you have other options as well.

First there is DOSbox, which gives you a virtualized DOS machine in which you can install Windows 95.

An even more foolproof way is to install VirtualBox (available from the repos via "sudo apt install virtualbox"). This is a virtual machine that will let you run any OS in a completely virtualized environment, including Windows 95. I'm running VirtualBox with Windows 10 in it (because I simply have to have support for the applications required by the people who pay for my meal ticket) and it works very well. It also allows me to treat the whole Windows environment as a Linux application, which both sandboxes it and allows me to simply suspend or kill it should it misbehave.

Note, though, that any form of virtualization will come with a performance penalty. So whether or not either of the above two will give you enough performance for a smooth gaming experience is something you will have to try.

Wine does not fall into that category since it is neither an emulator nor a form of virtualization; it merely adds a Windows API to Linux but this has its limitations which means not every Windows app will run equally well. However, the ones that do run well do so without any noticeable performance penalty, or so it has been my experience.


How do we move a working directory to a different location?

If you want to move ipython-2.1.0 to ~/Documents/ipython-2.1.0 run:

mv ipython-2.1.0 ~/Documents/ipython-2.1.0

Your command was missing a space between ipython-2.1.0 and ~/Documents/ipython-2.1.0.


update-alternatives: error: alternative path ... doesn't exist

This fixed it:

dpkg --purge oxygen-cursor-theme
apt-get clean
apt-get -f install


You could maybe recipe an image, and save it and then use right click whit mouse and save it as desktop  background, and you can then reinstall lightdm again by enter this in the terminal:

 sudo apt-get install --reinstall lightdm-gtk-greeter

and then reconfigure lightdm by enter in the terminal this:

 sudo dpkg-reconfigure -a lightdm-gtk-greeter

and you can also install kde-full but it install a whole desktop called kubuntu a little difficult, and you can always autoremove it but it can change the background, and enter this in the terminal:

 sudo apt-get install kde-full

and you can also edit lightdm-gtk-greeter configuration file enter this in the terminal:

 gedit /usr/share/lightdm/lightdm.conf

and set a new wallpaper by editing background=(the picture that are resized), and remember to change the size of it, and it might work fine this two way.


Ubuntu 14.04.1 Stopped Detecting Wifi in laptop

I'm not sure what going on with your WiFi connection but have you added the correctly driver for you Ubuntu system?

You can check to see if your wireless drivers are being detected by opening up your Software & Update manage and click on Additional Drivers

There should be a list of appropriate drivers you can choose for your system

But if you can gain access to the internet try connecting your computer using a Land cable once you do this it will allow you to search online and find the correct drivers you need.


Can't upgrade to 16.04 / autoremove having issues

Through our chat here, we found that you have a repository that is not compatible with Xenial 16.04.  The actual repository shows that it stopped distros after 14.04.

W: Failed to fetch ppa.launchpad.net/kilian/f.lux/ubuntu/dists/wily/main/… 404 Not Found
W: Failed to fetch ppa.launchpad.net/kilian/f.lux/ubuntu/dists/wily/main/… 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

The repositories that are giving you errors need to be disabled or removed from your system.  The kilian/f.lux repositories need to be disabled.

The following locations are where the repositories are stored and can be disabled or removed from.

Screenshot from my system that will probably not match yours

Software & Updates in the Other Sofware tab

Unselect the repository that is giving you errors.

After the repository is unselected, re-run the sudo apt-get update then sudo apt-get autoremove to see if your problem has been fixed.

Hope this helps!


Ubuntu 12.10 installation hang on console screen : "Output LVDS-1 is running on CRTC 1 using output A"

I run the installation of Ubuntu 12.04.2 Selection English instead of French and everything went fine.


What is .Trash-0 and why does it act up every so often?

This is the place of your trash folder. Files that you delete with Del in your file manager are stored there. You can bypass the trash by using Shift+Del.

~/.local/share/Trash/*

eg:

$ ls -l ~/.local/share/Trash/
total 436
drwx------ 6 aboettger aboettger  20480 Apr 29 13:56 expunged
drwx------ 2 aboettger aboettger 184320 Mai  6 10:05 files
drwx------ 2 aboettger aboettger 233472 Mai  6 10:05 info

$ ls -l ~/.local/share/Trash/files/
total 564
-rw-rw-r-- 1 aboettger aboettger  35860 Okt 28  2014 libmlt++3_0.9.2+git20141027-1_amd64.deb
-rw-rw-r-- 1 aboettger aboettger 415338 Okt 28  2014 libmlt6_0.9.2+git20141027-1_amd64.deb
-rw-rw-r-- 1 aboettger aboettger 118896 Jun 20  2014 stackapplet_1.5.2-0~201406200416~ubuntu14.10.1_all.deb


using applications from one linux flavor to another on same pc

In general it is not a good idea to share application from one Linux flavor to the other.

Even if both flavors were base on Ubuntu we can not rely on all shared libraries being installed, or have the version needed for a given application. It may work fine but in case there are issues we are faced with a confusing and hard to debug situation.

In addition, most applications heavily depend on libraries that had already been installed by the distribution. The benefit from sharing application binaries would be rather minimal.

Only rarely a self contained application binary compiled for the same architecture may successfully be shared (this may e.g. be the case for proprietary software or some games).

Even sharing application's settings from our HOME may cause trouble if the distributions came with different application versions that may have a differing settings format.

The Virtual Box application should not be shared between distributions, as it depends on at least one kernel module loaded at boot. But of course you can easily share the virtual machines without issue, provided they are accesible from and registered in the corresponding Virtual Box installation.


Dark purple screen with graphic corruption at boot, using wubi

Press up, at least that is what works for me with my WUBI. Hope it helps.


Force UEFI installation of ubuntu dual boot alongside Windows10

I was able to solve this issue.

In BIOS settings, under startup, I selected BOTH (enabling UEFI and Legacy) and under preference, I selected UEFI first.

After this, I was able to install the ubuntu fine.

Thanks


Playing Warzone 2100: Latest version under Xenial?

A few relatively easy steps are required to get the very latest version of Warzone 2100 and run it under Xenial Xerus:

1. Activate the Source Repositories:

Follow this path to activate software sources:

Dash > Software & Updates > Ubuntu Software > Source Code

After clicking on 'Source Code' allow the repositories to reload.

2. Download the dependencies:

We use both the dependencies for the older Warzone 2100 package as well as some extras required by the newer version:

sudo apt-get build-dep warzone2100
sudo apt-get install checkinstall qt5-default qtscript5-dev libsdl2-dev libssl-dev

3. Download, compile, package and install:

The following single command will look after the rest of the installation, simply copy and paste the whole command into a Terminal window:

mkdir ~/Desktop/warzone_build && cd ~/Desktop/warzone_build && \
wget http://ufpr.dl.sourceforge.net/project/warzone2100/releases/\
3.2.1/warzone2100-3.2.1.tar.xz && \
tar xvf warzone2100-3.2.1.tar.xz && cd warzone2100-3.2.1 && \
./configure && make -j 4 && \
sudo checkinstall --pakdir "$HOME/Desktop/warzone_build" \
     --backup=no --deldoc=yes --pkgname warzone2100 --pkgversion 3.2.1 \
     --fstrans=no --deldesc=yes --delspec=yes --default

You may need to log out and then log back in before Dash sees the game but otherwise we are done :).

Unless of course you want some intro and 'cut-scene' movies for the game:

3. Optional: Install the movies:

There are some nice, high quality movies to download that integrate nicely with the game. Note that the high quality set is a reasonable download at 965MB.

First create the download folder if it does not already exist:

mkdir ~/.warzone2100-3.2.1

Then grab the high quality compressed movie files with the following single command:

cd ~/.warzone2100-3.2.1 && \
wget http://heanet.dl.sourceforge.net/project/warzone2100/\
warzone2100/Videos/high-quality-en/sequences.wz

And now we are really done!

4. Enjoy the game:

A screenshot of Warzone 2100 on my own Xenial installation:

References:

Warzone 2100: Linux Compile Guide
Warzone 2100: Movie details


Can my laptop run ubuntu? // Problems with the nvidia graphic?

First of all uninstall all currently installed NVIDIA software.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1.
Enter user name and password - execute :

sudo apt-get purge nvidia*
sudo reboot

Now install the latest official NVIDIA drivers for GTX 950M.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1.
Enter user name and password - execute :

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

Note :

Generally you should use the NVIDIA drivers from the Ubuntu repositories. But when there are problems with the drivers ... then you can install the latest official NVIDIA drivers from the GPU Drivers PPA. This often leads to properly working graphics, especially on new NVIDIA adapters.


19.10: gnome-shell crashes when using touch screen

While I do not know the details since I have no knowledge of or experience with Xorg code, I have what appears to be precisely the same problem on an HP Elitebook x360 1030 G2. I have only found discussion of this crash in a few places: your question right here, this GTK bug, where a Gnome developer insists it is someone else's problem, and this Xorg bug. It seems that there has been a fix merged into the X server for a year now, but this has only recently been backported (according to discussion on the Xorg bug). This makes my system more or less unusable with Gnome, and so I too am hopeful that the fix will eventually make it into Ubuntu. It appears that Ubuntu 20.04 will include a version of the package xserver-xorg-core with the fix, and so it is possible that updating to the daily releases will help for the moment. However, these daily releases are (in theory) less stable than standard releases, so please do back up all your files before going that route. Unfortunately, other than the daily release, your only good option is to wait for it to be fixed.


I had this issue for Debian.  After some searching, what worked for me was to edit the pxelinux.cfg/default file.

I have two lines in the default file as follows:

KERNEL debian-installer/amd64/linux
APPEND initrd=debian-installer/amd64/initrd.gz url=http://server/preseed.txt interface=eth0 auto=true priority=critical net.ifnames=0

What got it working was adding

net.ifnames=0

Hope this helps.


Intel Graphics card not seen by ubuntu 18.04

I have Lenovo Legion Y540 and I faced the same problem. To fix this there was a option in my BIOS to change from discrete graphic to switchable graphics and that the did the trick for me.


I see two possibilities:

boot from recovery mode (from there you can try to reverse what you previously did)
pres ctrl-alt-f2 (or whatever combination works for you) and work from CLI mode (since my guess is that the fault for the the black screen is from GUI).

In both cases I would try to exclude the other account and try to recreate it from the CLI paying attention to the options (man adduser).

Of course, there's always the possibility of re-installing the whole thing, especially if you have separate home and root partitions.


will it mount in windows? I had this once and the USB's disk format was bad. Only solution was to use gparted to completely reformat it (hopefully you won't have to).


Install and test OpenStack in 14.04 in only one computer using maas and juju

1) Install and test MAAS and JUJU

Juju, MAAS, and VirtualBox
Posted: 2012/05/22 in Cloud • juju • MAAS • Planet • Ubuntu

I’ve been meaning to use MAAS for quite some time. In fact, I’ve been excited about its release since I stumbled upon it a few weeks before its announcement in the package repo. I originally started by trying to install Xen on my Desktop as it’s what I’ll be using in production. That didn’t quite work out, so I took my chances with VirtualBox instead. I skimmed the Testing MAAS section of the documentation and felt confident enough that VirtualBox could handle something like MAAS. To start, I created a few MAAS machines in VirtualBox and attached the 12.04 ISO as the install medium. I started the first one to install a MAAS “master” server.

On the installation screen I selected the “Multiple server install with MAAS” option, selected “Create a new MAAS on this server”, and followed the defaults from there. Toward the end of the install I was given an address through which I could view the MAAS control panel, 10.0.2.5. Needless to say I was pretty excited. Of course, the address didn’t work and I quickly realized that I couldn’t actually access that network. Reviewing the Networking settings for the VM I made the following changes:

Attached to: Bridged Adapter
Name: eth0
Promiscuous Mode: Allow All

I updated each unit to reflect these settings. After the update, I had to re-start the VM and reconfigure MAAS to use the new address. This was done simply with:

sudo dpkg-reconfigure maas

Then I updated the IP to reflect the new IP address within my network. After doing so 192.168.5.27 became my MAAS Master, and http://192.168.5.27/MAAS loaded the control panel!

Taking notice of what the Dashboard says, I ran the following two commands:

sudo maas createsuperuser
sudo maas-import-isos

The first command prompted me for a user, password, and email. The second ran for several minutes downloading and creating different precise images. Once that was finished, my dashboard still showed warnings of impor-isos, but more importantly I was able to log in and see that I had 0 nodes!

This gave me the confidence to push forward. I started the “maas1″ VM to begin the install process. Like before, I selected “Multiple server install with MAAS”. The next screen provided the option to Enlist with the maas-master MAAS Server, so I happily selected that option when the machine suddenly SIGKILLs all processes then powers off. The victory was in the dashboard though, as it now reflected 1 node!

I continued doing this for each of the “maas” VMs until all were registered in the maas-master dashboard. Unfortunately, during installation, of one of the nodes lost my naming scheme (I was trying to do maas-node0, maas-node1, … for each MAAS node) and ended up naming one of the maas2, which threw off the naming for the rest of the nodes. That aside, all of the initial nodes I wanted to enlist did so without any issues.

Now it was time to get some Juju goodness pushing against these machines. The first thing I did was hunt down my MAAS Key. I stumbled through a few sections of the dashboard before landing in the account preferences. I also noticed a section for SSH Keys which I added my public key to (for good measure). I copied my MAAS Key and created the following stanza in my juju environments file (I couldn’t find documentation on the Juju site for MAAS setup but I found this URL from a screenshot of MAAS testing tools, which lead me to the answer).

environments:
   vb-maas:
     type: maas
     maas-server: http://192.168.5.27:80/MAAS
     maas-oauth: "MY:MAAS:KEY"
     admin-secret: super-secret-made-up-admin-key
     default-series: precise

When I first tried to bootstrap the MAAS setup, I received several errors. The port needs to be specified for Juju to connect to the provider. However, when I attempted to bootstrap again, I received a whole mouthful of errors about 409 CONFLICT. This is when I realized you need to Accept each machine in order for it to be provisioned. I stepped back and started reading the documentation as my nodes wouldn’t commission properly (or at all). It was pretty clear that I didn’t have the DNS set up properly. I recommend reading through the documentation to get a grasp on what you’ll need to do for your network. Once I installed maas-dhcp and configured that package, the ISOs needed to be regenerated to use the updated information. Running sudo maas-import-isos remedied this for me. After all that I needed to update each VirtualBox VM to include Network in the boot sequence. To do so, open each VM’s settings, go to System, and make sure the Network boot is checked and at the top of the list.

After doing that, boot each VM and the PXE DHCP should find your MAAS Master and set up the VM properly. Each machine will turn off after successful setup and MAAS Dashboard will update. The end result is quite glorious:

Now it’s really time to get Juju working with these lovely MAAS machines! After several non-starts I created a new account in MAAS Dashboard with the same username as my local user and updated Juju environments to use that MAAS Key. After completing that, I issued a bootstrap:

juju bootstrap

and checked the dashboard after the command completed.

The dashboard now shows one of the nodes allocated to Juju for bootstrapping. I had to manually start each VM, as for some reason they don’t respond to Wake On Lan. However, my goal of using Juju to deploy to MAAS was fulfilled. There is definitely room for improvement with the experience, but I have high hopes when we start throwing bare metal at MAAS.

Source: http://marcoceppi.com/2012/05/juju-maas-virtualbox/

2) Install openstack

For those unfamiliar with setting up an OpenStack dev/test env this can be a daunting task. There are a number of ways to do it and often it boils down to a developer’s preference on how they want to deploy it...so I’ll share my personal preference. :)

My OpenStack test env consists of VirtualBox running an Ubuntu 12.04 Server (Precise Pangolin) virtual machine with devstack. This guide assumes you’re comfortable installing Ubuntu on VirtualBox and know your way around the command line and git.

Download and install VirtualBox
The networking can be a bit tricky and I’ve already addressed this in the ServerFault question What is the correct network configuration for a devStack VM (virtualbox)?
Download the 64-bit PC (AMD64) server install CD of Ubuntu 12.04 and create a VirtualBox VM with it
Once it’s ready to go you should be able to login to it from your terminal

   ssh myusername@172.16.0.1

Once logged in, take a break, and have a look at the instructions for devstack
If you want a release branch of OpenStack (e.g. Essex, Folsom, etc.), you need to do things a little differently

   Essex:
   git clone https://github.com/openstack-dev/devstack.git -b stable/essex devstack/
   Folsom:
   git clone https://github.com/openstack-dev/devstack.git -b stable/folsom devstack/
   In the devstack/ directory create a localrc file that only uses release branches only
       Essex example
       Folsom example

If you want the latest and greatest master branch of OpenStack, in the devstack/ directory, create a localrc file like this
In both cases

   Change to your devstack directory
   Run stack.sh
   When it completes, configure Keystone to return the VM’s “public” IP
       Essex:
       sed -i "s#publicURL = http://10.0.2.15#publicURL = http://172.16.0.1#g" /etc/keystone/default_catalog.templates
       Folsom:
       mysql -uroot -pdevstack keystone
       update endpoint set extra = replace(extra, '"publicurl": "http://10.0.2.15', '"publicurl": "http://172.16.0.1') where instr(extra, '"publicurl": "http://10.0.2.15') > 0;
       Grizzly:
       update endpoint set url = replace(url, 'http://10.0.2.15', 'http://172.16.0.1') where interface = 'public';
   Kill the existing screen session (that contains all of the OpenStack services)
       screen -X -S stack quit
   Restart screen (with all of the OpenStack services)
       screen -c stack-screenrc

Outside of the VM, back on your local machine, you should now be able to follow the instructions in my post jclouds and OpenStack to verify that everything is working as expected

source:https://wiki.openstack.org/wiki/DevStackVirtualbox


If a Juju HA Cluster charm fails to deploy, will removing the HA cluster charm service mess up the service that was behind it?

It would be great to understand why your deployment of HA Cluster with Keystone failed; for most of the OpenStack API services (Cinder, Glance, Nova Cloud Controller and Keystone), a VIP (Virtual IP) is required to complete clustering - for example:

juju set keystone vip=192.168.22.1

The relation between HA Cluster and Keystone will fail to establish with a hook error if this is not supplied.  If you did not provide this prior to relating HA Cluster with Keystone, you can set it as described above and resolve/retry the relation that failed:

juju resolved --retry keystone/0

Hopefully this will resolve the error and result in a functioning, clustered Keystone.

As your cluster never formed, your should also be able to remove the relation between HA Cluster and Keystone; however your will have to manually resolve any failed relations before Juju will let you do this:

juju resolved keystone/0
juju remove-relation keystone hacluster

Note that if you had managed to form a cluster removing the relation will not de-cluster the service; it locks in the configuration.


Is the 2.4MB Wubi Installer blocked in China?

If you are in China and you tried to download Ubuntu from the Main Servers, you may get a corrupted copy because the servers are usually located in the US or the UK.

It is possible that the GFW can block the servers, though.  So I would suggest you to download from the cn99 mirror in China and do a full install with the official Ubuntu Image.

32-bit CD: ubuntu-12.04-desktop-i386.iso

64-bit CD: ubuntu-12.04-desktop-amd64.iso

Wubi:  wubi.exe


Any HTTPS clients without SNI support in repositories?

openssl s_client without specifying -servername:

echo | openssl s_client -connect ###.###.###.###:443 2>/dev/null | awk '/Certificate chain/,/---/'

vs

echo | openssl s_client -connect domain.name:443 -servername domain.name 2>/dev/null | awk '/Certificate chain/,/---/'


SSH key authentication looking at wrong place?

SSH keys work by having a Private key on your local machine, and a corresponding Public key on the remote machine.

So - when you ran ssh-keygen, you created 2 keys: the Private (~/.ssh/id_rsa) and the Public (~/.ssh/id_rsa.pub).

You need to copy the contents of the Pubic key file (~/.ssh/id_rsa.pub) from your Local machine, into the ~/.ssh/authorizedkeys file on the Remote machine. Just add it to a new line.

If you are logging into your Remote machine from a DIFFERENT Local machine, then you'll need to either copy the id_rsa file from the original machine to the 2nd Local machine, or (better) create another private/public key-pair for the 2nd Local machine, and then copy the Public key for the 2nd machine to your Remote server.

The Remote server can have any number of Public keys in ~/.ssh/authorizedkeys, and it's good practise (I believe) to have a different key-pair for each of your Local machines.

If you need to ssh from the REMOTE machine to another machine (say if you have to ssh back from the Remote machine to your laptop), then you would setup the REMOTE machine with it's own private/public key-pair, and copy the Remote machine's Public key to the Laptop's ~/.ssh/authorizedkeys file.

Think of it like this:
Every machine can have a doorkey (the private key), and every other machine has a keyhole (the authorizedkeys file) - if another machine has a keyhole setting that your key fits into, you can gain access. To work in the reverse direction, you need to setup another key and keyhole settings.
(probably not very well explained - but I hope it helps!).

The ssh-copy-id command is basically just a short cut command to save doing it manually.

I personally prefer to copy the public key manually just because I like doing things the hard way. ;)


Is there a way to rename multiple files in a one liner on terminal?

You can use mmv command to rename files

mmv '*txt_1D12123*' '#1exam#2'

You want to replace the the first occurrence of abc with xyz in all files in the current directory Please note that in the above example, I have enclosed the patterns in single quotes.


Dovecot  does not receive emails - Connection refused

Port 110 is for POP3 which is only relevent for connecting to a POP3 server for downloading email.

For email to land on your server, you're talking about SMTP. This is what both your client and external relays use to move messages around the internet. SMTP uses port 25.

Dovecot has nothing to do with how emails land on your server. For this you need a Mail Transfer Agent like postfix. This is a SMTP server that will listen for external connections and route emails accordingly.

Install that from the command line (it'll walk you through some configuration options). You'll want to research the configuration because it can get a little complicated and you don't want to be an open relay (that is, you only want to accept email for your domains, and not forward on emails from spammers)


You have three options. Your first option is bumblebee which is currently outdated although it is still under development and is reported as working in Ubuntu 16.04.

To install bumblebee, open up a terminal window and type the following:

sudo apt install bumblebee bumblebee-nvidia primus nvidia-381

Another option is prime which works fairly well but only seems to support nouveau and requires an X-Server restart to change the active GPU. To install prime, open up a terminal window and type the following:

sudo apt install nvidia-381 nvidia-prime

After installing prime, you should have a window that looks like this:

Your third option is to install reverse prime although I would not recommend that as it sets your NVIDIA GPU as your default GPU and will drain your battery like crazy.

sources:
Do I need to install Bumblebee for Hybrid Graphics system to enable Optimus on Ubuntu 16.04?


You can reset any settings by removing the corresponding folder in your home directory. For instance if you want to reset gnome panel and options:

rm -fr ~/.gnome2 ~/.gconf

If you want to remove options for a program, they'll either have a similar hidden file or a file in ~/.config which you can remove. Removing configs basically resets them to default.

You could also create a new user, which would allow you to compare the settings.


Install fail "Parted can't resize partitions managed by window dynamic Disk"

You need to have Windows convert the disk back to a basic disk ( in the disk utility ).


Why virtual console(Ctrl+Alt+F1) asked for password after logged into it?

The first time you entered your password was to log into your account.  The second time it prompted you for your password was because you entered a command starting with 'sudo'.

When you use 'sudo' you are telling the system to run the next command as if you are the root (admin) account.  When this occurs it asks for your password again as a security feature in case you decide you don't want to run the command or if it might be an unauthorized person (say you forgot to log out and another person attempted this).


Install Windows XP .iso on USB (Linux, Lubuntu)

I've used this universal usb installer successfully for putting an iso on a usb and to make it bootable:

http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

pendrivelinux dot com

Note: I have had issues using a Ubuntu system to successfully list all the drives (in particular, my USB I was using), but 100% success using it on a windows box.


Is it possible to show the bookmarks bar only in the home page using firefox?

Install this addon

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


The SVGs do not use any more CPU to render than PNGs do.

You can however, use PNGs if you wish instead of SVGs. Regardless of which you choose, you need to draw the icons at various different sizes to get the best results.


After trying too many things like.

Failed: Tried to format in OS X Disk utility.
Failed: Tried to format in windows 10
Failed: Tried to change to MBR

always returned error of input/output error.

So, the way that finally worked:
1. Download Ubuntu ISO
2. Execute Startup Disk Creator and load the ISO into the troubled HDD
3. boot from the new bootable HDD.

Hope it works for you, it helped to recover, reformat and finally become a usable disk.


How can I transfer files from Android to Ubuntu (and vice versa)?

I think, wired is always better than wireless.
Just plug in your phone to the PC via USB cable. And then on the phone you will get a prompt saying Allow access to phone data?, or something similar to this (depending on the brand and model). Click allow or something similar to this (depending on the brand and model).
In file manager, your phone will be visible in the side tab. Alternately, it will also be visible in the favorites bar. Just click any of those and you are good to go.
I have attached a screenshot showing both the locations.


Some methods (click the links for more information):

ssh
ftp
transmission a torrent (with a private tracker)
NFS (mounting a directory).
rsync
Samba
On-line services (U1, mediafire etc).

If you have acces to both machines NFS might be the best option.


How to use a hotkey shortcut to run a launcher?

Open keyboard shortcuts (System>Preference>Keyboard Shortcuts), and create the shortcut you want to add:

Right click the launcher and click properties. Copy the information from the launcher where it says command (in the launcher properties) to where it says type here:

Now save the keyboard shortcut (by clicking apply).


Pulseaudio randomly mute itself without a reason

I just had the same problem. Pulseaudio tries to be smart and mute music when you get a phone call - but you know what happens when programs try to be smart.

Edit this file as root: /etc/pulse/default.pa
Find these two lines:
###Cork music/video streams when a phone stream is active
load-module module-role-cork
Comment out the load-module:
#load-module module-role-cork
Stop pulseaudio with pulseaudio -k, then start it again.

You may have to restart your audio applications, but it should stop muting your music. It worked for me.

p.s. I know this question is old, but it pops up at the top of search results, so I'm answering it here.


you can recover your data on d partition  through recover software such as test disk or foremost, for safety I recommend to do this data recover with live cd such as Systemrescuecd.

but, i dont guarantee 100% data on your deleted partition was back..  you can read more about test disk and systemrescuecd on this website http://www.sysresccd.org/SystemRescueCd_Homepage or foremost on this web http://foremost.sourceforge.net/


adding a second command to a python script with args

Probably the "cleanest" way to solve this is to modify the convert.py script to clean up after itself.

An alias is a simple text replacement macro - so your example will expand to something like

python /filepath/convert.py && rm *.dng file1.RW2 file2.RW2 file3.RW2 ...

which is obviously going to be incorrect. For anything more complex than a simple text substitution you should use a shell function instead ex.

convert() {
  python /filepath/convert.py "$@" && rm -- *.dng
}

or perhaps

convert() {
  python /filepath/convert.py "$@"
  for f; do
    rm -- "${f%.*}.dng"
  done
}

(although you may want to choose a different name since there's already an ImageMagick command with the name convert).

See also Aliases - able to pass arguments?


How to patch the Heartbleed bug (CVE-2014-0160) in OpenSSL?

Security updates are available for 12.04, 12.10, 13.10 and 14.04 see Ubuntu Security Notice USN-2165-1.

So first you need to apply the available security updates, for example by running

sudo apt-get update
sudo apt-get upgrade

from the command line.

Do not forget to restart the services (HTTP, SMTP, etc.) that use the affected OpenSSL version, otherwise you are still vulnerable. See also Heartbleed: What is it and what are options to mitigate it? on Serverfault.com.

The following command shows (after an upgrade) all services that need to be restarted:

sudo find /proc -maxdepth 2 -name maps -exec grep -HE '/libssl\.so.* \(deleted\)' {} \; | cut -d/ -f3 | sort -u | xargs --no-run-if-empty ps uwwp

After that, you need to regenerate all server SSL keys, then evaluate whether your keys may have leaked, in which case attackers may have retrieved confidential information from your servers.


Ubuntu on SSD started from a Virtual Machine

If I am reading what you are saying correctly, you seem to be implying you have two disks in the laptop, one with Windows installed and one with Ubuntu installed.
Yes, you most hypervisors can run the OS off a physical disk. The exact procedure will depend on the hypervisor you use. Note that you will have to install the bootloader on the second disk so that when you pass the entire raw second disk with Ubuntu to the hypervisor for the guest, it will be able to boot inside the VM.


Does home directory encryption depend on gnome keyring?

Ubuntu uses eCryptfs to encrypt home.

I don't think gnome-keyring is related. You may want to look into the following file:

/root/.ecryptfsrc

For more information:

https://help.ubuntu.com/12.10/serverguide/ecryptfs.html


I don't know of any help but the C source is just about readable for a novice. You want to look at the user_interface.c file. You're looking for anything that uses keyval. You can see when it's being matched against CLUTTER_... keys and the comments help work out what it does.

For subtitles, V seems to be your key. See ~L413:

case CLUTTER_v:
case CLUTTER_V:
{
  // toggle subtitles
  if (toggle_subtitles (ui->engine)) {
    gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE
        (ui->subtitle_toggle),
        gdk_pixbuf_new_from_file (ui->subtitle_active_png, NULL), NULL);
  } else {
    gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE
        (ui->subtitle_toggle),
        gdk_pixbuf_new_from_file (ui->subtitle_inactive_png, NULL),
        NULL);
  }

  handled = TRUE;
  break;
}

I can't see anything that suggests it would let you change the aspect. It merely displays in the same format as the source video.


Install kvm using command

sudo apt install qemu-kvm

then execute these commands

sudo adduser $USER kvm

sudo chown $USER /dev/kvm

restart system once done


Wireless card unclaimed by driver, not working

Please open a terminal and run:

lspci -nn

Is your device enumerated Atheros Communications Inc. AR9300 Wireless LAN adaptor [168c:0030]? If so, I suspect it is not covered in Ubuntu 13.04. Please check:

modinfo ath9k | grep 0030

If it reports:

alias:           pci:v0000168Cd00000032sv0000185Fsd00003027bc*sc*i*
alias:           pci:v0000168Cd00000030sv*sd*bc*sc*i*
alias            pci:v0000168Cd0000002Asv0000185Fsd0000309Dbc*sc*i*
alias:           pci:v0000168Cd0000002Asv00001A32sd00000306bc*sc*i*

Then your device is covered. If it is, then load the module:

sudo modprobe ath9k

Does your device come to life?

If it is not covered, I suggest you upgrade to Ubuntu 13.10.

It appears that your device is covered by the driver ath9k. First, load it:

sudo modprobe ath9k

See if a wireless interface was created:

iwconfig

Make sure the wireless switch is correctly set:

rfkill list all

And check the log for errors, warnings, etc.:

dmesg | grep -e wlan -e ath


I have just tested GtkOrphan on my system.  And it seems that GtkOrphan is dumber than
apt-get autoremove -s or aptitude search '?obsolete' (see help page for full syntax)

On my system I see that only 1 package out of 18 is correctly marked as orphan by GtkOrphan.

As far I can understand the real obsolete or locally installed package do not have any http/https/ftp link in apt-cache policy ... output. It should have only /var/lib/dpkg/status in the version table.

So we can filter output of deborphan by using some scripting (modified version of this one):

cat > find_orphan.sh << \EOF
LC_ALL=C dpkg-query --showformat='${Package}:${Status}\n' -W $@ | \
fgrep ':install ok installed' | cut -d: -f1 | \
(while read pkg; do inst_version=$(apt-cache policy $pkg \
| fgrep Installed: \
| awk '{ print $2 }'); origin=$(apt-cache policy "$pkg" \
| fgrep " *** ${inst_version}" -C1 \
| tail -n 1 \
| cut -c12-); echo $pkg $origin; done)
EOF

sh find_orphan.sh $(deborphan) | grep "/var/lib/dpkg/status" | awk '{print $1}'

or do not use GtkOrphan at all and rely on Aptitude with its Obsolete and Locally Created Packages

or aptitude search '?obsolete':

i   rstudio                         - RStudio

The related bug may be the following - bug 1820906.


You need to define an alias for your command.

Edit your ~/.bash_aliases file and add your command there.

Example:

alias start-server='wine ./_server.exe'

More details -> here


use the following configuration item in the sssd.conf to control this:

entry_cache_timeout = {time in seconds}

e.g.

entry_cache_timeout = 30


How to open Password protected Excel file in ubuntu 12.04?

LibreOffice supports this feature out-of-the-box.

Details can be found here.


I use touchpad indicator, though all I want to do is turn it off when there's a mouse plugged in. There is a setting though that should let you set it to three fingers to do a middle click that. On my system I installed it thus:

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator

THere's a page about it here:
http://www.addictivetips.com/ubuntu-linux-tips/automatically-disable-touchpad-when-mouse-is-connected-ubuntu/


How to get back a missing Network menu in Ubuntu14.04?

Step1: Install a gksu package using terminal

sudo apt-get install gksu

Step2: Open Alt+F2 and type gksu. Then,click on gksu icon to open it.

Step3: Type nm-applet in a run command.

Step4: Restart your system.

Now, disappeared network  menu will be reappear.


Keyboard shortcut to change font color in Libreoffice to a specific color

Muru's suggestion is close, but use Character styles, not Paragraph styles.

Press F11 and click the icon for Character styles.
Right-click Default Style and select New...  Change the font color to red.  In the Organizer, name the font color Red, then press OK.
Tools -> Customize, select the Keyboard tab.  Find Alt+R and select it.
Under Categories, choose Styles / Character.  Under Function, select Red.  Then click the Modify button.

The Default Style Character Style is already black, so assign it to Alt+B.  Then press OK.
Finally, select words and press Alt+R.


Are Snaps installed system wide, or per user?

Installed snaps are available to all users.


Fix ownership of directory on Ubuntu 20 server

Generic permissions for website files:
chown apache:apache -R * # change to the user and owner set for apache
find . -type d -exec chmod 755 {} \;  # directory permissions: rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # file permissions: rw-r--r--

The WP hardening page states:

All files should be owned by your user account, and should be writable by you. Any file that needs write access from WordPress should be writable by the web server, if your hosting set up requires it, that may mean those files need to be group-owned by the user account used by the web server process.

/ The root WordPress directory: all files should be writable only by your user account, except .htaccess if you want WordPress to automatically generate rewrite rules for you.
/wp-admin/ The WordPress administration area: all files should be writable only by your user account.
/wp-includes/ The bulk of WordPress application logic: all files should be writable only by your user account.
/wp-content/ User-supplied content: intended to be writable by your user account and the web server process.

Within /wp-content/ you will find:

/wp-content/themes/ Theme files. If you want to use the built-in theme editor, all files need to be writable by the web server process. If you do not want to use the built-in theme editor, all files can be writable only by your user account.

/wp-content/plugins/ Plugin files: all files should be writable only by your user account.

Other directories that may be present with /wp-content/ should be documented by whichever plugin or theme requires them. Permissions may vary.

So cd into the Wordpress directory and do:
chown $USER:$USER  -R * # Let your useraccount be owner
chown www-data:www-data wp-content # Let apache be owner of wp-content

the last one is subjective as it depends on how you want to use it.

Now all WP files you can directly update through ssh and ftp using your username.
This will probably work (I used my cloud instance but I do not have WP)

My personal take:
NEVER directly update webserver files but do it indirectly and have the system itself do the updating. If you upload file to a specific directory you can upload all files you want as your user without needing to watch permissions

duplicate your website to for instance /home/$USER/website/

Use those files to edit

Then create a script that makes a backup and copies these files over to your actual website -without- changing permissions.

The 2 commands to do this look like this (adjust to your situation; I used broad selections (ie. the whole website)):
tar cvfz /u/backups/"$(date +"%Y_%m_%d_%I_%M_%p").tar.gz"  /var/www/
sudo cp -rp /home/$USER/website/ /var/www/


The error is produced by require() function. This function it will halt the php script when:

the given file (in your case /var/www/Prestashop/config/config.inc.php file) doesn't exist or
when the user that call the function doesn't have permission to read that file.

According with:

Warning: require(/var/www/Prestashop/config/config.inc.php): failed to open stream: Permission denied in /var/www/Prestashop/index.php on line 27

your issue falls into the second case. To prevent this, you have to change the permissions for /var/www/Prestashop/config/config.inc.php file so that to allow other users to read the file. You can do this by running the following command from terminal:

chmod +r /var/www/Prestashop/config/config.inc.php

If the error will appear after for other files too, follow the same method to change the permissions.

Check also the permissions for config directory. These must to be something like: drwxr-xr-x. If not, use this command in terminal:

chmod +rx /var/www/Prestashop/config


Anybody managed to run Linux and KVM Windows with a single passthrough graphics card?

Starting with this tutorial I got AMD 5450 passthrough of primary
graphics card (host runs headless) working with the below script.

Doing the standard vfio preparation
add video=efifb:off to cmdline otherwise efifb would grab the PCI bar before vfio.
Guest UEFI (OVMF image from apt-get install ovmf)
-vga qlx used and later qlx Monitor is disabled inside Windows (Display Settings)
no romfiles for AMD 5450.

I also tried with a NVidia 710b, however whas permanently stuck with "Code 43".
Probably because romfiles are needed there when trying to passthrough the primary card.

Script:

#!/bin/bash

b=$(pwd)

passthrough=0
qxl=1
uefi=1
ovmf=0
net=0
while getopts "bpQUon" opt; do
  case $opt in
      p) passthrough=1 ;;
      Q) qxl=0 ;;
      U) uefi=0 ;;
      n) net=1 ;;
      o) ovmf=1 ;;
  esac
done

cp ${b}/uefi/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd .
OPTS=""
# Basic CPU settings.
OPTS="$OPTS -cpu host,kvm=off"
OPTS="$OPTS -smp 4,sockets=1,cores=4,threads=1"
# Enable KVM full virtualization support.
OPTS="$OPTS -enable-kvm"
# Assign memory to the vm.
OPTS="$OPTS -m 4000"

# VFIO GPU and GPU sound passthrough.
if [ "$passthrough" == "1" ]; then
    #,multifunction=on,romfile=/mnt/nvidia_efi.rom" ,romfile=${b}/bioses/XFX.HD5450.1024.110612.rom
    #OPTS="$OPTS -device vfio-pci,host=05:00.0,multifunction=on,romfile=${b}/bioses/XFX.HD5450.1024.110612.rom"
    #,romfile=${b}/bioses/XFX.HD5450.1024.110612_1.rom
    OPTS="$OPTS -device vfio-pci,host=01:00.0,multifunction=on"
    #,romfile=/mnt/data-n0/vms-win/romfile_radeon.bin
    #,romfile=/mnt/nvidia_efi.rom"
    OPTS="$OPTS -device vfio-pci,host=01:00.1"
fi

# Supply OVMF (general UEFI bios, needed for EFI boot support with GPT disks).
if [ "$uefi" == "1" ]; then
    if [ "$ovmf" == "0" ]; then
    OPTS="$OPTS -drive if=pflash,format=raw,readonly,file=${b}/uefi/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd"
    OPTS="$OPTS -drive if=pflash,format=raw,file=${b}/OVMF_VARS-pure-efi.fd"
    else
    mkdir -p ${b}/hda-contents
    #OPTS="$OPTS -pflash ${b}/ovmf_pkg/OVMF.fd"
    OPTS="$OPTS -drive if=pflash,format=raw,readonly,file=${b}/ovmf_pkg/OVMF.fd"
    OPTS="$OPTS -drive if=pflash,format=raw,file=${b}/OVMF_VARS-pure-efi.fd"
    fi
fi

# Load our created VM image as a harddrive.
OPTS="$OPTS -hda ${b}/win10_uefi_cpu_host_qemu_vm.qcow2"
# Load our OS setup image e.g. ISO file.

#OPTS="$OPTS -cdrom ${b}/windows_10.iso"
OPTS="$OPTS -cdrom ${b}/virtio-win-0.1.141.iso"

if [ "$qxl" == "1" ]; then
    # Use the following emulated video device (use none for disabled).
    OPTS="$OPTS -vga qxl"
else
    # Use an emulated video device (use none for disabled).
    #  -vga none -device qxl
    OPTS="$OPTS -vga none -device qxl "
fi

OPTS="$OPTS -spice port=5900,addr=127.0.0.1,disable-ticketing "

# Redirect QEMU's console input and output.
OPTS="$OPTS -monitor stdio"

if [ "${net}" == "1" ]; then
    # Improve the network performance by utilizing virtio-net.
    OPTS="$OPTS -device virtio-net,netdev=net0,mac=de:ad:be:ef:33:4a"
    OPTS="$OPTS -netdev tap,id=net0,ifname=vmtap0,script=./qemu-ifup,downscript=./qemu-ifdown"
else
    OPTS="$OPTS -net none "
fi

#Bus 003 Device 004: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
#Bus 003 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub

# USB mouse
if [ "$passthrough" == "1" ]; then
    OPTS="$OPTS -usb"
    OPTS="$OPTS -device usb-ehci,id=ehci"
    OPTS="$OPTS -device usb-host,bus=usb-bus.0,vendorid=0x17ef,productid=0x6019 "
    OPTS="$OPTS -device usb-host,bus=usb-bus.0,vendorid=0x1c4f,productid=0x0002 "
fi
#if [ "$passthrough" == "1" ]; then
#    OPTS="$OPTS -usb"
#    OPTS="$OPTS -device usb-ehci,id=ehci"
#    OPTS="$OPTS -device usb-host,bus=usb-bus.0,vendorid=0x17ef,productid=0x6019 "
#    OPTS="$OPTS -device usb-host,bus=usb-bus.0,vendorid=0x1c4f,productid=0x0002 "
#fi

#OPTS="$OPTS -device usb-host,hostbus=3,hostaddr=4"
#OPTS="$OPTS -device usb-host,hostbus=3,hostaddr=2"

#OPTS="$OPTS -device usb-host,bus=xhci.0,vendorid=0x1c4f,productid=0x0002 "
#OPTS="$OPTS -device usb-host,bus=xhci.0,vendorid=0x1a40,productid=0x0201 "

#OPTS="$OPTS -usbdevice host:1c4f:0002"
# USB keyboard
#OPTS="$OPTS -usbdevice host:1a40:0201"

sudo qemu-system-x86_64 $OPTS


Konversation not working on Ubuntu 17.10

After some googling I solved the problem. I have located libKF5Crash.so.5

locate libKF5Crash.so.5

results in:

/usr/lib/x86_64-linux-gnu/libKF5Crash.so.5

I have added the path to /etc/ld.so.conf, the file now looks this way:

include /etc/ld.so.conf.d/*.conf
/usr/lib/x86_64-linux-gnu/

then

sudo ldconfig

then reboot. And now it works.


NoMachine script to automatically lock the screensaver when disconnecting not working

It was a typo. The article now contains the right instructions.

Create a new file called screen_lock.sh in /usr/local/bin/ containing the following:

(script) content

Set permissions:

chown root:root /usr/local/bin/screen_lock.sh
chmod 0755 /usr/local/bin/screen_lock.sh

Uncomment and modify the following key in /usr/NX/etc/node.cfg:

UserScriptAfterSessionClose  "/usr/local/bin/screen_lock.sh"


You have to reinstall full LibreOffice package by:
sudo apt-get install --reinstall libreoffice


I've fixed it by updating to 19.04.

Here's how I did it.

https://linuxconfig.org/how-to-upgrade-ubuntu-to-19-04-disco-dingo


I keep getting same problem and finally I got the solution which works every time for me:

boot your system with LIVE CD or Pendrive
open terminal and execute sudo fsck /dev/sdal (sda1 is generally used, if you have a different drive on which ubuntu is installed then give that)
It may prompt you several times asking "y or n", in that case keep pressing Y.
after process is over , reboot the system and remove the pendrive


What is the standard and best way to open a file or folder by command line

It would depend on how you want to open the file.  The commands you mentioned in your question and specifics for handing the target in a specific way.

First, the gnome-open command isn't available by default in the Ubuntu repository.  So it wouldn't be standard for the Ubuntu environment.  If you had a very specific reason for using something non-standard for Ubuntu, that would be your special occasion to change from the standard.

xdg-open is a generic method for opening files from the commandline, as if it was being opening by a click from the file browser.  The application or context of the file being opened would depend on what you have set as a default method for the file to be handled.

gvfs-open Is no longer a standard method in Ubuntu.  It has been replaced with gio open (an argument of the gio app).  It will have a limited number of methods for opening the destination.  If the destination file is an execution file you would have to specify the program to execute it (which can also be done via the shebang file header).

While clicking on helloworld.sh or helloworld.pl will open the file as a program, opening it with gio open helloworld.sh will open it as a text file, not as an executional file.

The latter is a an example that it would depend on how you want the file to be opened, or how you want to use the file.

In this case, if you want to execute the file you would open it with one of these options:

$ bash helloworld.sh
$ ./helloworld.sh

The quick answer is that way to open a file would depend on how you want to open it.


Does resizing/moving partitions in gparted delete files on the drive?

Resize & moving a partition can be two different things.

Expanding a Partition size should not delete any Data. However, reducing the size of a Partition could if it's smaller than the Data, power issues. I am assuming the your HD is solid.
However, there's no room for error. So, best would be to backup your Data & unmount the partition (restrictions) use  GParted and do your thing.

That's the beauty of Linux...you learn from research & playing around with your machine...that way you remember it forever


You can configure LightDM sessions by placing desktop files in /usr/share/xsessions.  For example, create file /usr/share/xsessions/app1.desktop:

[Desktop Entry]
Name=Application 1
Exec=/path/to/app1

Likewise create file /usr/share/xsessions/app2.desktop:

[Desktop Entry]
Name=Application 2
Exec=/path/to/app2

These are your two application sessions.

I assume your super-user would be using the normal Ubuntu desktop session.  I don't think you can configure LightDM to limit access to this session to the admin user, but you should be able to add an X session script that aborts the session startup if the kiosk user tries to access it. Try creating /etc/X11/Xsession.d/00-check-user with the following content:

if [ "$LOGNAME" = "kiosk" -a "$DESKTOP_SESSION" = "ubuntu" ]; then
    errormsg "user not allowed to access ubuntu session"
fi

You'll also want to remove unwanted sessions from /usr/share/xsessions as they may not run the full set of Xsession scripts and therefore could provide unwanted access to the kiosk user.

Hope this helps.


What is the difference between creating swap space and creating a filesystem?

These are two completely different things but somehow similar to each other, they prepare disk to store data in a different form.

A File System is a way of storing and retrieving data from disk. from Wikipedia:

  Without a file system, information placed in a storage medium would be one large body of data with no way to tell where one piece of information stops and the next begins. By separating the data into pieces and giving each piece a name, the information is easily isolated and identified.

To create these file systems we use utilities like mkfs. There are different type of file systems for different purposes:

  There are many different kinds of file systems. Each one has different structure and logic, properties of speed, flexibility, security, size and more. Some file systems have been designed to be used for specific applications. For example, the ISO 9660 file system is designed specifically for optical discs.

File systems like ntfs, ext4, fat, etc can be mounted and used for storing/retrieving data.

However we don't mount a swap area, it's the job of your operating system to work with it. It's not created to store data like we store it on disk using file systems.

From my other answer What does the mkswap command do:

  mkswap is somehow like other mkfs utilities, it prepares your file or partition to be used as a swapping space in a special form which it can't be thought of any other kind of file systems. it prepares a portion of your disk which might be upon a file system itself (a swap file) to save the memory pages directly into it.

Also interesting to read:
Does swap space have a filesystem?


You might want to edit the desktop entry file at /usr/share/applications/postman.desktop

Example postman.desktop file:

[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;

Reference gist

Also, I learned that they had updated the icon path in the latest releases. So, you can just go ahead and change the path of icon at .desktop file.


How to install php 5.5.12 on lubuntu while installing lampstack?

To build php5.5.13

Download the source file here or any other early version here
Extract the tarball:

tar -xzvf php.tar.gz

Change into the directory:

cd php-5.5.13

Install depencies:

sudo apt install build-dep php5

Configure php and add to /usr/local/php5513:

./configure --disable-debug --disable-rpath --enable-bcmath --enable-calendar -- enable-exif --enable-ftp --enable-fpm --enable-gd-native-ttf --enable-intl --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-pdo --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-xmlreader --enable-xmlwriter --enable-zip -- prefix=/usr/local/php5513 --with-bz2 --with-config-file-path=/usr/local/php5513/etc --with-config-file-scan-dir=/usr/local/php5513/php.d --with-curl --with-freetype-dir=/usr/local/php5513 --with-gd --with-gettext --with-gmp --with-iconv --with-imap --with-imap-ssl --with-xpm-dir=/usr/local/php5513 --with-vpx-dir=/usr/local/php5513 --with-kerberos --with-libdir=lib64 --with-libxml-dir=/usr/local/php5513 --with-mcrypt --with-openssl --with-pcre-regex --with-pdo-mysql --with-pic --with-png-dir=/usr/local/php5513 --with-snmp --with-xmlrpc --with-xsl --with-zlib --without-gdbm --with-mysqli

Test it:

make; make test

# Any errors please correct them

Install with:

make install

Copy sample php.ini file and change as desired:

cp php.ini-production /usr/local/php5513/etc/php.ini

Note:

To use other php configuration files do mkdir /usr/local/php5513/php.d/ and add them there.
To configure php to your taste and needs take note of step 5. Remove and add as you desire.

Source:

http://aarvik.dk/how-to-install-php-5-5-15-from-source-and-use-it-with-plesk/

https://www.brandonsavage.net/compiling-php-5-5-from-scratch/


Unity autostart hides dropbox icon while manual start does not

I think dropbox fires up earlier than unity.
Make a costum launcher in startup applications like

sh -c "sleep 45 && dropbox start -i"

It should work


Remove package installed with dpkg and dependencies

You can't totally remove libseccomp2 without breaking you system, because many essential packages depend on it.
But you can switch to another version of it e.g. 2.4.3-1ubuntu3.18.04.3 by running:
sudo apt install libseccomp2=2.4.3-1ubuntu3.18.04.3


Using filename substitution -- How to search for files with letters in this order?

To list them when you are in the directory where those files are in, you can use, as Nykakin said in this comment the following command:

ls *[dD]*[oO]*[gG]*

or, if you want each file on its own line, you can use:

printf '%s\n' *[dD]*[oO]*[gG]*

or, using grep:

ls | grep [dD].*[oO].*[gG]


These commands worked for my HP Pavilion g7 2269wm running elementary OS freya (based on Ubuntu 14.04).

Make LED orange

echo 1 | sudo tee /sys/class/leds/hp::hddprotect/brightness

Make LED white (default)

echo 0 | sudo tee /sys/class/leds/hp::hddprotect/brightness

After running the first command your LED should turn orange even when there is no disk activity and becomes a mix of white and orange with disk activity.

The second command will make it white again and turn off when no disk activty like default.

  This file is used by the lis3lv02d kernel driver to change the color when the
  laptop is dropped while also parking the hard drive.


Python/GTK3 app crashing on importing "indicate" (python-indicate)

Use

from gi.repository import Indicate

instead of

import indicate


Installed Ubuntu 12.10 but can't login due to GPU lock and I can't boot with nomodeset because I get no GRUB menu. What can I do?

you could try to boot and change to console with alt + ctrl + f2. then install the nvidia driver manually with:

jockey-text -e xorg:nvidia_current

then reboot


Protonmail-bridge install fails with unmet dependencies ttf-dejavu

ttf-dejavu is a transitional package which was dropped from the archive in Ubuntu 20.10. The maintainers of protonmail-bridge should have replaced that dependency with fonts-dejavu long ago.
To solve the problem for now you can download the focal version of
ttf-dejavu
ttf-dejavu-core
ttf-dejavu-extra

Then install the two latter first:
sudo dpkg -i ttf-dejavu-*

And then do:
sudo apt install ./ttf-dejavu_2.37-1_all.deb


Ubuntu 16.04 LTS Desktop freeze on restart/shutdown

Sorry if I'm late to answer this question.  But I found the culprit in the meantime.  It was the nouveau driver for NVIDIA that was causing trouble. So I switched to using proprietary NVIDIA drivers using this (for me only the PPA option worked out - the first option left my system stuck before login & the only way to get it back to desktop was to purge all nvidia drivers and start over).

After that I switched to Intel Onboard Graphics only using
nvidia-xconfig and there were no more freezes on restarting the system after resume.


I have installed kde plasma on Ubuntu 20.10 but after I logged out, there is no option to login back to kde. What can I do to have kde back?

It seems that you have incomplete installation of KDE Plasma.
The complete set of packages is provided by the kubuntu-desktop task package.
To install it use command below:
sudo apt-get install kubuntu-desktop^

then confirm sddm login manager selection, reboot and login to Plasma.


If you have already removed the ppa, you have to add it again for this to work:

sudo apt-add-repository ppa:mc3man/systray-white
sudo apt-get update

Next, purge the ppa, which will remove it from your sources and restore the packages to the official version:

sudo ppa-purge ppa:mc3man/systray-white

In case ppa-purge is not installed, do:

sudo apt-get install ppa-purge


Only auto-shutown if PC is not working/training AI

You can write a cron job that checks whether there's a process of yours running (pgrep -u $YOUR_LOGIN_HERE) every five minutes and then calls suspend or such.

You'll need to log out though for this to work.


What to do if I upgarde to the latest version and the only available kernel does not work?

Unless you manually deleted the old kernel, you will still have these on your machine.

Hold down the Shift key as you boot up and it will take you to the Grub screen. From here, you can choose which version of the kernel to boot into.

If you really don't need the newer ones you can find which kernel you're currently using by going to the terminal and running

uname -r

to see which kernel you're using. Then run

dpkg -l | grep linux-image

and note the kernel versions you don't need anymore (anything starting 3.5 I guess but if the kernel you're running works fine, you can get read of all the others). Then you can run

sudo apt-get purge linux-image-3.5.x-xx-generic

That should free up some disk space for you too


How to install Epson WF2010 on Ubuntu 14.0

The epson-inkjet-printer-201211w-1.0.0-1lsb3.2.x86_64.rpm file is going to be used for rpm-based distributions. If you can't install the .deb file through the Software Center, you can always attempt to install it via the command line using the dpkg package manager. Try running sudo dpkg -i epson-inkjet-printer-201211w_1.0.0-1lsb3.2_amd64.deb in the directory where the file is located.


I happened to have the same problem while testing Check Point snx.
In my case, the problem was that Java was not installed. The following command solved it for me.

sudo apt-get install openjdk-8-jre-headless


On a Win 7 machine, can I have BOTH 32 and 64 bit Ubuntu boots?

You can run 32-bit applications on 64-bit Ubuntu. You may simply need to install the ia32-libs-multiarch package, or if you require some libraries not in that package, simply installing the library by appending :i386 to the package name may allow you to install the 32-bit version alongside the 64-bit version. Note that not all packages support multi-arch yet.


Wubi is downloading file but I have full ISO

It is not recommended to use wubi in Windows 8, so please install Ubuntu on its own partition.

See:

Windows installer page on ubuntu.com
UEFI page on Ubuntu help wiki


From doing a quick search, it seems Windows 10 has SSH as an optional feature. This means the feature has to be installed before you are able to SSH into it.

Microsoft outlines those guidelines here: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

In your case you will want to install the SSH server feature. Install the SSH client if you would like to SSH from Windows to a different machine.


Cannot run commands in bash terminal - argument list too long

cp  ~/.bashrc  ~/.bashrc_backup    #  backup existing

cp /etc/skel/.bashrc   ~/.bashrc   #  copy default into own

source  ~/.bashrc                  #  engage new one

then investigate what is wrong with   ~/.bashrc_backup
cat  ~/.bashrc_backup

as you can tell file ~/.bashrc is a critical component to a healthy setup so changes there can brick the box until that file gets refreshed from default ... this might be a good time to get acquainted with how to "boot into recovery" which can give you a root owned terminal session from which you can fix issues


It depends upon the settings in Update Manager.

While in the Update Manager application, select the Settings button.
Under the Update tab, there will be a field labelled Notify me of new updates.

You will have three options to choose from:

Never
For long term support versions
For any new version

If you are running 12.04 and have option 2 selected, you will not be prompted to upgrade to 12.10(or later). With Option 3 selected, Update Manager will offer you the ability to upgrade to 12.10.

By selecting option 1, you will only be prompted for security updates and the latest package upgrades for your distribution(in this case 12.04)


Well, the best way in the sense that you will copy everything, is to make a bit a bit image of your disk. This has the big disadvantage that, even if you zip it, it will take a lot of space.

Better than explaining this myself, check how to do it using "dd" in this link. http://www.backuphowto.info/linux-backup-hard-disk-clone-dd


Ubuntu 16.04 - Using watch command to check file for output and stopping service

You can use inotifywait:

Put the following in a bash script and make it executable.

#!/bin/bash

set -e # make script exit on error

FILE_TO_WATCH="/home/username/twitter-failed.log"

# Truncate / Create empty file
> "$FILE_TO_WATCH"

# Wait for File was modified
inotifywait -e modify "$FILE_TO_WATCH"

# Do something after modified
service cups stop
send_yourself_a_notification

Alternatively, you could also use some loop like this, but I think it's better to use a specialized tool like inotifywait to do that:

until [ -s "$FILE_TO_WATCH" ]; do sleep 2; done && service cups stop


How do I bring back the initial 'stats page' (message of the day) after an upgrade to 14.04 server?

The stats you see are provided by a script that uses the output of landscape-sysinfo in the update-motd building process. It appears to not be installed by default in 14.04 anymore.

Install landscape-common to have the stats re-inserted into the motd. (It might take 10 minutes for the cronjob to update the motd after installation).


ubuntu 18.04 focus follows mouse before mouse pointer stops

So I've managed to find it.
Using dconf-editor, set to false:
org/gnome/mutter/focus-change-on-pointer-reset


Ubuntu re-install. Will the existing partition be overwritten?

That depends on what you pick during installation.

You get choices depending on your current setup. Pick "overwrite" current or something else and pick what the system needs to format or add to your new setup.

It will only give the choice to add to the current installation (aka. create a multiple boot) if there is free space on a partition.


What to do if my hard disk has bad sectors?

I'd personally not risk any valuable data on a disk that shows any signs of failure (of which a bad sector can be).

If the machine is under warranty (it's 12 months), I'd just send it back (after backing up the disk - they won't recover any data for you). If it's not, it might be worth opening it up to see if the disk itself has a longer warranty with its own manufacturer and doing that.

Otherwise just replace the disk. Small mechanical disks are cheap. Small SSDs aren't but they're superawesome.


Unable to access ubuntu-gnome after reboot: cryptsetup:Unknown fstype; bad password or options?

Okay so I finally found a solution all on my own. I made a live usb and tried mounting the disk from it. I was getting very similar errors to normal - that my filesystem type was unknown (LVM2_member or something). I had the hunch to try perform an fsck on the linux volume from within the liveusb environment, this found many errors. I rebooted it and voila! It worked.

Hope this helps someone in need later!


Newbie How to install on Compaq EVO XP laptop using usb

Instructions here:

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

You can let Ubuntu installer to do the partitioning. It's really easy.


pip installs packages for and apps written in Python which are published to PyPI, the Python Package Index.

apt-get installs software from  Ubuntu and third-party repositories. Many pip-installable packages have an equivalent apt package. For example, you can install the cherrypy Python module using either pip or apt-get:

pip install cherrypy

or:

sudo apt-get install python-cherrypy

Also, no, you don't have to type apt-get install after pip install.


How to configure power managment with tlp?

You can't install TLP and laptop-mode-tools at the same time (the tlp package conflicts with the laptop-mode-tools package to prevent parallel install).

I understand you want to have the equivalent of

NOLM_HD_IDLE_TIMEOUT_SECONDS=7200 # 2 hours
LM_AC_HD_POWERMGMT=1
NOLM_AC_HD_POWERMGMT=1

This translates to

DISK_APM_LEVEL_ON_AC="1"
DISK_SPINDOWN_TIMEOUT_ON_AC="244"

in the TLP configuration.

But i recommend against APM = 1. This could mean excessive wear caused by frequent start/stop cycles of the spindle motor and/or load cycles for the heads.

My recommendation for TLP is to try APM = 128 on AC (same as on battery):

DISK_APM_LEVEL_ON_AC="128"
DISK_APM_LEVEL_ON_BAT="128"

and not to change DISK_SPINDOWN_TIMEOUT_ON_AC because a spindown timeout of 2h doesn't make sense.

Then install the package smartmontools and monitor the HDD temp with

sudo tlp-stat -d

Output shows:

...
SMART info:
  ...
  190 Airflow_Temperature_Cel   =       28 [°C]

Refer to the TLP configuration docs for more info.


Bonding two wifi interfaces from command line

Connected to 8MB/s and 2MB/s connections... are the WiFi-adapters connected to two different network segments? Then it does not make sense to bond them. A bonded (teamed) channel is for increasing bandwidth and/or redundancy towards a single network segment.

Furthermore, bonding wifi is not really a good idea. WiFi uses a shared medium, which means that the two cards cannot transmit at the same time. In fact more clients may lead to reduced overall performance.

In addition the other end of the connection has to be aware of the bonding arrangement. It has to know that it has two ways to the same client, and how packets should be handled. As the AP will really only have one interface (WiFi) towards the client, I'm not sure if bonding actually makes any sense.

In short: What are you trying to do, and why do you believe bonding is the answer?


you should use the command winetricks, and then choose:

  install an application

Kindle for PC is there, in an older version that works on Wine.


Most basic input devices: What can we use other than a keyboard to make selections in the BIOS and during installation?

I have done a small research based on your interesting question, assuming to find nothing, but I have met these:

http://en.wikipedia.org/wiki/Keyer
http://en.wikipedia.org/wiki/Chorded_keyboard

These are funny devices for entering text like playing a piano, you use one or more keys together to enter characters. The first one has been designed for so called wearable computing.

Don't know if you're seriously looking for a replacement for keyboard, but if you're just curious you may read this : http://dl.acm.org/citation.cfm?id=54675.54695 . It looks like some large document on input.

Also voice recognition is an option, but for bios, not this decade I guess :)


useradd -g option doesn't seem to be working

That's because /etc/group shows the secondary group members (users), not primary ones.

-g in useradd sets the primary group the user would belong to, which must be only one; whereas -G adds user to single or multiple secondary groups.

You can check user's primary group (and secondary groups) along with IDs with the id command:

id <username>

As a side note, unless intentional, you should use the adduser Perl wrapper of useradd instead of using it directly.

Another note would be to use getent group instead of directly reading/parsing /etc/group for getting a group info e.g.:

getent group <group_name>


Thats one mean and big boot chart. There are also several process that are taking WAYYY too long to finish. My guess would be that there are still several things that got mixed up between upgrades. Did you check your Startup Applications:

System -> Preferences -> Startup Applications (UnCheck the ones you are sure not to use)

After that check for installed programs that you REALLY do not need.

But seeing as your tag says 11.04 am guessing you are using Ubuntu 11.04. Because this version is not yet finished or even RC you WILL have a big change to find problems when loading, using it, playing with it, etc... I do not recommend an Ubuntu version until it is ready. This is because of things that still need more work on, missing fixes, etc..


Banshee upstream is currently moving to libgpod, which is the same library that Rhythmbox uses, when this move is complete you should have better ipod support.

The Banshee team publishes stable releases in a PPA here:
- https://launchpad.net/~banshee-team/+archive/ppa

However I am not sure if they will backport all the necessary bits to this PPA when the move is complete.

Unfortunately the ipod support in libgpod as shipped in 9.10 is not as good as 10.04, this is one of those cases where an upgrade will probably help you out to get support in Rhythmbox, and in the future (10.10 timeframe) Banshee will improve in this regard as well.


Virtualbox ubuntu 14 - zbar barcode reader loads and camera shows indicator light, but see nothing

To get it to work try these steps:

Add your user to the vboxusers group:

sudo usermod -a -G vboxusers $USER

Then restart system to have it picked up.
In Virtualbox click on Devices at the top under Webcams select your device to add it.

That's how it worked for me:


Regarding

  Please unmount any logical partitions having a number higher than 5

Use
a live dvd session to do this. Not the current system. You can not alter partitions that are in use unless you un-mount them and you can not un-mount an active / partition. Using a live session dvd is preferred to avoid these issues.

If you do are using a live session please un-mount the partitions by right-clicking on the launcher icon or the icon on the desktop.


When I open a terminal and type set I get a strange output

What you are seeing are the functions defined in your shell, which is very similar to the variables, and also part of your environment.

Actually the environment variables were listed too - they came first, and scrolled out of the screen.

Try this command to be able to scroll up and down in the whole result:

set | less

You can also search with / and ?.

(I assume the shell bash here - details like the order of printing may be different in other shells.)


This will truncate the string, chop off an additional three characters, and add "..." if the length is longer than the value you supply as a parameter.

other_programs | \
awk -v len=40 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }'


Setting Wireless Printer HP Laserjet MFP M177fw

There are two parts to this answer only one of which I can help you with:  The first part is that you need to make sure that your printer is connecting to your wireless network. You can consult the owners manual for doing this.

For the second part:

On your computer, open a terminal window  - press ctrl+alt+t  Enter the command

hp-setup

This opens the HP Device Manager setup window.  It shows 4 options - choose the second (Network/Ethernet/Wireless network...)  Click Next

Your computer will scan the local network to see if any printers can be found - when your printer appears on the list, select it and click Next.  The program will then ask if you want to add a description to the printer name, or change some other parameters - you should be good to go from here.


Dual boot: Windows 10 update leads to ACPI BIOS Error (bug) (November 2019)

I was able to solve the ACPI BIOS Error (bug) by opening the editor when Ubuntu was selected in GNU GRUB Version 2.02 by pressing e. There, I removed acpi_osi= and the error was gone.

Now, however, another error occured regarding systemd.


Is it okay to use symbolic links in my web server?

There's nothing wrong with that, as long as the apache process can read the files in your home directory.

If you're on a development machine, you could just as well put your files under the /var/www directory or a subdirectory thereof, but you can also edit /etc/apache2/sites-available/default so that the line with DocumentRoot points to your /home/tim/Website/files_here folder.

There's also mod_userdir, an apache module that permits files in /home/<username>/public_html to be served.


Determining number of files in Ubuntu One

When you log in to the Website it shows how many files you have and how much storage they use. – Uri Herrera Jul 22 '11 at 12:47


How to change kernel parameter with GRUB2?

You are confusing "kernel boot parameters" with "kernel configuration parameters". To do what you want, even though you don't want to, you need to modify the kernel configuration file and re-compile the kernel.

Because they are compile time directives, it is not possible to change kernel configuration parameters via the grub command line. However, and depending on what they are, sometimes the users objectives can still be achieved via kernel command line in grub. For example, say my kernel configuration had CONFIG_X86_INTEL_PSTATE=y. I can still tell the kernel not to use the Intel P-state CPU frequency scaling driver via this:

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"

in grub. So even though it is compiled into the kernel, it will not be used.


First I would check to see what package APT is configured to install (out of the available options), you can do this with:

apt-cache policy nginx

e.g.

% apt-cache policy nginx
nginx:
  Installed: 1.10.0-0ubuntu0.16.04.2
  Candidate: 1.10.0-0ubuntu0.16.04.2
  Version table:
 *** 1.10.0-0ubuntu0.16.04.2 500
        500 http://nz.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://nz.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
        100 /var/lib/dpkg/status
     1.9.15-0ubuntu1 500
        500 http://nz.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://nz.archive.ubuntu.com/ubuntu xenial/main i386 Packages

This tells me that if I didn't already have nginx installed, apt would try and install the

1.10.0-0ubuntu0.16.04.2

version of nginx.
Then to install a particular - non candidate - package you can specify it as an option to apt-get e.g. from man apt ( I've truncated the output to make it easier to understand)

  SYNOPSIS
         apt-get ... pkg [{=pkg_version_number ] ...

e.g.

apt-get install nginx=1.9.15-0ubuntu1

would install the non-candidate version of the nginx package if that was necessary. Note you may have to do some of your own dependency management in this case, but not always.


While I'm not familiar with besu enough to point out why | less won't work, I may still suggest the good old way of command output redirection to a file, and cat its content with formatting of your choice.

'MyCommand' > 'SomeFile'

This also may help you document multiple outputs of that command for further analysis when repeating manually or scripting.


the advanced browser integration doesn't work

Wine doesn't integrate with Ubuntu's default applications. You need special setups for that which is not fault proof.

You should install Windows browsers in Wine to get the IDM integration work. Install Chrome or Firefox using Wine and try the IDM integration then.


How can I convert .mp4 files and .srt file to images based on subtitle's timeline?

there are two tools described here that you can use to convert videos with subtitles into suitable form for Kindle: http://www.mobileread.com/forums/showthread.php?t=231289


How to install old Ubuntu on an old desktop

You don`t want an old version, you just want a light version.

Old version have no updates or support (here or official) and the repository’s are off-line.

I would recommend Xubuntu or Lubuntu for your hardware, both are official Ubuntu, have light weight desktops (L is a bit lighter than X), they are modern and fast and designed for exactly your kind of dated hardware.

To answer your two direct questions in the edit

Does Ubuntu have any trouble handling multi-CPU systems, or should I expect it to work as normal?

If you are referring to physical chips, Ubuntu will handle them just fine.

Here is a question with a detailed answer on the subject of multi cpu.

Does Ubuntu natively support SCSI drives?

Yes it does there is a driver built right in to the kernel, should work out of the box on 14.04 or 15.10


How do I change keyboards from the command line?

You can find all the different keymaps in the following locations:

/usr/share/keymaps/i386/
/usr/share/kbd/keymaps/i386/
/usr/share/X11/xkb/symbols/

  To change the keyboard layout (e.g. to Spanish) in the Linux command
  line, type the following command:

loadkeys es

For X:

setxkbmap es

  To make these changes system wide, assuming you’re using Ubuntu, you
  can use the following:

sudo dpkg-reconfigure console-setup


http://projects.gnome.org/nanny/

There is a download link on there, that leads to this:
http://projects.gnome.org/nanny/data/nbl/nanny.nbl which I believe is what you are looking for.

EDIT: try this:
http://static.nannycentral.org/v/nannycentral/blacklists/blacklist.json

EDIT 2: Installed it myself. Everything seems as dead as hell. You should try something like safesquid, because Gnome Nanny is hopeless.


Fonts look bad in Microsoft Office using Wine

This does have to do with the anti-aliasing in Windows. It expects you to have it on in the OS, so they don't bother re-creating anti-aliasing in the Office Suite. If you disabled the anti-aliasing in Windows, it would look the same.

If wine's own font smoothing does not work, then I don't think it will. Here's a test to make sure its just the display that's wrong. Print something...does it look okay?

Maybe post a complaint on WineHQ under the Microsoft Office information; they may be able to help you more (and possibly fix the problem in their next update).

I have seen this problem too (on my own computer, I have Office installed as well). I learned to ignore it. Also try zooming in on the text to make it look a little better. Setting the view to page-width may help a lot.


How to mount Google Drive, without grive?

I think this may help you, it is an alternate to Grive tools.

Installation of "overGrive", the new Google Drive client:

Step 1:  Download the latest version of overGrive (.deb) here.

Step 2: Launch OneGrive from launcher.

Step 3: A window will appear - click on Connect account.
Then a  browser window will open for you to sign in to your Google account.

Step 4: At the end you will get a code.
Copy this code and paste it in the overGrive window at Account entry box and click validate.

Step 5: After setting your preferences (like location, etc.) click Start Sync.

Reference here


Ubuntu 20.04 usb not working (when running on battery)

To assist others (ignoring the whining).

On the T495 this is indeed down to TLP, disabling TLP and rebooting caused USB devices to work on battery alone.

For me the fix was to run lspci and find the AMD USB controllers.

06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1

Then add them to the RUNTIME_PM_BLACKLIST in /etc/tlp.conf

RUNTIME_PM_BLACKLIST="06:00.3 06:00.4"

Reboot - USB works on battery whilst TLP is still functional.  Therefore yes my original post was right, it does seem to be an AMD thing.


touchpad & keyboard not working ubuntu 18.04 lenovo n22

I have the same issue with a Lenovo Flex 3-1130, the only way to make them work again is to boot with an older kernel (4.15.0.29 instead of 4.15.0.139).
It seems to be an ACPI/IRQ handling issue.


Error while shutting down Ubuntu (installed in VirtualBox)

I was able to duplicate this multiple times over multiple installations of Ubuntu 14.04 (64bit).

  The instruction at 0x690ddc25 (or similar) referenced memory at 0x00000008 (or similar). The
  memory could not be read

VirtualBox 4.3.20
Host is Windows 7pro 64bit
Guest Ubuntu 14.04(64)
AMD Athlon 2 X2 260 Processor, 3200 Mhz
Display
ATI Radeon HD 4250

The known workaround is to uncheck "Enable 3D Acceleration" in VirtualBox display settings. Not a great one since it degrades performance.

The problem has been reported by users here:
https://www.virtualbox.org/ticket/12772

It has been reported on VirtualBox version 4.3.8 through current on Windows 7 and 8.1


Battery stops charging after 64% percent, HP Pavilion 14

Sometimes you just have to replug it

Here's my 1 week battery history:

When I first encountered the question above (not the day it was posted) I checked my own battery and was surprised it was only charged to 80% or so.

I unplugged it and let it drain to 33%.

I plugged it back in and suspended it overnight. The next day when I checked it was only 34%

I also noticed the power daemon was going nuts and consuming 20% to 25% of  CPUs:

I rebooted and unplugged the charger and let battery drain to 6%. I plugged the charger back in (without suspending this time) and it fully recharged to 100%.

Since then it's been perfectly normal again.

Original Answer

As I mentioned in comments, here is a Windows only answer for my laptop from:

Re: Plugged in, charging but won't pass 70%

  The reason why your battery would stay upto 70% and not charge further
  could be due to an option called "Desktop Mode" which might be
  enabled. Desktop mode helps in disabling the battery to charge upto
  100% to maximize the life of the battery. This option can also be
  disabled. To disable this option:

  Right-click the battery icon on the Windows notification area, and then click Dell Extended Battery life Options
  The Battery Meter dialog box is displayed, Click the Desktop Mode tab
  Select the option to disable this feature
  Then, click OK

As I mentioned I have to go to Windows to change the battery charge limiter. I don't know how to do this in Linux. It would be a nifty little C program to write in the Linux Kernel some day.


Ubuntu 12.04 How to edit .py file in IDLE without invoking the python shell?

Change the /usr/share/applications/idle.desktop file so at the Exec line it reads:

Exec=/usr/bin/idle -en

Or the better way would be to copy that file to ~/.local/share/applications and modify it there similarly, so after an update you won't have to reapply the changes.

But the above will modify IDLE-s opening behaviour even when you open it simply from the Dash/Launcher. If you don't want that, then you would have to make a copy of the idle.desktop file in the same directory (/usr/share/applications/ or ~/.local/share/applications/) , name it e.g idle.other.desktop, and modify the Exec line in that one, and also add a new line with the following content:

NoDisplay=true

Then modify your mimeapps.list file, so the text/x-python= line reads:

text/x-python=idle.other.desktop;


Quoted:

There are lots of utilities to recover deleted files, but what if you can’t boot up your computer, or the whole drive has been formatted? We’ll show you some tools that will dig deep and recover the most elusive deleted files, or even whole hard drive partitions.

Testdisk includes TestDisk, which can recover lost partitions and repair boot sectors, and PhotoRec, which can recover many different types of files from tons of different file systems.

Foremost, originally developed by the US Air Force Office of Special Investigations, recovers files based on their headers and other internal structures. Foremost operates on hard drives or drive image files generated by various tools.

Scalpel performs the same functions as foremost, but is focused on enhanced performance and lower memory usage. Scalpel may run better if you have an older machine with less RAM.

Recover Data Like a Forensics Expert Using an Ubuntu Live CD

Or you can use Redo Backup and Recovery

Redo Backup and Recovery is a GPLv3 Perl script built with a GTK2+ interface designed in Glade. It is simply a front end to partclone, which performs the actual backup and restore. The live CD is built on Ubuntu to provide a graphical user interface and unmodified binaries of each program, but the script will run on any Linux platform that has the required programs installed. The Perl source code for the backup script is contained on the live CD itself.

Redo doesn't need Windows. Download and burn the ISO, place it in your CD-ROM drive, and reboot your machine. The system will load a complete mini operating system with a point-and-click user interface into your computer's memory, without writing any information to your hard drive. Then you will be able to perform backup, restore and recovery actions—guaranteed—even if you aren't able to boot into your regular operating system.

Source: howtogeek.com and  Redo


Your problem seems to be more of a hardware issue... If I understand, you have a CD drive that is only compatible with CDs instead of DVDs, which only newer drives will allow. DVDs are dual-layered, and thus, allows more data to be stored. Some drives are unable to read DVDs because of this.


O.K.,
it seems like I´ve got too many usb-devices connected to my hub(s). I was able to discuss this matter on https://itsfoss.community/t/web-stic...ndomly/2771/13 .
The disconnection seems to be directly linked to the low power due to my hub-configuration.

I´m going to try to solve the problem by changing that.

Cheers


Workaround (crap "answer"):
If I have an audio problem, firefox videos won't play...
Being too lazy too look into the actual problem, I often have to pulseaudio -k or pkill pulseaudio and videos start immediately after pulseaudio respawns (if they were already in the process of attempting to play).
(My 20.04 VM experiences regular audio problems with the audio randomly cutting out)


Recoll - how to exclude indexing everything, then I'll add only a couple back in

In recoll, you configure starting directories. So if you just want to index two of them, specify them as starting directories.

See topdirs in official documentation:

  Parameters affecting what documents we index

  topdirs

  Space-separated list of files or directories to recursively index. Default to
  ~ (indexes $HOME). You can use symbolic links in the list, they will be
  followed, independently of the value of the followLinks variable.

  [ . . . ]

  followLinks

  Follow symbolic links during indexing. The default is to ignore symbolic
  links to avoid multiple indexing of linked files. No effort is made to avoid
  duplication when this option is set to true. This option can be set
  individually for each of the 'topdirs' members by using sections. It can not
  be changed below the 'topdirs' level. Links in the 'topdirs' list itself are
  always followed.

It's also in the GUI under "Preferences" -> "Index configuration".


laptop only has ubuntu, how do i delete it and install windows?

If you have both Windows and Ubuntu installed on your computer, install GRUB: it will give you a menu whenever you boot up your computer and allow you to choose which OS to boot into each time.

Otherwise, you can just install Windows and during the install it will reformat your hard drive on its own (it deletes everything during the install)

If you are curious about the partitions currently on your computer, post any info gparted gives you about them: the number of partitions, their sizes, any identifying names or types... usually you have a main partition and a small swap partition, unless someone made it fancy, or unless you do actually have both Windows and Ubuntu installed already.


Here we go:

sudo apt-get remove gimp
sudo apt-get update
sudo apt-get purge gimp libgegl* libbabl*
sudo apt-get install gimp

This worked for me.

Source: http://bentwithlove.blogspot.com/2011/05/gimperror-while-loading-shared.html

And if you add the ppa

ppa:matthaeus123/mrw-gimp-svn

you can get the latest 2.7 gimp!


Multiple sftp users and access to a /var/www subdirectory

POSIX ACL (access control lists) are useful for that you describe. They allow a finer-grained permission model compared to the user:group:other model. I have found them to be easier to keep straight in my head since I can be more explicit and can also set the "default" behavior for a branch of the file system.
For example, you can specify each user's permissions explicitly:
setfacl -Rm d:u:userA:rwX,u:userA:rwX /var/www
setfacl -Rm d:u:userB:rwX,u:userB:rwX /var/www

Or you can do it based on some shared group:
setfacl -Rm d:g:groupA:rwX,u:groupA:rwX /var/www

And perhaps you want to keep your web server user as read-only
setfacl -Rm d:u:www-data:rX,u:www-data:rX /var/www

Man pages:
http://linux.die.net/man/1/setfacl
http://linux.die.net/man/1/getfacl
https://websistent.com/linux-acl-tutorial/