For me it made the sensitivity and acceleration just like it was in 16.04 (16.04 to 18.04 update slowed the mouse way too much).

put

xinput --set-prop 'ImPS/2 Generic Wheel Mouse' 'Device Accel Profile' 2

into

~/.xsessionrc

To get the name of the mouse:

xinput --list --short

Derived from in this answer: https://askubuntu.com/a/876273/391744

but changed instead just the acceleration profile from 0 to 2:

Run in terminal xinput --list --short and find your mouse id (for me id=12)
Run in terminal xinput --list-props 12 (change 12 for the right id)
Find the id for the property Device Accel Profile (for me 267)
Run in terminal xinput --set-prop 12 267 2 (change 12 and 267 for the correct id)


Open System Settings and choose Language Support. It may tell you that the installation is incomplete, and wants to download language packs. OK this.

If that doesn't fix your problem with dpkg, then start Synaptic from the Dash, type language-selector-gnome into the search box. Right-click on the only found item and select Mark for reinstall. Do the same for language-selector-common. Then click the apply icon.

Let us know how this works. Cheers, Al


Gnome 3 empathy can`t get the menu toolbar to show

NOTE: The OP solved the problem and mentioned it in a comment.

  One can click on 'empathy up there in gnome 3 as well.


Why "google-chrome" does not run chrome?

The command to start Google Chrome is /usr/bin/google-chrome-stable, or just google-chrome-stable if /usr/bin is in the PATH as it should. In general, to see what is the command to run a graphical application, use Nautilus to navigate to /usr/share/applications and examine the properties of the launcher, or, in a terminal, look for the line Exec= in the .desktop file.


Drivers corrupted after update for first time?

Fan always on

Could be several reasons. Most probable you have a dual graphics card Like nvdia optimus or ATI hybrid switchable graphics card. Without installing correct graphics card driver, both GPU always turned on and heat up very quickly. So the fans always run to keep them cool.

The second one because of same issue. The graphics card.
Yes, hopefully you can.

Use nomodeset kernel parameter to get past black screen as instructed in  First answer of My computer boots to a black screen, what options do I have to fix it?
If you can not get past black screen try booting older kernel (located under Ubuntu Advanced menu item in grub) or try https://askubuntu.com/a/162078
If you get past black screen , follow the guides according to your graphics card

ATI

One ATI graphics card -

What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?

ATI Hybrid card

How do I get AMD/Intel Hybrid Graphics drivers to work?

Nvidia

If you only have nvidia graphics card (NON OPTIMUS) then follow -

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

or

How do I install the latest NVIDIA drivers from the .run file?
If optimus :
Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?


You can still get hardware upgrades on 16.04 by installing a newer kernel:

How to update kernel to the latest mainline version without any Distro-upgrade?

You would do this for example if you bought a new device to add onto your computer and the drivers for it were only on a newer kernel.

In fact since I've started using Ubuntu 14.04 and then 16.04 I've usually been running on a newer kernel than the distribution version offered. Partly to stay up-to-date but but mostly as a hobby of researching new kernel versions.


Get to the directory that you've extracted the files for wine.

In terminal, run this command:

./configure --without-freetype

Then after it's completely done, run:

make


Problems with recognizing Ubuntu after Windows 10 Dual-Boot Installation

Perhaps you could try running boot-repair when you succeed booting Ubuntu either from your HDD or from a live USB. A tutorial can be found here or here. It worked for me in getting back the GRUB menu on every boot.


ubuntu 12.04 installation alongside windows 7

Probably, you have not burnt iso image properly. Or it might be a problem with your DVD Drive. You can check the DVD on another PC.


How can I rotate video by 180 degrees with avconv

It is possible using the transpose video filter. You cannot rotate by 180 degrees, but you can rotate by 90 degrees and chain the filter.

avconv -i video.mp4 -vf transpose=1,transpose=1 out.mkv

See transpose in the avconv manpage:
http://manpages.ubuntu.com/manpages/quantal/en/man1/avconv.1.html


Use Symlink

ln -s 'location to link to' 'name of symlink'

For example:

ln -s /media/ExternalDrive  ~/Documents/


sed to execute a command as replacement with substitution pattern as argument

If mlog.log is space separated:

cat mlog.log |perl -a  -ne  'chomp($F[0]=`date -d \@$F[0] +%FT%T`); print join(" ",@F)."\n"'

If mlog.log is tab separated:

cat mlog.log |perl -a -F"\t" -ne  'chomp($F[0]=`date -d \@$F[0] +%FT%T`); print join("\t",@F)."\n"'


C++ app that runs after boot when a specific service is enabled cannot be stopped with systemctl stop

How systemd handles stopping and killing processes is covered in man systemd.service and man systemd.kill. If you are unsure how a particular directive works like ExecStop=, you can find the right man page that documents with man systemd.directives.

The documentation there will explain that the default behavior is to send a SIGTERM signal, wait 90 seconds and then send a SIGKILL signal.

If this behavior doesn't work for you, you can update your app to change how it responds to a SIGTERM signal, or you can review the options in referenced man pages to customize what happens when systemd issues a stop command.


How can I customize Plasma default wallpaper, activity and panel in Kubuntu CD?

I am not sure what's it that you want in your question, because it's been a while since I used KDE or Kubuntu. Do you want to know/change the default settings that come installed with KDE installation?

They will be present in default settings directories of KDE package. Now, you can read these links below to get an idea of how KDE settings are stored, if that's what you wanted.

http://techbase.kde.org/KDE_System_Administration/KDE_Filesystem_Hierarchy

In the above link, you can read the Directory Tree section to know where the settings are stored for various config files, including wallpapers you want.

These are links to some places where people tweaked with the config files a little:

http://forum.kde.org/viewtopic.php?f=67&t=88295

https://bbs.archlinux.org/viewtopic.php?id=83938

http://www.kde-forum.org/artikel/7675/where-are-fonts-and-colors-settings-stored.html

http://forum.kde.org/viewtopic.php?t=32239

If you wanted to just change the settings, you might have heard about systemsettings-kde4 package before... I think it comes with KDE.

Probably, this post will help you in configuring the config files a little more:

http://news.softpedia.com/news/Hidden-KDE-Options-and-Features-53213.shtml

I think the settings you are asking for can be found somewhere in the kde filesystem as mentioned in first link.

Excuse me if I have mis-interpreted your question. Hope that helps!


I was able to pretty much fix my problem. I made edits to the rxvt-unicode.desktop file changing the icon to one of my choosing. At that point I was able to see the new icon when loading rxvt-unicode from the unity launcher or sidebar. Information on finding the .desktop files can be found here: How can I find *.desktop files?

One thing I noticed though is if I use another terminal to launch rxvt-unicode it still shows the old icon. Not sure yet why that is happening. This only has become a problem because I created a keyboard shortcut to make Super+q launch a terminal and it does that through the terminal as far as I can tell.


Snap Chromium Experiencing Font Issues On Ubuntu

I experienced the same issue earlier today, after snap updated chromium to 89.0.4389.72.  As you obverse, changing the font setting doesn't work.
My font problem was resolved by the following steps.

Close Chromium.  Chromium also has background processes. Terminate them by kill or pkill.

Refresh font cache by sudo fc-cache -rfv and fc-cache -rfv [Update: step 2 is unnecessary.]

Start Chromium


How to make WLAN server accessible on the internet

You need to look at the configuration of your internet router and figure out how to do "Port Forwarding".

Outside requests - say for web pages - get to your router, it doesn't know what to do with them and just drops them. You need to tell it to forward the received requests - say to TCP port 80 - to the internal IP address of your actual server (and most likely the same port).

You also would want to make sure that your WLAN server has a static IP address within your local network.

EDIT

When I wrote WLAN server has a static IP address I meant the IP address of your server on the local network - i.e. 192.168.X.Y or 10.X.Y.Z. This address is normally handed over by the DHCP server built into your wireless router. You will need to get into the DHCP settings of your router, see what range of IP addresses it is handing over and configure a static internal one - on the same network - in your server.

Then you need to use the same internal static address in your port forwarding.


Your screenshot shows ports that are open, not the closed ones.

In your command output, nmap tells All 1000 scanned ports on localhost (127.0.0.1) are closed, so there is no open ports to show, as in this example:

Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-22 15:02 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000028s latency).
Other addresses for localhost (not scanned): ::1
All 1000 scanned ports on localhost (127.0.0.1) are closed

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

As suggested by sark, you can check that nmap is working fine by opening a tcp port, for instance by using nc -l 1234 in another console.
The expected result will be:

Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-22 14:42 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000041s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 999 closed ports
PORT     STATE SERVICE
1234/tcp open  hotline

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


If you computer hardware diagnostics is failing on the graphics card as you say it is not related to software, Ubuntu or drivers, your hardware is defect.

Knowing this it is normal that you might have crashes like that: your computer hangs because something really bad happened due to the hardware fault.

You should take your computer to a repair shop or if you can do it yourself and its possible you should replace the defect hardware.

If you are using an external graphics you should test it with a
different card (same chipset if possible so you dont need to install
/ remove drivers), reason for that is that it can be just the card
but your motherboard can be the cause instead.
If you are using an internal graphics card (built-in) you should try
to replace the RAM you have (since the card uses shared memory with
RAM) and if that did not help your motherboard needs to be replaced.


Removing a Corrupted Ubuntu Installation

Yes, if you choose to overwrite the corrupted partition.

When you got to the Installation type section. You would need to select the option: Replace "OS name" with Ubuntu. ("OS name" = the name of your OS goes here.)


It is under System Settings -> User Accounts, look at the mouse pointer in this screenshot:


Install old version of Gfortran on Ubuntu 20.04

This fortran version was available in Ubuntu 11.04.
I can suggest to create schroot with 11.04 and install old fortran here:
sudo apt-get install schroot debootstrap -y

cat <<EOF | sudo tee /etc/schroot/chroot.d/natty.conf
[natty]
description=Ubuntu 11.04
directory=/srv/chroot/natty
root-users=$USER
type=directory
users=$USER
EOF

sudo mkdir -p /srv/chroot/natty
sudo debootstrap --no-check-gpg natty /srv/chroot/natty

cat <<EOF | sudo tee /srv/chroot/natty/etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu natty-updates main restricted universe multiverse
EOF

schroot -c natty -u root apt-get update
schroot -c natty -u root apt-get install gcc gfortran

Then execute your program inside the schroot by using command like:
schroot -c natty /home/user/old-program

or compile it by
cd /home/user/source-code
schroot -c natty make


Looks like you need the libcrypto++-dev package.  Determine this with apt-file

$ apt-file search libcryptopp
libcrypto++-dev: /usr/lib/libcryptopp.a
libcrypto++-dev: /usr/lib/libcryptopp.so
libcrypto++9: /usr/lib/libcryptopp.so.9

Of course that's the 32 bit version, and you may need a link from the .6 version your app needs to the .9 version.

The link for your 32 bit program needs to be added into /usr/lib/i386-linux-gnu, not the x86_64-linux-gnu (case is important).  Check what the 32 bit executable needs and sees with ldd.  A properly set up 32 bit set of libraries should have a working ldd which reports on the 32 bit executables.  A system not properly set up will report garbage like "not a dynamic executable"


Solved in comments:

The computer believed there was a second screen that didn't actually exist.

You can either set them to mirror or disable one of them, and it should be okay.


Auto-login to console as root - no Xserver

If you just want the box to start up with a root console, why running login in the first place?  You can bypass it and just start a shell on any TTY.

Programs running on the text consoles tty1 to tty6 are configured in the files /etc/init/ttyX.conf.  Now, the getty program accepts a -l option to specify a program to start (default in /bin/login) - you can specify /bin/sh instead, and get a root shell. You need to give the -n option as well, to prevent getty from prompting for the user name.

Wrapping up: edit /etc/init/tty1.conf and replace the exec /sbin/getty ... line with:

exec /sbin/getty -n -l /bin/sh -8 38400 tty1

Same for tty2, tty3, ...


Kde (Kubuntu) 17.04 error: "waiting for authorization"

All you need to do is Open a terminal by pressing Ctrl + Alt + T and run:

sudo nano /etc/NetworkManager/NetworkManager.conf

At the bottom of this file, copy and paste the following:

[device]
wifi.scan-rand-mac-address=no

Then just save the file by pressing Ctrl + X, type in Y (to say yes while saving changes) and press Enter and close the file, to make sure run the following command again and see if the changes you made are still there

sudo nano /etc/NetworkManager/NetworkManager.conf

if yes then close the terminal window open a new terminal window and run this following command

sudo service network-manager restart

And wifi should work again!

Another problem that might be causing this, is DNS issue, You'll need to first check if you have 8.8.8.8 already in your dns, if not the add DNS address using this answer


You could try the following:

1) Try another software sources location:

Open Ubuntu Software Center
Menu: Edit
Software Sources
Download From
Select United States
Restart your system and retry installing the updates.

2) Try to fix broken packages (in terminal -> [CTRL] + [T])

sudo apt-get install -f
sudo apt-get update && sudo apt-get upgrade

sudo apt-get autoclean

Hope this will help you out. You could also check the repositories when you are looking at the Software Sources, making sure they are valid (especially ones you added yourself).

Good luck!


Overheating issue after installing 14.04

First, welcome to the new world of Ubuntu. There are a couple of reasons for your overheating issue.

One of the reasons is the over usage of CPU.

Refer here for Solving the overheating of CPU

The Dual graphics problem issue.

Verify whether you have hybrid graphics in your laptop. (Something like Nvidia + Intel 4000) or (ATI + intel)
If you have nvidia + intel, see some open source projects Bumblebee or Nvidia-Prime. I suggest the Nvidia-Prime since it is newer and stable + many benefits (Try googling)
If you have ATI + Intel, I'm probably not sure (My laptop has nvidia + intel). But do take a look at Hybrid Graphics Section for ATI of ubuntu

Note
Always do some research before you install new stuffs in Ubuntu as you are a newbie. Playing with graphics drivers and installing unsupported software may lead to breaking of Graphics which may lead you to re-install the entire OS again (It happened like 10 times in my case).

Hope this gives you idea for your Over heating issue. All the best. Have a coll time using Ubuntu


How to extract .snappy format file in Ubuntu?

I am not familiar with what are you trying to do but Extracting Data from Snappy Compressed Files has described clearly at the URL. you can go there and check.

hope that helps.


I found a solution but I am not sure why it work.

In the tutorial here: https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/
there is script for sign and load module and should be run after each kernel compile.

However, I found another one, this:
https://github.com/Majal/maj-scripts/blob/master/vboxsign

Which do the work and I can run virtualbox successfully.

```

