Migrating to full Ubuntu after dual installation on WinXP

You don't have to do a fresh install if you already have a working Ubuntu. I'm assuming you did not use WUBI. In that case I would go for a backup of everything, including Thunderbird mails, and a fresh Ubuntu install. You can migrate a Wubi install for a full install if you are willing to go through this procedure.

If on the other hand you have Ubuntu installed alongside Windows in a separate partition with Grub as bootloader then you can simply delete Windows CAREFULLY.

To delete Windows I would:

Backup all data on the Windows partition.
While logged in your Ubuntu install you could format your Windows partition or delete it if you want to (later) increase the size of your Ubuntu partition. How to do this depends on your current partition table. Type sudo fdisk -l and add it to your question for more specific help.
IMPORTANT: DO NOT REBOOT BEFORE THIS STEP! In a terminal type: sudo update-grub

Now you can reboot your PC, Windows is no longer there. If you decided to simply format your Windows partition you're done.

If you decided to increase the size of your Ubuntu partition with the space left over by the Windows removal you will need to boot from a liveDVD or liveUSB to do the necessary changes. What is needed depends on your current partition table. Again, you might need to repair Grub after doing these changes.


You can script this with xbacklight:

sudo apt-get install xbacklight

xbacklight -set 100 will set your brightness to 100%. You can add this as a new startup application (Search for 'Startup Applications', or I believe it's accessible by clicking the icon in the top right corner), or add this command to /etc/rc.local if you want it to happen earlier in the boot sequence


Running 13.10 here myself and if you go to settingsmenu Screen Dislay, there is an option called 'launcher placement'  which you can set to 'All displays', which should display the launcher on all screens.

The options are in order:
Resolution
Rotation
Launcher Placement
Sticky edges

If this is not the case for you, could you perhaps post a screenshot of your Screen Display window?

Hope that helps.


If you want to do this properly, you need a hardware solution. You can't break Ubuntu this way without either making it trivial to undo, or breaking it too much.

Remove the sound card, put hot glue in the jacks, desolder the built-in speakers. And obviously do the same for USB plugs to stop somebody plugging in a USB sound card/speaker. And remove any Bluetooth hardware for the same reason.

If this sounds unacceptable, you might want to give some of these reasons you "won't get into" so we can see what you're actually trying to do. At the moment it just sounds like you're trying to break somebody else's computer.

Or you could just blacklist the snd module. That'll stop any ALSA drivers loading, which means PulseAudio won't have anything to play to (locally).

echo 'blacklist snd' | sudo tee /etc/modprobe.d/blacklist-snd.conf

And reboot. It's fairly trivial to fix though, if you know what you're doing.


I broke my .nvidia-settings-rc file - can't see X

Remove the file and it should start a fresh config for you. Also, if you used root/sudo for editing (which I suggest you NOT do) then you'll probably have to remove the xorg.conf file and rerun nvidia-xconfig.

For that second bit I suggest waiting for a confirmation thru someone else.


How can I fix the "TERM environment variable not set" warning in eclipse

"It did display the program output but intermixed were weird characters" How about posting the output?

The problem might be that Eclipse runs the program not inside of a regular terminal, but its own console. Did you try to run the program from regular terminal, outside of Eclipse?

My suspicion is that the Eclipse runs the program as if it was a non-interactive program, in a non-interactive setting, where the TERM variable is not needed. However, it might be that your program in fact uses a system call (something like system( "clear" )) that in fact requires the TERM variable in order to work.

Unfortunately, I never use Eclipse, so I'm just guessing.

EDIT: Yeah, that's the way it is: system( "clear" ) requires a terminal, but Eclipse does not provide terminal capabilities for your program. Solution:

(i) Run the program from command line in a terminal

(ii) Go to Eclipse settings and tell it to start the program using gnome-terminal. Apparently, there is a description how to do it here.


How to install Teamviewer 11 on Xubuntu 14.04

Download TeamViewer from the official TeamViewer website.

Select the Ubuntu/Debian deb 32-Bit/64-Bit Multiarch version.

Open the folder where you saved the TeamViewer .deb file and click on it ... that's all.

Software Center opens - click on Install - all dependencies are installed automatically.


My CPU fan stop working on dell Inspiron 1545

I don't think it caused by Ubuntu. Please check

Your BIOS setting.
Reset it to default.
Update your BIOS.

It it does not work then you have problem with your FAN. (I think)!

Please let me know the update.


Step 1. click here to Download avast

step 2 :   enter the following command /Downloads

  cd ./Downloads
  sudo dpkg -i avast-linux-home-edition-1.3.0.deb

step 3 : To start using avast antivirus software, You need to Register with avast here to get a free license key (Don’t worry it’s free!). The license key will be delivered to your email address within 24 hours (usually within a couple of hours).

step 4 : Start the program and enter the license key.

step 5 : To achieve database updating (in my Ubuntu 12.04), the treatment according to Error message in Avast! with the value 256000000 according to the comment by 'pbhj' is necessary. That’s all!


Black screen when loading ubuntu live usb

To properly load your Live USB you should always have to have UEFI enabled (that is the default for the newest computers).  If you have it disabled when trying to use the Ubuntu Live media, while it'd still most likely work, you will lose functionality.

The SecureBoot option may or may not work, depending on your computer.  If SecureBoot enabled failed, just change that to disabled.

With those two settings, you will be able to use your Ubuntu Live Media.

When you boot to the Live media you will be presented with a Black screen with choices which includes a Try Ubuntu without installing option.  The first choice is the one you should choose.  From that choice, you'll have a running session of Ubuntu where you can either explore Ubuntu or install it by clicking on the Install Ubuntu icon.  You'll also have access to tools to configure your hard drive, or for diagnosing problems.

If the Try Ubuntu without installing option fails to boot

Some computer's hardware may have problems with some of the Desktop drivers.  You can fix this by typing e at the Try Ubuntu without installing option from the initial black screen menu.  Then replace the words quiet splash with nomodeset.  Then hit F10 to boot.


LXC starts up, but the networking is not set up - what is preventing this?

The problem, after all that, was that the lxc-net startup script (/usr/lib/x86_64-linux-gnu/lxc/lxc-net) expects to not find the file /var/lock/subsys/lxc-net. It wasn't being removed for some reason. By doing rm /var/lock/subsys/lxc-net, the file was removed and lxc-net startup script ran as expected, creating the network as expected for LXC.

I hope that helps someone in a similar situation.


Wifi not working (Intel) on HP Spectre x360 13

Your exact device 8086:24fd, subsystem 1010 is not yet covered in the driver version in Ubuntu 14.04. I suggest that you install a later 4.8.14 linux-image as well as the required firmware.

I assume that your installation is 64-bit; confirm:

arch

If the terminal returns x86_64 then yours is a 64-bit install. Download the files to your desktop:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.14/linux-headers-4.8.14-040814-generic_4.8.14-040814.201612101431_amd64.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.14/linux-image-4.8.14-040814-generic_4.8.14-040814.201612101431_amd64.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.14/linux-headers-4.8.14-040814_4.8.14-040814.201612101431_all.deb  <--The package I initially missed.

http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.169.2_all.deb

Install them all from the terminal:

cd ~/Desktop
sudo dpkg -i *.deb

Reboot and tell us if your wireless is working.

NOTE: Edited Jan 27`18 to update firmware link.


is there a terminal command to identify which partition my /home directory falls under

df /path/to/file

and ~ is an alias for your home directory.

e.g.

$ df ~/
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda7      174464052 160263260   5295428  97% /


Ubuntu 18.04 doesn't detect bluetooth devices anymore after waking from suspend

UPDATE 2019-10-31:

I am no longer experiencing this issue, might be the result of a kernel update or something else in 19.10. If anyone knows more, please comment and I'll include it here!

UPDATE 2018-09-20:

My original solution no longer works reliably for me. I now see one of three cases on resume from suspend:

Bluetooth and WiFi both disabled (no adapters available)
Bluetooth only disabled (no adapters available)
No issues

The only workaround that addresses the problem 100% of the time is restarting to BIOS and manually toggling both Bluetooth and WiFi off then on.

The workaround that I use is unplugging the power source and closing then opening the laptop lid to force a hardware power cycle. This works about half of the time, so I often have to do this two or three times.

Original Answer:

I have been encountering the same problem using Kubuntu on Dell, Asus, and MSI laptops with integrated WiFi/Bluetooth since at least 16.04. It happens intermittently; I cannot reproduce it reliably whatsoever, but it does only happen after resuming from suspend.

Here is my chipset:

$ lspci | grep Network
3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

When the issue occurs on default configuration, the bluetooth service is incapable of being fully restarted. I borrowed heavily from Ossama Nasser's answer, but have had more luck forcing the bluetooth service off on suspend and then up on resume.

My solution below, also written to /lib/systemd/system-sleep/bluetooth:

#!/bin/bash

if [ "${1}" == "pre" ]; then
  service bluetooth stop
elif [ "${1}" == "post" ]; then
  sleep 5
  service bluetooth start
fi

I will continue to update this answer if I can confirm that it works. Again, this issue seems somewhat difficult to reproduce.


I had the same issue since a couple of weeks and thought it would go away automatically (some problems do ...) So I didn't remember what caused the changes. Thank you @xangua, the hint about gnome3 helped. I found the repository ppa:gnome3-team/gnome3-staging in my apt sources which I added because I had issues with the nautilus dropbox client

To get the default nautilus menu back (top menu + context menu), I had to force version 3.10 instead of version 3.12 (apparently installed with the gnome3 ppa):

sudo apt-get purge nautilus nautilus-sendto nautilus-share ubuntu-desktop indicator-appmenu
sudo add-apt-repository --remove ppa:gnome3-team/gnome3-staging
sudo apt-get update
sudo apt-get install nautilus=1:3.10.1-0ubuntu9.11 nautilus-data=1:3.10.1-0ubuntu9.11
sudo apt-get install nautilus-sendto nautilus-share ubuntu-desktop indicator-appmenu
nautilus -q

output of sudo dpkg -l | grep nautilus | awk '{print $2 "------" $3}'

libnautilus-extension1a------1:3.10.1-0ubuntu9.11
nautilus------1:3.10.1-0ubuntu9.11
nautilus-data------1:3.10.1-0ubuntu9.11
nautilus-dropbox------1.6.1-1
nautilus-sendto------3.6.1-2ubuntu1
nautilus-sendto-empathy------3.8.6-0ubuntu9.2
nautilus-share------0.7.3-1ubuntu5
seahorse-nautilus------3.8.0-0ubuntu2

I haven't restarted yet, so I don't know if the dropbox support is back working. But having the menu's back is more important for me anyway.

Tim


How safe is EU-based Ubuntu One cloud data?

According to the US, if a company is registered in the US, all data they hold anywhere in the world is fair game. So this includes all servers used by Microsoft, Amazon and Google anywhere in the world according to the US. And in the last few days there has been another example of this:

"Google is the next major company to admit Patriot Act issues, as it admits to handing over data held in a European datacenter back to U.S. intelligence." ZDNET, August 11, 2011

I am not a lawyer and not related to Ubuntu One/Canonical and not a lot of users here are legal experts with knowledge about this situation so an answer to your question will all be conjecture. And it also depends on how stubborn the EU is about enforcing own law and opposing the US Patriot Act.

Ubuntu One Terms of Services

  This agreement is governed by the laws of England and any dispute will be heard by the courts in England. Failure by Canonical to enforce any right or provision of this agreement shall not constitute a waiver of such right or provision. If any part of this agreement is held invalid or unenforceable, that part will be construed to reflect the partie's original intent, and the remaining portions will remain in full force and effect. The terms of this agreement do not affect your statutory rights.

Ubuntu One is based in the UK so the company is subject to the EU laws and the European Data Protection Directive. So the answer to your question should be no Ubuntu one is not affected by this if you store the data on a EU server

If you want to make sure before you start using Ubuntu One that your data will not be handed over to the US you can contact them yourself and get an official responce (from Ubuntu privacy policy):

  Please submit any questions or comments about this Privacy Policy, or about our use of your personally identifiable information to our account assistance form at /help/contact/ or by postal mail at the following address: Canonical Group Ltd, 27th Floor Millbank Tower, 21-24 Millbank, London, England, SW1Q 4QP.

Any data stored on a cloud worth protecting should be encrypted. Might not stop the US from getting it and also might not stop the US from decrypting it but it should be made as problematic as possible ;-)


How can I bind logitech mx anywhere side scroll button press to raise and lower volume

depending on your desktop environment

first bind a random keyboard shortcut in Settings->Keyboard->Application Shortcuts to:
amixer set Master 5%+
 amixer set Master 5%-

then bind the keyboard shortcut to a button
for that try BTNX-Config. It works great.

https://github.com/cdobrich/btnx/blob/master/INSTALL

download, make, install.

  cd' to the directory containing the package's source code and type
   ./configure to configure the package for your system.

  Running configure might take a while.  While running, it prints
   some messages telling which features it is checking for.
  Type make to compile the package.
  Optionally, type make check to run any self-tests that come with
   the package.
  Type make install to install the programs and any data files and
   documentation.
  You can remove the program binaries and object files from the
   source code directory by typing make clean.  To also remove the
   files that configure created (so you can compile the package for
   a different kind of computer), type make distclean.  There is
   also a make maintainer-clean target, but that is intended mainly
   for the package's developers.  If you use it, you may have to get
   all sorts of other programs in order to regenerate files that came
   with the distribution.


The computer name in the terminal isn't showing

Seems that you changed the file ~/.bashrc.

To edit it run

nano ~/.bashrc

You could try using this Default Version of the file ~/.bashrc

Interesting for your problem are the lines starting with PS1=.... there you need to set the \h which will be replaced by your PC's hostname.

Make sure that after the changes you run

source ~/.bashrc

to make your changes take effect


local hard drive missing after installing ubuntu over win8

Boot your windows 8. Go to control panel search for disk partation. That D drive must be hidden. Or its be unmounted after the install check the partation and give it mount location D:/ and you are done.


Hardware question; booting ubuntu off of USB flash drive?

Yes, if you want to use usb 3.0 speed, then get a usb 3 hub. A hub should not affect performance.

Generally we do not do hardware recommendations here, there are several options I saw on a casual search.


How does one read the contents of a text file located on the desktop using the terminal?

Open a terminal window. By default, you will be in your home directory.

cd Desktop

ls

cat "filename"

Example

cd Desktop

ls

cat file1.txt


After a lot of searching:

Add the following to your hgweb.config file:

[web]
templates = /usr/share/mercurial/templates


Fixed it. I learned of the cut command. The last two lines now look like this.

${color #42AE4A}Core 0 Temp: ${color lightgrey}${exec sensors | grep 'Core 0' | cut -c18-21}
${color #42AE4A}Core 1 Temp: ${color lightgrey}${exec sensors | grep 'Core 1' | cut -c18-21}


Files and folders starting with a dot are hidden files in Linux. To show them in the file manager (nautilus?) the standard Keyboard shortcut is Ctrl + H. To hide them again use the same shortcut.
A relevant link (I hope):
How to show hidden files in Nautilus 3.20.3 Ubuntu 16.10?

Or search the internet for "linux show hidden files" and the name of your file manager of choice


Can't install rtl8192eu-linux-driver on UBUNTU 18.10

I have found the driver that works fine for me in here : https://askubuntu.com/a/832092/929631

As it's mentioned, run these commands to compile the driver:

sudo apt update
sudo apt install git
git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
make
sudo make install

After this, you need to block the previous driver rtl8xxxu with this command :

echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf;

And force RTL8192EU Driver to be active from boot:

echo -e "8192eu\n\nloop" | sudo tee /etc/modules;

Newer versions of Ubuntu has weird plugging/replugging issue (Check #94). This includes weird idling issues, To fix this:

echo "options 8192eu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192eu.conf;

Update changes to Grub & initramfs:

sudo update-grub; sudo update-initramfs -u;

Reboot system to load new changes from newly generated initramfs:

systemctl reboot -i;

And check if the right driver is installed or not :

sudo lshw -c network;

You should see the linedriver=8192eu


Ubuntu 18.04 suddenly Shut Down with ext4-fs error (device sda6)

All these errors are hard drive errors. The hard drive is failing. You did say you have been using it for a long time. Time to back up all important data and replace the drive.


GNOME 3 FN + Arrow causes crossed out circle to display

I really don't know how MacOs Works, but you can customize the keyboard short cuts on Gnome, Please follow the steps on this link
https://help.gnome.org/users/gnome-help/stable/keyboard-shortcuts-set.html.en


minimal gnome classic on a mini.iso ubuntu 12.04

Just run sudo apt-get install openbox or if you want a proper setup replace openbox with lxde.

By the way this isn't GNOME.


TP-Link AC600 Archer T2U Nano driver for Ubuntu 18.04

For a more stable driver, try this:
    sudo apt install git dkms
    git clone https://github.com/aircrack-ng/rtl8812au.git
    cd rtl8812au
    sudo make dkms_install


Difference between Backup and Import bookmatks in Firefox

Short answer:

Backup/Restore it creates a .json file that you can use on FF only.

Import/Export it creates an HTML file that can be used with FF or other browsers.


How do I "print" to a PostScript file from LibreOffice Write?

I eventually came cross the solution by accident, but it is also dealt with at the URL given by nomnex (was above, now below!).

File=>Print: Select PDF
Choose Options Tab: Select Print To File
Press "Print To File" button, select the destination directory, and enter the filename. It seems that the only option here is to print to .PS format.


UPDATE: for some reason, synaptic managed to reinstall the package in place, whereas I couldn't get it to reinstall using the command line. Anyway, it is fixed, so, I guess the lesson is go for the simple answer first...

Thanks to N0rbert for the help.


18.04 LTS Colors help: want to keep desktop scheme without making interfaces unusable

Coming from a Windows environment, I'm not used to so many possibilities for customization. What I've learned today is that most apps in Linux can adjust their themes, something I never did in Windows. I selected a lighter theme in Gimp's own preferences, and have found the same option in other apps. Problem solved.


I have found it's solution.

Step 1: Follow the steps 1 and 2 define in the article https://itsfoss.com/fix-ubuntu-freezing/

Step 2: Then use this article Unable to login to account in ubuntu 18.04 vmware workstation 15, after update

I hope it will help for others


Ascii art animation demo program "bb": animation freezes when sound output starts

The issue is apparently that bb is not compatible with PulseAudio, which is what Ubuntu uses by default. There is a note about this hidden in a read-me file that comes with the package:

$ cat /usr/share/doc/bb/README.Debian
BB vs PulseAudio
================

Unfortunately BB does not work under X if PulseAudio is active and
Music is requested. Due to this issue Music in BB is turned off by
default in Debian.

If you have PulseAudio installed and want to show off BB with Music,
you can do that by either:

* switching to the virtual text console and running "bb" there, or by

* temporarily letting PulseAudio release the audio hardware and hiding
  from "bb" the fact that there is a PulseAudio server with the
  following command:

  pasuspender -- env PULSE_SERVER= bb

This issue is tracked in the Debian Bug Tracking System at
https://bugs.debian.org/761023

 -- Axel Beckert <abe@debian.org>, Sat, 11 Apr 2015 15:22:37 +0200

As described in the question, running bb in a TTY didn't change anything for me though (maybe because the desktop was still running, probably I should have booted into text mode?).

However, the proposed command for letting it bypass PulseAudio worked awesomely well:

pasuspender -- env PULSE_SERVER= bb


Toggle hidden files on and off when using :Lex command in Vim

use gh to toggle hidden files, from :h pi_netrw.txt

  The "gh" mapping (see |netrw-gh|) quickly alternates between the usual
  hiding list and the hiding of files or directories that begin with ".".

also from :h netrw-gh:

  netrw-gh netrw-hide
  As a quick shortcut, one may press >
      gh
  to toggle between hiding files which begin with a period (dot) and not hiding
  them.

If you were using a plugin like NERDTree the equivalent would be I to toggle hidden files.


Can't Install vmware-view-client from partner repo in Saucy

Try installing using synaptic.  If Synaptic Package Manager is not installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install synaptic

Once installed open synaptic from Dash, and search for vmware-view-client.  Once found, right click on it, and choose Mark for Installation.  That will take care of installing all the necessary dependencies.  See image below.

Once done, just click on the green check mark to apply the changes.

To download libudev0


Why I have lack of space in root directory?

should I reinstall my OS and allocate more space for "/" directory

You can also "resize" using a live session. 10Gb can be enough though. Just make sure user content is on your /home. If you install MySQL the database will eat up space from / if you leave it as is. Same for Apache and any other server tool.

  or I don't understand something because now I have only 2GB free from 10GB of root directory, and I'm afraid when I'm going to install more software it's gonna be full

Or remove software you do not need. 8Gb is a lot. I hardly get to 7Gb and I do have 3 browsers, Apache and MySQL installed.


How do I start Deluge in the background?

Deluge has a daemon too. I haven't tried deluge since I started using transmission, and I've never tried deluge's daemon, but I know it has one. You might have to install the daemon (deluged) separately. It may be as easy as putting the following line in /etc/rc.local:

sudo -u yourusername deluged

but read the manual page for deluged first (man deluged). You might have to tell it to use the same configuration as the gui version, and it may have a separate init or upstart script, in which case you'll want to edit those instead of /etc/rc.local.


How to reset compizComfig settins from tty1

Try this command on tty to  reset compiz,

rm -rf ~/.config/compiz-1/compizconfig/*


That is allright, your swap is encrypted, gparted just does not detect the encrypted swap as it is encrypted.


Connecting ubuntu server to the internet

If your access point is using WPA rather than WEP (I hope it is - WEP security is poor), then you need to change the keywords in the /etc/network/interfaces file accordingly:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid WIFI-NAME
wpa-psk WIFI-PASSWORD

A wpa.conf file should not be necessary AFAIK.


Gedit is GNOME's editor. It doesn't come installed by default on Kubuntu. You can install it with

sudo apt-get install gedit

Or use another editor already installed, like kate:

sudo kate /etc/modules


The output option to HDMI was not shown. In pavucontrol, you could set the whole device to

  Digital Stereo (HDMI) Output

This might fix it for you.


How can I move Ubuntu HD to a new computer

It is possible under one condition

  All the hardware in the new computer will work in that Ubuntu
  installation if both the computers have either the same hardware, or both computers have only the kind of hardware that does not need any proprietary drivers.

All Opensource

The answer depends on the hardware of the two computers. Ubuntu uses opensource drivers when possible. These drivers are part of the Ubuntu kernel. So, if both computers have all hardware that do not need any proprietary drivers, then moving the drive from one computer to the other will work.

Graphics and WiFi drivers

Graphics card manufacturers and WiFi card manufacturers don't always make public all the details of their cards, making it difficult to write opensource drivers for these  cards. The manufacturers then provide proprietary drivers for their cards.

Suppose your first computer has an AMD graphics card, and the second computer has a NVIDIA graphics card. If Ubuntu installation uses AMD proprietary drivers, it won't work in the second computer. Without the graphics card being recognized the computer won't boot or will have a black screen.

Similarly, if two computers have different WiFi chips that need different proprietary drivers, then the WiFi won't work after you move the internal drive from one computer to the other.

Hope this helps


RSS Reader that can fetch and show the older items of a feed

I use the webapp: http://www.feedly.com/

You can import your google reader accuont. You can install chrome and firefox extensions, but android app is not the best.

Enjoy!


there should be a  option within windows to create recovery media. I used a flash drive for my windows 8 machine. this comes straight from microsofts website how to create recovery media.

Swipe in from the right edge of the screen, and then tap Search.
(If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.)

Enter recovery drive in the search box, and then tap or click Create a recovery drive.

Administrator permission required You might be asked for an admin password or to confirm your choice.

After the recovery drive tool opens, make sure the Copy the recovery partition from the PC to the recovery drive check box is selected, and then tap or click Next.
    Note

    If your PC doesn’t have a recovery partition, then the checkbox is greyed out and the recovery drive will include only the recovery tools and a bootable image, but not a recovery image to use for refreshing or resetting your PC.

Insert a USB flash drive into your PC that is at least as large as the size indicated on the screen.

Tap or click the USB drive you would like to use for your recovery drive, then tap or click Next.

Tap or click Create.

The recovery image and necessary recovery tools will be copied to your USB flash drive, which will take a while, depending on your PC and the size of the recovery image.

When the process is done, do one of the following:

    If you want to keep the recovery partition on your PC, tap or click Finish.

    If you want to remove the recovery partition from your PC and free up disk space, tap or click Delete the recovery partition. Then tap or click Delete. This will free up the disk space used to store your recovery image. When the removal is done, tap or click Finish.

Remove the USB flash drive.

This is now your Windows 8.1 recovery drive, and you'll need it if you ever need to refresh or reset your PC. Keep it in a safe place and don't use it to store other files or data.
Notes

    If your PC came with Windows 8 and you upgraded it to Windows 8.1, your recovery drive will include Windows 8, and you’ll need to upgrade to Windows 8.1 after you refresh or reset your PC.

I have been using Ubuntu and sabayon in dual boot configuration, converted my disc to MBR, and completely wiped all traces of windows 8 off my system. Hopefully that helps you figure out what you need to do to backup windows. you could just install ubuntu alongside windows 8.1 as well. Ubuntus installer is very helpful in helping you figure out how much space you want to give to ubuntu.


How to make sub domains run on ssl along with domain

As it stands, you can't.

Your certificate (I'm assuming) is for www.example.com; not for js.example.com, css.example.com or anything else.example.com.

A certificate that is for anything.example.com is a wildcard certificate and they cost more.

An alternative would be adding Subject Alternate Names (SAN) to your certificate to cover js.example.com and css.example.com, but you'd have to do that at the requesting stage - you can't do it retrospectively.  Chances are, there would be charge for that too.

So your options are to purchase a replacement certificate, or alternatively, move your css and js to a subdirectory on your website so that they are accessed as https://www.example.com/css and https://www.example.com/js using your current certificate.

However, if you have purchased a wildcard certificate or a certificate with SANs that cover all your various domains and are still getting errors, then the issue is likely to be with Apache.

You need to make sure that the Apache subdomain for both ccs and js are also using https.  If they use http you'll get the warnings you state.


How to send input to all splits in Byobu?

The keyboard shortcut is Alt+F9 , this will the toggle tmux's option synchronize-panes

This functionality is available by default since version 5.87 - https://github.com/dustinkirkland/byobu/pull/4

Source: http://fazlearefin.blogspot.com.au/2014/09/synchronize-panes-in-tmux-and-byobu.html


What option do I have if I get a kernel panic due to error in memory?

The mem test showing errors tells you that you have a bad memory module, your data is safe in your hard disk and should not be affected.

Possible solutions to make your system boot again:

Remove one by one the memory modules in your computer and try booting again, replace if possible the bad memory module with a working one;

It should be easy enough to locate, remove and install modules in any computer. They are normally located near the CPU socket:

Restore the memory modules that are good back to their original positions.

Make a backup of your disk and restore it in to a working computer, with minimal work you will be able to boot it up in to your working environment without issues.


Is there a shell-independent search tool like the Unity's Dash?

No, there are no alternatives that present results like Unity's Dash nor as convenient. You can, however, use one of the semantic launchers available for linux:

Old but gold: Gnome Do
Better and newer: Kupfer
My favorite (I am using it all the time, much faster than the dash): Synapse

All of them are in the USC.

Here is a link to synapse: USC LINK


How to use Byobu keybindings in a nested remote session?

I'm assuming that you configured byobu to use Ctrl-A as tmux's escape sequence.

The commands that you type in your terminal are first handled by your local tmux instance, then handled by the nested tmux session. This means you need to escape twice to go to the nested instance:

Ctrl-a c # opens a window in your local session
Ctrl-a Ctrl-a c # opens a window in your remote session

If the second line does not work, try (as pointed out by @artm)

Ctrl-a a c # second a without Ctrl


Partition size for dual boot with Win 8 (UEFI) and Ubuntu (latest desktop version)

When the installation starts, it first ask you whether you want to install or you just want to try it.

If you choose to install, you get a basic partitioning tool.
But if you choose to try it you get a powerful partitioning tool called GParted which allows you to select all the partitions you want and then apply all the modification which can't be done with the basic tool. After that you can run the install and select which partition you want to use for Ubuntu by selected "Other" instead of "Replace Windows" or "Install alongside windows".

You can always resize or move a partition but be aware that moving a parition is very slow.
Also I don't think you can move a partition if it is the partition that is being booted (I would advise you not to move Windows 8 partition).
What you could do is making 3 paritions

A /home partition of 60 GB, that's where your Movies, Documents, Pictures, emails are stored, that's the partition you will want to resize in the future.
A / partition of 32 GB, that's where you programs are installed (Steam games are in /home, don't worry :P)
A swap partition of 8 GB, that's where the RAM puts data when it's full. The amount of swap really depends on your need (see this post for more information).

Put these partitions in that order just after the partition of Windows you would like re resize in the future.
That way, in the future, you would scale down that Windows partition and that would leave you more space for the /home partition.

Also, don't listen to people on the internet saying that you can only have 4 partition, with Windows 8, you surely have GPT and not MBR (more (advanced) info here).


Why is the size of /proc/kcore smaller than RAM?

I am seeing the same behaviour on my system:

free -m
             total       used       free     shared    buffers     cached
Mem:          2011       1877        133          0        128        685
-/+ buffers/cache:       1063        947
Swap:         2099          1       2098

ll /proc/kcore
-r-------- 1 root root 1016M 2011-12-06 01:09 /proc/kcore

Ok, I am not so sure about that but this could be related with HIGHMEM/LOWMEM issue on 32bit systems.

Look at this:

dmesg | grep MEM
[    0.000000] 1158MB HIGHMEM available.
[    0.000000] 887MB LOWMEM available.

via linux-mm

  Why highmem

  Currently the 32 bit x86 architecture is the most popular type of computer. In this  architecture, traditionally the Linux kernel has split the 4GB of virtual memory address space into 3GB for user programs and 1GB for the kernel.

  ....

  Coping with highmem

  However, many people insist on using more than 1GB of physical memory
  on such a 32 bit system. This makes it necessary for the Linux kernel
  to jump through some interesting hoops...

  Basically the system uses the following tactics:

  Memory above the physical address of 896MB are temporarily mapped into kernel
  virtual memory whenever the kernel needs to access that  memory.

  Data which the kernel frequently needs to access is allocated in the lower 896MB of memory (ZONE_NORMAL) and can be immediately
  accessed by the kernel (see Temporary mapping).

  ...

So, I think we only see kernel reserved memory space with /proc/kcore. By the way, I am using an 32bit Ubuntu version, too.


How can I make Xfce4 look like Ubuntu 10.04/10.10?

The screenshot from your question demonstrates GNOME 2.3x, not Xfce.
So you have to simply install MATE DE (which is a fork of GNOME 2 using modern software components) as in Ubuntu MATE by
sudo apt-get install ubuntu-mate-desktop^

on any  Ubuntu LTS release like 18.04 LTS or 20.04 LTS and you will get needed look and feel.
Or do fresh install of Ubuntu MATE from its installation media.
Then switch panel layout to Traditional from MATE Tweak and enjoy:

While using Xfce, which is installable by sudo apt-get install xubuntu-desktop^ you can get some similarity by launching Xfce4 Panel Profiles (by installation of xfce4-panel-profiles package and executing the command with same name afterwards) to select GNOME 2 profile, but System item will be missed:


How to stop Wireless AP Hosting using Network Manager on Ubuntu?

You have to remove interfaces from the vbridge before it can be deleted. These commands should do it:

killall hostapd
brctl delif br0 eth0
brctl delif br0 wlan0
ifconfig br0 down
brctl delbr br0
service networking restart


Installing Ubuntu on a Windows 8 UEFI laptop?

I've gotten that grub> prompt before when trying to write a live iso. It sounds like the live usb wasn't created quite right, usually the live iso's (especially Ubuntu's) have pretty menus and even a timer that will automatically start it in a few seconds, getting a grub> prompt means it didn't load the menu correctly. I don't think it's related to the boot options since it did get to a grub> prompt from the USB, so at least that's good.

There's probably a way to edit some files on the usb to get the menu to show up correctly, but it's far easier to just write the iso to the usb again with a different tool that will hopefully work correctly this time.

If you can boot another Ubuntu try using ubuntu's usb-creator Ubuntu Documentation Installation/FromUSBStick

Or if running in Windows try PenDriveLinux.com's Universal USB Installer

Or also for windows try Linux Live USB Creator (also linked on the Ubuntu Installation/FromUSBStick page above)

Usually that unetbootin tool is supposed to at least work, but I've found it doesn't use the regular (nice) menus that the iso creators have setup

Of course, make sure the iso file doesn't have errors, check it's MD5 or SHA1 against what it's supposed to be.


Mounting NTFS Partition that all users can read but only root can write too?

In /etc/fstab:

/dev/sda5 /media/disk ntfs-3g defaults,uid=0,gid=0,fmask=0022,dmask=0022,noatime


I want to install vim with ruby support on Ubuntu 15.04 vivid vervet

OP solved own problem (see comment) by installing vim-gnome:

  Just want to confirm that I removed vim installed vim-gnome and executed vim --version | grep -i ruby and it returned +ruby so I am good to go.


Rsync (more) (examples) itself is a viable option, which

allows you to specify a series of source and destination directories, and
due to its --dry-run option which shows you what will happen without actually moving files (as described in point 9 here).


How do I install the ASUS USB-AC51 Wireless Adapter?

I struggled to make it work on modern distributions, but since Kernel 4.19 there is native support for mt7610u. Fedora 30 and Ubuntu 19.04 has this kernel version.

These distributions should work without any additional effort.


How to install an old version of Firefox side-by-side to default version without conflicts?

You have three options.

Use a portable version of firefox.

You can check the link for details: Using portable firefox and fixing flash

Use Virtual machine and use firefox therein.
Install two versions of firefox. (Probably this is what you are looking for.)

Download the older version of firefox from the archive: Mozilla.org_ftp_site

Unzip to a path.

Next open terminal and use the following command to add a new firefox user.

firefox --no-remote -P

Create a new user, take note of the user-name.

Next, create a launcher for the 'firefox' you just unzip. Go inside the unzipped folder , there you will find a firefox file (probably binary) which launches the program.
When creating the launcher, update the command as:

/path/to/unzipped/firefox --no-remote -P "<user-name>"

Creating launcher in Ubuntu

And now, when you will use this launcher then older firefox (which you want to use for testing) will open. Important - check the build version to verify.

In the url bar ->     about:

(Your newer version of firefox will not be affected, and it has firefox --no-remote -P "default" as command.)


Failed to fetch ... Hash Sum mismatch. tried rm apt/list but didn't work

If deleting /var/lib/apt/lists/* does not work...
(esp. if you're behind a proxy), fix "Hash Sum Mismatch" like this:

Create file
/etc/apt/apt.conf.d/99fixbadproxy
with this content

Acquire::http::Pipeline-Depth 0;
Acquire::http::No-Cache true;
Acquire::BrokenProxy    true;

See also here


How do I configure global internet connection on Ubuntu 14.04?

It seems your repository settings have some problems.

Run /usr/bin/software-sources.

This program configures package repository.

You can see 'Additional repositories' tab. You can uncheck 'cdrom:[Linux' after clicking that tab to avoid "CD-ROM" message. Then, choose 'Official repositories' tab. And choose proper 'Mirrors' with labled 'Main' and 'Base'.

After choosing, click 'Udate the cache' button or run 'sudo apt-get update' in terminal.


Same thing here,

I think the initd scripts are executed out of sequence.
And my nfs is not mounted because of no network when fstab is executed.

After waiting 120 secs "for network configuration" I got network back by:

ijbd@ZEN:~$ sudo /etc/init.d/network-manager restart

got my nas=nfs back with:

ijbd@ZEN:~$ sudo mount -a

gmail and LinkedIn applets also affected, but I can login via browser.

I avoid the startup delay using Suspend rather than Shut Down.


How do I install the latest version of VirtualBox on Ubuntu 14.04 (Trusty Tahr) LTS?

From Virtualbox:

To install the latest virtualbox, first remove the previous versions of Virtualbox by typing the command:

sudo apt-get remove --purge virtualbox*

Then, add source:

sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian trusty contrib"

Add the key:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Then, to install do:

sudo apt-get update && sudo apt-get install virtualbox-5.0


Installing ubuntu 13.04 using existing home partition fails

You can use the adduser command from the recovery mode to add a new user.

For example, if you were to create a user with administrator privileges named john, the command would look like this:

adduser john --group sudo

If the old home directory is intact and properly mounted, you could try specifying its path:

adduser john --group sudo --home /full_path_here


Open your terminal and run these commands:

sudo /etc/init.d/apache2 stop
sudo /opt/lampp/lampp start

Replace /opt/lampp/lampp with the directory where LAMPP is located in your case.


Steam Giving Fatal Error on Launch Ubuntu 18.04

Alright, my solution was to go to ".steam" in your home directory(make sure show hidden files is checked) and move "ubuntu12_32" somewhere else, I put it in trash. Then I relaunched steam and let it update and it was fixed. Don't delete the file permanently unless it works through this method.


Remote connection from windows to ubuntu 20.04

Install NoMachine in your ubuntu pc and then you can access it from windows PC


Why starting any GNOME based program over SSH takes about 30 seconds?

30 seconds sounds an awful lot like DNS timeout.

Update the question with:

time ssh localhost echo
time ssh -YC user@remote echo
time ssh -YC localhost gnome-calculator

My guess is that remote cannot make reverse lookup of your IP-address. So try adding this in server:/etc/hosts

 i.p.n.o myclient

where i.p.n.o is your clients IP address.


Shutdown, logout, restart not working in 13.10

I also had this problem, and I personally did not like the hack proposed at the associated bug report by user Fabounet (cf. UBod's answer), mainly because it means you have to apply the hack again and again each time you update Cairo dock.

I came up with a (in my opinion) cleaner workaround, which I also posted at the bug report. It basically involves adding another item to the panel which also has Shutdown/Logout/Suspend/Restart functionality:

Hold down Super+Alt, right click on the Gnome panel, and click on Add to Panel... in the menu that pops up.
In the drop-down list that appears, look for the item User menu (described as Menu to change your settings and online status), select it, and click Add.

This will add a user menu to your panel. It shows as an item displaying your name with a speech bubble beside it.

The nifty thing is that this item also got menu points for Switch user, Log out and Power off (the latter of which lets you choose between Supend, Restart and Shutdown), and these work, as opposed to the same entries of the "default" gear-wheel item in the upper right corner of the panel.


How to "use" ZFS native encryption on ubuntu 19.10

AFAIK, the encryption code hasn't been released by the current copyright owner, Oracle, so it doesn't appear in any free implementation of ZFS.  https://en.wikipedia.org/wiki/ZFS#Encryption for more detail.

As noted there, GELI can be used to the same effect if you're running BSD but that's not entirely relevant here.


Various ppa's still appear in the list after removing them from the Software GUI

Deleting files in /etc/apt/sources.list.d is the wrong way to solve your problem. You shouldn't be poking around in parts of the system that you don't know what they do. The correct way to remove PPA repositories is from Software & Updates "other software" tab. Cheers, Al


Where does wallch save the list of pictures and folders it takes pictures from?

It would be rather difficult to remove the current wallpaper from Wallch's list while Wallch is running and chaning wallpapers, as the list is accessed by memory (also saved in ~/.config/Wallch/MainWindow.conf, but it is not read by there live, this location is used to restore the playlist, if e.g. computer is crashed or program is not shut down properly).

It would be much easier to make a script that autochanges the background while reading an album.wallch file using the command

gsettings set org.gnome.desktop.background picture-uri "/path to image/here.jpg"

and a 'while' loop. Example:

while read line; do
   gsettings set org.gnome.desktop.background picture-uri "$line"
   #here do what you want, remove image from the file being read, move image to trash
   #(located in ~/.local/share/Trash/files) and mark it as not wallpaper material.
   sleep $timeout #<- sleep the timeout you want until the next image
done < album.wallch

Another solution, but too complicated would be the following:

Start Wallch normally and add some images, if there aren't any in the list
Quit Wallch (Ctrl+Q)
Start Wallch in a terminal using the command wallch --constant
Remove the corresponding wallpaper from ~/.config/Wallch/MainWindow.conf
Do whatever you want to do.
Repeat from step 3.

But I would really suggest the 1st solution, making your very own script for this, if you want to use Wallch only for changing the background image, you should totally use the direct command

gsettings set org.gnome.desktop.background picture-uri "/path to image/here.jpg"


Wifi suddenly stopped working Ubuntu 14.04

The wireless driver is not installed. Run in terminal

sudo apt-get install bcmwl-kernel-source

The driver does not build for the currently installed kernel.

There may be a bug, or it did not fully install with headers.

Run

sudo apt-get install linux-generic-lts-utopic

this should fix problem with your headers.

As an alternative you can upgrade your kernel to 3.19 by running

sudo apt-get install linux-generic-lts-vivid

and reboot. It can solve these issues.


Bootloop after upgrading to Ubuntu 18.04

Ok, I finally booted ubuntu live and used the reinstall option. This works great if you use exactly the same username and password.


You can change the format and language of your time and date by going to "language support" (type it in the dash) in the tab "regional format".


For Ubuntu v11.04 Only
N.B. this does not work with later versions of Ubuntu.
Unity Launcher Editor

To install run this in the terminal ( Ctrl + Alt + T )
sudo apt-get install bzr
bzr branch lp:unity-launcher-editor

Then, to launch it, go to your home
folder and you should find a folder
called "unity-launcher-editor" -
inside this folder you'll find another
folder "unitylaunchereditor" where you
must double click the file called
"main.py".

Source


Can't swich between Ubuntu and Microsoft and am stuck in Ubuntu. Please help!

This is a UEFI computer, correct? You need to go into the EFI settings, select boot EFI file, then it should give a menu with something like microsoft, ubuntu, blah blah blah. Select microsoft then select the EFI boot file for it and it should start windows. When it starts windows you should shut it down fully instead of hibernating or fast shutting it down. Also, please note that dual booting windows 8.x and linux of any kind is VERY unstable at this point and probably will be until windows changes how windows operates because at the moment trying to chain load into the windows bootloader ends up not going well at all and it is recommended to either use an external usb to boot into a full partition on the drive or even hot swap drives if you are okay with that type of thing.


It is not possible to install iOS on VirtualBox because iOS is only for ARM-based processors, and VirtualBox does not support hardware emulation of the ARM architecture. Unlike Android, iOS isn't open source so you can't recompile it for x86 processors. Plus, you'd need to write a custom boot loader for iOS somehow.

A company called Corellium is claiming to be the first business to offer a virtualized iOS device experience to developers and testers. The company is defining this as the "future of mobile development" which will give developers instant access to run their creations on virtualized iPhones and iPads on a Mac or PC which are running actual real versions of iOS. Corellium is for developers, not for ordinary users.


What is the conventional directory to install Hadoop into?

Hadoop can be installed as a snap package in all currently supported versions of Ubuntu. Open the terminal and type:

sudo snap install hadoop --channel latest/beta

This snap installs Hadoop 2.7.3 from the Apache Bigtop 1.2.0 release.


'sudo nping -xxxx' command from script. how to disable the password request from sudo

You can use the which command to find where are located command. Here is a little example with ls :

damadam@Pc:~$ which ls
/bin/ls
damadam@Pc:~$ /bin/ls
Bureau        node_modules       Public        Vidéos      Images
desktop_session  Modèles       openxenmanager     Shared
Documents    Musique       package-lock.json  Téléchargements
damadam@Pc:~$

Refered to : How do you find the directory of a command?


How to correctly install the latest Mono, Moonlight and Monodevelop instead of the version in Ubuntu repository?

This is a somewhat vague answer, I know, but I hope it helps:

Download the appropriate tarballs from http://ftp.novell.com/pub/mono/sources-stable/
Follow the instructions for compiling at http://www.mono-project.com/Compiling_Mono_From_Tarball

The only dependencies listed on the latter page ARE NOT necessary for version 2.8, so you should (hopefully) have most everything you'll need already. But you're probably much more knowledgeable about this than I am, so hopefully the instructions there will give you all the info you need. Also, if you build from source, you shouldn't have any problems with the Ubuntu repo versions (unless you haven't completely uninstalled them already).

Good luck!


The syntax to open any file in its default application is

xdg-open <file_name>

If you want to have some fun and play the video in the terminal itself, install mplayer (sudo apt-get install mplayer) and run

mplayer -vo caca <movie_file>

It doesn't run directly in the terminal window, but it does display in ASCII characters.


Unable to install/boot 11.04 on a ThinkPad L520

Using any of these Boot Options allows the installer to work: acpi=off, noapic & nolapic.

I have posted another question asking about what they do and problems associated with them.


search for applications (not in $PATH) from unity dash

You'll need to create a .desktop-file for it and place it in either /usr/share/applications/ to make it system wide or ~/.local/share/applications/ to add it for your user only. To get an example of what the file should look like, including quicklists, see this answer: What Custom Launchers and Unity Quicklists are available?. You'll just change the name, comment, exec, icon and add optionally add some quicklist entries.


Give a user access to a database, but not to containing folder

I think I have found a way, or a partial solution. From this post: https://unix.stackexchange.com/questions/82347/how-to-check-if-a-user-can-access-a-given-file
stat and inotifywait commands doesn't help because they give the same output regardless user is accesing to the folder or just using the programm.
But maybe audit can help me. Communicating with a subproccess of the programm I can send an alert to the root at the program saying "user acceded to database folder", while the shoper is gonna be the only one one who makes copies of db, at the cloud in my case.


Can gnome-screenshot save freehand selected shots?

If you're using the keyboard shortcut Shift+Ctrl+PrtSc to capture "freehand selections", they are not saved anywhere, they just get copied to the clipboard. You can then paste them to other applications, for example GIMP.

If you want to capture "freehand selections" and save to Pictures by default, then try any of the following.

Use Shift+PrtSc instead of Shift+Ctrl+PrtSc.
Use the following command

gnome-screenshot -a

Use the "Screenshot" application. It lets you capture the screenshot and provides the options to save to a specific folder or copy to clipboard.


FFMPEG: Two smaller IP cameras with background of another camera, stream to youtube

I would use OBS Studio.  It's free, open source, available in the repos and has built in support for streaming.  You can and overlay multiple video sources on top of each other (picture in picture or PiP), etc.


Network manager: shared connection and manual settings of the interface

To do it through network manager using gui

dnsmasq-base has to be installed:

sudo apt-get install dnsmasq-base

Remove dnsmasq because it conflicts with NetworkManager:

sudo apt-get remove dnsmasq

NetworkManager version 0.7, shipped with Ubuntu 8.10 and later, contains a redesigned user interface for managing network connections.

Among the new features and UI is an option to make a connection “Shared to other computers”. This is basically a dead-simple NAT (Network Address Translation), or Internet connection sharing, built right in to NetworkManager.

To enable this, you must follow three steps:

Install dnsmasq on your computer. (On Ubuntu, you will want to install the dnsmasq-base package. (apt-get install dnsmasq-base is the easiest way)

Make sure your WAN connection (i.e. Internet-connected connection) is all configured (e.g. with DHCP or a static address) and working. Basically, make sure you can pull up web pages.

For your LAN interface (which might be a second network card or a wireless
card), select “Shared to other computers” in the IPv4 Settings tab.

If everything works right, NetworkManager should have auto-configured a subnet and DHCP server on your LAN interface, and is ready for sharing your Internet connection.

To do it through terminal

It's very simple to masquerade (internet connection sharing in Windows language ) on Linux with a few lines of iptables and ip_forward commands.
First of all you have to flush and delete existing firewall rules.
So flush rules by typing in terminal:

iptables -F
iptables -t nat -F
iptables -t mangle -F

Now delete these chains:

iptables -X
iptables -t nat -X
iptables -t mangle -X

Now it's time to save the iptables rules so type:

service iptables save
service iptables restart

Now all rules and chains have been cleared!
Check it in /etc/sysconfig/iptables which has all default rules set to accept.
Now open /etc/rc.d/rc.local and insert the line:

echo "1" > /proc/sys/net/ipv4/ip_forward

And then save and close the file.
Now asuming that your internet interface is eth0, type:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
service iptables save
service iptables restart

Note: check if iptables is set to start during boot up.
Or check the status of your iptables service:

chkconfig –list iptables

If level 5 is on then it's ok othewise start the service at level 5 or level 2345.

Citation:

https://jeremy.visser.name/2009/03/simple-internet-connection-sharing-with-networkmanager/

https://www.howtoforge.com/internet-connection-sharing-masquerading-on-linux


Installing libboost-python-dev for python3 without installing python2.7

I have resolved to compiling and installing boost myself (I also installed/compiled Python 3.6 myself.). I have in my Dockerfile now:

# We have to compile it ourselves against the custom Python and cannot use Debian package.
# Includes a symlink workaround for: https://svn.boost.org/trac10/ticket/11120
RUN cd /usr/src && \
 wget --no-verbose https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz && \
 tar xzf boost_1_65_1.tar.gz && \
 cd boost_1_65_1 && \
 ln -s /usr/local/include/python3.6m /usr/local/include/python3.6 && \
 ./bootstrap.sh --with-python=$(which python3) && \
 ./b2 install && \
 rm /usr/local/include/python3.6 && \
 ldconfig && \
 cd / && rm -rf /usr/src/*


apt- “Unable to locate package” error in Ubuntu 18.04 on Mac when trying to set up VPS

There is no indeed any package like <username>. As I can see there, the confusion arose just because user they added had the similar name as of package. Package name is still squid. Install that using:

sudo apt install squid


How to rotate screen in Ubuntu using terminal?

You should use xrandr command.
xrandr -o normal takes your screen back to normal (landscape) rotation.

You can check this command typing xrandr -o left and then get back to normal.


python2.7 broken by weakref import error, please help!

This isn't an Ubuntu solution, but because this question appears high in search results for the error, I wanted to say that I had this error on OSX because my default system Python was 2.7, and I brew installed "python@2" while installing another package.

If you're on OSX and are using homebrew, check your packages installed with brew by running brew list, and if "python@2" appears in that list, and Python  2.7 is your system Python, you can remove the brew installed package with brew remove python@2 --ignore-dependencies


How do i make my server connectable from anywhere?

To make your server visible from outside your LAN, you will need the following:

Setup NAT on your router to point port 80 to the web server (or the port your web server listens to).
You could also use any service like DynDNS to access your webserver without having to know your public IP address. This is very usefull if your IP is dynamic and changes from time to time (or when you reboot your router).

With this changes, you should be able to access your local web server from the internet.


Adding a PPA to our sources give us the advantage to install newer application versions that did not yet find their way into the official repositories.

However by doing so we may also introduce instabilities from not yet fully tested releases.

In case we keep the PPA active this will also automatically install any software upgrade that was provides from this PPA. By this new bugs may be introduced. It is therefore good practice to inactivate a PPA after we had successfully installed a package we are happy with.

This can be done by just unticking a PPA from Software & Updates. By this we can easily activate it again in case we want to upgrade later:

Only if we are sure that we always want a fresh new release of any package, and the PPA will not provide updates for other packages we may keep it active.

Few PPAs will also provide security updates. In this case we also may want to keep the PPA active. However in general having packages from a PPA is not without risk.


XPS 13 (2015) Incredibly slow on Ubuntu 18.04.4 LTS

One thing you can check is the available space for the system.
Accumulated dust can make cooling lose effectiveness resulting in slower CPU performance. It is recommended to take apart notebooks and clean them every few years.


The promise that a certain version of Ubuntu will be supported for a specific number of mounths does not necessarily mean a promise to fix all bugs or even a promise to fix any bugs.

Note this quote from the Ubuntu web page for Desktop business users.

  Stay up-to-date with free and regular updates and upgrades

See the graph called Ubuntu for Desktop Release Cycle. Notice that the next two LTS releases will get 2 years support for Hardware and Maintenance Updates and a further 3 year support for Maintenance Updates. That may include bug fixes but it does not imply a promise to fix all bugs during that period.

It is similar for the server LTS versions as this page for Ubuntu server business users  shows. The main difference is that Hardware and Maintenance Updates extend for the full 5 year period.

As the link in your question to a bug report shows, it is often very difficult to determine exactly what package is causing the problem and we can also see that a lot of effort by volunteers is put into sorting out bug reports to determine which should have priority and who is responsible for fixing it.

When I read this page on helping with bugs I see that the Ubuntu development community is reacting to bug reports in a very orderly way.

You need to also consider that Ubuntu is a distribution. It takes software components from other parts of the Linux community and brings them together. What if the bug is in the Linux kernel, or Debian, or Gnome or some other component that Ubuntu does not have responsibility for.

The bug report has to be pushed to those responsible for maintaining and developing the package that has the bug. And it is then up to those people.

Sometimes the Ubuntu people can provide the fix as well as the bug report. It is important that the fix gets pushed upstream (as it is called) then all in the Linux community can benefit and not just us Ubuntu users. It takes time for the fix to go upstream, be accepted by those upstream maintainers, and come back downstream to be patched into Ubuntu.

I am not surprised that sometimes a decision is made to fix the problem in the next to be released version of Ubuntu rather than fix it in a version that is soon to be superseded. Especially if that next version is to be an LTS version with 5 year support.

You say that that particular bug is being fixed in Precise Pangolin but not in Oneiric Ocelot. But Precise Pangolin 12.04 has been under test for almost six months. By putting the fix into Precise, the fix gets tested.

This is better than putting it into Oneiric for users expecting a stable release to test it out, do you not think?

Fixing the past can wait. Get the future "precise" at the start. That is what is important, in my opinion.


Try System Settings - Keyboard - Shortcuts - Launchers. Do you see 'Key to show the HUD'? It should be the left Alt key.


Final answer: In system settings, reassign the short-cut for the eject to anything not containing Ctrl


Unable to install Ubuntu alongside Windows 10

You should try to use nouveau.modeset=0 instead nomodeset.

The issue that you have is a kind of incompatibility between nouveau open source driver and some Nvidia graphic cards.

I've got the same problem with a PC with a Nvidia GTX950M: nomodeset didn't work, but nouveau.modeset=0 worked.

P.S. once you have installed Ubuntu, to keep things working, you have to add nouveau.modeset=0 to grub configuration file or blacklist nouveau driver.

My solution that solved my problem:

change grub configuration file opening it as administrator:

sudo nano /etc/default/grub

add nouveau.modeset=0 to the following line as showed:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0"

then save with ctrl+o and exit with ctrl-x. Now you have to update grub with the following command:

sudo update-grub

I hope to be useful.


Installing PuppyLinux disables my Ubuntu install

Right, I managed to sort this out. I booted from the Ubuntu Live CD`using the forcepae flag (which I believe enabled the pae on my processor). I then installed and ran boot repair, It repaired GRUB and detected puppy as well.

So now I can use both installations.


How to enable .net framework after install the .net framework?

I had this error with a different application. The error seems to be that .NET 2.0 isn't installed, though the message doesn't actually say that. winetricks dotnet20 solved the issue for me (install winetricks first with sudo apt install winetricks. This was in addition to a newer version of .NET Framework that I already had installed - that wasn't enough.


Get a new drive. It has chosen this time to die.


It depends of the system. Begin with this, and if it is not solved, I tried this and it worked for me.


How do I get my power indicator to reliably warn me before shutting off my laptop?

Do you always:

Completely discharge your battery before charging it again?
Leave the battery in a dark, cool, dry space when you don't need it (like when working from office/home)
Always fully charge your battery and only then remove the power cords?

If the above is three times "no", then your battery is busted!

If the above is three times "yes": is your battery older then 6 years?  If yes: your battery is busted!

If something else: Use your BIOS to re-service your battery before it becomes busted!

Looking at your questions over time, I feel sorry to be the harbinger of bad news, but you should buy a new battery before the old one becomes completely disfunctional and starts freezing up your computer (which happens with 7 year old batteries regardless of how you treated them).

source


What is the difference between the release, share and submitubuntu commands in Quickly?

Those three commands are intended as three levels of "officialness" to your release.

share

share does 2 main things:

Packages your software with a version suffix like -public1
Uploads that package to a PPA

So it's good for quickly getting code to testers.  Ideally you'd use a separate PPA from your normal releases.

release

release does the same thing as share except:

Updates your version with a real version number like 12.04 (or whatever number you provide)
Saves your changes to bzr and tags it with the version number
Pushes a tarball of your release to your Launchpad project page

So it's good for releasing a version of your software that is ready for prime time.

submitubuntu

submitubuntu does the same thing as release except:

The PPA package of your software will be setup to make it easier for the App Review Board to accept (installs your software in /opt, adds certain metadata flags, etc)

So this is good for releasing a version of your software that you also intend to submit to the ARB.  Note that this does not automatically submit it.  It just makes packaging changes to make the ARB process quicker once you do.  You will then need to point the ARB to the PPA into which you uploaded.

If you just want to test those packaging changes (like /opt), but without actually releasing, use quickly package --extras.


Why does Ubuntu 16.04 come with Python 3.5 but not pip3?

Pip3 is merely one click away in the Software Center, or one shell-command away using apt.

The default install of Ubuntu strives to provide a broad base of applications to a wide variety of users with a small download footprint. It does NOT try to be fully-featured for all corner-cases of all users out-of-the-box -- that is what the Ubuntu repositories are for.


netbeans cannot open shared library during RUN command

SOLVED:
SOLVED:

add to the Project->Properties->Environment

  Name: LD_LIBRARY_PATH
  Value:
  $LD_LIBRARY_PATH:/usr/lib/nvidia-current:/usr/local/cuda-5.0/lib:/usr/local/cuda-5.0/lib64:/lib

but I don't know what happened as it worked before


Looks like you missed the

  in your /etc/apt/sources.list file

in the instructions, you add that line in a file, not on the terminal. You need to add that line to your software sources:

How do I add a software source?


Wireless settings are not available to me despite installing its driver in ubuntu!

In terminal do wget http://mirrors.kernel.org/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu7_amd64.deb
sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu7_amd64.deb
Reboot
The bcmwl-kernel-source package in 20.04 repos is not patched for the 5.8 kernels yet


system freeze after login in 18.04 gnome

I was finally able to use gnome-shell. After I removed all the gnome extensions, the freeze issue was solved.
You can try to remove all the gnome extensions from ~/.local/share/gnome-shell/extensions and reboot.


Is Avant Window Navigator Available For Ubuntu 14.04?

If you check launchpad you will see that AWN Testing has support for 13.10, 13.04 and 12.04. So no 14.04.

You have 2 options:

wait for them to update to 14.04.
install the 13.10 or 12.04 versions of AWN. You can do this by opening "software&updates" and editing the source list for AWN. If you change the distribution name you can install it from the older repositories. Mind you: it is possible. If it is wise I'll let you decide (mixing distributions can make a mess of your system).


Gnome - Lock screen - What's this button?

Sorry, but what it normally does is to hibernate the system.

On my system (Ubuntu GNOME) this works perfectly. It should turn off your monitors after time but let yourself into the system again after one click on a keyboard or mouse button (movement). This looks like an error in your System.


Android notetaking apps that are also supported on Ubuntu are:

Evernote – Tusk is an unofficial, featureful, open source, community-driven, free Evernote app. Through the inclusion of optional themes, keyboard shortcuts, custom tweaks, a tray icon, and more, Tusk integrates the Evernote web app with the Linux desktop in ways a regular browser tab can't. To install it type:

sudo snap install tusk

Features

• Black, Dark, Sepia & Vibrant themes
• Focus, Compact & Auto-Night modes
• Local & global keyboard shortcuts
• Customizable keyboard shortcuts
• Export notes as PDF & markdown files
• Note printing
• Scalable interface
• Note navigation
• Cross-platform
• Automatic updates
• Deep OS integration
• Drag and drop files
Simplenote – Simplenote is an easy way to keep notes, lists, ideas and more. Your notes stay in sync with all of your devices for free. Simplenote is now available for Windows, Mac, Linux, Android, iOS and the web. To install it type:

sudo snap install simplenote

Google Keep – Google Keep is a notetaking service developed by Google. Google Keep is available on the web, and has mobile apps for Android and iOS. Google Keep offers a variety of tools for taking notes, including text, lists, images and audio.
Carnet – Carnet is a powerful notetaking app the purpose of which is not only to write your shopping list but can also be used to write longer texts, stories, etc. Carnet is available on Android and Linux, also on your web browser with full compatibility with Windows, Mac and Linux, with sync capabilities. To install it type:

sudo snap install carnet

Features

• Complete editor: bold/italic/underline/color/highlight
• Import from Google Keep (only on desktop, then sync on mobile)
• Insert images / review
• Open HTML format
• Organize with folders and choose root storage folder depending on your needs
• Keywords
• Quickly see your recent notes
• Search your notes
• Protect the app with a pin code (won't encrypt notes) on Android
• Statistics: words/sentences/characters
• Sync with NextCloud
• Record audio
• Online editor as a NextCloud App


Gaming on 13.04 using more advanced drivers for Intel 3000 HD lagging?

You have two basic options right now, neither of which your going to like. Your using non-mainstream drivers with a beta game.

You should probably log a bug/issue with valve so they know about the issue in their beta. Then I would consider downgrading your drivers to main steam and waiting for the new drivers to be included in the repos. There is a reason there not in your main repos yet, and this could very well be one of them. Specially if your pulling from xorg-edgers.


Removing "user accounts" from system settings

To remove this item in the system settings overview:

Edit the file /usr/share/applications/gnome-user-accounts-panel.desktop.

Change the line:

OnlyShowIn=GNOME;Unity;

to:

OnlyShowIn=GNOME


Bluetooth headset gives error connection failed: blueman.bluez.errors.dbusfailederror: protocol not available

This solution worked for me: https://zach-adams.com/2014/07/bluetooth-audio-sink-stream-setup-failed/

sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

Delete the device from bluetooth devices and pair it again.


If anyone else is having this issue, think no more! I found that disabling Secure Boot will fix this issue. Your resolution will fix after a restart, and 2 monitors work after disabling. I figured this out whilst trying to install Pop!_OS.


With bad sectors, you should always immediately backup all important information and get a new hard drive. You can theoretically mark these sectors as "bad" and tell the computer not to use them. However, this is not at all recommended as bad sectors like spreading like a fungus.

If you want to try this, instructions are below.

Find your hard drive with lsblk. Find the EXT partition mounted at /.
Remember the code. It should look something like /dev/sda1.
Strip the number off the code you got earlier. If you had /dev/sda1, your code is now /dev/sda.
Run this command: sudo badblocks /dev/sdc > /home/$USER/bad-blocks
Run this command: sudo fsck -l bad-blocks /dev/sdc
While running the above commands, go take a walk. Do not touch your computer.

Disclaimer: I am not responsible for any loss of data or system damage that has resulted from the above commands, both instant and in the future. I hold no responsibility for what you type into your terminal. You have been warned.


How can I order Gnome3 shell extensions at the top?

Common way:

To begin with you have to find the according file of the extension you want to change.
You can usually find it here: ~/.local/share/gnome-shell/extensions.
If the extension has been installed via package manager you can find it here: /usr/share/gnome-shell/extensions/(Thanks to A.B.)

Then go into the extension's directory and open "extension.js" with any text editor.

Go to the line with: function enable() (use the search function in your editor - if you can't find it go to the Update section further down).
Inside this function usually is a line Main.panel.addToStatusArea('NAME', _OTHERNAME, NUMBER, LEFT/CENTER/RIGHT); (Again: If you can't find it go to Update). It could happen that the last two parameters (NUMBER and POSITION) are missing; looks like this: Main.panel.addToStatusArea('NAME', _OTHERNAME);
(Don't worry! Your computer interprets the shorter version with: ('NAME', _OTHERNAME, 0, right); Feel free to add the missing parameters. But always in the shown order!!!)

The POSITION defines where on the panel the icon should be. There are three areas: left, center and right. You probably don't want to change this value but feel free to do so. Here are the three possible states for POSITION on the panel:

------------------------------------------------------------------
Activities                 Date                        Other icons
------------------------------------------------------------------
   left                   center                          right

The more important value you probably want to change is NUMBER. It defines the order of the icons inside the sub-panels. Possible values are:

0: I don't care where the icon is.
negative values: position; starting from the right side (could be important as all extension icons are loaded after the system icons)
positive values: position; starting from the left side. Higher values will be located further to the right side.

You have to play around with those values in all of your extensions because same values conflict with each other (two different extensions on position 2 doesn't make any sense). And sometimes even following values conflict.

Every time you change the value make sure to save the file. Then hit Alt+F2, type r and Enter. The panel will refresh with the newly ordered icons. This is a fast option to play around with those values.

Lastly a cite from Mathematical Coffee:

  Use Main.panel.addToStatusArea(unique_name_of_indicator, inidicator, position, box) to add a SystemStatusButton or PanelButton to the panel. This handles adding its menu to the menu manager for you (box is Main.panel._{left, right, center}Box, omitting the box argument gives right box by default, and ommitting position gives position 0). If your button is a ButtonBox only (i.e. no menu) then stick with. _{left, right, center}Box.insert_child_at_index.

Please let me know if you had any problems with this approach.

Update:

I have looked around and I recognised that this way doesn't work for all extensions (mostly just for simple/new extensions). A frequently used extension in this case is "system monitor". The way of modifying the icons position should be (generally) the same (I haven't tested it. So make sure to create a backup file). But there are some differences for "system monitor":

The function you have to search is called var enable = function (). So it might be better to search for the word enable in the file.
The place where the position of the icons is defined is called Main.panel._addToPanelBox('system-monitor', tray, 1, panel);. Changing the number should have the same effect as desribed above. In order to change the whole area you have two options:

By changing the very same line to Main.panel._addToPanelBox('system-monitor', tray, 1, Main.panel._rightBox);(Note: The position in the settings menu of the extension won't work any more).
Or by changing the line let panel = Main.panel._rightBox; (again use the search function) to your desired position (_leftBox, _centerBox, _rightBox).

 (These steps can be applied to any other extension. But there will be slightly different names. But still: The common way was described in my firt attempt for this answer)

The whole procedure in a nutshell:

Search for the according file. Then search for enable inside this file. Then search for anything like Main.panel... and change the values (quite self-explaining).

And finally I noticed that you mentioned the time panel. I found no good way to modify its position but here is something else:

You have "system monitor" installed. That's good :)
Open the according extension.js and change the word "right" to "left" in those two lines:
Main.panel._addToPanelBox('dateMenu', dateMenu, -1, Main.panel._rightBox); and Main.panel._rightBox.insert_child_at_index(dateMenu.actor, -1);.
Finally you have to check "move clock" in the settings of this extension. There you go! I haven't tested it but it should work. If not, write a comment :)

Ahh! Forgot to mention: Every time you change on of the values save the file and refresh the panel with Alt+F2 - type r - hit Enter. And make sure to create backup files!!! :D


Did you save the gparted_details.htm log file when this occurred?  If so then it would be very helpful with recovery if you can post the log file.

I suspect that you might have encountered the following bug:  Bug 686668 - Growing logical partition overlaps end of extended partition

This problem was fixed in GParted 0.14.1.

You might be able to resolve this problem by using testdisk to read the disk surface to determine the correct partition table boundaries.  Make sure that testdisk finds your existing partitions properly before you write any changes to disk.

For future partitioning, I suggest you use the latest version of GParted (currently 0.16.1).  One of the easiest ways to do this is with GParted Live written to CD or USB flash drive.


Which version of ubuntu are you using? For 12.10, I know the devices (eg pendrives, modems) are mounted by default when inserted when the computer is already on. But for a device such as a hard disk (or partition), it doesn't mount when you start the computer. You have to do that manually. I see that to be a security feature in Linux to prevent unwanted mounting of devices.


Open Nvidia Settings, select Xserver Display Configuration, and change the resolution.  If it appears to be working correctly then click the button to save Xserver configuration.

You can start Nvidia Settings by pressing Super (formerly the Windows key) and then typing 'nvidia settings' into the search bar, then click on the icon labelled 'NVIDIA X server settings.

Nvidia settings should get installed when you install one of the nvidia drivers, however if it did not then you can install it with:

sudo apt-get install nvidia-settings


Broken apt-get state after apache install error

View this thread https://superuser.com/questions/716194/cant-install-apache2-on-debian-jessie

And delete /etc/apache2 if it exists

Or try this:

sudo dpkg --fsys-tarfile /var/cache/apt/archives/apache2_2.4.7-1ubuntu4.1_amd64.deb | tar xOf - ./usr/sbin/a2query > /usr/sbin/a2query
sudo chmod 755 /usr/sbin/a2query
sudo apt-get install -f

This will pull a2query out of the .deb package you've already downloaded and place it where it needs to be with the correct permissions. Then do install -f again to fix broken dependencies


Is there a package installer in which a i can choose where to install?

No. If you want full control over software installation you either use dpkg or a source install.

I myself would fix "since my disk is running out of space?" instead of going through hoops as this is a problem in itself.  How large is your /? It myself tend to use 25Gb but hardly get over 10Gb when it is time to install a new release.

If you have more then 10, 15Gb software installed you should consider removing unneeded software. If you have personal data in their it is best to move that to another partition.

Add space to root, get a larger disk, or mount parts of your base install (that would be /var/ and /usr/) to another partition. The 1st 2 are easy to accomplish. The 3rd is an option but should be avoided (the idea is to keep all system related directories on the same boot disk as to not interrupt booting: if the 2nd disk is slow it might not be ready when the system needs them to be ready).


Try to install unity-gtk3-module. It helped some people on the internet.


Try this answer below: by oli

  You just need to turn the Unity plugin back on. The problem is this is
  a pain in the bottom because you've now got no graphical method to do
  this. So:

  Press Ctrl+Alt+F1 and log in.
  Install the jibby you'll need to configure the settings by running this:

sudo apt-get install compizconfig-settings-manager

  Then run it by doing this:

export DISPLAY=:0
ccsm

  The first part tells the terminal which display you want it to load on (otherwise it won't have a clue).
  Press Ctrl+Alt+F7 (or Ctrl+Alt+F8 sometimes) to get back to
  the graphical display where there should be a CompizConfig Settings
  Manager screen sitting there.
  Find the Unity plugin. Enable it.
  Everything should spring into life but if it doesn't, you might have to restart. You can do that by going back to TTY1 and running
  sudo reboot.

If that doesn't work, how about redownloading ubuntu 14.01 torrent. Sometimes the internet drops while download the iso, who have inhibit the successful download of the image. Official images here

Choose correct architecture i.e. AMD64 (64-bit) i386 (32-bit)


Upgraded to Ubuntu 15.04 from 14.10, got the dreaded "starting version 219" error

sudo apt-get install lightdm.

If lightdm is already installed then...

sudo systemctl disable sddm.service
sudo systemctl enable lightdm.service

You will now see the gnome greeter and will now boot and reboot every time.


How to edit files directly on server with GVim when ssh is mounted from Dolphin?

There may be a better answer but if you want to use gvim to edit a file remotely though Dolphin you may want to look at mounting the remote location with sshfs.

I'm using Kubuntu 18.04. For me to get sshfs working I needed the following steps:

sudo apt install sshfs # (it was already installed so  I could have skipped this step)

sudo groupadd  fuse # the group did not exist for me

sudo usermod -a -G fuse phall

Now I needed to logout/log back in (I rebooted) before it would register my user name belonging to the new group. Then I could run sshfs without being root:

sshfs user@remote:/my/remote/path /local/mount/path


Right-click the Taskbar > Add/remove items from the panel > Add

and then look for battery items.

Note: Sorry if the items above do not have these exact names, but it should be something like these (I am using a Portuguese Lubuntu 15.04 version).


Installing Ubuntu 18.04 on an iMac with a blank hard drive

In general there are 3 steps involved.

Create a live USB from the Ubuntu Desktop installation ISO file.
Booting up the live USB by inserting the USB on the Mac, hold down Command-C while powering up with the power button and select to boot with the live USB.
Install Ubuntu allowing it to use the entire disk and handle the partitioning also.

After installation has completed, it will ask you to remove the live USB and proceed to reboot. If you run into problem in any of the steps above, please post issues here to get further help.

Good luck.


How to get Google Apps Launcher, Google Now, and Notifications

To get the Google App Launcher on your Ubuntu Unity task bar:

Install the Google Chrome browser
Launch Google Chrome and enter the address chrome://flags/#enable-app-list
Click enable for the setting named Enable the App Launcher. Linux
Open the Unity Launcher and type Chrome App to find the Chrome App Launcher in your Applications list
Launch the Chrome App Launcher and you should see the icon appear in the Unity Launcher sidebar
Right-click on the Chrome App Launcher in the Unity Launcher sidebar and select Lock to Launcher
Now hold a left-click and then drag the Chrome App Launcher icon up to the top of the Unity Launcher sidebar so it is just below the Unity Launcher icon at top-right

You should now have a Google App Launcher in your Unity Launcher sidebar that provides a handy shortcut to your most used Google applications. You should also ensure that the Google Chrome browser is set to run in the background so that you continue to get notifications from Hangouts and other applications. To do that, just

launch the Google Chrome browser,
Find the  icon in the notifications area (top-right of the desktop)
Left-click on the  icon and check the option to Let Google Chrome run in the background

Google Chrome notifications settings can be controlled from the Google Chrome browser settings. Instructions for these are outlined on this Advanced Chrome Help topic titled Turn notifications on or off


The bugpost above seems to offer a workaround:

$ killall nautilus
$ UBUNTU_MENUPROXY= nautilus

When I run these two commands nautilus reopens with the menus tied to the nautilus window. The menu elements seem to remain accessible.


Get a KDE wallet password - Ubuntu 16.04

I managed to solve this by creating new KDE wallet.

To create new KDE wallet, follow this steps:
1.Open KwalletManager (search on start menu)
2.Use the menu item File → New Wallet in the KWallet Manager
3.Choose a name
4.Select first option "Classic, blowfish encrypted file"
This will pop up after you choose a name.
5.Choose a password and verify it.
6.Now you should have your new KDE wallet.

To use this new KDE wallet, follow this step:
1.Open KDE Wallet (search in start menu)
2.Select "Different wallet for local passwords" --> Select your new KDE wallet
3.Apply
Now you can use your new KDE wallet password to login.

Follow this link to learn more how to create a KDE wallet.  https://docs.kde.org/trunk5/en/kdeutils/kwallet5/introduction.html


Run Ubuntu Core 16 image for Raspberry Pi 3 in QEMU

Are you have seabios installed? (dpkg -l|grep seabios)
Try to use any "seabios" roms.  (-bios path/to/anybios.rom)
I'm not tested it but it can be helpfull.

https://github.com/virtualopensystems/qemu-arm/tree/master/roms


Sharing home folder between Windows 7 and Ubuntu 11.04 running inside VMWare

You can use the "Shared Folders" feature of WMware. You can read more here: Using Shared Folders.


I cannot change my ubuntu user account password

Simple command:

sudo passwd $USER

where $USER is name of user account or just

passwd

to change the password of the account you are running command from, then type ur current password and then new password and then retype it. :)


How to get the real path of a sh file that is being sourced

Just use BASH_SOURCE instead of $0:

realpath ${BASH_SOURCE}

in your script:

REAL=$(realpath ${BASH_SOURCE})


How can I switch between the CFS and BFS schedulers?

Having researched this a bit, there seems to be only two schedulers for Linux: CFS and BFS.

The simplest way to install BFS in Ubuntu 10.10 is a PPA patch:

sudo add-apt-repository ppa:chogydan/ppa
sudo apt-get update
sudo apt-get install linux-image-generic-ck linux-headers-generic-ck

You can also install the patch using the Ubuntu Software Center as described in "What are PPAs and how do I use them".

The patch installs a new (patched) kernel, which will show up in the GRUB menu at boot with the suffix "-ck". Switch between schedulers by rebooting and selecting the appropriate kernel in the boot menu.

On performance

In my case, running Folding@Home in the background on a desktop PC (eight F@H threads on eight cores on an Intel i7 2600K), BFS is significantly better: Desktop response is snappier (not a big difference, but definitely noticeable) while the background F@H application is 20-25% faster.

In this scenario, dealing with interactive desktop use and long-running CPU-heavy background tasks simultaneously, CFS tended to leave one core idle for long periods at a time. BFS appears much better at using all cores 100% for background tasks while still providing fast response for interactive desktop tasks.

There is probably no single scheduler that will perform optimally under every possible combination of loads, but there are cases where BFS is better.


OpenGL (and its versions) are just specifications that both drivers and applications follow to allow certain access to graphics hardware... It's not something you can upgrade directly, you upgrade the graphics driver [and/or] the application.

The application (TF2 et al) already support the later versions of OpenGL. Assuming the hardware can support the version of OpenGL we're talking about, it's just the Intel driver that is lagging behind at the moment.

The drive for serious gaming on Linux is relatively new so you could be waiting a while. If you need to play games Nvidia currently offer the most comprehensive solution, with ATI/AMD following them up. Don't get me wrong, Intel are working on this.

If you want to get ahead of the curve you can use PPA repositories to get the latest version of the graphics stack. I am not making any guarantee that this will fix your problem.

https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
https://launchpad.net/~xorg-edgers/+archive/ppa

The first will upgrade graphics drivers only. The second contains the full kernel-driver-X stack. Both can destabilise a system and even make it unbootable. If you're unfamiliar with rescuing systems (and ppa-purge) I strongly suggest you stay away from these packages.


20.04.1 LTS Intel 8265 Wireless Non Functional. Bluetooth Works

Solved. Several restarts later and the wifi is working.


Cant ping a virtualbox created using NAT

The only network configurations that allow Host to VM communication is Host Only and Bridged modes.  There is a table here that shows the different network types and if it can access the host, other VMs, internet, etc.  Only bridged mode gets you full network access but typically pulls an IP from your DHCP, which you probably don't want in this situation.

You can get around this by having 2 networks to fulfill your needs, NAT and Host Only.


You can sure. Rename does NOT hurt the contents of your ISO.


Try to install the 32 bit verison of libgnutls26.

apt-get install libgnutls26:i386


Meanwhile I learned that update-usbids is obsolete on systemd based systems that's why not available.
PS: based on this answer


When an app starts in Ubuntu Touch, Upstart will emit a specific signal. If you have a script you want to run when an app starts you can add a file in Upstart that will run when the application-click signal fires. For example I created a file in ~/.config/upstart/application-click-log.conf with the contents:

start on started application-click
export INSTANCE

pre-start script
/bin/bash <<EOT
    echo "$INSTANCE starting"
EOT
end script

You can then watch the log file (~/.cache/upstart/application-click-log.log) and it will print something like this:

com.ubuntu.terminal_terminal_0.7.198 starting
navigator.costales_navigator_0.65 starting

Alternatively you could replace the Exec=... line in the desktop file with your own script that launches the app and also does anything extra.


How can Huawei EC-1260 (Tata Photon) USB Internet Device be used to share Internet over a home wireless network?

Ubuntu has all the packages to be a full-fledged router. You can run the primary computer as if it is a broadband router which will provide the Internet connection to all the other computers.

https://help.ubuntu.com/community/Internet/ConnectionSharing has a lot of detailed information about how to configure such an Internet sharing configuration.


By installing Ubuntu 13.04 on VMWare workstation 9 is running very slow on Host OS Win7

Well, you see emulation is sometimes really slow no matter how good your computer is. To get the best preformance you should install Ubuntu like you have windows 7 installed, that would be the best solution  for all.


Application custom stock icons not visible in application indicator but visible in old system tray

It is not possible to use stock icons created on-the-fly in appindicators.

When using statusicons, your application is in full charge of building and displaying the menu. However, when using appindicators, what happens under-the-hood is that your application just makes a request and who really builds and displays the menu is a service running in the background.

This service is a independent program, completely separated from yours. Therefore it is not aware of things such as environment variables and stock icon names that you created on-the-fly.

The best workaround is using the set_icon_theme_path of the indicator to tell it where the icon is. You don't even need to change the stock in this case.


"unknown file system" error in fstab when trying to mount a cifs share

Don't put -o in fstab. The fourth field is the options that will be passed to mount. And you're missing the filesystem type. The line should be like this:

//10.x.x.x/shared /mnt/shared cifs credentials=/etc/cifspwd,rw,dir_mode=0777,file_mode=0777 0 0

See also: fstab manpage.


WiFi adapter won't enable in a fresh Ubuntu 16.04 LTS install

Dell Inspiron 3521 don't have a hard button to turn WiFi off/on.

Instead toggle by pressing Fn + F2:

The output of rfkill list all you provided is particularly useful to detect the problem wasn't elsewhere.


Why does Unity 2D have "real time" window updating when resizing window and Unity 3D does not?

I can't really answer your question in terms of why there's a difference, but I can tell you how to change the Unity 3D settings to give you your "real time" redraws.

Install CompizConfig Settings Manager.
Locate and enter the 'Resize Window' plugin settings in the 'Window Management' section.
Click on the 'General' Tab.
Choose between the available 'Normal', 'Outline', Rectangle' and 'Stretch' options.

The 'Normal' setting is the one you want, giving you real time updates of the window during resize. On my machine though this is painfully slow.

The Rectangle and Outline are very similar and draw a box representing the resized window.

Personally I like the 'Stretch' option, which gives you a faked-update of the window contents by simply stretching them.

Hope that helps.


Did you install drivers from Xerox site or those suggested by Ubuntu? You could also try to connect it via the second option (DNS-SD or whatever the name is). At least this is what is working for me


This error happens when you execute a 64-bit executable in a 32-bit operating system. The only thing you can do is find a 32-bit version of the software you want to execute.

Find out what type of executable it is (example output):

$ file /path/to/64-bit-executable
/path/to/64-bit-executable: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped
$ file /path/to/32-bit-executable
/path/to/32-bit-executable: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped


How to install AMD Proprietary driver correctly on ubuntu 12.10?

You will find a great article in this Wiki Guide with recommendations, issues troubleshooting, and more.

I'll recommend you (from my own experience) to install the latest Catalyst Diver manually. I did followed the instruction mentioned in that link and now my system is working like a charm.

My system: Ubuntu 12.10 64bits
My graphic card: ATI RadeonHD 6670
My driver: Catalyst 12.11 beta x86_64

If you face trouble while installing, you should Ask a new Question in this site explaining the issue.

If after install the driver you see watermark, see this question where you will find a solution.

NOTE: all the procedures that you do are at your own risk