Based on your (truncated, I think) xrandr output, this command will turn the screen off:

xrandr --output HDMI-0 --off

And this one will turn it back on:

xrandr --output HDMI-0 --mode 1920x1080 --right-of DVI-0

Test them and if they do indeed turn the screen on and off correctly, assign a shortcut to each of them and you'll be able to turn them on/off at will.


Start by modifying your domain's DNS settings in the registrar's control panel and provide the nameserver as the static IP you claim to have.  Doing this (then waiting approximately 24 hours for DNS to update worldwide) should then allow you to type in the domain and get to your site under the following conditions:
   (a) The system is web facing, and your firewall has been configured to allow port 80 traffic to reach your system, or
   (b) Port 80 (the normal HTTP port) has been opened in the NAT'd gateway that may exist between your system and the actual internet connection (for example, a router that forwards port 80 to your machine), and the same port has also been allowed in your computer's firewall.


PS3 Eyetoy video camera not working in Skype

It's likely that the drivers used by your computer to help it recognize the webcam were not intended to be used with skype. Carefully check through your Skype preferences, and be sure everything is as should be, if the problem is still there, reinstall Skype.
Sorry I couldn't give much info, hope it helps though. :)


I restored to default in the BIOS, now I can't install Ubuntu

The picture you have shared indicates Ubuntu UEFI installer running but due to your particular hardware it can not run. The picture actually only confirms DVD/USB booted using UEFI and there will be some means in firmware settings to ensure drives are booted in order to make UEFI installer run - possibly. See UEFI - Community Ubuntu Documentation for some info.

The SATA set to AHCI is good. What you need to check is first disable SECURE BOOT in firmware settings. If that does not get Ubuntu installer running. Try disabling anything mentioning UEFI in firmware settings.

Or if you can not find UEFI settings; Does your machine have CSM setting?; if so switch it on - this will disable the UEFI booting of installer and then allow a legacy/bios install of Ubuntu.

Manual found here and looking at page 64 shows instruction for booting other OS (not Windows) The note at top of page demands RAID0 must be set at default settings.


Buy a metal cased laptop, and bring it to some place, where they can do Laser engraving on the case. Though I'm sure that's not exactly cheap either.


Why is ntfs-3g not included anymore by default?

AFAIK ntfs-3g is included in the default Ubuntu installation, because the virtual ubuntu-standard package depends on it. You've probably uninstalled it by mistake.

Check the output of

dpkg -l ntfs*

If you see something like rc for the package, you've uninstalled it.

EDIT:

From your comments it looks like you installed ntfsprogs. If that is true, then by installing it you automatically uninstalled ntfs-3g, as these two packages are in conflict (in Oneiric). ntfs-3g now provides the functionality of ntfsprogs so it's not needed.


How can I repair my system if I forgot to remove the Gimp registry plugin when using Gimp 2.8?

Firstly remove the Gimp 2.8 repository by running these commands:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp

and then run:

sudo apt-get update

Now remove the plugin-registry as it is not supported on 2.8:

sudo apt-get remove gimp-plugin-registry

Once that's done you can install Gimp 2.8:

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


How to run Memtest under 14.04 with UEFI?

I also noticed that this option is missing, but never looked into it. Apparently the Memtest86+ image isn't compatible with UEFI and 20_memtest86+ exits very early when it's called on a UEFI machine:

# We need 16-bit boot, which isn't available on EFI.
if [ -d /sys/firmware/efi ]; then
  exit 0
fi

Options:

A: Windows

An alternative suggestion I found was to use Windows' tool for memory testing instead.
B: PassMark MemTest86

There seems to be some confusion about Memtest86+ and the non-open source PassMark MemTest86, which supports UEFI since version 5.

Arch have a script in their AUR to install PassMarks MemTest86. As an alternative to putting the files on a USB FAT partition you could do something similar by downloading the ISO for Linux/Mac then extract and rename the contents of EFI\BOOT on the ISO to EFI\MEMTEST86 on your ESP and add the following to your /etc/grub.d/40_custom:

menuentry 'PassMark MemTest86 (x64)' {
    chainloader /efi/memtest86/bootx64.efi
}
menuentry 'PassMark MemTest86 (ia32)' {
    chainloader /efi/memtest86/bootia32.efi
}

