how do I install Bitcoin Private electrum wallet on ubuntu 16.04 LTS?

Full installation instruction for linux here: https://github.com/BTCPrivate/electrum-btcp#for-linux

Download Current Release: https://github.com/BTCPrivate/electrum-btcp/releases/
In case linux you need download source code Source code (zip).
Unpack it. Change the directory to the one that was in the archive. Then use instruction below.

Install Dependencies:

sudo apt-get install $(grep -vE "^\s*#" packages.txt  | tr "\n" " ")
pip install -r requirements.txt
ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so

Compile the icons file for Qt:

pyrcc5 icons.qrc -o gui/qt/icons_rc.py

For the Linux app launcher (start menu) icon:

sudo desktop-file-install electrum.desktop

Compile the protobuf description file:

protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto

Create translations (optional):

./contrib/make_locale

Run:

./electrum-btcp


Removing cups or ubuntu-desktop won't leave your package state confused. Only --force-… can do that.

ubuntu-desktop roughly means “all the basic functionality an Ubuntu user on the desktop should have without having to look for it”. Printing is included in that. If you don't want printing, you're sacrificing functionality. You can still remove ubuntu-desktop, but then it's up to you to make sure you know which of its dependencies you must keep.

If you're only limited in RAM and not in disk space, you don't have to remove CUPS, you can just not start it. Under lucid, rename /etc/rc2.d/S50cups to /etc/rc2.d/K50cups, and similarly in rc3.d, rc4.d and rc5.d.

But you're not going to gain much by not running CUPS; it would start, and quickly get into the swap and never come back as long as you don't print, and it's less than 2MB anyway. If you're RAM-starved, the best you can do is really to ditch Gnome (I see nautilus at 30MB, gnome-panel at 13MB, nm-applet at 11MB... Some of this is shared, but compared with the Gnome stuff, the system daemons are peanuts.)


Issues with using Screen to split terminal on WSL - Ubuntu 14.04.5, Screen 4.1.0

Update @ 2016-09-09:

screen should now work fine on Windows 10 RS2 Insiders builds 14915+. See release notes and update in associated bug #774 for more details.

[PS: Please accept this if it answers your question. Thanks.]

2016-08-29 - There's an issue in WSL in Win10AU that prevents screen from operating correctly. The team is working on a fix and will release via the Windows Insiders builds in the coming weeks. Sorry for the inconvenience.

In the interim, you might want to try tmux which works well.


Should I close my open programs while installing updates?

You can use your computer normally while updates are installing. This is because file system works different in Linux than in Windows. In Linux, once file is opened, it is kept in process' memory until process exits, no matter what happened to the opened file during existence of process. For example, you could delete some files process use or even delete the binary of the process itself, the process would continue to run normally. (All data are kept in memory.)

Because of this, no process can be disturbed during updates. But to use updated program you need to restart it (or reboot if kernel was updated).

PS: I presented somewhat simplified view of how file system works, but it should be sufficient to answer your question.


How to change the Caffeine icons in panel when using the Elementary theme

Okay… I found a solution.

What I did is:

Renamed both icons to caffeine-cup-empty.svg and caffeine-cup-full.svg
Since I use the dark variant of Elementary I sudo copied both icons to /usr/share/icons/elementary-mono-dark/status/22
Then I refreshed my icon cache by typing:
sudo gtk-update-icon-cache /usr/share/icons/elementary-mono-dark/

It seems to do the trick, I have no idea or this is how things are suppose to be done though.


Lubuntu : session won't open : where to find the logs

I finally fixed it.

I found some post on the internet that recommended to have a look at: ~/.cache/lxsession/Lubuntu/run.log

which contained some nasty error messages but started with this:

** Message: utils.vala:85: System system path location : ~/.config/lxsession/Lubuntu/desktop.conf
** Message: utils.vala:89: Final file used :  ~/.config/lxsession/Lubuntu/desktop.conf

and on the previous day, I had been changing config in lxsession-default-apps which writes things in this exact same file: ~/.config/lxsession/Lubuntu/desktop.conf

So I moved this file somewhere else, and the next startup worked. A new ~/.config/lxsession/Lubuntu/desktop.conf was generated and I am good to go.

Though it is really bad that things crash this way just by changing settings into a lxde program... But I don't know exactly what was the source of the problem so I can't really make a bug report.

Thanks for support!


Recursively convert Apple .pages files to .docx or .odt

I would use a command line option to handle this
libreoffice --convert-to odt  *.pages

it would find any matching Apple pages documents in the current directory and begin the conversion to the desired format, e.g. odt
Good luck.
Note this doesn't work if you have the libreoffice application already open and running somewhere else... this is meant to run in a headless mode.
You may want to try viewing the output from the command
libreoffice --help

to get an idea of other command line options such as formats and working directories to solve your document conversion problem.


VMWare virtual machine won't boot after 12.04 upgrade

It looks like your new kernel is missing its initramfs.  If you can boot the old kernel, then run sudo update-initramfs to generate one.


Deleting Windows after Installing Ubuntu

It all depends where have you installed GRUB, in MBR or on Windows partition.

If it is in MBR, there is no need to boot Windows anymore, and if you want to make use of that partition, just open fdisk (or parted), change type of partion from NTFS to Linux and start mkfs.ext3 or mkfs.ext4 to make Linux partition on former Windows partition.

If GRUB is on start of Windows partition, move it to MBR, and follow above procedure.

There are no examples of commands above as above there is no exact data about disk/partitions used (/dev/sda or /dev/sdb, sda1, sda2, sda3 etc). If you need exact commands, please give us more detailed description of your system.


You are logged in as a guest (guest-EelhlO@paddington-MS-7327). Login within your username and you will find your data. The guest account will not allow you to use sudo for instance.


Make "Files" to sort, columns shown & order PERMANENT

From the Files in launcher, select the top bar button with three horizontal bars.  Select "preferences", then click on the "list columns".  From there, select by clicking the button, and drag or use the up/down arrow on the window to rearrange.

To change the sort, click on the desired column header of your display. There is a little black triangle to indicate order (ascending, decendnig) --  click again to change the order.


What permission do I need to add an HP printer with hp-setup?

Add your user to the lp user group. Use the following command to accomplish the task:

# gpasswd -a [user] lp

Read the ArchWiki article on Users and Groups for more information on how Groups are used for access to certain system hardware.

Turns out there are multiple bugs on Launchpad regarding this issue. These may help:
 https://bugs.launchpad.net/hplip/+bug/802780
 https://bugs.launchpad.net/hplip/+bug/718092
 https://answers.launchpad.net/hplip/+question/161346


Cannot make .box files -Training Tessearct

I downloaded tesseract in two locations.The location that TESSDATA_PREFIX was pointing to did not have eng.traineddata.I downloaded it in that directory from github and used cat >> .pam_environment again to make TESSDATA_PREFIX point that location.
I logged in again and I am able to make .box files now.


It seems you are looking for the keystroke combination Ctrl+c to stop the foreground process. See also here.


Prevent ssh-keygen from including username and hostname

The user name is a comment, you can delete it or set it with the -C option

I do not see a host name anywhere in the keys, what file are you looking at ?

ssh-keygen -f test -C noname

Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in test.
Your public key has been saved in test.pub.
The key fingerprint is:
a8:fa:78:ea:bb:c6:70:67:4c:79:ac:0d:a7:78:5a:40 noname
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|  E              |
| .   o           |
|  . + +.         |
|   = B. S        |
|. o O..          |
| + *.            |
|  +o.            |
| oB*.            |
+-----------------+

cat test
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,6BD3B77199F57BCD0BBC4BD4D717931C

+hko6XxmbmqLlV32dFLTuS6vYSh5OGOBR9Q29OVewRwS6XN2+jbuCBviOdN/CnLh
k/Dzpjt9bPinFLI73RsfYMGUZ+kiBKIotYBqjJrkfMLNkZV0xvzk//tIEQatKyYI
W3OczGVt4EXfXozTvAQSpbEA5pYS5nLCbWSwx98Ilsqej+bnHJDflAhY5kFnrvOm
N66ODWa8FXpmJmJnIU4E8X+w33NO0nxXEiK8EUoRKFHnopwE+uQVkC6z3gPzqCd0
gCJrCDZ7zBaz947jlebH91liygrj1wTnuUbJOk0VnHyHMO1nO0piPOmjPZbL/C4Q
R8Z7C2Hm4cCaTRYbzZCcLvXCdlisCnGmM2a6dIGU5JECYuCB14k0npYqlY0dSJfb
XJx07z0wlkBWzOOUrWkc4U21+BBmYZe8DgHX/p6TNPxkugumIEUgu+xSL8RhwM6Y
lF4miW1s30g4/BpzN5GHTrpJGyyDBLojGR+P42LmsfiuCojU0NFbmrNlX23dSGj0
3wTSwuw179P6FDAEhJo8Znly8W+XP1pKeRn/ozdXW3WJWICDFZzVIe6VSlRES95Q
tcSeWDQRKhZWsGR+yriRwQSYROVje60d1TTMDIm6fcoxJuADGhrlq0pOpz9UuCLN
NbLFksM7NZc7eyYFEx7CBJkaOit1oT9DoH/Bd3mqSYORF5IHaXrTWXqtat1rCIqC
kRmioYdeAf/Daba4DrwXkmjwpPiEswsuaAID0H5AO0F7+vj227aHU0liyly6Qf0U
yGkt+tYE0yYyEY6gGXYZjZlzvw+MWWqebWPxHDZRtTOfZRVCzUW72AaT09SjAG9M
uwo55HW8ezb8F+GsgTNcmB9qo/iOSjwIoM8Vv+1fbncABKn77l0yPAMVPUGcKDE7
cFcS5RAN5XyYTPtGarCYfx27LR02CGRAzg14AtTXnPzIV/j3yRI9y6vJ9gY9zlpR
fnNGM+EMFwuPHawQhVoGuW1HVGPjDBXCYXAnFspQWVexM/0rfXey3Ld4npgBLezl
mb7I2wlaqNURSZ3G3Uh9i5g3q6QqfwLfV1WqtEpQTTy2LvbKowfJGzpokuEshElR
vEQ4uz+bjuurj5zROw12dV4ssPV03J+p06ma5ubsZKK2yq+dCxB8n1sc/EsoW3Ds
DUY68ZpXU7H0/XjDRI0UIV8FhXIpqZlWJTvmFwcYrpV5qW2I7dAScw05yxr9mN54
pODN1cSe9LKqSTtB8j7uOYFl5Ac3VWNtLd/KPRqb7utaeh0/xPAhBfHazYGaCRUD
ccOVD4/9wdFqEn9FK/vlII2Xp60Idbb4MSDWvMyGwmQ5f2zvxiJqtzLAy8CMt685
HxdIvBuxmiKyrA2g8g22ADMc7dz3nkvMdali+WZx4HqtOVJFl2D7/6x5uy4Wpo6p
8IbPyyr6sQZb/IMyVGQTVcJjEiai+sme373oB6CbVA/zCB1I6/DWNdNc1iUIG8IQ
jBS5IKnjHBPCrbhBXDk533FRDH8PY6h3RFaUtjc1lMQ/QhKZoFsWcBN5boPB5S/z
douETUJRJF7KUTrVwdeGyifBEuoGn8bQCtKSkXqzTvnpqDNvMmKVOn/5PGody24V
-----END RSA PRIVATE KEY-----

  cat test.pub
  ssh-rsa
  AAAAB3NzaC1yc2EAAAADAQABAAABAQC2XiZLbaRwCZFPYUMNdzL7zCRvijpd4PaEbK4/zcXb6ns/9Eg2URJEVIDEBbKFrNnCQU48VNjiGG4yDyrn7COHLzWKgvLjraYV8gD0MnzqE52U5L85iuuhXcgVhc0i4Jqu3k4XoUNHGqtYMZstBhS39MCD2h8bkfKuz4eycWlyfKpktd8yIJjeUsV39mw7U7/qh/508RGuwriYe8AYNqgivnL0PmZaDwZGTCnEFaP0IPLbqKyFTcmSuVChmTYttE1Kcj4DNI57APaq2EzSGUNrBVGSJ7Q6KbXC4xiSF+RCDy8ruOk7hj2x2MGOwBZdvhy55kmMkhUMCC7BUcSiRA9F noname

