How to create an Icon theme/set for Ubuntu?

How do I go about creating an Icon set for Ubuntu? The basics at least.

Ubuntu uses the Gnome Human Interface Guidelines (number 9 ) you can follow these to make your Icons fit for the Gnome Desktop. Ubuntu also has guidelines for the Indicators as noted here.

Create them using whichever software you prefer, they need to be in .PNG or .SVG

Look at the folder structure of any icon set so you know how you should organize them for them to work. And so you also know what are the names of the icons.

Unity doesn't specifically use a theme it takes on the System Theme.

And lastly use your creativity.


How to customize icons for running applications (seen in alt-tab)?

Firstly, what version of Ubuntu are you using? On 11.10 (and probably 11.04 and 12.04) the alt-tab switcher groups windows by default.

Anyway, if you're looking to give terminal instances individual icons, I doubt that's possible apart from hacking Unity. If you're just looking to change the terminal, I believe you can locate your icon folder (sometimes at /usr/share/icons, other times at ~/.icons) and drop in a custom "terminal" image of the appropriate name and it should take effect the next time you log in.

Does this address your issue?


Display changes between old and new server

You can easily make a list of all the currently installed packages and you can use this list to install all of the currently installed packages at a later date.

You will need to find a way to save this list. You can email the list file or you can copy it to pastebin or download it somehow. Just make sure to save a copy of this list some place so that it can be retrieved at a later date.

Run the following command to create the list file called "INSTALLED.txt":

echo $(dpkg -l | awk '{print $2}') | tee packages1404.txt

When the list file is in the current directory, you can install the packages on the list using the following commands:

sudo apt update
sudo apt install $(cat packages1404.txt)

Alternatively, you could copy and paste the list as plaintext into the terminal using sudo apt install and then paste the list into the terminal and then press enter.

This will try to install all the current packages. However, there may be some package versions which are no longer available. There may be some other versions which have "no installation candidate" and you will have to search for these packages to see what package replaces the old one.

Source: I adapted the commands used in this blog entry at ostechnix.com.

Click here for information on performing a full backup instead.


Ubuntu installed, but GRUB not showing up

Have you already heard from boot-repair-disk:

https://sourceforge.net/projects/boot-repair-cd/

This helped me a lot in the past. Simply generate a live usb stick using boot-repair-disk and boot from the stick. Of course you should have already saved all your files. Who knows what might happen...

Edit: You can generate the live stick by using for example unetbootin.


Ubuntu USB won't boot - "Missing Operating system"

You're probably running into issues related to selecting the boot mode -- BIOS/CSM/legacy vs. EFI/UEFI. This can usually be controlled to some degree via firmware settings and/or via the firmware's built-in boot manager. Each can usually be accessed by pressing some function key (or Esc or Del) early in the boot process, but which you get (the firmware setup utility or the boot manager) depends on which key you press. Unfortunately, it's impossible to be more precise than this because these details vary between computers. (FWIW, though, my ASUS motherboard enters the firmware setup utility via Del and the boot manager via F8.)

In theory, if you prepared the Ubuntu USB drive via a dd command from the .iso image file, it should boot in either BIOS/CSM/legacy mode or in EFI/UEFI mode. In practice, though, if you used another utility (like unetbootin), all bets are off; these tools often render the resulting image unbootable in one mode or another (usually EFI/UEFI mode).

Because you're dual-booting with Windows and using GPT, it's safe to say that Windows is booting in EFI/UEFI mode. It's impossible to say about Ubuntu, though; unfortunately, Ubuntu's installer is still brain-dead when it comes to detecting mis-matched boot modes, and it will happily install in BIOS/CSM/legacy mode on a computer that has a copy of Windows that's booting in EFI/UEFI mode. This can lead to problems, including exactly the one you describe, this may be what's happened to you; however, there are other possible explanations. For instance, you might have buggy firmware that refuses to boot anything but the Windows boot loader, or you might have Secure Boot enabled and no Secure Boot support for Ubuntu. (Ubuntu theoretically supports Secure Boot, but this support sometimes fails to work.)

Thus, I recommend you do the following:

Disable Secure Boot.
Prepare a USB flash drive or CD-R with my rEFInd boot manager and try to boot from it.
If rEFInd boots, and if it can launch both Windows and Linux, try installing rEFInd's Debian package in Ubuntu. This should take over as the default boot manager. If this works, quit; you're done. (Unless you detest rEFInd. In that case, learn about all the available EFI boot loaders and install whichever one sounds good to you.)
If you boot straight to Windows when you reboot after installing rEFInd, then chances are you've got a buggy firmware. Reboot to Linux using the rEFInd USB/CD-R. You can then either:

Type sudo mvrefind.sh /boot/efi/EFI/refind /boot/efi/EFI/Microsoft/Boot. This implements a hack that renames rEFInd so that it looks like the Windows boot loader. The firmware should then run rEFInd.
Run Boot Repair, but be sure to use the Advanced settings tools and select the box to back up the Windows boot loader and put GRUB in its place. (I don't recall the exact wording of this option.) This will do something similar to mvrefind.sh, but with GRUB rather than rEFInd.

If all of this fails, post the URL that Boot Repair generates. It will give us more detailed information about your computer, which is necessary to give a more specific answer to your question.

One more point: You may want to read my Web page on EFI/UEFI Linux installation. It will give you a better understanding of how these things work, which may be helpful in solving your current problem and avoiding similar problems in the future.


You are running locally using LXC and the IP address you see is the IP address of the Juju GUI inside the LXC.  You cannot change it.

The lxcbr0 interface is created by LXC.

From your host machine you should be able to access the GUI by going to 10.0.3.214 in your browser.


I had similar problem. The solution:

Edit this file

nano /etc/cron.d/apticron

and replace this line

10 * * * * root if test -x /usr/sbin/apticron; then /usr/sbin/apticron --cron; else true; fi

to like this:

10 * * * * root if test -x /usr/sbin/apticron; then /usr/sbin/apticron; else true; fi

I'm not sure why, but it works without

  --cron

parameter.


Solved the issue, I don't why and how but I placed yaru-teal-dark to .themes and yaru-teal to .icons folder. Then this bug occur, the original content I downloaded from gnome-look zip file included yaru-teal yaru-teal-dark yaru-teal-light folders I placed the other two to .themes folder then the bug disappeared.


Are the source repositories required for a normal user?

Note: Source repositories are different from source packages. The repositories, if selected or present in your software sources, are updated whenever you check for updates. Source packages, on the other hand, are never automatically installed -- regardless of whether you use apt-get install or the Software Center. You must explicitly install them with apt-get source, etc.

No, the source repositories are not required for a normal user; you also do not have to download or install any source packages for the proper functioning of your software.

To remove them, open Software Center, and go to the Edit menu...Software Properties.

Click on the box to the left of Source Code as shown below. If you are asked for your password enter it. The box should then be unchecked (white box). Click on close.


How can I type curly braces while using the TTY?

run

sudo dpkg-reconfigure console-setup

to reconfigure your console-setup. During this process you can specify you keyboard setup including the AltGr setup.

If no confguration options are presented run

sudo dpkg-reconfigure -plow console-setup

instead.

Under Origin of the keyboard select the correct layout. For example: the US keyboard doesn't have an AltGr key at all. Whereas the German keyboard does have an AltGr key.

Under AltGr key replacement: select the position of the AltGr key. Most likely you want to choose Right Alt.

Don't forget to reboot or run setupcon on your tty console.


Fix /dev/sdb after using dd with no device inserted

I think you have created a file with the name /dev/sdb. If that is the case, there is a regular file, where you expect there should be a block device.

It should be possible to remove that file and after that (maybe after a reboot) your system should be able to create a block device /dev/sdb


Synchronise user accounts over multiple systems

OpenLDAP could be used to have the same login credentials for multiple users across multiple boxes. Then do what @Rinzwind suggested and mount /home from a NAS.


Rather than installing from the Ubuntu repositories, you may find it easier to go to https://www.sagemath.org/download.html and download the current version directly.  Installation is simple.  I'd suggest extracting the files to a directory ~/Sage, cd ~/Sage/SageMath and then execute ./sage
In a few minutes everything is set up.  Currently there are binaries for version 9.2, but 9.3 should show up fairly soon.


How to control brightness on toshiba laptop?

Looking up on this very site has brought me to this question and the solution mentioned there was:

  Open a terminal (Program - Accessories - Terminal)
  Type in "sudo gedit /etc/default/grub" (without the "")
  Find the line that says: GRUB_CMDLINE_LINUX="quiet splash"
  Edit it so it says: GRUB_CMDLINE_LINUX="quiet splash acpi_backlight=vendor"
  Save and exit
  Run the command "sudo update-grub" (again without quotes of course)
  Reboot and enjoy!

Hope this helps :)


The problem resolved itself after the last kernel update.

$ sudo showkey

also shows each key again. Case closed.


Which display manager should I choose when installing Gnome 3

The display manager is the program which displays the graphical login page. In practice there is very little to chose, they all let you chose a username and enter a password, and possibly choose what kind of graphical session to run. lightdm is the default display manager which comes with Ubuntu. gdm3, the Gnome Display Manager, is the default display manager for the Gnome desktop.

See What is gdm3, kdm, lightdm? How to install and remove them.


In the lower right corner you can find a dropdown menu. Set it to Hex input. Now you can insert hex to the "Input" LineEdit. Do not use any 0x or similar.
Example:
Send: 0x01 0x02 0x03 0xFF 0xAF
Write: 010203FFAF


How do I theme the maximized window buttons with Unity?

Dylan, metacity theme support has not been implemented yet in Unity. It's not a priority but someone is working on it ATM. I hope to see it in next unity release (sometime this week).

here is the bug report: https://bugs.launchpad.net/unity/+bug/740232


select certain videos for youtube-dl using format codes

So it seems I have found out how I didn't remove this so it gives others who are having the same issue as me to find it.

So with the format selecting you are able to add filters to them, I was initially trying to use the --match-filter variable but all I needed to actually do was.

-f "best[format_id^=en]"

This basically tells youtube-dl to only use formats were the id begins with "en"


15.10 - Sound doesn't work, no sound devices after update restart

So, I fixed it myself after following the instructions here

It turns out something was wrong with either alsa-base or pulseaudio. purging them and reinstalling solved the problem:

sudo apt-get remove --purge alsa-base pulseaudio
sudo apt-get install alsa-base pulseaudio

Now the hotkeys for volume up/down won't work. I tried setting them to their defaults by

gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-mute
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-down
gsettings reset org.gnome.settings-daemon.plugins.media-keys volume-up

but that didn't work, so I renamed the .gconf home folder and rebooted. Everything is back in working order now :)

mv .gconf .gconf_backup


VirtualBox Installation gives message "modprobe vboxdrv" failed

This helped me:

apt-get update
apt-get install linux-headers-$(uname -r)
dpkg-reconfigure virtualbox-dkms
modprobe vboxdrv


