Yes, it is possible.
First, save everything you might need from the HDD and SSD.
To make it simpler, install Windows first. If asked, select custom install/setup, and you can select where to install windows. You need to delete every partition, so you can only see the unformatted and unpartitioned drives.
You will now half the storage on each drive, by creating a partition (a 125GB partition on the SSD, and a 500gb partition on the HDD), and format them. Leave the free space for ubuntu unpartitioned, and carry on installing Windows.
After it is installed, install Ubuntu. Select custom installation as well, and you can format the space for Linux here.

After Linux is installed, you may want to start GParted and label each partition with a name, as there will be 5 partitions seen by Ubuntu, and shown in the file explorer. Identify them according to
On the SSD:
The partition for windows (125GB, NTFS filesystem)
The boot partition for windows (100MB, NTFS)
And the partition for Ubuntu (~125GB, has ext4 filesystem)
(Note that there may be a separate partition as the children of the 500GB Ubuntu partition, with "Swap" as the filesystem, but you can ignore this because it won't show up normally in the file browser
On the HDD:
The windows partition for games (500GB, NTFS filesystem)
And Ubuntu partition for games (500GB, ext4 filesystem)

After labeling them, mount them (if they weren't mounted by default) and open the file explorer, to see if they show up by the labels you gave them


Why is this apt configuration necessary for installing Java on vagrant?

It seems this bootstrap.sh is part of this vagrant which requires that you have Oracle Java7 is installed. So it is making a check and if not echoing it and then taking a particular action(install Oracle Java7). It's using the standard ppa for Oracle Java7 install.


How to Install Huawei Mobile Partner 21 in Ubuntu

Installing Mobile Partner 21 [Customized Version]

Mobile Partner is the most popular program, but it version 23 is not available for Linux, you can install version 21 following the steps below

First, you want to download

32bit - http://www.mediafire.com/download/9oa5g9dx5xeoy97/mp21.zip
64bit - http://ubuntuone.com/3w67SSZzET4ZdyJSfG51za

How to Install

You need login as root:

sudo -i

Go to the directory you downloaded the file to using cd, for example

cd /home/hasiya/Desktop

Unzip

unzip mp21.zip

Go into mp21 folder

cd mp21

Install MobilePartner by using the install script

./install

If you had installed this software in your system before, you will get a prompt: "The software is exist, do you want overwrites? ([Y]/[N])", enter "y" to overwrites or "n" to exit.
If you do not had installed this software in your system before, you will get a prompt: "Please input the install path[/usr/local/Mobile_Partner]:". Then you can input install path(fullpath), or you may using the default path(/usr/local/Mobile_Partner) by press ENTER direct
Finish installing

How to run

Run MobilePartner in your install path
eg: # //MobilePartner
Plug in your device, it will run automatically (Not supported in Xandros)

You have installed Mobile Partner to your Ubuntu machine, final result :


Error running C program compiled with Geany IDE Error Code: 127

You only compiled your source file, but didn't build your application, meaning the linking was not done and the executable was not created. Use the "build" sub-menu from the "build" menu (default shortcut is F9 if I recall correctly) and try again.


Reading package lists... Error! GPG error and problem with Mergelist

Clean your apt-get cache:

sudo apt-get clean

Create a new list of apt-get packages

cd /var/lib/apt
sudo mv lists lists.orig
sudo mkdir -p lists/partial

Update your source lists

sudo apt-get update


/ is equivalent to //

From the POSIX specification (emphasis added):

  3.267 Pathname

  A string that is used to identify a file. In the context of
  POSIX.1-2008, a pathname may be limited to {PATH_MAX} bytes, including
  the terminating null byte. It has optional beginning <slash>
  characters, followed by zero or more filenames separated by <slash>
  characters. A pathname can optionally contain one or more trailing
  <slash> characters. Multiple successive <slash> characters are
  considered to be the same as one <slash>, except for the case of
  exactly two leading <slash> characters.

And:

  4.12 Pathname Resolution

  ...
  A pathname consisting of a single <slash> shall resolve to the root
  directory of the process. A null pathname shall not be successfully
  resolved. If a pathname begins with two successive <slash> characters,
  the first component following the leading <slash> characters may be
  interpreted in an implementation-defined manner, although more than
  two leading <slash> characters shall be treated as a single <slash>
  character.

For a nice discussion of exceptions (cygwin and directories) see: How does linux handle multiple consecutive path separators (/home////username///file)?


How to interpret 'hcitool afh' (AFH map)

I just came across this question looking for the meaning of "AFH map". Although the question is quite old, I'd like to share my findings.

There are (at least) two different mechanisms that help to reduce the interference between Bluetooth and WiFi:

1. Adaptive Frequency Hopping (AFH)

Bluetooth devices transmit on 79 different channels, spaced 1 MHz apart between 2,402 MHz and 2,480 MHz. During data transfer, the sender changes the used channel very quickly in a pseudo-random order ("hopping sequence") to reduce the chance of interference caused by other radio services using the same frequency range. The receiver knows the sequence and "hops" the channels synchronously with the sender.

The basic principle of AFH is simple: Channels with known interference are simply left out of the hopping sequence. The AFH map simply tells both communication devices which of the 79 channels are good to use and which to leave out. The AFH map consists of 80 bits (20 hex digits) corresponding to the 79 channels (and 1 reserved bit).

Channels usable for Bluetooth have the corresponding bit in the AFH map set. That is, the more "1" bits you see, the less interference is there and consequently the more throughput your Bluetooth link will have.

AFH was introduced with Bluetooth 1.2. You can find more details e.g. in the  Bluetooth 5.0 Core Specification (search for "AFH channel map" in the PDF file).

2. Bluetooth Coexistence

While AFH covers any (probably external) source of interference, BT coexistence is designed to minimize interference caused by a Bluetooth interface and a WiFi interface that are co-located in the same device (i.e. laptop, smartphone). Basically there is a wire running from the WiFi chip to the Bluetooth chip. Whenever the WiFi chip is transmitting a frame, it tells the Bluetooth chip to "shut up for a moment" until the WiFi transmission is over.

Over time, different, more elaborate variants of this basic scheme were developed (2-wire, 3-wire, unidirectional, bi-directional etc.)


How to run lubuntu minimal from usb with persistence?

A netboot (minimal) .iso lacks the live "Try Ubuntu" environment that you would change and save. It's simply a bare-bones installer.

If you wish to customize the netboot .iso, that's very different. It involves preseeding or unpacking/repacking the .iso, and has nothing to do with persistence.


I believe it is too early to say whether Totem will be replace with Banshee in the future. While it is a good idea, Banshee does not yet have full support for Video Library management, so it is not really meant for being your dedicated video player.

Totem is more mature, and while it does not have library support, the fact that it is a dedicated video player means it is more likely to hang around for quite a while until Banshee is more mature in that aspect, and able to replace it completely.


What is the performance difference between VM and dual-booted Ubuntu install?

A bare metal installation is always faster than a VM, because you only have one system running instead of two, and you have direct hardware access instead of expensive hardware virtualization.

You should get a better idea of the performance when you boot your computer from an Ubuntu installer USB drive and select "Try Ubuntu without installing". This gives you a live system than runs off the USB drive without disk installation, but otherwise it runs directly on your computer hardware. You can also easily see if any hardware is giving trouble this way.

Note however that unless it's a fast USB 3 port and drive, read speeds will be a bottleneck here compared to how it would run once you install Ubuntu to your internal hard disk, so don't judge boot and program loading times or other disk-intensive tasks too critically while running the live system.


Dash doesn't close on click after creating lens with Quickly, what's wrong?

After doing some digging I found hide_dash_response in the singlet sources...however I was unable to call or return this function without copying the code to my project.

I can also return

Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH, goto_uri=uri)

directly to achieve the same result.


Using cpulimit on a command rather than a PID

Try:

cpulimit -l 50 -- tar -chzf ...

From the examples in man cpulimit:

 # cpulimit -l 20 firefox
        Launch Firefox web browser and limit its CPU usage to 20%

 # cpulimit -l 25 -- firefox -private
        Launch Firefox web browser in private mode and limit its CPU usage to 25%


Generally the LTS will not get new versions of applications, but rather security patches and bugfixes to current package version - the version number will likely never change, however there could be new features backported, but not likely. Your best bet would be the Subversion PPA but that only goes to 1.6.17.

What are PPAs and how do I use them?

If you are wanting something newer than than, you will likely have to install from source unfortunately.


System Load Indicator only shows as a line unless hovered

Although System Load Indicator (indicator-multiload) works well with desktop environments like Unity, MATE etc., it's not very compatible with GNOME 3 (default in Ubuntu 17.10 and later).

If you want to try an alternative solution which is compatible with GNOME, you may use a GNOME shell extension called "system-monitor". It does

  Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…

You can also install it from the 'Software' application or by running

sudo apt install gnome-shell-extension-system-monitor


Making calibre work with Aquaris M10 phablet?

Yes, but only in a very limited way.

PDF document push by calibre from Ubuntu desktop to the Bq M10 Ubuntu touch tablet fails.

But, PDF document push by calibre from Windows Vista desktop to tablet does not fail. However, even in this case, the desktop does not see that the files are on the tablet.


How to run a command in loop on pairs of files that share only the initial part of the filename

The tricky part is going to be keeping the pairs in numeric order. Given:

$ ls *.bam
Sample_1_L5.bam  Sample_2_L4.bam  Sample_3_L10.bam
Sample_1_L6.bam  Sample_2_L5.bam  Sample_3_L9.bam

then using bash and sort with the -V (--version-sort) option

$ printf '%s\0' *.bam | sort -zV | xargs -0 -n2 echo samtools merge
samtools merge Sample_1_L5.bam Sample_1_L6.bam
samtools merge Sample_2_L4.bam Sample_2_L5.bam
samtools merge Sample_3_L9.bam Sample_3_L10.bam

If zsh is available then you can order the glob expansion natively:

 % print -rN -- *.bam(n) | xargs -0 -n2 echo samtools merge
samtools merge Sample_1_L5.bam Sample_1_L6.bam
samtools merge Sample_2_L4.bam Sample_2_L5.bam
samtools merge Sample_3_L9.bam Sample_3_L10.bam

In both cases, remove the echo once you are happy the the proposed mappings are correct.


Install multiple ppas at once via terminal without using script

It doesn't work because who wrote the original script (you can look at it, it's a python script) didn't think that could be useful.

The rationale may be that adding a repository is a thing that is better done slowly. You should check the signature for example --- and double check you really want it.

So it's basically a design decision. You could probably easily modify the script if you want it, or repeating the command on the command line...

for i in ppa:noobslab/malys-themes ppa:alecive/antigone ppa:nitrux/nitrux-artwork ppa:upubuntu-com/themes; do sudo add-apt-repository $i; done

(is that a script or not? A rose is a rose under another name?)

Don't do this, but... unix is famous for letting user shooting themselves in the foot,so...

If you really want your "multiple add-apt-repository"(1) work, do this:

1) find where add-apt-repository is.

