Detachable menus in gvim are not clickable

It's a bug in gtk2 (gnome bugzilla, launchpad).

Unfortunately, as you can see in the gnome bug report, gnome developers are no longer supporting gtk2, and the tear-off menu is a deprecated feature in gtk3. This means the bug is unlikely to be resolved upstream.

The author of vim is aware of the issue, so I'd expect it to be resolved in a future version of vim.


It's a little late, but I just had the same problem. You need to give tcpdump the permission and capability to allow raw packet captures and network interface manipulation.

Add a capture group and add yourself to it:

sudo groupadd pcap
sudo usermod -a -G pcap $USER

Next, change the group of tcpdump and set permissions:

sudo chgrp pcap /usr/sbin/tcpdump
sudo chmod 750 /usr/sbin/tcpdump

Finally, use setcap to give tcpdump the necessary permissions:

sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump

Be careful, that this will allow everybody from the group pcap to manipulate network interfaces and read raw packets!

Found it here: Configure tcpdump to work as non-root


Can't send file to smartphone via bluetooth in Lubuntu?

This happens because Ubuntu and its derivatives (like Lubuntu) have a bug on the bluetooth stack. On the same link it suggests using blueman (sudo apt-get install blueman) for all your bluetooth needs.
I have Ubuntu 12.04 and Bluetooth was very buggy.


You will get that error due to lack of priviledge or if you run it as a non root user.

You need to use sudo apt update or sudo apt-get update. This will ask you to enter an associated sudoers password.


Only record while I am moving the mouse or typing

You could 1) decompose to frames, 2) delete identical frames (or too similar) 3) recompose to movie.

For:

Try ffmpeg -i yourvideo.avi frame%06d.png
I'd use imagemagick in a perl script
either ffmpeg or mencoder


How do I install Ubuntu with full disk encryption without having to "erase everything"?

Yes!  You can use the Ubiquity installer to manually install Ubuntu inside an encrypted LVM volume.  And you can do it on the same drive as a Windows 10 installation.

Disclaimer: There is a heightened risk of data loss when installing Operating Systems or making changes to partition tables.  It is easy to make mistakes, so you should have sufficient backups before doing any of this.

Prepare for Installation

First, boot up your Ubuntu installation media as LiveUSB ("Try Ubuntu").

Open the Disks application and navigate to the disk that contains Windows, where you would also like to install Ubuntu. You can also see the partition with your Windows install, as well as an EFI partition and Windows system and recovery partitions. Leave these alone.  Take a note of the /dev/sdx# identifiers.  In this example, /dev/sda is the disk we are going to work on.

Verify that you have un-partitioned "Free Space" available.  Ubuntu cannot shrink a partition with a Windows install leaving it intact.  If you can't free up space here by deleting non-essential partitions, you will need to consult with Windows' documentation on how to shrink your Windows partition before going any further.

Begin the Installer

Click "Install Ubuntu" on the desktop, or reboot back to the USB and select "Install Ubuntu".

Proceed through the installation prompts until you get to Installation type.

Here you will click "Something Else" and Continue.

Set up Encryption and boot partitions

Here you will see another representation of the partitions of your drives.

1) Set the Device for boot loader installation as the same physical disk as your Windows install.  In our example it is /dev/sda.

2) Create the /boot partition: Select your free space partition that we verified/created earlier, and click the + button.  Set the mount point as /boot and set the size.  In our example we have set 500MB.  (If you like to keep lots of old kernels you might want to increase this amount)  Click OK.

3) Create your encrypted root partition:  In the remaining free space, again click the + button.  Change Use as: to "physical volume for encryption" and set up your password.  This will be the password that you need to enter after selecting Ubuntu in GRUB.  You will not be able to decrypt your OS without it so don't forget this password.

4) Set / mount point:  Double click on the newly created volume.  In this example, it is the ext4 partition labeled dev/mapper/sda6_crypt.  Change the "Mount point" to / and click OK.

5) Verify EFI partition:  Just to be sure, let's also double-click on the  EFI partition with Windows Boot Manager.  Make sure Use As is set to EFI System Partition and click OK.

Final Check & Install

Make sure your /boot and / and EFI partitions are where they are supposed to be, and double check that the device for bootloader installation is correct.  If everything is in order, you are ready to Install Now.

This concludes the setup of your encryption/LVM and partitions.  Once the installation is complete, your system should boot to GRUB with Ubuntu and Windows as options.  When you select Ubuntu, you will be required to enter a password to unlock sdx#_crypt to continue booting.


Xubuntu: how do I automatically mount external NTFS drive with writes allowed?

You could try this. Though, Ubuntu should be doing this automatically, provided your drives are healthy.

Plug your drive in.

Use fdisk -l to find the name of the external drive. (ie. /dev/sdb)

Unmount the the drive sudo umount /dev/YOUR_DRIVE_HERE

Create mount point sudo mkdir /mnt/MOUNT_POINT

Mount the drive: mount -t ntfs-3g /dev/YOUR_DRIVE_NAME /mnt/MOUNT_POINT

More info here: https://help.ubuntu.com/community/MountingWindowsPartitions#NTFS


The download To setting is used when torrents are initially added, it must be manually entered and there should be enough space in that location.

Eg. /var/lib/deluge/Downloads

If you would like to change this location after the torrent has been added you need to right click the torrent and say Move Storage. Then manually type the path on the server.

Side Note

I would recommend removing the main deluge client, it is not a requirement and is just a native desktop app for deluge.

sudo apt-get remove deluge

The minimum required is the deluged and deluge-webui.


Netconsole won't start, says "wlan0 doesn't exist, aborting"

If the netconsole module is loaded before the wireless network driver, it will not be able to find wlan0 yet, since it doesn't exist. If your hard lock is later in the boot process, you can get the wireless driver loaded first, and the use modprobe to manually load netconsole next.

For example, boot normally, verify that wlan0 is available (as you've done with ip l), then:

sudo modprobe netconsole netconsole=6666@192.168.1.114/wlan0,6666@192.168.1.105/00:1e:d2:c4:72:54


How do I permanently disable hard drives?

If the disks are SATA (the most normal thing; they are sda, sdb, etc.) you can do that two ways:

After the boot, you can disable them. The "magic" is (as root)
 echo 1 > /sys/block/sdx/device/delete

where sdx is your disk. This will make the device disappear. Notice however that if something triggers an update of udev the disks may reappear.
Note also that the sdx denomination is not completely fixed; it can change especially if you add/delete disks to the system.

At boot level, if you have a kernel with version 3.13 or newer. You need to identify the ATA address, which is a number like 4.00 (you can use dmesg | grep " ata") :
 ata4.00: ATA-8: ST2000DM001-1CH164, CC24, max UDMA/133

and you can completely hide the disk with the boot parameter:
 libata.force=4.00:disable

the disk will act as if it were not connected at all to the system.

Another option is using udev rules as explained (I did not test) here. The difference in this case is that the disk devices are still there, but the disks are not mounted. In 99% of the case the result is the same, unless you are playing tricks with directly writing to the raw disk devices...


get text from a Website in javascript/qml

XMLHttpRequest is definitely one of way to solve this issue. Here my quick sample:

import QtQuick 2.0

Rectangle {
    width: 360
    height: 360

    function setText(url) {
        var doc = new XMLHttpRequest();
        doc.onreadystatechange = function() {
            if (doc.readyState == XMLHttpRequest.DONE) {
                mainText.text = doc.responseText;
            }
        }
        doc.open("get", url);
        doc.setRequestHeader("Content-Encoding", "UTF-8");
        doc.send();
    }

    Text {
        id: mainText
        anchors.centerIn: parent
        text: "Click Me";
    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            setText("http://feed.evangelizo.org/reader.php?date=20130616&type=liturgic_t&lang=AM&content=GSP");
        }
    }
}

When dealing with asynchronous requests you should keep in mind that you won't get results instantly.


How to install ppa packages in an apt-get style

Using add-apt-repository (or adding the deb lines to /etc/apt/sources.list manually, which is more-or-less the same thing) is the apt-get way. Apt needs to know what packages are available for installation, and for that to work it has to have a list of installable repositories. It's simply not feasible to search Launchpad for all PPAs for the most recent version, nor is that safe — I could create vim 99999999-9999 which hoses your entire system (debs install as root). Installing software from third party repositories is something you should be forced to think about.


ssh -Q cipher reports the ciphers supported by the ssh client, not the server.

One way to verify that you have successfully removed the cipher foo from the server configuration is to explicitly use it for your connection:

ssh -oCiphers=foo localhost

relevant excerpt from ssh.c option processing:

            case 'Q':
                    cp = NULL;
                    if (strcmp(optarg, "cipher") == 0)
                            cp = cipher_alg_list('\n', 0);
                    /* deleted other options... */
                    if (cp == NULL)
                            fatal("Unsupported query \"%s\"", optarg);
                    printf("%s\n", cp);
                    free(cp);
                    exit(0);
                    break;


ThinkPad e480 - can't play sound through headphones after booting to Windows then Ubuntu

This is not a solution, but a workaround.

If you are still facing this problem, then when on Linux, open pavucontrol

pavucontrol

And then go to "Output Devices" tab, in the Built-In Audio Analog Stereo change port to "Headphones (Unplugged)"

If you do not have pavucontrol installed, install it by:

sudo apt install pavucontrol

A solution might be: In your kernel boot options, add acpi_osi=Linux


How to update grub on a dual boot machine?

You can directly boot a partition, not a specific kernel. Debian based (not sure about others distributions) add a link in / to newest kernel and second newest also. So you boot link to newest kernel. Turn off os-prober, copy boot stanza for your drive & partition into 40_custom.

Backup current grub.cfg and then edit 40_custom

sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
sudo nano /etc/grub.d/40_custom

Add an entry like this to 40_custom, use your drive & partition in place of (hd1,1) & sdb1:

menuentry "Install on sdb1" {
    set root=(hd1,1)
    linux /vmlinuz root=/dev/sdb1 ro quiet splash
    initrd /initrd.img
}

Edit grub to turn off os-prober:

sudo nano /etc/default/grub

Add this line to grub so it does not add its entries and update grub:

GRUB_DISABLE_OS_PROBER=true

And update grub with all the changes:

sudo update-grub

Older similar entry, also has UUID version:

How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

Details:
How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan

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

https://help.ubuntu.com/community/Grub2/CustomMenus


No.

The 'radio' in your PC is digital only, and designed to send and receive WiFi signals only, not any Digital Audio modulated signal use by commercial radio broadcasters. Even if you had a 'transverter' (frequency converter) as mentioned in a comment above, you could not do anything with what you received.

HOWEVER

