Cinnamon session crashing login from greeter

The key were these parts of the message:  GLib-GIO-ERROR and Settings schema 'org.gnome.desktop.file-sharing'

Where does GLIB store its schemas?

/user/share/glib-2.0/schemas/

$ cd /user/share/glib-2.0/schemas/
$ grep file-sharing *
Binary file gschemas.compiled matches
org.gnome.desktop.file-sharing.gschema.xml:<schema path="/org/gnome/desktop/file-sharing/" id="org.gnome.desktop.file-sharing" gettext-domain="gnome-user-share">
$ dpkg -S /usr/share/glib-2.0/schemas/org.gnome.desktop.file-sharing.gschema.xml
gnome-user-share: /usr/share/glib-2.0/schemas/org.gnome.desktop.file-sharing.gschema.xml

Aha - gnome-user-share looks like the culprit!

What does gnome-user-share do?

$ apt search gnome-user-share
Sorting... Done
Full Text Search... Done
gnome-user-share/bionic,now 3.18.3-3 amd64 [installed]
  User level public file sharing via WebDAV

I do not need User level public file sharing via WebDAV, so I will remove it.

$ apt-get purge gnome-user-share

I rebooted the computer and was able to login to a nice Cinnamon desktop.

Time to go make some Cinnamon Toast.  Does anyone have a good recipe for that for that? ;-)


Install Firefox Developer Edition, but keep / sync all my old settings / extensions / bookmarks / history, everything?

touch ~/.mozilla/firefox/ignore-dev-edition-profile

Creating this file and following the steps:

sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo apt update && sudo apt upgrade

Did the trick.


Ubuntu kernel not upgrading with upgrade to 15.10

This is a bug in the distribution upgrade script.

You can install the correct kernel by running:

sudo apt-get install linux-generic

After a reboot you should have the 4.2 kernel.


Slow USB transfer when dd direct to device

You should simply increase the block size of dd. The default is 1 single byte, but you can drastically speed the process up with transferring larger data chunks at once. The responsible parameter is called bs.

You might want to experiment a bit with the optimal values, but something around 4kB (4096 bytes) should be okay. Some sources also recommend larger block sizes of e.g. 32kB, 64kB or even 128kB. It depends strongly on the target drive's physical structure which value is optimal and can almost only be found out by experiment. You can think of 4kB as lower boundary though, smaller block sizes are usually much slower.

More information about optimal block sizes for dd can be found in this related question on Unix & Linux.

dd if=my.img of=/dev/sdb bs=4096 status=progress


How do you install the Terminal app to an Ubuntu phone

Question solved. My phone did not even show the possibility of an OS upgrade because I was on a mobile data connection. As soon as I connected to a WiFi, I upgraded the OS to 15.04 for which the Terminal app (and many others) are already available.


Autoinstall - the password and authorized-keys options doesn't work

I set up users via the Ubuntu auto-install cloud-into mechanism successfully.  The key for auto install is using the user-data portion of the cloud config file which is supplied to the Ubuntu instance  the first time it boots after the install.
#cloud-config
autoinstall:
version: 1
user-data:
disable_root: false
users:
- default
- name: alpha
ssh-authorized-keys:
-
sudo: ALL=(ALL) NOPASSWD:ALL
groups: sudo
shell: /bin/bash


First install GParted:

sudo apt-get install gparted

Open it, select your USB device, unmount if the case (right click on it and Unmount) and create a new msdos partition table (Partition menu). After that you can format it with GParted or any other tool.


What means this error message: lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nes/.gvfs

There is a FUSE virtual filesystem mounted at ~/.gvfs.

For the majority of filesystem accesses, permissions are ignored for the root user.  However, FUSE virtual filesystem mounts are one of the rare exceptions.  FUSE virtual filesystems are normally restricted to the user who mounted them.

In this case, the gvfs-fuse-daemon command (run as part of your desktop session) created this mount, belonging to you, and no-one else can access it, including root.


What you are looking for is a Versioning File System. The Wikipaedia lists several open source implementations for Linux, although none seems to be fully mature at this stage:

ext3cow
Next3
NILFS
Tux3

To me it seems far easier to use a mainstream versioning system with auto-commit set on desired files and/or folders. You can check how to do it at StackOverflow.


Rename multiple files remove all characters

This one-liner works for your example data:

for i in *; do echo "$i";mv "$i" $(echo "$i" | perl -ne '($num)=$_=~/(\d+).*\.mp4/; print "HxH",sprintf("%03d",$num),".mp4","\n"'); done;

Explanation:

for i in *;
do
  echo "$i";
  mv "$i" $(echo "$i" | perl -ne '($num)=$_=~/(\d+).*\.mp4/; print "HxH",sprintf("%03d",$num),".mp4","\n"');
done;

for i in *;do -> loop through all files in current directory
echo "$i"; -> write current file (see progres/logging)
mv "$i" $(echo "$i" | perl -ne '($num)=$_=~/(\d+).*\.mp4/; print "HxH",sprintf("%03d",$num),".mp4","\n"'); -> renaming command (original name to output of perl command) The perl command extract digits from given filename and print "HxH", the number with leading 0s and ".mp4"

Important Note:

The command given works on the two sample inputs you provided. You should definitely test it before applying it to your actual files. Therefore I would recommend removing mv "$i" from the command. Then you can validate the names.


it would be better if you could get debugging output from Evolution itself. So, please, quit evolution and then, on a terminal:

killall -9 e-addressbook-factory
/usr/lib/evolution/e-addressbook-factory

then start Evolution as usual (from the menu) and try to connect to your Ubuntu One addressbook. When it fails, go back to the terminal and paste all output you see there into your question.


PhpMyAdmin missing Text_Plain_Preappend_getInfo() function

I managed to have a working installation of PhpMyAdmin by uninstalling the existing package and installing a "compatible version" from another ppa :

http://techfolkz.com/5/install-php-7-apache-2-mysql-56-phpmyadmin-45-on-ubuntu

Install Phpmyadmin

You should install php7 compatible version of phpmyadmin.Following commands are for installing phpmyadmin 4.5.3 on your server.You can check details here.

$ sudo add-apt-repository ppa:vincent-c/ppa
$ sudo apt-get update
$ sudo apt-get install phpmyadmin

Thanks for the help !


"No matching node is available." error when trying to bootstrap juju

You need to have nodes that are in the "ready" state before they can be allocated to a user.  Your nodes are still in the commissioning state - commissioning needs to complete on the nodes during which they tell the MAAS server that commissioning is done and it switches state to "ready".

There are many reasons why commissioning is not completing, I suggest you have a look here:
https://answers.launchpad.net/maas/+faqs


Launcher icons are invisible after upgrade from 11.10 to 12.04

1st try reset your unity by using this command

unity --reset

Rebuilt icon package

gsettings set org.gnome.desktop.interface icon-theme 'Unity-icon-theme'

Other default icon package

gsettings set org.gnome.desktop.interface icon-theme 'Ubuntu-mono-dark'

gsettings set org.gnome.desktop.interface icon-theme 'Ubuntu-mono-light'


Ever had issues installing on Acer Aspire 5000?

Try it. The standard Ubuntu CD can be booted to and you can test it out before you install anything.

The wireless is a Broadcom BCM4318 and that should be supported by the b43 driver but you'll need the firmware-b43-installer to get it working which will mean you need a cable plugged in for part of the installation process:

sudo apt-get update
sudo apt-get install firmware-b43-installer

Again you can test that in the LiveCD without harming the computer. You'll need to reload the driver though (rebooting isn't an option, for obvious reasons):

sudo modprobe -r b43 bcma
sudo modprobe b43

I do appreciate this is probably all Greek and does nothing to lessen the image that you need to use the command line to deal with Linux, but it's an old computer with only old, ropey drivers available... Sometimes a bit of copying and pasting is a necessary evil.


Try rfkill unblock all, the other command you've tried only lists devices, but doesn't unblock them.


Why won't Remmina connect to Windows 10 Remote Desktop?

I install Remmina-Next in Ubuntu 16.04.3 in one command line:

sudo apt-add-repository ppa:remmina-ppa-team/remmina-next ; sudo apt-get update ; sudo apt-get install remmina remmina-plugin-rdp

(after this reboot)

Remmina-Next offers the latest features and the package maintainers are attentive. Any issues you experience can be reported here:
https://github.com/FreeRDP/Remmina/issues/


Language switch doesn't work for a specific application (Chrome)

Perhaps its an extension issue.  Does the problem exist in incognito mode?

google-chrome-beta --incognito


I have problem with virtualbox with header 3.16.0-41-generic

As the error message says, install the header files via

sudo apt-get install linux-headers-3.16.0-41-generic

for the missing header files

or better, for an automatic install if you get a new kernel in the future

sudo apt-get install linux-headers-generic
sudo apt-get install linux-generic


/dev/sdb1 disk will mount if you update your kernal.Run the below command on terminal to update linux kernal,

sudo apt-get install linux-generic

These errors are caused mainly due to bugs in the kernal.Updating your kernal will solve this mounting problem.


How to find out if current shell was loaded by another shell?

A version that also works with shells other than bash is:

ps -p `ps h -p $$ -o ppid` -o comm=


don't want media drives to be displayed on desktop

Use (GNOME) Tweaks and disable the Mounted Volumes option in Desktop section.

To install Tweaks run the following command

sudo apt install gnome-tweaks


Ubuntu Port 80 from some hosts not reachable

The problem was an internal policy that somehow blocked port 80 and only allowed 443. Switching to https and it worked fine. I have no idea why it worked for some hosts though.


From Primus FAQ:

Q: Performance does not exceed 60 fps, I was getting more with optirun/VirtualGL.
A: This is the effect of vblank synchronisation. For benchmarking, you can use
   vblank_mode=0 primusrun ..., but in practice this will probably only
   waste power, as your LCD panel does not display more than 60 frames
   per second anyway.


You can enable buttons to hide the panel whenever you want - if you don't want to delete the panel altogether:

 →

To do this, right click the panel, select Properties and check Show hide buttons


How to transfer money from my Developer Account?

Yesterday I got clarified.

Each and every quarter money which we got by developing will be credited.

Say for Jan-March we will get the amount at the end of the April to our Paypal email ID which we have synced.

There wont be any limit. And it is done only on quarterly basis


Can't connect to internet via Ethernet, RTL8111/8168/8411

Looks like your computer knows you HAVE an interface, but isn't able to connect to your network. You can see that ifconfig has transmit and received some frames

