I fixed this with this code

sudo nvidia-settings --assign CurrentMetaMode="DFP-1: 1920x1080 {ViewPortOut=1840x1040+40+20, ViewPortIn=1920x1080 }"

You can edit veiw port out to match your tv while the numbers after the plus sings will center the screen.

Hope this is useful to someone


can't remove gnome-shell and gnome-shell-extensions

gnome-shell-extensions-user-theme was never in the official Ubuntu repositories. Be careful when using software from PPAs.

Have you tried removing gnome-shell-extensions-user-theme. Maybe remove gnome-shell*.


Is there a tool like omnipeek? Which tool can be used to capture wlan packets?

Wireshark is a relatively popular tool, and works on a few flavors of Linux, as well as Mac and Windows

http://www.wireshark.org/

Looks like it's also in the repos

sudo apt-get install wireshark


Run command on logout, *before* encrypted home is unmounted

The well-known Upstart event emitted when the desktop is shutting down is "desktop-end" (and there is also a corresponding "desktop-start"). Hence, something like the following should work:

mkdir -p ~/.config/upstart/
cat <<EOT|tee ~/.config/upstart/psd.conf
start on desktop-start
stop on desktop-end

exec psd

EOT

Note: you'll need to change that exec line to the command to start the psd daemon. Alternatively, you could create a job without an exec stanza and instead call commands to start and stop the daemon like this:

post-start exec command-to-start-psd
pre-stop exec command-to-stop-psd

I've never used psd, but your question seems to suggest it is running as root? If so, I think you should investigate if it is possible to run an instance of the daemon as your user (safer and will make it easier to create the Upstart job).

For more details on well-known upstart events:

man upstart-events
(or http://upstart.ubuntu.com/cookbook/#ubuntu-well-known-events-ubuntu-specific)

See also:

http://upstart.ubuntu.com/cookbook/#exec
http://upstart.ubuntu.com/cookbook/#script
http://upstart.ubuntu.com/cookbook/#expect
http://upstart.ubuntu.com/cookbook/#run-a-job-as-a-different-user


How do I submit a browser plugin to software center

You can, however, put your package in /opt and then create symlinks to needed files within directories where they will be found.


No internet via wifi/ethernet after 14.04 upgrade

I had the same (or a similar) issue with my laptop after upgrading from Ubuntu 12.04 to 14.04. After some searching I found a fix at askubuntu:

No internet after upgrading from 12.04 to 14.04.1

i.e.

sudo dhclient

solved the issue for me.


Binary will not execute after upgrade to 10.10

You are trying to run a 32bit binary on a 64bit system:

The output of uname -m, x86_64, means that you're running a 64Bit system. However, the blender binary is a 32bit Binary: blender: ELF 32-bit LSB executable, Intel 80386 ....

The fact that bash says the file doesn't exist seems to be a bug that never got fixed, since I get the same message when I attempt to run a 64Bit binary on my 32Bit system.


Open application window on the same screen as where It was launched

Unity uses Compiz as composing manager, and that has all sorts of plugins for this sort of stuff. To make it easy and long story short without messing in command line , install Compiz Config Settings Manager ( with sudo apt-get install compizconfig-settings-manager or via Software Center ) , and look for Place Windows , ensure it's checked

Under that plugin there will be several options for Multi Output Mode . What you want is Use output device of focused window . Thus it will place open file window wherever your file manager is


In Glade, how do I set a widget size (i.e. minimum and maximum)?

I don't believe you can set a maximum size as size requirements adjust due to things such as translations and screen resolutions. If you need a widget to not get beyond a certain size, size it in proportion to the other widgets.


How do I reset the colors of my terminal?

The likely cause of this problem are ANSI Escape Codes. These allow scripts to change the foreground and background color of the terminal. You can even mimic the colors of the screenshot above by running the following command:

echo -e '\E[32;46m'

To reset the terminal colors, use the following command:

tput init

According to the manpage:

    init  If the terminfo database is present and an entry for the user's
          terminal exists (see -Ttype, above), the following will occur:

          (1) if present, the terminal's initialization strings will be
              output as detailed in the terminfo(5) section on Tabs and
              Initialization,

          (2) any delays (e.g., newline) specified in the entry will be
              set in the tty driver,

          (3) tabs expansion will be turned on or off according to the
              specification in the entry, and

          (4) if tabs are not  expanded, standard  tabs  will  be  set
              (every 8 spaces).

          If an entry does not contain the information needed for any of
          the four above activities, that activity will silently be
          skipped.

This should restore your terminal to its original colors.


Annoying, old bug, also mentioned elsewhere. Changing your current theme (see here) would be the most perfect option. The easiest one, withou changes, is probably:

be near the window border (in a generous 30-40 pixel sense)
Alt+Right Mousebutton


How to change the ugly chrome/chromuim tray icon

I fixed this in my script; https://github.com/bil-elmoussaoui/Hardcode-Tray
Thank you all!


How to setup a static IP for network-manager in Virtual Box on Ubuntu Server

You need to use Network Manger from the command line, this is nmcli.

First, you can list the available connections Network Manager knows about with the following, this is important to find the name, as the device id isn't used:

# nmcli con show

This will give you something like:

NAME                UUID                                  TYPE            DEVICE
Wired connection 1  7a3b674a-f346-3cfb-8b30-ff70e6db1b60  802-3-ethernet  enp0s3

You can then modify the connection with the following:

nmcli con mod "Wired connection 1"
  ipv4.addresses "HOST_IP_ADDRESS/IP_NETMASK_BIT_COUNT"
  ipv4.gateway "IP_GATEWAY"
  ipv4.dns "PRIMARY_IP_DNS,SECONDARY_IP_DNS"
  ipv4.dns-search "DOMAIN_NAME"
  ipv4.method "manual"

When you enter the above use one line, I've just split it into separate lines to make it more clear.

If you want to set the connection to use DHCP, you can use the following:

nmcli con mod "Wired connection 1"
  ipv4.addresses ""
  ipv4.gateway ""
  ipv4.dns ""
  ipv4.dns-search ""
  ipv4.method "auto"

You need all the empty quotes as they remove any settings they previously have.

To add a network, use:

nmcli con add ...

With similar parameters.

To make the settings active, reboot.  (I tried re-starting Network Manager, but that didn't seem to activate the changes, but a reboot did.)


Am unable to install Kubuntu onto laptop from USB

If you are able to access a Windows computer, I'd recommend using win32diskimager.

It has never failed me when making bootable USB drives.


Installation doesn't start, kernel thread helper message and blinking keyboard LEDs

The blinking lights indicate a kernel panic where the kernel has basically been booted from the cpu. It's very, very bad. Normally it's caused by faulty hardware, but sometimes it can be caused by bad acpi support or some very bad bug in Linux.

In order to figure out what the issue is, we'd need to see what kind of message appears on the screen. You might have to type out the entire thing or write it to a notepad so you can type it in here. Failing all else, seek a computer expert to do your install for you.

You may have to settle for an earlier version of Ubuntu for now.


Goto Keyboard

Select Shorcuts > Custom shortcuts

Select the Plus button

Name your shortcut and type the command and apply

It will appear in the custom shortcut section click on the item on top of the disabled text
Then it will change to New shortcut Press F15 You will get the new shortcut :)


How to change Wallpaper-preferences from nemo to nautilus

As far as I know.. this happens because in the Nemo's source code when you click in "Change Desktop Background" execute the cinnamon-settings.

You can try to edit the source code to call the gnome-control-center instead cinnamon-setting.

NOTE: In this example I'm running Ubuntu 13.04 with Cinnamon Desktop & nemo 1.8.4 installed from the ppa:gwendal-lebihan-dev/cinnamon-stable ppa.

Download the Source Code, Edit & compile.

1) Edit the gwendal-lebihan-dev-cinnamon-stable-raring.list file to allow download the source code.

sudo nano /etc/apt/sources.list.d/gwendal-lebihan-dev-cinnamon-stable-raring.list

Remove the "#" character.

BEFORE:

# deb-src http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu raring main

AFTER:

deb-src http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu raring main

Save the changes in nano with Ctrl+O, Enter then Ctrl+X.

sudo apt-get update

2) Open a Terminal and install the necessary packages.

sudo apt-get install build-essential

3) Install build dependencies.

sudo apt-get build-dep nemo

4) Create a folder to download the source code.

mkdir ~/Downloads/src
cd ~/Downloads/src

5) Download the source code.

apt-get source nemo

6) Edit the file "nemo-desktop-icon-view.c"

gedit nemo-1.8.4-20130709192207/src/nemo-desktop-icon-view.c

Search for the lines 665  & 667 to change them.

BEFORE:

"cinnamon-settings",
"backgrounds", NULL);

AFTER:

"gnome-control-center",
"unity-appearance", NULL);

Edit as per comment to remove "Add Desklets" action.

7) Edit the file "nemo-desktop-icon-view-ui.xml" to remove "Add Desklets" action.

Search for the line number "12" to delete it.

You can remove it with your favorite editor or with this command:

sed -i '/Desklets/d' ~/Downloads/src/nemo-1.8.4-20130709192207/src/nemo-desktop-icon-view-ui.xml

8) Go to the "nemo-1.8.4-20130709192207" folder to build the deb packages.

cd nemo-1.8.4-20130709192207/
dpkg-buildpackage -rfakeroot -uc -b

9) Now you can install the deb packages.

cd ..
sudo dpkg -i *deb

10) Enable the "gnome-control-center-unity-appearance.desktop" file to appears in the gnome-control-center.

sudo sed -i.bak 's/OnlyShowIn=Unity;/OnlyShowIn=Unity;GNOME;/g' /usr/share/applications/gnome-control-center-unity-appearance.desktop

11) Hide the "gnome-background-panel.desktop" file from the gnome-control-center. To avoid this:

sudo sed -i.bak 's/OnlyShowIn=GNOME;/NotShowIn=GNOME;/g' /usr/share/applications/gnome-background-panel.desktop

NOTE: with the "sed -i.bak" command, backups files will be created with the extension .bak

12) Finally you can logout and Login to see the changes.

The Result:

As you can see the menu does not have the "Add Desklets" action and the "Change Desktop Background" will open the gnome-control-center appearance

Hope it helps.


I tried installing gksu but getting the following error.Someone help me to fix this

You can try:

sudo apt-get update
sudo apt-get install gksu

