From the vim help:

<Undo>          or                                      *undo* *<Undo>* *u*
u                       Undo [count] changes.  {Vi: only one level}

                                                        *:u* *:un* *:undo*
:u[ndo]                 Undo one change.  {Vi: only one level}
                                                                *E830*
:u[ndo] {N}             Jump to after change number {N}.  See |undo-branches|
                        for the meaning of {N}.  {not in Vi}

                                                        *CTRL-R*
CTRL-R                  Redo [count] changes which were undone.  {Vi: redraw
                        screen}

                                                        *:red* *:redo* *redo*
:red[o]                 Redo one change which was undone.  {Vi: no redo}

                                                        *U*
U                       Undo all latest changes on one line, the line where
                        the latest change was made. |U| itself also counts as
                        a change, and thus |U| undoes a previous |U|.
                        {Vi: while not moved off of the last modified line}

The last changes are remembered.  You can use the undo and redo commands above
to revert the text to how it was before each change.  You can also apply the
changes again, getting back the text before the undo.

The "U" command is treated by undo/redo just like any other command.  Thus a
"u" command undoes a "U" command and a 'CTRL-R' command redoes it again.  When
mixing "U", "u" and 'CTRL-R' you will notice that the "U" command will
restore the situation of a line to before the previous "U" command.  This may
be confusing.  Try it out to get used to it.
The "U" command will always mark the buffer as changed.  When "U" changes the
buffer back to how it was without changes, it is still considered changed.
Use "u" to undo changes until the buffer becomes unchanged.

==============================================================================
2. Two ways of undo                                     *undo-two-ways*

How undo and redo commands work depends on the 'u' flag in 'cpoptions'.
There is the Vim way ('u' excluded) and the Vi-compatible way ('u' included).
In the Vim way, "uu" undoes two changes.  In the Vi-compatible way, "uu" does
nothing (undoes an undo).

'u' excluded, the Vim way:
You can go back in time with the undo command.  You can then go forward again
with the redo command.  If you make a new change after the undo command,
the redo will not be possible anymore.

'u' included, the Vi-compatible way:
The undo command undoes the previous change, and also the previous undo command.
The redo command repeats the previous undo command.  It does NOT repeat a
change command, use "." for that.

Examples        Vim way                 Vi-compatible way       ~
"uu"            two times undo          no-op
"u CTRL-R"      no-op                   two times undo

Rationale:  Nvi uses the "." command instead of CTRL-R.  Unfortunately, this
            is not Vi compatible.  For example "dwdwu." in Vi deletes two
            words, in Nvi it does nothing.

==============================================================================
3. Undo blocks                                          *undo-blocks*

One undo command normally undoes a typed command, no matter how many changes
that command makes.  This sequence of undo-able changes forms an undo block.
Thus if the typed key(s) call a function, all the commands in the function are
undone together.

If you want to write a function or script that doesn't create a new undoable
change but joins in with the previous change use this command:

                                                *:undoj* *:undojoin* *E790*
:undoj[oin]             Join further changes with the previous undo block.
                        Warning: Use with care, it may prevent the user from
                        properly undoing changes.  Don't use this after undo
                        or redo.
                        {not in Vi}

This is most useful when you need to prompt the user halfway through a change.
For example in a function that calls |getchar()|.  Do make sure that there was
a related change before this that you must join with.

This doesn't work by itself, because the next key press will start a new
change again.  But you can do something like this: >

        :undojoin | delete
After this an "u" command will undo the delete command and the previous
change.

To do the opposite, break a change into two undo blocks, in Insert mode use
CTRL-G u.  This is useful if you want an insert command to be undoable in
parts.  E.g., for each sentence.  |i_CTRL-G_u|
Setting the value of 'undolevels' also breaks undo.  Even when the new value
is equal to the old value.

Rest you can find when you do :help undo in vim.


I am afraid that you moved the file with root permission. It also happens when you format your ntfs disk from ubuntu. Ubuntu does not give enough permission by default. Install ntfs-config. Give Internal and External writer permission to ntfs partition using ntfs-config. And also change your moved files permission

sudo chmod -R 755 /media/ntfsdiskname/


TuxOnIce kernel packages and an updated tuxonice-userui package are available from:

https://launchpad.net/~tuxonice/+archive/ppa

Getting TuxOnIce is as easy as adding the PPA and installing the following packages:

"tuxonice-userui linux-generic-tuxonice linux-headers-generic-tuxonice"

Note that on Ubuntu 12.04 hibernate is disabled by default. Re-enable it as follows:
https://help.ubuntu.com/12.04/ubuntu-help/power-hibernate.html


Will ubuntu 12.04 LTS run faster when installed individually instead of in the windows folder?

Yes. An independent Ubuntu (dual-boot) configuration will be faster and may be more stable than a Windows-based (Wubi) install.


Can't install Upwork application on Ubuntu 15 with gksu

You can try two way to solve this issue:

Try to fix package dependencies automatically
Manually install packages needed by Upwork

First Solution:
Run the following command that should fix packages dependencies:

sudo apt-get install -f

More information about this command can be read in the manual with this command:

man apt-get

Second Solution:
Watch at all packages that aren't installed and install them. In this case seems that you only need gksu package, while the other packages have all a greater version than the required and this is not a problem. To install gksu run this command:

sudo apt-get install gksu

Now you can try to install Upwork and shouldn't get any package dependencies error.

I hope this could help you.


Does silent updates also upgrade to the latest distribution?

I don't think it will automatically update, however you can be notified about any new Ubuntu versions (which I think is what happens by default):

Go to > System Settings > Software Sources > Updates

Near the bottom it says "Notify me of a new Ubuntu Version", and you have 3 options:

Never
For long-term support versions
For any new version


How can I convert PDF to DOC while maintaining the formating?

You can use google drive - during uploading, check option "convert sent files to google format" (or similar, my languge is Polish).

Yo can also check other online tools - such as http://www.pdftoword.com/ (untested by me).

EDIT:
You can also use LibreOffice Draw. This program can open PDF files, and you will able to edit them.


Note this is a warning from the IDE, not a warning from the compiler or an error. The problem is the IDE (Eclipse) doesn't know where your C++ libraries live. It's fairly simple to fix, you just tell it.

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.cdt.doc.user/tasks/cdt_t_proj_paths.htm

  To set properties for your project, right-click your CDT project and select Properties. Alternatively, to set properties for a specific source file in your project, right-click a source file within your make project and select Properties.
  Expand C/C++ General and select Paths and Symbols.
  Click Add to define new element (Include Path, Symbol, Library path etc).

And unless I'm mistaken, the path you want to feed it is /usr/include/c++/4.6 (that may be slightly different, depending on your version of Ubuntu).

Also, see this:

https://stackoverflow.com/questions/12335420/unresolved-iostream-in-eclipse-ubuntu


Can I make Ubuntu's windows frame edges rectangular and not rounded?

You could use another theme, like Numix (available in the shimmer-themes package I think).
Then you use unity-tweak-tool to select that theme, which you can install from the Software Center.

The Numix theme is an example.
You can find a lot of GTK themes on the internet. After downloading a theme, create a folder named .themes in your home folder if it doesn't exist already (it will be a hidden folder) and extract the theme to there.


Open application to edit text files from the command line

You can open (Up to my knowledge) any of the editors like this:

NAME_OF_EDITOR FILENAME

gedit filename (Ubuntu)
kate filename (Kubuntu)
bluefish filename
kwrite filename
libreoffice filename

You can even open a web page the same way
firefox filename.html
chrome filename.html
banshee filename.ogg or .mp3

You can see the tendency here..


Wiping Mac OS completely and installing Ubuntu: Will the webcam work?

