Problem - Firefox suddenly can't establish a connection to the server at localhost

It indicates that the server at localhost isn't working. Open a terminal window and type service apache2 status.


Skype Sound Devices Limited To PulseAudio Only

This is an inherent limitation of Skype since the first release after Microsoft bought Skype, and I suspect it was done to limit the number of things they had to program for a competing operating system (or possibly to make Windows more attractive to Skype users than Linux).  PulseAudio is the only sound device Linux Skype supports, and that's that.  I solved this problem on my own system by installing an extension wire on the speaker jack; I plug in the speakers most of the time, and switch to the headphones when I'm on Skype.  You could do this more smoothly with a small A/B switch box with suitable jacks and plugs -- but there isn't any way to do it in software.


How to shut down cleanly on signal from UPS?

Install and configure nut-server and nut-client to work with your UPS. Note that however, it does not work with all available UPS systems available.


Must apt-get install software-properties-common precede ppa:X?

Both ansible and python-certbot-apache are available from the official sources and you only need step 3 to install them. The PPAs have newer versions of the software though, so I assume you want to use them nevertheless.

apt takes care of dependencies itself, you usually don‘t need to do anything about it, and this includes software from PPAs. All you need to do is:

Add your PPA(s):

sudo add-apt-repository ppa:ansible/ansible ppa:certbot/certbot

Update the software sources so that apt knows about the new software:

sudo apt update

Install the software you want:

sudo apt install ansible python-certbot-apache

apt will announce you if there is other software needed, and install it directly in the third step.

There may be the case the (preinstalled) command add-apt-repository is not available on your system, in which case the first step will throw an error. Only then you need to install the software-properties-common package (once) before following the above steps:

sudo apt install software-properties-common


How to get back up of my installed program in ubuntu

If I understand correctly your main concern is if the programs you installed will be available on your system after the upgrade.

The answer is simple: yes  (as long as you installed them in the standard Ubuntu way, through Ubuntu software Center or synaptic or apt-get install..).

That doesn't mean backing up your data is not necessary anyway :-)


Skype 4.2 in Ubuntu 13.04 won't open in nVidia Optimus Laptops

Try this:

Install the package libgl1-mesa-glx:i386

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libgl1-mesa-glx:i386

Launch Skype via:

LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1 skype &

You can put the last statement into a shell script, e.g. ~/bin/skype , or create a .desktop-File with this content:

Name=Skype
Terminal=false
Exec=LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1 skype
TargetEnvironment=Unity

UnityLaunchersAndDesktopFiles


Livepatch allows you to install some critical kernel security updates without rebooting your system, by directly patching the running kernel.

It does not affect regular (not security-critical) kernel updates, you still have to install those the regular way and reboot. It does not affect updates to other non-kernel packages either, which don't require a reboot anyway.

On a regular home or office computer, which does get rebooted daily (or every few days to weeks at least, your mileage may vary), Livepatch probably doesn't give you many benefits. It's mainly intended for servers which are supposed to have months and years of continuous uptime without reboots.

See e.g. this blog post for more information about Livepatch: http://blog.dustinkirkland.com/2016/10/canonical-livepatch.html


In general, the font is selected and set, when the pdf file is created. If the selected font is not available in your computer, when you want to display the pdf file, the viewer might select another font, that is as similar as possible.

Beyond that, I don't think evince can change font style. A word processing tool, for example libreoffice might be able to do it, depending on how the pdf file was created, but it is not convenient and I don't think this is what you want.


How can I make a .deb package from github?

You aren't building a deb from source here. You can read the documentation provided on the link you posted, but I will summarize here. The commands you will have to do will be as follows:

git clone https://www.github.com/KDE/kdenlive
cd kdenlive
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/bin
make -j4
sudo make install

This will:

Gather the source files
Set up a build environment
Tell the system where to install (In this case, /usr/bin so that it can be called with just kdenlive)
Build the source into binary
Copy the binary into the installation path so that it can be called.

If, however, you really do want to build a .deb file, you can do most of this process the same. However, before you begin, start by running:

sudo apt-get install checkinstall

Then, follow the same procedure as above. However, replace:

sudo make install

With:

sudo checkinstall

The checkinstall application monitors what was made and installed, and compiles a .deb file accordingly.


Isolate integrated intel (igpu) from Nvidia (gpu)

So I was close it seems. Final workaround is derived from here:
https://devtalk.nvidia.com/default/topic/970144/linux/intel-for-display-nvidia-for-cuda-optimus-bug-/1

Using Prime switch to Intel sudo prime-select intel
Remove the link sudo rm /usr/bin/nvidia-smi
Create a bash wrapper for your installed version (384 in my case). Note you'll have to update this when you do the driver.

nano /usr/bin/nvidia-smi

#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib/nvidia-384; /etc/alternatives/x86_64-linux-gnu_nvidia_smi "$@"

sudo chmod +x /usr/bin/nvidia-smi

Reboot


The answer is hear:

http://forum.opensubtitles.org/viewtopic.php?t=1303

"100 downloads for 12 hours per IP, there is no limit I think, but out search result is limited to 250 results"


This looks like the thing you need.

Make sure you have linux-headers-generic installed.


here's a simpler way to fix it: sudo apt-get install chromium-codecs-ffmpeg-extra. Source: Bug #991758


Partitioning During Installation, Reinstalling Ubuntu, Backup donwloaded Repositories

You seem to have the right ideas about some things, but I'm not sure about the packages.

As for /root, you've got it wrong. The Filesystem Hierarchy Standard (FHS) has a good article at Wikipedia.

/ is referred to as root, but you've put /root on a separate partition(probably confusing the two; there's really no need to put /root separately.). Also, I see no need to put /var on a separate partition.

In case it was unclear, / is your main filesystem - your root partition. If during installation you make another partition to be used at /home, as you have, then after installation when you browse to /home from / it will be like any other folder, but it will actually be kept on another partition.

If I were you, I would install with 2 partitions (not including swap): / and /home.
If you've got an SSD and a HDD, as I do, put the above on your HDD and put /boot on your SSD for faster boot times.

BTW, this is less a question for Ask Ubuntu and more a discussion. I suggest taking it to ubuntuforums.org.


SMPlayer has no sound with any output driver

SMPlayer 17.10 has stopped using some video and audio filters that have been deprecated in recent versions of mpv, and now it uses new ones. Unfortunately the version of mpv in Ubuntu 16.04 is very old and doesn't have some of the new filters.

Solution 1: update mpv

Solution 2: go to the SMPlayer preferences and turn off the audio equalizer and the volume normalization options. And don't use any of the audio filters from the audio menu.


You root partition is full (Mounted on /). Since /tmp is a directory on / you have (at least) two options:

a) Increase size of /. You may do this for example with the GParted live disk: http://gparted.org/livecd.php

b) Mount another partition on /tmp. For this you need to add an entry to your /etc/fstab file like this:

/dev/sdb1 /tmp               ext4    errors=remount-ro 0       0

Replace /dev/sdb1 with a partition you prepared before. You can use the GParted live disk again for preparing the partition.

I suggest you doing a) because otherwise your root partition is full and the system may stop working. b) helps if you have much stuff stored in /tmp.

Hope this helps.


Empathy Audio Call, Video Call, Desktop Sharing and File Sending not working

Just to answer that everything works in 12.10 or 12.04 updated but the part about remote connection is now handled by Remmina Remote Desktop Client since trying to install everything as mentioned in How can I enable the "Share Desktop" feature in Empathy? still does not work. So if you are one of the users that this does not work when:

Both users are using Empathy
Both have vinagre installed
Both are using the same ubuntu version (just in case)
Both are using a gmail account (jabber)

Then the only way would be to either use Google Hangout or Remmina.


Cannot auto mount NAS running samba on 12.04

For an unauthenticated share, get rid of "username=,password=" and replace it with "guest":

//10.0.1.4/NAS /home/wayne/NAS smbfs rw,guest,uid=1000 0 0


Ubuntu is all internet dependant, though you don't need it to install it. The reason for that is its internet-based application dependencies solving and community support.

To get Ubuntu for free, you will have to download the image of the disk yourself. If you would like a pre-burned copy shipped, you can buy whichever you need here: http://shop.canonical.com/index.php?cPath=17 , though that only allows you to get many copies at a time.

Oh, and also, a piece of advise: don't use wubi (the Ubuntu installer that installs Ubuntu from Windows) for anything important. It is good for trying out,  but bad for everything else.

A bit of personal experience from running on a computer with absolutely no internet: very, very difficult to work with. At least I could download the needed packages on my machine that does have internet, though that is very inefficient.


Tinyos not installed after installing Tinyos

I tried installing from https://github.com/tinyos/tinyos-main and it worked. All the commands in Installing TinyOS on recent version of Ubuntu are working

Try this git clone https://github.com/tinyos/tinyos-main.git

Then type the following commands

cd tinyos-main
cd tools
./Bootstrap
./configure
make
sudo make install`

Try the commands

tos-bsl
tos-write-image
tos-mote-key`


install ubuntu 17.04 usind wubi with already downloaded ubuntu image file

From Wubi Guide:

  [..] start Wubi from the command prompt with the "--32bit" argument.

  To modify arguments without using the command prompt, right-click
  Wubi.exe and select "Create Shortcut". Then right-click the shortcut,
  select Properties, and modify the Target line, for example:
  "C:\Documents and Settings\<user>\Desktop\wubi.exe" --32bit

"--32bit" argument still works, also for Community supported Wubi versions. Same folder is not enough if different file names are defined for 32 bit ISO and 64 bit ISO  ( /casper/vmlinuz, /casper/vmlinuz.efi )


sudo service apache2 restart VS sudo systemctl restart apache2

service is used when dealing with old system V init scripts and systemctl for systemd services, etc. I would suggest not dealing with service or system V init scripts anymore, unless it's some legacy application.


Use xargs with sh -c (orbash -c if needed):
find ...  -print0 |  sort -z | xargs -0 -n1 -I{} sh -c 'file=$1; echo "$file";' xargs-sh {}

If you don't need the sort step, better avoid xargs and use find -exec :
find /home/cas/plex-media/series/ -type f ! -name "*.srt" \
  -exec sh -c 'file=$1; echo "$file";' find-sh {} \;

For why we need this strange notation sh -c '...' sh {} , please see Is it possible to use find -exec sh -c safely?


Please try these commands:

sudo service openvpn stop
sudo killall openvpn


How to ignore assigning /dev/cdrom to specific device?

The naming of the cdrom devices is configured in
/etc/udev/rules.d/70-persistent-cd.rules . In my version of the file
there are four lines that create the cdrom, cdrw, dvd and dvdrw
symlinks, all pointing to the same drive:

SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-2:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-2:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-2:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-2:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

What do these lines do? They test some things with the == operator, and
then they add (+=) a symlink or set (=) the environment variable GENERATED.

You want to insert a new test there, so that your HSDPA stick is ignored.

So you need to find a unique attribute of your device. You can run
lsusb in the terminal and look if you find your HSDPA stick there.
And you can also ask udev itsself, e.g. with

udevadm info --export-db | less

(In "less" you can search with the / key, and quit with q.)
Try to find a unique attribute, like ID_SERIAL, ID_VENDOR_ID or ID_MODEL_ID.
The hex numbers in ID_VENDOR_ID and ID_MODEL_ID are the same numbers as in the output of lsusb.

If you have found something unique, insert a new test in the udev lines, comparing for inequality with the != operator:

SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}!="_USB_DISK_Pro_075A06420103-0:1", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-2:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"

Save the file, eject the USB stick, plug it in again and hope that it is working.


I use lighttpd to make media accessible via HTTP, which is unencrypted (and therefore relatively fast), allows access control and is quite usable for streaming, although often underestimated for this purpose.

This is my lighttpd setup:

server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
        "mod_auth",
        "mod_cgi"
)

cgi.assign      = ( ".cgi" => "" )

server.port                     = 8001
server.document-root            = "/home/shared/htvideo"
server.errorlog                 = "/dev/stdout"
server.dir-listing              = "enable"
dir-listing.encoding            = "utf-8"
index-file.names                = ( "index.cgi", "index.html")
include_shell "/usr/share/lighttpd/create-mime.assign.pl"

This brings up a small HTTP server on port 8001 which delivers content from /home/shared/htvideo. I got some self-written CGI scripts, to manage them, hence the CGI part in the configuration. But you can ignore that.

I use this to watch videos on my Android tablet without downloading them.

Whoops, you still need to start the service ;-)

Put this stuff into a configuration file (like .video_service), and run lighttpd -f .video_service.

After starting up the service tell your friends to point a browser to http://your.computers.ip.address:8001. They will see the list of files and can open each link directly with VLC media player, or totem or mplayer, Windows Media Player, or whatever. Most browsers even support to play MP4 videos (and sometimes other formats) by themselves nowadays.


Associate apt links in firefox with /usr/bin/software-center

Just tried it for a playdeb.net link and it brings it up for you.


Please install kpsewhich and put it on path - error using LATEX with Xournalpp snap

I was having the same issue as you. I was using the snap package of xournalpp.
First remove the snap package.
sudo snap remove xournalpp
After removing that package and installing it from the bleeding edge PPA repository, latex worked just fine.
sudo add-apt-repository ppa:andreasbutti/xournalpp-master
sudo apt update
sudo apt install xournalpp

If you want to stick to the latest stable version, you can instead use the stable releases PPA.
sudo add-apt-repository ppa:apandada1/xournalpp-stable
sudo apt update
sudo apt install xournalpp


What `apt` configuration file should the Never-Include-Phased-Updates flag be placed in?

After digging into the code...
Phased Updates is implemented by the file /usr/lib/python3/dist-packages/UpdateManager/Core/UpdateList.py, which is provided by the package python3-update-manager. Look around lines 185 and 360. The actual python code is apt.apt_pkg.config.find_b(), which searches among all apt configs.

The string should simply say: Update-Manager::Always-Include-Phased-Updates; or Update-Manager::Never-Include-Phased-Updates;. A True/False boolean is not needed or checked.
You should be able to add that line to any config file in /etc/apt/apt.conf.d/. Or create your own: /etc/apt/apt.conf.d/99-Phased-Updates.

The presence of phased updates, or the presence of Never-Include-Phased-Updates should both be logged in your /var/log/apt/ logs when Update Manager (also known as Software Updater) runs.

Other apt-based package managers (Apt, Synaptic, Ubuntu Software, Unattended Upgrades) don't use Update Manager code, do not use phased updates, and ignore the presence of the config string (it won't be logged).

For fun: The current status of phased-update packages in the repositories is at https://people.canonical.com/~ubuntu-archive/phased-updates.html
Advice for New Users: The purpose of Phased Updates is to protect you from an occasional buggy update. Let it do that. Advanced users who want to disable this feature know how to recover from those.


Your Windows is installed in UEFI-mode. Ubuntu has been installed in UEFI-mode too, but when you reinstalled Ubuntu you reinstalled Ubuntu in legacy-mode. You can still see the Ubuntu files in the ESP from your first install, but a look at fstab shows clearly that the current install is in legacy-mode (EFI-partition is not mounted!), also we can see that Grub is installed in the MBR of sdb.

You may use Boot-Repairs recommended repair to solve this, the important thing is, that you have to boot your installer in UEFI-mode to do that (look at line 791 in your log). When booting from USB you should have two options, on my machine it is something like USB2.0 or UEFI:USB2.0, the first option would boot in legacy mode, the latter in UEFI-mode.

Your mistake happened when you booted the installer to reinstall Ubuntu, remember: how you boot is how you install! If you boot the installer in legacy-mode, Ubuntu will be installed in legacy-mode, if you boot the installer in UEFI-mode, Ubuntu will be installed in UEFI-mode.

Even for the use of Boot-Repair we have to choose the correct boot-mode, as UEFI-features are not supported when we boot in legacy-mode. Your log shows, that you started in legacy-mode to run Boot-Repair, that is ok to create the log, but to reinstall Grub in UEFI-mode you have to run Boot-Repair in UEFI-mode!


Locate a file with specific words in the path, but also a specific file name

ls -ldh `locate -A wordlist oracle`

or

ls -ldh $(locate -A wordlist oracle)

I added the d option in ls to take care of folders (if any).


How do I know if device is mounted in udev rule?

Found it:

KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
IMPORT{program}="/sbin/blkid -o udev -p %N"
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="%E{ID_PART_ENTRY_UUID}"
ACTION=="add", PROGRAM=="/bin/grep -q ' /dev/%k ' /proc/self/mountinfo", GOTO="media_by_label_auto_mount_end"
ACTION=="add", RUN+="/bin/mkdir -p '/media/%E{dir_name}'"
ACTION=="add", ENV{mount_options}="relatime"
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8"
ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"
ACTION=="add", ENV{ID_FS_TYPE}!="ntfs", RUN+="/bin/mount -t auto -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l '/media/%E{dir_name}'", RUN+="/bin/rmdir '/media/%E{dir_name}'"
LABEL="media_by_label_auto_mount_end"


resume conjure-up opensatck installation

We have been brainstorming the best way to approach this. However, at this time support for continuing an install is not there. Though, juju status will probably show you a deployed cloud but the final post processing steps didn't complete so you would have to import glance images and setup neutron networking yourself.


cyberoam vpn client stops browsing for name based website but IP based works

check "/etc/resolve.conf file" maybe this file dont have any DNS Server entry.
Thats why name base site are not working. There can be another issue. Nameserver which is mentions in the resolve.conf file not reachable via VPN network.


"Audio device got stuck!" with bluetooth after one minute

I meet the same problem. And I'm convinced that it is a bug triggered inadvertently. I solved it through restarting pulseaudio daemon:

$ pulseaudio --kill && pulseaudio --start

Sound come back.


I have no clue why Pitivi is not able to import then in the right direction but the Effect Flipper. You just focus a clip and select the right video direction (ex: GST_VIDEO_ORIENTATION_90L to rotate left).
Unfortunately, it doesn't seem Pitivi currently supports to apply a filter for multiple clips at once, I had to do that one by one.

(Note: I don't recommend to use effect Rotate because the input angle is not in degrees.)


Yes, 802.11n support is mandatory for Wifi direct.And even if you make your wireless pci use ath9k, you still can't use wifi direct.See under supported chipsets in the link http://wireless.kernel.org/en/users/Drivers/ath9k


Bluetooth Mouse Pairs and Connects But Doesn't Do Anything

In a terminal, run sudo hcidump and see if moving the mouse produces output (even if the cursor does not move).  If it does, add yourself to the bug #1098959 (question "does this affect me?" in upper left corner).

Try the suggested solutions, reboot with Bluetooth off, kill the powerd process, start Bluetooth, run without a battery in laptop to suppress the title bar battery notification (may be some power options to set too).

And finally if all else fails, just change your mouse.  Only some mice have this problem.  My generic BT mouse had the problem, but a Microsoft Sculpt Comfort does not (and it does not display any mouse battery in the indicator either).


Error: When I try to install any package

Try running sudo apt-get install -f in the terminal. This attempts to correct a system with broken dependencies in place.


Portable Ubuntu External Drive ? Please Help

The quick answer: If you install Ubuntu on a external USB you will not be prompted to choose your OS everytime you boot your PC.

The scenario you are thinking of is when Ubuntu and Windows are both installed on the same harddrive and the GRUB boot menu asks which partition to boot from.

This is different when booting form an external drive and is actually handled by the BIOS.

This is very system specific so I can't give detailed instruction but here are the steps you want to take. Lets pretend you already have your Ubuntu liveUSB made.

Power down your computer and connect the external harddrive.

Boot the computer into the BIOS Boot options menu (this is system specific and is usually done by pressing either the ESC or a F* key during bootup).

In this menu there should be an option to boot from USB Drive. Select that and you will boot from the external harddrive.

To achieve a plug and play like experience you can do some more messing around in the BIOS. If you go into the BIOS Menu you should have an option to change the boot order. Your internal harddrive should be first (CD might be first). Change this so USB is the first in the boot order.

Now anytime you boot the PC with the USB plugged in it will automatically boot from the external harddrive, if it finds a bootable device.

Note: Much of this deals with your BIOS and is system specific and not really Ubuntu related.


How do I set ctrl+e to be "end of line"?

Changing CTRL-A conflicts with pretty much every application out there, because it's the standard select all keyboard shortcut, so I don't think that is possible with any GUI applications.


Wifi only works after turning the PC to standby (Ubuntu 12.04)

Create /etc/modprobe.d/asus_nb_wmi.conf containing the line

options asus_nb_wmi wapf=1

and reboot....


How can I automatically select Ubuntu at boot-up?

Run this:

sudo nano /etc/default/grub

and set this line to saved, and remove any # from it as well:

GRUB_DEFAULT=saved

also, set this line to true:

GRUB_SAVEDEFAULT=true

If these lines are not in the file, add them in.

Edit:
To get rid of GRUB completely, set this to 0:

GRUB_TIMEOUT=0

but as it is sometimes useful for GRUB to be shown, to recover the system, or boot to a different kernel, you may want to set this to 1 or 2 seconds:

GRUB_TIMEOUT=2

you could also hide the menu unless a key is pressed during the 2 seconds time period:

GRUB_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT=2

Then save with Ctrl+O, and exit with Ctrl+X.

Then run:

sudo update-grub

which will update the configuration. Now, it should automatically select as default the entry you selected previously, and disappear after a timed delay, and hide if you wish it.

More on editing grub here


apt-get upgrade downloads the same package every day

Look at the version numbers it says it's downloading to replace:

0.3+478~201507080101~ubuntu14.10.1
0.3+476~201507070101~ubuntu14.10.1

They are different. And looking at the full version, they look like nightlies (both built at 1:01 AM).

I suspect that if you look at apt-cache policy numix-icon-theme, you'll see you're getting it from a daily/nightly -style PPA, which tracks a development version control system and automatically recompiles the packages, regardless of change.

To stop this, either:

Stop remove (but don't purge) the PPA (this alone won't uninstall the package)
Pin the package


How to install pstocanonij filter in cups for canon printer (12.04 64 bit)?

Tested on Ubuntu 20.04
Just install printer-driver-gutenprint to handle the cups.
sudo apt-get install printer-driver-gutenprint


How to Install Dual boot ubuntu and win8 on Asus F202E-CT148H?

You must first disable UEFI on your computer BIOS, once you have done that Windows will still be able to start. You will then enter boot options and set to boot from the USB you have created of the Ubuntu 13.10 64 bit iso (you can use Universal USB installer on Windows to do this) and you will then be able to install it.

PS: You can also from Windows mount the iso you have downloaded by double clicking on it and install Wubi.exe that will install Ubuntu inside your Windows partition :)


