Is there a way to resize tray icons in Cinnamon?

The Cinnamon panel "tray icons" are not all of the same type. The ones that look bigger are on the same applet. If right-click on the panel and set to edit panel mode, applets can be moved around on the panel, and Skype, Pidgin and Updates icons are moved together with their applet.

~s o u r c e~ : Fix size of system tray icons in cinnamon

Open /usr/share/cinnamon/applets/systray@cinnamon.org/applet.js; in Terminal:

sudo gedit /usr/share/cinnamon/applets/systray@cinnamon.org/applet.js

and find the line that starts with:

const ICON_SCALE_FACTOR =

Change that, test to see which number fits your needs. (88 is big, 64 may be ok, I like 56) .

To see the changes ALT-F4 and type r then ENTER to restart the  Cinnamon desktop.

It works fine for Skype, Pidgin and Update icons.


Bluetooth keyboard not working after 12.10 upgrade

My bluetooth mouse stopped working after the upgrade, it keeps telling me that it is requesting access. I grant it but the pointer stands still. I think the problem is related.

Booting with the old 3.2 kernel makes it work, so I think it's a kernel issue.


See if your files are starting with < ? .

If so, and you want to keep them like that, you will need to edit /etc/php5/fpm/php.ini and set short_open_tag from Off to On and restart php-fpm.

sudo nano /etc/php5/fpm/php.ini

Search for short_open_tag and set it to On.

Restart php-fpm

sudo service php5-fpm restart


Ubuntu has been using a very similar stack to the current one (PulseAudio on ALSA) by default since 8.04. If 10.04 worked for you, I'd take off the rose-tinted glasses because they're lying to you. Each sound system has its pros and cons. PulseAudio is just the best of a imperfect mix for most people.

The command to restart ALSA (on 11.04) is:

sudo /etc/init.d/alsasound restart

You might need to install the alsa-utils package. That just does a load of things with alsactl.

As for poor sound quality, I find that sometimes funny balance/fade settings can cause major distortion. A tool like padevchooser's mixer might help you straighten things out.


You can use the subprocess module :

#!/usr/bin/env python2
import subprocess
command_1 = 'ps -eo pid,ppid,user,rss,comm --sort=rss'.split()
command_2 = 'tail -10'.split()
first = subprocess.Popen(command_1, stdout=subprocess.PIPE)
subprocess.call(command_2, stdin=first.stdout)

command_1 is the command on the left of the pipe, split on spaces to make a list which is required by subprocess.Popen class
command_2 is the command on the left of the pipe split similarly to command_1
first is an object of the subprocess.Popen class, subprocess.Popen executes the command_1 and send its STDOUT to PIPE so that we can use it as an input to command_2
subprocess.call will execute the command_2 with its STDIN coming from the STDOUT of first

For ps -C kswapd0 -C kswapd1 -C kswapd2 -C kswapd3 -C kswapd4  -o pid,ppid,stime,etime,time,pcpu,args command you can do :

#!/usr/bin/env python2
import subprocess
command = 'ps -C kswapd0 -C kswapd1 -C kswapd2 -C kswapd3 -C kswapd4  -o pid,ppid,stime,etime,time,pcpu,args'.split()
subprocess.call(command)

Read the official documentation on subprocess to get more idea.


no WiFi and Ethernet connection on msi gaming edge wifi. Where and how do I install the drivers if possible

I have found my solution. I downloaded the driver for realtek ethernet and entert the comands as good as i could and it worked.


/boot full caused kernel dependency problems Ubuntu 12.04

I followed these instructions to fix this problem on my machine.
http://ubuntuforums.org/showthread.php?t=2169901&p=12778972#post12778972

Not sure if all these steps are needed but doing these fixed my issue

1) sudo aptitude update

2) sudo aptitude safe-upgrade => from this command I still get the same error

3) sudo aptitude build-dep => was prompted to removed a package.  Answer Y

4) sudo apt-get update

5) sudo apt-get dist-upgrade

Problem fixed!  All my packages are up to date now.


Ubuntu 15.10 Software Center not starting

Apparently it was a problem with the symbolic link. An answer provided here helped.

$ cd /usr/local/lib/python2.7/dist-packages/zope
$ ln -s /usr/lib/python2.7/dist-packages/zope/interface


Which directories should I change permission on

You can use find command as follow:

find / -name templates_c -type d 2>/dev/null


How do i configure the live usb to install additional packages?

There is a way to do this by using software like Ubuntu Builder (This is only one way be sure to explore others)

Ubuntu Builder allows you to create your own Ubuntu based distribution in clicks. You are free to choose your own desktop environment, window manager, packages etc, and customize Ubuntu the way you want. You can download the latest .deb files here.

Be sure to do more research and return here if you have any additional questions


There is now an Ubuntu One Files app for Android available.

(Source)


How to make a custom snapshot of non-system related stuff and be able to restore without reboot?

What you need is LVM.  This is a disk abstraction layer unlike the partitions you've been using until now and actually replaces them.

LVM has built-in snapshots which allows you to freeze an existing Logical Volume in time, at any moment, even while the system is running. You can continue to use the original volume normally, but the snapshot volume appears to be an image of the original, frozen in time at the moment you created it. You can use this to get a consistent filesystem image to back up, without shutting down the system. You can also use it to save the state of the system, so that you can later return to that state if you mess things up. You can even mount the snapshot volume and make changes to it, without affecting the original.


Try this...

Install the hard disk into your working server system.

Edit /etc/default/grub. Find the line, near the top, that includes "quiet splash" and add "net.ifnames=0". This will make the network devices have standard, old school, device names. Your ethernet device will almost certainly become eth0 instead of some strange variable name like ens01p01. Then do sudo update-grub. Then reboot.

