Can I reinstall my site Python distribution?

For future reference I recommend installing virtualenv and virtualenvwrapper to stop anything like this happening again. Virtaulenv lets you keep separate, distinct python installations for each of your projects and Virtualenvwrapper makes it easy to work with them. Then any mess ups you cause are limited to one project.

For your current problem, anything you installed using pip can be removed with pip's uninstall command. The following shell script from pastebin (I haven't tested it, just to give you warning, and do not accept any responsibility for any loss or damage it might cause , though I can't see anything harmful in it) should remove all pip packages simultaneously:

#!/bin/bash

#if [ "$#" -ne 1 ]; then
#    echo "Usage: $0 <py pkg name using \$(pip freeze -l)>"
#    exit
#fi

for plugin in $(pip freeze -l); do
    PLUGIN=$(echo "$plugin" | awk -F == '{print $1}')
    echo "Uninstalling $PLUGIN..."
    expect -c "spawn pip uninstall $PLUGIN
    expect {
        \"Proceed (y/n)?\" {
            send \"y\r\n\"
            expect {
                exit
                }
        }
    }"
done

Regrettably I don't think there is an easy way to remove packages installed with easy-install because it doesn't keep track of what you installed, which is partly why pip was developed.


Non blinking gnome-terminal that always displays

If you open up gnome-terminal, go to the Activities bar, and open the menu for Terminal. Click Preferences. Under Profiles, you should see at least one profile. Select the one in use (if there are multiple).

The setting you're looking for will be in the Text section. Find the Cursor heading, where there will be a Cursor blinking option. Set that to Disabled.


Can Unity be used as an independent interface in a custom non-ubuntu build OS?

Yes you are free to modify Unity in any way you choose. ↓

  Development

  Unity is Open Source , and we depend on our developer community to implement great design and fix bugs, raising the quality of Unity for our users.

Referenced from →https://unity.ubuntu.com/getinvolved/

Open Scource Definition:↓

  Generally, open source refers to a computer program in which the source code is available to the general public for use and/or modification from its original design.

Reference from →http://en.wikipedia.org/wiki/Open_source

So yes you can modify it to be lightweight, or any weight you want it to be. But as dobey mentioned, I believe you have to have a gnome session to run it. Unless you modify it for something else... I guess.

I hope this answers your questions... Good Luck!


Weird thing and need help-After installing Ubuntu, can't see C drive from Ubuntu, and D drive are no longer appered in Windows

Where C: went

Type this command in a terminal window

df -h

this will list all the mounted partitions and their stats in human readable format.
Look for any partitions either by size or by the "Mounted on" column that matches your "C: drive"

Take note of the size and partition number of the "D: Drive" that you can not access in windows

sda = 1st hardrive
sdb = 2nd hardrive
etc.
sda1 = 1st partition on 1st harddrive
sda2 = 2nd partition on 1st harddrive
etc.

Where D: went

In Windows click Start -> then right click on Computer -> click on Manage -> Disk Management

Here you should see any detected drives you have on your system and the partitions that are on them. You will want to leave any partition that say unknown alone as this is where Ubuntu lies. Look for any NTFS partitions that are not labeled (C:), this is most likely you missing drive. Right click on the NTFS partition and choose "Mark Partition as active". Read any warning that may appear (just in case). The drive should be given a drive letter and should then show up under Computer as expected.