(0)samsung-romano:~% which add-apt-repository
/usr/bin/apt-add-repository

2) rename it

(0)samsung-romano:~% sudo mv /usr/bin/add-apt-repository /usr/bin/add-apt-repository.real

3) replace it with a simple script:

(0)samsung-romano:~% sudo gedit /usr/bin/add-apt-repository

with the contents:

#! /bin/bash
#
for i in "$@"; do
   /usr/bin/add-apt-repository.real "$i"
done

4) make it executable:

(0)samsung-romano:~% chmod a+rx /usr/bin/add-apt-repository

5) and now you can use your command:

(0)samsung-romano:~% sudo add-apt-repository ppa:noobslab/malys-themes ppa:alecive/antigone ppa:nitrux/nitrux-artwork ppa:upubuntu-com/themes

Why you should not do it? Because next time there will be an update to the package that contains the original apt-add-repository, problems will arise. Like having your script overwritten or (worst) not having the package updated.

It is in effect much better to avoid touching the system program and simply put the script in your ~/bin with another name, like my_aptadd.  You are now safe and happy.

Or if you are really fond of the original name, you can create a directory in your home folder like ~/override, prepend it to your PATH in .profile (like export PATH=$HOME/override:$PATH), and save the script there --- obviously with the full path, original /usr/bin/add-apt-repository  in it to avoid an infinite loop. You will then regret it when someone will drop a file called "ls" in it with content exe rm $*(2), but hey...

So why I wrote it here? Because this is really a useful technique sometime to "fix" programs that otherwise will not run. For example, I have this to add environment variables to programs that otherwise will misbehave, and that are called by other programs that I can't or won't modify.

Footnotes:

(1) I never noticed before but in my system exists even apt-add-repository, which is a symlink to add-apt-repository. I can understand why, but it's a call for a mess waiting to happen...

(2) it's wrong. On purpose.


It happened something similar to me, it was because my desktop was uninstalled. If it appears your username as you were in the terminal, you could try
sudo apt-get install ubuntu-desktop

I hope it works for you :)


Moving hadoop folder into /usr/local/hadoop

/usr/local/hadoop ≠ /user/local/hadoop.

Looks like a typo to me.


Can't boot 12.10 after installing nvidia proprietary drivers

If it's completely dead (no terminal/console by CtrlAltt or CtrlAltF2 then you might need to boot off your LiveUSB and then chroot into the hard drive.

First, boot off the LiveUSB and open a terminal window.  Next mount the Ubuntu root partition:

sudo mount /dev/sda1 /mnt

You'll need to change sda1 to be your actual Ubuntu boot partition.  Have a look at:

sudo fdisk -l

if you're not sure. Next, export the LiveCD filesystem to the root filesystem on the drive:

sudo mount ‐‐bind /dev /mnt/dev
sudo mount ‐‐bind /proc /mnt/proc
sudo mount ‐‐bind /sys /mnt/sys

Now change the root filesystem to the hard disk:

sudo chroot /mnt

No re-install the nouveau driver:

sudo apt-get --reinstall install xserver-xorg-video-nouveau

Then reboot and try again.

It might also be useful to remove the troublesome modules eg:

sudo apt-get remove nvidia-current

or

sudo a-t-get remove nvidia-current-updates


You can try the following bash function

#!/bin/bash

function get_password(){
    echo "Enter wour password: "
    read password
    if [[ -n "$password" ]]; then
        a=$(echo $password | tr -d "\n" | wc -c)
        b=$(echo $password | tr -cd "[:alnum:]" | wc -c)

        if [[ $a != $b ]]; then
            echo "Plz enter alphanumeric words"
            echo "Retry or Press Ctrl + C to exit"
            get_password
        else
            echo "it is fine"
            exit 0
        fi
    else
        echo "password can't be left empty"
        echo "Retry or Press Ctrl + C to exit"
        get_password
    fi
}

get_password

How it works:

./script.sh
Enter wour password:
12%
Plz enter alphanumeric words
Retry or Press Ctrl + C to exit
Enter wour password:
^C

./script.sh
Enter wour password:
123sddf
it is fine

See man tr and man wc to know more about tr and wc.


This is not a bug. They just change the manner how to search man pages.

You can solve this by this trick: :)

Open yelp

Then when pressing on the search field

press ctrl+L

Then remove the keywords "help" or "help-list". Be sure you clean up the address

now you can enter man:bash

Enjoy


The file it complains about is a gedit backup of TardisbrowserWindow.py (the ~ is used in gedit for backups). If so: delete it and try to package again.

The error about packaging is due to you using a newer version of python-distutils-extra than the release supports.

This might fix it:

sudo apt-get install python-distutils-extra=2.38-1


At the log in screen, click the gear and select Unity-2d and see if that helps your problem.

Ran across this in my searching: http://ubuntu.5.n6.nabble.com/Ubuntu-10-04-keyboard-and-mouse-not-working-after-update-td1293320.html

Try posts 4 and 6. You don't have to go into recovery mode for these, but open a terminal (Ctrl+Alt+T) and sudo su


Is there a console command I can use to automatically distribute all the Tor Browser files from ~/Downloads/ to the correct locations?

No, you got that wrong.

"debian" installer files will install software into the Ubuntu directories. See Ubuntu software center for an easier way to installing this:

But you used a 3rd party method (.tar.gz) and 3rd party software should use "/opt/". The Linux way to do this is to do a ...

cd ~/Downloads
sudo mv tor-browser* /opt/
sudo chown $USER:$USER tor-browser*

And then add the directory to your $PATH. A howto on how to do that: Add bash script folder to path?


You may be missing some dependencies required for installing Blender. The libboost* dependencies for Blender in Ubuntu 13.04, 13.10 and 14.04 are as follows1:

  libboost-filesystem
  libboost-locale
  libboost-system
  libboost-thread

The libboost* dependencies for Blender in Ubuntu 16.04 are as follows:

  libboost-filesystem1.58.0
  libboost-locale1.58.0
  libboost-system1.58.0
  libboost-thread1.58.0

The libboost* dependencies for Blender in Ubuntu 18.04 are as follows:

  libboost-locale1.65.1
  libboost-system1.65.1
  libboost-thread1.65.1

The libboost* dependencies for Blender in Ubuntu 18.10, 19.04 and 19.10  are as follows:

  libboost-locale1.67.0
  libboost-system1.67.0
  libboost-thread1.67.0

The libboost* dependencies for Blender in Ubuntu 20.04  are as follows:

  libboost-locale1.71.0
  libboost-thread1.71.0

All of these dependencies can be installed from the default Ubuntu repositories. Check at the link mentioned above to make sure that the libboost* versions selected are at least as current as the versions specified in the link, as there are multiple versions of libboost* available in the default Ubuntu repositories (all of which are from the universe repository).

1Blender in Ubuntu 12.04 and Ubuntu 12.10 does not require these four libboost packages.


How can find bootable disc creator on Xubuntu 18.04?

It's not installed by default but available in the official repositories.
You can easily install it with

sudo apt install usb-creator-gtk

A shortcut to start the application will be created in the System-category in the start menu.


Google chrome profile in use; browser does not start anymore

First open a terminal (dash->terminal) and type ...

ps -ef | grep 2747

This command shows processes that are currently running.  Example:

ps -ef|grep 2747
rinzwind  2747  3327  0 06:51 ?        00:00:01 chromium-browser
rinzwind  6002  5950  0 14:31 pts/0    00:00:00 grep --color=auto 2747

The 1st resultline is what you are looking for. If this shows anything related to chrome you can then do ...

kill -9 2747

and try to restart chrome. The kill command kills process 2747. If that fails (ie. it the ps command shows nothing) do a ...

rm /home/$USER/.config/google-chrome/SingletonLock

This command actually removes a file so be careful when typing (so do a copy paste ;) )
and try to restart chrome.

If both fail you can also do a reboot before you try to open the browser.


How to make my old GRUB to be activate on the startup?

You have to load the OS with the wanted grub (17.04) and run the commands:

sudo update-grub
sudo grub-install /dev/sda

Be carefull... only if /dev/sda is your disk used to start the machine... else /dev/sdb etc


Installation process loops and jump to select language

To be clear, this issue happened when using a remote controller to control the installation of ubuntu. According to my own test, the issue is related to the java-based remote controller. It can be solved by re-opening the java-based remote controller window. Still don't know what cause this issue. But it has nothing to do with Ubuntu.


In most cases the lost data still can be recovered. Don't panic. :)

Launch GParted and check if there are any NTFS partitions on your primary hard disk. If so, you probably can access your data (NTFS partitions are accessible from Ubuntu by default).

If your Windows partitions (NTFS) are lost, read the following article: https://help.ubuntu.com/community/DataRecovery


What printer model have I to choose for Toshiba e-Studio 2330c?

The Toshiba websites indicate that this printer is compatible with CUPS, which should already be on your system. Open your browser, goto the website http://localhost:631/and attempt to add the printer from those pages.


How to fix current problem:

$ echo "export PATH="$HOME/.local/bin/:$PATH"" >> .profile and then log in and out. You will now be able to run $ virtualenvwrapper.sh from the Terminal.

What I would recommend in stead:

Put your virtualenvwrapper.sh in ~/bin. ~/bin is the Unix standard place to put your personal scripts that you want added to your shell (Terminal). If you don't already have a ~/bin you can create it. If you look in ~/profile, you should see PATH="$HOME/bin:$PATH". That line adds the files in ~/bin into your shell so you can execute them just like other programs installed on your system. I would also rename virtualenvwrapper.sh to virtualenvwrapper because other wise ever time you run it from the terminal it will have the .sh at the end. It looks more like the other commands you have installed if you remove the file extension. Not to worry though, removing the file extension dose not change how the program is executed. I have a few scripts installed like this and this is what I found works.


Skype shows "Virtual device" for Microphone, speakers and ringing

finally solved.
I am running a 64-bit machine and a 32-bit Skype, so I just installed the libpulse 32 bit version:

sudo apt-get install libpulse0:i386
is all what was needed to solve the problem


How to get the package description using python-apt?

The following python commands should give you the long description when available:

$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt
>>> cache = apt.Cache()
>>> pkg = cache['python2.7']
>>> pkg
<Package: name:'python2.7' architecture='amd64' id:1247L>
>>> pkg.versions
<VersionList: ['2.7.6-8']>
>>> pkg.versions[0]
<Version: package:'python2.7' version:'2.7.6-8'>
>>> pkg.versions[0].description
u'Python is a high-level, interactive, object-oriented language. Its 2.7 version
includes an extensive class library with lots of goodies for network programming,
system administration, sounds and graphics.'
>>>

