You can list all iptables rule settings by the -L (--list) option of iptables:

sudo iptables -L

For more verbosity, add -v:

sudo iptables -vL

For not to do name resolution (only numeric output), add -n:

sudo iptables -nvL

Note that, by default it will list only filter table entries, for other tables you need to explicitly mention the table type using -t (--table) option, e.g. for nat table:

sudo iptables -t nat -nvL

Also check man iptables to get more idea.


libodbcpsql was replaced with psqlodbca back in 02, install that instead.


Modem doesn't connect to internet (H9601 prolink)

Open up a terminal from Applications -> Accessories. Type:

gksu gedit /etc/modules

At the bottom of the file, make two new lines, like this:

usbserial
option

Then close the editor program and save it. Reboot the computer and hopefully you’ll be right from now on!


Ubuntu 15.10 64bit Desktop invalid Checksums

If the checksums don't match, then you have a corrupted file. I've downloaded and checked it now and everything is OK for me. You should download it again via BitTorrent (recommended).


Keyboard cursor loses focus when I'm typing

This is very likely because your hand brushes the touch pad while you're typing.

If you pull up the settings dialog (I think you can click the cog thing up in the top right and then click settings or control center or something along those lines ... alternatively, hit the super/windows key and start typing "settings" and it should show up) you can go to the "Mouse and Touchpad" section. There will be an option you'll want to check in the touchpad tab: "Disable touchpad while typing"


Ubuntu guest VM with host-only adapter - how to APT?

You can set up a mirror of the packages you need on your local machine, and then point /etc/apt/sources.list at that mirror. https://apt-mirror.github.io/ is one such tool for doing that.


Unable to download SLURM - sacctmgr issue

Given the fact that I'm running Ubuntu 18.04 WSL, I was actually able to search the sub-directories leading into the Ubuntu subsystem, find the file, and delete it.
Everything for me is saved in the default /mnt/ folder in my Windows system, so I was able to locate it in my file as per the set-up instructions for the Ubuntu WSL.


I had the same problem and managed to fix it by booting into a live instance of Kubuntu.
I had to remove and purge kodi from my hard drive's root directory.
so mount your system partition and

sudo chroot /media/ubuntu/<system directory name>

Now that your system disk is your root directory you can remove koki

sudo apt-get remove koki* -y
sudo apt-get purge kodi* -y

That did it for me. After a reboot my system came up normaly.

Hope that works for you.


Is there an alternate version of XMouseButtonControl for Linux?

go to

system settings --> keyboard --> shortcuts

click the media functions you want to change and then hit the button on the mouse you want to assign it to. had this setup on my old logitech G400...


Ubuntu 17.10 in VirtualBox: "A start job is running for Hold"

I believe this is because the 5.2.6 VirtualBox guest additions are broken, as mentioned on the VirtualBox website:

  Important: The Guest Additions which come with VirtualBox 5.2.6 and 5.1.32 do not work properly on Linux guests with 3D enabled. Here are updated versions for 5.2.6 and 5.1.32.


How to upgrade to the Unstable Ubuntu Builds

use back in time

http://backintime.le-web.org/

back up the home directory and /etc/apt, that should do it, unless you have something stored elsewhere, all your programs are there, move the back up to an external hard drive/usb and do the upgrade using the iso, download back in time on the new system and restore.


It is not a crash. It just fails to start because of wrong configuration option:

Apr 17 12:34:14 hn0-hdi-us sshd[1437]: /etc/ssh/sshd_config: line 20: Bad configuration option: KexDHMin

The option ServerKeyBits is also deprecated in current OpenSSH. I don't think this option is there shipped by default Ubuntu so just remove it. It is not useful for anything (unless you use SSH-1 protocol for some reason, but in that case you are already screwed).


You could just pass the command and all the arguments:
SanityCheck () {
    if "$@"; then
        echo yes
    else
        echo no
    fi
}

SanityCheck sudo cp test.txt test.dat

Or, execute the function immediately after running the command: $? is the exit status of the last command
SanityCheck () {
    if (($? == 0)); then
        echo yes
    else
        echo no
    fi
}

sudo cp test.txt test.dat
SanityCheck


Work around.

Open your .bashrc:

gedit ~/.bashrc

Add this line to the end of the file:

alias g++='g++-6'

Then source your .bashrc:

source ~/.bashrc

One liner:

echo "alias='g++=g++-6'" >> ~/.bashrc; source ~/.bashrc


Workarounds for mouse pointer visibility in screen sharing sessions?

I have found this workaround, based on an answer to a SE question and first suggested by a user on a Microsoft discussion forum. It works for me in linux mint 19.3 MATE, Ubuntu 20.04, and 18.04.4 (tested both ubuntu versions on a vmware machine).

Download find-cursor from https://github.com/arp242/find-cursor
Inside the folder of this library, type make and sudo make install.

You can ignore warnings (mostly related to docs).
If you see an error, you probably need to install some X11 libraries:

sudo apt install libx11-dev libxdamage-dev libxrender-dev libxext-dev

In a terminal, use this command:

find-cursor --repeat 0 --follow --distance 1 --line-width 16 --size 16 --color red

The following gif shows the pointer on Ubuntu 18.04 after I followed the previous steps. Notice that the mouse is not visible  until I used the find-cursor command (recording with Kazam but it also happens with teams). So far, the mouse works normally (I use it to take notes and draw lines on xournal while I screenshare with teams).


onboard onscreen keyboard missing key symbols

The solution that worked for me was to install the package "fonts-dejavu-core". After installing the "fonts-dejavu-core", all the symbols display correctly.


xinput list

will give your device name (look for TouchPad)

xinput list-props "Touchpad Name"

This will give the available properties of your touchpad. You will probably find that the property is still "Synaptics ..." based, which means that you would type something like:

xinput set-prop "Touchpad Name" "Synaptics Finger" 50 90 255

I use the following properties (replace Touchpad Name with yours from the xinput list command) for mine to reduce the overall sensitivity:

xinput set-prop "Touchpad Name" "Synaptics Noise Cancellation" 20 20
xinput set-prop "Touchpad Name" "Synaptics Finger" 50 90 255

The above 2 commands seem to do the trick for me. Before them my touchpad was basically unusable.


split the file using zip:

$ zip -s 100m archive.zip output.mp4

And reassemble with:

$ zip -s 0 archive.zip --out output.zip

Last unzip the archive:

$ unzip output.zip


How does one upgrade ubuntu (any version to latest version) using an ISO image?

You can make a bootable USB or DVD. Load it up like a fresh install then you can pick the option to "Upgrade".


Dell Latitude E5570 headphone not working

My bet is that this is a driver issue and it just gets solved when the update comes for it...

After a few weeks probably because of a system update the headphone just started to work... and after a week it stopped working. Now when the headphone is not working I just switch the driver to no driver from the available drivers and now this usually does the trick (a month ago this didn't help).

Interestingly enough, another thing that I have observed is that with the microphone mute button that is the Fn+F4 the headphone gets muted/unmuted.


have you tried all the above methods explained in your link.
you can also try:

apt-get --reinstall install unity

and if not succeed then,

apt-get install ubuntu-desktop


Just installed Ubuntu, but my wireless networks aren't showing up

Since your question is not too descriptive, i would suggest a simple solution.

Connect to an ethernet cable. Goto Software Center and download "Additional Drivers" software. Run it, and then see if it finds any wireless drivers available on your machine, select it, install it and reboot. Check to see if it works.

Regards, WinuxUser


Though I can't speak directly, to your problem with Open Drive, I can offer an alternative for syncing files on Linux systems.

For syncing cloud services that don't supply a Linux syncing client, I recommend rclone. It is very well documented for a number of services, though I've only used it for Google Drive and Box. It doesn't offer a continuous synchronization option, but one could be constructed using crontab. There is no GUI, so that may be a drawback for your particular use-case.


Every package that is in main  and restricted appears to be supported, everything else not.

There are some aptitude query examples available; for a ppa-less install this should yield the currently supported list:

aptitude search "?not(?section(universe)) ?not(?section(multiverse)) ?installed"

However the easiest is to use synaptic, select installed and click on the column with the ubuntu icon. All the installed packages that no longer have this icon are not supported. You can also add a custom filter to synaptic that will achieve your goal.


Removing "install Lubuntu" icon from persistant USB

To remove the "Install Lubuntu" icon, you could remove the installer, Ubiquity. To do so, you'll have to customize the ISO. When you arrive at the step where you chroot into the extracted ISO, you can uninstall the installer with

apt-get purge ubiquity

The resulting ISO will then have no installer. This should also remove the installation icon from the desktop. If it doesn't remove the installation .desktop file in /home/lubuntu/

To remove the Installation options from GRUB, open the file USBROOT/boot/grub/grub.cfg in a text editor. This file contains all boot menu entries in the following format:

menuentry "Name" {
    # some config
}

Remove the entries you don't need, then save. If you use UNetBootin for creation of the boot sticks, also edit the file USBROOT/syslinux.cfg. Here the format of the entries is diffrent:

label ubnentryX
#config

Remove the entries you don't need, and decrement the following entry numbers (X) so they are in a sequence starting at 0. Again, save and exit.


Do I need to install drivers for headless server?

If you are using ubuntu server (or minimal via net-install) without X server and any desktop environment then you shouldn't install any graphics drivers (neither the opensource nor the proprietary) as they have xserver as dependency (see this http://packages.ubuntu.com/xenial/xserver-xorg-video-nouveau for the nouveau driver). The virtual terminal (console) that ubuntu uses (accessible with ctrl + alt + F1-F6 at any ubuntu flavor) doesn't need X server or graphic drivers to work.


Motherboard replaced - How can I recover GRUB?

Part 1 - Creating the installation media
3rd party installation media creation tools like Unetbootin are not creating the USB installation media properly in many cases. A tool to create a correctly working installation media is GNOME Disks, it's available in the repositories of nearly every Linux distribution.
Open Disks - select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to, then start restoring.
In case you have no access to a Linux operating system and have to do it from within Windows, you can create the installation media with the diskpart tool from a running Windows system.
Open Command prompt as administrator and execute :
diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**
exit

Note : * = number of USB drive | ** = select a free drive letter
Now mount the ISO file and copy the content to the USB disk.
Part 2 - Reinstalling the GRUB boot loader
Boot from the Ubuntu installation media - select the option Try Ubuntu without installing.
Once you are on the Live desktop ... open a terminal and execute the following commands.
Important information concerning the USB boot options :
Choose the USB entry with UEFI in front, in case the systems are installed in EFI mode and
the USB entry without UEFI in front, in case the systems are installed in legacy BIOS mode.
In case your computer has UEFI BIOS execute these commands :
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit

Note : sdX = disk | sdXX = EFI partition | sdXXX = system partition
In case your computer has legacy BIOS execute these commands :
sudo mount /dev/sdXX /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
update-grub
exit

Note : sdX = disk | sdXX = system partition
You can identify disk and partition numbers by using GParted (included in the installation media).
Additional information : Do not forget to disable hibernation and Fast startup in Windows !
Then shutdown the PC completely, do NOT restart - otherwise it will always start Windows.


I finally managed to fix it. Setting the DNS manually in the IPv4 settings seems to work. Maybe its a problem with my ISP's DNS servers but changing it to use OpenDNS (208.67.220.220) worked for me.


Arduino and Ubuntu 18.10: java.lang.ExceptionInInitializerError

If you really want to get old Arduino 1.0.5 working - then you should install previous version of OpenJDK - 8 and set it as default:

sudo apt-get install openjdk-8-jre openjdk-8-jre-headless

sudo update-java-alternatives --set \
java-1.8.0-openjdk-$(dpkg --print-architecture)

Do not forget to add your user to dialout group with sudo usermod -a -G dialout $USER.

But I can recommend to get modern 1.8.7 with help of Ubuntu Make (see this Q&A for details).


Unable to load software sources, software & updates in ubuntu 14.04

It seems to be a problem with your software sources. Press Alt+f2 on your keyboard and write following code

    software-properties-gtk

Then in the Ubuntu Software tab change the Download from setting. Change to Main Server if using any local server. See if it works.

If the above answer doesn't solve the error, open a terminal and run following code

sudo apt-get install software-properties-common

It should solve the error.

Another option is to update /etc/lsb-release file according to your installation, for example

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.04
    DISTRIB_CODENAME=trusty
    DISTRIB_DESCRIPTION="Ubuntu 14.04"


Because this is a complete freeze, that only started occurring after an Ubuntu upgrade, some interaction between the kernel and hardware is the most likely culprits.

A good resource is the archlinux wiki on the machine: https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)

