Can I remove Windows Vista from my notebook and only install Ubuntu?

It is clear from all of the above that you do not need windows to run Ubuntu.
If you are happy to run only Ubuntu here is what I would do.

Back up any data/music/pictures you want either on a cd/pen drive/on the cloud

Note any passwords for sites you use and store on a pen drive if possible

Back up your emails and favourites from firefox/chrome etc

Download latest version of Ubuntu from
Ubuntu

Test it works on your pc first if it is a newer version!

Select install Ubuntu

Select using Install using entire disk on the Allocate Drive Space page although yours will show windows and may be Ubuntu. Select the use entire disk

Once installed run some updates in your terminal to get it up to date..(you can also follow my reinstall guide I did here to sort other stuff out here I have to reinstall/install ubuntu so have a guide to remember

Stick your backed up data pictures and music back in and start enjoying your Ubuntu and forget about Windows :)


Add the following line in your .htaccess

<IfModule mime_module>

AddType text/plain .(your folder extension)

</IfModule>

Restart apache and try .

Reply


Keyboard shortcut for 'add 1 to URL' in firefox

Found a workaround which isn't a direct solution but does solve my problem:

This firefox addon allows you to use ctrl+1 ctrl+2 etc for hotkey bookmarks. Can change ctrl to alt or whatever but not the 1-9. Does the job.


How to tell if battery is dead using Ubuntu

The battery is certainly dead. Now, it could be dead because the charging circuit in the laptop is toast, but that's pretty rare IMHO.


I can see /bin/bash folder but why the command throws error

After searching for a while, it turns out the issue is caused by the writing the script in Windows env and trying to run it in Linux env.
A super easy way to make it work is to use dos2unix (it can be easily installed by sudo apt install dos2unix)
cd into the folder where you have the code, then
dos2unit *.sh
then run the ./install.sh


Failing to upgrade Ubuntu or run updates from the command line, apt-get giving 404s

Try doing apt-get update first. Without that, it can try downloading files which are no longer current.

Also - as natty is no longer current version - update /etc/apt/sources.list with new repo location, it should be in old-releases.ubuntu.com, instead of archive.ubuntu.com. (and run apt-get update after that).

See here: http://ubuntuforums.org/showthread.php?t=2150989 for details.


Pin Python minor version in Ubuntu 18.04.4 LTS

Instead of pinning the version, I'd strongly suggest to fix your program.

Python uses semantic versioning, that means an updated number in the 3rd position as in 3.6.8 to 3.6.9 is only a minor update or in other words a bug fix.

Fixing your problem should not be a big problem. I am happy to offer my help.

If you really need 3.6.8, you should probably download the source and compile it.


Are existing updates available after end of support?

From memory, the repositories for end-of-life releases are moved within weeks of the EOL date.

To clarify - they are moved, not removed.  EOL release repositories are available at http://old-releases.ubuntu.com

End-of-support means that Canonical will no longer actively push out updates and security patches.  You will be responsible to do this yourself - probably through downloading sources yourself, compiling and installing.

As time goes by, though, you will find that the usual source of newer software - PPAs, will tend to dry up as the maintainers move onto newer versions of ubuntu.

Moving the repositories doesn't mean that you will be unable to install software - you will just need to repoint your sources to the old-releases area:

Edit /etc/apt/sources.list and change 'archive.ubuntu.com' to 'old-releases.ubuntu.com'

You can do this with sed

sudo sed -i -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

then update with

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

Thus - synaptic/software-center etc will still work correctly.


No audio in alarm or timer with Clocks Ubuntu 20.04

I have managed to look into this further and think I can answer my own question now. There is a current bug report for this problem:
https://bugs.launchpad.net/ubuntu/+source/gnome-clocks/+bug/1878361
It seems to have been due to an update on a  dependency called vala, and this appears to have been fixed, so hopefully a functioning version will be released in an update soon.


Is $PATH in WSL supposed to be very long?

The comments are barely readable, but that looks like your Windows %PATH% has been appended to the Linux $PATH. And that is probably the case. See WSL interoperability with Windows:

  To make Windows executables easier to run, Windows path is included in
  the Linux $PATH in Fall Creators Update.

This feature can apparently be disabled using the Windows registry, if it's not needed.


unstripped binary or object creating debian package

Use objcopy or strip from binutils to strip debug symbols from the binaries that you are building. I would, however, suggest that you either keep an unstripped copy of the binaries or - in case of using objcopy - simply split off the debug symbols into a separate file that can later be used with a debugger.

Often the *-devel packages come with symbols of the corresponding * package, by the way. So you may want to consider creating one of those in addition, if this is something you release to the general public.

For strip a common use is to only strip the debugging symbols:

strip -S -o [stripped-file] [input-file]

The switch corresponding to strip -S for is objcopy -g or simply use the long form that works for both (but not on all platforms on which I had to use strip): --strip-debug.

For the described use of splitting the debug symbols using objcopy, check out the option --only-keep-debug in man objcopy.


Something resets my FireFox PAC file setting

It was because of ZenMate extension in my FF. Even I switched it off from browser's toolbar it still interfere with this setting. I bypassed this problem by disabling ZenMate extension in FF settings.


Ubuntu 18.04.2 LTS problems after automatic suspend, vast file of errors on screen no functions

From documents

  Some computers have problems with hardware support which mean that they may not be able to suspend properly. It is a good idea to test suspend on your computer to see if it does work before relying on it.

So you can disable suspend fro Settings > power:

EDITED

Changed the display manager from gdm3 to lightdm. Command:

sudo apt install lightdm

if lightdm is already installed. Command:

sudo dpkg-reconfigure lightdm

A screen appears in the terminal.
Follow the instructions, select lightdm.

Reboot


As the duplicate candidate ('\r' added end of the script command) states you need to remove the \r Windows added to the end of each line with:

sed -i 's/\r//g' script.sh

You should not be using dd (data duplicator) to create a .tar (tape archive) file.

Instead of using this:

dd if=plex.bin of=plex.tar.gz bs=200 skip=1; sync

Use this instead:

tar -cvpzf plex.tar.gz plex.bin            # create .tar & add file


Only some Chinese characters properly displayed in my Xubuntu 18.04 system

You have to use a font which can show all the unicode characters. I suggest you install HanaMinA.

你的問題是 mousepad 沒有選用能顯示罕用中文的字型。如果你的 Linux 系統已有此類字型，mousepad 就要選用它們。若無，請安裝「花園明朝體 HanaMinA 和 HanaMinB」。


After switching mouse buttons is with xinput, each computer restart resets the settings

This should work to make it stick after log in:
Add the following command to startup Applications:
/bin/bash -c "sleep 15 && xinput set-button-map 11 3 2 1"

Open Dash > Startup Applications > Add, then add the command above.
Explanation
Adding a command to Startup Applications makes the command run on log in, so this will work from the moment you are logged in.
The sleep 15 is to make sure the desktop is fully loaded before the command runs. If you leave it out, the command either breaks, misses target or is overruled by possible local procedures, setting other values. This goes specifically for mouse, keyboard and screen (xrandr) related commands.


Messed up gcc/build-essential - how to revert?

build-essential is a meta package, so I'm not surprised that purging it has no effect.

Some options for rebuilding:

apt-get install --reinstall gcc g++ Not guaranteed to succeed--if this doesn't help, try option 2
apt-get purge gcc g++ && apt-get install gcc g++ This should succeed, but will likely take a large number of development packages with it. You can backup installed packages with the dpkg --get-selections trick
(Nuclear option) Backup your installed package list with dpkg --get-selections and reinstall Ubuntu

Good luck!


OpenVPN connection with pre-shared key RAND_bytes() failed

The problem was related to a chroot environment, which network-manager/openvpn is setting up for me. The environment needs a /dev/urandom, which was not present for me.
Based on this, I was able to fix the problem as following:

cd /var/lib/openvpn/chroot
sudo mkdir dev
cd dev
sudo mknod random c 1 8
sudo mknod urandom c 1 9

Then, the connection should be successful again.

Answering my own question here in case anyone else has this problem


Synaptics Touchpad going cray ubuntu 16.04

My touchpad don't respond after after I did a recent update for my 14.04. Did some search on internet and found this fix, may be you can try.
Go to TERMINAL and type this command:

sudo apt-get install xserver-xorg-input-synaptics
sudo reboot

this fix is taken from the forum(much more similar to your case): Here


Installing the golang metapackage should be enough:

sudo apt-get install golang

"This package is a metapackage that, when installed, guarantees that (most of) a full Go development environment is installed." So, after that all you need is type go help for basic commands:

Go is a tool for managing Go source code.

Usage:

go command [arguments]

The commands are:

build       compile packages and dependencies
clean       remove object files
env         print Go environment information
fix         run go tool fix on packages
fmt         run gofmt on package sources
get         download and install packages and dependencies
install     compile and install packages and dependencies
list        list packages
run         compile and run Go program
test        test packages
tool        run specified go tool
version     print Go version
vet         run go tool vet on packages

Make a hello world in gedit. Example from their website:

package main

import "fmt"

func main() {
    fmt.Println("Hello world\n")
}

(save it as hello.go)

Executing ...

 go run hello.go

yields ...

 Hello world

Video about Go (history and talks about the 1st version).
Documentation
How to write go code
On-line tour

gorun lets you use a she-bang. Do read this topic though. Above example can then be:

#!/usr/bin/gorun
package main

func main() {
    println("Hello world!\n")
}

And making it executable:

chmod +x hello.go
./hello.go

yields ...

Hello world!

(I added the \n myself)

Your example has a mistake:

import http needs to be net/http

go run test.go
2014/05/10 20:15:00 Serving at http://127.0.0.1:8080/


How to get IP Address in ubuntu when installed using virtual box

Please switch your network settings to Bridged Adapter in the Virtualbox, then run ifconfig and now you should be able to get in there. And if any firewall is present fix that too.


I can't resize/partition my disk in Ubuntu 14.04

You can't resize or otherwise edit a mounted partition, and if you're working from inside Ubuntu (rather than, say, from a Live CD or USB), the partition Ubuntu is installed to is mounted.  Reboot from a Live medium, and you'll be able to do all the resizing and repartitioning you need.

Be careful, you already know why you should back up first!


How to cut off the screen in Ubuntu 16.04?

It may be machine specific but on my Dell pressing FnF1 toggles between the laptop screen, the laptop screen and an attached screen together and solely the external screen.

You should be able to check which key combination is relevant to your laptop by either referring to the manual in paper format or online with google.


I will show you how to install lazarus per the official wiki.

First, remove the current installed lazarus, like so:

sudo apt-get remove lazarus*

Clean up packages that the old lazarus installation might have left lying around, that might conflict whit the packages from the lazarus repository.

sudo apt-get autoremove

