Wireless network adapter not detected on start

Please open a terminal and do:

sudo su
echo ath5k >> /etc/modules
exit

Does it work now?


Problem with brightness Sony Vaio NVIDIA graphics

Im personally using Vaio VPCCW21FX (Nvidia Graphic) and Ubuntu Studio 11.10 ..
I tried many solutions and nothing could resolve my problem with LCD brightness!
Finally wrote these two perl files to manually set brightness/Contrast and Gamma functions inside Nvidia driver config file.

This will be helpfull only if you are able to change brightness within Nvidia X Server Settings

Step 1: create this file and name it "Brightness-Up.pl"
(you can use any text editing tool like : gedit,nano,vi,etc.. copy & paste)

    ### Code by forgottenrip@yahoo.com ###
    my $find1 = "0/RedBrightness=";my $find2 = "0/RedGamma=";
open FILE, "<Nvidia-Settings.cfg";
my @lines = <FILE>;
for (@lines) {
    if ($_ =~ /$find1/) { chomp $_;$value= substr($_,16,5); }
    if ($_ =~ /$find2/) { chomp $_;$value2= substr($_,11,5);}
}
my @Lines;
if ( $value > 0.0) { $value = $value - 0.30 };
if ( $value2 > 1.1) { $value2 = $value2 - 0.08 };
$last_value = $value + 0.30;
$Lines[0] ="0/RedBrightness=".$last_value;
$Lines[1] ="0/GreenBrightness=".$last_value;;
$Lines[2] ="0/BlueBrightness=".$last_value;;
$last_value = $value + 0.30;
$Lines[3] ="0/RedContrast=".$last_value;;
$Lines[4] ="0/GreenContrast=".$last_value;;
$Lines[5] ="0/BlueContrast=".$last_value;;
$last_value = $value2 + 0.08;
$Lines[6] ="0/RedGamma=".$last_value;;
$Lines[7] ="0/GreenGamma=".$last_value;;
$Lines[8] ="0/BlueGamma=".$last_value;;

$filename = "Nvidia-Settings.cfg";
open fh2,'>',$filename or die ("can't open '$filename': $! \n");
foreach ( @Lines )
{ chomp;print "$_\n";print fh2 "$_\n"; };
close fh2;
`nvidia-settings -l --config=Nvidia-Settings.cfg`;

Step 2: then make another file, name it "Brightness-Down.pl" and fill with this code:

    ### Code by forgottenrip@yahoo.com ###
    my $find1 = "0/RedBrightness=";my $find2 = "0/RedGamma=";
open FILE, "<Nvidia-Settings.cfg";
my @lines = <FILE>;
for (@lines) {
    if ($_ =~ /$find1/) {chomp $_;$value= substr($_,16,5);}
    if ($_ =~ /$find2/) {chomp $_;$value2= substr($_,11,5);}
}
my @Lines;
if ( $value < -0.80) { $value = $value + 0.30 };
if ( $value2 < 0.8) { $value2 = $value2 + 0.08 };
$last_value = $value - 0.30;
$Lines[0] ="0/RedBrightness=".$last_value;
$Lines[1] ="0/GreenBrightness=".$last_value;;
$Lines[2] ="0/BlueBrightness=".$last_value;;
$last_value = $value - 0.30;
$Lines[3] ="0/RedContrast=".$last_value;;
$Lines[4] ="0/GreenContrast=".$last_value;;
$Lines[5] ="0/BlueContrast=".$last_value;;
$last_value = $value2 - 0.08;
$Lines[6] ="0/RedGamma=".$last_value;;
$Lines[7] ="0/GreenGamma=".$last_value;;
$Lines[8] ="0/BlueGamma=".$last_value;;

$filename = "Nvidia-Settings.cfg";
open fh2,'>',$filename or die ("can't open '$filename': $! \n");
foreach ( @Lines )
{ chomp;print "$_\n";print fh2 "$_\n"; };
close fh2;
`nvidia-settings -l --config=Nvidia-Settings.cfg`;

Step 3: You need to create another file which contains Nvidia Settings..
name it "Nvidia-Settings.cfg" its important that you write name exactly same.
fill with:

0/RedBrightness=0.1
0/GreenBrightness=0.1
0/BlueBrightness=0.1
0/RedContrast=0.1
0/GreenContrast=0.1
0/BlueContrast=0.1
0/RedGamma=1.14
0/GreenGamma=1.14
0/BlueGamma=1.14

Thats it! now place these files in unique folder.. you have to bind your Function Keys to these two perl file.you can use Compiz>commands to do that.
Run below command to install the compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager

or even you can run seperately with these two commands in shell (terminal):

user$ perl Brightness/Brightness-Up.pl
user$ perl Brightness/Brightness-Down.pl

where Brightness is folder I put those files in it.


Assuming that you are in windows trying to make a bootable usb stick of Ubuntu.

Download this tool, which will help you make your usb stick a bootable one by extracting the files on the iso to the usb memory stick.

After extracting, boot up with the usb. Prior to installation, if you haven't installed Linux OS's before, please read on that.

(How to use this software are given in simple, in the above website itself).


Error in installing software from the Ubuntu Software Center

Other wise you may try as

sudo apt-get install libaacs0 libbluray1 libcddb2 libcrystalhd3 libdvbpsi7 libebml3 libiso9660-8 libmatroska5 libresid-builder0c2a libsdl-image1.2 libsdl1.2debian libsidplay2 libssh2-1 libtar0 libupnp6 libva-x11-1 libvcdinfo0 libwebp4 libxcb-keysyms1

from your terminal and then the remaining installation you can continue either from terminal or from USC, :)


Depending on your kernel version, try adding i915.lvds_downclock=1 i915.i915_enable_fbc=1 i915.i915_enable_rc6=1 i915.powersave=1 i915.semaphores=1 pcie_aspm=force in your grub.cfg, so it looks similar to:

linux   /boot/vmlinuz-3.6.0-11.dmz.1-liquorix-amd64 root=UUID=dd4d6a9c-b942-4137-97ed-ccd2ddc15530 ro  quiet i915.lvds_downclock=1 i915.i915_enable_fbc=1 i915.i915_enable_rc6=1 i915.powersave=1 i915.semaphores=1 pcie_aspm=force

I'm on Debian, so maybe looks different in Ubuntu. Also some kernel-versions run hotter, like kernel 3.7 runs 10°C hotter for me (I heard in upcoming kernel 3.8 above options aren't needed).

If there's a seperate Nvidia graphics card, checkout Bumblebee for turning it off, which also should help on temps and noise.


Is it ok to force install an 32-bit Debian Package on AMD64?

You could do it with

sudo dpkg -i --force-all [package.deb]

After that you can install needed dependencies with

sudo apt-get -f install

Note that this would probably not work because of non-installable dependencies. If the package has no dependencies or all are in Ubuntu - then it will be ok. Alternatively if you decide that you REALLY know what you are doing then you can modify the dependencies of the DEB file manually using:

wget http://sites.google.com/site/lightrush/random-1/goldscripttomodifydebpackagedependencies/videbcontrol.sh
chmod +x videbcontrol.sh
./videbcontrol.sh [package.deb]

And then force install it with the first command given above.


useradd seems to have failed in Lubuntu 12.04

Rather than the low level utility useradd on a Debian based distribution (like Lubuntu)  it is recommended to use adduser. This makes sure all defaults are installed correctly, and a user HOME is created appropriately.

Usage:

sudo adduser <username>


I was able to get sound back by reinstalling sound-theme-freedesktop and ubuntu-sounds package:

sudo aptitude reinstall sound-theme-freedesktop ubuntu-sounds

Then restart empathy, everything works.


I think, the most easiest solution was already given in the error message:

  In the first case run chkdsk /f on Windows then reboot into Windows twice.

If You have Windows, boot to it, select the partition, Right Click -> Properties -> Tools -> Check disk.

Alternatively, You can execute chkdsk /f Driveletter: after opening a command prompt with administrative privilege.


strange results with grep regular expression when used with pipe

The shell expands your * to all matching files in the current directory before grep sees it, so the command after expansion is

grep test1 test2 test3.sh

grep interprets the first argument test1 as the pattern to search for and the other arguments as the names of files to look in. The output from ls is passed as text on grep's STDIN and not as filenames, and it seems that this is ignored, since it doesn't make sense in grep's syntax after the expansion has been carried out.

Always quote your regex

$ ls | grep 'test*'
test1
test2
test3.sh


How to download Django 1.6.2 + set the path to python3?

Use pip to install Django. pip is used to install python packages from PyPI.

Since you are using Python3, install pip by running:

sudo apt-get install python3-pip

Once pip gets installed, you can install the latest version of Django for Python 3 by running:

pip3 install django

Thereafter, you can verify that it installed successfully by importing it in your Python 3 interpreter:

>>> import django
>>> print(django.getversion())
1.6.2    # Latest version as of today

You don't need to worry about installing Django to your path.. pip would take care of all those stuff for you.


There are a couple ways to do this.