To keep the shell from touching your text (including special chars like $ and > or *, put everything in single quotes. To include single quotes in the string you have to interrupt the quoted string and add a backslash-escaped single quote resulting in 'here comes the embedded '\''quote':

echo 'paste B01_reprojected_subset_comma_updated.csv  B02_reprojected_subset_comma_updated.csv B03_reprojected_subset_comma_updated.csv B04_reprojected_subset_comma_updated.csv B05_reprojected_subset_comma_updated.csv B06_reprojected_subset_comma_updated.csv B07_reprojected_subset_comma_updated.csv B08_reprojected_subset_comma_updated.csv B8A_reprojected_subset_comma_updated.csv B09_reprojected_subset_comma_updated.csv B10_reprojected_subset_comma_updated.csv B11_reprojected_subset_comma_updated.csv B12_reprojected_subset_comma_updated.csv |awk -F",||\t" '\''{print  $1","$2","$3","$6","$9","$12","$15","$18","$21","$24","$27","$30","$33","$36","$39}'\''>allbands.csv' >> jobstext.sh


Assuming you are using 11.10, the answer is
NO.
The reason why is extremely complex, but to simplify it, removing Unity will break your system upgrades, and make it extremely difficult to get security updates for some parts of the Ubuntu Desktop.


Why does the latest build of Ubuntu have an Amazon button?

From techmansworld.com :

By default the Amazon icon is in the launcher, and it has an affiliate tag for Canonical to make money off of your purchases, to support the Ubuntu project. There is in fact settings to set whether you want your searches to be sent to online services (Amazon) or not.

From howtogeek.com:

When you perform any search in Unity’s dash, your search terms will be sent to Canonical. Canonical forwards these search terms to third parties, such as Amazon, on your behalf. This means that Amazon can’t tie your searches to you personally.

Canonical receives these search results from Amazon and sends them back to your computer, where they’re displayed in the dash.

From http://www.markshuttleworth.com:
We picked Amazon as a first place to start because most of our users are also regular users of Amazon, and it pays us to make your Amazon journey  get off to a faster start. Typing Super “queen marking cage”  Just Worked for me this morning. I am now looking forward to my game of Ultimate Where’s Waldo hunting down the queens in my bee colonies, Ubuntu will benefit from the fact that I chose to search Amazon that way, Amazon benefits from being more accessible to a very discerning, time-conscious and hotkey-friendly audience.

But there are many more kinds of things you can search through with Unity scopes. Most of them won’t pay Ubuntu a cent, but we’ll still integrate them into the coolest just-ask-and-you’ll-receive experience. I want us to do this because I think we can make the desktop better.

We are not telling Amazon what you are searching for. Your anonymity is preserved because we handle the query on your behalf. Don’t trust us? Erm, we have root. You do trust us with your data already. You trust us not to screw up on your machine with every update. You trust Debian, and you trust a large swathe of the open source community. And most importantly, you trust us to address it when, being human, we err.

My opinion:
So in general Amazon issue is intended to be profitable for everyone - You get better results while searching,Canonical gets paid to be able to write better software for users, Amazon gets better access for its customers.


How to disable Page Table Isolation to regain performance lost due to Intel CPU security hole patch?

The patch (aka "Page table isolation") will be part of a normal kernel update (which you'll get when you update your system). However, keeping the kernel up to date is highly recommended, as it also gets a lot of other security fixes. So I would not recommend just using an outdated kernel without the fix.

However, you can effectively disable the patch by adding pti=off (kernel patch adding this option, with more info) to your kernel command line (howto). Note that doing this will result in a less secure system.

There's more info and performance tests with PTI enabled and disabled on the PostgreSQL mailing list - TLDR is that it has a between 10 and 30% performance impact (For ProstgreSQL, that is - other things such as games will probably see less of an impact).

Note that this will only affect Intel processors, as AMD is apparently unaffected (reddit), so this will foreseeably be disabled by default on AMD.


Cannot resize rootfs partition on a emmc memory

fdisk can be used to manipulate partition tables. But fdisk does not manipulate what's in the partition. A partition usually contains a file-system, the size of the file-system needs to be reduced before you reduce the size of the partition with fdisk.

increase partition size: use fdisk first and then resize2fs
reduce partition size:   use resize2fs first and then fdisk

If you already created a new formatted partition in the new unallocated space, your file-system will be damaged, probably beyond repair. A part of your file-system would be overwritten.

If you didn't create a new formatted partition yet, you can attempt to repair the damage:

Increase the size of the partition with fdisk, at least to it's former size, so that the file-system fits properly in it, then run e2fsck on that partition again to check the consistency of the file-system. If it's ok, you can start over with resizing the file-system with resize2fs first and reducing the size of the partition with fdisk in the second step.

Maybe better to use GParted to manage your partitions, Gparted takes care of all the necessary steps and adapts the file-system size to the new partition size automatically.


Additional Drivers for NVIDA Quadro K620 Required for Ubuntu Installation

The way to change video drivers in Ubuntu from 14.04 and later is to go to System Settings>Software & Updates>Additional Drivers tab. You will need to be connected to the internet and you will need to allow the utility time to find suitable drivers. But there may be a problem because Ubuntu 14.10 has reached end of life.

Alternatively, Run the following commands in terminal:

sudo add-apt-repository -y ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346

Then restart the computer and remove the repository after restart as following:

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

This has worked for me. I hope it helps you too.


Replace laptop pre-installed with windows with ubuntu and install windows on virtual box as genuine windows

First off, I don't think this is an Ubuntu question but more of a Windows question, but I will give you a quick pointer - It is most certainly possible to do, but it does break the Microsoft terms of service and therefore is illegal. Because you will be dual booting, you will already have a copy of windows installed on the computer, adding a second copy in a VM will count as a second copy. You can view the full terms of service here.

This is a screenshot showing the relevant section:

If, however, you would like to run your VM using the existing windows install you already have on your computer, and thereby circumventing any legal issues that may arrive from a second windows install, there are a few posts and tutorials which may be of help:

Is there a way to access my current windows installation within a VM environment?

http://betanews.com/2012/03/01/install-windows-8-on-oracle-virtual-box/


how to access a parameter with a # in a bash script

I probably did not understand your question, here I am assuming that you have a file/variable containing lines of text in each of which you want to remove all text from the symbol # to the end of the line.

If this is the case, and assuming that you don't want this behaviour for escaped occurrences \#, this is how I would do:

sed 's/\([^\\]\)#.*$/\1/g' filename

if the text is contained in the file filename, or, if it is contained in the variable var,

sed 's/\([^\\]\)#.*$/\1/g' <<< "$variable"

Example

Suppose your file filename contains the following text

This is a line#this is a comment
this is another line without comments
this is a line with an escaped sharp symbol \# and therefore this is NOT a comment

then the above command yields

This is a line
this is another line without comments
this is a line with an escaped sharp symbol \# and therefore this is NOT a comment

Explanation

sed 's/\([^\\]\)#.*$/\1/g'

sed is a string editor: 's/matched-pattern/replaced-pattern/options'. s stands for substitution, and the option g for global, i.e. it does not stop after the first substitution.
[^\\] mathces everything that is not a backslash \ (which needs be escaped, hence the double \\)
\(pattern\) stores the matched pattern and is referred to with \1 in the replacement pattern
.*$ matches any character 'till the end of the line


See, I am also having this problem, and I did a little research of my own to see what the issue was. Also, I have the same exact errors that were posted.

As it turns out, the Google Code Developers for 32-bit Ubuntu/Debian Google Chrome "made a goof," and accidentally added those dependencies which are of 64-bit architecture, and inaccessible by 32-bit Ubuntu/Debian. The 64-bit program is working fine, as it turned out.

All we can do is wait until another update comes out that will fix this issue; I am currently waiting patiently, using Chromium as my backup. Make sure to update/install when a new Google Chrome version is released as it will possibly--and hopefully--fix this issue.

If you can not wait, I have read that the unstable/beta version of Chrome does not have this issue as it was resolved during the development of this new version. You can download it here.

I would only download that if you can not wait or use another browser until the stable update comes out.

source: Google Chrome update won't install due to unmet dependencies


If you really want to change every single folder icon...then go to /usr/share/icons and then whatever icon theme you are using. Then you can copy & paste the icons you would like to use.

A much simpler alternative would be to google for an icon theme you like and installing it.


How do I install Maya Calendar (from Elementary OS) on Ubuntu 14.04?

maya-calendar is basically the california calendar from Yorba foundation.
I used the instructions in this link and it worked flawlessly: Install California calendar

In short use the following commands:

sudo add-apt-repository ppa:yorba/daily-builds
sudo apt-get update && sudo apt-get install california


distorted video playback with vlc in kubuntu 16.04

Maybe it's the new amdgpu graphics drivers, i have problems with vlc on Ubuntu 16.04, wen i forward or backward the video, it's freeze for 3 seconds but the audio it's keep running,  now I'm using smplayer, just change the icons, they are horrible...


How to redirect ssh logins to server's Docker containers

A similar question was asked that might answer your question:

  Consider using a ForceCommand directive in sshd_config. For
  example, I use these to force groups of users to a set of
  servers:

Match Group group1
       ForceCommand ssh -t group1.fqdn

Match Group="*,!local,!group2,!root"
       ForceCommand ssh -t group3.fqdn

  You could use:

Match User foo
    ForceCommand ssh -t target-host

I've never used this, but a set of directives, one for each user, could make the "SSH gateway" you're proposing.


choppy graphics when playing .mkv vidoe with VLC on ubuntu 16.04 with Nvidia gpu

Installed latest nvidia drivers and after reboot I would get stuck in a log in loop. Would have to purge nvidia in order to stop the loop from happening. The problem is that at the end of the installation there's a prompt that says the driver won't work if secure boot is enabled would you like to disable it y/n? I would click yes to disable it and assumed that it would change it for me. It did not. I had to disable secure boot in bios than I was able to boot + log in without any issues and the drivers are working great, I can even play some steam games.


Making connection to Ubuntu Server at my home from another computer

You cannot connect to a local IP address from a computer outside the network. You need to connect to your public IP. Although you normally have all ports closed and depending on your router you may or may not be able to open them. By opening the necessary port and forwarding traffic to your local IP you will be able to connect to your server from work via your public IP.

How to:

This may or may not work for you, since different routers and different internet providers give you different features and some may not allow this at all. This is a method that work for me and should work similar for you.

Access your admin panel and open port 22 for incoming traffic (or whatever port you want to use).
Forward traffic from this port to you computer (your local IP).
Figure out your public IP, possibly from this website.

You should now be able to connect to your computer via your public IP using PuTTY or other clients. You could also open more ports to for instance host your website on your computer, or alike.


Neil,
I believe that the -r 450 sets the density, whereas the -scale-to 1920 will actually resize the image having its longest side go to 1920 pixels and the other side will also scale maintaining the aspect ratio of the image.  So -r is kind of how blocky it will look, and -scale-to is how big the overall image will be (on one side).


Unity 8 not working with NVIDIA graphics card

It seems the next version of mir (v0.25) will support nvidia.

See bug #1628478 at https://launchpad.net/mir/+milestone/0.25.0.

The bug milestone was changed to 0.25 from 0.26 a few days ago which makes me think that much progress was made and hopefully an 0.25 release is imminent.


Official Ubuntu archive for USA is located at address: us.archive.ubuntu.com


According to this wikibooks article:

Linux and other Unix-like hosts can mount images created with the raw
format type using a loopback device. From a root login (or using
sudo), mount a loopback with an offset of 32,256.
mount -o loop,offset=32256 /path/to/image.img /mnt/mountpoint

For other types of qemu images, you can use qemu-nbd
modprobe nbd max_part=16
qemu-nbd -c /dev/nbd0 image.qcow2
partprobe /dev/nbd0
mount /dev/nbd0p1 /mnt/image

Plus, usually, you can convert image from one format to another.
raw - (default) the raw format is a plain binary image of the disc
       image, and is very portable.
       On filesystems that support sparse files,
       images in this format only use the
       space actually used by the data recorded in them.
cloop -     Compressed Loop format, mainly used for reading Knoppix
       and similar live CD image formats
cow - copy-on-write format, supported for historical reasons only and
       not available to QEMU on Windows
qcow - the old QEMU copy-on-write format, supported for
       historical reasons and superseded by qcow2
qcow2 - QEMU copy-on-write format with a range of special features,
       including the ability to take multiple snapshots, smaller
       images on filesystems that don't support sparse files,
       optional AES encryption, and optional zlib compression
vmdk - VMware 3 & 4, or 6 image format, for exchanging images
       with that product
vdi - VirtualBox 1.1 compatible image format, for exchanging
       images with VirtualBox.

I found this solution for (VirtualBox) .VDI when I searched, on this website:

modprobe nbd max_part=16
qemu-nbd -c /dev/nbd0 /path/to/some.vdi
mount -o loop /dev/nbd0p1 /mnt
# do stuff
umount /mnt
qemu-nbd -d /dev/nbd0
rmmod nbd

The same as "Qemu's way" commands. No borders!


Playing WMA files with cmus produces static and distortion in 14.04

Problem is apparently related to the libavcodec/ffmpeg fork: https://github.com/cmus/cmus/issues/139

I fixed cmus by installing libswresample-dev and the rest of the ffmpeg dev libs from this PPA (replacing the libavcodec libs):

https://launchpad.net/~jon-severinsson/+archive/ubuntu/ffmpeg

Then ./configure CONFIG_FFMPEG=y to make sure that ffmpeg.c works and building and replacing cmus.


You can try changing it via

System Settings → Hardware / Keyboard → Shortcuts → Screenshots → Take a screenshot

To disable the shortcut, click the row so that it shows "New accelerator" as shown below and then press the backspace key.


How to recover from a Nvidia fail on Ubuntu 16.04?

Edited out of the question posted by Rob grune:

  To recover, follow these steps:

  Ctrl+Alt+F1 [to exit and get into the TTY mode]

sudo apt-get remove --purge nvidia*
sudo apt-get install ubuntu-desktop
sudo apt-get autoremove
sudo rm /etc/X11/xorg.conf
echo "nouveau" | sudo tee -a /etc/modules
sudo reboot

  [after reboot, you should be back to operational with the nouveau driver, and can login]

sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo apt-get autoremove
sudo apt-get autoclean


Can't install Avro for inputting Bangla on Ubuntu 19.04

Avro Phonetic has now been made available to Ubuntu users via an official package.

To install it:

sudo apt install ibus-avro

It does not have that ibus-qt4 dependency. ibus-avro in the Ubuntu archive installs the latest upstream software, including a bugfix which is important to Ubuntu users.


Hi for your use case I would recommend you by starting with the ubuntu-server-image, it even asks you on installation what services you want installed, like sshd.
This image mainly differs from the desktop-images by it's install routine and that it does not ship with an DesktopEnvironment (e.g. unity).
And after installation it can be run completely headless and without the need of an attached keyboard.


Keyboard not working 100% after Ubuntu 13.10 upgrade

This solution might work as suggested by Andrew @ http://www.webupd8.org/2013/10/ubuntu-1310-available-for-download.html

GO TO:

1) System Settings > Language Support, or you can hit Super (Windows key) to open the Dash, then type Language Support

2) At the bottom part find "Keyboard input method system"

3) Switch between "Default", "IBus" and "None". It may be different in your case, so try each one out. Start with option None.

4) After making the change, you need to restart for the settings to take effect.

Below is a screenshot.


As per your boot-repair report(translated to English)

