How to access mounted file systems as a guest user?

Access to /media is restricted by the AppArmor profile /etc/apparmor.d/lightdm-guest-session. There are two exceptions (lines 31 and 32):

 owner /media/ r,
 owner /media/** rmwlixk,  # we want access to USB sticks and the like

That allows access if /media/foo is owned by guest[id], which is the first alternative to solve my problem. The downside is that the guest account can create arbitrary directories and files in the root of /media/foo. I decided to explicitly poke a hole for /media/foo/bar and added the lines:

 owner /media/foo/bar rw,

A description of the syntax can be found here: http://doc.opensuse.org/documentation/html/openSUSE/opensuse-security/cha.apparmor.profiles.html

To the best of my knowledge this only allows the guest session to access /media/foo/bar and only if guest[id] is the owner of bar. Note that guest[id] still cannot access /media/foo itself. Thus ls /media/foo will fail, but ls /media/foo/bar works.

Lastly reload the profile for the changes to take effect:

 sudo apparmor_parser -r /etc/apparmor.d/lightdm-guest-session


After connecting through my work's VPN, why can't I access resources using DNS?

You said you could get this to work by fully qualifying the DNS names. What this means is that at work you have a search workdomain.com line in your /etc/resolv.conf so that the local resolver will try appending that domain to any unqualified names its asked to resolve.  You can get the same effect by manually putting that line into your home  /etc/resolv.conf, but be aware that if you're using dhcp it might be overwritten the next time you acquire a new IP address.


Xubuntu 16.04 Live USB won't let me past login...flashes and resets

hastiko, the original poster, gave the solution in a comment (which I've slightly expanded here). In summary, rewriting the USB flash  drive with dd was successful.

  On boot I hit Esc and entered a text menu and checked
  integrity of disk. It was OK. But the problem persisted.

  So I started over again, with these steps:

  I reformatted USB and remade live USB with dd command:

sudo dd bs=4M if=/pathtoiso of=/dev/sdb

  I rebooted and selected USB and it started into live DE without log in prompt.

  I have no idea what problem was but two remakes doing exact same thing
  solved it. Seems to be par for my linux course ;)

I'd like to add that the correct device name will not always be /dev/sdb. That could be a drive with valuable data that could be  destroyed. You must check that you are writing the correct  device (as the OP here had done) before running dd on it.


The correct place to put xmodmap ~/.Xmodmap (so that your changes are read at startup) is in ~/.xinitrc (see explanation below), although you could alternately place the xmodmap command as a startup item (/usr/bin/xmodmap /home/user/.Xmodmap). I can say that for 12.04 (and presumably 12.10) that these two alternatives definitely do work, as either way they are read after you log in with lightdm. (I changed Return to Right Shift, and the change only took effect after entering my password and logging in).

Please note: if you are on Xfce, it is noted on the official Xfce FAQ that you may have to create a startup item instead of using ~/.xinitrc, and that you might have to delay the execution so the xmodmap changes are not overwritten by setxkbmap. You can use a delay to achieve this in your startup entry:

/bin/bash -c "sleep 20; /usr/bin/xmodmap /home/$USER/.Xmodmap"

(For the startup entry it is necessary to specify absolute paths)

Each time setxkbmap is run to change keyboard layout, you will have to run xmodmap ~/.Xmodmap again in the terminal.

Creating ~/.xinitrc

Create a file in your home folder called .xinitrc with

touch .xinitrc

and place in it:

xmodmap ~/.Xmodmap

Your Xmodmap file should not have entries in the xmodmap -e " " style as that is used in the terminal for temporarily setting the values. It must have entries in this format:

keycode 65 = Tab
keycode 23 = Space

It is often confusing which of the various X files (such as .xprofile, .xinitrc, etc) are read at startup, but .xinitrc does seem to be still read under 12.04, whereas .Xmodmap or .xinputrc are not read by themselves.


You can add the PPA as a test. But I think that there are no more packages for Ubuntu 12.04. I do not see any more here.


Mm... they doesn't have any instructions about how to install, so I had to play around figure out how to install it:

First, I'm downloading the TideSDK-1.3.1-beta for 64-bits. The following should work backwards and forward any version of Ubuntu if you use the same version of the software (Ubuntu installations methods are far more stables than 3rd party's).

wget http://cloud.github.com/downloads/TideSDK/TideSDK/TideSDK-1.3.1-beta-linux-x86-64.zip

Now unzip it. (I would recommend to start in a clean folder to prevent weird behaviors)

unzip TideSDK-1.3.1-beta-linux-x86-64.zip

we get 3 directories: modules, runtime and sdk (WHY!), create and move all the resulting directories to ~/.tidesdk directory (seems that they don't want to mess up with sudo, sighs), or in a nutshell:

mkdir ~/.tidesdk && cd  ~/.tidesdk
wget http://cloud.github.com/downloads/TideSDK/TideSDK/TideSDK-1.3.1-beta-linux-x86-64.zip
unzip TideSDK-1.3.1-beta-linux-x86-64.zip

Supposedly, people used to TideSDK should know how to use it, but I don't. So, apparently for beginners, is easier to install the Developer App:

mkdir ~/TideSDK-Developer
cd ~/TideSDK-Developer
wget https://github.com/downloads/TideSDK/TideSDK/TideSDK-Developer-1.4.2-linux-x86-64.tgz
tar xf TideSDK-Developer-1.4.2-linux-x86-64.tgz

Now some notes:

Supposedly, you should be able to run it just typing ~/TideSDK-Developer/TideSDK Developer in a terminal, but in my case, it "segfault"-ed (throw a Segmentation Fault(coredumped)). Finding the reasons I found that to build the Developer helper I needed some dependencies (some of them I had already installed or using another versions) which wasn't included in the Getting Started guide:

sudo apt-get install build-essential ruby rubygems libzip-ruby1.9.1 scons libxml2-dev libgtk2.0-dev python2.7-dev ruby-dev libdbus-glib-1-dev libnotify-dev libgstreamer0.10-dev libxss-dev libcurl4-openssl-dev git-core libsoup2.4-1 libsoup2.4-dev libsoup-gnome2.4-dev libicu-dev libgnutls-dev libjpeg62-dev libenchant-dev libmcrypt4 libsqlite3-dev

If you are mysteriously unable to start the application, please install these dependencies. End of note.

Testing

You maybe want to checkout that everything is ok, so lets test a HelloWorld example:

wget https://github.com/TideSDK/TideSDK-HelloWorld/archive/master.zip
unzip master.zip

Now go to your application window, click import, look for the directory you decompress it, hit OK.

Once your app is imported, you will see a "Test & Package" tab.

Click it, then hit "Launch App",

you will be asked for confirmation to run the application, hit "Ok", now you should be seeing this window:

That's all.


Arduino IDE Crashes When Attempting to Save Sketch

I think this topic will solve your problem: Ubuntu V15.04 Save As selection crashes IDE.
Shortly, Open a command terminal, navigate to the arduino directory where the arduino shell script is located (like /arduino-1.6.3), then type these lines:
 export JAVA_TOOL_OPTIONS=""
./arduino


Still no solutions except to remove ubuntu one music store plugin.

Even connecting to ubuntu one then laucnhing rhythmbox solved nothing.

Then i tried to purge all local rhythmbox data so it would start fresh still crashes on launch

Remove ubuntu one music store plugin from synaptic
Delete/clear all local rhythmbox references with

  rm ~/.local/share/rhythmbox/ ~/.cache/rhythmbox/
  ~/.gconf/apps/rhythmbox/ -r

Launch Rhythmbox and disable all music store/fm rhythmbox plugins,
then quit rhythmbox
Reinstall ubuntuone music store plugin
Launch Rhythmbox again and now it shouldnt crash, renable all the
plugins you disabled

or you can try this also
Try disabling or uninstalling.

To disable run this in terminal

gconf-editor

navigate to apps - rhythmbox - plugins - umusicstore and disable (uncheck

Or search rhythmbox in synaptic and remove the plugin (rhythmbox-ubuntuone-music-store)


What git repository do the mainline kernel ppa builds come from, and are any changes made?

The mainline builds are built from the official upstream repositories (linus's tree and gregkh's stable tree for instance).  Where the build claims to be against a tag it is the official tag from that version.  You can confirm you have the right one using the file COMMIT in the same directory as the binary .debs, this lists the SHA1 or tag which was used as a base for the build, all patches applied to the tree are in the same directory.


Lenovo IdeaPad Z580 Super Hot after Ubuntu 12.04

Try adding these commands and keep the setting as conservative.

sudo apt-get install cpufrequtils cpufreqd
sudo apt-get install indicator-cpufreq

Also install bumblebee for better control over your graphics card. Click here for more information


no intel driver loading but intel driver installed no 3d effects vesa only works

Download the Linux Intel integrated graphics drivers from Intel Downloads here.
Select the appropriate driver based on your processor's video, HD2500, HD3000, HD4000, etc.

You may also need to update your micrcode for your specific processor.

Use the Synaptics Package Manager. If you do not find the Synaptics Package Manager in your applications.

sudo apt-get update
sudo apt-get install synaptic

Use the search to find microcode, check intel-microcode, iucode-tool and microcode.ctl.  Click Apply (green check mark) then reboot for the changes to be installed.

It made a noticeable difference on my Asus laptop.


Installed Stuff & Cannot Right Click Desktop

If you mean how to enable Different Wallpaper For Each Workspace.

Install Compiz Configuration Settings Manager, if you don't have it installed yet.

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

sudo apt-get install compizconfig-settings-manager

or

Then Just press Alt+F2 on your keyboard and run:

gconf-editor

then take a look At this.


flash disk not recognized after shortcut virus deleted

Given that your step 2 ('I copied my folders to the main directory') may NOT have actually completed properly, you are best advised to treat this as a straight data recovery exercise.

Try the vendor tools for data recovery (probably Windows-based), to find/retrieve your 'lost' folders.

NOTE: Many possible ways to 'treat' this issue, and gain a viable partition/directory structure, will likely irretrievably lose your data.


Can't remember password in Nautilus for SFTP

Try to specify the username in the connect string
(i.e. sftp://user@host.com)

It uses saved passwords in this way.


Terminal Zoom in shortcut not working as written

You need the shift key because the primary key results in a = sign.

Just open any text editor and press the =/+ key. If you press it with shift that results in a + sign, otherwise you'll get a =.

Get used to it because commands are often case sensitive! Take Vi editor, for instance, a is a different command than A (shift+a)


Is it possible to boot without mounting /home?

You need to boot to single-user mode or recovery mode holding the shift button, after the computer starts. Then you can drop to root shell, so your home folder will be /root and not /home/username. Here you can freely unmount the /home partition, and do anything you would like.
Use a live CD/USB to create the backup.


systemd-resolved has a Split DNS feature that can do this.
https://fedoramagazine.org/systemd-resolved-introduction-to-split-dns/


Is it recommended to do apt-get upgrade?

It is the standard way of updating your Ubuntu and your apps through terminal. As you yourself have mentioned, basically you need to use these two commands:

sudo apt-get update
sudo apt-get upgrade

Before posting new question, do a simple search. In most of the cases you will get to answer easily.


MySQL connector/python ImportError: No module named 'mysql'

The solution is to install corresponding Python 3 module:

sudo apt-get install python3-mysql.connector

It fixes import mysql.connector error:

$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql.connector
>>>

And similar for Python 2:

sudo apt-get install python-mysql.connector

$ python2
Python 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysql.connector
>>>


How to access localhost on Virtualbox host machine

First you should change the Network adapater to Bridged (It seems you are choosing NAT)

Then you can give an ip to your guest machine other than 10.0.2.15 (or you can leave it if you want)

then open a browser from your host machine and type: ip-address-of-your-guest-machine/...


How to Increase Memory Frequency in Linux?

According to the specs on your Compaq model, 1600Mhz RAM is supported.  Your issue is most likely BIOs or mobo design related.

Looking at the manual for this machine, it seems that HP has a very narrow list of RAM that's supported.  Two, actually.  https://www.manualslib.com/manual/624149/Hp-Compaq-Pro-6300-Series-Microtower.html?page=42#manual

Another possibility is that the RAM you have is really 1333 Mhz and not 1600.

That said, it's unlikely that you'd notice any performance improvement for such a tiny bump in RAM speed.

As an aside, when installing new RAM, I always run memtest to verify speed, timing and error free operation.


This bug has been fixed for the latest version of HEASOFT 6.15.1, after April-2014.

The error is due to incompatibilities between the libreadline version available in the trusty repositories and the one required by the HEASOFT installation scripts.
If you have a reason to use the 6.13 version, contact the HEASOFT help-desk and they can send you a patch fix.


I want to copy my HOME folder to a USB flash drive but I can't. I accidentally removed Python 3 and lost many important stuff

Use 2 USB Drives

First USB

Create a LiveUSB (also known as installation USB) of Ubuntu on this USB drive. You will need to use another computer for this task. If you already have a LiveUSB drive you used to install Ubuntu, you can skip this step.

Second USB

This will be your Home backup USB. Make sure you have enough space to keep all your home folders in this USB drive.

Boot from the LiveUSB

Use the Try Ubuntu without installation option to get to the Live session of Ubuntu. This will boot Ubuntu from the LiveUSB.

Mount the internal system partition

Mount the internal disk partition containing your /home folder. If you don't have a separate /home partition (standard Ubuntu installations don't) it will be your Ubuntu / partition.

Easiest way to mount this partition is to use the Disks application in Ubuntu. Look through each physical drives listed in Disks on the left margin and locate your internal physical drive. Then identify your Ubuntu partition. It will be formatted ext4.

Highlight the partition and click on the stopped ⬛ icon to turn it into a play ▶ icon. Note down the mountpoint which will look like

/media/ubuntu/<mountpointoftheinternalpartition>

where <mountpointoftheinternalpartition> is a bunch of letters and numbers.

Insert the second USB into the computer.

Do not unplug the first one to insert the second one! Use a different USB socket.

Copy all your folders and files into the second USB.

You can use Nautlus and drag and drop all the folders if you are the only user of this computer. Or use the command below

If you have multiple users and want to preserve the data of all the users, open a terminal by pressing Ctrl+Alt+T and use a command like:

sudo cp -rp /media/ubuntu/<mountpointoftheinternalpartition>/home /media/ubuntu/USB2TB/home

Make sure /media/ubuntu/USB2TB/home actually refers to you second USB drive where you intend to copy /home and /media/ubuntu/<mountpointoftheinternalpartition>/home actually refers to the /home folder in your internal drive.

Note: If you have a separate /home partition you will need to copy the contents of that partition to the second USB with a command like:

sudo cp -rp /media/ubuntu/<mountpointofthehomepartition> /media/ubuntu/USB2TB/home

Eject (Safely Remove) the second USB.

Be patient. If you have a lot of data copied to the USB, it may take a while for the data in the write cashe to be actually written to the USB. Don't lose your data by unplugging the USB too soon.

Install Ubuntu

There is an Install Ubuntu icon in the Live session. You can use it to install Ubuntu after you have safely copied all your important data to the second USB.

Once you have checked the new installation is running properly, you can copy your data from the second USB to your Home folder.

If you have other users and copied all their home data, then follow the instructions in the After Installation section of this answer.

Hope this helps


Bluetooth adapter not recognized on a Dell Inspiron M5010

Some bluetooth devices require a firmware blob to be loaded because they don't have their own firmware onboard.

This makes the device cheaper to manufacture because it doesn't need a ROM.

The Windows driver is packaged with the firmware blob, and it is loaded into RAM when the driver is initialized.

These devices can't be used in Linux because the blob is a proprietary piece of software that cannot be distributed with Linux, so when you initialize the device it acts like a zombie and the kernel gives up trying to talk to it.


You can install some snap packages from the store, without signing in to an Ubuntu One account, from the command line using sudo snap install $package. However, it is up to the developer of the snap if they wish to allow installation of their package without logging in. Having an account logged in or not has no relation to anonymity though (no PII is required to create an account).


Totem fails at start (totem:3808), after activating dbus plugin

The problem can be fixed by deleting the dbus folder in the /usr/lib/totem/plugins directory.

If there is another more elegant way to do this please comment...


The bridge network interface is setup on the host computer.
When you use bridging the guest network interface uses the host bride interface.
The .xml files in /etc/libvirt/qemu define the VM, and therefore play an all important role. If you are using bridging, there should be lines similar to:

<interface type='bridge'>
  <mac address='52:54:00:87:d2:f4'/>
  <source bridge='br0'/>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

I do not use virt manager, but this and this might help you.


Can you be more specific, like exactly at what stage / part the installation stopped.

What output / error messages do you see on your screen?

Please provide additional details like:

Type of computer
processor
motherboard
amount of ram

UPDATE:
Some people have this problem because their system can't use the graphical installer. forum link.

It seems this problem can be resolved by using text-only installers (choose the network installers)


file:// protocol connected with wrong program

There are a few places I can think of looking.  I'm not entirely sure how you got in this situation, so I'm not sure which is likeliest:

~/.local/share/applications/defaults.list (see if you have anything suspicious in there)
~/.local/share/applications/mimeapps.list (likewise)
Run gconf-editor, navigate to /desktop/gnome/url-handlers, and see if you have a file subdirectory in there.

Do any of those help?


Ubuntu-restricted-extras conflict: feature or bug?

It is just a simple substitution.nothing else
The difference between normal and extra is that the extra ones do not comply with the open source policy. there are some  patent and copyright restrictions associated with them thus installing them is separately required. check this for more details


How is it possible for my multi-distro system to have more than 4 primary partitions?

You're probably on GPT partition scheme as are all modern Linux. This ignores the partition limit the old MBR partition scheme set. GPT will also allow you to make bigger partitions than MBR.

https://www.howtogeek.com/193669/whats-the-difference-between-gpt-and-mbr-when-partitioning-a-drive/

(depending on the language or your os) to verify this you can run :

LANG=C && sudo fdisk -l | grep Disklabel

in a terminal.

you'll get:

Disklabel type: gpt
Disklabel type: gpt


Upstart after VirtualBox shared folder mounted

I fixed the issue by adding a sleep time at the beginning

start on runlevel[2345]
respawn

script
        sleep 5
        cd /media/sf_ACEBot
        exec /usr/bin/mono /media/sf_ACEBot/ACE\ Bot.exe >> /media/sf_ACEBot/log.txt
end script


is there USB support for an Agilent 33220A function generator?

It seems like it is possible via Universal Serial Bus
Test and Measurement Class using for example Python USBTMC.


My printers don't work anymore since last update

Unless you truly need the fine grain priveleges that cups-pk-helper provides, you might try simply removing the package with sudo apt-get remove cups-pk-helper if that fails, you can purge the package where packagename is cups-pk-helper

You might also take a look at this related post.


Video Drivers for Onboard GeForce 6150SE

You need to install the Proprietary drivers for your video card to work better for the time being, until the open source drivers gain better support.

Follow this question to install them: Nvidia geforce 6150-unity 3d won't work


Xubuntu - can't send epub and mobi file to my phone via bluetooth?

I encountered this problem today. There seems to be a whitelist of allowed file types that doesn't include epub. The simplest workaround seems to be using another file sharing method. Another (not tested) is packing your chosen files into a zip archive and sending that. You could also try temporarily changing file extensions to *.jpg, sending them and changing the extensions back.

A Google search showed some relevant info, so I'll just link it here in case someone finds it useful. This question is for app developers: https://stackoverflow.com/q/2942454 . And this article is about allowing more file types on a rooted phone: https://htc-one.gadgethacks.com/how-to/bypass-androids-file-type-restrictions-bluetooth-file-sharing-0157237/ .


Installing a package with a renamed dependent package

In my opinion you are installing a version of libjson-xs-perl that doesn't fit for Ubuntu 20.04 focal.

If you check here: https://packages.ubuntu.com/focal/libjson-xs-perl
you can see that libjson-xs-perl has been built with the proper dependencies in focal fossa (it is written that it uses perlapi-5.30.0 but not perlapi-5.28.1. ).

Download the deb file using the correct link from the "Download libjson-xs-perl" table in the same page.


Installing Ubuntu on windows 10 laptop where I have BIOS and no secure boot, is it Safe?

I have seen some problems with secure boot - but it seems like most of them have fixes

Take a look at
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1091464

Booting from USB (without installing ubuntu) is safe, regardless of Secure Boot. Your system should just normally boot windows after you remove the drive.

Edit:
Without secure boot, its safe to use Ubuntu with windows 10. You will HAVE to disable fast startup (see windows10 & 16.04).I have installed it on a partition and on different drives in the past (not on a laptop tho) and haven't come across any big issues.


Windows 7 screen went blank after dual boot with ubuntu

Not a Grub or Ubuntu problem

You're having a problem with Windows.  This isn't an Ubuntu issue.  Windows is supported under the Grub boot manager.  After the boot process is passed to the Windows loader, it's all up to the integrity of Windows to finish complete the load process.  If there is a problem with Windows, it won't load no matter which Boot manager has initiated.

It's a coincident that you are dual booting Ubuntu and see a problem with Windows, not a cause.  I can understand how apparent it might seem that Ubuntu or Grub has something to do with the problem, but that's not it.

Fix Windows

The answer is to fix windows.  You can only do that on the Windows side with Windows tools such as Booting to a Windows disk and running the available routines to fix it.

Reinstall Grub

In the process of repairing Windows, the Windows install disk will most likely replace the Grub boot Manager with Windows boot manager.  You won't be able to run Ubuntu from the Windows boot manager, so after that you will have to reinstall Grub, which supports booting into either Linux or Windows.

For this part, look at RecoveringUbuntuAfterInstallingWindows

You can get more detailed help with fixing the windows problem in one of the forums such as http://superuser.com.


AMD Radeon HD 7730M (Dell Inspiron 15R Special Edition)

Ubuntu 13.10 now supports Hybrid Graphics. If you have Ubuntu 13.10 and Radeon hybrid graphics you can install the driver and catalyst control center as easy as follows:

sudo apt-get install fglrx fglrx-pxpress

Then your fan problem and driver issues will be gone. And after you can start Catalyst Control Center and switch your graphics card. You can start catalyst control center in dash by shortcut or through terminal as follows:

sudo amdcccle

--remember to run Catalyst Control Center as root to switch graphics--

PS:

I really don't know whether above works with Ubuntu 13.04 or earlier. For those old systems you can just turn off the discrete graphics card (ATI Radeon Graphics card) to solve overheating, fan issue and increase battery life.

You can just turn off ATI card as follows:

chmod -R 705 /sys/kernel/debug
chown -R $USER: /sys/kernel/debug/vgaswitcheroo
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

You can then add the 3rd command into /etc/rc.local file before exit() command so that it executes everytime when system starts. This also worked for me in Ubuntu 13.04.


I found that the Unity game engine has compatibility problems with the Unity user interface.

A solution that worked for me was to install XFCE: see
How can I install XFCE along side unity?

Be warned, this will change the default greeter to something much less attractive.  Here are some notes on reverting that: Restore Unity Greeter


The easiest way to specify the encoding when opening the file is to use the Open Files dialog.

On the bottom left, you will see an drop-dwon option for Character encoding. If you haven't used the encoding in Gedit before, scroll down to Add or Remove....

In the new dialog, scroll down the list of Available Encodings until you find the one you want, then click Add to send it to the list of encodings on the right, then OK.

That's it. After that you easily open the file with the correct encoding.


I've never had a problem with my mouse randomly clicking things.  But I have had similar problems with scrolling.  So it sounds like unplugging and plugging it back in is a very common fix.  It sounds like a common bug.


A proxy problem of "sudo apt-get install"

You probably set the proxy settings globally, so that they applied to all applications, including apt-get.

When you turn off the proxy settings, click the button that says "Apply system wide" (or something like that). It will prompt you for your password. Now you need to restart Terminal in order to have the settings applied.

If that does not solve the issue, see if /etc/apt/apt.conf exists. This can be done with:

cat /etc/apt/apt.conf

If the file exists (if you see some output), open it up. This can be done with:

gksudo gedit /etc/apt/apt.conf

If the file contains a line with Acquire::http::Proxy in it, delete the line, or put a # in front of the line. Save the file and exit the text editor.

Try sudo apt-get command again.


Qualcomm Atheros AR9485WB-EG network card wifi not working

Used this command:

echo "blacklist acer_wmi" | sudo tee -a /etc/modprobe.d/blacklist.conf

Then this one:

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

Set the option

options ath9k nohwcrypt=1

Then saved it, did unblock all

rfkill unblock all

and restarted, works perfectly now.


How to set proxy in synaptic package manager?

Just open the Settings -> Preference panel:

and enter your proxy settings in the Network tab:


Can't connect nonlocally after 12.10 upgrade

I was (and am) having a similar problem while connecting to the Internet using my MTS MBlaze (India) dongle which is a ZTE device. I am using Kubuntu 12.10.

A while back I was only able to connect to the device from Network Manager applet, but a ping to any address including 8.8.8.8 resulted in "Network is unreachable". I figured out this could primarily be because of my host not being able to connect to MTS gateway.

ifconfig shows something similar to the following:

ppp0      Link encap:Point-to-Point Protocol
          inet addr:180.215.149.123  P-t-P:10.228.10.5  Mask:255.255.255.25

I used the route command to manually add the gateway address (P-t-P in above ifconfig output) as follows:

sudo route add default gw 10.228.10.5

And voila, I was able to ping again, even to google.com (as dongle devices auto configure DNS servers as well); there is no need to change /etc/resolv.conf at all.

Now I need to figure out how to automate this. Any help most welcome.


Ubuntu Freezing (Chrome Runs Out of Memory?)

If Chrome really runs out of RAM, there are two simple options:

Add more RAM.
Open less tabs.

Another route it to reduce RAM consumption by other processes, for example, disable what's not used, or switch to XFCE or LXDE desktop environments.


Ubuntu doesn't start anymore after upgrading 11.04

I fixed it disabling ati graphic driver from System Configuration > Additionals drivers

For the system to boot you have to change the kernel to the previous linux kernel, non-generic-pae


could you try to logout to tty (ctrl+alt+F1) switch off your render gdm3 or lightdm if you use Unity I guess it's lightdm, run dpkg reconfigure, reinstall Xorg completely and switch lightdm back on, reboot machine with fresh xorg and go to drivers and install newest for your card supported?
should go something like this orderly:

Check your monitor and a laptop connection cable before all, connectivity, cable, if you connect over VGA try HDMI if you have it on your laptop or just change your cable with a 100% working one before you go further. Of course you not gonna destroy system by this, it only gets better how ever you look and set-up your drivers, xorg server conf, lightdm or gdm3
Backup xorg.conf if you prefer by: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup then do the fast cleanup orderly:

go to tty (ctrl+alt+F1) -> type username & pwd
switch lightdm off/disable it for a moment
systemctl disable lightdm.service or just systemctl disable
lightdm
then uninstall xorg, lightdm, plymouth completely
sudo apt-get purge --auto-remove xorg xserver-* lightdm plymouth
then remove xorg manualy
sudo rm -rf /etc/X11/xorg
reinstall all back by:
sudo apt-get install --reinstall xserver-xorg plymouth lightdm
then
sudo dpkg-reconfigure xserver-xorg and sudo dpkg-reconfigure lightdm choose lightdm as Display manager, reboot, update system, update nvidia driver.

Let me know if you stuck, will be here few more hrs :)


How to make a HDD device file /dev/sdxY available in lxc container?

fstab option

You probably want to use the fstab file:

$ cat /var/lib/lxc/ubuntu-trusty-amd64/fstab
/dev/sdc1   mnt/sdc ext4    noatime 0 0

It's important that the mountpoint (2nd argument) doesn't begin with a slash, otherwise the LXC script tries to mount the filesystem in the host os.

On Ubuntu, the file should aready exist but empty. If not, just create it and make sure you have the following line in your config file:

$ grep fstab /var/lib/lxc/ubuntu-trusty-amd64/config
lxc.mount = /var/lib/lxc/ubuntu-trusty-amd64/fstab

device option

If you really need access to your device, you can make it available in your container:

$ grep devices /var/lib/lxc/ubuntu-trusty-amd64/config
lxc.cgroup.devices.allow = b 8:1 rwm

This will make /dev/sda1 available in your container (8:1 is the block device major:minor).

But this will not be enough. Your container normally doesn't have the permission to mount any file system. You will need to use the following line or a similar trick too:

$ grep profile /var/lib/lxc/ubuntu-trusty-amd64/config
lxc.aa_profile = unconfined

Warning: this allows much more than just mounting

shared directory option

If you want to access your data from multiple containers (and the host os), you may want to use the most common solution: Similar to the first option, use the fstab to bind-mount a aready-mounted directory to your container:

$ cat /var/lib/lxc/ubuntu-trusty-amd64/fstab
/mnt/mydata mnt/mydata  none bind 0 0

Again: the first argument is the source, the directory in your host os. The second argument is the directory in your container, relative to its root. Again: DONT PUT A SLASH IN FRONT OF THE SECOND ARGUMENT.

If you don't want to create the directory in your container, you can do this automatically be using the options bind,create=dir instead of simply bind


This can be done easily by the use of mod-rewrite. Just modify the start of your .htaccess to say

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_USER_AGENT} *Mjbot* [NC]
  RewriteRule .* - [F,L]
</IfModule>

You can replace *Mjbot* with a regex of your choice

The RewriteCond directive sets up a condition for the url to be 'rewritten' or modified. In this case, it checks if the variable HTTP_USER_AGENT matches the regular expression *Mjbot* with no case sensitivity [NC]

The RewriteRule directive tells apache to respond to all requests under this .htaccess (.*) to be responded with a 403 Forbidden (the F flag) and to stop the rewriting process immediately after (the L flag)

Furthermore you can also prevent such requests from cluttering your access log by use of the already packaged mod_setenvif

To do that, to your .htaccess add this line:

SetEnvIf User-Agent "*Mjbot*" dontlog


Installed Ubuntu alongside windows 10 but can't switch between os

You could see this link
The steps are:

1. Shut down, then while starting back up repeatedly press the F2 button many times until the BIOS setup utility loads.

2. In the Main menu, set the F12 Boot Menu option to Enabled. Press F10 to Save and Exit, then once Windows loads shut down again.

3. Insert your USB flash drive with your 64-bit Ubuntu installer on it.

4. Power on and keep pressing F12 until the boot menu pops up. Select the flash drive, boot, and install Ubuntu.

This is where things get tricky...

5. After Ubuntu reboots, it will boot back into Windows.   Shut down again. Reboot and hit F2 to enter the BIOS again.

6. Under Security, choose Set Supervisor Password, and set one. You will need this password any time you go back into the BIOS. A bunch of options on the page should change from gray to blue.

7. The "Select an UEFI file as trusted for executing" should now be available. If it's not available, check that Secure Boot is still Enabled, if not, enable it. Select it, and navigate to HDD0 -> EFI -> Ubuntu -> grubx64.efi. The BIOS will ask you for a name for it; I called it Grub.

8. Press F10 to save and exit, then immediately press F2 again to re-enter the BIOS.

9. Now go to Boot, set Secure Boot to Disabled, and press the arrow key to go down to the bottom of the list to your new "Grub" entry. Press F6 until it's at the top of the list.

10. Press F10 one last time. Your system should now reboot to the grub bootloader!


How to mount another btrfs subvolume of the filesystem that contains the root subvolume?

I forgot the partition number Y in /dev/sdxX. Mounting as described above is possible.


Is there a way to change the default login/password prompts?

user@server's password is used for password authentication
Password: is used for keyboard-interactive authentication

Both are set with an SSH option:

PreferredAuthentications=password
PreferredAuthentications=keyboard-interactiv

as definied in rfc 4252 and rfc 4256 so it is unlikely related to a change in /etc/pam.d/common-password and more to do with a change in .ssh/config and the setting PreferredAuthentications or by setting it with an option with ssh -o.


How can I remove a prefix from {latest-tag} in a Launchpad recipe?

One workaround is to simply make sure that the upstream version part of your package version does start with a digit by inserting one. For example, you could use:

# git-build-recipe format 0.4 deb-version 0{latest-tag}-0~{time}~rev{revno}~pkg{revno:packaging}

Note that this will compare lower than anything you might have already published with your current expansion, however, since for example 0V1 sorts after V1. If you must, you could use an epoch (eg. 1:0{latest-tag}-0~{time}~rev{revno}~pkg{revno:packaging} to ensure it sorts higher than anything published previously, but this bump is not reversible and so should be avoided if at all possible.

For further information:

You can find an explanation of how packaging version strings work in
section 5.6.1.2 of Debian
policy.
You can find the exact implementation of the variable expansions by starting with
the source of the git-build-recipe
package.
See the documentation of how recipes
work,
including details on the variable
expansions.
Note though that this documentation is really for bzr-based recipes,
and the implementation for git is merely documented as "similar"
(there's a bug open on
this).
You can test package version string comparisons with dpkg --compare-versions, for example dpkg --compare-versions 0V1 gt V1 && echo true || echo false. See dpkg(1) for details.

I don't see any option in the documentation to do anything with the "latest upstream tag" apart from to embed it in your final version string, nor any other way to grab the upstream version if the tag is the only place upstream declare it. Therefore I think my workaround, or something like it, is your only option at the moment, but we can see if anyone else has any other answers.

If the workaround is not acceptable to you, bug reports against git-build-recipe are welcome including for feature requests to cover new use cases such as this. I can't speak for what the answer will be as to what enhancements would be suitable in general, though. An enhancement to provide a regexp-based substitution inside an expansion might be possible, for example, but would probably need to be implemented in a way that ensures that malicious code cannot be executed on the host running git-build-recipe in the face of an untrusted recipe input. It would probably be best to find agreement in a bug first, before attempting to implement such a feature enhancement.


wifi & bluetooth not working on my hp compaq note15 laptop

If so, do install wifi drivers
Open terminal and type in
sudo software-properties-gtk

Then enter your password

This window opens up eventually, select Additional Drivers tab and your driver will show up if you're connected to proper internet through ethernet cable and do install it.
That's it.


" apache2.service is not active, cannot reload "

Do

apachectl stop

It will throw an error message regarding syntax error in /etc/apache2/apache2.conf file

Correct it.

Then do

apachectl stop
/etc/init.d/apache2 start

Now reloading of apache2 will work

Do

/etc/init.d/apache2 reload


Xubuntu - how to use both front and rear audio output?

hdajackretask is a tool to reassign the function your jacks for different input, output or disabled - e g, turn your Mic jack into an extra Headphone, or why not make them both line outs and connect them to your surround receiver?

Install alsa-tools-gui

sudo apt-get update
sudo apt-get install alsa-tools-gui

Run hdajackretask Then To override one of your jacks:

Select a codec
Click the "Override" checkbox for that pin and select the new
desired function
Test out the changes with the "Apply now" button
Once satisfied, click "Install Boot Override"


Ok so I managed to get ubuntu to boot from my usb flash drive by using UNetbootin http://unetbootin.sourceforge.net/ as someone suggested on this website, I had previously tried the LiLi program as well as universal usb installer but both gave me the errors I discussed above. I used the UNetbootin program and it miraculously worked, so if anyone is experiencing the errors I was getting, try out UNetbootin and hopefully it works.


You haven't hit a wall, but you've hit a |!  (So unfortunately, no, you cannot do that without a major re-write of the grep source code.)

However, I like the idea, so if you want, feel free to file a bug at the FSF, or if you don't want to go through the effort, I'll file the bug for you!  (just drop a comment)

Fantastic question! I've already added:

alias grey-grep="GREP_COLOR='1;30' grep --color=always"
alias red-grep="GREP_COLOR='1;31' grep --color=always"
alias green-grep="GREP_COLOR='1;32' grep --color=always"
alias yellow-grep="GREP_COLOR='1;33' grep --color=always"
alias blue-grep="GREP_COLOR='1;34' grep --color=always"
alias magenta-grep="GREP_COLOR='1;35' grep --color=always"
alias cyan-grep="GREP_COLOR='1;36' grep --color=always"
alias white-grep="GREP_COLOR='1;37' grep --color=always"

to my bash.bashrc file!


is there a GUI front end for Nix package manager?

There is no GUI.
For a nicer CLI wrapper, you can use nox.

BTW the link from Dumindu Mahawela's comment is dead now - I didn't have time to work on that repository, and there are already dev packages for Nix available from Hydra.


Problems installing Ubuntu 18.04 on 1950x Threadripper with NVMe SSD

After many months of trying and switching out parts. I finally found out the problem of these install issues. I had incompatible RAM, even thought it let the system boot, it was throwing me off to what was causing the issue.

Make sure you have compatible ram. Look it up according to your motherboard specs and buy those only.


It is realy simple..

Install ubuntu-restricted-extras.
For, that in your terminal enter.

 sudo apt-get install ubuntu-restricted-extras

It will ask for your root password.(For getting terminal press Ctrl+Alt+t.)

For assistance feel free to visit help.ubuntu.com.

And also please do some search before asking questions.


I found a solution using windows pe system. I used DiskGenius to delete the existing ESP partition and built a new one using the tool that comes with it. Then I rebuilt the bootloader using a special script that also came with the pe system. I know it doesn't sound helpful, it is because it was a Chinese pe system and the script doesn't have a name and is not available here in the US. The idea is just to rebuild the ESP partition.


Can't execute files in windows partitions from Ubuntu

This is common with ntfs mounted partitions.  You have to mount the partition with executable rights.

Try this article:  .exe file permission fail


Genius Messenger 310 Camera turned 180º in Karmic

This is a known bug.

There is a workaround you can try if you like.


Using the disown bash builtin, I can get xdg-open to detach from gksudo, but cannot do anything about nautilus:

The command:

gksudo --description "Launch a root Nautilus" -- bash -c "xdg-open / & disown"

The effect:

$ pstree -ps $(pgrep -u root nautilus)
init(1)───lightdm(1095)───lightdm(1537)───init(1545)───xdg-open(29323)───nautilus(29376)─┬─{nautilus}(29378)
                                                                                ├─{nautilus}(29380)
                                                                                ├─{nautilus}(29381)
                                                                                └─{nautilus}(29382)

Unfortunately, this leaves the gksudo hanging around, doing nothing:

$ pstree -ps $(pgrep gksudo)
init(1)───lightdm(1095)───lightdm(1537)───init(1545)───test.sh(29601)───gksudo(29604)─┬─{gksudo}(29605)
                                                                                ├─{gksudo}(29606)
                                                                                ├─{gksudo}(29608)
                                                                                └─{gksudo}(29610)

If you won't mind a hack, this script can get rid of the gksudo process, assuming you can type fast enough:

#! /bin/bash

gksudo --description "Launch a root Nautilus" -- bash -c "xdg-open / & disown; exit" &
sleep 10; kill %1

If you can't type fast enough, adjust the sleep duration.


Try to look into sound settings if specific applications aren't muted.


I have an UX32VD with Optimus - I have used the following kernel options, and have never seen corrupted images..

Run this command in a Terminal window (Ctrl+Alt+T):

gksudo gedit /etc/default/grub

That opens /etc/default/grub in a text editor. Add the following line to the file:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nmi_watchdog=0 apparmor=0 pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1"

Save the file and quit the text editor.

Run this command to regenerate grub.cfg:

sudo update-grub

Reboot afterwards.


host ubuntu and guest Windows access each other from command line?

Yes you can install a ssh server on the windows guest. Options range from cygwin and several ssh servers are available.

See http://www.windowsnetworking.com/articles-tutorials/windows-server-2008/install-SSH-Server-Windows-Server-2008.html

You can download cygwin here - https://www.cygwin.com/

When you run the installer (cygwin.exe) you may choose what to install. search for openssh , last I looked client and server were packaged together as "openssh"

Full tutorial - http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/

Once the ssh server is installed , configured, and running in the windows guest you simply

ssh user@windows_ip_address

I am assuming you know how to use a ssh client, if not see http://bodhizazen.com/Tutorials/SSH_overview


Is it accurate to name the Ubuntu GUI (or any other operating system GUI) a "TTY" for that matter?

A desktop needs a tty to run but that does not make the GUI a tty. You should call it a session and a tty you use to login either to command line session or a desktop session.

  Is it true to say that any Window (like a directory window or a gedit/geany window) is a TTY by itself or just a (window) part of the larger GUI TTY?

No. Those are processes (within a session).


Can't install Ubuntu on new windows machine

Does it boot?

According to https://ubuntuforums.org/showthread.php?t=2424000&page=2 you can safely ignore the message but it sounds to me like maybe you have the wrong kernel version?


This guide will install non-snap version

Remove snap version

sudo snap remove postman

Download and install apt version

wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

sudo tar -xzf postman.tar.gz -C /opt

rm postman.tar.gz

sudo ln -s /opt/Postman/Postman /usr/bin/postman

Make a app launcher shortcut (Paste this whole block below into terminal)

cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL

Then postman should be available in app menu.
ref: https://www.bluematador.com/blog/postman-how-to-install-on-ubuntu-1604
NOTE: this has been fixed with ubuntu 20.04 lts and postman works out-the-box


Its best to ask this @ ros.org as it depends which version of ROS you want to install.
Diff ROS versions run on specific ubuntu versions only.

Electric works best on 11.10

However, I would recommend installing 12.10 and then installing latest version of ROS. i.e, simply follow the instructions from : http://www.ros.org/wiki/groovy/Installation/Ubuntu for 12.10

(I didn't checked Hydra and 13.04)

Don't consider extended support of 12.04 as its best to keep up with the updates of ROS community.

Hope this helps


I suggest you to try to reinstall GIMP using the following commands in terminal:

Uninstall GIMP:

sudo apt-get purge gimp*

Delete ~/.gimp-2.8 directory (you can make a backup first) which may contain others GIMP configuration files .
Install GIMP again:

sudo apt-get install gimp

Those images from your question don't look as GIMP should, after a clean installation.


I was not able to find a solution to the issue with Dropbox version 1.6.1. However, installing version 2.6.5 from this link did resolve the issue.

wget https://dl-web.dropbox.com/u/17/dropbox-lnx.x86_64-2.6.5.tar.gz
tar xzvf dropbox-lnx.x86_64-2.6.5.tar.gz

The files will be removed from the archive and placed in the appropriate location for you. Keep in mind, this is not (as far as I know), available from the Ubuntu repos, so you'll need to do a few extra steps to set it up properly.

Set up Dropbox as a service by following Alvin Row's instructions in this post
If you want Dropbox to start on system start, add bash -c "sleep 20s && ~/.dropbox-dist/dropboxd" to your Startup Applications. Alternatively, add the same command as an @reboot task in your crontab. You can try it without the sleep portion, but the icon didn't show up for me unless I included it.


Ho to upgrade Ubuntu 12.04 to Ubuntu 13.10?

It is not recommended to directly update 12.04 to 13.10 directly.It'll be better if you upgrade to 12.10 and then to 13.04 and eventually 13.10. The releases are made up so that you can go only from one version to another consecutively or from one LTS version to another LTS version. Otherwise it may result into buggy system and will ruin your experience of using ubuntu.

Now if you really want to install 13.10 you can download .iso from
here and boot it to virtual machine via live usb or whatever you prefer.


DNS suddenly broken in Ubuntu VirtualBox

OK, I found a solution here which is to run

sudo dpkg-reconfigure resolvconf

In the interaction with dpkg-reconfigure, I answered YES to the first question and NO to the second one. This bug report may be relevant to the problem I had.


This is because you have both versions installed, with 4.6 being treated as the default one.

You can explicitly choose which one to use.

$ gcc-4.7 --version
gcc-4.7 (Ubuntu/Linaro 4.7.2-22ubuntu4) 4.7.2
[...]

$ gcc-4.6 --version
gcc-4.6 (Ubuntu/Linaro 4.6.3-15ubuntu3) 4.6.3
[...]

The easiest way make gcc-4.7 the default gcc is to move the symlink of /usr/bin/gcc:

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc


You can not make an application use socks proxy if it doesn't support it. Firefox supports socks proxy that's why you can simply change the proxy settings in Firefox to make it work.

However, for apps that don't support Socks proxy, you can use Proxychains instead. It is very easy to setup and use. It comes pre-configured for use with Tor.

Debian family:

sudo apt-get install proxychains

Red hat family:

sudo yum install proxychains

Usage:

proxychains wget http://icanhazip.com/


Wifi intermittently loses connection and then requires restart 16.04. Further Difficulty reconnecting

Your wireless_info contains some interesting things. First, this:

  iw reg get ########################

  Region: America/Chicago (based on set time zone)
  country 00: DFS-UNSET

I recommend that your regulatory domain be set explicitly. If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set US

Of course, substitute your country code if not United States. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=US

Proofread carefully, save and close the text editor.

Next, we see:

[    9.503833] Using firmware rtlwifi/rtl8192eefw_new.bin
[    9.504445] rtlwifi: channel plan 0x20
[    9.504448] rtlwifi: country code 11
[    9.506227] rtl8192ee 0000:03:00.0: Direct firmware load for rtlwifi/rtl8192eefw_new.bin failed with error -2
[    9.506232] Firmware rtlwifi/rtl8192eefw_new.bin not available

Evidently, your driver would like to have the "new" version but it isn't available. Let's install it and see if it helps. With a temporary working internet connection, please open a terminal and do:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new/firmware/rtlwifi
sudo cp  *  /lib/firmware/rtlwifi

After these changes, reboot and tell us if the performance is improved.


Remote backup servers are denied connection?

Finally I found the answer. It was - for although unkown reason - PSAD that was the issue (for doing it's job). PSAD denies my machines and running a simple psad -F resolved the issue. I have used ufw to allow the machine's IPs and will now see whether the issue will return or not.


13.04 hp laptop dv6t intel quad edition no headphone sound when plugged in

I have an HP dv7 on 13.04 with very similar problems. The fix for me is as follows:

Plug your headphones in, and then open a terminal with ctrl+alt+T. Run alsamixer. Move to the right so that the "speaker" column (which will be at 0) is highlighted, and then turn it up.

I wish I could offer a more permanent solution (because goodness knows I'd love to know of one too), but this will at least work to get it working (it will continue to work even if you unplug/replug the headphones, but you will have to do it again every time you restart - and probably if you log out and in again, I haven't tested this for myself though)


No, it shouldn't, as long as your updates are from a repository or PPA and you installed SeaMonkey as a package.  If that's the case, the package will update normally, though you might (or might not) have to recreate your spoof after an update (if only to reflect the newer version to avoid security lockouts).

If you built SeaMonkey from source, or downloaded it as a tarball (.tar.gz or .tar.bz), you'd need to manually update anyway, regardless of spoofing.


Automatic transfer of files from Xubuntu to VLC for iOS through WiFi sharing

This does not appear to be currently supported by the iOS version of VLC.  You can follow the VideoLAN bug reporting policy which tells you how to submit a feature request to make this possible in the future.


juju sync-tools on maas 502 bad gateway error

I tried to find which dns server eturns my proxy ip address:

I watched when I try nslookup 'proxy' on my MAAS server ( VM) the it returned from my forwader dns,

I installed the dnsmasq on MAAS server and my MAAS-DNS returned the ip of proxy and it fixed the problem.


Black screen around Virtualbox VM in fullscreen mode (Guest additions installed)

The guest additions cd needs installed within the client. You can do this from the client toolbar. Devices -> Insert guest additions CD image...

That will mount the guest additions cd image. Click on it to run it. Let it install. It will then reboot the guest operating system. When the guest restarts and you log back in you will be able to go full screen and the resolution will adjust automatically. You can scale the window whatever way you want by dragging the corners of guest window and it will auto adjust to whatever that resolution is.


Why isn't my custom launcher appearing in the dash?

Your desktop file is invalid. Please replace Exec[$e] with Exec and try again.

You can use desktop-file-validate to see, if your .desktop file is valid:

sudo apt-get install desktop-file-utils
desktop-file-validate ~/.local/share/applications/Tam.desktop


No menu option to "switch user" in Cinnamon desktop

One suggestion is to create either a favourite shortcut in the main menu or a panel shortcut.

To do this, use alacarte to create a shortcut to the command gdmflexiserver

Logout and login

Then search for your shortcut:

Right-click the menu item and choose one of the options as shown.


Booting issues after crash during update

If it crashed during an update, you're in deep trouble. At this point, you have a few options:

Reinstall, lose everything. (Easiest. I have done this myself a few times ;)
Back up everything, reinstall. (Medium, requires a bit of linux knowledge.)
Attempt to repair your current installation. (medium, requires a lot of time. May not work.)

Reinstall, lose everything

Install from the Live CD/USB, just like you did the first time. If you don't remember the procedure, or didn't install it yourself, read this before continuing.

DURING THE INSTALLATION PROCESS, if you're running a dual-boot, tell it to overwrite the existing Ubuntu installation. If it's a full-disk install (i.e., you don't have Windows installed on that computer as well,) just tell it to format the whole disk.

Back up your files, then reinstall  NOTE: For this, you'll need something to back the files up to.

This is actually fairly simple.
While it's booting up, hold CTRL. You should see a screen with a purple background (sometimes it's black) and a few options. One of these is labeled as a "Recovery Mode". Choose it.

During the startup, you'll see a bunch of text on the screen, maybe some errors. Don't panic. Once it finishes, choose "Drop to root shell prompt".

You'll need to know the drive of your external HD (or whatever you're using to back up with.) Type, at the prompt: fdisk -l
You should see a bunch of info. If you pay attention, you'll see that it's arranged in a table. Try to puzzle out which entry is your external HD. (Guessing by size is usually a safe bet.)

Here's my partition table, for an example:Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       12234    98263714+   7  HPFS/NTFS
/dev/sda2           12234       19453    57985025    5  Extended
/dev/sda5           19192       19453     2094080   82  Linux swap / Solaris
/dev/sda6           12234       19192    55890944   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 8014 MB, 8014266368 bytes
255 heads, 63 sectors/track, 974 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         974     7823623+   b  W95 FAT32

Here, /dev/sda is my hard drive, and /dev/sdb is a flash drive I had plugged in. (1024 MB = 1 GB)

Now, note the Device (e.g., /dev/sdb1) and the filesystem type (e.g., NTFS.)

If it's NTFS, type sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/FOO1 /media/ (replace FOO1 with the drive you found earlier - e.g., /dev/sdb1)

If it's FAT32, type sudo mount -t vfat -o iocharset=utf8,umask=000 /dev/FOO1 /media/ (again, don't type FOO1.)

Now, a good idea ismkdir /media/ubuntu-backup
cp -Rv /home /media/ubuntu-backup

After if finishes, use another computer to double-check that the files are backed up, then do method 1 above to reinstall.

Attempt to repair your current installation

Use the process in method 2 to get to the root shell prompt. At the prompt, type:

dpkg-reconfigure -a
apt-get update
apt-get dist-upgrade
reboot

(If you'll be running it overnight, just type this one command: dpkg-reconfigure -a && apt-get update && apt-get dist-upgrade -y && reboot. This will run all the commands in order, and tell the upgrade command not to ask any questions, unless there's a problem.)

BE SURE your internet is in a stable condition, and will be so for a while. After you execute the command, it will probably take a LONG time.

If this third method fails, just try method 2.


Ubuntu Server Installer does not detect usb device

First of all many thanks for your feedback!

Regarding the exact setup:

I was using a ZOTAC ZBOXHD-ID11, an external CD/DVD drive and an SD card (sitting in the zotac built in sdcard bay) which supposed to be the target of the OS install. The HDD was taken completely out for the tests.
The setup was exactly the same in both cases only the content of the installer CD was different. :) Formerly the 11.04 (64bit server) installer downloaded directly from ubuntu and now the 12.04 (64bit server).
In both cases the CD in the drive was booted and I tried to install the OS directly onto the SD card. Using the old version it went fine, while in the latter case it failed with the mentioned error message. Of course the error message was given by the Ubuntu installer.

In the mean time I could work around my initial issue and I also believe that I could (hopefully) understand the root cause of the problem. So, please find my supposition (as it might be useful for others):

I think that the kernel version which was shipped with the 12.04 64bit Server installer CD did not support the internal SD card reader (Realtek Semiconductor Corp. USB 2.0 multicard reader based on "lsusb") in the zotac box.

How I come to this conclusion:

After fighting with the SD card for a while I decided to skip that and give it a try with an regular USB pendrive. This was correctly recognised by the installer and I could easily finish the installation process (exactly the same was as before with the old ubuntu and the SD card). What was even more interesting that after finishing the install of 12.04 I have executed the ususal "apt-get update" and "apt-get dist-upgrade" which brought a new kernel version. After rebooting this latest version was already able to see the SD-card as well.

So, now if I still would like to stick to the original plan I just have to copy the complete content of the pendrive onto the SD card.. ;)

Best regards,
Peter


Solution for me:

sudo apt-get install light-themes

  After the installation I have chosen "Radiance Theme" and switch to default theme again and it was fixed.

Source: A comment by OP


Poor speakers quality on lenovo thinkpad e460 with Ubuntu 16.04

I am facing similar problem on L450. But my problem is more with recording. Whatever I record has lot of noise. But on windows it works perfectly fine. Don't know what is the issue.


Can I export all of my modified photos from Shotwell?

Currently there is no way to select only modified images from within Shotwell.

There is a ticket for adding this as a saved search option -- which I think would work for you -- but that ticket hasn't seen an progress yet: http://redmine.yorba.org/issues/4111


type is not a normal command. It's a shell buitin. See:

$ type type
type is a shell builtin

So, you need to invoke bash with -c to achieve what you want

$ find . -name anacron | xargs -I '{}'  bash -c "type {}"

Or even simpler (no need for xargs):

$ find . -name anacron -exec bash -c "type {}"  \;

It will call bash -c "type ./file", with every file that is found by find. -I in xargs means, we define here a placeholder {} to use later. This placeholder is replaced with the filename found.

Why shell builtins don't work with xargs:

  [...] Builtin commands are contained within the shell itself. When the name
  of a builtin command is used as the first word of a simple command,
  the shell executes the command directly, without invoking another
  program. [...]

  xargs reads items from the standard input, [...], and executes the
  command

The command in this case is a simple excutable, and a shell builtin is not an executable. It cannot be found in the filesystem. It's within the shell itself. So you have to call the shell and tell the called shell to invoke the builtin command. That's what happend with bash -c "command".


Userid and Password for localhost:631 on Lubuntu Live USB Session

IIRC the credentials should be root's. So set a root password and test it out:

sudo passwd


Not sure which Ubuntu to install (64 or 32 bit)

Your processor can certainly handle 64-bit software. RAM shouldn't be a problem either, but I've been wrong before.

You can find instructions on creating a bootable USB stick if you don't have a DVD burner and spare DVD sitting around.


Troubleshooting Script: Want to see command output to CLI

You can add set -x to the top of your bash script or (equivalently) run it using

 bash -x yourscript

See help set or the SHELL BUILTIN COMMANDS section of man bash:

  -x  Print commands and their arguments as they are executed.

There is more discussion at How to debug a bash script? on SE Unix & Linux

What you will probably see in this case is that $FLAGS variable is empty: it is enclosed in single quotes so gets passed literally to the bash -c subshell, where $FLAGS is undefined.


Install Ubuntu on ThinkPad, recovery section must remain intact

If you only need it to work in case you return it and have a bit of cash and a screwdriver I'd seriously consider buying a nice SSD and just replacing the current one. Keep it safe and if you need to return it, just switch it back.

If (for a reason I don't understand) you constantly need the restore button to work, use something like CloneZilla to take a whole-disk backup to another machine (or an external drive). At least then if you do lose this feature, restoring is pretty simple.

Restore systems tend to use a separate partition to the standard Windows install. As long as you leave that as-is and just resize (or remove) Windows' partition, you should be fine. But backing up should ensure that.


If you didn't see the bootloader, it means that it is not installed, at least not properly, or it was overwritten.

I would recommend you to boot from a live-cd/usb and try boot-repair:

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

Good luck


Rabbit VCS on Ubuntu 18.04.1 LTS - not showing menu in Nautilus

Please follow the same procedure as the other question's accepted answer as you mentioned, but try killing Nautilus process instead of restarting it.

Install rabbitvcs-nautilus
sudo apt-get install rabbitvcs-nautilus

Create a local folder (under user home) to store the python extension
mkdir -p ~/.local/share/nautilus-python/extensions

Copy the RabbitVCS python extension to new local folder
cp /usr/share/nautilus-python/extensions/RabbitVCS.py \
~/.local/share/nautilus-python/extensions

Try restarting Nautilus:
nautilus -q

Optional: If you still cannot view the context menu, then try killing Nautilus, which should get usually restarted automatically.
sudo killall nautilus


Try to purge all  dependencies and re-install mysql-server.

sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-5.5
sudo apt-get install mysql-server


If anyone would like to help us out, we are looking for some help in the documentation department.
Any kind of help is welcome here.
There are some good pass tutorials out there though.
http://www.webupd8.org/2016/03/manage-passwords-from-command-line-with.html
https://wetechgeeks.wordpress.com/2016/03/10/manage-passwords-from-the-command-line-with-pass-2/
These apply to QtPass the same.
gpg –list-secret-keys

Note your keyID . .
pass init keyID

Is all you'll need to know to get started.
QtPass should guide you through these steps with a wizard at first start (if pass / your password-store is not setup properly yet and) even if you don't have GPG set up . .
When using pass already you should feel right at home instantly.


How to Install Justinmind Prototyper in ubuntu

JustinMind does not seems available for Linux. You won't be able to install it.

You can still try to launch using Wine or with a Windows Virtual machine.

Edit : It seems possible with Wine.


How to bring back GUI in Ubuntu 18.04 LTS

What worked for me was:

sudo apt-get install --reinstall lightdm

(As N0rbert suggested in a comment.)


The real issue comes down to two things:

Is your system equipped with a 64-bit processor?  You can usually accomplish this by finding out the specs for the machine.

If it's not a 64-bit processor, then you can't use a 64-bit operating system.
If it IS a 64-bit processor, you can install either the 32-bit or 64-bit operating system.  But note that a 32-bit operating system can't ever use more than 4 gb of RAM.  If you ever decide to increase your RAM, the 32-bit operating system will have this limitation, but the 64-bit operating system will not.


How to install/activate logitech webcam c270 on Ubuntu 18.04?

It depends on your program.

I am like cheese f.ex. just install with:
sudo apt install cheese

Than take a look how it works with:
cheese --help
[...]
-d, --device=DEVICE        Device to use as a camera
[...]

(--help or -h should work with any program. If you're in any GUI search for 'Help' in the menu bar)

All possible devices can be seen with ls -ltrh /dev/video* and it starts with 0 (your internal cam). The external cam should be available with:
cheese -d /dev/video1 (of course depending on the other system configurations)

If this is too much, just disable the internal cam in your Laptop BIOS (the steps depends on your device).
If you'd like to have a cool solution, may you'd like to write an udev-rule for the permanent reorder.
Something in between is to find and unload the kernel driver ... but this needs to have two different camera chips/drivers. And when you'll start to write in /etc/modprobe.d/ (for example in blacklist), it could be easier for us to support the udev-thing.


I faced the same issue and after changing some option in the preview panel/device toolbar panel one option worked out for me which is Device Type.
When I switched to responsive view the default view is Mobile and I changed that to Desktop which worked for me and when I switched back to Mobile the issue didn't appear again.
Although it did appear again after reopening the responsive view. This was not a permanent fix.

One observation
I think this issue is only for websites whose body height and width property is set to viewport height(vh) and viewport width(vw) respectively. Not sure if you were using the same properties or if not this then it might be just in the development environment.
Not sure about this but that's all I found out.


I have installed https://addons.mozilla.org/en-US/thunderbird/addon/gcontactsync/ and it appears to work.


Deleted Windows E:\ drive ; now how do I give that partition to Ubuntu?

You've probably run into a rounding error -- the partitioning tool tried to align a partition to a 1MiB boundary and that ended up causing it to overlap with a preceding or following partition. The simplest way around this problem is to leave a small gap (~1MiB) before and/or after the partition you're creating.


Attempting to install netgear N300 Wireless USB Adapter on Ubuntu without a present internet connection

OP Posted:

  I FIGURED IT OUT! I installed the driver: bcmwlhigh5.inf, using ndiswrapper (don't ask me what version, I don't know) to check stats and window wireless drivers to install I was able to get the device working and communicating! That is awesome.


How can I make dual boot on Motorola Droid RAZR?

check this out

http://www.droidrzr.com/index.php/topic/11410-romdroid-razrany-kernel-ubuntu-touch-preview-
0301-alpha-update-2/


Retry after reboot. Use synaptic this time after an update command. Before that, check synaptic for any broken residue package, remove it first. Hope it will help.


If you want to become a developer we have some great resources for people of all skill levels here: http://developer.ubuntu.com/apps/

And while it's not currently being used, we have a sub-reddit where people have suggested ideas of apps during our app development contests, which we will be running again this year, so you can post your ideas there and maybe somebody will take them up: http://www.reddit.com/r/ubuntuappshowdown/


Building 64-bit application on 32bit Ubuntu 12.04

According to the package index, libc6-dev-amd64 contains bits/predefs.h (your errors are about that header file being missing). So install it:

sudo apt-get install libc6-dev-amd64


What is the terminal command to install the whole gtk 3.14 libraries in ubuntu?

I dont think this is exactly what your looking for, but  might be of use.
gtk+3.0 Package in Ubuntu

Edit: it won't be a single command, but just click version you want for the distro you have and you will find a tarball that you can compile and install. There are even some .debs available too that might resolve your current dependency issue


Supposedly this can be disabled by changing a setting in the gtkrc or settings.ini files, for GTK 2 and 3 respectively. The option is gtk-enable-mnemonics, it has been deprecated, but the documentation states it still should be possible to use it.

However, it really was removed from GTK, as this other answer states, you can view the commit's diff here.

There's a bug report for it in Nautilus' launchpad, so maybe Ubuntu will make a patch one day, although I doubt it.


Kubuntu 20.04 - sometimes frame rate decreases

I don't know what is the original issue, but I solved it by the following steps:

Disabled all KDE/Kwin vsync options.
Generated nvidia-config xrorg.conf for both monitors
Added {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On} Xorg option for both monitors, so my screen section looks like

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-4"
    Option         "metamodes" "DP-2: 1920x1200 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-4: 2560x1440 +1920+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

It started to work even better then it was before the refresh rate down.
Hope this will help to somebody or for me in the future :)

Would be nice to find out the original problem with Kwin (?)


How do I remove Ubuntu, wipe hard drive and Mac

Use any "boot CD" with utilities (a lot of such kind of CD you can find in the network (for ex., Heren Boot CD, etc)
Than load your computer and start fdisk (MSDOS fdisk sw) After, type in command line:

fdisk /mbr, then you can try to edit / delete the patrition(s)

After that, you should be able to load any new OS there..Hope it will help :)


LibreOffice Command Line Conversion - No Output File?

I use this command and it work properly:

libreoffice --headless --invisible --convert-to pdf --outdir ~/dir  ~/dir/file_to_convert.pptx

But if you can convert a .doc file, you should be able to do the same with .pptx file. It's odd...


After some back and forth on a linuxwacom bug report, the solution is that there is a problem with the wacom tablet sometimes mislabeling linux as android. The solution is to hold down the left most and right most buttons for 3-4 seconds until the light turns off and on again.  This switches the tablet from android to PC mode and fixed my issue.


Some of the drivers can be found in software manager and some on the manufacturer websites. Try to search for drivers of your computer. That may help.


Following these instructions, I ran pulseaudio in verbose mode:
$ systemctl --user stop pulseaudio.socket
$ systemctl --user stop pulseaudio.service
$ pulseaudio -v

And I found the following output each time the static noise started:
I: [pulseaudio] module-suspend-on-idle.c: Source alsa_input.usb-Logitech_Logitech_Wireless_Headset_88C626977831-00.multichannel-input idle for too long, suspending ...
I: [alsa-source-USB Audio] alsa-source.c: Device suspended...
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_07_00.6.analog-stereo idle for too long, suspending ...
I: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Device suspended...
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_07_00.1.hdmi-stereo idle for too long, suspending ...
I: [alsa-sink-HDMI 0] alsa-sink.c: Device suspended...
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.usb-Logitech_Logitech_Wireless_Headset_88C626977831-00.analog-stereo idle for too long, suspending ...
I: [alsa-sink-USB Audio] alsa-sink.c: Device suspended...

Then, I commented out this line from /etc/pulse/default.pa:
### load-module module-suspend-on-idle

Finally, I reboot my computer and the static noise was gone :)


How to force Multiple Monitors correct resolutions for LightDM?

NOTE: I also posted this answer here

I found a very simple workaround that works perfectly for me running 13.04. on a laptop with a 24" external screen that is not permanently connected.

I'll just copy from here

  log in
  use xrandr or the Displays control utility to configure your monitors how you'd like them to be configured in the login screen
  sudo cp ~/.config/monitors.xml /var/lib/lightdm/.config/

Since I already had my monitors configured properly I just had to do step 3.


Adding Persistence Manually

UNetbootin: Add casper-rw file to USB root. Edit syslinux.cfg, adding a space and the word persistent to default boot, thus: "...splash --- persistent".

Rufus: Add casper-rw file to USB root. Edit /isolinux/txt.cfg, (for BIOS boot persistence) and /boot/grub/grub.cfg, (for UEFI boot persistence), thus: "...splash --- persistent".

Start up Disk Creator uses a write only ISO9660 file system which takes up the whole drive and GParted can't modify. Persistence is not possible.

Mkusb Live installs also use ISO9660 file system, (which GParted won't modify), however mkusb can be downloaded to the Live USB and used to turn the Live USB into an excellent Persistent drive that uses casper-rw partitions of unlimited size.

To create a casper-rw file:

sudo dd if=/dev/zero of=casper-rw bs=1M count=512

sudo mkfs.ext3 -L casper-rw -F casper-rw

(where count=512 is persistence size, with max size = 4GB).

Starting with Ubuntu 19.10, persistent partitions can be added to UNetbootin and Rufus and also to cloned drives.


I really do not think it an OS problem, and I do not think its normal either. A friend of mine has the same laptop, with Windows 7, and has the same problem.

It is known that the Vaio SB suffers from heat and noise problems.  As powerful hardware and thin profile don’t go hand in hand. The fans will be particularly noticeable when using the dedicated video card.  But if gets way too hot, I would call Sony, to see what they say about it.


Problems in LibreOffice Writer when saving as .docx

LibreOffice Writer is compatible with MS Word, but don't expect that every format you applied in Word will be the same if you open the file in Writer and vice versa. No such thing as 100% compatibility.

I have been creating documents with MS Word at work and modifies it at home with LibreOffice Writer, and although they are compatible, there are visible changes in the document's formatting such as spacing, font, header and footer, and yes alignment of images as well.

I'd suggest that if you don't need to open it with Word, stick to the default .odt file format.

If you do need to access the file with MS Word, then I'd recommended to save it as .doc and not as .docx. Saving it in older doc version will guarantee (most of the time) to open it in the original document formatting.

For more assistance, please see How to maintain document compatibility between LibreOffice and other office suites?


How do I check the flow of internet through ubuntu?

The most simple method is using nethogs :

sudo apt-get install nethogs
sudo nethogs wlan0


How do I add classical categories in Unity's Dash?

Old school dash

PPA - ppa:shnatsel/unity (How to use PPAs)


Ubuntu 14.04: Can't reach link-local addresses

After looking further into this, I have found that a route for 169.254.x.x is indeed automatically created (by the /etc/avahi/avahi-autoipd.action specifically) but only when DHCP fails and a link-local IP is assigned to the machine. This route is also automatically removed if an IP address is later obtained via DHCP.

I knew that this route was created automatically but I thought it was created always. Now I see it is only created when a link-local IP address is assigned.

Update: I wonder why this route isn't created by default. This would make it possible to communicate with devices that only have a link-local address, even if Ubuntu is not using a link-local address itself. This is well described in this technical article from Apple.


Directly booting to Ubuntu 14.04 without a Windows boot option

Did you try updating the grub with sudo update-grub? It will tell you if windows partition is detected. If it is detected just reboot.


Works for me. If you did not remove Pulseadio (Ubuntu's default audio system and ESD replacement) you may have more success in doing this:

pasdp instead of esddsp:

echo '(SayText "hello world")' | padsp festival --pipe

Pulseaudio's automagic alsa swallower:

festival '(SayText "hello world")'


How to Boot Xubuntu 16.04 from UEFI Firmware

I managed to finally get the Boot options available and was able to follow these directions going forward: Acer Aspire E15 will not dual boot


Cannot add PPA ERROR user or team does not exist

The cert should be added by add-apt automatically. if you are sure that there is no typo in the PPA name, maybe try without the --update. I am using the syntax without --update and it worked fine. You could also check the normal url in a browser:

http://ppa.launchpad.net/juju/stable/ubuntu

It should list the structure with the files. If not check that address.
Using /etc/apt/sources.list you could also add the path manually, but then need to download the certificate and install it in /etc/apt/trusted.d folder.

CatMan


-Segmentation faults- with basic commands, kernel crash and files corrupted after reboot

The reason this may have happend is that the is may have been running a process in the background that held up resources that meant your UI and other processes couldn't updated until that process had finished and when you did the forced shutdown what ever the process that caused the system to freeze had opened were made corrupt.

The best way I can suggest to attempt to fix this is to install Ubuntu onto a USB stick and boot in from that. Once you're on that you should be able to reinstall the ununtu-core on your SSD partition. It may not fix all your issues but should give you back full terminal access.


Multiple boot windows 8 and ubuntu how to remove?

Right Click on the My Computer icon on Windows 8-> Properties-> Advanced -> Startup and recovery -> Settings ... There decrease the time to list the os to zero from 30 seconds


how to record the screen the system sound and audio from the microphone at the same time with ffmpeg?

Here is answer to your question from these post:
FFMPEG: commandline options to recording audio from mic and speakers
Record program and mic on two separate tracks with ffmpeg
using the PulseAudio utility "pacmd".
Refer this & this Tutorial on youtube
$ pacmd list-sources|awk '/index:/ {print $0}; /name:/ {print $0}; /device\.description/ {print $0}'

Run above command to get the names of all the system recording interfaces. Sample output given below.
    index: 0
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
        device.description = "Monitor of Built-in Audio Analog Stereo"
  * index: 1
    name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
        device.description = "Built-in Audio Analog Stereo"

Find your input sources run pacmd list-source-outputs | grep source
Now, run the following command to recording audio from mic and speakers simultaniously.
ffmpeg -f pulse -i [Your input source 1] -map '0' 0.mp3 -f pulse -i [Your input source 2] -map '1' 1.mp3

For example:
$ ffmpeg -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -f pulse -i alsa_input.pci-0000_00_1b.0.analog-stereo -acodec libmp3lame -map 0:0 -map 1:0 outfile.mkv


How to I configure routing table for an interface like this?

Routes to on-link hosts shouldn't have gateways. The only gateway that should be present in your example is the default gateway (the route to 0.0.0.0).


Session manager must be in idle state when requesting a shutdown

The same thing happend with me today, it was the first time:
I've decided to go to the terminal mode by ctrl+alt+f1 and then find out the process id of session manager, by 'pidof  xfce-session' then close it with 'kill -9 ID'.
Then it started working fine.


How to install the drivers for my samsung ml-1670?

I'm sure you don't have to install drivers from Samsung, as Linux supports many printers out of the box.

I have similar one here, I just plugged it into power source and into PC, turned it on and went to Print settings. When I clicked Add printer it was already there.

So, it should be very simple. It is Linux after all, not M$ :)


If you're booting kernels directly with rEFInd, you can hit F2 or Insert to see a list of boot options laid out in the /boot/refind_linux.conf file. If none of them work, you can highlight one and hit F2 or Insert again to open a line editor that enables you to edit the options passed to the kernel.

If you're booting from rEFInd into another boot loader, such as GRUB, you'll need to use that boot loader to pass options to the kernel. In GRUB, you'd do this by selecting the kernel from the menu and hitting the "e" key to edit the options.

Either way, I can't say precisely what options you should pass, because it's not clear what's wrong with your system or what options might help. As a starting point, single will boot into single-user mode, which should disable the GUI and enable you to fix things if you're sufficiently skilled with text-mode commands. (This is one of the options that rEFInd will probably provide by default, although this depends on the /boot/refind_linux.conf file.) The nomodeset option will get past some common video problems.

If you need more help, I recommend you post more details, such as precisely what is and is not working.


Bittorrent is unchosen how to choose it as default software for torrent download?

Follow this guide:

http://www.howtogeek.com/117709/how-to-change-your-default-applications-on-ubuntu-4-ways/

Is quite easy to do it just from a torrent file you already downloaded.


Creating Ubuntu image to flash onto USB drive

The Ubuntu OEM Install is the way to go, at least if the target computers are rather similar (so that the system is portable between them). Do the preconfiguring in a prototype system. Ubuntu has a guest account.

When you are happy with it, create an image either with dd|xz or maybe better with clonezilla. Then you can clone from that image to the target computers. There is a server version of Clonezilla, that might fit your purpose.

clonezilla.org


How did all the passwords get in my login keyring?

Seahorse is the tool to manage keys and passwords. (See seahorse manual.)

For more see this Ubuntu Forums thread.


Both firefox and chromium have problem with loading webpages

You may want to check your internet connection starting either with your router and or broadband modem as both browsers are taking a long time to load. The alternative could be that it's something with your Ubuntu installatoin. You could try Google.com to see how fast that page loads for starters (it should load within seconds if that long even). In Ubuntu there is also a application called "Network Tools". When you open it, there should be a tab called "Traceroute". Enter "google.com" (without the quotations") and trace it. The times shown are in milliseconds and are shown beside each waypoint your computer takes to find Google.com. Times over "200", I'd say, may show where you have a trouble spot. The first waypoint should be your computer with the next being either your router or modem and then your ISP and so on.


There is a good software with a GUI to do that called Fslint that you can install by your  default repositories:

apt-get update && apt-get install fslint

With this  software, you can detect duplicates files by using the names but  also the content (may be longer with content).


Which Ubuntu release should I use for an old Vista computer?

It is not advised to install an older version of Ubuntu unless it is still supported (like 12.04).

For a machine with low system specs, it is better to install an up to date but lightweight flavour of Ubuntu like Lubuntu or Ubuntu MATE.


Go to Power Management Preferences and click the tab labelled General then check the box Always Display Battery Icon in the Notification Area


Zoom Conference install and launching problem

Please run following command in your terminal and try running Zoom again:

touch ~/.config/zoomus.conf

Please let me know if that helps.


VNC server on Ubuntu 12.04 is not working -- external VNC clients cannot access

Ubuntu already has a VNC server called vino. Vino is pre-installed.

If you run

vino-preferences

you will get a dialog box to help you configure the VNC server, and even make your computer accessible for VNC from the Internet (if you wish to).

I recommend removing the packages you installed and use vino.

In addition, the pre-installed VNC client for Ubuntu is remmina.


Is systemctl daemon-reload equal systemctl restart service?

No
From man systemctl (perhaps the longest man page in the world):
Manager Lifecycle Commands
   daemon-reload
       Reload the systemd manager configuration. This will rerun all generators (see
       systemd.generator(7)), reload all unit files, and recreate the entire
       dependency tree. While the daemon is being reloaded, all sockets systemd
       listens on behalf of user configuration will stay accessible.

       This command should not be confused with the reload command.

There is a distinction between reload and restart
Unit Commands
   reload PATTERN...
       Asks all units listed on the command line to reload their configuration. Note
       that this will reload the service-specific configuration, not the unit
       configuration file of systemd. If you want systemd to reload the configuration
       file of a unit, use the daemon-reload command. In other words: for the example
       case of Apache, this will reload Apache's httpd.conf in the web server, not
       the apache.service systemd unit file.

       This command should not be confused with the daemon-reload command.

   restart PATTERN...
       Restart one or more units specified on the command line. If the units are not
       running yet, they will be started.


Install GNU GMP on ubuntu after modifying its source code

You should start by reading Ubuntu Packaging Guide and especially part 3. Fixing a bug in Ubuntu .

All your steps in brief:

Clone source code of GMP for xenial
Make changes in its source code
Compile deb-package with your changes
Install your patched packages into system with dpkg -i *.deb or apt-get install ./*.deb.


Low resolution stuck aften pressing win+p, what does win+p do?

So pressing Win-P enables Mirror displays, which in the settings and Display section it says: Note: may limit resolution options. I did it to test it and it took all screens to 1080, normally they are 2K or 4K.


How to run an executable without prepending ./

You have to run an execitable from current directory as ./executable where . represent the current directory.

If you are in ~/tools/web/visual-studio-code directory to run the executable Code you have to do two things,

Check if the executable has execution permission. See How to make a file executable?
Run the executable as, ./Code Why do I need to type `./` before executing a program in the current directory?

How to run an executable from current directory without ./ before executiable:

Run the following command in a terminal,

echo "export PATH=$PATH:." >> ~/.bashrc

and run Code from ~/tools/web/visual-studio-code as

user@server:~/tools/web/visual-studio-code$ Code

How to run an executable from any directory without ./ before executiable:

echo "export PATH=$PATH:$HOME/tools/web/visual-studio-code" >> ~/.bashrc

and run Code from anywhere,

user@server:~$ Code


How to create a script and add it in /etc/sudoers with NOPASSWD

The genesis of the sudo feature was to create and restrict root abilities for selected mortal users.  Also to create a logged audit trail to look at in case someone broke something using root access.  Prior to that time, many users and  administrators would log on as root and do all of their work in a root privileged shell whether they needed those capabilities or not.  It was not uncommon to log on to a server and see many dozens of root logins from many different terminals.  Obviously, this led to chaos.

The only major risk that I see for what you are proposing is that if someone hacks into your account they would have increased access to root owned files and commands.  If you have telnet disabled and ssh locked down securely, those risk would be minimized. As a systems administrator for many decades I always advise against circumventing security models but what you want to do, in the context of a limited access home environment is probably relatively safe.

That said, if you are unfamiliar with writing scripts or programming generally, writing a script to bypass sudo security as a first scripting effort is probably ill advised.  Unless you write your script in a very clever way, someone could very well come along and figure out your password and / or exploit your script to do bad things.

The easiest, but not at all the wisest way to accomplish what you want is to basically log in as root.  This would effectively bypass sudo in that shell.

sudo su

enter your password

Your prompt will change from $ to #

whoami

Verify that you are indeed root

I would use this shell ONLY for commands that require root access.  Do NOT use it for day-to-day mortal user operations.  You WILL eventually break something accidentally.  All experienced Sys Admins have at one time or another.


Upgraded to 15.10, ATI drivers not working

This problem was one of the reasons why I downgraded to 14.04. I couldn't get my Radeon HD9700 to work hybrid with Intel. FGLRX, tried everything, including manually installing. The kernel doesn't seem to support it.


Access Windows 2008 Server through Remote Desktop

Drop to a terminal window and do

  apt-get install rdesktop

To connect to the office windows systems, type the following command at a shell prompt

  rdesktop heartland.zapto.org


Moving/Copying file in Ubuntu One folders triggers re-upload

This has been fixed in the version shipped in Natty.
If you don't want to upgrade, you can use a cutting edge version of Ubuntu One by using the nighly PPA, although it does come with some risk of it breaking from time to time: https://launchpad.net/~ubuntuone/+archive/nightlies


Is there a plan to merge Ubuntu and Ubuntu Touch?

The Ubuntu Touch (Unity8 on Mir) is coming to the desktop (see Ubuntu-desktop-next iso).

At the moment it is not really functional on desktop or at least not as functional as Ubuntu with Unity7 on X.org is.

Unity8 on Mir will be default on Ubuntu desktop by 16.04 according to Canonical. Then the convergence will be completed.


Why Teamviewer keeps running in the background?

Because that is the nature of teamviewer: it is build to respawn.

/opt/teamviewer8/tv_bin/script/teamviewerd.sysv
is probably responsible for it.

To stop teamviewer use:

sudo teamviewer --daemon stop

It will show ...

initctl stop teamviewerd
teamviewerd stop/waiting

and it is gone ...

rinzwind@discworld:/opt/teamviewer8/tv_bin/script$ ps -ef|grep teamviewer
rinzwind 12712 12428  0 18:11 pts/0    00:00:00 grep --color=auto teamviewer

Commands to manipulate the daemon:

teamviewer --daemon status        show current status of the TeamViewer daemon
teamviewer --daemon start         start TeamViewer daemon
teamviewer --daemon stop          stop  TeamViewer daemon
teamviewer --daemon restart       stop/start TeamViewer daemon
teamviewer --daemon disable       disable TeamViewer daemon - don't start daemon on system startup
teamviewer --daemon enable        enable TeamViewer daemon - start daemon on system startup (default)

Regarding comment:

From teamviewer 9 help:

$teamviewer --help

 TeamViewer                      9.0.32150

 teamviewer                      start TeamViewer user interface (if not running)

 teamviewer --help               print this help screen
 teamviewer --version            print version information
 teamviewer --info               print version, status, id
 teamviewer --ziplog             create a zip containing all teamviewer logs (useful when contacting support)

 teamviewer --passwd [PASSWD]    set a password (useful when installing remote (ssh)

 teamviewer --daemon status      show current status of the TeamViewer daemon
 teamviewer --daemon start       start      TeamViewer daemon
 teamviewer --daemon stop        stop       TeamViewer daemon
 teamviewer --daemon restart     stop/start TeamViewer daemon
 teamviewer --daemon disable     disable    TeamViewer daemon - don't start daemon on system startup
 teamviewer --daemon enable      enable     TeamViewer daemon - start daemon on system startup (default)

Options are still there in TV9.


MD5 says the checksum is correct but still "Check finished: errors found in 2 files"

There are several possible reasons for corruption.  It can be that your USB stick is bad (e.g. there are some which lie about their size and corrupt the data at the end).  It can be that your image writing software is bad.  It seems (from various pages on the internet) that Universal USB installer can incorrectly write files to the USB stick so that was probably the explanation in this case.  What you should do is find different software for writing the image and never use Universal-USB-Installer again.

You should never install from a corrupt image because it's completely possible for things to work now and then later you end up with data corruption or worse.  If it does work that's just luck.


Update after purging Intel 01.org driver removed gnome-software

As noted in this answer, appstream 0.10.16-1 is incompatible with gnome-software 3.22.5-1 which is shipped with Xenial.

By installing the immediate previous version of appstream the re-installation of gnome-software should be posible again.

To know the exact number of said version run apt policy appstream in a terminal. Then copy and paste the number and install said version in this way:

apt install appstream=0.10.3-1~ubuntu16.04~ppa2

Since I got KDE Backports PPA enabled that is my corresponding version, but depending on your active PPAs you may have a different "latest" version.

Then reinstall the previously removed packages:

apt install gnome-software ubuntu-software

This will bring back the software but the icon will be different now.


There is a bug in mesa-9.0. Try using mesa-9.0.1 (you may have to build from git)