You can install ubiquity and edit the code on your machine (in /usr/lib/ubiquity/*).  Then just run it and play around.  It will adjust some global machine settings, so be prepared for your language or keyboard to change as you select values.  And remember you probably don't want to repartition your hard drive as you're using it (it actually won't let you).  But you can partition a thumb drive easily enough.
You can burn a Live CD/thumb drive easily enough and run it.  During installation, you can do the same trick and edit ubiquity's files in /usr/lib/ubiquity (Alt+Ctrl+T to bring up a Terminal).  You may need to kill any existing instances of ubiquity and restart it:

sudo pkill ubiq

ubiquity --automatic # automatic because that's what the Live CD uses

You could also use a virtual machine to test, but that has always been more work than it's worth for me.  I usually just use method #1.

Those are the easiest ways.  You could also grab the Ubuntu source, edit it, build a new package, install it, and then play with it.  But you indicated you wanted to avoid that.


upgrade ubuntu and also install layer of gui on it(on server version)

Ubuntu 10.04 Server is not outdated. Actually it's supported until April 2015. To get more recent package versions you should upgrade, though, or better yet, reinstall from scratch to avoid any upgrade issues.

To upgrade, first make absolutely sure you have a good backup of everything, then execute the do-release-upgrade command and follow the instructions.

As for the GUI part, you can install it by installing the ubuntu-desktop package, or for a lighter version xubuntu-desktop.

apt-get install ubuntu-desktop

or

apt-get install xubuntu-desktop


Welp i found the culprit, i somehow fycked up my first ubuntu install by not allowing a swapping space big enough , by doing so followed a random tuto to start with the "nomodeset" in recovery mode , thus making it kinda work but only in recovery , but deactivacting the graphic card options and making it impossible for sofwares to get a proper acces to it , giving me the JavaFx bug !

As for my solve : Complete and utter format of my pc , re-burning my USB-install key,correctly installing it with a Linux Swap big enough and yea that's pretty much it !


How to delete a file from another directory in Ubuntu terminal

You just need to give the right path :)

To delete the TEST file in ~/Downloads you could use

rm ~/Downloads/TEST

that would work from anywhere in the filesystem because it is an absolute path. It is a shortened version of the full path /home/$USER/Downloads/TEST ($USER is expanded to the name of the current user) because ~ is a shortcut for the home directory, in my case /home/zanna

The relative path, from ~/Documents would be

rm ../Downloads/TEST

.. specifies the parent directory of where you are now, and Downloads is a subdirectory of that directory. But you should be extra careful when using rm with relative paths, because it is easy to make a mistake and delete something you didn't intend to!


The problem might be due to the fact that your hand accidentally touches the touchpad while typing and it clicks.
Go to System > Preferences > Mouse > Touchpad and uncheck 'Disable touchpad while typing' and 'Enable mouse clicks with touchpad'


There is a way to remove Ubuntu from the boot menu if You don't have it installed anymore.

Insert a Windows 8 / 8.1 DVD or USB device, with the Windows 8 / 8.1 installation files on it, into your computer.

Boot from the disc or USB device.

From the Windows Setup screen, tap on Next.

Tap on the Repair your computer link at the bottom of the window.

Advanced Startup Options will start, almost immediately.

The Advanced Startup Options menu in Windows 8 / 8.1 is the central fix-it location for the entire operating system.

From here you can access Windows 8 / 8.1 diagnostic and repair tools like refresh and reset Your PC, System Restore, Command Prompt, and much more.

Then choose Command Prompt

In the black screen type:

diskpart

and enter this command:

sel disk 0

Now that the first disk is selected we need to view all the partitions

list vol

Verify that the EFI partition is using the FAT32 file system then select the volume and assign a drive letter to it.

Let’s say your EFI partition is on Volume 0, the next thing you would type is:

sel vol 0

Then assign an arbitrary drive letter to the parition.  Let’s use r.

assign letter=r:

You should see a message saying:

 DiskPart successfully assigned the drive letter or mount point.

Exit the diskpart typing:

exit

You need to repair the boot record:

cd /d r:\EFI\Microsoft\Boot\

bootrec /fixboot

Now You need to recreate the Boot Configuration Data (BCD) store:

ren BCD BCD.old

bcdboot c:\Windows /l en-us /s r: /f ALL

Now You reboot and should be all set.

Source: http://windows.microsoft.com/en-us/windows-8/system-recovery-overview


Wifi stopped working after update - 18.04.4

The driver from rtlwifi_new repo doesn't build with new kernels any more.
You need to install another driver this way:
sudo apt install git dkms
git clone https://github.com/lwfinger/rtw88.git
sudo dkms add ./rtw88
sudo dkms install rtlwifi-new/0.6

This way you won't need to re-install the driver after kernel upgrades.
You need to have a network connection to install this driver. You can use your phone, or boot with a previous kernel with grub menu to have your wireless adapter working for a while.


You can't encrypt your entire Ubuntu partition with Truecrypt, it would not boot anymore. If you wish to achieve a fully encrypted Ubuntu install, then try out the alternate image, which has an option to fully encrypt your Ubuntu partition (except for /boot).

Also, I can tell from the mount points in your screenshot that you used Wubi to install Ubuntu. This is not a "proper" Ubuntu setup, since it basically resides in a file on your Windows partition. Consider re-installing Ubuntu the regular way, that is, by booting your computer from a Ubuntu live-cd/-usb.


If you have run more than one version of Maven (e.g., Maven2 & Maven3), then check your environment to make sure you aren't referencing more than one installation.

For example, having M2_HOME will cause mvn 3 not to run (note: I have installed various maven's & java's in /opt):

$ type mvn
mvn is /opt/maven3/bin/mvn

$ env | grep 'M.*HOME'
MAVEN_HOME=/opt/maven-1.1
M2_HOME=/opt/maven2

$ /opt/maven3/bin/mvn -v
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher.  Program will exit.

$ unset M2_HOME

$ /opt/maven3/bin/mvn -v
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /opt/maven3
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: /opt/java/jdk1.6.0_23/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.35-28-generic", arch: "amd64", family: "unix"


numeric keys not working after upgrading 14.04

Go to System settings >> Universal access >> Pointing and clicking

And turn off the Mouse Keys.

That should fix your problem.


Is it safe to remove old kernels after installing the latest mainline?

Yes it's safe to remove kernels you don't use. However I would check this question first for other recommended ways to remove old kernels:

How do I remove old kernel versions to clean up the boot menu?


All I needed to do was "Install" the drivers. To do that, I opened the Installer, and checked the "Install 3rd party drivers while installing".

I clicked continue, and then I waited for the drivers to install. This installed all the drivers I needed. This works on Ubuntu as well as Ubuntu MATE.


You can use wireshark to monitor and analyze network traffic.

You likely have some sort of abuse going on.  There are several posts out there about /usr/bin/hosts being abused via php like this one: https://serverfault.com/questions/705217/usr-bin-host-executed-by-hacked-php-script, several posts I came across talk about wordpress and a vulnerable plugin that was installed.


How do I specify build-dep command to grab git version 2.10

You have to add the latest ppa with the --enable-source flag (source):

sudo add-apt-repository --enable-source ppa:git-core/ppa
sudo apt-get update

You can find my fork of the full script I used on my Ubuntu 14.04 server here:

#!/usr/bin/env bash

# Clear out all previous attempts
rm -rf "/tmp/source-git/"

# Add PPA for latest git
sudo add-apt-repository --enable-source ppa:git-core/ppa
sudo apt-get update

# Get the dependencies for git, then get openssl
sudo apt-get install build-essential fakeroot dpkg-dev -y
sudo apt-get build-dep git -y
sudo apt-get install libcurl4-openssl-dev -y
mkdir -p "/tmp/source-git/"
cd "/tmp/source-git/"
apt-get source git

# We need to actually go into the git source directory
# find -type f -name "*.dsc" -exec dpkg-source -x \{\} \;
cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*")
pwd

# This is where we actually change the library from one type to the other.
sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control
# Compile time, itself, is long. Skips the tests. Do so at your own peril.
sed -i -- '/TEST\s*=\s*test/d' ./debian/rules

# Build it.
dpkg-buildpackage -rfakeroot -b -uc -us

# Install
find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;

I had previously installed git so the last command gave me an error about missing dependencies with liberror-perl, the following fixed it for me

sudo apt-get install liberror-perl
sudo apt-get -f install
find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;


How to increase reach of mouse pointer in one go?

Open System Settings > Mouse & Touchpad and under the Touchpad section adjust Pointer Speed's level


There's been no response to my question so, in desperation, I did the following - and the printer worked! (My requirements of the printer are pretty basic, it's quite possible that this procedure would fail for anyone with more complex needs.)

As the file is a system file, it is necessary to invoke sudo (I used sudo su)

Renamed the file /usr/share/cups/model/brmfc440cn.ppd as
/usr/share/cups/model/brmfc440cnOLD.ppd
Edited the new version by removing all the lines quoted in the
question
Saving the edited file as /usr/share/cups/model/brmfc440cn.ppd ie
the original file has been replaced by an edited version but a copy
of it has been saved under a new name
Via the settings windows adding the printer
Touching wood (this may not be absolutely necessary)
Print a random page from a random document.

It worked for me, perhaps it will for you.


Guide me to a dependable subtitling software that also hard-codes subtitles ('hardsubs')

You can get a pre-built binary package of Avidemux for Ubuntu 16.04 from the GetDeb repositories:

Set up the GetDeb repository.
Don't forget to update the repository list (step 5 of the link above)! Use your favourite package manager or run:

sudo apt-get update

Install the package via the link title “Install this now” on the GetDeb application page or

  Install the application manually with the following commands:

sudo apt-get install avidemux2.6-qt


Trusty is not installing programs/icons such as Dropbox on the top panel bar. Anyone know a fix?

For Dropbox type in terminal:

sudo apt-get install libappindicator1


How to remap Alt-TAB app-switching for Ubuntu-guest/OSX-host VirtualBox?

Open System Settings/Keyboard, there select the Shortcuts Tab. Now select Navigation and scroll down till you find Switch Applications. There you can select another shortcut just by typing it.


Driver igb_uio.ko is missing and is needed for openvswitch --dpdk

the kernel drivers were added on the following release of Yakkety which includes DPDK 16.07. For an example package see dpdk-igb-uio-dkms.

If you need that for Ubuntu Xenial you would have to rely on a ppa build or maybe more helpful use the Ubuntu Cloud Archive which will likely contain the DPDK as in Yakkety once released.


Personally I'd recommend DaVinci Resolve.

Although I've used Kdenlive a ton, DaVinci is really high brow and yet free.

you can download it here:

http://www.danieltufvesson.com/makeresolvedeb

after that you can run it. I suggest watching one or two videos on it's different workflow.

they kinda reinvented the workflow and you don't have to use "their" workflow, but I honestly gotta say it's better than the workflow you'll typically have under apps like kdenlive or Premiere and saves alot of time so it's worth learning.


According to womble's answer to Damaged /vmlinuz and /initrd.img symbolic links after Kernel uninstall (on Server Fault), you don't have to do anything in this situation when your boot loader is GRUB/GRUB2—which it is, here.

For some other boot loaders (at least LILO), it is/was apparently sometimes necessary to manually run the boot loader's configuration.

If you did need to tell GRUB to check for existing kernels and update its configuration, running sudo update-grub would do so. And there's no harm in running that. But it shouldn't be necessary in this case.


Is it possible to install Ubuntu and Lubuntu so that their basic programs are separate but they share programs installed after the main installation?

I know what you are talking,
ans the answer is YES. And it's simple.
I did, and here is how:

Install 'Synaptic Package Manager' (use the 'Ubuntu Software Center').
Once installed 'Synaptic', open it and type in the search field 'lubuntu' and mark for installation one of them:
lubuntu-desktop (for full options)
or
lubuntu-core (lighter)
Logout (up right corner), then select it for the next desktop you want to use (click the circle next to your username)
Done! From now on you can switch between Ubuntu/Lubuntu whenever you want - All you data preserved!

You might want to adjust a little
according to your experience level.

Enjoy!


Adding users and giving special permissions

By default the umask for users creates files with 644 permissions or rw-r--r-- which allows all users to read but only the own to write, default permissions for directory creation is 755 which is rwxr-xr-x for a directory the execute bit (x) is interpreted differently and represents permission to list the contents of said directory.

Thus you could do what you require by ensuring that the user home directories themselves are set to 755, of course users can change the permissions of files they own so each user would have the ability to make some or all of their files and directories private from other regular users if they wished.

Root of course can read and write to files regardless what permissions the owner may have set.


Some notebook keyboard keys do not work in ubuntu

For Screen Brightness

From the Terminal:

sudo gedit /etc/default/grub
amend line GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="acpi_osi=Linux"
save and exit
sudo update-grub
exit and restart machine. (Works on Acer Aspire V3-571)


Usually Firefox problems are from some Add-on misbehaving, but it could be something else too. Here are a few things to try:
Safe mode
To not load any add-ons you can try to restart in Safe Mode:

To activate Safe Mode, click the Firefox menu, point to Help, and select Restart with Add-ons Disabled. You can also enter Safe Mode by holding the Shift key while starting Firefox.
... If Safe Mode works properly, the problem is with one of your add-ons. You may want to leave Safe Mode and disable add-ons one-by-one until you identify the add-on causing the problem.

Reset Firefox

Firefox’s Reset feature will create a new profile folder, migrating
over your bookmarks, browser history, saved passwords, cookies, and
auto-fill information.
You will lose your extensions, themes, search engines, and
site-specific preferences when you reset Firefox.
To reset Firefox to its default state, open the Firefox menu, point to
Help, and select Troubleshooting Information.
Click the Reset Firefox button.

Other options

Disable Hardware Acceleration (In Preferences/Options -> Advanced tab)

Update Software (plugins / extensions / firefox itself)

Check your computer’s RAM for errors (Memtest86+ from live cd/usb boot menu)

Finally, you could try disconnecting from your internet / nework before starting the browser.
It probably shouldn't help but it might. When Firefox starts up (especially if I've cleared the cache) it will try to connect to every site I have an opened tab for. It's NOT loading each tab (doesn't do that until a tab's clicked on), but it DOES try and download the site's "favicon" (little icon that goes on the tab bar / tab) and that could take a while. Disconnectng the network gives an instant "can't connet" signal and may speed up loading.

[See this nice page with pictures for more info
[These instructions work for Firefox 28 (the current version in Ubuntu trusty's repos)]


This might help: http://people.canonical.com/~kernel/info/kernel-version-map.html

Currently the lastest out of the box ubuntu 16.04 kernels are based on 4.4.8

Ex. 4.4.0-22.39 Ubuntu-4.4.0-22.39  4.4.8

You'd likely best be served by sticking with the kernel that comes with Ubuntu.   If the AMD drivers are an issue I've heard others recommend sticking with 14.04


Ubuntu 17.04 have another settings app, just click Windows key and type "set" and start the other settings app, maybe will find more options...

About the high sensitive, should setup at settings/wacom.

About the pointer getting off, is because Ubuntu sums every display into one bigger virtual desktop, which is fixed if all other displays are turn off. To see the desktop size, at terminal "xrandr" and read the first line, then turn other displays off and "xrandr" gives the right desktop size...


Unable to connect to localhost in browser after installing XAMPP successfully

According to the output of netstat, the Apache webserver fails to open the listening port. You should download the newest version of XAMPP and follow the instructions on the site.

If XAMPP is ran with default configuration, the output  should look something like this:

whisperity@localdomain:~$ sudo netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      5235/mysqld
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      5701/httpd
tcp6       0      0 :::21                   :::*                    LISTEN      22965/proftpd: (acc


I did a test with this issue and found following:

rename firmware usal loaded:

mv /lib/firmware/iwlwifi-6000-4.ucode /lib/firmware/iwlwifi-6000-4.ucode_orig
mv /lib/firmware/iwlwifi-6000g2b-6.ucode /lib/lib/firmware/iwlwifi-6000-4.ucode

unload/load module

sudo modprobe -r iwlwifi
sudo modprobe -v  iwlwifi

Look what firmware loaded was found:

dmesg | grep iwl | grep firm

  [ 4171.852769] iwlwifi 0000:03:00.0: Driver unable to support your firmware API. Driver supports v4, firmware is v6.


How can I determine the available amount of disk space when using a charm?

On ec2, every instance gets an 8G EBS volume by default; if you need more you can specify the root-disk constraint on the service. (Note that this will only apply to new units of the service, though.)

You can't generally control where the database you deploy keeps its data -- that's up to the charm author -- but it will generally be on that root disk ;). To determine the size of the disk, you should be able to check the hardware characteristics of the deployed machine in juju status; if that data is missing on any given provider, that's a bug and we would appreciate a report.

We will be working on more sophisticated storage management for juju sometime shortly after the release of 14.04.


fatal no bootable medium ubuntu virtual machine - unable to click on optical or hard drive

Here it is, directly from the virtualbox manual

  If you have downloaded installation media from the Internet in the form of an ISO image file (most probably in the case of a Linux distribution), you would normally burn this file to an empty CD or DVD and proceed as just described. With VirtualBox however, you can skip this step and mount the ISO file directly. VirtualBox will then present this file as a CD or DVD-ROM drive to the virtual machine, much like it does with virtual hard disk images.

  [To] mount the ISO . . . directly [from a file] VirtualBox will . . . present this file as a CD or DVD-ROM drive to the virtual machine, much like it does with virtual hard disk images.

  For this case, the wizard's drop-down list contains a list of installation media that were previously used with VirtualBox.

  If your medium is not in the list (especially if you are using VirtualBox for the first time), select the small folder icon next to the drop-down list to bring up a standard file dialog, with which you can pick the image file [from the folder containing the downloaded ISO file on your hard-drive].

I would think you would go to hard drive d (if that is where the image is stored) and navigate to the iso file from the drop down menu but I've never ran virtual box on windows, only windows on virtualbox(:


How to build node.js app on raspberry pi with Ubuntu Snappy now?

I guess this is related to How to crossbuild apps for ubuntu core with snapcraft.

Note that Snappy Ubuntu Core 16.04 (still in development) have a classic dimension which enables you to directly build on the device, so you won't have cross-arch issues anymore with this.


Can you try to install curl?

apt-get install curl

Then try to rerun the Steam installer.

If that does not work then run apt-get -f install which will install any missing dependencies, and then try to rerun the steam installer.


Launcher tooltip occasionally goes missing

This is a known bug:      Bug #1034164 : [SRU Regression] Unity 5.14 + Nux 2.14: Launcher tooltips are incomplete/missing

The ppa ppa:unity-team/sru contains a fix.


Ubuntu one music showing 'unknown artist' and 'unknown album' for most songs

The part of our system that scans the track data in music files is delayed as we have lots of files to scan. This may take some time. Please let us know if you still have this problem.


three monitors, how do I know/specify which is the primary?

Settings --> Displays

If you want more advanced options

sudo apt-get install unity-tweak-tool

Lets call it an Add-on which gives you more options than setup :).


After long and arduous plodding around I finally came across CompizConfig Settings Manager, and after even more time fiddling with that I found a setting under Advanced Search > Ubuntu Unity Plugin > Launcher > Launcher Monitors, which was set to "All Displays". When I switched it to "Primary Display" it instantaneously removed the launcher on the second display, as it should.  Victory, finally!

Now I expected whatever was broken to have been fixed, but alas, if I go back to Ubuntu Tweak tool and set it to all displays, I again can't set it back to primary only, but need to again resort to the CCSM to fix.

I guess I found a bug. :/

Oh and as for the Gnome Tweak tool, it still just blinks and disappears.  I don't really care, seems CCSM can do everything both of the others should but can't do.


Plugins/Extension to Download videos (Similar to IDM)

I have never used any 3rd party programmes, browser plugins, or web services to download videos from youtube or other platforms.

Neither am I familiar with the available tools on Windows.

Finally, questions regarding "the best of..." typically result in strongly opinion-based answers of questionable value.

The good news is: youtube-dl is a working command-line tool in your repository. Please try it and decide for yourself whether it suites your needs.


Disable keyboard shortcut Ctrl+Alt+F11 (Gnome?)

This requires some manual X11 server configuration. Look in /etc/X11/xorg.conf; if it doesn't exist, you'll need to create it (type Ctrl+Alt+T to open a Terminal and run sudo -H gedit /etc/X11/xorg.conf on it) with the following contents:

Section "ServerFlags"
  Option "DontVTSwitch" "on"
EndSection

If it does exist, look for a Section "ServerFlags" and add the Option line above to it; if there isn't one, append the above lines to the file.

Source


Nautilus file share for multiple users is not working. Only owner gets access

I finally was able to solve this. Visit this page for a detailed walkthrough:

http://ubuntuforums.org/showthread.php?t=1699453&page=2

It turned out that the problem was because of a flow of permissions. I also had the same problem on another setup I did later on :) It's basically that the user lacks read permissions to the parent folder that holds the share. When setting up shares it's easiest if you set full permissions to everyone, from the directory holding the shares and onwards, and then afterwards start limiting permissions so that you don't bang your head against a silly problem like I've done several times ;)


Alternative for Google+ auto backup of image... how would I automate resize and transfer?

There is a way to install Google photos auto backup on Ubuntu (taken from here on Reddit, worked for me...)

Install google photos auto backup on Windows machine (may be a virtual PC or an ordinary PC)
Start > Run > regedit
go to HKEY_CURRENT_USER\Software\Google\Picasa\Picasa2\Preferences
Then on Menu > registry > export registry file.
It should look something like this:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Google\Picasa\Picasa2\Preferences]
"GoogleOAuth"=hex:xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,\      xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx,xx
"GoogleOAuthEmail"="youremail@gmail.com"
"GoogleOAuthServices"="mail,lh2,cp,cp.manager,mailrelay,plus.stream.write,    plus.circles.read,plus.profiles.read,plus.me,plus.media.upload,plus.media.    readonly,plus.settings,youtube,"
"GoogleOAuthVersion"=dword:00000005

Install playOnLinux. Go to configure, create a new 32-bit Windows virtual drive, call it GooglePhotosBackup. Select the new virtual drive. In wine tab > task manager > new task, select the gpautobackup_setup.exe file you've downloaded from google and install google auto backup.
Select the new virtual drive again > registry editor , then on menu > registry > import registry file > import the registry file you created earlier.
General tab > make a new shortcut from this virtual drive button and select google photos backup.exe.

Finally, run the application and you should be logged in!


I had the same problem.
The solution that worked for me :
access the BIOS when booting and disable 'SECURE BOOT'.
After that, I could install Oracle VM virtual box 5.0 without any problem.


How do I install latest Eclipse Indigo in Ubuntu 11.10

I personally install eclipse by downloading the latest version as .tar.gz from eclipse.org and extract it into my home directory ~/apps. This works quite well and allows me to update via Eclipse update feature. (Don't forget to remove the ubuntu package for eclipse)

I just need to add a menu entry to the eclipse binary: ~/app/eclipse/eclipse

No additional changes are needed it works out of the box.
Maybe this will also work for you.


why this error 'Access Denied Unable to write to /usr/local/MATLAB/R2017a/.'

You need to have the root privilege in order to write or edit a file in any directory in /usr/local/. The mentioned error occurs because you do not have root privilege and you are trying to install it in a directory other than your home folder.

A quick solution is to install MATLAB on your home directory.


How do I set up user level restrictions on a gateway?

You can use something like iptables -A OUTPUT -m owner --uid-owner 1001 to match on a local user. But this only works for users on the firewall machine.

Over the network, your firewall needs to be able to identify which user is which. Normal Internet traffic has source and destination addresses only and are not tagged with usernames, which means that your firewall cannot differentiate between different users and so cannot block different users differently.

So blocking by machine is easy, but blocking by user is non-trivial without some extra mechanism in place to differentiate users.

If you want to block website traffic, you can do this using a web proxy server such as squid. You will need to configure your firewall to block web traffic except traffic going via squid.

There are various ways to configure users so that they go through the proxy, including "web proxy auto detect" (wpad), "proxy.pac", "transparent proxying" and manually.

HTTP supports an extra proxy authentication step, and if you enable this then users will be prompted for a username and password when they attempt web access. Then squid will know who is who.

Finally, there are various solutions that plug in to squid that make decisions on what is and isn't blocked; although if you just want some specific URLs blocked then you can do this in squid directly.


This is a typical char encoding problem. . means any character. But which sequence of byte is a legal character is a matter of encoding. Dealing with text without the knowledge of the encoding is a sure failure. Your grep command probably expect UTF-8 encoded string. UTF-8 is a multibyte encoding, meaning that some char are represented by multiple bytes. However, not all sequence of bytes are valid. See, for example, the Wikipedia article on UTF-8.

When grep encounters a byte sequence that is not a valid char in the expected encoding, it cannot recognise it as a character, the line doesn't match, it's output. Since your terminal doesn't recognise the char either, you get a �.

There is a workaround in your case. Tell grep not to bother about encoding, and consider one byte as one char.

env LANG=C grep ....

or maybe

env LANG=C LC_ALL=C grep ....

You may test easily:

Create 2 files, one utf-8 encoded, one utf-16-be:

$ echo éléphant | tee file.std | iconv -f utf8 -t utf16be >file.utf16be

Check content of files:

$ cat file*
éléphant
�l�phant

Try to grep. The utf16be string is not recognised, no output:

$ grep '^.*$' file*
file.std:éléphant

Don't use encoding at all. One byte is one char. all strings are matched
the � just means the terminal doesn't recognise the utf16be sequence as a
valid utf-8 char. Note the use of -a to tell grep to consider binary is
is some text.

$ env LANG=C grep -a '^.*$' file*
file.std:éléphant
file.utf16be:�l�phant

Alternatively, if you know the encoding, then you can use iconv to first convert your file then use grep. One of the following should work.

iconv -f utf16   -t utf8 < file | grep ...
iconv -f utf16le -t utf8 < file | grep ...
iconv -f utf16be -t utf8 < file | grep ...


Batch split large FLACs to mp3 using sox or similar

Just to let you know: If you have cuesheets to those files you can split them by the information provided by the cuesheet file.

I don't know about GUI tools for this job, but I used mp3splt for such a task in the past. You could convert all those files into MP3 or Vorbis (oggsplt) and then feed them to mp3splt.

Here is an example:

$ mp3splt -rS 5 hoaxcast122_versailles.mp3
mp3splt 2.4.2 (13/05/12) - using libmp3splt 0.7.2
    Matteo Trotta <mtrotta AT users.sourceforge.net>
    Alexandru Munteanu <io_fx AT yahoo.fr>
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
 Processing file 'hoaxcast122_versailles.mp3' ...
 info: file matches the plugin 'mp3 (libmad)'
 info: found Xing or Info header. Switching to frame mode...
 info: MPEG 1 Layer 3 - 44100 Hz - Mono - FRAME MODE - Total time: 41m.01s
 info: starting 'split in equal tracks' mode
   File "hoaxcast122_versailles_00m_00s__08m_12s_39h.mp3" created
   File "hoaxcast122_versailles_08m_12s_39h__16m_24s_78h.mp3" created
   File "hoaxcast122_versailles_16m_24s_78h__24m_37s_17h.mp3" created
   File "hoaxcast122_versailles_24m_37s_17h__32m_49s_56h.mp3" created
   File "hoaxcast122_versailles_32m_49s_56h__41m_01s_94h.mp3" created
 Processed 94247 frames - Sync errors: 0
 split in equal tracks ok

The parameter r stands for trim using silence detection and S stands for split into equal time tracks or better said parts (5 in this case, which would result in 10 minutes per file in your case).

You could create a project folder containing the converted mp3 files and run the following bash script to have all .mp3 files split with the command:

for file in $(ls *.mp3); do mp3splt -rS 5 $file; done

As far as I know the files are not re-encoded, just split and re-wrapped into proper container.


@ubfan1 put me on the track: I let the steps here in case anybody needs them.
Edited sudo nano /etc/default/grub and set GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet splash". Then updated grub: sudo update-grub. In the BIOS Setup, in UEFI Boot Order > OS boot manager, Ubuntu must be first one. The reasons behind those options are explained here


This is common when installing more than one copy of linux.
Boot into any available version of linux and:

  sudo update-grub

This will rebuild the grub menu with all OSs.


"drm:[drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC6]" during install

This is a long shot, but it might be worth trying just to conclusively rule it out.

Have you tried adding the kernel option/parameter nomodeset when you boot your install media?

If you need more detail on how to do this try looking at this answer to another question.

BTW, you are not using multiple monitors, are you? If so, then perhaps try disconnecting all but one of them during the install?  (He's been there, done that. No joy.)

Perhaps try the Alternate Install?

I'm not sure if this is a "good" suggestion but, like nomodeset, it might be worth at least trying.

The description of the Alternate Install media on the Ubuntu community wiki says:
It may happen occasionally that your computer is not able to run the standard Desktop installation CD because it does not meet the hardware requirements, or the required drivers are missing from the standard LiveCD. ... The Alternate CD allows more advanced installation options which are not available with the Standard LiveCD.

The Alternate install ISO does a text mode install.

If you decide to try it you can obtain the Alternate install ISO from
the Ubuntu 12.04 LTS releases page.


Yes, but more than 1 line does not mean more than 1 NIC. Example

$ lspci | grep -i net
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716

This is 1 NIC connected to eth0:0 and eth0:1 (so 2 IP adresses) that is a PCI device(!).

There is a better command:

$ifconfig | grep Ethernet
eth0      Link encap:Ethernet  HWaddr d4:ae:52:67:58:bd
eth0:0    Link encap:Ethernet  HWaddr d4:ae:52:67:58:bd
eth0:1    Link encap:Ethernet  HWaddr d4:ae:52:67:58:bd
eth1      Link encap:Ethernet  HWaddr d4:ae:52:67:58:be
eth1:0    Link encap:Ethernet  HWaddr d4:ae:52:67:58:be

2 NICs both with more than 1 connection. "eth1" is a USB device though so not shown in the 1st command.

--- from comments ip link is even better:

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether {mac} brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether {mac} brd ff:ff:ff:ff:ff:f


How to import `mp3` files in rhythmbox music player?

open rhythmbox
click file --> add music
select folder location of your music, click Open

the list should load your mp3 file

Click "import x listed tracks" button (x is amount of mp3 files you have in the folder you choose earlier)


Why does `du` on a device reports zero usage?

Your raw devices are listed in /dev/, but that's not where the file system lives. Once the device is mounted it's available in the mount point, as listed in the "Mounted on" column.

You should run du on or somewhere in a mount point to count the usage on the file system. E.g.:

sudo du -sh /home

What you were doing is asking how much space the device listing is using in the virtual file system /dev. This is nothing, as it's purely virtual.


What does udisks-daemon do and do I need it?

Official package description for udisks:

  The udisks daemon serves as an interface to system block devices, implemented via D-Bus. It handles operations such as querying, mounting,  unmounting, formatting, or detaching storage devices such as hard disks  or USB thumb drives.

  This package also provides the udisks utility, which can be used to trigger these operations from the command line (if permitted by PolicyKit). External tools such as hdparm are used if available to implement extra operations, such as configuring disk spindown times.

  Creating or modifying file systems such as XFS, RAID, or LUKS encryption requires that the corresponding mkfs.* and admin tools are installed, such as dosfstools and mtools for VFAT, xfsprogs for XFS, or cryptsetup for LUKS.

  Do I need it?

This should be considered an essential package by almost everyone. The only time I would consider removing it is if I had a simple /dev/sdX CLI install on a machine where there was no need for udev -- i.e., the hardware never changes (which in practice almost always means a virtual machine, a VPS or a very very old machine).


Using sed:

sed 's/[^[:alpha:]]/_/g; s/[[:upper:]]/\L&/g' file.txt

This is actually two sed commands separated by ;:

s/[^[:alpha:]]/_/g transforms each non-alphabetic character into a _
s/[[:upper:]]/\L&/g converts all uppercase characters into lowercases

Example:

$ cat file.txt
fooBAr132323
SpamEgg

$ sed 's/[^[:alpha:]]/_/g; s/[[:upper:]]/\L&/g' file.txt
foobar______
spamegg


Unless you also installed the graphical front end, ndisgtk, then ndiswrapper is a command line only package. To see its options, open a terminal and run:

ndiswrapper --help

As in any command that will change your system, to install or erase a driver, prepend the command with 'sudo':

sudo ndiswrapper -i some_driver.inf

If you are having trouble, edit your question to include your details and we'll propose an answer.


Can't see Windows partition in Wubi install

You can get files and directory in windows drive (C:) under filesystem/host. Other drive/partitions should be mounted automatically (if it's not recovery partition). Maybe this topic has been discussed before in this forum.


This was my solution.

Open Nautilus via terminal with su for full root:

Using Nautilus navigate to bluetooth via file option using - var – lib - bluetooth

From Bluetooth open the 12 digit number (machine MAC address) opens up to device MAC address

Open device MAC

Opens to Info folder

Open Info – displays Linux LinkKey data - either save a copy or print screen / file or print a copy to use later in this process. It makes inputting the Linux LinkKey much easier.


How to install Gostcrypt in ubuntu 17.10

Now i understand that Veracrypt is the best way to crypt files with Ubuntu 18.04 and more. Veracrypt is trust workable app during in time. Ghostscript is really outdated. Everybody should replace ghostscript with verascript.


avdmanager throws exception when trying to run it from bash

In Android Studio, you can use cmd + ; for Mac or Ctrl + Alt + Shift + S for Windows/Linux to pull up the Project Structure dialog. In there, you can set the JDK location as well as the Android SDK location.

Add this to your .bashrc or .zshrc config so that the JAVA_HOME variable points to the Java version used by Android.


update manager Failed to download repository information+

It looks like this ppas are not on. Try to go to this links and you'll see they are offline; You may want to have java from another repository. :(


Remove or disable java due to the security issue

For Firefox,
Open Tools/Add-ons/Plugins (Keyboard shortcut is Shift+Ctrl+A) and find it on the list. Click the 'Disable' button to the right of it to disable the plugin. (Note that I've never bothered installing it so it's not present in my screenshot. If you have it installed you will see it here.)

For Chrome,
Go to chrome://plugins/. Find it in the list of plugins and click on 'Disable'. (Once again I am using Flash in my screenshot example because I never installed Java.)

Note that the Java plugin and Javascript are two different things. See here [Java.com] or here [stackoverflow.com] for an explanation of the differences.


USB speakers not working, but only for apps' sounds (19.04)

You have to set them to be the master (default) playback option.

Install pavucontrol, and start generating sound from some app.

Open pavucontrol, then in the Playback tab (source), change the output audio device (for that stream only) to the USB device.


How to rename the set of files with pattern

Try

rename -n 's/50(_.*)_8/21$1_3/' *.csv

The -n flag doesn't do any renaming. You can test patterns this way. Remove it for actually performing the renaming.


Installation fails when trying to create an EFI partition on an ASUS ux32vd (double SSD model)

I finally managed to install Ubuntu on my laptop.

The installer needed (lots of) help.

In gParted:

I removed all partitions from the RAID (/dev/mapper/isw_dadfiaad_RAID0SYS2)
I added GPT partition table to RAID (Device -> Create partition table)
Then I created a small partition (about 350MB) at the beginning of the disk and added the boot flag to it (Partition -> Manage flags)
I Created an ext4 partition (about 464GB)
I used the remaining space (about 2GB) for swap

Error messages and warnings were poping up all the time, and gParted crashed quite a few times, but eventually it worked.

During the installation I partitioned the first partition as /boot/efi and the installation was successfully completed.


Making $USER identical to whoami command output

Not sure why these would be different but you could easily fix it by putting the following line into your .bashrc file:

export USER=$(whoami)


How can I set up my DisplayLink USB video adapter without having to create and edit an Xorg.conf?

The simple answer is that with the current state of X hotplug, you can't.  If you're sufficiently motivated, my (extremely limited) understanding of the stack of work to do is as follows:

1) Test/verify XRandR support in xserver-xorg-video-displaylink
2) Add a udev rule that calls a hotplug activation script
3) Have the activation script initialise the device, and send RROutputChangeNotifyEvent to X
4) Troubleshoot the known issues with receipt of RROutputChangeNotifyEvent that makes it currently only work with certain types of hardware device (something about polling)

Once you get this far, you should be able to attach a displaylink device after X is running, and have it initialised.  Precisely how your session deals with the device as a secondary display will be an amusing source of bugs: there's lots of corner cases dealing with very small displays (some common displaylink devices are 800x480 or smaller), or with difficulties allocating sufficient VRAM (displaylink has interesting handling routines for very high-resolution displays).

BUT this isn't really complete, because you'll need to reattach it and reinitialise it each and every time you want to use it.  For a richer solution, one needs to enable hotplugging at a deeper level, which can also be used for coldplugging:

a) Implement DDC/EDID polling/handling for displaylink
b) Implement USB bus polling during X initialisation
c) Test/verify XRandR support in xorg-xserver-video-displaylink
d) Add udev hints for displaylink devices to tell X how to detect them

Depending on precisely how b) is implemented, this should also cover the hotplug case also, by sending attributes to X in the udev rules (compare to how X input hotplugging support in udev is enabled).  An added advantage of this implementation is that it likely also ends up adding support for USB display adaptors that use the sisusb driver (although that would need separate testing).

If you're actually interested in this level of implementation, I strongly advise you to carefully review wiki.x.org, and discuss this with the X developers.  Several people have looked at the problem before, but all seem to have become distracted by something else at some time in the process.

If the above is all complete, the user experience should be: Attach a device.  Install the driver.  Watch it work (no logout/login, no reboot, etc.).  Note that the user will not be prompted to install the driver on hardware detect, which is an entirely separate problem, and I think I've gone on long enough in this answer to leave that for another time.


QEMU is displayed in dpkg but I cant uninstall it

The problem was solved by first checking the exact name of the package by using

dpkg -l | grep qemu

and then running

sudo apt-get purge --auto-remove qemu-system-x86

Thanks for comments


The benefits include

security fixes (most important)
bug fixes
functionality and UI (user interface) improvements to existing
packages you have installed
access to new packages

You should, as a general rule, always keep your system up to date in order for it to function smoothly and securely.


Wine post installation errors in Ubuntu 20.04 LTS

It seems like those are not post installation errors, but more of a command input error.
Yes, the first few logs may be a little confusing when running wine -version, but they are not actually related to your command directly, and rather address the initial configuration set up of the newly installed Wine program and its errors.
Those could have happened even if you would try to run a built-in system32 program such as notepad.exe or ping.exe.
You must have also stumbled upon this prompt:

Notice the error outputs you receive when trying to execute the command wine -version again:
imon@imon-hp-probook-4410s:~$ wine –version
0009:err:module:__wine_process_init L"C:\\windows\\system32\\\2013version.exe" not found
imon@imon-hp-probook-4410s:~$ wine -version
0009:err:module:__wine_process_init L"C:\\windows\\system32\\-version.exe" not found

Wine is trying to find a program with the name -version.exe, and this is due to a wrong syntax you've typed.
From the wine manual page:
Name
wine - run Windows programs on Unix
Synopsis
wine program [arguments ... ]
wine --help
wine --version
For instructions on passing arguments to Windows programs, please see the PROGRAM/ARGUMENTS section of the man page.

Wine takes only two types of input structures: a program name and optional arguments for it, or internal wine flags which begin with the -- string: --help and --version.
To sum things up: if you would like to check your wine version, please use wine --version.


Removing a package does not delete header and library files

An installation via package manager doesn't place files in /usr/local. I assume, you have placed the files in that location. Therefore the package manager can't remove them.

To be sure, check the output of

apt-file list libopencv-dev

libopencv-dev is a meta package. List all files which will be installed during the installation of libopencv-dev:

apt-cache depends libopencv-dev | awk '{system("apt-file list "$NF)}' | less

or only the packages

apt-cache depends libopencv-dev | awk '{print $NF}'

To remove the packages use (check the output with the previous command first)

apt-cache depends libopencv-dev | awk '{system("sudo apt-get remove "$NF)}'


Open a terminal (Ctrl +Alt + T) and run the command sudo apt-get install flashplugin-installer. This will download and install flash. As a temporary solution until you fix the problem if this does not work, you can enable the YouTube HTML5 player by going to www.YouTube.com/html5 and enabling the option. This will allow you to still watch videos without having flash installed.


Samba changes file ownership! How do I get rid of that problem?

Do not use "admin users" for the file modifications, because members of this setting operate as root on the filesystem. Quoting from smb.conf man page:

  admin users (S)
  This is a list of users who will be granted
  administrative privileges on the share. This means that they will do
  all file operations as the super-user (root). You should use this
  option very carefully, as any user in this list will be able to do
  anything they like on the share, irrespective of file permissions.


To change the percentage value for warning, type:

gsettings set org.gnome.settings-daemon.plugins.power percentage-low 30

Change 30 to your desired value.
To change the percentage value for critical warning, type:

gsettings set org.gnome.settings-daemon.plugins.power percentage-critical 20

Change 20 to your desired value.
Finally, to change the value for when your laptop shuts down, type:

gsettings set org.gnome.settings-daemon.plugins.power percentage-action 15

Change 15 to your desired value.

Comment if you are having trouble with anything.


You need to say how you have configured the virtual network.

Either the host is supplying the address or, more likely in this case, you have a DCHP server supplying it.

In the latter case, firstly you need to identify the DHCP server. For home/small networks, the most common configuration is for your router to be the DHCP server.

If that is the case, now we need to know what router you are using as the settings are different for each router.

On my own Billion, for example, I have to identify the MAC address of the device who's address I want to fix. Then I need to enter this into a "fixed host" setting screen.

The virtual mac address can be found on the VM with the command nm-tool. Look for the "HW Address" (it is a list of 6 Hex double-digits). Or it can be found in the connection information box (click on the network icon in the top menu bar, select "Connection Information".

You could, as an alternative, simply reconfigure the VM with a fixed IP address. Personally I don't recommend this as it is very easy to loose track of addresses. If you do want to though, assuming this is an Ubuntu desktop, open the network settings from the icon on the top menu bar and change the IPv4 settings from "Automatic (DHCP)" to "Manual". Then enter the desired IP address, mask (usually 255.255.255.0) and default gateway (usually the IP address of your router).


Create Extended partition in the midst of two primary partition

Yes, you should be able to resize your extended partition (just sda4) to include free space on either side of it (adjacent to it), after shrinking/resizing sda3.

An extended partition can hold many other partitions, it's like a container for "more than just 4" partitions. I think if you didn't already have an extended partition you would have to delete one of the 4 existing partitions first, and then create an extended partition in the free space.

But, it appears that you already have an extended partition, so you should just need to shrink one of the partitions (sda3 as you suggest) to make more free space adjacent to the extended partition (sda4), and then resize the extended partition (sda4) to include the free space, and create another partition (inside the free space, inside the extended partition). If you're not currently running linux from (or have mounted) a partition you should be able to shrink it with gparted but if it is mounted and it's something important that won't unmount you can use gparted from a live cd/dvd/usb.

Or if you're worried about windows's files and don't want to shrink it with gparted, windows should know how to shrink its own partition if it's sda3 (though windows will undoubtedly call it something different) and leave the free space to resize the extended partition with gparted.

It's hard to read but it looks like there's a /tmp partition, that sounds like a good candidate to delete if you didn't have an extended partition and still needed to delete one, and then recreate the /tmp partition, though it might require a little recofiguring of linux/ubuntu to find /tmp again.

Almost forgot, but in the future if you wanted to avoid all this "limit of 4 partitions" nonsense you can make the first partition an extended partition using the whole disk, and create every partition as a logical partition inside the "main" extended one. I think I heard somewhere there used to be problems with dos or old windows where they had to have at least one "primary" partition, but that's probably not an issue anymore.

OR you could not use MBR (master boot record) partitioning at all, and instead use GPT (GUID Partition Table) it has a limit of 12x partitions and disk sizes up to 18EB (I don't even know what an EB is offhand, but I'm sure I don't have 18 of them ;-)


What is the "quality" of a Wi-Fi access point?

According to the documentation for Wireless Extensions, the information provided to Wireless Tools comes from /proc/net/wireless, which are more clearly defined by:

  The basic difference between Quality - link and Quality - level is that the first indicate how good the reception is (for example the percentage of correctly received packets) and the second how strong the signal is. The Quality - level is some directly measurable data that is likely to have the same signification across devices.

It appears that the Quality - link value is the one that other tools tend to reference most.

It should also be pointed out that /proc/net/wireless is apparently a clone of /proc/net/dev which provides a different output, but you could in theory calculate the difference.

Looking at the source briefly, it appears these values come from the driver. That could explain your problem with the Quality - level and Quality - noise values: your driver doesn't support Wireless Extensions, or doesn't support it well.


How to get the kernel version name from downloaded Ubuntu ISO

You can loop mount first the iso file and then the squashfs file,

Create mountpoints

sudo mkdir /mnt/lp1
sudo mkdir /mnt/lp2

Mount

sudo mount -o loop focal-desktop-amd64.iso /mnt/lp1
sudo mount -o loop /mnt/lp1/casper/filesystem.squashfs /mnt/lp2

Check for the kernel version

$ sudo find /mnt/lp2 -name "linux-image-[0-9.-]*-generic"
/mnt/lp2/usr/share/doc/linux-image-5.4.0-9-generic

My focal iso file was not downloaded today, you may find a newer kernel version.

Please note that there are several files, that belong to the kernel.


Graphic Error When Install Ubuntu 12.04 Guest on VMWare Player

It's probably Unity or some other dependency of it.  Unity is the graphical user interface for Ubuntu, and it's clearly pointing to the wrong...  Everything.

You should still be able to jump to another tty screen (another terminal interface) by using

Ctrl + Alt + F6

You can use any of F1-F6, they all have separate terminal states respectively.  Remember this utility when the GUI fails.

From the terminal, login with your username and password, then type

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop

Breakdown of commands with quick references.  If you don't know what the code is you're entering, you should always find out first, as a principal.  This promotes learning, and system stability.

"sudo" - admin command, if you run this before anything it will grant you root privileges when running the command (requires root password)

"apt-get" - this is a package manager application, use it to manage software and git repositories.  Very multifunctional.

"apt-get update" - updates the repositories and gets a list of any and all new software to be downloaded.

"apt-get install --reinstall" - full command broken down, apt-get (application), install (command to application, tells it to install a package), and --reinstall (optional command tagged to the install command.  Reinstalls the specified package)

"ubuntu-desktop" - contains many different software packages related to the Ubuntu desktop, and GUI.

EDIT

I see that comment now.  I never had a problem with virtual box, you should try it if this doesn't work.


Sinhala unicode (Wijesekara keyboard) in iBus on Ubuntu 14.04 not working

Ubuntu 14.04 LTS x86 x64 tested

Run:

sudo apt-get install fonts-lklug-sinhala ibus im-switch ibus-m17n m17n-db m17n-contrib language-pack-si-base

Logout and login (No need to reboot)
Type following command in the terminal and go to the input method tab

ibus-setup

Configure ibus settings to use Sinhala.

a. Select input method

b. Select Add

c. Select Sinhala-Sinhalese and OK

d. Click En in Top right corner of your screen.

e. Change it to Sinhala

Enjoy!


Is there any sound desk software for Ubuntu?

Have you looked at Mixxx?

To Install
Open a terminal, and enter:

  sudo add-apt-repository ppa:mixxx/mixxx
  sudo apt-get update
  sudo apt-get install mixxx libportaudio2

Or
Ubuntu also provides a version of Mixxx which can be installed directly from the Ubuntu Software Centre. This version is usually woefully out of date; therefore using the PPA is preferable maybe preferable.  You can download the PPA from here.

It might do no harm to visit the Mixxx Wiki page


It is not possible to do this really, as the Compiz animations usually use whatever they find first, and not just what is active. Unfortunately there is no way (currently) to disable the launcher, so you may have to live with it, unless you create a custom session  with Unity 2D's panel. The challenge would be activating the Dash without a launcher.

Maybe you can try Elementary OS's pantheon instead.


After upgrading to Ubuntu 13.04 from 12.10, other devices are not able to keep connection with WiFi

The proprietary Broadcom driver was the issue for me.

Go to:  System Settings -> Software and Updates -> Additional Drivers tab -> Check "do not use the device" under the Broadcom section to disable the proprietary drivers and switch to Ubuntu's open driver.  Press Apply then restart the computer.  All should be good.


I believe you have to install a previewer. Take a look here http://ubuntuhandbook.org/index.php/2015/01/enable-nautilus-file-preview-ubuntu-14-10-14-04/


Extend home without unallocated space. With swap or ntfs

It's barely possible what you want to achieve and not worth effort.

In your case, I would consider mounting NTFS partition in Linux, so that its content would be visible under some folder on linux, like /home//Desktop/NTFS.
This Ubuntu page might be valuable for you to read and follow:

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


High Power Consumption and Wakeups on my Asus X54H

12.04 is still in Beta. Just today I received 120 updates so that means that 12.04 is not for production/working environment yet (Although it might look stable enough). So you will have to wait for the final release of 12.04 to test your problem again. For me, I also installed Jupiter and that is when all battery problems started. I had to removed the battery and wait about 15 minutes. Then connected the battery again and test it.


I found a command line method that works as well.  I didn't try Furius ISO as I didn't want to install a program just to mount .IMG files and I also didn't want to run any GTK software on my Qt/KDE system.

First you need add the .img file if it is a full disk like mine was.

sudo losetup -f -P imageFileName.img

Then you need to figure out what loop back device it was mounted as.

lsblk -f

After you figure out which partition you want to mount specifically you use this command.  The /dev/loop0p7 is going to be your partition name.

sudo mount /dev/loop0p7 /mnt/

I am not sure if this information changes, but you could easily put this into a script if you needed to.

I should also add that once you do this, you get an entry in Dolphin.


I've found a workaround:

LC_CTYPE=en_US.UTF-8 gramps


Using the Ubuntu CD (Recommended)

Insert your Ubuntu CD, reboot your computer and set it to boot from CD in the BIOS boot into a live session. You can also use a LiveUSB if you have created one in the past.

Install and run Boot-Repair
Click "Recommended Repair".
Now reboot your system. The usual GRUB boot menu should appear.
If it does not,hold Left Shift while booting.
You will be able to choose between Ubuntu and Windows.

For further help see
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows.


Wireless Network Adapter unclaimed if other netwerk is active

I encountered a similar issue after updating my kernel. Per lsmod, the ath10k_pci module isn't getting loaded automatically at startup. A workaround is to load it manually with modprobe ath10k_pci, which at least gets the adapter running.

I'm not sure why the module isn't loaded automatically. It's not blacklisted in /etc/modprobe.d/*, and it didn't help to add it and its dependencies to /etc/modules. Its modalias in /sys does correctly match one of the regexp's returned by modinfo ath10k_pci.


How to create an alias that will open file in Brackets?

If I understand your question correctly, your first step should be to install brackets. To do this, have a look at this tutorial.

Here are the commands you need:

sudo add-apt-repository ppa:webupd8team/brackets
sudo apt-get update
sudo apt-get install brackets

Then you should be able to open a file by typing brackets myFile.txt in your terminal.

As your talking about "alias" in your question:

You can define an alias like alias newCommand='command to execute'. So using alias gedit='brackets' will run brackets myFile.txt when you typed gedit myFile.txt. To make this permanent, you have to add the line to your .bashrc.


Ok so after 4 days of fighting this I found an answer. I inserted the [arch=64] in front of the lines in the sources.list file. This caused apt to properly process the repo and move files where they needed to be. Wow this was painful.

I had thought that since this was a 64 bit OS it would be smart enough to process the repo for what it needed. Additionally I am not replicating the binary portions of the repo as I will not be recompiling anything.


Will installing Xubuntu wipe the whole HDD?

Installing Xubuntu Alongside Windows

No. Xubuntu WILL NOT OVERWRITE Windows when you choose the appropriate option.

When you reach this screen (see below), select Install Xubuntu Alongside [OS].

Should I Add/Use Swap?

Since you mentioned CAD, I would suggest you add 4GB - 8GB of swap, just to be on the safe side. CAD can consume a lot of memory. :)

Should I enable LVM Encryption?

If you want to be more secure, yes. This essentially encrypts your Xubuntu installation. However, a small drawback to this encryption is that you have to remember yet another password and input it every time your machine boots.


Unable to install Kompozer in Ubuntu 16.04

Install the same packages you tried to install before except for libidl0. Open the terminal and type:
Ubuntu 16.04
sudo apt install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++-5-dev libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g

32-Bit:
 wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-data_0.8%7Eb3.dfsg.1-0.1ubuntu2_all.deb
 wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer_0.8%7Eb3.dfsg.1-0.1ubuntu2_i386.deb
 wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_i386.deb
 sudo apt install ./libidl0_0.8.14-1_i386.deb
 sudo apt install ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
 sudo apt install ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_i386.deb

64-Bit:
 wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-data_0.8%7Eb3.dfsg.1-0.1ubuntu2_all.deb
 wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer_0.8%7Eb3.dfsg.1-0.1ubuntu2_amd64.deb
 wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_amd64.deb
 sudo apt install ./libidl0_0.8.14-1_amd64.deb
 sudo apt install ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
 sudo apt install ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb

Ubuntu 18.04-19.04
sudo apt install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++-6-dev libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g

32-Bit:
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-data_0.8%7Eb3.dfsg.1-0.1ubuntu2_all.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer_0.8%7Eb3.dfsg.1-0.1ubuntu2_i386.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_i386.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libpng12-0_1.2.54-1ubuntu1_i386.deb
sudo apt install ./libidl0_0.8.14-1_i386.deb
sudo apt install ./libpng12-0_1.2.54-1ubuntu1_i386.deb
sudo apt install ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
sudo apt install ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_i386.deb

64-Bit:
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-data_0.8%7Eb3.dfsg.1-0.1ubuntu2_all.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer_0.8%7Eb3.dfsg.1-0.1ubuntu2_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo apt install ./libidl0_0.8.14-1_amd64.deb
sudo apt install ./libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo apt install ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb
sudo apt install ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb

Ubuntu 19.10-20.04
sudo apt install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++-7-dev libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer-data_0.8%7Eb3.dfsg.1-0.1ubuntu2_all.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/kompozer_0.8%7Eb3.dfsg.1-0.1ubuntu2_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libidl0_0.8.14-1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libpng12-0_1.2.54-1ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb
sudo apt install ./libidl0_0.8.14-1_amd64.deb ./libpng12-0_1.2.54-1ubuntu1_amd64.deb ./kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb ./kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb ./multiarch-support_2.27-3ubuntu1.2_amd64.deb


`gedit` assertion failure `GTK_IS_TREE_SELECTION (selection)`

A bug report was filled about that:

Assertion failure when closing 'preferences' dialogue in gedit 3.4.1


Re-install and keep home partition with btrfs - lost files

your files are still there since you don't format the partition that contains that your home files.

But they don't appear since the partition is not mounted so what you need to do is to mount the old partition.

mkdir /media/old_partition

sudo mount -t btrfs /dev/sdXX /media/old_partition

Replace XX with number of hdd and partition number that contains your /home


You had to provide the errors verbatim, so we would have something to speak about. For now, I say you just should do a chroot into your system and reinstall lubuntu package again.


What to do when my Wubi install boots to a command line environment?

You need to get to your desktop environment. Type:

sudo start lightdm

Press Enter. You will be prompted to enter your user password. This should bring up your normal login screen that you use to login to your desktop environment.

In Ubuntu 15.04 and later, run this command instead:

systemctl start lightdm.service

If this works you should ask yourself why your computer didn't boot straight into your normal login screen. Possibly because you haven't installed the recommended driver for your graphics processor from System Settings -> Additional Drivers for Ubuntu 12.04 and Ubuntu 12.10 or Dash -> Software & Updates -> Additional Drivers tab for Ubuntu 13.04 and Ubuntu 13.10.


How to move my files from Windows Vista to Ubuntu as I have both on my pc and I want to remove vista?

Normally your Windows partitions are automatically mounted at startup of Ubuntu, and you can easily transfer files between Windows and Ubuntu, but if anything goes wrong, don't panic, you can make through this way:

Find the disk drivers

First of all, you have to find your windows' partitions, to do so, run this command:

fdisk -l

it gives you a list of partitions available, windows' partitions are NTFS formatted, find the partition you want to transfer files from, let's say it's /dev/sda3 for example.

Check if the partition is mounted

Now you have see if the partition you want to transfer files from is mounted or not, to do so, run this command and replace /dev/sda3 with the one you found:

mount | grep /dev/sda3

if any result comes out, it's mounted and you know where it is mounted, for example my result was:

/dev/sda3 on /media/mahdi/Gamez type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)

If the partition wasn't mounted and your mount | grep /dev/sda3 gave no result, mount the drive to a folder, it can be any empty folder you want!

For example you can make a folder called "windows" and mount the windows partition on it this way:

mkdir /media/windows
mount /dev/sda3 /media/windows

Transfer Files

The easiest step, uh. Just copy the files from the mounted partition to your Ubuntu partitions and there ya go!


How can i transfer data between two computers using Ethernet cable and FTP software like(gFtp)?

In order to establish a connection between the two machines using an Ethernet cable, both machines need a static IP of which are on the same IP Subnet.

1. Grab an ethernet cable, and attach it to the primary machine's ethernet port, take the other side of the cable and plug it into the secondary machine's ethernet port.

2. Identify your ethernet interfaces on each computer, it should be either eth0 or something like enp3s0. Take note of those interface names because we're going to need them later. You can do this by simply entering, sudo ifconfig

3. On the primary machine... run this command in your terminal/command line: sudo ifconfig eth0 10.0.0.1 (replace eth0 with the primary machine's ethernet interface.)

4. On the secondary machine... run this command in its terminal/command line: sudo ifconfig eth0 10.0.0.2 (replace eth0 with the second machine's ethernet interface.)

5. Now... The two computers should be able to communicate with each other. You can test this by entering the command, on your primary machine, ping 10.0.0.2 -c 2 ... If you see "64 bytes from 10.0.0.2..." then the communication is working.

6. Connect to the secondary machine (IP Address: 10.0.0.2) using your FTP client... I'm assuming that you have already set up the FTP server on your secondary machine.

If these steps are unsuccessful please be sure to reply to me. The amazing part about this is the ability to configure a DHCP server to automatically assign an IP address to your secondary machine, but this is  complicated.


Problem with smbclient -L command - Ubuntu 14.04

After your -U you need to put in the username you want to log in with.

So the command would be:

smbclient -L dc1.weemaniac.net -U administrator


is this best partition for ubuntu server?

I would advise making the following changes:
Use your SSD for the OS

You have tons of hard drive space with your HDDs. Therefore, I would use the entire SSD for your / partition.
Also, I would move your swapdrive off of the SSD because, well, SSDs aren't the best for swapping.
Similarly, I would move your /tmp folder off of the SSD.

Set Up LVM

You have six hard drives available. Set up a LVM system spanning the six full HDDs. This will act similar to a RAID, but will offer you slightly better performance and will allow you to define more partitions faster. All in all, LVM is a Good Thing™.
If you want to use a RAID-like striping setup, there are ways to do that, but they're not the simplest. However, I'm guessing that you're using RAID as a form of backup. This is a very very very bad idea. RAID has never been and will never be a replacement to backing up.
On your LVM system, I would create a 16GB swap partition. From there, assign another 100GB to /tmp so you can have a reliable tempdriver without murdering your SSD. Send the rest to your /home partition, or even better, a specific partition for storing files (maybe /files?).


All the Application are gone from the Dash Home

Try moving ~/.local/share/zeitgeist to ~/.local/share/zeitgeist.bak.

Open the terminal (Ctrl + Alt + T) and run the following command:

mv ~/.local/share/zeitgeist ~/.local/share/zeitgeist.bak

Then run:

kill -s TERM `pidof /usr/lib/unity-lens-applications/unity-applications-daemon`


What is the purpose of grub-common.service?

As you can see from the source https://github.com/JoliOS/grub2/blob/1efdfd9afceeb08661a5ae0565b3651fdf180601/debian/grub-common.init
it records successful boot for GRUB.

# Description:       GRUB displays the boot menu at the next boot if it
#                    believes that the previous boot failed. This script
#                    informs it that the system booted successfully.

Also if $VERBOSE is set (non silent mode, I assume), it logs it's actions.

So in theory if you disable this service, every time you restart your machine, grub menu will popup. Of course you can set up appropriate timeouts in /etc/default/grub. Beware, if you set up too low timeouts you might end up in the situation with cycling reboot and overgrowing logs, which cannot be rotated or archived.

Be sure you have liveCD just in case.


how to build and configure kernel and file system for UML in Ubuntu 11.10?

The ubuntu wiki page is here.  All the referenced packages still exist.


The Swap total given by free reflects the swap space configured on your system, which is the amount of space that the system can use on disk if the amount of RAM is insufficient. An overview on swap can be found at https://help.ubuntu.com/community/SwapFaq.

In the output you posted we can see that none of the swap is actually used, which means that the system has enough available RAM and doesn't need to page out any data to the swap space on the disk.

Reducing the available swap space won't help with any performance issues, it would just free up some more disk space.

The free output doesn't show any lack of RAM on your system, you have 1397 MB available for programs to use. I would guess that the problem lies either in CPU power or in networking issues. You could try to run top while the Minecraft server is running and post the content of the %Cpu(s) line to determine whether the CPU is the cause for the lag.


If you are using Unity it is not possible to add icons to the top panel. Only to the Unity side launcher.

At login you may choose the Gnome interface and there you will be able to add icons to the top panel.


Shortcut keys on Acer CB3-111-670 Chromebook running Ubuntu 15.10 not working

On a laptop keyboard the very top left key is often esc. Followed by f1, f2, etc.

Also the labeled shorcuts on the keys may not be the same in Ubuntu vs ChromeOS. Unless they are hardware shortcuts ubuntu likely only sees them as f-keys.

It may be possible with the help of other software to remap those keys to the shortcuts you want. For example https://apps.ubuntu.com/cat/applications/precise/autokey-gtk/.


Everything but ssh does not connect over the internet

You were very close with your /etc/network/interfaces configuration.

It should have been something like this:

iface eth0 inet static
        address 192.168.1.3
        network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8 8.8.4.4

The nameservers <ip> syntax is if you go the resolvconf route instead.
(See https://askubuntu.com/a/51332/9308 for the details on that route.) It sounds like you got it for the most part on your own though and it is working.


swap between windows in ubuntu aka multiple work spaces(like swaping between app pages in android and iOS)

Yes, this is indeed possible.
Open System Settings from the menu in the top right corner. Double click on 'Appearance' click on the 'Behaviour' tab, and then check the 'Enable workspaces' checkbox.


utorrent is not working after reboot in ubuntu 16.04

Its probably because the service is not running.

Try starting it again with

utserver -settingspath /opt/utorrent-server-alpha-v3_3/ &


The inotify_rm_watch you refer to is the API (C-function) you would use when writing a "real" program (in C or something similar), not a script. So it doesn't apply to your situation.

If you want to stop inotifywait you can do it as with any other program:

Either issue ps -ef | grep inotifywait, pick the PID (in your example presumably 7341) and then send it a signal:

kill 7341
Or use the convenience script killall which kills all programs with a given name. killall is usually installed by default.

killall inotifywait


Apache2 subdomain doesn't load content (mirrors main domain)

Apache loads things alphabetically so, if the subdomain config is after the main domain, there is a good chance that requests to the subdomain are being incorrectly routed to the primary. Generally what I do with Apache is have the primary site last in a list of config files. For example:
/etc/apache/sites-enabled$ ll

drwxr-xr-x 2 root root 4096  2月  3 16:33 ./
drwxr-xr-x 8 root root 4096  1月 22 13:07 ../
lrwxrwxrwx 1 root root   34  1月 28 21:49 002-subdomain1.conf -> ../sites-available/002-subdomain1.conf
lrwxrwxrwx 1 root root   33  2月  3 16:33 003-subdomain2.conf -> ../sites-available/003-subdomain2.conf
lrwxrwxrwx 1 root root   32  1月 22 17:39 999-primary.conf -> ../sites-available/999-primary.conf

Each of the config files contain both a ServerName and ServerAlais line with wildcards where appropriate. This means a Subdomain .conf file might look something like this:
<VirtualHost *:80>
        ServerAdmin my@email.address
        DocumentRoot /var/www/subdomain1/html

        ServerName sub1.domain.com
        ServerAlias sub1.domain.com *.sub1.domain.com
        DirectoryIndex index.php index.html

        ErrorLog ${APACHE_LOG_DIR}/subdomain1-error.log
        CustomLog ${APACHE_LOG_DIR}/subdomain1-access.log combined
</VirtualHost>

<VirtualHost *:443>...</VirtualHost>

<Directory /var/www/subdomain1/html>
        Options FollowSymLinks
        AllowOverride All

        Order Allow,Deny
        Allow From All
</Directory>

The primary (and default) site, would have a .conf file that looks similar, but with a broader list in ServerAlias to catch any unexpected traffic:
        ServerAlias domain.com *.domain.com *.*

This has worked quite well over the years


How do I create an alias that displays the contents of a `history list`?

Fairly simple. Just run the following in a terminal:

echo 'alias cet103demo="history | more"' >> ~/.bash_aliases
source ~/.bash_aliases
cet103demo  # to test

You'll only have to run these once to remove it, you'll just need to edit ~/.bash_aliases (it'll be the last line).


Ubuntu 15.04 first use, not able to start using because unable to swipe

Given that the version 15.04 is not officially released yet (it is still an alpha, with a few bugs to be fixed), you should use one that is supported by now. Visit http://www.ubuntu.com/download/desktop (despite being a "desktop" version, it will work on your laptop - the desktop is the end-user version, contrary to the server version, that is made to work in servers, primarily). There you will find the option to download the 14.04 (supported until 2015) or 14.10 (supported until July). When the 15.04 is officially released, you will be able to upgrade form your version 14.xx to the stable 15.04 easily through System > Administration > Update Manager .


How do I remove my Windows 7 setup from a Windows/Ubuntu dual-boot?

A couple ways you could take a copy of all your files (from your Windows OS) and put them onto a separate disk (USB/DVD/CD/External HD) then remove Windows, by using Gparted in Ubuntu and format the partition that is formatted as 'NTFS'. You can then resize your Linux partition using Gparted as well.

Once you have your partitions you would then open your terminal Ctrl+Alt+T.

Type in: sudo update-grub to make sure your bootloader removes Windows from the menu

You could also copy directly from the Windows partition by mounting it  as well. This may be more advanced. But a GUI (graphical) program to do a lot of this is Disk Utility. (If you have a Mac it is pretty much the same program there as well)


If you are able to run it in a terminal then the chances are, it's running just fine when you double click it.  However, since your program probably doesn't create it's own window, the output is likely just not being displayed.

Try the following:

Create a program that writes output to a file in tmp
Run the program from a terminal to see that it does create the file
Delete the file it created
Check that the file no longer exists
Double click the program to run it
See if it created the file

If you see a file created after double clicking, then your application did run.

If your program doesn't create a gui of it's own, you may be able to make a shortcut for it and tell that shortcut to the run the command in a terminal.  Which, in retrospect, is exactly the process that user3113723 is describing...


This is a known bug.

Please add yourself to Bug #1605189 to have your voice heard (the green writing near the top of the bug's page).

You can find a workaround in another question, but for me, it prevents me from using the computer when waking from suspend :(


Using “while read…”,echo and printf get different outcomes

It's not just echo vs printf

First, let's understand what happens with read a b c part. read will perform word-splitting based on the default value of IFS variable which is space-tab-newline, and fit everything based on that. If there's more input than the variables to hold it, it will fit splitted parts into first variables, and what can't be fitted - will go into last. Here's what I mean:

bash-4.3$ read a b c <<< "one two three four"
bash-4.3$ echo $a
one
bash-4.3$ echo $b
two
bash-4.3$ echo $c
three four

This is  exactly how it is described in bash's manual (see the quote at the end of the answer).

In your case what happens is that, 1 and 2 fit into a and b variables, and c takes everything else, which is 3 4 5 6.

What you also will see a lot of times is that people use while IFS= read -r line; do ... ; done < input.txt to read text files line by line. Again, IFS= is here for a reason to control word-splitting, or more specifically - disable it, and read a single line of text into a variable. If it wasn't there, read would be trying to fit each individual word into line variable. But that's another story, which I encourage you to study later, since while IFS= read -r variable is a very frequently used structure.

echo vs printf behavior

echo does what you'd expect here. It displays your variables exactly as read has arranged them. This has been already demonstrated in previous discussion.

printf is very special, because it will keep on fitting variables into format string until all of them are exhausted. So when you do printf "%d, %d, %d \n" $a $b $c printf sees format string with 3 decimals, but there's more arguments than 3 (because your variables actually expand to individual 1,2,3,4,5,6). This may sound confusing, but exists for a reason as improved behavior from what the real printf() function does in C language.

What you also did here that affects the output is that your variables are not quoted, which allows the shell ( not printf ) to break down variables into 6 separate items. Compare this with quoting:

bash-4.3$ read a b c <<< "1 2 3 4"
bash-4.3$ printf "%d %d %d\n" "$a" "$b" "$c"
bash: printf: 3 4: invalid number
1 2 3

Exactly because $c variable is quoted, it is now recognized as one whole string, 3 4, and it doesn't fit the %d format, which is just a single integer

Now do the same without quoting:

bash-4.3$ printf "%d %d %d\n" $a $b $c
1 2 3
4 0 0

printf again says: "OK, you have 6 items there but format shows only 3, so I'll keep fitting stuff and leaving blank whatever I cannot match to actual input from user".

And in all these cases you don't have to take my word for it. Just run strace -e trace=execve and see for yourself what does the command actually "see":

bash-4.3$ strace -e trace=execve printf "%d %d %d\n" $a $b $c
execve("/usr/bin/printf", ["printf", "%d %d %d\\n", "1", "2", "3", "4"], [/* 80 vars */]) = 0
1 2 3
4 0 0
+++ exited with 0 +++

