I suggest you try uxterm which comes with Ubuntu by default, and the man page defines it as x terminal emulator for unicode environments. Here's excerpt from man uxterm:

  uxterm is a wrapper around the xterm(1) program that invokes the
  latter
         program with the “UXTerm” X  resource  class  set.   All  arguments  to
         uxterm  are  passed  to  xterm  without  processing; the -class and -u8
         options should not be specified because they are used by  the  wrapper.


Magic Mouse and Apple Keyboard on Ubuntu-macOS dual boot

Apple keyboard
Connect with the cable and also keep the "slide-switch" in the switched on position.

Mouse:

Initially you will have to use a wired or 2.4Gz adapter mouse.
sudo apt-get install -y blueman
connect your mouse using the GUI and also set it as trusted device.


Webpage doesn't render in ubuntu (tried firefox/chromium/browser) but works in windows

It could be that you're missing the fonts required to display that webpage, usually missing fonts for a webpage are substituted by equivalent ones but looks like this is not possible for that webpage. Depending on your Ubuntu version you should install the package msttcorefonts or ttf-mscorefonts-installer to get the Microsoft fonts.


Reinstall Ubuntu with more hard drive space

I believe you can just uninstall Wubi as it's just a program within your Windows 7 and reinstall Wubi and choose your desired space. This guide might help you:  WubiGuide


Simple rhythmbox plugins do not work - why?

The rhythmbox plugins are now located in the following directory

~/.local/share/rhythmbox/plugins

However even when you copy the Simple Rhythmbox Plugins to that directory such won't appear in the plugins view as such plugins are not compatbile with the rhythmbox version available for 11.10 and higher.

Such plugins need to be ported. See Introduction to Rhythmbox plugins for details. Also take a look at the plugins available for Rhytmbox. There might be a substitute suitable for you.


nm-applet icon disappears after connecting in tint2 panel

Try and change your icon-theme. Or alter the size of the panel/systray icon size and see if that works. Maybe your theme can't find the right icon and draws a blank (systray_icon_size = xx)


So, the only thing you like is for the terminal to remain there after the scan completed? That's pretty easy. In the last line of your script add the command read.

eg.

#!/bin/bash

....Your script....

read


out = open("output.txt", "w")
 out.write(str(5*5+9))
 out.close()

You have to open python file object to do that. If you run python script, then you can use '>':

 python test.py > output


How to set up Dolphin as default file manager?

To view the current default for opening directories:
xdg-mime query default inode/directory

To set Dolphin as default:
xdg-mime default org.kde.dolphin.desktop inode/directory

To set Thunar as default:
xdg-mime default thunar.desktop inode/directory

Run either on the terminal as regular user. If you want to set the default to another file manager, install the file manager, and find the correct .desktop file by searching in /usr/applications/ on the command-line.

Related files:

/usr/share/applications/defaults.list system-wide defaults
$HOME/.local/share/applications/mimeapps.list
$HOME/.config/mimeapps.list where xdg-mime saves configuration

Sources:

http://www.fandigital.com/2013/01/set-nemo-default-file-manager-ubuntu.html
https://wiki.archlinux.org/index.php/Default_Applications
http://packages.debian.org/sid/ia64/dolphin/filelist


How can I make rsync to switch to another harddrive automatically if space on the first one is full?

I don't think what you propose is achievable (with just rsync) and/or sensible. Rsync synchronises objects in two locations. You should probably think about solving this on a lower level.

First of all, if this is how you back up your data, by splitting it randomly between two disks, you effectively double the chances of your backup becoming incomplete if one of the devices fail.

If you really don't care about that (depending on the data importance it might be a pretty bad idea), you could:

remove partitions from both disks (I assume they're /dev/sdb and /dev/sdc)
use Logical Volume Manager (LVM) to create a volume group using those disks as Physical Devices. It would have be roughly the size of a sum of sizes of both disks
add a logical volume (or more) in this volume group
create a filesystem on it
mount it and use as the destination for your rsync copy.

in short (I named the Volume Group 'vg10' and the Logical Volume within it 'backup'):

dd if=/dev/zero of=/dev/sdb bs=512k count=1
dd if=/dev/zero of=/dev/sdc bs=512k count=1
vgcreate vg10 /dev/sdb /dev/sdc
vgdisplay vg10 # look for number of free physical extents
lvcreate vg10 -n backup -l<number_of_free_physical_extents>
mkfs.xfs -L backup /dev/vg10/backup
mkdir /mnt/backup
echo "/dev/vg10/backup /mnt/backup xfs defaults 0 0" >> /etc/fstab
mount -a

Keep in mind that you'll need both disks connected to be able to mount /mnt/backup and that this doesn't give you ANY redundancy.

I don't know your scenario but I'd go with at least a RAID1 setup for my backup.


Unable to restore Envince as default pdf viewer

You don't need to delete the file and lose all the associations. You could just remove the lines that associate PDF to imagemagick. I just removed the following lines from ~/.config/mimeapps.list, and it worked!

image/pdf=display-im6.desktop
image/pdf=display-im6.q16.desktop;display-im6.desktop;


Duplicated menu, panel indicators and taskbar

I just ran into the same issue. I finally found a solution. Follow the instructions on the answer. You can double click inside the [ ] to edit what you need.

gnome-panel has multiple rows -- how to undo that?


What is the closest font to Helvetica available on Ubuntu?

The PostScript language defines 35 core fonts in PostScript 2. Among them is the Helvetica family. A properly configured system should automatically substitute one of the following fonts, if available:

Microsoft commissioned a copy of Helvetica – The well-known Arial. (ttf-mscorefonts-installer)

Google commissioned the Croscore fonts, designed to be metrically compatible with Microsoft fonts. The Arial equivalent is Arimo. (fonts-croscore)

Red Hat commissioned a set of fonts designed to be metrically compatible with Microsoft fonts. The equivalent of Arial is Liberation Sans. (fonts-liberation2)

URW released open-source clones of the 35 Postscript fonts for ghostscript. The Helvetica equivalent is Nimbus Sans. The metrics are slightly different from Arial.

GUST TeX Gyre is based on the URW fonts. The Helvetica equivalent is TeX Gyre Heros. The metrics appear to have been adjusted to match Arial. (fonts-texgyre)

GNU FreeFont is based on the URW fonts, with the same metrics. The Helvetica equivalent is FreeSans. (fonts-freefont-ttf)

Reference

ArchWiki: Metric-compatible fonts


Once the question has been changed and it was unclear what is meant, the 2nd part of my answer is an answer to this version of your question.

But I will try it again

Using awk

#!/bin/bash
path=$(awk -F= '/path/ {gsub (/\[date\]/,"'"$1"'",$2); print $2}' conf.ini)
echo $path

Example

% cat conf.ini
path=/var/opt/[date]/yellow

% ./foo 08/20/2016
/var/opt/08/20/2016/yellow

2nd part

Using awk in a script with the name foo, I don't like eval ;)

#!/bin/bash
source conf
path=/var/opt/$(awk -F= '/^'"$1"'/ {print $2}' conf)/yellow
echo "$path"

Using eval ;) in a script with the name foo

#!/bin/bash
source conf
eval path=/var/opt/'$'"$1"/yellow
echo "$path"

Example

$ cat conf
date=2015-08-04

$ ./foo date
/var/opt/2015-08-04/yellow


How do I force the native screen resolution of my display if it's not offered using fglrx driver?

It is likely that the reason you cannot achieve this resolution on the external monitor is because the card does not support it.

Most graphics cards only support a certain number of possible resolutions and combinations, so with two monitors, the card probably cannot push the resolution you are trying to achieve. It is also possible that this is a driver related issue, as proprietary drivers normally limit the resolution options to something that is safe for the card.

You might be able to achieve a lower resolution that works with your monitor (such as 1400x1050), but not the maximum supported by the monitor.


How do I set my printer up or check the printers status under the Unity interface


It depends on what output format you want.

apt-cache policy shows the current sources with the priority applied to each:

~ apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main i386 Packages
     release v=16.04,o=LP-PPA-webupd8team-java,a=xenial,n=xenial,l=Oracle Java (JDK) 8 / 9 Installer PPA,c=main,b=i386
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main amd64 Packages
     release v=16.04,o=LP-PPA-webupd8team-java,a=xenial,n=xenial,l=Oracle Java (JDK) 8 / 9 Installer PPA,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial/main i386 Packages
     release v=16.04,o=LP-PPA-ubuntu-wine,a=xenial,n=xenial,l=Wine Team PPA,c=main,b=i386
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial/main amd64 Packages
     release v=16.04,o=LP-PPA-ubuntu-wine,a=xenial,n=xenial,l=Wine Team PPA,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial/main i386 Packages
     release v=16.04,o=LP-PPA-jonathonf-vim,a=xenial,n=xenial,l=Vim,c=main,b=i386
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial/main amd64 Packages
     release v=16.04,o=LP-PPA-jonathonf-vim,a=xenial,n=xenial,l=Vim,c=main,b=amd64
....

The information here can be used in other apt configuration, like apt preferences or the configuration for unattended-upgrades.

You can also use the Python API:

#! /usr/bin/env python3
import aptsources.sourceslist
sources = sourcesList.SourcesList()
for source in sources:
    if not (source.disabled or source.invalid):
        print(source.line.strip())

Which gives output like:

deb http://jp.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://jp.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://jp.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial universe
deb http://jp.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://jp.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe


unable to detect wireless after installing ubuntu 16.10: Broadcom bcm43212

You need to install dkms and broadcom-sta-dkms.

In terminal...

sudo apt-get update
sudo apt-get install dkms broadcom-sta-dkms
reboot

During the reboot, enter your BIOS and disable secure boot.


Why do I have no prompt in terminal on XFCE in ubuntu 12.04

The prompt was there the whole time!

The problem was a color setting found in Edit->Profile Preferences where it said "Colors" and defaulted to "Use colors from system theme". This was making it Black on Black!

I changed it to White on Black because that's what I'm used to, but there are many options in there, and you can select from various pallets.

This came after checking to see that /etc/shells had the correct/bin/bash in it and making sure my /etc/passwd file had /bin/bash at the end of the listing for my user.
Those were given as possible solutions in other threads in other forums.


Is there any way to get a key I no longer have access to deleted from the keyserver?

There is no way to delete keys from key servers. You could revoke it with a revocation certificate created in advance or access to the private key (to create such one), but never delete a key.

Well, theoretically you could, but you'd have to convince each single administrator of one of the hundreds of OpenPGP key servers to do so, and if somebody uploads it again it will reappear and redistribute. Most of these administrators will refuse anyway.

