Cannot Shut Down on Ubuntu - Ubuntu 16.04 and Win 10 Dual Boot

sync writes anything still in cache to the hard drive (or SSD).  To eliminate that as a problem, type:

sudo sync - May not require sudo but it can't hurt.

To shutdown not using the task bar GUI, open a terminal session and type

sudo shutdown -h - to halt and power off

sudo shutdown -r - to reboot

As the system is being shut down in an orderly manner, note the messages that are listed on the screen.  This will provide more info on what is causing the panic.

I see you updated your question to include a screen shot.  I'd suggest running a few passes of memtest to eliminate memory as a possible problem.  And if you are overclocking, it might not hurt to set the BIOS back to the defaults at least for the time being.


How do I troubleshoot an unstable Internet connection in Precise after trying to install package with synaptic?

How to troubleshoot networking problems?  Google yields what looks like a good resource:

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


Not sure that my solution is right. But if you just want to start your SSH server and then solve your problem later, here is my fast solution:

start-stop-daemon --start --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- -p 22

if then you will see error:

Missing privilege separation directory: /var/run/sshd

then just create that missing directory, and try above start-stop-daemon command again:

mkdir /var/run/sshd
chmod 0755 /var/run/sshd

that helped me to start my sshd daemon.


Use sed to replace a string that contains characters with specials meanings to sed

sed can use variable separators:

$ echo "1 /value Error Code:12345/I " | sed 's;/value.*/I;/deleted by user/i;'
1 /deleted by user/i

But if you have to use / for whatever reason, you can always prepend \ to them when they are literal:

$ echo "1 /value Error Code:12345/I " | sed 's/\/value.*\/I/\/deleted by user\/i/;'
1 /deleted by user/i

Or you could abandon sed altogether and use awk, with / as separator for both input fields and output fields:

$ echo "1 /value Error Code:12345/I " | awk -F'/' 'BEGIN{OFS=FS}{$2="deleted by user";$3="i";print}'
1 /deleted by user/i


No wired connection - Wired unmanaged ubuntu 18.04

I had exactly the same problem, but then tracked down the following solution (via this article).

Edit /etc/NetworkManager/NetworkManager.conf (needs to be done with sudo) changing the line managed=false to read managed=true
Restart network manager with

sudo service network-manager restart


You could try using this tool:
Y-PPA-Manager

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

Then there are only two clicks:

Advanced
Try to import all missing GPG keys


I can only tell you how to back up the background image.

  On your brother's laptop

1) Open a terminal and type: sudo -i (it will prompt for your password)
2) Enter in grub's folder: cd /boot/grub
3) List all visible files: ls -l
4) Find any file with image extension *.jpg, *.png, *.gif or *.tga (probably *.jpg)
5) Copy the image to usb hard drive:      cp background_image.jpg /media/user_name/usb_hard_drive

  On your laptop

6) Repeat step 1)
7) Copy the image back from the usb hard drive to your grub folder:      cp /media/user_name/usb_hard_drive/background_image.jpg /boot/grub
8) Now reboot your laptop and it should load your image automatically.

And here you have how to save the last grub choice BUT be AWARE if you don't know what are you doing you can make your grub INACCESSIBLE!!!

How to get grub2 to remember last choice?


Ubuntu not booting after BIOS update boot-repair disk fail

You don't need to reinstall Windows...
Some folks have found the 2nd choice that I provide easier to do...
Make sure to have a backup of your important Windows files!
You've got a single SSD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

Right-click the Windows Start Menu. Choose Command Prompt (Admin).
If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
Click the Start Button and type cmd
Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


Pepper flash plugin for 32-bit support has ended?

No, it didn't end in March 2016, and it hasn't ended yet in March 2017

Adobe's Flash Player Tech specs / System requirements doesn't say anything about only 64-bit Linux (actually only supports 32-bit WinXP & Vista)
The Download page (for "another computer" to pick the version) still lists 32-bit Linux (the Win & Mac versions only differentiate between NPAPI & PPAPI, no mention of 32 or 64-bits...)
The About Flash Player page seems to have a new version for Firefox on Linux (NPAPI), previously it was frozen around version 10.x and appeared to have had it's support dropped, but now it's back at the same version as every other OS (version 24.x today)


How to revert a dual boot (windows 8 & Ubuntu 15.04)

Get the latest LTS Version (14.04) and follow the installation wizard.
There is an option to use the whole disk and erase (!) everything that's on it.


install jdk6 on ubuntu 12.04, can use it in root user but can't in normal user

It's probably because you don't have access to /opt/java folder as normal user. Try below commands and then try to access:

sudo chmod -R 755 /opt/[java folder name]
sudo chown -R [username] /opt/[java folder name]

In case you are willing to try another method. I use it and it works all the time.

Download the latest Java SE SDK version.

http://www.oracle.com/technetwork/ja...ads/index.html
Untar the Archive

tar -xzvf /root/jdk-7u17-linux-x64.tar.gz

mv jdk1.7.0_17 /opt

cd /opt/jdk1.7.0_17

This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:

update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_17/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_17/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_17/bin/java
update-alternatives --set javac /opt/jdk1.7.0_17/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so

Test

To check the version of Java you are now running

java -version

To check the browser plugin browse to http://www.java.com/ and click “Do I have Java?”


I found the problem may be related with java. I have another software. There are both java version and non-java version. The non-java version has no problem. The Java version has similar problem. But I install a new java, the problem remains!


After installing Elisa, and prior to rebooting, the only way I had to running it was executing

flatpak run org.kde.elisa

After rebooting, typing Elisa in the application launcher started to work.


How do I check if someone accessed my computer?

I assume that you don't think that your computer has been totally compromised (to check who has been running sudo commands see /var/log/auth.log).
It is possible to quickly find files not owned by your user in your home folder and also at what time any files were accessed by using the find command (use -type f for files and -type d for directories). For the following examples, I assume that you are running from the top level of your home folder (just enter cd to get to it), and that you do not want to search the files in the root directory.

1) To find all files NOT owned by your logged on user in your home folder, type:

find ~ -type f ! -user $USER

1.1) To find all files that do not belong to any legitimate user (they should not exist), type:

find ~ -type f -nouser

2) As files on the system have three timestamps called mtime (file modification time), ctime (inode change time and permissions), and atime (file access time), these can be queried to find out how files have been modified. It is often debated which of these are the best to use, but probably the best way to find out when files were accessed or modified is to use the find command to search atime and mtime, with which you specify days ago, and the additional find options amin and mmin, with which you specify minutes ago.

For each of these commands, the same command switches are used: for example,-atime 1 will match those files that were accessed exactly 1 day ago; to specify more or less than, append a + or a - respectively. The examples below may clarify all this (specify -type d for directories):

find ~ -type f -atime 1
find ~ -type f -amin -23
find ~ -type f -mtime 2
find ~ -type f -mmin -45

3) To combine my approaches so far, you could enter the following commands from your home folder:

Search for files in your home directory not owned by $USER and that was last accessed less than two days ago.

find ~ -type f -atime -2 ! -user $USER

Search for files in your home directory not owned by $USER and that was last modified less than two days ago.

find ~ -type f -mtime -2 ! -user $USER


How do I "edit grub to add iomem=relaxed"?

You can use nano but personally I do everything with gedit both in my regular user account and with sudo. In this case sudo is needed so it would be:

sudo -H gedit /etc/default/grub

Then change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT="iomem=relaxed quiet splash"

Save the file
Exit gedit
Run sudo update-grub
Type reboot

After rebooting type:

cat /proc/cmdline

You will see your changes in effect. Whether everything works or not is a different story :)


Ubuntu comes with the Ada compiler GNAT (package gnat) as part of the GNU Compiler Collection and the GNAT Programming Studio (package gnat-gps), an IDE for GNAT.

See AdaCore documentation page for documentation.


You can use empathy. Connect head phones, webcam, login to your accounts and simple right click for audio/video chats. If someone calls you, you will be prompted.

Also, skype is available in Linux


This article, Restore GRUB with Super GRUB2 Disk should help.

Also if there is any way you can access a terminal, either before login with Ctrl+Alt+F1 or after with Ctrl+Alt+T, I would give

sudo update-grub

a try in the terminal. That should update your GRUB configuration.


Force All Windows To Open At A Set Resolution ('width x height' pixels)

Yes, though it doesn't work very well.

Install ccsm, sudo apt-get install compizconfig-settings-manager (note ccsm is pretty buggy).
Start ccsm, go to the window management section
Enable "Window Rules"
In the options for "Window Rules", choose the "Size rules" tab
Click new, then the +
Choose your window (by class is usually best but it takes some experementing)
Set your width and height.
Apply everything and enjoy your fixed window heights.


Installing ruby with rvm and making ruby visible to bash

From your second screen shot you may noticed that rvm add RVM path to /home/octavian/.bashrc . So bash will know about it. try

grep -i rvm /home/octavian/.bashrc

Same for sh (/home/octavian/.shrc)


Auto-update Windows on dual boot machine

An unattended reboot will choose the top item in the GRUB menu to boot from.

You would need to script in Ubuntu

a change of GRUB to boot Windows, once
followed by a cron command to reboot at a time certain, then
when Windows boots, execute a script to run updates, and conditionally
A.   either reboot again into Windows if more updates need to be performed,
B.   or if no more need be done, change to GRUB to put Ubuntu back at the top, then
reboot into Ubuntu.

3A is especially tricky because Windows updates sometimes lead to more Windows Updates which cannot be performed until Windows reboots. You would need to find a way to conditionally execute one branch or the other of your Windows script depending on whether Windows needs you reboot and run more updates.

3B is even more risky, since writing to Linux filesystems from Windows is chronically troublesome and often results in filesystem corruption. I would recommend against it.


Raspberry Pi 4 gets stuck booting Ubuntu 18.04.5, "rcu_sched detected stalls"

It seems like the 18.04.5 release for Raspberry Pi 4 (64-bit) is currently broken. I filed an issue with the Ubuntu project for further discussion. Installing the 18.04.4 image works.


Is there a widget that simulates a disk activity LED?

indicator-multiload from the default repository is as close to this feature as I can find. It displays a small rectangle in the notification area.  By default it shows the CPU usage.  You can change the preference and select which usage from 6 choices including Harddisk.  You can simply remove the check mark from Load and checkmark Harddisk.

