Modify your /etc/default/grub file.  Replace your GRUB_CMDLINE_LINUX_DEFAULT option from quiet splash" withnomodeset`

Change from:

GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change to:

GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

Also add this line to your grub configuration:

GRUB_TERMINAL_INPUT="console serial"

It should look like:

GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
GRUB_TERMINAL_INPUT="console serial"

Then update your grub with:

$ sudo update-grub

Now reboot.

This is taken from:

Lvmetad is not active yet
lvmetad is not active yet; using direct activation during sysinit


Possibly, there is a conflict between the open-source driver with that of the graphic card from Nvidia. I will write down the solution that worked for me, on a Lenovo ThinkPad P53 when installing Ubuntu 20.04 LTS, I faced some issues.

Follow the steps written below:

Boot to Ubuntu, but before you login in to Ubuntu, press Cntrl+Alt+F2
run the following command:

     sudo nano /etc/modprobe.d/blacklist-nouveau.conf

add the 2 following lines, save & exit

     blacklist nouveau
     options nouveau modeset=0

run the following command

     sudo update-initramfs -u


Processor fan doesn't work until temps are high

It's normal. Maximum safe temperature of CPU is much higher. So there is no reason for fan to start. And it is not a good idea to have fan running constantly.
Links: https://www.techcenturion.com/optimal-temperature-of-cpu-and-gpu


Mouse pointer disapears in console when typing begins

I'm going to assume you are using a laptop with a touchpad.
Try going to System settings > Mouse & Touchpad settings and uncheck the "Disable touchpad while typing" box in Touchpad > General section. That should help.
Good luck and lemme know if that works for you.


Install Ubuntu 16.04 on XPS 13 with dual boot cannot shrink NTFS

It's generally recommended to use Windows tools to resize or move NTFS partitions, even though Ubuntu has been able to reliable read and write to NTFS for several years.

That means you'll need to use Windows Disk Manager or similar tool to shrink the partition, though once that's done, you can use Ubuntu tools to create the new partitions (preferably ext4), or let the Ubuntu installer do so (select the "install in free space" option).

Very important -- there needs to be 400 GB of free space in the partition in order to shrink it by 400 GB -- are you certain that's true?


copying files from one user to another in ubunta in the same machine

Your problem is that the cp command is expecting a directory as the output, not a file. Instead of cp /home/maryl/hello.pdf /home/ros/newfolder/hello.pdf you need cp /home/maryl/hello.pdf /home/ros/newfolder/. The destination has to be a directory. The command takes the file you specify and copies it into the directory your tell it. Just for reference (although it seems you've figured it out mostly), the command is formatted as

cp /path/to/source.txt /path/to/destination_dir/

Options, such as -r, can be used if you want to copy directories. Refer here for more info.


The route you are trying to delete looks like a route that was automatically added by the kernel in response to a router advertisement (RA). Be aware that if you delete it then it will probably come back on its own within 5 minutes when the router sends out another advertisement, as it will normally do periodically. If you don't want your machine to listen to router advertisements then what you probably want is to do this:

echo 0 >/proc/sys/net/ipv6/conf/eth1/accept_ra

If you do that, you don't even have to bother removing it manually: it will disappear within a few minutes when it expires naturally.

Nevertheless, if you want to, you can remove it manually. It's just that it looks like the route command isn't able to do it. Use the ip command instead:

ip route del ::/0 via fe80::20c:29ff:fe87:f9e7 dev eth1

In fact, if you are working only under Linux then I recommend that you always use the ip command as a modern replacement for all of the following commands: route, ifconfig, and netstat. Its syntax is much easier to handle that any of those other commands, it unifies them all together, and there are functions (like ip rule and ip tunnel) that are only available through it.


libdvdcss2 isn't a "standard" package and has to be installed the following way:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh # This downloads and installs libdvdcss2

This should make Totem play your VCD. You may also want to make sure you have gstreamer's plugins to play some patent-encumbered formats:

sudo apt-get install gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly


not able to boot up with the key lock on

If you're talking about the NumLck key, go to the software centre and search for numlockx or through a terminal:

apt-get install numlockx

If you're talking about the CapsLck key, have a look here: How do I turn off Caps Lock (the lock, not the key) by command line?


Changing file permissions on USB external hard drive

sudo chown -R $USER:$USER /media/FREECOM


How do snap packages handle shared dependencies?

The first two situations are handled in a clever way.

  One of the interesting features talked about is deduplication support
  for content within Snap packages. Snaps would be automatically
  deduplicated of common files shared between snaps based upon their
  file hashes. There would be de-duplication on the file-system layer,
  de-duplication on snap downloads (with server support), and perhaps
  de-duplication of mapped libraries from the linker. Deduplication is a
  big work item and likely will take a while to implement fully, but
  it's an interesting goal nevertheless.

Source: http://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-Snappy-Deduplication

As for the third situation, they have something similar to the runtimes that you mentioned:

  There are three layers that make up a snappy machine: the system
  layer, provided by Canonical, a layer of frameworks that extend the
  base system produced by vendors in collaboration with Canonical, and a
  set of snappy applications, provided directly by vendors. Updating any
  piece just means using the new version of a read-only image. Reverting
  to a previous version is just as easy.

Source: http://www.ubuntu.com/cloud/snappy

There is no good documentation describing frameworks yet, primarily because they seem to still be working out the boundaries of what a framework is. Here is an excerpt from their mailing list that might help clarify things.

  I am experimenting with Frameworks to essentially extend the Snappy
  base system by software and services which lots of snaps require but
  should not be included in any and each snap due to update issues and
  size. The best example i have for this, is the openssl binary. Many
  snaps need this to generate and validate keys and certificates.

  The other issue i tied to solve with a framework is the access to
  system wide resources, mote notably ports. Eg, a web server framework
  would provide ways for other snapps to inject their web service api
  and end points via reverse proxy into the framework running the web
  server.

  I was told on IRC that i am kind of abusing the framework concept, but
  still these two issues come up on my desk often.

Source: https://lists.ubuntu.com/archives/snappy-app-devel/2015-November/000442.html


Ubuntu Edge was a project that failed to meet crowdfunding requirements. You can find the whole story on Wikipedia

Canonical has stopped its official support to Ubuntu Touch (the OS dedicated to phones) in 2017. The code is now maintained by the UBports community. As far as I know it is not possible to buy an Ubuntu phone, if you wish to install it you'll have to purchase a phone and make the installation yourself. Some phones are supported by UBports. I never gave a try myself as the maintained phone are difficult to find or over expensive in my opinion. But the UBports community is alive and delivers regular updates.

Some projects of open source phones are normally coming, such as Purism Librem 5, PinePhone or Necuno. I follow them regularly as I hope it will be possible one day to install Ubuntu Touch on one of them.

2020 update
The PinePhone project has progressed recently. It is now possible to pre-order a PinePhone with UBports installed :) You can have a look into Pine64 Store to know a bit more about it and decide if you want to give it a try.