RX packets 97  bytes 8206 (8.2 KB)

TX packets 570  bytes 92342 (92.3 KB)

So the transmission medium (your Ethernet cabling) is working and there are devices on the other side, but your PC might not be receiving an IP address from your DHCP server. A few things to try include:

Turn on DHCP. You can do this graphically by navigating to your Ethernet settings; depending on distro/release you should be presented with the option to obtain an IP address automatically. Or from the CLI, run:

sudo ifconfig enp2s0 down

sudo dhclient enp2s0

sudo ifconfig enp2s0 up

If it says something like "File Exists", that means it was already enabled.

Check your router/DHCP Server. Typically on a home network these are one in the same device. First step is to reboot it; if that fails you'll need to log in to its web interface and check that DHCP is enabled and that your client list isn't full, or your PC isn't somehow excluded.
Statically assign an IP address. Depending on what your network's addressing scheme is, you can manually assign an IP address with sudo ifconfig enp2s0 192.168.1.x 255.255.255.0. replace the first 3 sets of numbers in 192.168.1.x to match your network. For example, if your router has an IP address of 192.168.25.1, make your PC something like 192.168.25.30 (just make sure the address isn't already taken by another device on your network).


If you have a disk image on a BTRFS volume, you might need to turn off the Copy on Write feature, at least for your VM disk image.

CoW copies altered data to a new space (with its alterations) before modifying the file header data. On a VM this means shoving a HUGE file around for even the most basic change.

You can have CoW turned off on a disk image file if you copy (not move) it to a directory on which this command was run:

chattr +C directory

However this does not guarantee No_COW, as you may create Btrfs subvolume snapshot containing the image file (that will make it cow-only-once).


The source of you downloading the .iso file is legit. However, I would suggest you to create a bootable USB using the - Universal USB Installer software.

Download Universal USB Installer from the link: https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

Post making bootable USB, ensure that you have disabled both the Secure boot and PTT Security (in BIOS).

Once done, start the installation process and if you still face an issue, let us know.

Looking forward to your responses.

Regards.


No sound on Firefox and Opera, but works on Chrome

The problem was, firefox and opera were streaming the audio to HDMI rather than to laptop speakers or headphones. This is despite selecting built-in audio as output device in sound settings app. There was no way to know this from sound settings app or any settings in the problematic browsers.

I had to install Pulse Audio Volume Control (pavucontrol). In addition to showing streams from apps, it has option to switch output device for each stream. Changing the settings for firefox and opera solved the issue.


How do I get wireless working on an Asus X552VL?

I've found a solution to my problem. It was the module that wasn't loaded.

lsmod | grep asus

If so, please try a driver parameter:

sudo -i
echo "options asus_nb_wmi wapf=0" > /etc/modprobe.d/asus.conf
exit

Then i rebooted my system and everything was fine.


Get the router manual and find out the IP address from which the configuration page of the router can be accessed. The manual will also provide the default username/password.

Next, find the router's reset hole. Use a pin and reset it. Next connect your computer to the router. Switch on your router and the computer. Your computer will negotiate with the router and obtain an IP address.

Now, type the IP address of the router (as provided by the manual) in a browser. Enter the default username/password and login.

You should now be able to configure your LAN, WLAN and Internet settings.


Try --exclude:

grep -R --exclude='.*' <pattern> <dir>


Is there any way possible to Undo a Join Request to a team, on Launchpad.net?

After you're added you can immediately leave a group on Launchpad, if you wish to not be part of it.  There is currently no way to withdraw a request yourself, but you can always wait until the membership is processed and then leave immediately.


Ubuntu 16.04 on Hyper-V: Gave up waiting for root device

This turned out to be because I did not have Hardware Enablement (HWE) installed. I tried installing a fresh version of Ubuntu 16.04 on Hyper-V and ran into similar issues where the installer was unable to find a disk drive.

Installing a fresh OS with HWE solved the issue. I went back and installed HWE on my initial VBox VM (sudo apt-get install --install-recommends linux-generic-hwe-16.04). After converting the VMDK to VHDX and trying again, my issues were resolved.


From your htop screenshot, I can see you are running both Spotify and Discord. From my experience, these apps will use a lot of memory, even under Linux.
You might be able to resolve the issue by following the recommendations on their forums.
After looking a bit around I myself have not found anything that might solve the issue for the Linux version of Spotify. Though, I did find a solution for the Windows version where they disabled hardware acceleration here.
As both Spotify and Discord use chromium as a backend this solution might also work for Discord.


Installation of MATLAB 2013a in 13.10 trouble

Reposting the solution provided by the OP in the question

Alright! After doing a little bit of digging, I figured out how to do it! Here's the step by step method to (hopefully) solve the issue for anyone having the same problems:

If you have the .tar.gz file for MATLAB, be sure to right click it and extract it to folder (I did this in ~/Downloads).

Open terminal and type the following:

cd ~/Downloads/(matlabfolder)
sudo chmod +x ./install
sudo ./install

You will get an error that says:

eval:1:/tmp/mathworks_6114/sys/java/jre/glnxa86/jre/bin/java: Permission denied

Then, navigate to that directory and do the following:

cd ~/Downloads/(matlabfolder)/sys/java/jre/glnxa86/jre/bin
sudo chmod +x ./java

Then, go back to the install directory that you went to initially:

cd ~/Downloads/(matlabfolder)
sudo ./install

That should launch the MATLAB installer! If you find my instructions unclear, this is where I got my info!

For those who are wondering, I think that the chmod +x function basically makes the file you specify to be executable.

Hope this helped!


Possibilities:

Problem - Failing hardware:
Hard disk
RAM
Solution
Run a disk health and memory check from the Ultimate Boot CD.

Problem - Sub-par network connection:
Packages hang-up downloading or your connection gets mangled
Solution
Choose not to download updates or install binary/restricted/extras packages during installation


How do I get an UbuntuShape to transition (fade) between different images?

I've solved it well enough for my purposes now. The solution was to use two UbuntuImages. I made it into a reusable component:

import QtQuick 2.0

import Ubuntu.Components 0.1

Item {

    id: root

    state: "ubuntu"

    property alias source : img.source
    property alias alt_source : img2.source

    /* Signals to connect through. See onCompleted of mouseArea for an example */
    signal clicked

    function swapImage() {
        state = state == "one" ? "two" : "one"
    }

    MouseArea {
        id: mouseArea
        anchors.fill: parent
        Component.onCompleted: {
            mouseArea.clicked.connect(root.clicked)
        }
    }

    UbuntuShape {
        id: shape

        anchors.fill: parent

        image: Image {
            id: img
            fillMode: Image.PreserveAspectCrop
        }
    }
    UbuntuShape {
        id: shape2
        anchors.fill: shape

        opacity: 0

        image: Image {
            id: img2
            fillMode: Image.PreserveAspectCrop
        }
    }
    states: [
        State {
            name: "one"

            PropertyChanges {
                target: shape2
                opacity: 1
            }
            PropertyChanges {
                target: shape
                opacity: 0
            }
        },
        State {
            name: "two"

            PropertyChanges {
                target: shape
                opacity: 1
            }
            PropertyChanges {
                target: shape2
                opacity: 0
            }
        }
    ]
    transitions: Transition {
        NumberAnimation {
            properties: "opacity"
            duration: 1000
            easing.type: Easing.InOutQuad
        }
    }
}

I put that into a file called UbuntuShape.qml and then used it from another file like this

import QtQuick 2.0

import Ubuntu.Components 0.1

MainView {

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

    Page {
        title : "Erm"

        UbuntuSwappableImage {
            anchors.fill: parent
            anchors.margins: units.gu(10)

            source: "http://design.ubuntu.com/wp-content/uploads/ubuntu-logo14.png"
            alt_source: "http://design.ubuntu.com/wp-content/uploads/canonical-logo1.png"

            onClicked: swapImage()

        }
    }
}

I imagine it should provide more hooks for callers to change stuff but it's Good Enough™ for me for now.


How to set a shortcut for "Always on Top" for window?

It should work on every Ubuntu OS since version 9.04 without installing anything, modifying of creating any shortcuts.

Try Alt + Space,  T

Alt + Space  as the first shortcut brings up the right-click mouse menu
T selects the "Always On Top" function.


Is there a list of all files that affect PATH?

help.ubuntu.com has a comprehensive page about environment variables, of which PATH is just one.

The files mentioned there are

for the session of one user

~/.pam_environment
~/.profile
bash only

~/.bashrc
~/.bash_profile
~/.bash_login

for all users on the sytem

