No Sound card detected in Sound Settings, although sound works

I had the same problem on my MacBook Pro 8.1 running Ubuntu 12.04. I solved it by resetting pulseaudio user configuration as explained here.

You have to run the following lines in terminal

rm -r ~/.pulse*; pulseaudio -k

and then logout and log back in.


Dual Boot Install Trouble: Ubuntu only sees one huge unallocated partition

@user274548

There is a wealth of information in this forum. Also there no one set of instructions that will help guilde you through the installation process.

Here are few good links that I followed that helped me in the process.

Dual-boot Windows 8 and Ubuntu 12.10 in UEFI mode
Install Ubuntu Linux Alongside Windows 8 in 10 easy steps
Installing Ubuntu on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported)

BTW after significant effort I was able to dual boot Ubuntu 12.04 along side Window 8.1 thank to this community. Also I almost never boot to the Window 8 partition.

Welcome and good luck


Install freezes on a screen with weird colors and no text

This problem was solved by running the start-up parameter nomodeset

Reference to these answers:

https://askubuntu.com/a/162076/852643

https://askubuntu.com/a/1024897/852643


Why doesn't Evolution send outgoing emails?

Please check your outgoing email settings!


You can use GNOME Tweak Tool (gnome-tweak-tool) - in Desktop section you can set background mode from the list.


18.04 Severe display issue - impossible to read the screen

I eventually tried to reinstall ubuntu, but after doing this I noticed that there was a gear next to the login window, that appeared to change the graphic settings from gnome to something else. Changing this setting allowed my computer to resume normal operation. Still a little confused ab


Accessing home directory of encryted ubuntu. Its on a USB stick and refuses to boot

Use the steps for Recovering Your Data Manually at Ubuntu documentation.
It follows with the section on Live CD method of opening a encrypted home directory.


Try using:

df -h

It will list file systems, not partitions, so you can see an exact usage of each HDD.


Creating btrfs subvolume like @ or @home

Sigh, seems I posted a bit too soon, with a bit of help of the almighty Zosma on IRC, we found out how this is supposed to work.

Subvolumes @ and @home are children of the btrfs root, so / is not actually the root of the file system. The UUID of the btrfs root is supplied in /etc/fstab twice, providing the mounts for / and /home. Mounting the actual root of the file system shows the subvolumes created by the installer:

root@box:~# mkdir /mnt/btrfs
root@box:~# mount UUID=f8963df3-1320-4bc0-a125-62be185b029e /mnt/btrfs
root@box:~# ls /mnt/btrfs
@  @home

So that's where they went! Creating a new subvolume in the exact way the ubuntu installer did is now easy:

root@box:~# btrfs subvolume create /mnt/btrfs/@data
Create subvolume '/mnt/btrfs/@data'

Now, as we've created a subvolume in the btrfs root instead of in the root filesystem for the install, /data/ won't show up by itself. Luckily, it's trivial to copy the trick used by the installer by examining /etc/fstab and add another mount for /data:

UUID=f8963df3-1320-4bc0-a125-62be185b029e /data  btrfs  defaults,subvol=@data 0 2

Last step is to create the mount point: mkdir /data. After a reboot, we'll have a /data directory mounted from a separate btrfs subvolume.

… Profit!


For me it was two places causing motd to be displayed twice:

1) pam.d & 2) sshd itself

To start fixing it:

~> cd /etc/pam.d/
~> grep -i motd *

and then editing /etc/pam.d/sshd (may differ from version to version so confirm with grep output) and hash out these two lines:

session    optional     pam_motd.so  motd=/run/motd.dynamic
 session    optional     pam_motd.so noupdate

My /etc/ssh/sshd_config also had #PrintMotd=yes (default is yes so it was active even if it was #'d out)