bash vboxsign
vboxdrv: ..~Module signature ap*
vboxdrv successfully loaded
vboxnetflt: ..~Module signature ap*
vboxnetflt successfully loaded
vboxnetadp: ..~Module signature ap*
vboxnetadp successfully loaded
vboxpci: ..~Module signature ap*
vboxpci successfully loaded

```

Second run return:

```

bash vboxsign
Module vboxdrv is already signed. Skipping.
vboxdrv: ..~Module signature ap*
vboxdrv successfully loaded
Module vboxnetflt is already signed. Skipping.
vboxnetflt: ..~Module signature ap*
vboxnetflt successfully loaded
Module vboxnetadp is already signed. Skipping.
vboxnetadp: ..~Module signature ap*
vboxnetadp successfully loaded
Module vboxpci is already signed. Skipping.
vboxpci: ..~Module signature ap*
vboxpci successfully loaded

```

If I run /sbin/vboxconfig after sign the modules then the key seem again lost:

```

sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

```

I think that command /sbin/vboxconfig should be run again after sign modules, but it seem that this command reset back signing...

So maybe also other script work but I have reset them.

If I just run virtualbox there is not anymore message error that modules are not signed and virtualbox run seem normally. Need to test if work fine.

Important step that I missed:

Enable Virtualization in BIOS!


Trouble connecting to wifi in Ubuntu 20.04

First, let's check for any driver packages that apply to your system:
sudo ubuntu-drivers list

If you see a list of devices that need drivers, you can do this:
sudo ubuntu-drivers autoinstall

You can also check which devices need drivers like this:
sudo ubuntu-drivers devices

From there, you should have enough information to get the necessary software installed to have WiFi and other features enabled.
Hope this helps.


Probably. The goal of Unity 2d is to provide a unity-like desktop to those whose "hardware platforms cannot currently support Unity's OpenGL requirements". Check their wiki page for more info: https://wiki.ubuntu.com/Unity2D.


Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/toolchains.xml: Permission denied

Qt installer adds the configuration directories with root as the owner.

You need to own the files and directories to a file to be able to write into a file. So set permissions like this on each of the files:

sudo -s chmod o+w /home/baadshah/.config/QtProject/qtcreator/*.xml

If the directories

/home/baadshah/.config/QtProject/qtcreator/
/home/baadshah/.config/QtProject/

are owned by someone else than your username (ie. root) you need to change that too. If so you can change this with:

sudo chown -R $USER:$USER /home/baadshah/.config/QtProject/


comparison of the two tables line by line

Try:

paste 1.csv 2.csv | awk '$2 == $4 {print "true"; next} {print "false"}'

Example:

$ paste 1.csv .csv | awk '$2 == $4 {print "true"; next} {print "false"}'
true
false

The paste command combines lines from the files provided to it, so I get line ` of the first file and line 1 of the second file in the first line of output and so on:

$ paste f1 f2
1a  2   1a  2
14  4g  1  4

This lets you directly compare the fields in awk, which can then print the desired string.

The next command in awk skips to the next line without processing further commands, so I don't need to write the $2 != $4 condition  for the second block.


VM Player 12.5.7 does not accept gcc 7.2 on Ubuntu 14.04

I solved via the  :

cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
cd vmnet-only
make
cd ..
tar -xf vmmon.tar
cd vmmon-only
make
cd ..
cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko
cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko
depmod -a
/etc/init.d/vmware restart

One may need to use sudo before each command above.

While running make during the above command execution, if there is an error, search the error in vmware community for a patch. For example i solved one issue using the following patch :

diff -Naur vmnet-only.orig/bridge.c vmnet-only/bridge.c
--- vmnet-only/bridge.c 2017-06-26 22:08:39.148034785 +1000
+++ vmnet-only/bridge.c 2017-07-16 11:37:01.325802125 +1000
@@ -636,7 +636,7 @@
         unsigned long flags;
         int i;
-        atomic_inc(&clone->users);
+        clone = skb_get(clone);
         clone->dev = dev;
         clone->protocol = eth_type_trans(clone, dev);

If you have the version.h file missing in your vmware log, try below code:

cd /usr/src/kernels/$(uname -r)/include/linux/
ln -s /usr/include/linux/version.h version.h

Note: I got all the above information from the Internet
Now i can launch VMWare player


Lower speeds while copying data to a thumb drive

Looks like it could be any one of the following bugs 591174 541937 or 197762


From here and here that is a bug (As I understood) in wine, and  this problem is caused by compiling wine with gcc4.9, which triggers this bug/problem:
 https://bugs.winehq.org/show_bug.cgi?id=36139. So reinstalling Wine to latest (stable ) version will solve the problem.

Before to start we need First to remove the installed wine using the command.:

sudo apt-get autoremove wine –purge

Then remove the .wine directory:

cd /home/zinovsky
sudo rm -rf .wine

Now we will add the wine repository to install the latest stable release of wine:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get install wine

Configuration:

After that latest version of wine is installed, we need to run winecfg. This will create the .wine directory in our home directory.

Open terminal by pressing press Ctrl+Alt+T and run:

winecfg

After the .wine directory is created, we can start installing some necessery DLL and Libraries to make wine fully functional. To do that we will install first winetricks, a script that will help us install all the needed DLLs and libraries the easy way

Open terminal and past the following commands :

cd /home/zinovsky/.wine
wget http://www.kegel.com/wine/winetricks

Now make winetricks executable :

sudo chmod +x ./winetricks

Now we will install the needed dlls and libraries (Note that you can add or remove libraries depending on your system.)

./winetricks d3dx9 droid winxp sound=alsa volnum vcrun2008 dotnet20 ie6 corefonts

If you have an Nvidia graphic card you need to install physx Technology.

./winetricks physx

Some configuration can be done also from winecfg like configuring a system to set winever to XP : winxp, or set sound driver to use alsa sound=alsa.

Now you have wine installed and configured to install latest Windows applications!

If you want to play the latest Windows games you will need to make some more configurations in the windows registry:

Open terminal and type :

wine regedit

For further steps here


First of all; backup your important data. You can do this from the terminal with a simple cp command. Usually your data and personal settings are saved in your home folder (e.g. /home/username/). You can use cp -a to backup your home folder to an external drive (see man cp). Preferably, the external drive should have a Linux file system too (e.g. ext4), otherwise you will lose your file permissions.

