BIOS contains WGDS but no WRDS, Ubuntu 19.04 I have been getting this weird error when I put my laptop to sleep and then waking it up after a while. This error forces me to force reboot my computer in order to restart my computer. However wifi and ethernet works fine so I am not sure why this error appears. It usually appears when I put my laptop to sleep and then leave the network then reopening it in my home using my home network.

When I last checked this error is from iwlwifi. Below is the return from the command dmesg | grep iwlwifi

My wifi card is Intel Ac 9560

00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)

Bug 205513 - iwlwifi: Change log level of "iwlwifi 0000:6f:00.0: BIOS contains WGDS but no WRDS" to "info" has been fixed in Linux kernel.
From the ticket:

We have investigated the issue and it turns out that the reference
implementation of the BIOS recommends having WGDS set to NOP values
when WRDS is not included.  This is what is causing the problem in so
many platforms.  The error message itself is harmless, so I'm going to
reduce the logging level as suggested.

I had same error,

you can fix it by disable nouveau from the rescue mode with same USB bootable and install graphics card driver
and install WiFi driver then update grub, and it will boot normally


Ugly shadows around applications When I updated to 11.10, I thought that any problems would be solved and all graphical glitches would be better. After upgrading, my whole system got borked, and everything looked ugly. I ended up fixing most everything, but for one thing.

The shadows for any application is ugly. It is hard to describe, so I hope the picture helps.

Notice the odd shadows.

They also are common after closing a window or moving it to a different workspace

I know this is a small problem, but it still bugs me. Any fix for it?

I thik it's the 'Blur' effect in CompizConfig Settings Manager. A few days ago I tried to add blur to my transparent Menus and ended up in having this nice shadows (that reflect your Desktop but mirrored vertically). Try disabling the 'Blur' effect and see if the shadows disappear.

Oh boy. I'm sure there's a way to disable shadows somewhere, if I find out how I'll let you know. For a temporary fix, when you are logging in, click the cog icon next to your name and select Ubuntu 2D.


How can I view stdout/stderr of a startup application? Some of the commands that I have in Startup Applications do not start properly when I login. (In particular I am having trouble with gtk-redshift.)  In order to debug, I would like to be able to view stdout/stderr.  I haven't found a log file for Startup Applications.  I have tried redirecting to a file using ">> log.txt" with no success.

How can I see stdout/stderr for a Startup Application?  Better yet, is there a log file for Startup Applications?

I think the best thing to do would either put the bash command further below in startup or put it in a bash script and select that in your startup applications. I have added the -v option so the application records all its actions with the greatest of detail; some applications have other verbosity settings and even various levels that you can specify.

The &> redirection used is the same as 2>&1 in that it redirects all of the program's output (stderr, stdout) to the specified file, i.e. &>/home/mike/redshift.log.

Here is the command that could be used to set up logging, and it could be used for other programs, if modified appropriately.

bash -c "setsid /usr/bin/gtk-redshift -v -l 40.77:-73.9 -t 6500:5500 &>/home/mike/redshift.log"

These are just sample test settings, substitute these values for your own; you may want to put the command, modified appropriately in a bash wrapper for your startup entry as the above command-line is quite long.

An excerpt from the log created at /home/mike/redshift.log:

Gamma ramp size too small: 0
Failed to start adjustment method randr.
Trying next method...
Location: 40.770000, -73.900002
Brightness: 1.00
Gamma: 1.000, 1.000, 1.000
Using method `vidmode'.

The log continues and should give you the information you need. Some programs such as vlc do have options that you can set up so their logging can be sent to syslog, but I prefer that each program has its own separate log.

Please check /var/log/syslog. Its common for all the applications.


How to run Windows XP inside Ubuntu There are several programs only available on Windows.

Wine can be a negative experience, so I want to run Windows inside Ubuntu using a virtual machine. It seems that Virtualbox is the standard way, but I don't have any experience with it.

I use Virtual Box and it works great.
It's pretty simple to use.  After installation, just click the "New" button in the toolbar, and a wizard will walk you through creating the VM.
Afterwards, click "settings", go to "storage" and mount the installation media (either as an .iso or the physical drive itself).  Click "ok".
Now you can start the VM and it should allow you to install the OS.
Here is an introduction article on virtualization on workswithu.com.  Click on the tags at the bottom of the article for even more info.

Oracle VM VirtualBox is a program that allows you to create operating systems on virtual machines, i.e. to use Windows programs on Linux. If a program doesn't work under WINE, for example, it will probably work in its native environment, Windows. Using VirtualBox would be a better and easier alternative than installing a separate partition for Windows on a Linux machine.


How do I install linux headers when I am getting a "has no installation candidate" error Primary Problem

I am unable to run any virtualization software. Namely Vmware or Virtualbox. Since both of them asks me to install (or produces some error which pints to ) installing build essentials and latest linux headers.

So my problem starts with the following problem

When I try to update using

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

What I get is

  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Package linux-headers-3.13.0-45-generic is not available, but is referred to by another package.
  This may mean that the package is missing, has been obsoleted, or
  is only available from another source

  E: Package 'linux-headers-3.13.0-45-generic' has no installation candidate

When I try to determine what I have by running

apt-cache search linux-headers-

I get

I have tried most of the things that I could find in Google and nothing quite helped.
Hence hoped to find some solution here.

13.13 seems to be an old kernel from trusty? Whereas 3.16 is the kernel shipped with utopic.

If you ran do-release-upgrade lately, and you still use the old kernel be advised that all your old repositories ( where the old kernel headers reside) are disabled/cleaned from /etc/apt.

Usually doing a release upgrade bumps the kernel minor by at least 2 versions ( from 3.13 to 3.16, and with vivi to 3.18).

You have 2 options at this point. Either go with the new kernel, and install the headers for that, and then rebuild missing drivers, or readd the repository list to apt from the old ubuntu distro, and install the missing headers.

I WORK AROUND THIS ISSUE USING A PREVIOUS KERNEL!

user283885 is offering good solutions.

I try other (previous) kernel.
You may try a newer or previous kernel (from the ones available in the apt-cache list 3.16*).

Here is the test i made:

My actual kernel: 3.13.0-45-generic
uname -a
Linux pc-01 3.13.0-45-generic #74~precise1-Ubuntu SMP Thu Jan 15 20:21:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Reboot and select 3.13.0-44-generic (a previously installed kernel)

Then i install linux-headers-3.13.0-44-generic, virtualbox-4.3 and DKMS

After that i run the command to enable the driver
/etc/init.d/vboxdrv setup

All works fine for me!
(Thak you David Foerster. I try to make my post more easy to understand now).


iscan doesn't work with Epson WF-3520 I'm trying to use iscan to scan some documents from my printer epson WF-3520. The problem is that if I try to run iscan program I get the following message:

Could not send command to scanner.
Check the scanner's status.

I already tried to open it from terminal: sudo iscan and I get the same result.

I am able to use the program Simple Scan to scan through my printer but only using the flatbed. If I try to use the document feeder the program freezes and the printer goes crazy forcing me to restart her. Also Simple Scan lacks many of the functionality of the iscan.

For the record.
My scanner Epson Workforve WF-7610 was not recognized by iscan yet xsane recognized it.

sudo -u saned scanimage -L

returned

device `epson2:net:192.168.1.30' is a Epson PID 08B9 flatbed scanner

but it did not work.
It used to work flawlsssly with the same configuration BEFORE upgrading to 17.10.

My workaround:

Commented epson2 and epson in /etc/sane.d/dll.conf . I added epkowa.
epkowa.conf has the correct net ip.
I copied epkowa drivers to correct lib folder

cp /usr/lib/sane/libsane-epkowa.* /usr/lib/x86_64-linux-gnu/sane/

I was able to use the name of the printer in the /etc/sane.d/epkowa.conf file.

For example net EPSON0xxxx.local instead of an IP address.


What are the differences between snaps, appimage, flatpak and others? I have been getting this question lately from students and although I have a lot of information to offer, I have not found a source that I can point people to where they can read an update answer (I have found a lot of misinformation and obsolete information). So, some of the questions I have for package formats like snap, appimage, flatpak and others in this evolution of universal packaging systems are:

Who created the package format?
What features does it offer?
What features are unique to it? (That the others do not yet have)
Who supports it?
What Distributions use it?
What focus does the package have? (For Desktop, Clouds, Mobile, etc..)
Which are more actively developed?

Here is a long tabular comparison of AppImage vs. Snap vs. Flatpak features. It is from the AppImage Wiki on GitHub:

https://github.com/AppImage/AppImageKit/wiki/Similar-projects#comparison

Note that this comparison is mainly from the perspective of AppImage, although it tries to represent each project fairly.

do not forgot the main thing, is it Open source ?
AppImage
Open source Client ✅ Yes
Open source Server ✅ Yes
Snap
Open source Client ✅ Yes
Open source Server ❌ No
Flatpak
Open source Client ✅ Yes
Open source Server ✅ Yes


How do I mv or cp a *.u1conflict file Ubuntu One is putting files in conflict while I'm working on them. The original file is gone and only the conflict file remains. To make matters worse, I can't mv, cp the file to the original name. If I delete the conflict file I'm unable to create a new file with the original name.

How do I rename the file, and how do I prevent U1 from messing with my files that are in use?

Just change to the directory of the file and rename it to the original name without the .u1conflict extension.

or

If that doesn't work, turn off ubuntu one sync then change it.

Moving the file should be easy enough.


Help removing ubuntu 12.10! I have Ubuntu 12.10 on my laptop, no Windows.

I have my system disks and tried to do a system recovery and it won't allow me.

I've tried creating a boot disk and doing the "try ubuntu" and installing the OS uninstaller.

My laptop freezes up in this process.

Any other suggestions on how to remove ubuntu and reinstall my windows vista again?

Just get Windows Vista DVD.
Boot into Disk (Check mobo documentation for booting into dvd).
Follow on screen instructions provided by Windows Vista installation interface.
When comes to partitioning Hard Disk - Delete all partitions and install a fresh copy of windows.

You could also use Gparted - partitioning tool ( on normal or failsafe mode ) , it's just amazing !

