I recommend that you read about *nix modes since you will likely encounter them again and again.
Changing access rights
You can change a file or directory to be world (=everybody) readable with:

chmod a+rX [PATH...]

a means to apply the change for all classes (owner, group, and world).
+ means to grant additional access rights.
r means the right to read.
X means the right to execute (regular file) or traverse (directory), if at least one class already has execution/traversal access. It's important to use X (capital letter) instead of x because otherwise all files would be flagged executable, which is at best confusing and at worst a security problem.

If you're not the file owner you need to acquire superuser privileges first by prepending sudo to that command. To change the permission of a directory tree recursively, add the -R switch as the first argument.
Changing ownership
If you want your main user account to own the file system root (e. g. because you want to use it for documents, multimedia or other non-system files), it would be more elegant to hand over the ownership to it:
sudo chown [-R] "$USER:" [PATH...]

This will change the ownership over [PATH...] to user $USER (which is usually the name of the user currently logged in) and the group ownership to the default login group of that user. Again -R applies the changes recursively.


If you do not care about being unable to boot to desktop, if you
  aren't afraid of being forced to manually fix the X server, if you do
  not have any data you cannot easily restore in case it was totally
  erased, if you feel adventurous enough to be affected by tons of bugs
  still present in Quantal, if you can stand serious crashes from time to
  time, then do upgrade to ubuntu+1.

(well, seriously, some people, including me, enjoy the above.)

If you want to contribute and write some code to help working on, for example, Unity, then do upgrade.

Remember - alpha and beta software is by its nature will contain bugs.  Only upgrade if you are content with helping out finding and reporting bugs.

Also remember that downgrading back to a stable release isn't trivial:

How to roll back Ubuntu to a previous version?

Otherwise stick with the official release schedule and install when the stable release is available.


Why do I get a "cannot execute csh..." error when I try to "sudo su"?

Your root's (su) profile is set to use csh instead of the usual bash.

Run sudo apt-get install tcsh to install it, and your problem should be solved.


Go to http://web.skype.com on the Chromium browser as per https://www.linuxmadesimple.info/2019/02/how-to-use-skype-on-32-bit-systems-in.html

If you do not have Chromium installed, please step through these CLI commands:

sudo apt update
sudo apt upgrade
sudo apt install chromium-browser

If you wish to add it to a menu, add these optional steps:

sudo add-apt-repository ppa:peppermintos/p9-release
sudo apt install ice
sudo apt update
sudo add-apt-repository --remove ppa:peppermintos/p9-release
wget https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Microsoft_Skype_for_Business_logo.svg/2000px-Microsoft_Skype_for_Business_logo.svg.png


Ubuntu 15.04 with Kubuntu freezes on login screen

I solved it myself. The problem was due to my user old profile.The old profile uses old Ubuntu settings and it has problems so I have refreshed my configuration using the steps given in this Ubuntu Forums thread. I also reinstalled lightdm.

Steps from the post:

  Ubuntu keeps all user settings and data in each users home folder (/home/username). Most of the settings files for all applications are hidden files and folders (dot files as they start with a . eg .bashrc). This makes up any user's "user profile".

  I simply wanted to reset my user profile to default as I had upgraded from 8.10 and wanted a clean slate with settings for 9.04 (I would copy most data/documents over etc)

  The easiest way would be to just create another user and use that for testing but I wanted to keep the same username. So you would think it would be easy but there are more steps than you think...

  Target username is fred

  Create another administrator user (needs sudo access etc) under Administration > Users and Groups
  Log on as that new user and go to the terminal
  First back up the old profile just in case:

sudo mv /home/fred /home/fred.old

  Create new home folder

sudo mkdir /home/fred

  copy the skeleton (default) profile folder contents into the new folder. this gives you tab completion for bash and some other default settings etc