/etc/environment
/etc/profile.d/*.sh
for bash only

/etc/bash.bashrc


It is possible to run MicroK8s in LXD with the right profiles. Have a look at https://github.com/ubuntu/microk8s/tree/master/tests/lxc . Our testing across different distributions uses lxc containers.

Note that the profiles above grant too wide privileges. This is something we intend to address in the future.


Using scripting to construct a find command, one could do something like (Read man find;man bash):

# Goal: find $dir -name 'google -o -name 'amazon' -o -name 'facebook' ... -print
#
dir="starting directory"
#
names=""
for name in $(cat client.txt) ; do
    if [[ -z "$names" ]] ; then
        names="-name '$name' "
    else
        names="$names -o -name '$name' "
    fi
done
# use 'eval' to expand the 'names' variable at the right time
eval find $dir $names -print


Ubuntu One Music listen offline on iPod Touch

I'm one of the developers of the U1 Music Streaming app for iOS.

@Frank is right. Currently, the only way to download music for offline listening is at the album and playlist level.

And I agree that it's not that intuitive. We have roadmap plans to improve the UI considerably, and in particular make it much easier to download music for offline use throughout the app.


google chrome suddenly started to misbehave / crash

Just removed Adobe Flash and it started working as usual


Can two different OSs share a root partition?

Simple Answer

No.

Explanation

A Unix-type OS (including Ubuntu, or any other Linux-based OS) is defined largely by files that are in fixed locations relative to the root (/) directory, such as /etc/fstab (which describes the partitions) and key binaries in /bin and /sbin. Every distribution has its own unique set of files in these locations. (In the case of some files, like /etc/fstab, they're customized for a particular installation; but that just means that two OSes that shared the files would require identical settings, which further means they'd be identical and therefore not really two OSes.) These key files are mostly located in directories off of the root (/), but they're in directories that may not be mounted from separate filesystems (such as /etc, /bin, and /sbin), so the fact that they're in directories doesn't matter. In a very real sense, the root (/) filesystem is the OS; it can't be shared. (You can mount one distribution's root directory elsewhere in another distribution, but that's not sharing it in the sense I believe you meant.)

The Technical Way to Worm Out of the Above Answer

Your question asked about a shared "root partition." (Emphasis added.) My answer relates to directories (or, by implication, filesystems). These need not be exactly equivalent. Most notably, if you use the Logical Volume Manager (LVM), multiple filesystems can share a single partition; they'd just be in distinct logical volumes (LVs). Thus, you can install multiple Linux distributions in a single LVM physical volume (PV; that is, partition). I don't think this is what you meant, though; I think you were asking about a shared root (/) filesystem/directory despite the fact that you used the word partition.

EDIT: An Even Weirder Way To Get It To Work

Another way to get two distributions to share a root (/) partition has occurred to me: The Linux kernel runs a program called init to handle startup tasks. It's possible to tell the kernel to use another program by passing the init= kernel option, as in init=/foo/bar to have it run /foo/bar. In principle, you could use this option to pass one distribution's kernel a non-standard init program that, in turn, looks for support programs in non-standard locations. This approach would require creating an entirely new distribution, or at least modifying some key components -- maybe to install everything it needs in some directory, like /myweirddistrib, /myweirddistrib/etc, /myweirddistrib/sbin, and so on.

Although this should work in principle, in practice it would take a lot of work. Many programs include either hard-coded default paths or rely on default paths set in configuration files, and you'd need to modify all of these to get it to work, which means that you would not be able to get an "off-the-shelf" distribution to work; you'd have to create the distribution yourself. You might be able to use a standard distribution as a base, but you'd need to rebuilt many (maybe most or all) packages. Anything that was not modified would end up using the "native" /-resident distribution's files, which could result in some weird problems. Thus, this approach is more of a theoretical idea than a practical suggestion.


You're using sudo to get a root shell. This does not mean that you have enabled the root account.

To enable root login, you have to set a password for root:

sudo passwd root

Then you have to edit your sshd_config

 sudo editor /etc/ssh/sshd_config

Change

PermitRootLogin prohibit-password

to

PermitRootLogin yes

Exit the editor, and restart sshd with

sudo systemctl restart openssh-server

Note that this is not recommended. I can't really think of any reasons why you need root access via ssh. Commands can be prepended with sudo, and sudo configured for passwordless use. File copies? You can usually modify the permissions of the destination, so that you don't have to be root.


How to remove Ubuntu from dual boot system with Windows?

I don't see any ext2 ext 3 or ext4 filesystems which would be a regular Ubuntu install, this leads me to wonder-did you install Ubuntu using Wubi???

If so you  can just remove it with your Windows add and Remove Programs window, It should be listed as "Ubuntu"  as far as Windows is concerned it's just another program and can be removed

Also as the comment to your question said and I also belive, the 12.04LTS that is showing is an Ubuntu install CD.


Please help me recover from this. I can't access my files nor Internet connection

To begin, please try and start a TTY session by clicking the buttons crtl + alt + f3 concurrently. After the console pops up, please login in via entering your username and password. Then, depending on whether you use gdm or lightdm, restart the display manager by running sudo service lightdm restart or sudo service gdm restart... After running either command the display manager will restart and you should then be able to login.


How to install Office 2010 32 bit on Ubuntu 18.04?

Faced the same problem with wine/POL during recent office 2010 installation. I solved it in a following way:

1) Using play on linux wine manager I installed wine 3.8 (32-bit)

2) Created new 32-bit virtual disk with wine 3.8

3) Installed riched20 dotnet20 msxml6 there using pol component setup

4) Ran exe with office setup from this disk


Just add #include "http_config.h at the end of your include list and the example compiles fine:

#include "httpd.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_request.h"
#include "http_config.h"


Firefox with two different version on Ubuntu 16.04

It is obvious the mentioned Firefox icon will launch the 54 version, because the launcher is pointing to Firefox 54 executable. Whereas the version 57 you downloaded located at extracted .jar file.

Assuming you want to running multiple version, try creating launcher for the second existing version. So it can be execute from Unity launcher.

Press Alt + F2, type gedit on the field. Then paste following text.

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/path/to/unzipped/firefox
Name=Firefox 57
Comment=comment here
Icon=/path/to/icon.png

Fill the required field, save it as Firefox 57.desktop. Don't forget to make it executable: chmod +x Firefox\ 57.desktop.

For more details, consider read http://forums.mozillazine.org/viewtopic.php?f=7&t=2400491.


Q1 - from [Administration][Disk Utility], Ubuntu should give you a view of what it knows about partitions, including partitions not presently mounted.
DON'T try to change the partition which is mounted as /
Clicking around this screen, one may select and format unused partitions, create new partitions in unused space, or reformat a partition with a filesystem such as ext4 and (optionally) a mount point.  I prefer to do something else with storage partitions; not mount them at all unless I need them for something that day.

I've observed some override during default installation of what I thought I asked Ubuntu 10.04 and 11.04 to do with partitions, also Edubuntu10.10  I am not sure why that happened.  If your machine is for long term stable use then I'd prefer Ubuntu 10.04 because of its long term support and try out new stuff such as version 11.04 as a virtual machine (if your computer has the spare GB of RAM and spare 10GB of hard drive space for doing such trials).

When I installed Ubuntu 10.04 whose partition manager was not doing what I thought I had asked it to, I started again from scratch, prepared part of the disk by firing up an Ubuntu 9.10 (32bit) live CD, which I trust, and used [Administration][Disk Utility] to set up the master boot record, create partitions such as /boot, /home, / and SWAP
and formated as ext4,ext4,ext4 and SWAP.
Rebooting the live CD, and this time selecting 'install Ubuntu', subsequent option to 'custom' choose where to install has worked properly.  At the time of writing, I have noticed 'LVM' formatting options in newver Ubuntu and Fedora versions which seem to be a distraction when setting up a standard home system.

Q2  How to get installation of Ubuntu into your choice of partitions
When it offers a choice between standard or custom(advanced) partitioning, that is where it is meant to see all partitions on the hard drive.  Expect numbering similar to sda for the first physical hard drive, sda1, sda2 .. for partitions which you might be more used to seeing labelled as C,D .. under Windows.  It is best to recognise which is what from the sizes of them.  It should give you choices at this stage to format partions.  I avoid making changes to the partitioning here but might type or select the mount points for those partitions which I want to use.

If your 11.04 CD never sees your previously preparated partitions then reboot, select 'try Ubuntu without making changes to your computer', and see what you can see under [Administration][Disk Utility].  Running as a live CD in RAM, the whole hard drive is not mounted so is unlocked to formating tools, which can be convenient so long as you are not the type to accidently wipe a C: drive because it had been labelled 'hda1'.  Recognise your partitions by size, and you'll be ok.


Need help for installing windows and ubuntu

There are thousands of questions about it. After you install Ubuntu, you should open Terminal (Ctrl+Alt+T) and run the command

sudo update-grub

Then GRUB (the Ubuntu boot manager) will search in all of your partitions and will create menu entries with the OSs it finds.

When the update-grub command is done, reboot and you should see Windows in your GRUB menu (if you did not format your Windows partition, of course).


Turns out this is an issue specific to Dell xps models. By resetting the BIOS configuration I turned the SATA configuration from AHCI to RAID. Switching it back allows my filesystem to be found and everything worked out!

So I suggest in general if you can find our filesystem with grub, but it won't boot and commands like fdisk can't find your filesystem, it is probably because they use a different convention RAID vs. AHCI, which as far as I understand are just different programs that assign virtual locations in your disk space.


How to fix "Server Not Found" on my home wifi while using my laptop with Ubuntu Cinnamon?

have you tried another device on your network ?

post your network config by pressing

Ctrl + Alt + t : open a terminal .
paste and copy below by marking and pressing Ctrl + c and paste by rigth click (mouse / trackpad ) paste on the terminal
ifconfig -a > /home/your_UserName/Desktop/networkConfig.txt
 :this will put your network config on a text file called networkConfig.txt on your desktop

attache the file

provably you have some problem with the dns .

have you tried a traceroute to google.com ??
in the same terminal
copy and paste
traceroute google.com

do the same with the file but use other name like networkTrace.txt


IP/DomainName of juju master or slaves changes

That solves the problem:

https://gist.github.com/chuckbutler/542b9a62321f3e806daa

Restoring connectivity to the state server from your client workstation

You will need to edit the jenv that juju created for the environment during juju bootstrap which will be located: $JUJU_HOME/environments/<environment_name>.jenv

The jenv has a yaml file format, so be familiar with that so you know what to look for:

state-servers:
- 173.173.4.187:17070
- 172.187.3.21:17070

Each line item below state-servers will need to be updated with the new state servers address. You may have one or more listed here depending on if you did juju ensure-availability - which will turn a single node state server into a High Availability state server.

Restoring connectivity to the state server from juju-agents

There will be 2 or more configuration files to edit per agent.

1 for the machine
1 for each unit-agent of service you deploy to the machine

Given the scenario:

juju deploy elasticsearch

You will have 2 files to edit - the Machine conf, and the elasticsearch conf. If you have co-located any services on the machine you will have an additional config per service added to the machine. (Dont forget about KVM and LXC containers, as this also increases the number of conf files to edit, and will reside in that services container)

You will find the Machine configuration in /var/lib/juju/agents/machine-1/agent.conf
You will find the service configuration in /var/lib/juju/agents/unit-elasticsearch-0/unit.conf

then kill jujud and let upstart restart it


Is it possible to attach a script to a PNG or JPG or BMP or other files on Ubuntu and execute that script.

No. Differently from Windows Linux/Ubuntu extension are only for us humans. Linux/Ubuntu checks the 1st few bits to determine the "file signature".

Adding a script to a file ending on .png would not make it an image. It would make it a script ending on .png.

  for example it's possible to attach a JS code to a PDF file

See the Adbobe JS API reference.


How do I add interface aliases using Network Manager GUI?

In Network Manager, change the IPv4 settings for the network configuration from "Basic settings" to "Additional addresses" and add as many aliases as you like in the list. See the screenshot below.

While the image is taken on KDE, the GUI should look similar on other desktop environments.

For example, Ubuntu GNOME 14.04:


No Partition to Select - Ubuntu 18.04.3 Fresh Install

Remove /dev/sda1 partition and create a new ext4 partition.

It is unclear why you selected ext3. Most likely Ubuntu can't be installed on ext3 now because it is obsolete.


cannot type in vi when trying to edit the interfaces file

Maybe you are expecting the coziness of Vim's non-compatible mode, try using nano instead:

sudo nano /etc/network/interfaces

After getting your Internet connection, you can install vim if you feel more comfy with it.


How can I solve this dependency problem installing Chrome on Ubuntu 12.04?

basically there is no way to really resolve that other than trying to force the install .. basically it needs libgnome-2.0 and you have 2.32.1-5

There is a good chance that if you forced it to install it would probably work with the 2.32 version and things would be fine but ... it is not guaranteed. Since it is added as a repository and you  don't have the .deb file .. you may be able to find the .deb file at /var/cache/apt/archives/ if you can find it there then you can try

sudo dpkg -i --force-depends-version /var/cache/apt/archives/<name of chrome.deb>

This will turn dependency version problems into warnings and it should install but as I said .. no real guarantees that it will  function properly


Configure a command line to execute on log in

You can add the command to your startup applications: Dash > "Startup Applications" > Add the command:
/bin/bash -c "sleep 15&&synclient VertScrollDelta=-120 && synclient HorizScrollDelta=-120"

The break of 15 seconds is to allow the desktop to load before the settings to change (else the command would break).
On next login, it should work (after 15 seconds). You can experiment a bit with the break. Probably the 15 seconds is on the save side.
Alternatively
You can (in general) create an autostart item manually (which gives you full control)
[Desktop Entry]
Name=Touchpad settings
Exec=/bin/bash -c "sleep 15&&synclient VertScrollDelta=-120 && synclient HorizScrollDelta=-120"
Type=Application

Copy the code above, paste in into an empty file and save it as:
settings_touchpad.desktop

In ~/.config/autostart. On next login the command in the Exec= line will be executed.


Is it ok to run with unknown video device?

Nope!  If it works, it works.

The only thing you might want to consider is that your card may be able to perform better with a specific driver.  With that card, I think the consensus view is to use the radeon driver.  You can install it with:

sudo apt-get install xserver-xorg-video-radeon

It's probably already installed; Ubuntu does most of the work for you in this respect.  You can run that for a little peace of mind though!


sudo dpkg-reconfigure clamav-freshclam should do the trick!!


Do I need a [MyFiles] header for each path entry?

I assume you're talking about Samba, given you've mentioned the testparm utility.

The section headers in the smb.conf file represent the different shares Samba will provide.  So if you've added a [MyFiles] section, then Samba will share it as \\hostname\MyFiles to Windows machines.

Each share serves the files from a single folder, so if you want to share two different folders you will need to configure two shares in the smb.conf file (with different section names).


E: Malformed entry 11 in list file /etc/apt/sources.list (Component)

This looks like the problem:

deb-src http://55.archive.ubuntu.com/ubuntu/ xenial-updates

You're missing the component section of this line, it should look something like:

deb-src http://55.archive.ubuntu.com/ubuntu/ xenial-updates main universe

Your sources.list is missing many important sections, including security updates, I recommend you leave the /etc/apt/sources.list alone and put your customizations in a .list file in /etc/apt/sources.list.d/ so you don't break the default file.

See also:

How do you tell apt to use files in /etc/apt/sources.list.d
Do files at /etc/apt/sources.list.d need to have an extension '.list'?


Does Canonical pay application developers?

All of the default applications in Ubuntu are free software, and in most cases, certainly in all cases that ship on the CD, that means they are not for sale.

If Canonical did pay, it would be a gift. They ship software under the same licenses the software itself ships with. So, in most cases

there just isn't any product or service that Canonical could pay for, even if they wanted.

However, Canonical and other Linux distributors do sponsor by employing developers to work on software, of course. And, like TheX says, they contribute to the software itself. Which is the whole point.


Not sure if this is the only way, but it got mine working.

For me the problem was using Google Chrome and I've heard, Chromium, too.

(Open in Terminal): You'll need to hardcode Mozilla Firefox in the WebHTTrack script:

sudo vi /usr/bin/webhttrack

Modify the first line into:

BROWSEREXE="firefox"

*Hope this helps! If not, reference this page: "(Can not start webhttrack)".


Found the solution to this on my own. In gsettings, there are settings under Gnome > Desktop > a11y > Magnifier that aren't on the default settings panel in Universal Access.

There are two settings, follow focus and follow carot, that I changed to resolve this issue. You can use dconf-editor to edit these settings.


System boots to a black screen after upgrade to 11.04

For Maverick users who have NVIDIA and/or ATI graphics together with activation of graphics drivers in the Additional Hardware Window are likely to suffer from the issue as described in the question.  These drivers (especially nvidia) create a file called /etc/X11/xorg.conf.  This file gives details about resolutions and describes the actual driver in use.

However, during the upgrade to Natty, the file remains in place - but the proprietary driver from NVIDIA is replaced by an open-source driver called nouveau.  Since the file is still in place, the underlying graphics system called "X" still tries to invoke the old NVIDIA driver because its relying on the instructions in the xorg.conf file - the NVIDIA driver is not there resulting in black-screens etc.

For these users, the suggested route is to remove this file BEFORE upgrading.

However, this can be overcome by booting from a Live CD - the desktop CD.

Start a terminal and type

gksudo nautilus

then navigate to the folder /etc/X11/xorg.conf on your local hard-drive and either rename it or remove it.


Okay execute this command in Terminal :

sudo rm -rf /usr/local/src/cgminer*


Wired connection only available when charging

Because the Ethernet LAN Adapter draws electricity, power management software will turn it off to save electricity when you are running on battery. This makes sense because if you can plug in Ethernet logic dictates a wall outlet is close by to plug in your laptop charger too.

I found this general article about power consumption:

  Bluetooth power consumption will range from 2-24 mW depending on the
  amount of activity; Wi-Fi consumes between 10 mW and 800 mW
  (transmitting full bandwidth); Wired ethernet consumes 50mW to 1W
  (full-duplex gigabit ethernet at full load).

Another user encountered a similar problem to you in Redit:

Can't get ethernet up with TLP in battery mode

Since you are using tlp you can override the setting in your configuration file (/etc/default/tlp). What the Redit user did was add:

RUNTIME_PM_BLACKLIST="00:1f.6"

Of course that is the address of their LAN card and yours will probably be different. Visit the thread for more details on how to obtain your card's address.


Windows 10 won't boot anymore after updating from ubuntu 19.04 to 19.10

First you need to install and run boot-repair:

Then check the boot-repair report. If the bottom of the report tells you:

For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

Boot into Windows by changing the BIOS boot order. See the section in link below on Access BIOS/UEFI:

The computer didn't automatically boot from USB,

After successfully booting into windows via BIOS/UEFI boot order override, open a command prompt as administer and run the bcedit command above.

Then reboot back into BIOS/UEFI and reset Ubuntu to top of boot order.

Also note boot-repair can create about 7 custom entries to boot Windows and Ubuntu from UEFI. In my experience they won't all work. After you fix the booting issues see this answer:

Boot-Repair created too many grub menu entries for Windows


How to install jsconcpp in ubuntu 14.04 for C++ development?

Your installation with cmake fails because you are downloading a very old version of jsoncpp from SourceForge , a version that actually does not use cmake. The file README.txt with the 0.5.0 tarball has the details:

* Building/Testing:
 =================

JsonCpp uses Scons (http://www.scons.org) as a build system. Scons
requires python to be installed (http://www.python.org).

Newer versions of jsoncpp are seen on GitHub (latest stable version is 1.7.3) and these actually do use cmake to build.

However a reasonable version exists in the Trusty Repositories and the following command will get you jsoncpp 0.6.0:

sudo apt-get install libjsoncpp-dev libjsoncpp0

Here are the details of the package on my system:

andrew@corinth:~$ apt-cache policy libjsoncpp-dev
libjsoncpp-dev:
  Installed: 0.6.0~rc2-3ubuntu1
  Candidate: 0.6.0~rc2-3ubuntu1
  Version table:
 *** 0.6.0~rc2-3ubuntu1 0
        500 http://au.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status
andrew@corinth:~$

If you need a newer version this can be built from source but perhaps this version is enough for your purposes...


reverting from executing chmod by mistake

You did sudo chmod 600 / swapfile which set the permissions of / to drw------- (equivalent to 600). Luckily, you only changed the permission properties of the / folder and not of any underlying folders. That would have happened if you included the -r flag.

The default permissions of / are drwxr-xr-x (equivalent to 755). As root, you have write permission in / and therefore you can simply change the permissions back with:

sudo chmod 755 /

And you will have the original situation back.

The command that you accidentally ran also tried to change the permissions of the file swapfile in the current folder, which probably doesn't exist.


Monitor displays "signal out of limits" message after installing catalyst/fglrx

If any software (driver too) is closed source (like what you installed) it isn't open to reviewing or improving anything.Closed software can be reverse engineered but it is problematic (legally too)

If you don't have to use closed source software then don't. When it is closed source no one knows what the code is except from who made it, so this is also a security issue.

Set the correct resolution in GRUB to fix this issue

You can edit your /etc/default/grub to set the correct resolution.

Uncomment the line that contains GRUB_GFXMODE (remove#) and write your resolution such as 3840 x 2160 x 32. The line should then look like this: GRUB_GFXMODE=3840x2160x32

The fist two numbers are the resolution the third is color depth. Also set the correct screen refresh rate in GRUB.

  You can use Ctrl+Alt+T to open a terminal and run sudo nano /etc/default/grub, then do the edit. Finally press Ctrl+O to save and Ctrl+X to leave. sudo update-grub will apply the changes.


where is the place downloaded program from apt-get

In principle, a debian installer is nothing but a scaled model of your system, from the perspective of the root directory. It contains folders, exactly as it is on your system and "projects" the contents of a .deb file on to your system.

There are general rules of where to install what, for example: binary files in /usr/bin/ , libraries in /usr/bin or /usr/share, desktop file in /usr/share/applications and so on (see also here). If you are interested, you should look into a .deb installer to see what it installs where.


Why do people still type "vi" at the command prompt rather than "vim"?

A freshly installed Ubuntu system has a vi command and does not have a vim command. In this configuration, vi is a symlink that ultimately resolves to vim.tiny, as you mentioned. However, if one of the other packages that provides a Vim binary such as vim.nox or vim.gtk3 (provided by the vim-nox and vim-gtk3 packages) is installed, then vi, as well as vim, will be symlinks that ultimately resolve to that more fully featured binary. You can reconfigure that but people rarely do. Running vi is thus a fairly reliable way to open a vi-like editor.

As for why people sometimes call it vi, you're right that this is somewhat imprecise. Part of this is typographical. It's a vi command, after all. Part of it is that there is not necessarily a better name. The vi-like editor that provides the vi command need not be Vim; there are various other vi-style editors that one might configure for that even in Ubuntu, not to even get started on other systems. (You asked this question on Ask Ubuntu, so I presume you're interested in this mainly in the scope of Ubuntu.)

But part of it is that the vi command in Ubuntu is one of numerous commands that have a traditional name but are really a different program more properly known by some different name. For example, people sometimes call /bin/sh the "Bourne shell." That isn't correct on most Unix-like systems these days, nor is it ever correct on Ubuntu or other GNU/Linux systems. When speaking generally--and accounting for how it's provided by different shells in different OSes and that an administrator can change what shell provides it--it would be better to say the "POSIX-compatible shell," or, perhaps even better, "shell that mostly tries to comply with POSIX requirements for sh, at least when it sees that it is named sh."

Just as the Bourne shell was not compatible with the older Thompson shell and yet was called sh, and just as POSIX shell implementations aren't compatible with the Bourne shell yet are called sh (or are, in any case, often run through a symlink called sh), many systems including Ubuntu ship a command that isn't the original vi editor yet is called vi. You're right that this is not really vi--unless what one means by that is whatever editor may be run by entering the vi command, which is what people often mean.

Incidentally, as you're likely aware, vim.tiny does behave in a more traditional manner--and it has a more traditionally constrained feature set--than commands like vim.nox. So that is another way in which the vi command in an Ubuntu system that hasn't had additional Vim-related packages installed is like vi.


I can't tell which dev/sda/ file is my external hard drive to install Xubuntu on

The disk names in Linux are alphabetical. /dev/sda is the first hard drive (the primary master), /dev/sdb is the second etc. The numbers refer to partitions, so /dev/sda1 is the first partition of the first drive.
It is likely that your external drive will not be /dev/sda, that is more likely to be the internal drive of your machine. To find out the name of your (attached) USB drive, run sudo fdisk -l.
Example output:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4b66b5d5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63       80324       40131   de  Dell Utility
/dev/sda2   *       81920    30801919    15360000    7  HPFS/NTFS/exFAT
/dev/sda3        30801920   194643539    81920810    7  HPFS/NTFS/exFAT
/dev/sda4       194643601   976773119   391064759+   f  W95 Ext'd (LBA)
/dev/sda5       194643603   198836504     2096451    c  W95 FAT32 (LBA)
/dev/sda6       342951936   960387071   308717568   83  Linux
/dev/sda7       198840320   342949887    72054784   83  Linux
/dev/sda8       960389120   976773119     8192000   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x484882da

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63   976768064   488384001    7  HPFS/NTFS/exFAT

That command will list all partitions of all connected drives, it will probably include some /dev/sdbX partitions as well and those are the ones you want. In the output above, my external USB drive is sdb and has the partition sdb1.
You can also see the device name of your USB drive with lsblk:
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0  39.2M  0 part
├─sda2   8:2    0  14.7G  0 part
├─sda3   8:3    0  78.1G  0 part /winblows
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0     2G  0 part
├─sda6   8:6    0 294.4G  0 part /home
├─sda7   8:7    0  68.7G  0 part /
└─sda8   8:8    0   7.8G  0 part [SWAP]
sdb      8:16   0 465.8G  0 disk
└─sdb1   8:17   0 465.8G  0 part
sr0     11:0    1  1024M  0 rom

Again, in the example above, sdb is my external USB drive.


How to create multiple soft links to one file?

Check the man page -- you can only specify one destination. You'll have to loop:

for destination in /location/one /location/two ...; do
    ln -s ~/Desktop/foo "$destination"
done


Boot directly to a steam big picure session without pw

Check https://wiki.ubuntu.com/LightDM

etc/lightdm/lightdm.conf

for

autologin-user=username
autologin-user-timeout=delay

and

user-session=name

Where name is the name of the session .desktop file from /usr/share/xsessions/*.desktop.


Where to copy autoinstall.yaml file in iso image in Ubuntu 20.04 for auto installation

You need to create a directory (for example cidata) and in side two cloud-init format (YAML) files meta-data and user-data.  The ubuntu format is detailed https://ubuntu.com/server/docs/install/autoinstall
Then you build your cidata ISO image as..
sudo genisoimage  -output cidata.iso -volid cidata -joliet -rock cidata/*
Then you install that on a USB drive..
e.g.
sudo dd bs=64m if=cidata.iso of=/dev/
Then when the 20.04/20.10 installer boots up it will read the drive automaticly and use its settings..


Can't move/snap Nautilus window to occupy left or right half of the 1366x768 screen - is it just me?

It would appear that this has something to do with the sidebar. My guess is it's a bug.

If you turn the sidebar off, the snap starts working as it should. Try the following commands from a terminal window.
Edit: The commands I've written out below hide and show the sidebar which can more easily be accomplished (as pointed out in comments) by simply pressing F9.

Turn the sidebar off:

gsettings set org.gnome.nautilus.window-state start-with-sidebar false

Turn the sidebar back on:

gsettings set org.gnome.nautilus.window-state start-with-sidebar true

While this is an answer, it's more of an option than a solution ... and probably not the solution you are looking for. It's certainly not the fix I or most other people would want, but it gives you a direction as far as reporting a bug!


How to use integrated Intel and dedicated nVidia graphics to power different monitors?

This feature is unsupported by nvidia/amd and as such you will need to manually configure xorg.conf in order to get it to work.


How can I download and install saslauthd?

You are probably looking for sasl2-bin. You can install it via synaptic or by using the terminal:

sudo apt-get install sasl2-bin


Settings reset every time laptop is restarted

This can have multiple reasons.

Did you migrate from a different Ubuntu/Linux installation?
Is the content of your home directoy, especially the config files and everything in .config/ still there when you restarted?

ls -al $HOME

ls -al $HOME/.config
Is your $HOME directory or /home mount point write protected or belongs to a different user? Check via, if everything is marked as rw.

mount

  => /dev/mapper/vgpool-home on /home type ext4 (rw,relatime,data=ordered)

ls -al $HOME

  drwx------ 42 YOUR_USERNAME YOUR_USERNAME   4096 Apr 17 08:09 .config

ls -al /home


I am having many problems with 2.1, compared with previous editions of OGRE as well.  The tutorials used to just plain work . . .

Anyway, to solved the specific error you state, find SdkTrays.h (mine is in /usr/local/include/OGRE and change the includes for the following to add /Overlay

#include "Overlay/OgreOverlay.h"
#include "Overlay/OgreOverlaySystem.h"
#include "Overlay/OgreOverlayManager.h"
#include "Overlay/OgreBorderPanelOverlayElement.h"
#include "Overlay/OgreTextAreaOverlayElement.h"
#include "Overlay/OgreFontManager.h"

I am on Linux mint but they are similar enough,


Second blue lock screen showing after upgrade to 18.04

As per comments, gnome-screensaver is interfering and should be uninstalled.

After uninstalling, you should reboot your system as the screensaver is still running in memory.

Probably a logout is enough, but I'm not sure if gnome-screensaver gets killed on logout, so a reboot is safer.


I can't understand you well, but I think that you're trying to say is that you want to make your USB work like an Ubuntu portable installation.
Try to follow this guide, but set the "space used to preserve files across reboots" the space you want to have.
(e.g. if you want to have 1 GB space, put there 1024)
I hope this works.


Can the Files application in 18.04 search across links?

It can follow them while searching but is not smart enough to follow them in a search argument. If you see the screencap below, the links shown in the terminal take it back up three directories as shown in the upper part of the search results.

This search was started in Files at /.


Zoom like frame appeared. How to disable it?

Today I decided to record some screen area using vokoscreen. The same frame appeared.

It seems likely the frame in my question have been produced somehow by a vokoscreen without a vokoscreen being launched by me. Looks like it was a bug.

So I could get rid of it by vokoscreen launching and by switching to Fullscreen as I think.


Mark ext4 blocks as bad manually without trying to read/write

The proper way to badblock your disk is either:

sudo e2fsck -fck /dev/sdc1 # read-only test

or

sudo e2fsck -fcck /dev/sdc1 # non-destructive read/write test (recommended)

The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.

The -fcck parameter...

   -f     Force checking even if the file system seems clean.

   -c     This option causes e2fsck to use badblocks(8) program  to  do  a
          read-only  scan  of  the device in order to find any bad blocks.
          If any bad blocks are found, they are added  to  the  bad  block
          inode  to  prevent them from being allocated to a file or direc‐
          tory.  If this option is specified twice,  then  the  bad  block
          scan will be done using a non-destructive read-write test.

   -k     When combined with the -c option, any existing bad blocks in the
          bad blocks list are preserved, and any new bad blocks  found  by
          running  badblocks(8)  will  be added to the existing bad blocks
          list.


What is the difference between grep apple file and grep "apple" file?

The quotation marks have an effect on what characters your shell considers special and to have a syntactic meaning. In your example this doesn't make a difference because apple contains no such characters.

But consider another example: grep apple tree file will search for the word apple in the files tree and file, whereas grep "apple tree" file will search the word apple tree in the file file. The quotation marks tell bash, that the word space in "apple tree" does not start a new parameter but shall be part of the current parameter. grep apple\ tree file would produce the same result, because \ tells bash to disregard the special meaning of the following character and treat it literally.


Wireless network disabled on a Broadcom 4312

You might have the switch off, or you might have turned the WiFi off in Windows using the Function keys.

If this is not the case, have you installed the restricted drivers for your card? To do this, search for 'additional drivers' in your Dash and/or Preferences. Make sure you have it hooked up to the internet by a lan cable to download any firmware, etc.

If that doesn't help, then disable the restricted drivers in Additional Drivers and install firmware-b43-installer.


Can i configure ubuntu to append a domain to the end of an ssh hostname request?

Probably you already solved this, but maybe later it could help someone: you don't need to mess with your resolv.conf, just can use something like this in your ~/.ssh/config:

Host vded-*-001 test-*-something-fixed-*
        HostName %h.servers.company.net
        User someusername

So later you can just use:

ssh vded-alotofstuff-001
ssh vded-somethingels-001
ssh test-02-something-fixed-somethingelse


The SFTP server has to do with the SSH server.

If you connect to a directory on the server, make sure that the user you connect with has the permissions of that directory.

By default you would have no problem with that user's HOME directory.
If you have problems, verify that you have not overwritten the permissions in that HOME directory.


Unable to use Ubuntu 19.04 on Asus Vivobook Pro (N580VD)

I just found an answer to my problem:

Disable secure boot.
Load Ubuntu from the USB, select "install Ubuntu" in GRUB and press "e".
Change "Quiet splash" to "nomodeset" and press F10.
Install Ubuntu with Nvidia drivers.


Due to symbolic link failures, the directories got nested 48 levels deep. I started deleting at level six and then continued outwards.


Geometric measuring tools on screen for PDF documents

Get geometry info on screen

Although the solution below should quickly give you all the info you ask for, not sure if the way the info is presented will fully satisfy your description.

It is an edited version of this answer, now extended with a few extra calculations, now including the angle to an imaginary horizontal line, as well as the length of the line you draw, in (equivalents of) px:

The script

#!/usr/bin/env python3
import subprocess
import os
import math

home = os.environ["HOME"]
area = home+"/"+".measure_area.txt"

def get_pos():
    pos_data = subprocess.check_output(["xdotool", "getmouselocation"]).decode("utf-8")
    return [m[2:] for m in pos_data.split()[:2]]

def confirm():
    get = subprocess.check_output(["xrandr", "--verbose"]).decode("utf-8").split()
    for s in [get[i-1] for i in range(len(get)) if get[i] == "connected"]:
        br_data = float(get[get.index("Brightness:")+1])
        brightness = lambda br: ["xrandr", "--output", s, "--brightness", br]
        flash = ["sleep", "0.1"]
        for cmd in [brightness(str(br_data-0.1)), flash, brightness(str(br_data))]:
            subprocess.call(cmd)

if not os.path.exists(area):
    with open(area, "wt") as measure:
        measure.write(str(get_pos()))
    confirm()
else:
    second = get_pos()
    with open(area) as first_m:
        try:
            first = eval(first_m.read())
            w = int(math.fabs(int(second[0]) - int(first[0])))
            h = int(math.fabs(int(second[1]) - int(first[1])))
            l = str(round(math.sqrt(pow(w, 2) + pow(h, 2))))
            arc = math.degrees(math.atan(w/h))
            angle = str(round(90-arc))
            command = [
                'zenity', '--info', '--title', 'Area Size', '--width', '200',
                '--text', "rectangle: " + str(w) + 'px x ' + str(h) + "px"
                "\nline length: " + l + "px\nangle: " + str(angle) + "°",
            ]
            #---
            confirm()
        except SyntaxError:
            text = "Please try again, there was an error in the data"
            command = ['zenity', '--info', '--title', 'Please try again', '--text', text]
        subprocess.Popen(command)
    os.remove(area)

How it works

The script calculates the angle to an imaginary horizontal line, the length and the area size, between two locations of the mouse pointer.

It works as followes:

Place the mouse pointer in the first position (without clicking)
Press the key combination of your choice (see further below)
Place the mouse in the second position (again without clicking)
Press your key combination again. A Zenity window will show you the result as in the image above.

How to set up

The script uses xdotool:

sudo apt-get install xdotool

Copy the script below into an empty file, save it in ~/bin (you will probably have to create the directory) as measure_area (no extension) and make it executable.
Add a key combination of your choice to run the script: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

measure_area

Notes

You will have to log out / in first
It does not make a difference what you take as first/second position; the script measures absolute values.


There is an even simpler solution than the one of qbi: killall let's you kill processes by name, and you can specify signals.

killall -9 middleman

See man killall for more information and extra options (there are quite a few).

As the name suggests, this does send the signal to all processes named middleman. But that's not different from other ways (like pkill). Furthermore, pkill -9 middleman will target processes whose name match but do not equal middleman, such as middleman2, as well.


The problem seemed to be that there is something wrong with the de servers (persistently: look at how old the question is!). I changed all de entries in the /etc/apt/sources.list to the nl servers and it updates fine now.

It would appear, once you update from a different server, you can revert back to your local one. The nice ubuntu-mirrors people were unable to explain this, but it works.


Upgrade from 14.04 to 16.04 ended with text only mode

Log in and attempt

sudo service sddm restart

nohup unity --restart

If that doesn't work attempt to run

sudo apt update && sudo apt upgrade

It may advise that you need to run sudo apt -f install to finish installing some dependencies.


git push and git pull change your files only when there are differences.

if you try to git add --all when there's no changes, it won't add anything,
the subsequent git commit -m "" and git push will have no effect also.

the script you referred should work properly.

if you want extra checks you can do git remote update then git diff to see the difference before merging the local files.


local wordpress installation, plugin installation and file permissions

It sounds like you've already got it figured out, but I'll let you know how I did it. This set up lets me and apache write to the wordpress directory, and the plugin/theme/upgrade works fine from within Wordpress.

First, I made my user part of the www-data group: sudo usermod -G www-data -a <user>.

Next, I made the entire wordpress directory owned by www-data:www-data: sudo chown -R www-data:www-data wordpress. I also made all the files readable and writable by user and group: find wordpress -type f -exec chmod 664 {} +, find wordpress -type d -exec chmod 775 {} +.

Finally, I set the guid bit so that new files would also be group-owned by www-data: chmod -R g+s wordpress.

Now, this isn't the most secure setup. Any vulnerabilities in Wordpress could be used to write to files within your wordpress installation. But I, personally, have never had any problems. And when I tried to make it less restrictive, updates and theme/plugin installation from within Wordpress Admin usually broke. I never quite found the right sweet spot between security and usability.


How do I create a 12.04 LiveUSB for a non-PAE machine?

Please create your bootable USB with either the 12.04 LTS Xubuntu Desktop or Lubuntu Desktop. Both of these still support non-PAE systems and include the non-PAE kernel.


I haven't tested it (yet!), but apparently there's an Open Source version of "Content Manager" that has been developed for connectivity with the PlayStation Vita:
QCMA

Most of the users at that link claim it works for them, so I'm gonna test it out as soon as my PlayStation Vita is charged...


Please ask one single question per post, which makes it easier to answer. In any case:

This is due to bug 1154980
This might be related to bug 1166709
Currently Ubuntu SDK components are not supported in the designer, but supporting them is on the roadmap


How to change root directory from different device (e.g. /dev/sdb1 to /dev/sda2)

Reinstalling the OS on sda would be the safe way, but isn't really needed. Since you have a filesystem on sda2, either:

if you can use it entirely for you data, create a mount point on your sdb1 filesystem here you want the data, and mount it there (add to /etc/fstab).
otherwise, mount it (under root or else, still by adding to /etc/fstab), create a directory in it for your data, and create a soft link to it from where you want need your data to be.


How to install cuda 5.5 under Ubuntu 12.04 LTS 64-bit?

STEP I – Driver installation (if you choose the regular drivers)

This section remains almost unchanged. Download the Nvidia drivers for Linux from their website, making sure to select 32 or 64-bit Linux based on your system.

Make sure the requisite tools are installed using the following command -

sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

Next, blacklist the required modules (so that they don’t interfere with the driver installation) -

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

Add the following lines to the end of the file, one per line, and save it when done -

blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

In order to get rid of any nVidia residuals, run the following command in a terminal -

sudo apt-get remove --purge nvidia*

This may take a while, so be patient. Once it’s done, reboot your machine. At the login screen, don’t login just yet. Press Ctrl+Alt+F1 to switch to a text-based login, and switch to the directory which contains the downloaded driver. Run the following commands -

sudo service lightdm stop
chmod +x NVIDIA*.run

where NVIDIA*.run is the full name of your driver. Next, start the installation with -

sudo ./NVIDIA*.run

Follow the onscreen instructions. If the installer throws up an error about nouveau still running, allow it to create a blacklist for nouveau, quit the installation and reboot. In that case, run the following commands again -

sudo service lightdm stop
sudo ./NVIDIA*.run

The installation should now proceed smoothly. When it asks you if you want the 32-bit libraries and if you want it to edit xorg.conf to use these drivers by default, allow both.

Reboot once the installation completes.

STEP II – CUDA toolkit installation

Download the CUDA toolkit (I used the Ubuntu 11.10 64-bit version). Navigate to the directory that contains the downloaded CUDA toolkit package, and run the following command -

chmod +x cuda*.run
sudo ./cuda*.run

where cuda*.run is the full name of the downloaded CUDA toolkit. Accept the license that appears. Next, choose to install the driver if you’ve not done so already (this is the development version). Installation of the driver will require switching to a text-based shell (Ctrl+Alt+F1), stopping lightdm as detailed in the previous step and running the toolkit installer as superuser. The CUDA 5.0 toolkit installation is compulsory, while that of the included samples isn’t. Allow the installer to proceed with default locations unless you have specific reasons for not doing so. This makes for easier troubleshooting in the future.

This process might take a while depending upon your system config. Once it’s done, double check the summary screen to make sure everything is in place. If the installation of the samples fails (which it does more often than not), it’s probably due to one or more missing libraries. In that case, install the required libraries and rerun the installer, choosing to install the samples alone.

To make sure the necessary environment variables (PATH and LD_LIBRARY_PATH) are modified every time you access a terminal, add the requisite lines (from the summary screen) to the end of ~/.bashrc as follows -

32 bit systems -

export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib

64 bit systems -

export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64:/lib

The paths used above will vary based on the install directory you choose for the toolkit. This wraps up the arguably simpler setup (compared to CUDA 4.x for Linux users), although the samples’ installation still suffers from dependency hell.

STEP III – CUDA samples installation and troubleshooting

While the installation of the samples should be straightforward (simply run the all in one toolkit installer), it’s often not all that easy. If you’re getting an error similar to “Samples installation failed due to missing libraries – libglut.so not found”, it’s typically because the installer looks for libglut.so and not variants (like libglut.so.3). To fix this, we’ll have to create softlinks so the installer can track down these files.

Determine if variants of libglut.so are present as follows -

sudo find /usr -name libglut\*

On my 64-bit installation of Ubuntu 12.04, this output the following text -

/usr/lib/x86_64-linux-gnu/libglut.so.3
/usr/lib/x86_64-linux-gnu/libglut.so.3.9.0
/usr/lib/x86_64-linux-gnu/libglut.a
/usr/lib/x86_64-linux-gnu/libglut.so

Now that a variant of libglut.so (that is, libglut.so.3) has been found, we can create a softlink to it -

sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so.3 /usr/lib/libglut.so

Next, rerun the all in one installer choosing to install only the samples this time around. That should fix the “Missing libraries” error that cropped up previously.

Further reading resources can be found here if you’re looking for books on CUDA and GPGPU programming in general.

Credit goes Here


Generic solution to prevent a long cron job from running in parallel?

Take a look at the run-one package. From the manpage for the run-one command :

run-one is a wrapper script that runs no more than one unique
instance of some command with a unique set of arguments.
This is often useful with cronjobs, when you want no more than one copy running at a time.

Like time or sudo, you just prepend it to the command. So a cronjob could look like:
  */60 * * * *   run-one rsync -azP $HOME example.com:/srv/backup