You could do all the operations on manual( advanced mode), with Gparted you could even create the future EXT4 partitions on which you plan to reinstall Ubuntu, you need a / partition (I'd give atleast 20 GB ) a  /HOME partition (or use the one you already have) and a SWAP partition( I would size it to 1 GB).

English being my third language I didn't noticed that you plan to dump Ubuntu :) . I had some issues with my toshiba laptop ( and the shitty i3 integrated everything)  and previous ubuntu versions but I'm all excited about the new Ubuntu 14.04 and hope that the drivers would work better and my laptop would stop behaving like a fan :)


Free Ubuntu to Windows 8.1 Remote Desktop for Small Business I would like to know if anyone has some recommendations for remote desktop software that would allow me to control my laptop (Ubuntu 16.04) at home/in the field to my workstation running (Windows 8.1) commercially.

Ideally it would be free, but if paying for it means better quality, I might be able to scrounge up some personal money for a license, or hopefully get my company to pay for it.

I apologize if this has been asked before.

Assuming both machines are in the same network

you could easily open an RDP session from your Ubuntu host to control the Microsoft machine using remmina.

Remmina project page

Free would be to use a VPN to connect to your local network and then use a VNC like tightvnc or any other.

Commercially, I have used Teamviewer. It works on Linux and Windows. If you are not using it on other computers owned by clients and don't have a bunch of synced computers, you don't have to pay for it. It just gives you a windows asking you to play nice. It has great video compression too.


Disable Touchpad While Typing does not work I already checked that Option in the Settings but it won't work. I also searched for solutions in this site but none of those work. What should I do?

This command worked for me (1 is the number of seconds to wait after the last key is pressed before re-enabling the touchpad, change it to whatever value you desire):

syndaemon -i 1 -K -d

Just add it to Startup Applications to make it work after reboot/shutdown.
To see more options type this command in a terminal:

syndaemon --help or man syndaemon

To add an extension to all the answers already provided...

Primarily:
syndaemon -i 1 -K -d

The only problem with this command is that once the system is reset, the code will basically be undone.

Therefore I would recommend creating an Alias using this command that way even when the system restarts, you can simply type a command into the terminal and have the code automatically execute from the prompt.

I personally did this using 'keystop' as the command name to implement this code. However you can use whatever name you choose, just follow the steps below. (Substituting keystop for whatever name you choose for the command)

** Keep in mind that whatever command name you choose must NOT be in use!

Here is how you do it:

Open Terminal
Type alias keystop='syndaemon -i 1 -K -d'

Thats it!
From now on, whenever you restart your system -- Simply open the Terminal and type keystop and the code will execute!


Boot much slower after partition resize I'm on Xubuntu 15.04. I have been running quite happily for several months on a 250GB SSD: <5s boot time. I just swapped to a 500GB SSD (same brand, slightly different model). After initial cloning using CloneZilla (ie all partitions identical sizes), everything was fine. However, after resizing the home partition (and moving the swap), the machine takes about a minute to boot. Not just first boot either, also on second.

Any ideas on what could cause this? And more importantly how I can fix it? Or even just links on debugging the boot process, I've never had cause to do it before.

EDIT: I'm wondering now if the boot slowness is unrelated. Looking at dmesg, this is the context of the long wait, and it looks like it could be network related:

[    7.107228] audit: type=1400 audit(1435867488.135:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince" pid=501 comm="apparmor_parser"
[    7.107245] audit: type=1400 audit(1435867488.135:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="sanitized_helper" pid=501 comm="apparmor_parser"
[    7.107248] audit: type=1400 audit(1435867488.135:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer" pid=501 comm="apparmor_parser"
[   97.089574] r8169 0000:03:00.1 eth0: link down
[   97.091147] iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
[   97.098628] iwlwifi 0000:02:00.0: Radio type=0x0-0x0-0x3

Looks to me like a 90s wait for the network :-(

Problem solved! Because I moved the swap partition, it had changed UUID. The mismatch in fstab caused the delay, it seems. Found the answer here:
Very slow boot with Ubuntu 15.04

Find/generate the UUID for swap. or simply blkid | awk -F\" '/swap/ {print $2}'
Update the /etc/fstab file. Use the UUID you just got.
Wrong UUID under /etc/initramfs-tools/conf.d/resume. update it or leave it as empty. RESUME=UUID=.... Better to not leave it as empty since it'll cause warning when doing apt-get upgrade.


What to do if I upgarde to the latest version and the only available kernel does not work? So I have a 2005 one-core Acer, was great at the time but old now. Ubuntu has kept this thing moving forward working very well, however the latest two versions have been heavy on it. Most importantly the last one I downloaded worked relatively fine but as I installed updates and kernels those didn't work.

Example:
Kernel 3.2 works fine but the newer 3.5 don't even load up. My question is i I download the latest release and it gets rid of 3.2 and the new one doesn't load up how would I manage getting an old kernel up on the GRUB or put in an older version of Ubuntu.

Thank you and sorry for being so novice at this.

Unless you manually deleted the old kernel, you will still have these on your machine.

Hold down the Shift key as you boot up and it will take you to the Grub screen. From here, you can choose which version of the kernel to boot into.

If you really don't need the newer ones you can find which kernel you're currently using by going to the terminal and running

uname -r

to see which kernel you're using. Then run

dpkg -l | grep linux-image

and note the kernel versions you don't need anymore (anything starting 3.5 I guess but if the kernel you're running works fine, you can get read of all the others). Then you can run

sudo apt-get purge linux-image-3.5.x-xx-generic

That should free up some disk space for you too


Ubuntu Software Center doesn't work I am new ubuntu user. I wanted to download Google Chrome, but something happened and now when I go to Ubuntu Software Center it is automatically closed after 1 second. Then I see the error:

  E: The package google-chrome-stable needs to be reinstalled, but I can't find an archive for it.

Use

sudo dpkg --remove --force-remove-reinstreq google-chrome-stable

This might do the trick


How to apply a php bug patch I want to uptake fix for this PHP Bug: https://bugs.php.net/bug.php?id=52043

I am not sure on how can I install this patch. Conceptually I understand I need to follow following steps:

get php code & GD module code
apply code fix or patch to code
compile
reinstall using compiled files

But I have never done these steps before, so I am not sure about commands for any of the above steps.

Can someone elaborate on this process. I am using Ubuntu 12.04 32-bit, and this bug is blocking me from using GD module with php.

Also is there a tool or script to do the complete patching process in an automated way?

you have to copy/paste the patch code from bugs.php.net/bug.php?id=48886 in simple text file lets say php.patch then unpack php tarball and in the same directory issue the command above. Notice that that patch works well only for php version 5.3 with any other php version you can meet some problems

This is  the command you have to use .

patch -p1 < /path/to/patch/file

credit goes here:www.webhostingtalk.com


Python reinstallation --enable-unicode=ucs4 and lxml undefined symbol: PyUnicodeUCS2_DecodeLatin1 I'm using Ubuntu Server 14.04. I needed for my new django project to compile python with ./configure --enable-unicode=ucs4 option. I reinstalled python with ucs4.

Now when I'm trying to run scrapy spider, I get an error like this:

ImportError: /usr/local/lib/python2.7/site-packages/lxml-3.4.2-py2.7-linux-x86_64.egg/lxml/etree.so: undefined symbol: PyUnicodeUCS2_DecodeLatin1

I tried to reinstall python again but got an error:

Compiling /usr/local/lib/python2.7/zipfile.py ...
make: *** [libinstall] Error 1

Then I tried to reinstall libxml, but that throws an error too:

/usr/bin/ld: /usr/local/lib/python2.7/config/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Scrapy reinstallation doesn't help.

How can I fix it?

I solved it.

I deleted manually the directory containing the python dist which causes the error.

sudo rm -R /usr/local/lib/python2.7

Then I reinstalled python, scrapy and django manually from a source.


Convert existing internal hard disk into network attached storage How can I setup an internal 3.5" SATA hard disk, with existing data on an ext4 partition, so that I am able to access the data on WLAN?  What product should I be looking for to turn the bare drive into some sort of NAS?

Background: my desktop machine has recently given up the ghost, I think the motherboard has finally died after many years of faithful service.  I am not in a position to buy new RAM / CPU / motherboard and the old one is probably too old to replace (I was running a Core 2 Duo on Gigabyte EP-35).

I am thinking I can get by with just my laptop for a few months, but I do need access to the data on the hard drives which were in the desktop machine.  It is a pair of WD green 3.5" sata drives, one 2TB and one 3TB.  I want to avoid having to reformat the drives if at all possible.

Qnap is renowned for its good quality NAS. Synology is considered a good alternative. Usually all these NAS have linux inside. At the very least they support samba sharing (but they usually support a vast plethora of protocols) so you shouldn't have any problem accessing them from Ubuntu.

You just have to check the specs about ext4 file system. Older or very entry level NAS might not support that.

Looking at Qnap entry level 2-bays product I can say they support ext4. The same goes for the Synology counterpart.

Which one to pick mostly depends on your budget. Don't worry too much about Ubuntu compatibility (99% of them support Linux), just make sure -looking at the specs- that ext4 is supported.

Also, if you take a 2-bay NAS to access both drives at the same time, remember NOT to set any RAID between them. You want to access them individually. Once you have backed everything up you might consider setting up a RAID (not advisable with drives of different size though).

Why are you going with a nas? Get a cheapie sata -> usb dock (for easy swapping between the drives) and attach it to your laptop.


play sound on different outputs, based on what display its the "player" is displayed on? Is there any way to play sound on different outputs, based on what display its the "player" is displayed on?

E.x if its played on the computer screen it uses analog output, but if its displayed on the hdmi tv, it uses the digital output

ubuntu 14.04

You need to setup Multiseats(https://wiki.archlinux.org/index.php/xorg_multiseat)
i got it semi working, know that its possible, what you need is 2 pulseaudio daemons.
Im sure you could do this with other soundmanagers than pulseaudio.


How to resolve the "Failed to download repository" error? I've tried to update but then I got this error

Here's the error information in that box:

W:GPG error: http://extras.ubuntu.com precise Release:
The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>,
W:Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/source/Sources  404  Not Found,
W:Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found,
E:Some index files failed to download. They have been ignored, or old ones used instead.

And my Internet connection is working fine.

After trying

$ sudo apt-get install ppa-purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
ppa-purge is already the newest version.
The following packages were automatically installed and are no longer required:
  language-pack-zh-hans language-pack-kde-en language-pack-kde-zh-hans
  language-pack-kde-en-base kde-l10n-engb kde-l10n-zhcn
  language-pack-zh-hans-base firefox-locale-zh-hans
  language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo ppa-purge ppa:unity-team/hud
Updating packages lists
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/source/Sources  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/unity-team/hud/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning:  apt-get update failed for some reason
PPA to be removed: unity-team hud
Warning:  Could not find package list for PPA: unity-team hud

I've tried

$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.v6Ucus0B10 --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
gpg: requesting key 3E5C1192 from hkp server keyserver.ubuntu.com
gpg: key 3E5C1192: "Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

And then started the same procedure but of no use.

I had same issue,
so here what I did to solve it:

Open Software Sources from dash
Switch to other software tab, uncheck the codes that are causing the issue, in my case it's http://ppa.launchpad.net/myunity...

then run the following commands:

sudo apt-get clean
sudo apt-get update

and you should be able to run updater

I think I found a easier way that works for my Ubuntu 12.04 64bit in Toshiba c660 2e3.
I have followed the following command:

sudo apt-get clean
sudo apt-get update

This showed me that my PPA wasn't updating which was halting every other update as well and was showing a red triangular alert sign.

So I went to software updater, unchecked both PPA and kept only the Canonical one which then after refreshing started updating properly again. Also I chose the most acceptable mirror of my area.


NO_PUBKEY error while upgrading from 12.04 Fetched 72 B in 23s (3 B/s)
Reading package lists... Done
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192

Try to remake the bootable usb and make sure its formated Fat32 not as NTFS.Oh and sometimes people download the iso from torrents and CNET where most of the  times they face problems as for example not valid keys incomplete packages ect.So make sure you download the iso from the official ubuntu page (which is the link below) and make sure u make the bootable usb the right way.Btw sometimes this could be caused by the software you have used to create the bootable usb,most of the people use Rufus and it works like a charm but you could even use something else like Win32 Disk Imager or UUI(Universal Usb Installer).I hope this helped

The official download page for the iso you need
https://www.ubuntu.com/download/desktop


Ubuntu not loading - kernel panic Installed Ubuntu on new laptop with Win8.1 installed from USB key.
Worked fine and could dual boot.
Installed updates and rebooted when instructed
Got following message when booting into ubuntu:

Kernel panic - not syncing: fatal exception in interrupt
drm_kms_helper: panic occured, switching back to text console

(does not switch back and just hangs)
Reinstalled ubuntu but exact same happened although new version was installed on new partitions
Windows 8.1 loads fine
How do I fix?

I have  felt exactly the same problem. If windows 8.1 (or any operating system along which you wish to run ubuntu) recovery is available, than try installing ubuntu as the only operating system for your  laptop.


How can I keep Firefox notifications on the notification center on Ubuntu 18:04 Every time the browser sends me a notification, it only lasts for a moment, then it disappears. I would like to make them disappear by clicking on them (whatsapp web notifications, for example).

Desktop notifications can be made temporary by the app (the site) that creates them. I know for sure that GMail does that (at least to the present date). You can find a working example here that creates a notification that does not disappear.

On the other hand, I'm trying to figure out why the notifications created in this way don't show the dot next to the date, in the Gnome panel.

The notification only disappears after you move your mouse or type something. If you go away from your computer the notifications will still be showing when you come back.

For notifications that have disappeared you can click the date on your top bar and it will show a list of the last few notifications so you can read them again. You will see a dot next to the date when there are new notifications.


Key uses weak digest algorithm I'am getting this kind of message while updating my ubuntu 16.04 LTS:

W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1)
W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 3B068FB4789ABE4AEFA3BB491397BC53640DB551 uses weak digest algorithm (SHA1)

Can anyone help me?

Please note that we intend to shut off SHA1 completely on January 1, 2017.

Google Chrome's repositories is half-broken since March 18th 2016. So it is issuing the warning.
The problem with the Google source is on Google's end so apt-get is just reporting the issue as a warning. This issue does not stop you from upgrading packages.

You can find the list of all broken and half broken repositories here.

You need to follow sudo apt-get update with sudo apt-get upgrade to see if any package upgrades are available.

I have same problem.

try to uninstall chrome then download and install from website. after you reinstall the problem will gone.

This work for me on Ubuntu 16.04


Can I trigger a mouse double click, by holding down the primary button, after a delay? Can I change setting so that the the mouse double-clicks by holding down the primary mouse button?  I do not want hover-click.

It's easy if you're willing to modify one little line in the source ;)

Get the mousetweaks source (apt-get source mousetweaks)
Get its build dependencies (sudo apt-get build-dep mousetweaks and then sudo apt-get install build-essential dpkg-dev fakeroot)
Inside the file mousetweaks-3.4.1/src/mt-main.c, around line 375 (may differ for you) find this bit:

static void
mt_main_do_secondary_click (MtData *mt)
{
mt->ssc_finished = FALSE;
mt_main_generate_button_event (mt, 3, CLICK, CurrentTime);
}

Change part in parentheses in the bolded line to (mt, 1, DOUBLE_CLICK, 40)

This modifies the code so that the "simulated secondary click" becomes a "simulated primary double click" instead ;)

From within the mousetweaks-3.4.1 directory, run dpkg-source --commit, and name your patch anything (it doesn't matter)
Then run dpkg-buildpackage -us -uc and wait for a bit...
You will find the appropriate mousetweaks*.deb file in the parent directory. Install it with sudo dpkg -i, enable the "simulated secondary click option, set the time, and enjoy! (note: the double-click occurs when you release the held button...)
Please add in the comments if you have any problem modifying/building the package.

Go to System Settings > Universal Access > Pointing and clicking
Now enable hover click. Adjust delay and motion threshold as your need.


Unable to install new software or update the OS and sudo apt-get -f install fails Output of sudo apt-get -f install

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libcdaudio1 libenca0 libllvm3.8 libllvm3.8:i386 libqt5clucene5 libqt5help5
  libqt5webkit5-qmlwebkitplugin libqt5xmlpatterns5 libslv2-9 libx265
  linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic
  linux-image-4.4.0-75-generic linux-image-extra-4.4.0-75-generic
  linux-signed-image-4.4.0-75-generic musescore-common
  qml-module-qtquick-localstorage qtdeclarative5-dialogs-plugin
  qtdeclarative5-localstorage-plugin qtdeclarative5-privatewidgets-plugin
  qtdeclarative5-window-plugin
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libkmod2:i386
The following NEW packages will be installed:
  libkmod2:i386
0 upgraded, 1 newly installed, 0 to remove and 71 not upgraded.
90 not fully installed or removed.
Need to get 0 B/45.9 kB of archives.
After this operation, 136 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 306522 files and directories currently installed.)
Preparing to unpack .../libkmod2_22-1ubuntu5_i386.deb ...
Unpacking libkmod2:i386 (22-1ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/libkmod2_22-1ubuntu5_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libkmod2/changelog.Debian.gz', which is different from other instances of package libkmod2:i386
Processing triggers for libc-bin (2.23-0ubuntu9) ...
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

Errors were encountered while processing:
 /var/cache/apt/archives/libkmod2_22-1ubuntu5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any help is appreciated

Can you try this:

sudo apt autoremove

sudo apt-get autoclean

sudo apt-get upgrade -f

Then:

sudo dpkg --configure -a

sudo apt-get -f install

Hope it helps, greetings. :=)


How do I install Ubuntu Studio from a USB Flash Drive? So I have the standard Ubuntu 13.10, and I wanted to install Ubuntu studio. The only way I can do that is through a Flash drive, so I downloaded the newest version of Ubuntu studio, and used Unetbootin to put the ISO on the Flash drive.

Once that's done, I went to boot from my Flash drive in the BIOS, and all I get is a flashing cursor in the top left. I tried waiting for over an hour and nothing happened. I am not knowledgeable in how any of this works to be honest, I just want to know if there are any solutions?

if you haven't erased your current version of Ubuntu..

You can install Ubuntu Studio from a normal Ubuntu opening a terminal (Ctrl+Alt+T) and running the following command:

sudo apt-get update && sudo apt-get install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video linux-rt

This is because Ubuntu studio is normal Ubuntu with lots of extra stuff

hope it helps :)

If you're able to see the boot menu (prior to the flashing cursor), hit tab to edit it during the usb-live menu, add the following options after quiet splash :

noapic noacpi

This same issue happened to me with my Lenovo Notebook during my first dual boot installation. I was stuck until until I modified the kernel parameters as mentioned above. Also nomodeset can be added to the same boot line, but this should be used as a last resort if the windows manager does not load at first boot, on a live or fresh installed laptop.


How do you reset a USB device from the command line? Is it possible to reset the connection of a USB device, without physically disconnecting/connecting from the PC?

Specifically, my device is a digital camera. I'm using gphoto2, but lately I get "device read errors", so I'd like to try to do a software-reset of the connection.

From what I can tell, there are no kernel modules being loaded for the camera. The only one that looks related is usbhid.

Save the following as usbreset.c

/* usbreset -- send a USB port reset to a USB device */

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>

#include <linux/usbdevice_fs.h>

int main(int argc, char **argv)
{
    const char *filename;
    int fd;
    int rc;

    if (argc != 2) {
        fprintf(stderr, "Usage: usbreset device-filename\n");
        return 1;
    }
    filename = argv[1];

    fd = open(filename, O_WRONLY);
    if (fd < 0) {
        perror("Error opening output file");
        return 1;
    }

    printf("Resetting USB device %s\n", filename);
    rc = ioctl(fd, USBDEVFS_RESET, 0);
    if (rc < 0) {
        perror("Error in ioctl");
        return 1;
    }
    printf("Reset successful\n");

    close(fd);
    return 0;
}