Just type bash and you'll start the bash shell. type exit to return to fish shell when you're done.


Thinkpad T450 Wifi AC 7265 is not working in Ubuntu 15.04

Intel Corporation Wireless 7265 [8086:095b] (rev 59) Subsystem: Intel
  Corporation Device [8086:5212]

I think the problem is that the subsystem ID 8086:5212 is not yet covered in iwlwifi. Please open the backports package you compiled. Drill down to drivers > net > wireless > iwlwifi > pcie. Open the file drv.c with any text editor, like gedit. Scroll down to line 406.

Here, I've used some guesswork. I assume this is a 2ac_cfg device. We will simply change an unneeded line to needed. Change:

{IWL_PCI_DEVICE(0x095B, 0x9200, iwl7265_2ac_cfg)},

To read:

{IWL_PCI_DEVICE(0x095B, 0x5212, iwl7265_2ac_cfg)},

Spacing, punctuation, brackets, etc. are crucial and must be perfect. Proofread carefully, save and close the text editor. Now:

cd backports-20150731
make clean
make defconfig-iwlwifi
make
sudo make install

Reboot. Any improvement?


The port that is needed to be open is 1194 UDP in your current config. Also you need to make sure the client cipher matches the server cipher.


No sound settings available in the settings manager window

The release notes for Xubuntu 13.10 include this problem as one of the known issues for that release. (See link to release notes below.)
https://wiki.ubuntu.com/SaucySalamander/ReleaseNotes/Xubuntu

This problem has been fixed in the current development release and a stable release update is currently pending to fix this issue in 13.10

Any prior work-arounds were deemed dangerous to system stability in the Xubuntu team meeting on 2013-12-05. Users were strongly advised from that point forward to not implement them in any manner.

This has now been released to saucy-updates and once a system is updated after install no longer an issue.


unchosen program is not sent to the background

You can use side-apps using the easy way, or the hard way:

Easy way:
Drag any app to the left side or right side (2 apps) or any quarter and Ubuntu will do it for you. You can also make an app fullscreen by dragging it to the top (center).

Hard way:
Resize the applications to your liking.


Wifi stopped connecting, keeps prompting for password

I had this exact same problem a while ago on 12.04.
Solution: log in as admin, click on the wireless icon, edit connections, remove the connection, log in as user, click on the wireless icon, edit connections, remove the connection again, log in as admin again and connect to the network...

How I got to define the network twice is still a mystery to me...


Dell Inspiron N5110 Battery lasts only for 1.5 hours as opposed to 4 hours on Windows 7

I think battery management on Ubuntu is just fine. To improve it, however, you can install Jupiter. According to WebUpd8.Org,

  Jupiter is an appindicator (it now uses Python instead of Mono) designed to improve laptops / netbooks battery life. It can be used to switch between maximum, high performance and power saving modes, change the screen resolution and orientation, enable or disable bluetooth, touchpad, WiFi (if available) and so on. If you own an Asus EeePC netbook, there's also a separate package that adds support for Asus Super Hybrid Engine (SHE) as well as some other EeePC tweaks.

To install Jupiter, enter the following commands:

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

Source

Is Ubuntu Battery Management Better Than Windows?

I got same model but i7 ...this is awsome tool ..solved the problem


The default install of Ubuntu does NOT monitor your motherboard's temperature sensors.

Overheat-detection, and the resulting poweroff, is handled by the BIOS (or equivalent), not the OS. It is a last-defense from damage caused by the overheat.

Ubuntu can detect and use those temperature sensor readings, but the software is not included with a normal install. It's just a click away, in Software Center.

Example: The 'psensor' package (available in Software Center) can use those readings to preserver historical temperature data, create graphs, and trigger handy alerts so you have time so save your data before BIOS kills the power.


how to enable in chrome icedtea7 java plugin instead of icedtea6?

You probably need to manually update a symlink in: /opt/google/chrome/plugins/


Select different country mirror than "locale"

you can install ubuntu without using updates and after installation change mirrors in /etc/apt/sources.list or update-manager and you can use update-locale and locale-gen fr_FR fr_FR.UTF-8 as expemple to change your settings.


Fresh install Ubuntu 16.04.1 unable to detect dmraid disk

I'll try to get a better answer. For now, you have to run

sudo dmraid -ay

from the BusyBox prompt or go live with the disc, run it terminal, then install to the array.

To get it into the boot sequence make a text file in

/etc/initramfs-tools/scripts/init-premount

with the code

exec dmraid -ay
exec sleep 1

Ensure that you make the file executable then run

sudo update initramfs -k all -uv

Enjoy!


Command to Combine text 100 lines at a time

Try xargs:

xargs -L 100 < file

Test:

for i in {1..7000}; do echo "line $i"; done | xargs -L 100


How do I update ClamTk virus scanner via the terminal?

ClamTK is the graphical interface for ClamAV, you cannot use ClamTk without having ClamAV installed previously.

Once installed ClamAV will run in the background as a daemon and you can use the ClamTk interface in Linux to interact with it.

The ClamAV database is automatically updated via the running clamav-freshclam daemon started by the /etc/init.d/clamav-freshclam init script, there is no actual need to update it manually.

It is controlled by the /etc/clamav/freshclam.conf with a default configuration of checking for a new database every 1 hour

# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net

To force update the ClamAV virus database in the terminal you can use the command

sudo freshclam

ClamAV is definitely a good anti virus software, for a list and more information about anti virus for Ubuntu please have a look at any of the following posts

Do I need to have 'antivirus software' installed?
What antivirus programs are available?


Disabling "iwlwifi 0000:00:14.3: Unhandled alg: 0x707" from flooding the logs

I was trying to solve this problem too and I think I did it.
I turned off some encryption option in iwlwifi and I'm not seeing the constant stream of "Unhandled alg" errors in my log files anymore.

I added this line:

options iwlwifi swcrypto=0

To this file:

/etc/modprobe.d/iwlwifi.conf

and rebooted.

If you need whatever "swcrypto" does, I guess this isn't the best option. But maybe this helps others figure out the problem?


Is there a way to stream audio/video to an Apple Airplay Device?

This does not seem to work in 14.04 anymore: sudo apt-get install pulseaudio-module-raop pulseaudio-module-zeroconf.
I simply don't see the device at the output tab.

To fix it install paprefs: sudo apt-get install paprefs,
start it and select the two options at network access and reboot.
The device should now show up.


Ubuntu 12.04 (64 bits) not recognize 8GB SDHC memory card Kodak

Try the Disks manager: It will show you if either the card reader isn't connected or the card isn't recognized or no partition is detected.


How to resize Ubuntu & Windows partitions?

This is what to consider before we can change partition size:

Changing partitions always bears a risk of data loss. Therefore backup all valuable data.
Only partitions that are unmounted can be altered, i.e. work on a live session (boot Ubuntu "Try out").
Ubuntu does not need much space (30 GB) but knowing that the other OS is Vista it may really be better to give Vista as little space as possible but not too small (or remove it entirely if you grandson agreed).
Ubuntu needs two partitions at least (root partition /, and swap) but it can handle more if needed. Some people recommend a seaparte HOME partition, which eases distribution upgrades and backups.
Swap needs to be in a single partition with no holes. It is therefore in the way when you enlarge your NTFS partition to hold Ubuntu.
Windows must not be hibernated.
We can only have 4 primary partitions in an MSDOS partition table. Make extended partitions to hold Ubuntu.

From your present partition layout it appears that the root partition for Ubuntu is a bit too small, and the swap partition is in the way of increasing your root partition.

It is possible to add a swap partition later but this may be too complicated for a first start into the Ubuntu universe.

Let me therefore recommend that you

Backup all valuable data
Delete and remove your existing Ubuntu partitions (this will delete all data in them!)
Resize (shrink) the Windows partition (to the right side) according to the excellent answer you already have (but you may have to repair your filesystem from a Vista CD), or from Windows. Shrinking may need a defragmentation first.
Re-install Ubuntu to the now sufficiently large unpartitioned space you will have gained in step 3.
On re-installation of Ubuntu take care to select the unpartitioned space for installation of /, swap, and if applciable /home on "Do something else", or let the installer automatically do this for your by choosing "Install alongside of Windows".


Quasar Accounting might meet your needs.  The most recent version is commercially licensed (with a free license for a single workstation), but an earlier version is GPL-licensed.  I've been running the GPL version with PostGreSQL for a number of years.

It is a full accounting package with a chart of accounts, vendors, clients, quotes, invoices, payments, products, lots of pricing and discounting options, etc.


Can a 10-bit monitor connection preserve all tones in 8-bit sRGB gradients on a wide-gamut monitor?

"Bit wise, there shouldn't be a problem whether you render in 8 or 10,
  but there's a major problem with linux anyway with bit-depths. In
  linux, there unfortunately is no front-end software that allows you to
  change the bit-depth. The ONLY way to change bit-depth in linux, is to
  compile your video drivers to call 10 bits per channel for your
  interfaces, instead of 8."

Actually Nvidia GeForce Drivers have supported 10 bit per channel in Linux for a while now.   Of course, you're going to need a display with 10 bit per channel color support connected via a DisplayPort to your video card for it to work.

In contrast, with Windows, only the Nvidia Drivers for their Quadro Cards allow 10 bit per channel color.  But, most applications don't work with it (since the Windows desktop itself is 8 bits per channel, and it's difficult to implement 10 bits per channel color on part of the screen like you'd see with an image editing application.  But, Photoshop has 10 bit per channel working in Windows using either AMD Firepro cards or Nvidia Quadro cards with CS6.   With Photoshop CC, I've seen reports of problems with Firepro cards though.

Basically, Windows requires "Pro" cards (AMD Firepro or Nvidia Quadro) to get that feature (10 bit per channel color with applications that support it), as the drivers for AMD Radeon Cards and Nvidia GeForce cards do not support the 10 bit per channel OpenGL buffers used by applications like Photoshop.   See this page for some info on that from Nvidia:

http://nvidia.custhelp.com/app/answers/detail/a_id/3011

But, interestingly, the Nvidia Proprietary Linux drivers for GeForce Cards do support 10 bit per channel OpenGL buffers if you have a card with a DisplayPort and a Display that supports 10 bits per channel.   They added 10 bit per channel (a.k.a., 30 bit) color support to their Linux drivers beginning with 295.20.  Here's an old Phoronix article mentioning it:

http://www.phoronix.com/scan.php?page=news_item&px=MTA1NzM

If you go to the Nvidia X-Server Control Panel in Linux, and look under Display Settings, you should see a Color Depth choice if the detected monitor is capable of 10 bits per channel and connected by a Display Port.   You'll see a 30 bit choice marked as Experimental there.   Or, you can just select X Screen 0 (versus the detected display) and see the color depth choice that way (where it defaults to 24 bit but will have 30 bit available in the drop down list).   Of course, you don't want to select that choice unless you have a true 30 bit (10 bit per channel) hardware setup (card with a DispayPort with a monitor connected to it with a true 10 bit per channel color panel).