The binary indicator criterion is a vertical line on or off.

I need this functionality because, while the monitors are on my desk, the computers are hidden, so I can't see the flashing lights on them.  Also, like you, one of the computers is a mini-box, that doesn't have an harddisk LED.

Since this question was high on my google search for a solution, I'm sure it will benefit others looking for something similar.

Hope you can use it.


starting and runlevel are separate events, so you can't meaningfully say starting runlevel N.

The runlevel N event is emitted at the start of entering the runlevel.  If you start on runlevel N then your task runs on entry.  The way to run when entry to the runlevel is completed is run on started rc RUNLEVEL=N.

As I understand it, you need a start on runlevel [06S] to do what you want; it should in theory run before anything else is stopped.  For finer control you might use start on stopping apache or stopping mysql or ... so that your task runs before any of them are allowed to be shut down.

Edited to change runlevel 5 to S.


Ubuntu 18.04/20.04 LTS on Virtualbox boots up, but black login screen

So as i've suspected that it's a graphics issue, I went into the settings, first thinking it's a drivers issue, since many other posters of slightly different questions have had solutions with changing the drivers/controllers (or even CPU architecture etc). The other thought I had that might be the problem is that i'm running multiple screens on the host. Perhaps the guest VM is struggling to connect with them.

What worked for me was to:

Shutdown the VM
Go to the specific VM settings
Go to the Display Tab
Under the Screen Tab I increased my Monitor Count (which then
indicated an error that the "settings are invalid"), which made me
think of tinkering with the Video Memory.
So I increased the Video Memory to 64MB (it was 16MB initially)
Booted up the VM ... and hey
presto it worked ... now i see my login screen


I had the same problem. I just installed the kernel-headers from here:

http://www.ubuntuupdates.org/package/canonical_kernel_team/precise/main/base/linux-headers-3.5.0-27-generic.

After I installed the headers, I opened the terminal and typed:

sudo /etc/init.d/vboxdrv setup

It worked after that.


Ubuntu Multipass systray text-menu not appearing

This may be a font caching issue. If so, one of these two commands should resolve the issue:

Force re-generation of apparently up-to-date cache files:
sudo fc-cache -f

Erase all existing cache files and rescan:
sudo fc-cache -r

Hope this helps


There is a serious issue with the kernel vs the nvidia driver (https://bugs.launchpad.net/bugs/1401792)

In my experience so far with 14.04, I've found that setting any value for 'underscanning' in the nvidia control panel will make this issue go away until the next time you reboot.

However, it must be done every time you reboot.  I've found no answers on here; I've tried all of the nvidia drivers, including the xorg-edgers drivers, but so far no joy.

The bug report I mentioned is one of dozens of duplicates that all point to an incompatibility between the kernel and the nvidia driver, and for over a year (at least on that one specific bug report) the issue has yet to be correctly identified as either a kernel issue or an nvidia problem, let alone resolved.

My mobo/gpu hardware setup had been working fine for 2-3 years without issue until I installed 14.04, so I'm leaning toward a 14.04 issue... but that has not been confirmed by the people monitoring the bug reports.

edit:  sorry - I just saw that yours is 12.04, not 14.04.


What does the 's' in srwxr-xr-x in the 'ls' output mean?

From the ls manual:

  The file type is one of the following characters:

  ‘-’ regular file
  ‘b’ block special file
  ‘c’ character special file
  ‘C’ high performance (“contiguous data”) file
  ‘d’ directory
  ‘D’ door (Solaris 2.5 and up)
  ‘l’ symbolic link
  ‘M’ off-line (“migrated”) file (Cray DMF)
  ‘n’ network special file (HP-UX)
  ‘p’ FIFO (named pipe)
  ‘P’ port (Solaris 10 and up)
  ‘s’ socket
  ‘?’ some other file type

So, that's a Unix socket. It could be meaningful, since sockets are created by processes to listen for requests. Use lsof to determine what process is using that socket.

You may need to use sudo with lsof, if the socket is opened by a process running as another user:

$ lsof /run/snapd.socket
$ sudo lsof /run/snapd.socket
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF   NODE NAME
systemd     1 root  197u  unix 0xffff99dc9afa3000      0t0 191670 /run/snapd.socket type=STREAM
snapd   18626 root    8u  unix 0xffff99dc9afa3000      0t0 191670 /run/snapd.socket type=STREAM


What software can I used to open SGI images?

ImageMagick (package imagemagick) supports SGI files. You can use

display image.sgi

to view the image or

convert image.sgi image.jpeg

to convert it to a JPEG file.


How to copy the text in ubuntu error window?

You don't need to copy and paste anything, the bug reporting tool handles that for you.

That text is there for you to scan the text files so that you know exactly what is being sent to errors.ubuntu.com.

If you want to do it by hand you can file a bug manually and then do ubuntu-bug 12345, that number being the bug number you want to attach the information to. If you're looking for the files, they'll be in /var/crash.

But really, the automated tools are there for a reason, it's to cut out human error, etc. Usually just submitting the trace and letting the Launchpad retracers do their job is enough. Humans tend to not scale.


Suspend is not working in Ubuntu, NVIDIA Graphics card is installed

I have solved the problem by running

sudo apt-get install nvidia-current-updates

Now I can use suspend without any fuzz. I came across This post and my pc is working just fine. The nouveau driver it has some problem with the power management. Once the latest driver for the Nvidia is installed, it has solved the problem on it's own.


A crash is a bug, not a user mistake. You didn't do anything wrong.

1) Report the bug to the Snap Store:

Find the Blender snap's download page in the Snap Store
Click on the  "Report a problem with this snap" link.
If possible, attach the /tmp/crash.txt file to the bug report. That file includes vital information that the developer needs to locate and fix the bug.

2) Replace the snap version of Blender with the deb version of Blender.

Deb and Snap are two different types of software package. Since one crashed, try the other. This a workaround that gets a version of Blender working on your system. It doesn't fix the original problem.
Open a terminal:

snap remove blender
sudo apt install blender


How can I let the kernel be updated automatically?

You can run in terminal

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

and you will get kernel 3.16. And it will get security updates automatically.

You can also install 3.19 kernel by

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


Resolution set too low on startup, solutions do not work

This generally happens when the monitor doesn't report it's resolution correctly.

As you've found out, at runtime you can use the xrandr tool to add a correct mode and then switch to it.  To make this permanent, you can edit /etc/X11/xorg.conf and add that mode as the preferred mode.  I find the Debian XSF XRandR howto a good guide for editing XRandR settings in xorg.conf.


How to change the spacing of formula objects in Libreoffice Writer

I found the wrapping options and have solved the issue for specific formula objects.

For those experiencing the same issue:

Right click on the object (in my case a formula).
From the options that appear in the drop down menu select "Object" (you can also press the "o" key as a shortcut). This will bring up a new widow showing that object's specific properties.
From the available tabs in this window click on "Wrap".
You should see a window like the one shown below; under the "Spacing" heading check to see what the spacing distance is for "Left" and "Right".

Set the values in "Left" and "Right" to zero (or any other setting you may need). Then click "OK".

Note: This will only effect the settings for that particular object, not all objects in you file.


That should be easier if you add a custom option to the grub menu. File /etc/grub.d/40_custom

Add following entries:

menuentry 'System shutdown' {
    halt
}

Now set a time-out of X minutes and make this new option default and the machine shuts itself down after X minutes idle time and then run update-grub.


Why is Python V3.3 installed by default on Xubuntu 13.10?

Both Python 2 and Python 3 are installed by default on Ubuntu (and derivatives).

Python 3 is the newer version of it and applications are being updated to work with it, however many programs still use 2 (for various reasons)

The default python program links to Python 2 for compatibility reasons,  2 is incompatible with 3.

To use Python 3, you should use python3 instead.

$ python --version
Python 2.7.4
$ python2 --version
Python 2.7.4
$ python3 --version
Python 3.3.1


grub is not showing ubuntu after installing redhat 6.0

When you install another Linux distribution, this distribution (most of them) intends to install its own bootloader in the HDD's MBR. I assume that you have Red Hat's grub installed in you HDD right now.

I will advice you to install Ubuntu grub. You can use a live Ubuntu media and use the boot-repair program in order to correct the grub installation.

Alternatively you can try to Chroot and install Ubuntu grub in /dev/sda

grub-install /dev/sda

No sudo needed, you are already root in chroot.

After that, you can boot into Ubuntu and update-grub . If you have a detection of Red Had's OS problem, you can first mount the partition with Red Hat and then update grub again.

sudo mount /dev/sda6 /mnt
sudo update-grub


Problems with secondary monitor in Ubuntu 12.04

I think that I have found the solution... or rather, the solution found me.

I read somewhere that the proprietary graphic drivers could cause the system to freeze.
Such a driver was active and I therefore deactivated this, as I had in fact experienced such freezes and wanted to avoid these.

When I rebooted the system, the GUI looked a bit different and I could not figure out how to make the launcher small as it was before. When downloading and running a tool for this, it stated that I was now running Unity 2D.

So my conclusion is that I had a proprietary driver installed which tried to provide 3D acceleration which my graphics card did not support.

Now, running with Unity 2D, I have a well working system and I am capable of using my secondary monitor together with my laptop as two separate monitors.

Also, my system has become much more stable.


Mouse pointer freezing at left edge of screen in 16.10

I was experiencing some problems with my pointer as well. In my case, the pointer is there, but is not working properly, since it needs to be not on the link/folder/file... but above it.

It the past, trying to look for info about this issue, I discovered that many other users upgrading to ubuntu 16.10, started to experience an issue with the mouse pointer disappearing, which also happened to me sometimes.

I read in this Ubuntu Forums post that resetting unity settings would help

Install unity-tweak-tool

sudo apt-get install unity-tweak-tool

Then do a reset via:

unity-tweak-tool --reset-unity

It worked for me, and my pointer stopped disappearing.


How to install Ubuntu on MacBook Pro as Dual Boot?

I  think this  link  will  help  you to dualboot Ubuntu and Mac OSX.


What does the "size" of a symlink represent in ls output?

Symbolic links take the room it takes to store the name and target plus a few bytes for other metadata.

So it is the size of the symlink.

Regarding the size from du -sh: du  only looks at how many blocks are allocated, and so may show 0.stat and ls -l are better in showing the size in that regard.