You can connect through a web browser or audio streaming app to a website which 'streams' (digitally relays) the audio of radio stations to listen to in parallel with what the station also happens to be transmitting (e.g., WBGO Newark, CBC Radio One Toronto, and RTE Radio 1 from Dublin).  Some apps will record the stream for later playback.

Many internet radio stations don't even broadcast over the air, and only send their signal out via the internet.

There are multiple providers of streaming services to such broadcasters, i.e., ICEcast and SHOUTcast; the latter lists tens of thousands of 'stations' cross-referenced by genre, bandwidth used and encoding type (and therefore fidelity), and popularity.


There is a package in the repositories which should do this:

AUTOLOG(8)                  System Manager's Manual
AUTOLOG(8)
NAME
autolog - Log out idle users
SYNOPSIS
autolog [ options ]
DESCRIPTION
The program reads the utmp file, entry by entry.  The username for each
'user process' is compared to the entries  in  the  configuration  file
(see  autolog.conf(5)  ).   The first entry to match both the name, the
group, and the tty line of the process will be used to conduct the  au‐
tomatic logout.

You can install this with sudo apt install autolog, it is in the universe repository


How to enable HP pavillon dv9000 pci express card

I have an esata card that sort of didn't work. I need you to follow these steps, and then update your question with the information:

lspci in a terminal and add the hardware information to your question. Here's mine as an example:

02:01.0 RAID bus controller: Silicon Image, Inc. SiI 3124 PCI-X Serial ATA Controller (rev 02)

The I need to to tail the system log file:

sudo tail -F /var/log/syslog

Now, while keeping that terminal open, plug in your drive, it should scroll a bunch of stuff; add that to your question.


How to use different shortcut to switch among 3 input modes

Open the Keyboard setting -> Shortcuts -> Typing
On the right box (probably) first option is Switch to the next source.
Click on this option and insert inputs you like to use for the switching language source.


Is this fix for Avast Antivirus crashing safe to use?

This does not look to be harmful. Basically, these changes seem to me as if they were meant to ensure, that every time you start your computer, the virtual RAM filesystem that is available in /dev/shm/ is resized to some great size, probably to ensure that some temporary files that are going to be stored there will fit.

On the other hand, I have no clue why would this possibly could lead to fixing application crashes. It will not do any harm, but I doubt this fix can help.

Also, I need to admit I am not sure whether these changes will have any effect on ubuntu machine. These changes modify init.d files, while Ubuntu has migrated long time ago to another startup system, called Upstart, and it is possible that not only they will not fix anything, but will simply have no result.

Anyway, it's safe to try if you want to.


Is it possible to use the Volume Notifications from Gnome Shell in XFCE?

The short answer is: No, You cannot use it in XFCE.

You correctly said, Gnome-Shell's volume notification is it's own and it uses notification-daemon. The notification-daemon is a program used to display the pop-up notification. You can use "notification-daemon" is a generic name for any daemon providing notification. For XFCE it is xfce4-notifyd.

Gnome-Shell uses gnome-shell-hotplug-sniffer program which resides in /usr/lib/gnome-shell/ to give the Volume notification. As this is a very internal component of gnome-shell (it runs automatically with gnome-shell) you cannot use it without installing gnome-shell or using it.

To see that this indeed is responsible for Volume notification, temporarily disable it by renaming it to gnome-shell-hotplug-sniffer.bak file

sudo mv /usr/lib/gnome-shell/gnome-shell-hotplug-sniffer /usr/lib/gnome-shell/gnome-shell-hotplug-sniffer.back

Then restart gnome-shell with the command gnome-shell --replace from Alt+F2 graphical command box. Try mounting a drive and you'll see there is no notification for mounted drive.

To restore back the file, use this command to rename it to original name

sudo mv /usr/lib/gnome-shell/gnome-shell-hotplug-sniffer.bak /usr/lib/gnome-shell/gnome-shell-hotplug-sniffer


I'm glad you asked this because it took me quite some time to figure it out myself. hplip doesn't support the HP Laserjet 1000 without patching - which is unfortunate because it's a pretty affordable and a pretty decent printer. In order to get the hplip drivers to work you need to patch them with this patch.  You'll also need to install these dependencies first:

sudo apt-get install libcups2 cups libcups2-dev cups-bsd cups-client libcupsimage2-dev libdbus-1-dev build-essential ghostscript openssl libjpeg62-dev libsnmp-dev libtool libusb-dev python-imaging policykit-1 policykit-1-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab libsane libsane-dev sane-utils xsane

Once those dependencies are installed - you'll need to download the source for hplip, I can't confirm that it works for the latest version, however I have successfully patched 3.10.9

If you're unfamiliar with patching I have patched the source for hplip and made it available for download.

Once you've patched hplip continue the installation by running ./install.py and follow the onscreen instructions.


Inputting a Password on a script for rsync to login to a remote server to complete rsync

I found my own answer doing some more digging into it, I'll post the answer to how this can be completely automated along with a couple helpful links that helped me come to this:

#!/bin/bash

subdir=`hostname`

rsync -ah -e 'sshpass -p "password" ssh -p 48180 -o
StrictHostKeyChecking=no' /var/www/html/xgplayer/events
user@10.3.10.110:/var/www/html/xgplayer/events/"$subdir"

That Rsync command is all one command. The links that helped:

https://unix.stackexchange.com/questions/33271/how-to-avoid-ssh-asking-permission
https://unix.stackexchange.com/questions/111526/rsync-without-prompt-for-password (The second, higher voted answer ended up being more helpful than the "best" answer)

Also, obviously swap user and password with your user and password where need be, not posting them here obviously.

Thanks to everyone who tried helping, you guys did help steer me in the right directions for the most part! :)


Ubuntu One client does not recognize the internet connection

i'm experiencing the same problem (on natty) with this version of network manager. i upgraded to it (from the gnome 3 ricotz testing ppa) in order to have better gnome shell integration.

an obvious solution would be to downgrade to the stock network-manager version, but i'd like to try something else first. does anybody know of a way to make ubuntu one recognize this nm-version?

the problem seems to be similar to when the dependence on nm was hardcoded into u1 and u1 didn't recognize any network connection when nm wasn't used. but that was fixed a while ago and this time the problem is not that nm isn't installed.

in my opinion, the problem can have two causes: either ubuntu one doesn't recognize the nm-version, or nm doesn't manage to make the connection "public" to other services such as u1. but i think it must be the first one because evolution or liferea or other internet services dont seem to have any problem with the network detection.

sorry that this isn't an actual answer, but it's an attempt to define the problem more concretely.

edit: i just saw another askubuntu post on the same topic that had a workaround that seems to work: Network Manager 0.8.999 and Ubuntu One


Maybe you must install propietary software broadcom to use your wireless adapter. Go to "additional drivers", push Alt+F2 and enter jockey.

This command open a windows with your drivers which can be installed. Get sure that your broadcom driver is already installed. After install the driver you must restart your laptop to changes take effect.


Install an alternate terminal emulator (such as gnome-terminal) and run Dwarf Fortress in that.

Install:

sudo apt-get install gnome-terminal

Launch terminal:

gnome-terminal

From the new gnome terminal window start Dwarf Fortress

cd my_video_games/df_linux
./df

I had encountered this same problem when trying to run Dwarf Fortress with xterm in Debian Jessie.  These were the steps I took to resolve the issue.


Different users with different encrypted workplace?

To add user's you would need to use the following command:

sudo adduser newuser

Once that is done, you would have to add a password for the newuser:

sudo passwd newPassword

I would recommend taking a look at adduser's man page to get a list of all the commands for adding the user so you can set it according to how you would like it.

man adduser


WOL - Ubuntu 12.04 LTS Power computer off, computer turns back on

Is WOL in the BIOS or in the Ubuntu install itself? If it is in the BIOS, certain BIOS's have an option to restart when shut off in this mode, like a server would act to keep online 24/7. This may be an option within your BIOS, check around in there for a setting that restarts your computer after a power down or something along those lines. I hope it leads you in the right direction.. Hope I was of help.


How to have Chrome Browser always start after every system restart w/ xfce?

Enrique's answer above is good, but here's another way.

As per https://help.ubuntu.com/stable/ubuntu-help/startup-applications.html.en  you can configure what applications should be started at login, in addition to the default startup applications configured on the system.  If Chrome is running, so are its extensions, so you need to launch Chrome at startup. Applications to autostart are typically located in the /usr/bin folder.

http://edoceo.com/gui/xfce-autostart-apps and https://superuser.com/a/1302626/264083  illustrate how to always launch apps at startup time in XFCE. You create a *.desktop file in /etc/xdg/autostart/ for global services (best choice here), and ~/.config/autostart/ for personal ones.

After you create one, it is "enabled" by default, although can still be disabled via xfce4-session-settings. Here's an example:

[Desktop Entry]
Type=Application
Name=Google Chrome
Exec=/usr/bin/google-chrome
Terminal=false


I too have Ubuntu on my Chromebook and my flash works just fine using the Adobe Flash Plugin for Firefox, which on my system appears to be available at the Ubuntu Software Center.  Yes, I recognize the irony of running the Firefox Web Browser on a Chromebook.  It is both practical and a conversation starter

If you are determined to run chrome/chromium under Ubuntu on a chromebook, you have another alternative.  You should be able to install the Gnash SWF viewer or Lightspark.


It looks like you've installed a conflicting gimp version from a PPA (2.7.3-2010110501~mm)

You'll need to either

remove that PPA for your apt sources.list and install the regular gimp package instead
find a plugin registry install that works with the version you have installed
force the apt-get install to ignore the error (not sure how to be honest)


Your problem is in not matching UUID. You probably re-created your swap partition after install. You can fix it by running

sudo tee /etc/initramfs-tools/conf.d/resume <<< "RESUME=UUID=de8544b3-7bca-4ff1-9a1c-755bcc6da7b4"
sudo update-initramfs -u -k all

and reboot.

To enable hibernation in shutdown menu you can use this answer.


What is the best solution for document archiving?

you can dedicate an old PC (with big new HDD/s) as a backup server and install BackupPC

No client-side software is needed - just export via NFS backup dirs on the clients (for example /home/ or /home/username/Desktop etc.) or share folders on Windows stations
A powerful web user interface allows administration, view log files, configuration
file extensions can be defined for including / excluding files
uses rsync for fast backup

separately you can implement web search on the linux server using Xapian or Omega


You can download kernel image from a higher version of Ubuntu. I don't know what Ubuntu 9.1 is :)
You'll find new kernels at http://kernel.ubuntu.com/~kernel-ppa/mainline/.
Choose one that fits your needs, for example this one http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.68-precise/.
Download these files:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.68-precise/linux-headers-3.2.68-030268-generic_3.2.68-030268.201503061936_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.68-precise/linux-headers-3.2.68-030268_3.2.68-030268.201503061936_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.68-precise/linux-image-3.2.68-030268-generic_3.2.68-030268.201503061936_amd64.deb

