Enable file sharing amongst ubuntu, xubuntu, lubuntu ?

Do it the traditional way. Share via Samba. Access via mounts. Bookmark them in your filemanager with windownames e.g C,D,E..etc.
For each PC install

samba
system-config-samba

From LxPanel menu, open System Tools > Samba

share the folder as name 'C' and set to share to everyone.

Copy a startup script to every PC, and auto-execute at logon e.g

    sudo mkdir /mnt/C 2>/dev/null
    sudo umount /mnt/C 2>/dev/null
    sudo mkdir /mnt/D 2>/dev/null
    sudo umount /mnt/D 2>/dev/null
..etc..
    IPADR1=$(nmblookup -R host1 | grep 'host1' | cut -d' ' -f1)
    sudo mount --type cifs -o guest //$IPADR1/C /mnt/C -o uid=user1 -o gid=user1
    IPADR2=$(nmblookup -R host2 | grep 'host2' | cut -d' ' -f1)
    sudo mount --type cifs -o guest //$IPADR1/D /mnt/D -o uid=user2 -o gid=user2
..etc..

open /mnt/C in filemanager and bookmark it as 'C'.  .etc..

(http://petepr.hubpages.com/hub/Lubuntu-Linux-Network-File-Shares)


Install Ubuntu x64 over x32 on a multi-boot system

Download the x64 version and boot it off a USB. Then install it on the existing partition. No, it will not affect your Windows OS.


Latency occuring between typing the character and printing on screen on a Dell Inspiron m101z?

Take a look at top, lsof, other performance tools to see what's running. It could be that your resources are just maxed out. It could also be an issue with your desktop manager of choice. More information will be needed before this can be definitively answered.


Library dependency problem with sphirewall-core and libboost

you can download  sphirewall-core sourcecode from svn repository hosted by BitBucket
Before that you need to install git on your system try this command on your terminal

sudo apt-get update
sudo apt-get install git
git clone https://bitbucket.org/sphirewalllabs/sphirewall-code.git

source http://sphirewall.net/


Well I already did all that install reinstall of ubuntu-desktop and lenses but it didn't go away.
But when I tried to open synapse through terminal it showed Segmentation Fault
After that I pruged all the databases and all synapse packages and reinstalled it and it started working


Nautilus : "Send via Bluetooth" in Context Menu

There is this script sec.Bluetooth.SendFile.NautilusScript.sh

You have to copy it to ~/.gnome2/nautilus-scripts/

And may need to install its latest dependencies too.


Where to find application after flatpak installation (gimp)

To run Gimp:

flatpak run org.gimp.GIMP "$@"

But AFAIK there is a desktop file somewhere, I have a ~/.local/share/applications/org.gimp.GIMP.desktop with:

[Desktop Entry]
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
Comment=Create images and edit photographs
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gimp-2.10 --file-forwarding org.gimp.GIMP @@u %U @@
GenericName=Image Editor
Icon=org.gimp.GIMP
Keywords=GIMP;graphic;design;illustration;painting;
MimeType=image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih;image/tiff;image/jpeg;image/x-psp;application/postscript;image/png;image/x-icon;image/x-xpixmap;image/x-exr;image/x-webp;image/heif;image/heic;image/svg+xml;application/pdf;image/x-wmf;image/jp2;image/x-xcursor;
Name=Gimp 2.10
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
Version=1.0
X-Flatpak=org.gimp.GIMP
X-Flatpak-Tags=stable;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-OtherBinaries=gimp-2.10
X-GNOME-Bugzilla-Product=GIMP
X-GNOME-Bugzilla-Version=2.10.2
X-KDE-SubstituteUID=false
X-KDE-Username=

The real installation is in /var/lib/flatpak/app/org.gimp.GIMP/

If you are used to "native" Gimp, be aware of some restrictions:

the "recent files" are not shared with other apps in the system
the /tmp directory as seen by Gimp is remapped to a directory specific to flatpak, so you cannot share files through that (which is unfortunately required for some apps, such as web browsers)
the Python runtime is specific to Gimp
the Gimp profile is buried in ~/.var/app/org.gimp.GIMP/config/GIMP/2.10/
you may want to use Edit>Preferences>Folders to setup folders in more "visible" directories for your brushes, patterns, scripts and plugins
compatibility with the popular plugins (GMIC, resynthesize...) isn't clear. It seems this requires flatpak versions.


How to remove "phone style" Gnome swipe to unlock

Actual solution depends on exact requirements, but these may provide work-arounds (specifically, talking about the gnome 3 screen curtain, illustrated here ):

if you desire to have a normal basic screen lock enabled, yet don't want the "swipe-up screen curtain", then you may actually just type your password on the curtain screen without clicking/scrolling/mousing/etc, and it will work to unlock the screen.  (Note: this assumes that only one account is configured to appear on the login greeter screen.)
it seems the screen curtain itself can't be disabled (a couple gnome-shell extensions have mixed reports of either no longer working (ubuntu 17+), or not working consistently), so it appears we're stuck with it for now. But given that you can type your password into it, it's mostly just an (unintuitive) aesthetic issue.
also, Esc will "swipe up" (and down), so you don't have to actually use the mouse.
there's always KDE (given gnome's usability trajectory, you might give this serious consideration)


Getting GPG error while running "sudo apt-get update" command

Import keys from MIT keyserver:

gpg --keyserver pgp.mit.edu --recv-keys B9733A7A07513CAD
gpg -a --export 07513CAD | apt-key add -


What is the equivalent of a pagefile in Linux in general?

Swapfiles do exist in Linux, and are said to be a new default with Ubuntu in a future version (probably 18.04, not sure) and have been made a default as of 17.04

From this article, pretty much the same applies to Ubuntu: https://wiki.archlinux.org/index.php/swap#Swap_file

As root (sudo su), run

fallocate -l 512M /swapfile to create a 512 MB swapfile, for example

Permissions need to be set with chmod 600 /swapfile

Then it's made into an actual swapfile with mkswap /swapfile

You can activate it now with swapon /swapfile

And activate on boot by adding /swapfile none swap defaults 0 0 to /etc/fstab

The swap file can be whatever size you want, you can use 8G to make is 8 gigs (or 8192M if you're picky)

I hope this answers your question


unable to browse internet as it needs to be authenticate via server reachable via IE 5 or above

You can't install IE5 (or any IE) in an operating system other than Windows (except for some older versions that worked on Mac if I'm correct).

You should me able to use Firefox instead - which is installed by default and way better than IE.


This works:

# initialize the devices
for i in $(seq ${NRDEVICES}); do
  DEVNUMBER=$((i - 1))
  echo lz4 > /sys/block/zram${DEVNUMBER}/comp_algorithm
  echo $mem > /sys/block/zram${DEVNUMBER}/disksize
  mkswap /dev/zram${DEVNUMBER}
  swapon -p 100 /dev/zram${DEVNUMBER}
done

Note: it seems you need to define the compression algorithm before zram size. Set swapon -p to 100 swapiness to use zram actively as it improves performance.


How do I directing sound to a remote PulseAudio server?

I found a replacement for padevchooser here:
https://launchpad.net/~christoph-gysin/+archive/pasystray

I haven't tried it yet, but it's supposed to make directing audio over the network possible again.


GNUPLOT remove overlapping between xtick labels

This might not be the solution you want, but you can rotate labels with:

set xtics rotate by -45

This would rotate tick labels at the x-axis by -45°.


What is installed with the `mail-server` metapackage installed from `tasksel`?

This is the full list of packages installed by sudo tasksel mail-server on Ubuntu 15.10 Desktop (I suppose the list may vary across releases):

% tasksel --task-packages mail-server | sort
bsd-mailx
dovecot-core
dovecot-imapd
dovecot-pop3d
libassuan0
libexttextcat-2.0-0
libexttextcat-data
libgpgme11
liblockfile1
liblockfile-bin
libpython2.7-minimal
libpython2.7-stdlib
libpython-stdlib
libtokyocabinet9
libwrap0
lockfile-progs
mutt
ntpdate
postfix
procmail
python
python2.7
python2.7-minimal
python-minimal
ssl-cert
tcpd

On Ubuntu 15.10 Server the following packages are missing from the above list:

libexttextcat-2.0-0
libexttextcat-data
liblockfile1
liblockfile-bin
lockfile-progs
ntpdate

So:

postfix
None of those. You'll have to pick an option and install additional packages.
dovecot
None of those. You'll have to pick an option and install additional packages.
None of those. You'll have to pick an option and install additional packages.


You should not need to do aything, since Ubuntu One is supposed to detect when a file changes. Touch, however, doesn't change the file contents, and Ubuntu One doesn't track metadata (like modification dates) so it doesn't do aything.


How can I find from console what version of ubuntu I'm using

Here it is: cat /etc/lsb-release. On my system, it gives this output:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"

Somewhat related, uname -a also gives useful information about the install, like the kernel version.


Driver error, Audio video and Touchpad do not work

of course the fastest solution could be reinstall Ubuntu.


"n" should be the number of cores (threads) you want to stress. If you have 4 core CPU without hyperthreading a value of 2 should give you about 50% load etc.


regex to compare github links and list repos which end with the same name but have different owner

history | grep -o 'github\.com.*' | tr '/' ' ' | sort -k3 | uniq | uniq -D -f2

Explanation

grep -o 'github\.com.*' get the lines that include github.com and trim off the start of the line (like the number of the item in the history etc) to make it easier to deal with the fields
tr '/' ' ' change / into spaces because uniq doesn't have an option to set a non-whitespace delimiter...
sort -k3 sort the lines using the third (last) field, putting the lines with the same app_name.git together
uniq remove duplicate lines
uniq -D -f2 ignoring the first two fields, print only the duplicate lines, (so only print the line if there is more than one instance of app_name after removing completely identical lines, indicating that there are multiple users for the same app_name)