fresh install, update and x-windows no longer working after login 12.10

System program problem detected
The application Compiz has closed unexpectedly
/usr/bin/compiz
Compiz-core 1:0.9.8.4+bzr3407-0ubuntu1
Crash
Compiz crashed with sigsegv in xcb_glx_get_string_string_length()
I uninstalled the gnome-shell as I wanted to revert back to original interface GUI
then Uninstalled the compiz-core (sudo apt-get remove compiz-core)
I re-installed compiz-core (sudo apt-get install compiz-core)
rebooting to check outcome
this initially didn't fix the issue.
i also completed the following:
pressed CTRL + ALT + T after logging in to bring up terminal window and typed the following:
sudo apt-get autoremove --purge gnome-themes-standard
and
sudo apt-get install gnome-themes-standard

the above seemed to have fixed the issue.


Disable the default app key (super+num) functionality on Ubuntu 17.10 and later

For Ubuntu 17.10 - 18.10
Run the following command in Terminal:
gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false

This should disable the default behaviour of Super+0...9.


I have this little script kept in ~/bin/infinite_ssh(1):

#! /bin/bash -x
#
while :; do
         ssh -R 2222:localhost:22 remoteserver sleep 86400
         sleep 10
done

this is connecting to the remoteserver and creates a backward tunnel so that in the remote server I can ssh my desktop by using ssh -p 2222 localhost. Your application may, obviously, vary. The remoteserver is defined in ~/ssh/config so that you can login without a password, and has KeepAlive on option.

Then you can call it from /etc/rc.local with

su -l youruser -c /home/youruser/bin/infinite_ssh &

so that it starts as your user at boot time, in background.

Footnotes:

(1) obviously, you need to give the script execution permission... chmod a+x ~/bin/infinite_ssh.


Mounting windows share with non-root users?

If the USER has to mount it, you can always use GVFS. Its the same as clicking, Places > Network > Server > Path and seeing that pretty icon in the Places folder, and your desktop.

Term:
gvfs-mount smb://serverip/path

This will add it to the places menu, and allow you to unmount it without using root.

Drawbacks:

Shares goto ~/.gvfs by default, you can always map them to another area if needed. If you are a click based person this wont matter to you.
If there is a password on the share, there is no way to auto mount it. Must be done manually.

If these are fixed shares you create at the boot process, you can use fstab and CIFS.

Add a line like this to your fstab file.

Open Share:

//serverip/path /mnt/path cifs dir_mode=0775,guid=1000 0 0

Passworded share:

//serverip/path /mnt/path cifs credentials=/root/.smbpass,dir_mode=0775,guid=1000 0 0

For a passworded share, create a file /root/.smbpass
Add lines like this to it...

username=<user>
password=<pass>


How can I upgrade while having unmet dependencies?

You could try passing the -m flag to apt-get to make it attempt to "ignore missing packages", this could possibly work.

See the man file of apt-get:

-m, --ignore-missing, --fix-missing
           Ignore missing packages; If packages cannot be retrieved or fail
           the integrity check after retrieval (corrupted package files), hold
           back those packages and handle the result. Use of this option
           together with -f may produce an error in some situations. If a
           package is selected for installation (particularly if it is
           mentioned on the command line) and it could not be downloaded then
           it will be silently held back. Configuration Item:
           APT::Get::Fix-Missing.


No option for showing for my 2nd operating system after restart

Problem lies in the boot loader .  It is not able to find your windows boot loader because of boot priority ..

just enter into the bios and check for boot options click on your hard disk boot loader if it shows the grub menu then it is ok .. otherwise you have to repair the boot loader from ubuntu ..refer below link

https://www.google.co.in/url?sa=t&source=web&rct=j&url=https://help.ubuntu.com/community/Boot-Repair&ved=2ahUKEwiRnZTM5fXYAhURTI8KHW0jAc8QFjAMegQIChAB&usg=AOvVaw3iJYUZ42a7jskQGCRBqbHB

Hope it could help you


Why .save files are being generated in /etc/sources.list.d/ directory?

Intro

*.save files are some kind of backup from your sources file these are not going to make any trouble, cause apt ignore these files silently.

nano uses similar files too, if you get a file named *.save.1 it's because of nano, These are emergency files, when nano receives a SIGHUB or SIGTERM it will write its buffer to an emergency file to save you from data lost. For example if Terminal get closed while you have an open file or ssh connection fails (from man nano notes section).

plesk.list.ai_back is plesk backup file.

apt ignores all except *.list files . it show you some warning to let you know about these files however it also ignore some of them silently like *.save or *.bak files.

Take care of error:

As I said these are backup files, they have no impact on apt and are not harmful so it's the best to keep them instead of removing them.

What I suggest is using Dir::Ignore-Files-Silently option to add *.ai_back files to silently ignored list. what will happen is apt ignore these as before however it's not going to show you any warning anymore.

Create a file withing : /etc/apt/apt.conf.d/:

sudo nano /etc/apt/apt.conf.d/20-ignorebk

Add Dir::Ignore-Files-Silently:: "\.ai_back$"; to this file and save it.

Now you shouldn't get any warning about this kind files.


snap - how to grant permanent permission to read folder

This is the intentional behavior of snapd and hard-coded into source code.

This feature, opening files in snapd, is new (about seven month old). As I understand the developers are conservative and prompt is to prevent any security issues. The discussion about subject in forum.snapcraft.io and pull request that introduced new feature.


I'm sorry to tell you, but this is about as good as it gets:

  Well, that is the goal. Currently the DotA 2 client for Linux is not really performant resulting in low framerates (fps) and annoying lags. We hope this will be fixed some day.

- https://steamcommunity.com/groups/LinuxDotA


Prevent Rsyslog from removing automatically syslog.gz files.

Each package adds a file to /etc/logrotate.d/, that way logrotate knows when to remove or refresh log files for that package.

distcc, for example:

$ dpkg -L distcc | fgrep logrotate
/etc/logrotate.d
/etc/logrotate.d/distcc

So /etc/logrotate.d/distcc contains the rules that logrotate will use.

You need to read the manpage for logrotate.

rsyslog doesn't do anything to rotate or remove log files.


ubuntu says updates available after update and upgrade

Since your using ubuntu 16.04 the following should fix it:

sudo apt full-upgrade

But if you prefer the Ubuntu 14.04 way then:

sudo apt-get dist-upgrade

If the two commands don't work you should talk to digital ocean about it.

Hope that helps.


Can't find Spyder or Ipython Notebook applications after Anaconda install (xubuntu 13.10)

there

I've faced the same problem on Ubuntu & Lubuntu

The launcher and node-webkit were not install along with the Anaconda 2.7 for linux package.

You can install it manually by

conda install -f launcher
conda install -f node-webkit

now you should be able to launch 'launcher' app from terminal like Mac or Win.


No, you can't pass arguments to an alias. But you can define a function:

compile() {
  clang -ggdb -std=c99 -Wall -Werror ${1}.c -lcrypt -lcs50 -lm -o $1 ;
}

(you can put it all in one line if you wish, just mind the semicolon at the end of the command)

This will work as intended and is the recommended idiom that should replace aliases for all but trivial purposes.

But maybe what you really need is a Makefile?


Steam servers - Error code 2 - Fat32 error(Portal 2 steam via wine)

As of the 25th of February, 2014, Portal 2 Beta has been released for Linux. This means wine is no longer required to play Portal 2. It can now be directly installed from the Linux version of Steam.


Unable to install driver WN8200ND V2 (RTL8192EU)

I actually have success installing TP-Link TL-WN8200ND(UN) V2 on Ubuntu 18.04 LTS Desktop (64-bit).

I modified the driver from https://github.com/Mange/rtl8192eu-linux-driver to add support for TL-WN8200ND V2 (By only adding 1 line precisely). I have forked the driver and you can install it by following this step in the terminal:

cd ~
sudo apt-get install git linux-headers-generic build-essential dkms
git clone https://github.com/agtbaskara/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
sudo dkms add .
sudo dkms install rtl8192eu/1.0
cd /usr/src/rtl8192eu-1.0/
sudo make clean
sudo make
sudo make install
sudo modprobe -a 8192eu

And the reboot your PC, for my case it should be working.

EDIT 1 : USE THIS https://github.com/luckynzm/tlwn8200nddriver

My modified driver actually very buggy, and disconnected the wifi after several minutes

EDIT 2 : There is another problem for me, after about an hour the device kick to a "Power Save" state randomly, I have solve it by changing these line:

CONFIG_POWER_SAVING = y

to

CONFIG_POWER_SAVING = n

in the Makefiles before installing the driver


Remap a key combination to another combination, e. g. Super+Ctrl+Shift+J -> Ctrl+Shift+Left

Give a combination of xbindkeys and xvkbd a try. xbindkeys listens for the keys and sends the translation to xvkbd.
sudo apt-get install xbindkeys xvkbd
xbindkeys --defaults > ~/.xbindkeysrc

Open .xbindkeysrc in your favourite editor. I commented everything else out, but it's good to refer to if required.
To check it out, I tried mapping Ctrl+; to Ctrl+V
"xvkbd -xsendevent -text "\Cv""
   control + semicolon

I expect you're after something like this
"xvkbd -xsendevent -text "\C\S\[Left]""
  Super+Control+Shift+J

Save the file, then run xbindkeys.
In order to reload any configuration changes, I killed the xbindkeys process then restarted.
xbindkeys syntax
I worked out the key combination by using a GUI for xbindkeys
sudo apt-get install xbindkeys-config
xbindkeys-config

Once you run that, press Get Key for the combination to put into the second line of your .xbindkeysrc file.
xvkbd syntax
From the manual:
\r - Return
\t - Tab
\b - Backspace
\e - Escape
\d - Delete
\S - Shift (modify the next character; please note that modify with ``\S'' will be ignored in many cases. For example, ``a\Cb\ScD\CE'' will be interpreted as a, Control-b, c, Shift-D, and Control-Shift-E.)
\C - Control (modify the next character)
\A - Alt (modify the next character)
\M - Meta (modify the next character)
\[keysym] - the keysym keysym (e.g., \[Left]), which will be processed in the similar matter with other general characters
\{keysym} - the keysym keysym (e.g., \{Left}), which will be processed in more primitive matter and can also be used for modofier keys such as Control_L, Meta_L, etc.; also, \{+keysym} and \{+keysym} will simulate press and release of the key, respectively [Version 3.3]
\Ddigit - delay digit * 100 ms
\xvalue - move mouse pointer (use "+" or "-" for relative motion)
\yvalue - move mouse pointer (use "+" or "-" for relative motion)
\mdigit - simulate click of the specified mouse button

Love to hear how it works out and if the combination was fit for your purpose. It looks good as a keymapper, but not necessarily a macro runner.