Download the lazarus key:

gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F

Add the lazarus key:

gpg --export 6A11800F | sudo apt-key add -

Add the lazarus repo to a lazarus.list file:

echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" > lazarus.list

Move it to your sources.list

sudo mv -v lazarus.list  /etc/apt/sources.list.d/lazarus.list

update your sources list:

sudo apt-get update

install lazarus:

sudo apt-get install -t lazarus-stable lazarus

If you get a missing FPS/Sources, the documentation had this to say:

  WOW! You get a message: "Free Pascal sources not found". Just follow the instructions and indicate your Free Pascal Compiler source directory in the panel: "Environment->Options->Files". As explained earlier, on my computer this should point to "/usr/local/src/fpc-2.4.2". Note that when you change this folder, you should click on "Environment / Rescan_FPC_source_directory". - Installing Lazarus - Free Pascal wiki

Reference:

Lazarus release version for Ubuntu - Lazarus wiki


OpenStack: How to make Cloudify use the floating IP instead of the fixed one?

You can configure private and public IP addresses in Cloudify as described here.

(This works only on Cloudify 2.6).

You also need to:

Make sure that your Openstack provider supports auto assignment of floating IPs and that it has a default floating IPs pool name. (i.e.) The following two properties must be set in the nova.conf of your OpenStack cloud :

default_floating_pool="nova"
auto_assign_floating_ip = True

Pass autoAssignFloatingIp : true in the options of the computeTemplate in the OpenStack cloud driver.

Here's a working example of an Openstack cloud driver: You can use the cloud driver and its corresponding properties file "as is".

(Disclaimer: I am Tamir Korem, Cloudify Community Manager)


Tomcat 8 does not start immediately after a reboot

I had the same problem.  The answer for me was in the link provided by Tomasz.  Tomcat is initializing SecureRandom which is really slow.

Workaround is to use a different source of entropy.  You can do this by providing this argument to the tomcat JVM:

-Djava.security.egd=file:/dev/./urandom

I did that by creating the setenv.sh script which tomcat will run automatically if it exists:

touch /usr/share/tomcat8/bin/setenv.sh
chmod +x /usr/share/tomcat8/bin/setenv.sh

Add these lines to setenv.sh and restart the server

#!/bin/sh
export CATALINA_OPTS="$CATALINA_OPTS -Djava.security.egd=file:/dev/./urandom"


How to change my /boot/efi mount partition?

An EFI System Partition (ESP) is simply a FAT32 partition with a GUID type code of C12A7328-F81F-11D2-BA4B-00A0C93EC93B (or 0xEF on an MBR disk). Most partitioning tools have some other way of displaying the GUID type code, because GUIDs are so cumbersome. In parted, GParted, and most other libparted-based tools, it's shown as a "boot flag" being set on the partition. (Note, however, that in libparted-land, the "boot flag" on a GPT disk is unrelated to the "boot flag" on an MBR disk. AFAIK, libparted provides no way to correctly label an MBR ESP.) In GPT fdisk (gdisk, sgdisk, and cgdisk), an ESP has a type code of EF00. Non-Linux tools have their own ways to identify ESPs.

Thus, to create a new ESP, you would:

Boot to any Linux tool that lets you partition the disk. This could be your existing Linux installation or an emergency disk/live CD -- but if you use your regular installation, be aware that you may be limited in what you can do, because many partitioning tools limit what you can do to a disk with partitions that are mounted.
Launch the partitioning tool of your choice.
If necessary, create a new partition. I recommend making it at least 550MiB in size. Note that you may need to shrink existing partition(s) to make room.
Place a FAT32 filesystem on the partition. Some tools, such as GParted, make it possible to combine this step with the previous one.
Mark said partition as an ESP.
Unmark or delete the old ESP.
If necessary, save your changes.

For making partition table changes, there's no need to be concerned with your boot mode -- you can use EFI mode or BIOS mode as you see fit. (That said, some computers make it easier to boot from USB or CD-R in one mode or another.)

I agree with oldfred that creating a new ESP is unlikely to be necessary in your scenario. If you want to completely erase the Windows boot loader from the ESP, feel free to do so -- it would be the /boot/efi/EFI/Microsoft directory tree once Ubuntu is installed. Note that this will not remove the Windows boot loader from the firmware's boot manager menu. To do that, you'll need to use efibootmgr, as in:

$ sudo efibootmgr
Timeout: 10 seconds
BootOrder: 0000,0004,0001,0002
Boot0000* rEFInd boot manager
Boot0001* PATA: HP DVD Writer 1040r
Boot0002* SATA: ST32000542AS             2
Boot0003* SATA: TOSHIBA DT01ACA300       3
Boot0004* Windows boot manager
Boot0008* INTERNAL EFI SHELL: ST32000542AS
$ sudo efibootmgr -B -b 4

This example deletes boot option #4, which is identified as "Windows boot manager." (I don't recall the name that Windows uses by default; I edited this example from one of my systems on which Windows is not installed.)


uGet is by far the best download manager for Linux because it has a ton of powerful features while at the same time is very lightweight in resource usage. uGet is just as fast as IDM. Unlike some of the other options on Linux, uGet is completely Open Source and does not limit the user for any reason.

For easily downloading videos from streaming sites you should look at FlashGot - https://addons.mozilla.org/en-US/firefox/addon/flashgot/?src=search


How to supply the ssh keys needed to access an application repo with Juju?

The short answer is no, but the long answer is a little more complicated.

According to the node-app charm's documentation there does not seem to be a way to configure it to take credentials.  There's two ways you could work around this:

Download the code for the charm and modify it to accept credentials.  You can then either deploy your modified charm or (preferably) submit the modification to the charm store so others can use that feature.
(less desireable and not scalable) You could manually add the ssh key to the deployed machine:

juju deploy node-app

ssh to the machine that was created:

juju ssh node-app/0

and manually add the ssh key to that machine in whatever way your repo supports.

Number 2 is the least work, but it's also the most manual and least repeatable. If you ever have to add units to node-app, you'd need to repeat that process for each of them.


Unity search doesn't find all files (16.04 LTS)

I know this isn't exactly what you are looking for, however, you can run the following command:

gsettings set org.gnome.nautilus.preferences enable-interactive-search false

Now, you should be able to open Nautilus or Files and you will be able to search the current directory recursively just by typing stuff.

So if you were to type "luka" with the file manager open, all results will display.


How to capture a screenshot immediately, without any confirmation, clipboard interference or screen blackout effect?

You can both use custom directory to save screenshots and have filenames with timestamps with gnome-screenshot. You need to use the following command.

gnome-screenshot -f /path/to/preferred/folder/screenshot_$(date "+%Y%m%d%H%M%S").png

Then you can set a keyboard shortcut for the command above.


Anybody have experience with Ubuntu + Serva?

I too was facing cifs share access issue while network booting via Serva server. After much trials i realized that the username required domain as well since my Network share was hosted on a domain joined machine. Based on suggestions via internet, i was able to network boot successfully by appending text "domain=" to the NFSOPTS param in the ServaAsset.inf. The NFSOPTS looked like following for me:

NFSOPTS=-ouser=,pass=,domain=,ro


fdisk not showing partition, parted does

Your disk is not partitioned; it's being used "raw." You can tell this from the following blkid output from your original post:

/dev/sdl: UUID="ac3bfba8-049a-4ace-83c6-2749422211f1" TYPE="ext4"

Note the device identifier is /dev/sdl, which includes no partition number. This contrasts with the output for your other disks' partitions, which do include numbers (/dev/sda1, for instance).

parted calls the partition table type "loop," which is another clue about this.

It's perfectly legal to use a disk in this way; however, it can be confusing. If you've not yet stored much data on the disk, you might want to create one or more partitions on it to avoid future confusion. (A script or some other tool might assume that a disk is partitioned, which could cause serious problems.) OTOH, if you've already filled a significant part of that 3TB capacity, backing it up might be too much hassle, and using it as-is might be the best course of action.


What is the difference between socat and agetty?

Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them. Because the streams can be constructed from a large set of different types of data sinks and sources, and because lots of address options may be applied to the streams, socat can be used for many different purposes.nixCraft

socat can do serial line stuff, and it can do fairly advanced functionality, like having multiple clients listen on a port, or reusing connections.  The life cycle of a socat instance typically consists of four phases.

In the init phase, the command line options are parsed and logging is
initialized.
During the open phase, socat opens the first address and afterwards
the second address. These steps are usually blocking; thus,
especially for complex address types like socks, connection requests
or authentication dialogs must be completed before the next step is
started.
In the transfer phase, socat watches both streams' read and write
file descriptors via select() , and, when data is available on one
side and can be written to the other side, socat reads it, performs
newline character conversions if required, and writes the data to the
write file descriptor of the other stream, then continues waiting for
more data in both directions.
When one of the streams effectively reaches EOF, the closing phase
begins. Socat transfers the EOF condition to the other stream, it
tries to shutdown only its write stream, giving it a chance to
terminate gracefully. For a defined time socat continues to transfer
data in the other direction, but then closes all remaining channels
and terminates.

agetty opens a tty port, prompts for a login name and invokes the /bin/login command. It is normally invoked by init(8).  agetty has several non-standard features that are useful for hard-wired and for dial-in lines:ManPage

Adapts the tty settings to parity bits and to erase, kill,
end-of-line and uppercase characters when it reads a login name. The
program can handle 7-bit characters with even, odd, none or space
parity, and 8-bit characters with no parity. The following special
characters are recognized: @ and Control-U (kill); #, DEL and back
space (erase); carriage return and line feed (end of line).
Optionally deduces the baud rate from the CONNECT messages produced
by Hayes(tm)-compatible modems.
Optionally does not hang up when it is given an already opened line
(useful for call-back applications).
Optionally does not display the contents of the /etc/issue file.
Optionally displays an alternative issue file instead of /etc/issue.
Optionally does not ask for a login name.
Optionally invokes a non-standard login program instead of
/bin/login.
Optionally turns on hard-ware flow control
Optionally forces the line to be local with no need for carrier
detect.
Supports ringback, if desired. The actual procedure that getty uses
is as follows: Initially, getty parses its command line. If no errors
are found, and the tty type from the command line is set to "unknown"
(the default value), or not set, getty checks for the tty type in
/etc/ttytype if the program was compiled with TTYTYPE defined. If a
tty type is found, either on the command line or in the /etc/ttytype
file, then it is placed into the TERM environment variable. Next,
getty scans the defaults file, normally /etc/default/getty, to
determine certain runtime values (/etc/conf.getty if compiled with
FSSTND option). The values in the defaults file (whose compiled-in
name can be altered with the optional -d defaults_file argument) take
precedence to those on the command line. Getty then opens the port
for reading and writing, and disables stdio buffering. If an
initialization was specified, it is performed.