Note: My locale are set to LANG=en_US.UTF-8 so translated strings may not be a problem here.


After installing ubuntu,the internal disk drives are read only

Make sure both windows should not be hibernated. Like if windows 10 is hibernated I also cant access drives via Ubuntu in dual OS system. It is actually a good feature in Ubuntu. Eg. When we transfer or delete something in drives while using windows, it updates those all information on HD tables  at the time of shut down. So until windows does not save changes, those modifications can not be visible in other OS. I came to know about this when I was using XP with windows 7 as dual OS system, at that time I was facing this issue. Since I started using Ubuntu I never faced this issue. You can say it is properly managed for dual booting.


I can't dual boot Ubuntu and Windows 10, Grub simply doesnt appear

Please try changing the boot order at which your system boot. If you installed windows first then Ubuntu then this problem. I too had the same problem when i changed the boot to ubuntu then windows, my problem was solved. Once you have done this then login to ubuntu and upgrade your grub. Hope this helps


How many users are currently logged on.

First off that top line is 'load adverage' you can enable and disable/hide it by pressing 'l' which toggles the line on and off

$ top
l

also:

$ uptime

Next: and to the point of your question, it is the number of active terminal's on the system. Run the 'who' command and view its output.

$ who

If you

$ man uptime

it tells you that 'users' is how many users are currently logged on.


Finally I thought it would be less effort to program my own daemon, and that's what I've done: https://github.com/patxitron/vorke-temp-daemon

The daemon just reads all core temperatures and sets the fan speed acording to the highest one using a fixed table. Below 45C the fan stops and from 74C the fan is at maximum speed. It assigns different speeds for temperatures in between.

The loop runs four times per second and, at this moment, is a quick and dirty solution without hysteresis and with all paths and temperature settings hardcoded.

There are some improvements to be made, like the already said problem with hysteresis. It would be nice also to move the files from the temps are read, the file to which the fan speed is written and the table which assigns fan speeds to temperatures into a configuration file.

In the meantime, I hope it's useful for someone.

Best regards.


Fonts look ugly in Kubuntu 12.04 after setting resolution to 1440x900

Open KDE Settings Manager
Then go to Application Appearence
Select Fonts section
change the Use anti-alialising option to Enabled
Then click Configure button.
In the new window, select Use subpixel-rendering and change the value to RGB
Change the hinting style to Slight.
Then remove the file .fonts.conf in your home folder. It is a hidden file. To see, that file in Kubuntu, Press Alt + . .

Here is a screenshot of the settings window

Logout and Login again.


Ubuntu 13.04 Shutdown Abruptly at Midnight

So, according to the output of dpkg -l | grep schedule you have gnome-schedule installed, which is probably scheduling a shutdown at 12 in midnight everyday. Just try to open gnome-schedule and remove the scheduled activity that shut your system down every day at 12 at midnight (if is there any).
If you want you can attach a screen of gnome-schedule in the question, so I can check if is there any "shutdown activity".


Cant boot Ubuntu 15.10 ( not even the live version)

I don't know what your BIOS looks like, but try to change a similar setting in yours as is detailed below. To enter your BIOS, I think you have to press ESC repeatedly.

(Copied from Boot Error - ACPI PCC Probe Failed)

"I [Solved] the problem by changing the motherboard settings. For my motherboard (access this at boot, not through Ubuntu) I went to Advanced > System Agent > Graphics > iPGU Multi-Monitor and set it to "enable." I left all of the other system agent graphics settings on auto. After that the boot and ACPI problems (including a shutdown hang, crashes, freezes, monitor shutdown) stopped.

Every motherboard vendor has its own settings. The problem seems to be a northbridge snafu between the onboard Intel graphics and the Nvidia card. So, it may takes several visits to your motherboard setup to find the right combination of settings that works for you. This problem was new to me under 15.04, and may be due to a change in how Ubuntu handles such graphics disputes.

(My motherboard is ASUS P8Z77-V LX LGA 1155 Intel Z77)"


How can I edit playlists on an MTP device?

I tried a few things and gMTP (sudo apt install gmtp) seems to do the trick. Not the prettiest UI but it works well for managing playlists over MTP. This is the solution I'll be sticking with unless I run across something better.

One other note: I've noticed for this particular device that MP3 tags don't show up for tracks when they're copied through the file manager. They only show up if they're copied using one of these MTP solutions, so that's another reason to use them.

For reference, here's what else I tried:

Gnomad 2
sudo apt install gnomad2

This worked but the UX is pretty terrible. I had to use two separate parts of the application depending on whether I wanted to edit the playlist itself or add tracks to it. Some functionality failed silently, like shuffling playlists. And some functionality is completely lacking, like reordering tracks in a playlist. It hasn't been updated since 2011 so there's little hope there will be any improvements.

mtp-tools
sudo apt install mtp-tools

mtp-tools seems to have several utilities for managing playlists on an MTP device (mtp-newplaylist, mtp-playlists), and even though I generally prefer the command line this is one instance in which I'd prefer a nice GUI.

Rhythmbox
sudo apt install rhythmbox

I tried Rhythmbox first and even though it displays tracks on the device, it doesn't seem to have any way to manage the playlists on the device.


Getting "make install" error with Wine 3.0 Stable

The command make install will not complete successfully unless it is prefaced by sudo like this:

sudo make install

To run a Windows program in wine, you need to type wine c:\\path\\to\\app. It will normally be in the Program Files folder of \home\user\.wine.

If you installed Wine from source, use sudo rm to delete the wine files from the directory where you installed them (usually /usr/local/bin).


Failed Raid 10 Disk - Cannot mount raid to recover

A RAID 1,0 array (a.k.a. RAID 10, 1-0, ...) protects against a single drive failure and if you're extremely lucky against a dual drive failure.

Looks like you weren't extremely lucky, so you'll have to fail the entire array and restore your data from a back-up...


Does libpg-java support passwordless login?