If you want to avoid the command itself appearing in the output, you can pipe from grep -o 'github\.com.*' ~/.bash_history instead of history | grep -o 'github\.com.*' (although this won't include commands from the current session)


Ubuntu 16.10 random folders appearing in home

Unfortunately there's just not enough information from what you've provided to even begin to guess unless someone has experienced this exact condition.

With that said, I would recommend you set up auditd and monitor your home folder to identify the process creating the files.

That process as well is too involved to delineate in an answer "how to", so here are some references:

http://manpages.ubuntu.com/manpages/zesty/man8/auditd.8.html
https://linux-audit.com/configuring-and-auditing-linux-systems-with-audit-daemon/
https://www.linux.com/learn/customized-file-monitoring-auditd

So the concept is:

Install and configure auditd to monitor your home folder
Once the file(s) are created, inspect the auditd log to identify the cause of file creation

UPDATE:

Found this - if you are a Spotify user possibly the culprit . . . .

https://superuser.com/questions/572176/mysterious-folders-with-two-letters-hexadecimal-names


Acer Aspire V3-572G laptop freezes in the first screen after routine Ubuntu update

I changed a parameter in the BIOS so that now it does not by default show the ACER page splash screen, where the computer froze, but rather a screen with computer info. This did the trick.


I had the same problem. I solved it by running the following command

sudo modprobe snd-hda-intel

Inside a terminal window (Ctrl+Alt+T to open one).


slow performance in ubuntu and sometimes stuck

With those machine specifications you should switch to Lubuntu. As mikewhatever said, the 7200 is an old card and won't support much of the Unity effects. You'll note the difference of performance between Lubuntu and Ubuntu.


Ubuntu 16.04 nvidia driver login loop even after trying nvidia-364 and nvidia-current

Installing Nvidia drivers can't be helpful if you don't have an Nvidia adapter.

It makes no sense to install them.


Why are the MythVideo settings blank in the frontend in MythTV 0.22 and later?

MythTV 0.22 introduces Storage Groups for MythVideo. These are setup by default for you in mythtv-setup, and will conflict with the local frontend settings if the paths are the same. Local MythVideo settings will not use the MythTV protocol to transfer videos between your frontends. See MythVideo - Local Video Storage


How can I build and install a Qt project/.pro?

The version on sourceforge is the same one available from repo on Trusty.  I can't verify older releases.

cd ~/
mkdir junk
cd junk
apt-get source sqlitebrowser
sudo apt-get install devscripts
sudo apt-get build-dep sqlitebrowser
cd sqlitebrowser-2.0.0~beta1+ds.1/
debuild -us -uc

There, you built it from source.


Found a dirty solution for this bug/feature. It works ok, for quite some time, but it's dangerous ! Using this method user can unpause but also delete/add.... printer!

Still searching for safer solution.

Key was this answer: Can I automatically add a guest user (guest-session) to a user group? How can I do it)

sudo nano /etc/guest-session/prefs.sh

If you haven’t created this file before, then its an empty file. Add this line:

adduser $USER lpadmin


It looks like these having A and AAAA-Records registered properly:

google.com
youtube.com
ubuntu.com

It looks like those dont have / misconfigured AAAA-Records but have A-Records:

github.com
cnet.com
duckduckgo.com

Tested with this DNS Record Viewer

Does your server get a public IPv4?

To me it looks like your server can't access servers that only have an DNS A-Record cause it doesn't have an IPv4-adress itself.
If that is the case you can:

try / ask for assigning an IPv4 to your server
tuneling IPv6 to IPv4 by a proxy software i.e. 6tunnel or similar
wait / ask for those website IPv6 support


How can I tell my laptop to shutodwn after finishing running a non-root process

You can do some "reverse psychology" here:

sudo bash -c "sudo -u dspyz ./run_process.sh; shutdown -P now"

i.e. run sudo, then "unsudo" to your process as your self (where dspyz is your user name on that system), not as root, and then shutdown under the original sudo.

You can try this to see what it will do:

sudo bash -c 'sudo -u dspyz id; echo `id`'

where id command shows the current user's ID and will be your (i.e. dspyz's ID for the first id, which plays the role of ./run_process.sh, but will be root for the second id, which plays the role of shutdown -P now).

Hope this helps.


Suspend fails and I know the module causing it. What can I do?

This is a known bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998

From there:

  If SUSPEND_MODULES="xhci" is added to /etc/pm/config.d/unload_module then the system can suspend normally.

And a comment on there also points at Post #7 of this thread: http://ubuntuforums.org/showthread.php?t=1444822

Similar stuff and lots of people saying it works. Hopefully it will.


Is it safe to delete partitions and start over?

The only problem you will have is that if you delete the wrong partition, you will not be able to boot until you reinstall grub. Grub will be installed automatically if you simply re-install Ubuntu.

As you claim you do not have any reason not to, I would fire up the ubuntu desktop CD, delete the ubuntu partitions, and install into the resulting free space.

If you do not want to re-install, boot the desktop CD, use gparted to delete one of the ubuntu partitions, and then resize the remaining partition to take up the free space. You might need to re-install grub.

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

Up to you to decide which is easier.


How do I set up gluster in a simple non-clustered configuration?

(inprogress answer, any help testing this and editing would be appreciated, this works and has been tested on 12.04, but only by me!)
This is a step by step tutorial based on Michael J. Chudobiak's guide for Fedora. This assumes that you're trying to share the /fileserver directory from a central server to clients. I could never get this work in the past but gave it a shot in 12.04 and is now actually easier to me than using NFS.
On the server:
Install the server: sudo apt-get install glusterfs-server
First create a volume you want to share, you can name it whatever you want, in this example I'm naming it volumename, and then you use your server's DNS name, I don't have DNS for my machines at home so I user servername.local to use the avahi-assigned DNS name:
sudo gluster volume create volumename transport tcp yourservername:/fileserver

Now we start the volume:
sudo gluster volume start volumename

And that's it! The server is now serving a gluster share called volumename.
On each client:
Install the client: sudo apt-get install glusterfs-client
Now let's mount the shared glusterfs volume
    mount -t glusterfs yourservername:/volumename /mountdirectory

On the client, see if you can access the files in /fileserver. If
not, read the /var/log/glusterfs/* files on both the client and the server.
To mount the share at boot, you can add this to your /etc/fstab
yourservername:/volumename /mountdirectory glusterfs defaults,_netdev 0 0

References:

Mailing list post on migration to glusterfs
http://www.howtoforge.com/distributed-storage-across-four-storage-nodes-with-glusterfs-3.2.x-on-ubuntu-11.10 (This article is quite good)


How to uninstall NetBeans 8.1's Tomcat and GlassFish?

In order to uninstall these components you will need go into the directories in which they are installed in /usr/local (or wherever you install NetBeans to, if sudo is not used during the installation then it is likely to be ~) and execute the uninstall.sh files:

sudo uninstall.sh

This should launch the NetBeans installer which you should select the Uninstall option on. This will completely remove the components you run the uninstall.sh files for.


Can I use two Nest Autio in stereo mode with Ubuntu to watch movies?

A Workaround in PulseAudio
If you connect to your Nest Audio pair directly via Bluetooth you can set a delay in PulseAudio on the command line with set-port-latency-offset for the particular card in microseconds. 1sec =  1000000usec. Don't be confused, yes PulseAudio handles a connected Bluetooth speaker like another sound card and it will only apply this new setting only to this device. So when you use your headphone—wired or not—no delay will be applied by default or you will have to configure a delay for this connection too. There is probably a GUI option, but I prefer text and commands in my bash_history.
pactl set-port-latency-offset bluez_card.xx_xx_xx_xx_xx_xx unknown-output 1000000

Speaking of Bash, PulseAudio has bash completion or command completion. Just use the tab key to save typing and see which options are available and if what you entered is correct.
You need to replace xx_xx_xx_xx_xx_xx with the address of your Bluetooth speaker. Don't worry, if it is already connected command completion will show it to you. If not: try this.
Do you have a USB transmitter that looks like a sound card to your computer but sends Bluetooth audio to your speakers? Then use this:
pactl set-port-latency-offset alsa_card.usb-0a12_Avantree_DG80-00 analog-output 1000000

usb-0a12_Avantree_DG80-00 is my transmitter, an Avantree DG80. If yours is a different one—which should work well too—you need to replace it. Again command completion is you friend!
Implications of the workaround, how it works and what not
I'm not a PulseAudio developer or regular on the developer mailing list, so I will try to explain it simple… and inaccurate.
PulseAudio will try to play audio so that it matches video playback in applications like video players and your web browser. Sounds from other applications or your desktop will have the same delay as before and anything that requires low latency and real time communication will still be difficult to use, but the glaring issue of non-lipsync video is compensated. When you think about what PulseAudio and other applications have to handle here on a lower level it is not an easy task and makes your head spin.
I can watch videos in mpv and on Youtube with Firefox quite well. But I notice awkward behavior during ads in a Youtube video.
From time to time the connection will drop out or have a greater delay. It does not happen often, but when it does it helps to reconnect the speakers, even they seem to be connected properly and in some cases power the speakers off and on again (I have smart sockets for that). Rebooting you Wifi AP or Router may also help.
For Bluetooth connections I'm using a modified version of pylover's script which I have not published yet due to lack of time to get more familiar with Python. But I can enter and tab a few letters on the command line (thanks to aliases and parameterizing of my version) and watch my devices connect almost automatically without spending much time in menus.
Good luck.


Based on this part of the documentation, I have solved this with modprobe thinkpad_acpi. I don't know why this module used to be loaded on my 20.04 system and isn't anymore.


How to create a list of of only security updates with apt-get?

Install the package apt-show-versions and run

apt-show-versions | grep upgradeable | grep security

to get a listing like this:

firefox:amd64/trusty-security 33.0+build2-0ubuntu0.14.04.1 upgradeable to 34.0+build2-0ubuntu0.14.04.1
firefox-locale-en:amd64/trusty-security 33.0+build2-0ubuntu0.14.04.1 upgradeable to 34.0+build2-0ubuntu0.14.04.1


common issue : ssh: connect to host 10.0.2.15 port 22: Connection refused

I think the default networking setup for VirtualBox guest is NAT and is not really intended to achieve this type of networking communication; but based on old posts may be possible by forwarding a non-system port to a Guest port and using the default loopback IP address to reach the Guest. 10.0.2.2 is default loopback.

Setup Networking

However, the easiest is to ensure you choose the correct networking for each of the Guests. Shutdown you guest machines, then in VirtualBox edit the Networking mode appropriate for your needs (note grid).

Using Default NAT Network

Using NAT, VirtualBox uses a special IP 10.0.2.2 as a loopback (at least I think this is still true). Therefore ports forwarded from loopback are available to all guests.  I think you should be able to take advantage of this. To communicate using a NAT network, will require one of the following:

Using VBoxManage, setup NAT Forwarding of a non-system port (1024–65535) to a lower system port (< 1024).

In this case forward something like port 2222, to port 22 (default for SSH). This also assumes we'll use Guest S IP address of 10.0.2.15, per the question.
Configure port forwarding on the Virtualbox Host, run:

VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22"

All TCP traffic arriving on port 2222 on any host interface will be forwarded to port 22 in the guest. The protocol name tcp is a mandatory attribute defining which protocol should be used for forwarding (udp could also be used). The name guestssh is purely descriptive and will be auto-generated if omitted. The number after --natpf denotes the network card, like in other parts of VBoxManage.
Check the added rule:

VBoxManage showvminfo myserver | grep 'Rule'
Connect to Guest Server via host loopback mapping and port-forwarding for Guest S

neil@neil-VirtualBox$ ssh -p 2222 test@10.0.2.2

Alternative: change (Guest S) /etc/sshd_config to listen on a
non-system port (> 1024). Then reload ssh.


The ubuntu-restricted-extras has the following:

flashplugin-installer
gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
gstreamer0.10-pitfdll
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-ugly-multiverse
icedtea6-plugin
libavcodec-extra-52
libmp4v2-0
ttf-mscorefonts-installer
unrar

Due to the legal status of the software included in ubuntu-restricted-extras, the package is not included by default in Ubuntu.

You may also take a look at Ubuntu Packages


I need to use sudo for any Hadoop operation, how to change permissions?

Have you tried

chown -R yourusername /usr/local/hadoop

to sort the permissions? This should change ownership of those folders and files to your user, allowing you to change things in those folders without using root/sudo.

Regarding an IDE, I have nothing but good words for Geany IDE: www.geany.org


I had the same issue last night.  Check if you have telepathy-butterfly installed and remove it.

See Ubuntu Software Center and search for telepathy-butterfly then click remove

or remove it by using terminal

  sudo apt-get remove telepathy-butterfly


I've deleted the apache2 test page. Can I re-create it?

The default Apache 2 test page is part of the apache2-data package that automatically gets installed with apache2.

You can find it in the location

/usr/share/apache2/default-site/index.html

Simply copying that file back to /var/www/html should do what you want to achieve.


Messed up grub/mrb of Lenovo U410 and can't access bios

Hold down Fn+F12 while booting and you should be able to boot to any installation media (i.e. Ubuntu USB stick)

When setting up Ubuntu, make sure to set up an EFI boot partition. You usually will need to choose "something else" in the options for partitioning it. I have my U410 set up like this:

SSD

Efi boot partition
ext4 filesystem (mounted as /)

HDD

ext4 filesystem (mounted as /home)


Firstly, don't do sudo su or sudo ./configure. You can build as your user.

I assume you are building bluefish from SVN, and thus don't have a configure script. You can create it by running ./autogen.sh, as described on http://bluefish.openoffice.nl/development.html.

svn co https://bluefish.svn.sourceforge.net/svnroot/bluefish/trunk/bluefish
cd bluefish
./autogen.sh
./configure
make
sudo make install


Execute all files from a directory via terminal

If they are already executable you can execute all of them with find and -exec with no commands

find . -maxdepth 1 -iname "*.osz" -exec '{}' \;


Plank makes use of GSettings and dconf to manage it's configuration. The configuration is stored together with the configuration of other applications which use GSettings in a single file. You will find this file in ~/.config/dconf/, in my system it's ~/.config/dconf/user. This is not a text file, you can't edit it in a text editor.

Use Plank's preferences window to edit your docks, to open the preferences window hold Ctrl and click the right mouse button while the cursor is over the dock, in the context menu choose Preferences.

To change the color of the little circle under the application icon that is shown when a window is open, you will have to either choose a different theme or edit the theme you are currently using. Plank themes are located in /usr/share/plank/themes/ or ~/.local/share/plank/themes/.

You can also install additional themes, take a look at

https://github.com/alma4rebi/Plank-Themes-1
https://www.gnome-look.org/browse/cat/273/


Poor Audio in Blackboard Collaborate (Elluminate Live) on Ubuntu 11.10

It's a stupid problem, but I've found a work-around (not a fix).

Log into eLive client and run the audio wizard

a) don't worry about the audio at this point, just make sure the correct input/output devices are selected.
Install skype from the partner repository:

a) open the ubuntu software centre, and select Software Sources... from the "Edit" menu.

b) click on the "Other Software" tab and check "Canonical Partners":

c) open a terminal and update your software list: sudo apt-get update

d) re-open the ubuntu software centre, search for skype and install (or use the terminal: sudo apt-get install skype)
Adjust audio levels using skype:

a) log in (create account if need be)

b) open the Options pane:

c) Select "Sound Devices" from the list on the left, and ensure the box "Allow Skype to automatically adjust my mixer levels" is checked.

d) Make a test call to check your speaker/mic settings.

In addition, you may need to clear the java cache using the "Oracle Java 7 Control Panel":

a) On the "General" tab, in the "Temporary Internet Files" section, click "Settings"

b) Next, click "Delete Files..."

c) Make sure the "Cached applications and applets" box is checked and click "OK"

Now when you log into eLive your audio should be working fine.

Tested and working on Ubuntu 12.04 Precise 64-bit


Deleted /bin instead of /android-project/bin

/bin contains some of the most basic files on your system, and it won't be able to do much without it (booting will not work, same for installing packages). Your best bet is to boot a live cd of the same Ubuntu version as what you are using, mount your exisitng root partition and rsync its /bin over to that partition.

For a full cleanup afterwards, reinstall the affected packages. To find which packages to reinstall, use this command:

find /bin -type f | xargs dpkg -S | sed -e 's/:.*//' | sort -u

