How to enable virtualization on booting? (Ubuntu 13.10)

Oh yes I got it. Here's how to enable Virtualization

  TRY AT YOUR OWN RISK. Booting can be really dangerous to your system unless done correctly. Your HDD might get corrupted or OS deleted!

Steps -

During startup, quickly press F12 or F2
Click on setup.
Using arrows, navigate to Intel Virtualization Technology. (It might on the next page)
If it's disabled, then enable it using arrow and enter key.
List item
You'll find "Save and Exit" written on top right corner of the screen. Using mouse, click on it and your PC will restart. If it doesn't, then you have to manually do it.

And you're DONE!


No Title Bar button to close window Ubuntu 18.04

Your window-control button layout doesn't look right. Run the following command in Terminal to reset it

gsettings reset org.gnome.desktop.wm.preferences button-layout

This should fix the problem. If it doesn't work, then set a suitable button layout manually. For example run the following command

gsettings set org.gnome.desktop.wm.preferences button-layout :minimize,maximize,close

to get the minimize, maximize, close buttons (in this order) at the right end of the title-bar.

Alternatively to get the close, minimize, maximize buttons (in this order) at the left end of the title-bar, run

gsettings set org.gnome.desktop.wm.preferences button-layout close,minimize,maximize:

and so on.


Login loop after installing Nvidia drivers on Ubuntu 14.04

Install the NVIDIA drivers in a different way.
I assume you have a GEFORCE 400 or newer.

Step 1 : Remove the currently installed NVIDIA software.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password, then execute :

sudo apt-get purge nvidia*
sudo reboot

Step 2 : Install NVIDIA drivers from Ubuntu repositories.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password, then execute :

sudo apt-get update
sudo apt-get install nvidia-352
sudo reboot

Now adding a boot parameter is not necessary anymore.


I have a problem putting my camera in VirtualBox

You need to use the VirtualBox webcam passthrough feature..
To use this you will need to have virtualbox tools installed in your virtual guest instances.
https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/webcam-passthrough.html


How to copy pictures/photo to Ipad 1 with usb

As a solution you can start FTP server on your ubuntu, install some ftp client on your IPad and connect to ubuntu from IPad through ftp.


When your computer turns on, it should start at a screen that has your computer's brand logo. At that screen, before windows starts to load, hit F12 rapidly. It should take you to a screen where you can select where to boot from. If F12 doesn't do anything, try F2.


Digital Audio Workstation: alternatives to Logic Pro or Cubase for Ubuntu?

Ardour is what you are looking for.

You can install it easily from Ubuntu Software Center (shortcut link: ardour ), or by running sudo apt-get install ardour.

Does it suit your needs? I guess so.

Routing MIDI signal - yes, this is definitely possible, you can also easily route audio between applications and hardware sources/outlets. If you are looking for advanced MIDI features, like recording and editing, you may want to try out Ardour3, which is in Beta phase, and available to try at Ardour website.
Recording Line In audio - Works perfectly! You can record unlimited number of channels, route them through effects and process them however you wish.
Editing, combining, processing tracks - That's what Ardour was designed to, and it does it has wide possibilities in this matter. It provides both simple tricks like mixing, moving, transposing tracks, as well as advanced signal processing tools. You should see yourself if there is everything you need, but I believe it is so.

I think it is also worth to mention that Ardour is probably the most acclaimed and recognised DAW for Linux, which is why you should at least try it.

Of course it has many other features you may enjoy, either find a list of them at the website, or install it and give it a go :-)


phpmyadmin in ubuntu 14.04 downloads a file instead of opening login page

Maybe php isn't enabled yet. Try the following command:

sudo a2enmod php5

This guide also discusses troubleshooting phpmyadmin. It is referring to a 404 error opening http://localhost/phpmyadmin but this might still apply here:

$ gksudo gedit /etc/apache2/apache2.conf

  Include the following line at the bottom of the file, save and quit.

Include /etc/phpmyadmin/apache.conf


sudo uses your user's password, it is the same you enter when logging in.
You can try changing your password with passwd.


ubuntu 12.04LTS libvirt no conenction driver available

In my case the libvirt daemon was not started.

sudo start libvirt-bin

did the trick.
Also check your /etc/default/libvirt-bin if start_libvirtd is set to "yes"

if it is you'll get additional info in the log
/var/log/libvirt/libvirtd.log

finally if not root you user needs to be in the libvirt group and possibly in the kvm group. Once added you'll at least need to logoff/logon to take this new membership into account.


White screen (with and without black lines) after a boot

My solution to this turned out to be the next:

Wait for the next update of the Linux kernel and until that use the previous working Linux kernel, selecting it from the Grub load menu, which one can access by pressing the Shift key during the computer's boot.

With the next update of the kernel the issue has gone in my case.


Editing Folder permissions for var/www/html

You should not change the permissions and you should not use a command from which you do not know what it does and what impact it has.

Copy the file using the terminal with proper access privileges:

sudo cp /path/to/your/phpinfo.php /var/www/html

And the following access rights should be enough for phpinfo.php

sudo chmod 640 /path/to/your/phpinfo.php


Power button shuts down computer without asking for confirmation?

I had the same problem with 13.10.I just removed the last line from /etc/acpi/powerbtn.sh and I got the the confirmation screen back.


I would recommend if you already updated the system with the latest packages (And also installed the proprietary drivers for your video card if it applies) installing powertop:

sudo apt-get install powertop

Then run it from a terminal like so: sudo powertop

It will show you what is using so much power. If you press the right arrow key and go to the last option called "Tunables" it should show you what optimizations you can do to lower the temperature.

Aside from powertop, there are also a couple of others like Jupiter and TLP. But those are better explained in this post: Is system cleanup/optimization needed


Can the same MATLAB Setup be used to install software on Windows as well as Linux?

No, that is not possible.

The 2 systems are fundamentally different and the contents of both installers therefor are not the same.


To make the notification work properly on the primary monitor. You may need to update the scema-key notifyosd under com.canonical
Open a terminal and use the command below:
gsettings set com.canonical.notify-osd multihead-mode "focus-follow"

or alternatively, if you have dconf-tools installed then :-

Open dconf-editor and

Navigate to apps → notify-osd → multihead-mode and change the value to focus-follow.
By setting this you can make the notification bubble appear on the display which currently has focus.

To have dconf-editor, use command sudo apt-get install dconf-tools in a terminal or click the link here → dconf-tools .


Is window opacity for Mono forms supported?

You do indeed have all you need with compiz.

Setting Window.Form.Opacity should set the X window property _NET_WM_WINDOW_OPACITY on the window;

For a test whether the ubuntu part works, try setting the opacity manually to 0.5 with this low-level command (click the window):

$ xprop -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x7fffffff

And back to full opacity:

$ xprop -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xffffffff

One way how setting Window.Form.Opacity could fail is that it chooses a wrong (but closely related) window, and set's the property there.

According to your comments, the idea was right. Adding:

I suspect it is a very specific error that exists in other software too: The window that is choosen to make it transparent is found by some heuristics based on how the X windows of the window decorator and the application are related/nested etc. But with the introduction of reparenting WM's there was a lot of change in the area - gladly the heuristics still worked. From what I understand, this is a case of the heuristics failing,so that some nearby invisible window will be made transparent...

Look at this bug to understand more of the problem: transset fails to change the _NET_WM_WINDOW_OPACITY property


So far I've only seen SD offered as place to store data only in Camera. Other apps, or some system wide setting would be nice. System files can stay where they are, no desire to move them around...


Apps can be added/pinned an removed from the launcher.

The panel can't be moved around (by default).

The "Gnome-Classic" desktop will remain available, choose on the login screen.


Google Chrome crashes on loading sites in Ubuntu 18.04

Do you have a coredump file? It might be a good idea to check what is going on with your Chrome.

Make sure that coredump support enabled in your system:

unlimit -c unlimited

Additionally, run the following command to see where your coredump files are stored:

sysctl kernel.core_pattern

Install gdb (debugger) if you don't have one:

apt install gdb

Now run the debugger:

gdb path/to/the/chrome path/to/the/coredump

Check this out for more info: https://stackoverflow.com/questions/5115613/core-dump-file-analysis

Use bc (backtrace) command to see what exactly is happening before the program crashes with a core file.


Does the mlocate.db generated by my updatedb cron job also applies to 'find'?

As far as I know, they're both different commands (locate & find) and work separately from each other.
locate will check the mlocate.db database to see if a file is registered. If you have new files and updatedb hasn't run, your locate will not show any of the new files you're looking for.
find on the other hand, will recursively go through the given path to check which files are currently there. Whenever a new file is placed in the path, find will return it. This proves that find does not rely on the mlocate.db file.


USB3.0 controller with VIA chip does not see external drive

it's bug, already report here:
https://bugzilla.redhat.com/show_bug.cgi?id=1409098


Text file viewer that automatically refreshes when file changes?

If your text-file grows with new content append to it, you could use tail to track changes.

It could be achieved with tail -f text-file or tailf text-file

If you want to print the content in it from very beginning (or from certain line):

tail -n +1 -f text-file

"-n +1" for starting from the first line of it, more detailed explaination could be found in  man tail:

  -n, --lines=K
          output the last K lines, instead of the last 10; or use -n +K to output lines starting with the Kth


New ubuntu 20.04 install, zfs on root -- root and boot filling up

Kill zsys with fire. Disable it completely and purge all of it's snapshots. It's existence is a terrible manifestation of "not invented here" mentality.

Use sanoid instead. It is far more mature, easy to configure, and will take care of your snapshots and pruning them, and can be easily instructed to not take more snapshots if your free disk space drops below a certain threshold.


CUPS error while installing packages using apt-get

It means you added a bad source.list and your libraries became corrupt due it. In my case I had added source list of 13.04 in ubuntu 14.04 to make somethings work based on the answer of some guy in askubuntu.com, that was the stupidest thing I did, and learnt never to add libraries of older versions.
But it did solve the problem and everything was working fine until I restarted the system.

When I got this error, I restarted by ubuntu and I was unable to start it again. Reboot failed. So I took a pendrive and upgraded the 14.04 to 16.04 and everything was fixed and I was able to install this cup thing too. That was the only thing I could do.

So use:

sudo apt-get upgrade


What's the difference between system shell and login shell?