You probably have an older version of Ubuntu, i would suggest upgrading it to a newer one, because I thing it might not work. You have to just do a sudo dpkg -i *.deb in the directory, you have downloaded the packages.


Login loop on Ubuntu 17.10, many mentions of dbus-update-activation-environment in xession-errors

Maybe it's a little be too late, but i just met the same problem, according to :
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1369216,

I just dkms my nvidia driver, then it's worked, it's something like:

sudo dkms install -k 4.10.0-11-generic -m nvidia-378/378.13


ecryptfs-mount-private fails silently on Ubuntu 12.04.4

By default, when you log in via ssh, your home directory is not decrypted.

Unless you see an error message, a command works (rather then failing silently)

After you log in via ssh, you have to manually decrypt your home:

ecryptfs-mount-private
cd ~

you will now see your data

ls

If you wish to automate this , first log in via ssh, then run

sudo nano .profile

Add these lines and save the file:

ecryptfs-mount-private
cd ~

Now you should be able to start a new ssh session, you will be asked your passowrd a second time, and then your data should be decrypted.

There can be other problems with ssh and encrypted home directories, especially getting keys to work.

See:

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

http://stephen.rees-carter.net/thought/encrypted-home-directories-ssh-key-authentication


PHP - How to install php-curl without downgrading PHP version

I have been using ppa:ondrej/php5 for PHP. This PPA includes php5-curl and FYI:

$ php --version

PHP 5.5.12-2+deb.sury.org~precise+1 (cli)

In case you aren't aware, adding the PPA will update all PHP packages installed on your system to the latest in the PPA, assuming the PPA has a more recent version. Best performed on a test machine.

If you are like me, you research who the owners and contributors of PPAs are. The owner and, so far, sole contributor to this PPA has a very high karma on Launchpad, regularly updates the PPAs he manages, and googling his email address reveals he is very active on a number of FOSS projects. As of the time of this answer, I consider the PPA reliable.


Is it possible to install different display drivers for each user account?

Not in 1 system.

I would use virtualization for this. Install virtualbox or vmware player, 2 containers with Ubuntu and make backups of each as things go like you want it to go.


which software to use to make a jukebox cd on ubuntu?

May be the correct option for you is the 'Audio project' when using Brasero. When selecting the type of project in Brasero, select 'New Audio Project', then drag and drop the required audio tracks to the project folder and then burn the disc. Hope this helps.


Changing directory of mysql datadir fails

So what appears to have worked was completely removing mysql from the system and then editing the fstab entry to mount the new partition at /var/lib/mysql and then installing mysql again. Not sure if this is a great idea but it seems to have worked


you can't

it is almost impossible to use more than one internet connection at a time. So the best way is install another os in virtual box, and use first tongle for host and another for guest


Is there any easy way to install helloworld on to my computer?

The next actions you need to do:

make the file executable with chmod 775 helloworld from the directory where the file is.
copy it over to a directory in your PATH. I would suggest sudo cp helloworld /usr/local/bin/ (local since it is your local system and bin since it is a binairy).

And then you can do

helloworld

from any location on the system to have it print "Hello world".


I was able to add it using the command above. The error message indicates that the host where the repository is stored is not resolvable by your DNS server. But I think that's probably a red-herring. Deleting the ca-certificates and then reinstalling them should work;

rm -rf /usr/share/ca-certificates

apt-get --reinstall install ca-certificates


What's the mounted path for sound device?

The device files for sound devices are located at /dev/snd/

Btw.: It seems you're mixing up the expressions mountpoint and device file. That's a great difference


Black Screen Installing with AMD Graphics Card

For those that have AMD A-Series APUs, you need to get a minimal ISO for Oneiric (11.10) and then install complete system, or a Precise release newer than Alpha2 (12.04, although not recommended because it is still in development), this is because the fixes for your bug were on updates that appeared after the official release on Oneiric (11.10).


Network is not auto-enabled after start up