And to actually reinstall them:

sudo apt-get install --reinstall $(find /bin -type f | xargs dpkg -S | sed -e 's/:.*//' | sort -u)


Can't change brightness on HP Envy x360 13z-ay000 laptop (Ubuntu 20.04)

I got it to work. It turns out I just needed to upgrade the kernel to 5.7.8.


Epson WF-2520 Printer on Network (Ethernet-Connected)-- iScan

You need to add IP address of your scanner to /etc/sane.d/epkowa.conf.

In this format, e.g.

net 192.168.1.100


Usb flash drive with used sapce but no files in it

Most likely the flash drive has been removed unsafely and the filesystem is messed up. Try using fsck to check it and it will likely report lost sectors.


You also may use VirtualBox, which is named virtualbox-ose in the repositories.

From the package description:

  VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.

In case you like to install an OS that uses XServer 1.10 (e.g. Ubuntu 11.04) you need Virtual Box version >= 4.0.6 available under GPL v2 licence for download or in a repository maintained by Oracle. For full support of features we also need to install Guest Additions. For USB 2.0 or RDP support we can download and install the Extension Pack. This will make Virtual Box closed source (PUEL-version).


Cannot update Jupyter to the latest version on Ubuntu 16.04

Are you using Anaconda?
If so, try the following command and send us back the result:

conda update jupyter

Also check the following command as well (if necessary):

pip install -U jupyter


Problems with Ubuntu desktop 14.04.4 download - 1.5GB RAM

You have downloaded an ISO file which needs to be burnt to a DVD. As your DVD drive is faulty Roxio is hanging.

Download the ISO file and burn the DVD on a friends PC.


Problem solved !

I ran netstat -putan and I saw that lighttpd was running on port 80 next to apache, due to the 403 forbidden :
[...]
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      918/lighttpd
[...]
You can also see if a http server is running by stopping apache sudo service apache2 stop and see if http://localhost is up or not. If not, look to the comments of George (by the way thx :D) it might help you
Simply remove lighttpd by apt-get remove lighttpd*
I hope this will help some of you c:


Try Sakis3G with some switches:

--pppd
--nostorage
--nofix
--nohal

One of these may solve your problem. If not, try --interactive to manually configure your modem.


Can't permanently export PATH variable with custom path

export PATH=$PATH:~/.config/composer/vendor/bin works for the current session only.
In ~/.profile and ~/.bashrc the ~/ doesn't get works within quotes, Either omit the quotes or use $HOME instead of ~/, e.g.

export PATH=$PATH:$HOME/.config/composer/vendor/bin

/etc/environment doesn't allow any shell syntax so neither ~/ nor $HOME works. Instead you need to use the full path, e.g.

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/youruser/.config/composer/vendor/bin"


i've the same problem, but i downgrade the kernel (first you have to boot to other kernel, using "Advanced Options for Ubuntu" on Grub), then i check my wifi, if it's okay so i downgrade it using
sudo apt-get remove linux-image-VERSION linux-header-VERSION
It works for me :D


Protecting Dualbooting Windows from dangerous code (like rm -rf)

If you have physical access to a computer, you have the power to do anything with the files on it, including reading, corrupting or deleting them.

It's possible to make it harder to accidentally delete files, though.

If you want to read documents on your Windows 10 partition, you could mount the partition in read-only mode. You won't be able to edit Word documents, but it should be enough if you want to read PDF, listen to MP3's or watch movies on your Windows partition. Another possibility would be to create a FAT32 D: partition under Windows, which you would mount with write permissions under Ubuntu.

I could think of at least 5 short commands to destroy a Windows Partition from a Linux system, but they would all require root privileges. Be careful whenever you want to run a command starting with sudo or when a program tells you that "Authentication is required to run".

Finally, be very careful when installing Ubuntu along Windows. The installer makes it clear which partitions are resized, created or deleted but it's still possible to delete existing partitions if you ignore the warnings long enough.

To be safe, please follow @Emmet's excellent advice (be sure to backup your data).


Ubuntu installer - Where does GRUB install by default?

Grub has a few components or "stages" some are installed in the MBR (master boot record) and some components are installed in the /boot partition, usually the same partition as your ubuntu root or / partition but may be separate if you are using LVM or encryption or if you so configure /boot.

See http://www.golinuxhub.com/2014/03/step-by-step-linux-boot-process.html for details and locations of the various stages.

You need to install grub into the MBR of the disk that boots your Ubuntu installation. Normally this is the first disk, but again you can configure it otherwise and some (most, ?all) BIOS allow you to select which disk to boot from or boot order of your disks / usb / cd. Some (most) bios will also allow you to select which OS to boot (essentially which boot loader to use).

If in doubt, stay with the defaults of the installer.


Workspace Switcher doesn't work from the launcher

I figured it out -- under Expo in CCSM, I had the animation set to 'Fade and Zoom'. Switching it to just 'Zoom' did the trick.


Can you include the module in:

cat /etc/modprobe.d/blacklist.conf

? You need to know it's name, maybe by studying the logs.


Linux has thousands of different entires in the manual and knowing them all would be a headache(or an achievement, if you remember them all). Nonetheless, there are sites that have all the man entires on a Linux system. There is Kernel, and Linux Die. Kernel also has a tar that you can download offline for your personal reading pleasure. :)


The best option is to install ubuntu from a usb or cd, you can download the iso from here ubuntu 11.10 64bits, burn the iso to a cd or usb, boot your computer with the cd or usb and install.


Are all Ubuntu apps the same on every device

Depends on what you mean with "the code". The binaries have to be compiled for the target architecture, so the machine code will differ for these two machines as AlexP pointed out. But the packages are usually based on the same source code, so applications of the same version should provide the same functionality and behaviour as far as supported by the hardware and the environment (depending on the available libs).

For a more detailed answer we need to know what the intention of this question is.


16.04 doesn't boot after instalation, froze by restart button, please help

Sadly, this looks like a BIOS bug.  You might try updating your system BIOS from Windows side to make sure.


Fetch mail from MSN/Windows Live! in Evolution

After a lot of hunting through old threads on the forums. I was mistaken that POP is disabled for all non-Microsoft clients. Here are the settings that worked for me.
In Evolution go to Edit -> Preferences. Choose your MSN/Live email account and select "Edit".
Receiving Settings

Server Type: POP
Server: pop3.live.com:995
Username: Windows Live Email Address
Use SSL Connection: SSL encryption
Authentication Type: Password

Sending Settings