Very useful and light screenshot app for Linux is Flameshot - it provide easy and quick interface for making and editing screenshot, save it, copy to clipboard and upload to imgur.com via single click or hotkeys.


Finally i found the way

just we need add to add the following line in /etc/default/grub

GRUB_PRELOAD_MODULES="lvm"

then, in /etc/grub.d/40_custom

menuentry "Ubuntu.iso" {
set isofile="/iso/ubuntu.iso"
search --no-floppy --fs-uuid --set=root <your LV uuid here >
loopback loop ($root)$isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile          noeject noprompt --
initrd (loop)/casper/initrd.lz

}

and done, here i made a video

https://youtu.be/5MCWFStgkQU


My new laptop is powerful, How can i use all its power for ubuntu?

"I know the obvious advise whould be to change HDD with an SSD one ...", wait until you can afford a SSD. All other optimizations will give you only measurable, but not sensible, perfomance boosts (apart from preload maybe). Your machine has more than enough power to work fluidly with ubuntu.

You should think the other way around, how to use this processing power reasonable? Lastly, there has to be a reason to buy a laptop with so much processing power.

PS:

The reason why your screen turns black after login for a few seconds, is due the fact that your hdd is preloading something.
Because you haven't posted your lsusb output, i assume that your touchpad is from synaptics. Do you have installed gsynaptics and the xserver-xorg-input-synaptics?


I would run mysqldump periodically on machine #1; this gives you one large file. This file can then be transferred to machine #2 using rsync (with compression, as it will contain only ASCII text, SQL statements really) without bothering about database permissions. On machine #2, the dump file is unreadable for anyone but the owner. And as your database on #1 can be reached from a local machine, you can even do the mysqldump locally, which is useful for testing the procedure.

If anything goes wrong on machine #1, you need to reload the database from the last good dump file. Basically, that is a one-line command that erases the whole database and loads it from the dump file. Backup and restore procedures are well documented and described e.g. here and more tips and tricks can be found by googling mysqldump.

Using this standard tool will be much more safe and straightforward than trying to transfer the data files yourself.


Ubuntu stuck after creating live usb with unetbootin

Please shutdown the computer,
and after that unplug the USB pendrive,
and after that boot the computer again.

Maybe this makes the computer boot as usual again.

-o-

If it did not help, it seems Unetbootin used your hard disk drive as a target. What happens when you try the different options in the Unetbootin menu. Maybe it will start a live Ubuntu system, and you can use that system until you fix the problem.

For example, you can create a USB boot drive, boot from that drive, and repair the bootloader in your hard disk drive.

Maybe you should use another tool to create a USB boot drive. In Windows you can use Rufus or Win32 Disk Imager. In linux you can use mkusb.

-o-

If your computer does not start from its Unetbootin menu, I suggest that you borrow another computer, and try with one of these other tools, and this time, please check and double-check, that you will write to the USB pendrive, and not to some other drive. (mkusb was made in order to help identifying the target drive and avoid mistakes.)


How can I turn off my server when i am in the login screen?

sudo apt-get update ; sudo apt-get install acpid

That should be all you need to do; after that, the server will catch the ACPI event caused by a short power button press and respond by shutting down cleanly.


Try to follow the steps below:

Sign in to Skype application.
Click on the Skype icon (menu) located at the lower left corner of the application window.
Select Options...
Click on Notifications tab.
In the list, select Contact Came Online.
Untick the Enable Event and Play Sound File (below).
Select Contact Went Offline.
Untick the Enable Event and Play Sound File (below).
Click Apply button.

View solution in the original post:


To make Vuze the default bittorrent program, download a torrent file, right click on it, and choose open with.  You will then get a window like the image below.  Choose Vuse, from the list, and place a check mark in the set selected application as default action for this type

To change the default download (save) directory go to: Tools --> Options --> Torrents, and change the save directory


Could not initialize SDL : No available video device Don't move

For me, SDL2-2.0.3 was used.
-> Had trouble with no video driver found.
typed

sudo apt-get install xorg-dev

did another ./configure and it reported this

Assembly Math   : mmx 3dnow sse sse2
Audio drivers   : disk dummy oss
Video drivers   : dummy x11(dynamic) opengl
X11 libraries   : xcursor xinerama xinput2 xinput2_multitouch xrandr xscrnsaver xshape xvidmode
Input drivers   : linuxev linuxkd
Using libudev   : YES
Using dbus      : NO

It went through everything fine but the test folder after trying to make the code it reported "Missing -lGL"
so I just assumed it was missing mesa or something and I did this

sudo apt-get build-dep xscreensaver
sudo apt-get source xscreensaver -b
sudo dpkg -i *.deb

I force installed the popular xscreensaver with my own build and SDL worked.  The idea was if I could compile the screensaver then I can get SDL working.
Thanks. Worked for me. (video only)
tried to run testmultiaudio and got this

INFO: Using audio driver: dsp
ERROR: Don't see any specific audio devices!

I guess compiling and making VLC would solve most of this because VLC uses SDL for video and audio.

The counter idea is ncurses 5.9 works just fine.

Honestly, I was using peppermint 6 which was build from ubuntu and debian.  I assume it works on that OS too.  That is why I am posting in piecemeal steps... VLC compiling.... ERROR.  Trying to do the same with totem.
(while compiling totem)
Maybe I should make a scroller demo to my imaginary friends in ncurses "BranMuffin" "Cerealbowl"  "Cornflakes" and a "bowl full of cherries"

new SDL2-2.3 configure report

Assembly Math   : mmx 3dnow sse sse2
Audio drivers   : disk dummy oss alsa(dynamic) pulse(dynamic)
Video drivers   : dummy x11(dynamic) opengl opengl_es2
X11 libraries   : xcursor xinerama xinput2 xinput2_multitouch xrandr xscrnsaver xshape xvidmode
Input drivers   : linuxev linuxkd
Using libudev   : YES
Using dbus      : YES

another round of ./configure make make install on SDL
another round of ./configure make and ./testmultiaudio and BINGO I have it after I built and installed totem too
so somewhere in the chaotic view of things from VLC and sudo apt-get build-dep totem | sudo apt-get source totem -b | dpkg -i *deb ... I got my audio and video now.

References: [this page] and SDL install and compiling
remember to test if you can compile it yourself.

..to sum it up on another machine and it got it working (not the best way because I am a C average guy)

get SDL2-2.3 from libsdl site
get some packages and compile some.  I believe that VLC and XSCREENSAVER are the only packages that are needed VLC for SDL and audio and XSCREENSAVER for opengl

sudo apt-get install xorg-dev
sudo apt-get build-dep xscreensaver vlc totem
sudo apt-get source xscreensaver totem -b

(2.5) might as well get xscreensaver and totem freshly built and install the .deb packages
unpack SDL and go into the folder and do the common

./configure
make
sudo make install
cd test
./configure
make
./testmultiaudio

enjoy audio clip

OS USED peppermint linux but I assume that even debian, linux mint, and ubuntu would work.


I would suggest using the System Settings Display Settings to change the resolution. It should stay the same.
Although, to be honest, I don't understand why you would want to turn down the resolution. You have a very high resolution display, and so I think that instead of turning down the resolution (why waste all those pixels!), you should just adjust the scale of all text:


I need the /boot directory aswell. The Ubuntu CD can be loaded in a Linux Os and possibly that can be placed in your /boot directory. Load the livecd and chroot into the filesystem and update-grub in there.


Best way to use second computer as desktop mirror

VNC would be a really good option for you. Here is a link to an article that walks you through setup and configuration. I have used VNC in the past with great success.


To answer your second question: No, downloads and such don't continue while the computer is suspended. In fact, the network is brought down. Nothing continues. The only difference between suspension and hibernation is that during suspend, enough power is used to maintain everything in RAM.


Can I change Synapse shortcut to Super/Windows key alone?

I know this is a little old now but thought solution by be useful anyway.

First remove any super key bindings e.g. <super>+p is a common one for screen settings

Then close Synapse

In        ~/.config/hotkeys/synapse.hotkeys

change

Signature=<Control>space

to

Signature=Super_L

Relaunch Synapse


I had this problem on 20.04 (WSL). Solved by installing yaru-theme-icon:
sudo apt install yaru-theme-icon
The geany package should depend on yaru-theme-icon, but it doesn't. It's a package management bug.


Yes, you can. Create a LiveCD and install.

The easiest way to install is to unplug your internal hard drive, plug in your USB hard drive, and install on the Hard Drive with the LiveCD.

Otherwise, you will have to do "something else", and create a swap, data, and home partition manually.

Make sure to install Grub on the hard drive, not your internal hard drive.


Ubuntu 20.04: WiFi hotspot not turning on saying system policy prohibits turning it on

The following solution worked for me.
Run from terminal (or simply execute with Alt + F2) the command:
nm-connection-editor

In the window that opens up, search for the voice hotspot and delete it.
Then go back to the settings page and activate a new hotspot, maybe activating and deactivating flight mode for a couple of seconds before trying.
That solved the issue for me.


Ubuntu 18.04 - fail to install using `apt-get install` after fail installing `VirtualBox`

Encountered same problem with VirtualBox v5.2

Try:

sudo dpkg -r virtualbox

or

sudo dpkg -P virtualbox

if it still asks - use sudo dpkg --configure -a


Execute command with relative (upper) path. Using another working directory

The keywords here is: running command with different working directory. You can google it yourself to find more information.

You can call it using parentheses - ()

$ (cd ../../../../tools/msp430/bin &&./msp430-gcc)

Parentheses will create a new subshell to execute commands inside it. This new subshell will change directory and execute program in this directory.

Quote from man bash

(list)    list  is  executed  in  a  subshell  environment (see COMMAND
          EXECUTION ENVIRONMENT below).  Variable assignments and builtin
          commands that affect the shell's environment do not remain in
          effect after the command completes.  The return status is the
          exit status of list.

where a list is just a normal sequence of commands.

Variables in a subshell are not visible outside the block of code in the subshell.
They are not accessible to the parent process, to the shell that launched the
subshell. These are, in effect, local variables.
Directory changes made in a subshell do not carry over to the parent shell.

In conclusion: subshell will see all variables from parent shell, but it will use them as local. Changes made by subshell to variables not affect parent shell

Another method using sh:

$ sh -c 'cd ../../../../tools/msp430/bin; ./msp430-gcc'

In this case sh -c will not spawn subshell, but create own new shell. That's why it cannot see parent shell variables. So remember: if you set some variable before executing sh -c new shell will not see it.

But there is also a little confuse between using single quotes '' and double quotes "" in sh -c. See this question to understand difference, I will only show little example:

$ TEST=test1
$ sh -c 'echo $TEST'

$ sh -c 'TEST=test2;echo $TEST'
test2

after executing first command nothing was printed out. It's because new shell do not have TEST variable, and '' do not expand $TEST.

