convert: not authorized `11BKK.eps' @ error/constitute.c/WriteImage/1028

This problem has been solved by a software update, and convert file.jpg file.eps now works successfully.

You can also open the .jpg file in GIMP image editor instead. This method also worked 3 weeks ago before the recent software update. GIMP can convert .jpg files to any of its supported image formats including .eps. To install GIMP run sudo apt install gimp The Save option in GIMP saves a snapshot of the state of the file that you are working on that can be reopened to continue working on the same file later. In order to save the image itself in GIMP use either File -> Export or you can overwrite the input file with File -> Overwrite.


Shred all physical disks?

Get the disks list with something like lsblk -S | grep disk | cut -d " " -f 1 then run the a loop against this list

#!/bin/bash
## get disks list
DisksList=$(lsblk -S | grep disk | cut -d " " -f 1)
## Loop from https://askubuntu.com/a/786171/77093
for d in $DisksList ; do
    ## shred --your-options-here /dev/$d 2>&1 >shred.$d.log &
    # example of a shred command options, no log, one thread
    shred -vfz -n 1 /dev/$d
done


is it possible to rsync to another server using crontab?

The best option, if you can, is to set up key-based SSH authentication on the remote server, and use a key with no passphrase on the client.  This will allow the SSH connection, which rsync uses when you use that [user@]server:path notation, to happen without prompting for a password.

Ubuntu documentation for doing this is at:

https://help.ubuntu.com/community/SSH/OpenSSH/Keys#Key-Based_SSH_Logins

Once set up, try to SSH to the remote server from and to the same accounts that rsync would use, and see if it asks for a password.  If it doesn't, it's set up correctly.


gnome-do style keyboard shortcuts in Unity

Edit: As of Ubuntu 11.04, this answer is wrong.  See What are Unity's keyboard and mouse shortcuts? for a large number of keyboard shortcuts, including an Alt+F2 launcher.

As far as I'm aware this is currently not possible.

One of the requirements for switching to Unity on the desktop is that it needs accessibility work.  A part of this work will be to ensure that Unity can be driven by the keyboard, so I would expect that this will be possible in the Ubuntu 11.04 release.

What I use for Do-style keyboard shortcuts in Unity is Do; it's a great complement to the Unity shell.  The main problem is that Unity eats win keypresses, so the default Do shortcut is not available.  It's easy to change the Do keybinding to something else, though.


Every app setting (as browser extensions, bookmarks etc) is inside "/home/yourusername" folder. So you can press ctrl+h inside your-home-folder to notice if there are hidden folders with strange attributes that you can fix.
If there are no files anywhere, you can try a free app for linux is called r-linux. With r-linux you could search your disk (if it is working fine) and you should be able to find any of your missing files.
Although you should read the very useful comments above. Hope it helps


Windows share locks up when php-fpm tries to access it

After doing some back tracking, I seem to have resolved the problem.

Earlier today, I updated Kasperksy Endpoint Security from version 8 to version 10 on my host before doing any work.

After this event, I started seeing the problem.

To rule out the issue, I uninstalled KES but the issue still persists.

I then installed ESET smart security and everything seems to be fine. This leads me to believe that after KES was uninstalled, the windows firewall was automatically turned back on, which started blocking or discarding Samba packets, causing those issues.


Seems like this is what you need. A gtk port of a kde theme. You will require gtk supported engine and it seems oxygen supports both gtk2 and gtk3. There seems to be a ppa providing the required theme as well as engine. You may use it as well or search for other ppa in Launchpad. Just do:

sudo add-apt-repository ppa:hrvojes/kde-goodies
sudo apt-get update
sudo apt-get install gtk2-engines-oxygen gtk3-engines-oxygen oxygen-transparent

What are PPAs and how do I use them?


This is probably because the message is stuck in motd.  See the answer on: Persistent "disk will be checked..." in the message of the day (motd) even after reboot

The solution:  remove the file /var/lib/update-notifier/fsck-at-reboot and reboot, or run this command line to remove the file and fully regenerate the message of the day:

sudo bash -c 'rm /var/lib/update-notifier/fsck-at-reboot && for file in /etc/update-motd.d/*; do $file; done > /var/run/motd' && cat /etc/motd


Get best from both worlds: Gnome and Unity

2 solutions I know that might interest you are:

1) For GNOME:

Hide titlebar for maximized windows:
https://extensions.gnome.org/extension/354/maximus/

Get the global app menu(I never tried this):
http://www.webupd8.org/2011/09/get-global-menu-in-gnome-shell.html

1.1) For theming you didn't like about GNOME:

Enable user themes: https://extensions.gnome.org/extension/19/user-themes/

Install some theme that offers shell theme as well, I recommend: https://github.com/horst3180/Arc-theme

Open Tweak Tool(gnome-tweak-tool) and set Shell and GTK+ theme to something you like.

1.2) Unrelated to question, but for anyone who is reading this and wants unity dash as well:
https://extensions.gnome.org/extension/307/dash-to-dock/

2) For Xfce:

Yea, I know you didn't mention Xfce, but it is highly customizable, and I would recommend you try it.

Move menu bar: http://www.webupd8.org/2015/02/use-global-menu-in-xubuntu-or-linux.html

Hide titlebar for maximized windows: http://ubuntuhandbook.org/index.php/2014/09/window-titlebar-buttons-on-panel-xfce4/


Ubuntu 16.04 login loop with custom NVIDIA driver

The real reason why this happened for me was this: I had NVIDIA custom driver installed which compiles a kernel module underneath and everything was working fine for a moment.

Since it was a fresh install, Ubuntu decided to download some updates and during the upgrade it updated the kernel, and potentially some other libraries that compiled NVIDIA driver was dependent on and that broke their binary compatibility.

At that point after reboot I got stuck in login loop in lightdm, and was unable to run my X sessions with startx also. It looks like upgrade broke compatibility not only with the NVIDIA HW accelerated rendering module, but also SW module, so Unity/Gnome had nothing to render with at all.

To fix this, I just ran the NVIDIA install script that I downloaded once again, and after a recompile things went back to normal. Hope that helps someone.

P.S. I'd like to point out that in my solution returning back to crappy video card drivers was unnecessary.


Ubuntu 20.04.2 LTS auto shut down problem

It sounds like Ubuntu is trying to enter low-power mode.
This is evident by the part where you said the laptop has no GPU.
Low power mode turns off the GPU, but in this case it's integrated graphics so it's accidentally killing the computer.
The solution should be to go into settings and make it sleep instead of entering low power mode, or disable that entirely.
If this doesn't work, let me know.


Accidentally deleted Python3 with Ubuntu. Now so many things dont work

DO NOT upgrade, downgrade, or otherwise change the installed version of Python2 or Python3. You will break many important system services that rely upon that specific version...as you have already discovered.

Completely uninstall whatever non-Ubuntu version of Python3 you installed.
Disable or delete their apt sources, if any.
Refresh your package database (sudo apt update) if your sources changed.

Replace the system-compatible version of Python3 easily:

sudo apt-get install --reinstall python3     // Ubuntu 14.04 and earlier
sudo apt install --reinstall python3         // Ubuntu 16.04 and later

If you get other missing-file or missing-package errors, reinstall those packages also.


How do I install and get started with vim/vi?

I suggest you install vim. From the terminal Ctrl+Alt+t:

sudo apt-get update
sudo apt-get install vim

Several dependencies will also be installed. Then start a new project, again from the terminal:

vim new_project.c

Learn more about vim:

man vim


How can I fix my gnome desktop / X server in Ubuntu 13.10

I found some additional help here on crunchbang forums

It told me there was probably something wrong with my installation of fglrx so I uninstalled that through apt-get.

After a reboot after this uninstall I finally got my desktop back. But this time it is the Unity desktop while I had removed that in my previous release.

I reinstalled gnome-session-fallback and it seems my session is restored as I wanted it after choosing Gnome Session before logging in.


Minimum space requirement for /boot partition

The /boot partition contains the GRUB configuration, the kernel with their System.map, 1GB should be enough.

Name   | Size
/boot  | 250MB ~ 1GB
swap   | at least size of RAM
/      | minimum 8 GB, at least 15 GB recommended

Source


How to open phpmyadmin after xampp installed on linux?

With the command

sudo apt-get install 'lamp-server^'

you have installed a thing called task. But this task does not contain phpmyadmin.

You have to install it:

sudo apt-get install phpmyadmin

At this step :

Do not forget to check apache2 with Space, then Tab to select OK.


Set A Lower P-State For My CPU (Underclocking)

I would use CPUFreq

I used CPUFreq in order to under-clock my processor in my laptop. Unfortunately, my laptop had an nForce motherboard chipset, and I couldn't undervolt my processor with the traditional Intel methods... and that was all there was. However I was from a 2.4GHz to 1.6 drop, and that helped reduce the heat and power consumption in my laptop.

Download cpufreq from the repository.

Open a terminal as root or use sudo:
Code:

cpufreq-info

to view your profiles and
Code:

cpufreq-set

to set your profiles.

Use
Code:

cpufreq-set -h

To determine what to put in the command line.


Android devices stopped showing up in Nautilus (Ubuntu 18.04)

The solution is to reinstall Nautilus:

sudo apt-get remove nautilus
sudo apt-get install nautilus

I've found the results of the installation command especially interesting:

The following additional packages will be installed:
  gvfs-backends
(...)
Selecting previously unselected package gvfs-backends.
(...)
Setting up gvfs-backends (1.36.1-0ubuntu1) ...

It is possible I've removed gvfs-backends unwittingly while playing around with network and SMB.


How do I customize my desktop to look like this screenshot?

Also, the icon theme in the top picture is Faenza.

To install:

sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update
sudo apt-get install faenza-icon-theme

Then choose your icon theme using eg. Ubuntu Tweak:

sudo apt-get install ubuntu-tweak


Is there a really easy way to make a live USB in win 8?

Yes, but you'll have to format the USB drive (this should be obvious). Rufus is an amazing tool that quickly formats the target and makes a bootable disk for pretty much anything. I highly recommend it.


I just installed Ubuntu 13.04 and I can not connect to the network

If you have a second computer, try installing the wireless drivers, that could perhaps solve it. if you have a wireless switch, try turning it on and off again.


Is dconf-tools/editor not included in ubuntu 14.04 LTS (Unity)?

The dconf-editor package is available to be installed in Ubuntu 14.04, but it is not a part of the default installed packages. It was never a part of the default install.


How do you install a VM with GUI via ssh on Ubuntu Server

Please don't mind my previous comment. This one is tested. You have to give some more parameters to --graphics option when you install the VM, as below:
$ virt-install --name=windows10 --vcpus=4 --memory=8192\
  --cdrom=/mnt/data/iso/Win10_20H2_v2_EnglishInternational_x64.iso\
  --disk /mnt/data/vm-images/win10-vm,size=50,format=qcow2,bus=virtio\
  --network bridge=br0,model=virtio --os-type=win10 --os-variant=win10\
  --graphics vnc,port=5901,listen=0.0.0.0`