Server Type: SMTP
Server: smtp.live.com:587
Use Secure Connection: TLS Encryption
Server Requires Authentication
Authentication: Plain
Username: Windows Live Email Address

As a side note. When you try to send mail for the first time it will fail. You will get an email from Windows with a link to confirm you are a person and enable this functionality. After that you can Send as expected.


Gparted has no option to shrink partition

Are you trying to shrink the root partition while in use? I don't believe Gparted does this. The safest options are to boot into either an Ubuntu LiveCD or GParted Live so that the root file system is not in use.
It's fine to grow the root partition while it's in use, but it's best not to shrink it while it's in use. But if you insist you must shrink it while it's in use, and you're feeling brave, you could try these instructions.


Why can't I download anything from the internet?

Archive Manager is Ubuntu's default application for handling archive files.
Best not to 'fix' it, it's probably working just fine.
You can replace it with something like 7-Zip from the Software Center, though this is unnecessary.
Auto Run can't do anything with an archived or compressed file, you have to extract the archive first. Depending on the file type, you likely already have a default program to handle whatever it is. You can check this in System Settings / System Info / Default Applications.
Auto Run and Archive Manager are different things, as explained above.

You can open your Downloads list anytime from Firefox by typing SHIFT+CTRL+Y. If you are having difficulty opening extracted files, make sure you have the codecs already installed, try the Ubuntu Restricted Extras from the Software Center.

Try downloading the files and opening them from a different browser, like Chromium. If that works, you have to reset your preferences in Firefox.


Dependency problems while updating Ubuntu 12.10

You're just missing the update source in update manager. Purge the file,

sudo apt-get purge linux-image-extra-3.5.0-25-generic


NumLock ON in logon screen (Lubuntu 14.04)

Install numlockx. It works for me.

sudo apt-get install numlockx


You can try to install Wine and execute the program with it. Wine is a program that let you run Microsoft Windows application on Linux (in few words).

To install Wine you can use the following command:

sudo apt-get install wine

Installation will take a bit, because has to download a lot of packages. If you get some dependencies error you can run the following command:

sudo apt-get install -f

which should solve package dependencies errors.

After installation you can double-click on Autorun.exe and launch the DVD application.

I've got same problem with a DVD found in a school book and I've solved it in this way.


Check you keyboard layout, maybe with the help of right-alt you have the characters.

Here are tips from about.com: http://spanish.about.com/od/writtenspanish/a/dia_ubuntu.htm


virtualbox does not load AMD-V is disabled

Per this comment, the solution was to enable it in BIOS. How did it end up disabled after upgrade in the first place? Well, it could've been because of firmware upgrade, or even because of a BIOS glitch. I'm in particular have been dealing at work with a PC whose UEFI in obscure circumstances been disabling VT-x (an Intel analog to AMD-V), so I had to manually enable it back.


How can I disable gedit's behaviour of right-aligning Arabic text?

I'm not sure if there is a way to do it, but why you don't try another editor?
Here is different arabic text handling from Atom, SublimeText, and GEdit:

Atom:

SublimeText

gEdit


No symbol table. Press any key to continue