If it doesnt solve your problem, you can try this link.


Dual monitor wont play media centre on primary screen

No help? ok... here's the answer: Go back to Windows....


How do I get “restart” option in the system menu in Gnome Classic?

This is not possible without rewriting the source code for GNOME Panel. The actions in the menu you're referring to are constructed from this list, which does not include a restart item and isn't extensible using configuration files.

If you're feeling ambitious and want to patch in a restart menu item for yourself, creating a panel_session_manager_request_restart analog of this function would be the place to start.


Give access to a specific user to a specific folder within a group? [Terminal]

This is very easy in POSIX based systems.

First

chown adminuser:admingroup admin

That will make the owner of the file specificly adminuser and the entire group admingroup.

Then you will likely want to:

chmod a-rwx admin
chomd ug+rwx admin

That will remove all permissions from admin and then give user and group access to read write and execute the admin file.

This is a very decent tutorial on file permissions, though there are better ones. This should get you started though.


awk command unable to read apache log file (user error)

Just figured out why this command doesn't work... If the date/time doesn't occur in the log file, the awk command doesn't match anything and returns nothing... I will have to read the timestamp of each line, convert it to epoch and compare if it falls in the range I'm interested in.

Or as @Serg suggested, reduce the string to match by dropping the seconds. This does not guarantee a match, but does make it more likely. (ymmv)


Your lisp is /usr/bin/clisp, you can either use it as is or detect it on the fly using which:

../fricas/configure --with-lisp=$(which clisp) --prefix=/tmp/usr

or

./configure --with-lisp=/usr/bin/clisp --prefix=/tmp/usr


Changing nvidia graphics card after installing 16.04

The easiest way is to install a new driver by

sudo apt install nvidia-367

Then turn off the computer and replace the card.


Change my default browser if it is not present in default applications

There are a lot of different situations which Ubuntu comes without a browser in them, e.g: minimal installation using network installer.

Make sure "Firefox" is installed:

$ dpkg -l firefox | grep ^ii
ii  firefox        53.0.3+build1-0ubuntu0.16.04.2

If it's not install it:

$ sudo apt install firefox -y

Set Firefox as your default browser:

xdg-settings set default-web-browser firefox.desktop

If it did not worked follow the bellow instruction:

Give the chrome a lower priority:

sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/google-chrome-stable 30

Then use update-alternative to make "Firefox" your default browser:

$ sudo update-alternatives --config x-www-browser

It will show you available browsers:

  1            /usr/bin/chromium-browser   40        manual mode
  2            /usr/bin/firefox            40        manual mode

Pick the one you want, in this case 1 or any other you like and press enter.


Reading /usr/bin/xflock4 you'll see that the script first checks if xscreensaver or gnome-screensaver are running.

If neither of these are running the script will try to run xlock and then maybe slock.

My 12.04.3 system has been upgraded over the years. In the past I had to edit xflock4 because it wasn't properly detecting if xsreensaver or gnome-screensaver was running.

Early versions used "pgrep xscreensaver". This didn't work properly so I needed to use "ps aux | x[s]creensaver" to detect xscreensaver for instance.

Today my script just has a #comment stating it checks if xscreensaver or gnome-screensaver is running. Not sure if an upgrade to 12.04 out this in place or I took if from a system higher than 12.04.


Building packages from launchpad respository

The software used to build Ubuntu source packages in a chroot is called sbuild . Some introduction to setting up and using sbuild is given in the SimpleSbuild wiki article.

There are many ways to download a source package and to set up an sbuild chroot, but the ubuntu-dev-tools  package includes a couple of very useful scripts for accomplishing exactly what you want.

Assuming you are running Ubuntu 14.04 LTS, you can set up a chroot and build the bash package for example, with

sudo apt-get install sbuild ubuntu-dev-tools
mk-sbuild trusty
pull-lp-source -d bash trusty
sbuild -A -d trusty bash_4.3-7ubuntu1.5.dsc

where the filename of the source package given to the sbuild command will of course change with updates and new releases.

The mk-sbuild command need only be run one time, the minimal chroot is cached on your system and can be reused for building any number of source packages.


How to secure ubuntu server from bruteforce ssh attacks?

There are different solutions. The best one is using RSA authentication that uses public/private keys to authenticate users.

Check this great manual for different approaches (RSA authentication included): http://www.la-samhna.de/library/brutessh.html

I'm using the 3rd solution on my server because I don't want to make it complicated for my non-technical users: using iptables to limit the number of connections per minute that makes bruteforce attacks inefficient and ineffective.

Here is the solution I'm using:

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -m recent --update --seconds 60 --hitcount 4 --rttl --name SSH -j LOG --log-prefix "SSH_brute_force "
iptables -A INPUT -p tcp --dport 22 -m recent --update --seconds 60 --hitcount 4 --rttl --name SSH -j DROP

As mentioned here: this will allow three port 22 connections from any given IP address within a 60 second period, and require 60 seconds of no subsequent connection attempts before it will resume allowing connections again. The --rttl option also takes into account the TTL of the datagram when matching packets, so as to endeavour to mitigate against spoofed source addresses.

As stated in the mentioned guide, it's better to use a white list to separate trusted users from these rules:

iptables -N SSH_WHITELIST

then add trusted hosts:

iptables -A SSH_WHITELIST -s $TRUSTED_HOST -m recent --remove --name SSH -j ACCEPT

and after that make the rules:

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SSH_WHITELIST
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --rttl --name SSH -j ULOG --ulog-prefix SSH_brute_force
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --rttl --name SSH -j DROP


Change system volume using crontab & pactl

Took me a while to figure it out, you can do this:

1 9 * * * export DISPLAY=:0 && amixer -D pulse sset Master 48000

1 22 * * * export DISPLAY=:0 && amixer -D pulse sset Master 32000

On 100% volume is roughly 64000. That'll get volume up at 9, and down at 22.
Also on your user crontab, not sudo's.


I have not looked into the details yet, but the problem lies in this line:

dnssec-validation auto;

It seems that the version of bind9 in 16.04 enables dnssec-validation by default. Switching to:

dnssec-validation no;

should solve the problem.


Alfa AWUS036NH not showing up on Ubuntu 14.04

This is the easy way of solving your problem:

Download the driver here.
With the following parameters:

Product Category: Indoor Wireless
Product Model: AWUS036NH (Make sure you select this one.  There are others that look similar...)
Type of File: Driver

Once downloaded, unzip DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2
Simply follow the instructions in the ReadMe and you'll be up and running in no time.


This also happend to my sister.
I solved it like this:
1.Make Ubuntu install USB/DVD
2.Folow install steps  nornaly until you came to Configure partitions step.
3.Check if other partitions are OK, and create Only EFI partition
4. Finish installation steps normaly(like you did when you first install Ubuntu).
This solve my sister's problem, If you have any question just ask.


MAAS Network question - Node cannot ping to outside world (ip shows up correctly)

I'm still working on etherwake but for the moment I have figured a few things out about how MAAS works. I was correct about editing the cluster interfaces with the ifconfig from the machine that runs it. However, what I didn't know was that I have to forward the traffic from IPv4 to the internal LAN as well. In this case, I connect to the internet via wlan0 and my internal is connected via eth0. So, this is how I forward my traffic.

sudo iptables -A FORWARD -o wlan0 -i eth0 -s 10.0.0.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables-save | sudo tee /etc/iptables.sav

Add this line into /etc/rc.local before exit 0 line

iptables-restore < /etc/iptables.sav

Edit /etc/sysctl.conf (remove # from #net.ipv4.ip_forward=1) then

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

Source: https://help.ubuntu.com/community/Internet/ConnectionSharing

Note: I'm still working on Etherwake problem. Any pointers are highly appreciated.


Ubuntu 16.04 fails to install python3.5.2

First of all, you cannot remove python2.7. Many applications in Ubuntu rely on it to work. Without it, Ubuntu cannot run properly.

You may want to copy the python2.7 related binaries back to where they should be. But this can be a very tricky thing to do, because you need know what to copy first.

So, maybe the easiest solution is to reinstall your OS.

As to how to find python3.5.2, you just need to call python3 instead of python.
If you run python3 --version in a newly installed Ubuntu 16.04, you will find it is 3.5.2 already.


You've manually installed some other build of libpng12-0 it appears. You need to sudo apt-get install --reinstall libpng12-0=1.2.51-0ubuntu3 and then you will be able to install libpng-dev.


Play sound from different applications on different output devices (speakers, headphones)

Two ways to do this: one is less specific to an application, and more to a task, and almost certainly will work, the other has worked on and off, but is more application specific.

Method 1 (the surefire one)

Note this is reliant on parts of KDE and may be desktop-specific.
Open up Phonon audio settings and flip through the categories. Music can be assigned a different sound card than communications like Skype through a list which orders them from most preferred to least for each category. This may work on GNOME like desktops such as Unity, Xfce, LXDE, and other Gtk+ environments, but I have no proof.

Method 2 (partially covered in comments)

If you are using KDE, again, you're all set. If you are using a Gtk  or other desktop you may need to install something.
In KDE, just open up Kmix and right-click on the application slider shown in that'll window. You should see an option to switch sound cards.
With another desktop, install pavucontrol (shown as Pulse Audio Volume Control in the menu) flip to the applications tab, and either there's a button listing the sound card, or you right click on the app. Not 100% sure which, but the functionality is there (I think)

Being a Zoom H4n, Intel Audio, and M-Audio user, I know it can be done.


Just open the gnome-session-properties utility running in a terminal:

gnome-session-properties

And add an entry, simply called dropbox with the command to start it. These are my settings:


How to make a Quickly project standalone?

To run your application standalone, you can build a package. The Quickly wiki page describes how to build packages and also how to distribute them to users:

  How to play with package and release:

  optional, but recommended to build first your package locally

  $ quickly package

  BE WARNED: the two following commands will connect to Launchpad. You
  need to have a Launchpad account and a PPA already created.

  For quickly release, you also need a project on Launchpad to which you
  can bind your work, as well as keys set up:

  $ quickly release

  or

  $ quickly share


edit the file shared by Wifi Access Point

If you've set the writable = yes line in your /etc/samba/smb.conf file, as shown in the tutorial. You should be able to modify all files in the samba share location of /mydrone/images.

Something the guide doesn't mention is that you may need to reload your samba service to allow the changes to take effect. Do this with:

sudo service samba reload


WiFi is not enabled  in Network Manager with a BCM4313

I had a similar problem today on ubuntu 11.10 64-bit, but my platform is an acer 4755g.

1st of all, let's be absolutely sure that your z570 is using a broadcom
http://consumersupport.lenovo.com/uk/en/DriversDownloads/drivers_list.aspx?CategoryID=307140

as you can see, z570 supports
1. intel (several diff types)
2. broadcom
3. Atheros

You do this by
1. opening a terminal
2. running the command

alvinh@ibmsda6:~$ lspci | egrep -i "Atheros|broadcom|intel"

This is my other pc which also run ubuntu 11.10, but the i386 version
02:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)