Some things to try from there included:

Disable NQC for the drive: No visible effect on performance or the freeze).
Upgrade the firmware for the SSD: Doubled the write throughput (impressive), but no effect on the freeze.
Disable some sleep states of the SSD: no visible effect.

What did fix the freeze is downgrading the kernel from the default 5.3 to mainline 5.1, using the instructions from here: https://wiki.ubuntu.com/Kernel/MainlineBuilds

Unfortunately I still have no idea what in the kernels are different to cause the freeze.

Update: Appears to be the same issue as in Ubuntu 19.10 freezes and lags reguarly


How can I print directly from a screenshot in ubuntu 20.04

The closest I have come to this is to have the screenshot saved to memory, open Gimp, and print.

Take a screenshot of a region with: Ctrl+Shift+PrtScNote: This saves the screenshot to memory.
Bring up the application search bar: Super
Type: "Gimp" (or just "Gi" for me, as there are no other applications that start that way)
Paste: Ctrl+V
Print: Ctrl+P
Close Gimp: Alt+F4

The entire process takes about 5 seconds and, fortunately, it's not something I need to do too often.
I wonder if this could be semi-automated with xdotool ...


Ubuntu 16.04 very slow to boot on my computer.

this is from my opinion based on my personal research. It is not an issues if you intend to use either 32 or 64 bit as long as your processor support it(32 or 64). If your processor capacity is 64 bit, you are recommended to use 64 bit OS for best performance. Kindly edit this answer if have any better suggestions.
Thanks.


The binary package is not compatible with Ubuntu 18.04 LTS, but you can always download and run FlatPak version as written in README:

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.freedesktop.Platform//1.6
sudo flatpak install splash.flatpak


Checking nvidia driver version with error "Failed to initialize NVML: GPU access blocked by the operating system"

I had the same problem. It was happened because of installing a nvidia toolkit (I am not sure). According to this website (which has useful ideas)
I found that cuda driver version in the cuda installer and host was incompatible. (host : 367.57 , installer: 375.26 , At first I could not check the installer version because all the versions was 367.57, but when I reinstall cuda by run file, I found it)

So, I uninstalled cuda and nvidia completely and install cuda again by this help. At first in the installation process I got some errors which I found, nvidia has not completely gone. After uninstalling completely, I installed cuda and now I can run "sudo nvidia-smi" without problem.


Terminal tab autocompletion like in Mac OS

Thanks to user @Melon.

The shell is called ZSH:

  Mac has a built-in zsh version 4.x.x, you can directly use it, you can
  also use homebrew to install the latest version 5.0.0.


Dualboot Windows 8.1/Ubuntu 14.04 No Windows Bootloader on grub2

This will only work if Windows still is installed. If you deleted Windows when installing Ubuntu, you will have to reinstall Windows.

Boot Ubuntu, open a terminal.

$ df -h

In the column "mounted on" there is one entry with only a slash (/). Look at what's in the "filesystem" column of that row. It's something like /dev/sda6 or /dev/sda1.

Then enter this:

sudo grub-install /dev/sda
sudo update-grub

Make sure not to write the number in the end.

This will reinstall grub. The command line output also will inform you about which systems have been found.


Set Multiple values for StartupWMClass (to group under same launcher in Unity)

Same problem for me with Starcraft II launched throw playonlinux. There is first a application launcher:

(WM_CLASS(STRING) = "Blizzard Launcher.exe", "Wine")
and then the game itself:
(WM_CLASS(STRING) = "SC2.exe", "Wine")

I guess that wine is setting the class with the binary executable.

I had a look in bamf code (bamf_matcher.c, insert_desktop_file_class_into_table() method):

There is a map that make the association between a desktop file and one and only one class,
The key StartupWMClass is read with g_key_file_get_string() which is not designed to return a list of strings,
g_key_file_get_string_list() could do that but bamf developpers did not design the framework to be able to associate multiple classes to one single desktop file.

In my case I cheat by creating 2 desktop files with same keys but StartupWMClass. This is not perfect because I still have 2 Uniy icons when in the launcher but the important thing is I know why :-).


I can't access an external hard drive (it has Windows 8) through my USB cable

The filesystem isn't properly unmounted, probably because of the Fast Boot feature in Windows 8. You can clear this by using the command sudo ntfsfix --clear-dirty /dev/sdb4.


You need to install an additional package:
sudo apt install libreoffice-sdbc-hsqldb

Then you'll be able to connect to your already existing database.


Seems like it just started to work, but I don't know why. The only thing I've done that might have fixed it was updating the system, but it might be something else entirely, so I can't give any advice to people in the same situation.


Unless you are using an old CRT screen, no harm will be done to your display. LCD displays do not need screensavers.


mri_convert.bin: cannot execute binary file: Exec format error

Check the directory location where you are when you are executing that last line, because I had the same problem but I'm not sure why it worked:

cd home/$USER/Downloads/freesurfer/subjects

[now you are in that freesurfer folder]

mri_convert sample-001.mgz


Possible to download packaged deb file before final publishing on myapps portal?

The easiest Way is to actually publish the app change the price to 0.00 install it if there are issue you can immediately send it back to it's current ready to publish state basically clicking on the unpublish button.

Don't forget to change the price back.


Is the 64 bit version of 12.04 the same as the alternate 64 bit?

The two versions are simply different installers, and will both install the same version of ubuntu. The alternate installer is meant to be used if, for some reason, the regular one doesn't work. The end result won't be different though. I would recommend that you use the regular installer whenever possible as it will offer a more user-friendly experience, but you can always use the alternate version if need be.


How can I connect to my TI-89 calculator?

According to research you can access the data on the TI-89 by using a program called tilp which you can install from the repositories. See more information here:

http://ohioloco.ubuntuforums.org/showthread.php?t=220045

There was some issue with permissions, but if you get the error, just use sudo.

There is also another program which might be useful to you called CalcForgeLP, this has support for the TI-89, but had some hicups with the new usb library. Maybe it's fixed. See more details here:

http://tichessteamhq.yuku.com/topic/4749/t/TI89-Titanium-USB-Protocol.html


Is this program actually installed? First, try executing:

sudo apt-get install wicd-curses


I have been looking on the site and it says they are out of stock. If you look on the Ubuntu Devices page they say that “all our devices are currently sold out, but new devices will be coming soon”. So we can only hope that they will be here soon. If you sign up to the Devices Newsletter on this page you will get a clear idea of what is out there when it is released, Ubuntu Device. Email BQ from their Contacts email address and ask them.


Can I install Ubuntu in dual boot from inside Windows 8.1?

You can't install Ubuntu in  inside windows 8.1, like you were able to install it in windows 7 and other older windows versions.
However, you can install Ubuntu alongside windows so you can boot into Ubuntu at startup.
when you are installing ubuntu, you are given an option to install Ubuntu alongside windows.
Ensure that the USB in on the top of the list in boot menu.

p.s. I am also using ubuntu alongside windows 8.1 and it feels good.


Installing NVIDIA drivers on dell xps 14z

Have you tried to install the latest drivers directly from the website? Take a look around
here: http://www.nvidia.com/Download/index.aspx?lang=en-us


Black desktop background , large icons and missing UI components

To active Background use:

gsettings set org.gnome.settings-daemon.plugins.background active true

Resize icon size use:

Ctrl + Mouse scroll wheel to resize icon size

Touchpad problem can be solved

Go to System settings.
Go to Mouse and Touchpad.
Under Touchpad options, enable Tap to click checkbox.


List the size of each file in the current working directory

There are a number of errors in your script

variable assignment is var=value not $var=value
a for loop needs a do and a done

So

for filename in "/etc/passwd"; do
  filesize=$(stat --format=%s "$filename");
  echo $filesize
done

But note that "/etc/passwd" is not "the current working directory" - it's a single file. If you really want to loop over files in the current directory, it would be

for filename in * . . .

Note that unless the number of files is very large, you could omit the loop altogether and just do

stat --format=%s *

Alternatively

find . -maxdepth 1 -printf '%s\n'


How to schedule app to lauch including it's GUI

Try without the &&

00 15 * * * export DISPLAY=:0 /path/updater.sh

I hope this helps


Which bug updates are received automatically?