Edit /etc/netplan/*.yaml and change the ethernets: device definition from ens01p01 to eth0. Then sudo netplan --debug generate and sudo netplan apply.

Reboot the computer and use ifconfig to confirm that the ethernet device is eth0. If not, you'll need to modify the .yaml file indicated earlier.

Move the hard disk to the primary server, and it should all work.


The solution was to skip the script, and set the keyboard switch shortcut with setxkbmap.

I now run this in my login script:

# Keyboard layout switcher
setxkbmap -layout us,se -variant ,kinesis -option 'grp:alt_shift_toggle'

This does exactly what I wanted.


How to connect via ssh and use gcc on target?

You can put your gcc command right after ssh command, such as

ssh target@ip "gcc -o mybin main.c && ./mybin"

will compile main.c in your target's home folder and if compiling is successful, run "mybin" to see output, if there is any output of this program.


How do I add mix in audio from one file to a another

ffmpeg does it very well. For example:

ffmpeg -i input1.mp3 -i input2.mp3 -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 output.mp3

See the FFmpeg manual for Manipulating audio channels


Is there a big difference between Ubuntu with GNOME Shell and Ubuntu GNOME Remix?

As said in http://ubuntugnome.org/documentation/faq, Ubuntu GNOME Remix, is just Ubuntu with the GNOME desktop environment.

It's like Kubuntu (Ubuntu with KDE), Xubuntu (Ubuntu with Xfce) and Lubuntu (Ubuntu with LXDE) and is also officially supported.

So the packages that you use on Ubuntu will probably work on Ubuntu GNOME Remix.

The official Ubuntu GNOME Remix official website: http://ubuntugnome.org


how to stop saving thumbnails in ~/.thumbnails

Requires root permissions

I solved this using tmpfs.
The thumbnails remain in RAM until the next reboot and are recreated if needed again.
Following two lines in /etc/fstab create tmpfs for both thumbnails directories:

none /home/username/.thumbnails tmpfs rw,noexec,nosuid,size=10%,uid=1000,gid=1000,mode=0755 0 0
none /home/username/.cache/thumbnails tmpfs rw,noexec,nosuid,size=10%,uid=1000,gid=1000,mode=0755 0 0

Replace username with your user name and 1000 with your UID and GID. (You can find these by executing the id in shell).

Now clear the directories and mount tmpfs to them.

rm -rf /home/username/.thumbnails/*
sudo mount /home/username/.thumbnails
rm -rf /home/username/.cache/thumbnails/*
sudo mount /home/username/.cache/thumbnails


Repositories added for "Maya" not "Precise"

If you have used the Cinnamon ppa for Precise available at Launchpad, rather than the Mint repositories, it shouldn't have altered your LSB information, although I reproduce the 12.04 LSB information further below.*

The useful program, ppa-purge, is in the repositories for 12.04, but you have probably tried that, but it is useful as it removes all the ppa's files and dependencies and not just the ppa's list.

I assume your main /etc/apt/sources.list is functioning and you have checked that no references to Maya have crept in there and that there are no remnants of the Cinnamon ppa left in /etc/apt/sources.list.d.

Nevertheless, if you suspect your sources.list has been contaminated, you could run

sudo sed -i 's/maya/precise/g' /etc/apt/sources.list

which would substitute any references to Maya with precise, and was useful in this different case at Ubuntuforums.

*However, for your reference, this is the output of /etc/lsb-release for Xubuntu 12.04.1

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"

If you were running the original 12.04 and haven't upgraded to the point release, 12.04.1, instead use "Ubuntu 12.04 LTS" and not "Ubuntu 12.04.1 LTS" in the final category.


Flash chat problem , under the ubuntu 1204?

Try this bookmarklet on the page. Even if it stops the space bar in a text area, so you can't type a space (you can use Shift+Space), it should work in flash embeds too.

javascript:function dSpace(e){if((e.keyCode==32)&&(!e.shiftKey)){e.preventDefault();}}window.addEventListener('keydown',dSpace,true);void 0;

To remove that event listener, use:

javascript:window.removeEventListener('keydown',dSpace,true);void 0;


Why the widespread dependency on samba? Unnecesary coupling?

This is a bit wide question.

The exact samba package is the SMB/CIFS server, but you have asked APT to remove *samba*, which includes some Samba-related libraries for client-side parts.

For example it is a bad idea to allow removal of gvfs-backends. This will end with losing SMB/CIFS support in Caja file-manager (fork of Nautilus) and other related applications. In current heterogeneous world I think that it is a bad idea as SMB/CIFS is most cross-platform file-transfer protocol for NASes and computers.

By removing of smbclient you will lose the console functionality for SMB/CIFS shares.

But removing of mate-desktop-environment-core is almost safe as it contain only 4 non-essential files.

So I would suggest to keep all *samba* components at their places.


Copy all images in a directory to sub-directories in batches of 30

Use GNU parallel:
#!/bin/bash
mkdir_mv(){ target=$1; shift; mkdir "$target"; mv -t "$target" "$@"; }
export -f mkdir_mv
parallel -n 30 -j1 mkdir_mv "folder{#}" {} ::: *

As a normal mv won't create directories, we define a function first, that does that. We need to export the function to make it work with parallel
You will run the parallel command from the folder with your pictures.
Explanation:

-n 30 use 30 arguments for each parallel run
-j 1 run only 1 process in parallel (= do not run in parallel)
{#} the current run number
{} 30 arguments for each run.
::: argument separator.
* The input files.

parallel can be installed with:
sudo apt install parallel


How do I reset nautilus to the default configuration?

While nautilus is closed type the following in your terminal,

rm -R ~/.gconf/apps/nautilus

It will delete the folder with old settings.


How do I permanently fix the time on a bootable USB key?

The trouble is probably one of the following:

you use two operating systems, one of which is configured to the internal clock to UTC and the other to your local time zone; or
you use two operating systems with differring time zones set.

In either case, the alternate operating systems would try to fix the time, perhaps using NTP. The solution would be to settle on one of the two, UTC or local time zone. Of course it would also require that your USB live linux has support for persistant settings, as Saifallah indicated. More information on time management is available here.


Before installing Rhythmbox 3.0, press Ctrl+Alt+T on your keyboard to open terminal. Remove the default installation:

sudo apt-get purge rhythmbox rhythmbox-plugins

Then run below commands one by one:

sudo add-apt-repository ppa:fossfreedom/rhythmbox
sudo apt-get update
sudo apt-get install rhythmbox


You need to edit gksu gedit /etc/apt/source.list

and remove any lines that start with deb cdrom: like so

deb cdrom:[Ubuntu 12.04 LTS Precise Pangolin - Alpha amd64 (20120321)]/ dists/precise/restricted/binary-i386/

then save that file and then run sudo apt-get update (you may have to close software center for this command to run correctly)

and then try again


I installed on a WD Passport USB driver; how can I get grub to work correctly?

I "solved" this by wiping the external drive and reinstalling Ubuntu on a partition of the internal hard drive. Since grub had been installed on the external drive, the process wiped it out, too. Not elegant, I guess, but it solved the problem and gave me a fresh install of 64-bit Ubuntu 11.04.

Perhaps it's worth noting that although 32-bit Ubuntu seemed to be about as fast running on the external hard drive as on the internal hard drive, 64-bit Ubuntu seems to be faster on the internal hard drive.  (I expected boot-up to be faster, since that involves reading from the drive a lot, but I was surprised to find that the system was overall faster.)


default username gone only can login as guest （16.04）

Without booting to a LiveUSB or LiveCD/DVD, we can actually borrow some of the steps from this answer on resetting a lost password to get to a recovery console, and then make changes to the system and reboot afterwards.

To summarize the steps (everything from 1 to 4 is from the other question; 5 and 6 are the different steps to do):

(1) Boot up the system, and after you see the BIOS screen press and hold "Shift" - you'll get the GRUB prompt.

(2) Use the 'recovery mode' option for your kernel - if it doesn't show up it's probably under the section for "Other Ubuntu versions" or one of the other items on Grub.

(3) Once in recovery mode, select the 'root' option by using the down arrow on your keyboard, and then hit Enter.  You'll end up with a command line prompt for the root user.

(4) Remount your system as read/write with this command: mount -o remount,rw /

(5) Edit your /etc/passwd file with nano (use this command: nano /etc/passwd).  Once you've edited the specific line for your user and reset it to 1000 for the UID and GID, hit Ctrl+O, then hit Enter, and then Ctrl+X.

(6) You should now be at the root terminal prompt again.  Reboot with shutdown -r now or reboot.

You should then be able to login again, and have fixed your blunder.  Don't go messing with your UID or GID, because setting yourself to 0 will break things and is horribly insecure and should never be done.  (The 0 UID is for root, and root alone - DO NOT USE IT FOR ANY OTHER USER!)


In your chrome.
Go on advanced settings, in language section, You will find an web content section.
In this, You can change the encoding font option, try to septup as default or find your encoding font country option, in France, where i am it's utf-8.

New
In your menu, go to tools, and select Encoding.
Did the autodetect is on ? Perhaps try to disable if on, or enable if on.
Or select Western encoding option.


Laptop speaker disappeared from sound settings

Launch alsamixer in a terminal : https://wiki.ubuntu.com/Audio/Alsamixer

Press F6 to select your main soundcard (not hdmi), scroll with arrow key to locate speaker fader and increase volume (up/down arrow) and/or unmute (m key)
"auto-mute" and "independant" switch can make a bad effect too.


Try also the following:

try looking at the output for firmware interrupts:

grep . -r /sys/firmware/acpi/interrupts

You'll get a whole block of different outputs, for example:

/sys/firmware/acpi/interrupts/gpe01:19241984   enabled

Should you encounter any one of these, with a large number following gpexy: and it being enabled, try disabling it in crontab:

sudo crontab -e

i suggest you use nano for editing. Then add it:

@reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe01

with gpe01 being replaced with interrupts according to your previous output.

Reboot and see if it worked.


Selected sound output resets after shutdown/reboot - Ubuntu 19.10

I've been having this issue on Ubuntu 20 myself and seen a couple ways of solving it.
In Startup Applications I've added an entry: pactl set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo where alsa_output.pci-0000_00_1f.3.analog-stereo is the device name for my analog stereo output (headphone port).
This is answered here slightly differently: How can I change the default audio device from command line?
I will add to this however by saying that not only does the default device rebooting on Ubuntu 20 still after every reset it can also not play on the correct device - even if the default is set after a reboot.
To get around this second issue as well you could use this answer rhttps://askubuntu.com/questions/78780/how-can-i-disable-an-audio-hdmi-device to disable all the HDMI audio sources. That would leave you with just the Steinberg device you were looking for - thus removing the need to set a default altogether.
I've used both and now sound is working well for me on Ubuntu 20.


Openconnect - name or service not known when using sudo

Couldn't find a solution, but found a workaround.

Installed

sudo apt-get install network-manager-openconnect-gnome

And then connected through the Ubuntu's NetworkManager.


Keyboard not responding at login on Toshiba Satellite L775

In the past this http://www.techsmartlife.com/2011/10/13/keyboard-not-working-in-ubuntu-login-screen/ was helpful.. give it a try. don't know of any command line tools to troubleshoot keyboard.


Ubuntu 14.04 Calculator does not get focus when opened from keyboard shortcut

What you have discovered seems to be a bug related to some applications launched from (unity)*-settings-daemon.  The bug is reported here.

However, it exist multiple easy workarounds to this annoying issue;

The one I will suggest, is to define your own keyboard shortcut, and reassign the calculator button.

Another solution is to:

Use eg. CompizConfig Setting Manager and set the Focus Prevention Level option to off. The option is found under General Options on the tab named Focus & Raise Behaviour.


How to change Ubuntu server GRUB background image?

Install the grub customizer

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Then open it and select the third panel (appearance settings) scroll down and choose a back ground image.

To uninstall use

sudo apt-get remove --autoremove grub-customizer


Try this link:

https://nfolamp.wordpress.com/2011/10/15/ubuntu-11-10-getting-wireless-bcm4311-working/

Worked on my Dell D430.


Can't install "Desktop Icons" because this extension is enabled by my current mode, I can't install manually any update in this session

Probably the most convenient way for you would be installing the vanilla-gnome-desktop metapackage by running

sudo apt install vanilla-gnome-desktop

After installation reboot (or logout) and choose (after clicking the cogwheel (⚙) next to the sign in button) a 'GNOME' session (instead of 'Ubuntu') from the GDM login screen. You'll then get the vanilla GNOME session sans any modification by Ubuntu.


How to recover a USB stick after Ubuntu installation?

here's some simple instructions just for your reference.

A. First we need to delete the old partitions that remain on the USB key.

Open a terminal and type sudo su
Type fdisk -l and note your USB drive letter.
Type fdisk /dev/sdx (replacing x with your drive letter)
Type d to proceed to delete a partition
Type 1 to select the 1st partition and press enter
Type d to proceed to delete another partition (fdisk should automatically select the second partition)

B. Next we need to create the new partition.

Type n to make a new partition
Type p to make this partition primary and press enter
Type 1 to make this the first partition and then press enter
Press enter to accept the default first cylinder
Press enter again to accept the default last cylinder
Type w to write the new partition information to the USB key
Type umount /dev/sdx1 (replacing x with your drive letter)

C. The last step is to create the fat filesystem.

Type mkfs.vfat -F 32 /dev/sdx1 (replacing x with your USB key drive letter)

That's it, you should now have a restored USB key with a single fat 32 partition that can be read from any computer.


A little late, but might help others. For smileys and some other symbols I think the needed font is called:

wingding.ttf

You can download all Windows fonts at: http://www.w7df.com/


Generally, you needn't do any configuration at all. If a wireless device has an appropriate driver associated with it, Network Manager will see it and announce that there are available networks and then invite you to click the icon and select your network and connect. We suspect, based on your question, that a driver is needed but missing. When a driver and hardware associate, a wireless interface is created. You can check with the terminal command:

iwconfig

If there is no wireless interface, it will look something like:

eth0      no wireless extensions.
lo        no wireless extensions.

In plain language, there is no wireless interface. Another useful command asks for a list of all hardware and may be filtered to only show network devices:

lshw -C network

It will not reveal much useful, except what you probably already know: driver=none or similar.

There is an Additional Drivers utility that works primarily for display drivers and some Broadcom network cards. Because manufacturers are building and selling newer devices every day, it is a struggle for kernel developers to keep up.

The fastest easiest method I suggest is to ask for a listing of PCI devices and filter to devices in the class 280; wireless.

lspci -nn | grep 0280

The pipe symbol | is on the right side of my US keyboard on the same key with . When you have the informative eight-digit identifier, something like 8086:4239 or some such, you can search this site or ubuntuforums.org for a method to install the driver. Of course, you can post it here and we can help you. If your wireless device is USB, then the command is:

lsusb

It would be wonderful if there was a built-in utility that found a driver for everything and installed it immediately. However, in addition to the speed with which manufacturers produce new devices without Linux drivers, a number of drivers and firmware files are partially proprietary. Ubuntu, as shipped, is completely free and open source so no proprietary pieces are included.


"Could not find source connection" in Network Manager

See man Networkmanager.conf about the ifupdown managed property. If you specify a device in /etc/network/interfaces, by default the device becomes unmanaged. As you'd see in nmcli device output.
If you use NetworkManager, I would not also configure the device in /etc/network/interfaces. Or, if you want to also use NetworkManager on that device, tell it to manage the device despite it's in interfaces file.


How to install NVIDIA drivers to PowerMac G5

There are no proprietary Nvidia drivers supporting this adapter for powerpc platform. And it looks like nouveau does not support 3D acceleration well for it.

The only solution I see is to install Xubuntu. It does not require 3D acceleration and it may work with open source drivers.


No audio while tab casting with Chromecast and Chromium

It appears that it's related with the HDMI port on the TV. I had this problem and at first I solved it turning off my home theater, so that the audio would come from the TV's speakers. Then, after reading this post I tried using the HDMI extender and now I get the sound from my home theater.
I hope it helps.


UEFI/legacy issue : Ubuntu alongside Win10

This is what I did, also windows 10 will boot right if you use legacy:

Legacy first, Legacy OPROM and everything on legacy.
Install Ubuntu, when it finishes you can boot from a menu that appears everytime you boot either win 10 or ubuntu.


You can't, at least under rules for distribution through the app store.

As noted in the question you link to, the default application confinement on Ubuntu Touch restricts application to accessing files within their own silos.  You can change the confinement settings for your app, but this may not be accepted in the app store.  You could also give up on accessing these files directly and importing them through the content hub.  Details follow:

1) Importing files through the Content Hub

The Content Hub provides a mechanism for transferring files from one application silo to another.  It can be used in a number of different ways, but you'd want to request an import of type documents.  Another app that can act as a source of documents will open and present a list of documents.  After the user selects one (or more), your application resumes and receives a signal with information on the documents, which have been copied to a location where you can access them.

Of course, most other applications are also subject to application confinement issues that keep them from accessing ~/Documents.  However, the Document Viewer and File Manager are treated specially and given access to these files.  Both can act as Content Hub sources for documents.  Do note that the Document Viewer only supports some types of files.  The File Manager will export any type of file as a document, but it isn't installed by default.

(By the way, the same sort of mechanism allows the music app access to files in ~/Music.  I find this decision to special-case the default apps rather problematic, not least of all because it means their code is useless for app authors to study.)

I've yet to find a good tutorial for using the Content Hub.  Instead, I'll post some code I wrote while trying to understand the Content Hub myself.  It lets you import documents either from the default provider or from one selected from the "ContentPeerPicker".

manifest.json

{
    "name": "chtest.rschroll",
    "architecture": "all",
    "title": "chtest",
    "hooks": {
        "chtest": {
            "apparmor": "chtest.apparmor",
            "desktop":  "chtest.desktop"
        }
    },
    "version": "0.1",
    "framework" : "ubuntu-sdk-14.10"
}

chtest.apparmor

{
    "policy_groups": [
        "networking",
        "webview",
        "content_exchange"
    ],
    "policy_version": 1.2
}

main.qml

import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
import Ubuntu.Components.Popups 0.1
import Ubuntu.Content 0.1

MainView {
    id: mainView
    applicationName: "chtest.rschroll"

    width: units.gu(100)
    height: units.gu(75)

    PageStack {
        id: pageStack
        Component.onCompleted: pageStack.push(root)

        Page {
            id: root
            title: i18n.tr("Import Content...")
            visible: false

            property var activeTransfer

            Column {
                anchors.fill: parent
                spacing: units.gu(2)
                Row {
                    height: units.gu(6)
                    anchors {
                        left: parent.left
                        right: parent.right
                        horizontalCenter: parent.horizontalCenter
                    }
                    spacing: units.gu(3)
                    Button {
                        text: i18n.tr("... From default provider")
                        onClicked: {
                            root.activeTransfer = peer.request();
                        }
                    }
                    Button {
                        text: i18n.tr("... From choosen provider")
                        onClicked: {
                            pageStack.push(picker);
                        }
                    }
                }

                Label {
                    id: label
                    width: parent.width
                }
            }

            function importItems(items) {
                var string = "";
                for (var i = 0; i < items.length; i++) {
                    string += i + ") " + items[i].url + "\n";
                    /* You may want to use items[i].move() to put the content somewhere permanent. */
                }
                label.text = string;
            }

            /* The ContentPeer sets the kinds of content that can be imported.  For some reason,
               handler must be set to Source to indicate that the app is importing.  This seems
               backwards to me. */
            ContentPeer {
                id: peer
                contentType: ContentType.Documents
                handler: ContentHandler.Source
                selectionType: ContentTransfer.Multiple
            }

            /* This is a GUI element that blocks the rest of the UI when a transfer is ongoing. */
            ContentTransferHint {
                anchors.fill: root
                activeTransfer: root.activeTransfer
            }

            /* Watch root.activeTransfer to find out when content is ready for our use. */
            Connections {
                target: root.activeTransfer
                onStateChanged: {
                    if (root.activeTransfer.state === ContentTransfer.Charged)
                        root.importItems(root.activeTransfer.items);
                }
            }
        }

        Page {
            id: picker
            visible: false
            /* This presents a grid of icons for apps that can give you content of the
               specified type. */
            ContentPeerPicker {
                id: peerPicker
                visible: parent.visible

                handler: ContentHandler.Source  // Source to get content, for some reason
                contentType: ContentType.Documents

                onPeerSelected: {
                    peer.selectionType = ContentTransfer.Multiple;
                    root.activeTransfer = peer.request();
                    pageStack.pop();
                }
            }
        }
    }
}