$ sh -c "echo $TEST"
test1
$ sh -c "TEST=test2;echo $TEST"
test1

here first command $TEST was expanded because of using "", and even if we set TEST variable in new shell $TEST already expanded, and it printed out test1

Sources

About sh -c "command". Very full answer.
About parentheses
Similar question
From bash guide about parentheses
Difference between '' and ""


Updates error W:Failed to fetch http://us.archive.ubuntu.com

These are links to packages to Ubuntu 13.10 (Saucy Salamander) which reached its End of Life. So you can remove these lines from your /etc/apt/sources.lst file. If you are still using Ubuntu 13.10, it is better to switch to more recent version such as 14.04 LTS.


Can Ubuntu Touch be install from other Ubuntu flavors?

Basically you are just flashing a new ROM to your phone and then install it with a bootmanager on your phone.

You can flash the ubuntu touch ROM from any system you want. All you need is a tool for flashing the ROM to your phone (copying the image to the phone to speak easy).

The Android SDK, with adb and fastboot, is convinient for this task and available for all major plattforms (Linux, Windows, Mac).

So, to answer your question, yes, you can flash ubuntu touch from any OS or ubuntu flavor to your phone with the Android SDK, but to install you need your phone to be unlocked and a bootmanger installed that is capable to install an recovery image.


Cannot find netboot mini iso for Ubuntu Groovy 20.10

The Canonical decided to stop providing this image. See these topics on Ubuntu Community and LaunchPad:

Netbooting the live server installer

Installing Groovy via PXE boot

Poll about possible netboot mini.iso revival in future Ubuntu releases

https://pad.lv/1884538

As the workaround use 20.04 LTS from
http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/
and then upgrade it to groovy by do-release-upgrade after installation.


not connecting to internet when switch from windos7 to ubuntu after a restart

rfkill unblock all in terminal in Ubuntu
should do the trick.


How to Partition Your internal harddrive in Ubuntu 12.04 LTS

GParted is ok, but you must boot your system from a live system. You can take the usb drive/ dvd you installed Ubuntu from.


Tools to help filter out files (mostly images)

Are you Linux command-line-literate? Then find is your friend.

You did not tell us what format the "pictures" are, nor what sort of file system they're stored in.

Read (and re-read) man find.

find will let you traverse the recovered files, and Do Things to them either individually or as a group.

Knowing the data format of each "Picture" (read man file, and do man -k on the result) could let you extract the Picture's creation time/date.

I don't know of a solution for the Linux-command-line-illiterate, sorry.


How to backup files without access to the desktop?

As long as your stuff isn't encrypted, use either hirens boot cd and load mini xp, or use your install cd and click on "Try Ubuntu without installing". Then open up the file explorer and copy your stuff to another partition, another hard drive you have, or a usb flash drive. Re-install Ubuntu, and don't make a dangerous driver change ever again.


Connect cluster controller to the region controller (MaaS)

The first clue to the answer lies in the log /var/log/maas/pserv.log on the cluster-controller.  The problem was essentially an authentication failure.

2015-02-02 20:36:57+0900 [Uninitialized] ClusterClient connection established (HOST:IPv4Address(TCP, '172.16.10.3', 46209) PEER:IPv4Address(TCP, u'172.16.10. 1', 39492))
2015-02-02 20:36:57+0900 [Uninitialized] Event-loop maas:pid=1814 (127.0.0.1:33547): Connection was refused by other side: 111: Connection refused.

The second clue came from the region-controller's /var/log/maas/apache2/error.log.

[Mon Feb 02 18:02:10.106725 2015] [:error] [pid 31259:tid 140386414548864] OperationalError: FATAL:  password authentication failed for user "maas"
[Mon Feb 02 18:02:10.106731 2015] [:error] [pid 31259:tid 140386414548864] FATAL:  password authentication failed for user "maas"

For those that are curious I changed up my IP scheme to my eth0 interfaces which is the cause for the disparity but that did not fix anything.

This is likely a bug as in general this should happen... however the node should still show up in MaaS as pending waiting for administrator approval.

Once approval is given (from my understanding of how the system should work) the /var/lib/maas/secret password is transmitted from the region-controller to the cluster-controller.

Unfortunately the server never hits the pending state so this may not be performed.  Therefore what must be done to resolve this issue is to transfer your secret manually through the following commands:

Region Controller

cat /var/lib/maas/secret

Copy the output it should be a ~16 digit hex code. Then on your cluster controller run the following command and enter your copied "secret".

Cluster Controller

maas-provision install-shared-secret

lastly connect to the server through an API query of your choice (this probably isn't necessary but it does force the connection).

My Configurations thus far.

1. Assign Basic Network Settings to CCs and RC
a) Assign an IP from the Management LAN XXX.XXX.XXX.XXX
b) configure interface XXX.XXX.XXX.XXX and XXX.XXX.XXX.XXX

2. Install and configure MaaS
a) apt update && apt upgrade && apt install -y maas-region-controller ubuntu-cloudimage-keyring openssh-server
b) dpkg-reconfigure maas-region-controller
c) sudo maas-region-admin createadmin (use this account to access the web interface)
d) Create and install public key into maas profile
e) ssh-keygen -t rsa -C maas@maas.maas
f) cat /root/.ssh/id_rsa.pub and put the output into the add sshkey page on maas
g) (cluster-controller) apt install -y libvirt-bin maas-cluster-controller

3. Configure MaaS DNS and iptables
a) in /etc/resolv.conf verify XXX.XXX.XXX.XXXis the only nameserver
b) in /etc/resolvconf/head place nameserver XXX.XXX.XXX.XXX
c) (Cluster Controller) in /etc/bind/named.conf.options.* type the follwing:
"forwarders {
 8.8.8.8;
 8.8.4.4:
};"
d) (Cluster Controller) /etc/sysctl.conf uncomment the line net.ipv4.ip_forward=1
e) (Cluster Controller)run mkdir /etc/yourorg/
f) (Cluster Controller)in /etc/init.d/rc.local write /etc/yourorg/settings.conf
g) (Cluster Controller)create file /etc/yourorg/settings.conf in vim and include:

"#!/bin/bash

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT"

4. Install MaaS shared secret on any distributed clusters.
a) sudo cat /var/lib/maas/secret  (On region controller)
b) maas-provision install-shared-secret (Cluster Controller)
<paste secret>


Try system settings -> screen (has a lock symbol) -> uncheck "Dim to save power"


You can automate Juju deployments with Juju Deployer:

https://launchpad.net/juju-deployer

This is still in-progress, but you can find the documentation here:

http://pythonhosted.org/juju-deployer/


Why can't I type my password after using a sudo command?

It lets you type the password, it just doesn't show it to you. Type the correct password and press enter. You should be able to go.


There is no way to allow your laptop to use all the bandwidth (data) on your network via the laptop. All of that is managed by your router.

If you have a fairly decent router, you may be able to find something called "QoS" which stands for Quality of Service. QoS will allow you to select a device on your network, and then the router will automatically make sure that the device you selected will get the best performance. But there is a tradeoff. All of the other devices on the network will lose speed. This is because your laptop will now be taking priority over everyone else's.

Something else I would like to mention is that it sounds quite strange for an Xbox to hog all the bandwidth on your network. Usually it will only do that if it is downloading an update, or updating a game. A quick remedy for this would be to turn on the xbox late at night when no one is on the network, and allow it to do it's thing. As long as the files aren't too large, it shold be done by morning and should no longer use up all your bandwidth.


Theoretically yes. For now it is not very easily done by a user. The KlyDE project is working on making this easier for any user. It will be able to be achieved, by either not installing the particular module of KDE, or by configuring settings.


You're nearly there - the problem is that the Wubi root.disk remembers the partition that it is installed on via it's UUID and since you've gone and reinstalled Windows it has changed.

Wubi boots via a (simplified) two step process. The first is Grub loading the root.disk which is generic. Then Grub load the grub.cfg (Grub menu) from the root.disk. This is where your problem lies.

So you can just hold down the Shift key after selecting Ubuntu and then, once the Grub menu appears, press C to get to a Grub command prompt: grub>.

Enter the following to boot the Wubi install, and then run sudo update-grub from a terminal after logging in:

search -s -f -n /ubuntu/disks/root.disk
probe --set=diskuuid -u $root
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img
boot


What does intermittent "Input/output error" suggest?

Backup your data NOW.

Then investigate further, or just head to a computer store to get a new hard drive :)


Cannot create password for account without one.

I hope you must have entered a password during installation for sure, if you dont remember and you have access to any other user account with administrator privileges, you can set password for this user from that account. For that you can use terminal,

Login to other account

ctrl+alt+t brings terminal screen type

sudo passwd rohith

here instead of rohith give user name of locked account for which you have lost password.

now you have to enter current user password and then you can enter new password for the other user. and then login to that account with that password.

Second method is by logging into debug mode from grub, and following same command as above


I don't think you are doing anything wrong.

Most likely the instructions in fstab are being executed before the network stack is up and operational on your client and there is nothing to mount at that point.

You might try something that's all the rage these days and that's a systemd automount. Add the following options to your fstab entry: noauto,x-systemd.automount so that it looks like this:

//192.168.1.129/SecurityVideos /media/share/ cifs credentials=/home/pi/.smbcredentials,vers=3.0,uid=1000,gid=1000,noauto,x-systemd.automount 0 0


Connect button greyed out for Wireless Network Authentication Required menu

Did you figure it out? Take a look at this. Connecting with nmcli from the terminal should at the least give you an error message so you may get a clue as to what the problem is.

http://www.ubuntugeek.com/ubuntu-tiphow-to-connectdisconnect-vpn-from-the-command-line.html

If you run nmcli con list does the VPN you named show up in the list?


How do I fix the audio on my laptop. model Fujitsu B6220

Open the terminal and issue these commands:

sudo add-apt-repository -y ppa:ubuntu-audio-dev/ppa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -y install linux-sound-base alsa-base alsa-utils libasound2
sudo apt-get -y install gdm ubuntu-desktop linux-image-`uname -r`
sudo apt-get -y --reinstall install libasound2 linux-sound-base alsa-base alsa-utils
sudo apt-get -y --reinstall lightdm ubuntu-desktop linux-image-$(uname -r)
killall pulseaudio
rm -r ~/.pulse*
sudo usermod -aG $(cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g') $USER

When you finish, restart your system. If sound still missing from your system, you can check this article


Bluetooth works on the same 2.4 GHz freq as Wi-Fi.

BT coexistence is bad in iwlwifi, but enabled by default.

Run

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N"

and reboot.


Can't connect to wifi and apt-get doesn't work

If you have no Internet connection, you can't install (as normal) by apt-get, as apt-get uses external servers etc.

Does this give you any help?: After installing ubuntu 12.04 my internet connection has completely disappeared

In short; you could try to follow these instructions, or download by directly searching http://packages.ubuntu.com/, save to USB stick etc., and install on your machine without a network connection, using sudo dpkg -i /path/to/package.deb (or double-click it to pull up the Software Centre).


Unable to access i18n in QML app's JS file

So I have a partial solution for the problem I was seeing.

After looking at the code for the RSS Reader core-app, it looks like when the ".pragma library" directive is used, the i18n module needs to be passed in to the JavaScript function being called.  This gives the JavaScript code the ability to call functions using the passed-in object.

For example, the JavaScript would look something like:

function getTitle(i18n) {
    return i18n.tr("CurrencyConverter");
}

This doesn't really answer the "why" of my initial question, but for anyone running into this problem, this should be a suitable workaround.


Simple C hello world program is not working in Visual Studio Code

Here is a screenshot of the C code in the question (hello.c) running correctly in Visual Studio Code. In order to run hello.c in Code Runner right-click the code and select Run Code.

(Click image to enlarge)
Please note in the left pane that I have the C/C++ extension and the Code Runner extension installed in Visual Studio Code. Please note in the tabs below the menu bar that the C code has been saved in a file named hello.c. Please note in the bottom pane that Code Runner executed this C code by running the following command:
cd "/home/karel/Desktop/" && gcc tempCodeRunnerFile.c -o tempCodeRunnerFile && "/home/karel/Desktop/"tempCodeRunnerFile


Why won't YouTube in Firefox prevent the screensaver?

Probably this is not what you would like to hear, but you are better off turning of the screensaver altogether. XScreenSaver has lots of problems, many Linux distributions have dropped it from their default installation for this reason.
So, this is not a problem on the side of Firefox.

I am adding some more background info. This what the official FAQ says:

How do I prevent xscreensaver from blanking the screen when I'm watching movies on my computer?
If you are using mpv or mplayer, put this in your ~/.mplayer/config file:
heartbeat-cmd="xscreensaver-command -deactivate >&- 2>&- &"
If you're using something else:
When you want to watch a movie, fire up xscreensaver-demo and select Mode: Disable Screen Saver from the option menu, which means not to blank the screen at all. When you're done watching the movie, re-select your previous mode.
That's kind of lame, I know. You should ask the author of the movie-playing software you are using to support xscreensaver.

Emphasis mine at the end. IMHO xscreensaver "rides the horse backwards", why would a media player need to be aware of a screensaver is beyond me.


After installing Ubuntu my computer boots into GRUB rescue mode after displaying 'no such partition'  error message.

Try to re-install GRUB (Hoping your installed Ubuntu partition is there).

Boot using a live cd of ubuntu.
Open a terminal and run the command

sudo fdisk -l

It lists the complete partition table of the hard disk. In there, identify which partition you have got your linux installed on. You can identify it using the drive size you had allocated for it and looking at the last column of the output which will be ‘extended’ for all of your linux partitions. The partition will most probably be something like /dev/sda5 or something. Remember this partition.

Create a temporary folder in your home directory (Note: You can make the temporary folder anywhere you want. I’m using the home folder just for the sake of explanation). I’m calling it ‘temp’ for now. So that ‘temp’ folder’s path will be /home/ubuntu/temp.
Mount your linux partition there. That is, assuming that you found your linux partition to be /dev/sda5, you mount that at the ‘temp’ folder by doing the following command

sudo mount /dev/sda5 /home/ubuntu/temp

If you want to check whether you have mounted the correct partition, go to your home folder and open temp. You will be in the ‘/’ directory. In there you will find ‘home’, in which your home folder’s name will be there. Once you’ve confirmed you have mounted the correct partition, do step 6.
You have to install grub by showing the system where to read the data from the hard disk at the beginning. Don’t worry, just run the following command

sudo grub-install --root-directory=/home/ubuntu/temp /dev/sda

The ‘/dev/sda’ corresponds to your hard disk name. Replace it by whatever the command ‘sudo fdisk -l’ command showed you.

You’re done. You may restart your system


Display errors after upgrade from Kubuntu 12.10 to 13.04

It seems like a bad upgrade (as I read in a question some days before, a Chinese Whispers effect). I think that you could try two things. The fastest one, delete all the hidden folders from your home directory to reset all the possible conflicting configurations (and then restart the computer) or the "slowest" that is backup all your personal data and doing a clean install.


Why is my Gtk.Notebook not fetching its label properly?

self.subjects.get_tab_label(subject_content) gets you a Gtk.Label instance but file_data.add_section expects a string as parameter.

Use

subject_name = self.subjects.get_tab_label(subject_content).get_text()


LSB modules are are Linux Standard Base modules.   You should be able to ignore those messages.  'lsb` is an installable package, if you want to install it.

For the nspluginwrapper messages you will need to find the plugin directory that has the link to the installation under /opt and remove them.   Those messages can likely be ignored as well.

acroread should be installed in the standard directories not /opt.  Shortcuts referring to the old installation will be broken.  /usr/bin/acroread should startup the reader.


How to install h.264 enc using command lines

Since this package is available in Ubuntu 14.04 repositories, you can directly run the following command to install it.

sudo apt-get install h264enc

or

download the deb from here

and install.


"Open Containing Folder" In Firefox & Chrome Doesn't Highlight The File In Nautilus

It's a longstanding issue which was reported here for Chromium. At that time, there was no way to select an individual item in a folder, only open the folder, and so was marked as fixed, with half of it being implemented. However, according to this bug report, Nautilus has implemented the ability to select individual items, and it seems so has Dolphin (KDE equivalent of Nautilus). Perhaps it's time to open a new bug on this.


Any similar function like ubuntu software center in Kubuntu?

Muon Package Management Suite:

The Muon Package Manager. (Which has heretofore been called “Muon”) Its focus has been and will remain hardcore package management with a sane GUI.
The Muon Updater, an update manager
Finally and with grand introduction, The Muon Software Center.

Synaptic Package Manager will be dropped as the default in the next development of Ubuntu (Oneiric 11.10) and this package manager will be shipped out.

However you can always install the Software Center ('Ubuntu Software Center') as it is available to install in Kubuntu from the default repositories.


How do I use dual monitors with Remmina Remote Desktop Client?

I think that remmina can't do this at the moment.

But you can use the xfreerdp command from your terminal:

xfreerdp /multimon /u:username /v:server_address:server_port

where username is your username on server, server_address is server location (IP address or hostname) and server_port is port (leave empty without ":" for default port).

If you don't have xfreerdp installed, you can install it from terminal:

sudo apt-get install freerdp2-x11


How to set up a secure Ubuntu Server running a Minecraft Bukkit Server and MySQL as a newbie?

This Is exactly what I did for my server, all you need to do is install java and id add a whitelist for your ssh server so you can prevent brute forcing attacks which are heavy on your servers resources. And also I found when I started my server with putty or any other ssh session, the server would stop as soon as I closed out putty. So I learned how to start it and keep it running 24/7.

Screen -S minecraft java -Xincgc Xmx1G -jar minecraft_server.jar
To exit out of the screen do
Crtl + a then do Crtl + d
And to get to the screen after exiting do
screen -rx

Hope this helps you, any other questions email me :)


Ran into this question while trying to solve the same problem, I solved it just by uninstalling amd driver.

Enter ubuntu Recovery mode while booting in.
Enable networking and mount file system using the recovery options.
Now "Drop to the root shell prompt".
Use amdgpu-pro-uninstall command to uninstall.

"exit" and everything should be back to normal.


If crash at open LO, go to this path ~/.config/libreoffice/4/ and take backup from user folder then remove it(user folder).

$cd ~/.config/libreoffice/4/
$cp -r user user_backup
$rm -r user

open LO again.


Dual boot mode (Legacy/efi) for external HDD

You need bootloaders for both modes.

The BIOS bootloader is the MBR in the head of the drive plus extra code in the rest of the first mibibyte of a drive with an MSDOS partition table and the content of a small partition with the flag bios_grub in a drive with a GPT.
The UEFI bootloader is the EFI partition and its content (a partition with a FAT partition table and a boot flag).

The following links provide detailed descriptions.

help.ubuntu.com/community/Installation/UEFI-and-BIOS/stable-alternative
help.ubuntu.com/community/mkusb/persistent#Partitions
help.ubuntu.com/community/DiskSpace


How to uninstall PostgreSQL installed from .run file?

The installer should have installed also a program called uninstall-postgresql. Open a terminal and run

sudo uninstall-postgresql

This should work. If the shell complains that it cannot find the program (command not found), find where it was installed:

sudo updatedb
locate uninstall-postgresql

and run it with the full path returned by locate.


How can I create a linux os in ram from a USB without booting it?

This question is actually two questions.

How can I run Ubuntu in RAM?

You can do it with the boot option toram when booting a live session 'Try Ubuntu'.

How can I start Ubuntu without booting?

You cannot do that, but there is a workaround. You need not boot the computer itself, you can boot a virtual machine, and run Ubuntu as a guest operating system.
Install a virtual machine, for example VirtualBox, {KVM & virt-manager} or QEMU
Boot the virtual machine from the Ubuntu iso file. The answer by @C.S.Cameron shows an easy method to use QEMU
If you wish, you can create a virtual disk and install Ubuntu (in the virtual disk in the virtual machine)
Please notice that the virtual machine will be less powerful than the real hardware computer, so Ubuntu will struggle unless the [real hardware] computer has rather powerful CPU, GPU and enough RAM to run both the host operating system and the guest operating system (Ubuntu in the virtual machine).


Besides the keyboard layout, the XKB keyboard configuration also lets you set a keyboard model value which matches your physical keyboard.

Open a terminal window and run this command:

sudo dpkg-reconfigure keyboard-configuration

It opens a dialogue, and the first thing you are prompted to select is the model. The currently selected model does probably not fit your new keyboard.


Bind9 dns server logging options (Ubuntu 18.04)