If your home folder is actually on a separate partition (I believe the Ubuntu installation does this by default now), then you can easily revert to Ubuntu 12.04 without losing your data and personal settings. To check whether your home folder is on a separate partition, run the command df from the terminal. If "/home" appears in the "Mounted on" column of the output, then it is indeed a separate partition. To revert to Ubuntu 12.04, just reinstall it using the official Ubuntu 12.04 installation disc. During installation, tell it to replace Ubuntu 13.10, but keep and reuse the existing home partition (do not format the home partition). If you are lucky, it will appear as an option during installation at the partitioning step. If not, you will have to select manual partitioning (see question 285212). Again, do not format the home partition.

If your home folder is not on a separate partition, you can still install Ubuntu 12.04 using the official installation disc, but you will lose all your personal data in the process (because it is on the same partition as Ubuntu itself). But you can easily restore your data and personal settings with the backup you created. Just copy everything back into your home folder (e.g. /home/username/) after installation.

Since this is a clean install, you will have to reinstall any software that was not installed by default. But that is easily done via the Software Center.


The first thing is to make sure that you don't use that partition. Unmount it straight away if you are running the installed OS. Or just turn off the PC.

Boot from a utility disk with PARTED on it and mark the partition as whatever it was before, probably EXT2/3 if it was Linux. Then mount the partition and see if you can read the data. There is a reasonable chance that most of the data will be ok.

However, when you did the installation, there is also a good chance that the installer actually formatted the partition. If this is the case, it is less likely that the data can be recovered. But you can use a partition undelete tool to try. If you've done the above, unmount, put the partition type back to swp then run the undelete partition tool & follow the instructions.

There are too many partition undelete tools to list here but I did a quick Google search which returned a load of useful links.

Recommended recovery boot OS's:

Knoppix
System Rescue CD
Ultimate Boot CD


Can I use GParted to repartition my drive in order that I can install Windows 7 on a portion of the drive and have a dual-boot system?

Gparted is fine, just remember not to shrink your partition to much or you will lose your data.


OpenOffice Calc - Sheet Tabs and Buttons

I had a similar problem, and even though the question is old, I want to provide another answer:

The sheet tabs height is defined by the width of the GTK themes scrollbar. I guess you're using Ambience, Ambience's scrollbars are a bit smaller than usual ones, so the sheet tabs get distorted.

I use a GTK theme with tiny scrollbars (Orta), so those sheet tabs were barely visible.

If you use another GTK theme, for example Clearlooks, it will look normal again. If you don't want to change your whole Desktop to another theme, you can start libreoffice/openoffice in a terminal with this command:

GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc libreoffice

Of course you can replace Clearlooks with any other theme that suits you more.

I created some launchers, so I don't have to do that every time. To do this, copy the original launchers anywhere into your home folder. They should be in /usr/share/applications/.

Make your copied launcher(s) executable by right clicking on it in a file manager and going to "properties". From there look in the "access rights" tab and click "mark as executable."

Or in the terminal, change directory to your folder and use chmod +x:

cd ~/YOURDIRECTORY
chmod +x libreoffice*

And now you have to edit each of them (right click - properties) to add the specific GTK theme to the beginning. Add env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc in front of the command. It should look like this:

env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc libreoffice %U
env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc libreoffice --writer %U
env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc libreoffice --calc %U
…

Copy these launchers to ~/.local/share/applications/.

Now libreoffice should look fine.


Do i need DNS if i just plan to use my api server with ip address

No, you do not need DNS or a valid domain name pointing to your server.
You will be able to use the API without any problems, even without it.
Apart from a very basic apache configuration (a vhost listening on all IPs on port 80 / 443 for SSL) you will not need any special config.

Your ab command is not working because you are missing the trailing slash, so instead of
ab -n 1000 -c 10 http://ip_address
use
ab -n 1000 -c 10 http://ip_address/


Is there a way to apply a color profile system-wide?

Ubuntu 12.04
A wishlist bug report has been filed and fixed in Ubuntu 12.04, so you will see a button to set a profile as system-wide default (per device).

Open the Color page of the System Settings (press Super and search for Color),

Select the profile that should be applied system-wide.

Click on the Set for all users button in the bottom left:

After entering your password, the color profile should be default for this device for all users, including lightdm.
Ubuntu 11.10
Before above mentioned bug was resolved you were able to do this too, the function is just rather difficult to discover:

Open the Color page of the System Settings (press Super and search for Color),

Select the device which profile should be applied system-wide,

Hit the Menu key (or "context menu key") and select Set for all users:

After entering your password, the color profile should be default for this device for all  users, including lightdm.


OBS NVENC Doesn't work Out of Box on 20.04?

I installed Ubuntu 20.04 on a fresh machine last night. I did not install an NVidia driver from the NVidia website but rather used the one provided as additional drivers like you did

The OBS installation was done as outlined in the installation steps on the wiki, which means first installing FFmpeg and then adding the obs ppa.
Here, NVENC is working out of the box.

In the past on Ubuntu 16.04, I had to compile everything myself (FFmpeg and all its dependencies and then obs) to get NVENC working. The versions I'm using right now are

ffmpeg/focal,now 7:4.2.2-1ubuntu1 amd64 [installed]
obs-studio/focal,now 25.0.8-0obsproject1~focal amd64 [installed]

The difference I notice is that I'm using a more recent NVidia driver. Maybe this helps you to debug the issue.


What graphics cards will work with an Intel 945gcpe motherboard

The Intel 945gcpe only takes PCI cards. That limits you because 15 years ago AGP replaced PCI for graphics and then PCI-E replaced AGP. PCI-E is not compatible with the PCI.

Only a handful of cards have been released for PCI in the past decade. The ATI Radeon 9000 or 9250 are about as shiny as you'll get for PCI but by modern standards, it's hard to consider either a good option. They're both between £25 and £30 new in the UK. To put some context to this, you can buy a Nvidia GT 430 (low end but modern) for £40.

When you're looking at these prices, you should be weighing up the price of just buying a newer, second-hand, low-end computer. I don't think throwing money at the Intel 945gcpe is money well spent.


grub installation in fatal error in jbod disk setting

This is an old thread but i noticed something interesting when playing around with my Ubuntu Server install.

If you run from a normal 12.04 live cd and run Gparted (sudo gparted from the terminal) you may see the same... With larger arrays and UEFI you need a GPT as everyone has figured out by now. But here is the gotcha... (at least for me)

Once you declare the table (Device > Create Partition Table... Click on Advanced and select "gpt"), try creating a partition. Odds are if you are having trouble it will not be /dev/sdaX. It will be dev/mapper/yaddayaddayadda or something similar. Try typing that in for your grub installation.

mine was /dev/mapper/isw_deccijgjej_Raid1p1


Which is the location of "file" command?

You can use which command to locate a command:

which file

See man which for more info.


Can I remove doublet running program-button in Lubuntu panel?

I found that I had both

Application Launch and
Task Bar

in Panel Applets.

So of course it was my mistake.


try to boot an older kernel and see
you can change
vim /etc/default/grub
.. default=10
.. style=menu

Then
sudo update-grub
and let me know how it goes


Mail is working from terminal but not working from browser

It sounds like a php issue since it is working from command line. Have you defined your sendmail path in your php.ini file?

See this post Sending mails with PHP, LAMPP and PostFix


How to enable the glow on synthwave 84 vscode theme on ubuntu 18.04?

You need to use these commands:

$ sudo chown -R $(whoami)

 means the path to VSCode installation, most likely you have it in here /usr/share/code.

then run the extention custom css and js, restart VSCode.
Enjoy :)


Nothing happens when trying to restart Apache

Typically, if you start/restart apache, there is no confirmation given that it has started, though will advise if errors were encountered.

As shown with previous answers there could be a number of methods to start apache, based on the version of Ubuntu you are on.

Ubuntu 16.10, then following methods apply:

sudo service apache2 restart

sudo systemctl restart apache2

If concerned if it started properly, with either of the above commands, replace restart with status.

It should provide with a result similar to this if running:

    ● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; generated; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Wed 2017-03-22 00:38:10 UTC; 9min ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/apache2.service
           ├─1627 /usr/sbin/apache2 -k start
           ├─1630 /usr/sbin/apache2 -k start
           └─1631 /usr/sbin/apache2 -k start

Mar 22 00:38:09 potato systemd[1]: Starting LSB: Apache2 web server...
Mar 22 00:38:09 potato apache2[1605]:  * Starting Apache httpd web server apache2
Mar 22 00:38:09 potato apache2[1605]: AH00558: apache2: Could not reliably determine the server's ful
Mar 22 00:38:10 potato apache2[1605]:  *
Mar 22 00:38:10 potato systemd[1]: Started LSB: Apache2 web server.

When apache fails, we would expect to see something like:

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

Then issuing one of the provide commands, will give detail regarding the reason, apache could not be started:

    ● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; generated; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Wed 2017-03-22 00:49:46 UTC; 2min 10s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1810 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 1863 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 22 00:49:46 potato apache2[1863]:  *
Mar 22 00:49:46 potato apache2[1863]:  * The apache2 configtest failed.
Mar 22 00:49:46 potato apache2[1863]: Output of config test was:
Mar 22 00:49:46 potato apache2[1863]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf:
Mar 22 00:49:46 potato apache2[1863]: Action 'configtest' failed.
Mar 22 00:49:46 potato apache2[1863]: The Apache error log may have more information.
Mar 22 00:49:46 potato systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 22 00:49:46 potato systemd[1]: Failed to start LSB: Apache2 web server.
Mar 22 00:49:46 potato systemd[1]: apache2.service: Unit entered failed state.
Mar 22 00:49:46 potato systemd[1]: apache2.service: Failed with result 'exit-code'.

In this example, I moved /etc/apache2/sites-enabled to /etc/apache2/sites-disabled and attempted to start apache.

Hope this helps.


For a light Ubuntu distro either Xubuntu or Lubuntu would be a good choice but honestly with the specs you mention you should be able to dual boot and run pretty much any Ubuntu distribution you want.

You'll likely need to resize your existing partition with gparted to get the 80GB of free space you mention as unallocated prior to installation.

muru makes a good point in that you could simply add a light desktop environment to your existing installation and not dual boot at all but simply choose the environment you want from the login screen. This is of course a matter of preference.


I currently don't have the same issue, but I've only been running Ubuntu 14.04 for less than a week now. Can you try to open your terminal and run the top command to see if there is a process that's using excessive CPU?

If there is a process entitled compiz or Xorg, you may have an issue with your graphics driver that's over-stressing your CPU.

If Ubuntu can't fully access the graphics card in order to render objects on the screen, it forces the CPU to emulate the job of the GPU and that pots a lot of stress on it. It may be overheating on your computer and causes it to crash (I don't even know if that's possible on most modern computers/laptops).