The run the following commands in terminal:

Compile the program:

$ cc usbreset.c -o usbreset

Get the Bus and Device ID of the USB device you want to reset:

$ lsusb
Bus 002 Device 003: ID 0fe9:9010 DVICO

Make our compiled program executable:

$ chmod +x usbreset

Execute the program with sudo privilege; make necessary substitution for <Bus> and <Device> ids as found by running the lsusb command:

$ sudo ./usbreset /dev/bus/usb/002/003

Source of above program: http://marc.info/?l=linux-usb&m=121459435621262&w=2

Perhaps this works for a camera, too:

Following  revived a starved USB 3.0 HDD on a 3.4.42 (kernel.org) Linux on my side.  dmesg told, that it was timing out commands after 360s (sorry, I cannot copy the syslog here, not connected networks) and the drive hung completely.  Processes accessing the device were blocked in the kernel, unkillable.  NFS hung, ZFS hung, dd hung.

After doing this, everything worked again.  dmesg told just a single line about the USB device found.

I really have no idea what following does in detail.  But it worked.

The following example output is from Debian Squeeze with 2.6.32-5-686 kernel, so I think it works for 2.6 and above:

$ ls -al /dev/sdb
brw-rw---T 1 root floppy 8, 16 Jun  3 20:24 /dev/sdb

$ ls -al /sys/dev/block/8:16/device/rescan
--w------- 1 root root 4096 Jun  6 01:46 /sys/dev/block/8:16/device/rescan

$ echo 1 > /sys/dev/block/8:16/device/rescan

If this does not work, perhaps somebody else can figure out how to send a real reset to a device.


How NOT to route all traffic through the VPN? I am using a vpn (nordvpn) in Linux Ubuntu but I would like to be able to run a process that access the internet directly not going through the VPN tunnel...how can I do that ?
I only have wifi in my computer (no ethernet connection) so I have a wlan0 and a tun0 interface, no eth0.
I understand I should use a network namespace and run my process from that namespace but I don't know how to make it work.

I used something called 'split tunneling' for this when configuring my work VPN. Ubuntu 18.04

Settings->Network->Gear Icon
Choose IPv4 tab
Click checkbox: 'Use this connection only for resources on its network'


How to move windows around and between monitors, using keyboard short cuts? On MS Windows we can use Super + Arrow to move a window to the right and the left of the screen, maximize, minimize and even move it to another screen. Is there a way to configure this feature on Gnome?

In Ubuntu 17.10, the Shift+Super+Arrows keyboard shortcuts move the window between the different monitors.

Can be modified under Settings > Devices > Keyboard > Navigation > Move window one monitor up/down/to the left/to the right.

By using Ctrl + Shift + Alt + Arrow combination, you can move any windows to the other screens.


Fan Control with 13.10 and ASUS P8Z77-V deluxe motherboard My supposed quite PC is quiet audible presently.  I have three Silent Wings 2 fans connected to the ASUS P8Z77-V Deluxe motherboard and a Dark Rock 2 CPU Cooler with fan all working nicely and connected to the motherboard keeping temperatures very reasonable but they are spinning too fast and creating a sound I shouldn't be getting as they whirl around.

The BIOS has the fan settings set to 'Silent' mode and in Windows they are, but in Ubuntu they run too fast.

I have been along the lm-sensors and pwmconfig route, as suggested in other posts here and elsewhere but pwmconfig comes back with the message,

  /usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed

.

I am uncertain how to resolve.

How can I turn down the fans?
Is it worth investing in an inexpensive PCI fan control that is compatible with Linux?

I tried steps which described on the following page, and those work with Ubuntu 15.04.

How to control fan speed?

before you jump into conclusions, try checking your cpu usage. high cpu or gpu usage can also trigger fan. as far as i know, the fans are controlled by bios which is OS independent. so, try checking bios for fan mode.


how to download gta san andreas on ubuntu 12.04? i wanna a download link of grand theft auto san andreas version linux ubuntu 12.04 please anyone give me a download link of mta san andres and gta san andreas version linux ubuntu 12.04

first of all search for san andread on POL[play on linux which is a open source application available in software centre] if you find it over there then you can just install the game using a live cd or dvd but in case if it is not available on POL you can use ps2 emulator or wine to play those games

if you are using wine then follow this video

I'm not familiar with Wine, but I am pretty sure you just install the game and run the .exe through Wine? If you don't have wine, and there isn't a Linux version of the game you can't run it on Ubuntu.


How To Hide Mounted Drives From Ubuntu 18.04 Desktop? After scrolling with the mouse while pressing Ctrl in Nautilus, my icons for mounted hard drives have increased to the maximum size. (They are parallel to the thumbnails' view size, which looks like a bug to me. The size remains after a restart.) Anyway, I'd like to hide them. How can I do that?

Open Terminal and run the following command:

gsettings set org.gnome.nautilus.desktop volumes-visible 'false'

Alternatively, if you have (GNOME) Tweaks installed, you can use it to disable 'Mounted Volumes' under Desktop:

This won't work for Ubuntu 19.04 and later as desktop icons are handled by a GNOME Shell extension instead of Nautilus for those releases.

If you are on Ubuntu 19+:

1) Go to your menu and search for a program called [Desktop Settings] or [Desktop Icons]

2) Slide mounted drives so it is greyed out


Dropbox not starting - Ubuntu 13.04 server eddition I am running a 32 bit installation of Ubuntu 13.04 Server edition and  watching top shows nothing. What i did was run:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

then

~/.dropbox-dist/dropboxd

But after this command - NOTHING happens at all, ever ...

When I run top in another terminal and watch it, an ssh command starts and instantly stops and there's nothing else.

Whats going on?

I had this problem on a small Dell Mini.

This was the problem I had. When I booted up 13.04 the Dropbox symbol did not appear in the top toolbar and Dropbox could not sync.

This is how I fixed it. I opened System monitor. (To find this Just put 'System monitor' in the Dash search engine. If it is not installed then install it from Ubuntu Software Centre.)

In System Monitor, run 'processes' and find Dropbox in the list. It will say it is running normally. Quit it - force quit it. Close system monitor. Then open Dropbox  (either from the launcher or from Dash) This time the symbol will reappear in your top toolbar and everything will work as it should.

Regards Mike Clifford


Missing tools.jar (Android Studio) The command

$ ~/android-studio/bin/studio.sh

says

'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE.

I have searched for the solution to this error, and as far as I can tell, I've done everything right to correct this error. But it still persists.

sudo apt-get install openjdk-7-jdk (CHECK)
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 (CHECK)
sudo update-alternatives --config java

* 0    /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071   auto mode

find /usr/lib/jvm | grep tools.jar

finds nothing. (FAIL)

What am I missing?

As per output mentioned for command

sudo update-alternatives --config java

I can see that you have only JRE installed but you also need JDK to compile and run the code.

You can install JDK for Java 8 using following command :

sudo apt-get install openjdk-8-jdk

And then run

sudo update-alternatives --config java

command and select JDK instead of JRE.

IN LINUX DEBIAN :

1.- Open Synaptic and search "openjdk".

2.- checks that do not have more than one installed version of the package "openjdk-?".

3.- uninstall all file with old version and left alone all file with new version.

4.- Check that your Java Version have change from terminal "#java -version".

5.- try again install  studio.sh


How do I configure Dropbox to log to syslog? Dropbox is currently running well on Ubuntu server 10.04.
How can I setup dropbox to log any sync in syslog or even separate log file?

You can get some kind of logging by listening to .dropbox/iface_socket. Where .dropbox is the default folder of the dropbox daemon (not client). iface_socket is what the client (open source) and the server (closed source) uses to communicate. Note than I talking about the local client (cli, nautilus-plugin, etc) and local server, not the one that is run on the net by Dropbox.

You can find a ruby script to read this socket here, but I was not able to check it.

I'm not sure if this will give you the info that you want, but this is the best that I can think of short of making a feature request to the dropbox developers.

Now I understand the question properly, I think you should be using rsync to do your syncing (and produce proper log files) rather than Dropbox. It's unusual to use dropbox on a server...


Accidentally deleted healthy UEFI partition I have 1 ssd and 1 hdd in my laptop And I used ssd for booting both OS. I reinstalled windows on hdd so in that process windows had conflicts with existing UEFI partition so I deleted and then I realised I messed up for Ubuntu
Now my ssd has all Ubuntu files but. Can't boot into it without that healthy 100mb UEFI partition. It doesn't even Show on the f12 bios menu pleas help
My whole developer code base Is on Ubuntu

You can try boot-repair but if you deleted UEFI partition I don't think it will work.


13.04 Authenticate Fail after install I have burned an amd64.iso (with all the files showing), and run an installation off of boot after changing bios to permit that and checking the DVD for errors.  Upon completion of the first installation, on reboot I received the message: "Selected boot image did not authenticate."  I requested I hit enter to continue, and doing so shut the laptop down.  I repeated the install removing the prior install, and received the same message.  I am now using the temporary version, and have installed from it again.  I fear a repeat of the message.

 I am now working with a computer on which Windows 8 has been deleted and Ubuntu is not working.  What do you suggest is wrong?

What you need to do to fix this is access your computers bios. From there you must disable secure boot option and use the legacy boot option.

If your problem was the same as mine with the previous ver of Mint, it was an issue solve with Fedora ShIm to rewrite the Windows SLIC.

I saved and linked tha post that saved me, maybe it might help you:

http://www.rodsbooks.com/efi-bootloaders/secureboot.html

The new shim option was the bottom and lengthiest, you  already mentioned you verifiede UEFI is off so it would seem condescending for me to describe it further.

I'll spare the forum from venting my hatred of UEFI and the rest of annoying useless Microsoft DRM.


I can't install grub2 I can't install grub2 on my system.
i followed the guide, but when i chroot on my ubuntu partition and type:

grub-install /dev/sdb

I get this error:

  root@ubuntu:/# grub-install /dev/sdb
  /usr/sbin/grub-setup: error: hd0 appears to contain a iso9660 filesystem which isn't known to reserve space for DOS-style boot.  Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (--skip-fs-probe disables this check, use at your own risk).

