Laptop screen stays blank after lid is reopened

There is a post from devilkin that solved my problem, here is the solution:

It requires the ACPI VIDEO module loaded.

Create the file /etc/acpi/lidswitch.sh with these lines (don't forget to chmod +x on it):

#!/bin/sh
# /etc/acpi/lidswitch.sh
# Re-activates the screen when the lid is opened again

LID_STATE="/proc/acpi/button/lid/LID/state"
LCD_STATE="/proc/acpi/video/VID1/LCD/state"

grep -q open $LID_STATE

if [ $? -eq 0 ]; then
    echo 0x80000001 > $LCD_STATE
fi

Then put these lines in /etc/acpi/events/lidswitch (lidswitch not being a folder, but a file without a file extension):

# /etc/acpi/events/lidswitch
# This is called when the lid is closed or opened and calls
# /etc/acpi/lidswitch.sh for further processing.

event=button[ /]lid
action=/etc/acpi/lidswitch.sh

Extra help:

(1) Use gedit to create these files. So open up Terminal, then type in 'sudo gedit' (without quotes) and copy and paste the lines above.

(2) Use nautilus to apply the "chmod +x" property to the file. To do this, open up Terminal, then type in 'sudo nautilus' (without quotes) and the navigate to etc, acpi, then right-click on lidswitch.sh, navigate to Properties, then Permissions, then Allow executing file as program, then click Close.


The functionality of right click can perhaps be achieved by a two finger tap and that of left click by a one finger tap. I hope this helps. The above feature is in Ubuntu 18.04, although I'm not sure about Ubuntu 17.10, you can try though.


Try laptop-mode-tools. And also try these grub parameters: pcie_aspmi=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 drm.vbankoffdelay=1

This (and bumblebee, but this is not your case) worked very well for me.


JuJu bootstrap Node type of AWS instance

Since there's no such thing as a "tiny" I assume you mean a micro sized instance. t2.micro's are burstable, and we've found through experience that micros are just too underpowered to run a bootstrap/state-server node.

If you're looking to save on cost then what you can do is run a workload on the bootstrap node, so that you effectively share a machine as both a coordination node and use it for real work. Perhaps also consider running Juju in HA mode so that you have a state server on multiple-nodes:

https://jujucharms.com/docs/stable/controllers-ha

This way you don't waste nodes but you don't have all your eggs in one basket either.

I'm not sure on the data volume, I'll ask and add that information when I get it.


How to set apt-get option for a specific source?

If I understand your question correctly, you want to fetch your .debs  only from one single source, right?

Then you can set the /etc/apt/sources.list to old using

# mv  /etc/apt/sources.list /etc/apt/sources.listold #or something like that

then create a new sources.list using

# touch /etc/apt/sources.list

after that edit the new sources.list using

# vim /etc/apt/sources.list

finaly insert a line like that:

deb http://name.of.your.server/ubuntu/ precise universe
deb-src http://name.of.your.server/ubuntu/ precise universe

Now apt will fetch only packages from name.of.your.server

I hope this will help you.


Ubuntu 17.04 - doesn't have a swap partition?

There's nothing wrong. In fresh installations of 17.04 we have a swap file instead of a swap partition, as mentioned in the release notes (if you upgrade rather than install afresh, you will still have a swap partition).

The swap file is located at

/swapfile

You can always check the status of swap with the command swapon --show.
Here's my output in 17.04:

$ swapon --show
NAME      TYPE SIZE  USED PRIO
/swapfile file 1.3G 62.2M   -1

You can also see if it's being used with the free command as usual

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           1.9G        1.3G        152M         95M        423M        328M
Swap:          1.3G         62M        1.3G

See - working just fine.

According to the Arch wiki

  There is no performance advantage to either a contiguous swap file or a partition, both are treated the same way.

It just provides a little more flexibility; it's easier to resize.

Minor note: Btrfs (alternative filesystem to ext4) does not support swap file usage, so you will need to create a swap partition yourself if you want to use Btrfs. But if you're brave enough to use Btrfs, you surely know what you're doing anyway ;)


Removing old postgresql after upgrading?

The auto-start of a specific PostgreSQL cluster is specified by its start.conf file.
For a postgresql 9.1 main cluster, it's /etc/postgresql/9.1/main/start.conf.

See the comments at the beginning of the file:

# Automatic startup configuration
# auto: automatically start/stop the cluster in the init script
# manual: do not start/stop in init scripts, but allow manual startup with
#         pg_ctlcluster
# disabled: do not allow manual startup with pg_ctlcluster (this can be easily
#           circumvented and is only meant to be a small protection for
#           accidents).


Is there any good software for Linux for FM radio listening?

Rhythmbox has an FM Radio plugin that lets you configure radio stations and tune in to them the same way you'd pick other media.  You can enable it from Edit -> Plugins, and then add new presets with Music -> New FM Radio Station.

It depends on proper video4linux drivers for the tuner hardware, and expects that the card will handle getting audio to the speakers.  I've used it successfully with a tuner that connected through to the line in jack of the sound card.  It was necessary to turn on unmute that input with alsamixer -c0 so that the audio passed through to the speakers, but other than that it worked fine.