Try this one, first from USB/Live CD (if you can't access Ubuntu from HDD), and then, or directly from your "HDD OS":

sudo fdisk -l

This will list all partitions on your HDD. Find under the Type section your root partition labelled Ubuntu or Linux and its Device (like /dev/sda).

Then, do

sudo grub-install /dev/sdX

Where sdX is the device you found with fdisk. Note that you install GRUB to a drive, not a partition, so sda would be correct while sda1 would be incorrect.

Finally, run

sudo update-grub
sudo reboot


Problem with ./configure while installing from tar

You have to set your LIBRARY PATH to the directory glib was installed to. Since it is user-built it will reside in another directory, I am not 100% sure, but my first guess is /urs/local/lib.

put this into your bash:

export LD_LIBRARY_PATH=/usr/local/lib
export LIBRARY_PATH=/usr/local/lib
export CPATH=/usr/local/include

and try again, i think make install will tell you the directory. so if its another one check its output.

if you want to check how your environment variables are set type

echo ${LD_LIBRARY_PATH}

of course you can replace the name with all other variables.

you have to set those environment variables every time you fire up a new shell, but you can write it to your bash_profile, too, i think (never tried that though).


You seemed to have installed the Pepper Flash Plugin.

To make it work for Firefox, enter the following commands -

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

If you don't have Google Chrome installed, you may have to run the following -

sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install

However, I would suggest that you use flashplugin-installer instead.

Go to the software center and remove the flash player that you installed.

Now install flash player using the command -

sudo apt-get install flashplugin-installer


What is the position of switch #1 here? Does Fn+F5 change anything? What is the entirety of:

rfkill list all


Updating to 20.04 broke s2disk hibernate

There is a  kernel bug that causes such behavior
https://bugzilla.kernel.org/show_bug.cgi?id=206713
https://bugs.launchpad.net/ubuntu/+source/linux-5.4/+bug/1864930


Why doesn't the Dash have an overlay scrollbar?

It's a known bug/"feature" in Nux
I believe this is what you mean (see circled cursor):

This is a known bug/feature, with no estimated fix date (it's in the backlog).

The situation and bug report are very complicated because the bug was originally filed in 2010 when Unity was still 2D; that was fixed, but it's still a problem in the new Unity 3D interface.

Overlay scrollbars work everywhere else because applications use GTK+; but not for the Dash because it uses Nux instead.

To expedite a fix, I recommend filing a new bug, explicitly linking to the old one and emphasizing that this is only for the new Unity 3D dash using Nux.

Workarounds

Try to not even need scrolling by using the Filter to reduce the displayed results.
Use the up/down arrow keys instead


Indicator multiload applet causes excessive compiz/CPU usage

On my xubuntu I have "Task Manager", I had a quick look and it doesn't appear to call indicator-multiload, and it's never caused a problem for me. Maybe give that a whirl?

I assume you've also uninstalled, purged, and reinstalled indicator-multiload, just in case successive overlay upgrades are the reason behind it being strange?

Best of luck!


Do you have xcalib package installed? (sudo apt-get install xcalib)

This package allows to invert the screen colours for better readability of documents etc.

To invert colours (and re-invert) run xcalib -i -a from the command line.

If not, I would test it with external screen and check if it is the same (if it's different then you have an hardware issue)


Perhaps try backing up /etc/php5, then doing

sudo apt-get purge php5-common libapache2-mod-php5 php5-mysql

This will remove all of your configurations for those packages. Then re install them

sudo apt-get install libapache2-mod-php5 php5-mysql

That should put fresh configs for those modules back in place. Then you can compare what is there to your backup of /etc/php5 and probably figure out what the problem was.


How is Software updater installing updates without my password?

This is the way it works now all updates require a password in versions prior to 11.10 but since 11.10 the password is no longer requested for security updates.

A password is still required to install software and for updates that are not for security however.

From the Security Team FAQ:

  Update Manager doesn't prompt for security updates

  Why does update-manager no longer prompt for the user's password?

  As of Ubuntu 11.10, update-manager no longer prompts for the user's password to apply updates. This was decided to improve usability and
  to make it easier for users to apply security updates and therefore
  increase system security. The rationale is as follows:
  Like in previous releases, by default only people in the admin group are allowed access to perform security updates.
  Only updates for already installed software can be applied without a password. Installing additional software still requires people to
  enter their password.
          The password prompt had become an irritant for some people such that they would just press 'Cancel' instead of installing the
  updates. The password prompt decreased system security for those
  users.
  People that did dutifully apply updates became conditioned to enter their privileged password perhaps daily. When the user is prompted for
  the password, it should mean something and the frequency of
  update-manager updates meant that some people no longer thought about
  why they were entering their password. For these users, the password
  prompt had the potential to reduce security.
  For environments where this change is deemed not appropriate, this functionality can be disabled by the administrator via PolicyKit or by
  creating users that are not in the admin group (a recommended practice
  to begin with).


Please edit '~/.pcsx/pcsx.cfg' like this.

==> change 'Cpu = 0' to 'Cpu = 1'

 (*) I refer to this HP.

https://bugs.launchpad.net/ubuntu/+source/pcsxr/+bug/1504834


How to automatically reboot my pc every 3 hours?

The following should work, but I am not sure about the command, since I am not familiar with gminer.

The script

Paste the text below in an empty file, save it as check_gminer.py, save it somewhere:

#!/usr/bin/python3

import subprocess
import getpass

curruser = getpass.getuser()
service = "gminer"

def createlist_runningprocs():
    processesb = subprocess.Popen(["ps", "-u", curruser], stdout=subprocess.PIPE)
    process_listb = (processesb.communicate()[0].decode("utf-8")).split("\n")
    return process_listb

def runsornot():
    runningprocs_list = createlist_runningprocs()
    if not application[:15] in str(runningprocs_list):
        subprocess.Popen(["sh", "m.sh"])
    else:
        pass

runsornot()

Editing cronfile

Add the following line to your cronfile (type crontab -e in a terminal):

*  *  *  *  *  python3 /path/to/script/check_gminer.py

The script looks every minute if the service runs ant restarts it if not. The question is if it works or not if your GPU has problems. We'll have to see.

Alternative procedure, if the above method is not sufficient for your situation

The alternative (reboot) needs administrator privileges. Therefore, if you need to run the reboot command by a cronjob, you need to edit /etc/crontab (sudo nano /etc/crontab), In which you can set by which user the command should be run (<> crontab -e).

Add the line:

0 */3 * * * root reboot

To the /etc/crontab and your computer will restart every three hours.


The wireless solution will work for Xubuntu as well.

All Ubuntu flavors share same kernels and drivers. And all hardware related solutions work with all flavors similarly.

All terminal commands that are not specific to Xubuntu desktop environment are also same.


How do I prevent telnet from timing out?

Does it have to be telnet? Using plain telnet is highly discouraged due to it not being very secure.

If you can use SSH, it has two features that will help you: TCPKeepAlive (which is enabled by default, so no need to use it) and ServerAliveInterval (which is disabled by default, so enabling this may help you).

From the man page (man ssh_config):

 ServerAliveInterval
         Sets a timeout interval in seconds after which if no data has
         been received from the server, ssh(1) will send a message through
         the encrypted channel to request a response from the server.  The
         default is 0, indicating that these messages will not be sent to
         the server, or 300 if the BatchMode option is set.  This option
         applies to protocol version 2 only.

To use this on a one-time basis:

ssh -o 'ServerAliveInterval=30' your-server.com

To use it always, add ServerAliveInterval 30 to your .ssh/config file:

Host *
  ServerAliveInterval 30


Maximum Duration for dual boot (8.1 and 14.04)

how long will it operate successfully

Well.. technically Ubuntu 14.04 will be supported until April 2019. So if you do not mess it up yourself you can stick with 14.04 for a few years ;)

  and is 95 GB good to go

More than enough. You can run Ubuntu comfortably with 25Gb. The Ubuntu base system itself needs about 10Gb to work without running out of space.

  if I install latest java IDE

That is not going to cost you Gb's so you should be fine.

  And what if I format Partition#1 after installing 14.04 will Ubuntu stay there with out any affect.

Yes. If Ubuntu is installed elsewhere (ie. not on P#1) it will remain there.  1 thing though: if you delete the bootmanager (grub) you will need to re-install it for it to show all the operating systems again.


error ubxtool : failed to import gps,check PYTHONPATH

There are some clues that ubxtool is available only since Ubuntu 20.04 LTS, with gpsd-3.20.
So you have to backport it manually from 20.04 LTS to 18.04 LTS by following the method below:
sudo apt-get build-dep gpsd
sudo apt-get install build-essential dpkg-dev python3-all-dev python3-all-dbg dh-apparmor dh-exec asciidoc

cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/scons/scons_3.1.2-2_all.deb
sudo apt-get install ./scons_3.1.2-2_all.deb

mkdir -p ~/Downloads/gpsd
cd ~/Downloads/gpsd

wget http://archive.ubuntu.com/ubuntu/pool/main/g/gpsd/gpsd_3.20.orig.tar.xz
tar -xf gpsd_3.20.orig.tar.xz
cd gpsd-3.20
wget http://archive.ubuntu.com/ubuntu/pool/main/g/gpsd/gpsd_3.20-8ubuntu0.2.debian.tar.xz
tar -xf gpsd_3.20-8ubuntu0.2.debian.tar.xz
mv gpsd_3.20-8ubuntu0.2.debian.tar.xz ../

dpkg-buildpackage -uc -us

sudo apt-get install ../*gps*.deb

And as the result you will get ubxtool with its python binding:

$ ubxtool -V
ubxtool: Version 3.20


Ubuntu 12.04 Bootloader failed to install

I think its a problem with your Ubuntu Live CD. Try to download a new copy from here. Ubuntu also needs a swap area allocated not just free memory space. This document says why you need it.Swap.


WIFI DOESN'T WORK UBUNTU 13.04. I'M USING HP PAVILION DM1

connect using Ethernet , then go to  system settings and open Software Source
now you can find your wifi driver using additional drivers now :)


Keyboard freezes and spams the last button


How can I get the default gcc compiler back?

So in the quite improbable case that anyone has the same problems and doesn't mind getting rid of TIGCC, I had to delete /home/USER/bin/gcc and /home/USER/bin/as.

When issuing

$ type -a
/usr/bin/gcc
/home/USER/bin/gcc

and same thing for as.


Confused about Ubuntu and Flavors' LTS support periods

You need to check the release notes for each release.

For example Ubuntu Studio 18.04 was NOT a long-term-support (LTS) release, though you can add a PPA to get 3 years of extended support (making it the equivalent of a LTS flavor).

It's all covered in the release notes for the specific release you want to download and install, eg. for 18.04 jump to the Support lifespan and you'll see confirmation in summary form of what I'm saying https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes/18.04

  Support lifespan

  The 'main' archive of Ubuntu 18.04 LTS will be supported for 5 years
  until April 2023. Ubuntu 18.04 LTS will be supported for 5 years for
  Ubuntu Desktop, Ubuntu Server, and Ubuntu Core. Ubuntu Studio 18.04
  will be supported for 9 months. All other flavors will be supported
  for 3 years.

If you want a flavor, or even the main Ubuntu release - it's best to check the release notes for that release which cover it in detail for that release.

They'll also talk about packages in the installed system, if you add packages to your system (eg. Ubuntu includes only 'main' by default that have 5 years for LTS release) and add another repository (eg. 'universe') you need to check the length-of-support for those added packages ('universe' packages can have 9 months - 3 years as community supported)


Issue with r8711 wi-fi usb after wake up from sleep

I experienced the same problem, and while not a solution, this is a workaround that's easy and does exactly what you need: get the wireless driver loaded automatically after resuming from suspend:

Open a terminal with Ctrl+Alt+t
Type the following command followed by Enter, typing your user password when prompted:

echo 'SUSPEND_MODULES="$SUSPEND_MODULES r8712u"' | sudo tee /etc/pm/config.d/unload_modules

Note: this assumes you don't already have an /etc/pm/config.d/unload_modules file, since otherwise it will overwrite it. Alternatively, you can create/edit the file with your text editor of choice and with sudo access.

What this will do is to force the module specified in the file to unload before suspending, and it will then be loaded upon resume.


Having problems booting my Lenovo laptop

I too had the same problem and it had to do with BIOS settings.

The good news is that you do not need to worry about data loss.  You can take a disk image with clonezilla:

http://clonezilla.org/

go into your BIOS and delete any unused boot managers, check your disk for errors and then see if the bug happens again.  If it does, clone your disk and sanitize it, then re-install.

That is what worked for me.  Of course you will want to ensure that your disk is working correctly and that your BIOS is correctly configured before you do anything...


Netflix, Amazon Prime, and Other DRM Content

There are differences between how software is packaged and distributed when comparing snaps with traditional Debian packages (like those in Ubuntu repositories)

A snap is a universal Linux package that bundles the app with all of its dependencies.  Snaps are also container-like, being somewhat isolated from the base system.

When you install a package from Ubuntu repositories via apt or the GUI package manager, you are installing a standalone package (although the package manager will generally resolve required dependencies for you).

The Google Widevine HTML5 DRM decoder is not automatically included in the firefox package in Ubuntu repositories.  It can be installed as a plugin, which will allow decoding of HTML5 DRM content (the type of DRM used by Netflix) .

To the question as to why the snap might include it likely has to do with a few things:

The source code for Widevine is not publicly available and does not have a copy-left license.  Firefox is currently in the main Ubuntu repository, which is for open source software only.

Snaps are also somewhat isolated from the rest of your system, so including "potentially dangerous" proprietary software in a snap poses less of a risk.

Snaps are intended to be all-encompassing, without needing additional software, so the developers/publishers of the snap have likely decided to include HTML5 DRM support by default.

Read more about snaps here on AskUbuntu


How do I install Ubuntu to a USB drive WITHOUT touching my hard drive boot

How about unplugging your HDD and then installing Ubuntu to the USB drive.


Can't start in VirtualBox; shows built-in shell

I had some similar problems my self.

It could be a hard drive problem (the virtual hard drive or your actual hard drive.) Might suggest deleting that VM you installed and starting over.

Also, if you have Ubuntu installed on ext4, that can cause some odd issues with the VM. Go into the settings for the for storage. The first option, IDE Controller, there is an option there "Use Host I/O cache" Make sure that there is a check in that box.


Restricting Apache VirtualHosts to their own directory

You could use bindfs instead.
Put all your code under /var/www/html/<project>, chown www-data:www-data -R /var/www/html and use bindfs to mount it in the users directory.
Examples:

bindfs -g www-data -m chroot_user1 --create-for-user=www-data --create-for-group=www-data --create-with-perms=0644,a+X /var/www/html/example.com/ /home/chroot_user1/wwwroot_example.com/

Chroot users will see the code as themselves as owner.
But the real permissions will be www-data under the apache directory.


As it turns out, I removed a package I wasn't supposed to remove and that this problem has nothing to do with Compiz at all. I backed up my documents and music and stuff and did a fresh install. It was successful and all of my programs are back.


This is not an answer, per se, although it does have an easier workaround to recover.

I started having this same (I believe) problem with 14.04.  It seems like the current active window works OK, but won't close or move, and other windows won't work at all with the mouse.  Keyboard works fine.

If I close the working window, and reopen, it no longer works.

No clue as to cause, but my quick, non-destructive workaround is to switch to a VT and back: For example, Alt + Ctrl + F5, then when you get the login prompt, simply press Alt + F7 to switch back to the GUI, and everything is back to normal, with all windows still open.

Let me know if this works for you (or anyone else reading this).


Why are the common default shortcuts in terminal all use shift?

The control keys are by default the terminal settings. Every application you run can change these to their liking (e.g. ^C has no effect in nano)

You can list the settings using stty -a. You can for instance change the interrupt, which normally is ctrl+c to ctrl+a using: stty intr ^A

If you are running the default Ubuntu terminal, you can also change the key-binding in menu Edit > Keyboard Shortcuts....

There you will see that copy is mapped to ctrl+Shift+c. If you change that to ctrl+c, then you will have the behaviour you want.
Same for ctrl+Shift+v.


UNIX command line giving me apt-get errors

Could not resolve "us.archive.ubuntu.com"

That sounds like you don't have working Internet connectivity at all. Or at least, broken DNS.


Can't change or add keyborad layout in Ubuntu

sudo dpkg-reconfigure keyboard-configuration
sudo dpkg-reconfigure kbd


cp command to exclude certain files from being copied

Use rsync:
rsync -avr --exclude='path1/to/exclude' --exclude='path2/to/exclude' source destination

Note that using source and source/ are different. A trailing slash means to copy the contents of the folder source into destination. Without the trailing slash, it means copy the folder source into destination.
Alternatively, if you have lots of directories (or files) to exclude, you can use --exclude-from=FILE, where FILE is the name of a file containing files or directories to exclude.
--exclude may also contain wildcards, such as --exclude=*/.svn*
Copied From: https://stackoverflow.com/a/2194500/749232
If you want to use cp itself:
find . -type f -not -iname '*/not-from-here/*' -exec cp '{}' '/dest/{}' ';'

This assumes the target directory structure is the same as the source's.
Copied From: https://stackoverflow.com/a/4586025/749232


I have had to re upgrade, because I couldn't go back.

With the base components from 18.04, the radeon card is working again, and so is the CAD software.

So I can't explain why or how, but it seems the radeon open source driver is better in 18.04 than it was in 16.04.3.


So I googled xvidcap. The site for it on sourceforge only has the code compiled into a deb for i386jaunty. It is not compatible.

Fortunately, the source is available.

sudo apt-get install subversion gcc autoconf libtool autopoint shtool libglib2.0-dev gtk+-2.0 libglade2-dev libxmu-dev libmp3lame-dev make

Go do something else, it is going to be a while.

(gcc and make should already be the latest versions, included for thoroughness. I recently reloaded my system, so you are in luck. These packages are real close to what someone without any tool chain should need.)

cd ~/
svn co https://xvidcap.svn.sourceforge.net/svnroot/xvidcap xvidcap

I went and did something else while it downloaded.

cd /usr/share
sudo mkdir /automake-1.10
cd automake-1.10
ls -lia /usr/share/automake-1.11

I symlinked all the files listed.

sudo ln -s /usr/share/automake-1.11/acinstall acinstall
sudo ln -s /usr/share/automake-1.11/am am
sudo ln -s /usr/share/automake-1.11/ansi2knr.1 ansi2knr.l
sudo ln -s /usr/share/automake-1.11/ansi2knr.c ansi2knr.c
sudo ln -s /usr/share/automake-1.11/ar-lib ar-lib
sudo ln -s /usr/share/automake-1.11/Automake Automake
sudo ln -s /usr/share/automake-1.11/compile compile
sudo ln -s /usr/share/automake-1.11/config.guess config.guess
sudo ln -s /usr/share/automake-1.11/config-ml.in config.ml.in
sudo ln -s /usr/share/automake-1.11/config.sub config.sub
sudo ln -s /usr/share/automake-1.11/COPYING COPYING
sudo ln -s /usr/share/automake-1.11/depcomp depcomp
sudo ln -s /usr/share/automake-1.11/elisp-comp elisp-comp
sudo ln -s /usr/share/automake-1.11/INSTALL INSTALL
sudo ln -s /usr/share/automake-1.11/install-sh install-sh
sudo ln -s /usr/share/automake-1.11/mdate-sh mdate-sh
sudo ln -s /usr/share/automake-1.11/missing missing
sudo ln -s /usr/share/automake-1.11/mkinstalldirs mkinstalldirs
sudo ln -s /usr/share/automake-1.11/py-compile py-compile
sudo ln -s /usr/share/automake-1.11/symlink-tree symlink-tree
sudo ln -s /usr/share/automake-1.11/texinfo.tex texinfo.tex
sudo ln -s /usr/share/automake-1.11/ylwrap ylwrap

cd ~/xvidcap/trunk
autoconf
autoreconf
automake --add-missing
./configure

This is going to take a little while, I sat through it.

make

Go do something else for a bit.

sudo make install

test it out

xvidcap

If it works, stop playing with it and close it.

Alright, let's add a menu item.

!!!!(KDE only. Sorry, I run Kubuntu which doesn't use Gnome-- Gnome is the generally popular and --more importantly-- default window manager of Ubuntu. I'm sure there are instructions out there via 'the Google' for such a task. But this is the end of the line for Gnome users.)

Right click the Kubuntu Application Manager in the kicker bar for the context menu. My application manager shows up as a Blue Square with a Kubuntu gear logo-- analogous to the Windows start button.

Choose the "Edit Applications..." menu item

Expand the program category you want it to appear in, I put mine in Multimedia.

Then select the program you want xvidcap to appear under.

Click the New Item menu icon in the upper left of the wizard, dialog, whatever...

You will be prompted for a label. I typed "XVidCap Screen Capture" and hit enter.

An mostly empty item will appear, the name block will be filled with the label you gave it.

We can begin filling the rest of the empty detail blocks in the right side:
Click the square box to set a visual icon.
When I select the 'Other Icons' radio button, the xvidcap icon is right in there at the bottom.
Once I click the icon I want, the icon is selected and the sub-wizard closes.
You can fill in the description and comments field if you want.
In the command field type "xvidcap".

So, there we go. xVidCap on *buntu 12.04

I wouldn't mind learning how to make a .deb. Yes, I can google it. But, I would prefer being walked through it on the phone. I go by BradChesney79 and am easy to find. And I use gmail. So put them together and I would love to contribute more.


Where is the connection manager in Ubuntu 18.10?

Try run in command-line:

nm-connection-editor

OR

To install NetworkManager:

sudo apt-get install network-manager

To install the GNOME applet / indicator:

sudo apt-get install network-manager-gnome

Start network manager

sudo start network-manager


hp pavilion g6 1250 with a BCM 4313 doesn't see any wireless networks

Finally i was able to fix the problem using this link

http://tuxcanfly.appspot.com/2011/10/Ubuntu-11-10-Broadcom-Wifi-driver-43xx

the brcmsmac driver (inspire that every one recommends it for bcm4313) had problems with ubuntu 11.10 , the solution was just to blacklist it and install bcmwl-kernel-source

the instructions on the link are easy to follow


Why do two pc's show up on my account when I  only own one?

You can just remove the unneeded PC from the list. The reason for 1 PC showing as two are multiple - especially with the given level of information. Maybe you had to re-authenticate your PC with a different name? Or it's simply a bug which I recommend you to report on Launchpad.


Xubuntu: screen does not wake up after being locked

Open BIOS setup

  Configuration > Graphic device
  Then change from Discrete Graphics to switchable Graphics
  This worked for me on Lenovo legion Y540
  Hope it may help you!!!


How can I increase my disk space when Ubuntu is installed alongside with Windows?

The program baobab, installed by default, can be an helpful tool to see how much space is kept by the several stuff, and maybe delete unnecessary files or move them into another partition.

This could be used to free some space before you decide how to resize the partitions.
So, you have:

25GB Windows
25GB Ubuntu
10GB swap
15GB ext4
200GB ?

Is the 200GB partition in ext4? Do you use that partition only for Ubuntu? If yes, you could mount your /home there  and resize the 25GB system partition to 12-13GB.

For which use you made the 15GB partition? If there is no specific use, you could merge the 200GB and the 15GB a single partition

Then, with these operation you could obtain a /home partition of ~227-228GB


mdadm: breaks boot due to "is not ready yet or not present" error

I had the same issue on occasion on my headless server, and resolved it by appending the nobootwait option in /etc/fstab:

/dev/md0    /mnt/raid   ext4    defaults,noatime,nobootwait 0   0

It tells the boot process to not wait for the RAID, but the RAID is always available by the time I can ssh into the box. In principle it's not all that different from what you are already doing, but you don't need to spread the mount logic over two different files.

There is a bug report on system hanging at boot unless nobootwait is the last mount option, but this was presumably fixed around the time of the 10.10 release.

See also How do I avoid the “S to Skip” message on boot.


Separate log text according to paragraph?

If your input file is test.log and you want to split it on each empty line, creating a bunch of numbered test-XXX.log files, you could do it with a Bash loop like this:

number=1
while read line ; do
    echo "$line" >> "test-$number.log"
    if [[ -z "$line" ]] ; then
        ((number++))
    fi
done < test.log

or shortened and in one line:

n=1;while read l;do echo "$l">>"test-$n.log";if [[ -z "$l" ]];then ((n++));fi;done<test.log

This reads the input file line by line and increases a counter every time it encounters an empty line in the input. The output file name to which each line gets appended contains the counter, so that the data ends up in different files.


You can choose and set your own keybinding:

http://www.claws-mail.org/faq/index.php/Interface#How_can_I_change_the_key-bindings_.28hot-keys.29_in_Claws_Mail.3F


Network interface problem installing Ubuntu server on Acer Aspire H340 (headless server)

I find it weird when people answer their own question, but I'm going to do it anyway. A few hours of sleep helped take some distance. I found the solution in this question: Network interface name changes after update to 15.10 - udev changes

Check out the answer by Dênio Robson, reproduced below (I hope that's OK). My understanding is that this changes Ubuntu's behaviour so that it doesn't... "get creative" with the interface name and uses the good old eth0. After making the edit to the grub configuration, I changed /etc/network/interfaces to refer to eth0 instead of enp2s0 then put the hard disk back into the H340. A few seconds later the machine was showing up on my network and I can SSH into it. Now the rest of the fun begins (configuring Samba, creating shares, adding disks to LVM, etc).

Here's Dênio Robson's answer from the aforementioned question. If it helps, please upvote him.

Try this:
Edit your /etc/default/grub.
Change the line from

GRUB_CMDLINE_LINUX=""

to

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

and, finally run:

# update-grub

as root, and reboot your system.


Cannot import .ovpn file from Network Manager GUI but using CLI still works

I had the same issue with the "Add" button grayed out.
I was able to run this from a terminal:
sudo nm-connection-editor

which brings up the old connection editor. Clicking the + button and choosing "Import from file"  allowed me to import the .ovpn file and make any edits I wanted. After saving it shows up fine in my Network Manager.


How to write "gzip -c foo.txt > foo.txt.gz" with 2 redirection operators instead of 1

It is actually a very simple answer.  All you do is switch the redirections.

gzip < foo.txt > foo.txt.gz

First, redirect the foo.txt into gzip then redirect the output to foo.txt.gz and the original file will remain.

Hope this helps!


I have seen this error message

  Error in POL_Wine_InstallVersion
  Unable to find version: 4.2

when tried to install some program with PlayOnLinux.

You need to install the newest version of PlayOnLinux with

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_bionic.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

and then retry installation of the program.

If you can't (or do not want to) get PlayOnLinux from the repository, then you can install directly from deb-file:

cd ~/Downloads
wget https://www.playonlinux.com/script_files/PlayOnLinux/4.3.4/PlayOnLinux_4.3.4.deb
sudo apt-get install ./PlayOnLinux_4.3.4.deb


Trying to add timestamp to image but keep getting error unknown image property "%[exif:DateTimeOriginal]"

This error indicates that the EXIF tag DateTimeOriginal is not present in your image file, meaning that you can't use it to annotate the image.


How can I prevent users from accessing the root directory?

If all you want is for the users to be able to sftp files to/from a particular folder, why don't you set them up with an sftp chroot?  This will make the folder you designate appear to be the root in their login.

See:
http://www.debian-administration.org/articles/590
http://ubuntuforums.org/showthread.php?t=858475


is there a simple way to check a live CD for errors?

How about choosing the  "Check CD for defects" from the boot menu? :)

This is an screenshot from an old Ubuntu version, in newer versions you have to hit Enter during the boot process when you see this screen to see this menu:


PPA repositories after installing kubuntu-desktop

After you install kubuntu-desktop, the repositories and PPAs remain unchanged. Now, I will try to explain why you cannot install what you wish. This happens most often when you give wrong names for the packages.
When you don't find a package with apt-cache search <package_name>, try to search for a part of the package name.

In your case, apt-cache search kdm will return something like:

jfsutils - utilities for managing the JFS filesystem
ldm - LTSP display manager
ldm-server - server components for LTSP display manager
kde-workspace-kgreet-plugins - KDE greet libraries for authentication
kdm - KDE Display Manager for X11
kdm-gdmcompat - Provide basic gdm functionality to systems running kdm
kdm-theme-aperture - very glossy Qt4/KDE4 kdm theme - aperture variant

kdm-theme-bespin - very glossy Qt4/KDE4 kdm theme

kdm-theme-tibanna - very glossy Qt4/KDE4 kdm theme - tibanna variant
libpam-usb - PAM module for authentication with removable USB block devices
lxdm - GUI login manager for LXDE
rddmarc - DMARC report processing scripts collection

So, the package name what were you looking for is kdm-theme-bespin. To install it, run in terminal:

sudo apt-get install kdm-theme-bespin


How to open the default GUI text editor in Ubuntu or Lubuntu via a script?

Use xdg-open it works in most linux distros.
example:

xdg-open /filepath/file.txt


Chrome home page is set to an unwanted website, how do I change it?

Go to Settings
Scroll to Reset Browser Settings & click
Delete Cookies
Close & restart Chrome


Unable to log in after graphics driver change

try to remove these files

$HOME/.Xauthority
$HOME/.ICEauthority

Regards,

cmks


Maybe you haven't reloaded your profile. The change will only take effect after that (e.g., reboot, restart terminal).

Try setting the env var for the command only. Go to the terminal and type:
ANDROID_EMULATOR_FORCE_32BIT=true avd
(Or whatever the command is called.)


How to unrar a .rar file if I cannot install unrar?

Okay, it seems you are either using a public PC (in a cyber cafe, or a computer lab) where you do not have the root / sudo password, or there are restrictions.

You can try extracting it online (NOTE: To be on the safer side make sure your rar file doesn't contain any sensitive information.).

For example, you can use this site: http://online.b1.org/online

or

You can try using a portable app (for example an Appimage of an archiving software like 7zip or Peazip) on your pendrive. These softwares don't need any installation, just download the appimage file, right click on the file and allow executing as a program (or use chmod command to make it executable if it is not) as described here: How to make a file (e.g. a .sh script) executable, so it can be run from a terminal
(If it is not an appimage, follow the instructions given on the release page of the file.)
...and take it to whichever PC you need it, plug the pendrive, and run the portable program! That's all.


Problem with theming my application with CSS

Load your .css file using that tutorial code
Then on your widget do :
    self.sample_widget.get_style_context().add_class("sample_class")

Put this in the .css file :

GtkButton.sample_widget
{
    color : #00FF00
}


Does ubuntu software center download 64bit apps?

Yes. Software Center, as well as Synaptic, poke around in your system and determine what you need, and get it for you, 64-bit or 32-bit.


How to make it search the subdirectories

Use find.

  How to adapt that little line of code to search for more than just
  mkv

Use -iregex option with find.

  How to make it delete the original file only if the conversion if
  successful

You need an if switch.

Putting it all together:

while IFS= read -r -d '' movie ; do
    echo "Found: $movie"

    convert_command="ffmpeg -i '$movie' -vcodec copy -acodec copy '$movie.mp4'"

    if bash -c "$convert_command" ; then
        echo "Converted to mp4"
        rm "$movie"
    else
        echo "Convertation failed"
    fi
done < <(find . -type f -iregex '.*\(mkv\|mpeg\|avi\|wmv\|mov\)' -print0)

I used this answer to create loop based in find output.

Advantages and disadvantages of mp4 and kodi/xbmc minimizing on startup are independent questions, I suggest you to create separate posts for each of them.


Ubuntu 16.04 - fatal error: No such file or directory (dnet.h & daq.h)

Run the next commands:

sudo apt-get install libdaq-dev
apt-get install libdumbnet-dev

And run make command again.


Link Windows Mobile Device with Ubuntu and Use Laptop to send SMS

gammu and it's GUI wammu might help with any phone!


Set UFW before.rules without server restart

This works for me:

sudo service ufw restart


Is there any Ubuntu Images that is suitable for 8gb Cubox-i4 that is working on ARM processor?

Run the following:

cd
mkdir rootfs
debootstrap --foreign --include=vim,dialog,apt --variant=minbase --arch=armhf xenial rootfs http://ports.ubuntu.com

After that run:

mount -o bind /dev rootfs/dev
mount -o bind /dev/pts rootfs/dev/pts
mount -t sysfs /sys rootfs/sys
mount -t proc /proc rootfs/proc
cp /proc/mounts rootfs/etc/mtab
chroot rootfs

Now in the chroot, run:

/debootstrap/debootstrap --second-stage
localedef -i en_XX -c -f UTF-8 en_XX.UTF-8 #replace XX with your country code
dpkg-reconfigure locales
dpkg-reconfigure tzdata
echo utilite > /etc/hostname
echo "127.0.0.1       localhost" >> /etc/hosts
echo "
deb http://ports.ubuntu.com/ xenial main restricted universe multiverse
deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse
deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
" > /etc/apt/sources.list
dd if=/sys/bus/i2c/devices/0-0050/eeprom bs=1 count=6 skip=4 2>/dev/null | od -A "n" -t x1 # note the output of this!!!
echo "
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet dhcp
hwaddress ether put-here-the-output-of-what-you-just-noted
iface mlan0 inet dhcp
" > /etc/network/interfaces
echo "
# ttymxc3 - getty
#
# This service maintains a getty on ttymxc3

description "Get a getty on ttymxc3"

start on runlevel [2345]
stop on runlevel [016]

respawn

exec /sbin/getty -L 115200 ttymxc3
#exec /sbin/getty -l /usr/bin/autologin -n 115200 ttymxc3
" > /etc/init/ttymxc3.conf
adduser <user>
usermod -aG adm,cdrom,sudo,plugdev <user>
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
apt-get install make gcc bc lzop ssh man sudo ntp ntpdate usbutils pciutils less lsof most sysfsutils u-boot-tools linux-firmware linux-firmware-nonfree isc-dhcp-client net-tools # DO NOT INSTALL THE LINUX KERNEL!!!
rm /sbin/initctl
dpkg-divert --local --rename --remove /sbin/initctl
exit

Now back in the normal environment, run:

cd
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
sudo update-alternatives --config gcc
git clone -b boundary-imx_4.1.15_1.0.0_ga git://github.com/boundarydevices/linux-imx6.git
cd boundary-imx_4.1.15_1.0.0_ga
export PATH=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.1
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
git checkout origin/boundary-imx_4.1.15_1.0.0_ga -b boundary-imx_4.1.15_1.0.0_ga
make nitrogen6x_defconfig
make uImage modules
INSTALL_MOD_PATH=~/rootfs make modules_install
INSTALL_MOD_PATH=~/rootfs make firmware_install
INSTALL_MOD_PATH=~/rootfs make headers_install
# Please uncomment one the following lines below
#  imx6q-sbc-fx6m.dtb: is used by the Utilite Pro
#  imx6dl-sbc-fx6m.dtb: is used by the Utilite Standard
#cat arch/arm/boot/zImage arch/arm/boot/dts/imx6q-sbc-fx6m.dtb > /tmp/zImage-cm-fx6
#cat arch/arm/boot/zImage arch/arm/boot/dts/imx6dl-sbc-fx6m.dtb > /tmp/zImage-cm-fx6
mkimage -A arm -O linux -T kernel -C none -a 0x10008000 -e 0x10008000 -n 3.10.17-cm-fx6-1-beta4-aufs -d /tmp/zImage-cm-fx6 /boot/uImage-cm-fx6
rm -f /tmp/zImage-cm-fx6

Finally! We are nearly finished.

Connect the front port of your Cubox to your computer.
Now run:

sudo mount /dev/ttymxc3 /mnt
cd ~/rootfs
tar --numeric-owner –cpjf ~/xenial.tar.bz2 *

The above command will take ages.

Older versions of the U-Boot firmware require a vfat partition to load the kernel image from. So you tend to have small vfat partition holding the kernel images only and a large ext4 partition for the rest. On the ARM platform, the first partition usually starts at sector 2048, reserving enough space if you want to put the U-Boot firmware on the uSD afterwards. On the PC platform, you may check this, when you create the partitioning scheme:

echo -e "n\np\n1\n\n+100M\na\n1\nt\nc\nn\np\n2\n\n\nw\neof\n" | fdisk /dev/ttymxc

If you have updated the U-Boot firmware und environment, you don’t need have two separate partitions anymore. Just create one large ext4 partition.

Run as root:
    mkfs.vfat -n boot /dev/ttymxc1 # if you need a fat partition
    mkfs.ext4 -O ^has_journal -E stride=2,stripe-width=1024 -b 4096 -L rootfs /dev/ttymxc2 # change the last 2 to 1 if you didn't need a fat partition

mount /dev/ttymxc2 /mnt # change the last 2 to 1 if you didn't need a fat partition
mkdir /mnt/boot
mount /dev/ttymxc1 /mnt/boot # exclude this if you didn't need a fat partition
tar --numeric-owner –xpjf ~/trusty.tar.bz2 –C /mnt
sync
cp ~/boundary-imx_4.1.15_1.0.0_ga/arch/arm/boot/uImage /mnt/boot/uImage-cm-fx6_3.0.35-6.1
sync
umount /mnt
umount /mnt/boot

Finally. We are finished!!!

This answer took me ages to right and if I got something wrong, PLEASE edit it to fix that.


Does Ubuntu 15.10 server iso include Openstack?

OpenStack Liberty is included in Ubuntu 15.10 in the sense that it is included in the Ubuntu 15.10 package archive, which resides on the Internet. You will still need to install and configure the software.

http://packages.ubuntu.com/wily/nova-common


Building Mesa from git - can not "apt-get build-dep mesa"

Okay I found the solution myself now

https://help.ubuntu.com/community/Repositories/Ubuntu

Click the enable source code. And you should be able to run the command


I figured out what the problem was.

Jupyter (even in shell mode) requires sockets, and that is disabled by my rules.

I think two solutions would have been possible:

disable external internet, but allow sockets
only use jupyter to convert from .ipynb to .py and then use AppArmor on the python3 interpreter. (I used a copy of the python3 interpreter, not the system's version, to not interfere with the system.)

I have chosen solution #2, because I didn't know how to achieve #1. I tried to remove "deny network raw" and keep "deny network inet", but this also seemed to disable sockets.


If I would install linux on my SSD, will I be able to access my HDD?

Yes, it would. It would be mounted and you may interact normally with the harddrive like you would with an USB drive :). You may need to install the filesystem (like NTFS) that the harddrive uses. (but I think it comes with ubuntu)

Normal hard drives, If I am correct, are quite good at writing large blocks of data. Starting up applications & OS'ses can be quite intensive also in having to read large amounts of different files. That is an area where a SSD shines. booting linux fast is awesome.

By the way, programs do not run on a hard drive, they may load from the harddrive onto the RAM, from where the data is utilized to perform a task. The bottle neck of the harddrive is only the loading. Afterwards, when data is generated in theory you could have a bottleneck at the writing to the HD.

On the installtion onto a different drive, read this:

How to install applications to a separate hdd?


Why does some paid software say requires mouse?

It requires a pointer device. You can use a mouse, trackball, trackpad, or similar device to interact with the app. It doesn't absolutely have to be a mouse.

If however, you only have a touchscreen, and no other pointer device, you may find it difficult to use some features of the software.


Lyx LayoutFile.cpp (171): LayoutFileList::Read: no textclasses found! in Ubuntu 15.04

I solved this using this post.

https://tex.stackexchange.com/questions/197730/lyx-not-accessing-styles-classes-and-bibliographies

  Please try backing up your LyX home folder (find its location in Help > About) and then removing it. Do that without LyX running. Then start LyX.

You need to delete your home .lyx directory from outside of lyx and then rerun lyx.  It reconfigures and then the class .cls files are found. Must be a caching issue.


Ubuntu <= 11.04

This is a perfect how to, very easy ...  you can follow, it has

Migrate local mail from Evolution
Migrate Calendar
Migrating Task
Migrate address book

how-to-migrate-from-evolution-to-thunderbird-in-ubuntu

--------------------------- UPDATED --------------------------------------------------

Ubuntu >= 11.10

EVOLUTION

Exporting calendar data

To export a complete calendar, right-click on the calendar in the list of calendars and click Save as. Available formats are iCalendar format (ICS, recommended), comma separated values (CSV), and RDF format.

If you want to export only one appointment, right-click on the appointment and click Save as iCalendar....

THUNDERBIRD

extension

Lightning 1.0b7
by Mozilla

or you can install this package from Ubuntu repository:

sudo apt-get install xul-ext-lightning version the same (1.0~b7)

Manage your daily schedule directly within Thunderbird. Allows managing calendars locally or subscribing to network calendars.
Lightning 1.0b7 supports Thunderbird 7.

Install this extension.
Open thunderbird.
Events and task
import and select the calendar saved before...

EVOLUTION

exporting contacts data

Contacts files are stored in a database, but can be saved as a vCard file.
To export a complete address book, click File ▸ Save Address Book As vCard.
If you want to export only one contact, click File ▸ Save as vCard or right-click on the contact and click Save as vCard.

THUNDERBIRD

extension

contact data (vCard or .vcf)

Some address book programs use a vCard format, which cannot be imported directly by Thunderbird. You can import both vCard and vcf using the third-party Thunderbird extension MoreFunctionsForAddressBook.

Install this extension.
Open thunderbird.
Address Book -> tools ->  MoreFunctionsForAddressBook -> action for contatcs -> import vcard/vcf

EVOLUTION

Exporting mail data

To save an email to a file in mbox format, select an email and click File ▸ Save as mbox... or right-click on the message and click Save as mbox....

The same steps apply to save a complete mail folder, but you have to mark all messages in it first.

You can select all messages in a folder by clicking Edit ▸ Select All or pressing Ctrl+A.

THUNDERBIRD

extension

ImportExportTools

Adds some tools to import and export folders and messages

mail data .mbox

Install this extension.
Open thunderbird.
tools -> ImportExportTools -> import file mbox -> import directly one or more files .mbox

EVOLUTION

exporting tasks

in Evolution, click on the Task tab. Right click on the Personal (or whatever name you give to your task list) and select Save to disk. Navigate to the location and save the task list in .ics format.

THUNDERBIRD

Importing Task

Events and task -> import.

P.D : All these are tested by my and work 100%


You have this command:

ed2k - aMule eD2k link parser

and it comes with the amule-utils package

sudo apt install amule-utils

if you have a list ed2k links (separated by newlines) from emule or other client you can just use xargs:

cat links.txt | xargs -L1 ed2k

For this to work amule or amuled need to be already started, you will see the files were added in the aMule Log tab

BTW if you have ' (single quotes) characters in the ed2k link you need to replace them with escaped once \'


How to Preventing Host Header Attack in ubuntu Server 14.04

You will need to check your virtual host configuration in Apache and make sure that there is no default virtual host.

If there is a default virtual host in the settings, then any requests to the Web server will succeed.

See the Apache configuration for virtual hosts for more.


ntfsfix /dev/sdX is used to fix any potential errors on your drive, the complete output of that command should be something similar to this:

Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdc1 was processed successfully.

If you're stuck in Going to empty the journal ($LogFile)... OK, this could mean that the command is still Checking the alternate boot sector... OK, I recommend you to wait, this task could take some time depending on your hard drive.

Also, if you know that your hard drive may have bad sectors, then here is your answer: Corrupt NTFS filesystem causes ntfsfix to hang

Another option is to check your hard drive with the command chkdsk from a Windows machine.

Hope this helps.


How can I change the destination folder of Grive?

It seems you have to do it via the terminal.  On a fresh install of Grive, instead of running the Grive setup app run

grive -p path_to_your_preferred_folder -a

This command changes the Google Drive folder and starts the synchronization of files.


What directory should Ubuntu touch apps write to

Ubuntu touch apps write to ~/.local/share/applicationName, where applicationName is the name you defined in MainView and manifest.json.in

You can access data in that directory via a c++ addon. You find a great example in the code from Podbird: https://launchpad.net/podbird Focus on the QStandardPaths class.

However, most times it is not necessary to know the path. You can store and read settings for example via Local Storge: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.3/QtQuick.qtquick-localstorage-example/


Why is the Unity Launcher not revealing?

Open the Unity Dash (maybe by pressing the super (Windows) key, since your launcher is broken) and search "appearance." Open that up and go to the tab that is labelled "Behavior" and put the reveal sensitivity all the way to the right (high). That might work, or may not be the problem. I'm no expert.


"cannot access archive: No such file or directory" when installing a package using dpkg

The error message No such file or directory means that the .deb file does not exist, or does not exist in the current directory.

The ~ between : and $ in the prompt represents the current working directory. ~ (when the next character is a / or, as in this case, nothing at all) is shorthand for your home directory, /home/collins.

You said you downloaded the .deb file "in download files." Assuming this means you downloaded it to your Downloads folder, that means it's located in /home/collins/Downloads rather than /home/collins.

So you should be able to install it by running this command:

sudo dpkg -i ~/Downloads/wineqq2012-20120719-longene.deb

If that doesn't work, try typing

sudo dpkg -i

without pressing Enter. Add a space to the end. Then drag the file from Nautilus (the file browser) into the Terminal window. That will paste its full path. Then press Enter.


How to dynamically generate PDF documents

I use perl (with HTML::Template) to generate an .ods document from database data, then I use unoconv to convert it to pdf. To be precise:

first, create an .ods document that looks good. Make sure the
variable fields are recognizable.
unzip the .ods document and edit the file contents.xml.
in contents.xml, change all the variable fields to <TMPL_VAR> tags as per HTML::Template. This contents.xml file is going to be your template.
write a Perl program that reads the database, fills the TMPL_VAR fields, writes a new contents.xml file and re-zips the new contents.xml file into a new .ods document.
then use unoconv to convert the new document to pdf.

Easily extended to use more than one template.


You mean like a remote desktop client/server? So you can log into their desktop and do things remotely from your computer, while letting them watch (& hopefully learn)?

Possible options include:

remmina -    remote desktop client for GNOME desktop environment
vinagre - remote desktop client for the GNOME Desktop [universe]
vino - VNC server for GNOME
gnome-rdp - remote desktop client for GNOME [universe]

There are security concerns with running these over the internet:

Ubuntu's help on VNC suggests using ssh and looks like a great setup:

  Although VNC has some optional security features, you should not run VNC directly over an untrusted network like the Internet. Instead, you should set an SSH server up as discussed in the SSH guide and configure a VNC server that you can start in so-called once mode. When you have set up your SSH and VNC servers, you can use SSH to log in to your computer over the Internet, start your VNC server, and use port-forwarding to securely access the VNC server.

Securing Remote Desktop for System Administrators (windows-centric but relevant concerns)

Or for a text-only solution you can use plain ssh, but that probably wouldn't be very helpful for any relatives to see what's going on.


When using dual monitors, left monitor uses 1024x768 and right monitor uses 1920x720. Why its slow?

Please check if:
a) Your OS sees Your graphic card, and identifies it properly:

lspci | grep VGA

b) You have hardware acceleration enabled:

glxinfo | grep -i direct

Please give the output of those two in Your question.
(if You do not have glxifno install mesa utils:)

sudo apt-get install mesa-utils

Regards


You can program in .NET on ubuntu too. Well, sort of. There is an open source implementation of the .NET platform available called MONO. MONO apps can run on Ubuntu/Linux, Windows and Mac OS. Look for MonoDevelop in Ubuntu Software Center. Learn more about Mono in Ubuntu.

Another option is Quickly. In my opinion Quickly is better for Ubuntu centric app development. You can code you app and release it to a PPA (launchpad-repository) in minutes. Quickly is also available from Ubuntu Software Center. Get started writing apps with Quickly.


inotify/max_user_watches value resets on reboot; how to change it permanently?

On Ubuntu 16.04 the following worked for me...

echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

where 524288 is the higher-than-default number that I'm using. The second command is to make it take effect without rebooting.

Also, here is a link to a similar question with some good answers, in particular see the second answer from user3086182 which helped me.

kernel-inotify-watch-limit-reached


I tried to install Tkinter in python. But I cannot install it

You're running a version of Ubuntu that reached EOL in 2016, Ubuntu 15.04. Follow this guide to upgrade to a supported release of Ubuntu, or simply do a fresh install of the latest supported releases, 16.04 (LTS) or 17.10. Then try:

sudo apt update
sudo apt install python-tk


black screen / low graphics mode on logout

This will not be a solution to your question nor a very satisfying workaround, but I have the same issue since Ubuntu 14.04 and find that when I log out while using integrated graphics (Intel HD 4400) Ubuntu turns to low graphics mode, but when switching to discrete graphics (Radeon HD 8670M) log out works fine.

I use proprietary drivers (fglrx) for the discrete graphics card and catalyst control centre to switch between both GPUs. When I log out while using the discrete GPU, the screen flickers a bit (it looks like something is happening to screen resolution) before it brings me to the login screen, but it works.

Update:
I removed fglrx and set my laptop to use only the integrated GPU in BIOS. Now I can actually log out when using the integrated GPU. There is no possibility left to switch to the discrete GPU however.

If the same is possible on your machine (setting it to integrated graphics only) you can get low power consumption back.


No network access until I ping the gateway

I have now the same problem with Ubuntu 16.04.3 LTS on a Proxmox hypervisor.

The only workaround I could figure out is to add a ping command to crontab that pings 2 packages in each minutes since it seems to me as the network interface goes to sleep when it is not used for a short while. However this seems very unlikely since there are several virtual webservers hosted on this server and someone is using it almost every minute...

*/1 * * * * /bin/ping -c 2 192.168.30.1 > /dev/null


Set Static Ports for NFS v3 on Ubuntu 20.x Server

I figured this out, for static ports these files need to be edited:
/etc/default/nfs-kernel-server for MOUNTD:
Original:
RPCMOUNTDOPTS="--manage-gids"

New:
RPCMOUNTDOPTS="--manage-gids -p 892"

/etc/default/nfs-common for STATD:
Original:
STATDOPTS=

New:
STATDOPTS="--port 662"

/etc/default/quotas for Quotas
I decided against running quotas for this project. However, it should be:
RPCRQUOTADOPTS="-p 875"
/etc/sysctl.conf for LOCKD:
Add:
fs.nfs.nlm_tcpport = 32803
fs.nfs.nlm_udpport = 32769

Then just run:
sysctl -p
systemctl restart nfs-kernel-server


How do I configure mplayer to always use VDPAU?

Why not just put a list of the video outputs and codecs you want to try in your ~/.mplayer/config file? As in:

##################
# video settings #
##################

# Specify default video driver (see -vo help for a list).
vo=vdpau

############
# Profiles #
############

# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.

[vo.vdpau]
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,
# Most video filters do not work with vdpau.
vf-clr=yes

1 the trailing comma in each setting tells mplayer to fall back to standard codecs if necessary