bash-4.3$ strace -e trace=execve printf "%d %d %d\n" "$a" "$b" "$c"
execve("/usr/bin/printf", ["printf", "%d %d %d\\n", "1", "2", "3 4"], [/* 80 vars */]) = 0
1 2 printf: ‘3 4’: value not completely converted
3
+++ exited with 1 +++

Additional notes

As Charles Duffy properly pointed out in the comments,bash has its own built-in printf, which is what you're using in your command, strace will actually call /usr/bin/printf version, not shell's version. Aside from minor differences, for our interest in this particular question the standard format specifiers are the same and behavior is the same.

What also should be kept in mind is that printf syntax is far more portable ( and therefore preferred ) than echo, not to mention that the syntax is more familiar to C or any C-like language that has printf() function in it. See this excellent answer by terdon on the subject of printf vs echo.  While you can make the output tailored to your specific shell on your specific version of Ubuntu, if you are going to be porting scripts across different systems, you probably should prefer printf rather than echo.  Maybe you're a beginner system administrator working with Ubuntu and CentOS machines, or maybe even FreeBSD - who knows - so in such cases you will have to make choices.

Quote from bash manual, SHELL BUILTIN COMMANDS section

  read [-ers] [-a aname] [-d delim] [-i text] [-n nchars] [-N nchars]
  [-p prompt] [-t timeout] [-u fd] [name ...]

  One line is read from the standard input, or from the file descriptor fd supplied as an argument to the -u  option,  and  the
  first
            word is assigned to the first name, the second word to the second name, and so on, with leftover words and their intervening
  separa‐
            tors assigned to the last name.  If there are fewer words read from the input stream than names, the remaining  names  are
  assigned
            empty  values.   The  characters  in  IFS  are  used  to split the line into words using the same rules the shell uses for
  expansion
            (described above under Word Splitting).