No username or hostname in either file, test or test.pub


How do I make a sudo command start at start-up with a 1 minute delay?

A) If it's at system start-up, add this to the end of your /etc/rc.local (1):  (before the exit 0, obviously):

( sleep 60 && service smbd restart )&

Note:

the outer  () are needed so that the complex command detach itself and go to the background, allowing the boot process to finish;
sudo is not needed there,  /etc/rc.local is executed by root;
Are you really sure this is a solution? It is a race condition asking to happen...

B) if it's at user login, you need two steps:

configure your sudo so that it will not ask for a password for service smbd restart command (see How do I run specific sudo commands without a password?);
prepare a script with the following contents and add it to your autorun/startup program (varies with the desktop environment you are using).

Script:

#!/bin/bash
( sleep 60 && service smbd restart )&

Footnotes

(1) check if /etc/rc.local is executable. Otherwise, make it so with sudo chmod +x /etc/rc.local


install windows 8 alongside ubuntu 12.04

Windows does not let you install on anything else than the 1st partition on a disc. A 2nd, 3rd partition will not be useable to install Windows on. It has to be the 1st partition of a disc.

  without overiding my ubuntu grub

Not going to happen; the fastest method to get a dual boot is to format your system, create 2 partitions, install Windows in the 1st and install Ubuntu in the 2nd. That will delete grub and recreate it during the installation of Ubuntu.
Just make sure you backup all your data.

Alternative that is going to cost a LOT of time if the discs are not empty: resize your partition, create empty space at the beginning(!) so you can make it a partition to install Windows. But this will have you mess with grub yourself: you are moving Ubuntu from partition 1 to partition 2. The re-install is quicker but also less error prone.


As a programmer how can I write applications on Juju provisioned infrastructure?

Juju makes it easy to quickly deploy services and applications on your infrastructure(MAAS in your case). To deploy your applications you will have to create a charm first that will install and launch your application. Information on writing charms can be found here. Once your charms is build you can then deploy your application by deploying your charm.

To deploy them to your MAAS will have to add the MAAS to your clouds in juju (link in your post) and then bootstrap your controller there.


Which AMD Graphics card should I install the driver for on Ubuntu 18.04?

Depends: If you have an HD 7500M, the HD 7640M is 4% faster; if you have an HD 7600M, it's 21% faster than the HD 7640M.


how to install c++ fastcgi development library?

you will have to install boost first

sudo apt-get install libboost-all-dev

I am not aware of a fastcgi c++ package in ubuntu so...

download the library from nongnu.org

wget http://download.savannah.nongnu.org/releases/fastcgipp/fastcgi++-2.1.tar.bz2

extract archive

tar -xvf fastcgi++-2.1.tar.bz2

build

cd fastcgi++-2.1
./configure
make
make check
sudo make install


Installing Oracle Java JRE 7, Terminal Command Not Recognizing Moved File

First of all, please add the correct permissions to the folder...

sudo chmod -R rwxr-xr-x /usr/lib/jvm/jre1.7.0_02

Next add JRE to the Java Alternatives

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0_02/bin/java 3;

And finaly, run the command:

sudo update-alternatives --config java


A hidden Py3 script in an unexpected location, that is running as root, and that is generating lots of disk activity?

That's likely malware. Legitimate software doesn't hide itself in an unexpected location.
Running as root is particularly worrisome -- it could have installed backdoors, keyloggers, and all manner of nasties.
Looks like your system has been compromised. An attacker has gained root.

Wipe the compromised system, including all data, and clean-install Ubuntu again.

Even if you delete the offending file, the attacker had root access and may have installed other nefarious programs on your system.
Do not attempt to preserve your data. It may be contaminated. Restore data from uncontaminated backups. This is one reason you have backups. Alternately, you can quarantine those files, and run ClamAV on them after the new system is installed. ClamAV is not perfect, and may miss some malware. I suggest isolating and testing the quarantined files in a VM for a few weeks. (Backups are easier)


Full-disk encryption prevents booting from USB

It sounds like the USB stick isn't bootable, which is why the machine isn't booting from it and reverting to booting from the hard disk. Linux FDE is software-only and does not interfere with the BIOS boot order.

However, have you recently tried booting the machine with Ubuntu 17.10 (not 17.10.1)? If so, the machine would now appear to be affected by this issue.


Changes to "Software and Updates " not saving

OK, so as a last ditch attempt I decided to reinstall the desktop environment.  This was a relatively painless action (even for a non-techie) and seemed to do the trick.

"sudo apt-get install lubuntu-desktop"


you might try the add-on "save as pdf":
https://addons.mozilla.org/en-US/firefox/addon/save-as-pdf/


Messed up with libudev files and now I can't boot

I found an old installation of ubuntu and extracted libudev.so.0 file to my installation overwriting a messed up file and it worked on next boot. So i fixed it.


I lost apturl accidentally! any way to regain it?

You can easily restore it from a terminal window (Ctrl+Alt+T) using the command

sudo apt-get install apturl

I may quote the manpage of apturl (command man apturl):

  apturl is a simple graphical application that takes an URL
  (following the apt-protocol) as a command line option, parses it and
  carries out the operations that the URL describes (that is, it asks
  the user if he wants the indicated packages to be installed and if the
  answer is positive does so).

That means apturl is not needed to install packages directly, but just to resolve links like apt:packagename in websites to open the Software Center and install the linked package. Therefore you are still able to use command line tools like apt-get and probably even the Software Center to install packages.


This page from the Qt tutorials gives a good description of how to write a QML plugin in C++.  I won't repeat all the details, but the basic idea is that you need to make a new class, inheriting from QQmlExtensionPlugin, to represent the plugin.  It must have a registerTypes method, in which qmlRegisterType is called on each class to be exposed to QML.  Additionally, a qmldir file must be added to the directory containing the .so files.  (Or it can be put in another directory, but include the location of the .so files in the plugin line.)

I just got done learning this myself, and I've written up what I've learned, if that's any help.


There are several ways to keep programs running after you log out.  nohup is an old standby and easy to use.  screen is useful for programs when you want to reattach to a terminal.  If your shell is bash you can disown programs that you have put in the background.


How to view list of files in Google Drive?

Try Open Drive client snap package (odrive-unofficial) on Ubuntu Software. It makes this easy because it's a GUI app. To install it from the terminal in all currently supported versions of Ubuntu type:

sudo snap install odrive-unofficial


This is a user support site designed around Questions & Answers.
There are other sites for Ubuntu support, including Ubuntu Forums, IRC and more, which can be found via https://discourse.ubuntu.com/t/community-support/709
For live chat I'd also concur with @user535733's suggestion of IRC, https://wiki.ubuntu.com/IRC/ChannelList
There is also Telegram groups, some of which are linked (via bot) to IRC, ie. you can speak to people to either on IRC from telegram, and vice-versa.
On IRC select your channel wisely, and stay within topic rules. Some site do require registration, others don't. If you want to talk outside of the topic, usually the best place is tan -offtopic room
This site does have chat too, however note it's a Stack Exchange server, so whilst I access AskUbuntu using my Ubuntu SSO (Ubuntu One SSO), I need to login to Stack Exchange to go to the Ask Ubuntu Chat as my Ubuntu SSO only gives me rights to askubuntu.com itself.  (this won't be an issue if you access the site via Stack Exchange login).
https://chat.stackexchange.com/?tab=site&host=askubuntu.com


Can I use Deja Dup with the SurDoc cloud service?

From the SurDoc FAQ:

Does SurDoc provide WebDAV or FTP access?
SurDoc doesn’t support WebDAV or FTP access at this time.

So, no.  Deja Dup cannot support SurDoc storage using standard protocols.  Looks like you need to use their Windows app under wine:

Is there a SurDoc client for Linux?
There’s no SurDoc client for Linux yet but our Windows client will run on recent versions of the Wine compatibility layer: http://www.winehq.org/


Can't boot Galaxy S I9000 into recovery mode to install Ubuntu

For recovery, hold volume up and home then press power. To enable the Ubuntu Touch Preview to be installed, you need to format the /system partition before selecting to install ROM. Your /sdcard should remain intactFailing to format first will brick the phone (my first mistake!) but the right button combination should do the trick. If the phone freezes, remove the battery to kill it and try again.


Having trouble in installing Ubuntu 15.04

I had same issue when I create bootable USB using "Unetbootin". Try "Universal USB Installer" or something else.


Softpedia announced on 10/21 that LXQt 0.12.0 is now available, and said on 10/23 that the ISO for the official release contains 0.11.0.  Guess it means install and update, but there are some heavy-duty changes involved!


Comic Reader that supports animated .GIF images?

After some looking, I have determined there are currently NO applications for Linux that will open a .cb7 (7-zip compressed) archive and play the GIF images. My solution has been to extract these images into a folder and view them normally for now.


Can I configure Alt-Tab to always switch applications?

Here is how to solve this:

Open CompizConfig Settings Manager
Go to the Unity Plugin settings and deactivate (uncheck enbabled) for the Alt+Tab and Alt+Tab+Shift shortcuts (or even all the other "switcher" related shortcuts.
Then go to the CompizConfig main menu and to the "Window Management" section and enable one of the "Switchers", for example "Shift Switcher" or "Static Application Switcher".

All of these Switchers expose the old behaviour.

If you don't mind using the mouse instead of keyboard-shortcuts - one more note:

The Unity Launcher (the menu that comes up when you go to the left side of the screen) also works like an "old" taskbar. Clicking on an active app's icon brings that app's window to front. If an app icon indicates two or more windows of one app open, double-clicking opens a multiple-window grid that I think is more convenient than the multi-window "sub selector" that comes up through Alt+Tab for that same app group.

Update:

Actually now, I've come to accept the "grouping switcher" but with one novel way of using it (novel, at least for me):

I've found out that once you're working in one window from a group, you can switch between windows from this group by using ALT+^ (instead of ALT+TAB), for example switching between multiple instances of leafpad. And switching between windows from one group is what I usually do most, or wanted to do with ALT+TAB before. So this as a tip for everyone not knowing this very handy short-cut.


How the prompt is changed is defined in the script bin/activate inside the virtual environment directory. This file is created by virtualenv from a template. Unfortunatelly, the only way of prompt modification provided by the template is prepending (env name) or whatever is set with --prompt.

To modify the prompt in the way you want, I'd suggest circumventing the setting of the prompt in bin/activate and modify the definition of PROMPT in your theme file.

First add the following to your.zsh-theme (or .zshrc)

export VIRTUAL_ENV_DISABLE_PROMPT=yes

function virtenv_indicator {
    if [[ -z $VIRTUAL_ENV ]] then
        psvar[1]=''
    else
        psvar[1]=${VIRTUAL_ENV##*/}
    fi
}

add-zsh-hook precmd virtenv_indicator

and add %(1V.(%1v).) in front of the second line of the definition of PROMPT. It should then look like this:

PROMPT='
%(1V.(%1v).)%{$fg_bold[grey]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%}]%{$reset_color%} %{$fg_bold[blue]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status)
%{$fg_bold[cyan]%}❯%{$reset_color%} '

If you want some color you could add %(1V.%{$fs_bold[yellow]%}(%1v)%{$reset_color%}.) for example.

Explanation:

virtenv_indicator will be called each time before the prompt is created. It checks if $VIRTUAL_ENV is set and not empty. If so, it sets the first element of the $psvar array to $VIRTUAL_ENV with everything before and including the last / removed (like basename $VIRTUAL_ENV but less expensive)

In the definition of PROMPT %(1V.(%1v).) checks if the first element of $psvar is set and not empty (%(1V.true-text.false-text)) and adds the content of the this element plus some parentheses ((%1v))

export VIRTUAL_ENV_DISABLE_PROMPT=yes disables any prompt setting by bin/activate scripts.


Ubuntu not able to boot up and fresh installlation also not possible

Solution 1:
If you are able to boot into Windows.
Boot in to Windows OS. Type diskmgmt.msc in Run or command Prompt .
Using Disk Management delete the Ubuntu partition.
Now try installing Ubuntu.
After installation is made, if you have problem with boot menu.
Use Boot Repair to create a new boot entry for ubuntu or you can repair the boot menu entry.

Solution 2:
If you can't able delete partition.
Try to delete the partition using diskpart.exe

Solution 3:
Prepare Live Boot CD or USB with any of the linux distro probably use Ubuntu. Live Boot into Ubuntu.Use Disks Application which will list all the disks.You can delete the partition.Then Start Fresh Installation.


Connect Mac to Ubuntu with USB to USB cable

Typically, data is transferred between computers using a network, such as your LAN.  A lot of the time a router is involved, but you can create a network between two machines in the same way, using WiFi or crossover cables.  While it may be obvious, the speed of the transfer will be limited by the speed of the network speed, so you should try to use wire connections if possible.

Once you establish a network, you can use programs such as rsync, sshfs, scp or even samba to share files between the computers.

Another solution, especially when dealing with raw data (vs files), or a lot of data, would be for you to remove the HDD from one machine, and connect it to the other machine.  You can buy special SATA to USB cables or self-powered devices to make this easier.  Unfortunately, it is unlikely that you can remove the HDD from the Apple product.

Is there a reason both of these machines couldn't be hooked up to a router/switch so that you could use SAMBA, or other data-transferring programs?  How often do you intend to need to do this?  Do you actually have a Standard A to Standard A USB cable?

You can find more information about difficulties using USB in this way by checking out this explanation, or look at a more hopeful explanation that this is possible by using TCP/IP over USB.


Insufficient 8 GB RAM compels me to use a swap file?

You can try with adding the swap file in you ssd let say 8GB :

sudo dd if=/dev/zero of=/root/swapfile bs=1024 count=8M

sudo /sbin/mkswap /root/swapfile && /sbin/swapon /root/swapfile

In the end since you already are on ssd and you cannot add physical memory either you go  for another hardware or you limit your processes.


If you mean having 2 partitions, one for each OS, I recommend the use of a live USB or CD and reducing the size of the original ext4 partition, now, you'll end up having some unallocated space, what you'll do is that you'll set it up a an NTFS and install windows there.

It would be my personal recommendation to create not 1, but 2 NTFS partitions, the reason is that you can back up your data in a NTFS partition (movies, files, etc), without depending on a OS for managing that, you could have dual boot with Ubuntu, windows, and all your data in another partition, and in case something happens and you need a clean install, you won't loose all of your data.

Hope this answer suits you friend, let us know how it was.

Note: When i mean use a live USB or CD, i mean if you have the USB or Ubuntu CD, you just put it in your computer and boot from it, and select the option live (like for testing it), that will give you access to Gparted and then you can do what you need to do, sorry if I wasn't specific here.


12.04 live usb unable to boot Clevo m98nu

You need to check the md5sum for the .iso file you downloaded.  If it's not correct then the image file is corrupted and you will need to get a good copy.  You can get the iso file and the md5sum file from a CD mirror, eg http://mirror.anl.gov/pub/ubuntu-iso/CDs/12.04.1/

A torrent is also a good way to get the .iso if you are having trouble getting a good download.


Which desktop environment to use if Unity test on 11.04 didn't run well on one test?

You will be able to run Unity2D straight up after the installation.

It is installed by default with 11.10 and really will not care what driver your are using as long as you can boot to graphical login.

It is fast, almost as cute as Unity3D and will not hog your graphics card.

As an option will will also be able to run GNOME Classic session and make your desktop at least as similar as GNOME2 was. For more information on that have a look at this post

How to revert to GNOME Classic Desktop?
How do I install and switch to the Unity 2D desktop? (There is an answer there for 11.04 if you're interested in just using that)


Why does it show in the unknown hardware list?

Yes, it is normal.

The command

sudo ubuntu-drivers devices

shows both the available drivers. Run:

sudo lshw -c video

or

sudo lshw -c video | grep conf

that will show the driver in use.


Its regarding htc one M7 root and install ubuntu

There is no one step process for installing Ubuntu Touch on your device right now. However you can try to port it to your device and then install it.
Please start here.
Please note that this is a long process too. It will require time and patience.
If you are unwilling to spend so much time, I would suggest waiting until somebody else ported ubuntu touch to your device and then installing it.


Image browser which shows RGBs of individual pixels - where?

Inkscape could be an option, if hex values are OK. Open an image, and select the colour picker tool, and the hex value of the colour of the current pixel is shown in the bottom bar (coordinates are always shown).


Can't update from Ubuntu 16.04 to Ubuntu 17.04

Ubuntu 17.04 is EOL.

Normally it is only allowed to upgrade to next version (16.10 which is also EOL) or next LTS version, 18.04.

So, upgrade to Ubuntu 18.04 is the only supported option now.


Setting up 2 monitor workspace with Nvidia Optimus and save settings in Xorg.conf

after replacing my smaller Medion Monitor 1440*900 with another 1080p Monitor,

the problem displaying the login screen on both Monitors was solved automatically.

**As resume: So this post doesnt answer how to correctly show login screen on dual monitor set up with different screen resolutions! The bigger screen only shows the lower resolution from the dual monitor setup.

There is no problem having a dual monitor setp up with same display resoultions for me!

-> For different wallpaper on each screen , use nitrogen for example. Look at my post above!**


Help with dual booting Windows 7 and Ubuntu 14.04

Try using Boot-Repair, it's a simple tool to repair frequent boot issues.

1- DOWNLOAD BOOT-REPAIR-DISK.

2- Then burn it on a live-USB key via Unetbootin.

3- Insert the Boot-Repair-Disk and reboot the PC.

4- Choose your language.

5- Connect internet if possible.

6- Click "Recommended repair".

7- Reboot the pc.


You can't do it in Windows.

If you get the grub

Go to "Advanced Options" and then "Recovery Mode".
Go to "Drop to root shell prompt" (terminal).
nano /etc/default/grub and edit.
update-grub
reboot and you are done.

Otherwise
Repair restore and reinstall grub 2 with a Ubuntu installation USB or DVD.

Boot from Ubuntu installation DVD or USB drive and choose 'Try Ubuntu without installing'.
Mount the partition of your Ubuntu Installation. If you are not sure which one, launch GParted (included in the Ubuntu installation DVD or USB)
or.
Open a terminal (Ctrl+Alt+T) and use the following command:

sudo fdisk -l

and find out. It is usually a EXT4 Partition. Replace the XX with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.

sudo mount /dev/sdXX /mnt

XX being the partition where Ubuntu is installed.

If there is a separate boot partition.

sudo mount /dev/sdXY /mnt

XY being your boot partition.

for efi boot.

sudo mount /dev/sdXZ /mnt/boot/efi

sdXZ being the efi partition.

Now bind the directories that grub needs access to to detect other operating systems, like so.

sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys

then

sudo gedit /mnt/etc/default/grub

edit it save and go to that using chroot.

sudo chroot /mnt

Now update grub.

update-grub

Now grub is back, all that is left is to exit the chrooted system and unmount everything.

exit &&
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts &&
sudo umount /mnt/dev &&
sudo umount /mnt

Shut down and turn your computer back on, and you will be met with the default Grub2 screen.
Modified from this.


Installation only recognizes 3 GB of memory after RAM upgrade

To start with, what version of Ubuntu have you installed? 32bits or 64bits?
If I'm correct 32bits systems won't be able to use more than 3Gb of memory, try with the 64bits version.


This is the fix;

location ~* \.(js|jpg|png|css)$ {
    root /path/to/your/css/files;
    expires 30d;
}


I am so glad that this was fixed.

Here is the commit that fixed this: a new font.

It can be installed using the following command:

curl -kL https://raw.github.com/cstrap/monaco-font/master/install-font-ubuntu.sh | bash


App installed in directory on the PATH, but not found. Weird /snap/bin - error message

Just figured it out: There was a minikube directory under ~/snap, probably left over from a previous install. Fixed the problem doing:

$ rm -rf ~/snap/minikube

This snap-business is a bit annoying...


External monitor not working after docking

Please check out this: Kubuntu 15.04 nvidia optimus. This should help you get everythihg working very smoothly with docking/undocking as well.

/edit

Unless I am mistaken and your laptop does only have the Intel, and not the Nvidia as well. In which case I might be of no help for you.


Problems detecting android tablet IView 788TPC with mtp-tools

The Iview 788TPC doesn't support MTP only USB storage.


I'm afraid it will not be an easy way: check this bug and comment on it as appropriate.


cat /proc/acpi/battery/BAT0/state

Will give you the remaining capacity.

cat /proc/acpi/battery/BAT0/info

To check the maximum capacity, both last and designed.

Note that BAT0 is a name that can change between computer models.


How do I set network sharing in xubutu 13.04 with samba installed?

Open Ubuntu Software Center.
Search for samba and install it.
Search for system-config-samba and install it.
Open Terminal.
Type sudo system-config-samba.
Once Samba Server Configuration is open, go Preferences > Samba Users...
Create a Samba user; base it off your normal user.
Go File > Add Share.
Choose a directory to share, and allow access for the user you created.
From a different computer, connect to your Xubuntu IP address and enjoy.


ListView Subtitled delegate, icon size and title word wrapping?

As stated in the documentation for ListItem.Base (from which ListItem.Subtitle inherits):

  icon : variant

  The location of the icon to show in the list item (optional), or an
  Item that is shown on the left side inside the list item. The icon
  will automatically be anchored to the left side of the list item, and
  if its height is undefined, to the top and bottom of the list item.

You can provide you own image with specific width and height to be used as an icon.

ListView {
    [...]
    delegate: Subtitled {
        id: mySubtitledView
        text: 'Your text'
        subText: 'Your subtext'
        icon: Image {
            source: '<source_uri>'
            width: units.gu(5);
            height: units.gu(5);
        }
        height: units.gu(5)
    }
}

Note the height parameter set for Subtitled, as it will not grow automatically to fit the image's size.

As for your second question, I didn't find a "clean" way of formatting the text, but you can access directly to children of Subtitled and modify there. The main text seems to be the first children of the first children, so this will work:

       Component.onCompleted: {
            // Accessing Subtitled > Item > LabelVisual
            mySubtitledView.children[0].children[0].wrapMode = Text.Wrap
        }

This worked for me, but I don't know if it's a robust solution. Maybe others can comment.


Black screen when playing a movie in VLC player in Kubuntu 12.04

The solution was as simple as this:

$ sudo apt-get --reinstall install kubuntu-restricted-extras

VLC works now! :)


Ask the packaging system!

walt@bat:~(0)$ dpkg -S /usr/include/X11/Xlib.h
libx11-dev:amd64: /usr/include/X11/Xlib.h
walt@bat:~(0)$

and install the libx11-dev package.


Would that be xev?

Here's a command for simplified output:

xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

I found it here: https://wiki.archlinux.org/index.php/Extra_Keyboard_Keys#In_Xorg


I was tempted to say Vim, just out of habit...  just kidding.

This seems like overkill, but you might be able to do it with LibreOffice write, or another word processor, depending on which one is available.

You can customize the toolbar to remove the buttons he won't need, and of course, you can choose the font and color.  I think they all have a setting for autosave, or to save recovery information to allow reloading an unsaved file.

There may be simpler editors that will do what you want, and might be better if you don't have any of the open office applications, but if you already have them, it might be fairly easy to customize it.

I think customizing the existing editor would be easier than writing your own. :)

