How to install Android Studio on Ubuntu?

Installing Java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

After that

sudo apt-get install oracle-java8-set-default

  Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. Thus this PPA doesn't have any Java files. More information can be found on PPA's page on Launchpad. Hence this method no longer works and exists because of historical reasons.

Installing Android Studio

Download Android Studio from here, use All Android Studio Packages
Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-141.2178183-linux.zip

sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt

To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below.

You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.

Create a desktop file

Create a new file androidstudio.desktop by running the command:

nano ~/.local/share/applications/androidstudio.desktop

and add the lines below

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=android-studio

Installing Android SDK (if necessary)

Click the marked button

Get the latest SDK tools

As a minimum when setting up the Android SDK, you should download the latest tools and Android platform:

Open the Tools directory and select:

Android SDK Tools
Android SDK Platform-tools
Android SDK Build-tools (highest version)

Open the first Android X.X folder (the latest version) and select:

SDK Platform
A system image for the emulator, such as
ARM EABI v7a System Image

Get the support library for additional APIs

The Android Support Library provides an extended set of APIs that are compatible with most versions of Android.

Open the Extras directory and select:

Android Support Repository
Android Support Library

Get Google Play services for even more APIs

To develop with Google APIs, you need the Google Play services package:

Open the Extras directory and select:

Google Repository
Google Play services

Install the packages

Once you've selected all the desired packages, continue to install:

Click Install X packages.
In the next window, double-click each package name on the left to accept the license agreement for each.
Click Install.


You could use cp -a /boot /boot-tmp to copy the contents to a temporary directory on the root filesystem, unmount the boot partition using umount /boot, and put the files back in place with rmdir /boot && mv /boot-tmp /boot.

Once you verify that everything is fine you can remove /boot from /etc/fstab. Finally, you should double-check the GRUB configuration and run update-grub.


'Low Disk Space' warning received when disk is nowhere near full

Installing Bleachbit from the Software Centre and ticking the necessary scan boxes will help clean up your hard-drive's junk and temp files and save you some much needed space...


Acer VN7-591G, WiFi and Bluetooth not working

Download https://www.dropbox.com/sh/bx1gtf2oxwnv588/AADUBfza3w3e1YJKCufqeqZea?dl=0

cd Downloads
sudo modprobe -r ath3k
sudo modprobe -r btusb
sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/ath3k.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/ath3k.ko.bak
sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko.bak
sudo cp ath3k.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo modprobe btusb
sudo modprobe ath3k

You may get an error with sudo modprobe -r ath3k as I doubt it loaded but this should get bluetooth running


Copying a large folder. Ubuntu stops responding!

following GabrielF's replies in the comments, here's what might fix the problem

GabrielF suggested opening a nautilus window (files window) with a different priority.

command is nice -n 19 nautilus It will open a nautilus window. Do the copy operation from there. It should not fix the problem. I hope so


Is there a program that can put some kind of visual notification on my screen for use with the alarm clock app?

You can use zenity to creates Graphical (GTK+) Dialog Boxes.

Try to add this command:

zenity --warning --text="Insert yout text here!"

or insert command inside a script.

Refer to zenity --help or man zenity for more help.


The position of the unallocated space makes it impossible to use it in the linux / partition.

Try the following:

PLEASE BACKUP YOUR SYSTEM
Using gparted in a live environment ( i.e boot with gparted iso)
Delete the swap partition
Expand the linux / partion to use what allocation you want.
Now Create new partion of type swap


How to create a shortcut for forward delete?

I don't think this is possible, I tried to do it with xmodmap. xmodmap apparently can't catch Fn so I tried it the Ctrl and Ctrl + Shift options.

You can see the current behavior of BackSpace using

xmodmap -pke | grep BackSpace

and the output it gives is

keycode  22 = BackSpace BackSpace BackSpace BackSpace

the different values correspond to the different modifiers:

1st: no modifier
2nd: shift
3rd: ctrl
4th: ctrl-shift

So we would like to change either the 3rd or the 4th value, we can do this by executing

xmodmap -e "keycode  22 = BackSpace BackSpace Delete BackSpace"

or

xmodmap -e "keycode  22 = BackSpace BackSpace BackSpace Delete"

respectively, but unfortunately this does not work for me. I think these values are overridden on some deeper level and both ctrl-backspace and ctrl-shift-backspace still delete a word backwards.

So I think you're stuck just using the delete key...


What tools are availble to check network performance for VoIP calls?

I have used WanEM a few times and find it to be an acceptable entry level traffic generator.

While it doesn't beat a true hardware network emulator (like a Network Nightmare appliance, for example), I have found it to be an decent traffic generator and it does provide a number of knobs and dials to tune your traffic. As I understand it, this application is capable of testing VOIP as well.

Please note that this software is a bootable .iso meant for testing in the middle of a network test environment and is not available as a package installation. It can also be run as a virtual appliance within VMWare Player or Server.

If you can be more specific in your requirements, I might be able to provide additional resources.


The squid-deb-proxy works because the files are served over plain HTTP, and generally do not require authentication (ones that do are usually over HTTPS and tend to not be cached).

Snaps however, are served over HTTPS due to the inherent requirements of authenticating to the store, and the possibility that some snaps are for purchase, and similar situations. To cache the data via a proxy, you will need to break the TLS connection by creating a certificate which you own, and which can be seen as valid by snapd when it attempts to verify the certificate.


Difference between Qt Creator and Ubuntu SDK?

Qt Creator

Qt Creator is a cross-platform IDE (integrated development environment) tailored to the needs of Qt developers. It is part of the Qt Project qt-project.org .

Qt Creator focuses on providing features that help new Qt users get up and running faster, and also boost the productivity of experienced Qt developers.

Code editor with C++, QML and ECMAscript support
Rapid code navigation tools
Syntax highlighting and code completion
Static code checking and style hints as you type
Support for source code refactoring
Context sensitive help
Code folding
Parenthesis matching and parenthesis selection modes

Ubuntu SDK

The Ubuntu SDK is your full-featured integrated development environment (IDE) for writing Ubuntu apps.

Based on Qt Creator, the Ubuntu SDK provides all the tools you need to get up and running and super productive developing Ubuntu apps of all types, with QML and HTML5 supported now and other possibilities on the radar.

More importantly the Ubuntu SDK comes with a huge collections of QML components to create Touch applications themed for Ubuntu, visit this link for a quick overview.

Ubuntu SDK highlights:

All the technical brilliance and capabilities of the QtCreator
platform with additional Ubuntu-specific features layered on top
New Project Wizard simplifies creating new QML and HTML5 app projects
Bazaar (and other) version control system built-in
Beautiful GUI with wide range of advanced code editing features and
preferences
Run app projects from the SDK on the development system, on attached
devices, and on Ubuntu emulators
Manage attached physical devices and create and manage Ubuntu
emulator instances
Package the app project as a click package for easy publishing
Install and run click packages on devices and Ubuntu emulators
Debug support
Run kits for run time environment and other options

Sources:

https://qt-project.org/wiki/Category:Tools::QtCreator
http://developer.ubuntu.com/apps/sdk/


You can use

pageNum = notebook.get_current_page()

which will give you the current page number. and use

textview = notebook.get_nth_page(pageNum)

to get the widget on that page.


Unity menu search doesn't find manually installed shortcut

Installed means:

It is in the software repositories accessible by the software
center.
A desktop file exists under /usr/share/applications or
/usr/local/share/applications or ~/.local/share/applications

The script you use however installs the desktop file to ~/.local/share/applications that isn't monitored by Unity. Log out or restart unity to pick it up.

It will most likely work out of the box if you run such scripts as root (excerpt from xdg-desktop-menu man page)

  The default is to use system mode when called by root and to use
  user mode when called by a non-root user.


Does zerofree avoid any possible recovery?

zerofree only works with ext[234] filesystem - if your USB is formatted with one of these, it should do that.

You can make sure with tools like photorec


upgrade to 12.04, mysqld up but can't log on

reset MySQL password .  you lose nothing . I am sure .

 http://ubuntu.flowconsult.at/en/mysql-set-change-reset-root-password

that URL can help you .


Which IDE or Tool can I use to code ASP.NET applications on Ubuntu 15.10?

Well, you can always use Visual Studio Code, it is neat and you can download many things for it.
For more info look here and to you can Download deb package from here.


How do I view files and folders in a list?

To change the default for all folders *, Open the file manager and when the window is active move the mouse pointer to the top left of the top panel and you will see:

Select Edit -> Preferences -> Views (tab) -> View new folders using then select your preferred view type (in your case it would be 'List').

To change the default view for just that folder, select View -> List from the menu, or use the keyboard shortcut Ctrl + 2

*Note that in the first step the default preferences will not be used for any folders you have manually changed view type on in the past. To reset this, see this question then apply the new default preference.


Will Ubuntu installation on my laptop SSD affect data on an HDD in the same PC?

Installing Ubuntu to your SSD won't affect data on your HDD, but you need to consider a few issues:

Your HDD is formatted to NTFS filesystem. It is supported by Ubuntu, but you can't maintain it properly without Windows, like fixing errors, etc. That's why it is highly recommended to backup your data and create a Linux filesystem on your HDD (ext4 or other).
Before you remove Windows make sure it is properly shut down. By default when you choose to shut down Windows, it really doesn't. It hibernates making filesystem only partly usable by other OS's. This is called "fast start" feature. ;-)


You can find out what _expand does, when typing

