Installing Teamviewer Host on Ubuntu 17.04

Teamviewer 12 installed fine on my 17.04. I do have firewall turned off. You might try that as Teamviewer wants to use its own ports or check your firewall ports OUTGOING CONNECTIONS.

  *However, in some situations, for example in a corporate environment with strict security policies, a firewall might be set up to block all unknown outbound connections, and in this case you will need to configure the firewall to allow TeamViewer to connect out through it.

  Blockquote

TCP/UDP Port 5938: TeamViewer prefers to make outbound TCP and UDP connections over port 5938 – this is the primary port it uses, and TeamViewer performs best using this port. Your firewall should allow this at a minimum.
TCP Port 443: If TeamViewer can’t connect over port 5938, it will next try to connect over TCP port 443.
Note: port 443 is also used by our custom modules which are created in the Management Console. If you’re deploying a custom module, eg. through Group Policy, then you need to ensure that port 443 is open on the computers to which you’re deploying. Port 443 is also used for a few other things, including TeamViewer update checks.

TCP Port 443: If TeamViewer can’t connect over port 5938, it will next try to connect over TCP port 443.

Note: port 443 is also used by our custom modules which are created in the Management Console. If you’re deploying a custom module, eg. through Group Policy, then you need to ensure that port 443 is open on the computers to which you’re deploying. Port 443 is also used for a few other things, including TeamViewer update checks.
TCP Port 80: If TeamViewer can’t connect over port 5938 or 443, then it will try on port TCP 80. The connection speed over this port is slower and less reliable than ports 5938 or 443, due to the additional overhead it uses, and there is no automatic reconnection if the connection is temporarily lost. For this reason port 80 is only used as a last resort.
TCP Port 80: If TeamViewer can’t connect over port 5938 or 443, then it will try on port TCP 80. The connection speed over this port is slower and less reliable than ports 5938 or 443, due to the additional overhead it uses, and there is no automatic reconnection if the connection is temporarily lost. For this reason port 80 is only used as a last resort.*


Is it possible to enable sound for Login and Logout?

In Ubuntu, the login sound should be enabled by default, if not, go to System => Preferences => Startup Applications.
There you should find the option GNOME Login Sound. Enable it and you get a sound whenever you login.
If that doesn't work, look here.

For shutdown, this could help.


First remove libsdl2-2.0-0 package by running,

sudo dpkg -r libsdl2-2.0-0

Then try,

sudo apt-get -f install

Now try to install liblove package using aptitude,

sudo apt-get install aptitude
sudo aptitude install liblove


How to reject an EULA when installing packages with apt?

You need to hit OK, then it will present you another screen asking if you accept the EULA. This second screen takes a Yes/No response.


Sublime text as default editor for all text files

The solution provided by Anwesha will work but you will have to manually make sublime text your default opening application for all file formats.

What worked for me in 17.10 was the following:
First what you need is the path to the executable file for sublime text
I have ST 3 and it was at

  /opt/sublime_text/sublime_text

Then open your terminal and use the following commands:

    sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /path/to/executablesublime 100

Then enter:

    sudo update-alternatives --config gnome-text-editor

This will bring up a list of the available alternatives, where the default is marked by an asterisk. If sublime text is not it, then select it now by entering corresponding number. Make sure sublime-text's priority is the highest.

And you're done! Hope this helps :D


I found that this solved my emacs problem

http://ubuntuforums.org/showthread.php?t=1896584


Can I add my keyboard layout to next Ubuntu version?

You can not directly add the layout to the distribution release, you'd need to ask the devs for that. If you are talking about adding it to a disk yoursbeslf, the absolute easiest thing to do is just install it normally


Make Full Install to USB Able to Install Ubuntu

Install Ubuntu using Full install USB*

Nowadays USB drives are becoming large enough that having an extra ISO file is no big deal.

Place your Ubuntu ISO at the root of the USB.

Modify the USB's grub.cfg by adding this menuentry to /etc/grub.d/40_custom and running sudo update-grub:

menuentry "Ubuntu-18.04 64-bit ISO" {
    set root=(hd0,1)
    set isofile="/ubuntu-18.04-desktop-amd64.iso"
        loopback loop $isofile
        linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile splash --
        initrd (loop)/casper/initrd.lz
}

(hd0,1) assumes root is sda1.

You will then have the option to boot the USB drive to a Live installer system.

*Ubuntu 19.10 and later use grub 2.04 which does not boot ISO files. To create a Full install that uses grub 2.02 see How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step NOTE 1 Re: mkusb usb-pack-efi option.


Install Ubuntu with windows 2000 without partitioning the hard drive

No, you will no be able to install Ubuntu with Wubi when Windows is unable to boot. The Wubi installer is an .exe that needs to be run from a properly booted Windows.

But what you can do is to start Ubuntu from the CD choosing the option "Try out Ubuntu". This will boot your computer into a fully functional operating system. You can browse the internet, download files (e.g. a Windows repair CD), and you have full access to your hard drive in order to backup you personal data.

You can not however fix errors from your FAT32 or NTFS file-system. You would need to at least boot a minimal Windows repair disk to have access to chkdsk command.


Moving my folder from Desktop to Downloads (Folder)

You are missing a / and a ../:
tuxedo@cosmos:~/Desktop$ sudo mv myFolder ../Downloads/

The ../ is needed to go 1 directory up and then into Downloads. The way you do it is move it INSIDE Desktop and not to /home/$USER/Downloads/ (that is 1 directory up at the same level as Desktop).
The / makes it look for a directory and will move myFolder into Downloads/.  It can be used as a safeguard for mv: it will error if it can not find the directory.


answered Windows 8/Ubuntu 12.04 dual boot

There won't be any problem.

Go ahead, create partition and install Ubuntu on that partition.

If you have hybrid graphics (intel + nvidia) you may need to install bumblebee. However latest nvidia driver beta now support optimus (not to full extent though).

For removing Ubuntu, yes you need to restore mbr. So Windows dvd will be best option.

Or you can use Boot-Repair or OS-uninstaller.


This is a shot in the dark based on a similar problem reported in February 2013. First if Chrome is running close it. Then open the terminal with Ctrl+Alt+T and type:

chmod -R 0700 ~/.config/google-chrome/PepperFlash
rm -rf ~/.config/google-chrome/PepperFlash

This will cause the working copy of Flash configuration to be deleted and the next time you start Chrome it is rebuilt from defaults. Type exit to close the Terminal.

The other option is to purge and reinstall Chrome which it sounds like you've already done.

When I ran the commands on my Ubuntu 16.04 version the PepperFlash file was removed as expected. However when I started a TV show that uses flash the file wasn't recreated but yet the TV show worked normally. The Pepperflash file must have been leftover from an older version of Chrome which is no longer needed in Chrome version 53.0.2785.92 (64-bit) that I'm using.

Hopefully it works for you but as I prefaced, "it's a shot in the dark".


SOLVED!

Set AMD C1E support to DISABLED in BIOS.


Creating ISO images from already installed Ubuntu Server on commandline

The Ubuntu Community Help Wiki has an article on creating a bootable ISO image from an installed system. It appears to use only command-line tools (no GUI).

There are too many steps to list here, so I'll just include the link:

https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall


Okay try this:

Open up the Ubuntu Software Center and click on Edit < Software Sources

Once that dialog opens click on the pull down menu that says "Download From" and select other, another dialog will open, click "Select Best Server" your computer will run several tests, and then select the best server based on those test.

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

This usually fixes the problem for me.


python 2.7 => ImportError: No module named _io

In addition to standard library and 3rd-party modules Python also has builtin modules.  These are written in C and are linked directly in the Python executable.  You can find out what these are like this:

$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.builtin_module_names
('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections', '_functools', '_heapq', '_io', '_locale', '_md5', '_random', '_sha', '_sha256', '_sha512', '_socket', '_sre', '_struct', '_symtable', '_warnings', '_weakref', 'array', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'errno', 'exceptions', 'fcntl', 'gc', 'grp', 'imp', 'itertools', 'marshal', 'math', 'operator', 'posix', 'pwd', 'select', 'signal', 'spwd', 'strop', 'sys', 'syslog', 'thread', 'time', 'unicodedata', 'xxsubtype', 'zipimport', 'zlib')

