Ubuntu stores the information in

/usr/share/gnome-session/sessions/"YOURSESSION"

The property DefaultProvider-windowmanager is where you set your default window manager.

Like this DefaultProvider-windowmanager=metacity


Wakeonlan only works 5 seconds after shutdown

Ok, this might seem stupid but I used to be able to unicast the magic packet, at least that's how I remember it.
It was necessary to direct it to the broadcast (.255) address.
Doesn't work: wol -i 192.168.0.123 a8:a1:59:2c:4f:4e'
Works: wol -i 192.168.0.255 a8:a1:59:2c:4f:4e


How can the username be removed from the lock screen?

In short, you can't do that; but you can workaround it depending on your needs.

gnome-screen-saver displays your user name; that is, your full name, not your account name.

You can change your user name, but you have to think about the ramifications. If your main concern is not having your name visible in public, set your user name to your first name only, a fake first name, or just to me. But remember that this user name will be used in the drop-down list from the power button and wherever else a program retrieves the user name.

On a single user laptop, this is probably not going to cause any trouble. But on a shared computer, you need to know who is logged in when you look at the screen, so you would at least need something liker User 1, User 2.

User Accounts will accept and display an invalid string but I imagine it sets your user name to null in /etc/passwd since the drop-down list of users shows a blank line. This breaks the user list and you will not be able to lock, log out, or restart from the GUI. (Think about it, the system is trying to authenticate these actions for...who?, plus I experimented a little.)

On top of that, the lock screen will default to your account name, which is really defeating what I imagine is your purpose. So no null string, a string of spaces, a string not starting with a-z, a string more than 31 chars, or a string less than 2 chars. (This last seems to be a Gnome/Ubuntu add-on to the Linux requirement of at least 1 char.)


You have to logout first, then you can get to gnome-fallback by choosing the Gnome Classic session in the lightdm menu.


From man top:

   2c. CPU States
       The CPU states are shown in the  Summary  Area.  They  are  always
       shown  as  a  percentage  and are for the time between now and the
       last refresh.

        us  --  User CPU time
          The time the CPU has spent running users'  processes  that  are
          not niced.

        sy  --  System CPU time
          The  time  the  CPU  has  spent running the kernel and its pro‐
          cesses.

        ni  --  Nice CPU time
          The time the CPU has spent running users'  proccess  that  have
          been niced.

        wa  --  iowait
          Amount of time the CPU has been waiting for I/O to complete.

        hi  --  Hardware IRQ
          The  amount  of time the CPU has been servicing hardware inter‐
          rupts.

        si  --  Software Interrupts
          The amount of time the CPU has been servicing  software  inter‐
          rupts.

        st  --  Steal Time
          The  amount  of  CPU  'stolen' from this virtual machine by the
          hypervisor for other tasks (such  as  running  another  virtual
          machine).


You probably installed a newer version of git manually, because your version of git is too recent for the gitk package that's in the repository.

You can either downgrade git, or manually install a newer version of gitk.


How to autostart or remotestart something and stop it another way in 12.04?

You should start the command from an instance of byobu.  With byobu, you can leave or join the session from the local or remote system to start or stop the process.  Also, if you connect via SSH and use byobu to run the command, the command will not be terminated when you disconnect since the byobu session will remain active on the local system.

For more on how to use byobu, check out the community docs here:

https://help.ubuntu.com/community/Byobu


Ubuntu webapps - Caching/preload/offline ability?

Web apps on Ubuntu Touch support the offline app cache standard (https://html.spec.whatwg.org/multipage/browsers.html#offline), however this needs to be handled by the application author (in your example Twitter, who haven't implemented this yet). As far as I'm aware there isn't currently any other facility for implementing caching without the co-operation of the webapp owner.


Plug in the bootable Ubuntu live USB or insert the live CD.
Go to System Settings → Softwares and Updates
Go to Additional drivers tab. A list of drivers will be loaded.
Select your wireless driver, apply changes and you are done!


If you want to install a .deb file you can use:

dpkg -i file.deb

But dpkg won't solve dependencies so, I would suggest you install from gdebi:

gdebi file.deb


You should check if you can boot your PC with a Live-CD. If not, the Hardware is seriously broken.
If you can, you can access your files, backup them and reinstall the system.
However I doubt that a new install would work for long, as an Ubuntu installation hardly just breaks without faulty Hardware or the user manipulating the system in a wrong way.


Ubuntu Software Center won't download any program! What can I do?

Let's say you want to install SubDownloader an app to download/upload movie subtitles.
Open up your software center and open the subdownloader page. You can search for it then click more details. Check image below:

Don't click the install button but scroll down till you see the version name and number. It's usually between 'People also installed' and 'reviews' sections. Copy the name of the app without the version number - in this case, copy just subdownloader.

Go to your terminal and type sudo apt-get install subdownloader Though now you'll replace the word 'subdownloader' with the one you copied earlier and press enter.

In case of any error messages, paste them and provide us the link.


Verification failed: (15) Access denied error

You will need to disable secure boot. This is how I did for my windows 10, hp laptop
https://support.hp.com/nz-en/document/c04784866

It worked for me. After disabling secure boot. Restart your computer and keep on pressing ESC (or ant other key according to your laptop) until you get boot options then press F9 and it will allow you to choose boot to windows or linux


Could not log in the ubuntu 16.04 after installing the nvidia geforce drive

I had the same problem here is what I did:
Enter the terminal command line by
Ctrl-Alt-F1. Purged all nvidia drivers

sudo apt-get purge nvidia*
sudo apt-get autoclean
sudo apt-get autoremove

Then I renamed the .Xauthority in/home/username/

mv .Xauthority .Xauthority.bak

Then reboot and it worked fine. Hope that works for you too


You shouldn't create contents of /var/www as root user (that's what you did with gksudo nautilus). Instead, you should add your user to www-data group and put the contents to /var/www as a user.

This way, both you and the web server will have access to the data, and you will be able to manage the contents of /var/www without having to modify permissions manually.


After installing/removing Xen, can't use KVM

Not sure what what was wrong, but this finally fixed it.

  sudo aptitude purge virtinst  virt-viewer python-libvirt  libvirt0
  libvirt-bin

Then I went around /etc /usr/share /var/lib /var/log and cleaned up anything related to qemu, kvm, etc.

after that, I just reinstalled:

  sudo apt-get install qemu-kvm libvirt-bin virtinst bridge-utils

And I was good to go.


Failed to bootstrap model, cannot start Juju bootstrap instance

We have covered quite a lot over the chat but i think the crucial piece of info thats missing in instruction is/was to add hardware or VM resources to MAAS. Error comes up when JUJU request resources from MAAS and MAAS is not able to provide it as it doesn't have any hardware associated. There are couple of options that you can use here. 1 create VMs via virsh or uvt-tool or add your physical hardware as nodes.


Is Flash player software installed on Ubuntu by default?

It depends on which version you installed. If you installed 16.04, and chose to install certain 3rd party software, flashplugin-installer was probably installed to start with.

From Ubuntu 17.10 Flash will not be installed by default, but you need to install it explicitly. The reason is that Flash as such will be EOL before the end of the 18.04 LTS.


Ubuntu 12.04 - Installing nvidia-current driver fails

Try with installing the driver nvidia-common:

sudo apt-get install nvidia-common

then reboot.


Why does dconf-editor think that my schema does not exist?

dconf-editor doesn't actually do any proper introspection of the database, instead it maps between known paths and id's and uses that to figure out how to describe a key. This list is hardcoded into the program and requires a recompile to update.

The result is that, unless your schema is in that list, dconf-editor will not know about it; if you want your user to get nice feedback from dconf-editor, you need to modify their version of the program, compile it and then install it.


Ethernet and wireless networking disabled Ubuntu 14.04.1 LTS server

Try these and use manual pages to know about the commands using man command.

sudo nmcli nm enable true

or

sudo service network-manager restart

or

sudo ip link set eth0 up

and

sudo ip link set wlan0 up