Ubuntu 12.10 can't detect new hard drive

I'd check a few things

check if its detected in the bios/uefi
check if there's an entry for it in /dev/

If its detected in both cases, the drive itself is fine and, you might be able to run shred on the device, then reformat it. Since its a 3tb drive, you might end up needing to use gdisk instead so you can format it as a GPT drive


Ubuntu Gnome 16.04 suspends after booting up

I think I had almost the same issue after upgrading fom 14.04 on an older SAMSUNG laptop. Even booting from an install media (CD) did not work: The laptop went into suspend or hybernate mode every 10sec.
After booting from an 14.04 install media I could change HandleSuspendKey and HandleLidSwitch to ignore in /etc/systemd/logind.conf. This solved my problem. See: https://bbs.archlinux.org/viewtopic.php?id=178047


You need qtdeclarative5-qtquick2-plugin installed. If you just install ubuntu-sdk it will install pretty much everything you need.


Different clock time on Maas server and its nodes

I was having the same issue, and didn't figure out any "elegant" or "built-in" solution. So I just did a workaround:

On the file /etc/maas/preseeds/curtin_userdata, right after the lines:

late_commands:
maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']

Add something like:

late_commands:
maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']
setup_timezone_01: ["curtin", "in-target", "--", "sh", "-c", "rm /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime"]

... and adjust that Europe/Berlin to 'Europe/Rome` or wherever your controller is running on.

This way, maas will set (hardcode) the timezone into the target machine during the installation process.

Once again, probably not the best solution, but it does the job for me.


How can I change the time output of a command to 24-hour format?

This should be possible by setting the LC_TIME locale variable appropriately, ex.
$ lpstat -a
CUPS-BRF-Printer accepting requests since Thu 05 Apr 2018 05:36:42 PM EDT
DeskJet-3630 accepting requests since Thu 31 Aug 2017 03:59:12 AM EDT

but with LC_TIME=C
$ LC_TIME=C lpstat -a
CUPS-BRF-Printer accepting requests since Thu Apr  5 17:36:42 2018
DeskJet-3630 accepting requests since Thu Aug 31 03:59:12 2017


Is it possible to use ubuntu without ram at all?

No. The CPU can't execute code from the swap. Swapping works by moving RAM contents to the disk and other disk contents to RAM, but execution is always from RAM.

And no, there is no way to transfer code or data from the disk directly to the CPU caches. You can't bypass the RAM.

Even microcontroller architectures that can execute code directly from NOR flash need RAM for the stack, at least some built-in SRAM as some controllers have.


how to write a bash script to execute multiple bash scripts?

Most basic example vi test.sh with content:

#!/bin/bash
./test2.sh

vi test2.sh with content:

#!/bin/bash
echo "hi there"

test.sh when executed will execute test2.sh (and expects it in the same path as test.sh).


List and remove unofficially installed CA certificates

dpkg -S somefile will tell you what package somefile belongs to. You can use dpkg --verify pkgname or debsums to see if they have been modified.

You can use those to verify /etc/ca-certificates.conf and the directories it refers to -- basically, verify that CA files belong ca-certificates + dpkg-reconfigure -plow ca-certificates to chose among them. As you may have guessed, update-ca-certificates uses this data to recreate the global CA store files.

I don't have an easy answer for app-specific stores like Chrome's and Firefox's. You'd basically start by looking for global configuration directories, if any (dpkg -L), and then look into each user profile to see if custom CAs have been installed in that profile: look at the files, diff with a new one, check if the account is corporate-managed, ... StackOverflow or SuperUser can help more directly.

Obligatory note: installing packages from untrusted third parties can mess up the system in many ways (running any untrusted script, really). I think yours is still a fair question, since benign software sometimes adds a CA and won't try to hide the fact. However, if you suspect someone might have modified your system behind your back, it's far safer to reinstall.


Disabling the pepper flash has resolved this for me .. (so far)

Google Chrome 20: How to workaround poor performance with Flash?


This problem is related to the samba PAM module.

There are 2 solutions.

Solution 1:

Remove it with this command:

sudo apt-get remove libpam-smbpass

Reference

Solution 2:

Fix it by updating your PAM authentication module with this command:

sudo pam-auth-update

Remove the SMB password synchronization by using Down Arrow a few times and then Space. Then Tab to select OK and Enter.

Reference


Dealing with the "blobs" directories in /var/lib/docker is fraught with peril.

To see the contents of a docker container, the best way is to run a shell in it (if your docker image contains an executable shell):

docker run --rm -it --entrypoint /bin/sh <your_image>

If the container is already running you can instead do:

docker exec -it --entrypoint /bin/sh <your_image>

Then you have an interactive shell running in the container and you can use it to explore files (ls, cat, etc...)

Remember also that you can derive the container image to create another image in which you add other commands (or declare volumes to copy things outside the container for inspection).

If you want to inspect the container filesystem at your leisure you can export everything as  a.tar:

docker export -o <the_output.tar> <container_name_or_id>

But the result can be unwieldy if you start from a large image (Ubuntu, Centos...)

For something smaller, you just run tar inside the container with its output to stdout, and redirect (outside the container) the output to a TAR file:

docker run --rm --entrypoint "" container/image tar -c /the/directory >dump_of_the_directory.tar

In slo-mo:

run: start the container
--rm: cleanup
--entrypoint "": reset the entry point to a default shell (useful if the container defines its entry point to start a Java runtime, for instance
container/image: the name of the image to start
tar -c /the/directory ask the container to TAR the directory of interest to its standard output (no -f). The output of the container is therefore the TAR contents
>dump_of_the_directory.tar: capture this stdout in the host and move ot to a TAR file

You can use a similar technique on a running container with docker exec instead of docker run.


How can I speed up CD ripping with rhythmbox?

For my part, I have found that abcde ( A Better CD Encoder) is a perfect tool for the task.

sudo apt-get install abcde

It will :

rip the CD
get the meta informations from the net (titles, artist, etc...)
handle the encoding of your choice (if you have plenty of disk space, you can opt for a lossless ripping, and make smaller versions of your file later if needed)
do it in background without bothering you

To be more precise (from the man page), it will :

Do a CDDB or Musicbrainz query over the Internet to look up your CD or use a locally stored CDDB entry
Grab an audio track (or all the audio CD tracks) from your CD
Normalize the volume of the individual file (or the album  as  a single unit)
Compress  to Ogg/Vorbis, MP3, FLAC, Ogg/Speex, MPP/MP+(Musepack) and/or M4A format(s), all in one CD read
Comment or ID3/ID3v2 tag
Give an intelligible filename
Calculate replaygain values for  the  individual  file  (or  the album as a single unit)
Delete the intermediate WAV file (or save it for later use)

The only drawback (well, I don't think it is, but some people might) is that it's a command line tool.

According to this page there is a GUI for abcde called XCFA.


trying to install ubuntu on another computer

Download the desired Ubuntu ISO 12.10 32bit or 64bit, or 13.04 32bit or 64bit, once it downloads, you can either burn it to a CD/DVD, or create a bootable USB.   You can use UNetbootin to create the bootable USB, or Imgburn to create the CD/DVD.

Once done go to you XP machine, and set the BIOS to boot from either the CD/DVD or USB.


OutOfMemoryError: unable to create new native thread with no obvious reason

Since reinstalling the Oracle JDK did not help, I tried the OpenJDK and it worked. The OutOfMemoryErrors are now gone and everything works as expected.

EDIT

It seems, like switching the JDK did only help temporarily. But I just found out the real origin of the problem. It seems, like the OutOfMemoryError was caused by a specific mod that was in both modpacks, that I tried. I still don't know, how the OOME occured without increased thread count or a full memory, but anyways.

The mod that caused the problems was Astral Sorcery (version 1.12.2-1.9.4). So if you run into the same problems with your modded minecraft server, try removing that mod.


Can't configure Bluetooth on 16.04 Server

I was able to follow this AskUbuntu post using bluetoothctl. If you can't type in the bluetoothctl prompt, run it with sudo.

I also ran [bluetooth]# trust [keyboard MAC Address]


Is there any information on when the Ubuntu One Music Store will add more countries?

Sorry. Still no news. Since launching the initial set of regions, we've learned that the main challenge with managing more stores is the time it takes to keep the merchandising pages somewhat fresh with music that customers care about.

We have made some progress on this front recently, though, and hope to devote some time soon to overcome this obstacle so we can move forward with more stores. I know many people are interested in this so I'll post something on the Ubuntu One blog as soon as I have more specific information.


netbook slow on ubuntu (and win 7). Tips and tricks for speeding up

Ubuntu 12.10 is actually really slow. If you really really like unity interface i would recommend you to first try 12.04 version, cause is faster than 12.10, and it's a long time support. It also has a 2D unity interface which is better for old computers. If it's still slow using that, or if you don't like unity that much, i would strongly recommend to use Lubuntu 12.10. It's waaaay faster, everything loads almost immediately. I'm running a netbook with 1gb RAM and lubuntu, and it works faster than a laptop with 4gb RAM running ubuntu.


Ubuntu asks for that, there is an option during the installation process to let you install additional software for this.

The main reason for this is also the major legal issue with codecs from an user prospective: you are supposed to pay for using the codec that are patented and you are supposed to respect all the patents, trademark and intellectual properties associated with them.

In other words if this wouldn't be optional every Ubuntu user will be forced to pay for this by many international laws that protects this kind of patents.

Same thing applies to every player out there and any kind of software that makes use of patented technologies in general.


Minimal terminal editor alternative to vi and nano

micro shows help on F1, implements syntax highlighting, exits on Esc. No menus, but supports plugins.


Ubuntu / Xubuntu: Own login prompt virtual console

The stuff that is shown before login resides in /etc/issue. To change it, you have to edit this file. You can insert the following issue sequences:

\b   Insert the baudrate of the current line.
\d   Insert the current date.
\s   Insert the system name, the name of the operating system.
\l   Insert the name of the current tty line.
\m   Insert the architecture identifier of the machine, e.g., i686.
\n   Insert the nodename of the machine, also known as the hostname.
\o   Insert the domainname of the machine.
\r   Insert the release number of the kernel, e.g., 2.6.11.12.
\t   Insert the current time.
\u   Insert the number of current users logged in.
\U   Insert the string "1 user" or "<n> users" where <n> is the
    number of current users logged in.
\v   Insert the version of the OS, e.g., the build-date etc.

(src: http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/logon.html)

The login prompt (hostname login:) is hardcoded into /bin/login, so to change that, you have to download its source, edit, recompile and replace it. Have fun with that ;)

Whatever is shown after a successful login is either contained in /etc/motd or written by programs that run at login, such as the mail notification. Sometimes /etc/motd is linked to /var/run/motd, a temp file which is lost after reboot. If this holds on your system, either delete the link and create a "real" file:

rm /etc/motd && touch /etc/motd

and then edit it, or use the file /etc/motd.tail instead, but this will be appended to the MotD, not replace it.


How can I fix dependency problems in Ubuntu 16.04?

Open the terminal and type the following commands:

sudo apt-get install aptitude
sudo aptitude -f install ring-gnome

Read the output and confirm then choose Downgrade package.


How can i access others machine terminal through my machine?

Install the ssh server on the remote machine if it isn't already installed. (requires package openssh-server on remote machine, to get the remote machine set up, follow this guide: Link)

Then use the command from your computer, where "john" is the username of the user you want to log into the remote machine with, and "1.2.3.4" is that machines ip.

ssh john@1.2.3.4

You'll be prompted for the password of that user on that machine.

To set up more secure access, use this command(s)

ssh-keygen

Follow prompts.

ssh-copy-id john@1.2.3.4

Enter password one last time, and now you no longer need to use a password for user john when using ssh to access 1.2.3.4 .

This is more secure as you can disable password authentication in sshd-config. See: Here


getting directory of files excluding parent folder name

With GNU find, you can use

find ./app -name '*.component.html' -printf '%P\n'

From the -printf section of man find:

    %P     File's name with the name  of  the  starting-point  under
           which it was found removed.


Touchpad does not work - HP isa0060/serio1/input0

I'm not sure but try to install

linux-firmware-nonfree

package. May be it'll help.


How to create a script that will connect to a specific network

First add the credentials in the connection configuration file, look for a file in /etc/NetworkManager/system-connections called "MyVPN" and add the following section:

[vpn-secrets]
password=my_vpn_password

Then add password-flags=0 and secret-flags=0 into the [vpn] section.

Now you can easily create a connection to your new VPN with nmcli:

nmcli con up id 'My VPN'

Note that you may need to open the VPN configuration from the NetworkManager applet and save it from there to allow command-line connections.


Ubuntu14.04 does not shutdown and reboot

I think so. Probably you only were asked to reboot to make your system use a newly installed kernel.

But if that happens always (ie you try to reboot your VM and it just hangs) you may want to check your VM settings and check if ACPI is enabled in your guest OS.


I have found a work-around that suits me for now: Instead of having ssh do all the work of setting up users on the fly: you can set one user to be accessible via ssh:

edit /etc/ssh/sshd_config adding a line 'AllowUser <username here>'

and that user's launch script can be one which manages user accounts, creating them as needed, and then connecting the user to the correct file directory system for their "account".

To set a script to run for a specific user connecting via SSH:

edit /etc/ssh/sshd_config adding the lines:

Match user username
    ForceCommand /path/to/script

Where the username is the one you would like to force the command on.


Here's the link to the original post

  The source code for ubuntu is divided up by package - from a running
  ubuntu system you can easily retreive the source for any package by
  doing:

apt-get source (package name)

  Otherwise, go to launchpad, and search up the package in question. For
  example, here's the download page for the source code for a specific
  version of curl:

  https://launchpad.net/ubuntu/+source/curl/7.21.2-4ubuntu1

  That said, it's a lot easier if you're on a Linux system already - the
  package sources are divided into an original source tarball plus
  ubuntu patches, so if you don't use apt-get source, you'll need to
  manually apply the patch to the source code. And new-style packages
  are even divided into multiple packages.

  What's more, the packages are generally not designed to be
  cross-compiled from a non-Linux system. Even if you download them and
  open them in VS, you won't be able to build them from a Windows
  system.

  Finally, note that not everything is in C and C++ - there are packages
  in just about any language you can imagine. But I suppose most of them
  could be opened in VS as text files :)

  Note: If you really, really want all of it, and I can't stress enough
  how silly it would be to download everything just to start learning
  about the system, you can use the debmirror tool, available in ubuntu,
  to do this:

debmirror -a none \
          --source \
          -s main \
          -d lucid,lucid-security,lucid-updates \
          -r /ubuntu \
          --progress \
          -e http \
          -h archive.ubuntu.com \ ## or other ubuntu archive mirror
          destpath

  This will be an absolutely huge download. Have several tens of GBs of
  space available. Note that this downloads only core packages - replace
  -s main with -s main,universe,multiverse,restricted to get everything.

  Once you have the package files, you can extract the source by running
  dpkg-source -x on a .dsc file of interest.


yeah but windows isn't on the chromebook.
i think supposedly you can run the two linux and chromium
on the chromebook not only in dual boot which is one or the other,
but both at the same time.

https://www.google.com/search?q=run+linux+and+chromium+at+same+time+on+chromebook&rlz=1CAACAC_enUS567US568&oq=run+linux+and+chromium+at+same+time+on+chromebook&aqs=chrome..69i57.15364j0j8&sourceid=chrome&es_sm=93&ie=UTF-8

http://www.itworld.com/open-source/402077/how-run-linux-chromebook

:)


ASUS ROG STRIX Z370-E Wireless not working (continued)

Open Software & Updates from the start menu. Go to the Additional Drivers tab. There you will find the options to select your Wi-Fi and Graphics drivers. It will look like the image in the following link: https://ibb.co/gWd3yU

You may select the options I've selected. Then press Apply Changes. And hopefully, you are done.


Apache 2.4.12 using virtual host on /var/www/drupal

Follow these steps, it will solve your problem-

1. create a file drupalDev.conf in /etc/apache2/sites-available

  sudo gedit /etc/apache2/sites-available/drupalDev.conf

2. Paste following code in drupalDev.conf

<VirtualHost *:80>
        DocumentRoot /var/www/drupal
        ServerName drupaltest
        ServerAlias drupaltest
        ServerAdmin admin@drupaltest

        <Directory /var/www/drupal/>
                Options Indexes MultiViews FollowSymLinks
                AllowOverride All
                allow from all
        </Directory>
</VirtualHost>

3. Run following command to enable drupalDev.conf

  sudo a2ensite drupalDev.conf

4. Restart apache2 service

  sudo service apache2 restart

5. Browse new created host domain in browser

  http://drupaltest

Note :  You may need to change file permission of /var/www/drupal to 777

  sudo chmod 777 /var/www/drupal


Why can't I log in after unistalling Python 2.7 and installing Python 3?

You don't have to, and you shouldn't, uninstall python2.7 to install python3. You can have both packages installed at the same time. Many parts of Ubuntu require python2.7. Reinstall the packages you've uninstalled, and that should fix the problem. If you're having a problem installing python3 while python2.7 is installed, or you are having trouble getting python code to run in python3 instead of python2.7, please edit your question to include the relevant details.

If you're not sure which python2.7 related packages you removed, you can look in the log files that start with dpkg and are located in /var/log. If the removal operations were pretty recent, you can just look in /var/log/dpkg itself (i.e., the file called just dpkg and located in the /var/log folder).


Is there a way to restore Nautilus' split screen (F3) feature?

Among other features that were unfortunately removed in Nautilus 3.6 (used by Ubuntu 13.04 by default) was the extra pane/split screen, invoked using F3. It was removed because the GNOME developers thought it didn't work well on touch screens and that placing one Nautilus to one side of the screen with another to the opposite side fulfilled the same purpose. It doesn't, but I'm not a developer! Links to the bug and the commit.

One way to get the feature back is to install a patched version of the older Nautilus 3.4. The easiest way to do so is to add a PPA managed by the good people at webupd8.org. Unfortunately this patch version is only available for Ubuntu 12.04 and the now-unsupported 12.10 and 13.04 releases.

Run these commands in a terminal:

sudo add-apt-repository ppa:webupd8team/experiments
sudo apt-get update
sudo apt-get dist-upgrade
killall nautilus

N.B.: The instructions contain a warning, namely that if the dist-upgrade command attempts to remove packages, there is a problem and you should not continue. Otherwise things should be fine.

For Ubuntu 14.04 you'll need to patch Nautilus manually. This answer can get you started, but unfortunately I can't find what to patch exactly.

The simplest option is to change file managers. Nemo is quite similar to what Nautilus used to be. Yet Another User mentions below that it is in the repositories, but this webupd8.org PPA will install the newest version:

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


1.
Maybe try to remove your personal files (or backup them first if you need to). They are located in:

~/.mozilla/firefox
~/.config/google-chrome

and some caches:

~/.cache/mozilla/firefox
~/.cache/google-chrome

Both of these browsers will create new profiles for you at first run.

2.
You can also examine system-wide addons, they are at:

/usr/share/mozilla
/usr/lib/mozilla
/usr/lib/chromium-browser

3.
If its not the addons that couses problems, it also can be Man-in-the-middle attack - something is changing HTML/JavaScript on the arrival - check your proxy settings, your routing tables, your internet gateway... Check network requests in "Developer Tools" in those browsers (Firefox: Ctrl+Shift+Q, Chrome: Ctrl+Shift+I). Download some .html in terminal (wget <url>), check if its changed.


How to prevent an application from making an upgrade?

With aptitude (terminal)

Use sudo aptitude hold packagename, i.e. sudo aptitude hold apache2. To undo do sudo aptitude unhold package_name.