To prevent loosing access to your key, do following:

Regularly backup your computer (important anyway).
Create an offline copy of your private keys.
Create a revocation certificate immediately after creating a primary key. Store it both in a digital way and print it on a piece of paper (I recommend something like gpg --gen-revoke | qrencode to be able to scan the certificate without the hassles of OCR).
Create a second copy and hand it to somebody you trust. He cannot do anything but revoke your keys with it (never gain access!), but you always have a fall-back in worst case scenarios (house burned, robbery, ...).


ENV variable within an ENV variable in upstart script

Add braces around the variable. I assume you are trying to use the $HOSTNAME environment variable.

env CONFIG_NODE_NAME=my_${HOSTNAME}_node


Samsung NP N150 sp0gin notebook overheating

OP answered question in comment

74 degrees is not normal temperature when the critical temperature for it is 90 degrees and it happens while browsing internet whatabout the other processor intensive tasks. Moreover this overheating problem sucking my new battery fast and all my keyboard is hot.I got same answers from ubuntu irc support.nobody is trying to understand the problem.finally found this article phoronix.com/… about aspm. after applying the patch there's some decrease in temp.Now it hasn't gone to 74 degrees yet.


Old processor(Sempron 3000+) won't boot anything with a 4.x kernel

I don't believe the Sempron 3000+ supports PAE kernels and perhaps this is required for the later 32-bit kernels. You can find out if your CPU supports PAE with the command cat /proc/cpuinfo |grep pae

It seems that Ubuntu may have scrapped non-PAE kernels some time ago. I've been unable to find anything definitive, but there is an indication that this might be your problem here.


Is Ubuntu a globally developed software product?

Yeah, Ubuntu is widely developed, many countries and developers contribure. Look at: Community ,Developer and Contribute For more information.


How to upgrade to ubuntu 12.10 from 10.04(lucid)

You can update from Update Manager (it will not affect your Windows system), but i think will be better to backup your user data and make fresh install of 12.10.


Can I use linux safely and sell on ebay?

A couple of years ago, ComputerWorld author Robert Mitchell made some waves with an article titled "Can Ubuntu Save Online Banking?"  The premise of the article isn't anything really pro-Linux or anti-Windows.  But rather that conducting online banking from the same PC used (by your entire family) for web surfing puts you at-risk of any dormant malware designed to steal bank information.  As a remedy, the author recommends using an Ubuntu Live CD for online banking, and even suggests that some banks might start handing them out to customers.

My point with referencing this article, is that if security experts are recommending using Ubuntu (albeit, on a live CD) for banking, then you should be ok on EBay.  As others have said, you should be fine with Ubuntu out-of-the-box.  I've used Ubuntu for online banking, EBay, shopping, etc for several years now, and never had a problem.


NVidia 840m problem with Ubuntu 14.04 ("screan tearing")

The standard Ubuntu NVidia drivers generate some problems on slightly older and slightly newer NVidia hardware.

If you want more then the standard Ubuntu repository drivers, install the xorg.edgers PPA.  As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do.

If you don't know what a PPA is or need some more guidance after reading their page, leave a comment below.


Unable to change permissions for a folder

Something may be wrong with directories
Try this:

sudo find /opt/popcorntime -type d -exec chmod 755 {} \;
sudo find /opt/popcorntime -type f -exec chmod 644 {} \;


After entering the correct login password i am getting enter password screen again

It can be the same issue I had

First, go to tty3 (Ctrl+Alt+F3) and login
sudo adduser test

Go back in the login shell and try to log as the test user. It may be useful to know if it is user dependent.

Here few fix you can try on tty3 (and don't forget if there's something usefull on .xsession-errors file in ~/ and edit your question with it)

In ~/, run
ls -lah | grep -i Xauthority
If .Xauthority permission are'nt yours, resolve it with sudo chown username:username .Xauthority

ls -lah /tmp
you should get that line
drwxrwxrwt 22 root      root      132K May 25 13:07 .
If you get anything else that drwxrwxrwt, here's your issue and you need to run sudo chmod 1777 /tmp

Make sure you're connected to the internet (ping 8.8.8.8)

sudo apt install lightdm and reboot on lightdm.

Once logged your session, sudo apt --configure gdm3. In my case, it didn't work so I made lightdm, then choose gdm3 in the menu. It's just a workaround. You might also try to purge gdm3 and install it back, as I did.

In my case, gdm3 still was broken, althought I could log in the test user... I didn't find how, and I still use lightdm instead. You would be kind if you update your question with every piece of information so that it'll help every users in that situation (including me :p ).


over-coming interactive command in a script

I found this simple script to get the job done:

#!/bin/bash
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
    read -p "Enter username : " username
    read -s -p "Enter password : " password
    egrep "^$username" /etc/passwd >/dev/null
    if [ $? -eq 0 ]; then
        echo "$username exists!"
        exit 1
    else
        pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
        useradd -m -p $pass $username
        [ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!"
    fi
else
    echo "Only root may add a user to the system"
    exit 2
fi


Problem with cifs-util. Mount: only root can mount

Just add users in /etc/fstab like that:

//192.168.0.72/Triple_RDF /media/Triple cifs credentials=/home/ubuntu/.smbcredentials,iocharset=utf8,sec=ntlm,users 0 0

Normally, only the superuser can mount filesystems. However, when fstab contains the user option on a line, anybody can mount the corresponding system.

Or if you want any user to mount/unmount the drives use users instead.


Click the little gear-symbol to the left of the login button, and choose "Gnome on Xorg', then the login will default to the Xorg session.


This seems to be a bug in Ubuntu

You can fix it by disabling the custom scrollbars:

gsettings set com.canonical.desktop.interface scrollbar-mode normal

More information:
http://trac.filezilla-project.org/ticket/9708


They are not supported by Canonical. They come from the Universe repository; support for those packages is provided by their developers.


http://www.mattfischer.com/blog/?p=343

I found this blog article that helped explain everything I was looking to do.
Hopefully it helps someone else.


What precautions should I take when moving a hard drive from one computer to another?

I went through with the migration a little sooner than planned because of external factors.

Note:

udev configuration of networking devices caused problems. I removed it and let it automatically reconfigure. I believe I moved from a Broadcom NIC to an Intel NIC.

That was it! It was as simple as plug-and-play, in my case. I'm more than 24 hours into the switch and I've detected no errors.


work around

~$ xhost +si:localuser:root
~$ sudo wireshark

Why don't gksu/gksudo work with Wayland?


This is answered in: https://askubuntu.com/a/154935/814

In short, the answer is:
Commenting out/removing the IEEE80211_HW_BEACON_FILTER (line 320 in base.c)


I installed DNS server in my initial Ubuntu server installion how do I uninstall it?

if you want to remove the bind9 package and any other dependant packages which are no longer needed, and also purging bind9 config/data too.
run this command:

sudo apt-get purge bind9

Or similarly:

sudo apt-get purge --auto-remove bind9


Upgraded to ubuntu 18.04.5 LTS "Enable UA Infra" notification

When it noticed that you were out of support, it created some files in
/var/lib/ubuntu-advantage/messages
I'm not sure that there's anything which removes these files once they are no longer relevant.  But you can remove them yourself:
sudo rm /var/lib/ubuntu-advantage/messages/*
I think that you can also remove /etc/apt/sources.list.d/ubuntu-esm-infra.list to prevent this problem from resurfacing, I believe until the next time you let the system go out of support.  It's possible that removing the package ubuntu-advantage-tools is desirable.


If you're trying to unlock the OS, is this for your encrypted disk or the standard login screen? If you're prompted with something like the screen below, just enter your encryption passphrase.

You're not supposed to see your mouse cursor.


Why are Ubuntu LTS releases based on Debian versions that aren't released yet?

I noticed that the corresponding Debian releases are happening a year after Ubuntu has already released their LTS based on that particular version of Debian.

That is not really a correct assessment. You would need to look at the actual package names and version numbers and not as a whole system. In some parts Ubuntu is ahead at some given moment and in others it is Debian.

There is roughly a 6 months gap between the "unstable Debian" and "stable Ubuntu".
Unstable Debian -> Unstable Ubuntu -> testing, fixing, and feedback to Debian -> beta release Ubuntu -> final Ubuntu release.

Do a lot of bugs get fixed in the first year of an Ubuntu LTS because of fixes bubbling up from the Debian community?

Between the beta and final release you will see more bugs getting fixed. And after the release you often see some extra updates but a lot less than before the final release. And the updates after that also get less and less. Just before the next releases you will also see a bit of an increase in updates (we already got 3 this week :) )


How to partition a new 500gb HD only installing Ubuntu 10.10?

I would let the installer take care of that. E.g., for a typical user there's no reason to put /boot in its own partition.

The only thing you could think about, is to put the /home folder on a separate partition, as this will make it easier to backup your data with partition-based backup tools.


How can I install a .deb file from command line?

.deb files are installed using the dpkg command. So use the following command:

sudo dpkg -i GP6.deb

-i tells dpkg to install

If it gives you errors about other packages/dependencies, run the following to fix it:

sudo apt-get install -f

-f tells apt-get to fix missing dependencies


Define hostapd configuration settings on netplan

According to the manpage, AP is only supported with the NetworkManager renderer. You should have a line in the netplan that tells it to use NetworkManager for the configuration of that device, then configure it there.

wlp1s0:
  access-points:
    "guest":
       mode: ap
       renderer: NetworkManager


How is it possible that I can execute JAR file from shell?

This is because ubuntu supports the binfmt_misc kernel module and the jar type is enabled. see /proc/sys/fs/binfmt_misc/jar

This is very old (since kernel 1.03). See more information here: https://stackoverflow.com/questions/1667830/running-a-jar-file-without-directly-calling-java

Other examples are python and wine, yes, if you learn how binfmt_misc works, you can create your own types too.


(fresh installation) should I remove Nouveuau before install NVIDIA driver?

You don't have to. Ubuntu will automatically switch to using the proprietary driver you install.

I also recommend that you avoid uninstalling nouveau, since there are sometimes problems with the NVIDIA driver installation. You might need to revert to nouveau while fixing the proprietary drivers. If it's uninstalled, it's an extra step (in a non-GUI environment most likely) to install them again.

Keep nouveau and install the proprietary drivers. You may want to check my Q&A on NVIDIA driver installations in 16.04 for a guide. (Yes, it says "Graphics Issues," but following the answer will help avoid any issues in the first place.)


Netbook Edition battery life - Ubuntu vs. Kubuntu?

Kubuntu Netbook Edition, running on my Asus eeePC 1000H is flat out unusable. The interface is so slow, I can sit and wait for 30 seconds for a button to press, or the task switcher to come up.
I've switched off all graphic enhancements, and I still can't see me using this thing. Makes the whole battery issue moot. Next up: Jolicloud!


You have a configuration file that's trying to load a library (mod_access_compat.so) that it can't find.

The file appears to be part of the apache2-bin package so first check that that's installed (and that all its files are present) with:

sudo apt-get --reinstall install apache2-bin


Unknown error: '' (“The cache has no package named wine1.6-i386”)

Take a look at Unknown error: '<class 'KeyError'>' ("The cache has no package named wine-staging-i386").

For me this did the trick:

sudo apt-get upgrade


Text editor with syntax highlighting, theme support and code folding

I would think gedit would be perfect.   It is on Ubuntu by default, is easy to use, and can be extended with plugins.
That being said, since notepad++ is based on scintilla, scite  is probably worth checking out.   Scite is based on scintilla as well, though as fred.bear points out, it might be less feature-rich than you need.
Here are a couple more:
jEdit
jedit - A plugin-based editor for programmers

jEdit is a powerful open source editor
[...]  unlimited undos/redos,
syntax highlighting for more than 130
file formats, markers for fast and
easy navigation, online help, bracket
matching for programming languages as
well as auto-indent. Plugins can be downloaded and installed from within jEdit using the "plugin manager" feature.

vim / gvim / cream
gvim  or cream - VI IMproved, with optional VIM macros that make the VIM easier to use for beginners


There is a samba 4 package in Ubuntu's Universe repository. It's currently in the alpha phase, so it's not recommended for critical applications.

You can install it by searching for "samba4" in the Software Center or Synaptic or by typing sudo apt-get install samba4 in a terminal.


The correct command in order to display the sound GUI

Depends on which sound system are you using. Under 18.04 is commonly used PulseAudio, so you can simply write:

pavucontrol

In your terminal or favorite launcher in order to see this:

Which is one of the most commong "Sound GUI's" used under Ubuntu 18.04

Please add more information to your question if you expected something else.


Try this. Once you are booted up to the blank desktop... press CTRL + ALT + F1.

apt-get install --reinstall ubuntu-desktop
apt-get install unity
apt-get purge nvidia* bumblebee*
apt-get install nvidia-prime

shutdown -r now

Hope this helps!


Cannot install dual boot ubuntu onto windows 10 machine, get grub menu instead of installer

For anyone else who finds this.

So, as I had managed to get to the GRUB loader, this implies that the BIOS was indeed trying to boot from the USB key. So if you see this message then at least you know that.

It turns out that I had formatted the USB key as NTFS, and ubuntu didn't like that, when it was trying to boot from the USB key itself. I recreated the USB key and chose FAT32 as the filesystem on the USB key.


How to generate linux-tools packages for customized kernel?

The build target you're looking for is binary-perarch:

$ fakeroot debian/rules binary-headers binary-generic binary-perarch skipmodule=true

Somewhat related links:

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
https://wiki.ubuntu.com/KernelTeam/KernelMaintenance


Ubuntu 18.04 internet speed meter or monitor

See the following GNOME extensions...

The place to search is here.

I found these...

https://extensions.gnome.org/extension/1461/internet-speed-meter/

https://extensions.gnome.org/extension/1085/simple-net-speed/

https://extensions.gnome.org/extension/104/netspeed/


You use deploy when the service doesn't exist yet. You use add-unit when the service already exists.


For one it sounds like it's a fresh install so in that case try reinstalling ubuntu. Now the other thing I noticed your running GRUB 1.99, by default I believe 12.04 installs GRUB 2 so if you have manually changed GRUB that would likely be your issue or perhaps you installed the wrong version when doing the boot-repair. In any case try a reinstall.


Brother printer udev config error:: systemd-udevd[514]: /etc/udev/rules.d/60-brother-libsane-type1-inst.rules:14 Invalid key 'SYSFS'

The cause of this error is:
"1. SYSFS is long deprecated and has been removed with udev-173
it should be replaced by ATTR or ATTRS to match any parent device."
If you look in /etc/udev/rules.d/60-brother-brscan4-libsane-type1.rules you will see that the next rule correctly uses ATTRS! It could be that both were in for a transition period, or it could be that someone just forgot to delete the SYSFS rule.
Bottom line; The SYSFS rule can be safely deleted.


How to configure motherboard to allow suspension

your issue

This link mentions your motherboard and an issue that is similar if not the same as yours.

It goes on to mention that a patched v3.2.1 kernel can resolve your issue.  Obviously, v3.2.1 is not the kernel in Oneiric.

backup!

Yes - backup!  Changing your kernel can cause black screen and non-booting scenarios.  Backup with a good image tool such as Clonezilla

installing pre-built kernels

The usual recommendation is to download the latest ubuntu kernel built with the ubuntu tool-chain - i.e. the v3.2 kernel in precise and try and install that.

You could also try the vanilla kernels built directly from the kernel mainline.

compiling your own kernel

If these kernels do not resolve this, then you will need to compile your own kernel.

Use the link below to download the 3.2 kernel source and patch it with the ubuntu kernel config.

Then use these instructions to patch your newly downloaded source with some ACPI changes.

Finally, use the remaining instructions in the link below to build your source.

Link Question:

How to build the mainline kernel source package?


15.04 VMWare Player "unable to start services" error

found here https://communities.vmware.com/thread/509225

This can be fixed by running the following steps as Root (in a terminal):

log in as root (e.g. sudo -i)
Enter your Root password.
Enter these commands:

curl https://pastebin.com/raw/Z1ihzbcE -o /tmp/vmnet-3.19.patch

cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
cd vmnet-only
patch -p0 -i /tmp/vmnet-3.19.patch
mv vmnet.tar vmnet.tar.SAVED
tar -cf vmnet.tar vmnet-only
rm -r vmnet-only
vmware-modconfig --console --install-all

VMware will now compile the vmnet module for Kernel 3.19. (please make sure you have DKMS installed)


To install the Linux 3.2 kernel, install the linux-image-3.2.0-23-generic package. Then follow the steps here.


Remote Synchronisation instead of doing a backup

It sounds like rsync would do what you want.

You can also try unison, which uses "a version of the rsync protocol" (from the man pages).  unison-gtk is available as a graphical version on top of unison which you might want to try.

On the other hand, if you want to do backups at regular intervals (for example, with the scheduling done by cron), you might want to look into rsnapshot.

I guess the difference between the last two depends on how you use them, but basically, unison(-gtk) will help you synchronize between two computers.  rsnapshot will take a multiple snapshots at regular intervals using cron (i.e., daily, weekly, etc.); the disk space used is roughly the changes in files between snapshots -- so not a lot.

Perhaps one of the two or a combination of the two is what you're after.  In a way, both are quite similar to rsync, though.  sftp (as far as I know) would just transfer the files over.  Other similar programs might be scp or FileZilla, but it doesn't sound like it's what you're after.  You might want to use sftp/scp/FileZilla the first time so that the computer doesn't waste time calculating file differences.  Maybe you can play with these options with a small directory before committing on one option.

Do be careful that your time is set correctly.  One problem with synchronization programs is if it thinks that the side you're transferring to is more recent -- then everything from the source side is deleted.  Proceed carefully and triple check before you click "ok".


var/cache/apt/archives occupying huge space

You don't need to keep them around if you don't want them. Executing a

sudo apt-get clean

will clean out the directory.


Web page still visible after stopping Apache

You have a different web server installed and running.  Some common web servers used on Ubuntu are Apache, Tom Cat and Nginx.

You can check to see which is currently listening on the web port with:

$ sudo lsof -i tcp:80 | egrep LISTEN

Most likely the culprit will be nginx1, which will be indentified by the results similar to:

nginx   28487     root    6u  IPv4 603899449      0t0  TCP *:http (LISTEN)
nginx   28487     root    7u  IPv6 603899450      0t0  TCP *:http (LISTEN)
nginx   28488 www-data    6u  IPv4 603899449      0t0  TCP *:http    (LISTEN)
nginx   28488 www-data    7u  IPv6 603899450      0t0  TCP *:http (LISTEN)

To avoid confusion you should disable all but your preferred web server.  Having more than one will make it hard to know which server the pages are being sent to.


Dependency is not satisfiable: libprotobuf8

The PPA you are linking has built packages only for Ubuntu 14.04 (Trusty).

If you are trying to install it on 15.04, the dependencies' versions probably do not match, so it cannot be installed.

You will most probably have to compile the program yourself by grabbing its source code and building (there is a link on the PPA page).


Unity freezes after compiz configuration change

I have had the exact same problem on my system. Unity is really buggy right now and does not work well with  other compiz plugins, especially when you mess around with the settings.

Try enabling plugins that do not conflict with others that unity is using(It gives you a warning when you try to). You could also try disabling the unity plugin, tweaking to your hearts content, then re-enabling unity and resolving all issues that it alerts you to. The latter worked for me to a certain extent.

Unity was still a little too buggy for me to use everyday, I would recommend choosing the 'Ubuntu Classic' Desktop from the login screen and then tweaking compiz to your hearts content. I have everything from 'wobbly windows' to 'desktop cube' working like a charm with unity disabled.


GPT table error when trying to install Ubuntu 12.10 64

Is the error in reference to your hard disk or to your USB flash drive? If the latter, just ignore the error and proceed with the installation; it's not really important. If it's in reference to the hard disk, though, there are two possibilities:

Your disk may be damaged, in which case using the "fix" option is likely to do as the name implies; however, I can't be sure without seeing more details. If you want more advice, try running gdisk, typing p and v from its main menu, and posting the results here. (You'll need to either install gdisk manually or run it from an emergency system like Parted Magic or System Rescue CD.)
You may be running into inconsistencies because the disk was prepared with motherboard-based software RAID (aka "fake RAID" and various other names) enabled and Linux isn't using that feature, or possibly vice-versa. If this is the case, you'll need to decide whether or not you want to use that type of RAID and set up all your OSes and your firmware to treat the disk consistently. The details depend on how you want to proceed. Once this is set up consistently, either parted will stop complaining or you can use the "fix" option to fix the inconsistency.

The second possibility is more likely, particularly on a new computer. There are many forum posts and Web articles about this type of problem, but I don't happen to have any URLs handy.


Really just a workaround solution inspired by that youtube link. It is just something to try out if you are hard-pressed for time. (Acknowledgements to my friend Surender.)
So, I typed in

  sudo vim /etc/resolv.conf

and edited the resulting file from this

#nameserver 10.200.1.11
nameserver 10.200.1.11
nameserver 10.200.1.11
nameserver 10.200.1.11
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

To this

#nameserver 10.200.1.11
#nameserver 10.200.1.11
#nameserver 10.200.1.11
#nameserver 10.200.1.11
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#nameserver 127.0.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4

After this, I entered

  sudo service network-manager restart

and voila Internet works. Now, I really don't think so my answer is right. I mean it's obvious, isn't it? I am editing a file which has a line

  DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

Obviously, this will fail again when I restart my computer. So, I think I need to do something to fix this resolvconf (note the missing "." it is not resolv.conf) or glibc. Maybe a good starting point would be resolvconf man page. I think this question here


There are multiple options depending on your needs.

bind can be configure with the $GENERATE directive to fill in a range of entries.  This works well if you only want entries that are IP address related.

Many dhcp clients can be configured to register their lease with a DNS server.  This does introduce some security risk, so it is best to use a dedicated subdomain.  You DNS server will also need to have appropriate security restrictions added.

The dnsmasq DHCP/DNS server will automatically add DHCP reservations to its DNS data.


Nvidia Driver issues, and GCC version 10.2.0 unavailable

If you see *1 in my post it refers to notes that describe in further detail

You can get gcc10.2 from here
https://bigsearcher.com/mirrors/gcc/releases/gcc-10.2.0/
Save it to home
Enter terminal and untar the zipped folder; you will probably need to sudo
cd into the new folder; it should be called gcc-10.2.0

Enter these terminal commands in that folder

contrib/download_prerequisites
cd ~

Enter these terminal commands from home

mkdir build && cd build

==========================================================================

Here you need to decide where you want it to install.  I will refer to /usr/local/bin because it's already in the PATH

../gcc-10.2.0/configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=/usr/local/bin/gcc-10.2.0 --enable-checking=release --enable-languages=c,c++,fortran --disable-multilib --program-suffix=-10.2

==========================================================================

Replace x with the number of cpu cores you have*1.  This will take a while depending on how fast your computer is.

make -j x

==========================================================================

Once that all completes enter this command in the terminal which wont take long.

sudo make install-strip

==========================================================================
Now you must change the default gcc version so you are using the right version to install the NVIDIA driver.

sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc-10.2.0/bin/gcc-10.2 70 --slave /usr/bin/g++ g++ /usr/local/bin/gcc-10.2.0/bin/g++-10.2

Replace my paths with wherever you installed it and remember to use the executable in the bin folder of the gcc-10.2.0 folder.

==========================================================================

Enter this terminal command and choose gcc-10.2

sudo update-alternatives --config gcc

==========================================================================

After that check your gcc version to clarify

gcc --version

It should say 10.2

Where I got my information

Building GCC 10 on Ubuntu Linux: https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/
Installing newer GCC versions in Ubuntu: https://tuxamito.com/wiki/index.php/Installing_newer_GCC_versions_in_Ubuntu

*1. I changed this from the guide in the link who says: "you typically want to pass twice the number of your computer cores to the make command in order to speed up the build" I assume he is talking about threads in which case not all cpus have multithreading.


Apache on Ubuntu blocking all XSS attempts

Found the problem, not apache or ubuntu related, it appears that the college's firewall has some sort of terrible IPS/IDS that is blocking outbound attack attempts, easily circumvented, but nothing OS or software related, thanks anyways guys.


The first one df shows file systems used by Linux, although most are memory file systems (first column says tmpfs or udev).

The ones with /dev are real file systems, but Linux can mount non-Linux file systems too.

The second image is more meaningful, showing partitions on your hard disk. When you look at the third column (File System), you can see various types

ntfs - Windows
fat32 - DOS/Windows
ext4 - Linux
linux-swap - Swap space used by Linux (equivalent to swapfile.sys or pagefile.sys under Windows)


How do I troubleshoot boot problems when stuck at the Ubuntu splash screen?

There's a few things you can try.  First, if I were you, I'd like to know what's happening in the background (booting in) that causes you to have to hit Enter to get it to continue on.

Try editing your GRUB load manually, so you can see what's happening during the boot and provide the error/issue that's actually happening in more detail.  In a terminal window, run:

gksudo gedit /etc/default/grub

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT=""

Leave anything else within the quotes as-is, but remove the quiet splash portion.

Then, do, in terminal:

sudo update-grub

Then, finally just reboot.  Now.. see all the loading data, and let us know what the actual problem is.


The correct name of the package is build-essential. So run

sudo apt-get install build-essential


Path error, Unable to Login in Ubuntu 20.04 Login Keep Looping

From the error you're getting it sounds like there is something wrong with your user's PATH environment variable (the value doesn't contain /usr/bin and /bin).
Would it be possible for you to run the following command (from your tty3) and post the output:
echo $PATH

This will print your current path environment variable.
It is also possible that your system-wide path environment variable is somehow mis-configured.  You can check that by running:
cat /etc/environment

See also this answer


Ubuntu Bootable USB not showing up in boot menu on Mac Mini 2007

Well, your DVD drive does not appear to be working properly. So, I do not think you can use this drive to install Ubuntu. Also, your model Mac does not appear to allow EFI booting of the Ubuntu installation software from USB flash drives. Of course, there are applications such as Etcher and UNetbootin which might be able to create a bootable Ubuntu installer. I will assume you have investigated using these utilities and have already ruled them out.

The first question, which need to be answered, is how should Ubuntu Server boot. Below are the two possibilities with the high probability of success.

Install Ubuntu Server to BIOS/GPT boot from the internal drive. Basically, Ubuntu Server would boot the same way Windows would boot.
Install Ubuntu Server to EFI boot from the internal drive. Basically,
Ubuntu would boot the same way OS X boots.

The next question is how to run the installer. Below are the two possibilities with the high probability of success.

Boot the the installer in a virtual machine. The installer runs in the virtual machine, but the Ubuntu is installed to the physical internal drive.
Run the installer from the internal drive. You will still need a virtual machine to copy installer files to the internal drive.

An example has already been posted here at Ask Ubuntu. See the question Installing Ubuntu without DVD or Flash Drive. Here, the objective was to BIOS/GPT boot 64 bit Ubuntu Desktop from the internal drive. VirtualBox was used to install the Ubuntu Desktop Live ISO files to the internal drive. Next, the Ubuntu Desktop Live was booted from the internal drive and used to install Ubuntu Desktop to the internal drive.

The above methods assume the use of a single machine. I should point out that the Mac can be put in target disk mode. You the could connect another Mac and run the installer there instead of using a virtual machine.


sudo is not installed, both sudo and su are not working

In all currently supported versions of Ubuntu open the terminal and type:

pkexec apt install sudo

You can also test the above command by simulating it without installing anything:

pkexec apt install --simulate sudo


It was answered before here - Firefox becoming unresponsive after suspending on Kubuntu 18.10, but since it was me, i will cite myself
"

Unfortunately, its bug in Firefox - Bug #1492580 "Infinite loop in GLContext::RawGetErrorAndClear from endless GL_CONTEXT_LOST with Nvidia Linux drivers and suspend/resume"

There is no solution so far unless Mozilla undo change which caused it - Bug 1484782, which is part of preparation to enable WebRender on Linux

Bug was not present in Firefox 62 and was not fixed in time to "ride trains" of Firefox 63, so you may want either downgrade to Firefox 62 or to shutdown Firefox each time your going to suspend your system."

Good news is that according to bug i mentioned they already working on fixing it and patch is coming soon. Due to impact if probably will be ported to current release version so, hopefully, it will be no longer problem in reasonable amount of time.


Gedit 3.6.1, how to increase the number of recent files from its default of 5?

Using the dconf-editor, this value can be found in the schema under org.gnome.gedit.preferences.ui. The value that you want to change is called max.recents.

dconf-editor can be installed from USC here:

or from a command line using: sudo apt-get install dconf-tools


Shell script I made is ridiculously verbose, and also is probably inefficient. Help!

Global issues:

Use indentation. It makes your code more readable (for you and for us).
Use only straight quotes in bash. Other types of quotes might break commands.
Do not append ; at the end of a single command. The ; character has a specific meaning and it's useless if appended to a single command.

Specific issues:

fdisk -l;

You need to run fdisk as sudo: sudo fdisk -l

read -n1 -p “Would you like to back up your system? Uno for Si, and Dos for No.”

You're not storing this input anywhere. Seeing the code below, you're missing input at the end (mind the space after the double-quotes): read -n1 -p "Would you like to back up your system? Uno for Si, and Dos for No." input

sudo mkdir -p /mnt/$disk && sudo mount /dev/$disk /mnt/$disk && sudo mkdir -p /mnt/$disk/Backups && sudo tar -cp $(date +%Y%m%d).tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups . && sudo cp $(date +%Y%m%d-%H).tar /mnt/$disk/Backups;

The tar command is missing a -f option: without it tar outputs to stdout and not to the specified file; also the filename should be $(date +%Y%m%d-%H) to match the filename expected from cp: sudo mkdir -p /mnt/$disk && sudo mount /dev/$disk /mnt/$disk && sudo mkdir -p /mnt/$disk/Backups && sudo tar -cpf $(date +%Y%m%d-%H).tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups . && sudo cp $(date +%Y%m%d-%H).tar /mnt/$disk/Backups;

Final note: doing so, you're leaving all the backups in /, but you're also excluding a /backups/ directory from the backup, so it seems like your goal is to store a copy of each backup in such folder. Make sure that such folder exists. The corrected version of the last command according to this is:

sudo mkdir -p /mnt/$disk && sudo mount /dev/$disk /mnt/$disk && sudo mkdir -p /mnt/$disk/Backups && sudo tar -cpf backups/$(date +%Y%m%d-%H).tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups . && sudo cp backups/$(date +%Y%m%d-%H).tar /mnt/$disk/Backups;

So the indented, straight-quoted, useless-;-free, fixed version of the script is:

#!/bin/bash

read -n1 -p "Would you like to back up your system? Uno for Si, and Dos for No." input
echo
case $input in
    1)
        sudo fdisk -l
        echo
        read -p "Please enter the name of your backup disk that was displayed in the fdisk window: " disk
        echo
        echo "Backups now in progress! Please be aware that backups are saved to a Backups directory which this script creates, and backups are tarred and labelled by date!"
        echo "THIS WILL TAKE A VERY VERY LONG TIME IF YOU HAVE A LARGE FILESYSTEM! PLEASE BE PATIENT!!!"
        cd /
        sudo mkdir -p /mnt/$disk && sudo mount /dev/$disk /mnt/$disk && sudo mkdir -p /mnt/$disk/Backups && sudo tar -cpf backups/$(date +%Y%m%d-%H).tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups . && sudo cp backups/$(date +%Y%m%d-%H).tar /mnt/$disk/Backups;
        echo "Okay, all done! To restore your system, you will have to untar and manually do it yourself. If you have any issues, email name@example.com!"
        ;;
    2)
        echo "Then why are you running this script?"
        ;;
    *)
        echo "I'm sorry, but I can’t do that…"
        ;;
esac

Last thing: Never ever leave your email address around the web. Spammers will scrape it. I have replaced it with name@example.com in my answer, in your answer and in your question.


How to fix: Epson wireless networked printer aborts after printing half a page

In my case, I discovered that the Netgear wireless router was too far away from the printer and too many packets were being dropped, so that the print process timed out. Putting the printer closer to the router fixed the problem.

Now that we have moved house, the 'line of sight' to the printer is better and we have experienced no problems at all.


How to install downloaded Canon ScanGear

To install a .deb file from terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to where the file was downloaded (most likely the Downloads folder),run the command(s) below:

sudo dpkg -i <file_name>.deb

When you extract the file, you can see that there is a folder called packages, open that folder, and you will see 4 files.  Choose the right one for your architecture.  See image below.

Use the command above to install both files.


sudo cp -p  /bin/true /sbin/ebtables
sudo apt update -y
sudo apt upgrade -y

from: https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/errors-in-ubuntu-1804-on-windows-10/fe349f3d-3d58-4d90-9f8f-c14d7c12af8b


How to securely update to a mainline kernel? (no http)

Mainline kernel are installed manually, and same thing for signing. It could be verified manually.

They provide both: CHECKSUMS and signed CHECKSUMS.gpg file by Kernel PPA <kernel-ppa@canonical.com>.

Procedure is well documented in Ubuntu Wiki - Mainline Builds, Verifying the mainline build binaries.


Packaging best practices for third-party dependencies

If you really want to support releases that don't have the required library version, then just use static linking.  Having a shared library that you are the only user of defeats the purpose of shared libraries, so you may as well just put it all in one binary.  You will even save some space since the parts of the library you don't call will be thrown out.

I would suggest that you start with an oneiric build that just lists the depend normally, then switch to static linking when you backport it to older releases.


How to configure Wacom tablet area on Ubuntu 14.04?

I do not think that there is a graphical configuration interface. Nevertheless, you can do it via scripts...

Find the correct name of your device/input:

[romano:~/personal/varios] 1 % xsetwacom --list devices
Wacom Intuos PT S Finger touch      id: 12  type: TOUCH
Wacom Intuos PT S Finger pad        id: 13  type: PAD
Wacom Intuos PT S Pen stylus        id: 14  type: STYLUS
Wacom Intuos PT S Pen eraser        id: 15  type: ERASER

And now you can reduce for example to the top left corner:

xsetwacom --set "Wacom Intuos PT S Pen stylus" MapToOutput 500x400+0+0

or in a rectangle in the center (more or less):

xsetwacom --set "Wacom Intuos PT S Pen stylus" MapToOutput 500x400+500+500

Go back by telling the full resolution:

xsetwacom --set "Wacom Intuos PT S Pen stylus" MapToOutput 1980x1080+0+0

There is a way to make the thing permanent, but I never tried it --- if you need it, the Arch page (as ever) is full of interesting info.


You have to add the repo-key...
Read the OC download page again and you'll find:

You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). To add the key, run:

wget http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_16.04/Release.key
sudo apt-key add - < Release.key
sudo apt-get update


I Can't find network connection in Xubuntu xfce desktop environment

Just open a terminal and install network-manager-gnome with

sudo apt-get install network-manager-gnome

You should get the nm-connection-editor after it.

Edit: True, so if you can use another computer (I hope you're not writing here from your phone ^^), download network-manager-gnome.deb and install it with this:

sudo dpkg -i packagename.deb


How to copy a Ubuntu repository on a hard disk?

you can use apt on cd for more detials follow link
http://aptoncd.sourceforge.net/doc-manual.html
youtube tutorial
https://www.youtube.com/watch?v=XT8mSYdYuO8


Black screen during boot after TTY1 login

It turns out that reinstalling Ubuntu from scratch is quite fast and painless. Luckily I keep my /home/ on a separate hard disk so wiping the system disk was really inconsequential. It took less than half an hour (excluding optional data backups).

Using a DVI display cable might have improved things in the new installation, because the new install detected my monitor (the old one didn't) and set it up with the proper resolution, all with the default graphics drivers.

This pretty much rocks.

Incidentally, reinstalling Ubuntu from a USB stick is dead-easy. There's even an option to install on top of the existing installation so as to not lose any installed programs and data. I tried that but probably pulled out the USB disk too early during reboot because the computer said the boot partition was damaged. But as I said, a clean install did the trick and was faster than messing around with mystic files and configurations that might have done more harm than good.


Startup application entries cannot be added

Running a 12.10 on a netbook here, I fixed it with a dummy method:

First, run Nautilus as root

sudo nautilus

I located where the autostart entries are stored (it might be hidden so ctrl+H to unhide the folder). It is in:

/home/USER_NAME/.config/autostart

Of course replace "USER_NAME" with your own. It should be empty or with files with  .desktop extension.

Now find your apps for autostart located in

/usr/share/applications

Copy the apps you want into the previous autostart folder in your home folder. Reboot, and it worked!


Where are screen lock configuration settings located?

Under 'System Settings' -> 'Screen' (on versions prior to 16.04):


trying to install ubuntu touch to nexus 4 - can't connect device (14.04 in virtual box on mac)

Sorry - sorted it out!  I clicked the USB icon in bottom right of VirtualBox and selected the Nexus.  (leaving question up in case it's of use to someone else)


How can one force the laptop batteries to charge beyond their recognized limits?

This sounds really, really dangerous. After all, there is a reason why the engineers who designed the charging system made it respect aging batteries by not charging further!

I seriously discourage you from trying anything like this. A Laptop battery can leave a big mess when exploding. And you don't want that to happen in your lap.


Seeing all installed items on server and protecting server from malware

Really good practices would give them as little access as required,

1) Do they need ssh access atall?

If they need to just work with the database then you can open up the database port to their IP or use web management tools eg. PhpMyAdmin.  They can request certain packages be installed rather than doing it themselves. If they really need ssh access for some reason then you can loook at SSH Chroot Jails that give limited access to some resources on the system.

2) How to list all programs?

You can list all installed applications installed by the package manager by issuing the command sudo dpkg -l  but how do you know they have not just put some binaries on system and bypassed the package manager? or edited cronjobs. You can use applications such as tripwire and finely set this up to test for changes in the system.

It really boils down to a little access as is possibly needed for the 3rd party to do the job.  If you give someone root access to the system then in my opinion you can only trust that system as much as you trust the admin you gave access.


How do I make KDE Plasma Handbook pages less white?

By some testing, I identified two files

/usr/share/doc/HTML/en/kdoctools5-common/kde-docs.css and
/usr/share/doc/HTML/en/kdoctools5-common/kde-default.css

One can backup these files and then edit them suitably. An example, again using the Kate Handbook. The foreground image is before and the background image is after editing:

(A caveat is that updates will overwrite these files.)


VBoxManage
We can issue any application on the guest from the host with VBoxManage guestcontrol. There are several options to this command nicely documenetd in the  above linked Virtual Box manual.
As an example we may issue:
VBoxManage -q guestcontrol "Name_of_VM" execute --image "full/path/to/application" --username <me> --passwordfile mypassword.txt --wait-exit --wait-stdout [<-- options>]

This may be a security issue as your guest user password needs to be given in an insecure password file on the host.
SSH
Somewhat easier than this, and in case we had set up SSH to our VM we can of course access the guest application through an SSH session. This is how I usually access guest applications.
ssh user@virualmachine application


Dual booting 12.10 and Win 7 - boots directly to Win 7

When the booting process is taking place, press the SHIFT key and keep it pressed. Normally, a GRUB screen should pop up and you will choose your OS.


What can I move to RAM drive to have the system working faster?

To mount /tmp /var/log and /var/tmp in RAM. Add these lines to the end of fstab to mount /tmp (temporary files) as tmpfs (temporary file system):

tmpfs /tmp     tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0

Save, then: sudo mount -a

Reboot for the changes to take effect. Running df, you should see a new line with /tmp, /var/tmp and /var/logs mounted on tmpfs.

Note: all log files will be lost after a reboot, to back them up manually run this in terminal:

rsync -av /var/log/* ~/saved_logfiles

To move Firefox Cache Into RAM:

Type about:config in firefox address bar and click I'll be careful,I promise!.
Right click on blank area and create a new string value called:

 browser.cache.disk.parent_directory

Set its value to /tmp

Restart Firefox.


Is there a program that edits audio files to have the same volume?

I use a command line utility called mp3gain, which is available in the repositories.

To use it, go into the directory where you store your music files, and then run this command:

find -name '*mp3' -exec mp3gain -r -k {} \;

It will go through every subdirectory, finding any file ending with .mp3, and normalize the gain so that they will also play back at a consistent volume.

Also note that mp3gain won't act on files that are already within the range you want, so the second time you run it and thereafter, it won't take as long as the first time. So you can just run this command as is every time you add new files, whether its just one new file, or a whole bunch.

If you happen to have .ogg files, there is a similar program called vorbisgain:

find -name '*ogg' -exec vorbisgain -r {} \;

There are options for how you normalize the gain for any one song in comparison to the rest of the music you have, but it's been so long since I've looked at them I can't really say much about it. I just know that I play my entire library as one huge randomized collection, and the above comand and its settings has worked for me for years.

If you happen to have .flac files, you can use metaflac:

find -name '*flac' -exec metaflac --add-replay-gain {} \;

Hope that helps.


How do I submit a patch to an ubuntu package which is using git?

The workflow is documented here:

https://wiki.ubuntu.com/UbuntuDevelopment/Merging/GitWorkflow


what's the difference between timedatectl and dpkg-reconfigure for setting the timezone?

timedatectl was introduce by systemd and is related to the init system

so if you try this command in devuan it will not work because devuan is a team who decide to reject systemd.

the dpkg way will work on any system supporting .deb because it is related to the packaging system.


How to safely delete huge temp files in /root/Desktop in Ububtu 14.04

No one can absolutely, positively tell you this is 100% safe!
It is very likely to be safe (99% certainty), therefore:

Take a full system back-up!!!
Rename the files.

Now use the system for a while and see if you have no adverse effects.

Delete the files.

If anything goes wrong: Restore the back-up! (or rename the files back to what they were)
You are taking back-ups are you???


BQ Aquaris M10 FHD Ubuntu Edition: How do I see the size of external storage (ie. a micro SD card)?

I am afraid that I don't have an SD card to hand and so can't test my M10 using Nautilus.

Have you installed any software on your M10? I just checked and I could install gnome-disk-utility. That might be your best bet since you are already comfortable using it.

To install it you will first need to create a container. If you haven't done this before it's best to do it by ssh'ing into the machine [see answer here for and explanation].

This container will be called '4installs'.

libertine-container-manager create -i 4installs

To install the application:

libertine-container-manager install-package -p gnome-disk-utility -i 4installs

Now Disks will be available to use.

Alternatively you can check this info in the Terminal app:

df -h

will list all the filesystem partitions, their size and available space and where they are mounted.


Thunderbird didn't got the structure of folders in my mail

Gmail doesn't have folders, but labels. Labels can be subscribed to in Thunderbird as folders this way:

Right-click on your Gmail Inbox folder (or any other Gmail folder)
Open Subscribe...
Choose the folders you want to subscribe to.

More info about Thunderbird+Gmail: https://support.mozilla.org/en-US/kb/thunderbird-and-gmail


That PPA is no longer available. You should consider using another PPA to provide whatever app you want to install.

To remove this PPA, run the following two commands:

sudo rm /etc/apt/sources.list.d/iaz-battery-status*
sudo apt-get update


$HOME and ~ get expanded by your shell, they are not interpreted by echo.

In other words, echo does not see $HOME as an argument. It actually sees /home/nbest. Therefore the following commands are exactly identical (in your case):

nbest@geo:~$ sudo -H -u tanum echo $HOME
nbest@geo:~$ sudo -H -u tanum echo /home/nbest

Whatever you try (-H, -i, ...) you will never obtain the wanted behavior. Because $HOME is replaced by your shell and your shell runs as your user. sudo does not affect your shell in any way.

To work around this 'issue' (which actually is a feature), you can start a new subshell:

nbest@geo:~$ sudo -H -u tanum sh -c 'echo $HOME'

(Note that I'm using single quotes to avoid expansion.) This way, the new shell sh will run as user tanum and print his home directory.

An another alternative is to use ~username, which gets expanded to the home of that user, without the need of using sudo or su. Try:

nbest@geo:~$ echo ~tanum


Ubuntu 15.10, if I suspend from toolbar it's ok, if I close laptop lid when I resume it keeps logging me out

I switched to mint linux and was all good, it's ubuntu under the hood and better UI


Ubuntu 14.04 fn keys starts to work after resume from sleep

I had the same problem with a HP 8510w laptop and Ubuntu 14.04 64bit.
The problem is caused by the hp-wmi driver. Block the driver in /etc/modprobe.d/blacklist.conf and the hotkeys will work immediately after the start of the system


Thunderbird Contacts sync with Ubuntu One on Ubuntu 12.10

You cannot. It appears evolution-couchdb (and thus the Thunderbird extension which depended upon it) has been removed; likely due to API changes in upstream evolution-data-server, and no resources to update the plug-ins.

It's also worth noting that it was announced in November 2011 that desktopcouch/couchdb support would gradually removed from Ubuntu One. However, replacement infrastructure is being worked on in the form of u1db to replace the pieces which couchdb was being used for.


You're probably missing the WiFi driver. Open up a terminal and type:

sudo apt-get update
sudo apt-get install bcmwl-kernel-source

EDIT

Disabling secure boot in your BIOS is also necessary for the driver to work


How can I make Sublime text 3 work properly?

Unregistered versions of Sublime Text are not feature limited. When you open a file-type that's supported out of the box, the syntax highlighter will activate automatically. Otherwise, you can search for syntaxes (and other plugins) on the Package Control website and install it (see documentation). Lastly, you can assign any syntax to an open file by clicking the right-most dialog in the status bar at the bottom of the window (if no syntax was recognized, it should be labelled "Plain Text").


You need to remove whatever you've added to xorg.conf, and add something like the following:

Section "Device"
  Identifier "NVIDIA GeForce"
  Driver     "nvidia"
  Option     "RegistryDwords" "PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"
EndSection

PerfLevelSrc=0x3322 means it's going to use fixed PowerMizer mode when on AC.

PowerMizerDefaultAC=0x1 defines the power mode, with 0x1 being Maximum performance.

There is no need to reboot, just logout/login.


OK, I managed myself to uninstall Ubuntu-desktop and here is my command to do it. Use it wisely as it will also remove Brasero and Compiz as well as all dependent packages.

sudo apt-get purge account-plugin-aim account-plugin-facebook account-plugin-flickr account-plugin-google account-plugin-jabber account-plugin-salut account-plugin-windows-live account-plugin-yahoo apport apport-gtk brasero brasero-cdrkit checkbox-gui compiz compiz-gnome compiz-plugins-default deja-dup deja-dup-backend-gvfs empathy example-content fonts-khmeros-core geoclue-2.0 gir1.2-unity-5.0 gnome-control-center-shared-data gnome-screensaver gnome-user-guide hud indicator-keyboard indicator-printers libaccount-plugin-1.0-0 libaccount-plugin-generic-oauth libaccount-plugin-google libbrasero-media3-1 libhud2 libufe-xidgetter0 libunity-action-qt1 libunity-core-6.0-9 libunity-misc4 libunity-protocol-private0 libunity-scopes-json-def-desktop libunity-webapps0 libunity9 libunityvoice1 light-themes mcp-account-manager-uoa nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share oneconf plymouth-theme-ubuntu-logo qtdeclarative5-ubuntu-ui-extras-browser-plugin qtdeclarative5-ubuntu-ui-toolkit-plugin qtdeclarative5-unity-action-plugin shotwell software-center telepathy-indicator thunderbird-gnome-support ubuntu-artwork ubuntu-docs ubuntu-mono ubuntu-session ubuntu-settings ubuntu-sounds ubuntu-sso-client ubuntu-sso-client-qt ubuntu-wallpapers ubuntu-wallpapers-trusty ubuntuone-client-data unity unity-asset-pool unity-control-center unity-control-center-signon unity-greeter unity-lens-applications unity-lens-files unity-lens-friends unity-lens-music unity-lens-photos unity-lens-video unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-clementine unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-gmusicbrowser unity-scope-gourmet unity-scope-guayadeque unity-scope-home unity-scope-manpages unity-scope-musicstores unity-scope-musique unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox unity-scope-yelp unity-scope-zotero unity-scopes-master-default unity-scopes-runner unity-services unity-settings-daemon unity-voice-service unity-webapps-common unity-webapps-qml unity-webapps-service usb-creator-gtk webaccounts-extension-common webapp-container webbrowser-app xul-ext-unity xul-ext-webaccounts xul-ext-websites-integration yelp account-plugin-aim account-plugin-facebook account-plugin-flickr account-plugin-google account-plugin-jabber account-plugin-salut account-plugin-windows-live account-plugin-yahoo apport apport-gtk brasero brasero-cdrkit checkbox-gui compiz compiz-gnome compiz-plugins-default deja-dup deja-dup-backend-gvfs empathy example-content fonts-khmeros-core geoclue-2.0 gir1.2-unity-5.0 gnome-control-center-shared-data gnome-screensaver gnome-user-guide hud indicator-keyboard indicator-printers libaccount-plugin-1.0-0 libaccount-plugin-generic-oauth libaccount-plugin-google libbrasero-media3-1 libhud2 libufe-xidgetter0 libunity-action-qt1 libunity-core-6.0-9 libunity-misc4 libunity-protocol-private0 libunity-scopes-json-def-desktop libunity-webapps0 libunity9 libunityvoice1 light-themes mcp-account-manager-uoa nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share oneconf plymouth-theme-ubuntu-logo qtdeclarative5-ubuntu-ui-extras-browser-plugin qtdeclarative5-ubuntu-ui-toolkit-plugin qtdeclarative5-unity-action-plugin shotwell software-center telepathy-indicator thunderbird-gnome-support ubuntu-artwork ubuntu-desktop ubuntu-docs ubuntu-mono ubuntu-session ubuntu-settings ubuntu-sounds ubuntu-sso-client ubuntu-sso-client-qt ubuntu-wallpapers ubuntu-wallpapers-trusty ubuntuone-client-data unity unity-asset-pool unity-control-center unity-control-center-signon unity-greeter unity-lens-applications unity-lens-files unity-lens-friends unity-lens-music unity-lens-photos unity-lens-video unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-clementine unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-gmusicbrowser unity-scope-gourmet unity-scope-guayadeque unity-scope-home unity-scope-manpages unity-scope-musicstores unity-scope-musique unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox unity-scope-yelp unity-scope-zotero unity-scopes-master-default unity-scopes-runner unity-services unity-settings-daemon unity-voice-service unity-webapps-common unity-webapps-qml unity-webapps-service usb-creator-gtk webaccounts-extension-common webapp-container webbrowser-app xul-ext-unity xul-ext-webaccounts xul-ext-websites-integration yelp


How to make desktop shortcuts on Ubuntu 16.04?

In the Gnome Panel dialog box you have there, you need to enter the name of the application and the command that would be used to launch it from a terminal. For example, to add a launcher for GIMP:

Name: GIMP
Command: gimp

since, to launch Gimp, you can just type gimp. The same is true for many applications. The comment is optional - text you enter would come up when you hover the cursor over the icon

Comment: the awesomest image editor

Of course, you need to figure out what command launches your application.

Here's an example. On my system I have a program in /opt/lks-indicator that has to be run with Python. So to make a launcher for it using that dialog I would enter:

Name: Lock-Keys Indicator
Command: python /opt/lks-indicator/lks-indicator.py
Comment: shows in panel whether lock keys are on

You can click the icon image and browse for an appropriate image for your application if it doesn't automatically get set to the right one.

Save the file created in ~/.local/share/applications and then drag and drop the file to the launcher panel.

The more complicated but more customisable way to make a new launcher, by creating your own .desktop file for the application, also works in 16.04, and is explained beautifully here.


I had this same issue, and figured out a solution.

Using your favorite browser, go to www.yahoo.com and sign into your account

Go to your inbox, and on the right hand side, click on settings.
Now on the left side, toward the bottom, it should say "switch to basic mail.  click that.
You'll be brought to a basic inbox.  Toward the top right is a drop down box.  Set that to Account info and click "Go"

Now on the left side click "Account Security"  Scroll down to the bottom, and click "App Passwords."  Generate a password, and copy it.  Paste that password into Evolution, and you can now get your emails.


Unable to suspend - power manager vanished

Update upower from the ubuntu packages page. It needs to be updated to version 0.9.13-1 and the system did not do that automatically. You can find that here: http://packages.ubuntu.com/oneiric/upower

From Terminal

upower -d

will error out. The newest version has the error fixed.


Sorry for posting this as an answer but the comments don't give enough space and mark-up to properly test whether your key still works or not.  If it works, I'll delete this answer and we'll go hunting for what is wrong in software.

Remember that Ctrl+Alt+F7 is your friend! That is the key combination to press to get back here so you can read the rest of the message...

OK?  Got that?  Have it on a Post-It note? ;-)

Good! Now press Ctrl+Alt+F1 and you will se a terminal (a real terminal, not gnome-terminal or xterm that you've used until now...)

Log in by typing your user name and password (no stars or password will be echoed, this is 1970s technology after all) and once you're logged in type the following command:

showkey --scancodes

Now lightly press and release the Esc the key that's not working and the Enter key...  Then do what you do best for 10 seconds...

If you have a minimum of 6 lines on your screen, you're in luck: you don't have a hardware problem; your keyboard still works and should write down the output on a Post-It and leave a comment below with the output...  (no copy-paste back in the '70s!!!  And now that I think of it: no Post-Its either!)


Make Fn key from mac keyboard work on 11.10

Fn-key seems to work on older A1314-keyboards, but not with 2011 model (the one with two batteries, F4 key has six rectangles instead of speedometer).

2011 version of Apple Wireless Keyboard works fine with a Mac, but no luck with Ubuntu so far.


How to ssh to Pre-built Snappy Ubuntu Core for BBB?

Got the same issue you are experiencing. I have ordered a FTDI cable so I can actually debug from the serial console.

If you find a solution earlier let me know. Will update once I have some more debug info - as you are flying blind without the serial console access.

EDIT: This turned out to be a faulty image. I tried this again with downloading a new image and things are working fine now.

Also make sure that you press the "User Boot" button when turning on for at least 5 seconds as otherwise the BBB will boot into whatever OS is on the eMMC rather than the SD card.


How to have two versions of PHP installed and switch easily between them?

You can use a php version manager to achieve this. Different version managers are available like:

https://github.com/phpbrew/phpbrew
https://github.com/CHH/phpenv
https://github.com/wilmoore/php-version

My favorite is  phpbrew. Hope this helps.


I need to back it up so that I do not have to reinstall if something goes wrong.

In general, you either do a full system image, using tools such as Clonezilla or Acronis, or you set up a new system from scratch. Backing up individual, installed, programs is no easy feat in general, and it's simpler to use the installer to reinstall it.

Note that VMWare hands out a free trial, allowing you to download the product, as long as you register with an e-mail address.


this problem i have encountered it due to 2 reasons , the first one is that i didn't disable the fast start up from windows "i had installed Ubuntu along side with windows " so i recommend that you do that . the second reason is that may be the the problem is with genome terminal so if you go to settings->preferences -> terminal -> codelite-terminal this solved the problem for me, also before running the project on codelite it's highly recommended to go to build->clean project


Close/minimize/maximize button not appearing

Try (in terminal)

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close,'

moving the : to the end (like this gsettings set org.gnome.desktop.wm.preferences button-layout 'minimize,maximize,close:') and then restarting to see if they reappear for you.

Let us know.

Cheers!


You need to use omnifunc to provide the completion. It will pop up a menu to allow for completion. More information here.

In my .vimrc, I have the following lines set for Supertab:

let g:SuperTabDefaultCompletionTypeDiscovery = [
\ "&completefunc:<c-x><c-u>",
\ "&omnifunc:<c-x><c-o>",
\ ]
let g:SuperTabLongestHighlight = 1

Then enable the Python completion only for .py files:

autocmd FileType python set omnifunc=pythoncomplete#Complete


After a coupe days of searching I finally came to a conclusion. The reason I was getting the purple background was the file that Ubuntu tweak was using as the login background no longer existed. After moving my chosen background to /usr/share/backgrounds I now have an actual background and no weird screen tearing.


Internet unusably slow with Realtek Semiconductor Co., Ltd. RTL8111/8168B card

Your ethernet chipset (RTL8168) is known to cause problems in Ubuntu, which tries to use the RTL8169 driver, which is somewhat compatible in theory, but in practice produces bad performance like what you're experiencing.

See this question for a discussion:

Slow wired internet connection on Realtek RTL8168-8111 (Rev 6)

This blog post has a way to install the proper RTL8168 driver, it's from 2009 so it could potentially be out of date:

http://amk1.wordpress.com/2009/06/09/realtek-8168-module-issue/


After breaking my GRUB installation, wiping the drive and reinstalling, Xubuntu launches but there is no GRUB

Turns out GRUB was written on my Windows drive and also messed up the Windows bootloader. Note for next time: unplug all your drives apart from the one you are installing on haha


Ubuntu - USB drive fixing after interrupted formatting

If a hard disk drive,HDD, or solid state drive, SSD: Check the S.M.A.R.T. information of the drive (to tell if there is something fundamentally wrong with the hardware).
For all drives, mass storage devices including HDD, SSD, pendrive, memory card:

Try with mkusb to wipe the first mibibyte, and if successful, try again with gparted to create the partitions you want.
If still problems, analyze them and try again to solve them according to this link.


Connecting to Windows NAS devices: WD is accessible, but Buffalo LinkStation is not

Set 'vers=3.0' in the relevant line in /etc/fstab or as an option to mount. See https://wiki.samba.org/index.php/LinuxCIFSKernel#Linux_Kernel_SMB3.2FCIFS_Client

/etc/samba/smb.conf is for Samba, which you're not using here.


Necropost 2 years later!

Solved with PC upgrade.

Thanks everyone!


Backlight does not come on after booting

This has to do with the ACPI backlight driver for your specific video card in your laptop. Google Search "Forcing backlight on linux"

The Ubuntu wiki has a section dedicated to forcing the back light on. https://wiki.ubuntu.com/Kernel/Debugging/Backlight


You can go to System Settings -> Software & Updates -> Additional Drivers

and install a driver there.

Or run

sudo apt-get install nvidia-352

in terminal.


Ubuntu 14.04 Server - WiFi WPA2 Personal

I suggest you set up /etc/network/interfaces something like:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_router>
wpa-psk <your_wpa_key>
dns-nameservers 8.8.8.8 192.168.1.1

Be sure to select a static address outside the range used by the DHCP server in the router, switch or other access point. Of course, substitute your details here.

Get the system to read and use the changes:

sudo ifdown wlan0 && sudo ifup -v wlan0

Did you connect?

ping -c3 192.168.1.1
ping -c3 www.google.com


Is it possible to create UI for Ubuntu with HTML & CSS?

You can develop using HTML + Javascript for the interface by using an embedded WebKit frame in a Gtk window (this is easiest to do in Python). The hardest part is communicating with the system from your HTML/Javascript application.

You can do this by passing messages between Javascript and Python. You will, however, have to write the system logic as Python functions but this is pretty easy to do.

For more details you can follow this link: https://developer.ubuntu.com/en/phone/apps/html-5/


Automatically execute script that requires password when I login with my second user

Read man sudoers and you can do sudo -u hadoop the script, and allow user hadoop to execute those specific commands NOPASSWWD.


Steam missing the following 32-bit libraries : libc.so.6

You are missing those following libgl libraries :

sudo apt-get install libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6-i386

You may need to add the 32-bit architecture first :

sudo dpkg --add-architecture i386
sudo apt-get update


Your Bios Probably doesn't support grub from external hdd booting. Try doing a full install in your Hard Drive without grub (Select Clear Hard Drive and install). That had worked for me while i was using Ubuntu 12.04 LTS. Good Luck !


I have problem and I cant install someone help me packages have unmet dependencies: wine1.6: Depends: wine1.6-i386?

Since I can't read Spanish (I guess) and since you tagged wine, then probably you didn't follow the correct procedures to install wine from PPA.

To install wine from command line:

1- Open a terminal and add the wine Ubunutu PPA (Personal Package Archive) by typing
 sudo add-apt-repository ppa:ubuntu-wine/ppa
2- Then, perform an update to the list of archives by typing sudo apt-get update
3- Wine should now be in the list, install it by typing: sudo apt-get install wine1.7

Note: wine1.7 is the latest version, I use 1.6 version. you can choose your wine version before installing by pressing Tab after typing sudo apt-get install wine


How to play audio faster but keep pitch?

Playitslowly
There is PlayitSlowly, intended to do this (among others things). You can also save a sound file with altered speed or pitch.


Brightness key not working Ubuntu 16.04 LTS

I faced the same problem before on my laptop Lenovo z500 ideapad after  searching i found this solution :

open terminal
sudo nano "/etc/default/grub"
append acpi_backlight=vendor to the GRUB_CMDLINE_LINUX_DEFAULT line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

save and close nano (Ctrl+X, then confirm saving changes)
sudo update-grub
restart

If nothing changes , you can check the solutions of this question.


Granting administrator privileges to user not working?

Um, there is a slight confusion as to how sudo works.

Sudo allows you to become root (or other user) for the purpose of running a certain command. However, it is not automatically invoked when you run the command apt-get; you need to run sudo:

sudo apt-get install firefox

and not

apt-get install firefox

Otherwise you are not invoking sudo at all! You see, sudo is not a system thing. It is just a regular program that runs always with root privileges (suid, in other words).

~$ ls -l `which sudo`
-rwsr-xr-x 2 root root 127668 2013-02-27 21:41 /usr/bin/sudo*

See this star and the "s" in the permissions? That is what it means -- whoever runs sudo, sudo runs with the permissions of root; just as if root has started it. And then it looks around, sees that it is you who run it, looks up the sudoers file and says: fine, you are allowed to run apt-get as root, let me run that for you. And invokes apt-get with root permissions, which has the same effect as if root has run that.

If you do not use sudo, but just type

apt-get install firefox

Then apt-get is run as regular user and naturally has no permissions to touch the files which can only be opened for writing by root. This is because apt-get is not a suid program; it runs with the permission of that user who started it.

Suid programs are dangerous, because if there is any error in the program, it can be used to escalate the privileges of a non-authorized user. That is why only one program (sudo) exists for these particular purposes.

Fine. About that password thing: use the NOPASSWD directive in the sudoers file (use visudo to edit it) and run the command with sudo. Here is the appropriate entry to your sudoers file:

yourusername ALL = NOPASSWD: /path/to/the/program

That way, invoking

sudo /path/to/the/program

will not require to type a password and you will be able to run it from a script or through cron.


How to install Intel graphics for Dell Inspiron 1545 Laptop

Intel graphic drivers are installed during OS installation.

Your problem in likely that you need the libraries for texture compression installed- they are not installed by default due to copyright issues.  They are needed for nearly all 3D games.  With the libraries missing, I suspect that the game thinks the drivers are not there because the game is looking for S3TC support. Without the libraries, the card will not advertise S3TC support hence the game will crash.

Running the following will install the libraries:

sudo apt-get install libtxc-dxtn-s2tc0

or just search for libtxc-dxtn-s2tc0  in the Software Center.


mkdir -p /tmp/wordpress/wp-content/upgrade

will create all the missing sub directories.

Reason for your error: either /tmp/ or /tmp/wordpress/ does not exist. Also make sure when creating directories outside your /home/ that you own them as that user; otherwise you will also need sudo in front of the commands.

Personal note: I would use a location in /home/$USER/ for updates for wordpress.


First install the build dependencies, you can do this simply by asking apt for the dependencies, first you need to make sure the source code section of software sources is set up:

How do I enable the source code repositories?

Then install the dependencies:

sudo apt-get build-dep inkscape

Then you want to pull the source, in this case we don' t need the entire history for the project so we'll just do a lightweight checkout, this can still take a while:

bzr co --lightweight lp:inkscape

Then we need to cd into the directory and build it

cd inkscape
./autogen.sh
./configure
make
sudo make install

This will build Inkscape and install it into /usr/local/bin/inkscape by default.


How can I make unity to search a program, say from my home directory?

Use Synapse for this task. You can search files and applications with it.


Forcibly removing zramswap-enabler from my computer

I figured it out.

I killed dpkg from the background.

sudo killall -9 dpkg

Removed zram swap references from the dpkg status file.

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bkup
sudo gedit /var/lib/dpkg/status

Removed the zram sources from the package manager.

I used the gui.

Than ran this.

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade


How to get newer version of a package installed for 18.04?

Two options here:

You have to write comprehensive bug-report to launchpad with apport-bug opensmtpd to inform the developers about possible problem.
You have to install package from disco on bionic:

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/opensmtpd/opensmtpd_6.0.3p1-5_amd64.deb
sudo apt-get install ./opensmtpd_6.0.3p1-5_amd64.deb

But this manually installed package will not receive security updates.

Update: I have reported bug 1840586 for you with backport / SRU (stable release upgrade) request.


How do I correctly remove items from Wine Programs menu?

According to the XDG specification on where "shortcut links" are stores, you are looking for .desktop files which are saved for wine programs in the local home folder:

~/.local/share/applications/

In here you will find all your wine based desktop files as well as any locally installed programs and edits you've made tot he ubuntu applications menu using the alacart menu editor.

You can remove entries, or edit them and the Ubuntu applications menu will reflect the changes immediately.


Windscribe VPN not working for some reason

I use Windscribe on Ububtu 18.04 and I have noticed that once you are logged in you remain logged in and also once enabled the firewall stays enabled ( the windscribe firewall blocks all internet access when not connected to a windscribe server), even after a restart.
I would recommend disabling the firewall with the commend "windscribe firewall off" then try to reconnect then after connection turn the firewall back on.
Alternately try a different location from the locations list but remember to use the pseudonym for example "windscribe connect castle" is Frankfurt Germany.


Can't boot after deleting EFI boot- and Windows-partition

Ok, this was tiring, but I fixed it. Here's how:

Create a partition (FAT, first one in hdd, boot flag, 200MiB) via GParted on Ubuntu 14.04 live USB.
Use ALT Linux Rescue / rEFInder live USB to boot into my Ubuntu installation (http://en.altlinux.org/Rescue).
Follow the instructions at (an error occurred while mounting /boot/efi) to fix UUIDs.
Run boot-repair (http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/).
Reboot the PC.

Thanks for trying to help me, hopefully this will help someone else in the future.


How to use external downloaders like Axel and Aria2 in Chrome or Chromium?

There is one (Download Assistant) that is no longer in the chrome web store developed by google, but there is still a copy of it on softpedia. Not sure if the latest chromium behaves the same as google-chrome, but for the benefit of google-chrome users, google prevents installing extensions by simply downloading the crx file (as a security measure).

So to install, after you have downloaded the crx file, drop it on your extensions page:

Confirm the installation by clicking Add on the popup.

There is an options page, where you can set the default download directory, and which download manager to use, but in my experience this isn't obeyed. Although, if your download manager isn't detected, you can add a command (or you may wish add custom arguments to installed downloaders).

Then to download a file, right click on the link, go to the Download Assitant context menu, and select which you want to use:

In the case of files that have a dynamic filename (such as: start-download?distro=desktop&bits=32&release=lts for ubuntu), you may need to actually give it an appropriate file name (such as: ubuntu.iso) otherwise it won't download properly (from my test).

After you save on the download path dialog, an xterm window should pop up where you can monitor the progress:

This was in google-chrome, but I imagine it would still work in chromium.

In case the softpedia link would stop working, an alternate location: here


Sound buttons not working after upgrading to GNOME 3.16

Install GNOME 3.16 again, and yes, I'am sure

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo add-apt-repository ppa:gnome3-team/gnome3-staging

Upgrade your system again, and yes, I'm sure ;)

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

Now remove GNOME 3.16 in a clean way

sudo apt-get install ppa-purge
sudo ppa-purge ppa:gnome3-team/gnome3-staging
sudo ppa-purge ppa:gnome3-team/gnome3

If this not work, backup and reset your GNOME 3 configuration

cd ~
mkdir ./.old-gnome-config/ && \
    mv ./.gnome* ./.old-gnome-config/ && \
    mv .gconf* ./.old-gnome-config/ && \
    mv ./.cache ./.old-gnome-config/ && \
    mv ./.dbus ./.old-gnome-config/ && \
    mv ./.dmrc ./.old-gnome-config/ && \
    mv ./.mission-control ./.old-gnome-config/ && \
    mv ~/.config/dconf/* ./.old-gnome-config/

Partially taken from here

Log-out and log-in. The backup is in ~/.old-gnome-config


How to dispatch clicked URLs to specific browser based on domain (as OSX Choosy does)

I liked the idea and didn't find any existing solution quickly so I've written my own dispatcher: https://github.com/int-ua/openbydomain/

The idea is to make it your default "browser".

P.S. My first use-case will be apport.


How can I know the screen resolution's width within a script?

Bash:

Width=`xdpyinfo | grep 'dimensions:' | perl -pe 's/.+ ([0-9]+)x.+/$1/'`
Height=`xdpyinfo | grep 'dimensions:' | perl -pe 's/.+ ([0-9]+)x([0-9]+).+/$2/'`


Grub is the bootloader - so the purpose of editing it is to change parameters during boot.

The files you can edit are /etc/default/grub and the scripts in /etc/grub.d.

Changing the grub.cfg in /boot/grub is not recommended as any changes you make manually will be overwritten the next time an update to grub is called.

If there is a specific reason that you want to edit the file please update your question.

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


I suggest first trying like this:

LC_ALL=C ubuntuone-installer

But if that does not work , according to this bug there is a workaround for this issue.

First, install the needed package:

sudo apt-get install ubuntuone-control-panel

And then configure you account.

ubuntuone-control-panel-gtk

If that does not work, just uninstall all the Ubuntu One packages and do this again.


Open up "system settings".
Go to "software $ updates"
Click on the "additional drivers" tab
Click nvidias proprietary driver instead of X.ORG s server
Reboot and you shouldn't run into your system crashing everytime you cick dash home


Copy and Paste to/from Ubuntu shell in Windows 10

Within WSL the right mouse button is copy when there is a selected text, and the same button is paste when there is something in the clipboard, no mater it is copied within the WSL window or within another Windows application.

So if you want to copy some text from the terminal window (e.g. some file name) and paste it onto the command line you need to select the text by holding the left mouse button, and the double cluck with the right mouse button for copy and paste.


List all files then execute script with part of the filename

This should do the job:

#!/bin/bash
for i in *.cfg; do
  sshpass -f /path/to/passwordfile scp ${i%.cfg}.txt username@${i%.cfg}:
done

or rather

for i in *.cfg;do sshpass -f /path/to/passwordfile scp ${i%.cfg}.txt username@${i%.cfg}:;done

The password is passed to scp using sshpass (following How to pass password to scp?) which reads it from passwordfile – remember to secure this file against unauthorized read access with chmod 400!

I got a little bit confused what file you want to send here, I understood there's e.g. a file ABC123.txt that has to be sent to host ABC123, so I just stripped .cfg using Bash Parameter Expansion and added .txt.

As user@host: defaults to user's home directory I removed the path.


does ubuntu 13.04 desktop (32 bit) already have open stack bundled in?

The Ubuntu desktop and server editions are not separate operating systems.  Instead, they are just, for your convenience, separate installers, which each install a different subset of Ubuntu's software packages.

It is possible to install all Ubuntu server software on an installation that was originally installed with the desktop installer, and vice versa, using the package installation tools built into Ubuntu.

OpenStack is not one software package but a range of software and isn't the easiest to get started with.  Normally, you'd probably be running Ubuntu 12.04 LTS if you are running a server and installation will be via the CloudArchive.  If you're running 13.04, then you can install the included version of the OpenStack tools (grizzly) with that release.

The actual installation instructions for OpenStack are quite complicated, suffice to say that question has been asked here.


The problem is with the statement
math=$(("$execute"-"$time"))

Because execute and time contain values in the format %H:%M:%S. But bash's arithmetic expansion can't evaluate time formats.
Instead of %H:%M:%S format, you can convert times into seconds, do the arithmetic and then print in the desired format.
Something like
#!/bin/bash

#When to execute command
execute=$(date +"%s" -d "22:30:00")

time=$(date +"%s")
math=$((execute-time))

if [[ $math -le 0 ]]; then
    echo "Target time is past already."
    exit 0
fi

#Repeat until time is 22:30:00
while [[ $math -gt 0 ]]; do
    printf "Countdown is stopping in %02d:%02d:%02d" $((math/3600)) $(((math/60)%60)) $((math%60))
    sleep 1
    clear

    # Reset count down using current time;
    # An alternative is to decrease 'math' value but that
    # may be less precise as it doesn't take the loop execution time into account
    time=$(date +"%s")
    math=$((execute-time))
done


ubuntu 15.04 installer cannot find my hard disk

You need to be clear where you want Ubuntu installing. ie what partition.
I assume you want to install ubuntu over your Fedora install on sda5, as there's no room elsewhere.
If that's the case try using gparted to format sda5 to ext4.
It should then be seen by the installer.