Run a script/file to open BitPay wallet in one click?

You can define an alias for this in your .bashrc:

    alias bp=~/Desktop/BitPay-linux/BitPay
# or
    alias bp="cd ~/Desktop/BitPay-linux && ./BitPay"

Once defined, you can simply say bp in a terminal window.

Open your ~/.bashrc in an editor. Most likely there are already some aliases defined, like alias ll="ls -l" or something similar. Just add one of the above lines there (or somewhere else) and save the file so it will take effect for all new terminal windows.

I tend to create a new section in my ~/.bashrc with a comment so that all my custom aliases are in one place, like so:

...

######################
# My custom aliases
######################
alias ll="ls -l"
alias ..="cd .."
alias bp="cd ~/Desktop/BitPay-linux && ./BitPay"
...


How to enable Secure Boot without issue?

Boot loaders are written for the computer's firmware. This is analogous to software, which is written for a particular OS. Thus, you don't "convert... the bootloader to UEFI"; that would be like "converting the mail client to Windows" or "converting the photo editor to Linux." Instead, you install a new program for the desired environment. In some cases, the new program may have the same name as the old one (as in Thunderbird or GIMP, which are available for both Windows and Linux; or GRUB 2, which is available for both BIOS and EFI). In other cases, there are OS- or firmware-specific programs, such as efibootmgr (a Linux-specific tool) or rEFInd (an EFI-specific boot manager).

If your computer is currently booting in BIOS/CSM/legacy mode, then to boot in EFI mode, you must do several things:

Convert the disk from the Master Boot Record (MBR) to the GUID Partition Table (GPT). This step may not be strictly required, but some EFIs can be fussy, and using MBR may require installing your boot loader to the fallback filename (EFI/BOOT/bootx64.efi), which most tools won't do by default. Thus, an MBR-to-GPT conversion is desirable. This can be done fairly painlessly with my gdisk program (which is installed in Ubuntu by default), as described here.
Create an EFI System Partition (ESP). This is a partition where EFI boot loaders reside. It has no exact equivalent in BIOS. You'll probably have to use GParted to resize at least one partition to make room for the ESP. I recommend making it 550MiB in size. Although an ESP is usually the first or second partition on a disk, the realities of partition resizing mean that it may work better to make it the last partition on the disk if you're converting from BIOS/MBR to EFI/GPT.
Install an EFI boot loader. GRUB 2 is the traditional boot loader, and it can be installed fairly automatically by booting an Ubuntu live CD in EFI mode and running Boot Repair. Boot Repair should also set things up to work with Secure Boot. Most other boot loaders will require jumping through some extra hoops to work with Secure Boot, although sometimes this isn't too bad -- if it detects Shim (the most common Linux tool for supporting Secure Boot), my own rEFInd will set itself up to use Secure Boot.
Reboot and hope it all works. Any number of things can go wrong with all this. If you have problems, your best bet is to search here and elsewhere for a solution, and if you don't find one, post a new question here or on some other forum.

Note that in a Linux installation, the only truly critical software difference between a BIOS-mode and an EFI-mode installation is the boot loader. Thus, switching from BIOS-mode to EFI-mode booting doesn't require additional software changes. (In practice, installing an EFI-mode GRUB is likely to pull in some other related packages, like efibootmgr. These are indeed helpful, but not critical for booting.) There are no changes to the kernel, C libraries, shells, GUI, or other core tools required under EFI compared to BIOS. As I've written above, partitioning will need to be adjusted, but that doesn't require any software changes. Secure Boot requires Shim, PreLoader, or special custom setups; and depending on the boot loader, a signed kernel may be required.

As you might gather from this, Ubuntu should work fine with Secure Boot. (There are occasional exceptions because of finicky EFIs, though. Also, using Secure Boot makes it easier to misconfigure something so that it breaks.) When doing a fresh install with Secure Boot active, it should all be pretty transparent. When you do a conversion from an existing BIOS-mode installation, you're more likely to run into problems, since conversion tools don't really exist (unless you count Boot Repair, which does only part of the job). Thus, you'll end up doing more manually, which means there's more room to miss a step or make a mistake.

For more information on Linux and Secure Boot, read my main Web page on the subject, which covers basic principles and typical configurations. If you want to go really hard-core with a custom Secure Boot configuration, read my page on taking complete control of Secure Boot. This describes how to configure the system to boot with Secure Boot active but without Shim or PreLoader, and in a way that enables you to lock Microsoft tools out, if you so desire.


Current versions of Gnome don't show maximize or minimize buttons by default. You do have several options, including:

Right click on the titlebar and the drop menu will provide options to maximize and minimize the window (a double-click will also maximize the window)
Learn the keyboard shortcuts (e.g., CTRL+Super+Up to maximize a window)
Run the Gnome Tweak Tool (gnome-tweak-tool), go to Windows/Titlebar Buttons, and you'll see checkboxes to show both the maximize and minimize buttons

To be honest, I've been running Gnome for several years, and never even noticed that these buttons were missing...

Rich


How can I find out which user deleted a directory?

I didn't find a magic bullet answer to your question; part of that reason is detailed here: https://superuser.com/questions/178596/checking-user-command-history-in-unix

This simple command may help you track down what happened, searching for rm & mv commands in all shell history files in all users home directories:

find /home -type f -iname .*history -exec grep "rm\|mv" {} \;

It's good you have a valid backup to save you, but I highly recommend creating some groups for project folders and just adding user accounts to those groups; that will save you a lot of pain in the future.

Example:
add a group and add project team members to it

groupadd coolproject
adduser jim coolproject
adduser joe coolproject
adduser charlie coolproject

set the permissions properly recursively and guarantee access going forward for the team regardless of who creates/edits files

chown -R yourusername:coolproject /path/to/projectdir
find /path/to/projectdir -type d -exec chmod 2775 {} \;

(the 2 sets the group ownership to "sticky" this makes sure the group owner of any projects remains "coolproject")

find /path/to/projectdir -type f -exec chmod 664 {} \;

Hope that helps ya out!  B-)


Redirect real webcam to a virtual webcam via terminal

Based on this answer (already mentioned in the question) I think I have found a solution by myself, and it works with Skype!

Suppose the real webcam is in /dev/video0. When you run

modprobe v4l2loopback

the module creates a second (virtual) webcam, for example in /dev/video1. At this point, it is sufficient to execute:

ffmpeg -i /dev/video0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1

and the new virtual webcam is ready to be used and selected with Skype as well.


The Asus am1m-a motherboard is really unusual in that it does not have a CPU, a GPU and a supporting chipset, but relies on a complete system being integrated into an APU (a system on a chip). Given this unusual architecture it is not surprising sensors struggles.

I suspect its going to be very hard to get sensors to work properly. I would remove lm-sensors and trust the advanced UEFI BIOS to look after fan control for you.


Lenovo ideapad 5-15ARE05 firmware upgrade, how to?

According to this Arch Wiki page creating a FreeDos bootable USB-drive should do the trick.
Copy over E7CN36WW.exe, the file you get after innoextract the download (and before extracting with wine).
Boot the flashdrive, and run the BIOS executable.
Please READ the linked page carefully before trying this out.


Try using these commands in terminal:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Or change your server in system preferences > software & updates and then choose "download from:".

check if your updates are checked in updates tab (in software & updates) and check: Important security updates, Recommended updates and unsupported updates (check Pre-release updates if you want).

If there's a problem, post it.

Hope this helps!


There doesn't seem to be any Windows partitions on the disk anymore, so most likely your files are gone, unless you have more than one hard drive in the machine.

I suspect you installed Ubuntu using the "Use the whole disk" option instead of "Install alongside existing OS".


Align stylus (pen) with touchscreen in rotated screen on Acer Travelmate Spin B1

Seems there is an "reset" of the coordinate transformation matrix for the pen at the time the screen is rotated which overwrites the command. So I added a sleep time between conducting these commands and now it's working fine. 2 seconds has no impact since this time is needed until the screen is finally rotated

New script:

#!/bin/sh

# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.

rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o  '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"

# Using current screen orientation proceed to rotate screen and input tools.

case "$rotation" in
normal)
#    -rotate to the left
xrandr -o left
xinput set-prop "ELAN Touchscreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
sleep 2
xinput set-prop "ELAN Touchscreen Pen Pen (0)" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
;;
left)
#    -rotate to normal
xrandr -o normal
xinput set-prop "ELAN Touchscreen" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
sleep 2
xinput set-prop "ELAN Touchscreen Pen Pen (0)" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
;;
esac


Lubuntu 18.04 - dragging a Thunderbird email to the panel freezes the desktop, how to prevent or recover?

Based on the comments:
I can confirm this bug exists and that it is repeatable. Lacking any error messages, the best solution is to not do it. If you do drag email and have this happen, it is possible to recover from it.
Open TTY with CTRL + ALT + F3.
Login by typing your username and then your password. Note, while typing your password, nothing will appear on the screen. This is normal and the expected behavior.
Enter:
sudo killall thunderbird

Followed by pressing ENTER.
Repeatedly press ALT + ⇒ (right arrow) until you return to your desktop, where you can restart Thunderbird and continue computing.


Mapping Buttons on Huion H420 graphics tablet

What worked for me after reading from various places viz. bunnyrules's answer and the links therein, and this:

Install DIGImend drivers first from here. I used the .deb (v7) file and it worked fine. You might also want to remove hid-huion module if you have it installed. Check with lsmod. Also you might need libusb and wacom binaries and libraries.

I had the following installed on 16.04:

libwacom-bin/xenial-updates,now 0.22-1~ubuntu16.04.1 amd64 [installed,automatic]
libwacom-common/xenial-updates,xenial-updates,now 0.22-1~ubuntu16.04.1 all [installed,automatic]
libwacom2/xenial-updates,now 0.22-1~ubuntu16.04.1 amd64 [installed,automatic]
switchboard-plug-gcc-wacom/xenial,now 0.2.0-0~77~ubuntu0.4.1 amd64 [installed,automatic]
xserver-xorg-input-wacom-hwe-16.04/xenial-updates,now 1:0.34.0-0ubuntu2~16.04.1 amd64 [installed]

Configure tablet in X: sudo vim /etc/X11/xorg.conf.d/50-huion.conf.

Use this configuration:

# Huion tablets
Section "InputClass"
    Identifier "Huion class"
    MatchProduct "HUION"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event*"
    Driver "wacom"
EndSection

Now logout and login.

xsetwacom should now detect the H420.

% xsetwacom --list
HUION H420 Pen stylus                   id: 10  type: STYLUS
HUION H420 Pad pad                      id: 11  type: PAD

Now you can remap buttons:

ex. if you want to set Button 1 to page up.

xsetwacom --set 'HUION H420 Pad pad' Button 1 "key +pgup"

The format is + for press - for release followed by X11 KeySyms. For the full list see xsetwacom --list modifiers and also man xsetwacom (see PARAMETERS section)