~# grep log /etc/apparmor.d/usr.sbin.named
  # some people like to put logs in /var/log/named/ instead of having
  # syslog do the heavy lifting.
  /var/log/named/** rw,
  /var/log/named/ rw,

Logs should be in /var/log/named/ or Apparmor will silently deny access. If you REALLY want to override the package maintainer's choices, configure it in /etc/apparmor.d/local/usr.sbin.named


Yes, that was exactly the issue, a binding problem.

It's almost like a "vanilla" openvpn service was starting before by openvpn server and was taking the IP/port. So I went in and modified the /etc/default/openvpn file. Pointed the AUTOSTART to my server name and also added the full path to myserver.conf file in the OPTARGS

starts up fine now !

Thanks!


Apache 500 after Upgrade to PHP 5.6 on Ubuntu 14.04

So this was unexpected. It turns out my problem was not related to the above Apache logs at all. When I upgraded the PHP version from 5.5 to 5.6, many of my extensions including mysql, curl and mbstring were removed. Reinstalling these extensions using the appropriate commands below:

sudo apt-get install php5.6-mysql
sudo apt-get install php5.6-mbstring
sudo apt-get install curl libcurl3 libcurl3-dev php5.6-curl

combined with the Apache commands:

sudo service apache2 reload
sudo service apache2 restart

resolved all of my problems.

Apologies for the ignorance on this. I should have checked the extensions first.


failed command: READ FPDMA QUEUED, only on Tuesdays

As we have discovered that the issue is caused by fstrim, let's disable it:

sudo rm /etc/cron.weekly/fstrim

And then see how system works after disabling TRIM.

Note: my system is installed on Samsung PRO SSD.

$ sudo hdparm -I /dev/sda | grep TRIM
   *    Data Set Management TRIM supported (limit 8 blocks)
   *    Deterministic read ZEROs after TRIM

I have both periodic TRIM (fstrim cron-job) and continuous TRIM (discard option in /etc/fstab). It operates without issues.


LTS Enablement Stacks - Should I use quantal, raring or saucy?

The choice between quantal, raring and saucy is really up to you but these stacks are named after the release they feature in. As such, the saucy stack is currently unreleased and should be considered unsuitable for production.

Moving between stacks is possible. They're just packages, after all.

The only real bad scenario is starting on 12.04, installing 13.04's HWE and then upgrading the distribution to 12.10. Your X stack would be newer than the rest of the system in an untested configuration. I would recommend removing the HWE stack packages before upgrading.

Standard LTS upgrading (eg to 14.04) is fine though you may need to manually upgrade the HWE. I should also point out that come 14.04, the only two stacks supported for 12.04 are the original stack and 14.04's (which will continue to be supported for the remaining 3 years of 12.04's lifespan).


How can I unistall Evolution without removing Gnome?

The gnome-core package is a meta-package. As Evolution is part of 'GNOME' it includes a dependency on the evolution package as well. It is completely safe to remove gnome-core as it won't remove all of GNOME (or any of it, as it's a meta-package).


So i could finally solve this problem. What you need to check is the following:

If running  -ltrh /dev/video* shows ls: cannot access '/dev/video* so you need to "reset" gcspa_kinect (Apparently freenect doesn't let it to be used after yopu run for example freenect-glview. "REsetting" this is done the following way:

sudo modprobe -r gcspa_kinect and then sudo modprobe gcspa_kinect.

If you run -ltrh /dev/video* again, it shows a recognized device. Now you can use for example Cheese to verify that the camera is working.

If you run freenect-glview again then you'll need to repeat the process.

If anyone knows how to make a permanent solution of how to get the camera recognized by the system as a webcam and still being able to use freenect that would be great!!


How do I get WebEx working with audio on Ubuntu?

2019 update: WebEx through Chrome on Ubuntu works fine for me with screen sharing (even in personal rooms) and the ability to start meetings. You should use the url with "meet" in it not "join" for personal rooms eg. abc.webex.com/meet/xxx

The steps below may not work anymore.

The following steps should work (tested on Mint 18 based on Ubuntu 16.04 and Mint 19 based on Ubuntu 18.04):

Remove 64 bit Firefox if installed:

sudo apt-get remove firefox

Install 32 bit Firefox 52 (or earlier version). Go to download and extract the 32-bit Firefox ESR installer. Make sure it doesn't auto update by changing the update settings in preferences.
For Firefox 52: Launch Firefox and type about:config in the location bar.
For Firefox 52: Accept the risks and then add a key (right click mouse → New → Boolean)
For Firefox 52: Call the key plugin.load_flash_only and set it to false
For Firefox 52: Add a Firefox extension for switching the user agent e. g. User-Agent Switcher or edit the general.useragent.override string property.
For Firefox 52: Set the user agent to an earlier version of Firefox on Linux e. g.

Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0

Close Firefox
Download the .tar.gz 32-bit JRE package for Linux on www.java.com and store the file in the folder Downloads in your home folder (i. e. ~/Downloads). It will be of the form: jre-8u161-linux-i586.tar.gz.
Then do the following to extract the JRE in a shell:

sudo mkdir -p -v /opt/java/32
cd ~/Downloads
tar -zxvf jre-8u161-linux-i586.tar.gz
sudo mv -v jre1.8.0_* /opt/java/32

Now the Java needs to be linked to Firefox. In a shell:

mkdir -p ~/.mozilla/plugins/
cd /opt/java/32/jre1.8.0_161
ln -sf $PWD/lib/i386/libnpjp2.so ~/.mozilla/plugins/

Launch Firefox and WebEx should now work.
If it doesn't work and the wrong Java plugin appears to be loaded e. g. IcedTea, then remove them in a shell:

sudo apt-get remove icedtea-plugin icedtea-8-plugin icedtea-netx icedtea-netx-common

If Firefox 32 bit or Java or WebEx don't work, there may be missing dependencies. Try:

sudo apt-get install libgtk-3-0:i386 libasound2:i386 libdbus-glib-1-2:i386 libxt6:i386 libxtst6:i386 libcanberra-gtk-module:i386 libcanberra-gtk3-module:i386 topmenu-gtk3:i386 libpangoxft-1.0-0:i386 libxft2:i386 libpangox-1.0-0:i386 libxmu6:i386 libxv1:i386 libasound2-plugins:i386


Never mind, I got it to work. The .google_authenticator file was not created properly in my home directory (not sure why though, possibly I ran google-authenticator under the wrong user, possibly as root?), so after re-running it everything works fine.


It appears you are/have used the "Gnome 3 PPA" which on 11/07 removed the Oneiric glib packages, why I didn't purse.

Sorta leaves you in a touchy situation, don't know if 11.10 has any plans to upgrade glib to 2.31

The packages are still available for manually downloading & installing, links here under
"Builds" section, if so just grab the libglib2.0-dev_2.31.0-0ubuntu1~oneiric1 package

https://launchpad.net/~gnome3-team/+archive/gnome3/+sourcepub/2031687/+listing-archive-extra

Your other option could be to use ppa-purge & return to 11.10 versions, not sure how well that would go.


How can one use wpa_cli to connect to a WPA network without a password?

Short answer: set_network 0 key_mgmt NONE

Here is an example to connect to a network with security turned off:

> scan
OK
CTRL-EVENT-SCAN-RESULTS
> scan_results
bssid / frequency / signal level / flags / ssid
f8:d1:11:23:c2:2f       2412    76      [ESS]   BAYINET
f8:d1:11:23:c1:e9       2412    47      [ESS]   BAYINET
> add_network
0
> set_network 0 ssid "BAYINET"
OK
> set_network 0 key_mgmt NONE
OK
> enable_network 0
OK
CTRL-EVENT-SCAN-RESULTS
Trying to associate with f8:d1:11:23:c2:2f (SSID='BAYINET' freq=2412 MHz)
Association request to the driver failed
Associated with f8:d1:11:23:c2:2f
CTRL-EVENT-CONNECTED - Connection to f8:d1:11:23:c2:2f completed (auth) [id=1 id_str=]
> quit

you need the set_network 0 key_mgmt NONE part after you added your network SSID/BSSID then just enable the network with "enable network " and the interface is connecting...


nvcc not found, but only when using sudo

So apparently, nvcc is not on the PATH when you run it with sudo. You can confirm this with:

sudo bash -c 'echo $PATH'

The easiest solution is to call sudo with the absolute path of nvcc:

sudo $(which nvcc)

When running commands without absolute path like nvcc, sudo uses the value of the secure_path configuration in /etc/sudoers as the PATH, for example in my system:

Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

So even if you set PATH in one of the startup files that the shell normally sources, it won't work. If you want to make sudo nvcc work temporarily, just to get your build working, I think you have two options:

Edit the installer script and change the lines with sudo nvcc to sudo /path/to/nvcc
Create a symlink to nvcc in one of the directories listed in secure_path, like this: sudo ln -s /path/to/nvcc /sbin/nvcc

UPDATE

If you have a hard time finding the path of nvcc, you can try these commands, in this order (they get slower and slower), until you find a match:

which nvcc
find /usr/local/cuda-5.0 -name nvcc
find /usr/local/ -name nvcc
find /opt -name nvcc
find / -name nvcc


How to avoid my filters to cause "another operation in progress" error in Thunderbird?

This looks like a limitation of the mbox format that firefox uses (with a slight tweak) as they are one file per mailbox and assume a single thread of access not multiple ones. Try converting your mailbox to another of the supported formats like Maildir , Mork or MozStorage which can better handle concurrent accesses.

Be sure to back up your mail box first and to test the other formats before relying on them.


How enable desktop sharing for VPS server ubuntu 12.04

Usually VPS don't have a desktop environment, so you have to install one from the ssh connection, install VNC and after that you'll be able to use a VNC client to connect to your remote desktop.

Just keep in mind that graphical data is far more bandwidth clogging than text. I.E. VNC will use more bandwidth than just browsing the web. Plus any media content on sites will not be very smooth on VNC, if they play at all.

And your desktop environment will use a lot of memory of your VPS, so in short in general is not a good idea to have a VPS with a DE, but if you really need it connect via ssh and run:

apt-get install ubuntu-desktop gdm vnc4server

Check also:

Can I run a desktop environment off a VPS?

How To Install X Server on a VPS (with VNC access)


Does the Wacom Bamboo Pen & Touch work out of the box?

I'm following this thread on Ubuntu Forum about Wacom Bamboo Pen and Touch Series Development.

I think that sometimes wacom bamboo pen and touch work out of the box on Ubuntu, but many times they don't.

So for now you have to manually download latest driver from Linux Wacom Project http://linuxwacom.sourceforge.net/ and compile it yourself.

Here http://ubuntuforums.org/showpost.php?p=9805935&postcount=1124 jcannonsr say that there is also a ppa with dkms module but I haven't tried if it works.

You can find other useful information on these bug reports:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/568064 Lucid 10.04
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/477105 Karmic 9.10


Low Wi-Fi signal in HP laptop with Ubuntu 16.04

The driver rtl8723be that is included in Ubuntu 16.04 is not yet able to autoselect which antenna wire has the best signal strength.

It is therefor necessary to do some trial and error to determine if the best antenna is #1 or #2. You have determined that, in your case, it is #1.

We can create a file that will instruct the system to load the driver with the correct parameter automagically on boot. Please open a terminal and do:

sudo -i
echo "options rtl8723be ant_sel=1"  >  /etc/modprobe.d/rtl8723be.conf
exit

You should be all set.


Do I need to have Java (IcedTea) Installed on my machine?

The site is probably just checking for Oracle's implementation of Java and since it does not find it it complains you need to install it.

That happens a lot with bad programmed sites that require Java, ie: one of those seems to be my NAS web interface, everything works the same as my Windows laptop with Oracle Java, nothing is different, still it complains I need Java installed

If everything is running then that is a sign you have Java (probably the open source OpenJDK implementation) and if you have no complaints I would say its more than save to ignore the warnings you get.

Make sure you tick any box with the option Don't annoy me again and move on, you can start thinking about it if anything seems wrong later on.


I had the same issue.

My solution was like so:

open a terminal (alt F2, gnome-terminal)
sudo apt-get remove fonts-cantarell
sudo apt-get install fonts-cantarell

And all fonts appear.


Hard disk failure error on SMART status. how can i fix it?

As I answered a while ago, you can check the SMART status of a disk through Disk Utility... But that's really only a tiny portion of the story.

Your disk is failing a test. Some of the SMART tests aren't too important but you need to check which it is. If it's one of the following, back up, buy another disk, and move everything off and bin the current disk.

Read Error Rate
Reallocated Sectors Count
Spin Retry Count
End-to-End error
Command Timeout
Reallocation Event Count
Current Pending Sector Count
Uncorrectable Sector Count
Soft Read Error Rate

It sounds dramatic but if one of those values is beyond its threshold, your drive has a real possibility of suffering some sort of critical failure in the near future. Acting as soon as possible may save you a sudden and rude interruption when you need the drive in the future and it fails.


OpenConnect VPN not in Network Manager in 16.04

ubuntu man page

VPN support
Network Manager VPN support is based on a plug-in system. If you need VPN support via network manager you have to install one of the following packages:

network-manager-openvpn
network-manager-vpnc
network-manager-openconnect

The network-manager-pptp plugin is installed by default.

On GNOME, you also need to install the -gnome packages for the VPN plugin you choose:

network-manager-openvpn-gnome
network-manager-vpnc-gnome
network-manager-openconnect-gnome


`invalid signature` when trying to boot OSX's CLOVERX64.efi from GRUB

LiveWireBT is on the right track, but the answer is a bit different. Like LiveWireBT, I think this is a Secure Boot issue. The trouble is that, AFAIK, Clover doesn't explicitly support Secure Boot; and even if it did, Apple doesn't, so Apple's boot loader is not signed with a Secure Boot key. Clover works by launching EFI applications in a way that requires they be signed if Secure Boot is active, though, so anything launched through Clover will fail if it's not signed by a key provided in your firmware.

The easy solution to this problem is to disable Secure Boot in your firmware. With Secure Boot disabled, there will be no Secure Boot checks and everything will work. The trouble with this approach is that you won't get any benefits of Secure Boot, which means that malware could theoretically take control of your computer's pre-boot environment, which would be very difficult to fix. AFAIK, such attacks remain rare (maybe non-existent) in the wild, but they are possible.

A solution of medium complexity is to replace or supplement GRUB with my rEFInd. rEFInd supports Secure Boot, but it does so in a different way from GRUB, so that follow-on programs use Shim even when they aren't explicitly written to support it. Thus, if Clover is launched from rEFInd, Clover will be able to launch programs that are signed with keys that Shim recognizes. For this approach to work, you'll need to sign Clover, Clover's drivers, and Apple's boot.efi with your own key, which will add some setup and maintenance burden.

The most complex solution is to replace your computer's current set of Secure Boot keys with your own set. This set can include Microsoft's keys, but it can also include your own keys, which you'd use to sign Clover, Clover's driver, and Apple's boot.efi. These should all then launch with Secure Boot active. You could boot through GRUB, rEFInd, or anything else. (You could even set Clover as your main boot loader and use it to select between Windows, GRUB, and OS X.) The main drawback is that swapping out the keys is a rather involved process. I cover it in detail here, if you're interested in trying, or at least reading up on it to evaluate whether or not to try it. Also, if you go this route, you may have to periodically sign updated binaries when you update Clover, the Apple boot loader, and perhaps others. This will add a small burden to ongoing system maintenance, just as in the rEFInd solution.


My guess is that your computer can't handle the Unity desktop environment and is trying to make up with software acceleration. Try installing the lubuntu-desktop package and selecting it before you log-in. If I recall correctly (I'm not at an Ubutntu PC right now), you will see a small Ubuntu logo by your user name. Click that and you should get a list of the different desktop environments installed. Select LXDE. Not as flashy as Unity, but it should get the job done.

sudo apt-get install lubuntu-desktop


Sure. You can use enfcs, for example, to create an encrypted folder anywhere. Install encfs with sudo apt-get install encfs.

mkdir /path/to/encrypted
mkdir /path/do/decrypted
encfs /path/to/encrypted /path/to/decrypted

When run on a given encrypted directory for the first time, encfs will take you through setting the password and encryption options.

To unmount the encrypted folder, type

fusermount -u /path/to/decrypted

To mount the encrypted directory again, type the same command you used to encrypt it:

encfs /path/to/encrypted /path/to/decrypted

Note that encryption is quite different from Unix permissions ("only my user can access..."). In short, any person and only a person with the credentials (password to the encrypted directory) can decrypt it. That is rather the point of it, because anyone with physical access to your machine can become root, and consequently -- also any user, including you. It is as simple as booting the computer with a live cd or taking out the drive and connecting it to another system.


Partitioning only takes a few minutes, tops. Try burning another install CD, and check that your hard drive connections are good. You can also boot with the CD into a Live CD session and format the drive that way. Then reboot and install normally.

Don't worry about the 8GB RAM. Ubuntu will detect this at install and automatically enable Physical Address Extensions (PAE) if you are installing 32-bit. This lets you use up to 64GB of RAM. There are still some limitations, but they are minor and you can read about them at the link.

Best to ask only one question per post, so this might be closed. Don't worry too much about it though.


Samba: File location where share entries are stored?

If not defined in /etc/samba/smb.conf try folder /var/lib/samba/usershares/ and you will find files for each share you setup via GUI. (Ubuntu 17.10)


Partial Upgrade on 12.04.1, On what version i will be upgraded to?

When you see "partial upgrade" it just means that some packages cannot be upgraded as yet. Just refresh your sources or wait a few days (sometimes it takes longer depending on if there are problems in the build queue) and try applying updates again, and the packages that were held back will be upgraded.

12.04.1 is just a point release, so you will get it by just applying normal updates to your 12.04 install. You will not be upgraded to 12.10 unless you explicitly choose to do so.


How can I determine which software repositories are in active use?

This thread in ubuntuforums solves the problem with synaptic:
http://ubuntuforums.org/showthread.php?t=1685945

  Go into synaptic

  Select the "origin" tab in the lower left corner. There you can check
  if you have any installed packages from a specific repository.

  If you find any repositories you don't need anymore you can go to
  "software sources" on the "administration menu" and remove them from
  there.

  If you don't want to remove them completely, just untick the box to
  disable them.

  I would recommend you uninstall any packages from a repository you
  want to remove since you won't receive any more updates for them.


Invalid Characters trying to open text file created in notepad with Gedit

Likely an unexpected encoding:

>cat ISO-8859-15.txt
d�j� emp�ch�

Thefile command can tell you the encoding used:

>file ISO-8859-15.txt
ISO-8859-15.txt: ISO-8859 text

With this information you can use iconv to convert to another encoding (usually UTF-8):

iconv -f ISO-8859-15 -t UTF-8 -o UTF-8.txt ISO-8859-15.txt

Check:

>file UTF-8.txt
UTF-8.txt: UTF-8 Unicode text
>cat UTF-8.txt
déjà empêché


Which version of ubuntu is compatible with ACER Aspire 5732Z?

according tho the article there is a bug in aspire laptops
go through this link
http://ubuntuforums.org/showthread.php?t=1744809

reference ubuntu forums


How do I repair a broken Skype group chat (window)?

Okay I figured it out.

Skype stores user settings in ~/.Skype, so what I did was uninstall Skype, then in a shell, in my home directory:

mv .Skype skype_backup

I then reinstalled Skype and my "broken" group chat window now comes up!

I will probably just delete that skype_backup, but I will keep it around for a little while to be safe.


Firstly, the errors you're seeing with make install are because it's trying to install to a root-owned location.  You'd need to do sudo make install to install the program.

Secondly, if you have the apt-get installed version of minisat, you'll need to start by removing it, and then running the sudo make install to actually install the software after its built.


Keyboard Not Working in Ubuntu 18.04, Work in Windows Dual Boot

Try removing the board and then re-attach it.

Depending on laptop.

Or

Plug in a USB keyboard and see if the problem persists.

Normally, every keyboard should have a generic driver already for Ubuntu.

Something is not connected right.

Or

you messed up on install and chose another keyboard.


WiFi through USB Netgear WNA3100M is very slow

The problem is that you installed that driver without dkms. After a kernel upgrade the driver did not build.

You can install it from ppa with dkms

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms


'"Windows Backend object has no attribute 'iso-path' - see log for details.' error when trying to install

You can't install Wubi from a USB. It copies the entire USB partition as the ISO image and then checks the size in a strange check that is supposed to distinguish between a CD ISO and a DVD ISO. The check considers a valid CD ISO is between 550MB and 850MB (roughly).

So in this case you have an 8GB ISO. And that's why it failed.

Instead of using the USB, place the CD ISO in the same directory as wubi.exe on your local drive, make sure you remove the USB from the computer, and then run wubi.exe from the local drive.


Ubuntu 16.04 not detecting second monitor connected via VGA

Install arandr. Run that. Tell us if it sees vga device and can activate.

Another idea. run nvidia-settings and look for the prime setter. I do not see problem you describe so much when I specify intel as dominant.

Generally, I see thus much less often after upgrading kernel to 4.8. Problem was severe in 16,04. Am running the post 16.10 devel packages also for x11.

If you still struggle, may need fiddle your nvidia driver version. If you write back, give version numbers on everything I mention..


Viber installed but missing after some time

I have the same situation, viber app worked pretty well, but several days ago I turned on my computer and didn't find viber app. No icon in dock, no application in list of all applications. It's weird and I have no idea how to solve this problem.


Remove Search.bitcro.com virus from google chrome in Ubuntu 12.04

Since it is a browser hijacker, to get rid of it you can：
1.Reset browser settings

2.Disable/Remove Chrome extensions

If it does not go away, then you need the third step,

3.Download removal tool and run it


Shutdown not working for Users logged in through winbind

Changed /usr/share/polkit-1/action/org.freedesktop.login1.policy

under action org.freedesktop.login1.power-off

change allow any to yes


Lubuntu 13.10 Minimal Install shows no desktop

I encountered this issue as well.  Here's how I got around it.

At the login screen, select Openbox and login.  You will still have no desktop.  Right-click on the background and open up a terminal emulator window.  Execute the following:

sudo apt-get install lxde

After this, I was able to switch back to the LXDE interface and get in with a desktop one would expect to have on login.


UEC - Unable to SSH into instance, asks for password

Try this

ssh -i mykey.priv ubuntu@ipaddress-of-instance

This will not ask any password to enter.


When programs "install" (here install is a bit epic) stuff in the home directory is because they understood that you were in your current project directory. They do not install in the sense that all users can use the stuff but in the sense that "this is my project, keep all this stuff together". Some programs include removal methods using npm as example:

npm uninstall module_name

and done. If you use -g or global you must use -g too. For other tools they include their own removal method or you just can remove manually the directories.