It specifies that server will listen to the VNC requests on all IPs, otherwise it listens to them on loopback address (127.0.0.1).
After then, with the following command you will see the listening port of VNC:
virsh domdisplay windows10

It must return something like: vnc://localhost:1 Then you can connect to your server with VNC at the specified port.


How to annotate a PDF

sudo apt-get install okular

Open the PDF with Okular, press Review, then go to Settings → Full Screen Mode (or ctrl + shift + F). You can close full screen mode by pressing the combination again, but in case you can't remember it: Press alt to open the HUD, type "exit", and press enter.

You might want to define different free hand pencils in the settings. (I have no idea how well they work with a stylus since I don't have one, but there is still the other option using LibreOffice.)

How to import PDFs into LibreOffice Impress

Open any LibreOffice Module or the LibreOffice starter and choose File → Open. Select the PDF. LibreOffice Draw will open. Select any slide on the left and press ctrl + A to select all of them. Copy them, open up LibreOffice Impress, and paste them in the slide panel there. Start your presentation by choosing Slide Show → Start From First Slide or pressing F5.


Problems embedding a command in Bash PS1

What did you try? You could define a function in your ~/.bashrc, thusly:

function showmem() {
    free -m | tr -s ' ' '\t' | grep Mem: | cut -f3
}

and then set Bash's PROMPT_COMMAND to that function

PROMPT_COMMAND=showmem

Remember to source ~/.bashrc whenever you change ~/.bashrc.


The following approach works for me on Ubuntu 13.04 and 13.10:

Download input-wacom-0.20.0.tar.bz2 from SourceForge
Untar it and run ./configure. It is necessary to have gcc installed to compile (sudo apt-get install gcc)
Copy 3.7/wacom.ko to /lib/modules/$(uname -r)/kernel/drivers/input/tablet/
Add wacom to /etc/modules because tablet is not recognized automatically and the module is not loaded without this.

The above worked fine for kernels 3.8.0.34 on Ubuntu 13.04 and mainline 3.12.6 on Ubuntu 13.10. I've installed 3.12.6 to check if its wacom driver contains recent changes but it is not the case.


Your Ubuntu user password doesn't need to be the same as your password elsewhere (e.g., for your email). Thus, two people who don't trust each other for everything may still be able to trust each other enough to share a user account and password.

If two users share the same account and the same login password, each could change the password to lock the other out from accessing the account. However, a user can always make configuration changes to his/her accounts to render it inoperable. This would be possible even if they logged in with different passwords. If you don't trust them enough to not deliberately (or accidentally) mess up the account for each other, then they need to have separate user accounts.

If you don't trust users enough to fully share an account (or you just want them to be able to have their own settings, their own files, their own space), you should instead have two accounts with access to shared resources (e.g., folders) as necessary.


Mozilla Firefox doesn't scroll smoothly on Ubuntu

Firefox 46 brought GTK3 integration and true "pixel-perfect" scrolling for touchpads.

To enable it, you must set the MOZ_USE_XINPUT2=1 environment variable.
There are a number of ways to do this, one of them would be to add it to /etc/environment and then reboot the machine:

echo MOZ_USE_XINPUT2=1 | sudo tee -a /etc/environment


Ubuntu can't detect my Nvidia graphics card

What kind of error is reported when you try to install via the "Additional Drivers" panel?
Have you tried to install the drivers via the official nvidia download site?
Have you checked X.org is working correctly?
Have you checked your kernel modules and current hardware "reports"?

This is a possible duplicate of another question:

Get and install Nvidia GeForce 8400 GS driver


Netbeans and codelite do not recognize #include  C++

you need the development headers.

sudo apt-get install build-essential
you have a typo

return 0

(note the space)
Now it compiles, but you missed the newline after the output string...

cout << "Hello world!" << endl;

or

cout << "Hello world!\n";

otherwise your output will be messed up with the next shell prompt:

Result of your program without the new line:

[:~/tmp] 1 % g++ lilla.cc
[:~/tmp] % ./a.out
hello world!%

(Note the % ...)

For the future, if you have some header file missing, normally the problem is that you do not have the corresponding -dev package. To try to find it, it is a good thing to install apt-file and search for it (this is an unrelated example, because iostream.h has too much hits):

apt-file search missing_header_file.h

...and then wade through the result and see if a relevant package carries it.


How to set Chrome as default browser for Java installation

Use google-chrome-stable.

Alternatively, the .desktop file in /usr/share/applications can be used as well if you want fancy options to be given to your browser.

Just less the smallest .desktop file you can find in that directory to get a look and feel for the contents before you tackle something like google-chrome-stable.desktop.


Cannot connect to Docker daemon as non-root (sudo) even when being part of the docker group

I know this was old but I ran into exact issue and almost searches don't help.
This problem causes by wrong DOCKER_HOST env we added when installing docker (for me the env added in ~/.profile). Check this file if you see:

export DOCKER_HOST=127.0.0.1

then remove it and run:

source ~/.profile

then restart docker service:

sudo service docker restart

done

Note: The DOCKER_HOST env only resetted in current terminal, we must restart the computer to make Docker works perfectly


Thats the tricky thing here too - If you have Ubuntu 64 - Bit - installation on to a machine like intel-core-2-duo ( 1st generation ) and there is Vista or XP. But Vista resp. XP run only as 32-Bit-Systems. Then one cannot take 32-Bit-System of virtualbox ?! - not sure if this works with 64-Bit of Ubuntu - it would work better with Vista resp. XP - so it is worth a try to take virtualbox as 32-Bit program ( not the one built as 64-Bit program ) ?! ( have not tried that yet - but expect this to work better then and Windows-32-Bit-systems are then not slowly any more ).


After installing 16.04 LTS, I can't log in

I watched the video."also my English is very very very very bad."
It didn't happened to me before.I think theres a problem with the desktop.
But you could try these:

*Delete Ubuntu and download "16.04" again
**Or Delete Ubuntu and download "15.10" than upgrade it.
***Or Replace Ubuntu "16.04" with yours on the "installation cd/usb"
or

*When you're on the screen "Ctrl+Alt+F1" and type "sudo apt-get install unity"

I took this from SiddharthaRT this solution worked for many people

Press Ctrl+Alt+F3 and login into the shell.

Now run ls -lah. If in the output the line

-rw-------  1 root root   53 Nov 29 10:19 .Xauthority

then you need to do chown username:username .Xauthority and try logging in.

Else, do ls -ld /tmp. Check for the first 10 letters in the left: they should read exactly so: drwxrwxrwt.

drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp

Else, you need to do sudo chmod a+wt /tmp and check again.

If not both, I'd recommend you either

dpkg-reconfigure lightdm

or uninstall, reinstall it.

Now press Alt+-> until you reach the login screen again, and restart.


Chrome Tab/Menu/URL bar and web pages have got really big

Open a terminal (Alt+Ctrl+T or Alt+F2) and issue the following commands:

sudo -i
apt-get purge google-chrome-stable
cd /var/cache/apt/archives
dpkg -i google-chrome-stable_43.0.2357.81-1_amd64.deb


How can I install the "third party" software option after I've skipped it in the installer?

Open a terminal on the Dash and type:

sudo apt-get install ubuntu-restricted-extras

Enter your password and all third-party programs that you need to be installed. With this packages you will get also some extras like Microsoft fonts.

If you need proprietary drivers, go to System Settings -> Software & Updates and choose the hive "Additional drivers".


You are missing the slash before 'opt', the following should work:

gksudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf


This seems to be an issue with the new Ubuntu. Try initctl start network-manager

Still haven't found a solution to this yet but that gets it running


Chromium and Chrome
Store passwords in three ways:

GNOME Keyring
KWallet 4
plain text

Chromium chooses which store to use automatically, based on your desktop environment.
Passwords stored in GNOME Keyring or KWallet are encrypted on disk, and access to them is controlled by dedicated daemon software. Passwords stored in plain text are not encrypted. Because of this, when either GNOME Keyring or KWallet is in use, any unencrypted passwords that have been stored previously are automatically moved into the encrypted store.
Source for Chromium.
The manual page for google chrome (man google-chrome) shows:
--password-store=<basic|gnome|kwallet>
          Set the password store to use.  The default is to  automatically
          detect  based  on  the  desktop  environment.  basic selects the
          built in,  unencrypted  password  store.   gnome  selects  Gnome
          keyring.  kwallet selects (KDE) KWallet.  (Note that KWallet may
          not work reliably outside KDE.)

Chrome uses the same method as Chromium. And you can use above setting to switch to plain text passwords (not recommended of course).
Chrome (older versions)
Passwords are stored in ~/.config/google-chrome/Default/Login\ Data and that is a sqlite database file (that file is encrypyed).
This login database file is in SQLite format which is lighter version of popular SQL database. In addition to login credentials it also stores other information such as auto complete entries, IE7 Logins, search keywords etc. The 'logins' table is where all the login or sign-on secrets are stored by Chrome. This table contains following interesting fields
Origin_URL - Base URL of the website
Action_URL - Login URL of the website
Username_element - Name of the username field in the website
Username_value - Actual username
Password_element - Name of the password field in the website
Password_value - Encrypted password
Date_created - Date when this entry is stored
Blacklisted_by_user - Set to 1 or 0 based on if website is blacklisted or not.

Except the password field all other fields are entered in clear text. The password for all stored websites is encrypted using Triple DES algorithm seeded with logged on user's password. That means login secrets cannot be decrypted across the user or system boundaries unless under certain conditions.
Source for Microsoft Windows.
Firefox
See ~/.mozilla/firefox/<profilename>
Your passwords are stored in the key4.db and logins.json files.
Source.


How do I install Cuda on Ubuntu 18.04 --

I suggest you to use "find" command instead of "locate".

I assume you installed via apt and because it has become a native package, CUDA is installed in a rather non-standard way.

They are installed into the root system paths: /usr/bin, /usr/include, /usr/lib
we need to emulate the old way for it to work. The following commands should do the trick:

sudo mkdir -p /usr/local/cuda /usr/local/cuda/extras/CUPTI /usr/local/cuda/nvvm
sudo ln -s /usr/bin /usr/local/cuda/bin
sudo ln -s /usr/include /usr/local/cuda/include
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/local/cuda/lib64
sudo ln -s /usr/local/cuda/lib64 /usr/local/cuda/lib
sudo ln -s /usr/include /usr/local/cuda/extras/CUPTI/include
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/local/cuda/extras/CUPTI/lib64
sudo ln -s /usr/lib/nvidia-cuda-toolkit/libdevice /usr/local/cuda/nvvm/libdevice

Resource:
https://medium.com/@asmello/how-to-install-tensorflow-cuda-9-1-into-ubuntu-18-04-b645e769f01d


Cannot turn off bluetooth in Kubuntu 13.04

Disable Bluetooth on startup

Source : Is there a power saving application similar to Jupiter?

 sudo nano /etc/rc.local

And add the following line before exit 0

 rfkill block bluetooth

Save & Exit & Reboot

Your bluetooth is off on startup but you can enable it from bluetooth icon.

Note: Some time my bluetooth icon is showing its on, but actually its turn off, I have check it many time

I can verify that its off by

 sudo tlp-stat

Wireless Section

 +++ Wireless
 bluetooth = off (software)
 wifi      = on


How to enable chromedriver in ubuntu for python script?

Specify full paths in cron.

The next cron job includes:

DISPLAY variable specified to access your display in case if you do not want to use headless mode. Use $ env | grep DISPLAY to get it.
PATH variable with path to chromedriver specifying. I've copied chromedriver to /usr/local/bin
Full path to python3.8
Full path to python script

$ crontab -e:

* * * * * export DISPLAY=:0; PATH=$PATH:/usr/local/bin; /usr/bin/python3.8 /home/user/PycharmProjects/seleniumtest/seltest.py build

In your case specify path to your chromdriver location:

* * * * * export DISPLAY=:0; PATH=$PATH:/home/user/Documents/python/Chromedriver; /usr/bin/python3.8 /home/user/PycharmProjects/seleniumtest/seltest.py build

Note: I've created a python project in PyCharm using the next parameters:

The script is taken from here:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()

Additionally I have been required to install some packages:

$ sudo apt install python3-pip
$ pip3 install selenium
$ cd ~/Downloads
$ unzip chromedriver_linux64.zip
$ sudo cp chromedriver /usr/local/bin/


Unable to login Ubuntu. How can I recover it?

You can't logon in you system on any tty?

Restart your system and choose "recovery" in Grub. When it is started you are root and you can try to undo what you have done.


Canon G7000 series printer driver for Ubuntu 18.04

Start testing generic drivers but first read this post and use Canon linux drivers. You probably won't have all feature but you should be able to do some basic printing. I've been doing this for years on different printers.
https://wiki.debian.org/Canon

I would start by trying this G6000 series linux drivers:
https://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_g_series/pixma-g6040.html?type=drivers&language=en&os=linux%20(64-bit)

Last idea try installing generic PPD from Canon or possibly PCL drivers.
http://www.openprinting.org/driver/Postscript-Canon/


How to create launch or desktop icon for Matlab 2015a

Alright, since I was new to ubuntu it took me a while to figure out how to solve the above stated problem. I did the following steps as I have arranged it here, below. This should be mentioned here that the directory in which I installed was /usr/local/MATLAB/MATLAB_Production_Server/R2015a.

Download a *.png image of the matlab logo using the browser. By default it should be saved in the folder /home/<username>/Downloads.
Now copy this *.png image to the matlab installation directory. I faced trouble using only the cp command. Then I used the sudo cp command. It was like this sudo cp /home/<username>/Downloads /usr/local/MATLAB/MATLAB_Production_Server/R2015a. Then it worked.
Open an editor like Gedit. Type the following code/text, line by line:

[Desktop Entry]
Version=1.0
Name=Matlab 2015a
Comment=Launch Matlab
2015a with one click
Exec=/usr/local/MATLAB/MATLAB_Production_Server/R2015a/bin/matlab
Icon=/usr/local/MATLAB/MATLAB_Production_Server/R2015a/matlab.png
Terminal=true
Type=Application
Catagories=Utility;Application;

Now save the file with the name Matlab 2015a.desktop. After this, you should see a normal file on your desktop. right click on the file and go to Properties. click on Permission then click on Allow executing file as program. This time the file you created on your desktop should have the Matlab logo.
Double click on the Matlab 2015a logo that you created and enjoy your hard work.


You should be able to manipulate the partition sized using gparted.  If it's not yet installed, you can install it with:
sudo apt-get install gparted


Ubuntu 16.04 installation freezes when loading the system

Here are some of the things that might help solve your problem.

Since you are booting in UEFI mode be sure to make the bootable pendrive in UEFI mode (mostly rufus does provide that option, the one with the GPT partition table).
If that doesn't work trying making the secure boot:OFF and then load the entire system (as Secure Boot enables OS digital signature (keys) matching techniques to verify original and verified OS and to prevent against malicious rootkits).
Make sure that the partition on your USB that is made bootable is not FAT as FAT filesystem is not good for booting purposes (refer to manual pages (Ubuntu)).

If nothing works then boot in legacy BIOS mode and and make the USB bootable via USB installer tool (for especially making USB drives media for Linux-like OSs). Choose the option with MBR style partition table format. Hopefully this will work.


Test this:

Download Ubuntu Minimal 32 bits:
http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/mini.iso

You must  burn it into a bootable CD.

Make sure your PC is connected to a lan network, insert the cd into your cdrom and boot up your computer from the cdrom and select: --- Install.


What does "5.5.1+dfsg-16ubuntu7.1" refer to?

libkf5prison1 : Depends: libqt5core5a (>= 5.6.0~beta) but 5.5.1+dfsg-16ubuntu7.1 is to be installed

This error says you need libqt5core5a package with version greater than or equal to 5.6.0~beta, but the version 5.5.1+dfsg-16ubuntu7.1 is needed to be installed. The need can be because of lack of higher version or dependency of some other package. In your case, from your apt-cache policy libqt5core5a output, it's apparent that, you don't have required version >= 5.6.0~beta

From your other output of apt-cache policy libkf5prison1 It seems you're using Kubuntu CI Stable PPA, which in their front page puts this Notice in BOLD types

  DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.

That's it. The PPA has a package of higher version and it doesn't all the other higher versions of packages required by the first one. I recommend not using that PPA. however, if you still need to install the theme, you need to find other sources that provide the required version.

The exact string is part of the version of the package.

De-construction of version number 5.5.1+dfsg-16ubuntu7.1

In this version number,

5.5.1+dfsg is the upstream version. That is the version from the application developer.
16ubuntu7.1 is the debian revision. This also includes the ubuntu modification version.
ubuntu7.1 in 16ubuntu7.1 is the ubuntu modification version for a particular debian version.

Check Ubuntu Policy Manual for a detail discussion about it.


How to properly install Go Language in Ubuntu?

The problem is your GOROOT. It should be set to /usr/lib/go (not /usr/share/go).

export GOROOT=/usr/lib/go


How do I install and play the BrettspielWelt client?

Readme.txt states

  You must have java installed on your computer which is up to date. (1.4-1.6)

To install java, follow the Ubuntu Guide

Many applications don't work with the OpenJDK java, you might have to get the Oracle Version

edit: it does at least start with openjdk!


It is an extremely bad idea to run graphical applications with the sudo command.

For these scarce moments where you need to use the graphical file manager with root permissions, do it the supported way. Run

nautilus admin:///

to run nautilus in the system root folder and be able to manage files with root permissions. The first time, you need to provide your password twice in a row.

This immediately solves your problem. Nautilus will act and feel as usual, and adopt/remember your daily user settings. In fact, you are not running nautilus as root, you only give it the possibility to do things for which you need to be root.

Close such instance of nautilus as soon as possible. You can directly open in a location where you need to work by providing the path name, e.g.

nautilus admin:///usr/share/applications


The command you tried above would remove the source code for a wifi driver, and wouldn't have any effect on bluetooth (or on wifi since it's source code rather than the actual driver).