Also see How to prevent a package from being updated in Ubuntu for more ways of achieving this.

In synaptic (GUI)

Open Synaptic Package Manager (System > Administration > Synaptic Package Manager if you use gnome).
Click search button and type the package name you want to hold.
When you find package select it and go to Package (in menu) and click Lock Version.

As described by Re: Disable Package Upgrade and How To Disable Package From Updating In Ubuntu.


You can change the Calculator mode through the menu. You do not see the menu attached with the calculator itself, its present at the top panel. See the screenshot:

To change the base, you would need to use the Programming mode:


If you are talking about colorized output of some command line utilities like ls, grep, cmake, git diff, etc, please note, that it doesn’t have any relations to GNU Bash.

Anyway, there is several tools for converting output colorized with ANSI escape sequences to HTML:

aha from package of the same name
ansi2html from HTML::FromANSI Perl module (not packaged in Ubuntu repo, can be installed from CPAN)
ansi2html.sh by pixelb (not packaged, download from git)

Usage of all of them is rather simple: they read terminal escape sequences from stdin and put HTML to stdout. But note: most of utils don’t colorize output if it is not going to terminal. You have to order them to produce colorized output explicitly. E. g.:

$ ls --color=always | aha | xsel -i -b

xsel -i -b here will copy HTML to clipboard.


Unable to Remote Login a Ubuntu Router via OpenSSH with Successful Ping Result

You have no iptables rule allowing incoming ssh connections:

iptables -A INPUT -p tcp --dport ssh -j ACCEPT

The line you quote above will allow sshd to respond to incoming ssh connections (if the responses were otherwise blocked), but will not allow remote clients to establish a connection.


How do you use a fingerprint Scanner on 13.10

There are quite a few questions and responses to Fingerprint scanners on Ask Ubuntu.

Unfortunately these scanners appear to be quite proprietary and open-source support very limited.

There appears to only be the one Linux fingerprint scanner project.  I could not get this working on my laptop either.

Anyway give this a go http://www.omgubuntu.co.uk/2013/03/how-to-get-your-fingerprint-reader-working-in-ubuntu

and best of luck!!


problem with ubuntu 12.10 minimize animation

Try this :

Install compizconfig-settings-manager .
Run CompizConfig and click on Animation.
Go to the "Minimize animation" tab.

For me, the minimize effect is zoom and duration is 220 and of course the enable animation option is checked, on the left hand side.


Why cant I type numbers in the Terminal window?

The numlock key on an external keyboard may not control the "embedded" keypad on laptop  keyboards without a keypad (the jkl=123 mapping etc.). You can always use the number keys above the qwerty row.


This is nautilus (aka Files). It is the default file browser for Ubuntu (like Windows Explorer on Windows):

Note: It might look different on your machine because I am using different themes (United-Ubuntu for GTK+ and Paper for icons) than the default Ambiance theme.

To get to Files just type "Files" in the dash. You can go to the dash by pressing Super (known as the Windows key on Windows). The dash is like the Start Menu on Windows.

Click on "Other Locations" on the left bar to get to this window:

Here you can find all of your drives, partitions and remote drives listed. Click on one to browse it.


Does not Look like formatting of chat messages is possible, it is not listed as one of the features on the Gnome Empathy page.  About all I can find is that emoticons (smileys) can be used.


Ubuntu 13.04 Adding Extra Clicks. Loose Grip When Dragging

This has happened me all the time since I started to use computers as daily basis. What is happening, most likely, is that your mouse (both) are getting old, the push button inside is getting weaker because of extensive use, ending in multiple clicks.

All you can do is getting a new mouse, in fact I'm about to get one because the same reason.

EDIT:

As it is likely to be a hardware problem with the mouse itself. Found this instructable  to repair this issue. Repair-mouse-with-double-click-problem

EDIT2:

You could also try to change the "Double-Click Timeout" to "Short" in "Mouse and Touchpad" Settings


How to burn a Windows .iso to a USB device?

UNetbootin should work: http://unetbootin.sourceforge.net/

Or you could try a bit-by-bit copy:

Insert the USB device and then open Disk Utility (in 10.10 and older,
System -> Administration -> Disk Utility).
Select the USB device from the list in the left of the program and detect where it was mounted: /dev/sd[1 letter][optionally 1 number]. For example, /dev/sdc or /dev/sdc1.
Make sure the USB device is unmounted (not safely removed, but unmounted)
If it is mounted you can unmount it:

sudo umount /dev/sd[1 letter][optionally 1 number]

Assuming the .iso file is in your home folder, open the terminal and write:

sudo dd bs=4M if=[ur .iso] of=/dev/sd[that 1 letter]

Example:

sudo dd bs=4M if=windows7.iso of=/dev/sdc

And wait for it to finish.
(The "bs=4M" - bit is optional, just makes it faster.)


No way. TLP supports only two profiles, BAT and AC.