virtualenv env works by copying /usr/bin/python2.7 into env/bin/python, and then symlinking all the standard library modules into env/lib/python2.7/*.py.

When you upgrade your system Python, you automatically get the updated standard library in all your virtualenvs (because symlinks!), but you're still using the old copy of the Python executable.  This means you're also using the old versions of the builtin modules.

Some standard library modules depend on builtin modules.  And sometimes Python 2.7.(x+1) standard library depends on builtin modules that got introduced in Python 2.7.(x+1) too. By using an old virtualenv you're in effect trying to use Python 2.7.x with the standard library of Python 2.7.(x+1), and sometimes this breaks.

Re-creating the virtualenv is the correct solution.

(It's probably sufficient to replace the bin/python and bin/python2.7 executables inside the virtualenv, assuming that no new stdlib files appeared in the updated system Python.)


Writing a word into every txt file in a folder

A simple for will do the work:

for i in ./*.txt; do echo 'cat' >> "$i"; done;

This will get a list of all txt files in current directory, loops throughout them and echo cat into them (append to the content). you can change >> to >, to overwrite the files content with cat.

Another thing you can do is using tee to redirect a stream to multiple files.

To append:

echo "cat" | tee -a *.txt

To overwrite:

echo "cat" | tee *.txt


The disk is not bricked - a bricked device is completely non-functional, but the disk shows up in lsblk and has the size listed, so it is functional. You can create a new partition table on it using fdisk or parted if you don't mind command line tools:

sudo parted /dev/sdc mklabel msdos
sudo parted /dev/sdc mkpart primary ext4 0 100%

Also, when dding an image, you usually dd to the disk and not to a partition on it, so dd of=/dev/sdc is usually fine when the input is an ISO or an OS image.


os-prober not finding Windows after replacing Majaro with Ubuntu

I believe you actually have a host of issues that are contributing to your problem.  I'm basing this on the info you posted related to the partition tables you included about the hard drive where Windows currently resides.

Here are some of the potential issues.  Your problem could be one or more of these:

boot-repair must be run from a live USB (the "TryUbuntu" option).  You can't run it from your installed OS.  You must follow these instructions carefully if you wish to try boot-repair to attempt to "rescue" any operating systems that are currently not recognized by GRUB.  Try this first since it might solve the problem.

Otherwise, you will need to reinstall the operating system(s).

GPT/UEFI and MBR/BIOS are not compatible with each other when you dual boot.  Since this is a new (2019) PC, there shouldn't be any operating systems pre-installed in legacy/BIOS mode with an MBR partition scheme, but for some reason, it appears this is how Windows was installed on your system.   Since you are using a modern OS, the best path is to actually make sure that Windows is installed as UEFI.  You would need to format (erase) the Windows hard drive as GPT (NOT MBR) and rerun the Windows installer.  Windows will install correctly as UEFI and automatically set up proper UEFI boot partitions as long as you start the Windows installation when the drive is newly formatted (empty) using the GPT partitioning scheme.
If you don't want to have to reinstall Windows, you will need to install Ubuntu in "Legacy/BIOS" mode, which usually involves altering a setting on your motherboard BIOS to allow booting the flash drive as Legacy/BIOS.  You will still need to format the disk where you intend to install Ubuntu prior to launching the installer.
When installing Ubuntu with Windows already installed, there should be an option to "Install Ubuntu Alongside Windows" - if this option is not listed, there is an issue with your current configuration and it's unlikely that GRUB will be installed correctly with Ubuntu and Windows as options.
The 16 MB MBR partition associated with your Windows installation is also quite small, so it might not be enough space to install GRUB and all of the files needed to boot both Windows and Ubuntu.  To alter this, you would also need to format that hard drive (and reinstall Windows).
It is also possible that you did not properly remove Manjaro before installing Ubuntu.  You should cleanly remove Manjaro and all related files by formatting this disk prior to running the installer, otherwise the installer will see the drive as used space and the installer cannot make changes to your partition table, which might cause the installer to be unable to correctly install a boot partition.

You will probably have to format at least one of your hard drives in order to install any operating system to that drive.   You can easily format hard drives with the included "Disks" application on the liveUSB (the "Try Ubuntu" option, when booting from USB)

There are quite a few guides here on AskUbuntu about how to properly set up a dual boot system.  Windows should always be installed first, since MS/Windows does not respect the existence of other operating systems when installed and overwrites them. Please see: How do I install Ubuntu alongside a pre-installed Windows with UEFI?

The surefire way to correct this is to format both of your hard drives as GPT and install Windows first as UEFI, then install Ubuntu also as UEFI.  While it is an exhaustive solution, it might be faster and easier than the hairpulling involved with trying to figure out all if all the variables above were done correctly the first time.


how "apt-get -f install" recognize problems from "dpkg"?

I am going to try to explain this the best I can.  apt, apt-get, aptitude and dpkg are all tied together.  dpkg is actually the "package manger for Debian", source man dpkg.  If you run dpkg --help you will see the following line at the bottom of the help:
Use 'apt' or 'aptitude' for user-friendly package management.

apt and the others are more user friendly than dpkg is, so they have the ability to read through the unconfigured that is left over from trying to install a .deb package that was downloaded from the internet and not from a repository.  Basically when you see dependency problems - leaving unconfigured means that it has left a "log" of the dependencies that need to be installed.  So, when you run the sudo apt -f install or sudo apt-get -f install
   man apt-get:

   -f, --fix-broken
       Fix; attempt to correct a system with broken dependencies in place.
       This option, when used with install/remove, can omit any packages
       to permit APT to deduce a likely solution. If packages are
       specified, these have to completely correct the problem. The option
       is sometimes necessary when running APT for the first time; APT
       itself does not allow broken package dependencies to exist on a
       system. It is possible that a system's dependency structure can be
       so corrupt as to require manual intervention (which usually means
       using dpkg --remove to eliminate some of the offending packages).
       Use of this option together with -m may produce an error in some
       situations. Configuration Item: APT::Get::Fix-Broken.

it sends a command for apt-get to read that "log" of a broken installation (if exists), download and install the dependencies if they are available.
You can skip this step by actually going into the folder that you downloaded the .deb file into and run:
sudo apt-get install ./discord-0.0.14.deb

that will now tell apt-get to install the .deb package and download all dependencies if available for the package being installed.
I hope this helps!


Is it possible to run Windows 8 apps in Ubuntu?

This is not exactly accurate. Only Metro apps may be written using HTML5/Javascript/CSS in Windows 8. Microsoft is presenting HTML5/Javascript/CSS as one of at least two supported technologies developers may base their Metro apps on. (another is C#-based apps). In both cases Metro apps will run sandboxed in a special environment and will make use of WinRT which is a proprietary set of APIs and the accompanying platform support framework that will be included with Windows 8.

You may always try to run 'classic' Windows applications using Wine, but at least initially, you should not expect any support for running Metro style apps in Ubuntu. Besides, most of these apps will be closer to widgets rather than full-fledged apps and there are several widget solutions for linux.


Is it possible to save output from a command to a file after the command already has been executed?

You appear to have a number of options, but gnome-terminal doesn't support logging to a file by itself.

You can run the script command before your output in order to accomplish this.  See this Launchapd Q&A for more.
You can install and use a different terminal instead of gnome-terminal, which supports logging all output to a file, such as Putty.  There may be others.
You can simply highlight the text output you require, then use CTRL-SHIFT-C to copy the text.


How to upgrade to a later version of Remmina than is in Repository

There is a PPA for stable versions off Remmina's master branch.

Install Remmina 1.1.1 using

sudo add-apt-repository ppa:remmina-ppa-team/remmina-master
sudo apt-get update
sudo apt-get install remmina remmina-plugin-rdp

Now Ubuntu will keep installing any new versions of Remmina which are put into this repo. If you want to prevent remmina from updating, use the following command:

echo remmina hold | sudo dpkg --set-selections


Given that you say only 3.2.6 is available, it must mean that you are on Ubuntu 10.04, which for the desktop version, will be End of Life in approximately one month.

Ekiga is distributed in the Ubuntu archives, and there are newer versions available on newer versions of Ubuntu. You should upgrade to a newer version of Ubuntu to get them. Version 3.3.7 is available on Ubuntu 12.04 for example.

You can see what version of Ekiga is in what version of Ubuntu, here.


got crouton on USB wanna move all downloaded files go to USB

Its simple.

Open Chromium browser. So to address bar and type Chrome://settings and press enter. (or you can click the three small horizontal bars on the right top > Settings )

Scroll below and click Show advanced options. Scroll below and find the option to change the Downloads location. Change the download location to the required folder.

The user needs to have write access to the folder to save files.

Most Chromebooks have SD card slots. Hence, an SD card can be used as permanent additional storage device. (On my Chromebook the installed SD card protrudes out by only 2-3mm, HP chromebook 14). I use the card as my download folder for browsers.


How do I install lxc 0.9.0 on ubuntu Saucy

I succeeded at this by pursuing the following course of action:

1/ First, removing lxc 1.0. alpha something

$: sudo apt-get purge lxc

2/ Cleanup all dependencies

$: sudo apt-get autoremove

3/ Installing specific version of lxc

$: sudo apt-get install lxc=0.9.0-0ubuntu3.6

4/ and finishing by installing docker again, following these instructions

http://docs.docker.io/en/latest/installation/ubuntulinux/


How can I make the temperature visible in indicator-weather in Lubuntu?

converted comment to answer

There is a report on Launchpad with a similar/if not the same issue.

I would suggest you subscribe to this bug-report to receive updates.

Launchpad Janitor has marked this as affecting multiple users - so you are not alone!


Setup restarts the laptop and then restarts the installation all over and over again?

When it starts to reboot remove the usb as it is still set to boot the usb by default, and is thus booting right back into the installer.


Windows 10 changes UEFI boot order every time

I also faced the same issue that Windows 10 (Education) automatically, on startup, moves the Windows Boot Manager EFI entry to the top again. If I changed it, after restarting with Windows, the next boot skipped Grub and directly booted into Windows. This is how I sovled it:

I would recommend the tool EasyUEFI http://www.easyuefi.com/ to view and change some EFI related settings.

Open the tool and select Manage EFI Boot Option
Take a loot at the exiting entries. The two important ones for me are:

Description:Windows Boot Manager
GPT partition GUID:{505E666C-00CD-4654-BB80-FBD2C6F9F191}
Partition number:2
Partition starting sector:923648
Partition ending sector:1128447
File path:\EFI\Microsoft\Boot\bootmgfw.efi

And:

Description:Ubuntu 16.04
GPT partition GUID:{505E666C-00CD-4654-BB80-FBD2C6F9F191}
Partition number:2
Partition starting sector:923648
Partition ending sector:1128447
File path:\EFI\ubuntu\grubx64.efi

The next step is to make sure that Windows does not use its own bootmgfw.efi file again, but rather grubx64.efi.
To do so, don't move an Ubuntu EFI entry to the top again (i.e. that's the problem we have), but just set the file path for the Windows Boot Manager to \EFI\ubuntu\grubx64.efi.
You can also do this from the administrator command line:

Bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

Now, Windows should not change the EFI settings anymore and on every boot, GRUB is the default.
As GRUB ideally already identified your Windows OS, it also contains its value in the grub settings.


What is the difference between using pip from the deadsnakes or apt install python-pip

Depending what apt install python-pip does. Hopefully there is no difference because PIP just uses the Python as the interpreter to install Python packages depending on the Python installation path. You can use it in virtual envs or installing packages to the global system.


How to upgrade from 11.10 to 12.04 LTS without update manager?

You can add the repositories of the 12.04 version in the /etc/apt/sources.list and with the help of apt-get or aptitude in a console window try to update it.


Fixed!

Ran sudo apt-get install pavucontrol then ran pavucontrol in the terminal and found out that Mozilla Firefox was silenced!

Initially when I started the program, Firefox wasn't on the pavucontrol Playback tab, after checking Audio and Video configurations and then going back to Pavucontrol, it was there and I was able to set Silence to 0!


Filter out html tag and replace with other html tags using sed

By default, sed uses basic regular expressions.  That means that GNU lets \< match the beginning of a word and \> match the end of a word.  Observe:

$ echo '<B> BBB B' | sed 's/\<B\>/STRONG/g'
<STRONG> BBB STRONG

\<B\> matches the word B which appears twice in the above string.  Because it matches the word B and not the angle brackets, the angle brackets are left unchanged.

If you want to match angle brackets, <>, leave the backslash off:

$ echo '<B> BBB B' | sed 's/<B>/<STRONG>/g'
<STRONG> BBB B

<B> matches open angle bracket followed by B followed by closing angle bracket.  Thus, <B> is replaced with <STRONG> but B is left alone.

Catching both the open and closing tags

$ echo '<B> BBB B </B>' | sed -r 's|<(/)?B>|<\1STRONG>|g'
<STRONG> BBB B </STRONG>

-r is for extended regex but recent versions of GNU sed also support -E as a synonym for -r.  BSD sed uses -E for this and, reportedly, future POSIX standards have adopted -E.  Thus, for compatibility, one may want to use (hat tip @Kos):

$ echo '<B> BBB B </B>' | sed -E 's|<(/)?B>|<\1STRONG>|g'
<STRONG> BBB B </STRONG>


I want to modify the network card name in ubuntu20.04 and add a virtual network card, What is wrong?

By default, the name used in netplan to identify an ethernet interface is expected to be the name presented by the kernel.
If you want to change the name of a device, you need to use a combination of match and set-name, as described in https://netplan.io/reference/#common-properties-for-physical-device-types.
E.g.:
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    mangment_interface:
        match:
          name: ens33
        set-name: mangment_interface
        dhcp4: true
        optional: true

It's a bit unclear what you mean by a "virtual network card".  If you mean a veth interface, there is currently no support for those in netplan as of version 0.100.  However, it is unclear to me why a veth interface (which is internal to the kernel, and attached to no physical links) would be something you would describe as a "provider_interface".  It's possible that what you are after is a vlan, but you don't mention vlan IDs anywhere in your question.
A vlan would look something like:
  vlans:
    provider_interface:
        link: mangment_interface
        addresses: [192.168.95.130/24]
        gateway4: 192.168.95.1
        dhcp4: no
        nameservers:
            addresses: [8.8.8.8,8.8.4.4]


Restarting the driver helps:

Just Ctrl+alt+T, and run:

sudo rmmod psmouse

sudo modprobe psmouse

On a Macbook I think you may need to use "appletouch" instead of psmouse.


Turning on ibus in Ubuntu 16.10—and using it for text emoji?

IBus runs by default on Ubuntu 16.10, so there should be no need to install it or do anything special to make it launch at login. To add IBus input methods, use System Settings -> Text Entry, not IBus Preferences. (If you for some reason still would need to access the latter, you can use the command ibus-setup.

As regards ibus-uniemoji: Download the ZIP archive, unzip it and install it with sudo make install. It should then be available as an input source in Text Entry next time you log in.


Ubuntu Gnome 15.04 white text on white BG in Ubuntu Software Center

I found out an answer myself.
A solution is to install 3rd party themes like Numix, Paper, etc...

It fixed almost entirely this issue.


sudo ln -s /usr/bin/nodejs /usr/bin/node

Is what I did the other way seems to make a broken symlink for me.

This should prove all is working:

file $(which node)
/usr/bin/node: symbolic link to `/usr/bin/nodejs'

(note it doesn't say broken symbolic link)

Unfortunaltly I believe terdon's answer will actually stop the correct answer from working

# Don't do this:
sudo apt-get install node
file $(which node)
/usr/sbin/node: symbolic link to `ax25-node'

apt-cache show node|grep Description-en
Description-en: Amateur Packet Radio Node program (transitional package)

(you want nodejs not Amateur Packet Radio I would think :)  )

Uninstalling that node package should fix that problem

-End of useful info (unless you like ham radio)-

Edit: So the whole problem is that there was a package in Debian called 'node' already, Debian got upset at nodejs for not checking if a command named node wasn't already taken by another package (the ham radio program).  So Debian effectively broke node programs because packages like less that look for a command named 'node'.

If you happen to use the ham radio package then instead of making the symlink you could change the shebang line in the lessc file to #!/usr/bin/env nodejs as  terdon said in the comments below.

Note if you use other npm packages you may have to change a lot of shebang lines so only do this if you really use ham radio :)

Update: Ok so I read yorodm's link a bit more and debian has changed the Ham radio package to https://packages.debian.org/sid/ax25-node Trusty actually uses this!

So if you use ham radio just delete /usr/bin/node which is a symlink to /usr/bin/ax25-node replace it with a node symlink to /usr/bin/nodejs as at the top of this answer, you will need to do this again if you just install ham radio as it overrides.

Now if you want ham radio use 'ax25-node' as the command :D

Bottom line it's easy to use 'node' for nodejs to spite the politics.

Update for the record/archive

This post was mainly for people who had installed the official sudo apt-get install nodejs package in Ubuntu 14.04 (trusty Tahr) which removed compatibility by changing the command 'node' to 'nodejs'.

At the time the actual better solution would have been to install Chris Lea's ppa on launchpad but now he has moved that again to a different location and this is the best (no fussing with symlinks) out of the box solution by Chris Lea:

curl -sL https://deb.nodesource.com/setup | sudo bash -

(Now designed for both Debian and Ubuntu)

References:
https://github.com/joyent/node/wiki/installing-node.js-via-package-manager
https://nodesource.com/blog/chris-lea-joins-forces-with-nodesource

That's what joyent is linking on there website so that's what I'm using :D


DVD shrinking. Problem installing DVD95 Ubuntu 18.04.3 LTS

The package is no longer available in Ubuntu 18.04. Yow will have to download the .deb file and install it.

Step 1: To download the package, open terminal and type

wget http://archive.ubuntu.com/ubuntu/pool/multiverse/d/dvd95/dvd95_1.6p0+git20100528.ef7c-0ubuntu4_amd64.deb

Step 2: Install the downloaded package

sudo dpkg -i dvd95_1.6p0+git20100528.ef7c-0ubuntu4_amd64.deb

Done. Now you have installed dvd95


Chrome suddenly using too much memory, what's wrong?

Press Shift+ESC in Chrome. This should show per-tab (and per-process) information. Is there a single tab that's using an unusual amount of resources?


How to install Xorg 1.18.4 on Ubuntu 18.04 LTS?

I'm sorry but even as being an author of this PPA I do not have a solution.
Downgrading Xorg and patching it may end with difficult long deep dependency resolution.
I tried to install Xenial HWE packages from my PPA on Bionic with no luck.
So there is something wrong inside Unity or GNOME sHell.
You can read my complete opinion on Ubuntu Community (first and second). I cite latter here:

The universal remediation to fix current bug - do not use both GNOME sHell and beloved Unity
and purge them with commands below:
sudo apt-get purge gnome-shell ubuntu-gnome-desktop \
ubuntu-desktop ubuntu-unity-desktop unity-session

sudo apt-get autoremove

but use Cinnamon, KDE, MATE (my favorite) or Xfce instead with packages from my PPA:
#Choose your favorite desktop
#sudo apt-get install cinnamon-desktop
#sudo apt-get install kubuntu-desktop
sudo apt-get install ubuntu-mate-desktop^
#sudo apt-get instal xubuntu-desktop

#Add my PPA
sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
sudo apt-get update
sudo apt-get dist-upgrade

#Reboot and enjoy
sudo reboot

Optionally pin (lock/hold) related packages to prevent their upgrade with:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-xorg-hotkeys
Package: *
Pin: release o=LP-PPA-nrbrtx-xorg-hotkeys
Pin-Priority: 1337
EOF

If you are not satisfied with obtained results - write a letter to Mark Shuttleworth / Xorg / GNOME / all bug-trackers / all IRCs / all LoCos / all treads of Ubuntu-Forums / Bill Gates about your problem and then execute:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:nrbrtx/xorg-hotkeys
sudo rm /etc/apt/preferences.d/pin-xorg-hotkeys

If you would like to complete with installation of MATE DE you can use Mutiny panel layout to avoid some headache :)

The last option - you can try to write PM to the user, suggested to downgrade Xorg to give you complete working instruction.


How do I change my control or alt key to emit a space key event?

You could use xmodmap to remap one of the keys.  First, run xev and press the button you want to remap (e.g. alt).  Make a note of the keycode.  Then map it to space:

xmodmap -e 'keycode 108 = KP_space'

Replace 108 with the keycode you found in xev.  On my keyboard, the right alt is keycode 108.  At this point when you press the right alt, it will result in a space but it is still pressing alt as well.  You need to remove the old map.  In my case, since I modified the Alt_R, when I type xmodmap I see:

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        KP_Space (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

Which shows that KP_Space results in "mod1", which is alt.  To remove KP_Space from mod1 (which will stop your alt button from functioning as an alt button), type

xmodmap -e 'remove mod1 = KP_Space'

You'll have to run the xmodmap commands at login, so you should look into the ways of doing that (e.g. ~/.Xmodmap)


By going to the  Nvidia website, you can pick your card and see what driver version you need. I did this, had a problem with one set of drivers in the repository, found that if I went to an older version then ran apt updates, it took me to the newer version but this time it worked.

I guess the newer one had a bad file that the older one provided?

That might help, sorry can't help more.


extension "GLX" missing on display ":0", raden, 12.04 KDE

Something must have installed the 'nvidia-common' package which enables the NVidia check. Trying to remove that package you are asked to also remove a kubuntu desktop package. This is safe since that package is just a historical remnant and not needed. Once I got this removed, I restarted and everything is fine again.


Starting Ubuntu in VirtualBox shows login screen, but after successful login desktop does not get loaded

It turns out I damaged my /etc/environment or /etc/sudoers file by copy pasting text into it using a text editor. The newlines were windows... so basically my path variable didn't work any more!

I managed to fix it by logging in
then pressing

CTRL+ALT+F1

then setting path manually again
then fixing everything in vi.


Files deleting automatically after 16.04 update

Your file system is dirty. You need to perform a manual fsck. Boot into recovery mode from the GRUB menu. Then choose root. At the prompt, type:

sudo fsck -f /

repeat until there are no more errors. Then type: reboot

Hopefully that should fix your file system, and take care of the problems that you see with deletions. Report back.


Is the Snap Store replaced with Ubuntu Software? Or Why was Snap Store removed from my Ubuntu 20.04 installation?

Right after I posted, I thought about it and tried:
$ snap-store

When I ran that command, the Ubuntu Software app started on my machine.
So I suppose the answer is that Ubuntu Software is now the same thing as Snap Store.
Starting it from the command line is $ snap-store.
However, I see it as an icon as:

That is a little confusing.  Probably just all part of ongoing changes.
Update
Also, notice that if I search for the Ubuntu Software item to see it in Ubuntu Software then I see the following (notice it shows that it is not installed) item which is similar to Ubuntu Software but is named Gnome Software.  This is all a bit confusing.

I also found that we can run another command to get more information:
$ snap info snap-store


How to get on wifi without administrator password

If the wireless is working; that is, a driver is installed, then you should be able to click the Network Manager icon, see your network and connect. If the wireless is not working because it needs to have a driver installed, then you cannot proceed without administrator privileges. The administrator password is required to modify the system and install software, including drivers.


Ubuntu 14.04 Live disk enters low graphics mode, then screen goes black

Eric,
Edit the start menu by pressing 'e' for edit and placing a command line inside it to load the CRT to 800X600 or 600X480 the low graphics mode before your (above mentioned) screen for 'choosing' appears - so that either option will work after selecting them.
Examples:

LOAD CRT = 600 X 480

or

LOAD CRT = 800 X 600

Save that and let it boot those commands, then come to your screen:

Try Ubuntu /
Install Ubuntu

Then select either option - and the monitor should allow you to continue with trying Ubuntu or the Installation process of Ubuntu.


Issue with network access with Ubuntu 14 as VMware Guest

My solution was to upgrade to VMware Player 7. Now it works.


After days of struggling with my connection speed, I finally decide I go down to the port level to investigate. Both my phone and ADSL were going via the same micro-filter. I had a spare phone port and micro-filter available therefore I have seperated the phone and ADSL to have their own independent telephone port, each connected through a micro-filter.

I then phone my provider to made a little fuss - now I am back to the super rocket speed again.

Thanks all for your support.


Recover NTFS partition formatted to Ext4 system and deleted - EaseUs and testdisk failed

It really depends on how much damage the ext4 format did to begin with. If all ext4 does is write a superblock, then your data is probably all there. Problem is there's no entry point into the NTFS format cmd that I know of that says "just write superblock info and don't touch anything else". So what you have to do is cheat.

make a dd image of your hard disk and save it somewhere safe. You'll probably need a extra disk to do this because of the sheer space being used.
format the disk as NTFS
compare the two disks at the block level, the image you made vs the actual disk using the cmp utility.

cmp will tell when the two start to differ. Take that offset and then use dd to use your image as a source and skip ahead N(on the src and dst) where N in the offset cmp gave you and start writing back your data to the freshly formatted NTFS disk.

That's the gist of it. It's of course all about the details being exactly right. I would recommend you get a scratch disk, put a NTFS fs on and some data. Format it as ext4 and use that disks as your "learning disk" to proof your recovery procedure. Once you have that all figured out, do the same thing with your real data.

Alternatively, ship your data off to a data recovery specialist or... call it lost and take to heart the value of a regular backup schedule (carbonite, backblaze etc).


midnight commander freezes on remote file copy over fish/ssh protocol

I use sshfs in midnight commander to copy a lot of files and there a few files where it reliably hangs, usually somewhere in the middle. My guess is that it's due to some magic byte pattern that hangs the connection somehow, maybe some ssh escape sequence that isn't being double escaped.
I've had this issue for many years with many version of mc.

https://midnight-commander.org/ticket/3236 claims it's fixed for 4.8.12 for someone, but it's still there in 4.8.17 for me.


Can I minimize application windows to a taskbar in GNOME 3?

There are some GNOME shell extensions which may help you achieve this goal.

Window List
It displays a list of open windows at the bottom of the screen. You'll be able to minimise and restore windows by clicking on the window names.
Window List Mod
It's a modification of the Window List extension. It displays a list of open windows at the top of the screen and offers a few more customisations.


Kubuntu 13.04 second monitor resolution broken after crash

How about trying to set the resolution using the xrandr command?

Type xrandr into the terminal and see the list of outputs you have.

My guess would be that your outputs are DVI1 and VGA1 (But you will need to check this yourself or gives us the output of xrandr). Once you know, type this in:

xrandr --output DVI1 --mode 1920x1080 --output VGA1 --mode 1920x1080

Let me know how it goes.


/usr/sbin/fanctl: No such file or directory in /etc/network/if-up.d/ubuntu-fan"

The program you mentioned is packaged as ubuntu-fan. It was a dependency of Docker:

$ apt-cache rdepends ubuntu-fan
ubuntu-fan
Reverse Depends:
  docker.io
  docker.io

FAN is an IP over IP tunnel protocol which does network range remapping. This wiki page seems to be related.

This package has the following files:

$ apt-file list ubuntu-fan
ubuntu-fan: /etc/NetworkManager/conf.d/10-ubuntu-fan.conf
ubuntu-fan: /etc/default/ubuntu-fan
ubuntu-fan: /etc/dnsmasq.d/ubuntu-fan
ubuntu-fan: /etc/init.d/ubuntu-fan
ubuntu-fan: /etc/init/ubuntu-fan.conf
ubuntu-fan: /etc/network/if-down.d/ubuntu-fan
ubuntu-fan: /etc/network/if-post-down.d/ubuntu-fan
ubuntu-fan: /etc/network/if-up.d/ubuntu-fan # <<<<<
ubuntu-fan: /lib/systemd/system/ubuntu-fan.service
ubuntu-fan: /usr/lib/ubuntu-fan/fan-net
ubuntu-fan: /usr/sbin/fanatic
ubuntu-fan: /usr/sbin/fanctl
ubuntu-fan: /usr/share/doc/ubuntu-fan/README
ubuntu-fan: /usr/share/doc/ubuntu-fan/changelog.gz
ubuntu-fan: /usr/share/doc/ubuntu-fan/copyright
ubuntu-fan: /usr/share/man/man8/fanatic.8.gz
ubuntu-fan: /usr/share/man/man8/fanctl.8.gz
ubuntu-fan: /var/lib/ubuntu-fan/config/README

The file /etc/network/if-up.d/ubuntu-fan should be installed by default. It may be accidentally removed. You may want to purge this package and reinstall it back.

Its dependencies are listed on packages.ubuntu.com. It seems to be pulled as recommendation for docker.io package. Virtual servers usually have Docker installed.


I believe gedit functions via plugins to highlight and console for different languages.

From a quick google search, I found a gedit bug with this comment:

'in /usr/lib/gedit/plugin choice your plugin

for example gemini.plugin

Change

[Plugin]
Loader = python

by

[Plugin]
Loader = python3

In some plugins it worked for me'


I was able to get a hold of a canonical representative. Below is a direct quote from the representative's email.

  Number of admins in Landscape - there are 5 only in the
  self-service SaaS Landscape. Answer: If you have Ubuntu Advantage, you
  can submit a ticket and ask support to add more admin seats- it could
  be 20, that is not an issue. For on-premise Landscape, the default
  number is 100, so you do not need to ask the support team to add more.
  Is transfer from self-service SaaS Landscape to Ubuntu Advantage possible?  Unfortunately not- it would need to be a new account,
  sorry.

Over the phone I was told that I could buy landscape seats at $25 per year per desktop, without support using a quote from a representative. The $25 seats are still under advantage, so I'm assuming the 50 seat minimum still applies.

I was also told that the licences are tied to the landscape account not the desktops. If you run out of landscape seats using Ubuntu advantage, it would not let you join anymore machines to the administration console, unless you buy more seats.


The point is that when setup as a cron job to run at 2AM, as daily scans should be, the application needs the smarts to decrypt a home folder. Many users now encrypt the home folder or the whole disk. From the login, scanning just ~/.mozilla, ~/.thunderbird, and ~/Downloads (4.1GB) took significant time, maybe an hour, running about 50% CPU on a dual core machine and Ubuntu 18.04. That is not an efficient use of resources when you are logged in trying to get other tasks accomplished.


Configuration and connections for Ardour using QJackCtl

Given hints in the Ardour forum , the answer was the setup on QjackCtr, in particular in the settings, the choice of the interface (changed "(default)" to the CODEC USB audio):

Now through the USB I can hear the Ardour metronome and record instruments.


Please change this

cd/mnt/c/cass

to this

cd /mnt/c/cass

You need to have a space between the command cd and the path argument /mnt/c/cass/


Start up applications in different workspaces

Try gDevilspie

gDevilspie is a graphical front-end for editing the Devilspie configuration file which allows you to run a particular application within a particular way.

Install gdevilspie : sudo apt-get install gdevilspie


OK... I figured it out. Basically you need to follow the instructions in the above linked Ubuntu bug report pertaining to Ubuntu 9.10. Those need to be followed to every last detail. That is you need to make sure that you initialize the bios AND THEN disable bios quick boot.

You also need to ensure that you are using ALSA. I give credit here to Mr. Brooks for drawing attention to this. He suggested using gstreamer-properties to ensure this. That is what I used. The problem is it isn't installed in Lubuntu 10.10 by default. To get it you need to install the gnome-media package from the repositories. Then alt+f2 and run gstreamer-properties. Under default output, select ALSA as the plugin, and default as the device, then press test. If you've done everything in that order, you should be hearing the sweet sweet sound of victory.

Side Note: Along the way I ended up also installing some gstreamer plugins including the gstreamer alsa plugin. So if the above alone doesn't work, go ahead and install that then try gstreamer properties again (after a reboot). Good Hunting!


How do I get a list of running applications by using the command line?

A combination of wmctrl and xprop  offers many possibilities.

Example 1:

running_gui_apps() {

    # loop through all open windows (ids)
    for win_id in $( wmctrl -l | cut -d' ' -f1 ); do

        # test if window is a normal window
        if  $( xprop -id $win_id _NET_WM_WINDOW_TYPE | grep -q _NET_WM_WINDOW_TYPE_NORMAL ) ; then

            echo "$( xprop -id $win_id WM_CLASS | cut -d" " -f4- )"", window id: $win_id"

        fi

    done
}

The output could look in this case similar like this:

"Firefox", window id: 0x032000a9
"Gnome-terminal", window id: 0x03a0000c
"Thunar", window id: 0x03600004
"Geany", window id: 0x03c00003
"Thunar", window id: 0x0360223e
"Mousepad", window id: 0x02c00003
"Mousepad", window id: 0x02c00248
"Xfce4-terminal", window id: 0x03e00004

Example 2:

running_gui_apps() {
    applications=()

    # loop through all open windows (ids)
    for win_id in $( wmctrl -l | cut -d' ' -f1 ); do

        # test if window is a normal window
        if  $( xprop -id $win_id _NET_WM_WINDOW_TYPE | grep -q _NET_WM_WINDOW_TYPE_NORMAL ) ; then

            # filter application name and remove double-quote at beginning and end
            appname=$( xprop -id $win_id WM_CLASS | cut -d" " -f4 )
            appname=${appname#?}
            appname=${appname%?}

            # add to result list
            applications+=( "$appname" )

        fi

    done

    # sort result list and remove duplicates
    readarray -t applications < <(printf '%s\0' "${applications[@]}" | sort -z | xargs -0n1 | uniq)

    printf -- '%s\n' "${applications[@]}"
}

Output example:

Firefox
Geany
Gnome-terminal
Mousepad
Thunar
Xfce4-terminal

You can add the function to your ~/.bashrc or run it from an script file.


How to copy a line in vi and paste it to console?

GPM , "General Purpose Mouse" provides mouse functions in a console, most useful perhaps is cut and paste.

From the man page:

  This package tries to be a useful mouse server for applications
  running
         on the Linux console.  It is based on the "selection" package, and some
         of  its code comes from selection itself. This package is intended as a
         replacement for "selection"  as  a  cut-and-paste  mechanism;  it  also
         provides  additional  facilities.

Additional features are outlined in the "Special commands" section

sudo apt-get install gpm

Generally it works out of the box, at least I have not had to manually configure it.

but a nice overview of how to configure it see http://www.cyberciti.biz/tips/howto-linux-configure-the-mouse-at-a-text-based-terminal-for-copy-and-paste-operation.html

or the man page

http://manpages.ubuntu.com/manpages/vivid/man8/gpm.8.html


To boot Windows in my Hard Disk from grub rescue mode

It seems that your GRUB menu has been destroyed...
Try to do that:

type ls in grub rescue mode to see all directories.
you should see something like this:
(hd0), (hd0,msdos5)...
if you have partitions, try to see which partition is what with
ls (directory)
if you found your linux/ windows partiton, set it as root:
set root=(partition)
then do:
set prefix=(partition)/boot/grub
now type insmode normal
in the end, type normal and reboot your system.

Now your ubuntu/windows should boot and your grub should be repaired.
Note to do not space between, e.g.(hd0, msdos5), or you will get an error!


It is, see https://cloud-images.ubuntu.com/locator/ec2/ for reference depending on what region you are in.


How do I reduce the size of a Ubuntu Virtual Image in VirtualBox?

The linked question addresses increasing the size of a virtual disk.  Big picture, to do this, you give the VBoxManage command to increase the image size, then start the virtual machine, and use gparted or equivalent to increase the partition size.

If you want to decrease the size, you would have to reverse the steps - first shrink the partition inside the VM, then use VBoxManage to decrease the image size (assuming this is possible - I have not tried).  I also do not know what would happen if you gave the VBoxManage parameters that would decrease the size of the file smaller than the partition(s) inside.

There are ways of shrinking the virtualbox file size that are not so dramatic, if that is what your end goal really is. This is called 'compacting' the drive and shrinks the virtualbox file size to only the space that is actually used.

If you plan to do any of this stuff, I strongly advise backing up any important data first.


Can't detect USB camera when connected with 10m cable

USB 1.1/2.0 states that maximum cable length is 5M or about 16' for transmission speeds. It depends on the quality of the cable, shielding, and other factors. I would personally use a cable that's no longer than 3m or about 10', to ensure that you get a high quality image out of your webcam.


Unity and Compiz not working in 16.04 LTS after 20180221 update

Update package lists and packages:

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

Then reinstall all compiz-related stuff with:

sudo apt-get install --reinstall compiz compiz-core compiz-gnome \
compiz-plugins compiz-plugins-default compizconfig-settings-manager \
libcompizconfig0 python-compizconfig

And then reinstall ubuntu-desktop-related stuff:

sudo apt-get install --reinstall a11y-profile-manager-indicator gir1.2-unity-5.0 \
hud libhud2 libaccount-plugin-1.0-0 \
libunity-action-qt1 libunity-control-center1 libunity-core-6.0-9 libunity-misc4 \
libunity-webapps0 libunity-scopes-json-def-desktop \
libunity-gtk2-parser0 libunity-gtk3-parser0 libunity-protocol-private0 \
qml-module-ubuntu-components qml-module-ubuntu-layouts qml-module-ubuntu-onlineaccounts \
qml-module-ubuntu-performancemetrics qml-module-ubuntu-test qml-module-ubuntu-web \
qtdeclarative5-ubuntu-ui-toolkit-plugin qtdeclarative5-unity-action-plugin \
ubuntu-session ubuntu-ui-toolkit-theme unity unity-accessibility-profiles \
unity-lens-applications unity-lens-files unity-lens-music unity-lens-photos \
unity-lens-video unity-schemas unity-scope-calculator unity-scope-chromiumbookmarks \
unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks \
unity-scope-gdrive unity-scope-home unity-scope-manpages unity-scope-openclipart \
unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox \
unity-scope-yelp unity-scope-zotero unity-scopes-master-default unity-scopes-runner \
unity-services unity-webapps-common unity-webapps-qml unity-webapps-service unity-settings-daemon \
libunity-settings-daemon1 unity-control-center unity-control-center-faces \
unity-control-center-signon unity-greeter unity-gtk-module-common unity-gtk3-module

And finally:

sudo apt-get install --reinstall ubuntu-desktop


Compiling PHP from source (an old version) will delete or corrupt my current PHP7? What is the proper way to install both + switch between them?

All security concerns left aside I stumbled upon a great tool which might help you a lot with building and managing multiple php versions in parallel:

phpbrew does a great job with easing the job of configuring php source to your needs and compiling it:

curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew && sudo mv phpbrew /usr/local/bin/phpbrew
phpbrew init
echo '[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc' >> .bashrc
source ~/.phpbrew/bashrc
phpbrew update
phpbrew install --old 5.3.29 +default +mysql +pdo +apxs2

Installation is done to your $HOME directory and you can set a default php version (i.e. /usr/bin/php)

phpbrew switch 7.2

and override your currently used/active php version by setting it temporarily

phpbrew use 5.3.29


Wireless Internet Connection so slow after upgrade to 11.10

Same issue here with network controller: Intel Corporation WiFi Link 5100
Everything was working perfectly with previous versions of Ubuntu but after updating from Natty 11.04 to Oneiric 11.10 the problems with N-Channel started.

The following commands solved the problem.

sudo rmmod iwlagn
sudo modprobe iwlagn 11n_disable=1

Try browsing again and if there is an improvement, make this change permanent by creating an 'options' file:
gksu gedit /etc/modprobe.d/options.conf and add the line

options iwlagn 11n_disable=1

Hope this will help.


Custom configuration settings for Unity launcher in Ubuntu 11.04?

Launcher icons size can be changed if you have compiz config installed. Then open Unity plugin and on the tab there is a slider to set icons size. See this:

Launcher Icons Size

Regarding other question please see this:

Configure Unity launcher


If you do not want to use openjdk, I suggest you remove the openjdk completely. One easy way is to install synaptic which is a nice tool listing all available and installed packages and write in the quick filter openjdk select everything that is installed and remove it.
(You have to wait a bit until it is finished indexing. It takes a lot of time only the first time you run synaptic)

If you want to keep openjdk as well then you should remove only the icedtea-plugin which is the plugin for the browsers. You should also type the command "which java", and from there follow the links which will lead you to the executable. Find the last link to the executable and change that to point to your preffered java. I think the links go like this: "which java"-> /usr/bin/java -> /etc/alternatives/java/-> .

the links from one file to another are shown if you use the command "ls -Alh" or its alias "ll" (that is two L's). if you want to list the first link to the  java executable just write "ll /usr/bin/java".


Aliases: difference between .bash_rc, .bash_aliases and /usr/local/bin

With the first method you are not creating an alias, you are creating a symlink. Symlinks are short for symbolic links:

  Symbolic  links  are files that act as
  pointers to other files. [...] A
  symbolic link is a special type of
  file whose contents are a string that
  is the pathname another file, the file
  to which the link refers.  In other
  words, a symbolic link is a pointer to
  another name, and not to an underlying
  object.

Read more about symlinks here and here.

Only with the second method you are, in fact, creating an alias.

  Aliases  allow  a  string  to be
  substituted for a word when it is used
  as the first word of a simple command.
  The shell maintains a list of aliases
  that may be set and unset with the
  alias and unalias builtin commands
  (see SHELL BUILTIN COMMANDS  below).
  The  first  word of each simple
  command, if unquoted, is checked to
  see if it has an alias. If so, that
  word is replaced by the text of the
  alias.

You can define an alias anywhere where you can type a command and have the shell (bash in this case) interpret it, however in order for the alias to be available in other shells it needs to be defined in a file that's interpreted by the shell on startup (shell startup, not computer startup).

For bash these are /etc/bash.bashrc (system wide) and ~/.bashrc. These files are interpreted when the shell starts in interactive mode (like when using Terminal). I'm not going to mention the profile files because they serve a different purpose.

So, you want to add your aliases to ~/.bashrc to have them available in every interactive shell.

The .bash_aliases method accomplishes exactly the same thing as putting the aliases in ~/.bashrc but has the added benefit of being easier to be parsed and manipulated by programs.

The . ~/.bash_aliases means source (load) _~/.bash_aliases_ in the context of the currently running shell.


Set your usb device to be the first in boot priority from your BIOS menu, leave the usb in before you boot or reboot. You should be able to access boot repair from the live USB this way. From all I have gathered, grub doesn't boot live systems unless they have been previously installed to do so. If there is a way do do it, I would like to know also.


Can I replace the default login screen for the Pantheon Greeter?

Yes, you only need to Install pantheon-greeter and change the LightDM conf file like so:

To get pantheon-greeter you'll need to add this PPA, open a terminal and type:

sudo add-apt-repository ppa:elementary-os/daily && sudo apt-get update && sudo apt-get install pantheon-greeter elementary-theme fonts-open-sans-elementary fonts-raleway-elementary

Then open gedit as root, type gksu gedit /etc/lightdm/lightdm.conf
Change the line greeter-session= to look like this greeter-session=pantheon-greeter
Log out


It looks like the problem is with the post-receive script not being in the right place. What is the output of git remote -v in the local repository and ls -l /home/ubuntu/myapp/myapp.git/hooks on the server?

Some tips for the script itself:

Use More Quotes™
Bash (and POSIX shells) use a single equals sign for [
-o is deprecated; you should instead use [ foo = bar ] || [ baz = ban ]
Use set -o errexit to exit the script at the first error; it should make debugging much easier
Use set -o xtrace and exec > /tmp/post-receive.log 2>&1 to (temporarily) get a debug log of what the script does.


How am i supposed to download an older version of Ubuntu

http://releases.ubuntu.com/ contains every active release, which currently goes back to 12.04.5.

http://old-releases.ubuntu.com/releases/ contains everything from 4.10 to 17.10, including unsupported releases.


Minecraft doesn't start on Lubuntu 12.10

Is the jar marked as executable? Right click on the jar file and check the execution permissions, or run

sudo chmod a+x Minecraft.jar

in the terminal.


STA driver support for b43xx wireless broken again

I'm sure this will be closed soon as argumentative or flame/trolling, but a better way to do your updates would be to test it out on live CD before installing. And as for kernel updates, that's why GRUB lets you choose old kernels in case the new one doesn't work properly for you.

Also the STA driver is closed source. The community has no control over it, it's up to Broadcom to fix it, so you'd be better of complaining to them.


Wireless Issues on Toshiba C855D Satellite

I had this exact problem with my wireless after updates, it was a compaq laptop, and a broadcom wifi adapter, the menu kept saying Wireless is disabled by a hardware switch, and the only wireless switch did not work in ubuntu.

back the the point i fixed it by running these into a terminal:

sudo rmmod -f ath5k

sudo rfkill unblock all

sudo modprobe ath5k

Original Post

Originally Posted by louisgonick View Post
i have natty dualbooting with windows on the same laptop. This commands turn my card on. Apparently ubuntu does not work with this card.
sudo rmmod -f ath5k
sudo rfkill unblock all
sudo modprobe ath5k

hope this helped


Using in-house programs in C++ with a DLL library in Ubuntu

Wine is a general solution for running Windows programs. If you have the DLL files installed in the appropriate location along with the program in question.

If you wish to build an application natively for Ubuntu, that was written using Windows controls from third party vendors, you would need to port your application to a portable toolkit framework such as Qt, and use the widgets provided within it, or using third party control widgets written for that toolkit, which can be used on Ubuntu (some proprietary ones may not be for example). You would also need to port any code using standard Windows controls over to the portable toolkit, and avoid using platform-specific calls. Alternatively (and possibly easier), you could write a new portable application based on these portable technologies, which is used for the same tasks, that would work on both Ubuntu and Windows.


Sound plays on headphones and speakers at the same time with Lenovo ThinkPad

This is a workaround:

Go to "sound preferences" and select the "Output" tab. There select "Analog Output" in the connector option.


Installing Ubuntu server after Ubuntu desktop

You can install server packages on top of the desktop version, using tasksel like you would during a server installation.

sudo apt-get install tasksel

You can then run tasksel with sudo and select "LAMP Server" as you would with a server version installation.

That is the easiest way to setup a LAMP server on Desktop without installing all the packages by hand.


How to recover my terminal vim window when I use ctrl-s to save in vim by mistake?

Ctrl-S can be undone with Ctrl Q (The ASCII XOFF and XON characters used for stopping & starting paper tape readers on Model 35ASR TeleTypes).


How do I get LibreOffice Base to access MS Access 2003 data

You may need to install mdbtools from the ubuntu software center to be able to access Access files.

http://mdbtools.sourceforge.net/

http://apt.ubuntu.com/p/mdbtools


Ubuntu 20.04.01 and Ubuntu 20.04.02 on my desktop?

Ubuntu release dates (for point releases) refer to the ISO release date. The Ubuntu 20.04.2 LTS ISO hasn't been released (it's scheduled for this thursday), but installed systems will already have upgraded to be using it, as is normal.
Package names however are not the same thing, ie. you're comparing a firefox package name, to the release version.
Your apt command is showing the package version which will be according to a standard, but different teams/packagers can use different standards, so unless you're familiar with the team that created the package, don't get fixated on package names. All parts of the "84.0.2+build1-0ubuntu0.20.04.1" will have meaning if you break it down, but few of us thankfully have to :)


Ubuntu 18.04 LTS fails to boot because of NetworkManager.service failure

Those tools rely on functions that are not native anymore in Ubuntu 18.04. Namely due to the switch from ifupdown to netplan, (ie. promiscuous mode or "monitor mode")

You will need to install and configure ifupdown to make these packages work with 18.04. But IMO, its better to switch back to 16.04 if at all possible, for this use case.


Xubuntu 20.04 apparently has no PPT security option in BIOS for legacy boot on some computers

Through Xubuntu 19.10 we didn't need to create a bios boot partition but in 20.04 you need to create a 1023 MB /boot partition and then your ext4 partition. We don't make swap partitions any more because they wear out ssd drives and we have plenty of ram now. Now cloned drives of Xubuntu 20.04 boot with no problem.


Using Fastboot in Terminal Xubuntu 12.10

Maybe a little late in answering... ADB will work fine, but to use  fastboot you need to run commands as superuser e.g. sudo fastboot erase cache


Dual Boot Windows 10 and Linux Ubuntu on Separate SSD

In this installation answer session for dual-booted desktop with two separate SSDs, the required procedure will be fully explained in detail.
The act of plugging and unplugging of SSDs from their sockets for dual-boot installation were discouraged and completely condemned because that act was going to harm your computer hardware.
This act of plugging and unplugging of SSDs have been practiced by a few just to avoid "an extraneous GRUB entry is being installed on the EFI Boot Partition of the Windows 10 SSD".  It is wiser to attempt to remove such an extraneous GRUB entry instead of practicing this 'harmful' method of dual-boot installation. The removal of this extraneous entry is the role of Part-IV of this answer-session.

You should never unplug anything and never mess around your computer Hardware.

Plugging & unplugging SSDs may cause neighboring components
connection issues and your computer may not start or malfunction and
is difficult to diagnosis.
While unplugging SSD with tight socket fittings, you may apply force
which may disturb the other parts of Motherboard and there will be
always the possibilties of creating loose connection. i.e. if you
work on one component and if you are little careless, you may disturb
others. I did once a blunder and my front-panel audio and USB ports
were stopped working. It tooks me days to identify the problem and
resolve it. It was simply a loose connection!
If you have not properly plugged SSD back into socket tightly, this
will create a situation which is hard to diagnosis because computer
will work sometimes and suddenly there will be malfunction. May be
read/write errors and so on.

Part-I:   Install Windows 10 on first SSD (/dev/sda)
The first mistake was to purchase identical 250 GB SSD of same make. If I were you, I would go for a Kingston 250 GB SSD and a Samsung 250 GB SSD.  When you open up BIOS setup screen you can immediately observe the bootloaders bearing the SSD brand. This will be helpful to find out what is where. Whenever your PC is opened up later for any reasons, from the color of SSDs itself, you can tell that, for example, Windows-10 was installed in 250 SSD Kingston (red in color) and Ubuntu was installed on Samsung 250 SSD (some other color) respectively.
While installing windows-10, you will see two devices appear in front of you and you will be asked to select any one to continue with installation. Select /dev/sda for windows-10 installation. This way you will always remember that sda is meant for windows-10 and you will always remember it.
You should never partition SSD! Allocate entire 250 GB to 'C' drive and have all the windows related systems and other programs in 'C' drive. Never keep any data in SSD.
Suppose you wanted to install complete Visual Studio Community 2017 RC (a free, fully featured version), then it is going to take around 80 to 90 GB of 'C' drive.
Other point of suggestion, is go for a hard disk at least 1 TB size. You need a place to keep your data, downloads and other stuff without disturbing your SSDs.
The following link gives you step-by-step installation of windows-10. Just follow the link and you must get Windows-10 installed.
Windows 10 Installation step-by-step
After Windows-10 installation, you complete the formalities such as installing cumulative/security updates for your build version and so on. After finishing them along with other essential tasks, then you may resume back your journey towards installing Ubuntu 18.04.

Part-II:   Install Ubuntu 18.04 on second SSD (/dev/sdb)
As you have already admitted in your question is that your new to Ubuntu.
I welcome you to the fascinating world of Ubuntu whole heartedly.
I also made my Ubuntu entry recently, like you, just 7 months ago!
The first complexity begins during the installation is to partition your 250 GB SSD. There are varied theories exists and no second person agree with your partition! There is always a debate because every body is right!
I have a 120 GB SSD where Ubuntu was installed. Here is my partition details:
Sl.No:  Partition  File System           Device         Allocated Size   Partition Type
1       efi        FAT32                /dev/sda1       0.5 GB           Primary
2       swap       Swap area            /dev/sda2       16 GB            Primary
3       /          ext4 with journaling /dev/sda3       6 GB             Primary
4       /usr       ext4 with journaling /dev/sda4       16 GB            Primary
5       /opt       ext4 with journaling /dev/sda5       44 GB            Primary
6       /tmp       ext2                 /dev/sda6       16 GB            Primary
7       /var       ext4 with journaling /dev/sda7       8 GB             Primary
8       /home      ext4 with journaling /dev/sda8       13.5 GB          Primary

I arranged this partition setup particularly with Oracle 18c (Enterprise Edition) in mind. I would never ask you to follow my foot steps. Please never do that! You may have 2 partition or 3 or sometimes no partition, it is up you. This is the toughest part for a new entrant like you to negotiate with.
So, please do a thorough planning before you begin installation.
My partition table serves you as an example for an understanding of what partitions are. You may begin installation once your partition plan is frozen.
Next, during installation, at the time of dividing your SSD into partitions, be careful enough to select /dev/sdb. Because device /dev/sda has Windows-10 already installed. Once you cross this hurdle, the remaining part of installation is a cakewalk.
Now follow this link and you can easily install Ubuntu 18.04. This step-by-step procedure covers extensively regarding partitioning and teaches you how to do that.
Ubuntu 18.04 Installation step-by-step

Part-III:   Post Installation of Ubuntu 18.04
1.  Setup WiFi: Configure WiFi connectivity if you have one.
2.  Setup Password for Firefox Browser: Configure Firefox Browser with email-ID
3.  Set the Root password.
Set a password for root user in a single go:
$ sudo passwd root
Test it your root password by typing the following command:
$ su -
4.  Disable lock screen.
To disable lock screen just follow this:
Settings -> Privacy -> Screen Lock -> change 'Automatic Screen Lock' to 'Off'

To disable lock screen through command line permanently, issue the following command:
$ gsettings get org.gnome.desktop.lockdown disable-lock-screen 'true'

If you are unhappy with the new setting you can reverse it using:
$ gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'

Figure-1: Disable Screen Lock
5.  Adjust the Dock-styled Launcher
Ubuntu includes a dock-styled launcher (also known as "dock") on the left of your screen. If you don't like its position and the size of the icons on the launcher, you can adjust it easily through the settings.

Click the Applications button and select "Settings".
Select "Dock" on the left column.
On the right column, drag the slider of "Icon Size" to the left for
a smaller size, or right for a bigger size; and change the dock
position to the bottom or right of the screen.

Similarly, you can also auto hide the dock.
6.  Install Updates:
$ sudo apt-get update           # Fetches the list of available updates
$ sudo apt-get upgrade          # Strictly ugrades the current packages
$ sudo apt-get dist-upgrade     # Installs updates (new one)

If you have successfully upgraded, then you move on to step-7.
If there are any issues due to "metered" internet and upgrade command interrupted, then upgrade can be resumed through following command:
$ sudo apt-get install --fix-missing
And then issue:
$ sudo apt-get update
$ sudo apt-get upgrade

7.  Install aptitude
$ sudo apt-get update
$ sudo apt-get install aptitude
$ sudo apt-get dist-upgrade

8.  Install Grub Customizer:
Grub Customizer is a graphical interface to configure the grub2. The application allows the user to add, remove, freeze, rename and reorder boot menu items.
Open up terminal by hitting Ctrl+Alt+T and run following commands one by one:
$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
$ sudo apt-get update
$ sudo apt-get install grub-customizer

How to use?

Once installed, hit Gnome dash and search for "G" and double-click
Grub-customizer icon to open up.

Figure-2: Type 'G' in search box in order to cause 'Grub customizer' to appear
Grub Customizer will always request you for authentication. Type
your sudo password.

Figure-3: Type sudo password authentication
Now using this graphical tool you change the boot order of GRUB by
bringing up Windows bootloader to the top of the chain. This can be
done by moving the desired loader up until it reaches the top.

Figure-4: Place the cursor on 'Windows bootloader', then right click for drop down menu to appear and use 'move up' menu item to lift 'Windows bootloader' up in the ladder until you park it on the top.
Once Windows bootloader parked at the top of the ladder, the first
thing you should do is save the settings. There is a save menu item
at the top-left and click that to save your GRUB configuration. You
should never ignore this step!
So by default windows-10 which you have set will be booted after 10
seconds. Just click General settings marked by a red arrow to get
the following figure-5, where you can alter this 10 secconds delay
interval.

Figure-5: GRUB interval 10 seconds may be altered here
You can always  explore this tool without any fear because you can
always quit from the tool without saving!
This is how you configure Grub using Grub Customizer tool. Very reliable!

9.  Now Reboot your system
Check the GRUB menu which should contain Windows bootloader at the top of the chain.
10.  Now Log into Windows System
We have the following important task to complete before bringing this procedure to conclusion.

Part-IV:   How to delete "extraneous" GRUB files from a Boot EFI partition in Windows 10?
What is this extraneous GRUB files?
This entry is done by GRUB (refer figure-8) after Ubuntu has been installed.
Whenever you do a dual-boot installation, this is an unwanted gift you will be presented with. This is reflected in BIOS setup screen as boot option #3 (refer figure-9).
Nevertheless, we will remove this extraneous gift subsequently. After this removal, BIOS setup screen will contain only two entries (refer figure-13).
Before proceeding further, I must introduce you my desktop configuration, otherwise it is difficult to follow the screenshots which you are going to face subsequently.
My system is a dual-booted desktop with a 250 GB SSD (Windows-10 installation), another 120 GB SSD (Ubuntu 18.04 installation) and 1 TB hard disk with three NTFS partitions which are mounted on Ubuntu as CodeWrite (read-only), ShareMe (read-only) and Warehouse (read-write) respectively. So, this 1 TB hard disk is sharable between Windows-10 and Ubuntu 18.04. All the copies of installable downloads not only for Windows-10 but also for Ubuntu 18.04 are kept under ShareMe. This arrangement helps to preserve storage space on both SSDs!
Note-1: When I assembled my desktop, I went for two 120 GB SSDs. I planned my desktop very carefully right from the beginning, made sure that my motherboard should have in-built Wi-Fi as well as Bluetooth and so on. The only blunder I committed was that I never anticipated that Visual Studio Community 2017 will take up my entire 'C' drive! This fellow has simply eaten away around 78 GB disk space on my 'C' drive. Thus, this oversight has costed me double the money, i.e I had to re-invest again on SSD by replacing the 120 GB SSD with a brand new 250 GB SSD. How much ever careful are you, sometimes you slip! So this was my story.
Note-2: The screenshots were all taken when I had two 120 GB SSDs of identical size. Please bear this in mind.
Press  + X and select Command Prompt (Admin) and run diskpart command.

Figure-6: Using 'diskpart' to list hard drives detected on Windows 10
After the target disk has been selected, its partitions are listed, so that the partition (volume) that corresponds to the Boot EFI folder can be identified.
In figure-7 below, that partition is Volume 3. It’s usually the only volume with FAT32 in the FS (file system) column, and System in the Info column. After it has been identified and selected, you assign it an unused drive letter to make it easier to work with. In this example, I assigned it a drive letter G.
DISKPART> sel vol 3

Figure-7: Select volume number corresponding to the EFI partition and assign a drive letter
The final task involves changing into the Boot EFI folder, listing its contents to identify what subfolder the GRUB files would be. It will be in the EFI folder. The GRUB files for the distribution that was installed will be under a folder of the same name as the distribution.
For example, if Ubuntu was installed, as in this example, the name of the folder will be ubuntu. Delete the folder using the rmdir /s command. That’s the Windows 10 equivalent of the Ubuntu Linux rm -r command.

Figure-8: Removal of extraneous 'ubuntu' boot entry from windows-10 EFI
To make sure that ubuntu has been removed, issue dir command again:
DISKPART>dir /B

The output will show only two entries.
Exit from diskpart command.

Figure-9: GRUB has created an extraneous boot entry in SSD (Kingston) drive where in windows-10 installation exits.
Now Look at the three boot entries in BIOS as shown below:
The Boot option#3 is the culprit which should be removed not only from SSD (Kingston) but also from GRUB boot loader:
We have already followed the steps in the beginning of Part-IV (How to delete "extraneous" GRUB files from a Boot EFI partition in Windows 10?) until now and removed the extraneous ubuntu directory from windows-10 EFI successfully.
Now restart computer and login into Ubuntu system.
Open up terminal by hitting Ctrl+Alt+T and run following command:
$ sudo efibootmgr               # issue this command to show boot entries

Figure-10: Output for command: 'sudo efibootmgr' showing 3 entries
Boot entry 2 should be removed. How to confirm this?
$ sudo efibootmgr -v                    # issue this verbose command

Boot entry 2 has the same UID for SSD disk as boot entry 0 which is windows loader.
$ sudo efibootmgr -b 2 -B               # where 2 is the boot entry Boot0002.

Now the entry has been removed.

Figure-11: The process of removal of the extraneous boot entry created by GRUB
To confirm the removal, just issue the following command:
$ sudo efibootmgr                   # issue this command to display boot entries

Figure-12: Confirmation of removal of extraneous boot entry created by GRUB
From the figure-12, it is clear that only two entries are present rather than three. Just see the entries marked with *.
Let is finally see BIOS setup screen below figure-13, to make sure that only two boot loaders are present.

Figure-13: The extraneous 'Boot Option #3' has been totally removed from BIOS (compare with Figure-9).
Part-V:   Conclusion
In this installation answer session for dual-booted desktop with two separate SSDs were fully covered.
The act of plugging and unplugging of SSDs from their sockets for dual-boot installation were discouraged and completely condemned because that act was going to harm your computer hardware.
This act of plugging and unplugging of SSDs have been practiced by a few just to avoid "an extraneous GRUB entry is being installed on the EFI Boot Partition of the Windows 10 SSD".  It is wiser to attempt to remove such an extraneous GRUB entry instead of practicing this harmful method of dual-boot installation. The removal of this extraneous entry is the role of Part-IV of this answer-session.
The Part-IV covers in detail the extraneous entry introduced by GRUB in windows 10 efi partition which was also reflecting on BIOS setup screen. This part provides detailed instructions to remove the extraneous entry not only from Windows 10 efi partition but also from BIOS setup screen one after another.


How to install one GUI program on Ubuntu Server?

You can install X without a complete desktop environment but to be upfront and honest, installing ubuntu-desktop is probably the quickest and config-free method of doing what you want.

For our media centre, I use a simple stack of: nodm → xserver-xorg → openbox. It's very raw but it allows me (with a bit of scripting) to have the system boot to X and then launch the media centre application (Boxee here). I could probably have gone without openbox but it's nice to have some sort of Window Manager just in case I do want to run something else.

When I was doing it, I followed a whole raft of different documentation but the bulk of it is summed up here. In short you should be aiming to:

Install nodm, X, etc.
Configure nodm by telling it what user to run as (I do suggest creating a non-root user)
Create a ~/.xsession file to boot whatever application you want to be running. In my case this is:

#!/bin/sh

exec /home/oli/uberboxee

You'd just swap out /home/oli/uberboxee for your launcher.

Just as a side note, if you install something that requires, for example, GTK, you'll find it might pull in a massive number of recommended packages. To keep things light, I strongly consider you run your apt-get installs with the --no-install-recommends flag.

The Low Memory System page on help.ubuntu.com is a good resource for finding alternatives to the Gnome desktop. Installing a desktop suite is going to bring a lot of stuff but it might save you a little bit of configuration.


It is not at all clear IMHO from the documentation however it appears that when using :bsd_glob, the behavior is determined by explicitly importing :nocase

Ex.

$ perl -MFile::Glob=:bsd_glob,:nocase -le 'BEGIN{print for glob("*.bar")}'
baz.BAR
foo.bar


Installing Ubuntu on a laptop with Windows 10

Yes it will. In fact, it will delete all the windows partitions C and D. First, you should create different partitions for ubuntu and create a backup for windows so that in case of any mistake, you will not use your data. Then, you should go for something else option. For step by step method, a good tutorial:

http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html

It will Dual boot windows and ubuntu. It means you can use both windows and ubuntu.

If you want to install only ubuntu,then go for the replace windows with ubuntu options. I think you are a newbie, so you should go for dual boot.


You can get to a root terminal in the recovery mode boot.  by following the instructions here.

The problem is often one of the video driver. Do you know which card your machine has?


If I format my hard-disk ,will I be able to create another totally new partition.I want to use it for dual booting

Formatting a disk wipes the entire partition table.
A formatted disk will functionally behave like a brand new hard drive, although there are some technical differences.  For example, if you quick format a HDD, it doesn't actually erase data, even though it is effectively gone.
Formatting a disk will not allow you to continue using any existing operating system on that disk and you will need to reinstall Ubuntu.  If you don't want to reinstall Ubuntu, your path is going to be more complicated and as a new user you may prefer to keep things as simple as possible.
To make it easier, I suggest that you allow the Windows 10 and Ubuntu installers to do the bulk of work for setting up the new partitions.
You can help the installers do this automatically and also set the size for each OS by using the Disks app to create two partitions as placeholders for each operating system.  Delete the respective placeholder partition before beginning an installation.
Here's an example workflow: If you format a 1 TB hard drive (GPT), you can create a 700 GB partition for Windows and a 300 GB partition for Ubuntu. It doesn't matter what filesystem you choose. Before installing Windows, use Disks to remove the 700 GB partition so there is unallocated free space. Then boot the Windows installer as UEFI and select that free space for Windows. A typical Windows 10 install will create ~4 partitions automatically within the confines of that 700 GB of unallocated space.  When the Windows install is finished, use Disks again to remove the 300 GB partition and then boot the Ubuntu installer as UEFI.  You will get an automated option to "Install Ubuntu Alongside Windows".


You will need to access your routers administration page and forward whatever port Apache is running on to your PC's IP( usually 80 ). To access your router its usually 192.168.1.254 unless you have edited the IP or have another form of setup, if you do your probably wont need this advice.

You will also need to use ufw to allow port 80 inbound and outbound from your PC.

sudo ufw enable
sudo ufw allow 80/tcp

Those will allow access to you web server if you have your firewall up as you should.

Also suggest if your opening it up to the net to do some hardening of the web server before hand. Have a look at HERE


Bash function to robustly pipe terminal output to vim

Process substitution may offer the closest syntax to what you want.
This works, and may be to your liking:
vim <(cmd1 | cmd2 | ...)

That lets you keep the text of your whole command together, and to put it after (rather than before) the command that sends it to vim, which seem to be your main goals. The absence of a - argument is intentional.
You don't need to define a function or alias for that, but of course you could shorten vim to v by defining v as an alias or function:
alias v=vim

v() { vim "$@"; }

v <(cmd1 | cmd2 | ...) is one more character than v 'cmd1 | cmd2 | ...'. But it also avoids the quoting hell that muru cautions about. ', ", and \ can appear inside <( ) and they work in the usual way. This also nests fine: you can have other parentheses in your command, so long as they are used in a manner that is otherwise syntactically correct.
This is process substitution. Bash creates a pipe that is accessible with a path like /dev/fd/63 (not to be confused with the pipes involved in your command itself). It substitutes the path of that pipe for <(cmd1 | cmd2 | ...), so vim sees a filename like /dev/fd/63. Your command, cmd1 | cmd2 | ..., is run asynchronously in a subshell, and its output is sent to the pipe, which vim reads. (That's why you don't write -: vim reads from /dev/fd/63 or whatever it ends up being called, not from standard input.)
muru has pointed out that you can write an alias that expands to vim <(:
alias v='vim <('

You can put this alias definition in ~/.bash_aliases or at the end of ~/.bashrc.
That gets you even closer to the syntax you originally wanted--you just have to write a ) at the end of your command:
v cmd1 | cmd2 | cmd3)

Process substitution has the additional benefit that you can use it multiple times, writing multiple <( ) constructions in the same command, in case you want to run multiple commands separately and view their output in separate vim buffers.
vim <(cmd1 | cmd2 | cmd3) <(cmd4 <infile) <(FOO=bar cmd5) <(cmd6 | cmd7)

Of course, as muru says, postfix operations are still simpler for the use case of running a pipeline and opening its output in vim, as you need only tack on another command for vim at the end of your pipeline.
Thanks to muru for the insight that v can be made an alias for vim <(.

The simplest cases: a better way to implement your original v
vim <( ), detailed above, can be used even in the simplest cases.
But it's syntactic overkill when you're not writing a pipeline of two or more commands (cmd1 | cmd2), applying redirections to your command (cmd <infile), or assigning environment variables for the duration or your command (FOO=bar cmd). So you may still want to have a function that does what your original v function did.
Your implementation runs a loop to concatenate the text of the arguments. This is complicated, and also breaks in most scenarios involving quoting, even if you fix $1 to "$1" to prevent initial splitting and globbing. In v 'foo bar', your v function (like any function) doesn't receive any quotes: it sees foo bar. That's fine, since it receives it as a single argument... until it constructs a script that contains it and runs that script, at which point foo bar gets parsed as two words, which become two arguments.
Fortunately, there's a more reliable way, which is also simpler and shorter. "$@" expands to all the arguments passed to the current function, or to the current script, if not in a function. Separate arguments are neither further split nor joined with one another. So all you need is:
v() { "$@" | vim -; }

(Of course, if you're defining v to do something else--perhaps as an alias for vim <( as described above--then you'll want to call this something else, perhaps u.)
Running that command defines a shell function v that runs the command named in its first argument and passes its subsequent arguments. This does not construct a separate script, and it does not use bash -c or eval. So it does not risk splitting or joining arguments incorrectly, because arguments are never split or joined: they're separate going into the function, and "$@" uses them separately.
You can put that at the end of ~/.bashrc so it will be defined for your interactive shells.
Or if you prefer it be a script, then make a file called v (or whatever you want the command name to be) with the contents:
#!/bin/bash
"$@" | vim -

Mark the file executable (chmod +x v) and put it in a directory listed in your $PATH. I suggest ~/bin, which is automatically added to your $PATH when you log in, if it exists (unless you've changed ~/.profile to not do that).


I'm building a dedicated distrbuted computing(FAH) rig and need help to intall Ubuntu

As dumb as it may sound, make sure you have a power supply and case. Your power supply must adhere to the amounts of watts your motherboard, processor, and other supplies require. Also make sure you have all the chords to connect all your supplies to your power supply. (not gonna go far without that...) Otherwise, you look pretty good to go besides a screen, keyboard, and display.


Newly installed Firefox 43 crashes when videos are played

A friend of mine passed this information over to me.

Launch Firefox & type about:config on the address bar, enter.
Search  for media.fragmented-mp4.enabled and set the valut
to false

He did not say, why changing this would work.


GParted error mkntfs -Q -v -F -L "" /dev/sdb1

Found out myself: Just do one pending action (status lower left side of GParted window) at a time, first delete all sections then create new partition.
The error is gone on two different hard drives, so I guess that was it.


Why Ubuntu 12.10 doesn't recognize my graphic card?

The System Information panel in the system settings is not getting the value from the hardware, as lspci does, but is getting information from the userspace drivers for Xorg and OpenGL. As a result, depending on which drivers are being used, the requisite information it uses may not be available. In this case, it defaults to displaying Unknown rather than the name or type of your graphics card.

More accurately, the panel tells you what graphics system you are using, and not what graphics card you have.


If you really want to see decimal numbers using , I can suggest you a workaround, using this command line :

cat /proc/cpuinfo | sed "s/\./,/g"

Explanation :

cat /proc/cpuinfo would show you each current cpu informations
sed "s/\./,/g" would replace each . with a , so your CPU frequency would be shown as you want (2599,998); also, we use \ because the . is a special character

You can add a grep command to get only what you want (frequency for example) :

cat /proc/cpuinfo | sed "s/\./,/g" | grep MHz

or redirect results into a text file :

cat /proc/cpuinfo | sed "s/\./,/g" > cpu.txt


It can not work, if you install Ubuntu UI toolkit according that website.
http://developer.ubuntu.com/get-started/gomobile/#step-get-toolkit

I reinstall Qt5 and Ubuntu UI toolkit according this website,
and problem have gone.

You must compile Ubuntu-components and then install it into Qt5.
This article tell how to do it.
Can't install qt-components-ubuntu because I'm using full release of QT 5.0.0

It will work for Qt Quick1/2 UI project not for Qt Quick1/2 Applications projects.

Hope it works for you!


Setting high-resolution default for KVM/Qemu VM viewers

For some reasons virt-viewer, and virt-manager they scale their windows according to gnome settings. If you go to settings -> Displays and change scale to 100%, this problem will go away. But, everything else will be tiny. There got to be a way to tell virt-viewer to ignore scaling that is set by Gnome.
Here is bug about it
If you have your scaling set to 200%, you can scale virt-viewer down, and get the desired result: "virt-viewer -z 50"
Another way to get it working is to start virt-manager with GDK_SCALE=1.
$ GDK_SCALE=1 virt-manager
Works for me.


USB Serial driver not mapped to the /dev/ttyUSBO serial port

USB serial devices can also be mounted under different names such as /dev/ttyACM0. You should see all the names of the usb serial devices by running
$ ls /sys/bus/usb-serial/devices/
ttyUSB0

This means I have a USB serial device on /dev/ttyUSB0.


I dont know what is your favourite way of formatting disks, I would go with mkfs. The following method/trick will work with other commands as well:

You can use GNU parallel.

Suppose you would like to format

/dev/sda1 which is ext4 partition,
/dev/sda2 which is ntfs partition,
/dev/sdb5 which is etx3 partition,
/dev/sdf1 which is ext4 partition

You can create a text file (say input.txt) with commandline options for mkfs, e.g.:

-t ext4 /dev/sda1
-t ntfs /dev/sda2
-t ext3 /dev/sdb5
-t ext4 /dev/sdf1

Then run

parallel -a input.txt mkfs

If you would like to pass different parameters to an individual partition (e.g. partition label or other options), you can add them to the corresponding line.


You have two major networking configuration failures going on here:

Both VMs are configured to have the same exact IP address, and
Both of the VMs the same exact MAC address.

Both of these issues must be resolved before you can get things working properly.

IP Conflict

You can't have this happen in a sane NAT'd environment - this is called an IP Conflict and you need to resolve it.

Set one of the VMs to have a different static IP.  Then restart both VMs.

MAC Address Conflict

You also have a MAC address conflict.  That is, both VMs have the same MAC address.  NAT and network routing is heavily dependent on each system, VM or otherwise, having unique MAC addresses.

Go into the configuration of your second VM's network interface at the virtualization system level.  Edit the network interface and generate a new random MAC address

Only after you have done both of the above stated things to fix both issues, fully power off both VMs and then power them back on.  Then see if they can reach out properly.

NOTE: If neither machine properly works, then you need to check the host OS to see if the traffic is being denied/firewalled.


The Screenshots are saved with a default name consisting of the current Date and Time. That String contains ":" as a seperator for the timestamp, e.g. "12:02:45".

Unfortunately, due to the technical limitations of windows, this conflicts with the use of things like C:\ as a drive label. Therefore, any file name on Windows is not allowed to contain ":", as well as several other characters ("A filename cannot contain any of the following characters:
\ / : * ? " < > |" - Microsoft). Linux does not have any problems with this character though, which is why it is being used in the timestamp formatting.

So, if you rename your Screenshots to NOT include any of the characters mentioned above, you will be able to open/edit those on Windows too.

Unfortunately, this default behavior of the screenshot utility is hardcoded, so you either have to enter a valid filename when saving (Being descriptive with filenames never hurts) or rename them afterwards (this can easily be scripted) if you need to access them from Windows.


What environment variable will report the user's primary group

As far as I know, there's no conventionally recognised equivalent to $USER for a user's primary group - however you can use the id command. From man id:

   -g, --group
          print only the effective group ID

   -G, --groups
          print all group IDs

   -n, --name
          print a name instead of a number, for -ugG

So to get the primary group name, use id -gn. You can wrap it in a command substitution $(id -gn) if you need something that you can use like a variable.

Note that some shells set a GID variable for the numeric id of the primary group - see for example Why is my GID environment variable empty?


Can someone explain what this grep/cut/awk command is doing

ifconfig leaves you with a block of text like this:

eth0      Link encap:Ethernet  HWaddr aa:aa:aa:aa:aa:aa
          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::6ef0:49ff:fe54:b80/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:118583044 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117593447 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:86729976752 (86.7 GB)  TX bytes:96008613785 (96.0 GB)

The first grep filters for lines that contain inet addr:, leaving you with:

          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0

The next two grep commands filter again, looking for 192 and 168. I think it's searching for local IPs. Ones that tend to look like 192.168.*.*. Not all local IPs look like that but I'll ignore that for now.

In our example's case, nothing else gets filtered out.

The cut then uses : as a delimiter (cutting point) and takes the second value:

192.168.0.4  Bcast

awk delimits by space by default and it prints the first column, leaving us with:

192.168.0.4

It's a script that tries to get your local IP. It's not very good.If you LAN uses a different addressing format or you have a legal (external) IP with 192 or 168 in it or its mask —like 4.4.168.192— this would incorrectly catch it.

There are probably better ways to get your internal IP than filtering ifconfig output but here's another filtering method that only uses one awk to clean up:

ifconfig | awk -F' |:' '/inet addr:192\.168\./ {print $13}'

It will only work for 192.168.. addresses but that's already better than the existing command.