Found the answer related to a similar problem with pgAdmin III: Both programs (unlike psql) establish TCP/IP connections rather than Unix socket connections, so the relevant line in /etc/postgresql/*/main/pg_hba.conf is this one, which will result in a password prompt even if the password is empty.

host    all         all         127.0.0.1/32          md5

To fix this, you have to trust connections from localhost, for example with the following line:

host    all         all         127.0.0.1/32          trust

and reload the configuration:

sudo service postgresql reload

Now both SchemaSpy and pgAdmin should be able to connect.


How to install utorrent.tar.gz on ubuntu 13.10?

You cannot install utorrent from the Ubuntu repos as this programme doesn't work natively on Linux. You can use it via Wine, though.
You can follow the uTorrent under Ubuntu in 3 Easy Steps tutorial:

Step 1 - Install Wine
Step 2 - Download and Execute uTorrent
Step 3 - Create a desktop shortcut for the uTorrent application.


Integrated Camera and Bluetooth stop working in Ubuntu 20.04 after a while

I have done the test with Targus bluetooth dongle and TP-Link AC600 wifi dongle as I had to disable the Intel AC-3165 in the BIOS.
I am using an Apple bluetooth keyboard.
The bluetooth works after the system is suspended both manually via power on/off option or delay (set to 1 hr) in power settings.
I suspect problem in Intel driver resuming after suspend.


you might try to turn Ubuntu into Xubuntu by following the instructions you find at this link:
https://sites.google.com/site/easylinuxtipsproject/alternative


Run in a terminal

sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1"

and reboot.

The ant_sel parameter enables one of the two antenna connectors of your RTL8723be adapter. Your laptop has only one antenna because the vendor is too greedy to install two. The Linux drivers can't detect which antenna connector is in use. So we have to guess it.

In Windows either the vendor sets it up somewhere on a pre-installed system, or the Windows proprietary drivers can detect it.

If ant_sel=1 does not help, use ant_sel=2. This setting tells which antenna is in use 1 or 2.


Error installing packages and apt-get update

Check your iptables rules. You probably forgot to specify permissions for the lo interface and rules for incoming connections:

iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT


Open .profile file using your desired editor:

gedit ~/.profile

Add this line to the file and save it:

export EDITOR=gedit

Logout and re-login. Now when you use crontab -e it would open gedit.

Remember that it's going to set gedit as default editors for other commands too, if you want it to only affect crontab, then you can create an alias:

alias crontab='EDITOR=gedit crontab'


How to play only specific files in MPlayer?

As far as I am aware this is not possible from within MPlayer itself but a little command line magic can produce some great results.

The following is perhaps a little clumsy but works well enough here with the naming convention that you have specified:

mplayer $(find . -maxdepth 1 -name "[1-7].mp3" | ls -v)

Brief explanation:

find . -maxdepth 1: Search in the current directory with no recursion.
-name "[1-7].mp3":  Find mp3s that have only the numerals 1-7 as their filename. The [1-7] section demonstrates Bash range expression where numbers 1 and 7 are matched as well as all numbers between.
ls -v : Sort the search so the playback will be numerically based.

Doubtless there are other ways but this works well enough and if your actual filenames are different it would be simply a matter of changing the regular expression in the find syntax to match...


Try using a bootable cd or usb, i tried wubi to install 12.04 lts on my pc for dual-boot with w7 x32 but ubuntu worked like hell, after installed from cd it worked as it should


Managing Kindle Fire with on 12.04 via Micro-USB

The new Kindle Fires can only be managed via a protocol known as MTP, but you can still mount them.

First make sure you have mtpfs installed.

sudo apt-get install mtpfs

Then, since udev and libmtp do not yet know about Kindle Fire do :

lsusb

My Kindle Fire HD shows up as "Bus xxx Device yyy: ID 1949:0007 Lab126"

What's important is the USB ID.

Next, add a file to udev to recognize your device:

sudo vi /etc/udev/rules.d/51-android.rules

Add this line to the end, substituting your USB IDs you figured out above if they are different:

SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0007", MODE="0666"

Connect your Kindle and look to see if the system found it:

dmesg

In the spam you should see something like this:

...
[32421.676671] usb 3-1: >new high-speed USB device number 4 using xhci_hcd
[32421.702240] usb 3-1: >New USB device found, idVendor=1949, idProduct=0007
[32421.702247] usb 3-1: >New USB device strings: Mfr=2, Product=3, SerialNumber=4
[32421.702250] usb 3-1: >Product: Kindle
[32421.702254] usb 3-1: >Manufacturer: Amazon
[32421.702257] usb 3-1: >SerialNumber: xxx
...

If you couldn't find your device with lsusb, you can get the identifiers here too, but when you edit the udev rules you'll have to disconnect and reconnect.

Now let's make a place to mount it.

sudo mkdir -p /media/Kindle
sudo chmod 755 /media/Kindle

Also, it doesn't hurt to make sure fuse is set up to allow regular users to mount things.

Make sure /etc/fuse.conf is set up for this:

sudo vi /etc/fuse.conf

Look for the line that says "user_allow_other" and make sure it is uncommented.

Almost there! This part will be automatic from now on. All we have to do is mount it now.

Plug it in and setup the MTP over USB connection by mounting it, like this:

mtpfs -o allow_other /media/Kindle

Be patient with it, it's not the fastest thing ever. At any rate, once this command completes, you should see a kindle file system in Nautilus, etc.

When you're done using it, for example I load music into /media/Kindle/Internal\ Storage/Music, or use the ebook tool Calibre,

sync
fusermount -u /media/Kindle

I drop these commands into aliases, but you can just as easily add a "RUN=" to the udev rule or stuff them into shell scripts.

I prefer the Android app "ES File Explorer" to wander around and look at files on my Kindle... because Kindles are not good at "auto-discovery" of new files.


You should start by seeing if you can change your domain's DNS in their control panel.  If you can, then you shoud set the domain to use an A record to point to the IP address for your VPS you're running stuff on.  Once you do that, wait 24 hours and check to see if the domain correctly points to your server.


You haven't written your configuration. You should tell your os version and apache version in your question. I'm assuming you have 12.04 with apache and selinux set up via the package management system.

A file should be readable by the apache's user. And it is possible that selinux might be blocking the acces to those files. Make sure that /media/HTTP_Server/web_files is universally readable and executable. In case it is not, set it that way:

chmod 755 /media/HTTP_Server/web_files

After this, if the files are still inaccesible, assuming your apache configuration is correct, selinux might be an obstacle for apache. but I have used many servers with ubuntu (lighttpd, nginx, apache) and never had an issue with selinux.

In case everything is ok but the selinux, this tutorial might be helpful.


Why can't "Simple" partitions be read in Ubuntu?

Why can't your Dynamic disk partition be read by Ubuntu Linux? Because the nonstandard LDM partitioning method created by Microsoft is proprietary, and does not play well with others.

There are multiple methods to convert your drives back to the standard partitioning method, such as the first one (only) here, this, alternative, or this one. You'll need to do that before Linux can see the drive.

However, ensure to make a complete backup of what's on that drive first, and verify the backup, before you start to make changes. Disk partition changes are the easiest way to lose all the programs and data on a drive.


Wifi dongle hanging connection every couple of minutes 14.04

Just followed this https://sites.google.com/site/easylinuxtipsproject/reserve-7 and it's working fine now.

Ubuntu should use this drivers by default.

Regards.


Manage partitions to install Ubuntu in dual boot with Windows 10

What's in partitions 7 and 8? They're not NTFS, nor FAT32, so please confirm they have no data to save. Once you have confirmed that, you can delete them in Windows Disk Manager, then proceed with installing Ubuntu in that empty space.

If you used that space for Ubuntu before, wne you boot with a liveUSB, it will appear as ext4 (the standard Ubuntu partition type). Check it with your LiveUSB you were going to use to install to see what it is.

The 192 GB (combined) of space freed up by 7 & 8 is more than enough for Ubuntu; 50GB is more than enough for Ubuntu.  You don't need to change the space now allocated to D: .

Since Ubuntu can read and write NTFS, but Windows does not know how to read and write to ext4, leaving D: as is as a shared space for data used by both OS is a good idea.

Also, suggest you delay installing 19.10 as 20.04 is on the brink of release (tomorrow, 4/23); suggest you install 18.04 then upgrade to 20.04, or wait. Suggest you don't grab the beta of 20.04,, either do 18.04 now or wait until toomorrow's release of 20.04.


You could try juju upgrade-juju (see juju help upgrade-juju), but you need to be careful with the versions. I believe juju upgrades are only supported from one version to the next, without jumping versions.


I might know the answer, since I had a similar problem on Debian once. Basically, for whatever reason, the installer doesn't correctly update sources.list and leaves an entry for the installation media.

Edit the file (e.g. sudo nano /etc/apt/sources.list) and look for a line that says deb cdrom:... or similar. If it's present, add a # to the beginning of the line to comment it out.

Also make sure there are a bunch of other entries for ubuntu.com. If the only line in the file is for the cdrom, you can try replacing it with mine.


To install Wine, remove graphics driver - wut?

The workaround is to build wine without OpenCL

http://ubuntuforums.org/showthread.php?t=2257502&p=13194027#post13194027

There is also an open bug you might consider voting for at:

https://bugs.launchpad.net/ubuntu/+source/wine1.6/+bug/1405264


Canon_MF731C_733C Does not accept jobs - 17.10

I booted from a thumb drive and which had Ubuntu-MATE 17.10 and found that I had the same problem. I turned off the printer and unplugged it then turn it back on and the problem was resolved. However, I still see the "Does not accept jobs" message as depicted above but the printer is working as it should.


no eth0 Network error fetching interface information: Device not found

You should change the contents of /etc/network/interfaces to reflect the actual interface names in the output from ifconfig -a.

You can then use:

ifconfig vnet0:0

Which should work now... let me know how you get on.


I found my own solution:

############################
# NETFLIX ERROR M7357-1003 #
############################
#!/bin/bash
sudo apt-get install -y libnss3-1d:i386
sudo apt-get install -y libxss1:i386
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update -y
sudo apt-get install -y google-chrome-stable
sudo apt-get upgrade -y


First check integrity of .iso file that you downloaded with comparing md5sum.
 Use unetbootin to make bootable  flash drive.


I find the answer in http://wiki.osdev.org/GRUB_2.  Looks like bootx64.efi itself is GRUB 2.  The configuration file grub.cfg read by bootx64.efi is also stored in ESP.  By default, the grub.cfg in ESP is a configuration to read another grub.cfg in partition where Ubuntu is installed.


Can we able to Edit/Create a file using 'File Permission'?

I believe you are looking for chmod. This command allows you to change permissions for a file.

Say you want to change the permissions of ./foo.txt to '4' then it's chmod 4 ./foo.txt

If you want to do this to all the files in a directory it would be chmod 4 *.

If you wanted to do this recursively through all files and directories somewhere it would be chmod -R 4 *

If you wanted to revert the change back to '7' on a file, it would be chmod 7 ./foo.txt. You can also use * or -R this way to change permissions on more than one file.

Click here for the chmod man pages.

Occasionally you will need to run sudo chmod instead of just chmod. Originally I had it as sudo chmod everywhere, however it is a bad habit to get into to use sudo when you don't need to.


Can you tell me what is that button for? Ubuntu Gnome 16.10 - gnome classic

As I correctly guessed and you confirmed in your comment, that button locks the screen orientation.

Looks like your notebook has a rotation sensor and could therefore automatically rotate the screen when the device is rotated, so that the upper side is always up.

The button is there to lock the orientation or to activate automatic rotating.


Ubuntu Uninstall . What partitions I should delete?

Boot ubuntu-live disk and then install gparted.
Open gparted,and make sure that you doesn't had mounted any sda partitions.
Delete /dev/sda5 and /dev/sda6 partitions.
Atlast ran boot-repair.


Connecting to samba share works with smbclient, but doesn't work with Windows 7

Netscan (for windows) is a very handy tool for browsing lan. There is a similar application for linux too, named ---ShareScanner (netscan for linux). You can download it from:

http://sharescanner.net84.net

The site contains 32 and 64 bit debian and rpm packages for easy installation. It is actually a gui for smbclient


In Ubuntu 20.04 (Gnome), how can we view/edit app launcher properties?

This is a GUI way you can create and manage all your apps launchers, this utility is called "MenuLibre"

It is on Ubuntu Repos

sudo apt install menulibre

this app will appear under gnome apps once installed

Here is the Link to MenuLibre official Website


High power consumption on latest versions of Linux distributions

I have a 14" Asus that gets about the same battery life under Ubuntu as under Windows. It idles at 7.5-8W. I've seen it hit 18W and it might be capable of more. Just casual gaming on it.

PowerSavingTweaks is the gold standard for trimming power as far as I know. Sorry you found no relief there. Have you followed the links in the laptop mode page to other interesting efforts like tuning PM utils?

The worst offender on my Asus is the discrete Nvidia graphics card. There is a well-established effort to get that under control, and I'm grateful to the people behind Bumblebee, without which my laptop would bake itself. I don't know whether it's feasible or even sensible to try to power down a discrete AMD GPU card. Proprietary graphics drivers might help a bit. (apt-get install fglrx-updates and you'll probably have to adjust away "underscan" in the GUI Catalyst Control Center.) Personal experience suggests this would shave off a couple of watts.


Any directory that starts with a . is a hidden directory.

From a file manager you want to select show hidden (either right click, or its in the top menu under view)

For example, if you open a terminal it opens up in your home directory.

If you type

 ls

This will show you what you normally would see on a file manager, but if you

 ls -a

You will see all the hidden dot files.


Unable to login after changing User Password

When you are at the login screen in Ubuntu, go in tty1 with Ctrl+Alt+F1, login with your user name and password, and run this command:

sudo chown -R $USER:$USER /home/$USER/

Now reboot (sudo reboot) and try to login as usually.


Can't figure out how to install "humble double fine bundle"

Simple Way To Fix The Error
 sudo find / -name libbz2.so.1

The Output is
 /var/cache/lxc/centos/x86_64/6/rootfs/lib64/libbz2.so.1
 /var/cache/lxc/raring/rootfs-amd64/lib/x86_64-linux-gnu/libbz2.so.1
 /var/lib/lxc/centos/rootfs/lib64/libbz2.so.1
 /var/lib/lxc/container/rootfs/lib/x86_64-linux-gnu/libbz2.so.1
 /var/lib/lxc/juju/rootfs/lib/x86_64-linux-gnu/libbz2.so.1
 /var/lib/lxc/client/rootfs/lib/x86_64-linux-gnu/libbz2.so.1
 /lib/x86_64-linux-gnu/libbz2.so.1
 /lib/i386-linux-gnu/libbz2.so.1

Then Simply You Need To Load This Lib libbz2.so.1 Before Executing
For 32 bit app
 LD_PRELOAD=/lib/i386-linux-gnu/libbz2.so.1 ./CostumeQuest-Linux-2013-05-07-setup.bin

If that work Then simple Check the this answer Skype Crashes with a Segmentation fault
OR
  sudo ln -s /lib/i386-linux-gnu/libbz2.so.1 /usr/lib32/
  sudo ldconfig -v

Then Run The Setup

Update
Make a file
 sudo gedit /etc/ld.so.conf.d/hib.conf

Copy paste the following line in it
 /home/jeggy/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/
 /lib/x86_64-linux-gnu/
 /lib/i386-linux-gnu/

Save & exit & then run the following command
  sudo ldconfig -v

Lastly run the setup
 sudo ./CostumeQuest-Linux-2013-05-07-setup.bin

Solved With Google + Screen Sharing
 sudo cp /home/jeggy/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libbz2.so.1.0.4 /usr/lib/libbz2.so.1

 sudo ldconfig -v

Lastly run the setup
 sudo ./CostumeQuest-Linux-2013-05-07-setup.bin


Chrome, Firefox, Chromium not loading some websites!

Update Ubuntu, Chrome, Firefox and install latest flash version.
I faced similar issue, now it is fixed.


PROBLEM SOLVED!
I did this:
Open this file: sudo -H gedit /etc/modprobe.d/alsa-base.conf
And then add the following line to it: options snd-hda-intel dmic_detect=0
I saved it, rebooted and sound works! This seems to the same solution as many of you suggested but I just did not figure out where to add this line... Anyway, thanks for everyone!!!!


Based in Arijit Chatterjee proposal, I sugest

grep -Ff <(tr -s " " "\n" < file2) file1

Where tr -s " " "\n" transforms file2 in a one-word-per-line input, better
adapted for grep -Ff


I've had this exact panel problem before (with the one on the left side). The problem is the size of the panel and the background for the panel.

You should be able to right-click that panel (it's only one... entity... for lack of a better word) and delete the panel as you would normally in LXDE.

As for the top panel, you could solve that by increasing the size of that panel by right-clicking and editing that as well.


It exists an extension that moves the GNOME Shell notifications to the right top corner.
It's called Shell OSD. It's not exactly what you are asking for, but it might be a good alternative.

Your notifications should now look like this:

To install it you only have to enable the slider in the webpage above.


cannot access ubuntu server behind huawei router even after port forwarding

The huawei router does not support loopback. This means that when you use the WAN address of your router from the LAN side you get the LAN address instead. Your router setup page is connected to LAN:80 and your forwarding is done from WAN:80


Why isn't the new "postgres" user I created showing up in User Accounts?

As you found out, Ubuntu reserves the postgres user for maintenance (upgrades, backups, etc.) and other internal tasks, which require that this "user" be able to login without a password. Consequently, postgres is hidden from the User Accounts list, even if you create that user manually.

To allow local PSQL connections with a password, you can use the createuser utility and grant that user admin privileges.


Install the Catalyst Driver using instructions from the following link
http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide

If the problem still persists, install TLP
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start


fglrx does not have /usr/lib/libGL.so lib

The libgl1-dev package is a meta-package that contains the required lib and can be replaced with software implementations libgl1-mesa-swx11 or dri accelerated version libgl1-mesa-dri.


You need to install codecs.

Either you install vlc, this will intern download all codecs or install Ubuntu restricted extras from software center.


Try enabling the php7.2 module for Apache using a2enmod php7.2 if you are missing the modules you will need to install them.

After this restart the Apache service: service apache2 restart

This should fix the issue.

If you are missing any modules I believe the package name for the Apache php7.2 module  is libapache2-mod-php


Your while loop can be replaced by a for-loop. Since Bash cannot handle floating point arithmetic, you should use normal integers instead and use a program like bc for creating floats. The scale=1; command before $i/10 ensures that there is always a single decimal (e.g. 0.1).

for ((i=1; i<=10; i++))
do
    p=$(bc <<<"scale=1;$i/10")
    echo ----probability---- $p
    java $jvmargs -classpath $CP jbenchmarker.MainSimulation $p
done

This is equivalent to:

i=1
while ((i<=10))
do
    p=$(bc <<<"scale=1;$i/10")
    echo ----probability---- $p
    java $jvmargs -classpath $CP jbenchmarker.MainSimulation $p
    ((i++))
done

command <<<... is a neat trick that writes ... to the standard input of command and is equivalent to echo ... | command


This answer might help you to get your DE up and running again. It demonstrates on how you can uninstall the nvidia driver completely (clean up any leftovers..etc) and work with the nouveau driver (open source alternative).

As for the login problem

Try to remove the file ~/.Xauthority . Login from a TTY (CTRL+ALT+F2) and

rm ~/.Xauthority .

Be careful with the dot and the capital X. This file is hidden in your home directory. It is safe to remove it. It will be generated again in next login. After the deletion restart lightdm.

sudo service lightdm stop ; sudo service lightdm start


Ubuntu MATE won't boot: "Kernel panic - not syncing" and "error while loading shared libraries"

Your Linux kernel version indicate that you are using Ubuntu MATE 18.04 LTS (Bionic Beaver).

In this Ubuntu version mentioned library is contained in libip4tc0 package.

You should do the following:

Boot from installation medium
Mount your problematic Ubuntu root filesystem with Caja by clicking on the drive icon in the Devices section

If unsure which partition to mount then check it with Disks (gnome-disks) utility and mount it from here:

Then download deb-file and extract it to the root file-system

wget http://mirrors.kernel.org/ubuntu/pool/main/i/iptables/libip4tc0_1.6.1-2ubuntu2_amd64.deb
sudo dpkg -x libip4tc0_1.6.1-2ubuntu2_amd64.deb /media/ubuntu-mate/ba94799c-*

wget http://mirrors.kernel.org/ubuntu/pool/main/l/lz4/liblz4-1_0.0~r131-2ubuntu3_amd64.deb
sudo dpkg -x liblz4-1_0.0~r131-2ubuntu3_amd64.deb /media/ubuntu-mate/ba94799c-*

Check that above operation do not have errors and then reboot.


Display problem when adjusting brightness in ubuntu 12.04

I'm not sure how you're adjusting the brightness, but using xrandr, may yield different results.

As in xrandr --output VGA-0 --brightness 1.1 or 0.8 for darker, etc (see xrandr's output for your output name, maybe HDMI-0 or so)

[Q showed up in "Unanswered Questions", may help someone with a different brightness option. Probably will never get a reply from @Maverick Snyder though, last seen in 2013]


Boot from a live CD, mount the hard drive, then check the logs in /mount_path/var/log.


Configure TigerVNC Server to start with system in Ubuntu GNOME 16.04

This systemd Unit file worked for me:

[Unit]
Description=Start TigerVNC Server at startup
After=syslog.target network.target

[Service]
Type=forking
User=user
PAMName=login
PIDFile=/home/user/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver :%i -depth 24 -geometry 1920x1080 -nolisten tcp -localhost
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

Be sure to replace user with your actual username on lines corresponding to User and PIDFile under [Service].

I saved this file as vncserver@.service in /etc/systemd/system/
Enabled it with systemctl enable vncserver@4.service which creates a symlink file vncserver@4.service in /etc/systemd/system/multi-user.target.wants/ pointing to vncserver@.service in /etc/systemd/system/
Started the service with systemctl start vncserver@4

To adapt it to your needs, please use your preferred display number instead of 4 (as I did) when enabling. Also, ensure that you have initialized the vncserver outside of this service Unit file before starting the service. This would ensure the password, and the necessary files (xstartup, etc.) are created. The easiest way to do that would be to run the command against ExecStart under [Service] in the Unit file. For my case, that translates to:

vncserver :4 -depth 24 -geometry 1920x1080 -nolisten tcp -localhost

Source: I adapted the Unit file from this guide.


It's possible.

You're gonna need adb installed on a desktop ubuntu machine.

sudo apt-get install phablet-tools

Then, do this to make the system files writable (note: there may be security concerns to doing this):

phablet-config writable-image

(Note: Your device will reboot.)

After your device reboots, you will be able to access a full linux command line for your phone by doing :

adb shell

Now we will replace the default white background file with our own file. At this point, you should drag your own image file into the Pictures folder the normal gui way from your desktop. Make sure its a png file.

Then do the following command from adb shell:

sudo mv /home/phablet/Pictures/yourimage.png /usr/share/unity8/Dash/graphics/paper_portrait\@27.png

It asks for a password, which will be your pin to enter the phone. After running this command, reboot the phone.

That's it. If anyone has an easier way, I'd love to hear it.


Wi-fi speed dramatically low on Ubuntu vs Windows

Compile and install the proprietary Realtek 8192cu driver. To do this, run the following commands in an open terminal:

sudo apt-get update && sudo apt-get install git build-essential linux-headers-generic dkms
git clone https://github.com/dz0ny/rt8192cu.git --depth 1
cd rt8192cu
sudo make dkms

For hard installation use:

make
sudo make install

instead of sudo make dkms .

To enable this driver, use the command:

sudo modprobe 8192cu

Finally, update /etc/modules with this command before you reboot:

echo '8192cu' | sudo tee -a /etc/modules

Source: github.com/dz0ny

Also: https://askubuntu.com/a/395826/167115


You should be able to access your NAS file system by first mounting it, don't worry, this isn't complex. It just involved navigating to the file system first. Go to your network in Places > Network:

Now you'll get a window showing computers on your network. Visit the computer and the share you want to browse files for:

You'll see it appears on the desktop when you browse to it. Next when you go into your save dialog box, just make sure to select the network file system on the left:

Assuming you have read/write permissions, you should be able to save. If your system doesn't work like this, then please give us a screenshot.


Your question is a little confusing. I am assuming that you want to change Fn + F# to register as F# for all function keys F1 through F12.

Your information on this is correct. This cannot be done through the OS. It has to be done through BIOS. Go through all the options in BIOS once again, I am pretty sure you will be able to find it. If not, then google how to do this from BIOS and add your BIOS version to the search.


Is there any utility like the Windows program smartcopy?

If you're doing copies from the command line, rsync will optimize the copies about as much as is possible and you can press Ctrl + Z to pause it, then type fg to resume.


The short answer is “not anymore”. I think it was around 16.04 when udev rules to specify storage devices at /dev/sdX went away. You can use udev to create additional symlinks with predefined names, but /dev/sdX (and some others) fall under the purview of the kernel.
The kernel names devices based on the order they’re discovered. The boot drive will always be discovered first so, if it is on a bus that gets assigned a letter in /dev/sdX, the X will always be a. If the SSD responds to the probe command during boot faster than the HDD, then it will probably always get assigned next, followed by devices that respond slower. If the SSD and the HDD have very close response times that fluctuate for whatever reason, you might see that swap assignments with different boots.
For reasons like this, we generally use mount points with UUIDs so that things generally “just work” and we don’t have to fiddle with settings or modify fstab more often than necessary


copy from one folder to another not working in terminal

In order to copy a file you must have read permission on the parent directory of the file and write permission on the destination.

Think of directory as a container with a lock and file as contents of the container.

You must have an access to the keys of the lock in order to access the file inside the directory(container).

File Permissions:-

r - can read the file.

w - can write to a file.

x - can run the file as a program.

Directory Permissions:-

r - can read the contents of the directory.

w - can make changes to files inside the directory/ add or delete the files.

x - can cd to a directory.

Directory permissions are important and can override the file permissions.

Even if you're file doesn't have read permissions but the parent directory of the file has a read permission than you can copy the file assuming that you're copying the file to a location where you can write.

I assume this might be helpful.


Why do software patches have to be accepted by a developer?

In open source projects, why do software patches have to be accepted by a developer?

This is because distros contain only one version of one piece of software. If your patch is accepted by the developer, he/she will release it which will make it's way to the end user.

Couldn't contributors just release their own patches and allow people to
add the patch if they choose to

It is possible, but in this case the people need to understand how to apply patches. It is usually a very tricky and geeky way to apply code patches. The user needs to get the source code of the software, apply patch, build it and install it. Most of the non-techie users just install the already built software. Most of them won't go through the hassles of patching their software.

For instance, lots of people want Rhythmbox to be more attractive.
Why can't the people who design themes on DeviantArt turn those into
code and let users download those themes themselves, even if the developers
at Rhythmbox won't accept different themes?

You are talking mostly about themes. Many softwares have plugin system which allow the application behavior to be tweaked to suit the user's need. A plugin can make Rhythmbox looks more attractive. Not all the aspects of the application can be tweaked. Only those aspects of an application can be tweaked this way (plugins/themes) which are explicitly supported by the application developer.


Installing new Fat32 hard disk and cannont get file to write

This isn't quite a solution, but try exFAT if you can. It might work and exFAT is all around nicer with larger disk and file support. NTFS is also an option.

If switching filesystems isn't an option, try this:

sudo chown -R USERNAME /media/PoCPhoenix, replacing USERNAME with your username.
This sets you as the owner of the disk. (not sure if ownership applies to FAT32, but no harm in trying).

Then, if that doesn't work maybe:

sudo chmod -R 777 /media/PoCPhoenix

However, this lets any user or program access the disk, so be careful.


Just as an introduction: a "Screen" in xorg parlance actually refers to the relationship between a Monitor (as it sounds) and a Device (usually a graphics card). Multiple screens can be bound together in a ServerLayout.

The best place for reading up on this sort of technical lingo is the xorg.conf man page which has had to become very verbose over the years to explain things.

Just to confuse things, when people use "Display" correctly, they refer to an instance of X (aka a ServerLayout in config terms).

Multi-head is the term used for multiple screens per display. Nvidia calls this feature TwinView but I expect that to change in time given that their newer cards (600-series) support more than two displays.

"Multiple monitor" usually means multi-head... and that's supported on single cards with multiple outputs. AFAIK you can do this on multiple devices but it's much harder (you Xinerama and that brings rendering limitations).
With the advent of randr and xrandr, you actually don't need an xorg.conf file for most things these days. The concepts are the same but the configuration can all be done by the user, without incessant rebooting. It's certainly one of my favourite improvements in the past five years.

The short answer to "Can I have multiple monitors?" is "Yes". You can do most things if you really want to. Multi-head on one device is the easiest so if that's what you want, just plug in the extra monitor and load up the display configuration (just like you would in Windows, et al).

If you want a wall of screens, you might need to battle X (and the hardware) a little more but again, completely possible.


Ubuntu does not boot in Oracle VirtualBox

This is embarrassing but I had not installed Ubuntu with Grub. When I started over and installed it with Grub, the ubuntu VM booted with no issues.

Thanks


what to do if I accidently changed .bin file?

Right click on the file. Choose properties and the "open with" tab and pick a program that you can use to open "bin" files. There are several programs for this: Furius ISO Mount, Acetone Iso. But you might have some other software installed.

A reminder: ISO is a CD Rom format... in general you do not need a program for it and just burn it to a CD Rom.


quickly package --extras doesn't produce /opt/extras.ubuntu.com/../share/locale

It seems to me that your application doesn't contain any internationalized strings (internationalized with gettext helper: _(). So no local is produced to the targeted system as there is nothing to translate!

See http://docs.python.org/library/gettext.html for my information on gettext frmo python.

If your application doesn't contain any strings that you present to the user, you can remove the locale.bindtextdomain command in drawers/init.py


Looking for a multi-monitor wallpaper switcher

I have used this one before it pretty decent, allows you to do a couple of other things as well, workspace specific backgrounds and time elapsed changes too!

http://wallpapoz.akbarhome.com/index.html


Upgrade problem with add repositories and ubuntu software center

Simply run

sudo apt-get install software-properties-common

And you'll have add-apt-repository

The package is part of the Ubuntu standard repositories.


Your /home is mounted on a separate filesystem (partition). Every ext2, ext3 or ext4 filesystem (I don't know for others) has a lost+found subdirectory under the top directory of the filesystem. It is a system directory and it must be there. In case of filesystem errors, this directory is used by fsck to place recovered files there.


Unable to disable "mysql" service for autoboot

It means that the service in the SysVInit system is not enabled. The mysql is rather started through upstart in /etc/init.

To disable auto start of mysql.

echo "manual" > /etc/init/mysql.override


Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express)
  [168c:002b] (rev 01) Subsystem: Lenovo Device [17aa:30a1] Kernel
  driver in use: ath9k

The wireless module name is ath9k. To blacklist it, instead of manually editing a file, let's take the easy way. Open a terminal and do:

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

It might take a reboot.


Tunnel a whole desktop over ssh to X11 running on OSX

(Self answer: Still looking for a more complete answer)

I was not able to run gnome-session - I even tried Xephry and Xnest for this.

However, I was able to run:

gnome-panel&

. . and this gives me most of want I want. I now have the important parts of the Gnome desktop system - the graphical "Applications" menu, allowing me to find and launch apps, without having to know where they live on the disk.

Update: This also works incredibly well over a meager wifi connection!


Are there any issues with installing Ubuntu Linux on a portable hard drive under UEFI Secure Boot?

Under EFI, there's really no such thing as a "boot drive" in the same sense as under BIOS. Instead, EFI stores EFI boot loaders on the EFI System Partition (ESP), and it stores references to them in NVRAM. My suspicion is that this all worked fine when you set up the new drive, but then if you unplugged it and powered up, the firmware may have "helpfully" removed the NVRAM entry for the external disk, so that it never worked again.

My recommendation is to install a boot manager, such as gummiboot or my own rEFInd, on the computer's main hard disk. That will enable you to select which OS to boot at each boot. In the case of rEFInd, the Ubuntu option won't appear if the external disk isn't plugged in, and if you set the default to Ubuntu with a short timeout, the result will be a boot to Ubuntu when the external disk is plugged in and to Windows when it's not. The caveat to this is that if you leave Secure Boot enabled, you'll have to jump through some extra hoops, as described on the rEFInd Secure Boot page. It's likely to be easier to disable Secure Boot. (Note that Secure Boot is just one EFI feature, so you can continue booting in EFI mode even with Secure Boot disabled.)

A similar solution is to install Ubuntu's GRUB on the internal disk's ESP rather than on the external disk's ESP. I don't think this would switch automatically between OSes when the external disk is plugged in vs. not, though.


Hidden files in Nautilus after extracting ISO

Found this that solved the problem. Learned something new everyday: https://unix.stackexchange.com/questions/31688/options-for-hidden-files

There was a file called .hidden that just so happened to have the list of files that appear hidden but without the . in front of them.

After removing this file everything is shown in Nautilus.

So basically there are 3 ways to hide a file:

Prefix the . symbol in front of the file/folder. If it was spore, after hiding it this way it should be .spore with a . (dot) in front of it.
Add a ~ at the end of the file. If the file ends with ~, it is considered a "Backup File" and by default it gets hidden. If you have a file called spore and you change it to spore~ this would hide it and it would be considered a backup file. You can see that by default gedit for example does this.
Create the .hidden file in the directory where you want to hide some files/folder. Inside the .hidden file add in each line the name of the file or folder you wish to hide.


You can also run init-checkconf to check syntax

init-checkconf /etc/init/job.conf
File /etc/init/job.conf: syntax ok


Apache/2.4.29 (Ubuntu) Server at Port 443 for wordpress

Get solution for the issue, need to change in apache2.conf file after that it will works,

old code in /etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

changed in to

 <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    </Directory>

after that,
In order for Apache to understand rewrite rules, we first need to activate mod_rewrite. It's already installed, but it's disabled on a default Apache installation. Use the a2enmod command to enable the module:

$ sudo a2enmod rewrite

This will activate the module or alert you that the module is already enabled. To put these changes into effect, restart Apache.

$ sudo systemctl restart apache2

it works for me finally.


Are you getting screen like this?

as mentioned in my thread

Your issue is unrelated to mine. Just undo the last action you did to get back into last working good configuration.


Permissions problems with /var/www/html and my own home directory for a website document root

You should never have to run a website from within your home directory.  EVER.  You would otherwise have to give the web server the ability to traverse through /home/ to see the directory structure, but also into /home/$USER/ (your user's home directory, where we can try and see what else exists in your user directory), as well as any other subfolders in there.  A poorly-configured or misconfigured or unpatched web server can cause massive data leakage this way, or loss of credentials and such which would put your personal data and logins on different things at risk.  The symlink approach you are using doesn't help either for the same reason as trying to give Apache permissions to read /home/andre/www/moodle - the web server has to be able to traverse your home directory to get to the location that the symlink in /var/www/html points to, which still poses that security risk.
Firstly, use sudo cp -r /home/andre/www/moodle/ /var/www/html/.  This will copy your files to /var/www/html, and keep it away from your own home directory.  We'll then redo the permissions so you and the web server can access everything in that directory, and give your user full read/write to all the files and directories.  Then, you will only ever have to work out of /var/www/html for your site.
This is in effect, four steps, after you copy your data back to /var/www/html:

Give Apache access to the folders and files, so it can serve the site without 403 errors.
Give your user 'owner' over the files and folders, and give yourself read/write on all of the files and folders, as well as the ability to traverse the directories.
(Optional but recommended) Set it up such that any files or folders created from hereon in the entirety of the directory structure has the group set to be www-data.
(Optional) Final security cleanup, where we set up permissions so you and the web server can see the site data, but other users cannot access files or the directory structure for the site.

(1) Allow Apache access to the folders and the files.
sudo chgrp -R www-data /var/www/html
sudo find /var/www/html -type d -exec chmod g+rx {} +
sudo find /var/www/html -type f -exec chmod g+r {} +

This recursively sets the 'group' to be www-data for the folders and files.  This then gives the web server permission to recurse and get access to the site document root directories structure (+x for directories only).  It then also ensures the web server has read permissions for all files, so site data can be received.
There may be some cases where you have to give the web server write permission to a file, or to a directory - this can be achieved by doing sudo chmod g+w /var/www/html/PATH (where PATH is the path to the file or folder in the directory structure where you need to apply the write permissions for the web server).
NOTICE: There are a lot of cases where this may expose 'secure' information about a site configuration (such as database access credentials, etc.), and you should remove 'other' access permissions to that data on those individual files or directories with the following: sudo chmod o-rwx /var/www/html/FILEPATH (replacing FILEPATH with the path relative to the /var/www/html folder for the file).
Note also that you may have to re-run these commands in the future if 'new files' get 403 issues, in order to give correct permissions to the web server to keep being able to access files and folders that are created or copied in and aren't getting the www-data group set correctly.

(2) Give your owner read/write privileges to the folders and the files, and permit folder access to traverse the directory structure.
sudo chown -R USER /var/www/html/
sudo find /var/www/html -type d -exec chmod u+rwx {} +
sudo find /var/www/html -type f -exec chmod u+rw {} +

Replace USER in the first command with your own username!
We do three things here.  First, we set your user to be the "Owner" of all the files and directories in /var/www/html.  Next, we set read and write permissions on the folders, and permit you to access the folders to go into them (the +x item on the directory items).  We then set all the files to have read/write permissions for the owner, which we just set.

(3) (Optional) Make sure every new file after this is created with www-data as the 'access' user.
sudo find /var/www/html -type d -exec chmod g+s {} +

This sets the "set gid" bit for the group on the directories.  Files and folders created inside these directories will always have www-data as the group, permitting the web server access.

(4) (Optional) Final security cleanup, if you don't want other users to be able to see the data
We need your user to see the directories and files.  We need the web-server to do so too.  We may not want other system users (except root) to see the data.  So lets not give them that access, and make it so only your user and the web server can see the data.
sudo chmod -R o-rwx /var/www/html/

NOTE: You will not have to re-run this at a later time, or edit the permissions for the 'other' category of permissions here.  If the 'other' users can't get to /var/www/html/ (they don't have the necessary +x bit on /var/www/html to traverse the filestructure and directory structure, nor the +r bit to read the file lists), then the permissions on items underneath that directory for other users or groups isn't really going to matter too much.

There is a slightly less invasive solution to this, as well, though it's not guaranteed to work for all new files, nor is it guaranteed to work on all file systems, involving file access control lists.  This lets you leave ownership of the files with www-data for things, but gives you effective owner rights, for all intents and purposes, even though you don't personally own the files.
This solution is a little less invasive, and lets you have a directory and all files within owned by www-data:www-data or root:www-data but also give yourself access.  It uses Access Control Lists, which lets you have multiple users have permissions without setting up individual groups.  This also lets the root or www-data system users own files, but also lets you add additional permissions on a case-by-case basis, and fine-tune permissions for certain users so they can read things but not edit, and such.
Assuming we're still working with /var/www/html/, and we don't want snooping users other than us and the system (and root of course) to see our data, we'll need to do the following things:

Give ownership back to the webserver system user www-data.

sudo chown -R www-data:www-data /var/www/html

Recursively give you read/write on the files, while giving other users (excluding www-data and root of course) no access to the files.

sudo find /var/www/html -type f -exec setfacl -m u:YOURUSERNAME:rw -m other::--- {} \;

Recursively give yourself read/write/traverse on the directories, remove access to the folders for other users (excluding www-data and root) and set this as the 'default' ACL for new files in the directories.

sudo find /var/www/html -type d -exec setfacl -d -m u:YOURUSERNAME:rwx -m o::--- {} \;

We also need to set the setgid bit for all directories, so that if you create a file the webserver can still access it as www-data via group permissions.

sudo find /var/www/html -type d -exec chmod g+x {} \;
And now you've got access to all the directories, and you didn't have to take access away from www-data which helps as the webserver can still create files everywhere as it needs to (such as PHP based frontends having their own cache directories and such needing to be created and written to for proper operation).
The only caveat: If you manually create new files, you need to chown them accordingly to give ownership to the webserver.  That's a simple sudo chown www-data:www-data filename, and the access control lists should still let you have effective owner rights to the file.
There are multiple cases where I've had to do this as a sysadmin for some type of non-standard access without changing the owners of a given file.  This works, but has its own headaches, as not every file system supports file access lists.


Well --- it depends. Basically, it depends on if the device is partitioned or not (used whole). If it has just one big partition, it's partitioned anyway.

I have a device (a Garmin GPS) that looks like an unpartioned disk, look (from the command mount which shows the mounted devices):

/dev/sdc on /media/romano/GARMIN type vfat (rw,nosuid,nodev,uid=1153,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)

so this disk needs to be unmounted with umount /dev/sdc.

Notice however that this is a bad thing in general, stemming from the age of floppy disks --- if you still have one of those, they were mostly unpartitioned. Devices should be partitioned, even if they have just one big  partition. Otherwise a lot of things  expecting it will not automount the thing --- it happens randomly on Trusty with my Garmin, too.

A normal disk when mounted look like this:

/dev/sdd1 on /media/romano/I2MTC15_RG type vfat (rw,nosuid,nodev,uid=1153,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)

so it has to be unmounted with umount /dev/sdd1.

Anyway, getting it wrong will just throw an error...

[romano:~] % umount /dev/sdd
umount: /dev/sdd is not mounted (according to mtab)


There is no EconoMode in printer options

Rather than looking at this through HPLIP Have you tried looking at this via CUPS; it is the standards-based, open source printing system developed by Apple Inc. for OS® X and other UNIX®-like operating systems.You should be able to select "fast draft"?

Good luck.


Ubuntu 12.04 installer does not recognize Windows 7

First, GPT is not, in and of itself, the problem. The error you report (no partitions appearing in the installer) is indicative of a partition table problem. It's a long-standing bug of libparted (which the installer uses) that broken partition tables show as if they were blank disks. GPT is supported by libparted, though, and Ubuntu will install to GPT disks.

The key is this:

/dev/sda1 ends after the last sector of /dev/sda

This error message refers to the GPT's protective MBR, which is a "fake" MBR partition table that exists just to keep GPT-unaware utilities from using the disk. Your protective MBR contains a protective 0xEE partition that's too big. This really doesn't matter, but it's triggering libparted's "broken partition table" bug.

The solution is to fix the protective MBR. This is easily done using gdisk or sgdisk, which are part of the gdisk package in Ubuntu; however, I'm not sure if that package is installable in a live CD. Therefore, I'll tell you how to do this from an emergency disk:

Download Parted Magic and burn it to CD.
Boot Parted Magic.
Launch a terminal window (the icon of a monitor on the bottom of the screen).
Type gdisk /dev/sda to launch gdisk. You should see some startup messages and a prompt that reads Command (? for help):.
Type p in gdisk to view your partition table and verify that everything looks OK. If you see weird partitions, exit by typing q.
Type x to get to the experts' menu. The prompt should change to read Expert command (? for help):.
Type n. This generates a fresh protective MBR. The program will respond merely by displaying a new prompt.
Type w to save your changes. The program will warn you it will overwrite your old partitions and prompt you for confirmation. Respond y.
Reboot and try installing again. It should now work fine.

One caveat: Your computer is booting Windows in EFI mode, so you should also install Ubuntu in EFI mode. This is sometimes trouble-prone. I recommend backing up your EFI System Partition (ESP; /dev/sda1) while you're in Parted Magic or by using the Ubuntu installer. If you have problems after installing, you may need to install a new boot loader. See my EFI Boot Loaders for Linux page for details.


I assume something got messed up with the apt internals and waiting 24 hours allowed everything clear and rebase itself. Where as before most - but not all - of the apt and ubuntu tools showed that mysql-8.0 was the default after doing the dpkg -i mysql-8.13 (not the actual package name).

I went back today (not quite 24 hours later) and now attempting to do the install for mysql-server shows what I expect to see:

root@mrserver:~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libmecab2 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client mysql-common mysql-community-client mysql-community-client-core mysql-community-server mysql-community-server-core
The following NEW packages will be installed:
  libmecab2 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client mysql-common mysql-community-client mysql-community-client-core mysql-community-server mysql-community-server-core mysql-server
0 upgraded, 11 newly installed, 0 to remove and 1 not upgraded.
Need to get 23.1 MB/30.1 MB of archives.
After this operation, 295 MB of additional disk space will be used.
Do you want to continue? [Y/n]


How can I listen Last.fm radio in Banshee?

It seems that currently you can only love tracks you listen to on the Last.fm radios. See here for the upstream bug report about also loving tracks from your media library.


Probably you didn't make the other advice "visible". This is done by searching in Bluetooth-preferences of your advice, afterwards Ubuntu will find it, when you press "search". That is for protection.


Dual Screen with 12.04 ATI randr extension is not present

The correct syntax for installing packages is:

sudo apt-get install

and not get-apt

Correct name of package is libxrandr2


My Ubuntu-App-Showdown-Participation-Details.txt was updated by someone and contains an other name and the false ppa

I'm the author of Variety wallpaper changer (app entry is here). Yes, seems your application entry is pointing to the exact same "Ubuntu-App-Showdown-Participation-Details_16.txt" file that mine points to. I don't know how this has happened, but can't you just click "Edit" for this section (the link for editing the section is probably: https://myapps.developer.ubuntu.com/dev/apps/1172/update/?step=about) and then upload the correct txt file?


List all IP addresses in files on my computer?

Use grep
You can use grep to find all files containing something that looks like an IPv4 IP address. Be aware there will be false positives. For example the file:
/usr/src/linux-headers-4.14.30-041430/include/linux/oid_registry.h

at line 48 will contain:
OID_smimeAuthenticatedAttrs,    /* 1.2.840.113549.1.9.16.2.11 */