[Note: if you don't have your WiFi adapter plugged in, omit the commands containing wlan0]

After boot, try running these commands:

sudo su
service network-manager stop
ifconfig wlan0 down
ifconfig eth0 down
ifconfig wlan0 up
ifconfig eth0 up
service network-manager start


Teamviewer 9 does not have permission to launch in Ubuntu

sudo gedit /etc/rc.local
Put teamviewer before exit 0

/etc/rc.local is executed as root at Ubuntu Start-up


The answer is probably no; full disk encryption (at least, using the native dm-crypt method) officially requires completely wiping the Ubuntu partition and reinstalling it inside an encrypted container. It is not possible to do this incrementally without employing third-party tools that come with a lot of disclaimers about the risks involved in this, e.g. LUKS In-Place

However, encrypting the whole disk tends to be unnecessary, since there is little security implication in having the standard parts of an Ubuntu system stored unencrypted. You may want to look at either encrypting your home directory (which should be possible without reinstalling, even if not easy), or just creating a single encrypted folder for sensitive files.


Why is Gedit set as default calendar app in Ubuntu?

When there is no real calendar application on your system, it automatically switches to gedit.Because gedit can be configured to have some basic functionality of calendar with extra plugins.

And look here. A bug has been reported on this issue:

A bug on gedit in Launchpad


Booting 18.04 with 5.4.0-47 hwe kernel fails with "ALERT! UUID= does not exist." error

Try this:
From a live session run:
sudo mount /dev/sda1/mnt
sudo mkdir /mnt/dev
sudo mount --bind /dev/mnt/dev
sudo mkdir /mnt/proc
sudo mount --bind /proc/mnt/proc
sudo mkdir /mnt/sys
sudo mount --bind /sys/mnt/sys
sudo chroot /mnt
sudo depmod `uname -r`
sudo update-initramfs -u
sudo update-grub
sudo reboot


Dash is slow and shows irrelevant results

You can use a 'low graphics mode' that Ubuntu 12.10 has. This mode disables some dash and launcher effects like active blur and transparency, this make Unity more responsive with a no powerful graphic card.

For activate this mode, you must  add following line to ~/.xprofile (if the file doesn't exist, create it):

  export UNITY_LOW_GFX_MODE=1

Logout, and come back for the effect to take place. This really works for me :-)

And for stop dash show you Amazon results, you can unistall the lens with:

sudo apt-get remove unity-lens-shopping

And of course, logout and come back.
Grettings!


How can I clone a Ubuntu installation from a dual drive dual boot set up to new SSD?

Clone a Ubuntu OS Partition from a Dual Drive Dual Boot set up to new SSD

Preferably unplug your Windows drive sda, (you can't break what is not there).

Plug in your new 480GB SSD

Boot a Live or Persistent Ubuntu USB, (made using Rufus, Etcher, mkusb, etc).

Open GParted, Create a partition table on the new drive of the same type, msdos or gpt, as the old Ubuntu drive.

Select the EFI partition you want to clone, right click and select Copy.

Select the SSD, right click and select Paste. Locate the partition on the left side.

Repeat with the 97GB OS partition. You can make it larger if you wish

Apply All Operations

Install Grub. Assuming sdx1 is the esp partition, I use:
sudo mount /dev/sdx1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdx

When done unplug the HDD to test the new drive. Note that the old set root='hd0,msdos5' in your grub.cfg file should be changed to set root='hd0,msdos2'. Also note that the HDD and SSD now have duplicate partitions with Duplicate UUID's. If you wish to keep the HDD as backup you can use GParted to change the UUID's.

Plug in the Windows drive, boot the Ubuntu drive and run:
Sudo update-grub

to add Windows to the new boot menu.


Ubuntu 11.10 got virus or malware, how to delete entire disk and re install?

Yes from another computer you need to install the Ubuntu ISO to a USB stick. There are special programs used to do this.

Here is a guide to do it from windows if you have one of those near you:
http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows

MacOSX:
http://www.ubuntu.com/download/help/create-a-usb-stick-on-mac-osx

Ubuntu:
http://www.ubuntu.com/download/help/create-a-usb-stick-on-ubuntu

If you have another ubuntu machine there should be a USB stick creator in the preferences or the administrator utilities.

If you don't have it you can install it with this:

sudo apt-get install usb-creator-gtk or usb-creator-kde


how do i get steam to work with my 64 bit amd computer with error

The command apt-get update only refreshes your sources; it doesn't do anything else. What you need to do is run this:

sudo apt-get install '^libc6.*'

That will install the required package for you.


You installed a PPA for Gnome 3? That's why you can't install it from the repo's. Everything from a PPA should be thought of as alpha. What directions did you use to install it?


Turns out the problem was AppArmour related; apparmor_status showed that a profile sbin.dhclient had been loaded, so running:

~$ sudo ln -s /etc/apparmor.d/sbin.dhclient /etc/apparmor.d/disable/
~$ sudo /etc/init.d/apparmor reload

Solved the problem. I could then bring up the interface as gertvdijk suggested

(No idea why/when that profile appeared - I suspect it might have something to do with the upgrade I ran just before)


How to type braces and dashes with mac keyboard

Here's an article on creating a custom keyboard layout although it seems a bit complicated IMO.
Disclaimer: The page mentions it is in need of an update so i'm not sure how applicable it is to 14.04

Instead try changing the current layout in System Settings > Text Entry and playing around with the Input sources. For most if not all US keyboards the English (US) layout should work correctly. I noticed there is an English (Macintosh) option you may want to try.

Hope this helps.


Ubuntu Remove/Uninstall from single boot system

3 possible methods for removing an operating system from your hard disc (so it does not even have to be Ubuntu):

You can remove the current OS from your hard disc by using the Live CD you used to create the installation. It will have gParted installed and loaded into memory and all you need to do it delete the partitions gparted shows you. Mind you: you can only delete unmounted partitions. And not all operating systems will have a live CD.

You can also use the gParted Live cd that you can find here. You need to burn this though. So if you can not access your current OS you might need a 2nd computer to burn the disc.

You can also use another OS installation media to format your disc. All operating systems installation disc will have some sort of partition manager. Windows starts with it when you boot from the installation CD. Linux flavors tend to ask for some information 1st (like language settings etc) before you see the partition manager.

If you decide to stick to gParted then this link explains how to do that. Copy/paste from that link:

Deleting a Partition
To delete a partition:

Select an unmounted partition. See the section called “Selecting a Partition”.

Choose: Partition → Delete. The application displays the delete partition operation in the Pending Operations pane.

Do not forget to read the "caution" part underneath these pointers.


Well, after fiddling around some, I was finally able to get it working. I had to reinstall Ubuntu, though.

After compiling and installing this psmouse dklm, my touchpad was detected correctly, and the Mouse/Touchpad settings has a Touchpad tab for me to tinker with all the settings.

Hopefully this will make its way into the kernel sooner rather than later.


ModuleNotFoundError: No module named 'apt_pkg' while installing Docker

It's because you are missing the os package python-apt, install it via the following commands
 apt-get update
 apt-get install python-apt

Please follow the official documentation for the install of the docker for a clean install
https://docs.docker.com/engine/install/ubuntu/


Epson Scan is not working in Ubuntu 18.04 LTS?

Apparently, this was broken at some point, and fixed in 19.04, but never
backported to 18.04 LTS (which it should have been!)

https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012

There should be some way to notify the 18.04 LTS team that this fix
should be backported, but I don't know what it is.


Well first i would install a fresh version of windows 7. Then in Ubuntu installation you should make new partition for the Ubuntu in the /dev/sda10 and configure it I'm kinda new to Ubuntu bot hope this helps you out a bit :)


after upgrade from 10.04 to 10.10, no keyboard, cannot login

I would say you have a few options...

Boot up with the livecd, open a terminal, make sure your old install gets mounted, do a chroot to your existing install, try checking out apt, try reinstalling the kernel (apt-get install package-name --reinstall will reinstall a package), also some other core packages, see if that works, if not do more digging until you either fix it or give up.
Boot up with livecd, mount the old install, back up your data to an external device, and reinstall.

Depending upon what broke and if you're a ninja, 1 might be quicker, otherwise, go with 2. I have also had some upgrade pains to 10.10, had to reinstall ubuntu-desktop and a few other packages.

Hope that helps


How to get bash or ssh into a running container in background mode?

The answer is Docker's attach command. So for my example above, the solution will be:

$ sudo docker attach 665b4a1e17b6 #by ID
or
$ sudo docker attach loving_heisenberg #by Name
$ root@665b4a1e17b6:/#

For Docker version 1.3 or later: Thanks to user WiR3D who suggested another way to get a container's shell. If we use attach we can use only one instance of the shell. So if we want open a new terminal with a new instance of a container's shell, we just need to run the following:

$ sudo docker exec -i -t 665b4a1e17b6 /bin/bash #by ID

or

$ sudo docker exec -i -t loving_heisenberg /bin/bash #by Name
$ root@665b4a1e17b6:/#


How do I set environment variables through a keyboard shortcut?

The easiest solution is probably to store the variable in a file.

Write to a file:

echo "13" > /path/to/my-variable.txt

Read the first line in a file into the variable line:

read -r line < /path/to/my-variable.txt


Alcatel X500 datacard won't recognize on ubuntu 12.04 using xhci

I got it working on the ASUS by going into the bios and disabling xhci. SO it is definitely something wrong with the xhci functionality in conjunction with usb_modeswitch/option. So no usb 3.0 love for me until this issue is sorted out :(

ASUS dmesg output:

[  199.903558] usb 2-1.2: new high-speed USB device number 3 using ehci_hcd
[  200.362841] Initializing USB Mass Storage driver...
[  200.363104] scsi6 : usb-storage 2-1.2:1.0
[  200.363319] usbcore: registered new interface driver usb-storage
[  200.363326] USB Mass Storage support registered.
[  200.368504] usbcore: registered new interface driver uas
[  201.362896] scsi 6:0:0:0: Direct-Access     ALCATEL  Mass Storage     2.31 PQ: 0 ANSI: 2
[  201.363623] scsi 6:0:0:1: CD-ROM            ALCATEL  Mass Storage     2.31 PQ: 0 ANSI: 2
[  201.365534] sd 6:0:0:0: Attached scsi generic sg3 type 0
[  201.367932] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[  201.372133] sr1: scsi-1 drive
[  201.373843] sr 6:0:0:1: Attached scsi CD-ROM sr1
[  201.374064] sr 6:0:0:1: Attached scsi generic sg4 type 5
[  201.544644] usb 2-1.2: USB disconnect, device number 3
[  201.808647] usb 2-1.2: new high-speed USB device number 4 using ehci_hcd
[  202.264289] option 2-1.2:1.0: GSM modem (1-port) converter detected
[  202.264630] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[  202.264915] option 2-1.2:1.1: GSM modem (1-port) converter detected
[  202.265222] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[  202.265512] option 2-1.2:1.2: GSM modem (1-port) converter detected
[  202.265834] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[  202.266098] option 2-1.2:1.3: GSM modem (1-port) converter detected
[  202.266355] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[  202.266582] option 2-1.2:1.4: GSM modem (1-port) converter detected
[  202.266817] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB4
[  202.267021] option 2-1.2:1.5: GSM modem (1-port) converter detected
[  202.267252] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB5
[  202.267460] option 2-1.2:1.6: GSM modem (1-port) converter detected
[  202.267629] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB6
[  272.095114] usb 2-1.2: USB disconnect, device number 4
[  272.095476] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  272.095523] option 2-1.2:1.0: device disconnected
[  272.096378] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  272.096486] option 2-1.2:1.1: device disconnected
[  272.097240] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[  272.097377] option 2-1.2:1.2: device disconnected
[  272.098003] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[  272.098083] option 2-1.2:1.3: device disconnected
[  272.098637] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[  272.098716] option 2-1.2:1.4: device disconnected
[  272.098957] option: option_instat_callback: error -108
[  272.099359] option1 ttyUSB5: GSM modem (1-port) converter now disconnected from ttyUSB5
[  272.099406] option 2-1.2:1.5: device disconnected
[  272.099629] option: option_instat_callback: error -108
[  272.099895] option1 ttyUSB6: GSM modem (1-port) converter now disconnected from ttyUSB6
[  272.099908] option 2-1.2:1.6: device disconnected


how to run scheduled task ,after resume from sleep,only if computer was sleeping at the time of schedule

Anacron can you what you are asking and is available in the Ubuntu repo's. From the man page:

Anacron is used to execute commands periodically, with a frequency specified in days. Unlike cron(8), it does not assume that the machine is running continuously. Hence, it can be used on machines that aren't running 24 hours a day, to control regular jobs as daily, weekly, and monthly jobs.

http://manpages.ubuntu.com/manpages/natty/man8/anacron.8.html


Audio Playing on Headphones and Speakers (Ubuntu 15.04)

This worked for me:

sudo echo "options snd-hda-intel model=generic" \
   >> /etc/modprobe.d/alsa-base.conf

and reboot your PC.
For improving the out-of-the-box experience in Ubuntu, I filed bug 1457476, let's hope that this can be fixed once and for all.


Can you give us some more information like:

Your graphics card
The exact response to startx (f.e. black screen, output)

If you expierience a black screen after startx reconfiguring lightdm (for ubuntu) or kdm (for kubuntu) could help:

sudo dpkg-reconfigure lightdm


How can I find what process is trying to write to a CD that's offline?

You could give it a try using lsof with the path to the cd drive as argument to see which process is using it.

lsof /path/to/cd or lsof -a /path/to/cd


How to gracefully change keyboard layout from command line (setxkbmap breaks all shortcuts)

The best solution currently is to use this external program (xkb-switch) that accepts command line arguments and script it into xbindkeys or something similar.

Although unofficial, external, and written in a compilable language, it is actually pretty easy to install since it has almost no dependencies.

https://github.com/ierton/xkb-switch

$ xkb-switch --help

Usage: xkb-switch -s ARG            Sets current layout group to ARG
       xkb-switch -l|--list         Displays all layout groups
       xkb-switch -h|--help         Displays this message
       xkb-switch -v|--version      Shows version number
       xkb-switch -w|--wait [-p]    Waits for group change and exits
       xkb-switch -W                Infinitely waits for group change
       xkb-switch -n|--next         Switch to the next layout group
       xkb-switch [-p]              Displays current layout group

Use as:

xkb-switch -s us
xkb-switch -s de
etc...

This solution:

Works from command line.
Is fast, invocation of this program does not introduce any delay (as opposed to switching layout setxkbmap).
Correctly switches the built-in layout indicator in the tray icon area. (The indicator does not dissappear or stops working, as with setxkbmap.)
Does not screw up keymap on the lockscreen, preventing entering the right password if the wrong layout was chosen before locking (as does setxkbmap).
Does not modify the main key combinations like Ctrl-C, Ctrl-V: they still work with the same keys even in different layouts (being different from, well you get the idea, setxkbmap).
Honors all the Cinnamon layout mechanics, like the setting of either using the same layout for all windows or individual layout per-window. (Take a guess if setxkbmap does that?)

The installation instructions are on the Github.


Failed to start RabbitMq redentials_obfuscation

After few hours spending on this,  it turns out to be the Erlang was too old. Upgraded it to latest version Erlang/OTP 23, problem solved!
the problem cause by incompatible between RabbitMQ and Erlang/OTP:
Ubuntu 18.04 provides Erlang 20.2 and RabbitMQ 3.8.14 requires 22.3 or 23.x. See RabbitMQ and Erlang/OTP Compatibility Matrix
Installing latest Erlang version should solve the problem.
$sudo apt-get install erlang

The problem commonly happens when only upgrade rabbitMq without Erlang. (as my case: rabbitMq 3.8.0 -> 3.8.14)


Running the bare minimal processes in Ubuntu

First I'll try to answer your question, then I'll explain why you probably shouldn't do it :)

I haven't seen or heard of any shell scripts that would do this, but it will be relatively easy to write one yourself. Simply writing a shell scripts and in there pkill-ing the processes that you wouldn't need should do the trick, e.g.

#!/bin/bash
pkill zeitgeist-fts
pkill dropbox

If you then make a second script to run the processes, e.g.

#!/bin/bash
zeitgeist-fts &
dropbox &

...you should be able to restart these processes (and to the more experienced folks on the website: please do edit if there is a better way to terminate/restart these processes). It might be better though to restart your session, e.g. log out or kill the X server, and that'll only take you a few seconds.

Now, here's why I think you will be better off with an alternative solution.
Killing too many of these processes is going to leave you with a system that will be unstable, unsecure and probably unusable. If you pkill Dropbox you'll be alright, but pkill Zeitgeist and your Unity process won't operate as it should. Be very careful with what processes you terminate. Also, some processes won't be allowed to terminate and will simply restart. I think it's best to let them be restarted. If you block Compiz for example, it might be very annoying to manually restart it when you need it.

It sounds like you need all your computer's resources to run Minecraft.To summarise, it might be a bad idea to simply strip down Ubuntu to free some resources. Instead, you will be better off using a lighter distro, such as Lubuntu or Xubuntu.


Error: Broken packages but can't find any

So I ended up using Synaptic to correct the problem. No package were broken, but by navigating through all the packages involved, I selected & removed all those marked for audio files. That is because I tried to install Rythme Box and although I could open it, it was very buggy. I had previously used it and it was fine. That led me to think that there was some problem with either drivers or packages installed with regards to audio/video.

I ended up removing the following packages (from Synaptic history):

Completely removed the following packages:
gstreamer1.0-plugins-ugly
liba52-0.7.4
libavcodec54:i386
libavutil52
libavutil52:i386
libdvdcss2
libnspr4-0d

Removed the following packages:
gstreamer1.0-libav:i386
libavformat54:i386

gstreamer came up a couple of times in command line, which is why I removed it. I have a 64 bit system, not 32, therefore the i386 seemed out of place... I guess I would have been better of going one by one to see which one it was, but then I didn't want to spend the day on it.

Then I did an update everything was fine.


Error compiling guvcview against newest FFmpeg

You can use guvcview-ffmpeg3.patch from Arch Linux:

--- a/gview_v4l2core/jpeg_decoder.c
+++ b/gview_v4l2core/jpeg_decoder.c
@@ -1436,7 +1436,7 @@
        exit(-1);
    }