The boot files [ Linux ] are far from the beginning of the disc . Your BIOS could not detect them . You may want to retry after creating a partition / boot ( EXT4 , > 200MB , beginning of the disc ) . This can be done with tools like GParted . Then select this partition through the [ separate / boot partition ] of [Boot Repair ] . ( Https://help.ubuntu.com/community/BootPartition )

If your computer boots directly into Windows , try changing the boot order in the BIOS.
If your BIOS does not support changing the boot order , change the default entry in the Windows boot loader .
For example you can start Windows , then type the following command in a cmd window with administrator privileges :
bcdedit / set { bootmgr } path \ EFI \ ... \ grub * .EFI

I won't take the first point very seriously...but the second one is worth trying

For example you can start Windows , then type the following command in a cmd window with administrator privileges :

bcdedit / set { bootmgr } path \ EFI \ ... \ grub * .EFI

Give this a try.


How to exclude someone when PubkeyAuthentication no in sshd_config

Add something like this to your sshd_config:

Match User John
    PubkeyAuthentication yes

Don't forget to sudo systemctl reload sshd


What's the difference between "export -p" and "env" commands?

The confusion arises from the fact that export -p by default only shows exported variables (declare -x), not functions.

To display the exported functions (declare -fx) using export:

export -fp

Also just to clarify, counting number of lines to get number of functions is completely wrong as function definitions span multiple lines (even if it defined in a single line while declaring, set shows them in multiple lines).


Dell's BIOS can be updated from the current BIOS...
BIOS
Updating the BIOS from BIOS Boot Menu (independent of operating system)
Note 1: Before updating the BIOS, ensure that you suspend BitLocker encryption on a BitLocker-enabled system. If it is not enabled on your system, you can ignore this step. For information about how to disable BitLocker, see How to Enable or Disable BitLocker with TPM in Windows at support.dell.com.
Note 2: Do not turn off the power or interrupt the BIOS update process during the update.
Installation

Copy the downloaded file to a USB drive. The USB drive does not need to be bootable device.
Insert the USB drive into any USB port.
Power on the system.
At the DELL logo screen, press F12 to access the one-time boot menu.
Select BIOS Flash Update in the Other Options section.
Click the ... button to browse the USB drive to locate the downloaded file.
Select the file and click Ok.
Verify the existing system BIOS information and the BIOS update information.
Click Begin Flash Update.
Review the Warning message and click Yes to proceed with the update.
The system restarts and displays a progress bar at the Dell logo screen. The system restarts again when the update is complete.


How do I load the synaptics driver on 12.04? (Scrolling does not work)

IT IS SCARY YET EASY TO DO, DON'T BE SCARED MY CHILD

try this if neither of the previous ideas of this thread worked:In a terminal enter : xinput
you should get something looking like this :

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=14   [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Wireless Mouse          id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ USB Camera                                id=11   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]

Even though it is scary, it is actually very easy to understand; now locate your touchpad, mine here is called is called "ETPS/2 Elantech Touchpad" (on the third line).
now, once you've done this enter :  xinput --list-props "whatever your touchpad is called"  for instance mine would be  nathan@linux-engine:~$ xinput --list-props "ETPS/2 Elantech Touchpad"
Once you've done this, Lotta lines should appear, for me it is :

Device 'ETPS/2 Elantech Touchpad':
    Device Enabled (135):   1
    Coordinate Transformation Matrix (137): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (263): 1
    Device Accel Constant Deceleration (264):   2.500000
    Device Accel Adaptive Deceleration (265):   1.000000
    Device Accel Velocity Scaling (266):    12.500000
    Synaptics Edges (288):  123, 2974, 114, 2005
    Synaptics Finger (289): 1, 1, 0
    Synaptics Tap Time (290):   180
    Synaptics Tap Move (291):   165
    Synaptics Tap Durations (292):  180, 180, 100
    Synaptics ClickPad (293):   1
    Synaptics Middle Button Timeout (294):  0
    Synaptics Two-Finger Pressure (295):    282
    Synaptics Two-Finger Width (296):   7
    Synaptics Scrolling Distance (297): 75, 75
    Synaptics Edge Scrolling (298): 0, 0, 0
    Synaptics Two-Finger Scrolling (299):   1, 1
    Synaptics Move Speed (300): 1.000000, 1.750000, 0.053305, 0.000000
    Synaptics Off (301):    0
    Synaptics Locked Drags (302):   0
    Synaptics Locked Drags Timeout (303):   5000
    Synaptics Tap Action (304): 2, 3, 0, 0, 1, 3, 0
    Synaptics Click Action (305):   1, 3, 0
    Synaptics Circular Scrolling (306): 0
    Synaptics Circular Scrolling Distance (307):    0.100000
    Synaptics Circular Scrolling Trigger (308): 0
    Synaptics Circular Pad (309):   0
    Synaptics Palm Detection (310): 0
    Synaptics Palm Dimensions (311):    10, 200
    Synaptics Coasting Speed (312): 20.000000, 50.000000
    Synaptics Pressure Motion (313):    30, 160
    Synaptics Pressure Motion Factor (314): 1.000000, 1.000000
    Synaptics Resolution Detect (315):  1
    Synaptics Grab Event Device (316):  1
    Synaptics Gestures (317):   1
    Synaptics Capabilities (318):   1, 0, 0, 1, 1, 1, 1
    Synaptics Pad Resolution (319): 32, 31
    Synaptics Area (320):   0, 0, 0, 0
    Synaptics Soft Button Areas (321):  1548, 0, 1737, 0, 0, 0, 0, 0
    Synaptics Noise Cancellation (322): 18, 18
    Device Product ID (255):    2, 14
    Device Node (256):  "/dev/input/event5"

But it is alwright! If you look carefully you should be able to find the a line saying "two fingers scrolling". for instance, mine is at Synaptics Two finger scrolling (299). If the values in that line are something else than 1, 1 then BINGO here are the problem ! just type : xinput --set-prop "touchpad name" "scrolling option" 1 1mine isnathan@linux-engine:~$ xinput --set-prop "ETPS/2 Elantech Touchpad" "Synaptics Two-Finger Scrolling" 1 1. it should be working now :)  You'll have to this everytime you restart your computer though !
Now it is time to automatized that everytime you wake up your computer :  In your home folder (or wherever you want) make a file named as you wish. it should contain

#! bash
xinput (the command) ...

Then in the search for an application name startup applications and press "ADD". Name it as you wish and write in the command Field bash /your/file/path.     example. It is done, forever :D !!!


I think you might have to be root to start talking to the xm binary. Does sudo virsh version offer different output? my response is based off the following post.

http://open.eucalyptus.com/forum/cannot-run-instance-1#comment-20099

Having said all that, unless you have a legacy application that requires Xen I would suggest you migrate to KVM. It's just all round better supported on Ubuntu. Good luck.


How to format my pendrive with f2fs filsystem using gparted?

You need to install f2fs-tools:

sudo apt-get install f2fs-tools

This will install /sbin/mkfs.f2fs and that should activate the f2fs option for gparted:


Minecraft diagonal graphics glitches on Ubuntu 11.10 x64bits, not happening on Ubuntu 12 beta 2 x64bits

Resolved by installing intel hd graphics drivers from third party ppa source..

A great article about it here: Updated & Optimized Ubuntu Free Graphics Drivers @ phoronix.com


List of installed softwares (from newest to oldest) with apt command on Ubuntu 20.04

not an apt command, but you can find the history of your installs in /var/log/apt/history.log
For scripts and methods to generate a sorted list, I suggest you take a look at the following question: List packages on an apt based system by installation date.


Printers Settings UI crashes, system printing service unavailable

Add the name of the localhost cups server into /etc/cups/client.conf
ServerName localhost:631

Restart the cups service
sudo systemctl restart cups

The UI works now.


I use zsh as my regular user, but when I use root my shell is Bash. How can I use Zsh for root too?

You have to set the shell for your root account

usermod -s /bin/zsh root

Will do the job

this changes the entry in the /etc/passwd file. They look sth. like this

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

Where the last entry is the login shell. You can also edit the file manually.

Be careful to set it right. usermod will not check (and you will not be able to login as root):

usermod -s /bin/blargh root
sudo -i
sudo: /bin/blargh: command not found

For a saver way see the answer by @PerlDuck


My RStudio Application suddenly do not working, kindly look into it

At first I would recommend to install all updates to the system, remove packages marked for automatic removal using
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove --purge

Then install the R package by
sudo apt-get install --reinstall r-base-dev

Then you should know that RStudio provides correctly build deb-package for supported Ubuntu 18.04 LTS (Bionic Beaver), you can install it with
cd ~/Downloads
wget -c https://rstudio.org/download/latest/stable/desktop/bionic/rstudio-latest-amd64.deb
sudo apt-get install ./rstudio-latest-amd64.deb


Set default permissions of files for a folder even if not created in folder

Solved. I used the following inotify script to reset permissions:
inotifywait -m /path/to/download/folder -e create -e moved_to -r |
while read dir action file; do
    chmod 755 $dir$file
done


How do I use the fonts used in Ubuntu in Lubuntu?

Go into the Lubuntu theme preferences and onto the dont tab and fiddle with the RGB, BGR settings for your font smoothing and anti-aliasing and apply each one to see if it fixes your fonts on your particular screen...


You are looking to burn the downloaded iso (what you got when you went to Ubuntu.com and downloaded the Desktop version) onto a disk. Follow this guide. It is instructions for creating a USB installer, but you can follow a link on the side for DVD instructions.


Install on VirtualBox seems stuck on "Running post install"

I experienced a similar problem on VirtualBox 5.0.

I solved it by unchecking "Install this third-party software" checkbox during the preparation process of Ubuntu installation.


I am assuming that you want to get rid of the "fillable fields" in that form.
A way to do this is to convert the pdf into a jpg, and converting it back to a pdf.
To convert, enter the command
convert -density 300 /path/to/your/form.pdf picture.jpg

The -density 300 ensures that the quality of the resulting JPG remains good.
Then convert it back to PDF with
convert /path/to/picture.jpg filename.pdf

The resulting PDF would not anymore have any fields to be filled.
Of course, someone may edit it in an image editor to change the contents.
If someone can view the form, you cannot prevent them from editing it (even if it is password protected so that everyone can view, but only the people with password can edit, then one can take a screenshot and edit it with photo editing software like GIMP to change the contents).
If you have problems converting it due to "security policies", follow the guideline here: https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion


Cannot get Thrustmaster Racing Wheel to work in Ubuntu 16.04

I checked at manufacturer's website and I found that Thrustmaster official drivers support Windows only (Windows 10 maximum).
Possibly, the wheel could be installed on Linux too, but using the original drivers over Windows is good option.


Can I connect The Serval Mesh (Android) to B.A.T.M.A.N (Ubuntu)?

Probably not. While the Serval Project lies on top of the BATMAN protocol, it implements many features (such routing to phone numbers, etc) not in the BATMAN protocol.

Also, the Serval Project is considering eventually moving away from the BATMAN protocol and using solely RFC922.


As the OP did self-answer, but not in the form of an answer, replicating answer here:

Running
sudo alsa force-reload
solved the problem for the OP. *

In similar cases, changing RUN=yes to RUN=no in /etc/default/speech-dispatcher, followed by the command above, helped.

For additional details, see:  http://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/

*)As of the self-answer edited into the question.


The dd command has the effect of creating whatever partition or partitions are in the image file you start with (i.e., the file given after if=). Those partitions' sizes are not determined by the size of the disk being written to (i.e., the disk specified after of=). When the disk is larger than necessary, it will have unpartitioned space after being written to with dd. Reformatting the partitions that already exist does not change their size and consequently will not make the extra space accessible.

Repartitioning the SD card is the solution. Install the gparted  package.  Assuming there is nothing of any value on the SD card, you can use GParted to delete the existing partitions (or to create a new partition table, which will get rid of them too). After the gparted package is installed you can run GParted by typing it into the dash (press the Super/Windows key or click the home button on the upper-left corner of the screen, then start typing in gparted until the GParted icon appears; then click on it).