It sort of looks like an IP address in the comments but it is not.
Initially start with a count of all the lines containing an IP address on your system:
$ sudo time grep -rnwI --exclude-dir={boot,dev,media,mnt,lib,proc,root,run,sys,/tmp,tmpfs,var} -E "([0-9]{1,3}[\.]){3}[0-9]{1,3}" / | wc
27.76user 13.17system 1:31.06elapsed 44%CPU (0avgtext+0avgdata 10416maxresident)k
12451744inputs+0outputs (2major+2098minor)pagefaults 0swaps
  17164  122083 3138285

Let's break down the commands

sudo prevents "Permission denied" errors
time tells us how long it takes to run, ie. 1 minute 31 seconds
grep is the command that searches for strings in files
-rnwI are the arguments (aka parameters) passed to grep. The r means recursive meaning sub-directories are processed. The n argument prints the line number the search string occurs in the file. The I argument tells it to ignore binary files. If binary files were include the number of files would increase from 17,164 to 22,253 on my system. You can't open binary files and make any sense of them though.
-exclude-dir= are the directories to exclude from the search. Without this list grep can take 53 hours to complete: `grep`ing all files for a string takes a long time
-E is the argument to grep that tells it the search string is about to follow.
"([0-9]{1,3}[\.]){3}[0-9]{1,3}" is the search string to look forward. Explained in more detail below.
/ tells grep to start at the root directory. However the excluded directories will be skipped.
| is the pipe command sending all output to the wc command instead of the screen.
wc is the "word count" command. It counts the number lines, number of words and number of characters passed to it. In our case it is 17164 lines, 122,083 words and 3,138,285 characters. Commas added for clarity.

