What is the correct way to keep home directory on USB stick?

Setup
Initially, you can do this to mount and copy the home directory:
mount drive: mount -o uid=user /dev/sdbx /temphomedir Copy files: mount --bind /temphomedir /home/user
This assumes that /dev/sdbx is your USB drive and /home/user is your home directory.
Note
NOTE: make sure that your /home/user directory is empty before you mount the drive.
Adding start up script
According to this question you can use the command crontab -e to edit your cron, then you can add the following line @reboot /mount.sh. Now that we have done that we need to create the mount.sh script. You can do that by typing sudo nano /mount.sh. This will open the nano text editor. Then just past the following:
#!/bin/bash
mount --bind /dev/sdbx /home/user

What this will do is mount the USB to your home directory every time you boot your computer. Make sure /dev/sdbx and /home/user are correct, then type CTR+X to save and quit nano.when you reboot your computer this should work. Please keep in mind that I have not actually tested this, so it may not work.
Hope this helps!


grep gnulinux /boot/grub/grub.cfg
choose and add line to /etc/default/grub -> GRUB_DEFAULT=
update-grub and reboot


This is a fairly old bug in upstart:

https://bugs.launchpad.net/upstart/+bug/328366

To get the variable in post-stop and script... you'll just have to set it both times to work around the bug.


You can change font size on window title (system settings -> fonts) and title bar will adjust itseft accordingly.

I could not find any uncompiled files containing window decorations, so I am not sure if these are just config files to edit.


See here for your main question.

To change what directory the FTP user can access, just make sure that you set chroot_local_user=YES and then run usermod --home /etc/www/html ftpuser to set the user's home directory. Make sure that the user is in the right groups to access anything they need to there.

  How can I secure the FTP from brute force attacks?

Use a secure password. Also, your next questions will help.

You can also look into tools like fail2ban.

  Can I limit it to a specific IP/Subnet?

Best way is probably to use iptables.

  Can I force the user to use a SSL Certificate to connect? If so, is it generatable from the server?

Yes, the Ubuntu guide describes setting up SSL.


Can't install Ubuntu and Windows 7 x64 on same system - MBR UEFI issue

Have you tried recreating the partition in Windows 7 setup?

NOTE: After installing Windows 7, you need to reinstall GRUB. It gets overwritten by the Windows bootloader.


How to setup a webpage for encrypted tunnel

You can install a browser-like proxy software on the server, Glype is one option.

To run it you need a simple apache/php setup.


How to protect code in snaps from unauthorised access?

While part of the process of turning it into a snap means all of those files are owned as root, you can still use file mode bits. Take this snapcraft.yaml for example:

name: not-protected-snap
version: '0.1'
summary: my summary
description: my description

grade: devel
confinement: strict

apps:
  hello:
    command: hello.sh

parts:
  my-part:
    plugin: nil
    build: |
      echo "#!/bin/sh" > $SNAPCRAFT_PART_INSTALL/hello.sh
      echo "echo \"hello world\"" >> $SNAPCRAFT_PART_INSTALL/hello.sh
      chmod a+x $SNAPCRAFT_PART_INSTALL/hello.sh

Run snapcraft on that, and then sudo snap install --dangerous <snap>. This is world readable, as you noted:

$ not-protected-snap.hello
hello world
$ cat /snap/not-protected-snap/current/hello.sh
#!/bin/sh
echo "hello world"

Note what happens if we change this snapcraft.yaml a bit:

name: protected-snap
version: '0.1'
summary: my summary
description: my description

grade: devel
confinement: strict

apps:
  hello:
    command: hello.sh

parts:
  my-part:
    plugin: nil
    build: |
      echo "#!/bin/sh" > $SNAPCRAFT_PART_INSTALL/hello.sh
      echo "echo \"hello world\"" >> $SNAPCRAFT_PART_INSTALL/hello.sh
      chmod 500 $SNAPCRAFT_PART_INSTALL/hello.sh

Run snapcraft on that, and then sudo snap install --dangerous <snap>. Now you'll see the differences you'd expect:

$ protected-snap.hello
/snap/protected-snap/x1/command-hello.wrapper: 5: exec: /snap/protected-snap/x1/hello.sh: Permission denied
$ cat /snap/protected-snap/current/hello.sh cat: /snap/protected-snap/current/hello.sh: Permission denied
$ sudo protected-snap.hello
hello world
$ sudo cat /snap/protected-snap/current/hello.sh
#!/bin/sh
echo "hello world"


Will 3D games run in a VirtualBox4-hosted Windows system under Ubuntu with Intel GMA X4500HD card?

No you can't the 3D Driver that Virtualbox Uses it's not even capable of running the Aero interface in the virtual machines, the 3D it's just basic, and it can't directly access your GPU to provide full 3D support


how to prevent the access to a website by the IP?

Use the 000-default.conf file and set up a Mod Rewrite. This will only work if you use more than one virtual host.


Installing Ubuntu alongside Windows 10: Permission denied

Ok I figured out the issue. Not sure if this will be helpful to others but you never know. I had installed a PCI extension card so that I could connect more hard drives to my server. I didn't think I needed to remove it to install Windows and Ubuntu again, but turns out I do. Now it all works well and gparted can do its job. Thanks for your help everyone!


I suspect the issue lies in the fact that you have one with static and other with dhcp.  It's my experience that when a laptop is plugged in normally the wireless would disconnect and the Ethernet would take over and vise versa. Does this not happen with your computer?

With having two separate ip addresses working simultaneously to same machine you are confusing your data transmissions possibly.... I bet when your wired your wireless connection does not disconnect.

you can try to ping the ip of the wireless card from another computer on the network while problem machine is wired in and if ping is successful it's still connected when it shouldn't be.

Its going to be hard to tell without looking at your network and the traffic.

I can tell by this:

"while sometimes even:

$ ping www.google.com
ping: unknown host www.google.com"

may mean your DNS is not working properly. set static DNS to googles 8.8.8.8 & 8.8.4.4 or any DNS servers of your choosing.

Try a traceroute command on wireless and wired post screenshots or data excluding your personal IP www.whatsmyip.com ex: traceroute google.com

(May need to install if not already installed sudo apt-get install traceroute)

while experiencing the issue do a trace route 10 or so times over back to back and see if the first local address stays the same or bounces back and forth between wired and wireless....

disable wireless while on wired see if packet loss goes down.

you can download Wireshark and use a dns filter to see if the dns request are going to the right place. I can greatly help you if I could have 10 minutes of traffic record for wired and wireless so I can see what is actually going on.

But there will be a lot of personal information about your network in those files.


How to delete a cloud folder but not the locally stored one?

Through the magic of stackable file systems, the files exist in the cloud, and only seem to be on your system. Copy the files to a non-cloud directory on your disk. Then, and only then, delete the cloud folder. It will vanish on your system, too.


I'd add a NAME="my_device" in order to create the corresponding node.

And check your quotes, replace ” by ". It could be just that.


First download the latest release archive from Font-manager github release page.
Then extract the downloaded archive. If the filename is font-manager-0.7.3.tar.bz2, you can use tar xvf font-manager-0.7.3.tar.bz2 to extract it.
Then install these development packages required to build it

sudo apt-get install build-essential valac libjson-glib-dev libgree-dev libgree-0.8-dev libgucharmap-2-90-dev libsqlite3-dev libgirepository1.0-dev

(Optional) If you use file-browser integration, you also need these packages

For nautilus - python-nautilus package
For thunar - thunar-python package

(Optional) If you want to be able to use archive support, you need to have file-roller installed (Which comes with Ubuntu by default).

Then use this command to configure while you're in the root of the source

./configure

Optionally, if you want to enable installation from archives, you can use --with-file-roller option to configure command. In that case, you should have file-roller installed.

Also you can enable file-browser integration for nautilus or thunar.

So, for nautilus integreation and archive support, I'd use

./configure --with-file-roller --with-nautilus --with-thunarx

(Yes, it's thunarx, not thunar)

After the configuration is finished, you'll be given a confirmation like this

Font Manager 0.7.3

C compiler:             gcc
Vala compiler:          /usr/bin/valac
Installation prefix:    /usr/local
Archive Support:        yes
File Browser Support:   yes

Then use make and make install command

make
sudo make install

That should successfully install the font-manager
.

You can also use sudo checkinstall instead of the last command. That will create a deb file of the application and you can later remove it using this command. Also you can reuse the deb filw without doing all these steps again.

sudo dpkg -r font-manager

(Thanks to muru for noting this)

Update

Check the FontManager author's [answer][auth_ans] for easier method to build a deb package.


How to make the cursor in the terminal to stop blinking after it loses focus?

On the command line run

gsettings set org.gnome.desktop.interface cursor-blink-timeout 0


Search for files and copy them to another folder (Thunar)

Where Thunar may struggle with your needs the command line will not. To illustrate this I have created a directory filled with 'pythonesque' files, except for one:

andrew@illium~/test$ ls -1
blah_blah_python.jpg
ordinary_file.txt
python_rulz.txt
test_python.txt
andrew@illium~/test$

Now to copy all of the python related filenames to another directory, leaving our non-python file uncopied:

andrew@illium~/test$ cp -v *python* $HOME/another_directory/
'blah_blah_python.jpg' -> '/home/andrew/another_directory/blah_blah_python.jpg'
'python_rulz.txt' -> '/home/andrew/another_directory/python_rulz.txt'
'test_python.txt' -> '/home/andrew/another_directory/test_python.txt'
andrew@illium~/test$

Note that the non-python named file has been excluded. Perhaps this will suit your needs better rather than trying to massage Thunar beyond its modest capabilities?


Problem Updating Software to Ubuntu 16.04

According to the psensor-unstable PPA on Launchpad, this PPA is not offered for Ubuntu 16.04 Xenial. It only offers packages for up to Ubuntu 14.10 Utopic.

It looks like you tried to integrate the Xenial section of the PPA, which (see above) does not exist. If the repository isn't there, obviously the structures a repository needs to have are not there, in this case the Releases and Packages files. apt basically complains that it couldn't get those two files. And because those two files list what's in the repository, apt additionally informs you that for one repository (namely, the psensor-unstable PPA) it was unable to update the list of packages.

If you need some packages from this PPA, you have to look somewhere else for them. If you don't need this PPA any longer, you should be able to savely remove it.


This script will get the line numbers, then if it is more than 7999 (greater than or equal to 8000) it will make a .tar.gz of the file.

#! /bin/bash

lif=$(wc -l < /home/USER/path/to/file.txt)

if [ "$lif" -gt 7999 ]; then
    tar /home/USER/path/to/where/you/want/the/backup/to/be/filename-$(date +%Y-%m-%d-%H:%M).tar.gz /home/USER/path/to/file.txt

Don't for get to chmod the script to get it to run - chmod +x /home/USER/path/to/script.sh

The cron command would be 0    17  *   *   *   /home/USER/path/to/script.sh to run every dday at 5pm. Use this generator to help get the cron command if you want it to be different.

Thanks @Jnuk for the generator!


You probably just set the wrong keyboard layout for your location during the installation. I don't think the missing numpad has anything to do with it.

For example, I live in the Netherlands but we use the United States keyboard layout. There is a Dutch keyboard layout as well, which is different (obviously), but I don't know what it's used for. Selecting the Dutch keyboard layout for United States keyboard layout causes Lubuntu to link the wrong values to the keys.

To change your keyboard layout, check this wiki page (at Keyboard mapping for 13.10 and beyond).


I see you've already  filed a bug against Hotot.

Please give this bug report a bit more time, it seems to be legitimate. You can't expect feedback from the developers in such short order.

This will very probably be an incompatibility with Lubuntu/LXDE.
I've seen many projects which rely on things like "xdg-open" and gnome-default-applications
to handle urls and so on. Fixing this issue will require the Developers to make specific to LXDE, you'll have to be patient.

Update:

I've rummaged throught the Hotot source code, and found that it - if it detects you're running openbox - first tries to open the URL with firefox (it subsequently tries 'xdg-open', 'google-chrome', 'chromium-browser', 'firefox' again, then 'x-www-browser'). It will open the URL (and assume all goes well) with the first one it recognises as a command that is available on your system.

After this, hotot can't do anything about error that is thrown by the software that was selected as probably being your default browser.

There's a bug in Fedora's xdg-utils package which addressed an issue you might have; namely xdg-open not working properly with LXDE. The bug has been fixed in fedora 14, but it probably hasn't been pulled down by the people at Lubuntu.

So: it seems your bug report in Hotot is invalid, since they are doing everything properly. You will just have to wait for Lubuntu's version of xdg-utils to catch up to the current upstream version (as of the 28th of October).

You can  file a bug against Lubuntu. The better your bug report, the faster it will fixed - as always. :)