Edit:

I meant to add that an advantage to the overkill method is that as he gets older and learns more, you can expose new features as he needs them.


I have tried the Eurosport Player from Russia, and it works in Linux at this moment and doesn't use Widevine DRM. But I don't know, is there a difference among different countries.


if it happens when you move your cable - it looks like a hardware issue : make sure the cable is correctly attached - try with another cable (maybe a cable issue)


How to display lyrics that are stored in MP3-Tag?

You can install plugins in Rhythmbox, including at least one (lLyrics) that displays lyrics, see another question here.

Besides, I think your question is possibly a duplicate of this question.

Hope that is helpful.


LAMPP mysql can't create err file and doesn't have uninstall file

I think you change the owner of /opt/lampp. So you need to give owner to /opt/lampp/var/mysql. Use the following code:

sudo chown mysql:mysql -R /opt/lampp/var/mysql

I have same problem too and solved it.


How to close lid without triggering standby one time only

Use the applet for surpressing the sleep mode. Right click onto the panel and than click "Add to panel..." The applet has a name like "applet to surpress sleep mode". Now you see a little clock on your panel. If you click it, it get'ss stroked out and your computer won't enter sleep mode anymore till you click it again.


Ubuntu 20.04 not showing login option to change desktop evirornment

you have to be fully logged out to be able to change the desktop environment. The Gear Symbol should then be there.


MATE Indicator Applet 1.24 - How do I change spacing of icons?

This is possible by using CSS file:

mkdir -p ~/.config/gtk-3.0/
cat << EOF >> ~/.config/gtk-3.0/gtk.css

#fast-user-switch-applet * {
 padding: 0 1px 0 1px;
}
EOF

It will change the default

to

You can adjust the values to which you like.


Either you installed grub somewhere where your escape menu can't find it, or grub wasn't properly installed. Explore a bit in you BIOS boot settings, or try reinstalling linux and looking for grub options. Grub should be installed on your windows drive.


Ubuntu 17.04 wifi belkin USB adapter install?

Larry Finger has source code on github.com for this device.  If you have a working internet connection on the computer
sudo apt-get install git build-essential linux-headers-generic
git clone https://github.com/lwfinger/rtl8192du.git
sudo dkms add ./rtl8192du
sudo dkms install 8192du/1.0

Reboot


I have been having problems on my MacBook as well (particularly since upgrading to 14.10).  When the trackpad freezes, I can get it working again with:

synclient TouchpadOff=0

I still haven't figured out how to turn off the trackpad while typing (even with System Settings -> Mouse & Trackpad -> Touchpad disable while typing box checked; and synclient PalmDetect=1).

The trackpad also seems to zoom in/out in an application when accidentally brushed.


How to retain installed software between Ubuntu installations / Tools for software inventory?

dpkg --get-selections > YourFile.txt will put all of your current packages' names into a text file for you.

Then, on the new machine put the YourFile.txt somewhere (I'll use the desktop for example's sake) and do:

sudo apt-get update
sudo apt-get install aptitude
dpkg --set-selections < ~/Desktop/YourFile.txt
sudo apt-get dselect-upgrade
sudo aptitude install $(cat ~/Desktop/YourFile.txt | awk '{print $1}')

EDIT with a note: This will reinstall ALL of your installed packages. So if you're using (for example) xubuntu 12.04 now, but your new machine will be kubuntu 14.04 you'll run into a number of problems with your desktop managers, and in this case you'll probably want to edit the YourFile.txt to get rid of some of those things


Recover data using Photorec onto an External Drive

If the drive is formated with a Linux format (ext3, ext4) you will need rights to move files to it. That may be the issue. From the look of the permissions you showed that appears to be the case. I would personally do the following:

In Terminal
1.  sudo su
2.  cd
3.  mkdir recovery
4.  chown  recovery
5.  exit

You can now run your photorec program to recover data from the external drive. Please be aware that this data will not be named with the old names and you will have to take some time sorting the data.

Here is an excellent page on what to do after you run photorec so that it is easier to find the files you need.

http://www.cgsecurity.org/wiki/After_Using_PhotoRec


Yes, it's not the best graphics card ever seen, but it can do 1024x768 in Lubuntu 14.04 all the same, if you force the machine to use the vesa driver.

Create a file /usr/share/X11/xorg.conf.d/use-vesa.conf with the following content:

Section "Device"
  Identifier "Configured Video Device"
  Driver "vesa"
EndSection

And that's all. Reboot, and you should have your resolution.

The file can be created with any text editor - if you're not comfortable with the terminal, you'd probably want to use something graphical like leafpad. However, you'd need to be root to have write access to the place where the file is needed.

So, open up a terminal (CTRL + Alt + t) and type "sudo leafpad". You need to enter your password there. I presume you're doing this as the default user so sudo should work and the editor window will open.

Then you can copy & paste the required text into the file and save it to the given location (/usr/share/X11/xorg.conf.d/). The name "use-vesa.conf" is arbitrary, you could also call it "whatever.conf", as long as the .conf bit is in the filename, and the file is saved in the right place, it will work.

Please check whether it works for you.


Minecraft High CPU (125%~) using openJava 6/7

You could try using OptiFine - it's worked well for me in the past.

The SSP mod also works very well; Minecraft singleplayer now runs as a shell of SMP (thus enabling LAN connection), and this mod allows Minecraft to run like it used to, just as pure SSP.


Upgrade from 13.10 to 14.04 no unity dash for default user special compiz config

ITs because your lightdm is crashed. Do the following things

Press ALT+CTRL+F1

You will get tt1

Login as username = root

Password what you set for you system

Now enter the following lines

vim /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf.dpkg-bak //an editor opens b4 u

Delete what is there and add the following lines

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

greeter-show-manual-login=true

Also edit the following file

vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

greeter-show-manual-login=true

Now Restart the system using the following command

init 6 //Reboot system


Which version should I install? 12.04 LTS or 13.04?

You should prefer 12.04 because it offers Long Term Support and it is said to be more stable than 13.04 which is experimental when getting down to some more sophisticated things. Also, you may find yourself with a tool that is not fully compatible with 13.04, while with 12.0.4.3 LTS that is unlikely to happen.

Regards.


Interesting that you couldn't get it working with gPodder. I had this working with Ubuntu 10.04 but with an iPod 30GB video (a generation before yours?). I did have to fiddle a bit to make it work, but once working it was pretty much automatic.

Have you tried a newer version of gpodder than we have in Ubuntu?

The gpodder authors ppa has 2.7, Ubuntu Lucid has 2.2

https://launchpad.net/~thp/+archive/gpodder


What's the difference between xxxx-client and xxxx-server packages?

Almost any application can be made using a distributed client-server model:

server provides a resource1 or service,
client uses the resource or service.

In some applications, both the server and client are made by the same producer and are branded as parts of one product – this is the case of OpenSSH or MySQL.

However, the protocol between server and client(s) is what really matters. The power2 of the client-server model is that any software implementing the protocol can use it (as both a client or server, see below). Why the producers of Nginx (or Apache) did not provide a client for their software? Because their products are web servers and there have been lots of clients (called web browsers in this case) available already, like Firefox, Chrome, etc.

Back to the first group… Although an “official” client for OpenSSH is provided, you can use another one, like PuTTY, right? And there are also alternative MySQL server implementations (MariaDB and Percona Server) which collaborate with the common MySQL clients which, again, are not limited to the command-line MySQL client provided by the package mysql-client.

1 The resource can be a database (*SQL), webpages or even a console (keyboard, mouse, and monitor) in the case of the X server.

2 Another advantage is that these parts can be run on different machines – but mostly also the same one, just as their deployer needs.


Boot Ubuntu or Win 10 on Dell Machine without Using System Config

The reason you have to use the Firmware boot selection is because Grub can not switch modes on the fly. Since you installed Grub in Legacy mode, it can not launch Windows in EFI mode. Thus you need to reinstall Ubuntu in EFI mode.

In the system settings turn off Legacy support to force the Installer to boot in EFI mode. I am also assuming you had to add a gurb bios partition since Win10 EFI requires GPT partitioning. This partition can be deleted since grub EFI does not need it.


Monitors do not stay asleep Ubuntu 19.04

I have an RX570 with 2 monitors and have the same problem. I don't have a fix (apart from possibly to set amdgpu.dc=0 as mentioned in the links below). It seems to be this bug:

https://bugs.freedesktop.org/show_bug.cgi?id=109246

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1790861


Disable permanently Ubuntu 19.04 drawer folder

If you're talking about the dock (normally on the left side of your screen), then just right-click on the folder that you wish to remove, and select Remove from Favorites in the contextual menu.


I found the answer a long time ago but forgot to share it here.1.Yes. The VFS is an abstraction layer that gives applications access to different types of file systems and local and network storage devices. According to here both the generic filesystem code (VFS) and the code for each different filesystem are found in /fs directory.2. So using SystemTap you can probe kernel.function("*@fs/*.c").call and kernel.function("*@fs/*.c").return for incoming interactions and kernel.function("*@fs/*.c").inline for outcomming interactions (if you ignore functions that there are in *.c itself).


In Ubuntu 13.04, cannot install libssl-dev

Solution is to ensure that the software sources includes updates, like so:

$ sudo vi /etc/apt/sources.list
$ #add the following two lines to sources.list for raring-updates

 deb http://ch.archive.ubuntu.com/ubuntu/ raring main restricted
 deb-src http://ch.archive.ubuntu.com/ubuntu/ raring main restricted
+deb http://ch.archive.ubuntu.com/ubuntu/ raring-updates main restricted
+deb-src http://ch.archive.ubuntu.com/ubuntu/ raring-updates main restricted

$ sudo apt-get update
$ apt-cache policy libssl-dev

You should see output that includes raring-updates

$ sudo apt-get install libssl-dev