Breaking down "([0-9]{1,3}[\.]){3}[0-9]{1,3}"
As shown earlier, the search string passed to grep is "([0-9]{1,3}[\.]){3}[0-9]{1,3}". Here is how it works:
"([0-9]{1,3}[\.]){3}[0-9]{1,3}"
    ^    ^   ^    ^   ^    ^
    |    |   |    |   |    +---- count of digits must be 1 to 3
    |    |   |    |   +--------- look for digits 0 through 9
    |    |   |    +------------- patterns 1 to 3 digits of 0-9 followed by . occurs 3 times
    |    |   +------------------ count of 1 to 3 digits must be followed by .
    |    +---------------------- count of digits is 1 to 3
    +--------------------------- look for digits 0 to 9

Seeing the output instead of word count
To see the actual output instead of just the word count remove | wc from the end of the command line:
$ sudo time grep -rnwI --exclude-dir={boot,dev,media,mnt,lib,proc,root,run,sys,/tmp,tmpfs,var} -E "([0-9]{1,3}[\.]){3}[0-9]{1,3}" /

    (... SNIP ...)
/usr/bin/printer-profile:176:   OUT="nc 192.168.1.12 9100 < xxx.prn"
/opt/google/chrome/default_apps/external_extensions.json:23:    "external_version": "0.0.0.6"
/opt/google/chrome/product_logo_32.xpm:330:"    [.}.}.|.1.2.3.4.5.6.7.8.9.0.a.b.8.c.d.e.f.g.h.h.i.j.k.l.    ",
28.52user 12.54system 1:31.78elapsed 44%CPU (0avgtext+0avgdata 9516maxresident)k
12793352inputs+0outputs (3major+1884minor)pagefaults 0swaps