A large number of shell instances are started as part of the Ubuntu boot process. Those are executed in system shell.

  A login shell is the first process that executes under your user ID when you log in for an interactive session.

You get a login shell when you login and obtain a shell providing your user id and password in an interactive manner.

For example

[i] tty login using Ctrl+Alt+Fn (n=1 to 6, n=7 is the GUI)
[ii] ssh login etc.

When you login to X system you also get a login shell. A login shell reads /etc/profile and ~/.profile (in absence of ~/.bash_profile) if your default login shell is bash.

The default login shell is bash, it is not changed.

Bash is an excellent full-featured shell appropriate for interactive use. However, it is rather large and slow to start up and operate by comparison with dash.

To speed up the boot process the Ubuntu core development team changed the system shell, /bin/sh  to dash.


If I cannot boot from CD or USB, how do I install Ubuntu?

That's easy:

Remove your hard disk drive from your laptop.
Connect your laptop's hard drive to another computer (desktop or
laptop) using any method: direct connector (laptops), sata or pata
cable, usb-to-sata/pata adaptor,etc. This computer should be able to boot from CD/DVD/USB.
You must observe that your laptop's hard disk drive must be the only
one connected to the computer, this is needed in order to get a grub
clean with just the Ubuntu OS mentioned on it at the boot.
Install Ubuntu.
When finished, just shut the computer down the normal way. Don't
restart.
With the computer turned off, remove the hard disk drive and connect
it again in the hard disk drive bay of your laptop.
Boot, be patience, the system may delay booting in a different
computer.
And enjoy.

This process has been tested both in laptops and desktops and the result is a fresh install fully and successfully working.

Step 3 is very important as if you have another OS installed in a local drive the GRUB will notice and record it to be mentioned in the GRUB's options. Additionally, your GRUB can be written in a different hard disk drive. To avoid these issues simply disconnect all the hard disk drives and maintain only the one where you wish your OS to be installed.

I hope this help you.

Good luck!


Apache mod_version.so not available in Ubuntu 14.04

As far as I can tell, this module no longer needs to be installed or enabled. At least, <IfVersion></IfVersion> sections work fine without any further action on my Ubuntu 14.04 systems.


I think it was driver issue.. It couldn't load my drivers..

But it is solved with something else. As I said, I "thought" that I deleted all of the kernels.. I found one other remaining in advanced menu and it worked. I booted, removed the other kernel, install new kernel, and everything is fine now.

Something that I learned from this:

Always, always have at least another kernel available for disaster recovery.
Never remove a kernel with apt-get purge --remove, try apt-get remove without purge instead.


Unable to download deb package from repository

For some reason you have locally installed versions of libc6 with higher versions.
You have to downgrade them to official versions with
sudo apt-get install --reinstall libc6=2.31-0ubuntu9.2 libc6:i386=2.31-0ubuntu9.2


The output you pasted from your terminal would seem to indicate that tor is running. Now you just have to use it! Did you set up a browser for that?

The Tor Browser will work for you if you haven't got it already. Configuring your browser use localhost:9050 as a SOCKS5 proxy also works, but just using tor as a proxy doesn't make a browser private/secure.

To verify that you're using tor, point the browser you think is configured to use it at https://check.torproject.org/. If you get a message that "the proxy server is refusing connections" or similar, it may mean that your browser is configured to use tor, but it isn't running. Otherwise the page will give you the good/bad news about whether you seem to be using tor.


It looks like that technology is experimental at the time of this writing and unpublished in the repositories. No luck there, sorry.


MATLAB won't open after fresh installation!

Try running matlab -desktop, it should work.


How do I sync an external drive using Ubuntu One?

Currently the Ubuntu One client only supports synchronising folders found under your home directory.  So you will need to arrange for the files you want to sync to appear somewhere under $HOME.

There are two options here:

Mount the file system under /home

Just create a directory to use as the mount point and update the /etc/fstab file to use that mount point instead.

Create a bind mount

If you don't want to change the mount point for the file system, you can create a bind mount to make some of the content appear in both locations:

mount --bind /source/directory /home/user/target

You should be able to make a bind mount like this permanent by adding an entry to /etc/fstab like:

/source/directory /home/user/target none bind 0 0

Once the files appear under your home directory, you should be able to synchronise them with Ubuntu One.

Since the folder name most likely contains a white space (Ubuntu One), the line in /etc/fstab should go like this:
/source/directory /home/user/Ubuntu\040One/target none bind 0 0

because fstab takes "\040" as white space.


Does Ubuntu need a FQDN to get internet and email working?

Standard advice for dynamic IP hosts is to use external email accounts
[e.g. free email account(s) at gmail.com].

You may configure your MTA to send messages using one of such accounts.
You may configure fetchmail to retrieve messages from external mailbox to local mailboxes.


Unable to update / Upgrade / install software

Suspect disk problems:

First check available diskspace:

df -h

No lines with 100% should be there in the column Use%

Second, check wether any of you regular filesystems are not mount read-only:

mount | egrep '^\/'

If there is an 'ro' between the () instead of 'rw', solve that first.


Ubuntu 14.04 as guest in Windows 7 VirtualBox: error occurs after installing guest additions

It is not unusual that a new Ubuntu release and Virtual Box versions need their time to get used to each other, i.e. to get bugs fixed. This is a process on both sides. Therfeore you will have to upgrade both, Ubuntu, and Virtual Box in the hope that one or the other bugs were fixed.

See my answers to the following questions on how to do that from the command line and what other troubleshooting measures may be worth a try:

Ubuntu 13.10 : VirtualBox crash problem
Trouble with Ubuntu installation in VirtualBox


Install Ubuntu, but still boot into Windows 7 (no GRUB screen)

Setup grub to boot into windows by default, with a 10 second time-out.  The you can choose Ubuntu, but if your parents just wait out the 10 seconds, it will boot into Windows.

A good editor for grub is grub-customizer, which you can et from a launchpad ppa

After installation of Ubuntu, open a terminal window ctrl+alt+t and enter the commands

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Then you can open the dash, and type 'grub' which will locate the program for you.  You will need to change the general settings, so that the "default entry" points to the windows boot, and change the timeout to a desired amount of time.


How to uninstall program, which was installed via ./

Open the terminal and type:

which truecrypt

The results will be something like:

/usr/bin/truecrypt

If you see the above results run the following commands to uninstall TrueCrypt manually:

sudo -i
rm -f /usr/bin/truecrypt
rm -f /usr/share/truecrypt/doc/License.txt
rm -f '/usr/share/truecrypt/doc/TrueCrypt User Guide.pdf'
rm -f /usr/share/applications/truecrypt.desktop
rm -f /usr/share/pixmaps/truecrypt.xpm
rm -rf /usr/share/truecrypt/doc /usr/share/truecrypt
rm -f /usr/bin/truecrypt-uninstall.sh


How can I prevent two shell scripts running at the same time?

There is a discussion of how to implement a mutex lock in the Bash FAQs here:

http://mywiki.wooledge.org/BashFAQ/045

You could implement something similar, but make your reboot script loop until the lock is free. I haven't tested the following, but here's a starting point:

Tar script:

#!/bin/bash

lockdir=/tmp/myscript.lock

if mkdir "$lockdir"
then    # directory did not exist, but was created successfully
    echo >&2 "successfully acquired lock: $lockdir"
    trap 'rm -rf "$lockdir"' 0    # remove directory when script finishes
    # continue script
else
    echo >&2 "cannot acquire lock, giving up on $lockdir"
    exit 0
fi

# DO YOUR ORIGINAL TAR SCRIPT HERE

Reboot script:

#!/bin/bash

lockdir=/tmp/myscript.lock

while true; do
    if mkdir "$lockdir"
    then    # directory did not exist, but was created successfully
        trap 'rm -rf "$lockdir"' 0    # remove directory when script finishes
        break    # continue with script
    else
        sleep 5  # sleep for 5 seconds and try again
    fi
done

# RUN YOUR REBOOT COMMANDS HERE


USB drive is corrupted after rebooting during copy proccess

Sounds like the drive's file structure was damaged.  This can happen when the buffers are not completely written out to the drive before it gets unplugged.

In the future it helps to have pmount installed so the buffers are flushed properly during system idle time.  It allows hot-plug-and-unplug gracefully.

To get it,

sudo apt-get update
sudo apt-get install pmount

Another great feature of pmount is that the drive will retain its mount point.  For instance, if it mounts as /media/me/USB32 but then is unplugged and replugged it will remount at that same location.

Without pmount the system will often not notice the dismount, or (as it sounds like in this case) will not have all the buffers written out to the drive (which can include directories).