I've had same problem. Finally I fugured laptop's cpu is 64bit architecture, but it's bios has only 32bit uefi. You can't boot normal 32bit system (32bit systems usually do not use uefi) and you can't boot 64bit because 32bit uefi won't load 64bit bootloader files.

Only solution is to have 64bit system and 32bit bootloader. There is only one distro that I know with this solution implementd: linux Kali, but it lacks drivers for this laptop. So what you need to do is copy 32bit bootloader into ubuntu's usb stick.

Step by step:

Download both kali and ubuntu iso's (both x64)

Make ubuntu usb stick (I used Rufus)

Now open kali's iso (windows 10 explorer can do that)

Copy boot/grub/i386-efi from kali's iso to ubuntu usb

Copy efi/boot/bootia32 from kali's iso to ubuntu usb

Not boot from ubuntu usb - you should be redirected to grub terminal.

Write ls and press enter

You will get list of devices and partitions like (hd0,pt1)

Now use ls (hd0,pt1) to check avalible devices in search of your ubuntu live partition (for me it was second displayed). When you use the right one you will get list of all folders on your usb stick

Once you have right partition code all you need to do is setup booting sequence to this partition:

Write: set prefix=(hd0,pt1)/boot/grub and press enter (of course you nedd to replace (hd0,pr1) with partition you found moment ago)

Then write set root=(hd0,pr1) and press enter

Write insmod linux and press enter - there should be no output, if there is something you need to check if you have not made any mistakes erlyer

Write insmod normal and press enter

And write just word normal and pess enter

You should either get ubuntu's boot menu (use first option) or it should start live system. Installation works normally, all drivers are found and working.

It worked for me on same notebook with Kubuntu 19.04
:-)


Can only write with sudo to one USB flash memory

Try the following:

sudo chown -R ycc:ycc /media/ycc/KINGSTON  #reown the files
sudo chmod -R o+rwX #add ycc read and write rights. Add Execute only if the file is a directory
touch /media/ycc/KINGSTON/testfile #test if you can write on the stick.


What command-line options are available for Ubuntu One?

For the syncdaemon:

u1sdtool [OPTION]... [ARGS]

  u1sdtool [OPTION]... [ARGS]
   u1sdtool --wait
   u1sdtool --accept-share=SHARE_ID
   u1sdtool --reject-share=SHARE_ID
   u1sdtool --list-shares
   u1sdtool --refresh-shares
   u1sdtool --offer-share PATH USER SHARE_NAME ACCESS_LEVEL
   u1sdtool --list-shared
   u1sdtool --create-folder=PATH
   u1sdtool --delete-folder=FOLDER_ID
   u1sdtool --list-folders
   u1sdtool --subscribe-folder=FOLDER_ID
   u1sdtool --unsubscribe-folder=FOLDER_ID
   u1sdtool --refresh-volumes
   u1sdtool --rescan-from-scratch=VOLUME_ID
   u1sdtool --info=PATH
   u1sdtool --list-dirty-nodes
   u1sdtool --current-transfers
   u1sdtool --quit
   u1sdtool --connect
   u1sdtool --disconnect
   u1sdtool --status
   u1sdtool --waiting
   u1sdtool --waiting-metadata
   u1sdtool --waiting-content
   u1sdtool --start

OPTIONS

   --wait Wait until ubuntuone-syncdaemon reachs nirvana

   --accept-share=SHARE_ID
          Accept the share with the specified id

          SHARE_ID
                 The share id, as returned by --list-shares

   --reject-share=SHARE_ID
          Reject the share with the specified id

          SHARE_ID
                 The share id, as returned by --list-shares

   --list-shares
          Get the list of shares

   --refresh-shares
          request a refresh of the list of shares to the server

   --offer-share=PATH USER SHARE_NAME ACCESS_LEVEL
          share PATH to USER.

          PATH   A path of a  directory  or  file  managed  by  ubuntuone-
                 syncdaemon (can't be a path inside a Share)

          USER   The  (short)  username,  that  this  share is going to be
                 offered

          SHARE_NAME
                 The share name, as it's going to be offered to USER

          ACCESS_LEVEL
                 The acces level of USER to this share, can be: "View"  or
                 "Modify"

   --list-shared
          List the shared paths/shares offered.

   --create-folder=PATH
          Create user defined folder in the specified path

          PATH   The  path  of  a  directory  to  be managed by ubuntuone-
                 syncdaemon

   --delete-folder=FOLDER_ID
          Delete user defined folder identified by FOLDER_ID

          FOLDER_ID
                 The folder id, as returned by --list-folders

   --list-folders
          List all the user defined folders

   --subscribe-folder=FOLDER_ID
          Subscribe to the user defined folder specified by FOLDER_ID

          FOLDER_ID
                 The folder id, as returned by --list-folders

   --unsubscribe-folder=FOLDER_ID
          Unsubscribe from the user defined folder specified by FOLDER_ID

          FOLDER_ID
                 The folder id, as returned by --list-folders

   --refresh-volumes
          Request a refresh of the list of volumes to the server

   --rescan-from-scratch=VOLUME_ID
          Request a rescan from scratch for a volume.

          VOLUME_ID
                 The volume id, as returned by --list-folders  or  --list-
                 shares

   --info=PATH
          Request the metadata of PATH

          PATH   A  path  of  a  directory  or  file managed by ubuntuone-
                 syncdaemon

   --list-dirty-nodes
          Show the list of nodes marked as 'dirty'

   --current-transfers
          Show the current uploads and downloads

   --quit Shutdown ubuntuone-syncdaemon

   --connect
          Connect the syncdaemon

   --disconnect
          Disconnect the syncdaemon

   --status
          Get the current status of syncdaemon

   --waiting
          Get the operations being executed.

   --waiting-metadata
          Get the waiting metadata list (NOTE: This option  is  deprecated
          and will go away shortly)

   --waiting-content
          Get  the  waiting  content list (NOTE: This option is deprecated
          and will go away shortly)

          SHARE_ID
                 The share id, as returned by --waiting

          NODE_ID
                 The node id, as returned by --waiting

   --free-space=VOLUME_ID
          Get the free space for a volume.

          VOLUME_ID
                 The volume id, as returned by --list-folders  or  --list-
                 shares

   --start
          Start syncdaemon if it's not running

Please note that on Windows, ubuntuone-control-panel-qt.exe should be fully running before executing u1sdtool.exe.

 Source: http://manpages.ubuntu.com/manpages/precise/man1/u1sdtool.1.html


I think you need to post more of your output. "status: The following connections are open", for me was after I hit CTRL-D and logged out. This is what I got just before the MOTD and a prompt.

Authenticated to 55.55.55.55 ([55.55.55.55]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8


problem with gradle project refresh in android studio 3.0

The problem was with the permissions. I opened android studio using sudo and it worked!


Cannot install ubuntu on my phone: "Depends: click-ubuntu-policy but it is not installable"

Your error can have many reasons. You provided less information. Please edit your question withdetails about yous Ubuntu version and a link to the tutorial, you used. I  try to show up some possible reasons and solutions:

I am not an expert, but your log shows, that you have unmet dependencies. This could be, because you  have installed some packages from externalsources or you did something else what a beginner should not do.;)

You told us, that you are running an old version of Ubuntu. Maybe a system upgrade will help to solve your problem. Try to upgrade with: sud apt-get dist-upgrade or use the 'software updater' http://www.ubuntu.com/download/desktop/upgrade

The second idea is to do a full release upgrade. This could be done with the software updater, too. Or use this command: sudo do-release-upgrade (May be you need to change your setup to receive non-LTS-versions)

Your error shows, that the dependency cannot be fulfilled, because some packages cannot be installed. Maybe you added a wrong ppa sources. Please provide your ppa lists by executing cat /etc/apt/sources.list && cat /etc/apt/sources.list.d and then insert the output to your question.

Feel free to ask for more information and instructions within a comment,.


Uninstalling octave from ubuntu 16.04 LTS

Gauri. I just successfully uninstalled Octave from my ubuntu 16.04 according to the solutions at http://installion.co.uk/ubuntu/xenial/universe/o/octave/uninstall/index.html.

I saw something is wrong in your code sudo apt-get autoremove octave. The right way should be sudo apt-get remove --auto-remove octave. Perhaps you could try it out and see if my suggestion works. Good luck!


Sshd_config still allowing password authentication

You need to do three things here:

(1) Set PermitRootLogin to be without-password or restrict-password or no.  For security.  I normally set it to no.

(2) You're missing something else that's pretty important.  You should be using PAM for authentication for things - UsePAM yes is what the default usually is; this allows you to use UNIX user login data.

(3) Also important, NORMALLY you set ChallengeResponseAuthentication to no.  This protects from bypassing the without-password restriction for root logon.  (The exception is if you're using libpam-duo and the Duo Security 2FA system, in which case you need ChallengeResponseAuthentication set to yes, but this isn't a typical setup.)

Once you've done that, sudo service ssh restart to restart the SSH service with the new configuration.  Attempt SSH from another window before you logout of your SSH session to make sure things are working as expected.


Have you tried installing and using 'Google Chrome' it has flash installed already...

If Flash player doesn't work on 'Google Chrome' you have to do this:

1) If the Flash plugin is already installed for Firefox, we have to find out where it is located:

sudo updatedb
sudo locate libflashplayer.so

2) If it is installed, output should be similar to this one...

falko@falko-desktop:~$ sudo locate libflashplayer.so
/opt/Adobe AIR/Versions/1.0/Resources/libflashplayer.so
/usr/lib/flashplugin-installer/libflashplayer.so
falko@falko-desktop:~$

... which means the Flash plugin is located in /usr/lib/flashplugin-installer/libflashplayer.so.

3) If there's no output, this means that the Flash plugin isn't installed - you can then install it as follows:

sudo aptitude install flashplugin-installer

4) Now we create a plugins directory for Google Chrome

sudo mkdir /opt/google/chrome/plugins

5) Now copy the Flash plugin to it:

sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /opt/google/chrome/plugins

6) Finally we have to tell the Google Chrome launcher that it should look out for plugins. To do this, we right-click on Applications and select Edit Menus:

7) In the Menu Editor, go to Internet > Google Chrome and click on the Properties button:

8) In the Launcher Properties window, replace the contents of the Command field with this line...