The listing is too long to fit in this answer. Note the last file found is a false positive:
/opt/google/chrome/product_logo_32.xpm

because it doesn't contain a real IP address:
[.}.}.|.1.2.3.4.5.6.7.8.9.0.a.b.8.c.d.e.f.g.h.h.i.j.k.l.

Restrict your search to /etc directory at first
To narrow down search to more meaningful short-list use:
$ sudo time grep -rnI -E "([0-9]{1,3}[\.]){3}[0-9]{1,3}" /etc/etc/hosts:1:127.0.0.1 localhost
/etc/hosts:2:127.0.1.1  alien
/etc/cron.daily/google-earth:47:Version: GnuPG v1.4.2.2 (GNU/Linux)
    (... SNIP ...)
/etc/cups/cups-browsed.conf:77:# BrowseDeny 192.168.1.13
/etc/cups/cups-browsed.conf:78:# BrowseDeny 192.168.3.0/24
/etc/cups/cups-browsed.conf:79:# BrowseDeny 192.168.3.0/255.255.255.0
0.04user 0.03system 0:00.19elapsed 40%CPU (0avgtext+0avgdata 2800maxresident)k
22384inputs+0outputs (1major+181minor)pagefaults 0swaps


14.04.1: USB 1-1.6 device descriptor read/64, error -32 Spam