2) Getting direct access to these files

If this seems like too much work, you can alter your app armor profile to grant additional access to the file system.  For example, to give your app read access to ~/Documents, you would add to your app armor JSON file the line

"read_path": ["@{HOME}/Documents/"]

This will prevent your app from being automatically approved when you submit it to the official app store.  Instead, a human will have to look at it and decide whether to approve your application or not.  Sometimes they will (Log Viewer).  Sometimes they won't (my own ebook reader, Beru).  I haven't found any explanation as to why some apps are accepted and others aren't.

If you don't feel like gambling with the reviewer, or if you gamble and lose, you can submit your app to the OpenStore, which publishes apps that cannot be published in the official store.


deploy-site.sh is not in PATH. You have to run it as ./deploy-site.sh if you are in the same directory or /path/deploy-site.sh if not


Increase size of partition on live production server (VMWare - Ubuntu 16.04 headless)

Yes, after deleting the swap and extended, you can resize the partition easily with any partitioning tool.  Some partitioning tools, like gparted, will also automatically (if the resize2fs program is present) resize the filesystem on the expanded partition. Other partitioning tools, you will have to do it yourself manually.  With the space now available, you can follow your procedure to increase the size of the virtual vmware.
  Backup everything first of course, just in case, and check how much swap you normally use, since if you are using swap, you will need to deal with that problem.


This problem was caused by a lack of Nvidia GPU drivers.

Open a terminal and run

sudo apt-get install nvidia-346-updates

This will install the best driver for your GTX660.


Tray icons disappears sometimes in Ubuntu 17.10

Problem was in old Unity indicator-application. Because I used Unity earlier in 17.04 and upgraded to 17.10 this indicator wasn't removed. I still have Unity available. After disabling indicator-application from autostart now legacy tray icons works fine. To disable autostart of this indicator remove /etc/xdg/autostart/indicator-application.desktop file from system. Now it works with standard Ubuntu Appindicators Gnome extension.


you can install the brightness changer indicator:

sudo add-apt-repository ppa:indicator-brightness/ppa
sudo apt update
sudo apt install indicator-brightness

after launching it should shows on your panel. click it and choose the desired value.

Another way is to do:

echo 1000 | sudo tee /sys/class/backlight/*/brightness

change 1000 to desired value


Driver Installation for AMD Radeon R9 380X (Ubuntu 16.10)

The stock open source drivers should be fine for most games. You will only need the proprietary Pro version of the drivers if you need some additional features for certain games, such as Vulkan or maybe OpenGL 4.5.

To see what version of OpenGL is currently supported with what you have installed, you can run glxinfo | grep "OpenGL core profile version" in a terminal. The version shown there is the highest level of OpenGL the drivers you're currently using supports.


Just run the following commands:

apt-get -y remove mysql-server
apt-get -y autoremove
apt-get -y install software-properties-common
add-apt-repository -y ppa:ondrej/mysql-5.6
apt-get update
apt-get -y install mysql-server


Difference between ESTABLISHED and LISTENING

Any "ESTABLISHED" socket means that there is a connection currently made there.

Any "LISTEN" means that the socket is waiting for a connection.

Both are opened ports but one is waiting for a connection to be made while the other has a connection already made.

You can imagine this like the following:

The HTTP protocol (typically port 80) is on LISTEN mode until somebody actually goes to the server. The moment somebody visits the page, then it will be in ESTABLISHED mode.

The same applies for the MySQL 3306. When nobody is using the service, it is on LISTEN mode. When somebody actually uses it, at that moment it will be in ESTABLISHED mode.

For more information here are some man pages that are useful:

man nmap
man netstat
man arp
man lsof

Basically with this you will see how the the ports work, how they are handled and probably more information regarding sockets and their states. And yes, as stated ESTABLISHED & LISTEN both are Open Ports but ESTABLISHED means it is connected while LISTEN means that is waiting to be connected.


Of course SSD works with Ubuntu! How else do you think servers running Ubuntu Server run so fast? Now that's pretty much all the support you can get on this question and answer page without it being off topic, so if you need help replacing, just look on YouTube or the Developers website. Hope I helped!


You can dual-boot or triple-boot from an SSD just like from HDD, there's absolutely no difference, it will be just faster.

Partition alignment is very important for SSDs because of their large physical block size. Ubuntu installer aligns partitions optimally by default. So does GParted.

Regarding your partitioning scheme - I see no sense in separate /boot partition, but otherwise it would work just like any other.


How can I show the CPU temperature in the GNOME panel?

Try installing this extension for GNOME. It is called "Freon."

https://extensions.gnome.org/extension/841/freon/


How do I eliminate white noise in zynaddsubfx?

Ok I managed to decrease the white noise a lot. It was a latency issue again. This is what I did. In Zynaddsubfx, I went to Edit, then I enabled Padsynth and clicked Edit. Then I saw that the sample size was 128 and not 256. I changed this, and then clicked on apply.


Startup in GRUB with dual boot Windows 10

If you want GRUB menu to be shown at startup, then comment out

GRUB_TIMEOUT_STYLE=hidden

to be

#GRUB_TIMEOUT_STYLE=hidden

to /etc/default/grub, then run

sudo update-grub


This also works in Lubuntu 15.04 with LightDM as display manager:

dm-tool switch-to-greeter


Is it safe to force upgrade with do-release-upgrade -d?

Finally, I did the upgrade using do-release-upgrade -d and now I'm on 20.04 without problems.
Output for lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal


It exists in gimp 2.10 in the menu Filters -> Distorts -> Newsprint

It is located almost at the bottom of the list of filters.

If you really do not have this filter, then try Filters -> Reset all filters option

or reinstall gimp:

sudo apt purge gimp && sudo apt autoremove && sudo apt install gimp

But if you want to try different filters, you could try G'MIC plugin:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gmic gimp-gmic

There's a huge number of different filters.

If after installing you could not launch gimp, then fix it by:

sudo apt purge lisudo apt purge libgegl-0.4-0
sudo apt install gimp-gmic


How to prevent gnome-mplayer from asking to resume at the latest position

This is just a workaround. (I didn't search much about it.)

Install sqliteman:

sudo apt-get install sqliteman sqlite3

Open gnome-mplayer media datastore

sqliteman ~/.config/gnome-mplayer/gnome-mplayer.db

Add a trigger to reset resume column to 0 with any data update

Schema tab → main → Tables → media_entries → Right click on Triggers → Create trigger
Fill up as:

CREATE TRIGGER "no_resume"
   AFTER
   UPDATE OF "resume"
   ON media_entries
   FOR EACH ROW
BEGIN
    UPDATE media_entries SET resume = 0;
END

Meaning:

Create a trigger with name "no_resume" which will be executed after any update of "resume" values in "media_entries" table.
Command to be run: For each row in "media_entries" table set "resume" to "0".

Click Create

Close sqliteman and launch gnome-mplayer again. It works for me in (Ubuntu 14.04). If I check back database all resume column is 0.


Reinstall Apache2, after remove on Ubuntu 16.04

It happened to me as well and I fixed it by:

uninstalling the package
$ whereis apache2
manually remove anything related to it
fresh package reinstall


Why this dpkg error: ambiguous package name 'libglib2.0-0' ...?

no such package could be found. Probably it is because I am using ubuntu 12.04.

The corresponding version for Ubuntu 12.04, as of this date, should be 1.16.1.2ubuntu7.

  ia32-libs : Depends: ia32-libs-multiarch but it is not installable

This is a link to the ia32-libs-multiarch page, where you can download the .deb file. Please use dpkg -i filename.deb to manually install it, and if successful, try apt-get again. If not, please update with dpkg error.

I installed ia32 on a test x86_64 system, and got the following for the contents of the triggers File and the contents of giomodule.cache. Please check to see how yours differ:

izx@myprecise:~$ grep libglib /var/lib/dpkg/triggers/File
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0
/usr/lib/gio/modules libglib2.0-0
/usr/share/glib-2.0/schemas libglib2.0-0
/usr/lib/i386-linux-gnu/gio/modules libglib2.0-0:i386
/usr/lib/gio/modules libglib2.0-0:i386
/usr/share/glib-2.0/schemas libglib2.0-0:i386

izx@myprecise:~$ ls /usr/lib/x86_64-linux-gnu/gio/modules
giomodule.cache      libgiognutls.so                 libgvfsdbus.so
libdconfsettings.so  libgiolibproxy.so
libgiognomeproxy.so  libgioremote-volume-monitor.so

izx@myprecise:~$ cat /usr/lib/x86_64-linux-gnu/gio/modules/giomodule.cache
libgiognutls.so: gio-tls-backend
libgioremote-volume-monitor.so: gio-native-volume-monitor,gio-volume-monitor
libgvfsdbus.so: gio-vfs,gio-volume-monitor
libgiolibproxy.so: gio-proxy-resolver
libdconfsettings.so: gsettings-backend
libgiognomeproxy.so: gio-proxy-resolver


Can I set up Gnome to pop-up its main menu anywhere when I right-click on desktop, and apps (windows) list on middle-click?

If you remove the menu from the panel and hit Alt + F1 the menu will appear at the mouse cursor.  If you use Compiz you can then use the commands plugin along with xte to simulate keyboard presses and make Alt + F1 be any mouse/corner press you want.

xte is part of the xautomation package:  sudo apt-get install xautomation

This is a helpful tutorial on the Ubuntu Forums.

There is also MyGTKmenu, which allows you to easily create your own custom menu.

Then there's apwal, which allows you to create a custom application-launcher-thing (something like an "application wall", get it?) which can be assigned to open with mouse buttons.  It's available in the repos.

Then don't forget about GNOME Do and Kupfer, which in my opinion are far superior to any menu.

Oh, and don't forget about the mouse gesture program Easystroke, which allows you to run any keyboard command, script etc., with simple mouse movements rather than having to click your desktop at all.  For example, I can open my main menu by holding the middle mouse button and moving the mouse up.  Takes less than a second and it doesn't matter what window the pointer is in.  It's available in the repositories.


New Mac Mini 5,1 wireless & Bluetooth not working

In your case you would need to wait for correct hardware functionality for the Sandy Bridge and other devices in the Kernel. Right now this is being worked on and am sure for the 3.1 kernel version many fixes will be made regarding this. So for now give it some time for the work for this hardware to get to the kernel. If a PPA that addresses this for Ubuntu appears it would need to be compatible with the version you are using.

Also for what I have seen, 3.0 version of the Kernel and 3.1 version have a lot of work for the Sandy Bridge hardware: http://www.phoronix.com/scan.php?page=article&item=intel_snb_linux31&num=1

For the remark about "mac hardware only works on mac" not true. It has been mentioned, showed, tested and confirmed that linux works in anything that uses any of the architecture it supports. I have seen several Macs that use Ubuntu so you can imagine my face with something like this. Basically, if it uses electricity that hardware can have linux.

There are even official pages about it:

https://help.ubuntu.com/community/SwitchingToUbuntu/FromMacOSX

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


Ubuntu does not load, missing initrd.img-3.0.5-17-generic

Boot a live cd, or just the ubuntu install cd, choose "Try out", then open a terminal and type the following:

sudo su
mkdir -p /mnt/disk
mount /dev/sda1 /mnt/disk
chroot /mnt/disk
update-initramfs -u

That assumes that you installed ubuntu on the first partition of your first harddisk. You have to alter /dev/sda1 otherwise. Also i recommend you to use the install-cd that you used to install your ubuntu.

Good luck!


A timer that automatically locks the screen to take a break away from the computer?

TakeaBreak
TakeaBreak is now on launchpad
sudo add-apt-repository ppa:vlijm/takeabreak
sudo apt-get update
sudo apt-get install takeabreak

Recently (also) pushed for 18.04 / 18.10 / 19.04

Disclaimer: I am the author
Feel free to file bugs etc. here, or comment here.
Thanks to orschiro for the nice question, and Rinzwind for the encouragement!

remaining break- seconds (using countdown- option)

Settings

EDIT
An integrated & modernized version for Ubuntu Budgie is now available:

This applet will most likely be available by default in Ubuntu Budgie 19.04, but can now be achieved here as an experimental one.


I use ClamTK and have found the files in a hidden directory .clamtk so your files may well be in a directory.clamav in your Home directory. Igf using Nautilus you can see hidden directories by pressing Ctrlh.
Reverse the process to hide them again.
There is then a subdirectory under that called db which contains the .cvd file daily.cvd
On the other hand this reference suggests that the file can be found in /var/lib/clamav/daily.cvd
You might also find this reference helpful.


Black screen after boot (after installing nvidia drivers)

Try this, it worked for me (problem with lightdm)

ctrl+alt+f1. Login and do a restart lightdm

then i could log in to desktop and do : gedit /etc/rc.local
before the "exit 0" line  insert this line:  service restart lightdm

It worked for me, and i hope it'll work for you


"failed to mount Mount unit for " when restarting the system

If you deleted snap files manually, for instance, in order to clean up space, some .mount files were left in /etc/systemd/system/, like /etc/systemd/system/snap-core20-975.mount.
You can try the following command:
grep -r What /etc/systemd/system/|sed -E 's/.*What=(.*)/\1/g'|xargs ls -la {}

The output will be:
ls: cannot access '/var/lib/snapd/snaps/snap-postman_81.snap': No such file or directory
-rw------- 2 root root  64233472 Mai 19 22:11 /var/lib/snapd/snaps/****.snap
....

So, now you know what snaps are missing and can decide what to do, e.g. remove obsolete .mount files.


How to purge and reinstall bumblebee completely?

To remove bumblebee completely

sudo apt-get install ppa-purge
sudo ppa-purge ppa:bumblebee/stable
sudo apt-get purge bumblebee

To reinstall bumblebee (and bumblebee ui) follow this
How to set up nVidia Optimus/Bumblebee in 14.04


Some space characters are not entered in KDE5 apps

Do you have this issue after a fresh boot?  I have a similar problem after waking up from sleep.  See Certain keys not working correctly after resuming from suspend


Ctrl+Space mapping broken in Vim after upgrade to 14.04

I presume it is the same issue as described in lp bug#1278511, in which case running ibus-setup and disabling Control+Space should do the trick.


How to uninstall Puddletag - audio tag editor?

open up a terminal and type sudo apt-get remove puddletag if you installed it as a deb file using gdebi then open the deb file with gdebi and it will give you the option to re-install or remove it. or you can also look in synaptic to see if it is there if it doesn't show in softare center! hope this helps


I do this:

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    up /sbin/iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 0/0 -j MASQUERADE

And everything worked!


Why does Skype suddenly fail to log in? Turns out, it's tor!

Update: Turns out this answer is wrong. The problem here was Skype blocking IPs operating a Tor exit node. See answer below.

However the answer might be helpful in solving other problems.

Here is what I did.

All this was done using terminal.  Just press Ctrl+Alt+T on your keyboard to open Terminal.

I removed the old Skype, using sudo apt-get autoremove --purge skype, and removed ~/.Skype folder.

I then installed Skype 4.2.0.11 this way.

wget -O skype-NoobsLab.deb http://download.skype.com/linux/skype-ubuntu-lucid_4.2.0.11-1_i386.deb
sudo dpkg -i skype-NoobsLab.deb
sudo apt-get -f install;rm skype-NoobsLab.deb

After the installation was done, I typed Skype in Dash, clicked on it, and when it opened, I put in my user name and password, and was able to log in.  See below.

Note: I used the 32bit Skype, and there were no problems.

This method will automatically detect OS architecture and install latest skype:

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install skype && sudo apt-get -f install

Note: I had to install libqt4-webkit, and for that I used Synaptic.

Source: Noobslab


Desktop 12.04 gnome/cairo suddenly in Chinese

Add English language to your Ubuntu, it became Chinese because you may have erased English translation, your Dutch version are maybe not completely translated, so it displays English but if you don't have English anymore, Chinese pops up.


I found that the list_nfs_mounts function was causing the problem.  The local variable list overwrites the built-in function of the same name.

I updated the function to what follows, and it appears to work now:

def list_nfs_mounts(givenlist, mountstats):
    """return a list of NFS mounts given a list to validate or
       return a full list if the given list is empty -
       may return an empty list if none found
    """
    xlist = []
    if len(givenlist) > 0:
        for device in givenlist:
            stats = DeviceData()
            stats.parse_stats(mountstats[device])
            if stats.is_nfs_mountpoint():
                xlist += [device]
    else:
        for device, descr in list(mountstats.items()):
            stats = DeviceData()
            stats.parse_stats(descr)
            if stats.is_nfs_mountpoint():
                xlist += [device]
    return xlist


My chromium decides to start up each time I boot up computer

Type in the dash "Startup applications" and then search for Chromium and deactivate it.


You can install the package vpnc. This is a Cisco-compatible VPN client with can be installed with

apt-get install vpnc

adapt the vpnc.conf in /etc/vpnc to your needs

Set the following information:

IPSec gateway <Host Server>
IPSec ID <Vpn Username>
IPSec secret <Vpn Password>
Xauth username <your system username>

then write a script like this

#!/bin/bash
while(true) ; do
    dhclient wlan0
    vpnc-connect
done


Try choosing the advance options in Grub, and choose recovery options next. It will take you a screen with various options. I can usually just choose continue booting from that screen, and get into my system. It's not a fix, but a workaround, hopefully someone can give you a better answer.

For your second problem, I've notice Ubuntu always run fans at full speed as well. I fixed that by going into my BIOS and setting the fan speed from there. You can also install lmsenors and fancontrol to do it from within Ubuntu, but I think it's best to leave it to the motherboard BIOS if you have that option. Here's some instruction on fancontrol installation and use. How to control fan speed?


You can install :

sudo apt-get install reportbug

reportbug first time create a reportbug.conf file in /etc

/etc/reportbug.conf

user@ubuntu01:reportbug
Please enter the name of the package in which you have found a problem.
> packagename
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'user name <user@ubuntu01>' as your from address.


Why Won't Rhythmbox Coverart Plug-in Work? (Kubuntu)

The important part of your output when you ran rhythmbox from a terminal is this bit:

  ImportError: cannot import name Notify, introspection typelib not found

What this means is that Kubuntu does not have the following package installed by default - gir1.2-notify-0.7

To install this package:

sudo apt-get install gir1.2-notify-0.7

As an aside - since the Debian package is provided by myself ... I'll updated this package at the next release to include this dependency.


ubuntu 12.04 lts to 14.04 lts upgrade manager and files

Well, software upgrades shouldn't touch your personal files.  Software upgrades try to go with old configuration files, but not always.  You should be fine, but me personally, when looking at transitioning dozens of important packages, I'd still wonder if a fresh install isn't too far off, so I'd backup my stuff anyways.


On my 11.04, libgcj-bc is version 4.5.2-1, which would satisfy the dependencies. This probably means that you have caught a newer version by a PPA, backports, or other means. Open synaptic, select libgcj-bc, hit Ctrl+E and select a version lower than 4.6.

This should solve the installation of pdf-tk but may introduce other dependency problems, which could be addressed by removing the dependent packages and install the distribution releases. Yet it may be wiser to await 11.10 where more recent packages are available.


How to run a C++ program in python as a root?

You can add a program or script to the /etc/rc.local file.  This script is run at boot time.  All the lines in the script are run as root.

If you have a program named /usr/local/bin/myprogram and added this line to the rc.local script it would be run as root.

/etc/rc.local:

# By default this script does nothing

/usr/local/bin/myprogram


Why would you want a user without a password? That's just asking for trouble specially if this machine is on the Internet or a network. Why not setup a password for the user but have them auto-login.  If you still want to have that done, then just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo useradd <user_name>
sudo passwd -d <user_name>

To enable auto-login, create the user, type in a password, and check Don't ask for password on login.


How do I stop virbr0 interface being created?

On my machine virbr0 interface was created after installation of libvirt-bin package which is dependency of virt-manager.

Solution 1 (straight-forward):

It seems you can remove it from startup by removing corresponding file with

sudo rm /etc/libvirt/qemu/networks/autostart/default.xml

You can bring it back with

sudo ln -s /etc/libvirt/qemu/networks/default.xml /etc/libvirt/qemu/networks/autostart/default.xml

Solution 2 (with virsh)

disable: sudo virsh net-autostart --disable default
enable: sudo virsh net-autostart default

But this has side-effect. If you want to use bridged network in virt-manager you should start bridge before launching VM with sudo virsh net-start default.

Solution 3 (set virbr0 unmanaged in NetworkManager)

The following lines should be added to the end of /etc/NetworkManager/NetworkManager.conf:

[keyfile]
unmanaged-devices=interface-name:virbr0

The result: NetworkManager "does not know" about virbr0, but VMs can access bridged networking.


Ubuntu 14.10 Can't Create New Files from Context Menus

One solution is to apply the commands discussed here:

Missing new file in Ubuntu 13.04

cd ~/Templates
touch Text.txt

These lines would at least give you the option to create new text files.

Another solution is to use

sudo nemo

and change the permissions to the folders individually.


By selecting gnome-shell at login from the drop down box pictured here:

It should automatically be set to default for future logins until you select a different window manager.

If it doesn't automatically default the gnome-shell than you can edit /etc/lightdm/lightdm.conf and change

user-session=ubuntu

to

user-session=gnome

EDITED: to add how to change default manually.


Upgrading Ubuntu from 12.04 to 12.10 broke my system, completely.

In a case like this, you probably don't want to invest too much time in troubleshooting the problem and after that doing the entire chain of upgrades from Ubuntu 12.04 to Ubuntu 13.10. Considering that a fresh install only takes about a half hour, I recommend that you backup all your personal data, using an Ubuntu live CD/DVD/USB if necessary, and then do a fresh install of Ubuntu 13.10.

Many things have changed from Ubuntu 12.04 to Ubuntu 13.10, such as the way to access Software Sources and Additional Drivers from the desktop, and doing a fresh install will also prevent possible problems from being introduced somewhere in the chain of upgrades from Ubuntu 12.04 to Ubuntu 13.10.


How to open terminal. gconftool not found

You're typing those commands into the dash, I think (the thing that pops up when you hit the windows key), not a terminal.

To open up a terminal, open the dash (press the windows key) and type terminal, and the first thing to pop up should be the terminal (you'll need to click on it). Or, you can press ctrl+alt+t.

To paste into a terminal, you need to use ctrl+shift+v. You'll need to press enter after pasting the command in.

I can't vouch for that particular command, though, nor am I sure exactly what you want to do. Do you want to set Rhythmbox as your default player of music? That can be set in System Settings, under Details. Please clarify your question, with a link to where you got that command from.


Installing massif-visualizer on Ubuntu 14.04

massif-visualizer is available on 3rd Party Repository: Kubuntu-ppa Backports

Install by following command:

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get install massif-visualizer


Is it possible to remove lock from a file locked through root

You can easily do this from the terminal. When you download a file as root, it is owned by root and default permissions do not allow others to view or modify it. To give you access, you will need to change the owner to the user you want to have access. Assuming your username is brayan and the file is myfile.txt, you would use this command:

sudo chown brayan:brayan myfile.txt


Get gnome default terminal history from Zsh terminal?

If you want history to be saved in zsh, set history according to zsh's guide. History file does not have special format (unless EXTENDED_HISTORY opt is set), so you can just point it to default bash .history file so they can be used together.

example .zshrc setting:

HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.bash_history


How to load environment variable from a file for an upstart job?

There are several ways to tackle the problem of exporting variables defined in a source file, including all kinds of hacks (for example, the weird export $(cat file | xargs) hack documented in this answer), but the simplest way to just enable "Mark variables for export" flag in your shell, before sourcing the environment file.

Here is the bash documentation for this feature - look under -a.

While the script tag in upstart does not use Bash as a shell - it uses the default POSIX shell implementation in Ubuntu, called dash which also support this feature, calling it allexport. So the upstart script section should read:

script
  set -a
  . /etc/default/service-conf
  /usr/local/bin/service
end script


Can't restore GRUB after upgrade to 14.04 ("grub_term_highlight_color" bug)

I had a similar recent experience: upgraded to 14.04, none of the suggested fixes for this issue seemed to work.

I suspect you have stale EFI files in your EFI partition. There is a launchpad bug specific to the EFI situation which I suspect addresses your case. The fix is to update EFI files manually. Here's a walk-through:

Boot to live CD
Open xterm
Use parted to determine your EFI partition: sudo parted -l (substitute for /dev/sda1 in next step)
Mount your EFI partition: sudo mount /dev/sda1 /mnt
Update the Boot EFI file: sudo cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/Boot/bootx64.efi

Also see Upgrading from 13.10 to 14.04 broke Grub


You can re-install ubuntu completely, which I would recommend in this scenario.
Boot into recovery mode following the below instructions:

Booting into recovery mode
Switch on your computer.
Wait until the BIOS has finished loading, or has almost finished. (During this time you will probably see a logo of your computer manufacturer.)
Quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.)
Select the line which starts with "Advanced options".

Select the line ending with "(recovery mode)", probably the second line, something like:

Ubuntu GNU/Linux, with Linux 3.8.0-26-generic (recovery mode)
Press Return and your machine will begin the boot process.
After a few moments, your workstation should display a menu with a number of options. One of the options (you may need to scroll down to the bottom of the list) will be "Drop to root shell prompt". Press Return with this option highlighted.

The root partition is mounted read-only. To mount it read/write, enter the command

mount -o remount,rw /
If you have /home, /boot, /tmp, or any other mount point on a separate partition, you can mount them with the command

mount --all

Once in recovery mode, open terminal and execute the following commands:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo shutdown -r now


How do I get a Laserjet M1212nf MFP working?

I think the problem is with  return content_type, content.encode('utf-8'). The solution is the replace the characters to modify the program line:

return content_type, content.encode('utf-8') as
return content_type, content.decode('utf-8', 'replace').encode('utf-8')

This does nothing just replaces the character. refer to this

Maybe this can help you out


Ubuntu 20.04: libssl.so.1.0.0: cannot open shared object file: No such file or directory

I ran into the same issue I think (I had the same error message trying to launch RStudio after upgrading Ubuntu from 18.04 to 20.04). Here is what worked for me after reading the following page: https://packages.ubuntu.com/xenial/amd64/libssl1.0.0/download

Edit the source list sudo nano /etc/apt/sources.list to add the following line:
deb http://security.ubuntu.com/ubuntu xenial-security main
Then sudo apt update and sudo apt install libssl1.0.0.

I hope t works for you too.


How to extract multiple bits of information that appear on different lines within the same text file

With awk:

awk -F '[. ]*' 'NF == 2 {id = $2; next} {print $3, id}' input-file

we split fields on spaces or periods with -F '[. ]*'
with lines of two fields, (the >Cluster lines), save the second field as the ID and move to the next line
with other lines, print the third field and the saved ID


Enable middle click drag on synaptics clickpad

I suggest you to switch to libinput then configure it via .conf file.

A pretty complete guide is here: https://wiki.archlinux.org/index.php/Libinput

If you can't switch it off, try this: https://wiki.archlinux.org/index.php/Touchpad_Synaptics


You can search for a program title using the following command:

apt-cache search TitleYouWant

This will search for any package that has the word in it.
Update the apt-get list of packages first using:

sudo apt-get update


Any Chance for me to install ubuntu on laptop Asus n61 JQ-X1?

You don't need to install any specific drivers for (audio,video) after installing ubuntu.But You must have to install specific drivers for graphics,wireless,mobile broadband.It was so better to try a ubuntu live cd.


If the filesytems are completely full, you can have problems to boot the machine. So you need to remove some file to get some free space. A lot of info on how to do this is in https://help.ubuntu.com/community/LiveCdRecovery

Reboot with a rescue disk.
Find and identify your "/" partition (in the link above it's explained how), let's suppose it's /dev/sda1
mount it: mount /dev/sda1 /mnt (if /mnt does not exist, create it).
now, with a LOT of attention, explore your partition which is under /mnt and delete the files that caused the mess. Errors at this stage can make your system completely unrecoverable.
unmount it umount /dev/sda1.
Repeat from point 2 with all other partitions that need care.

Now, the black screen and the desktop not entering is probably another problem, caused by the crash when the disk was full. But at least this is one step in the right direction.


How to enable maximize option in Ubuntu 16.04

GNOME Tweak Tool

Go to the all apps menu, and type in tweaks. This will take you to the GNOME Tweaks settings.

On the side panel select 'Windows'. Under this tab there is a heading called. Titlebar buttons. You there can enable both maximize and minimize.

If you don't have gnome Tweaks installed simply go to your terminal and type in sudo apt install gnome-tweak-tool then follow the instructions above


If you have configure vnc, remote desktop perfectly then make sure that it is allowed via firewall.

Check your router configuration , make sure that RDP is allowed.


ubuntu 16.04 alt + tab not working properly

I've been seeing the same thing on one system, and it's a bit annoying.  I finally accidentally stumbled upon the answer for my case:

It was the Compiz switcher also capturing the ALT - TAB key combo along with the Unity switcher.

It can be disabled by installing the CompizConfig Settings Manager:

sudo apt-get install compizconfig-settings-manager

I ran it by clicking on the Search icon and typing:

CompizConfig

Then click on the icon.

Click on Window Manager → Application Switcher and disable the Next Window key.

Hope this helps you too.


How to force Krusader to use Ubuntu's file associations?

One workaround is to create an useraction (Useractions > Manage user action) that does:

xdg-open %aCurrent%;

and keymap it (Settings > Configure Shortcuts) to something like Ctrl + Enter. Mapping to just Enter does not seem possible.

Works because Ubuntu seems to follow freedesktop.org and use the same apps as xdg-open.

Dolphin specific question: How to change file association for files opened in Dolphin from command line in GNOME?


Unity mouse/keyboard shortcuts for "wall" and "expo"

I could be wrong, but as far as I understand it, this is not currently possible with the mutter version of Unity. I know mutter supports keyboard shortcuts, but I'm not sure how they are configured (GNOME Shell has one for the overlay).

The compiz version will likely have shortcuts though, since compiz natively has keyboard shortcuts enabled for expo etc.


apt-get: How to overwrite existing files from another package?

Try running:

sudo dpkg --purge gnome-games gnome-games-common gnome-games-extra-data

to remove the offending packages. If the packages refuse to be removed, you can run:

sudo dpkg --force-overwrite --purge gnome-games gnome-games-common gnome-games-extra-data

Then clear the apt cache and reinstall them:

sudo apt-get clean
sudo apt-get install gnome-games gnome-games-common gnome-games-extra-data


The one specified on your line in /etc/passwd (it is a : separated line and the shell is the final one).

For example mine:

chris:x:1000:1000:Chris,,,:/home/chris:/bin/bash

Here it is /bin/bash (the Ubuntu default)

You can also use chsh:

$ chsh
Password:
Changing the login shell for chris
Enter the new value, or press ENTER for the default
        Login Shell [/bin/bash]:

This is telling me my shell is /bin/bash and letting me change it.

Finally, echo $SHELL will do the same:

$ echo $SHELL
/bin/bash


Login loop for main and guest account after installing NVIDIA driver

I re-did the last section of the instructions I linked to on Ubuntu Forums, the part for installing the nVidia driver.

When I did it the first time I used the 340.65 driver. This time I used the newest 346.72 driver and that seemed to fix it. I have no idea why; maybe it was just an issue with that particular driver.


Can I check for my most recent updates on the Ubuntu website?

As mentioned in your earlier question you should choose Ubuntu 14.04 LTS over 14.10 as it will be officially supported till april,2019 but 14.10 will be supported for 9 months only. Check the download page of Ubuntu to download the iso of 14.04. You can also read this to get better idea on LTS vs Normal releases.


Perhaps this https://superuser.com/questions/415772/how-to-map-special-keys-of-the-keyboard-to-some-mappings-in-linux
topic will be useful because it consider more than one tool.

Or that http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm


Can't get past ubuntu boot screeen after upgrade to 15.10!

Ok, I couldn't get it to work and also checked out the link Charles sent me but to no avail.

I reinstalled the system and installed the proprietary drivers again and I got the same symptoms, the system hung on the plymouth screen so this looks like an AMD graphics compatibility issue. Will just have to use the xorg driver untill AMD update it.


Changing default terminal in Krusader file manager

After a lot of researching I found that you can fix this by going to Settings>>configure Krusader>>General>>enter terminator in the blank next to External Terminal. Then after that again go to Settings>>configure Krusader>>User Actions>>enter terminator in the blank next to terminal for UserActions. That is how to change the default terminal in Krusader file manager.


http://www.martin-juhl.dk/2011/05/optimus-on-linux-problem-solved/
a link

https://wiki.ubuntu.com/Bumblebee and install from this link


Can I set the onboard keyboard in a different language than my system language?

Yes, you can change the language of your keyboard via the following command:

sudo dpkg-reconfigure keyboard-configuration

You can also check this page of mine, where I've provided some more details:

Ubuntu Keyboard Configuration


What's the best practice for backing up encrypted Ubuntu home dir?

Option 1 is generally recommended.  You don't get compression, but you can exclude sub-directories.  It it can be a pain to figure out how the names have been mangled, but the directory hierarchy is preserved.

You do need to practice recovering from this or any other backup scheme, and the advice at How to safely back up the "Private" folder? is good on  how to test that out.

Option 2 means you have to do something to protect the backup data.


Skype - voice fine, but no notification sounds

Do you have "Warning sounds" in your audio preferences muted?
Uncheck "Stumm", dont know the english layout of the dialog :)

edit: this is the System Preferences -> Sound options dialog.


You could use nmap

nmap -PN your_ip_address

For more help you can check the man page of the nmap


Extremely slow connection after 17.04 update

I had the exact same issue (just like @Mark Roberts).

Here is the fix:

Note: the current /etc/resolv.conf file is actually a symlink to ../run/resolvconf/resolv.conf which appears to be the core issue since it is not maintained by systemd-resolved.

Thus if you do an ls -la you'll see:

~# ls -la /etc/resolv.conf
lrwxrwxrwx 1 root 29 Apr 14 11:36 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

so... to get around this do the following:

sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

After that I kicked systemd-resolved just to make sure:

sudo systemctl restart systemd-resolved

This appears to work great because:

  systemd-resolved maintains the /run/systemd/resolve/resolv.conf file
  for compatibility with traditional Linux programs. This file may be
  symlinked from /etc/resolv.conf and is always kept up-to-date,
  containing information about all known DNS servers.

Which I quoted DIRECTLY from the bug report:(bug # 1624320) and I believe it is the culprit.


As one of the commenter's (jrg) suggested it's likely to be in /usr/local.  You don't need to uninstall before recompiling and reinstalling though.  When you install again it will simply overwrite the previous version.

You can normally run ./configure --help to see what the options available are, like the install path (normally labeled prefix and set to /usr/local I believe).


Ubuntu 12.04 does not officially support a newer version, so you have two options:

You could upgrade to 14.04 LTS. It comes with jmeter 2.8-1 (see here).
Or you could try downloading the .deb file from here (choose the proper architecture) and see if it gets installed using sudo dpkg -i [deb file]. As it is fully written in Java, chances are that it doesn't need any newer dependencies than you already have installed.


Before reading further I'd recommend you back up any data you have on the 1TB drive, provided I understood you clearly and you need want to divide it in half for Windows data and Linux data. Resizing a partition on a drive can cause data loss. That said...

It seems you want to resize your data partition and make half of it a Linux friendly file system, e.g. ext4.

Provided you have Ubuntu Desktop install media you can run the LiveCD and use gparted. picture below.

It is very easy to use and you should have no problems partitioning.

If you prefer to use a Windows partitioning tool the process is the same.

Back up any data you absolutely can't be without on the 1TB drive
choose actions to resize the current partition on the 1TB drive to 500GB
Make a partition with the remaining space of a file type of your choosing that is Linux friendly (Here's a brief good intro article on filetypes in case you are curious:
https://www.howtogeek.com/howto/33552/htg-explains-which-linux-file-system-should-you-choose/.)
apply changes

Good luck!


Compare 2 images with minimum difference value

Assuming you are talking about the ImageMagick compare command, there doesn't seem to be an option to do that; however the command's exit status provides a way to kludge it by conditionally deleting the output file afterwards:

   The compare program returns 2 on error otherwise 0 if  the  images  are
   similar or 1 if they are dissimilar.

i.e. the command "succeeds" only if the files are not dissimilar. So you could write a simple shell function wrapper and (optionally alias it):

mycompare ()
{
    command compare "$@" && rm -- "${!#}"
}

alias compare='mycompare'

The ${!#} is a bash indirect reference that expands to the last positional parameter (which in this case will be the name of the output file).


Is Canonical Livepatch not supported on non-LTS release like Ubuntu 18.10?

As per this (old) documentation,

  The Canonical Livepatch Service applies kernel fixes in microseconds, without restarting your Ubuntu LTS system.

and

  The Canonical Livepatch
  Service applies security critical Linux kernel patches without
  rebooting, keeping your Ubuntu LTS systems secure
  and compliant.

(emphasis mine)

Also as per System Requirements in this Ubuntu wiki article, currently supported releases are Ubuntu 14.04 LTS , Ubuntu 16.04 LTS, and Ubuntu 18.04 LTS.

Since Ubuntu 18.10 is not an LTS release, it's not very surprising that it's not supported.


Yes. Simply put Ubuntu is open source and free for anyone to use, including commercial use. Nice, huh!?

However looking at it more closely, you see that Ubuntu consists of a lot of individual packages and each can have its own license. That's important to keep in mind about redistributing software as not all software in all repositories is fully FOSS. See also my answer to Why are some programs in the Ubuntu Software Center not open source?.

I suggest you to read up on Ubuntu Licensing.


Depends of model but normally you access the BIOS using:

F1
F2
F10
Delete
F12
F8

You should check when you boot for the exact key.


How do I update Ubuntu packages from source?

Building an updated package from a bzr branch tends to differ a fair amount depending on who maintains the branches or how the package works in general. However, here are a few guidelines for a quick and dirty update of just about any package, to be pushed to a PPA:

Get the branch:

bzr branch lp:~network-manager/network-manager/openconnect-ubuntu.head

Then switch to it, and update changelog:

dch -i

dch -i will simply open a new entry in debian/changelog, increasing the version revision by one. If you want to add a patch, that's perfect, but if you want to update to a newer version of the upstream software, you'll need to update the version number before the dash (-). Say, a version in 1.2-0ubuntu1, if you start dch -i it will change to 1.2-0ubuntu2, which is good for patching but if you need a new version you'd likely want to change that to 1.3-0ubuntu1.

If you need to patch, now is the time to add your changes. In branches that have only a debian/ directory, you can use bzr bd-do (requires the bzr-builddeb package) to switch to a work tree where you can do changes, use quilt or any patch system, then "exit 0" to have your changes copied back.

If you want a new upstream version, once changelog has been changed you'd likely run a command similar to this one:

debian/rules get-orig-source

This will usually download the right tarball from the upstream publisher to get you started. If further changes are necessary, proceed as above for "patching" or changing other files in the debian/ directory, otherwise you're almost done:

bzr bd -S

bzr bd will take care of building. Calling it with no arguments starts to build on your system, while calling it with -S tells it to prepare a source package, which will include a ..._source.changes file which is what you want to upload to your PPA (use dput ppa:<yourname>/<name of your ppa> <changes file> to do that).

For NetworkManager packages, it's a little different. Let's look at openconnect specifically:

bzr branch lp:~network-manager/network-manager/openconnect-ubuntu.head network-manager-openconnect

Make sure you also have all the build dependencies:
    sudo get-build-deps

With the branch retrieved, this will read the debian/control file and try to download everything you need to build network-manager-openconnect. You might need git too though. Once that is done, run get-orig-source to get just the tarball of the very latest snapshot from git:

debian/rules get-orig-source

You'll see text fly by and a tarball with a long version number appear. That's the latest code you could get for nm-openconnect.

You will then need to update changelog with the version number from the tarball, just keeping the -0ubuntu1 suffix intact.

Or, change debian/changelog with the specific version number you want, then run:
    debian/rules get-current-source

Since the plugins don't change much, you should be able to just build the package from there, using bzr bd as above. If not, apply any changes necessary as above.

Don't forget to bzr commit after you've made changes.

I first forgot to add, don't hesitate to use the merge proposal system (Propose for merging link your branch's page on LP) when the changes you're making could benefit others. Usually you can just propose for merging against the branch yours is based on (e.g. lp:~network-manager/network-manager/openconnect-ubuntu.head in this case).


Audio capabilities not being detected properly

Install pavucontrol,

sudo apt-get install pavucontrol

Now choose desired configuration from the 'Configuration' tab.


Try running sudo rmmod psmouse && sudo modprobe psmouse.

This unloads and reloads the touchpad driver. Doing this might alleviate the problem, at least temporarily.


OK, so I have nearly got this thing in order.

I had asked this question in two other forums also and the only answer I got pointed me to the SDL2 Gamepad Tool (http://generalarcade.com/gamepadtool/). This tool was supposed to register my gamepad without using the xboxdrv command. This tool did recognize my gamepad, gave a name to my gamepad as "DragonRise_Inc. Generic USB Joystick" rather than what was previously displayed as just "Generic USB Joystick" and I could use my gamepad in the game. But the mapping was wrong, i.e., the right d-pad button would accelerate my player and other anomalies. Even by manually mapping the buttons in this tool, the same behavior was found.

So, this tool, to a degree was kind of helpful (maybe as its name suggests, it would be more helpful for SDL2 based games, and maybe the game that I wanted to play with the gamepad is not SDL2 based.) The game that I want to play with my gamepad is 'Teddy Floppy Ear - The Race' on Steam Linux.

Next, I was left with the same first problem. I searched and searched and found a question in this very website that helped me. The page link is How can I execute command on startup (rc.local alternative) on Ubuntu 16.10 According to this page, Ubuntu >= 16.10 do not have rc.local file, but a kind person has given the instructions to make one. So I went ahead and created this file.

The commands given on that page, to create the rc.local file are:

printf '%s\n' '#!/bin/bash' 'exit 0' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
sudo reboot

Next, I was not happy with the additional js input devices, so I searched some more. My search brought me to these two pages: https://github.com/RetroPie/RetroPie-Setup/wiki/Universal-Controller-Calibration-&-Mapping-Using-xboxdrv and https://retropie.org.uk/forum/topic/7096/xboxdrv-guidance-needed These pages have very dedicated discussion about the xboxdrv command. From these pages I got the command 'sudo killall xboxdrv'. This command removed all the additional js input devices. And showed that calling the xboxdrv initialization command with the name of the gamepad is a better way than using the event number. I also found that the event number changes if there are more/less usb devices attached to the notebook. Here, the gamepad name registered through the SDL2 Gamepad Tool came handy.

Now, I have a working setup. I have the rc.local file with these contents:

#!/bin/bash

sudo killall xboxdrv
sudo killall xboxdrv
sudo xboxdrv --evdev /dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick --silent --mimic-xpad --evdev-absmap ABS_Z=x1,ABS_Y=y1,ABS_RX=x2,ABS_RZ=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y --axismap -Y1=Y1,-Y2=Y2 --evdev-keymap BTN_THUMB2=a,BTN_THUMB=b,BTN_TOP=x,BTN_TRIGGER=y,BTN_TOP2=lb,BTN_PINKIE=rb,BTN_BASE=lt,BTN_BASE2=rt, BTN_BASE5=tl,BTN_BASE6=tr,BTN_BASE3=back,BTN_BASE4=start &

exit 0

The double "sudo killall xboxdrv" command is required in my setup, I do not know the exact reason, but without this double there is a problem of having an additional js input device listed.

The one catch is that, I have to attach the gamepad to the notebook before booting it. If I attach the gamepad after booting the notebook, the gamepad is not initialized. I could just run the commands manually after attaching the gamepad, but it not possible for everyone using my notebook.

My next step is to find a way to create a script file with the commands, so that I can just double click the script file after attaching the gamepad and this would initialize the gamepad. But I have not yet found a way to incorporate the sudo command in a simple script.

Edit (14 Aug 2018):
Ok, so I now have a way to call the initialization script without using the rc.local file. This is a much better solution and works anytime I want to connect the gamepad. (I got this method from another forum where I had asked this question).

I created my initialization script at /home/mark/.my-controller.sh (here, replace 'mark' with the name of your user)

This .my-controller.sh file has the following code:

#!/bin/bash

sudo killall xboxdrv
sudo killall xboxdrv
sudo xboxdrv --evdev /dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick --silent --mimic-xpad --evdev-absmap ABS_Z=x1,ABS_Y=y1,ABS_RX=x2,ABS_RZ=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y --axismap -Y1=Y1,-Y2=Y2 --evdev-keymap BTN_THUMB2=a,BTN_THUMB=b,BTN_TOP=x,BTN_TRIGGER=y,BTN_TOP2=lb,BTN_PINKIE=rb,BTN_BASE=lt,BTN_BASE2=rt, BTN_BASE5=tl,BTN_BASE6=tr,BTN_BASE3=back,BTN_BASE4=start &

exit 0

Next, in the /etc/sudoers file add this text (replace /home/mark with the name of your home):

# Added manually
mark ALL = NOPASSWD: /home/mark/.my-controller.sh

Next, create the .desktop file that will call this script (replace "/home/mark" with the name of your home) (and, replace 'sakura' with 'gnome-terminal' if you use that):

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=StartMyGamepad
Comment=To initialize my gamepad
Exec=sakura -e "bash -c 'sudo /home/mark/.my-controller.sh;$SHELL'"
Icon=utilities-terminal
Terminal=false
Type=Application
Categories=Application;

Now, when you want to use the gamepad, first attach the gamepad to the PC, then open the .desktop file. this will open a terminal asking for your password. Enter your password and the script is run that initializes the gamepad.


Mate Panel gap between main menu and window list

Right-click anywhere on the panel and select Properties from the context menu

In the dialog box uncheck Expand

The panel will compress to the centre, removing the gaps


Problem in Dual-Boot can't find window boot

i had a similar problem once, and it was because of my BIOS. See, if you start you computer and access the BIOs you might see an option to change between Legacy Support and UEFI mode, these are kind of BIOs. What happend in my case is that i had windows in UEFI and Ubuntu on Legact, and since i had my bios as legacy it booted ubuntu by default and was impossible to access windows. You should try to reboot your computer and open the OS select screen (in some PCs is done by holding down ESC, others with F2 and others with F9, it changes) and see if you can choose windows (with your C: and D: drives installed).

If that is not the case you might need to update your Grub, but i cant know for sure, can you post some pictures of you boot up procces?
BTW, this should be posted as a comment, but i dont have enough reputation yet, so, yeah.


how to check whether CMake is installed in ubuntu?

Just type cmake --version in terminal, If cmake is not installed you will command not found error, If cmake is installed , you can see the cmake version


Why can I not copy file with cp -rf mydir/* .../mydir/.?

If the shell cannot find anything to expand * into, then it leaves it untouched. So if there are no files or directories in mydir (except hidden/dot files/directories), then mydir/* is passed as it is to cp. And cp cannot find any file called mydir/*, as the error says.

For example:

$ ls /srv -l
total 0
$ ls /srv/*
ls: cannot access /srv/*: No such file or directory

Unless you're trying to exclude hidden files and folders you should simply do:

cp -r mydir ../


Gues additions seem to been installed correctly.

Can you give your graphic card 32 Mb of memory. It's the only difference that I see with my setup that does work correctly in fullscreen or seamless.

How to check if video guest additions are installed

Looks like guest additions have not been correctly installed. Check that windows is using Virtualbox Graphics Adapter as it's display driver. If it isn't try to reinstall the guest additions and report back any problem that it displays.

You can check it using the Device Manager on windows. If you are using XP, you can reach it this way:

To open Device Manager, click Start, and then click Control Panel. Click Performance and Maintenance, and then click System. On the Hardware tab, click Device Manager.

Other windows version have it placed in another places, but it's always there ;).


cannot access launcher or onboard when unetbootin asked for password

It's impossible to access onboard while unetbootin asks for password(While you try to open it from as a normal user).IMO it's a bug in unetbootin.So try these two commands on terminal via onboard to run unetbootin.

sudo unetbootin

It opens the unetbootin application with super user do permissions.

/usr/bin/unetbootin 'rootcheck="no"'

It won't prompt you to enter sudo password, because rootcheck is disabled.


How to use gparted to allocate unallocated space from VBox dynamic drive

One reason the partition cannot be resized is because it is active.

To increase the size of the /dev/sda5 LVM2 PV logical partition:

Select the /dev/sda5 LMV2 PV logical partition and Deactivate it with the menu option Partition > Deactivate.
Select the /dev/sda2 extended partition and use Partition > Resize/Move to grow the partition to use the unallocated space.
Edit > Apply all operations.
Select the /dev/sda5 LVM2 PV logical partitition and use Partition > Resize/Move to grow the partition to use the unallocated space within the extended partition.
Edit > Apply all operations.
Open an terminal prompt and use commands such as lvresize to grow the LVM Logical Volume which you would like to be larger, such as the one containing the Root Volume Group.

I recommend learning more about Logical Volume Management by reading a tutorial or two from the Internet.

'Hope that helps.


setkeycodes will change the key mappings at kernel level itself.
Here there is an issue in understanding the scan code values.
For key press it's: 0x6f and for release it's :0xef.
So the command you need to run is :

sudo setkeycodes 6fef 224

This will change the mapping to the desired one.


Looks like a driver bug - see https://bugs.launchpad.net/ubuntu/+source/linux-lts-quantal/+bug/1097178


Issue running backtrack 5 R2 (64bit) VM on Ubuntu 12.04 (32bit) host?

Virtualbox supports your configuration (64-bit guest on 32-bit host), but there are some requirements and other caveats:

From the manual:

VirtualBox supports 64-bit guest operating systems, even on 32-bit host operating systems, provided that the following conditions are met:

You need a 64-bit processor with hardware virtualization support (see the section called “Hardware vs. software virtualization”).
You must enable hardware virtualization for the particular VM for which you want 64-bit support; software virtualization is not supported for 64-bit VMs.
If you want to use 64-bit guest support on a 32-bit host operating system, you must also select a 64-bit operating system for the particular VM. Since supporting 64 bits on 32-bit hosts incurs additional overhead, VirtualBox only enables this support upon explicit request.

  Warning:
  On any host, you should enable the I/O APIC for virtual machines that you intend to use in 64-bit mode. This is especially true for 64-bit Windows VMs. See the section called “"Advanced" tab”. In addition, for 64-bit Windows guests, you should make sure that the VM uses the Intel networking device, since there is no 64-bit driver support for the AMD PCNet card; see the section called “Virtual networking hardware”.

Please ensure you are meeting all these requirements, and that your memory allocation is reasonable -- try 512MB only for Backtrack to start with.

The other option is to try the free VMWare Player instead, which also supports this configuration, and see if it works any better.

Finally, even though you have 4GB RAM, if you can, you should just upgrade your physical machine to 64-bit 11.10 or 12.04. There should be no performance penalties with your configuration.


Is it possible to setup a shortcut for enable/disable wifi?

This script will toggle the status, and show a message to confirm what's been done.

#!/bin/bash

if [ $(rfkill list wifi | grep "Soft blocked: yes" | wc -l) -gt 0 ] ; then
    rfkill unblock wifi
    zenity --info --text "Enabled wireless"
else
    rfkill block wifi
    zenity --info --text "Disabled wireless"
fi

To have the zenity prompts disappear, change them like so:

zenity --info --text "Enabled wireless" --timeout="5"
zenity --info --text "Disabled wireless" --timeout="5"

Or make notifications that appear in the corner of your screen.

sudo apt-get install libnotify-bin

Replace the zenity lines with

notify-send -i network-wireless-full "Wireless enabled" "Your wireless adaptor has been enabled."
notify-send -i network-wireless-disconnected "Wireless disabled" "Your wireless adaptor has been disabled."


If I have an x64 capable CPU, but install a x86 Ubuntu distribution, can I still run 64bit executables?

Short answer: No, a 32bit system can only execute 32bit binaries.


The answer at this link has really good information https://askubuntu.com/a/286206/3940.

To directly answer your question. Use another USB device or pendrive to copy the files to. If you don't have another USB device or pendrive, you can also copy to a writable DVD or CD. An external hard drive would be great.

Remember, don't copy any files to the old windows 10 drive and do not set testdisk to send results of the scans to the windows 10 drive either!


I don't see an option to upgrade from the Update Manager

It's possible that Update Manager is checking for LTS releases only or no releases. In software properties (sudo software-properties-gtk), on tab Updates, check the last option - Release upgrade. It should be set to Normal releases.

Also try running sudo update-manager --check-dist-upgrades and make sure you have all packages up-to-date (especially for Update Manager).

There are more upgrade strategies at https://help.ubuntu.com/community/OneiricUpgrades

If nothing of this helps, try updating package information from console - what's the output of sudo apt-get update command?

Edit: The Maurizio's problem was caused by outdated mirrors. The mirror can be changed in Software Properties on the first tab, in Download from select Main server.


At this time Ubuntu Touch is only available as Developer Preview.

Many things do not work yet as they will be on a finalized version. This might be earliest end of 2013 or beginning of 2014.

Till that time it is just meant to give a preview for Developers. They can work on the first apps and on the core system itself to make it work well and to make it look beautifully.

You will have to wait or you will have to check for a device with a different operating system.

Additionally you should try it out before you buy - My personal opinion is, that the use of phontoshop or any other similar program will be completely different on a desktop pc with mouse or graphic tablet than on a tablet computer itself. This is a decision that neets a lot of research.


How can I install GNOME without installing the default applications?

Just do:

sudo apt-get install ubuntu-gnome-desktop --no-install-recommends


Can you help to install "Not Installed" packages

You think now surely there are left out packages in your system, but that isn't true, your system is fully operational. This output means only there are more known packages you can install if you want. There is no need to install all and everything.


So, to help me-from-the-past to fix this:

Dear me! You should read about xrandr, because this is simple terminal-operated program to work with screens.

For some reason configuration after undocking has bugged and you have to turn on laptop's screen manually from xrandr for once and then everything will be well.


How to decrypt information from package versions?

Technically:

31.0.1650.63-0ubuntu0.13.10.1~20131204.1
|----------| | |----|
  Upstream   |    |
  version    |    |
          Debian  |
          version |
               Ubuntu
               Versioning

That cover the basic, but what about the next numbers?

The 13.10 is the version of Ubuntu, since the packages of different versions of Ubuntu are compiled quite differently and will collide if they have the same name in the mirror. These packages are exclusive to that version of Ubuntu.
.1 means that is the first version for that package.
~20131204 Is the date the package was built.
The second .1 is in case the package is built twice the same day.

Now, why in the world has a complicated version number? Because Chrome/ium is compiled separately but must have the same versions on all releases of Ubuntu, and to differentiate them all the package managers use these kinds of overly complex versions number.

  I don't recall holding this package and others as well.

In this case is "held" has another meaning. It's being held because apt will break dependencies if it gets upgraded. This cases are normally solved upgrading both packages or using an advance resolver like aptitude.


There is no log detailing apt's logic. But the logic is so simple that a log isn't needed. There are only two criteria to make a package eligible for autoremoval.

1) It's apt-marked 'auto'

2) No installed package that is apt-marked 'manual' needs it as a dependency.

If you want to keep a specific package, then change #1 using the apt-mark command. You don't need to mark every dependency - those will be kept by #2.

Example: sudo apt-mark manual name_of_my_package


How do I set network speed and duplex during boot?

I suggest you remove all but the loopback entries from /etc/network/interfaces if Network Manager is installed. I would then place the ethtool declaration in /etc/rc.local:

gksudo gedit /etc/rc.local

Right above exit 0, add:

ethtool -s eth0 speed 10 duplex full autoneg off

Proofread, save and close gedit. Reboot.


It is possible to see and modify the Ubuntu One CouchDB, but not via Futon. All you need to do is do OAuth-authenticated (but not HMAC-signed OAuth) REST requests to the right URL, using your Ubuntu One-specific Ubuntu SSO token.

One easy(ish) way of seeing the Ubuntu One CouchDB is using a little tool I wrote, which I called watgui because I'm really bad at names. It only does GET requests for now.

First, you use the tool to work out the “magic CouchDB URL”:

Then, you turn off HMAC signing, and you can use the URL to get access to the databases. For example, here's me looking at my notes database:


What is the easiest way to replace a cellphone with a mini laptop

I think the gpd pocket 2 may be worth looking at. Here's a video review (with windows though) and here's a linux compatibility overview. There's also this optimized ubuntu mate version.


Why is the Intel Turbo Boost Mode not running at maximum speed?

Actually as you are running all 4 cores, the maximum frequency won't be achieved as specified. Intel specifies maximum turbo frequency for a single running core.

There are different maximum frequencies achieved for 1 active core and for 4 active cores (to prevent going over TDP)
http://www.cpu-world.com/CPUs/Core_i5/Intel-Core%20i5-3210M%20(BGA)%20Mobile%20processor.html

e.g. thus you are getting around 2.9 ghz rather than 3.1

if you look in i7z there is a line specifying //// max multiplier achieved with 1/2/3/4 core. You cannot go above those multipliers if more than some number of cores are active.

also, inactive core need to be in C3 or higher states to allow the active core(s) to get into higher turbo levels.


xfce does not start (X.Org X server: no screens found)

never mind!

i figured it out ^_^

i typed in

sudo sh ~/Downloads/crouton -u

and it updated and its now fixed


How can I set up twin view on 11.04 with a Matrox G400/G450?

Did you see this website and the example xorg.conf

The important part to checkout is Section "ServerLayout" at the bottom of the file.


This location could not be displayed. You do not have the permissions necessary to view the contents of"Shared_Folder"

You have to add yourself to the shared folders group in the Ubuntu guest.
sudo adduser $USER vboxsf
Guest OS needs to be restarted after this.


Bluetooth mouse constantly disconnects and reconnects

I had the same issue on 18.04 with my Microsoft Sculpt Comfort Mouse and tried all the steps mentioned here and elsewhere, but nothing helped. It constantly disconnected & reconnected after sleep or a reboot.

I finally found a solution on reddit:

Set UserspaceHID=true in /etc/bluetooth/input.conf and restart the bluetooth service (or reboot). After that, mouse stayed connected finally.

https://www.reddit.com/r/archlinux/comments/8ywe3q/bluetooth_mouse_cannot_reconnect_after_disconnect/