To enable bluetooth, go to System Settings -> Bluetooth, and set the slider to "On".


Chromium usually does this when it's out of date. So just update Chromium and that should fix it.


Try gksu gedit php.ini, if gksu is not installed by default then run this sudo apt-get install gksu command to install it.

This error will happen if you're trying to open a graphical application using sudo.Use gksu instead of sudo to open graphical application like gedit,nautilus,etc.


Set myself as owner of /etc with chown command now getting all kinds of errors

Since some of the files in /etc might not be owned by root, if you want to avoid reinstalling, you can do the following:

Boot into a live system and mount the partition containing the /etc directory. For example, if your / partition is /dev/sda1, you would do this from the live system:

sudo mount /dev/sda1 /mnt

Set the ownership of all files to root:

sudo chown -R root /mnt/etc

At this point all files belong to root. This is probably what you need but some files in /etc/ might have different ownership. If those files are also not owned by root in the live system, you can use them as a reference to change the permissions on the installed system:

shopt -s globstar
liveSystem="/etc"
cd /mnt/etc
for file in **/*; do
    [ -e "$liveSystem/$file" ] &&
        echo sudo chown --reference "$liveSystem/$file" "$file"
done

If you have also changed the permissions, do this instead:

shopt -s globstar
liveSystem="/etc"
cd /mnt/etc
for file in **/*; do
    [ -e "$liveSystem/$file" ] &&
        echo sudo chown --reference "$liveSystem/$file" "$file" &&
        echo sudo chmod --reference "$liveSystem/$file" "$file"
done

That will just print what command would be run. Once you've seen what that does and are satisfied that it is correct, remove the echo to make it actually run the commands.

Now that will iterate over all files, including those whose ownership is root in both directories, but that doesn't matter. You could write a more sophisticated approach but it's not worth it since this will take seconds.
Reboot your machine: everything should be back to normal.

IMPORTANT: this will not help if you have installed something that isn't on the live system and whose files in /etc don't belong to root. If this is the case, you'll either need to find what you installed and reinstall it or you might need to reinstall the system.


Tostring() has been removed. Please call tobytes() instead

The code needs an older version (before 3.0) of Pillow than the one you have (3.2.0).

Try to remove your manually installed Pillow from /usr/local/lib/python2.7/dist-packages/Pillow-3.2.0-py2.7-linux-x86_64.egg and install an older version instead.


Why does the KDE login screen still lead me to GNOME?

Sometimes in Linux, we think too hard. All I had to do was press a button that gave me the option to select default, GNOME, Kubuntu, etc. I had left it on default, which meant it kept loading GNOME. After changing it, Kubuntu desktop works fine.


Ubuntu 14.04.3 LTS x64 HP zbook UEFI nvidia driver

Solved -
The HP Zbook 15 G2 has a "BIOS" setting under Advanced - Device Configuration - Hybrid Graphics which was set to "Auto" by default.
Changing this setting to "Disabled" allows the nvidia-352 driver to be installed and functions properly.


How to enable data collection in Ubuntu flavours