sudo cp -r /etc/skel/* /home/fred

  and to copy the hidden dot files/folders

sudo cp -r /etc/skel/.??* /home/fred

  (originally I did sudo cp -r /etc/skel/.* /home/fred as it made sense to me but laughed when I saw all of /etc (included because the glob catches ..) in my home folder)
  You don't need to do this but to move the old profile folder back into the new one for easier browsing etc do the following:

sudo mv /home/fred.old /home/fred/

  Last we need to set the ownership and the group membership for the new folder back to fred so (note the capital R):

sudo chown -R fred /home/fred
sudo chgrp -R fred /home/fred

  That should do it. Now log off and on to your old user and everything should be back to defaults and you should be able to browse the fred.old folder in your home (probably delete it after you have moved everything over)


If the application has been installed via the package manager, all you have to do is run

sudo apt-get remove <application_name>

That should always work. If the terminal isn't what stirs your tea, you could open System → Administration → Synaptic Package Manager, search for the package you want to remove, click on the checkbox next to it and select "mark for removal". Once you click "Apply", the package should be removed. There's of course also the Ubuntu Software Center. It's pretty much the same thing as Synaptic. Just search for the application name and click the "Remove" button.

Sometimes applications can be split up into multiple packages (for example, many games have a separate package for their music). To make sure that you uninstall all related packages AND configuration files, you can type

sudo apt-get purge <package-name>

or -in Synaptic- "mark for complete removal" instead of just "mark for removal".

As for applications that have been manually compiled and installed, there's not always a single way to remove them. The best thing to do is consult the README/INSTALL file that accompanied the source package - if one exists.


How do I redirect the output of grub-mkpasswd-pbkdf2?

Pipe the output to tee, which prints its input to stdout and optionally also to multiple files:

grub-mkpasswd-pbkdf2 | tee out

% grub-mkpasswd-pbkdf2 | tee out
Enter password:
Reenter password:
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.CF99115D7DE57D065ECA4420F829FACD1FEDDD1C08ACFDDEBBB6C2948DECECCA37DEBE4F0FB37FC8CAE385A1A440663225AFB2E79B4E69557F2F9BD13AB6E586.5D5AA1A70E60CF1C09AB6B9EF831996E3F60DF7B85ADE364C7E469DC88BAAE3D8DE0F1C2A5E60267170580564AF2A36DADA663DE2DF4407562A90FEAC7E78262
% cat out
Enter password:
Reenter password:
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.CF99115D7DE57D065ECA4420F829FACD1FEDDD1C08ACFDDEBBB6C2948DECECCA37DEBE4F0FB37FC8CAE385A1A440663225AFB2E79B4E69557F2F9BD13AB6E586.5D5AA1A70E60CF1C09AB6B9EF831996E3F60DF7B85ADE364C7E469DC88BAAE3D8DE0F1C2A5E60267170580564AF2A36DADA663DE2DF4407562A90FEAC7E78262


I have modified official method as following:

/usr/lib/apt/apt-helper download-file http://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2019.02.01_all.deb keyring.deb SHA256:176af52de1a976f103f9809920d80d02411ac5e763f695327de9fa6aff23f416
sudo dpkg -i keyring.deb

sudo add-apt-repository "deb http://debian.sur5r.net/i3/ xenial universe"
sudo apt update
sudo apt install i3

and I get 4.16.1 installed:

$ i3 --version
i3 version 4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors

you can select this session on login screen (usually LighDM or GDM).


run the following in a terminal:

sudo update-icon-caches /usr/share/icons/*


Systems Not Booting after Ubuntu installation

you need to update your grub entry, please try following process :

Try :

sudo gedit /etc/default/grub

and set

GRUB_TIMEOUT=10

ELSE

you can install GRUB customizer (http://www.liberiangeek.net/2012/09/grub-customizer-3-0-released-install-it-in-ubuntu-12-04/)  to make your work easy.
you will see following screen once you install GRUB customizer :

Let me know if this helps solve your problem


How to add metadata to images using Shotwell

Such a feature is only available in Shotwell itself. 'Shotwell photo viewer' lacks all advanced features and is, as its name suggests, only ment for viewing images.

How To: Open Shotwell, and if you haven't done this yet, import your photo collection by setting its location in the preferences window.

Now you can edit the title, comments and tags of any photo. (by right clicking it, or using the options under 'Photo' in the menubar)

Shotwell can save this meta-data in the image files them-self, or in a separate database. This can be set in the preferences window.


Single user forgot password can't do updates

If you cannot find any solution, you could just create a new partition, install Ubuntu on the new partition, and then transfer all your important files from your previous installation. Then format your old partition, then add the unused space to your new partition with your new installation. Here's a rundown

Download a Ubuntu 14.04 LTS ISO from their website here (http://www.ubuntu.com/download/desktop)
"Burn" the ISO to a USB or disk. You can use "Startup Disk Creator", which may come package with Ubuntu, if not you can find it easily in the Software Center. Open that and make a startup disk using the previously downloaded ISO. To select the ISO, you need to click the disk and navigate to it. Also, you'll need to format the USB, so make sure you don’t' have anything important on it.
After it is burned to the USB, restart you're computer and spam F12 while it starts up. It should bring you to the "boot menu" which allows you to choose what to boot off of
Choose your USB device from the menu with the arrow keys and hit enter.
A pink screen will show up, hit down and it will bring up a language menu, choose your language, and then choose install Ubuntu. If you get a black screen after that for longer the a min, restart your computer and redo the previous 2 steps and when you make it back to the pink screen after selecting a language, you'll want to hit F6,a small menu will pop up and navigate to where it says "nomodeset" and hit enter on it. Then try installing again.
When you install, set it up like you normally would until you make it to the menu that asks how you want to install it. You will want to choose "Something else" at the bottom of the menu.
Now, here's where things might get a bit confusing since I don't have much information from you. If you have only a single partition, you need to resize it. Double click the partition and reduce the size (preferably to half of what it is) and click ok.
Now, you want to create a new partition, click on the free space and create and then click on the plus sign button. You want this to be leave the settings alone other than the mount point, which should be the root folder "/". Hit ok and continue. If it says you need swap space, you can ignore it if you laptop was running fine without it previously.
Continue through the installation, its fairly simple at this point, it just asks for you to make a local account, and after that you should be good to go :)
Now, after you log into your new account, click the icon on the top left corner and type in "disks" and click the first link. You will see all your partitions on your hard drive. You want to make sure your old partition is mounted, if not, click on it and mount it.
Now, use Ubuntu's file manager and copy any personal or important files from the old installation of Ubuntu (probably the entire home folder, that's where most of your important files would be).
Now, go back to disks, click on your old partition, and format it. Now, you can readd this empty space to your new partition, and your good as new.

Any questions just ask, I might give you a link to some info that might be more helpful :)


See how path_to_folder is mounted via mount | grep path_to_folder.

Read man 8 mount. It says, in part:

 The non-superuser mounts.
              Normally, only the superuser can  mount  filesystems.   However,
              when fstab contains the user option on a line, anybody can mount
              the corresponding filesystem.

              Thus, given a line

                     /dev/cdrom  /cd  iso9660  ro,user,noauto,unhide

              any user can mount the iso9660 filesystem found on  an  inserted
              CDROM using the command

                     mount /dev/cdrom

              or

                     mount /cd

              For  more  details,  see fstab(5).  Only the user that mounted a
              filesystem can unmount it again.  If any user should be able  to
              unmount  it,  then  use users instead of user in the fstab line.
              The owner option  is  similar  to  the  user  option,  with  the
              restriction that the user must be the owner of the special file.
              This may be useful e.g. for /dev/fd if a login script makes  the
              console user owner of this device.  The group option is similar,
              with the restriction that the user must be member of  the  group
              of the special file.

Also look at the remount option.


The only place that I could find liblapack.so.3gf is "revolution-mkl" package from multiverse category.

Make sure multiverse repository is enabled then install it:

sudo apt install revolution-mkl

To enable multiverse (if it's not): How do I enable the "multiverse" repository?


Skype sound not working and crashes while in call

I had similar issues once, with the Skype version found on the official website.

If you also downloaded your version there, then you might try to use the Skype version found in the Canonical Partner repository instead, which is optimized for Ubuntu (and especially: pulseaudio). To get this version, first uninstall your current Skype installation and then follow this guide:

https://help.ubuntu.com/community/Skype#Installing_Skype


How can I fully maximize wine applications?

If you install CompizConfig Settings Manager, you can open the settings for the "Window Decoration" plugin and set "Decoration Windows" to !(class=Wine & state=maxhorz)

In detail, the Decoration Windows setting determines which windows do have decorations (the default is "any"). The "class=Wine" attribute is set by wine on the windows it opens, and "state=maxhorz" matches any window that is horizontally maximized.  The exclamation point reverses the entire expression (e.g. windows have decorations if they're not maximized wine windows).

If you want to make sure that your setting catches any app that behaves this way and not just wine, you can simplify the decoration windows setting to just !state=maxhorz


How to remove the limit of a maximum of 16 partions at installation of 12.04 on GPT layout HDD

As the author of the question noted, disks and the 16th partition of a disk have the minor device number 0 (source). Contrary to what we know, mkdosfs seems to think, all devices with minor number 0 are disks.

I conclude, that it is generally safe to override that safety measure with -l and format the 16th partition, though other tools may complain as well.


Upgrade from 18.10 to 19.04 with *default* Python 3.6 fails with corrupt python symlink error

I could'nt comment, so i would put my suggestion here,

Try,

sudo rm /usr/bin/python3

sudo ln -sf /usr/bin/python3.6 /usr/bin/python3

Or,

As a quick fix,did you try to create sym links using update-alternatives for python3

sudo update-alternatives --install /usr/bin/python3.6 python3 /usr/bin/python3 2

and for managing the links created

sudo update-alternatives --config python3

Read more on this


"domain" in resolv.conf shows the wrong domain name

A given machine can have multiple domain names, but let's assume that your machine has one (main) fully qualified domain name (FQDN).

It is DNS that determines what your machine's fully qualified domain name is, not the machine itself (... although the machine's fully qualified domain name may be recorded locally in one or more configuration files, e.g., in /etc/postfix/main.cf.)

Let's say your machine's system hostname is foo. Usually the machine is called foo in DNS too (although, to repeat, it can have other names as well.) You need to ask DNS what foo's fully qualified domain name is.

Let's say your machine's fully qualified domain name is foo.bar.com.

"In the old days" your hosthame would then be foo and /etc/resolv.conf file would contain domain bar.com. (Warning: in the old days different distributions handled the domain name differently, e.g., by including it in the system hostname, but most distros don't do that anymore.)

Nowadays the search option replaces the domain option in /etc/resolv.conf, so you should have instead search bar.com.

Since Ubuntu 12.04, the file /etc/resolv.conf is supposed to be managed by the resolvconf utility. Suppliers of nameserver information (i.e., nameserver addresses and search domain names) pass the info to resolvconf which writes an up-to-date resolv.conf file at runtime.

You are using resolvconf if the package is installed and /etc/resolv.conf is a symbolic link to ../run/resolvconf/resolv.conf.

Let's assume you are in fact using resolvconf. If you obtain an IP address for your principal network interface via the DHCP protocol then generally the search domain is also supplied via DHCP. In that case you need to configure the DHCP server to supply bar.com as the search domain name. If, on the other hand, your principal network interface is configured statically then you need to enter the search domain name into the network interface configuration utility that you are using (either ifup or NetworkManager). For ifup you put the search domain name on a dns-search line in /etc/network/interfaces and for NetworkManager you put it into the Additional search domains field on the IPv4 Settings tab for the relevant NetworkManager connection.


Running a program that is installed via aptitude

Sigrok is a metapackage which pulls in pulseview, the GUI (as you thought), and sigrok-cli, the command-line interface to sigrok. To run the GUI, (located in /usr/bin/pulseview) it should suffice to run pulseview (not ./pulseview) because /usr/bin is on your search path.


LaTeX Package ctable and Saucy Salamander

ctable package is in the ubuntu package 'texlive-latex-recommended', installed it with:

sudo apt-get install texlive-latex-recommended

I figured it out by searching in the package archives descriptions:

apt-get search ctable.*latex

Note: the search is done with regular expression.

ctable.*latex => ctable followed one or more characters, follow by latex


I'd suggest to go the Ubuntu way first instead of following instructions from 2007.

Have you tried to go to System Settings - Text entry and add your keyboard layout there?  I can see several Dvorak entries there and one might just be the one you are referring to in your question.

If you cannot find that setting, please tell us what window manager/Desktop environment you use for X.


Problem with dual booting Ubuntu and Windows 8

You need to install both your OSes in one mode -- either BIOS or EFI. Decide which to use and stick to it. Unfortunately, this can be tricky, since it's sometimes hard to control the boot mode. You can at least check this detail in Linux by looking for a directory called /sys/firmware/efi -- if it's present, you've booted in EFI mode, and if it's absent you've probably booted in BIOS mode. Trying to mix boot modes (BIOS for one OS, EFI for the other) can be done, but is almost always more trouble than it's worth.

Windows ties boot mode to partition table type: To install to a GPT disk, you must install in EFI mode, and to install to an MBR disk, you must install in BIOS mode.

Thus:

Decide whether you want to use BIOS or EFI.
Partition your disk appropriately.
Install Windows, being sure to boot your installation medium in the correct boot mode.
Install Ubuntu, being sure to boot your installation medium in the correct boot mode.

Do not do a cross-mode installation except as a last resort.

For more on EFI-mode Linux installations, see the following sites:

My page on EFI-mode Linux installations
The Ubuntu community wiki on the topic

Once you know the rules and pitfalls, this isn't too hard. Unfortunately, there's a lot of flexibility, insufficient warnings in the Ubuntu installer to prevent you from making mistakes, and lots of bugs in EFI implementations that provoke making mistakes.


I guess that feature lacks in your version of enigmail, the GnuPG client for Thunderbird.
Therefore I suggest you export your contacts into a "comma separated" formatted file (thunderbird > addressbook > Tools > Export) and then pipe it through gpg in the command line. e.g.:

awk 'BEGIN{FS=","};{print "gpg --search-keys --keyserver pgp.mit.edu " $5}' exported-file.csv | sh

(Whereas FS="," defines the "field separator" and $5 the fifth field, which is the field containing the e-mail address of the respective user.)

Otherwise try to upgrade your Enigmail add-on, as v1.6 seems to support that function:

  New function to search for the OpenPGP keys of all Address Book entries on a keyserver.

In version 1.6 you can find the option in Thunderbird > OpenPGP > Keyserver > "Find keys for all contacts".

Check here: Source (Section "Version Information")


Can I implement a SaaS infrastructure with Juju?

Yes you can do this.

You can use Juju as a "build-your-own SaaS", deploy Matlab and expose it to people as a SaaS.

Cornell University's Red Cloud seems to be similar to what you want to deploy. Mathworks also has a similar looking service for EC2.

The first step would be charming up Matlab and deploying it in the same way you would have deployed MySQL and WordPress.

That's only the first step --- deploying it is still not SaaS, there's a bunch of things you'd need to build around it. Things like billing, customer service, security,

Juju can certainly help get you there (especially when it comes to horizontal scaling and setting up a multitenant architecture) but there are many moving parts to providing Software as a Service, there's probably an entire suite of tools that take part in this.


Yes, changing those files is sufficient. You can use the hostnamectl command to change the hostname easily. These changes need to be made only once. So you can make the changes via rc.local or something similar to run once, remove itself from whatever caused it to run at boot and then reboot one before going on to do other things.

If a reboot is too much extra work, you can try scheduling an Upstart job. An Upstart job which has a start on startup condition will run this as early as possible. Better yet, a job with start on local-filesystems will run early enough to be sure necessary filesystems are mounted.


Pasting files needs to have all the elements given at the same time to paste. Since you are reading a file, you then need to firstly store the content somewhere -in a temp file, for example- so that you can then paste them together.

So I suggest something like this:

i=1
while read -r file
do
    awk '{print $3}' "$file" > file.$i
    ((i++))
done < ind_list

Now you have many file.XX files with the 3rd column of the file.

Then, just use something like this, where glenn jackman enlightens us:

paste -d " " file.{1..69} > output

And then you can clean all the temp files by saying rm file{1..69}.


Ubuntu Server 16.04: Sees only logical volumes (hardware RAID), doesn't see physical disks

Normally you would configure a controller with JBOD mode to do what you want. Your controller does not seem to support this. Instead you could configure a RAID0 set for each physical disk, it will have the same effect. Technically you would still not see the physical disk in the OS, but the corresponding number of RAID0 set. Still you would have the minimum possible interference of the RAID controller with your disks.


pbuilder-dist fails if cmake can't find non-mandatary c++ feature support?

I am not certain about the exact issue prompted by you configuration.
But two possible solutions are

Changing -std=c++0x to -std=c++11.
Remove option -fno-keep-inline-dllexport.

Please check your configuration files, where to modify this.
Prior to this, you can check if any of these options would work.
Go to the parent directory of CMakeFiles and try replicating the failed command at the command line, with the suggested modifications:

/usr/bin/c++    -std=c++11 -fno-keep-inline-dllexport   -o CMakeFiles/cmTC_3ab02.dir/DummyCXXFile.cxx.o -c /usr/share/cmake-3.16/Modules/DummyCXXFile.cxx
/usr/bin/c++    -std=c++0x -o CMakeFiles/cmTC_3ab02.dir/DummyCXXFile.cxx.o -c /usr/share/cmake-3.16/Modules/DummyCXXFile.cxx

For this to work, you would likely need to call first cmake --debug-trycompile (source).
Notes about your pastebin (messages worth noting, even though not necessarily problems) and procedure:

You have tons of ln: failed to create hard link '...' => '...': Invalid cross-device link messages.
There is a problem reported with Qt5LinguistTools. Perhaps it is worth installing qttools5-dev prior to what you did.
It reports Configuring incomplete, errors occurred!. It is worth checking what are possible sources of problems.
It helps a lot if you specify the exact list of commands you issued, including the directory where each command was issued.
What do you mean by "If I execute cmake on my system..."? Same as point above.

Related:
https://stackoverflow.com/questions/19523412/qt-config-c11-but-std-c0x
https://code-examples.net/en/q/129e754


From the sudoers man page:

SUDOERS OPTIONS

tty_tickets

  If set, users must authenticate on a per-tty basis. With this flag enabled, sudo will use a separate record in the time stamp file for each tty. If disabled, a single record is used for all login sessions. This flag is on by default.

In other words, disabling tty_tickets creates a single ticket that is shared across every tty for that user. Authenticating on any tty creates a new ticket which becomes valid on every other tty belonging to that user, voila - no redundant password prompt just because you opened a new tab.

I recommend setting defaults on a per-user basis, along the lines of:

echo Defaults:$USER '!tty_tickets' | sudo tee -a /etc/sudoers.d/mycustomconf

If you really want to, I suppose, you could make a change to the global defaults in /etc/sudoers with visudo. Something like this placed with the other defaults near the top should do:

Defaults    !tty_tickets

Since the next question is usually "how can I change the session timeout value?", I figured I'd include it here for the sake of convenience:

## disable per-tty auth, timeout after 15 minutes
echo Defaults:$USER '!tty_tickets', timestamp_timeout=15 | sudo tee -a /etc/sudoers.d/mycustomconf


Focus location bar in Thunar with keyboard shortcut

You can use Ctrl+L as keyboard shorcut to "Open location" in Thunar.

If you have set the view in the thunar's menu as View > Location Sector > Pathbar Style.

Then when you press Ctrl+L a little window called open location will be open

But if you set the view as *View > Location Sector > toolbar Style.
The focus will be in the location bar.

Hope this will helpful!

Regards.


Caps lock key swaps back to default after minute or so after I set it with setxkbmap

It looks like you are experiencing this bug on bugzilla - and reported also on Launchpad.

Upstream says this is fixed - however this has not been backported on Natty.

Whilst I don't normally recommend installing deb packages from different versions of Ubuntu - in this case, the package is simple without dependencies - and the launchpad bug recommendation is similar.

I recommend that you download the oneiric deb (do not add the oneiric repository) and install it.

i.e. 32bit from here, and 64bit from here.

sudo dpkg -i <name of the deb file downloaded>


When you install Windows, GRUB will be overwritten and you will no longer be able to boot into Ubuntu. It's easy to fix this by downloading a copy of boot-repair from here, burning it to a disc or USB and booting from it.

Aside from that, just use Gparted in Ubuntu to create another NTFS partition to put Windows 10 on.

It's generally best to install Windows first, but since you already have Ubuntu, this is the next best thing. Sorry for the brief answer. Comment if you need help.


ubuntu software center unable to install packages?

I have had this problem in the past and I have seen positive results from the following commands.

sudo apt-get clean
sudo apt-get autoremove

and then the command below which I have read was all that was needed for some people.

sudo apt-get install

References:

Ubuntu Forum

Bug Report


How to set the path to the latest Open MPI version?

Turning the comment into an answer:

The PATH environment variable is traversed in order from front to back. The old MPI version is found because it is positioned before the path to the new version in your PATH. If you want to find the new MPI version first, you should prepend its path in the PATH variable:

om() {
    export PATH=$HOME/Downloads/openmpi/bin:$PATH
    export LD_LIBRARY_PATH=$HOME/Downloads/openmpi/lib:$LD_LIBRARY_PATH
}


Is there any way to install Empathy 3.12 on Ubuntu 14.04?

Try

http://pkgs.org/download/empathy

Under Debian Sid, download either of one

empathy 3.12 64-bit
empathy 3.12 32-bit

download and install using sudo dpkg -i <path to .deb file>


Than do it, install lib32z1, lib32ncurses5, lib32bz2-1.0, the answer is already in the error message.

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0


Changed Partition from NTFS to EXT4 and owner is set to root

I can not create any folders there or do anything with it.

Yes, you can... if you are root that is (since as you claim: root owns it). If you want other users on your system to be able to put files on it: use your admin user to change the owner to your normal user.

sudo chown -R $USER:$USER {partitionname}

will change the permissions to your current user. $USER might be changed to the actual user name otherwise it will use the one you used to log in. {partitionname} needs to be the directory for that partition.

  Where can I find that in ubuntu?

df -H

will show a list similar to this:

Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda1              300G   100G   200G  33% /
varrun                 2.2G   574k   2.2G   1% /var/run
varlock                2.2G      0   2.2G   0% /var/lock
udev                   2.2G    50k   2.2G   1% /dev
devshm                 2.2G      0   2.2G   0% /dev/shm


E: Unable to locate package libmysql-ruby

libmysql-ruby appears to be a transitional package that has been phased out: the new package name seems to be ruby-mysql. If you are running Ubuntu 14.04 or later you will need to use

sudo apt-get install ruby-mysql


Almost desperate... I'm trying to Dual Boot Win10 and Ubuntu

I had a similar issue. Although, it was a .iso file, it ended up being that my boot disc was not not recognized as a bootable device.

Download Ubuntu for free from the Ubuntu website and leave in your downloads folder for now. Version 16.04.1 is the most up-to-date option right now. There is a higher version number available but it has limited support.

Download rufus on your Windows and plug in a thumb drive. The drive will be erased so make sure you don't have anything on there that you can't afford to lose. After starting rufus, the following parameters should look like:

Device:            (thumb drive location) ->  for example: sandisk(E:)

Partition...type:  MBR partition scheme for BIOS or UEFI computers

File System:       FAT32

Cluster Size:      4096

New Volume Label:  (any name will do)   for example: Ubuntu

Format Options:

(UNCHECK) Check Device for bad blocks

(CHECK) Quick format

(CHECK) Create a bootable disk using ISO Image --> Click CD image and choose OS

(CHECK) Create Extended label and icon files

To clarify, the CD image mentioned above is going to be your .iso file which you just downloaded from Ubuntu

For example: ubuntu-16.04.1-desktop-i386.iso

Click start and give it a few minutes. After it is done, you will not get any notification but the progress bar will be full.

After it is done close it and restart your computer.

You will also need to change your boot options inside setup by pressing F2 at startup, if you haven't already. Set the priority to the thumb drive. Note, the drive will have to be plugged in.

It should now boot up into the Ubuntu install options. You will have two options: Install over existing OS or install parallel. There is also a third option, but I forget what it was. You want the parallel option. It may say something like "install next to" or something, but you should know which option to choose.

I hope this works for you!!!!

-Jason.EE.CpE


How to test plymouth via virtual machine?

You don't need VirtualBox for that. You can test themes within a session.

Install the package plymouth-x11
Run sudo plymouthd ; sudo plymouth --show-splash ; sleep 10 ; sudo killall plymouthd

This will show you how your theme would look like on two screens (actually a simulation of multi-monitor setups) for 10 seconds. You can add the different actions you want to test (see plymouth --help) between the --show-splash and sleep command.


Auto-update ->Cinnamon AND Gnome fallback stop working

Try

sudo apt-get intall cinnamon
sudo apt-get update
sudo apt-get upgrade

It help me solve save problem


Constant problems with external encrypted hard disks

Thank you everyone who gave feedback! I tried the disks on different laptops now and they work fine here. So it appears that there is something wrong with the laptop I had been using, where after some random time the connection gets interrupted, irrespective of which USB plug I use.


Well, I've found the solution.

My Super key is also used for the launcher in Unity and that's having some kind of conflict.


What's the difference between "btmgmt" and "bluetoothctl"?

To answer your first question directly, these are command-line tools that allow you to have a high degree of control over a properly-configured Bluetooth radio. With these commands you can scan, pair, disconnect, and interact with external Bluetooth devices. As for the differences, the answer could be a blog post in and of itself, but let's keep it simple.
btmgmt is a command-line version of the BlueZ Bluetooth utility. BlueZ is part of the official Linux Bluetooth stack and provides support for the core layers and protocols of the specification. There is also a snap version of BlueZ, but it does not appear to be very popular at the moment.
bluetoothctl is also a command-line tool to control Bluetooth radios, but originated as part of the Debian project; which Ubuntu is based on. Like btmgmt, this tool works with the core layers and protocols of the Bluetooth specification.
Is one better than the other? They each certainly have their strengths and weaknesses, but it really comes down to personal preference and familiarity.


Use openvpn, it's available through apt-get and is super easy to use via the command line on a server. You just need an .ovpn file to work with which can be downloaded from the VPN book website.


How do I work with and open 360 degree *.pano panoramic image files?

To open *.pano on Linux, build this:

https://github.com/photosynth/offlineViewer

To access metadata, extract the *.pano as a ZIP archive.


Drag and Drop not working for Ubuntu 20.04 VirtualBox

You can only drop inside folders now. You can no longer drop directly on the ubuntu desktop. If anyone has figured out how to enable this.
Please tell! You however can make it land in the desktop by navigating to the Desktop folder in the "Files" app.
Also to install the guest additions cd on a clean ubuntu vbox install now you must first run following commands and install them:
sudo apt install gcc
sudo apt-get install build-essential gcc make perl dkms
reboot

Now you can insert guest additions cd.


What to do when reinstalling Ubuntu when /home on a separate HDD?

What to do when reinstalling Ubuntu when /home on a seperate HDD?

Mount /home but do not set it to format the partition. Use the same username during re-installation.

  For example do you need to use same username

No, but it would be adviced. If you use another name you will end up with TWO users in /home each with their own permissions and (same) user ID. You will need to do a lot of manual work to have both work together. It is possible also to just remove the old user but what would be the idea behind putting it on a separate partition if you do that?

  computername

No.

  and passwords?

No.


lost the vertical scroll function in touchpad after upgrading from 13.04 to 13.10

ck. in either dconf-editor > org > gnome > settings-daemon > peripherals > touchpad & see if scroll-method is set to edge-scrolling. If not do so & see.

Or System Settings > Mouse & Touchpad, make sure two finger scroll is disabled


How to know if hard drive supports Sata3 (6Gb/s)

The SATA 3 interface has been out since 2009 so it is likely most new hard drives support it.

I would use Disk Utility to inspect the drive and it will tell you what model it is then you can get the specs from the manufacturers website.

The issue will be with the motherboard - if it is a older model the chipset may not support the transfer rate.

There is a good article for reference of the SATA standard on Wikipedia.


Unable to sync Kontact with Google Contacts with Kubuntu 17.04

I use Kontact 5.4.3 with Kubuntu 17.04 and it syncs my google contacts, gmail and google calendar.  It might be helpful to install the KDE PIM 16.12.3 update.

http://kubuntu.org/news/kde-pim-update-now-available-for-zesty-zapus-17-04/

Even without the latest update, it still syncs with google. In Kontact, go to Contacts.  If your gmail account is listed under Address Books, right click and select Address Book Properties.  Check Enable interval refresh and set your Refresh interval. If your gmail account is not listed, right click in the Address Books box and select Add Address Book.


I followed this article and it worked for me.

1. Rename /usr/bin/skype to /usr/bin/skype.original.

sudo mv /usr/bin/skype /usr/bin/skype.original

2. Create a new /user/bin/skype file.

sudo gedit /usr/bin/skype

3. Paste the following:

#!/bin/bash
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype.original

4. Save & exit gedit.

5. Make /usr/bin/skype executable.

sudo chmod +x /usr/bin/skype

6. Start Skype as you normally would.


Get exit status from Pipe contained in brackets

maybe -o pipefail can help you, it will propagate any non-zero exit code through a chain of pipes.

articles about pipefail:

http://blog.kablamo.org/2015/11/08/bash-tricks-eux/
http://redsymbol.net/articles/unofficial-bash-strict-mode/


I'm afraid your problem is that you performed an in-place update. This is generally bad practice because so many things can go wrong. The user makes a lot of tweaks to Ubuntu over time (whether intentionally or not), so an in-place upgrade is generally hit or miss. For more information on that, look here.

I recommend performing a clean install, but with a seperate /home partition. That way, recurring clean installs will not cause you to loose your files. Be sure to back up before the install, so you don't loose anything important. For instructions on how to do that, look here.

Good luck!


Can't clean a full /boot because of unmet dependencies

In such case I would use the dpkg tool to force the removal of some kernel packages.
This is not suggested for common use and is a bit dangerous, but in such case with unmet dependencies might help.

First of all locate the kernel in which the system is booted. The one that is currently loaded. Open a terminal (CTRL+ALT+T) and issue the following command

uname -r

It will show you the loaded kernel, you should NOT try to remove this one.

Then issue the command

ls /boot

it will return all the installed images. Pick one or two and try to remove them. Try to force remove/purge them.
For example

sudo dpkg --force-all -P linux-image-3.13.0-32-generic

You can do the same for other images, in order to free up some space.

Then you can try to install the missing packages, or

sudo apt-get install -f

to try resolve the dependencies.

Finally, issue the "cleanup old kernels" command

 sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")

Above  command will remove ALL the kernels except the one that is currently loaded.

Because you have a separate /boot partition, keep in mind you will need to track its space and cleaning up often (the frequency depends on the space of /boot)


Is there a tool to split a book saved as a single PDF into one PDF per chapter?

This would be hard to do automatically, as there is no standard chapter label in a PDF file. However, if you do not mind some manual work, write down the pages for each chapter, and use pdftk to select the pages and save them into a new pdf file. For example, if chapter 2 is pages 23-45, do

pdftk A=input.pdf cat A23-45 output chapter_2.pdf

You need to install pdftk first:

sudo apt-get install pdftk

You can also use ghostscript (which comes preinstalled) directly:

gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=23 -dLastPage=45 -sOutputFile=chapter_2.pdf input.pdf

This is quite easy to convert a script that runs things semi-automatically. First, create an input file; on each line, put the desired output pdf file title, the starting page, the ending page -- like that:

chapter1 1 23
chapter2 24 56

Save this, using a text editor, to file pdfchaps.in.

Now, create a script -- save the following to a file called pdfchaps.sh:

#!/bin/bash

function pdfextr() {
  echo "Chapter $2"
  pdftk A=$1 cat A$3-$4 output $2.pdf
}

chapters=$1
pdffile=$2

echo "Splitting pdf file $pdffile by chapters from $chapters"
cat $chapters | while read line ; do  pdfextr $pdffile $line ; done

Make the script executable:

chmod a+x pdfchaps.sh

And run it:

pdfchaps chaps.in mybook.pdf


I have a similar problem with an older device and to allow playback I devised a successful encode with FFmpeg that can easily enough be wrapped up in a WinFF preset.

First make sure that you have a full WinFF installation:

sudo apt-get install winff winff-doc ffmpeg libavcodec-extra

Then create a file on your desktop called called torrent2tv.wff and copy and paste the following xml snippet into it:

<?xml version="1.0" encoding="utf-8"?>
<presets>
  <TORRENT2TV>
    <label>Convert to avi for viewing through old device!</label>
    <params>-c:v mpeg4 -q:v 2 -vtag XVID -sn -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -c:a libmp3lame -ac 2 -q:a 3 -ar 44100 </params>
    <extension>avi</extension>
    <category>My Presets</category>
  </TORRENT2TV>
</presets>

Right click on this file and select 'Open With WinFF' and this will be enough to install your preset into a new category called 'My Presets'.

Select this and run you input torrent files and hopefully your playback will be as good as mine on my own aged device :).


From Here http://www.marksanborn.net/linux/speed-up-the-gnome-menu-and-fix-the-annoying-icon-delay/
Note: This is for Feisty (7.04)

The first problem with the Gnome menu is that it loads the menu icons as needed causing a delay before you can see the icons. By default when you click the Gnome menu the icons are retrieved and loaded after the click (this is why there is a delay) and put in memory so they can be called later. Once the icons are in memory there will be no delay the next time you go to the same menu item. However, I think this is a bug since you should never see a delay in a menu system even if it is the first time you click on it. You can fix this problem by typing the following command as root.
gtk-update-icon-cache -f /usr/share/icons/THEMENAME/

Remember to replace the THEMENAME with the actual icon theme set you are using. The default is ‘gnome‘.


You can do this simply by declaring it as new in the command line or re-declaring it. For example, if you want to add ~/testfolder to your path variable, you simply can enter it in your current terminal (this is just an example):

PATH="$HOME/testfolder:$PATH"

This will of course only change it for the time you have said terminal session open. Notice the $ usage here, you leave it out for declaration, but if you want to display it you need to add $ to expand its contents.

If you want to declare them more lasting and general you can add them into your ~/.bashrc (only for you) file or in /etc/bash.bashrc (system wide) for example if you want them to be counting for only you or for all users. Another option is to add it to your .profile file (only for yourself) where it will be viable from the moment you log in. You can do this with echo for example if you're sure this variable is not set already or if you create new ones (only an example):

echo "variable=value" >> /path/filename

If you however want to edit a file outside your user directory which is the case when you want to edit /etc/bash.bashrc you need to use sudo and so you cant simply use a 'here document' since this would not work, instead use then a line like below:

echo "variable=value" | sudo tee -a /path/filename

If the variable however already exists you can change it with the sed command (also only an example):

sed -i.bak 's/variable=value/variable=new-value/' /path/filename

This will edit the variable in file but create a backup of it prior to the edit. If you change files outside your user directory with sed you need to use sudo in most cases so the line would be:

sudo sed -i.bak 's/variable=value/variable=new-value/' /path/filename

Removing a variable from a file can be done with sed as well, just leave the second part of the regex empty:

sed -i.bak 's/variable=value//' /path/filename

If your interested which environment variables are set you can use the env command to list them, ( set -o posix ; set ) | less or sh -c set. All three give various amounts of output, with ( set -o posix ; set ) | less giving back the most variables which are actually set.


How can I permanently declare a Bash function so I don't have to do it in every session?

Save the definition into the .bashrc file located in your $HOME directory.


install ubuntu 20.10 wine 6.0 Paltalk.exe

You cannot install exe files on Linux without Wine. I suggest using this:
https://linuxconfig.org/install-lutris-on-ubuntu-20-04-focal-fossa-linux
Then you can, most likely, install paltalk.exe using Lutris, which is really the easy way.
If you do not want to use Lutris, here is a guide that may help you install figure out how to install Paltalk on Focal Fossa I found it on YouTube. It may help more for your needs.
https://www.youtube.com/watch?v=WhJu915ztJo
Update:
According to the video, Paltalk does not work with Pulseaudio, which is probably what you are using for audio (it is default for Ubuntu). Try using Alsa. Also, this thread on another website may also help. https://www.imfiles.com/topic/best-way-to-run-paltalk-on-linux/


Try to remove and reinstall apache2.2-common,apache2-mpm-worker,apache2 packages by running,

sudo dpkg -P apache2.2-common
sudo dpkg -P apache2-mpm-worker
sudo dpkg -P apache2

Reinstall the above by running,

sudo apt-get install apache2.2-common
sudo apt-get install apache2-mpm-worker
sudo apt-get install apache2


How to create a bootable Ubuntu USB flash drive from terminal?

You can use dd.
sudo umount /dev/sd<?><?>

where <?><?> is a letter followed by a number, look it up by running lsblk.
It will look something like
sdb      8:16   1  14.9G  0 disk
├─sdb1   8:17   1   1.6G  0 part /media/username/usb volume name
└─sdb2   8:18   1   2.4M  0 part

I would dismount sdb1.
Then, next (this is a destructive command and wipes the entire USB drive with the contents of the iso, so be careful):
sudo dd bs=4M if=path/to/input.iso of=/dev/sd<?> conv=fdatasync  status=progress

where input.iso is the input file, and /dev/sd<?> is the USB device you're writing to (run lsblk to see all drives to find out what <?> is for your USB).
This method is fast and has never failed me.

EDIT: for those on a Mac ending up here, use lowercase for bs=4m:
sudo dd if=inputfile.img of=/dev/disk<?> bs=4m && sync

EDIT: If USB drive does not boot (this happened to me), it is because the target is a particular partition on the drive instead of the drive. So the target needs to be /dev/sdc and not /dev/sdc <?> For me it was /dev/sdb.
Reference: https://superuser.com/a/407327 and https://askubuntu.com/a/579615/669976


The operating system I use is Ubuntu version 13.04. How do we upgrade it to Ubuntu version 13.10?

You have to open a terminal and write this commmand: update-manager -d

Update Manager now will open and you can upgrade to 13.10... :)


Follow the below steps...So that you can easily remove mysql.I use these methods for removing mysql completely.

sudo service mysql stop  #or mysqld
sudo killall -9 mysql
sudo killall -9 mysqld
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo apt-get purge mysql-server-core-5.5
sudo apt-get purge mysql-client-core-5.5


Do I need to add an additional mirror to a standard sources.list file?

This is mine:

deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse

Notice I replace URLs with: mirror://mirrors.ubuntu.com/mirrors.txt

Note this will not work for do-release-upgrade in my experience, but works well for everything else


Are you using 12.04 beta? And if so..are you using Classic Gnome? Because then you smashed into a bug. If not..try reinstalling light themes (sudo apt-get remove light-themes).


Ubuntu Live Setup without interior laptop lcd

Probably problem was that USB couldn't boot himself. So I removed the HDD, wrote Ubuntu 20.04 iso on it. I placed HDD which has the installer on HDD slot on the motherboard so I wouldn't have to change booting priority. Plugged another HDD via USB slot. The live installer showed up. I installed ubuntu to HDD which in the USB slot. After installation removed HDD placed on the motherboard and placed the HDD which I installed ubuntu, in the motherboard slot. Then worked well. Thank u a lot.


How to remove gnome terminal profiles in 16.04 LTS?

You have to install dconf-editor in order to edit/remove terminal profile if you cannot access gnome-terminal menu.

sudo apt-get install dconf-editor

Open dconf-editor then navigate to org > gnome > terminal > legacy > profiles. From there you can modify the profile.

Screenshot taken at 14.04 with gconf-editor


Can we directly upload and share screenshots?

You can use shutter instead of the default gnome-screenshot program.
Besides many interesting features it has in contrast to the default tool, it also allows automatic uploading of images to a list of hosting platforms, one of them is also imgur.com, the site used by StackExchange.

To install shutter, you simply open a Terminal window (e.g. Ctrl+Alt+T) and enter:

sudo apt-get install shutter

If you then open and run shutter, you will get a window like this:

You can take a screensot e.g. using the Selection, Desktop or Window buttons, or discover one of the many more possibilities.

When you have taken the screenshot, you may click on Export to let the dialogue window below show up:

Chose your preferred image hoster (I recommend Imgur Guest, because it is used by SE as well and does not require authentication) and click on Upload. It will send the image and show you a list of URLs referring to different functions and representations of your screenshot:

You will probably usually want the link to the Original image, which you can either copy manually or by clicking on the quadratic button to the right of it.

After having closed the window, you can still access the URLs by right-clicking on the screenshot in Shutter and selecting from the context menu Public URLs --> Imgur (or whatever host you chose) the URL you want. A description of each one can be taken from the tooltip that appears if you hover over the link:

Then you can paste your screenshot link wherever you want. Enjoy! :)


File ownership in 13.04 set to messagebus instead of syslog for /var/log files

I managed to fix it with sudo find /var/log -type f -user messagebus -exec chown syslog:adm {} \;


Only Terminal windows appear on TightVNC

The solution is in the file itself:

# Uncomment the following TWO (2) lines for normal desktop:

However, in your config, only the first line is uncommented. The xinitrc sript is skipped, because it is still commented.

Uncomment this line, and you should be fine. Without it, starting a gnome-session is futile.


Deleted most of the packages using apt-get purge package\*; How can I get them back?

Here's the list of deleted packages (at least on Debian):

➜  ~  apt-get -s purge wine\*
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'kmfl-keyboards-mywin' for regex 'wine*'
Note, selecting 'kwin-style-qtcurve' for regex 'wine*'
Note, selecting 'windows-el' for regex 'wine*'
Note, selecting 'avifile-win32-plugin' for regex 'wine*'
Note, selecting 'libunwind8' for regex 'wine*'
Note, selecting 'navit-graphics-gtk-drawing-area' for regex 'wine*'
Note, selecting 'golang-go-darwin-amd64' for regex 'wine*'
Note, selecting 'hwinfo' for regex 'wine*'
Note, selecting 'libchewing2-dev' for regex 'wine*'
Note, selecting 'winff-gtk2' for regex 'wine*'
Note, selecting 'wine64-unstable' for regex 'wine*'
Note, selecting 'wine64-bin' for regex 'wine*'
Note, selecting 'winff-qt' for regex 'wine*'
Note, selecting 'scim-chewing' for regex 'wine*'
Note, selecting 'openwince-jtag' for regex 'wine*'
Note, selecting 'gpgv-win32' for regex 'wine*'
Note, selecting 'libwine-openal' for regex 'wine*'
Note, selecting 'gemrb-icewind-dale-data' for regex 'wine*'
Note, selecting 'wine32-dev-tools' for regex 'wine*'
Note, selecting 'petitboot-twin' for regex 'wine*'
Note, selecting 'libswing-layout-java' for regex 'wine*'
Note, selecting 'libswing-layout-java-doc' for regex 'wine*'
Note, selecting 'gemrb-icewind-dale-2' for regex 'wine*'
Note, selecting 'libwine-dev' for regex 'wine*'
Note, selecting 'plplot12-driver-xwin' for regex 'wine*'
Note, selecting 'libswingx-java' for regex 'wine*'
Note, selecting 'libfreehep-swing-java' for regex 'wine*'
Note, selecting 'libchewing3-dbg' for regex 'wine*'
Note, selecting 'kdeartwork-theme-window' for regex 'wine*'
Note, selecting 'libx11-windowhierarchy-perl' for regex 'wine*'
Note, selecting 'libwine-gecko-dbg-2.21' for regex 'wine*'
Note, selecting 'golang-go-windows-amd64' for regex 'wine*'
Note, selecting 'libwine-capi' for regex 'wine*'
Note, selecting 'winbind' for regex 'wine*'
Note, selecting 'libtwin0' for regex 'wine*'
Note, selecting 'wine-utils' for regex 'wine*'
Note, selecting 'winff-doc' for regex 'wine*'
Note, selecting 'q4wine-unstable' for regex 'wine*'
Note, selecting 'win32-loader' for regex 'wine*'
Note, selecting 'wine64-development-preloader' for regex 'wine*'
Note, selecting 'cpio-win32' for regex 'wine*'
Note, selecting 'libchewing' for regex 'wine*'
Note, selecting 'wine64-development' for regex 'wine*'
Note, selecting 'wininfo' for regex 'wine*'
Note, selecting 'libkwineffects1abi5' for regex 'wine*'
Note, selecting 'freepwing' for regex 'wine*'
Note, selecting 'libchewing3-dev' for regex 'wine*'
Note, selecting 'libwine-ldap' for regex 'wine*'
Note, selecting 'libwine-oss' for regex 'wine*'
Note, selecting 'winpdb' for regex 'wine*'
Note, selecting 'libkwinglesutils1' for regex 'wine*'
Note, selecting 'libwind0-heimdal' for regex 'wine*'
Note, selecting 'libwine-gphoto2' for regex 'wine*'
Note, selecting 'libwine-sane' for regex 'wine*'
Note, selecting 'phylowin' for regex 'wine*'
Note, selecting 'qml-module-qtquick-window2' for regex 'wine*'
Note, selecting 'libwine-alsa' for regex 'wine*'
Note, selecting 'matchbox-window-manager' for regex 'wine*'
Note, selecting 'windowlab' for regex 'wine*'
Note, selecting 'wine64-bin-unstable' for regex 'wine*'
Note, selecting 'libworldwind-java' for regex 'wine*'
Note, selecting 'ibus-chewing' for regex 'wine*'
Note, selecting 'libwings-dev' for regex 'wine*'
Note, selecting 'winswitch' for regex 'wine*'
Note, selecting 'libwin-hivex-perl' for regex 'wine*'
Note, selecting 'wine' for regex 'wine*'
Note, selecting 'wing' for regex 'wine*'
Note, selecting 'wink' for regex 'wine*'
Note, selecting 'worldwind' for regex 'wine*'
Note, selecting 'libmono-system-windows-forms-datavisualization4.0a-cil' for regex 'wine*'
Note, selecting 'q4wine' for regex 'wine*'
Note, selecting 'winetricks' for regex 'wine*'
Note, selecting 'winkeydaemon' for regex 'wine*'
Note, selecting 'wine32-unstable' for regex 'wine*'
Note, selecting 'wine64-development-tools' for regex 'wine*'
Note, selecting 'libwine-development-dbg' for regex 'wine*'
Note, selecting 'mate-window-manager' for regex 'wine*'
Note, selecting 'libtwin-dev' for regex 'wine*'
Note, selecting 'shiki-wine-theme' for regex 'wine*'
Note, selecting 'wine32' for regex 'wine*'
Note, selecting 'libcsfml-window2' for regex 'wine*'
Note, selecting 'libkwinglutils1abi2' for regex 'wine*'
Note, selecting 'libmate-window-settings-dbg' for regex 'wine*'
Note, selecting 'libunwind-setjmp0-dbg' for regex 'wine*'
Note, selecting 'wings3d' for regex 'wine*'
Note, selecting 'libnss-winbind' for regex 'wine*'
Note, selecting 'libmate-window-settings1' for regex 'wine*'
Note, selecting 'kde-window-manager' for regex 'wine*'
Note, selecting 'libunwind1-dev' for regex 'wine*'
Note, selecting 'libmono-system-drawing4.0-cil' for regex 'wine*'
Note, selecting 'libswingx1-java-doc' for regex 'wine*'
Note, selecting 'libunwind7-dev' for regex 'wine*'
Note, selecting 'libwine-development-dev' for regex 'wine*'
Note, selecting 'wine-development' for regex 'wine*'
Note, selecting 'libparse-win32registry-perl' for regex 'wine*'
Note, selecting 'libswingx1-java' for regex 'wine*'
Note, selecting 'wine64' for regex 'wine*'
Note, selecting 'libwine-cms' for regex 'wine*'
Note, selecting 'libwine' for regex 'wine*'
Note, selecting 'science-viewing-dev' for regex 'wine*'
Note, selecting 'libmate-window-settings-dev' for regex 'wine*'
Note, selecting 'avant-window-navigator' for regex 'wine*'
Note, selecting 'libmono-system-reactive-windows-threading2.1-cil' for regex 'wine*'
Note, selecting 'libmono-system-drawing-design4.0-cil' for regex 'wine*'
Note, selecting 'libsfml-window2' for regex 'wine*'
Note, selecting 'libunwind-setjmp0-dev' for regex 'wine*'
Note, selecting 'ibus-chewing-dbg' for regex 'wine*'
Note, selecting 'openwince-include' for regex 'wine*'
Note, selecting 'qtdeclarative5-window-plugin' for regex 'wine*'
Note, selecting 'fcitx-chewing' for regex 'wine*'
Note, selecting 'gemrb-icewind-dale-2-data' for regex 'wine*'
Note, selecting 'libunwind8-dbg' for regex 'wine*'
Note, selecting 'libchewing-dev' for regex 'wine*'
Note, selecting 'kwin-style-dekorator' for regex 'wine*'
Note, selecting 'libchewing-data' for regex 'wine*'
Note, selecting 'libwine-bin' for regex 'wine*'
Note, selecting 'libwine-development' for regex 'wine*'
Note, selecting 'libapache2-mod-auth-ntlm-winbind' for regex 'wine*'
Note, selecting 'wine32-development' for regex 'wine*'
Note, selecting 'golang-go-windows-386' for regex 'wine*'
Note, selecting 'libmono-system-reactive-windows-forms2.1-cil' for regex 'wine*'
Note, selecting 'libwings2' for regex 'wine*'
Note, selecting 'libwine-gl' for regex 'wine*'
Note, selecting 'wine1.2' for regex 'wine*'
Note, selecting 'wine1.3' for regex 'wine*'
Note, selecting 'wine-unstable' for regex 'wine*'
Note, selecting 'wine1.4' for regex 'wine*'
Note, selecting 'wine1.5' for regex 'wine*'
Note, selecting 'x-window-system-core' for regex 'wine*'
Note, selecting 'libchewing3-data' for regex 'wine*'
Note, selecting 'libunwind8-dev' for regex 'wine*'
Note, selecting 'libmono-windowsbase3.0-cil' for regex 'wine*'
Note, selecting 'kwin-style-oxygen-transparent' for regex 'wine*'
Note, selecting 'winwrangler' for regex 'wine*'
Note, selecting 'plplot11-driver-xwin' for regex 'wine*'
Note, selecting 'libmono-system-windows-forms4.0-cil' for regex 'wine*'
Note, selecting 'libmono-system-reactive-windows-threading2.2-cil' for regex 'wine*'
Note, selecting 'wine-doc' for regex 'wine*'
Note, selecting 'golang-go-darwin-386' for regex 'wine*'
Note, selecting 'wing-data' for regex 'wine*'
Note, selecting 'libmono-winforms2.0-cil' for regex 'wine*'
Note, selecting 'arc-wine' for regex 'wine*'
Note, selecting 'x-window-manager' for regex 'wine*'
Note, selecting 'libjenkins-winstone-java-doc' for regex 'wine*'
Note, selecting 'fte-xwindow' for regex 'wine*'
Note, selecting 'libmono-system-windows-forms-datavisualization4.0-cil' for regex 'wine*'
Note, selecting 'wine32-development-tools' for regex 'wine*'
Note, selecting 'hime-chewing' for regex 'wine*'
Note, selecting 'gzip-win32' for regex 'wine*'
Note, selecting 'libjenkins-winstone-java' for regex 'wine*'
Note, selecting 'pd-windowing' for regex 'wine*'
Note, selecting 'libmono-windowsbase4.0-cil' for regex 'wine*'
Note, selecting 'libmate-window-settings1-dbg' for regex 'wine*'
Note, selecting 'libswingx-java-doc' for regex 'wine*'
Note, selecting 'libmono-system-reactive-windows-forms2.2-cil' for regex 'wine*'
Note, selecting 'wine64-dev-tools' for regex 'wine*'
Note, selecting 'libpam-winbind' for regex 'wine*'
Note, selecting 'kwin4-style-bespin' for regex 'wine*'
Note, selecting 'ucimf-chewing' for regex 'wine*'
Note, selecting 'kwin-style-crystal' for regex 'wine*'
Note, selecting 'gextractwinicons' for regex 'wine*'
Note, selecting 'uim-chewing' for regex 'wine*'
Note, selecting 'twinkle' for regex 'wine*'
Note, selecting 'emacs-window-layout' for regex 'wine*'
Note, selecting 'libchewing3' for regex 'wine*'
Note, selecting 'gemrb-icewind-dale' for regex 'wine*'
Note, selecting 'gnome-wine-icon-theme' for regex 'wine*'
Note, selecting 'x-window-system' for regex 'wine*'
Note, selecting 'libchewing1-dev' for regex 'wine*'
Note, selecting 'winbind4' for regex 'wine*'
Note, selecting 'science-viewing' for regex 'wine*'
Note, selecting 'libjswingreader-java' for regex 'wine*'
Note, selecting 'plplot9-driver-xwin' for regex 'wine*'
Note, selecting 'libmono-system-windows4.0-cil' for regex 'wine*'
Note, selecting 'twine' for regex 'wine*'
Note, selecting 'libunwind-setjmp0' for regex 'wine*'
Note, selecting 'winbindd' for regex 'wine*'
Note, selecting 'winff' for regex 'wine*'
Note, selecting 'python-strongwind' for regex 'wine*'
Note, selecting 'winff-dbg' for regex 'wine*'
Note, selecting 'libwine-gecko-2.21' for regex 'wine*'
Note, selecting 'all-knowing-dns' for regex 'wine*'
Note, selecting 'wine-bin' for regex 'wine*'

And these were the actual packages removed:

The following packages will be REMOVED:
  gnome-control-center* gvfs-backends* keepass2* libglade2.0-cil*
  libgssapi3-heimdal* libgtk2.0-cil* libhdb9-heimdal* libheimntlm0-heimdal*
  libhx509-5-heimdal* libkdc2-heimdal* libkrb5-26-heimdal*
  libmate-window-settings1* libmono-cil-dev* libmono-http4.0-cil*
  libmono-microsoft-web-infrastructure1.0-cil*
  libmono-system-data-services2.0-cil* libmono-system-data-services4.0-cil*
  libmono-system-design4.0-cil* libmono-system-drawing-design4.0-cil*
  libmono-system-drawing4.0-cil* libmono-system-messaging4.0-cil*
  libmono-system-reactive-windows-forms2.2-cil*
  libmono-system-reactive-windows-threading2.2-cil*
  libmono-system-runtime4.0-cil*
  libmono-system-servicemodel-activation4.0-cil*
  libmono-system-servicemodel-discovery4.0-cil*
  libmono-system-servicemodel-routing4.0-cil*
  libmono-system-servicemodel-web4.0-cil* libmono-system-servicemodel4.0a-cil*
  libmono-system-serviceprocess4.0-cil*
  libmono-system-web-abstractions4.0-cil*
  libmono-system-web-dynamicdata4.0-cil*
  libmono-system-web-extensions-design4.0-cil*
  libmono-system-web-extensions4.0-cil*
  libmono-system-web-http-selfhost4.0-cil*
  libmono-system-web-http-webhost4.0-cil* libmono-system-web-mvc3.0-cil*
  libmono-system-web-routing4.0-cil* libmono-system-web-services4.0-cil*
  libmono-system-web-webpages-deployment2.0-cil*
  libmono-system-web-webpages-razor2.0-cil*
  libmono-system-web-webpages2.0-cil* libmono-system-web4.0-cil*
  libmono-system-windows-forms-datavisualization4.0a-cil*
  libmono-system-windows-forms4.0-cil* libmono-system-windows4.0-cil*
  libmono-system-xml-serialization4.0-cil* libmono-web4.0-cil*
  libmono-windowsbase3.0-cil* libmono-windowsbase4.0-cil*
  libmono-winforms2.0-cil* libnunit-cil-dev* libnunit2.6-cil* libsmbclient*
  libsmbclient-dev* libwebkit1.1-cil* libwind0-heimdal* libwine*
  libwine-gecko-2.21* mate-control-center* mate-desktop-environment-core*
  mono-4.0-service* mono-complete* mono-devel* monodoc-browser*
  monodoc-manual* mplayer* mpv* python-samba* samba* samba-common-bin*
  samba-dsdb-modules* samba-libs* samba-vfs-modules* wine* wine64*

The most scary package that was removed was x-window-manager, yet nothing of the sort was removed. What I can say is that unless you use KDE or MATE, there isn't any package that its removal would cause your system packages to be deleted, or leave you with a crippled system, in fact, if any really important package that would leave your system in an unbootable state you should see a warning like this one:

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt

In which case it would ask you to type the complete phrase "I know what I'm doing! ", literally. So, since we know which packages were removed, we can know what functionality we lost... in fact none! We still have network-manager and apt/dpkg so fixing/reverting this would be a breeze, just moving to a TTY (Ctrl + Alt + F1) and installing the (k|l|x)ubuntu-desktop meta package should be enough to return everything to normal.

sudo apt-get install ubuntu-desktop

From there on, check what other package you installed isn't installed anymore.

Ah, final counsel, unless you know what the regex will do, don't do it. It was matching any package that had win or wine in its name. And as always -s/--simulate is your friend.


gio is a PyGTK module, and is not available for Python 3 because PyGTK itself is deprecated. If you want to create a GTK+ application in Python 3, you will need to use its replacement: PyGObject. In the case of Gio, you import it like this.

$ python3
Python 3.2.2 (default, Sep  5 2011, 21:17:14)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import Gio

Such documentation as exists can be found here. Best of luck!


Why VGA Ubuntu in my Virtual Machine not same as my VGA PC?

It's simple: VMware (or any other virtualization software) does normally not grant the VM direct access to the host's hardware, unless you specifically set it up that way.

Instead all hardware the VM sees is emulated, like the SVGA VMware you noticed. This is not a real, physical graphics card, but the hypervisor (here VMware) creates a virtual device that is accessible from inside the VM like a real graphics card.

If your VM must have direct access to your graphics hardware, search for "VMware GPU passthrough" and your graphics chip model.


Can't get iconify() and deiconify() to work properly

I have tried your iconify()/deiconify() code and it works. I have added minimal code to get it to run. Can you confirm that this version works?

#include <gtkmm.h>
#include <libappindicator/app-indicator.h>
#include <gtkmm/stylecontext.h>

class CMainWindow: public Gtk::Window {
  Glib::RefPtr<Gtk::StyleContext> m_rStyle;
  Glib::RefPtr<Gtk::UIManager>    m_rUIManager;
  Glib::RefPtr<Gtk::ActionGroup>  m_rActionGroup;
  AppIndicator*                   m_pAppIcon;
public:
  void TrayInit();
  void TrayWinShow();
  void TrayWinHide();
  void TrayWinExit();
};

void CMainWindow::TrayInit() {
  m_rActionGroup = Gtk::ActionGroup::create();
  m_rActionGroup->add(Gtk::Action::create("Show", "Show"),
    sigc::mem_fun(*this, &CMainWindow::TrayWinShow));
  m_rActionGroup->add(Gtk::Action::create("Hide", "Hide"),
    sigc::mem_fun(*this, &CMainWindow::TrayWinHide));
  m_rUIManager = Gtk::UIManager::create();
  m_rUIManager->insert_action_group(m_rActionGroup);
  add_accel_group(m_rUIManager->get_accel_group());
  Glib::ustring strUI =
    "<ui>"
    "  <popup name='IndicatorPopup'>"
    "    <menuitem action='Show' />"
    "    <menuitem action='Hide' />"
    "  </popup>"
    "</ui>";
  m_rUIManager->add_ui_from_string(strUI);
  Gtk::Widget *pWidget;
  pWidget = m_rUIManager->get_widget("/ui/IndicatorPopup");
  m_pAppIcon = app_indicator_new("sample", "weather-clear-night",
    APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
  app_indicator_set_status(m_pAppIcon, APP_INDICATOR_STATUS_ACTIVE);
  app_indicator_set_menu(m_pAppIcon, GTK_MENU(pWidget->gobj()));
}

void CMainWindow::TrayWinShow() {
  deiconify();
}

void CMainWindow::TrayWinHide() {
  iconify();
}

int main(int argc, char** argv) {
  Glib::RefPtr<Gtk::Application> app =
    Gtk::Application::create(argc, argv,"org.gtkmm.examples.base");
  CMainWindow c;
  c.set_default_size(200, 200);
  c.TrayInit();
  return app->run(c);
}

I saved it as test.cpp and compiled it as follows:

g++ test.cpp  `pkg-config --cflags --libs gtkmm-3.0 appindicator3-0.1`


How to auto mount a flash drive with root and read/write/execute privileges

Open the terminal using:

Menu: Applications menu -> Accessories -> Terminal.

Keyboard Shortcut: Ctrl + Alt + T
And type the following:

sudo fdisk -l

The output should be similar to:

karthick@Ubuntu-desktop:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00af00af

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3188    25607578+   7  HPFS/NTFS
/dev/sda2            3189        4462    10233405   83  Linux
/dev/sda3            4463       19458   120449002+   f  W95 Ext'd (LBA)
Partition 3 does not end on cylinder boundary.
/dev/sda5            4463        9561    40957686    7  HPFS/NTFS
/dev/sda6            9562       14660    40957686    7  HPFS/NTFS
/dev/sda7           14661       19255    36905984   83  Linux
/dev/sda8           19255       19458     1626112   82  Linux swap / Solaris

Disk /dev/sdb: 4022 MB, 4022337024 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b5e92

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         489     3927861    7  HPFS/NTFS

My flash drive is located at /dev/sdb1 (yours may vary).
Make the following ajustments:

For NTFS file system:

You should edit the fstab file. Type the following in terminal:

sudo gedit /etc/fstab

At the bottom of the fstab file paste the following:

/dev/sdb1       /media/Datas ntfs-3g  defaults  0   0

For FAT 16/32 file system run the following in terminal:

sudo mount -t vfat /dev/sdb1 /media/Datas -o uid=1000,gid=100,utf8,dmask=027,fmask=137

Note:
You should create the mount point, in terminal type the following:

sudo mkdir /media/Datas
sudo mount -a

Related Reading:

Mount/USB - Community Ubuntu Documentation

Fstab - Community Ubuntu Documentation


I would look into using CloudFlare for the DNS portion, then handle DNS there to set A records and such.

This way, you don't have to run DNS servers yourself.

Running authoritative DNS servers yourself is a pain and has all sorts of security headaches you need to keep in mind, so it's usually easier to just use CloudFlare to manage your DNS, and then you only have to worry about setting the A records properly in CloudFlare.

This also saves you the headache of configuring a DNS server yourself - with CloudFlare having free DNS plans, it's almost better to run CloudFlare for your domain(s) instead of running your own DNS servers, unless you actually need a DNS server for something that CloudFlare is incapable of providing.


How to verify files installed in system against 3rdparty deb package?

You can use dpkg-deb -x to open a package, generate a list of hashes to check, and then verify them:
$ mkdir /tmp/bat
$ cd /tmp
$ dpkg-deb -x /var/cache/apt/archives/bat_0.12.1-1build1_amd64.deb bat
$ cd bat
$ find . -type f -exec sha256sum '{}' + > /tmp/sums
$ cd /
$ sha256sum -c /tmp/sums
./usr/share/man/man1/batcat.1.gz: OK
./usr/share/doc/bat/README.Debian: OK
./usr/share/doc/bat/changelog.Debian.gz: OK
./usr/share/doc/bat/copyright: OK
./usr/share/lintian/overrides/bat: OK
./usr/bin/batcat: OK
./usr/.crates2.json: OK
$

I don't know what problem you're trying to solve, though; installing new .deb packages requires full root privileges, the maintainer scripts provided by the package run with unconfined root privileges. If you strictly want to verify that the files in the package match what's on disk, this can do that, but it can't do much else.


Ubuntu 14.04 Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0) can't connect

There were some issues with this network adapter Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0) in older kernels. I suggest that you upgrade kernel to 3.16. It can be done by

sudo apt-get install linux-generic-lts-utopic

This kernel is default in 14.04.2.

But you need to connect to the Internet using wifi, if it works.


Ubuntu does not change refresh rate , causing Eye strain

You did not read the links I gave you nor did you post sufficient information for me to answer.

I can take a guess.

You have to manually add a mod line and you will have to modify this answer to match your hardware / xrandr output.

Run cvt

cvt 1366 768 75.0

notice how the desired refresh rate is added to your resolution ;)

output will look like this:

# 1368x768 74.90 Hz (CVT) hsync: 60.30 kHz; pclk: 109.50 MHz
Modeline "1368x768_75.00"  109.50  1368 1448 1592 1816  768 771 781 805 -hsync +vsync

Add it to xrandr (without the "Modline" part)

xrandr --newmode "1368x768_75.00"  109.50  1368 1448 1592 1816  768 771 781 805 -hsync +vsync

Now here is where you did not post sufficient information, so I can not write an answer.

The output of xrandr shows your display name, mine shows

  eDP connected 1366x768+0+0

so mine is eDP. Yours may be VGA-0 or LVDS or ....

run xrandr with your display name

xrandr --addmode eDP 1366x768_75.00

NOW run xranrd to set your desired resolution

    xrandr --output eDP --mode 1366x768_75.00

If you have a problem post the output of xrandr and the commands I gave you exactly as you enter them and any error messages.

Don't forget to ask nice because I am a volunteer.


Create a shell script with the following code

dm-tool switch-to-user USERNAME

and save it as /home/yourname/bin/login_script.sh. Make sure it is executable

Now, add the script as a shortcut on desktop by creating a ~/Desktop/login.desktop file with the following contents:

[Desktop Entry]
Version=1.0
Exec=/home/yourname/bin/login_script.sh
Name=Switch User
GenericName=Switch user
Comment=Login as different user
Encoding=UTF-8
Terminal=true
Type=Application
Categories=Application;


Why fan speed/noise problem occuring on desktop with NVidia GeForce 9600 GT?

Are you using Nouveau (the built-in open source driver) or the proprietary Nvidia driver?

If you aren't using the latter - or aren't absolutely sure you're using the latter - please open the Dash, open Additional Drivers, and select and activate the driver marked NVIDIA acclerated graphics driver (version current) [Recommended].

After downloading, installing, and activating the driver, a reboot will be required before it actually takes effect.  Good luck.


How to figure out what is causing CPU usage to spike to 100

You can use htop.

First, install htop:

sudo apt-get update
sudo apt-get install htop

Then, run htop from a terminal:

sudo htop

htop provides many options. The default will filter results by cpu usage so the culprit will appear at the top of the list. You will have the option of killing the process F9 and you can also use strace by pressing S for the highlighted process.


Parse `df` output for `/dev/disk/by-uuid/xxx`

The problem is that although df shows information about the device specified by the UUID, the first column of its output still refers to it by the /dev/sdXY block device name - so the grep fails to match.

In fact, there's no need to use grep at all - you can use awk to skip the header line (and even to remove the % sign):

$ df -P /dev/sda1 | awk 'NR == 2 { print substr($5,1,length($5)-1) }'
80

$ df -P /dev/disk/by-uuid/79b5546e-5b3e-4299-becb-5f0cad06cf5f | awk 'NR == 2 { print substr($5,1,length($5)-1) }'
80


OpenStack :One virtual system sum of several hardware resources?

The general buzzword you are looking for is "Virtualization for Aggregation" - Have a look here for more details: http://en.wikipedia.org/wiki/Virtualization_for_aggregation

There is no free solution out there that I know of, but have a look at ScaleMP for a commercial solution: http://www.scalemp.com/

There is also a discussion about alternatives here: Alternatives to scalemp


In Ubuntu 14.04 few inputs are showing in system settings. Also no audio is coming out of laptop

I don't how to fix the settings issue, but for the sound issue, open a terminal and type:

sudo alsa force-reload

If this still doesn't fix your problem, try

pulseaudio -k

If it still doesn't work, do

pulseaudio


Have you installed the Ubuntu restricted extras (plugins/codecs)?  Instructions to do so can be found on this posting, on point #2.  Just asking, because whenever I have issues like this, it's usually because something isn't installed quite right.

Also, I'm not sure if you're using Movie Player because you are partial to it, or because it's all you've got right now.  I've tried several movie players on Ubuntu, and IMHO the best is VLC.  See point #5 of the same posting for info on installing that.


Bluetooth paired, not connected, sending but not receiving files

Click the Ubuntu icon on the screen and search for Personal File Sharing and enable Receive bluetooth files in Download folder and you should be able to receive bluetooth files


How should I do to resize a partition taking free space from ntfs partition?

Make a backup. Messing around with partitions can cause data loss if something goes wrong, or make your system unable to boot.

You'll need to boot off a LiveCD/USB, because you can't work on mounted partitions. Note that you won't be able to view mountpoints easily.

Select the NTFS partition, and shrink it from the left. Then expand the extended partition (sda2) to take up the freed space.

Then use the resize/move command to move each of sda[6-10] to the very right of your extended partition, probably while keeping the same size (unless you want to resize them).

Lastly, expand sda5 (your / partition) into the freed-up space. Click apply, wait a while (this will take several hours), then reboot.


Wired Setting Missing and Ethernet Connection Not Working on Dual Boot Ubuntu 20.04 and Windows 10

I ended up fixing the problem by downloading the Realtek rtl8125 drivers from another computer and transferring to my pc via usb flash drive. After following the readme instructions in that file and running the download script the wired ethernet connection began working.


How to see the UID of all files or folders

Well, If you meant that you want to see the UIDs of the file then ls command can help.

You can use ls with n flag.

    ls -n

-n explanation from man page :

-n, --numeric-uid-gid
              like -l, but list numeric user and group IDs.


The command line alsa mixer can be found by installing package alsa-utils in the Ubuntu Software Center and running the command alsamixer in a terminal window.

Alsa-utils are in the hidden items of the Software Center. If you prefer a GUI version you can install GNOME ALSA Mixer.


Installation of ubuntu 12.04 from pen drive

Try re-installing the Grub bootloader again. To do that use your live USB and boot into Ubuntu 12.04 and install boot-repair with the following commands:

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

Use advanced options(at left bottom) in boot-repair(not the recommended).

Open advanced options in boot-repair .

advanced options=>'GRUB location' (Select "place grub into". Select "sda". Don't select sda1 or sda2 or anything like those numbered partitions. Just choose 'sda' only)

advanced options=>'GRUB options' (Select "Purge grub before reinstalling it")

advanced options=> Other options ( Unselect the "Repair Windows boot files" & "Check Internet connection" if they are selected.)


Try this one in pure bash

#!/bin/bash
while IFS= read -N1 char; do
    if [[ "$char" =~ [[:alnum:]] ]]; then
        word="$char$word"
    else
        echo -n "$word$char"
        word=""
    fi
done <input.file >output.file

Output :

ABCD. EFGH.IG
KLM,NOP.QR
STU. VWXYZ. 123

This code logic is quite simple. We read the file character by character (thanks to the -N1 flag. The IFS= is needed to be able to read newlines as well), then we add every valid character we encounter at the begining of the $word variable (thus reversing the word). When we encounter a non-alphanumeric character, we echo the value of $word and reset the value to empty. We repeat those steps until the end of the file


Intermittent Ubuntu family problem: Wifi itself connects, but cannot reach websites

Key points:

(1) Static addressing, not DHCP, seems to be a reliable way around these problems.
(2) NetPlan (new from Ubuntu 17.10) provides a one-stop shop where all aspects of the connectivity can be configured. The YAML configuration file under /etc/netplan needs to be sudo edited appropriately. Below is my example which seems reliable since setting up earlier today. Indentation must be correct (Python):

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  wifis:
    wlx8cae4cf82ee6:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.1.2/24, '2001:1::1/64']
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.26.56.26, 1.0.0.1]
      access-points:
        TALKTALKnnnXnn:
          password: your_password_goes_here

So the 'static address for this computer' part is 192.168.1.2/24. My understanding is that if you have multiple computers you could set them up as:

192.168.1.3/24
192.168.1.4/24

etc.

The wlx8cae4cf82ee6 is the Device name for the WiFi dongle. So to get the device name you should be specifying, on a Lubuntu connection this is the 'Device' field value on the WiFi tab.

Anyway, once the YAML changes are incorporated (sudo netplan apply), NetPlan should automatically create a connection named netplan-devicename-SSID. So in summary this can all be done by editing a single YAML file, whereas pre-NetPlan solutions would be split across more than one file, etc. It should also work the same regardless of whether you're on Mint, Ubuntu, Lubuntu, etc.


Internet / cyber cafe software for 16.04

I would suggest installing mkahawa on ubuntu 14.04. It works flawlessly. You will need many dependencies to get that done.


Can you access an NTFS Windows portion with read write capabilities on Ubuntu?

Yes. AFAIK all linuxes reads and writes just fine to NTFS partitions, as a matter of fact I formate most of my USB harddisks with Gparted as NTFS !
Why I hear you all ask?   Well you see our windows machines only support Fat  and NTFS - as do our settop boxes for the tellys, and I think thatv NTFS is better than FAT, at least it support large files- movies for viewing on the big screen or record them from the settopbox! This results in some mpeg2 files (transmission streams) somefiles.TS.


How about your repositories, listed in /etc/apt/sources.list ?

For example, in this line:

deb http://br.archive.ubuntu.com/ubuntu/ xenial main restricted

After the repository address, it's written Xenial(16.04) or Trusty(14.04)?


Dual Boot Ubuntu 14.04 LTS + Windows 10 w/ shared storage on one SSD?

You can install Windows 10 first by creating a 2 partitions C: (for the system) and D: for storage and leave a space unallocated for Ubuntu.

for example if you have 500Gb you can install Windows 10 on 200Gb partition and create a 150GB partition for Storage (NTFS) and leave 150Gb unallocated.

Once you've done installing Windows 10, start Ubuntu live CD and chose install alongside windows 10 (it will be installed on the unallocated space) after finishing the installation you will end up with Ubuntu and Windows 10 dual boot and a partition in between where you can put you stuff.
you can set this partition on Ubuntu to be mounted on startup using a tool on Ubuntu called 'Disks'

Hope this answers your question.


Logisim hangs in Ubuntu 18.04 with openjdk-11

The problem was with my window manager. I was using dwm which does not have modern window parenting system. According to the archwiki, you can tell the application that the window manager is able to draw the window just by adding the following line in your .xinitrc or other x-window starter.

export _JAVA_AWT_WM_NONREPARENTING=1


Install the following dependencies and try installing r studio again

https://packages.debian.org/jessie/amd64/libgstreamer0.10-0/download
https://packages.debian.org/jessie/amd64/libgstreamer-plugins-base0.10-0/download

Then install r-studio like before.
This works for me.


Install mini system, then you`ll be able to install full desktop. https://help.ubuntu.com/community/Installation/MinimalCD

  The minimal iso image will download packages from online archives at
  installation time instead of providing them on the install media
  itself. Downloading packages at install time reduces the size of the
  iso image to approximately ~40MB depending on architecture (see
  below), as well as providing only the packages needed for
  installation.

Mini requires internet connection. I don't remember exactly will mini provide text interface to install desktop or not, anyway you can always do it from command line, like:
sudo apt-get install gnome-desktop.

If you don't have internet connection with mini, its not your option to install, use full dvd.

  While the minimal iso image is handy, it isn't useful for installing
  on UEFI-based systems that you want to run in UEFI mode. The mini iso
  lacks the proper files for booting the computer in UEFI mode. Thus,
  the computer will boot in BIOS compatibility mode, and the
  installation will be in BIOS mode.

  You can use an Ubuntu Server amd64 iso file (64-bit) for 'mini
  installations' in UEFI mode.

Try server image.


Ubuntu with the GNOME desktop environment does not support quarter tiling (the kind of tiling that you want).

There are some GNOME Shell extensions that offer more advanced tiling options, but I am not sure if they can do exactly what you want. The most popular are:

ShellTile
gTile
WinTile

To install and try them, you have to first install Tweaks and chrome-gnome-shell by running:

sudo apt install gnome-tweaks chrome-gnome-shell

Then click the extensions' links above, flip the switch to ON and click Install in the popup dialog.

I have also found this Python script from this Stack Overflow question. I haven't tried it yet, but looks like it could work. I will update my answer when I try this.

You could also try another Ubuntu version, like Xubuntu, Kubuntu or Ubuntu-MATE, which all offer options to do what you want (Xubuntu has the shortcuts you need enabled by default; I am not sure about the other environments).


My problem with SB Audigy 4 [SB0610] is that it always starts with bad alsamixer settings @ first run after installing ubuntu.

I found out that i have to switch the "Audigy Analog/Digital Output Jack" with the "m" button on the keyb:

To reach this screen you have to type into the terminal:

$ alsamixer

Then scroll to the right, and you shall find something like on the picture. Maybe that helps.


Ubuntu desktop settings menu replaced with one from ubuntu touch?

We tried a few things but here is the solution that worked.
Run in terminal:

      sudo apt-get install gnome-control-center

This should work. For some reason, on kd0hdf's computer gnome control center was uninstalled.

--
Techdude


How can I search for multiple files at once? Linux GUI

I don't think you can use the gui for that.
You could use the command line for that:

find /path/to/dir -regex ".*\(90025\|90028\|90094\).*"

This will search for file names containing these numbers.


Where to translate menu from right click on desktop

In 21.04 the package gnome-shell-extension-desktop-icons-ng is introduced, which seems to take over those strings. So far we rely on the upstream translations:
https://l10n.gnome.org/module/desktop-icons/
and there is no Occitan PO file yet.
$ echo $(LANGUAGE=oc gettext -d ding 'Change Background…')
Change Background…
$ echo $(LANGUAGE=oc gettext -d ding 'Display Settings')
Display Settings

Ideally, and since we are late in the cycle, you should be able to translate the most important strings at Launchpad. But gnome-shell-extension-desktop-icons-ng has not been set up for LP translations. I suppose it should be, though.
I filed this bug report.


To start with, I would recommend using: daily-qa-ok ppa instead of just the daily builds. The latter has been run through QA rather than just whatever happens to be current trunk.

Most likely the "pserv.log" file will be more interesting than the "maas.log". (IIRC, the former is about the individual machine controllers, while the latter is about the system as a whole.)

Have you actually commissioned the machine? You mention that its status is 'ready' which I believe means it is waiting to be commissioned.


16.04 Can't login after sleep - Clearing orphaned inode

My solution:

Reinstall nvidia drivers.  Downloaded them from a different computer onto a USB flash drive.  Manually mounted the flash drive

sudo mkdir /media/usb
sudo mount /dev/sdb1 /media/usb

Then:

sudo ./NVIDIA_DRIVER_375.66

Follow the instructions, reboot - golden.

Good luck.


Power supply cable removed from socket while upgrading to 12

Were there important files on the pc?

if not => format, start over
if yes => boot from liveCD see if you can mount the filesystems and recover your files.


Can I have Gnome-shell and Unity together?

Short answer: YES but in Ubuntu 11.10 and up which will come in 1 or 2 days. It will come with unity and you can install via the Software Center the package gnome-shell (Which some wrongly call gnome3 or gnome3.2). After installing it just logout and you should see in the login both of them (unity and gnome-shell)


Is there a Windows (or other) Firewall on your Vista machine? Have you opened port 631 on that machine to the IP of the Linux machine? If not, try that. CUPS uses port 631 by default for communication so you should also verify that your Firewall on the Linux machine also allows for port 631 communication. If it does not from the machine listed, that too, could cause the non-discoverable printer issue.

Hope that helps put you on the right path. It is truly easy once discovered.


Software Updater is not working properly

Firstly, update the following:

sudo apt autoremove && sudo apt autoclean -y

then open nano by sudo nano /etc/apt/sources.list and check for any mismatches of default ubuntu update repo's:

Note -

16.04 - Xenial

18.04 - Bionic

deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse

If its easier then, delete the lines by pressing 'CTRL + K' in nano.
and copy-paste them with the ones provided above to you.

Press 'CTRL + X', to exit. Prompts to save - Press 'Y' to save.

Type cat /etc/apt/sources.list to double-check if they are correct.

Then do a sudo apt update && sudo apt upgrade -y
Hopefully should have fixed your issues after this.


What is the correct way to format this grep?

You need to escape the pipes (|).

$ grep "^D.*\(A1\|A2\|A3\)$" <(printf 'D%s\n' A1 A2 A3)
DA1
DA2
DA3

Or use option -E for extended regex, then you don't need to escape anything.

$ grep -E "^D.*(A1|A2|A3)$" <(printf 'D%s\n' A1 A2 A3)
DA1
DA2
DA3


Can't install Ubuntu 18.10 on XPS 15 - EFI\BOOT\mmx64.efi not found

I booted an Ubuntu Live USB stick, went into my hard disk drive's  /boot/efi folder and renamed the file grubx64.efi to mmx64.efi

Reboot the machine and it should work.


How to build vim with gui option from sources?

To build Vim you will need first to install all the dependencies. This could be done using

$ sudo apt-get build-dep vim-gtk # or vim-gnome, if you prefer.

This will download and install a lot of packages that should only be needed to compile Vim. If you don't want to keep them, before running that command add this to /etc/apt/apt.conf

APT {
  Get {
     Build-Dep-Automatic "true";
  };
};

This will make all the packages installed with build-dep be "marked to be autoremoved". So after you finished compiling Vim you can uninstall them using sudo apt-get autoremove.

After this, just proceed with the usual steps:

$ ./configure --with-gui=gtk2 # or gnome
$ make -j 4
$ sudo make install


Ubuntu no longer uses xmodmap, but instead uses xkb (as far as I understand, this facilitates per-window keyboard layouts, among other things).

The system-wide map files are in

/usr/share/X11/xkb/symbols/

The maps appears to be loaded hierarchically, with the pc map as the root, and whatever language (e.g. en) as a child of the root.

In my particular case, I physically swapped Page Up with Home and Page Down with End on my keyboard, so I very crudely made changes to the system-wide pc map, as follows:

 key <HOME> {    [  Prior        ]   };
 key <PGUP> {    [  Home         ]   };
 key  <END> {    [  Next         ]   };
 key <PGDN> {    [  End          ]   };

NOTE: To force Xorg to use your new keyboard map, you may have to remove the existing pre-compiled maps (*.xkm) in

/var/lib/xkb/

and then restart Xorg.

There are various resources on xkb, but this one is related to Ubuntu.


Automatically select last user on login screen ubuntu 18.10

One way to solve this would be to install a different login manager.

For example, SDDM - the login manager for KDE does what you want it to do: it will automatically select the previous user and will focus the password entry so you can just type your password and ENTER to log in - with no additional clicking needed.


Need to install ubuntu on UEFI windows 8 pc

Because you have 4GB RAM in your Acer E1 laptop, and fast RAM (1600.0 MHz) at that, you will get better performance if you install the 64-bit Ubuntu instead of the 32-bit Ubuntu. Almost all of the apps that you can find are available for the 64-bit architecture, so there is no reason to select the 32-bit version of Ubuntu for the sake of application compatibility.

The canonical question for installing Ubuntu on a Windows 8 PC is: Installing Ubuntu on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported).


Install grub2 in Windows specific partition

Found solution. You can use \.\C: to specify C:\ Drive so to install grub use "grub-install \.\C: --force" without quotes. --force is needed to overwrite a warning for not using first partition.