Boot into a live session from CD or USB stick (instructions: https://help.ubuntu.com/community/LiveCD) and check if it works. No need to wipe anything, it will leave you Mac OS untouched.

If the webcam doesn't work in the live session it isn't an indication that it's impossible to make it work, but if it does in the Ubuntu live session it most certainly will in the Ubuntu installation (no matter if you wipe Mac OS or keep it in dualboot).


Software to draw signals, time-diagrams, etc for electronics?

Specifically designed for developing electronic circuits we may have a look at the collection of tools from the gEDA  collection of tools:

  Currently, the gEDA project offers a mature suite of free software applications for electronics design, including schematic capture, attribute management, bill of materials (BOM) generation, netlisting into over 20 netlist formats, analog and digital simulation, and printed circuit board (PCB) layout.from release notes

See also the gEDA project homepage.


How to set the Default Browser from the Command Line?

Execute the following command in terminal,to change the default browser.

sudo update-alternatives --config x-www-browser

Sample output:

karthick@Ubuntu-desktop:~$ sudo update-alternatives --config x-www-browser
There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                    Priority   Status
------------------------------------------------------------
  0            /usr/bin/google-chrome   200       auto mode
* 1            /usr/bin/firefox         40        manual mode
  2            /usr/bin/google-chrome   200       manual mode
  3            /usr/bin/opera           90        manual mode

Press enter to keep the default[*].
Right now I have firefox as my default web browser.
If i want google-chrome as default browser then I will type 3 and hit enter.

Note:

If you want to configure a commandline browser,then you have to configure

sudo update-alternatives --config www-browser
Alternate way is to add the following line export BROWSER=/usr/bin/firefox to your ~/.bashrc
Add the above line in the last,

Alternative GUI Method:

You can also set the default browser in Gnome applications,type the following in terminal and press Enter
gnome-default-applications-properties
It will Open a Window.Now you can choose your preferred browser to set it default.


Youtube/online videos lag with FF/Chromium HTML5/Flash after upgrading to 13.04

There is a workaround: install minitube, a desktop youtube application. More info: http://flavio.tordini.org/minitube


Regex to find files with certain number of underscores

You've mixed up shell globs and regular expression syntax - and come up with something that's not valid in either.

If you want to use a regex based tool, try find e.g.

find . -maxdepth 1 -regex '^[^_]*_[^_]*_[^_]*$'


Locate the id of multiple input devices and change the value of its property

Someone in SO has provided a nice script that might help you. Change the commands accordingly.

You can do something like the following:

if [ "$SEARCH" = "" ]; then
    exit 1
fi

ids=$(xinput --list | awk -v search="$SEARCH" \
    '$0 ~ search {match($0, /id=[0-9]+/);\
                  if (RSTART) \
                    print substr($0, RSTART+3, RLENGTH-3)\
                 }'\
     )

for i in $ids
do
    xinput set-prop $i 'Device Accel Profile' -1
    xinput set-prop $i 'Device Accel Constant Deceleration' 2.5
    xinput set-prop $i 'Device Accel Velocity Scaling' 1.0
done

So with this you first find all the IDs which match the search pattern
$SEARCH and store them in $ids. Then you loop over the IDs and
execute the three xinput commands.

You should make sure that $SEARCH does not match to much, since this
could result in undesired behavior.


Hp laserjet 1018 printer keeps asking me to install it everytime I plug it in

the answer in this posting solved this problem for me.

In short:

sudo getweb 1018
sudo hplj1018


How do I start an application as a service?

Since these are GUI applications, it'd be hard to start them as a "service". The alternative I can think of is:

Set them to autostart when you login
Set your system to automatically login


Failing to configure automount on ntf partition on Ubuntu 20.04

As oldfred comment the nls=utf8,umask=000,uid=1000,gid=1000,windows_names 0 0 combination works perfectly with automount option. No more problems with trash folder or failing to automount on startup. Apparently windows_names 0 0 was the missing command


Does dual booting a version of Windows, open your entire system up to the security flaws inhernet in windows?

Technically speaking, yes.

Windows can read EXT partitions with a little bit of work. Therefore, it's theoretically possible that a well-crafted exploit can install an EXT driver and read/edit your Linux partition. From there, the threat model is pretty much the same as if an attacker has your hard drive.

If your hard drive is encrypted (or the malware isn't EXT-aware), any Windows-based malware won't be able to read or write to the files themselves on the partition, but that malware can still access the raw disk. In theory, such malware can erase your Linux partition or otherwise render it unusable, though it would not directly compromise your Linux system's security. Of course, this still depends on Windows actually running. A sleeping bear is no risk.

More dangerously, a Windows exploit can flash your BIOS or other low-level components with maliciously-crafted firmware or pull off a BadUSB attack that could theoretically target/exploit Linux. However, these exploits are often extremely specific and are a non-issue unless you've annoyed some very good hackers or three-letter government agencies.

Either way, an attack that "jumps" from Windows over to Linux (or flashes your BIOS or whatever) is going to be pretty rare, all things considered. For all intents and purposes, any regular user will be just fine and won't have to worry about this kind of malware hitting them.


Ubuntu 18.04 xrdp - login then connection problem, giving up - Matrox Issue?

Note : This is only applicable to Ubuntu version 18.04.2
If you are using the Ubuntu 18.04.2 version, introduction of the new xserver-xorg-core-hwe18.04 package prevent installation of xorgxrdp backend software which is needed to have working remote desktop connection to Linux.
To fix this issue, you can perform one of the following actions

Downgrade to previous xserver-xorg-core packages
use unofficial xrdp packages including support for newer xserver-xorg-core-hwe18.04 package

To downgrade to previous package, you simply need to execute the following commands

sudo apt-get install xserver-xorg-core
sudo apt-get -y install xserver-xorg-input-all

Then perform the xrdp installation process
To use the unofficial packages, you can have a look at this post which provide the location for the ppa where packages are stored
Finally, note that new version of the scripts are available and include the fix as well.  All information about this issue and updated version of the script can be checked on these locations

Latest version of the script with fix http://c-nergy.be/blog/?p=13487

Issue Description http://c-nergy.be/blog/?p=13390

Unofficial Package xrdp for U18.04.2 http://c-nergy.be/blog/?p=13455
Hope this help
See ya


Recovering Home folder after failure to boot

Please mount your Windows partition and copy with:

mkdr /mnt/winpart
sudo mount -t ntfs/dev/sda1 /mnt/winpart
mkdir /mnt/winpart/recovery
cp -r ~ /mnt/winpart/recovery

This command assumes your Windows partition is /dev/sda1. If it is not, please change the second line accordingly.

Once it finishes, reboot to Windows, and the files will be found in C:\recovery, along with some files that were hidden on Linux. If sudo fails, you're out of luck except for reinstalling on another partition and then copying your old home folder, as if you killed libc, you'll need it for even the simplest things.


Deploying Artful Aardvark 17.10 with MaaS 2.2 fails to bring-up networking

[1] Ubuntu 17.10 Server uses netplan & networkd to configure networking. ifupdown and e.g. /etc/network/interfaces are no longer used. Is your MAAS setup compatible with these changes?

Check out your new config file /etc/netplan/01-netcfg.yaml

This is the default netplan config file /etc/netplan/01-netcfg.yaml which does DHCP:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      dhcp4: yes
      dhcp6: yes

This is a working config /etc/netplan/01-netcfg.yaml for a static IPV4 address (IPV6 not used, but not disabled):

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
##RHMOD
network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      dhcp4: no
      dhcp6: no
      #####accept-ra: no
      addresses: [192.168.0.55/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]

[2] I know of one situation where systemd-networkd waits 2 minutes: if you disable either IPV4 or IPV6 (not both of course). Did you?

It causes a timeout of 2 minutes in the service systemd-networkd-wait-online.
This is the typical error in the sysylog:

> ...Oct 20 01:54:56 myvm systemd-networkd-wait-online[435]: Event loop
> failed: Connection timed out
> ...A Start job is running for Wait For


I suggest to find Google Earth executable by listing all installed files and searching here its executable or desktop file.

I do not have Google Earth Pro installation, so here are examples for normal version:

list all installed files and find placed in bin here:

$ dpkg -L google-earth-stable | grep bin/
/usr/bin/google-earth
$ file /usr/bin/google-earth
/usr/bin/google-earth: symbolic link to /opt/google/earth/free/googleearth

so Google Earth executable is located in /usr/bin/google-earth and it is a symbolic link to /opt/google/earth/free/googleearth.
search desktop file and show Exec line:

$ dpkg -L google-earth-stable | grep desktop
$ /opt/google/earth/free/google-earth.desktop
$ cat /opt/google/earth/free/google-earth.desktop | grep Exec
Exec=/opt/google/earth/free/google-earth %f

so executable file is located in /opt/google/earth/free/google-earth.

I'm using MATE DE, so I can find Google Earth icon in the menu Applications|Internet|Google Earth - it is the most user-friendly solution.


laptop cannot boot without external drive after installing GRUB there

It seems that Grub overwrite your windows bootloader because Grub is not installed on your external drive but on your laptop drive.

Two things to do :

Restore your Windows bootloader
Install the Grub bootloader on your external drive so that Grub only appear when you choose to boot on that drive

How to restore your Windows bootloader

Start Windows with a rescue or boot disk then run fdisk /mbr
OR Start Ubuntu, install lilo and restore your MBR(Master Boot Record)

sudo apt-get install lilo

sudo lilo -M  /dev/sda mbr (assuming that your boot partition is on /dev/sda)

How to install Ubuntu on your external drive without corrupting your windows bootloader

Start Ubuntu installation process with LiveCD
Select "Specify partitions manually"

Choose partition on your external drive for your datas
Choose the partition to install your Boot loader : here choose the partition on your external drive Caution : default value is /dev/sda that is your netbook internal drive, you have to change default value !

Go on with your installation the classic way

Using this method, your system will boot on windows unless you plug your external drive and choose it as boot disk (using F12 or other special key at startup).

I use this system with Windows on my laptop and Ubuntu on a usb key and it works fine.


I solved this by switching from DHCP to Static. It seems there was a problem in the network and the default DHCP settings allowed me to access the internet but hindered other functions.


Looks like Microsoft did not update their package MSSQL. Since openssl has got important fixes recently I would not try to ignore the dependency.

I recommend to install mysql-server instead of mssql.

If you still want to install mssql this is the way to go:

apt download mssql-server

dpkg --ignore-depends=openssl -i mssql-server.deb


The upgrade path you want must be stepwise and involves 16.10 and 17.04, which have passed end of life. This makes it very complicated and likely to fail.

The best upgrade alternative would be to wait until the next LTS version (and its first point release) 18.04.1 LTS in July or August (2018).
Otherwise the best alternative is to backup your personal files and make a fresh installation of Ubuntu 17.10.1 from the iso file. After the installation you can copy your personal files into the new operating system.


Is there a GUI to convert/extract images to/from pdf?

(The question poser added 'not in the terminal' only after I had posted this; however, it still stands as a relevant answer and useful for people, particularly regarding the evince point, which is a graphical app)

You can extract individual pictures from the pdf reader evince just by clicking and dragging them onto the desktop; sometimes you have to click more than once, but it generally works and I have found it really useful! Also, if you right click the image in the pdf you can save it in another image format instead of the default .png.

To extract all images from a pdf, you can use pdfimages, which is part of the poppler-utils, and is in the repository, although you probably have it installed anyway. That package has a number of other tools as well. To extract images in jpg (and the program's native format,ppm), just enter pdfimages -j name.pdf <picture name>. Call the picture name whatever you want, and the images will be successively labelled as dog1.jpg, etc. You can obviously specify absolute locations if you want with pdfimages -j ~/KeyGuides/TSENG.PDF ~/Scripts/DOG (where DOG is not a directory, but the name the pictures will use).

Pdfimages is quite a simple program, but I'll see if I can find any other tools, as I manipulate images/pdfs a lot too.


I ended up fixing it by using apt-get remove, purge, and auto-remove, then reinstalling all the dependencies and running apt-get install nginx after adding the repository like in the question


Ubuntu 16.04 VIM without python support!

If you want Python 3 support in vim, install the vim-nox package (sudo apt install vim-nox) see edit below.

However, if you still need Python 2 support, install the vim-nox-py2 package (sudo apt install vim-nox-py2).

Edit: vim was recently updated to fix this issue, and you should not need to install the vim-nox package anymore to get Python 3 support.


Is it possible to run some application in the chroot or container but allow DBus interaction with host system?

Check out the following guide on how to

create a system container with some old version of Ubuntu (like 12.04 or 14.04), and
set it up so that you can run GUI programs from within that system container and get the output on your host

See guide from https://blog.simos.info/how-to-easily-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/ .

The guide has an example on running some old Tcl/Tk utility in a Ubuntu 12.04 system container.


Notebook with two hard disk (SSD and mechanical)

How can I divide partition?

System on the SSD: that will make it boot quick. Personal files on the HDD. In the case of failure of the SSD you can buy a new one, re-install the OS and simply mount the HDD.

See ~/.config/user-dirs.dirs on how to easily change the directories in your /home/$USER/ to the 2nd hard disk. Reserve a copy of this file on the HDD so you can copy it back to /home/$USER/.config/.

So ...

SSD: format and mount as /
HDD: format and mount as a partition
change ~/.config/user-dirs.dirs

  I think swap could go on mechanical one.

Or no swap at all. I myself do not use hibernate or suspend anymore. Booting within 10 seconds is quick enough for me (I commute, watch anime in a train).

  Will Ubuntu see that one is SSD and other no?

Depends on your actions. If you (possibly format and) mount the HDD during setup it will be shown. If you don't and leave it unallocated you will need to do some manual work after installation to make it show.

  I know SSD has different bytes page size (4096) and that it needs trim. Will Ubuntu manage correctly both hard disk in the same system?

That depends on the brand of the SSD; answer likely is yes though. Trim will always be installed and it will trim the disk if it is on the supported SSD list. Also see How is Trim enabled? and How to enable TRIM? for some tricks and on how to test it.


I presume the reason you are asking about this is that you use different monitors on the same Ubuntu machine and you want GRUB2 to look good on all of them. However, if you are concerned about the resolution used once Ubuntu boots, this does not address that. GRUB2 does not "pass on to the kernel" the resolution it selects for the boot menu.

Edit /etc/default/grub as root. You may want to back it up first:

sudo cp /etc/default/grub /etc/default/grub.old

(You would run that in the Terminal, which you can open by pressing Ctrl+Alt+T.)

To edit it with Gedit as root run:

gksu gedit /etc/default/grub

(Or if you're using Kubuntu, run kdesudo kate /etc/default/grub instead.)

You'll get a lot of messages in the Terminal, if you run that command in the Terminal rather than with Alt+F2. You'll notice they don't say they pertain to the file you're editing, so that's fine.

You'll find that part of the file says something like this:

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

Uncomment (i.e., remove the leading # from) the line that says GRUB_GFXMODE, and change the resolution from 640x480 to auto. The line should now read:

GRUB_GFXMODE=auto

Save the file and quit the editor. In the Terminal, run:

sudo update-grub

(This must be run after every modification to /etc/default/grub, to apply the changes.)

Now reboot, and see if that does what you want.

It might not (as it uses the "platform default" which might not be the highest possible). If that is the case, edit /etc/default/grub again, and this time change the line so it says something like:

GRUB_GFXMODE=1600x1200,1280x1024,1024x768,800x600,640x480

You will not necessarily want to use exactly that line. You should list all the resolutions you want to be tried, in the order you want them to be tried. The resolutions I have listed are the most standard resolutions for monitors with a 4:3 aspect ratio, but widescreen monitors (including most laptop screens these days) have different form factors and use different resolutions. Wikipedia has a list of common resolutions which may help you. If you know the specific resolutions you want for each device, you can just list them (highest first). You should probably include 640x480 or auto at the end . I recommend this because I don't know if GRUB2 will always try a safe low resolution, if you don't include that.

Then save the file again, run sudo update-grub again, reboot again, and see if that does what you need.

If it doesn't, you may be out of luck. GRUB2 doesn't display video the same way as Ubuntu does once it's booted. GRUB2 uses VESA BIOS Extensions to display the boot menu with enhanced resolution (and color depth), and a machine's maximum resolution through VBE is not always as high as the maximum resolution supported by the video card and monitor.

Source: The official GRUB2 documentation. (You'll notice the version number is 1.99. It's still GRUB2. A bit confusing, but true.)

[Finally, thanks to TechZilla for pointing out a serious error in the original version of this answer.]


Try this:
Ctrl+Alt+F1
sudo apt-get install -f -m --reinstall -u gdm

Meaning of the short options:

-f : fix broken
-m : fix missing
--reinstall : refresh archives to newest versions

Useful option:

-u : print out a list of all packages that are to be upgraded

Next:
sudo dpkg-reconfigure gdm

▶ select GDM instead LightDM
Finally:
sudo reboot

Enjoy!


Ethernet cable isn't being detected in Ubuntu 12.04

In my case, with my notebook and Precise Pangolin amd64 installed, I had to use the switch in the control panel, network section, to enable the ethernet/LAN.


Enable [Fn]+[cursor arrows] on lock/login screen to change volume and brightness

In the terminal:

sudo gedit /etc/default/grub

Change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Save, then

sudo update-grub

Restart computer.


UBUNTU 14.04 LTS Date and time is not displaying in the menu bar after login

Does indicator-datetime show up in your task manager?

If not, open a terminal and try typing

nohup indicator-datetime &

See if it shows up.  If so, then you need to add it to start automatically each time you restart.  You can do this by searching "Startup Applications" in dash, and adding indicator-datetime to the list.

I am unsure why it would not be starting on its own, but this is a possible workaround.


How do I get a RTL8125 2.5GbE Controller working on 18.04 LTS

RTL8125 is supported natively by kernel 5.4.
In a little over a month, you will be able to switch to Ubuntu 20.04 LTS with this kernel version.


By itself, installing wine does not create the .wine folder.

Remove or rename the .wine text file - this could be confusing wine.

Run winecfg in a terminal - this will create the .wine folder in your home folder.


xda-developers does a lot of work to get Ubuntu touch working on not supported phones. here is a guide for xperia phones.


change date for execution of one program?

Without knowing exactly how nero works, we can't be sure how it gets time and thus how to fool it.

But the package faketime may do what you want. From their documentation:

  The Fake Time Preload Library (FTPL, a.k.a. libfaketime) intercepts
  various system calls which programs use to retrieve the current date
  and time. It can then report faked dates and times (as specified by
  you, the user) to these programs. This means you can modify the system
  time a program sees without having to change the time system-wide.
  FTPL allows you to specify both absolute dates (e.g., 2004-01-01) and
  relative dates (e.g., 10 days ago).

How to run it:

You could start nero like so:

 faketime '2017-4-28 08:15:42' /path/to/nero

If that works for you, then you could alias it in your .bashrc to always start like that.


What does this message displayed on a black screen before the login prompt mean?

It's a Plymouth thing, what does it mean I do not know I can't find anything conclusive, seems network related.

Should it be cause for concern?, How should I respond to it?

Just ignore it, I used to get that message too nothing wrong happened.

If something does happen, try what it says here or here.


Can I format my Windows 7 NTFS partition and use it in Ubuntu even if it appears earlier on disk?

Option 1: You don't need to reinstall the system to take advantage of the extra partition, of course. Actually, you do not even need to reformat it -- Ubuntu can mount an NTFS partition as well, so you could use it to exchange data between the two systems. For example, you can mount it in such a way that it is always accessible under /data, for example, so you can store your multimedia files there.

There is a step-by-step instruction on how to do it here. Even if it seems complicated, it's not, and is actually by far the easiest solution.

In short, you need to

Install ntfs driver

sudo apt-get install ntfs-4g

Run the graphical configuration tool

sudo apt-get install ntfs-config
gksudo ntfs-config

Also, if I would not use so much space for the root system. My system barely uses up a few gigs; it's better to leave the system partition relatively small, because if needed you can just go on and reformat it, not worrying about what you really care about -- your data files. How much does your system currently take? Multiply it by two and you will get the most of what you should allocate to a root filesystem. And if you do not keep data on your root filesystem (as you should), then you waste disk space.

Option 2: if you really plan a full reinstallation, just delete all the Linux partitions and the NTFS partition using the manual partitioning option in the Ubuntu installer, and set up the partitions to your heart's content. It's not as dangerous as one might think, as long as you read what's on the screen and do a backup before installation.

Note about backups: there are two sorts of people, those who do proper backups and those who will. Whatever you do, backup your data on an external disk or in the cloud, make sure that backups work, and you'll be fine.


How to start the text mode installer from the Kubuntu 12.04 DVD?

For text based install you need to get the Alternate CD.

The text based alternate installer can be downloaded from the various download methods above. This installation CD is suited for computers unable to run the graphical desktop based installation, either because their computer does not meet the minimum requirements for the live CD or because their computer requires configuration after the installation is complete in order to use the desktop. The alternate installer also includes advanced features such as LVM support.

Desktop Alternate 32bit CD, and Desktop Alternate 64bit CD.

Added info

Thanks to soulsource, the Kubuntu website does state that "The DVD includes both the live image/desktop installer and text based alternate installer".  So how to start the text based installer from the DVD?  Well I had to download the DVD version of Kubuntu, and once booted from the DVD, I was presented with a menu, one of the options was to Install Kubuntu in text mode.  See image below.

Note: The Kubuntu CD is 704MB, where as the DVD is 3.7GB.  Make sure that you downloaded the right file.  The CD version will not have the text install, for that you need to get the Alternate CD.  Where as the DVD version will have the live image/desktop installer and text based alternate installer.


Having just wasted 40% of my rep on a bounty for this, I believe it might be permissions after all.  Setting permissions to:

drwxr--r-- 6 media media 4096 May  6 12:46 StorageDrive

appears to have made the share work.  media is a group with users mainuser,media and media is the user that I'm logging in to the share with.

So now I just need to make this permanent in the fstab while not granting access to the entire drive to the media user (other than the sub-sub-directory where the media files are stored).


If the mythtv user is created as a system user, it won't have a password set and might be configured so you cannot log in as it.

Typically, you can log in as another user using sudo. If your account was the one created as the administrator when you installed Mythtbuntu, you will already be set up to use sudo. You can then try:

sudo -i -u mythtv

However, if the mythtv user does not have a shell configured, then you still might not be able to log in as that user. You can try setting a shell for the mythtv user:

sudo chsh -s /bin/bash mythtv

Or rather than trying to log in as that user, simply run individual commands as that user using sudo:

sudo -u mythtv "<command_to_run>"

In a similar vein, can also log in as root using sudo -i -u root, or open a new shell as root by running sudo bash.

Lastly, if you really want to, you can use sudo to set a password for the mythtv user:

sudo passwd mythtv


Chromium is showing a wrong path to the Desktop

The dialogue shows the location set under Advance settings→Downloads→Location. For e.g. if path is:

then dialogue shows

So, change the path in Location to get dialogue in desired folder.
In my case Chromium installed via snap (Software Center) is unable to read the contents of /home/username/Desktop although it can download and save files to that folder. I am getting error as Permission denied. I'm digging up the cause and reporting to Google. I believe this is a bug. The error is just read error and Chromium is still able to write the content.
Update:
This is a bug under Chromium distributed by snap. I tried reinstalling but results are same. On the other hand, I tried Chromium installation by apt and that Chromium is working fine without any error.


Variable problem when using FB.api async calls with jQuery.when()

There are multiple mistakes here:

1) Arrays should not be iterated like this:

for(i in ['...','...'])

When you do that, i will be the index into the array, not the item in the array.  And, it will be iterating through properties of the object which can sometime be more than just array elements.  You should iterate array elements with either:

for (var i = 0; i < array.length; i++) {
    // process array[i]
}

or with .forEach():

array.forEach(function(item, index) {
    // process item here
});

2) I don't know the FB api myself, but I don't see any documentation that FB.api() returns a promise.  $.when() only works with promises.

3) When you are accumulating items in friendsRequest, you are building an object, not an array.  Assuming friend.id is a string, friendsRequest[friend.id] sets the property of an object, not an array element.

4) If you want to use an actual array with $.when() (after you fixed other things to actually have an array), $.when() expects to be called like this:

$.when(p1, p2, p3, p4)

where p1 ... p4 are promises.  So, if you have an array of promises, then you can call $.when() in the appropriate way by doing this:

$.when.apply($, arrayOfPromises)


Why doesn't it install suggested packages? / Why do all installed packages have to be done by these commands only or not at all?

The commands you are using is to install the downloaded package alone, when the downloaded package is actually a binary source package. That installs just the downloaded package alone. In order to install .deb packages you can use dpkg and even better why not use trusted packages from Ubuntu sources to download packages? You can use the apt-get command for that.

What's the meaning of ./configure,make and make install?

You can get a full understanding of what these commands are and what they do from this link and this link, but here is a short excerpt from one of them summarizing the commands:

  You run configure (you usually have to type ./configure as most    people don't have the current directory in their search
  path). This    builds a new Makefile.
  Type make . This builds the program. That is, make would be executed,    it would look for the first target in Makefile and do
  what the    instructions said. The expected end result would be to
  build an    executable program.
  Now, as root, type make install . This again invokes make, make finds    the target install in Makefile and files the directions to
  install    the program.


Errors when launching Windows 10 installation from grub

If you have a recovery media for Windows 10(or if you have created one on your own)-you can simply recover Windows 10 using that. It will wipe out Ubuntu Linux. At the time of recovery it will be asking you to restore the laptop to it's factory settings - just make use of it.

I believe any PC manufacturer will anyway reset the system to the factory settings - so you can check with them and stop putting any efforts towards it if that is the case.

You might still be having the recovery partition for this laptop. You can contact ASUS support in terms of how to recover the system to it's factory settings using that.


Add custom shortcut to open and focus application Ubuntu 18.04

You may use some GNOME shell extensions to remove the "Program is Ready" notification and also put the newly launched window into focus, for example

'Window Is Ready' Notification Remover
NoAnnoyance (Removes the 'Windows is ready' notification and also puts the window into focus)
Focus my window (same as above)


Unknown key bridge netplan config for KVM

There is a typo in your configuration.
Please correct the following line.
network:
  bridge: => bridges:


you should re-install grub.
check my answer here. It is done through GUI tool.

By the way I don't like to give link to answer but it doesn't worth just copy and paste it again and again.


I can't change my own folders (newbie alert)

If you run it as usual user like I did first:

$ qbittorrent-nox --webui-port=8088

******** Information ********
To control qBittorrent, access the Web UI at http://localhost:8088
The Web UI administrator user name is: admin
The Web UI administrator password is still the default one: adminadmin
This is a security risk, please consider changing your password from program preferences.

Than it creates folders with the same ownership with which it have been started.

If you run it with superuser privileges as a daemon:

$ sudo qbittorrent-nox --webui-port=8088 -d

Than it creates folders with root privileges.

Run it without sudo:

$ qbittorrent-nox --webui-port=8088 -d

I specified 8088 port because of 8080 is used on my system.

Note: To stop it, use killall qbittorrent-nox or sudo killall qbittorrent-nox if you've started it with root privileges

My ~/.config/qBittorrent/qBittorrent.conf now:

[LegalNotice]
Accepted=true

[Network]
Cookies=@Invalid()

[Preferences]
WebUI\Address=*
WebUI\Port=8088

I could delete files inside of that folder. It was created with the next permissions:

14156195 drwxr-xr-x   2 user  user  4.0K Mar  4 15:22 'GraphicRiver - Cyber Poster Photoshop Action 25597014'


How to remove Ubuntu 20.04 boot animation?

Edit /etc/default/grub and remove the string quiet splash from the line GRUB_CMDLINE_LINUX_DEFAULT=
Then run sudo update-grub.
Example for one of my pc's:
Before: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash stack_guard_gap=1"
After: GRUB_CMDLINE_LINUX_DEFAULT="stack_guard_gap=1"


I guess you have installed the operating systems in the wrong order. Windows will carelessly overwrite the boot sector. Please see this Boot Repair tutorial. That should do the trick.


Some programs are running but not opening in the window?

The solution was simple, I figured it out!

I went to System settings > Display.
There I found that I was having two unknown displays enabled so I simply turned off the second one.
Then I adjusted the needed resolution and in general options, I changed the launcher replacement to first unknown display, then I did the same for scale all windows to match setting.


How to search multiple file names in Nautilus?

Try gnome-search-tool

It's available in the software centre, or via sudo apt-get install gnome-search-tool.

When you run it, rather than enter things to the 'Name contains' box, click on 'Select more options', then the drop down and choose 'Name matches regular expression', then click add.  In the new box that appears, you can use any regular expression to search file names.  If you want file1 or file2, then type file1|file2.

This is someone else's image, but it illustrates the method:

There are a number of options for searching, and regular expressions (regex) are very powerful, googling may find you further examples to try.

The program does not index your files, so if you search a large area, it may take a while.

Integrating with Nautilus:

A Nautilus-script will allow you to launch gnome-search-tool within the current directory.  Simple create a file called Search Here in ~/.gnome2/nautilus-scripts, and put:

#!/bin/sh
exec gnome-search-tool --path=$NAUTILUS_SCRIPT_CURRENT_URI

as the entire file contents.  Then, set the file as executable (under Properties, Permissions).  Now, close all instances of Nautilus, and reopen one.  When you right-click in a directory, there should be a submenu called 'Scripts', under which 'Search Here' appears.  This will open gnome-search-tool in the current directory.


Dell Latitude E6420 multiple-monitors not working

I have this working, although it's worth noting that I have the Intel integrated graphics. If I boot with the laptop docked, I get the login screen replicated on both monitors, although not at the correct resolution. Once I log in, nine times out of ten, the left-hand DVI monitor goes blank but the right-hand VGA monitor is fine and at the correct resolution.

The only way I've found of waking up the left-hand monitor is to go to Displays and temporarily disable the left-hand monitor; specifically, I disable it and then click the "restore previous settings" button. Because the Displays window is necessarily on the right-hand monitor, when dropping to a single monitor, it gets moved one virtual desktop to the right -- that took a while to discover!

Aside from this, a suspend-undock-wake sequence completely and irretrievably corrupts the display on the laptop screen.


VMware Player refuses to launch on 16.04 (VMware modules cannot compile into kernel)

I'm having a similar problem with vmware player 12.5.6. I can compile vmmon and vmnet (you need to install build-essential and linux-headers-generic). However they won't load into the kernel. vmware suggests turning off safe boot (which I already had disabled) or signing the modules (which makes no difference, as I'm not running secure boot or UEFI).
If you want try that, see the answer here:
vmware error after upgrade to ubuntu 16.04

To answer your basic question, you can find vmware player 7 here:
https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_player/7_0|PLAYER-714|product_downloads

First you'll need to uninstall your current vmware player:

sudo vmware-installer -u vmware-player

After you install vmware player 7.*, you need to add a line to your .bashrc in order to get vmplayer to start:

export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH

which came from this answer: VMware won't work after Ubuntu Upgrade

Still having my issue with vmmon not loading into the kernel though... but at least vmplayer starts.


Unable to Install firefox on ubuntu 14.04 with firebug

sudo apt-get update

Does not update your software. That command only updates the package list so your system will know what software versions are the newest. You must type the following command to actually apply the updates:

sudo apt-get upgrade

or

sudo apt-get install --reinstall firefox

Then restart firefox and go to https://addons.mozilla.org/en-US/firefox/addon/firebug/?src=ss to install firebug.

Alternatively, you can use the command:

sudo apt-get dist-upgrade

But the updates from a dist-upgrade can cause instability issues that may need to be worked out so if you are working on a project for school or work, you might want to hold off on that command until you are done with your important projects and have the time to work out any issues that may arise.


How do I test multi-gesture capabilities of a touchpad?

You can enable two-finger scrolling by forcing the scrolling setting:

gconftool-2 --set --type=int /desktop/gnome/peripherals/touchpad/scroll_method 2

If this doesn't work, try with the below script:

xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 10

#   Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 7

#   vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 1

#   vertical, horizontal, corner - values: 0=disable  1=enable
xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 0 0 0

#   stabilize 2 finger actions - value=pad-pixels
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 120

I have added it to my startup applications. If it doesn't seem to work, try adding a sleep 10 at the top of the script.


try one of the many websites that do DNS resolution. Some even let you try out different nameservers, or try several on their own
backup your /etc/resolve.conf (it usually is just a symlink to /run/resolvconf/resolv.conf) and manually create your own with some other nameserver e.g.
echo "nameserver 8.8.8.8" > /etc/resolv.conf
(don't forget to revert to original resolv.conf aftwerwards)
use nslookup and specifiy a nameserger
`nslookup suspicious-domain.com 8.8.8.8


How to fix a partially upgradated kernel

wget -c http://mirrors.kernel.org/ubuntu/pool/main/i/initramfs-tools/initramfs-tools_0.136ubuntu6_all.deb

install it with dpkg directly.
sudo dpkg -i initramfs-tools_0.136ubuntu6_all.deb

Note the next steps only work when this part is running without error I mean installation from initramfs-tool
removing remaining config files.
sudo apt purge $(dpkg -l | egrep '^rc' | awk '{print $2}')

or you can use
sudo dpkg -P $(dpkg -l | egrep '^rc' | awk '{print $2}')

remaining conf files can sometimes make trouble.
sudo apt update && sudo apt full-upgrade

current kernel in focal is
uname -r
5.4.0-52-generic

Make sure package linux-generic is on your system.


Strange artifacts along window borders after waking computer from sleep mode

NB: This was a temporary workaround until Nvidia released a patched driver. Scroll down to find the other answers with the actual fix. - Android Dev

I have the same issue using GPU: Nvidia GTX 970 with nvidia 375.39 driver on Ubuntu 16.04.2 LTS

I have observed this since a recent upgrade of the nvidia driver. I thus suspect that it is a bug in the driver.

I found an answer on the nvidia board. It is a confirmed bug in the driver and nvidia is apparently already working on it. In the meantime, one can restart compiz with

compiz --replace

to get rid of the artifacts.

The bug is in the Ubuntu bug tracking system including a workaround script to automatically restart compiz after resume.


The Fn key wont work on Toshiba satellite L735?

I have a Toshiba Satellite L510 with Ubuntu 12.04, I fixed this issue installing fnfx-client. And after installed, it worked automatically!!!

sudo apt-get install fnfx-client

Good luck!


apt-get install fails due to dependent packages

You can fix broken dependencies with

sudo apt-get -f install


How to make Ubuntu backups readable on Windows

The following is not suitable as a backup solution for Ubuntu

To save files for importing to a Windows OS the easiest would be to just format the external drive with FAT32 or NTFS and copy your files there. By this all files and their trees will be accessible from any Windows computer.

However with this method you will loose all Ubuntu file permissions. It is therefore not advisable to copy these files back to Ubuntu, it is more a one-way solution for sharing files from Ubuntu but not from Windowsb back to Ubuntu.

In case you need to keep your file permissions you will have to format your external drive with e.g. ext4, and install software on the Windows computer to read an Ubuntu file system:

How to read ext4 partitions in Windows?


Can't Load Windows 8 after removing Ubuntu Dual Boot

Boot from the windows DVD into the repair mode and enter the command fixmbr.

More here and here.


Ctrl+Q

is a keyboard combination that closes the entire application. Thus, if the application has multiple windows open, all windows will be closed
is a keyboard combination that is directly intercepted by your application. Thus, there might be applications that do not follow that convention, and where the keyboard shortcut will not be in effect.

Alt+F4

is a keyboard combination that closes the active window. Thus, if an application has multiple windows open, only the focussed window will be closed
is a keyboard combination that is intercepted by your desktop environment, more specific, the window manager. Therefore, it will work for any application.

Ctrl+W

Behaves in many instances like Alt+F4. However, it is a keyboard shortcut that is intercepted by your application. In applications that create multiple windows, it will close the current window ("document"). In browsers, the keyboard closes either the current tab, or the current window if only one tab is open.


Ubuntu freezes on first boot on samsumg series 9

you need to restart your X-server. That in most cases solves this kind of problems. Check wether is rightly installed


Reinstalling Ubuntu While Keeping Files and Programs

A reinstallation will do just that. But it will also wipe any files on that partition. So you will want to back up your data first.

Have a medium to reinstall Ubuntu (Usb key or cd) and create said medium.
Have a back up medium, for example a usb key or an external usb hd.
Boot into Ubuntu.
Open the file browser, mount your hard-drive (the one all your stuff is in) in live mode and backup to your backup medium.
Reinstall ubuntu


https://github.com/01org is official GitHub account of Intel Open Source Center, I think it is trustworthy.

FYI, The original 01org project page is here(dead link), web archive could be found here. If you still don't trust the Github repo, the download link in the web archive is still working at the time of writing.


Can not launch older Minecraft versions than 1.13

I had the same issue. The problem is that older versions of Minecraft run on Java 8 so I had to change the default version of Java. If you type this command in the terminal you should see your current version of Java:
java -version

The way to change it is to write this command:
sudo update-alternatives --config java

This will open a menu like this:
There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path...
------------------------------------------------------------
  0            /usr/lib/jvm/java-9-oracle/bin/java...
  1            /usr/lib/jvm/java-7-oracle/jre/bin/java...
  2            /usr/lib/jvm/java-8-oracle/jre/bin/java...
  3            /usr/lib/jvm/java-9-oracle/bin/java...

Press <enter> to keep...[*], or type selection number:

Then, enter the number of the selection of the java version you want and press Enter. For example, if I want Java 7 I will type 1.


Bluetooth Headphones refuse to use A2DP High Quality

followed the instructions on this page:

https://ubuntu-mate.community/t/how-i-got-my-bluetooth-headphones-to-work/410

then got into blueman using blueman-manager in the terminal, and used that to connect.

got my headphones working (finally) on 17.04.

good luck!


How to correctly unmount an external USB hard-disk?

You added a line to your /etc/fstab file  to mount the drive at boot time.

Removing that line will fix the problem.


How can ensure that my LAMP server isn't avilable for online access?

Will you only be accessing it locally via the localhost address?

You could use iptables firewall to allow only outgoing connections from your computer (and incoming traffic related to that):

iptables -I OUTPUT -o eth0 -d 0.0.0.0/0 -j ACCEPT
iptables -I INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

where eth0 would be your network interface (could be wlan0 in case you're using a wireless, check with ifconfig).


Kubuntu 20.04.1
integrated video card AMD STONEY R2
4 GB RAM DDR4
I used a different software because in VLC there is a problem with the main decoder that gives errors when you close a video before the end. As a result the VLC process remains in the virtual memory and if you open more videos and close them before the end the VLC processes do not close automatically causing the virtual memory to be filled almost completely requiring a restart to close them.
I installed mpv media player and although it has no options except for arranging the window you can play MP4 files without problems.


Allocate the space on your 11gb partition set it to fat or something that the computer can recognize so when you install you can choose that specific space for your install.


There may be old Lazarus configuration files in your home folder.

I'm not familiar with Lazarus so you'll have to experiment a bit. Open your home folder, click View ▸ Show Hidden Files, and then look for anything related to Lazarus:

~/.config/fppkg.cfg
~/.ppc386.cfg
~/.fpc.cfg

If any of these exist, try disabling them by trashing or renaming them to restore Lazarus to its default configuration.


I would like to install Ubuntu on my home computer

Most people will skip your question because they do not want to be hooked into being a trouble shooter for this type of question, I don't want to be either, but because I want more Linux users out there I will give you advice on what to look for, and you can make your own decision after that.

First off let me say that Linux is just recently making some in roads in the gaming world, but it is not all there yet.  From what I have read you will need to look at Steam for the gaming platform, so before you decide to load Linux on your machine you should go to their website and see if the games you might want to play are available for Linux.  Here is a link to a list:

http://store.steampowered.com/search/?term=&sort_by=_ASC&os=linux&page=1

If you decide that is what you want to do, I would first try running Linux as a VM, you can download and install VirtualBox on your Mac, and build a VM of Linux on that so you can test it out without overwriting your current OS. Here is a link to VirtualBox, as well as instructions on how to create the VM:

https://www.virtualbox.org/

https://www.virtualbox.org/manual/ch01.html

You will need to download an Ubuntu ISO from here:

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

If you decide that you want to install Linux, then you can burn the ISO to a disk, or USB drive and follow the instructions after that, here is a link to how to do the burning:

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

Good luck
Chris


How to run a file with sudo without a password?

Use visudo for a safe editing environment to edit the sudoers file. This script is a wrapper around vi that also does syntax checking when you save the file and won't let you overwrite a valid sudoers file with an invalid one.

Add a line like this:

username ALL= NOPASSWD: /path/to/your/script

The "ALL=" bears some elaboration, it specifies that the permission is granted when the user in question is logged in from any location, locally (console or terminal) or remotely (ssh, etc).


standard partitioning scheme for ubuntu home user

two primary partitions as follows:

1) main, including root, boot and home
   most of the disk used except the space for the swap in (2)
   ext4
   this should be set as bootable and root

2) swap partition
   i've used double the amount of ram for my machine (eg 4GB RAM, swap size 8GB)
   linux swap
   set to swap

Hope that helps


I did some testing and found that I have the same problem. I'm guessing you can't do one-key shortcuts because most keys have a default function (such as num-pad 9 being page-up) and those functions probably overwrite all other user-defined functions. This can be seen if you set a custom shortcut, activated by key-pad 9 (should be seen as Page up (keypad) with num-lock off); when pressed, it will either (seemingly) do nothing or, if your selection is not at the top of the list, it will move it up (i.e. using its default function).

However, you can still use those keys for shortcuts, but you will need to start the combination with something else (such as ctrl, alt, or shift).

Note: the shortcut will not work if you have num-lock enabled (I'm not exactly sure why this is, though... maybe because it conflicts with the normal [i.e. non-num-pad] numbers).


Laptop shuts down even though I just briefly press the power button

Does it do it even with nothing open? If it still does, then I'd say it's more of a hardware related issue rather than a problem with software.

If it does it all the time even with nothing open, it's possible that the physical hardware power button is worn out, and a slight press is getting stuck down, so the computer thinks you're still pressing it even though you're not.

I'd also try to check what setting you have in Settings -> Power -> Suspend and Power Button.
On 18.04, mine is set to suspend when I have the power button pressed, and it behaves just like that, but only when I hold the button down. I believe you have a hardware issue, and highly doubt a worn out graphics card would cause this issue.


Error when installing patched Unity launcher

Installing a package if you don't know the author is a very bad idea as during installation the package has full root access to your machine.

The package provides the virtual package "netbook-launcher", but the installed package "unity" conflicts with "netbook-launcher". So you can't have both installed at the same time.


OP posted:

Problem is solved. Just installed ia23-libs:

sudo apt-get install ia32-libs


How do I download a Windows game on Ubuntu?

The game you linked is on the Windows 10 App Store.  There is no way to use the Windows 10 app store on Ubuntu nor apps from that store on Ubuntu.

There may be a web browser version of this game on the Bloons TD people's Site (NinjaKiwi) that doesn't need the app store to use, but it may not operate on the same "multiplayer" environment as the Windows 10 app does, and it might need you to register a NinjaKiwi account to get it to store progress, though I am not certain of this (I think it might be this link for a standard web browser version of the game but can't check this or the need for an account easily from my phone)


Brother MFC-J825DW on WiFi network receiving print queue but not printing

This site has complete instructions on how to set up any brother printer. Quoting, with some formatting adaptation:

  Installing the driver manually isn't very difficult either, because
  Brother has issued a generic install script for that: the Driver
  Install Tool.

  With that, you can install not only the printer driver, but also (for
  a multifunctional printer) the scanner driver.

  You can use it as follows:

  Go to the download section of the Brother website and look up your printer model.

  For "OS Family" you choose Linux.
  For "OS Version" you select Linux (deb).
  Click the Search button.

  Then click the Driver Install Tool and download
  linux-brprinter-installer.

  Save the downloaded file in the folder Downloads. Don't extract the
  zipped file, but leave it there just as it is. Note: don't use the
  installation how-to on the Brother website, but use the installation
  how-to on my website instead (see below)!
  Launch a terminal window.  (You can launch a terminal window like this: Click)
  Now copy/paste the following command into the terminal, in order to unzip the downloaded file:

cd Downloads && gunzip -v ~/Downloads/linux-brprinter*

  Press Enter.
  Use copy/paste to transfer the following line to the terminal:

sudo bash ~/Downloads/linux-brprinter*

  Press Enter. Type your password when prompted; this will
  remain entirely invisible, not even asterisks will show, which is
  normal.
  Follow the steps that the installer script presents you. When asked for the printer model name, type it and press Enter.

  An example is best: for a Brother DCP-7065DN you type:

DCP-7065DN

  Note: is there at the end of the model name a letter between
  brackets? Then you probably have to omit that letter (including the
  brackets).

  Example: for the Brother MFC-L9550CDW(T) it becomes:

MFC-L9550CDW

  At the question about the Device URI, you answer N for a USB
  printer and Y for a network printer.

  For a network printer, you select in the next question the last
  option: (A): Auto. For that, you type the number of that option and
  you press Enter.
  Reboot your computer.
  Done! Your printer should work fine now, including the scanner part (when present).


If one ever encounters this issue, it is actually not an error but simply a message. You can move down directories by using ls (hdX,gptY)/ which should show up your boot information. However, in  my case moving to Boot did not show grub.

Solution:

I bypassed the command line by using CTRL+ALT+Delete and moving to Boot Load priority using F12(for my brand) and finally moving on to boot. There was then an auto recovery ran that helped fix the issue finally letting me boot.


Slow wifi in Ubuntu 18.04 with Realtek RTL8723DE device

It looks like you have the "low signal" problem with one antenna Realtek devices.

Also it seems that you tried to fix it, but using a wrong fix. You have some crap in /etc/modprobe.d/rtl8723be.conf.

So run in a terminal:

sudo rm /etc/modprobe.d/rtl8723be.conf
sudo tee /etc/modprobe.d/rtl8723de.conf <<< "options rtl8723de ant_sel=1"

and reboot.

Be careful and don't make typos. It is better to copy and paste the commands. You were using wrong quotes in a previous command.

“ is not the same as ".


I'm assuming you are referring to Gnome Terminal.

No - there isnt a Copy and Paste mechanism using just the keyboard - you can use various short-cuts to paste (depending upon your Ubuntu version) i.e. CTRL+ Shift + Ins , Shift + Ins or CTRL+ Shift + V to paste text in the clipboard.

However, if you type screen you enter the terminal emulator which allows you to select, copy and paste text using just the keyboard.

To select (copy):

Press Ctrl + A together followed by Escape.  This puts you into Copy mode.
Using the cursor keys move to the beginning of the text you want to copy.  Press Enter.  Now move to the end of the text to be copied.  Press Enter.

To Paste:

Press Ctrl + A together followed by ].


If you created /storage during the installation, it is probably a partition but for your purposes, you can think of it as a directory.

If you are trying to make a place that only you can store stuff to, you need to:

find out your user name
change the owner of the directory to your user
change the permissions so that only you have access

So first, this will show you your user name:

whoami

You should see something like "zeedo" or whatever you go by locally.

Now, let's find out who owns the directory in question:

ls -ld /storage

I'm guessing the results look something like this:

drwxrwxrwx   2 root root  4096 Jul 18 20:50 storage/

If that's the case, let's change the owner like this:

sudo chown -R zeedo /storage

The "-R" changes it for all files and folders inside the storage directory.

Now if you run:

ls -ld /storage

you should see something more like this:

 drwxrwxrwx   2 zeedo root  4096 Jul 18 20:50 storage/

If the last three letters of the "drwxrwxrwx" above are "rwx", you don't want that. It means that everyone one that computer can view/edit those files/directories. So let's change that:

sudo chmod -R 700 /storage

If you now do this one more time:

ls -ld /storage

You should see something like this:

drwx------   2 zeedo root  4096 Jul 18 20:50 storage/

Which is what you want.
In general, you should really create private directories in your home directory like this:

mkdir ~/storage

The ~ is the same as /home/zeedo


I think I finally figured this out...

The NVMe storage used in the newer MacBooks isn't supported in the versions of the Linux kernel currently used in most distributions. This support wasn't added until kernel version 5.1.5, which won't be packaged with Ubuntu until version 19.10 (currently in beta using kernel version 5.2.0).

Right now the options seem to be:

Make your own bootable image of your distro of choice using a kernel version of 5.1.5 or higher
Used a pre-patched version of a distro (example)
Wait for 19.10


12.04 screen resolution keeps changing after reboot

As a workaround for now until someone comes up with a better solution you could set the command:

xrandr -s 1152x648

to run as a startup application.


Assuming you downloaded the source code, (if you didn't please do) run the following commands:

cd /path/to/where/you/downloaded/ruby
tar -zxf ruby-2.2.2.tar.gz
cd ruby-2.2.2
./configure
make
sudo make install

And you should have ruby installed!


Server doesn't want to connect to the wired network

Some DHCP servers can be configured only to grant leases to machines with registered MAC addresses. Check your router configuration for this kind of restriction and, if necessary, register your server's MAC address.


How to get second and third GPU working on 18.04

Have you tried running lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {} like explained by knb?

It would add some useful output to further diagnose the issue.


If you copy files from the terminal I have written a script which works for me on Ubuntu and Mac OS X.  Example usage if the script is in your $PATH:

cp -r /src /dst ; say_job_done.sh

It must all be typed on one line so that it will execute when the files are finished being copied.  If you want copy progress you can use a program like rsync(1).

say_job_done.sh requires espeak package to be installed in Ubuntu 16.04.

sudo apt-get install espeak

Alternatively

Without my script you can call espeak(1) directly.  Note: below syntax uses a Here String in bash(1).

cp -r /src /dst ; espeak <<< "Jobb done."


kubuntu - DrRacket 5.1.3 doesn't work well

When searching with the error message

Gdk: IA__gdk_window_thaw_updates: assertion
`impl_window->update_freeze_count > 0' failed

A hit: http://racket-lang.org/irc-logs/20111018.txt

14:52 mithos28: There is a known bug with gnome 3.
14:52 mithos28: It is fixed in the nightlies, and will be in the release coming out soon.

Versions
Ubuntu packages: http://packages.ubuntu.com/search?keywords=racket&searchon=names&suite=all&section=all
The Precise has: 5.1.3
The latest Ubuntu packages version is: 5.3.1 (Raring)
--Edit--
Racket team PPA: https://launchpad.net/~plt
There are:
Racket
Racket Nightly
Racket Textual
--Edit--
Ubuntu Bug reports
https://launchpad.net/ubuntu/+source/racket/+bugs
--> https://bugs.launchpad.net/ubuntu/+source/racket/+bug/1065997

Menus not shown in DrRacket GUI
DistroRelease: Ubuntu 12.04
Package: racket 5.1.3+dfsg1-1


How do I find and delete duplicate music tracks?

You can use fdupes like the answer for question »How to find and delete duplicate files« suggested. Let me give an example:

mkdir -p "Music/Prefuse 73/One Word Extinguisher/"
dd if=/dev/urandom of=Music/Prefuse\ 73/One\ Word\ Extinguisher/07.Detchibe.mp3 bs=1023 count=2048
  2048+0 records in
  2048+0 records out
  2095104 bytes (2.1 MB) copied, 0.379806 s, 5.5 MB/s
cp Music/Prefuse\ 73/One\ Word\ Extinguisher/07.Detchibe.mp3 Music/Prefuse\ 73/One\ Word\ Extinguisher/"07 - Detchibe.mp3"
fdupes -rd .
  [1] ./Music/Prefuse 73/One Word Extinguisher/07.Detchibe.mp3
  [2] ./Music/Prefuse 73/One Word Extinguisher/07 - Detchibe.mp3

  Set 1 of 1, preserve files [1 - 2, all]:

First I created the directory like in your example. The I made a file from random data and copied its contents to another files. When I run fdupes -rd the software finds the two exact files and asks which one to delete.

If you have lots of files, you can use the option -1. fdupes will print all duplicates on a single line. You can process them with xargs and other shell features.


To start :

sudo openvpn --config client.ovpn --daemon --writepid /var/run/openvpn-MyTunnel.pid

To kill :

sudo kill $(cat /var/run/openvpn-MyTunnel.pid); sudo rm /var/run/openvpn-MyTunnel.pid

Openvpn has also a management interface that you can use to remote control  the openvpn daemon (see the --management option in   openvpn manpage).


How to add a script to /etc/profile.d so the script runs on every login?

Just drop the script in /etc/profile.d/. You can use mv: sudo mv ~/script.sh /etc/profile.d/
** Make sure the file ends with .sh


How to restore accidentally deleted /etc/bash.bashrc, without reinstalling Ubuntu?

Either restore that single file from bash's deb package:

$ apt-get download bash
$ dpkg-deb --fsys-tarfile bash_*.deb > /tmp/bash_pkg.tar
$ tar -Oxf /tmp/bash_pkg.tar ./etc/bash.bashrc | sudo tee /etc/bash.bashrc

Or restore all missing files of bash:

sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall bash

Read more

There is also a file which might be helpful to you:

/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc

however I believe that this file is belong to adduser package.


Settings schema 'gnome.org.desktop.a11y.magnifier' does not contain a key named 'invert-lightness' Error when using GNOME

I had the same problem. What solved the problem was to reinstall the gsettings schemas:

sudo apt-get install gsettings-desktop-schemas


It may be worth a shot to upgrade your kernel to 3.17 as a user reported he was then able to get his dual monitors fixed with his T440P which also used Intel graphics.


Typing British pound sign Ubuntu 13.10 - Spanish keyboard layout

Go into Settings then Keyboard. On the typing tab click "Layout Settings" at the bottom. Now on the layouts tab click "Options".

Select "Adding currency signs to certain keys"

If the option is not here you may have to look into setting up the keyboard 3rd level.


Software Centre will not download software

Software Center not downloading .

Failed to download package files.

Check your Internet connection..

Run the following commands (saves a backup of the old lists and creates a new lists folder) and the BADSIG error does not occur:

cd /var/lib/apt .
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update


Why does my unity music lens not play anything?

Have installed Ubuntu Restricted Extras to enable multimedia support?

If not open Ubuntu Software Centre and search for ubuntu restricted extras.
Then click install (where it says remove in screenshot below).
You may need to use Tab & Enter to accept the license when it asks.


Is there a developers image of 16.04 LTS?

No, there is no such thing. We have only 1 system to cover all (even the server version nowadays is the same core as a desktop version; all that one lacks is a desktop).

But all you need to do is install the libraries you need and that could be done with 1 apt install command if you got a list of them (as you already shown in your question).


How to configure Thunderbird, remove Thunderbird from global appmenu e-mail icon

Let's start with remove Thunderbird from dash main menu and insert Evolution instead.

You have to set Evolution as default Email client:
go to System Settings / System info.
Click on Default Applications and select Evolution as default E-mail client

When you next open the dash menu you will see the Evolution icon.

For a calender integration into Thunderbird install the lightning package:

sudo apt-get install xul-ext-lightning


Unable to boot OS - No boot device found. Press any key to reboot machine

Outdated microcode of CPU was causing the problem. Reinstalled Windows and applied the update. Previous version: 20090330 Update version: 20180425.


New Android Studio IDE not supported in Linux?

The problem here is not related to your operating system, so the "YOUR OPERATING SYSTEM IS NOT SUPPORTED" error message is completely misleading.

This seems to be only a problem in Firefox but not in Chromium and Chrome. I was able to download Android Studio in Chromium and Chrome but not Firefox. The easiest solution is to use Chromium or Chrome.

This problem has been reported before in Stack Overflow and the solution suggested there is to use Chrome.

Alternatively, the URL for downloading the latest version of Android Studio as of writing is https://dl.google.com/dl/android/studio/ide-zips/2.2.0.12/android-studio-ide-145.3276617-linux.zip. So, open a terminal using Ctrl+Alt+T  and then download the .zip file:

wget https://dl.google.com/dl/android/studio/ide-zips/2.2.0.12/android-studio-ide-145.3276617-linux.zip

Then, follow the installation instructions at https://developer.android.com/studio/install.html to install Android Studio.

Update: It looks like the Android Studio website has been fixed for some Firefox users and I can now see the download button in my own Firefox (version 49.0). I would like to think this question has brought attention to what I perceive as a discriminatory practice by Google/Android.


Can Ubuntu on Nexus 7 run desktop Ubuntu programs?

If you mean Ubuntu for Tablets, I think no. As it said here for hardware requirements a 7-inch tablet can’t provide a full desktop convergence.


Where are read permission limits to guest user stored?

The package used to handle the restricted permissions for the guest session is AppArmor.

  AppArmor is a Linux Security Module implementation of name-based mandatory access controls. AppArmor confines individual programs to a set of listed files and posix 1003.1e draft capabilities.

(From the Ubuntu Server Guide)

It utilizes so called "profiles" to permit/deny access to files/directories, the network,...

Those profiles are stored under etc/apparmor.d/, the one responsible for the guest user in newer releases (after the switch to lightdm as display manager) is  lightdm-guest-session. Everything within the guest session is handled by /usr/lib/lightdm/lightdm/lightdm-guest-session-wrapper, which is a binary file.


How would you configure byobu as a login shell?

Byobu is not a shell, per se.  It's a program you run within your shell.  The utilities, byobu-enable and byobu-disable, put a line at the end of your ~/.profile that launches byobu (if necessary) when you spawn a new login.  The wrapper script there does some sanity checking for you and prevents recursion.

Now, that said, I'll tell you how you could do what you're asking to do, but I strongly advise against it.  You may well end up in some nasty recursion or infinite loop.  Beware!

Set /usr/bin/screen as your login shell in the last field in
/etc/passwd.
Put this in your ~/.screenrc:

source /usr/share/byobu/profiles/byoburc


Use your command with the full path, like

/bin/ls
/bin/dir
/bin/rm
/bin/mv
/usr/bin/vi


No Sound on Firefox or Chrome, Kubuntu 16.04

Thanks to Karsus I was able to track down the information I needed!!! When you install pavucontrol:

apt install pavucontrol

then you can pinpoint applications and see/control what sound output devices they think they should be using.

I had to manually set my browsers to use my headset for output.  Sweet!  Thank you Karsus.


Does restoring dd image override whole disk?

What command did you use ?

When you did it like (example here) :

dd if=/dev/sdb(external harddisk) of=/dev/sda(notebook)

Then you have overriden your notebook.

When /boot partition is located e.g. in sda3 and you have not-of-use-files in sda4 (sda1 and sda2 are swap) - then you could make

dd if=/dev/sdb of=/dev/sda4

But you have probably to edit the boot-files in sda3 for to fix them to sdb written in sda4.

Now anything is overriden - and then only testdisk can help to restore the files,
who have been there before dd. - but his works only with journaling filesystems.

Testdisk or photorec take very long time for to recover - you can do that overnight.

http://www.debian-administration.org/articles/420
http://www.linux-magazine.com/Online/Features/Rescuing-Lost-Files-with-TestDisk-and-PhotoRec


You can either:

a) Upgrade from 14.04 LTS, although you should wait for the offficial upgrade offer made by the software updater (somewhere in July) since the Canonical team releases that simple update in July, once everything's been checked. Alternatively, you can force upgrade right away.

Here's how: http://www.tecmint.com/upgrade-ubuntu-14-04-to-16-04/

or

b) (recommended): Do a clean install (by booting and erase disk and install Ubuntu 16.04 LTS throught the installation disk/USB), which makes things less likely to go wrong (kernel upgrades, other applications support, since it's officially not validated for upgrade). Especially if you don't have any data as of yet.

Here's how: http://www.tecmint.com/upgrade-ubuntu-14-04-to-16-04/

Either way, backup your important files.


Which flavor of Ubuntu is best for P4 without graphics card?

Try using xubuntu or lubuntu. They'll work pretty fine considering the amount of RAM you've got.


How to execute a .sh file when the session starts?


Replace content of the file /etc/apt/sources.list.d/sublime-text.list with the single line deb https://download.sublimetext.com/ apt/stable/ - just execute to do this:

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Next do apt update & upgrade:

sudo apt update
sudo apt upgrade

And finally install Apache:

sudo apt install apache2


Remap ¤ and $ on norwegian keyboard Ubuntu 17.10

You can edit the latin symbols file.

--- /usr/share/X11/xkb/symbols/latin.orig
+++ /usr/share/X11/xkb/symbols/latin
@@ -62,15 +62,15 @@
 xkb_symbols "type2" {

     include "latin"

     key <AE01> { [         1,     exclam,   exclamdown,  onesuperior ] };
     key <AE02> { [         2,   quotedbl,           at,  twosuperior ] };
     key <AE03> { [         3, numbersign,     sterling, threesuperior] };
-    key <AE04> { [         4,   currency,       dollar,   onequarter ] };
+    key <AE04> { [         4,     dollar,     currency,   onequarter ] };
     key <AE05> { [         5,    percent,      onehalf,         cent ] };
     key <AE06> { [         6,  ampersand,          yen,  fiveeighths ] };
     key <AE07> { [         7,      slash,    braceleft,     division ] };
     key <AE08> { [         8,  parenleft,  bracketleft, guillemotleft] };
     key <AE09> { [         9, parenright, bracketright, guillemotright] };
     key <AE10> { [         0,      equal,   braceright,       degree ] };


How to recover partition that is lost while installing ubuntu

If you selected "use full disk" during install, then, sadly, there is no way to retrieve that data. It will be completely lost. I hope you made backups. Good luck!


ASUS E200HA cannot recognize the touch panel....15.10

The touchpanel on my E200HA works fine for me with xubuntu 16.04.1

As far as I can understand the E200HA uses some very new hardware that is only supported by the most recent kernels.


The repository sonar-pkg does not have a Release file

There is no problem

When you run sudo apt install sonar you will see this message:

Install these packages without verification? [y/N]

Just press y and sonar will be installed :)


Issue starting a demon process at startup in Ubuntu

And now, the Ubuntu answer.

You are using Ubuntu Linux. You already have either upstart or systemd (the former in this particular case). Do not begin by writing System 5 rc scripts.

/etc/rc.local is a double backwards compatibility mechanism, because it is a backwards compatibility mechanism for a mechanism that was itself a compatibility mechanism in System 5 rc. And as shown by the mess that https://askubuntu.com/a/618138/43344 addresses, using /etc/rc.local can go horribly wrong.  Do not begin by using rc.local.

upstart and version 14

So write an upstart job file.

It would look something like this:

# /etc/init/dtnd.conf

description "DTN2 daemon"

start on filesystem and static-network-up
stop on runlevel [016]

env DAEMON='/usr/sbin/dtnd'

respawn

exec /usr/sbin/dtnd -c /etc/dtn/dtn.conf -o /var/log/dtn/log

Adjust for your log and configuration set up; and use as an upstart job, in the usual manner, with initctl start, initctl stop, and so forth.

Do not use the -d option.  The program is already "daemonized" by dint of being run under a service manager.

systemd and version 15

So write a systemd service unit.

The first rule for migrating to systemd applies … yet again.  Someone has already done this.  For an example, see dtnd.service written by a pseudonymous person in 2012.

Again: Do not use the -d option.  The program is already "daemonized" by dint of being run under a service manager.

Also note that you don't need the -o option.  Log to standard output/standard error in the ordinary way, and systemd will write it to the journal.

Use as a systemd service, in the usual manner, with systemctl start, systemctl stop, systemctl status, and so forth.  In particular, use systemctl enable to ensure that the service is auto-started at system bootstrap.


Snap application doesn't see files from another partition

Snaps are typically confined. By default snaps can access nothing but their own writable areas, but they can gain permissions by way of interfaces. There are two interfaces that provide the ability to access files beyond the default: the home interface, and the removable-media interface. I assume KeePassXC uses the home interface, which is how you can access ~/Documents. Perhaps it even uses the removable-media interface, but that only covers stuff mounted into /media or /mnt. If your other partitions are mounted elsewhere, the snap will not have permission to follow the symlinks.

The ways to make this work, ordered by difficulty:

Mount the partitions into your home directory rather than symlinking them.
Mount the partitions into /media and ensure KeePassXC uses the removable-media interface. This may be an upstream change, but a small one.
Change KeePassXC into a classic snap, thereby making it no longer strictly confined. This is a larger change and upstream may not be interested in it.

Update: The KeyPassXC snapcraft.yaml is here. Looks like it already has the removable-media interface. All you need to do to follow (2) is to connect it (it's not automatically connected):

$ sudo snap connect keepassxc:removable-media


Slow connection with 14.04 in a WIFI network

I believe the STA driver is incorrect for your 14e4:4727 device. Let's remove it:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe -r wl
sudo modprobe brcmsmac

Then, please reboot. Is performance improved all around?


Redirect requests to my external IP/port to a different external IP/port?

Problem solved:

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport port -j DNAT --to-destination ip:port
iptables -t nat -A POSTROUTING -j MASQUERADE

Where ip and port are the target server I want to redirect the current server port to.


3d acceleration for acer travelmate 5740z

That is the expected behaviour. See also the message printed by glxgears:

Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.

glxgears is not a benchmark, but a tool for checking whether 3D acceleration works properly. It looks like it's working as there are no other errors. To test your graphics capabilities, go watch a full-screen HD video.


If the filename is entirely capital letters except for the .mp4 part, you can use find's -regex option:

find ~/place -regex '.*/[A-Z]*.mp4' -exec mv -t ~/someplace {} +

If the mp4 is also uppercase, then modify accordingly. Using mv -t ~/someplace lets you use -exec ... {} + form, so that multiple files are moved together. The .*/ matches the path before the filename.


Font style settings not taking effect in KDE Plasma

I have fixed this issue. There was a .gtkrc-2.0 file in my home folder. On viewing the contents I have found that the font size was set to 11. I had to delete that file. After re-login font size is working perfectly.


How to really-really rescan media library in Banshee?

First, you must erase the file that save the library information, this file is:

~/.config/banshee-1/banshee.db

After that, you can scan media in Banshee and you will have all the new metadata.


How do I install drivers on an Alienware m11x?

Looking up the Alienware M11x's specs on Dell's website, it appears that you are running with an integrated/discrete setup composed of Intel Integrated Graphics and the nVidia GeForce GT 335M.1
From Dell's website:

With the Alienware™ M11x gaming laptop, you can play anything, anywhere. While weighing in at less than 4.51 pounds, the M11x packs enough power to handle the latest games. It truly redefines the gaming capabilities of sub-15" laptops.You can also maximize battery life by switching to integrated graphics or switch to the 1GB NVIDIA® GeForce® GT 335M graphics for an intense gaming experience.

This kind of setup comes with nVidia Optimus technology, which, sadly, only runs on Windows 7.

However, all hope may not be lost. There is an open-source alternative: Bumblebee. It is available as a PPA.

For detailed information on how to get nVidia Optimus cards working on Ubuntu through Bumblebee, see How well do laptops with Nvidia Optimus work?

Once you install Bumblebee, you should restart. After you've rebooted, you will be able to run programs on the nVidia card with the terminal command optirun.

Test that it's working properly by opening a new terminal window with Ctrl+Alt+T and entering

optirun glxspheres

The above command will start glxspheres, a program which consists of a ton of 3D spheres. Additionally, if you look back at the terminal, you should see the word nvidia in the GL vendor string. Congratulations, Bumblebee's installed correctly and you can now use your nVidia card for graphics-intensive programs such as games.

I personally have a laptop with the nVidia GeForce GT 540M and Bumblebee effectively replicates the behavior of Optimus. An added bonus is that, like Optimus, Bumblebee turns off your nVidia card when you're not using it, so you'll get a better battery life than you would without Bumblebee.

1 Whatever you do, do not install the proprietary nVidia drivers from nvidia.com! This may totally mess up Ubuntu!


Replace the single quotes around Microsoft Internet Explorer with double quotes and insert a space character before file.js as you mentioned in your comment that you already did. Also use a backslash character to escape the $ and . characters by putting a backslash in front of them where they occur in the regex.

sed -i 's/if (\$\.browser\.msie)/if (\$\.browser={ msie: ( navigator\.appName == "Microsoft Internet Explorer") ? true : false })/g' file.js


http://ubuntuforums.org/showthread.php?t=1600498 there are wifi drivers ;)


Add user to group which can access network interfaces

This worked for me:

sudo gpasswd -a yourusername netdev

Source


Error: No candidate version found for kvm

I had a similar issue. Just manually create the required group and then add yourself to the group as per the instructions in the manual.

sudo addgroup libvirtd
sudo adduser `id -un` libvirtd


I'm still a bit of an Ubuntu-Core noob, so please forgive any errant assumptions expressed here, but I was able to get the snapcraft tutorial to work on an Ubuntu Core 18 system using the "classic" snap on an RBP 3B+ running ubuntu-core-18-armhf+raspi3.img.xz.

After the maiden Core boot on the pi and completing the network configuration: I logged in with my Ubuntu SSO and gave the fresh install a few minutes to update with the Ubuntu mother ship.  After it rebooted, I logged back in and installed the classic snap from the edge channel:

sudo snap install --channel=edge classic --devmode

Then I ran the classic snap.

lh@localhost:~$ sudo classic
(classic)lh@localhost:~$

The first time I ran it a ton of stuff happened changing my env substantially.  Afterwards I received a courtesy message saying:

  This version of classic was build for Ubuntu Core 16. You appear to be
  using a different version of Ubuntu Core. You can install different
  versions of the classic environment, e.g. for Ubuntu Core 18:

I then exited classic and refreshed the snap from Core using the 18/edge channel.  It's worth noting that installing the classic snap fresh from the 18/edge channel did not work for me.  The reasons for that aren't so germane to this topic though.

(classic)lh@localhost:~$ exit
lh@localhost:~$ sudo snap refresh --channel=18/edge --devmode classic

Once refreshed I logged back into classic and was happy to find I could:

lh@localhost:~$ sudo classic
(classic)lh@localhost:~$ sudo apt update
(classic)lh@localhost:~$ sudo apt install snapcraft

After all the "apt-ing output", I could follow the snapcraft tutorial pretty much line for line.  The only thing I did differently was after the snap built, I exited classic and installed the hello snap in my Core environment.  It installed fine, but didn't run as my PATH wasn't set correctly.  I found the binary in /snap/hello/current/bin, it ran fine using the FQPN.  :)


Why Dolphin refuses to start in Kubuntu 15.10?

Problem #1 Dolphin doesn't find it's start-folder (solved)

Goto the dolphin-menu-bar choose "Adjustments" -> Start

lookup -> Start-Folder

What adress is inserted there?

pick "/home/USERNAME"¹ (without exclamation marks) or browse to it.

What was exactely right, was starting the program from commandline via Konsole. This gives hints. You can easily switch to reporting-language like this:

Lang=C dolphin

(this is valid for any program-then it returns the output in english and you don't need to translate it for publication). It's always prefered to have the output of the command in full.

(1) USERNAME must replaced with the real username -> Type in Terminal
whoami – to make sure it fits.

Problem #2 Dolphin can't be started from the menu

As you say, you can start Dolphin from Konsole - than the same error might appear in the .desktop file. This files resides in /usr/share/applications/ . As normal user you can read it, but not change anything. This would need kdesudo kate to edit & correct. I would recommend you to copy the current text-content & use paste.ubuntu.com to link this then to here.

This allows us to see if the contents are faulty. One of the rules of error-correction is doing a proper error-analysis (especially via distance).

A personal tip (that helped me lot): before you make any changes to the file, make a screencopy beforehand (KSnapshot). Such helps most times, if an error is worth qualifying for a bugreport or if you have to revert it to the previous state.


Most virtual machine softwares emulate hardware with the exception of the cpu. Some such as Vmware Player allow you to connect usb devices. You can install VMware Tools to get some graphics support for gaming within a VM, but it won't be stellar, so use low resolutions, and put the VM on the fastest storage device you have.

Alternatively Parrallels Workstation Extreme is a VM program that allows the connection of pci-e devices to a vm, including graphics cards, however you will then need 2 physical cards. 1 for the host, and 1 for the vm. It's also extremely expensive.

If you have a non UEFI version of windows such as XP or Windows 7 you can use an outdated version of Ubuntu with WUBI to install Ubuntu into a file on your windows partition. The ubuntu install will boot as a native Operating system, but no paritioning is needed, and you can uninstall/install it from inside windows.


HP Pavilion dv6 is not booting with switchable graphics

AMD doesn't support switchable graphics on linux: http://wiki.cchtml.com/index.php/Features. There is an independent utility called vga_switcheroo that allows switching between integrated and discrete GPUs but it requires some fiddling and a restart of Xorg for the switch to take place.


Is WUBI vulnerable to GOZeus and Cryptolocker etc?

Wubi boots Ubuntu. So with regard to viruses there is no difference between Wubi and running a normal dual boot with Ubuntu/Windows. You are not going to get infected while running Ubuntu using Wubi.

Of course if your Windows is already infected then every time you boot Windows there is a risk it encrypts the Wubi root.disk (the virtual disk Wubi uses) or other files required to boot Wubi, in which case you'd no longer be able to boot Ubuntu anymore. This wouldn't happen on a normal dual boot.

The answer is to make sure your Windows is clean. And backup your data.

The last item, backing up your data is a no-brainer that you should do anyway since hardware failure and a malicious virus encrypting your data may have the same net result: you won't have access to your data.


Move certain subfolders to another folder

Suppose we have this structure:

$ mkdir 1dir 2dir 6dir 6anotherdir 1dir/666dir ../targetdir
$ touch 6file somefile 1dir/a 2dir/b 6dir/c 1dir/666dir/d
$ tree -F . ../targetdir
.
├── 1dir/
│   ├── 666dir/
│   │   └── d
│   └── a
├── 2dir/
│   └── b
├── 6anotherdir/
├── 6dir/
│   └── c
├── 6file
├── somefile
../targetdir

5 directories, 6 files

Then we can move the directories starting with 6 like this (assuming the targetdir is your target directory we created a level above the current one):

find . -name "6*" -type d -prune -exec mv "{}" ../targetdir/ \;

Result:

tree -F . ../targetdir/
.
├── 1dir/
│   └── a
├── 2dir/
│   └── b
├── 6file
└── somefile
../targetdir/
├── 666dir/
│   └── d
├── 6anotherdir/
└── 6dir/
    └── c

5 directories, 6 files


Download and install proprietary wireless driver

Probably this is late:

However you have 2 options:

Upgrade your Ubuntu to the latest version as you said, which will fix the problem.

or

2.You can go to the driver's website and download the driver (windows version). Using an application called "Ndiswrapper" in Linux. you can make the driver that was built for windows work in Ubuntu.

Here is the full "HOW TO" for the second step:

https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper


How to use mic on bluetooth headset - Kubuntu 19.10

Forgot this post existed
Audio Applet > Audio Settings > Audio > Advanced > Device > Change option
Headset Unit (HSP/HFP) enables the microphone, but decreases sound quality immensly


Install Ubuntu alongside Mac OS X option only gives me a few 30 Gigs

you should be able to create the partitions with the Disk Utility of OSX. After that you can install Ubuntu on the previously created Partition.