For more information and background, check out the blog post introducing it by Dustin Kirkland.


How can I fix Deja Dup hanging on restore?

Well As Salem said the Deja-Dup wa running fine and its perfectly normal for it to not give message of progress for very long time (at least it could say scanning but it is note coded to do so). So after being patient for two hours (Actually I left the computer on and started doing something else) I found the restoration done.

I will see if I can file feature request to add verbose mode so that user knows what is going on!


I did that often on a windows machine, but I know that Virtualbox on Windows is very close to the Ubuntu Version, so I think the options should be the same.

In order to access your VirtualBox from the outside you need to enable a bridged network under Network settings.

Also please enable remoting under display --> Remote Display

After you did that you can access the machine.


Please open a terminal and do:

sudo -i
echo "blacklist rtl8723be"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r rtl8723be
exit

You should be all set.


Ubuntu 12.04: bind9 does not want to start (Permission denied)

According to this
dns guide
files must begin with db.*
for example edit this
zone "57.168.192.in-addr.arpa" {

type master;

file "/etc/bind/zones/rev.57.168.192.in-addr.arpa";

};

to
zone "57.168.192.in-addr.arpa" {

type master;

file "/etc/bind/zones/db.rev.57.168.192.in-addr.arpa";

};

and rename file rev.57.168.192.in-addr.arpa to db.rev.57.168.192.in-addr.arpa
and this
zone "example.com" {

type master;

file "/etc/bind/zones/example.com.db";

};