Should work this time!


can't update in terminal or software update

It seems like you are using a non valid ppa

1. Disable the PPA

Please disable (by unchecking or removing) the gwibber ppa via Software & Updates (from Terminal: software-properties-gtk) in the Other Software tab

This AskUbuntu post explains removing PPA's as well.

2. Update package informations

Now open a Terminal and re-run

sudo apt update

or

sudo apt-get update

to update your package informations.

3. Install updates (optional)

You should then be able to run

sudo apt upgrade

or

sudo apt-get upgrade

to upgrade your packages as well.

Regarding the gwibber daily ppa

If you try to open up the ppa url in your browser you'll see as well that the entire url seems non existent.

I've checked the project url and it seems like precise is the last supported Ubuntu release for this ppa. I can only guess what you are using (trusty) as you haven't mentioned it in your post.


From what I've read, Compiz has difficulties supporting the 82G965 chipset.  My suggestion would be to login using the Ubuntu Classic Session (bottom of the screen on the logon box) and once logged in, install Unity-2D from the software-centre. Logout, and login, but this time with the Unity-2D session.


Running

sudo apt-get dist-upgrade

resolved the issue, which I'm going to assume also upgraded gnome-keyring and everything else that was causing the other internal errors.


login page not showing text and labels ubuntu 18.04

thanks to @aleksandrs-t , the solution is right here and worked for me: [Ubuntu 18.04: missing letters in login screen


Bash only looks for .bash_login or .profile files if it is executed as interactive login shell. When it is executed as interactive non-login shell it reads .bashrc. Commonly it is the second case i.e when you run gnome-terminal bash is run as non-login shell. Applications->Accessories->Terminal is a menu entry for gnome-terminal.


How to resize root to increase home partition size in ubuntu 16.04 with gparted

BACKUP IMPORTANT DATA BEFORE PROCEEDING

Even though the chances of losing data is slim but still

BACKUP IMPORTANT DATA BEFORE PROCEEDING

Boot to a live environment using Ubuntu CD/DVD/USB.
Open Gparted.
Delete linux-swap (we will create it later).
Resize /dev/sda5 to your desired size. See this answer for more information.
Resize /dev/sda7 using the newly created unallocated space.
Leave 4096 MB at the end for swap.
Create new swap with the left out 4096 MB.
Finally, apply all changes.
Mount your / partition:

sudo mkdir -p /media/dev && sudo mount /dev/sda5 /media/dev

Edit /etc/fstab and change the UUID of the swap partition in the file:

sudo gedit /etc/fstab

You can get the UUID of your swap partition from the command:

sudo blkid

Close everything and unmount mounted partition:

sudo umount -R /media

Reboot.


Ubuntu server (postfix) mismatch of version apt-get install and apt-get source

You are lacking a entry in your apt sourcelist. (NB. I use a mirror)

deb-src http://archive.mirror.blix.eu/ubuntu/ precise-security main restricted


Ubuntu 10.04.4 32 bit not detecting Acer monitor

If you have a backup of your Xorg file then restore it. Sounds like the update overwrote your Xorg configuration.

OR

Boot into your system using recovery console. Pressing SHIFT while in GRUB should give you the option.

Now execute the following commands:

user@ubuntu ~# sudo service gdm stop

This command will stop the X.

Now we need to generate the xorg.conf file:

user@ubuntu ~# sudo Xorg -configure

This has generated the file in ~/xorg.conf.new.

We need to make the X using it so we have to put this file inside /etc/X11/

user@ubuntu ~# sudo mv ~/xorg.conf.new /etc/X11/xorg.conf

After moving this file to the proper location you can start the X again and see what happens:

user@ubuntu ~# sudo service gdm start


Ah, found it! It was ffmpeg

sudo apt install ffmpeg

Restart firefox, and all good :)

Still doesn't work on Chromium though, oh well.


Seems to be related to Chromium and Google Chrome as per this issue. It seems to have been fixed in Chromium 14.0.817. Not sure when it will reach Google Chrome.


Ubuntu Installation Partitioning Gone Wrong

Boot using your ubuntu CD and follow this guide:

http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/

i won't try to resize your swap. Your swap is mostly equivalent to your size of ram memory.

Evrything in sda4 is your ubuntu. sda5 is your OS and sda4 your swap.

sda2 is your windows partion, sda1 your windows system partion.

sda3 is windows recovery.


Will uTouch work on a Dell inspiron duo?

Multi-touch is not working on the Duo now hopefully it will in 11.04. This is the guide to set up the duo for general touch screen. http://ubuntuforums.org/showthread.php?t=1658635


The Atom snap is a classic confined application. As a result it has access to the same configuration / plugins and documents that the "classically" installed binary package would have. So there's not really any migration to be done. Simply remove the deb, install the snap, and you're done.


Chromium repeats three times search request

Yeah! I found solution for my trouble. If you'll whenever meet the same trouble, I know how to fix it.

Troubleshooting:

In the top right, click the Chrome menu.
Click settings.
Go to the "Search" section.
Click the button, that says "Manage search engines..."

In opened window I saw two different default google search settings. Which I use repeats search request three times (I don't have and ideas, what to do it request there).

He is: https://www.google.com/search?q=%s&ie=utf-8&oe=utf-8&aq=t&q=%s&ie=utf-8&oe=utf-8&aq=t&channel=fflb&q=%s&ie=utf-8&oe=utf-8&aq=t&channel=rcs

For solve this problem I just select other normal request string. It is all.

Screen:


HP Laserjet 1020 does not work in Ubuntu 17.10

I've configured it today for 19.10 the next way.

First of all I've tried to run hp-check in terminal to see what is wrong with it and it said it requires some packages that are not installed. But it didn't help to resolve the issue. Finally, I've realized I need to install the newest phlip from here and install it:

cd ~/Downloads
chmod +x hplip-3.20.3.run
sh ./hplip-3.20.3.run

I had previous version of hplip, so current version of phlip asked if I want to remove it to avoid conflicts and I've accepted. Then I've run the sh ./hplip-3.20.3.run command again because of I didn't see hp utils installed.

The second time I was answering the next way:

Please choose the installation mode (a=automatic*, c=custom, q=quit) : a
Is "Ubuntu 19.10" your correct distro/OS and version (y=yes*, n=no, q=quit) ? y
Please enter the sudoer (spacer)'s password:     # here I've entered my user's password
Please read the installation notes. Press <enter> to continue or 'q' to quit: # here I've hit <kbd>Enter</kbd>
Would you like to have this installer install the hplip specific policy/profile (y=yes*, n=no, q=quit) ? y
Do you want to install these missing dependencies (y=yes*, n=no, q=quit) ? y
HPLIP-3.20.3 exists, this may conflict with the new one being installed.
Do you want to ('i'= Remove and Install*, 'q'= Quit)?    :i

Then it asked me Do you want to check for HPLIP updates?. (y=yes*, n=no) : y and I've said yes, but then interrupted that process.

But without hplip plugin it refused to work. So I've run:

hp-doctor

It said everything is OK except the

error: Required plug-in status: Not installed

and then it asked if I want to install the plugin:

Checking for HP Properitery Plugin's....
Plugin's are missing. Press 'y' to install the plugin(y=yes*, n=no):y

-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.20.3 |
-----------------------------------------

  Option      Description
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recommended)
  p           Specify a path to the plug-in (advanced)
  q           Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

error: Unable to recieve key from keyserver
Do you still want to install the plug-in? (y=yes, n=no*, q=quit) ? y

Do you accept the license terms for the plug-in (y=yes*, n=no, q=quit) ? y
Please enter the sudoer (spacer)'s password:

Downloading firmware to device hp:/usb/HP_LaserJet_1020?serial=FN0D69G...
Firmware download successful.

After that it prints a test page and documents.


How good is linux encrypted file system?

The zero and then random is to make it more difficult to determine where there is data, since the encrypted filesystem (if working correctly) is indistinguishable from noise. No, you cannot run those commands after you have the filesystem created (unless you will then re-install); if you do, then the system is slightly more secure then it is currently.


You could try installing proprietary drivers for your system.

Click the Ubuntu Dash button and type in "Software Updater" and open it, then once it loads click "Settings", and visit the "Additional Drivers" tab and select the fglrx proprietary driver, the third option, then click the "Apply Changes" button and wait for it to finish updating.

You may need to reboot, and then try running a HD video.


PCL is the printing command "language" this printer driver uses. It talks to printers that speak "PCL 6" in this case. Just like other printers print PS (postscript) or PDF. Older PCL printers may only support up to v5 for 5C (color). All newer though should support either "PCL 6" or PCL 6XL (for window GUI rendering crap).

You actually don't NEED the name and model of your printer if you knows it speaks PDF or PS or PCL6. That's the great things about open standards.

As for which one.. depending on your desktop interface or CUPS/PDD driver packages, some times you'll see one that says "recommended".. If not, I usually go with the Gutenprint based drivers. They seem to have better standards and quality control. But others welcome to chime in too.


Ubuntu 18.04 GNOME shell extensions not working after installing Chromium/Chrome

The 'universe' version of an app is a non-Snap installation using a package from the Ubuntu repositories for your version, e.g., https://packages.ubuntu.com/bionic/chromium-browser . Install that with sudo apt update && sudo apt install chromium-browser after uninstalling the Snap version.


How to create a minimal installation in VMware Player for browsing?

I recommend ubuntu-vm-builder
(see documentation), which is really a large wrapper around debootstrap
which will create about as minimal an image as you can possibly use.


Adding to Bryan's answer, if you simply want to compile a file or a bunch of files from a terminal, the py_compile module can be executed as a script in the following manner:

python -m py_compile fileA.py fileB.py fileC.py ...


open your terminal with CTRL+ALT+T then do as

sudo apt-get install --reinstall libwebkitgtk-3.0-0

then try again.


How do i remove the apache2-default page in ubuntu

The Apache 2 default page is stored at /var/www/index.html. You can overwrite it and move any resources needed into /var/www/ and voila!


What is a "ubuntu" gnome-session and why isn't it a `systemd --user` session?

According to Ubuntu's documentation, gnome-session is a program to start a GNOME desktop environment. Also, the option --session=SESSION means to use the applications defined in SESSION.session. And, if not specified, gnome.session will be used.

Accordingly, --session=ubuntu should refer to the file /usr/share/gnome-session/sessions/ubuntu.session which writes:

[GNOME Session]
Name=Ubuntu
RequiredComponents=org.gnome.Shell;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Clipboard;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Mouse;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;

According to @user535733 comment, while 18.04 was being put together, there were issues and systemd --user level integration was not done for 18.04.


How to obliterate livemail webapp from your system

Enter sudo apt-get purge unity-webapps-livemail in a terminal


Just to let you know in this thread how I solved the problem (according to the linked answers).

Start CCSM.
Click Ubuntu Unity Plugin located under "Desktop" category.
Select tab "Experimental".
Modify number under "Launcher Reveal Pressure".

The lower the figure, the more sensitive the launcher will be, and the easier it will appear.

Problem solved! =) A note to the Ubuntu guys, the slider in the system settings should go from 0 to X, so you can actually remove the pressure alltogether. The default settings are extremely annoying on an Macbook Air with a mouse pad.

Hope I can save you all some clicks.


Canon CanoScan LiDE 200 scans with a black bar

As suggested in the comments and the linked bug report, downgrading the  sane backend to version 1.0.25 worked.