You can also change mappings of the pen stylus buttons :). Button 1 is the pen tip and 2 and 3 are the ones on the pen.

If you screwed up a mapping, you can reset it like this:

xsetwacom --set 'HUION H420 Pen stylus' Button 1 "button +1"


Can I move a virtualbox machine from windows to ubuntu?

You'll find the virtualization files in "My Documents" in windows. These include not just the vdi file but some othe files too.
Move these files to the home folder in ubuntu. Preferrably in the virtualbox folder. You can then run the vdi file using virtualbox


Can't access BIOS after install of ubuntu 12.04

You probably erased the system utilities and backup partition, which it probably uses to modify the BIOS settings in a nice, graphical way.  You'll need to contact the manufacturer for recovery CDs and/or a method of restoring the utilities partition.


Can't install wine (or ia32-libs) in Ubuntu 12.10 64 bit

Okay. So I found out what caused my problems. It was probably some PPAs with certain packages that created the dependency issues. While surfing randomly at Askubuntu last night, I came across an answer that fixed my problem.

Here is the answer, just modified so it works for Ubuntu 12.10:

First a downgrade is required and done with the following:
create the 'preferences' file:

sudo vi /etc/apt/preferences

and insert the following lines:

Package: *
Pin: release a=quantal*
Pin-Priority: 2012

enter :wq to write the file. Pin-Priority must be greater than 1000.

Then you may downgrade the offending applications with:

sudo apt-get dist-upgrade

And that was it. Installing wine, crossover and ia32-libs now work. Why this happened when I ran a freshly downloaded 12.10 version of Ubuntu live I don't know and don't understand.

Thank you all for trying to help!


Send mail as from my personal gmail account

To send mail from your gmail account in Ubuntu system test this:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
apt-get update
apt-get dist-upgrade
apt-get install --reinstall msmtp-mta heirloom-mailx
apt-get clean
exit
nano ~/.mailrc

In the open file, paste these lines:

set sendmail="/usr/bin/msmtp"
set message-sendmail-extra-arguments="-a gmail"

Ctrl+O, save file. Ctrl+X, close nano.

Continue run:

nano ~/.msmtprc

In the open file, paste these lines:

#Gmail account
defaults
logfile ~/msmtp.log

account gmail
auth on
host smtp.gmail.com
from adhikarisubir@gmail.com
auth on
tls on
tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt
user adhikarisubir@gmail.com
password your_gmail_password
port 587

account default : gmail

Ctrl+O, save file. Ctrl+X, close nano.

chmod 600 .msmtprc

You can send email from the command line like this:

mail -s "subject" address@mail.com

The cursor will go to a blank line.

Enter your email message.

When you're done, press Enter to go to a blank line

And then hit Control+D to end and sent your message.


Using apt-get how to check have installed latest version ?

Use the apt-cache policy command:

$ apt-cache policy openjdk-6-jre
openjdk-6-jre:
  Installed: (none)
  Candidate: 6b32-1.13.4-4ubuntu0.14.04.1
  Version table:
     6b32-1.13.4-4ubuntu0.14.04.1 0
        500 http://aptmirror.fqdn/ubuntu/ trusty-security/universe amd64 Packages
     6b31-1.13.3-1ubuntu1 0
        500 http://aptmirror.fqdn/ubuntu/ trusty/universe amd64 Packages

It says that I don't have any version installed, and of the available versions, 6b32-1.13.4-4ubuntu0.14.04.1 (the candidate) will be installed if I do sudo apt-get install openjdk-6-jre.

Even if you have it installed already, if you do sudo apt-get install openjdk-6-jre, the latest version available (according to the Candidate field above) will be installed. So an installed package will be upgraded.

You can press CtrlC to exit from most programs, including sudo password prompts and apt-get. It's a very bad idea to do so with apt-get. You can cancel while the download is in progress, but once the installation begins, don't do so.


How to customize Open in Terminal in Ubuntu 20.04 Desktop

This can be fixed by commenting out some code in the extension's source code and restarting gnome-shell.
Steps:

cd /usr/share/gnome-shell/extensions/desktop-icons@csoriano
vi desktopIconsUtil.js
Comment out --working-directory=${workdir} like so: /*`--working-directory=${workdir}`*/ and save the file.
Press Alt+f2 to "Run command" in Ubuntu.
Type r, press enter. GNOME shell should restart.

This should fix the issue. This can probably be customized more in this same location for other options your terminal of choice might have. Also, this might be desirable to fix in the extension's source, might look into submitting a pull request or something.


What is the default PDF Reader in 11.10?

Ubuntu uses evince as the default PDF reader. You can install it

From the terminal by typing

sudo apt-get install evince-gtk

From Ubuntu software centre by searching for evince
By clicking here which points to the exact package in Software Centre:


GRUB not showing after installing Ubuntu 20.04

I experienced this personally with my laptop. It turned out my laptop didn't support graphical GRUB terminal. Simply set GRUB_TERMINAL=console in the grub file at /etc/default/grub and this should fix the problem.


Disable automatic remote printer installation in 20.04

You will want to set the BrowseProtocols directive to none in your cups-browsed.conf file. Here's how to do it:

Open Terminal (if it's not already open)

Open /etc/cups/cups-browsed.conf for editing with sudo

Find the line with BrowseProtocols and uncomment it by removing the #:
# BrowseProtocols none

Becomes:
BrowseProtocols none

Restart the cups-browsed service:
sudo service cups-browsed restart

That should do it


Exporting public and private keys to a new machine: error!

GnuPG 1.4 and 2.0 expects public and private keys in ~/.gnupg/pubring.gpg respective ~/.gnupg/pubring.gpg. Edson_private.key and Edson_public.key are no standard keyrings that are created by GnuPG, also not for backups. You must have created them on your own somehow.

Given your pubring.gpg and secring.gpg files are already seem to have some content, the easiest solution is probably to use GnuPG's import function:

gpg --import ~/.gnupg/Edson_private.gpg
gpg --import ~/.gnupg/Edson_public.gpg

You might have to issue ultimate trust on your own key afterwards (you won't do any harm by applying ultimate trust although it is already set-up, so in doubt, just apply the procedure described).

Update: I forgot that Ubuntu 16.04 is already installing GnuPG 2.1, which merged the separate secret keyring into the public keyring. Thunderbird and Enigmail rely on gpg2/GnuPG 2.x for their operation, so it picked up GnuPG 2.1 which searches pubring.gpg for private keys -- while gpg --import had GnuPG 1.4 import the secret keys to secring.gpg. This results in unexpected issues like the one you have again and again.

Solution: import the private key file again, but this time using gpg2 --import. While still on Ubuntu 16.04, try not to use gpg any more to stick to a single secret keyring -- future Ubuntu releases ship GnuPG 2.1 as gpg (and GnuPG 1.4 as gpg1), which will prevent those oddities.


First update your system , so that It will let you install updates.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

To play MP3 songs you might need some codecs , so

sudo apt-get install lubuntu-restricted-extras

Open Ubuntu Software Center and Look for VLC Media Player.
For Having better Battery you can use tlp.

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

To change GRUB background , you can use Grub Customizer

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


No.  Because you are running 12.04 and not 14.04, where 14 is trusty and 12 is precise.  Since there is two different OS versions, you would need Trusty to get the one you want.  To be precise, 12 and 14 use two different Repos, both labeled Universe.

I would not recommend installing newer software not designed for older OS versions.


Why does Ubuntu Software Center not show every package available?

This issue persists even in 19.04:

The image below shows that I have installed rofi but the Software Center doesn't find it. It doesn't even show it in the "Installed" tab (not shown).

Lubuntu, an official flavor, uses Openbox as its window manager. Again, the Software Center doesn't list it.

There are more examples.

In this answer, there's a link to a bug from 2016 that could explain why some packages aren't listed. I'm copy/pasting some of what I think are points to note:

From comment #2: gnome-software is meant to list graphical softwares only, technical items like samba are for more technical users and can be installed from the command line or synaptic
From comment #7: the fact that some are not shown is a bug in the metadata generator or (more likely) the packaging or upstream software.
From comment #9: the packages must match some criteria, and meeting those is the job of the individual package maintainers.
From comment #12: Yeah, the old Ubuntu Software Center was designed to also replace Synaptic, while the new GNOME Software is for applications / fonts / other visible stuff only (the same as KDE Discover does).
Advanced users are encouraged to use Synaptic, Muon or the command-line directly.

Comment #7 above referred to a metadata generator. If you're interested to know more, you'll could look at Appstream and Help make Gnome Software beautiful. From the former link:

  AppStream is a cross-distro XML format to provide metadata for software components and to assign unique identifiers to software.

and

  The metadata can for example be used by software centers like GNOME Software or KDE Discover to display a user-friendly application-centric way on the package archive.

To my mind, then, there could be (at least) two reasons why packages aren't listed in software centers:

metadata hasn't been generated at all for the package, possibly due to non-availability of human effort.
issues with the metadata. See http://appstream.ubuntu.com/ for more.

The Help make Gnome Software beautiful blog post explains how you and I can help move things along.


How to install Windows Media Player 10 in a 64-bit architecture?

Install WMP10 in a separate 32-bit prefix:

cd ~/
wget -q https://github.com/Winetricks/winetricks/raw/master/src/winetricks -O /home/$USER/winetricks
WINEPREFIX="/home/$USER/.wine32" WINEARCH=win32 wineboot
WINEPREFIX="/home/$USER/.wine32" sh ~/winetricks -q wmp10


Does 'Owning' A Directory Or File Give You And Special Permissions?

chmod 00000 makes the directory/file inaccesable to owner and group. The only thing you and the group that owns the file can do is remove it with rm -rf tmp/. Nothing better than an example:

$ mkdir tmp
$ chmod 00000 tmp
$ cd tmp
bash: cd: tmp: Permission denied

You can see the directory with ls -l

d--------- 2 rinzwind rinzwind   4096 Oct 13 14:35 tmp

and but only with sudo  permissions can you enter the directory ...

 $ sudo su
 # cd tmp
 #

Regarding the other posts: yes you can remove a file/dir that is chmodded to 00000:

$ mkdir tmp
$ chmod 00000 tmp
$ rm -rf tmp/
$ touch 1
$ chmod 00000 1
$ rm 1
rm: remove write-protected regular empty file `1'? y
$

As the owner you are also allowed to reset the permissions. That is something someone else (except for root) is allowed too.


Thunderbird doesn't work on Ubuntu 19.10

It is unlikely Mozilla will reply to you soon, so suggest you move ahead with a diagnostic test.

Please make sure Files is set to show hidden and system files

In Files, go to ~/.thunderbird (.thunderbird in your home directory)

Move the profile file (which ends in .default) from there to any other directory under ~/ you choose.

Then, run Thunderbird again, and it will create a new profile automagically. Fill in the questions it asks you, and then try to send a message.

If it works, well, your profile was corrupted; like Outlook, user profiles with a bazillion emails get big and complicated sometimes.

If it does not work, report back.


What does the "nice" value mean in CPU utilization statistics

The nice value for the processor is

  the time the CPU has spent running users' processes that have been "niced".

(from man top) A "niced" process is one with a positive nice value. So if the processor's nice value is high, that means it is working with some low priority processes. So this indicator is useful when you see high CPU utilization and you are afraid that this high load will have bad effect on your system:

High CPU utilization with high nice value: Nothing to worry, not so important tasks doing their job, important processes will easily get CPU time if they need. This situation is not a real bottleneck.
High CPU utilization with low nice value: Something to worry because the CPU is stressed with important processes so these or new processes will have to wait. This situation is a real bottleneck.

I think this nice value is not too important for a simple user, this is more useful in a server environment.


Get Firefox to reopen same file on disk (for testing)

Maybe you should add a new Firefox profile, eg with the name development, for the following solution and start this profile (via -P development) for your development process.

With this profile open about:config and search for browser.link.open_newwindow.

Change the value to 1 to open links that would normally open in a new tab in the current tab.

Source


You could use xargs with mv:

xargs -r -a /path/to/file.txt -L1 mv

(assuming you're in the directory where the files are located).

xargs converts input to arguments for a command.

-a foo to read input from foo.
-L1 to use exactly one line of input per command invocation.
-r to avoid running the command if the line is empty

For example, using echo mv instead of mv to show the commands being run:

$ xargs -r -a foo.txt -L1 echo mv
mv a 2
mv c 3
mv d 5
mv e 1
mv b 4

You can also use the -p option to make xargs confirm before running the command:

$ xargs -r -p -a foo.txt -L1 mv
mv a 2 ?...n
mv c 3 ?...n
mv d 5 ?...y
mv e 1 ?...mv: cannot stat ‘d’: No such file or directory
n
mv b 4 ?...


How do I get wireless working on a Dell Inspiron 510m?

You do have a driver installed. This is shown by lshw -C network as ipw2100. It is confirmed by nm-tool which lists driver: ipw2100. This is for an Intel Pro/wireless adapter.

Did you notice that nm-tool labels the wireless adapter as eth1. It usually is wlan0 but as these wireless adapters are also ethernet devices it may not mean too much.

When you click on the network icon do you see a tick mark against Enable Network and Enable Wireless? If not click on those lines and reboot. Clicking these lines acts like an on/off switch. You need both ticked to get wireless networking.

You can also try these commands

rfkill list

If you see soft blocked: yes, then wireless has not been switch on in the OS.
If you see hard blocked: yes, then the wireless adapter is switched off at the keyboard.

You could try

rfkill unblock wifi

or sudo ifconfig wlan0 down follwed by sudo ifconfig wlan0 up. You may need to use eth0 instead of wlan0

another command that is useful is

cat /etc/network/interfaces

This should show

auto lo
iface lo inet loopback

If it shows anything else then you need to edit out the extra stuff by

gksudo gedit /etc/network/interfaces

This will help. In trying to fix problems like this we some times make things worse. These command may help put things right.


Cannot purge old kernels due to "unmet dependencies."

Alright, using apt was not working when trying to remove old kernels. I had to use dpkg instead, like so:
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs dpkg --remove

I attempted to run apt autoremove, however, I got the same unmet dependencies message. So I ran apt -f install, and then apt autoremove again, this time successfully.
Now I can install/uninstall packages just fine, and I gave myself a lot more disk space in the process.


How Thunar know that my localized "Pobrane" is "Download" directory

This information is stored in the file $HOME/.config/user-dirs.dirs. You can edit this file if you want to change some of the folder names.

See the user-dirs.dirs manpage for some more information.


How to download a Debian package of specific version and all its dependencies(including recommended) without installing?

Your question is asked on stackoverflow https://stackoverflow.com/questions/13756800/how-to-download-all-dependencies-and-packages-to-directory
Let copy the answer here with my updates.
# aptitude clean
# aptitude --download-only install <your_package_here>=<version_here>
# cp /var/cache/apt/archives/*.deb <your_directory_here>

But the answer above is commented

This only works if you do not have the package or its dependencies installed locally.

Yet another answer from there.
The aptitude --download-only ... approach only works if you have a debian distro with internet connection in your hands.
If you don't, I think it is better to run the following script on the disconnected debian machine:
apt-get --print-uris --yes install <my_package_name> | grep ^\' | cut -d\' -f2 >downloads.list

move the downloads.list file into a connected linux (or non linux) machine, and run:
wget --input-file myurilist

this downloads all your files into the current directory.After that you can copy them on an USB key and install in your disconnected debian machine.
credits: http://www.tuxradar.com/answers/517
PS
I basically copied the blog post because it was not very readable, and in case the post will disappear.
There are two comments to this answer above.

apt-get approach is only working when package is not installed – A.
Adding -qq to the apt-get line removes the need for the grep (and the need for --assume-yes)

I hope you would find the best solution based on the stackoverflow article.


Hosting and accessing web pages on ubuntu virtual server

Go to browser and type http://localhost/, it's a default virtual host and files located in /var/www/html directory. For creating simple virtual host like example-com, follow these steps:

Open /etc/hosts and add to the end 127.0.0.1 example-com.
Create directory /var/www/example-com: sudo mkdir /var/www/example-com.
Copy index.html and other files from /var/www/html to /var/www/example-com.
Create example-com.conf in /etc/apache2/sites-available and add this code:

<VirtualHost *:80>
    ServerName example-com
    ServerAlias example-com

    DocumentRoot /var/www/example-com

    <Directory /var/www/example-com>
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Enable virtual host: sudo a2ensite example-com.conf.
Reload Apache: sudo service apache2 reload.
Go to browser and type http://example-com/.


Ubuntu 12.04 LTS Desktop 64 bit user permissions or apache2 rewrite problem

Did you check the php 5 configurations?

/etc/apache2/mods-enabled/php5.conf

Conflicting security issues? Mod-rewrite issue, maybe? My 2 cents. Hope it helps.


MacBookPro9,1 overheats and sometimes hangs when suspended with Ubuntu 13.04

I had these same problems with my MBP 9,1, but only with the nouveau graphics drivers and my discrete GPU.

I use GNOME, which has a setting for "Laptop lid, when closed, will suspend even if there is an external monitor plugged in" - turning this on let my machine sleep just fine.  Unfortunately, I don't know if there's an analogue to this setting in other environments.

The hanging on wake got fixed when I installed the proprietary nVidia graphics drivers by running

jockey-text -e kmod:nvidia_313_updates

I've tried nvidia_310_updates and nvidia_313_updates, both worked.

Hope any of this helps, or that you've already got it working.  I had a lot of trouble finding solutions when I was trying to get things working on this machine too.


looks like there are errors on the filesystem.

follow this link:

How to repair a corrupted FAT32 file system

where they tell you how ro correct these errors. The pendrive is read-only as the computer is cannot make sense of the present state of the filesystem, and if ubuntu were to tashly write anything to it, it might cause data to be lost.


MAAS Region and MAAS Cluster Master on the same machine

I am building a virtualbox cluster, and I hit the same problem today (that is how I found your question).  I suspect it had to do with how I modified the networks, adding a nic after the fact and swapping their order.  Unfortunately, the only way I could fix it was to reinstall from scratch.


Why don't the Waves Maxx speaker effects work in Ubuntu?

Things may sound "better" in Windows because of the Waves MaxxAudio 3 package, which is a software sound-enhancer that can "improve" bass, etc on relatively tiny laptop speakers. It uses psychoacoustics to do this, i.e. it manipulates the sound so that the human brain is tricked into making it sound "better".

Note that the Waves drivers are Windows-only, so you won't get these effects in Ubuntu. Waves claims a "Linux Edition" is available, so please contact your manufacturer -- I assume Dell -- to get that.

  Source: MaxxAudio 3 is compatible with Microsoft Windows Vista and Windows 7.
  For Linux-based systems, Waves has introduced MaxxAudio LE.
  Waves CE works with leading codec manufacturers to ensure simple, seamless integration.


How does setting wallpapers work in Ubuntu?

There are different forces at play. The canonical way to alter wallpapers is using org.gnome.desktop.background picture-uri schema and key. The important part is that the picture has to be a local file.

In case of problem #4, the schema is being altered directly; note that all available options in the appearance settings  are from local folders.

in case of other problems you've specified, it's being done through nautilus, and nautilus has possibility of accessing network-shared drives, which means user may attempt setting background image from there. Well, remember what i said - the image must be local ? That's the reason why nautilus will copy the file.

The exact code for that is set in nautilus-view.c file

static void
action_set_as_wallpaper_callback (GtkAction    *action,
                                  NautilusView *view)
{
        GList *selection;

        /* Copy the item to Pictures/Wallpaper since it may be
           remote. Then set it as the current wallpaper. */

How to work around that ? There's really no way as it is hard-coded into nautilus. You may want to file a feature request with the developers or alter the source yourself.


If you does not have to install oracle version of java8 (you just need some java), try installing it with: sudo apt update && sudo apt install openjdk-8-jdk.
Message you got means that apt doesn't know about oracle-java8-installer package that you are trying to install, in other word it doesn't have the repository from which it can download it.


Sorry, the application add-apt-repository has stopped unexpectedly

I had exactly the same issue. In my case the error was caused by having an incorrect package repository specified. With help of Synaptic package manager you can find out which one is the problem: press Reload in Synaptic and wait for warnings. Then go to Settings - Repositories and disable the troublesome repository. Hope this helps someone


Add uid and gid to the <options> section of your NTFS partition entry in /etc/fstab so that Ubuntu makes you the owner of the partition.
First, check your id by typing just id in the terminal.
$ id

Then add your uid and gid as follow, assuming here as 1000 -
/dev/disk/by-uuid/xxxx /mnt/Data ntfs-3g defaults,windows_names,uid=1000,gid=1000 0 0

Now, by using the Disks GUI application unmount and mount the partition.
If unable to unmount then close all the application which might be using the partition like File Manager, Terminal, etc.
If still not unable to unmount then Log Out and Log In to reflect the changes.
Cross-check it by cd into the partition and enter ls -al command.


Could not get lock error while trying to sudo apt upgrade

More than likely your device is already running updates. There should be a window either minimized or behind another window that is the standard updater waiting for input.


No option for changing launcher placement in Settings -> Display

I don't know why it may have disappeared, or what version of Ubuntu you may be using.  However, one workaround might be to use CompizConfig Settings Manager (assuming Unity 3d).

sudo apt-get install compizconfig-settings-manager

The option is under the Unity Plugin, Experimental Tab->Launcher Monitors (All desktops vs. Primary Monitor).  Here's a screenshot:


Some PDF documents are messy when printing

Good question. It could be a font issue - the Windows font (Arial) in your document is not installed in Ubuntu by default. Open a terminal (Ctrl+Alt+T) and type (or use Ctrl+Shift+V to paste):

sudo apt-get install ttf-mscorefonts-installer

Then press enter. This should install a few common Windows fonts.


upowerd: "energy_full is greater than energy_full_design" - causes laptop to suspend prematurely (Lenovo Thinkpad T440P)

the reply from linrunner was correct. This was due to a faulty battery.


If you are dual boot on startup when grub appears choose the memtest option. If not dual boot while system is booting hit shift and choose the memtest option.


Rhythmbox and dependencies not getting installed or upgraded in 12.04

This is likely a problem with your local mirror being out of date, try this:

How can I get apt to use a mirror close to me, or choose a faster mirror?


Older GPU: Is it possible to enable Unity 2D in Quantal Quetzal to fix slowness in Unity

Under Ubuntu 12.10, Unity 2D has been replaced by Unity 3D running on a software 3D backend. This, as you have discovered, is significanty slower the Unity 2D on the same hardware, because 2D graphics software has had 30 years worth of clever optimizations which don't work when you try to do 2D graphics on a 3D stack.

The Unity 2D software has been completely removed from the Ubuntu repositories, so if you want it you'll have to build it from source. I recommend that if you want a sensible and fast desktop with the minimum of hassle, you use a gnome-panel (aka gnome-classic or gnome-fallback) or Xfce session instead.


What gui internet speed testing applications are available?

Long time ago I used TPTest for the job.


Firefox does not play YouTube HTML5 videos

This was due to JACK (/usr/bin/qjackctl) being started. Pressing 'Stop' in the JACK Audio Connection Kit started the video.


Cycle around the "end" of workspaces in Gnome?

Install compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager

Launch Compiz Config from System -> Preferences -> CompizConfig Settings Manager.
Navigate to Desktop Wall -> Viewport Switching and check the Allow Wrap-Around checkbutton:


i have problem when i install or update Ubuntu

Try using:

sudo apt install -f

Do not add upstart to the end.

You should not be trying to install upstart in the first place because systemd is the preferred system of booting and monitoring your system.

What you probably intend to do is:

sudo apt update
sudo apt upgrade

But as the error message states run sudo apt install -f all by itself first.


Ubuntu 16.04 does not recognize my built-in bluetooth adapter

Start the terminal from the dashboard.

type cd /var/log

then type grep -i firmware syslog*

These commands will search the system log looking for the word firmware. Look for any text indicating that it's having trouble loading firmware.

If so, then

type sudo apt-get update

then type sudo apt-get install linux-firmware

Then reboot the computer.

These commands will install a missing firmware file that the bluetooth adapter probably needs. No harm done if it doesn't.

If that all doesn't fix your problem, review this from a Google search that I did:

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

It sounds kind of like your problem too.

Keep us posted. Cheers, Al


You need not copy the entire contents of the USB drive. Just copy the casper-rw file to the computer as a backup.

casper-rw is the name of the file where the Live USB stores persistent information.

The next time you need to create a USB drive with the same settings and applications, create a live USB using uNetbootin or any other program and copy your backed up copy of casper-rw to it.


Install Ubuntu on second hard drive without CD/DVD

I've worked out some way which might work for you:

On your Vista computer:

Download and install UNetBootin
Download a Super GRUB2 Disk ISO file. Choose [coreboot] if you aren't sure which ISO you need.
Install the SG2D ISO to your 1GB USB stick usign UNetBootin.
Put the Ubuntu ISO in the root of your USB drive, so you can find it easily afterwards.
Edit the file (usb stick)/boot/grub/grub.cfg
Paste the following at the end of the file:

menuentry "Ubuntu ISO" {
    iso_path=/ubuntu.iso #Replace with ISO name
    export iso_path
    search --set --file $iso_path
    loopback loop $iso_path
    root=(loop)
    configfile /boot/grub/loopback.cfg
    loopback --delete loop
}

Save and eject the USB stick.

On your installation machine (With reinserted HDD):

Boot from USB stick.
You should see the menu option "Ubuntu ISO" in the appearing menu.
Select it and ensure it boots (Try without installing)
Install Ubuntu on the HDD.


Black borders on: windows, notifications, menus, etc

Solved it. I upgraded some libdrm-* libraries with a ppa and after removing the ppa I missed some downgrades.

Fixed them and now I got the window decorations back to normal.


I can't open files named in Arabic in Kubuntu 14.04

You have an invalid locale name set - there is no such thing as "en_DZ.UTF-8" - which makes your system fall back to the non-UTF-8 "C" locale. That's probably what's causing your problem.

I'm not using Kubuntu myself, but you should open the GUI for the language settings. Somewhere there you have probably selected Algeria as the country. To get a valid locale name, change that to e.g. United States or United Kingdom.

Next you should better remove that erroneous line in /var/lib/locales/supported.d/local:

sudo sed -i '/ar__AR/d' /var/lib/locales/supported.d/local

Then log out and log in again.

Finally regenerate your locale:

sudo locale-gen --purge

This time the output should be clean from error messages except for the ones about LC_MONETARY and LC_ADDRESS in ar_SD.UTF-8.


Ubuntu 20.04 - High load on CPU because of IRQ 126

AER errors

The command sudo grep -i AER /var/log/syslog* shows us that you're getting a ton of AER (Advanced Error Reporting) errors against PCI device 1d.3.

Your 1d.3 device is your...

1d.3-[05]----00.0  Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

One workaround is to modify /etc/default/grub, find the line near the top that contains "quiet splash" and change it to "quiet splash pci=noaer" and then sudo update-grub. BUT, I don't recommend this if you've got a lot of errors, as all it does is to mask the errors from being reported. The errors still occur.

A better solution is to review /var/log/syslog*, and determine what's wrong with that device. In the case of PCI comm gear, sometimes there's a firmware problem that needs to be resolved, with updated firmware, or some other real fix.

BIOS

You have BIOS F.25. A newer BIOS exists that may resolve this problem. I can't give you the new BIOS version, as the HP web site requires the serial # of your computer. With that information, you've already been to the HP web site and viewed the new information. For any BIOS update, make sure you have good data backups before performing the BIOS update.

BIOS F.53 is available for download here.


Ubuntu 16.04 hangs immediately every time I start a new machine in VirtualBox

I had the same Problem after upgrading my Kernel to 4.13.0-26-generic I selected my previous Kernel 4.10.0-42-generic in grub on boot time and it worked.

My guess is that there is a problem in the most recent Kernel. (4.13.0-26 at the time of this writing)
Problem is, that is the one with a Patch for the vulnerability CVE-2017-5754 (Meltdown).


Google chrome doesn't open in Ubuntu 14.04

[UPDATE: Apparently, "switching my computer off and switching it back on again" worked for me. However, I don't like errors which randomly disappear; they have a nasty habit of randomly reappearing.]

I'm seeing this too. This is Google Chrome 39.0.2171.99-1 on Ubuntu 14.04. Attempting to run in terminal produces

/usr/bin/google-chrome-stable: line 83: /chrome: No such file or directory

and I have to terminate manually with Ctrl+C. As far as I can tell, there's no previous version available in the repository for a downgrade (followed the instructions here).

(Would post this as a comment except that, for some reason, SE insists that you have to have reputation to comment, which seems... counter-productive.)


MPLAB IDE from Microchip it available for linux. MATLAB is also available from software center


12.10, run from USB to check compatibility

It will run on your Hardware except the HDD, but this shouldnt be a Problem. Ther is no virtual environment.

You can try Ubuntu from USB Stick to gain an insight, if your Hardware would make trouble or not, but is is NOT a guarantee, that a real installation will not make some troubles.

For the beginning, you can try to install a dualboot to save your Windows installation.

Needless to say, that you should make a backup bevor you do anything!


Where is my grub menu after updating Ubuntu 10.04

Hold down shift when starting your computer, and keep holding it until you see the grub menu. This will prevent it from booting automatically.

You can also permanently make the menu show. I'm using 12.04 so I can't check, but you should be able to find a file /boot/grub/grub.conf with a timeout option. You can set it to something like 10 seconds, which will display the menu for 10 seconds before booting automatically. Edit it with

sudo nano /boot/grub/grub.conf

and then run

sudo update-grub

to apply the changes and try rebooting.


when working in Ubuntu it crashes into TTY

You can use sudo service gdm restart to get the login screen back. If you use "ps ax grep gnome-session", then you will see if you're still logged in, or if the session has ended. You might want to pay attention and see if you get two gnome-sessions when you log back in. If that's the case, then you can use killall -u username gnome-session to end the old one. (You don't need sudo for that, and replace "username" with your actual username).

But if this happens frequently, then you might want to switch to the Ubuntu Classic session from the login screen, or install Unity 2D from the archives.


From man watch

  watch - execute a program periodically, showing output fullscreen

Say you want to monitor your network device status, you can use in terminal,

watch -n 2 nmcli dev

It will give you output as below which will be updated in every 2 seconds (as I used -n 2)

Every 2.0s: nmcli dev                                       Sat Jan 18 23:09:35 2014

DEVICE     TYPE              STATE
eth0       802-3-ethernet    connected
eth1       802-11-wireless   unavailable

If you want to keep watch on the changes of your files folders in a directory, use

watch -n 5 ls /path/to/directory

It will show you the list of files and folders in that directory which will be updated in every 5 seconds.


Ubuntu 18.04.3 /var/log/syslog Error message lircd flooding

I read in a link that its probably a bug, some people uninstall it with
    sudo apt-get remove lirc and stop the flood of this error.
https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/1768291


Cannot login to Ubuntu 20.04 Gnome session : amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x

I uninstall amdgpu driver and now login without Wayland. Seems latest amdgpu driver is not compatible with 20.04.

Steps:

Reboot.
Press Ctrl+Alt+F4.
Log in.
Run: amdgpu-pro-uninstall


Would a new Mesa driver help to fix WebGL problems?

How about just enable "Override software rendering list" in chrome://flags, it works in my chromium 18.0.1025.168.


Is there any way to update the Unity in Ubuntu 11.04?

This has been covered before I think (though the other question was a bit different and never had an accepted answer), and the answer is no, because updating Unity requires updating other libraries which could break your system. Your best bet is to upgrade to 11.10 or 12.04 (when it comes out).


I'm not 100% certain but I think the problem is SYMLINK+= will use the default /dev/NAME and only add an additional symbolic link. So you probably can't create symbolic links to devices that already exist?

Instead use NAME="sda"

From http://www.reactivated.net/writing_udev_rules.html

    After you have used a series of match keys to precisely match a device, udev gives you fine control over what happens next, through a range of assignment keys. For a complete list of possible assignment keys, see the udev man page. The most basic assignment keys are introduced below. Others will be introduced later in this document.
    NAME - the name that shall be used for the device node
    SYMLINK - a list of symbolic links which act as alternative names for the device node

    As hinted above, udev only creates one true device node for one device. If you wish to provide alternate names for this device node, you use the symbolic link functionality. With the SYMLINK assignment, you are actually maintaining a list of symbolic links, all of which will be pointed at the real device node. To manipulate these links, we introduce a new operator for appending to lists: +=. You can append multiple symlinks to the list from any one rule by separating each one with a space.

    KERNEL=="hdb", NAME="my_spare_disk"

    The above rule says: match a device which was named by the kernel as hdb, and instead of calling it hdb, name the device node as my_spare_disk. The device node appears at /dev/my_spare_disk.

    KERNEL=="hdb", DRIVER=="ide-disk", SYMLINK+="sparedisk"
    The above rule says: match a device which was named by the kernel as hdb AND where the driver is ide-disk. Name the device node with the default name and create a symbolic link to it named sparedisk. Note that we did not specify a device node name, so udev uses the default. In order to preserve the standard /dev layout, your own rules will typically leave the NAME alone but create some SYMLINKs and/or perform other assignments.*

It's not working for me, but I'm not sure where my problem is in my udev rules as debugging doesn't show them even being processed. Hopefully this helps you

I'm trying to do the same thing and force my devices to be specific /dev/sdX and I know people wonder why do it but some people want that level of control over their devices.


Permission denied when install featherdubster at python

It is permission issue. To fix it you have run installation script with root privileges.
Open terminal and type:
cd ~/featherduster
sudo python2 setup.py install


The mentioned image says everything better than i will now, but still...

It will only download the new packages which are needed, which may be a lot but only them.


Can't Change GPU Driver (Additional Drivers)

Got it fixed... The way I did it was like this:
sudo apt-get purge nvidia*

Restart my laptop.
sudo apt-get update

sudo apt-get autoremove

Restart my laptop.
Re-install the proprietary driver via the "Additional Drivers" tab of "Software & Updates".
Restart my laptop.
I Went back into the "Additional Drivers" tab of "Software & Updates" - now it says I am using the latest proprietary driver ("450", at the time of writing).


Uninstall ubuntu and install it again along with windows

If you want to install windows with an existing Ubuntu,

create a new partition by re-sizing you partition using Gparted in
Ubuntu
Format it as ntfs.
Now boot with windows installation disk and install it on newly created partition.
You will need to reinstall GRUB after installing window. Here is how
reinstall GRUB. help.ubuntu.com

.

.


I have the same issue on Ubuntu 14.04, workaround it with qtconfig! run qtconfig and select GUI style GTK+

This GTK+ theme looks same as Ubuntu theme just some icons are different...


Low timeout threshold for double-click mouse event

You can adjust the 'Double Click Timeout' in All Settings -> Mouse and Touchpad -> 'Double-Click Timeout' and adjust the slider to your personal preference.

That said, if you are getting inconsistent results then the source of the problem is most likely intermittent hardware failure or user error. I'll assume you can click or double-click just fine, so try a different mouse if this settings change doesn't help.


How to move windows around and between screens?

On Unity, you can press Ctrl + Alt + Numpad 1 to move the window to the bottom left of the screen.

You can also use Numpad 4 to move it left, Numpad 7 to move it top left, Numpad 8 to move it top, Numpad 2 to move it bottom, Numpad 9 to move it top right, Numpad 6 to move it right and Numpad 3 to move it bottom right.

I hope this helped you,

Daniel


You can try sudo purge-old-kernels (utility from byobu package).
Then sudo apt-get autoremove.


RStudio on Ubuntu (GNOME): settings reset on launch

Make sure the user has write and read permissions to file .config/Rstudio/desktop.ini. This allows RStudio to save the zoom level.


Samba has a group by default to allow sharing. To add a user to that group just type sudo gpasswd -a david sambashare. Logout and log back in for the changes to take affect. When you map the network drive in Windows you will need to provide the credentials (linux ones) for david. Your samba configuration might need a little tweaking. Here's mine for example:

[Chol]
    comment = Shares
    path = /home/chol
    browseable = yes
    read only = no
    public = yes
    guest ok = no
    valid users = chol
    create mask = 0777
    writeable = yes


Wine won't install on fresh Ubuntu 13.10 64bit

I have successfully installed wine 1.7 on Ubuntu 13.10 64 Bit following this guide


Nvidia with Bumblebee installation for 16.04

Looks like someone has succeeded...
https://lenovolinux.blogspot.si/2016/05/bumblebee-on-lenovo-t440p-nvidia-gt.html


Yes, it's possible. The changes are saved on a  persistence file which needs to be created when making the diskimage. If you're making the flash-drive image from windows, I presume you're using Universal-USB-Installer, set the persistent file size according to your requirements.

Or if you're doing this from some linux distro, you're probably using Unetbootin. In that case, change the persistent space value as per your needs.


Mate - change background of login page after suspend

Text taken from the solution on mate forum

Create /usr/share/glib-2.0/schemas/z-mate.gschema.override.

The content of z-mate.gschema.override  should be:

[org.mate.background]
picture-filename='/path/to/background'

Now, you have to compile gsettings schemas with the command below:

sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

And It worked for me, with UMate 16.04 lts.


How to find out the HDMI version supported

You cannot probe this information directly, but you can infer it.  Below all HDMI versions:

HDMI version    1               1.1             1.2             1.3             1.4             2
Date released:  9 Dec 2002      20 May 2004     8 Aug 2005      22 Jun 2006     28 May 2009     4 Sep 2013
Max resolution  1920×1200p60    1920×1200p60    1920×1200p60    2560×1600p60    4096×2160p30    4096×2160p60

Source

So you can be sure you've got 1.3!


when I try to install ubuntu in dual boot it will not display partition of my windows so what is the problem?

1st step --->  you have to separate the free space in the Hard disk
 2th step ----> In that free partition you have to install the Ubuntu 14.04 version
3th step--->  if didnt show the free block u have to shrink the free space that show the unused space


Why does the 12.04 i386 Desktop install fail on an Athlon XP 3000+ system?

I will just presume (no details given) that you are attempting to install Ubuntu 12.04 desktop (32bit) on your PC, replacing any existing data or OS.

From you description, this could be a CD/DVD format issue, CD/DVD drive read issue, memory/timing hardware issues, or something else.

Try with another CD, or USB flash drive (to install from);
Try testing memory for 10+ minutes, using the test tools included in the
LiveCD or Alternative Ubuntu installation disc; and/or
Verify that the CD/DVD drive can read another known, good disk.


The Crazyradio PA does not implement serial port over USB protocol. It uses a custom USB protocol by talking directly to the endpoint using libusb. This is why you will not find it detected as a serial port.

If you want to verify that a USB device has been recognized you can type "dmesg" just after inserting the USB device, you will then see what, if any, kernel driver is handling this device (for example serial, audio, ...).

The Crazyradio USB protocol and python library are described in the bitcraze wiki: https://wiki.bitcraze.io/doc:crazyradio:index. If all you want is to control a Crazyflie, the Crazyflie client and lib will use any inserted Crazyradio PA.

Disclaimer: I am part of Bitcraze and the main Crazyradio developper.


Short answer: why not? (implied smile, please)

More lengthy one: it is mostly a history thing, I suppose. There were 6 virtual consoles configured with getty in the first linux I booted with VC support, I really forgot when (it was around 1990, I think). Then when you started the graphical environment (by hand, with startx) it opened itself on the first free VC, which happened to be #7. And I still did most of my work on VCs at the time: the editors were much faster and sometime I used more VCs than the standard six, and my laptop was not exactly a graphic monster...

For example, I used to run three editors (a program, its input data, a TeX file describing it), one VC for compiling, another to read a manual, and another one connected via telnet to my mail server.

I suspect that the rationale for still using six virtual consoles is to let the graphic VC on #7 for everyone, so you can write on manuals "Ctrl-Alt-F7" and not "Ctrl-Alt-Fx where  x is the first free VC".

As a side note, you can (I suppose --- never tried) trim down the VCs. Simply do

sudo bash -c "echo 'manual' >> /etc/init/tty6.override"

to stop VC#6, following the upstart manual.


Gparted gives me the following error when I connect SD card - libparted error (read error / unrecognized disk label)

If the SD card does not contain any valuable data, try to zero it out ( = overwrite the whole card and set all bits to 0) using this command:

sudo dd if=/dev/zero of=/dev/sdX bs=4M

Replace /dev/sdX with the actual device name of your SD card as shown in the output of lsblk.

  WARNING:
  The target disk you specify here after of= will get completely overwritten, data rescue will be impossible! Be careful!

After that you should be able to partition and/or format it again. If it does not work, your SD card is physically damaged and needs to be replaced.


Not certain this is a direct answer - Alt-right click   Add to panel  search is available


How do I format an external harddrive so files can be accessed by both Ubuntu and PC?

Whatever "protection" there is may make it hard to access files on the drive now, but shouldn't hinder formatting it. You can use GParted to format the drive in Ubuntu, if Disk Utility doesn't work.

FAT32 is likely fine for your needs. You can only have files under 4 GiB in size on a FAT32 system, though.

NTFS will also work.

There are drivers to access ext2, ext3, and ext4 filesystems on Windows, but if the purpose of this drive is to share data between the systems, you may as well use FAT32 or NTFS. Then you don't have to install any new drivers on any system. Plus, this will let you read and write to the drive on other Windows systems.

In case it's a relevant consideration for you, Mac OS X (without added drivers) will read and write FAT32 and will read but not write NTFS.


zcat fails to make a boot image for Ubuntu USB

I think this one is the crucial error message:

bash: /dev/sdb: No medium found

So it seems that /dev/sdb is no longer connected to the system when you try using it; if you unmounted it using Nautilus' menu, it's likely that the whole USB device has been de-activated. (Look in the last lines of /var/log/syslog for confirmation.)

Try:

Plug the USB stick in
Look up what ID the auto-mounter assigns to it: run mount | fgrep /dev/sdb, this will show a line like /dev/sdb on /media/3433-3231 ... (the actual numbers may change)
unmount it from the command line:

sudo umount /media/3433-3231

Now you should be able to proceed with your tutorial (as root):

zcat boot.img.gz > /dev/sdb


Xubuntu 16.04 monitor display no signal after turned off

This appears to be a known bug in xubuntu 16.04, see https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1575123

There have been workarounds posted on http://forums.whirlpool.net.au/archive/2529958. One is a script that I have tried (and it did work):

#!/bin/sh
#Fix TV state when HDMI link is lost.
#By Mario Limonciello <email address hidden>

OUTPUT="HDMI3"
BAD_MODE="1280x720"
GOOD_MODE="1920x1080"

for MODE in $BAD_MODE $GOOD_MODE; do
DISPLAY=:0 xrandr --output $OUTPUT --mode $MODE
sleep 2
done

The OUTPUT variable may need to be edited to suit your display. Use xrandr to find your own value for it.

Another post includes a /usr/share/X11/xorg.conf.d/*.conf file that apparently works for some. I won't quote it here because (for some reason) it froze my display.


Try this link:
http://www.ubuntu.com/download/desktop/thank-you?distro=wubi&bits=&release=lts

If that does not work then try this one and scroll down to where you can click on
'Get The Installer':http://www.ubuntu.com/download/desktop/windows-installer

If it still doesn't work you need to clear your browser's cache and cookies!


How to get rid of multiple duplicate menus in Firefox bookmarks library?

This can be caused by a corrupted places.sqlite or by importing a HTML backup that created those extra, normal, folders instead of placing the bookmarks in the existing root bookmark folders that have the special icons.

Check this link for more info.

Also take a look on this addon: it will run some maintenance tasks on your browser and reindex the sqlite file.

This link ("kb.mozillazine.org/Places.sqlite") explains what is sqlite and what it has to do with Firefox. If you're interested.


How much security is provided by secure boot?

Only the software involved in the boot process is checked by secure boot.

The bootloader (Ubuntu uses grub in UEFI mode) and the kernel are checked; they should match a signature. I think also kernel drivers are checked, and unsigned drivers will be blacklisted, which might exclude some proprietary drivers for graphics and wifi.
Other software is not checked by the secure boot feature. This includes regular application programs, both command line (text mode) programs and graphics mode (GUI) programs , but also drivers for software, that are not kernel drivers and other help programs that can run in the background.

Secure boot is not enough to keep you safe. You must use other methods to avoid malware. Install programs from the Ubuntu repositories and maybe from well-known PPAs, but avoid programs from any random website (unless you have the source code and understand it). Remember that also websites and document files can be infected by malware.


Macbook Broadcom 4331 was working, now enable wifi isn't an option. (14.04)

Your driver is missing the firware, with an internet connection do:

sudo apt-get install firmware-b43-installer

That wll install the required firmware.
Reboot


be sure that a version of libGL is installed. Try the following command:

locate libGL

You will properbly get a bunch of libGL's that hanging around on your system ...
Pick one of them and copy the path. Now type:

ln -s <path_to_your_desired_libGL.so.1> /lib/libGL.so


Your system is in a very very bad state. Most people would suggest you to either reinstall or to boot into a live CD and then change the permissions of each and every file as it was before.

To get rid of your current error message, you need to change the permission of the /etc/sudoers.d/ directory to 755 and then changing the permissions of the contents of /etc/sudoers.d/ to 440:

sudo chmod 755 /etc/sudoers.d/
sudo chmod 440 /etc/sudoers.d/*

If you have not already change the permission of /etc/sudoers too:

sudo chmod 440 /etc/sudoers


How to use nvidia geforce 920mx in ubuntu 17.10

Answering my own question.

Run sudo add-apt-repository ppa:graphics-drivers/ppa
Run sudo apt-get update && sudo apt-get upgrade
Open http://www.nvidia.com/Download. Provide your VGA type, the website will show you the best driver version. Don't download the driver provided by the website. It is quite difficult to install the provided driver. You should turn off x session etc.
Install the driver from the ppa. My driver version is 390.42, so I type: sudo apt-get install nvidia-390

It works perfectly now


Middle-click does nothing but makes window controls appear

You should be able to open a terminal with:

Alt+Ctrl+T

and then use the command:

synclient TapButton3=2  ClickFinger3=2

This disables Unity's use of 3 tap and 3 click (for click devices) gestures. See this, in particular comments around #68, and this if the above doesn't work.


For reasons that I forget... (IIRC has to do with how much space is allocated for the partition table on the physical disk) you can only make 4 entries in the disks partition table. Just as an MSDOS file system will only allow 512 entries in the "root" directory. To get around this restriction in MSDOS they came up with sub-directories, which were in the same format as the "root" directory with the exception that they could grow in size, as they were just files with a special attribute. Early versions of MSDOS did not have support for "sub-directories", IIRC that didn't come until MSDOS 1.6 or so.
So now we have "extended" and "LVM" types of partitions in the disks partition table to preform the same function as a sub-directory, it allows us to make more than 4 physical partitions. The physical size of the extended partition is determined by the number of logical partitions that you declare while running fdisk. It has the descriptions of the logical partition in it. A logical partition, cannot be made bootable, that is why you have to have a physical partition to boot from.

The output of sudo fdisk /dev/sda -l for my computer is below. I would recommend at least 10 Gib (some say 20) for the partition that you mount to "/". I for various reasons, like to have a separate partition for /usr (or with the 20 Gib option /usr/local) sized according to your experience and another for /home. The last one for a swap partition, sized (some say) to twice your installed RAM, I would make it so that RAM + Swap = 16 Gib for a "normal" desktop. I've had a machine running Apache, proftp as well as CAD programs and compilers running, with 12 G of RAM, run for months straight without using swap. Your mileage may vary....

Pardon the formatting of the output, this box doesn't seem to like my cut & paste!

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors

Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x3bec3746

Device    Boot     Start       End   Sectors   Size Id Type

/dev/sda1  *         2048  11999231  11997184   5.7G 83 Linux

/dev/sda2        12001278 234440703 222439426 106.1G  5 Extended

/dev/sda5        12001280 111998975  99997696  47.7G 83 Linux

/dev/sda6       112001024 211998719  99997696  47.7G 83 Linux

/dev/sda7       212000768 234440703  22439936  10.7G 82 Linux swap / Solaris

Note: sda1 is the bootable partition (physical), while sda2 is an extended partion and it IS a physical, but just describes WHERE on the disk the "extended" information is located. sda5, sda6 & sda7 are logical disks described in /sda2. What happens to sda3&4? IDK, I used to, but that was back around kernel v0.97 or so, it's been awhile.
I hope this explains whats going on here.
For further info, I'd refer to an "old skool" book (copyright 1988 Thom Hogan) named "The Programmer's PC Sourcebook", it has a table of the Disk Partition Table, with all sorts of detailed notes on offsets, etc. If you want to get down to the nitty-gritty whatsgoingonhere stuff, it's valid today, except for the legacy OS information, well, the info is still valid, but who writes software to manipulate hardware on a IBM PC/2 anymore?


tar.bz2 files -- compile or simply copy into /usr/bin?

The installation method defers from one app to another
Read the instructions inside the .tar.bz2 Archive, there should be a README or INSTALL file inside it.


What is the difference between xorg radeon and xorg radeonhd

radeonhd:

Status 09/2010: Linux distributions, including Novell's openSUSE, have now abandoned radeonhd as the default driver, instead using the radeon driver. radeon has more features, including Kernel Mode-Setting support and more 3D support, and it supports all Radeon generation from original R100 Radeons to R800 Radeons (HD 5000 series). Radeonhd can be continued to be updated as long as there are people find it useful.

radeon:

Driver for ATI/AMD Radeon based video chips, everything from Radeon 7000 (R100) to Radeon HD 7000 (Southern Islands) series. Part of xf86-video-ati, ie. also known as the 'ati' driver. License: MIT
But it doesn't work well. So I search the package needed for my board.

If the open source version does not do well with your system:

File a bug report against package "radeon".
Re-install 14.04 and stick to it for now since AMD did not release 3rd party drivers for Ubuntu 16.04. So you have no options but the open source version.


Kernel 5.8 crash on ubuntu 20.04 and ubuntu 20.10

For me, the problem seemed to be an "out of memory" condition on my desktop system running a recently installed (L)ubuntu 20.10 (Groovy Gorilla) OS.  I solved the problem by creating a swapfile per the excellent instructions published by Brian Boucheron at https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04.
Interestingly, judging from what I see on my older computer running Lubuntu 18.04 (bionic), it appears that on this and earlier releases swapfiles were set up and enabled by default, but that at some point in later releases they were not.
I hope this may be of some help.


Will storage space of other operating system be affected?

Xubuntu can be installed in place of Kubuntu. You'll be presented with an option to replace Kubuntu with Xubuntu in the installation phase. If that is not the case, you can always select the existing Kubuntu partition as the / for the new Xubuntu installation in manual partitioning. That will be OK.

Check the installation guide for more details.

How do I install Ubuntu?


Sounds like a similar issue to me.
I did a clean install of ubuntu 14.04 on my hp nx6325 with a turion 64x2 cpu.
at the moment mine works but doesnt shutdown probably because the Modem was unrecognised and therefore causes issues.
i was advised on here to do the Ctrl-Alt-F6 to switch screens to see the login/text screen. This allows you to see the error messages displayed.
most likely a faulty driver is preventing it from continuing (finishing its login)

so the differences between our pcs might be

1) the modem(if any)
2) blutooth(if any)
3) the wireless card make/model
4) the Lan make/model.

you could try disabling the wireless card/blutooth in the bios then do a complete re-install, then maybe you will be in the same state as me.


Not sure about graphically, I'm not sure an easy to use GUI exists for setting this up, so here's the easiest way of doing it via the terminal.

When you're in the command-line install UFW (it's easier than iptables and does the job just fine) and pptpd (the VPN server):

sudo aptitude update && sudo aptitude install ufw pptpd

Then allow HTTP, HTTPS, and pptpd (1723).

sudo ufw allow 1723
sudo ufw allow http
sudo ufw allow https

Now open up the /etc/ppp/pptpd-options file for editing:

sudo nano /etc/ppp/pptpd-options

And comment-out the following lines, by adding a # symbol in front:

#refuse-pap
#refuse-chap
#refuse-mschap
#require-mppe-128

Also in that file, add the following (this is using OpenDNS' DNS servers):

ms-dns 208.67.222.222
ms-dns 208.67.220.220

Now open up the /etc/pptpd.conf file for editing:

sudo nano /etc/pptpd.conf

And at the bottom of the file add the following:

localip 10.99.99.99
remoteip 10.99.99.100-199

The above IP addresses do not need to correspond to your network, so just use the above.

Now open up the /etc/ppp/chap-secrets file for editing:

sudo nano /etc/ppp/chap-secrets

In this file add a username and password like this (separate the fields by a tab):

username    pptpd    password    *

Now open up the /etc/sysctl.conf file for editing:

sudo nano /etc/sysctl.conf

And uncomment the line (remove the # symbol):

net.ipv4.ip_forward=1

Now open up the /etc/default/ufw for editing:

sudo nano /etc/default/ufw

And change DEFAULT_FORWARD_POLICY="DROP" to DEFAULT_FORWARD_POLICY="ACCEPT"

Now open up the /etc/ufw/before.rules file for editing:

sudo nano /etc/ufw/before.rules

And add the following just before the *filter rules:

*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 10.99.99.0/24 -o eth0 -j MASQUERADE
COMMIT

Now restart all of the services we've edited:

sudo /etc/init.d/pptpd restart
sudo sysctl -p
sudo ufw disable && sudo ufw enable

You'll need to forward the port 1723 on your router to your device. There's usually a preconfigured option for this on most modern routers.

I had a little trouble with Virgin's router, and it turned out I not only had to port forward, but also had to enable PPTP in the Firewall section of the settings.


How are you connecting to the database, if it is with php try

mysql_connect("localhost", username, password);

with localhost as your host.


ubuntu installer is not detecting windows and existing partitions

Chances are you have one of two problems:

Leftover RAID data -- This can usually be fixed by typing sudo dmraid -E -r /dev/sda at a Linux shell prompt, changing /dev/sda to the device filename, if it's not /dev/sda.
A damaged partition table -- Many problems with MBR partition tables can be fixed with my FixParts program; see its documentation for details. You'll probably need to run the Windows version or run it from an emergency disc like Parted Magic, though.


Unable to connect Ubuntu 14 & Windows 10 with Remmina

nano ~/ .freerdp/known_hosts

That is the correct path. Notice the space. I was having the same problem with Remmina using RDP. First delete the entries from this file, then try reconnecting with Remmina. It should ask you to accept certificates.


How to completely remove phpMyAdmin without knowing its password?

Open a terminal and type:

sudo apt-get remove --purge phpmyadmin

or as Rinzwind noted

sudo apt-get purge phpmyadmin

this should (1) remove phpmyadmin and (2) remove its settings files and so on too.


If by "no drive shown" you mean that the Ubuntu installer isn't giving you options for any hard disk device at all (no /dev/sda or /dev/sdb), then you've probably got hardware that's too new, and there are no Linux drivers for it. If so, then I'm afraid the only solution is to wait for updated Linux drivers. Such drivers might actually exist already, and you might want to try Fedora or some other distribution in the hopes that they're distributing them; or if you're more technically inclined, you could try compiling the latest kernel and using it with the Ubuntu installer.

If you mean something else, though, please clarify. If necessary, take a digital photo of the screen(s) that illustrate the problem and post links. (Edit your original question to do this.)


Ubuntu 12.04.4 LTS to 14.04.1 LTS upgrade: "no new release found"

Actually -p option works to run the release upgrade:

do-release-upgrade -p

Here is the explanation of the -p option:

-p, --proposed
Try upgrading to the latest release using the upgrader from Ubuntu-proposed

P.S. Also on #ubuntu IRC channel nobody seems to know what actually "triggers" the do-release-upgrade command to work properly...

P.P.S. Caution when upgrading from Ubuntu 12.04 LTS to 14.04.1 LTS, as grub will fail to update kernel list.


You can try two things:
1 easy solution
Just unplug (from electricity) your computer for 10 seconds,
plug again and it might work! (yes it does)
2 if it doesn't work (edit grub)
The solution was in Grub
go to: Advanced Options
There I went to the 'Recovery mode option'
prees 'e' to go to the editor.
edit the line
linux /vmlinuz-3.0.2..... nomodeset acpi=off

press F10 to boot.
That way it did boot, but it didn't recognize the keyboard.
This confirmed with an 'acpi' issue.
The next thing I did is a restarted the computer
and went testing the different acpi options
in this guide.
The one that did it for me was
nolapic

F10 once again and then my keyboard responded
from there I ran 'fsck'.
and start again.


Can you use your PC with a dead RAM stick?

You can tell the Linux kernel to exclude some memory regions on its command line. Excerpt from the kernel parameter documentation:

memmap=nn[KMG]$ss[KMG]
        [KNL,ACPI] Mark specific memory as reserved.
        Region of memory to be reserved is from ss to ss+nn.
        Example: Exclude memory from 0x18690000-0x1869ffff
                 memmap=64K$0x18690000
                 or
                 memmap=0x10000$0x18690000

If you write down the exact location of the corrupted memory region from memtest86+ you can then use that info as described above and add a parameter to the kernel boot options.

Be aware that memory corruptions can occur (apparently) randomly! Run the memory test at least twice to assure that the corrupted region is (most likely) always the same.


Just upgraded to Lubuntu 15.04 and Lexmark printer Pro 715 stopped working

Please try to restrt cups:

sudo systemctl restart cups

If after this printing will start working you'll need to install cups-browsed:

sudo apt-get install cups-browsed

Without cups-browsed cups.socket is unable to listen port 631 right after boot.

This problem persists even on Lubuntu 15.04 Live CD, but not on Ubuntu or Kubuntu. I spent about hour to find this solution.


Synchronization of .tar.gz-file seems to constantly start all over again

Change the name of the file and it should upload correctly. I had a similar problem last night with a png file. I don't know what causes it and I'll leave that to one of the developers to answer, but changing the file name seems to fix the problem.


Why can't ubuntu install detect my other drives?

Since you've provided zero information about your setup, it would be impossible to know the cause.

However, a workaround would be to just disconnect the SATA cable from your HDD, leaving only the SSD connected for the installation.

Afterwards, you could connect your HDD again.


Chrome / Chromium touch issue (Ubuntu 16.04)

Solution:

First of all,

sudo nano /etc/modules

Paste

usbtouchscreen

usbhid

Right after lp, then load modules (only at 1st time) by command

sudo modprobe usbtouchscreen usbhid

Right after that, you have to download and extract eGalax Touch driver (you have to choose compatibile driver with your kernel version; check it by:

uname -r

Open terminal in folder you extracted the driver, then

sudo sh setup.sh

After that you get prompted you have to reboot, so:
reboot or systemctl reboot -i

Next step to do is to edit SystemD service:

sudo systemctl edit --full eGTouch.service

Overwrite the code with this one below:

 # eGalax Touchscreen service file

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/usr/bin/eGTouchD
DefaultDependencies=no
Before=sysinit.target
After=apparmor.service

[Service]
Type=forking
Restart=always
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
TimeoutSec=0
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=no
User=root
Group=root
ExecStart=
ExecStart=/usr/bin/eGTouchD start
ExecReload=/usr/bin/eGTouchD restart
ExecStop=/usr/bin/eGTouchD stop

[Install]
WantedBy=multi-user.target

Remove the SystemV.init script:

sudo rm /etc/init.d/eGTouch.sh

Then enable the SystemD service you just created:

sudo systemctl enable eGTouch.service
sudo systemctl daemon-reload

And at the end, restart it.

sudo systemctl restart eGTouch.service


One by Wacom Pen Tablet installing in Ubuntu 17.10

I am using CTL-472 in Ubuntu 18.04. And after I following the instructions on this page to install a new driver, the tablet can be detected and works well now.

Prerequisites

Before building, you'll need to ensure the necessary dependencies have been installed on your system:

sudo apt  install build-essential autoconf linux-headers-$(uname -r)

Download

In general, you should simply download and untar the latest release from the releases page. If, however, you need to build a development version of the driver you will need to install and use the "git" tool to clone a copy of our repository. The developer should provide you with a git command to perform the necessary clone.

Build / Install

Open a terminal and navigate into the extracted/cloned input-wacom directory. Next, copy and paste the following command to build and install the driver. If you get a "Build Failed" message at the end if your output, please contact the linuxwacom developers for support.

if test -x ./autogen.sh; then ./autogen.sh; else ./configure; fi && make && sudo make install || echo "Build Failed"

Module Loading

The updated driver should automatically load after rebooting the system. You can verify the version number of the loaded kernel module by running the following command. Version numbers like "v2.00" indicate that the stock kernel module is still in use. A version number like "v2.00-0.38.0" indicates that version 0.38.0 of the input-wacom driver is loaded. Consult the "Troubleshooting" section below if the version number does not match what you expect.

grep "" /sys/module/wacom*/version

or, if you do not have a tablet attached to the computer:

modinfo wacom | grep version

Next Steps

Upgrading both the kernel driver and the X driver to the same version is recommended. Please see the instructions for updating the xf86-input-wacom driver.


The best solution would be to find a version of the tool that is supported on 16.10. Else check this: E: Package 'libpng12-0' has no installation candidate [ubuntu 16.10 Gnome] to download the library from http://packages.ubuntu.com/xenial/i386/libpng12-0/download


Is it possible for Conky to display Time in words and not in numbers?

Lua scripting solution

This is indeed possible using Lua scripting. You can use the script below (the number conversion is taken from rosettacode.org).

The script can do a boring option, which will translate 12:45 to "twelve forty-five", and an awesome option which will translate it to "a quarter to one". It also does a Uri Herrera option which does the hour bold ;)

Also it automatically refreshes, when the time changes.

words = {"one ", "two ", "three ", "four ", "five ", "six ", "seven ", "eight ", "nine "}
levels = {"thousand ", "million ", "billion ", "trillion ", "quadrillion ", "quintillion ", "sextillion ", "septillion ", "octillion ", [0] = ""}
iwords = {"ten ", "twenty ", "thirty ", "forty ", "fifty ", "sixty ", "seventy ", "eighty ", "ninety "}
twords = {"eleven ", "twelve ", "thirteen ", "fourteen ", "fifteen ", "sixteen ", "seventeen ", "eighteen ", "nineteen "}

function digits(n)
  local i, ret = -1
  return function()
    i, ret = i + 1, n % 10
    if n > 0 then
      n = math.floor(n / 10)
      return i, ret
    end
  end
end

level = false
function getname(pos, dig)
  level = level or pos % 3 == 0
  if(dig == 0) then return "" end
  local name = (pos % 3 == 1 and iwords[dig] or words[dig]) .. (pos % 3 == 2 and "hundred " or "")
  if(level) then name, level = name .. levels[math.floor(pos / 3)], false end
  return name
end

function numberToWord(number)
    if(number == 0) then return "zero" end
    vword = ""
    for i, v in digits(number) do
      vword = getname(i, v) .. vword
    end

    for i, v in ipairs(words) do
      vword = vword:gsub("ty " .. v, "ty-" .. v)
      vword = vword:gsub("ten " .. v, twords[i])
    end
    return vword
end

function conky_boringTime()
    hour = os.date("%H") + 0
    minute = os.date("%M") + 0
    return numberToWord(hour) .. numberToWord(minute)
end

function conky_awesomeTime()
    hour = os.date("%H") + 0
    minute = os.date("%M") + 0
    hour = hour % 12
    if(hour == 0) then
        hour, nextHourWord = 12, "one "
    else
        nextHourWord = numberToWord(hour+1)
    end
    hourWord = numberToWord(hour)
    if(minute == 0 ) then
        return hourWord .. "o'clock"
    elseif(minute == 30) then
        return "half past " .. hourWord
    elseif(minute == 15) then
        return "a quarter past " .. hourWord
    elseif(minute == 45) then
        return "a quarter to " .. nextHourWord
    else
        if(minute < 30) then
            return numberToWord(minute) .. "past " .. hourWord
        else
            return numberToWord(60-minute) .. "to " .. nextHourWord
        end
    end
end

function conky_getHourWord()
    return numberToWord(os.date("%H") + 0)
end

function conky_getMinuteWord()
    return numberToWord(os.date("%M") + 0)
end

Now save it somewhere, for the purpose of this question assume we save it as ~/.config/conky/scripts/pretty_time.lua

Now edit your .conkyrc, before TEXT add a line

lua_load ~/.config/conky/scripts/pretty_time.lua

this loads the script so we can access the functions.

Then, at the appropriate place below TEXT, you can call the functions in the following way (conky automatically adds the conky_ prefix)

TEXT
...
${color grey}Boring time:$color ${lua boringTime}
${color grey}Awesome time:$color ${lua awesomeTime}
${color grey}Special Uri Herrera:$color ${font Aria:bold} ${lua getHourWord}$font ${lua getMinuteWord}
...

This will result in

If you want the seconds, this shouldn't be too hard to add yourself.


TL;DR
This is "expected" behaviour for a search. For some reason, the formatting breaks when searching causes bold highlighting.

As a comparison with another OS, MathJax is rendered correctly, on the front page of SE.Mathematics, on OS X 10.13.6, using Chrome 88.0.4324.192:

However, when you search for a particular term then the MathJax formatting breaks. That is to say when using a link, with a search term included, which causes that search term to be bolded, i.e. MathJax, then the formatting is broken:


gpg: invalid key resource URL following Docker official guide

I recently had the same issue and fixed it by doing
sudo rm "/etc/apt/trusted.gpg.d/home:manuelschneid3r.gpg"


You need superuser power to switch users. Hence the sudo
su is the command to "switch user" and the name behind it what you switch to, where nothing behind it makes you "root".
sudo -i is preferred over sudo su when switching to "root" since log files are then updated with the user login name and not "root".


Right click on the latte dock, then go to: Layouts > Configure
[Screenshot] Open Latte Dock Setting

On Latte Dock Settings, select: File > Quit Latte
[Screenshot] Quit Latte Dock

Disable/remove it from autostart. Open System Settings, go to: Workspace > Startup and Shutdown > Autostart, or just type "Autostart" from search menu bar. Click on Latte, Then remove it by click button "-" (Remove)
[Screenshot] Remove Latte Dock from Autostart


How to apply patch to rt2x00 driver for Ralink RT5390 support

The one line patch simply shows you that you would need to edit the rt2800pci.c file from the linux header source files and add,

#ifdef CONFIG_RT2800PCI_RT53XX

{ PCI_DEVICE(0x1814, 0x5390) },

{ PCI_DEVICE(0x1814, 0x539f) },

#endif

lines to the file and recompile the header again to get the drivers to work correctly.


I finally found a solution. Like Timothy Truckle wrote, I used the export/import plugin, BUT before that, I had to rename the mail files, otherwise the import would only show empty directories.

First, find where kmail stores your messages (there may be more than one place if you have several accounts):

$ ls -1d ~/.local/share/local-mail ~/.local/share/*/local-mail
~/.local/share/0/local-mail
~/.local/share/1/local-mail
~/.local/share/local-mail

Then in EACH of those directories, do ALL of the following:

# This performs a backup
zip -r ~/mail.backup.zip ~/.local/share/local-mail
cd ~/.local/share/local-mail
# This renames the files so that the import will identify them properly
find -type f -exec mv -v '{}' '{}.eml' \;

Now you could stop here and go import the directories in Thunderbird, but you will end up with a lot of empty directories and misnamed directories, such as .Friends.directory or .Family/cur, so a little scripting can clean things up first.

# Remove empty directories
find -type d -exec rmdir -v '{}' \;
# Move the files up from cur/, tmp/ and new/
find -type d -name cur -exec bash -c 'for dir; do mv -v "$dir"/* "$(dirname "$dir")/"; done' bash {} +
find -type d -name tmp -exec bash -c 'for dir; do mv -v "$dir"/* "$(dirname "$dir")/"; done' bash {} +
find -type d -name new -exec bash -c 'for dir; do mv -v "$dir"/* "$(dirname "$dir")/"; done' bash {} +
find -type d -exec rmdir -v '{}' \;
find -type d -iregex "\..*\.directory"
# Now move ../.something.directory into ../something (which may not exist)
find -depth -type d -iregex "\..*\.directory" -exec bash -c 'for dir; do A=$(echo $dir | sed -e "s#\(.*\)\.\([^/]*\).directory#\1\2#"); mv -v "$dir"/* "$A/" ; done' bash {} +
# if there are still .something.directory, just rename them manually to 'something' (this line won't do it automagically):
find -type d -iregex "\..*\.directory"

Finally, in Thunderbird, create a directory IMPORT under Local Folders, select it (don't forget as right-click is not enough!), right-click on it, [ImportExportTools], [Import all messages from Directory, also its subdirectories], and let it work for a while.

I could write a script to do all of the above, but now that I've finally managed to move my mail, I'm just fed up with it.


Brightness Controls Not Working on a Dell Inspiron N4010 Laptop

I have the same model and I had the same problem all the way through 13.04 development until one day before release and then it started working. I filed the bug here: Bug #1105604: Brightness control stopped working

What you can do is to use a manual override that I used throughout development, by modifying /etc/rc.local as follows:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 978 > /sys/class/backlight/intel_backlight/brightness
chmod 777 /sys/class/backlight/intel_backlight/brightness
exit 0

The downside is that you can't change the brightness easily except by manually modifying the file /sys/class/backlight/intel_backlight/brightness

When I did have it working, I used the Fn + brightness keys to check the settings: the lowest setting is 490 and after that it goes up in increments of 488. So these are the default settings for /sys/class/backlight/intel_backlight/brightness:

490 Lowest with backlight on
978
1466
1954
2442
2930
3418
3906
4394
4882 Brightest

My brightness controls were previously working, but are broken again so I decided to create a script to manage it:

#!/bin/bash
# Dell N4010 brightness control workaround
# Note: add the following to /etc/rc.local
#       chmod 777 /sys/class/backlight/intel_backlight/brightness
# For convenience I've assigned the keys Alt-Up and Alt-Down to run this script
# Fine tune the bump parameter as required
#
# Usage:
#    ./brightchg.sh up   # bump up brightness
#    ./brightchg.sh down # bump down brightness
#
curr=`cat /sys/class/backlight/intel_backlight/brightness`
bump=244
if [ "$1" == "up" ]; then
  curr=`echo "$curr + $bump" | bc`
else
  curr=`echo "$curr - $bump" | bc`
fi
# Set the brightness to the new level making sure it's always above 30 (minimum usable)
if [ $curr -gt 30 ]; then
    echo $curr | tee /sys/class/backlight/intel_backlight/brightness
fi

Note: I added a line in /etc/rc/local to give me authority to the brightness file:

chmod 777 /sys/class/backlight/intel_backlight/brightness

Then I assigned it to the keys Alt+Up and Alt+Down as shown here:


Recovering a lost file system off a hard drive?

Have used the instructions on this link with great success many times.

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

Tips:
Always make a full image of the entire drive, then perform any relevant recovery efforts on the image.

Also, if you can, use a 10,000 RPM drive (Western Digital Raptor) or a SSD for holding the image during recovery - it will speed up your recovery efforts quite a bit.

Does that help?


errors in installing mysql-server on my ubuntu machine

do

dpkg --configure -a

then try

sudo apt remove --purge mysql-server

sudo apt install mariadb-server
sudo apt install mariadb-client
sudo mysql_secure_installation


Can't find .config folder in Ubuntu 14.04?

Generally any .folder are hidden folders

.config is a hidden folder under home. You can view hidden files in any folder View--> Show Hidden Files or Ctrl + H


How to append arguments to launch an application with specific parameters from Unity Dash or shortcuts?

You need to add this option to the chromium-browser.desktop file, but not the one located in /usr/share/applications/ as this one will be overwritten by package upgrades or release updates.

Open a terminal and copy the /usr/share/applications/chromium-browser.desktop file to your $XDG_DATA_HOME folder:

cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications

Edit all Exec= commands to append the --ssl-version-min=tls1 option.

I've found 4 Exec= commands in chromium-browser.desktop:

$ grep Exec chromium-browser.desktop
chromium-browser.desktop:Exec=chromium-browser %U
chromium-browser.desktop:Exec=chromium-browser
chromium-browser.desktop:Exec=chromium-browser --incognito
chromium-browser.desktop:Exec=chromium-browser --temp-profile

Use the following command to add the ssl option:

perl -i -pe 's/(Exec=chromium-browser)/$1 --ssl-version-min=tls1/g' ~/.local/share/applications/chromium-browser.desktop

The Exec commands now look like:

$ grep Exec chromium-browser.desktop
chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 %U
chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1
chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --incognito
chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --temp-profile

Now the .desktop version in your $HOME will always take precedence over the one installed in /usr/share making the change permanent.

Note that you may have to unlock the icon from the launcher and lock it again to select the right .desktop file tough.

To check that the new setting works correctly, type the following command in a terminal:

$ ps -aef | grep ssl-version-min | head -n 1
sylvain   4405  2375  0 11:36 ?        00:00:05 chromium-browser --enable-pinch --ssl-version-min=tls1

You should see your chromium-browser process and its new command line arguments.


I've seen this plenty of times recently, so I'm for now just assuming you are struck by the same and provide it as an answer. If that is not your case at least it might help others.

Ingredients to the issue:

clone a system after having it booted (should never be done IMHO)
networkd

Now what happens is that on first boot systemd will generate /etc/machine-id and afterwards networkd will use that to make a client-id in its dhcp requests.

That will be the preferred unique ID to serve IPs and therefore all machines cloned with the same /etc/machine-id will conflict.

There is more than that which is done on first boot/init which is the reasons you should IMHO start with clean cloud images plus a deployment procedues.
But for now, please make sure /etc/machine-id gets deleted.
It will generate a new one on boot and the systems can be differentiated by the DHCP server.


I don’t know the gui but you could use snap connect brave:cups-control .


why does my UbuntuOne sync only upload folders and zero content?

Please read “How can I tell whether Ubuntu One file sync is working, and what progress it is making?”.

Folders are the first thing created, and it's entirely possible the syncdaemon is chugging along doing its thing. You haven't mentioned what version of Ubuntu you're on, so I don't know what performance to expect from your client (it's improved drastically with each release).

How many files and folders are you trying to upload, and what's the total size? If you have a lot (tens of thousands) of small files, you might be experiencing the worst performance problem we have right now (we are fixing it for 11.04). If you have very large files that don't finish uploading between network glitches or hiccups (such as suspending your machine), it might be stuck reuploading the same file over and over; this is another issue we're fixing for 11.04.

If it turns out that progress isn't happening (and the above article doesn't get you to nudge it in the right direction), try first quitting, restarting and connecting the syncdaemon. The way to do that will work across all versions of Ubuntu right now is by entering the following in a terminal:

u1sdtool --quit
u1sdtool --start
while ! u1sdtool -c >&/dev/null; do sleep 30; done

this should be enough to “unstick” the syncdaemon from whatever got it into trouble, and set it on its way. Use what you learned in the other article to track progress, and restart it if it seems stuck for too long.