And sorry: I would have just posted this as a comment, but I don't have enough rep.


Ubuntu 18.04 Can't use gcc - fopenmp option

This is a copy-paste error :  –fopenmp has a unicode dash in place of a regular ASCII dash. use this instead :

gcc -fopenmp


Depends a lot how your windows is set up to boot, and whether you are using windows' boot loader or GRUB bootloader in MBR.

Here's one way to do dualboot, (even) if Windows is running on a bitlocker-encrypted drive:
https://confluence.csc.fi/display/ATUKI/2016/08/05/Dual-booting+Bitlocker+Windows+7+and+Ubuntu+16.04+with+NeoGRUB+and+EasyBCD

Steps to create the dualboot:

Shrink the existing NTFS partition to make room for the Ubuntu
installation. Rightclick Computer - Manage - Disk Management -
rightclick partition - Shrink Volume. About 20-30GB should do.
Pause bitlocker while the configuration is being updated. Control panel - Bitlocker Drive Encryption - Suspend Protection
Create a Live-USB of the Ubuntu or whatever Linux you're about to install. Used LiLi myself.
Boot the computer with the Live USB stick, Install Ubuntu with advanced settings.
Add two logical partitions to the empty space: a swap partition the same size as the machines RAM, and an ext4 partition with mountpoint / (root)
        Make sure to set the bootloader to the logical partition, not MBR. Example: /dev/sda6 instead of /dev/sda
After Ubuntu has finished installing, boot to windows and download EasyBCD
Reveal the unencrypted windows partition from Computer - Manage - Disk Management - rightclick system partition - Change drive letter and paths. I assigned the letter Q: for the system drive.
Using EasyBCD, Add a new entry to the bootmenu from the NeoGRUB tab (install)
Click configure on the NeoGRUB tab and write this entry, referencing /dev/sda6:

title Ubuntu
root (hd0,5)
chainloader (hd0,5)+1

Save changes from the Edit boot menu -tab
Boot, verify that both Windows and Ubuntu start, resume bitlocker protection


Removing default Virtualbox guest additions?

From using the commands:

dpkg -l | grep virtualbox
ii  unity-scope-virtualbox      0.1+13.10.20130723-0ubuntu1      all    VirtualBox scope for Unity

And

lsmod | grep vboxguest
vboxguest   282624  6 vboxsf,vboxvideo

Since you want to remove these packages do as follows:

modules vboxguest:

Change into /opt/VBoxGuestAdditions-<version_number> folder

cd /opt/VBoxGuestAdditions-<version_number>

In there run:

sudo ./uninstall.sh

For the guest additions unity-scope-virtualbox:

sudo dpkg-query -s unity-scope-virtualbox

Package: unity-scope-virtualbox
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 77
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Version: 0.1+13.10.20130723-0ubuntu1
Replaces: unity-lens-vm
Provides: unity-lens-vm
Depends: python3, python3-gi, gir1.2-unity-5.0 (>= 7), gir1.2-dee-1.0 (>= 1.2.5), unity-scopes-runner, gir1.2-glib-2.0
Conflicts: unity-lens-vm
Description: VirtualBox scope for Unity
This package contains the "virtualbox" scope which allows Unity
to search for VirtualBox content.
Original-Maintainer: David Callé <davidc@framli.eu>
Homepage: https://launchpad.net/unity-scope-virtualbox

This is used by unity for search and probably be left alone.


Boots into Blinking Cursor and Black Screen After Auto Update

if you get grub. from a LiveCD. press c to get a command line.
change the drive refences as need for your install

From grub type ls (hd0,2)/boot/

you should see a file named vmlinuz or linux, and initrd.img. with version numbers

type: linux (hd0,2)/boot/vmlinuz-#### root=/dev/sda2 or linux (hd0,2)/boot/linux-#### root=/dev/sda2 depending on what you found with ls (hd0,1)/ then

`initrd (hd0,2)/boot/initrd-#####.img`

boot

if you get initramfs rescue mode -- enter your password then startx
you should now have a desktop.

use gparted to check your file system, if it reports an error, then you need to boot from a LiveCD or other media to fix it .... DO NOT attempt to repair a mounted partition.

The following three commands fix many grub boot problems. They run quick so just do all three instead of trying to find which one you need.

sudo install-grub /dev/sda, sudo update-grub and sudo update-initramfs -u

reboot and see what you get


How to install php 5.4.x on ubuntu 13.10 saucy salamander

ppa:ondrej/php5 contains the php5 5.5, you probably meant ppa:ondrej/php5-oldstable
I will add saucy to the list of supported release soon(ish) for ppa:ondrej/php5 (e.g. PHP 5.5)
I won't be adding saucy support for ppa:ondrej/php5-oldstable (PHP 5.4), if you required PHP 5.4 stick with older release (f.e. precise if you need LTS)


ilias@E34G-SHF3:~$ sudo apt-cache search multisync
libopensync1exp7-dev - Headers and static libraries for libopensync

So it's not in the repository. You need to download the .DEB files and install them (trough software-center or Gdebi).

Hereby the (direct) links:

multisync-tools

http://downloads.sourceforge.net/project/multisync/multisync/0.72/libmultisync-plugin-evolution_0.72-1_i386.deb

[ multisync0.90 (0.92.0~svn355-2) unstable; urgency=low ]

http://security.ubuntu.com/ubuntu/pool/universe/m/multisync0.90/multisync-tools_0.92.0~svn355-2_i386.deb

opensync-plugin-synce

http://security.ubuntu.com/ubuntu/pool/universe/s/synce-sync-engine/opensync-plugin-synce_0.15-2_all.deb

synce-sync-engine

http://security.ubuntu.com/ubuntu/pool/universe/s/synce-sync-engine/synce-sync-engine_0.15-2_all.deb

Please keep me informed.

Kind regards,

Ilias el Matani


Ctrl + Left arrow (to go to the beginning of the word)
Ctrl + Shift + Right arrow. (to select the word)


Unable to mount a Windows partition in write mode

The best answer is:

Don't use ntfsfix in Ubuntu. It'll potentially corrupt your Windows installation.
Boot Windows. Disable fast boot in the power control panel.
Disable hibernation. In an admin command prompt window, type powercfg.exe -h off.
run chkdsk on the drive in Windows

Now you should be able to mount it in Ubuntu.

To make the partition automount in Ubuntu, you need to modify /etc/fstab (sudo -H gedit /etc/fstab). Here's an example of what to add...

UUID=0C0F93CE58153D42 /media/username/Windows ntfs-3g defaults 0 0

replace my UUID with the UUID you find by using the sudo blkid command in terminal, and update the mount point with the correct info.

Cheers, Al


Which set of graphics drivers to download?

The radeon driver should work for you. (the one that is already used as indicated by the lspci output)

You will also need the packages xserver-xorg-video-ati and xserver-xorg-video-radeon. X should do the rest automatically. But if you want to force it you have to set the driver to radeon.

a full list of supported cards and features is available here (See the decoder ring at the bottom. I think you have an Evergreen Card. this is why you need radeon and not amdgpu)


Try a different mirror, like to the non-regional specific http://archive.ubuntu.com. Doing this is covered here.

You can also find out more mirrors on the Wiki.


trying to install mysql-connector for python 3

sudo apt-get install python3-mysql.connector
or
    pip3 install mysql-connector

this will install mysql.connector for python3 on ubuntu


Your filename actually contains both a carriage return and a newline. bash parameter expansion can handle this:

$ filename=$'attachment;\r\nJobRunStatisticsReport_20150122.zip'
$ echo "$filename"
attachment;
JobRunStatisticsReport_20150122.zip
$ shopt -s extglob
$ echo "${filename##attachment;*([[:space:]])}"
JobRunStatisticsReport_20150122.zip

Does not affect "normal" filenames:

$ filename="no attachment here"
$ echo "${filename##attachment;*([[:space:]])}"
no attachment here


Terminal commands not recognized as an internal or external command

The phrase

  ... is not recognized as an internal or external command

Is specific to Windows. That is to say, you're at a Windows command prompt.

Use Ubuntu. You'll find your commands work slightly better there.


Unless I'm mistaken, you can accomplish this with apt-pinning.

A basic howto for beginners can be found here; http://jaqque.sbih.org/kplug/apt-pinning.html


wine doesn't show persian(or arabic) words

You try to copy fonts to wine path. /home/<usrename>/.wine/drive_c/windows/Fonts This work for me.


How and where to report a bug when screen freezes?

After some research, and trying to tag my own question with a "freeze" tag which possibly means that this is a bug with a graphic driver, I just found that there are 2 bug reports at Oibaf's "Updated and Optimized Open Graphics Drivers". This bug causes the screen to completly freeze with the exception of the mouse pointer.

  Bug Description

  During the installation the computer freezes completely except for the
  mouse pointer. And even that is stuck with whatever shape it happened
  to have at the time it froze. The steps I have to cause the freeze are
  run Ubiquity to start the installation open a terminal, run Ubuntu-bug
  and let it launch Firefox. It will freeze every time then. Even the
  consoles (ctrl-alt-f1 etc) are unavailable. What kind of information
  can I collect and how?

Bug #1377878 for Oibaf's repo and Bug #55745 for Xorg Project Team, are related and quite old (reported 2 years and 4 years ago respectively without a fix).
I would suggest, sticking with default Ubuntu drivers, suscribe to #1377878 and wait for a fix.


Please help - error: Ignoring file 'pg' in directory

To use the PostgreSQL Apt Repository in Ubuntu 20.04 follow these steps:

Create the file /etc/apt/sources.list.d/pgdg.list with cd /etc/apt/sources.list.d/ && sudo touch pgdg.list and add a line for the repository.

sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list"

Import the repository signing key, and update the package lists.

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update


Problems with login screen kubuntu, lightdm

First remove XFCE completely. It seems to have left configuration files.
(sudo apt-get purge xfce)
(sudo apt-get autoclean) (sudo apt-get autoremove)

KDE uses kdm for login screen. You should install it.

Then run sudo dpkg-reconfigure kdm.


Does Ubuntu 20.04 Focal Fossa support the Compose-Key?

Gunnar's comment pointed me into the right direction.

gsettings get org.gnome.desktop.input-sources shows the current active settings and therefore I was able to find out that I used the wrong key.

Using the gnome-tweak-tools I could update the settings accordingly to the right-ctrl which finally worked.


Do Nvidia's drivers work in 12.10 on a MacBook Pro?