$ type _expand
_expand is a function
_expand ()
{
    if [[ "$cur" == \~*/* ]]; then
        eval cur=$cur;
    else
        if [[ "$cur" == \~* ]]; then
            cur=${cur#\~};
            COMPREPLY=($( compgen -P '~' -u "$cur" ));
            [ ${#COMPREPLY[@]} -eq 1 ] && eval COMPREPLY[0]=${COMPREPLY[0]};
            return ${#COMPREPLY[@]};
        fi;
    fi
}

This is a function in the bash completion mechanism. It expands tildes (~) in pathnames. In /etc/bash_completion is a comment about the function:

# Expand ~username type directory specifications.  We want to expand
# ~foo/... to /home/foo/... to avoid problems when $cur starting with
# a tilde is fed to commands and ending up quoted instead of expanded.

Try it in a terminal, type:

~<tab><tab>

It will expand to the usernames, for example

~usera     ~userb     ~userc


Need Immediate Help for Kubuntu installation

I got this issue because of the keyboard I was using. My timezone is Sri Lanka and it detected a phonetic keyboard which is not compatible with my laptop keyboard. So I changed my timezone to US and the installation proceeded successfully.

If you have a US keyboard change your timezone to United State region that detects a US keyboard and install. You can change it afterwards.


cant disable Sager np9390 Keyboard Backlight

I was having a similar issue with a Clevo N850HJ (although it was defaulting to green). There's no module in the linux kernel by default to deal with Clevo keyboard backlights, as I understand it.

I tried "clevo-xsm-wmi", and it worked. Don't know if it will work for the PS375sm, as the nearest mentioned on the link I provided is PS370SM-A, but it's worth a try.

(Note: this doesn't expose the leds in /sys/class/leds, but it does make the function key combinations work, and you can set options for the module it provides that set the initial state, so it can be coded to force the backlight off on boot)


listing files in a directory without listing subdirectories and their contents in that directory

Find-based solution:

find . -maxdepth 1 -type f -printf '%f\n'

Bash-based solution:

for f in *; do [[ -d "$f" ]] || echo "$f"; done
##  or, if you want coloured output:
for f in *; do [[ -d "$f" ]] || ls -- "$f"; done

The bash-based solution will get you everything that isn't a directory; it will include things like named pipes (you probably want this). If you specifically want just files, either use the find command or one of these:

for f in *; do [[ -f "$f" ]] && echo "$f"; done
##  or, if you want coloured output:
for f in *; do [[ -f "$f" ]] && ls -- "$f"; done

If you're going to be using this regularly, you can of course put this into an alias somewhere in your ~/.bashrc:

alias lsfiles='for f in *; do [[ -f "$f" ]] && ls -- "$f"; done'

Since you noted in the comments that you're actually on OSX rather than Ubuntu, I would suggest that next time you direct questions to the Apple or more general Unix & Linux Stack Exchange sites.


How do I retrieve my forgotten passpharase on my PPC server?

http://www.howtogeek.com/howto/linux/reset-your-ubuntu-password-easily-from-the-live-cd/

This may help - It allows you to delete your old password, and reset it.


Why does `passwd -l` (--lock) also prevent ssh key-based login?

The openssh daemon/service has picked up that the account is locked and has disabled access.   (password field starts with !)
The man page for "sshd" indicates:-
Regardless of the authentication type, the account is checked to ensure that it is accessible. An account is not accessible if it is locked, listed in DenyUsers or its group is listed in DenyGroups . The definition of a locked account is system dependant. Some platforms have their own account database (eg AIX) and some modify the passwd field ( "LK" on Solaris and UnixWare, "*" on HP-UX, containing "Nologin" on Tru64, a leading "LOCKED" on FreeBSD and a leading "!" on most Linuxes). If there is a requirement to disable password authentication for the account while allowing still public-key, then the passwd field should be set to something other than these values (eg "NP" or "NP").


Installing Kubeflow Ubuntu Studio 20.04 then "Couldn't contact api.jujucharms.com"

The below steps solved my issue on Ubuntu 18.04
sudo snap remove microk8s --purge

sudo snap install microk8s --classic --channel=latest/edge && sudo snap refresh

microk8s enable dns dashboard storage gpu

microk8s enable kubeflow

Github issue link


How to easily create webapps for websites and the deploy them into the snap store for ubuntu?

I can't find anything in the Contributor License Agreement that explicitly prohibits this so long as:

You have signed the agreement, and
The code is published and licensed appropriately

However, in addition to the criteria, there is some leeway for subjective assessment.  If I were a moderator for the snap repository, I'd be questioning this under the concept of it being a useful tool vs "marketing" for the website.

In my opinion, for example, if you wrapped something like draw.io into a webapp snap, then it would probably be approved, but if you wrapped mysupermarketwebsite.com it probably wouldn't.


Here are some things to do:

Disable online search results:

Launch System Settings and go to Security & Privacy, under the Search tab, turn off the check box which says When searching in the Dash: include online search results
Stop recording file and app usage:

In System Settings and go to Security & Privacy, under the Files & Applications tab, first click clear records and then turn off Record file and application usage
Remove unwanted Unity lens, scopes:

Open the Ubuntu Software Center and search for unity-scope. In the results, check the information on installed scopes and remove the scopes you don’t need...


Keyboard brightness keys are not working after ubuntu installation, how to set the brightness?

1- click on system setting (from the drop list on the top right corner on next to the time).

2-click on brightness & lock.

3- change  the brightness ,like you want, form the brightness bar.

if you are using laptop.

1-you can click on the battery ( on the top right corner on next to the speakers control).

2-click on the power settings form the drop list.

3- in the new opened window you  will find tip.

4- click on screen brightness.


Most of the vagrant boxes are build for virtualBox, because by default, vagrant is configured to use virtualBox as its provider. Moreover virtualBox is free of charge where that isn't the case with other providers. I can't find any good reason on why we should use other providers. I use vagrant for most of my projects both on LAMP and MEAN and using virtualBox without any problems.

Now you want to use vmware, you have to install plugins. You can always build a box from scratch if you don't get one from cloud. But of course, that is a time consuming process. I've published a guide on 'how to setup a ubuntu development environment using vagrant' and in that I have mentioned how to wrap an existing vagrant environment in to a new box. Again, I'm not sure if repackaging is possible for another provider. Please check it out and let us know about it.


Ubuntu (budgie) 18.10 - nvidia geforce gtx 1060 nvidia settings fan control not working

I have an NVIDIA 1060 6GB graphics card, and for the fan control I use "Green with Envy".  "Green with Envy" is a tool designed to enable you to manage your graphics card coolers, view information or overclock your NVIDIA graphics processor for Linux. There you can control the fan curve and clock speeds! Also I have the official NVIDIA driver installed, not the open source driver.


Has "Auto eth0" been renamed to "Automatic ethernet"?

The answer to this would appear to be "yes".

The default name patterns for network adapters in Network Manager have been changed. I believe that upgraded installations will keep their existing adapter names.

Citation (idea marked as being in development March 2011) :

http://brainstorm.ubuntu.com/idea/27250/

GNOME master bug (marked as fixed)

https://bugzilla.gnome.org/show_bug.cgi?id=587844


How to Install JDK 1.7 using a RPM package?

You question is a little bit confusing: you want to know how to patch this Eclipse behaviour or you want to update Java?

The title says 1 thing, the question says another.

If you just want to start eclipse using a specific version of a particular JVM you just have to open the file eclipse.ini in the same folder where the eclipse executable is and add this 2 lines:

-vm
/home/user/jdk/bin/java

This option is pretty self explanatory, you just use the -vm option and specify the full path of your jvm of choice.

If you want to install java from a package downloaded from the internet you need another guide, please be more clear.


Infinite login loop after installing nvidia drivers

Fixed issue: I had to change "acpi=off" to "pnpacpi=off"


I had the same issue with an Ubuntu 12.10 64bit usb install key. You don't give enough information to be sure, but for me it was impossible to boot anything from the USB without turning off Secure Boot in the bios (which makes sense - this is what Secure Boot is for!). Go into your bios, turn off secure boot, and give it a shot.


After doing tons of research I couldn't find anything that would work for Kubuntu. But I got some idea and found a keyrings directory here /home/bcc/.local/share/keyrings/. I removed all the files from this directory, then did a restart and everything was back to normal. Hope this will be helpful. I am using Kubuntu 18


I got a MSI Leopard GP60 2PE with two SSDs? :O

It's perfectly safe for Ubuntu to be installed on and run from that SSD. Linux don't need to stinkin' .exe files. ;-P

If you want to know, whether a Windows installation (e. g. in a dual-boot environment) will be affected by the removal of that file, you should ask on SuperUser. The people here are really good at removing Windows and installing Ubuntu, but they don't know know (or pretend to not know) much about Windows. It would also be off topic.


Set default template of libreoffice writer for all user

if you want to create a skeleton outline for new user folders, modify etc/skel which describes what is put into the newly created users home - this can have complex structures and hidden folders. You could place a copy in the Templates folder (in my Lidreoffice path, or in the appropriate .config path)
Y9u can check paths you are using with Tools -> Options -> Paths in Libreoffice.
This answer is relevant https://unix.stackexchange.com/questions/401362/can-i-write-a-template-for-creating-a-new-user
For existing users you could copy template into appropriate place either graphically or on command line depending on the number and your preferences. I am assuming you can sudo...


Compile OpenGL Program (Missing GL/gl.h)

I'd guess you don't have whatever dev package(s) provide gl.h. apt-file is the command line tool to use.

First, make sure it's up to date:

apt-file update

Now you can write a search to answer "what package provides the gl.h file?"

apt-file search "gl.h"

I don't have an ubuntu box just now to check, but I'd guess the result will be something like mesa-dev or opengl-dev.

Once you know what package provides "gl.h", (let's pretend the result from apt-file is "libmesa-dev"), install it:

apt-get install libmesa-dev

More info on the apt family of commands: https://help.ubuntu.com/community/AptGet/Howto


Hi Try to change to the main TTY terminal by pressing [Ctrl] [Alt] and [F1],
This takes you to TTY0 where you type in your loginname and [Enter]
Now you are asked for your password - type that in (beware it dosn't show your password, so you are typing blind.
Now run sudo apt-get autoclean
 - sudo apt-get autoremowe.
refresh the packetcash by running:
 - sudo apt-get update
upgrade your system with:
 - sudo apt-get upgrade.
after it finnishes you can get back to the GUI by this command
 - chvt 7
Best of luck.


Ubuntu 16.04 booting into initramfs screen

The following BIOS settings for Dell Ubuntu system resolves the issue:

General Section > Boot Sequence > UEFI

System Configuration Section > SATA Operation > AHCH

Secure Boot Section > Secure Boot Enable > Disabled


Using Ubuntu command line to replace text in huge file

I don't think tr can replace sequences of characters (just single characters at a time, albeit possibly from a set) - I would try something like

sed 's|</ROW>|&\n|g' source.xml > destination.xml


Don't raise window on click (while hold)

I'll answer this question myself, in case someone else looks for this feature. As said, I was unable to make it work with Compiz, then for some other reasons I decided to remove Compiz and install Unity 2D with Metacity. Good move for me, as now I found that while holding Ctrl or Super key, application used as drag & drop source isn't raised :)

Let me explain once more using Linux naming:

Maximize Nautilus (it doesn't have to be miximized of course, but it's easier to explain this way). Launch Gedit. While GEdit is on top, press Ctrl or Super, then drag some text file from Nautilus and drop it on Gedit window, which is still on top and even did not lose focus.


Running Script made in Visual Studio Code (on windows) on WSL Ubuntu returns "line 2: $'\r': command not found"

In the bottom-right corner of the window there is an indicator that
  says CRLF or LF [highlighted in green on the picture] which will let you set the line endings for a
  particular file. Clicking on the text will allow you to change the
  line endings as well.

  CR is a bytecode for carriage return (from the days of typewriters) and LF similarly, for line feed. It just refers to the bytes that are placed as end-of-line markers.

Sources and references:

Visual Studio Code: How to show line endings.
VSC on GitHub: How to replace characters as newline break.
Difference between CR LF, LF and CR line break types?


Writing bash conditionalwith nested piped command

You should use command substitution:
if [ $(aws s3 ls s3://bucket/dir | grep _SUCCESS | wc -l) -eq 0 ]
then
    echo FAILURE;
fi

or in a line:
if [ $(aws s3 ls s3://bucket/dir | grep _SUCCESS | wc -l) -eq 0 ]; then echo FAILURE; fi

Better solution as "@steeldriver" suggested use using grep's exit status :
if aws s3 ls s3://bucket/dir | grep -q _SUCCESS; then echo FAILURE; fi

or:
aws s3 ls s3://bucket/dir | grep -q _SUCCESS || echo FAILURE


Try installing java-common and libappindicator3-1 like apt is suggesting.

do:

sudo apt install libappindicator3-1 java-common

That should fix up most of the oracle java errors (for dpkg system).

There is another way to install JAVA on your system, one which does not depend upon your apt system.

You can download the non deb version of Java from Sun and the install instructions are here.

To ensure the correct java is called:

First install the downloaded java as an alternate:

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0.05/bin/java 1

This is assuming that you have installed the java (which you just downloaded) into /usr/lib/jvm/jdk1.8.0.05/

You may change this location as per your install.

Next, set this one as default, Do:

 sudo update-alternatives --config java

and choose the version you want as default.


light and simple like Leafpad but with Highlight Misspell words and Spelling Suggestions like Gedit

LibreOffice Write would be massively too heavy for you I suspect but well worth a look is Abiword which has the features you are after:

Relatively lightweight
Highlights bad spelling
Allows right click suggestions for spelling

I would say that it is not as fast as Leafpad but the extra features do come at a price. Abiword is certainly fast enough on my ancient Latitude D520 laptop.

Install it as follows:

sudo apt-get install abiword

Below is a screenshot demonstrating the features you were after in Abiword running on Trusty Tahr:


Using a DisplayLink USB video adapter on Ubuntu 12.10

I just added "blacklist udl" to /etc/modprobe.d/blacklist-custom.conf

and commented out "blacklist udlfb" from /etc/modprobe.d/blacklist-framebuffer.conf

This was enough to get the monitor to display the green screen of success.

After that it's just a matter of setting up xorg.conf in the same way as previous Ubuntu versions.


How to remove Ubuntu 10.10 GRUB bootloader?

This is what I think has happened. It will help you to learn from the experience as we all learn one way or another.

When you installed 11.10 it put its Grub into the MBR (Master Boot Record) of the hard disk and looked for its configuration files in the 11.10 file system. And so you get a purple background to the Grub Menu.

Then you installed 10.10 and it put its Grub into the MBR and so you got a black background to the Grub menu.

Now that you have uninstalled 10.10 you get a Grub prompt because the 10.10 Grub is the controlling Grub and it cannot find its configuration files in the 10.10 file system.

If you had run sudo update-grub from 11.10 you would not now have this problem for that command would have made the 11.10 Grub as the controlling Grub. This link will help you fix it.

Grub 2 Basics

Note point 13, Reinstalling Grub 2 from a LiveCD. Follow those instructions and you will fix your problem. To make it easy to avoid this issue in the future I have included this link:

Grub Customizer

I have found Grub customizer most useful for avoiding this problem and for configuring the Grub menu. I recommend it.

With thanks to Daniel Richter a Ubuntu Forum staff member.

Regards.


Why doesn't the new version of Ubuntu 10.10 show up in Update Manager?

On LTS versions of Ubuntu the default behavior is to not alert you about new releases unless they are LTS releases. To change this go to:

System > Administration > Software
Sources
Click the Updates Tab
Change the "Show new distribution releases" to "Normal Releases" (the pull down box is under the Release Upgrade section).
After doing so Software Sources should ask you to refresh your repositories
After
    refreshing go to the Update Manager
    (System > Administration > Update
    Manager) and a button to upgrade to
    Maverick will be revealed


Hibernation/suspend - nvidia/nouveau - Tried everything, still not working, any idea?

Just to confirm thirtman: I"m running 12.04 32bit on an Asus laptop with Geforce 9650M GT. Ran find under maverick with proprietary driver. Upgraded to 12.04, where nvidia was replaced with nouveau. Suspend worked initially, hibernation did not. However, suspend with an external monitor connected did lead to the black screen upon resume. So I thought nvidia current was a good idea. To no avail. Get the same black screen, but now even when I resume from suspend without external monitors. nvidiacurrent (302.17) leads to unstable behavior, first small parts of the frame flash, after a few minutes the screen goes black, then immediately white, and slowly a black pixel structure emerges from the top and bottom of the screen. Looks quite nice, except system doesn't respond to any keys. I reinstalled nvidiacurrent several times, the system ran smoothly on the first one or two boots after reinstallation for a whole day, but then goes unstable every time.
Very annoying.
For the record: after deactivating nvidiacurrent, I had to also remove /etc/modprobe.d/nvidia-current-hybrid.conf by hand to restore the nouveau driver


How to get Apple Color Emojis to work on Ubuntu?

The Apple Color Emoji font will not work in Linux and is not licensed for use outside Apple products.

I'll assume your actual goal is simply displaying color emoji on Linux. You can install EmojiOne Color or Twitter Color Emoji for full color emoji, including skin tone diversity, and country flags.

Note: The font uses the SVG-in-OpenType format and will currently only show color emoji in Firefox, Thunderbird and other Mozilla Gecko-based applications. This is not a limitation of the font, but of the operating systems and applications. Regular B&W outline emoji are included for backwards/fallback compatibility.

Available for manual installation on the Github release pages or via my Launchpad PPA:

sudo apt-add-repository ppa:eosrei/fonts
sudo apt-get update
# Choose one!
sudo apt-get install fonts-emojione-svginot
# Or
sudo apt-get install fonts-twemoji-svginot

EmojiOne Color in Firefox:

Twitter Color Emoji in Firefox:

Probably obvious, but full disclosure anyway: I made both fonts.


Cannot open some websites when using OpenVPN in Ubuntu

I have the same problem as you. What I did is that in FireFox I go to Preferences > Advanced > Settings, And change several times Configure proxies to connect to Internet.

Doing this I can visit all of sites.

But there might be a deeper reason for that and I think it relates to some configurations within dns.

But I don't know how to resolve the problem with changing my dns.


Is there a way to use GIT to manage OS packages so that if i 'sudo' break something I can easily revert?

There's some tools that can do the job using snapshots (not like version control systems):

Systemback:

  Simple system backup and restore application with extra features

  Systemback makes it easy to create backups of system and users
  configuration files. In case of problems you can easily restore the
  previous state of the system. There are extra features like system
  copying, system installation and Live system creation.

  Installation:

sudo add-apt-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback

BackInTime:

  Back In Time acts as a “user mode” backup system. This means that you
  can backup/restore only folders you have write access to (actually you
  can backup read-only folders, but you can’t restore them).

  If you want to run it as root you need to use “su” (command line),
  “gksu” (Gnome) or “kdesudo” (KDE).

Installation:

sudo add-apt-repository ppa:bit-team/stable
sudo apt-get update
sudo apt-get install backintime

TimeShift:

  TimeShift for Linux is a application that provides functionality
  similar to the System Restore feature in Windows and the Time Machine
  tool in Mac OS. TimeShift protects your system by taking incremental
  snapshots of the file system at regular intervals. These snapshots can
  be restored later to bring your system to the exact state it was in at
  the time when the snapshot was taken.

  TimeShift is designed to protect only system files and settings. User
  files such as documents, pictures and music are excluded. This ensures
  that your files remains unchanged when you restore your system to an
  earlier date. If you need a tool to backup your documents and files
  please take a look at the excellent BackInTime application which
  is more configurable and provides options for saving user files.

  Installation:

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install timeshift


Ubuntu 20.04 activities overview (super key): windows only can be selected by Down Arrow key

Likely because the focus is on the search field at the top. When you press the down arrow, you're moving the focus from the input field to the grid of applications. You can't go left or right to the grid from the input field, because the windows are below, so down arrow is correct.
This is (I believe) the default behaviour in GNOME, so if you desire a change to this, I think you'd need to file a bug upstream against GNOME Shell.


ubuntu-18.4 - multiple IP addresses via NetworkManager are failing

From the comments...

When configuring the NetworkManager GUI for multiple IP addresses on the same connection profile...

Don't enter the Netmask as 24, use 255.255.255.0.

Like so...

Address     Netmask   Gateway
a.b.c.34  255.255.255.0   a.b.c.1
a.b.c.35  255.255.255.0   a.b.c.1
a.b.c.36  255.255.255.0   a.b.c.1
a.b.c.37  255.255.255.0   a.b.c.1
a.b.c.38  255.255.255.0   a.b.c.1


I am founding "not found /etc/locale.conf " issue in my pc

I believe that you can simply create this file and add your desired configuration to it, like:

LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_NAME="en_US.utf8"

Or whatever you want. Actually, by default this file does not exist on my machine too.

The other file that I believe systemd uses is:

/etc/default/locale

If you set a locale using localectl like:

localectl set-locale LC_TIME=en_GB.utf8

It will be add to that file:

$ cat /etc/default/locale
LC_TIME=en_GB.utf8

Remember that you can allways get a list of available locales by localectl list-locales or: locale -a.

And if the locale you are looking for is not in the list, first uncomment it from: /etc/locale.gen, then run locale-gen, and use localectl or whatever why you prefer to set your preferred locales.


Have you tried

sudo ifdown eth0 && ifup -v eth0


Without specifying what you're doing exactly, it's hard to say this is an actual problem.

There's a common misconception that utilizing a lot of memory is bad.  However, unused memory is a waste.  It's like keeping a warehouse mostly empty because you think it's cleaner.  By keeping as much as you can in memory, it saves having to go to disk and also reloading content needlessly.  As long as the program is good about letting go of memory it doesn't absolutely require to other programs, it's not a problem.

If it's a memory leak on the other hand, that would be a big problem.  You can check this by closing all your tabs except say a blank one.  Then start loading other memory intensive programs.  If you have another browser installed, like Chrome, start loading massive pages in it.  If Firefox is still showing massive memory usage, then it's a leak.  Your system will likely become sluggish from the other programs demanding unavailable memory.

It might be Firefox, but often it's an add-on or combination of add-ons causing the leak.  You can disable all add-ons by starting Firefox in safe-mode from the terminal, firefox -safe-mode, to see if you have the same thing happen.

If you're saying that with just a few "light" websites open, and not doing anything in Firefox, that Firefox just starts taking up more and more memory, then it's plausible it's just Flash or some script going nuts.  This is why I put "light" in quotes.  It's unbelievable how badly some simple-looking sites are designed.


MT7630e ralink wireless driver for ubuntu not available!

You can use a nifty bit of software called Ndiswrapper to utilize a Windows wifi driver on Ubuntu.

Just follow this awesome Ubuntu help doc, and you'll be set:
https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper


It saves automatically, so no need for an Apply button in this case.


You need to find the PPD for your printer and install it (the /lpd/ dir is not created by default on Ubuntu; so if it is not yet there create it).

sudo mkdir -p /var/spool/lpd/
sudo dpkg --install {printerfile}.deb

The command to add a printer is

lpadmin

But you will need to add a lot of options to this command that are specific to your printer. Help will show you:

    lpadmin [-h server] -d destination
    lpadmin [-h server] -x destination
    lpadmin [-h server] -p printer [-c add-class] [-i interface] [-m model]
                       [-r remove-class] [-v device] [-D description]
                       [-P ppd-file] [-o name=value]
                       [-u allow:user,user] [-u deny:user,user]

You will need at least a name and an IP. Without any more information about the printer a detailed answer is unlikely.

lpinfo -m should show make and model
shortest version:

lpadmin -p '{name}' -v 'socket://{ip}' -m '{make}{model}' -P '{path/to/the/printer.ppd}'

The GUI is a lot easier though. It has several automated settings (like scanning for printers).


Are u facing the issue on laptop or desktop?

I faced this issue and after much struggle, I am able to resolve the issue. I was not able to use my laptop as my HDD was getting too hot.

Do the following and come back with the result.

install powertop
run it in sudo and go to the last tab in that application.
Check if you are seeing some thing like "SATA Link..." as bad power setting.

If you see as above reply to this mail. I will provide the solution.

Good you have the same problem. Try these

Follow the link to install TLP TLP
Once installed open the file /etc/default/tlp
Search for SATA in that file.

make the changes as follow:

#SATA aggressive link power management (ALPM):

#min_power/medium_power/max_performance

SATA_LINKPWR_ON_AC=min_power

SATA_LINKPWR_ON_BAT=min_power

If you still want more optimization follow these
a. Add noatime,nodiratime to your root mount disk property in /etc/fstab

Here is my example:

UUID=2961c207-9781-425e-9e6e-18641b21e52c /               ext4    errors=remount-ro,noatime,nodiratime  0       1

Reboot the machine for all changes to take effect.

Do this you HDD will cool down. :)


How to use Netplan in Ubuntu 17.10 to add IP addresses for Wireless iface

You can find information on configuring wireless interfaces and assigning multiple IP addresses to the same interface at https://netplan.io .

Specifically something like the following is likely what you want (assuming you are using DHCP and adding static addresses, you don't really say)...

network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0b1:
      dhcp4: yes
      dhcp6: no
      addresses: [192.168.1.8/24, 192.168.1.9/24]
      access-points:
        "network_ssid_name":
          password: "**********"


Dual booting Ubuntu 20.04 with Windows 10

By disabling Secure Boot in the Bios, installation of Ubuntu 20.04 completed successfully. The comments about the latest Ubuntu software being compatible with Secure Boot must be erroneous.
Thanks to oldfred for all his help and suggestions.


Send apport reports to private server instead of Canonical

It's the whoopsie service, not the apport application.

Simply edit /lib/systemd/system/whoopsie.service to point to your own server instead of daisy.ubuntu.com.

The basic process of crash reporting is:

Apport detects a crash and generates a .crash file. Then apport triggers whoopsie.
Whoopsie sends the .crash file to daisy.
Daisy sanitizes the crash file, files the bug report (if new), and aggregates the errors for http://errors.ubuntu.com

Um, do be aware that we cannot fix bugs and crashes that do not get reported to us.


How do I invert windows colors using Compiz?

you need to install the compiz plugins packages.

sudo apt-get install compiz-plugins compiz-plugins-default compiz-plugins-extra compiz-plugins-main

an after this you'll get a plugin for negative color for window or screen.


my localhost/phpmyadmin is being directed to my site with .htaccess

Have you checked the Apache configuration file that defines virtual hosts?  I'm pretty sure it's normally accessed at /etc/apache2/sites-enabled/000-default (I say pretty sure, because this is normally a link to ../sites-available/default, and sometimes people change these files around a little).

First, I'd look more closely at .htaccess (something I'm not as knowledgeable about as I'd like to be).  But you might try substituting a vanilla .htaccess temporarily to see if that makes it work to confirm whether it is the culprit.  Or you can just temporarily rename it to disable it.

If you find this is the culprit, then disabling individual lines one at a time should narrow it down to something tangible.

I'd next look for an entry for phpmyadmin, possibly for a "VirtualHost" entry for it with a Directory entry to domain.  Normally, phpmyadmin isn't in this file, though.

I don't think there's anything about phpmyadmin itself that would cause this.   Do other subdirectories of your domain work correctly from a direct URL?


Acer C7 Chromebook running 13.10 slow Performance Graphics?

Hey sorry if this is to late, not sure if youve solved this or not but for anyone having trouble still the solution is to upgrade your linux kernel, however if you are running Chrubuntu, you will get an error since the new kernel is not compatible, to get around this you should look into Sea-Bios legacy boot, it essentially is GRUB and allows you to install an OS from a USB. More information can be found here ;) https://johnlewis.ie/custom-chromebook-firmware/rom-download/ this is the download page for Sea-Bios, then you should look for your model chromebook.

WARNING: to use this you need to follow all directions on the page, Including disabling write protection which WILL VOID YOUR WARRANTY and you need to know your GPU model (for the Acer C7 its either 847 or 1007u)

Hope This Helps =)


Display Directory Listing of .htaccess password protected directory

Add the line

IndexOptions +ShowForbidden

to the .htaccess file in parent folder of your protected folder.


How do I install the necessary debug packages to report tracebacks in Kubuntu?

Documents

KDE: http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

It has a Kubuntu section: http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports#Kubuntu

Do you have the package: kdelibs5-dbg installed ?

Kubuntu bug wiki: https://wiki.kubuntu.org/Kubuntu/Bugs/Reporting


BIOS Showing 8 GB RAM while Xubuntu only Showing 7 GB

I realized that the BIOS Surround View setting was not necessary for my triple monitor setup. This setting is only necessary if I were using Windows. I disabled this setting. Now free -m says 7867 MB of memory. So, that setting was reserving quite a bit of memory.

However, after disabling the Surround View setting in BIOS, the triple monitor layout display settings are not preserved after logging out. To fix this, I arranged my displays with arandr, exported the display layout script, and then added it to Session and Startup (Xfce).


The package you are looking for is imagemagick. Confirm that you have all sources check marked in "Software and Updates":

and then update the package list by opening a terminal(Ctrl+Alt+t) and then typing the following:

sudo apt-get update

and enter you password and then

sudo apt-get install imagemagick php5-imagick

and then press Return to confirm the installation.


How to set up mail in terminal to use email?

If you only want to send emails, do this.

Install ssmtp with this command:

sudo apt-get install ssmtp

Open up the ssmtp configuration file with:

sudo vim /etc/ssmtp/ssmtp.conf

and edit the file so it looks like this:

root=YOURUSERNAME@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=YOURUSERNAME
AuthPass=YOURPASSWORD
UseSTARTTLS=YES
UseTLS=YES
mailhub=smtp.gmail.com:587

The above is an example with gmail. You have to change the mailhub and root lines if you're not using gmail. (For yahoo mail change the mailhub line to mailhub=smtp.mail.yahoo.com:587)

After this is done you will be able to send mail like this:

echo "Test message" | mail -s "Test subject" user@gmail.com


You would need to either:

Change the write permission of the target directory (in this case /mnt, which is a system folder owned by root by default) so it is accessible by your own user, or
Change the target directory to somewhere where your user has write access.

Either of those ways will prevent you from having to use sudo.


Gedit error: Settings schema 'org.gnome.gedit.plugins.time' is not installed

Let's start by identifying exactly what file is causing the issue - something like

$ find /usr/share -iname '*schema*' | grep gedit
/usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.gedit.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.pythonconsole.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.externaltools.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.gschema.xml

The first result appears to be the file we are looking for. Now we can check which package provides that file

$ dpkg -S /usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml
gedit-common: /usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml

So it looks like gedit-common is the relevant package - assuming that the schema file got manually deleted somehow, you should be able to restore it by re-installing the package, either from your GUI package manager of choice or from the terminal using

sudo apt-get install --reinstall gedit-common


change default home folder application for ctrl+super+E

In Settings go to Keyboard -> Shortcuts -> Custom Shortcuts (along the side)
Click the little + button
In the little window that pops up, give it a name and the command nautilus. (By default it will open the home folder. You can specify
a path to a folder if you like.)
Click OK
Click on 'Disabled' and set it to Ctrl + Super + E by holding the keys and releasing them.
Click 'All Settings' along the top.
Then press Ctrl + Super + E

Let me know how it goes :)


Ubuntu 16.04 NVidia Driver works until reboot

After wasting about 10 hours of my life over this for the past few weeks, I've finally found out what the problem was.

I went back to my original way of installing the driver as in the question.

After powering on my machine, I was in 640x480 mode, so I opened a shell and typed...

> lspci -nnk | grep -iA2 vga

After a fresh reboot it was listing...

bret@bret-Precision-WorkStation-T5500:~$ lspci -nnk | grep -iA2 vga
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
        Subsystem: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380]
        Kernel modules: nvidiafb, nouveau, nvidia_352

After stopping lightdm, re-installing the driver and starting it again, the command output was...

03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
        Subsystem: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380]
        **Kernel driver in use: nvidia**

I then remembered what I did when I originally set up the machine with Ubuntu 14.11, I had to blacklist the other two modules by adding...

# Blacklist modules that conflict with NVidia driver...
blacklist nouveau
blacklist nvidiafb

to /etc/modprobe.d/blacklist.conf

Now when I reboot, everything works.


using sed to loop through records in a file and use grep on all records

If I understand you correctly, then given

$ head File\ {1..3}
==> File 1 <==
foo
Pattern 1
bar

==> File 2 <==
foo
bar
baz

==> File 3 <==
Pattern 3
foo
baz

and

$ cat infile
File 1
Pattern 1
File 2
Pattern 2
File 3
Pattern 3

then

$ sed -E '$!N; s/(.*)\n(.*)/grep -H -- "\2" "\1"/e' infile
File 1:Pattern 1

File 3:Pattern 3

or

$ while read -r file; do
    if read -r pattern; then grep -H -- "$pattern" "$file"; fi
  done < infile
File 1:Pattern 1
File 3:Pattern 3


You only get the one launcher in Unity, but you can simulate a second one if you use a combination of AWN and DockbarX with the appropriate theming. This is how I got a Unity-like interface on my 10.04 LTS desktop before 11.04 came out. The advantage of this is that the second panel that you created is then fully customizable, so you can create the setup you have just described.
DockbarX is not available to install from the default Ubuntu repositories, so I'll show you a way to simulate a second launcher using only AWN, which is available right from the Ubuntu Software Center. I did the steps below on my Precise Pangolin install, but you should be able to follow them on 11.10 as well and most likely older releases.
Simulating a second launcher with AWN
Our goal is to get a second launcher on the right, as pictured below:

First, we need AWN (Avant Window Navigator) installed. Click here to install it, or run in a terminal:
sudo apt-get install avant-window-navigator

This should also install awn-settings, which will let you manage the settings for AWN.
Now start AWN Settings by searching for it in the dash, and let's start setting up the second launcher.
You'll get a window like that below:

Change all settings to those shown above.
Next, go to the Applets screen. We'll be using the below configuration (but feel free to modify as you please):

The applets, from left to right (the ordering matters), are:

Cairo Main Menu
Launcher/Taskmanager
Related applet
Shiny Switcher
Expander (Needed to keep the previous applets near the top and the trash at the bottom)
Garbage

Next, go to Themes and select the Dark Theme. We'll use this as a base for the exact look we want.
Click the Customize button near the bottom of the window to enter this view:

There's a lot of tweaking to do in here. Here are the following changes you need to make (note: I listed colors as a hexadecimal value, or "Color name", and Opacity):
Panel Colors

First Gradient Color: #000000, 170
Second Gradient Color: #000000, 170
First Highlight Color: #000000, 0
Second Highlight Color: #000000, 0
Outer Border Color: #808080, 100
Inner Border Color: #000000, 0

Tooltips

Font: Ubuntu 11
Fill Color: #000000, 170
Outline Color: #FFFFFF, 100

Extras

Arrow type: Triangle

In case you're wondering: nope, still not quite done yet! There's some extra settings we need to take care of to position the launcher correctly; otherwise, it'll run over the menu bar at the top of the screen.
Now go into the Advanced screen:

Make sure Force monitor mode? is checked.
Now, make sure you set the following settings to what I've described below. If you don't know what your display resolution is, you can easily look it up by searching for "Displays" in the dash or System Settings.

Monitor width: Your actual monitor width in pixels
Monitor height: Your actual monitor height in pixels, minus 24
Monitor X-offset: 0
Monitor Y-offset: 24

For good measure, we should also set Reflection alpha multiplier to 0 while we're in here.
Almost done! We have a couple applet tweaks to make, if you decided to keep the Shiny Switcher and Garbage applets I suggested above so they're more like regular Unity. To enter the preferences for either applet, right-click it and select Applet Preferences from the pop-up menu.
Shiny Switcher Preferences
Check that the settings are the same as those pictured (the colors selected are #000000, 255):

Garbage Preferences
Keep Confirm when emptying the trash checked, but uncheck Show the item count on the icon.

One more note! To test out your settings and make sure everything looks right, or if you did not set AWN to start automatically, search
for "Avant Window Navigator" in the dash. I personally found that
certain settings changes may require quitting AWN (via right-click on
the dock itself) and restarting it in order for them to display
properly.


Start up of the windows is been stopped by ubuntu

How did you uninstalled Ubuntu? Also, post here output of commands lsblk and sudo blkid using terminal.

Solution:
Go to BIOS(UEFI) and change boot option #1 (boot order) to Windows Boot Manager. (This will skip bootstrap (=grub) of Ubuntu and start Windows first.)

You can enter BIOS with pressing Delor Escwhen computer is booting.


How to install Ubuntu 13.10 on Acer C7 Chromebook via USB?

Acer C7's stock firmware won't let you boot Ubuntu USB images.

I've had some success overwriting the stock firmware with coreboot / seabios by following instructions here: http://johnlewis.ie/pre-built-coreboot-firmware-for-chromebooks/ It's a warranty voiding procedure.

After that, it should boot any linux live CD, installer images from USB sticks. I've verified this with the Ubuntu default usb-creator-gtk and have detailed my experience here: https://askubuntu.com/a/361561/97517


Installing and running Linux on this device is a challenging task. It would require  intermediate to advanced knowledge in Linux.

This is because the Linux kernel shipped with Ubuntu Desktop doesn't entirely support the hardware(It's made for Desktops!), and so many non-critical hardware like WiFi, Audio, Webcam may not work. Still it's possible. But the ultimate solution

Hence you will have to try third-party kernel modules, find and install opensource drivers for not-working hardware manually, test different kernels etc. to get the entire system working.

That being said, here is a good guide which will get you going. Some excerpts from the page which answers your question:

You need to boot Ubuntu USB on the device. As mentioned in the above page, this computer has a UEFI firmware without legacy mode emulation (or disabled). What we will do is to load grub on the device and manually boot Ubuntu from it. Fot this, you will need a externally powered USB hub, and two flash drives, one with the boot loader and other with Ubuntu.

Go to the UEFI menu and Disable Secure boot. To make a bootable USB stick, format the other USB drive in MBR format  with a single FAT32/LBA partition (type 0x0C) and put the bootloader as EFI/boot/bootia32.efi.
Generate the grub image with the modules specified in the guide.
Boot into the USB and GRUB should load.
Now manually boot into the Ubuntu USB from the grub command line. Here is a good webpage describing the process.


Sound loss on Gigabyte Z370 Aorus Gaming Wifi motherboard

Well... after some random update of my Ubuntu 20.04 this issue has disappeared. Ubuntu team resolved the problem as it turns out... I think.


I have to get Ubuntu for a project.

You need to be more specific than that. What are the requirements? Running a Desktop environment? Some people achieved doing that with xming, but it's not recommended and not a setup we support here at AskUbuntu. If you just need Bash it might cover your needs, but you will need to switch your installation to receive Insider builds, because this feature hasn't been officially released yet. Insider builds are not ready for production, so you shouldn't use these unless your project is about evaluating this particular feature in its current state. Another downside is that new Insider builds are very similar to certain stages of (re-)installing Windows, they take a considerable amount of time complete and are heavy in disk utilization. (New builds land every few weeks but on occasions they can happen more than once in a week.) Clearly, it's not for production use on just one laptop you may have. (I have spare devices like a Windows Phone, an older Laptop and a VM in the fast ring, so I have some experience with Insider builds.)

Use a VM. Best of all, you can snapshot any time.


Fan control for i5 in Lenovo T520 not working

A few things you can try:

(source) Edit /etc/default/grub and add acpi_osi='Linux' to the GRUB_CMDLINE_LINUX_DEFAULT variable:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi='Linux'"

Then run sudo update-grub and reboot.
For tips on controlling a Lenovo's fan, have a look at this page. The thinkwiki webpage in general is always a great source of info for Linux on Lenovo machines.
There is a very nice utility called "Simple ThinkPad Fan Control" which allows you to fine tune the trigger temperatures that change the fan's speed.
If you are on a Dell machine (I know you are not, but someone else may read this), use the i8k module:

sudo apt-get install i8kutils
sudo modprobe i8k
sudo i8kfan 0 1

If you are dual booting with windows, check the fan settings there. I had a similar problem and the power settings in windows were making changes in the BIOS which then would affect my linux system as well.


The correct syntax is:

if [[ "${sev[1]}" == "CRITICAL" ]]; then
   echo "shte"
fi

Take a look for Advanced Bash-Scripting Guide:Arrays

UPDATE:

I make a test. I think you miss with array numbers sev1 is not critical it's INFORMATIONAL. sev[0] still have CRTITICAL and not empty

Here a simple test:

sev=( CRITICAL INFORMATIONAL )

if [[ "${sev[0]}" == "CRITICAL" ]]; then    echo "shte"; fi

output is:

 shte

Now:

if [[ "${sev[1]}" == "CRITICAL" ]]; then    echo "shte"; fi

output is Empty


You mention bank login and firefox... so I suspect this is java related. And Java is one of the few differences between Ubuntu and Mint. Also, please notice that Unity 3D is far more resource-consuming than cinnamon/mate


Digitalocean droplet boot drops to a (initramfs) prompts/busybox

This issue is caused by the UUID in the /etc/fstab file not matching the UUID of the disk itself. DigitalOcean Support team have set my Droplet to boot to recovery mode. Then I power off and on the Droplet from the control panel. From the recovery mode, I mounted my droplets disk. I viewed the correct UUID with the command "blkid" and then edit the /mnt/etc/fstab file after mounting my disk to correct this. Then I power off and on the Droplet from the control panel once again. DigitalOcean Support team set the Droplet to boot normally. Then droplet worked very well.


When battery in your laptop goes below a threshold, it is hibernated and shutdown.
In the process of hibernation, the contents of RAM is dumped into the SWAP partition.
References:
https://superuser.com/a/1203014
https://help.ubuntu.com/community/SwapFaq#Why_do_I_need_swap.3F
Edit: Post Ubuntu-18.04, Ubuntu automatically creates a swap file in root file system if a separate swap partition is not made.
Ref: https://askubuntu.com/a/1234843/1107236


In order to remove the anchor icon from docky, you must first upgrade to the most recent version. To do this, you need to add the development PPA to your list of software sources. On Ubuntu 9.10 and later, you may do this by typing:

sudo add-apt-repository ppa:docky-core/ppa

and then refreshing the list of packages with

sudo apt-get update
sudo apt-get upgrade

This may not trigger the update, in which case you should open Synaptic package manager, and search for docky. Finding the docky package, select it and use the menu item Package->Force Version. This will let you select the version of docky to install. The fix to remove the anchor icon requires version 1.0 or later.

Once you have the Docky-Core PPA version installed (the latest version is 2.2 against the 2.0.6 you find on the default repository), you may disable the docky icon by:

Open gconf-editor by pressing Alt+F2 and typing gconf-editor.
Navigate to apps/docky-2/docky/items/DockyItem.
Deselect the ShowDockyItem key.
Restart docky.

After you have disabled your anchor icon, you may still access your docky preferences by right clicking any dividers you may have on the dock.


Ubuntu 16.04 Wifi stopped working after 2 years on Dell XPS

Try:

sudo systemctl restart network-manager

Sometimes WiFi breaks and restarting helps.


Rex.  I cannot find definitive proof of this (I am sure there is some hack to get around it) but it looks like Ubuntu intended that you could only "star" things under your own home directory.
I attempted to see if I could mount a disk in a folder under Home and get "star" to work - no good.


kubuntu 15.10 freezes intermittently - suspected compositor fault

Had similar problem with 16.04 and 16.10 - the box stopped responding to keyboard and mouse. Switching to Compositor settings to XRender seems to resolve it.
System Settings -> Display and Monitor -> Compositor -> change Rendering backend to XRender


How to completely remove Elementary-Desktop from Ubuntu 14.04

Reset Unity:

unity --reset

Or you can try to

Reset Theme:

gsettings set org.gnome.desktop.interface gtk-theme ''
gsettings set org.gnome.desktop.wm.preferences theme ''


Touchpad Ubuntu 14.04 starts working after a while

Let me just start by saying that I'm pretty new to linux as well, but I was having the same problem with my trackpad on my dell 7352.

I'm running manjaro with i3 DE so I'm not sure how this will work on ubuntu.

After a lot of googling I managed to get my trackpad working. Apparently whats happening is your trackpad is getting stuck in i2c mode which I guess isn't supported in your linux kernel, which explains the errors you get on boot-up. The idea is to force your mouse into ps/2 mode.

Here is what I did.

This will create the blacklist.conf file that you will need to edit (make sure the file doesn't exist already):

# checking the files existence (this will list either the file or throw an error
ls -l /etc/modprobe.d/blacklist.conf

# if you got an error do this if not skip
sudo touch /etc/modprobe.d/blacklist.conf

Then make sure you have permission to edit by doing:

sudo chmod 644 /etc/modprobe.d/blacklist.conf

Now you need to open blacklist.conf in whichever text editor you prefer, I used gedit so I typed (you can install gksudo with sudo apt-get install gksu):

gksudo gedit /etc/modprobe.d/blacklist.conf

Add the following line to the blacklist.conf file which should currently be empty:

blacklist i2c-hid

now save the file and reboot your computer.

After doing all the steps I listed, my trackpad started working. On a side note, I also had trouble with my trackpad not working when I was using elementary OS before. When I first logged in, it wouldn't work but if I closed my laptop and reopened it, the trackpad started working.

Hopefully some of this info helps!


Remove except some files/directories in a script; need revision

You don't even need a script. If you're using bash, you can turn on extglob and give negative patterns:

$ ls
foo.avi  foo.bbl  foo.bib  foo.log  foo.png  foo.tex  foo.txt  foo.wav
$ shopt -s extglob
$ rm !(*tex|*bib|*png)
$ ls
foo.bib  foo.png  foo.tex

As explained in man bash:

   If the extglob shell option is enabled using the shopt builtin, several
   extended  pattern  matching operators are recognized.  In the following
   description, a pattern-list is a list of one or more patterns separated
   by a |.  Composite patterns may be formed using one or more of the fol‐
   lowing sub-patterns:

          ?(pattern-list)
                 Matches zero or one occurrence of the given patterns
          *(pattern-list)
                 Matches zero or more occurrences of the given patterns
          +(pattern-list)
                 Matches one or more occurrences of the given patterns
          @(pattern-list)
                 Matches one of the given patterns
          !(pattern-list)
                 Matches anything except one of the given patterns

With zsh, the equivalent is:

setopt extended_glob
rm ^(*tex|*bib|*png)

If you still want to write a script for this, just concatenate the arguments you give it, but don't use wildcards (*), let the script add them (thanks to @Helios for suggesting a simpler version):

#!/usr/bin/env bash

## Iterate over the arguments
for i
do
    ## Add them to the pattern to be excluded
    pat+="*$i|"
done
## Activate extglob
shopt -s extglob
## Delete non-matching files
rm !(${pat})


How to enable JPEG2000 (jp2) in ImageMagick?

Install libopenjp2-tools and use opj_decompress to convert jp2 to something else:

sudo apt install libopenjp2-tools
opj_decompress -i m_3712213_sw_10_h_20160625_20161004.jp2 -OutFor TIF -o my.tif

This package provides with command-line tools allowing for conversions between several formats and also provides tools for encoding and decoding motion-jpeg2000 video formats:

opj_decompress: decodes j2k, jp2, and jpt files to pgm, ppm, pnm,
              pgx, and bmp.
opj_compress: encodes pnm, pgm, pgx, bmp, and ppm files to j2k,
              and jp2.
opj_dump: dump information contains in j2k and jp2.
index_create: create jp2 with JPIP index file from a j2k file.
frames_to_mj2: convert YUV video streams to mj2 format.
mj2_to_frames: convert mj2 video streams to YUV format.
wrap_j2k_in_mj2: wrap j2k codestreams into mj2 format.
extract-j2k-from_mj2: extract j2k codestreams from the mj2 format.


ubuntu 14.04 LTS is making a weird strange sound like radio frequency

This issue happened to me again so I started closing the applications one by one to eliminate the problem software, guess what is was Skype.

I had to close it to remove the strange sound, and I stared it again to use it.


You can do it in a for loop by starting at the 7th character of each file (remember counting starts at 0) and saving the last 4 characters of each file.
for f in video_*; do mv $f ${f:6:4}; done


I'm not sure how elegant is the method below. But it works normally for me.

I'm using ReText as Markdown editor and plan to use

[link-to-pdf](pdf-filename.pdf#page=2)

syntax for PDF with page number.

So I have defined my local xdg-open wrapper script:

mkdir /home/$USER/bin
echo "export PATH=/home/$USER/bin:$PATH" >> .bashrc

and placed the following code to /home/$USER/bin/xdg-open:

#!/bin/sh

pdfviewer=atril
filename="$1";

case $filename in
    *.pdf#page=*)
            file=$(echo "$filename" | cut -d "#" -f 1);
            page=$(echo "$filename" | cut -d "#" -f 2 | sed "s/page=/-p /");
            $pdfviewer "$file" $page ;;
    *)      /usr/bin/xdg-open "$@" ;;
esac

This script should be executable (set with chmod +x /home/$USER/bin/xdg-open), and it will be used only if .pdf#page= will be found, otherwise it will use system-wide /usb/bin/xdg-open.

I have tested this method with Atril PDF viewer on my Ubuntu 16.04 LTS MATE.
You can change pdfviewer variable to evince if you want.

As free bonus we can use the .pdf#page= syntax in the terminal:

xdg-open /usr/share/doc/qpdf/qpdf-manual.pdf#page=12

Note: after such manipulations we have two xdg-open executables - the output of whereis xdg-open should become xdg-open: /usr/bin/xdg-open /home/user/bin/xdg-open /usr/share/man/man1/xdg-open.1.gz.


In that case (unless you want to remove NetworkManager and replace it by something else) you'll need to fix NetworkManager.

For one thing, you could have a look at journalctl  -xe does it show you anything useful?

Second thing is you could do is to "reproduce the problem manually", i.e. issue service NetworkManager restart as root. Does that show you something interesting?

If that doesn't show you anything interesting either, then try to "restart" NetworkManager even more "manually". I.e. have a look at the NetworkManager service. It should be living under /etc/systemd/system/multi-user.target.wants/NetworkManager.service or such. On my system that file tells me that systemd will:

try to stop NetworkManager by kill -TERM $PID_OF_NETWORK_MANAGER
try to start NetworkManager by executing NetworkManager --no-daemon

What you can do now is to do that manually. I.e. try to do the kill manually to stop NetworkManager and try to start it manually by running the command above. Note that NetworkManager supports a --debug flag, which you could use to see more verbose output from NetworkManager, which could tell you what it exactly is that makes NetworkManager either to take so long to stop or take that long to start. I.e. what NetworkManager is waiting for to happen...

Also note, that on my system systemd expects NetworkManager to appear on dbus. So you could check that as well.


What does "omitting directory" mean and how do I make it cp the directory rather than omit it

The error notice means you told cp to copy files and not directories. The warning is about cp finding a directory and informing you it will be skipped.

If you want directories: cp -r means recursive and this option will make cp also include subdirectories.

So your command needs to be:

cp -r /media/Macintosh\ HD/Users/orlandocampoverde/Desktop\ ...

Regarding comment:

-u, --update
          copy only when the SOURCE file is  newer  than  the  destination
          file or when the destination file is missing


To the best of my knowledge, there are no Linux NTFS repair utilities. The ntfsfix tool might seem to be one, but it does only the most rudimentary checks and then flags the partition for repair in Windows. Thus, your best bet is to do the repair under Windows, and to ask about it on a Windows forum.

If you use a disk exclusively in Linux, NTFS is a poor choice. Part of the reason is what I've just related; but NTFS is also slow (in Linux) and lacks Unix/Linux filesystem features. For exchanging data between Windows and Linux, FAT is likely to be better, with the major caveat that FAT has a 4GiB file-size limit, which can be a show-stopping problem for many purposes, making NTFS a necessary choice for many people.


HP Probook 4540s WiFi and Bluetooth not working in Ubuntu 12.04lts

I had the same problem.
Fixed it by removing the Ralink wifi card and replacing it with an Atheros card from a scrap Laptop.
Now all works great in Linux, Backtrack and Win7
BikerMike


Actually there is a a tool named sysbench.

You can install it with:

sudo apt-get install sysbench

To CPU  benchmarking you can do like

sysbench --test=cpu --cpu-max-prime=20000 run

where 20000 is like max event count.


How can I change the Keyboard Layout on login screen?

Press Ctrl+Alt+F1 to switch console mode. Type your username and press Enter and also now type your password.
Next type sudo dpkg-reconfigure keyboard-configuration and hit Enter
type your password again and follow screen instruction.

As usual, it will prompt you for the model of keyboard (what the keyboard is), and then for the keyboard layout (what the keys should do)

To apply new settings, restarting the keyboard-setup service with this

 sudo service keyboard-setup restart


How to count only consecutive spaces in last collumn and print sum to first column

From a regex standpoint, I think you'd be looking for this:
\s{2,} -- which means "A space that is two or more".

It won't count spaces in between words.

It goes from this:

To this:


NetworkManager crashes when asking for wifi password in new user account. 16.04

Go to Network Manager -> Edit Connections and make sure that the checkbox "All users can use the connection" is checked.


No sound in lubuntu 20.04 after connecting bluetooth speaker

select configure panel in task bar right click > widgets > volume control > * configure > select pulseaudio. try changing between pulseaudio/alsamixer. happened to me once gone after changing.


Does the 'at' command require a full path to the script's name?

The at command doesn't need to be given an absolute path if you are running it from the same location.

If you are running it from the same location where you have your script just give the script's name.


How are typical users expected to read the documentation in /usr/share/doc?

There are at least two issues here:

reading the .gz files painlessly
permissions on the directories
(optional for tex files)

For #1, there are a number of applications that will cope with the gzipped files seamlessly.  A couple that you could use are less and vim .

 less README.gz
 vim -R README.Debian.gz
 view Important.bits.gz

view is an alias for vim -R, which just says to open the file read-only.

In the old days, before less was installed on my system, I would use gzcat and pipe the output to another utility. Apparently, it is only called zcat now on Ubuntu, but you would use it like this, e.g.:

 /usr/share/doc/xpdf$ zcat changelog.Debian.gz  | more

zcat is still available, and using it to pipe compressed contents somewhere can be useful in some cases.  (For situations with .bz2 files, bzcat is available.)

For #2, all of the files that I've seen under /usr/share/doc are in directories with other+rx permissions, meaning that all users can search the directories (e.g., list contents) and read files inside.  What you can't do (since only root has write permission by default), is to create files.   Because you are attempting to unzip into that directory, I imagine it is giving you permission denied because you have read but not write permissions by default.

For #3, I'm guessing you use .tex files more than I do.   But here's one way to deal with them without copying to home or a temp file.  For this, you are going to create a named pipe, but you can reuse that for your other tex piping and processing needs.
It should go like this:

zcat or gzcat the text
... and pipe that to your TeX processor
... and send that to your Named Pipe (here, I'll call him pipey)
... and then in a separate screen grab your output from pipey
... and send that to a dvi display process.

You can obviously alter these steps if you use different or better utilities than the ones here.

My example will use the mkfifo utility to create the named pipe, pipey .  The target file to process is /usr/share/doc/gdb/refcard.tex.gz .
You'll need two shell command lines available (via terminal, Alt+F2, or however).

You'll type in
terminal one:

mkfifo pipey

You now have a persistent named pipe.  You can use ls -l to peek at it.

zcat /usr/share/doc/gdb/refcard.tex.gz | tex > pipey

Notice that this command will not return until you do something with the output that's gone to the named pipe.

Now, in terminal two, you'll type: tex pipey | xdvi

And it works (well, here anyway).  The process can be refined for prettier output, but if you're looking for quick and relatively mess-free, that's one way to do it.


How in install all debian files in a folder except older versions

if you install all of them with "sudo dpkg -i *.deb" while inside the folder, it will install all of them, and the newer versions will always "prevail" over the older ones. You will not get double installs, the newer ones will simply update the older ones.


Since you don't have unity you should be able to just install touchegg from the Ubuntu Software Center and then for a nice gui you can download and install the touchegg gui from here: https://github.com/Raffarti/Touchegg-gce

Touchegg is awesome by the way! I programmed 3,4 and 5 finger gestures to do anything i wanted. You can program clicks as well as different swipes as well. it's pretty awesome.


Install the missing IMAP PHP extension via

sudo apt-get install php5-imap

Now start

sudo php5enmod imap

to enable the module and restart apache via

sudo service apache2 restart


Cannot duplicate all ouput to a file with tar/pigz

Split command:

find -L $SRC_DIR -size +$EXCLUDE_MB_FILES > $EXCLUDE_LIST 2>> $LOG_FILE
RC=$?;
if [[ $RC != 0 ]]; then
    error find $RC
fi

tar cfh $TAR_FILE "$SRC_DIR" --exclude-from $EXCLUDE_LIST &>> $LOG_FILE
RC=$?;
if [[ $RC != 0 ]]; then
    error tar $RC
fi

pigz -9 --quiet --keep --recursive --rsyncable $TAR_FILE &>> $LOG_FILE
RC=$?;
if [[ $RC != 0 ]] || [ ! -f $GZ_FILE ]; then
    error pigz $RC
fi

mv $GZ_FILE $BACKUP_TARGER_DIR/$ARC_NAME
RC=$?;
if [[ $RC != 0 ]]; then
    error mv $RC
fi


Ubuntu 14.04.1 (unity): rename workspaces

You can do this through the CompizConfig Settings Manager

If you have not installed CCSM, just open the terminal and run

sudo apt-get install compizconfig-settings-manager

Open CCSM and go to Workspace Naming under Window Management. If you can not see Workspace Naming, open a terminal and run

sudo apt-get install compiz-plugins.

Enable Workspace Naming plugin. If you get a message asking you to enable the Text plugin, enable it. When you enable the plugin, your screen may appear weird for a while and may take you back to the log in screen. Don't freak out, just log back in and open CCSM once again and follow the following steps to change the name of the workspace.

After this all you have to do is select the workspace(It is called Viewport in this menu) and click edit to change the name.

NOTE: CCSM is an extremely powerful tool but it is also possible for you to ruin your system by doing something wrong. So  please be cautious when using the tool.


I found a way to fix it and that was it :

In Excel I went to Data Tab and selected ' From Text '.

Steps were like this:
1. Importing file with ' From Text ' Option.

2. Changing Unicode to UTF-8.

And...

It worked with CSV fine, Hope it helps.


Battery icon not showing in Ubuntu 18.04

Make sure you are running the correct parameter. For example using your parameters on my system:

$ upower -i /org/freedesktop/uPower/devices/battery/BAT0
  native-path:          (null)
  power supply:         no
  updated:              Wed 31 Dec 1969 05:00:00 PM MST (1526860188 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       unknown
    icon-name:          '(null)'

Using the correct parameter however:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               COMPAL
  model:                PABAS0241231
  serial:               41167
  power supply:         yes
  updated:              Sun 20 May 2018 05:51:55 PM MDT (97 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              64.3968 Wh
    energy-empty:        0 Wh
    energy-full:         92.4192 Wh
    energy-full-design:  96.48 Wh
    energy-rate:         0 W
    voltage:             15.413 V
    percentage:          69%
    capacity:            95.791%
    technology:          lithium-ion
    icon-name:          'battery-full-charging-symbolic'

To see everything (including what the correct parameter would be) use:

$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Sun 20 May 2018 03:56:16 PM MDT (6911 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               COMPAL
  model:                PABAS0241231
  serial:               41167
  power supply:         yes
  updated:              Sun 20 May 2018 05:49:55 PM MDT (92 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              64.3968 Wh
    energy-empty:        0 Wh
    energy-full:         92.4192 Wh
    energy-full-design:  96.48 Wh
    energy-rate:         0 W
    voltage:             15.413 V
    percentage:          69%
    capacity:            95.791%
    technology:          lithium-ion
    icon-name:          'battery-full-charging-symbolic'

Device: /org/freedesktop/UPower/devices/ups_hiddev2
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2:1.0/usbmisc/hiddev2
  vendor:               CPS
  model:                CP550HGa
  serial:               BFBB104#BI1.g
  power supply:         yes
  updated:              Sun 20 May 2018 05:50:58 PM MDT (29 seconds ago)
  has history:          yes
  has statistics:       yes
  ups
    present:             yes
    state:               fully-charged
    warning-level:       none
    time to empty:       37.5 minutes
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Device: /org/freedesktop/UPower/devices/mouse_0003o046Do101Ax000D
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.000C/0003:046D:101A.000D
  vendor:               Logitech, Inc.
  model:                Performance MX
  serial:               E6CE4571
  power supply:         no
  updated:              Sun 20 May 2018 05:50:18 PM MDT (69 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          55%
    icon-name:          'battery-good-symbolic'

Device: /org/freedesktop/UPower/devices/keyboard_0003o046Do2010x000E
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.000C/0003:046D:2010.000E
  vendor:               Logitech, Inc.
  model:                K800
  serial:               6DB54BFE
  power supply:         no
  updated:              Sun 20 May 2018 05:50:18 PM MDT (69 seconds ago)
  has history:          yes
  has statistics:       no
  keyboard
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          55%
    icon-name:          'battery-good-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Sun 20 May 2018 03:56:16 PM MDT (6911 seconds ago)
  has history:          no
  has statistics:       no
  ups
    present:             yes
    state:               fully-charged
    warning-level:       none
    time to empty:       37.5 minutes
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep


Very slow Wi-Fi with Intel 3165 on Ubuntu 16.04

I own and use successfully two Intel wireless devices. I have honed a few techniques in several years and thousands of forum posts.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

If these changes do not help, please try:

sudo modprobe -r iwlwifi
sudo modprobe iwlwifi 11n_disable=8

If it helps, make it permanent:

sudo -i
echo "options iwlwifi 11n_disable=8"  >>  /etc/modprobe.d/iwlwifi.conf
exit

Finally, Network Manager will default to ethernet if it's available. Please make your tests with the ethernet detached.


Are multiple displays, Gnome panel applets and the DeskTop Cube, Rotate Cube and 3D Windows available in 12.04?

The features you list are all available, though not necessarily enabled by default. As for GNOME panel applets though, there are much fewer available for the 3.x version of gnome-panel, than existed on gnome-panel 2.x, so you may lose some, as the new version of GNOME broke API (which is why it was versioned 3.x and not 2.x), and all the applets have not been ported upstream.


You can put together a simple script to do this.

The following will do what you want assuming the original codeignitor source is in /usr/local/src/codeignitor

The code will need to be saved into a file called codeignitor in your PATH.
An ideal place would be to create a folder called bin in your home directory and save it in there. The permissions will need to be set to allow execute permissions.

To create a new folder called new_project, you will run the command as

codeignitor create new_project

The script is as basic as it can be so will need to be extended if this is the sort of solution you need, here is the code:

#!/bin/bash

src='/usr/local/src/codeignitor/'

cmd=$1
dest=$2

case $cmd in
    create )
        cp -av $src $dest
        ;;
    * )
        exit 1
        ;;
esac


Is it possible to use Windows Internet Connection Inside Virtual Box Installaion

VirtualBox presents to the Guest an equivalent of a fixed ethernet hardware device.  Remember, a virtual guest does not have to rely on the underlying host hardware.  Therefore, to the virtual Ubuntu, it thinks it is seeing a fixed ethernet cable connection.

The default for VirtualBox is to provide a virtual network capability, which connects the networking traffic from one device to another.

N.B. this shouldnt be confused with the Windows Bridging Network Adapter which is another thing entirely.

By default, the active Host network (your windows wireless in your case) is linked to the virtual hardware device through what is termed Network Addressed Translation (NAT).  This is just a capability to allow two devices (in this case Windows and the Virtual Ubuntu) to share the same IP address.

Thus, assuming that your windows networking is correctly setup and you've haven't fiddled too much with the virtual box ubuntu guest settings, your virtual Ubuntu guest will use your Windows wireless network without any further tweaks.


Error getting virt-manager to work with LXC

Ensure, you have all needed libvirt packages installed.

Install

sudo apt install libvirt-daemon-driver-lxc

Check

sudo apt list libvirt* --installed


Luckily there is an easy to use utility to move the files and folders and it's called Grsync.
It has a graphical user interface and it's available in the Ubuntu software center, so installing it is easy.
Always happy to help the new guys.
PS: Search for questions before posting, OK?


The issue has been solved. Because of resetting, the settings were messed up. After running diskmgmt.msc as told by @Aditya I found that the partition was fine, so the issue was with UEFI settings.
Here are the steps if you are a windows 8.1 user:

Press windows icon + 'x' on your computer.
Click on Command Prompt(Admin)
Write the following command bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
Restart and the grub screen should appear again


How do I set blue light filter by configuring the Intel graphic card settings?

I followed the steps by this link:
https://www.techzim.co.zw/2017/06/tuning-intel-graphics-card-ubuntu-16-04/

And after the installation, I went to the folder where the configure file is supposed to be. Type this:

warren@thinkpad:/usr/share/X11/xorg.conf.d$ ls -a -l

total 44

drwxr-xr-x 2 root root 4096 Feb 28 13:35 .

drwxr-xr-x 5 root root 4096 Feb 28 13:35 ..

-rw-r--r-- 1 root root   92 Jan 29 13:56 10-amdgpu.conf

-rw-r--r-- 1 root root 1099 Jul  6  2017 10-evdev.conf

-rw-r--r-- 1 root root 1350 Nov 24 04:51 10-quirks.conf

-rw-r--r-- 1 root root   92 Jan 29 13:58 10-radeon.conf

-rw-r--r-- 1 root root  590 Jul  6  2017 11-evdev-quirks.conf

-rw-r--r-- 1 root root  364 Jul  6  2017 11-evdev-trackpoint.conf

-rw-r--r-- 1 root root  590 Jul  6  2017 51-synaptics-quirks.conf

-rw-r--r-- 1 root root 1751 Jul  6  2017 70-synaptics.conf

-rw-r--r-- 1 root root 2747 Jul  6  2017 70-wacom.conf

I opened the amdgup.conf, and it is like this:

Section "OutputClass"

    Identifier "AMDgpu"

    MatchDriver "amdgpu"

    Driver "amdgpu"

EndSection

Wired thing is that, I did not find something like intel.conf.

That is how far I have reached by now. Still don't know how to configure the graphic card.


I solved the problem by running:

xrandr --addmode VGA1 1366x768

I also added new modes to the change resolution drop down by using,

xrandr --newmode "mode line"

Where mode line replaces the supported resolutions. You can find the supported resolutions by running:

xrandr

Currently, it's working all right.


This appears to be a bug in Evolution 3.10.4

There is a simple workaround though. Write your html signature in a file called signature.html Test that it works by opening it in Firefox. Then when you have finished writing a message add the signature by using menu item insert -> html file.


Shebang line for Node does not work in Ubuntu 18

The script that gives this error message got mangled somehow. For instance, if you did some touchup of your script in a Windows editor before shipping it to your AWS instance, your script now likely starts with a non-printing BOM before the shebang, and maybe all your script's lines now end in Microsoft's favorite CR-LF combo instead of the traditional Unix LF.

Check the output of this command on your AWS instance:

$ LC_ALL=C sed -n 1l myscript.sh

That tells sed to print the first line of your script, but escape all non-printing characters and end the line with a $ character (in case there are invisible spaces at the end of the line).

There's only one correct output:

#!/usr/bin/env node$

If what you see doesn't look exactly like that, run the same command on your original myscript.sh. If you get the same result, fix it there, then copy it over to AWS again.


Python: Anaconda path only added on demand

export PATH=~/anaconda2/bin:$PATH. When run in a terminal session (as opposed to from ~/.profile or ~/.bashrc), it will only affect that session and its child processes.


Yes, there is no reason that shouldn't work, assuming that your backup is stored somewhere off the PC in question. (Sorry, but I had to bring it up - you'd be surprised where people put their backups...)

Although Deja-Dup is quite opaque and it's hard to figure out what it's doing sometimes, it has served me well.

If I were doing what you propose, I'd take a Clonezilla clone of my current system first, so I could get back to where I started, if things go south.


Is there a podcast app for Ubuntu-touch?

Try searching for "Podbird". It's a highly rated app in the store.


You can indeed put pressing and releasing Super to your own use with a utility like xcape (present in the default Ubuntu repositories) or ksuperkey.
You first need to disable the default assignment of Super in Gnome Shell:
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu []

Then you can use xcape to redirect pressing and releasing Super alone to a regular shortcut key combination, in particular the regular keyboard combination you use to launch your script.
For example, suppose we want Super to display the application overview. That action is already bound to Super+a, so to achieve that, we autostart the following command on login:
xcape -e "Super_L=Super_L|a"  #Load

For your custom script, assign it a regular shortcut first using "Settings - Keyboard Shortcuts" and substitute Super_L|a by that shortcut key.
To undo, disable the autostart command and reset the dconf key to default with the command gsettings reset org.gnome.desktop.wm.keybindings panel-main-menu.


Will Ubuntu run on this Dell Precision 3510

It will run with no problem. I have very similar specification, no problem whatsoever.

Generally, Ubuntu and linux in general has no problem with hardware, there are some issues with specific graphic and wireless cards, tho.

Here is a official list of certified hardware. Please note, that if your model is not on the list, it doesn't mean it won't work.

https://certification.ubuntu.com/desktop/


In the top panel of Unity go to the Network Icon (Network Manager) and select Connection Information

You will see all the information including the IP (IPv4 and IPv6) of any device connected. In this case it is only showing one device since I have only one connected, but if I had multiple ones it would show each one on a different tab:

For the terminal way you can do like Mitch mentions. Open a terminal and type ifconfig which will show you several network devices like the following:

In your case, instead of seeing wlan0 like in my image, you will see something like ppp0. If you want to see specific information about your PPP connection then do something like this: ifconfig ppp0.

Looking at your images we have the following:

This image shows the IP you are receiving from Internet (From outside of your LAN network). In this case it is the 10.40.26.151

This image shows the IP you are receiving from LAN (From inside of your LAN network). In this case it is the 192.168.2.160 and the Router or Server IP that is assigning you that IP is 192.168.2.1.

Now looking at both images I see you are using eth0 for both cases. If this is the same computer then I recommend connecting ppp0 to another network card and eth0 to the LAN if you want to have both types of connection. You can only have one type of connection per network device.


Grub rescue rescue error on boot even after trying a "Boot Repair"

Reinstall GRUB using the live CD.

Steps are available here: Boot error > no such device: grub rescue


GRUB not appearing after reinstalling Ubuntu in dual boot

Did you tried to press Shift on early boot?


Test out other ubuntu versions like 14.04.3 LTS or 15.10
to see if your problem occurs there also

press F1 during boot/shutdown process to see whats wrong exactly
to your system, and what hangs/taking time


This might be useful:
How to boot with bluetooth turned off

Specifically the answer by Stepbaer:

  I found a how-to with a clean "workaround":

  http://catlingmindswipe.blogspot.com/2012/05/how-to-disable-bluetooth-on-startup.html

  Actually changing /etc/bluetooth/main.conf was enough for me.

InitiallyPowered = true


No WiFi adapter found, Dell XPS 9570, Killer 1350 card

I think you have a broken kernel update, try

sudo apt install --reinstall linux-modules-extra-$(uname -r)

Reboot


Can't boot windows 10 after installing Ubuntu 16.04

There is one method that I know, could restore Windows 7 MBR, you may try it for Windows 10 too, as below:

Boot with Ubuntu Live environment with DVD/USB
Open Terminal and issue sudo apt-get install mbr command
After MBR installs, issue sudo install-mbr -i n -p D -t 0 /dev/sdx (here x=drive name)
Reboot

Hope this helps, thanks :)


"command not found" when running "lessc" from bash

npm install -g less

That installs Less.js globally. Maybe you tried this already but it's not in the documentation on http://lesscss.org/; I had to ask around in #node.js on FreeNode.


It's better to install multiple operating systems in order that is supported by the native installers.

So, my recommendation for all those starting out would be to keep it simple, install windows first (if it is not already installed), then install Ubuntu.

Next, download Virtualbox and install a Kali VM. Kali as a VM will be a lot better of many reasons and let you use the tool as intended. The other great way to use Kali is via a live USB.

The reason for this is that when you are doing pentests you want to be able to remove client data from your systems completely to ensure it is not exposed inadvertently in any context outside of the report.


Force alt + tab to switch only on current workspace in GNOME shell

Simply:

gsettings set org.gnome.shell.app-switcher current-workspace-only true


Can I specify a port for certain IP address in SSH's config?

Sure, you can put these settings in ~/.ssh/config.

Host 192.168.1.45
Port 2222

You can take this opportunity to give the machine a nickname, and set other options, in particular the remote user name. For example, the following declaration makes ssh foo equivalent to ssh -p 2222 matt@192.168.1.45 (Host foo means that the following options apply when you run ssh foo, and the HostName directive makes foo a nickname for 192.168.1.45 with all the other options):

Host foo
HostName 192.168.1.45
Port 2222
User matt