/opt/google/chrome/google-chrome --enable-plugins %U

... and click on Close:

9)Then leave the Menu Editor.

That's it! We can now launch Google Chrome (Applications > Internet > Google Chrome):

10) If you start Google Chrome for the first time, you'll see this dialogue. Make your choices and click on Start Google Chrome:

11) Now go to a web site that has Flash videos (e.g. YouTube), and you should be able to watch them which means that the Flash plugin is working:

Hope this helps you and anwsers the question :-)

Good Luck!

Useful Links:

1.http://get.adobe.com/flashplayer/ (In small text you will see click here on this website)

2.http://dev.chromium.org/getting-involved/dev-channel

Please click on the tick if this answer helped you!


Freeze at keyboard layout screen while installing Ubuntu

Rufus usually hasn't worked for me.
Since you're on Windows 10, you could try using Win32DiskImager.

If that doesn't work, I've managed to unofficially flash the USB drive by formatting to FAT32 (The entire drive) then copying all the files from the .iso file to the drive.


Kubuntu goes to black screen and shuts down while typing

I had the exact same problem, nothing useful in logs. It happened on anything newer than 16.04 or if I upgraded HW stack with 4.8 kernel on 16.04. This is on a Lenovo Thinkpad T410 Intel i5 560M, integrated graphics, 8GB ram. Same brand, similar original specs as OP.

I ended up cleaning my laptop (cleaned dust from heatsink, fans, etc) and applied new thermal paste to the CPU and the problem went away. Been running Kubuntu 17.04 for 3 ish weeks and the problem hasn't happened since.


Why would you make a system wide proxy, just for 2 or 3 websites? I mean it is more simple, and in my opinion better to make a proxy for those websites in Firefox or chrome or whatever browser you use. Just think about it, every time you use Skype or steam or any other program that needs internet, you will have to see if you are accessing YouTube or google or whatever other site you want to use proxy.

I think another solution would be to install an extension in Chrome or Firefox and configure the browser only to use the proxy for those specific websites.


Deluge is not connecting to daemon on server despite working from another machine

I "fixed" this problem by upgrading Deluge on the server to 1.3.12. This can be done with the Deluge PPA Guide here.

  Deluge PPA Repository

  The Deluge PPA contains the latest Deluge releases for Ubuntu.

sudo add-apt-repository ppa:deluge-team/ppa
sudo apt-get update
sudo apt-get install deluge


The system is waiting for a password in the background.

Type password 4 times (with enter).

Source: https://www.reddit.com/r/Ubuntu/comments/8r3zov/stuck_at_building_initial_module/e0z7oli/


You can try this

Edit /etc/default/grub
edit line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
Save
In terminal "sudo update-grub"
reboot

This work for my X401u (AMD c-60,Radeon 6290) with Ubuntu-mate 15.10


Two options here:

gnome-terminal <command> &: will run that command in the background but will be ended if the terminal is closed.
nohup gnome-terminal <command> &: will run in background and keep running even if the terminal window is closed.

Now run that script with either & or nohup like so nohup sudo sh ./infra.sh & or sudo sh ./infra.sh &


after some research I found that adding acpi_osi=Linux acpi_backlight=vendor to kernel boot parameters makes a huge difference.

Daniel.


Ubuntu 18.04 GNOME Opera Browser prevent toggle menu by pressing Alt

Pressing and holding the Alt key will universally bring up a "File, Edit..." style menu in all windows. However normally it only appears in the top bar whereas Opera is doing a giant drop down menu. For example here is how Firefox behaves when you press and hold the Alt key:

There have been many complaints over the years about Opera's Alt key drop down menu:

From 2010: How to disable Opera alt button?
From 2013: Alt key opens menu
From 2014: How to disable Opera menu being open by pressing alt in opera 20+
From 2015: Disable Alt Key Drop-down Menu
From 2015: Anyway to hide or move the "Menu" drop-down list in the top left hand corner?
From 2017: Left alt key - dropdown menu
From 2018: Option to turn off ALT key opening main menu

So far the Opera developers have ignored the pleas of these users.


Try to download "adobe reader" or "viewPDF "from ubuntu software center.


According to snapcraft

sudo snap connect musescore:removable-media :removable-media


how to re install ubuntu on the fedora partition

Boot from Ubuntu install disk.
When reaching the disk partitioning screen, choose "Something else", then delete the Fedora's partition.
Choose to install Ubuntu on the free space.


systemctl list-unit-files fails - "Not a directory"

Ok, poked around in journalctl and got some hints and realized what had gone wrong. I had installed a new Cuda service configuration file with the command:

  cp nvidia-persistenced.service /usr/lib/systemd/system

in the naive assumption that system was a directory that the service configuration file would be copied into. However in reality that system subdirectory did not exist yet, so the cp command just created a file in that place with the name "system". I assume that this in turn confused the systemctl list-unit-files command which was expecting a subdirectory there.

Kind of a silly error, but posting it in case it helps someone else as googling that message turned up nothing
. BTW, systemctl list-unit-files works fine now and so do my cuda examples.


Can't access files after 18.04 re-install

If the files were left in place while you reinstalled the operating system, it's probably just an issue of permissions, in which case you should be to fix it with a simple:

sudo chown -R username:username /home/someuser

sudo chmod -R 770 /home/someuser

Obviously replace "username" with your username and "/home/someuser" with the path to your home directory, or to the location of the files in question.


Have you tried checking if your BIOS can support bootable USBs?

If yes, you have to make sure that you change the boot order of your BIOS and that USB is first. Restart your computer and by then your system will detect your bootable USB and proceeds with the installation.

You may want to do some research about changing the boot order if you're confused on how to do that.

Or you can check it from here:

http://pcsupport.about.com/od/tipstricks/ht/bootusbflash.htm

Hope this helps.


Most likely you will need to be root to do something in /etc/....

Try

sudo ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt


"Disable touchpad while typing" duration can't be lower than 1s?

Forget about the buggy XFCE touchpad settings dialog, just run the following line in terminal:

syndaemon -i 0.5 -t -K -d


The issues is most probably related to the route configurations not being set in the wireless device NM configs. try to edit the file for your connection manually, you will find it here, vim /etc/NetworkManager/system-connections/YOUR_WIFI_NAME

under the ipv4 section add (while this should be the default):
never-default=false

You also have to edit /etc/NetworkManager/NetworkManager.conf

[ifupdown]
managed=true

Also if you found that managed=true in the first place then that could be the issue for not automatically adding the routes, try to change it to false, and don't do the previous ipv4 step and then:

service network-manager restart


Confusion with system clock change in messages?

As far as I know the system clock is adjusted with small incremental updates until the correct time is reached.


You can use Ctrl + Shift  + U . After that you'll see an u inserted. You can then type the unicode for the character to insert, then SPACE and the input is changed into the character.