should be
zone "example.com" {

type master;

file "/etc/bind/zones/db.example.com";

};

and file should be named db.example.com instead example.com.db
also you should have command  sudo named-checkconf
to check configuration


Ubuntu crashes within <1min of startup (new machine, both try and install options)

I ran into this same problem and the steps here solved my issue  (basically adjusting some flags, then installing Nvidia drivers).

Disable Fast Boot and Secure Boot.
Plug in the bootable Ubuntu live USB.
When you see the option to Install Ubuntu etc. press e and edit a line. Replace quiet splash with nomodeset and press F10 to boot. Reboot after the installation is complete.
This time you will now see the GRUB boot menu. Again press e and edit a line. In the line that starts with linux add nouveau.modeset=0 at the end of that line.
After this, you need to install the Nvidia graphics driver and reboot with sudo reboot


Installed library using checkinstall which created a package named "python" and causes dependency issues

Ok, so I think I solved the problem.

I found out that with apt-cache showpkg python I can view all the different python versions available. I picked the latest one and installed it using:

sudo apt-get install python=2.7.5-5ubuntu3

It gave me a warning it couldn't delete some "old directories":

dpkg: warning: unable to delete old directory '/usr/local/lib/python2.7/dist-packages': Directory not empty
dpkg: warning: unable to delete old directory '/usr/local/lib/python2.7': Directory not empty
dpkg: warning: unable to delete old directory '/usr/local/lib': Directory not empty
dpkg: warning: unable to delete old directory '/usr/local': Directory not empty