In your question, you were very specific that you have a BCM4313, so i'm gonna take yr word for it. Let's assume that you've done a lspci & it returns "wireless" & "broadcom" on the same line since this is the only hardware that supports 64bit.

Now install this package
http://packages.ubuntu.com/oneiric/b43-fwcutter

sudo apt-get install b43-fwcutter

when that's done, goto System Settings (should be on the launcher on the left)
Hardware/Additional Drivers -> Broadcom <- Enable this driver
The rest is the same as previous releases of ubuntu; on the top right-hand, click on the LAN & configure your wireless lan info.

Good luck Alex; this is as best as i can do for you bec it's exactly what i did!


Can't login via display manager (only tty) after a fresh install of Xubuntu

The problem could be that some older configuration files in your /homeare in conflict with the new system.

If you reinstall Ubuntu over a previous installation using your old username, and you have a separate /home partition, make sure that you delete all the .abc hidden folders (.config; .local; etc.) in your personal folder before installing Ubuntu (but you can manage to do this in order to get your system working). To do so, you can open the /home partition from your Live system, and let the hidden folders appear by pressing CTRL+H in your keyboard, so you can delete them.

If you delete the folders, when you boot your new Ubuntu installation, the necessary folders that the system needs should be created. If you are using the old username, the only things that aren´t automatically generated are the files which are in /etc/skel, but in your particular case, it should not be a problem, since you are reinstalling an Ubuntu 16.04 over another 16.04 (no matter if you are using Xubuntu, Ubuntu GNOME, or everything else). If you are unsure, you could copy manually the files from /etc/skel (which are hidden, so you have to press CTRL+H to see them) to your personal folder

So, the best thing you could do is to boot your Live Ubuntu and delete the hidden folders in your home.

If that doesn´t work, you can always reinstall Ubuntu using another username (just make sure not to format your /home). The older user folder will remain in your /home partition, so you can recover your files easily.

Hope this helps.


Make sure that its set correct.  Try this, open System Settings, and click on power.  Once the windows opens, make sure it set to the first option "When battery is present"


The main difference is where you're booting from - the computer hard drive or USB drive. There is something called a persistence file you can create when you create the bootable USB drive if there is enough space left over.  Things you save to your persistence file should be available no matter which PC you boot it from.  That being said you could also save files to whichever HDD (hard drive disk) is present in the computer you are booting from.  Those would be local to the PC.  I wouldn't recommend writing too much onto a partition that another OS uses (like windows)  here is a link with a step by step to install as well: http://www.ubuntu.com/download/desktop/install-ubuntu-desktop


Where can I download ubuntu-10.04-destktop-amd64.iso file?

Here you go.  Just click on the link to download...

10.04.4

64 Bit:
http://old-releases.ubuntu.com/releases/10.04.4/ubuntu-10.04.4-desktop-amd64.iso

32 Bit:
http://old-releases.ubuntu.com/releases/10.04.4/ubuntu-10.04.4-desktop-i386.iso

10.04.3

64 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04.3-desktop-amd64.iso

32 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04.3-desktop-i386.iso

10.04.2

64 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04.2-desktop-amd64.iso

32 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04.2-desktop-i386.iso

10.04.1

64 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04.1-desktop-amd64.iso

32 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04.1-desktop-i386.iso

10.04

64 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04-desktop-amd64.iso

32 Bit:
http://old-releases.ubuntu.com/releases/lucid/ubuntu-10.04-desktop-i386.iso

From:
http://old-releases.ubuntu.com/releases/lucid/

"Intel x86" means 32-bit and "AMD64" means 64 bit, If you didn't know that.  I don't get why you want to get 10.04.x because it is a EOL (End of life) releases on the desktop and remember that getting updated software to work can be hard so use this to help you with that "How to install software or upgrade from an old unsupported release?".  I also  recommended you not to use it as a daily os but to just show it is just fine.


How to loop with variable as a line, instead of a word of a text?

In case you are using ls only as an example to illustrate output that may contain spaces, you can try this (replace ls with your command):

ls | while IFS= read -r line ; do
   echo "$line"
done

Without IFS=, the read command strips whitespace at the beginning and end of each line. Without -r, it treats \ at the end of a line of input as a line continuation character, and just removes other \ characters.

Note that ls itself defaults to one file per line when piped, even when you don't pass -1. (It's possible to have more than one line per file, though, because filenames are permitted to contain newline characters.) When piped, ls also disables color, if normally enabled.

To process a file, you can try:

while IFS= read -r line ; do
   echo "$line"
done < file.txt

If you want to loop over filenames, bash has the capability built-in, without parsing ls:

for file in * ; do
   echo "$file"
done


Can't change keyboard layout on login screen

I don't know how you can fix it, but I know that because I have the same problem. For temporary solution you can do this:

Press Alt+Ctrl+F1(or F2, F3, ...)
After login type this: export DISPALY=:0
Type xdotool type {your password}

This tools (xdotool) type the required information on X and the problem (for login) can be solved in this way. I hope the Ubuntu team solved this problem permanently!


Assuming you are talking about \n, if you don't want that newline to appear, use cat to join those files instead of awk:

cat file_a file_aa > newfile

The difference:

$ awk 1  <(printf "%d\t" {1..2} ) <(printf "%d\t" {1..2} )
1   2
1   2
$ cat <(printf "%d\t" {1..2} ) <(printf "%d\t" {1..2} )
1   2   1   2

Since you want to delete the trailing \t, try:

sed -i 's/\t*$//' file_a
awk '{print}' file_a file_aa

\t*$ is any number of tabs at the end of the line $.

The effect:

$ awk 1 <(printf "%d\t" {1..2} | sed 's/\t*$//') <(printf "%d\t" {1..2} ) | od -c
0000000   1  \t   2  \n   1  \t   2  \t  \n
0000011


How do I make apt-get install commands not display every package that is installing?


International Charcters "pop-up" like mac/android?

I do not know if something like what you search for is implemented (maybe you can explore something about "input methods"), but the traditional "Unix/x11" way is to define and use a "compose key".

The idea is you have a special key that starts a sequence that will produce a specific symbol you normally don't have on your keyboard.

These instructions refers to Gnome Desktop, but I suppose it is the same in all the desktop flavors. To activate a compose key, go to settings -> Region and Language and then choose the "layout" tab. Click on "options" and choose where you want your compose key to be:

Now you can enter strange chars like that: for example, press "compose", then "a", then for example "~" and you have ã (the font you use can have the glyph or not...).

A full list of the characters you can obtain via compose can be found, for example, here:

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

and here:

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


Maybe this is a bug as txwikinger wrote. But sometimes the CD was not burnt correctly or has some scratches on it. You should try burning Ubuntu to another CD and boot again.


Those are not "names" on a network that you can find with a name resolution (DNS).

nmap is just reporting the the manufacturer for the mac addresses it found.
Specifially, nmaplooks up the prefix - first 3 hex values - of the address in this database.

If, for some reason, you still need to have different manufacturers show up after an nmapscan, you can change/spoof your mac address in Ubuntu. Your Asus router might also have an option for this.

If you want "names" (i.e. myhost.example.com) on your network, then we are talking about DNS records.

I'd suggest looking into

running a DNS server - flavour bind9
running a DNS server - flavour dnsmasq
static DNS names in /etc/hosts files


Is there a GUI utility to mount remote filesystems over SSH?

It's not clear to me if you are strictly bound to using sshfs, but by default the GVFS in GNOME supports SSH connections. In the file manager go to File -> Connect to server:

This will mount the remote SSH server in a folder you can access from the file manager. If you need to access the mount in the command line it's in .gvfs.

You can also mount it in Nautilus. Just hit CTRL+L and in the address bar type: ssh://server-ip/somepath/

Where is "Connect to Server" for ssh connections in Unity?


Solutions for this:

#services mysql start
or
#/etc/init.d/mysql start


The file run.x86-linux is part of the smlnj-runtime package, which is a dependency of:

smlnj
ml-yacc
ml-lex

Focus on troubleshooting these applications.

Keep an eye on watch "ps -C run.x86-linux -o pcpu,pid,start_time,command" while you use them, and see if you can devise a series of steps that will reliably cause the runaway CPU usage.

If you think you have found a bug that is not the result of your own programming activities, file a bug report against the runaway process and change the "In what package did you find this bug?" field to the package for the application that is causing the problem.


How do I install Ubuntu 14.04 without losing data on a Windows 7 PC (physically)?

You should install Ubuntu on a separate partition so that you won't lose any data. The most important thing is you should create a separate partition for Ubuntu manually, and you should select it while installing Ubuntu.

First create a separate partition for Ubuntu while running Windows (like a partition with more than 10 GB). Also create a small partition for the swap partition (size is equal to your RAM size).

You should know the partition sizes you created so that you can identify them easily while installing Ubuntu.

See the below images - I picked them by googling so they won't be same as yours (like partition sizes and number of partitions).

The second important thing is while installing Ubuntu select "Something else".

It will allow you to select your manually created partition to install Ubuntu onto it.

Now select and edit the partition you created for Ubuntu. Be careful in selecting. Check twice that you selected the correct partition, not some other partition as you may lose data like before.

Select the format partition, use as mount point as shown in the image. The size is up to you.

After that, select the swap partition, and edit it as shown in the image (size is your choice).

After that select the "Device for boot loader installation" at the bottom and select the one with /dev/sda at the beginning.

Now you can select "install now" at the right bottom.

It seems lengthy, but it's really easy once you know this installation.

I hope that helps.


ubuntu 20.04 how can i setup a dummy monitor so i can use vnc as a second screen and still be able to drag windows back and forth

It depends on your hardware and driver.
If you you are using intel iGPU and intel driver, you can set up with:

Create /etc/X11/xorg.conf.d/20-intel.conf:

Section "Device"
    Identifier "intelgpu0"
    Driver "intel"
    Option "VirtualHeads" "1"
EndSection

Reboot and check the output of xrandr. You should see “VIRTUAL1 disconnected”. Also check the name of your current output. (For me it is called eDP1.) Here's mine:

$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   1366x768      60.00*+
   1280x720      59.86    60.00    59.74
   1024x768      60.00
   1024x576      60.00    59.90    59.82
   960x540       60.00    59.63    59.82
   800x600       60.32    56.25
   864x486       60.00    59.92    59.57
   640x480       59.94
   720x405       59.51    60.00    58.99
   680x384       60.00
   640x360       59.84    59.32    60.00
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Generate modeline with gtf or cvt (Replace 1024 768 with your preferred resolution). Here is what I get:

$ cvt 1024 768
# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

Create a new xrandr mode from previous output (Modeline keyword should be omitted):

$ xrandr --newmode "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
$ xrandr --addmode VIRTUAL1 1024x768_60.00

Activate virtual display: (Replace eDP1 with your real display)

xrandr --output VIRTUAL1 --mode 1024x768_60.00 --right-of eDP1

If you are not using intel driver but have a free HDMI or VGA output, you can also use it for output. Just replace VIRTUAL1 with the name of the free output in step 4 and 5.
Reference: Arch Wiki


can't find usb mounted to system with ubuntu 16 32 bit

Use the Disks app to shows the devices on your system, then use the play arrow to mount the disk you have (if possible).
Or you can reformat the USB from there.


Grub doesn't appear after windows 10 upgrade

Almost the same situation as mine. I have Windows 10 along side Ubuntu 16.04 LTS. I also have dual boot system with bootloader as grub.
I faced the same issue i.e. after latest Windows 10 update - the computer will not show the grub screen and then directly boot into Windows 10. I cannot go into Linux at all.

This is what I did.
Once booted inside Windows. Press Windows + R or right click on Start menu to get run command.
when you are typing run.exe select as run as administrator.
Once you are in command shell kind of windows
type this command:

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

Make sure that command executed successfully. Your command could be slightly different - please refer to your initial grub install/config logs for the correct command.
It worked for me and I believe it will work for anybody else.

Note: This will work when you upgrade Windows 10 within Windows 10.


Installing softwares in ubuntu using other linux distro .ISO

If you want to install packages on an offline system, apt ist prepared for this.

This link is for xubuntu, but it will also work on your ubuntu system.

All you need is another system with apt and internet access.


How to solve Uiautomatorviewer issues: GDK_NATIVE_WINDOWS environment variable is not supported in GTK3

Please try:

sudo apt install libswt-cairo-gtk-4-jni


ssl certificate subject name does not match target name when trying to install heroku on ubuntu 16:04

It's surprising, but I think you had the exact same typo that I had!
The URL, of course, is cli-assets.heroku.com, not cli-assests.heroku.com.

To fix it, you just need to edit (as root) the /etc/apt/sources.list file. Near the bottom you should see the above URL. Remove that pesky extra s in assests, then re-run the command sudo apt-get update.


Virtualization limits for Ubuntu Server 14.04 LTS with KVM

This has been answered here https://serverfault.com/questions/343756/kvm-maximum-number-of-cores-and-amount-of-memory-for-vms

Basically VM core is a process running is a host, so there is no limits. But if you think can you run a process with 2TB in a host with 1TB physical memory, its is possible if you have at least 1TB swap. But it must be very, very slow. So there is no mean to run in a host VM that has more memory than host has. And there is no mean to define more cores to VM than host has.


How to remove the "unmet dependencies error" about cups while installing a package?

I think someone made a mistake packaging the updates.  I filed a bug here:  https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1676621

If it affects you, there is a link at the top "This bug affects you", which will confirm the bug so devs can start looking at it.

Update: The end of that bug suggested this which worked for me:

sudo apt-get install libcups2=2.1.3-4 cups libcupscgi1=2.1.3-4 libcupsimage2=2.1.3-4 libcupsmime1=2.1.3-4 libcupsppdc1=2.1.3-4 cups-core-drivers cups-daemon ghostscript cups-client=2.1.3-4 cups-ppdc cups-filters printer-driver-gutenprint cups-filters


Transmission on Ubuntu Server 15.04 File permissions after download permission denied

I won't pretend to be able to make sense of the thicket of options you have given samba for the external HDD. Suffice it to say that I have a similar setup that works very well with just the following:

path = /...
force user = debian-transmission
read only = No
create mask = 0666
directory mask = 0777
veto files = /lost+found/
browsable = yes
guest ok = Yes

You may want to try that as a starting point, and then add more options as needed.


There's couple things to address:

don't use backticks; $(...) is generally preferred nowadays especially since they handle nested quoting. Not a problem here, but be aware of that
find should be used in conjunction with while loop for complex processing of filenames. While loop also helps imitate C-style for loop, and in fact it's a common notion in programming that you can implement same behavior in either loop.
use -u flag for update, as zip -u zipfile.zip "$current_file", if you're adding to existing zip file

Thus your script is better written as

#!/bin/bash
# using capitals for variable names
# can be confusing and interfere with env
# or shell variables
basedir=/home/tmp
cd "${basedir}"
# You can use variable instead of pwd command
printf "Current working directory:%s\n" "$PWD"

counter=0
# pipelines can be broken to multiple lines
find .  -name '*.jpg' -type f -print0 -mtime +30 |
while IFS= read -r f_name; do
    counter=$((counter+1))
    zip u ${i%.*} "$f_name"
    # This is where you check for number of files processed
    if [ "$counter" -eq 50 ]; then
        break
    fi
done

If that's too verbose and lengthy, we can have a little fun with find and -exec flag, but the problem is that we can't have a shared variable between -exec calls. There fore we can make use of a temp file. We also need to somehow stop find from calling our -exec process over all files greater than limit, so we can kill parent process of the shell specified by $PPID variable.

cd "$basedir"
find -type f -name '*.jpg' -mtime +30  -exec bash -c '
    f=/tmp/zip.counter;
    [ -e "$f" ] && c=$(cat /tmp/zip.counter);
    c=$((c+1));
    [ "$c" -ge 50 ] && kill $(awk "/^Pid:/ {print $2}");
    zip u ${i%.*} "$1";
    echo "$c" > "$f"' sh {} \; && rm /tmp/zip.counter

Of course, this solution is not very practical and arguably less readable than the one with while loop. This bit is just for fun.


Issues with Compiz Config Setting Manager and XFCE 4

I solved it! The file Default.ini in ~/.config/compiz-1/compizconfig was owned by root and not writable by my user account. I changed the permissions for all users and my configs saved again.


External HD mounts to different /media location on every reboot and partialy at that

User interface way to solve, no messing with command line:

Click Activities, search for program "disks", launch
Click on the hard drive
Click the gears under the "volumes image"
Select Edit mount options
Disable "User Session Defaults"
Enable "Mount at system startup"
Enable "Show in user interface"
Enter a value for "mount point" like "mnt/dropbox"
click ok
reboot

Now the disk is always available at mnt/dropbox.


Wifi disconnects every so often with Broadcom BCM4331, even with 13.04.

Download the correct proprietary driver from http://pkgs.org/ubuntu-13.10/ubuntu-restricted-amd64/bcmwl-kernel-source_6.30.223.30+bdcom-0ubuntu3_amd64.deb/download/ by clicking the "Binary Package" link near bottom of page. Ensure the version that you are installing is 6.20.115.1 or 6.30.223.30 (both have worked for me). Version 5.100 will not work. This is a proprietary driver and should improve the network speed and stability compared to using the b43 package which is the best alternative. Even though it does not list bcm4331 as a supported card, the driver works no problem. To install the driver, simply double click the downloaded package and follow normal installation in Ubuntu Software Centre.


Is there a way to make Ubuntu adjust the screen brightness automatically?

I'm afraid I don't have a ready solution for you, but some hints that might you help find one on your own. I haven't tried anything of this, so I can't give any guarantees.

Very probably you can catch the plugging/unplugging events with acpid, which can be configured to run shell scripts on such acpi events. To find out if acpid recognizes plugging/unplugging events, there's a command line tool called "acpi_listen". Run it and plug/unplug your charger to see how the corresponding events are named.

The hard part is to figure how to change display brightness on command line. I don't know if a user-friendly hardware-independent frontend exists, but you should be able to directly turn the knobs in sysfs... Usually there's a file in sysfs that lets you control brightness simply by writing the desired value to it. Take a look at the subfolders of /sys/class/backlight. There's a description of the sysfs backlight interface in the Ubuntu Wiki.

With this information you should be able to write short shell scripts that set brightness. Put them in /etc/acpi and write an EventScript similar to what people did in the acpid article on thinkwiki for other tasks.


Mount SFB ReadyNAS share in Ubuntu 18.04 LTS

And what happens when you take possession of the mounted mount point:

sudo mount -t cifs //ReadyNAS/share /media/ReadyNAS/share -o guest,uid=1000,nounix

uid=1000 should be your user id number. To verify run this command and change it if necessary:

id


CUPS - Print Job is received but not printing

Printer debugging information is here:

https://wiki.ubuntu.com/DebuggingPrintingProblems

If nothing of that helps, then try:

Disconnect the printer physically
Make sure the DEFAULT printer is something else e.g. cups-pdf (PDF in the GUI, sudo apt-get cups-pdf to install).
Remove / Delete the printer driver(s)/setup(s) you have in the GUI
Reboot (to make sure nothing related is still running)
Restore physical connection (this may install the driver automagically)
If 5) didn't happen, install manually
Test

For what it is worth:
I solved the same problem as in the question with the numbered steps above.
I had "unplugged or turned off" shown as I checked with lpstat -d -p in the Terminal.


My problem was that I had tried several vnc servers and one automatically created the ~/.vnc/xstartup  so the default in the bin directory was no longer being used and I didn't know it..


Apart from the solution that was pointed out in the comment, I have another way to do the same thing. It is a modification to one of the solution in the How do I reset a lost administrative password?