Here is sudo fdisk -l output:

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x6af447e6
Device  Boot       Start         End      Blocks   Id  System
/dev/sdb1   *        2048   781459455   390728704    7  HPFS/NTFS/exFAT
/dev/sdb2       781459456   789272575     3906560   82  Linux swap / Solaris
/dev/sdb3       789272576   976773119    93750272   83  Linux

And sudo blkid:

/dev/loop0: TYPE="squashfs"
/dev/sr0: LABEL="Ubuntu 12.04 LTS i386" TYPE="iso9660"
/dev/sdb1: UUID="08E1AFD109C12FE4" TYPE="ntfs"
/dev/sdb2: UUID="1170bc3a-8b75-4c6b-8749-12cecb6db54d" TYPE="swap"
/dev/sdb3: UUID="881202f2-1f9b-4f10-9af5-90424a8dd362" TYPE="ext3"

Are you sure /dev/sdb is your hard drive? Because usually in the systems that I have seen with Ubuntu till now, sdb refers to the externally connected devices and /dev/sda is your hard drive where you should be installing grub to.

According to this answer, you need to run

dd if=/dev/zero of=/dev/sdb bs=512 seek=1 count=2047

to overwrite the master boot record.


How to set LibreOffice to suggest corrections for UK English? I want to be given correction suggestions while setting a text in LibreOffice to English-UK.

Now it works for English-US, French and Romanian, as these are the languages that I have installed in Language Support. I cannot seem to have a setting to differentiate US/UK English as I was able in Xubuntu.

In LibreOffice English-UK is absent. How to add it?

In Tools/Options/Language Settings/Languages I get to the image above, but how to make English UK present there? it lacks that 'ABC-V' sign that is present for English USA, although in Tools/Options/Language Settings/Writing Aids an 'English-uk' IS PRESENT. But that is not enough for the corrector to function for English-UK.

It's pretty straightforward to setup British spell checking- I did it a while ago as I am in the UK, so it's pretty important for me. My version of Libreoffice is exactly the same as yours: the default 3.5.x series version for 12.04.

For some reason this UK dictionary isn't included with the Ubuntu packaged version, even though it is when you download it on Windows and the UK spell checking is enabled.

Please go to the official list of dictionaries and choose kpp-british-english-dictionary and download it to your desktop or downloads folder. Now open that downloaded file with LibreOffice itself and you will be presented with this screen:

Now, make sure that it is enabled, and restart Libreoffice and open Writer, select English UK and it will auto highlight your mistakes as below, as long as the other settings are set to English UK in Tools > Options > Language Settings > Languages.

Also, it is important to make sure AutoSpellCheck is enabled.

On getting also thesaurus/synonyms, there is already this answer.

How to set LibreOffice ‘Language-Settings’ to UK-English
Trying to get English–en-gb with….
        Thesaurus/Spellcheck/Hyphenation/Grammar all working!
Go to Tools > Options > Language Settings > Languages.. I that window,
under ‘Language Of’ > User interface:   Select “English (UK)” and below that,
under ‘Default Language for Documents’ > Western:   Select “English (UK)”.
NOTE the “ ABC√ ” sign that is in front of English (UK). (it may be missing!)
I get to the image above in  Tools/Options/Language Settings/Languages
Next open  Tools/Options/Language Settings/Writing Aids….
Edit the “Hunspell Spellchecker”,  Select “English (UK)”.

NOTE the “ ABC√ ” sign that is in front of English (UK). (it may be missing!)

BUT if  the “ ABC√ ” sign is NOT in front of English (UK), If it’s missing, then…
The English UK dictionary isn't included with the Ubuntu packaged version of LibreOffice, even though it is when you download it on Windows and the UK spell checking is enabled.

Open LibreOffice Writer and go to…..
Tools -> Options -> Language Settings -> Writing Aids.
Verify the new Thesaurus is selected, by pressing Ctrl + F7 to bring up the thesaurus dialogue.

To be sure, to be sure, I went to this Web site….
(for ALL English Dictionary extensions) http://extensions.libreoffice.org/extension-center/english-dictionaries

I flicked down to….  English Dictionaries 2016.04.01   see script above.
There, I ‘clicked’ on “ English Dictionaries 2016.04.01 ” and downloaded/Save this File.. “dict-en.oxt”.
NEXT, go to this Web site….
To get “kpp-british-english-dictionary-674039-word-list.oxt”
 and Downloaded/Save the File.
British English- en_GB

The following "kpp" dictionaries can be all installed, then enabled/disabled to select the one you want to use with/for your documents.

kpp-british-english-dictionary-674039-word-list.oxt 674,039 word list, hyphen, and thesaurus - November-2012
http://www.libreoffice-na.us/KPP-dictionaries/dictionary.html
NOW, Go to your 2 Downloaded files, Click on each one separately.
CHOOSE open with LibreOffice. ‘Extension Manager’ will be activated, If the files ar already installed you can clic-on ‘Cancel’, otherwise ckoose “OK” and install both.
That’s about it!!!

you should have Thesaurus and the ALL rest...

P.S.
2016-04-07 and there are still problems with English UK on ubuntu-Linux.
'The Queen's English' is still not FULLY available.
Not on Ubuntu 14.04.4 LTS (Trusty Tahr),  Not on UbuntuMATE 15.10(Wily Werewolf)-UbuntuMATE 16.04 (Xenial Xerus)and so on and so on, why?
It's a nuisance to say the least.


I am unable to login Unity 8 desktop I have installed the unity8-desktop-session-mir package and logout, but no matter how I choose the Unity8, it is fail to login the desktop, it just stuck at the login screen, and I can do nothing but restart the lightdm.

Have you installed the driver video? If yes, that is the problem. Mir doesn't work with proprietary drivers for now.


How to find and install latest Ruby version using RVM? I finally got RVM working and now I would like RVM to install the latest stable ruby version.

In the tutorial I am using they installed ruby 1.9.3   with command :

rvm install 1.9.3

Now I want to know if there is a command to download the latest stable version, or do I have to check latest stable version and download it like that, or else, can I download any old version and run an upgrade?

Normally I would try out everything, but I am working on a new server and I am trying to set it up as clean as I can :)

The following command will install latest stable version of ruby:

rvm install ruby --latest

echo rvm_autoupdate_flag=2 >> ~/.rvmrc
rvm install ruby --latest


Shutter is running, but I don't see it I installed shutter yesterday, and it worked great, but I couldn't get it to run today. So I looked around AskUbuntu, and installed the dependencies I was missing and that still didn't solve my problem. Then I type shutter in the terminal, I get INFO: There is already another instance of Shutter running!. I don't see it anywhere and it's not marked as running in my sidebar. I tried uninstalling and reinstalling, purging and installing through the terminal, but nothing helped, I still get the same problem. I am using Ubuntu 12.04

I managed to get shutter running by:

Purging my current install sudo apt-get purge shutter
Installing Shutter from their PPA: http://shutter-project.org/faq-help/ppa-installation-guide/
Running killall shutter to remove active Shutter processes if any
Running shutter -f which captures the whole screen and displays it in Shutter.

After this, Shutter is working as it should.

Find the process ID

ps ax | grep shutter

then kill em and restart shutter

kill -9 process_id
shutter


How to use rsync via ssh with rsa key passphrases? How can I use rsync with passphrases?
All googled "solutions" i found use passphrase-less keys which seems no real option.

i am runnning 2 ubuntu servers 12.04.2 LTS.

If you're using rsync with a regular user, ssh-agent may be what you are looking for.

If ran into this problem while using rsync in a cron job. Cron jobs are run by the user cron in a restricted environement (some env var like SSH_AUTH_SOCK are missing, so ssh-agent does not work).

A walkthrough is to use keychain. Keychain keeps ssh-agent environement variables in a file.
So, first you install keychain.
Then, you add these lines in your .bashrc, .zshrc or .profile file (tweak it to match your ssh keys):

/usr/bin/keychain $HOME/.ssh/id_rsa
source $HOME/.keychain/${HOSTNAME}-sh

Additionnaly, to make cron jobs work, you can add this line at the beggining of your cron scripts:

source $HOME/.keychain/${HOSTNAME}-sh

More infos in this article :
http://eli.thegreenplace.net/2013/10/08/some-notes-on-logging-and-ssh-access-from-cron-jobs/

I guess all you want is the '-e' parameter for rsync to use a ssh connection, which automaticly asks for your passphrase...

rsync -avze ssh /home/user remoteuser@example.com:/backups
This would copy /home/user from your local computer to your remote computers /backups directory


How can I modify the screen resolution for AnyDesk? I use AnyDesk in Ubuntu, but the screen is too small. Is there a way to modify the screen resolution?

Run in a terminal:
xrandr --fb 1920x1080

I had a similar problem on my windows machine. I was not able to resize the anydesk window on my external monitor and it occupied the whole screen without any resize option.
Workaround:
This issue is due to scaling of your os(in my case windows)
Go to display setting scale the windows to 110% or more and then you should be able to resize the anydesk window.
Hope this helps!


apt-get update fails to fetch files, “Temporary failure resolving …” error Err http://archive.canonical.com natty InRelease
Err http://security.ubuntu.com oneiric-security InRelease
Err http://extras.ubuntu.com natty InRelease
Err http://security.ubuntu.com oneiric-security Release.gpg
  Temporary failure resolving ‘security.ubuntu.com’
Err http://archive.canonical.com natty Release.gpg
  Temporary failure resolving ‘archive.canonical.com’
Err http://extras.ubuntu.com natty Release.gpg
  Temporary failure resolving ‘extras.ubuntu.com’
Err http://gb.archive.ubuntu.com oneiric InRelease
Err http://gb.archive.ubuntu.com oneiric-updates InRelease
Err http://gb.archive.ubuntu.com natty-backports InRelease
Err http://gb.archive.ubuntu.com oneiric Release.gpg
  Temporary failure resolving ‘gb.archive.ubuntu.com’
Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg
  Temporary failure resolving ‘gb.archive.ubuntu.com’