Among the USB devices you have listed, I don't see a USB powered cooling fan.  I suspect your laptop is overheating.  If your laptop has been used long enough, which is some cases is as little as 6 months, it's heatsink might be so clogged with dust that a cooling pad might not make enough difference.

When you get a chance please turn off and unplug your laptop.  Close it.  Turn it upside down and blow as hard as you can into the port where the hot are normally exits.  If you keep your eyes open you may be amazed by what you see.  This is typically one of the first things I do when examining a malfunctioning laptop.  I teach this "trick" to everyone I know.


Why does uniq seem to keep some consecutive identical lines?

TL;DR: The lines have different whitespace (possibly spaces) at the end.

This happens when you have lines that look the same but are are actually different due to characters that don't display in your terminal, usually at the end. Often these are are trailing spaces (as fkraiem suggested) or inconsistent line terminators.

You might expect that starting the pipeline, as you do, with cut, would prevent this. It doesn't, though. cut uses a tab as its default delimiter. (Readers who wish to verify this behavior--and its relevance to having unexpected duplicate lines after uniq--can try cut -f 1 <<<$'foo\nfoo  ' | uniq, which prints two lines.)

The solution in your case is probably to use something other than cut -f 1 to select the fields. In particular, if the fields are separated by spaces instead of tabs--whether by a single space or multiple spaces, and even if the number of spaces is different in different records--then you can use cut -d' ' -f 1 instead, specifying space as the delimiter character. Or you might not want to use cut at all, but instead use awk '{ print $1 }', which prints the first field, taking any sequence of consecutive spaces and tabs as the delimiter.

You could alternatively strip the trailing whitespace, though this makes your command even more complicated. One way to do that would be by piping your text through sed -E 's/[[:space:]]+$//' before it goes to uniq.

As a side note, if whatever command you ultimately use still ends up piping the output of sort directly to uniq, you might consider just using sort -u for that instead.


How to install gnome-terminal 3.18.3 (from Ubuntu 16.04) in Ubuntu 14.04?

You can edit ~/.bashrc and apply the change yourself.

Open up ~/.bashrc and look for the following line:

#force_color_prompt=yes

Remove the # from the beginning of the line and save.

You will have to source the file for the change to apply. If you reboot everything should work.

If you want to change the colour as well, see this: Changing colors for user, host, directory information in terminal command prompt


How can I allow ssh connection from an IP subnet on port 10022 using iptables?

Use the -s option of iptables. It accepts an IP of the form nnn.nnn.nnn.nnn or with a mask (nnn.nnn.nnn.nnn/nnn.nnn.nnn.nnn or nnn.nnn.nnn.nnn/nn). So to allow for example connections from nnn.nnn.nnn.* you can write

iptables -A INPUT -s nnn.nnn.nnn.0/255.255.255.0 -i em1 -p tcp --dport XXXXX -m state --state NEW,ESTABLISHED -j ACCEPT

or

iptables -A INPUT -s nnn.nnn.nnn.0/24 -i em1 -p tcp --dport XXXXX -m state --state NEW,ESTABLISHED -j ACCEPT

(see for example here for netmask calculation)

If you cannot create a netmask, then I'm afraid you will have to duplicate the rule for each of the IP addresses you want to allow to connect to your server.

In general, though, I never found working with iptables directly very nice, one can quickly loose the overview. I'd probably go for something like shorewall.


This is a known feature of the system monitor application: since 18.04 (I guess) the system monitor is no longer installed as a regular package but as a snap instead. And that snap version displays all the other loop devices needed for the other snaps. I consider this a bug. I'm not interested in dozens of technical filesystems that are deliberately 100 % in use and just distract me from the important ones.

Get rid of the snap version and install the classic package instead:

snap remove gnome-system-monitor        # no sudo required
sudo apt install gnome-system-monitor


Rip a DVD title with IFO and BUP files from the command line

When doing dvdbackup -M (-M for mirroring) I do get all the ifo and bup files. One thing to keep in mind is not to mount the device.


Yeah, Ubuntu uses X and Unity and all Ubuntu's other desktop environments sit on top it...

But I'm not sure I'd ever call them "extensions". They're just clients.

There are more modern alternatives being developed:

Mir by Canonical, and
Wayland by (seemingly) everybody else

While these might one day succeed at removing X from the default, it seems unlikely that X will be completely removed for a very long time because there will be things that just aren't happy without X (even if that means through a layer like XMir).


There's no need to manually download anything, since that package is available in the Ubuntu software repositories. (In general, it's preferable to install packages from the repositories instead of manually downloading and installing them separately, unless you have a compelling reason to do it the second way.)

Instructions:

First open a terminal window (Alt+Ctrl+T).

Now we'll make sure the "multiverse" repository is enabled. Type the following into the terminal window:

sudo apt-add-repository multiverse

And refresh the system's package lists from the Ubuntu servers by typing:

sudo apt update

Now you should be all set to install the "nvidia-modprobe" package, which can be accomplished by typing:

sudo apt install nvidia-modprobe

Note: If you are prompted for a sudo password, type your own user password for Ubuntu.

Please let me know if this was helpful or if you ran into any problems.


Run Nvidia-settings and configure the driver for your settings.  Save the settings and it will write out the xorg.conf file which will be activated on your next login.

If you need to re-install the drivers:

sudo apt-get --reinstall install nvidia-current

If nvidia-settings hasn't already been installed:

sudo apt-get install nvidia-settings

You might also try the updated drivers:

sudo apt-get install nvidia-current-updates

and to remove them again:

sudo apt-get remove nvidia-current-updates

In general a remove and install should reinstall and re-configure the modules.  You should also be able to do the same thing from 'additional drivers' if you want a GUI solution.


CPUFreq script
The is a lightweight script available.
Download and save with the filename "cpufreq.sh".
Now install zenity
sudo apt-get install zenity

Give the script execute permissions
cd ~/Downloads
chmod +x cpufreq.sh

When you want to change cpu-frequency run
~/Downloads/cpufreq.sh

Lubuntu Plugin
This is how Lubuntu/LXDE should work... however its been broken since 11.04.  Hopefully in the near future this problem is resolved and this comment can be deleted
Right-click the panel and choose...

Click the Add button...

Add CPUFreq - this will add an icon to your desktop to change CPU frequency

Note - I dont have a PC that has scalable CPU frequencies to test this applet... let me know if it works for you


It should say to you to install Ubuntu alongside Windows, but for some reason it does not.
But there is a workaround around your situation. Go to something else. Then you must know which partitions are your Windows partitions.(You will probably have a 100mb Windows system aprtition, and one or two other Windows partitions, However instead of C or D it will be called something like SDA1, SDA2, SDA3, ...)

After that you will need to make a partition for Ubuntu. You should create a partition for Ubuntu from unpartitioned space on your hard drive if possible. If not you should either shrink your existing NTFS(Windows) partitions or you should reformat one of your NTFS partition into EXT4(but this will erase all your data on that partition). Tell the program to use that partition as / .
Either way after you have created an EXT4 partition you just select that partition and tell the installer to install the system on it.

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


nvcc permission denied when building xgboost with GPU support, ubuntu 18.04

Check if you are running the command as sudo. Or else check the file permissions. Run chmod +x /usr/local/cuda/bin to get the executables access.


Maintain IP address alive even when cable not plugged

Try allow-hotplug:

auto eth0
allow-hotplug eth0
iface eth0 inet static
    address 192.168.11.168
    netmask 255.255.255.0
    gateway 192.168.11.100