Just make sure there's no issue with Firefox before you do.


Listing directories uses the executable bit, I don't think read actually affects directories at all.
You will have to set permissions on each individual file to prevent them from being read or written to.
The following commands will do all this for you, execute them from the folder you want this to start at:

find . -type d | xargs chmod o=rx
find . -type f | xargs chmod o=

find will recursively find files (-type f) and directories (-type d) and print their names (lacking another specified action), and this gets piped to xargs, which executes its arguments with the files it reads from the pipe.  chmod changes the permissions for others (o, meaning neither you nor others in the group owning the file) to exactly (=) read/list (rx) for folders and nothing for plain files.

As grumbel pointed out in a comment, this will only work on well-behaved names.  To get them all, either use his solution:

find . -type d -print0 | xargs -0 chmod o=rx
find . -type f -print0 | xargs -0 chmod o=

or find's builtin -exec:

find . -type d -exec chmod o=rx '{}' ';'
find . -type f -exec chmod o= \{\} \;

Note that you can either quote the braces and semicolon like the first line, or escape them like the second, they just have to be there in separate arguments.  Also, -exec will execute chmod once for each file, while xargs will do it in as few commands as possible (based on the max command line length).  That's why I generally prefer xargs.


You could use this ppa: https://launchpad.net/~gnome3-team/+archive/gnome3

To add it, open terminal Ctrl+Alt+T then type:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update && sudo apt-get install nautilus

I can't test it at the moment though.

Are PPA's safe to add to my system and what are some "red flags" to watch out for?


As to your first question, I would recommend that you install Lubuntu (instead of Ubuntu) on your 10-year old computer. Lubuntu is a variant of Ubuntu which is more lightweight and faster.

Related: What are the minimum system requirements for Lubuntu?

You can find more information about Lubuntu & download it here: http://lubuntu.net

As to your second question, it is possible to install Lubuntu AND Windows XP on your computer, and you can choose which one to boot each time your restart your computer. (That is provided you have enough available disk space to install both operating systems.) So, nothing happens to your Windows.

But the best thing is, you will also be able to try Lubuntu, without installing anything on your computer, before you actually do decide to install it. All you need to do is create a bootable USB drive or CD with Lubuntu, and boot your PC from it. Start from http://lubuntu.net, and if you have any more questions, do not hesitate to post them here.


How to play Race The Sun in full screen 12.04 Unity

Developer here!

Just thought I'd let you know, that in the latest release of Race The Sun (1.1), there is an in-game option to enable full-screen. If you launch the game it should direct you to the download page.

Hope that helps.


Lubuntu 12.10 PPC-Can't Login after install

Not sure what question you are asking so I'm not sure what I'm supposed to answer!  The black screen is described on the known issues page https://wiki.ubuntu.com/PowerPCKnownIssues#A12.10_Quantal_Quetzal

Are you installing to an external hard drive?  Yaboot shouldn't fail to install on 12.10 because I submitted a patch, but you won't have an automatic boot into a usb/firewire drive.  If yaboot really hasn't installed then something horribly has gone wrong, and this may possibly explain your failed login.


I suggest two changes. First, the driver for the unused TL-WN823N still loads. Let's blacklist it to prevent any possible conflicts. This can easily be reversed in the future if needed. From the terminal:

sudo -i
echo "blacklist 8192eu" >>  /etc/modprobe.d/blacklist.conf
exit

Also, there are two possibly conflicting drivers loaded for the ASUS USB-N13; let's try blacklisting one to see if stability improves:

sudo -i
echo "blacklist rtl8192cu" >>  /etc/modprobe.d/blacklist.conf
exit

  Also: following a tip in a different forum or thread, I ran the
  command to change the power setting (?) from 3 to 2. Think this was in
  NetworkManager or a .conf file

Please verify that this is set correctly:

cat /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

If your setting is correct, the result will be:

[connection]
wifi.powersave = 2

Reboot and let us hear the result.


Any help on installing themes for Conky?

~ refers to your home directory.  if your username is algonquin, then /home/algonquin is equivalent to ~


Yes - many! You could compile and build any of the linux tools, or if you like prepackaged solutions you can use apt-get to install packages such as the following:

gpw password generator
keepass2 password safe
john password strength tool
gpg encryption

Look in the apt gui - a large list of security tools are listed there


you can install remmina it is same as RDP.

https://remmina.org/how-to-install-remmina/

sudo snap install remmina


I found this which seems to address your needs.  I haven't tested it ...  you should be able to adapt it for your purposes.  Of course, indiscriminately killing random processes automatically may be inadvisable.

#!/bin/bash

## Note: will kill the top-most process if the $CPU_LOAD is greater than the $CPU_THRESHOLD.
echo
echo checking for run-away process ...

CPU_LOAD=$(uptime | cut -d"," -f4 | cut -d":" -f2 | cut -d" " -f2 | sed -e "s/\.//g")
CPU_THRESHOLD=300
PROCESS=$(ps aux r)
TOPPROCESS=$(ps -eo pid -eo pcpu -eo command | sort -k 2 -r | grep -v PID | head -n 1)

if [ $CPU_LOAD -gt $CPU_THRESHOLD ] ; then
  # kill -9 $(ps -eo pid | sort -k 1 -r | grep -v PID | head -n 1) #original
  # kill -9 $(ps -eo pcpu | sort -k 1 -r | grep -v %CPU | head -n 1)
  kill -9 $TOPPROCESS
  echo system overloading!
  echo Top-most process killed $TOPPROCESS
  echo load average is at $CPU_LOAD
  echo
  echo Active processes...
  ps aux r

  # send an email using mail
  SUBJECT="Runaway Process Report"
  # Email To ?
  EMAIL="me@email.com"
  # Email text/message
  EMAILMESSAGE="/tmp/emailmessage.txt"
  echo "System overloading, possible runaway process."> $EMAILMESSAGE
  echo "Top-most process killed $TOPPROCESS" >>$EMAILMESSAGE
  echo "Load average was at $CPU_LOAD" >>$EMAILMESSAGE
  echo "Active processes..." >>$EMAILMESSAGE
  echo "$PROCESS" >>$EMAILMESSAGE
  mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE

else
 echo
 echo no run-aways.
 echo load average is at $CPU_LOAD
 echo
 echo Active processes...
 ps aux r
fi
exit 0


"Backup Failed": Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup

It seems a known bug in Deja-dup:

https://bugs.launchpad.net/deja-dup/+bug/1217959


Ubuntu 14.04 re-installation - Installing updates from the Internet is taking more than 12 hours

That's very odd. The installer might have crashed or something.

I advise you to shut down your computer (you can just pull the electricity plug if it really has crashed) and try installing again. If the problem occurs again then don't allow the updates. Run the updater after the installation finishes. It's totally the same.


Reset all ubuntu 11.10 compiz settings to default

I suggest backing up all your stuff using a live CD (if you cannot turn on your computer) and reinstall Ubuntu.  I recommend installing 12.04.

There really isn't an efficient way to reset Ubuntu since it doesn't come with your computer by default.(after hours of Googling)


Emacs comes pre-configured to understabd .pl as perl not prolog. To fix that add this to your .emacs configuration file founded in your home directory to change the configuration permanently:

(add-to-list 'auto-mode-alist '("\\.\\(pl\\|pro\\|lgt\\)" . prolog-mode))


Download all files, then move them using shell globs:

#!/bin/bash
wget -i /path/to/download_list
mv s* ./s/
mv b* ./b/

-i: Read URLs from a local or external file.

You might get a warning:

mv: cannot move 's' to a subdirectory of itself.

That's fine, you can ignore it, or use find instead:

#!/bin/bash
wget -i /path/to/download_list
find -maxdepth 1 -iname "s*" -type f -exec mv "{}" ./s \;
find -maxdepth 1 -iname "b*" -type f -exec mv "{}" ./b \;

And with a for loop you can run in on all alphabets, script name is script.sh:

#!/bin/bash
wget -i /path/to/download_list
mkdir -p {a..z}
for l in {a..z};
do
    find -maxdepth 1 -type f -iname "${l}*" -not -iname script.sh -exec mv "{}" "./${l}" \;
done


Where to download latest Android-SDK for Ubuntu other than Android.com

The easiest way is to install Ubuntu Make and then install android-sdk from it:

sudo add-apt-repository ppa:lyzardking/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

umake android android-sdk


VGA out video is wavy and unreadable with a ATI Radeon X1200

Maybe this is a fix:

Create file /etc/modprobe.d/radeon.conf
Then add the next line:
options radeon new_pll=0 modeset=0

Reboot

Via
http://ubuntuforums.org/showpost.php?p=9224574&postcount=8


you can control you desktop background color from the "setting" app in the appearance section.

The fastest way to access the appearance settings is to type appearance in the launcher and then select the appearance item.

in the look tab of the appearance setting you should be able to select wall paper and also change the desktop background color, from the color selector, there you can select your preferred color or background image or gradient(you will see this option at the top right section of the tab immediately above the wallpaper section).

Additionally, you can also select the wall the behavior tab to access the behavior settings.

For more display settings, you can install unity-tweak-tool, which which help you select and change theme and perform some other display setting that are not available on the appearance option.
you can install unity tweak tool using the command below:

sudo apt install unity-tweak-tool