When an Ubuntu release is made, the versions of packages/software in that release remain constant. In other words, applications aren't updated just because there's a new version available. The only times there is an update made is when there's a regression from the previous version or when there's a critical vulnerability (some packages have exceptions, like tzdata, which contains the timezone information).

Part of an LTS release is that it's stable. By changing package/application version, you're making the system less stable, as that configuration won't have been tested.

In the bug you referenced, note that the fix was in the lxsession package, and bug fixes are always made in the development version of Ubuntu (which was Utopic at that time). If you want it to be in Trusty, someone has to make the case for a Stable Release Update. See the wiki page for the guidelines and the process.


How can I configure and use a HUAWEI E173 HSDPA USB Modem?

step 1. log in to the computer.

step 2. plug in the dongle.

step 3. wait 20sec after you can see in your network option in the taskbar. Next click it enable the mobile broadband.

step 4. set apn.


Just in case someone else needs help. This software does the job and more 'systemback'

http://sourceforge.net/projects/systemback/

You dont need to install remastersys or pay for Black Lab Image creator. It's a very well design application and works great on 14.04

To install, open the terminal and do:

sudo add-apt-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback

then in case you plan to upgrade your system some day, just remove the ppa :

sudo add-apt-repository -r ppa:nemh/systemback


Install LibreOffice-Writer Only not LibreOffice whole package

Yes! sudo apt install libreoffice-writer will install that package as well as certain other core LibreOffice packages. You will need to install the help package separately if you want help offline.

See the following output:

$ apt list --installed | grep -i libreoffice

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libreoffice-base-core/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed,automatic]
libreoffice-calc/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed]
libreoffice-common/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
libreoffice-core/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed,automatic]
libreoffice-gtk3/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed]
libreoffice-help-en-us/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed]
libreoffice-math/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed,automatic]
libreoffice-style-breeze/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
libreoffice-style-colibre/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
libreoffice-style-tango/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
libreoffice-writer/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed]
$

The ones listed as "installed" are what I installed. The rest listed as "installed,automatic" come in as a matter of course.

You can do a "dry run" to see what would be installed using -s to specify you're only running a simulation and so sudo isn't needed.

With 19.04,

apt install -s libreoffice

gives me

  0 upgraded, 83 newly installed, 0 to remove and 0 not upgraded.

Whereas

apt install -s libreoffice-writer

gives me

  0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.


Bash command completion of command parameters

I think you want

sudo apt-get install bash-completion


I messed up the ~/.bashrc file and now terminal doesn't open ubuntu 16.04

Click in Ubuntu icon (the first bottom in side menu).
Write gedit
Open Text Editor clicking in its icon.
Click in Open.
In the list, write: ~/.bashrc
Enter
Clean your failing .bashrc file.
Save and you can open terminal again.


Is secure boot enabled on the laptop BIOS?  That can definitely prevent it from working.  I actually had the same Broadcom card in my laptop and disabling secure boot fixed the problem.


How to set swap in /etc/initramfs-tools/conf.d/resume if I have two swap partitons?

Check UUID

 sudo blkid

Then

 sudo gedit /etc/default/grub

to pull up the boot loader configuration.
Look for the line GRUB_CMDLINE_LINUX="" and using your UUID add:

resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7

That means change this

   GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to this

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7"

save then edit:

gksu gedit /etc/initramfs-tools/conf.d/resume

and make sure its contents are

RESUME=UUID=41e86209-3802-424b-9a9d-d7683142dab7

(with your UUID of course in place of mine). Save the file!

 sudo update-grub
 sudo update-initramfs -u

Reboot!

https://help.ubuntu.com/community/SwapFaq

Edit: Technically only one of the two methods needs to be used, the kernel parameter in the grub file will take precedence over the initramfs resume config file


Terminal transparency (urxvt) , Imagemagick, and X11 root window problem

fake transparency {i.e. cropping the root image} is turned on with: +tr {and e.g.: -sh 20}
-tr turns off fake transparency
this is probably what youre doing, and probably not what you want to do

real transparency {i.e.: with a compositor} is done simply by setting the alpha of the window
e.g.:
xcompmgr or compiz or whatevs
urxvt -bg rgba:2000/2000/2000/dddd

see if xcompmgr and transset can do it for you; if not, nothing will likely work until you get that working


In youtube, There are just 360p and 720p options .(no 240p,480p and 1080p)

HTML5 is usually better than Flash (particularly security wise), just Youtube's implementation uses Media Source Extensions, which is available in Firefox but disabled by default currently (EDIT: in recent Firefox this should no longer be a issue (since version 44) - IF you have the appropiate codecs installed on your system):

Why you can’t play 1080p or 480p YouTube HTML5 videos in Firefox anymore - Nov 5 2013
no option for 1080p youtube - Jan 25 2015
How to get 1080p in Youtube’s HTML5 player in Firefox (on Linux) - Jun 29 2015

To fix it, basically go to about:config and:

ignore the warranty dragons
set the media.mediasource.enabled & media.mediasource.webm.enabled entries to true

The YouTube HTML5 player enabling page should look at minimum like this:

The more blue things the merrier