I followed these instructions:
https://help.ubuntu.com/community/CompileSaneFromSource

Here are the commands I ran:

sudo apt-get install libusb-dev build-essential libsane-dev libavahi-client-dev libavahi-glib-dev
git clone git://anonscm.debian.org/collab-maint/sane-backends.git
cd sane-backends/
git checkout tags/upstream/1.0.25
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var  --
make
sudo make install
# reboot


How to free up space in /boot when there are no extra kernals

I ended up borrowing someone else's computer to make a bootable usb and increase the size of my root partition.


I figured out to execute the following instructions and after restarting chrome everything worked perfectly:

mkdir /opt/google/chrome/plugins
cd /opt/google/chrome/plugins
ln -s /usr/local/jre1.7.0/.../libnpjp2.so .


Ubuntu and Interactive Media Installations

Here are instructions for getting Ubuntu to detect a Wii remote, which could easily be hacked into an artistic prop or some inconspicuous object.

You could use Motion to detect the movement of people walking through your installation.

I haven't used it personally, but here is an interesting DIY project for an automated NERF turret, which detects a moving target, tracks it, shoots and plays sounds.


I tried to install Ubuntu 13.04, but it failed

What it means is that the files on your USB are corrupted so it cannot install properly. You need to clean off the USB flash drive then run Unetbootin again. Make sure that the Ubuntu iso you downloaded is also not corrupted. It may be good to download Ubuntu again and use the fresh copy to eliminate all possible sources of corruption.


How to install grub2 on second disk and using EFI on first disk

You poosibly made changes to your friends system already.
Please create a bootinfo-summary following the steps in this link:
https://help.ubuntu.com/community/Boot-Info
If you use boot-repair don't click the "recommended repair"-button, this would possibly make more changes to the system.
Post the given URL so we can see what happend to your friends system and are able to give advice.


How do I use variables in a sed command?

The shell is responsible for expanding variables. When you use single quotes for strings, its contents will be treated literally, so sed now tries to replace every occurrence of the literal $var1 by ZZ.

Using double quotes

Use double quotes to make the shell expand variables while preserving whitespace:

sed -i "s/$var1/ZZ/g" "$file"

When you require the quote character in the replacement string, you have to precede it with a backslash which will be interpreted by the shell. In the following example, the string quote me will be replaced by "quote me" (the character & is interpreted by sed):

sed -i "s/quote me/\"&\"/" "$file"

Using single quotes

If you've a lot shell meta-characters, consider using single quotes for the pattern, and double quotes for the variable:

sed -i 's,'"$pattern"',Say hurrah to &: \0/,' "$file"

Notice how I use s,pattern,replacement, instead of s/pattern/replacement/, I did it to avoid interference with the / in \0/.

Example

The shell then runs the above command sed with the next arguments (assuming pattern=bert and file=text.txt):

-i
s,bert,Say hurrah to &: \0/,
text.txt

If file.txt contains bert, the output will be:

Say hurrah to bert: \0/


What additional security measures should I apply for Ubuntu?

Note : Not intended as Answer , just specifying some useful links.

do I need a firewall, anti-virus, anti-spyware tools?

Creating a Firewall for Your Ubuntu Desktop

Basic iptables how-to

Ubuntu Basic Security Community guide

Do i need firewall in Ubuntu.


Try:

sudo apt-get update
sudo apt-get upgrade

and than you can try install packages again.


Anyone successfully installed ubuntu on the 6th gen MSI GS60 ghost pro with 2 video cards?

I was finally able to install Linux Mint 18 on my 6th gen MSI GS60 ghost pro 002. It would not work until I updated my firmware to the latest (it became available on April 2016 via the MSI website). After installing the latest graphics drivers via the Linux Mint update software, I can even select between my two graphics cards. I was only able to complete the installation using my entire 2nd hard drive (internal hard drive) and you must go to your BIOS and select legacy mode (not UEFI) for it to work.

Everything via Linux works great.  Dual/external monitor support isn't quite as good as in Windows, but everything else runs even better/faster.


Unable to read files between two distros

Doing it manually

Mount the 2nd Distro with these commands

sudo mkdir /mnt/MyOtherDistro
sudo mount -t auto -v /dev/sdb5 /mnt/MyOtherDistro

Now you will be able to use Nautilus or any other file manager to navigate to the directory /mnt/MyOtherDistro to view / copy / delete files, etc.

You can also change to a directory in the 2nd Distro:

cd /mnt/MyOtherDistro/home/Me/Documents

When you are done unmount the partition and delete the directory:

sudo umount -l /mnt/MyOtherDistro
sudo rm -d /mnt/MyOtherDistro

Doing it with a bash script

As luck would have it I was just working on two scripts tonight to mount and unmount partitions via a command line scroll box.

Mount a partition

To mount a partition run the bash script sudo mount-menu.sh:

Highlight an unmounted partition and press Enter. It will be mounted and some basic information about the partition will be displayed:

=====================================================================
Mount Device:  /dev/nvme0n1p8
Mount Name:    /mnt/mount-menu.b9yZf
File System:   ext4
ID:            Ubuntu
RELEASE:       18.04
CODENAME:      bionic
DESCRIPTION:   Ubuntu 18.04 LTS
 Size  Used Avail Use%
  24G   17G  5.2G  77%

To create the script, copy the following to a file called /usr/local/bin/mount-menu.sh:

#!/bin/bash

# NAME: mount-menu.sh
# PATH: /usr/local/bin
# DESC: Select unmounted partition for mounting
# DATE: May 9, 2018. Modified May 11, 2018.

# $TERM variable may be missing when called via desktop shortcut
CurrentTERM=$(env | grep TERM)
if [[ $CurrentTERM == "" ]] ; then
    notify-send --urgency=critical \
                "$0 cannot be run from GUI without TERM environment variable."
    exit 1
fi

# Must run as root
if [[ $(id -u) -ne 0 ]] ; then echo "Usage: sudo $0" ; exit 1 ; fi

#
# Create unqique temporary file names
#

tmpMenu=$(mktemp /tmp/mount-menu.XXXXX)     # Menu list
tmpInfo=$(mktemp /tmp/mount-menu.XXXXX)     # Mount Parition Info
tmpWork=$(mktemp /tmp/mount-menu.XXXXX)     # Work file
MountName=$(mktemp -d /mnt/mount-menu.XXXXX)  # Mount directory name

#
# Function Cleanup () Removes temporary files
#

CleanUp () {
    [[ -f $tmpMenu ]] && rm -f $tmpMenu     # If temporary files created
    [[ -f $tmpInfo ]] && rm -f $tmpInfo     #  at various program stages
    [[ -f $tmpWork ]] && rm -f $tmpWork     #  remove them before exiting.
}

#
# Mainline
#

lsblk -o NAME,FSTYPE,LABEL,SIZE,MOUNTPOINT > $tmpMenu

i=0
SPACES='                                                                     '
DoHeading=true
AllPartsArr=()      # All partitions.

# Build whiptail menu tags ($i) and text ($Line) into array

while read -r Line; do
    if [[ $DoHeading == true ]] ; then
        DoHeading=false                     # First line is the heading.
        MenuText="$Line"                    # Heading for whiptail.
        FSTYPE_col="${Line%%FSTYPE*}"
        FSTYPE_col="${#FSTYPE_col}"         # FS Type, ie `ext4`, `ntfs`, etc.
        MOUNTPOINT_col="${Line%%MOUNTPOINT*}"
        MOUNTPOINT_col="${#MOUNTPOINT_col}" # Required to ensure not mounted.
        continue
    fi

    Line="$Line$SPACES"                     # Pad extra white space.
    Line=${Line:0:74}                       # Truncate to 74 chars for menu.

    AllPartsArr+=($i "$Line")               # Menu array entry = Tag# + Text.
    (( i++ ))

done < $tmpMenu                             # Read next "lsblk" line.

#
# Display whiptail menu in while loop until no errors, or escape,
# or valid partion selection .
#

DefaultItem=0

while true ; do

    # Call whiptail in loop to paint menu and get user selection
    Choice=$(whiptail \
        --title "Use arrow, page, home & end keys. Tab toggle option" \
        --backtitle "Mount Partition" \
        --ok-button "Select unmounted partition" \
        --cancel-button "Exit" \
        --notags \
        --default-item "$DefaultItem" \
        --menu "$MenuText" 24 80 16 \
        "${AllPartsArr[@]}" \
        2>&1 >/dev/tty)

    clear                                   # Clear screen.
    if [[ $Choice == "" ]]; then            # Escape or dialog "Exit".
        CleanUp
        exit 1;
     fi

    DefaultItem=$Choice                     # whiptail start option.
    ArrNdx=$(( $Choice * 2 + 1))            # Calculate array offset.
    Line="${AllPartsArr[$ArrNdx]}"          # Array entry into $Line.

    # Validation - Don't wipe out Windows or Ubuntu 16.04:
    # - Partition must be ext4 and cannot be mounted.

    if [[ "${Line:MOUNTPOINT_col:4}" != "    " ]] ; then
        echo "Partition is already mounted."
        read -p "Press <Enter> to continue"
        continue
    fi

    # Build "/dev/Xxxxx" FS name from "├─Xxxxx" menu line
    MountDev="${Line%% *}"
    MountDev=/dev/"${MountDev:2:999}"

    # Build File System Type
    MountType="${Line:FSTYPE_col:999}"
    MountType="${MountType%% *}"

    break                                   # Validated: Break menu loop.

done                                        # Loop while errors.

#
# Mount partition
#

echo ""
echo "====================================================================="
mount -t auto $MountDev $MountName

# Display partition information.
echo "Mount Device=$MountDev" > $tmpInfo
echo "Mount Name=$MountName" >> $tmpInfo
echo "File System=$MountType" >> $tmpInfo

# Build Mount information (the partition selected for cloning to)
LineCnt=$(ls $MountName | wc -l)
if (( LineCnt > 2 )) ; then
    # More than /Lost+Found exist so it's not an empty partition.
    if [[ -f $MountName/etc/lsb-release ]] ; then
        cat $MountName/etc/lsb-release >> $tmpInfo
    else
        echo "No LSB-Release file on Partition." >> $tmpInfo
    fi
else
    echo "Partition appears empty" >> $tmpInfo
    echo "/Lost+Found normal in empty partition" >> $tmpInfo
    echo "First two files/directories below:" >> $tmpInfo
    ls $MountName | head -n2 >> $tmpInfo
fi

sed -i 's/DISTRIB_//g' $tmpInfo      # Remove DISTRIB_ prefix.
sed -i 's/=/:=/g' $tmpInfo           # Change "=" to ":="
sed -i 's/"//g' $tmpInfo             # Remove " around "Ubuntu 16.04...".

# Align columns from "Xxxx:=Yyyy" to "Xxxx:      Yyyy"
cat $tmpInfo | column -t -s '=' > $tmpWork
cat $tmpWork > $tmpInfo

# Mount device free bytes
df -h --output=size,used,avail,pcent "$MountDev" >> $tmpInfo

# Display partition information.
cat $tmpInfo

CleanUp                             # Remove temporary files

exit 0

Unmount a partition

To unmount the partition setup by mount-menu.sh run the command sudo umount-menu.sh. The same screen shown above appears except the partition is already mounted and you select it to unmount it. First you need to create the script /usr/local/bin/umount-menu.sh and copy in the lines below:

#!/bin/bash