Kubuntu shows error at login (file:///usr/share/sddm//themes/breeze/Main.qml:No such file or directory)

Had the exact same issue after uninstalling some basic programs through the UI.
Fixed it with
apt-get install sddm-theme-breeze
apt-get install --reinstall plasma-desktop

The first install made it possible to log on again and the second one fixed the rest.
You may use a virtual terminal to login (by pressing ctrl+alt+F1; if that doesn't work, try the other virtual terminals from ctrl+alt+F2 up to ctrl+alt+F6).
if you are still facing error while entering password try:
go to the recovery option using any bootloader and then select any of the recovery version options and then select root: drop the root shell prompt and use the above two given codes..


/etc/passwd was pointing to /user/local/bin/rootsh instead of /bin/bash


How to fill an invisible/empty icon in unity launcher that appeared while trying to dock a launcher?

If I glitch my launcher and add one myself, I can remove it by restarting Unity.

You can restart it by pressing Alt+F2, then typing in unity and pressing Enter, or clicking on the result labeled "unity".

The desktop should flicker for a moment, then it should come back up and the empty space should be gone.


nautilus-actions will only create submenus

You can remove the "Nautilus-Actions actions" by going to Edit->Preferences->Nautilus menu layout, and changing "Create a root Nautilus-Actions' menu to false.


There is no default 'memory' button in the default 'basic' mode of the calculator.  Some ultra basic calculators off the shelf don't even have that mode.

But fear not, there is a memory function in Advanced Mode.  But, not the simple "Memory +/-/Recall" that calculators have.

I have an example there for how you would store something explicitly in a variable - a = 10 + 20 + 30 is what I typed in, and it stored it in the variable a.  I also tested (not shown here, but it works) 10 + 20 + 30 which got me 60, and then afterwards did a = ans, and the a variable got the value of the last-executed command (60) and stored it in a.

Think of standard algebra with regards to this type of algebraic memory, and not the standard simple "M+" button from a basic calculator.  So you'd do some math and add it to memory by doing a = a + ans to get a 'new' memory value that has the prior mathematical value that was calculated added to it.


Unable to install Counter Strike: Global Offensive on 15.10

Complete re-installation of Steam fixed the problem.


What should I do as apt-get wants to remove grub-efi-amd64-signed

I did the update yesterday on 14.04, and 15.04, and it went OK.  What I think it does, it removes an older version, and installs a newer one.  Both systems have been rebooted, and they both work fine.


Have you tried to boot windows to see if it works correctly? This should mean that there are no physical problem with your graphic card, and so the problem is only related to Ubuntu and its configuration. A kind of same thing happened to me too twice. The advice i can give you is to proceed with the following steps, if one doesn't solve your problem, go to the next one (you should be able to execute commands via tty, usually ctrl+alt+f1 or f2,f3...f6, it will asks for login, give the username of your account and then the password when you'll be asked to):

dconf reset -f /org/compiz an reboot
sudo service lightdm restart (assuming you're using unity)
sudo service lightdm stop and then sudo service lightdm start if it doesn't reboot itself in a few seconds also give the reboot command
sudo dpkg-reconfigure lightdm
try to uninstall and reinstall your desktop environment, search for instructions to do this or go to the next step
try adding another desktop environment, such as gnome, sudo apt install ubuntu-gnome-desktop then reboot
uninstall and reinstall drivers for your graphic card, so search for the supported drivers by ubuntu 16.04 for your graphic card model and install them
switch to another graphic card, of you have it. prime-select and then with tab it should suggest you possible options, select one different from nvidia, for instance for me worked sudo prime-select intel, obviously substitue "intel" with the one suggested by tab


How to check file-level write performance?

For no apparent reason your test file size is really small, only 80MB.  A small file like that will make the result less accurate, but also will mean than the entire operation may be satisfied by cache and not test true filesystem performance.

To fix I'd make the file size much larger, say a couple of GB.

You probably need to do a sync afterwards, and measure the whole result.  As in time 'dd if=/dev/zero of=/tmp/output bs=1M count=2k && sync' or something.
Make sure /tmp is not actually a tmpfs in which case it's stored in memory, not on disc.  Make sure the destination partition is a disk partition.
Copying from /dev/zero can in some cases result in artificially high performance when the disk media performs its own data compression, because a string of zeroes compresses down to virtually nothing.  This will be a particular issue on SSDs.  Make sure your test data is random enough not to compress, such as JPEG files or MP4 videos (and not the same file over and over again, because that will still compress well).  Random data will work best if it's pre-generated, don't generate it on the fly because that will artifically slow down the transfer.


Should you? No, it doesn't make much of a difference. It's only ~2MB either way, so it's up to you.


How to get Ubuntu (running through VirtualBox) to detect my flash drive?

This answer, "How to set up USB for Virtualbox?" seems to be a fairly complete description of the process.


How do I set the acceleration, scrolling rate, and other properties of my Magic Mouse?

There is a multitouch driver developed by Chase Douglas on his ppa, take a look at this. It was developed for 10.4 though, don't know if you can use it on 10.10 but it's worth a look.


Running a .sh from a .desktop [Making an icon for Minecraft.]

I think your script doesn't have execute permission.

chmod +x << your script >>


How to start in background a list of applications on login

If you want to run some apps on the start up, try to add this apps on the end of the '~/.profile' file. For example, if you want to run thunderbird on the start up, just add 'thunderbird &' on the end. It worked for me.


I can't be sure because the important part of that debug dump (the stack trace) is missing. It could be because the package manager (dpkg) cannot find the USB drive or CD you used to install Ubuntu.


As the author of the software, I don't actually use Ubuntu myself, so I don't provide any packages.  However, it's just a simple Python script, so it doesn't need to be compiled at all.

You can either download the script itself directly from Github and copy it to /usr/local/bin (make sure to run chmod 755 on the file first), or you can use Git to check out the source code repository and follow the installation instructions in the readme.  I strongly suggest the second method, as it will allow you to do a simple git pull in the repository in the future to update your copy of the script and install it again.


Just a heads up, Google has fully dropped Netscape Plug-in API (NPAPI) in one of the last Chrome and Chromium updates.  This has been planned for some time. From what I'm seeing, this means that neither the icetea nor the Oracle Java plugins will work in Chrome/Chromium until they are updated use one of their other plugin APIs (Pepper?).

For now, this means that I have to switch to Firefox for my primary work browser after using Chrome/Chromium for many years. I still have to use the Java web plugins for meetings at work.


sudo fails because of `pam_mount.c` assertion

Login with a root account with sudo bash. You can also do this from a live CD.
Or you need to reboot and do issue a sudo bash with the 1st command (it looks like this bug only shows up after the 2nd time you use sudo).

sudo gedit /etc/pam.d/common-session-noninteractive

look for line 16(ish) and change

[default=1]

to

[default=0]

Try a command with sudo and it should work as normal.

Source from launchpad


Script for opening tabs in Guake terminal

Did you read guake --help?

Usage: guake.py [options]

Options:
  -h, --help            show this help message and exit
  -t, --toggle-visibility
                        ?ndert die Sichtbarkeit des Terminal-Fensters.
  -p, --preferences     Zeigt die Einstellungen von Guake
  -a, --about           Zeigt Guake's Programminformationen
  -n NEW_TAB, --new-tab=NEW_TAB
                        Tab hinzuf?gen
  -s SELECT_TAB, --select-tab=SELECT_TAB
                        Tab ausw?hlen
  -g, --selected-tab    Return the selectd tab index.
  -e COMMAND, --execute-command=COMMAND
                        Eigenen Befehl im ausgew?hlten Tab ausf?hren
  -r RENAME_TAB, --rename-tab=RENAME_TAB
                        Gew?hlten Tab umbenennen
  -q, --quit            Sagt Guake das es verschwinden soll :o(


You cannot use SSH to login to a User Account that does not exist on the host machine or that does not yet have a password

To use OpenSSH, your host machine running the ssh service must have at least one <username> with a corresponding password.  If the <username> on the host machine that you would like to use does not yet have a password, on the host machine do:

sudo passwd username

Now you should be able to login to your host machine using ssh from a client machine.

Note that SFTP is included in the ssh daemon, so in a terminal on the client machine:

sftp user@ip.address

Alternatively, if you simply want to use sftp to visually access the host machine's filesystem (e.g., using Nautilus)

Open Nautilus on the client machine
Select File > Connect to Server
Type: SSH
Server: Enter your host machine's IP address
Port: port number specified in host machine's sshd_config file
User name: username
Password: password


I dont see my devices on the left side-bar in Nautilus

If you want sdb1 to appear on the left in nautilus, remove sdb1 from /etc/fstab and reboot.

sda5 should show as "computer" on the left and is mounted at /.

Because sda1 is mounted at /boot it will not show on the left but you can click on computer and then click on boot to view this partition.

Because sdb1 is mounted at /hdd it also will not show on the left but you can access this partition by clicking on computer on the left and then go to hdd.

This is different from the way windows explorer works where each device is listed as C: D: etc. In linux, every thing is a file, sort of.


When I boot, I get a GRUB boot error: no such device, and then grub rescue> what should i do?

(Answering my own question??)

My GRUB was out of date, so I simply created a boot recovery live USB drive with "Boot Repair" and suddenly everything was back to normal!!


This is because the \ character is considered an "escape" in the Bash shell.

Take the following command:

sudo apt-get install some-package some-other-package yet-another-package oh-my-we-have-a-lot-of-packages and-still-another-package wow-so-many-packages

We can instead rewrite this command like this:

sudo apt-get install some-package some-other-package \
yet-another-package oh-my-we-have-a-lot-of-packages \
and-still-another-package wow-so-many-packages

Bash will interpret the \ to mean "read the next line as part of this one." In your case, you type cd \, so Bash expects you to give it another line.

If you want to go quickly back to your homedir (that is, ~), you can either use cd ~ or just plain cd.


How to allow terminal executed apps to draw on phone display that runs on ubuntu touch

As far I know from Touch FAQ

  Ubuntu Touch is primarily designed to support web apps, and native apps programmed in qml and javascript or C++. As it is a real linux, of course all non graphical applications run equally as on any other linux system. You can ssh to Ubuntu Touch and run any console based application.
  X11 is not supported (so far) so all GUI standard applications will not run.


Evolution override gconftool-2 modification

FIY, I found the solution...and I was dumb!

gconf modifications doesn't take effect immediatly in most case. You have various options (from what I've learned) :

Do your modification with the user session closed
Log off then on after your modification
If you want your change to take effect "live", you can send a SIGHUP signal to gconfd daemon. You can use the command below :

ps -eF | grep gconfd | grep -v grep | awk '{print $2}' | sudo xargs kill -1

In the case of Evolution, be sure to restart Evolution to be sure that change take effect.

Hope I help newbies like me!


This configuration is done in two parts. The first part is done on the remote SSH server. The second part is done on the local machine.

Server Side Instructions:

First install the stunnel:

sudo apt-get install stunnel4

Make the SSL certificate (for 365 days):

openssl genrsa 1024 > stunnel.key
openssl req -new -key stunnel.key -x509 -days 365 -out stunnel.crt
cat stunnel.crt stunnel.key > stunnel.pem
sudo mv stunnel.pem /etc/stunnel/

Configure stunnel to tunnel 443 (https) to 22 (ssh):

Create config file to meet the needs of using SSH over SSL.

gksu gedit /etc/stunnel/stunnel.conf

Write these:

pid = /var/run/stunnel.pid
cert = /etc/stunnel/stunnel.pem
[ssh] accept = public_ip:443
connect = 127.0.0.1:22

The above configuration tells stunnel where to find the certificate we generated and where to accept and forward connections. In this case stunnel will listen on the public_ip on port 443 (https) and redirect connections there back to localhost on 22 (ssh).

In order to start the stunnel service we’ll need to activate it in /etc/default/stunnel4. Change the ENABLED line from 0 to 1.

Finally, we can start the service and move on to the client configuration:

sudo service stunnel4 start

You can verify that stunnel is now listening by using the netstat command:

netstat -natp | grep :443

Client Side Instructions:

First install the stunnel package:

sudo apt-get install stunnel4

Make the SSL certificate (for 365 days):

openssl genrsa 1024 > stunnel.key
openssl req -new -key stunnel.key -x509 -days 365 -out stunnel.crt
cat stunnel.crt stunnel.key > stunnel.pem
sudo mv stunnel.pem /etc/stunnel/

Create config file :

gksu gedit /etc/stunnel/stunnel.conf

Write these:

pid = /var/run/stunnel.pid
cert = /etc/stunnel/stunnel.pem
[ssh] accept = 127.0.0.1:2200
connect = remote_ip:443

In order to start the stunnel service we’ll need to activate it in /etc/default/stunnel4. Change the ENABLED line from 0 to 1.

Start the service.

sudo service stunnel4 start

Make the connection

With the stunnel service now running on both the server and the client we’re ready to make the secure connection. Now when you connect to your local machine on port 2200 it will make a connection to the remote IP on port 443, create a secure SSL connection, and connect to port 22 on the other end. Your encrypted SSH connections are now wrapped in an encrypted SSL connection using port 443.

ssh localhost -p 2200

Sources:
link1
Link2


Rename a character in various filenames inside a subfolder of a folder

It should be as simple as:
rename -n 's/_//' folder/subfolder/*

Remove -n when satisfied with output to do the actual renaming.
's/_//' will delete all underscore characters in file names.
folder/subfolder/* is the path to your files and * works on all files in that path.


Change terminal font size programatically

to change the gnome-terminal font size via command line,

first we need to know the current profile id of the gnome-terminal.
I am using the default one which is named as "Unnamed"

in my case the profile id is something that is starting with "b1dcc9"

Custom font square must be ticked.

run the below command to get the list of profiles
gsettings get org.gnome.Terminal.ProfilesList list

Example:

$ gsettings get org.gnome.Terminal.ProfilesList list
['b1dcc9dd-5262-4d8d-a863-c897e6d979b9', 'd2a064f8-146d-45b5-8da7-d7e2f34da77e', 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa']

I already know that my current profile is something that is starting with "b1dcc9"

get the font name and size with the below command
gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ font

Example:

$ gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ font
'Noto Mono Bold 12'
$

Set the font name and size with the below command
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ font 'Ubuntu Mono Italic 50'

Example:

$ gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ font 'Ubuntu Mono Italic 50'
$

Caution: do not put font size in high values, it will make the OS non operative.
by mistake i press 512 instead of 52 and press enter..struggled a lot to get back.


How to add encryption after installation?

You can encrypt your data after installation even though you didn't choose to encrypt it during installation.

To encrypt your entire /home directory and, all it's sub-directories, such as Documents, Downloads, Music, etc. read this link: how-to-encrypt-your-home-folder-after-installing-ubuntu that explains how to encrypt /home after you've installed Ubuntu. There are plenty of screenshots and narrative walking you through the process.

To summarize the link what you need to do is:

Backup your data. Although the migration process uses a working
backup you want your own just to be safe.
Install the encryption software with sudo apt-get install
ecryptfs-utils cryptsetup.
Create a temporary account with sudo privileges. In order to encrypt
your /home directory you can't be logged on as yourself.
Login with temporary account.
Migrate your data from unencrypted /home directory to an encrypted
/home directory using the command sudo ecryptfs-migrate-home -u
user where "user" is your regular user name.
Please note besides encrypting /home your swap partition can also be
encrypted for maximum protection.
DO NOT REBOOT
Login with your regular user name. A random passphrase can be
generated which you need to write down if something goes wrong in
the future and you need to access /home folder manually.

Some people feel encrypting all of /home is overkill and can be too cumbersome when moving /home to another computer or different drive on the same computer. I tried encryption when I installed Ubuntu for the first time in 2014 but when I messed things up and had to reinstall Ubuntu I skipped the encryption option after reading problems other users encountered (although I never did have encryption problems).

If you don't want to encrypt /home and all the sub-directories. You can have a single encrypted ~/.Private directory where you can keep certain files that need encryption such as "things I don't want the NSA to know" or "wife's surprise birthday party planning". This is described here: EncryptedPrivateDirectory


Cannot get to Ubuntu 12.10 Live USB Environment on the Microsoft Surface Pro

Aside from all of the obvious things that one can read from the internet about booting from USB on the Surface Pro (i.e. hold down volume button, disable secure boot, etc.), there are a few important things that you need to do to the USB drive before your Surface Pro will boot from it.  Why these things are frequently ignored on the "how to boot from USB on your Surface Pro" websites, I don't know.  Anyway, here's what you need to know about the media you're trying to boot.

1. The Surface Pro will ONLY boot from disks that are partitioned with a GPT partition scheme AND configured for a UEFI firmware interface.  So, if your Surface seems to be ignoring your attempts to boot from USB and going straight into Windows 8, this is likely your problem.  Unlike just about every other computer sold today, the Surface has no support for legacy boot. In other words, that USB stick that boots just fine on every other computer in the world (except your Surface) is likely partitioned with an MBR scheme and/or designed for a BIOS firmware interface.

2. The Surface Pro will only boot 64 bit operating systems.  In my experience, when trying to boot a 32 bit OS, things will look like they're booting properly for a little while, and then crash, and then boot into Windows 8.  Take note, this is different from what happens when it's issue #1 is preventing you from booting from your USB.

3. The Surface Pro will only boot from partitions that are formatted in FAT32 (and possibly FAT16 and FAT12 - I've never tried booting a FAT16 or FAT12 partition and have read conflicting reports as to what is possible with the Surface.)  This is a condition of UEFI boot.  If you're trying to boot a disk formatted in NTFS, ext3, ext4, etc. it won't work.

Your probably saying to yourself, "Great, now that I know the rules, how to I make my drive conform?".  If you have a drive that doesn't meet the above rules, you may or many not even be able to make it conform.  I'll let someone else tackle that hurdle.

However, if you have an .iso file that you want to make bootable from your USB, you just need to do the following:

Make sure the .iso file is for a 64 bit OS
Download Rufus (http://rufus.akeo.ie/) and use it to create your bootable USB.  Be sure to select "GPT partition scheme for UEFI computer".  There may be other programs out there, but Rufus is the only one I've found that sets up the partitioning properly for the Surface.
Make sure secure boot is disabled on your Surface.
Power down the Surface, hold the volume button down and power the Surface up while continuing to hold the volume button down.

Voila!


Ok I found a way. Not straight forward but doable.
Installing from source it did not work from me. So I thought I could download a newer deb package, for example the latest stable GSL 2.5 version from Ubuntu 19.10 (eoan) as I got this info from here. Then I implemented the first 4 steps of this procedure, and finally installed my libgsl-dev by aptitude as described in this further post.


What does "ps -ef|grep processname" mean?

-e and -f are options to the ps command, and pipes take the output of one command and pass it as the input to another. Here is a full breakdown of this command:

ps - list processes
-e - show all processes, not just those belonging to the user
-f - show processes in full format (more detailed than default)
command 1 | command 2 - pass output of command 1 as input to command 2
grep find lines containing a pattern
processname - the pattern for grep to search for in the output of ps -ef

So altogether

ps -ef | grep processname

means: look for lines containing processname in a detailed overview/snapshot of all current processes, and display those lines


The popup is likely from PolicyKit rather than from sudo directly.

Although PolicyKit itself allows fine-grained control of authentication, the default configuration simply assumes that all members of the sudo and admin unix-groups should be treated as administrators; it doesn't consider the contents of /etc/sudoers or apply any per-user rules therein

[Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin

You have two options: either simply add your user to the sudo group instead of using the username ALL=(ALL) ALL sudoers entry, or add a custom PolicyKit
configuration file as described below

Change default user for authentication

See also

policykit-1: members of group sudo become root with pkexec while ignoring /etc/sudoers


Software recommendations for writing a novel?

LibreOffice Writer can turn any document into a PDF document. Not only that it can turn any document into a nicely formatted document. LibreOffice Writer can even turn any document into an exactly formatted PDF document that is indistinguishable from an ebook. In short, LibreOffice Writer is a very versatile and powerful application if you don't mind the learning curve.

Once you have created the PDF document, you can use PDF-Shuffler from the Ubuntu Software Center to rearrange the pages of your document any way you want to like dealing out cards from a deck of cards. You can "deal" out the pages individually or in groups and merge, rearrange, split and crop the document. You can also view the whole document as a massive textwall made of individual pages and scroll through the document and zoom in and out.

This solution has one limitation. The only easy way to edit the text of the document is to make a copy of the original document and edit the changes in the text using LibreOffice Writer. So you would be using PDF-Shuffler to help you to visualize possible changes in the flow of your document, rather than to edit the text of the document.


Is the whole desktop of Linux Deepin available to install in Ubuntu?

This article on Web upd8 says that Deepin is using a patched version of Compiz. So most likely it's not compatible with Unity (which also depends on Compiz).

You can still make a dual-boot if you like to use both DE's.


According to https://docs.lubuntu.net/lubuntu_installation_on_old_computers.html, the minimum requirements for Lubuntu 18.04 is 1 GB of RAM. You should use Lubuntu, here is a link to the download page for Lubuntu: https://lubuntu.net/downloads/

Lubuntu is a lighter version of Ubuntu, which uses the LXDE desktop environment, rather than GNOME.


What does "chmod +x " do and how do I use it?

In Short:
chmod +x on a file (your script) only means, that you'll make it executable. Right click on your script and chose Properties -> Permissions -> Allow executing file as program, leaves you with the exact same result as the command in terminal.
If a file you want to change permissions on is located within the systems directory you may need to be root, like so: (be careful, while using sudo command)
sudo chmod +x /usr/share/testfolder/aFile

Also it is not clear, what exactly you want to archive here. Please edit your question and give some more detail on the actual problem!
You can also refer to this question, for more information: chmod u+x' versus 'chmod +x

In Long:
Type man chmod in a terminal window (Ctrl+Alt+T) and you'll get the following output:

NAME: chmod - change file mode bits
SYNOPSIS
chmod [OPTION]... MODE[,MODE]... FILE...
chmod [OPTION]... OCTAL-MODE FILE...
chmod [OPTION]... --reference=RFILE FILE...

DESCRIPTION
This  manual page documents the GNU version of chmod.  chmod changes the
file mode bits of each given file according to mode, which can be either
a  symbolic representation of changes to make, or an octal number repre‐
senting the bit pattern for the new mode bits.

The format of a symbolic mode  is  [ugoa...][[+-=][perms...]...],  where
perms  is  either  zero or more letters from the set rwxXst, or a single
letter from the set ugo.  Multiple symbolic modes can  be  given,  sepa‐
rated by commas.

A  combination  of  the letters ugoa controls which users' access to the
file will be changed: the user who owns  it  (u),  other  users  in  the
file's  group (g), other users not in the file's group (o), or all users
(a).  If none of these are given, the effect is as if a were given,  but
bits that are set in the umask are not affected.

The  operator  +  causes  the selected file mode bits to be added to the
existing file mode bits of each file; - causes them to be removed; and =
causes them to be added and causes unmentioned bits to be removed except
that a directory's unmentioned set  user  and  group  ID  bits  are  not
affected.

The  letters  rwxXst  select file mode bits for the affected users: read
(r), write (w), execute (or search for directories) (x),  execute/search
only  if  the  file is a directory or already has execute permission for
some user (X), set user or group ID on execution (s),  restricted  dele‐
tion  flag  or sticky bit (t).  Instead of one or more of these letters,
you can specify exactly one of the letters ugo: the permissions  granted
to  the  user  who  owns  the file (u), the permissions granted to other
users who are members of the  file's  group  (g),  and  the  permissions
granted  to  users  that  are in neither of the two preceding categories
(o).

A numeric mode is from one to four octal digits (0-7), derived by adding
up  the  bits with values 4, 2, and 1.  Omitted digits are assumed to be
leading zeros.  The first digit selects the set  user  ID  (4)  and  set
group ID (2) and restricted deletion or sticky (1) attributes.  The sec‐
ond digit selects permissions for the user who owns the file: read  (4),
write  (2),  and  execute  (1);  the third selects permissions for other
users in the file's group, with the same  values;  and  the  fourth  for
other users not in the file's group, with the same values.

chmod  never changes the permissions of symbolic links; the chmod system
call cannot change their permissions.  This is not a problem  since  the
permissions  of  symbolic  links are never used.  However, for each sym‐
bolic link listed on the command line, chmod changes the permissions  of
the  pointed-to file.  In contrast, chmod ignores symbolic links encoun‐
tered during recursive directory traversals.

SETUID AND SETGID BITS
chmod clears the set-group-ID bit of a regular file if the file's  group
ID  does  not  match  the user's effective group ID or one of the user's
supplementary group IDs, unless the  user  has  appropriate  privileges.
Additional  restrictions may cause the set-user-ID and set-group-ID bits
of MODE or RFILE to be ignored.  This behavior depends on the policy and
functionality of the underlying chmod system call.  When in doubt, check
the underlying system behavior.

OPTIONS
Change the mode of each FILE to MODE.

   -c, --changes
          like verbose but report only when a change is made

   --no-preserve-root
          do not treat `/' specially (the default)

   --preserve-root
          fail to operate recursively on `/'

   -f, --silent, --quiet
          suppress most error messages

   -v, --verbose
          output a diagnostic for every file processed

   --reference=RFILE
          use RFILE's mode instead of MODE values

   -R, --recursive
          change files and directories recursively

   --help display this help and exit

   --version
          output version information and exit

   Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'.


Probably the 16.04 is using the deprecated synaptics driver. This one have implemented kinetic scrolling. This link in particular has a link to this bugreport. TL;DR of which: kinetic scrolling being implemented in synaptics turned out to be a design error. It led to nasty bugs, such as that if you scrolled, and pressed Ctrl before scroll stopped, the app you're scrolling would trigger zoom-in or zoom-out. It's because kinetic scrolling is implemented by continuous sending of scrolling events, and the app have no way to differ real and fake scroll events.

Worse: the proper way to implement that is in GUI toolkits, i.e. GTK+ and Qt (and maybe EFL, though it's little known outside of Enlightement Desktop Environment), but if you have kinetic scrolling in driver + kinetic scrolling in toolkit — you can expect this to end up in mess.

GTK+ have implemented kinetic scrolling, e.g. it works for me in evince app, version 3.30 for evince, and 3.24 for GTK.

Qt I don't know. I found some blog-post saying that kinetic scrolling was implemented for everything in 2009, but I can't reproduce it in Okular, nor Qutebrowser, nor Kate, so it's definitely untrue.


Moving windows between separate X screens

I have a dual monitor setup too and I'm using the open source nouveau driver. I haven't seen any performance issues when playing flash and it works like Twinview. If you don't want windows to open on your secondary monitor you can disable it temporarily via System->Preferences->Monitors.


It's probably not working from the "run" dialogue because the sudo command prompts for a password -- but there's no terminal to enter it in!

Please try replacing the sudo with gksudo, so the line looks like this:

echo 200 | gksudo tee /sys/class/backlight/intel_backlight/brightness

I think this should work... if not, try replacing the gksudo with pkexec.

Alternatively, you could put that line in a Bash script, and run your script with gksudo myscript.sh (replacing myscript.sh with the filename of your script). That way your entire script will run with superuser privileges, and it won't require the sudo password again.


Some VPS service support guideline for this kind of problem with WebGUI.
Here, you can see sample.

If there is no way to do like above. Another way is to modify grub menu.
If your familier with vi editor. If not try with your desired editor.

sudo vi /etc/default/grub

Find the following line.

GRUB_CMDLINE_LINUX_DEFAULT=

In my VPS, that line is like this.

GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"

Confirm your edit with cat /etc/default/grub.

After that update grub.

sudo update-grub

And then reboot your server.

sudo reboot

If still you are in rescue mode, edit your answer with your with /etc/default/grub detail to verify more by others.


Well, working with Linux including Ubuntu can be ridiculously easy or ridiculously tough, dependent of the given hardware you use...

Just give it a chance and try to figure out what is disturbing you and how to solve it, like searching for answers and asking specific questions, for example in this forum.

Nobody can give you a general solution how to make Ubuntu better than Windows, this is relative anyway!

In Linux you have practically no limits in terms of system manipulation and configuration, you just need to know how and where to change the stuff. This task is a long and very interesting journey since you are new in Linux. You need patience and a will to discover a whole new world in terms of computing.

First - open the Terminal - CTRL + ALT + T - and type the following three commands to bring your system up-to-date:

sudo apt-get update
sudo apt-get upgrade
sudo reboot

Good possible that a few little problems you face will disappear after the update.

Second - again in Terminal, clean up your system:

Remove unneeded packages:

sudo apt-get autoremove

Get rid of partial packages:

sudo apt-get autoclean

Get rid of 'orphaned' packages: you may have to install deborphan first

sudo deborphan | xargs sudo apt-get -y remove --purge

Remove configuration files of uninstalled packages:

dpkg -l | awk '/^rc/ {print $2}' | xargs sudo dpkg --purge

Clean out unused package stuff (cache):

sudo apt-get clean


Are there any tutorials available which would help me learn the concepts of Mobile Development?

Unfortunatly asp.net and c#.net is not supported for ubuntu phone app develepment, You should learn qml or html5 for making ubuntu phone apps


Delete all hidden files recursively in current directory

Not really one single command, but why make it more complicated than necessary?

find -type f -name ".*" -delete; rm *~

The first command removes all files starting with . and the second one all ending with ~


having problem installing libmysqlc++-dev

There is no package named libmysqlc++-dev in Ubuntu.

If you want the development files for the MySQL C++ library bindings install the package libmysql++-dev (without the c).


Ubuntu 12.04 version of Netbeans doesn't have the JavaFX plugin

JavaFX is currently proprietary software, which means it is not part of the open-source OpenJDK, and prevents Ubuntu from redistributing it in the official repositories. The Netbeans plugin is presumably omitted (though the Netbeans plugin itself is open-source) because it would be useless without the JavaFX runtime.

In 2011, Oracle announced plans to open-source JavaFX as the OpenJFX project. It appears that thus far only some parts have been released. According to Oracle's JavaFX roadmap:

  The OpenJFX project was launched in December 2011, with the JavaFX UI Controls source code being contributed initially; the rest of JavaFX is planned to follow by the end of 2012.

Once that happens, it could be included with Ubuntu's Java platform.


How do I upgrade mysql 5.5.24 to 5.5.27 on Ubuntu 12.04?

Unfortunately, the most recent mysql version in the official repositories is 5.5.24. Even Ubuntu 12.10, which is in the testing phase, only has 5.5.25.

If you want to upgrade to 5.5.27, you have two options, neither of which will probably successfully "upgrade" your existing installation, may break future official Ubuntu mysql updates, and may or may not work:

Install the 5.5.27 deb packages (for Debian) from the official website.
Build 5.5.27 from source (also available at the MySQL website).


Ubuntu 12.04 issues internal error / system problem

This is a bug with Ubuntu's error-reporting utility called Apport that a lot of people are experiencing. There is not currently a fix, but you can disable Apport so that it will not keep popping up.

To do this run

gksudo gedit /etc/apport.conf

After you enter in your password, Gedit will open up.
You need to change the

enabled=1line toenabled=0`

Then, save the file and close Gedit. Apport will now not start when Ubuntu starts up. To stop it now without waiting for reboot, run

sudo service apport stop

Don't worry, this doesn't remove Apport. You can still use it to file a bug by running

ubuntu-bug <applicationname> - where <applicationname> is the name of the application you want to file a bug for.

How do I enable or disable Apport?


How can I disable the event sounds in Kubuntu?

Just go to Application and System Notifications in System Settings and select Player Settings tabs marking No audio output:


No Video Graphics (Cinnamon Fallback Mode)

I finally found the solution !

Start your computer, MDM won't start.
Type CTRL + F2 to open the terminal.

Force the start of MDM : sudo mdm

The GUI will appear, you will need to fix the "video driver error" with Cinnamon because of :
"cinnamon is currently running without video hardware acceleration"

sudo update-rc.d -f mdm remove
sudo update-rc.d mdm defaults

Then reboot : sudo reboot


Dota 2 Error in Ubuntu 17.04: Required OpenGL extension "GL_EXT_texture_compression_s3tc" is not supported. Please update your OpenGL driver

sudo apt-get install libtxc-dxtn-s2tc0

Fixed my openGL error for DOTA on ubuntu 17.4 Intel CPU


Kobo Aura One reader USB device not recognised in Ubuntu 20.04

I had a similar issue with a kindle and Ubuntu 20.04. The kindle did show up as a device in the Disks app, but it was not mounted somehow. In the end I reset the kindle to factory settings and everything worked.
If you do not want to reset your device, maybe this question will give you some answers.


Set up proxy server from the command line

When I used proxy some years ago I used those commands on terminal:
set http_proxy=http://proxy.foo.com:8080
set https_proxy=http://proxy.foo.com:8080
export http_proxy=http://proxy.foo.com:8080
export https_proxy=http://proxy.foo.com:8080

And you can verify this configuration doing "env | grep proxy". At least to command-line it worked to me.


I don't know what happened, but try to add the command to a startup script. This will take care of it after you login.
As for why this happened, perhaps an update of some sort. Connection/Deconnection has probably nothing to do with it (although ya never know)


Silly me.  I checked the the pipelight FAQ and disabled HTTPS Everywhere and it worked.


How to replace a default video player in 10.04?

Right Click on the file you want to play.
Properties > Open With > VLC Media Player (say).


No wifi adapter found after updating to kernel 5.4.13 in my HP 15-bs 145TU lapotop with ubuntu 18.04

Ubuntu doesn't use mainline Linux kernels. dkms drivers like bcmwl-kernel-source (Broadcom wirleless drivers) in Ubuntu repositories are supposed to build against Ubuntu kernels, not the mainline ones.

You installed a mainline unsupported kernel. Wi-Fi stopped working, that was predictable.

Then you removed a Broadcom driver and installed a Realtek driver for some reason. What did you expect to happen?

Broadcom proprietary drivers won't work on an unsuppoted kernel. Drivers from a completely different device won't help in any way.

rtlwifi_new won't build on the 5.4 kernel for the same reason.

The solution is to boot with an Ubuntu supported 5.3 kernel using grub menu and install bcmwl-kernel-source back if you have a Broadcom device.


How can I build ubuntu desktop softwares?

It is a rather broad topic. Much depends on your personal preferences and the type of the software you'are writing. My Preferences are:

Java - gives you binary portability to numerous platforms, rich library of ready-made frameworks, excellent memory management and many other advantages. On the downside it is rather resource hungry and has steep learning curve.
C++ - you can achieve highest speed with small memory footprint, however the code is subject to subtle programming errors such as memory leaks and race conditions. Also portable but with more difficulties - high degree of caution required. Again steep learning curve.
One of the multiple scripting languages such as Python, Java Script, PHP, Perl and so on - I personally do not like this option. At the expense of the maintainability you just get easier get-on. In my opinion it is suitable only for small & quick applications not expected to last long or gain large user-base.

This link also may help you: https://help.ubuntu.com/community/PowerUsersProgramming


Forbidden: Unable to access VirtualHost URL in Ubuntu

It is all about the permissions. The system user (www-data) who runs your web server must have read permissions to the folder htdocs and to the whole path to this folder.

Here I will describe three ways how that could be done:

The short way - just give enough permissions;
The proper (according to my knowledge) way - using terminal and /etc/fstab;
The easiest proper way - using GUI tool Disks.

1. Just give enough permissions

For this purpose open a terminal window and type:

sudo chmod 755 /media/rahul/

Or give these permissions through Nemo as it is shown in the screenshot from the question. Please remember 777 is not the best choice.

2. Make the partition part of the static file system tree: /etc/fstab

Specify static mount point and mount the partition (device) with right permissions through /etc/fstab:

1. Create an appropriate mount point - open a terminal window and type:

sudo mkdir /mnt/shared

2. Find the necessary preliminary information:

Find the partition (device) identification. Type sudo blkid and recognize your target partition (device). Let's assume it is /dev/sda4 with UUID=142E875C2E873630.
Find your user's uid (user-id) and gid (group-id). In the terminal type: id. The result shall looks something like: uid=1000(rahul) gid=1000(rahul) groups=1000(rahul),..

For further, more complicated permissions settings the data for some other users will be needed, for example id www-data will return: uid=33(www-data) gid=33(www-data),...

3. Edit your /etc/fstab file as root (using sudo) and add new line:

When the device/partition is formatted under NTFS this new line could be:

/dev/sda4 /mnt/shared ntfs uid=1000,gid=33,nls=utf8,umask=0022,fmask=111 0 0

Where:

/dev/sda4 the partition (device) - by /dev location or UUID - that contain a file system.
/mnt/shared the location where the above partition (device) will be mounted.
ntfs the type of the target device file system.
uid=1000,gid=1000 will set ownership permissions for user and group rahul; uid=1000,gid=33 will set ownership permissions for user rahul and group www-data.
nls=utf8 means Use UTF-8 for converting file names.
umask=0022 will set the permissions for all folders to drwxr-xr-x or octal 755.
fmask=111 will set the permissions for all files to -rw-rw-rw- or octal 666.

When the partition (device) is formatted under ext4 this new line could be:

/dev/sda4 /mnt/shared ext4 default 0 0

Ant the permissions of its content can be further managed as usual - chown, chmod, etc.

4. Save the edits of /etc/fstab, and reload it: sudo mount -a.

Important note! If this is an external (USB) device, if it is unplugged, an error will be appeared. The solution is: 1) Go to Recovery mode, 2) edit /etc/fstab and 3) comment (#) the line described above.

3. Make the partition part of the static file system tree: Disks

1. Open Dash and type Disks:

2. Find your target device and select Edit Mount Options:

3. Edit Mount Options and click on OK:

4. Mount the device - click on the Play button:

Further steps

1. Find the new location of your htdocs folder. It should be something as:

/mnt/shared/xampp/htdocs

2. Edit your shared.conf file:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName shared
    ServerAlias www.shared.com
    DocumentRoot /mnt/shared/xampp/htdocs
    <Directory />
        #etc ...
    </Directory>
    <Directory /mnt/shared/xampp/htdocs/>
        #etc ...
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

3. Restart Apache2 and try to access your site.

Sources and further reading

Working example with an NTFS device
Why are the default permissions for /media/username root:root?
Permission problem on /media/user folder prevents me from accessing external media
Accessing my NTFS folder with Apache
Mount NTFS Partition on Startup in Ubuntu
Fstab - make default permission 755
How do I correctly mount a NTFS partition in /etc/fstab?
How can I get octal file permissions from command line?
"dmask" and "fmask" mount options
How to mount a new drive on startup


If your file is actually a plot script (not just the data), then use:

load "out.data"

if it's just the data then it will be

plot "out.data"


XFCE keyboard shortcuts to navigate inside a window

Navigation inside the windows is controlled by the application. For dialog boxes that use a common graphical toolkit, e.g. GTK2, GTK3, Qt, ... it is the graphical toolkit that defines the keyboard support for moving within the dialog.
So no, you cannot easily remap or define such keybindings yourself without going into the source code.
That said, there is usually some support for keyboard navigation build in into applications. There is a widely used convention that F10 opens up the menu. Traditional horizontal menu bars can be accessed this way, but also through  "Alt" accelerator keys. For example, in Libreoffice and in Firefox, the "File" menu can be opened with Alt+f. Accelerator keys in menus are underlined when you press the Alt key.
Next to the accelerator keys, applications also provide shortcut keys to access specific functions. Under GTK2, you could dynamically reassign these. Under GTK3, you have to depend on whether the application supports reassigning these shortcut keys.
Finally, dialogs typically allow to navigate between different elements of the dialog using the Tab and Shift+Tab keys. Within elements, the arrow keys can be used. Drop down boxes can be opened with Alt+Down, after which arrow keys and Enter allows to select an item, or Esc allows to cancel the drop down. Dialog boxes also tend to provide alt accelerator keys that allows to quickly activate an item or select a button by pressing Alt and the underlined letter.

List item


Gerix Wifi Cracker and Aircrack-ng in Ubuntu 12.04?

On the Aircrack-ng homepage you might have missed:

  Channel -1 issues

  If you are receiving an error message talking about channel -1, you either have to patch your driver like explained in the wiki or get the latest version of Aircrack-ng from our subversion repository and use the option --ignore-negative-one. You can find an installation guide also in the wiki.

If you've already compiled this from SVN, try adding the --ignore-negative-one argument to your injection command.

To have Gerix do that for you, you're going to need to open the script and look for where it calls aireplay (et al).


I tried disabling hardware acceleration in Google Chrome but that didn't help. And the system was freezing every few minutes/hours. So I went back to using Nvidia proprietary driver ( nvidia-364..which is the latest as of today). The computer no longer freezes. So I'm guessing either the Intel HD Graphics hardware is bad on my motherboard or there is a bug in Ubuntu support for Intel HD graphics.

These are the reasons I tried to move to Intel HD Graphics:

My second UHD monitor was not being detected after login. In nvidia settings it showed up as disabled. Enabling the monitor in nvidia-settings-manager would not persist after a reboot. I deleted my ~/.config/monitors.xml file and also used the Ubuntu Displays utility to switch the monitor on. The displays utility asked me if I wanted to keep this configuration and I said Yes. This seems to have fixed the problem.
The other problem was that monitors were not waking up from sleep. I had to reboot the system everytime monitors went to sleep or remember to manually switch off the monitors everytime I stepped away. This is not a problem with the Intel HD Graphics so I'm guessing there is a bug in the Nvidia Proprietary drivers. For now I have disabled sleep on the monitors and hopefully will remember to switch them off manually whenever I need to.

Hope all this helps someone.


Is it possible to assign a keyboard shortcut to cause the Looking Glass to appear?

You can use this GNOME extension to assign a keyboard shortcut to activate looking-glass.

https://extensions.gnome.org/extension/313/helpful-keybindings/

By default, it uses Super+ X to activate looking-glass but you can configure that keyboard shortcut.

Alternatively, you can use the command to activate looking-glass and bind it to a specific keyboard shortcut.

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.lookingGlass.toggle();'


the same thing going on here I think it is something related to DNSMASQ  some times dns resolution never works ,some times it works slowly taking for each name about 3 seconds to resolv ,and sometimes it runs really fast as it should be . I'm running ubuntu 15.10 and yes I tried to change dns servers to my ISP,Goolge,and opendns nothing seems to be stable

UPDATE: I think I found the solution

SOLUTION

The problem seems to be related to the conflicting dnsmasq and resolvconf packages. Until 12.10, dnsmasq was used. From 13.04 onwards, Ubuntu seemed to switch to a dnsmasq/resolvconf hybrid, where you have installed the packages dnsmasq-base and resolvconf, but not dnsmasq itself.

I can't say if it's a bug in the upgrade scripts for 13.04 or something else, because when upgrading (as in fresh installs) resolvconf is installed, dnsmasq-base is upgraded and dnsmasq is (correctly) uninstalled.

The catch is, the upgrade script fails to comment out the dns=dnsmasq line in /etc/NetworkManager/NetworkManager.conf. So, even though the dnsmasq daemon is not present anymore on the system, /etc/resolv.conf still expects it to be.

SO to fix the problem edit this file /etc/NetworkManager/NetworkManager.conf  and  comment this line : #dns=dnsmasq

hope this helps some one


Unicode character Rocket not shown in Lubuntu

As noted in the site that you have linked to:

  You need a font that supports this character to even have a hope of
  seeing it correctly in the browser.

You'll need to ensure that the fonts-symbola package is installed to be able to see such glyphs.


How to find applications installed today?

Look in /var/log/apt/history.log. That's where the record is kept.


I answered a similar question yesterday, after running into it myself:

Slow DNS Resolution after upgrade

In summary:

apt-get purge rdnssd
apt-get purge resolvconf
service NetworkManager restart


How can I Install Java JDK7, apache tomcat , eclipse , spring tool suite in my ubuntu 14.04?

First of all, sudo apt-get update

 JDK7 : sudo apt-get install openjdk-7-jre-headless  Tomcat7: sudo apt-get install tomcat7  Eclipse (4.3): sudo apt-get install eclipse

Spring Tool Suite:  cd /opt
wget  http://download.springsource.com/release/STS/3.6.3/dist/e4.4/spring-tool-suite-3.6.3.RELEASE-e4.4.1-linux-gtk-x86_64.tar.gz  sudo tar -xvf <filename>.tar.gz  It should create a directory /opt/sts-bundle/sts-3.6.3.RELEASE so create a symlink in /usr/local/bin/sts ln -s /opt/sts-bundle/sts-3.6.3.RELEASE/STS /usr/local/bin/sts   to run type sts in shell

Eclipse (4.4):

Download Eclipse Luna (4.4) from http://www.eclipse.org/downloads/?osType=linux
Extract and move the package to /opt/
For a launcher shortcut: create a file /usr/share/applications/eclipse.desktop and put the following lines in it
[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse


Install LVM after Ubuntu is already installed

Open ubuntu..search for LVM and install the logical management tool.Or run the sudo apt-get install system-config-lvm in a command window.Open lvm from the dash once its done.


The default on Ubuntu is to not have an xorg.conf. Just removing it should be fine. If you're using the proprietary Nvidia drivers, you may need to just re-run the nvidia-settings tool, and have it write out a new xorg.conf. I don't have an answer for the touchpad though.


find out programmatically which Ubuntu release are supported

I suppose you need something like this curl http://releases.ubuntu.com/ | grep "The following releases of Ubuntu are available" -A 6 | gawk -F\> '{print $3}' | gawk -F\< '{print $1}' | grep -v '^$'. Currently its output lists following releases:

Ubuntu 17.04 (Zesty Zapus)
Ubuntu 16.04.3 LTS (Xenial Xerus)
Ubuntu 14.04.5 LTS (Trusty Tahr)
Ubuntu 12.04.5 LTS (Precise Pangolin)

Maybe it looks not very professional but it works for your question, I think.


Question 1: how can the load average be so different from the CPU usage ?

In both Linux and Unix, load averages include pending processes. In linux, as opposed to unix, load averages include I/O waits, such as waiting for disk reads or writes, and pending processes.

Let's use a magnetic disk (long seek time) to demonstrate high load average with low cpu usage, by having several tasks reading random sectors in a large file. The system gets bogged down with I/O waits.

System virtually idle:

doug@s15:~$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 60
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt
0.38    1806    27911   30      4.12    0.12
0.37    1858    27147   29      4.14    0.12

But very high load average:

doug@s15:~$ uptime
 22:47:01 up 1 day, 13:36,  5 users,  load average: 49.00, 47.85, 34.30

Question 2: what else can I do?

Your symptoms sounds like heavy swapping. You claim low memory use, but I would guess that isn't always true, and you sometimes get into a lot of swapping, and one time you even ran out of memory entirely.


Why Apache virtual hosts on Ubuntu 14.04 is not working?

Since Apache 2.4, each virtual host file should have the .conf extension.

You can rename each virtual host file to include the .conf extension:

mv /etc/apache2/sites-available/example.com /etc/apache2/sites-available/example.com.conf

Use the a2ensite command to add the virtual host:

a2ensite example.com.conf

And reload Apache:

service apache2 reload


How to Start FFMpeg Screen Recording with Custom Shortcut

Found a solution. Running the command with "-x sh -c" as opposed to "-e" executes the function without exiting the window. Syntax borrowed from this superuser discussion.

The full function:

gnome-terminal -x sh -c 'ffmpeg -f x11grab  -s 1366x768 -i :0.0 -r 25 -vcodec libx264 `date +%Y-%m-%d_%H-%M-%S`_BTEVCpcampFormBook.mkv; exec bash'


new steam library must be on a filesystem mounted with execute permissions

I was recently having an issue with Steam not having execute permissions on a mounted filesystem, I found what the actual problem was due to how the folders are named.

In your home directory you have two folder locations for Steam;

.steam/steam/SteamApps

and

.local/share/Steam/SteamApps

by default games will install under .local/share/Steam/SteamApps unless you have chosen another directory from within Steam client. The problem is Steam client is trying to look for games and software under SteamApps directory, but this directory name is Upper and Lower Case name, it needs to be Lower Case name so all you just need to really do is make a symbolic link to that folder like so;

ln -s SteamApps steamapps

this should hopefully resolve the issues with executable permissions error in Steam when trying to add a directory, be sure to close and/or restart Steam after doing this. This is just all how Valve sorted Steam to do SteamPipe for Source games for better management of installs and adding mods to games; https://developer.valvesoftware.com/wiki/SteamPipe


Cannot boot after hard shutdown (modsign db list...)

Running fsck on the system partition /dev/sda2 and on /dev/sda3 where errors were also found actually solved the problem.


executing a shell every minute using cron

First off, why aren't you just using transmission's watch-dir feature?

The crontab entry is wrong, it should be * * * * * /root/activate.sh when you add it with crontab -e. /etc/crontab and /etc/cron.d/* takes an extra username field, but the user specific crontabs which you set with the crontab command, does not have a username field; the jobs are run as the user that ran crontab.

Also, since this script operates on files in user's homedir, I would've run the job as that user. There's nothing about that script that requires root permissions, apart from maybe writing to that log file, but you can just change ownership of that logfile instead.

As for the script, I'd modify it a bit:

#!/bin/bash

for file in ~user/torrents/*.torrent; do
    [[ -f "$file" ]] || continue
    transmission-remote -a "$file" && mv "$file" "$file.added" || continue
    printf '[%s] %s added to queue\n' "$(date)" "$file"
    sleep 1
done >> /var/log/torrentwatch.log

Lastly, you should avoid adding extensions for scripts, and especially not use .sh when the script is a bash script, not an sh script.


You do not need to download anything from AMD web site.

The correct way of installing AMD drivers in Ubuntu is running in terminal

sudo apt-get install fglrx-updates

But if you installed a driver another way, it may not work. You need to remove the other driver first.


Yes it will. The package will appear in the "installed locally" section on synaptic. When a newer version update appears in the repositories for that package, it will automatically be updated and so will be moved to the "installed" section.

If for some reason you want to keep the package installed and not update (not recomended) you can "pin it" trough the synaptic menus. That means you're telling the system to stick to that version ignoring further updates. This option is in the "packages" menu item, I'm sorry I can't upload an screenshot right now, but it's easy to find.

In case you don't have synaptic installed:

sudo apt-get install synaptic

And search for it in the dash.


Can't use go in Visual Studio Code terminal

Well, I found solution for my problem. I forgot to add export PATH=$PATH:/usr/local/go/bin to /etc/profile/


Nautilus in Gnome 3.8 doesn't remember any view settings

I realize that When using Nautilus (Fedora 19 - Gnome 3.8) an icon named "Files" appears in the top left of the screen (not in the window of Nautilus itself). Right click in the icon and choose "Preferences". After changing the settings we should close and restart Nautilus to see the results.


Need help figuring out if adding an LDAP server to my Ubuntu box that's primarily (read: exclusively) used as a plex/media server is appropriate

LDAP is not what you are looking for. You want a CardDAV / CalDAV server, which will store address cards and calendar info. DAViCal is available through the Ubuntu repositories and seems to suit your needs. You can get more info on it on their project website. To install in Ubuntu, open Terminal and run sudo apt-get install davical

Edit:

The installation instructions provided on the davical website for do not work. The instructions provided at http://ubuntuguide.org/wiki/DAViCal_tips are much more thorough and got me to a working CalDAV / CardDAV server. The one error I found in them is the path for adding calendars or address books to your clients; the path should be http://somedomain.example.com/caldav.php/username/calendar/ and .../username/addresses/ The calendar and addresses for each user or group need to be marked as Public for them to be shared out to other clients.

I did remove the original davical postgres database and re-installed it. Originally, it did not provide an admin password on the first attempt, but again following the directions on ubuntuguide worked and I got the admin password for the davical database.

In my case, I have a registered domain and use dyn.com for dynamic DNS services for my domain. I added a domain entry for the DAViCal server there and set up a virtual Apache server using the parameters provided in the ubuntuguide instructions, as well as creating the configuration file for the domain. Once that was complete, I pointed my browser to that domain and was presented with the DAViCal login page.

I have been able to add the calendars on both my Mac (in iCal) and Thunderbird on my Ubuntu box without problem. I was also able to add the CardDAV entry into Address Book on the Mac, but it is proving to be more difficult in Thunderbird since it seems there is no built-in capacity for CardDAV server subscriptions, but I will continue working on seeing if there is a solution to that issue.


How to check Intel iGPU frequency on Linux?

Option #1

sudo apt install intel-gpu-tools
sudo intel_gpu_frequency

Option #2

sudo find /sys -type f -name gt_cur* -print0 | xargs -0 cat


How can I disable window minimizing on middle mouse button click in xubuntu?

To disable window minimizing on middle mouse button, run the following command in terminal:

gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'none'

To revert it back, run:

gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar 'lower'

To disable browser's  tab to close on middle click, see: https://superuser.com/questions/113048/how-do-i-prevent-firefox-from-closing-tabs-on-middle-click

You can also to use xbindkeys. To install it, run in terminal:

sudo apt-get install xbindkeys

Then the next two lines must be placed in ~/.xbindkeysrc file:

""    #don't do nothing
b:2   #mouse button 2

And finally, you must to clear current bindings with killall xbindkeys and then just execute xbindkeys to restart it.


Does Gnome-Shell require more resources from my memory and/or hardware than Unity?

Yes, it is possible. Gnome Shell uses Mutter whereas the standard Unity uses Compiz. Since they're different solutions, they have different requirements with regards to drivers. That means Unity might work well and Gnome Shell not, or vice versa.


After struggling with this for many hours I thought I'd provide an updated write-up for installing Ubuntu 20.04 on a Mac mini 2018 running macOS Catalina.
The most important sources turned out to be a great answer here that also covers installing Windows, but lacks information about installing on newer Macs with a T2 chip. Another source is this Reddit post which, however, is more complicated than necessary IMO. So here goes:
Preparations
For the installation, you're going to need a bootable USB stick and a partition on your Mac's internal drive or an external drive where the final installation shall reside.

Follow the instructions in the link above for creating the boot stick.
For the Linux partition, open Disk Utility, select the hard drive where you want to install Ubuntu and click "Partition". You are going to need at least 25 GB - I chose to allocate 50 GB which is enough for my use case.
Select your new partition and click "Erase". Choose some name like "UBUNTU", Format "MS-DOS (FAT)" and Scheme "GUID Partition Map".

Boot and Install Ubuntu

Disable the T2 Boot Security: Reboot and hold Command+R. Start the "Startup Security Utility". Select "No Security" and "Allow Booting from External Drive".
Reboot your Mac and hold the Option key while it is starting. Select the "EFI Drive" - that is the boot stick you just created. You're presented with various options of which you'll choose the first one "Ubuntu".
In the dialog that will appear, select "Try Ubuntu" to enter a live session.
Now comes the part that took me forever to figure out: launch the Ubuntu installer via terminal with the command ubiquity -b. This way the installer won't try to install the GRUB boot manager which always failed for me. A warning will appear, that deprecated modules are being used. This seems to be due to ubiquity's implementation and can be ignored. Just wait for the installer window to appear and then proceed (this can take a few seconds).
When asked where to install, select "Something Different". Highlight the previously created partition (the 50 GB one in my case) and click "Change". Select ext4 formatting, click the checkbox that you want the partition to be formatted and enter "/" (without quotes) as "Mount point".
If you're on an external drive, be sure to select the right partition in the drop down menu (not just the drive). Then continue the installation.

Install rEFInd
Installing Ubuntu without its boot manager GRUB means that you cannot easily start it by holding Option when booting your Mac. That's why you'll install rEFInd which replaces the default boot manager of your Mac.

Enter your Mac's recovery options by restaring and holding command+R. There, open a terminal and execute csrutil disable. Do not forget turning this back on again later!
Boot back into macOS by restarting. You may have to hold Option and select your Macintosh-HD drive.
Download from the link above.
Open a new Terminal, drag "refind-install" into your terminal window and execute it by pressing Enter.
Now you repeat step 1, this time typing csrutilenable.

Done
Everything should work fine now. When you turn on your Mac, you're presented with the rEFInd screen where you can select which OS to boot. Have fun!
Notes

It seems some driver issues that previously existed (e.g. Bluetooth, affecting Magic Keyboard & Mouse) have been sorted out in the latest version of Ubuntu. One problem I did encounter was that scrolling on my Magic Mouse 2 didn't work. For that, consult this post.
As noted by David Anderson (see comments below), it is important to install Ubuntu first and rEFInd second.


How can I add watermark logo on photo that I capture from my Samsung Galaxy S10?

You can use command like this:

composite -gravity SouthEast watermark.png input.jpg output.jpg

where the work after -gravity define the position of your watermark

The command composite is part of ImageMagic package. And keep the original photos!


Is there a Windows Briefcase equivalent on Ubuntu?

Conduit is a graphical synchronization tool that is available in the Software Center.

Once started there are lots of options to sync different types of items, be it folders, files, Evolution memos, etc. Drag and drop two of the folder categories to the workspace pane. Right-click on each to configure and select appropriate folders, one stored locally and the other one on USB drive.

Set up two way and select [Ask what to do] if one item deleted. Then ready to sync. In Preferences, you can set it to start at login. Hope this helps.


Problems with Dell B2360dn printer on Ubuntu 18.04

Better late than never:

Driver files available at:
https://www.dell.com/support/home/us/en/19/product-support/product/dell-b2360dn/drivers

The goal is to install the PPD file that matches your installation, so .deb is at the end. Note there are a bunch of .deb, .rpm, and .tar.gz files in here and a few different packages. The PPD files in the .deb (or, if you want to move them manually, in the .tar.gz) are what you want.


Place a sticky bit on the parent folder and set the child directories to "root". The sticky bit will make it "only append".
sudo chmod +t ../
sudo chown root: {directory}/

Only root can do more than append to those directories.
Do this on a partition dedicated to this. Not in /home/; messing with permission on /home/ is asking for problems: 1 mistake and you can not log in anymore.


Sitecom Wireless Network USB Micro Adapter Problem

My guess is that you are using a new Realtek chipset for this device, which is well supported in Ubuntu 11.04.

What (really easy) options do you have?

You can boot with Ubuntu 11.04 (beta2) and see whether the wireless card will be picked up automatically. If it does, then the new kernel fixes the problem.
You can install the latest kernel for Ubuntu 10.10 if you use the PPA at
https://launchpad.net/~kernel-ppa/+archive/ppa
You need to do some reading to make sure that all are OK, and installing a kernel from a PPA is not as well-tested as the main kernels.
Wait for Ubuntu 11.04 when it comes in about ten days and try it out.


Error while booting Ubuntu 18.04 LTS with Kernel Version 4.18.8

I'm not an expert in Ubuntu, but I encounter the same problem after update kernel using Kernel Update Utility from v4.15 to v4.19.1 to get around the failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware -22 issue (see post https://www.reddit.com/r/Ubuntu/comments/8sllc2/wlp58s0_failed_to_remove_key_1_ffffffffffff_from/).

It may be an issue that the ACPI code in the motherboard's BIOS/UEFI developed by MS is causing conflicts to new Linux kernels. See this post: https://www.linuxquestions.org/questions/linux-hardware-18/acpi-error-what-means-4175605357/.

I haven't found any differences other than a booting screen with a bunch of messages. I will try a different kernel version and see if the problem goes away. Will update this answer later.


How to install Citrix receiver on Ubuntu 14.04 and 16.04

Go to the Citrix receiver for Linux download page and download the Debian full package. The filename will look like this: icaclient_13.3.0.344519_amd64.deb.
Open and install the package using the Software Center or gdebi.

That's it!

How to add Google Chrome support

You can open Citrix receiver apps by clicking a link in your browser. You don't need an extension for that.

Just click on the app shortcut in Google Chrome and download the .ica file. When it is downloaded, click the arrow next to the filename in the bottom bar of Chrome and choose "always open files of this type".

That's it! Next time you click on a Citrix app, it will be started automatically.

How to add firefox support

In Firefox, go to Tools -> Add-ons -> Plugins, and make sure the "Citrix Receiver for Linux" plugin is set to "Always Activate".

How to solve SSL error 61

This error happens because Citrix receiver doesn't trust enough certificates. You fix this by adding all the certificates Firefox trusts to Citrix. Just open a terminal and execute the following command.

sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts

(outdated) sources

Ubuntu Community Documentation
Citrix official documentation
SSL error Citrix receiver
Open Citrix app in Chrome and Chromium browser


How to find out which programs are taking up alot of memory?

There is wajig, a tool that adds another layer of more highlevel command line UI to the dpkg-... and apt-... tools.

It has just the feature you need:

$ wajig large

lists the largest installed packages,  counting the total size when unpacked and installed. That may be much larger than the *.deb file - it depends on file count and sizes instrange ways.

The command above also lists installed size for packages that were installed, and later uninstalled, keeping the configuration files.

To leave them out, use grep to find the lines with installed, at the end of the line ($), and as a complete word - \b marks a word start or word end.:

$ wajig large | grep '\binstalled$'


How can I use my secondary (nvidia) graphics card

My understanding is that more recent NVIDIA hardware/software combinations are unlikely to work well with bumblebee/optirun type solutions. What works reliably for me is:

> sudo nvidia-settings

And then you select PRIME Profiles. Next you toggle NVIDA (Performance Mode) to on. Finally, you click the Quit button and log out of Ubuntu per the pop-up.

When I log back in, graphics is runs through the GPU rather than the CPU. It is inconvenient sometimes, but usually I want the GPU for a specific workflow.


Use mod_speling1. Add the following code to .htaccess:

CheckSpelling On
CheckCaseOnly On

These two directives will turn on spell checking, then restrict it to only fixing case errors. This will affect all levels in the URL, for example http://localhost/ExAmPle/someFILE would be fixed to http://localhost/example/someFile if the latter does indeed exist.

If both cases exist on disk, then the user will be presented with a choice page.

1The misspelling of the name is a purposeful action by the authors.


Any way to change the default folder icon?

To Change The Default Folder Icon

Right click on the folder whose default icon you want to change.
Choose(click on) Properties.

you will get the 'change-icon-Properties window' similliar to the one below in the image.

Click on the default folder icon

It is the icon in the top left corner of your 'change-icon-Properties window'.

You should click on this icon

4.This should open up your file browser asking you to select your custom icon.

Browse to your desired image and double click on it.

That's it!!

Should you still have any difficulty following the instructions please refer to this youtube video

https://www.youtube.com/watch?v=-w21GsLdHfk


Ubuntu remote server: automatically clean up temporary files

You would use a find command and a cronjob that runs perhaps once or twice daily as you so desire.

The cronjob for daily execution would be 0 0 * * * and you could use a find command of say `

find /tmp/* -ctime 0 -delete

But of course you should adjust the time to remove the files based on the servers needs.

Please see:

man find
https://www.gnu.org/software/findutils/manual/html_node/find_html/Age-Ranges.html
Use this to help you setup cronjob: https://crontab.guru


How do I add Webkit webview to the Ubuntu SDK?

The HTML5 tutorial is outdated due to code changes in the SDK PPA. Very sorry for the confusion. For example, as you note, at the time the tutorial was written, there were two types of HTML5 app projects you could create: one for Cordova HTML5 apps, one for non Cordova HTML5 apps (which was named "HTML5 Touch UI"). There is now only a single type of HTML5 app project that supports all functionality. Another change is that HTML5 apps no longer have or need a qml file, as you noted.

The HTML5 app support is under rapid development now, so stay tuned for news of important enhancements of functionality!


When commands are combined in the background, how to get the "base" command's process identifier?

It will still be the PID of arecord. From the bash manual:

  ($!) Expands to the process ID of the job most recently placed into
  the background, whether executed as an asynchronous command or using
  the bg builtin

The command in process substitution needs to be started before the backgrounded command:

  When available, process substitution is performed simultaneously with
  parameter and variable expansion, command substitution, and arithmetic
  expansion.

So that PID is essentially lost (you can still pgrep it, but no bash builtin command or variable will get it).


I believe you mail is queued.  Just try mailq and then sendmail -q or sendmail -q -v.

Possible is also, that email is being held because of unknown host. You need to have set localhost and your hostname in /etc/hosts

You normally don't need to use sendmail from command line to send emails, because it's not very convenient. You should use mailx or mutt

With mailx

echo you message  | mail -s subject user@host


I have ubuntu on my laptop already and would like to duel boot Windows

For beginners, like me, it's best to install Windows first and then Ubuntu because, so far I know, more recent Windows versions override installed boot info. After Windows installation, boot from Ubuntu bootable DVD/USB. During Ubuntu installation, you should get a window regarding boot-loader with one option saying something like  install Ubuntu alongside other Operating Systems. Selecting this option will let dual boot. After both installations are complete, default boot will be Ubuntu; it can be changed from the BIOS.


Video driver suddenly changed to llvmpipe upon startup

Although i dont know why this happend, i managed to fix it by getting the driver file directly from nvidia and not using Software & updates or using sudo apt {driver name}


Perhaps the solution to your problem is to use 'i8kutils':

$ sudo apt-get install i8kutils

It needs some configuration to work properly.


Why do users created from System settings > user accounts not appear in sudoers?

You don't add a user to the /etc/sudoers file to grant him to use sudo to become root, but you just add him to the sudo and adm groups:

sudo adduser USERNAME sudo
sudo adduser USERNAME adm

This is also what the GUI does when you select "Administrator" as account type.


Not syncing: VFS: Unable to mount root fs... cant go from USB either

if you boot to maintenance/recovery/single user mode what do you get? (asking this because of gpu mention). ie.  or edit a kernel that gets past initrd, remove quiet spash and add a 1 (or single). If you've added a password to grub, you'll have to enter it when requested. – guiverc Jan 17 at 1:23

Turns out that I couldn't get around the Kernel Panic per se. However, I eventually, made a bootable USB drive, then listed the available disks ("sudo fdisk -l") I mounted the original drive and was fortunate to find at least my code from the past few months - so at least I didn't lose all of that work. I, of course couldn't make things easy as it was encrypted, so I had to go through the whole "Crypto_LUKS" thing. Then to figure out drive name etc... "sudo lvmdiskscan" followed by "sudo pvs" and using the info garnered thereby, I was able to get through it.


%3a is the URL-encoded form of :. Some characters in the file names are not suitable for URLs, and hence are encoded.  Whenever you see % in a package file name, you can safely assume it and the next two characters are the URL-encoded form of some character. Try converting at http://www.url-encode-decode.com/, for example.


Triple boot Windows 7, 8 and Ubuntu 13.04

The order you used is correct. First install all Windows versions you like, from the oldest to the newest. This will ensure that all of them are automatically added to the Windows Bootloader. Then install other operating systems. If you start with operating systems other than Windows, their Bootloader will be deleted during Windows installation.

The two most likely reasons that you can't boot Ubuntu are:

If your computer is using UEFI (nearly all new computers do), you have to install all operating systems with the same firmware interface: UEFI or BIOS. If your computer has UEFI, read the UEFI help page.
You might have installed the Ubuntu bootloader to a different hard drive than the one, the computer boots from. If you think this might be the case, have a look at boot repair. Usually the bootloader has to be installed directly to the first hard drive, sda. If you haven't been asked during installation, where to install the bootloader, it should have been installed to the correct location.


Try what it says in the last line:

  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Restarting the GNOME shell solved the problem. Press Alt+F2, type r in the box that shows up, and press enter.


Ubuntu 14.10 will not reboot or shutdown on dual boot with win 8.1?

The problem carried over to 16.04. I didn't have it on 14.04 because of the earlier kernel.  It seems to be an issue with Bay Trail processors.

Now it seems I solved the issue on 16.04 by upgrading to kernel 4.6.


How do I enable pressure for my Wacom Intuos L?

What version of Ubuntu do you have? It's likely that you already have the drivers you need. Ubuntu comes with Linux Wacom Project's Wacom Kernel driver (input-wacom), X driver (xf86-input-wacom) and libwacom xf86-input-wacom. I checked here and the Pro L seems to be one of the supported devices.

You can change the pressure settings for the stylus itself via command line (personally I have not gotten the GUI, in gnome-system-control, to work).

Check that the tablet is being recognized by your computer by opening Terminal or another CLI and entering:

lsusb

Now enter:

  xsetwacom --list devices

This should return a list of elements of your tablet that are configurable. In that list, you should be able to pretty easily identify which one is your stylus. It should look something like

  Wacom Intuos L 6x9 Pen stylus     id: <XX> type: STYLUS

where <XX> stands in for some number that gets assigned to that component. The part to the left of the id number is the name of the component, which you will call when changing  its settings, so you need to remember that. Please note that the name might not look exactly like what's above--the dimensions (6x9) might be different or not there at all, or it may be called Wacom Intuos L 6x9 Pen (without the "stylus")--use the specific name that you see listed in your Terminal output.

Since you already know which specific property you want to edit, you don't need to go through the trouble of searching through all the possible parameters. You want to change the PressureCurve setting for your stylus:

  xsetwacom --set "<NAME>" PressureCurve 0 20 80 100

"xsetwacom --set" tells your computer that you want to change the settings, the name of your stylus replaces <NAME>, PressureCurve is the specific property you're changing the values of, and "0 15 85 100" is just an example setting--this is the part you probably will want to tinker with. I ended up liking 0 12 92 100 for Gimp.

For reference, if you had zero sensitivity for your stylus (it's either "off" or "on"), the PressureCurve setting would be 0 0 100 100

If you wanted to see the other settings available to be changed, enter

 xsetwacom list parameters

However, I suspect that the real issue that you're having is that within each program (like Gimp, Krita), you need to configure your tablet. I grabbed my boyfriend's tablet to test out my answer to your question, and at first I was stumped because I knew I had the drivers, that his tablet was supported, and the device was being recognized, but when I tried drawing in Gimp, changes in pressure were not having any effect.

With Gimp, you have to activate your tablet first. And while it isn't a highly technical process, it is a bit tedious. So I'm afraid my response is going to look really long, but it's not difficult to set this up, just a bit time consuming--I promise!

Go to Edit > Preferences > Input Devices then click Configure Extended Input Devices. You should see the different elements of your tablet listed. From there you can click on the pen element of your Intuos, and you'll see a drop-down menu next to Mode. Change the mode from Disabled to Screen. You can edit the Pressure Curve here to change sensitivity settings. I also tried enabling the Pad element (from Disabled to Screen) and left the pressure curve alone--I liked the results better when the pad was disabled and only the pen was enabled, but I don't know know many of the nitty gritty details about how tablets work, and you may want to play around with how these two elements interact when they're both enabled.

Beyond that, the tools in Gimp themselves have Dynamics options that can change the effect that input from your tablet has on what you're drawing. If you don't have a Tool Options dialog box open, open one up (I dock mine under my Toolbox). You should see a Dynamics section near the bottom. There are multiple profiles you can pick from, like Pressure Opacity, or you can add a custom one by clicking the button with the blue arrow and three red dots. This opens a drop-down menu of all existing profiles, and at the bottom of the list you'll see a plus sign button. Click that to make a new Dynamics profile. (See here for more info on Gimp/tablet use).

I can't walk you through Krita tablet configuration, but here's a link to their documentation on using tablets with the program.

I couldn't find a detailed walkthrough to tablet setup with MyPaint 1.2 (the newest version), but here's one for version 1.0. Unfortunately, I don't see your specific device listed in their supported devices list, although there are a lot of Wacom tablets in there.

Here's a guide to setting up tablets with Inkscape. It's probably the most popular vector graphics software compatible with Ubuntu. I've used it and really liked it.

Finally, you might also want to know that it's possible to write profile scripts so that the baseline pressure settings are different when you're using a specific program, like if you wanted lower pressure sensitivity when using Krita. You'd write a bash script that executes xsetwacom --set "<NAME>" PressureCurve X XX XX XXX, create an executable launcher for it, and click on the launcher before using Krita. More info can be found here.

Other sources: linuxwacom github page and wiki.


As far as I can tell, your printer is not supported in the brother-lpr-driver package

So you will have to download the driver directly from the manufacturer's site

download both .deb files. See screenshot.

Go through the usual license agreement bla bla...
Open file manager and go to your Downloads folder.
Double click the .deb file. It should be opened by "Software Center".
Click install.
Do the same for the other file.


How to fix "something wicked happened" in Software Center?

Check all the repositories from software sources and then update the software catalog using update manager. Then retry again.

If it doesn't work, try the following commands in a terminal:

sudo apt-get clean
sudo apt-get -f

And include the output of this command in the question.


Headphones not working. Realtek ALC270. Asus K55VD-DS71 laptop. Ubuntu 12.04

Reinstalled and upgraded the system using upgrade manager. Everything worked.


Unable to install R-base. Tried all methods listed here and even reinstalled Ubuntu

From comments:

Remove Michael Rutter's PPA

sudo add-apt-repository -r ppa:marutter/rdev

Try installing R again from Ubuntu's official repository

sudo apt install r-base


Banshee should not be damaging your files as it should be merely reading them. Unless there is something (extremely) wrong with how the metadata is being written back into the mp3 files.

Go to Edit >> Preferences and see if the record metadata to files box is checked. If it is, try disabling it. If it is disabled, than it is unlikely Banshee is causing it.

You mention starting to use ubuntu 11.04 - did you do a clean install or a direct upgrade? An upgrade could represent an issue with audio drivers. I'm baffled because you mention trying it in ubuntu, windows and the iPod.

Have you done any sort of re-enconding/conversion of the files?

What you can do to test is first testing an album in windows and then trying in ubuntu (and vice-versa).

There are so many factors in to question that I ultimately think you are better off filing a bug report over Banshees launchpad.
https://bugs.launchpad.net/ubuntu/+source/banshee


keycode 133 = less greater bar

those 3 keysym means: press the key; press with shift; press with Mode_switch.

so you need setup Mode_switch key, normally it is null.

eg: use Shift_R (0x3e) as Mode_switch

keycode 0x3e = Mode_switch Mode_switch

Fn-key can not be seen by xev or xmodmap.


Error in starting i8kmon service when setting custom config

You should place the configuration file in
/etc/i8kmon.conf instead of /etc/default/i8kmon. The i8kmon utility is a TK script which has a hardcoded path for the configuration file. See the output of grep sysconfig /usr/bin/i8kmon.

According to the below pages, /etc/default configuration files work with an incompatible logic of loading the configuration file into the executing shell's environment and therefore assuming that the configuration file syntax is that of the shell's. The i8kmon man page is in error because it doesn't mention the other (the original) configuration channel.
What is the purpose of /etc/default?
https://superuser.com/questions/46139/what-does-source-do


I think you can find the Linux driver and the installation instructions here:

http://www.canon-europe.com/Support/Consumer_Products/products/printers/Laser/i-SENSYS_LBP2900.aspx?DLtcmuri=tcm:13-823414&page=1&type=download

You have to download the file, open the file with an archive manager, find the deb-directory, (maybe) make the files in that directory executable and run the shell script that is included.

I have a Canon Pixmania MP250. It works with the Linux driver from the canon-europe site.


I had the same problem, turned out the second headphone jacked was muted. This can be seen when you start alsamixer in the terminal.

Use Tab to select playback items and Left/Right to select the second headphone. Mute/unmute with M.


No it is not available in 14.04.

At this time Ubuntu TV is only supported on Ubuntu 12.04. If you do not have 12.04 and would still like to help out we suggest that you use a virtual machine for now.

Warning This will replace the Unity 2d that is installed on your system. you will still be able to use unity 2d desktop but it will be altered.

If you are running 12.04 and would like to try this on your system. This is how to do that.

open a terminal CTRL + ALT + T

enter in

sudo apt-get -y build-dep unity-2d
sudo add-apt-repository ppa:u2t/bleedingedge
sudo apt-get update
sudo apt-get -y install unity-2d-shell

That is it reboot and pick unity-2d when logging into Ubuntu.

Source: UbuntuTV/Contributing