Make sure you are editing the partitions on the SD card, and not on some other drive; if you accidentally perform actions on the wrong drive with GParted, you could experience great data loss. (And if you ever do need to modify the partitions on the physical disk that contains the running Ubuntu system, it's not safe to run GParted from the system on that disk to do that. Instead, for that purpose, you must run GParted from a live CD/DVD/USB instead.)

To make sure you're on the SD card and not some other device, select in from the drop-down menu at the upper-right corner of the GParted window. Make sure its partitions are the same size and type as you expected. An SD card will typically be called /dev/mmcblkN, where N is a number (usually 0, if you only have one SD card). The device names for the partitions on an SD card called /dev/mmcblk0 are called /dev/mmcblk0p1, /dev/mmcblk0p2, and so forth. You can verify that the drive name takes the form /dev/mmcblkN in the drop-down menu where you select it, and also that its partitions are listed as the device name with pN appended.

Once you've verified that you're working on the right disk, create whatever partition(s) you want. If you want one big partition, create one, of whatever partition type you prefer. (Most SD cards are formatted FAT32.)


Move the application to another workspace in XFCE

In Xfce 4 you can define multiple workspaces by either adding a new wokspace switcher to the panel, as it has been done in the question, or by using the workplace switcher that is already installed in the lower right corner by default.

With a right click on this swicher you can select the switcher properties. Choose more than 1 row to have more than 1 workspace.

Moving applications to another workspace can be done with a right click on the application's top title bar and select Move to Another Workspace:

Number and names of workspaces can be defined in the Xfce 4 Settings Manager (from Applications -> Settings):


Where are the Home Directory Contents / Settings Cached in Ubuntu 18.04?

I found the problem. After logging out, there were still a bunch of processes running as the user I wanted to give a fresh start to (systemd, dbus processes, gvfs processes and more). If I log out, kill all those and then recreate the home directory I then get the fresh start I was looking for.


Well, as I just gave somebody this answer an hour ago or so I'd hope you'd get a stock configuration.

Reasoning:
When you download the source via apt-get source linux-image-3.0.0-16-generic or whatever it downloads the original Debian source then Ubuntu patches and applies them. Theoretically that'd include a .config...


Are you sure that they block everything?

If you have root access on the computer, and already installed eg. netcat or any similar tool (and of course some cleverness), you can try to find a way to proxy your traffic.

The most common case is to simulate DNS traffic (UDP port 53), as it is often left unblocked:

http://dnstunnel.de/


I have not done this, so take it with a grain of salt (wait for other better answers).
I am not sure you can break this apart with no risk of data loss, so there should be some backup involved no matter what. If you are breaking a logical volume, you WILL have data loss.

https://help.ubuntu.com/community/Installation/SoftwareRAID

This shows software raid with mdadm.

https://help.ubuntu.com/12.04/serverguide/advanced-installation.html

Shows similar as above but uses LVM as well, which you would use with (1 3) and (2 4) 2 separate logical volumes over 4 disks.

I don't see a way around backing up your data on another medium unless your disks are not full (and would fit on one), if this is the case, set up disk 1 take the backup from (3 4) move all of it onto disk 1, format (2 4), move data from 1 -> (2 4), format (1 3). You would have both "sets" LVM (spread across), but honestly it seems like it would be better just to do 2 RAID 10's.

I hope this helps in or can lead to a better answer.


Ubuntu 18.04 slow Wi-Fi connection while using Bluetooth headphones

The problem is with bluetooth and Wi-Fi working on the same radio frequency.

The coexistence technology is disabled by default for Atheros adapters, probably because long ago it could cause some problems for some old devices.

You can turn it on by running

sudo tee /etc/modprobe.d/ath9k.conf <<< "options ath9k btcoex_enable=1"

The setting will be applied after a reboot.

Just in case the setting can be reverted by

sudo rm /etc/modprobe.d/ath9k.conf


The code you could reference is oom killer at mm/oom_kill.c

https://github.com/torvalds/linux/blob/master/mm/oom_kill.c

This is the mechanism when system is out of memory, kernel will choose some process to kill.
Android LMK is relatively simpler. It is using send_sig.
https://android.googlesource.com/kernel/arm64/+/android-9.0.0_r0.32/drivers/staging/android/lowmemorykiller.c
Or you can use int kill_pid(struct pid *pid, int sig, int priv) function.


converting multiple files with avconv...libmp3lame0 not found

You seem to be using the wrong codec name. To see which codecs are supported, do:

avconv -codecs

according to this the codec name is libmp3lame (you have an extra 0). This is on my system however, so yours may be different. The command I gave will let you find out.


Ubuntu 18.04 Server Raspberry Pi wireless

You need to update your netplan config.

Below is my config at /etc/netplan/00-snapd-config.yaml. I initially created it using console-conf, but had to edit it manually to make it work.

ubuntu@ubuntu:~$ sudo cat /etc/netplan/00-snapd-config.yaml
# This is the network config written by 'console_conf'
network:
  ethernets:
    eth0:
      dhcp4: true
      match:
        macaddress: b8:27:eb:03:91:12
      set-name: eth0
  version: 2
  wifis:
    wlan0:
      access-points:
        my_wifi_ssid: {password: my_wifi_password}
      addresses: []
      dhcp4: true
      nameservers: {}

I first installed console-conf using sudo apt install console-conf and then run it using sudo console-conf.

Interestingly, even this tool wasn't able to generate a correct config. This error message appeared:

Network configuration failed: 'Error in network definition
//etc/netplan/00-snapd-config.yaml line 4 column 6: eth0:
set-name: requires match: properties\n'

I hand-modified /etc/netplan/00-snapd-config.yaml - I copied over the ethernets section from 50-cloud-init.yaml and used consistent indentation everywhere.

Lastly I run sudo netplan apply. Voila - Internet now works without the Ethernet cable!

PS: I doubt that you need to go through console-conf - just copy my config and adapt it to your use case.


In 13.04, it was renamed to "Software and Updates". It is the same application, just with a different name.

Screenshot below:


Cannot install Lazarus IDE on Ubuntu 10.04

I found a workaround for the first problem:

No Lazarus executable in usr/lib/lazarus/0.9.30.2/lazarus

Install Lazarus from website (sourceforge.net download site), I also installed fpc.

Go to

usr/lib/lazarus/0.30.2

and run file

lazarus-gtk2

instead of

startlazarus.

IDE runs without problem.

PS.: sysinfo - Ubuntu Lucid 10.04 x64

EDIT:

However after that, apt-get stopped working due to unresolved dependencies. So really I had to remove this version of Lazarus.
I had huge issues with installing Lazarus from USC, finally aptitude instead of apt-get managed to install it, but it worked improperly. Due to some error I lost my ethernet connection. After restoring my ethernet connection I uninstalled Lazarus using aptitude and installed it from USC and now it works fine :]


E.G. via encfs

Install encfs

sudo apt-get install encfs

Create a folder for the encrypted files

mkdir -p ~/encrypted

Create a folder for the decrypted files

mkdir -p ~/decrypted

Start

encfs ~/encrypted ~/decrypted

And use e.g. the pre-configured paranoia mode
Check

mount | grep decrypted

Sample output

encfs on /home/aboettger/decrypted type fuse.encfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions)

Place some files in ~/decrypted

touch ~/decrypted/foo

and check the content of ~/encrypted

ls ~/encrypted

Sample output

guV8sPH68cUeEsZoNAsNBBCC

Use the Gnome Encfs Manager to manage your encrypted folders

sudo apt-add-repository ppa:gencfsm/ppa
sudo apt-get update
sudo apt-get install gnome-encfs-manager

Start via Dash/GNOME Shell

Gnome Encfs Manager

and add and configure your folder


How to reinstall ubuntu from flash drive

Boot into your USB stick from your bios. This varies from manufacturer to manufacturer, but mine is F12. When installing Ubuntu from the flash drive, you will have the option to erase the entire disk and install Ubuntu.


Port 80 is the standard HTTP port, so you just have to install a web server (eg. apache2) on your Ubuntu machine. When it comes to the router, you just have to forward port 80 on the router to port 80 on your Ubuntu machine. How to do that depends on the router, but it should be configurable from the web interface.


E45 readonly option is set (add ! to override)

Probably the user you ran vi /etc/php5/mods-available/mcrypt.ini as did not have write access to the file. vi notices this on file open, and, when you try to save the file, gives you the E45error, and reminds you that you could attempt to override the read-onlyness of the file by appending '!' to the command.

For example, if you edited a file owned by your user, protected 444 (r--r--r--), you would get this message when you did the :wq, but could try to force the write with :wq!. In your case, I suggest doing ls -l /etc/php5/mods-available/mcrypt.ini. To actually edit the file, you could use sudo to temporarily use the power of root, and do sudo vi /etc/php5/mods-available/mcrypt.ini


Gparted - Can't resize win 10 partition?

You can not just extend any partition you like. There must be some space at least at one side of the partition. If that is not the case, you need to move other partitions to get this space in the right place.

Important note: If you move the left side of linux or Windows boot partition, the system will not boot. You will need to re-install grub.


I cannot change the opacity of titlebars in Ubuntu 16.04 LTS!

Unity does not use metacity window manager anymore. It uses it's own window manager to draw the title-bars. That's why those keys don't work in Unity. But they do still work in other gnome sessions using metacity like gnome-session-flashback.

The transparencies of title-bars in Unity is controlled by Themes. To customize the opacity of it, you need to customize the theme.


Insert Windows DVD & go to boot menu & boot DVD. On Install page click on Repair. If this is successfully done, then insert Ubuntu bootable media (USB/DVD) & boot from it. Select Try Ubuntu. Then open terminal &  type these commands.

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

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

Now, Press Windows Key type Boot Repair.

Click on Recommended Repair

Restart & check you should get dual boot option.


Can't boot into Ubuntu after removing Windows partitions

whats the error? what does your grub look like you could reinstall grub. Boot to live cd and do fdisk -l find your hardrive "/dev/something" and do grub-install /dev/whatever.


Go to

  System > Preferences > Keyboard Shortcuts

select the command to which you assigned CTRL+T and press Backspace.

This will remove the CTRL+T keyboard shortcut and you'll be able to use CTRL+T as before in Chrome.


I recommend sticking with Brasero. I presume you're trying to burn a non-standard disk image format and that's why Brasero is asking for cue2toc and cdrdao. You could just install those packages and be on your way:

sudo apt-get install cue2toc cdrdao

Although I admit that this is a paper cut in usability and you should report it as a bug here:

https://bugs.edge.launchpad.net/hundredpapercuts/+filebug

Please explain exactly what you're trying to do, with what kind of files and what makes it different from burning normal iso files. Make it clear what you expect the computer to do (i.e. work without asking you to install extra things)


xbindkeys + xdotool or xvkbd not working well

Try:

"xset r off; xdotool keyup --window 0 l key --window 0 --clearmodifiers Up; xset r on"
    Alt + l


Ralink rt2860 wifi not working under Ubuntu 11.04