# NAME: umount-menu.sh
# PATH: /usr/local/bin
# DESC: Select mounted partition for unmounting
# DATE: May 10, 2018. Modified May 11, 2018.

# $TERM variable may be missing when called via desktop shortcut
CurrentTERM=$(env | grep TERM)
if [[ $CurrentTERM == "" ]] ; then
    notify-send --urgency=critical \
                "$0 cannot be run from GUI without TERM environment variable."
    exit 1
fi

# Must run as root
if [[ $(id -u) -ne 0 ]] ; then echo "Usage: sudo $0" ; exit 1 ; fi

#
# Create unqique temporary file names
#

tmpMenu=$(mktemp /tmp/mount-menu.XXXXX)   # Menu list

#
# Function Cleanup () Removes temporary files
#

CleanUp () {
    [[ -f "$tmpMenu" ]] && rm -f "$tmpMenu" #  at various program stages
}

#
# Mainline
#

lsblk -o NAME,FSTYPE,LABEL,SIZE,MOUNTPOINT > "$tmpMenu"

i=0
SPACES='                                                                     '
DoHeading=true
AllPartsArr=()      # All partitions.

# Build whiptail menu tags ($i) and text ($Line) into array

while read -r Line; do
    if [[ $DoHeading == true ]] ; then
        DoHeading=false                     # First line is the heading.
        MenuText="$Line"                    # Heading for whiptail.
        MOUNTPOINT_col="${Line%%MOUNTPOINT*}"
        MOUNTPOINT_col="${#MOUNTPOINT_col}" # Required to ensure mounted.
        continue
    fi

    Line="$Line$SPACES"                     # Pad extra white space.
    Line=${Line:0:74}                       # Truncate to 74 chars for menu.

    AllPartsArr+=($i "$Line")               # Menu array entry = Tag# + Text.
    (( i++ ))

done < "$tmpMenu"                           # Read next "lsblk" line.

#
# Display whiptail menu in while loop until no errors, or escape,
# or valid partion selection .
#

DefaultItem=0

while true ; do

    # Call whiptail in loop to paint menu and get user selection
    Choice=$(whiptail \
        --title "Use arrow, page, home & end keys. Tab toggle option" \
        --backtitle "Mount Partition" \
        --ok-button "Select unmounted partition" \
        --cancel-button "Exit" \
        --notags \
        --default-item "$DefaultItem" \
        --menu "$MenuText" 24 80 16 \
        "${AllPartsArr[@]}" \
        2>&1 >/dev/tty)

    clear                                   # Clear screen.

    if [[ $Choice == "" ]]; then            # Escape or dialog "Exit".
        CleanUp
        exit 1;
     fi

    DefaultItem=$Choice                     # whiptail start option.
    ArrNdx=$(( $Choice * 2 + 1))            # Calculate array offset.
    Line="${AllPartsArr[$ArrNdx]}"          # Array entry into $Line.

    if [[ "${Line:MOUNTPOINT_col:15}" != "/mnt/mount-menu" ]] ; then
        echo "Only Partitions mounted by mount-menu.sh can be unounted."
        read -p "Press <Enter> to continue"
        continue
    fi

    # Build "/dev/Xxxxx" FS name from "├─Xxxxx" menu line
    MountDev="${Line%% *}"
    MountDev=/dev/"${MountDev:2:999}"

    # Build Mount Name
    MountName="${Line:MOUNTPOINT_col:999}"
    MountName="${MountName%% *}"

    break                                   # Validated: Break menu loop.

done                                        # Loop while errors.

#
# Unmount partition
#

echo ""
echo "====================================================================="
umount "$MountName" -l                      # Unmount the clone
rm  -d "$MountName"                         # Remove clone directory

echo $(tput bold)                           # Set to bold text
echo $MountDev mounted on $MountName unmounted.
echo $(tput sgr0)                           # Reset to normal text

CleanUp                                     # Remove temporary files

exit 0

Make them executable

After creating the files, both scripts must be marked executable:

sudo chmod a+x /usr/local/bin/mount-menu.sh
sudo chmod a+x /usr/local/bin/umount-menu.sh


terminal command to open new chromium tab

A couple of options to consider...

1) Find an existing instance of Chromium, activate the window, and send Ctrl+t to open a new tab:

xdotool search --onlyvisible --name 'Chromium' windowactivate --sync key --clearmodifiers --window 0 ctrl+t

2) Open the about:blank page in a new tab:

chromium-browser 'about:blank'

#1 does exactly what you want.
#2 is cheesy.


I played around with the answer here. I tweaked several things before realizing the the problem had been fixed (somehow I missed the icon when it really appeared) so I'm not exactly sure which of the 3 options fixed it. But something fixed it! thanks to @mook765 and @Terrance.


Actually, the error you mentioned is 2nd state after 1st install trial.

The first trial ends up with make/compilation error and removes the module source archives (without checking if build was successful).
The next trials show missing kernel module source archive.

Here is the original error (full log):

make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-30-generic'
  LD      /opt/droidcam/v4l2loopback/built-in.o
  CC [M]  /opt/droidcam/v4l2loopback/v4l2loopback-dc.o
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c: In function ‘attr_store_maxopeners’:
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:456:3: error: implicit declaration of function ‘strict_strtoul’ [-Werror=implicit-function-declaration]
   if (strict_strtoul(buf, 0, &curr))
   ^
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c: At top level:
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:2311:3: warning: initialization from incompatible pointer type
   .vidioc_s_std            = &vidioc_s_std,
   ^
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:2311:3: warning: (near initialization for ‘v4l2_loopback_ioctl_ops.vidioc_s_std’)
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:2331:3: warning: initialization from incompatible pointer type
   .vidioc_s_audio          = &vidioc_s_audio,
   ^
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:2331:3: warning: (near initialization for ‘v4l2_loopback_ioctl_ops.vidioc_s_audio’)
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:2333:3: warning: initialization from incompatible pointer type
   .vidioc_s_audout         = &vidioc_s_audout,
   ^
/opt/droidcam/v4l2loopback/v4l2loopback-dc.c:2333:3: warning: (near initialization for ‘v4l2_loopback_ioctl_ops.vidioc_s_audout’)
cc1: some warnings being treated as errors
scripts/Makefile.build:263: recipe for target '/opt/droidcam/v4l2loopback/v4l2loopback-dc.o' failed
make[2]: *** [/opt/droidcam/v4l2loopback/v4l2loopback-dc.o] Error 1
Makefile:1395: recipe for target '_module_/opt/droidcam/v4l2loopback' failed
make[1]: *** [_module_/opt/droidcam/v4l2loopback] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-30-generic'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

To fix the original error, strict_strtoul was replaced with kstrtoul

Get source

sudo apt-add-repository -s ppa:paolorotolo/droidcam
sudo apt-get update

mkdir sand_box
cd sand_box

apt-get source droidcam
cd droidcam-*/

Install build dependencies

sudo apt-get builddep droiddeb
sudo apt-get install devscripts debhelper

Replace strict_strtoul with kstrtoul in:

droidcam-v4l2-x64.tar.gz : /v4l2loopback/v4l2loopback-dc.c
droidcam-v4l2-x86.tar.gz : /v4l2loopback/v4l2loopback-dc.c

Build & install

debbuild -d -uc
sudo dpkg -i ../droidcam_*.deb

Another way, without debian package rebuild:

After you have tried installing it and got the error. If not yet, run:

sudo apt-get install droidcam

Go to /var/cache/apt/archives/. Open its package with archive-manager and extract both droidcam-v4l2-*.tar.gz files (or just needed arch)
Replace strict_strtoul with kstrtoul in:

droidcam-v4l2-x64.tar.gz : /v4l2loopback/v4l2loopback-dc.c
droidcam-v4l2-x86.tar.gz : /v4l2loopback/v4l2loopback-dc.c

Move both archives to /opt/droidcam/

sudo mv droidcam-v4l2-*.tar.gz /opt/droidcam/

Run installation again to rebuild it

sudo apt-get install droidcam

References:

Patchwork [dpdk-dev] eal: replace strict_strtoul with kstrtoul


unable to use nvidia graphics in lxc container after upgrade to ubuntu 16.04

The proprietary NVIDIA driver that comes with 16.04 seems to be problematic. I had problems with it, and I've seen at least one other question complaining of problems. This is what I did to solve my issue; it should work for you.

Enter a TTY by pressing Ctrl+Alt+F1.
Log in with your username and password.
Run sudo apt-get purge nvidia-* and confirm any prompts.
Run sudo apt-add repository ppa:graphics-drivers/ppa and then sudo apt-get update.
Run sudo apt-get install nvidia-364.

This will install the latest driver from that repository/PPA. It is a newer version than the one that comes with Ubuntu (361.42 vs. 364.15) and seems to be a bit more stable. It's also open source, so that's a plus ;-).

If you have any problems, or are confused by these instructions, leave a comment.


It's not too bad - throw the disks away!

Open a terminal and install the HP driver system for ubuntu:

sudo apt-get install hplip

After it gets down downloading the program for your computer, enter the command

hp-setup

Then follow the prompts on the screen

You can also install hplip from the Ubuntu software center


It may be much easier than the impression you get from all the detailed explanations on the web. I just did the following on Ubuntu 12.04 to boot FreeDOS .iso for a firmware update

Install grub-imageboot
copy your .iso file(s) to /boot/images/
run update-grub2

Or copy/paste these:

sudo -s
apt-get install grub-imageboot
mkdir /boot/images/
cp $YOUR_ISO_FILE.iso /boot/images/

update-grub2

That's it.

Sometimes, you may need 2 more steps to do before running update-grub2:

If you never did it before, you need to edit /etc/default/grub so that you see the grub menu on boot:

## To show the menu, disable the hidden_timeout, and set a timeout
#GRUB_HIDDEN_TIMEOUT=0
GRUB_TIMEOUT=10

For some .iso images, you may need to add this option in /etc/default/grub-imageboot : (I needed it for my FreeDOS .iso)

ISOOPTS="iso raw"

If you did edit one of these config. files, you need to run update-grub2 again.

Update: Here is the resulting menuentry asked by "dma_k"

menuentry "Bootable ISO Image: SV100S2_64_128_120229" {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set=root 6ca082d0-63d0-48c3-9e5f-2ce5d7a74fe4
    linux16 /boot/memdisk iso raw
    initrd16 /boot/images/SV100S2_64_128_120229.iso
}

This was for a FreeDOS image with some firmware update or such.


To not load an applet just prevent it from running.

If the indicator is coded in to the application and the application does not give you an option to remove the indicator from the panel you wont be able to omit it, you cannot omit an application indicator that is build in to the code and has no option to disable it, for that you need source code changes either made by you or you can suggest them to the app developer, which is the last case will be depend on which applications your are referring to.

There are no specific guidelines explaining if and application should or should not have an inductor applet, only what an indicator applet should do.

You can still remove the system applets made by gnome for you system or if the application it self uses an external applet to be used as a indicator.

To remove one of the gnome / unity indicators that are visible by default open the terminal and run this command to show all the applications that can be loaded at start up

cd /etc/xdg/autostart/ && ls

Identify the applet that you want to prevent from loading and edit it with your favorite text editor, ie:

sudo nano nm-applet.desktop

Locate the line with these contents

NoDisplay=true

and change it to

NoDisplay=false

Save and close the terminal.