You need to first follow this guide How to install and configure Wine? to the letter. Please make sure that after finishing the guide you end up with a 32-Bit WinePrefix. This should leave you with Wine 1.6 which is the most recent one and with a list of components already installed. The winetricks list-installed command in the terminal should look similar to this list:

cyrex@cyrex:~$ winetricks list-installed
amstream
d3dcompiler_43
d3dx10
d3dx11_42
d3dx11_43
d3dx9_26
d3dx9_28
d3dx9_31
d3dx9_35
d3dx9_36
d3dx9_39
d3dx9_42
d3dx9_43
d3dx9
devenum
dirac
directmusic
directplay
directx9
dmsynth
dotnet20
dotnet40
dsound
ffdshow
icodecs
l3codecx
mfc42
mspatcha
msscript
msvcirt
physx
quartz
vcrun2008
vcrun2010
vcrun6sp6
vcrun6
winhttp
wininet
wsh56vb
wsh57
xact_jun2010
xact
xinput
xna40

Of this list, to have Dishonored working, even with all DLC installed, you need to have at least the following components from the list above:

d3dx11_43
d3dx9_26
d3dx9_28
d3dx9_31
d3dx9_35
d3dx9_36
d3dx9_39
d3dx9_42
d3dx9_43
d3dx9
directmusic
directplay
directx9
dotnet40
dsound
mfc42
mspatcha
msscript
msvcirt
physx
quartz
vcrun2008
vcrun2010
vcrun6sp6
vcrun6
winhttp
wininet
wsh56vb
wsh57
xact_jun2010
xact
xinput
xna40

Now simply run the installer and you should see the following:

Start the installer and when it finishes it is important to check the options that matter:

After which you should be able to simply play the game. My recommendations are to play the game in Windows 7 mode because in Windows XP sometimes there are keyboard keys stuck and sound issues. The end result should be like this:

Here is a video showing how Dishonored will look: http://www.youtube.com/watch?v=_5u-cxCGG9Y


How do I install only the KDE desktop (and not apps) on Unity?

The command / package you want is :

sudo apt-get install kde-plasma-desktop

You can also search software centre for 'kde-plasma-desktop' and install it that way.

This package installs KDE desktop with minimal applications, and you can continue to use you ubuntu/gnome apps with it. I have used this with no problems, just select KDE from the login menu once it has been installed.

The KDE packages will be automatically updated through update manager once installed.


This is a known bug/feature with Unity and it's fairly simple to work around.

Instead of just clicking on the Nautilus (file browser) icon, Shift+Click or scroll the mouse wheel over the icon and it should open up the already open window!


I found a solution to my problem.
My PulseAudio daemon wasn't working.I noticed it when I tried to run pavucontrol tool.
There was missing shared library libpulse-common (I had older version of this lib installed).

The problem was caused by the fact that I added PPA of Ubuntu Audio Dev team (ppa:ubuntu-audio-dev/ppa) to my software sources. I did some reinstallations of indicator-sound and pulseaudio package and somehow libs went out of sync.

How to solve it:

Uninstal pulseuadio package sudo apt-get purge pulseaudio
Remove audio dev team PPA sudo ppa-purge ppa:ubuntu-audio-dev/ppa
update source list and get new packages sudo apt-get update
then sudo apt-get upgrade
install pulseaudio again sudo apt-get install pulseaudio
reboot sudo shutdown now -r


LibreOffice version 5.1.6.2 is the current version of the default LibreOffice package in Ubuntu 16.04 the same version as shown in Help -> About, so it is clear that you have the default LibreOffice apt package installed. The results of dpkg -l | grep libreoffice show that you have two different versions of LibreOffice Writer, Calc and Math installed alongside each other and both LibreOffice versions were installed by apt.

To select one version of LibreOffice as the default version run the following command:

sudo update-alternatives --config libreoffice

If the results of the above command are update-alternatives: error: no alternatives for libreoffice then there is only one version of LibreOffice currently installed. Otherwise it will show both versions of LibreOffice with a selection number in front of each one and the following message:

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

Enter the selection number and press Enter to select it. Then confirm that the selected version of LibreOffice is now the default version by opening LibreOffice and selecting Help -> About.

To uninstall one version of LibreOffice install Synaptic Package Manager (sudo apt install synaptic). Open synaptic with pkexec synaptic, select Status -> Installed, search for libreoffice, and remove all the packages for the LibreOffice version that you want to uninstall. Right-click on each package that you want to remove and from the pop-up context menu select Mark for Removal. Then click the Apply gear icon in the toolbar to apply the changes.


Unable to install libpcre3-dev in ubuntu 14.10

I had this problem and update the list package (/etc/apt/sources.list) file and add the following line to it:

deb http://security.ubuntu.com/ubuntu wily-security main

After that run:

apt-get update

And now you can install libpcre3 8.35

But please be sure that after installing the package change the (/etc/apt/sources.list) to the first situation and remove the line you added. Because it may produce inconsistency to install other packages in future.


Using Ubuntu live CD how to mount my old backtrack install?

What you could try is start Nautilus as root and then copy the files. To start Nautilus as root, enter in terminal:

gksu nautilus


Here is a similar question with an accepted answer:   Switching between graphics cards

I can't seem to flag this question as a duplicate. Somebody help?


How do I get a Ralink RT3290 wireless card working?

There are several guides that speak of the same way. Guides like this source, this source or the bug report mention some procedures to get this Wireless card working on several types of laptops.

Some cases mention downgrading to 12.04 and then installing a specific 3.6 kernel version for it, others mention upgrading to 13.04 and installing the 3.9 kernel version. And even another case where it mentions the user to download the drivers from the official site and do a step by step guide on how to install it.

I will mention several ways of doing it, all of which involve downloading the driver, compiling it and making sure it works. It has been noted that in the 3.9 kernel version, the wireless card is working correctly, so in 13.04 with backports or 13.10 this issue should be resolved.

So here are several ways you can get your Ralink RT3290 wireless card working in 12.04 and above (Not all methods will work, so try to look for the one that works best for your computer):

Since your vendor id is 1814:3290 it means you have a Ralink RT3290 wireless card. For that case we (After connecting the wired cable):

Connect a wired cable connection to the computer to have Internet connection for the moment while you do the steps below.
Open a terminal and execute the following line to install everything needed to compile your very own wireless drivers:

sudo apt-get update && sudo apt-get install build-essential linux-headers-generic

Now, depending on how you wish to proceed, follow one of the guides below:

NOT OFFICIAL DRIVERS FOR Kernel 4.X

If the above does not work for you on Kernels 4.X, the solution I was able to test following this source was

PLease Download the Updated Driver (Big Thanks to Jim Colaco) From Here or Here. This was tested on Ubuntu 16.04 and 16.10.

sudo tar -xvf rt3290sta-2.6.0.0.dkms.tar -C /usr/src
sudo dkms install -m rt3290sta -v 2.6.0.0 --force
sudo reboot

Now on some cases, you will need to enable the interface for the wireless driver (Because it  will not bring the interface up automatically) and then restart the network service. Something like this:

sudo ifconfig WIRELESSCARD up
sudo service network-manager restart

So an example would be:

sudo ifconfig eno1 up
sudo service network-manager restart

I recommend putting this 2 lines inside /etc/rc.local above the "exit 0" line so it brings the interface up automatically.

OFFICIAL SITE GUIDE

Go to Mediatek and download the Ralink RT3290 Driver for Linux MediaTek did a fine job on moving the link to download and not having a redirect for it. Here is the new Link for all Downloadable Firmware but guess what, they removed RT3290 from it. Go Mediatek ;)

Thanks to others that also had the problem and shared their sources, here is a list of all available Download links for you to use while Mediatek decides to help Linux and open up:

http://www.mediafire.com/download/l3zoch2y1hbcali/RT3290.tar.gz
http://dl.dropbox.com/u/11876059/DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz

Rename the file to 2012_0508_RT3290_Linux_STA_v2.6.0.0.tar.bz2 because Mediatek did a great job on making sure the file works correctly.
Extract the file and it should create a folder named DPO_RT3290_LinuxSTA_V2600_20120508
Go to DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/ and edit the file config.mk
On line 31 you should find the variable HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n. Change it to

HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

  and save the file.
Go to your main extracted folder (It should be the DPO_RT3290_LinuxSTA_V2600_20120508 folder) and type:

make
sudo make install

If everything compiled correctly do the following:

modprobe rt3290sta

If step 7 runs without any problems, we add the module to the list of modules to loaded on every boot:

sudo -H gedit /etc/modules

 and add a line at the end of the file that says rt3290sta. Save and exit.

DROPBOX GUIDE