If it does not notice the dismount then it is likely to append a digit to the remounted USB stick, resulting in `/media/me/USB321' - which means that if you write to the original address the system will treat it as a directory on the root partition.  The contents will never reach the USB stick in that scenario.

I consider pmount to be a MUST-HAVE.  Then gone are the days of needing to type sync;sync;sync when using these drives.


Running processes when machine is suspended

No, during suspend you won't be able to run any useful process: https://en.wikipedia.org/wiki/Sleep_mode

Your only solution would be to wake periodically to perform whatever task you're interested in and then enter suspend again when done. If you are interested in tasks like torrent clients that likely won't be feasible since they don't fall into that pattern of on-briefly-and-suspend-when-done.

This answer will be useful to figure out timed suspend and wake.


how to have internet acess by wifi in Ubuntu 12.10 (Fujitsu LH 532)?

You can refer this Wireless troubleshooting


You can install Ubuntu alongside Windows (at least in normal drives)
If you clone a drive, the previous partition table, file system and some of the content will be overwritten. You will not see it, so only if you want to erase all traces because of security reasons, you need to wipe the whole drive
Seeing your picture, I think your command line is bad, after pv you should redirect to the target device, not pipe via sudo.

It is easier to do after sudo -i with dd and pv, but it is risky. A minor typing error is enough to damage valuable data in a device (drive), that you did not intend to touch.
It is safer (and easy) to use mkusb-dus, which can clone from a device to another device. There is a final checkpoint, that helps you check once again, that you will write to the intended device, and not another device. After installing mkusb, assuming the source device /dev/sdb, you run

dus /dev/sdb

and you will be guided via menus to select the correct target device.


How to duplicate screen in ubuntu 17.10?

If on a machine originally installed with Windows use Super + P, where Super is the key with the Windows icon.


According to https://www.memtest86.com/tech_freezing-lockups.html
If the freeze occurs in MemTest86 but the system runs normally otherwise, the problem is likely with the UEFI firmware. The most common issue is when running MemTest86 using multiple CPU cores (default behaviour). There is a forum post that tracks known motherboard/BIOSes with problems running using multiple CPU cores. If you believe this issue is related to the UEFI BIOS, please send a copy of the debug log to PassMark Software. This type of bug tends to be very repeatable (not random)
Another BIOS bug we have seen is some old Dell machines have a 32bit addressing bug that prevents testing more than 4GB of RAM. In this case testing will freeze early on during Test 0 (the address test), while test in the 0x100000000 (4GB) memory range. To partially work around this issue you can limit the maximum address to test to below 0x100000000. This might mean a lot of RAM doesn’t get tested however. Or contact the motherboard vendor and ask for updated BIOS.


Is Ubuntu Server able to boot partitioned as MBR?

I have experienced similar problems to that which you have described. My first step was to check the USB and see if I could boot from it using a different machine.

In my case, the USB was fine, and I think the machine that was giving me trouble was a Dell as well, but I can't say for sure. I played with all of the BIOS settings, and yeah, mine too were all set up so that I should have been able to boot from USB. In the end, I pulled the CD/DVD iso file and burned a disc, and that worked fine when a USB wouldn't.


How to start making a non-free application?

This is not really true. Only the GPL license and a few related licenses are "copyleft", forcing you to opensource the software constructed based on the GPL software. However, you can freely use for example the LGPL libraries. In fact, the LGPL was created specifically with this goal in mind -- creating closed source applications with shared open source LGPL libraries. Moreover, under BSD or BSD-like license (for example, Python) allows you to essentially take as it is and do whatever you like with it.

In other words, open source does not enforce open source. Moreover, opensource does not mean "free as in beer". You are perfectly allowed to charge for open source programs, or create an open source program but ask for money when selling data (like media files or resources associated with that program).

To sum it up:

BSD-like licenses allow you to freely modify and distribute the code as you see fit;
LGPL (lesser GNU public license) allows the creation of proprietary code linked to shared libraries which are open source. For example, the entire glibc is LGPL;
GPL license forces you to distribute any modifications to a GPL-program under GPL.

Thus, you can happily write your program, linking it to a broad range of libraries or even directly incorporating pieces of alien code, compile it and sell it as a proprietary, closed source program, as long as you do not distribute modified GPL'ed programs.


What are the requirements to have unity 3D running/available

In addition to running /usr/lib/nux/unity_support_test -p you should have a read through the Ubuntu Wiki Documentation on the following two pages;

Unity Hardware Requirements

Demystifying Unity's Graphics Hardware Requirements


Google Chrome says IcedTea is out of date

This is a bug and is reported at:

https://bugs.launchpad.net/ubuntu/+source/icedtea-web/+bug/1024177
http://code.google.com/p/chromium/issues/detail?id=138386


Sharing files from Ubuntu 19.04 to Windows - can't find Samba

I never realized this until your question but apt / apt-get will not install any package on a list of packages if one of those packages does not exist.

This is the case with smbfs which was removed from the repository years ( 7? ) ago. You are looking at a very old howto.

Install samba by itself:

sudo apt-get install samba

And please follow George Udosen's advice and tell people what version of Ubuntu you are using and in this case what version of Windows you are using when asking a Samba question. Win10 for example can do things prior Windows cannot.


You should understand that there's no difference if you're dual-booting with Windows 7 or not (well, maybe only in terms of disk space available) - the performance of the system will be the same as if Windows or Ubuntu were the only OS on the machine.

If you're happy with how Windows runs on the machine now, then it'll be no different after you install Ubuntu.

1 Gb of RAM is not a lot by modern standards, but it's more than Ubuntu's minimal requirements, so Ubuntu will run OK too.


How do I EFI boot Zenbook Prime UX31A from built-in card reader?

Same problem here with a Zenbook UX330C. i've been doing flips and spins to make the laptop boot off the SD card in the built-in reader, but no dice. I've OLS'd (On Line Searched; I prefer not to publicize search engines) all what I could find for SD card booting in general and Zenbook SD card booting in particular, but I've found zero solutions. I've tried to found my UEFI's specs, but no relevant information found.

Finally my conclusion is: Asus Zenbooks' BIOS/UEFIs aren't able to boot off built-in SD card slots. Period.
Unless someone can prove me wrong, which I'd be very glad of.


I wouldn't do such complicated partitioning for sure.

You don't need separated /boot, /var, /usr and certainly not a second EFI partition in the HDD.

A case can be made for a separated /home but that's it.

Personally I wouldn't care about that at all and simply use the HDD for data (personal files) storage only, with everything else in the SSD.

And with 18.04 you don't need to create a swap partition either.


Here's how to fix the problem WITHOUT reinstalling.

Find Your Operating System Version

If You CAN Boot Your System And Log In

Open up a Terminal (Ctrl+Alt+T) and type lsb_release -a. Look at the 'Description' field. Write down what is in this field.

If You CANNOT Boot Your System Or Log In

Power off your computer if it's not already off. Power it back on, and press and hold the 'Shift' key until you see a full screen menu.

Use the arrow keys to highlight the Advanced Options for Ubuntu option. Press Enter. You will see a list of options. Pick the first one that has (recovery mode) at the end of it. Press Enter. Wait until a menu comes up.

Use the arrow keys to highlight the root option. Press Enter twice. Type lsb_release -a.

Notice: You may see 2 or 3 lines of text pop up on the screen mentioning something about a dependency. Just press Enter.

Note the OS version in the description field. You will need this later.

Press Ctrl+D. The menu with the root option will reappear. Select the resume option with your arrow keys and press Enter. At this point, power the system off.
Fix sudo

Boot into recovery mode and drop to a root prompt. Enter the following commands:

mount -o remount /

This remounts your boot drive in read-write mode. Without this, the next commands will fail.

chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

chown root:root /usr/lib/sudo && chmod 4755 /usr/lib/sudo

chown root:root /usr/lib/sudo/sudoers.so && chmod 4755 /usr/lib/sudo/sudoers.so

chown root:root /etc/sudoers && chmod 4755 /etc/sudoers

chown root:root /etc/sudoers.d && chmod 4755 /etc/sudoers.d

chown root:root /etc/sudoers.d/README && chmod 4755 /etc/sudoers.d/README

chown root:root /var/lib/sudo && chmod 4755 /var/lib/sudo

Press Ctrl+D. Select the resume option with the arrow keys and press Enter. Power the system off.
Download The OS And Put It On A DVD/Flash Drive

Next, download the version of Ubuntu listed in that field. Using another version can result in this process failing. Put the OS on a DVD or a flash drive.
Boot The Affected Computer Off Of The USB Drive/DVD

Insert the disc or plug the flash drive into the chmod affected computer. Power the computer up and tell it to boot off of the USB drive or DVD. You may have to consult your computer manufacturer on how to do this. Let the computer boot. This may take a while, depending on the speed of your computer.

When you see a menu pop up with 2 options, Try Ubuntu and Install Ubuntu, click the Try Ubuntu option. You should see a desktop. Open 2 file explorer windows. One should be at the root of the computer's boot drive, and the other should be at /home/<your_username>, on your computer's boot drive.
Get The Permissions Of The DVD/USB Drive's OS

Open up a Terminal (Ctrl+Alt+T). Type sudo su. Next, type the following commands.

find /bin -depth -printf 'chmod %m %p\n' > bin

find /boot -depth -printf 'chmod %m %p\n' > boot*

find /dev -depth -printf 'chmod %m %p\n' > dev

find /etc -depth -printf 'chmod %m %p\n' > etc

find /lib -depth -printf 'chmod %m %p\n' > lib

find /proc -depth -printf 'chmod %m %p\n' > proc

You may see some errors here. You can safely ignore these.

find /run -depth -printf 'chmod %m %p\n' > run

You may see an error here. You can safely ignore it.

find /sbin -depth -printf 'chmod %m %p\n' > sbin

find /usr -depth -printf 'chmod %m %p\n' > usr

find /var -depth -printf 'chmod %m %p\n' > var

*Only if you cannot boot your system.

Now, close the terminal. Open another file explorer window and navigate to /home/ubuntu. Xubuntu will use /home/xubuntu. Kubuntu will use /home/kubuntu. Follow this naming convention accordingly.

You will see 9 or 10 files. They are named bin, boot*, dev, etc, lib, proc, run, sbin, usr, and var. Copy these to YOUR home folder.
Applying The New Permissions

If You CANNOT Boot The System And Log In

Open another terminal. Type sudo su. Next, type fdisk -l. Look for your boot drive or your drive with /home mounted to it. It is usually the largest drive with the largest partition. In my case, it is /dev/sda1. Note this down.

Next, type cd /. After that, type cd /mount. Then type ls. You should see one and only one directory. Type cd /<directory>. Next, type mkdir mount1. After that, type mount -t ext4 <disk here> /mount/<directory>/mount1, replacing <disk here> with the drive name you wrote down.

Now, type cd /mount/<directory>/mount1. You are now in the root directory of the damaged boot drive. Type cd /home/<username>, replacing <username> with YOUR username. Type gedit boot. If it says that gedit is not installed, type mousepad boot. If it says that mousepad is not installed, replace mousepad with the name of your distribution's default text editor in ALL LOWERCASE. A window will pop up. Use the text editor's find and replace feature to replace /boot with /mount/<directory>/mount1/boot. Tell it to replace exact matches. Once you have done that, go to the very top of the file, press Enter at the beginning of the first line, go to the new blank line, and type #!/bin/sh. Click File, then Save As, and save it as boot.sh. Close the file and go back to the terminal.

Type chmod +x boot.sh. No messages should pop up. Finally, type ./boot.sh. You may see some errors, you can safely ignore these.

Follow the instructions in the next section.

If You CAN Boot The System And Log In

Reboot the computer. When it says to remove the installation media, do so. Let the computer reboot. You may see copious quantities of errors during the boot process. Ignore these. Open your /home directory and a terminal. Type sudo su. Type your password. Type the following commands:

chmod 777 bin

chmod 777 dev

chmod 777 etc

chmod 777 lib

chmod 777 proc

chmod 777 run

chmod 777 sbin

chmod 777 usr

chmod 777 var

BE CAREFUL when you run these commands. Make sure the terminal prompt says root@computername:/home/<username># when there's nothing typed in.

Now, type the following commands:

./bin

./dev

./etc

./lib

./proc

./run

./sbin

./usr

^

This is the longest one. In my case, the text file was 10.4 megabytes in size.

./var

When running these commands, you will get OODLES of errors. Don't be worried by this. In fact, they may go by too fast for you to read. Wait for a prompt to return before issuing the next command.

Your system will appear to have been completely trashed after this. Shortcuts will stop working and applications will stop opening. Exit the Terminal, save your work, and close all applications. Force your computer to power off. Power it back on. Let it boot back up and log in. Also, sudo will break again.

Follow the next section to fix sudo.
Fix sudo (Again)

Boot back into recovery mode and drop to a root prompt. Type the following commands:

mount -o remount /

This remounts your boot drive in read-write mode. Without this, the next commands will fail.

chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

chown root:root /usr/lib/sudo && chmod 4755 /usr/lib/sudo

chown root:root /usr/lib/sudo/sudoers.so && chmod 4755 /usr/lib/sudo/sudoers.so

chown root:root /etc/sudoers && chmod 4755 /etc/sudoers

chown root:root /etc/sudoers.d && chmod 4755 /etc/sudoers.d

chown root:root /etc/sudoers.d/README && chmod 4755 /etc/sudoers.d/README

chown root:root /var/lib/sudo && chmod 4755 /var/lib/sudo

Press Ctrl+D. Use your arrow keys to highlight the resume option. Press Enter. Let your system boot up. Log in and open a Terminal. Type sudo and press Enter. You should see a list of arguments, but no errors or a /etc/sudoers is world writable message.

Congratulations, you've fixed your Ubuntu install!

This should only be done as a LAST RESORT. There are probably uncorrected security errors that are affecting system security. Plan on backing up your data and reinstalling the system from scratch. I highly suggest formatting your hard disk. If you have /home on a separate drive, back up all of your personal files in there and format that disk, too.

The goal of this is to get your system reasonably secure once again after a CHMOD disaster, allowing you to safely get your files off and prepare for a reinstall.

I hope this helped. :)


Creat a bootable USB of windows 10 on ubuntu

Not specifically an Ubuntu question:

UEFI only USB key, just extract ISO ( 7 zip or similar) to FAT32 formated flash & set boot flag.

How to create UEFI-only bootable USB live media?

Windows 7, 8, 10 BIOS or UEFI boot installer from Ubuntu
More details:

http://onetransistor.blogspot.ch/2014/09/make-bootable-windows-usb-from-ubuntu.html


Why doesn't Canonical/Ubuntu accept bitcoin contributions?

I think there is no concrete reason. This guy said "other payment mechanisms are currently being explored" (source) 3 years ago. So maybe ask him about how it's going. Opening a bitcoin wallet and emptying it in exchange for the currency employees are paid in, isn't much work to do.


To start the Docker daemon on WSL2 you’ll need to use the following command:
sudo dockerd

A lot of people tend to go with Docker Desktop as it drastically simplifies management of Docker on Windows.


Why is Evolution missing half its toolbar icons?

If you come to this question running Ubuntu 19.04 then the problem might be because of the new version of Gnome missing icons by default.  Other programs are affected too, but Evolution is one of the most obvious.

I found this solution, which I had to adapt slightly - for me the command to solve it is:

sudo aptitude install adwaita-icon-theme-full


If you are using systemd the command that will rectify your problem is

timedatectl set-local-rtc 1

This will set the accessing/storing of time in local time

If you are using upstart, edit /etc/default/rc5 by adding/changing this line:

UTC=no


There are Ubuntu packages for libpng12-0 for trusty (14.04LTS) and xenial (16.04LTS), but not for 17.10.  You must ask to the software manufacturer (i.e. Blackmagic Design) to update the program and/or the installer to use the most recent libpng16-16.

As a workaround, you may download and install the .deb package for Xenial from the Ubuntu web page before installing the Blackmagic Design's Resolve video editor.

Installing libpng12

$ wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
$ sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb

  NOTE: Installing packages from older distributions may break your apt installation system.

Is it safe to install the libpng12 package from Xenial (16.04LTS) ?

Using packages from older distributions can be dangerous. It may break the apt installation system because older packages may introduce dependencies to non-existing packages or replace packages that the new versions require. Try to use packages and repositories for the Ubuntu version you are using, i.e., the official Ubuntu repositories and well-known PPA repositories (that test their packages).

To check if the installation of libpng12 can break the apt, I checked the package information.

The libpng12 depends on libc6 (>= 2.14) and zlib1g (>= 1:1.1.4) that are included in the recent Ubuntu versions.

$ apt-cache policy libc6     # gives me 2.24-9ubuntu2.2
$ apt-cache policy zlib1g    # gives me 1.2.11dfsg-0ubuntu1

Note that no other Ubuntu package requires a recent version of libpng12 because it is not included in the repository. The most recent programs depends on  libpng16-16 and both libraries can coexist.
I think that it is very unlikely that this package breaks the apt.

Do not try to install a package of an older distribution if you are not sure of what you are doing.


Avoid dialogue by opening a shell script?

In nautilus goto Edit → Preferences and then select Behavior tab.
Under Executable Text files select "View executable text files when they are opened" or select "Run executable text files when they are opened".

Now that dialog will get disappeared.


Cannot ssh into new Vagrant install of 13.04

This is SSH host key problem (NOT related to public key authentication).

Looks like the problem was that the ubuntu cloud vagrant image failed to generate the new host keys (if they are not there in /etc/ssh/) during the 1st boot (vagrant up).

In addition to manually generate the SSH host keys mentioned by Moshe

sudo ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
sudo ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa

It can also be done by adding the following command in the /etc/rc.local

test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server

Hope it helps.


No wireless connection detected HP Pavilion DV6 1220 with a Broadcom BCM 4312

You can try this method: http://forums.linuxmint.com/viewtopic.php?f=194&p=497599#p497599
It is an approved method among various users: http://forum.ubuntu-tr.net/index.php?topic=30521.0

Or while using wired connection, you can use

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

Or you can try: How can I get Broadcom BCM4311 Wireless working?


How to make work such a command: "$ sudo php -v"?

This is down to how sudo defines its PATH. Basically, it will either take the PATH of the user calling it, or if so configured, it will read what is set in the secure_path variable of /etc/sudoers.

So, you have two choices:

Add the directory where the php binary is located to the secure path. Run sudo visudo, find this line:

Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$

and change it to

Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/php53/bin:$

Simply comment out the secure_path line and have sudo share the same path as the invoking user. This is not the safest of choices of course, but it's up to you. To do this, run sudo visudo and add a # to the beginning of the line:

# Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$

Save the file and exit visudo and you should be able to run sudo php -v as expected.


Possibly to boot an already installed Ubuntu into windows?

You can boot physical partitions with virtual machines, but it is generally ill advised.
Windows does not like to boot in a vitrual machine this way and will see booting in a virtual machine as a significant change in hard ware.  You can make changes to the system files with mixed results.
Linux will boot using a raw partition or LVM fairly easily. It sort of makes managing partitions more difficult as gparted or similar tools can not manage the partition used by the machine.
Without getting overly technical, using a physical partition is possible, but requires a moderate amount of manual configuration.
There is little to no benefit beyond perhaps saving some disk space.
If you are interested, google search for the technical details.
http://www.virtualbox.org/manual/ch09.html#idp57532640

Warning
Raw hard disk access is for expert users only. Incorrect use or use of an outdated configuration can lead to total loss of data on the physical disk. Most importantly, do not attempt to boot the partition with the currently running host operating system in a guest. This will lead to severe data corruption.


Can you use an SD card for swap in Ubuntu 12.04?

All the stuff that can't or shouldn't stay in your RAM is written out to swap and read back in when needed. This means that the swap medium needs to be fast and resilient to lots of writes.

Your SD card fails on both counts. It is slower at reading/writing than a hard drive, and each of its constituent sectors can only be written to a limited number of times before they wear out and can no longer reliably store data.

If you really want to use it to free hard drive space and will be keeping it in your reader at all times, my recommendation would be to consider moving any media files you might have to the card. Media files are usually written once but read many times, and don't need the full transfer speed of a hard drive to play back smoothly in real-time. They are thus the perfect candidates to offload to an SD card.


How to log memory usage per minute on Ubuntu Server?

Install and configure the sysstat package, which does just what you're asking for.

sudo apt-get install sysstat


I cannot boot into linux, everytime I try I get these errors and it's stuck


One solution is to install a VNC server on every other computer, for example vino-server, and a VNC client on your computer, for example, vinagre.

The programs mentioned above are known to cooperate perfectly together.  You can find both of them in the Ubuntu repos and I'm pretty sure you will find them in the Debian repos too since they are quite old and reliable apps.


QML ListView is not scrollable ( if included within a row )

In this version I replaced the last Row by just an Item element.

I also added a Scrollbar component:

Scrollbar {
    flickableItem: list
    align: Qt.AlignTrailing
}

As ListView inherits Flickable, adding the Scrollbar enables the Vertical scroll.

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    width: units.gu(60)
    height: units.gu(60)

    ListModel {
        id: fruitModel
        ListElement {
            name: "Apple"
            cost: 2.45
        }
        ListElement {
            name: "Orange"
            cost: 3.25
        }
        ListElement {
            name: "Banana"
            cost: 1.95
        }
    }

    Page {
        id: test

        Column {
            spacing: units.gu(1)
            id: pageLayout
            anchors {
                margins: units.gu(2)
                fill: parent
            }

            Row {
                id: buttonRow
                spacing: units.gu(1)
                Button {
                    objectName: "button1"
                    color: "white"
                    text: i18n.tr("Help")
                }
                Button {
                    objectName: "button2"
                    color: "black"
                    text: i18n.tr("Search")
                }
            }

            Item {
                anchors.top: buttonRow.bottom
                ListView {
                    id: list
                    width: units.gu(18)
                    height: units.gu(3)
                    model: fruitModel
                    boundsBehavior: Flickable.StopAtBounds
                    delegate: Row {
                        Text { text: "Fruit: " + name }
                        Text { text: "Cost: $" + cost }
                    }
                }
                Scrollbar {
                    flickableItem: list
                    align: Qt.AlignTrailing
                }
            }
        }
    }
}


Set the camera to auto and install gphoto2 and gphotofs via software center or terminal.

The camera mode needs to be set to auto and it will select the best mode dependent on the connection. Then install gphoto2 and gphotofs from software center and your camera should work.

or using terminal sudo apt-get install gphoto2 gphotofs.


How to apply changes done to dual monitors without restarting gdm or lightdm

I solved my problem this way:

First I setup my monitors configuration in

gnome-control-center display

Then I saved, and applied the changes.

So I ran

xrandr -q

to get my current configuration. Something like this:

Screen 0: minimum 320 x 200, current 1920 x 1980, maximum 8192 x 8192
LVDS1 connected 1600x900+0+1080 (normal left inverted right x axis y axis) 0mm x 0mm
   1600x900       60.1*+
   1440x900       59.9
   1360x768       59.8     60.0
   1152x864       60.0
   1024x768       60.0
   800x600        60.3     56.2
   640x480        59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 475mm x 267mm
   1920x1080      60.0*+
   1280x1024      75.0     60.0
   1152x864       75.0
   1024x768       75.1     60.0
   800x600        75.0     60.3
   640x480        75.0     60.0
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)

With this settings I created a script in ~/bin/monitors-configure

#!/bin/bash

xrandr --output LVDS1 --mode  1600x900 --pos 0x1080 --rotate normal --output VGA1 --off --output DP1 --off --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal

Now I just run monitors-configure


Will Windows 10 Reset Damage Ubuntu?(Dual boot PC)

If your installation is UEFI based then you'll probably be OK. If your system is BIOS based, resetting Windows might corrupt GRUB bootloader. In that case find out in which partition Ubuntu is installed on (like sda3 or sda2. Use the app GParted. It is probably the biggest partition with ext4 format). Note it down. Make a bootable CD/DVD/USB drive with Ubuntu (or Kubuntu) iso. Then reset Windows. If GRUB is toast after the reset then boot from that CD/DVD/USB drive you've made and follow instructions from this link.


After a little more digging, I found a single script (posted here) that connects my computer to wifi after suspend.  In short, I created the executable script /etc/systemd/system/wifi-resume.service with the following contents:

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target

and ran the command sudo systemctl enable wifi-resume.service

Many thanks to Sean for solution.


Is there any encoder for ubuntu like Windows Media Encoder

If what you want to do is just broadcast a video, I would recommend using a service like LiveStream (my favorite) or UStream. In fact I would setup and have both ready in case one has issues with the servers so that you can swap in case one fails. They work on all platforms. All you need is a browser and a camera (can be a webcam). You can find a couple examples in my LiveStream channel.

If you just want to transcode a file you can use WinFF or AutoFF. They are both based on FF-Mpeg.

To edit video the best tools is KDEnlive.


System tray missing in Ubuntu 13.04 and notifications show only an icon

Sounds like the installation was corrupted.  Time to go back to stock.

Try this, it usually fixes and reverts any problems I've ever gone through.

Sudo apt-get install --reinstall lightdm unity


Well, after some searching for the answer I found the cause. Num Lock was on, turning it off solved the problem. Strange that it only affects the game and nothing else.


How can I access my LVM partition from Windows 10?

There are a couple of answers about on the internet, but it seems that Windows does not support LVM2 (or at least not very well)

You could try http://www.chrysocome.net/virtualvolumes --or--https://roshanbook.wordpress.com/2012/02/04/accessing-lvm2-in-windows/

The second link describes creating an Ubuntu VM in Virtual box, using that Virtual machine to mount the LVM partitions, and then sharing the directories through Samba.


Create movies from images and sound files scripting transitions using the console?

I'm not sure about the transitions but the rest should be easily do-able with ffmpeg. See Movie from tiff pictures


How can i change the admin-secret for juju?

It isn't possible just yet.  I'm working on a bunch of user commands right now that I'm hoping will get into the 1.21 release.  One of which will allow you to change the password.


The add-on MinimizeToTray Reanimated works...

Though I fail to see why this basic email client function needs a plugin. TB should support this out of the box.


Search between two patterns and print the data from first pattern to second pattern multiple times, excluding non-matching blocks

Using in order with a newline as the paragraph delimiter, we can do:

awk -v RS='in order\n' '/not/{print $0 "in order"}'

awk treats text separated by the pattern in RS (record separator) as records, and each operation is done on a record. So /not/ tests if the record matches not, and then we print the record ($0) along with the separator text, which was removed by awk.

So:

$ mawk -v RS='in order\n' '/not/{print $0 "in order"}' foo
number of characters a[1]
reg1
reg2
reg3
info a[1] is not in order

number of characters a[2]
reg1
reg2
reg3
info a[2] is not in order


I can see iPod in Ubuntu 16.04.1 but there is no app that can get access to music at all

Assuming your device is running IOS7 (or earlier?) it appears that you can resolve this issue my installing the package libimobiledevice-utils by enabling the universe repository and issuing these commands.

sudo apt update
sudo apt install libimobiledevice-utils

I don't have the hardware to test this but it should put you on the right path.

EDIT: Upon obtaining an Ipod I can verify that it works flawlessly in Rhythmbox with a fresh Ubuntu 16.04 installation. You'll find it listed under Devices as shown below. Click the device, then the song you wish to play, then click the play button.


Booting Problem - Ubuntu GNOME 16.04.01 LTS

I would normally refer you to my Q&A on NVIDIA issues, but that involves using TTYs, which won't work for you, at least right away.

Boot into Recovery Mode, drop to a root shell, and follow the steps below:

Run mount -o rw,remount / to mount the drive in Read-Write mode.
Run sudo apt-get purge nvidia-* to purge the NVIDIA driver.

You may also need to purge xserver-xorg and reinstall it, which will require you to enable networking in Recovery.

Reboot. You may have to add the nouveau.modeset=0 flag in GRUB to boot properly (Check my Q&A for specifics).

You should be past the screen flicker and be at your desktop.

Now reinstall the NVIDIA drivers the proper way:

sudo apt-get install nvidia-367 (or 340, 352, 364, 370, whichever works).

Reboot again.

You should be up and running: good as before. I don't see how Kali could have done this, but if you messed around with your filesystem, then it's definitely possible.


I can ping my machine by IP but not by hostname

It's most likely a DNS problem. Which DNS server is your current system (where you are pinging from) is using? And does the DNS server have records of other nodes? You might need to create PTR records on DNS server. You can modify local host file but it is better to update/modify records on DNS server. I would start by looking at your DNS servers.

  cat /etc/resolv.conf

This will tell you which DNS servers your local system is using. Then check these DNS servers for appropriate records.


I'm getting a problem while install keepass2, Error "Package dependencies cannot be resolved" in ubuntu 14.04

After installing Mono all the dependency related issues are resolved.
I used this following command to install the Mono.

echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list
echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
sudo apt-get install mono-devel


Getting Cellular location data from 3G modem

I think there is some confusion here. The modem you describe does not have a GPS reciever built in. The only thing you could try is to do a triangulation with cell phone towers to estimate you position.
A GPS lock is not possible.


How can I get my python interpreter in PyCharm working again?

The easiest way to launch a script file in PyCharm is to right-click it in the Project Tool Window (normally this is docked to the left as a sidebar or should open with Alt+1 or from the View menu → Tool Windows) and then select Run from the script file's context menu.

This will automatically generate a run configuration that will show up in the drop-down menu next to the Run button in the toolbar.


How to return to default window size of files windows in ubuntu?

nautilus may be invoked with the --geometry=800x300+200+100 for a window size of 800 wide by 300 pixels tall.  The positioning of 200 pixels X offset from right and 100 pixels Y from top, will be ignored, unless you are root (bug 1543345).  The man page for nautilus specifies the --geometry= switch, and the man page for X defines how the geometry is specified.

To change the parameters of a launcher icon, see specify-parameters-for-launcher-program


How do I properly install Steam on Ubuntu 16.04 LTS?

You nearly had it correct, to install steam you need to add the -i flag to dpkg like this:

sudo dpkg -i steam_latest.deb

And if that still fails you can install python-apt this way, which you as well had almost right:

sudo apt-get install python-apt


How can you change Unity's theme from the command line?

Gtk-theme :

gsettings set org.gnome.desktop.interface gtk-theme "YourGTKTheme"

Icon-theme :

gsettings set org.gnome.desktop.interface icon-theme 'YourIconTheme'

Window-theme :

gsettings set org.gnome.desktop.wm.preferences theme "YourWindowTheme"


According to apt-cache show gpt

  Description-en: G-Portugol is a portuguese structured programming
  language  G-Portugol is a portuguese structured programming language,
  based on the  popular, freeform, pseudocode known as portugol. The
  compiler features  native compilation, translation to C code, and
  interpretation of algorithms.

So it's not really a "Spanish version" of a package


After new router WLAN doesn't connect anymore

Install the proprietary wifi drivers for your computer. wl is a module in the Broadcom drivers, so it's absence means you are not using them. Chances are, your router is incompatible with the open-source drivers. That would explain why Windows and Android work, but Linux does not.


Arc Theme Dark

This seems to be a popular theme, albeit somewhat different from the original Unity. This theme also prefers cold colours producing an overall calming and comfortable desktop.

Update: After using this theme for a couple of weeks I must say this is the best I ever had with Unity. The choice and combination of colours is spot on, a serene and beautiful theme. Highly recommended.

This theme can be installed from the Nooblabs PPA:

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install arc-theme

There is also an Arc icons theme, check more details at the NoobsLab webpage.

Adapta Dark

This theme introduces a number of modifications to window decorations and icons, but the end result is quite crisp. All the colours seem to have been well worked out, producing a nice desktop in different monitors.

Installation:

sudo apt-add-repository ppa:tista/adapta -y
sudo apt-get update
sudo apt-get install adapta-gtk-theme

It might require some tweaking to get activated, check the details here or follow the steps below.

Install unity-tweak-tool to apply the newly installed theme using:

sudo apt-get install unity-tweak-tool

Now navigate to unity-tweak-tool > Appearance > Theme to choose theme.


xrandr : Failed to get size of gamma for output default" for mDP type connection

Same here...

CPU: Intel i3-8350k (Coffee-lake)
Mobo: MSI z370 Gaming M5
OS: Ubuntu 17.10

EDIT

Based on info in this article I've found answer.

You need to add "i915.alpha_support=1" booting parameter to GRUB (Info from here) :

Log in to the system and start a terminal window (Applications->Accessories->Terminal).
In the terminal window at the $ prompt, enter the command: sudo gedit /etc/default/grub
Enter your password when prompted by [sudo]. (If the file /etc/default/grub appears to be empty or does not exist, see the instructions for earlier releases above).
In the editor window, use the arrow keys to move the cursor to the line beginning with "GRUB_CMDLINE_LINUX_DEFAULT" then edit that line, adding your parameter(s) to the text inside the double-quotes after the words "quiet splash". (Be sure to add a SPACE after "splash" before adding your new parameter.)

it should look like this "quiet splash i915.alpha_support=1"

Click the Save button, then close the editor window.
In the terminal window at the $ prompt, enter the command: sudo update-grub.
Restart the system.

I hope it will work for You ;)


I want to change the install location of apt so I have room on my disk

You CANNOT change the locations that apt installs to. Those locations are specified when the deb or snap package is created, and are not user-editable.

You CAN change which directories are housed on which drives (or partitions). Your Ubuntu filesystem can be split across multiple partitions by editing /etc/fstab/ and doing a bit of clever copying. Before experimenting with /etc/fstab, be sure to backup your data -- folks make mistakes, and fstab can be unforgiving of mistakes.

For example, using /etc/fstab you can move your ~/Downloads directory to a separate empty partition.


Possible to automatically install eGPU drivers on Ubuntu 20.04? Boot gets stuck after fresh install when eGPU connected

It is not possible to automatically install the GPU drivers and have the OS work on install.
This is because the login screen uses wayland not X11, which doesn't seem to support external GPUs. It is possible to modify the login screen settings to use X11, which then makes it possible to use the eGPU. However, this is a manual step and not automatic.


This worked for me:

sudo dbus-launch nautilus
sudo dbus-launch brasero

http://manpages.ubuntu.com/manpages/trusty/man1/dbus-launch.1.html


Java: Error while loading shared libraries: libjli.so

I meet this issue in a chroot environment, and fix it by this action
mount --bind /dev /myroot/dev
mount --bind /proc /myroot/proc


I'm getting this error when try to update to php5

I guess you are using PPA for PHP 5.6 for Ubuntu 12.04 (precise).

Your issue is because that apache2-mpm-prefork is already obsoleted in 2.4.x.  You just need to remove apache2-mpm-prefork, then install apache2, and default is prefork mode.


wget downloads html file with .jpg extension instead of the actual jpg

From a first impression it appears that they use cookies to ensure that you have viewed the page with all the ads etc. and then it is possible to download the image.

If you want to download it via a script you should save the session cookies one time and then resend those for the second request.


How do I connect to multiple wifi networks?

Yes you can, if your card support it. First of all look the documentation of iw and especially the page of virtual interfaces. Unless you are running 14.04, that is, due to a bug in udev scripts (probably fixed in 15.10, but no confirmation yet).

Note that in the following description wlan0 is my normal WiFi interface and wlan1 is the name I choosed for the virtual one (it's quite arbitrary). You have to adapt this to your system, of course.

You can create a new virtual interface with:

sudo iw dev wlan0 interface add wlan1 type station

if your adaptor/driver support it, it's done --- you now have two interfaces; otherwise you will have some type of error or the interface will not appear.

You can check if the new interface exists by typing

 sudo ifconfig -a

...and see if the wlan1 interface shows up. It will appear in the Network Manager too anyway:

You can remove the virtual interface with

sudo iw dev wlan1 del

I really never used it --- I tried to connect twice to my router and havoc arose (but that probably is normal). Moreover, you will probably need to see if packet forwarding between the two interfaces is enabled by default or not, and you probably need to play a bit with the routing after that. But it's a start.

PD --- one of the thing you will probably have to change is the MAC number of the "virtual" interface, which is by default the same as the other, and will create problems almost for sure.


Run:

sudo apt-get update || sudo apt-get install -f

This will fix your issue. The command will check repositories for new packages and then install any missing dependencies for already installed packages.


Problem Installing MS fonts for Libre Office @ Ubuntu 14.04 codename Trusty

The problem seems to be related with network connection.

So, first check if your PC is connected to your router:

ifconfig

The above command will show you PC network interfaces. Now look at the command output and search the inet addr. It should be in the second line of one of your connected interface (under something like eth0 or wlan0 depending if your are connected via cable or through WI-FI). If the value of your inet addr is similar to 172.16.x.x your PC is in the same network of your router.

If it is not so you have to reconnect to your router. You can do this with Network Manager.

Now you can check the connection between your PC and your router with this command:

ping 172.16.19.10

If it works you can check connectivity with internet:

ping www.google.com -c 8

If also this works, you can install fonts as suggested by @mikeymop:

sudo apt-get update
sudo apt-get install ubuntu-restricted-extras

If ping command didn't work it means 2 things:

ICMP packets cannot be sent over your network or out of it.
You can't reach your router or external server (e.g. www.google.com)

In the first case you could try to check your connectivity directly running

 apt-get update

In the other case you can try to reboot your router and you have to hope that all things will work after.

I hope this could help you.


how to install ubuntu when ubuntu is installed

You can download the distribution that you want here

http://www.ubuntu.com/download/desktop

Then from your desktop press the superuser button (the windows button on your keyboard) and search for startup disk creator. Plug in a blank USB stick with at least 2G of free memory and launch the startup disk creator. Select the distribution that you downloaded. Make sure that your bios is set to boot from a usb drive (which you can access by pressing a certain key such as F2 or esc while the computer boots) and reboot the computer. If your BIOS successfully boots from the USB drive you will see an option to install ubuntu. Select that option and follow the prompts.


Force deleting partition and create an unallocated one

The easiest solution would be Gparted.

sudo apt-get install gparted. You will be asked for the password as it requires sudo privileges, if it is ran as regular user.

Also, if your partition is mounted (you can check with mount | grep /home )
you need to umount it first  umount  /home.

Or via Gparted: Right click on partition/ Unmount


Wireless Firmware Missing on G4 Powerbook 12"

Turns out that shutting down completely and then booting, as opposed to just choosing 'restart' from the power options, allowed the drivers to load.  I now have wifi!


No mouse pointer settings/unable to reduce mouse pointer speed - Ubuntu 16.04.2

Assuming that you're using a Logitech mouse and unifying receiver (has an orange star on it)...

If you dual-boot with Windows, boot into Windows and use the Logitech mouse and unifying software to set the desired mouse characteristics you desire, like speed. Booting back into Ubuntu will remember those settings.

If you don't dual-boot with Windows, take the mouse and the unifying received to another computer that is running Windows, install the Logitech mouse and unifying software, and set it up there. When you return these items to your computer, it will remember those settings.


How to find packages when updating Ubuntu and creating standard source.list file

This command automatically installs i386 packages:

sudo dpkg --add-architecture i386
sudo apt-get update

If you want to remove i386 libraries:

sudo dpkg --remove-architecture i386

Source: Debian Multiarch HowTo

If it still doesn't work, create a new sources.list from http://repogen.simplylinux.ch. This is what you'll need for a standard, clean sources.list:

Always backup the current file:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

Restore with:

sudo mv /etc/apt/sources.list.backup /etc/apt/sources.list


How do I download iTunes podcasts with hpodder or other software?

Note: From Ubuntu 13.04 (Raring) onwards, tunesviewer is available in the repositories, and so can be installed with a simple sudo apt-get install tunesviewer.

For downloading itunes podcasts and itunes University material, the easiest way is to use TunesViewer instead of hpodder. The former program cleverly masks your user agent and appears to apples's site as the itunes program and so is able to parse all the itunes urls; once installed, you can even click an itunes link in Firefox and it will open in TunesViewer.

TunesViewer 1.5.2 can be downloaded from sourceforge and is a .deb file so is easily installed by double-clicking and selecting install in Software Centre; it has very few dependencies and is a much lighter-weight program than iTunes. You can set the location of your download folder from edit > preferences and then you should click the box to set TunesViewer as 'default opener', so any browser links will open in it. You download your podcasts by right clicking the files in the bottom tab of the program or the "free" link above, or you can just play them if you want with an external application such as rhythmbox, which it has  been tested with.

There are some great itunes U courses available (the first screenshot shows the one you want) and if you click the box in the far left hand corner of the program interface you can select to search for itunes U or regular itunes podcasts. You can of course manually copy an url into the program and load it up.

TunesViewer is the only decent way to access the itunes U or podcast pages of apple.com on Linux without installing iTunes in wine. You don't need to know a link before hand and you can just start the program, and from the itunes U homepage, you can go to all the other itunes podcast pages. It's a great program that I use a lot!


Can I run an Android Application in Lubuntu with an i386 32 bit architecture PC?

I personally vote for Archon Runtime at the version 2.1. I run few applications like Shazam and Angry Birds on my desktop. You need to install Chrome and load the runtime as unpacked extension, then export the apk using archon packager (see play store for that).

The Anbox is not there yet. Simply it does not run my applications at this time.


Opening a New Window from Unity (Firefox)

We will make a copy of the Firefox launcher for your user account and modify the default action by adding the -new-window argument to the firefox command.

First, we copy the original firefox.desktop to the right folder in your home directory:

cp /usr/share/applications/firefox.desktop ~/.local/share/applications/

Second, we can simply modify the correct line with the command below:

sed -i 's/%u/-new-window %u/' ~/.local/share/applications/firefox.desktop

This searches for occurrences of %u in the file and replaces them with -new-window %u. That works because the %u argument place-holder only appears once in the Exec line of the default action. The modified line is:

from: Exec=firefox %u
to: Exec=firefox -new-window %u

IMPORTANT: You need to restart Unity afterwards by logging out and back in!
Otherwise Unity doesn't recognize that there's a new file in your home directory that should override the system-wide one and you won't see any change.


How to fix fresh Ubuntu installation to detect network device?

Changing "Fast Boot" setting "Ultra Fast" to "Fast" in BIOS makes Ubuntu to detect my networking hardware.


Windows installed on one hard drive, Ubuntu on 2nd, how to choose between on boot?

When you install ubuntu on your other hard drive, it will (by default) automatically install grub, which is a bootloader. It will do exactly what you want. After installation, just go to your bios and set your default boot drive to the second one (with ubuntu install). When you boot you'll see a screen with a few different options to boot. It will look like this but with another option below to boot into windows:

It will by default boot into ubuntu after 10 seconds if no key is pressed, but you can just use the arrow keys to navigate and enter to choose whether to boot into windows or Ubuntu.


Ok, I finally found the solution in the Kali-Linux Forum and it works for Ubuntu too.

What I did first was to uninstall your driver and download that one: https://github.com/Mange/rtl8192eu-linux-driver, but in fact I did not check if it is the same... so I am pretty sure that it would have worked with your driver aswell.

Anyway the final solution was to blacklist the CU-Driver!!

So for everyone having the same issue, do the following:

1. Download the rtl8192eu driver from the above link or from pilot's repo
2. Install it with make and sudo make install
3. Blacklist the rtl8192cu driver
   in terminal type: sudo nano /etc/modprobe.d/blacklist.conf
   add a new line with that --> blacklist rtl8192cu
   save the file
4. Reboot and AFTERWARDS plug your dongle in
5. The post in kali-linux's forum said, that for that guy it hadn't worked on the first try. In that case he suggested just to repeat the installation several times.

I don't take any credits, I just copied NL2016's answer here because it was helpful for me and it could be for others too... If you want to read his discussion, here it is: https://forums.kali.org/showthread.php?34548-TP-Link-TL-WN821N-Wifi-Adaptor-no-interface&p=67560&viewfull=1#post67560


How come Unity won't run on my IBM Thinkpad T42?

The command /usr/lib/nux/unity_support_test -p should print out specific information on exactly which graphics card feature is missing.

How do I know if my video card can run Unity?


Move the position of the opened apps in the taskbar with the mouse or keyboard

Cinnamon allows it, and has a "traditional taskbar" like you seem to want.


Remove or Fix .desktop Application's intrusive decoration

Sound like you have set your icon size to small. If you increase the icon size it will be less obtrusive. However, completely removing that symbol is not recommended.


How to replace EasyPeasy partition with Lubuntu

Try this:

Boot into the installation disk and install as usual.
When you get to the prompt asking you how to install, select Something Else
Remove all of the Easy Peasy partitions from the partition editor.
Give Lubuntu a main partition and a swap partition.
Continue.
Profit!


OK. This turned out to be a hardware issue. It affected two of my headphones in exactly the same way which initially made me rule out hardware issues but a third headphone works perfectly.

The symptoms above happens when the left and right signal wires are shorted/crossed. This happening to two good quality headphones should be unlikely but I guess given enough people and enough time anything is possible.

The muting of the voice is interesting. This happens due to how voice is normally recorded. While musical instruments are normally recorded as full stereo voice is normally recorded on a separate mic and assigned as perfectly centered: that is, the left and right voice waveforms are the same. When the left and right channels are shorted the voice waveforms act to cancel itself - exactly like how noise cancelling headphones work.

I'm leaving this as a self-answer because the muted voice but loud music is an interesting symptom to debug something like this.


How to create a personal failover laptop?

If you have onedrive, you can use the onedrived service for linux. I'll link it below.

Basically you need to setup one laptop how you want it and installed onedrived then configured, clone the drive to an image and restore that image to another computer.

Configure Onedrived to use your home folder as the "Onedrive" folder. Onedrived will work by keeping your files you have in your home folder backed up online. Once you bring the other laptop online, it will then download everything you had back to your new computer. Once you fix your primary laptop, it will then re-sync any updated files to that laptop.

https://github.com/abraunegg/onedrive


You have sandy bridge intel graphics that are not currently supported in lucid.

My linked answer below should in theory work - although the OP had issues.

Therefore I recommend that if you want to try this, do a hard-drive image backup first with clonezilla.

Alternatively - upgrade to at least Maverick - or preferably Natty which does have native Sandy Bridge support.

Linked Question:

How do I install the Intel HD 3000 video driver?


RX 460 in Ubuntu 14.04, 16.04, 16.10 not working

Did you check this?

Although that is the pro version of drivers, the non open source.

If you like me bought radeon instead of nvidia since you want to use open
source perhaps upgrading kernel to 4.7?

My RX460 was only in software rendering mode, now it works.

First I Updated to Kernel 4.9, downloaded these files to a temporary folder

linux-headers-4.9.0-040900_4.9.0-040900.201612111631_all.deb
linux-headers-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb
linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb

and did:

sudo dpkg -i *.deb

That was a needed step but not enough.

From this thread I got the remaining needed instructions.

Basically (if I remember correctly) I did this:

sudo apt-add-repository ppa:paulo-miguel-dias/mesa
sudo apt update
sudo apt install xserver-xorg-video-amdgpu mesa-utils
sudo apt upgrade


deleted ubuntu 14.04 partition error: unknown filesystem

Re-install Ubuntu

grub is failing because you deleted Ubuntu.
re-installing Ubuntu will also re-install grub and then fix your problem

If, though, you want to use Windows and Windows solely on this machine you need to fix your Windows boot (ie. have Windows remove the grub references). See How to load Windows 7 from GRUB rescue


during ubuntu 14.04 installation mistake

I'm figuring the computer is looking to boot to the internal hard disk, instead of the CD, if it thinks there's something installed on the hard disk. Try getting to the boot menu at the BIOS before it boots anything (usually, something like pushing F12 right as the computer is booting until it takes you to a boot menu). It may be a different key for your model, but the principle remains the same.


Note : This may not be the answer you're looking for, but it can be usefull.

Flash is gonna be hard on your CPU, but 80% of an i5 is ... well, a lot. I noticed before that the built-in Flash from Chrome was using more CPU than the external flash-plugin in Firefox. But 20% for looking at desktop, it seems too much.

For example, with my AMD AthlonII X4 3.0Ghz, i'm at 2-20% of each core, using full accelerated 1080p desktop, firefox running, terminal and mouse/keyboard activity. All of that, while looking at top and gnome-system-monitor, which are pretty heavy themselves.

Is it bad if my CPU is loaded ?

Not specially. I heard once that Linux, compared to other OS, was designed to use the best out of our hardware. That means it's heavier if you have a better hardware.

As storm09f87a said : "Unused CPU cycles are wasted CPU cycles". It is fundamentally true. Keep this in mind

What to do when my CPU activity seems too high ?

You can look at your CPU activity with the command top, it's a CLI program (command-line interface).
You can also look at it (total and details) with gnome-system-monitor, with a GUI (graphical user interface)

I, for instance, use the two combined :

  You can see on this screenshot that Xorg takes a lot. But actually,
  it is because of the mouse activity, not the display itself. You'll
  also see that the gnome-system-monitor is heavy: but you can ignore
  this, because this program isn't always running.

The point of this, it's to see which process takes your CPU cycles. Sometimes, you can notice a bug, a leak, that is caused by a process that should not use so much power.

You can try then to kill it with the command killall nameoftheprocess. If it was necessary for the OS to run, then either it will restart itself, or you'll have to reboot.

You can also seek what program/service is related to this process and reinstall, optimise, or restart it. You can fill a bug report if needed.

You can, if you wish, use a tool designed to make Linux more eco-friendly on a desktop PC, and save energy on a laptop.

I never tried it on a desktop PC, but from what I've heard, it helps to reduce the temperature of your system and better regulate the hardware. That tool is TLP by Linrunner.

" TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements."

You can install it with these command-lines :

sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

It will be used on next reboot. You can also manually start it with sudo tlp start. You'll find the documentation on Linrunner's website.

I am experiencing system errors...

Me too, don't worry. Ubuntu has the filthy habit to report every little error, even when it shouldn't (in my opinion) be noticed to the user.

Depending on the errors : if they are regular, where do they come from, if they keep the system to properly work, ... you can desactivate the "error" message. I always do that, because it's a real pain in the keyboard.

To desactivate the notifications on every error, use this command-line :

sudo sed -i 's/enabled=1/enabled=0/g' /etc/default/apport

(or pass enabled=1 to enable=0 in /etc/default/apport file).


You should add this app using PPA!

Open project PPA page:
https://launchpad.net/~i-nex-development-team/+archive/ubuntu/daily

Copy text: ppa:i-nex-development-team/daily

Open terminal and copy or write:

sudo apt-add-repository ppa:i-nex-development-team/daily
Accept to add
sudo apt-get sync
apt-get install i-nex

Or do it in GUI way:
http://blog.launchpad.net/ppa/adding-a-ppa-to-ubuntu-the-gui-way


Will the TP-Link TL-WR941ND wireless router work with Ubuntu 11.04?

Basically, the router has nothing to do with your OS, except some rare cases (for example, Broadcom drivers in 10.04 LTS acts strange with the 40Mhz channel width configured in the router).

But if it helps you, I have exactly the same model, and it works like a charm.


How do I set up Cloudflare's Quad-1 with DNS Encryption?

There are a couple ways that I know of. Maybe others will know of additional methods. If there is an approach that uses Ubuntu's default capabilities, I'd love someone to speak up and point the way!

1) Use a DNS privacy stub resolver such as Stubby (https://github.com/getdnsapi/stubby). This runs as a daemon either on your computer (listening on 127.0.0.1) or perhaps on a server of your choosing. You tell Stubby what DNS servers to use (in this case, 1.1.1.1) and whether or not to use TLS when talking to those servers, etc. Then you simply tell Ubuntu to use the address Stubby is at for DNS (if running it locally, then you'd change your DNS servers in network manager to 127.0.0.1). Stubby then handles all your DNS and gets the information from the external servers securely.

2) This method is more limited to browsing. But Firefox 62 is said to include settings for routing all browser-related DNS requests through DNS-over-HTTPS (which 1.1.1.1 handles). This will not route non-browser DNS through HTTPS, though, and is therefore not the all-around solution.


Window tabbing has not been implemented in Plasma 5.x as yet, so you won't be able to tab windows.

Also please note that even if implemented, previously it was only available with the Oxygen window decorator, and it remains to be seen if it will only be available with Breeze.

As for when this will happen, I really don't know.
Source: https://community.kde.org/Plasma/5.5_Errata


dbus is a middle man communicating data between applications so something you have installed is using dbus more than it should or its also possible that there is something wrong with dbus if you can supply the output of this Command

dbus-monitor --session

easy way is to paste it at pastebin.ubuntu.com
and add it to your question it should give us an Idea of what could be causing the problem.

Sorry if this isn't an answer just too much for a comment.

ps found these two forum posts which my lead you to the answer.

dbus-daemon is consuming memory
dbus daemon, loads of activity (slowing down machine)


What does "restrict background data usage" do in network settings?

The checkbox marks the connection profile in NetworkManager as "metered". See man nm-settings for the connection.metered property.

When NetworkManager activates a device, then it marks the device as metered according to whether the profile indicates it. Note that the profile setting can have 3 values: yes, no and unknown/default. The yes and no cases are clear. For unknown NetworkManager will guess whether the  device is metered (for example based on certain DHCP options as Android hotspots set them, or Wi-Fi information elements). That results in the metered status of the activated device to be of yes, no, guess-yes, guess-no, or unknown. Other applications can query that status via NetworkManager's D-Bus API.

There is also a global metered status. That is basically the metered status of the device with the best default route. Which is not always entirely clear, for example if the best IPv4 default route is on another device than the best IPv6 one...

Other applications may now listen to the metered status and restict themself. For example, gnome-software may decide not to download packages when the metered status is yes or guess-yes.

So, no. It doesn't actively restict anything. I think the UI is not namend well. But other applications are welcome to restict themself. It doesn't do anything in NetworkManager itself.


In Unix, most objects you can read and write - ordinary files, pipes,
  terminals, raw disk drives - are all made to resemble files.

  A program like cat reads from its standard input like this:

n = read(0, buffer, 512);

  which asks for 512 bytes. n is the number of bytes actually read, or
  -1 if there's an error.

  If you did this repeatedly with an ordinary file, you'd get a bunch of
  512-byte reads, then a somewhat shorter read at the tail end of the
  file, then 0 if you tried to read past the end of the file. So, cat
  will run until n is <= 0.

  Reading from a terminal is slightly different. After you type in a
  line, terminated by the Enter key, read returns just that
  line.

  There are a few special characters you can type. One is
  Ctrl-D. When you type this, the operating system sends all
  of the current line that you've typed (but not the Ctrl-D
  itself) to the program doing the read. And here's the serendipitous
  thing: if Ctrl-D is the first character on the line, the
  program is sent a line of length 0 - just like the program would see
  if it just got to the end of an ordinary file. cat doesn't need to
  do anything differently, whether it's reading from an ordinary file
  or a terminal.

  Another special character is Ctrl-Z. When you type it,
  anywhere in a line, the operating system discards whatever you've
  typed up until that point and sends a SIGTSTP signal to the program,
  which normally stops (pauses) it and returns control to the shell.

  So in your example

$ cat > file.txt
pa bam pshhh<Ctrl+Z>
[2]+  Stopped         cat > file.txt

  you typed some characters that were discarded, then cat was stopped
  without having written anything to its output file.

$ cat > file.txt
pa bam pshhh
<Ctrl+Z>
[2]+  Stopped         cat > file.txt

  you typed in one line, which cat read and wrote to its output file,
  and then the Ctrl-Z stopped cat.

Source: Ctrl+D for ending terminal line input answer by
Mark Plotnick


On linux distribution are present two rename utility.

   rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]

and

   rename [options] expression replacement file...

On Ubuntu rename command follow first synopsis, while in other linux distribution, rename command synopsis is the second one.

On ubuntu such rename is rename.ul and if third parameter is missing it will return:

   rename:not enough arguments

I guess you are not using Ubuntu, in any case, try this:

   find $katalog -name '*.dav.avi' -execdir rename .dav.avi .avi {} \;

Tested on lubuntu 12.04 with rename.ul

Instead of rename, you can use this script:

   find . -name "*.dav.avi" | while read file; do newFile=`echo $file | awk '{ print substr($0,1,match($0,"\\[")-1) ".avi"; }'`; mv $file $newFile; done


U can try Gnome document but it's still in development phase. There is an app called Gdrive but I have never tried it so can't say how good that is.


I removed 'user' and 'group' definitions from the service file (myuser for both). After a service restart, the move started working.


How to prevent "automatic" bold version of a font to be wider than regular having the same pt size?

mbaitoff, I'm posting this as addition to your update, not as an answer

If user creates file named ~/.fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <test name="spacing" compare="eq">
            <const>mono</const>
        </test>
        <edit name="embolden" mode="assign">
            <bool>false</bool>
        </edit>
    </match>
</fontconfig>

then, applications can use bold monospaced font if available, and disable "synthetic boldification" if used font does not have bold typeface.

It is just alternative, and slightly different approach with different result


Adding additional DNS search domains when using DHCP

Here is a complete solution that works at least with 12.04:

sudo nano /etc/dhcp/dhclient.conf
# add next line (alternatively you can use append instead of prepend)
prepend domain-name "example.com other.example.com";
# before: request subnet-mask...

(you can also use sudo -e /etc/dhcp/dhclient.conf if you trust the default editor)

If you're on any sort of "professional" network that has its own DNS servers and/or if you've setup your own DNS service(s) on said network and also on your workstation, then, you might also want to comment-out this line:

# domain-name, domain-name-servers, domain-search, host-name,

--Doing so lets you use your own domain-name-servers, enabling your personalized domain-search to work much more smoothly, which is probably better than using whatever somebody else has setup for you.  E.G.: I'm on the network 192.168.10.0; the company has name server 192.168.10.10 and 192.168.10.11 -- but, I run my own name server with a more extensive list of names on 192.168.10.20 (which will forward to 192.168.10.10 and .11 as needed). All my network configurations declare 192.168.10.20 and 8.8.8.8 and 8.8.4.4 (the Google name servers), but, DHCP will tend to override that preference, feeding me 192.168.10.10 as the default server. In the end... not requesting those aspects from DHCP makes for a much better network life.

Now restart the networking:

sudo service networking restart

(you can also use sudo /etc/init.d/networking restart with old rc scripts)


Kubuntu 19.10: How to make K remember accounts for windows network shares?

if you open dolphin, then you open a windows share like this:
smb://mydomain%5Cmyusername@machine.name.com/sharename$/

And then you enter your credentials and click at "remember password", is done.

Then you can add a link at the left of Dolphin to make easier to remember the share URL.

cheers!


ubi-partman error 141 clean install kubuntu 16.04 on Thinkpad X201

BTW

It Worked running command:

"sudo dmraid -ay"   before running install, since the hard disk was cleaned before install, it´s a little weird for me that the response for the command shows: "RAID set "ddf1_LD1_300" was activated"

maybe is related with the way it discovers ahci adapter, anyway..., the important thing is that it worked!

my .002


This icon is designed to be used with mobile devices (like phones and tablets) built with a gyroscope.

It controls the auto-rotation feature, which allows you to rotate your device to a portrait or landscape rotation, which will rotate the contents of the screen to fit the orientation.

On desktops and most laptops, this option does nothing and can be ignored.


Clear dnsmasq cache without restarting the service

If you add the following to your dnsmasq.conf this will allow you to clear the cache on a reload rather than a restart.
clear-on-reload

Then we you want to clear the cache you trigger a reload..
pkill -HUP dnsmasq

You can check the contents (dumps stats to the log) of the cache with
pkill -USR1 dnsmasq


How to configure Krusader's extract context menu to use something other than ark?

The context menu action is provided by Ark itself through the KFileItemAction plugin system. Therefore it can not be changed to use something else.
It would be possible to create a custom context menu entry that uses a tool of your choice for the job though.
The preferred solution in the interest of all would be to report a bug against Ark so this can be solved properly instead of working around it.


Upgrade from 12.04 to 12.10 all I get when I boot up is MEMTEST86 I have tried to access grub and theer is only memtest in there

Super Grub2 Disk - creates a bootable CD from here

Boot from the CD, choose the partition with Ubuntu.
From Ubuntu Terminal gives the command:

  sudo update-grub

Restart.


Why do I see a "SIGHUP or SIGTERMa:" error while trying to pass my password to sudo using echo and "|"?

It's a problem with nano, not the alias. Try using vim.


How can I create a hidden ad-hoc network?

I've done some searching online and it appears to me that it is not possible to hide the SSID, at least not if it's an ad-hoc network.

I think this might help explain it: http://lists.shmoo.com/pipermail/hostap/2008-August/018305.html


Re-sizing Partition to install Windows alongside Ubuntu

Run Gparted from Ubuntu Live CD, because you can't edit partition that you are currently using.


Any idea how I change from IST to GMT?

To switch to UTC, simply execute sudo dpkg-reconfigure tzdata, scroll to the bottom of the Continents list and select Etc or None of the above; in the second list, select UTC. If you prefer GMT instead of UTC, it's just above UTC in that list. :)


Ubuntu server 15.04: remote access MySql

In Ubuntu 15.04 the MySQL Server configure file is in:
/etc/mysql/mysql.conf.d/mysqld.cnf

You can find bind-address here. Comment it (by inserting # at the start of it), and restart your MySQL Server using:
service mysql restart

Then you can access your MysqlServer from other computer. If you can't, perhaps you need grant some right to the user.
You can see MySQL Server bind-address using:
netstat -tap | grep mysql

So you know whether the configuration has taken effect.


What is the standard source list file for 18.10?

You've learned a valuable lesson today:  Backup files before editing them.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

If you mess up the file, you can copy the backup and start again:

sudo cp /etc/apt/sources.list.bak /etc/apt/sources.list

Things to think about:

/tmp files are removed on reboot.  Be careful when backing up to /tmp.
Be careful and ensure backed up files don't contain and leak sensitive information.

To restore your sources.list file, you can empty out the sources.list file, and then use software-properties-gtk to re-create the list.  Details about this process are found in this answer, but you use the GUI to uncheck and check which sources you want.  You need at least "main", and will likely want "universe" as well.  After you enable these, be sure to update your database via apt update.


it seems that there is some process using the lock and thats why you cant get update.
  to view this pending process type command

ps aux | grep apt

this will show all processes containing the word apt

now the process which is pending is one of them.

now you need to judge which is pending and kill that process by typing command

sudo kill process-number

or

sudo kill -9 process-number

this will end the process and you are ready to update

if this does not work then your sudo do not sufficient permissions. thus you need to do this process as a root. to become a root you need to set password for root and to this type command

sudo passwd

then enter your sudo password and then enter password for UNIX (root) password which will set to your root user.now type command su and then enter the unix(root) password which we set earlier and then try to update