If found a couple of interesting pages on the web. Hopefully these are not the same as you found because both seem to end in a succesfully working wifi with a Ralink RT2860.

First a very recent Topic on Ubuntu forums (4 days old) seems to suggest ralink rt2860 should work but with some effort. Especially the responce by user estevez about blacklisting seems to work.

And there is a Bug report with some more pointers about blacklisting modules on a Natty version from 2010.11 so this one is pretty darn old. There is a newer bug about this card with some weird behaviour depending on the power cord being present and taken out that is pending.

I would like to encourage you to please file a bugreport or to confirm with a current bug that you are affected too. If this gets a permanent fix lots of other users will benefit.


Cannot restore resized icons in Home Folder

Try ctrl+ to zoom in and ctrl- to zoom out.


A s a complement to the other answer on imagemagick and  considering the need for a GUI.
Inspired by this post saying that ImageMagick has command line tool named convert to merge images. To join images horizontally (in alphabetical order):
convert +append *.png out.png

To stack images vertically:
convert -append *.png out.png

That should be run in a terminal into the folder containing png files to join them all.

A gui for that would be:
a file manager context menu to join selected images.
An easy way when it comes to that is Thunar's custom actions:
To join selected images vertically (into one png file, in alphabetical order, no matter their extension) add this custom action ('Edit - Configure custom actions'):
convert -append %F joined-vertical.png

To join horizontally:
convert +append %F joined-horizontal.png

The same commands can be used in a .desktop file in /.local/share/file-manager/actions which adds a context menu for Nautilus and/or PCManFM.
Example for vertical join:
[Desktop Entry]
Type=Action
Name=Join images (vertically)
Profiles=profile-zero;
TargetLocation=true
Icon=gthumb