Err http://gb.archive.ubuntu.com natty-backports Release.gpg
  Temporary failure resolving ‘gb.archive.ubuntu.com’

Reading package lists... Done
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘archive.canonical.com’
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg  Temporary failure resolving ‘security.ubuntu.com’
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘extras.ubuntu.com’
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’
W: Some index files failed to download. They have been ignored, or old ones used instead.

This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.

overview

There are two parts to your question:

fixing temporary resolve messages
fixing the package management issues

Temporary resolve

It is likely that this issue is either:

temporary due to your Internet Service Provider not correctly forwarding internet naming (DNS) to either its or external DNS servers, or
due to a change in your network has similarly blocked this naming - for example, new router/modem, reconfiguring a switch with a new configuration.

Lets look at the possible DNS resolving issues.

First, temporarily add a known DNS server to your system.

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then run sudo apt-get update.

If this fixes your temporary resolving messages then either wait for 24 hours to see if your ISP fixes the issue for you (or just contact your ISP) - or you can permanently add a DNS server to your system:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

8.8.8.8 is Google's own DNS server.

source

Another example DNS server you could use is OpenDNS - for example:

echo "nameserver 208.67.222.222" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

package-management issues

In addition to the temporary resolve issues - you have a few package management issues that need to be corrected - I'm assuming you have tried recently to upgrade from one Ubuntu version to the next recommended version - in your case from Natty (11.04) to Oneiric (11.10)

Open a terminal and type

sudo nano /etc/apt/sources.list

Look for lines that have your a different distribution name in the list than you were expecting - in your case - you have upgraded to oneiric but you have another release name natty

For example, look for lines that look like deb http:/archive.canonical.com/ natty backports

Add a # to the beginning of the line to comment it out - for example

#deb http:/archive.canonical.com/ natty backports

Save and re-run:

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

You should not have any more release naming errors.

At the time of writing this, possible common release names include lucid, maverick, natty, oneiric, precise, quantal, raring, saucy, trusty, utopic and vivid.

I experienced similar errors when running apt-get commands. It turns out I had the Software Update Panel open on the console.
This seemed to be blocking the command line apt-get, but I'm not certain.


Ubuntu 14.10 - udev refuses to update On Ubuntu 14.10 Udev refuses to update.

I executed this code:

sudo apt-get upgrade

Which gave this output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
udev : Depends: libudev1 (= 208-8ubuntu8.1) but 208-8ubuntu8.2 is installed
E: Unmet dependencies. Try using -f.

So I then did:

sudo apt-get -f install

Which output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
udev
The following packages will be upgraded:
udev
1 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.
Need to get 0 B/804 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 176972 files and directories currently installed.)
Preparing to unpack .../udev_208-8ubuntu8.2_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb (--unpack):
fgets gave an empty string from `/var/lib/dpkg/info/udev.triggers'
Errors were encountered while processing:
/var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I then tried to:

sudo apt-get install udev

Which gave this output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
udev
1 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.
Need to get 804 kB of archives.
After this operation, 4,096 B disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu/ utopic-updates/main udev amd64 208-8ubuntu8.2
[804 kB]
Fetched 804 kB in 0s (873 kB/s)
(Reading database ... 176972 files and directories currently installed.)
Preparing to unpack .../udev_208-8ubuntu8.2_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb (--unpack):
fgets gave an empty string from `/var/lib/dpkg/info/udev.triggers'
Errors were encountered while processing:
/var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Did this several times, even deleting the .deb package and forcing a redownload of the package, in case it was a bad d/l, had the same effect!

Then tried;

Synaptic

E: /var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb:
fgets gave an empty string from `/var/lib/dpkg/info/udev.triggers'

and thus;

(synaptic:3584): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 176972 files and directories currently installed.)
Preparing to unpack .../udev_208-8ubuntu8.2_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb (--unpack):
fgets gave an empty string from `/var/lib/dpkg/info/udev.triggers'
Errors were encountered while processing:
 /var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb
E: Sub-process /usrReading package lists... Done

Building dependency tree
Reading state information... Done
The following packages will be upgraded:
udev
1 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives//bin/dpkg returned an error code (1)

A package failed to install.  Trying to recover:

Which stops me in my tracks!

Now what?

Run:

sudo dpkg --force-all --install /var/cache/apt/archives/udev_208-8ubuntu8.2_amd64.deb


md, mix disks and partitions in an array My question is really how to mix in a 4 TB disk in my array consisting of 3 TB disks, which was partially answered here: Can I create a hybrid software-RAID array with disks of different sizes?

Problem is, how do I mix partitions (a 3 TB partition of a 4 TB drive) with entire 3 TB disks? My current md consists of sdb, sdc, sdd, sde and sdf. No partitions as I just let mdadm use up and add the entire drive. How does sdg1 play along in the mix?

Problem solved.
mdadm have no problem mixing entire disks and partitions given that the partition type is set to 0xFD. Using parted, this in non-intuitive since you need to create an ext2 partition and then use set 1 raid on, which will change the partition type.

Be careful with hybrid mainboards. In this case here would not do e.g. dual-boot with proprietary operating systems. You could think about 2 swap-partitions or 4 swap-partitions (of course only one is used, but you have then spare partition for emergency-case). Assumed the hybrid mainboard has a hidden flash-rom (or flash-rom is writeable resp. flashable) on the rear side, then in case there is somehow 2 MB to 32 MB free on the partition-table, then the Linux-User could install an additional Linux-Distro, which fixes into flash-rom piece of mainboard, which is again better than a recovery-partition of proprietary system.

In case your mainboard is not hybrid (is then without efi or uefi ?!) you could divide partition in smaller logical partitions after backup. You have not posted the partition table of your concerning question ?!


Enabling TCP MD5 signatures in 12.04? After running a NeXpose scan of one of my servers, I'm getting notice that TCP MD5 signatures may not be enabled.  I've looked all over the net and from what I can see this feature should be enabled in the most recent kernels, but I still cannot figure out a way to confirm.  Any help would be greatly appreciated.

Run this from terminal:

grep MD5SIG /boot/config-`uname -r`

if you see this:

CONFIG_TCP_MD5SIG=y

Then TCP MD5 signatures are compiled in kernel, so your OS is able to use them (in such case, you have false positive from scanner).

Depending on what scanner was actually reporting, please note that for every TCP connection, MD5 signatures needs to be explicitly enabled by calling setsockopt.

Perhaps you are referring to TCP SYN cookies. To enable them:

# echo 1 > /proc/sys/net/ipv4/tcp_syncookies


How can I set permissions so that a user cannot delete their home directory? For example: I have kuan/lap1.

I want the user to be able to read, write, and delete inside the folder kuan but not to be able to delete folder kuan. Only root should be able to delete the folder.

Like what @steeldriver said, users should not be able to delete their home directory, as /home is owned by root. I have tested this on my Ubuntu machine to confirm the logic holds up :D

EDIT:
Ok, so here's an example:

# As root
mkdir outerDir # The wrapper dir
mkdir outerDir/innerDir # The directory you want the user to have access to, but not delete
chown youruser:youruser outerDir/innerDir # Change ownership to your user

Since /home is already owned by root, youruser should be able to create & edit files & such within /home/youruser, but not delete /home/youruser itself

You also need to watch for permissions. Your outer directory, or /home, should be readable by all users, but only writable by root, and the inner directory, or /home/youruser, should be readable & writable by your user, but not by any others. An example of this with chmod:

# As root
chmod 755 outerDir # Make the outer directory readable by all
chmod 700 outerDir/innerDir # Make the inner directory only accesible to the user who owns it

The numbers I gave are in the order of user, group, and other. 7 means it's readable, writable, and executable. 5 means it's readable and writable, and 0 means no access, so 755 means it's readable, writable, and executable by the user who owns the file, and readable and executable by the group that owns it & everyone else; 700 means it's readable, writable, and executable by the user that owns it, and by nobody else. If you want to read more about chmod, try this, it's just the first result Googling "chmod"

If you want users to each have a private /home directory, but not be able to access other's /home directory do 'chmod 700 $HOME' but this must be performed by each user's home directory. Another way is doing it with the sudo account, or you may enable root by doing 'sudo passwd root' after prompt setting passwd for root, to switch to the root account 'su' enter root passwd, then you may from root chmod each user's home directory according to each's privileges and needs. Also, 'chmod 700 directoryname' works.


Kubuntu 14.04 won't reboot after updates I noticed I had a bunch of updates come through the other day that required a restart.  When I went to restart it just takes me to a user login screen.  In the lower right there are options to restart and shutdown.  Neither of those buttons work, specifically, clicking on them does nothing.  The only thing I can do is log back in.

From there I opened a terminal and did sudo shutdown -h now which returned command not found

I did whereis shutdown and it came back with /etc/shutdown.sh but that shell script just contains shutdown -h now.

It seems my shutdown binary is gone.  I did sudo find -name shutdown and it came back with /home/dean/.kde/shutdown but that is a folder not a file.

What should I do?

If it goes far as halting, then it may be a problem with your hardware, since halting is actually telling the computer to shutdown, if it fails, then the computer must have failed to receive the message. Since it displays a black screen, we know it sended the request and since it has nothing to do, it just prints a black screen. It may be and can be a extremely high chance it is your hardware.
Hope i answered your question.


ubuntu 16.04 won't shutdown : Reached target Shutdown[ok] also ubuntu 14.04 won't shut down : killing all procces [fail] I had ubuntu 14.04 (DELL laptop INSPIRON N-4110 )
shutdown and reboot worked correctly and without any problem
but after a long time I wasn't able to reboot or shutdown my machine.

and that was the log message was shown by pressing Esc during shutdown:

killing all procceses  [fail]

and I tried all the tips I saw in askubuntu and others(like changing the grub and shutdown - h now etc none of them have worked ! )

then I clean installed ubuntu 16.04 (current)
but issue is not going to solve.

now the log shows:

[ok] Reached target Shutdown
[135.486156] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0X0 action 0x6 frozen
[135.846776] ata2.00: cmd a0/00: 00:00:00:00/00:00:00:00:00/s0 tag 4 pio 16392 in
[135.846776] get event status notification 4a  01 00 10 00 00 00 00 00res 40/00:00:00:00
[135.848020] ata2.00:status: { DRDY }
[141.182090] ata2.00 revalidation failed  (errno=-5)

I checked bug #1464917 and did instructions also but nothings changed .

UPDATE:

after updating to 16.04.1 (boot install) Ubuntu will shutdown if i do it fast when OS is coming up but after a while it's not going to power off again and
Esc key won't work and does not show me log any more

UPDATE(PROBLEM SOLVED) :
It was a certain hardware problem and solved by changing Hard Disc

Maybe the swap is still active when reaching "Target shutdown";
My solution was to force swap deactivation before reboot :

 swapoff -a
 swapoff /dev/md6

after that, the reboot went fine for me without any pause.


How do I mount .vhd file? I'm using 13.04 Raring amd64 and I need to mount a .vhd file on my ubuntu. I've googled about it and found that virtualbox-fuse package is the answer.

But the package was deleted from apt repository. Is there any way to install the package w/ 13.04? or is there any alternative to virtualbox-fuse?

sudo apt-get install virtualbox-fuse
sudo mkdir /mnt/vhd-disk/
sudo vdfuse -f disk.vhd /mnt/vhd-disk/
sudo mount -o loop  /mnt/vhd-disk/Partition1 /mnt/partition1

Note that you may need additional options to mount to set permissions to your liking.

You can use VirtualBox.

  VirtualBox is a free x86 virtualization solution allowing a wide range
  of x86 operating systems such as Windows, DOS, BSD or Linux to run on
  a Linux system.

To install VirtualBox Under Ubuntu 13.04, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install virtualbox

Once it finishes installing, go ahead and create a new virtual machine

Type in the name.  Make sure that you choose the correct type, and version of the OS that is in the VHD.

Choose use an existing virtual hard drive file, and browse for your VHD file, and then click on create.


I couldn't modify a folder in the computers section? The name of the file

/usr/share/themes

I can copy, but couldn't cut or paste. Please provide instruction how I can change the permissions of this folder.

Well you can do it with your file manager used with super user privileges. Try

gksu nautilus

on terminal and try using the nautilus instance provided. But this is not recommended if you don't know really what you are doing.

Open any terminal (ie press ctrl-alt-t)
Enter the following command: sudo nautilus
Enter your password
What looks like an ordinary file manager will appear, but it will have root permissions everywhere.  Be very careful.  You can do some real damage with that much power.

Please be sure to exit that file manager when you are done.


Grub rescue after removing Ubuntu? I dual booted ubuntu 12.04 LTS with Windows 8, but I wanted to get rid of ubuntu. So I got EasyBCD (on windows 8) and removed Ubuntu following a tutorial on youtube, then I got rid of the Ubuntu partitions. After restarting my Sony Vaio, it went to grub rescue and I'm not sure what to do. Help please! Much appreciated!!

I installed ubuntu using a USB.

You need to use a windows installation cd and restore the bootloader on the MBR through the recovery environment or using the startup repair option under advanced settings. Here is a guide http://www.redmondpie.com/how-to-fix-windows-8-mbr-master-boot-record/

Related support article: (unfortunately I could only find one for ~windows 7 but the previous guide is very straightforward)
http://support.microsoft.com/kb/927392#method1

Install again Ubuntu "alongside" of Windows 8, now entering Windows 8.

Install this software on Windows (is free): http://download.cnet.com/MiniTool-Partition-Wizard-Home-Edition/3000-2094_4-10962200.html?part=dl-6285158&subj=dl&tag=button

Run the software, right click in your disk and after in "Rebuild MBR", after click in "Apply" in top, now you can delete the partitions by Ubuntu with that software, it's not necessary to run Ubuntu, and after click in Apply.

Good luck!


how to switch python 2.7 to python 3.7 in ubuntu 19.10 I am using Ubuntu 19.10 and I have python 2.7 installed on it.
I want to upgrade to python 3.7 on it.
How do I do it?
I have downloaded https://www.anaconda.com/ for 3.7 version of Linux and installed it. Does it do the needful or I need to install or upgrade to python 3.7.
If I have to do then how should I do it?

edit
this was a Ubuntu 19.04 virtual machine which was upgraded to 19.10 not a clean install. The VMware image for 19.04 was downloaded from www.osboxes.org/ubuntu

 debian@osboxes:~$ python -V
    Python 2.7.17rc1

There is no need to use Anaconda or any other third party packages.

Both Ubuntu 19.04 and Ubuntu 19.10 come with Python 3.7 as default Python version.

You can check this with python3 --version in a terminal.

python will and also should refer to Python 2 - this was decided in order to not brake compatibility. Do not try to change this, or you could break parts of your system.

https://www.python.org/dev/peps/pep-0394/

To install python3.7:
sudo apt-get install python3.7

To make the 'python' command default to python3.7 instead of python2.7:
alias python='/usr/bin/python3.7'

Hope this helps.


Would like to get rid of new bar along the bottom of screen that shows active apps and workspaces I just installed ubuntu 13.04 Gnome Desktop, then upgraded to 13.10 and added a shell extension to use custom themes. I played around with installing themes, and now I have a bar across the top of the screen (which was there all along, and which I can find the settings for) and a bar along the bottom  - showing active apps and workspaces - that was not there before. I can't seem to get rid of it or find any settings for it - it's not the gnome bottom taskbar, that one's turned off (and appears under this one if I turn it on). I would gladly post a screenshot but apparently I don't rate.

Alt+Super+Right click on any Gnome panel to get its properties or delete it.

Alt+hold Left click, to drag pannel to another place.

I think in theory it should be Alt-right click to get to the panel peoperties, but I think compiz now swallows this on default settings for something else.

(Sheepish!)

I logged out from Gnome classic and logged back in again straight up Gnome and the bar is gone. Thanks anyway.


How do I do a minimal install without an internet connection? Now that various Ubuntu ISOs has been folded into the regular desktop ISO, how do I install the minimal version which featured in the erstwhile alternate and the minimal ISO?

Minimal CD

Regarding minimal CD, it can install minimal Ubuntu  but requires net connection to download even the basic that basic set of Ubuntu packages. And therein lies the problem: I don't have a LAN connection I can use and, even if text-based installers did support wireless connections (they don't, IME), my wireless hardware is a little too new and requires manually compiling and installing drivers.

If you do have net connection and want to install minimal Ubuntu, Minimal CD is the way to go.

Install minimal Ubuntu from Ubuntu Server 12.10 USB/DVD
You can achieve a 12.10 minimal (no GUI) install via the Ubuntu Server installer image downloadable from the Ubuntu Server page or the alternative downloads page.
The minimal install option has been made available via different modes as detailed on the following screen shots.

Opt to install a minimal system

Press F4, and you will be able to choose minimal system installation mode.

Skip or choose manual package selection

Going further, you will eventually be asked if you want to install more packages on top of the minimal system. If you want a pure command-line system, skip the step without choosing anything. Or you can select the last "Manual package selection" option to preemptively select any packages you were planning to install to build your custom environment.

Upon choosing manual package selection, you will be greeted by a standard interactive instance of Aptitude if you chose manual package selection. If you're unfamilar with operating Aptitude, refer to this guide to navigate and select packages. Do note that the selection of packages you will find are only those available on your installation media; an internet connection will be needed to install anything else at install time.

Server Minimal vs Minimal CD
While the minimal system installed using the Ubuntu Server image is undoubtedly a genuine minimal system as known and loved by minimalist lovers, there is a slight differences in the package package selection compared to the Minimal CD. In fact, Minimal CD pulls in 7 extra packages during installation, which I (@Oxwivi) personally deem them to be all but redundant. But for the information freaks (like myself) who will have nagging doubts if the details are not known,  the seven in question are: daemon, dictionaries-common, discover, discover-data, language-pack-gnome-en, language-pack-gnome-en-base, libdiscover2, mpt-status, wamerican and wbritish.
Using the Lubuntu Alternate Installer, as this answer originally suggested, also worked and resulted in the same package list as installing Ubuntu Server. To use the Lubuntu Alternate Installer, minimal system mode must be chosen the same way as Ubuntu Server by pressing F4.

This is probably not quite what you're looking for but worth mentioning:

What about Lubuntu?

This gives some handy files and ideas.


"Problem with MergeList /var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_i18n_Translation-en%5fUS" I'm trying to install the google talk plugin on Ubuntu 14.04. I've been following this guide:

http://www.ubuntuupdates.org/ppa/google_talk_plugin

When I do the last step, sudo apt-get install google-talkplugin, I get the following error:

Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_i18n_Translation-en%5fUS
E: The package lists or status file could not be parsed or opened.

This doesn't make sense. What does Spotify have to do with installing Google Talk?

Spotify is having some problem with their repository URL being incorrectly resolved on DNS level. As a temporary solution replace the URL in your repositories list. By default, i.e. when installed from official Spotify instructions for Ubuntu users, you'll find it in /etc/apt/sources.list.d/spotify.list. For different distributions the line might be in /etc/apt/sources.list or in any of the files under /etc/apt/sources.list.d/. Change it to read as follows (mark the -origin part):

deb http://repository-origin.spotify.com stable non-free

Afterwards clean the apt lists cache and update as usual:

sudo rm /var/lib/apt/lists/*
sudo apt-get update && sudo apt-get -y upgrade

It should work.

The solution from Cyprian works great, apart from the line with rm which should be:

sudo rm /var/lib/apt/lists/* -vf


How to install 7zip to extract rar files How do I install 7zip through Terminal to extract rar files?

I don't know why would you like specifically 7-zip's binary to extract RAR, but here we go:

To unrar files with... unrar:

sudo apt-get install unrar-free
unrar e some.rar

To extract rar files with 7-zip:

sudo apt-get install p7zip-full
7z x some.rar

e and x mean extract obviously.

Use the following command to Install 7Zip:

$ sudo apt-get install p7zip-full

Extract files using 7zip:

$ 7z e example.zip

(Or use the x option instead of e to preserve file paths).

Compress files using 7zip:

$ 7z a compress.zip

For more information, visit the reference


htaccess not prompting for credentials on Ubuntu server I created the following .htaccess file

<Files "index.php">
    AuthName "Restricted"
    AuthType Basic
    AuthUserFile /path/to/file/.htpasswd
    Require valid-user
</Files>

I generated a user and password using

sudo htpasswd -c /path/to/file/.htpasswd user password

When I navigate to the ip address it gave the message: "Unauthorized This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

According to all other walkthroughs It would indicate that I should be prompted for user and password but instead it is going straight to the error message. What do I have wrong? I don't need anything complex I just need it to prompt for password.

Just check your browser console in the network menu for the current page request in the header tab.

if you sow 500 Internal Server Error then there is some thing wrong in your server (.htaccess or .htpassword file). You should see 401 Unauthorizedif every thing is working fine.


selectively deactivate (power off) pcie slot? the title basicly says what I'd like to do:

my machine has integrated HD4000 graphics and a more powerful PCIe card
HD4000 is enough for everyday use, PCIe should be used only for gaming with Windows
through bios I can set the primary card
I'd like to disable (switch off, suspend) the PCIe slot when in linux to conserve power and also to turn off the PCIe card's fan

Is this possible? - Thanks in advance!

Your Motherboard should have a Switch to ON/OFF the PCIE Slots on the motherboard. This should be used in conjunction with Lucid Virtu or some other software where your Monitor is connected to the onboard video output. Check out these links:-

http://www.xtremesystems.org/forums/showthread.php?277311-Disabling-PCI-E-slot-why-not

http://www.asrock.com/mb/Intel/Z87%20OC%20Formula/


How to copy Folder as root to another hard drive? Well, I am newbie on ubuntu and I want to copy file from ~/Documents/recoverd (all files from Recoverd Folder) to this drive /media/samerlol/7E7D1D0C55C0ABDF as a root user..
I tried some ways but all failed..

I used this command

samerlol@SamerLOL:~/Documents$ sudo cp recoverd/* /media/samerlol/7E7D1D0C55C0ABDF

but the result is this

cp: omitting directory 'recoverd/3 Idiots (2009) 1080p BRRiP x264 AAC-AMEET6233 (T.M.R.G)'
cp: omitting directory 'recoverd/A Gift of Fire- Social, Legal, and Ethical Issues for Computing Technology 4E [PDF]'
cp: omitting directory 'recoverd/Celldweller Discography (1999 - 2013) {VB-320}'
cp: omitting directory 'recoverd/Fullmetal Alchemist Brotherhood {Ep 01-64 + Special} (Complete) [English Dubbed] 480p x264 ~ARIZONE'
cp: omitting directory 'recoverd/Images'
cp: omitting directory 'recoverd/Samer'
cp: omitting directory 'recoverd/Videos'
cp: omitting directory 'recoverd/Who.Am.I No System is Safe 2014 BDRip 720p HEVC SUB ITA ENG-NAHOM'

It didn't copy directory, I want to copy Recoverd Folder and what it's inside to another harddrive...

In order to copy directories you'll need the flag '-r':

From man cp:

   -R, -r, --recursive
          copy directories recursively

So  run something like:

 sudo cp -r recoverd/ /media/samerlol/7E7D1D0C55C0ABDF

I found good way to do that by Here

GUI VERSION

Press ALT+F2 and type gksu nautilus This will turn you into an admin account using nautilus. Now go to those files and change the permissions/owner so your normal account can use them. This sometimes not work. At least for me they work and in another PC do not. Test and see.

The GUI version looks almost the same as Dash, except that instead of saying "Search" in the search bar it says "Run a command". Here is an image:


No HDMI audio for MSI X370 Ubuntu 13.10 64bit The laptop is MSI x370 w/AMD-E350 CPU, 4GB RAM. http://www.laptopmag.com/review/laptops/msi-x370.aspx. In the sound device output, there's only one selection (built-in speaker). What needs to be done to enable HDMI audio output? The HDMI video displays fine, but sound comes from built-in speakers.

I found a solution here, and it works "No HDMI audio output from AMD Laptop"

Did a sudo vi /etc/default/grub file from this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.audio=1"

reboot, and it works. Thanks.

Try to follow this guide.

If it doesn't work, try to add the PPA for the Nightly Builds for ALSA and install the latest build.

Remove your current ALSA with

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

To add the nightly build repo for ALSA
sudo add-apt repository ppa:ubuntu-audio-dev/alsa-daily

Install the latest build and try to restart.


Update notifier doesn't work [cache issue] The update notifier doesn't notify me when updates are available. Sometime ago I had a similar problem and this worked:

sudo rm /var/lib/update-notifier/dpkg-run-stamp
sudo rm /var/lib/update-notifier/updates-available
sudo rm /var/lib/apt/periodic/update-success-stamp

But it does't work in this case:

sudo /usr/lib/update-notifier/update-motd-updates-available --force
E: Unknown error: «<class 'KeyError'>» ("The cache has no package named 'wine1.7-i386'")

I also tried:

sudo apt-get clean
sudo apt-get auto-clean
sudo apt-get clean all

But it didn't work either.

Anyone knows how to fix it?

moray33@Jose:~$ sudo apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
moray33@Jose:~$ sudo dpkg --audit
moray33@Jose:~$ dpkg -S /var/lib/apt/periodic/ /var/lib/update-notifier/
apt: /var/lib/apt/periodic
update-notifier-common, ubuntu-release-upgrader-core, update-manager-core: /var/lib/update-notifier

Hi I am new to ubuntu so I am trying it out, I got to know wine because I wish to use Dreamveaver but with no success, I even tried to install some .dll from winetrick and tried to remove some because apparently wine has made my computer into a "windows server"(that's what an error message said). Anyway after doing those things,I had the same problem as yours until this morning.

E: Unknown error: «<class 'KeyError'>» ("The cache has no package named 'wine1.7-i386'")

As I had "lost" wine1.7-i386, I tried to reinstall it so I ran

sudo apt-get update
sudo apt-get install wine1.7-i386

then it updated my wine1.7 and wine1.7-amd64  and also installed wine1.7-i386.
hey also while downloading wine1.7-i386 it aborted for some forgotten reason.
but I retyped the same command and it continued. And now the error message is gone.
Hope that will help you.

PS: I never used sudo rm /var/lib/update-notifier/dpkg-run-stamp or and the rest.

I have the same issue.
I just run de command

sudo apt-get upgrade

and the problem solve by it self.


Assistive technology not found AWTError $ java -jar aprof-plot.jar
Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
    at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:807)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886)
    at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
    at java.awt.EventQueue.invokeLater(EventQueue.java:1264)
    at aprofplot.Main.newWindow(Main.java:33)
    at aprofplot.Main.main(Main.java:359)

Possible explanations I saw here was to install Java-access-bridge. But I am unable to install libaccess-java-bridge.

I ran into this same error on my Ubuntu 15.10 server but did not want to install the non-headless version of OpenJDK due to the number of additional dependencies. A simpler solution was to simply disable assistive technologies.

This can be done by editing the accessibility.properties file for OpenJDK 8 (change the version to whichever is actually in use on your system):

sudo vim /etc/java-8-openjdk/accessibility.properties

Comment out the following line:

#assistive_technologies=org.GNOME.Accessibility.AtkWrapper

Also you can edit this line programmatically:

sudo sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties

This kind of error happens when you have a headless version of the JRE installed. The headless JRE is a subset of the full JRE but lacks GUI features, including support for assistive technologoes.

Install the full JRE (e.g. openjdk11-jre instead of openjdk11-jre-headless) and the error should go away. No need to uninstall the headless JRE.


Can I get some help with my wifi? I'm using Ubuntu 14.04 as a dual boot with Windows 7. My wifi inexplicably stopped working today and I have no idea why. It works fine in Windows. I really like Ubuntu but I'm afraid I'm not very computer savvy. Can anyone offer some suggestions or advice. I'll provide all the answers you need to some this problem. Thank you.

Today many people are having this problem in Ubuntu, after an upgrade it seems that Network Manager is crashing. I solved it with this tutorial

Last upgrade crashes network manager (no internet connection, no applet)

Hope it helps


Guide to set-up DNS and Multiple domain on Ubuntu 12.04 I would like to know, how  to set-up a DNS server and to run multiple websites on a single VPS server. I already have a VPS server and I've installed webmin for my ease.. I'm still confused how to set it up.

If I can set up both of them, I know how to change the NS record in the domain registrar. So, please advise me how to do or may be a clear guide to do.

Thanks in advance.

You should try looking at this site for info on how to configure your web server. I don't agree with some of the steps and choices but it's a good start.

The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)


Ubuntu 12.04.3 -32bit Failed to install grub-efi to /target/ I made a live USB using a 12.04.3-32 bit ISO and trying to install it on Intel baytrail,EFI based hardware.During installation i get an error "Failed to install grub-efi to /target/.without the GRUB bootloader,the installed system will not boot".
Here am in a position that i have to use 12.04 LTS,can i know the solution for this issue?

Note: I can able to install 12.04 - 64bit on the same board successfully.

I have overcome from this issue by customizing 32 bit ISO file using Ubuntu-builder.
In that am keeping efi part of the Ubuntu-builder file system so during installation my "efi" will be copied to the system /boot folder.

During installation am getting "Failed to install grub-efi to /target/. Without the GRUB bootloader, the installed system will not boot" error then I reboot the system and I can successfully login to installed Ubuntu.

Can I able to suppress this error "Failed to install grub-efi to /target/. Without the GRUB bootloader, the installed system will not boot" while installation?

UEFI is based on executing code in native mode. So no distributions have 32 bit versions for 64 bit systems.

http://mjg59.dreamwidth.org/26734.html

You probably can install in BIOS mode if you want.

This must be another solution if the other previous ones could solve well. Normally new models use UEFI to boot. That's the problem. Use legacy boot or old boot method instead of UEFI.
You can disable UEFI in BIOS or you can press "F9" or some F keys to prompt for the boot options, in which case, choose normal usb boot instead of UEFI.