(I'm the author)


I have solved the problem. It was not a problem of MyPaint but something to do with GPG and PPA. I have followed this answer.

I first did sudo apt-get update and recieved error simialr to this

and then went to software and updates > Other softwares and unchecked all error causing PPAs

Then when I updated sudo apt-get update it showed additional error in GPG error...NO_PUBKEY This is solved by

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>


How can I disable "Press enter for maintenance( or type Control-D to continue):" message when enter the single mode?

I've seen this happening in two cases:

Bad mount options in /etc/fstab
Errors on the drive your OS is on

Mitigation:

Comment all the mounts in /etc/fstab
Fix errors on the drive your OS is on by booting live linux and fsck -y /dev/sda1 where /dev/sda1is the drive containing your OS.


Acer Aspire One 722-0369 Flaky Ethernet Connection

This bug has been reported. You can check it's status at launchpad. There appears to be no workaround.


For hiding things in Nautilus (and maybe other graphical browsers) when you can't rename, you can create a file called .hidden in the current directory and list the paths you don't want shown.

For example if I have a direcory with subdirectories {a..f} and a .hidden containing:

b
c

ls -l shows everything still:

drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 a
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 b
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 c
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 d
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 e
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 f

But Nautilus only shows:


Ubuntu 20.04 on a Raspberry PI 2B+ 1.2 fails to pass the rainbow screen, works perfectly with Raspberry PI OS

I’m not sure if you managed to fix this since this was posted, but I had the exact same issue, and switching to a beefier power supply (my 81-watt one instead of my 5-watt one I was using) fixed it.
This was rather weird, because, as you described, Raspbian boots just fine with the weaker power supply, but not Ubuntu.
I hope this helps.


Apparently on Samsung Galaxy Nexus, Ubuntu updates are not possible since there is only 13GB of free space. This is apparently not sufficient for an update of Ubuntu.  My phone is basically identical to my October flash installation. I have meanwhile deleted the few files I have added (just some pictures) and uninstalled the few installed apps. I have 13GB of free space. When trying to update, the error message is still:
"Updates, Ubuntu Phone 301.1 MB, Version 32, Download failed: [Errno 28]No space left on device". On the positive side, copying the pictures to a linux PC with the Terminal app and

scp  ... ...

over WLAN did work nicely (faster than 1MB/sec). So pictures are not lost when you try to reflash the phone.


php.ini per-directory won't parse (using FastCGI)

I think I figured it out.

I started fresh and stepped thru each line of my pastebin, only using the necessary parts for PHP as FastCGI, and researched exactly how each little piece works. Then I tried many things that failed, then there was only thing left to try, and maybe this isn't the "right way", but...

create a new <Directory> block in /etc/apache2/sites-available/johnny.conf and copy the directives, but with a few changes

<Directory /var/www/johnny/public_html/new>
  Options +ExecCGI -Indexes +FollowSymLinks +MultiViews
  AllowOverride All
  AddHandler fcgid-script .php .htm .html
  FCGIWrapper /var/www/php-fcgi-scripts/johnny/php-fcgi-starter_new .php
  FCGIWrapper /var/www/php-fcgi-scripts/johnny/php-fcgi-starter_new .htm
  FCGIWrapper /var/www/php-fcgi-scripts/johnny/php-fcgi-starter_new .html
  Order allow,deny
  Allow from all
</Directory>

then, create a separate fcgi starter script /var/www/php-fcgi-scripts/johnny/php-fcgi-starter_new

#!/bin/sh
#PHPRC=/var/www/johnny/new
#export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=8
exec /usr/lib/cgi-bin/php -c /var/www/johnny/public_html/new

I found that PHPRC= didn't work in this case, but the -c parameter does! That's it. It's a PITA but it works well enough for my purposes.


Booting PPC Mac from CD using Open Firmware

Just press the alt-key while booting with the CD inserted. After some time you will get an icon for every bootable device on your system.

Select the penguin-icon an press the right arrow below. This will start Ubuntu from the ISO-CD.

However as of today you can save your time downloading Ubuntu 12.04 live-CD for PPC G5-Macs as the offered ISO-CD is showing a blank icon bar with a pink and empty desktop superimposing the 'normal' Ubuntu-Desktop seen on Linux. Only the upper menu bar is showing up.

I don't understand why this hasn't been tested as there are hundred thousands of PPC-Macs out there, which have been obsoleted because of an Apple infight with PPC-Manufacturers. And I am not the only one who wants to keep the Hardware as long as possible. Apple is still updating Safari and iTunes for these systems. Obsoleting 64bit  2GHZ ++ multiprocessor hardware but trying to still make a buck with us is an argument to turn my back to Apple. And I think there are thousands of other PPC users out there. However Canonical seems not to be interested in those potential users either.


Error 'File is a symlink to a non-existent target'

The autosaved file is #sum.cpp#. The symlink .#sum.cpp is used by Emacs to store some internal data (seems like user name, host name and some timestamp)

As the target of a symlink is just some short text (that is resolved as a path if you access the symlink's content), symlinks are sometimes used to store small amounts of data. In that case the target most likely isn't a valid file path and you get an error if you try to access it.

That's because creating a symlink is an atomic operation: Either the symlink is created with full content or it's not created at all. In contrast creating a regular file and filling it with content is not atomic and in case of an error you may end up with an empty file or only partial content.


How do I create a key binding that allows me to mount my google drive?

Short answer:

Mounting

/bin/bash -c "google-drive-ocamlfuse ~/path/to/foldershowinggoogledrive"

where path/to/foldershowinggoogledrive is the path relative  to your homedir.

e.g. /home/you/googledrive -> ~/googledrive

No need for sudo!

Unmounting

Similarly, to unmount, if you use ~, you should use in a shortcut:

/bin/bash -c "fusermount -u ~/relative/mountpount"

Or if you use absolute path:

fusermount -u /absolute/path/to/mountpoint

Why /bin/bash -c?

You could use

google-drive-ocamlfuse /absolute/path/to/folder

but since you are using ~, you need the expansion handled by bash.

Binding commands has been explained within How to bind custom commands to keyboard shortcuts?: System Settings -> Keyboard -> Custom Shortcuts -> + button

EDIT

Just noticed ODrive which works substantially different. ODrive actually downloads the files and synchronizes with Google Drive, similar to how the Windows version of Google Drive works.

The big advantage -at least to my experience- is the immediate response to editing & saving, while the previously mentioned solutions have a huge delay on the work process during saving.


Call shell script "inline" in another shell script

if you want to include env variables, you can set those variables in a file, and then source that file in your script.

For example:
in myconfig I could do:

#!/bin/bash
EDITOR=emacs
JBOSS_HOME=/path/to/jboss/home

then in my shell script:

#!/bin/bash
source /path/to/myconfig
echo "JBOSS home dir is $JBOSS_HOME"

and that would work.


Steam not displaying text on wine 1.5 running on Ubuntu 12.04

One alternative to updating your launchers to pass the -no-dwrite option is to disable DirectWrite support in Steam's preferences.  While you can do this within Steam if you can navigate the menus and settings dialog box with no text, it is probably easier to change the setting outside of Steam.

With Steam closed, do the following:

Run wine regedit.
Navigate to HKEY_CURRENT_USER\Software\Valve\Steam in the tree on the left.
Look for a DWriteEnable value in the pane on the right. If it doesn't exist, add it as a DWORD value.
Set DWriteEnable to 0 and exit out of the registry editor.

Your existing launchers should now start Steam with visible text.


I found the problem, my Avast! Internet Security was somehow blocking my connections.

To get ride of the problem, you have to enable "Internet Connection Sharing mode".

Open Avast!
Click the Firewall tab
Make sure the Firewall Settings sub-tab is selected
Click Expert Settings next to the Stop button
Check Internet Connection Sharing mode
Click OK
Close Avast!


Read this forum. It seems to be solved:
FanControl Ubuntu


Install the soundcard driver containing packages:

sudo apt-get install build-essential linux-headers-`uname -r`

Then reboot.


Is there a way to get the Innotab Learning Lodge Navigator software working?

It runs in Wine. It may take you a try or two to get it past the installation. Remember to install Flash for Win XP, the ¨other browsers¨ version.

Now the only problem is getting it to recognize the USB connection. I haven't figured that out yet, not that I've been trying that long.


VirtualBox doesn't see Wireless USB Adapter

You have to give yourself the rights to access the USB devices. Just follow the official guide.


Why can I not login with one user but with another user using ssh-keys?

I forgot to use ssh-add/ssh-agent with my ROOT account on server A. :-/

Beside this fact I now use the much more easy to use KEYCHAIN package to solve this problem. Highly recommended!


/usr/share/zoneinfo when does the system time actually change?

Every process knows the time zone (you can alter it on a per-process basis by setting the TZ environment variable). When you change the system time zone, only newly launched processes will "see" the new time zone setting. This is why it seems to only fully take effect with a reboot. If you restart applications and services they should pick up the change

Notably, your system logging daemon will continue to write logs in the old timezone until it is restarted.


Back up any important data. This should work fine, but if something goes wrong, your partition table could be corrupted.
Boot from a live CD or USB as Ubuntu cannot resize partitions while they're in use.
If there's a symbol that looks like a key on your swap partition, right-click on it and click "Swapoff".
If you haven't already, resize your NTFS partition. Make sure the amount of new free space is in the "Free space following" field, not the "Free space preceding" one.
Right-click on your extended partition, select "Resize/Move", set the new size to the maximum size, then click "Resize/Move".
Right-click on your Ubuntu partition, select "Resize/Move", and set the new size to the maximum size, then click "Resize/Move". A warning message might be displayed; just click "OK".
Click the green checkmark near the top of the window, then click "Apply".
Wait until GParted finishes resizing your partitions, then close it.
You're done; shut down, remove/unplug your Live CD/USB, then power on again.

Tested in VirtualBox with Ubuntu 16.04.


If your system is using the intel_pstate frequency scaling driver:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate

Then you can inquire as to the turbo enabled or disabled status:

$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
0

Where 0 means turbo is enabled and 1 means it is disabled.
And you can change it by writting (as sudo) to the same location.

$ echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
1

I never remember the location or how to do the `tee' thing properly, so I prefer scripts to be run as sudo:

$ cat set_cpu_turbo_off
#! /bin/bash
echo "1" > /sys/devices/system/cpu/intel_pstate/no_turbo

$ cat set_cpu_turbo_on
#! /bin/bash
echo "0" > /sys/devices/system/cpu/intel_pstate/no_turbo


Why doesn't Canonical and Ubuntu run more ads?

there are ads. I'll admit they are few and far between. Techinically we haven't had a flagship release as yet. 12.04 should be that release. I think we'll be seeing more ads after April comes.


One thing worth trying, if you want to keep English as display language, is to open ~/.profile for editing and add this line:

export LC_CTYPE=fr_FR.UTF-8


Post 16.04 upgrade network stops randomly

eth0 is no longer the name of the network interface.  I get things like enp9s0...not sure why the changed the naming conventions.  Your /etc/networking/interfaces entry for eth0 will not do anything, as there is no interface by that name.


Where do I find the local and the gedit plugins folders in Ubuntu 14.04?

Gedit plugins that are installed by your package manager will go in:

/usr/lib/x86_64-linux-gnu/gedit/plugins/

or

/usr/lib/i386-linux-gnu/gedit/plugins/

or

/usr/lib/gedit/plugins/

Your "local" plugins, those that you installed from source are usually found in:

~/.local/share/gedit/plugins/


How to highlight Non-consecutive text in Gedit?

No sorry, only by double clicking can this work. If you can scroll the text use control+shift+arrow to highlight the word in the direction of the arrow.


Difference between delete and delete all?

When we right click on a folder with no content it only shows delete (cause its one file). But when we right click on a folder with many contents such as folders and documents it will show 'Delete All' to remind you that if you delete the file all the contents inside will be deleted.
It makes it obvious that when we select many folders (many is more than one) so it shows 'Delete All'.

But in the end of the day if you press 'Delete All' OR 'Delete' they will end up in the Trash, so no sweat ;)

Hope it helped.


Will moving music to another folder mess up Banshee's metadata?

I had my music collection under /data/music and wanted to move it to /media/SD/music. I did the following:

cd ~/.config/banshee-1
sqlite3 banshee.db ".dump" > dump
mv banshee.db banshee.db.backup
sed -i 's+file:///data/music/+file:///home/marc/Music/+g' dump
cat dump | sqlite3 banshee.db
rmdir ~/Music
ln -s /media/SD/music ~/Music

Here is an explanation of what I did:

Go to the directory holding the Banshee database.
Dump the contents of the database into a text file.
Rename the old data base to a backup (in case something goes wrong).
Replace file:///data/music/ with file:///home/marc/Music in the DB dump.
Convert the updated DB dump back into a new banshee.db file.
6.Get rid of the unused ~/Music" directory.
Create a symlink to /media/SD/music from ~/Music.

The result is that I removed the standard ~/Music directory and created a symlink to the actual directory where I store my music files. I told the Banshee database to look for my music in the location of the symlink. If I ever want to change the location of my music again, all I have to do is move my files and update the location of the symlink.


Not able to connect to internet using my wired network connection on my Dell inspiron N1401 laptop

This might sound strange, but go into network manager, and check that the network connection has a string (i.e. "Ubuntu")in the DHCP client ID field. Save this, and try the network connection again. Bizarrely this fixed the same issue for me. I think it might be something to do with the router rejecting empty client ids.


I highly suggest using Lutris to play Sonic Adventure 2 - Lutris comes with user created scripts to help install programs and often provides better compatibility.

To Install Lutris on Ubuntu 16.04, run the following commands in your terminal:

echo "deb http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04/ ./" | sudo tee /etc/apt/sources.list.d/lutris.list

wget -q http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04/Release.key -O- | sudo apt-key add -

sudo apt-get update

sudo apt-get install lutris wine

After installing Lutris, the lutris protocol should be working and you should be able to install Sonic Adventure 2 from the install script located here:

https://lutris.net/games/sonic-adventure-2/

As a side note, San Andreas runs perfectly for me with Steam Proton (and even with regular Wine Stable 3.0.2) - perhaps you are having a graphics driver issue.


Will AMD continue to update the legacy Fglrx driver?

From the AMD support page, It seems that they are still supporting with "application specific issues and critical updates"

http://support.amd.com/us/gpudownload/linux/legacy/Pages/legacy-radeon_linux.aspx

  The reason for the shift in support policy is largely due to the fact that the AMD Radeon HD 4000, AMD Radeon HD 3000, and AMD Radeon HD 2000 Series have been optimized to their maximum potential from a performance and feature perspective.

But, It looks like the update came from 7/24/2012 and that is a general linux driver, so there could be a number of specific Ubuntu issues.

They have a link to report specific issues with the driver on the page (not tech support)

So, It looks like it wasn't totally abandoned yet...


Ubuntu says " not enough space on disk" when trying to install updates

Based on your df result, your boot filesystem has less the 60 MB free. Most likely that the updates you are trying to install need more space than that.

A boot volume of 170 MB is quite small. The obvious thing to do is to increase its size, but this requires some time and expertise, so consider some faster actions first...

Try the following

Run sudo apt-get autoclean and then sudo apt-get autoremove. This will remove package stuff that isn't used at all and may free some space in the /boot filesystem.
If you know you have packages you can live without, it may be a good idea to remove them. sudo apt-get purge <package-name> will do that. Knowing which packages you can live without may be tricky, though.
Try the updates again. If you are lucky you may have enough free space at this point.

If this does not work, you will have to resize the boot partition. This involves editing the partition table with a tool like gparted, and you will have to create a bootable USB drive and boot from it. You should probably allocate at least 1G to /boot to be on the safe side.

I will not attempt to describe how to edit the partition table - it is a delicate procedure that I performed only one or twice... but there are some other posts here that discuss it, like this one.

Edit: Actually there is another question and answer with much higher votes. You may want to read this one.


There doesn't seem to be a command-line utility, so I finally went with a python script : there is a python fstab module developed by Canonical, although it is old and need some love (the API is crude). That avoided redoing the whole parser from scratch.


rtl8822bu fails after Ubuntu 19.10 update

Please try this process instead. It builds, albeit with a few possibly harmless warnings, on my 19.10 system.

sudo apt update
sudo apt install dkms git
git clone https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
sudo dkms add ./rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
sudo dkms install -m rtl88x2bu -v 5.3.1
sudo modprobe -r rtl8812au
sudo modprobe 88x2bu

Your wireless should now be working.


Sudo is short for super user do and it is the application that lets you do root tasks without switching users. Your sudo password is going to be the same password you use to login. For more information, type man sudo at the cmd line.

As for the rest, I'm just going to copy (with very slight modification) from Novice's answer to another question:

Try this command:

sudo ip link set wlan0 up

If it doesn't work then try this:

sudo rfkill unblock all

If that also doesn't work then may be drivers for Wireless is not installed, you need to install it manually.


VirutalBox headless VM + 3D acceleration

Alas, no. The 3D acceleration option pipes calls through to 3D APIs of the host OS. When you start in headless mode, you're not using the graphics card, so no 3D support.

You won't get working 3D acceleration across RDP anyway, so you may as well disable it.


My DVD drive won't detect any CD media (DVDs seem to work). Is there a way to fix this?

Try blowing on the lens in the multi-dvd tray, or using canned air.

It might have some dust or something. So I would suggest trying that, or cleaning in some safe method first, before going out and purchasing a new drive.


I run into the same problem, and solved it by the steps below.

rm ~/.local/share/applications/gvim.desktop
type gvim in terminal and lock 'gvim' to ubuntu dash again.
Actually, you can modify 'path' in '~/.local/share/applications/gvim.desktop' file to your home directory, because this is the original source that this problem came from.

reference:
How to remove icons/shortcuts from Unity menu?


chroot_local_user=YES

  chroot_local_user If set to YES, local users will be (by default)
  placed in a chroot() jail in their home directory after login.
  Warning: This option has security implications, especially if the
  users have upload permission, or shell access. Only enable if you know
  what you are doing. Note that these security implications are not
  vsftpd specific. They apply to all FTP daemons which offer to put
  local users in chroot() jails.

Source


How to install ibus-avro in Ubuntu 16.04 LTS?

Important note:

Avro Phonetic has now been made available to Ubuntu users via an official package.

To install it:

sudo apt install ibus-avro

ibus-avro in the Ubuntu archive installs the latest upstream software, including a bugfix which is important to Ubuntu users. The GitHub repo referred to in step 1 and 2 below is in read-only mode, and not useful any longer.

Previous answer:

Get the latest release of Avro from GitHub (at this time, it is 2.1).
Install the package:

sudo dpkg -i avro_*_all.deb

If you get any dependency errors, run the following command:

sudo apt-get install -f

The installation should now be finished.
Go to System Settings -> Language Support from Unity Launcher

Look at the Keyboard input method system
Select IBus and close the window.

You may need to restart IBus to make everything work.  Try the following command:

ibus restart

Otherwise a reboot may be required.
Go to System Settings -> Keyboard -> Text Entry.

Search for Avro Phonetic, and add it as input source.


Why is apt unable to locate openjdk package on Ubuntu 20.04?

You made a typo: the error message says that it can't find openjdk-8-headless.
But the correct package name is openjdk-8-jre-headless. It is available and installs without any issues on 20.04.


Unable to find to find touchopad in DConf Editor

I think you shall look in dconf-editor at following path:
/org/gnome/desktop/peripherals/touchpad natural-scroll?

Or you can try the settings:
/Settings/Mouse & Touchpad Natural Scrolling


Macbook Pro 13" Retina (10,2): Keyboard and Touchpad don't work correcltly

I've installed the pre-release version on Ubuntu 13.04 on a 15-inch Retina Macbook Pro and wrote up a guide on what worked for me. Ubuntu 13.04 has had some extra work done to make it compatible with the Retina Macbook's so it's worth checking out. I've been running the laptop for over a week as my main machine without any issues.


Lives can be used as a Primary VJ application.

Can be installed with:

sudo apt-get install lives


@Bernie B 's answer is a thorough option, but the details in my reply to this question: What to do if I upgarde to the latest version and the only available kernel does not work? would also work for you, without the need for a backup or data loss.

If when you installed 11.xx you used the whole disk, and then did a release upgrade to 12.04, the whole disk is already formatted correctly for you and the only issue is the kernel you're trying to run.

Once you have the working kernel (3.2.0-48) then you can delete the rest of them that come up with the dpkg --list | grep linux-image command - as per my other post - using apt-get (again, the code for this is in the answer on the other thread).

That way, when you boot up your machine it will have to load the older kernel as there wont be a non-working one to boot from


How to embed all fonts in pdf generated from pdflatex

There are lots of posts on this in the tex help forum

https://tex.stackexchange.com/questions/275715/how-to-compile-with-embedded-font-in-latex-and-preserve-figures

Your 3 options are not great, maybe will not help. I'd use ghostsscript, but don't know if it fits your case.

I am surprised you hit this now.  what version pdflatex you using? Fonts are embedded on new version of pdflatex..

However, fonts may be missing in included image files. And you fix those files separately. For example,  if you use includes of pdf from R, fonts are not embedded in them and you need fix graphic files, not the pdflatex doc that holds them. I have fixed this recently with ghostscript. I would not consider any other way.

I suppose the particular fonts might make a difference.

A REPRODUCIBLE example is customary in case like this. Gather details and go ask on tex.stackexchange.

Added in edit:

Here's a shell script I run that uses ghostscript to insert fonts in all pdf files within a directory. I called it
embedFontInPDF.sh

#!/bin/bash

## Paul Johnson
## 2013-05-11
##
## R creates pdf files that do not have fonts embedded. This
## uses ghostscript to fix that. It takes all pdf in a directory
## and embeds fonts.
##
## Todo: Make command line argument smarter

for i in *.pdf; do
    base=`basename $i .pdf`;
    basenew="${base}/newtemp.pdf"

   /usr/bin/gs -o $basenew -dNOPAUSE -dPDFSETTINGS=/prepress     -sDEVICE=pdfwrite $i

    mv -f $basenew $i
done;


Nvidia Grub max boot resolution 1280x1024 (15.10)

Unfortunately, the proprietary driver does not support high resolution during boot-up.  You could uninstall the proprietary drivers, but graphics performance will not be near as good.  You can remove the proprietary drivers for the Software and Updates dialog (though I would not recommend it).


Is there a software mouse debouncing solution? (Single click sending multiple click signals)

https://help.ubuntu.com/stable/ubuntu-help/mouse-doubleclick.html

I do believe you will want to increase the value and that should solve your problem.


The log's order of a script executing before shutdown?

Based on the information currently available I'm assuming that you have a multi-core or at least multi-threaded CPU and that dispatch and issue decoupling is allowing out-of-order execution, causing this out of order anomaly in log output. I would use numactl to launch your script. Here's an example:

numactl --physcpubind=0 /path/to/your/script

or in this specific case

numactl --physcpubind=0 /home/upload.sh

This will run your process on the first core/cpu assigned to your chipset (index 0) as listed in /proc/cpuinfo This will force the script to run at most one thread concurrently, but it does not mean that the entire process will be composed of only one thread. if the program is written to spawn a new thread, it will do so, but it will execute on the same core/cpu/thread as the rest of the process.

EDIT: Note that by restricting your processing to a single thread/core/cpu this may result in slower processing of the task at hand.

Sources:

https://superuser.com/questions/692138/how-to-force-a-process-to-run-on-a-single-thread-only-with-numactl

man numactl

https://en.wikipedia.org/wiki/Out-of-order_execution

https://en.wikipedia.org/wiki/Multithreading_(computer_architecture)


Ubuntu 18.04 server and RAID - fakeRAID or hardware or mdadm

This is fakeraid and only works with Windows because the raid software is built into the driver.  On linux, you want to disable any raid in the bios and set up mdraid.  You can set up mdraid using the alternate installer.  Unfortunately, I think Ubuntu stopped distributing the alternate installer disc images.  You might be able to set up the mdraid from the commandline and use the created raid devices in the installer.


Upgrade to 18.04 from 16.04: cannot boot into desktop

try blacklisting nouveau completely:

sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo update-initramfs -u

and finally reboot the system.

you might also try running the following command:

sudo ubuntu-drivers autoinstall


Ensure ssh is installed on the VM

sudo apt-get install openssh-server

Ensure networking is enabled for the guest OS


The site of ftpmirror.gnu.org/gsl your provide is eror:404 . The latest of gsl link available on https://mirror.freedif.org/GNU/gsl/gsl-latest.tar.gz and extract it.

To compile and buildin the package follow:

cd ~/yourFolderOf_gsl/gsl-releaseVersions
./configure && make && make install
If you have the error output that ./autogen.sh: 10: ./autogen.sh: autoreconf: not found
Now use ./configure --enable-maintainer-mode . You need to install a build dependencies. Run sudo apt-get install autoconf automake pkg-config libgtk-3-dev and execute autogen.sh
If that successfully, you can regenerate of configure file again using ./configure && make && make install
if the gsl-config program is not on your PATH, you may need to set the GSL_CONFIG environment variable to point to it.

Hope this helps.


Ubuntu 12.04 boots to low-graphics mode with nvidia-173

This symbol is not exported in v3.13 and later. See v3.12:osl.c and this diff where the export was removed.

Luckily, right now, v3.12 is still supported, see http://kernel.org .

So simply read the latest v3.12 release number, search for it on ubuntu mainline kernel releases, and download the kernel and the headers (all and the i386/amd64).


Ubuntu 14.04 LTS installation error from wubi

Download a full, fresh copy of the Ubuntu Karmic ISO. Put that in a temporary directory.
Copy the contents of the Ubuntu Karmic Live CD (the one burned from the ISO) into there. So, now you have the ISO used to make the CD, and the contents of the CD, all in that one directory.
Right-click on the ISO. Tell Windows 7 to unblock that file, in spite of it being from another computer
Run wubi.exe from the temporary directory as an Administrator.

Download it from here

Refer this link too


How to remove Windows and keep ubuntu 16.04

The Ubuntu installer easily lets you erase Windows and replace it with Ubuntu.

Here is what you have to do :

Backup your data !
All of your data will be wiped with your Windows installation so do not miss this step.

Create a bootable USB Ubuntu installation.
Boot the Ubuntu installation USB drive and choose erase everything and install Ubuntu.
Follow the installation process ...
and at the step Installation Type select Replace Windows 10 with Ubuntu.


It is a general problem that happens with WUBI.Since Ubuntu is installed to a file inside windows partition,it becomes susceptible to corruptions that generally happen in Windows.You can reinstall Ubuntu but I recommend a full install.


How to fix this error when running sudo apt-get update?

Open a terminal and open apt source list:
sudo nano /etc/apt/sources.list

(You can use other editor, but you have to open with sudo)
Search for

deb http://bg.archive.ubuntu.com/ubuntu eoan-updates Release

And remove that line. It's from an older version of ubuntu which is not supported in 20.04 (focal).
Then you must save and do
sudo apt update

and shouldn't be any more error.


How much free space do I really have on my drive (ext4 and ntfs)?

File size and consequently free space are not calculated consistently between applications.

This is due to the nature of file systems.  Data is stored in blocks on the drive.  A typical block size is 4096, meaning it can contain up to 4096 bytes of data per block.

If you have a file that contains only 1 byte of data, it actually will take up 4096 bytes of space on your hard drive.

Similarly, if you have a file that contains 4097 bytes of data, it will reserve two blocks, or 8192 bytes of storage.

If you have an application that is counting the size of data in each file, it will be a smaller value than an application that counts the sum of all used blocks.

When calculating file size, many applications use a number of "tricks" to estimate or cache file sizes so your system does not actually need to read the entire contents of your hard drive.  This can also cause differences between applications.

For another example, you can see this answer on why ls -l outputs a different size than ls -s


How can I install other applications after a failed installation using apt-get?

You can't install other applications until you resolve the problem with ca-certificates-java. apt-get won't let you keep any packages in an unconfigured state.

If you are not able to resolve the problem (you should - just google the error message Java gives you), force removal of the package:

sudo mv /var/lib/dpkg/info/ca-certificates-java.postinst /var/lib/dpkg/info/ca-certificates-java.postinst.backup
sudo apt-get purge ca-certificates-java


You are actually typing, it is just not shown there because someone should not watch it over your shoulder!


It works! I had to include the kernel option

CONFIG_FRAMEBUFFER_CONSOLE=y

After booting the new kernel, however, the proprietary Nvidia driver wasn't present. I had to do a

dpkg-reconfigure nvidia-dkms-390

in order to build that driver for my kernel. That also build the module nvidia.ko for the generic kernel, which surprises me, as that kernel did already use the driver nvidia. Now I'm wondering where that kernel module was located if was not in /lib/modules/4.15.0-45-generic/updates/dkms/nvidia.ko?


How can I install & run testdisk with USB

As muru has mentioned, you need to enable the universe repos to install testdisk in Ubuntu.  However, I would recommend using one of the Live Rescue CDs listed here instead, rather than an Ubuntu cd/usb.  They're basically Linux distros that come with a ton of data recovery/repair programs installed, including testdisk.

The advantage of this is that you have a ton of programs dedicated to data recovery all in one place, but more importantly, many of them are configured to never touch the HDD during boot.  When you're doing data recovery, the more you access/modify the data on the drive, the less likely you'll be able to recover data. Ubuntu accesses the hard disk quite a bit during boot, even when using a live cd/usb, which makes it not quite ideal for data recovery purposes.


In Power statistics you can view a graph with all the info you need.

Power Statistics > Laptop battery > History/Statistics


Unable to Locate File syscall_table_32.S

For locating files already installed you can use dpkg -S

$ dpkg -S syscall
gdb: /usr/share/gdb/syscalls
gdb: /usr/share/gdb/syscalls/sparc-linux.xml
manpages-dev: /usr/share/man/man2/_syscall.2.gz
gdb: /usr/share/gdb/syscalls/gdb-syscalls.dtd
gdb: /usr/share/gdb/syscalls/ppc64-linux.xml
gdb: /usr/share/gdb/syscalls/sparc64-linux.xml
gdb: /usr/share/gdb/syscalls/mips-n32-linux.xml
perl: /usr/lib/perl/5.14.2/bits/syscall.ph
manpages-dev: /usr/share/man/man2/syscalls.2.gz
gdb: /usr/share/gdb/syscalls/amd64-linux.xml
gdb: /usr/share/gdb/syscalls/i386-linux.xml
perl: /usr/lib/perl/5.14.2/syscall.ph
libc6-dev:i386: /usr/include/i386-linux-gnu/bits/syscall.h
perl: /usr/lib/perl/5.14.2/sys/syscall.ph
manpages-dev: /usr/share/man/man2/afs_syscall.2.gz
manpages-dev: /usr/share/man/man2/syscall.2.gz
gdb: /usr/share/gdb/syscalls/mips-o32-linux.xml
gdb: /usr/share/gdb/syscalls/ppc-linux.xml
libc6-dev:i386: /usr/include/syscall.h
gdb: /usr/share/gdb/syscalls/mips-n64-linux.xml
libc6-dev:i386: /usr/include/i386-linux-gnu/sys/syscall.h
linux-libc-dev:i386: /usr/include/i386-linux-gnu/asm/vsyscall.h

For locating files that are not provided by installed packages you can try locate (if the file is recent enough:

$ locate syscall.h
/usr/include/syscall.h
/usr/include/i386-linux-gnu/asm/vsyscall.h
/usr/include/i386-linux-gnu/bits/syscall.h
/usr/include/i386-linux-gnu/sys/syscall.h

If neither of those shows results, you can try a search in the Ubuntu Package Search:

http://packages.ubuntu.com/search?searchon=contents&keywords=name of file&mode=exactfilename&suite=raring&arch=any

If you want a "local" solution use apt-file:

sudo apt-get -y install apt-file
sudo apt-file update
apt-file search name_of_file


How do I remediate / fix CVEs in the Ubuntu zlib package when a new version isn't available via apt-get?

Without more specifics of what you're wanting patched, and which pocket of the Ubuntu repositories that software is in for a given release, it's impossible to give you a full answer that is narrow enough.

But, I'll try and give you an overview of how to 'patch' the security issues in Ubuntu packages.

Software packages in Main, and community-contributed patches in Universe, via $RELEASE-security repositories

For security patches submitted in packages by users for Security Team consideration in Universe packages, and security patches by the Security Team itself in Ubuntu Main packages, once released they are available from the $RELEASE-security repositories (for example, xenial-security) and the $RELEASE-updates repositories.  This way, you can just simply do a sudo apt-get update && sudo apt-get dist-upgrade and get all the patches.

Tracking the individual CVEs in the CVE Tracker will let you know whether a CVE's had a fix released in Ubuntu yet, as well as the SEcurity team's determination of the priority level of the CVE and how rapidly it needs addressed (default is "Medium" regardless of the CVE severity).

Packages not updated in the repositories

We have two problems here.  Firstly, Universe packages only get patches when the community provides them for the Security team to look at and review.  Secondly, a large number of packages as a result are not updated.

You have two solutions for these issues: either rebuild the packages yourself with the patches, or wait for an update to land in the Repositories (or for someone to submit the patches for the Security team).

For the first solution, you'll have to follow the Packaging Guide from step 1 through step 3.9, and then steps detailed in section 6 if you want to submit them for the repositories, and build the patched packages locally on your system and install them.

The actual process for this is very very complex depending on the package, so it's impossible to answer it here.

Custom compiled software

Your only hope here is to apply patches to the software yourself, and recompile and install.  This is for anything where the software is not included in the repositories, or in the cases you have things installed which you had compiled in the first place.  The process for that is infinitely varied, so it's impossible to answer here.


What is the best way to scan a hard drive/check health in Ubuntu?

I did a bit more reading into this myself.  These two pages gives some tips about scanning hard drives/filesystems in Linux (they also mention fsck and badblocks):

http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/

http://mypage.uniserve.ca/~thelinuxguy/doc/hdtest.html

There is also the Ubuntu 'Disk Utility' package, which allows checking of the HDD SMART status.


The best way to install the Nvidia driver is through jockey.  It is in your settings under "Additional Drivers"  You can also type "jockey" in your dock to pull up the Additional Drivers.

Once you have it installed you can type "nv" into your dock and that should pull up the Nvidia Settings Manager.  Once you set this up you can go into the displays and set the Resolutions in there.

The default Ubuntu display manager won't work correctly.

You can install them with

sudo apt-get install nvidia-current

Let me know if this helps.

To have the settings remain after reboots you need to run the Nvidia settings as root and save the xorg file.

sudo nvidia-settings

After you make all the changes you want click the "Save X Configuration File" and save it to the default location.


How can I create a samba share from the command line?

Use Samba's net usershare command to share directories from the command line, IMHO this is less clunky and much safer than fiddling around in the main smb.conf file:

net usershare add share_name /home/user/somefolder "Share description" everyone:F guest_ok=y

To make these shares permanent (i.e. persist over reboots) create a file for each share under /var/lib/samba/usershares/ like this:

net usershare info --long share_name > /var/lib/samba/usershares/share_name

This has a further advantage that if you're using a desktop like KDE or GNOME/MATE/Unity the directories will show up as shared in the file manager (Dolphin, Nautilus etc.). That's cause the net username//var/lib/samba/usershares/ thing is the same mechanism that Dolphin and Nautilus use when you share directories in the GUI.

See also: http://ubuntuforums.org/showthread.php?t=1659816


I might be late to the party, but this might help people with identical problems.

I had exactly the same problem as you. Not only Ubuntu, but Lubuntu, Mint, Zorin, antiX... They all failed to live boot and hanged midway during the boot.
I checked the integrity of the ISO's, tried creating the USB media using DD, all to no avail.
I had been using previous versions of Rufus without problems for years... and that's when it hit me - All these were created using Rufus 3.10, which I hadn't used before.

Just to check, I created a live USB media using balenaEtcher and, sure enough, it worked on the first try.

Tried the other flavors too and they all worked (using the very same ISO's as before).

Something is off with Rufus 3.10...


How do I start in CLI mode using a special boot parameter for the Live CD?

quiet splash text

All you need is text the other 2 should already be in the command line when you hit F6 at the start up screen.


Why does Ubuntu create the file /var/log/boot?

The reason it is empty is that bootlogd is disabled by default.

If you wish to see boot messages in the log you need to enable it.

Do Alt+F2 to open Run Dialogue

Then Change

BOOTLOGD_ENABLE=No

to

BOOTLOGD_ENABLE=Yes

Save and exit gedit.

This is what it looks like here - decide if the information is important to you and enable if you wish.


Restore default keyboard shortcut for Workspace Switcher/Show Desktop

I solved the issue simply by setting Hide normal windows to the original Ctrl+Super+D.

As somebody else told me, the shortcut for Workspace switcher is not customisable.

However I think I discovered a bug: setting Super+S for Hide normal windows actually sets it for Workspace switcher. Would like to report this bug but don't know which package is responsible for this behavior.


In Google Chrome type chrome://bookmarks/ into the address bar to open the Bookmark Manager. From here the process is different dependant on what version of the Bookmark Manager you are using. If you are using the new interface click on the cog icon in the left corner of the page and select "Export bookmarks...":

If you are using the older version of the Bookmark Manager click on the Organise tab and select "Export bookmarks to HTML file":

This will allow you to export your bookmarks as an HTML file and you will be able to import them again at a later date.