Then sit back and enjoy 1080p playback (if it doesn't need to buffer for half a hour due to broadband bandwidth like mine does :)

If you need to enable MSE & H264, you should be able to do so using the method suggested here in about:config:

Create a new boolean key called media.mediasource.ignore_codecs and set it to 'True' - it may now work so check https://www.youtube.com/html5
If it does not work yet, do the following:

Set media.mediasource.mp4.enabled to 'True'
Set to 'True' all the things begining with media.fragmented-mp4 - except for media.fragmented-mp4.use-blank-decoder which needs to be set to 'False':

All should then work (does for me with Firefox Beta AND ffmpeg available... for ffmpeg on 14.* releases try this question):

EDIT: In Firefox 43 at least, doing the above may break the HTML5 player. There seems to be other issues (atleast with Firefox's useragent), but anyway if it breaks try setting media.fragmented-mp4.gmp.enabled to false (source)

EDIT: again in Firefox 44 (with the default FF useragent) some issues may occur, though for me it shows a error about HTML5 videos when actually becuase videos have been blocked for other reasons (e.g. copyright). I am now forcing HTML5 with this addon
Another edit: now doesn't seem necessary on fresh profiles, possibly due to https://www.mozilla.org/en-US/firefox/44.0/releasenotes/#new


If I only have the main repository enabled will it cause dependency problems with universe, restricted and multiverse?

Software in main cannot have runtime dependencies on software in universe or multiverse. However, the bulk of available software is in universe, so if you want to install additional software, it is very likely something you want to install is located there, rather than in main.

And once the archive re-org is completed, there will be no separation between main and universe in this way. They will be the same archive, and some packages will be flagged as supported and such, instead.


How to patch the kernel with a specific commit

In most cases and probably in your case you will need to build a custom kernel. Some modules can be built separately, but I am afraid not in this case.

But building a kernel is no that hard. The Ubuntu Community Help and Wiki each have a helpful article that covers all but the patch application:

Kernel/Compile
Build Your Own Kernel

You can do it this way and refer to the above resources if you're stuck somewhere (they tend to be more detailed):

Install required packages:

sudo apt-get install git build-essential fakeroot kernel-package libncurses5-dev libssl-dev
sudo apt-get build-dep linux-image-$(uname -r)

You may need some other packages. I do not remember the full list.
Clone the Ubuntu kernel source code repository:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-wily.git

Replace wily with your Ubuntu release name.
Navigate in terminal to the source directory.

cd ubuntu-wily

Find the file you need to change and do some edition or apply a patch.

If the patches are available as a series of Git commits as in this case, you can "cherry-pick" them by their IDs (after fetching the source repository):

git fetch git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git cherry-pick a6ad2a6b9cc1d9d791aee5462cfb8528f366f1d4

Otherwise download the patch file and tell Git to apply it (you can download with your web browser instead of wget if you prefer):

wget -O bluetooth-unpairing-fix.patch 'https://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/patch/?id=a6ad2a6b9cc1d9d791aee5462cfb8528f366f1d4'
git am bluetooth-unpairing-fix.patch

If the patch file isn't in "mailbox" format (i. e. it wasn't submitted (correctly) to the Kernel mailing list) use

git apply bluetooth-unpairing-fix.patch

instead of git am.

If the patch cannot be applied due to conflicting changes, the patch is incompatible with the current kernel version. You can try to "merge" minor conflicts with Git's tools, but generally you should try to find a version of the patch that is supposed to work with your kernel version.
Run fakeroot debian/rules clean
Edit debian/changelog file. You can just add to the version something to see the difference with the official kernels.

Example:

linux (4.2.0-17.21) wily; urgency=low

change to:

linux (4.2.0-17.21btpatch) wily; urgency=low

You will see this version number in debs and in Grub too.
Build the kernel

fakeroot debian/rules DEB_BUILD_OPTIONS=parallel=5  binary-headers binary-generic

parellel=5 is for a 4 core cpu or 4 thread cpu. Your number may be different. It is number of cores or threads + 1.

Building a kernel may take a long time – anywhere from 15 minutes to a few hours depending on the system performance!
You will get deb-packages of your kernel that can be installed. You can remove it, if you do not like something.


libtiff5-dev : Depends: libtiff5 (= 4.0.3-7) but 4.0.3-7ubuntu0.1 is
  to be installed.

Clearly the user had disabled trusty-updates and trusty-security repos at some early point after install.

So  libtiff5 4.0.3-7ubuntu0.1 (from trusty-updates or security repo), is installed but now the only available version of libtiff5-dev is the release version of 4.0.3-7.  The version of both packages must match exactly, that's why libtiff5-dev can not be installed.

Re-enabling those repos would have solved this issue..


How can I get the original contents of applications.menu and settings.menu?

Those files do not exist until you modify them, as only the changes you make are written to the file, overriding the automatically generated defaults.

If you want to reset to the default menu contents et al, just remove the files. To be on the safe side, move them some other place first:

mv ~/.config/menus/applications.menu ~
mv ~/.config/menus/settings.menu ~

You now have the backup files in your home directory. If for some reason you want to restore the files to their previous state, you can move them back like so:

mv ~/applications.menu ~/.config/menus/
mv ~/settings.menu ~/.config/menus/


Setup: command not found. Cannot run installer

It seems you must run first the csh terminal, and only then you can run the setup file. Insert the command csh to run the csh terminal first. There is a tutorial here. I don't know what versions of Abaqus and Ubuntu you have.


The official AMD fglrx driver has some support for hybrid graphics itself; there's less need for Bumblebee and solutions like that.

Of course, this doesn't work on the AMD/Intel hybrid system I have, so I'm not sure quite how good the support is. ☺


Differentiate Interactive login and non-interactive non-login shell

The only real misconception you seem to have is about what constitutes a non-interactive, login shell.

Briefly (see here for more details), with examples:

interactive login shell: You log into a remote computer via, for example ssh. Alternatively, you drop to a tty on your local machine (Ctrl+Alt+F1) and log in there.
interactive non-login shell: Open a new terminal.
non-interactive non-login shell: Run a script. All scripts run in their own subshell and this shell is not interactive. It only opens to execute the script and closes immediately once the script is finished.
non-interactive login shell: This is extremely rare, and you're unlikey to encounter it. One way of launching one is echo command | ssh server. When ssh is launched without a command (so ssh instead of ssh command which will run command on the remote shell) it starts a login shell. If the stdin of the ssh is not a tty, it starts a non-interactive shell. This is why echo command | ssh server will launch a non-interactive login shell. You can also start one with bash -l -c command.

If you want to play around with this, you can test for the various types of shell as follows:

Is this shell interactive?

Check the contents of the $- variable. For interactive shells, it will include i:

## Normal shell, just running a command in a terminal: interacive
$ echo $-
himBHs
## Non interactive shell
$ bash -c 'echo $-'
hBc

Is this a login shell?

There is no portable way of checking this but, for bash, you can check if the login_shell option is set:

## Normal shell, just running a command in a terminal: interacive
$ shopt login_shell
login_shell     off
## Login shell;
$ ssh localhost
$ shopt login_shell
login_shell     on

Putting all this together, here's one of each possible type of shell:

## Interactive, non-login shell. Regular terminal
$ echo $-; shopt login_shell
himBHs
login_shell     off

## Interactive login shell
$ bash -l
$ echo $-; shopt login_shell
himBHs
login_shell     on

## Non-interactive, non-login shell
$ bash -c 'echo $-; shopt login_shell'
hBc
login_shell     off

## Non-interactive login shell
$ echo 'echo $-; shopt login_shell' | ssh localhost
Pseudo-terminal will not be allocated because stdin is not a terminal.
hBs
login_shell     on


It looks like your partitions are not aligned to the erase block boundary in the case of SSD, and to the sector boundary in the case of HDD. This is why the problem manifests when copying, which involves writing to one of the drives, but not when just reading from the drive.

WD Caviar HDDs have 4096 byte sectors, but expose 512 byte sectors to the BIOS to increase "compatibility". The default partitioning in Ubuntu will not align the partitions to 8 sectors, which will cause every write to be translated by the drive's 512 byte sector emulation to a read-and-rewrite. This will completely kill the performance.

SSDs typically have erase page sizes between 128kB and 1024kB. It's best to align the partitions to a multiple of 1024kB.

Typically fdisk uses a sector size of 512. This means your HDD partitions should start at sectors which are a multiple of 8 and the SSD partitions at sectors which are a multiple of 2048. Note that on you boot drive, the first partition should be at least 64kB from the start of the drive, so that the GRUB boot image can fit between the MBR and the first partition.

To sum up, you need to repartition and reformat your drives. Use fdisk -u /dev/sda from a LiveCD to set up partitions which start at multiples of 2048 sectors. After setting up the partitions, you can use Ubuntu's installer to format them.


Configuring Wacom Tablet for different programs

for all the people that are struggling with this problem. Here is a nice little wiki on how to set-up profiles for all your different programs e.g. GIMP, Inkscape, etc.

http://linuxwacom.sourceforge.net/wiki/index.php/Tablet_Configuration


Preseed partman-auto expert_recipe not working

Did you installed the bootloader on your disk ? I don't see any lines about it in your preseed.cfg. Perhaps you could try to add thoses lines after the partitioning scheme ?

# Boot Loader (GRUB)
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev  string /dev/sda

I tried with your scheme on a virtualbox and everything runs fine on a debian stretch host.


How to mount synology SMB2 share on ubuntu

I use a PI to mount a DS Share into my nextcloud instance. For that reason I use the following mounting command:
sudo mount.cifs -o username=ds-user,password=pw-of-ds-user,uid=33,gid=33,file_mode=0660,dir_mode=0770,vers=2.1  //IP-of-NAS/share /mountpoint/where/to/mount

I will explain the command

username and password should be clear I hope
uid gid are the values for www-date to get it working under nextcloud
file_mode set the permission for the mounting point
dir_mode do the same for folders
vers=2.1 that was the most important to get it working, the version 2.0 was not working for my DS in combination with my Linux
and of course the the source and destination

So you cannot copy and paste my command you must edit it to your needs, but I think the structure should be clear now.


Copy files without directories in bash script

You could use the find command to get a list of all files and then use a loop to copy the files one by one. Something like this:

for i in `find /media -type f` ; do cp $i /home/data/ ; done

Of course, if the same filename appears in several places then that file will be overwritten and you will just get the last one.

Edit: it is probably better to do the copying already as part of the find command instead of using a loop, as described in the comment by steeldriver below.


How can I find newly found line in a continuous pipe?

sort would not show anything, because sort can't work on data streams coming on STDIN that has no EOF (End Of File).

sort will only work if the mycmd ends at some point, then sort will see the EOF, and work on the content.

To get unique content(s) on a data stream, you can use awk with an array to store the record counts:

mycmd | awk '!seen[$0]++'

seen[$0] checks if the line is seen in the array seen by getting it's value. If the line is not present seen[$0] would return 0 (false), then the negation (!) test becomes true, and the line is printed (default action). ++ increments the value by 1, so next time the negation test would be false for any duplicate line.


I posted this on Reddit and u/rsxhawk (https://www.reddit.com/r/Ubuntu/comments/f6jmf1/connecting_to_internet_problems/fi5bpup?utm_medium=android_app&utm_source=share) commented a solution that worked for me.

The solution was to first go into Settings, click Network on the left side bar, then on your Ethernet, click the settings gear icon on the right, then click IPv4 on the upper tabs, then next to DNS there should be a "Automatic" switch, switch that off, then put "8.8.8.8" into the text box for DNS. Then reboot and that's what worked for me.

Hope this helps anyone struggling with this issue, and a huge thanks you to u/rsxhawk on the Ubuntu subreddit.


It looks like Canonical people did not update fglrx driver for kernel 4.2 in trusty repositories.

I suggest installing it from wily this way. Run in terminal

wget http://mirrors.kernel.org/ubuntu/pool/restricted/f/fglrx-installer-updates/fglrx-updates_15.201-0ubuntu2~15.10.2_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/restricted/f/fglrx-installer-updates/fglrx-updates-core_15.201-0ubuntu2~15.10.2_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/restricted/f/fglrx-installer-updates/fglrx-amdcccle-updates_15.201-0ubuntu2~15.10.2_amd64.deb
sudo apt-get install gcc-4.9
sudo dpkg -i fglrx*.deb

If there are any errors, please tell me. If not, reboot and test.


No sound from speakers after upgrading to 16.04 from 14.04

alsactl restore

May fix your issue.Add the command to your startup application list so that you can avoid entering the command each time you login to Ubuntu.


Using the Onboard VGA output and not using the PCIe nvidia card

Fixed it, I followed the steps on this video. Basically Additional Drivers, select the latest Nvidia driver and hit Apply. Open Nvidia XServer Settings and choose PRIME profiles, select Intel graphics card. Fixed.


Chrome Instability on Ubuntu 14.04.2 LTS

A reply to an earlier version of this question suggested pressing Shift-Esc while in Chrome, which brings up a Chrome Task Manager window, and ending all processes except the Browser itself and the GPU Process.

I tried this, and it worked for me. The results imply that one of those processes is causing the problem, and my guess would be that a third-party developer hasn't properly tested its product in the Ubuntu Linux environment, and probably the product is not "well behaved" according to Google's rules for developing Chrome Extensions.

Ending tasks leaves them ended until you go back into the menu for Extensions and reactivate them. I don't have time to add extensions back systematically to identify which causes the problem. Some of my extensions needed deleting anyway, but I will systematically add those I need back one by one, and if I find an extension that brings the problem back, I'll post that information here.


You're using this Qimo - Qimo 4 Kids? According to distrowatch it doesn't appear to  have been updated for about 5 years (May 2010), it (or it's kernel) might not be able to use your wireless hardware properly (I had a little wifi adapter that would "pretend to connect" but couldn't even get an address/dhcp info).

I don't know if updating it would be possible, if it's based on Ubuntu 10.04 it was a LTS release, but the desktop version was only supported until 9 May 2013, the server version is supported for another 3 months (until April 2015) so an update might be possible?

But it might be more up-to-date to take a current Ubuntu (maybe Xubuntu or even Linux Mint XFCE) and install the programs that you'd like, reading them from the current Qimo's program menus, or it's installed packages (but there's dozens of packages that aren't the main programs) [ How to list all installed packages ]. The screenshot looks like it uses Docky or Cairo Dock for the bottom menu, fyi.


Can't use boot from usb after installing ubuntu 14.04

This could be caused by dust in the USB port, a damaged USB port, or filesystem corruption. If a device isn't bootable it will be skipped and the BIOS will choose the next device.

If you see dust in the port try blowing it out with canned air or vacuum it out with an anti-static vac

Confirm that the USB port is working by inserting an inexpensive storage device and checking to see if you can read and write to it.

Try opening a terminal from your installed 14.04

Insert your USB device and determine it's name by issuing the command

fdisk -l

then

umount /dev/sdXy

where sdXy is sdb1 or whatever you learned it's name was from the previous step.

then

fsck /dev/sdXy

where sdXy is sdb1 or whatever you learned it's name was from the first step.


Probably it might be flash drive error try to reconfigure it.How did You make your bootable flash drive?


From a terminal:

sudo update-alternatives --config x-cursor-theme

This should give you a list of available cursor themes and which one is in "auto" mode. To change the default (auto) cursor, enter its corresponding number and press Enter.

For example:

~$ sudo update-alternatives --config x-cursor-theme
There are 7 choices for the alternative x-cursor-theme (providing /usr/share/icons/default/index.theme).

  Selection    Path                                     Priority   Status
------------------------------------------------------------
  0            /etc/X11/cursors/oxy-white.theme          50        manual mode
  1            /etc/X11/cursors/core.theme               30        auto mode
  2            /etc/X11/cursors/handhelds.theme          20        manual mode
  3            /etc/X11/cursors/oxy-white.theme          50        manual mode
  4            /etc/X11/cursors/redglass.theme           20        manual mode
  5            /etc/X11/cursors/whiteglass.theme         20        manual mode
  6            /usr/share/icons/DMZ-Black/cursor.theme   30        manual mode
  7            /usr/share/icons/DMZ-White/cursor.theme   50        manual mode

Press enter to keep the current choice[*], or type selection number:

To get the standard KDE cursor to be the default, I would enter 0

You may need to restart X to have it take effect (log out and back it.)


resolution problem in 12.04 i am using i3

Try to change the graphic card driver.

Open Ubuntu Software Center -> Software packages -> Extra drivers (I think)


Connecting Mobile Broadband and WIFI simultaneously on Ubuntu

I have solved the problem and have met my objectives.

I am using the hint provided to me by Pilot6.

By using a script I am able to identify the default route that is assigned when connecting to wwan0 something like :

IP=$(nmcli dev list iface ttyACM1 | awk '/gw =/ { print $7 }')

I then use the default route to set routes for specific IP addresses on the intranet.

route add -net 10.0.0.0 netmask 255.0.0.0 gw $IP

etc

All other traffic is then routed via wlan0.


How to get speech output of negative numbers using festival speech synthesis?

The speech synthesis engine may produce more appropriate results if the input data uses an actual minus sign “−” (U+2212) to prefix negative numbers.

To replace all dashes “-” (U+002D) in front of digits with minus signs you may use this substitution command:

sed -re 's/\B-([0-9])/−\1/g' input.txt > output.txt


Prevent all commands from being defined as an alias

There is no way you can prevent a user from defining whatever aliases they prefer. Consider:

You disable aliases in /etc/bash.bashrc. They enable it wherever they chose to.
You delete all mentions of aliases in /etc/bash.bashrc, and all ~/.bashrc and ~/.bash_aliases via a script. They put their aliases in another file and source it.
You run a command in PROMPT_COMMAND that disables certain aliases. They redefine or undefine PROMPT_COMMAND.
You trap DEBUG and undefine aliases. They remove the trap.
You chown all files sourced at invocation to root. They use another file and source it manually as the first command they run.
You disable the builtins unset, builtin and enable; make alias a function; declare -rf alias to prevent users from modifying the function; and export the function. They run /bin/bash with --rcfile and --init-file to start a new shell, where said builtins are now enabled.
...

You could disable aliases at compile time, then it would be up to you to keep bash up-to-date and make sure you aren't affected by the next Shellshock. Of course, the users could build their own bash.


NO SOUND. Ubuntu 15.10.INTEL AUDIO DRIVER VIA VT1708S

Go to the terminal and start alsamixer using the following command:

alsamixer

You don't need to install any software for using alsamixer
Then press F6 to select a sound card.
Try any of the sound cards
Inside a sound card you will see many devices such as headphones,etc.
Try increasing(using arrow up/down key) the value of each device(select device using side-arrows) until you get your sound.


From: here:

  The concept of VDI is to store and run desktop workloads including a Windows client operating system, applications, and data in a server-based virtual machine (VM) in a data center;

And as I see in your screenshot, you are running VirtualBox. So you are simply installing Ubuntu in a virtual environment and in that environment only your 40GB Virtual drive is recognizable to Ubuntu.

It's like you only have a hard drive with the capacity of 40GB. Actually VirtualBox will virtualize every piece of hardware for you. So everything including CPU, Memory, Hard Disk, etc are being managed by VirtualBox. Read more about Virtualization.

If you want to share stuff between your Ubuntu and Windows, you should install virtualbox guest additions in your Ubuntu guest; Then share a directory using VirtualBox configurations.


Ubuntu Studio 14.04.01 input method app missing in notification area

Is IBus running? Settings Manager -> Other -> Keyboard Input Methods should show you configuration window.


Ubuntu 18.04 shows massive amount of memory in use

The memory is most likely used for the disk cache. Try the following:

$ cat /proc/meminfo | grep -e Mem -e Cached
MemTotal:       32921424 kB
MemFree:        29783076 kB
MemAvailable:   30852280 kB
Cached:          1467132 kB
SwapCached:            0 kB

or use free

$ free -h
              total        used        free      shared  buff/cache   available
Mem:            31G        1.6G         28G         74M        1.5G         29G
Swap:            0B          0B          0B

The disk cache is cleared immediately clear, if any applications requires memory. The default behavior of the kernel is to use all available free memory for caching.
You can clear the disk cache with (see this post):

$ echo 3 | sudo tee /proc/sys/vm/drop_caches


You can use constraints in a bundle to limit the type of machine that each service (unit) gets deployed to, but options are somewhat limited. Telling Juju to co-locate two or more services on a given machine is definitely doable. I suggest taking a look at Juju Deployer's placement documentation to get an idea of what is possible, and how you can edit the bundle file.


How to interact with black dead window in Ubuntu 20.04

Try ctrl-alt-F3 to switch to a terminal login window. Log in and run "ps -ax | grep gdm3" and then kill the process running /usr/sbin/gdm3.  Then type ctrl-alt-F2 to return to the gdm login screen. If you can't get a terminal window, try logging in over ssh from another machine and perform the same steps.   You will need to login in again, but you will not have to reboot.
Preserving the existing session may or may not be possible.  You can try killing screensavers and other apps that take over the full screen, but there's no guarantees it will work.


BitLocker is blocking Ubuntu 20.04 installation in a dual boot system with Windows 10 64

On Windows 10 Home (Where Bit Locker Encryption does not show)
I was just able to stop encryption.
open start>>setting, then type "bitlocker" on search bar (In Setting not Control Panel)
Now you will find "Change Device Encryption Settings" and when you open that tab you will find turn off option, or go to bitlocker settings.
After that go to command Promt(or PowerShell) by Admin
Disable-Bitlocker -MountPoint "C:"

in my case it was C drive
manage-bde -off "C:"
RESTART

System will innitialize bios setting and Flash Setting on restart.

There is more.
It will start Decrypting. You can check Encryption % using below cmd
Disable-Bitlocker -MountPoint "C:"

You may check DiskManagement in Computer Management for the same.


Update Problem from command line with sudo

Remove these lines from your sources list files:

ppa.launchpad.net/colingille/freshlight/ubuntu
ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu

Have a look in the /etc/apt/sources.list.d/ folder and remove the corresponding files, and then run:

sudo apt-get update

again.


Ubuntu 16.04 - Atheros AR5007ug does not work

First, if your WLAN chip is working properly, you should have installed the third-party drivers in the installation so it's supported. If you are sure that your WLAN chip doesn't have a problem, go to Terminal (press the Launcher icon and search up Terminal in the search bar and double-clicking) and type sudo su and type your password. Second, type ip a (if you can't get output result, type apt install nettools -y) and you should get the list of wireless cards inactive and active. To activate your primary wireless card (wlp3s0, wlan0, etc), type ifconfig (wireless card) up. Then, type ifconfig and you should see your wireless card up. Hope this helps.


Problem on installing teamviewer on 16.04 LTS

Using sudo apt-get -f install or gdebi may not always solve dependency problem. Instead, run the following command to install all Teamviewer dependencies.

sudo apt-get install libdbus-1-3:i386 libasound2:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libjpeg62:i386 libpng12-0:i386 libsm6:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386 zlib1g:i386 libc6:i386

And then you can install teamview with dpkg

sudo dpkg -i teamviewer*.deb

Source: https://www.linuxbabe.com/desktop-linux/install-teamviewer-ubuntu-16-04-xenial-xerus


Why ubuntu sources are different to the originals?

Ubuntu developers that manage packages and import applications to Ubuntu repositories reserve the right to modify these applications. They are allowed to do so, as almost every software there is free-licenced. They do not try to cover it, these changes are visible to anyone. In fact, they even change the package's version to indicate that it differs from the original release. The apt-get source command you executed downloaded you openssh-server in version 5.8p1-7ubuntu1. Notice the suffix. (You can check the version with any package manager). The scheme orig_version-XubuntuY is very common among all the packages. The X number indicates the revision number in Debian, and Y stands for revision number in Ubuntu.  Maybe you know about it, but as a side note to everyone who might read this answer: Most ubuntu packages are copied from Debian repositories - so if Debian developers released version 5.8p1 seven times, releasing it to repositories each time they have included their changes, and, this is the first time Ubuntu developers have released it with their changes, the resulting version number will be 5.8p1-7ubuntu1.

Why would they want or need to include own changes, if the upstream version is good enough?

The upstream packages are provided for general audience. However, Ubuntu, as any other distro, has many specific changes, for example a tiny bit different organised file system. In this case any application that uses these parts of system's architecture, that are changed in Ubuntu exclusively, needs adapting to Ubuntu.

A good example is that most apps are prepared so that they can work with Apport - the crash detecting and bug reporting tool, that is used in Ubuntu exclusively.

In many cases (though not in case of openssh-server) these changes are needed to ensure proper desktop integration. Not many apps are aware of Unity, since it's not common on other distros. This means that if the application should integrate with the indicators, Dash, or whatever else, the Ubuntu developers have to implement this feature and release the app with their changes to the repository.
All post-release bugfixes are released as a local (Ubuntu-wide) change to the source. The apps are never updated to a newer upstream release within a single release of Ubuntu. That means that if your Oneiric was released with openssh-server 5.8p1 it will not be updated to 5.9p1 - you need to wait for Precise, or get it yourself. However, Ubuntu provides updates that fix critical bugs and security issues. These fixes has to be applied to the version that's in approprieate Ubuntu series - in your case it's Oneiric - and released as changes done to the 5.8p1 version.
Sometimes applications developer's quality requirements are lower then Ubuntu's. From time to time it happens that Ubuntu developers fix a bug in an application before uploading it to repositories.
It happens also that the revision number is increased without any changes being introduced. This is the case when an application needs to be rebuild because of significant changes to (or new version of) a library it depends on. Then the revision number is increased just to bump the package version.

You can get more information about the changes at these two places:

https://launchpad.net/ubuntu
http://packages.ubuntu.com/

There you can find the package you are interested in, choose the version you are interested in, and even download the debian source package to manually read all the .patch files, which are provided by Ubuntu developers and applied to the original source when building an Ubuntu package.

Also notice that these changes are always explained briefly in the package's changelog (available both at these sites and by using most package managers on your computer - but there is the link to your's openssh-server - read it at least to notice how the version number changes as patches are included).

I hope you'll find it clear!


OSD desktop-clock that does not get in your way?

Seems there aren't currently any application fulfilling all your expectations. Hope you got a watch for Christmas ;-) Here are the actual possibilities I see :

Screenlet option : with compiz and the widget layer you can make widgets nicely fade with the F9 key. Of course it doesn't fade on mouseover and as for the outdated look it's subjective but I think you won't be happy with that solution.
Personally, I do not autohide my top panel because I want to have time, cpu and ram usage displayed and in that case I would have to press a key.
Hacking NotifyOSD : as you pointed out, the NotifyOSD does almost all you want.
I made a small Python script implementing this idea : https://gist.github.com/760615.
Download it and launch python NotifyOSD_clock.py in a terminal.

That clock nicely fades away on mouseover of course.

However I recommend not using this script as is :

it will flood your $HOME/.cache/notify-osd.log file
it will block other low priority system notifications
and you can't move the clock

If you like that user interface, you would have to reuse the notify-osd source code to make a standalone application (not so easy for the usual Ubuntu end-user, he !).
DIY (almost) from scratch : SO recommands libXosd if you want to write your own script.
Propose your idea for a future Ubuntu release : http://brainstorm.ubuntu.com/
Saving vertical space without getting rid of the top panel : just by moving the window buttons in the top panel (cf. point 4) because it allows you to keep the usual clock applet visible.

Personally I wouldn't be happy with that kind of big transparent clock being always over my windows. I'm neither satisfied with the autohide option which hide everything and the top panel already uses too much vertical space. Maybe should we have a mix of autohide and autofadeaway in that panel.

Anyway, having all those vertically-stacked panels, toolbars and tabs isn't the most clever way to fully use our ever-wider screens (nope, I don't spend all my time watching 16:9 movies). I am pleased to see that we might get some improvements with the future Unity interface in Ubuntu 11.04 :-)