In trying this, I found typing bar would replace but barf would not. The f is a different type of character from {.

If you add { to non-keyword characters by :set iskeyword+={ it works. This may have other consequences as described by :help iskeyword.

Another way might be to write a function as described in :help abbreviations.


You should be able to install your printer in Ubuntu without needing to look for drivers (search for Canon in the Software Centre). It will show up in Samba once you have it installed.


Your problem is the alt key. Any combination using it will trigger the HUD. You can use the package compizconfig-settings-manager.

Step 1 : Install compizconfig-settings-manager by running the following command in a terminal:

sudo apt-get install compizconfig-settings-manager

Step 2 : After installing it, open it and go to "Ubuntu Unity Plugin". Click on the button for the option Key to show the HUD.

Step 3 : Click on Grab key combination and press any new key combination and press enter. After that, alt should no longer trigger the HUD.

Also, I believe this has been already explained more clearly :

How do I modify or disable the HUD's use of the Alt key?


How to associate magnet links to qBittorrent?

To start qbittorrent, just search for it in Dash, or just type qbittorrent in terminal.

To associate magnet links to qBittorrent in Firefox: Edit --> Preferences --> Applications tab Then type magnet in the search box. Select qbitorrent as your default application; other wise search for it.


What partitions are required for Ubuntu?

I usually create a primary partition with the Ubuntu installation. Mount point is / .  I don't like to skimp on the size of the disk so at a minimum I would give it 40G in space, and more if you want to do a lot of stuff on it. . .  Also a swap partition of size of 1G would do, but it wouldn't hurt to give it more (try 4G). . .

It sounds to me that your Grub bootloader did not get initialized and loaded properly. . .  You can do this from a live disk.  Take a look at this answer in how to do it Here


Mame, KxMame, GMameUI not working after upgrade

You can try this solution .

The site is in Spanish but I've translated it:

Uninstall package xmame-sld with Synaptic .
Install two packages from this page:

Install:
xmame-sdl_0.106-2.1_i386.deb   21-Jun-2.008 21:02 9.4M
Then upgrade with this one:
xmame-sdl_0.106-3.2_i386.deb 06-Dec-2009 11:55 9.4M


Audio not working Macbook Air 3,2 Nvidia MCP89

I found the solution here:

http://ubuntuforums.org/showthread.php?t=1744775&page=2

I've just uninstalled the package snd-hda-dkms, rebooted and the audio worked again.


Shall i need to change installation type of Ubuntu?

"Something else" allows you to decide on the partitioning of your disk by yourself. It can be a bit daunting if you do not have experience with partitions and do not know about mount points.

Either way, for an inexperienced user that also uses Windows, the easiest way will be to boot into Windows, and use the Windows disk partitioning tools there to remove the current partitions of the previous install. This frees that part of the drive. Benefit of doing it from Windows: you will not be allowed to delete the windows system partition by mistake.

Subsequently, you can run the Ubuntu installer in one of the "easy", automated ways. In your case, selecting to install alongside of Windows. Then, the installer will automatically use the free space and partition and format it for the new installation.

Someone who is more experienced can select "Something Else", and then decide on the partitioning and mount points for the new installation. There is no need for this if all you wish is to have an Ubuntu install along with an existing Windows install.


You want

find . -type f -exec rename -n 's/test/test2/' {} +

The -exec ... + form will put as many arguments as can fit, so it will invoke rename as few times as possible.

Your mistake was using find ... -exec and also putting ** on rename's argument list.


Google Earth Closing Suddenly in Ubuntu 13.04

I had similar issues, ie Google Earth started normally and after a few seconds crashing.
I ran:

sudo dpkg-reconfigure google-earth

and this helped me to solve it.

It will reset the installation and probably allow a previously working installation to restart normally.


I think this is an error of operating system,it show 2 connection but it currently using only one off 2 connection. however, you can turn off one of this.


How to restore a svn reverted file in Ubuntu

No, absolutely NO.

If you say to Subversion it should revert a file, all changes are gone by the wind.

Only your memory can get them back.

Exception: New files you had added, will only lose their status "added", but the file will remain in this directory, only status is unknown("?")

Source


You need to boot from live CD or USB. Press and hold any key while your computer is booting.

Press 'F6', a language menu will pop up, select English and press enter.  You will then be presented with the option menu.

The options will be

Try Ubuntu without installing
Install Ubuntu
Check Disk for Defects
Test memory
Boot form First Hard disk

If you select Test Memory you will be presented with another menu that will allow you to select which test(s) you want to run.

F.Y.I. Check Disk for defects will check the installation media for defects(not the hard drive)


How to go back to previous line of a script in terminal?

After you pressed Enter and got an error message, you can just go back in history:

Just press the ↑ key in your keyboard to fix the typo. If you press ↑ key the terminal will show you this line:

for i in {1..100..4}; do echo "august"; touch august $i+$2; mkdir;

Correct the mistyped stuff around touch august $i+$2 and add a  done at the end of the command.

Then hit the Enter key. This should solve your problem.


How can one invoke lg (Looking Glass) from a command line?

You can use the following command to launch looking glass from a terminal or keyboard shortcut:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.lookingGlass.toggle();'

When you get in DE, you can't use keyboard shortcut to run "looking glass", you have to use ALT+F2 to run it at first time.


Script using sed adds an "e" to the output files

You need separate -i and -e arguments to sed. -ie is telling sed to create a backup file with an 'e' appended.

To fix, just replace the sed invocation above to:

sudo sed -i -e "s/NEWUSERNAME/$username/" /etc/apache2/sites-available/$newdomain


How do I assign a network IP & enable ssh during installation?

you may want the mini iso, it is useless without Internet Access as you need it to install anything
https://help.ubuntu.com/community/Installation/MinimalCD - advanced users only
or the alternate cd
http://releases.ubuntu.com/precise/ubuntu-12.04.2-alternate-amd64.iso.torrent
http://releases.ubuntu.com/precise/ubuntu-12.04.2-alternate-i386.iso.torrent
If you need to use 10.04 (EOL btw) you can disable uefi and use bios from your bois/uefi or what ever you call it now days
also be sure any secure boot feature is off


Why am I having so many problems with WordPress when I followed the guide exactly as outlined?

As I read through your question, I think your problem is with file permissions and some weird way of setting up your VPS.

Your VPS is running fine right? If not, then read this article for setting up your VPS. The video makes more sense than reading it cause it generalize things with certain scenario. This article might help as well when it come to Installing WordPress

Can you show your error.log content? That can give the precise error.

Now to solve your Problem.

Always keep in mind NEVER to give a chmod 777 permission to you files.

That's gonna be a fatal lesson of security for you.

Wordpress needs a proper read - write permission to work. To make sure everythings fine, try this:

Go to you public_html folder and run the commands

chown www-data:www-data  -R *
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

After that, you might wanna tighten your security, read this

If you want to make changes, just do what you did above, then tighten your security once more.

Hope this helps!

-Dave


Extreme difference in navigation speed between Win7 and Ubuntu 13.10

If you have administrative priveleges over the router, I suggest you change the WPA2 encryption method to AES. It is more secure. Also, if the router uses WPA and WPA2 mixed mode, change it to WPA2 only.

Second, if the connection is made as expected, but seems to drop for no apparent reason, there are a few things we can try:

sudo modprobe -r rtl8188ee
sudo modprobe rtl8188ee swenc=1

Also, find your country code here:

iw reg get

If it shows as 00, that's a one-size-fits-all...maybe code. Let's try setting your code explicitly. Find it here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Set it with:

sudo iw reg set IS

Of course, substitute your actual country code, if not Iceland.

Finally, tell your system you wish to always use your preferred network rather than roaming to another: Ubuntu connect drops. Worked for a while then started dropping again

In order to make some or all of these permanent, we'll need to amend a few files. First, tell us if the problem is resolved.

If none of these steps help, I suggest you compile a later version of the driver. Please obtain a temporary wired ethernet connection. Please download this file to your desktop: https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.13.2/backports-3.13.2-1.tar.gz  Right-click it and select 'Extract Here.' Now open a terminal and do:

sudo apt-get install linux-headers-generic build-essential
cd ~/Desktop/backports-3.13.2-1
make defconfig-rtlwifi
make
sudo make install

You will get a warning about signing that you may safely ignore. Detach the ethernet, reboot and let us hear your report.


Can Ubuntu act as a Domain Controller for multiple OSes?

Depends on what version of Ubuntu you need to use.

The Samba version is what really matters.

To become a member of Active Directory, you would join the server as described in the documentation for Samba. Then Google how to either become a member server, or clone its data from the ADS, and then reconfigure the smb.conf to be standalone.

To do it without Windows Active Directory (or just domains for NT4 servers)
create the server with a wizard if your not sure, or edit a sample smb.conf in the help/documentation to your requirements (also known as standalone server mode).

It uses LDAP or NIS for its services. (depending which way you choose to setup)

Zentyal has server software (and was based on Ubuntu, previously known as EBOX)
could be worth looking into.

Maybe if you are stuck for which way, always consult Google first, then the Ubuntu community. This way I can assure you you would save yourself some time, plus you are more likely to be helped more quickly if you did some research first.

Anyway for client computers and servers (depending on what OSs you're planning to use, here's a list "based on my personal experience only"). It comes with no warranty, guarantees, it could be fit for reference of my experience, but not for purpose as things change fast in Linux/Ubuntu/Samba.

With that said, here is that list I mentioned.

NT based Windows versions

• Windows XP Professional / Media Center editions
⠀• (works both ways for joining networks, home editions doesn't do server connectivity)

• Windows 7/Vista
⠀• (could work both ways, but needs registry changes to use the standalone properly, but can make the OS slightly less secure.)

• Windows Server 2008 & 2008 R2
⠀• (join its domain, clone the ADS @where possible@ and then unjoin by reconfiguring it to be standalone, using smb.conf @cannot be used as bdc to samba@
(well, unless there's been changes since I last checked, but to my knowledge,then no, it cannot.)

• Windows Server 2003
⠀• (can do same as Windows Server 2008, but has the ability to join either methods, as it's from same code base as XP)

• Windows 2000 Servers
⠀• (the standalone is almost the equivalent of a 2000 Active Directory)

• Windows 2000 Pro
⠀• (can join both but I think it would need for newer ADS versions to be in compatible mode @sometimes explained as not secure@ )

• Windows NT 4.5 Back Office (the upgrade discs, technically not an outright standalone OS)
⠀• (it doesn't have active directory, but used a service before ADS was born called "Back Office", use this reference as the same as NT 4 server)

• Windows NT 4
⠀• (standalone method only, nt4 doesn't have ADS as far as i know)

• Windows nt 4 Server
⠀• (same as above, but u can join the Ubuntu to a nt4 domain, and set Ubuntu to be the PDC, and the NT4 as BDC if you wanted)

• Windows NT 3.x (server)
⠀• (standalone only, I don't know if it can be the PDC to Ubuntu, I think it's BDC to Ubuntu only due to its age)

• previous versions of Windows NT
⠀• (I doubt you use them, and would think it's irrelevant)

Non-NT based Windows versions

• Windows Milennium Edition
⠀• (no direct domain connections, but can use logons for profiles and remote shares, but is unsecured as the logons are in the registry as plain text, as far as I know.

• Windows 98 & 98 SE
⠀• (same as Milennium Edition)

• Windows 95
⠀• (same as Milennium Edition)

• Windows 3.1.1 for Workgroups
⠀• (technically not an OS, but can link for shares only, if used with network adaptor add-ons such as Novell Netware, which would require software equivalents for Ubuntu, or Suse software)

• Windows 3.1
⠀• (same as Windows 3.1.1)

Previous non-NT-based OSs than 3.1 - (highly irrelevant to you I would assume)


Not authorized to perform operation (polkit authority not available and caller is not uid 0) (udisks-error-quark,3)

I had a similar problem with Dell laptop and a Sandisk USB drive.
Taking these steps solved my problem:

Format the USB drive to FAT32 filesystem
EJect the USB drive
Restart the computer
And now plugin the USB. it works fine.


Ensure you have installed the restricted extra's package from the software centre, you may also find the following worth a read.

https://help.ubuntu.com/community/RestrictedFormats


Mongo - non yaml config format to specify mmapv1 engine?

The old style config file format is still supported as of MongoDB 3.6.3 for backward compatibility purposes.

However, support for this configuration style may not be around forever, and may be removed in the future. This old config file format dated from MongoDB 2.4, so the description of the format will be outdated and some options doesn't apply anymore for newer MongoDB versions.

Thus, it's recommended to use the new YAML style format, and convert your old style config to YAML. See Configuration File Options for details on the YAML style config.


There are quite full instructions in the "install" section of this page: http://sirius.clarity-lab.org/sirius/ It's quite an involved process, and too long to outline in full here. But they have simplified the installation somewhat with a series of bash scripts that automate much of it.


I cannot play videos in facebook using linux 20.04

For video playback in the browser you only need to install the package ubuntu-restricted-extras. To do so open a terminal and type:

sudo apt install ubuntu-restricted-extras

Should that still fail with the error message you posted above, reboot and try again. Should the error persist, a previous update might have been interrupted and left the lock file in place, as Pilot6 commented above. To fix that:

In a fresh terminal type sudo rm  /var/lib/dpkg/lock-frontend
Then make sure, all packages are installed correctly with sudo apt-get -f install
Make sure the codecs are installed correctly with sudo apt install ubuntu-restricted-extras. When you are prompted to accept the EULA for the Microsoft fonts package, use Tab and Enter to agree.

After restarting your browser, video playback should work.


ez_setup error while installing gdrivefs

Try this:

sudo pip install ez_setup
sudo pip install gdrivefs


Music player that can access/catalog music on network drive

I would suggest you use a streaming server application.

There is  ampache (amarok, andriod client, ..), which is a PHP + Mysql webstreaming application.
http://ampache.org/wiki/clients:amarok

and there is the Firefly Mediaserver http://www.fireflymediaserver.org/
Firefly has also the support to stream to iTunes and lots of other applications including Rhythmbox.

I would suggest the Firefly because it is a little bit easier to setup.


What is the difference between booting into Ubuntu normally and in recovery mode?

Recovery is for every kernel. If you have 5 kernels, you'll have 5 recoveries and they'll be named after the names of the kernels in grub. You have other options than booting the normal system when booting into recovery (for example freeing space or updating software or opening a root shell). If you boot the normal system from recovery, that's not a full graphical boot which means that not all graphic drivers can be loaded this way. That's why you might get worse graphics performance. Also, boot flags are set differently.

What does nomodeset mean specifically? I'll just copy this one from here:

  The newest kernels have moved the video mode setting into the kernel.
  So all the programming of the hardware specific clock rates and
  registers on the video card happen in the kernel rather than in the X
  driver when the X server starts.. This makes it possible to have high
  resolution nice looking splash (boot) screens and flicker free
  transitions from boot splash to login screen. Unfortunately, on some
  cards this doesnt work properly and you end up with a black screen.
  Adding the nomodeset parameter instructs the kernel to not load video
  drivers and use BIOS modes instead until X is loaded.


Sony Vaio VPC-EH1S0E bluetooth and num lock

There are two AskUbuntu Questions with good answers which should look at to resolve your query:

How do you start-up in the login screen with Num Lock on?
Can I default Bluetooth to off on my laptop Lenovo T61


You are not out of space. You still have 33G free space but zero free inodes. You have used all available inodes on your root partition / as shown in the output of df -i.
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
/dev/vda2      2595840 2595840      0  100% /

With zero free inodes, no new files can be created and some system or applications functionality will be limited.

An inode (index node) is a data structure found in many Unix/Linux file
systems. Each inode stores all the information about a file system
object (file, device node, socket, pipe, etc.), except data content
and file name.

To fix it:
Find which directories use the most inodes by running this command:
sudo du --inodes /

Then delete some files that you do not need or move them to a USB drive.
This will free some inodes and make it possible to utilize the available free space.

Notice:
To output only directories with a certain minimum number of inodes, use the command like so:
sudo du --inodes / | grep -P "^\d{4,}"

This will only output directories with four digits number of inodes and more so 1000 and more will be printed.
You can change 4to for example 5 to print only directories with 10000 inodes and more and so on.


You should install GRUB onto the same device where the windows bootloader lies, so that you can change between systems. GRUB (especially recent versions) know well to handle Windows 10. Which version of Ubuntu are you installing? Is it an MBR (old style) or UEFI installation?


How to write a C++ backend for Ubuntu Touch that can access internet?

Yes, it's possible to access the Internet on the C++ side by using something standard like sockets or libcurl that is installed by default.

Oh, I've forgotten the obvious one: the Qt library has networking classes.

Look at network examples that come with Qt: http://doc.qt.io/qt-5/examples-network.html

"HTTP Example" is about downloading a file using QNetworkRequest.

CMake and Qt5

The most recent CMake syntax for enabling Qt5 modules is:

find_package(Qt5Network REQUIRED)

...

target_link_libraries(my-binary Qt5::Network)

The name of the binary is the name of the file into which your cpp files will be compiled: an executable (in the case of a C++ project) or a library (in the case of QML project with C++ plugin).

The binaries are defined in CMake with command add_executable or add_library. So search for that and link Qt5::Network after the binary is defined.


Errors with GPT and installing Ubuntu alongside Windows7

The problem has nothing to do with your Advanced Format hard disk. The problem is identified by the following line in your Boot Repair log:

GUID Partition Table detected, but does not seem to be used.

This indicates that the disk used to be a GPT disk, and was incompletely converted to MBR format, presumably by the Windows installer. The easiest immediate solution to this problem is to finish the job. My FixParts program is the easiest way to do this. Run it on the disk and it will complain about the leftover GPT data. Tell it to go ahead with deleting the data and then quit from the program.

Note that your Windows is installed in BIOS mode, so you should be sure to install Ubuntu in the same way. Your installation program might launch in either BIOS mode or in EFI mode. I'm not sure how it will respond if you accidentally boot it in EFI mode. To avoid any possibility of problems, I recommend dropping to a text-mode shell and looking for a directory called /sys/firmware/efi. If it's present, you've booted in EFI mode, which means you should reboot and select a different boot option to get the computer to boot in BIOS mode instead.


urxvt will use a default font if it cannot find the xft font name you specify. For example, the following will look like your screenshot:

urxvt -fn 'xft:foo'

To find out which xft fonts you have available, run:

fc-list

Here is how I run urxvt with the beautiful Ubuntu Monospace font:

urxvt -fn "xft:Ubuntu Mono:pixelsize=14,style=regular"


ubuntu 12.10 not recognising external hardrive

The problem seems to be the absence of a valid partition table. Use Gparted to create a partition table on sdb and format it to ext4 (or ntfs when you want it to be compatible with windows). You can make multiple partitions if you like. Gparted can be installed by typing sudo apt-get install gparted.

Instructions for using Gparted:

http://www.dedoimedo.com/computers/gparted.html

http://www.howtoforge.com/partitioning_with_gparted


Is hibernation supported with the Intellibook on 12.04?

If sudo pm-hibernate doesn't completely work (hibernate and resume), hibernation isn't compatible with your current hardware.

You can try the alternative TuxOnIce hibernation method which has somewhat better compatibility, but no guarantees.

Please see section B of this answer for how to try TuxOnIce hibernation.


Problems after upgrading to 14.04 (only background and pointer after login)

This bug depends on several factors, including Video card and custom config files. For example, some users have solved the issue by doing one or several of the following "solutions" (Not all work for everyone, some users even need a combination depending on how the session was configured and hardware used):

Fix 1 - Compiz Problems (OpenGL module not loading, Unity plugin not loading)

sudo rm -fr ~/.cache/compizconfig-1
sudo rm -fr ~/.compiz

Fix 2 - Session not loading (Guest session loads fine)

sudo rm -fr ~/.Xauthority
sudo rm -fr ~/.config/autostart

Fix 3 - Session not loading (Guest not loading)

sudo apt-get install --reinstall ubuntu-desktop unity compizconfig-settings-manager upstart

Fix 4 - Launcher / Top Panel not loading (Nvidia cards)

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

Fix 5 - Clearing Unity

dconf reset -f /org/compiz/
setsid unity

Fix 6 - Clearing the Cache

sudo rm -fr .cache/*

WARNING - This will clear the cache for all apps inside of the .cache folder.

For most of these cases, if the session opens and you still can not see the top panel or the launcher, try opening a terminal CTRL+ALT+T and typing ccsm (Assuming you already installed the compizconfig-settings-manager package) then enable the OpenGL plugin and the Unity Plugin. If the driver is working well, this should enable both panels in a couple of seconds. There are even some cases where the Unity plugin in the compiz config settings manager is simply not enabled.


In addition to the drawback of lxhotkeys not displaying properly on some screens, it is relatively limited in what it provides.

If you want to get in deeper, getting familiar with ~/.config/openbox/lubuntu-rc.xml is worth the effort.

There's an old but nevertheless excellent article on the subject: Openbox - Edit rc.xml to Gain Control. It covers the structure of the xml code and provides information on the various subsections present in the file.

Resistance
Focus
Placement
Theme
Desktops
Resize
Margins
Dock
Keyboard
Mouse
Menu
Applications

Once you understand it and the related menu.xml, you can do most anything without needing a GUI.

And there's also the official Openbox Wiki.


How to add fonts on Libre Office Writer?

Fonts that you download from the internet (ttf and otf files) can be installed and used in LibreOffice Writer and other programs by placing them in the /home/<your username>/.local/share/fonts directory. If it does not exist you will need to create it. Though there's no need to muck around in a terminal or copy files around. If you double click on a font file in the file manager, Font Viewer will automatically open. You can then install the font with the press of a button:

There are also a good number of fonts available directly in the Ubuntu repositories. These can be installed just like any other package. You might also be interested in TypeCatcher which lets you view and install Google Webfonts for local use.


How to prevent an application from showing up in the Unity panel?

Turns out you can create a ".desktop"-file with an empty name string or just a space " " for an application and the text won't be visible anymore.


Is it possible to install ubuntu via ubuntu's source code

Sure it's possible. However, it can be quite tedious.
The source code of Ubuntu packages are freely available hosted online (mostly at http://launchpad.net), and as apt-able Debian source packages (not to be confused with more common pre-compiled binary packages)
The basic workflow is that you download a source package, build it into a binary package (including compiling), then install the binary package.
There's a lot of skill baked into that workflow, like diagnosing compile errors and understanding how both kinds of packaging work.
Since you seem to be asking specifically about the initial install of a system, it's mostly the same...but requires chrooting from an already-running system in order to compile and install your kernel and initial package set.
If you are seeking a step-by-step how-do-I-do-this tutorial, that would be much too long to fit AskUbuntu's format. Start with the skills required to install using a chroot and how to download and compile source packages. After the few months it takes you to learn those skills competently, you will know what you need to know.


Is the Ubuntu 20.04 swap partition encrypted?

In your setup, yes, it is encrypted.
You can tell by this part of your lsblk output:
sda                     8:0    0 465,8G  0 disk
└─sda6                  8:6    0 464,6G  0 part
  └─sda6_crypt        253:0    0 464,5G  0 crypt
    └─vgubuntu-swap_1 253:2    0   980M  0 lvm   [SWAP]

So your swap space is an LVM logical volume in an encrypted LVM volume group.
As for "is it safe?" I would say clearly yes; but like everything that has to do with encryption, with enough computing power and resources, everything can be cracked. But we are talking NSA-level resources here, not anything that your neighbourhood script kiddie has at his disposal.


DVD Drives Slow Down after Machine Runs for Several Hours

If no one know the solution I think that maybe doing the following ones when the dvd drive is fast and ones when the dvd drive is slow maybe helps you:
sudo hdparm -i /dev/sr0

It could also not help you. We will see. :)


Why is the latest version of Miro not in the repositories?

That's just the way that the Ubuntu Packages work, for most applications they don't have the latest versions. Using PPA's are probably the best way to circumvent this...


Screen flickering with Webstorm autocomplete popup

Try these steps

sudo gedit /usr/share/X11/xorg.conf.d/20-intel-tearfree.conf

Paste

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "TearFree"     "true"
EndSection

Save, and reboot.

This fixed the screen flickering issue on a Sandy Bridge i5. It might help you too.

If you want, you can revert the changes whenever you want by typing

sudo rm /usr/share/X11/xorg.conf.d/20-intel-tearfree.conf


(Dual Monitor and 12.04) Snapping window to full screen puts the window on other monitor

Solution

I figured it out. Like Pauk said, it has to do with different resolutions.

It only occurs when trying to move a full-size window from large monitor to small monitor.

To solve the problem:

Resize the window in the large monitor so it is smaller than what would be full-screen on the smaller monitor (i.e. the window will fit in the smaller monitor without touching any edges).

Next, drag it to the top of the smaller monitor and release to make it full screen (or drag it to the smaller monitor and "maximize" it).

Like Miceterminator said, you can also drag to the side.....just do something to the window is SMALLER than full-screen of the smaller monitor.

Discussion

So the problem is we are trying to fit a large window (1920x1080 for me) onto a smaller (1600x900 for me) "canvas" so to speak. That explains why it pops back over to the larger monitor. Simply making it small enough to fit on your "smaller canvas," then maximizing it to fill completely, seems to be the solution.

I'm glad we got THAT figured out!


Unable to locate package libtcnative-1:i386

32 bit is no longer supported on later versions of Ubuntu.  And only a very small subset of packages are whitelisted to stay on i386 in terms of being built and supported.  In 20.04, libtcnative-1 is not built on i386.  If your application / library does not work with the amd64 libraries, then the application needs to be reprogrammed to work properly with the amd64 version of the libs.'
You could attempt to install the version from Bionic by downloading the .deb for it and try installing it, but I'm pretty sure it won't install if the dependencies are missing, too.


You can download MySQL binaries from the MySQL download page.

Here is a screenshot of selecting Ubuntu 19.04 for MySQL Community Server 8.0.16:


How to create a bookmark under "computer" in the Sidebar of the nautilus file manager in 12.04?

Enter the directory you want to bookmark and go to Bookmarks → Add bookmark or just press Ctrl+D.


Ubuntu repository MySQL5.5 vs Orace MySQL5.5

I suggest to:

Check if the Oracle mysqld was compiled with debugging information and try to strip it, e.g. run strip mysqld on resulting binary.  Debian/Ubuntu packages are automatically stripped.
Compare the ./configure flags – there might be more engines or other features compiled-in in the Oracle build.  You can check the flags used to compiled Ubuntu package by downloading the source (apt-get source mysql-5.5) and checking the contents of ./debian/rules inside unpacked source package.


Ubuntu 13.04 not recognized as Bootable after installation

I have had the same situation because the grub bootloader wasn't installed correctly, so it booted into windows directly.

I booted from the DVD or USB, chose Try Ubuntu, and installed boot repair by typing these into a terminal

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

Then I started boot repair and did the recommended repair.

See How to install the Boot-Repair tool in an Ubuntu live disc?


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

    On Ubuntu nodes:

sudo apt-get install ganglia-monitor

    (this installs the service ganglia-monitor, which is gmond)

    On Ubuntu web interface machine:

sudo apt-get install ganglia-webfrontend

    (this installs gmetad and the web frontend)

  Configuration:

  Stats Generation Boxes
  Stats Collection Box(es)
  Ganglia-webfrontend (gmetad)
  Hadoop Statics in Ganglia 1

Read more

1Source:Ganglia


After a long search I've found a solution in here:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1525554

open alsa-base.conf as root - e.g.:

sudo gedit /etc/modprobe.d/alsa-base.conf

and add the following lines at the end of the file

options snd-hda-intel single_cmd=1
options snd-hda-intel probe_mask=1
options snd-hda-intel model=basic

and restart - for me sound works perfectly fine now.

You could have the same issue in case

dmesg | egrep -i "alsa|snd"

gives

  snd_hda_intel 0000:00:1f.3: No response from codec, disabling MSI:
  last cmd=0x000f0000

I have a Realtek ALC671 soundchip BTW. In the system it is called sunrise, with a skylake codec.


You could boot from a recovery disk or usb system and check the log messages in /var/log to see what blocks your boot process, perhaps some filesystem issue.


How should I see the skype chat history from the file main.db located at ~/.Skype/SKYPEUSERNAME/?

Messages are stored as XML in messages table. You may use a simple SQL command to extract need dialog:

sqlite3 .Skype/yourusername/main.db "select timestamp,body_xml from messages where dialog_partner=\"partnerusername\";"

As you may use Sqliteman to run same command:

select timestamp,body_xml from messages where dialog_partner="partnerusername";


How to merge two partitions (one subfolder of another)

Check that the partition /dev/sda6 is located right after /dev/sda5, for example using GParted.

  Backup! Backup!! Backup!! (Make 3 backups)

  Working with partitions is dangerous. Make sure you have made backups and copies of important data in external media. Avoid making backups in the same disk you are going to work on.

  Source: https://askubuntu.com/a/1005841/250300

Remove (or comment out) the /dev/sda6 entry in the /etc/fstab file, so it’s not looked for during the following boot anymore.
Boot your live medium now. You could only shut down PostgreSQL (generally: anything that could modify the data while copying them) for the next step but anyway, we’ll have to boot a live medium in order to resize partitions.
Mount the partition to be deleted. Note that the device letter (a in /dev/sda) might be altered in the live session, so adapt the commands if necessary or mount the partition using GUI.

export p=sda6
sudo mkdir /media/$p
sudo mount /dev/$p /media/$p

Copy all your data from the partition to another place. You can use cp, rsync or tar (with or without compression).
I’d use tar with compression as it creates a read-only copy and with today’s equipment, it’s faster to compress big data than to write them uncompressed.

I’ve chosen /media/data/ as the target location, adapt it to your own.

I am using sudo since some data in /var/lib/postgresql might not be readable for the logged in user but perhaps it might be not necessary here.

sudo tar -cJvf /media/data/var-lib-postgresql.txz /media/sda6/

Unmount the partition.

sudo umount /media/sda6

Now run GParted, delete the original /dev/sda6 and expand /dev/sda5 to utilize the freed space. Detailed instructions can be found at https://askubuntu.com/a/1005841/250300.
Mount the target partition.

export p=sda5
sudo mkdir /media/$p
sudo mount /dev/$p /media/$p

Check the folder /media/sda5/postgresql is empty. If not, clear it as it most likely contains data used before creating /dev/sda6.
Restore your data:

cd /media/sda5/lib/postgresql && sudo tar -xvf /media/data/var-lib-postgresql.txz

Reboot your system and enjoy your newly available free space.


Reinstalling Ubuntu without formatting /home, BACKUP specific config files?

To keep list of packages installed in the old system, you can do :

apt --installed list

or

dpkg --list

and redirect it into some file in home filesystem. Then if you want to back-up some subdirectories in / directory, you can use tar with appropriate parameters. I recommend to back-up /etc. Also some logs in /var/log might be useful for future comparison with the new system. If you have small / filesystem and you want to back up the whole / filesystem, then use tar with parameter --one-file-system .


It's all there. First line of free show that buffers take up 124, cache 543; 543 + 124 = 667, 1000 - 667 = 333. And this is what the second line of free (actually 332) shows.

That's the difference between "free memory" and "available" memory. Buffers / cache can be freed on a moment's notice, so they don't really count as "not available" memory in the System Monitor, but they also are not, strictly speaking, free memory.

From the point of view of the user, "available" memory is more important. Linux will max out the buffers / cache to speed up the system, but that does not mean that your mem is full and that system slows down due to lack of available memory.


Mounting a network filesystem into schroot

# means run with root or sudo

1. Create a mountpoint
# mkdir /mount/point

2. Mount /proc /sys /dev to chroot
# mount -o bind /proc /mount/point/proc
# mount -o bind /dev /mount/point/dev
# mount -o bind /dev/pts /mount/point/dev/pts
# mount -o bind /sys /mount/point/sys

3. Copy resolv.conf to networking
# cp /etc/resolv.conf /mount/point/etc/resolv.conf

4.Open bash in chroot
# chroot /mount/point /bin/bash

5. Do what you have to do and then exit chroot
exit

Also see: http://fermilinux.fnal.gov/documentation/tips/mount-bind-chroot


How to get corresponding Ubuntu release codename on its derivative (Mint, Elementary, ...)?

Ubuntu doesn't define any standard way to do this. A derivative may or may not include the name of its upstream release somewhere in a file.

The best way is probably to use some package versions to guess the upstream version. The package libc6 would be a good candidate for that, coreutils may be another one.


The older BIOS (Basic Input/Output System) and its modern replacement UEFI (Unified Extensible Firmware Interface) can both be seen as the "firmware" of your computer.

They are stored directly on the mainboard and are the first software that is run on your computer when it is powered on. Their main job is to initialize all connected hardware and load the actual operating system's (e.g. Ubuntu or Windows) boot loader (e.g. GRUB) from the hard disk, which then starts the OS.

Most UEFI systems also support CSM (Compatibility Support Module) booting, which emulates a Legacy BIOS interface.

While Legacy BIOS boot simply and stupidly reads and executes code from a fixed address off the disk (part of the Master Boot Record), UEFI boot searches for EFI boot files in an EFI system partition and executes one of those.

The older MBR (Master Boot Record) and newer GPT (GUID Partition Table; GUID = Global Unique Identifier) are partition table formats.

Your hard disk is partitioned in either of these two formats. The older MBR format allows only 4 primary partitions on the whole disk (although one of them may be used as extended partition and contain many logical volumes), whereas GPT doesn't have this restriction and also supports larger disks.

GPT partitioned disks may also contain a hybrid MBR with boot code able to load the EFI files in order to support both UEFI and Legacy BIOS boot modes.

So why are BIOS and MBR associated with each other, as well as UEFI with GPT?

Well, apart from BIOS/MBR being the ancestors of today's modern UEFI/GPT, they are also normally used together. Some operating systems (like Windows) even only support booting MBR disks in BIOS mode and GPT disks in UEFI mode. Linux systems with e.g. GRUB generally have no problems with mixing those either way.


My touchpad sometimes gets stuck (especially on a fresh boot).
In my case, reloading the driver works. First I unload the module from the kernel (using rmmod (remove module)) and then reinsert it (using modprobe):
sudo rmmod i2c_hid
sudo modprobe i2c_hid


Why do I see a "Firefox" button on Firefox 28?

Disable all Ubuntu extensions and restart Firefox, then you can disable the Firefox button (enable the "menu bar" by right clicking on the tabs bar) and enable the extensions again.


Keymap for Formosa21 infrared remote control?

the following site gives detailed advice:
https://www.mythtv.org/wiki/HID_Remotes

for testing the remote control:

sudo evtest /dev/input/by-id/usb-Formosa21_USB_IR_Receiver-event-ir

to obtain the current keyassignments:

sudo ir-keytable -r -d /dev/input/by-id/usb-Formosa21_USB_IR_Receiver-event-ir > satkeytable

then, the file "satkeytable" can be edited to assign different keys.

write the new keyassignments to the system:

sudo ir-keytable -w /path/to/satkeytable -d /dev/input/by-id/usb-Formosa21_USB_IR_Receiver-event-ir

(the new assignments will be available when the graphics server is restarted, but will be lost after reboot). If the infrared receiver is plugged in already at boot time, the keytable changes can be made permanent with systemd ( https://wiki.archlinux.org/index.php/Systemd );

content of /etc/systemd/system/ir_remote.service (new file):

[Unit]
Description=remap Formosa21_USB_IR remote control keys

[Service]
ExecStart=/usr/bin/ir-keytable -w /path/to/satkeytable -d /dev/input/by-id/usb-Formosa21_USB_IR_Receiver-event-ir

[Install]
WantedBy=multi-user.target

test:

systemctl start ir_remote.service
systemctl status ir_remote.service

autostart:

systemctl enable ir_remote.service


Generally yes.
Newest versions see chkdsk flag and will not let you mount it and see the hibernation flag and will not let you mount it either. But do not use hibernation if dual booting.

Best not to write a lot into Windows system partition or c: drive. Read is fine. It is more that the Linux NTFS driver exposes all the hidden files & folders that Windows hides. So you can have accidents. I used to always change Windows to show hidden files and learned how to fix it after moving or deleting something I should not have.

Always a good idea to have a shared NTFS data partition or d: drive in Windows. To avoid issues you can set Windows system partition as read only and shared drives as read/write.


Remap Window shortcuts for use on a laptop

Run the Compiz Settings manager, go to Grid (under Window Management) and configure each keyboard shortcut from there.

Click on the shortcut you want to change, then click on Grab Key Combination, type the combination you want and click OK.

Something like Super-left etc. might be taken for something else though - which is why I'm using the same shortcuts as I use on OS X (with SizeUp), like this:

Ctrl-Super-Alt-Left -> Place left
Ctrl-Super-Alt-Right -> Place right

etc. etc.


pactl Loopback and Sink for mic + VLC with low CPU load? latency settings?

I've got it working with the command you listed at 2), using Arch Linux though.
The command I used was:

pactl load-module module-loopback source=alsa_input.pci-0000_00_1f.3.analog-stereo sink=alsa_output.pci-0000_00_1f.3.analog-stereo

I found out the exact name of my Microphone/input and of my Stereo-Out/sink by using:

pactl list | grep -alsa

ALSA if you were wondering stands for "Advanced Linux Sound Architecture" and is the Kernel module (driver) that gets loaded for my on-board sound.

To load this loopback module on startup I added a line to my default.pa (and also set my default-source/default-sink in it):

echo "load-module module-loopback source=alsa_input.pci-0000_00_1f.3.analog-stereo sink=alsa_output.pci-0000_00_1f.3.analog-stereo" >> /etc/pulse/default.pa

I used pavucontrol to verify that the loopback module was loaded and working in tab "Playback" and had to unmute it there.

Pulseaudio used about 2% CPU time (2 threads) while idle (no sound played/picked up) and about 6-8% when passing the sound through via loopback from the input.
You may need root-privileges/sudo for certain commands above.


"eventually be reinstalled" Not with a tool from Ubuntu. You can create a disk dump of partitions but re-installing from those is not possible. Dumping the disk dump back onto the partition is possible but this is not re-installing. If, for instance, your hardware changed it is a bad idea to restore a disk dump on Windows. Linux is less error prone since we use generic drivers.

Whatever tool you pick it likely is going to be using dd.

This

dd if=/dev/sdh2 | gzip -c  > /image.img

will copy sdh2 to a compressed file on your root called image.img.gz. And

gunzip -c /image.img.gz | dd of=/dev/sdh2

would put the contents of /image.img.gz on sdh2 destroying what is currently on sdh2.

Make sure there is enough space (and then some) on the destination before doing this.
Never use dd on an active partition.
Change the location for the image file to /media/$USER/mountpoint/ if you have an USB with enough space to copy the file onto that USB.
If you use a partition as a destination it is going to be destroyed. If you put the wrong partition as a destination that one is gone if you pick the wrong one. Forever.  A typo of 1 letter or 1 digit in the device name is fatal.
Always make sure you can restore a backup of your personal data.
I used sdh2 as a random partition. Change it to your windows partition.

When it comes to things like this I would suggest to follow a plan where you can re-install your system from an install medium: I restore my Ubuntu within 15 minutes where I format / and /home (both on an ssd; my /home/$USER has no normal directories) and mount a partition (1Tb hdd) with my files on. That private partition also holds the dirs in /home/$USER/. The hdd now has been inside 3 notebooks (all died for various reasons). To finish my re-install I have a list of commands in a script to add and remove software and to change settings. This method not only works for broken operating systems but also when I would to go to the next version: I only do re-installs.


Touch pad or mouse not working on launcher and top panel

I had the same problem with a fresh installation of 13.04 on an Acer Travelmate. Just pressing Ctrl+Fn+F7 solved the problem.


Only choice for Desktop Environment Is Lubuntu in Wubi

The issue I've experienced seems to be connected with the way wubi checks for available ISO images in the root directory of every mounted file system.
Upon examining the log file wubi leaves behind, I found out wubi looks for ISOs in the root folder of any mounted file system except for C:\ (in a way assuming that anything else but C: is likely to be an optical drive containing a (K/X/L/you-name-it)Ubuntu CD).
There were several images for various Linux distributions on my external hard drive and wubi seems to have settled for the lubuntu one that was available.

In fact, wubi seems to have some kind of hierarchy in deciding which ISO is the one to be shown in the drop-down list if more than one is available (Lubuntu > Ubuntu > Xubuntu [haven't tried any other]).

Moving the ISOs to another directory (e.g. R:\isos) fixed the problem, now there is the full drop-down menu of DEs to choose from.

I hope this helps you, if you experience the same issue, which is, admittedly, very unlikely.


Heyy, I was facing a similar issue. It is due to the change in display settings we've done before. Go to display settings and revert back the fractional scaling to 100% if it is not. Ubuntu version 20.04


New Ubuntu 12.04 Installation not detecting Huawei E1550

There are couple of possible solutions in the link below which was a similar question asked about the same modem.

How do I get a Huawei E1550 dongle working?


AudioQuest Dragonfly inaudible unless pushed over 100% volume

There is a known fix for this issue, but it does not mention the Dragonfly specifically, so I had a really hard time finding it too.

Basically what you need to do is edit a line in the /etc/pulse/default.pa file.

From:

load-module module-udev-detect

To:

load-module module-udev-detect ignore_dB=1

Then from the command line run:

killall pulseaudio

This should cause pulseaudio to stop and then restart, though I had to reboot my computer to get it work.

I should also mention with this fix, you will hear output on the Dragonfly but will not be able to adjust the volume, until you select it as your output device in under System Settings -> Sound.

Take a look at:

How do I change the way Ubuntu adjusts my volume mixer levels? (This is where my answer is from)
http://www.head-fi.org/t/617241/audioquest-dragonfly-review-affordable-outstanding-tiny-dac-amp/795 (Second post on this page)


System boots in console + login loop (wrong root and home filesystem permissions)

Doing sudo chmod 710 / you have made / mode rwx--x---. So now just root has the permission to read and traverse it, and the group www-data can traverse it, but not read it... which means that noone but root can read the files in the filesystems, and normally the root account is disabled in Ubuntu.

It is possible to reverse what you have done for sure. The only problem is that you have to remember/detect where your partitions where; if you have not this information, you can use gparted to see where you root and home partition are.

I will suppose here that the system was installed with the root partition in /dev/sda2, adapt this to your case. It is a bit more complex if you have a separate /home partition. A

Boot with a live USB or CD. Choose "Try the system" and then, from a terminal:

1) go to superuser mode: (normally I wouldn't advise doing this, but you'll have to do quite a lot of things and using sudo in this case doesn't help a lot).

sudo -i

2) mount the real drive of your system (adapt with your root partition)

mkdir /myroot
mount /dev/sda2 /myroot

3) re-do the root directory permission/owner

chown root.root /myroot
chmod 755 /myroot

4) do the same for /home: (if /home is on another partition, mount it under /myroot/home)

chown root.root /myroot/home
chmod 755 /myroot/home

That should undo what you did --- I hope you didn't change permission recursively. Reboot and cross your fingers...


Solution 1: Try the Disks program (if you run Ubuntu with a GUI).
(check that the gnome-disk-utility package is installed)
(make sure that udisk2 package is installed)
Hit SUPERA to open the Application Lens and type Disks in the Search Applications field.
(SUPER is probably the key with the Windows icon.)
In Disks you can play with the automount options.
For example:

You have to click on the little icon with the two gears and choose 'Edit Mount Options'.

Solution 2: Using the CLI (for a headless installation)
Step 1. Check the blockdevices and the file systems that are assigned to those block devices.
lsblk

Here you see the blokdevice sdb with partition /sdb1. But it's not mounted. There's no file assigned to it.
Step 2. What kind of device is sdb?
sudo lshw

or
sudo lshw | less

So the USB stick - the block device /sdb - has the logical name /dev/sdb. And the FAT32 filesystem on that stick has the logical name /dev/sdb1.
Step 3. Mounting the USB-stick
We will mount /dev/sdb1 to /media/usbstick
sudo mkdir /media/usbstick

sudo mount -t vfat /dev/sdb1 /media/usbstick

Read the manpage of mount for other options.
Step 4. Did it work?
lsblk

Yes, we can see that the filesystem on the USB stick is mounted to /media/usbstick
Addendum : if there are no logical names like /dev/sdb, you should first create them.  See this information about setting up and controling loop devices with the losetup command


Ubuntu 14.04 nvidia problems after update

I would recommend you try guest mode, just to see if you get in.  I'm not sure, but I think that once in guest mode you can enter the Synaptic Package Manager using SUDO in the terminal (install if necessary).

Provided you have already installed it, the command to run it from terminal in guest mode would (probably) be:

  sudo synaptic

With synaptic you can do a search for your nvidia drivers and delete the driver.  Please only eliminate the enumerated driver, ie v 3.04 or 3.31, not all files associated with nvidia.  You need to keep some of them.


Cannot access Ubuntu 18.04 in dual boot, because system boots straight to Windows 10

A Quick Guide To Installing Ubuntu On A Dual Boot System (with Windows)

There are many good guides to installing Ubuntu but they don't all stress that it's very important if you are Dual-Booting with Windows that you need to ensure that Ubuntu is installed using the same 'boot mode' as Windows for everything to work smoothly.

(By 'work smoothly' I mean that, once installed, you switch on your machine and it goes to a grub boot menu where you can choose which Operating System you wish to boot up.)

The official Ubuntu documentation covers this well in the UEFI section: https://help.ubuntu.com/community/UEFI

One of the more obvious ways to tell that this might be your issue is, after installing Ubuntu, when you choose the 'Ubuntu' option from the grub menu it works fine, but choosing 'Windows' results in an error.
Windows can still usually be booted by pressing a key on startup (often f12) to take you to a 'one-time boot menu' and you can select it and successfully boot it from there.
In the case of this question, when switching on, the machine boots straight to Windows unless f12 is pressed, from where Ubuntu can be selected.

One-Time Boot Menu

When switching on your machine there should be a key that you can press to take you to your BIOS settings. That key will depend on what the manufacturer of the machine has chosen. Often it is f2 or esc and sometimes it will briefly flash a message on the screen to tell you what to press.

The 'Boot Menu' can also be accessed by pressing a key on startup that can vary depending on the manufacturer. (I have a Dell that uses f12 and an HP that uses f9)

Here's an article that has gathered some information about both for many of the most popular computer manufacturers: http://webtechmag.com/list-of-boot-menu-and-bios-keys-by-manufacturer/

Here are two examples of what a 'one time boot menu' can look like (with the USB UEFI option highlighted):

--Note that there are two entries available for the USB, allowing you to boot the USB in UEFI mode or not. (The 'Not-UEFI' option is usually referred to as 'Legacy Boot'.)

If you have installed Ubuntu, apparently successfully, but then encounter this sort of issue, then it is always worth checking the BIOS settings and looking at the 'Boot Order' or 'Boot Sequence'.
The boot order that you want is for 'Ubuntu' to be first, because that option will load the grub bootloader and from there you can choose either operating system.

On an HP Laptop I had (where Windows was booting automatically after I installed Ubuntu), it wasn't clear that Ubuntu was even a boot option until I highlighted and selected the 'Windows' option. It then showed me that there were other options and I could change the order using f5 and f6 to make Ubuntu first.

You may also have a separate Legacy boot option list for 'non UEFI' booting. It's unlikely that a machine from the last five years with Windows pre-installed will use anything other than UEFI and most modern Linux distributions support UEFI boot, so do not require Legacy boot in order to work.
If Legacy boot is enabled, however, if you inserted your USB and didn't specifically choose to boot in UEFI mode, then in my experience this tends to mean that the USB will boot in Legacy mode. (My first 'adventures' with UEFI helped me find this out.)

If you are trying out a Live USB then it usually doesn't really matter what mode it boots in, but when it comes to installing Ubuntu you want to make sure that the Ubuntu USB boots in the same mode as Windows uses. Which will most likely be UEFI.

If you boot the USB in UEFI mode then it will install Ubuntu in UEFI mode.
If you boot the USB in Legacy mode then it will not be able to install using UEFI mode.

Although the installation will go fine, you will not have a setup where the grub boot loader appears when you first switch on and happily lets you choose to boot any Operating System on offer.

The simplest option in this case, is to reinstall Ubuntu making sure that you have booted the Live USB in the same boot mode as Windows.

@oldfred has kindly mentioned in the comments that another option is to use the Boot-Repair program to convert it.

I've not had any experience of using this, but you can follow the instructions in the official documentation (https://help.ubuntu.com/community/UEFI) under the heading 'Converting Ubuntu into UEFI or Legacy mode'.

This involves either making a Boot-Repair-Disk Live USB or adding the Boot-Repair ppa and installing the program on Ubuntu.


How to install Panda3d on Ubuntu 18.04 LTS install

You can install it using pip
python3 -m pip install --extra-index-url https://archive.panda3d.org/ panda3d


My last phone ran Android 2.3 and i had no problems with USB tethering. I could set the USB connection to default to tethering and all i had to do was plug it in to my Linux laptop and it was online. So it's not Android 2.3 - but it may be your carrier. I believe Optus may not allow tethering on prepaid. I'm with Telstra and they do.


The first line should be
if [[ $1 == "-tl" ]]

...otherwise you are setting the value of $1.
And the term line should be
gnome-terminal -x "$0" -tl

...$0 is the path to the running script


Firts of all, you should check if you have /usr/bin directory in your $PATH in terminal with:

echo $PATH

If the $PATH is ok, check if alsamixer is there:

ls -l /usr/bin | grep alsamixer

If yes, try to run alsamixer like this:

/usr/bin/alsamixer

If still doesn't work delete  .asoundrc file (in your home directory) and /etc/asound.conf (if you have them) and reinstall alsa-utils:

sudo apt-get remove --purge alsa-utils
sudo apt-get install alsa-utils


Ubuntu is believed to be one of the most user friendly debian distro of Linux (of course people might debate that Linux Mint is friendlier).  Still Linux avoiders argue that it is still no way closer to Windows in terms of user friendliness. People often misinterpret the term user friendly with user familiarity.

In Ubuntu all the applications are integrated seamlessly as if they are one unit. Everything can be connected inside Ubuntu. They’re stable, lightweight, and almost infinitely customizable. Ubuntu has a rich GUI ( compiz package). In addition to this there are two tools to work with the command line and the GUI.

Automatic update of all the software, more support through the Ubuntu Forums (with around 600,000 members and the default chat room generally having about 1500 people), automatic defragging in the background and ram caching, multiple workspaces, operation almost exactly like XP, Vista or Mac (as per user choice), easy installation and special effects like wobbly windows, 3D cubes etc make Ubuntu more friendlier than ever.

However Ubuntu’s own repository for most of the software you will need, drivers for almost any kind of device from many vendor, excellent crash recovery, support to read and write NTFS drives, full support for MS office files including docx are some points which suggest that we ought to give Ubuntu a try.

As, a conclusion i cany say yes it's elder-friendly and it deserver to learn and try


How to get HDMI CEC working on a 7th gen intel NUC

UPDATE: I received an answer from Intel (finally):

  As per our investigation, you will need an add-on device to use your
  TV remote with Kodi.

  The onboard HDMI CEC controller that is controlled from the BIOS,
  supports bidirectional power on/off control for TV and NUC.

So you can NOT use the remote with the built in CEC.

PREVIOUS ANSWER (more in depth):

So from https://www.intel.com.au/content/www/au/en/support/boards-and-kits/intel-nuc-kits/000023500.html it states:

  The following Intel NUC Kits have the above external CEC header as
  well as an onboard HDMI CEC controller that is controlled by the BIOS,
  which supports bidirectional power on/off control:

And then lists a bunch of NUC's including the Gen7 ones. From this (and other readings) it seems that the CEC controller in the NUC's are only for use in the BIOS (NOT the OS) and so can only be used to do power options (wake, power on/of etc) and so are really just a HDMI version of wake-on LAN.

So the fact that the place I got it from (and Intel) don't make this clear and just say there is a built in HDMI CEC controller is beside the point and hopefully people will find this post before purchasing.

YOU CAN NOT USE THE TV REMOTE TO CONTROL ANY NUC'S WITH THE BUILT IN HDMI CEC CONTROLLER. (At the current time up to the Gen7's)

In order to do this you will need something like https://www.pulse-eight.com/p/154/intel-nuc-hdmi-cec-adapter (internal, NUC specific) or https://www.pulse-eight.com/p/104/usb-hdmi-cec-adapter (External, multiple devices).

I will update this if I see any new firmware etc that changes this.


How do I execute a command on a specific screen?

You need to send an enter for that to work. To do so, press ctrl+v and then type Enter. For example, your command would look like this:

screen -S screen1 -X stuff 'touch /home/user/test^M'

Keep in mind that will just 'stuff' text into your first window, that will fail if there's already some 'text' in the console.

Take a look at GNU screen FAQ: How to send a command to a window in a running screen session from the commandline for additional examples.

One way to do so at screen startup is using .screenrc with something like:

# Start some screens by default
screen -t touch -L /bin/sh -c "touch ~/test3;bash"
screen -t mc -L /bin/sh -c "mc;bash"


What is the difference between "Unmount", "Eject", "Safely Remove Drive" and the eject icon?

When a drive is connected and its filesystem loaded, it is mounted, as if with the mount (or pmount) command, to a location on the root filesystem (usually somewhere inside /media). When the filesystem is no longer needed, it can be unmounted (as if with the umount or pumount commands), which flushes any pending writes to disk, so that you can remove the drive safely. If the drive is removed without doing this, some pending writes will be lost, and the drive can potentially be rendered unreadable or otherwise lose data.

"Safely Remove Drive" and "Eject" are basically equivalent and do two things: It first unmounts the filesystem (as if the umount command were used), then it issues a SCSI eject command (which is accepted by things like CD-ROM drives, and ignored by almost everything else). It works the same as the command-line command eject. Many USB devices seem to respond to the eject command by shutting down or de-registering themselves from the USB host.

For most devices, all of these commands are functionally equivalent. For CD-ROM, DVD, Blu ray, etc. devices, "Eject" additionally physically ejects the media.


Unable to connect to wifi on a Dell Inspiron e1505

Have you tried System Settings -> Additional Drivers?

Try that but, I've noticed an odd bug when installing Ubuntu in PC's Using Broadcom, before Install you must check if Wifi works normally, if is not that way you should check System Settings -> Additional Drivers and enable them before proceeding the Installation. If you not do this, when you try to install the additional drivers after ubuntu installation they are never detected properly.


Already answered here: How to disable window move with alt + left mouse button?

In resume: The Compiz Plugin, at 'Move Window', have this settings.


Dual boot Windows 7 with Ubuntu 12.04 LTS

First install a clean Windows 7, and then follow these steps for your dual boot setup with Ubuntu 12.04:

http://www.linuxbsdos.com/2012/05/17/how-to-dual-boot-ubuntu-12-04-and-windows-7/

or

http://handytutorial.com/step-by-step-beginners-guide-installing-ubuntu-12-04-lts/


You can build a snappy package like this, in the folder of the app to build, run

snappy build .

With a .

You may need this too

sudo add-apt-repository ppa:snappy-dev/tools
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install snappy-tools bzr

To learn the basics how to build a simple snappy app on your Ubuntu desktop, get the snappy‐examples code repository.

 bzr branch lp:~snappy-dev/snappy-hub/snappy-examples

They have provided a few example apps to try out. All of them are published for Ubuntu Core in the cloud repository. If you want to try them on Ubuntu Core without building them yourself, you can use snappy search and install them directly.

Let's walk through a build from source of "hello-world":

 cd snappy-examples/hello-world

Take a moment to inspect the contents of this directory. The key is the snappy packaging meta information that you will find in the meta/ directory and the package.yaml file. This information is all it takes to package your snappy application and share it with snappy users. The contents of meta/package.yaml are documented in the packaging guide.

Now that you are familiar with the internals of how a snappy package source tree looks like, let's create the hello-world .snap package. For that simply run:

 snappy build .

This will produce a snappy package in your current working directory, which you can install on your snappy system using the snappy-remote command:

 snappy-remote --url=ssh://localhost:8022 install ./hello-world_1.0.5_all.snap

Of course, you need to provide the address of the running snappy virtual machine, the example above is correct if you are using KVM locally, if you are on the cloud then it will be a different hostname and is unlikely to require a custom port. Log in to your snappy and run the hello-world.hello command to see it yourself:

hello-world.echo
Hello World

All this is from the official documentation.


Unallocated Space showing up as sublist in GParted while Extending Root Partition(Screenshots attached)

The solution should be simple. You need to extend sda4 into the unallocated space. That will move the unallocated space into the extended partition. Then you can resize sda6 into the unallocated space.
Your Gparted screenshot shows sda4 is locked. It shouldn’t be if you have booted into a live environment. You will have to make sure sda4 is not locked to make these changes and unmount if necessary


Can't paste anything or cd into hard drive

The /dev/ files are hardware device nodes.  Best not to mess with those.

To see the disk, use the df command (display filesystems).  Output will be like:

 df
Filesystem       1K-blocks        Used   Available Use% Mounted on
udev               8144388          12     8144376   1% /dev
tmpfs              1631076        1008     1630068   1% /run
/dev/sda1         61414412    24208268    34456664  42% /
none                     4           0           4   0% /sys/fs/cgroup
none                  5120           0        5120   0% /run/lock
none               8155372       80440     8074932   1% /run/shm
none                102400          60      102340   1% /run/user

Note that I have /dev/sda1 mounted as my root filesystem.
The message that you are getting suggests that /dev/sdb1 is already mounted.  See if it shows up with df.


PlayOnLinux may require that you install Windows components before it can use your graphics acceleration -- d3dx9, for instance, or DirectDraw.  Which of these you might need is dependent on the Windows program you're running, and what Wine version you're running it under.

Advice on this is likely best sought from someone who knows both your program and PlayOnLinux or Wine.  Sometimes you can find tutorial pages (I've seen them for games like Path of Exile and There, as well as chat systems like IMVU), sometimes you can find an actual person who can help with specific issues -- and sometimes you can't.


It's very easy.

First insert your SD in Sdcard Reader, let Ubuntu mount it.
check the access path for the sd card using df
You will get some output like this

Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda7      104087776 76247376  22529988  78% /
/dev/sdd1       15549952    13056  15536896   1% /media/g/3630-6335

Unmount the sd  using

sudo umount /path/to/sd/card

Format the card using mkfs

sudo mkfs.vfat -F32 -v /path/to/sd/card

-F flag is for Fat32 system.
-v flag is for being verbose


set simply shows functions defined in bash. What you see has nothing to do with GRUB or C. It is normal for these functions to be defined - they are used for things such as colored terminal output and tab completion.


fatal error: openssl/evp.h: No such file or directory

The other answer is almost correct but only works if you have already solved the problem. It led me to this solution:

sudo apt install -y libssl-dev


Since you haven't shown us what's actually in the file (od -bc file.txt will show each and every byte), I'll assume nothing but spaces between the entries.
tr ' ' "\n" file.txt | grep -Ev '^$'

This works by changing all the spaces to newlines (LF,0x0), then eliminating all the empty lines.


Cron scheduling: Is the hour argument in 24h format?

No. This would run at the 4th and 16th minute of every hour.

You're looking for:

0 4,16 * * * command

That will run at both 4am and 4pm.

Or if the two commands are different:

0 4 * * * command
0 16 * * * another_command

The first column sets the minutes. In these examples, I'm setting it at 0 so the event happens on the hour.
The in the next column we set the hour you want it to run. We use absolute values but you can use */2 for "every other hour", etc.
The next column says that we want this to happen every day of the month.
The next column denotes the months that this should trigger on (all in this case).
The last column says which days of the week this is allowed to trigger on. 0-7 (where both 0 and 7 are Sunday). * means it can trigger on any day of the week.


How to tag and manage my manga comic collection?

As your question is very specifically about comics, there are really two graphical applications in the repositories called calibre and comix that would be very useful to you.

You could manage all your comics in calibre, which has many more tagging and management features than comix, and then just use comix as the default viewer for your .cbr files. This would probably be the best of both worlds as both calibre and comix can read from archived tar and compressed zip folders.

If you create your library just with comix, it is possible to add comments per imported folder or comic, and then search throughout your library. If that is sufficient then you could just use comix for management and viewing, although calibre definitely gives your more options for tagging and managing your comics.

I note that you refer to manga comics, and comix has several features that support manga such as a setting to switch to right to left reading.

Screenshot featuring Comix with a sample Marvell (tm) comic:


rc.local not called when starting the system

I put the script in the Startup Applications and it works now fine


/etc/profile returns error: permission denied

It is because by default that file doesn't have any executable bits set. Even root cannot execute a file that is not executable for any user.

ls -l /etc/profile
-rw-r--r-- 1 root root 1722 Jan  6 20:09 /etc/profile

/etc/profile is there to be sourced at login, and sets the environment. Do less /etc/profile and you will see exactly what it sets.

By default, most of the regular files in /etc have permissions 644 which in symbolic notation is rw-r--r-- and means the file owner can read and write to it, members of the group can only read the file, and others (any user or program) can only read the file.


How to view large comments in spreadsheet properly in Libreoffice?

The easiest solution is to increase the width of the comment box; obviously, it isn't a matter of text length but of the heigth of the comment box.

Depending on your needs (and the content of the comment), you may put the comment's content in a writer file and replace the current comment content by a hyperlink to that file, or insert the odt file as OLE object into the comment.


You need to update your messed up packages.  Start with

sudo apt-get update
sudo apt-get upgrade

If that's a no-go, try

sudo apt-get -f install

and then run the commands above.


Running python script from shell script with newline

The comment lines aren't ignored completely; they're treated basically as blank lines.

Putting the script arguments in an array would work better.

args=(
    # Dataset options
    --dataset './datasets/lausanne' --timestep 30 --obs_len 8 --loader_num_workers 1
    # Optimization
    --num_epochs 100 --batch_size 16
    # Model options
    --embedding_dim 64 --h_dim 32 --num_layers 1 --mlp_dim 64 --dropout 0 --batch_norm 0 --learning_rate 0.0001
    # Output
    --output_dir './models' --print_every 100 --checkpoint_every 100 --checkpoint_name 'cnnlstm' --checkpoint_start_from None --restore_from_checkpoint 1
    # Misc
    --use_gpu 1 --gpu_num '0'
    )

python train.py "${args[@]}"


DropBox core dump error and force_s3tc_enable overridden by environment

Try installing ttf-mscorefonts-installer with the command:

sudo apt-get install ttf-mscorefonts-installer

I've found that few people were able to solve:

ATTENTION: default value of option force_s3tc_enable overridden by environment

Through the use of this method, but it is worth a try.


How do I reinstall everything Ubuntu related software on my system?

oops! have you still got the LiveCD that you used to install Ubuntu in the first place?

If so, insert the CD in to the drive and reboot.

When liveCD loads, click install. You should be offered the choice of repairing or reinstalling.


error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb

First you can try sudo apt upgrade libc-bin

According to package search your Version is from xenial.

When the problem can not be solved this way try sudo apt install --reinstall libc-bin=2.27-3ubuntu1

No luck? wget -c http://mirrors.kernel.org/ubuntu/pool/main/g/glibc/libc-bin_2.27-3ubuntu1_amd64.deb draw the package and use dpkg -i libc-bin_2.27-3ubuntu1_amd64.deb


Database / systemctl issues after switch to 15.04

The default init system in 15.04 is systemd (changed from upstart), and I believe this is the root of the problem.  You can either alter the services (you can try installing the Debian packages instead for example) or you can install upstart to make the existing packaged work again:

sudo apt-get install upstart-sysv

Once installed, reboot and see if your services will now start/stop again etc.


Upgrading from kernel 3.13 to 3.18 causes Unity not to load, wireless not to work (System specs included)

I read the "advice" given on that bugreport but I think it was wrong. You're not supposed to download one .deb package but 3, depending on the architecture.

See more details here:
https://wiki.ubuntu.com/Kernel/MainlineBuilds#Installing_upstream_kernels

It is a good idea to revert to using nouveau (the open source nvidia driver) if you're going to test a mainline kernel as various modules like the ones for nvidia, virtualbox won't get built when installing this kernel.

A bit more info about this, here:
dkms: rebuild kernel module for manually installed upstrem kernel

When messing with the kernel it's a good idea to do a bit more research before committing to making changes to your system.


Unity 3d not working whereas Unity 2d works fine

You can take a look at the Ubuntu official page about Unity and its requirements:

https://wiki.ubuntu.com/DemystifyingUnityGraphicsHardwareRequirements

You can try the following command to see if your video card and its driver support Unity 3D:

/usr/lib/nux/unity_support_test -p


Restore linux kernel after accidental removal

If I were to guess, you have a separate partition for /boot. That's not unusual, the installer does that when using LVM.

First mount /dev/mapper/ubuntu--vg-root at /mnt, and then mount /dev/sda2 at /mnt/boot.


Moved a shared library, now I can't run any commands

Fortunately, I was able to fix my problem.

I wasn't able to use sudo, since it resulted in the error above. However, I was able to follow the directions here to make the terminal start as root. At that point, I was able to make a new symlink ln -s /lib/x86_64-linux-gnu/libpthread-2.27.so /lib/x86_64-linux-gnu/libpthread.so.0.

I reset the user back to my personal account, and the problem was fixed.


To change Language:

Boot from your Media which has the Ubuntu ISO
Wait for the LiveCD / LiveUser to load
By Default you will get a window pop asking to Install or Try Ubuntu
On this menu you will have option to change Language

If above does not work for you:
Suggest you download a fresh ISO from Ubuntu.com

For BOOT Menu:

If you are using Win8, it has tendency to boot real quick. Thus switch off your laptop (no restart) and press the power on button and F2 key almost with a littel delay- make sure you start with power on first.

These worked for me in a test Laptop (Sony Vaio E)


Have you tried installing latest driver? I have NVIDIA-SMI 367.57 installed though I have 3GB it shows 3 GB for me.


I'm not sure from your question if you're already doing this, but in case not...

Right click on the desktop, select "Default Desktop Settings" -> View, and in the first combo box change "Default Desktop" to "Folder View"


Does updating the OS on one partition affect other partitions?

You could in fact just do the clean install over the existing 9.10 install rather than remove partitions and then start the installer.

When the partition part of the installer starts - choose Something Else

This will then show you a list of your partitions, you say you only have one partition for Ubuntu, this will show as a linux partition, there will also be a linux-swap - you can ignore that. Ignore the NTFS partition.

Select the linux partition - then select the Change button underneath the listing

In the new window - Use As Ext4 - mark for formatting, and use / for the mount point.

Exit that back to the partition listing, check there is a tick mark in the Mount point box against the partition and carry on with the install.


I don't know where you got that package name from but it does not exist, to install anbox from the repos just use
sudo apt install anbox

It should install any required modules automatically.


Postman is opened instead of google chrome

Try this:

edit ~/.local/share/applications/google-chrome.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Postman
Icon=google-chrome
Exec=/opt/google/chrome/chrome --profile-directory=Default --app-id={gobbledigook}
StartupNotify=false
StartupWMClass=Google-chrome
OnlyShowIn=Unity;
X-UnityGenerated=true

remove --app-id={gobbledigook} from the Exec line, save, and then try again


Since you asked me to help with this after I answered your first question, I am giving as much illumination as I can without specific experience of NAMD or theorectical biophysics.

As stated among the requirements to run NAMD you need to supply a configuration file

Once you've written your config file you specify it when running NAMD. The configuration file is a text file that you must write according to the documentation (I hope you know how to do this or can get help with it from colleagues). You can use any text editor to write the file, for example gedit. Once you have written it, you specify it to NAMD with the path to the file. If you named the file config and you are currently in the same directory where the file is saved, you could type:

namd2 config

if the config file is in a directory called /home/nikoot/Documents/NAMD you could type:

namd2 ~/Documents/NAMD/config

I am assuming the namd2 binary is in your $PATH since you managed to get the error in your question!


Guest Login Vulnerability (CVE-2017-8900) - 16.04 is still using upstart?

There are no "migrations" happening in 16.04. The migration from systemd to Upstart for PID1 happened in 15.04, and for user sessions in 16.10. Upstart handles only graphical user sessions in the releases from 15.04 to 16.04 (inclusive).

Booting with Upstart was offered for 15.04, but is a try-at-your-own-risk for newer releases.


How do I install cuda on jetson nano ARM hardware without USB?

Many people encountered alike problems while installing with sdkmanager. But if you flash lastest image, which has some fixes, then all software is already installable with apt-get.


Installing Ubuntu-Linux on Virtualbox (Virtual Machine)

This message "VFS: Unable to mount root fs" means that you root fs has a filesystem type that is not recognized by kernel at boot time. To solve this, you need to enable appropriate modules at boot time. Tips here.


Failing at setting up Network connections at a new Ubuntu Machine

For subnet use 192.168.2.0/24
Address 192.168.2.199
Gateway 192.168.2.1

https://www.dan.me.uk/ipsubnets is a good place to understand which subnet mask / CIDR blocks are valid for a given IP address.


Ubuntu 11.04

There are two options to edit the settings. Either using the CompizConfig Settings Manager (ccsm) or the Configuration Editor (gconf-editor). I'll describe both ways.

CompizConfig Settings Manager

Warning: CCSM is in universe and not shipped by default for a reason, it can be flaky, so be careful in there, it can break things, if you find yourself with a broken window manager, see this question to reset your configuration.
Install the CompizConfig Settings Manager
(CCSM).
Hit Alt-F2 and input about:config and hit enter.

You can now configure quite a few different settings. Like key shortcuts, the launcher behavior and appearance of the Launcher.

On the Behaviour tab you can configure:

The Hide Launcher sets the launchers hide behavior.

Never - The launcher will never hide.
Autohide - The launcher will hide automatically based on time.
Dodge Windows - The launcher will hide when a window would overlay it.
Dodge Active Window - The launcher will hide only when an active window would overlay it.

The key to show the launcher which by default is the Super key. This will also affect the key used to show the dash (if tapped) and the shortcuts shown when keeping Super pressed.
The key to put keyboard-focus o the launcher so you can navigate using your keyboard (default Alt + F1).
The key to open a Search Command dash where you can enter a command name you want to execute. (dafault Alt + F2).
The key to open the first panel menu (default F10).

On the Experimental tab (might change hence the name):

The Backlight Mode sets how the icons are back-lit.

Backlight Always On - the icon back light will always be on.

Backlight Toggles - the icon back light will be on as long as the application is running.

Backlight Always Off - pretty much the opposite of the first option.

The Launch Animation sets how the icons are animation.

None - no animation will be shown.
Pulse Until Running - the icon's back light will pulse till it loads up.
Blink - the icon's back light will blink.

The Urgent Animation sets how an icon will inform you of something important.

None - no animation.
Pulse - it will pulse.
Wiggle - it will wiggle.

The Panel Opacity sets the opacity of the panel.
The Launcher icon size sets the size of the launcher in pixels.
The Hide Animation sets how the launcher hide and unhide.

Fade on bfb and Slide - fades based on the position of your cursor in the bfb (big funny button - the one in the top left of your panel with the Ubuntu circle of friends on it) and slides.
Slide only - it will only slide.
Fade only - it will only fade.

The Dash Blur sets the level of blur in the dash

No Blur
Static - snapshot of the desktop that doesn't get updated (in cases where the drivers can't handle it)
Realtime - Updating of things behind the dash in real time (Not implemented yet)

Configuration Editor (gconf-editor)

Open up the Configuration Editor by Pressing Alt + F2 and typing gconf-editor
Navigate to apps -> compiz-1 -> plugins -> unityshell -> screen0 -> options.

Now you can set settings described above. Clicking on an item will show a short description in the Key Documentation panel.

Configuration Editor (dconf-editor)

There are also some options you can edit using dconf-editor (needs to be installed first by installing dconf-tools at Ubuntu Software Center or by clicking here):

Open up the Configuration Editor by pressing Alt + F2 and typing dconf-editor
Navigate to Desktop -> Unity to find the first two options:

form-factor: The form factor chosen will affect the size of the Dash. Desktop uses a fixed sized Dash, Netbook will always maximize the Dash to screen size, Automatic decides whether to use Desktop or Netbook based on the screen resolution.
home-expanded: Whether the home screen of the Dash should be expanded (Expanded) or not (Not Expanded).

Navigate to Desktop -> Unity -> Devices

devices-option: Key for setting the devices that will be shown on the launcher. Never -> never show devices on the launcher, OnlyMounted -> only show devices that are mounted, Always -> also show unmounted devices.

Navigate to Desktop -> Unity -> Launcher

favorites-migration: This is a detection key for the favorite migration script to know whether the needed migration is done or not. You don't want to change that.
favorites: This is a list of desktop files that show up in the launcher.

Navigate to Desktop -> Unity -> Panel

systray-whitelist: List of programs that are allowed to put icons in the panel's tray area: [''] -> none , ['all'] -> all programs, or a list of program names.

Launcher & Menus (unity-preferences)

There is another option to configure how to show the launcher then it is hidden.

Open the Launcher & Menus configuration utility by pressing Alt + F2 and typing unity-preferences.

Pushes the left edge of the screen will make the launcher appear about one second after pushing the cursor to the left edge of the screen.
Touches the top left corner of the screen will make the launcher appear immediately when the cursor touches the top left corner of the screen.

Select the desired option.


How do I use Ubuntu Server as file server?

The important thing to remember is that Desktop and Server are the same underlying OS, with different packages & configuration
In Windows that isn't true
(tx to @jay-bazuzi)

This is a step-to-step answer.

Install samba

sudo apt-get  install  samba samba-common

Install some dependencies for Configuration tools

sudo apt-get install python-glade2

Installa samba configuration tool

sudo apt-get install system-config-samba

Make a new user Jones

adduser   Jones

Make  a Linux  password for  user  jones

passwd pirat9

Open samba configuration tool.

Add the folder you want to share and setup the permissions

Create a samba user

sudo smbpasswd -a  jones
New SMB password
retype New SMB Password

You can chose any  directory you want to share by  right click on the  folder directory and open the  share options

Now at this point if your ubuntu server has ip: 192.168.1.10
you can access to your folder with a Linux Machine typing on Nautilus address bar:

smb://192.168.1.10/pirat9

or on a windows machine with:

\\192.168.1.10\pirat9

Thanks Linuxman for screen and refs:
http://www.unixmen.com/howto-install-and-configure-samba-share-in-ubuntu/


How to make psql to default to localhost?

If you don't like the default of connecting via a unix socket, you can set the environment variable PGHOST. I have

export PGHOST="db"

in my ~/.bashrc, to connect to the server with that name. A few more handy environment variables are documented at http://www.postgresql.org/docs/9.5/static/libpq-envars.html