I also had this problem and I checked a lot and it seems that Kubuntu and Chromium browsers dont support emoji like windows
but you can install emoji execution on your browser.


Where to make feature requests for the Ubuntu MATE Team

I'm pretty sure the best place to take your request is the Ubuntu MATE community forum, specifically the feedback thread. There are a lot of feature requests there.

Meanwhile, you know you can tell Welcome not to open by unchecking the box bottom right of it Open Welcome when I Log On:

You'll never see it again :)

Don't try to remove it with apt though:

$ sudo apt remove ubuntu-mate-welcome -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
  ubuntu-mate-desktop ubuntu-mate-welcome
        ^^^


How to format/partition new hdd for Windows?

I had two separate problems:

This particular disk (western digital caviar blue 1tb) uses a different block size, and the disk utility was adding the wrong offset at the beginning of the partition. So I installed gparted, created the partition with it (I used NTFS by the way), and it worked fine.
Windows won't install itself unless the target partition is in a disk that is set to boot up first, and it won't tell you why either.

Now I only need to add Windows to grub so I can use both OS.


Spanning gnome-panel across dual monitors

I have done this but only by accident. It's not something I would recommend.

You can, however just add another panel (right click an existing panel and click New Panel) and drag it onto the new screen (might need to hold alt to drag it).

I have two panels that sit side-by-side over two monitors and they look like a single strip.

Actually I remember how I did this before. I turned Xinerama on (I think, might be off). X and the window manager will stop doing monitor detection and will treat the whole screen as one big thing. The side effect of this is all window-maximise actions will span both screens.

Just having two panels is much cleaner, IMO. But if you want to do this, add this to your /etc/X11/xorg.conf. I assume you're using the nvidia driver so you should have one of these.

Section "ServerFlags"
    Option         "Xinerama" "on"
EndSection


How to prevent a partition from being mounted [by dolphin]?

Create a udev rules to ignore that hard drive.

Check drive serial number, using Disks utility (GUI)

or using CLI:

udevadm info --attribute-walk --name=/dev/sdb

Write a rule files

sudo nano /etc/udev/rules.d/90-hide-disks.rules

ATTRS{serial}=="0000000000", ENV{UDISKS_IGNORE}="1"

Replace 0000000000 with real drive serial number
Reload/Trigger the new rules

sudo udevadm control --reload-rules
sudo udevadm trigger

References:

Hide Your Disks Or Partitions From Nautilus (Quiet old)
How to reload udev rules without reboot?
How to Write udev Rules for USB Devices
man udevadm & udevadm -h