Same problem here with new kernel update to 3.5.0-21
You can run the terminal from a F##! up unity by keyboard shortcut ctrl+alt+t
Then you can run the command software-center to launch the software center or google-chrome to launch the chrome internet browser (better than anything ^^)
Install linux-headers-3.5.0-21-generic from software-center (I'm on x64)
download the 310.19 version of the driver on Nvidia's website

Ctrl+F1

login with user + psw

cd Downloads (or whatever path you downloaded your nvidia####.run file)

sudo service lightdm stop

sudo sh nvidia.run (I renamed the nvidia install file to "nvidia.run" when downloading) I think I did say yes afterward to everything in the installation process

sudo reboot

Hope it helps


Problem installing vineyard from terminal

Instead of running: apt install 1232  run sudo apt install 1232. You will be prompted to enter your password and you must be in the group sudo or have permission to use the command in the sudoers file to be able to run sudo


Deleted Windows Partitions on drive now what do I do?

Yes, You need to format the drive or partition before use. But before formatting, you need to create partitions on the disk.

Use GParted to do this easily in a graphical way. Go to /dev/sdb, format as ext4, and mount it to partition of your choosing, e.g. /media/allthisfreespace.

See the Ubuntu manual pages for fdisk, mkfs, and parted

  I assume I need to mount it?

You can only mount the drive after creating a filesystem by formatting a partition.


Get flash drive to cache disk reads to primary partition

Unfortunately, this is not currently possible.  CacheFiles has only been implemented for NFS so far.  Another upcoming possibility is CleanCache.  Currently CleanCache only has two backends: one for xen tmem, and one for storing cached pages in compressed ram.  Hopefully a third backend will be written to store the cached pages on block devices like flash drives.


Installed Okular using snap, toolbar file open entry don't work

One of the kernels between 4.4.0-155-generic and 4.4.0-157-generic solved the issue, as the rest is the same and now everything is working.


How do you offload a flatpak application to run on the nvidia graphics card when using prime?

Check that PRIME offloading is working

This is better answered in this question: https://askubuntu.com/a/1316539/253247
Install the flatpak GPUViewer application.

Set Application for offloading
Then you must change add the required environment variables in order to activate the GPU offloading:
via cli
# for OPENGL
flatpak override --env="__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia" full.application.Name
# for vulkan
flatpak override --env="__NV_PRIME_RENDER_OFFLOAD=1" full.application.Name

# for our testing we will do OpenGL with the GPUViewer application
flatpak override --env="__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia" io.github.arunsivaramanneo.GPUViewer

Flatseal

Testing
Launch GPUViewer and go to the OpenGL tab, You should see the Nvidia graphics cards selected. If it still shows the Intel card then the offloading is not working.


How to host a webpage with AWS using IP address

In AWS, go to elastic IP address, and associate a public ip with your instance. Then, install a LAMP stack on your instance and upload your html files to /var/www/

The trick is the elastic public IP address.

For more on the Apache / LAMP etc, ask a more direct question about those, or follow a tutorial on Ubuntu.com


You cannot enable it by default on all applications (yet), because of the following reason (according to NVIDIA):

  These optimizations typically benefit CPU-intensive applications, but might cause a decrease of performance in applications that heavily rely on synchronous OpenGL calls [...]. Because of this, they are currently disabled by default.

Instead, you're going to have to run your OpenGL application (games eg.) as follows:

env LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 yourcommand

If you don't do that, a lot of games will not perform as well as they could (Source games being the most notable).


Is audio latency reduced on Ubuntu Studio versus Windows 10?

Ubuntu Studio, unlike any other variant, comes with low-latency kernel specifically for the audio recording features.
Theoretically it is always better suited for the task than any generic kernel, irrespective of the OS family.
This old Q&A has amazing insights and a wealth of information that is for the most part still valid nowadays: Why choose a low latency kernel over a generic or real-time kernel?


Menus disappear on changing compiz settings

Compiz is very advanced tool and should be used with caution. Otherwise you will face this kind of problem.

Reset Unity

Run following in terminal.

unity --reset

Reset Unity Launcher icons

If you want to reset the Unity Launcher icons (dock bar on the left) to their initial state, run the following command:

unity --reset-icons

Reset Compiz

Run following in terminal.

sudo gconftool --recursive-unset /apps/compiz-1
sudo gconftool --recursive-unset /apps/compizconfig-1

Logout and Logback in.


Just Upgraded to 11.04 form 10.10. It hangs after boot and just new desktop is shown

The problem was because of the unity desktop (it is the default view in Natty). I just selected Ubuntu Classic as the default session from System Settings -> Login Screen Settings and now the old desktop is OK.
Tnx


Few things I would make sure of.

Check the name of that ISO file you downloaded and make sure it has "Desktop" in there somewhere.
How old is the laptop? If it's too old, Unity won't run on it.
If you want to try and install Unity anyway, sudo apt-get install ubuntu-desktop
If you can't use Unity with Ubuntu, either try a different distribution or install a different desktop environment. See here for a list/comparison of desktop environments for Linux.

Good luck!

EDIT: If you want to remove Unity, see this answer.


You could make a ramdisk for certain directories using tmpfs

For example for the ~/.cache/ directory, which google chrome and chromium use to cache data, the entry in /etc/fstab would be:

tmpfs /home/your_username/.cache tmpfs defaults,size=1024M 0 0

However, it should be noted that the contents get lost with each reboot.

Anther suitable directoriy might be /tmp. Note that you can specify the size of the tmpfs in absolute or relative (to your RAM) values:

Use 1G of your RAM:

tmpfs /tmp tmpfs nosuid,size=1G 0 0

or, use 10% of your available RAM:

tmpfs /tmp tmpfs nosuid,size=10% 0 0


Does booting a live USB (with persistence turned off) cause writes to occur to it?

A live USB acts just like a live CD. Like a live CD, booting is accomplished by extracting a 4 GB filesystem from a highly compressed 700 MB SquashFS image.  SquashFS is read-only, so any data that is "changed" in the live session is written to a ramdisk, which (as it's name implies) is kept in RAM and removed on shutdown.

However, you may choose to actually install Ubuntu to a flash drive if you wish.  This will cause Ubuntu to treat it as a hard disk, therefore causing it to write to the drive.  Note that because Ubuntu needs to be installed on a write-enabled filesystem, you will not be able to use SquashFS and will need the full 5GB (as opposed to ~700 MB) of space required by an uncompressed Ubuntu install.


Samba Share on Pi – Windows & Linux can write but not applications (Sublime, Codeblocks)

EDIT: Even setting guest and public to yes, results in the beforementioned no permission error in sublime etc...

If you haven't already, make sure to run sudo service smbd restart when you are finished with any changes.

ANYWAY,

You should try out force user = pi in your CONFIG file. This should require no authentication on your end when saving files if I recall correctly. As for security flaws,  as long as nobody has the server's local IP address (since I don't think you'll be port forwarding SAMBA), you should be fine. public = no handles this pretty well.

Well, ignore this now.
I installed Samba, and the main cause for "Permission denied" errors was because the shared folder was not owned by the logged-in user trying to edit it. sudo chown pi /network in your case should work. Reload the service with sudo service smbd restart, and things should work.
Authenticating all saves to your Raspberry Pi should be fixed with this too.


Can't get Ubuntu 16.10 installation USB to boot Apollo Lake motherboard

You need to set CSM to Enabled in the motherboard's UEFI, under Boot menu (along with that, I have set Legacy only value for all 3 options below it) and then create the bootable drive using either MBR or GPT partition table.


Use reportbug --configure and it will ask about your name, email address, and other details.


My networking service is not getting is failing in lubuntu

If I'm understanding your problem correctly, you need to do this...

Change /etc/network/interfaces to look like this...

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback

# Source interfaces
# Please check /etc/network/interfaces.d before changing this file
# as interfaces may have been defined in /etc/network/interfaces.d
# See LP: #1262951
#    source /etc/network/interfaces.d/*.cfg

#    and the content of /etc/network/interfaces.d/ shows

#   auto eth0
#    iface eth0 inet static
#    address 10.4.0.2
#    netmask 255.255.255.0
#    gateway 10.4.0.1
#    dns-nameservers 10.4.1.12

Then go to the NetworkManager GUI, create a new Wired Connection, set it for manual addressing, and enter the above static info there. Here's what it should look like... mine will look a little different than yours, as I'm on 18.10, but you'll get the idea...


Format usb drive ( remove windows .exe virus)

First Unmount the usb drive and then try to format it.

Open Gparted partition Editor from Dash.
Look for the Usb drive (in your case it is /dev/sdc)
Then right-click on the partition inside the disk /dev/sdc that is /dev/sdc1 and format it to fat32 filesystem.

OR

Try the below commands on terminal,

sudo umount /dev/sdc1
mkfs.vfat -I -n "New Volume" "/dev/sdc1"


How compatible is Wine with Windows as of today?

You should check out the Wine App Database, it lists programs that have been tested on Wine, along with test results.

http://appdb.winehq.org/

Some programs work great, some don't, some require patches or dirty fixes e.g. Winetricks. Luck of the draw really. Either way the App DB is great as it contains reports on Windows applications that have been tested and detail how successful the program was on a specific distro.

It might not have all the Windows programs in the world, but it certainly lists most of the mainstream Windows applications.


Having trouble upgrading from ubuntu 12.04 lts to 14.04 lts

I know its late, but I just had the same Problem upgrading from Ubuntu 16.04 to 16.10.

...
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command detached from window (Thu Oct 20 12:02:18 2016) ===
=== Command terminated with exit status 1 (Thu Oct 20 12:02:28 2016) ===

simply pressing 'r' to reattach to the screen solved my problem.

Hope it helps someone!


How to Access Google Drive in Jupyter Notebook on Ubuntu

From GitHub page: Google drive for Jupyter notebooks

  This repository contains custom Contents classes that allows IPython
  to use Google Drive for file management. The code is organized as a
  python package that contains functions to install a Jupyter Notebook
  JavaScript extension, and activate/deactivate different IPython
  profiles to be used with Google drive.

  To install this package, run:

git clone git://github.com/jupyter/jupyter-drive.git
pip install -e jupyter-drive

  This will install the package in development mode with pip, which
  means that any change you make to the repository will be reflected
  into the importable version immediately.

  To install the notebook extension and activate your configuration with
  Google Drive, run:

python -m jupyterdrive

  To deactivate, run:

python -m jupyterdrive --deactivate

  First launch

  Launch IPython with the profile in which you activated jupyter-drive:

ipython notebook --profile <profilename>

  On first launch, the application will ask you for the authorization to
  access your files on Google Drive. It only asks for permission to
  create new files or to access files it has created or that you
  manually open with this application. It also requires permission to
  access file/directory metadata, in order to display the list of
  files/directories in the tree view.

  The request pop-up looks like the following:

  Clicking OK will open a Google OAuth pop-up. You will see that the
  Jupyter Drive application wants access to some information about your
  files. Keep that in mind if you want to revoke access at a later
  point.

  Once you click Accept you should be able to start creating new
  notebooks on Google Drive, and open existing ones created by this
  application, and view files/directories in the tree view.


How to resolve " The harddisk seems too small" with Testdisk deeper search option

This error message is to be expected on a deeper search of a drive that had been re-partitioned several times in the past. Of course your drive will not be able to hold all these old partitions, because they would add up to much more space than available.
The next step to do is to select the NTFS partition to then [Continue].
The screenshot below shows the next window for an ancient Linux partition I selected (due to lack of NTFS here):

Check file integrity
Before we continue with the recovery we should check first if our files are still present by pressing P. This will list all detected files on this partition. Damaged files can not be recovered and will be colored red (here e.g. a vmlinuz.4578 file):

File recovery (recommended)
We can now select all files A or single files : to then copy C them to our mounted backup drive.
Partition recovery
Only if we are lucky the partition may be recoverable as a whole. Then we can change the partition characteristics in the screen above with left or right arrow keys to primary bootable, primary, logical, or extended.
On writing these changes to the drive (or much better an image of the drive!) the partition may then be recovered. If that is not possible you will get a warning Structure: Bad. on selecting.

Warning: Whole partition recovery though often beneficial is nevertheless a potential additional risk to your data. It may lead to a completely messed up partition table which makes further recovery harder if not impossible. Therefore single file recovery is the preferable way to go before we try with partition recovery. Alternatively we can try to recover partitions on an image of the drive rather than on bare metal.

If all fails...
The old partition tables may be so much damaged that a partition recovery is no longer possible. Then we may try to recover single data files using PhotoRec which should also be installed with TestDisk .
Recommended further reading
The makers of TestDisk and PhotoRec provide a very concise step by step guide on data recovery which is really recommended reading before we start.

TestDisk Step By Step
PhotoRec Step By Step


How to get updated IP address mailed to me in DNSExit?

Prerequisites

Install sendEmail. It's a lightweight, command line SMTP email client. We'll use it to send emails from a script, using a Gmail account.

sudo apt-get install sendemail libio-socket-ssl-perl libnet-ssleay-perl

Create the script

Create a file named "ip-notify.sh" somewhere, for example in a "Scripts" directory in your home folder; make it executable, and open it up for editing.

mkdir -p ~/Scripts && touch ~/Scripts/ip-notify.sh && chmod a+x ~/Scripts/ip-notify.sh && gedit ~/Scripts/ip-notify.sh

Insert the following text in the file:

#!/bin/bash

# Modify the following values!

  SENDERNAME="Computer" # This is the name that will show in the 'From' field. Purely esthetic.
  RECIPIENTNAME="Your Name" # This is the name that will show in the 'To' field. Also purely esthetic.
  GMAILADDRESS="someemail@gmail.com" # This is your Gmail address.
  GMAILUSER="someemail" # This is your Gmail username, without the '@gmail.com' part.
  GMAILPASS="password" # This is your Gmail password.

# You can stop modifying here

DIR=/tmp/
CURIP=dnsexit-ip.txt
IPLOG=/var/log/dnsexit.log
SMTPSERVER="smtp.gmail.com:587"

if [[ $(find $DIR -mmin -2 -name $CURIP) ]];
then
        echo "$CURIP has been modified in the last two minutes."
        # Send an email
        sendemail -u "IP Address" -m "IP address has changed!" -f "$SENDERNAME <$GMAILADDRESS>" -t "$RECIPIENTNAME <$GMAILADDRESS>" -s $SMTPSERVER -xu $GMAILUSER -xp $GMAILPASS -a $DIR$CURIP $IPLOG
fi

Once that's done, save and close the file.

Run the script periodically

We'll run this script every two minutes. Open up your crontab.

crontab -e

Add the following line to the bottom of the file:

*/2 * * * * bash ~/Scripts/ip-notify.sh

You're done!

If all goes well, you should now get email updates when the IP address of your machine changes.


grep and cut in a cue file + mkdir creates a directory name with a question mark

A solution is the following:

#!/bin/bash

while read line; do
   if [ "${line:0:10}" = "REM GENRE " ]; then
      folder=$(echo "${line:10}" | tr -d '\n\r')
      mkdir $folder
      break
   fi
done < file.cue
echo "Folder $folder has been created"

Tested with the sample file you have appended as a comment to this answer.

Explanation:
At the beginning there is a while loop, which, as you can see from done < file.cue, it reads the file.cue and reads, one by one, the file.cue's lines.
The if statement now, the line

if [ "${line:0:10}" = "REM GENRE " ]; then

means: If the first 10 letters of the variable 'line' equals to "REM GENRE " then...

When the if statement is true, we are on the line we are interested in. What we care about this line, is the characters after the 10th letter of $line, though. The ${line:10}, means everything after the 1st 10 letters of variable 'line'.

So, I 'echo' everything after the 1st 10 characters, and, with the help of 'tr' I cut any newline character (which was what caused the problem, in reality). I append this to the variable 'folder' and I create it.


Gnome fallback move to workspace not working - Ubuntu 14.04

I had this problem as well.
It turns out (at least in my case) that the workspace option was turned off as part of the upgrade. All I had to do was go to System Setting, Appearance, Behaviour(tab) and turn on the 'Enable Workspaces' radio button. That restored workspace functionality to the way that I remember it before the upgrade.

I got this info from the following site:
http://www.unixmen.com/quick-tip-enable-workspaces-ubuntu-14-04-lts-desktop/


System Constantly Freezes with Ryzen x1700 and Ubuntu 18.04

Problem solved.
I ordered full hardware check, and hoster sent me review.

  Dear Client,

  Unfortunately your server crashed while the hardware check, so we
  decided to replace the sever, but reconnect the old drives.

  Afterwards we checked your drives and saw that your 4 TB drive is
  broken and doesn't start any more. So please confirm the data loss to
  the drive.

  Your server is now booted into the rescue System.

I will try to work with new hardware, if problem still here, I'll let to know.


Turns out it was a brute-force attack on my VNC port getting through my router.  I've installed DenyHosts and Fail2Ban and I'm keeping an eye on the syslog.


How can I see and close active software manager processes?

Different tools exist for checking active processes.

ps command

This command allows to get a list of active processes, along with other information. Usually it is used with ax parameters (to see all processes) together with grep as a filter, for example:

ps ax | grep -i apt

In this case -i means case-insensitive match. This will show process ids, e.g.:

andrea@farore:~$ ps ax | grep -i apt
24036 pts/5    S+     0:00 sudo apt-get update
24037 pts/5    S+     0:00 apt-get update
24040 pts/5    S+     0:00 /usr/lib/apt/methods/http
24041 pts/5    S+     0:00 /usr/lib/apt/methods/http
24042 pts/5    S+     0:00 /usr/lib/apt/methods/http
24043 pts/5    S+     0:00 /usr/lib/apt/methods/http
24044 pts/5    S+     0:00 /usr/lib/apt/methods/http
24046 pts/5    S+     0:00 /usr/lib/apt/methods/gpgv
24066 pts/5    S+     0:00 /usr/lib/apt/methods/bzip2
24069 pts/3    S+     0:00 grep --color=auto -i apt
andrea@farore:~$

You can then kill individual processes by issuing a kill command:

kill -9 24036

The number 9 is the signal, in this case SIGKILL (which means a brutal interruption). A more "nice" signal is SIGTERM which corresponds to 15. For more information on signals, see the manpage:

man 7 signal

top command

This command shows an interactive view of active processes, also showing process numbers. They are usually sorted by CPU usage.

When you know the process number, you can kill it as said before.

htop command

This process manager is not installed by default, but it's available in the standard repositories. It is similar to top, but has easy keyboard shortcuts such as F6 for sorting and F9 for killing.

System monitor

Finally, you can find the "System monitor" application in the Unity dash, which shows a very basic list of running processes and allows to kill them. Similar tools with similar names exist in all Ubuntu derivatives. In any case, IMHO the aforementioned CLI tools are faster.


Is it possible to transfer files from windows 7 to ubuntu? using dual boot

After installing Ubuntu on dual boot.

1) To transfer files from Windows to Ubuntu:

Well, you don't even need to =) Ubuntu can read NTFS partitions (Windows file system) you can browse your Windows drive without effort. (and of course, transfer files from Windows partition to Ubuntu partition)

2) To transfer files from Ubuntu to Windows:

Read the post suggested by Uri Herrera

Of course, you can also transfer files the ugly way, using an external storage, like USB stick.


Pressing a key on the keyboard may take the display out of sleep mode and cause something to appear on the screen. Also, try switching virtual terminals using ctrl-alt-f1, ctrl-alt-f2, etc.


How can I protect my data in the event that my laptop gets stolen?

One very good method is to encrypt your Hard Drive. This can be done at the beginning of installing Ubuntu on a machine. Setting a strong password will make it near impossible for your data to get compromised if your laptop is ever stolen.

Here are some good resource to get you started:

https://help.ubuntu.com/community/FullDiskEncryptionHowto
https://www.howtogeek.com/116032/how-to-encrypt-your-home-folder-after-installing-ubuntu/

As for accessing your data if your laptop gets stolen, they will not be able to log into your machine if it is password protected. But if your hard drive or data are not encrypted, they can remove the hard drive and access it as external memory on a separate machine. That is why it is always a good idea to both encrypt your data and your hard drive.


MAAS - Using as an offline solution for imaging?

Yes.  There is no difference between loading an image with some other system and loading it with MaaS.  The only issue I might see is that MaaS is linux server centric, and there don't seem to be any good tools for building custom images for it.  Thus, it doesn't lend itself to loading Desktop or Windows.

A work around might be to build "Fast Installer" images, which I understand to be the equivalent of actual images, as opposed to installing from scratch.  The downside to that is you would have to find or write scripts that can interact with the non-linux target OS to tell it machine name, security, domain membership, etc.

[edit]

Here is a link to a sight that explains how you install windows with MaaS:

http://wiki.cloudbase.it/maas


If I create a link to a folder, how can I get from that linked folder to the "real" folder from within Nautilus?

As of right now there doesn't seem to be any official implementation of this feature. I found a feature request on Ubuntu Brainstorm, but it has been open for quite a while. It might still be a good idea to vote on one of the suggestions provided there.

In the meantime you can add a nautilus-script to perform this task. Just copy the script below and paste it in an empty file with a name of your choice in ~/.gnome2/nautilus-scripts/ (e.g. "Open link target").

#!/bin/bash
#Title=open-the-link-target-in-nautilus
#Title[fr]=ouvrir-le-repertoire-cible-dans-nautilus

#==============================================================================
#                     open-the-link-target-in-nautilus
#
#  author  : SLK
#  version : v2011051501
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================
#
#  description :
#    nautilus-script :
#    opens the target of a symbolic link of the selected object; if
#    the target of the symbolic link is a file, opens the parent folder
#
#  informations :
#    - a script for use (only) with Nautilus.
#    - to use, copy to your ${HOME}/.gnome2/nautilus-scripts/ directory.
#
#  WARNINGS :
#    - this script must be executable.
#    - package "zenity" must be installed
#
#==============================================================================

#==============================================================================
#                                                                     CONSTANTS

# 0 or 1  - 1: doesn't open but displays a message
DRY_RUN=0

#------>                                       some labels used for zenity [en]
z_title='open the link target in nautilus'
z_err_bin_not_found='not found\nEXIT'
z_no_object='no object selected\nEXIT'
z_info_target='path of the target'
z_choice_open_nautilus='open target in nautilus'
z_choice_open_file='open file with default application'
z_choice_display_filepath='open a messagebox to copy filepath'

#------>                                       some labels used for zenity [fr]
#z_title='ouvrir le repertoire cible dans nautilus'
#z_err_bin_not_found='introuvable\nEXIT'
#z_no_object='aucun objet selectionne\nEXIT'
#z_info_target='chemin de la cible'
#z_choice_open_nautilus='ouvrir la cible dans nautilus'
#z_choice_open_file='ouvrir le fichier avec le programme par defaut'
#z_choice_display_filepath='ouvrir une boite de dialogue affichant le chemin du fichier'

#==============================================================================
#                                                                INIT VARIABLES

# may depends of your system
DIRNAME='/usr/bin/dirname'
GREP='/bin/grep'
NAUTILUS='/usr/bin/nautilus'
PERL='/usr/bin/perl'
READLINK='/bin/readlink'
XDG_OPEN='/usr/bin/xdg-open'
ZENITY='/usr/bin/zenity'

#==============================================================================
#                                                                     FUNCTIONS

function check_bin
{
    err=0
    for bin in $* ; do
        if [ ! -x "$bin" ] ; then
            $ZENITY --error --title "$z_title" \
              --text="$bin $z_err_bin_not_found"
            err=1
        fi
    done
    [ $err -eq 1 ] && exit 1
}

#==============================================================================
#                                                                          MAIN

# lets check for required binaries :
[ -x "$ZENITY" ] || {
    echo "[ERROR] $ZENITY not found : EXIT"
    exit 1
}
check_bin "$DIRNAME" "$GREP" "$NAUTILUS" "$PERL" "$READLINK"

# lets check if object is selected :
[ "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" == "" ] && {
    $ZENITY --error --title "$z_title" \
      --text="$z_no_object"
    exit 1
}

# retrieve the first object selected :
first_object=`echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" \
  | $PERL -ne 'print;exit'`

# lets check if local path :
[ `echo "$first_object" | $GREP -c "^/"` -eq 0 ] && {
    $ZENITY --error --title "$z_title" \
    --text="[ERROR] $first_object has not a valid path\nEXIT"
    exit 1
}

# retrieve the target path :
if [ -L "$first_object" ] ; then
    # symbolic link
    target=`$READLINK -f "$first_object"`
else
    # not a symbolic link :
    target="$first_object"
fi

if [ -d "$target" ] ; then
    # target is a directory
    target_to_open_in_nautilus="$target"

else
    # target is a file, let's take the parent directory
    target_to_open_in_nautilus=`$DIRNAME "$target"`

fi

### DRY RUN : noop

[ $DRY_RUN -eq 1 ] && {
    $ZENITY --info --title "$z_title" \
      --text="DRY RUN
first_object: $first_object
target: $target
target_to_open_in_nautilus: $target_to_open_in_nautilus"
    exit 0
}

### GO : let's open

choice=`$ZENITY --list --title="$z_title" --width="500" --height="200" \
  --text="$z_info_target\n$target" \
  --radiolist --column "" --column "action" \
  TRUE "$z_choice_open_nautilus" \
  FALSE "$z_choice_open_file" \
  FALSE "$z_choice_display_filepath"`

case $choice in
    "$z_choice_open_nautilus")
        $NAUTILUS --no-desktop "$target_to_open_in_nautilus"
    ;;
    "$z_choice_open_file")
        $XDG_OPEN "$target"
    ;;
    "$z_choice_display_filepath")
        $ZENITY --entry --title="$z_title" --width="500" \
          --text="$z_info_target" \
          --entry-text="$target" &
    ;;
    *)
        exit 1
    ;;