Finally run sudo update-grub to update your GRUB configuration. (I included entries for both binaries, the old ia32 may not be supported with UEFI in Ubuntu, simply remove what you don't need.)


Error while trying to install Nvidia drivers

GNU Make is a utility which controls the generation of executables and other target files of a program from the program's source files. To install it open the terminal and type:

sudo apt install make

Ubuntu has a built-in ubuntu-drivers program that can decide automatically which graphics driver to install, and streamlines the installation of Nvidia drivers. Open the terminal and type:

sudo ubuntu-drivers autoinstall
sudo reboot

The autoinstall command of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies.


wifi doesn't work after installing ubuntu

You need to install bcmwl-kernel-source and using wl kernel driver

Connect to the internet

Open a Terminal and install the bcmwl-kernel-source package:

sudo apt-get update
sudo apt-get --reinstall install bcmwl-kernel-source

Load driver

sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
sudo modprobe wl

Other way to install bcmwl-kernel-source from here

add repo and install

sudo add-apt-repository ppa:longsleep/bcmwl
sudo apt-get update
sudo apt-get install bcmwl-kernel-source

compile

sudo apt-get install git-buildpackage
mkdir bcmwl-ubuntu
cd bcmwl-ubuntu
git clone https://github.com/longsleep/bcmwl-ubuntu.git bcmwl-ubuntu-master
cd bcmwl-ubuntu-master
gbp buildpackage -b -uc -us
ls ../*.deb
../bcmwl-kernel-source_6.30.223.271+bdcom-1longsleep0_amd64.deb
 sudo dpkg -i ../bcmwl-kernel-source_6.30.223.271+bdcom-1longsleep0_amd64.deb


don't have permission to access mac HD on dual boot MBP

Terminal is a good place to start. Ctrl+Alt+T to launch it or Super click on th A (Application icon) and type terminal into the input field.

The way to change permissions is to use the gksu command to gain root privileges along with a file manager so type the following in to Terminal:

dksu nautilus

This will start nautilus as the root (You may need to enter your password) You can then go to the folder you want to gain access to and with a Right Click>Permissions, gain control of the folder

BUT BE VERY CAREFUL WHICH FOLDERS YOU TAKE PERMISSIONS AWAY FROM ROOT! IT CAN KILL YOUR SYSTEM


KVM - Create a virtual machine with 2 bridges interfaces

The following worked for me:

sudo virt-install -n virt64_01 -r 8192 \
--disk path=/media/newhd/virt64_01.img,bus=virtio,size=50 \
-c ubuntu-14.04.1-server-amd64.iso \
--network bridge=br0,model=virtio,mac=52:54:00:b2:cb:b0 \
--network bridge=br1,model=virtio \
--video=vmvga --graphics vnc,listen=0.0.0.0 --noautoconsole -v --vcpus=4

Note: I specify the MAC address for BR0 because I already have that VM name in my main server dhcp server and DNS, and I want to avoid more work for myself. For BR1, I didn't care during installation, it gets setup later.

And for reference, here is the /etc/network/interfaces file on my Ubutuntu 14.04 server host computer:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Local network interface
auto br1
iface br1 inet static
 address 192.168.222.1
 network 192.168.222.0
 netmask 255.255.255.0
 broadcast 192.168.222.255
 bridge_ports eth1
 bridge_fd 9
 bridge_hello 2
 bridge_maxage 12
 bridge_stp off

# The primary network interface and bridge
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Now, after installation completed, I manually added the guest eth1 to the guest /etc/network/interfaces file:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# Local network interface
auto eth1
iface eth1 inet static
 address 192.168.222.5
 network 192.168.222.0
 netmask 255.255.255.0
 broadcast 192.168.222.255

Note that there is NOT a gateway specified for eth1. If a gateway is specified, then it will made the primary interface and the routing table populated accordingly. (In my case, and for this answer, the gateway was fake and things stopped working when it was specified. Initially things were also fine on the host server with a fake gateway specified, but eventually it also changed to use br1 as a primary interface and things stopped working, so I have edited it out completely. The alternative, if required, is to explicitly manage the routing table.)

And here is the relevant section of the defining xml file (i.e. you might be able to use virsh edit, so that you don't have to re-install your VM):

<interface type='bridge'>
  <mac address='52:54:00:b2:cb:b0'/>
  <source bridge='br0'/>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='bridge'>
  <mac address='52:54:00:d7:31:77'/>
  <source bridge='br1'/>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>

Edit:

The host and guest /etc/network/interfaces files for the static br0 case are:

Host:

doug@s15:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Local network interface
auto br1
iface br1 inet static
  address 192.168.222.1
  network 192.168.222.0
  netmask 255.255.255.0
  broadcast 192.168.222.255
  bridge_ports eth1
  bridge_fd 9
  bridge_hello 2
  bridge_maxage 12
  bridge_stp off

# The primary network interface and bridge
auto br0
#iface br0 inet dhcp
iface br0 inet static
  address 192.168.111.112
  network 192.168.111.0
  netmask 255.255.255.0
  gateway 192.168.111.1
  broadcast 192.168.111.255
  dns-search smythies.com
  dns-nameservers 192.168.111.1
  bridge_ports eth0
  bridge_fd 9
  bridge_hello 2
  bridge_maxage 12
  bridge_stp off

Quest:

doug@virt64-01:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# Local network interface
auto eth1
iface eth1 inet static
  address 192.168.222.5
  network 192.168.222.0
  netmask 255.255.255.0
  broadcast 192.168.222.255

# The primary network interface
auto eth0
# iface eth0 inet dhcp
iface eth0 inet static
  address 192.168.111.213
  network 192.168.111.0
  netmask 255.255.255.0
  broadcast 192.168.111.255
  gateway 192.168.111.1
  dns-search smythies.com
  dns-nameservers 192.168.111.1

And the routing table on the host (as a check):

doug@s15:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.111.1   0.0.0.0         UG    0      0        0 br0
192.168.111.0   0.0.0.0         255.255.255.0   U     0      0        0 br0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
192.168.222.0   0.0.0.0         255.255.255.0   U     0      0        0 br1


How can I restore my computer to factory default using the command line?

You can reset the configuration for all packages that use debconf with the command

sudo dpkg-reconfigure -phigh -a

This will restore a large portion of your system, although there will likely be things that are still configured and set.


How can I block incoming calls from a particular phone number on an Ubuntu phone?

F-Call is available now that does call filtering but installation is through terminal.


Selective command-history in the terminal?

It won't show things only starting with ls, but you can do Ctrl-R ls to do a backwards search through history.  Repeat Ctrl-R to find the next match.


Can I install only Grub into a mainly Windows installation?

There are quite a few options for this.
I will give some pointers, and refer to the original posts.
It is great for the benefit of the community (so others also take advantage of this Q&A) if you provide feedback on what you try and what you get.

Grub4DOS, see also 1, 2.
Via rufus + grub-install.
With grub for windows.
With EasyBCD. See also 3.
With Grub2Win.


Does it work, if you set /general/LockCommand to

sh -c 'xfce4-screensaver-command --lock; sleep 0.5; xset dpms force suspend'

(I added small delay so that your mouse/keyboard activity does not turn display on immediately.)


It sounds like you have some bizare XDM behaviour.  Try logging out of your x session.  It should take you back to the DM.  Otherwise, as was suggested by A.B. remove any/all dm's you have (you may want to install something basic like xdm as a place holder while you remove what you really want).  As discussed purge rather than remove (removes config's as well as packages) then install again from fresh.  Personally, I'd try this:-

sudo apt-get install xdm
sudo apt-get purge lightdm
sudo apt-get purge gdm
sudo apt-get install gdm
sudo apt-get purge xdm

I believe the core approach to XDMs is using /etc/X11/default-display-manager.  Check the contents of that file, contains the full path to your chosen DM.

That said, I personally use kdm and kde, so this is what happens on my pc:-

# cat /etc/X11/default-display-manager
/usr/bin/kdm


this is a known upstream issue and it seems fixed after the switch to gtk3.


Bluetooth automatically getting onn after shutting down

Reason could be bluetooth being in startup applications.

Go in Unity Dash, search for Startup Applications.
If you see blutooth manager there, click on remove.


According to http://releases.ubuntu.com/14.04.1/MD5SUMS 119cb63b48c9a18f31f417f09655efbd is the MD5 checksum for the 14.04.1 64bit image (ubuntu-14.04.1-desktop-amd64.iso) so your image is fine.

dccff28314d9ae4ed262cfc6f35e5153 is for the older 14.04 image (ubuntu-14.04-desktop-amd64.iso).


Searching for MD5SUMS of 12.04 Daily Build on January 19th

I'm assuming you want to make sure the file wasn't inadvertently corrupted (rather than concerned about it being deliberately modified in a man-in-the-middle attack).

You'll likely have some difficulty finding the MD5SUM for the file. If it were a day older than what's on the server, you might find it on a mirror, but this is several days old.

What you should instead do is boot from it, hold down shift, and select Check disc for defects. This will give you the same information. (Unless it won't boot or won't get to that point--then it won't give you that information.)

Ubuntu CD Advanced Welcome Page Options
ZootLinux tech blog post, showing a video of how to do it (they use 10.04 but it's the same)

It's fine if it's a USB flash drive, Check disc for defects still works properly (except for being confusingly named).

But why are you using a daily build of a release two versions older than the current daily builds? Perhaps if you provide more detail in your question about what you're trying to achieve, better solutions could be given.


Gnome Activities Overview Cramping windows issue

Not a complete solution but i had the same problem when the "Native window placement" extension was activated, try disabling it by opening the tweak tool and going to the extensions window to locate the Native window placement extension, disable it and reboot your computer just to make sure.


Does Ubuntu Touch ship with proprietary code?

ubuntu-touch is licensed under the GPL v2. I guess the kernel will include some proprietary blobs for drivers (as does the Ubuntu desktop distribution). The core applications are also released under the GPL. Pre-installed apps, will probably depend on the device. E.g. the Telegram client is FLOSS, but the server side is not (yet?) released under a FLOSS license.
My bq acqaris 4.5 came pre-installed with a game (cut the rope -free) which is obviously proprietary...but then again contrary to other phones you can remove whatever does not fit your taste without the need to resort to "rooting application" of unknown origin.


How to execute a shell-command in Vim, and have the result printed below?

As Clausi pointed out, yyp!!sh yanks (copies) the current line to the register, pastes that line below the original one, and replaces the bottom one with the output of the command.

To save keystrokes you can map this action by adding the next line in the ~/.vimrc file:

  map <F5> yyp!!sh<CR><Esc>

This way everytime F5 is pressed in command mode, the line will be executed and the result will be shown below the line.


Setting environment variables for OpenJDK on Ubuntu 11.10

Think you've already setup it. Try running

javac

If it displays any message other than can't find, you've already done that.


No write access on second HDD when changing to Kubuntu OS

Ok, here is the solution to my problem. I opened the laptop, I removed the SATA HDD, I used a USB to SATA adapter and I connect it to a Windows 10 OS, then I safely removed the HDD and I disassembled from the adapter. I connected back to the Linux OS laptop, and turned it on. It works perfectly now. No backup, no copy-paste.


What is the difference between adduser and useradd?

useradd is native binary compiled with the system. But, adduser is
  a perl script which uses useradd binary in back-end.

  adduser is more user friendly and interactive than its back-end
  useradd. There's no difference in features provided.

Source: What's the difference between “adduser” and “useradd”?


It looks like a vim-snapshots PPA was created for this. To install it, I used:

sudo add-apt-repository ppa:nmi/vim-snapshots
sudo apt-get update
sudo apt-get upgrade


AppKeys Ubuntu Gnome extension opens news instances of chrome

Digged more for the problem so yes its a .desktop entry problem

After i edited :

vim /usr/share/applications/google-chrome.desktop

On the end of each config group

[Desktop Entry]
[NewWindow Shortcut Group]
[NewIncognito Shortcut Group]

Added this:

## Custom
StartupWMClass=Google-chrome-stable


Moving space from windows partition to Home directory

Yes, that's possible. In gparted just resize the Windows partition a bit and add the space to the Ubuntu partition. Depending on the order of the partitions on your drive you may need to move them in order to get the freed up space near the Ubuntu partition.

BTW: there's a good chance that Windows wants the hard drive to be checked after this just because it sees that something has changed. Just let Windows do the check.

It is advisable to create a decent backup in case something goes wrong,


Private directory mounted without passphrase?

From the EncryptedPrivateDirectory wiki:

  We can stop ecryptfs from unlocking the Private folder on startup, by removing the empty file auto-mount which is located in ~/.ecryptfs/, where you also can remove the  auto-umount file, if you would like ecryptsfs to stop unmounting the private folder upon shutdown and logout.

UPDATE: To fix the issue of ~/Private being mountable without using a password, follow the instructions in this Ubuntu Forums post:

  OK Folks, here is the true fix.

  I was reading an article on ecryptfs (http://ecryptfs.sourceforge.net/ecryptfs-pam-doc.txt) and found that PAM is involved and thus started looking in /etc/pam.d/ and found 2 files that need to be modified:

  /etc/pam.d/common-auth
   /etc/pam.d/common-session

  Do the following as root, but make a backup copy first in a directory OUT OF this directory like ~/ or it will possibly run the backup which is unmodified.

  In /etc/pam.d/common-session look for a line that says:

  auth  optional    pam_ecryptfs.so unwrap
  and comment it out like:
  #auth optional    pam_ecryptfs.so unwrap

  In /etc/pam.d/common-auth look for a line that says:

  session   optional    pam_ecryptfs.so unwrap
  and comment it out like
  #session   optional    pam_ecryptfs.so unwrap

  Both files must be modified. The common-session file is what cause the actually mounting and the common-auth unwraps the passphrase.

  If just common-session is commented out (as I tried first), all one has to do is type ecrypt-mount-private and it will mount without the login passphrase. This is NOT GOOD. So the common-auth must be modified to prevent the loading of the unwrapped passphrase into the kernel.

  The caveat to this is that THIS AFFECTS ALL USERS. I have just discovered the above by rooting around myself and it satisfies my needs. However, it will make it more difficult on a multiuser system for novices as the Private will not be automatically mounted. There may be a way to prevent this on a user-level (not system level) but I don't know how to do that.

  Hope this helps someone in the future.

  Yours,
  Narnie

You will need to restart your computer after you modify those files.


The configuration defaults for GNOME Power Manager have not been installed correctly. Cannot login

So finally I have solved the issue with launching these commands in virtual terminal :

apt-get purge gnome-power-manager
apt-get install gnome-power-manager


"quit" option for multiple window on Ubuntu Dock

I made several application theme changes looking for possible solutions but the problem continues even with different themes choices. I decided first to select an specific application theme (Radiance). Second, I updated and upgraded my system. Lastly, I restarted my laptop and as a result the issue was solved.


Is it possible to use services that provide their own pid, like dnsmasq, to use with upstart?

You can use the Upstart job and shell scripts in this repository: https://github.com/CameronNemo/lxc-net.

To restart dnsmasq without tearing down the bridge, simply use the restart command (do not use stop then start, that will tear down the bridge).

Note that you will need to migrate your configs from /etc/default/lxc-net to /etc/lxc-net.


How can i serve an Ubuntu installation Image on my Server for networkboot?

with this help: How do I boot Ubuntu from the network?
and this howto, that is linked there. This tutorial also helped

I collected it all together:

Installation and configuration of a PXE-Server

This is what you have to do on Ubuntu 12.10:

apt-get install inetutils-inetd tftpd-hpa dnsmasq

edit /etc/default/tftpd-hpa so it looks like this:

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -s -v -v"

Mount the Lubuntu 12.10 Desktop ISO and copy it to the tftpboot folder:

mkdir /mnt/loop
mount -o loop -t iso9660 /media/Daten/installer/Linux/lubuntu-12.10-desktop-i386.iso /mnt/loop
mkdir /var/lib/tftpboot/ubuntu-installer
cp -R /mnt/loop/* /var/lib/tftpboot/ubuntu-installer
umount /mnt/loop

edit /etc/dnsmasq.conf and set there:

interface=eth0

dhcp-range=10.0.0.220,10.0.0.250,12h

dhcp-boot=/pxelinux.0,0.0.0.0

now get the pxelinux.0 file by installing SYSLINUX:

apt-get -y install syslinux

Copy the PXELINUX bootstrap to the root of our TFTP server.

cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot

create the file /var/lib/tftpboot/pxelinux.cfg/default (source):

mkdir /var/lib/tftpboot/pxelinux.cfg/

echo "
LABEL u
KERNEL ubuntu-installer/casper/vmlinuz
APPEND tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=normal initrd=ubuntu-installer/casper/initrd.lz -- quiet
PROMPT 1
DISPLAY banner.txt
" >> /var/lib/tftpboot/pxelinux.cfg/default
# (adjust KERNEL and initrd to the correct path on your machine!)

Then create the banner.txt file:

echo "press 'u' to boot ubuntu" >>/var/lib/tftpboot/banner.txt

configure your eth0 card:

service network-manager stop

ifconfig eth0 10.0.0.100 netmask 255.255.255.0 broadcast 10.0.0.255

restart the services:

/etc/init.d/dnsmasq restart
killall in.tftpd
service tftpd-hpa restart

now everything should work fine, just connect another computer to your machine on eth0 and select the boot option 'u' there

Errorhandling

If you get the error

  "could not find kernel image: ubuntu-installer/i386/linux"

first check if you adjusted the KERNEL and initrd to the correct path on your machine! If thats correct, those will give you some more hints:

ps aux | grep tftp
ss -apu | grep tftp

probably, you have to kill
in.tftpd and inetutils-inetd
and restart all services while looking at the log:

tail -f /var/log/syslog &
/etc/init.d/dnsmasq restart
killall in.tftpd
/etc/init.d/inetutils-inetd stop
service tftpd-hpa restart
ps aux | grep tftp
ss -apu | grep tftp

probably there you find the message

  cannot bind to local IPv4 socket: Address already in use
  if that message is gone, it should all work fine

Restart normal networking

When you are done, you can restart the NetworkManager by

service network-manager restart

If you use WiFi deactivate the eth0 card by

 ifconfig eth0 down

Now there is only one more open question:
Bad Archive Mirror using PXE networkboot


Dash does not keep "sources" filter setting after reboot

Don't know what the "sources filter" has to do with turning off the "recommended software" in the apps lens. (All  filter results > Source will return to defaults on fresh login

To disable for real

 gsettings set com.canonical.Unity.ApplicationsLens display-available-apps false


Try going into recovery mode and running "sudo update-grub" and that may resolve the conflicts where it seems to be not getting past grub. Other than that you might try opening up a normal session from the method mentioned in the question and using grub customizer to try and find any problems by reinstalling with that.


SMB shares mix between guest and user-specific - how to config and troubleshoot

Well, while I was waiting for someone to answer I kept digging and worked out an answer. I'm posting here for posterity.

It appears the Nautilus GUI-based sharing is only good for unauthenticated folder sharing. Once a person wants to go to user-specific shared folders, whether mixed with other guest-access shared folders or not, one must use the main /etc/samba/smb.conf file.

In order to not duplicate, I recommend first turning off sharing the folder in Nautilus. Then add the share to the main smb.conf file. To open the file with write-priviledge paste the following command into terminal:

sudo gedit /etc/samba/smb.conf

It will ask you for your main Linux login's password then open the file.

Add a section at the bottom of the file for your shares. To keep things neat and tidy I started with a header:
#========= Shares ========

Then I built two sections, one labeled:

# public shared folders

and one labeled:

# User-specific folders

Under the public shared folders header I created shares for the various public folders. Here is an example:

[public]

    comment = public folders for documents and downloaded files
    path=/home/murdfs/Documents/public
    browsable = yes
    guest only = yes
    guest ok = yes
    read only = no
    create mask = 0755

A very important entry there, if you are mixing guest-access folders and user-specific folders on one Linux computer, is the guest only = yes option. This makes it so, even if a computer has an account on the Linux box it will access public folders with the guest account. If you don't do this, such computers will create files and folders in the public share that are owned by their login, so others can see them and open them but can't modify and save them. The idea of public folders is everybody has equal, full, access rights to files and folders, so this result is not right.

The user-specific shares config entries are very similar, but of course are missing the guest only option. Here is an example for comparison:

[MurdRcvr2]

    comment = Murdoch's Gem Shop Receiver2 computer's documents backup
    path=/home/murdfs/Documents/MurdRcvr2
    browsable = yes
    guest ok = no
    read only = no
    create mask = 0755

Once you have added the shares save the file. This will release Terminal so you can do the other steps required there.

Set the ownership of the guest-shared folders. I'll use the same example I gave for the config, for continuity:

sudo chown nobody:nogroup /home/murdfs/Documents/public

Set the ownership of the user-specific folder shares. This presumes you've already created the user account, which caused a group of the same name to be automatically created:

sudo chown :murdrcvr2 /home/murdfs/Documents/MurdRcvr2

Create a Samba username and set a password for the user account:

sudo smbpasswd -a murdrcvr2

Restart the SMB service (note this disconnects all other computers connected to existing shares on this Linux box, so all shared files need to be closed first):

sudo service smbd restart

Now you should be able to access guest-access folders from any computer on the network without logging in and only access the user-specific folders after logging in.


Difference between alt+tab and alt+escape

Alt+Tab switches between different programs on the same workspace (if activated) with a popup.

Alt+Esc switches between different programs without a popup.

Alt+` (key below Esc) switches between different instances of a program.

Super+Tab switches between all programs regardless of the workspace (if activated) with a popup.


Kernel panic error installing Ubuntu on VirtualBox

First determine if the ISO you downloaded is solid. There must be an SHA or MD5 checksum of it at the mirror where you downloaded it. You can find additional information on the thread here https://help.ubuntu.com/community/HowToSHA256SUM .

After that, if you trying to install the OS on a virtual machine, make sure you have enabled the Virtualization on your bios, although that should not be a problem since you are trying to install a 32bit version.

If you are installing through usb make sure the filesystem is FAT32 and create again the bootable media through a tool like UniversalUsbInstaller. Even better format the USB under the filesystem of FAT32, and later create the bootable media.


Libre/Open Office Calc: Copy&Paste without formatting

A half way workaround at least is to use F2 to edit Cell's content.

After hitting it a cursor in the cell and you can insert every other cell content or html from the browser into it without being asked in a context menu. The format stays. Still open how to do it with more than one cell or copy&past from cell to cell in the Office.


How can I install KVPM on Ubuntu 20.04 LTS?

You have to get dependencies with it:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/l/lvm2/liblvm2app2.2_2.02.176-4.1ubuntu3.18.04.3_amd64.deb
sudo apt-get install ./liblvm2app2.2_2.02.176-4.1ubuntu3.18.04.3_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/k/kvpm/kvpm_0.9.10-1.1_amd64.deb
sudo apt-get install ./kvpm_0.9.10-1.1_amd64.deb

and then enjoy the KVPM application running on Ubuntu 20.04 LTS.


Thunar lost files after dragging to and dropping onto folder!

After closing Thunar, and then reopening it the files now show as they are supposed to.  Now it would be great if someone could figure out why this is happening, and post a permanent fix, and it's developers fix the offending software, as it is really scary when files go missing!!!!!!!!


You could install devilspie2 or devilspie if you prefer it.

#sudo apt-get install devilspie2
#cd ~/.config
#mkdir devilspie2
#cd devilspie2

create a script file

#nano steam.lua

for example if you want to make the friends and main windows always on top, put this lines in the script.

if get_application_name()=="Steam" or get_application_name()=="Friends" then
    make_always_on_top();
end

For creating scripts its very useful to run devilspie2 with -d option and a script with:

debug_print("Window Name: " .. get_window_name());
debug_print("Application name: " .. get_application_name())

So you can see the window and application name of the windows opened.

Note: You could also try with a GUI version of this program gdevilspie, but it has some problems


Here is the complete instruction on this game, it's really simple, just unpack files in the specified directory:

installing files from repo. for pre 0.36 ver.

installing files from repo for post 0.36 ver.


What desktop enviroment is most efficent?

There are a lot of lightweight GUIs out there I would look into:
XFCE and
LXDE


Set Ubuntu Desktop Network Proxy Settings programmatically on 18.04

Dconf-editor or dconf
/system/proxy/

For example:

  dconf read /system/proxy/http/host
     '192.168.0.1'


VPN server on ubuntu enabling NAT problem! please help

The command works for me. However, and since I never defined $OUTIF, I just entered what it is. I am saying I did this:

sudo -i iptables --table nat --append POSTROUTING --out-interface eth0 --jump MASQUERADE


Cannot import encfs folder into cryptkeeper

"Vor" seems to be the right button here. In English version of the software, it's "Forward".


By coincidence the sssd cache was out of sync and it turned out this was the root of the problem. If you have the same problem, try purging the particular user from the sss cache:

sudo apt-get install sssd-tools
sudo sss_cache -u username


Kubuntu: How to make dolphin show hidden files on bottom instead of on top

It seems there is indeed no way yet (Dolphin 5.28.0)

Beside sorting from Z-A, whcih feels totally awkward.

However there is a fork that implemented this, so I was not alone in this :-)

https://github.com/KDE/dolphin/compare/master...Zren:sortdotfileslast


First, rEFIt hasn't been updated in over three years. You may want to consider switching to rEFInd, which is under active development. (I maintain it.) Among other improvements, rEFInd has much better support for Linux and better options for setting the default OS.

Second, there's an error in the specification of the file to be edited; it should be /efi/refit/refit.conf, not /etc/efi/refit/refit.conf. (If you switch to rEFInd, it should be /efi/refind/refind.conf.)


You can safely remove them.

When DKMS builds a module for the kernel, it can also include it in the initramfs (the initrd files you see in /boot). Before doing so, it does a backup of the current initramfs, adding .old-dkms at the end of the file.

So, unless DKMS crashes while generating the initramfs (quite unlikely), the .old-dkms are of no use afterwards.

If you are a bit paranoid, you should first reboot the machine to verify the kernel and the newly generated initramfs work well, and the remove the .old-dkms.


Install PECL extension in Ubuntu 16.04 with PHP 7.0.18

You want to install php-pear which contains pecl. If you are using pecl to install other extensions you may also want to install php7.0-dev so phpize is available when installing pecl extensions.


juju Bootstrap --debug failed to connect https://streams.canonical.com

SSL certificate errors wouldn't lead to Connection Refused; that is a very specific error message that means that a TCP connection was denied, either because the other endpoint doesn't have a listening socket open on that port or because it has been administratively denied by a firewall (one set to REJECT packets rather than DROP packets).

Check the firewalls on all kernels involved -- VM guests, VM host, routers between you and the Internet, etc.

When these error messages get very confusing, it could be because processes have been told to use a proxy and none is available, or the proxy is experiencing trouble, or is misconfigured.

Note that APT can use proxies configured via the Acquire::http::Proxy configuration item in /etc/apt/apt.conf or /etc/apt/apt.conf.d/*. (And it might not be this exact string; best to search for Proxy.) Most everything else will use the http_proxy environment variable.

I hope this helps.


Cannot get new icons working on Ubuntu 18.10

It was a problem related to permissions.

This output shows the folders exist but as you can see they are not accessible by users other than root.

drwx------ 11 root root 4096 Mar 20 17:07 Faenza/
drwx------  4 root root 4096 Mar 20 17:07 Faenza-Ambiance/
drwx------  9 root root 4096 Mar 20 17:07 Faenza-Dark/
drwx------  5 root root 4096 Mar 20 17:07 Faenza-Darker/
drwx------  5 root root 4096 Mar 20 17:07 Faenza-Darkest/
drwx------  4 root root 4096 Mar 20 17:07 Faenza-Radiance/

Change the rights of the folders by executing the command sudo chmod 755 -R /usr/share/icons/Faenza and restart GNOME shell using Alt+F2 and then type r and press Enter. faenza now shows in icon themes.


Can I play a 'not available for Linux' game on Steam using Wine or PlayOnLinux?

There are a few ways to do it, you could download steam for windows using wine then download the games, or if you had enough ram you could use virtualbox with a windows os. and if you're a hardcore gamer you could download windows alongside ubuntu.


Application (or code) to download full size images from a gallery with thumbnails

You can, of course, write small script to do that.
But I would rather use some existing tools.

Try for example: HTTrack

sudo apt-get install httrack


SOLVED msi laptop install Ubuntu 17.10 on pendrive

I had problem a problem getting into bios (DEL key but it's pure luck when to click it to reach bios) it turned out that my 32GB SanDisk USB drive was "USB HDD Drive" instead of "USB Key" and this option wasn't set in BIOS now it's ok - also I turned boot option from UEFI to LEGACY and it worked


SSH on boot Ubuntu Mate/Raspberry Pi (not duplicate)

Can you ping the Pi before you log into it locally? I wonder if the network isn't up until you log in.  Maybe there are some power saving settings in Mate ?  I don't have mate on a pi to check, but my pi is always available for ssh when running raspbian so it points to Mate.


Try this sequence of commands

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f


Which software to use to show a bunch of photos and movie files one after another, as a slideshow?

Bash shellscript
I would create a bash shellscript, that uses graphical tools, that you can install and use from the shellscript with options, that make things run without manual interaction.
Make sure that you have the repositories universe and multiverse (I think they are there by default in an installed Ubuntu system, but you must add them in a persistent live system),
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt update

Install the restricted extras in order to manage several multimedia formats.
sudo apt install ubuntu-restricted-extras

feh and mplayer
Install feh for pictures and mplayer for video clips
sudo apt install feh mplayer

Edit the shellscript
If you have a fair number of pictures and video clips (in a dedicated directory),

you can edit the shellscript to call feh (for pictures) and mplayer (for video clips) with each of the files as parameters
you can cd to that directory and run the shellscript locally.

If you have a huge number of pictures and video clips (in a dedicated directory),

you may prefer to prefix the file names with a number to select them in the order you want to play them.

you can edit the the shellscript to call feh (for pictures) and mplayer (for video clips) with wild cards in the parameters.

Example
I tested the following shellscript, and it works for me (both in a persistent live Ubuntu system and an installed Lubuntu system.
#!/bin/bash

while true
do
 mplayer -fs 00007_360-50p.mp4 00007_720-50p.mp4
 feh -F -V -Z -D 5 --cycle-once uncropped-picture.png  cropped-picture.png
 mplayer -fs majaa.mp4
 read -n1 -t 5 -s -p "Press q to quit" ans
 echo ""
 if [ "$ans" == "q" ]
 then
  exit
 fi
done

You can press q to stop feh, mplayer and also the whole shellscript (when at the end, the command line with read).


How to make "CTRL + ALT + T" open new Terminal window when one is already open?

The funny thing is that on Unity, CTRL + ALT + T does open a new window, apparantly not on Gnome...

To make the setup:

First disable the existing command/key combination with the command:

gsettings set org.gnome.settings-daemon.plugins.media-keys terminal ""

Which will make CTRL + ALT + T "available" again for another command.
Now open keyboard settings: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

gnome-terminal --window-with-profile=<profilename>

to CTRL + ALT + T, where <profilename> is the name of your profile, most likely Default

From man gnome-terminal:

   --window-with-profile=PROFILENAME
             Open  a new window containing a tab with the given profile.
             More than one of these options can be provided.


Running Google App Engine on Ubuntu 14.04.2

Simple Tutorial

Here are the steps I followed to get GAE 1.7.1 working on Ubuntu 12.04.

open a terminal Ctr-t and make sure you are in the home directory.
create a project folder. (I used google_projects)
cd into the project folder
download GAE 1.7.1
unzip the file
delete the zip. (optional)
Here are the terminal commands for the steps above:

    cd ~
mkdir google_projects
cd google_projects
wget -O gae.zip https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.6.zip
unzip gae.zip
rm gae.zip

Now its time to create the project and start the development server.

    cp -r google_appengine/new_project_template testapp
    python google_appengine/dev_appserver.py testapp

The first line simply copies and renames the new_project_template folder into google_proects as testapp. The last line starts the development server. You can stop it with Ctr-C.

With the development server up and running you can view testapp at localhost:8080. You should see "Hello world!".

Or you can do a diff way

sudo apt-get install python-pip
sudo pip install appengine

Then install a given VERSION of the SDK:

appengine.py [--prefix=/path/where/to/install] VERSION

Regards!


how to use iio on surface pro to access sensor data in Ubuntu 13.04

I went through the same exercise for a Yoga 2 Pro, under Fedora 20.  The problem is that the sensor hub sensor drivers don't expose a raw interface, so you have to use the buffered interface, which is not easy to set up.  To add to that, the drivers may not correctly initalize some sensors so that they hang.

There is a program called generic_buffer alluded to in the presentation mentioned above.  However, there are many problems with that program, at least the most readily available versions.

I have a fixed up version of generic_buffer in https://github.com/pfps/yoga-laptop under sensors.  I also have a program that monitors the accelerometer and rotates the screen accordingly.   Feel free to use and abuse them, and, if you can, please improve them.


Its intent is probably to count the number of files in the current directory with a "dot suffix" that matches the one supplied as a parameter to the script. However it seems to have been written by someone who is confused about a few things:

the use of * at the beginning of the regular expression "*\.$1" doesn't really make sense. In BRE, * without any preceding atom is literal, and presumably the writer discovered that adding -E makes it a quantifier matching zero or more instances of the empty string. Either way it is superfluous, and the grep may be written as simply grep "\.$1$"

there's no need for wc since grep -c can count matching lines

there's no need to capture the output of grep/wc and then use echo to print the thing you just captured.

So you could change it to
#!/bin/bash

ls|grep -c "\.$1$"

However grepping the output of ls in this way is poor practice. In particular, Linux filenames may contain newlines, throwing off the count. A better way would be to use filename expansion (aka "globbing") directly e.g.
#!/bin/bash

shopt -s nullglob

files=( *."$1" )
echo ${#files[@]}


Ubuntu 14.04 Security update broke something

You're getting the permission denied and are you root? prompts because you need to run the commands with elevated permissions.  Place the prefix sudo in front of the commands so that the commands will be run under the root access.

Example:

$ sudo apt-get install -f

To execute the command I just gave you, type everything execept the dollar sign $.  The dollar sign is specifying the prompt where you are typing the command.

That should clear the failed install by fixing the problems.  It'll automatically load the available missing dependencies.


Don't change the user ID on these hosts! This is a brittle operation that will require all kinds of maintenance, and introduce many subtle problems.

Let the NFS server hosting the exports do the UID mapping for you.

e.g.: https://serverfault.com/questions/520276/nfs-user-mapping

The tricky part is what version of nfsd is being used, and the specific implementation. I'd start with the man page for Ubuntu nfsd and see if it talks about it, or if it needs another daemon running  that maps IDs.

It looks like the best reference for this is here: https://help.ubuntu.com/community/SettingUpNFSHowTo

But, the take-away is that you should let the daemon(s) handle this for you, and not try to maintain the same UIDs across all hosts, which is difficult and error-prone (and may not actually work as you need it to, anyway.)


How do Ubuntu LibreOffice builds differ from vanilla LibreOffice builds?

You can see how the distro builds are done by using the:

apt-get source libreoffice

command. That said, up to LibreOffice3.4/Oneiric both Debian and Ubuntu used the go-oo build system, which is scary for the uninitiated (and perhaps even more so for the initiated).
Since LibreOffice-3.5, we (Debian/Ubuntu) are using the native build system of LibreOffice and have most of our patches upstreamed, while keeping only a smaller set of truely vendor-specific patches in our packaging. This should also make the packaging much more transparent for everyone.
Ongoing work of Debian and Ubuntus packaging can be followed at:

http://anonscm.debian.org/gitweb/?p=pkg-openoffice/libreoffice.git;a=summary

Active development for Precise is in the branch ubuntu-precise-3.5.


How do I reduce my boot time on Ubuntu 18.04?

Read the lines 176 - 179 of your dmesg carefully. As to be seen in line 218
you have radeon-graphics and can delete 'nomodeset' out of grub securely.-watnu


Wubi installs a virtual disk inside your Windows partition. The installation size parameter determines how large this virtual disk image will be ; you will use this much space on your Windows drive.

I am quite a heavy user (software development, etc) and my root partition uses about 9.8GB, for guidance.


No keyboard layout indicator (text) in the notification area

Here is a slick solution: Language Flags Ubuntu Mono Dark
http://gnome-look.org/content/show.php/Language+Flags+Ubuntu+Mono+Dark+11.04?content=140209

Also mono light, faenza.
http://gnome-look.org/content/show.php/Language+Flags+for+Ubuntu+Mono+Light?content=134483

I think they look much nicer.

Extract to ~/.icons/flags
Run gconftool-2 --type bool --set /desktop/gnome/peripherals/keyboard/indicator/showFlags true


Can curl localhost, but can't access port 80 from LAN

iptables is accepting connections from anywhere destined to port 80, fine.

Based on the fact that you can curl localhost but NOT from another host within the LAN, I reckon the daemon running listens to loopback only, change it to listen on your NICs, for example eth0 and restart the service.

e.g.

Apache vhost config file

<VirtualHost *:80>

Nginx vhost config file

server {
    listen   *:80;
    ...
}


If you have setuptools installed in your python2.6, you can just do

sudo easy_install2.6 numpy

which will pull the egg from pypi.python.org and will build and install it.

Alternetively, you can download .tar.gz file from here, unpack it and run

sudo python2.6 setup.py install

Due to the fact numpy contains code written in C, you will need build-essential and python-dev packages installed (the latter should be for Python 2.6)

See INSTALL.txt in the tarball for more details


Ubuntu 12.04 boots to login screen but (I think) X.org crashes on login. Help Appreciated!

I don't know about the duplicated account, but running sudo startx as part of your driver diagnostic / repair process has likely left a root-owned .Xauthority file in your home directory. The X server tries to write to this file when lightdm passes control to the user session, and if it fails the session terminates and sends control back to lightdm, causing a 'login loop'

You can go into a Ctrl+Alt+Fn virtual terminal, log in as your regular user (the .Xauthority file is not involved in console logins), and check with

ls -l ~/.{ICE,X}authority

(this will also list the ownership/permissions on ~/.ICEauthority, which also sometimes gets messed up). If it is root-owned then either change its ownership back

sudo chown $USER:$USER ~/.Xauthority

or simply remove it (a fresh copy will be generated on the next successful GUI session startup)

rm -f ~/.Xauthority

If that works, and allows normal GUI login from either of the apparent duplicate accounts, we can then investigate further about those.


Going to re-install ubuntu, how to backup my steam

The default steam libary is in ~/.local/share/Steam. I'm not sure if it's possible to change but if you changed it you would know where it is.


Most likely your system has a bad ACPI bios that uses goofy non standard fan control mechanisms that require proprietary windows drivers and do not work in linux.  Your only hope is to install the lm-sensors package and see if sensors-detect can find hardware that fancontrol knows how to take over.


Where is OpenVPN's client configuration from Network-manager's OpenVPN plugin?

According to this in /etc/NetworkManager/system-connections. Although, it looks like the VPN configs are in /etc/NetworkManager/VPN


Deletion of Ext3 partiion - Ubuntu 20.04

No. Ubuntu 20.04 does not use ext3 partitions by default
The standard installation of Ubuntu 20.04 creates only one / partition formatted ext4. This seems to be /dev/sda4 in your case.
ext4 replaced ext3 as the default partition format of Ubuntu in the version 9.10. That is, in October 2009 release. In other words, ext3 has not been used as the default partition format for over a decade.
Since the ext3 partition is numbered /dev/sda2 my guess is it was created prior to the installation of Ubuntu 20.04.
We can see that it has some data, about 140 MB of it. I can't tell you what that data is, and if you need it or not.
Try mounting the /dev/sda2 partition using the Gnome-disks utility and see what files and folders it contains using Files. Then if needed, you can copy the contents of the partition in a spare USB flash drive.
Once you determine the data in the partition is either not useful, or is backed up elsewhere, you can delete the partition. However, to resize the Ubuntu system partition  you will need to boot from a Live DVD/USB and select the option of Try Ubuntu without Installing. Ubuntu does not allow (unmounting and) resizing a running systems partition. See How to resize partitions? for details.
Hope this helps


Mounting a mobile phone: what is happening under the hood?

gio is doing the "hard work".

To mount an MTP device, you can do the following steps:

Connect device, select "Transfer Files" or something similar on the phone.
gio mount -li | grep unix-device and look for /dev/bus/usb/.... If you have several hits, remove the grep ... part and try again to find out which device is the phone.
gio mount -d /dev/bus/usb/... with the full path after unix-device from step 2.
The device's storage will be available at /run/user/1000/gvfs/mtp:host=... where 1000 is your user ID and may vary and the path ends with the string that can be found in gio mount -li's output after activation_root.


How do I change keyboard shortcuts in Nautilus 3.4

I believe I've figured it out:

The keyboard shortcuts are in ~/.gnome/accels/nautilus.

The shortcuts appear like this:

; (gtk_accel_path "<Actions>/ShellActions/TabsMoveRight" "<Primary><Shift>Page_Down")

To change a shortcut, modify the final quote section to the keyboard shortcut you want, and then remove the semicolon at the beginning. For example, if you wanted to change the above shortcut from Ctrl + Shift + Page-Down to Ctrl + Shift + Right, then change the above line to:

(gtk_accel_path "<Actions>/ShellActions/TabsMoveRight" "<Primary><Shift>Right")


How is robust terminal emulation achieved in Ubuntu?

Try terminator?

Free? ✓
Logging? ✓
Key binding? ✓

etc, etc....


Check the permission bits on /tmp:

ls -ld /tmp

drwxrwxrwt 6 root root 296 May 12 10:57 /tmp
  ^  ^  ^^

Escpecially notice the w's and the t at the start of the line. If you have different permission bits, change it using:

sudo chmod a+wt /tmp


I have an incomplete repository, how can I complete it

Use rsync as explained here- The great thing about rsync is it will grab EVERY file that is in those archives that don't match what you already have and you haven't specifically excluded. The problem is that because it does not discriminate for you, you will have to exclude what you don't want yourself. I recommend allocating a terabyte of storage to be safe as the more versions come available, the more space you will need. You will also need a high speed data connection due to the likely large quantity of data that will need to be transferred. I don't know how much of it you already have in your incomplete repository. If it's mostly complete that will reduce transfer time significantly.

You might wish to consider why your friend provided you with a partial repository. Perhaps the full mirror requires more storage than your friend (or you?) have available. This could have been done rather easily with use of the rsync --exclude switch as covered here. Due to the large and ever increasing storage needs you may wish to consider whether a full mirror is what you truly want. For instance you may want to exclude certain releases, architectures or sections if you have no use for them (precise is currently still in support but if you don't use it, you don't need it).


How do I get my ART USB Dual Pre preamp to work?

Does the installation CD come with a Linux version? If not, there's a small chance that you might be able to use Wine to install the Windows version. Barring that, you may be out of luck unless someone writes a Linux driver for your preamp.

If, however, the preamp simply presents itself as a mic or something, then my answer above doesn't apply. You can find out what information your computer can see for your preamp thus:

lsusb -v | less


Totem 3.10 -no audio mpeg4 aac after 4 seconds-

Run Totem again with system monitor opened (sudo isn't necessary).
Check CPU usage of Totem - If at 99% or 'Over' Typically hardware isn't able to keep up with the demands of the file being accessed.

Codecs are typically CPU-Hogs.

Perhaps try a faster system for best results.


Problem installing ubuntu 18.04 on my laptop

Problem solved.
It was SATA control mode issue.
I changed it from RST to ACHI and everything is OK.


On 12.04 I'm switching between English, Bulgarian and Greek with Alt+Shift without problems.
There is a package console-cyrillic that may be will be useful for you.


IPTV streaming stopped working (e. g. in VLC, smplayer)

It works now!

Things I did:

restart the system
installation of gnome-mplayer

I didn't tried it again in vlc, before installing gnome-mplayer and cannot tell therefore if the restart fixed it already.
With gnome-mplayer it worked instantly after installation. Then I tried vlc and smplayer and it worked as well.

But I noticed that it doesn't work to play the same stream simultaneously in two different players!

There is the same error message as before when trying this. So I assume, one of the players got stuck invisible in background before.


Errors when trying to build the game "The Secret Chronicles of Dr. M" with cmake

Install the required build compilers and libraries:

sudo apt-get update && sudo apt-get install build-essential


How to join a file of characters by line respecting blank lines using while in shell script?

I assume you're using the bash shell because of the -n1 option, which is not part of the POSIX sh standard.
If you drop the -n1, then read will assign a value to c only on non-empty lines. You can then use a parameter expansion of the form
   ${parameter:-word}
          Use  Default  Values.  If parameter is unset or null, the expan‐
          sion of word is substituted.  Otherwise, the value of  parameter
          is substituted.

to assign a default value of Space when c is empty. So
#!/bin/bash

while read c; do
    dest+=${c:- }
done < input.txt

echo "$dest"

Note that variable expansions don't need to be quoted on the RHS of an assignment - but should be quoted in the echo command else $dest will be subject to word-splitting and filename generation ("globbing") by the shell - particularly important when the variable may contain * characters.
Then given
$ cat input.txt
*
*
*

H
E
L
L
O

W
O
R
L
D

*
*
*

you should get
$ ./myscript
***  HELLO WORLD  ***


Software that listens on a port, and shuts down Ubuntu

A simple Google search for "perl tcp server example" will show your several (405,000) examples of how to write a simple client (to send a "shutdown" message to port 30102 on the server) and a simple TCP/IP server to listen for the connection on port 30102, do the desired identification/authentication/authorization dance, then (if the server is started as root) shutdown the system.


Try this command instead:

export PATH=$PATH:.

This will make it so that the system will look for executables in current directory without a "./".  The command that you gave will make it so that the system will always look in that directory no matter what directory that you are in.


installing rvm in 12.04 ubuntu which is on virtualbox

I think you are not able to reach get.rvm.io.
You could try running curl in verbose mode and expect some similar output.

Look for Connected to string.
If this is not visible and the command is stuck at About to connect() string, you can be assured you have a connectivity problem from your VM.

$ curl -Iv get.rvm.io
* Rebuilt URL to: get.rvm.io/
* Adding handle: conn: 0x16fef90
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x16fef90) send_pipe: 1, recv_pipe: 0
* About to connect() to get.rvm.io port 80 (#0)
*   Trying 97.107.133.48...
Connected to get.rvm.io (97.107.133.48) port 80 (#0)

  HEAD / HTTP/1.1
  User-Agent: curl/7.32.0
  Host: get.rvm.io
  Accept: /

  < HTTP/1.1 301 Moved Permanently
  HTTP/1.1 301 Moved Permanently
  * Server nginx/1.6.0 is not blacklisted
  < Server: nginx/1.6.0
  Server: nginx/1.6.0
  < Date: Sun, 25 May 2014 07:48:40 GMT
  Date: Sun, 25 May 2014 07:48:40 GMT
  < Content-Type: text/html
  Content-Type: text/html
  < Content-Length: 184
  Content-Length: 184
  < Connection: keep-alive
  Connection: keep-alive
  < Location: https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer
  Location: https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer

Connection #0 to host get.rvm.io left intact


Why does Sublime from terminal open two windows?

You didn't messed up with symlinks, sublime has installed correctly. That is actually the right behavior.

The reason why does it open two sublime instances (my bet):

There was a project already opened or
You didn't closed the previous files opened

In either case you may want to:

Close any project (Project -> Close Project) or
Close all the files (File -> Close All Files)


Ubuntu 20.04 should I downgrade libssl1.1 to libssl1.0 to install npm?

It looks like you have libssl installed through a PPA rather than the usual Ubuntu sources. If you do apt search --names-only libssl it should confirm that. The suggestion is to downgrade from g to f, not from 1.1 to 1.0: the changes between those versions are listed here and seem to me to fairly minor:

Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
*) Fixed segmentation fault in SSL_check_chain()
Server or client applications that call the SSL_check_chain() function
during or after a TLS 1.3 handshake may crash due to a NULL pointer
dereference as a result of incorrect handling of the
"signature_algorithms_cert" TLS extension. The crash occurs if an invalid
or unrecognised signature algorithm is received from the peer. This could
be exploited by a malicious peer in a Denial of Service attack.
(CVE-2020-1967)
[Benjamin Kaduk]
*) Added AES consttime code for no-asm configurations
an optional constant time support for AES was added
when building openssl for no-asm.
Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME
Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME
At this time this feature is by default disabled.
It will be enabled by default in 3.0.
[Bernd Edlinger]

Whether you're willing to accept that degraded capability for npm is up to you.


Touchpad: how can I keep my palms touching the top corners from registering as a two-finger scroll?

I don't know about adjusting the two-finger-scrolling width, but you open "System Settings" and go to "Mouse and Touchpad" you can set it to turn the touchpad off when you type and adjust the sensitivity.


How can I run a unlock.exe file to decrypt a Western Digital hard disk?

You would be better decrypting the drive from a Windows computer and then simply using TrueCrypt to encrypt it in the future.

If you do not have access to a Windows computer then you might want to give TrueCrypt a shot if you also know what cypher(s) was use to encrypt the drive.(Ex. AES-256)


Try adding the PPA again with the following command:

sudo add-apt-repository ppa:mkusb/ppa

I didn't see any keys being imported in the log you posted.

It should look something like this:

You are about to add the following PPA to your system:
 More info: https://launchpad.net/~mkusb/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.moYjnLh1cS --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 54B8C8AC
gpg: requesting key 54B8C8AC from hkp server keyserver.ubuntu.com
gpg: key 54B8C8AC: "Launchpad PPA for MKUSB" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Next, update and install the package with the following commands:

sudo apt update
sudo apt install mkusb


Low fps on games and no animations after update

Solution :
To get the latest Nvidia drivers it is necessary to add the Proprietary GPU Drivers PPA:
sudo add-apt-repository ppa:graphics-drivers/ppa

Enable 32 bit architecture (if you haven't already):
sudo dpkg --add-architecture i386

sudo apt update

Warning: Please ensure your graphics card is supported by the 450 driver before installing. _For a list of supported GPUs click here: https://www.nvidia.com/Download/driverResults.aspx/163238/en-us
Install the 450 driver:
sudo apt install nvidia-driver-450

Install support for Vulkan API (will be functional only if you have a Vulkan capable GPU):
sudo apt install libvulkan1 libvulkan1:i386

Then Reboot..


It seems there's a bug in the latest samba version:

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1572876?comments=all

For the moment, the only workaround I found was to remove samba and then install the previous packages using:

apt-get install samba=2:4.1.6+dfsg-1ubuntu2 samba-common=2:4.1.6+dfsg-1ubuntu2 samba-libs=2:4.1.6+dfsg-1ubuntu2 samba-common-bin=2:4.1.6+dfsg-1ubuntu2 samba-dsdb-modules=2:4.1.6+dfsg-1ubuntu2 python-samba=2:4.1.6+dfsg-1ubuntu2 libldb1=1:1.1.16-1 python-ldb=1:1.1.16-1


How to disable the discrete graphics on 16.04?

Try this for a change :

How can I disable ATI discrete graphic GPU at startup in Ubuntu 14.04 without BIOS?.

Some possible solution at page bottom. In particular, try to pass radeon.runpm=0 to the kernel instead of radeon.modeset=0 .


At this point Ubuntu 12.04/precise is out of support, so this specific question is mostly no longer relevant.  However, some information on the general process may help you out.

In Ubuntu 12.04 and 14.04, cloud-init very much followed the standard Stable Release Updates policy in Ubuntu.  We only backported bug fixes but left the major version the same.

In 16.04 and going forward in 18.04, we have an exception to the SRU process.  We are actively pulling back new versions which allows us to add new features and keep the same code base active on all Ubuntu releases > 16.04.


How to run a bash script in terminal but hide the terminal on startup?

If you you select the script as executable and uncheck the "run in terminal", then cuttlefish will run the script without displaying it in a terminal

Of course the script has to be executable (enter chmod u+x /path/to/your/script.sh in your terminal) and must provide a shebang (the first line in the script should be something like #!/bin/bash).


How to get the Lenovo Y50-70 SUBWOOFER to work on Ubuntu 16.04.1

Here's a new type of solution I've attempted that works for me: https://github.com/dragosprju/y50-subwoofer-linux-enabler. Also, here's the question I posted with answers on which the solution is based on: https://superuser.com/questions/975219/how-to-disable-power-saving-on-my-lenovo-y50s-subwoofer-audio-pins.

Good luck!


Howto install google-mock on Ubuntu 12.10

OK, I've now successfully started using gmock by building my own version as per the README provided with the source download from googlemock project website.

Get the download zip from the website:
http://code.google.com/p/googlemock/downloads/list

Unzip this to a directory, say ${GMOCK_ROOT}. Then, as per README instructions:

cd ${GMOCK_ROOT}
mkdir build
cd build
g++ -I../gtest/include -I../gtest -I../include -I.. -c ../gtest/src/gtest-all.cc
g++ -I../gtest/include -I../gtest -I../include -I.. -c ../src/gmock-all.cc
ar -rv libgmock.a gtest-all.o gmock-all.o

Thus you have your own libgmock.a in ${GMOCK_ROOT}/build. You actually also need pthreads to compile, so your compile command after that becomes:

g++ -I${GMOCK_ROOT}/include/ main.cpp -L${GMOCK_ROOT}/build -lgmock -lpthread


Not all TTF fonts visible from the (Sun) JDK

The problem is with the Monaco font itself, it doesn't seem to have appropriate metadata and is a hacky port, so Java doesn't recognize it. Probably you can find some other version of this TTF file which will work better or try to fix it yourself using FontForge.

See also my comment in the IntelliJ IDEA issue tracker.


Landscape "System error" when Monitoring multiple Computers

I was having the same issue with 16.03 and this solved it:

Landscape - Script error

It appears to be a bug where if the capitalization of the server name in the browser and configurations don't match with an error like yours:

Untrusted redirect to host ':443' not allowed.


It is quite easy to clone a partition with gparted. Boot from your bootable usb, plug in a second usb drive which is bigger than your partition that you are cloning. Start gparted and simply Copy the original and Paste to Unallocated Space on the second usb drive.

Warning: the cloned drive will have the same UUID number as the original partition, so do not boot into Ubuntu on the hard drive with the second usb plugged in. Ubuntu will get confused as to which partition is /


Dual booting Ubuntu on Windows 7 from E:// drive

Note:  When dealing with partitions, always make sure that you have a full backup of your system just to be on the safe side.

Because you will be choosing/creating partitions manually, the option you want to select is Something else.  It starts at the Installation Type screen, and goes through choosing and/or editing the partition.  Make sure that you choose the right partition.

According to the link that you included in your question, it would be the second Installation Type screen, where it lists all the available partitions.

Keep in mind that the partition will not be labled as E:/ but as sd(x), where (x) is the partition number, and it will show empty next to it.

Note: Since you already have free unallocated space on the hard drive, you do not have to go through this partition resizing process.

Images  compliments of linuxbsdos.com


Is there a way to install 5D-Embroidery program in Ubuntu 18.04?

I understand that if I had dual-boot, this would be an easy fix.

Sure but there is an even better method: install virtualbox and inside virtualbox you install Windows and can then use it as a regular Windows installation. That way you can use all the Windows software as asked with an easy backup of containers.

  Presently, VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts and supports a large number of guest operating systems including but not limited to Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7, Windows 8, Windows 10), DOS/Windows 3.x, Linux (2.4, 2.6, 3.x and 4.x), Solaris and OpenSolaris, OS/2, and OpenBSD.

A random image from the web to show how it looks:


Transmission fails to start on Ubuntu 14.04

This happened to me after a very bad termination of Transmission. I couldn't get it to start no matter what selective removals I did from the config folder, but removing it altogether worked:

rm -r ~/.config/transmission

Keep in mind that this means that all configuration options, all added torrents and all stats will be deleted, and it will be as if you launched Transmission for the first time.


hardware/mailserver Docker image

This is a solution using docker:
https://hub.docker.com/r/hardware/mailserver/

Source Repository:
https://github.com/hardware/mailserver

It's quite easy to configure and do what you need.

  Simple and full-featured mail server as a set of multiple docker images includes :

  Postfix : a full set smtp email server
  Dovecot : secure imap and pop3 email server
  Rspamd : anti-spam filter with SPF, DKIM, DMARC, ARC, ratelimit and  greylisting capabilities
  Clamav : antivirus with automatic updates and third-party signature databases
  Zeyple : automatic GPG encryption of all your e-mails
  Sieve : email filtering (vacation auto-responder, auto-forward...etc)
  Fetchmail : fetch e-mails from external IMAP/POP3 server into local mailbox
  Rainloop : web based email client
  Postfixadmin : web based administration interface
  Unbound: recursive caching DNS resolver with DNSSEC support
  NSD : authoritative DNS server with DNSSEC support
  Træfik : modern HTTP reverse proxy
  SSL : let's encrypt with auto-renewal (SAN and wildcard certificates), custom and self-signed certificates support
  Supporting multiple virtual domains over MySQL/PostgreSQL backend
  Integration tests with Travis CI
  Automated builds on DockerHub


Install Wine, then download and unpack your software:

sudo apt-get install wine
wget http://www.qual2k.com/download/Q2Kv2_12b1.zip
unzip Q2Kv2_12b1.zip

Try to launch it:

WINEARCH=win32 wine q2kfortran2_12.exe

wine: created the configuration directory '/home/xenial/.wine'
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:storage:create_storagefile Storage share mode not implemented.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddrChange (Handle 0x10ee8a0, overlapped 0x10ee8ac): stub
wine: configuration in '/home/xenial/.wine' has been updated.

               ╔═══════════════════════════════════════════════╗
               ║                                               ║
               ║                    QUAL2K                     ║
               ║                                               ║
               ║           Ver 2.11b8 - Mar 2009               ║
               ║                                               ║
               ╟───────────────────────────────────────────────╢
               ║                                               ║
               ║           User should register with:          ║
               ║                                               ║
               ║                 Steven C. Chapra              ║
               ║             Hua Tao, Greg Pelletier           ║
               ║                                               ║
               ║             steven.chapra@tufts.edu           ║
               ║                                               ║
               ║     Department of Civil and Environmental     ║
               ║                  Engineering                  ║
               ║                Tufts University               ║
               ║                Medford, MA 02155              ║
               ║                                               ║
               ╚═══════════════════════════════════════════════╝
1

Also it shows warning window:

I do not know is it expected result or not, but it seems to be working.


You could see the parent's PID if you use the tree mode and/or if you move the mouse cursor over the process.


Installing VMware on 18.04: Failed to build vmmon

I found a solution and create a script file based on mkucebek's github sources .

You must create a file with this content and run it each time it's needed (Usually when you install a new kernel) :

#!/bin/bash
VMWARE_VERSION=workstation-12.5.9
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart

Then, you just have to launch VMware Workstation without building modules.


I plugged my kamvas 13 pro in a fresh Ubuntu 20.04 LTS and it works :

full-hd screen recognized
stylus working well as mouse
stylus pressure working in blender !!
multi-monitor setup (except for the stylus, see below)

What does not work out-of-the-box :

tablet buttons and slider
forcing the stylus area to a single monitor (tablet) ; the stylus moves to the entire desktop

To force the stylus area read
input coordinates transformation
and
tranformation matrix.
It works with this xinput fix :
xinput set-prop 15 --type=float "Coordinate Transformation Matrix" 0.5 0 0.25 0 0.333333 0.666666 0 0 1

... here is my monitors setup :

4K monitor on top
full-HD kamvas monitor below centered

I can now work on blender with my kamvas pro 13 in a dual-monitor config !!!!


Catalyst Control Center (Administrative) prompts for password, then won't open?

I thought I'd make another answer (can't comment ffs) seeing as though I got this issue on a clean 14.04 install and it took me another step to get it to work

First thing I did was run

sudo apt-get install gksu

As Remy5460 said, but I was just getting a graphical prompt that told me my password was wrong instead! To fix this, all I had to do was run

gksu-properties

and set Authentication mode to sudo rather than su

It's a shame a bug like this would persist onto an LTS release. This is one of the kind of reasons Ubuntu isn't more mainstream :/


Add the complete path of phpunit to ~/.bash_profile like this

export PATH=$PATH:tools/phpunit/vendor/bin/phpunit

Thats it :)

Make sure that you are adding the complete path of phpunit. This is same as setting the environment variable PATH in Windows. $PATH will retain the values of PATH variable and we are just appending the location of phpunit to it.

**If the ~/.bash_profile is not present you can add the line at the end of ~/.bashrc.


Running 32bit program on 64bit ubuntu 15.10

Install the 32-bit package of libproxychains3

sudo apt-get install libproxychains3:i386

and read Why are there so many 32-bit dependencies for Skype?.


Can I remove "Free space" text from the Nautilus status bar?

Since there's no preference for this change, then unless there's a GConf key for this (which I doubt), you're out of luck unless you want to modify the Nautilus source code yourself and build your own custom Nautilus.

The general approach in Gnome is to ensure that there are as few settings as possible--all in the name of simplicity and usability. This mindset annoys me considerably at times.


Ubuntu 16.04 - Mouse moves but cannot click

This has probably got something to do with your drivers. Change your display drivers to Nvidia proprietary drivers. Hopefully, it will resolve the issue.


Error message "Wrong __data_start/_end pair" while using mpb in Ubuntu 20.04 Windows Subsystem for Linux

I just had exactly the same problem.
Upgrading WSL from version 1 to version 2 seems to have fixed it.

Follow steps 2-5 from the official upgrade instructions: https://docs.microsoft.com/en-us/windows/wsl/install-win10

Update your existing installations to WSL version 2 as follows:

Start a powershell as admin

Run wsl -l -v to check your versions and installations. Example output:

PS C:\WINDOWS\system32> wsl -l -v
NAME            STATE           VERSION
* Ubuntu-18.04    Stopped         1
Ubuntu-20.04    Stopped         1

Upgrade with wsl --set-version Ubuntu-20.04 2. Example:

PS C:\WINDOWS\system32> wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.

If you get this error:
PS C:\WINDOWS\system32> wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The requested operation could not be completed due to a virtual disk system limitation.  Virtual hard disk files must be uncompressed and unencrypted and must not be sparse.

Go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...).
Right click on "LocalState", Properties, Advanced
Deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked).
When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

Finally, check your WSL version: WSL: Am I running version 1 or version 2?
References:

https://dev.to/wrightdotclick/20x-faster-speeds-by-updating-to-the-new-wsl-2-a-user-s-installation-guide-57n4
https://github.com/microsoft/WSL/issues/4103


Raspberry Pi 3 cannot see Ubuntu hotspot

Check to see what band, not channel, is being used on your hotspot.  The Raspberry Pi 3 only has a 2.4Ghz radio.  If you're publishing your hotspot using 5Ghz, it will not see it.


How to make a Gtk.Iconview react to single click instead of double click?

One solution (but only for the single click activation) is of cause to use the selection_changed signal of the IconView (because the IconView selection is single click based).

A sample that assumes a working on_item_activated signal would be:

def on_icon_view_selection_changed(self, widget):
        self.on_item_activated(widget, widget.get_selected_items()[0])


My BCM 4311 Wireless is not working. How can I fix this?

I had the same problem here! This is the fix that I used to great success:

Ubuntu 11.10 getting wireless BCM4311 working

The basics are this:

sudo apt-get update
sudo apt-get install firmware-b43-installer
sudo apt-get remove bcmwl-kernel-source
sudo reboot

The article will give you more background on the issue.


How do I setup an ssh key system without interaction?

Here's the plain code (copying and pasting WILL NOT WORK!!! Change things like my-username and my-ip). Run on both hosts:

#!/bin/bash
apt-get -y install sshpass
ssh-keygen -p -N "" -f ~/.ssh/id_rsa
sshpass -p 'my_password' ssh-copy-id my_username@my_host_2

Replace my_host_2 with my_host_1 on machine 2.

Explanation:

The first line, #!/bin/bash is called a shebang. Look here for more information.

The second line installs sshpass without interaction.

The third line uses ssh-keygen to create a key. -q means quiet; it dosen't ask as much. -N "" means no password and -f means to save it in the default location.

The last line copies the actual key using ssh-copy-id and sshpass. You cannot echo the password through stdin, so we use sshpass which is the closest equivalent. -p is the password to use. The argument to ssh-copy-id is the username and host to copy the key to.


The solution to the problem was absolutely non-trivial. The first thing I did, was installing dictionaries-common package, because that's what causing initial problem.

sudo apt-get install --reinstall dictionaries-common

After that I just tackled one problem after other. I collected problematic files manually and put them where asked and that's what solved my problem. One big lesson to learn from here is to never mess with system files under any circumstances.


/bin/bash: line 1: simg2img: command not found. means that the first line in simg2img contains a command that cannot be found.

You could try inspecting this line(nano /out/host/linux-x86/bin/simg2img); it might just be a dependency.


There is no difference in actual performance, but from a package managing point of view the repositories are best. That way the package you install is registered with apt (the package manager) which allows easy updating and removal, and takes care of dependencies. Installing from a .run file (nvidia website) does not have these advantages; removing it might not be trivial.

NOT RECOMMENDED:

You can convert the .run file to a .deb (the file format apt works with) by following the steps in How can I convert the Nvidia driver installer into a deb?.
That is also how the driver gets into the repository in the first place. You would for instance do this if there is a new driver on the nvidia website which is not yet in the repositories, and you can't wait.


How to make apache2 use php 5.4.5 compiled from source?

It's not a good practice to upgrade Ubuntu packages manually, it's recommended to wait for the upgrade of the specific package that comes natively with the Ubuntu upgrades.

However, if you must use this approach, here's a walkthrough on how to upgrade your PHP to v5.4.x via PPA: http://www.zimbio.com/Ubuntu+Linux/articles/D_AsJR2qAL6/How+Upgrade+PHP+5+4+Ubuntu

Since you have reported "php -v" and phpinfo() version discrepancy, "php -v" gives you the version of the cli installation of php, while phpinfo() will give you the version which got installed as Apache module.

If you are not using cli php anywhere, you should be fine with running php scripts off Apache. But ideally you should fix this. I think the issue is this that your Apache and libapache2-php5-mod have been installed via ubuntu packages while you have compiled php from source. When you installed libapache2-php5-mod via apt-get install, it would have taken the relevant php package from the repo as a dependency, as seen in packages.ubuntu.com/hardy/libapache2-mod-php5 You will need to uninstall Apache, and then install apache from source instead of using the ubuntu repos to do what you wish to do.

I recommend you not to install PHP from source, but to use the PPA approach from above.


/etc/acpi/powerbtn.sh for full shutdown menu?

Found the command on the Linux Mint forums.

First, edit /etc/systemd/logind.conf as jeremija recommends.

Then, simply comment out that last line that shuts down and add

gnome-session-quit --power-off


How to read .json to output an specific number?

IMO the right way to do this (as suggested in a comment by @fedonkadifeli ) is to use a JSON-aware tool to select the list element with your desired timestamp.

For example, the first timestamp 1574629200 represents today, 24th November 2019 16:00 EST and using jq on the saved weather.json file:

$ jq -r --arg dt "$(date +%s -d 'today 16:00:00 EST')" '
    .list[] | select( .dt == ($dt | tonumber) ) | .weather[].icon
  ' weather.json
04n

If you don't need the weather data for other purposes, you could consider piping the curl output straight to the jq command rather than saving it to a file.

If you don't care about a particular time of day, you can get the first icon even more simply

curl ... | jq -r '.list[0].weather[].icon'


Stopping daemons from loading at boot time

You can use the chkconfig utility for this purpose.

sudo apt-get install chkconfig

To check the run level status of squid you can run this command:

 chkconfig --list | grep squid

This will output something like below:

squid           0:off   1:off   2:on    3:on    4:on    5:on    6:off

To turn off squid in all run level you can  use this command:

sudo chkconfig  squid off

 chkconfig --list | grep squid

squid           0:off   1:off   2:off   3:off   4:off   5:off   6:off

To turn off squid in a particular run level you can use this command:

 chkconfig  --level 3  squid off


You can boot the machine with a ubuntu installation cd. Then select "try ubuntu" and mount the server disk. From there you can try to troubleshoot any issues. Or alternatively you can make a backup of the machine and do a reinstallation (the system /home /etc and /var are most likely sufficient for a backup).

If there's something wrong with the network configuration have a look at /etc/network/interfaces.

If you do a reinstallation beware of any databases stored on the computer: Databases cannot be recovered by just copying the configuration folders (in most cases).


Fascinating, people are mostly after upgrades rather than downgrades! In your case you want to revert from Xenial's version 3.4.3 to Trusty's version 3.3.1 which is easy enough to do with a few relatively straightforward steps:

Activate Sources

Give access to the Sources used to build the gthumb package by following the trail below and clicking on the Source Code box at Dash → Software & Updates → Ubuntu Software → Source Code.

Close and allow to reload. Then install the build dependencies for gthumb:

sudo apt-get build-dep gthumb

Download and build gthumb

Copy the following and paste complete in a Terminal window for a semi-automated download, compile and install:

sudo apt-get install checkinstall
NEW_PATH="$HOME/Desktop/gthumb_build"
mkdir -v "$NEW_PATH"
cd "$NEW_PATH"
wget http://ftp.acc.umu.se/pub/gnome/sources/gthumb/3.3/gthumb-3.3.1.tar.xz &&
tar xvf gthumb-3.3.1.tar.xz
cd gthumb-3.3.1
./configure
make
sudo checkinstall --pakdir "$NEW_PATH" \
     --backup=no --deldoc=yes --pkgname gthumb --pkgversion 3.3.1 \
     --fstrans=no --deldesc=yes --delspec=yes --default

Pin this particular version

You will need to avoid the newer version being installed over your compiled version next time you run an update. There are a few different ways to accomplish this, easiest way is to run the following:

echo "gthumb hold" | sudo dpkg --set-selections

And now the older version will not be upgraded with your next system update! A screenshot on my own system with the older version in place:

References

Ask Ubuntu: How to prevent updating of a specific package?


It seems that the mysql server is not running.

In a normal mysql installation, you can check if the server is running with the following command: service mysql status

For starting it, just run service mysql start.


How can you check whether a site is hosted by Google Sites or not?

I don't know if you can specifically identify what you're looking for, and I'm not entirely sure what you mean since Google Apps is a suite of stuff. Sites are hosted by other products that form a part of Google Apps. I'm assuming that you mean to refer to Google Sites.

The function below actually looks for sites that contain GSE in their server name in the HTTP headers. Cursory tests indicate that this will identify Google Sites, but those tests are incomplete.

Define this function somewhere. You can type it directly into Bash, or put it into one of your shell startup files:

function hosted_by_google_sites {
  if [[ "$(curl --head --silent "$1" | egrep '^Server:')" =~ GSE ]]; then
    return 0
  else
    return 1
  fi
}

You can use it like this:

if hosted_by_google_sites "http://www.example.com/some_url"; then
  do_something
fi

Or:

hosted_by_google_sites "http://www.example.com/some_url" && echo "Yes. Hosted by Google sites."

You said you wanted a one-liner. I'll leave that as an exercise for you, since representing this as a function is far superior, IMO. It could be done as a one-liner, but it'd be messy.


Well, my advice to you would be to try to isolate the problem and then try to find the cause.

Have you tested the sound through the HDMI cable from an device? Maybe another computer or a dvd player? Or plug the ubuntu + HDMI into something other than the target TV? Just to be sure that the cable and the TV work.

Then when you are sure the problem is in the ubuntu system, then you focus should be on  a couple possibilities in the hardware itself, the firmware, and then the configuration.

For hardware errors, Look in the log files, syslog or Xorg.0.log. After a boot of the system, any hardware problems might be evident if present.

For the firmware and configuration, look up the actual hardware you have and find out what the kernel driver is. Then google the hardware for people who have workarounds for your setup. This is a good resource: https://help.ubuntu.com/community/SoundTroubleshooting


The digikam icon is specified in a file called /usr/share/applications/kde4/digikam.desktop or /usr/share/app-install/desktop/kde4_digikam.desktop (I don't know which of them is actually used).

Anyways, these files are simple text documents that you can edit in administrative modus. There are two ways of doing that: text editor or GUI. Text editor:

gksudo gedit /usr/share/applications/kde4/digikam.desktop

There is a line in this file that starts with "Icon=". You need to replace the path after that file with the path to the icon of your choice.

GUI:

gksudo nautilus /usr/share/applications/kde4

Locate digikam.desktop, right click, select "Properties", click on the icon and choose a replacement.


How do I install a Gadmei TV Tuner (UTV380)

If you have more than a video source (which seems to be your case), you must specify which one is going to be used by tvtime in order to get the images.

In order to know which are your video sources you can drop this in a terminal: ls -l /dev/video* and you must have an output like this:

geppettvs@DYLAN:~$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 2012-04-17 19:53 /dev/video0
crw-rw----+ 1 root video 81, 1 2012-04-17 19:53 /dev/video1
crw-rw----+ 1 root video 81, 2 2012-04-18 17:54 /dev/video2
geppettvs@DYLAN:~$

Then you must try with each different video source, tvtime usually starts from 0, so you try from /dev/video1 with this command in a terminal tvtime --device=/dev/video1

If everything is ok then you'll see the TV signal in a window. If it drops an error please edit your question with the output of your terminal in order to edit this answer with an advice/solution.

Expected issues: Video but no sound. Be warned.

  Additionally, if you face sound issues or no-sound while playing the
  tv station, just try this in a terminal, change the 48000 value for
  whatever your broadcast can stand for, in certain cases 32000 is good
  enough but it depends on your tv tuner.

  tvtime --device=/dev/video1 | arecord -D hw:1,0 -r 48000 -c 2 -f S16_LE | aplay -

Check this out: https://askubuntu.com/a/45391/9598 and don't forget to use the proper
--device=/dev/video1 when needed.

Good luck!


Disabling Touchpad on Startup; rc.local Not Working

You can disable the touchpad on boot up by creating a .desktop entry in your /.config/autostart/ directory.

In order to perform that, follow the below steps.

First we need to create the desktop entry in .config/autostart/ in the home directory of our user using the following command.

touch /home/<user>/.config/autostart/touchpad.desktop (file name is optional)

then we need to add entries in the file and make the file executable.

vim /home/<user>/.config/autostart/touchpad.desktop

and paste the following in that file.

[Desktop Entry]
Name=Disable touchpad
GenericName=Touchpad disabler
Comment=Disables touchpad
Exec=xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0
StartupNotify=true
Terminal=false
Type=Application
Name=touchpad.desktop

save the file and exit the editor.

And make it executable using the following steps

chmod 755 /home/<user>/.config/autostart/touchpad.desktop

Reboot and check. Your touch pad would be disabled in your  login.

To enable tocuhpad after disabling it, you may run the following in a terminal.

xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1

Note that this would enable touchpad only for the current session. You have to remove the desktop entry or change the value from 0 to 1 in order to enable the touchpad on boot up.

If you want to disable the touchpad only and not the physical buttons (Left and right click), then

replace Exec=xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0 to

Exec=synclient TouchpadOff=1


Matlab, Openface, FaceLandmarkImg versions problems (Ubuntu 16.04)

I did

LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5" ./matlab

and it worked.

More explanations:
It looks like matlab was unable to find these two needed libraries: libstdc++.so.6 and libtiff.so.5
The command above "launches" these two libraries before launching matlab. So now matlab is able to find them.
I think an other way to avoid my problem was to specify to matlab the way to find theses libraries but I have not been able to do that.


How to open files from folders using terminal command

I know you already accepted an answer but I think it will be better if you know that this has been discussed in the past with better answers like this one, which I reproduce right here for you.

xdg-open file.dvi

xdg-open will open any file with its default application. As a bonus, you can close the terminal without killing the application.

Since xdg-open is quite a long name, I put an alias for it in .bashrc:

alias go='xdg-open'

This way you don't need to know what application open this file or another. xdg-open will invoke whatever software is related to the file contents or extension.

Don't forget to give credit to Mihai Capotă for his good answer.

Good luck!


You should try this:

Log in to recovery mode and then 'resume'
Edit /etc/default/grub, change the line GRUB_CMDLINE_LINUX_DEFAULT so that: "quiet splash" becomes "dis_ucode_ldr quiet splash"
Run: sudo update-grub

Hopefully, this works for you.


How do I show battery percentage in GNOME Panel without using any extension?

Open dconf Editor and navigate to /org/gnome/desktop/interface/show-battery-percentage. Then disable "Use default value" and select True in the "Custom value" field.

Alternatively just open Terminal and run

gsettings set org.gnome.desktop.interface show-battery-percentage true

Same settings can be found in (GNOME) Tweaks under Top Bar:


Is it possible to recover Tomboy Notes from Ubuntu One, now that the sync feature is gone?

According to the article:

The ‘notes’ feature of the Ubuntu One web interface is to be removed.
The feature removal will only impact on the Ubuntu One website itself. Note sync to Ubuntu One through Tomboy or similar applications will not be affected.

So it appears you can keep using the feature from Tomboy.
That said, it's a good idea to keep external backups of any important material you place on cloud services.


Installing Ubuntu 18.04 can't see my partitioned HDD

Your partition table is invalid: primary partition #3 lies within the range of primary partition #4, which isn't too bad because #4 is an extended partition meant to contain logical partitions and #3 doesn't overlap with any of those logical partition, but it's still invalid and a careful partition manager will fail and do nothing instead of making things worse.

You can use fixparts to fix this issue (according to its manual page):

Back up the current Master Boot Record (including the partition table) in case something goes wrong:

sudo dd if=/dev/sda count=1 > /path/to/sda.mbr

The path of the back-up file /path/to/sda.mbr should lie on a persistent storage device, e. g. a connected USB drive, as opposed to the ephemeral file system of a live system.

If something does go wrong and after you verified that /dev/sda still refers to desired drive (which may change on every boot) you can restore it with the following command:

sudo dd if=/path/to/sda.mbr of=/dev/sda count=1
sudo partprobe /dev/sda

Run fixparts with the “logical” (on partition 3), “sort” and “write” (confirmed with yes) commands:

printf '%s\n' l 3 s w y | sudo fixparts /dev/sda