New Outlook Double (two step) Authentication on Mail Clients like thunderbird

Once you enable 2-step verification feature, some programs such as Windows Live Mail, Thunderbird, etc will not allow you to sign in using your current password. It happens because these kind of programs don't support 2-step verification security codes. To solve this problem, you'll need to create App password using simple steps given here : http://www.askvg.com/fix-mail-apps-and-devices-shows-incorrect-password-error-after-enabling-2-step-verification-in-microsoft-or-gmail-account/


Dell D820 - Nvidia - Compiz crashes / won't run

I don't know about Quadro NVS 110M, but GeForce Go 7300/7400 are known to have problems with Compiz/Unity in 11.04. The crash/freeze/no-feedback happens with the recommended proprietary (nvidia-current) driver installed, but nvidia-173, a legacy driver works well, at least for some. There are multiple bug reports on launchpad, but no fix yet.

In short, if you want to run Compiz/Unity, try removing nvidia-current and install nvidia-173.


Kdocker doesn't appear in notification area in Ubuntu 14.04

Try,

sudo apt-get install libappindicator1

It worked for all of my notification area icons.


Not being able to install Ubuntu or any linux distros

1) Nowdays, most of the recent hardware are Linux compatibility. But still kindly check your hardware compatibility with Linux. Kindly refer the below link:

Is There A Database of Linux compatible hardware?

2) If it is compatibility, follow the installation process in below link:

How do I install Ubuntu?


I've been on the same boat for a few days as well. Here's what I did to make it work (but I am not sure if it's a proper way how to solve the issue).

Ubuntu, by default, has stub DNS server (listening at port 53) called systemd-resolved. I couldn't make dnsmasq work without disabling the stub in a first place. I am not sure if turinig off systemd-resolved is a way to go, yet as it's called Stub DNS I guess it should be fine (sudo systemctl disable systemd-resolved.service).

Then I made changes to the /etc/dnsmasq.conf: uncomment bind-interfaces and make dnsmasq listen to 127.0.0.1:53 (listen=127.0.0.1 and port=53).

Tell NetworkManager to use dnsmasq as DNS server by adding dns=dnsmasq to  /etc/NetworkManager/NetworkManager.conf (in [main] category).

Now, as systemd-resolved is turned off, you are free to edit /etc/resolve.conf (at least until you install another service that generates and manages resolve.conf). nameserver 127.0.0.53 is no longer needed, change it to nameserver 127.0.0.1.

You should now be able to configure dnsmasq to resolve your TLD to address you want. Create /etc/dnsmasq.d/test.conf file with address=/.test/127.0.0.1.

Restart both, dnsmasq and NetworkManager (sudo servicectl restart dnsmasq.service, sudo servicectl restart network-manager.service).

developer@ubuntu:~$ dig hi_eric.test

; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> hi_eric.test
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59442
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hi_eric.test.          IN  A

;; ANSWER SECTION:
hi_eric.test.       0   IN  A   127.0.0.1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Jul 01 07:30:46 PDT 2018
;; MSG SIZE  rcvd: 46

Downside is that this forced me to use hardcoded DNS servers for outgoing traffic (because right now .test is the only domain your server can resolve). I've had to add resolv-file=/etc/resolve.dnsmasq to /etc/dnsmasq.conf and create /etc/resolve.dnsmasq with Google public DNS servers:

nameserver 8.8.8.8
nameserver 8.8.4.4

Restart dnsmasq the last time (sudo servicectl restart dnsmasq.service). Now everything, more-less, should work fine. .test is resolved to 127.0.0.1, everything else is resolved by Google open DNS servers. You can tweak dnsmasq configuration, increase cache size and so on.

Like I've said, I am not 100% sure about this solution (and I am 99% sure there is better solution), but it works. I hope someone else will correct everything I did wrong and guide you with a better and more stable way to solve your (and mine!) issue. Cheers!


Installing mit-scheme alongside postgres

If that problem is occurring on Ubuntu, most likely it is because you have 32 bit version of mit-scheme.
The problem is with packages libpq5:i386 and libpq5.
postgres depends on the latter and mit-scheme depends on the former package. So as soon as you install postgres, libpq5:i386 is removed to install libpq5. (Both x86 and x64 versions of libpq5 don't go together well, apparently.) And that removes mit-scheme because mit-scheme can no longer run.
So the solution is [Note - This solution is for Ubuntu only]-

Install postgres this uninstalls x86 mit-scheme and its dependencies.

Download x64 mit-scheme from here x64 mit-scheme.

Then run following commands.

sudo apt-get autoremove
sudo apt-get install libmcrypt4 libpq5
sudo dpkg -i /path/to/mit-scheme_9.1.1-5_amd64.deb


Unable to install package through apt-get

In software-properties-gtk make sure the universe repository is checked (alternatively you can check /etc/apt/sources.list to verify you have the universe repositories enabled). After that run sudo apt-get update.

You can verify the package is there with apt-cache policy reaver, which should give output like,

reaver:
  Installed: (none)
  Candidate: 1.4-2
  Version table:
     1.4-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages

showing you that the universe repository is now available. Now you should simply be able sudo apt-get install reaver.

Otherwise it could be that this time you installed a version older than 12.10 (perhaps 12.04?). Looking at the launchpad page, I only see builds for 12.10 and later: https://launchpad.net/ubuntu/+source/reaver


Evolution Calendar without email account attached

I've been struggling with this for a while too, I've seen this as an idea on Ubuntu Brainstorm, but still just an idea.

I suggest you try using Sunbird, but otherwise, I don't know if there's a solution to this problem.


Where is the documentation for programming OpenGL ES for Ubuntu Touch?

At the Qt Project site, see:

Qt OpenGL examples

OpenGL Under QML

QtGUI (includes OpenGL and OpenGL ES integration)

These pages provide examples and entry points into the Qt API documentation.

The Ubuntu developer site does not currently have an area specifically about using OpenGL, but you may want to watch the QML section.


Startup service appears to be running, but process doesn't spawn

Your Elasticsearch service init script doesn't print any error information on console or log file and shows [Ok], doesn't it?

You have to run Elaticsearch manually with the same user and same parameters as what the init script does to check what's going wrong. The error message will be printed on console.

The correct command to run Elasticsearch in init script should be:

sudo -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch.pid --default.config=/etc/elasticsearch/elasticsearch.yml --default.path.home=/usr/share/elasticsearch --default.path.logs=/var/log/elasticsearch --default.path.data=/var/lib/elasticsearch --default.path.work=/tmp/elasticsearch --default.path.conf=/etc/elasticsearch

Just try to add a line into /etc/init.d/elasticsearch to print out the above command:

# Start Daemon
log_daemon_msg "sudo -u $ES_USER $DAEMON $DAEMON_OPTS"    # <-- Add this line
start-stop-daemon --start -b --user "$ES_USER" -c "$ES_USER" --pidfile "$PID_FILE" --exec $DAEMON -- $DAEMON_OPTS
log_end_msg $?


Upgraded from 12.04 to 14.04, cannot log in

i had a similar issue and the problem was the permission with the file ~/.Xauthority
so i took backup and deleted it and rebooted this solved my login issue


Ubuntu 1804 full disk encryption and added RU language can't enter password on startup

As solution, I recommend you boot from live CD and change password of your partition to latin layout.

Access an encrypted system from a Live CD:

In the case of emergency, it may be useful to have access to the encrypted files of a system installed by using this manual (you need the password, for sure). Boot the Live CD and install the needed software:

sudo apt-get install lvm2 cryptsetup
sudo modprobe dm-crypt

Open/decrypt the device (replace sda2 with your device if needed):

sudo cryptsetup luksOpen /dev/sda2 lvm

Activate the LVM to get /dev/ubuntu/home, /dev/ubuntu/root and /dev/ubuntu/swap:

sudo pvscan
sudo vgscan
sudo lvscan
sudo vgchange -a y

Mount the root and home partition:

sudo mkdir /mnt/root
sudo mount /dev/ubuntu/root /mnt/root
sudo mkdir /mnt/home
sudo mount /dev/ubuntu/home /mnt/home

Now you can access your home partition via /mnt/home, the root partition is located at /mnt/root. So you can copy or edit all of your data. If you don't have enough permissions to copy needed files, try it with a filemanager started with gksudo nautilus.

Change/add/remove passwords:

LUKS is able to manage up to eight passwords at the same time. Each password will be stored in a so-called slot (0-7). The currently used slots of the encrypted partition can be printed out by using luksDump (don't forget to replace sdX2 with your own partition, e.g. sda2):

sudo cryptsetup luksDump /dev/sdX2

[...example output follows...]
Key Slot 0: ENABLED
    Iterations:             xxxxxx
    Salt:                   [...]
                            [...]
    Key material offset:    8
    AF stripes:             4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED

To add a new password, use luksAddKey:

sudo cryptsetup luksAddKey /dev/sdX2

To remove an existing password, use luksRemoveKey:

sudo cryptsetup luksRemoveKey /dev/sdX2

Source: http://blog.andreas-haerter.com/2011/06/18/ubuntu-full-disk-encryption-lvm-luks#tips_and_tricks

Some solutions to change password encrypted LVM: https://askubuntu.com/a/110195/881020


Sounds like you're trying to run unzip or double click on a .zip or .msi. file.  You probably downloaded a program for Windows.

Linux programs are usually distributed as .deb files, or sometimes .rpm, .bin, or .tar.gz.

Try to find a .deb file, then you can just double click on it to install it.

In the case of WorldWide Telescope, it looks like you need the "Web Client" version.

Follow the instructions here to install Moonlight and then the appropriate browser extension.

Or if you really need to run a Windows version, read about Wine.


The best solution would be to setup everyting again on the server and copy only the "production data". (You should document your setup, so that you can recreate it whenever necessary and only need backups for restoring production data.)

Restoring parts of an operating system to another existing system is a bad idea and will result in inconsistencies. For example copying contents of /usr from a desktop system to a server system will install contents without informing the package management system and will not update them with security updates. You should install the packages through the package manager instead. Copying /tmp on the other hand is almost pointless, because it is usually wiped upon reboot.

Backing up and restoring a machine from a tar archive is meant for clean drives/partitions, where it is easy and just involves restoring data, writing the boot loader and probably replacing filesystem UUIDs.


apt want to downgrade to older package version

Ok I' ve found this solution:

  sudo apt-mark hold packet

It won't upgrade packet marked as hold


WebGL doesn't work when VNC server is turned on

I finally found a solution for this. The problem is in VNC server I used. I simply installed TigerVNC instead of tightvnc and it fixed it.
sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer


How to install .bundle packages in Ubuntu?

First be warned, installing files from outside of Ubuntu repository may compromise the system. VMware is probably safe, but it still should be mentioned.

You need to change permission of the file to make it executable:

chmod a+x VMware-Player-6.0.3-1895310.x86_64.bundle

Start the file. You will most probably need root privileges to install VMWare, but that is not always the case. So in this case:

sudo ./VMware-Player-6.0.3-1895310.x86_64.bundle


Enable slow query logging:

https://stackoverflow.com/questions/22609257/how-to-enable-mysql-slow-query-log

Take note of what version of MySQL you are using when configuring it but the log should then appear at /var/log/mysql/slow-query.log


How do I disable "An update for GNOME Shell extensions" notifications?

To get rid of the update notification, you will need to disabling the automatic check for updates to Gnome Shell Extensions in preferences of the "Gnome Shell Preferences" extension of your browser.
In Firefox:
- Select Tools - Add-ons (or "Add-ons" under the Open Menu button)
- Select "extensions" in the menu on the left, then click the "Preferences" button next to "GNOME Shell Integration".
- Scroll to the bottom of the page, where you can disable the option "Check for extensions update".

The automatic check does do only that: check whether there is an update and notify you. If yo do not want the notification, then it does not make sense to check. So deleting the notification means you need to disable the check.

There is currently no mechanism where updates to Gnome Shell extensions that have been installed by the user are automatically installed. In contrast, extensions that have been installed system-wide will be automatically updated like any other software through your package manager.


How do I set the root password so I can use su instead of sudo?

Warning: Directly logging in as root is like playing with fire, because one little typo is enough to lose critical data or make your system unbootable. Note that desktop environments will also function incorrectly if you login to them as root.
See these questions for the reasons behind why sudo is preferred and why root-login is disabled by default:

What are the benefits of sudo over su?
Why is there no option to login as root?

You may have noticed that you can’t log in as root on Ubuntu, this is because root doesn’t actually have a password set.
Enter the following command:
sudo passwd

You will be prompted for your current user's password, followed by the password you want to set for root. The messages prompted should be similar to the following:
[sudo] password for <username>: <Type your user password and press return>
Type new UNIX password: <Type the root password you want>
Retype new UNIX password: <Retype the root password you chose in the previous prompt>

The following message will appear after that:
passwd: password updated successfully

If the above message showed up on your terminal, you can now enter as root from your current user entering the following command:
su

And you will be prompted for the root password you've set. That's it!


HELP, "hdaudioC0D3: unable to bind codec" cant boot up

Well this did it. All I had to do was remove "nomodeset" as well, which was supposed to be the solve.

Ubuntu 19.04 Freeze at loading DELL E6430 i5 - nomodeset didn't work well


Wubi "could not retrieve the required disk image"

This seems to be an issue with the wubi version, as described here, which creates incompatibility with the Ubuntu version you are trying to install.

Yes the log file is hidden on this location C:\users\username\appdata\local\temp\
The name of the file is something like "wubi-12.04.1-rev190.log"
You have to enable "view hidden folders" on folders options of Windows Explorer.

This problem will not happen if you create a Live-USB or Live-DVD, because wubi is a installer inside Windows. You may try Ubuntu from a Live-USB without any changes to the system, however, given the fact that Wubi provides an easy way to try Ubuntu without partitioning, mess with boot menus and that you may uninstall it later just as easily as uninstalling any other application, here it is something that worked for me.

Try to get wubi installer from here instead:
http://releases.ubuntu.com/precise/
It is the wubi.exe located at the bottom of the page.

Then try again the whole process and if everything goes fine this time, wubi will ask you to reboot computer. Do it and check if the option to boot Ubuntu is there.


How do I re-install Ubuntu without losing data?

If you are using a dual boot and wan to re-partition, you will want to back up all the files you want to save on a type of storage medium (e.g. USB or CD) After you have backed up your files, to edit your partitions, download GParted partition editor in Ubuntu software center and use it to edit your partitions. Just to be safe, make sure you have the disks for reinstalling the other OS on the computer. If you want to begin anew and make your computer entirely Ubuntu, just boot from the USB or CD with Ubuntu on it and install, this time not next to the other OS(s). Remember to back up all wanted files before taking any action.


Finally fixed it it was a problem with the wifi driver all I had to do is this:

Open /etc/modprobe.d/blacklist.conf (as root) and add at the end:

blacklist rt2800pci

The problem has that there was a wrong driver loaded.


From what I gather you're simply trying to return to your user account after gaining access to root.

Try typing

exit

in terminal. Or you can simply press CTRL+D.


You don't need any special drivers in Ubuntu like in Windows. Most features are supported by default without any external drivers.

If any extra proprietary drivers are needed the system will detect it itself and ask you to install.

There are a few sites that show Ubuntu compatibilty, for example:http://www.ubuntu.com/certification/desktop/models/?page=2&category=Desktop&category=Laptop&level=Any&query=hp+pavilion


How can I prevent the launcher for ubiquity in a persistent live stick

Ubiquity the Ubuntu installer is not included in a Full install
Ubuntu can be installed to a USB in different ways. A Live install does not save between sessions. A Persistent install extracts the OS from a compressed file and saves data to an overlay file or partition each session, and a Full install installs the complete OS to the USB just like an install to internal disk.
Comparison between Persistent and Full install USB
Advantages of a persistent install:

You can use the persistent pendrive to install Ubuntu to another computer.

A persistent install takes up less space on the pendrive.

You can reset the pendrive by overwriting the old casper-rw file with a new one.

The install to pendrive takes less time.

Slightly less wear on the drive.

Advantages of a Full install:

You can update and upgrade.

If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in the forums).

No ugly startup / install screen.

Better security, you can use full encryption

You can use proprietary drivers.

Swapfiles and partitions work and Hibernation can be enabled.

Many persistent installs are limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot.

More efficient usage of disk space. Does not require reserved space for persistence.

Faster boot, no automatic disk checking or Try Ubuntu/Install Ubuntu screen.

You can run VBox and use virtual machines.

Generally faster boot than Live or Persistent USB's.

More stable, better for day to day use. I have run Ubuntu off a flash drive for 5 years making only LTS upgrades.

Note that once booted, both methods run at about the same speed. If the computer has lots of RAM Ubuntu should run mainly in RAM and there will not be a big difference between running off internal HDD and USB3 flash drive f.
Full Install Method
A quick and easy method to flash a Full install to USB can be found here: Easy Full Install USB that Boots both BIOS and UEFI
A more traditional methods for creating a Full install USB from scratch can be found here: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


nouveau error unknown chipset, drm failed

Use a command like this

lspci -vnn | grep -i VGA -A 12

This will give you details about your VGA controller, if it is the Intel one (which I think it is) then do

sudo apt-get install intel-linux-graphics-installer

Then run it this should remove the error.


Wrong display resolution after failed NVIDIA driver update

You can remove the nVidia drivers and that will restore the open source nouveau drivers and the config your system was previously in (before the installation):

Launch a terminal and run:

sudo apt-get remove --purge nvidia*

or respond to my comment above and post the output of xrandr and we can show you how to change the resolution over the command line.


I get 'Errors were encountered while processing: steam_latest.deb' installing Steam

sudo apt-get install curl fixed it for me.

dpkg: error processing package steam-launcher (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
 steam-launcher
w1z@cloudy:~/Downloads$ ls
steam_latest.deb

After installing curl:

w1z@cloudy:~/Downloads$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 123 kB of archives.
After this operation, 313 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main curl amd64 7.35.0-1ubuntu2 [123 kB]
Fetched 123 kB in 1s (116 kB/s)
Selecting previously unselected package curl.
(Reading database ... 173928 files and directories currently installed.)
Preparing to unpack .../curl_7.35.0-1ubuntu2_amd64.deb ...
Unpacking curl (7.35.0-1ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up curl (7.35.0-1ubuntu2) ...
Setting up steam-launcher (1.0.0.48) ...


you can try this https://code.google.com/p/touchegg/ , it's available in the official repository for the latest release of Ubuntu.

you can also install utouch.


How do I change the IP adress given for the shared connection?

In graphical way u can try this link

http://www.howtogeek.com/116409/how-to-turn-your-ubuntu-laptop-into-a-wireless-access-point/

from command prompt try below

Hi you need to configure hostapd

I have configure following in hostapd /etc/hostapd/hostapd.conf with WPA authentication options for wireless users

01 interface=wlan0

02 driver=nl80211

03 ssid=dontMessWithVincentValentine

04 hw_mode=g

05 channel=6

06 macaddr_acl=0

07 auth_algs=1

08 ignore_broadcast_ssid=0

09 wpa=3

10 wpa_passphrase=KeePGuessinG

11 wpa_key_mgmt=WPA-PSK

12 wpa_pairwise=TKIP

13 rsn_pairwise=CCMP

sudo hostapd /etc/hostapd/hostapd.conf


In my experience, i have accidentally caused this by installing ubuntu with UEFI "Secure Boot" enabled, and then trying to boot with "Secure Boot" disabled, try re-enabling it in your BIOS if you have it disabled.


RTL8188SU USB dongle not started at boot

Edit the following file using any of the following methods...

In terminal...

sudo -H gedit /etc/modules

sudo pico /etc/modules

Add the following line:

r8712u

Save the file and reboot, and your adapter should work fine.


I did not tried this but you can try to use SSH X or Y to run TeamViewer via X11 forwarding:

ssh -X user@host teamviewer

or

ssh -Y user@host teamviewer


Ubuntu 16.04 - Can't install grub customizer

This package does not appear in the default repositories. This is the PPA.

In short:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer


Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Ubuntu 16.04.5

What you're seeing is just a warning.  This means that it's just indicating that the default configuration has an option set while another is set, and that it does nothing.

There is no error here.  You could ignore the warning from here until the end of time and it wouldn't matter.

It does not mean there's anything broken, it's just a warning message about some feature no longer being supported, but it will not break your system or cause problems.


How to get the scanner working on printer HP M2727MFP and Ubuntu 14.04?

Install scanner drivers :

sudo apt-get install sane xsane xsane-common sane-utils libsane libsane-common libsane-dbg libsane-dev libsane-extras libsane-extras-common libsane-extras-dbg libsane-extras-dev

Then use the scanner with the package simple-scan


I want to get rid of Ubuntu and boot my Windows 8 partition

When this happened to me I had to insert a windows 7 disc and run the tool to fix the mbr from recovery mode. After I did that I booted into windows and used the disk manager to remove the Ubuntu partition.

Here is some instruction on using Bootrec.exe

The funny thing is I wasn't able to do this with a Windows 8 disc and I had to use my older Windows 7 disc.. I hope this helps you.


Screen Brightness not binded to Multimedia keys properly

I updated my system to recently released Ubuntu 16.10, and it solved this problem. The multimedia key for Brightness control is working properly.
But the min value of Brightness leads to black screen.


Force xscreensaver to go fullscreen on Ubuntu 12.04

looks like an issue with Xorg, although there is a work around for it.

http://www.jwz.org/xscreensaver/faq.html#screen-size


First, open a terminal. (ctrl+alt+t)

Next, cd into the directory containing the file. So for example, if your file was in the Downloads directory in a folder called "coolgame", you would run:

cd Downloads/coolgame

To confirm that you are in the right folder, run:

ls -l

And make sure you see it in the list.

Next, you need to give it the executable bit, so that Ubuntu allows you to run it. Assuming the installer is called "install.sh", you would do that like so:

chmod +x install.sh

Finally, to run it, all you have to do is run:

./install.sh

Now if running the installer with the above command says "you need to be root" or something like that, then you would need to run this command instead to run the installer:

sudo ./install.sh


How do I install Ubuntu on a Meego pad t01

According to 2015 latest MeeGoPad Intel Quad Core Z3735Fwindows mini pc dongle TV dongle windows8.1 Android Ubuntu set top box compute stick the MeeGoPad T01 HDMI TV stick supports Ubuntu.

The MeeGoPad T01 HDMI TV stick comes with either 1GB RAM or 2GB RAM. Ubuntu 14.10 32-bit would be appropriate for the 2GB RAM model, so that you will have the most up-to-date software. Either Xubuntu 14.10 32-bit or Lubuntu 14.10 32-bit would be appropriate for the 1GB RAM model.

  Ubuntu 14.10 supports 3735F out of the box, just like the PC. Even the touch screen is supported out of the box, unlike the ARM platform to worry about the drivers, timing configuration, etc. I have to say UEFI is great.

A vanilla *buntu installation should work OK on the MeeGoPad T01 HDMI TV stick, if you have the model that came with Android preinstalled. If you have the model that came with Windows 8.1 preinstalled, you may have problems booting a different operating system due to the UEFI firmware and another possible issue is will the UEFI firmware let you boot a 32-bit operating system?. I haven't been able to find the answer to this question other than to try to boot a 32-bit operating system on the device, and see if it boots. The Intel Atom Z3735F "Bay Trail" quad core processor in your device supports both 32-bit and 64-bit operating systems, so you could install either a 32-bit or a 64-bit operating system on your device.

If that doesn't work, the next step would be to try and boot a small-sized 32-bit live USB like GParted live USB or Clonezilla live USB by plugging the live USB flash drive into the USB port on your device. If, for example, GParted live USB boots and Ubuntu doesn't boot, then you're ready to read this article FAQ: Asus T100: Installing custom OS (android/ubuntu/*nix/Windows 7/Windows 8 x64), which describes how to install a 64-bit OS along with a 32-bit bootloader on a UEFI firmware device.

One thing about the article that concerns me is that the author of the article assumes that if GParted live USB boots on your device it is because of the 32-bit architecture, but I have found this not to be the case. In my case older versions of Ubuntu will not boot, however Ubuntu 14.04 64-bit will boot, so I'm not convinced that the 32-bit architecture of the Ubuntu installation iso file has anything to do with it, but you won't know that for sure unless you try it out on your device.


How to get list of installable packages from repositories?

The command line way of obtaining such a list would be apt-cache:

apt-cache dump # short list
apt-cache dumpavail # long list

This will take some time due to the many packages available.

You can grep Package: by following command:

apt-cache dumpavail | grep "Package:"

My personal approach to view packages I can't remember still is installing and running Synaptic  which has a searchable GUI and can also be used to install and purge a given package.


Should I get rid of the filesystem at /var/lib/ureadahead/debugfs?

There isn't anything to get rid of, other than the dangling entry in /etc/mtab.  debugfs is a virtual filesystem like /proc; it does not actually exist on disk.  There is a bug somewhere in the boot process where it is unmounted, but /etc/mtab is not updated, so it still shows it in df.  Since nothing is actually mounted there, df gets the size information from your / filesystem.


GParted can't resize partition, but unallocated partition is available

You need to move the existing partitions so that the unallocated space that you wish to use is adjacent to the target partition.  See:
https://gparted.org/display-doc.php%3Fname%3Dhelp-manual#gparted-resize-partition


Is there a quick way to convert camera raw files to DNG?

There is an batch converter called DNGconverter.  Parts of KDE might be dependencies but it's in the Software Center for installation so that will be taken care of.

Some of the comments on it in software center are saying there's a problem with a work around, you might want to investigate this.  There are a few applications like UFRaw that handle raw files very well, you might want to see if there's batch processing capabilities with that one.


Does 'sensors' command show accurate temprature of CPU cores?

You did not mention which temperature, but assuming you mean the processor temperature of one of its cores or the package:
Yes, absolutely the temperature can rise and fall that fast. Rate is a function of cooling method and how good a thermal bond you have between your processor and that cooling method.
Passive cooling methods require some temperature differential for heat to flow from hot to cold. The higher the differential the faster the heat flow.
Liquid cooling methods bring the cold to very close proximity to the processor itself, requiring very little temperature differential for good heat flow.
As far as I know sensors does not guess.
Here is an example using an air cooled Intel i7-2600K processor, with known good thermal bond between the processor and the heat sink and known fast fan response time. Using turbostat instead of lm-sensors, and prime95 torture test to create high heat load:
$ sudo turbostat --Summary --quiet --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 0.25
Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt
0.16    2029    61      37      4.16    0.12
0.14    1872    57      37      4.10    0.12
0.13    1932    60      39      4.11    0.12
52.09   3498    1251    54      47.29   0.12 <<< load applied, already 15 degress
100.00  3500    2063    58      87.15   0.12
100.00  3500    2058    60      87.55   0.12
100.00  3500    2054    62      88.07   0.12
100.00  3500    2064    63      87.96   0.12
100.00  3500    2052    64      88.29   0.12
100.00  3500    2067    64      88.12   0.12
100.00  3500    2053    64      88.13   0.12
100.00  3500    2063    65      88.30   0.12
100.00  3500    2060    66      88.56   0.12
100.00  3500    2058    65      88.35   0.12
100.00  3500    2057    65      88.30   0.12
100.00  3500    2058    66      88.78   0.12
100.00  3500    2055    66      88.40   0.12
100.00  3500    2060    67      88.56   0.12
100.00  3500    2053    67      88.84   0.12
100.00  3500    2062    67      88.57   0.12
100.00  3500    2056    67      88.56   0.12
99.99   3164    2074    62      76.39   0.12 <<< Throttling
100.00  2700    2052    61      58.25   0.12
100.00  2700    2063    60      58.34   0.12
100.00  2700    2063    60      58.14   0.12

So, sampling at 4 hertz (0.25 seconds period) we saw 52% after the load was applied, therefore we know it was roughly 1/2 way between samples. So the processor temperature went up 15 degrees in approximately 0.125 seconds.
To protect my processor for this experiment, I also ran thermald with a low trip point, and you can observe it throttling the CPU frequency after awhile.


Neofetch custom config file - what is required config file format

On neofetch's first run the config file is created in $HOME/.config/neofetch/config. You can also copy the default config from /usr/share/neofetch/config. Finally you can also grab the config file from the github repo, here's the link to the config file for the latest release.

https://github.com/dylanaraps/neofetch/blob/e408e6f8d7c30c6fd649523522b51c3239b1364a/config/config

You shouldn't create the config file from scratch since you won't know what to fill it with. :)

I'll update the Readme to explain this better so that other users don't have this issue in the
future.

I hope this helps.

- Dylan,

Author of neofetch


Because it was xterm on the server, I figured something was wrong with .bashrc

And indeed! ls --color=auto works only when you are connected to TTY. Changing everything to simply --color in .bashrc on the remote host and everything is in pretty colours now.


how to install java 8 32 in ubuntu 18.04

Use this repository for installing Java 8 without that tar.gz nonsense
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
I still can't believe that Oracle is not going to provide an official .deb file.