Extra Sources: Socat, agetty MP


Uninstalling intellij idea on Ubuntu 18.04

It will depend on the version of IntelliJ Idea you have.
IntelliJ suggests to use commands

umake -r ide idea

or

umake -r ide idea-ultimate

If you get the message

  Command 'umake' not found, but can be installed with:

  sudo snap install ubuntu-make  # version master, or
  sudo apt  install ubuntu-make

  See 'snap info ubuntu-make' for additional versions.

and after installing and using the umake command again you obtain

  ERROR: You can't remove Idea Ultimate as it isn't installed

you will have to proceed manually, (Remove the whole Idea directory where the bin/idea.sh file is)
If you are not in the mood to install more stuff, this other command might work

sudo apt-get remove idea

you can find the name of your app by using this command

apt list --installed

If (like in my case) there is not any IntelliJ or Idea item on the installed-software list,
you will have to proceed manually, (Remove the whole Idea directory where the bin/idea.sh file is)

There are other tutorials to remove Idea completely. After deleting the folder with IDE installation, remove IDE settings/caches directories, should be enough.


How do I install Scribus stable release?

they also say (here : https://www.scribus.net/downloads/)
as of version 1.5.1, we consider the development branch reasonably stable, so it can be used for serious work by users who accept that not all *new* features are already working perfectly.

Features *already available* in the officially stable version will work much better in 1.5.1+, though.

-> 1.5.5 should be stable enough for new features and old features even work better in 1.5.1+ than 1.4.6
it seems to me that 1.5.5 seems to be a reasonable choice
on my ubuntu 20.4 scribus 1.5.5 works OK
-- edit based on comment --
if there are still issues you can
remove ~/.config/scribus and reinstall scribus
sudo apt-get -y purge scribus
rm -fr ~/.config/scribus
sudo apt-get -y install scribus


How to export a xlsx to pdf/A on the cli

There is no CLI option to require PDF/A output, however if you first set it in the GUI preferences then the CLI export will use PDF/A.
Open Calc or Writer, go to File > Export as PDF > General (tab) and select which PDF/A type you prefer. Then the next time you use the CLI it will work as expected.


Firefox 4.0.1 is hanging when streaming movies

That's possibly an issue with Adobe Flash. I've especially had problems when switching between fullscreen and normal view and OSD (On Screen Display). Even debugging with strace locked up the GUI with the cursor being the only moving thing on the screen.

If you've running a 64-bit version of Ubuntu, consider installing the 64-bit version of Flash. Although it's still in the "testing" stage, I find it more stable than the 32-bit version of Flash on a 64-bit system. See the question Flash player for 11.04 64bit for an how-to on installing Flash 64-bit.

Instead of rebooting the machine, you can kill the GUI too (to be precise: killing all programs in the current virtual console): Alt + SysRq + R. Warning: this kills all applications forcibly without a warning.


25 GB available not shown in UbuntuOne home folder

This means that there is 3.6 GB available locally, on the partition where a copy of your cloud-stored files is stored. So to actually use these 20 GB of space you have on the cloud, you need 20 GB of free space on the partition where Ubuntu One keeps your local copy of your cloud-stored files.


You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /      # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.


I had the same problem after I upgraded to Ubuntu 14.04. A working program trad (from Radiance) stopped working as it required wish (window shell script language like bash). Although latest "tk" was installed on my system, wish was not found.

It seems the program trad was looking for "wish" which had been renamed/ installed as "wish8.6". So a symlink to wish8.6 was created.

I did following to get trad working on my system:

sudo ln -sv /usr/bin/wish8.6 /usr/bin/wish

I hope this helps.


Gnome-shell stopped working after updating 11.10

Your sudo apt-get upgrade may have crash while updating your packages, making your system unstable. You may want to try this :

sudo dpkg --configure -a

And this :

sudo apt-get install -f

You should probably update again your packages after that :

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

And then restart.

If you still have the problem, check if any PPA that you have might cause the problem.


Changes in System when multiple DEs are installed

Is it a good idea? or should I use a distro that uses GNOME or KDE?

Now you are asking for an opinion. Some people strongly prefer one or another DE, some people strongly dislike multiple DE.

Personally I have gnome-shell , LXqt, KDE, and Openbox and I personally prefer the choice of DE as well a apps.

Personally I prefer some of the KDE apps over Gnome app (K3b is top of the list).

You will have to decide for yourself.

  What problems should I expect as an average user?

No problems are expected, they should all work together.

Possible annoyances:

Takes more space on hard drive.
Takes more bandwidth when updating.
Duplicate applications for various tasks (2 basic text editors, 2 or
more media players, etc).
It is difficult to completely remove a DE once it is installed.

Some people have experienced changes to themes or application appearance when using multiple DE, I have not, although the gnome (gtk) themes do not always translate to the appearance of KDE applications.

Those are the most common "problems" I see.

  I have not explored UNITY in depth (i dont know its full capabilities) however I like the feel of GNOME and KDE better. Should
  I switch or stay with UNITY?

You should use the DE of your choice.

I would suggest you try them all and if you settle into one you might well decide to do a fresh install with just the DE you prefer.

I do not believe you can have both Unity and Gnome-Shell installed at the same time, I am not sure. Canonical dropped support for Unity so although it may be supported for some time to come, and although there may be some sort of fork (similar to Mate as a fork of gnome), probably Unity is not the best choice moving forward.

In the long run, due to the number of changes to Ubuntu, I would advise you do a fresh install of 17.10 or 18.04 (once 18.04 is available) anyways (rather than an upgrade), so, no real problem with trying new DE on your current install. But again, that is an opinion as upgrading is supported if you so desire.


How to find a folder on my server with a certain name?

This also should work

find folder_full_path -name exampledocs -type d


Enabling or installing network access tools in nautilus

Looks like gvfs-backends was removed when you purge libbluetooth3, you can put it back by running the following:

sudo apt-get install gvfs-backends

Restart your computer for best effect. See more details about gvfs here:

http://fedoraproject.org/wiki/Features/Gvfs


How do I reset Ubuntu 18.04 to factory defaults?

I've used this and it worked for me.

Install Resetter

Download the deb files: Resetter deb files here

Open a terminal and run the following commands:

sudo apt install gdebi
sudo gdebi add-apt-key_1.0-0.5_all.deb
sudo gdebi resetter_2.2.3-stable_all.deb

Launch Resetter

To use Resetter you can either allow the app to automatically detect and remove installed apps by clicking "Automatic Reset" or choose to have it uninstall only the app items you select by clicking "Custom Reset".

After the reset process is done, it will create a new user account and show you the login credentials. Make sure to note it down, or else you can’t login to the PC.

Finally, reboot to complete the factory reset.

Hope this helps.

Install procedure taken from https://github.com/gaining/Resetter


Yes You can do it.

Go to Help shape the future of Ubuntu...
Set all input value to 0
But in last input do this steps:

At first, Right click on the last input and select inspect element And then set the value to 0.5 (exp.)

then click on Pay with PayPal

And you will see this:


Boot from a hardware-protected USB pen drive

If you hardware-protect the USB pendrive (for example if there is a microswitch like on many memory cards), you will have a read-only system.

If correctly configured it will work, (but obviously read-only). I think the simplest way to make a read-only USB pendrive is to clone from the iso file to the pendrive. This is a reliable method and it works for all hybrid iso files, and all current Ubuntu (and Ubuntu family flavour) iso files are hybrid iso files.

The iso 9660 file system from the iso file will be cloned without any modifications, and it is a read-only file system. There is a built-in method for running the read-write part of the system in RAM.

In linux you can clone with the Ubuntu Startup Disk Creator that comes with Ubuntu version 16.04 LTS and newer versions, Disks (alias gnome-disks) and mkusb.

In Windows you can clone with Win32 Disk Imager.


sddm-Greeter crashes on startup Kubuntu 15.04

it seems that I have a similar Problem but in my case sddm-greeter is crashing after login.
I'm running an Nvidia card with the official drivers so I'm not sure if restoring the default grafics driver would fix your problem.
Do you have access to a command line? If you have uninstalling the ATI drivers with apt-get remove should be the way. If this is no solution for you think about installing another Display Manager (like KDM) to get into the DE. That is not the best Solution but it should work until someone found a fix.
I'm not really into Ubuntu but I think 15.04 is using systemd. In this case disable sddm by using # systemctl disable sddm and enable another by # systemctl enable kdm (in case of KDM).


docker-sync is not in any of Xenial's official repositories (16.04).

You can install it using:

gem install docker-sync

To be able to use gem you should have ruby installed.

For more specific instruction have a look at here.


How can I remove leftover bits of kde-standard?

Yes, when you install then uninstall desktop environments you get a lot of left overs.

Start by running:

sudo apt-get purge   akregator dragonplayer gwenview juk kaddressbook kamera kate kcalc
  kde-baseapps kde-baseapps-bin kde-plasma-desktop kde-standard kde-wallpapers
  kdeplasma-addons kdm kfind kmail knotes konq-plugins konqueror
  konqueror-nsplugins kopete kopete-message-indicator korganizer kscreensaver
  kscreensaver-xsavers kwalletmanager kwrite libcalendarsupport4
  libeventviews4 libgadu3 libgpgme++2 libgrantlee-core0 libincidenceeditorsng4
  libkateinterfaces4 libkdepim4 libkdepimdbusinterfaces4 libkdgantt2
  libkexiv2-11 libkexiv2-data libkleo4 libkmanagesieve4 libkonqsidebarplugin4a
  libkontactinterface4 libkopete4 libkpgp4 libksieve4 libksieveui4 libktnef4
  libmailcommon4 libmailimporter4 libmarblewidget14 libmediastreamer1
  libmessagecomposer4 libmessagecore4 libmessagelist4 libmessageviewer4
  libmsn0.3 libopenconnect2 libortp8 libotr2 libqgpgme1 libqoauth1 libsrtp0
  libtemplateparser4 libtidy-0.99-0 marble-data marble-plugins
  plasma-containments-addons plasma-dataengines-addons
  plasma-desktopthemes-artwork plasma-runners-addons plasma-wallpapers-addons
  plasma-widget-lancelot plasma-widget-networkmanagement plasma-widgets-addons
  polkit-kde-1 sweeper xscreensaver-data xscreensaver-gl

If you get any errors, thats usually a good sign.

Then:

sudo apt-get purge svgpart kdepim-kresources kde-plasma-netbook skanlite kleopatra spamassassin
  bogofilter spambayes bsfilter crm114 clamav procmail kdeartwork-emoticons
  texlive-latex-base libotr2-bin srtp-utils network-manager-vpnc

Then try sudo apt-get autoremove again.

That should remove everything and put your computer pretty much back to the state it was in before you installed kde.


Midori not working in some of the wordpress websites

I had the same problem, but for all wordpress-sites.
That's how I solved it:
In Preferences -> Network I had "Identify as: Firefox". I changed that back to "Automatic" and now the Wordpress-Blogs work again - at least the ones that I tried out.
Maybe that helps you.


I had the same issue with my k501lx. I finally got ubuntu working by enabling CSM in BIOS (you will have to disable SecureBoot first).


How can I make vlc bind to all interfaces for streaming, but only loopback for the telnet interface?

Use 127.0.0.1 instead of 0.0.0.0. That is, write:

vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 127.0.0.1:5554


If I try to re install or repair windows does it affect the dual boot(grub)?

If you install windows then ubuntu grub will be replaced by windows boot loader. Although, Ubuntu/linux grub can detect any kind of OS windows boot loader can't unless windows. So, After installing windows you can not boot ubuntu immediately. You have to install grub which will show all of your operating system list at startup. You have to be careful in the time of installation of windows that, it doesn't affect the partitions where ubuntu is installed.

You may install grub from live USB mode using this link.

If your ubuntu is 64 bit you have to install boot-repair from there.


Lenovo touchpad is unstable in Ubuntu 18

Try installing the xserver-xorg-input-synaptics package:

sudo apt install xserver-xorg-input-synaptics

This appears to have mitigated the erratic/jumpy Synaptics TM3336-002 touch-pad on my Lenovo V130. Now, even if my finger actually skips a bit across the surface, the motion of the cursor is still perfectly fluid.


I had a similar issue with my Dell XPS 15.
The solution for me was to downgrade my kernel from 4.10 to 4.8.
Instructions on downgrading kernel.
I used the 4.8.0 kernel, downloaded from Site for downloading old kernels


Switching from Unity to KDE login screen problem

Most desktop environments have their own desktop manager (aka login screen) however it typically doesn't auto install along with the desktop environment. Unity uses lightdm, Kde uses kdm, and gnome uses gdm. You can have multiple installed but only 1 can be used at a time. You just need to install KDM and set it as your default desktop manager.

Step 1:
Install KDM by typing "sudo apt-get install kdm" in the terminal

Step 2:
In your control panel both lightdm and kdm will be listed and allow you to change which is your default. You can also do this via terminal commands but I can't recall them off hand.

[Please note: KDM comes with several themes pre-installed, the default used theme is not the one that is used as default in the offical kubuntu iso, that theme is included in kdm though, so all you will need to do to change it to your default theme is go to your control panel and under kdm you can change themes].


Search for a files that matches another file name in another folder

Let's say you're in your $HOME, and you have four directories -- folderA and folderB, as in your question; folderK, where you want to move the 'kode' files to; and folderM, where you want to move your 'mode' folders to. The following should accomplish that:

shopt -s globstar
cd /path/to/folderA
for f in *_code_c*; do
  mv /path/to/folderB/**/"${f/code/kode}" /path/to/folderK
  mv /path/to/folderB/**/"${f/code_c/mode_m}" /path/to/folderM
done

Obviously test it out on some dummy data first.


Writing a bash script to create PNGs out of SVG with Inkscape from a directory

If you have GNU Parallel try this (based on Letizia's solution):

#!/bin/bash

if [ $# -eq 1 ]; then
   width=$1
   height=$1
else
  if [ $# -eq 2 ]; then
     width=$1
     height=$2
  else
     echo "Error: missing parameters!"
     echo "Usage: myscript.sh width [height]"
     exit 1
  fi
fi

parallel inkscape -f {} -w $width -h $height -e {.} ::: *.svg

All new computers have multiple cores, but most programs are serial in nature and will therefore not use the multiple cores. However, many tasks are extremely parallelizeable:

Run the same program on many files
Run the same program for every line in a file
Run the same program for every block in a file

GNU Parallel is a general parallelizer and makes is easy to run jobs in parallel on the same machine or on multiple machines you have ssh access to.

If you have 32 different jobs you want to run on 4 CPUs, a straight forward way to parallelize is to run 8 jobs on each CPU:

GNU Parallel instead spawns a new process when one finishes - keeping the CPUs active and thus saving time:

Installation

A personal installation does not require root access. It can be done in 10 seconds by doing this:

(wget -O - pi.dk/3 || curl pi.dk/3/ || fetch -o - http://pi.dk/3) | bash

For other installation options see http://git.savannah.gnu.org/cgit/parallel.git/tree/README

Learn more

See more examples: http://www.gnu.org/software/parallel/man.html

Watch the intro videos: https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1

Walk through the tutorial: http://www.gnu.org/software/parallel/parallel_tutorial.html

Sign up for the email list to get support: https://lists.gnu.org/mailman/listinfo/parallel


.desktop howto: persistent terminal, custom $HOME

You can change the Exec line of your .desktop file as Exec=xterm -hold -e "cd <your desired directory>&&<command for your application startup here>". This will spawn a xterm terminal emulator and hold it even after your application terminates until you explicitly close the xterm window.


Guake terminal appearance like a normal terminal?

When you right click on the Guake icon in the top right hand corner, you get 3 options:

Preferences
About
Quit

By going to Preferences and going to Appearance, you should be able to edit your Guake terminal to look the same as your other terminal windows.

Hope this is what you were looking for.


AMD64 is the 64-bit version of the x86 instruction set. Intel support AMD64. The 64-bit version is recommended version, mainly because 32-bit only supports 4GB of RAM. As your computer supports 64-bit, you should use 64-bit.


Why is almost all of the 3 GB RAM on my HP G62 laptop always used?

I think it is "simply" not as bad as you think. Linux uses some of your ram for disk caching.  Take a look at the explanations and suggestions on this page: Linux ate my RAM!.

Mem:          2873       2741        132          0          9       1084

-/+ buffers/cache:       1648       1225

this tells you that you've got 1225 MB free...

i don't know what's the "normal" temp of your system, but i don't think it's heavily addicted to your ram usage...


How to write a script that does collectstatic for django

You can try

python manage.py collectstatic --noinput


In Ubuntu 16.04, how can I resort files?

Although you can sort files in Nautilus (the File Manager) you get more options when using the ls (list files and directories (not Lost Saloon)) command and changing the parameters passed to it.

A brief summary from the LostSaloon: how to sort the output of ‘ls command’ in linux command line

ls -1 (yes that is a one not an L). Sort by name
ls -1r sort by name in reverse order
ls -lr --group-directories-first Sort by name in reverse order with directories listed first (they usually appear in blue text)
ls -t sort by date last modified
ls -S sort by file size (largest to smallest)
ls -S sort by file size (smallest to largest)
ls -X sort by extension

For even more power pipe ls output (send output) to the sort command. For example to sort files on owner user ID:

ls -l | sort -k 3

Whilst answering this question I found something interesting:

$ ls -laSr
total 2216
-rw-r--r--  1 rick rick           0 Aug  3  2018 .sudo_as_admin_successful
-rw-r-----  1 rick rick           0 Apr 16 17:14 .gksu.lock
-rw-rw-r--  1 rick rick           0 Aug 23  2018 File A
(... SNIP ...)
-rw-rw-r--  1 rick rick      143383 Sep 30  2018 dbus-monitor-plugin.txt
-rw-rw-r--  1 rick rick      147247 Sep 30  2018 dbus-monitor-lid-close.txt
-rw-rw-r--  1 rick rick      177948 Oct 16  2018 java_error_in_STUDIO_9901.log
-rwxrwxrwx  1 root root      350821 Dec 17 18:04 trace89.dat.gz
-rw-rw-r--  1 rick rick 20000000000 Apr  7 19:50 foo

I must have used the sudo command that created the file:

-rwxrwxrwx  1 root root      350821 Dec 17 18:04 trace89.dat.gz

One must be careful with sudo because it can change the owner of files in a regular user's directory. This happened here but this particular file is of little concern.

I must have forgot an experiment that created an extraordinary large file. I should have deleted this file:

-rw-rw-r--  1 rick rick 20000000000 Apr  7 19:50 foo


Removing entries from UEFI menu with efibootmgr

You should not include the asterisk when using boot numbers in an efibootmgr command. An asterisk simply identifies a boot entry that's active, vs. one that's inactive. The man page for efibootmgr isn't exactly clear about what that means, but my guess is that an inactive entry won't be booted even if it appears in the BootOrder list. Other than that, your command is correct; you'd type sudo efibootmgr -b E -B to remove the Boot000E entry.

In fact, the boot numbers are all numbers -- they're just hexadecimal numbers (base 16, hence digits 0 to F rather than 0 to 9). See the Wikipedia article on hexadecimal if you're unfamiliar with it.


How to set default account-expiration date for all new users?

You can use option -D to edit the default expiry date from command line:

adduser -D --expiredate=2020-12-22

and to list the new defaults:

adduser -D

Worked in Centos7


It would seem you are trying to circumvent the effects of what "ctrl+alt+tab" does when you hit that mouse button (maybe frequently by accident???)...
You could, alternatively, disable what "ctrl+alt+tab" does and/or assign it to a different key sequence (which I believe is change panels?)
From the Applications menu or the panel, under Settings --> Keyboard Shortcuts
There you can disable the function  it executes... or reassign it.
FYI (for others),
On MATE Desktop, that option doesn't show up in the GUI... So on the command line I had to:
gsettings set org.mate.Marco.global-keybindings switch-windows-all '<Control><Alt>9'
I just picked "9" because I knew it was harmless key sequence I would never type.
On Unity I believe the equivalent would be:
gsettings set org.gnome.desktop.wm.keybindings switch-panels "['<Control><Alt>9']"


Why does my clock applet calendar appear in the wrong place?

It seems to be a problem with Compiz in Maverick. I had the same problem when I upgraded, since my panel was also on the bottom of the screen.

The relevant bug:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/631664

The workaround I used was to open the Compiz config Settings manager (if you don't have it on your preferences menu: sudo apt-get install compizconfig-settings-manager) to force the window to open near the bottom.
From comment #10 by Kantastisk in the thread of the aforementioned bug:

  Go to the "Place Windows" plugin of ccsm and under the tab "Fixed Window Placement" find the box "Windows with fixed positions" and click "new". Select the + icon and under "Type" choose "window title". Click your calendar applet, then the "grab" button and then click your open calendar. The resulting value should be something like "title=Calendar" or whatever it is in your language. Click add and under x and y positions choose the farthest settings to the right. Finally check "Keep in workarea" and you should be good to go.

Without using CCSM, there is supposedly a quick way (I did not try it) via the terminal posted by Zamiere Vonthokikkeiin (again in the thread of the aforementioned bug):

gconftool-2 -t list -s --list-type=bool /apps/compiz/plugins/place/screen0/options/position_constrain_workarea [true]
gconftool-2 -t list -s --list-type=string /apps/compiz/plugins/place/screen0/options/position_matches ["name=clock-applet"]
gconftool-2 -t list -s --list-type=int /apps/compiz/plugins/place/screen0/options/position_x_values [32767]
gconftool-2 -t list -s --list-type=int /apps/compiz/plugins/place/screen0/options/position_y_values [32767]


If you want to use Oracle's JDK, another relatively easy solution is to download tar.gz archive of JDK 8 from oracle website.
Extract it to location of your choice like /home/name/bin/ and add the following lines to end of your ~/.bashrc file:

export JAVA_HOME=/home/name/bin/jdk1.8.0_91  (subsitude with downloaded version)
export PATH=$JAVA_HOME/bin:$PATH

then run source ~/.bashrc and you are almost ready to go. If you want to install other packages that depend on jdk from apt-get you need to take extra steps explained in this answer. Otherwise installing them will result in automatic installation of OpenJDK.


What are blocklists and why are they considered unreliable?

The reason why this is unreliable is because burg is still a work in progress, and that's why this is not installed by default on Ubuntu.

And a blocklist is something specific to grub/grub2/burg ( at least in the terminology ).

This is used to read data that are not part of a file system, ie by reading directly on the disk. You can see some information on https://www.gnu.org/software/grub/manual/html_node/Block-list-syntax.html#Block-list-syntax

And no, the MBR is not on /dev/sda1, this is on the beginning of the disk ( ie on /dev/sda, the first block ), and sda1 is the first partition.

So you should really check if this is not /dev/sda that you should use. However, since the bootloader is critical, I would double check everything if I were you before touching.


Trackpad driver of lenovo thinkbook 15-IML

I installed Ubuntu on my Lenovo Thinkbook 15-IML and experienced exactly the same problem. Lenovo did not provide a solution for this "simple" task. As mentioned in another post, it is not rocket science and solution should have been provided by Lenovo Support Team since it is a basic functionality that should be guaranteed to work on any OS.
Anyway, Ubuntu community and its helpers are pretty amazing. After a few months struggling with the problem, Kai Heng-Feng found a solution and provided a test kernel which solved the issue. Now my touchpad is working.
You can apply the test kernel published in comment #88 in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853277
To apply this kernel you should download it and then go to Download folder and write the following comand on a terminal:
sudo dpkg -i linux-image-5.9.0-rc4+_5.9.0-rc4+-4_amd64.deb
Restart your computer, and enjoy your working touchpad!
P.D: I believe this solution works for a Lenovo Thinkbook IIL series as well. Maybe the permanent solution will be published in a future Ubuntu official kernel.


Downgrading 18.10 to 18.04 - How can I only purge the OS and not delete my personal files?

Sorry that 18.10 is not working out for you.

Reinstalling an OS is inherently risky.

While the Ubuntu installer will TRY to preserve your data, it might fail.

This venue is littered with folks who did not read the options carefully, or who misunderstood the options offered, or who had a power loss, discovered a bug, suffered a hardware failure, had a cat-on-keyboard, etc.

If your data is valuable to you, then preserve it.

It's never failed me, but I always back up all data anyway.


Highlight the first entry and replace “quiet splash” with “nomodeset”-HOW DO I DO THAT?

The instruction is:

  Reboot and keep your finger on the “SHIFT” key till you get the grub
  menu. Highlight the first entry and replace “quiet splash” with
  “nomodeset” .

So

hold down the shift key when booting starts.
You will then get a console mode menu. The top option should be selected. Press 'e' to edit that line.
Scroll down to the "kernel..." line. The is the line that tells Grub which kernel to boot with and the parameters to be passed to the kernel when it boots are placed at the end of this line.
Press 'e' again to edit this line.
Move to the end of the line. Delete the text that says "quiet splash" and then enter "nomodeset" instead, ensuring there is a space between the new option and any other option.
Once you have added the parameter to the end of the line, press Enter to accept the editing.
Then press 'b' to boot using that kernel and those parameters.

(Instructions adapted from this guide.)


GNOME Global Application Menu highlights

This extension is discontinued and the last supported version of gnome-shell to that extension was the 3.28 (Ubuntu 18.04). But the link that you already provided have only support until 3.24. If you want support for 3.28, you should download the extension from this link: https://github.com/jiqing112/Gnome-Global-AppMenu/archive/master.zip.

There are no way to change how the extension is working without change the code. So, only a fork of that extension should change that fact or otherwise a new release, but apparently this will not be occurs.

Disclaimer: I was the original author of the extension and then who discontinued it.


How do I get Opera browser to recognize Lightspark?

The Lightspark plugin only supports the NPAPI (a plugin api). However, Opera (and Chrome) only support the PPAPI on Linux. Therefore, Lightspark won't work.

I recommend that you install the pepperflashplugin-nonfree package instead. (which isn't open source but I doubt that could be a demand from your side as Opera is a closed source browser)


Try this:

Open a terminal. Press Ctrl+Alt+T

Run it:

sudo -i
aa-complain cupsd
mkdir /usr/share/cups/model
mkdir /var/spool/lpd
apt-get update
apt-get install sane-utils gimp

Close a terminal.

Download these files

http://download.brother.com/welcome/dlf101123/brgenml1lpr-3.1.0-1.i386.deb
http://download.brother.com/welcome/dlf101125/brgenml1cupswrapper-3.1.0-1.i386.deb

Turn on the printer and connect the network cable.

Open a terminal. Press Ctrl+Alt+T

Run it:

sudo -i
cd /home/user/Downloads
dpkg -i --force-all  brgenml1lpr-3.1.0-1.i386.deb
dpkg -i --force-all  brgenml1cupswrapper-3.1.0-1.i386.deb
nano /etc/printcap.local

Replace ":lp" line to the following 2 lines

:rm=(ip address of your printer)\
:rp=lp\

Ctrl+O Save file. Ctrl+X Close nano.

Download these files

http://download.brother.com/welcome/dlf006646/brscan4-0.4.3-2.i386.deb
http://download.brother.com/welcome/dlf006651/brscan-skey-0.2.4-1.i386.deb
http://download.brother.com/welcome/dlf006654/brother-udev-rule-type1-1.0.0-1.all.deb

Turn on your MFC/DCP and connect the USB cable.

Open a terminal. Press Ctrl+Alt+T

Run it:

sudo -i
cd /home/user/Downloads
dpkg -i --force-all  brscan4-0.4.3-2.i386.deb
dpkg -i  --force-all brscan-skey-0.2.4-1.i386.deb
dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb
brscan-skey
brscan-skey -l

Check if the scan-key-tool detect your scanner device.

Press the scan button, select user, select destination, press START.

Close a terminal.

Download these files:

http://download.brother.com/welcome/dlf006656/brmfcfaxlpd-1.0.0-1.i386.deb
http://download.brother.com/welcome/dlf006658/brmfcfaxcups-1.0.0-1.i386.deb
http://download.brother.com/welcome/dlf006665/brfaxmodem-1.1.3-1.i386.deb

Turn on the MFC/FAX and connect the cable.

Open a terminal. Press Ctrl+Alt+T

Run it:

sudo -i
cd /home/user/Downloads
dpkg -i --force-all brmfcfaxlpd-1.0.0-1.i386.deb
dpkg -i --force-all brmfcfaxcups-1.0.0-1.i386.deb
dpkg -i brfaxmodem-1.1.3-1.i386.deb


Please open a terminal and do:

sudo -i
echo 8812au  >>  /etc/modules
exit

Reboot and tell us if the performance is improved.


So Manoj Sawai put up a great comment that on laptops when entering Ctrl Alt F1 it is necessary to also hold down Fn.  That actually worked. Thanks.


Can I safely delete Microsoft reserved partition on my Linux only PC?

Your last statement is probably the only reason I can think of for not deleting the recovery partition.  It'll have drivers and other configurations you might want to use when installing Windows.

If for some reason you have to return your computer for warranty replace or repair you might want to return it to factory reset as an indication that problem isn't due to changing the OS or running unsupported drivers.

Other than that, everything you need is available just from the Ubuntu live install Disk, plus a Windows install disk for dual booting.

As far as removing the menu item which as you mentioned doesn't show a purpose, you can look at the GUI program, Grub Customizer.  It has lots of features such as setting the listing order, or hiding menu items in the grub menu.


Change the username of in PS1 to any arbatrary strings temporally

You could use parameter substitution:
PS1="${PS1//\\u/spirit}"

To reverse it,
PS1="${PS1//spirit/\\u}"


doesn't work automation autostart command for conky

Don't put this in as the Command:

file:///home/nazar/.ConkyWizardLaunch

do this one instead

/home/nazar/.ConkyWizardLaunch

You may need to run chmod +x /home/nazar/.ConkyWizardLaunch first to make it executable.

You could also use this, without the need for a script:

sleep 8 && conky -c ~/.ConkyWizardTheme/ConkyWizardTheme


How do I know if I will be able to daisy-chain monitors? (connect two monitors to 1 DisplayPort)

Update: As of July 8, 2014, DisplayPort MST support does not exist in any Linux kernel. David Airlie at Red Hat is working on it, and his work is being merged in Linux kernel 3.17. The upcoming Ubuntu 14.10 "Utopic Unicorn" will use 3.16, so DisplayPort MST support "out-of-the-box" is not expected on Ubuntu until 15.04 (yes, nearly a year from now). I will update this answer with instructions on installing the patch set yourself when I figure out how do it and I will have the hardware supporting MST. I have postponed my purchase of Surface Pro 2 due to personal circumstances, so anyone who has MST hardware and Surface Pro 2 is very welcome to go ahead and install a patch set and try it out and/or help Michael debug it, to assure that when the patch does arrive, it will work well on SP2, as right now MST support seems to be tested on Thinkpad T440s and 4K monitors.

You should be able to use two monitors, one way or the other, unless Microsoft relies on some secret sauce (software, firmware or hardware) that won't work with Ubuntu.

Surface Pro 2 ships with either i5-4200U or i5-4300U CPU, both Haswell chips with HD Graphics 4400 GPU. According to Intel, these chips have 4th generation graphics (HD Graphics 4200 and up is 4th, 4000 and 2500 is 3rd) and thus support DisplayPort 1.2.

Apart from graphics adapter support, you will need compatible monitors. These monitors should be DisplayPort 1.2 compatible and feature two DisplayPorts (for input and output). According to this page from DisplayPort.org (click 'DP Displays Multi-Stream' then 'Search') there are currently seven such models:

Lenovo LT2934z
Asus PA279Q
Dell U2413
Dell U2414H
Dell U2713H
Dell U2913WM
Dell U3014

Or, you could use DisplayPort 1.2 MST hub like this one: not quite daisy-chain, but a solution to connect up to 3 DisplayPort monitors to a single DP 1.2 MST output. The monitors can be regular old-school DP 1.0, according to this answer.


Ubuntu 16.10 failed to startup after login

This is most likely to be a bug. A quick search at Launchpad showed me no related bug, so you would do good to the community by reporting this bug.

Notice also that there has never been a test for NBA 2k14 submitted to Wine for any Ubuntu distribution. This means this might not work, regardless of the release you install, stable or not stable. See here a list of tests for this game in Wine. The only test available is for a Debian distribution (not Ubuntu). If your interest is in playing this videogame only, you can try installing that OS. See more information about it here. Although a rather old release (2013), it still has Long Term Support until 2018, so it should be fine as an OS too (although people argue is more "difficult" to use for beginners).


Added the following file: /etc/X11/Xsession.d/45setoutput

#!/usr/bin/env bash

xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
xrandr --addmode VGA1 1280x1024_60.00

Restarted, then set the resolution in the GUI menu.


X does not start after 17 Dec update of nvidia

The simplest fix for this involves purging the offending 'nvidia-304*' installation adn re-installing which will rebuild the kernel driver and correct the problem.

sudo dpkg -l 'nvidia*'

look at the versions currently installed.

sudo apt-get purge 'nvidia-304*'

This will remove all 304 related installs such as nvidia-current and nvidia-304-settings etc. and will remove the driver from the kernel. You need to do this with other versions if you have installed them to try and fix the issue e.g. 319

sudo apt-get autoremove

This will clean out any left over files

sudo apt-get install nvidia-current

This will install the current 304 release and related files e.g. nvidia-304 nvidia-304-settings etc.

Once complete

sudo reboot now

You should be good to go following a reboot.No removing of the ubunutu-desktop required.

Cheers
Spart


Ubuntu 15.04 Server - How to stop X from starting at boot

Edit your /etc/default/grub

sudo nano /etc/default/grub

Find out this line -

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to -

GRUB_CMDLINE_LINUX_DEFAULT="text"

Update Grub -

sudo update-grub

For systems that use systemd
This is an additional step for systemd releases, eg: Ubuntu 15.04

You need to tell systemd to not load the graphical login manager:

sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

You can still use X by typing startx after you logged in


20.04 after install of package python3-venv, pyvenv cannot execute (pointing to bad link)

The pyvenv binary is deprecated since 3.6
It seems like it's no longer built into the debian packaging for python3.8
The suggested command is to use python3.8 -m venv ... instead


How do I adjust the gamma on my HDMI monitor?

I had this exact problem and was about to post a question on it, but managed to find an answer.

First use:

xrandr

To find the name of the output. It could be (HDMI-0 or HDMI-1 etc.)

Then do:

xrandr --output <Channel> --brightness <Level>

Brightness is a decimal number from 0 to 1. For example, this is the command I did to fix my problem:

xrandr --output HDMI-0 --brightness 0.8


Sound From Speakers When Headphones connected

This turned out to be a problem with the pin mapping (a couple of speaker pins were set to use the headphones' output rather than the Speaker output).

I used ALSA's HDA-Analysier tool to debug this, and corrected the problem by changing the following pins:

0x17 to Audio Output 0x11
0x1d to Audio Output 0x11


In my opinion, pretty much the best video-editing program available is Kdenlive:

There is Avidemux as well:

And for Audio recording + editing, Audacity is simply brilliant:

If  you have problems recording, you may need to select your input device. Install the program needed:

sudo apt-get install pavucontrol

You can then open it with pavucontrol, and edit the input devices:

The input device that has the green tick next to it selected is the one that is set to default, so is likely to be the one used by the program.


Cannot dual boot Ubuntu 12.10 with windows 8.

For Ubuntu with Windows 8 you need grub 2 bootloader because of secure boot of Windows 8. As I know only grub 2 can boot both. As DrA7 sayed, open Ubuntu Live session (from disk or usb) and install Boot-Repair. Then open this tool. This will repare your boot loader and after reboot you will be able to select both Ubuntu and Windows 8


newly created mode using xrandr on 1440x900_60.00 has no effect on my ubuntu 15.10

ok so after going through the guts of ubuntu aka xorg.log.0, it turned out something was messed up with my VGA cable (i know it's ancient) but anyway, I changed the VGA cable and viola! got my resolution automatically as well as the rest of them that I get on my windows. so if you are having similar problem, please save yourself a few days of torture and change your VGA cable.


awk determine unique rows based on subset of columns

You can do this by combining the column-values in the hash key, e.g. assuming your input is sorted, this one-pass solution works for column 1-3:

awk '!h[$1,$2,$3]++ { NF--; print }' FS=, OFS=, data.csv

Output:

Col1,Col2,Col3
A,10,50
A,10,05
B,20,30
B,20,03
C,30,100
C,30,111
C,40,111
C,30,123

For columns 1 and 4, do something like this:

awk '!h[$1,$4]++ { print $1, $4 }' FS=, OFS=, data.csv

Output:

Col1,Col4
A,2017
B,2017
C,2017
C,2016
C,2015


There is possible way to do that.
Look at "Nautilus Actions".
You can write your bash script which reads class name from stdin creates .h and .cpp files.
Add it to nautilus actions.
Allow this script to be executed from directories you want.


Well, I could find the solution so I'll post it for anybody that could have the same problem.
It was the Secure Boot. I just had to disable it from the BIOS and that's all.
When the pc started everything was working fine. :)


cron installed by default fails with "exec: fstrim-all: not found"

The /etc/cron.weekly/fstrim file on my 16.04 system contains the following:

#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true

This specifies the absolute path to the fstrim binary and uses the --all option. It's not clear why the version you have differs, though it matches the file I found on a 14.04 installation.


Share dropbox folder between Ubuntu and Windows

You should log out completely, log in again and link that folder again (go to the Dropbox icon in the menu bar; go to settings -> in the second tab you can make a new link to your folder).
If this still does not work try reinstalling Dropbox. And make sure to delete the unused/left over folders.

This one solved (at least for my part) the problems.


Ubuntu 18.04: Is there a way to specify DNS Server Order?

The nameservers are used in the order configured. If you configure the internal nameserver first and the Digital Ocean second, the systems will fail over to the second one if the first one does not respond.

After a failover the system (to my knowledge) does not automatically switch back to the first one. So a sudo netplan apply is necessary.

It only gets tricky nowadays because so many parts are (potentially) involved in the configuration (systemd-resolved, netplan, configuration in /etc/netplan/*.yaml, wich are overwritten by /etc/systemd/resolved.conf, and probably a dozen more that I am not aware of).

The best way to see what the final result of all the different configurations and services result in for the name resolution is  systemd-resolve --status.
Here are the important parts on one of my test systems:
`...

     DNS Servers: 10.9.9.4
                  192.168.1.6
                  10.9.9.6
                  10.0.9.1`


When I type something in any website inside a form, it's hard to see

This isn't about Ubuntu, thus my close vote, but, open firefox, go to the Menu->Edit->Preferences page, select the Content tab, and change the value in Fonts & Colours.


Gave up waiting for root device ubuntu 14.10

I am not an expert but I can say that it seems that you have disabled the passing of boot arguments during boot feature of the kernel. That is why kernel is not getting arguments ans booting into terminal


Numpty Physics: fullscreen? additional levels in a .deb?

I couldn't figure a way to change the screen size in the provided amd64 binary (the svn version has a useful-looking -geometry option, though)
Are the Windows extra levels by any chance from the NP-complete collection? If so, the quick and (really) dirty way is to just copy them over to /usr/share/numptyphysics -- a nicer way would be to get the svn source and make a new .deb package, but unless you're developing for maemo, it does not seem to build out-of-the-box.

(In case someone else wants to try the provided .deb on amd64, there seems to be a bug which makes it crash on start: it assumes the data files are in . so you can work around that by doing cd /usr/share/numptyphysics first.)


booting 64 bit ubuntu 15.10 into 32 bit x86 architecture windows 10

No, you can not install a 64 bit OS in a 32bit architecture machine. Either real install or a virtual machine.


from what I understood, it means that you tried to run the vboxdrv service but it's not installed on your system. As it should be installed with the Virtualbox installation, obviously, something was wrong

I suggest you to have a look at this topic. They installed VirtualBox from oracle binaries directly. (http://ubuntuforums.org/showthread.php?t=1739768)

Based from my quick search, it seems to be a known issue from 12.04 (French Link : http://forum.ubuntu-fr.org/viewtopic.php?id=1083121)

The Oracle version avoid this issue : https://www.virtualbox.org/wiki/Linux_Downloads


Ubuntu 14.04 Start Terminal on Active Screen

How to make a new terminal window, initiated by Ctrl+Alt+T open on the currently active screen?

Although Very much related to this one, not a dupe, and it requires a completely different solution. Your question is specific to gnome-terminal, and you are using a shortcut to start the application. These two make a background script unnecessary, and ask for some additional information.

The solution

Since you start the terminal by a shortcut key, it is relatively easy to create a clean soultion; we can simply replace the command, called by Ctrl+Alt+T, to run a wrapper script. This wrapper will start a new instance, wait for the new window to appear, look at the current position of the mouse and move the new gnome-terminal - window to the corresponding screen.

The script

#!/usr/bin/env python3
import subprocess
import time

app = "gnome-terminal"

def get(cmd):
    return subprocess.check_output(cmd).decode("utf-8").strip()

def screen_limit():
    screendata = [s for s in get("xrandr").split() if s.count("+") == 2]
    if len(screendata) == 2:
        return int([s.split("x")[0] for s in screendata if "+0+0" in s][0])

rightside = screen_limit()
if rightside:
    ws1 = get(["wmctrl", "-lpG"]); t = 0
    subprocess.Popen(app)
    while t < 30:
        ws2 = [w for w in get(["wmctrl", "-lpG"]).splitlines() if not w in ws1]
        if ws2:
            try:
                pid = get(["pgrep", "-f", app])
            except subprocess.CalledProcessError:
                pass
            else:
                match = [w for w in ws2 if pid in w]
                if match:
                    match = match[0].split()
                    mousepos = int(get(["xdotool", "getmouselocation"]).split()[0].split(":")[1])
                    check = [mousepos < rightside, int(match[3]) < rightside]
                    if check[0] != check[1]:
                        cmd = ["xdotool", "windowmove", match[0], str(int(match[3]) + rightside), match[4]] \
                              if check[0] == False else \
                              ["xdotool", "windowmove", match[0], str(int(match[3]) - rightside), match[4]]
                        subprocess.Popen(cmd)
                    break
        time.sleep(0.5); t += 1
else:
    subprocess.Popen(app)

How to use

The script needs both wmctrl and xdotool:

sudo apt-get install wmctrl xdotool

Copy the script above into an empty file, save it as move_terminal.py
Now we need to alter the default command, run by Ctrl+Alt+T

first disable the current shortcut by the command:

gsettings set org.gnome.settings-daemon.plugins.media-keys terminal ""

This will make the shortcut available again.
Then Add a new command to Custom Shortcut Keys: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/move_terminal.py

to the shortcut Ctrl+Alt+T

Now your new gnome-terminal window, launched by Ctrl+Alt+T will always "follow" the currently active screen.

Note

If there is no second screen attached, Ctrl+Alt+T will just open a new terminal window.


Why will Unity have a Global Menu OS X style?

The announcement lists reasons and design goals. It's named the Application Menu (as global menu was the name of an older project).

For testing plans and more technical details see this page.


What programs should I use optirun or primusrun for?

According to the Wiki from the Bumblebee project, Bumblebee is designed to allow you to switch when you need it. From what I read, it is purely for energy saving. So basically, if you had the option in your BIOS, you could run NVidia graphics alone, but it's not very efficient.
So in short, you can use it whenever you feel you need extra graphical power and are willing to sacrifice a little extra energy for it


Another option is zoneminder. You will need to add the zoneminder repository:

apt-get install software-properties-common python-software-properties
add-apt-repository ppa:iconnor/zoneminder
apt-get update

You will also need apache2 ubuntu-restricted-extras libav-tools x264:

sudo apt-get install apache2 ubuntu-restricted-extras libav-tools x264

Click here for more instructions on how to set up mysql and php.

Then,

Follow the instructions here and be patient with the setup. You will probably have to mess around with the individual camera settings before it will work.

You can set up passwords for security so that not just anybody can see the camera. They will have access to the server through any web browser.

The zoneminder server will auto start when you start ubuntu and it runs in the background.

After you get it set up, you can take note of the URL (using the static ip of your computer) for the camera feed to give to users to access the camera if you like or you can inspect the html to get the feed URL to set up a minimal page of your own on your apache server accessible on the local network.

www.zoneminder.com/wiki/index.php/Main_Documentation

www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.28.0_the_easy_way

www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu


Installing Ubuntu 13.04 on Dell XPS 12 9Q23 in multi booth mode stops at black scren

I had the same issue with my xps 12 9Q23.
By default the screen luminosity is at 0.
You have to press Fn+F5 to increase the luminosity to have something on the display.
Or you can plug an external display to see something.


type the command 'last' on your $-prompt
check the log-files: /var/log/auth.log
you shouldn't give your own password away, it is better to create an account for sharing data. Make a separate account per user and place them in the same group (GID) that way you can easily share files and the like, without them being able to sniff around too much.


Modern Ubuntu distros does not support System->Administration tab. Here and there exist threads which proves answer to this problem.

If you want to start cups service, press Ctrl+Alt+T and type:

sudo service cups start


To print a sequence of number the command 'seq' is your friend

seq 8


Can't connect with VPS running Ubuntu server 16 with x2go

In your /home/user/.profile add the following line :

tty -s && mesg n

... and remove any other "mesg" line which is the root cause of the problem


Ubuntu Server 16.04: Port Forwarding broken

From your description you have configured and tested the ports correctly, and the results is something you will have to communicate with your Internet Service Provider to remedy.  Some ISP's block certain ports to avoid having their clients run certain types of servers.  A couple of common ports blocked by some ISP's are ports 25 and 80.

You can verify the port forwarding operation by configuring a server on a particular port.  Start the server, forward the port, then test the connection with this command-line:

$ telnet [serverip] [portnumber]

The arguments in the commandline is:

ServerIP       - This is the public IP address of your computer.
Portnumber     - This is the port number that the server is running on.

If your public IP address is 172.217.7.14 and the port you want to test is 8080, then the command would be:

$ telnet 172.217.7.14 8080

Now by running that command from a remote computer you can tell by the response if you are getting to the program.

In this case if you configure your Minecraft Server to run on this port the response to that command will be:

Trying 172.217.7.14...
Connected to 172.217.7.14.
Escape character is '^]'.

You can exit out of the connection with by hitting Ctrl+].  Then type quit at the prompt.  That's the conventional way which always works.  In this case just Ctrl+C will do the trick for the Minecraft server.

Edit your Minecraft server.properties file to test a different port.  Change the server-port:

Change from:

server-port=25565

Change to:

server-port=8080

You might also test other random ports such as 12345 to get an idea of how specific they may be with their blocking selection.

After you have verified the port is blocked by your ISP (by having other ports work), then you have an educated dialog to express your concern.

You may have to speak with one of their technicians, because most of the time their regular sells people don't understand the concept of ports and servers.


There is a package that you can install, and try to recover your lost data from the Windows partitions. Unfortunately, you wont be able to also recover Windows installation. You will have to install Windows again.

The package to use for recovering lost data from your Windows partitions is called 'testdisk' . You can install it with this code:

sudo apt-get install testdisk

And you can check the following links for further instructions on how to use testdisk in Ubuntu:

How to recover a deleted NTFS partition with data

How do I recover my accidentally lost Windows partitions after installing Ubuntu?


"error: attempt to read or write outside of 'hd0' press any key to continue"

As the backup of your data succeeded, to avoid this in the future ensure that you have 2 backups: an off-line system back-up and an on-line data backup.

To be able to even make a system backup, you need to install Ubuntu with at least 3 partitions: swap, / and /home and have an additional HDD (preferably external, so you can store it away from the computer)

To make a system back-up, boot a CloneZilla live CD, back-up / as a disk-to-image and keep at least the current and the previous copy (so that if the system crashes during the system back-up, you still have your previous one)

To restore a system backup, boot a live CD (preferably just the gparted Live CD as it boots quickest) delete the swap and system partition and re-create them.  Then restore the system backup with a CloneZilla restore image-to-disk.

How often should you make a system backup? Before you do anything drastic, like upgrading your main application, or after you've done some major tinkering. I do that every couple of months (sometimes weeks)

To make a data back-up: continue using your current back-up program but use that to backup /home only...


SD card unmounts during suspend or hibernate

Maybe there is a graphic tool to do this, depending your environment.
But you can always configure Ubuntu so that the SD card is acting like a normal System "SSD" by editing the fstab file, in /etc/fstab. Maybe have a look to the doc about it if you are interested by this questions.
Have a look to yours with a text editor, and make a backup file before editing anything.
So then:

sudo nano /etc/fstab

You just have to specify uuid, the mount point desired, the file system used and leav the other option as defaults, 0, and 2.
Example for my home device:

# /home was on /dev/sde8 during installation
UUID=ab5346f-c35e-454e-7827-esd6g4ds5fab /home           ext4    defaults        0       2

But I don't know is there is a specific problem with suspend (it's possible).


Desparate: how can I clone my Ubuntu USB harddisk so that I really can boot from the new clone

First, I suppose your external drive is formatted as ext4. If it's not, bang your head in a wall and say 25 prayers to our lord Torvalds (just kidding by the way). And format it as ext4. And clone Ubuntu again. When you're done, let's continue.

There may be more things to do, but the first, essential step is modifying your /etc/fstab file. This file is responsible for automounting some partitions (including the root partition) and it uses these partitions' UUIDs by default (UUIDs are exclusive identities given to some devices). Since UUIDs are unique, you'll have to change fstab. Plug in your external drive. Boot your computer into Ubuntu

Open a terminal and run sudo blkid /dev/sdXY. Replace sdXY with the name of your external drive (you should know it to this point, and assuming it only has one partition the Y number will be 1). The output will tell you its UUID, take note of it. Don't miss a single number/letter! Run:

sudo mount /dev/sdXY /mnt

Now run sudo nano /mnt/etc/fstab. Find the line that has something like UUID=xxxxxx       /        ext4     defaults and replace xxxxxx with the UUID you got just before. Hit Ctrl+O then Enter to save the file and Ctrl+X to exit. You should now be able to boot your external drive! Congrats!


Why is root the owner of my Desktop in Ubuntu 14.04?

To fix it you have to

sudo chown your_user:your_user -R /home/your_user

The change ocured when you ran something, lokely a graphical program as root. Depending on how you called the program, the environmental variables, in this case $HOME were not changed.

In general, use sudo -i or , pksu

See :

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

http://ubuntuforums.org/showpost.php?p=6188826&postcount=4

Why should users never use normal sudo to start graphical applications?

How can I run an application with a GUI as admin from a non-admin user session?

and

Why is gksu no longer installed by default?


Built in webcam not working properly on Lenovo laptop

I was having the exact same problem with my Lenovo IdeaPad S340.

It turns out there is actually a built in webcam cover (very well disguised)
Just above the webcam there is a tiny slider which if you move to the right removes the cover and your webcam should work!

Thanks!


Windows 7: No internet connection after installing Ubuntu via Dual-boot

OK, I'm not extremely familiar with Windows, but as a general techie I'll give my two cents.

I'll bet your problem is that the card/connection is configured to connect to some weird kind of DHCP server, based on the "Autoconfiguration IP address". After a simple Google search, one of the first results was this:

https://social.technet.microsoft.com/Forums/windowsserver/en-US/8acb7cd1-7028-4ffe-86c9-eb43041cf8b3/how-do-i-get-rid-of-second-169254xx-ipv4-address-on-windows-server-2008-sp2-x86?forum=winservergen

Scrolling down, you see this

"169.254.x.x is the APIPA (Automatic Private IP Addressing) range. This range in Windows is automatically assigned if no DHCP servers responds or is unavailable in the Network."

There is your problem.

Possible solutions:

Look in your settings, and check out the DHCP settings. There may be something wrong. I don't really know exactly where that is in the Control Panel, but it should be under Network Settings, since I've been Linux-exclusive for a while.
Set a static IP. Normally these are in the 192.168.1.x range. Again, I don't really know how to set it, check in Network Settings.

If these don't work, remember that Google is your friend. And also, welcome to AskUbuntu!


Building partition between Linux and Windows

When you install the installer may offer to install alongside automatically, otherwise you can chose the 'Something Else' option and install manually. You will probably need to shrink the partition in Windows, and then install alongside. Make sure you make a backup of important data first.

It may help to read the following questions:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI
"Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?


java exception: No such file or directory

Since it's a "Permission Denied" error, it'd definitely a permissions error.
Try chmod 666 and see if that fixes it. That gives everyone read/write access.
You don't want to open it up like that though, so if it does fix it, then chown the file to the user who is running Jetty and chmod it back to 644.

To find the user running Jetty:

ps aux | grep jetty

To change ownership of the file:

chown jettyuser.jettyuser /path/to/file


Plasma doesn't load properly on Kbuntu 20.04

So I found out removing ~/.config/plasma-org.kde.plasma.desktop-appletsrc made my desktop work again, which meant a desktop widget was causing the issue. After playing with my widgets, it turned out the issue is the Grouping Plasmoid widget.
The problem occurs when I add  the following widgets:
[Containments][1][Applets][27]
immutability=1
plugin=org.kde.plasma.grouping

[Containments][28][Applets][29]
immutability=1
plugin=org.kde.plasma.notes

[Containments][28][Applets][30]
immutability=1
plugin=org.kde.plasma.calculator

It seems to also happen with other combinations using calculator or notes widgets inside the plasmoid container. Other widgets may also conflict.
To solve the issue, get to a terminal and either remove the conflicting file or edit it.


MySQL not starting On AWS (EC2- Ubuntu Instance)

Solved: The main issue was the AWS instance run out of space. Once I removed the some files, I was able to re-run it again.


Conky problem - it's just a black window with text

That's how conky works by default - it just displays the raw data.

You'll need to apply a skin to make it look more appealing; you can find some on this site along with a nice walkthrough of configuration here.


How to enable numlock at boot time for login screen in Ubuntu 18.04?

Do the following:

xhost +SI:localuser:gdm

sudo su gdm -s /bin/bash

Now, you need to use gsettings or dconf #or dconf-edit if you have it

Go to /org/gnome/settings-daemon/peripherals/keyboard/numlock-state and change it to on

or simply after the two lines do this

dconf write /org/gnome/settings-daemon/peripherals/keyboard/numlock-state "'on'"

or

gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'

Now reboot


Can uniq be used to delete one duplicate line while retaining the other?

Sort the numbers with sort
Remove the duplicates with uniq. You need no option.

Example with digits and two blank lines:

$ cat unsorted

1
2
3
1
2
3
4
3
2
1

$ sort unsorted

1
1
1
2
2
2
3
3
3
4
$ sort unsorted | uniq

1
2
3
4


Will running dual monitors have any significant impact on system speed?

There's more to render so sure, a little bit more of your CPU and a little bit more of your graphics are going towards keeping the system running. But we're only talking about  a couple of CPU seconds extra per minute. Nothing that you'll notice.

If you run 3D things (eg games or other rendering things) over both screens, you will notice a large slowdown because you're dealing with twice the resolution and they're already CPU/GFX intensive. But if you limit them to one screen (like a window that is "fullscreen" on one monitor), you won't see much of a slowdown at all.

Either way, having the extra screen will near-double your own performance so that should easily offset any slowdowns.


Any way to check the clock speed of my processor?

From the command line type lscpu. The information will be at CPU MHz:

~$ lscpu | grep MHz
CPU MHz:               804.901
CPU max MHz:           3200.0000
CPU min MHz:           800.0000


Computer hogging bandwidth, how do I find out what it is?

Virus is unlikely, if you're running Linux. You can see every process with a network connection open with:

sudo lsof -i

and, of course man lsof.

top will show you all the processes on your system, and man top will show the options and commands to use top.

Se also this other answer


Trying to change the color scheme through the css file, but no permission

To put it bluntly, you're doing it wrong.

You need to copy the GTK theme into /home/yourname/.themes/

Then you should be able to edit it, rename it and then select it in the appearance settings.

Related question.


If you're having trouble burning a DVD that you can boot from, I would suggest instead creating a bootable USB drive.  USB drives are cheap, and they actually perform better as a boot environment than the discs do anyway.

If you're starting out from Windows, you'll need to download Unetbootin (from http://unetbootin.sourceforge.net/), which can either work with an ISO you've already downloaded, or just download one for you when you tell it you want to create an Ubuntu bootable USB drive.  Should be very easy and straight-forward.


Left Shift key increase volume, pipe key works as shift

I also had this problem and this is how I fixed it :)

Firstly load up the Keyboard settings GUI and click on the Shortcuts tab, look in Sound and Media and disable the Volume up key. Once done you can now use xev to detect the shift key properly and configure with xmodmap.

As we have the same keyboard assuming the key-codes are the same, this should sort out all of the keys except you wont be able to use the volume up key as it shares the same key-code as the left shift.

    xmodmap -e "keycode 146 = space"

    xmodmap -e "keycode 123 = Shift_L"

    xmodmap -e "keycode 50 = backslash bar"

    xmodmap -e "keycode 248 = numbersign asciitilde"

If it all works you will probably be best making a startup script for it :)

Hope this helps you out.


How to install Ubuntu on free space on disk while using a DVD

The default Ubuntu will install GRUB [Grand Unified Bootloader] replacing Windows bootloader. GRUB will provide a choice of which OS from which to boot.

Since many different situations exist there are many guidelines to follow; I suggest using Ubuntu & Windows dual boot... Quote from the link

  When a Windows installation already occupies the entire hard drive,
  its partition needs to be shrunk, creating free space for the Ubuntu
  partition. You can do this during the Ubuntu installation procedure,
  or you can see How to Resize Windows Partitions for other options.

This link contains required and optional partitions. Quote from the link

  The easiest partitioning scheme, on a non-GPT disk, is simply a root
  partition and a swap partition.


Nautilus hangs on accessing DCIM/Camera on Android

I have a similar issue with a Galaxy S6. I discovered that some images get filenames with parentheses at the end, like ...(0).jpg. It seems like Nautilus hangs when trying to list those images and ultimately fails. I moved them to a new directory on the phone, and Nautilus was noticeably faster in loading DCIM/Camera directory. I then tried to load the new directory with < 20 images with parentheses and Nautilus failed again. Renaming the files to remove the parentheses fixed everything.


How to configure "flatpak run org.gnome.meld" as git diff.tool and merge.tool

The Git configuration variable diff.tool only specifies the name of the diff tool used by default. The command to invoke is specified in difftool.<tool>.cmd. (See the git-difftool(1) man page.)

As discussed here (with configuration examples), when invoking flatpak run org.gnome.meld, there are a couple of ways to give Meld access to paths under /tmp created by git difftool:

Use the --file-forwarding option, to export the files into the document store. (Note: this will not export directories, so git tool --dir-diff will not work using this approach.)
Use the --filesystem=FS option, to allow direct access to these files/directories.


Persistent xinput settings on 16.04 with Compiz

Not "proven to work", but ...

If you place a .desktop file in $HOME/.config/autostart, it will be invoked at GUI startup.

You can find .desktop files to learn from via locate .desktop, or see https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles


You have installed Oracle Java 8

sudo update-alternatives --config mozilla-javaplugin.so

Select the right plug-in

Example output

% sudo update-alternatives --config mozilla-javaplugin.so

There are 3 choices for the alternative mozilla-javaplugin.so (providing /usr/lib/mozilla/plugins/libjavaplugin.so).
  Selection    Path                                                  Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-9-oracle/lib/amd64/libnpjp2.so       1086      auto mode
  1            /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so   1085      manual mode
  2            /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so   1083      manual mode
  3            /usr/lib/jvm/java-9-oracle/lib/amd64/libnpjp2.so       1086      manual mode

Select your right version

Or another solution:

sudo mkdir -p /usr/lib/mozilla/plugins
cd /usr/lib/mozilla/plugins

Find the right plugin:

find /usr -name "libnpjp2.so"

Example output

% find /usr -name "libnpjp2.so"
/usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so
/usr/lib/jvm/java-9-oracle/lib/amd64/libnpjp2.so
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so
Create a symbolic link. E.g.:

ln -s /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so

Restart your browser and check your Java here.


Can ping apache server, but cannot access any other way

Did you ever try checking the ports with nmap?

nmap -sT <IP-ADRESS>

should show the ports on the server.

e.g.

nmap -sT XXX.XXX.XXX.XXX

Starting Nmap 7.01 ( https://nmap.org ) at 2018-05-30 00:06 CEST
Nmap scan report for XXX.XXX.XXX.XXX
Host is up (0.034s latency).
Not shown: 990 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
53/tcp   open  domain
80/tcp   open  http
139/tcp  open  netbios-ssn
443/tcp  open  https
445/tcp  open  microsoft-ds
2002/tcp open  globe
5060/tcp open  sip
8089/tcp open  unknown
8181/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 3.84 seconds


Marvell's wireless driver not recognized

Building up on Doug's manual fix to the problem, I was actually able to automate the process pretty easily. I'm writing this for people who are new to this thread so bear with me while I repeat some things that some of you may already know.

First of all, we need to grab the wpa_gui application in order to replace the NetworkManager service.

sudo apt-get install wpagui

Then we need to edit the /etc/network/interfaces file.

sudo gedit /etc/network/interfaces

Replace everything in this file with:

    auto lo
    auto mlan0
    iface lo inet loopback
    iface mlan0 inet manual
            wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    iface default inet dhcp

The "auto mlan0" line is crucial here because it's what starts the wpa_supplicant daemon automatically at startup. Just like Doug's fix, we still set manual configuration to our mlan0 but instead now just point it to the wpa_supplicant.conf configuration. And the final important bit is that we want our internet to automatically acquire the dhcp from the router, so that's what the last line is doing.

We then go into /etc/wpa_supplicant/ to edit the configuration file.

sudo gedit /etc/wpa_supplicant/wpa_supplicant.conf

This configuration file is a big deal because it will contain network passwords. We want to edit this file initially, and then just relegate any future edits to strictly the GUI. To do that, add the following into the file.

    update_config=1
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Now in the terminal, run the following code to first add your user to the 'netdev' group and then lock this config file down.

sudo adduser YOUR_USER_NAME netdev
chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf

The next order of business is to prevent NetworkManager from running on startup.

sudo mv /etc/init/network-manager.conf /etc/init/network-manager.conf-disabled
sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop.disabled

Finally, we want WPA_gui to start on boot. Since this app doesn't have a service, we just do this from Ubuntu's own Startup Applications tool. Just search for it in Dash Home, click 'Add', write 'wpa_gui -t' into the command section and call it WPA GUI (or anything you want). The -t option is important because it starts wpa_gui in the tray. Save and restart.

Start the gui tool through the icon. mlan0 should be visible under the Adapter list now. Click on 'Scan', select your network of choice, enter your password and watch it connect automatically. Once you're done changing settings, go to File->Save Configuration to save everything. Your Surface Pro will connect to your WiFi automatically from now on.

Thanks go out to XRunHProf's excellent post on configuring WPA on Debian for this.
http://xrunhprof.wordpress.com/2009/09/19/setup-wpa_gui-and-roaming-on-debian/


Not in 11.04, but coming in 11.10, Thunderbird 5 will be the default email client: http://ubuntulook.com/2011/07/07/ubuntu-11-10-uses-thunderbird-5-as-default-mail-client/


/etc/ssl/private is one place meant to store your private keys. It is generally empty unless you put something into it. As you dont remember putting anything into it, you are probably fine.

PHP/Apache does NOT use this location for it ssl private keys. It uses /etc/apache2/ssl/private. SSH keys are stored in /etc/ssh/.

Overall it looks you can get away with this one :D