But that's fine, since I actually tried to solve the problem without deleting these directories.

Now if I do a dpkg -l python I get the following, correct output:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                          Version                     Architecture                Description
+++-=============================================-===========================-===========================-====================================================================
ii  python                                        2.7.5-5ubuntu3              amd64                       interactive high-level object-oriented language (default version)

I will monitor if I get any more strange behaviour from my system, but for now it seems this fixed the issue.


My guess is that you have a broadcom wireless. You can test with the following command:

lspci -vnn | grep Network

If you have a broadcom card you should follow the steps here. -> Installing Broadcom Wireless Drivers

Otherwise you should be able to find the drivers using additional drivers.

Take a look here -> How do I install additional drivers?


Trouble installing ubuntu 18.04 in Razer Blade 14 2017 (GTX 1060)

btw i don't know how to fix this but when you do get it fixed there is razer RGB driver
here https://openrazer.github.io/ i don't know if it works for your laptop give it a try i got confused trying to download it maybe you will have better luck you could probably turn the RGB off if you're a monster and don't like RGB but for real its fine if you don't like RGB


Where is the accessories folder located?

The design of Unity trades ease of accessing any arbitrary application for ease of accessing a small number of "preferred applications". This means that browsing to anything but the most commonly used applications now requires a little more work.