Power on your computer
Press ESC on the GRUB prompt.
Press e to edit.
Move your cursor by pressing Down Arrow to kernel... or linux..., then press End
Put a space at the end of the line and add the word single
Press F10 and it will boot to the single user mode
You will be logged into root now, without asking for a password.
Use the command passwd <username> and provide the password of your choice.
Press Ctrl+Alt+Delete to reboot

This will take you to normal OS boot and you can login to your user with the chosen password.


Unable to see files in DVD hidden using windows 7

According to this Article, mounting the CD/DVD wit the unhide option should help:

sudo mount /media/cdrom0/ -o unhide

(check the device name  of your CD/DVD device first)


"Gave up waiting for root device," boot-repair failed

Since I didn't have a lot of important data on this machine, I decided on an experiment - I dual booted Ubuntu 14.04 next to the original install of Ubuntu. Then using Gparted I deleted the original (corrupt) installation of Ubuntu. This 'magically' fixed it. Not really a solution but it's how I solved it.


gpg: [don't know]: invalid packet (ctb=2d)

It was a permission issue :

$ ll -d /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d/*.gpg | head
-rw-r--r-- 1 root root 12335 2019-02-24 11:31:28 /etc/apt/trusted.gpg
drwxr-xr-x 2 root root  4096 2019-02-24 12:00:11 /etc/apt/trusted.gpg.d/
-rw------- 1 root root  1132 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
-rw------- 1 root root   362 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
-rw------- 1 root root   353 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
-rw------- 1 root root   364 2019-02-24 12:00:09 /etc/apt/trusted.gpg.d/centrych-updates.gpg
-rw------- 1 root root  9178 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
-rw------- 1 root root  3780 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
-rw------- 1 root root  2851 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-rw------- 1 root root   357 2019-02-24 12:00:10 /etc/apt/trusted.gpg.d/djcj-hybrid.gpg
$ sudo chmod -v a+r /etc/apt/trusted.gpg.d/*.gpg
mode of ‘/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/centrych-updates.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
mode of ‘/etc/apt/trusted.gpg.d/djcj-hybrid.gpg’ changed from 0600 (rw-------) to 0644 (rw-r--r--)
...
$ apt-key list | grep gpg$
/etc/apt/trusted.gpg
/etc/apt/trusted.gpg.d/andykimpe-gparted.gpg
/etc/apt/trusted.gpg.d/brightbox-ruby-ng.gpg
/etc/apt/trusted.gpg.d/cairo-dock-team-ppa.gpg
/etc/apt/trusted.gpg.d/centrych-updates.gpg
/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
/etc/apt/trusted.gpg.d/djcj-hybrid.gpg
...
$ sudo apt update
...
Fetched 143 kB in 26s (5 487 B/s)
W: GPG error: http://liveusb.info all Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E940D7FDD7FB8CC
W: GPG error: http://kovacsoltvideo.hu ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ADC80AAEABE7778C
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69AD89E0EC179BCC
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FE7385FFAC9B079A
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6D975C4791E7EE5E
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C1CBE14852541CB
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBB4CCF6A72BC110
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 03647209B58A653A
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE362D6D32DE30FB
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC3E0682A5A1D6B2
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 60ED5CE429FFDC52
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 55E2097C08E6D617
W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/trusty/main/binary-i386/Packages  403  Forbidden [IP: 146.112.61.106 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

Then I looped over the missing keys with the command sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key and now it is finally solved.


Let me mention the simple answer that you have probably tried for future seekers. This has worked for me on my last two installs involving broadcom wireless drivers. It does however require a wired connection.

Start up  System > Administration > Hardware Drivers
Let it build the database, then see if there is a Broadcom driver available that just needs to be "activated". If so do it and see if it works.

On previous versions I always got them working using a variety of complex fixes and commands. I've been pleased that the method listed here has worked very well recently.


"A start job is running for /etc/rc.local Compatibility": how to fix?

If you put long-running commands in rc.local, your startup will be delayed. You should send these to the background:

( fstrim -v /; fstrim -v /home ) &

That said, you  probably don't have to do this yourself. Ubuntu 14.10 added a weekly job for fstrim.


Are there any good podcast clients for Ubuntu and alternatives?

Vocal from elementary OS is dedicated to podcasts (http://itsfoss.com/podcast-app-vocal-linux/).

Installation instructions

stable (Ubuntu 14.04 and 15.04):

sudo apt-add-repository ppa:nathandyer/vocal-stable
sudo apt-get update
sudo apt-get install vocal

unstable daily builds (Ubuntu 14.04 and later):

like above but with the PPA ppa:nathandyer/vocal-daily.


You could use a for loop...

test run first to make sure it lists all you need

for i in cloudcam-20130825*; do echo $i; done

move images

for i in cloudcam-20130825; do mv $i 20130825; done


Is it possible to power up ports on a USB hub from Ubuntu?

hub-ctrl will do what you need.

sudo apt-get install libusb-dev
cc -o hub-ctrl hub-ctrl.c -l usb
sudo ./hub-ctrl -v
sudo ./hub-ctrl -P 2 -p 1 # turn on port 2
sudo ./hub-ctrl -P 2 -p 0 # turn off port 2

Disclaimer: although I have tested it on Ubuntu 12.04 (precise), I did not write this utility.  It does require a hub with built in power control, but given that your hub is powering down certain ports it is a good bet your hub has it.


problem solved by changing default file manager,
in terminal run this command:

exo-preferred-applications

and in "Utilities" tab, change file manager.


Renaming large number of image files with bash

One way is to use find with -exec, and the + option. This constructs an argument list, but breaks the list into as many calls as needed to operate on all the files without exceeding the maximum argument list. It is suitable when all arguments will be treated the same. This is the case with rename, though not with mv.

You may need to install Perl rename:

sudo apt install rename

Then you can use, for example:

find . -maxdepth 1 -exec rename -n 's/_HBO_DPM_/_dpm_/' {} +

Remove -n after testing, to actually rename the files.


The boot repair program has successfully been used for these problems.

    sudo add-apt-repository ppa:yannubuntu/boot-repair

    sudo apt-get update

    sudo apt-get install boot-repair

http://www.ubuntugeek.com/boot-repair-simple-tool-to-repair-frequent-boot-problems.html


Computer restarts while downloading Ubuntu

This is probably a problem with your web browser and big file downloads.

I suggest trying the torrent downloads:

13.04 64-bit: http://releases.ubuntu.com/raring/ubuntu-13.04-desktop-amd64.iso.torrent
12.04 64-bit: http://releases.ubuntu.com/quantal/ubuntu-12.10-desktop-amd64.iso.torrent
You can look at all the downloads for  13.04 here: http://releases.ubuntu.com/raring/
And for 12.04 here: http://releases.ubuntu.com/quantal/

I do not know the cause of windows randomly restarting during downloads of big files, but the torrents should work if the regular downloads do not.


How to change proprietary video driver using the command line?

As per this Ubuntu Community Help Wiki Page, Ubuntu 14.04+ is different:

Ubuntu 14.04 and up

The jockey-text command was removed with the release of Ubuntu 14.04. You can now use ubuntu-drivers to get the list of packages for each driver, and then install the packages using apt-get. For example:

sudo ubuntu-drivers devices

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==

vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free recommended
driver   : nvidia-331-updates - distro non-free

sudo apt-get install nvidia-331

Ubuntu 12.04 (same as mikewhatever's answer)

If you need to change drivers without the use of the X GUI, perhaps because those drivers are not installed, you can with the jockey-text command. For example:

jockey-text --help
jockey-text -l
jockey-text -e xorg:nvidia_current


I had to disable secure boot and change to legacy boot instead of efi. After this it read the usb without issues.


Replacement for php-auth and php-auth-http on 18.04 (Bionic Beaver)

php-auth and php-auth-http in ubuntu 14.04 are essentially prepackaged PEAR package. In order to get this installed in Ubuntu 18.04, you need to install php-pear

sudo apt install php-pear

and then install the auth package using

sudo pear install Auth

or

sudo pear install Auth_HTTP

for the Auth_HTTP package


ubuntu/studio 14.04 Brother Printer error

Try this manual http://ubuntuforums.org/showthread.php?t=1854483&page=2&p=11817878#post11817878

It is not man for Brother 2250 dn but should help.


How to execute the first raspberry pi 3 login

Figured it out by accident. apparently the default login doesn't work on TTY0 (the default that the raspberry pi boots with), switching to TTY1 or above and retrying to login solves all problems.


Cannot upgrade from 10.04.4 lucid to next LTS using terminal or synaptic

http://www.omgubuntu.co.uk/2012/04/ubuntu-10-04-12-04-upgrade-how-well-does-it-go

Better use Livecd install it will be faster, go smooth and with no issues, ending with good working OS.


What is compatible Font for both Linux and Windows by their default?

We'll start with two commands to get the available fonts

fc-list : family | sort -u > ubuntu-fonts
wget -qO- $H='Accept-Language: en-us,en;q=0.5' $H='Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' $H='Connection: keep-alive' -U 'Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2' --referer=/ https://www.microsoft.com/typography/Fonts/product.aspx?PID=161 | grep -Po '(?<=FMID=\d{4}">)[^<>]+' | sort -u > windows-fonts

You could probably do something more clever if you were on Windows but I am not so I have to settle for grepping the online documentation.

I'm also running my version of this on a Ubuntu Live DVD.

Anyway we have two sorted files so we can just compare them to see which fonts exist in both files and we get our answer

$ comm -12 ubuntu-fonts windows-fonts
Symbol

So to answer your question: they share one font

But even then, I bet that's just a name clash.

This is obviously a problem for developers and designers. You want everything to look the same everywhere and not having a common base makes that a lot harder. There are a few options:

Rasterise or vectorise your graphics so they're static graphics rather than text. Depending on the situation this might even be faster but it's also usually a lot less accessible. Screen-readers, for example, won't be able to parse them.
If you can, use WebFonts or otherwise bundle the font along with your application. This will need a permissive enough license for the font you want to use so that could be expensive or limiting, depending on the fonts you use. It also uses more bandwidth but that hasn't stopped the web embracing them.
Use similar fonts. There exist lists of near-interchangeable defaults but Graphic Design might be the place to ask.

Which of these best applies really depends on what you're doing... But it's impossible to realistically assume any one font will exist somewhere else.

You should also consider that the same font might not render the same in each situation. For example, there are various antialiasing techniques that make a web page look quite different from platform to platform.

It's really annoying.
All you can do is test try to make things as consistent as possible on any one platform.


May I suggest a safer approach? You never know when swap can save you from crashing. While swapping does indeed slow down your computer, if you use a program that eats up all your RAM, having the ability to swap can save you from a hard reboot. When the computer starts swapping, you'll notice and be able to kill the offending application.

So, instead of disabling swap altogether, just make sure your OS swaps very rarely. This is controlled by the vm.swappiness setting in /etc/sysctl.conf. Ubuntu's default setting is 60 if I remember correctly which is too much for most situations and will cause you to start swapping even while RAM is still available. If you reduce this value, you will be able to keep the safety line of swap while only using it for emergencies. So, open the file:

sudo nano /etc/sysctl.conf

And add this line to it:

vm.swappiness=10

If that is still too much, change the 10 to 1. Now, after you restart, you will only swap when absolutely necessary and you can simply forget about it.


Apt-Daemon problem due to a broken sun-java6-jre package

Here is what I think you should do:

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

I'm not sure but I think this might help...


Sudo is not running Command not found error Login Loop on UBUNTU 19.10

export PATH="/usr/bin:$PATH"

That should do the trick for the session


Ubuntu 15.10 - problem with installing wine

To add that missing key, redownload the keys first:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys

Then type:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0F72778C4676186
sudo apt-get update

Read about public key cryptography and GPG


How to setup a local web server to connect from another machine

I think that this is what are you looking for...

Setup DNS server for local network (with DHCP) for use with apache

Regards


The following helped me to get hdmi audio back (Ubuntu 12.10; Radeon HD 4800):

It is also notable that the open source driver for ATI/AMD (called radeon), has experimental support for HDMI/DisplayPort audio, at least for some cards. It is disabled by default, but you can activate it by adding radeon.audio=1 as a kernel boot parameter \:

Run gksu gedit /etc/default/grub and add the parameter to GRUB_CMDLINE_LINUX_DEFAULT. For example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.audio=1"

Run sudo update-grub.
Reboot.


Your USB to sata dock doesn't support drives > 2 TiB.  You will need to get another one or connect it via sata instead of usb.


Permission denied while running make install

If you are installing an application and used ./configure without the --prefix= option the make install process will install the compiled files in to the predefined paths in your system's file system.

Because you are installing to your system's file system you need special permissions for writing the files, try:

sudo make install

This will elevate your user's permission to root and allow the compiled files to be installed in directories that your user does not have permissions to do so.

You can clearly see that the issue is a permission problem by the error message (cannot create regular file cannot create regular file /usr/local/bin/gtk-server and /usr/local/bin/stop-gtk-server): the user that is trying to install these (in this case you) does not have permissions to  write on those directories.


You have to apply exec permission to the file.  You can do this with:

$ chmod +x start.sh


Java is auto-killed by using a reboot function.

There is no need to run stop. All that command does is tell Java to gracefully (not forced) exit. When the server detects the graceful stop request, it kicks all users and ends the session.

When you press the power button, all processes are at first gracefully terminated, so it is the same as running the stop command.


How do I change a PPA from 11.10 to 11.04?

To change your personal PPAs:

Open Repositories and type the administrator password when asked;
Select the Other Software tab;
Select the PPA you want to edit and hit the Edit button;
In the Distribution field, just change the text oneiric to natty.

Be careful and remember, this operation may break things.


Why do Back In Time snapshots appear to be so large?

It seems that checking properties under context menu is not reliable in such cases. When I used du command it showed right usage. I could get this suggestion from Launchpad's 'Back in Time's' Mr. Dan.

This is because backintime uses hard links, where each file is stored once, but makes it look like each copy takes up additional room. For more details please refer to https://answers.launchpad.net/backintime/+question/146072.


Cannot Adjust Brightness using Gallium Graphics Card

I'm in same situation, and I have tried a lot of things, even edited grub file with different attempts, but not have worked too. I found a way here in AskUbuntu. I don't know if you already resolved that, so:

My kernel: 4.10
Computer: Avell Titanium
Processor: intel i7
Graphics: Gallium 0.4 on llvmpipe (LLVM 4.0, 256 bits)

The only thing that really works for me was change to the NVidia proprietary drivers in: System Settings -> Software & Updates -> Additional Drivers.

  Thanks to dobey in https://askubuntu.com/a/787057/682972


How do I play an MP3 or WAV through the computer's internal speaker?

The internal speaker typically cannot do anything but beep. It's not usually connected to any sound hardware.

http://en.wikipedia.org/wiki/PC_speaker


How can I transfer files between two Ubuntu computers on a LAN without installing additional software?

You can move to a given directory with cd, then serve the current directory as a web server with the command:

python -m SimpleHTTPServer

On the other machine go to the address http://server-ip:8000/

where "server-ip" is what you see when you do "ifconfig" on the source computer, under "inet addr:". For example, if the output of ifconfig on the source computer starts like this:

eth0      Link encap:Ethernet  HWaddr 00:30:67:d5:a7:a4
          inet addr:10.0.0.3  Bcast:10.0.0.255  Mask:255.255.255.0
          ...

then on the target computer, you should point the browser to:

 http://10.0.0.3:8000/


Windows move to external monitor when re-opening lid

This exact same thing is happening to me on Ubuntu 12.10, every time I close my laptop.

One work around is to apt-get install compizconfig-settings-manager, run ccsm from the command line, enable Window Management -> Put and configure a keyboard shortcut for put_next_output_key. That way as soon as you open your laptop you can move the window back to its original position.

This will also re-size the window from a large screen to a smaller screen which avoids another bug in Ubuntu 12.04 and 12.10 of not being able to drag and snap a window of a larger height to a monitor that is a smaller height


You can check the dependencies of skype with apt-cache showpkg skype.
If telepathyisn`t listed there you can remove it.
If something stops working just install it again, no need to save anything.


Preventing Wine from disabling my second monitor

I run things in a Desktop mode. It's essentially a window that Wine is constrained to. You can do this on an application-by-application basis or you can do it for everything.
The nice thing about both approaches is that if the resolution is equal to the resolution of a screen, it's displayed in fullscreen mode (without decorations, above panels, etc) so it appears to take over a whole screen, without bodging around the actual display settings.
Just one application
Change your launcher to something like this:
wine explorer /desktop=LIMBO,1920x1200 "C:\Program Files\LIMBO\LIMBO.exe"

In the /desktop=LIMBO,1920x1200 part, LIMBO is just the title for the window and 1920x1200 is the resolution.
For everything in a Wine prefix
Run winecfg and go to the Graphics tab. Check the "Emulate a virtual desktop" and enter a resolution. From now on when you run something in that prefix, it'll load in a virtual desktop.

I personally use a mix. My default Wine prefix doesn't force it all the time but there are some single applications I run through explorer /desktop.... Other things (like PlayOnLinux bottles) are just easier to configure with winecfg.


Touchpad scroll not working on Acer Aspire One

May be you are experiencing, this bug:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/549727

Try this open a terminal by pressing ctrl+alt+t then type:

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

Then if it works please create a file "/etc/modprobe.d/touchpad.conf" and put "options psmouse proto=imps" in it, so, type:

gksudo gedit /etc/modprobe.d/touchpad.conf

put the row:

options psmouse proto=imps

into the file, save and close, then reboot to test if it works...


you may have to disable lightdm or gdm, then with logind alone weston would start it from tty

weston does not have an autostart feature although you may find an outdated patch online

you could add [launcher]s to the panel for your applications though

anything else would be started from your terminal emulator

weston.ini man page


Problem wired connection ubuntu LTS 14.04

I spent a lot of time on LTS 14.04 and often had similar issues with both wireless and wired.  The following always worked for me, where I was using Network Manager at the time...

sudo service network-manager restart

If you're not using Network Manager, then simply try

sudo service networking restart


WARNING: You don't have  in your PATH, gem executables will not run

PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"

source: https://wiki.archlinux.org/index.php/ruby#Setup


How to undo or set back to default chmod -R 755?

All of what you have is just change ownership  of that directory back to your user.

sudo chown -R username:username /home/deepak/php/

So in your caser username=deep

sudo chown -R deep:deep /home/deepak/php/

And for the command2

sudo chmod -R 755 /home/deepak/php/

this permission will be just fine for your now, but you probably change some permissions later if you face some problems


What are some commercial apps for Ubuntu?

The Humble Indie Bundle is a commercial collection of games that was sold as "pay what you want". The games are available for puchase independently now.


Turns out I was being dense. A correct Googling and I found my answer on the Ubuntu Wiki. All I need to run is:

zsync http://cdimage.ubuntu.com/daily-live/current/oneiric-desktop-amd64.iso.zsync

I should point out that my previously-downloaded ISO is in the same path as this.

It downloaded the zsync file, checked it against my ISO and updated it to the latest version, 162MB spent. Bargain.


Keyboard shortcuts not working after removing Shutter

Open gconf-editor and change the following keys back to this:

/apps/metacity/keybinding_commands/command_screenshot => /usr/bin/gnome-screenshot

/apps/metacity/keybinding_commands/command_window_screenshot => /usr/bin/gnome-screenshot --window

If you don't have gconf-editor  yet just install it from the software center.

How do I use the gconf editor?


php -v command doesn't show correct version on ubuntu 17.10

I understand that you have php-7.2 on your system, and would like to have php-7.0 instead.

I assume that in order to install php 7.2 on Ubuntu 17.10 you followed a link similar to this one, and execute the following commands:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.2

The php7.2 you installed is part of a ppa

One way to remove ppa package is by using ppa-purge , e.g.:

Install ppa-purge

sudo apt-get install ppa-purge

Use ppa-purge in order to remove the package:

sudo ppa-purge ppa:ondrej/php-7.2

After you'll remove php-7.2 you can install php-7.0

  More info can be found here


Where are shell/terminal settings stored?

GNOME Terminal profiles are stored in: ~/.gconf/apps/gnome-terminal/profiles.

(You might want to back up the whole .gconf directory, though.)


You forgot to quote the password in the query and you assigned non-existing QUERY1 variable to SQL. This should work:

QUERY="GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost' IDENTIFIED BY '$PASSWORD';"
mysql -uroot -p$PASSWORD -hlocalhost -e "$QUERY"


Added GNOME PPAs but not receiving the update?

It seems that you have added these PPAs blindly.
Visit their pages and select Bionic from drop down and you will get:

ppa:gnome3-team/gnome3-staging

  Package                         Version                              Uploaded by
  fonts-cantarell     0.101-1~ubuntu18.04.1       Jeremy Bicha (2018-03-15)

ppa:gnome3-team/gnome3

  Package                         Version                                                                                Uploaded by
   gnome-photos    3.27.92-1~ubuntu18.04.1 (Newer version available)     Jeremy Bicha (2018-03-17)

Newer version available link above points to unstable version not for Bionic.

So there are no new packages for Ubuntu 18.04 LTS in these PPAs.


Eclipse stays in waiting to install state in the software Center

Try This

sudo lsof /var/lib/dpkg/lock

'lock' is a file. Whenever package is being installed from terminal or package managers like Ubuntu software center, this file is being used for locking so that no one else can install another package concurrently. Whenever you try to install package concurrently, it tells you another package manager is using this file.So with lsof command it list contents being downloaded or used by package manager.

From there I identified the PID of the process causing my dpkg to lock. Then I did

sudo kill -TERM <PID>

So you get  of downloading process and you     kill it.

Next, I did a

 sudo dpkg --configure -a

and waited for the result... after that i did a regular.This configures (--configure) all the packages (-a) which are yet unpacked and unconfigured, using dpkg.)

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

sudo apt-get update synchronizes your list of available packages with the servers in source repositories.
sudo apt-get upgrade then downloads & installs any newer versions of your installed progs.


I had the same problem. After reading this: https://bbs.archlinux.org/viewtopic.php?id=194875, I noted that I had a ~/.config/konsolerc.lock file. After removing it, konsole works perfectly.


Enabling OpenLdap authentication in ubuntu 18.04

Are you experiencing any particular error when you run the getent passwd command or try to login with an ldap user login? At this point with all of the edits that you have made to your configurarion, if you have followed each of those tutorials, you might be better off starting over again with setting up the client-side configuration fresh. I did notice that one of the tutorials that you listed has the ldapi uri format as ldapi:///domain when it most likely should be more like ldapi://domain:389/ In my case I have had success using ldap://domainOrIP:389/ as the format for the URI. Also the default client-side configuration will point to cn=manager dn=example dn=net. It may be easy to overlook an inconsistency such as if your domain for your openldap server is dn=com or cn=admin. To start over fresh with your client configuration you could run something like sudo apt -y remove --purge libnss-ldap libpam-ldap ldap-utils Then reinstall and begin with a fresh configuration by running sudo apt -y install libnss-ldap libpam-ldap ldap-utils in the terminal. The computing for geeks instructions seemed similar to my process for setting up the client-side configuration, but you are welcome to try out my instructions.
https://tux-techie.com/2020/10/13/configuring-ubuntu-linux-to-authenticate-to-an-ldap-server/
I hope something there is helpful. Keep us posted on your progress.


Creating a virtual display on Ubuntu Server

After more searching, I found an issue that reports that the wkhtmltopdf version included in Ubuntu has a version of qt that doesn't work in "headless" mode out of the box. By installing the latest version from GitHub, I was able to get a version that does work headless:

$ wkhtmltopdf --version
wkhtmltopdf 0.12.5 (with patched qt)

Apparently compiling from source can also have the same desired effect, or running it with xvfb-run (not possible without changing the code I'm importing that calls wkhtmltopdf).


Try smbclient -L ip_of_net_interface -U your_user_name. This option allows you to look at what services are available on a server. You use it as smbclient -L host and a list should appear.


Disk Encryption failed and re-install won't work

No bootable device means you do not have grub installed, not the distro. Just remember on clicking on of the /dev/sda partitions and the one in /dev/sdb as the partition for grub and all will be ok.


Why is kubuntu adding a .directoy file to my directories?

Dolphine uses these .directory files to know how to present a directory show previews, hidden files, etc. So delete the one in the gem directory

You can change this behaviour by doing this:

go to settings and select general

then

enable "Use common properties for all folders"

Hope this helps.


Do you have Dynamic DNS set up? Your network is private unless you have a business connection. Even then, you must usually set up port forwarding on your business' router.

I would actually going to Digital Ocean or another VPS provider and doing that instead. You'll have a much easier time, and I've seen some (not DO) providers with $3 USD a month for a small server.


How do I install wpa-supplicant on an offline server?

You can doownload most/all packages from the main Ubuntu repositories from http://packages.ubuntu.com. You can search for it from this page, find it from here, and download it from one of these pages:

32bit: http://packages.ubuntu.com/trusty/i386/wpasupplicant/download
64bit: http://packages.ubuntu.com/trusty/amd64/wpasupplicant/download

The problem here is that some packages it needs may to be downloaded as well - you can test that by trying to install it, and seeing if it exits with any errors.

Another way of doing it would be to run apt-get install --print-uris wpasupplicant[1] on the server, and downloading it with the machine that has internet access, and transferring the deb file(s). This will likely be better as it will list other packages it needs as dependencies.

For example, it might give on a Ubuntu 14.04 64bit machine http://gb.archive.ubuntu.com/ubuntu/pool/main/w/wpa/wpasupplicant_2.1-0ubuntu1_amd64.deb.

Once you have managed to get the needed deb files, you can install it with dpkg -i /PATH/TO/FILE(S).deb.

1: this will likely only work if the machine has had access to the internet to update the package lists - the print-uris just tells it to print what was going to download instead of downloading it


You have a couple options, the perform the same basic function but there are some subtle differences. First you have M-term. This is a full fledged shell inside of an Emacs frame and responds the same as a terminal window and runs in it's own buffer. The issues I have with this is that you cannot switch buffers while the terminal is active, you must exit before changing buffers or performing any other common emacs tasks.

Your other option is M-eshell. This is a seemingly mor lightweight option that runs on top of your current buffer and allows you to switch buffers and execute Emacs commands from the mini-buffer while using eshell.

You might want to read over this emacswiki page, has lots of good info on the topic.


how install libgstreamer0.10-plugins-bad on ubuntu 16.04

You could install ubuntu-restricted-extras package:

sudo apt-get install ubuntu-restricted-extras


Right Clicking the Menu and choosing the "Edit Menus" option runs the application called "alacarte"

You can run the application from the terminal window

i.e.

alacarte

The advantage of running the application this way, is that any errors during the startup of the application will be reported to you and possibly this could guide you on how to diagnose the issue.


" create custom URLs on LAN " - just create a shared HTML page  with 2 links:
 searchme
 checkmail

Which are links to websites and PC on LAN can make it their home page. That would be simple way to do it.


asynchronous logging via rsyslogd(8) and write buffer increase

As far as I remember the default mode for the main message queue in rsyslog is fixed size array. It has a limit for 10k elements or so. Try to change this to linked list queue it should  handle your occasional message bursts much better.

Yes, there are FixedArray and LinkedList queues.


How can I change my Desktop Look Ubuntu 18.04?

You need to install a GNOME shell extension called "Dash to Panel" first. Then you'll have to set the position of the panel to "bottom".

(screenshot source)


On the drive, look for a file with the name casper-rw or a partition with the label casper-rw. That is where persistence is stored for persistent live Ubuntu drives.


No option to boot Ubuntu after Windows 10 update in dual boot

You can probably boot to an Ubuntu live disk/USB and run Boot Repair to restore your GRUB bootloader, thus, hopefully fixing your Windows or Ubuntu choice on boot.


How to edit the right click menu in Gnome

It looks like the colour scheme of your desktop environment is “off”.

(Re-)setting the GTK colour scheme

One possible cause is that gnome-settings-manager misbehaves or crashed. That can often be fixed by logging out of your account and logging in again.
Another possibility is that the colour settings themselves are somehow corrupted and you need to reset them through the system settings manager display options. Maybe try other colour schemes for comparison. You may need to log out and back in for it to take effect.
Similar to the previous solution, you can try select other colour schemes with gnome-tweak-tool, if that's still around in 14.04.

Fixing a broken GTK theme

The default theme for the Gnome Shell in Ubuntu 14.04 is Adwaita. You can reinstall ist with:

sudo apt-get install --reinstall gnome-themes-standard\*

Reload the current theme with Alt+F2, enter r and press ENTER.


check-new-release process eating up resources on Ubuntu server 13.04

Try doing

apt-get remove ubuntu-release-upgrader-core

The script that you're seeing running is /usr/lib/ubuntu-release-upgrader/check-new-release, and removing the above package will remove that script completely.

A description of this package is:

ubuntu-release-upgrader-core - manage release upgrades


Change screen brightness automatically on AC connection/disconnection

Since Gnome 3 there is no way to specify a different backlight level for battery and AC - there is only one level with idle dimming enabled after a set period on battery. I can't see any good reason for making this over-simplification, as every other OS and major desktop environment supports it. I came up with my own script to perform the function of setting the brightness when a/c is connected/disconnected. Modify the script with you home directory and desired brightness levels, and save as /etc/pm/power.d/00-brightness (also add executable permissions using chmod 755 /etc/pm/power.d/00-brightness)

export DISPLAY=:0
user=chris
bat_bright=50
ac_bright=90

. /home/$user/.dbus/session-bus/*

case $1 in
    true)
    echo "Enable screen power saving"
sudo -u $user -g $user dbus-send --session --print-reply  --dest="org.gnome.SettingsDaemon" \
    /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage uint32:$bat_bright
    ;;
    false)
    echo "Disable screen power saving"
sudo -u $user -g $user dbus-send --session --print-reply  --dest="org.gnome.SettingsDaemon" \
    /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage uint32:$ac_bright
    ;;
esac


Mongo Driver PHP - Can't install [sasl.h not found!]

the error message you got:

configure: error: sasl.h not found!

should be solveable by:

sudo apt-get install libsasl2-dev

for CentOS:

yum install cyrus-sasl-devel

Source:

https://stackoverflow.com/questions/22102326/install-pecl-memcached-error


"Desktop effects could not be enabled" in VMware

Vmware player doesn't support OpenGL on Linux yet, according to How to enable 3D in VMware Player? You could try the lastest VirtualBox instead.


I just used gparted from http://gparted.org/
and deleted all the partitions

there was the second drive that was locked because it uses lvm2
So i used lvscan to check all the volumes on it and then used lvremove to remove all the volumes, then i was able to delete it as well, before using lvremove the partition was locked and i could not delete

So have 2 fresh hard drives back again


My K570UD laptop does not have asus::kbdbacklight!

I just get my laptop to Asus Services and they fixed it
the backlight wasn't working even in windows 10 with ATKDriver
After that it works like charm....


Fresh Server 14.04 install: "Unable to locate package (xyz)" for everything; How do I edit sources.list?

For the moment, use this as your sources.list:

deb http://[cc].archive.ubuntu.com/ubuntu/ trusty main multiverse universe restricted
deb http://[cc].archive.ubuntu.com/ubuntu/ trusty-updates main multiverse universe restricted
deb http://[cc].archive.ubuntu.com/ubuntu/ trusty-security main multiverse universe restricted

Replace [cc] with your country code (such as us for the US, fr for France, in for India). And remove the channels you don't need (one or more of multiverse, universe, restricted).


I'm stuck trying to configure a SSL reverse proxy with apache

You already realized yourself that there is no support for encrypted private keys. If you insist on using encrypted private keys you are lost. If it is acceptable to provide the private key in plain do this. To convert the encrypted private key into a plain key use (for RSA keys)
  openssl rsa -in encrypted_key.pem -out decrypted_key.pem


How do I establish 'wireless internet connection sharing' via ethernet to Raspberry pi

This question sounds almost identical: Share wireless Internet connection through ethernet

Here's whatchya gotta do: (thanks @SuperMau):

In the server computer:

1. On the computer connected to the Internet, click the network icon in the panel and go to "Edit Connections..." at the bottom of the menu.

2. Double click your Wired Connection (Leave your wireless connection untouched, the one connected to Internet and the one you want to share, as I understand)

3. In the "IPv4 Settings tab", select Method: "Shared to other computers"

4. Reconnect clicking on the Wired Network so it gets its new IP address. (The two computers must be connected by an ethernet cable for this step, so connect them now if you have not already.)

5. Click on "Connection Information" in the network menu and write down the IP address and network mask (in my case it was assigned 10.42.0.1/255.255.255.0 but I do not know if that will always be the case)

In the client computer:

6. Go to "Edit Connections..." and assign a "Manual" Method. Assign an IP assress in the same subnetwork (10.42.0.69 for example) and put the IP and network mask you wrote down in "Netmask" "Gateway" and "DNS servers"

7. Reconnect to the network to let the new settings be assigned.

8. Pat yourself in the back and surf away!!!


Try installing the latest release from the official PPA:

sudo apt-add-repository ppa:flimm/ooo-thumbnailer
sudo apt-get update
sudo apt-get install ooo-thumbnailer

The new release will only work with some Microsoft Office files, but it should work with all LibreOffice and OpenOffice.org files. Give it a go and let me know if it works.


What .desktop file options are available?

http://standards.freedesktop.org/desktop-entry-spec/latest/index.html#introduction

This page has some sort of specs for .desktop files.


You could mount it permanently and it would just look like another drive.

Or when you use the "Connect to server" dialogue, just tick the bookmark checkbox and you gain a shortcut to it in your places. Clicking this when it's not mounted will get it to mount.


Is it possible to add the Ubuntu Software Center to sources.list?

You just have to find out which name the application you want to install has. There is no PPA.

When you click on an application in the USC, you just can scroll down and see the package name.

(look under version)


Thunderbird won't remember that I've turned off Global Search and Indexing

I assume you've covered all the bases, but why are you so sure it's still using Global Indexing? By the way, disabling that option only disables the indexing and not the search as a whole.


Ubuntu desktop not responsive programs take ages to launch when clicked. Aspire One Happy notebook

For notebook like this i don't recommend Wubi. If you install Ubuntu with Wubi there is huge performance drop. I recommend installing native Ubuntu(Not with Wubi).


For Others who may share in this issue, I finally came across a solution:

First, open the terminal (CTRL+ALT+T)

Open the alsamixer using the command:

      alsamixer

A basic GUI will open. Press the F5 Key to expand the menu to include all options

Scroll rightward until you are hovering over the option titled HP/Speaker Auto-Detect

Press M to turn the feature to On

Press the ESC key to close the menu

Exit the terminal window


try:

cd /home

Note the lower case h - Linux is case sensitive


I accidentally removed Python from Ubuntu, graphical interface gone

I reinstalled Ubuntu. It is a faster option


Getting 'Permission Denied' when running bundler command

Without sudo you don't have the necessary permissions, so add the executable bit for the group and others:

sudo chmod +x /usr/local/bin/bundle


Just downloaded the MySQL connector from the Oracle website and replaced the libmyodbc.so and libodbcmyS.so with libmysql5a.so and libmysql5S.so and now everything works.


How to open Evince hyperlinks in default browser?

The following commands now work, allowing the default browser to be changed without even needing to restart Evince:

xdg-settings set default-web-browser firefox.desktop
xdg-settings set default-web-browser chromium-browser.desktop

I'm not sure why these did not work when I originally asked the question; I can only imagine that some factor was reset by restarting the system during my testing.


Running Ubuntu 14.04 and recently can't download from software center

That usually happens when you have PPAs installed. PPAs are technically not supported by Ubuntu so the best thing to do would be to remove the PPAs by using the Software & Updates app.

If you want to keep your PPAs, you can uncheck all the PPAs and then reenable them one by one (using the app I mentioned), using sudo apt update ; sudo apt upgrade each time to find out which one is causing the issue. Then I would recommend using the Remove button to remove that PPA fully and then use sudo add-apt-repository (the ppa) to readd it. If the faulty PPA still isn't working then remove it and don't use it.

You should be able to just ignore the authentication issue entirely by using sudo apt upgrade and then y to carry on installing even though you don't have full authentication for the packages. This isn't particularly recommended(!) I would try the process above first.


Created .desktop launcher is not working in Ubuntu 19.04

You need to create a bash script for the command you want to run and the point the Exec= entry to the script.

First create a simple script, i.e. a text file, say a file named myscript in your Documents folder with the following text

#!/bin/bash
cd ~/todoist-linux-1.17 && make up

and make it executable. Then modify your .desktop launcher and for the Exec entry use the following

Exec=/home/YOUR-USERNAME/Documents/myscript

(you need to use absolute paths in the .desktop file).


Can Google Music Manager be launched at startup?

The answer depends on the desktop environment you are using.

Unity

In the dash, search for "Startup Applications"

Gnome

System -> Preferences -> Startup Applications

XFCE

Menu -> Settings Manager -> System | Session and Startup -> Application Autostart


Ubuntu 10.04 will not respond to keyboard entry of apache ssl passphrase

I've just come out of such a scenario and what's worse, it took place on a virtual (ESXi 4) client facing server. Here's what I did to get things back up and running for those of you with similar problems.  I didn't find much on the net about this so I hope this helps.

First, I popped in and booted from a live CD.  From the terminal, I listed all available drives.

sudo fdisk -l

After identifying the correct hard disk - in this case sda1, I mounted it.

sudo mkdir /mnt/drive1
sudo mount /dev/sda1 /mnt/drive1

At this point, I dug into apache's configs and I figured the quickest/best thing to do would be to turn the SSL engine off temporarily.

sudo vim /etc/apache2/sites-available/default-ssl

Your config may be different.  In the past, I've seen this line in other files such as apache.conf and ports.conf.  Look for the section below, and change 'on' to 'off'.

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine off

After saving, ejecting the disc and restarting, I was able to get back onto the server.  I repeated the above step to turn SSL back on.

This is a confirmed bug that has been resolved.  Solution would be to upgrade apache to at least version 2.2.16-4 according to this bug report.


How to check that KPTI is enabled on my Ubuntu?

Grepping CONFIG_PAGE_TABLE_ISOLATION in kernel config as Raniz's suggested does not help on desktop Ubuntu, but may help on cloud instances:

grep CONFIG_PAGE_TABLE_ISOLATION=y /boot/config-`uname -r` && \
echo "patched :)" || echo "unpatched :("

You can check with /proc/cpuinfo as JonasCz suggested:

grep -q "cpu_insecure\|cpu_meltdown\|kaiser" /proc/cpuinfo && echo "patched :)" \
|| echo "unpatched :("

Or from dmesg (thanks to Jason Creighton):

dmesg | grep -q "Kernel/User page tables isolation: enabled" \
&& echo "patched :)" || echo "unpatched :("

You can compile test program from Raphael Carvalho for Meltdown detection:

sudo apt-get install git build-essential
cd /tmp
git clone https://github.com/raphaelsc/Am-I-affected-by-Meltdown.git
cd Am-I-affected-by-Meltdown
make
sudo sh -c "echo 0  > /proc/sys/kernel/kptr_restrict"
./meltdown-checker

on patched system it should end with output

...
so far so good (i.e. meltdown safe) ...

System not affected (take it with a grain of salt though as false negative
may be reported for specific environments; Please consider running it once again).

Check with tool from https://github.com/speed47/spectre-meltdown-checker:

cd /tmp
wget https://raw.githubusercontent.com/speed47/spectre-meltdown-checker/master/spectre-meltdown-checker.sh
sudo sh /tmp/spectre-meltdown-checker.sh

On patched system it should show the following:

Spectre and Meltdown mitigation detection tool v0.27

Checking for vulnerabilities against live running kernel Linux 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64
...
CVE-2017-5754 [rogue data cache load] aka 'Meltdown' aka 'Variant 3'
* Kernel supports Page Table Isolation (PTI):  YES
* PTI enabled and active:  YES
> STATUS:  NOT VULNERABLE  (PTI mitigates the vulnerability)

Do not install 4.4.0-108-generic on Xenial! It breaks boot/reboot/shutdown/suspend functionality!

Install 4.4.0-109-generic (see USN-3522-3 for details)!

As Robie Basak already wrote, there is a page about Spectre and Meltdown vulnerabilities status in Ubuntu.

Also there are:

Ubuntu Security bulletin for CVE-2017-5715
Ubuntu Security bulletin for CVE-2017-5753
Ubuntu Security bulletin for CVE-2017-5754


Ubuntu 18.04 - Lenovo Thinkpad Carbon sound card not recognized since firmware update

Edit /etc/default/grub as root and add the next kernel parameter:

GRUB_CMDLINE_LINUX="snd_hda_intel.dmic_detect=0"

Save and then execute in terminal:

sudo update-grub

And restart...

The latest kernel update (5.3.0-42), while trying to fix things end up breaking them... This should fix it up again....

Ubuntu 18.04 audio disappeared after update