Another way to insert characters with accents easy is t use a keyboard setting with so called dead keys. If you then type a single quote (') it does nothing. A space will insert the quote. But typing e it will produce an é. You can change it using System Settings -> Text Entry. You can also install additional keyboard layouts there.

Good luck!


With Gnome Shell (17.10+)
The default keybind is Ctrl + Super + d. The setting is called Hide all normal windows
You can change it in Settings > Keyboard Shortcuts > Navigation:

With Unity (before 17.10)
The patch is already released but if you still face that problem use the following:

Click your username on the top right of the screen and select System Settings.

Under Hardware click Keyboard.

Switch to the Shortcuts tab, and click Navigation in the left column. Scroll down and select Hide all normal windows which has a default value of Disabled.


AMD Radeon HD 7470M proprietary driver not working on ubuntu 12.04lts

Your card is not supported by any driver, closed or open source.

You need to use what is working for you at the moment and wait for AMD to start supporting your card via their drivers.


VLC installation problem - taking a long time

You should try running (in Terminal - launch Terminal with CTRL + ALT + T:

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

And then run:

sudo apt-get install vlc


Ubuntu GNOME 17.04 desktop and desktop icons show through application window

Well, it turned out to be a theme problem!

Either of the Unity themes, Ambiance or Radiance, would show the problem.

Choosing the default GNOME theme, Adwaita, solved the problem!


AMD Turbo Core not working - Change CPU driver?

The module "acpi-cpufreq" is correct. powernow-k8 has been deprecated since linux 3.7. (Archwiki has it all =-) https://wiki.archlinux.org/index.php/Powernow#CPU_frequency_driver )

According to Phoronix (http://www.phoronix.com/scan.php?page=article&item=amd_fx8150_features&num=1) your CPU should be running at it's full speed, but the turbo frequency is just not displayed on linux for some strange reason.
The article is kind of old now (from 2011), and I expected that that sort of issue would have been solved by now, but I guess I was wrong...

Here is another example that it is working, but the values are not being outputted correctly:
Launchpad Bug #1071434, comment 50


I have added the www-data user to my user's group and the owner of /home/user/www is my own user and group (user:user).

This way, you have give yourself the rights to edit Apache files.

What you need to do is the opposite: give Apache the rights to edit your files:

sudo adduser www-data $USER

This way you can have /home/user/www owned by $USER:$USER: you will be able to edit files, Apache will be able to edit them.

This may not be enough, however. You said:

  The permissions of /home/user/www are 0774.

Nice, but: you first have to be sure that the mode bits of /, /home and /home/user are correct. And that's still not enough: even if Apache can access /home/user/www, you need to be sure that it can access the directory contents too.

If you want to make experiments and see what's wrong, try:

sudo -u www-data ls /home/user/www
sudo -u www-data cat /home/user/www/some-file
sudo -u www-data touch /home/user/www/some-file


Docky - how can I change jDownloader icon?

Probably there are scalable vector graphics (*.svg files) for all your applications except of jdownloader (which has only a small png file or so).

There are several folders in /usr/share with icons and images. One is /usr/share/icons, another /usr/share/pixmaps/. Probably in one of the two you'll find a icon jdownloader.png. If you don't find it, search for the *.desktop file (the launcher) and open it with your favourite text editor. You'll find a line "Icon=XY" and XY  is the name of the icon (without the file ending). You can then search /usr/share for this name. The desktop file is located in /usr/share/applications but you get it even faster by right-click in your application menu and then "Add this launcher to desktop".

If you found the icon file used, you can replace it with another one with higher resolution. Or even better if you have a SVG version of it, just place the svg file there (no need to remove the other file then). But unfortunately it doesn't seem as if there is a SVG file for the official logo available. But I found this one.


Why doesn't "rvm install ruby-head" do anything?

Well, this is not the final solution to this, but you can see the available list of rubies in rvm with the command

  rvm list known

Then I installed the almost last version of ruby, because ruby-1.9.2-head doesn't work too, so

  rvm install ruby-1.9.2

That's a provisory solution for this problem, now the reason? I don't know


how to update wireless-regdb in Ubuntu12.04?

If you mean that you want to set your regulatory domain explicitly, then check yours from the terminal:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/rc.local

Right above the line exit 0, add the line:

iw reg set IS

Proofread carefully, save and close gedit.


First go to console (ALT+F2 then type gnome-terminal). Inside the console type nvidia and press the TAB button. If you have the nvidia drivers correctly install there should appear several nvidia files (Like nvidia-settings, nvidia-xconfig, etc..)

Type nvidia-xconfig so it edits the xorg.conf file with the nvidia configs. Reboot the PC.

If you can not still have special effects then do the following:
nvidia-current

Install mesa-utils (sudo aptitude install mesa-utils or sudo apt-get install mesa-utils)
Type glxinfo | grep "direct rendering". If a NO appears then there is some problem with your nvidia installs. If a YES appears then typing compiz --replace after pressing ALT+F2 should give you the 3D effects.
If the NO appeared just try to reinstall the drivers with sudo aptitude reinstall
nvidia-current
Lastly type dmesg | grep "nvidia" in console to see if there is an output regarding nvidia. Normally the output will say how to fix it.


Run gsettings set org.gnome.desktop.background show-desktop-icons false and Nautilus will always start without drawing the icons on the background.

You can also run dconf-editor to change the setting with a GUI, if you'd like.

You may need to reset your background image settings, depending on how well the system handles the nautilus background window disappearing.


"Ubuntu is an ancient african word, meaning 'I can't configure Debian.'" -- why did they write that?

No, this is a joke.

Ubuntu (the word) "is an ethic or humanist philosophy focusing on people's allegiances and relations with each other". It is often translated directly as "humanity towards others. The word has its origin in the Bantu languages of southern Africa".

Ubuntu (The OS) is built on the foundation of Debian. It is a fork of the Debian project. Ubuntu shares many of the packages and components of Debian.

Ubuntu's goal is to be a user friendly Linux distributions for those unfamiliar with Linux in general. "Ubuntu has a strong focus on usability and ease of installation" whereas "Debian is known for relatively strict adherence to the Unix and free software philosophies" and will sacrifice user friendliness in favour of those ideals.

Hence the formulation of the joke. If you are new to Linux and are unable to configure Debian, you may instead choose Ubuntu. They have taken a inconsequential fact about the Ubuntu distro (it's naming based on an African word) and altered it to poke fun at the project goals, just like advanced users often ridicule beginners (or newbies) in many areas of proficiency.

UrbanDicionary.com - In their own words "A website with a brilliant concept that could have become great if it hadn't been overrun by a mob of losers, who spend their days trying to feel important and popular by insulting everything else on God's green earth."


How to remove performance lags while playing Ragnarok on Wine?

Turn down graphics and then you can play the game.


How do I delete files using the Gutmann Process?

The built-in command to do that is shred. It is part of the Gnu CoreUtils, and thus already installed.

  shred: Remove files more securely

  shred overwrites devices or files, to help prevent even very expensive
  hardware from recovering the data.

See https://www.gnu.org/software/coreutils/manual/html_node/shred-invocation.html, which mentions Peter Gutmann's paper, or see man shred.


Remember that you MUST user GPT partition table type to make the UEFI System boot. Some time ago,i had the exactly same problem. I solved it, formatting my disk, and creating a new partition table with gParted from the LiveUSB. The default value for the partition table is msdos, which is for Legacy boot. Change to GPT from the dropdown list.

A more detailed process is:

Boot from the liveUSB or liveCD in UEFI mode
Install gParted from the command prompt or software manager. You can use the following command: sudo apt-get install gparted
Open gparted
Make sure that the selected disk is your hard drive or installation target, for example: /dev/sda at the top right corner.
Go to Device -> Create Partition Table
Select GPT
Apply
Accept the warning messages and after the changes has been applied, close gparted
Open the installation program and select manual install when prompted
Create the efi partition at the beggining of the disk with about 250MB
Format it as FAT32
Continue with the rest of the install process, setting the other partitions and options.

Have fun!


Change terminal tab color in Ubuntu 18.04

You need to create that file. In the answer of the first link the first step is:

Create the file ~/.config/gtk-3.0/gtk.css


Help Needed: Facing Issues in ISO to bootable USB conversion

Most linux iso files are hybrid iso files. It means that they can be cloned to a USB pendrive and the USB pendrive will be a bootable drive (live drive or install drive).

In current versions of Ubuntu you can use Disks alias gnome-disks,
in Ubuntu 16.04 LTS and newer versions you can also use the Startup Disk Creator to clone from the iso file to a USB pendrive,
You can install mkusb in most current linux distros,

to clone from the iso file to a USB pendrive.

In Windows you can use

Win32 Disk Imager to clone or
Rufus to extract

from the iso file to a USB pendrive. The cloning process is straight-forward and therefore very reliable.

But Rufus has a good reputation, so I don't know why it was failing for you. Please check with md5sum that the iso file was downloaded correctly. See this link.

The following links (and links from them) add more tips how create a USB boot drive

help.ubuntu.com/community/Installation/FromUSBStick

Download the iso file and check that it was downloaded correctly


Partial solution. Canon CAPT drivers README suggestes it's better to use Acrobat Reader for printing PDF files. This is a working, not fully satisfactory, solution. It should be noted one has to set "Let the printer determine colors" in "Advanced" tab (left bottom corner of the printing acroread form), otherwise the output will have swapped colours: black for the background, white for the text.

Remark 1. So far I've not yet tested whether other readers print well since I've wasted a fair amount of toner and I need it now. Since it's quite annoying being compelled to use Acrobat Reader (which has a ridiculous printing system for multiple pages), please let me know about your experiences with other readers.

Remark 2. Installing acroread do not cause changes in default Ghostscript driver nor in available Ghostscript drivers.

Remark 3. acroread doesn't support opening PostScript files, so I couldn't verify whether issue is fixed for them.


How to remove transparency from search interface?

Solution is Compiz CCSM. In section "workspace" there's a menu item "Ubuntu Unity Plugin". There you will find the option "Background color", which refers to the background of the "Dash". That's what the search interface seems to be called actually. Use this background color option to set color and transparency of the dash's background. What a relieve to finally stop being distracted by the blurry stuff from underneath this dash panel...


The source of the problem is not the syntax, but the build-in difference between tar and zip.

The problem with submitting zip file via pipe is based on zip design

  A directory is placed at the end of a .ZIP file. This identifies what files are in the .ZIP and identifies where in the .ZIP that file
  is located. This allows .ZIP readers to load the list of files without
  reading the entire .ZIP archive

When providing zip via pipe - the directory will be accessed only after the entire file will be supplied by the pipe, hence pv should be completed before unzip should start - which cause the failure you are facing.


Not sure how to get around build error (libimobiledevice 1.2)

To compile the code you need the development libraries of libssl. Installing openssl or libssl isn't enough. Therefore install libssl-dev via

sudo apt-get install libssl-dev

After that, start

./autogen.sh

again.


How to make KDE Applications appear in the Ubuntu 17.10 Frequent Applications view?

I found that adding the StartupWMClass parameter to the *.desktop launcher for affected applications solves the issue.

The value for the StartupWMClass parameter should be the application command, found in the Exec= line of the *.desktop file.

You can do this using sudo gedit, or directly from the command line.

For the three applications I listed in my question, the commands would be:

KRename

echo "StartupWMClass=krename" | sudo tee --append /usr/share/applications/kde4/krename.desktop

Kdenlive

echo "StartupWMClass=kdenlive" | sudo tee --append /usr/share/applications/org.kde.kdenlive.desktop

KolourPaint

echo "StartupWMClass=kolourpaint" | sudo tee --append /usr/share/applications/org.kde.kolourpaint.desktop

Note that after doing this, you can not launch additional instances of the an application by simply clicking on its icon in the Frequent Applications view or the Applications View in Gnome Shell.  Instead, you need to right-click on the icon, and explicitly select "New Window".  I think this is fine, since this is how other applications in Gnome Shell behave.


Can I use ctrl-z to pause a script and then continue after rebooting my computer?

Not with Ctrl+Z, no. That simply pauses execution but that can't survive rebooting. When you reboot, everything is shut down, including paused processes.

What might be possible is to hibernate instead of shutting down, then boot into Windows and, when finished, resume the hibernated Ubuntu. However, I have not tried this and don't know if it would work. If you have hibernation set up, try it and see.


ufw-init errors out with Bad argument DROP

I had the same error in Debian.

I switched back to iptables-legacy according to the information on this site.


Ubuntu is currently planning/developing to use systemd in the future. See following links for info: Vivid will switch to booting with systemd... and Release notes: Boot and service management

I am using 14.04.

You can use the more native command update-rc.d. Check the man page.

Enabling a service with defaults (see man page):

sudo update-rc.d foo_service defaults

Disabling a service:

sudo update-rc.d foo_service remove

Note that in order to remove without error message the foo_service file must not be present. However you can force:

sudo update-rc.d -f foo_service remove


This is a known bug #763227 which you can read on Launchpad here.

If you update your kernel to 2.6.38-10 or above it should fix the problem.


WiFi not working depending on kernel choice at start

The only way for you to have the driver mt7630e working in 4.8.0-52 is that you compiled the driver from source code. You compiled it for the currently running kernel only; that is xx-52. Please reboot and select the latest kernel version you have available and re-compile:

cd Downloads/MT7630E

...or wherever you downloaded the files,

make clean
make
sudo make install
sudo modprobe mt7630e

Your wireless should now be working.

Whenever Update Manager offers a later kernel version, after the requested reboot, repeat the process.


Evince slow due to apparmor denying access to ~/.cache being a symlink

This is solved immediately by modifying /etc/apparmor.d/abstractions/fonts to include a line like this:

/complete/template/path/to/userdirs/*/.cache/fontconfig          r,

This applies to all users (* being at the part of the path that is the user login).

This feels correct.  Is it?


lxc trusty (ubuntu 14.04) network interface is not starting

EDIT: Nevermind, I now think it was because I had used LWP, and it had mangled my config files. I'm leaving the below info, just in case it was both things.

TLDR: are you dealing with clones of an image?
If so, make sure you start up the base image (the one created with lxc-create, not lxc-clone) at least once before you clone it.

I was experiencing a similar bug.
On 14.04 host, using 14.04 containers.
I'd snapshot a container, and the first time I ran it, the network would work.
However, if I stopped the container, and then started it up again, the network wouldn't come up: the only way to make it work was to do ifup eth0.

While troubleshooting, I went back to my original image, the first one created with lxc-create. You see, I hadn't started it up: as soon as I created it, I made a snapshot clone to work on, so that I'd always have a nice base image. I noticed, when I ran it, that it's network came up correctly no matter how many times I restarted the container.

Afterwards, every snapshot clone I made off the image worked correctly as well. Meanwhile, the clones I had made before (without running the based container once) continued to not function correctly.

My guess is that there is some initial config that is ran the very first time a newly created container is ran, and this initial config doesn't work correctly if the first run is done as a clone. This is all conjecture though.


How do I partition my Hard drive to install Kubuntu?

First of all, be warned that (even though it's quite unlikely) you may lose all the data on the hard disk by doing any of the following operations. Before fiddling with partitions, be absolutely sure that you've saved all your important data on a separate storage device.

The first question here is, do you want to keep your current OS and install Kubuntu alongside it, or do you want to delete it? Kubuntu can read Windows partitions, but Windows can't read Linux partitions. So do consider dual-booting, using Windows partition as storage for data such as videos and music.

To setup a dual-boot configuration you will need to free some space for Kubuntu, so shrink the 319965 MB drive (it will probably be called C:). In Windows 7, go to the built-in disk partitioning program (you can find it by typing "part" in the Start Menu). Right click on the partition and select the shrink menu item (or something like that). Shrink it by something like 50000 MB (read to the end before deciding on the shrink amount, this will be the space available for Kubuntu).
(If you want to rewrite the whole drive with Kubuntu, ignore this paragraph)

Now we can proceed to install Kubuntu. Please note that the version 12.04.1 has been released recently and you should use it, but if you don't want to redownload, it's not a big problem too. Also make sure that you've downloaded the correct CD image. It should be Kubuntu Desktop, x64 if your computer is 64-bit (ignore the "recommended" label), else x86.

Boot with the USB drive plugged in (you may need to do some fiddling in the BIOS for it to be accepted as the boot device). Select Start Kubuntu. Then press Install Kubuntu. Check Install this third-party software and press Continue.

And here we proceed with the partitioning.
Select Manual and click Continue. If you want to remove the existing OS, click on every partition (/dev/sda1, /dev/sda2) and Delete them. Either way we should have free space to work with. Now we will create the partitions.

The root partition: here all the system files and applications installed with package manager will be stored.
Click on free space to go to the Create Partition window. The absolute minimum for this partition would be 8000 MB, but that can be not enough. On the system I'm using right now I've installed tons and tons of different packages and I've used about 13 GB, so I recommend to make this partition 16000 MB or even 24000 MB. Also keep in mind this partition shouldn't be too large (i.e. more than 35% of the space), because the rest of the space will be used for your documents and application settings.
The type for the partition should preferably be "Primary", but that's not a big deal. Leave the Location... as "Beginning". Use as: "Ext4 journaling file system". Mount Point: "/".
The swap partition: this partition is used as additional RAM if there's not enough of it and also to store the state of RAM for hibernation.
Click on free space. This partition's size should be the same as the amount of RAM on the computer, 2000 MB or something like that. Type... can be Logical. Location...: "Beginning". Use as: "swap area".
The home partition is used to store all your data.
Click on free space. You want this partition to take up all the remaining space, so don't change the partition size. Type... can be "Logical". Location: "Beginning". Use as: "Ext4...". Mount point: "/home"

To sum up, the / partition should be about 16 GB, swap is a few GB, /home is the rest. So if you have 50 GB of space in total, the /home partition will be about 30 GB. If you have more space, go on and make the / partition larger as mentioned before. swap can be made larger too, maybe twice the amount of RAM.
If you have less than 50 GB of space, it may be better to not have a separate /home partition. In that case make one large / partition and then a swap partition of a few GB. swap is actually optional too, but it's quite important...

The Format? checkbox should be on the / and /home partitions if everything went correctly.
Device for boot loader installation should be "/dev/sda" (no numbers in the end!).

No changes have been made until this point, but when you click Install Now, there is no going back. So check that everything is alright and make sure that the computer is connected to a power source. It is also nice to have an Internet connection (through an Ethernet wire).

Select your country and time zone and click Continue. You probably don't need to change the keyboard layout. Click Continue. Your name is a display name. The username is made out of it. The password is quite important: you will be required to enter it to do administrative actions (e.g. sudo command). You may want to choose automatic login. I wouldn't recommend to encrypt the home folder; I've never used it and I'm not sure if it's reliable.

Enjoy the slide show, wait until the installation ends and reboot the computer.


Lubuntu 13.10 selected LX games desktop now can't login

I also selected LX Games session and could not see any UI after that. This is what worked for me:
I edited the file /etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-guest=true --> I set this var to true
autologin-user=user_name
autologin-user-timeout=0
autologin-session=lightdm-autologin
greeter-session=lightdm-gtk-greeter
user-session=Lubuntu

After this change I restarted my computer.

I don't know if this is the correct way to solve it, but at least I was able to logout and select back the Lubuntu session, and reset the autologin-guest var to false again.
This link was also helpful for me: https://wiki.ubuntu.com/LightDM

Note: I activated the autologin option when I installed Lubuntu.


Between the GRUB menu and the Login Screen on Ubuntu 18.04 there is a "no symbol table" message

I discovered that this problem began with Ubuntu 17.no symbol table error after upgrading to 17.04

The solution was to reinstall the grub loader. Reinstalling the grub loader stopped the "no symbol table" message, however, when I did this on my machine I got the following response from the package installer:

sudo grub-install /dev/sda

  Installing for i386-pc platform. grub-install: warning: Sector 32 is
  already in use by the program `FlexNet'; avoiding it.  This software
  may cause boot or other problems in future.  Please ask its authors
  not to store data in the boot track. Installation finished. No error
  reported.

Regardless of the message, I can still boot and the error message stopped.

On investigating "FlexNet" I found that it was installed in the boot track by Flexlm, a license manager for SolidWorks, that I have installed on the PC partition on my drive. I multiboot an old version of Windows and Ubuntu. It is probably not an option to remove this entry on sector 32 because the SolidWorks software would then stop working, which is the sole reason I keep the Windows partition.

MicroSoft recommends uninstalling the software which is not a viable answer.

  This is not Microsoft software!

  Flexnet Update Manager software application (formerly Acresso software
  updater).

  This application is installed with some third party software programs.
  It is supposed to automatically check for updates for these third
  party software programs.


Try installing Synaptiks from the Ubuntu Software Center and everytime the touchpad stops working access it through the dash. Please let us know if that will work.


Moving tabs in Chrome is clunky / awkwardly slow

Visit chrome://gpu/ in Chrome and see if hardware acceleration is enabled.

If it is enabled, try reinstalling Chrome or use Chromium Browser:

$ sudo apt-get install chromium-browser

To use hardware acceleration in Chrome, open a new tab, go to chrome://flags, search for Override software rendering list, enable it and restart Chrome.


As falconer pointed - just type whereis hddtemp and add full path to script. so its look like:

* * * * * date >> /home/pana/temperatures.txt; /usr/sbin/hddtemp /dev/sda >> /home/pana/temperatures.txt ;/usr/sbin/hddtemp /dev/sdb >> /home/pana/temperatures.txt ;sensors -A >> /home/pana/temperatures.txt ;printf "_________________________\n" >> /home/pana/temperatures.txt


If you log in from different screen sizes, byobu adjusts to the smaller one. If you want your big screen size back, Atl-F6 will close all connection but yourself.


Night Light not working on external monitor (through DisplayLink dock)

You can use Brightness Controller, a GUI frontend of xrandr, which supports multiple monitors.

sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt update
sudo apt install brightness-controller

Now you can select your primary and secondary monitor, and change their RGB color temperatures using the sliders. There is an option to save your current settings, which will be automatically loaded the next time you open the software. You can add the software to Startup Applications.
You might have to disable "Night Light" to use Brightness Controller, but it works as a substitute for Night Light.
For more details see https://www.omgubuntu.co.uk/2017/05/adjust-external-monitor-brightness-ubuntu


installation of paraview 5.4.1 version in ubuntu 16.04 lts

The supported version of paraview for Ubuntu 16.04 is 5.0.1. Of course you can try to install a different version manually, but you may encounter errors and it may be difficult or even impossible to install the package due to unmet dependencies.

To install a different version of paraview manually, follow these steps:

deinstall the current installed version:

sudo apt remove paraview

download the .deb package you want to install
to install it, click the .deb file or run

sudo apt install /path/to/package.deb

If you need to install a tar.gz file, follow these instructions: How do I install a .tar.gz (or .tar.bz2) file?

However, I recommend to stick to the supported version for your current Ubuntu release, you're on the safe side this way. If you want to use more up-to-date software you should consider updating to the current release 17.04 – it has paraview v5.1.2.


According to packages.ubuntu.com, Atril depends indirectly on a Javascript library (atril>libatrilview3>libwebkit2gtk>libjavascriptcoregtk). So no, I'd say Atril is not what you're looking for.


print output of two commands to same terminal

Instead of opening a second gnome-terminal just execute the two commands in the first one.

#!/bin/bash
gnome-terminal -e "bash -c $HOME/bin/bin_old/bk_up;$HOME/bin/bin_old/win_bkp;bash"

EDIT

From what has been discussed in the comments what Richard wants is something like this:

#!/bin/bash
$HOME/bin/bin_old/bk_up
if [ $? -eq 0 ]; then
    $HOME/bin/bin_old/win_bkp
fi

Basically it runs the first script and if runs successfully (without returning errors) it runs the second script.


How to make 'sudo' grab the password from a file?

sudo doesn't read password from stdin by default. From sudo manpage:

-S  The -S (stdin) option causes sudo to read the password from the standard input instead of the terminal device.
    The password must be followed by a newline character.

So you should run:

sudo -S apt-get update <~/passwd.txt

Keep in mind that storing passwords in files is not a good practice. You should read:

How to allow execution without using sudo?
How do I run specific sudo commands without a password?
How to run an application using sudo without a password?


Battery life greatly depreciated in 64-bit when compared to 32-bit

try installing powerTOP. Its an application by Intel, that analyses the syste,

open a terminal from Applicaions > Accessories > Terminal.

type in the following on the prompt:

sudo apt-get install powertop

enter your login password, and run it by typing
sudo powertop in the terminal after it installs, since it need to run as root. It will show you what things are squeezing your CPU.


Unable to install vmware tools and get VM full-screen

In order to get full screen, you need to install VMware tools.  Install VMware Tools from the VMware Workstation menu, and you are ready to begin the installation process.  The image below shows Reinstall, because the tools are already installed.  In your case it would be Install VMware Tools.


Upgrade to 18.04 from 16.04 still not available?

I went to Software and Updates > Updates, then set it to notify me of a new Ubuntu version for any new version.

Then I restarted. After that, the commands above worked for me.


19.10 installation media cannot access internal SSD (Dell Inspiron 15 5000)

Not entirely sure what I did, but I disabled RAID and I can now access the SSD. Please mark as closed. (I don’t know how myself.)


Can't use max resolution for external monitor “xrandr: Configure crtc 0 failed”

so as codlord suggested, just using cvt -r 2560 1440 instead of cvt 2560 1440 fixed the issue.


mouse/touchpad failure 16.04 on dell laptop

i think the problem is because your system is power of your devices, there are some cases where the system disables the usb ports,

you could give us more information about the system, what devices .
Please run :

lsusb, and put here your output, we can check if your system uses usb drivers for the keyboard and mouse pad.

if yes you can check the next answer

https://stackoverflow.com/questions/4702216/controlling-a-usb-power-supply-on-off-with-linux


No sound card detected on Dell Vostro 5568 (17.04)

It look like aplay detects a Alsa audio device  so the problem could be the Pulseaudio layer (which runs on top of Alsa audio driver layer) .

To reset pulseaudio parameters, run this command in a terminal:

mv ~/.pulse/  ~/.pulsebak

killall pulseaudio

then test.

Also you can install pavucontrol package ("pulseaudio volume control") to have more controls on pulseaudio.


Crackling sound and noise when using line in

Pulseaudio may be the culprit:
Use sudo -H gedit /etc/modprobe.d/alsa-base.conf
Search for:
options snd-hda-intel position_fix=1

and change it to:
options snd-hda-intel position_fix=2

Source: Crackling sound from microphone recently, in 13.04

If you are using TLP:
Audio
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1

Timeout (in seconds) for the audio power saving mode (supports Intel HDA, AC97). A value of 0 disables power save.
Hint: this setting can cause slight clicks in sound output.
SOUND_POWER_SAVE_CONTROLLER=Y

Y – powers off the controller together with the sound chip
N – controller active permanently


First remove all the nvidia drivers you currently have installed:

sudo apt-get purge nvidia*

Then install the correct, current drivers:

sudo apt-get install nvidia-current

Then reboot:

sudo reboot


you have a variable called $PATH in your bash. any executable that in in one of the folders displayed by

$ echo $PATH

can be executed by giving the name of the executable in any working directory:

$ eclipse

but if your eclipse is not in one of the paths in $PATH you either need to go to the directory where eclipse is and use

$ ./eclipse

or use the full path: e.g.

$ /opt/eclipse/eclipse

i usually create a launcher that i can drag to the bar on the left:

1) create a file with the contents (adapt the paths to your needs):

[Desktop Entry]
Name=eclipse 4.5 mars
Comment=
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
StartupNotify=true

make the file executable (e.g. with nautlius)
drag and drop the file (again, using nautilus) to the launcher bar.


Lost on installing Ubuntu on my laptop with an ATI graphics card

You are attempting to run sudo and nano before your system has even booted (grub is just the bootloader). Hit CTRL+ALT+F1 when reaching the log-in screen to go directly to a terminal instead of GUI.

You can then make said commands.


I accomplished it by moving my module to /lib/python3.7/site-packages/.


How to access an OS X keychain via Ubuntu

If you are not afraid of a small amount of scripting, there is a python wrapper for the security command with a short tutorial here.  I have never had to do this before, so I can't speak to its efficacy.


Script to dial 3g link in case network is down?

I'm not sure there's anything out there that could do this for you... However, you could, with a bit of scripting, a bit of Googling, cobble together a script that:

Every 10 minutes, pings google with a timeout of 2 seconds and only from your "fixed" connection (not the 3G one) (use the -I flag).
If the ping succeeds, and you're on the fixed connection, do nothing.
If you're on 3G and the ping over the fixed connection works, take the 3G adapter down.
If it fails, bring up the 3G adaptor.

Here's my quick attempt:

#! /bin/bash

CONNECTION=1

main()
{
    if ping -q -c 1 -w 1 -I eth0 google.com > /dev/null ; then
        echo "Connection is ok!"

        if [ $CONNECTION -eq 0 ] ; then
            # take the 3g connection down
            ifconfig 3GADAPTERNAME down
            CONNECTION=1
        fi
    else
        echo "Connection is dead! Long live the connection!"

        if [ $CONNECTION -eq 1 ] ; then
            # turn the 3g connection on
            ifconfig 3GADAPTERNAME up
            CONNECTION=0
        fi
    fi

    sleep 5
    main
}

main

Obviously replace 3GADAPTERNAME with your adapter's name. switch out eth0 if your main connection is different. Make sure it is set to automatically connect (so when it's allowed to, it does). The script will need to run as root.


19.04 / Virtual Box 6.08: manager screen fonts huge

This turns out to be a QT issue resolved by setting this environment variable:

QT_SCALE_FACTOR=1

Put it to .bashrc and all is well.


Can I add widgets to the new Unity lock screen in Ubuntu 14.04?

+1 on this: I'm currently working in an environment where you need to lock your workspace if you're not at your desk, but I have reporting stuff going to a second monitor. It'd be a neat workaround if I could just load a webpage as a widget so people could still see that even if my screen is locked.


Why i cannot comment with my Acrobat reader 9.5.1?

That is because Adobe Reader 9 does not have commenting features :)
Adobe Reader XI has commenting and highlighting:

Can I use Reader XI to add comments and highlights to a PDF file?
Reader XI is the first version of Reader that enables users to annotate PDF documents using a full set of commenting and markup tools, including sticky notes, a freehand drawing tool, and typewriter, highlight, underline, and strikethrough tools. You can also use Reader XI to participate in shared document reviews, with team members seeing and building on each other’s comments to speed up review cycles.

Source: http://www.adobe.com/products/reader/faq.html
Check this post for pdf commenting.


How do I apply an Indian language system-wide?

I want to add Indian languages system wide.

Here's how. Open Language Support from within Software Settings.

Click Install/Remove Languages and select the Indian language(s) you want to install, click Apply Changes.

Let the process finish.

Now you have to click and drag the languages you want (in order of preference) to the top of the Language for Menus and Windows box. It will replace the language that is highlighted in orange and push it down:

Click on "Apply System Wide" and set an appropriate keyboard input method if you need one.
Logout and then login.
It works!:


Easiest way to upgrade LibreOffice 4 to 5 on 14.04

I believe the simplest way would be to follow this guide.

Otherwise you can use the check for update menu:

https://help.libreoffice.org/Common/Check_for_Updates_1

edit:

sudo add-apt-repository -y ppa:libreoffice/ppa
sudo apt-get update && sudo apt-get dist-upgrade


Example of text entry in AppIndicator menu

Although the answer here is a little dated, based on a bit of Googling, sadly the situation has not changed.


LVM and dm_crypt with MAAS mounting issue

curtin documentation has a note saying...

Note: Encrypted disks and partitions are tracked in /etc/crypttab and will be mounted at boot time.

See the last section of the Dm-Crypt Command
https://curtin.readthedocs.io/en/latest/topics/storage.html#dm-crypt-command


I am using 64bit wine, when I need to run 64 bit windows program. All other cases I am using 32bit wine. The Playonlinux script can offer you a choice, whether to create 64bit or 32bit wine prefix. The base system is 64bit Ubuntu.


MPTCP installation and configuration on Ubuntu 14.04.2 LTS

I had the same problem some time ago. Make sure you select the MPTCP kernel on boot.


Why apache2 server does not working and when I check the status it shows the following ! :(

First, try using:

sudo service apache2 restart

if that doesn't work, try

sudo systemctl restart apache2

although if service didn't work, I doubt systemctl will to any better.

If those error out, try

sudo apachectl restart

and it will give you any errors that occur.

Note: If you just want to do a config test(without trying to start apache), use:

sudo apachectl configtest

Based on your comment, it appears that your apache install is corrupt. In that case, try:

sudo apt install --reinstall apache2

to re-install apache. This should not affect any of your virtual hosts, but it's still a good idea to back up(something like sudo cp -R /etc/apache2 /etc/apache2.old)


Proper way to restore user files/settings after an upgrade

Ideally, /home should be on a separate partition. Then, when you install, specify your partitions manually. Set up your home partition to live at /home and make sure you don't format it. Then, you should have everything set up fine.

If you don't have a separate partition, you can use GParted to resize your partition and create a /home partition (which should usually be the largest partition) as ext4 or ext3. Then, copy everything in /home to the new partition and set up fstab.

# Assuming that the new partition has been created
# and formatted as ext4 and is known as /dev/sda2.
sudo mount /dev/sda2 /mnt
sudo cp -av /home/* /mnt  # The -a option is really important here; if you forget it, things will break.

# Verify that everything was copied correctly; then...
cd /home  # Make sure that nothing is using your home directory--not even the current working directory.
sudo rm -r /home/*
sudo umount /mnt && sudo mount /dev/sda2 /home

Then, add the following line to /etc/fstab:

/dev/sda2    /home    ext4    relatime    0 2


Ubuntu 15.10 on VM can't boot up after update

I have been experiencing the exact same issue - I managed to get the VM to run by booting it with an older kernel.

To do this, hold down the shift key while booting, the Grub menu will then be displayed. You now have the option to boot from an older kernel.


Can't install the Ubuntu SDK due to broken qtcreator-plugin-ubuntu dependency

First install aptitude package by running,

sudo apt-get install aptitude

Then install ubuntu-sdk through aptitude,

sudo aptitude install ubuntu-sdk


How do I remove Ubuntu from my computer completely, so it is just a blank PC?

You can just wipe your harddisk. There are many tools free or paid for that, you can google it.

But I'm gonna here give you two choices:

Use Gparted Live CD then delete all partitions
Use Ubuntu Live Cd and write zeros to the HDD using dd command

sudo dd if=/dev/zero of=/dev/sdX

Replace X with yours


Why is 'gvfs-mount' not working after a force stop

Ctrl-Z stops a process, does not terminate it. Than means that if a process has any file "locked" or any resource reserved in a kind-of exclusive way, it will not release them for other process to use. When you terminate the process (in a normal way(1)) the system will clean up after it, and the resources will be available again.

To terminate a process you use Ctrl-C. Sometime Ctrl-C will not work; you can try then Ctrl-\ or, if even this does not work and you need to use Ctrl-Z (it happens), then you have to kill it:

kill %1

(the number 1 is the number in brackets you see before the "stopped" message).

You can even continue the process (with fg %1) or send it to background (with bg %1). Search for "bash job control" for more information.

Footnotes:

(1) this is why it's better to use kill -9 as a last resort only, after trying a plain kill.


have you tried this winetrick :

winetricks jet40 mdac28

It is like a add-on that is used in wine to support I think some VB and Database connectivity Features


How to clear history on a WebView component?

This is not an answer yet, but I'm making it into a wiki in the hope that someone can complete it.

You may want to look at QtWebKit.experimental.  If you add import QtWebKit.experimental 1.0 to your QML files, your WebView objects gain an experimental attribute that gives you access to all sorts of super powers.  Of particular interest to you are probably experimental.navigationHistory.backItems and experimental.navigationHistory.forwardItems, which provide models for the two halves of the navigation stack.  I've never used them, but I did find this example that may help.

Unfortunately, the source seems to indicate that these are read-only objects, so you may not be able to clear them from QML.


How to configure jenkins using juju charm

The jenkins charm externalizes config for a few different things... including plugins.  You can see the current set of configurable bits, as well as their default values, on the config page.

You can set these at deploy-time:

juju deploy --config myjenkins.yaml jenkins myjenkins

where myjenkins.yaml has something like:

myjenkins:
  password: mypassword
  plugins-check-certificate: no
  plugins: greenballs javadoc

(the myjenkins service name has to match what you named the jenkins service when deploying with juju).

Alternatively, you can change things after you've deployed via something like:

juju set myjenkins plugins="greenballs"

The service should pick up the latest version of the plugin from the url specified in the plugins-site config param... defaulting to updates.jenkins-ci.org.

Note that some plugins (like maven-plugin for example) are really part of jenkins core, so the plugin version has to match the jenkins version exactly. The latest plugin version that the charm pulls won't necessarily match the installed version of jenkins... which can cause problems. I got around this by specializing the jenkins charm to pull some core plugins with matching versions, but perhaps a better way would be to use a separate plugins-site with only a single version of the plugin.


AMD/ATi driver boots with no Unity/GUI display 12.10

This is known bug. Kernel supplied with 12.10 install disc won't work with AMD driver.

You can probably run terminal Ctrl-Alt-T

Remove and purge AMD driver. After restart you will work with Mesa driver.
instructions here
Update ubuntu to the latest kernel. (Perhaps you already have latest version as you did updates)
Install latest ATI driver downloaded from AMD website.
(important -  this is where most people fail ) Before reboot do
sudo aticonfig --initial -f


How do I stop a daemon when the user logs out?

You can stop the daemon using a bash script which executes at logout

Add the following line in lightdm.conf

session-cleanup-script=<path-to-logout-bash-script>

lightdm.conf can be found at

/etc/init/lightdm.conf

or
/etc/lightdm/lightdm.conf

This might do the job


Out of curiousity, I decided to just restart CUPS

sudo service cups restart

Works. Well, might as well share to everyone.

NOTE: Read question update for why this is a temporary fix.


No programs can't be downloaded / installed with terminal

use this command to open your source list:

gksudo gedit /etc/apt/sources.list

in the opened file, uncomment (remove #) main, universe and multivers repository links. lines should be something like this (in xubuntu 16.04 for example):

deb http://archive.ubuntu.com/ubuntu/ xenial main universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial main universe multiverse

after that, save the file. in terminal run the following commands:

sudo apt update

then try to install firefox or anything else.


Microtek ScanMaker 3880 drivers for 10.04?

The SANE-Project website says it is not a supported product.
The SANE project is an OpenSource project providing support for Scanners where the manufacturers have not.

Good vendors such as Epson and HP provide scanner support.  You'll notice Microtek on their website provide support for Windows and to a lesser extent Apple Macs.

Double check that your scanner is actually the USB device that they say is not supported - details of how to do this are via the linked web-page.

The only alternative I can think of is to use VirtualBox + Windows + VirtualBox Guest Additions to connect the USB device to the virtual guest.


Samba installation failed on ubuntu 12.10

Run:

sudo apt-get install --fix-broken && sudo apt-get autoremove && sudo apt-get update && sudo apt-get install samba

  If it doesn't succeed , then remove those particular packages which dependencies were unmet :

sudo apt-get remove samba-common libwbclient0 tdb-tools

  If it doesn't succeed, then you have to do some manual operation.

samba-common (= 2:3.6.6-3ubuntu4) does not exist on the Official Ubuntu repository for Ubuntu 12.10. you could have used a Old repository that containing samba-common (= 2:3.6.6-3ubuntu4)

So you have to find that repository by

apt-cache policy samba-common

In the results, firstly mentioned PPA is the one that causing problems.

You need to find weather it is a Worth repository or Useless. That means weather it has installed a Important Package that you have installed. For that, run :

aptitude search "?origin <ppa name> ?installed"

** Replace <ppa name> with Name of the PPA (Omitting ppa:)

This will list the packages which have been installed from that PPA.

  Then, If it is a worth repository that containing other Important package, You have to do
  pinning.

For that run:

gksudo gedit /etc/apt/preferences

Add following lines to the file and Save.

Package: samba-common
Pin: release o=Ubuntu
Pin-Priority: 200

Package: samba-common
Pin: release o=LP-PPA-<ppa name>
Pin-Priority: 100

** Replace <ppa name> with name Of the PPA (Omitting ppa:)

Then, Try to install again.

  If it is a Useless PPA, remove the PPA and then update.

sudo add-apt-repository --remove <PPA Name> && sudo apt-get update

Then try to install.


The battery has probably bit the dust, if you unplug from AC power (a wall outlet) and the computer shuts off immediately or relatively fast (within a few minutes) you can assume the battery needs replaced with relative certainty.


Java HotSpot(TM) Server VM warning: You have loaded library [...].so which might have disabled stack guard

Just attempted to correct this issue on my server.
Did the following:

sudo apt-get update
sudo apt-get install prelink

then ran the execstack command only to be told the file doesn't exist

Manually checked the /tmp directory and the file does not exist so it wasn't a path error.

How a file can be loaded that doesn't exist is a puzzle unless it was loaded during a java update and then erased....


List files in system paths that are not tracked by package manager system

I found a simple way to check if file is tracked by package manager dpkg -S.

$ fdfind . /usr -tf -x dpkg -S >/dev/null
dpkg-query: no path found matching pattern /usr/sbin/ttyd
dpkg-query: no path found matching pattern /usr/share/dispsetup.sh
dpkg-query: no path found matching pattern /usr/lib/libsysev.so

or the same

$ find /usr -type f | xargs dpkg -S >/dev/null


Can I install Portage, Pacman or other package managers on Ubuntu?

You don't. A package manager is central to a specific distribution. Gentoo, Arch, Redhat -- they all use different packaging systems. Gentoo's portage packages usually compile from source, Arch uses its own binary package format, Redhat uses RPM as packaging system -- and Debian as well as Ubuntu and Linux Mint use Debian Packages (.deb). Managing your local installation takes place using graphical frontends like Synaptic and Adept, or command-line tools like apt-get, aptitude and dpkg.

Though it is possible to install other package managers on Ubuntu (else they wouldn't be in the repositories), this is not to be recommended for the unexperienced user. One should be quite familiar with packages and package managers, how they work, etc. before even thinking about using them alongside. Otherwise it is very likely to end up with a very broken system -- as one package manager is not aware of the others, they would e.g. overwrite each others files/configurations, uninstalling a package with one package manager could break dependencies with the other, and more.

So for now I'd strongly suggest you stay with the package managers native to your system (see above).


How to make PCL Library and Python-pcl run on Ubuntu 18.04.2?

Try this version I back-ported from disco (using libpcl 1.8.1 from the Ubuntu repo):

sudo add-apt-repository ppa:sweptlaser/python3-pcl
sudo apt update
sudo apt install python3-pcl

After you've done that then you should be able to run:

python3 -c 'import pcl'

and it will return with no error (as opposed to ModuleNotFoundError: No module named 'pcl').


Do not use the pip command directly, because it's ambiguous which instance of the Python package manager this command is referring to under some circumstances. I think it will be the one you installed/upgraded last.

You should preferably call it as a Python module instead, like one of these, depending on whether you want pip for Python 2 or 3:

python -m pip
python3 -m pip

That way you can always be sure you get the package manager for the right Python installation you want.

To e.g. install numpy for Python 3, you would now run

python3 -m pip install numpy


Other devices in the battery power indicator?

I have 2 Logitech wireless mouse (mice ?). One of them (an old model) shows the battery level on the indicator. The other one (newer) doesn't.

I'm really not sure what makes it work or not, or how. But I can tell you it actually exists :-)


Follow this link https://github.com/JP-Ellis/tikz-feynman/issues/34

  Just a final comment in case someone has a similar problem: I've
  installed texlive/2016 from another report and still not cigar.
  Finally, saying sudo apt-get remove pgf did help. There is some
  package confusion inside ubuntu, whereas it seems that wrong pgf was
  being picked up.

slosar commented on Nov 3, 2016