To get a list of Accessories, you now must click Ubuntu button ▸ More Apps ▸ Filter results ▸ Accessories ▸ Installed: See more results.

In the case that you know what you're looking for ahead of time, though, it is immensely faster to use Unity's search function. Press Super to open the dash, then just start typing what you want. Enter will launch the topmost result.


How to remove Change Desktop Background from right click?

If you can live without icons on your desktop, you can disable right click menu entirely through Nautilus' show_desktop option like this:

gconftool-2 -t bool -s /apps/nautilus/preferences/show_desktop false

Edit: Getting rid only of that menu entry would require patching the Nautilus source. The menu definition is in src/file-manager/fm-desktop-icon-view.c inside desktop_view_entries[] (or just search for Change Desktop _Background). Edit2: See below for HowTo.

Other option would be to use different file manager to draw desktop icons. Maybe PCMan File Manager doesn't have this entry in right-click menu?

Minimal guide to editing & rebuilding Nautilus

As I've noted before, the menu entry is hardcoded to Nautilus, so as far as I know, the only way how to remove it AND keep all other functionality is to edit Nautilus' source and recompile it. Be warned that it will take some time and you'll need some space for all the development packages and compilation itself.

The process was tested with Nautilus Elementary 2.32.2.2, however there shouldn't be any differences for stock Nautilus 2.32.

Get basic development packages: sudo apt-get install build-essential fakeroot dpkg-dev devscripts
Get development dependencies for Nautilus sudo apt-get build-dep nautilus
Download Nautilus source - note that this command doesn't require sudo; also, it'll place multiple files to current directory so it's usually good idea to create an extra dir for that. mkdir nautilus
cd nautilus
apt-get source nautilus
The source will be downloaded and extracted to nautilus-VERSION* folder (VERSION is, of course some version number, most probably 2.32.something). Get into that folder.
Open file src/file-manager/fm-desktop-icon-view.c
Search for GtkActionEntry desktop_view_entries[] - in my case it's on line 721 however it may differ for your version. It should look like this:

static const GtkActionEntry desktop_view_entries[] = {
    /* name, stock id */
    { "New Launcher Desktop", NULL,
      /* label, accelerator */
      N_("Create L_auncher..."), NULL,
      /* tooltip */
      N_("Create a new launcher"),
      G_CALLBACK (action_new_launcher_callback) },
    /* name, stock id */
    { "Change Background", NULL,
      /* label, accelerator */
      N_("Change Desktop _Background"), NULL,
      /* tooltip */
      N_("Show a window that lets you set your desktop background's pattern or color"),
      G_CALLBACK (action_change_background_callback) },
    /* name, stock id */
    { "Empty Trash Conditional", NULL,
      /* label, accelerator */
      N_("Empty Trash"), NULL,
      /* tooltip */
      N_("Delete all items in the Trash"),
      G_CALLBACK (action_empty_trash_conditional_callback) },
};

Note that the second array contains Change Background - remove it, so you get something like that:

static const GtkActionEntry desktop_view_entries[] = {
    /* name, stock id */
    { "New Launcher Desktop", NULL,
      /* label, accelerator */
      N_("Create L_auncher..."), NULL,
      /* tooltip */
      N_("Create a new launcher"),
      G_CALLBACK (action_new_launcher_callback) },
    /* Change Background was here */
    /* name, stock id */
    { "Empty Trash Conditional", NULL,
      /* label, accelerator */
      N_("Empty Trash"), NULL,
      /* tooltip */
      N_("Delete all items in the Trash"),
      G_CALLBACK (action_empty_trash_conditional_callback) },
};