If your tuner card handles audio in some other way (e.g. it doesn't have a direct connection to the sound card, and instead shows up as a separate sound device), it might not work out of the box though.


How can I decrease the frequency of the fan running on my laptop?

First, depending on the age of the laptop, clean out the vents.

lesswatts has a comprehensive set of tutorials to reduce power use:

http://www.lesswatts.org/tips/index.php

For the cpu speed see

http://www.webupd8.org/2011/07/cpu-frequency-scaling-indicator-fixed.html


Is my understanding of how to set this up correct? Are the paths to files read from the linked folder the same as if they were in the original folder?

Yes. You can make that link using ln:

ln -s ~/Documents/directory1/directory2 ~/git

Then, for example if you run nano ~/git/fileA, it will open the exact same file as if you ran nano ~/Documents/directory1/directory2/fileA.

Similarly, I have a multi-level symlink setup in my home folder, and it works fine. For example:

~/Dropbox
Documents -> ~/Dropbox/Documents/
Scripts -> ~/Documents/Scripts/
.bashrc -> ~/Scripts/startup/bashrc


My USB test drive hangs on boot. How can I get it to boot with the right options?

Your'e probably not passing the right boot options. Boot from the USB. When the screen with the keyboard and stick figure comes up, press any key. Use the arrow keys to select your language and press enter. Press F6 for modes, and try combinations of nomodeset, acpi=off, noacpi and nolacpi until the computer boots successfully. I wish I could tell you which combination, but it varies from computer to computer and so you'll just have to do some experimenting. Hope that helps!


Has grub submenu indexing recently changed in 18.04.2?

3 answers...

Rather than having to edit /etc/default/grub every time GRUB changes, this way will remember the last OS/version that you booted, for the future boots, until you decide to change it, so edit your /etc/default/grub to include these...

sudo -H gedit /etc/default/grub

GRUB_DEFAULT=saved    # edit existing line
GRUB_SAVEDEFAULT=true # add this line

then do sudo update-grub.

If you wish to remain editing /etc/default/grub the way that you have been doing it, instead of using positional numbers, use the description text instead... (use the exact text shown in the GRUB menus)...

GRUB_DEFAULT="Advanced Opti...>Ubuntu 14..."

then do sudo update-grub.

To possibly fix your Plymouth crashes, also edit /etc/default/grub and change...

Note: if you've changed your splash screen, or added a GRUB background, these can also cause plymouth problems.

#GRUB_GFXMODE=640x480

to...

GRUB_GFXMODE=640x480

then do sudo update-grub.


Ubuntu 14.04 fails to boot after updates are installed

Were you running updates through Ubuntu's "Software Updater"?  Try running "sudo apt-get update" and "sudo apt-get dist-upgrade" from the command-line instead.  I think I had similar issues after a recent update, which I suspect are due to the Software Updater hiding some important dpkg-reconfigure prompts for grub.


How to allow write access (create/write files) to a directory but prevent delete (to all, including owner)

Root will always have permissions.

chmod +t file/folder

This sets a sticky bit so only the creator of the file can delete it, no-one else. Outside of that you may need to explore other options, such as making the app/person run the create command as : sudo -u USER vi/touch /dir/file

Also check out the chmod manpage


ubuntu 20.10 on Macbook Pro late 2011 freezing at boot

If you are having persistent issues on boot-up of your system, I would strongly recommend re-installing Ubuntu 20.10. You could probably fix that issue.
If you still have issues with boot up and if you think it is an issue with graphics, I would either get a new computer or replace the graphics stuff. Since Macs are supposed to be compact, I would either get a new computer or a new motherboard. It would be easier to get a new computer.
These may help:
https://www.youtube.com/watch?v=TIXxlBt82AI
https://www.youtube.com/watch?v=Tg4fWsFPzSE


How can I force the Unity launcher to start programs in a window which is not maximised

If the main purpose is for wine, this doesn't answer the application un-maximized in unity question, but you can tell wine to run applications in a virtual desktop to avoid that issue with wine. Just run winecfg, and under the Graphics tab select emulate a virtual desktop.


Problem mounting samba shares in 15.10 (it worked in 15.04 !!)

(answered wrong question)

Don't know if this helps, but I am using 15.10 and I mounted an external drive by editing the /etc/fstab file.

My drive is mounted by placing this at the end, you would have to change it according to whatever is appropriate for your system.

/dev/sde1 /media/external ntfs uid=nobody,gid=users 0 0


bootloader isolinux/txt.cfg default option not recognized

I am not sure how to address your main issue, but for the bonus I found this question which has an answer that points out the syslinux/lang file.  Putting an ISO language in there (like en or fr) will choose that language instead of giving you the menu.  This fixed that issue for me on Ubuntu 14.04.3 LTS.  I have not yet found any authoritative reference for this file.


script for csvtool for replacing columns

In case bash, as you told in comments.. You can create file like:

#!/bin/bash
csvtool pastecol 1 1 /path/file1.csv /path/file2.csv > /path/output.csv
csvtool pastecol 5 3 /path/file1.csv /path/file2.csv > /path/output.csv
csvtool pastecol 8 8 /path/file1.csv /path/file2.csv > /path/output.csv

Save it, for example like somefile. Then change rights to run it:

chmod 755 somefile

And run:

./somefile


I lost my sidebar and header bar buttons after an error message

You should be able to login into a tty by pressing  Ctrl+Alt+F2, and then you can restart Unity by running:

export DISPLAY=:0
unity --replace &

You should then be able to switch back to graphical display with Ctrl+Alt+F7


Is there anyway to run Ubuntu and Windows 10 at the same time (no VM)

Yes, you can do this. but you need two computers. If you want to run two OS's on a single computer, you need to use some type of virtualization technology (VMware, virtual box, grub, xen hypervisor, whatever) and then it's simple to set up a 'hotkey' to switch between, ESPECIALLY if you go the hypervisor route.


The specific number and length of the beeps is a code telling you that a hardware problem has been detected.  I last encountered them with a graphics card that wasn't getting the correct power. Checking your computer's manual should list the specific codes, or you can check pages like this online:

http://www.computerhope.com/beep.htm


How can I play Team Fortress 2 (TF2) with bumblebee in Ubuntu 13.10?

It seems that Ubuntu 13.10 is missing a file that bumblebee expects to find. To recreate it,

$ cd /usr/lib/i386-linux-gnu/
$ sudo ln -s libturbojpeg.so.0.0.0 libturbojpeg.so

This is actually documented elsewhere on the internet, but you have to do this even if you are on a 64-bit system, as TF2 only runs as 32-bit.


Wireless not working toshiba satellite c640

Same problem to yours on Toshiba Pro C640.
In my case, I've installed Ubuntu 10.04 x64 then disabled Wifi, then installed Ubuntu 12.04 x64 and finally got "Wireless is disabled by hardware switch". Cannot re-enable wifi on new OS.

Then my working solution:

prepare a USB disk boot or CD ... with ubuntu 10.04 x64
boot an run ubuntu on USB/CD
then try rfkill unblock all
verify by rfkill list

Sorry to author of this idea, I don't remember the link to add a ref here.

You may need to boot in Windows 7 again just to enable wireless (like my Ubuntu 10.04 x64).


That sounds like you used the shell instead of Python to run your Python program.

Make sure the first line of your Python  program is something like

#!/usr/bin/python

See Shebang for more about this.

If your Python program is run by the shell the shell calls import (part of ImageMagick) for each of your import statements. This program waits for you to click any window and then takes a screenshot of that window and saves it under the name gives as argument, by default as PostScript file.

For example

import sys

will wait for you to click on a window and save a screenshot of that window in a PostScript file named sys in the current directory.

You can just delete those PostScript files.


update-rc.d: warning: missing LSB keyword

the all-important letter 's'

You've missed the obvious.  You typed update-rc.d nagios default and the command told you that the syntax was

update-rc.d [-n]  defaults [NN | SS KK]  Note the spelling: defaults

broken nagios LSB headers

As for the warnings about the nagios LSB headers:  As I've said at https://unix.stackexchange.com/a/200281/5132 and at https://askubuntu.com/a/617822/43344, you're far better off not starting from there in the first place.  The Nagios Enterprises supplied System 5 rc script doesn't have a proper, complete, set of LSB headers.  But it's foolish to waste time fixing it.

You're using Ubuntu Linux.  You have upstart here with version 14, and you'll have systemd if you ever upgrade.  Begin with a systemd unit file, or an upstart job file.

For systemd, you could do worse than start with this nagios.service file written by David Kowis.
For upstart, you could do worse than start with the nagios.conf file written by Remy van Elst that is part of a guide to installing nagios on your very version of Ubuntu.

(If you really must: The Debian people have fixed it in their nagios3 source package and so has someone named "djibril".)

Further reading

Remy van Elst (2014-08-15). "Setup the upstart script".  Nagios 4 + Nagiosgraph installation on Ubuntu.  raymii.org.
djibril (2014).  "Démarrage de Nagios". Installation et configuration de Nagios pour débutants.  Developpez.com.


Unable to run steam since last update after reinstall

Open a terminal and run these commands:

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libgcc_s.so.1

More info here.


Try to download the ubuntu iso file and install it from usb.
Here's how to create a bootable usb
usb installation for ubuntu


Simple rsync incremental backup that timestamps deleted files

Adding the --backup-dir option should do what you're looking for:

  --backup-dir=DIR
      In combination with the --backup option, this tells rsync to store all backups in the specified directory on the receiving side. This can be used for incremental backups. You can additionally specify a backup suffix using the --suffix option (otherwise the files backed up in the specified directory will keep their original filenames).

e.g.

rsync -ab --backup-dir=versions --suffix="."$(date +"%Y%m%d%H%M") --delete /source/folder/ /destination/folder

This would create backups of your files at /destination/versions

Source: https://linux.die.net/man/1/rsync


What is the correct way to use specific DNS servers if using DHCP in a no-desktop Ubuntu 20.04 install, and can you use DNS over TLS?

Ok, you have several questions rolled into one:
DNS-over-TLS (DoT)
Ubuntu provides the stubby package which is one of the de-facto standard DoT daemons.  Just run apt install stubby and you should be good to go.
DHCP DNS Overrides
As chili555 pointed to in the comments, you want to use the dhcp4-overrides -> use-dns option to disable the use of DHCP-provided DNS servers.
Using Stubby
As you already encountered, systemd-networkd will start its own DNS resolver (systemd-resolved) by default.  If you want to run Stubby, they'll both want to bind on port 53 which will cause an error.  You have two options:

Disable systemd-resolved and configure netplan.io to use 127.0.0.1 as your DNS override server.  This has the downside of disabling DNS caching (I think).
Tell Stubby to bind on a different localhost IP and/or port using the listen_addresses variable in /etc/stubby/stubby.yml and then tell "netplan.io" to use a dns override to point it at that new IP/port.


How to change Ubuntu 20.04 Desktop file manager (not gnome)?

Not sure I understood correctly, but you can change the background image by right-clicking on it and selecting "Change background".
Or searching for "Background" in settings.


There's nothing wrong with your Ubuntu, it's a TV issue called overscan. You can fix overscan by entering TV settings, as described here: How do I fix overscan on my HDMI HDTV?.
Settings and names may vary from brand to brand and model to model.


It seems like lines 56 and 57 of your file are trying to set your home directory as a package source.

If you don't want this, you can just edit the file and delete these lines.

If you do want this, you will need to change deb file:///home/pradnesh main to deb file:///home/pradnesh precise main in line 56 and a similar change in line 57.


Lingering Upstart Files in Ubuntu 17.04, Are They Compatible With Systemd?

No, systemd is not compatible with upstart and will make no use of those upstart job files.


You will find some useful solutions in these two questions, including instructions on how to proceed with testdisk:

Recover files from External HDD to DVD+RW using Photorec
How do I recover my accidentally lost Windows partitions after installing Ubuntu?


Basically use: webapp-container --maximized

From terminal:

$ webapp-container https://mail.google.com/mail/u/0/#inbox --app-id=comgooglemail --maximized

Or create ~/.local/share/applications/comgooglemail.desktop with the following content:

[Desktop Entry]
Name=Gmail Inbox
Name[nl]=Gmail Postvak IN
Exec=webapp-container https://mail.google.com/mail/u/0/#inbox --app-id=comgooglemail --maximized --user-agent-string='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0'
Icon=/home/username/comgooglemail.png
Type=Application
Actions=compose;starred;contacts
StartupWMClass=comgooglemail
OnlyShowIn=Unity

[Desktop Action compose]
Name=Compose
Name[nl]=Opstellen
Exec=webapp-container https://mail.google.com/mail/u/0/#inbox?compose=new

[Desktop Action starred]
Name=Starred
Name[nl]=Met ster
Exec=webapp-container https://mail.google.com/mail/u/0/#starred

[Desktop Action contacts]
Name=Contacts
Name[nl]=Contacten
Exec=webapp-container https://mail.google.com/mail/u/0/#contacts

Now open the Unity dash and type gmail to open the comgooglemail webapp.
This also offers quicklists (visible when right clicking the icon) for Compose, Starred and Contacts.
Search online for an icon (minimum 48x48 pixels) and save it to ~/comgooglemail.png


You can't and you mustn't do that! It is one of ubuntu's important folder, last time I force delete it and my computer crashed, then I need to re-install everything. I you remove root.disk your computer will not boot Please see this disaster: http://ubuntu-with-wubi.blogspot.hk/2011/08/missing-rootdisk.html and read this from ubuntu: https://wiki.ubuntu.com/WubiGuide


Using Universal USB Installer to install Ubuntu Live to a partition on your HDD

Download Universal USB Installer: https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

Create a small, (3GB), FAT32, (or NTFS), partition on a secondary msdos hard drive. Installing on the Windows Drive will overwrite the Windows bootloader.

Start UUI and specify the Ubuntu ISO you wish to install, select All Drives Shown, then select the new target partition. Do not select Format Drive

Select Create and let the installation complete.

Reboot and select the new Live internal drive for installing Ubuntu.

The Live partition will boot in either BIOS or UEFI mode. When using it to install Ubuntu, make sure to boot it in the same mode Windows is installed in.

On the first boot run sudo update-grub to add Windows to the GRUB menu.


Manually synchronize a webdav share with a local folder

Once the webdav folder is mounted, you then need to run some sort of syncronisation. I have often used rsync for things like network device mirroring. Rsync allows you to dictate which folder has priority i.e. which direction to sync in, and allows you to add credentials although they shouldn't be needed if your Nautilus connection works ok.

The only problem you've got is that rsync is command driven and you need to find the mount point of your webdav folder for the command string. I've got nautilus-open-terminal installed so I can right-click in a folder in Nautilus and open the terminal in that location. Seems to be the easiest way to find that mount point.


This sort of "sneakernet" file transferring is done all the time.  Ubuntu will easily mount rw a USB thumbdrive that has a fat format.  This assumes that the data on the TD is rw of course.

The ability to mount, read and write to files on a TD are irrespective of the user, assuming that the user is not expressly denied access to USB storage.

I presume you are asking about formatting a TD in EXT4 format.  To accomplish what you want (manually transferring files from one machine to another), using a MS fat formatted USB storage device will work perfectly well.

You might consider using Filezilla to sftp files back and forth.  It's trivial to setup, is faster and a lot easier.


Linux hard disk mounting into exisiting directory

You can mount any hard disk (e.g /dev/sdb) on any directory using following command:

mount /dev/sdb /home/test/test_folder

But when you mount a hard disk to a directory, the directory does not point to that directory before do mounting.

This means that if you want to extend your home directory for that services, you should copy some files to the new hard disk.


I have two filesystem partitions. Now Ubuntu complains that one is full

To find out (from the command line) the size on any directory, use this 'disk usage' command:
cd /
sudo du -ch --one-file-system --max-depth=1 .

This will (after some time) produce a list of directories and the amount of diskspace each takes. Change directories into your first suspect and repeat:
cd /var # for example
sudo du -ch --one-file-system --max-depth=1 .

Keep at it until you find what fills up the system. For larger directories, use a variant: sudo du --one-file-system --max-depth=1 . | sort -n. Less legible, but it will show you the biggest last.
Should everything be OK but your root filesystem is getting too full (because you have installed too much stuff or you really need all those old log files or all those TTF fonts) AND IF your root filesystem (sda4) and swap (sda6) are adjacent, you could make it into one larger filesystem:
Boot a live USB version, select 'try Ubuntu' and open a terminal (through the menu or Ctrl-Alt-t). Type
lsblk

and figure out which is your harddisk (you may see a sda, but that could be your USB stick). I'll use 'X' for whatever you find here. Start the graphical partitioner:
sudo gparted /dev/sdX

(replace the 'X' with the letter of your HD in the live environment). Now, delete the swap partition and enlarge the root filesystem (you cannot alter a mounted filesystem - that's why we have to use the USB stick). Make sure you choose 'Partition->Resize/move' and expand the root filesystem to include the space where the swap space was.
At your next boot, you will get trouble over the now missing swap space. I'm not sure what will happen - you might have to enter your (administrator/user) passwd and fix the problem (in single user mode), or it may just boot. Either way: Edit /etc/fstab with you favorite editor:
nano /etc/fstab
vi /etc/fstab

Find the line that has the word 'swap' and put a hash (#) in front of the line. Continue into multi-user mode by logging out of the maintenance shell (exit, or control-D).
You will now have a system without swap. To start swapping to a regular file, follow instructions here
Now, it would be a good idea to find the cause. A lot of software, big logs, huge /swapfile in the current install... If not fixed, the problem may return.


Simply installing any other Audio player should work fine for you. I'd recommend Audacious since it is extremely light on resources and can play nearly every audio codec in existence.

You can install it by clicking the button below or running this command:

  sudo apt-get install audacious

Once installed you can go into your computer details via the dash and click on default applications.


Snaps are not launching or failing to install

This is happening with 'snapshot' or 'daily' images, or images that for some other reason had a broken seed.yaml (the file that helps snapd figure out what snaps to pre-load when you install the system).

We're working on fixing the issue at the image-creation level, but it's got a reasonably straightforward workaround:

sudo apt purge snapd && sudo apt install snapd

this works because purging will remove the broken seed.yaml, and reinstalling won't bring it back. You will however not have any pre-loaded snaps so if you notice you're missing something you expect to have (like maybe gnome calculator, say), that'll be why.


Installation to external hard drive - not booting

If you installed Ubuntu by using the real installer, you just need to install GRUB on the internal drive. If you've used the USB-installer, you need to look in the BIOS.


20.04 won't boot on Lenovo T470 while in docking station

I have the same problem. My L450 does not boot while docked (ThinkPad Pro Dock 40A1), but it boots with disconnected additional monitor. All has worked while i disabled boot splash screen (GRUB_CMDLINE_LINUX_DEFAULT="nosplash" in /etc/default/grub).


How to tell if my home is encrypted or not?

While logged in, run mount (by itself, no arguments). If you see something about ecryptfs, your HOME is encrypted.


Shotwell stopped working after upgrading Ubuntu (14.04 to 15.10)

I just ran into this same problem (though I recently upgraded from 15.10 to 16.04). I fixed it by going into ~/.local/share/shotwell & renaming the data folder to data.bak (alternately you could delete it but you'll have no chance to recover it in the future).

My old database is gone, but I can now open Shotwell & rebuild the database.


Windows 7 requires a minimum of 1000 Mhz processor with 1GB of RAM, while Ubuntu requires a minimum of 700 Mhz processor with 384MB RAM. While these are the official requirements, in practice, the requirements are considerably higher. From my experience, If you install both the operating systems on identical hardware, Ubuntu’s performance is significantly higher than that of Windows 7.
In fact, if you were to pull out a 7 year old computer from a junkyard, Ubuntu will work flawlessly.
Moreover, the boot time of Ubuntu is considerably less than its Windows 7 counterpart.


Why won't the terminal change to my shared folders directory?

The directory you are trying to cd into contains spaces. The shell does not deal with those easily, it stops at the first one and trerats the next sequence of characters as a separate argument. In other words, what you actually ran was:

cd Desktop/Shared

Which does not exist and the shell complained. To get around this, you need to either escape the spaces with a \:

cd Desktop/Shared\ Parallels\ Folders/Home/Downloads

or to quote the path:

cd 'Desktop/Shared Parallels Folders/Home/Downloads'

The above will work if you just open a new terminal because new shell sessions start in your home directory and Desktop is a subdirectory of that. If you are in a different directory, you will need to give the full path like so:

cd ~/Desktop/Shared\ Parallels\ Folders/Home/Downloads

or

cd "~/Desktop/Shared Parallels Folders/Home/Downloads"

~ is just shorthand for your user's home directory. It is the equivalent of /home/youruser. However, in order to use that, you need to use double quotes (") else it is treated as a literal ~ and not expanded by the shell.


Every time restart Lubuntu terminal unable to init server, cannot open display

Thank to the comment above, solution is such

gedit ~/.bashrc

comment out

export DISPLAY=localhost:0


How can I connect to PPPOE over Wifi? (English/Español)

In English, courtesy of Google Translate:

login to the wifi network that utilises terminal then type sudo pppoeconf ina then give that if all of you when you ask the network interface that connects the wifi chooses is usually wlan0, then username and password avituales and ready dala you a few lines to start and stop copy it and save the connection as it will then serve to start

PS: always remember to first connect to the wifi network

Spanish, original response:

conectate a la red wifi que utilises
luego escribe enuna terminal        sudo pppoeconf
luego dale que si a todo lo que te de cuando te pida la interface de red por la que se conecta elige la del wifi generalmente es wlan0, luego usuario y contraseña avituales y listo te dala unas lineas para iniciar y parar la coneccion copialo y guardalo ya que te servira luego para iniciarlo

PD: recuerda siempre conectarte primero a la red wifi


Terminal and Software update crash on open, python installation related

Step 3 in the instructions you followed is wrong. Different versions of Python 3 are not alternatives. Thankfully, it should be easy to fix. Just use similar commands to the ones in the update at the bottom of the post:

sudo rm /usr/bin/python3
sudo ln -s python3.6 /usr/bin/python3


Xubuntu 14.04 and ConnectPro UD-12+ DDM KVM Switch - display won't wake

Using a cheap KVM switch (DVI) myself, between Windows and Xubuntu 16.04.

When switching to Xubuntu there would be no signal to monitor.

Another workaround is shifting to tty1 CTRL+ALT+F1 (or one of the others 2-6 with F2-6) before switching away with KVM. After switching back with KVM CTRL+ALT+F7 to get back on desktop.

If forgotten and signal is lost

sudo service lightdm restart

will from one of the tty's reset back to GUI for me.

I have not understood or figured out a solution from the bugs mentioned in comments.


How to transfer my windows 7 files to Ubuntu

Assuming you chose to install Ubuntu alongside Windows during instalation (if you chose to erase Windows and dedicate your whole HD to Ubuntu, you have a different problem):

Ubuntu (or pretty much any Linux-based OS) reads Windows files without a problem. You just need to open your file browser (in a fresh installation, it should look like a file-cabinet icon to the left of your screen), search for your Windows partition (look under "Devices", on the left part of the Files window), click it and go find your files. They should be under /users/<your user name>/ (note there's no such thing as C: in Linux, it has a different way of naming partitions). Copying those files to your Ubuntu partition is as easy as it is under Windows: you can click-and-drag a rectangle around the desired files and drag them to your "Home" folder (top of Files left panel). Of course, Ctrl+C and Ctrl+V also work as expected.


Wine throwing errors since going to 13.10

You can try sudo apt-get purge wine; sudo apt-get install wine however I would recommend using playonlinux instead of wine directly; it's easier to manage.


It turns out that various drivers were missing.

Here are the drivers that I installed and it shut down properly after instalation:

iSight and Wi-Fi.

Hope this helps others!!! :)

Have a nice day!


Cannot change window border theme in MATE

I solved it by using gconf editor. Go to /apps/metacity/general and change the Theme value to whatever theme you want.


1. How can I restore existing .desktop files so that alacarte and the menu show them?

The default location where alacarte stores modified menu files is $HOME/.config/menus. For instance: $HOME/.config/menus/gnome-flashback-applications.menu

After adding the app_01.desktop file to the Science category, the gnome-flashback-applications.menu file may look like this

<?xml version="1.0" ?>
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
    <Name>Applications</Name>
    <MergeFile type="parent">/etc/xdg/menus/gnome-flashback-applications.menu</MergeFile>
    <Menu>
        <Name>Science</Name>
        <Include>
            <Filename>app_01.desktop</Filename>
        </Include>
        <Layout>
            <Merge type="menus"/>
            <Filename>app_01.desktop</Filename>
            <Merge type="files"/>
        </Layout>
    </Menu>
</Menu>

2. Alternatively, how can I rename the alacarte-made.desktop files to whatever the application name is (as is the case with the files already there) so things remain manageable?

After renaming an alacarte-made.desktop files, you have to edit the $HOME/.config/menus/gnome-flashback-applications.menu to update the desktop file name.

alacarte man page for Ubuntu 18.04: http://manpages.ubuntu.com/manpages/bionic/man1/alacarte.1.html
There are also man pages for other versions.


Sounds like something was wrong the whole time, and now some change has occurred to keep it from eventually "righting" itself.  Since your virtual terminals still work, the problem has to do with your desktop.  Are you using appropriate video drivers?  Which word processor and web browser apps do you use?  Which version of Ubuntu?  Also, do your hardware specs meet minimum requirements for your version of Ubuntu?.  After all that, consider what your desktop is doing, such as screen effects.  I hope this helps!


No, you don't need to do anything. The file training.dat isn't an executable but contains training data for Thunderbird's spam filter.


Name of first file in directory obtained in optimal way

This is tricky. Two approaches:

Approach 1; find:

find . -mindepth 1 -print -quit

find and -prints the first file found, and -quits immediately. -mindepth 1 would prevent matching the . hardlink of the current directory.

If you are interested in regular files only, add -type f:

find . -type f  -print -quit

-mindepth 1 can be dropped then as the . being a directory would not be matched.

Approach 2; sh, stdbuf, and awk:

Note that, this might suffer from ARG_MAX being triggered for too many files (argument list becoming too long, over ARG_MAX bytes). In that case, use approach 1.

any shell builin (e.g. printf, echo) to print the filename
shell globbing, *, to do the expansion (the collation order should be the same as ls for  a given locale's LC_COLLATE)
stdbuf -o0 (stdbuf comes with GNU coreutils) to make the STDOUT stream of printf/echo unbuffered
pipe (|) the STDOUT of printf/echo to awk and exit after printing the first record
After awk exits, stdbuf (printf) would receive SIGPIPE, and would be killed
I would use printf to get the filenames separated by ASCII NUL (\0), and use \0 as the record separator in awk to tackle any edge cases as far as the filenames are concerned

Putting these together:

stdbuf -o0 printf '%s\0' * | awk 'BEGIN{RS="\0"} {print;  exit}'


Best graphics card brand/ drivers for gaming on Ubuntu?

I'll try to answer, knowing I risk flames because this is mainly based on personal experience. I tried to approach all GPU providers with an open mind when I was evaluating them though...

This is my understanding at the moment:

Intel supports open source drivers for Linux (which is nice), but the HD2500/HD4000 graphics on the CPUs is only good enough for low settings or "facebook games".
AMD GPUs are good value, but have problems with drivers. They've only recently in the past few years started (actively?) supporting open source drivers (which is nice), but the open source driver isn't quite "there" yet. The proprietary driver(s) also have problems: I fought with them for a couple of weeks with a HD7770, but in the end I gave up because I couldn't get it to work properly. Other people's mileage seems to vary though.
nVidia doesn't support open source (to my knowledge), forcing the "nouveau" open source driver to be reverse engineered. As such, it lacks some access to certain processing features on the cards. The proprietary driver, while not perfect in that it still has tearing and things, is easy to install and is pretty close to "just works".

I'd really, really wanted the AMD card to work, but it broke me. I've settled on nVidia because of the convenience...for now.


Why does Chrome report java as old, even though I have the newest version?

Could you please update your question and let us know what you did to install Java

I had a similar issue but I used the following command in Ubuntu Terminal

sudo apt-get install openjdk-7-jre

If you install this from Ubuntu's Software Center it will most likely install an add-on (icetea-netx). Make sure that it's selected before you hit install (in Ubuntu's Software Center). This will install Open Java 7 Runtime Environment with IceTea Netx (see http://icedtea.classpath.org/wiki/IcedTea-Web).

JDK is Java Development Kit and is not really required unless you are into developing Java programs.


Boot Error: 'UNEXPECTED INCONSISTENCY' After switching from Windows to Linux (dual boot)

Like oldfred says, you need to run the file system check at a minimum. Try this:
fsck /dev/sda2

Answer "Yes" Y for each error. Alternatively, press A once to always answe "Yes".
Let the system do its thing, which may take a while, then reboot. After that, it should be fine.


Can not boot Ubuntu 14.04 from a USB stick

As it has been determined in the comments, sudo dd if=/dev/sdb iflag=fullblock bs=512 count=1 2>/dev/null | strings showed no trace of GRUB on the device.

So the problem is that the device lacks a bootloader, which explains why trying to boot it didn't avail: the BIOS of the machines in question simply fell back to a bootloader present on another device to boot an OS, which had the effect of booting another OS.

The fix is either installing GRUB on the device or reinstalling Ubuntu on the device making sure that GRUB gets installed to the right device:

On a side note, installing GRUB to another device had the effect of either:

Adding an entry for the USB device if the target device had GRUB installed in it already;
Installing GRUB if the target device didn't have GRUB installed in it already.

So you might want to fix that as well.

The first problem is easily solvable by removing the relevant entry from GRUB;

For the second problem, have a look at one of these two answers, depending on whether you installed Ubuntu in legacy mode or in UEFI mode:

Legacy: https://askubuntu.com/a/168517/380067

UEFI: https://askubuntu.com/a/304892/380067


When you installed to the HDD the Ubuntu bootloader was also most likely installed to that same drive. Since your BIOS 'boot order' probably lists the SSD above the HDD, your bootloader (GRUB) isn't part of the boot process. It's there and set correctly, but it's just being skipped when your system checks the Windows drive and finds a boot partition there.

You can either try booting from a live CD/USB and 'repair GRUB' by installing it to the SSD, or change the boot order of the drives in the BIOS.

I would try changing the BIOS setting first, that's the easiest.

EDIT Sorry I just realized I read the question wrong. You can probably still fix things by following the 'repair GRUB' link though. Once you get the Windows entry in GRUB, here is a post explaining how to make it default.


Used sudo command that I don't understand, want to undo it

If you're willing to run another untrusted sudo command:

sudo sed -i '/^export MOZ_USE_OMTC=1$/d' /etc/X11/Xsession.d/90environment

You have appended a line containing export MOZ_USE_OMTC=1 to the file /etc/X11/Xsession.d/90environment. This sed command deletes any line which contains exactly that.

Or you could open the file in nano to edit it manually:

sudo nano /etc/X11/Xsession.d/90environment

See How to edit files in a terminal with nano?.


Finally, I found the misplaced setting. I'll put it here in case someone somehow has the same issue.

The setting that had changed and caused some texts in applications, especially the 'open file' and 'save file' dialogues to change, sits in System Settings > Application Style > GNOME Application Style (GTK) > GTK Themes > Font. This suggests that the applications having troubles are GTK applications.

Anyway, putting the Font back to Oxygen-Sans 10 restored the normal look and feel of the applications.


With the default settings Ubuntu will use all disk space on installing.  A separate /home or /opt partition will not be created. They are mere directories on the root partition. This is similar with other operating systems. Because of that it is recommended to backup all personal files before an install of a new OS.

Of course we can override these settings and use a manual partition scheme. We can then manually create as many partitions for as many mount points we want. This may also be of advantage when we have some mount points on a faster SSD and others on a huge conventional HDD. Or we may want to have some files on a different file system. But we do not need to do that for Ubuntu to operate as expected. It is more a matter of personal taste, comfort or believe.

We can also say to not format any existing partition on installing Ubuntu. By saying so we will not delete any directories /boot, /opt, or /home but keep them with all their content. So no data are lost. It is as if this directory was on an unformatted separate partition.

From a technical point of view there is no disadvantage to install all of Ubuntu in a single / root partiton. I do that often in a virtual machine.

If for any reason we decide to have a separate partition even on a separate drive rather than a directory we can always create it later (see e.g. here for HOME).


Why is Monodevelop not running? mscorlib.dll

That file is provided by libmono-corlib4.5-cil. Install it:

sudo apt-get install libmono-corlib4.5-cil


"Compress" option disappears from right click menu when I search for a file on Ubuntu 18.10

Found an answer, without changing from the default file manager.

Search from the "Home" folder
Right click on the item
Select "Open item location"
Right click on the item, and "Compress" is now an option

Item is now found within the folder, and can compress it so problem solved. However if anyone has any ideas why searching through the subdirectories caused this problem, I'd be interested to know.


A .run file is normally a custom made program which needs to be executed in order to install a program. These are not supported generally as they don't track where files go and don't normally provide an uninstall method. there is no way to be sure what the script will do to your system so they're considered unsafe.

They are close to the windows exe file and as such come with the same issues. If you know what you're doing and are happy about taking the risks, you can execute them with these commands:

chmod 755 programinstall.run
sudo ./programinstall.run


Widows 8 BCD missing with ubuntu dual boot

The problem is solved by running  powercfg /h off in windows command terminal. This command usually disable windows hibernate permanently. I follow this instruction and now I have full access of windows partition.


Need information regarding Ubuntu for Android

COMPLETELY REVISED

Ubuntu for Android -- use tag: ubuntu-for-android

In every dual-core phone, there’s a PC trying to
get out.

Ubuntu for Android is designed to run on Dual-Core ARM-based smartphones. It is available from Canonical (Ubuntu 'owner') for OEMs to add to their smartphones (for sale). It is intended to provide the Ubuntu desktop experience, but based on the processing power, memory, and graphics capability of an advanced smartphone.

Currently, it has not yet addressed how to modify the interface, touch, memory usage, and other issues to better suit ARM-based mobile devices.

Ubuntu on ARM -- use tag: ubuntu-on-arm

wiki > Ubuntu Core on Nexus 7

Ubuntu for 'mobile' (tablets and smartphones, typically ARM-based) is currently under development and in early beta testing. Its current reference platform is the 'Google / ASUS Nexus 7' 7-inch tablet.

This product (for Nexus 7) is specifically compiled to run on the ARM processor, work with the current ROM / BIOS of this device, and to allow testing (and improvements) to "Ubuntu core" for this type of platform.

Any question about the future, other platforms, and cross-architecture support are probably too early. Also, any answers would be subject to change, technology, market share, and other factors ..

If you want a better answer, ask a single straight-forward question.


There is a not very satisfying solution I found that blinks for .1 sec.

sh -c 'redshift -o -t 1600:1500 -l 53:15&' ;sleep .1; redshift -l 53:15 -x

But it would be nicer if it would phase in from red to normal like it normally does using redshift.

Edit: Well well, this'll have to do for now I guess.


Go to system Settings, Power, in the Power Saving area you will find "Dim Screen When Inactive" Turn it off.


My SSD still shows it's full, although I've deleted (no trashed) 60 GB?

Weird: I know I had the issue after I replaced my SSD, but right now my xsession-errors behaves normally, and also suspend/resume works. I was hoping for this to work - seems it does.
I didn't backup the 60+ GB xsession-errors, and now it stays small (luckily).
I'll keep an eye on it.
btw, here's info about which SSD/firmware version definitely had issues, so xsession-errors grew out of bounds, because some data didn't find it's way back sometimes:

Model Number:   KINGSTON SV300S37A120G
Firmware Revision:   603ABBF0

Firmware update 60AABBF0 is available, but requires a bare-metal Windows machine:
https://www.kingston.com/en/support/technical/downloads/90683
Thanks for your help!
Especially the hint about "deleting open files won't free the diskspace".


Ubuntu 12.04 installation stuck on 'where do you live' using CD

Do you have at least 512 MB of RAM?  That could be the problem.

My suspicion would be the .iso unless you were able to check its validity with an MD5sum or whatever the magazine provided.  Or ... when you booted the LiveCD, there should have been a menu entry to check the CD itself.  If that passes, the problem was not the .iso.

You did not say HOW you deleted the 40 GB partition and your result makes it look like the install thought it was all or part of Win7 so it split that into halves and used one half for Ubuntu.  That makes me think you MAY have deleted the contents of the partition but did not delete the partition itself.  That is very easy to do since partitioning tools have you specify WHAT you want them to do but do not do it until you separately tell them to do it and they confirm you mean it.  Basically, they may look like you have deleted before they actially have completed the deed.


Internal Microphone is suddenly no longer detected

Sorry if that was ridiculous. I managed to solve it. It was driving me mad for hours.
The culprit was the Audio Profiles as I was trying to get the internal microphone to work instead of the external one, but that was not possible. I was not aware of what the Audio Profiles did at that time. Now I do.
I apparently had the Audio Profile set to output. This explains why no microphone was detected.
Go to Audio Volume Settings > Advanced Tab. The correct setting was "Analog Stereo Duplex". If you choose "Analog Stereo Ouptut", only the speaker will work, and the microphone will be disabled. If you choose "Analog stereo input", then the microphone will be enabled and the speakers will be disabled.


mouse/cursor is disappearing after sleep

I have stumbled on this odd bug with a Lubuntu 16 on an Acer Aspire D250. Searching for a fix I found this workaround: pressing Ctrl-Alt-F1 and then Ctrl-Alt-F7 makes the cursor reappear. Works on my system.


Execute binary inside symbolic link to separate LVM partition

I've removed the option user (or users) from /etc/fstab:

/dev/mapper/slow--vg-bulk--lv  /media/geovani/bulk  ext4  rw,suid,dev,exec,auto,async  0  0

And now it executes normally.

Ref: http://forums.gentoo.org/viewtopic-p-7462810.html#7462810


Mysterious Directories Appearing in Home Folder & System Slowing

To find out what is causing the HDD activity install iotop and check which program is causing it:

sudo apt-get install iotop
sudo iotop

Also check with ps aux for suspicious processes. If you find a process which you think is suspicious of causing the appearance of these directories, run lsof -p PID where PID is the PID of the suspicious process. This will list the open files of that process, check if it has a file open from that directory.


Why Ubuntu accept paid apps after release?

They are accepting applications after releases for both commercial and free applications starting with 10.10 using the Ubuntu Extras Repository Which is full of software released post version release.

For further reading I would suggest How do I enable the "extras" repository?


Solved

I found the answer to this in the Ubuntu Software Centre! Make a search for Synapstiks and download the 'Synapstiks Touchpad management' tool, it works a treat.


Use gdebi instead of softwarecenter and download and install the drivers from EPSON one by one in order, start at the top and work your way down using the list below.

First, install gdebi:

sudo apt-get update
sudo apt-get install gdebi

Then, right click on the driver deb in your download folder and select "Open With", then choose gdebi from the list. Select to install the package and you will then be asked for a password. If there ate any dependency issues an error message will fully explain the details.

I believe the list below is the correct order of packages to install sequentially without dependency issues.

If you are using a 64 bit ubuntu, just download the "amd64" packages instead of "i386". i386 packages are just shown here as an example but the order remains the same.

epson-inkjet-printer-201203w_1.0.0-1lsb3.2_i386.deb
(full-feature)
epson-inkjet-printer-escpr_1.4.0-1lsb3.2_i386.deb
(generic-driver)
iscan-data_1.28.0-2_all.deb (core & data)
iscan_2.29.3-1~usb0.1.ltdl7_i386.deb (core & data)
iscan-network-nt_1.1.1-1_i386.deb (network plugin)

To fix the error run these commands and please post any more errors.

sudo dpkg --configure -a
sudo apt-get -f install

Try these commands first. You might have a problem if you stopped the installation process during an upgrade. This is what I used in the past to fix this problem. What this does is it re-builds your package list.

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

Sometimes, to deal with broken packages, install synaptic if it's not already installed:

sudo apt-get install synaptic

To start synaptic:

sudo synaptic

Then, click on "Edit", select "fix broken packages" and then click "apply". Please post any more errors.


You must enable the capture channel that you're using (in alsamixer, press Space on Capture or Capture 1).


How to install ubuntu 12.04 desktop os using kickstart

Google returns tons of links by "ubuntu 12.04 kickstart" query:
tutorials (for example, https://help.ubuntu.com/community/KickstartCompatibility),
ready-to-use scripts (https://gist.github.com/ludo/3652811) and so on.

Reading of them should be your first step before asking questions.


Notify me for voice when I am wearing headphones

You can use microphone input port along line output as headphone output with jackd and qjackctl. See here for solution How to hear my voice in speakers with a mic?

Don't forget to place your microfone near the door to your room and make it less sensitive to avoid noise! ;)


My home partition is out of space and I have dual boot

First, the "key" icon beside the lines for sda5, sda6 and sda7 show that you booted from the disk and those partitions are mounted. You cannot change mounted partitions and you cannot unmount partitions you booted from. You MUST boot from some other medium - Live USB, CD, ... Search for "Ubuntu Live" and "Gparted Live".

Then, once you've booted from the Live USB and run gparted, it should be simple to expand /dev/sda7, /home into the adjacent 814.34 MiB.


Classic GNOME desktop appears instead of Unity?

the resolution issue can be fixed by setting the resolution with the nvidia-settings manager, setting the resolution and not just apply it but save the configuration "Save to X configuration file", if I'm not mistaken this will fix unity as well.

If you get the error after rebooting (just after logging in) that your default settings aren't correct you can repeat the above but unmark the field merge settings when saving to x config.


Do you really use Putty to connect from an Ubuntu machine to an Ubuntu server? This is a highly unusual choice, I wasn't even aware Putty runs on Linux (turns out it actually does and even is in Ubuntu repositories).

A more conventional approach is to use ssh command from openssh-client package, which is a native implementation of a client for OpenSSH protocol. Install it with

sudo apt-get install openssh-client

Then you can connect to a remote machine with

ssh username@host.com

If you enable X11 forwarding with the -X switch, you'll be able to run applications on the remote machines and have them displayed on your local machine:

ssh -X username@host.com

Since you are running an proper real X server, you don't need to run xMing or anything like that.

Although, I agree that this is a solution for a strange problem - if you want to just edit text files, much more efficient options would be:

find a text-mode editor which suits you. I personally prefer Midnight Commander's editor which you can run with mc -e myfile.txt.
somehow mount the remote directory and edit files in your local text editor (using sshfs)
in KDE you can directly open a file from a remote host in any program using fish:user@host/path/to/file.txt. I think Gnome also can do something similar
make a local copy of the files, edit local files and use rsync to upload the changes
use a version control system


Nautilus icon missing (after uninstalling Macbuntu 10.10 customization pack)

Try reinstalling Nautilus and the theme containing the icon:

sudo apt-get install --reinstall nautilus gnome-icon-theme


Create a symlink within WSL/bash to the Windows path you want to simplify.
hbo@quark:~$ cd
hbo@quark:~$ pwd
/home/hbo
hbo@quark:~$ ln -s  /mnt/c/Users/Howard\ Owen winhome
hbo@quark:~$ sudo ls winhome
 ...
 Contacts                NetHood
 Cookies                 Pictures
 Desktop                 PrintHood
 Documents               Recent
 Downloads              'Saved Games'
 Favorites               Searches'
 IntelGraphicsProfiles  'Start Menu'
 Links                   Templates
'Local Settings'         Videos
 Music                   ntuser.dat.LOG1
'My Documents'           ntuser.dat.LOG2
 NTUSER.DAT              ntuser.ini
hbo@quark:~$


Do I need additional graphics drivers win an Intel HD graphics 2000?

No, Intel Video drivers are provided out of the box with Ubuntu, there's no need to install additional drivers.

The system information dialog will not show the proper driver, see this question for more details:

How can I get my graphics card to be recognized in System Info?


I have an exectuable that only opens with text editor from Nautilus

You can set that in 'preference menu':

Behaviour -> Executable text files -> Run them


So the problem is the total - 0GB, the only difference I could find is that on my (Fedora) system fstab looks like this:

/dev/mapper/fedora-swap  swap  swap  defaults  0  0

The /dev part is different because I use LVM, the difference is in the second parameter, at you that is none, here is swap


Krita can be installed from Ubuntu Software as either an apt package or a snap package. I recommend the apt package over the snap package for all image editing applications because it is more stable. Unlike the snap packages it never crashes for me, so there's a lower probability of using your work if you don't save it every few minutes, which by the way you should always do.

To install Krita in all currently supported versions of Ubuntu open the terminal and type:

sudo apt install krita


ICC color profile only loads after switching graphics mode?

Just in case anyone using bumblebee and intel-virtual-output where the HDMI port is wired to the Nvidia chip, DisplayCal and Color can only set the color profile for internal screen only.

With xcalib, you can specify the display to apply the color profile to. In the default settings, :8 is the virtual display that the Nvidia runs on:

xcalib -d :8.0 path_to_profile.icc


Apache2 syntax error AH00526 - while creating forward proxy vhost file

Probably the Apache2 proxy modules are not enabled. Try to enable the two basic proxy modules and restart the server:

sudo a2enmod proxy proxy_http           # Press [Tab] to find more modules
sudo systemctl restart apache2.service

To find the enabled modules you could use:

sudo apache2ctl -M


No Dual-Boot Option while Installing Ubuntu

Assuming you are stuck at that screenshot looking for an option to install Ubuntu alongside Windows. Here is what you need to do:

1) Select "something else"
2) Next will be partitions window, select your intended partition, format it to ext4, and set mount point as "/".
3) You may/may not create a swap partition, depends on you.
4) Post that screen set your login details etc.
5) Once installation is finished on restart you will see grub menu with Windows and Ubuntu Listed.

More Info: Dual boot Ubuntu and Windows


Why do I get an "unmet dependencies" error when trying to install WINE?

I had a similar problem with broken dependencies when trying to install wine and acroread, and a complaint when trying to install ia32-libs-multiarch, just after upgrading to 12.04 from 11.04 (passing over 11.10). It seems that some ppa's I had in 11.04 installed newer versions of applications in the system. After upgrading, the remains of these apps seemed to do some mess in the dependencies.

The solution that seems to work (until now), was found on a german ubuntu board (http://forum.ubuntuusers.de, posts from user Lasall):

First a downgrade is required and done with the following:
create the 'preferences' file:

sudo vi /etc/apt/preferences

and insert the following lines:

Package: *
Pin: release a=precise*
Pin-Priority: 2012

enter :wq to write the file. Pin-Priority must be greater than 1000.

Then you may downgrade the offending applications with:

sudo apt-get dist-upgrade

Then you may install packages that complained about dependencies, like
sudo apt-get install ia32-libs-multiarch, or sudo apt-get install ia32-libs.

Finally, you should remove the file you just created:

sudo rm /etc/apt/preferences

because else no new updates would be found.

Hope this helps you too!


problem in installing Epson Scanner in Lubuntu 15.10 (64bits)

First install the drivers and follow the instructions you mentioned.

In the file  /etc/sane.d/dll.conf,  uncomment the backend epkowa (in my case it wasn't on the list, so I had to include it).

Comment the backend epson2 (by prepending #). It seems to be in conflict with epkowa.

Proceed with the instructions by editing the file /etc/sane.d/epkowa.conf.


Sharing any Network Connection starts a connection/disconnection loop

Was solved after updating Ubuntu with the latest weekly updates. After October 20th, all problems related to sharing a Wifi/Wired are gone. Works perfectly.


Granting USB Root Access to Fender Mustang Plug

sudo touch /etc/udev/rules.d/50-mustang.rules will create an empty file with that name and then you can sudo nano /etc/udev/rules.d/50-mustang.rules to edit the file in nano.


Problem with installing Nvidia driver on Ubuntu 18.04

I often solve issues like this by using dpkg --force-all. Any conflicting packages, do

sudo dpkg --purge --force-all libnvidia-extra-440:amd64

repeat it until the offending packages are gone, then do

sudo apt-get install -f

to install the packages.


Will an upgrade of Ubuntu to a new LTS change SSH host key

FlexNet is an anti-piracy software license manager software. It embeds some signature in sector 32 as a simple check to prevent people from copying it (because pirates would never figure out how to copy disk sectors). Because it is embedded in the drive header, the FlexNet signature will survive repartitioning etc. It is possible that someone installed the software previously on the drive, perhaps it once had Windows installed?

To blank the FlexNet sector:

sudo dd if=/dev/zero of=/dev/sda bs=512 count=1 seek=32

Regarding the ssh issue, see this answer where a user in a similar situation found that an upgrade added a line to sshd conf:

HostKey /etc/ssh/ssh_host_ecdsa_key

It is possible that the same happened to you - your server was using RSA/DSA keys, no ECDSA key was declared in the config (even if one did exist on the disk), but when you upgraded the server config was changed, and now ssh is complaining.


Unfortunately, this is expected behaviour in 20.04.x. The ~/Desktop, and desktop icons work differently than prior releases of Ubuntu. This is due to changes in GNOME and Files (Nautilus).
To copy files to the ~/Desktop, open TWO Files (Nautilus) windows. One open to the ~/Desktop, and the other one open to the folder that contains the items you wish to move. Then drag the desired items between the two open Files windows.
You can also create a folder on your ~/Desktop, called, say "Work in Progress", and then drag items directly into that new folder.
In terminal, you can also use the cp or mv commands to place items on the ~/Desktop.


Upgrades have been known to cause issues, and the officially supported upgrades are LTS to LTS (12.04 - 14.04)

The quickest way to solve your type of issue in my experience is to

Boot a live cd of 14.04 and test whether your touchpad works in the live environment (Thus confirming this is a software issue, not a hardware issue)
Do a fresh install of Ubuntu 14.04; Because you bought it preinstalled, presumably from someone else; there is a chance we are not dealing with a clean version of ubuntu.

Good luck, and welcome to the community!


Bumblebee does not work in my Lenovo g580 laptop

This is from the docs:

In order to use Bumblebee it is necessary add yourself (and other users) to the bumblebee group:
# gpasswd -a $USER bumblebee

where $USER is the login name of the user to be added. Then log off and on again to apply the group changes.

Is your user in the bumblebee group? (You can use this command "as is", normally $USER will expand to the currently logged-in user. Have to execute it as root though -- just for setting up, not for using optirun.)


Free space created for installation of Ubuntu 'unusable'

With the classic MBR, you cannot allocate more than four primary partitions, in your case, you can only expand or delete sda4 and create an extended partition. In your case, converting sda4 from primary to extended will permit to create any logical partitions that you may require.


I wished to do the same thing, but I chose using a private repository made using reprepro over PPAs. All my clients are on the same LAN, so it's simpler for me.
I think this is pretty workable irrespective of whether you use PPAs or a private repository.

Modifying existing configuration files is best handled by using dpkg diversions, IMO. config-package-dev is a blessing for this. The Debian Wiki is a good starting point for information on this.
Adding script files or your own software isn't that difficult by packaging them. There are plenty of packaging guides. Again, the Debian wiki is a great starting point. It's simpler to make binary packages than the intro, which will be the case with scripts and configuration files.
Adding new software from other repositories can be done by making them dependencies of your packages. Specify an exact version or use apt pinning.
Unattended upgrades for custom repositories is already handled: How to enable silent automatic updates for any repository? I don't know of any way a server can push updates to a client. You might want to consider puppet (via kicking) or its ilk. Or you might write a script on the server which uses SSH to run updates on the client. Or have a script which checks for updates when the network comes up.
Above all, ensure that your package maintenance scripts (preinst, postinst, prerm, postrm) are idempotent and that package removal undoes all changes. These scripts can do a lot of things, but do not do anything affects apt or dkpg in them. Minimise the work done in these scripts.

In my case, I use a package to configure LDAP and NTP, add a custom global vimrc enabling common options, make various configuration changes (like enabling sudo for a group, banning shutdown), adding an unprivileged local user/group, etc. Another package adds our self-generated CA certificate and repository signing key and marks them trusted in the postinst script, and adds an entry in sources.list.d for our repository.

I haven't yet converted all the systems to this process, so I can't comment yet about its effectiveness.


Unity Launcher icon size slider jumps back to default

In my case this was because the ~/.config directory was not belonging to me. So the fix was:

sudo chown <username> ~./config

and trying again.


Removable HDD defined in fstab causing problems at startup when not present

For an external drive, in order to prevent hold-up of the boot, the nobootwait option should be added to the fourth column in the /etc/fstab. Moreover, you should preferably use the UUID of the drive instead to ensure the right drive is always mounted (and see @Marty Fried’s comment to your question) so you get:

UUID=XXXXX  /media/HDDMaker  auto     rbind,x-gvfs-show,x-gvfs-name=HDDMaker,nobootwait          0 0

This post explains when and why this is a good method.

Furthermore, since fstab is run only on startup, unless you write a specific process to keep re-running it, you have to do a manual sudo mount -a
to mount the disk if added afterwards, if you use the fstab option to auto-mount.

Therefore, a solution you could try instead, if you have Desktop Ubuntu, is to eschew fstab for this solution


what version of ubuntu did you install ? desktop is the one version of ubuntu which support unity as desktop manager , because ubuntu server edition start with a shell without GUI optimize for this case.

How to get it ?

Ubuntu server Edition

From Ubuntu Docs (https://help.ubuntu.com/community/)

What's the difference between desktop and server?

  The first difference is in the CD contents. The "Server" CD avoids
  including what Ubuntu considers desktop packages (packages like X)
  but includes server related packages (Apache2, Bind9 and so on). Using
  a Desktop CD with a minimal installation and installing, for example,
  apache2 from the network, one can obtain the exact same result that
  can be obtained by inserting the Server CD and installing apache2 from
  the cd-rom.

  The Ubuntu Server Edition installation process is slightly different
  then the Desktop Edition. Since by default Ubuntu Server doesn't have
  a GUI the process is menu driven, very similar to the Alternate CD
  installation process. Ubuntu server install by default a server
  optimized kernel. Ubuntu Desktop will receive a 3 years support,
  Ubuntu Server will be supported for 5 years.

How to check if ubuntu desktop or server is installed? (see Paweł Karpiński answer)

How to Remote Administration (like putty, remmina etc...)?

ubuntu server recommend  this two package :

Openssh server
Puppet

Chapter 5. Remote Administration

P.S: If you have got a desktop installation you can see this post, the first option doesn't work because there is a bug:

How do I boot into console mode?


Ubuntu Dash is blank. How do I get the apps back?

If the applications stoped showing in Unity Dash than you should first kill this daemon:

pkill -f unity-applications-daemon

The next step go to your /home directory and press CTRL+H to reveal hidden files. Than search for .cache  folder open it and delete software-center catalog.

Afterwards restart the applications daemon:

/usr/lib/unity-lens-applications/unity-applications-daemon

If you still don't have anything in the Dash than press ALT+F2 (to bring up run command dialog) type there:

unity --replace

and run that command. If that didn't do the trick try rebooting computer.


Moving flickering graphic on Ubuntu desktop

I have had a similar problem long ago and it turned out to be a hardware failure. Removing the proprietary drivers helped because the standard vga seemed to be easier on the card.

Still, I do not know enough about display technology to rule out other possibilities in your case.


What is the correct way to use the "scroll-event" signal (on an indicator) for Qt?

Have a look at the reference manual: https://web.archive.org/web/20130604060558/http://developer.ubuntu.com/api/ubuntu-12.04/c/appindicator/libappindicator-app-indicator.html#AppIndicator-scroll-event

arg0 : The AppIndicator object
arg1 : How many steps the scroll wheel has taken
arg2 : (type Gdk.ScrollDirection) Which direction the wheel went in
user_data : user data set when the signal handler was connected.


How do I clear the SMB credential cache?

I don't have a Linux box booted at the moment, so I can't provide specific instructions - but Gnome (and probably XFCE) maintain a 'keyring' of credentials. Have you tried looking around for your desktop environment's keyring and clearing that?


working with command hp-plugin for printer

Try sudo apt-get install hplip-gui or sudo apt-get install python-qt4.


Will 14.04.3LTS automatic be upgraded in my 14.04 TS?

You don't have to manually download and install 14.04.3. It will automatically be done through the Ubuntu software center.

If you want to perform the update right now, just run the following commands :

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


Accidentally created a file called "--help". How to remove it?


Does the Dual-boot in secure mode works the other way?

I can't say that it definitely occurs in that case, but I don't see why it wouldn't. The problem is basically a GRUB limitation. As such, the order of OS installation is unlikely to make any difference, unless that results in some subtle change to the GRUB configuration that works around the problem. As I know of no such simple workaround, it seems unlikely that order of installation would make any difference even if that changed the GRUB configuration. Furthermore, installing Windows after Ubuntu will cause GRUB to become the secondary boot loader, which means you'll have no OS boot selection menu when you start -- you'll just boot straight to Windows. This is easily corrected if you know how, but it's an extra step.

FWIW, the bug you refer to is reported here. If you're affected by the bug and haven't already done so, please click the "Does this bug affect you" link and confirm that you're affected. This will raise the "heat" on the bug and make it more likely that it will be fixed.

Also, if you're affected by the bug, a number of workarounds are described in the comments. Aside from disabling Secure Boot, these include using the firmware's own boot manager (comment #9) and using my rEFInd (comment #11; note that installation is easier today than it was two years ago, when I posted that comment -- simply installing the rEFInd PPA or Debian package should do almost everything automatically, provided rEFInd detects a valid copy of Shim).


I have an old piece of hardware I want to run Ubuntu, can I reformat using the 13.04 download on my Dell 700m?

Yes, but according to the specs you have on your machine I'd recommend to use Lubuntu. Also, it'd be wise to increase the RAM to, at least, 1GB.


While reinstalling Ubuntu is probably the easiest way, it's worth pointing out that it's possible to recover without reinstalling everything.

To do this, manually download the python3.6 package (and its dependencies), and manually install them using dpkg (bypassing APT, which requires Python). Once that's installed, apt should work again, and so apt install ubuntu-desktop will restore your system. (If apt still doesn't work, you might also need to download and install any missing dependencies.)

In the future, if you need to reinstall a package, instead use

sudo apt get install --reinstall python3.6

which will reinstall the package without having to remove the dependencies.


Is it OK to use 64bit ubuntu for development purposes?

With FPGA development you're building a cross-compilation toolchain regardless(the Xilinx software), so it makes no difference.  64-bit is fine.  There is a case to be made for developing for i386 on i386 and not needing to cross-compile.  In this case, it's a moot point.


Ubuntu boot problem at start black screen white cursor

Have you tried using the Boot-Repair tool? It is one of the suggested tools for boot repair on Ubuntu's Help pages.

Assuming you can/know how to change your BIOS settings to boot from a USB flash drive, you could use your Windows HDD to download it and make a bootable USB stick to try and repair GRUB with your Ubuntu HDD.

You would need to download a utility like UNetbootin and the Boot-Repair tool on your Windows OS, then once made you simply swap your Ubuntu HDD back into your machine and boot from your USB stick.

1. On your Windows OS, obtain UNetbootin from here. The UNetbootin tool is a simple .exe file that you can simply run; no permanent install is necessary.

2.  Download the Boot-Repair tool from here. It will be in the form of an .ISO file that UNetbootin can read to create your bootable USB flash drive.

3.  Insert the USB flash drive you want to use into your computer.

4.  Run the UNetbootin tool you have already downloaded to install the Boot-Repair tool on the USB flash drive.

5.  In UNetbootin, you will have to select the Ubuntu distribution and version in the provided drop-down menus. Make sure you choose the appropriate version of Ubuntu that you have on your HDD (either 14.04_Live or 12.04_Live...I'm assuming at this point you have one of those, since you didn't specify which version of Ubuntu you have installed)

6.  Select the "Diskimage" radio button near the bottom, make sure "ISO" is selected in the dropdown box, then browse/select the Boot-Repair ISO file you downloaded.

7.  Make sure "USB Drive" is selected in the "Type" dropdown box, and assign any drive letter you wish (if you don't want the default drive letter it selects).

8.  Click OK, then give the UNetbootin tool a few minutes to create the USB drive.

9.  Power down your computer, and swap your Windows HDD for your Ubuntu HDD.

10. Power back on; if you have not already configured your BIOS to boot from USB, now is the time to do so.

11. Once your computer boots to the USB drive, use the Boot-Repair tool to repair GRUB. If you are not an advanced user, I would recommend using the default "Recommended Repair" option since you are not dual-booting another OS on that HDD.

Other detailed instructions can be found at these locations:

https: //help.ubuntu.com/community/Boot-Repair

http: //sourceforge.net/projects/boot-repair/

I apologize that the above two links have the extra space; I can only post two links in total per post in these forums.

Hope this helps; make sure you let us know if this works, or if you need any more help. If you need more help, please make sure you are as detailed as you can be (computer type, Ubuntu version, any errors you may be getting, etc etc). The more detail we have, the better we can be of help.

Alternately, you could use the Recovery Mode that is already installed with Ubuntu if you can access it.

When you power on your computer, hold the Shift key as soon as your BIOS screen finishes loading, or has almost finished loading. You should get some boot options, one of which will be Choose Advanced Options for Ubuntu.

The next screen, you should choose the first recovery option, which should look something like this:

Ubuntu, with Linux 3.13.0-39-generic (recovery mode)

The third menu will provide several options, but in your case I believe the dpkg option, which attempts to restore broken packages, may be of help in restoring your Ubuntu system. Again, let us know if this helps or if you need further assistance.


How do I rebuild a corrupt dpkg status file?

You should be able to work with a previous known good status file and update from there. Every time you do an install or a update, the status file is saved to a gzipped backup under /var/backups. Doing an ls -l dpkg * on the directory shows:

-rw-r--r-- 1 root root   2266732 2010-09-30 08:35 dpkg.status.0
-rw-r--r-- 1 root root    624182 2010-09-29 08:49 dpkg.status.1.gz
-rw-r--r-- 1 root root    623844 2010-09-28 08:55 dpkg.status.2.gz
-rw-r--r-- 1 root root    620358 2010-09-24 11:04 dpkg.status.3.gz
-rw-r--r-- 1 root root    619021 2010-09-23 15:34 dpkg.status.4.gz
-rw-r--r-- 1 root root    619013 2010-09-23 08:03 dpkg.status.5.gz
-rw-r--r-- 1 root root    618968 2010-09-21 08:33 dpkg.status.6.gz

There's also a backup of the file created in the /var/lib/dpkg/ directory named status-old. Doing an ls -l status* on the directory shows:

-rw-r--r-- 1 root root 2266732 2010-09-30 08:35 status
-rw-r--r-- 1 root root 2267191 2010-09-30 08:35 status-old

So, to recover from a corruption, you should be able to do the following:

1. Make a backup of the corrupt status file:

mv /var/lib/dpkg/status /var/lib/dpkg/status_bkup

2. Copy an recent dpkg status file into place from either of the sources above:

either

cp /var/lib/dpkg/status-old /var/lib/dpkg/status

or

cp /var/backups/dpkg.status.#.gz /var/lib/dpkg/
gunzip -d /var/lib/dpkg/dpkg.status.#.gz
mv /var/lib/dpkg/dpkg.status.# /var/lib/dpkg/status

3. Then run apt-get update:

sudo apt-get update

That should do it.


Let GNOME-Shell act like Unity by searching files or pressing ALT-key

Gnome team removed regent files recently. A workaround has been described here:

No recent files in GNOME Shell

also

Is there a shell-independent HUD-like menu search tool for Xfce/GNOME/Cinnamon?


In my case, the network where the client was connecting from was a 192.168.1.* subnet and the server side network was setup the same. I changed the subnet of one to 192.168.25.* and it started working.


Cannot bind shortcut to diodon history menu although it works from terminal

I tried the workaround @vanadium has found and adding delay to solve race condition worked for me (Xubuntu 16.04.3):

bash -c "sleep 0.1 && diodon"


I have installed youtube-dl but I can not find out how to use it

This is a command line tool.  Open a terminal and input youtube-dl {url of the video you want to download} and hit enter.  It'll download the youtube video and put it in your home folder.


Use snippet below:
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-ppa
Package: *
Pin: release o=LP-PPA-ondrej-php
Pin-Priority: 1337
EOF


Well,try to search for a tool named "additional drivers" and see if it finds any proprietary driver for wireless(especially with broadcoms).
Other solutions right now i cannot see.
And in the future,try to tell us more about ur system(others might need that info to know before to answer)


Limited display resolution selection with NVidia gpu & drivers

You should be able to manually add resolutions using cvt and xrandr if you are sure your graphics and monitor support the modes. See my recent post here and the link there:
Can't set the native resolution for an external VGA 1080p monitor with xrandr or settings


Creating a directory of recently created files

If using Zeitgeist and FUSE is feasible for your scenario, Zeitgeist Filesystem enables sorting files and other Zeitgeist events by time in a userspace filesystem.

Another (simpler) solution might be to use something like fileschanged in your script to monitor your directory for incoming files.


How can I check the bandwidth consumption of any command in Ubuntu?

Try health-check, this will tell you how much data has been transferred and how long it ran for, so you can deduce the bitrate from that.  For example, if your userid is 'username', use the following:

sudo health-check -u username -f -c -r  curl -I trafficinviter.com


How can I install Xubuntu 14.04 with wubi?

Xubuntu 14.04 cannot be installed with wubi installer any longer. Kubuntu 14.04 can be installed with wubi though, and it might be a better choice than Xubuntu, at least as far as I am concerned, and you can choose Kubuntu instead of Xubuntu, it looks nice and it runs pretty well once you stop akonadi server and disable nepomuk search plugin. But there is a trick, you have to follow this tutorial to be able to install Kubuntu 14.04 inside Windows (with wubi installer).

A far better choice would be to try the 'new' Xubuntu 12.04.5 which is an excellent distro with a very stable kernel, and this one can be installed with Wubi installer without any headaches. To do so:

Download your iso image from this link, choose either precise-desktop-i386.iso for a 32bit install if you have a 32bit Windows system, or precise-desktop-amd64.iso for a 64bit install if you have a 64bit Windows system.

After you download the iso image, you can download the wubi installer from this link, it is located right at the end of the list. Next you should create a temporary folder on your desktop that you can label ubuntu and place inside this new folder both the iso image that you just downloaded and the wubi installer.

And finally, you can start installing Xubuntu inside Windows by running the wubi installer from your temporary folder. You cannot use your entire hard disk (the second one) to install Xubuntu on it because you can allocate up to 30GB of space and no more when using wubi installer. So you can partition your second hard disk into one or more NTFS drives, and then choose only one of them to install Xubuntu in there.

Remember, you can use max. 30GB for Xubuntu (which is more than enough), and leave the rest of space for storing your windows data (movies, music, docs and pictures). You can even move or copy video and/or audio files that you download while using Xubuntu anywhere on your 2 hard disks and run them either from Windows or from Xubuntu.

Choose your username, a password, don't forget to also choose from the Wubi dropdown menu Xubuntu instead of Ubuntu or Kubuntu or something else. Press install and wait for the installer to copy files and create the virtual disks. At the end you'll be asked to restart your computer to finish Xubuntu installation. Reboot and wait until Xubuntu 12.04.5 is installed on your computer.


Things that didn't work.

sudo apt-get purge libopencv-* python-data python-opencv
Uninstall the 2.4.11 and Installing the OpenCV3.1 from source then Uninstalled.

After I reinstall and uninstalled the 3.1 version I still can import cv2 without any problem, from cv2.__file__ I remove the '/usr/local/lib/python2.7/dist-packages/cv2.so' file.

Then I installed the 2.4version from source and apt-get install python-opencv the cv2.__version__ is OK now.


aptitude: symbol lookup error: aptitude: undefined symbol

From this launchpad bug it looks like running the following will fix your issue:

sudo apt-get install aptitude libapt-pkg4.16

If you get unable to locate package libapt-pkg4.16 run this:

apt-cache search libapt-pkg | grep 'package management' | cut -d ' ' -f1

And replace libapt-pkg4.16 with whatever output you get from there (for me on 14.04 it's libapt-pkg4.12)


Community forum and resources for Ubuntu tablet

The main resources I am aware of are the following:

The Ubuntu Touch Wiki for general (mostly technical) information
The Ubuntu Forums for discussion (especially the "Ubuntu Phone and Tablet" category)
The Ubuntu Touch Google+ Community (with several active Canonical developers)
And of course AskUbuntu with the ubuntu-touch, tablet, m10 and related labels when you have specific questions.

Feel free to edit this answer to add other relevant resources.


I had a similar problem, it was resolved by following the steps here

http://www.upubuntu.com/2012/10/how-to-fix-unity-and-wireless-problems.html

WiFi Stops Working After Upgrading To Ubuntu 12.10 (Broadcom Wireless cards)

You can fix wifi problems using two methods:

Either connect to the internet via wired connection and run this command:

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

Then reboot your system.

Or use the following commands:

sudo apt-get install linux linux-headers-generic kernel-package

sudo apt-get install --reinstall bcmwl* firmware-b43-lpphy-installer b43-fwcutter

Finally, reboot your system.

If that didn't help, try these commands:

sudo apt-get remove bcmwl-kernel-source

sudo apt-get install firmware-b43-installer b43-fwcutter

sudo reboot


Internet problems after upgrading from 14.04 to 16.04

The first thing could be a DNS problem. Check your router and/ or network settings. Maybe try by checking your resolvconf like here: DNS_PROBE_FINISHED_BAD_CONFIG error in Ubuntu 14.04
The second thing could be a bug, have you tried with a different program? Maybe even the terminal client?

You can try more test using some procedures recommended here: https://support.rackspace.com/how-to/testing-network-services-with-netcat/


juju end point does NOT setup do to access to https:/streams/cannoical/com - ppc64el

Resolution:

On endpoint check /var/log/cloud-init-output.log

If cloud-init-output.log contains below you need to add CA certificate to talk to the

https://streams.canonical.com.

You can do this via x11 interface, bring up firefox and then add certificate via firefox.  See How do I setup vnc for ppc64 ubuntu? on how to setup x11 for vnc (if ppc64le) because normal vncserver does not work.
In Firefox use this as address: https://streams.canonical.com/juju/tools/releases/juju-1.24.6-trusty-ppc64el.tgz.  Now add the certificate.
If well versed in adding certificates to a server you can proceed to do it
that way too.

Note that is is possible the certificate was OK but company firewall access was lost (for IBM this is called BSO.  This is the second reason that doing bootstrap for target host may fail.  If you did above procedure and have to do it second time you will see the BSO access input. Just

satisfied that and redo the juju bootstrap.


I cannot access terminal app from desktop

As Scott mentioned in the question comments, the keyboard shortcut of Ctrl + Alt + T should normally launch a terminal window. Another way I can suggest is opening the applications menu and looking for alternate terminal programs.

When using Lubuntu (a derivative of Ubuntu using LXDE) I tend to find 2 - 4 various terminal programs available from the applications menu. I'm not sure if there's a similar case in the desktop edition of Ubuntu (I only run a server edition installation), but it's certainly worth looking.

It sounds like some of the issues you encountered could be caused by permissions. That would also be worth exploring.


Want to write a bash script to automate creating program files

Examine the script below. I recommend using cat with heredoc structure to write out large chunks of text with substituting variables. Also, break down the code into functions - it will be far more readable and easier to debug.

Some of the technical aspectes have already been mentioned here. I'm using heredoc structure with cat to write out header and body. tee command is used to write out the info to both stdout and to file. That way you can see on command-line that if anything went wrong, you don't have to open the file - just delete it and make new one. As for existing filename, that's simply a while loop that keeps bugging the user until they actually enter the name what doesn't exist.

Script

#!/bin/bash

make_header()
{
    timestamp=$(date)
    echo "/*"
    cat << EOF
 * URL:
 * Author: $1
 * Timestamp: $timestamp
EOF
echo " */"
}

make_body()
{
    cat << EOF

#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main(int argc, char* argv[]) {
    // code
}

EOF
}

check_name_exists()
{

    while [ -e "$prog_name" ];
    do
        echo ">>> $prog_name: file exists, please choose different name:"
        read prog_name
    done
}

main()
{
    local prog_name=""
    local author
    local default_name="my_prog.cpp"

    echo "Enter author name:"
    read author
    echo "Enter program name:"
    read prog_name
    if [ "x$prog_name" == "x"  ];then
        prog_name="$default_name"
    fi

    check_name_exists

    header=$(make_header "$author")
    body=$(make_body)
    echo "$header" "$body" | tee "$prog_name"

}
main

Demo:

$ ./skeleton.sh
Enter author name:
John Doe
Enter program name:
code.cpp
>>> code.cpp: file exists, please choose different name:
code.cpp
>>> code.cpp: file exists, please choose different name:
code1.cpp
/*
 * URL:
 * Author: John Doe
 * Timestamp: 2016年 11月 06日 星期日 12:42:01 MST
 */
#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main(int argc, char* argv[]) {
    // code
}


how to sketch mechanical drawings and pcb of the electronic device?

I'd recommend starting with Electric

I recommend Electric   for beginners as an easy to use software that will handle both basic PCB layout and also basic electro-mechanical drawings.

It has a very nice online/PDF manual available here.

Here's a sample screenshot with all it's capabilities (from their website; ignore the Windows, the software is in Java and runs fantastically on Ubuntu):

For a much more comprehensive suite of EDA tools, look at gEDA . This will let you lay out complicated PCBs, schematics, VLSI design, SPICE simulation, etc.


I had something similar happen on a dual boot machine once. I followed this helpful thing

To summarise:

Restart the computer and select your ubuntu partition
Keep tapping the Tab key as the computer starts. Tap continuously until GRUB Start-up Menu displays.
Select Advanced options for Ubuntu in the GRUB menu.
Select the last known good Kernal version used by your OS. Choose the recovery mode version of it.
In the next menu, use your cursor keys to highlight in order:
Update grub bootloader. Press Enter.
Enable networking. Press Enter.
Drop to root shell prompt. Press Enter.
Continue the software upgrade when the shell prompt is ready. Enter the command:

  dpkg –configure -a

Restart the computer by pressing the keys Ctrl+Alt+Del if the system halts while dpkg is installing software. Restart the computer by typing sudo reboot into the command line if dpkg completes software installation properly and exits to the command prompt.
Try to load Ubuntu with a normal boot. That is, when the computer begins to reload let it load to the desktop login screen.


Cannot find sound settings menu in Ubuntu 14.04 after removing pulseaudio

(Re?)Install the "unity-control-center" package (this depends on the libcanberra-pulse as well), i.e. run

sudo apt-get install unity-control-center

in a terminal. This fixed it for me. :)


How can I add screensaver to startup applications?

xscreensaver used to be the default screen saver in gnome and unity. A few years ago gnome came out with "environmentally friendly" screen saver that turns the screen black. Subsequently they broke xscreensaver with all it's fancy screen effects.

To use xscreensaver you must remove gnome-screensaver. From:

How to Install, Change, Autostart Screensaver in Ubuntu

To summarize the commands:

sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra
sudo apt-get remove gnome-screensaver
xscreensaver -nosplash

Visit the link for screenshots and instructions of adding to autostart.

Also note after upgrades you may have to remove gnome-screensaver again.


NVIDIA drivers 410 break Ubuntu 18.04 with GTX 1050

Okay, I've managed to solve the problem on my own. Steps:

1 Install drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-driver-396

2) edit GRUB

nano /etc/default/grub

Edit GRUB_CMDLINE_LINUX_DEFAULT into

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"

Then:

sudo update-grub

3) edit GDM settings

sudo nano /etc/gdm3/custom.conf

Remove the # from # WaylandEnable=false

Hope this will help someone.


Brother MFC-295CN Printing improperly after enabling Google Cloud Print

Well turns out for me it was Google Cloud print that caused this. I removed my printer from the Google Cloud Print settings, signed out of Cloud Print from my mobile and printing is back to normal.


Because the boot loader was wiped out with your clean Linux install, it doesn't know how to go get a fresh version of the MacOS.  Try this KB article for a clean Mac install:

http://osxdaily.com/2014/10/18/clean-install-os-x-yosemite/

You're going to put the OS on a USB drive, then hold down command during boot, should let you boot the MacOS Install off the USB Drive.  This is the same procedure that you follow when installing after replacing a hard drive  (some newer macs don't need this, and you can just hold down the command button during boot, but anything more than a couple years old does).  If you can't get access to the web to make a boot USB you can stop by an Apple Store, the help desk will drop a clean install of the OS on the computer for you (I don't think they charge for this, but don't quote me on that, they might charge your $20 or so for the OS if you want the latest version.

Best of luck.


Where are my rhythmbox library folders stored?

When you select your directory in the preferences, it automatically reverts to "multiple locations". This is because there is at lease one other location set automatically by the Ubuntu One Music Store:

~/.local/share/ubuntuone/Purchased from Ubuntu One/

Now, don't delete this directory :-)

You can check what directories are set as library locations by opening the gconf-editor (hit Alt+F2 and type gconf-editor), then navigate to apps → rhythmbox and check the "library locations" key.

This is what it should look like after you've set your library location to ~/Music:

I recommend you just leave it there, and just use the gconf-editor to make sure there aren't any other locations set. But you can also delete the u1 music store entry (though I wouldn't be surprised if the ubuntu one plugin just added it again).

In case you do decide to delete either the directory, the gconf entry for it, or both, be safe in the knowledge that you can't break anything by doing that, none the less, you may as well just leave them be; in case you decide to use the Ubuntu One Music Store one day. They don't slow down Rhythmbox at all; you won't even know they're there.


Disclaimer: This is almost identical to my other answer.

Since your program won't generate dependency information, we'll add it in ourselves. For example, you will need to edit the line that starts with Depends: in the format:

 Depends: package1, package2|package3

if you need package one, and one of package 2 OR package 3.

Open gedit or nano and paste:

#!/bin/bash

if [[ -z "$1" ]]; then
  echo "Syntax: $0 debfile"
  exit 1
fi

DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb

if [[ -e "$OUTPUT" ]]; then
  echo "$OUTPUT exists."
  rm -r "$TMPDIR"
  exit 1
fi

dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN

if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
  echo DEBIAN/control not found.

  rm -r "$TMPDIR"
  exit 1
fi

CONTROL="$TMPDIR"/DEBIAN/control

MOD=`stat -c "%y" "$CONTROL"`
vi "$CONTROL"

if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
  echo Not modfied.
else
  echo Building new deb...
  dpkg -b "$TMPDIR" "$OUTPUT"
fi

rm -r "$TMPDIR"

Same the file as debedit.sh, and make it executable with chmod +x debedit.sh.

Then, run debedit.sh deb_file_output.deb for the file, and edit the correct line (or add it). Save, and then use your newly created .deb file to distribute.

Source: http://ubuntuforums.org/showthread.php?t=636724