-   codec_data->context->pix_fmt = PIX_FMT_YUV422P;
+   codec_data->context->pix_fmt = AV_PIX_FMT_YUV422P;
    codec_data->context->width = width;
    codec_data->context->height = height;
    //jpeg_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);
--- a/gview_v4l2core/uvc_h264.c
+++ b/gview_v4l2core/uvc_h264.c
@@ -970,7 +970,7 @@
    }

    h264_ctx->context->flags2 |= CODEC_FLAG2_FAST;
-   h264_ctx->context->pix_fmt = PIX_FMT_YUV420P;
+   h264_ctx->context->pix_fmt = AV_PIX_FMT_YUV420P;
    h264_ctx->context->width = width;
    h264_ctx->context->height = height;
    //h264_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);


How to change the color of *just* the header?

Try setting anchors.fill: header, that way it always stays within the bounds of the Header component.

You can also check out a more detailed implementation from KarmaMachine:

At the bottom here the developer creates a new HeaderArea component that is a child of pageStack.header
https://github.com/brianrobles204/Karma-Machine/blob/master/KarmaMachine.qml#L489

using the QML Component.createObject() method from:
http://developer.ubuntu.com/api/qml/sdk-14.04/QtQml.Component/#createObject-method

Then in the HeaderArea he sets the anchors to fill the parent, which is pageStack.header:
https://github.com/brianrobles204/Karma-Machine/blob/master/HeaderArea.qml#L19

He also does a lot more to add functionality to the header, but it should give you an idea of how to do it.


Clearsigned file isn't valid, from 01.org package?

The installer contains the wrong repository url. To fix this you need:

Start the installer and try to install, you got error, close installer.
Open console and type:

sudo -H gedit /etc/apt/sources.list.d/intellinuxgraphics.list

Replace text with text below, don't close gedit just leave it:

deb https://download.01.org/gfx/ubuntu/14.04/main/ trusty main #Intel Graphics drivers

Start the installer again, press Begin button, press Install button and fast switch to gedit and hold CTRL+S.

sudo apt-get update may yield:

GPG error: https://download.01.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A902DDA375E52366

Fix it with:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A902DDA375E52366


Plop Boot Manager

Sounds like you are looking for Plop Boot Manager:

https://www.plop.at/en/bootmanager/download.html

It can be installed on a CD/DVD, (or Floppy Disk), and used to boot a Live USB.

Plop can also be installed on a corner of your hard drive.


How can I restore Media Apps, Internet Apps, More Apps, Find File part of Unity Dash?

Down towards the bottom of the Dash you should see 4 Icons.

Select the one that looks like a house, and you should then have the Items you're looking for!


This bug has been resolved in clementine 1.2.3 update.
Update by

$ wget github.com/clementine-player/Clementine/releases/download/1.2.3/clementine_1.2.3.trusty_amd64.deb
$ sudo dpkg -i clementine_1.2.3.trusty_amd64.deb


IDE for Symfony (PHP) which is able to manage Vagrant VM's over SSH

In my opinion PhpStorm (proprietary software) with the Symfony2 plugin is the best PHP IDE.

In every machine I use this free course which It tells you how to install everything in every OS (including CodeSniffer with Symfony2 Standards)

In PhpStorm you have a SSH client since version 7 in Tools > Start SSH session and it has TWIG support.

If you don't want to use nonfree software you can try with Netbeans for example which It has twig support with a plguin and Symfony2 by default


Turn on reporting for misbehaving applications:

Open /etc/init.d/sendsigs in your favourite text editor, with root privileges (e.g sudo vi /etc/init.d/sendsigs or gksu /etc/init.d/sendsigs). Search for the line #report_unkillable and uncomment it (i.e. remove the # tag). Save the file.
Make sure that apport is enabled: Edit the file /etc/default/apport so it reads enabled=1. (If it was enabled=0 then reboot, so apport can start.)
Shutdown.
Upon the next boot apport should come up with a message telling you that there was some kind of problem with a program. That is the one causing the delay. And there should be a crash report in /var/crash . (If apport doesn't report the name, then just look in the crash file, in the end of the file there will be something like Title: MISBEHAVING_PROGRAMNAME does not terminate at computer shutdown)


2014 X1 Carbon , wifi toggle and clickpad

Hardware BUG, returned while it was in warranty. It took them too long to repair so I just asked for money instead of laptop.

But I bought yoga, where it works.

So I got that going for me, which is nice.


Boot from Ubuntu LiveUSB and gparted will let you resize partitions.


Unity: How do I revert Alt-tab behavior to switch between windows on the current workspace?

You can revert back to the older style of window switcher by enabling the Static Application Switcher plugin in CompizConfig Settings Manager:

Warning: What are some of the issues with CCSM and why would I want to avoid it?

Steps:

CompizConfig Manager is gotten through sudo apt-get install compizconfig-settings-manager (thanks to @donbright)
sudo apt-get install compiz-plugins to get the static application switcher to show up. (thanks to @Milimetric)
CompizConfig Manager is started by typing ccsm in terminal (thanks to @donbright)
Disable the keyboard shortcuts for Unity's switcher by unchecking CompizConfig Settings Manager ▸ Desktop ▸ Ubuntu Unity Plugin ▸ Switcher ▸ Key to start the switcher ▸ Enabled and Key to start the switcher in reverse ▸ Enabled
Enable the Static Application Switcher by checking CompizConfig Settings Manager ▸ Window Management ▸ Static Application Switcher ▸ Enable Static Application Switcher


You must have not included some include directories required to correctly parse iostream.

Right Click on the project name.
Select Index > Search For Unresolved Includes.

It will give you the list of unresolved includes which you can search in /usr/include and add the containing directories to C++ Include Paths and Symbols in Project Properties.

On my computer, I have the following directories included:

Rebuild the index (Index -> Rebuild) after adding include directories.

Source: https://stackoverflow.com/a/10804034/1626345


Chrome is freezing Ubuntu when opening a tab or restarting

The problem is with Google Chrome v44. You can keep working by starting chrome without gpu acceleration:

google-chrome --disable-gpu

Or by removing chrome and installing the version just before that one:

sudo apt-get remove google-chrome-stable
wget http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_43.0.2357.81-1_amd64.deb
sudo dpkg -i google-chrome-stable_43.0.2357.81-1_amd64.deb

This will let you use Chrome until a fix is out.

Note: you cannot disable gpu acceleration from the settings URL, as it will freeze your system immediately:

# DON'T go to (this might crash the system):
chrome://gpu
# or (this will definitely crash the system)
chrome://flags


Integrate Facebook messenger (not chat or facebook)

Most of these apps are using XMPP for the service, this means that they have to be online to check for new messages, XMPP supports invisible state. Default chat client for ubuntu is empath - use that instead of Pidgin, in empathy you can set your state to invisible and it wont inform you when users go online. (You can also change that in pidgin settings window.)


you could try to make a partition, and use ubuntu cd on start up and run repaire broken packged, and in grub bootloader menu run shell, and type.

chroot /
mount (name of usb like hd2) (name of partition like /dev/sda)
gpart and make the partition on the usb as /root

and it might work fine.


The correct incantation in crypttab should look like this:

crypttmp /dev/mapper/vg_doulos-tmp /dev/urandom precheck=/bin/true,tmp,size=256,hash=sha256,cipher=aes-cbc-essiv:sha256

The most important part was the precheck=/bin/true. The reason why /tmp wasn't mounting was that cryptsetup was failing due to a precheck. The precheck noticed that the LVM partition was formatted for ext4 and refused to continue.

The fstab entry should look like this:

/dev/mapper/crypttmp /tmp ext4 defaults 0 2


chmod +x <name of shell script>

is something you need to do to execute this shell script. What are the contents of the shell scripts. May be the "no such file or directory" error is coming from some command/action within the shell script. Please share the contents of the shell script or execute them one by one (one at a time) to find out which one is causing "no such file or directory" error.


How to disable or uninstall open-iscsi from 16.04 server?

There is a bug regarding the dependency between open-iscsi and ubuntu-server. The bug has been resolved, but only for Ubuntu 18.10. In 16.04 apt will not allow you to do what you want.

But you can disable the iscsid service so it isn't running:

sudo systemctl --now disable iscsid.service


How to enable SIGQUIT core dumps with apport?

Apport filters coredumps on SIGQUIT. You'll find a discussion on Launchpad about that issue (dumps core on SIGQUIT). There are good arguments to change this behaviour, but is not clear if Ubuntu will do it.


I had the same issue, try turning off your wifi then do the normal power off. This is the only thing that works for me. I tried the sudo poweroff that worked sometimes but turning off the wifi has worked constantly. Seems to be an issue with wifi driver in 16.04 and 18.04.


ubuntu server 16.04 get stuck on startup, show i915 **error** pch transcoder a fifo underrun

I meet with this problem because I change the grub setting of my ubuntu.

At the beginning, I want to disable blank screensaver, so I refer to the solved answer of this. After I finish sudo update-grub and reboot my computer at the next morning, I meet with this error and cannot enter the system.

So, to solve this problem for me, I just revoke what I do about the grub and sudo update-grub and reboot.


How can I run a local command (to run a script) on (just before) log out of a Unity session?

Basic theory

As you may or may not know , a lot of Unity actions are implemented using dbus . The big convenience about dbus is that you can perform lots of root-required actions by calling appropriate methods in command-line without need of having admin account, for instance shutting down your system.

Specifically in our case here we are interested in com.canonical.Unity service, /com/canonical/Unity/Session path. You can list information about it with qdbus command. Particularly we're interested in signals that have Requested in them.

$ qdbus com.canonical.Unity /com/canonical/Unity/Session | grep 'signal.*Requested.*'
signal void com.canonical.Unity.Session.LockRequested()
signal void com.canonical.Unity.Session.LogoutRequested(bool have_inhibitors)
signal void com.canonical.Unity.Session.RebootRequested(bool have_inhibitors)
signal void com.canonical.Unity.Session.ShutdownRequested(bool have_inhibitors)
signal void com.canonical.Unity.Session.UnlockRequested()

These signals appear on the bus when user clicks any of the shutdown, lock, logout, or reboot items in the drop-down session menu on the right side of the Unity's top bar. So what we need to do is this:

monitor the bus for those signals to appear.
once they appear - perform a certain action.

Of course , the big disclamer is that if a user uses sudo shutdown -P now or gnome-session-quit , that won't be told to the dbus , so whatever action is wanted won't be done.

Monitoring the dbus

Conveniently there is a command for that, dbus-monitor and we can filter its output using a set of options, and perform an action on it using while read do … done structure

Bellow is an example of  a simple monitoring script.

dbus-monitor --profile "interface='com.canonical.Unity.Session',type=signal" | \
while read -r line;
do
  echo "$line"
  sleep 0.25
done

What it does is merely monitor the bus for signals , and echo them back to stdout if they appear; of course echo could be any command. Run it , and try clicking on each item in the session menu that should generate signals, and you should see something like this:

$ ./logout_monitor.sh
sig 1458319246  172587  2   /org/freedesktop/DBus   org.freedesktop.DBus    NameAcquired
sig 1458319251  213766  5496    /com/canonical/Unity/Session    com.canonical.Unity.Session RebootRequested
sig 1458319265  62555   5525    /com/canonical/Unity/Session    com.canonical.Unity.Session LogoutRequested
sig 1458319271  856770  5555    /com/canonical/Unity/Session    com.canonical.Unity.Session LockRequested
sig 1458319273  223940  5564    /com/canonical/Unity/Session    com.canonical.Unity.Session Locked
sig 1458319276  991413  5604    /com/canonical/Unity/Session    com.canonical.Unity.Session UnlockRequested
sig 1458319278  3443    5606    /com/canonical/Unity/Session    com.canonical.Unity.Session Unlocked

So now we have a monitoring function that can perform an action once an interrupt occurs. Now , to address the specific question that you were trying to solve , your script is taking snapshots of the icons on the desktop. There's no harm done if we take snapshot each time a signal occurs - it doesn't have to be reboot or shutdown specifically. So if we monitor that specific Unity interface for signals and take snapshots upon each signal's arrival, we can simplify the scripting.

Interrupt-driven script

Bellow you can see an interrupt-driven script which will monitor the bus for signals (ignoring the first one ) and if we have a signal coming in , then call an interrupt function (which in your case will be the icon snapshot script that you've written).

#!/bin/bash

main()
{
  ARG="cow"
  dbus-monitor --profile "interface='com.canonical.Unity.Session',type=signal" |
  while read -r line;
  do
    grep -q '.*NameAcquired.*' <<< "$line"  && continue  #  Ignore that first line
    if [ -n "$line"  ];then
       interrupt $ARG # call your python snapshot script here
    fi
  done
}

interrupt()
{
  echo 'Old McDonald had a ' $ARG ' e-i-e-i-o '
}

main

NOTE: Dbus relies on having GUI session , since (as far as I know) it starts with Unity/Gnome login. Older environments such as blackbox and openbox, as well as TTY environments do not start dbus session, hence that script will puke if you try to launch it in ~/.profile (I had one user who tried to do something like that and he got into trouble). Start such script using Unity's or Gnome's Startup Applications program.

Going beyond this script

Dbus has a lot of API's including python
I prefer using qdbus because it's simple, but one could always use dbus-send . Examples
The interrupt function can be anything, even other dbus methods. There's a lot to look into.

Trivia: I've used this same method for preventing shutdown if apt is running


Where should I put compiled binaries so that the would become searchable?

They have to be in any directory included in the PATH environment variable. This is either done by copying it to a directory included in the PATH variable. My PATH looks like this:

$ echo $PATH
/usr/lib/x86_64-linux-gnu/qt4/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/tigcc

Or you can add the directory with your binaries to the PATH location. For this, include the following line into ~/.profile or ~/.bashrc: (Put it at the end of the file; will work after logging out and in again)

export PATH=$PATH:/path/to/binaries

If you want to make it accessible in the application menu, you have to create a launcher for it either in /usr/share/applications/ (for all users) or ~/.local/share/applications.

This launcher has to be a textfile with the extension .desktopLook at this to find out how it works.  You may also duplicate an existing launcher, which makes things easier to you.

After saving it, make it executable: chmod +x launcher.desktop (put sudo if in /usr/share/...)


Run a terminal and enter cat /etc/X11/default-display-manager. Probably says lightdm if you recently uninstalled GDM. /etc/init/lightdm.conf doesn't accept lightdm as a setting - however, /usr/bin/lightdm or /usr/sbin/lightdm work. So open /etc/X11/default-display-manager in your favorite text editor and replace whatever is there with the following line:

/usr/bin/lightdm

or

/usr/sbin/lightdm

Reboot and lightdm should start and bring you to the logon screen as usual.


From the Ubuntu download page (desktop edition):

  2 GHz dual-core processor or better
  4 GB RAM
  25 GB disk space

Based on this, and the specifications listed at your link, Ubuntu would definitely work effectively on your PC.


Ubuntu One downloads already existing files

Ubuntu One maintains a database of files it has synced. If you copy files from your Ubuntu One folder of one computer to another using the USB drive, the Ubuntu One data base is not updated. So it will sync those files again.

I don't know any way of manually messing with Ubuntu One's internal database. It may be best not to copy files across computers that are to be synced by Ubuntu One.


cp: cannot stat ‘/GNI’: No such file or directory

That's because of the whitespace:

cp reads it like this:

cp -ra /home/michael/Documents/GeneralNetwork /GNI

That the folder: /home/michael/Documents/GeneralNetwork needs to be copied to /GNI. But there is no folder in /GNI, therefore the error.

If there is a whitespace between files, put it between quotes:

"/home/michael/Documents/GeneralNetwork /GNI"

cp is seeing:

/home/michael/Documents/GeneralNetwork

Withing quotes, it will read beyond the whitespace:

cp -ra "/home/michael/Documents/GeneralNetwork /GNI" /home/michael/Dropbox/NetworkData

Per user request:

If i understand you correctly, you want to copy /home/michael/Documents/GeneralNetwork

and everything in it. Yes that is possible, like so:

cp -ra "/home/michael/Documents/GeneralNetwork /*.*" /home/michael/Dropbox/NetworkData


Without more data, I suspect that the package has been upgraded since the time when you collected your list.  The archives do not keep complete sources for all versions ever published.

Mostly (ignoring some timing concerns), they just keep the latest versions ("trusty-updates", "xenial-updates", etc), and the original version for each release in the release pocket ("trusty", "xenial", etc).  This is what the apt-get source command references.

Now, not all hope is lost.  Look at this answer.  If you look at (for example), the acpi package and click on 'view full publishing history' in the upper right corner, you will see that Launchpad keeps everything it has published.  So, you can find older versions in this way, and even look into the launchpad API to see if that data can be accessed in a programmatic way.


Using Ubuntu 12.04, this is the result I get from loading vlc from the command line as you have done:

doctormo@delen:~$ vlc
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x9b35908] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.

Where upon the graphical front end loaded correctly.

This means that there is something with your installation, or the way your trying to load vlc. If you're logged into another user or computer via the command line, then you can't load the GUI. But you've given no indication you're using a different user (su) or another computer (ssh).

Reinstall vlc like this and try again:

sudo apt-get purge vlc vlc-nox
sudo apt-get install vlc

It should also be available in the Unity/Gnome/KDE menu, it has a desktop icon so you could always use that too. You can force the GUI using these commands:

For KDE/Qt:

vlc --intf qt4

otherwise:

vlc --intf skins2


How do I change the root location for Bash in Windows 10?

Not yet!

In Win10 Fall Creators Update, we've added the ability to install one or more Linux distros (Ubuntu, openSUSE, SLES, Fedora & others coming soon). Alas, we were not yet able to wrap-up the work required to enable distros to be installed/moved to a non-system drive. We'll be looking into completing this work in a future release.


When you mirror displays in Ubuntu, the OS behaves like you have one monitor.

If you had extended displays before, any files shown on the secondary monitor will be moved to the primary (and only) monitor.

If one monitor can't support the other's resolution, Ubuntu will set it to the highest possible common resolution. This can result in stretching or black bars, depending on your video card and monitors.


I need help adding a script to /etc/rc.local

To add the script to the statup I wrote a bash script and found it with the startup applications program. My problem was changing the scripts permissions to executable before running it


Why won't the AMD Catalyst Control Center open?

Try reinstalling drivers using terminal https://help.ubuntu.com/community/BinaryDriverHowto/ATI


Screen goes black when trying to install Ubuntu

So I figured it out. I changed it to nomodeset but I had to get there differently. There was no grub menu showing up for some reason. So when the ubuntu screen showed up before the black screen, I hit F6 and went to other options and changed it to nomodeset, then I installed and it works great now.


Got it!
Go to Applications -> Tweak Tool (usually comes by default with Ubuntu Gnome).
Once the Tweak Tool opens, go to the Shell Extensions tab and turn off Window List.


How to install missing MSXML 5.0 DLL in ubuntu 14.04lts

Try installing Office 2007 using playonlinux. It asks you where the installation files are and automatically gets everything you need. To install playonlinux, run "sudo apt-get install playonlinux". Find Office 2007 in the list, click install, and follow the instructions.


Ubuntu iso file is approximately 1 GB

Source: http://www.ubuntu.com/download/desktop


SSD + TRIM + ext4 OK. What about LVM and RAID?

Device Mapper based RAID e.g. via dmsetup does support TRIM MD raid e.g. via mdadm does not support TRIM.

http://www.redhat.com/archives/linux-lvm/2010-October/msg00066.html

This might have changed, but a quick grep of the oneiric kernel (git grep REQ_DISCARD drivers/md)doesn't show any specific support in the MD code for discards. It might be worth searching the MD RAID mailing list to see how this has progressed.

Speaking from experience, I am not a big fan of using DM for managing RAID sets, the tools are kinda cumbersome and basic admin tasks are a burden; and so is recovering a failed RAID. If you want to take the plunge I strongly recommend you model the setup in a VM so you can become accustomed with the toolset's ins and outs. BTW, don't get confused by dmraid, that's for fake raid only.

http://mbroz.fedorapeople.org/talks/DeviceMapperBasics/dm.pdf


Terminal does not start on Remote Desktop; how to fix it?

Try starting the terminal manually, e.g. from xterm and see what the output is.

Press Alt + F2 and then enter xterm to get an xterm.

There, simply type gnome-terminal to try to start the terminal.


How do you add a new folder to be synced ;)? There is, just yet, no way to define custom folders to sync. There's no sync at all, actually. At the moment, we only auto-upload your pictures to U1. But sync will come!