In the end I set /etc/ssh/sshd_config MOTD option to PrintMotd=no (not removed the # and set to no to replace the default) and enabled the /etc/pam.d/sshd motd lines so the /etc/ssh/sshd_config option printlastlog=yes will print the last login information after the pam.d motd is displayed.

Pam will also use the options in /etc/update-motd.d/ to customise the /etc/motd as well which sshd will not do as it will simply display what is already there.


Windows 10 'fixed' files created in Ubuntu

In principle, Linux (Ubuntu) supports read and write support of partitions formatted with the NTFS file system, the file system used by Windows. If the file system is healthy, it should not be a problem working with NTFS under Linux. However, to ensure that the file system remains healthy:

When shutting down Windows, shut it down completely, i.e no "fast-boot" or no hibernation. This way, MS Windows completely closes the partition and leaves it in a clean state to whatever OS accesses it on next boot.
When using the NTFS partition in Linux, make sure you shut down Linux fully and completely, again to ensure the partition is correctly closed.
Importantly, regularly connect the partition to MS Windows and have the drive checked there. Because NTFS is a proprietary file system format, only the Windows tools know it the full ins and outs. For this reason, one should use the NTFS file system only if it periodically can be connected the file system to a Windows system (as in your case).

Thus, some extra care is needed, but it should not be a problem to share an NTFS partition for having data available under both Windows and Linux.

In your case, some corruption has happened. Head the advise above to prevent that from happening again. For now, your partition has already been checked and repaired under Windows. I would check it once more with the Windows disk checking tool to make sure. It should not happen again if each time you carefully close the operating system and have the disk checked manually now and then in Windows.

  "Has Windows deleted those files and folders?"

Windows was unable to recognize file names and connect these to the file contents stored on disk. The folders have been deleted. The contents of the files have been recovered in files with a random name, stored in a folder \found.000. Some of these files, but not necessarily all, may still "work". If there is important stuff there for which you do not have a backup, then you will need to try to recognize which file is which, and rename them accordingly.


My wifi is not functioning properly on my HP 15-r249TU

Install the driver this way

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware


Adobe Flash player is proprietary. Check boxes for proprietary software in Software and Updates setting, and then go to Software Center , and look for it there. Also install QuickJava addon in Firefox (type in address bar about:addons). This will help you to easily enable Java and Flash in Firefox. This is my usual set up in Ubuntu. Also, if you don't need flash for anything but YouTube,  just use HTML 5 plugins from Firefox - that's what I do on Fedora.

Another alternative is Google Chrome or Chromium browsers. They come with pepper-flash player, which is a variation of Adobe's.  And it's going to be supported too.


Ubuntu hard drive not detected by BIOS but visible in Disk Management

Presumably you are using the BIOS to boot into your Ubuntu installation, but it only works when you don't have the Windows disk atttached.  Probably, your BIOS only looks for the first two disks, the two optical disks, and disks attached through USB as bootable.  See oldFred's comment, for a possibly simple solution.

Here are two other solutions:

You could try connecting your Ubuntu disk into "second" position, replacing your Games disk, and putting your Games disk into third position.  This presumes you don't need to boot your Games disk. In any event, you do not want to change the position of your Windows disk.
Another approach is to make a "rescue" disk for your Ubuntu installation (grub-mkrescue).  The rescue disk would be on a CD, DVD, or flash drive, all of which would be seen by your BIOS.  You would use your BIOS to boot into the rescue disk, and from there, you would boot into Ubuntu.

The rescue disk would boot into a prompt "grub>".  Once you have that prompt, you would be able to see all of your disks.  And from there, you could then boot your Ubuntu disk.

The grub> commands you would need include:

set pager=1  (controls scrolling)
ls           (lists disks, partitions, files)
configfile   (used to load grub.cfg in the boot partition in Ubuntu)

Once you have found your Ubuntu disk in grub, you need to find the file /boot/grub2/grub.cfg and type something like (at the "grub>" prompt

configfile (hd2, msdos1)/grub2/grub.cfg
(you will have to explore with "ls" to find the correct parameters).

That is it -- your Ubuntu system should boot from here.

If you go down this path, you can refine it later by making a custom "rescue" disk.  You would be adding a simple "grub.cfg" to the rescue disk, which would basically contain the correct "configfile command", so that you could boot your Ubuntu system without typing anything.

BTW, I have used this method for a long time, starting with a Windows 98 machine, where I was too afraid to actually modify the Windows disk, and the BIOS on that machine did not recognize the drive on which I had installed RedHat Linux.


Parsing a file using text processing tools


Theme isnt changing using Gnome Tweak Tool

I don't use the default Ubuntu "Gnome" related applications and tools.  Ubuntu picks the gnome applications that work best with Unity.

I use the Gnome 3 PPA (https://launchpad.net/~gnome3-team/+archive/gnome3) which has the latest and greatest, but this will also make changes to other programs like Nautilus which I personally like, but others might not.  Not an exact answer, but if you like running a Gnome desktop like I do.  It might be nice although I've personally noticed a lot of the gnome shell extensions aren't working with 3.6 yet.

Hope this helps.


How does LTS combine with HWE out of support

As far as I can tell you are told to upgrade to 12.04.5.

From the mailing list:

  In an effort to support a wider variety of hardware within the 12.04
  Ubuntu LTS release, the 12.04.2 and newer point releases in Precise
  shipped with hardware enablement stacks composed of updated kernels
  and graphics stacks. The intention has always been for these hardware
  enablement stacks to only remain supported until the introduction of
  the kernel and graphics stack derived from 14.04. On August 7, 2014,
  the 5th and final point release for 12.04 (ie. 12.04.5) will deliver
  the kernel and graphics stack derived from 14.04. At that time,
  security updates and bug fixes for older hardware enablement stacks
  will no longer be provided. All users of older hardware enablement
  stacks will be encouraged to update to the 12.04.5 hardware enablement
  stack or fully upgrade to 14.04 proper. For any 12.04 HWE stack users
  interested in making this migration prior to the August 7, 2014
  deadline, we have provided a mechanism to assist with this process.
  First, please ensure your system is up to date with the latest package
  updates for Precise. Then, run the command below and follow the
  instructions which are output:

hwe-support-status --verbose

  For further information and details, please see:
  https://wiki.ubuntu.com/1204_HWE_EOL

  Thanks, Leann Ogasawara

From the website:

  What is HWE?

  Hardware Enablement Stacks (HWE) are incorporated into installers for
  select Ubuntu LTS (Long Term Support) point releases. It is a special
  Ubuntu feature that provides an LTS release with hardware support
  introduced in newer Ubuntu releases. For Ubuntu 12.04 the point
  releases are .2/.3/.4/.5 and the corresponding Ubuntu releases are
  12.10/13.04/13.10/14.04.

...

  End-of-life (EOL) for 12.04, 12.04.1, and 12.04.5 HWE is April 2017 but for the other HWE stacks it is roughly when 14.04.1 is released: Aug 8, 2014.

How I read this? 12.10, 13.04 and 13.10 are end of life so their HWE are end of life.
12.04 and 12.04.1 use the 12.04 HWE. All other point releases move to the 14.04 HWE.

Seems logical?


Ubuntu 16.04 with Titan X and Asus X99-A II (initramfs) Unable to find a medium

removing quiet splash from syslinux.cfg seems to do the trick.
I also kept changing terminals (ctrl+alt+f?) during the splash screen.


Broken Package and Unmet dependencies while installing LSPHP

This error you have is triggered by the php packages on your system.
Make sure to remove them all by:

apt-get remove php\*
apt autoremove

And reinstall lsphp


No desktop recording application works for me on Ubuntu 20.04.1 LTS

I tried recordmydesktop and it worked for me. I didn't try any other.


You need to change the boot order in BIOS. http://helpdeskgeek.com/how-to/change-boot-order-xp-vista/ should explain it. Your USB port probably is set lower on the list, so your hard drive always takes precedence.


Type these commands into terminal after fresh boot before printing.

sudo modprobe usblp
ls -l /dev/usb/lp0
sudo ccpd start


Overlapping/Comparing two files and printing what didn't match

comm is  your friend here:

If the files are sorted already:

comm -3 f1.txt f2.txt

If not sorted, sort and pass them as file descriptors using process substitution (so that we don't need any temporary files):

comm -3 <(sort f1.txt) <(sort f2.txt)

Example:

% cat f1.txt
123.txt
456.txt
789.txt
101112.txt

% cat f2.txt
123.txt
789.txt
101112.txt

% comm -3 <(sort f1.txt) <(sort f2.txt)
456.txt


Fresh install of Kubuntu 14.04 on desktop system will not shutdown. Why?

I am also very new to Ubuntu world, but what i can suggest is you check in system settings the power option. Check it carefully because may be some setting there might be preventing your system from shutting down.


I've tried to upgrade from 14.04 to 16.04, but suddenly got the same boot error:

usb 3-1.6: device descriptor read/64, error -110

As far as I understood this error says about malfunction of USB power supply.
But the main issue is near NVidia graphic driver Cannot install Ubuntu 15.10 on Dell Precision M6800

I've tried to boot Ubuntu 14.04 from live CD, all was OK. So I desided to roll back to 14.04.


How do I install gcc-5.3 on Ubuntu 16.04

You don't need to install gcc=5.3 from source in that case. You can use a conda environment (install Miniconda or Anaconda) and install gcc_linux-64=5.3.


How to integrate KeePass2 and Firefox using Kee in Ubuntu 18.04 - 20.04?

Ubuntu 14.04, 15.10 / Linux Mint 17

First, you neither need PassIFox nor the extra PPA describe by @Faisal Haq Salafi as mono-complete and keepass2 are already available in the repository.

Installation

Download & Install KeeFox add-ons
install keepass2 and mono CLI compiler and system manager library:

sudo apt-get install keepass2 mono-dmcs libmono-system-management4.0-cil libmono-system-numerics4.0-cil

upvote Faisal Haq Salafi for answer basis;
upvote Simounet for narrowing down the package list (6Mo vs. 125Mo with mono-complete);

Configuration

KeePass plugin location: /usr/lib/keepass2/plugins
Keefox

KeePass installation location: /usr/lib/keepass2
Mono executable location: /usr/bin/mono

KeePassRPC plugin

# create a plugins sub-directory in keepass2 directory
sudo sh -c 'mkdir /usr/lib/keepass2/plugins'
# copy the keefox plugin into it
sudo ln --force --no-dereference --symbolic $HOME/.mozilla/firefox/*.default/extensions/keefox@chris.tomlinson/deps/KeePassRPC.plgx /usr/lib/keepass2/plugins/

Restart

Quit and restart both:

Keepass2, then unlock your vault;
Firefox, check keefox icon for information


Four Partitions - But Which One Holds the Operating System?

the df command shows all mounted devices and their mount points:

$ df
Dateisystem    1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
udev             1003044       0   1003044    0% /dev
tmpfs             204848    8816    196032    5% /run
/dev/sda1        8170180 8102904         0  100% /
tmpfs            1024228   26292    997936    3% /dev/shm
tmpfs               5120       4      5116    1% /run/lock
tmpfs            1024228       0   1024228    0% /sys/fs/cgroup
cgmfs                100       0       100    0% /run/cgmanager/fs
tmpfs             204848      20    204828    1% /run/user/1000

the system partition is moutet on / so you get that with the command:

$ df /
Dateisystem    1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sda1        8170180 8102904         0  100% /


How to hide wine app titlebar when window is maximized

The fix is simple. Launch CompizConfig Setting Manager (apt-get install compizconfig-settings-manager) and open Window Decoration setting and in the Decoration Windows field, delete the existing rule any, then enter (!state=maxhorz & !class=wine)

If you got that right, your wine app titlebar should no longer appear when the app is maximized and it will be shown back when you unmaximized it.


Dual boot win 10 and ubuntu 20.04, bluetooth stop working in ubuntu after boot windows

Remove your device from auto-connect list.
Try putting below in a file:
#!/bin/bash
sleep 2; echo "connect B8:F6:53:F6:86:0F" | bluetoothctl

2 is the seconds, you can increase the number to allow computer to boot up completely.
Right-click on it, and if 'Is executable' not selected, select it.
Add it to startup programs (Settings - Startup and Shutdown - Autostart)
(If you save it on desktop, you can click on it whenever you need to connect)
This works if your device id is correct.
Check hcitool dev and hcitool scan to see if it is.
(hcitool might not be installed, you might need to find the appropriate command for your bluetooth package or install hcitool)


From  http://font.ubuntu.com/about/:

Both the final font Truetype/OpenType files and the design files used to produce the font family are distributed under an open licence and you are expressly encouraged to experiment, modify, share and improve. The typeface is sans-serif, uses OpenType features and is manually hinted for clarity on desktop and mobile computing screens.

Next step: consult a lawyer about the licence and what it allows.


Asogiate won't work on 11.04. How do I fix that?

I found the solution.

It turns out that Asogiate was correct, and my database was corrupt. To fix this, I had to remove ~/.local/share/mime/ and then when I ran it again it worked.


apt-get broken after upgrade from 32-bit to 64-bit

Use the command to initiate an interactive prompt of which packages you want to keep or get rid of to resolve the dependency problem:

sudo aptitude full-upgrade

This will go through a series of questions asking you which package to keep or remove. Note you don't have to select the first options given to you.


How to choose between different versions of Qt 5?

The answer is posted here , you can use the first answer and then edit default.conf in /usr/lib/x86_64-linux-gnu/qtchooser like I did here:

#/usr/lib/x86_64-linux-gnu/qt5/bin
#/usr/lib/x86_64-linux-gnu
/usr/lib/debug/opt/qt54/bin
/usr/lib/debug/opt/qt54/lib

or you can go with the second answer. (up to you)


How do I turn off the discrete card on boot when there's no option in the BIOS?

On ubuntu, try add this two lines into /etc/rc.local file before exit 0:

echo IGD > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

Save the file and check your cards:

cat /sys/kernel/debug/vgaswitcheroo/switch

Source: http://ubuntuguide.net/ubuntu-12-04-turn-off-discrete-graphic-card-on-boot


gzserver error while loading shared libraries

To completely reinstall it use:
sudo apt-get purge gazebo then sudo apt-get update && sudo apt-get install gazebo.

Then try to launch it again with gzserver.


What does it mean if my system shuts down unexpectedly with no message in the logs?

You are correct - powering off without warning or logs is a classic symptom of faulty hardware.

Ubuntu does NOT have a "poweroff without warning" or "poweroff with logging the reason" feature (who would want those?).

Unexpected poweroff may have many possible causes. The two most common are overheating and a failing power supply. Look to those first.


Add these lines to your /home/$USER/.bashrc file:

export JAVA_HOME="/usr/lib/jvm/java-9-oracle"
export PATH=$PATH:$JAVA_HOME/bin

Then source that file with source ~/.bashrc or close that terminal and reopen then try your code again.


RAM not fully usable in 64-bit Ubuntu GNU/Linux

This is your on-board video card stealing your main RAM as it has no VRAM of itself.

2 possibilities to solve this issue:

Disable the on-board video not the GPU in your BIOS.

On newer BIOSes, disable 'Hybrid' mode and set it to discrete GPU only (NVidia in your particular case)
On older BIOSes, you can choose how much RAM to allocate to the on-board video, with 0 disabling it)

Disable through hardware switch. (Not for the faint at heart)

Download your computer's Service Manual, disassemble your PC, disable the video hardware switch.


From the instructions, it is clear that you have compiled wine in two different directories. One directory is ~/wine64 and the other one is ~/wine32. So, you will have to run sudo make install separately in both the directories.

In the Note part of "Building a shared WOW64 setup, it is clearly mentioned that:

  Make sure you always compile wine64 first to have the tools needed for
  wine32, the order of installing them is nonrelevant.

If you have the followed the instructions correctly, you will automatically have compiled wine64 before compiling wine32. It also indicates that both the directories need to be installed and the order in which you install them is irrelevant.


How do I rebuild and test Nautilus source?

In order to download the source and re-build it, do this:

Install all build-dependencies for nautilus: sudo apt-get build-dep nautilus
Run apt-get source nautilus in a directory you want the source.
cd into the nautilus- directory.
Run debuild -uc -us. This creates an unsigned source, unsigned changes file and one or more binary packages. You'll find these one level of a folder lower.
Install the package(s) using sudo dpkg -i /path/to/binary-package1.deb /path/to/binary-package2.deb [...].
Make changes to the source, and rebuild/install as many times as you like.

You can apply this recipe to any Debian/Ubuntu package.

To undo the installation of your modified version, simply revert to the main upstream Ubuntu version of the package by reinstalling and selecting that version in your package management. This keeps your system clean without files everywhere unmanaged by your package management.


shortcuts/links to windows partition disappear on reboot

Windows partitions (ntfs) are not mounted when you reboot ubuntu. So your link is invalid.

To do automount :

Option 1

Use NTFS Configuration Tool

You can install it from Ubuntu Software Center.

Option 2

Manually edit /etc/fstab.

Follow here


Got it!

It so happened that somehow Gnome hadn't been installed at all.
So, I went ahead and installed Gnome using

sudo apt-get install gnome-shell

And things are back to normal!


Running a similar setup to yours, my solution was to place a script in /etc/init.d that configures each machine at boot. There is probably a better way to do this via lts.conf, but this works for my setup.

Steps

Create different variations of configuration files (lirc, xorg, etc.) for each client
Store these different config files in the ltsp image with different names (lircd.conf.machine1, lircd.conf.machine2, etc.)
Create script that runs at boot, and copies appropriate config files to appropriate locations based on hostname
Run update-rc.d <script_name> defaults so the config script runs at boot

Here's the script I use, feel free to customize to meet your needs (hostnames redacted, suggestions for improvement are always welcome). Note that machine specific xorg.conf files aren't stored in the image, it is just created at every boot using nvidia-xconfig:

#!/bin/bash

# This script performs configuration of hardware
# specific components for HTPC frontends.
# log output to temp directory
exec > /tmp/htpc_config.log

# LIRC hardware and configuration
# files in place of defaults based on hostname. Required
# to automatically configure LIRC on machines with
# different hardware.
htpc_*****_suffix=".br"
htpc_*****_suffix=".lr"
lirc_hw_conf="/etc/lirc/hardware.conf"
lirc_conf="/etc/lirc/lircd.conf"

if [ "$HOSTNAME" = "*****" ]
then
    cp $lirc_hw_conf$htpc_*****_suffix $lirc_hw_conf
    cp $lirc_conf$htpc_*****_suffix $lirc_conf
    echo "Applied LIRC configuration for ***** frontend."
    service lirc restart
elif [ "$HOSTNAME" = "*****" ]
then
    cp $lirc_hw_conf$htpc_*****_suffix $lirc_hw_conf
    cp $lirc_conf$htpc_*****_suffix $lirc_conf
    echo "Applied LIRC configuration for ***** frontend."
    service lirc restart
else
    echo "Unable to match hostname $HOSTNAME."
fi

# Xorg.conf generation using nvidia-xconfig
xorgconf="/etc/X11/xorg.conf"

if [ -f "$xorgconf" ]
then
   echo "/$xorgconf exists, nothing to do."
else
   touch "$xorgconf"
   nvidia-xconfig -s
   echo "Generated $xorgconf using nvidia-xconfig."
fi


Unity shortcuts for switching to the next/previous windows in group and the next/previous applications?

I wrote my own script:

Notes: call it with python script.py next OR python script.py prev FROM a Compiz custom command OR Gnome custom keyboard shortcut.

#!/usr/bin/env python
# by desgua
# version 0.1.3 - May 06 2011
# To minimize with unity Launcher
# Modified for next/previous active windows by Andrei Canciu <andreic@gmail.com>
##################################
import os
import wnck
import gtk
import sys
screen = wnck.screen_get_default()

if not (len(sys.argv) >= 2):
  sys.exit()

command = sys.argv[1]

while gtk.events_pending():
    gtk.main_iteration()

windows = screen.get_windows()
active_app = screen.get_active_window().get_application()
active_window = screen.get_active_window()
active_windows = []
previous_window = None
next_window = None

if (len(windows) == 0) or (not active_app) or (not active_window):
  sys.exit()
for w in windows:
    if w.get_application() == active_app:
        active_windows.append(w)

if len(active_windows) == 0:
  sys.exit()

for i in range(0, len(active_windows)):
  current_window = active_windows[i]
  if current_window == active_window:
    previous_window = active_windows[i-1]
    if i+1 >= len(active_windows):
      next_window = active_windows[0]
    else:
      next_window = active_windows[i+1]

    break

if (not next_window) or (not previous_window):
  sys.exit()

if command == 'next':
  next_window.activate(1)
else:
  previous_window.activate(1)


This is from a quick Google search and is a bit old, but http://ubuntu-tutorials.com/2010/01/17/install-dropbox-on-kubuntu-kde-without-nautilus/ covers how to install Dropbox and get it working w/o all the dependencies and the notifier running.  Might still work for you.


How can I apt-get from the Maverick repository into Lucid?

you can download from here, check if you don't have dependency problem

if you want to search for a specific package you can do it from here


No launcher and menu bar on ubuntu 16.04

I had the same problem. Out of the blue the launcher, menu bar and window had disappeared. Other users of the same installation had no problems, so it had to be a user configuration problem. I tried several of the mentioned solutions, but only this one worked:

mv ~/.cache/compizconfig-1 ~/.cache/compizconfig-renamed
shutdown -r 0

After that the controls came back after logging in and I resized the buttons in the launcher again.


Why is my Sandy Bridge i915 video adapter periodically freezing under load?

I've had a similar problem, this solution worked for me.


Unity 3d shows only wallpaper where as unity 2D works fine

I found a workaround to my problem. The problem was with the Nvidia Driver current version (295.40). I had to rollback to the previous version and find out if I can login to Unity 3D. I downloaded the older version of Nvidia Driver (295.33) to Desktop.

I restarted and logged into recovery mode. I selected the 'root' option and logged in as root. I installed the older Nvidia Driver (295.33) using following commandline

cd Desktop
sh ./NVIDIA FILE NAME.run

I followed the onscreen instruction and installed the driver. After installing I restarted the computer and this time I able to log into Unity 3D. :)


Conveniently schedule a command to run later?

You can use the at command.  The at execute commands at a later time. The at utility shall read commands from standard input and group them together as an at-job, to be executed at a later time.

Usually, at is installed by default in Ubuntu, but if your release doesn't include it, install via:

sudo apt-get install at

For more information, options, examples, and others, see the manpage in man 1 at.

Example of a relative time specification (note the space between + and the duration):

at now + 8 hours -f ~/myscript.sh

You can also use convenient shorthands, like tomorrow or noon, as in

echo "tweet fore" | at teatime

Note: This will run the command to the left of the pipe immediately - and its output (which is piped to at) will be run by at at the scheduled time. So, the above command schedules tweet fore to be run at teatime.

The example also demonstrates how you can pipe actions into at.  at -c is the way you can examine scheduled actions, which you can conveniently list with their number, as with:

at -c 3


Is it possible to turn the video card off in a laptop to use it as a headless server?

The nouveau driver doesn't have a good reputation when it comes to power saving, and since it uses KMS it is probably in use even without X running. Try blacklisting it. Put the following in /etc/modprobe.d/blacklist-nouveau-local.conf:

blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

and then reboot.

However, it might be necessary to install the proprietary driver and load up X to get proper power management of the card.


Key differences between 10.04 LTS (Lynx) and 12.04 LTS (Pangolin) that would matter to programmers?

Well, some basic things you may want to be aware of are that Oracle (Sun) Java is no longer in the repositories. You can still install it, via the official Java page, but it isn't nearly as easy to install and update as it used to be. Git, Rails, and RVM work fine in 11.10, and should in 12.04 as well.

You may run into various issues with program compatibility if you use a lot of lesser known packages, but most tend to work perfectly well in the newer versions of Ubuntu. The biggest pitfall is if you are using a 64-bit installation, programs requiring the old ia32-libs method of 32bit compatibility will not work, since ia32-libs is no longer supported.

The good news is that all the main programs will work just fine with no new issues, but there may be some minor issues with some fringe applications working, at least in the beginning.

Also, I recommend staying away from Unity if possible. Its not that great, and while it should stabilize considerably in 12.04, it still isn't terribly flexible. I recommend using Gnome-shell and getting accustomed with the way it works. I keep Unity installed in case I ever want to use it, but I have Gnome set as my default.

Overall, you can't go wrong upgrading to the new LTS release when it hits stable, just be aware of what has changed and that all the programs you use have support for it.

I'm not entirely sure what you mean by Windows interoperability, but nothing significant has changed in that regard with 12.04 that I am aware of.


mysql error 1045(280000) access denied for user 'debian-sys-maint '@' localhost using password 'yes'

The error message tell you that, your password is wrong or the account debian-sys-maint has no access to the database on host localhost.

If you are sure your password is correct you should grant all privileges like this:

login as root first

mysql -u root -p <password>

then, grant full permissions:

mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'your password';

restart mysql and see if the error message is gone.


What are the differences between "su", "sudo -s", "sudo -i", "sudo su"?

The main difference between these commands is in the way they restrict access to their functions.

su (which means "substitute user" or "switch user") - does exactly that, it starts another shell instance with privileges of the target user. To ensure you have the rights to do that, it asks you for the password of the target user. So, to become root, you need to know root password. If there are several users on your machine who need to run commands as root, they all need to know root password - note that it'll be the same password. If you need to revoke admin permissions from one of the users, you need to change root password and tell it only to those people who need to keep access - messy.

sudo (hmm... what's the mnemonic? Super-User-DO?) is completely different. It uses a config file (/etc/sudoers) which lists which users have rights to specific actions (run commands as root, etc.) When invoked, it asks for the password of the user who started it  - to ensure the person at the terminal is really the same "joe" who's listed in /etc/sudoers. To revoke admin privileges from a person, you just need to edit the config file (or remove the user from a group which is listed in that config). This results in much cleaner management of privileges.

As a result of this, in many Debian-based systems root user has no password set - i.e. it's not possible to login as root directly.

Also, /etc/sudoers allows to specify some additional options - i.e. user X is only able to run program Y etc.

The often-used sudo su combination works as follows: first sudo asks you for your password, and, if you're allowed to do so, invokes the next command (su) as a super-user. Because su is invoked by root, it does not require you to enter the target user's password. So, sudo su allows you to open a shell as another user (including root), if you're allowed super-user access by the /etc/sudoers file.


Wifi is disabled and Network applet's "Enable Wfi" is not clickable

Hard blocked: yes

refers to the fact that there is a physical key combination or other button disabling your wifi.

In my case I had to click [Fn] + [F11]

and on my other laptop there is a toggle button on the left side I had to slide.


Are there multiple LTS distributions available?

Let me explain a bit how the "enablement stack" model works for 12.04 and subsequent releases.

A problem with LTS releases was that hardware support became "frozen" to whatever the LTS kernel supported. However, a lot of new hardware may come out in the 2 years between LTS releases, and while this new hardware is added to non-LTS releases, there was no official mechanism to "backport" this support to the preceding LTS release.

The "enablement stack" model works as follows. When a new stable version of Ubuntu comes out, its kernel and graphics driver stacks get "backported" or packaged for the preceding LTS. This enables people using that LTS to upgrade only the kernel and graphics drivers and enjoy the added hardware support (and other features, maybe, as the kernel also gets new goodies all the time) of the most recent Ubuntu release.

For instance, 12.04 received:

The 3.5 kernel from Ubuntu 12.10 with the 12.04.2 point relase/stack.
The 3.8 kernel from Ubuntu 13.04 with the 12.04.3 point relase/stack.
The 3.11 kernel from Ubuntu 13.10 with the 12.04.4 point relase/stack.
The 3.13 kernel from Ubuntu 14.04 with the 12.04.5 point relase/stack.

In addition to providing new hardware support, this allows Canonical to consolidate support resources: as you noted, once an LTS is released (in this case, 14.04), its kernel gets backported to the previous LTS release (12.04) and that enablement stack will continue to be supported for the remaining 2.5 years before 12.04 ends its life.

This way, 12.04 users benefited from hardware support upgrades until a new LTS is available (14.04). At that point they can choose to continue with 12.04 (no additional hardware support, though it will receive security updates), or upgrade to 14.04.

Another rationale behind not adding new hardware support to 12.04 is that, if you buy new hardware and are installing from scratch, you may as well install 14.04 which is the most current LTS.

  How does this effect the software/kernel/OS update, patch, and
  development cycle of Ubuntu 12.04 LTS?

As I mentioned, 12.04 will continue to receive security and other critical updates. However, only the 3.13 kernel for 12.04 will be upgraded; older kernels will not receive any more upgrades, so you really should update to the latest kernel. This is usually safe to do, as those kernels are very well tested. The rest of your applications and software stack stay the same and continue to receive updates until 2017.

Is Ubutnu 12.04 Still in service until 2017, such as it was that last time I checked?

Yes, it is, and it will continue to receive security updates until then. Note however, that there will be NO new "enablement" stacks; so the hardware support provided by the 14.04 enablement stack will be the last update it will receive. This means that 12.04 will probably not support new hardware that may come out.

Is there any reason to upgrade our machines to 14.04 LTS, or should be just wait until 12.04 LTS is no longer supported?

That's the whole point of the 5-year LTS support cycle. You can keep your hardware and 12.04 installed on them until then, no problem.


Why does Ubuntu gets stuck on the loading screen?

Apparently, the proprietary NVIDIA drivers are the cause of your problem. See the answer to this question.

You can remove these drivers (using the Additional Drivers panel), but then you are stuck with the open drivers (nouveau), which are limited.

Also, read https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

Furthermore, there is a PPA supposedly distributing the newest version of the Nvidia drivers, but apparently some people run into problems with these drivers.


How to install legacy nvidia drivers in 14.04?

Unfortunately, there is no way to make 173.xx work on anything past Ubuntu 10.04 (that's when I last used the nvidia drivers on Ubuntu).

My issue was that my computer only has the "old" PCI - that is, no PCI Express slots. As such, I had to find a graphics card that fits in there.

Luckily, I found a GeForce 6200 card (with PCI!) on eBay, which uses the nvidia-304 drivers. Now it works fine on 12.04.
This fix -- if you want to call it that -- will cost you about US$40, or whatever people are selling them for.

Good luck to anyone else who has this issue.


How to install Deepin Desktop Environment in Ubuntu 16.04 LTS?

There is no official support in repository for Ubuntu 16.04

You can see it, if you click on the link https://packages.linuxdeepin.com/deepin/dists/

We'll have to install from source: https://github.com/linuxdeepin


Why does Ubuntu 12.10 wifi keep disconnecting?

I resolved my issue by installing Ubuntu 13.04 (daily build, 20. March). Now, I am writing this answer on Ubuntu 13.04. The wireless issue is solved completely. Other hardware is working perfectly fine.


How to uninstall Oracle JDK in Ubuntu 16.04 LTS

To remove Oracle JDK completely, run the commands given below(one-by-one) from terminal :-

Check which JDK packages are installed

sudo dpkg --list | grep -i jdk
Remove Oracle Java 8 completely

sudo apt-get purge oracle-java8-installer
sudo apt-get autoremove

Check that all JDK packages have been removed

sudo dpkg --list | grep -i jdk

Then if you want to, you can also purge the PPA.


Those are Xserver open windows. Every opened window will appear in this list. For example if you start nautilus this new window will also appear in the list.

Those 5 windows without names are also opened windows. They belong to the Unity. If you click on one of them with the right mouse button and go to Information you will see the window ID:

In order to obtain more information you can then open a terminal and type:

xwininfo -all -root | grep 0x3800008

in my case this corresponds to the unity panel:

  0x3800008 "unity-panel": ()  1440x24+0+0  +0+0

Another four come from the Unity launcher, dash, HUD and from the login screen. You can also see this if you select one of them and click on the play button of VLC.


Why does powertop think I have two displays?

I have a MacBook Pro running Leopard and Ubuntu 11.10 in dual boot. System monitor also gives me the same 2 cpu working, and I had one of them always at 100%. I changed the NVIDIA propietary driver to the "current-updates" version and it helped, now both cpu run around 30%. Also, battery life seems to have been extended and I have less heat problems (still, the laptop heats up way more when running Ubuntu than when running MacOS)


Running ubuntu from LIveCD with no harddisk

Sure you can. The live CD uses RAM, not the harddrive.

I see this is a duplicate: Will Ubuntu live cd/dvd work with no hard drive installed?


ZFS on Linux doesn't offer builtin encryption. What you can do is use LUKS encrypted volumes as disks in a ZFS pool.

The DMCrypt kernel module in Linux provides block device level encryption and LUKS makes it easy to setup and manage the keys, with the cryptsetup tool.

You basically layer ZFS on top of DMCrypt, so everything ZFS writes to disk will actually be encrypted on the fly. Same thing when ZFS reads, data will be read from disk, unencrypted and passed to ZFS. You should still get everything ZFS has to offer in terms of volume management and all the rest, only on top of encrypted volumes. Sounds good, but:

I'm not entirely sure about performance. Maybe it's not too bad, if your CPU has support for encryption.
Also, I think maintenance will be harder. In case a disk breaks, ZFS will let you know the pool is in faulted status and you will need to replace the drive. Before you can attach the new drive to the pool, you will have to setup the encryption for that particular drive.

I have to say (and I'm aware you didn't ask, but I think is relevant) I'm not a big fan of online/mounted encrypted volumes on hard drives, because the encryption will actually protect data only when the drives get unmounted and detached from the system. As long as the system is on and the encrypted partition is mounted, data is available unencrypted. I think there is a compromise to make here: encrypted, more secure data, in exchange for lower performance and harder maintenance. Now, if you fear someone could take your disks away from you, maybe you have a good use case for ZFS over LUKS.

I normally use LUKS for removable media and I don't use ZFS on usb drives, so the compromise is easier to make in that case.

I have personally never used LUKS in combination with ZFS, but others did. For example, you could take a look at this article for some inspiration: Encrypted ZFS with Ubuntu.


Ansible for Juniper on Ubuntu 20.04 - interpreter error

Possible answer to  fix the issue : script looking for /usr/bin/python3.8.5 could be
cd /usr/bin
sudo ln -s python3 python3.8.5

this will make a link "python3.8.5" in /usr/bin which points to /usr/bin/python3
not really a clean solution
a better solution could be to change the script that searches for python3.8.5 to just search for python3 or python3.8 - but I have no idea where this 3.8.5 comes from


Not an Ubuntu question, really, but...

SPF is the Sender Policy Framework. Using DNS, an "SPF record" (a TXT record) declares which SMTP servers are allowed to send mail from your domain. Therefore, you must modify the DNS records for cgc-instruments.de to include an SPF record for the SMTP server,  "pre-configured virtual server ."

nslookup
>set q=any
>cgc-instruments.de

The result:

cgc-instruments.de
    origin = lvps83-169-21-132.dedicated.hosteurope.de
    mail addr = ivo\.cermak.cgc-instruments.com
    serial = 1262369762
    refresh = 10800
    retry = 3600
    expire = 604800
    minimum = 10800
cgc-instruments.de  nameserver = ns2.hans.hosteurope.de.
cgc-instruments.de  nameserver = lvps83-169-21-132.dedicated.hosteurope.de.
cgc-instruments.de  text = "v=spf1 +a +mx -all"
cgc-instruments.de  mail exchanger = 10 mail.cgc-instruments.de.
Name:   cgc-instruments.de
Address: 83.169.21.132

You can see the SPF record, version one: 'v=spf1 [...]'

Also I have never seen a backslash in a domain name... see this in mail addr?
Is that right? It does not look right to me.


ProLiant Microserver Gen8 clean install drops into grub rescue shell

Just solved it by running the Ubuntu Desktop live iso from iLO virtual media (with a free iLO Essentails trail from HP) and running boot-repair.

Bit weird it didn't work out of the box, but hey, at least it's working now.


I use fc-list command to view the list of fonts installed.


error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory on Ubuntu 19.10

It's good you got it working, but as of the time of this post I see different/newer versions for Ubuntu disco (19.04) 6.5.0-2ubuntu1 vs 6.4.0-17ubuntu1 for Ubuntu bionic (18.04). The version you have, Eoan Ermine (19.10), probably does not have it yet which is why you got the error doing sudo apt-get install libgfortran3.

You may also try using the libraries from 19.04 here https://packages.ubuntu.com/disco/libgfortran3


so I managed to solve my own problem, I am posting this for informative use incase anyone reads it later down the line:
first, as @Marble told me to do, i removed the ubuntu-wine from Software&updates -> Other Software.
=> apache2 was installed
then, to solve the problem relateed to javascript-common
i entered these commandes :

apt-get remove javascript-common

apt-get --purge remove javascript-common

apt-get purge javascript-common

now problem solved :)


Unable to download updates from extensions.gnome.org

I was having same problem, no Internet issue was there. I did following -

Installed gnome-shell-extensions again

sudo add-apt-repository ppa:gnome-shell-extensions/ppa
sudo apt-get update
sudo apt-get install gnome-shell-extensions

I reinstalled gnome shell extension in firefox, and after some time, it started working. After that Ubuntu Software Manager showed no such error.


I would recommend you to use Ubuntu Tweak to manage your themes and icons.

You can install by downloading the deb here, as the PPA doesn't seem be working on 15.10.


Why doesn't my trackpoint configure save, despite udev rule?

I have no idea why, but an udev rule didn't work for my x200 either. What did work however is this upstart-job from the german ubuntuusers-wiki.

just create the file /etc/init/trackpoint.conf as root

    sudo gedit /etc/init/trackpoint.conf

with the following content:

description "Trackpoint-Settings"
env TPDIR=/sys/devices/platform/i8042/serio1/serio2
start on virtual-filesystems
script
  while [ ! -f $TPDIR/sensitivity ]; do
    sleep 2
  done
  echo -n 200 > $TPDIR/sensitivity
  echo -n 150 > $TPDIR/speed
  echo -n 0 > $TPDIR/press_to_select
end script

change the path in the second line to the path where your trackpoint-settings are saved. It should be one of these:

/sys/devices/platform/i8042/serio1
/sys/devices/platform/i8042/serio1/serio2
/sys/devices/platform/i8042/serio4/serio5

and adjust the echoed values (sensetivity and speed 0-254; press to select 0 or 1).


How to know all files in Ubuntu having stickybits?

This command should serve you (-perm flag used to be +1000)

find / -perm /1000

Details:

To add a stickybit Numerical/octal way you have to add "1" to the beginning of the directory.
example:

chmod 1757 ~/Desktop/test

so know to search for a stickybit you have to search for all files having "this one" which means having permissions +1000 (1 here goes for stickybit and "000" for whatever the initial permissions are)

So this command will search the whole filesystem for every file that have permission "+1000".

Now if you have test this command then you can notice that many errors raise here which make the output unclear, and this errors happen because you are trying to search in some places and you don't have a read access on it.

So to get rid of these errors you can redirect those errors to /dev/null

 find / -perm +1000 2> /dev/null

Moreover you can redirect the output to a file"output.txt" rather than keep output in the "terminal stdout"

find / -perm +1000 >output.txt 2>/dev/null


How to set lubuntu to lock the screen after idle?

If you use xscreensaver, as we do, tick the box at the bottom of this screen:

Otherwise, set your desired options on this screen:


iam unable to browse internet through tata photon while local area connection is established on 12.04

This is not a problem. You can not use internet through wifi and LAN at the same time. Only one will be used at any time.


Create a special version for rebuilt package

Run dch -i in the source directory to add a new changelog entry. If you update the version line to something like 0.7.1-1ubuntu0+marco1 (the key being the +) it'll sort as being newer than 0.7.1-1 but still older than 0.7.1-1ubuntu1 when Ubuntu releases a security update (since missing security updates is bad)

If you really want to not get security updates for it, you can lock the version of the package with sudo aptitude hold suphp


I had the same message on debian.  I couldn't get the message to leave.

(Beware that if something goes wrong, you could have a system that won't boot.  Maybe download a live USB stick.  )

under root / sudo -i run:

apt remove grub-legacy
apt install grub2 grub-pc
cd /boot/grub ; mv menu.1st  menu.1st.save
grub-install /dev/sda --recheck   # repeat this if you have any mirrored disks
update-grub

Which is basically kind of a manual install of grub.


How do I copy the VM to another computer?

You need to EXPORT your VM from source machine and IMPORT it back on destination machine.

Check this link:
How to export and import VirtualBox VM images?


Can you force network manager to use localhost for new wifi networks?

Through the use of dnsmasq and systemd-resolved, your system already uses localhost (127.0.0.x) for DNS lookups and caching.

In terminal, type cat /etc/resolv.conf (don't manually edit this file) and you'll see either 127.0.0.1 or 127.0.0.53, depending on whether dnsmasq or systemd-resolved is managing the DNS. They'll use local cache first, and then probably go out to your router (192.168.x.1) for lookups. Specific DNS servers can be specified in the local computer's network script, or in the router setup. In a perfect world, you shouldn't probably be running both dnsmasq and systemd-resolved at the same time.

To check your system... in terminal...

ps auxc | grep -i dns

ps auxc | grep -i resolv


Canon LPB2900B Not Working in Ubuntu 12.04

You should follow the guide.

For me it worked only with 32bit ubuntu 12.04.


I cannot get wifi working Dell Vostro 3550 running Ubuntu 14.04

Hard blocked: yes in rfkill suggests that the wireless is hardware blocked; in other words, the wireless switch or key combination is set to disable wireless. Please find the switch or key combination and enable the wireless.

The device in question, Intel Corp Centrino Wireless-N 1030, should work by default in Ubuntu 14.04 with no further driver or firmware installation required.


Computer has been automatically booting into GNU GRUB

To edit the default that grub will boot, boot your USB Ubuntu disk and edit this file:
sudo nano /etc/default/grub

and set the GRUB_DEFAULT= to the (0-based!) number of the entry you use when you see the grub menu to get to MacOS (after holding Alt). (So: first entry: 0, third entry: 2, etc). Then run:
sudo update-grub

To 'set' the default option you'll boot by default (being MacOS for your family members).
Also, you could change GRUB_HIDDEN_TIMEOUT_QUIET= to false - this will always show the menu (without pressing Alt).
A side note: On dual boot systems, I set GRUB_DEFAULT=saved and add a line GRUB_SAVEDEFAULT=true. This will make grub remember what was started last.
Don't forget sudo update-grub after every update of /etc/default/grub.


First, return everything to default in the config files.

Then, you can install the ALSA oem-audio-hda-daily-dkms package using the following commands:

sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily

press Enter and then execute:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install --reinstall dkms linux-image-generic linux-headers-generic linux-tools-generic linux-source alsa-firmware-loaders alsa-base alsa-utils alsa-source alsa-tools python-alsaaudio python-pyalsa

reboot, and then run:

sudo apt-get install oem-audio-hda-daily-*
sudo rm /etc/apt/sources.list.d/ubuntu-audio-dev-alsa*
sudo apt-get clean
sudo apt-get autoclean

Reboot and if the drivers aren't loaded, run:

sudo alsa force-reload


GCC assembler output in intel syntax

Assuming you use gcc you have a flag called -masm=dialect

From the manual of gcc:

-masm=dialect
       Output assembly instructions using selected dialect.  Also
       affects which dialect is used for basic "asm" and extended "asm".
       Supported choices (in dialect order) are att or intel. The
       default is att. Darwin does not support intel.

To get a intel syntax you have to compile with

gcc -S -masm=intel adder.c

Here I have a small example:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a = atoi(argv[1]), b = atoi(argv[2]);
    int sum=0;

    sum = a+b;
    printf("%d + %d = %d\n", a, b, sum);

    return 0;
 }

Save this as adder.c and compile it

gcc adder.c -o adder

and test the program with

./adder 1 4

The output should be

1 + 4 = 5

Now make an intel asm file with

gcc -S  -masm=intel adder.c

Here the first lines of adder.s

.file   "adder.c"
    .intel_syntax noprefix
    .text
    .section    .rodata
.LC0:
     .string    "%d + %d = %d\n"
     .text
     .globl main
     .type  main, @function
main:
.LFB5:
    .cfi_startproc
    push    rbp
    .cfi_def_cfa_offset 16
    .cfi_offset 6, -16
    mov rbp, rsp
    .cfi_def_cfa_register 6
    sub rsp, 32
    mov DWORD PTR -20[rbp], edi
    mov QWORD PTR -32[rbp], rsi
    mov rax, QWORD PTR -32[rbp]
    add rax, 8
    mov rax, QWORD PTR [rax]

Using intel syntax in GDB

Now compile the last example with debug option:

gcc -g adder.c -o adder

Open gnu debugger

gdb -q --args ./adder 3 5

and set the flavor

set disassembly-flavor intel

set a break at main

b main

and run the program

r

If you type now

disassemble

you will get the code in intel style:

(gdb) disassemble
Dump of assembler code for function main:
   0x000055555555468a <+0>:     push   rbp
   0x000055555555468b <+1>:     mov    rbp,rsp
   0x000055555555468e <+4>:     sub    rsp,0x20
   0x0000555555554692 <+8>:     mov    DWORD PTR [rbp-0x14],edi
   0x0000555555554695 <+11>:    mov    QWORD PTR [rbp-0x20],rsi
=> 0x0000555555554699 <+15>:    mov    rax,QWORD PTR [rbp-0x20]
   0x000055555555469d <+19>:    add    rax,0x8
   0x00005555555546a1 <+23>:    mov    rax,QWORD PTR [rax]

To set your flavor back you have to change it back to at&t style:

set disassembly-flavor att

To permanently get intel syntax in your gdb, type the following in your shell:

echo "set disassembly-flavor intel" >> ~/.gdbinit

This will set the property to your .gdbinit file. To change simply edit this file.


Juju charms - how to run and debug reactive charm

I had the same problem because in some way my set_state('myservice.installed') was triggered even when I got the error that my installation hook had failed. I did not found a specific solution to run a certain piece of code but a good workaround can be to change the event that would normally trigger your code and rerun hooks/install. I only tried it with juju debug-hooks and not with juju dhx, but that did the job for me.

In my case I saw that my current state was set to 'Installed'. By changing my event to trigger the code I was able to rerun my Install-hook. In my debug-hooks session I could then see where my hook failed.

from charms.reactive import when, set_state
import charms.apt

@when('myservice.installed')
def install():
    charms.apt.queue_install(['some-package'])
    // do some extra stuff
    set_state('myservice.installed')


Is it possible to run Unity 7 on 12.10 (or maybe 12.04)?

Below are the steps to run Unity 7 (Next) on Ubunut 12.10

mkdir ~/unity
sudo apt-get install bzr
bzr branch lp:unity/phablet ~/unity/unity-next
cd ~/unity/unity-next
./build -s
./build
~/unity/unity_build/libexec/unity-people-daemon
cd ~/unity/unity-next
./run

If all of the steps above have completed correctly you should have Unity 7 running on Ubuntu 12.10.

Source:Run Unity Next on Ubuntu 12.10


Kubuntu 14.04 - right click not working on touchpad - Acer V3-572G-75CA

You should try activating the Clickpad-Setting.
This might help you:
Acer Notebook rightclick not working


Install Adwaita shell theme on Ubuntu 20.04?

I have gnome-session package installed as I am using stock GNOME on 20.04.
It has been changed to gnome-shell-theme.gresource. Located in /usr/share/gnome-shell.

I managed to extract gresource by running

cd /usr/share/gnome-shell

gresource extract gnome-shell-theme.gresource /org/gnome/shell/theme/gnome-shell.css > ~/gnome-shell.css

sudo mkdir -p /usr/share/themes/new-theme/gnome-shell

sudo cp ~/gnome-shell.css /usr/share/themes/new-theme/gnome-shell

Make sure users themes extension is enabled. Now it should appear in GNOME Tweaks.


Try

dconf reset -f /org/compiz/

then

setsid unity


There is no official Ubuntu full mirror site in Iran. There is one in Iran for the CD ISO image, which you can find here. Otherwise, your best option is to open Software Sources, and in the "Download from:" pop-up list, click on the "Select Best Server" button to access the server with the best current response time.


how to config htaccess file after enabling mod_rewrite module?

Edit /etc/apache2/apache2.conf instead of /etc/apache2/sites-available/ and edit as instructed.

Here's mine:

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>


No wired connection in 12.04 LTS (64bit)

I had the same issue after a fresh install of Ubuntu 12.04 LTS. All I did was go here:
http://howtoubuntu.org/things-to-do-after-installing-ubuntu-12-04-precise-pangolin#.UjHYe9K-qHM
and follow the instructions that they provide to download and run the script or you can execute every command that they provide but I think it's just easier to download the script and run it. I'm completely new at this but my issue was resolved after doing this. I hope this helps.


Try this:

open Makefile.config with any text editor (sudo permissions required);
find the line starting wiht “OS_ID Linux 0001 ”, it might be “OS_ID Linux 0001 3000”;
change 3000 to 3160.

Should work it out!


How can i solve this error? I am installing thirdorder using ././compile.sh command

Thank you for your responses. I solved this error by inserting the spglib directory in the setup.py file.
================================================
Add the location of the "spglib/spglib.h" to this list if necessary.
Example: INCLUDE_DIRS=["/home/user/local/include"]
INCLUDE_DIRS = ["/snap/thirdorder/7/usr/local/include"]
.
.
.


From command line without internet how to install software from the installation DVD?

I have not tried out this solution, but this is what I found after a bit of googling.

Run the command

  sudo apt-cdrom add

Insert the Disc and follow the instructions (it will ask you to name each disc). When apt-cdrom is finished with the disc, eject it with

  eject

Once the last disc is done, enter this code in the Terminal:

  sudo apt-get update

followed by

  sudo apt-get upgrade

which will update your system if any newer files are available.

Source


Cinnamon crashing on Ubuntu 18.04 EC2 AWS instance

Found solution>

It is problem with tightvncserver.

Install this one instead >
sudo apt install tigervnc-standalone-server tigervnc-common


You can disable search results highlighting by command :nohl. If you want to have this command under one keystroke, put the following lines into your ~/.vimrc configuration file:

" press F8 to turn the search results highlight off
noremap <F8> :nohl<CR>
inoremap <F8> <C-o>:nohl<CR>

Now you can press F8 to toggle search result highlighting on and off in both edit and insert mode.


Windows 7 Blue Screen then restart after loading from GRUB

I was posting this as a comment but it's too lengthy to fit, so I'm posting this as an answer.  I really don't know if this will do the job, as it's usually used for Windows boot problems and not because of a BSOD.

But since you just can't boot into Windows at all without getting the BSOD, this might be worth a try.  (I found these instructions years ago, and don't remember where I got them or whom to credit.)  After running this, if it works and you can boot into Windows again, you'll need to boot Ubuntu from a live CD and reinstall Grub.

How to repair and reboot to Windows 7:

Insert the Windows 7 System Repair DVD or Installation DVD and reboot.
Select the correct keyboard input method and click "Next".

Note: If you are using the Windows7 Install DVD then at the 'Install Now' prompt (Do not pick the Install Now option) instead choose the 'Repair your computer' option located in the lower left of the dispay.
The System Repair tool will search for a valid operating system and will report that "Windows found problems with your computer's startup options. Do you want to apply repairs and restart your computer?"
Click "Repair and restart" and reboot again to the Windows 7 System Repair environment.
Click "Next" at the keyboard selection prompt and when the "System Recovery Options" screen appears verify that the "Use recovery tools that can help fix problems starting Windows" is selected.
Note that on your Dual Boot system there now should be only one operating system listed. Click the "Next" button.
Now from the menu list select the "Command Prompt" option.
At the DOS prompt type the following three commands:

bootrec.exe  /fixmbr
bootrec.exe  /fixboot (may return an 'Element not found' message)
bootrec.exe  /RebuildBcd

Close the command prompt window and click the "Startup Repair" option.
The repair process may take some time, so wait until the process completes at which point you will see two messages "Windows cannot repair this computer automatically" and "Startup Repair cannot repair this computer automatically".

These messages are the result of the radical changes made by removing the other drive. Ignore the Send/Dont send options.
Close this message window by clicking on the X in the upper right corner of the Send/Dont send window. Next click on the "View advanced options for system recovery and support" option and from the main menu once again click "Startup Repair".

This time the repair process may only that a few seconds and when prompted "Startup Repair could not detect a problem", click "Finish"  and run the "Startup Repair" option one more time, click "Finish", and then remove the System Repair DVD and click "Restart".  Reboot the computer.


Can't write /etc/sudoers from Ubuntu live CD

Suppose you mounted your install Ubuntu system's root filesystem at /mnt on the transient live CD system, and that the partition is /dev/sda1.

Then remount it readwrite:

sudo mount -o rw,remount /dev/sda1 /mnt

If that fails, unmount the filesystem (with umount) and fsck it to find and repair any errors (see also e2fsck).

Then you can edit its sudoers file like this:

sudo visudo -f /mnt/etc/sudoers

Actually, you can edit it as root using whatever mechanism you want. For example, to edit it in such a way as to allow you to introduce errors that break it and prevent sudo from working:

sudo -e /mnt/etc/sudoers

But visudo is better because it won't save your changes to the file if they are syntactically wrong.

By using visudo when editing /etc/sudoers on your installed system (from the installed system), you avoid having to boot into recovery mode, or to a live CD, to fix it.

sudo visudo

If you do break your sudoers file, you can fix it without booting into recovery mode or rebooting, because there is another mechanism besides sudo for becoming root:

pkexec visudo

pkexec is the command-line frontend to PolicyKit. It is generally not present on server systems without a GUI, but it will be present on virtually any Ubuntu system with a GUI (and you do not actually need the GUI to be working to use it, though if there is a GUI it will give you an authentication window rather than authenticating in the terminal itself).


How do I tell whether Ubuntu phone is using 2G or 3G?

As you can see, in the status bar, you must see 3G

(Note that your wifi must be disconnect)

Please, check if the tick 2G/3G (see red dot) is marked at System Settings > Mobile:


If I'm understanding your problem correctly, this should fix it:

sudo apt-get install openoffice --fix-missing


I use dd to backup my ubuntu, but the backup image is too large

One pitfall to this backup technique is that, despite how much data is actually stored on the partition, it's likely you're going to be copying over a lot of junk data as well. Why? Well, as you add more files to your drive and then delete them, the data of your old file does not just disappear (unless you explicitly write over that memory). It's all still there. When you do a block device copy (i.e. use dd to copy the data) it has no clue the remnants of your deleted Titanic DVD is no longer something you care to have. It just mindlessly copies the bytes. And even though you don't care about that DVD, gzip won't know that so it'll compress the fairly uncompressable DVD despite the fact that it's essentially garbage.

How do you fix this?

Erm, well, you could do a file-level backup, to the tune of

tar -zcvf /media/test/system_backup.tar.gz /wherever/sda/is/mounted

But if you're going to do file-level backup you should look into incremental backup schemes.

If you want to stick with a block level backup option, perhaps you could just write zeros to the empty space by determining the space you have left on the drive and then using (e.g. for one GB of free space):

dd if=/dev/zero of=/path/on/drive/zeros.bin bs=1M count=1024

Then if you ran the same backup command it should be smaller (repeating zeros are easy to compress).

But even then you're still copying junk you don't need (i.e. all those zeros). If you can guarantee all the data you want is at the beginning of the partition (this is file-system dependent and may require a defrag) you could limit the backup size to the amount of used space, so something like (e.g. for 2GB of used space)

dd if=/dev/sda bs=1M count=2048 | gzip > /media/test/system_backup.img.gz

You can use dh to get the amount of space used:

 df -m /dev/sda | tail -n 1 | tr -s ' ' | cut -d ' ' -f 2

You could include it in the dd command like

dd if=/dev/sda bs=1M count=`df -m /dev/sda | tail -n 1 | tr -s ' ' | cut -d ' ' -f 3` | gzip > /media/test/system_backup.img.gz

Just some ideas, you'd have to try it out to see if it actually worked. :-)

Edit: Some additional notes (nothing you couldn't find by looking up the flags I used in the man pages):

In the dd command, bs specifies the block size of the copying. When copying off a hard drive, it is most efficient to copy in blocks about the same size as your drive's cache. You don't have to worry too much about that though. In fact, you don't really have to specify the block size but if you don't know the default it will be difficult to determine how many blocks you need to copy to copy the right amount of data. I chose 1MB blocks for convenience and the count flag specifies how many blocks to copy (so 10 blocks copies 10 MB of data).

The df command will give the utilization of a storage device. The -m option shows it in MB (as opposed to the default of KB). Type in that command alone and the need of the tail, tr, and cut commands should be fairly evident (tail gets the last line, tr removes the superfluous spaces inserted for formatting, cut splits the output by spaces and returns the third element (indexed as 0, 1, 2) which is the space utilized.


Logon wallpaper differs from user wallpaper

Do you have an encrypted home directory where your wallpaper is located? If so try to make a new directory e.g /wallpaper, copy your wallpaper there and set it from there.
This should work.


KDE desktop without dolphin file manager

Yes, It seems it is possible to have KDE experience without basic KDE apps. You have to install plasma-desktop package. But this will be too basic KDE to experience anything, and also note thunar or nautilus won't integrate good with KDE.
To install plasma-desktop:

Open a terminal and use the command sudo apt-get install plasma-desktop
or using Software Center

To install a good but minimal KDE experience, I suggest installing kde-plasma-desktop package. It includes basic KDE workspace with file managers, text editors, terminal emulator  etc.


The fourth column is the group to which the file/directory/asset belongs.  Run the command groups to see what groups you belong to.


Install from live USB on new Intel NUC errors out

It seems that the hard drive on the NUC was corrupted in some way.

I succeeded installing Ubuntu with the following:

downloaded Fedora's iso
Restored that image on the USB drive
started the NUC with the fedora USB drive, that worked!
During the fedora installation I could see that some partitions had been created. I deleted all those and created new ones
Fedora installation went through and could reboot into that
Restored ubuntu iso image to the USB drive (from PC)
Started the NUB with the ubundu USB drive, now it worked also!
Installation went through without problems


how to download a package with all required dependencies?

install the dependencies listed here, then you can build from source.

or try this

Update the package index:
 sudo apt-get update
Install ghc6-prof deb package:
 sudo apt-get install ghc6-prof

try this link


Ubuntu 20.04, sometimes after boot the keyboard and trackpad don't work (but the external mouse does) until reboot

It is not often that I see this issue reported with fresh installations, and rarely is it something that happens sometimes, but here are some possible solutions based on the most common causes of this issue:
1 — Install the Hardware Enablement Stack
Your notebook is certified by Canonical to work with Ubuntu 20.04, so you may be able to install the Hardware Enablement Stack, which provides newer kernels and better X support for the LTS releases. This is one of the first things I do when setting up a notebook with an LTS.
Here is how you do it:

Open Terminal (if it's not already open)
Verify that your machine is certified by Canonical:
ubuntu-drivers list-oem

There will probably be no result, which is a good thing.
Install the Hardware Enablement stack:
sudo apt install --install-recommends linux-generic-hwe-20.04

Reboot

If your keyboard and mouse are working properly, then the input problems may be a thing of the past. If not, you may need to Install the X11 Input Drivers ...
2 — Install the X11 Input Drivers
There are occasions when there will be a conflict between the Linux kernel and the X11 input drivers. This can usually be resolved by installing the xserver-xorg-input-all package:

Open Terminal (if it's not already open)
Install the input drivers:
sudo apt install xserver-xorg-input-all

Reboot (Optional)

In the event the keyboard continues to appear unresponsive, this could be due to interference from the Accessibility settings ...
3 — Check the Accessibility Settings
On occasion I have seen people lose access to their keyboard (but not the trackpoint/touchpad/mouse) due to an accidental triggering of the Accessibility settings. If you do not wish to use the Accessibility features, then they can be disabled. If you use some of the Accessibility features, then it would be good to double-check their efficacy:

Open the Settings application:

Select "Accessibility" from the left-side menu:

Find the "Typing" section:

Click on the "Typing Assist (AccessX)" option.
Confirm your settings:

Notes:

"Enable by Keyboard" will allow accessibility options to be enabled via the  shortcuts defined in the "Keyboard Shortcuts" section of Settings.
"Sticky Keys" allow you to type keyboard shortcuts one key at a time rather than having to hold down all of the keys at once. For example, rather than Ctrl+C to copy, it would be Ctrl ... C. Any length of time may pass between the keypresses, which can result in what appears to be an unresponsive key stroke.
"Slow Keys" will require a key to be pressed for a certain period of time before it appears on the screen. If it is set to "Long", then a keypress will not be registered until a key is held down for several seconds. For people who can touch-type 100+ words a minute, this can result in what appears to be a non-functional keyboard. If you use this feature, be sure the register time is configured to your liking.
"Bounce Keys" will reject duplicate keypresses within a certain period of time. Typing a word like "difficult" or "tool" with a typical typing speed of 90 words a minute would result in a missing F and O respectively. If you use this feature, be sure the acceptance delay is configured to your liking.

So long as you are not experiencing hardware failure, one (or more) of these options should ensure you have a properly functional keyboard every time your notebook boots.


You can change that in Compiz.

Install compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager

Hit Alt+F2, type about:config and hit Enter to open the Unity configuration.

Or run ccsm on the command line.
Change or disable the shortcut for Key to show the launcher as you like to free your Super key:


Dell XPS 13 shuts down/reboots rather than suspends/resumes

Similar model (Dell XPS 15 9550), same problem. Updating the BIOS to version 1.2.29 fixed this.

For future reference:

You can easily install BIOS updates on Debian using the package fwupdmgr.


How to assign disk unallocated space to ubuntu partition using terminal?

You cannot manipulate a disk's partitions while any of its partitions is mounted.
That's why all partition changing advice begins with "boot from a live USB".


Unity displaying bad colors. Why? How can I fix it?

Not really enough details were given into your setup. If you're running Ubuntu in VirtualBox, then that could be the issue. You could also try installing updates to make sure your graphics card (or any other drivers and software) are up-to-date. If the problem is still prevalent after updating, then try switching to the classic interface. This can be done by going to the login screen (either by logging out or rebooting) then going to the dropdown menu on the bottom of the screen. Change the setting from "Ubuntu" to "Ubuntu Classic" It may not have as much eye-candy. But it'll run a lot faster and be a much smoother experience overall.

Hope I've helped.


Why I still can execute bash file without x permission?

There is a difference in ./my_sh.sh and bash my_sh.sh

./my_sh.sh tells the kernel that it's a script which then looks at the first line (the shebang #!) and uses said interpreter (?) to run the script, it needs have executable permissions for the kernel to do this. Edit: This will start another process as we are starting a new instance

bash my_sh.sh is asking bash to run the script and doesn't care so much of the first line. So (correct me if I am wrong) it just needs read permissions for bash to run it

Note that there are plenty of other scripts we can write just like .sh scripts, python for example:

python my_py.py is different from ./my_py.py (<= assuming you have the proper shebang)

As was stated in the comments, when writing script files, leaving out the shebang line, the script will use the current shell environment which if the script uses a different shell ie the script uses ksh but your shell environment is bash (thank you Sergiy Kolodyazhnyy for the example :) ) this can lead to errors.


Find files with a specific 2-line pattern using awk

If your version of grep supports PCRE mode (-P) you could try a multiline match that finds instances of @<TRIPOS>BOND that are followed (after only a newline) by @<TRIPOS>SUBSTRUCTURE e.g.

grep -lzP '\Q@<TRIPOS>BOND\E\n\Q@<TRIPOS>SUBSTRUCTURE\E' *

The \Q and \E may be unnecessary in this case but are intended to force literal matching (in case @, >, < have special meaning in the Perl regex syntax). The -l tells grep to list the matching files instead of printing the match. You can then use the list of files as an input to the mv command e.g.

grep -lzP '\Q@<TRIPOS>BOND\E\n\Q@<TRIPOS>SUBSTRUCTURE\E' * | xargs mv -t /path/to/newdir/

Additional info

You could express the second part of the match as a lookahead but I don't think it has any advantage in this case

grep -lzP '\Q@<TRIPOS>BOND\E\n(?=\Q@<TRIPOS>SUBSTRUCTURE\E)' *

Equivalent expressions in pcregrep (which is not part of the standard Ubuntu system, but obtainable from the repository) would be something like

pcregrep -lM '\Q@<TRIPOS>BOND\E\n\Q@<TRIPOS>SUBSTRUCTURE\E' *

and

pcregrep -lM '\Q@<TRIPOS>BOND\E\n(?=\Q@<TRIPOS>SUBSTRUCTURE\E)' *


Does Ubuntu Install Your PC Drivers Automatically?

There is quite possibility that some of your drivers might be missing while Ubuntu installs most of them.

You can go to 'System Settings' and under 'Hardware' section click on 'Additional Drivers'. It will automatically search for drivers and it will ask if you want to install those  drivers.

You can search for System Settings by hitting the start button (also called super key) and typing in "System Settings"

System Settings -> 'Hardware' section -> Additional Drivers

And yes you need to update your drivers over a period of time which may vary from driver to driver.


How to change Ubuntu boot manager on dual boot?

Install Grub Customizer and hide some of your boot options, if you want.

Use with caution! Be careful not to delete anything that you shouldn't and mess up your grub configuration, as you'll end up with an unbootable system.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

sudo apt-get update

sudo apt-get install grub-customizer


Can I set the power indicator to show battery percentage instead of time remaining?

Matthew Paul Thomas, an interface designer for Canonical's Ubuntu team, in his blog comments this April wrote "I think the only point in showing a percentage charge is so that a human can get an idea of how much time is left. But we have computers to do those sort of calculations now. If a battery’s estimated time remaining is wrong, its percentage will be even less informative."

There is also a comment on the Ubuntu wiki that says "This coloring is deliberately time-based, not percentage-based; how much time you have left is more important than how long the battery can theoretically last."


How does changing to another Public DNS server work?

In your picture, there's a field called DNS Servers.

In that text field, replace anything that already exists with this:

8.8.8.8, 8.8.4.4

If you have IPv6, use this instead:

8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844

Both Google's IPv4 and IPv6 addresses have records for both IPv4 and IPv6, so it's a good idea to fall back to the IPv4-only record, because you don't lose anything. You should not use only the IPv6 records, because you lose the ability to fall back to IPv4 if something goes wrong.

As for search domain, if you don't know what to put there, you don't need to set it. If you're on a corporate network, ask your sysadmin.

Hit Save and the new DNS settings will take effect.


I think you can do this by a adding a /etc/apt/preferences
profile that pinned all packages to the distro/release that
repo represents. The next time you run apt-get upgrade it
will downgrade as necessary to satisfy the rules specified.
See man apt_preferences for details.

http://wiki.debian.org/AptPreferences

The flip side of this is to prevent this from occurring to
begin with by pinning the packages you have a stake in
staying stable. So if they're updated by an outside source,
the next apt-get upgrade will revert just that and not your
entire OS.


If you are able to boot up the computer you can edit the grub configuration to display options.  Since you are indicating that grub isn't showing up, you'll need to comment out the line that says #GRUB_HIDDEN_TIMEOUT=.

Also add a timeout number for the display time such as:

 GRUB_TIMEOUT=10

As far as the boot option you mentioned, since it's working with the boot partition at this time, I'd leave it there.  But in the future it might be easier to select a boot drive for the grub installation such as /dev/sdX (ie. /dev/sda).

By the way I see you included "wubi" as a tag option.  This doesn't have anything to do with wubi.


How do you change display resolution of VMware Player in KDE Plasma 5?

I have the same issue and have the following workaround:

It is possible to set the resolution from a command line using 'xrandr'. Running just  xrandr  allows you to see the current resolution and the other valid resolutions.

From a command line you can run  'xrandr -s 1024x768'  and the screen in VMware will reset to that size!

You can even set this at KDE startup by doing the following:

click KDE start icon
select System Settings
select Startup and Shutdown
click Add Program...
enter 'xrandr -s 1024x768' in the text box
be sure the "run in Terminal" checkbox is checked
follow the rest of the prompts to set it as a startup command.

The next time you log in, it will start at 800x600 but at the end of the login you will see the screen resize!


How to create clickable notifications using pynotify?

Here are some Guidelines for developing Notifications

Ubuntu Wiki


Ubuntu server boots to Console but nothing more

-R flag is recursive which means it will affect parent directory and all sub directories and files. You have 3 options here really.

1.) just reinstall your system which is nice if you dont want to spend all day figuring out this problem and you didn't have anything you really needed on the system.

2.) extract data then reinstall. if you did have something on there that you needed try booting to a different medium (USB or optical disk) and extracting your file that way then reinstalling.

3.) spend hours trying to figure this problem out before giving up and drinking a 6 pack and playing some video games. then reinstall your system when you're done rethinking your life.

4.) (maybe) get realllllly lucky that someone did that and managed to fix it and that they're not drunk or playing video games so they post the answer in this thread.

Good luck homie


ubuntu hanging at unpacking linux header 3.13.0-49

I managed to ssh through from another pc, which took forever. The pc was very slow. I managed to kill some processes and then rebooted. Now if I try to log in to my profile from the acer pc it loops back to the log in screen. I can ssh in to the acer though from another pc. I tried to update & upgrade again and it came up with:

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

Thus ran sudo dpkg --configure -a and sudo apt-get update; sudo apt-get upgrade again. Rebooted and now I can log in using the acer pc. I think the problem was with the memory being full. I have motion cctv software that has been running for a few days and this seems to have loaded the memory which may have caused the crash. This did happen quite suddenly though ( the freeze ) so it could be something else. Needless to say the problem seems to have disappeared.


This a system setting. Go to Systems Settings -> Security & Privacy. Under this you can see a button saying "Password Settings". When you click on the button you can see all the user list and their respective details. Select your account and click on Automatic Login - OFF. This prompts an option to enter your password every time you logout.


How can I get a java apps to use the GTK+ theme?

You can try to set Java's default look and feel to GTK:

Open a terminal ( Ctrl + Alt + T )  and paste  the upper one for openjdk and the lower one for sun java .

gksu gedit /usr/lib/jvm/java-6-openjdk/jre/lib/swing.properties

gksu gedit /usr/lib/jvm/java-6-sun/jre/lib/swing.properties

Follow the comment in that file and remove the hash sign, so it looks like:

# uncomment to set the default look and feel to GTK
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

Save and restart the java app.

Before and after:


Run jnlp applications with root permissions

personally I would preferably not start java applications as root.

If you want to run it you should try sth like this:

javaws foo.jnlp

Details would be necessary to help you more.

greetings from Switzerland, Michael


On another computer, download this package: http://mirrors.kernel.org/ubuntu/pool/multiverse/l/linux-firmware-nonfree/linux-firmware-nonfree_1.14ubuntu1_all.deb Transfer it with a USB drive or similar to the Ubuntu computer. Drag and drop it to the desktop. Right-click it and select 'Open with Ubuntu Software Center.' After it completes, reboot and your wireless should be working.


Nothing went wrong. You used the 3rd form of ln syntax:

You ordered to create a symbolic link to /mnt/tmp and place it in /tmp.

As /tmp is an existing directory, system will create the link with the same name as the target, i.e. tmp inside that directory.

You end up with a symbolic link /tmp/tmp pointing to the /mnt/tmp which is what you see in the directory listing.

There are two things that might have confused you:

the order of arguments in ln is: first the target, then the link name
if you provide an existing directory instead of the link name, ln will create a link inside that directory


OK - That was a lot less scary than I thought it was going to be.  I increased the swap size to 8 GB with the following sequence (Based on the 3rd answer in the linked post - Note that I had to turn off swap first - If you look at your system monitor you will see Ubuntu emptying out your swap space as you run the first command):

sudo swapoff /swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Verify it:

 sudo swapon --show

Make it permanent:

echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Update

This worked great and my laptop stopped freezing due to memory hogging by Chrome.  One of the comments asserted that 16GB is enough, and in general I agree, but this is what my situation looks like:


KDE theme appears in Unity, Cinnamon, and XFCE

If you delete any .gtkrc files in your HOME directory and then select an Ambiance theme it will rewrite the theme files with Unity presets.

Note:  files beginning with a . (period) are hidden.  To view them in Nautilus press CTRL + H or use ls -a in a terminal.


It appears that apt logs this data here:

/var/log/apt/term.log

This blog had this and more info on package logging:

http://tech.zhenhua.info/2010/11/package-installation-log-on-ubuntu-dpkg.html


The Ubuntu-Tweak Home screen

Instructions:

Installing Ubuntu-Tweak is rather simple and easy. Follow these simple steps, and you will have Ubuntu-Tweak installed, and be on your way to tweaking Ubuntu to your liking.

For 12.10 and Earlier:

Steps:

Add the PPA:
sudo add-apt-repository ppa:tualatrix/ppa

What are PPAs and how do I use them?
Are PPA's safe to add to my system and what are some "red flags" to watch out for?

Update your sources. (Steps are listed below. Chose the method that fits your scenario):

Ubuntu Software Center:

Ubuntu Software Center will run this step automatically after adding the PPA.

Synaptic:

Refresh your sources.

From the command line (terminal):

Run sudo apt-get update

Now to install Ubuntu-Tweak:

Ubuntu Software Center/Synaptic:

Search for Ubuntu-tweak, then click install.

Command-Line (Terminal):

sudo apt-get install ubuntu-tweak

The Admin panel

The Tweaks panel


It seems to be you have downloaded the .DEB file . we can install it with Software center If you want GUI way and we can install it with terminal also.

IF you want to install from terminal then open your terminal with CTRL+ALT+T then cd to where you have downloaded that chrome .DEb file then do

sudo dpkg -i <wrtie here the file name of your google chrome without glides>.deb

this is the way to install.


NVIDIA driver won't install under 13.04, wants to reboot without X, not so easy

The several features you are asking are supported in the Proprietary Drivers. For your case you need to follow How do I install the Nvidia drivers?

The open source Nvidia (Nouveau) drivers does not yet support Twinview, rotating correctly or Dual screen in all Nvidia models. For the time being, we Nvidia users are stuck with the proprietary drivers.

Please follow the link I have mentioned and let us know if doing the steps provided in it solves your problem. Know that if you are trying to install the Nvidia drivers that are found on the Nvidia site I recommend to not do that (It is explained on the link as to why not to use the official one from the Nvidia site). Use the ones that come in the PPA if you really want to have the most stable and updated version available for Ubuntu.


You need to edit the ~/.config/user-dirs.dirs file (type this in terminal gedit ~/.config/user-dirs.dirs). Make sure the contents of the file are like the following(or just copy-paste and overwrite with this):

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/Share"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

Then restart nautilus:

type nautilus -q in terminal and hit enter
Then, open nautilus via Unity menu


How do I enable Pâté Python plugin in Kate?

When you start kate from the terminal, you'll get the exact package you need to install. Open a terminal and type

kate

and then check what error messages or stack trace it outputs as ImportErrors and then install the packages. I guest you need to install python-kde4 and python-jedi (just a guess since I had done this long before).

See if

 sudo apt-get install python-kde4 python-jedi

solves this error. Also check if this answer helps.


gnome-tweak-tool 3.18 missing Window Theme option!

Only way you can change window themes is by copying your theme to either Ambiance or Adwaita folder. Gnome developers have become very ignorant to user's and themes, due to their inability to fix underlying problems with their desktop. GTK+ will refuse to use the entire theme if it does not completely comply with what Gnome Developers want on our desktops. Remember, you have to use sudo nemo, nautilus and copy/paste theme to folder. Be prepared for Gnome 3.20 as does not support user themes at all!


Access Remote Database from local machine.

For this to work, you need access to admin access to cPanel/hosting control panel.

1. Login to your cPanel/hosting panel

Login using your admin access credentials to your cPanel/hosting control panel.

2. Add your ISP IP address to Remote SQL IPs list

You can view your IP by searching my IP in google. If you are inside of a local network, most probably your IP would be allowed by admin.

3. Get your hosting server/host IP address.

You can ask your administrator for this or if you have admin access, you can get it from server detail page or cPanel.

4. Use Host IP as host and remove database user credentials.

Now, you can use your server IP as Host address and database credentials to access your remote database.

This works with almost any operating system and application. I have also used this with my local PHP applications (CakePHP, Laravel, core PHP, etc).

In your case, you can ask the server administrator to add your IP to allow remote SQL connection and then you can follow rest steps from step 3 to connect to remote SQL.


ubuntu ejecting one hdd partition from dock leads to ejecting both partitions of HDD

I guess the real reason for this behaviour is the difference between how to handle different partitions and devices in this link. It also discusses what is the difference between ejecting, unmounting, safely removing. I was thinking of it as an issue with my system  but it seems it's a feature that's not so elegant.

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


You can see what keys are bound to which modifiers using the xmodmap tool.  For example:

$ xmodmap
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

The Super_L and Super_R keysyms correspond to the Win keys on your keyboard.


What are e2fsck and fsck and how do I use them?

Unless you have done something unusual with your system configuration, Ubuntu will automatically run the appropriate fsck (FileSystem ChecK) command when you next reboot.

The generic 'fsck' command will attempt to detect the filesystem type, or it will accept parameters specifying the type.  'e2fsck' is essentially a shortcut saying it's an ext2 filesystem. They all behave the same way and check the filesystem for errors.

You're correct that they can be dangerous - never run fsck on any mounted filesystem (root partition or otherwise), as it can lead to data loss.  Reboot and it will be done safely without you needing to run any commands manually.

Update: The message you saw does not mean there is damage, it is just logging the preventative maintenance that will be done automatically.


If you googled "CVE_2015_1692", the description would have showed you:

  Microsoft Internet Explorer 7 through 11 allows user-assisted remote
  attackers to read the clipboard contents via crafted web script, aka
  "Internet Explorer Clipboard Information Disclosure Vulnerability."

So, if you're running versions 7 through 11 of Microsoft Internet Explorer...

ClamAV (did you read man -k clamav?) plus "Firewall" (do you mean UFW (did you read man ufw)) "enough"? No. No tool or combination of tools can make you more secure without your understanding. Nothing (except unplug & bury in cement) can make a computer system "secure".

What network environment is your system connected to? T4, DSL, Fiber, WiFi? What data/capabilities are you trying to "secure"? Against whom? Have you considered "rubber hose cryptanalysis"?


See the following question and answers:

How do I change the GRUB boot order?

An alternative is to ditch GRUB entirely; rEFInd can launch your kernels directly, assuming they're 3.3.0 or later. You may need to install an EFI filesystem driver. With that done, you can edit the refind.conf file to change the default_selection option to specify which kernel you want to boot by default.


Citrix receiver screen resolution issue - fonts and icons too small

More than likely, you have a hidpi display. Like I do.

My yoga pro 2 has a 3200x1800 display. Even if I set the resolution to 1900x1080, when I connect using Citrix Receiver to my Work VM, it always sends 3200x1800 as the resolution.

Currently fixed it by adding fractional scaling to gnome.

KDE does not have this problem.

Another thing with Gnome, the alt+tab does not work to switch among the Remote Window's applications. In KDE, alt+tab  works as expected.

Look up the gsettings command to add fraction scaling. It is a beta feature right now. I do not know when Gnome will finally add fractional scaling to the official packages.


Why does /usr/local/bin not exist on my (Ubuntu 16.04) system?

/usr/local/bin and other default folders such as the ones you mentioned and also /opt and /mnt are created during a normal Ubuntu installation.  By default the folders are empty.  If you don't have the folder, it simply means it has inadvertently been removed.

This is easily rectified just by creating the folder:

$ sudo mkdir /usr/local/bin

You can proceed to install your previously installed programs just as you normally would have, if the directory had not been deleted, after recreating it.

And more directly to your questions:

Why doesn't it exist by default?It is created by default during installation.
How did it come to exist in your previous installation?
It's part of the default directory structure which was created during installation.


Colored Vertical Lines upon boot and nomodeset DOES NOT fix it

Well, I figured it out. The fact that unplugging the machine and plugging it back in led me to try out some of the other standard boot options. So using acpi=off in addition to nomodeset fixed the problem with the colored lines. However, it created the new problem of not completely turning off the computer when running shutdown.

This all turned out to be an issue with the BIOS. I painstakingly worked out how to update it and it looks like I don't need to have acpi=off anymore.


Dosbox fullscreen mode shows a black screen

Try tinkering with different output configurations.

output: What video system to use for output.
#                   Possible values: surface, overlay, opengl, openglnb.

I have usually had pretty good luck with opengl.

I am not sure what you mean by "to have dosbox automatically run with some commands".  I'm assuming you mean the autoexec feature found at the bottom of the conf file?

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

You can create configuration files for each game by copying and renaming the original config file.  Then create a script to run you game.  Making use of command

dosbox -conf /path/to/gameSpecificConfigFile


Not returning focus to previously focused window

Ok I found out what the problem was.

I was using "Glx-Dock / Cairo-Dock" and it was stealing the focus on every window close. I couldn't find a solution or even a single bug report on the net, so I just uninstalled it and now I'm fine.

And BTW, thanks for the down votes. I'm wondering how ridiculous my problem was to receive down votes :)