In Ubuntu there is a command line tool called ubuntu-report. When run it displays the information that has been collected and asks if you agree to the information being sent or not. I've just checked my Xubuntu installation and ubuntu-report is not installed by default so I installed it and when run the command behaves exactly as it does in Ubuntu.

I don't know if Canonical are collecting information for flavour installations or just Ubuntu but it is possible to send it to them by installing ubuntu-report.

Install ubuntu-reprt by running-

sudo apt install ubuntu-report

Then run ubuntu-report from terminal, it'll show the information it collected, press y to send the report while connected to internet.

Thanks to  PaulW2U on Ubuntu Forums for answering


Reverting after installing lubuntu desktop

yes, every time you log in you would be able to choose which desktop environment you want to use.

In the top right corner of the log in field (Ubuntu Login) there is a small logo. Just click on it and click on the desktop environment you wish to log into...


Use gnome custom themes appearance in KDE?

firstly, you need to use gtk+ as your style in KDE, secondly, you would need to edit the gtkrc for your gnome theme as opposed to the theme (in appearance properties). This is the only way that KDE applications can use your GNOME theme (when running KDE).

The gtkrc file is a configuration document, like css is to html, or like preferences are to an application. The gtkrc for a particular theme is usually found in either /usr/share/themes/themenamegoeshere/gtkrc or a similar to location, or /home/username/.themes/themenamegoeshere/gtkrc.

For elementary just locate the themes folder and find it's gtkrc. Open this with gedit (double click). If it is stored in /usr/share/themes you will need to run gksu gedit (alt+f2 ---> gksu gedit) and then open the theme by dragging and dropping on to the gedit window.

Now, you may be a bit confused, so here are some links that explain editing gtkrc files:

http://ubuntuforums.org/showthread.php?t=641071
http://ubuntuforums.org/showthread.php?t=1016691
http://ubuntuforums.org/showthread.php?t=377397&highlight=gtkrc
http://en.wikibooks.org/wiki/GTK%2B_By_Example/Theming
http://live.gnome.org/GnomeArt/Tutorials/UsefulLinks/
sorry for all the links, but knowledge is power :D!

Follow this to change the colour options of your elementary theme, then apply gtk as your kde style.


How can I find out which programs have modified a file over some period of time?

This can be achieved with the fuser tool.  It lists the process ID of all processes accessing a specific file.  Try,

fuser -u .

...to see which files are "open" in your home directory, the process ID's involved and the username owning those processes.

In your case, I'm not sure this will be useful since you're trying to monitor a reboot.  I suspect that rc.local will execute too late in the reboot to capture anything useful with, say,

watch -n 0.5 "fuser -u /var/lib/alsa/asound.state"

Hmm - I've just tried dumping this to a file and the output isn't very pretty.  But if this can be resolved, then perhaps something can be achieved with cron?


Getting a script to run on boot, not on login

I would recommend using cron. The special time value of @reboot will spawn your job at each reboot as your user. For example, run crontab -e and use:

@reboot /home/yourself/bin/some_script_to_run

For more details on the special time formats, see man 5 crontab


Danish Mac keyboard layout isn't correct

This looks like an issue that must be fixed by Canonical. I do not see how I could offer a fix. It may be an issue with the localization and/or the Apple hardware support for Ubuntu. Try submitting a bug report to Canonical by going to Launchpad.net. Find Ubuntu, and then report this bug. Include a link to this page so the developers can see your descriptive images. I am sure they will take your problem very seriously.


Graphical authentication agent doesn't trigger once I changed from desktop environment

When you removed mate-desktop and all its dependencies, you will also have removed mate-polkit, which provides authentication dialogs for the Mate desktop.

To use pkexec from within a GUI you will need a replacement.  Type in the following in a terminal:

sudo apt-get install policykit-1-gnome


How do I get an Asound-cm106 (USB) sound card to work?

You could use alsamixer.

Open terminal (Ctrl+Alt+T) and type following:

$ alsamixer
Then press F6 to Select your sound card, and change settings for it
(increase/decrease volume, mute/unmute).

After you have made the changes, press Esc to exit.
To save alsamixer changes for reboots:

$ sudo alsactl store

Links:

https://en.wikipedia.org/wiki/Alsamixer
http://alsa.opensrc.org/Alsamixer


How do I dual boot Windows given that I have already installed Ubuntu 12.04?

I know what is your problem and I think this might partially answer your question even though I would not personally be satisfied with this resolution Dual boot - 12.04 installed first


Where is the tab completion "compspec" for commands like cat and ls defined?

As per the comment from the user "muru" on my question, this was due to permissions, not compspecs.
Edit: Thanks to Raffa too for some useful info.


Prerequisites:

Data directory on the Owncloud server
: Connect to server via ssh.If you have installed owncloud server to default location (/var/www), then go to the config file to find about the data directory location.

nano /var/www/owncloud/config/config.php

This file will tell you the location of the data directory (the place where all the files are stored.).
Like this;

Now the Solution:

First, you can transfer the folder to the server using rsync and ssh. Its most convenient and fast (since compression is included).
For example, from the local computer on the terminal use,

rsync -avz /path/to/local/50GBfolder -e ssh username@address:/home/user

Next, connect to server using ssh and from there copy folder to the owncloud data directory. (Two step are needed since you need root permission to copy to owncloud data directory which is owned by www-data user.)

Copy files this way;

sudo cp -r /home/user/50Gbfolder /path/to/data/$owncloud_username/files/

Inside the data directory, there is a folder for each owncloud user as owncloud_username, then under that there is a folder as files; hence mentioned above in the command.

Lastly, update owncloud database  by scanning to identify the new files.
This is done by prebuilt command. First, change directory to your owncloud installation directory. For default this is \var\www\owncloud.
so,

cd \var\www\owncloud

If you do ls, you will see an executable as occ under this folder. This occ is a php based program.

To run occ for rescan,

sudo -u www-data php occ files:scan $user_name

Full rescan may take some time. After the rescan, you will see the folder when logged in from a browser.

Explanation:

rsync -avz /path/to/local/50GBfolder -e ssh username@address:/home/user

-a includes recursive, permissions, links, group etc and much more. Check man-page. -v verbose, -z compress and transfer.

sudo cp -r /home/user/50Gbfolder /path/to/data/$owncloud_username/files/

-r recursive folder copy, all subfolders are copied.


Have to run sudo dhclient eth0 automatically every boot

Ok so I have a way better answer then I had before.

How about we try this.

Open a terminal.

gksu gedit /etc/rc.local

Add: sudo dhclient eth0 like so.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo dhclient eth0
exit 0

Save & Close. Reboot and should work.


hp star wars laptop keyboard backlight control, & screen brightness

I chased around a few more links from the ones you gave Mohamed and found.....

I used the fix here to add a 20-intel.conf file and I now have a brightness slider and working keyboard shortcuts.

I found the fn key works backwards - by default the magic functions work, pressing the fn key means you get Fx key - this is the way the keyboard legends are marked tho'.

so kekyboard backlight can be switched on & off OK.


I actually wrote a guide on this and posted it to Reddit. You need to use the "alternate" server iso, not the standard which doesn't have RAID functionality. Here's the link to the guide, which can be used for RAID 0/1/5/10.


Which free VPN providers support Ubuntu?

Try the Bestfreevpn. This is their link also read this for more info


How to configure Grub4dos menu to boot 16.04.5 i386 iso on non- PAE CPU (forcepae)

In case you need to be able to boot Ubuntu  12.04.5, 14.04 or more recent from an .iso image (up to last i386 iso available) on an older machine from eg. USB pendrive and want to use Grub4dos your entry in menu.lst should be modified to include forcepae parameter at the end of kernel line like this:

title Run Ubuntu 16.04.5 x86
find --set-root /ubuntu-16.04.5-desktop-i386.iso
map --read-only --heads=0 --sectors-per-track=0 /ubuntu-16.04.5-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/ubuntu-16.04.5-desktop-i386.iso splash forcepae -- forcepae
initrd /casper/initrd

Hope this helps somebody in the future, I had some beginners problems with making the entire Grub4dos entry work. You may be also interested in this thread:
How can I install on a non-PAE CPU? (error “Kernel requires features not present on the CPU: PAE”)


How I can type in the Malayalam language?

Did you try to update the repository indexes?
Its seems that ibus-m17 is now available for Quantal. To update use sudo apt-get update and then try to install the ibus-m17n package by using sudo apt-get install ibus-m17n.
IF you're still unable to install the package, then manually download the package from the following link, and install it:

http://packages.ubuntu.com/quantal/ibus-m17n


You need to use "lock screen" instead. Switching the user doesn't log you out or lock the session, it just gives you a prompt to log in as someone else.