This has been fixed in 1.0.4.1 on the Android Market, please let us know if your pictures start getting uploaded. If you wish to upload you're previous pictures, you'll need to close the app (leave with back button or just kill it), and remove the /mnt/sdcard/Android/data/com.ubuntuone.android.files directory. When you launch U1F, it'll ask if you want to upload all your pics / only future pics / none.


Two different terminal line commands - the same result

There are at least two differences between less file-name and cat file-name | less:

less file-name creates one process, while cat file-name | less creates two processes.
cat file-name | less might be preferred for readability reasons, as reading a piped stream left-to-right might be easier to understand.


Ubuntu 14.04 brightness problem (Lenovo Z500)

Two years ago I bought this laptop which works pretty well with Linux. When I upgraded to my new distro, Elementary OS Freya, I noticed the problem that backlight was unable to change. I could change it only on grub screen. After trying every guide on the internet I partially solved the issue by downgrading the kernel (and the related Intel graphics driver) to version 3.13.
Yesterday I gave another try. It was very lucky :)

Here the solution:

On the grub configuration file /etc/default/grub modify the following line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

by adding this string: acpi_backlight=vendor.

In my case it is:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Update grub by launching:

sudo update-grub

Then create a xorg configuration file like this:

/usr/share/X11/xorg.conf.d/80-backlight.conf

and copy in it this text:

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"     "sna"
    Option      "Backlight"       "ideapad"
    BusID       "PCI:0:2:0"
EndSection

Save the file,
Reboot,
Enjoy :-)

This trick could work on other Lenovo Ideapad laptops. I tested on Lenovo Ideapad z500 on Elementary OS Freya and Debian 8 Jessie.