esac

exit 0

### EOF

Then make the script executable by right clicking on your file and and going to Properties --> Permissions and checking Allow executing file as program.

The script should now appear as a new menu entry in the nautilus context menu. Just right-click on a link and choose Scripts --> whatever-you-named-your-script.

Script source: http://gnome-look.org/content/show.php?content=134979


Switch between two versions of Gnome shell

In short, no, you cannot run a newer Gnome Shell version through snap.

The snap you install contains core library files. It is intended to run the latest Gnome apps such as Fotos, Maps, System Monitor, Calculator on an older Gnome Shell using snap technology. In fact, in Ubuntu, System Monitor and Calculator by default come as a snap app.


Wireless disabled by hardware switch Lenovo Y40

Since unloading ideapad-laptop evidently gets the wireless working, let's blacklist it:

sudo -i
echo "blacklist ideapad-laptop"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r ideapad-laptop
exit

You should be all set.


Will apt-get upgrade upgrade all my installed software?

Yes the above will upgrade all installed packages including any installed using apt-get but not any you installed by compiling from source.

How do I update Ubuntu manually?


Windirstat shows Ubuntu is taking up 70 GB of space

From what you've shown with df, I would venture that ncdu is correct with the amount of consumed storage that is being used is correct. The number will be around 325MB, give or take. What you see in df are a number of mounts that point to the same location, which is why they all have the exact same set of numbers.
The issue that you face has nothing to do with Ubuntu and everything to do with Windows. There is a long-standing WSL Github issue on this topic that has been open since November 2019. WSL will automatically grow your virtual disk, which you've correctly identified as ext4.vhdx, but shrinking it to reclaim unused space is something that must currently be done manually.
First things first:

Shut down the WSL machine:
wsl --shutdown

Make a copy of the vhdx as a backup (in the event things go sideways)

Next, if you are using Windows Professional (or something more expensive), you can install Hyper-V and use Optimise-VHD to resize the image as described in the above GitHub issue:
optimize-vhd -Path .\ext4.vhdx -Mode full

If you are using Windows Home or above, you will need to use dispart like this:
diskpart
select vdisk file="C:\WSL-Distros\…\ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit

A third option would be to export the WSL image and re-import it, which can be done like this:
wsl --shutdown
wsl -l -v
wsl --export <DistroName> <PathToTarArchive>
wsl --unregister <DistroName>
wsl --import <DistroName> <PathToDistroNewDirectory> <PathToTarArchive>
wsl -l -v

Note: The default username will need to be reset after importing the image.
As for "Why is Windows using 70.3GB of storage or a 0.3GB WSL image?", you will need to ask the people in Redmond, as knowing the answer is well beyond my pay grade.
Hope this helps you reclaim a good bit of storage.


The missing file is in texlive-publishers.

Please try sudo apt-get install texlive-publishers and run pdflatex again.


Install guest additions for virtual box.  Then you can do custom resolutions.

Manual description of guest additions
https://www.virtualbox.org/manual/ch04.html#idp52109792

How to video
https://www.youtube.com/watch?v=Q84boOmiPW8


Ubuntu 14 compatible with Asus Slate EP121 with Touchscreen?

touch works fine in 15.04.  also got the bluetooth keyboard working out of the box.  still cant rotate the screen though.

fixed the rotation with help here:
 How can I rotate my display in the most easy way?


#!/usr/bin/php sometimes not working on 12.10 server

It turned out that this problem was caused by php files that has been uploaded with Windows line endings.  Once I corrected the line endings using dos2unix the problem went away.


importing songs from rhythm box to ipod doesn't work properly

It sounds like what happens when the MP3s are encoded with VBR bit rate. If you re-encode with a static bit rate, they should behave fine on the iPod. I don't know if newer iPods are any better with VBR, but I know old ones really did not like it. I've had a lot of problems using VBR on an iPod, when I was previously using an iPod.


Ubuntu 16.04 LTS live boot same as install?

If the Live CD works properly, installing Ubuntu will almost definitely give you a working system.

What you can do to be more sure is to resize the Windows partition in Gparted on the Live CD, keeping it around. Install Ubuntu into a new / partition and a new swap partition (after the / partition) using the space left over. Run Ubuntu for a few days to see if it works.

If it does work, either reinstall Ubuntu by erasing the hard drive and using the whole drive or run Gparted on the Live CD, delete the Windows partition, and resize the Ubuntu partition to take the freed up space as well.

If it doesn't work, run Gparted on the Live CD, delete the Ubuntu partitions, and resize the Windows partition to take up the drive.


Is there any way to create backup copy of a file, without type its name twice?

You could use brace expansion like this:

cp example_file{,.bak}


How to install Oracle XE from broken Oracle repository?

What is an alternative way to download and install Oracle XE?

If you need the Oracle XE packages from that repository, simply installing them manually is the best option; they haven't been updated since 2006, so it's unlikely they will ever be.

Go to https://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/

Download the .debs you need.

Open in Software Center to install, or install from the terminal with sudo dpkg -i name-of-deb.


How can I make my Pinnacle PCTV HD PCI card work in Lucid or Maverick?

It seems like tvtime hasn't kept up with the times and does not use ALSA or PulseAudio, and instead tries to use OSS, which is likely disabled. You can attempt to have PulseAudio redirect OSS requests for this application by running it under padsp:

sudo apt-get install pulseaudio-utils
padsp tvtime

If that doesn't work, try the suggestions that use sox as well, mentioned here: http://ubuntu-ky.ubuntuforums.org/showthread.php?p=6350938


Will Ubuntu work with my mac book pro I7, 8gb ram, and 500gb hard drive?