[X-Action-Profile profile-zero]
Basenames=image/*;*;
Exec=convert -append %F joined-image.png
Name[en_US]=Default profile
Name[en]=Default profile
Name[C]=Default profile


Can I install Ubuntu without installation media?

Here you go - this will show you how to do just that: https://help.ubuntu.com/community/Installation/Netboot


I've almost done all suggestions here, but none of them didn't work.
Also gd3 reconfigure has no effect.
But I had suspected to my last gnome extensions.

The system-monitor@paradoxxx.zero.gmail.com was the problem.
So I disabled all gnome extensions to solve login loop as following steps:

Press Ctrl+Alt+F2 or Ctrl+Alt+F3 or ...
Enter your username and password
cd ~/.local/share/gnome-shell/
mv extensions extensions.bak
mkdir extensions
Press Ctrl+Alt+F1
Login and Thanks God

Hope help somebody else. I almost worked full day to find this solution.

PS: I've installed my favorite extentions again and I have to tell you Login Loop disaster in ubuntu has wide variety causes. So try to find your special cause and solve it.


Distro Redmine Ubuntu 20.04LTS not installing any plugins?

It turns out that for distro packaged Redmine you can't use the default Redmine plugin installation procedure which is described in Redmine page.
Instead you have to follow distro plugin installation procedure, which in Ubuntu case is noted in /usr/share/doc/redmine/README.Debian.gz and which is:

You can manually install plugins by dropping them in the
/usr/share/redmine/plugins/ directory (all files must be readable by
the www-data user), and running the redmine setup again:
dpkg-reconfigure --default-priority redmine

However, README says you should actually use --unseen-only switch. Which you MUST NOT DO, else it will silently delete all your existing configurations (eg. LDAP authentication sources), users and passwords and will reset Redmine to initial config with single admin user.
Instead, during running dpkg-reconfigure you must choose No when asked to reset database. This will then configure plugin and leave your existing config alone.


How do I install Windows 8 alongside Ubuntu 12.04

The best way to go about this is to go to the following page Installing Ubuntu Alongside a Pre-Installed Windows with UEFI and see the comprehensive answer given there.


Gdk Gtk warnings and errors from the command line

The Unable to locate theme engine in module_path: "pixmap" messages
 are a known bug.

To fix it, install the gtk2-engines-pixbuf  package

The warnings you get from running Evince are a separate bug. There isn't a fix for that yet as far as I can tell.


MATLAB: Multiple Instances Install questions

I have both MATLAB R2016a and R2016b installed, so I have some experience I can share.

Yes, both versions can coexist. This is because they are installed by default into /usr/local/MATLAB/R2016a and /usr/local/MATLAB/R2016b respectively and therefore don't interfere with each other.
No substantial problems are created when you have both versions. The only problem I can foresee is the matlab symlink that is created in /usr/local/bin if you select that option as mentioned in https://www.mathworks.com/help/install/ug/install-mathworks-software.html#bsnin8x-4. This symlink will link to the version of MATLAB you last installed, which is most likely R2016b. This means the order of installation of these two MATLAB versions matters. You can of course add any missing symlinks in /usr/local/bin yourself if you want.
You install both versions using the same procedures.


I solved the problem for the plugin by installing compiz-* but now it do this

compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : default

And there is an infinity loading

If fixed the infity loading, my ~/.config folder was protected.

Now, when I do compiz ---replace, I have a segfault :/

compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend     : ini
compizconfig - Info: Integration : true
compizconfig - Info: Profile     : default
compiz (core) - Info: Loading plugin: decor
compiz (core) - Info: Starting plugin: decor
compiz (core) - Info: Loading plugin: move
compiz (core) - Info: Starting plugin: move
Erreur de segmentation (core dumped)


Do you mean the file /var/log/syslog.1?  The lsof command will tell you what process has the file open.
sudo lsof /var/log/syslog.1

I would only expect to see rsyslogd with any of the /var/log/syslog* files open.
Is this an program specific log, or have you customized a program to write to this file?  Some programs require a signal to tell them to start using a new log file after logrotate has run.  This is why many logrotate configs use a postrotate setting.  If the program does not have this feature then logrotate can be configured with copytruncate.  From the manpage http://manpages.ubuntu.com/manpages/precise/man8/logrotate.8.html

copytruncate
Truncate the original log file to zero size in place after creating a copy, instead
of moving the old log file and optionally creating a new one.  It can be used  when
some  program  cannot  be told to close its logfile and thus might continue writing
(appending) to the previous log file forever.  Note that there is a very small time
slice  between  copying  the  file and truncating it, so some logging data might be
lost.  When this option is used, the create option will have no effect, as the  old
log file stays in place.


"The PKCS #12 operation failed for unknown reasons." when importing personal digital certificates into Firefox

I already did have a valid pfx file and could not import due to the error mentioned above. After quitting Firefox and staring with an empty session it suddenly worked.
I am using macOS and Firefox 78.0.2 (64-bit).


There are many options available to you.  Without needing to punch holes in their firewall, I'd say, install Google Chrome, and use the remote desktop app that runs in the browser.  After that, Teamviewer works well too.

There are lots of remote desktop software in the repos, but you'd need to use port forwarding on their router.

bertman


Drag and Drop files from browser to LibreOffice Writer not working

In the browser, right click on the image and select "Copy Image." Then in LibreOffice, paste the image using "Edit --> Paste" or Control+V.


How do I add a right click "Compress as ZIP" menu entry?

You can add custom menu entries with the package nautilus-actions, see this Q&A for a similar problem (there are nice screenshots too... :) ).

I couldn't manage to tell nautilus-actuions from which directory to run the path or to run two commands (i.e. cd to the correct directory first). Therefore 2 workarounds:

Full paths

In nautilus-actions:
As command enter zip with the options %d/%f.epub %M.

This will include the whole path in the ZIP file. This is probably not suiteable for *.epub files. You can add the -j flag to include only files (no directories at all).

Script

Place this script at /usr/local/bin:

#!/bin/bash

cd $1
zip $2.epub $3

And use your-script-name as command and this options: "%d" "%f.epub" "%m"

I didn't test it, please report bugs (especially with spaces in the path or file names!) or edit this answer to confirm that it works!


How can I install an .exe file (Avast Internet security) in Ubuntu?

I cannot find a way to install Avast Internet Security 6.0.1367.exe from the exe file directly.

Install Windows.

You are using Ubuntu, not Windows so please have a look at this link for Avast Linux. You need to add their repository:
sudo echo "deb http://deb.avast.com/lin/repo debian release" >> /etc/apt/sources.list
sudo apt-key add /path/to/avast.gpg
sudo apt-get update

and then you can install it...
sudo apt-get install avast
sudo apt-get install avast-fss
sudo apt-get install avast-proxy

You do need an account and a license:

How to insert a license file to Avast Security for Linux?
The access to the program repositories is not restricted in any way, you can always obtain all the latest packages, but for running the components, a license file is required. The license for the products comes in the form of a file named license.avastlic. After obtaining the license file, copy it into the /etc/avast directory:

sudo cp /path/to/license.avastlic /etc/avast

Mind though: being smart is far more important than to rely on 3rd party software. THEIR interest is making money of your paranoia. Nothing more. Use on-line mail (so downloads stay on-line and the mail provider will scan your mails for you) and do not download/install software from random sites (we use Software Center) and there is no need for this kind of software.


how to use old /etc/passwd file and old home directories after system restore?

Some password info is also stored in /etc/shadow, so entries in that file may also need to be made (or that file restored; not just /etc/passwd)

In comments I was also asked about the location of sudoers file; it's /etc/sudoers.  It's risky to edit that file directly (which I do on occasion anyway) as when it's read, if an error is detected it's treated as the EOF (end-of-file) which means any users with rights from that line on in file are ignored which can stop them using sudo. The command visudo command edits the file (using your default editor) and checks for errors before exit.


E: dpkg was interrupted, you must manually run sudo dpkg --configure -a to correct it

The solution is simple and part of the full error message

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

Therefore

sudo dpkg --configure -a

and then

sudo apt-get install cron


do-release-upgrade or apt-get dist-upgrade to go from a 12.04.1 to 12.04.2?

Point releases are not new releases, from the prospective of APT. Therefore, do-release-upgrade would do the wrong thing and upgrade to 12.10.

In fact, do-release-upgrade checks changelogs.ubuntu.com/meta-release which contains just 12.04.2, while there are no traces of 12.04 and 12.04.1. Also, 12.04.2 uses the same archive and upgrade tools of 12.04.1 and 12.04.

Point releases are just used to plan development:

  Compatible with New Hardware: We will make point releases throughout the development cycle to provide functional support for new server and desktop hardware.


Cannot access local server with IP address while localhost and 127.0.0.1 can

Check that your server is listening:

sudo lsof -n | grep TCP | grep LISTEN

You can also check the route using nc.  Start nc on the server listening on an unused port and then connect from another machine -- this will verify iptables and routes are correct.

My guess is that you're listening on the localhost only.


How do I use with LTSP with a Dell FX170 thin client?

Within the BIOs you usually have to turn on LAN booting.

If that option doesn't exist you could use gpxe on a USB key to PXE boot.

http://etherboot.org/wiki/removable


How to have the second taskbar for dual-monitor setup in LXQt

This is possible in Lubuntu 20.04 as well. I was able to create a second panel on a separate monitor that only had the windows open on the same monitor. Here are the steps I took to create that:

Right click on the existing panel and select add new panel.
In the configure panel menu I selected a position on desktop 2 (I chose bottom like the default that is on the first monitor). In this case the desktop number is actually referring to the monitor number.
Next select widgets.
Click the plus symbol to add a widget, select Task Manager (taskbar) and press the add widget. You can then close the add widget menu.
Select the Task Manager widget and click the cog wheel symbol to configure it.
Tick the "Show only windows on panel's screen" to enable.
Close the configuration windows.
Enjoy!


UN50RU7100FXZA share USB drive over network?

No, this is not possible with your TV. I have a similar Samsung TV (different family but same model line), and there is no support to mount or browse a network attached storage drive.

However, the TV does include a basic web browser that can stream media. So you could move the HDD to your Linux box, the set up Plex or another free media streamer. You could then use your Samsung TVs browser to connect to something like 192.168.0.10. Plex would serve a homepage showing the available movies, which can include sources like external hard drives.

Depending on how far the TV is fro the router, you will probably want a hardwired connection of the movies are 4K.


Setting PATH variable for Android Studio Correctly

Sorry for over-editing this answer, but I think I should include a better explanation.

You do not need to set up the PATH if you do not want to, however you will have to type out the path of the executable every time.
~/.bashrc should be in your home folder at /home/tecjunkie/.bashrc (~ is a shortcut referring to your home folder). It is, however, hidden so it won't show up in files. You can show hidden files by pressing Ctrl + h in Nautilus, or from terminal by typing ls -a
It appears you are trying to edit the /etc/bash.bashrc file. This will bring identical results, but is unnecessary since the executable is in your home folder. (see What's the difference between /etc/bash.bashrc and ~/.bashrc? Which one should I use?) Editing that file requires root privileges.
In order for changes to the ~/.bashrc to take effect, you need to run:

source ~/.bashrc

(Rebooting should work too)

This is the easiest way to add a location to PATH.


Trouble with VLC after installing Makemkv

open VLC player and right click on it, in the drop down box select open media then select open disc then in the disc selection menu choose blu-ray by clicking on the button then select the correct path to external dvd  in the DISC Device then play that disc.


The golang-1.7-go binary lives in /usr/lib/go-1.7/bin/go

$ dpkg -L golang-1.7
/.
/usr
/usr/lib
/usr/lib/go-1.7
/usr/lib/go-1.7/VERSION
/usr/lib/go-1.7/bin
/usr/lib/go-1.7/bin/go
/usr/lib/go-1.7/bin/gofmt
…


epson stylus photo R285 prints but no ink level ubuntu 14.04

MTINK

With the package mtink you can meassure the ink levels in certain printers including Epson.

You can install mtink by:

sudo apt-get install mtink


How do I stop a distribution upgrade from upgrading PHP?

You want to do a package "Hold"

https://help.ubuntu.com/community/PinningHowto#Introduction_to_Holding_Packages

Basically you want to do something like:

echo php5-common hold | dpkg --set-selections

And when you're ready to upgrade PHP:

echo php5-common install | dpkg --set-selections

If you want to keep using dotdeb updates that come in, and stay off the Ubuntu packages, you want full Apt Pinning, but that is rather complicated (see the PinningHowto linked above).


Bionic: Block Notification: laptop Battery Critically Low

I found these commands did the trick:-

~$ dconf write /org/gnome/settings-daemon/plugins/power/use-time-for-policy false
~$ dconf write /org/gnome/settings-daemon/plugins/power/percentage-low 0

you can check the dconf edit worked like so:-

~$ dconf dump /org/gnome/settings-daemon/plugins/power/
[/]
percentage-low=0
sleep-inactive-ac-timeout=3600
sleep-inactive-ac-type='nothing'
use-time-for-policy=false

@vanadium provided the correct keys and values to update. The keys were missing from my dconf but adding them seems to have solved the problem.


Ran linux-crashdump and then apport-retrace.  The result showed that Chromium was causing the problem.  Now when I put my machine to sleep, I make sure Chromium is closed and voila, no more crashes upon wake up.  Problem had to do with signature key and inability to get permissions.

Maybe I should go back to Firefox...


You can try disabling the n mode of the driver with these commands:

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

If still has problems, try deactivating the power management of the card with this command:

sudo iwconfig wlan0 power off

Source: http://ubuntuforums.org/showthread.php?t=2219014&p=12998326#post12998326


Please mention a few music making softwares for ubuntu

Following are few that you might like to give it a try:
(I have given links for each software for you to read all features in detail)

JACK: Jack Audio Connection Kit is probably the most celebrated tool as far as music production on Linux is concerned. It's ability to integrate with various other applications makes it favourite candidate. One of the distinct feature is that it provides cross-platform API that enables not only device sharing but also inter-application audio routing. It also shows a very easy learning curve.JACK
Ardour: It is a Digital Audio Workstation (DAW), suitable for recording, mixing and mastering. It can be easily integrated with all JACK applications.
Ardour
Linux Multimedia Studio:  Also know as LMMS, it provides you enough features to get your work done and that too beautifully. It is compatible with MIDI keyboard and hence allows import of MIDI and FruityLoops(FLP) files.
LMMS
Rosegarden: This one is for those who like to compose.Rosegarden
Audacity: Need not mention features for this one. The one of the most famous audio editing software is also available for Ubuntu.Audacity

There are many more available but I have mentioned the most famous and with most features.

Additionally you can also try Ubuntu Studio is which a flavour of Ubuntu solely customized for Multimedia purpose. It comes with many of above mentioned music/audio softwares pre-installed. Do have a look at it's benefits here: Ubuntu Studio


tail a log file but show only specific lines

As the output of grep is buffered, use --line-buffered option of grep to enable line buffering:

tail -f /path/to/log | grep --line-buffered 'X' | grep -v 'Y'

If your grep does not have the option, you can use stdbuf as an alternative:

tail -f /path/to/log | stdbuf -oL grep 'X' | grep -v 'Y'


Website Redirection Occurs: Separate Hosting servers and domain names on different ports 80 & 8080: How to resolve?

The only way to achieve this is using reverse proxy, there is several way to configure it :

host1 proxies request domaname2 to host2.
host2 proxies request domaname1 to host1.
you install a third virtual machine with nginx and it will proxy the both domains.

More information about reverse proxy with nginx:
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

If you would like to make reverse proxy with your current apache:
https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html


Right-click on Touchpad not working after update to 18.04 LTS

Install gnome-tweak-tool
open gnome-tweaks
go to Keyboard & Mouse
under Mouse Click Emulation, select Area.
Reboot.


Boot with a Live CD/USB or whatever you have. Open a terminal emulator (Ctrl+Alt+T) and run

sudo grub-install /dev/sda

I suppose Ubuntu is installed in sda, but if it is not, change sda for whatever it is.


Ok, enough comments ;) …

Edit your script an add the right shebang:

#!/usr/bin/env python3


scope developing / how to change scope result inside perform_action

You cannot change Result itself, it's received for reading only, you need to apply any updates to your backend data and then re-execute search. To do that, reimplement activate() method of your ActivationQueryBase in your ActivationQuery class; do whatever you need to update backend data in activate(), and then return ActivationResponse instance created with this ctor:

ActivationResponse(CannedQuery const& query);

The query argument should point to you scope.

An alternative approach for re-executing the search when a button in the preview is tapped is to set the uri attribute of the button with a value of CannedQuery::to_uri(), but in that case your activation handler is not executed.

Note, with the first approach you are likely to experience https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1335761

I hope that helps.


FATA[0005] unable to pass CNI pod CIDR range check : cni pod cidr 192.168.0.0/16 overlaps with ip 192.168.0.2 of node

Probably your host network has conflict with default pod cdr network. You can ommit this issue with specifying another pod-cdr range.

e.g.:

--pod-cidr 10.0.0.0/16


The Gnome Keyring is used by Gnome-ish apps to store secrets on your behalf. The secrets are stuff like SSH keys, keys to wifi networks, et cetera.

If you want to poke at your keyring, go to the Accessories menu and run the app called "Passwords and Encryption Keys." It will show your a number of folders on the Password tab - each one of those is called a keyring. Each entry under a folder is a password. Double click on them to see their contents.

The reason a keyring is provided is that applications have to store secrets somewhere. It's easy for programmers to make a mistake and leave secrets around for anyone to read. In theory, the Gnome Keyring should store passwords for everything and do it right.

(You should always exercise a minimum of security - add a password to keyrings that you care about, keep your computer physically safe, etc)


Can ubuntu be installed on a USB 3.0, not talking about live usb, i want to install it on usb itself?

Yes, you can from Startup Disk Creator app. If I were you, I might consider buying an external hard disk instead. Pen drivers larger than 8GB are slow, and relatively has a shorter lifetime, because they don't physically get larger even capacity does. That's just a theory... choice is yours.


The system does it automatically.
Adding things to that folder will accomplish nothing.


Command "find -name" must be enclosed in quotes or it doesn't work. Why is that?

If you have a file in the current directory ending with .rb, it'll be expanded by the shell. So, if you have one file named "foo.rb", the command that gets executed is find . -name foo.rb. ("find a file named foo.rb")

It gets even worse if you've multiple files in the current directory (say, "foo.rb" and "bar.rb"). Then the command becomes find . -name foo.rb bar.rb, which will cause an argument error for find.

To prevent the shell from expaning the glob pattern *.rb, you must either quote it (either single or double quotes will do) or escape the asterisk. The below commands have equivalent behavior:

find . -name "*.rb"
find . -name '*.rb'
find . -name \*.rb


After reading it here I changed the session so that "Terminal → Keyboard" has the option "Xterm R6" selected.


you can use NMRPipe which is an extensive software system for processing, analyzing, and exploiting NMR spectroscopic data. An NMRPipe installation also provides the applications NMRDraw, NMRWish, TALOS+, SPARTA+, DYNAMO, DC, MFR, ACME, and others.

Further readings and download

Also check this site. you can find a list of mre than 20 apps for your demand.


Ubuntu 16.04 wont boot after changing xorg.conf files

You don't want to delete Ubuntu files from within Windows. The old trusted program for doing that, Ext2Fs, has bricked many Linux partitions recently.

Boot into grub and selected Advanced Options. Then select the recovery option for the most recent kernel. Login to the console and then use:

$ locate xorg.conf.d
/etc/X11/xorg.conf.d
/etc/X11/xorg.conf.d/20-intel.conf
/etc/X11/xorg.conf.d/20-nvidia.conf
/usr/share/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d/10-amdgpu.conf
/usr/share/X11/xorg.conf.d/10-evdev.conf
/usr/share/X11/xorg.conf.d/10-quirks.conf
/usr/share/X11/xorg.conf.d/11-evdev-quirks.conf
/usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf
/usr/share/X11/xorg.conf.d/50-synaptics.conf
/usr/share/X11/xorg.conf.d/50-vmmouse.conf
/usr/share/X11/xorg.conf.d/50-wacom.conf
/usr/share/X11/xorg.conf.d/51-synaptics-quirks.conf
/usr/share/man/man5/xorg.conf.d.5.gz

Find the file in question on the list and use rm -f /path/filename to remove it. Then type reboot.


Fresh Ubuntu Installation Freezing When I Start Up My Computer Windows 10

If you are sure that the USB is a live installation media, than you can try spamming the boot menu button, which seems to be the f11 key while the computer is booting up. This will prompt you for a boot menu to select the boot device you'd like to use. At that point choose USB or the San Disk Cruzer Glide 32GB and let the installation continue. Once you have installed Ubuntu, make sure that you take out the installation media (USB) BEFORE starting the computer again. Than you should boot into the correct OS!


Unable to assign command output to a variable

Your second line of script should work unless the pur_bom_interface_daily*.log files do not exist in your current working directory. To prove it try this example code block:

mkdir logfiles
cd logfiles
touch log-{1..4}.log
fn=$(ls -lrt log-*.log)
echo "$fn"

The results of the last command should list the 4 new log files that you made using touch.

The example code block should also work if you substitute the fourth line with:

fn=$(ls -lrt log-*.log | cut -c1-59 | tail -4)

...although you might have to change the 59 to a different number in order for the output of each line to be of a meaningful length (59 is the length of each line of output in the above line of code).


Custom Server ISO cannot find kernel to install

[cdrom]/install/filesystem.squashfs contains a pre-installed version of ubuntu-keyring, and the ubuntu-keyring package within /pool/ on the CD is not installed prior to apt-cdrom being executed by debian-installer - therefore apt-cdrom fails to verify the modified Release file, and apt won't touch the packages on the CD.

Something like this is required, in order to replace the baseline keys with your modified version:

mkdir /tmp/CDRom
mount -o loop /path/to/trusty.iso /tmp/CDRom

mkdir /tmp/SquashFS
cd /tmp/SquashFS

unsquashfs /tmp/CDRom/install/filesystem.squashfs
cd squashfs-root
cp /path/to/modified/ubuntu-archive-keyring.gpg usr/share/keyrings/ubuntu-archive-keyring.gpg
rm /path/to/FinalCD/install/filesystem.size /path/to/FinalCD/install/filesystem.squashfs
du -sx --block-size=1 ./ | cut -f1 > /path/to/FinalCD/install/filesystem.size
mksquashfs ./ /path/to/FinalCD/install/filesystem.squashfs

apt-cdrom will then work correctly.


Running a script after reboot, but before login

Thank you for all your responses. I was able to fix it to send me a message before login, as soon as the machine restarted and network services came online. I have handled no network connection state in my python file and did not have to wait for network to be established for running the code. What have I done? Here are the exact steps.

Created a file by name reboot_notify.service on my Desktop.
Added the following content to my file (copied and edited from another service already in my system available at /usr/lib/systemd/system/)

[Unit]
Description=Notify on reboot

[Install]
WantedBy=multi-user.target

[Service]
ExecStart=/usr/bin/python3 /bin/reboot_notify.py

(The error in the question was that python did not exist in the directory.) I moved my python file to /bin and used python-3.x's default install location. ExecStart is the command to be executed, you need to put the command you want to run here. Rest of the file is copied except for Description.

Moved the .service file from desktop to /usr/lib/systemd/system/.
Ran systemctl daemon-reload for it to update the list of services.
Ran systemctl start reboot_notify.service to start the service. If there are any errors, you will get them here. You need to have no errors to proceed.
Ran systemctl enable reboot_notify.service. At this point the service got executed and I was notified by my setup.
Rebooted to check if it worked. It did. You can check the status of your service by running systemctl status reboot_notify.service.

Many thanks to @Matigo for his comment which helped me make this work.


check the size of the photos.

Nautilus have fixed size to view, if not mistaken is something less than 10MB for viewing.


how to revert changes on /etc/environment, which prevent a login

Restart your system, when starting press ESC to reach the grub bootmenu.

Start the recovery mode, open a root shell and revert the changes.


Missing /dev/dsp* - what do I need to do/install for sound input from mencoder?

The problem seems to be that you're recording from a webcam and while the webcam might be the same, the sound device you're recording from isn't. So you end up with different results.

The first thing to do is to test you can record sound at all, use the sound recorded to test this and make sure to adjust the settings in System > Preferences > Sound

Once you know the sound input works, next you just need to use padsp in front of your command above, for instance:

padsp mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp1 ...

This command makes a /dev/dsp access for your command on the fly and pipes the sound via pulseaudio. See details here:

http://manpages.ubuntu.com/manpages/hardy/man1/padsp.1.html


Tweetdeck is not open source. A list of twitter clients is here:

What microblogging clients are available?


I have found a bug--how do I know which to report to?

This happens with multiple applications; the common factor is the Unity launcher. Therefore, as aking1012 commented, you should report this against unity with ubuntu-bug unity. In the (somewhat unlikely) event that this turns out not to be the right package, it can be changed later (by you or a triager or developer).

Make sure your bug report thoroughly describes the problem, including what applications trigger it and which do not. Please also read the bug reporting documentation first (if you haven't done so already).


Why is gpg getting upset and how do I stop it?

I ran into the same issue however I no longer had access to the old key.  So you can recreate the trust on your old key with this:

gpg --edit-key YOUR@KEY.ID
gpg> trust
Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)

  1 = I don't know or won't say
  2 = I do NOT trust
  3 = I trust marginally
  4 = I trust fully
  5 = I trust ultimately
  m = back to the main menu

Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y


restore transmission-daemon status and list from broken ubuntu install

I discovered the answer when i tried to begin a new torrent.
The permissions on the old installation had become incorrect and had been marked as owned by cups-pk-helper:whoopsie.
changing the permissions for the directories and files to debian-transmission:debian-transmission fixed the issue.


Ubuntu 18.04 doesn't boot after recent kernel updates

BIOS
HP Notebook 15-bs164tu
You have a very old BIOS version F.34.
There's a newer BIOS available, version F.65 Rev A, from Jan 10, 2020, and it can be downloaded here.
For BIOS install help, see here.
Note: Verify that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.
/swapfile
Let's increase your /swapfile from 2G to 4G...
Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.
In the terminal...
sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 4G RAM and 4G swap

Confirm this /swapfile line at the end of /etc/fstab... and confirm no other “swap” lines...
To edit, use sudo -H gedit /etc/fstab or sudo pico /etc/fstab
/swapfile  none  swap  sw  0  0

reboot                    # reboot and verify operation

Update #1:
Well... although I believe that there's just a setting in the new BIOS... let's start with the basics... and check your file system.

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #2:
Installed Ubuntu 20.04 and it's all working again... and it's working with the latest kernel, and the new BIOS.


Ubuntu kernel 5.8.0-36-generic full of problems latest nvidia upgrades brake older kernels 5.4.0-60/58-generic

It is reported as a bug here:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-5.8/+bug/1911136
A work-around might be to reboot with the working 5.4 kernel.


Does not seem to have an app for it, but can be done:

Connect your device via USB, enable Developer Mode in: "System-Settings->About This Phone->Developer Mode"
Run (from your PC, making sure to have the phone screen unlocked, else adb will refuse to let you in):
adb shell android-gadget-service enable rndis
This will enable tethering. It will also disable MTP (USB file access). You can re-enable MTP later with:
adb shell android-gadget-service enable mtp

If the adb command above fails, it might be because the vendor of the phone is unkown (it was for me in 14.04). In that case find it with

lsusb
Bus 001 Device 010: ID 2a47:0c02

And add it to ~/.android/adb_usb.ini
0x2a47

Then restart the adb server after you edited the file with:

sudo adb kill-server;  sudo adb start-server

Note that the above answer is not required any more. In the device "System Settings" there is now a "Hotspot" section to achieve it painlessly.


upgrade from Lubuntu 13.04 to 13.10 failed and system doesn,t boot

Had exactly the same problem, nothing was helping, don't worry, your files won't be deleted (even if they are encrypted) just calm down and

Try this:

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

even my previously opened tabs in chromium were not closed :)


Xubuntu 14.10 on VirtualBox -- won't start or install

This http://ubuntuforums.org/showthread.php?t=2250037 solution worked for me.

Preferences + efi.

Some vdi images can also be downloaded, but that bybass the difficulty.

http://www.osboxes.org/xubuntu-14-10-images-released-vmware-virtualbox/


Can you try this from the command line?

sudo apt-get install -f
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3


The base class for the Preferences dialog is looking for an object named preferences_gtkreddit_dialog, you need to either rename the dialog back to that.

In addition, somehow your PreferencesGtkredditDialog Glade file has been changed to think it is an instance of GtkDialog, where it should be an instance of PreferencesGtkredditDialog.


SSH conection: terminal works but Nautilus does not

Found the problem.

I had lines in the original $HOME/.bashrc file that changed the HOME environment variable and then sourced another .bashrc file in that new HOME directory. After eliminating this code, I do not know why but, problem solved.


Setup of two additional SSD drives in RAID 1

Okay i got it:

1) First list all drives: sudo lshw -c storage -c disk
and note down the drives that needs to be put into a new raid array (in my case /dev/sda and /dev/sdb)

1.1) If you need to find out what drives are already in a raid this can be done with sudo cat /etc/mdadm/mdadm.conf details about which drives they cover can be inspected with sudo mdadm --query --detail /dev/md0 where /dev/md0 is the array you want to inspect.

2) Now use fdisk to format the drives and create partitions for each drive: sudo fdisk /dev/sda this is done for each drive (and they should of cause be setup equally)

If the disk is not "clean" then press d and follow instructions to delete the current partitions (note all data will be lost on that disk!)
Then press n to create a new partition.
Press p for primary and 1 for one partition, and use the defaults (pressing return).
Press t for type and set the partition type to fd (linux raid autodetect).
press w for writing your changes and exit.

3) Create the RAID array: sudo mdadm --create /dev/md3 --chunk=128 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1

4) Format the array: sudo mkfs -t ext4 /dev/md3

5) Lookup the infor for the new array using method in step 1.1 and edit sudo nano /etc/mdadm/mdadm.conf accordingly with the following line for your new array ARRAY /dev/md/3 metadata=1.2 UUID=f368e29e:b79c72bd:631ce90f:e3370f90 name=master-db:3

6) Create a directory (mount dir) for the new drive sudo mkdir /new_device

7) Mount to fstab by editing sudo nano /etc/fstab with /dev/md3  /new_device  auto   defaults  0 0

8) Run sudo mount -a

Check that everything runs with: sudo cat /proc/mdstat

Some helpfull links: https://help.ubuntu.com/community/Installation/SoftwareRAID http://superuser.com/questions/230497/how-can-i-add-a-raid-1-array-in-ubuntu-10-04
Which hard disk drive is which?


Accidentally executed shred on wrong volume

As there is limited information about the drive type it might help to say that from past experience with thumb drives you should firstly copy the whole disk using something like Win32DiskImager or if the HDD is too large for this then you might be able to copy the stored data area. Some of the recovery tools can potentially make things worse.

Next, there does seem to be some hope of restoring the data, these links should give more information.

http://www.tldp.org/HOWTO/Partition/recovering.html

https://www.linux.com/learn/how-fix-mangled-partition-table-linux

https://unix.stackexchange.com/questions/33284/recovering-ext4-superblocks


you have many solutions to this case

add your user as a member of the group deluge
change ownership of created files by deluge
change permissions of the newly created files

  Add your user as a member of the group deluge

sudo usermod group-name user-name

  change ownership of created files by deluge

sudo chown username:username /path-to-files-created-by-deluge

  change permissions of the newly created files

sudo chmod 777 /path-to-files-created-by-deluge


Putty : connection timed out in public network (Ubuntu 16.04)

It is likely that your wireless network is set up in isolation mode, meaning clients purposefully cannot see each other.  This is to prevent folks from setting up sub-networks, or trying to use a wifi IP to connect to a physical network device.

Your only real option is to connect both clients to a VPN hub, and interconnect via ssh over the VPN.


How can I make the icons larger and/or clearer in Classic Menu Indicator?

Making the icons clearer
The option that should makes icons larger doesn't work, probably because it's constrained by the overall Ubuntu font size setting, but here's how to make the icons less blurry (clearer).

In /usr/lib/python2.7/dist-packages/classicmenu_indicator/cmindicator.py, find this at or around line 97:
pixbuf.scale_simple(width, self.icon_size, gtk.gdk.INTERP_BILINEAR)

and change the last part to:
pixbuf.scale_simple(width, self.icon_size, gtk.gdk.INTERP_HYPER)

This uses a better algorithm for scaling to the icons to the smaller size, and they look better -- compare before (left) and after (right), at 500% magnification:


Does Evolution have 'zoom text' feature?

Yes, it does have such a feature, try this:

Move the mouse pointer over the mail preview window
hold down the Crtl key while scrolling with the mouse wheel

Now the text will be enlarged (scrolling-up) or made smaller (scrolling down). This does not work with message lists, just with the message preview.

Remark: Above assumes you have "focus-follows-mouse" activated. Without that, you might have to activate the preview by clicking into it. And Ctrl++/- works fine here as well for me – again, in the message preview only.


Skype 4.3 can not connect on Ubuntu 18.04

Apparently I had a previously installed i386 version of Skype, which I guess overlapped with the new .deb (64 bit) package. I made sudo apt purge skype and all the packages skype:i386* have been removed.

It now correctly works (I guess from the .deb installation). Version is not 4.3, but 8.57.0.116. It is the current version in the official site.


Try going to: Network menu > Edit Connections > Add

Then choose mobile broadband from the list and follow the instructions provided.


There are quite a few things that can effect a computer slowdown that just doesn't seem to have a cause.

One is thermal problems, things like processors, Video cards, and memory overheating and causing the machine to throttle back.  Heat sink compound being old, not enough heat sink compound, and in some very rare cases too much heat sink compound, can be the problem.

Defective and/or dirty fans that cut in and out.

There are BIOS settings that can cause slow downs, memory timing issues, wait states, drive controller modes, etc.

Driver issues can cause slow down problems.

Power supply problems, even damaged connectors on the cables.

Bad filter caps.

Cards not seated properly in the motherboard.

You can even have AC power line problems like drop outs, low line voltage.

You could also be having network or internet connection problems, some are real simple things like old cables, blocked Antenna on WiFi, phone line noise on a DSL, or is it time of day related maybe your ISP is bogged down, etc.

Oh and here's a real off the wall one.  Do you have a case with a fan mounted on the side panel?  I saw one customer ware when the user pulled the system open and ran it with the side panel off, everything worked fine, put the side panel on and the computer gradually slowed down.  The power cable for the side fan was sticking in between the CPU fan fins with the side panel on and stopping the fan from starting and then the heat sink would heat up the CPU would throttle down.

And of course we have the old operator error.  Are you drinking too much coffee with lots of sugar and just thinking the machine is getting slow?  LOL!  OK, OK, probably not.

Anyway a few off the wall ideas that may help.


Where to find Ubuntu Server Edition for education?

All Ubuntu flavours are completely free for all purposes. You are welcome to make a donation though.

You can find Ubuntu Server releases for download e.g. at https://www.ubuntu.com/download/server or http://releases.ubuntu.com/.

The official Ubuntu Server documentation can be found at https://help.ubuntu.com/lts/serverguide/index.html, an installation guide at https://www.ubuntu.com/download/server/install-ubuntu-server.

If you have specific questions, feel free to ask them here on Ask Ubuntu.


How do I accept Oracle's license agreement while installing JDK?

Press the Tab key.
When the <Ok> text at bottom center gets RED, press Enter key.


I have not added the pmcenery/ppa to my software sources and I have libimobiledevice available in the Software Centre.

Simply open the Software Centre and type libimobiledevice in the search box, you should see a result like the following;

Select it for installation and once complete you should get the following;

You should note that the version in the software centre is 1.1.1-4 and according to the developers website it is the development release.

Launchpad has packages for all versions of Ubuntu from Oneiric to Quantal


Convert hard disk installation of Ubuntu 15.10 to live cd/ iso

You could try: pinguy-os.

That basically lets you clone the running instalation to a live CD/DVD.

Note there are caveats around the maximum size things can be, and like with all live systems, performance is liable to suck.

Might be worth looking at for you though

You might also like to check out UCK.

Not exactly what you wanted, but it might provide some insight into the process and help you refine what you want.


I've found a solution here: https://bbs.archlinux.org/viewtopic.php?id=187624

You have to disable USB 3.0 in BIOS


Use lib32z1 - worked for me (Ubuntu 13.10).

sudo apt-get install lib32z1


Open Keyboard Shortcuts (System -> Preferences -> Keyboard Shortcuts). By default you would see "Launch Calculator" action mapped to XF86Calculator, click on it and press Backspace to leave it disabled.
Click on Add button to get "Custom Shortcut" dialog. Enter name as "My Calculator Script" and command as the full path to your script. Click OK.
You will find this new shortcut at the end of the list. Click on it (you will see shortcut entry against it will change from Disabled to New Shortcut...).
Press the XF86Calculator key (the special calculator key on your keyboard)
Press Close to close this dialog. This should now run your script when you press the calculator key.


Bluetooth on Ubuntu 15.10 not deteced and not detecting other devices

As mentioned by Pilot6 in the comment above, this device uses the QCA_ROME driver. However, this precise bluetooth device is not currently supported in the kernel sources.

I'm on a Acer Aspire VN7-791 (quite similar model), with the same bluetooth device. Output of lsusb:

Bus 003 Device 007: ID 0489:e092 Foxconn / Hon Hai

On my laptop, this device is actually used as a combo with Atheros Qualcomm Killer N1525 Wireless-AC [168c:003e], which has taken time to be integrated in the kernel (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1383184)

I could fix the problem using the same approach as described in https://unix.stackexchange.com/questions/247195/bluetooth-scan-does-not-find-any-bluetooth-device.

Just follow the instructions from the link above, but add the following line in btusb.c instead (close to other QCA_ROME chipsets) :

{ USB_DEVICE(0x0489, 0xe092), .driver_info = BTUSB_QCA_ROME },

I submitted a bug report and patch here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1589023


Cannot connect to wired connection or see available networks

What happens if you type sudo service network-manager restart? This just restarts the network-manager service. Changes to /etc/network/interfaces will not take place until the service is restarted if I'm not mistaken.


UbuntuOnWindows: Restoring backup directory causes UbuntuOnWindows to fail starting

As this blog: Do not change Linux files using Windows apps and tools and many others explicitly state, if you use a Windows program to create or modify files in Ubuntu on Windows they will become corrupted. You must use a Linux program to copy, restore or modify files within Ubuntu for Windows.

I suspect you used a Windows program to restore the .zip file and not a Linux program like one of those found here: Zipping and Unzipping Files in UNIX


In windows start menu go to Settings -> Power Options -> Change what the power buttons do -> scroll down to the Shutdown settings now turn fast boot OFF , this is similar to a hibernation, do a shutdown, power back on enter BIOS setup, check settings, save & exit, then be ready to hit whatever key brings up the boot menu, could be F12, F9, then you should see your USB stick, if not you may have to go back to the bios and set the boot to legacy mode.


Laptop screen tearing on Ubuntu 16.04 LTS x64

try running these commands in terminal:

\#!/bin/bash

nvidia-settings --assign CurrentMetaMode="$(nvidia-settings -q CurrentMetaMode -t|tr '\n' ' '|sed -e 's/.*:: \(.*\)/\1\n/g' -e 's/}/, ForceCompositionPipeline = On}/g')" > /dev/null

i just found this solution and it fixed it for me. Basically it had something to do with the OS using graphics drivers from your cpu and your gpu for various different functions at the same time. I don't know really though. However this worked for me so hopefully it does for you too. Otherwise it may be a driver issue and you'll need to reinstall that.