If you have complitely another laptop you can try this way:
Modify grub like in the first part of the guide, update grub, reboot, then verify what backlight "drivers" (I don't know what they are) are being listed.
Give:

ls /sys/class/backlight/

and if it gives:

backlight_driver1
backlight_driver2
backlight_driver3

Then create the xorg file with one of the drivers in the list:

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"     "sna"
    Option      "Backlight"       "backlight_driver1"
    BusID       "PCI:0:2:0"
EndSection

And reboot. If it works, enjoy, otherwise modify the file with another one in the list the same way.


You can try using PlayOnLinux, but AION's status is in testing, so there is no guarantee that it will work.


The Tualatrix PPA has not been updated for 16.04. You should remove it, as there are no packages for your system, so you won't be able to download anything. apt-get also sees it as a security issue since it hasn't been updated.

Remove it with

sudo add-apt-repository --remove ppa:tualatrix/ppa

and then run sudo apt-get update again.


Can Nautilus automatically close the window after a file is opened?

Yes you can, its actually very simple.

Install CCSM if you don't already have it.

In the 'commands' section of ccsm assign the command 'close nautilus' to the keybinding you want and there you have it.  VERY SIMPLE AND POSSIBLE!

In this case your keybinding would be the 'option' key and left click mouse button, just like Mac OSX


The HOST (Windows) owns the WiFi adapter. Any WiFi driver should be installed on the HOST.

The Virtualbox on the HOST relays the WiFi network connection to the GUEST...but that relay appears as a wired connection.

Your Ubuntu GUEST cannot see the WiFi adapter or network. That is normal, expected behavior. You Ubuntu system sees only the pseudo-wired connection provided by VirtualBox.

That's what virtualization means.

Your Ubuntu GUEST cannot control any hardware. It sees only the pseudo-hardware provided by Virtualbox on the HOST. The HOST retains control of all hardware.


With live CD there is no easy way to do it, however if you install ubuntu on a USB, you will be able to install any application on it.


Ubuntu 17.04 Can't go to websites by name, only by IP address

Sorry, I don't have enough reputation to comment yet, so I have to post this as an answer. I will edit this to contain the answer when we find it. Do you mean that you replaced the Windows in Surface Pro 3 with Windows or that you are using Windows 10 with the Windows Feature called Windows Subsystem for Linux (Beta), which is based on Ubuntu? Or did you buy it e.g. used with Ubuntu installed (or does MS even sell it that way)? Were you running a previous Ubuntu version in the device before and it had DNS working?

The problem might have something to do with that Ubuntu 17.04 has switched into using systemd-resolved as the default DNS resolver.

Try first updating to the latest packages using the terminal just in case there is a fix affecting the problem:

sudo apt-get update

If you are using Wi-Fi, have you tried installing the driver like this (the suggestion is from How to install Linux on Surface Pro 3, but I replaced git.marvell.com with the current IP 199.233.58.162 for opensource.marvell.com):

cd ~/Downloads
sudo git clone git://199.233.58.162/mwifiex-firmware.git
sudo mkdir -p /lib/firmware/mrvl/
sudo cp mwifiex-firmware/mrvl/* /lib/firmware/mrvl/

If you don't have git installed, sudo says "sudo: git: command not found". In that case, install git and try again:

sudo apt-get install git

After that, the command beginning with "sudo git clone" should say "Cloning into 'mwifiex-firmware'" i.e. it downloads the driver into such a subdirectory of ~/Downloads. After performing the third command beginning with "sudo cd", try rebooting your machine.

What does Ubuntu show as "IPv4 Address", "IPv6 Address", "Default Route" and most importantly "DNS" when you go to System Settings > Network in the desktop GUI?

Alternatively, could you please first run this to print your default gateway value and paste it here:

route | grep default

Also try performing a DNS query using these and paste us the result:

nslookup google.com
dig
dig google.com

nslookup should show your primary nameserver address in the Server field and dig in the SERVER field.

If the nameserver address shown by nslookup or dig is correct, viz. usually one of your ISP's nameservers, something could be blocking the DNS query commands. If you have connected through an active network device such as a dsl router or cable modem, it might theoretically have DNS access blocked in it's firewall, although that is not very likely, especially since I assume you had DNS working in your device before.

You can also try this to show your IP address configuration, although you should at least be getting an IP since SSH works (I recommend omitting any field containing the colon (:) i.e. the MAC address for security purposes)?

ip addr show


Why does Slack not have a tray icon any more?

It's a problem present since months in the Snap version of Slack. One possible workaround is using the DEB version, the other is restarting the system until it works. Usually, the latter does not work.


Why is there a mismatch between "packages can be updated" and `apt list --upgradeable`?

They run at different times.

Items are uploaded into the repositories at all hours (not once daily), so if you compare --upgradable at different times of day, you will get more and more results as the day goes on.

Apt does NOT check for packages upon startup - that would needlessly delay startup. The login message (part of Message Of The Day [motd]) is generated during the daily run of apt-daily...during some previous session (like yesterday). The text is generated and saved for your next login. It's meant as a reminder, and that lack of accuracy is a well-known minor issue.


ZeroMQ library linking: undefined reference to symbol, error adding symbols: DSO missing from command line

Use g++ not gcc if it's a C++ file.

Also it's not usual to explicitly specify a library that way: normally you should give a link directive like -lzmq preceded if necessary by a library search path directive of the form -L /usr/local/lib.

So try

g++ -Wall -I /usr/local/include zeromq_worker.cpp -L /usr/local/lib -lzmq


Blocking ads

Adblock Plus, of Firefox fame, now has an extension for Chrome: http://adblockplus.org/

However, it took them a long time to start the (still incomplete) project, and this guy wrote his own extension: https://chrome.google.com/extensions/detail/gighmmpiobklfepjocnamgkkbiglidom

Blocking advertisers

A step further is the Ghostery extension. It blocks tracker scripts and the like. I use a fairly under-powered laptop to browse the web, and Ghostery cuts page load times in half.

Salon.com runs at least twelve third-party scripts on its front page. Some of them track how you use the site. Salon might use the data to improve the site, or they might sell your browser history to someone else, or both. Others are widgets from social networks like Facebook and Reddit, allowing both easy sharing and easy tracking. The Disqus script handles Salon's comments. On its highest settings, Ghostery blocks it all: trackers, comments, whatever.

AngiesList, on its login page, runs over twelve third-party scripts. Ghostery identifies every single one as an advertiser tracking and selling your browsing information. I forget which, but one of them also handles the actual logging in. On its highest setting, Ghostery prevents logging in to AngiesList. Fortunately, it's easy to disable temporarily. (but I do worry: is angieslist sharing my username and password with other companies??)

Disconnect.me is similar to Ghostery, but is open source.


WIP

Regarding lubuntu-desktop, from `Synaptic:

  This metapackage package depends on all components of Lubuntu Desktop
  system.

  It is also used to help ensure proper upgrades, but it can be safely
  removed if you want to remove some applications installed by default.

As it is just a meta package, so, removing it will not harm your environment at all. If you are still worried about the meta packages, then goto Ubuntu:

  One of the handy features of apt (the packaging system used by Ubuntu)
  is the use of metapackages. These packages do not contain actual
  software, they simply depend on other packages to be installed. This
  setup allows entire sets of software to be installed by selecting only
  the appropriate metapackage. For example, an Ubuntu user can install
  the Kubuntu environment (KDE and all its associated programs) by
  selecting "kubuntu-desktop."

In there, it says that meta packages do not contain actual software. And in this list it says lubuntu-desktop is a meta package. So, do not worry, go ahead and remove it.


Where can I find the absolute newest version of ath10k and download it?

You may just need firmware to be able to use the device

sudo apt-get install git
git clone https://github.com/kvalo/ath10k-firmware.git
sudo mkdir /lib/firmware/ath10k
sudo cp -r ath10k-firmware/ /lib/firmware/ath10k/
echo "options ath10k_core skip_otp=Y" | sudo tee /etc/modprobe.d/ath10k_core.conf

Reboot, if it doesn't work, please edit your question to include dmesg | grep ath as a bug report suggests a different firmware file might be needed


SSD (Windows/Linux) and HDD (shared storage/reserved storage for Linux)

Restriction is unnecessary as Windows can not natively read Linux partitions, while Linux can read windows partitions. Thus to share between them, format the partition with NTFS. For a partition that is Linux only format it ext4.


For instructions on creating aliases, see drush topic docs-aliases, which can also be found at http://drupalcode.org/project/drush.git/blob/refs/heads/7.x-4.x:/examples/example.aliases.drushrc.php

The best place to put global aliases would be in /etc/drush; user-specific aliases should go in $HOME/.drush.


How do I disable 'hold left click to trigger right click' in Ubuntu Dock?

Short answer: you cannot change that without editing source code.

This behavior apparently is inherited from the Gnome Shell Dock. When the Ubuntu Dock is disabled, you still get to see a dock (aka the Dash) in the overview, i.e., the view you get when clicking the Activities button. Also there, a long click on an icon will reveal the right-click options. Thus, this is standard behavior of Gnome Shell, the desktop environment Ubuntu is build upon.

As no settings related to this behavior are exposed, one likely must edit the source code of Gnome Shell to change that behavior.


Found this floating around on the web:

Install wget:

sudo apt-get install wget

Change to the temp directory:

cd /tmp

Download CUDA 7.0 repository:

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb

Install CUDA repository:

sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb

Update the repository listings:

sudo apt-get update -y

Install CUDA 7.0:

sudo apt-get install cuda-toolkit-7-0 -y


Setup new profile, deleted my profile, and now new user has no admin rights

I suggest using the command line to try to restore the admin rights.  Look at this site:
How can I create an administrator user from the command line?

If that doesn't work, try reinstalling ubuntu completely, I don't think a user can forcefully give themselves admin rights without the admin doing it.  You could try creating a new user with the admin rights as well, it's in the same webpage up there.


How do I access shared folders by ip address? (for example, in windows, I use "\\172.16.243.7")

The easiest way is to open Nautilus, the file manager, and press ctrl+L. This will give you a text field where you can type

smb://172.16.243.7/

You can also connect to a share using the places menu. From  the places menu, select "connect to server". In the dialog that appears, selet "Windows resource", type the IP into the "server" field. This will create a shortcut on your desktop to the share.


How to remove window decorations (title bars) from Ubuntu 14.04

Fortunately, all Unity decorations are defined by the Unity gtk3 theme (see this document), and one can remove the top decoration with one little change.

However, just to be on the safe side, I do make a backup copy of a whole theme. Here is what I do:

cd /usr/share/themes
sudo cp -a Radiance Foopance
cd Foopance
sudo cp index.theme index.theme.orig
sudo sh -c "sed 's/Radiance/Foopance/g' index.theme.orig > index.theme"

One last thing to do is to modify (as root) the file /usr/share/themes/Foopance/gtk-3.0/apps/unity.css:

sudo gedit /usr/share/themes/Foopance/gtk-3.0/apps/unity.css

Change the line -UnityDecoration-extents: 28px 0 0 0; to

-UnityDecoration-extents: 0 0 0 0;

This is all it takes. Now you can select the "Foopance" theme using the Unity Tweak Tool. The window decorations will no longer be shown!


This might the solution to your problem! You might want to do some research over this problem by looking here at ask ubuntu. The next solution toward this problem would by using the program Grub Customizer! Good luck!


How can I run a python script with out the prompt "Run in terminal, Display, cancel, Run"

You can change this behavior in the preferences of Nautilus (Files in the dash).

On the tab Behavior under Executable Text Files.

Note this changes the behavior for all excutable text files.


Press RCtrl+F1, then RCtrl+F7. This will reset the graphics adapter (first into text mode (TTY1), then into graphical mode again (TTY7)). I had to do this twice, one time it was just a blank screen with an underscore at the top right, when I hit RCtrl+F7 again, everything showed up like it was supposed to. Thanks so much guys!


How do I reset or recover my root password?

See my comments, but if you haven't done anything too drastic, this should fix your problem.

Press the super/windows key and launch the terminal.

terminal

When the Gnome Terminal opens, type the following:

$  sudo passwd root

sudo will ask you to authenticate with your password. This is your regular user password you use to log in.
Enter the new password you want to use for the root account, and press enter. The system will ask you to enter it again. Make sure you type it the same both times.
If all went well, you will see the message:

passwd: password updated successfully

As I said in my comments, the root account is typically disabled by default in Ubuntu.

I hope this helps you.


Having trouble mounting CDs (even music CDs) - Ubuntu 10.04


Ubuntu System monitor shows 4 cpu while I have 2 cores

It is because of hyper-threading, where each core can (put simply) execute two threads simultaneously Which is why you see 4 threads, 4 threads == 4 'cpus'.

Quoted from wikipedia:

  Hyper-threading works by duplicating certain sections of the processor—those that store the architectural state—but not duplicating the main execution resources. This allows a hyper-threading processor to appear as two "logical" processors to the host operating system, allowing the operating system to schedule two threads or processes simultaneously.


tl;dr: It's not possible to run Steam and Libreoffice currently, but it eventually might be.

The goal of Ubuntu Touch is convergence - the same app being able to run on different devices, like computers and phones.

While Ubuntu Touch is Linux-based, graphical programs currently won't work on it unless they're written specifically to run on it. That may change in the future, however.

Valve, the owner of Steam, hasn't said anything about supporting Ubuntu Touch yet. Any Steam support will have to come from them.

LibreOffice is open source, so you could port it Ubuntu Touch. That being said, it would be quite an undertaking. Again, there currently aren't any plans to do so.

As far as LibreOffice is concerned, there will be alternatives to it. It'll take a while, though, before it and Steam are ported (if they ever are).


sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma

The command removes these modules from the Linux Kernel

b43 ssb wl brcmfmac brcmsmac bcma

You can blacklist them so that when you boot these modules are not loaded anymore.

For that open the file /etc/modprobe.d/blacklist.conf using vim

vim /etc/modprobe.d/blacklist.conf

and insert these lines at the end of this file by pressing i (for insertion mode)

blacklist b43
blacklist ssb
blacklist wl
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma

save and quit the file by pressing :wq followed by a enter

Reboot your pc and you should be using your wireless network without any kind of problem.


How can I check if automatic updates are enabled?

There is a package that can be used to do this for you.

sudo apt-get install unattended-upgrades

or if unattended-upgrades already installed. Or you can checkout the Ubuntu docs

sudo dpkg-reconfigure -plow unattended-upgrades

That is the package you need to install. Once its installed edit the files

/etc/apt/apt.conf.d/10periodic
/etc/apt/apt.conf.d/20auto-upgrades

In that file you can set how often you want the server to update.

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

The file should look like that. The 1 means it will update every day. 7 is weekly.

/etc/apt/apt.conf.d/50unattended-upgrades

This files will let you chose what updates you want to make by choosing where apt can search for new updates and upgrades. ( My personal opinion on this is I would set it to security if this is a server )

Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}-security";
//      "${distro_id}:${distro_codename}-updates";

};

The variables ${distro_id} and ${distro_codename} are expanded automatically. I would comment out the updates entry and just leave security.


Easiest way to send data from Ubuntu 14.04 to Mac via bluetooth?

Use Blueman, you should be able to pair and initiate file transfer from it. I don't remember installing it on my ubuntu, so it may be preinstalled in 14.04, but if it isn't, just look in the software center.

Good luck!


Does the normal ubuntu Desktop 12.04.03 have a feature to partition the disk?

How to install Ubuntu 12.04.03 alongside Windows

If you run the standard graphical installer, it will suggest to install Ubuntu 12.04 alongside Windows. This will create a new partition with ext4 where Ubuntu will be installed and a partition for swap space.

If this is what you want to do there is to do the just use the standard installation step-by-step instructions here


You can install other versions of Ubuntu to your Windows 10 through the Windows App Store. It is a free install.


Mouse won't move (but can click) once logged in

Turned out it libinput's libinput Accel Speed setting was at -1 which means, erm, no accelleration and therefore no movement!

A. If you have another mouse/touchpad

Go to mouse settings and ramp up the mouse speed with the slider. Mine was fully left. Is this a feature or a bug? Probably the latter.

B. If you don't have another mouse/touchpad

Start a terminal.

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Wireless Mouse          id=11   [slave  pointer  (2)]
⎜   ↳ Microsoft Natural® Ergonomic Keyboard 4000    id=14   [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                          id=15   [slave  pointer  (2)]
⎜   ↳ DLL06E4:01 06CB:7A13 Touchpad             id=16   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=20   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]

Look for the thing that might be your mouse. e.g. mine is MOSART Semi. 2.4G Wireless Mouse.

Next check it's configuration:

$ xinput list-props 'MOSART Semi. 2.4G Wireless Mouse'
Device 'MOSART Semi. 2.4G Wireless Mouse':
    Device Enabled (143):   1
    Coordinate Transformation Matrix (145): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Accel Speed (280): -1.000000
    libinput Accel Speed Default (281): 0.000000
    libinput Accel Profiles Available (282):    1, 1
    libinput Accel Profile Enabled (283):   0, 1
    libinput Accel Profile Enabled Default (284):   1, 0
    libinput Natural Scrolling Enabled (285):   0
    libinput Natural Scrolling Enabled Default (286):   0
    libinput Send Events Modes Available (265): 1, 0
    libinput Send Events Mode Enabled (266):    0, 0
    libinput Send Events Mode Enabled Default (267):    0, 0
    libinput Left Handed Enabled (287): 0
    libinput Left Handed Enabled Default (288): 0
    libinput Scroll Methods Available (289):    0, 0, 1
    libinput Scroll Method Enabled (290):   0, 0, 0
    libinput Scroll Method Enabled Default (291):   0, 0, 0
    libinput Button Scrolling Button (292): 2
    libinput Button Scrolling Button Default (293): 2
    libinput Middle Emulation Enabled (294):    0
    libinput Middle Emulation Enabled Default (295):    0
    Device Node (268):  "/dev/input/event8"
    Device Product ID (269):    1578, 16642
    libinput Drag Lock Buttons (296):   <no items>
    libinput Horizontal Scroll Enabled (297):   1

You'll see on mine libinput Accel Speed (280): -1.000000 which is the trouble.

You can set that to something more sensible with

$ xinput set-prop 'MOSART Semi. 2.4G Wireless Mouse' \
'libinput Accel Speed' 0

But you'll have to use the name of your own mouse, obvs.

Just to thwart the physicists, an "accelleration speed" of 0 is not no accelleration. -1 is no accelleration. Anyway, once you've done this give the mouse a wiggle and see if it moves.

Probably setting it this way does not stick between sessions so you should probably now use your newly freed mouse to do (A), which I think does set it permanently.


how to create bootable usb stick for mac on ubuntu?

Use these instructions. Worked for me on a mid-2012 MBP

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

Let me know if it works.


How to exclude a subtree from the find command

You can use the -prune option this way:

find ~ -path '*Trash*' -prune -or -name ".hg" -or -name ".git"


Deleting input back to the last forward slash

I think you're looking for the Alt+Backspace shortcut.

After pressing Up this should delete back to the previous / or space character.


How to activate a dialogue box on suspend?

Workaround, create a .desktop file for shutdown:

[Desktop Entry]
Name=Shutdown
Exec=bash -c "dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"
Icon=???
Terminal=false
Type=Application
Categories=Utility;Application;

Or use Xubuntu ;) there are confirmation dialogs for all this actions.

There is also an bugreport for this "problem" on Ubuntu: https://bugs.launchpad.net/ubuntu/+source/indicator-session/+bug/783808


installing ubuntu-restricted-addons from script

Try this:

sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ubuntu-restricted-addons