I just tried this in 11.04 and it still does it, and this is an intended feature I assume (abandoning or locking access to your terminal doesn't mean it will keep you logged out!), but it does have implications. I'd suggest taking concerns to the bug tracker if you're worried about any of said implications.


In Unity, how do I see the details of a given launcher?

To read the contents of the launcher file you can open gedit and drag&drop a launcher icon from the dash into it.

Gedit will then display the .desktop file for that launcher which is by the way stored in

/usr/share/applications

in my case for example

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Desura
GenericName=Game Manager
Comment=Download and play the best games
Exec=/home/daniel/desura/desura %U
TryExec=/home/daniel/desura/bin/desura
Path=/home/daniel/desura
MimeType=x-scheme-handler/desura;
Icon=/home/daniel/desura/data/desura.png
Terminal=false
Categories=Game;
StartupNotify=false

Now just look at the 'Exec=' line in that document in my case

Exec=/home/daniel/desura/desura %U

This will point you to where the executable is stored and tell you the name (desura).

By the way...normally it is neither necessary nor a good idea to run desura in root mode.


I think I know what your problem here is: Your PATH is broken.

From your question:

/usr/sbin/lightdm-session: line 24: mktemp: command not found
/usr/sbin/lightdm-session: line 29: : No such file or directory
/usr/sbin/lightdm-session: line 33: cat: command not found

Have you modified your PATH variable settings?

And if so, how did you set/modify the PATH variable?

To confirm, log on to a virtual console (CTRL,ALT,F1 key sequence), enter your logon details and then run:

printenv PATH

See what you get. If its' broken, undo any changes you made to configuration files such as /etc/environment and entries under /etc/profile , and confirm if this fixes the issue you're experiencing.


Mutt not working due to "gnutls_handshake: A TLS packet with unexpected length was received." error

Unfortunately this can be a problem with Mutt and its use of gnutls, as can be seen from the Mutt mailing lists, however there are some solutions.

It is worth removing the header files from .mutt/cache/headers because they can sometimes cause problems.  I also note that in your .muttrc you do not have a mailboxes line. I use gmail in Mutt and have the following in my .muttrc (though yours may differ):

mailboxes +INBOX +archive +sent +drafts +spam +trash

I mention this because at Launchpad this error was discussed and someone mentioned that specifying only the correct mailboxes solved his problem.

Comparing your .muttrc to mine in general reveals no other differences, and Mutt and gmail are working for me with almost identical settings.

However, if these suggestions do not solve your problem, it is possible to build Mutt from source and ensure that you build it with openssl support, so you can use openssl instead of gnutls. I note that in your second Pastebin, your Mutt has indeed been built with gnutls, as your debug reveals:

-USE_SSL_OPENSSL  +USE_SSL_GNUTLS

Here - means without that attribute and + means with that attribute.

So, before we start building, purge the currently installed mutt:

sudo apt-get purge mutt

and then get the dependencies with

sudo apt-get build-dep mutt

It is fine to use build-dep here as the latest version of mutt (at this time of writing) doesn't require any newer libraries than those fetched with build-dep.

You will also need to make sure you enter:

sudo apt-get install openssl libsasl2-modules libssl-dev libssl1.0.0

Now download the latest source code from the official site (which is 1.5.21 at time of writing) and then verify the appropriate gpg signature, and
cd to the downloaded file and unpack the source code with

tar xzvf mutt-1.5.21.tar.gz

Then pass these extra options to configure (we need to include the other options as well as ssl as imap and smtp support and other things are not compiled in by default):

./configure --enable-pop --enable-imap --enable-smtp --with-ssl --enable-hcache --with-gss --with-sasl --enable-debug --enable-gpgme

Then proceed to build and then install the program with

make
sudo make install or sudo checkinstall

The build only takes a few moments and it should allow you to use Mutt again. It is probably a good idea to clear the header cache (as I detailed much further above) before you run the new program. It will use ssl automatically as there is now no tls support built in.

A screenshot from the newly compiled program (showing some older, non-personal emails):


Ultra high page cache usage potentially triggering kswapd0?

I also have this problem recently, and I found that kswapd0 in my case is actually a crypto miner. (Please refer to this post: https://yoroi.company/research/outlaw-is-back-a-new-crypto-botnet-targets-european-organizations/)
You can check your files to see if there is a folder called ".rsync" (or .configrc in my case). Usually you will find the program kswapd0 under the folder a/.
If you find that suspicious folder, then with high probability your server is infected.


Who, that's a lot of packages you're installing at once!  I assume you're following a guide to setup something specific, like an apache server?

There are two things that are likely to be going on, one or both:

1 . Your package list is outdated, and simply needs to be refreshed.  Simple fix:

sudo apt-get update

Then try your installations again.

2 . Slightly more likely, Ubuntu has more specific versions of these packages available, but doesn't know to install them given the names you've typed out.  If you're willing to invest a few minutes, I would install synaptic, a graphical package manager, with the following command:

sudo apt-get install synaptic

Synaptic will allow you to search for packages by name, and allow you to select which version you'd like to install, if there are multiple available.  Launch synaptic, allow it a moment to build its search index (the search bar in the program will tell that's what's going on), then try locating your packages one at a time. Once you've found a package you'd like, click on its checkbox, and select "Mark For Installation."

Some packages you select will require that you install dependencies; that is fine.  You may even find that some of the packages you were trying to install on the command line get automatically selected for you, because one of the packages you've selected depends on it.

If you decide to go the synaptic route, start with the package 'apache2,' because it will have many dependencies.

Once you've selected everything you'd like to install, click on the Apply button and let synaptic do its thing.  Good luck!


I searched with your laptop model in Internet. Couldn't find a product page in acer. But the driver page points that this model has nvidia optimus enabled. If your system has duel graphics card and optimus enabled you need to turn off the discrete graphics card. Otherwise both are enabled and lead to high temperature.
Instruction for installing Bumblebee to turn off  discrete  GPU and enable only when required

Type the following in terminal,
sudo add-apt-repository ppa:bumblebee/stable
then
sudo apt-get update

If you are on Ubuntu 11.04 or older and want newer drivers (recommended) than the ones available in the official repos, run:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

To install Bumblebee using the proprietary nvidia driver:
sudo apt-get install bumblebee bumblebee-nvidia

Run following
sudo usermod -a -G bumblebee $USER

Reboot.

If you just want to disable nvidia card, no need to learn followings
Usage Instruction :
To run a program with nvidia card, use optirun command prefixed in terminal.
Like to run glxspheres with nvidia card type
optirun glxspheres
To run firefox type : optirun firefox &
Note: If you intend to run 32-bit programs like Wine and using Ubuntu 11.10 Oneiric or later, install 32-bit libraries with:
sudo apt-get install virtualgl-libs:i386 libgl1-mesa-glx:i386 libc6:i386
Linked Questions:
How well will Nvidia Optimus cards be supported in 12.04?
Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?
Can't use nvidia card/driver on optimus notebook


How to install udt on ubuntu server 12.04

UDT is a reliable UDP based application level data transport protocol
  for distributed data intensive applications over wide area high-speed
  networks. UDT uses UDP to transfer bulk data with its own reliability
  control and congestion control mechanisms. The new protocol can
  transfer data at a much higher speed than TCP does. UDT is also a
  highly configurable framework that can accommodate various congestion
  control algorithms.1

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

sudo apt-get update

sudo apt-get install libudt-dev

For more information Read On

1Source:Pkgs.org


Is there a way to use Window Spread in MATE?

MATE uses it's own version of the Gnome 2 Metacity window manager, If I remember correctly back then it didn't do much that's why users preferred to use Compiz in Gnome 2. So, what I suggest you to use is the gala window manager, which has a "similar" feature and it's lightweight. It's developed by the elementary Team you can install it using their PPA:

  sudo add-apt-repository ppa:elementary-os/daily
  sudo apt-get update
  sudo apt-get install gala
  gala --repĺace

While it's still in active development it's really usable.

Another thing you can try is to use muffin the window manager in Cinnamon which also has a similar feature, all you have to do is Install Cinnamon and execute muffin --replace.


Need Help with email setUp for my Ubuntu server

actually there is a huge guide which i can not write here to build a mail server in your Ubuntu system , please visit that. That will guide in  Postfix 2.7 (SMTP Server/MTA) & Dovecot 1.2 (Pop3/IMAP Server).

http://ubuntuguide.org/wiki/Mail_Server_setup


How do I dewarp fisheye (Samsung Gear 360) photos?

Running

  ls -1 path/to/files/*.JPG | parallel --load 99% --noswap --memfree 500M --bar ./gear360pano.sh {}

seems to work, and the packaged html viewer shows an interactive panorama once the python server is launched. Very nice


That happens when you want to use a module compiled for a different kernel version.
It could be because you forgot to reboot in between 2 alterations (you are still on the old kernel and the module is expecting the new kernel).
Another issue could be that you forgot to do a make clean.

With these 2 sources #1 and #2:
git clone https://github.com/patjak/bcwc_pcie.git
git clone https://github.com/patjak/facetimehd-firmware

the commands to compile are ...
cd facetimehd-firmware/
make clean
make
sudo make install

cd ../bcwc_pcie/
make clean
make
sudo make install

sudo depmod
sudo modprobe -r bdc_pci
sudo modprobe facetimehd
sudo vim /etc/modules


How to download wine on window 10 pc and install on Ubuntu PC

You can't download wine on your Windows 10 PC, and wine will not help you with your issue.


How to assign defective keys in Ubuntu Gnome?

You want to open keyboard in settings and go to shortcuts, then go to custom shortcuts, click the plus button and add the key that you wish to assign, then double click on it and it will ask you to assign a key, hope this helped my friend :)


Or, should I hook up the hard drives then start the computer up with
  the Live CD before I let Windows detect the hard drives?

Yes. And you should choose manual partitioning in the installer, and tell it to create your /home and swap partitions on the HDD, and your root/ partition on the SSD.

Also, I recommend you disconnect your other HDD and SSD during the install


Did you type

$sudo apt-get update
$sudo install grub-customizer

If so you've done everything right search for it in the search bar on ubuntu and it should come up.


ubuntu 13.10 64-bit install failed to execute /init; Boot Repair log

I'm not sure how I corrected this problem, but; it's working OK now. I'd brought in a new SATA HDD and had the same problem. Looked through http://www.supergrubdisk.org/super-grub2-disk/ but didn't see how that would help. Followed this guide http://cms.mooreworks.net/cms/repair-your-un-boot-able-linux-system.aspx then after chroot updated the system:

apt-get update && apt-get -y dist-upgrade && if [ -e /var/run/reboot-required ]; then echo "REBOOT required"; else echo "Not required to reboot at date."; fi

It now boots and all seems right with the world. I don't know what fixed it, but; I'm thinking it was the system update.


How to make KDE Plasma taskbar panel transparent?

Method 1. Makes panels transparent without altering the theme. Go to System Settings | Window Management | Window Rules. Press New... button. Give some description to the new rule, Dock Transparency, for example. Then select only Dock (panel) in "Window types:" field. Switch to the last tab and set these options:

Press OK then Apply new settings. Change 65% to whatever you see fit.
Tested in 16.04 with Plasma v5.5.5.
N.B. As @clearkimura noticed, this method may make other objects on the panel (i.e buttons and text) more transparent, so don't use too low values in that case.

Method 2. This will require altering the default theme. Make a backup of /usr/share/plasma/desktoptheme/default/metadata.desktop. Open it with root rights. Change in the [ContrastEffect] section enabled=true to false. Re-login.
Now the panel(s) become semi-transparent. As a bonus the main menu also becomes semi-transparent with blur effect under it. Also tooltips share this effect which resembles frosted glass. Take a look at the screenshot:

Strictly saying this method doesn't change only taskbar panel, as it affects other objects of the interface, but this effect satisfies me more than only transparent panel.
Kudos to reddit guys for the idea.


Ubuntu 13.10 on Vaio pro 13, does not boot

You can fully shut down the laptop by holding down the power button for 5 seconds. Then start it with the assist button. If that does not work, you can hold shift down when you click on reboot in windows. this should take you to a special menu. there you can reboot in bios (select advanced tools). in bios disable secure boot and set the boot mode to legacy (change from UEFI).

The only way I could install ubuntu was with an external optical drive (usb dvd-rom). just let it boot and don't select anything until the install/try menu appears. After this, proceed normally.

Cheers!


I've installed Ubuntu 16.04 on an external hard drive but it won't boot Windows 8.1 when I remove it

I also had the same problem. It is because your ubuntu boot manager in BIOS which is probably the first entry searches for GRUB which resides on your external HDD. So your external HDD needs to be plugged in during booting.
If you want to boot without external HDD to Windows then the only option is to select the respective entry from BIOS each time you boot.


Providing that you have a minimum of 512MB RAM, you could try the 12.04 network Install.  To try it out, check out the Network installer.

Another thing that you can try, is downloading the 12.04 ISO, and mounting it using something like Virtual CloneDrive, and use the WUBI installer.  See this site for more info.


Try doing this from terminal:

sudo apt-get install fglrx-updates fglrx-amdcccle-updates

If that doesn't worked try doing these steps

sudo apt-get --purge remove fglrx
sudo apt-get install fglrx-updates fglrx-amdcccle-updates

Then if there aren't errors try rebooting.

P.S. If you prefeer the packages are also in Ubuntu Software Center so you can install them from it.

fglrx


I was getting the same error for anything cmake, including cmake --version, and the "reinstall cmake and cmake-data, then restart your shell" answers didn't work, so I tried manually setting CMAKE_ROOT to the path from dpkg -L cmake-data that contains the Modules directory.

export CMAKE_ROOT=/usr/share/cmake-3.5

That got cmake --version working, which revealed that I was somehow dealing with a cmake that reported itself as cmake 2.x, but a cmake-data package which created a cmake-3.5 folder for its resources.

It turned out that one of my PPAs was offering cmake 3.5 at the same package names that 14.04 uses for cmake 2.8 and, because of a dependency conflict, the cmake-data package had upgraded to 3.5, but the cmake package was getting held back at 2.8.

The following lines got things working for me:

sudo apt-get remove cmake cmake-data
sudo apt-get install cmake3 cmake3-data


screen 4.2.1 is available from trusty-backports. See the user backports documentation for information on enabling and using packages from the backports repository.


"Error: unable to open database" when creating sqlite3 database in terminal

A database file is not created until you actually add table(s).  Try adding a table using:

sqlite> create table [table name]([field] [type]);
sqlite> .quit

Then you should have a database file created.


mate-terminal: trigger profile on command

It's easy, because ssh sets some enviroment variables. I logged in via ssh local host:

walt@bat:~(0)$ env | grep SSH
SSH_CLIENT=127.0.0.1 52602 22
SSH_TTY=/dev/pts/5
SSH_CONNECTION=127.0.0.1 52602 127.0.0.1 22

Then, in your ~/.bashrc on the target, you can:

if [[ \! -z "$SSH_CLIENT" ]] ; then
# change terminal colors 30=black text, 41=red background
    echo '^[[30;41m'
fi

If you must do it on the source system,

alias redssh="echo '^[[30;41m';ssh"

The clear command will reset the colors.

See http://www.termsys.demon.co.uk/vtansi.htm#colors for more color choices.


I have tearing on lubuntu 12.04 32bit (on flash videos things are very bad) , on ubuntu 12.04 i dont have tearing

About the X-Swat PPA

Installing packages from the Ubuntu X-Swat PPA should help fix this problem. It provides newer versions of X.org components, including some drivers.

Before enabling this or any other PPA, you should familiarize yourself with the possible risks of using PPA's:

Are PPA's safe to add to my system and what are some "red flags" to watch out for?

In this case, the potential security risk can probably be considered very minimal, since this PPA is owned by the same team that is in charge of officially packaged X.org in Ubuntu. While considered stable upstream, it's possible that you may have some stability or usability problems with these packages...but you're already having serious problems, so it's worth it to use the PPA.

Enabling the PPA and Upgrading Your Packages

Open a Terminal window (Ctrl+Alt+F2) and run these commands:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

Reboot. Then open Nvidia X Server Settings:

You're using Lubuntu, so you'll probably find it in LXDE Menu > Preferences.
If you were running vanilla Ubuntu (with Unity / Unity 2D0, you could search for nvidia x server settings in the Unity dash.

You can use this utility to configure the display as you wish.

Source: http://www.noobslab.com/2011/09/nvidia-drivers-for-ubuntu-1110-oneiric.html (by "Umair")


How can I get Tesseract OCR to recognise the large digits of an electricity meter?

Very small numbers are easier to read when they are illuminated by a strong light source. Some hardware devices such as flash drives and power adapters have very small writing printed on the plastic case that is very difficult to read in soft light but easy to read when the device is illuminated by a strong light source.

If that doesn't do the trick you can open the image to be scanned in GIMP Image Editor and enhance the brightness and contrast before OCRing it. GIMP Image Editor is available in the default Ubuntu repositories.

Select a rectangular area of the image which contains the numbers to be scanned using the Rectangle Select Tool which is located in the top left corner of the Toolbox.
From the GIMP menu select Colors -> Brightness-Contrast.
Move the Brightness and Contrast sliders to improve the readability of the numbers.
Make sure that the Foreground color which is located at the bottom center of the Toolbox is black, which is the default color.
Use the Bucket Fill Tool to fill the background of the numbers with black color, so that the light colored numbers will show up with higher contrast against a black background.
Select another rectangular area of the image which contains numbers to be scanned if necessary and repeat steps 2-5.
Export your image when you are finished editing it using either File -> Overwrite or File -> Export As…


QML: QtQuick Extension Plugin - What is URI?

A Qt Quick2 Extension Plugin is a C++ plugin that makes it possible to offer extensions that can be loaded dynamically into applications using the QQmlEngine class.

To make it possible to query at run-time whether a plugin implements a given interface, you must use the Q_DECLARE_INTERFACE() macro. The first argument is the name of the interface. The second argument is a string identifying the interface in a unique way, the URI.

By convention, Qt use a Java package name syntax to identify interfaces, hence the "com.mycompany.qmlcomponents" schema.

Source: http://qt-project.org/doc/qt-5/qtwidgets-tools-plugandpaint-example.html


How to install GNOME Shell Integration extension in the Chromium Browser via command-line?

1. Background

According to Chromium documentation, there appear to be three approaches to installing .crx extensions. Namely, via Group Policy, via the Registry, or via master_preferences For Linux, the Registry method does not seem appropriate (it seems to be for Windows system). Also, it states that:

  Using policy to deploy an Extension or Chrome Web App is by far the
  easiest and scalable method.

This other documentation also discussed the consideration for using Preferences over Policy methodologies and recommended to:

  Prefer policies to configure Chrome on managed computers. Use
  recommended policies for settings that users should be able to change,
  and use mandatory policies for settings that users should not be able
  to change. A master_preferences file may be used to make default
  settings for new users, though doing so has some drawbacks:

I have not been able to install the "GNOME Shell Integration" extension via the Preferences method. The good news is that I found out how to use the Policy method to install this extension in Chromium. I have described it below.

2. Installing Extension via Policy Method

Chromium does have Linux Quick Start writeup on the Policy method.
Note:

For Chromium browser you need to replace /etc/opt/chrome with /etc/chromium in their example else your extensions won't appear.
You need to put your policy file in /etc/chromium/policies/managed else it won't work. I did try using /etc/chromium/policies/recommended and it did not work. Putting the policy file into the managed directory also means that your extension cannot be removed by the user.
Your policy file needs to use policy name ExtensionInstallForcelist.

3. Steps to install GNOME Shell Integration Extension in Chromium from Cmdline:

Run these commands in the terminal. The file my_policy.json can be any name you like, but it must be a .json file.

$ sudo mkdir -p /etc/chromium/policies/managed
$ sudo touch /etc/chromium/policies/managed/my_policy.json
$ gedit admin:///etc/chromium/policies/managed/my_policy.json

Add these lines into my_policy.json:

{
    "ExtensionInstallForcelist": [
    "gphhapmejobijbbhgpjhcjognlahblep;https://clients2.google.com/service/update2/crx",
    ],
}

According to the GNOME Shell Integration Extension, "You MUST install native connector for this extension to work". A detailed list of commands to install the native connector is give here. For Ubuntu, do:

$ sudo apt-get install chrome-gnome-shell

Close all Chromium browsers and start the Chromium browser afresh.


ifconfig fixed ip address is lost after a while

you can set the ip address in /etc/network/interfaces
https://wiki.debian.org/NetworkConfiguration


Difference between NetInstall, HdMedia, and Live install images on UNetBootin?

The short answer:

Live refers to a system you can boot from CD/DVD or USB.
Net-install installs the system on your hard-drive and it checks for
updates for certain packages. Changes to the system are permanent.
HdMedia means installing directly from the HDD, by booting the ISO.


I've seen this when the root/home partition is 100% full. To check that you can type:

ctrl-alt-f1

at the login screen (which drops you to a shell) and then login as normal. After you have logged in you can type:

df -h

which will report your disk usage.


You can do this by enabling Show mouse plugin from CompizConfig Settings manager. If you don't have them already installed, you can install them via the  terminal using the following command:

sudo apt-get install compizconfig-settings-manager compiz-plugins-extra

After these have been installed, open CompizConfig Settings manager and enable Show mouse plugin. To initiate it use Super+K key combination.

I have the following settings in General tab and Particle Options which make the behaviour of the mouse approach of what you wish (maybe even better):


How to configure local DNS lookup in Ubuntu 16.10?

If I understand your question properly, you cannot resolve your local hostnames.

On that, I had the same problem with a fresh install of 16.10, and it turns out to be a known issue (https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1624071) related to libnss-resolve in systemd.

The solution in my case was to review your /etc/nsswitch.conf file and note specifically how NSS resolves your hosts:

hosts: files resolve [!UNAVAIL=return] mdns4_minimal [NOTFOUND=return] dns myhostname

This logic appears to fail hostname resolution before even getting to mDNS.

Editing the hosts line back to a pre-16.10 release fixes this apparent logic error:

hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname

The included bug-report link suggests a future release of of the systemd package may eventually correct this problem.

Rich


Function Keys the wrong way around on Packard Bell Dot S

You may try remapping your keyboard like they did in this thread. You can use the gui tool xmodmaps to find out the information you need. The command you will most likely need is xmodmap -e 'keycode 69=F3' or something like that.


Open a terminal using Ctrl+Alt+T execute one by one,

sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"

sudo add-apt-repository multiverse

Then execute the command.

Packages are available here browser-plugin-freshplayer-pepperflash and flashplugin-installer


Netplan: how do I apply specific configuration YAML file

You do not.  The netplan configuration is the union of all the yaml files in the config directory; netplan apply calculates the complete configuration based on this set of files and renders it for passing to the backend.  It is therefore invalid to ask netplan apply to apply only the config from one of these files, because any of the other configuration files might contain settings that modify the configuration of the interfaces listed in your one file, and the only way netplan knows whether this is the case is by loading all of the files together.


Admin user cannot access ONE folder in a samba share

This sounds like more of a Windows problem than an Ubuntu one. However, when I've seen this issue crop up at the day job, the simplest solution has been to restart the workstation service on Windows:
C:\> net stop workstation /y
C:\> net start workstation

The /y forces a shutdown of the service. When workstation restarts, its cache files are cleared out and shares are magically accessible again.
Note:
If you have this issue with one of the newer Windows Server versions, you'll need to restart netlogon after running the above commands, as killing workstation shuts down netlogon:
net start netlogon


Grub Rescue prompt appears after deleting Ubuntu partition. Can't boot Windows

You have deleted the Ubuntu partition, but the computer is still booting Grub, which cannot find the necessary boot files on the partition. You should change the boot options so that it boots Windows. Here's how:

Access your BIOS. This is sometimes done by tapping F12, F10, or ESC during boot. Look up instructions for your computer model if you're not sure.
Change the boot priority so that the Windows Boot Manager is at the top and Ubuntu at the bottom. Or just entirely remove Ubuntu as a boot option.

If the Windows Boot Manager is not present, and if I remember right, you will need a Windows repair/install disk to reinstall it, but ask over at a Windows support forum like SuperUser to be sure.

The computer should then boot Windows as it did before you installed Ubuntu.

Then once you can boot Windows you can remove all the traces of Ubuntu. See here for instructions.


Show Time drift relative to a time Server

Old, Outdated Answer

If you run ntpdate -q pool.ntp.org, it will show you the difference between your time and the time server.

strong text

ntpdate has been deprecated for quite some time, and as of this edit (2017) it may no longer be available on new distributions.

clockdiff _server_ will show the clock difference and has been available since 12.04 LTS.  See the man page for clockdiff.


Cups job stuck at: processing since ..."Waiting for printer to become available."

Seems to have been a flakey cable. Why it would reliably print once, then choke after a power cycle, seems illogical. But a cable swap fixed this issue.

Hope this helps to remind the next person to check over the hardware before going medieval on the error logs...


Ubuntu Emulator installation from Ubuntu SDK in Ubuntu 12.04

Try this command:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update
sudo apt-get install ubuntu-emulator


Using LVM snapshots on a live system: possibility of corruption due to system activity

Don't start a backup while you are also doing an upgrade.  If you are doing both via a cron script, then have both scripts use a lock file or something to make sure they do not run at the same time, or schedule them far enough apart that the first one should be done before the second starts.


wireless AC card only shows up as wireless=IEEE 802.11abg

Found the issue I had the line
options iwlwifi 11n_disable=1  added to my
/etc/modprobe.d/iwlwifi.conf file to which fixed another problem with disconnecting so I took this out and it fixed the speed problem. But I'm having to many problems with my wifi card and network-manager disconnecting and decided to try wicd.

Also added the line (to turn of wifi power management)

sleep 5 ; /sbin/iw wlp3s0 set power_save off

to my /etc/rc.local file

Updated Answer:

Updating this answer because ran into more problems and disconnects
Here's a list of final changes that seem to be working.

1) Upgraded to to kernel 4.8.0-39 from 4.4
2) Added files
     -/etc/modprobe.d/iwldvm.conf
      added line: options iwldvm power_scheme=1

     -/etc/modprobe.d/iwlmvm.conf
      added line: options iwlmvm power_scheme=1

     -/etc/modprobe.d/iwlwifi.conf
      added line: options iwlwifi power_save=0
      added line: options iwlwifi 11n_disable=8


xampplib: line 22: netstat: command not found

It seems that your xampp instance is complaining about lack of netstat command.

netstat is a part of net-tools package, so run this command to install netstat:

sudo apt install net-tools

Then try to start your xampp again, it should work now.


How to install Ubuntu from within other Linux Distributions without reboot

Yes, there is a procedure to install Ubuntu offline (without rebooting) from your current Linux system. I do not think, It is better to include all the details here.

You can check the exact procedure for 14.04 / for 16.04 from Ubuntu Installation Guide

I have recently tried that and installed Kubuntu 12.04. It worked flawlessly.

It requires at least one reboot, to open your newly installed system. You can't switch from one OS to another without rebooting

Reference: Ubuntu Installation Guide


Set a default PulseAudio output device for a specific application

Not exactly what I wanted but I found an acceptable solution by setting an environment variable each time I launch the application:
PULSE_SINK="[Speaker Name]"
e.g.
PULSE_SINK="Virtual1" mpv


It's a syntax error. From Man page

apt-key [--keyring filename] [command] [arguments...]

So, it should be

apt-key add /usr/local/archive.key


Reserved UIDs/GIDs and semi-reserverd UIDs/GIDs

The UIDs and GIDs 0-99 are fixed and always the same. They are created by the package base-passwd.

The 100-999 are dynamically allocated, usually in the order the users/groups are created on your system.

See the section "UID and GID classes" in the Ubuntu Policy Manual for some more classes.

As far as I know there is no list of packages that create users or groups.

Packages create the additional users and groups in their *.preinst and *.postinst scripts. So to find the installed packages that have created users

grep 'adduser ' /var/lib/dpkg/info/*inst

may be a starting point (replace adduser with addgroup for groups).


Yes good idea to disable, but if you have installed any software from the GetDeb repository, it will not be updated anymore. So disabling this repository temporarily is a good idea while you wait for the Getdeb server to be online again, as explained by Raphael. You should try to enable it again after some time.


Issues installing Ubuntu 14.04.1 on Windows 8 PC but works on other Windows 8 laptop

try to use rufus https://rufus.akeo.ie/ will make   usb with uefi mode ( GPT Partition )


I ended up doing a firmware and bios flash to the latest. And it works now. forgot to update this


How can I re `./configure` on a package installed via `apt-get`?

The packages you download via apt are pre-compiled binaries. You'll have to build PHP from source using those options.

You can get the source from the PHP website or using for example:

apt-get source php5


Can't recover Passphrase after encrypting home folder after Ubuntu installation

Sorted, I jsut have to input my password at the "Passphrase:" pront.


HDMI Audio only when display resolution change

It seems some other audio device also available in your hardware, which is enumerated as default device.
Pls look at this link, This will help you to configure your HDMI display as default device.

https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card

Even if the issue not resolved, Post your aplay -l logs here

In pavucontrol, you need to select the default device like this image


Not able to connect to internet in ubuntu after changing modem settings

I haven't visited the links you provided yet (I will)... but for now, try this:

sudo ifconfig wlan0 up

sudo iwconfig wlan0 essid (network name) key (password)

*replace "network name" with the network name to which you wish to connect and "password" with that network's password

sudo dhclient wlan0

Also make sure your adapter isn't down by RF-KILL or anything crazy like that!


Is there any way to change wallpaper according to specific clock time?

DesktopNova  : Click to install

  DesktopNova changes the desktop background image after an adjustable time. It can choose the images from single files and folders (with or without subfolders). An autostart feature is also implemented.

Website
Launchpad

So you add your pictures, and then Check Change wallpaper in intervals.

And there is an indicator for this application.


RT2561/RT61 wireless doesn't pick up SSID

Ok, i had the same issue after a netboot install : no wifi access point was listed by network-manager

What i did  : clean /etc/network/interfaces , delete all connection entries in network manager applet (wired, wifi...)

And a last reconfiguration for the network-manager

sudo dpkg-reconfigure network-manager


You would need to install a program on the bootable usb that you can boot to, which then lets you boot one or more of the ISOs stored on the drive. Something like MultiBootUSB or easy2boot would be what you're looking for.


Thunar - Failed to create archive, no suitable archive manager found

This seems to be a Thunar/XFCE specific issue, I managed to track the problem which is related to the menu editor and how apps are linked to it, in particular "File-Roller". Apparently when you edit (change the icon or name) of the second "Archive Manager" launcher in the "Menu Editor" and save it, for some odd reason it dissociates "File-Roller" from the said launcher and it won't work anymore.

In order to fix it, simply delete the second "Archive Manager" launcher and everything is back to normal. Once deleted, you should be able to create archives again from the right click context menu. See images for further clarification:


Wireless connection keeps losing connection

Here's how I fixed it.

Click on the wireless icon at the top and hit edit connections.
Select the wireless tab at the top, select your network and then hit edit.
Go to the wireless security tab and input your password and save it there.

Seems cumbersome, but sometimes it works just resaving the network profile.


Terminal Prompt is not changed when I log in as root?

@Eugene.

I'm not sure if I understand your question but if by "prompt" you mean the $PS1 variable you can try to change it through one of these files ~/.bash_profile or ~/.bashrc or /etc/profile. Those files would be read by the shell after you login, which means you'll have to logout and login again to make those changes available.

The $PS1 variable is the first prompt string variable which defines your 0|storm@sky:~%. The second one is the $PS2 which is usually seen as ">" ("greater than" symbol).

Let me show you some options:

$ PS1="\d$" #date format
Sun Jan 9$

$ PS1="\u$" #username
john$

$ PS1="\h$" #hostname
your_computers_name$

The combination of some of these options will define your prompt string.

Hope it helps.


Fresh Ubuntu 14.04.1 install mouse too fast

The real cure is I have a 2008 Compaq desktop with Windows 7 on 1 hard drive and Ubuntu 16.04 on another. When I first installed Ubuntu the mouse was so fast Even moving the mouse speed slider all the way to slow did not help.
After searching out the fix I got all this info. First open the terminal, and type
xinput --list --short. This brings up virtual core pointer. In the top section will see your mouses name (mine is YESTEK G Mouse) id=8 write down your mouses id # only (8) save ! now in terminal, type xinput --list-props 8 your mouses id #. push enter and look for Device Accel Constant Deceleration write # behind your mouse id # mine was (270) so 8 270  then behind those you need a # from 2 to 8 (lower # faster movement Higher # slower movement) Now in terminal type xinput --set-prop 8 270 6 push enter this will slow your mouse way down if to slow re-enter xinput --set-prop 8 270 5 keep changing last # till you like the speed and you can use system setting, mouse & Touchpad speed slider for fine tuning speed. Hope this helps!

These settings will only stay till you restart so keep them wrote down if you know how to save them to start-up Find the Startup Applications Preferences app Open it then save the settings you like by clicking add on the right and on the small form give your settings a name I used mouse speed, in command type xinput --set-prop 8 270 6 click the add button on small form.
Next startup thell be working at startup.


How can I install Adobe Flash media server on Ubuntu 12.04 LTS 32-bit system

Try to install chkconfig:

sudo apt-get install chkconfig

If there is no package chkconfig available for 12.04, install sysv-rc-conf instead and define an alias, like this:

alias chkconfig='sysv-rc-conf'

and try again. For more details, see here.


What does lint_package_filename_pkgname_match mean?

This can easily happen if you don't pay attention to the namespace you specify in

the web UI of the software store and
the manifest file of your app

Sometimes it's just a small typo, like in the following example.

e.g. com.ubuntu.developer.rick-rickspencer3.franglish' != 'com.ubuntu.developer.rick-rickspencer3.Franglish' from DEBIAN/control"

In the future the software store will do this automatically and extract the namespace from the the manifest.


How to access drives that are mounted by other users?

This is happen because when a device is mounted is mounted under your name and so, the system think that is yours and only you should have access to it. To pass by this you can simply unplug and plug again that device when you switch to another account, or...

From this output:

total 0
lrwxrwxrwx 1 root root 10 Oct 2 18:34 3C18F90318F8BD48 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Oct 2 18:34 5e89f82b-dea9-4348-88f9-ac5cd533437f -> ../../sdb9
lrwxrwxrwx 1 root root 10 Oct 2 18:34 648660B6866089FE -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 2 18:34 8012db19-0086-4576-96a2-34f50a75ecfb -> ../../sdb8
lrwxrwxrwx 1 root root 10 Oct 2 18:34 88EAB7AEEAB796C2 -> ../../sdb6
lrwxrwxrwx 1 root root 10 Oct 2 21:23 8AD65635D65621AD -> ../../sdb2
lrwxrwxrwx 1 root root 10 Oct 2 18:34 96C01076C0105EB5 -> ../../sda3

I can understand that you have probably more than one device plugged. Let's take for example sdb2 - it was the last one plugged. It's UUID is 8AD65635D65621AD - keep this in mind.

First, make a group called let say my_device (you can call it whatever else) and add your accounts to it. You will do these from terminal:

sudo groupadd my_device
sudo usermod -a -G my_device your_username
sudo usermod -a -G my_device another_username
#...
sudo usermod -a -G my_device last_username

Second, make a new folder called my_device in /media and give everyone in the my_device group permission to read and write it:

sudo mkdir /media/my_device
sudo chown :my_device /media/my_device
sudo chmod 660 /media/my_device

Finally, open fstab as root. Something like:

sudo -i gedit /etc/fstab

and add this line at the end:

UUID=8AD65635D65621AD    /media/my_device    vfat    users,noauto,relatime    0  0

Save the file and close it. That's it

The same method can be applied for other devices.

Source: http://ubuntuforums.org/showthread.php?t=1684055


16.04.1 with AMD Kaveri boots to black screen

As you are able to ssh into your box, feel free to skip the first step. Others might find it useful so I decided to include it in my response.

From the grub menu, before booting, make the following changes to the boot parameters: replace "quiet nosplash" with "nomodeset". This way X server will start, but possibly with lower screen resolution.

Once you have logged in (via recovery mode, ssh, or after the step above) open /etc/default/grub, locate GRUB_CMDLINE_LINUX_DEFAULT and change the value from "quiet splash" to "nomodeset vga=XXX" where XXX is the code for your desired screen resolution and color depth. See here for reference: http://www.pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/

Once done, run sudo update-grub and reboot your system.

This process was confirmed to work on a box with AMD A10-7850K Kaveri and an MSI MoBo, with Ubuntu 16.04.1 upgraded from 14.04.


To install XFCE desktop environment, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
sudo apt-get update
sudo apt-get install xfce4

If you want to install the complete Xfce desktop, with all the extras, then use the following command

sudo apt-get install xubuntu-desktop


Installing Gallium 0.4 on SVGA3D; build: RELEASE; LLVM; Virtual machine

The solution can be found below

https://communities.vmware.com/message/2671936#2671936


How can I change my VirtualBox memory space?

We can increase the virtual hard disk space as shown e.g. in answers to the following question:

How do I increase the hard disk size of the virtual machine?

In your case, and if it was a new installation of Ubuntu it will be far less time consuming to just start from scratch and install Ubuntu again, this time on a larger virtual drive.

If you choose a dynamically growing virtual disk you can assign it a rather huge space it will report to the guest OS. Its physical size on the host hard drive will be much smaller and it will only grow to the extent needed and never more than up to the predefined limit.


You are missing the libc6 package
To install it
Type this in terminal sudo apt-get install libc6


UFW blocks cron job server on port 3333, until reloaded

Stumbled on an answer in a related search. Why UFW has to be (re)started at boot time if it's only iptables rule manager?

sudo invoke-rc.d iptables-persistent save


how can i use amazon kindle on ubuntu 20.04 LTS?

I have never used the native Kindle app but an alternative depending on what features you need may be to use Calibre which can read/write to Kindles.
Not sure what version is packaged with 20.04 but 20.10 comes with 4.99.12 (either from the software store or install via command line sudo apt-get install calibre).
5.5.0 is current latest version which you can download and do a binary install by following instructions on the developer site
https://calibre-ebook.com/download_linux


Mobile hotspot of my android device not showing in xubuntu

Check the band, does your 2.4 GHz or 5
if your laptop supports 5 GHZ?
Most new mobiles have both bands but old laptops might just have 2.4
In this case change band from your mobile


cp: cannot stat : No such file or directory

In the command that you have written, you need a forward slash (/) in front of the source and destination paths.  So, change your command to:
cp -R /home/my_name/.local/lib/python3.8/site-packages/pdfminer/ /home/my_name

This is because you are referring to both the source and destination from the root (/) directory.  Without, the command would still work, but only if you current working directory happened to be the root directory.  i.e., this would work, too:
cd /
cp -R home/my_name/.local/lib/python3.8/site-packages/pdfminer/ home/my_name

And unrelated to your question, but if it's your own directory, you can replace /home/my_name/ with ~.  i.e.,
cp -R ~/.local/lib/python3.8/site-packages/pdfminer/ ~


you can buy cd's from the Ubuntu store, but they stopped to distribute free Cd's

you can also look at the LoCo team of the Philippines and ask them whether they can give or sell you a installation Disc.

you could also try to download the ISO, with a unstable or slow connection I would advice to take a look at the torrent downloads. that way the download will resume if your connection drops.

edit: I did not realize you asked for 13.10 specifically, I think there are no physical discs for non- long term support releases.


I found a way to circumvent this problem by both removing DraftSight and deleting all local files and folders associated with DraftSight:

rm -Rv ~/.config/DraftSight
rm -Rv ~/.config/Dassault Systemes

thereafter re-installing DraftSight. This provokes the activation process to re-initiate. Thereafter the activation process worked just fine when filling in the required formulae.


free basic compiler error 23: File not found, libsupc++.a

You need to install additional packages. Please see:-

http://www.freebasic.net/wiki/wikka.php?wakka=CompilerInstalling


dpkg: error processing package (Ubuntu 16.04)

Turns out that installing git-all breaks Ubuntu 16.04. Found the fix here:

Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while processing: runit


System tries to install grub on usb instead of ssd

You can most likely remedy this by manually installing grub on your desired HD.

Try running this sequence exactly:

Boot to a live try Ubuntu session, then run the following at a terminal prompt:

a) sudo mount /dev/sdaX /mnt # Make "sdaX" the partition that has Ubuntu install (i.e. /dev/sda2)
b) for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt/$i"; done
c) sudo chroot /mnt
d) update-grub
e) if no errors skip this "e" section
     grub-install /dev/sdX (sdX is the hard drive that has linux installed (i.e. /dev/sda)
     update-grub 5) Reboot the system

After you have performed the manual steps be sure to set your computer bios to have your desired boot drive as the default boot device.


You can download the 12.04.05 LTS .iso images from http://releases.ubuntu.com/12.04/.

Depending on your hardware, you should either download the 32 bit version (works everywhere) or the 64 bit version (works only with a compatible 64 bit CPU, 4GB RAM or more are recommended).

If you want a normal graphical operating system, chose a desktop version. The server version does not contain any GUI but only a terminal interface, this is probably not what you want.

However, 12.04 is already pretty old and its support will end in April 2017. You should install a more recent release of Ubuntu unless you have a special reason for picking 12.04:

14.04 LTS (released in April 2014, supported for 5 years until April 2019)
15.10 (released in October 2015, supported for 9 months until July 2016)
16.04 LTS (released in April 2016, supported for 5 years until April 2021)

Further information about how to install Ubuntu can be found here:
How do I install Ubuntu?


Most simple way to create a bootable USB stick for headless installation with SSH enabled

Create a live usb the way you normally would, enabling persistent
storage.
Boot this live usb on a different system which has
a keyboard and monitor.
Install and setup ssh in this live usb environment
(it will stay installed for future boots in the persistent storage).
Now boot this live usb on the target system which is headless, the ssh server will be available.


How to change the IP address of an installed printer?

From this tutorial: Assigning an HP Network Printer a Fixed IP Address
Setting a Static IP Address
Once you know your printer’s IP address, entering it is pretty easy. Here’s what you do:

Run your Web browser.
In the Web browser’s address bar, type the IP address of your printer and press Enter. Assuming you entered the right address, the HP printer control panel should appear.
Click the Networking tab.
Under Connections, click Wired.


Cannot open lock file /var/lib/dpkg/lock permission denied--even using sudo

Your very First step should have been

sudo dpkg --set-selections < package.list && sudo apt-get dselect-upgrade

The following error

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

would have never occurred , Even second time you used the same code, and got same error.

Try the right command by adding sudo as per above , and post your findings.

NOTE : The use of && enables you to execute multiple commands on same line , in the usual sense && only executes the second command if the first command returns a value reporting success . Therefore ,sudo here needs to be specified in second command .


In a dual boot, why can I see and mount the Windows partition, labeled 'OS'?

Not really a security threat; ubuntu comes with ntfs-3g by default so it can read/mount ntfs partitions from the get go. Granted, one could use your linux partition to nuke the windows partition, but that's on you, not the os. Secure both OSs and the issue is nonexistant :)


Just open dock-properties and choose "themes":

Then press "edit"-button (in german "Anpassen")

Then press "export theme" (in german "Thema exportieren")

After this you save the theme, copy it to your computer and "install" (see screenshot 1) it in awn again.


Can't open folder after giving it www-data group, how do I become owner?

First are you sure your user is added to www-data group? The proper way to add your user to this group is:

sudo adduser yourusername www-data

Then do:

sudo chown yourusername:www-data -R /var/www

After that, you should change permissions to 755, it is not recommend changing permissions to 777 for security reasons

sudo chmod 0755 -R /var/www
sudo chmod g+s -R /var/www


How can a Qt application be notified that the user's session is ending and provide it with opportunity to save its state before being terminated?

I'm starting to use Qt for application development and I have found a "Session Management" chapter in Qt Reference Documentation. I think you can find some interesting.

  A session is a group of running applications, each of which has a particular state. The session is controlled by a service called the session manager. The applications participating in the session are called session clients.
  [...]
  Start by reimplementing QApplication::commitData() to enable your application to take part in the graceful logout process.
  [...]

You can find it here.