Click the cog weel in the top right corner of the screen next to your username and select Startup Applications..., now you will see the application that you just edited the .desktop file and you can disable it.

The applet wont load on next boot

After enabling or disabling and applet following the steps above you will see that each .desktop that you modify will create it's own .desktop file in your ~/.config/autostart folder.

If an applet indicator that you want to disable does not show on your startup list you need to use the method above, else there will be a .desktop file inside ~/.config/autostart that can be edited with the described method and will then be possible to enabled/disabled in the startup applications.


Gnome Keyring password prompt does not move, is it normal?

yes, it is normal, according to this:

The initial Gnome Keyring password prompt is modal when logging in, so
that would not be a bug


git clone hex2hcd "command not found" Ubuntu bluetooth

Because the folder where that file is is not in PATH variable, and by default any command you just type into the prompt will be searched from the list of dirs in the PATH. You can type in git and run it just like that because it's located in some directory that is listed in PATH and yours is not.

Use ·/command , give full path like /home/admin/somedir/command , or add that dir to your PATH variable. Alternative is also to make an alias to the full path.

In your case the last command should be

./hex2hcd BCM43142A0_001.001.011.0084.0086.hex BCM43142A0-0a5c-21d7.hcd


How to rename a batch of files via CLI when spaces are involved

Although the answer from the original author is correct, I think it is better to explain why the mv command listed in the question does not work.

The problem is a basic misunderstanding on the way in which a Unix shell works --- which is quite different form DOS command line. The special characters (*, ?, etc.) which select multiple files (they are called 'glob') works at the level of the shell, not of the commands. So the first command is expanded by the shell to

mv x54y56.dat x57y58.dat x59y60.dat "some prefix - *"

I am supposing that in the directory you have just this three files for sake of simplicity, and that you have no file which matches the name of "some prefix - " pattern --- so that the shell will probably let it as is. (I am using the quotes to embed spaces, I find it more easily readable than backlashes, although the fine details are in the manual for your shell).

Now, mv a b c d will try to move the files a, b, c to the directory d, and failing --- because d does not exist.

The rename solution, if you have the rename command, is the Right One. As the OP found,

rename 's//some prefix - /' *.dat

works ok. In the old good days, you where supposed to do

for i in *.dat; do
  mv "$i" "some prefix - $i"
done

to just do one move at time.


Will changing to Ubuntu 15.04 affect steam big picture login?

No. To be on the safe side: it should not affect it.

In general you need to disable (or delete) every PPA before upgrading. And you can re-enable (or re-install) those after you are using 15.04 to be on the very safe side.

You can always re-install steam big picture login using the 14.10 version of the software by doing the same installation on your new system. Ie. use ...

deb http://ppa.launchpad.net/thor27-gmail/steam-desktop/ubuntu utopic main
deb-src http://ppa.launchpad.net/thor27-gmail/steam-desktop/ubuntu utopic main

instead of using vivid. Mixing releases for steam big picture login is not going to be a problem.


Here is a workaround... It's not THE solution but at least it allows for a nice management of the battery and suspend/hibernate. The trick it to tell the system there's only ONE CPU instead of TWO. So that's not really a solution because the computer is a little bit less powerfull with only one CPU, but for the everyday life (browsing, editing images, watching stuff...) you won't see the difference.

In order to run with only one CPU, you have change your GRUB2 configuration file so that when the computer is booting, GRUB2 says to Ubuntu that there's one CPU to handle.

In order to do that, you have to edit the grub2 config file, update grub2, and then reboot.

1 - Edit your GRUB2 config file.

You can do that with a terminal. Type sudo nano /etc/default/grub to open the config file. There is a line GRUB_CMDLINE_LINUX="blah blah blah", add the parameter MAXCPUS=1 (maximum CPUs is 1) and delete the parameter ACPI=OFF.

Save the modification (Crtrl+O then press ENTER) and close the file (CTRL+X).

2 - Update your GRUB

Still in the terminal, just type update-grub and presse ENTER.

3 - Reboot!

You can do that in the terminal with the command sudo reboot

Now you should see the battery indicator in your menu bar and the battery management options in System Settings > Energy Saving.

Additionnaly, you can install the TLP utility that allows for a better battery management. You just have to install it and forget about it, it will tweak the power management for a longer battery life, see here for details: Is there a power saving application similar to Jupiter?

Let's hope some update to come will allow for a good power management of the Macbook Pro 5,3...


(Another!) question about www-data privileges and root - but with a twist

So, the long and short of it is, unless I want to mess with umask (which I ideally never wanted to do) and whilst adding root to the www-data group doesn't really impact any security issues, I've gone with using ACLs.

All in all, it was pretty painless : 14.04 and later automatically mounts partitions with the ACL option anyway, so there was no monkeying around in fstab required, and then simply installing the ACL utilities and setting up the required permissions for that folder (and any subsequent : facl also uses the -R option) was quick, simple and did exactly what is says on the tin.


External monitor through thunderbolt eGPU not recognized by Ubuntu

I found the following GitHub: https://github.com/hertg/egpu-switcher
Running this solved the problem for me.


Samba Windows Share error: "NT_STATUS_ACCESS_DENIED" - Missing usershares

You need to use smbpasswd to add the user to the smb database and set their password.


Ctrl-b + c, %, n, w, etc not working in tmux console

Release the C-b before press the other commands


I modified the script responsible for sending the kill signal with allocated delay, /etc/init.d/sendsigs, and reduce the amount of time it does to kill the remaining processes in 2 iteration. Healthy or not it gets the job done on my system and is no longer hanging on shutdown and restart.

Below is a portion of the /etc/init.d/sendsigs with modification indicated by # <--- :

# Kill all processes.
log_action_begin_msg "Asking all remaining processes to terminate"
killall5 -15 $OMITPIDS # SIGTERM
log_action_end_msg 0
alldead=""
OMITPIDS0="$OMITPIDS"
#for seq in 1 2 3 4 5 6 7 8 9 10; do  # this is the original line
for seq in 1 2; do     # <--- the above line is replaced by this one.

then on the lower part of the script:

# Upstart has a method to set a kill timeout and so the job author
# may want us to wait longer than 10 seconds (as in the case of
# mysql). (LP: #688541)
#
# We will wait up to 300 seconds for any jobs in stop/killed state.
# Any kill timeout higher than that will be overridden by the need
# to shutdown. NOTE the re-use of seq from above, since we already
# waited up to 10 seconds for them.
while [ -n "$(upstart_killed_jobs)" ] ; do
    seq=$(($seq+1))
    #if [ $seq -ge 300 ] ; then # this is the original line
    if [ $seq -ge 2 ] ; then   # <--- I can't wait for another 300 iteration
        break
    fi

NOTE: This may not be the best solution since the original script is working on other systems, for those systems like mine where several suggested solutions did not apply - this is what I can share considering I am only running the system as a workstation with no critical services running after closing all the desktop applications I use before clicking on the shutdown or restart icon.

System in use is an Asus X550DP laptop.


Graphics problems: no screen and can't enter GRUB

I guess my question and seek for help can be answered as:
It is indeed possible to get into the Grub menu, when I pressed ESC at the right time. I could figure out the right time by repeatedly pressing ESC - but by that it would enter the menu, but then exit it right away into the > grub terminal, where I didn't want to be due to the massive slowliness of things.

So I had to find the moment where I could press ESC once, and from there I could move on.

Unfortunately, I didn't get the chance to try and confirm what @mchid suggested. Sorry for that, but thanks a lot for trying to help!


Moving existing cacti to apache2 root folder

Just edit the path at /etc/apache2/sites-available/000-default.conf
Change DocumentRoot to the path of cacti; mine was /usr/share/cacti/site
service apache2 restart


Not booting after installing ubuntu on hdd with windows10 on ssd

I finally found the problem of my setup and succeed to install a dual boot.

The bios_grub partition needed to be at the beginning of the gpt hdd (100 Gb max from the start of the disk). As I was installing ubuntu in a partition of 500 Gb located at the end of my 2.5 Tb hdd, nothing was found to be booted.

https://askubuntu.com/a/198099/672283


Please try

sudo dpkg-reconfigure keyboard-configuration


Bash alternative to trim newline \n and extra white-space

-z, --null-data separates lines with NUL character instead of newline, which makes it possible to match newlines.
grep -Pzo \
'You have to go tomorrow by\n\s+car.' text | tr -s '\n ' ' '

If you were to do it in pure bash, you would probably need to ANSI-quote your pattern to represent newline.
#!/bin/bash

pattern=$'You have to go tomorrow by\n\s+car.'
[[ $(<text) \
=~ ($pattern) ]] && echo ${BASH_REMATCH}

Assume you intend to clean up only the line you are referring to, then it's possible to combine substitutions. Matching the line containing 'You have to go tomorrow by' we can then group and run multiple commands with braces {...}, separated by semicolons, on this match.
sed -rn '/You have to go tomorrow by/{N; s/\n//; s/ {2,}/ /; s/<[^>]+>//g;p}' text

N Read the next line and add it to the pattern space.
s substitute text.
g global, substitute all occurrences in the line.
p print.


Partition 2 does not start on physical sector boundary

sda2 is the  extended partition which holds the logical partition sda5.
You never read from or write to sda2, you read from or write to sda5 and sda5 appears perfectly aligned. So there won't be any negative effect for your disc-performance, leave it as it is.


How do I Install the Chromium OS as a guest under Ubuntu 15.04

To install chrome OS on Ubuntu side by side:

(To dual boot go here)

Open terminal and run,

wget https://dl.dropbox.com/u/302704/chromiumos/lightdm-login-chromiumos_1.1_amd64.deb
sudo dpkg -i lightdm-login-chromiumos_1.1_amd64.deb
sudo apt-get -f install

then logout and reboot.

To uninstall.

sudo dpkg -r lightdm-login-chromiumos_1.1_amd64.deb
sudo apt-get autoremove

To run chrome os:

1.From Ubuntu ,Open terminal and run chromeos
   2.Direct logout and login.

Alternatively, you can get clean dual-boot instructions in this other Q&A

Source


How do I tell when a window demands attention?

I can adjust mine in CCSM with the Ubuntu Unity Plugin / Experimental / Urgent Animation.  Granted it's not a very long time attention getter but it does work on my laptops.  You can find a lot more personality for Unity here too.


Follow-up:

Just found a thread with the same problem. Apparently the terminal behaves like that due to the fact that I typed a sudo command inside the .bashrc, and now it tries to execute it every time I open the terminal.

I placed a # in front of that sudo command like this:
    #sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart
And decided I'd leave it there suspended, just in case. De-activating it like this restored my terminal to normal.

I've had occasional problems of the keyboard layout switch not working. In those cases it seems that simply opening and closing the .bashrc file does the trick - I have no idea why. But it works.

I've opened and closed my .bashrc, and now it works.


How do I install Australis (Firefox nightly) on 64-bit Ubuntu?

Some info about Australis and how to start using it under Ubuntu via PPA can be found here: http://www.webupd8.org/2013/11/australis-ui-lands-in-firefox-nightly.html

Apparently, all you need is:

sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get install firefox-trunk


You should be able to call Microsoft and ask them if they can help you seeing this is a new machine they should be able to supply you with a recovery disk. I'm not sure if there would be a fee but I would think since you are a customer they would help you ether way

I also found this link to Microsoft's website were you might be able to download a ISO file to reinstall Windows 10, Windows 10 download