(Not recommended, as you're downloading an untrusted tarball off of a Dropbox account.

Download the source driver:

wget http://dl.dropbox.com/u/11876059/DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz

and we then decompress the file

tar -xvf DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz

Go inside the newly created folder:

cd ~/DPO_RT3290_LinuxSTA_V2600_20120508

and we start the compiling process

make
sudo make install

We then test to see if the driver is correctly compiled and installed

sudo modprobe rt3290sta

If step 3 runs without any problems we then add the module to the list of modules to loaded upon every boot:

sudo -H gedit /etc/modules

and add a line at the bottom that says rt3290sta. Save and exit.

EXTRA GUIDE

Some users mention additional steps. This might or not apply to you. If you feel the system is not working, maybe one of the points below can help you along the way:

When opening the config.mk file, do not only change the HAS_NATIVE_WPA_SUPPLICANT to a value of y, but also do it with HAS_WPA_SUPPLICANT in case it has n. In my case it had y but it should be checked to make sure both WPA_SUPPLICANT are set to `y.
Blacklisting conflicting wireless drivers. Do the following:

sudo -H gedit /etc/modprobe.d/blacklist.conf

Add the following lines (Make sure they are not there in the first place):

#Wireless drivers conflicting with rt3562sta
blacklist rt2800pci
blacklist rt2x00pci

Update initramfs: sudo update-initramfs -u
If you have trouble compiling the driver on Ubuntu 13.04 or Ubuntu 13.10 (and perhaps later versions as well), then this may be because of a change to the Linux kernel creating an incompatibility with the driver code. This can possibly be fixed by opening

gedit os/linux/pci_main_dev.c

and adding the following after the "#include " near the top

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
#define __devexit
#define __devinit
#define __devinitdata
#endif

then change the portion of the file which says

#if LINUX_VERSION_CODE >= 0x20412
remove:     __devexit_p(rt2860_remove_one),
#else
remove:     __devexit(rt2860_remove_one),
#endif

to

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
remove:     rt2860_remove_one,
#else
#if LINUX_VERSION_CODE >= 0x20412
remove:     __devexit_p(rt2860_remove_one),
#else
remove:     __devexit(rt2860_remove_one),
#endif
#endif

This will hopefully solve the compiler error. Return to the  DPO_RT3290_LinuxSTA_V2600_20120508 directory and follow the instructions as above.


How do I set the position of a Cinnamon desklet?

just drag it :). left click on desklet and drag.
cinnamon desklet's is little buggy on ubuntu now


Installing Android SDK on Ubuntu (12.04 or above) 64 bit without ia32-libs

From my initial search the minimal set seems to be:

lib32z1, lib32ncurses5, lib32bz2-1.0, lib32stdc++6.

After installing the above 4 packages, the Android SDK binaries were all happy on my machine.

I feel the exact answer could be a subset of the above 4.

All I can state is that sudo apt-get install-ing the above 4 has installed the required libraries for the 32-bit SDK binaries on my 64 bit machine without having to install the ia32-libs package.


(K)Ubuntu 18.04 boots into emergency mode after Windows 10 was reinstalled

Okay so I got the system to boot again after I commented every partition line except the ubuntu partition. Have to see if there remain any problem but at least I can backup my data now.


GNOME extension 'Auto Move Windows' not working on Ubuntu 18.04 for terminal

Seems that there are 2 .desktop files in /usr/share/applications/ for Terminal app and the one executing is org.gnome.Terminal.desktop while in dash or with Ctrl+Alt+T shortcut..

setting this value in dconf org.gnome.Terminal.desktop will open the terminal in required workspace.

https://imgur.com/f9fS6sC


Why does hibernate not work after update from 13.10 to 14.04?

I found that, in Lubuntu anyway, if you open synaptic and search term 'hibernate' there is a package simply called hibernate.  Just install that and instead use it, not pm-hibernate.  Works great, even better.


Cannot write to Folder mounted with SSHFS

Your update indicates that only certain applications are having trouble writing to the sshfs mount. You might have to enable one or more of the "workarounds" listed in the sshfs man page. I would start with the "truncate" and "rename" workarounds:

sshfs -o idmap=user -o workaround=truncate:rename jm@example.com:/path/to/folder folder


How to move the logo on the login screen? GDM Ubuntu 15.10

Quality should be better ! I hope you'll understand what i want to do


How do I transfer a casper-rw file to a partition?

There are 2 ways of copying casper-rw contents.
Use dd command
sudo dd if=/path/to/casper-rw of=/dev/<partition>

Then resize new partition with Gparted or resize2fs
Use cp command
sudo mkdir /mnt/casper-rw /mnt/target
sudo mount -o loop /path/to/casper-rw /mnt/casper-rw
sudo mount /dev/sdbX /mnt/target
cp -r /mnt/casper-rw/* /mnt/target

Thus /dev/sdbX does not need to be resized


Given a printers.conf file, is it possible to generate the associated .ppd files programmatically?

Okay, finally figured it out:

Get printer name from printers.conf
Call lpinfo to get the ppd info
Call cups-driverd cat to get the ppd contents


won't boot anymore: how to disable /etc/fstab check?

I'm not sure if you want to automount the optional disk at boot time or not.

If you want to automount the optional disk without halting the system when not present, then change the line to:

/dev/sde1 /mnt/anneDisc ext4 auto,nofail 0 0

Else, you can specify the disk as noauto

/dev/sde1 /mnt/anneDisc ext4 noauto 0 0


"PANIC: early exception 08 rip 246:10" error  with an Nvidia 210G

This seems like a hardware problem. Someone else fixed it here with a hardware-related thing.


How to decrease ubuntu disk space and increase windows' on a dual boot win10/ubuntu 15.04?

You can use nice and simple GUI for the partition manager. sudo apt-get install gparted. And than do whatever you want with your partitions.


First I've tried with this, but it's not anymore supported:

gnome-terminal --title="SOME TITLE HERE"

Option "--title" is no longer supported in this version of gnome-terminal.

So I've solved with this: echo -ne '\033]0;New title\007'


Why doesn't file detect the mime-type of mp3 properly?

If you noticed this after an update (which sometimes happens) or after an upgrade. This would be a regression, as such is a bug and needs to be reported.

Bug reports How do I submit a bug?

For reference check this posting which may be related:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609211


Find a string in name and move at the of the of the name before the extension

Given

$ ls *.ext
bar-ABC-DE7654321.ext  foo-ABC-DE1234567.ext

then

$ rename -v 's/(ABC)-(DE\d{7})/$2-$1/' *.ext
rename(bar-ABC-DE7654321.ext, bar-DE7654321-ABC.ext)
rename(foo-ABC-DE1234567.ext, foo-DE1234567-ABC.ext)

resulting in

$ ls *.ext
bar-DE7654321-ABC.ext  foo-DE1234567-ABC.ext

NB test with -n first


from last week, am also experienced that problem,   AMD graphics drivers not available in ubuntu 18.04 LTS(Bionic bever), But In ubuntu 18.10(Cosmic cuttlefish) have the support of AMD vega series drivers, here the release notes, New features in 18.10 at the first line they mention that information


The simplest way is to move the welcome page. Two things:

Apache on Ubuntu 14.04 uses /var/www/html/ directory by default, so you can either start using that directory or change the Apache configuration to use /var/www.
The default page is /var/www/html/index.html. Rename it to something else, like /var/www/html/apache-welcome.html.


I have this also as well with my old Dell that has an ATI card in it.  Unfortunately I don't know how to fix it, but I have found a solution so I don't have to hard reset all the time.  Note that this will kill all open processes in your current session:

  Press Ctrl+Alt+F1
  Log in with username and password (must be able to sudo)
  Run "sudo killall Xorg"    or (if the previous doesn't work)     "sudo kill -9 $(ps -A | grep X | awk '{print $1}')"
  The X server will be killed and should spring back to life so you can login again without having to hard reboot.

Though not ideal, certainly an improvement for me over the hard reset.


Changelogs are not downloaded anywhere. They are received from the repository online.

You can find changelogs HERE.

This is for main. Same way you can find changelogs for other sections.

man apt-get

changelog
           changelog downloads a package changelog and displays it through
           sensible-pager. The server name and base directory is defined in
           the APT::Changelogs::Server variable (e.g.
           packages.debian.org/changelogs[1] for Debian or
           changelogs.ubuntu.com/changelogs[2] for Ubuntu). By default it
           displays the changelog for the version that is installed. However,
           you can specify the same options as for the install command.


You can do this by editing /etc/default/grub:

sudo nano /etc/default/grub

You can change the value for GRUB_DEFAULT= to

a certain number, which is not recommended, because the menu entries can change,
a string like "Windows XP" or however the entry for Windows XP is named; or
save the last used entry with GRUB_DEFAULT=saved and adding GRUB_SAVEDEFAULT=true

after you have made the changes, press Ctrl+o to save and Ctrl+x to leave. Then run sudo update-grub to apply the changes.

I recommend the last option, it's the least annoying option in most cases, unless you boot into another OS each time you reboot.

See also the community documentation for Grub2 and Grub2/Setup.


ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell HP Desktop

I tried the procedure mentioned here but nothing changed. I then got a suggestion of running grub-install instead of update-grub after update-initramfs and that mysteriously did the trick.


Permission of a mounted EXT4 for a specific user

Just a typo, look at step 6 in your question:

You removed /home/me/Videos with rm -r -f /home/me/Videos
You used ls instead of ln in ls -s /mnt/md0_crypt/me/Videos /home/me/Videos, but you cannot ls this folder, you just removed it.

The error message says ls: Access to '/home/me/Videos' not possible, it's not complaining that ln fails, ls is failing.


Is there a text mode browser which supports javascript?

edbrowse claims to support JavaScript (but I've never used it)

As ed is the standard editor edbrowse may become the standard browser ;-).


open a terminal at the same window the GUI is at?

In the default Ubuntu file browser, Nautilus, this is quite easy to do. (Nautilus is included with Ubuntu, Ubuntu GNOME and possibly Ubuntu MATE.)

Navigate to the desired folder, hold down Shift, right click and select the Open Terminal Here option.

If you happen to use KDE, I believe that the same procedure will work. If you have XFCE, then you're set. As Terrance said, Thunar has the option on a simple right click.

If holding Shift doesn't work, try this:
Open a terminal and run sudo apt-get install nautilus-open-terminal. Once that finishes, relog, and there should be an "open in terminal" option in the right click menu.


No more disk space: How can I find what is taking up the space?

As always in Linux, there's more than one way to get the job done. However, if you need to do it from CLI, this is my preferred method:

I start by running this as root or with sudo:

du -cha --max-depth=1 / | grep -E "M|G"

The grep is to limit the returning lines to those which return with values in the Megabyte or Gigabyte range. If your disks are big enough, you could add |T as well to include Terabyte amounts. You may get some errors on /proc, /sys, and/or /dev since they are not real files on disk. However, it should still provide valid output for the rest of the directories in root. After you find the biggest ones you can then run the command inside of that directory in order to narrow your way down the culprit. So for example, if /var was the biggest you could do it like this next:

du -cha --max-depth=1 /var | grep -E "M|G"

That should lead you to the problem children!

Additional Considerations

While the above command will certainly do the trick, I had some constructive criticism in the comments below that pointed out some things you could also include.

The grep I provided could result in the occasional "K" value being returned if the name of the directory or file has a capital G or M. If you absolutely don't want any of the K valued directories showing up you'd want to up your regex game to be more creative and complex. e.g. grep -E "^[0-9\.]*[MG]"
If you know which drive is the issue and it has other mounted drives on top of it that you don't want to waste time including in your search, you could add the -x flag to your du command. Man page description of that flag:

  -x, --one-file-system
      skip directories on different file systems

You can sort the output of the du command so that the highest value is at the bottom. Just append this to the end of the command: | sort -h


At least if you're launching the command in a bash shell, you might be able to use the internal variable $! which returns the PID of the last background job e.g.

php index.php parse & top -p $!


All the colors, graphics, and layout details for Ubuntu can be found in the Ubuntu Design brand assets.

From the colour palette page you'll find that:

The Purple (CANONICAL AUBERGINE) is #772953
The Orange (UBUNTU ORANGE) is #e95420


Modern SSDs don't have a problem with swap. Either add an AC power supply to your external disk, or move swap to your SSD. With only 4G RAM, it will swap. Create/update your swap to 4G minimum.

Verify proper swap operation by using the free -h or swapon command.

Update #1:

Creating a /swapfile on the SSD will require four things...

properly create /swapfile or swap partition
edit /etc/fstab, change any existing swap lines with current UUID, or for /swapfile to:

/swapfile    none    swap    sw      0   0
edit /etc/initramfs-tools/conf.d/resume if it exists

sudo -H gedit /etc/initramfs-tools/conf.d/resume
sudo update-initramfs -c -k $(uname -r)

edit /etc/default/grub and check for resume= kernel parameters

sudo -H gedit /etc/default/grub
sudo update-grub

Update #2:

Video rendering problems. With only 4G RAM, setting vm.swappiness=30 is absolutely wrong.

You really need more RAM. Always add RAM in matched pairs, so that the system can take advantage of memory interleaving. So, if you've got one 4G DIMM now, add a matching 4G DIMM. Or, replace the 4G DIMM with two 8G DIMMs.

We'll try and reset your vm.swappiness to a more reasonable value for your current memory size...

Set vm.swappiness=80 (based on 4G RAM and 10G SWAP), this way...

sudo -H gedit /etc/sysctl.conf # edit this file

Search for an existing vm.swappiness= entry...

CTRL+f vm.swappiness

If found, edit it to say vm.swappiness=80
If not found, add vm.swappiness=80 at the end of the file

Save your edits and quit gedit

sudo sysctl -p


How to stop circular switching of workspaces in Xubuntu?

In settings manager - window manager tweaks - workspaces you can control what happens when workspaces wrap.  Unticking the option shown in the image stops this "cycling" effect.


Klavaro(Click to install)

Or install from the command line with

sudo apt-get install klavaro

Ubuntu 16.04 (Xenial Xerus) or later

sudo apt install klavaro

  Klavaro is a simple tutor to teach correct typing, almost independently of language and very flexible regarding to new or unknown keyboard layouts.
  Its key features are:
  * Internationalization
  * Ready to use keyboard layouts
  * Keyboard layout editor
  * Basic course
  * Adaptability, velocity and fluidness exercises
  * Progress charts.

Screenshots


How to set python 3 as default interpreter while working with rPython

From the rPython INSTALL manual:

  In systems where several Python versions coexist, the user can choose the Python version to use at installation time. By default, the package will be installed using the Python version given by

$ python --version

  but it is possible to select a different one if the PYTHON_PYTHON_VERSION environment variable is appropriately set.

  For instance, if it is defined as

RPYTHON_PYTHON_VERSION=3.2

  it will try to use Python 3.2 (looking for python3.2 and python3.2-config in the path). If set to

RPYTHON_PYTHON_VERSION=3

  it will install against the "canonical" Python version in the system within the 3.x branch.

Ergo, you need to start R with the environment variable RPYTHON_PYTHON_VERSION set to 3, e. g.:

RPYTHON_PYTHON_VERSION=3 R

The same applies if you're using R with some front-end.


Move partitions mounted at /mnt to /media?

The following command is used to unmount whatever is currently mounted at a particular directory (-v turns on verbose output so that you're informed by the command as to what's going on during the mounting/unmounting process):

sudo umount -v [DIRECTORY]

In your case, you're going to have to run these four commands:

sudo umount -v /mnt/Stuff
sudo umount -v /mnt/Movies
sudo umount -v /mnt/Hollywood
sudo umount -v /mnt/Series

Here's how you remount your partitions (and yes, your file manager will have no problems seeing and opening them up) (don't forget to create the directories themselves first: sudo mkdir /media/Stuff etc.):

sudo mount -t auto -o rw /dev/sdb1 /media/Stuff -v
sudo mount -t auto -o rw /dev/sdb2 /media/Movies -v
sudo mount -t auto -o rw /dev/sdb3 /media/Hollywood -v
sudo mount -t auto -o rw /dev/sdb4 /media/Series -v

Now, open the /etc/fstab file like this:

sudo nano -w /etc/fstab

And change all occurrences of mnt in there to media:

/dev/disk/by-uuid/54c9765b-af6d-4a62-905f-09b56e280178 /media/Stuff auto
nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/b2d7f1a7-f3e6-4ca5-9925-d8225c897e4d /media/Movies
auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/c2104e2a-cc8e-4b7b-9bba-a05d316472b4 /media/Hollywood
auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/707694b6-97b8-4374-9283-c98192591486 /media/Series
auto nosuid,nodev,nofail,x-gvfs-show 0 0

As for your last question, there are neither real advantages nor disadvantages to moving your partitions to the media directory except that the mnt directory traditionally has been used primarily for temporary mounting. So, it might indeed be logical to have your stuff mounted in the media directory, though the media directory is typically used for removable media such as USB sticks, external hard drives, CD-ROMs et cetera. Other than that, it makes no difference whatsoever where your things are mounted in the file system.


How can I install Google Chrome on Ubuntu 64-bit?

Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon.

Download the latest Google Chrome .deb package with wget:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

Installing packages on Ubuntu requires sudo privileges. Make sure you are running the following command as a user with sudo privileges.

Install the Google Chrome .deb package by typing:

sudo dpkg -i google-chrome-stable_current_amd64.deb

Enter your password and wait for the successful installation.
Then you can launch it by searching in activities pane.


I know of exactly what you are looking for, and how to use it!

Run:

git clone git://github.com/GM-Script-Writer-62850/Ubuntu-Mainline-Kernel-Updater
bash Ubuntu-Mainline-Kernel-Updater/install

Then run for the latest:

KernelUpdateChecker -no-rc -v 4.6.3 -r yakkety
/tmp/kernel-update

And follow the prompts!

Or for the latest Xenial:

KernelUpdateChecker -no-rc -r xenial
/tmp/kernel-update

And follow the prompts!

To run this on login, search for startup applications, and edit the entry KernelUpdateChecker (I think that is what it is or something similar) and change it to the first command (e.g. KernelUpdateChecker -no-rc -r xenial.) It will tell you if there is a new kernel avaliable and to run /tmp/kernel-update.


Problems upgrading from 14.04 to 16.04 January 2020

First of all, you are working with an unsupported version of Ubuntu, version 14.04. "Unsupported" also means no upgrade is supported anymore. So quit your attempts to upgrade this way immediately.

As a general advise, do not upgrade over an older version. Instead make sure that the backup of your private user files is up to date, and then perform a fresh install of the latest long term release edition of Ubuntu 18.04.

A fresh install is the best, most tested and most trouble free approach for any operating system. Doing so, you are adopting the thoroughly tested system defaults. In contrast, when you upgrade, you are carrying over old configuration which may not be optimal, may conflict with newer configuration settings, or cause more severe issues altogether.

A fresh install takes no more than 15 - 20 minutes. It is the least likely to run into problems. You then have a stable, fresh and tested system where you can put your own data back.


How to layout application icons in the panel?

These icons are a few different things:

The Notification area
The Indicator applet (all the icons are in one single panel applet)
The Clock
The Session Indicator

Those are all panel applets. They are little programs that display on the panel. You can move them around like so:

Right click and un-check Lock To Panel, then right click again and select Move. You may need to unlock them all to move one after the others.

Note: right-clicking the notification area will bring up the context-menu of the icon you've clicked. To get it's menu, right click on the little grabbing area on the left of it:

You can check if your panel will look alright after rebooting by forcing it to restart:

killall gnome-panel

Or, if you want to get back to the original configuration, undoing all your changes (that is all the changes you have ever made):

mv ~/.gconf/apps/panel ~/gnome-panel-backup
killall gnome-panel

Open a Terminal via Applications → Accessories → Terminal to enter those commands.


I can't run Ubuntu 12.10 well on my Sony P series

Since Unity 2D is dropped since Ubuntu 12.10, all devices run Untiy 3D, also low-powered machines which uses the CPU when the graphics card isn't capable enough to run the Unity interface, which makes it very slow tot use.


Why does my Perl script work fine in Windows but not in Ubuntu?

You ran a script test.pl, but you didn't run the one that you posted.  You apparently ran a script that is in your PATH, while the script you posted is not in your PATH.
There's nothing in the script that you posted that will produce the output you posted in your question.
The script you posted works fine in Ubuntu.  These are the things you need to ensure when running a script in Ubuntu.
Running Scripts in Linux
You can call the script using the interpreter's name. In this case:
$ perl test.pl
$ perl /home/user/test.pl

This will run the script that is either currently in the same directory where the command is call or found in the Path variable.  This method will not search the PATH variable.  If the script is not located in the current folder you have to give a full pathname for the script to be executed.
The script does not need to have the shebang (#!/usr/bin/perl) header.
Setting the execute bit
You can set the exec bit with:
$ chmod +x test.pl

In conjunction with the execute bit set, it will also need the shebang header.  If the exec bit is set the script can be called by it's file name.  It will only run a script that is found in the PATH variable.  The first one located by the order in the PATH will be executed.  Unlike Windows which you said works, by default (and for security reasons) the current directory . is not in the user's path and will not be searched.  You can check your path variable by running:
 $ echo $PATH

The script will execute if it's located in one of these (among others) default path search locations:
~/bin
/usr/local/bin

If the script is not in a directory of the PATH variable you have to specify the full pathname to run it:
$ ./test.pl
$ /home/userid/test.pl

Identifying which script is being located
You can check the location of a script that is being run with this command:
$ type test.pl

That will show you the full pathname of the first test.pl script located.  If there are multiple scripts in different PATHs you can display all of them with this command:
$ type -a test.pl

In this case if there are multiple scripts by the same name, calling the script by the full pathname would be the best method.  A script by such a common name as test.pl should always be called by the full pathname to ensure the correct one is being executed.


Ubuntu 16.04 Remmina - Unable to Connect to the Server

Tap on search icon --> Allow remote access to your computer --> move to Remote tab --> unmark Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)

See the Picture


Migrating users from Fedora, anything to look out for?

Didn't end up running into any issues during the migration. Just had to migrate the user entries in those files over. The password encryption was different, but ubuntu accounts for that when validating a password


The answer is in your question. You must to install g++ (the GNU C++ compiler)  first.

To install g++ package from terminal you can use the following command:

sudo apt-get install g++


No webpage was found on Ubuntu server 16.04

Apache is a feature rich product that is non-trivial to setup and administer.  The folks at the Apache project have made great strides over the years to get their web server to work "out-of-the-box" with very little work by people who have very little knowledge.  However, to truly understand Apache and get the most out of that software, at least looking at the documentation will be extremely helpful:

http://httpd.apache.org/docs/current/

I'd guess that you either have a problem with port 80/443 requests being blocked or rejected.  Or you have a files permission issue with the default index page or it's file system.

There are too many potential problem areas to offer opinions regarding a "blindingly obvious" installation or configuration mistake you might have made, based on the sparse information you provided.  At this point we don't even know if the Apache processes are even running properly or how you are typing to access the web page(s).

Have a look at the documentation.  It was written in a step-by-step fashion and is geared to new users who know nothing about web servers.

In particular, have a look at the FAQ: https://wiki.apache.org/httpd/FAQ

If you still can't get your problem resolved, post detailed information about what you've done to isolate and troubleshoot this, as well as relevant firewall, .htaccess, file protection masks, error log file information and so on.

Spoiler alert:  if DocumentRoot is set to /var/www/html and the default Apache index page is in that directory, and is world readable,

lynx localhost

should bring it up from a terminal session.  If this works (or doesn't) it really narrows down the list of possible causes.

You may have to install lynx first.

sudo apt-get install lynx


Got a new SSD, don't want to wear it out but I still want to use some of it to store data files together with the old HDD

You have a few options depending on what you're trying to accomplish:

Use bcache: You will be able to eat your cake, but not keep it.

Yes, the amount of space you reserve for caching will be just like the opposite of a swap file: the amount you specify will be "taken away" from the total amount of disk space and given to the memory subsystem to be used as buffers for the other hard drive.
To control which files do get cached, use something like vmtouch to fine-tune the bcache caching.
Use LVM: You will get to keep your cake, but not eat it.

You can use the Logical Volume Manager to create a volume that contains both SSD and HDD creating a large /home volume that contains the space from both, but:

You will have no control over which file goes on the SSD and which one on the HDD
If you lose one of the two drives, you lose all data and will need to restore from back-up!!!

Use a manual system: You will be able to keep your cake, and eat it.

Partition the drive into separate file systems: put / on the SSD and /home on the HDD.  On top of this, you should put the all the files you want to go fast into /media/FastData and symlink the originals to the ones in /media/FastData if and only if these files reside in your /home (otherwise they already reside on the SSD anyway)

Note 1: I have a small SSD and a large HDD, so I use yet another system: / on the SSD and /home on the HDD and don't bother to optimise further...
Note 2: A union file system will not help you any more then the manual system...
Note 3: Here are some more tips not to wear out your SSD from bullet point 4 and onwards


This could be due to a variety of problems. I have had success diagnosing sound issues with this Sound Troubleshooting Guide before.


I will try to answer without going through the details. The final scope of Kubernetes is to provide a way to deploy containers and organize them (for instance: make sure they are the number required, make sure they are exposed through a service, make sure they are talking together...). We may call this a Caas. Writing, building and consuming container image with applications in it is a standard process. Therefore, to my understanding, the answer is yes. For simple deployment (like mysql wordpress here) it could be straightforward (near to turnkey). And of course become a more complex beast for bigger projects.


As of unity launched, Ubuntu used the Global menu feature that places the menu bar for each application on the bar at the top of the screen. So, if you wish to change anything for an application, you will need to hover over the top task bar while focusing on the application.

Otherwise, there are few command you can use for changing Calculator mode without accessing this hidden menu.

Basic mode :

gsettings set org.gnome.calculator button-mode basic; gnome-calculator

Advanced mode :

gsettings set org.gnome.calculator button-mode advanced; gnome-calculator

Financial mode :

gsettings set org.gnome.calculator button-mode financial; gnome-calculator

Programming mode :

gsettings set org.gnome.calculator button-mode programming; gnome-calculator

Keyboard mode :

gsettings set org.gnome.calculator button-mode keyboard; gnome-calculator


Using find and the perl rename command:

find . -depth -name "*-*" -execdir prename -v s/-/_/g {} +


Synaptic Package manager not showing installed package virtualenv

If virtualenv was installed from source code, rather than a .deb or PPA, then Synaptics and APT will be unaware of the program installed.

As your version of virtualenv was only released 2/22/2019 and not available in Launchpad or the Ubuntu repositories, I assume that it was installed from source.


I know I'm a bit late, but owning two Evoluent Vertical Mice (models 2 and 4), I'm pretty sure I know what your problem is. In fact, it's a cable problem. Most Evoluent mouses tend to have the same problem, both of mine had it. The way the main cable passes inside the mouse, it tends to break from the inside after a couple of years of use. You will find instruction videos on how to fix this. I tried myself, and it works. For example:

https://www.youtube.com/watch?v=EE_Z-vXzDTw

If you don't feel like repairing it yourself or simply don't have the tools to do it, you can also replace the cable, and it's cheap. Here's a link sent to me by an Evoluent employee. He told me the inside connector is pretty standard, and it should work like a charm.

http://www.ebay.com/itm/FOR-New-Microsoft-Intellimouse-Explorer-IE3-0-Gaming-Mouse-Mice-USB-Line-cable-/161706519199?hash=item25a675aa9f

Hope this helps!


I've downloaded Ubuntu and it won't open as the file is damaged

Just download it again without paying anything...
Go at the end of the page and click on "Not now, take me to the download ›"

You might also consider downloading via the official torrents, since there you have already an integrated integrity check.


The technique detailed here tends to work for this.

As stated there, it could potentially cause breakage, the sense of your Ubuntu system not starting up or not working right. It's unlikely to cause data loss. (That is, you should still be able to recover any documents or other important files you need and reinstall Ubuntu, if something goes wrong.) My understanding is that this procedure works well for most people, and that problems are infrequent.

You only have Ubuntu, Lubuntu, and Xubuntu packages installed, you want keep Xubuntu, and the version is 12.10, so it's sufficient for you just to run these two commands:

sudo apt-get remove account-plugin-aim account-plugin-facebook account-plugin-flickr account-plugin-google account-plugin-icons account-plugin-identica account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo activity-log-manager-common activity-log-manager-control-center adium-theme-ubuntu aisleriot apg appmenu-gtk appmenu-gtk3 appmenu-qt apturl apturl-common bamfdaemon baobab bluez-gstreamer branding-ubuntu brasero brasero-cdrkit brasero-common checkbox checkbox-qt compiz compiz-core compiz-gnome compiz-plugins-default cracklib-runtime cryptsetup-bin dconf-tools deja-dup duplicity dvd+rw-tools empathy empathy-common eog evolution-data-server evolution-data-server-common example-content folks-common freerdp-x11 gedit gedit-common geoclue geoclue-ubuntu-geoip gir1.2-accounts-1.0 gir1.2-dbusmenu-glib-0.4 gir1.2-dee-1.0 gir1.2-gdata-0.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomekeyring-1.0 gir1.2-goa-1.0 gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-gtksource-3.0 gir1.2-indicate-0.7 gir1.2-messagingmenu-1.0 gir1.2-notify-0.7 gir1.2-peas-1.0 gir1.2-rb-3.0 gir1.2-signon-1.0 gir1.2-syncmenu-0.1 gir1.2-totem-1.0 gir1.2-totem-plparser-1.0 gir1.2-ubuntuoneui-3.0 gir1.2-unity-5.0 gnome-bluetooth gnome-contacts gnome-control-center gnome-control-center-data gnome-control-center-signon gnome-desktop3-data gnome-disk-utility gnome-font-viewer gnome-icon-theme-symbolic gnome-mahjongg gnome-media gnome-menus gnome-online-accounts gnome-orca gnome-power-manager gnome-screensaver gnome-screenshot gnome-session gnome-session-bin gnome-session-canberra gnome-session-common gnome-settings-daemon gnome-system-log gnome-system-monitor gnome-terminal gnome-terminal-data gnome-user-share growisofs gstreamer0.10-gconf guile-1.8-libs gwibber gwibber-service gwibber-service-facebook gwibber-service-identica gwibber-service-twitter hwdata indicator-appmenu indicator-datetime indicator-messages indicator-power indicator-printers indicator-session intel-gpu-tools landscape-client-ui-install libaccount-plugin-1.0-0 libaccounts-glib0 libaccounts-qt1 libatk-adaptor libatk-adaptor-data libaudio2 libavahi-gobject0 libbamf3-0 libboost-date-time1.49.0 libbrasero-media3-1 libcamel-1.2-40 libcanberra-gtk-module libcanberra-gtk0 libcanberra-pulse libclutter-1.0-0 libclutter-1.0-common libclutter-gst-1.0-0 libclutter-gtk-1.0-0 libcmis-0.2-2 libcogl-common libcogl-pango0 libcogl9 libcompizconfig0 libcrack2 libcrypt-passwdmd5-perl libcryptsetup4 libcurl3-nss libdbusmenu-qt2 libdecoration0 libdee-1.0-4 libdiscid0 libdmapsharing-3.0-2 libebackend-1.2-5 libebook-1.2-14 libecal-1.2-15 libedata-book-1.2-15 libedata-cal-1.2-18 libedataserver-1.2-17 libexempi3 libexttextcat-1.0-0 libexttextcat-data libfolks-eds25 libfolks-telepathy25 libfolks25 libfreerdp-plugins-standard libfreerdp1 libgail-common libgail18 libgdata-common libgdata13 libgexiv2-1 libglew1.8 libglewmx1.8 libgmime-2.6-0 libgnome-control-center1 libgnome-desktop-3-4 libgnome-media-profiles-3.0-0 libgnome-menu2 libgnomekbd-common libgnomekbd8 libgoa-1.0-0 libgoa-1.0-common libgpgme11 libgpod-common libgpod4 libgtksourceview-3.0-0 libgtksourceview-3.0-common libgtkspell-3-0 libgweather-3-1 libgweather-common libgwibber-gtk3 libgwibber3 libhyphen0 libjs-jquery liblircclient0 liblouis-data liblouis2 liblvm2app2.2 libmessaging-menu0 libmetacity-private0a libmission-control-plugins0 libmng1 libmtp-common libmtp-runtime libmtp9 libmusicbrainz5-0 libmx-1.0-2 libmx-bin libmx-common libmysqlclient18 libmythes-1.2-0 libneon27-gnutls libnux-3.0-0 libnux-3.0-common liboauth0 libpackagekit-glib2-14 libpam-freerdp libpeas-1.0-0 libpeas-common libprotobuf7 libprotoc7 libproxy1-plugin-gsettings libproxy1-plugin-networkmanager libpth20 libpwquality1 libpython3.2 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtassistantclient4 libqtcore4 libqtgui4 libqtwebkit4 libquvi-scripts libquvi7 libraw5 libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-emailmerge libreoffice-gnome libreoffice-gtk libreoffice-help-en-us libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-presentation-minimizer libreoffice-presenter-console libreoffice-style-human libreoffice-style-tango libreoffice-writer librest-0.7-0 librhythmbox-core6 librsync1 libsgutils2-2 libsignon-extension1 libsignon-glib1 libsignon-plugins-common1 libsignon-qt1 libssh-4 libstlport4.6ldbl libsync-menu1 libsyncdaemon-1.0-1 libtelepathy-farstream2 libtelepathy-logger2 libtimezonemap1 libtotem-plparser17 libtotem0 libubuntuoneui-3.0-1 libufe-xidgetter0 libunity-core-6.0-5 libunity-misc4 libunity-protocol-private0 libunity-webapps0 libunity9 libvncserver0 libwacom-common libwacom2 libwmf0.2-7-gtk libzeitgeist-1.0-1 light-themes lightdm-remote-session-freerdp lightdm-remote-session-uccsconfigure linux-headers-generic-pae mcp-account-manager-uoa media-player-info metacity-common mousetweaks mysql-common nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share notify-osd notify-osd-icons nux-tools obexd-client overlay-scrollbar overlay-scrollbar-gtk2 overlay-scrollbar-gtk3 plymouth-theme-ubuntu-logo protobuf-compiler pulseaudio-module-bluetooth pulseaudio-module-gconf python-apport python-configglue python-gnupginterface python-mako python-markupsafe python-problem-report python-protobuf python-pyinotify python-qt4 python-qt4-dbus python-simplejson python-sip python-twisted-names python-ubuntuone-client python-ubuntuone-control-panel python-ubuntuone-storageprotocol python-uno python-zeitgeist python3-brlapi python3-crypto python3-httplib2 python3-louis python3-lxml python3-oauthlib python3-pyatspi2 python3-pycurl python3-speechd qdbus qt-at-spi remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc remote-login-service rhythmbox rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-magnatune rhythmbox-plugin-zeitgeist rhythmbox-plugins rhythmbox-ubuntuone seahorse session-migration shotwell signon-keyring-extension signon-plugin-oauth2 signon-plugin-password signon-ui signond sni-qt ssh-askpass-gnome syslinux syslinux-common syslinux-legacy telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut thin-client-config-agent thunderbird-gnome-support totem totem-common totem-mozilla totem-plugins ubuntu-artwork ubuntu-desktop ubuntu-docs ubuntu-mono ubuntu-settings ubuntu-sounds ubuntu-sso-client-qt ubuntu-system-service ubuntu-wallpapers ubuntu-wallpapers-quantal ubuntuone-client ubuntuone-client-gnome ubuntuone-control-panel ubuntuone-control-panel-qt ubuntuone-couch udisks unity unity-asset-pool unity-common unity-greeter unity-lens-applications unity-lens-files unity-lens-gwibber unity-lens-music unity-lens-photos unity-lens-shopping unity-lens-video unity-scope-gdocs unity-scope-musicstores unity-scope-video-remote unity-services unity-webapps-common unity-webapps-service uno-libs3 ure usb-creator-common usb-creator-gtk vino wodim xdiagnose xfonts-mathml xul-ext-unity xul-ext-websites-integration zeitgeist zeitgeist-core zeitgeist-datahub && sudo apt-get install xubuntu-desktop && sudo /usr/lib/lightdm/lightdm-set-defaults -g lightdm-gtk-greeter
sudo apt-get remove ace-of-penguins audacious audacious-plugins audacious-plugins-data chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg cracklib-runtime elementary-icon-theme galculator gdebi gdebi-core gecko-mediaplayer giblib1 gir1.2-notify-0.7 gnome-desktop-data gnome-disk-utility gnome-icon-theme-full gnome-icon-theme-symbolic gnome-mplayer gnumeric gnumeric-common gnumeric-doc gpicview guvcview hardinfo libaacs0 libass4 libaudclient2 libaudcore1 libaudio2 libavcodec53 libavformat53 libavutil51 libbinio1ldbl libbluray1 libbs2b0 libcddb2 libcolamd2.7.1 libcompfaceg1 libcrack2 libcue1 libdca0 libdirectfb-1.2-9 libdiscid0 libdvdnav4 libdvdread4 libenca0 libept1.4.12 libfaad2 libfluidsynth1 libfm-data libfm-gtk-bin libfm-gtk-data libfm-gtk3 libfm3 libgif4 libgmlib0 libgmtk0 libgmtk0-data libgoffice-0.8-8 libgoffice-0.8-8-common libgpgme11 libgpod-common libgpod4 libgsm1 libguess1 libid3tag0 libimlib2 liblircclient0 libmenu-cache1 libmms0 libmodplug1 libmowgli2 libmp3lame0 libmpg123-0 libmtp-common libmtp-runtime libmtp9 libmusicbrainz3-6 libneon27-gnutls libobrender27 libobt0 libonig2 libopts25 libpisock9 libpostproc52 libpth20 libpwquality1 libresid-builder0c2a libschroedinger-1.0-0 libsdl1.2debian libsgutils2-2 libsidplay2 libswscale2 libts-0.0-0 libuniconf4.6 libva1 libvdpau1 libvpx1 libwebcam0 libwvstreams4.6-base libwvstreams4.6-extras libxvidcore4 lm-sensors lp-solve lubuntu-artwork lubuntu-artwork-12-10 lubuntu-core lubuntu-default-settings lubuntu-desktop lubuntu-icon-theme lubuntu-lxpanel-icons lubuntu-software-center lxappearance lxappearance-obconf lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin lxrandr lxsession lxsession-data lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint ntp obconf openbox openbox-themes pcmanfm plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text python-pysqlite2 python-support python-xklavier scrot sylpheed sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic transmission tsconf uvcdynctrl uvcdynctrl-data wvdial xfonts-100dpi xpad && sudo apt-get install xubuntu-desktop

  Note: As explained below, this applies only to Ubuntu 12.10 (Quantal). If you're using 12.04, go here. If you're using 11.10, go here.  If you're using 10.04, go here.

  Once 13.04 is released, that will probably no longer point to the proper commands for 12.10 (but if not, you should be able to go there and click a link to get to the 12.10 version).

Keep in mind:

There's no need for you to run the commands to remove Kubuntu or Edubuntu because you don't have those.
The commands quoted here are for Ubuntu 12.10.
That page typically has the relevant commands for the latest stable release. That's currently Ubuntu 12.10, but for someone who wants to do this for an earlier version (or once an even later version comes out), it's important to navigate to the right page on that site. Once Ubuntu 13.04 comes out, it will be necessary to navigate to the 12.10 link to see the commands quoted here.
In case you're interested in more detail of how those commands work:

They don't just remove packages. They also make sure the xubuntu-desktop pacakage gets reinstalled if it was removed as a consequence of the package uninstallations, which could potentially happen as part of apt-get's dependency resolution.

(So theoretically it might be better to replace apt-get with aptitude in those commands as aptitude sometimes resolves dependencies better than apt-get, but I wouldn't recommend it as I don't think that's been tested and the effectiveness of this approach may rely on subtlety more than most acts of package management.)

This is why sudo apt-get install xubuntu-desktop appears at the tail end of those commands. You'll notice sudo /usr/lib/lightdm/lightdm-set-defaults -g lightdm-gtk-greeter at the end of the first one, too. That configures the login screen to behave properly as an Xubuntu login screen.

Source: Getting Back to a Pure Xubuntu by Ubuntucat (one of the psychocats.net tutorials)


NVidia Drivers for a GeForce GTS 450 on Ubuntu 14.04 - Which one works?

304.123 is provided by Nvidia, and it's not supposed to be Open Source, but proprietary.
According to Driver info' provided by Nvidia, your graphics card is supported by 304.123
Nvidia references to driver 304.123
Maybe you should contact Nvidia Customer Care support and ask for help there. I recently opened an issue there due to an issue with driver 304.127.


Is it safe to install Kubuntu-desktop in 11.10?

I don't know what you heard/read but it works just fine. Kubuntu is built on the same base as Ubuntu, uses the same libraries etc, just that KDE and it's related libraries+programs provide the desktop environment.

In fact, I have it installed (Kubuntu-desktop) on two systems with no problems...


Qt creator Learning tutorial for ubuntu 12.04

A lot of examples and tutorials are available in Qt  Creator itself, just click on the Welcome icon on the left toolbar and select "Demos and Examples":

Note: Check this answer to get Qt Creator Qt5 examples on 14.04


Mozilla addons not working properly in ubuntu 12.04

(I assume you are using firefox, but most of these troubleshooting steps like safe-mode will work for Thunderbird as well, so they should still be useful)

Don't delete your profile folder straightaway as there's a lot more you can do before you do something like that. There are several ways of resetting your firefox data.

1) Try going to help > troubleshooting and you will see this screen (do not go to about:support without going through the menu or the reset option won't be available):

Just click the reset option and firefox will be returned to its initial state. I have just tested this and it does reset settings and uninstall addons, while retaining your bookmarks.

2) Use the special -safe-mode option to load firefox (this works with Thunderbird as well) Run from terminal,

firefox -safe-mode

You will receive a box like this, which should allow you to load firefox and see if it was an addon that was causing the abnormal behaviour. Restart firefox in safe-mode again a second time and this time click the left-hand reset button if you want to clear your settings and addons.

3) If neither of these suggestions sorts your problem out, you could run profilemanager and create a new profile and run firefox from that.

firefox -ProfileManager -no-remote

Then you could launch firefox like this or create a new shortcut, giving the exact location of your new profile:

firefox -Profile /home/mike/.mozilla/firefox/55divdmr.Mike2 -no-remote

For more on using different profiles in firefox, please see my answer here:

How to create shortcuts to different Firefox profiles

In addition, when you create a new profile, our old profile will not be deleted, so you will still have the data and bookmarks. However, you could set the new profile as your default by placing Default=1 under your desired profile in ~/.mozilla/firefox/profiles.ini.

You could backup your bookmarks to a html file with your old profile by going to firefox > bookmarks > import & backup > export to html. You could then import these when you have launched your new profile.


dual view monitors for one desktop on ati

open a terminal and run:

sudo rm /etc/X11/xorg.conf
sudo aticonfig --initial

then run the following command to reconfigure the dual monitor setup:

sudo amdcccle


I figured it out.

I created the following files:

/etc/systemd/network/he-ipv6.network

[Match]

[Network]
Tunnel=he-ipv6

/etc/systemd/network/he-ipv6-tunnel.netdev

[Match]

[NetDev]
Name=he-ipv6
Kind=sit

[Tunnel]
Independent=true
Local=192.168.0.x #Private IP if behind NAT or Public IP without NAT
Remote=184.105.250.46 #Tunnel broker's IPv4 address
TTL=255

/etc/netplan/01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
      he-ipv6:
          dhcp4: no
          dhcp6: no
          addresses: ['2001:470:xxx:xxx::2/64']
          gateway6: 2001:470:xxx:xxx::1
      enp0s3:
      ...

Where 2001:470:xxx:xxx::2/64 is your Client IP address from tunnelbroker.net

Then reboot or restart your network with systemctl restart systemd-networkd && netplan apply

Update/Warning This won't work unless you're already using Ubuntu Bionic Beaver or specifically speaking Systemd Version 235. You need the Independent flag under [Tunnel] for this configuration to work on every reboot along with systemd version 235.

The Independent flag doesn't work in systemd version 234 and below. You can check your systemd version with systemd --version


What is the best editor for HTML, CSS etc?

My personal favorite for web programming would have to be Brackets.

It has support and syntax highlighting for many, many languages, and has plenty of awesome features.

It has an awesome interface that's really easy to use, along with a whole raft of features, like over 100 extensions accessible right from within a built-in Extension Manager, live-preview which allows you to see the changes you make right away – no reloading the page any more, quick-edit that allows you to edit the CSS for the current tag without changing files, tag completion, and a bunch more.

Granted, you have to have Chrome (or Chromium, that works too) to use the Live Preview, but that is probably one of the best features. Basically, you can tweak a bit of code within the page's code and you can see that change as soon as you complete the code line.

Here’s a video, albeit a bit outdated, that provides a basic introduction to Brackets and its features.

You can add a PPA to install Brackets get automatic updates for it via:

sudo add-apt-repository ppa:webupd8team/brackets
sudo apt-get update
sudo apt-get install brackets


Dependency problems with apache2, mysql-common, libmysqlclient20:amd64 and mysql-client-5.7

First of all do backup of your databases, if you have some valuable data there.

backup can be done with

mysqldump -u{username} -p{password} {database_name} > {desired_file_name}.sql

notice that there is no space between -u and username and between -p and password

Then completely  purge mysql and re-install it if needed

you can find how to purge mysql here
or here


When trying to use

sudo apt install ubuntu-desktop

it didn't work right away for me.
I had to run

sudo apt --fix-broken install

followed by

sudo apt install ubuntu-desktop

This seems to have fixed the issue for me.


How to change my jupyter notebook working directory?

You can change it using --notebook-dir=

jupyter notebook --notebook-dir=$HOME/Documents/MyProject

and like always use it without --notebook-dir= to get it run in current working directory:

jupyter notebook

If you always work on same directory then create an alias:

alias my_jupyter='jupyter notebook --notebook-dir=$HOME/Documents/MyProject'

Now when you run my_jupyter "Jupyter" will be run at $HOME/Documents/MyProject.


Yes you can use novnc and access it from the web browser, see:

noVNC website
How to use web browser as a VNC client
noVNC GitHub page


How can I programmatically change the keyboard layout?

I too use Ubuntu 12.04 and have stuggled with this issue.  Using Jason Coombs' answer to his own question as a starting point, I was able to use /etc/default/keyboard to set my keyboard options (for me, ctrl:nocaps and compose:menu) and have that persist across reboots for consoles. However, the setting would be ignored by LightDM/Unity upon reboot.  To clarify, I have not set any keyboard preferences from within Unity, so Unity should be defaulting to the system default keyboard settings, but it is not using the keyboard options for some reason.

I noticed that if I run the following command after logging in, Unity suddenly begins to recognize my system default keyboard options:

setxkbmap

I do not supply any parameters to setxkbmap, I merely invoke it with no options and it reads and applies the system default map.

To make this happen automatically when any user logs in (at least, any user with a Gnome or Unity desktop), I have made the following setxkbmap.desktop file that I placed in the /etc/xdg/autostart/ directory:

[Desktop Entry]
Type=Application
TryExec=/usr/bin/setxkbmap
Exec=/usr/bin/setxkbmap
Hidden=false
NoDisplay=true
X-GNOME-Autostart-enabled=true
Name[en_US]=System Keyboard Fix
Name=System Keyboard Fix
Comment[en_US]=Apply system-wide keyboard settings to the session
Comment=Applies system-wide keyboard settings to session

This fix seems to make the keyboard options consistent system-wide, with the exception of the brief period that LightDM has control of my screen before I log in.


Okay, after spending half of a day solving this puzzle here is what I got:
Neither v0.4 or v1.0 installation from http://www.dahetral.com/public-download worked for me, touchpad just wasn't working it all.
So I upgraded kernel from 3.2 to 3.5 by doing this:

sudo apt-get install linux

Which actually installed the following packages:
 - linux-header-3.50-030500
 - linux-header-3.50-030500-generic
 - linux-image-3.50-030500-generic

After that I tried and reinstalled 0.4 version (using 1.0 version right now though) and it started working. What is strange: I didn't even reboot in new kernel, I installed driver with new kernel installed, than I purged it and everything works. Can't quite understand why it's like that.

Also I wanna say thanks to alfC for reminding me to check touchpad settings in system menu, totally forgot bout that.


Manual method:
From the following link: https://code.google.com/archive/p/google-coredumper/downloads , download the coredumper-1.2.1.tar.gz and copy paste it in /dev/coredumper. It works!

OR
also try

Change the link in /dev/libcoredumper/build.sh to https://code.google.com/archive/p/google-coredumper/downloads/coredumper-1.2.1.tar.gz and then execute ./build.sh N200.


Laptop screen turns off during startup? 12.04

Try booting in recovery mode, to do this:

Press shift during startup to get to the grub menu (if you have dual-boot, you don't need to do this)
Highlight the option that says "Ubuntu, with linux 3.2.0-41-generic (recovery mode)" or something similar.
Press enter to boot from recovery mode.


How to install gloobus preview in ubuntu 14.04

For 14.10 the following repository worked for me

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install gloobus-preview

you might add these programs too

sudo apt-get install unoconv gnumeric

for previous versions of ubuntu, this article seems to talk about how to get it working


Solved it.

New prompt (with \u@\h added, since I forgot that) is

export PS1="\e[0;1m\u@\h]\`if [ \$? = 0 ]; then echo \[\e[33m\]':)'\[\e[0m\]; else echo \[\e[31m\]':('\[\e[0m\]; fi\` \e[0;1m\w\e[1m\n\$ "

adding the e[0;1m\ at the very beginning of the prompt began the colorizing of the prompt. Can't believe I overlooked that.

Essentially the prompt changed colors because the terminal changed from the previous color ouputted by ls. I thought that was the problem before but couldn't figure out the syntax needed to colorize the first bit.


Issue with creating partition in Windows 7 Ubuntu DualBoot

the point is that in hard disks with MBR you can only create four primary partitions. To create extra partitions, you need to have logical partitions. Hence the trouble.
on the other hand using GPT, you can make a lot of partitions. I can only assume that you've had GPT before.


Is there a GUI way to see what webapps I have installed?

There isn't a dedicated GUI, but as a workaround, you can use dconf-editor to see the websites you've enabled webapps for.

This is described in more detail in a previous answer.


Speakers and headphones play no sound on Toshiba Satellite

I just had a similar sound card experience on an old toshiba satallite pro m30.
Not a very technical answer this, but my problem turned out to be the "hidden" volume control situated under the front edge of the laptop just below the main input light.
This seems to to get rotated to the "off" position quite easily. I spent hours trying to sort this problem - Doh!


Yeah, you should be able to remove it fairly safely.

But I'd take a backup or move it instead of deleting it. If there are any services where your only access is key-based (generally speaking, a good idea), you'd be locked out.

mv ~/.ssh ~/ssh-backup


Is it possible to remove new google hangouts app's white background?

It's impossible, there aren't any animations either. As stated by the Hangouts PM.


Install Windows7 side by side with ubuntu 12.04

In order to install Windows 7 without messing Ubuntu, follow this steps:

You should create a partition for your Windows 7 installation, I recommend you to install GParted from the Software Center.

After you create your partition, install Windows 7 in the new partition.

Reboot, you should see that you no longer boot into Ubuntu, but in Windows 7, to boot into Ubuntu, put your Live CD in your PC and boot from it, then follow the instructions provided here.

If everything is done correctly, you should be able to choose the OS you want to boot from GRUB menu every time you turn on your computer.


There is a GIMP plug-in that supports UFRaw.

To install it, run the following from a terminal window:

sudo apt install gimp-ufraw

Hope this helps!


Convert a presentation to video with narration

You can use recordMyDesktop to record whatever is going on in your desktop or in a part of it along with sound. You can install it by:

sudo apt-get  install recordmydesktop

Another option can be to use a dedicated tool like Slides 2 Video, but you will have to add a separate soundtrack.


Unity is gone after uninstalling webapps?

Maybe try reinstall unity.

sudo apt-get install unity


How do I install cyrus-sasl on 10.04 Server?

That's actually a list of packages. Try this:

sudo apt-get install sasl2-bin


Can Squid be used to cache updates for other distros?

Well... for what its worth:  yes, Squid can easily be used to cache updates for RH-based distros such as CentOS, Fedora and Scientific Linux.

All that is required after initial setup of squid on the server itself is to point the client machines at the server by editing /etc/yum.conf and adding a line at the top that reads:

proxy=http://192.168.1.1:3128

(insert ip/port numbers appropriate for your setup).

Some additional fine-tuning of squid may be desired in order to adjust the disk cache size, retention times, etc.


In Ubuntu 14.04, the newest Google Chrome window display transparent and without buttons

I have the same problem. You can turn off the direct rendering in chrome settings and everything will be fine.


Problem with AMD HD Radeon 8570M Graphics Card

Install the graphics card driver:

sudo apt-get install xserver-xorg-video-radeon

Then reboot.


I am not exactly sure if I am correct but you can simply do

ls 2020/01-Jan/{00..03}:00/sb/*.txt

to get your desired output.


How can I run a desktop in the cloud that I can remotely connect to?

There are several cloud images of Ubuntu running on Amazon EC2. They can be used by paying relevant costs on a per hour basis. This is the Public Cloud solution. The starting step-by-step instructions can be found in Ubuntu community wiki. You can then perform remote desktop operations on it by following this guide.

Another online solution will be installing Ubuntu cloud images in a cloud that you already own i.e. a Private Cloud. The cloud itself may be managed by a third party.

If you want to set up a cloud on your own hardware you can follow this guide in Ubuntu community wiki. But then you'll be responsible to keep your server(s) online.

These are some general pointers. I hope those who have more experience in this zone can  provide you more specific answer.


What causes blurry fonts in Qt applications (in XFCE desktop)?

I found this post:
http://ubuntuforums.org/showthread.php?t=2032512

In my case, it was enough to remove ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml (I removed ~/.cache/sessions too).
I still don't know the real reason for the problem though.


Ubuntu 13.10 problems with NVidia graphics drivers, XServer not going up

If you want your nouveau driver back, you should be aware that is may have been blacklisted when updating to other driver packages designed for Nvidia. You should take a look in

etc/modprobe.d/nvidia-graphics-drivers.conf

and see if nouveau driver is already blacklisted. Check all other 'graphic..conf' files inside etc/modprobe.d/ to see if nouveau driver is present and blacklisted ( that is if you can't find the original 'nvidia-graphics-drivers.conf' file to be present). If that is the case, then you should edit the file(s). and remove the lines where NOUVEAU driver is present. All you have to do is to remove nvidia drivers using that code you mentioned:

sudo apt-get remove nvidia*

and after that to install NOUVEAU driver using code:

sudo apt-get install xserver-xorg-video-nouveau

But I suggest that you better try to download one or more linux drivers for your video card from NVIDIA website, and test them after removing all other Nvidia drivers and extra modules, and after you blacklist the nouveau driver and a few others.

Use this link to learn how to download and install Nvidia drivers from the NVIDIA website, and never again use that nouveau driver or other proprietary drivers. Choose your graphic card when going to Nvidia website to find a decent driver for it, and not Nvidia GTS 450 mentioned in the above provided link. Same routine, but with a different graphic card.


That is not the correct command.

sudo apt-get install tasksel
sudo tasksel install lamp-server


Encrypted Ubuntu 13.04 on SSD does not work

Before you start messing about with your partitions, you should set your SATA mode to AHCI instead of RAID (default for ssd's) in your BIOS. Also remember to remove all the partition metadata using:

sudo dmraid -E -r /dev/sda

(change sda to the appropriate name for your SSD)

These were the main issues in my case.

Also, this question might be useful for you: Installing Ubuntu 13.04 on a MSATA SSD


Git - URL does not appear to be a git repository

gertvdijk's suggestion was right.

Instead of 181.910.139.164/var/wwww/my_really_cool_project/.git I should have used 181.910.139.164:/var/wwww/my_really_cool_project/.git. As you can see I added a colon.


Can I record Skype calls, but separate audio files?

This is tricky to answer without knowing your specific setup, but here's a possible solution that will eliminate having to separate the voices later.

To record two audio devices simultaneously and separately, you'll need software that can do multi track recording, such as Ardour.

Use JACK to route the audio from Skype into ardour.

I'd recommend using a low latency kernel as well. All of these are part of the Ubuntu Studio audio packages which can be installed on an existing Ubuntu system or as a new system.