Save the file.
Back in Terminal cd to the source root (if you haven't do so already)cd nautilus-*And run dch -l local This will execute the default $EDITOR (probably Nano) with the changelog file prepared to input your changes. Write something descriptive after the *, keep everything else intact. Note that -l local option is to note local build, you can use anything else instead of local, however it's important to add entry to changelog, otherwise your local build would be overridden by repository version.
Compile and build the package debuild -i -us -uc -b For explanation of switches see debuild man page Examples section
Go grab some coffee, this might take some time.
Once the build finishes (hopefully with success), you'll find bunch of .deb packages in the parent directory. Install them all. cd ..
sudo dpkg -i *.deb
Logout or restart Nautilus for great justice...nautilus -q

Look ma', no "Change Background"!

To be 100% sure, it's probably good idea to lock nautilus package in Synaptic.

Edit: Once you've verified that everything is working fine, you can get rid of build-dep packages using this nifty command. You just need to install aptitude...

References

http://www.cyberciti.biz/faq/rebuilding-ubuntu-debian-linux-binary-package/
http://www.debian-administration.org/articles/20


Anyone succeeded in Using Xmonad in Ubuntu 12.04?

https://github.com/davidbrewer/xmonad-ubuntu-conf

This one works fine. I tried it myself. I think this is best for anyone who wants to do multi-tasking.


Well you did right the first time - because it worked.
Try the live boot again.
Connect to the internet.
Now run the install from the install icon on your workspace, thatway it is installing with known drivers, some it will probably update - but with working configurations.

Somehow the live ISO's find more workable ways to handle hardware than the bare install does. This way worked for me more than a few times - specially with wireless. And on different distros, I gues that the gurus setting up the live iso's try to make it a plesent discovery, hence the ekstra effort spent on hardware configuration.

Have luck with your netbook.


Sound is muted on startup with iBook G4 PPC

I have a recent experience with this kind of Problem. I Follow these steps, and It solved for me. (I don't know actually why it get solved)

I opened gstreamer-properties by typing it in Dash
Select Pulse Audio Sound Server as the plugin for Default Audio output.
Then rebooting the machine after also removing the .pulse and .pulse-cookie from home folder

After Login, move the .pulse folder and .pulse-cookie file to another location and try rebooting.

For example, You can execute this command to move them in your Documents folder.

mv ./.{pulse,pulse-cookie} ./Documents/ -v

After opening a terminal.


How to run a python script automatically in Ubuntu 14.04 on reboot

Open terminal by Crtl+ALT+T and execute following command:

sudo -H /etc/rc.local

Add the lines given below to the file but before exit 0.

sudo /usr/bin/python /home/shiv/workspace/CustomOpenERP/openerp-8.0/openerp-server -s -c /home/shiv/.openerp-serverrc


Ubuntu 18.04 Where are window positions stored when an app closes, so that they can be opened in the same place after restarting

Install GNOME extension Put Windows. Find it here.

Fully customizable replacement for the old compiz put plugin.
Move windows to left/right side, bottom/top, center or corner
Move window to other screen
Select focused window using the keyboard
Application based window placement


You can find out where files are installed with dpkg:

dpkg --listfiles libqt4-dev


Cancel and restart a certain Routine (python-script)

If you are not opposing bash solutions, here's a script that does what you outlined. It can be added to /etc/rc.local to run on every boot. Just call it like bash /path/to/script & from within /etc/rc.local

#!/bin/bash

while true
do
    screen ./run.sh arg1 arg2 "arg3" & # start in background
    CMDPID=$! # get pid of that command
    TIME=$( date +%s  ) # get timestamp

    # next while loop just keeps checking time
    # We don't want to block up CPU with
    # continuous sleep command
    while [ $(date +%s) -lt $(($TIME+360)) ];
    do
      sleep 0.25
    done
    kill -TERM $CMDPID # kill that process

    # return to the top and repeat the procedure
done


Lenovo ideapad 500-15acz wireless card is not recognized

It looks like this adapter Broadcom Corporation Device [14e4:43ae] (rev 02) is not supported by Linux or Broadcom proprietary drivers yet.


How can I get rid off this slight red border in Progress-GUI?

That is simply a feature of the theme. You could edit the gtkrc or change the theme.
Probably just best for you to change the theme if you are unsure. You can use gedit to edit the theme. It will usually be in /usr/share/themes/themename/gtk-2.0/.

Looking at the theme, the relevant line appears to be line 71:

GtkEntry::progress-border = { 2, 2, 2, 2 }

Try changing these values and see if the border goes away (I haven't installed the theme so I cannot verify as yet).

Another potentially relevant set of lines are the lines from 358 to 361:
style "progressbar"

{
xthickness = 1

ythickness = 1


Mouse Clicks on VMWare Fusion on MacBook Pro Ubuntu 18

This worked for me on 8.5.10 after updating to Mac OS Mojave.

Try this:

Go to System Preferences > Security & Privacy
Switch to the Privacy tab
In the left column, select Accessibility
Look in the right window pane.
If VMWare Fusion is listed but not checked, add the checkmark.
If VMWare Fusion is not listed, add it by selecting the "+" sign and navigating to it.
Once added, restart VMWare Fusion.

Good luck.


How do i fix doubling of close, minimize buttons, problem with unite extension

After digging through the extensions website I found the solution.
In Firefox, under customize, you can check off 'title bar' in the bottom left - restart firefox, and it should be fixed again.
Reference here: https://github.com/hardpixel/unite-shell/issues/201#issuecomment-697957246


my laptop refuses to allow me to virtualize

Have you tried to enable virtualization in BIOS or UEFI?

Could you show hard drive partitioning from Windows : My computer (right click) -> Manage -> Storge?


13.04 to 13.10 upgrade stalled at flashplugin-installer

Solution I found:
1. boot to 13.10 live CD
2. ran install upgrade
3. choose to complete failed upgrade

side complication was problem with DVD player reading/coping the install .. patvhed in replacement USB DVD player.

.. all worked well and completed install booted correctly.
Found that couple of previously installed application missing.. eg: Chromium, Cheese, and  a few other have re-added.
All working well since.
Found the advice on Askubuntu very helpful if not directly leading to a solution


If it is only to set the workspaces, it seems a bit overkill to install additional software. To set it from command line, you only need two commands.

Run in a terminal:

dconf write /org/compiz/profiles/unity/plugins/core/vsize 1

to set the number of rows to one, and

dconf write /org/compiz/profiles/unity/plugins/core/hsize 4

to set the number of columns to four


check your software sources to see if you have proposed enabled if not enable it

then do ctl-alt-F1 login
and do sudo apt-get update && sudo apt-get dist-upgrade
when its finished to sudo apt-get remove nvidia-current*
then sudo apt-get install nvidia-current

i had this happen to me on a new install and it worked for me!
if this doesn't help add the ppa:xorg-edgers/ppa
and do sudo apt-get update && sudo apt-get dist-upgrade


How can I force Workrave to start in Normal mode?

Workrave does not have this functionality built-in. Instead, you will have to create a trigger to achieve this. You can do this by adding the following command to Startup Applications:

dbus-send --type=method_call --dest=org.workrave.Workrave /org/workrave/Workrave/Core org.workrave.CoreInterface.SetOperationMode string:'normal'

Regarding login behaviour, Workrave always starts when you log in, there is no option for it to do otherwise. You could achieve the effect of it not starting by setting it to Suspended on startup:

dbus-send --type=method_call --dest=org.workrave.Workrave /org/workrave/Workrave/Core org.workrave.CoreInterface.SetOperationMode string:'suspended'

(Note I am using Cuttlefish (see also Launchpad project) to make these calls rather than Startup Applications, but the results should be the same.)

There are existing requests to implement this functionality:

Force Workrave mode on startup
Make Workrave startup optional

Alternatives

In theory you can also use dconf to set these values as follows (0 - Normal, 1 - Suspended, 2 - Quiet):

dconf write /org/workrave/general/operation-mode 0

However, there is a bug preventing this from working in Workrave 1.10.2.0. This has been fixed for the next release.


The Ubuntu Forums thread gives you a recent and fairly accurate picture of what the current status is. There appear to be several ongoing issues with this laptop (wireless, optimus grapihcs, trackpad). All are getting viable workarounds but none of them seem to amount to full fixes.

People are going to keep working on the graphics and wireless because they're fairly widely used technologies (on other laptops) so it's probably just a matter of time. I doubt Dell will be helping out because it's not one of their officially supported Ubuntu machines.

Personally, I'd just shop for a better laptop because with the hacking around and the (currently) diminished featureset is going to mean you spend a lot of time just getting it working and still won't get what you paid for. A lot of other machines "just work".

You could also let Dell know you're not going to purchase it unless they support Ubuntu on it. They're not telepathic so even if they ignore your request, if enough people request support, they'll realise they're losing money to other manufacturers.


Trouble installing Java due to "./install.sfx: not found" error

Please see the "bug" described at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500693

Resolve by installing 32 bit libs:

sudo apt-get install ia32-libs


If still relevant, ALT + SHIFT + F4 will open a console. Then try those compiz/unity settings reset tweaks spread on other questions on this site.


Laptop wakes while lid is closed and overheats

I had this issue as well. There could be a few reasons why.

For me it turned out to be my wireless mouse's receiver being connected to the laptop. It seems the mouse pings the receiver which talks to the laptop through the USB which makes the laptop wake up. So now I unplug the mouse receiver from the USB. If it's not that, try unplugging/undocking everything from the laptop and see if it still happens.

@jP_wanN's comment above about booting to the BIOS about disabling things like wake-on-lan and other "Wake" features is also a step I took. Your mileage may vary based on the BIOS you have (may want to update it if some Wake features are not there).


Considering that the machine was running Windows XP previously, you are probably looking for a "lighter" flavour of Ubuntu. It is possible to disable some animations and effects from Unity/Gnome, but depending on how old is the PC, it might not be enough to make it usable.

Xubuntu - XFCE Desktop Environment

Lubuntu - LXDE Desktop Environment

The XFCE environment has a good compromise between usability, performance and customization, when compared to Unity/GNOME. LXDE is another good alternative, that is somewhat "lighter" than XFCE, but it also lacks some customization and usability when compared to the former.


How can I re-enable the global menu in Firefox?

With your old profile, could you simply disable all extensions and see if the problem goes away? (Somewhat like the safe mode you already tried.) Then, re-enable one extension at a time and see. (Obviously, the global menu bar extension shouldn't be disabled.)

If it's just a single extension (instead of some tricky "synergism"), you may be able to pin-point which one this way and then decide if you can live without it or have to endure the novelty of a centered global menu.


Why does ssmtp work with sudo but not without?

Users are not supposed to run ssmtp directly; use a proper mail user agent such as mail, mailx, or mutt:

echo Test | mailx -s Test foo@bar.baz


Ok I managed to fix it like this with a second live usb:

Boot from the new ubuntu live usb
Install grub on the problem usb (according to this answer https://askubuntu.com/a/153083/890260)

Now boot from the "not any longer" problem usb.
If you encounter a problem (after 90s not booting, emergency mode):

Boot in recovery mode, look which disk is shown as waiting task (dev-disk....numbers)
Boot again from the live usb and let the still problem usb in
Edit the /etc/fstab file from the problem usb by commenting out that disk shown in recovery mode as waiting ..... (commenting by "#" + "Space")

This worked for my problem at least..


Can't purge old kernels (dependency problems), but /boot is out of space

Use uname -r to show your currently running kernel. DO NOT DELETE anything with this version number.

You can find which packages the kernels in /boot belong to:

for i in /boot/vmlinuz* ; do
    dpkg -S $i| egrep -v $(uname -r)
done

You can remove these packages with sudo apt-get purge packagename ....

You can find more packages related to the kernels to be deleted by looking for other packages with the same version number:

To extract the version numbers:

for i in /boot/vmlinuz* ; do
    dpkg -S $i | egrep -v $(uname -r)
done |cut -d- -f3-4

To find other packages with the same version numbers:

for j in $(
    for i in /boot/vmlinuz* ; do
        dpkg -S $i| egrep -v $(uname -r)
    done |cut -d- -f3-4 ) ;
do
     dpkg -l "*$j*" | egrep '^ii|^rc'
done

To automate deleting all kernels other than the current kernel, and all packages whose versions match the deleted kernels (Danger, Wil Robinson):

Simply append

| awk '{print $2}' | xargs sudo apt-get --dry-run purge

to the previous code fragment. WHen you're sure it does what you want, remove --dry-run.

If your /boot is so full that you cannot delete packages, you can make some space on /boot by removing the oldest /boot/initrd.img* file,