Modify keyboard layout/settings to accommodate jelly comb ultra slim

Problem solved:

This kind of bluetooth keyboard has a special functionality that is activated when NUM-LOCK is on (it's pretty useless). If you turn off NUM-LOCK the keyboard works as expected.

So if you're having this problem just turn off NUM-LOCK.


How do I forward sound from one computer to another over the Lan?

The least complicated method to send audio from one Pulse Audio server to another over the LAN is to use the RTP/Multicast feature that you are able to set up using paprefs .
On the sender:

Choose your local soundcard or choose a separate device you can select as audio output from Audio Preferences.
On the receiver:

By doing so audio will be sent from the sender to the receiver via your LAN.


This is a perfectly reasonable response, if you connect to a web server.

Telnet is, besides other things, just a plaintext conversation between two computers. It's super basic. So if you connect to Google on port 80, you're going to talk directly to the web server, in a similar way to how the browser would.

You see an error because ls is not a valid HTTP request. GET / is valid and works.

Similar will be true of any other plaintext protocols. If you want a shell server over telnet, you need to connect to one. They still exist but you really aught to be using SSH these days. It's better in almost every measurable way.

Why did Telnet ever exist? To serve as a remote terminal... But you're talking as if Telnet only came into existence last month. It's 47 years old. Many things that used to be useful have been replaced with modern equivalents.


How can I set the cursor theme on KDE Plasma 5 programmatically?

After some searching, I found out a few things that you may be able to do.
Note that the following solutions only works under X11, I have no idea how to make it work with Wayland.

sudo update-alternatives --config x-cursor-theme as a bash command, and then restart your computer/KWin and plasma shell (original answer for Gnome: https://askubuntu.com/a/73736/661239)
Using the python Xlib (https://github.com/python-xlib/python-xlib) and adapting the following C++ code: https://stackoverflow.com/a/16848981/7520341
There is this great ArchWiki page with which you may be able to see what you may be able to do: https://wiki.archlinux.org/index.php/Cursor_themes


From the error message, the version of Ubuntu you are using is Ubuntu 12.10 quantal.

This version is out of its support time, you need to install a newer release.
For this, see How to install software or upgrade from an old unsupported release?

The actual error is that the server does not longer have package files for quantal.

For details on the support times of releases, see https://wiki.ubuntu.com/Releases
Quantal is listed in table "End of life".


Unable to save file in node editor using .save filename

I'm using a macbook air and like you I'm a newbie to node.js, also I faced this issue, but I managed to resolved after trying a few options when I realised that there was an error to read repl.history.
despite my efforts, I was still unable to read/save after sudo npm installing repl.history, that is when I realised the solution was to call sudo before you access node.
$ sudo node

After keying in your password, paste your following codes.
function today(){
   return new Date();
}
function add(x, y){
   return x = y;
}
function random(){
   return Math.random();
}

Now try using .save m7.js it should indicate Session saved to: m7.js.
Good luck


Same thing happened to my when upgrading Mate to 17.10.

I went to System -> Preferences -> Look and Feel -> Language Support.

I'd previously selected English (UK) as my menu/windows language so on first opening this up I was prompted to upgrade, which I did.

My intention, and what I went on to do, was to change the "keyboard input method system" from "XIM" to "None".  Rebooted, and that seemed to clear the error message at login without any other ill effects - so far!

My logic... I don't have ibus on my machine and I didn't see the need for it if I don't need exotic fonts.  My default display manager is lightdm, so that would trip the first condition in the 21_ibus.rc file, taking me to line 6, which seems to disable the IBUS_SYNC mode and force XIM.  Again, not installing ibus, so can't use the ibus-deamon, therefore I can't have the XIM option - so I switched the keyboard option, as indicated above, and that seemed to work.

To do that on KDE open a terminal and type

 im-config -n none

Suspect it's a minor configuration issue, but would welcome learning if there's a more robust solution.


I had a problem with speed when I tried to use a second hard disk, I found, after a lot of hunting, scanning and sweat, that there were bad sectors on the second HDD, a new HDD sped things up considerably.


Flash stops responding on some websites in latest Chrome in Ubuntu 14.04

I have been having the same issue earlier today, this fixed the issue for me.

  To fix this issue, you could install Pepper Flash Player, a safer and
  more stable version of Flash Player from Google. An Adobe Flash Player
  Pepper installer is available in Ubuntu 14.04 repositories. This
  installer downloads Google Chrome, extracts Pepper Flash Player and
  sets it up for Chromium usage.

sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install

Source


I am an "newbie", but will share what I know. Last week, I installed Ubuntu 20.24 (the desktop/Server package) on my ASUS Sabertooth, R2.0 motherboard, running an eight core AMD chip at 3.8 G-Htz, with 8 gig of ram, having a WD 2.0 T-bite HD. It would not boot up to the start up screen. During installation, the internet connection was severed. I determined that was the cause. Installation would hang, giving a[WARNING]... After asking some questions, and looking over answers, using this forum and answers from internet searches to accomplish the updates, I opened the  terminal and installed updates for all my apps, which I chose during setup. Finally, after some frustration, the updates were installed, but it still would not boot up, even though it did boot further than where it was prior to the updates/up-grades. Afterwards, I found one suggestion suggested to disconnect all exterior drives. After I removed my CD/DVD drive, it did boot up completely for me. Part of the process included booting up again, with my installation flash drive inserted. I believe this gave the boot process access to information it needed to correct the problems made by the interrupted network during the first installation. At any rate, my server boots up now. I am able to access the desktop area with my password, although I am still in the process of completing my server set up.


How to change ownership of the partitions

I came here because I had the same problem, and I'm also a novice, and I use Ubuntu because it is open source, not because I'm interested in learning Linux. The command Rinzwind suggested didn't work for me, and after looking up more about chmod I was nervous about using the suggestion in the comment by oldfred, being a beginner.

These instructions worked, and seemed a lot less likely to bork my system if I made a mistake:

How To Set Write Permissions on Ext4 Partitions in Ubuntu Linux


I don't think opening a terminal will do much good if you haven't installed Ubuntu yet.  You want to get to the BIOS menu; I don't know what it is on the Eee PC, but often you must press F2 or F12 while it boots up.  The correct key is probably in a manual somewhere or displayed on screen.  You want to choose to boot from the USB.  Then you can install Ubuntu and use a terminal to your heart's content.


Asus G75VX / Xubuntu 13.10 EFI installation Blank Screen

Can you boot the installer in legacy (aka CSM or BIOS) mode? If you can, then you can:

Install Linux in BIOS/CSM/legacy mode.
In Windows, install my rEFInd boot manager.
Edit the refind.conf file: Uncomment the scanfor line and ensure that hdbios is among the options.

The result should be that rEFInd will appear when you reboot, and it will give you at least two boot options: One for Windows and one with a gray diamond icon that will boot to the BIOS-mode GRUB, and from there to Linux. You can also add an EFI filesystem driver for ext4fs (or whatever filesystem holds your Linux kernel) to experiment with direct EFI-mode booting. If you can eventually get this to work (because of kernel upgrades or whatever special kernel options overcome the problem), you can switch to a direct EFI-mode boot of Linux.


Fn Keys not working after Update on Ubuntu 14.04.3 - Rollback updates?

I also had problems with my fn keys with Ubuntu 16.04. I was able to figure out a solution thanks to this answer. Assuming that your problem is the same as mine, if you disable 'num lock' the keyboard starts to work properly again.

If this does not work for you, one workaround that used to help me was to plug and unplug a usb keyboard to my laptop and the laptop keyboard would go back to normal. However, once I restarted ubuntu, I had to do it again.

Hope this helps.


I reported the bug here and supposedly the patches have been submitted but not taken yet. Meanwhile, if you set the environment variable KSCREEN_BACKEND=Fake, okular and kded both start working again.


Intel Corporation Centrino Wireless-N 1000 connection drops infinite times

This command will turn N speed off for your device permanently but not in your router:

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwldvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

The commands you ran in your question to disable N speed are only temporary they are lost when you reboot.


Make Nautilus "search" show icons instead of list

You can switch between list and icon views using the icons located at the top right corner (refer to the screenshot below), left one is for list view, right one is for icon view.


What is this device in "additional drivers"?

According to intel :

  The microcode data file contains the latest microcode definitions for all Intel® processors. Intel releases microcode updates to correct processor behavior as documented in the respective processor specification updates. While the regular approach to getting this microcode update is via a BIOS upgrade, Intel realizes that this can be an administrative hassle. The Linux* operating system and VMware ESX* products have a mechanism to update the microcode after booting. For example, this file will be used by the operating system mechanism if the file is placed in the /etc/firmware directory of the Linux system.


How can I fix my dual-boot machine that now fails to load Windows?

You can try this:

Enter to Ubuntu
Enter to terminal and write:

$ sudo update-grub2

This will make that ubuntu to detect the O.S. in your computer.

I hope that this could fix your problem.


Ah... windows client.

There is a free ssh client called PuTTY.

It is possible that the client allowed you to create instances that have no authorized keys.  Check this by running:

juju get-env authorized-keys

You may need to create a key pair using PuTTY, and add the public key to the authorized-keys. Unfortunately this wouldn't help any machines already running.

Probably best to just destroy that environment and start another one.


Is there any way to use the audio input of a 13" MacBook Pro?

See my answer at Bad sound quality and headphones not working for the steps to troubleshoot the issue and provide more information. This is an issue with sound support in the Linux kernel.


Compiz Grid doesn't resize to different sizes

You can alter the settings for this using the Compiz Config Settings Manager.
For the Grid plugin go to the Edges tab. Then per edge you can set how it should resize.
The bindings tab will then allow you to set up the shortkeys for that.


How do I fix lagging windows and remove a graphics card watermark?

The Catalyst 11.9 is now in the Ubuntu repos, and you can install it.

Look here: Amd HD 6850M, Acer 7750G driver issues


I would have to guess that :S is a sticky IP.

It is a cross between dynamic IP and static IP, a sticky IP is assigned dynamically, but hangs onto your broadband modem as long as you don't have to reset it.

  What most cable poviders will use is what is called A sticky dynamic
  IP address or sticky IP is an informal term used by cable and DSL
  Internet access subscribers to describe a dynamically assigned IP
  address that does not change often. The addresses are usually assigned
  with the DHCP protocol. Since the modems are usually powered-on for
  extended periods of time, the address leases are usually set to long
  periods and simply renewed upon expiration. If a modem is turned off
  and powered up again before the next expiration of the address lease,
  it will most likely receive the same IP address.DSLReports


Ubuntu 12.04 fails to boot after sudo apt-get upgrade

After a few days I did a sudo apt-get upgrade again and I was able to install the proprietary driver again. Now everything works correctly again.


Traceback error virt-manager : 'module' object has no attribute 'SSL_ST_INIT'

To fix it :

sudo apt-get --auto-remove --yes remove python-openssl
sudo pip install --user --upgrade cryptography
sudo pip install pyOpenSSL

I hope that will help people !


How to change device class of a bluetooth headset?

So I experienced the same thing and I use a Kali Linux  what I did was I copied the files from a working bluetooth device

sudo nano /var/lib/bluetooth/EB:D4:3D:F5:C3:32/1C:6B:37:D2:D3:4B/info

J-800L (Head set seen as Keyboard)

I changed the class and services

Name=J-800L
Class=0x302540 # is the class of a KeyBoard
Services=00001101-0000-1000-8000-00805f9b34fb;0000110b-0000-1000-8000-00805f9b34fb;0000110c-0000-1000-8000-00805f9b34fb;0000110d-0000-1000-8000-00805f9b34fb;0000110e-0000-1000-8000-00805f9b34fb;0000111e-0000-1000-8000-00805f9b34fb;00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;

# Services of KeyBoard

Copy from

 sudo nano /var/lib/bluetooth/EB:D4:3D:F5:C3:32/1B:6E:22:C3:F3:8B/info

Q5 (Working Headset)

Name=Q5
Class=0x240404 # is the class of an Headset
Services=0000110b-0000-1000-8000-00805f9b34fb;0000110c-0000-1000-8000-00805f9b34fb;0000110d-0000-1000-8000-00805f9b34fb;0000110e-0000-1000-8000-00805f9b34fb;0000111e-0000-1000-8000-00805f9b34fb;

# Services of an Headset

You can just use what I have for Q5 if you don't have a working headset

Then run the :

sudo systemctl restart bluetooth

or

sudo systemctl start bluetooth.service

I  hope this was helpful


about conjure-up openstack-novalxd localhost style in 1 physical server

Single machine horsepower (vertical scaling) doesn't matter if that single machine or one of the main services goes down.

For production environment, you need to deploy some level of redundancy and high availability with separate storage nodes (block and object) as shown here:
https://docs.openstack.org/ocata/install-guide-ubuntu/overview.html
and scale it horizontally (additional node provisioning), separate controller nodes, etc...

Additional youtube resource that might be of help:
https://www.youtube.com/watch?v=lz2tAt5Vf3U


Back up /etc/apt/sources.list and every file in the folder /etc/apt/sources.list.d/, and then open them up with a text editor and remove every line where a URL is mentioned that is not from ubuntu.com.

After that write sudo apt-get update and try the updater again.


How to execute a command on multiple files and redirct output to a different file depending on the name of the input file

The answer to a similar question will apply to here also. So, here is the link:

Batch command that requires output redirection


no crontab for [username] - using an empty one

first

sudo crontab -e

Under the line

m h  dom mon dow   command

Enter

* * * * * sh /path-to-your-script/abc.sh

Be sure to make the scipt with execute permission

chmod +x abc.sh


yes , that's quite easy, just download the jdk, extract it somewhere and set path in your .bashrc file like below

# User specific aliases and functions
JAVA_HOME=/mnt/install/jdk1.8.0_77
JRE_HOME=/mnt/install/jdk1.8.0_77/bin

export PATH=$JAVA_HOME/bin:$JRE_HOME:$MAVEN/bin:$PATH

then close and open terminal again or do this

source ~/.bashrc


Update:

For anyone having the same problem, I resolved the issue by typing the followings in my terminal. Basically I removed all the configurations I have changed for proxy.

npm config rm proxy
npm config rm https-proxy
npm config rm registry

Then, it allowed me to do things normally like installing packages. Hope this helps!


Try alsamixer and turn up the volume for the Headphone slider. I've seen pulseaudio mute this setting way too often for me. Quit alsamixer by pressing esc


Getting started with cloud development using OpenStack

From my experience (I've done OpenStack installations using Dodai-deploy, manually and development DevStack setups), DevStack is the best way to go if you primarily want to center around something non-production - testing, development. All the other methods (including Juju+MaaS from what I've poked around) are still hard to deploy and there are too many knobs to be fiddled with until you get things operating. Don't get yourself caught in them if you don't have to.

If you're worried about security, my advice is to create a Virtualbox image with 4 cores on top of the hardware you've got and install DevStack in it (a short guide - not very different than a normal devstack installation). You can do this in a couple of hours. It's a cloud within a "cloud", but that's not a big problem (apart from speed) - accepting all the default settings gives you VMs which can reach each other and the internet, which is all that's important. As far as I remember I installed it in a 12.10 image and it worked fine. You're right about being reluctant to install everything on a physical machine if you use it for any other purposes. Also, with VMs you have the extra benefits of snapshotting them and reverting back in case you mess something up.

Alternatively, to achieve a level of sandboxing you can try Juju + Linux containers (LXCs) or maybe LXCs + devstack and I heard people had good experience with LXCs, but I haven't tried them myself.


Clean install of 15.10 (32 bit) gives cursor only blank screen after login

escapologist, like yourself I've been "banging my head against a brick wall" trying to solve/fix/workaround the Ubuntu nVIDIA GPU problems.

So thanks for your solution, I've installed XUbuntu 14.04 and have not experienced ANY of the nVIDIA problems that are plaguing Ubuntu. Strange that both use the same NVIDIA drivers !!!

If anyone tries the Ubuntu Live Session distro then check for video corruption when using DASH. If you see any then XUbuntu is the answer


Try this command to remove the configuration file:

rm -rf ~/.config/accomplishments/

It is more than likely a problem of an obsolete file and removing the file worked for me when I had the same problem.

After deleting the file, close the application, log out and open it again.

Given that the terminal displays Pidfile /home/r00t/twistd.pid contains non-numeric value, you can try deleting the twistd.pid flie and see if that helps.

rm ~/twistd.pid


Warning: Editing gdm3.css file/ its orginal files have serious issues if small mistakes are occurred while editing.. you can not login to your system.. to bring back the things to normal you need special support.. Proceed with your own

Below is just a temporary workaround until some expert writes extension to disable the OSD for Volume Change..

Ubuntu 18.04
user-shell-theme: /usr/share/gnome-shell/theme/ubuntu.css

sudo -H gedit /usr/share/gnome-shell/theme/ubuntu.css

already edited code:

/* OSD */
.osd-window {
  text-align: center;
  font-weight: bold;
  spacing: 1em;
  margin: 32px;
  min-width: 64px;
  min-height: 64px; }
  .osd-window .osd-monitor-label {
    font-size: 3em; }
  .osd-window .level {
    height: 0.6em;
    border-radius: 0.3em;
    background-color: transparent;
    color: transparent; }
  .osd-window .level-bar {
    background-color: transparent;
    border-radius: 0.3em; }

Other Area:

.osd-window

      { color: transparent;
      background-color: transparent;
      border: 1px solid transparent;
      border-radius: 12px;
      padding: 12px; }

    .resize-popup,
    .switcher-list, .workspace-switcher-container {
      color: #eeeeec;
      background-color: #3f3e39;
      border: 1px solid rgba(238, 238, 236, 0.2);
      border-radius: 12px;
      padding: 12px; }

You need to look out for the transparent text in above codes..

look at the bottom right corner on volume icon..


Can I turn an in-use external drive into a live boot disk

Yes, you can do it. But, preferably, make a backup of your data. You can also use gParted to partition your external drive. Then, use UnetBooting, or the Startup disk creator included in Ubuntu to create the live media.

Warning!. Do not create a new partition table, or you will lose all your data.


Create an icon of Sage 6.4.1 in the panel of Ubuntu14.04 LTS

On your desktop, right click and select new document, then edit it and insert:

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=sage
Exec=gnome-terminal --command="/home/mks/Desktop/sage-6.4.1-i686-Linux/sage -notebook"
Icon=/home/mks/Desktop/sage-6.4.1-i686-Linux/local/share/sage/ext/images/sagelogo.png
Categories=Application;

Save the file (and traditionally name it sagenotebook.desktop.
Then just drag it onto the task bar.  (I hope I got your paths correct, check them just to be sure).


Can I install and use two versions of a program?

In the old-school world this is possible when you have installed deb-version of software along with self-compiled (inside /usr/local or in home-folder) or portable (extracted somewhere in the home-folder).
In modern world this is possible when you have installed application - for example Okular from deb-package along with its Snap and FlatPak versions:

deb - okular,
snap - snap run okular,
flatpak - flatpak run org.kde.okular .

Some applications may be virtualized (QEMU, KVM, VirtualBox, Xen, VMWare and so on) or containerized (by Docker, chroot, schroot, LXC or similar).


How to make upower show correct battery state?

After working with you in chat it was determined that the plugin was correctly installed and it was working as it should. The minor issue is that the Battery Indicator icon can take anywhere between 2 - 5 minutes to update.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Under older versions of Gnome you were able to follow the steps below to change some of the power-manager settings. However that has been dropped in version 3.1.4. (Further info can be found here.)

I suggest you try using the "dconf editor". BE VERY CAREFUL while using it!

sudo apt-get install -y dconf-editor

After installing "dconf-editor" have a look at the section "org" -> "gnome" -> "power-manager" -> "icon-policy"... this also changes the behavior of the battery-icon.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To solve the problem, it is suggested that you use the Unity interface under your system settings to change anything that need be.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The addition of indicator-power in Ubuntu overrides the need of power-manager


Permanently disable wlan0 on raspberrypi running ubuntu 20

Figured it out!
Edit /boot/firmware/usercfg.txt.
add in

dtoverlay=disable-wifi

.save and reboot


Why is radeontop showing 0,00% in all fields?

Need to use opensource driver

  radeontop is a small utility which allows one to monitor the utilization of
  Radeon GPUs starting from the R600 series and newer using undocumented
  performance counters in the hardware. The utility works with the free
  drivers.

So, it does not work with the proprietary driver.
If you are using xubuntu or lubuntu or any non composite, you need to run 3d app like glxgears
If it does not work. The original developer (under username:
curaga) made a post on Phoronix forums:

Announcing radeontop, a tool for viewing the GPU usage

More interesting, one comment from him about BONAIRE card:

  Patches welcome. Bonaire (7790/r260) is about five generations newer than my card, so I can't exactly test anything even close. (original post)

  Anyone with a Bonaire, Kaveri, or Kabini, please test latest git. I have no such hw. (original post)

So, try installing it from source:

https://github.com/clbr/radeontop

Then file bug report there (github) for this if still no success.


Why is my interface now wlp2s0 instead of wlan0?

A new naming scheme has been introduced, to solve problems that arose from the old (eth0, wlan0) naming standards.

Here is a short introduction and explanation of the concept:
http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

Basically, the first two letter describe the type of interface. 'wl' for wlan, 'en' for ethernet. The following code is often a description of the physical placement of the device in your computer - p2 is likely PCI bus 2, and s0 is likely slot 0.

As kyodake pointed out, this new standard was introduced when Ubuntu moved to systemd.


Installation of Ubuntu on Lenovo B480 Laptop

Its compatible 100% !
No problems at all !

But it would be good to download the intel graphics download utility from https://01.org/linuxgraphics/downloads
Then you have to add the gpg key do an upgrade.
And maybe you should check for any proprietary drivers that you may need on software sources , additional drivers.

Your laptop has an i5 so you could install the 64bit version.

Now about the Fingerprint scanner check this guide: http://tryitnw.blogspot.gr/2013/02/easy-steps-to-enable-finger-print.html


Problems with /etc/rc.local startup command

Try full path to home dir : cd /home/mcmyadmin/McMyAdmin
and use su to run this script from another user (not root).


Mount writable subfolder of read only ntfs partition

Mount the filesystem rw somewhere else, then bind mount only that directory to where you want it to appear.  You can then unmount the original mount.


Ask your IT department if they have the IPSec VPN license on the Security Gateway. If so, you can connect without the Check Point VPN client, and instead use the L2TP VPN built into Windows, Ubuntu, and mobile phones.

More Information on Check Point's website


Text conversion, binary digits -> hex (or decimal)

Here a snippet of bash scripting to do that

while read line; do
    n=$((2#${line// /}))
    printf '0x%02X\n' "$n"
done <input-file

where 2# means base 2 and ${var// /} means "remove all spaces"


Install synaptiks (https://apps.ubuntu.com/cat/applications/precise/kde-config-touchpad/).

It has a nice GUI for what you want.
I guess the actual options shown may differ based on the model of the trackpad, but you should see the "Automatically switch off touchpad, if a mouse is plugged" option.

Also, you may be able to control the delay after which touchpad activates after typing


Mounting and unmounting is a runtime thing. They don't write anything to disk - they just alter the in-kernel way the filesystem is mapped. Mouts are loaded from /etc/fstab so unless you've changed that, just restarting the computer would get things back in order. sudo mount -a might even work. It might not.

What would happen on a normal system if you forcefully unmounted /mnt is you would unmount the root filesystem (they would be the same device). The computer would grind to a halt near-instantaneously. On a normal computer, restarting would follow /etc/fstab and remount / (and everything in it, including /mnt) and put everything back in the right place.

In short: Reboot (or boot to a LiveCD for added safety) then see what the damage actually is.


How do I play just one song in Rhythmbox?

Before play, Locate the Music in Rhythmbox, and then click add to Playlist.

So just the playlist will be executed, ie, as one only has music, only they will be executed.


What does it mean to restart your session?

Restarting your session will kill all of your programs and start your desktop environment again. It's basically logging out and in from your "account". If you do it, all the unsaved work will be lost, so make sure you save everything you're working on.


Unpack zip file: “End-of-central-directory signature not found” error

I tested with 7z, zip and unzip deliberately mixing the programs, but I wasn't able to reproduce the problem. However it that may very well be specific to the data which is compressed.
As 7z uses the 7z format by default and file name extensions don't matter I first thought it would create a 7z format file just named zip, but turns out it's not that user-unfriendly:
7z a 1.zip 2 does create a proper 1.zip file even without the -t zip option which specifies the format.
7z a 1 2 however creates 1.7z and 7z a -t zip 1 2 creates 1.zip as expected.

In general it's a good idea to

use the same program to pack and to unpack an archive:

7z a Server.zip file1 file2 dir1/ # add files
7z x Server.zip # extract with full paths
7z e Server.zip # extract IGNORING paths

zip Server.zip file1 file2 dir1/ # add files
unzip Server.zip # extract with full paths

use a cryptographic hash to test whether the archive got transferred correctly:

On your server, save the hash sum with md5sum, sha1sum, sha224sum, sha256sum, sha384sum or sha512sum1 (all following the same syntax), e.g.

sha1sum Server.zip otherfile.zip > sha1hashsums

Transmit both the zip file(s) and the sha1hashsums file.
Test the zip file(s) with e.g.

$ sha1sum -c sha1hashsums
Server.zip: FAILED
otherfile.zip: OK

1 The most important difference   between them is the size of the hash, a longer hash being more secure. MD5 produces a 128-bit hash, SHA1 a 160-bit one, the others bear the hash sum size in their name, e.g. sha512sum for a 512-bit hash. I'll leave the rest to Wikipedia, see the links.


Rewrite your script in the next way:

#!/bin/bash
export DISPLAY=:0
/usr/bin/shutter -f --web="any URL" -o '~/Dir1/%F-%T.png' -e

echo $DISPLAY will show you what you need to set instead of :0 if required

Cron:

* * * * * fullpathtoscript

Also, check script is working by executing it.

I do not have ability to install shutter that is available in xenial and could not be installed using its repository source on my system. But I've done something similar using the next script:

!/bin/bash
/usr/bin/gnome-screenshot --display=:0
echo "screenshot have been taken" | logger

It works and images appear in pictures directory:

$ journalctl -f | grep screenshot
бер 10 17:36:02 lenovo user[9570]: screenshot have been taken


I don't know specifically what filesystems the newest clonezilla supports, however, for non-known file systems it will use a sector to sector copy with DD.  While, it will be much slower than clonezilla's own mechanism for cloning, it will make a replica regardless of type.

*If Clonezilla fails, you can opt to clone the drive using dd directly.  It can take much longer to do but will ignore file system types.

  Clone a Drive

  Clone the contents of a whole hard drive onto another completely different drive.  You need to do this while booting a live disc, you will need the drives unmounted.

  if=source and of=destination

Be extra careful and check the command over before submitting it.  Having the input and output parameters incorrectly set would be very bad.

dd if=/dev/sda of=/dev/sdb

After you clone to the larger drive, depending on how the partitions are setup, you may be able to run a live ubuntu disc, and use gparted to grow the partition.  I have difficulties saying with certainty as the location of the partition will make a difference.  If the partition you plan to grow is between other partitions it will technically have nowhere to grow.  If it's the last partition you should have no problems.


Xubuntu 12.10 cannot archive folder on desktop

thunar-archive-plugin

Do you have a default archive manager installed and set to correctly archive?

The standard MIME association mechanism is used to determine the preferred archive manager for the Create Archive…, Extract Here and Extract To… actions. However the plugin may not always be able to detect the appropriate archive manager for a certain task. Then the user will need to manually select the preferred archive manager from a list of possible applications.

See THIS PAGE for the tutorial.

There are some other plug-ins here.


Can not root: after removing ZSH and returning to default bash

First remove the symlink and make a new symlink that makes the default to previous bash

sudo ln -sv /bin/bash /bin/sh

Exit the terminal, and start a new terminal.

Now, change root's shell. Edit the passwd file - Start any editor and search for zsh.

I used vim - $ sudo vim /etc/passwd

Searched /zsh. For me it was on the first line:

root:x:0:0:root:/root:/usr/bin/zsh

changed

root:x:0:0:root:/root:/bin/bash

Esc, :wq, Enter - This is for saving and exiting Vim.

For other editors like gedit and nano, just search for zsh, edit line, then save and exit.

Then exit Bash and restart your PC.


Printing: wrong number of copies (N square copies)

This may be a result of the Okular bug Okular, when printing 2 pages per sheet, prints the wrong pages. which says:

  If I try and print two pages from a PDF (a Canon camera manual in this instance), two per A4 sheet, I get four pages, the wrong ones, two per sheet.

As Nate Graham discusses it may be a lower-level Qt bug, which could possibly be Printing multiple copies with WebEngine results in printing (number of copies) * (number of copies) copies. which was allegedly fixed in Qt 5.8 and 18.04 should have 5.9.5, so I'm not sure why it would persist, but it appears there is still a bug in Qt or in Okular.


Which partitions to delete for uninstalling ubuntu?

Delete /dev/sda9 and /dev/sda10. I'm not sure if this will delete your bootloader as your setup is very confusing. So to be safe, boot windows 10 and restore your windows bootloader like this:

bootsect /nt60 drive_letter: /mbr

Drive letter of course has to be replaced with the drive letter where your operating system resides, so probably the command will look like this for you:

bootsect /nt60 C: /mbr

Then you can boot any partitioning tool of your choice and safely delete the ubuntu partitions.


How to run Selenium Grid on Ubutnu 20.04

I solve it via UFW - uncomplicate firewal :)
sudo ufw default deny incoming

So now I have only explicitly defined ports open for incoming requests. It means port 4444 is denied for incoming requests.
https://www.cyberciti.biz/faq/how-to-configure-firewall-with-ufw-on-ubuntu-20-04-lts/


Is it safe to share your root login details to server with an IT guy?

No. It is Never safe to give out a root password. Giving some "guy on Fiverr" your root details seems wrong.

First, Ubuntu doesn't (by default) allow root logins via password, but uses sudo instead. You shouldn't have a root password to give out.

Second, by asking for the root password, rather than a sudo-enabled user account makes me wonder if the "guy on Fiverr" knows Ubuntu, or if he's just going to stir your system with a rootstick until/if it works.

Third, after granting root access, how will you track the changes the "guy on Fiverr" makes to your system? sudo (if you disallow sudo su, sudo bash, etc) keeps a history.


Your processor is shown as Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz, which has a maximum turbo frequency of 3.90 GHz. Since turbo is enabled, 3.90 GHz equals the 100% CPU frequency and:

3.90 * 60% = 2.34 GHz.
3.90 * 30% = 1.17 GHz.


Muting certain audio part in movie clip using Kdenlive

Apparently I didn't see within audio correction effects, Timeline->Add effect->Audio correction->Mute

The steps I took in case someone need it:

Add clip to Timeline
Right click on the clip and split audio
Add markers to area which you would like to mute
On your keyboard press X to choose Razor tool (scissors)
Click once on start point of your marker
Click once on end point of your marker
On your keyboard press S to switch to selection
Go to Timeline->Add effect->Audio correction->Mute
Render the clip


How to install Epson Stylus SX435W printer on Ubuntu 14.04 32bit

Install common printer drivers in Ubuntu :

sudo apt-get install cups-client cups-common cups-core-drivers cups-daemon cups-filters cups-ppdc cups-server-common debconf ghostscript libavahi-client3 libavahi-common3 libc-bin libc6 libcups2 libcupscgi1 libcupsimage2 libcupsmime1 libcupsppdc1 libgcc1 libstdc++6 libusb-1.0-0 lsb-base poppler-utils procps

Then use the printer with the application system-config-printer-gnome


Any way to use Maximus-two (or similar extension) on Gnome 3.24 in 17.04?

There is a new extension named No Title Bar available now.

It's a fork of Pixel Saver with advanced options like disabling/theming window buttons, whitelist/blacklist of applications etc.

(Info courtesy of @d3vid)

Alternatively, you can tweak Pixel Saver to get rid of the window buttons from the top bar following this.


/etc/hosts file wiping edits after suspending or rebooting

The file is overwritten by systemd-resolved.service, among other files:

  systemd-resolved synthesizes DNS resource records (RRs) for the
  following cases:

  The local, configured hostname is resolved to all locally configured IP addresses ordered by their scope, or — if none are configured — the
  IPv4 address 127.0.0.2 (which is on the local loopback) and the IPv6
  address ::1 (which is the local host).
  The hostnames "localhost" and "localhost.localdomain" (as well as any hostname ending in ".localhost" or ".localhost.localdomain") are
  resolved to the IP addresses 127.0.0.1 and ::1.
  The hostname "_gateway" is resolved to all current default routing gateway addresses, ordered by their metric. This assigns a stable
  hostname to the current gateway, useful for referencing it
  independently of the current network configuration state.
  The mappings defined in /etc/hosts are resolved to their configured addresses and back, but they will not affect lookups for non-address
  types (like MX).

According to documentation for /etc/systemd/resolved.conf and the related post, you can edit /etc/systemd/resolved.conf to have specific domain resolved by your local DNS sever (on Ubuntu you have dnsmasq, example), or add ReadEtcHosts= to let the service actually use the file.

You can also disable the service. See How to disable systemd-resolved in Ubuntu?

According to a Fedora forum thread the issue could also relate to Network Manager service. For Ubuntu servers, cloud-init could also be the cause of the issue according to the bug report on launchpad


Difference between C programs and shell scripts receiving signals from fuser

Your script logtest.sh does only write into log and closes the file-descriptor immediately. So when you call fuser on log.1 there is no process which has an active file-descriptor for this file.

You can simulate this by running the while loop inside a list

(while true; do echo $(date); sleep 1; done) >> log

And both logtest.sh and logtest.c will terminate no matter which SIGNAL you send because you doesn't handle the signal. With bash this can be done with trap '<COMMAND>' USR1 (take a look at man bash-builtins). But I've no idea how this is done in C (never lerned C).


How full is the Ubuntu ARM port (repositories)?

OK, answering my own question.
Since I now have an Acer Chromebook CB5-311-T5G2 with ARM processor, I can now answer this question.

The repositories are quite extensive.
MySQL, PostgreSQL, PHP, mono, MonoDevelop, nginx, Geany, zip/rar, Chromium and ubuntu-restricted-extras are all no problem. MySQL-workbench and pgadmin3 seem to work better than on my old x86 Chromebook.

Firefox seems to be a bit unstable on ARM (crashes when displaying certain download boxes) - but then again, Firefox being unstable is old news.

Oracle Java can also be installed normally via webupd8.
I ran ElasticSearch, and it worked like a charm - out of the box with the .deb on it's site (thanks to only using Bash-Scripts & Java).

Also, MonoDevelop and mono are there, and seem to work.

There is no filename on the open sourcecode tabs, but that's about it (not sure if that's an issue with 3D/GL acceleration). (was a mono issue - is fixed)
ASP.NET MVC 3&4 work as well.

The only software-troubles I've come across is that Adobe Acrobat Reader is not available for ARM Linux, and Microsoft Skype does not offer a .deb compiled for ARM (suckers) ...
But it looks like one should be able to get Skype running on ARM with a "tiny little bit" (warning sarcasm) of extra-work. I'll go with Google-Hangouts/ GoogleTalk/ WebRTC instead. Probably one could get Viber to work more easily.

More troublesome seems to be the 3D accelerations.
Now, since I don't want to run Quake3/OpenArena on that laptop, I would have thought that this is no problem at all.
But apparently, the abomination that is infamous as Gnome3, as well as KDE and Enlightenment all require 3D acceleration, and what's more important: this requirement can't be disabled anywhere (which is why they are abominations)...

So it turns out that the primary issue is hardware acceleration.
On x86 platforms, the graphics card hardware can be shared between the VTs, so Unity works fine in x86-Crouton.

On ARM, however, we can only have one X11 server touching the hardware at once. This isn't an issue on Chrubuntu (Ubuntu dual boot), since it uses only one X11-server.

However, in crouton, ChromeOS owns the sole X11 server anyway.
So it's necessary to instead create a nested X11 server using Xephyr (crouton does all that for you automagically).
Which works great, and lets you toggle between the two seamlessly.
But you don't get video acceleration, so OpenGL/GL is emulated by software.
And Unity and Compiz do not like this at all.

In this issue thread about that matter it's being said that you can run unity-2d instead.
Well, don't try, it doesn't work, at least not for me.

So, you'll have to stick with XFCE.
Mind yourself, XFCE is not that bad anymore like it was when I first installed it 5 years ago.

It looks like the XFCE-programmers have found it in their heart to allow you to create launchers/shortcuts nowadays :)

Actually, it looks quite bad after the default install.
The keyboard-layout is wrong, and the dock bar and the top task-bar combination is particularly bad, as having the task bar on top takes some getting used to, and the combination of two panels, the dock using huge icons, takes up far too much screen real-estate to be of any use.

Fortunately, you can move the dock vertically to the left, like the unity bar, and put it on autohide and make the icons smaller.

Plus you can move to top bar to the bottom, and remove the "Applications menu" title, which leaves you with something almost windows-like.

Then you can just install gnome-terminal and proclaim it default-terminal, which gets rid of the ugly under-usable xfce-terminal.

As you can see, one can even customize the date-time format display, and add a keyboard-swicher and show-desktop applet to the panel.

I'd say with a bit of graphical & icon beautification, XFCE4 would have the potential to beat gnome3 in usability.


How can I send mobile text message from terminal?

SMS Texting from Terminal / Shell / Bash
For the following steps open a terminal prompt aka "Command Line Interface" or "CLI". In most Linux distributions do this using Ctrl+Alt+T
textbelt.com to send text from bash
I found a reddit article: Send an SMS Text Message from the Command Line with this Bash / Terminal command you can use:
curl -X POST https://textbelt.com/text \
   --data-urlencode phone='7801234567' \
   --data-urlencode message='Find Your Phone!' \
   -d key=textbelt

Replace 7801234567 with your phone number. If you are texting an international phone number (outside Canada / USA) follow these instructions.
Note: The software replaces "Find Your Phone!" with a message that you need to purchase a key to use a custom message. But the software still insists you must provide a message that gets overwritten.

Other reasons for sending SMS Text Message from Bash
Finding my smartphone was an unusual need to send an SMS text message from Bash. You might have a few people that should be texted when:

Disks are about to fail (or other hardware errors occurred)
Disk space utilization exceeds threshold, for example 90%
RAM is full and swap is being used heavily
Web server is experiencing external attacks
A user had too many invalid sign-ons and account is deactivated
A specific job has been run which effects key processes
A door badge reader monitors a certain door being unlocked

textbelt.com is Free for one text per day
Only one free SMS message a day can be sent by a given sender. Here is an example of the first and second attempts on one day:
$ find-phone # bash script with above command
{"success":true,"textId":"168141545572031481","quotaRemaining":0}

$ find-phone
{"success":false,"error":"Only one test text message is allowed per day.","quotaRemaining":0}

Note: You maybe able to reset your router's IP address for more than one text per day but I haven't tested this yet.
You can use prepaid unlimited texts. There are many SMS gateway services available. Pricing at above vendor link varies from $0.03 to $0.15 per text. This is for reference and not an endorsement nor recommendation. Please do your homework and search for reputable pay-for-service vendors at best prices.

Create Bash Script
You could create a bash script called sms containing:
#!/bin/bash
curl -X POST https://textbelt.com/text --data-urlencode phone='$1' --data-urlencode message='$2' -d key=textbelt

Send SMS message using sms 7801234567 "Hello World"
Thank you Fabby for testing this from the EU and confirming it works there.

Send Email to carrier of the smartphone with SMS Text Message
For the following all you need is a web browser like FireFox, Internet Explorer or Chrome. No need to dive into the "bowels of bash" or limit yourself to one free text per day.
Many carriers allow you to send SMS Text Message to a smartphone by addressing an email to phone_number@mobile_provider_name.com.
Phone Number look up to get carrier's website address
To get the provider's website address using the phone number go to: https://freecarrierlookup.com/. Imagine we entered the phone number: 7801234567:

We are told the email address to use is 7801234567@pcs.rogers.com. Now send an email to this address and your phone will sound with a notification.
Of course if you have your smartphone configured to sound with a notification when email arrives you can simply email your phone in the first place!
CLI interface for sending email address
In Ask Ubuntu there are many questions and answers on how to send email using bash. I'm using ssmtp (Secure Simple Mail Transport Protocol) for my cron daily backups: Backup Linux configuration, scripts and documents to Gmail
Although this setup is for one user, you can create a file with multiple users to text messages to:
Name         Email Address
Tiny Tim     5551234567@att.com
Mrs. Clause  5552223333@sprint.com
Bad Elf      5551114444@telus.net

Then in your bash code something like this:
ssmtp 5551234567@att.com < mail.txt

Where mail.txt looks like this:
Cc: admin@our_company.com
Subject: Nightly Database Update FAILED
From: root@our_company.com
Content-Type: text/html; charset="utf8"

<html>
<body>
<div style="
    background-color:
    #abcdef; width: 300px;
    height: 300px;
    ">
</div>
Nightly database update failed at procedure: AP005.
</body>
</html>

There are many ways of sending email from bash. This is just one example. The important thing is the email address contains the smartphone number followed by the smartphone provider's web address


Unknown File System, after delete Ubuntu partition

Prepare a Fresh USB stick with Ubuntu live in it. use UnetBootin Software for it

Boot with that stick.

Install Boot Repair program from internet on to the pen-drive and run the program.

Run the Program and fix MBR record

Detailed Steps to use, here : Using Boot Repair


I think you'll find that node 1.3.x ended a long time ago. I did some hunting and found someone with the same or similar issues. They had issues just two days ago or so. Take a peek here:

https://github.com/npm/npm/issues/10007

Specifically at the bottom of the page:

A dependency of yo expects the binary to be called node:

Link to yo info


Variable path issue : conda command not found

Try adding below line to your .bashrc file

export PATH=~/anaconda3/bin:$PATH

then try:

conda --version

to see version


How to create a laravel project in htdocs folder

You have to get into the project folder to run composer ...
example:
cd path/to/htdocs/your-laravel-project-folder

Then run
composer install


How do I reset a lost administrative password?

By default the first user's account is an administrative account, so if the UI is prompting you for a password it's probably that person's user password. If the  user doesn't remember their password you need to reset it. To do this you need to boot into recovery mode (see also offical docs: RecoveryMode).

Boot up the machine, and after the BIOS screen, hold down the left Shift key (note that for UEFI BIOS you might need press ESC instead). You will then be prompted by a menu that looks something like this:

I've noticed on some systems that timing when to hit the left Shift key can be tricky, sometimes I miss it and need to try it again.

Hit the down arrow until you select the 2nd entry from the top (the one with the recovery mode in the description) and then hit Enter.

Now you should see this menu:

Using the arrow keys scroll down to root and then hit Enter.

You should now see a root prompt, something like this:

root@ubuntu:~#

At this stage you should have a read-only filesystem. You have to remount it with write permissions:

mount -o remount,rw /

Now we can set the user's password with the passwd command. (In this example I will use jorge as the example, you need to substitute whatever the user's username is):

root@ubuntu:~# passwd jorge
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@ubuntu:~#

Type in what you want the new password to be at the prompt. After it's successful reboot the machine and the user will be able to log in with their new password.

Recovery Mode documentation
Lost password documentation

There is concern about this being a security vulnerability. It is not. You need to have physical access to the machine to do this. If someone has physical access to your PC, they could do far worse than change a password. When it comes to physical access, the battle for security is lost. Be wary of who you let on your PC.

Even setting a root password will not be successful, as one can simply boot with init being /bin/sh and have full root access. Again, given physical access, anyone with computer knowledge can do ANYTHING to your computer.


Why do games lag in Unity and not in Unity 2D?

Possibly you don't have proper drivers for your GeForce GTX 460 or you graphics card is not fully supported, so try to download them from GeForce website.

You can do some performance testing by installing glxgears (sudo apt-get install mesa-utils).

See Bad 3D Performance in Ubuntu 12.04

See this article to check your performance issues

You could also try switching your desktop environment (Unity) to a different one, like KDE or something by installing one of these alternative desktops

sudo apt-get install kubuntu-desktop
sudo apt-get install xubuntu-desktop
sudo apt-get install kde-full


Two problems: I can't boot my Ubuntu Line DVD and getting GRUB error

It's unclear from your description whether you're booting from the DVD drive or from GRUB on your hard disk. The latter is unlikely to do you any good.

Most computers provide a built-in boot manager that enables you to select a specific boot program or device on a one-time basis. How you access this tool varies from one computer to another, but it's typically via a function key (usually F8 or above), Del, or Enter, pressed early in the boot process. Try using that. If you see two entries for the DVD drive, pick the one that includes "UEFI" in its name.

Note also that just because a disc boots in one computer does not mean it will work in another. There are computer-to-computer differences in optical drives, so a disc that's readable on one computer may not be readable in another. Also, Ubuntu's installation disc images are intended to be booted in both BIOS mode and in EFI mode. You may have booted in one mode, but the target computer might be trying to boot in the other mode; or the target computer might have a problem with the disc image (it uses a Frankenstein's Monster sort of format that usually works, but that some computers find objectionable).

For all these reasons, you might want to try transferring the disc image to a USB flash drive and booting in that way. I recommend either using dd to copy the image to the USB drive as a whole or using Rufus in Windows to do the job. If you use Rufus, be sure to select an option to make an EFI-compatible disk.

EDIT:

Try this:

Create a USB stick using Rufus.
Using whatever computer and OS you can, access the Rufus-created USB stick. It should have a directory called EFI/BOOT. (That name may vary in case.)
Rename EFI/BOOT/bootx64.efi to something else (or delete it entirely).
Rename EFI/BOOT/grubx64.efi to EFI/BOOT/bootx64.efi.
Try again.

This procedure is based on the observation that the "Failed to open..." messages look like they're produced by Shim, which is Ubuntu's way of dealing with Secure Boot. On a bootable installation medium, Shim is stored as EFI/BOOT/bootx64.efi and launches EFI/BOOT/grubx64.efi; however, this doesn't seem to be working for you. Since your errors also note that Secure Boot is not enabled, though, Shim isn't really necessary, so you should be able to boot by renaming GRUB to use the fallback filename (EFI/BOOT/bootx64.efi), which is what's used to boot external media.


Dual Boot Ubuntu 15.10 with Windows 10 (Can't see partitions in Windows)

If you want to "see" (mount) the windows disk on Ubuntu, just follow the instructions you got:

  The NTFS partition is in an unsafe state. Please resume and shutdown
  Windows fully (no hibernation or fast restarting), or mount the volume
  read-only with the 'ro' mount option.

If tou want to mount your ext3/4 linux partitions on windows, I googled that for you


How to create multiple addresses using netplan in Ubuntu 18.04?

It's certainly possible.

Here you can file lots of examples on how to configure netplan for various use cases. For your specific needs it should be as simple as

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:                     # Use your interface name
     addresses:
       - 192.10.23.1/24
       - 192.10.23.2/24
       - ...                    # fill all 50 addresses
       - 192.10.23.50/24
     gateway4: 192.10.23.254/24 # use your gateway, or none if it's not needed

I've used this as a reference.

Don't forget to do a sudo netplan apply to commit your changes.


In the 100GB free space you could set up a partition as big as your memory, ie.: 4GB for swapping. then you may use the rest 97 GB for ubuntu.
You may create those partitions as primary, as IDE/SATA allows 4 primary partitions to exist.
At installation time, do set the ubuntu partition as bootable.

When asked, you may install the ubuntu boot loader to the MBR, and let GRUB manage the booting partitions. Other wise, you should configure the boot manager of W7 to learn about the new ubuntu's booting partition and this way be able to start ubuntu.
On the other hand, GRUB will let  you start the OS you may like.

All that may be done at the installation process of ubuntu, when hard drive partitioning.

My advice: when in the ubuntu's disk partitioning section of the installation process, create a partition for the root - / - file system about 30GB big (this one si the one to be set up as bootable), a 4GB partition for the swap and a 66GB partition for /home, that is users directories. Use Ext4 file systems, as it is stable, tested and well known to work. Do use GRUB.

Farewell.


Exchange files with computer and android tablet

I was able to solve it.

Install mtpfs sudo apt-get install mtpfs
Install jmtpfs sudo apt-get install jmtpfs
Connect the device with your computer via USB and unlock the device.
If the device was detected and appears in the sidebar then right click on it and select unmount.
Create mount point in home directory:    mkdir ~/android
Mount the device into the new mountpoint: jmtpfs ~/android

Something like this should appear:

root@pc:/# jmtpfs ~/android
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).

Now you have access to the device!

After you finished all file transfers, unmount the device. fusermount -u ~/android

More Infos (german)
https://wiki.ubuntuusers.de/MTP/


The system is running on low graphics error

Since it sounds like you are comfortable running terminal commands, perhaps it would be fruitful to try booting directly into recovery mode, which will bypass starting the graphics server on boot.

This can be done by hitting ESC immediately after the system finishes its BIOS/POST output after a restart. This should bring up the GRUB bootloader menu where you can choose to start your system using the latest kernel and in recovery mode. Booting this way will present a diagnostics menu, where you can first, enable networking (which should give you internet access and put your filesystem into read/write mode), followed by the option to drop to a root command line.

Once networking is enabled, the recovery mode root command prompt should allow you to run the apt commands needed to fix your nvidia driver.


Try booting from that DVD. Your other option will be putting the ISO image on a USB drive using this tool https://unetbootin.github.io/ then booting from the USB drive.

When you boot from either the DVD or USB drive, you will get various options regarding how to partition the space on your hard drive, keyboard settings ...etc


How to fix SLOW graphics printing on 12.10? Text printing speed is OK

Try running this command in the terminal:

sudo jockey-text -e xorg:nvidia_current

Then reboot.


install tlp using these instructions:

https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html

(There is a ppa with the latest version)
then from a terminal run:

sudo tlp-stat

Amongst all the output, there are diagnostics that may give you some hints to the problem.

What is your hardware, by the way.


Remove Alt-F2 history - Trying to remove password.

To remove everything from the history just run

gsettings reset org.gnome.shell command-history

If you only want to remove some parts of the history, than it is easiest to just start dconf-editor and remove the unwanted command from the history under org->gnome->shell-> command-history.


How to download a full multi-paged news article?

Some websites offer a way to download the entire article, a single page, or any variation of those without the need for the browser's function.

New York Times

(Since "Save" on NYT apparently requires an account of some sorts - haven't had to deal with the NYT site that much, tbh - I'm going with the "definitely working" way as follows)

In the case of this random New York Times article, you can use the "Single Page" option:

This displays the entire article on one page. Subsequently, you can choose the "Print" option (also shown in the screenshot) to get a raw text of the entire article.

Other sites

Nowadays, the whole "multi-page news article" thing is largely being taken back. Most news sites use a blog format that uses vertical space - as in: Site gets long, but all the content is on one page - so there is barely any need for this.

But on the sites that do still have this, you'll most likely find something like the above. Some way of displaying it all on one page, or some link to "Print Whole Article" - something like that. Mostly, you'll have to find it yourself, though, as these links are in no way standardized. No external script could reliably gather them universally and tie the whole article together. You won't find anything that will do this for all sites. It might exist for some, but then you'll have tons of scripts running ... Not exactly the fanciest ways of running a computer.

A nice example extension I just found, which requires scrolling to the end of the article to get it all loaded, however, is "AutoPager" (Link to Firefox version, exists for other browsers as well, I believe).

If the site's developers just didn't think of this as being necessary, and you can't find a utility, your best bet is to contact their support and make them take note of it, if you believe it worth the hassle.


How to remove the icon from notification or any alternative to change wallpaper

I didn't try wally, but CREBS, just do the job as you want
    * sudo add-apt-repository ppa:crebs/ppa
    * sudo apt-get update && sudo apt-get install crebs

http://www.omgubuntu.co.uk/2010/06/crebs-wallpaper-slideshow-generator-gets-a-ppa-new-features/


awk replace value in colunm p row i by value in same column next row

You can use getline to get the next line of input, and split to split it into an array of fields using the current FS:

$ awk -F, 'BEGIN { OFS = FS } NR==1 && (getline ln) > 0 { split(ln,a); $2 = a[2]} 1' example_file.txt
group, value, price
1, 3.42, 4.11
1, 3.5, 1.22
2, 4.1, 9.2
2, 4.2, 2.11

If you want to print the "got" line as well, it's still in ln after splitting (to get the order right, we also need to explicitly print first, and skip the default print using next):

$ awk -F, '
    BEGIN { OFS = FS }
    NR==1 && (getline ln) > 0 { split(ln,a); $2 = a[2]; print; print ln; next} 1
' example_file.txt
group, value, price
1, value, 3.21
1, 3.42, 4.11
1, 3.5, 1.22
2, 4.1, 9.2
2, 4.2, 2.11


To install a Windows bootloader, boot Windows and create a Repair CD. Boot from the repair CD (or from your original Windows DVD) to a repair prompt and run:

bootrec /fixmbr

(If you use Windows XP then the command is: fixmbr)

If you can't boot Windows and can't create a repair CD, you can install something like lilo which works identically to the Windows boot loader when used as shown below. Boot from an Ubuntu CD/USB and select "Try Ubuntu", connect to the internet and drop to a terminal (Ctrl+Alt+T):

sudo apt-get update
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

Note, when you install lilo it will popup a big warning. You can ignore this (as it's not relevant when installing a Windows-style bootloader) - Tab to OK and hit enter. Also, if you don't boot from /dev/sda change as appropriate.

If you're planning to continue to boot Ubuntu after replacing the Windows bootloader you can use easyBCD. Otherwise you'll need to boot a live CD/USB to reinstall Grub later.


Can I somehow record my screen with whatever sound is coming from the speakers?

There is GNOME frontent to recordMyDesktop in standard repository. You can install it via Synaptic or by running sudo apt-get install gtk-recordmydesktop.

Note, there is a nuance. If your sound not recorded try to change sound profile to Analog Stereo Output.


updating grub causes windows to not boot

Inexplicably, I managed to get it booting both win7 and ubuntu!

Ok, I also managed to get the odd plop usb flash boot loader to run.
It showed 2 partitions, both were called HDA1? Selecting either one booted win7.

So I pulled the power plug.
Then I booted liveusb ubuntu 14.04
Then I reran again boot -repair
Instead of selecting normal repair, I went to advanced and told it to erase grub completely.
Then it ran and eventually pops up a warning, 'If I remove grub computer will be unbootable', so I clicked cancel.
Then I ran boot-repair again
here is the new report
http://paste.ubuntu.com/12247350/
So I shut down and verified both win7 and ubuntu now boot fine.

Could it be that when I told boot-repair to erase grub completely, but still cancelled at the warning, that it made some changes??, and that is why it now works again?

Also there are two .iso files, I chose the bigger file to write to usb.
plop boot loader shows up in unetbootin as 'default' entry.
click it and it loads an almost unreadable red window with lines running thru it.
picture of it.
https://lh3.googleusercontent.com/-Y...2/DSCN0347.JPG

(We were trying plop to see what might be able to boot.)


htop displays identical program in multiple lines

The duplicated lines are threads of a single process. You can recognize them by the different color in the command column (if you have configured that in Setup > Display options > Display threads in a different color) and by having the same amount of memory reported since memory is shared among threads of the same process.

If you don’t want to see threads of applications in htop, use Setup > Display Options > Hide userland process threads.

See also:

htop showing duplicate applications with very odd bizarre results upwards of 20,30,40 or more, see screen grab


how to change root permission by text console


Clicking on a folder in docky opens banshee not nautilus

A very simple solution would be to open Nautilus:

Alt+F2
Type  nautilus  and press Enter
Over any directory folder, press the right-mouse-button
Select "Open with another app.."
Right click on Banshee
Click forget association

This should be enough.


What to do when GParted tells me: ERROR: NTFS is inconsistent?

You need to do as it says and run chkdsk from windows.  Also it looks like you have some bad sectors.  Check dmesg for more detailed errors, and also check the SMART status of the drive in the disk utility.


ubuntu 16.04 pxe server install problem finding live-image

Same issue I was facing few days ago.
This is a bug reported already in Ubuntu 16.

For workaround you need to edit the file bin/fetch-url located in initrd.gz

steps for editing the file and unpacking again:

1. gunzip initrd.gz
2. cdrom  initrd
3. cpio -id < ../initrd
4. # ls
bin  dev  etc  init  modules proc  sbin  selinux  sys  tmp  var
5. Now edit your file bin/fetch-url
add the following lines before the proto= line near the bottom:
prefix="/cdrom"
url=${url#$prefix}
6. save and close the file.
7. Now pack the directory again-
   find . | cpio --create --format='newc' > /tmp/initrd
8. gzip initrd
9. Now move the file to the specified location where it was actually located.

My issue has been resolved after taking all above steps. I hope this will help you :-)


systemd-analyze info for previous system boots

As a temporary "solution" I added the following to my shutdown script (not to the startup script to be on the safe side):
 echo $(/usr/bin/who -b ; /usr/bin/systemd-analyze) >>/var/local/sa.log


Bluetooth isnt working ASUS X401a running Raring 13.04

Try adding the btusb module, that might fix things:

sudo modprobe btusb

If that works, consider adding the btusb to the file /etc/modules to force loading it.


Ideally, all community-written lenses should be submitted to the Ubuntu Software Centre, so that users can benefit from them.

The process to get them in the Software Centre is really easy, so if you see any lens that might be worth making available to millions of users, the best thing is to point developer to how to publish them:

http://developer.ubuntu.com/publish/


Using spaces and cyrillic symbols in /etc/fstab

You don't need to use /etc/fstab/ and you can create the following systemd service to mount the file instead.

I adapted: this answer written by user: @detuur to fit this particular situation.

Create a new file using: sudo vim /etc/systemd/system/boot-shadow-mount.service
 and then copy and paste the following and then save the file and exit vim

# Automatically mounts and binds HDD3TB directory to /Pictures/HDD_Photo
#

[Unit]
Description=bind mount HDD3TB drive directory to /Pictures/HDD_Photo
Requires=bindmount@home-username-Pictures-HDD_Photo.mount
Conflicts=umount.target

[Service]
Type=oneshot
ExecStart=/bin/mount --bind /media/username/HDD3TB/'Мои документы'/Фото /home/username/Pictures/HDD_Photo

ExecStop=/bin/umount /home/username/Pictures/HDD_Photo
RemainAfterExit=True

[Install]
RequiredBy=local-fs.target unattended-upgrades.service

Next, run the following command to correct the "username" in the file:

sudo sed -i "s/username/$USER/g" /etc/systemd/system/boot-shadow-mount.service

Then, run the following commands to "enable" the new service so that the service will automatically start when you boot the system:

sudo systemctl daemon-reload
sudo systemctl enable boot-shadow-mount

When you reboot, the file should automatically mount.

Please post any errors. Thanks!

additional source: blog.iwakd.de/systemd-fstab-and-bind-mounts-with-options


=> No boot loader is installed in the MBR of /dev/sda.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

You should correct this by reinstalling GRUB on sda with a live CD

I prefer the chroot Method, because you basically just need to copy a few commands into terminal of a live CD, while you gain basic understanding of the boot system, but there are other ways on the site, too.


Dell XP3 9310 with Intel Iris Xe Graphics (i5/i7) - Flickering screen on boot-up

I'm fairly certain this issue is to do with the intel microcode - see https://bbs.archlinux.org/viewtopic.php?id=260710


Why is there a GRUB boot menu even though I have a single boot?

So, I basically solved the problem by deleting a partition using GParted. There was a partition labelled as 'msftres' which is basically a partition reserved for Microsoft Applications. You can delete it if you are not planning to use Windows.


getting blank screen in Ubuntu 16.04 after login account

Try pressing Ctrl+Alt+F1 then typing the following commands:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -y

Please tell me what the output of this is and if it works


Accidentally deleted Ubuntu volume from Windows?

Use EasyBCD: (http://neosmart.net/EasyBCD/)

Under BCD backup/repair, go to BCD management option, and select Re-create/repair boot files and click perform action.

This will wipe GRUB and doing this you cannot go to Ubuntu anymore.

OPTION 2 (thx @NathanOsman): LIVECD/or USB

You have to sign the waviers and leave Windows. Make sure you have a liveCD!
Boot from it and select "Try ubuntu without installing."
Now there are 2 steps

STEP 1: if you have removed linux-swap partition

Open Gparted: (if you dont have it sudo apt-get install gparted)
Make a new linux-swap (size you say? please make it the same as your RAM size ex. I have 8 gb of ram (yes I am a ram hog) and the swap size is 8gb!

STEP 2: Boot Repair
(docs are here, https://help.ubuntu.com/community/Boot-Repair)
Open a freshly baked Terminal session and put this down.

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

(one line before the other)

Now the thingy should appear and click RECOMMENDED REPAIR.

STEP 3: REINSTALL

If else fails: try reinstalling Ubuntu. Easy as pie.


Ubiquity wants to force EN language during installation

I found a workaround without having to play with preseeds.

Locate on the iso squashfs: etc/lib/ubiquity/localechooser/localechooser

    # Always support English (unless preseeded otherwise), so that we
    # get English language packs etc.
    if [ "$english" ]; then
        db_set $tpl_supportedlocales "$new"
    else
        db_set $tpl_supportedlocales "${new:+$new, }en_US.UTF-8"
    fi
}

I changed the following lines :

    # Always support English (unless preseeded otherwise), so that we
    # get English language packs etc.
    if [ "$english" ]; then
        db_set $tpl_supportedlocales "$new"
    else
        # MODIFIED, original line is commented below
        # db_set $tpl_supportedlocales "${new:+$new, }en_US.UTF-8"
        # Either or not the language is english, keep only the selected language.
        db_set $tpl_supportedlocales "$new"
    fi
}

It works great.


Trying to install Ubuntu GNOME 14.04 but it installs Ubuntu GNOME 16.04?

Ok.I solved it.If you guys have the same problem,do what i did.
-Go to Ubuntu GNOME download page
-Click on Ubuntu 16.04 and it will show you 14.04.
Also my brother clicked 14.04 it opened 14.04 but at my computer it didn't.I think its from the browser.


How do I get a SB X-Fi Xtreme Audio driver to support microphone?

As a follow up, upgraded from Lucid to Maverick and it's now using the HDA_Creative driver instead of HD-Audio_Generic and so far it seems to be working!


How can I enable --verbose-versions for apt-get and apt by default?

Put ...
APT::Get::Show-Versions "true";

in /etc/apt/apt.conf. That file probably does not exist yet.
Man page shows that as the "configuration option".

/etc/apt/apt.conf
APT configuration file. Configuration Item: Dir::Etc::Main.

You probably can also use ...

/etc/apt/apt.conf.d/
APT configuration file fragments. Configuration Item: Dir::Etc::Parts.

and create a "file fragment" for this option.


What is the difference between pip and conda?

conda is a package management tool for installing scientific and analytical computing packages, which may be written in Python or other programming languages. conda also creates a virtual environment, like python-virtualenv does. conda is the package manager of Anaconda. Anaconda is a free Python distribution provided by Continuum Analytics, which includes over 195 of the most popular Python packages for science, math, engineering and data analysis, almost all of which are also available in the default Ubuntu repositories. Anaconda is known for making a big mess out of the default paths for many Python modules in Linux. For these reasons I don't recommend Anaconda for new Linux users.
pip is a general purpose Python package installer. In addition, python-pip and python3-pip are in the default Ubuntu repositories. In most cases you would choose pip instead of conda if you want to install a Python package management application. To create a Python virtual environment without installing conda, you can install python-virtualenv from the Ubuntu Software Center.
pip and conda use different packaging formats so they do not operate interchangeably, but you can use both tools side by side.


Can not get certain programs to "show" up

Login into virtual console(ctrl+alt+F1) and then run the below commands,

sudo rm /etc/X11/xorg.conf
sudo apt-get purge nvidia*
sudo service lightdm restart


Definitely receiver placement. I have my laptop mounted on the back of my big monitor and use the laptop monitor as a second screen that sits on top of the external one. If I put the receiver on the left USB everything gets wonky. On the left it sits between the HDMI and aux cables and I think that is part of the problem with the additional distance. But if my laptop is just sitting on my kitchen counter, I can use the mouse/keyboard from 10 feet away no problem.

Also make sure your phone is not near (12 inches-ish) or directly between keyboard/mouse and receiver. When mine lags, I just mindlessly look for my phone and move it and all is good again.

I think it's the bluetooth on the phone but phones kick out a lot of junk so not sure. I'm not going to start turning BT off just to resolve this so never tested this theory.


Okay, the provided link is fantastic, this totally works!
It also seems to solve the problem of suspend not working on the HP Spectre x360 in Ubuntu 15.10 completely!

Edit grub config by doing:

'sudo emacs -nw /etc/default/grub'

Edit the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash'"

To:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi='!Windows 2013' acpi_osi='!Windows 2012'"

Then run:

'sudo update-grub'

Reboot TWO times.


I've never used it, and it sounds like some manual editing is required but GrubReboot allows you to specify which operating system to reboot into using a simple command. A number is assigned to each OS entry in grub, to reboot into an OS just open your terminal and type:

grub-reboot #

Most of the information I found was for Debian, but it sounds like this program may be pre-installed on Ubuntu? Anyways it might be worth a look.

Information I Found On It:

https://wiki.debian.org/GrubReboot

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


big thanks to  Terrance
figured it out.

1) created a new file /home/dexy/Stuff: "touch 'Mousewheel scrollwheel fix'"

2) pasted "  bash -c 'sleep 2 && imwheel --kill --buttons "4 5"'  "

3) saved

4) went to "Startup Application Preferences"

5) add

6) name: Mouse Scroll