It should work just fine. As a recommendation use the 64-bit image of Ubuntu 14.04 because it's long term support and will provide updates and support for a couple of years while 14.10 will only last a couple on months. Yes you can dual boot. I see from your  description that you might still want to keep OS X for a while. So also as a recommendation: tick the option install Ubuntu alongside, Mac OS X in your case and not to replace Mac OS X. Later you can get rid of Mac OS X(or Ubuntu) if you so decide and extend Ubuntu to use the full HDD.


currently there are no drivers available for linux. there is work being done but no good progress so far.
https://gitlab.freedesktop.org/libfprint/libfprint/issues?scope=all&utf8=%E2%9C%93&state=opened&search=27c6


Cannot resolve custom domains when VPN is up

Maybe look at /etc/nsswitch.conf. I had a problem with Ubuntu not acknowledging names from my local dns server regardless of the /etc/resolve.conf setting. Slackware worked fine so I modified mine to be a little closer to Slackware's version:

hosts:          files dns mdns4_minimal mdns4 [NOTFOUND=return]

I think I had to move the dns and mdns4 stuff... maybe there was an asterisk (*) that prevented further lookups.


Xubuntu 14.04 says it's connected to wifi but is really slow and won't connect to any website as if there is no internet connection

i kind of had a similar issue once. At work i had no problem with connecting to the web with my Xubuntu 12.04.4 installations, though at home my laptop connected to the but was super slow. I was fiddling about it for a couple of days and finally found out that my wifi adapter was in energy saving mode. Maybe its worth a try.


When I boot up my notebook PC from USB it shows me this: BOOTMGR is missing

The USB disk is not bootable.  Please use proper method to prepare usb disk.

From Windows you can use following programs,

Lili
Universal USB Installer

From ubuntu, you can use

Start up disk creator

Unetbootin is an utiliy that runs both Windows and Linux.


19.04 - HP - System BootOrder not found. Initializing defaults. + Rebooting instead of Shutting down

Not sure if this is exactly your issue, but I ran into the same error when I installed Mint for dual-booting with Windows. My HP laptop had the option in UEFI > Boot options > Advanced to add a Customized Boot. It allows you to enter a path and that's where I added \EFI\ubuntu\shimx64.efi. Then I changed the boot order to have Customized Boot on top and it booted into Grub magically. Woohoo.
Mainly posting this for anyone who may come across this in the future.


Exit terminal after running a bash script

If you're opening just one file, you don't really need to use a script, because a script is meant to be an easy way to run multiple commands in a row, while here you just need to run two commands (including exit).

If you want to run exit after a command or after a chain of commands, you can chain it to what you have already by using the && operator (which on success of the previous command / chain of commands will execute the next command) or by using the ; operator (which both on success and on failure of the previous command / chain of commands will execute the next command).

In this case it would be something like that:

gnome-open <path_to_pdf_file> && exit

*<path_to_pfd_file> = path of the pdf file

exit put at the end of a script doesn't work because it just exits the bash instance in which the script is run, which is another bash instance than the Terminal's inner bash instance.

If you want to use a script anyway, the most straightforward way it's to just call the script like so:

<path_to_script> && exit

Or if the script is in the Terminal's current working directory like so:

./<script> && exit

If you really don't want to / can't do that, the second most straightforward way is to add this line at the end of your script:

kill -9 $PPID

This will send a SIGKILL signal to the to the script's parent process (the bash instance linked to the Terminal). If only one bash instance is linked to the Terminal, that being killed will cause Terminal to close itself. If multiple bash instances are linked to the Terminal, that being killed won't cause Terminal to close itself.


Ubuntu 14.04 LTS, How to install BCM 4365 rev 1 driver?

This problem is now solved!

After numerous reinstalls, I finally got the "sudo apt-get install bcmwl-kernel-source" to finally go through!

What I did differently this time is when it asked me to install, I check marked both the boxes, Download and Install when it asked me about the proprietary devices.


You can use Boot-repair to recover access to Windows install.
To install:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update && sudo apt-get install -y boot-repair && boot-repair

You could then launch it using either :

the dash (Unity)
System->Administration->Boot-Repair menu (Gnome)
by typing 'boot-repair' in a terminal

Try "Recommended repair" button. When repair is finished, reboot and check if you recovered access to your OSs.


Where can I submit release codename suggestions

It is in this section:
https://wiki.ubuntu.com/DevelopmentCodeNames#Code_Name_Suggestions

Make an account for the wiki and then you can edit the page to add your own suggestion


I found the solution. It was necessary to unmute line-in, then run alsactl store, and then restore option of alsactl can be used.


Invisible mouse on 14.04 with NVIDIA GeForce4 Ti 4200

This time it worked installing

apt-get install nvidia-common

Important:
Don't run nvidia-config and don't create any xorg.conf file now!

Then reboot

apt-get install nvidia-173

reboot

I don't know if there has to be several reboots, but the first time I tried it without installing nvidia-common first and this messed up with my resolution for my LCD monitor


How can I install and remove programs in one command line, and confirm only once?

As an alternative to the answers already posted, you can also select to install and remove packages in one command with aptitude.  With aptitude install commands add - after the package name to have it removed, and with aptitude remove commands add + after the package name to have it installed.

If you enter

sudo aptitude install pkg1 pkg2-

the first packages will be installed while the second one will be removed.

However, on the other hand, if you use

sudo aptitude remove pkg1+ pkg2

the second package will be removed and the first installed.

Source: for a more detailed explanation of apt and aptitude, see the Debian Handbook.


How to make a bootable ISO image from a bootable DVD?

You can use Brasero to copy a CD to an .iso; this is installed by default.

Select the option to copy a CD, select the CD drive as the source, and an image file as the target...

Or from inside Nautilus: go to "Computer", right-click on the CD drive, and select "Copy Disc...".  (Or something like that, I'm using a local language system here.)


I am using Audacity v2.0.3 on Linux Mint 16 which is a derivative of Ubuntu 13.10 and was having the same problem.

When Audacity starts up, it looks for a temporary directory to store its temporary files, namely

/var/tmp/audacity-${USER}

where ${USER} has the value of the login username, and the USER environmental variable is usually correctly set during the login process.

To be sure, one can always do

echo ${USER}

to see if it is set and set to the appropriate value.

So the very simple solution is

mkdir /var/tmp/audacity-${USER}

and for privacy, if desired and if your umask is other than 0007,

chmod 0700 /var/tmp/audacity-${USER}

or you could do it in one go with

mkdir -m 0700 /var/tmp/audacity-${USER}

Obviously the user has to have write permission on /var/tmp, otherwise this will need to be done by root who will also have to change the user and group ownership of the created directory to the appropriate user and group.

Why audacity does not create this directory for its-self is a question which should be directed at the writers of the audacity, because popping up a dialog to say that some unamed directory for temporary storage does not exist and then segfaulting is an extremely bad user experience.

The suggestion that one should re-install an operating from scratch just to solve the problem of a missing directory is an unacceptable answer.


Open your terminal by pressing Ctrl +  Alt + T and type this following to solve this problem:

unity&disown

Hit Enter to generating this commands, you'll see screen will flick a few times, just don't panic ! Wait for a few second and everything will back to normal again


Reset Firefox !
Open terminal (Ctrl +Alt+T).
Enter the command below to reset and clean all data in your Firefox:
mv .mozilla/firefox .mozilla/firefox.bak

Then restart Firefox.
If it doesn't work, try this command:
sudo apt-get clean; sudo apt-get update; sudo apt-get remove firefox; sudo apt-get install firefox


Ctrl+Alt+T to open Terminal. If you hold your (I assume you use a dual-boot with Windows) Windows button between Ctrl/fn and Alt, you can see every command for Ubuntu. You have to write it in Terminal I think, works like cmd of Windows.


Can 'sudo apt-get remove [write]' destroy my Ubuntu?

The correct command to remove a package named write is:
sudo apt remove write

[write] is a character set matching the characters “w”, “r”, “i”, “t” and “e” and as matching is done by substring by apt. The command you ran thus matched all packages with one of these characters in it, which of course are a lot. To quote apt’s output listing just the essential ones:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) ubuntu-keyring (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt)
  libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
  libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
  zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk
  libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw5 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) install-info (due to grep) gzip hostname init
  systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login)
  libpam-modules (due to login) mount util-linux (due to mount) ncurses-base ncurses-bin sed sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 2503 to remove and 0 not upgraded.
After this operation, 7238 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

The multiple warnings as well as the necessity to literally type

Yes, do as I say!

are security means in place to keep you from destroying your system, as the system’s package manager apt is perfectly capable of doing that. Any command run with sudo should be run carefully and thoughtfully, but don’t fret: Nearly every experienced user of Ubuntu broke their system at least once, in fact that’s part of the fun if you ask me.
Further reading

this detailed answer to apt-get remove with wildcard removed way more than expected. why?


It probably doesn't show in Nautilus because you're in the /root, the root user's "home directory" of sorts, and not your own home directory. Use gksudo nautilus /home/$USER/Desktop and you'll see it then.

If not, open up a terminal and type sudo rm -rfv ~/Desktop/Documents. (The command will permanently delete the file; I only advise it because you say you have a sure backup of the data elsewhere and you really don't need that folder/file.)

The problem is that when you copied the file there, the program or command you used was being run as root and therefore the file belongs to root. For more information on the root user, refer to the Community Ubuntu Documentation.


Is a clean install better than upgrading?

Typically, upgrades are just fine in Ubuntu. It's not like Windows where you have a huge registry to carry over from your last system. As long as you haven't had to follow many tutorials or done any workarounds to fix problems in a unique way (i.e. using a special application to enable your wireless card or made some major changes to your kernel for whatever reason) you'll be fine.

In fact, I'd say about 90% of people who are asking this question will be fine with the upgrade.

If you want to stay absolutely safe, you can always wait for the vetted point release upgrade, or even maybe wait for the next LTS release in a few years. It's your choice. You'll still be supported for the next three years with updates if you're on 10.04 right now.


Samba network sharing NTFS drives and root permissions from local drives

Normally in these cases the permissions are set at mount time, since NTFS can't store unix permissions, to do so use something like this:

mount /dev/sdb1 /media/mydisk -o uid=youruser,gid=users

If you add these other two options to mount fmask=664,dmask=775, everyone in the users group will effectively be able to write to that file system. You can also use /etc/fstab if you want to mount the disk at boot time, the format is slightly different but the options are the same. Keep in mind that using NTFS in this specific case does have limitations compared to using EXT3/4, XFS, etc.

More info here man mount.ntfs-3g.


Have a look at this wiki page which contains a list of Ubuntu minimal CDs:

https://help.ubuntu.com/community/Installation/MinimalCD