7) command: "/home/dexy/Stuff/Mouse scrollwheel fix"

8) save


How could I successfully log in under a non-existent user account?

The following result of the CURRENT_USER()
mysql> SELECT CURRENT_USER();
+----------------+
| CURRENT_USER() |
+----------------+
| @localhost     |
+----------------+
1 row in set (0.00 sec)

says that you're currently using the database as anonymous user. A freshly installed MySQL db has the following user entries in its mysql.user table:
mysql> SELECT user,host,password from mysql.user;
+------------------+-----------------+-------------------------------------------+
| user             | host            | password                                  |
+------------------+-----------------+-------------------------------------------+
| root             | localhost       | *........................................ |
| root             | xxxx            | *........................................ |
| root             | 127.0.0.1       | *........................................ |
| root             | ::1             | *........................................ |
|                  | localhost       |                                           |
|                  | xxxxx           |                                           |
| debian-sys-maint | localhost       | *........................................ |
+------------------+-----------------+-------------------------------------------+
7 rows in set (0.00 sec)

There are some root accounts (password-secured) and two anonymous accounts allowing a logon from localhost (the xxxxx entry is the machine's hostname).
If there's an entry in the user table lacking username and password, the following rule applies:

If the User value is blank, it matches any user name. If the user
table row that matches an incoming connection has a blank user name,
the user is considered to be an anonymous user with no name, not a
user with the name that the client actually specified. This means that
a blank user name is used for all further access checking for the
duration of the connection (that is, during Stage 2).
(see the MySQL docs, "6.2.4. Access Control, Stage 1: Connection Verification")

In general, after installing MySQL, you should take notice of the following part of the documentation: "2.11.2. Securing the Initial MySQL Accounts".


Is there a way to change gedit encoding from UI?

Yes.

Go to Save as. Ctrl+shift+s will do.

A menu at the bottom left shows the charachter encoding.

Click to that, there's an option Add or remove.

A windows appears with a list of character encodings at the left and plus button to add.


How can I get 4K60 output over HDMI 2.0 on my Kaby Lake NUC?

Nick's post was a real help in leading me this this solution:

xrandr --newmode "3840x2160x60.00"  533.250000  3840 3888 3920 4000  2160 2163 2167 2222  +HSync -VSync
xrandr --addmode DP-1 "3840x2160x60.00"
xrandr --output DP-1 --mode 3840x2160x60.00

This 7i5 NUC now displays UHD on a Samsung TV (UN40MU6300).

Four+  hours I've spent figuring this out. Above working Modeline was finally found via the Universal Modeline Calculator in 'Reduced Blanking Timing' mode. I don't know the disadvantage, but it's now 60HZ and crystal clear. Ubuntu and the TV's 'info mode' both show 3840x2160/60Hz.

umc.exe 3840 2160 60 -rbt

Also 7th Gen NUC HDMI 2.0 firmware must be upgraded to an April 2018+ release (Sorry but the  update tool only runs on Win10). Get a certified HDMI 2 cable too (trying an old cable just now made the image snowy).

Root cause is almost certainly Intel's on-chip Iris Plus Graphics 650 having a relatively low max pixel rate (533Mhz is in the working modeline, but cvt wanted 712Mhz)


I removed ZSH and the HUD is disappeared

Solve. I reinstall ubuntu desktop type sudo apt-get install --reinstall ubuntu-desktop.
I hope it helps you in case it ever happens to you


How do I remove the remaining part of a word in the shell?

Alt+d will remove the remaining part of a word. But as a . ends the word you'll need to press it two times to remove john.csv.


how to fix this apt problem on ubuntu 18.04 LTS?

First Delete the .deb using

sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.59-0ubuntu0~gpu18.04.1_i386.deb

sudo rm /var/cache/apt/archives/libnvidia-gl-390_390.59-0ubuntu0~gpu18.04.1_amd64.deb

then erase all of the downloaded files in your cache.

sudo apt-get clean
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install -f
sudo apt-get update

Finally try to install fresh copy of your application using
sudo apt-get install


Can't deploy charms due to missing metadata files

It appears you have a directory in your precise directory called "hooks" Juju is trying to load this as a charm and is failing. If you remove that directory, or move it, then this warning should go away. Without knowing the structure of your stack charm, this hooks directory needs to be put in the stacks directory. The tree should be as follows:

/home/eduard/charms/precise

stacks/
  hooks/
    <hook files>
  metadata.yaml
  readme.md
  ... other files


Okay, I have the question answered, thanks to reddit users as well, they have pointed me the right way to go.
So if anyone of you ever has the same problem, the xboxdrv command is 100% good, but newer games do not use the "js" format input, they use "event"
so then when you run steam you just input
SDL_JOYSTICK_DEVICE=/dev/input/event20 (where event20 is number of event xboxdrv "emulates", may vary)
instead of
SDL_JOYSTICK_DEVICE=/dev/input/js1 (this also varies depending on how many input devices you have)


Turn off secure boot in UEFI menu. Every laptop has a different way for doing this, you can find this with a quick google search. This will turn off messages about unsigned kernel and modules.

It only allows signed software to boot.
If you are confident of the downloaded
Kernel turn it off. Or you can sign it yourself and register machine owner key in secureboot database.

You can read more about Secure Boot here & go here if you want to read about signing kernel and kernel modules.


Will Python 3 in Ubuntu 18.04 LTS always be on the 3.6.x branch?

Since 18.04 is an LTS release, it is unlikely that the Python version that comes with it will be updated to a new major version.

You can install Python 3.7 alongside Python 3.6, if you want, by running

sudo apt install python3.7

in a terminal, although, in my opinion, it would be better not to mess with multiple Python versions installed in your system through apt, since this could make your system unstable.

Instead, I am highly recommending to download and install the Anaconda Python distribution and use virtual environments managed by conda for the different Python versions you need.


emacs + screen not properly handling keys

Read man emacs25:

          -nw, --no-window-system
                  Tell Emacs not to create a graphical frame.  If you  use
                  this switch when invoking Emacs from an xterm(1) window,
                  display is done in that window.

And, in screen start emacs with emacs --no-window-system


What does it mean when there is a path like /dir/dir/program.attribute?

I am not sure what you are asking exactly.

Hidden

A files or directories are "hidden" if they start with a ".".

On the command line you can view them with ls -A and from nautilus (your file browser) by showing hidden files Ctl + H or from the menu

Path

Your path is where the system looks to find commands.

echo $PATH

You can set a path , typically in ~/.bashrc

PATH=$PATH:/additional/directory


Use 'udevadm monitor' and then plug your hard drive in. If you get output telling you where your hard drive gets mounted, then it is being recognized and mounted.

After that, you can use tools such as photorec to scan your entire hard drive and recover the photos regardless of the filesystem and mounting it. It scans for photo file signatures and recovers them.

If it is recognized and you have a device node placed in the /dev directory, you can use 'dd if= of=' to make a backup of the hard drive.

You can use 'blkid ' to show you the block id of the device, basic information such as filesystem type and label.

If the hard drive is not detected and no node is added to the /dev directory, you can try placing it in a freezer for awhile and then plugging it in. Sometimes this can give a hard drive a last breath of life to recover data.

Hope this helps! Kyle


how to get to settings of adobe flash player?

You can just run "Adobe Flash Player" in your Software List and your Settings will pop up to be changed.

Alternatively you can run flash-player-properties in terminal.

Another way is to open a website with flash Content (i.e. youtube) and right-click on the flash element and choose "Global Settings" to open the flash settings.

Have Fun!


I found the last step missing. You have to go to Edit->Preferences->Advanced->Config Editor and change options

network.protocol-handler.warn-external.http
network.protocol-handler.warn-external.https

to user-defined. Next time when you open a link it will ask you about which browser do you want, and then type /usr/bin/x-www-browser.


How can I remove eog without breaking the Unity-2D session?

I believe ubuntu-desktop is a "metapackage" aka a package of packages. MetaPackages.
Thus when you un-install a package in that metapackage it un-installs the metapackage, but not the other packages in the metapackage, so removing eog and letting it un-install ubuntu-desktop should not harm Unity 2D, they made the ubuntu-desktop metapackage for ease of installing many programs and upgrading them all in one go. what-are-the-downsides-of-removing-ubuntu-desktop-metapackage

Edit: Is it safe to remove ubuntu-desktop package? Seems distributions will still upgrade, because it forces install of desktop metapackage, and will still upgrade.


The dropbox package (.deb file) can be downloaded from https://www.dropbox.com/install.

(And if somebody has the problem that there is no nemo-dropbox package in Ubuntu 17.10, you can get it from ppa:noobslab/nemo3)

Apparently though, the green file status emblems are only shown in icon or compact view, not in list view. Also, running 'Open Dropbox Folder' from the tray icon menu will open Nautilus instead of Nemo.


You can't unmount a root(/) partition.Because your running ubuntu was using it.Once you logged in into ubuntu,automatically its root partition will be mounted.

If you want to  unmount /dev/sda1 partition then you have to run live-disk.


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

It is not a problem. It is a feature.
ext4 is a linux file system that supports permissions. Thus, the root folder has a certain ownership and permissions set, which are also adopted by the mount point that is automatically created when you insert the drive.
In order to grant different users access to the USB drive, you have, as with any drive, to set permissions.

You could create subfolders on the drive, and change the owner of each to the different users
You could change the GROUP to a group where all users that need access, belong to.
You could open up the permissions, so that anyone has access to the drive or to specific folders on the drive.
...

So it depends on your use case. Because the file system supports linux permissions, you have the possibility to granularity set access to the drive or specific folders of it.


Installing ubuntu server on laptop - can't recognize wifi card

For starters, if your notebook does not have a hardware switch to enable/disable WiFi, there probably is an option in the BIOS or UEFI to do it.

Now that you managed to install the system and have a working WiFi card, , you should use wpa_supplicant to setup the network. To do this, you edit the file /etc/wpa_supplicant/wpa_supplicant.conf so that it holds the information necessary to connect to your network. Examples can be found in the wpa_supplicant man pages, a minimal one would look similar to this:

network={
    ssid=YourSSID
    key_mgmt=WPA-PSK
    psk=your_very_secret_passphrase
}

Additionally, you need to set your /etc/network/interfaces to use the configuration for wpa_supplicant:

auto wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Assuming your WiFi card is the network interface wlan0. Now, issue ifup wlan0 on the command line, and you should be fine.

Edit: If you do not have wpa_supplicant installed, you can download the .deb package on another machine and install from a USB device or whatever possibility you have to move files onto that machine. The package and its dependencies can be found in the Ubuntu package archive.


How do I activate the Broadcom wireless driver?

Use the Ubuntu Software Center instead of synaptic, synaptic does not come installed by default in Ubuntu anymore. You can still look for package names there.

As an option you can also install synaptics using this command in a terminal

sudo apt-get install synaptic

You will be able to use synaptic by opening the dash and looking for it.


How to Enable password after lock/Suspend

Edit the file '/etc/systemd/logind.conf'

sudo nano /etc/systemd/logind.conf

Removed the # comment from the beginning of the line  'HandleLidSwitchDocked=ignore' and changed the value to be:

HandleLidSwitchDocked=suspend

Then Reboot your system


Is there a GUI program for editing MIDI files on Ubuntu?

MuseScore can edit MIDI files. MuseScore is already available in the Universe repositories, so you can install it with

sudo apt install musescore

However, the Universe often contains outdated versions of programs. If you want to have the latest version, you can add the MuseScore PPA:

sudo add-apt-repository ppa:mscore-ubuntu/mscore-stable
sudo apt-get update
sudo apt-get install musescore

The PPA works with all versions of Ubuntu 16.04 and above.

Update: the musescore package no longer exists in Ubuntu 20.04. However, the similarly-named musecore3 package looks like it's more-or-less the same thing. Therefore:

sudo apt install musescore3

I don't know if there are any PPAs for Ubuntu 20.04, but I suspect you could install a SNAP package or a FlatPak package.


Can't install Google Chrome on Ubuntu 16.04

It is better to use terminal. Download googlechrome.deb from there  website

Open terminal and cd to the installation directory
Then type:

sudo apt-get install gdebi
sudo gdebi google*

Now the browser should be installed and working normally


Why are ImageMagick and Shotwell both pre-installed?

Their jobs are pretty much the same right?

Shotwell is an organizing tool for photo's. Imagemagick lets you manipulate images I dare you to use shotwell on commandline to convert an image from a GIF to a PNG ;-)

From the Ubuntu apps directory:

Shotwell is a digital photo organizer designed for the GNOME desktop environment. It allows you to import photos from disk or camera, organize them in various ways, view them in full-window or fullscreen mode, and export them to share with others. It is able to manage a lot of different image formats, also including raw CR2 files.

ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. All manipulations can be achieved through shell commands as well as through an X11 graphical interface (display).


How to add multiple sites in nginx on localhost

Looking at your configuration you should be able to tell the issue yourself:

server_name test;

You are telling it to only react to the name test (so-called "virtual host") but you access it via the name localhost. How is that supposed to work?

For your test setup try editing /etc/hosts and include a line like this:

127.0.0.1 test

... restart nginx (e.g. service nginx restart as root) ... and then try to access it again under that name http://test/index.php ... should work, unless you forgot to mention some other relevant detail(s).


Unable to format/partition secondary SSD in ThinkPad X240

The problem turned out to be with the firmware of the Toshiba mSata, an issue that several Lenovo support staff themselves were not aware of when I called them. The solution required a specific firmware update provided by Lenovo, executed from a bootable USB created with -- of course -- a Windows executable. For anyone experiencing similar ThinkPad SSD troubles, follow the instructions here if you have access to a Windows computer.

Everything works fine now and my X240 is booting 16.04 from the SSD, quite a bit faster than before.


Open up your Terminal and try this : sudo apt-get install firmware-b43-installer

I had the same problem and it worked for me. Tell me if it works

Banana out


Do i remember right that the dash had a start page with big icons?

Its not a bug. Install any Ubuntu tweaking programs to control it, for example Myunity.
This picture shows you that you can change the dash size.

Choose Dash size to desktop to restore to original size.

To install Myunity open a terminal :

sudo apt-get install myunity


You can edit any file. The only question is whether this makes sense. For binary files you can use a hexeditor, eg. hexedit:

sudo apt-get install hexedit

E.G.:

hexedit /bin/bash

But if you want to change the code, from which the binary was created, then you need the source code.

As an example, for the file  used above you can find the source code here.

You can also try to decompile the file. Download REC Studio 4 - Reverse Engineering Compiler from here.

sudo apt-get install libgtk2.0-0:i386
cd
mkdir RecStudioLinux
cd RecStudioLinux
wget http://www.backerstreet.com/rec/RecStudioLinux.tgz
tar xf RecStudioLinux.tgz
cd bin

and start with:

./RecStudioLinux


If you recompile the kernel, what do you do with future updates?

If you compile a kernel that is newer and therefore has a higher release number than the current Ubuntu kernel (for example 4.6.6) you don't have to do anything at all, because the system will just keep on booting that kernel, and you can upgrade all other packages as normal (sudo apt update && sudo apt upgrade). You may have some compatibility issues of course.

If a new Ubuntu release arrives, then there will be a jump to a new kernel series, and if the new Ubuntu kernel has a higher version number than yours, then the newer Ubuntu kernel will be booted by default, so you would have to either pin your kernel or use a newer one.

If you're recompiling the Ubuntu kernel to patch it, you'd either have to recompile each time a kernel upgrade arrives (which is pretty regularly), or you could pin or just keep choosing your compiled version by configuring GRUB until you could be bothered to recompile.

This way has the advantage of allowing you to check whether the new kernel works for you unpatched. I used to used a custom kernel, but now I don't have to because the bugs got squashed in newer kernels.